@fluidattacks/design 3.31.10 → 3.31.11
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/advanced-badge/index.js +1 -1
- package/dist/components/advisories-card/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.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/card/indicator-card/index.js +1 -1
- package/dist/components/card/indicator-card/index.stories.d.ts +8 -8
- package/dist/components/card-container/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/conditions-dialog/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/copy-button/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/dropdown/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/fa-tag/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/inner-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-db/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/field/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-array/field/index.js +1 -1
- package/dist/components/inputs/fields/input-array/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/field/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/fields/text-input/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/item-card-db/index.js +1 -1
- package/dist/components/layout/categories/buttons/index.js +1 -1
- package/dist/components/layout/categories/column/index.js +1 -1
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/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/columns-modal/index.js +1 -1
- package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
- package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
- package/dist/components/modal/filters-modal/applied-filter/index.js +1 -1
- package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/column-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
- package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
- package/dist/components/modal/filters-modal/index.js +1 -1
- package/dist/components/modal/footer/index.js +1 -1
- package/dist/components/modal/header/index.js +1 -1
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification-sign/index.js +1 -1
- package/dist/components/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/index.js +1 -1
- package/dist/components/paginator-db/btn/index.js +1 -1
- package/dist/components/paginator-db/dropdown/index.js +1 -1
- package/dist/components/paginator-db/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-cards/card/index.js +1 -1
- package/dist/components/priority-cards/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/progress-indicator/in-progress-icon/index.js +1 -1
- package/dist/components/progress-indicator/index.js +1 -1
- package/dist/components/progress-indicator/step/index.js +1 -1
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/rank-position/icon/index.js +1 -1
- package/dist/components/rank-position/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-dropdown/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/context/index.js +1 -1
- package/dist/components/table/export-csv/index.js +1 -1
- package/dist/components/table/index.js +1 -1
- package/dist/components/table/pagination/pagination-control/index.js +1 -1
- package/dist/components/table/pagination/pagination-dropdown/index.js +1 -1
- package/dist/components/table/pagination/pagination-size/index.js +1 -1
- package/dist/components/table/sort-icon/index.js +1 -1
- package/dist/components/table/table-body/index.js +1 -1
- package/dist/components/table/table-column-toggle/index.js +1 -1
- package/dist/components/table/table-content/head/index.js +1 -1
- package/dist/components/table/table-content/index.js +1 -1
- package/dist/components/table/table-footer/footer-content/index.js +1 -1
- package/dist/components/table/table-footer/index.js +1 -1
- package/dist/components/table/table-options/caption-content/index.js +1 -1
- package/dist/components/table/table-options/controls-content/index.js +1 -1
- package/dist/components/table/table-options/highlighted-content/index.js +1 -1
- package/dist/components/table/table-options/index.js +1 -1
- package/dist/components/table/wrapper/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/table-content/index.js +1 -1
- package/dist/components/table-content/item-content/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-section/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/weaknesses-card/index.js +1 -1
- package/dist/{components-DB92tR8V.mjs → components-BZu7rr0s.mjs} +1 -1
- package/dist/{components-Bnu9_6G6.js → components-D4e9Mpql.js} +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/vendor-dFwAYKb7.js +169 -0
- package/dist/{vendor-EAX708zd.mjs → vendor-wPtnQTdA.mjs} +14733 -14605
- package/package.json +11 -11
- package/dist/vendor-D--QYeGr.js +0 -164
package/dist/vendor-D--QYeGr.js
DELETED
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
"use strict";require('./assets/vendor.css');var DN=Object.defineProperty;var AN=(e,t,n)=>t in e?DN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var zc=(e,t,n)=>AN(e,typeof t!="symbol"?t+"":t,n);const I=require("react"),Qa=require("react/jsx-runtime"),kp=require("react-dom");function j2(e){if(e&&typeof e=="object"&&"default"in e)return 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 fe=j2(I),Os=j2(kp);var Ui=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Eg,pw;function K2(){if(pw)return Eg;pw=1;var e=typeof Ui=="object"&&Ui&&Ui.Object===Object&&Ui;return Eg=e,Eg}var Sg,mw;function Us(){if(mw)return Sg;mw=1;var e=K2(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Sg=n,Sg}var Dg,gw;function Op(){if(gw)return Dg;gw=1;var e=Us(),t=e.Symbol;return Dg=t,Dg}var Ag,vw;function TN(){if(vw)return Ag;vw=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=Array(i);++r<i;)a[r]=n(t[r],r,t);return a}return Ag=e,Ag}var Tg,yw;function ts(){if(yw)return Tg;yw=1;var e=Array.isArray;return Tg=e,Tg}var Pg,bw;function PN(){if(bw)return Pg;bw=1;var e=Op(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function a(s){var o=n.call(s,i),c=s[i];try{s[i]=void 0;var d=!0}catch{}var h=r.call(s);return d&&(o?s[i]=c:delete s[i]),h}return Pg=a,Pg}var _g,$w;function _N(){if($w)return _g;$w=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return _g=n,_g}var Mg,xw;function Ql(){if(xw)return Mg;xw=1;var e=Op(),t=PN(),n=_N(),r="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function s(o){return o==null?o===void 0?i:r:a&&a in Object(o)?t(o):n(o)}return Mg=s,Mg}var Fg,ww;function ec(){if(ww)return Fg;ww=1;function e(t){return t!=null&&typeof t=="object"}return Fg=e,Fg}var Rg,Cw;function Ip(){if(Cw)return Rg;Cw=1;var e=Ql(),t=ec(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return Rg=r,Rg}var kg,Ew;function MN(){if(Ew)return kg;Ew=1;var e=Op(),t=TN(),n=ts(),r=Ip(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function s(o){if(typeof o=="string")return o;if(n(o))return t(o,s)+"";if(r(o))return a?a.call(o):"";var c=o+"";return c=="0"&&1/o==-1/0?"-0":c}return kg=s,kg}var Og,Sw;function a4(){if(Sw)return Og;Sw=1;var e=MN();function t(n){return n==null?"":e(n)}return Og=t,Og}var Ig,Dw;function FN(){if(Dw)return Ig;Dw=1;function e(t,n,r){var i=-1,a=t.length;n<0&&(n=-n>a?0:a+n),r=r>a?a:r,r<0&&(r+=a),a=n>r?0:r-n>>>0,n>>>=0;for(var s=Array(a);++i<a;)s[i]=t[i+n];return s}return Ig=e,Ig}var Lg,Aw;function RN(){if(Aw)return Lg;Aw=1;var e=FN();function t(n,r,i){var a=n.length;return i=i===void 0?a:i,!r&&i>=a?n:e(n,r,i)}return Lg=t,Lg}var Vg,Tw;function U2(){if(Tw)return Vg;Tw=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,a="\\ufe0e\\ufe0f",s="\\u200d",o=RegExp("["+s+e+i+a+"]");function c(d){return o.test(d)}return Vg=c,Vg}var Bg,Pw;function kN(){if(Pw)return Bg;Pw=1;function e(t){return t.split("")}return Bg=e,Bg}var Ng,_w;function ON(){if(_w)return Ng;_w=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,a="\\ufe0e\\ufe0f",s="["+e+"]",o="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",d="(?:"+o+"|"+c+")",h="[^"+e+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",b="\\u200d",w=d+"?",x="["+a+"]?",A="(?:"+b+"(?:"+[h,m,g].join("|")+")"+x+w+")*",C=x+w+A,E="(?:"+[h+o+"?",o,m,g,s].join("|")+")",S=RegExp(c+"(?="+c+")|"+E+C,"g");function R(_){return _.match(S)||[]}return Ng=R,Ng}var jg,Mw;function IN(){if(Mw)return jg;Mw=1;var e=kN(),t=U2(),n=ON();function r(i){return t(i)?n(i):e(i)}return jg=r,jg}var Kg,Fw;function LN(){if(Fw)return Kg;Fw=1;var e=RN(),t=U2(),n=IN(),r=a4();function i(a){return function(s){s=r(s);var o=t(s)?n(s):void 0,c=o?o[0]:s.charAt(0),d=o?e(o,1).join(""):s.slice(1);return c[a]()+d}}return Kg=i,Kg}var Ug,Rw;function VN(){if(Rw)return Ug;Rw=1;var e=LN(),t=e("toUpperCase");return Ug=t,Ug}var qg,kw;function BN(){if(kw)return qg;kw=1;var e=a4(),t=VN();function n(r){return t(e(r).toLowerCase())}return qg=n,qg}var NN=BN();const jN=yr(NN);var ho=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Eb={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",s="[object Array]",o="[object Boolean]",c="[object Date]",d="[object Error]",h="[object Function]",m="[object GeneratorFunction]",g="[object Map]",b="[object Number]",w="[object Object]",x="[object Promise]",A="[object RegExp]",C="[object Set]",E="[object String]",S="[object Symbol]",R="[object WeakMap]",_="[object ArrayBuffer]",F="[object DataView]",z="[object Float32Array]",ie="[object Float64Array]",ge="[object Int8Array]",oe="[object Int16Array]",O="[object Int32Array]",we="[object Uint8Array]",Se="[object Uint8ClampedArray]",U="[object Uint16Array]",ee="[object Uint32Array]",K=/[\\^$.*+?()[\]{}|]/g,k=/\w*$/,N=/^\[object .+?Constructor\]$/,te=/^(?:0|[1-9]\d*)$/,j={};j[a]=j[s]=j[_]=j[F]=j[o]=j[c]=j[z]=j[ie]=j[ge]=j[oe]=j[O]=j[g]=j[b]=j[w]=j[A]=j[C]=j[E]=j[S]=j[we]=j[Se]=j[U]=j[ee]=!0,j[d]=j[h]=j[R]=!1;var ce=typeof ho=="object"&&ho&&ho.Object===Object&&ho,ue=typeof self=="object"&&self&&self.Object===Object&&self,Ae=ce||ue||Function("return this")(),_e=t&&!t.nodeType&&t,Le=_e&&!0&&e&&!e.nodeType&&e,Ye=Le&&Le.exports===_e;function Qe(ae,Fe){return ae.set(Fe[0],Fe[1]),ae}function Ue(ae,Fe){return ae.add(Fe),ae}function Ge(ae,Fe){for(var ze=-1,pt=ae?ae.length:0;++ze<pt&&Fe(ae[ze],ze,ae)!==!1;);return ae}function Ie(ae,Fe){for(var ze=-1,pt=Fe.length,vn=ae.length;++ze<pt;)ae[vn+ze]=Fe[ze];return ae}function Ne(ae,Fe,ze,pt){for(var vn=-1,tr=ae?ae.length:0;++vn<tr;)ze=Fe(ze,ae[vn],vn,ae);return ze}function Te(ae,Fe){for(var ze=-1,pt=Array(ae);++ze<ae;)pt[ze]=Fe(ze);return pt}function He(ae,Fe){return ae==null?void 0:ae[Fe]}function ht(ae){var Fe=!1;if(ae!=null&&typeof ae.toString!="function")try{Fe=!!(ae+"")}catch{}return Fe}function Ht(ae){var Fe=-1,ze=Array(ae.size);return ae.forEach(function(pt,vn){ze[++Fe]=[vn,pt]}),ze}function $t(ae,Fe){return function(ze){return ae(Fe(ze))}}function _t(ae){var Fe=-1,ze=Array(ae.size);return ae.forEach(function(pt){ze[++Fe]=pt}),ze}var zr=Array.prototype,Qt=Function.prototype,be=Object.prototype,De=Ae["__core-js_shared__"],Me=function(){var ae=/[^.]+$/.exec(De&&De.keys&&De.keys.IE_PROTO||"");return ae?"Symbol(src)_1."+ae:""}(),Xe=Qt.toString,tt=be.hasOwnProperty,Je=be.toString,gt=RegExp("^"+Xe.call(tt).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rt=Ye?Ae.Buffer:void 0,xt=Ae.Symbol,gn=Ae.Uint8Array,br=$t(Object.getPrototypeOf,Object),Ut=Object.create,Pt=be.propertyIsEnumerable,It=zr.splice,qt=Object.getOwnPropertySymbols,fr=Rt?Rt.isBuffer:void 0,Wr=$t(Object.keys,Object),si=ci(Ae,"DataView"),Pr=ci(Ae,"Map"),Ea=ci(Ae,"Promise"),Ao=ci(Ae,"Set"),bt=ci(Ae,"WeakMap"),oi=ci(Object,"create"),is=Fr(si),vc=Fr(Pr),Ou=Fr(Ea),yc=Fr(Ao),Iu=Fr(bt),To=xt?xt.prototype:void 0,Lu=To?To.valueOf:void 0;function Xi(ae){var Fe=-1,ze=ae?ae.length:0;for(this.clear();++Fe<ze;){var pt=ae[Fe];this.set(pt[0],pt[1])}}function Ji(){this.__data__=oi?oi(null):{}}function yt(ae){return this.has(ae)&&delete this.__data__[ae]}function Cn(ae){var Fe=this.__data__;if(oi){var ze=Fe[ae];return ze===r?void 0:ze}return tt.call(Fe,ae)?Fe[ae]:void 0}function as(ae){var Fe=this.__data__;return oi?Fe[ae]!==void 0:tt.call(Fe,ae)}function Vu(ae,Fe){var ze=this.__data__;return ze[ae]=oi&&Fe===void 0?r:Fe,this}Xi.prototype.clear=Ji,Xi.prototype.delete=yt,Xi.prototype.get=Cn,Xi.prototype.has=as,Xi.prototype.set=Vu;function $r(ae){var Fe=-1,ze=ae?ae.length:0;for(this.clear();++Fe<ze;){var pt=ae[Fe];this.set(pt[0],pt[1])}}function Bu(){this.__data__=[]}function Nu(ae){var Fe=this.__data__,ze=ss(Fe,ae);if(ze<0)return!1;var pt=Fe.length-1;return ze==pt?Fe.pop():It.call(Fe,ze,1),!0}function bc(ae){var Fe=this.__data__,ze=ss(Fe,ae);return ze<0?void 0:Fe[ze][1]}function Hr(ae){return ss(this.__data__,ae)>-1}function at(ae,Fe){var ze=this.__data__,pt=ss(ze,ae);return pt<0?ze.push([ae,Fe]):ze[pt][1]=Fe,this}$r.prototype.clear=Bu,$r.prototype.delete=Nu,$r.prototype.get=bc,$r.prototype.has=Hr,$r.prototype.set=at;function cn(ae){var Fe=-1,ze=ae?ae.length:0;for(this.clear();++Fe<ze;){var pt=ae[Fe];this.set(pt[0],pt[1])}}function Qi(){this.__data__={hash:new Xi,map:new(Pr||$r),string:new Xi}}function ui(ae){return Ci(this,ae).delete(ae)}function Yn(ae){return Ci(this,ae).get(ae)}function Po(ae){return Ci(this,ae).has(ae)}function Sa(ae,Fe){return Ci(this,ae).set(ae,Fe),this}cn.prototype.clear=Qi,cn.prototype.delete=ui,cn.prototype.get=Yn,cn.prototype.has=Po,cn.prototype.set=Sa;function li(ae){this.__data__=new $r(ae)}function kn(){this.__data__=new $r}function Ws(ae){return this.__data__.delete(ae)}function jt(ae){return this.__data__.get(ae)}function $c(ae){return this.__data__.has(ae)}function ju(ae,Fe){var ze=this.__data__;if(ze instanceof $r){var pt=ze.__data__;if(!Pr||pt.length<n-1)return pt.push([ae,Fe]),this;ze=this.__data__=new cn(pt)}return ze.set(ae,Fe),this}li.prototype.clear=kn,li.prototype.delete=Ws,li.prototype.get=jt,li.prototype.has=$c,li.prototype.set=ju;function xc(ae,Fe){var ze=fs(ae)||Ta(ae)?Te(ae.length,String):[],pt=ze.length,vn=!!pt;for(var tr in ae)tt.call(ae,tr)&&!(vn&&(tr=="length"||Oo(tr,pt)))&&ze.push(tr);return ze}function _o(ae,Fe,ze){var pt=ae[Fe];(!(tt.call(ae,Fe)&&Aa(pt,ze))||ze===void 0&&!(Fe in ae))&&(ae[Fe]=ze)}function ss(ae,Fe){for(var ze=ae.length;ze--;)if(Aa(ae[ze][0],Fe))return ze;return-1}function Ku(ae,Fe){return ae&&hr(Fe,ps(Fe),ae)}function Mo(ae,Fe,ze,pt,vn,tr,ir){var Bn;if(pt&&(Bn=tr?pt(ae,vn,tr,ir):pt(ae)),Bn!==void 0)return Bn;if(!hs(ae))return ae;var En=fs(ae);if(En){if(Bn=ko(ae),!Fe)return Hs(ae,Bn)}else{var Si=Ei(ae),Di=Si==h||Si==m;if(Gs(ae))return Ro(ae,Fe);if(Si==w||Si==a||Di&&!tr){if(ht(ae))return tr?ae:{};if(Bn=Wu(Di?{}:ae),!Fe)return us(ae,Ku(Bn,ae))}else{if(!j[Si])return tr?ae:{};Bn=dn(ae,Si,Mo,Fe)}}ir||(ir=new li);var Vo=ir.get(ae);if(Vo)return Vo;if(ir.set(ae,Bn),!En)var Ys=ze?ls(ae):ps(ae);return Ge(Ys||ae,function(ar,ms){Ys&&(ms=ar,ar=ae[ms]),_o(Bn,ms,Mo(ar,Fe,ze,pt,ms,ae,ir))}),Bn}function wc(ae){return hs(ae)?Ut(ae):{}}function Cc(ae,Fe,ze){var pt=Fe(ae);return fs(ae)?pt:Ie(pt,ze(ae))}function Ec(ae){return Je.call(ae)}function Uu(ae){if(!hs(ae)||Io(ae))return!1;var Fe=Gu(ae)||ht(ae)?gt:N;return Fe.test(Fr(ae))}function Fo(ae){if(!Hu(ae))return Wr(ae);var Fe=[];for(var ze in Object(ae))tt.call(ae,ze)&&ze!="constructor"&&Fe.push(ze);return Fe}function Ro(ae,Fe){if(Fe)return ae.slice();var ze=new ae.constructor(ae.length);return ae.copy(ze),ze}function os(ae){var Fe=new ae.constructor(ae.byteLength);return new gn(Fe).set(new gn(ae)),Fe}function qu(ae,Fe){var ze=Fe?os(ae.buffer):ae.buffer;return new ae.constructor(ze,ae.byteOffset,ae.byteLength)}function zu(ae,Fe,ze){var pt=Fe?ze(Ht(ae),!0):Ht(ae);return Ne(pt,Qe,new ae.constructor)}function _r(ae){var Fe=new ae.constructor(ae.source,k.exec(ae));return Fe.lastIndex=ae.lastIndex,Fe}function dr(ae,Fe,ze){var pt=Fe?ze(_t(ae),!0):_t(ae);return Ne(pt,Ue,new ae.constructor)}function Mr(ae){return Lu?Object(Lu.call(ae)):{}}function Da(ae,Fe){var ze=Fe?os(ae.buffer):ae.buffer;return new ae.constructor(ze,ae.byteOffset,ae.length)}function Hs(ae,Fe){var ze=-1,pt=ae.length;for(Fe||(Fe=Array(pt));++ze<pt;)Fe[ze]=ae[ze];return Fe}function hr(ae,Fe,ze,pt){ze||(ze={});for(var vn=-1,tr=Fe.length;++vn<tr;){var ir=Fe[vn],Bn=void 0;_o(ze,ir,Bn===void 0?ae[ir]:Bn)}return ze}function us(ae,Fe){return hr(ae,rr(ae),Fe)}function ls(ae){return Cc(ae,ps,rr)}function Ci(ae,Fe){var ze=ae.__data__;return cs(Fe)?ze[typeof Fe=="string"?"string":"hash"]:ze.map}function ci(ae,Fe){var ze=He(ae,Fe);return Uu(ze)?ze:void 0}var rr=qt?$t(qt,Object):Gt,Ei=Ec;(si&&Ei(new si(new ArrayBuffer(1)))!=F||Pr&&Ei(new Pr)!=g||Ea&&Ei(Ea.resolve())!=x||Ao&&Ei(new Ao)!=C||bt&&Ei(new bt)!=R)&&(Ei=function(ae){var Fe=Je.call(ae),ze=Fe==w?ae.constructor:void 0,pt=ze?Fr(ze):void 0;if(pt)switch(pt){case is:return F;case vc:return g;case Ou:return x;case yc:return C;case Iu:return R}return Fe});function ko(ae){var Fe=ae.length,ze=ae.constructor(Fe);return Fe&&typeof ae[0]=="string"&&tt.call(ae,"index")&&(ze.index=ae.index,ze.input=ae.input),ze}function Wu(ae){return typeof ae.constructor=="function"&&!Hu(ae)?wc(br(ae)):{}}function dn(ae,Fe,ze,pt){var vn=ae.constructor;switch(Fe){case _:return os(ae);case o:case c:return new vn(+ae);case F:return qu(ae,pt);case z:case ie:case ge:case oe:case O:case we:case Se:case U:case ee:return Da(ae,pt);case g:return zu(ae,pt,ze);case b:case E:return new vn(ae);case A:return _r(ae);case C:return dr(ae,pt,ze);case S:return Mr(ae)}}function Oo(ae,Fe){return Fe=Fe??i,!!Fe&&(typeof ae=="number"||te.test(ae))&&ae>-1&&ae%1==0&&ae<Fe}function cs(ae){var Fe=typeof ae;return Fe=="string"||Fe=="number"||Fe=="symbol"||Fe=="boolean"?ae!=="__proto__":ae===null}function Io(ae){return!!Me&&Me in ae}function Hu(ae){var Fe=ae&&ae.constructor,ze=typeof Fe=="function"&&Fe.prototype||be;return ae===ze}function Fr(ae){if(ae!=null){try{return Xe.call(ae)}catch{}try{return ae+""}catch{}}return""}function Lo(ae){return Mo(ae,!0,!0)}function Aa(ae,Fe){return ae===Fe||ae!==ae&&Fe!==Fe}function Ta(ae){return ds(ae)&&tt.call(ae,"callee")&&(!Pt.call(ae,"callee")||Je.call(ae)==a)}var fs=Array.isArray;function ea(ae){return ae!=null&&Sc(ae.length)&&!Gu(ae)}function ds(ae){return Dc(ae)&&ea(ae)}var Gs=fr||en;function Gu(ae){var Fe=hs(ae)?Je.call(ae):"";return Fe==h||Fe==m}function Sc(ae){return typeof ae=="number"&&ae>-1&&ae%1==0&&ae<=i}function hs(ae){var Fe=typeof ae;return!!ae&&(Fe=="object"||Fe=="function")}function Dc(ae){return!!ae&&typeof ae=="object"}function ps(ae){return ea(ae)?xc(ae):Fo(ae)}function Gt(){return[]}function en(){return!1}e.exports=Lo})(Eb,Eb.exports);var po=Eb.exports,Sb=function(){return Sb=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},Sb.apply(this,arguments)};function KN(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 o(h){try{d(r.next(h))}catch(m){s(m)}}function c(h){try{d(r.throw(h))}catch(m){s(m)}}function d(h){h.done?a(h.value):i(h.value).then(o,c)}d((r=r.apply(e,[])).next())})}function UN(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=o(0),s.throw=o(1),s.return=o(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(d){return function(h){return c([d,h])}}function c(d){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,d[0]&&(n=0)),n;)try{if(r=1,i&&(a=d[0]&2?i.return:d[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,d[1])).done)return a;switch(i=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){n.label=d[1];break}if(d[0]===6&&n.label<a[1]){n.label=a[1],a=d;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(d);break}a[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(h){d=[6,h],i=0}finally{r=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function Wh(e,t,n,r,i){return KN(this,void 0,void 0,function(){var a,s;return UN(this,function(o){switch(o.label){case 0:if(n===void 0)return[2];s=0,o.label=1;case 1:return s<n.length?[4,n[s](e,t,r,i,n)]:[3,4];case 2:if(a=o.sent(),a==="canceled")return[3,4];o.label=3;case 3:return s++,[3,1];case 4:return a!=="canceled"?[2,a]:[2]}})})}var Db=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:Sb({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},qN=function(){function e(t,n,r,i){var a=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var s=po(n);Wh(t,s,r,this.htmlPluginState,i).then(function(o){if(a.isMounted){a.htmlPluginState.pluginEventSubscription.forEach(function(d){d()});var c=Db(i,o);a.imgElement.setAttribute("src",s.toURL(c))}})}return e.prototype.update=function(t,n,r){var i=this,a=po(t);Wh(this.imgElement,a,n,this.htmlPluginState).then(function(s){if(i.isMounted){var o=Db(r,s);i.imgElement.setAttribute("src",a.toURL(o))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let Rn=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}},zN=class extends Error{constructor(t="Unsupported"){super(t)}};function s4(e){return new zN(e)}function WN(){return this._qualifierModel||{error:s4(`unsupported qualifier ${this.constructor.name}`)}}let HN=class{constructor(){this._qualifierModel={}}toJson(){return WN.apply(this)}},Ot=class extends HN{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof Rn?this.qualifierValue=n:(this.qualifierValue=new Rn,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}},Hi=class extends Ot{constructor(t,n){let r;n?r=new Rn([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function GN(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function YN(){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:s4(`unsupported action ${this.constructor.name}`)}}let ZN=class{constructor(){this._actionModel={}}toJson(){return YN.apply(this)}},xa=class extends ZN{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(),GN(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 Hi(r)):this.qualifiers.set(n,new Ot(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Hi(t)):t instanceof Hi&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class o4 extends xa{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class Lp extends o4{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new Ot("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new Ot("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new Ot("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new Ot("h",t)),this}static fromJson(t){const n=new Lp;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 XN(){return new Lp}function q2(){return new o4("faces")}function JN(){return new o4("ocr_text")}class QN 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 Ot("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Ot("e",`blur_region${t}`)),this.addQualifier(new Ot("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Ot("e",`blur_faces${t}`))):this.addQualifier(new Ot("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(q2()),r&&r.regionType==="ocr_text"&&i.region(JN()),r&&r.regionType==="custom"&&i.region(Lp.fromJson(r)),i}}function Pu(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const z2={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},ej={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},W2={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},H2={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},tj={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},G2={444:"CHROMA_444",420:"CHROMA_420"},nj={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},rj=Pu(G2);Pu(nj);const ij=Pu(z2),aj=Pu(ej),Y2=Pu(W2);Pu(H2);Pu(tj);class Z2 extends xa{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=Y2[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new Rn([t,`${n}`]).setDelimiter(":"):r=new Rn(t),new Ot("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,a=W2[n]||n;return new this(a,r||i)}}class sj extends Z2{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=Y2[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 Vp(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class oj 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 Rn(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new Rn(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new Rn(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new Rn(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new Rn(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new Ot("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:a,detailLevel:s,numOfColors:o}=t,c=new this;return r&&c.paths(r),i&&c.cornersLevel(i),a&&c.despeckleLevel(a),s&&c.detailsLevel(s),o&&c.numOfColors(o),c}}class uj extends sj{level(t){return this._actionModel.level=t,this.setLevel(t)}}class lj extends xa{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new Ot("e",new Rn("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new Ot("e",new Rn(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new Ot("e",new Rn(["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 cj extends uj{color(t){return this._actionModel.color=t,this.addQualifier(new Ot("co",new Rn(Vp(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,a=new this(n,r);return i&&a.color(i),a}}class fj 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 Ot("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Ot("e",`pixelate_region${t}`)),this.addQualifier(new Ot("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Ot("e",`pixelate_faces${t}`))):this.addQualifier(new Ot("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(q2()),n&&n.regionType==="custom"&&i.region(XN()),i}}const dj=e=>vj(encodeURIComponent,mj,gj)(e),hj=/[!'()*~_.-]/g,pj={"!":"%21","'":"%27","(":"%28",")":"%29","*":"%2A","~":"%7E",_:"%5F",".":"%2E","-":"%2D"},mj=e=>e.replace(hj,t=>{var n;return(n=pj[t])!==null&&n!==void 0?n:t}),gj=e=>e.replace(/%20/g," "),vj=(...e)=>t=>e.reduce((n,r)=>r(n),t);function yj(e){return new QN(e)}function bj(){return new Z2("grayscale")}function Ow(e){return new cj("colorize",e)}function $j(){return new oj}function xj(){return new lj}function wj(e){return new fj(e)}let Cj=class extends xa{constructor(t){super(),this._actionModel={},this.addQualifier(new Ot("b",new Rn(Vp(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},Iw=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:s4(`unsupported action ${this.constructor.name}`)}}};function Ej(e){const t=e;return"error"in t&&!!t.error}function Sj(){return new Hi("ignore_aspect_ratio")}function Dj(){return new Hi("lossy")}function Aj(){return new Hi("preserve_transparency")}function Tj(e){return new Hi("progressive",e)}function Pj(){return new Hi("region_relative")}function _j(){return new Hi("relative")}let u4=class extends Rn{constructor(t){super(t),this.val=t}getValue(){return this.val}},X2=class extends xa{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof u4?i=n.getValue():i=n,this._actionModel.actionType=aj[t],this._actionModel[r]=i,this.addQualifier(new Ot(t,n))}},Mj=class extends Hi{constructor(t){super("progressive",t)}},Ab=class extends X2{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(Dj()),this}progressive(t){return t instanceof Mj?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(Tj(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(Aj()),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}},Bp=class J2{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 Iw(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof J2?this.actions=this.actions.concat(t.actions):this.actions.push(new Iw(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 Ab("q",t)),this}format(t){return this.addAction(new Ab("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 Cj(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 Hi(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(Ej(r))return r;t.push(r)}return{actions:t}}};function Lw(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 Fj extends Rn{}class Rj extends xa{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=ij[t]||t,this.addQualifier(new Ot("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new Ot("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new Ot("w",t))}aspectRatio(t){if(t instanceof Fj)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new Ot("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=Lw(t),this.addQualifier(new Ot("ar",Lw(t)));if(t instanceof Hi)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(_j())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(Pj())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:a}=t,{aspectRatio:s,width:o,height:c}=r,d=z2[n]||n,h=new this(d,o,c);return s&&h.aspectRatio(s==="ignore_aspect_ratio"?Sj():s),i&&h.relative(),a&&h.regionRelative(),h}}class l4 extends Ot{constructor(t){super("g",new Rn(t))}}class Q2 extends l4{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class eP extends l4{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class tP extends l4{constructor(t){super(t)}}function kj(e){return new tP(e)}function nP(...e){const t=[...e];return new eP(t)}function rP(){return new Q2}class Bl extends Rn{constructor(t){super(),this.name=t}toString(){return this.name}}function Oj(){return new Bl("ocr_text")}function Ij(e){return e&&`${e}`.split(":")[0]==="auto"}function Lj(e){const t=c4(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function c4(e){return`${e}`.replace("g_","")}function Vj(e){return{compass:c4(e),gravityType:"direction"}}function Bj(e){return c4(e)==="ocr_text"}function Nj(){return{gravityType:"ocr"}}function jj(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function Kj(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 iP(e){let t;const n=e==="auto"?new Q2: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(Kj)}}function Uj(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=rP().autoFocus(...a);i.fallbackGravity=iP(s)}return i}function qj(e){const n=e.split(":").map(r=>new Bl(r));return new eP(n)}function zj(e){return Lj(e)?Vj(e):Bj(e)?Nj():Ij(e)||jj(e)?iP(e):Uj(typeof e=="string"?qj(e):e)}class f4 extends Rn{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof Bl?t:new Bl(t);return new f4(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 aP extends Rn{constructor(t){super(),this.val=t}toString(){return this.val}}function Wj(e){return e.gravityType==="direction"}function Hj(e){return e.gravityType==="ocr"}function Gj(e){return e.gravityType==="auto"}function Yj(e){const{object:t,weight:n,avoid:r}=e,i=new f4(new Bl(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function sP(e){const n=(e.autoFocus||[]).map(Yj);return rP().autoFocus(...n)}function Zj(e){const t=(e.focusOnObjects||[]).map(r=>new Bl(r)),n=nP(...t);if(e.fallbackGravity){const r=sP(e.fallbackGravity);n.fallbackGravity(r)}return n}function Xj(e){return Wj(e)?new tP(new aP(e.compass)):Hj(e)?nP(Oj()):Gj(e)?sP(e):Zj(e)}class d4 extends Rj{gravity(t){this._actionModel.gravity=zj(t);const n=typeof t=="string"?new Ot("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(Xj(t.gravity)),n}}class Xf extends Ot{constructor(t){super("b"),t&&this.addValue(t)}}const oP=100,Jj=0;class Qj extends Xf{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}`:`:${oP}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var uP=Qj;class h4 extends Xf{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>Vp(n)),this}}class lP extends h4{toString(){return`
|
|
2
|
-
b_auto:border
|
|
3
|
-
${this._contrast?"_contrast":""}
|
|
4
|
-
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
5
|
-
`.replace(/\s+/g,"")}}class cP extends h4{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class fP extends cP{toString(){return`
|
|
6
|
-
b_auto:border_gradient
|
|
7
|
-
${this._contrast?"_contrast":""}
|
|
8
|
-
${this._gradientColors?`:${this._gradientColors}`:""}
|
|
9
|
-
${this._gradientDirection?`:${this._gradientDirection}`:""}
|
|
10
|
-
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
11
|
-
`.replace(/\s+/g,"")}}class dP extends cP{toString(){return`
|
|
12
|
-
b_auto:predominant_gradient
|
|
13
|
-
${this._contrast?"_contrast":""}
|
|
14
|
-
${this._gradientColors?`:${this._gradientColors}`:""}
|
|
15
|
-
${this._gradientDirection?`:${this._gradientDirection}`:""}
|
|
16
|
-
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
17
|
-
`.replace(/\s+/g,"")}}class hP extends h4{toString(){return`
|
|
18
|
-
b_auto:predominant
|
|
19
|
-
${this._contrast?"_contrast":""}
|
|
20
|
-
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
21
|
-
`.replace(/\s+/g,"")}}class pP extends Xf{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(t){try{this._prompt=decodeURIComponent(t)}catch{this._prompt=t}return this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return`b_gen_fill${this._prompt?`:prompt_${dj(this._prompt)}`:""}`}}function mP(e){return`${e}`.replace("b_","")}function eK(){return{backgroundType:"auto"}}function tK(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 p4(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function nK(e){return Object.assign(Object.assign({},p4(e)),{backgroundType:"border"})}function gP(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=p4(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function rK(e){return Object.assign(Object.assign({},gP(e)),{backgroundType:"borderGradient"})}function iK(e){return{backgroundType:"color",color:mP(e)}}function aK(e){return Object.assign(Object.assign({},p4(e)),{backgroundType:"predominant"})}function sK(e){return Object.assign(Object.assign({},gP(e)),{backgroundType:"predominantGradient"})}function oK(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function uK(e){return mP(e)==="auto"?eK():e instanceof uP?tK(e):e instanceof lP?nK(e):e instanceof fP?rK(e):e instanceof hP?aK(e):e instanceof dP?sK(e):e instanceof pP?oK(e):iK(e)}function lK(){return new u4("svg")}function m4(){return new u4("auto")}function vP(){return new lP}function yP(){return new Xf("auto")}function bP(){return new fP}function $P(){return new dP}function xP(){return new hP}function wP(e){return new Xf(Vp(e))}function cK(){return new uP}function CP(){return new pP}const EP={auto:yP,border:vP,borderGradient:bP,predominantGradient:$P,predominant:xP,color:wP,blurred:cK,generativeFill:CP};function fK(e){const{brightness:t,intensity:n}=e,r=EP.blurred();return r.brightness(t??Jj),r.intensity(n??oP),r}function Vw(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 Bw(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function dK(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function hK(e){const{backgroundType:t}=e;switch(t){case"auto":return yP();case"blurred":return fK(e);case"border":return Bw(vP(),e);case"borderGradient":return Vw(bP(),e);case"predominant":return Bw(xP(),e);case"predominantGradient":return Vw($P(),e);case"generativeFill":return dK(CP(),e);default:return wP(e.color)}}class pK extends d4{background(t){return this._actionModel.background=uK(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new Ot("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new Ot("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.background&&n.background(hK(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class mK extends d4{x(t){return this._actionModel.x=t,this.addQualifier(new Ot("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Ot("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new Ot("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 gK extends d4{x(t){return this._actionModel.x=t,this.addQualifier(new Ot("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Ot("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 vK(e,t){return new mK("crop",e,t)}function yK(e,t){return new gK("fill",e,t)}function bK(e,t){return new pK("pad",e,t)}class $K extends X2{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=G2[t];const n=new Rn([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new Ot("q",n))}quantization(t){this._actionModel.quantization=t;const n=new Rn([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new Ot("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,a=H2[n]||n,s=new this(a);if(r){const o=rj[r.toUpperCase()];o&&s.chromaSubSampling(+o)}return i&&s.quantization(i),s}}function Np(e){return new Ab("f",e)}function jp(e){return new $K(e)}function xK(){return new aP("north_east")}Ow(70).color("black"),Ow(40).color("white"),bj(),xj();var wK=new Bp().effect($j()).delivery(jp("auto")).delivery(Np(lK())),CK=new Bp().effect(wj()).delivery(jp("auto")).delivery(Np(m4())),EK=new Bp().effect(yj(2e3)).delivery(jp("auto")).delivery(Np(m4())),SK=new Bp().resize(bK("iw_div_2").aspectRatio(1).background(EP.auto())).resize(vK(1,1).gravity(kj(xK()))).resize(yK().height("ih").width("iw")).delivery(jp("auto")).delivery(Np(m4())),Nw={vectorize:wK,pixelate:CK,blur:EK,"predominant-color":SK},jw="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Kw={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},Uw="?_a=",DK=function(){function e(t,n,r,i,a,s,o){var c=this;this.mimeType="video",this.mimeSubTypes=Kw,this.videoElement=t,this.originalVideo=n,this.videoOptions=o,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var d=po(n);Wh(t,n,i,this.htmlPluginState).then(function(){c.htmlPluginState.pluginEventSubscription.forEach(function(h){h()}),c.setVideoAttributes(a,s),c.handleSourceToVideo(d,r)})}return e.prototype.handleSourceToVideo=function(t,n){var r=this;if(n)this.generateUserSources(t,n);else{var i=["webm","mp4","ogv"];i.forEach(function(a){r.appendSourceTag(po(t),a)})}},e.prototype.generateUserSources=function(t,n){var r=this;n.map(function(i){var a=i.type,s=i.codecs,o=i.transcode;return r.appendSourceTag(po(t).transcode(o),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 o=t.toURL(),c=o.split(Uw),d=c[1]?"".concat(Uw).concat(c[1]):"",h=s?"":".".concat(n);a.src="".concat(c[0]).concat(h).concat(d),a.type=r||"video/".concat(Kw[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=po(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 o=s[a],c=o[0],d=o[1];d&&this.videoElement.setAttribute(c,c==="poster"?d:"")}},e.prototype.update=function(t,n,r,i,a){var s=this;if(t!==this.originalVideo){for(var o=this.videoElement.getElementsByTagName("SOURCE");o[0];)o[0].parentNode.removeChild(o[0]);Wh(this.videoElement,t,r,this.htmlPluginState).then(function(){s.setVideoAttributes(i,a),s.handleSourceToVideo(t,n),s.videoElement.load()})}},e}(),AK=typeof ho=="object"&&ho&&ho.Object===Object&&ho,TK=typeof self=="object"&&self&&self.Object===Object&&self;AK||TK||Function("return this")();function g4(){return typeof window<"u"}function PK(e){return e instanceof HTMLImageElement}function _K(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,a=i===void 0?.1:i;return MK.bind(null,r,a)}function MK(e,t,n,r,i,a){return e===void 0&&(e="0px"),t===void 0&&(t=.1),g4()?new Promise(function(s){var o=function(){return s({lazyload:!0})},c=RK(n,o,e,t);i.cleanupCallbacks.push(function(){c(),s("canceled")})}):!1}function FK(){return window&&"IntersectionObserver"in window}function RK(e,t,n,r){try{if(!FK())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 kK(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return OK.bind(null,r)}function OK(e,t,n,r,i,a){Nw[e]||(e="vectorize");var s=Nw[e].actions,o=po(n);if(s.forEach(function(d){o.addAction(d)}),!g4())return n.transformation=o.transformation,!0;if(PK(t)){o.transformation.actions.forEach(function(d,h){d instanceof xa&&d.getActionTag()==="responsive"&&delete o.transformation.actions[h]});var c=Db(i,{placeholder:!0});return t.src=o.toURL(c),t.onerror=function(){t.src=jw},new Promise(function(d){t.onload=function(){d()}}).then(function(){return new Promise(function(d){r.cleanupCallbacks.push(function(){t.src=jw,d("canceled")});var h=new Image;h.src=n.toURL(c),h.onload=function(){d({placeholder:!0})},h.onerror=function(){d({placeholder:!0})}})})}}function IK(e,t,n){var r=po(t);if(e)for(var i=0;i<e.length;i++){var a=e[i](null,r);if(!a)break}return r.toURL(n?{trackedAnalytics:n}:null)}function Hh(e){e.cleanupCallbacks.forEach(function(t){t()})}/*! *****************************************************************************
|
|
22
|
-
Copyright (c) Microsoft Corporation.
|
|
23
|
-
|
|
24
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
25
|
-
purpose with or without fee is hereby granted.
|
|
26
|
-
|
|
27
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
28
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
29
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
30
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
31
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
32
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
33
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
34
|
-
***************************************************************************** */var Tb=function(e,t){return Tb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},Tb(e,t)};function SP(e,t){Tb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Tf=function(){return Tf=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},Tf.apply(this,arguments)};function DP(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 zg={sdkSemver:"1.14.3",techVersion:fe.default.version,sdkCode:"J"},LK=function(e){SP(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=fe.default.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new qN(this.imageRef.current,this.props.cldImg,this.props.plugins,zg)},t.prototype.componentDidUpdate=function(){Hh(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,zg)},t.prototype.componentWillUnmount=function(){Hh(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=DP(n,["cldImg","plugins"]);if(g4())return fe.default.createElement("img",Tf({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=IK(this.props.plugins,this.props.cldImg,zg);return fe.default.createElement("img",Tf({},r,{src:i}))},t}(fe.default.Component),VK=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){SP(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=I.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new DK(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(){Hh(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){Hh(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return VK.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=DP(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return fe.default.createElement("video",Tf({},r,{ref:this.attachRef}))},t})(I.Component);function BK(e){return!(typeof e!="object"||e instanceof Array)}class NK{filterOutNonSupportedKeys(t,n){const r=Object.create({});return BK(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 qw=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class v4 extends NK{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,qw);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,qw);return new v4(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 Pf{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 jK extends Error{constructor(t="Unsupported"){super(t)}}function y4(e){return new jK(e)}function KK(){return this._qualifierModel||{error:y4(`unsupported qualifier ${this.constructor.name}`)}}class UK{constructor(){this._qualifierModel={}}toJson(){return KK.apply(this)}}class Kp extends UK{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof Pf?this.qualifierValue=n:(this.qualifierValue=new Pf,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 yo extends Kp{constructor(t,n){let r;n?r=new Pf([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function qK(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function zK(){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:y4(`unsupported action ${this.constructor.name}`)}}class WK{constructor(){this._actionModel={}}toJson(){return zK.apply(this)}}class b4 extends WK{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(),qK(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 yo(r)):this.qualifiers.set(n,new Kp(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new yo(t)):t instanceof yo&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function HK(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class GK extends b4{constructor(t){super(),this._actionModel={},this.addQualifier(new Kp("b",new Pf(HK(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class zw{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:y4(`unsupported action ${this.constructor.name}`)}}}function YK(e){const t=e;return"error"in t&&!!t.error}function ZK(){return new yo("lossy")}function XK(){return new yo("preserve_transparency")}function JK(e){return new yo("progressive",e)}class QK extends Pf{constructor(t){super(t),this.val=t}getValue(){return this.val}}function _u(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const eU={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},tU={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},nU={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},rU={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},iU={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},aU={444:"CHROMA_444",420:"CHROMA_420"},sU={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};_u(aU);_u(sU);_u(eU);const oU=_u(tU);_u(nU);_u(rU);_u(iU);class uU extends b4{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof QK?i=n.getValue():i=n,this._actionModel.actionType=oU[t],this._actionModel[r]=i,this.addQualifier(new Kp(t,n))}}class lU extends yo{constructor(t){super("progressive",t)}}class Gh extends uU{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(ZK()),this}progressive(t){return t instanceof lU?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(JK(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(XK()),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 Up{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 zw(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof Up?this.actions=this.actions.concat(t.actions):this.actions.push(new zw(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new Gh("q",t)),this}format(t){return this.addAction(new Gh("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new GK(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new b4;let r=t;return typeof t=="string"&&(r=new yo(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(YK(r))return r;t.push(r)}return{actions:t}}}class cU extends Up{}class fU extends Up{}function dU(e){return e.match(/^https?:\//)}function hU(e){return e.indexOf("/")<0}function pU(e){return e.match(/^v[0-9]+/)}function mU(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 gU(e){return e||"image"}function vU(e){return e||"upload"}function yU(e,t,n){const r=n!==!1;return t?`v${t}`:pU(e)||dU(e)||hU(e)?"":r?"v1":""}function $4(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=bU(i,r/i.length)),i.slice(0,r)+String(e))}function bU(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const $U="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yh={};let Ww=0;$U.split("").forEach(e=>{let t=Ww.toString(2);t=$4(t,6,"0"),Yh[t]=e,Ww++});function xU(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function wU(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 $4(t,2,"0")}).join(".")}function Hw(e){let t="";const r=e.split(".").length*6,i=xU(e),a=wU(i);let o=parseInt(a.split(".").join("")).toString(2);if(o=$4(o,r,"0"),o.length%6!==0)throw"Version must be smaller than 43.21.26)";return o.match(/.{1,6}/g).forEach(c=>{t+=Yh[c]}),t}function CU(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 EU="1.21.0";function SU(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 Yh[a]+Yh[s]}function DU(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function AU(e){const t={techVersion:DU(),sdkCode:"T",sdkSemver:EU.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 Gw(e){const t=AU(e),n=CU(t);try{const r=TU(n.techVersion),i=Hw(n.sdkSemver),a=Hw(r),s=SU(n.osVersion),o=n.feature,c=n.sdkCode,{product:d,osType:h}=n;return`D${d}${c}${i}${a}${h}${s}${o}`}catch{return"E"}}function TU(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const Yw={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class PU{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new v4(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=gU(this.assetType),n=vU(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,a=Yw[`${t}/${n}`],s=this.urlConfig.useRootPath,o=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(o&&i==="image/upload")return"iu";if(r){if(a)return a;throw new Error(`URL Suffix only supported for ${Object.keys(Yw).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=mU(this.cloudName,this.urlConfig),i=t?t.toString():"",a=yU(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(c=>c).join("/");{const o=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),a,encodeURI(s).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(h=>h).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),c=this.urlConfig.analytics!==!1&&!s.includes("?");let d="";if(typeof this.urlConfig.queryParams=="object")try{const h=new URLSearchParams(this.urlConfig.queryParams);c&&h.set("_a",Gw(n)),d=h.toString()}catch{console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else d=this.urlConfig.queryParams||"",c&&(d+=`${d.length>0?"&":""}_a=${Gw(n)}`);return d?`${o}?${d}`:o}}}class AP extends PU{constructor(t,n,r,i){super(t,n,r),this.transformation=i}animated(t){return this.transformation.animated(t),this}border(t){return this.transformation.border(t),this}reshape(t){return this.transformation.reshape(t),this}resize(t){return this.transformation.resize(t),this}quality(t){return this.addAction(new Gh("q",t)),this}format(t){return this.addAction(new Gh("f",t)),this}roundCorners(t){return this.transformation.roundCorners(t),this}overlay(t){return this.transformation.overlay(t),this}addVariable(t){return this.transformation.addVariable(t),this}conditional(t){return this.transformation.conditional(t),this}effect(t){return this.transformation.effect(t),this}adjust(t){return this.transformation.adjust(t),this}rotate(t){return this.transformation.rotate(t),this}namedTransformation(t){return this.transformation.namedTransformation(t),this}delivery(t){return this.transformation.delivery(t),this}backgroundColor(t){return this.transformation.backgroundColor(t),this}psdTools(t){return this.transformation.psdTools(t),this}extract(t){return this.transformation.extract(t),this}addFlag(t){return this.transformation.addFlag(t),this}customFunction(t){return this.transformation.customFunction(t),this}addAction(t){return this.transformation.addAction(t),this}addTransformation(t){return this.transformation.addTransformation(t),this}toString(){return this.transformation.toString()}underlay(t){return this.transformation.underlay(t),this}toURL(t={}){return this.createCloudinaryURL(this.transformation,t==null?void 0:t.trackedAnalytics)}}class _U extends AP{constructor(t,n,r){super(t,n,r,new cU)}}class MU extends AP{constructor(t,n,r){super(t,n,r,new fU),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class FU{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new _U(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new MU(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var Wg,Zw;function TP(){if(Zw)return Wg;Zw=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return Wg=e,Wg}var Hg,Xw;function RU(){if(Xw)return Hg;Xw=1;function e(){this.__data__=[],this.size=0}return Hg=e,Hg}var Gg,Jw;function x4(){if(Jw)return Gg;Jw=1;function e(t,n){return t===n||t!==t&&n!==n}return Gg=e,Gg}var Yg,Qw;function qp(){if(Qw)return Yg;Qw=1;var e=x4();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return Yg=t,Yg}var Zg,eC;function kU(){if(eC)return Zg;eC=1;var e=qp(),t=Array.prototype,n=t.splice;function r(i){var a=this.__data__,s=e(a,i);if(s<0)return!1;var o=a.length-1;return s==o?a.pop():n.call(a,s,1),--this.size,!0}return Zg=r,Zg}var Xg,tC;function OU(){if(tC)return Xg;tC=1;var e=qp();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return Xg=t,Xg}var Jg,nC;function IU(){if(nC)return Jg;nC=1;var e=qp();function t(n){return e(this.__data__,n)>-1}return Jg=t,Jg}var Qg,rC;function LU(){if(rC)return Qg;rC=1;var e=qp();function t(n,r){var i=this.__data__,a=e(i,n);return a<0?(++this.size,i.push([n,r])):i[a][1]=r,this}return Qg=t,Qg}var ev,iC;function zp(){if(iC)return ev;iC=1;var e=RU(),t=kU(),n=OU(),r=IU(),i=LU();function a(s){var o=-1,c=s==null?0:s.length;for(this.clear();++o<c;){var d=s[o];this.set(d[0],d[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,ev=a,ev}var tv,aC;function VU(){if(aC)return tv;aC=1;var e=zp();function t(){this.__data__=new e,this.size=0}return tv=t,tv}var nv,sC;function BU(){if(sC)return nv;sC=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return nv=e,nv}var rv,oC;function NU(){if(oC)return rv;oC=1;function e(t){return this.__data__.get(t)}return rv=e,rv}var iv,uC;function jU(){if(uC)return iv;uC=1;function e(t){return this.__data__.has(t)}return iv=e,iv}var av,lC;function Mu(){if(lC)return av;lC=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return av=e,av}var sv,cC;function w4(){if(cC)return sv;cC=1;var e=Ql(),t=Mu(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function s(o){if(!t(o))return!1;var c=e(o);return c==r||c==i||c==n||c==a}return sv=s,sv}var ov,fC;function KU(){if(fC)return ov;fC=1;var e=Us(),t=e["__core-js_shared__"];return ov=t,ov}var uv,dC;function UU(){if(dC)return uv;dC=1;var e=KU(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return uv=n,uv}var lv,hC;function PP(){if(hC)return lv;hC=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return lv=n,lv}var cv,pC;function qU(){if(pC)return cv;pC=1;var e=w4(),t=UU(),n=Mu(),r=PP(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,s=Function.prototype,o=Object.prototype,c=s.toString,d=o.hasOwnProperty,h=RegExp("^"+c.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(g){if(!n(g)||t(g))return!1;var b=e(g)?h:a;return b.test(r(g))}return cv=m,cv}var fv,mC;function zU(){if(mC)return fv;mC=1;function e(t,n){return t==null?void 0:t[n]}return fv=e,fv}var dv,gC;function tc(){if(gC)return dv;gC=1;var e=qU(),t=zU();function n(r,i){var a=t(r,i);return e(a)?a:void 0}return dv=n,dv}var hv,vC;function C4(){if(vC)return hv;vC=1;var e=tc(),t=Us(),n=e(t,"Map");return hv=n,hv}var pv,yC;function Wp(){if(yC)return pv;yC=1;var e=tc(),t=e(Object,"create");return pv=t,pv}var mv,bC;function WU(){if(bC)return mv;bC=1;var e=Wp();function t(){this.__data__=e?e(null):{},this.size=0}return mv=t,mv}var gv,$C;function HU(){if($C)return gv;$C=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return gv=e,gv}var vv,xC;function GU(){if(xC)return vv;xC=1;var e=Wp(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(a){var s=this.__data__;if(e){var o=s[a];return o===t?void 0:o}return r.call(s,a)?s[a]:void 0}return vv=i,vv}var yv,wC;function YU(){if(wC)return yv;wC=1;var e=Wp(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var a=this.__data__;return e?a[i]!==void 0:n.call(a,i)}return yv=r,yv}var bv,CC;function ZU(){if(CC)return bv;CC=1;var e=Wp(),t="__lodash_hash_undefined__";function n(r,i){var a=this.__data__;return this.size+=this.has(r)?0:1,a[r]=e&&i===void 0?t:i,this}return bv=n,bv}var $v,EC;function XU(){if(EC)return $v;EC=1;var e=WU(),t=HU(),n=GU(),r=YU(),i=ZU();function a(s){var o=-1,c=s==null?0:s.length;for(this.clear();++o<c;){var d=s[o];this.set(d[0],d[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,$v=a,$v}var xv,SC;function JU(){if(SC)return xv;SC=1;var e=XU(),t=zp(),n=C4();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return xv=r,xv}var wv,DC;function QU(){if(DC)return wv;DC=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return wv=e,wv}var Cv,AC;function Hp(){if(AC)return Cv;AC=1;var e=QU();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return Cv=t,Cv}var Ev,TC;function eq(){if(TC)return Ev;TC=1;var e=Hp();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Ev=t,Ev}var Sv,PC;function tq(){if(PC)return Sv;PC=1;var e=Hp();function t(n){return e(this,n).get(n)}return Sv=t,Sv}var Dv,_C;function nq(){if(_C)return Dv;_C=1;var e=Hp();function t(n){return e(this,n).has(n)}return Dv=t,Dv}var Av,MC;function rq(){if(MC)return Av;MC=1;var e=Hp();function t(n,r){var i=e(this,n),a=i.size;return i.set(n,r),this.size+=i.size==a?0:1,this}return Av=t,Av}var Tv,FC;function E4(){if(FC)return Tv;FC=1;var e=JU(),t=eq(),n=tq(),r=nq(),i=rq();function a(s){var o=-1,c=s==null?0:s.length;for(this.clear();++o<c;){var d=s[o];this.set(d[0],d[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,Tv=a,Tv}var Pv,RC;function iq(){if(RC)return Pv;RC=1;var e=zp(),t=C4(),n=E4(),r=200;function i(a,s){var o=this.__data__;if(o instanceof e){var c=o.__data__;if(!t||c.length<r-1)return c.push([a,s]),this.size=++o.size,this;o=this.__data__=new n(c)}return o.set(a,s),this.size=o.size,this}return Pv=i,Pv}var _v,kC;function _P(){if(kC)return _v;kC=1;var e=zp(),t=VU(),n=BU(),r=NU(),i=jU(),a=iq();function s(o){var c=this.__data__=new e(o);this.size=c.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=i,s.prototype.set=a,_v=s,_v}var Mv,OC;function aq(){if(OC)return Mv;OC=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Mv=t,Mv}var Fv,IC;function sq(){if(IC)return Fv;IC=1;function e(t){return this.__data__.has(t)}return Fv=e,Fv}var Rv,LC;function oq(){if(LC)return Rv;LC=1;var e=E4(),t=aq(),n=sq();function r(i){var a=-1,s=i==null?0:i.length;for(this.__data__=new e;++a<s;)this.add(i[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Rv=r,Rv}var kv,VC;function uq(){if(VC)return kv;VC=1;function e(t,n){return t.has(n)}return kv=e,kv}var Ov,BC;function MP(){if(BC)return Ov;BC=1;var e=oq(),t=TP(),n=uq(),r=1,i=2;function a(s,o,c,d,h,m){var g=c&r,b=s.length,w=o.length;if(b!=w&&!(g&&w>b))return!1;var x=m.get(s),A=m.get(o);if(x&&A)return x==o&&A==s;var C=-1,E=!0,S=c&i?new e:void 0;for(m.set(s,o),m.set(o,s);++C<b;){var R=s[C],_=o[C];if(d)var F=g?d(_,R,C,o,s,m):d(R,_,C,s,o,m);if(F!==void 0){if(F)continue;E=!1;break}if(S){if(!t(o,function(z,ie){if(!n(S,ie)&&(R===z||h(R,z,c,d,m)))return S.push(ie)})){E=!1;break}}else if(!(R===_||h(R,_,c,d,m))){E=!1;break}}return m.delete(s),m.delete(o),E}return Ov=a,Ov}var Iv,NC;function lq(){if(NC)return Iv;NC=1;var e=Us(),t=e.Uint8Array;return Iv=t,Iv}var Lv,jC;function cq(){if(jC)return Lv;jC=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,a){r[++n]=[a,i]}),r}return Lv=e,Lv}var Vv,KC;function fq(){if(KC)return Vv;KC=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return Vv=e,Vv}var Bv,UC;function dq(){if(UC)return Bv;UC=1;var e=Op(),t=lq(),n=x4(),r=MP(),i=cq(),a=fq(),s=1,o=2,c="[object Boolean]",d="[object Date]",h="[object Error]",m="[object Map]",g="[object Number]",b="[object RegExp]",w="[object Set]",x="[object String]",A="[object Symbol]",C="[object ArrayBuffer]",E="[object DataView]",S=e?e.prototype:void 0,R=S?S.valueOf:void 0;function _(F,z,ie,ge,oe,O,we){switch(ie){case E:if(F.byteLength!=z.byteLength||F.byteOffset!=z.byteOffset)return!1;F=F.buffer,z=z.buffer;case C:return!(F.byteLength!=z.byteLength||!O(new t(F),new t(z)));case c:case d:case g:return n(+F,+z);case h:return F.name==z.name&&F.message==z.message;case b:case x:return F==z+"";case m:var Se=i;case w:var U=ge&s;if(Se||(Se=a),F.size!=z.size&&!U)return!1;var ee=we.get(F);if(ee)return ee==z;ge|=o,we.set(F,z);var K=r(Se(F),Se(z),ge,oe,O,we);return we.delete(F),K;case A:if(R)return R.call(F)==R.call(z)}return!1}return Bv=_,Bv}var Nv,qC;function hq(){if(qC)return Nv;qC=1;function e(t,n){for(var r=-1,i=n.length,a=t.length;++r<i;)t[a+r]=n[r];return t}return Nv=e,Nv}var jv,zC;function pq(){if(zC)return jv;zC=1;var e=hq(),t=ts();function n(r,i,a){var s=i(r);return t(r)?s:e(s,a(r))}return jv=n,jv}var Kv,WC;function mq(){if(WC)return Kv;WC=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=0,s=[];++r<i;){var o=t[r];n(o,r,t)&&(s[a++]=o)}return s}return Kv=e,Kv}var Uv,HC;function gq(){if(HC)return Uv;HC=1;function e(){return[]}return Uv=e,Uv}var qv,GC;function vq(){if(GC)return qv;GC=1;var e=mq(),t=gq(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(s){return s==null?[]:(s=Object(s),e(i(s),function(o){return r.call(s,o)}))}:t;return qv=a,qv}var zv,YC;function yq(){if(YC)return zv;YC=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return zv=e,zv}var Wv,ZC;function bq(){if(ZC)return Wv;ZC=1;var e=Ql(),t=ec(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return Wv=r,Wv}var Hv,XC;function FP(){if(XC)return Hv;XC=1;var e=bq(),t=ec(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,a=e(function(){return arguments}())?e:function(s){return t(s)&&r.call(s,"callee")&&!i.call(s,"callee")};return Hv=a,Hv}var of={exports:{}},Gv,JC;function $q(){if(JC)return Gv;JC=1;function e(){return!1}return Gv=e,Gv}of.exports;var QC;function S4(){return QC||(QC=1,function(e,t){var n=Us(),r=$q(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===i,o=s?n.Buffer:void 0,c=o?o.isBuffer:void 0,d=c||r;e.exports=d}(of,of.exports)),of.exports}var Yv,eE;function D4(){if(eE)return Yv;eE=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var a=typeof r;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return Yv=n,Yv}var Zv,tE;function A4(){if(tE)return Zv;tE=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Zv=t,Zv}var Xv,nE;function xq(){if(nE)return Xv;nE=1;var e=Ql(),t=A4(),n=ec(),r="[object Arguments]",i="[object Array]",a="[object Boolean]",s="[object Date]",o="[object Error]",c="[object Function]",d="[object Map]",h="[object Number]",m="[object Object]",g="[object RegExp]",b="[object Set]",w="[object String]",x="[object WeakMap]",A="[object ArrayBuffer]",C="[object DataView]",E="[object Float32Array]",S="[object Float64Array]",R="[object Int8Array]",_="[object Int16Array]",F="[object Int32Array]",z="[object Uint8Array]",ie="[object Uint8ClampedArray]",ge="[object Uint16Array]",oe="[object Uint32Array]",O={};O[E]=O[S]=O[R]=O[_]=O[F]=O[z]=O[ie]=O[ge]=O[oe]=!0,O[r]=O[i]=O[A]=O[a]=O[C]=O[s]=O[o]=O[c]=O[d]=O[h]=O[m]=O[g]=O[b]=O[w]=O[x]=!1;function we(Se){return n(Se)&&t(Se.length)&&!!O[e(Se)]}return Xv=we,Xv}var Jv,rE;function wq(){if(rE)return Jv;rE=1;function e(t){return function(n){return t(n)}}return Jv=e,Jv}var uf={exports:{}};uf.exports;var iE;function Cq(){return iE||(iE=1,function(e,t){var n=K2(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,s=a&&n.process,o=function(){try{var c=i&&i.require&&i.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}}();e.exports=o}(uf,uf.exports)),uf.exports}var Qv,aE;function T4(){if(aE)return Qv;aE=1;var e=xq(),t=wq(),n=Cq(),r=n&&n.isTypedArray,i=r?t(r):e;return Qv=i,Qv}var ey,sE;function Eq(){if(sE)return ey;sE=1;var e=yq(),t=FP(),n=ts(),r=S4(),i=D4(),a=T4(),s=Object.prototype,o=s.hasOwnProperty;function c(d,h){var m=n(d),g=!m&&t(d),b=!m&&!g&&r(d),w=!m&&!g&&!b&&a(d),x=m||g||b||w,A=x?e(d.length,String):[],C=A.length;for(var E in d)(h||o.call(d,E))&&!(x&&(E=="length"||b&&(E=="offset"||E=="parent")||w&&(E=="buffer"||E=="byteLength"||E=="byteOffset")||i(E,C)))&&A.push(E);return A}return ey=c,ey}var ty,oE;function Sq(){if(oE)return ty;oE=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return ty=t,ty}var ny,uE;function RP(){if(uE)return ny;uE=1;function e(t,n){return function(r){return t(n(r))}}return ny=e,ny}var ry,lE;function Dq(){if(lE)return ry;lE=1;var e=RP(),t=e(Object.keys,Object);return ry=t,ry}var iy,cE;function Aq(){if(cE)return iy;cE=1;var e=Sq(),t=Dq(),n=Object.prototype,r=n.hasOwnProperty;function i(a){if(!e(a))return t(a);var s=[];for(var o in Object(a))r.call(a,o)&&o!="constructor"&&s.push(o);return s}return iy=i,iy}var ay,fE;function P4(){if(fE)return ay;fE=1;var e=w4(),t=A4();function n(r){return r!=null&&t(r.length)&&!e(r)}return ay=n,ay}var sy,dE;function _4(){if(dE)return sy;dE=1;var e=Eq(),t=Aq(),n=P4();function r(i){return n(i)?e(i):t(i)}return sy=r,sy}var oy,hE;function Tq(){if(hE)return oy;hE=1;var e=pq(),t=vq(),n=_4();function r(i){return e(i,n,t)}return oy=r,oy}var uy,pE;function Pq(){if(pE)return uy;pE=1;var e=Tq(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(a,s,o,c,d,h){var m=o&t,g=e(a),b=g.length,w=e(s),x=w.length;if(b!=x&&!m)return!1;for(var A=b;A--;){var C=g[A];if(!(m?C in s:r.call(s,C)))return!1}var E=h.get(a),S=h.get(s);if(E&&S)return E==s&&S==a;var R=!0;h.set(a,s),h.set(s,a);for(var _=m;++A<b;){C=g[A];var F=a[C],z=s[C];if(c)var ie=m?c(z,F,C,s,a,h):c(F,z,C,a,s,h);if(!(ie===void 0?F===z||d(F,z,o,c,h):ie)){R=!1;break}_||(_=C=="constructor")}if(R&&!_){var ge=a.constructor,oe=s.constructor;ge!=oe&&"constructor"in a&&"constructor"in s&&!(typeof ge=="function"&&ge instanceof ge&&typeof oe=="function"&&oe instanceof oe)&&(R=!1)}return h.delete(a),h.delete(s),R}return uy=i,uy}var ly,mE;function _q(){if(mE)return ly;mE=1;var e=tc(),t=Us(),n=e(t,"DataView");return ly=n,ly}var cy,gE;function Mq(){if(gE)return cy;gE=1;var e=tc(),t=Us(),n=e(t,"Promise");return cy=n,cy}var fy,vE;function Fq(){if(vE)return fy;vE=1;var e=tc(),t=Us(),n=e(t,"Set");return fy=n,fy}var dy,yE;function Rq(){if(yE)return dy;yE=1;var e=tc(),t=Us(),n=e(t,"WeakMap");return dy=n,dy}var hy,bE;function kq(){if(bE)return hy;bE=1;var e=_q(),t=C4(),n=Mq(),r=Fq(),i=Rq(),a=Ql(),s=PP(),o="[object Map]",c="[object Object]",d="[object Promise]",h="[object Set]",m="[object WeakMap]",g="[object DataView]",b=s(e),w=s(t),x=s(n),A=s(r),C=s(i),E=a;return(e&&E(new e(new ArrayBuffer(1)))!=g||t&&E(new t)!=o||n&&E(n.resolve())!=d||r&&E(new r)!=h||i&&E(new i)!=m)&&(E=function(S){var R=a(S),_=R==c?S.constructor:void 0,F=_?s(_):"";if(F)switch(F){case b:return g;case w:return o;case x:return d;case A:return h;case C:return m}return R}),hy=E,hy}var py,$E;function Oq(){if($E)return py;$E=1;var e=_P(),t=MP(),n=dq(),r=Pq(),i=kq(),a=ts(),s=S4(),o=T4(),c=1,d="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype,b=g.hasOwnProperty;function w(x,A,C,E,S,R){var _=a(x),F=a(A),z=_?h:i(x),ie=F?h:i(A);z=z==d?m:z,ie=ie==d?m:ie;var ge=z==m,oe=ie==m,O=z==ie;if(O&&s(x)){if(!s(A))return!1;_=!0,ge=!1}if(O&&!ge)return R||(R=new e),_||o(x)?t(x,A,C,E,S,R):n(x,A,z,C,E,S,R);if(!(C&c)){var we=ge&&b.call(x,"__wrapped__"),Se=oe&&b.call(A,"__wrapped__");if(we||Se){var U=we?x.value():x,ee=Se?A.value():A;return R||(R=new e),S(U,ee,C,E,R)}}return O?(R||(R=new e),r(x,A,C,E,S,R)):!1}return py=w,py}var my,xE;function M4(){if(xE)return my;xE=1;var e=Oq(),t=ec();function n(r,i,a,s,o){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,a,s,n,o)}return my=n,my}var gy,wE;function Iq(){if(wE)return gy;wE=1;var e=_P(),t=M4(),n=1,r=2;function i(a,s,o,c){var d=o.length,h=d,m=!c;if(a==null)return!h;for(a=Object(a);d--;){var g=o[d];if(m&&g[2]?g[1]!==a[g[0]]:!(g[0]in a))return!1}for(;++d<h;){g=o[d];var b=g[0],w=a[b],x=g[1];if(m&&g[2]){if(w===void 0&&!(b in a))return!1}else{var A=new e;if(c)var C=c(w,x,b,a,s,A);if(!(C===void 0?t(x,w,n|r,c,A):C))return!1}}return!0}return gy=i,gy}var vy,CE;function kP(){if(CE)return vy;CE=1;var e=Mu();function t(n){return n===n&&!e(n)}return vy=t,vy}var yy,EE;function Lq(){if(EE)return yy;EE=1;var e=kP(),t=_4();function n(r){for(var i=t(r),a=i.length;a--;){var s=i[a],o=r[s];i[a]=[s,o,e(o)]}return i}return yy=n,yy}var by,SE;function OP(){if(SE)return by;SE=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return by=e,by}var $y,DE;function Vq(){if(DE)return $y;DE=1;var e=Iq(),t=Lq(),n=OP();function r(i){var a=t(i);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(s){return s===i||e(s,i,a)}}return $y=r,$y}var xy,AE;function F4(){if(AE)return xy;AE=1;var e=ts(),t=Ip(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(a,s){if(e(a))return!1;var o=typeof a;return o=="number"||o=="symbol"||o=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||s!=null&&a in Object(s)}return xy=i,xy}var wy,TE;function Bq(){if(TE)return wy;TE=1;var e=E4(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var s=arguments,o=i?i.apply(this,s):s[0],c=a.cache;if(c.has(o))return c.get(o);var d=r.apply(this,s);return a.cache=c.set(o,d)||c,d};return a.cache=new(n.Cache||e),a}return n.Cache=e,wy=n,wy}var Cy,PE;function Nq(){if(PE)return Cy;PE=1;var e=Bq(),t=500;function n(r){var i=e(r,function(s){return a.size===t&&a.clear(),s}),a=i.cache;return i}return Cy=n,Cy}var Ey,_E;function jq(){if(_E)return Ey;_E=1;var e=Nq(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(s,o,c,d){a.push(c?d.replace(n,"$1"):o||s)}),a});return Ey=r,Ey}var Sy,ME;function IP(){if(ME)return Sy;ME=1;var e=ts(),t=F4(),n=jq(),r=a4();function i(a,s){return e(a)?a:t(a,s)?[a]:n(r(a))}return Sy=i,Sy}var Dy,FE;function Gp(){if(FE)return Dy;FE=1;var e=Ip();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return Dy=t,Dy}var Ay,RE;function LP(){if(RE)return Ay;RE=1;var e=IP(),t=Gp();function n(r,i){i=e(i,r);for(var a=0,s=i.length;r!=null&&a<s;)r=r[t(i[a++])];return a&&a==s?r:void 0}return Ay=n,Ay}var Ty,kE;function Kq(){if(kE)return Ty;kE=1;var e=LP();function t(n,r,i){var a=n==null?void 0:e(n,r);return a===void 0?i:a}return Ty=t,Ty}var Py,OE;function Uq(){if(OE)return Py;OE=1;function e(t,n){return t!=null&&n in Object(t)}return Py=e,Py}var _y,IE;function qq(){if(IE)return _y;IE=1;var e=IP(),t=FP(),n=ts(),r=D4(),i=A4(),a=Gp();function s(o,c,d){c=e(c,o);for(var h=-1,m=c.length,g=!1;++h<m;){var b=a(c[h]);if(!(g=o!=null&&d(o,b)))break;o=o[b]}return g||++h!=m?g:(m=o==null?0:o.length,!!m&&i(m)&&r(b,m)&&(n(o)||t(o)))}return _y=s,_y}var My,LE;function zq(){if(LE)return My;LE=1;var e=Uq(),t=qq();function n(r,i){return r!=null&&t(r,i,e)}return My=n,My}var Fy,VE;function Wq(){if(VE)return Fy;VE=1;var e=M4(),t=Kq(),n=zq(),r=F4(),i=kP(),a=OP(),s=Gp(),o=1,c=2;function d(h,m){return r(h)&&i(m)?a(s(h),m):function(g){var b=t(g,h);return b===void 0&&b===m?n(g,h):e(m,b,o|c)}}return Fy=d,Fy}var Ry,BE;function Hq(){if(BE)return Ry;BE=1;function e(t){return t}return Ry=e,Ry}var ky,NE;function Gq(){if(NE)return ky;NE=1;function e(t){return function(n){return n==null?void 0:n[t]}}return ky=e,ky}var Oy,jE;function Yq(){if(jE)return Oy;jE=1;var e=LP();function t(n){return function(r){return e(r,n)}}return Oy=t,Oy}var Iy,KE;function Zq(){if(KE)return Iy;KE=1;var e=Gq(),t=Yq(),n=F4(),r=Gp();function i(a){return n(a)?e(r(a)):t(a)}return Iy=i,Iy}var Ly,UE;function VP(){if(UE)return Ly;UE=1;var e=Vq(),t=Wq(),n=Hq(),r=ts(),i=Zq();function a(s){return typeof s=="function"?s:s==null?n:typeof s=="object"?r(s)?t(s[0],s[1]):e(s):i(s)}return Ly=a,Ly}var Vy,qE;function Xq(){if(qE)return Vy;qE=1;function e(t){return function(n,r,i){for(var a=-1,s=Object(n),o=i(n),c=o.length;c--;){var d=o[t?c:++a];if(r(s[d],d,s)===!1)break}return n}}return Vy=e,Vy}var By,zE;function Jq(){if(zE)return By;zE=1;var e=Xq(),t=e();return By=t,By}var Ny,WE;function BP(){if(WE)return Ny;WE=1;var e=Jq(),t=_4();function n(r,i){return r&&e(r,i,t)}return Ny=n,Ny}var jy,HE;function Qq(){if(HE)return jy;HE=1;var e=P4();function t(n,r){return function(i,a){if(i==null)return i;if(!e(i))return n(i,a);for(var s=i.length,o=r?s:-1,c=Object(i);(r?o--:++o<s)&&a(c[o],o,c)!==!1;);return i}}return jy=t,jy}var Ky,GE;function ez(){if(GE)return Ky;GE=1;var e=BP(),t=Qq(),n=t(e);return Ky=n,Ky}var Uy,YE;function tz(){if(YE)return Uy;YE=1;var e=ez();function t(n,r){var i;return e(n,function(a,s,o){return i=r(a,s,o),!i}),!!i}return Uy=t,Uy}var qy,ZE;function NP(){if(ZE)return qy;ZE=1;var e=x4(),t=P4(),n=D4(),r=Mu();function i(a,s,o){if(!r(o))return!1;var c=typeof s;return(c=="number"?t(o)&&n(s,o.length):c=="string"&&s in o)?e(o[s],a):!1}return qy=i,qy}var zy,XE;function nz(){if(XE)return zy;XE=1;var e=TP(),t=VP(),n=tz(),r=ts(),i=NP();function a(s,o,c){var d=r(s)?e:n;return c&&i(s,o,c)&&(o=void 0),d(s,t(o,3))}return zy=a,zy}var rz=nz();const iz=yr(rz);var lf={exports:{}};/**
|
|
35
|
-
* @license
|
|
36
|
-
* Lodash <https://lodash.com/>
|
|
37
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
38
|
-
* Released under MIT license <https://lodash.com/license>
|
|
39
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
40
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
41
|
-
*/var az=lf.exports,JE;function sz(){return JE||(JE=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",o="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,g=2,b=4,w=1,x=2,A=1,C=2,E=4,S=8,R=16,_=32,F=64,z=128,ie=256,ge=512,oe=30,O="...",we=800,Se=16,U=1,ee=2,K=3,k=1/0,N=9007199254740991,te=17976931348623157e292,j=NaN,ce=4294967295,ue=ce-1,Ae=ce>>>1,_e=[["ary",z],["bind",A],["bindKey",C],["curry",S],["curryRight",R],["flip",ge],["partial",_],["partialRight",F],["rearg",ie]],Le="[object Arguments]",Ye="[object Array]",Qe="[object AsyncFunction]",Ue="[object Boolean]",Ge="[object Date]",Ie="[object DOMException]",Ne="[object Error]",Te="[object Function]",He="[object GeneratorFunction]",ht="[object Map]",Ht="[object Number]",$t="[object Null]",_t="[object Object]",zr="[object Promise]",Qt="[object Proxy]",be="[object RegExp]",De="[object Set]",Me="[object String]",Xe="[object Symbol]",tt="[object Undefined]",Je="[object WeakMap]",gt="[object WeakSet]",Rt="[object ArrayBuffer]",xt="[object DataView]",gn="[object Float32Array]",br="[object Float64Array]",Ut="[object Int8Array]",Pt="[object Int16Array]",It="[object Int32Array]",qt="[object Uint8Array]",fr="[object Uint8ClampedArray]",Wr="[object Uint16Array]",si="[object Uint32Array]",Pr=/\b__p \+= '';/g,Ea=/\b(__p \+=) '' \+/g,Ao=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bt=/&(?:amp|lt|gt|quot|#39);/g,oi=/[&<>"']/g,is=RegExp(bt.source),vc=RegExp(oi.source),Ou=/<%-([\s\S]+?)%>/g,yc=/<%([\s\S]+?)%>/g,Iu=/<%=([\s\S]+?)%>/g,To=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Lu=/^\w*$/,Xi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ji=/[\\^$.*+?()[\]{}|]/g,yt=RegExp(Ji.source),Cn=/^\s+/,as=/\s/,Vu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$r=/\{\n\/\* \[wrapped with (.+)\] \*/,Bu=/,? & /,Nu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,bc=/[()=,{}\[\]\/\s]/,Hr=/\\(\\)?/g,at=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,cn=/\w*$/,Qi=/^[-+]0x[0-9a-f]+$/i,ui=/^0b[01]+$/i,Yn=/^\[object .+?Constructor\]$/,Po=/^0o[0-7]+$/i,Sa=/^(?:0|[1-9]\d*)$/,li=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kn=/($^)/,Ws=/['\n\r\u2028\u2029\\]/g,jt="\\ud800-\\udfff",$c="\\u0300-\\u036f",ju="\\ufe20-\\ufe2f",xc="\\u20d0-\\u20ff",_o=$c+ju+xc,ss="\\u2700-\\u27bf",Ku="a-z\\xdf-\\xf6\\xf8-\\xff",Mo="\\xac\\xb1\\xd7\\xf7",wc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Cc="\\u2000-\\u206f",Ec=" \\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",Uu="A-Z\\xc0-\\xd6\\xd8-\\xde",Fo="\\ufe0e\\ufe0f",Ro=Mo+wc+Cc+Ec,os="['’]",qu="["+jt+"]",zu="["+Ro+"]",_r="["+_o+"]",dr="\\d+",Mr="["+ss+"]",Da="["+Ku+"]",Hs="[^"+jt+Ro+dr+ss+Ku+Uu+"]",hr="\\ud83c[\\udffb-\\udfff]",us="(?:"+_r+"|"+hr+")",ls="[^"+jt+"]",Ci="(?:\\ud83c[\\udde6-\\uddff]){2}",ci="[\\ud800-\\udbff][\\udc00-\\udfff]",rr="["+Uu+"]",Ei="\\u200d",ko="(?:"+Da+"|"+Hs+")",Wu="(?:"+rr+"|"+Hs+")",dn="(?:"+os+"(?:d|ll|m|re|s|t|ve))?",Oo="(?:"+os+"(?:D|LL|M|RE|S|T|VE))?",cs=us+"?",Io="["+Fo+"]?",Hu="(?:"+Ei+"(?:"+[ls,Ci,ci].join("|")+")"+Io+cs+")*",Fr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Aa=Io+cs+Hu,Ta="(?:"+[Mr,Ci,ci].join("|")+")"+Aa,fs="(?:"+[ls+_r+"?",_r,Ci,ci,qu].join("|")+")",ea=RegExp(os,"g"),ds=RegExp(_r,"g"),Gs=RegExp(hr+"(?="+hr+")|"+fs+Aa,"g"),Gu=RegExp([rr+"?"+Da+"+"+dn+"(?="+[zu,rr,"$"].join("|")+")",Wu+"+"+Oo+"(?="+[zu,rr+ko,"$"].join("|")+")",rr+"?"+ko+"+"+dn,rr+"+"+Oo,Lo,Fr,dr,Ta].join("|"),"g"),Sc=RegExp("["+Ei+jt+_o+Fo+"]"),hs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Dc=["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"],ps=-1,Gt={};Gt[gn]=Gt[br]=Gt[Ut]=Gt[Pt]=Gt[It]=Gt[qt]=Gt[fr]=Gt[Wr]=Gt[si]=!0,Gt[Le]=Gt[Ye]=Gt[Rt]=Gt[Ue]=Gt[xt]=Gt[Ge]=Gt[Ne]=Gt[Te]=Gt[ht]=Gt[Ht]=Gt[_t]=Gt[be]=Gt[De]=Gt[Me]=Gt[Je]=!1;var en={};en[Le]=en[Ye]=en[Rt]=en[xt]=en[Ue]=en[Ge]=en[gn]=en[br]=en[Ut]=en[Pt]=en[It]=en[ht]=en[Ht]=en[_t]=en[be]=en[De]=en[Me]=en[Xe]=en[qt]=en[fr]=en[Wr]=en[si]=!0,en[Ne]=en[Te]=en[Je]=!1;var ae={À:"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"},Fe={"&":"&","<":"<",">":">",'"':""","'":"'"},ze={"&":"&","<":"<",">":">",""":'"',"'":"'"},pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},vn=parseFloat,tr=parseInt,ir=typeof Ui=="object"&&Ui&&Ui.Object===Object&&Ui,Bn=typeof self=="object"&&self&&self.Object===Object&&self,En=ir||Bn||Function("return this")(),Si=t&&!t.nodeType&&t,Di=Si&&!0&&e&&!e.nodeType&&e,Vo=Di&&Di.exports===Si,Ys=Vo&&ir.process,ar=function(){try{var M=Di&&Di.require&&Di.require("util").types;return M||Ys&&Ys.binding&&Ys.binding("util")}catch{}}(),ms=ar&&ar.isArrayBuffer,Td=ar&&ar.isDate,Pd=ar&&ar.isMap,Ac=ar&&ar.isRegExp,Zs=ar&&ar.isSet,ta=ar&&ar.isTypedArray;function On(M,Q,G){switch(G.length){case 0:return M.call(Q);case 1:return M.call(Q,G[0]);case 2:return M.call(Q,G[0],G[1]);case 3:return M.call(Q,G[0],G[1],G[2])}return M.apply(Q,G)}function Pa(M,Q,G,he){for(var de=-1,W=M==null?0:M.length;++de<W;){var Y=M[de];Q(he,Y,G(Y),M)}return he}function fn(M,Q){for(var G=-1,he=M==null?0:M.length;++G<he&&Q(M[G],G,M)!==!1;);return M}function sr(M,Q){for(var G=M==null?0:M.length;G--&&Q(M[G],G,M)!==!1;);return M}function gs(M,Q){for(var G=-1,he=M==null?0:M.length;++G<he;)if(!Q(M[G],G,M))return!1;return!0}function xr(M,Q){for(var G=-1,he=M==null?0:M.length,de=0,W=[];++G<he;){var Y=M[G];Q(Y,G,M)&&(W[de++]=Y)}return W}function _a(M,Q){var G=M==null?0:M.length;return!!G&&vs(M,Q,0)>-1}function Yu(M,Q,G){for(var he=-1,de=M==null?0:M.length;++he<de;)if(G(Q,M[he]))return!0;return!1}function un(M,Q){for(var G=-1,he=M==null?0:M.length,de=Array(he);++G<he;)de[G]=Q(M[G],G,M);return de}function na(M,Q){for(var G=-1,he=Q.length,de=M.length;++G<he;)M[de+G]=Q[G];return M}function Zu(M,Q,G,he){var de=-1,W=M==null?0:M.length;for(he&&W&&(G=M[++de]);++de<W;)G=Q(G,M[de],de,M);return G}function Bo(M,Q,G,he){var de=M==null?0:M.length;for(he&&de&&(G=M[--de]);de--;)G=Q(G,M[de],de,M);return G}function Ma(M,Q){for(var G=-1,he=M==null?0:M.length;++G<he;)if(Q(M[G],G,M))return!0;return!1}var No=Xu("length");function jo(M){return M.split("")}function Pm(M){return M.match(Nu)||[]}function Tc(M,Q,G){var he;return G(M,function(de,W,Y){if(Q(de,W,Y))return he=W,!1}),he}function Ko(M,Q,G,he){for(var de=M.length,W=G+(he?1:-1);he?W--:++W<de;)if(Q(M[W],W,M))return W;return-1}function vs(M,Q,G){return Q===Q?p(M,Q,G):Ko(M,Pc,G)}function _d(M,Q,G,he){for(var de=G-1,W=M.length;++de<W;)if(he(M[de],Q))return de;return-1}function Pc(M){return M!==M}function Uo(M,Q){var G=M==null?0:M.length;return G?Fa(M,Q)/G:j}function Xu(M){return function(Q){return Q==null?n:Q[M]}}function Ju(M){return function(Q){return M==null?n:M[Q]}}function _c(M,Q,G,he,de){return de(M,function(W,Y,L){G=he?(he=!1,W):Q(G,W,Y,L)}),G}function qo(M,Q){var G=M.length;for(M.sort(Q);G--;)M[G]=M[G].value;return M}function Fa(M,Q){for(var G,he=-1,de=M.length;++he<de;){var W=Q(M[he]);W!==n&&(G=G===n?W:G+W)}return G}function Qu(M,Q){for(var G=-1,he=Array(M);++G<M;)he[G]=Q(G);return he}function _m(M,Q){return un(Q,function(G){return[G,M[G]]})}function Md(M){return M&&M.slice(0,P(M)+1).replace(Cn,"")}function wr(M){return function(Q){return M(Q)}}function Mc(M,Q){return un(Q,function(G){return M[G]})}function hn(M,Q){return M.has(Q)}function el(M,Q){for(var G=-1,he=M.length;++G<he&&vs(Q,M[G],0)>-1;);return G}function or(M,Q){for(var G=M.length;G--&&vs(Q,M[G],0)>-1;);return G}function Mm(M,Q){for(var G=M.length,he=0;G--;)M[G]===Q&&++he;return he}var Fm=Ju(ae),ys=Ju(Fe);function fi(M){return"\\"+pt[M]}function Rm(M,Q){return M==null?n:M[Q]}function Cr(M){return Sc.test(M)}function Fc(M){return hs.test(M)}function Ra(M){for(var Q,G=[];!(Q=M.next()).done;)G.push(Q.value);return G}function In(M){var Q=-1,G=Array(M.size);return M.forEach(function(he,de){G[++Q]=[de,he]}),G}function Ai(M,Q){return function(G){return M(Q(G))}}function Gr(M,Q){for(var G=-1,he=M.length,de=0,W=[];++G<he;){var Y=M[G];(Y===Q||Y===h)&&(M[G]=h,W[de++]=G)}return W}function Xs(M){var Q=-1,G=Array(M.size);return M.forEach(function(he){G[++Q]=he}),G}function l(M){var Q=-1,G=Array(M.size);return M.forEach(function(he){G[++Q]=[he,he]}),G}function p(M,Q,G){for(var he=G-1,de=M.length;++he<de;)if(M[he]===Q)return he;return-1}function v(M,Q,G){for(var he=G+1;he--;)if(M[he]===Q)return he;return he}function $(M){return Cr(M)?me(M):No(M)}function T(M){return Cr(M)?J(M):jo(M)}function P(M){for(var Q=M.length;Q--&&as.test(M.charAt(Q)););return Q}var q=Ju(ze);function me(M){for(var Q=Gs.lastIndex=0;Gs.test(M);)++Q;return Q}function J(M){return M.match(Gs)||[]}function $e(M){return M.match(Gu)||[]}var Ce=function M(Q){Q=Q==null?En:Re.defaults(En.Object(),Q,Re.pick(En,Dc));var G=Q.Array,he=Q.Date,de=Q.Error,W=Q.Function,Y=Q.Math,L=Q.Object,B=Q.RegExp,H=Q.String,ne=Q.TypeError,se=G.prototype,pe=W.prototype,Oe=L.prototype,nt=Q["__core-js_shared__"],et=pe.toString,Be=Oe.hasOwnProperty,ot=0,ct=function(){var u=/[^.]+$/.exec(nt&&nt.keys&&nt.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),Ve=Oe.toString,xe=et.call(L),le=En._,X=B("^"+et.call(Be).replace(Ji,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ve=Vo?Q.Buffer:n,je=Q.Symbol,ke=Q.Uint8Array,lt=ve?ve.allocUnsafe:n,At=Ai(L.getPrototypeOf,L),Ct=L.create,yn=Oe.propertyIsEnumerable,zt=se.splice,ur=je?je.isConcatSpreadable:n,Zn=je?je.iterator:n,Ln=je?je.toStringTag:n,Nn=function(){try{var u=Yo(L,"defineProperty");return u({},"",{}),u}catch{}}(),jn=Q.clearTimeout!==En.clearTimeout&&Q.clearTimeout,pr=he&&he.now!==En.Date.now&&he.now,ft=Q.setTimeout!==En.setTimeout&&Q.setTimeout,ln=Y.ceil,Yr=Y.floor,Ti=L.getOwnPropertySymbols,ra=ve?ve.isBuffer:n,di=Q.isFinite,ia=se.join,aa=Ai(L.keys,L),Yt=Y.max,bn=Y.min,ka=he.now,hi=Q.parseInt,sa=Y.random,pi=se.reverse,oa=Yo(Q,"DataView"),Oa=Yo(Q,"Map"),Js=Yo(Q,"Promise"),tl=Yo(Q,"Set"),Rc=Yo(Q,"WeakMap"),kc=Yo(L,"create"),Fd=Rc&&new Rc,nl={},kI=Zo(oa),OI=Zo(Oa),II=Zo(Js),LI=Zo(tl),VI=Zo(Rc),Rd=je?je.prototype:n,Oc=Rd?Rd.valueOf:n,F$=Rd?Rd.toString:n;function Z(u){if(Vn(u)&&!Mt(u)&&!(u instanceof Kt)){if(u instanceof Pi)return u;if(Be.call(u,"__wrapped__"))return Rx(u)}return new Pi(u)}var rl=function(){function u(){}return function(f){if(!Tn(f))return{};if(Ct)return Ct(f);u.prototype=f;var y=new u;return u.prototype=n,y}}();function kd(){}function Pi(u,f){this.__wrapped__=u,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}Z.templateSettings={escape:Ou,evaluate:yc,interpolate:Iu,variable:"",imports:{_:Z}},Z.prototype=kd.prototype,Z.prototype.constructor=Z,Pi.prototype=rl(kd.prototype),Pi.prototype.constructor=Pi;function Kt(u){this.__wrapped__=u,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ce,this.__views__=[]}function BI(){var u=new Kt(this.__wrapped__);return u.__actions__=Zr(this.__actions__),u.__dir__=this.__dir__,u.__filtered__=this.__filtered__,u.__iteratees__=Zr(this.__iteratees__),u.__takeCount__=this.__takeCount__,u.__views__=Zr(this.__views__),u}function NI(){if(this.__filtered__){var u=new Kt(this);u.__dir__=-1,u.__filtered__=!0}else u=this.clone(),u.__dir__*=-1;return u}function jI(){var u=this.__wrapped__.value(),f=this.__dir__,y=Mt(u),D=f<0,V=y?u.length:0,re=Q9(0,V,this.__views__),ye=re.start,Ee=re.end,Pe=Ee-ye,qe=D?Ee:ye-1,We=this.__iteratees__,Ze=We.length,st=0,vt=bn(Pe,this.__takeCount__);if(!y||!D&&V==Pe&&vt==Pe)return nx(u,this.__actions__);var Et=[];e:for(;Pe--&&st<vt;){qe+=f;for(var Lt=-1,St=u[qe];++Lt<Ze;){var Bt=We[Lt],Wt=Bt.iteratee,vi=Bt.type,Or=Wt(St);if(vi==ee)St=Or;else if(!Or){if(vi==U)continue e;break e}}Et[st++]=St}return Et}Kt.prototype=rl(kd.prototype),Kt.prototype.constructor=Kt;function zo(u){var f=-1,y=u==null?0:u.length;for(this.clear();++f<y;){var D=u[f];this.set(D[0],D[1])}}function KI(){this.__data__=kc?kc(null):{},this.size=0}function UI(u){var f=this.has(u)&&delete this.__data__[u];return this.size-=f?1:0,f}function qI(u){var f=this.__data__;if(kc){var y=f[u];return y===c?n:y}return Be.call(f,u)?f[u]:n}function zI(u){var f=this.__data__;return kc?f[u]!==n:Be.call(f,u)}function WI(u,f){var y=this.__data__;return this.size+=this.has(u)?0:1,y[u]=kc&&f===n?c:f,this}zo.prototype.clear=KI,zo.prototype.delete=UI,zo.prototype.get=qI,zo.prototype.has=zI,zo.prototype.set=WI;function bs(u){var f=-1,y=u==null?0:u.length;for(this.clear();++f<y;){var D=u[f];this.set(D[0],D[1])}}function HI(){this.__data__=[],this.size=0}function GI(u){var f=this.__data__,y=Od(f,u);if(y<0)return!1;var D=f.length-1;return y==D?f.pop():zt.call(f,y,1),--this.size,!0}function YI(u){var f=this.__data__,y=Od(f,u);return y<0?n:f[y][1]}function ZI(u){return Od(this.__data__,u)>-1}function XI(u,f){var y=this.__data__,D=Od(y,u);return D<0?(++this.size,y.push([u,f])):y[D][1]=f,this}bs.prototype.clear=HI,bs.prototype.delete=GI,bs.prototype.get=YI,bs.prototype.has=ZI,bs.prototype.set=XI;function $s(u){var f=-1,y=u==null?0:u.length;for(this.clear();++f<y;){var D=u[f];this.set(D[0],D[1])}}function JI(){this.size=0,this.__data__={hash:new zo,map:new(Oa||bs),string:new zo}}function QI(u){var f=Hd(this,u).delete(u);return this.size-=f?1:0,f}function e9(u){return Hd(this,u).get(u)}function t9(u){return Hd(this,u).has(u)}function n9(u,f){var y=Hd(this,u),D=y.size;return y.set(u,f),this.size+=y.size==D?0:1,this}$s.prototype.clear=JI,$s.prototype.delete=QI,$s.prototype.get=e9,$s.prototype.has=t9,$s.prototype.set=n9;function Wo(u){var f=-1,y=u==null?0:u.length;for(this.__data__=new $s;++f<y;)this.add(u[f])}function r9(u){return this.__data__.set(u,c),this}function i9(u){return this.__data__.has(u)}Wo.prototype.add=Wo.prototype.push=r9,Wo.prototype.has=i9;function ua(u){var f=this.__data__=new bs(u);this.size=f.size}function a9(){this.__data__=new bs,this.size=0}function s9(u){var f=this.__data__,y=f.delete(u);return this.size=f.size,y}function o9(u){return this.__data__.get(u)}function u9(u){return this.__data__.has(u)}function l9(u,f){var y=this.__data__;if(y instanceof bs){var D=y.__data__;if(!Oa||D.length<i-1)return D.push([u,f]),this.size=++y.size,this;y=this.__data__=new $s(D)}return y.set(u,f),this.size=y.size,this}ua.prototype.clear=a9,ua.prototype.delete=s9,ua.prototype.get=o9,ua.prototype.has=u9,ua.prototype.set=l9;function R$(u,f){var y=Mt(u),D=!y&&Xo(u),V=!y&&!D&&ro(u),re=!y&&!D&&!V&&ol(u),ye=y||D||V||re,Ee=ye?Qu(u.length,H):[],Pe=Ee.length;for(var qe in u)(f||Be.call(u,qe))&&!(ye&&(qe=="length"||V&&(qe=="offset"||qe=="parent")||re&&(qe=="buffer"||qe=="byteLength"||qe=="byteOffset")||Es(qe,Pe)))&&Ee.push(qe);return Ee}function k$(u){var f=u.length;return f?u[qm(0,f-1)]:n}function c9(u,f){return Gd(Zr(u),Ho(f,0,u.length))}function f9(u){return Gd(Zr(u))}function km(u,f,y){(y!==n&&!la(u[f],y)||y===n&&!(f in u))&&xs(u,f,y)}function Ic(u,f,y){var D=u[f];(!(Be.call(u,f)&&la(D,y))||y===n&&!(f in u))&&xs(u,f,y)}function Od(u,f){for(var y=u.length;y--;)if(la(u[y][0],f))return y;return-1}function d9(u,f,y,D){return Qs(u,function(V,re,ye){f(D,V,y(V),ye)}),D}function O$(u,f){return u&&La(f,lr(f),u)}function h9(u,f){return u&&La(f,Jr(f),u)}function xs(u,f,y){f=="__proto__"&&Nn?Nn(u,f,{configurable:!0,enumerable:!0,value:y,writable:!0}):u[f]=y}function Om(u,f){for(var y=-1,D=f.length,V=G(D),re=u==null;++y<D;)V[y]=re?n:mg(u,f[y]);return V}function Ho(u,f,y){return u===u&&(y!==n&&(u=u<=y?u:y),f!==n&&(u=u>=f?u:f)),u}function _i(u,f,y,D,V,re){var ye,Ee=f&m,Pe=f&g,qe=f&b;if(y&&(ye=V?y(u,D,V,re):y(u)),ye!==n)return ye;if(!Tn(u))return u;var We=Mt(u);if(We){if(ye=tL(u),!Ee)return Zr(u,ye)}else{var Ze=Er(u),st=Ze==Te||Ze==He;if(ro(u))return ax(u,Ee);if(Ze==_t||Ze==Le||st&&!V){if(ye=Pe||st?{}:Ex(u),!Ee)return Pe?q9(u,h9(ye,u)):U9(u,O$(ye,u))}else{if(!en[Ze])return V?u:{};ye=nL(u,Ze,Ee)}}re||(re=new ua);var vt=re.get(u);if(vt)return vt;re.set(u,ye),Qx(u)?u.forEach(function(St){ye.add(_i(St,f,y,St,u,re))}):Xx(u)&&u.forEach(function(St,Bt){ye.set(Bt,_i(St,f,y,Bt,u,re))});var Et=qe?Pe?tg:eg:Pe?Jr:lr,Lt=We?n:Et(u);return fn(Lt||u,function(St,Bt){Lt&&(Bt=St,St=u[Bt]),Ic(ye,Bt,_i(St,f,y,Bt,u,re))}),ye}function p9(u){var f=lr(u);return function(y){return I$(y,u,f)}}function I$(u,f,y){var D=y.length;if(u==null)return!D;for(u=L(u);D--;){var V=y[D],re=f[V],ye=u[V];if(ye===n&&!(V in u)||!re(ye))return!1}return!0}function L$(u,f,y){if(typeof u!="function")throw new ne(s);return Uc(function(){u.apply(n,y)},f)}function Lc(u,f,y,D){var V=-1,re=_a,ye=!0,Ee=u.length,Pe=[],qe=f.length;if(!Ee)return Pe;y&&(f=un(f,wr(y))),D?(re=Yu,ye=!1):f.length>=i&&(re=hn,ye=!1,f=new Wo(f));e:for(;++V<Ee;){var We=u[V],Ze=y==null?We:y(We);if(We=D||We!==0?We:0,ye&&Ze===Ze){for(var st=qe;st--;)if(f[st]===Ze)continue e;Pe.push(We)}else re(f,Ze,D)||Pe.push(We)}return Pe}var Qs=cx(Ia),V$=cx(Lm,!0);function m9(u,f){var y=!0;return Qs(u,function(D,V,re){return y=!!f(D,V,re),y}),y}function Id(u,f,y){for(var D=-1,V=u.length;++D<V;){var re=u[D],ye=f(re);if(ye!=null&&(Ee===n?ye===ye&&!gi(ye):y(ye,Ee)))var Ee=ye,Pe=re}return Pe}function g9(u,f,y,D){var V=u.length;for(y=kt(y),y<0&&(y=-y>V?0:V+y),D=D===n||D>V?V:kt(D),D<0&&(D+=V),D=y>D?0:tw(D);y<D;)u[y++]=f;return u}function B$(u,f){var y=[];return Qs(u,function(D,V,re){f(D,V,re)&&y.push(D)}),y}function mr(u,f,y,D,V){var re=-1,ye=u.length;for(y||(y=iL),V||(V=[]);++re<ye;){var Ee=u[re];f>0&&y(Ee)?f>1?mr(Ee,f-1,y,D,V):na(V,Ee):D||(V[V.length]=Ee)}return V}var Im=fx(),N$=fx(!0);function Ia(u,f){return u&&Im(u,f,lr)}function Lm(u,f){return u&&N$(u,f,lr)}function Ld(u,f){return xr(f,function(y){return Ss(u[y])})}function Go(u,f){f=to(f,u);for(var y=0,D=f.length;u!=null&&y<D;)u=u[Va(f[y++])];return y&&y==D?u:n}function j$(u,f,y){var D=f(u);return Mt(u)?D:na(D,y(u))}function Rr(u){return u==null?u===n?tt:$t:Ln&&Ln in L(u)?J9(u):fL(u)}function Vm(u,f){return u>f}function v9(u,f){return u!=null&&Be.call(u,f)}function y9(u,f){return u!=null&&f in L(u)}function b9(u,f,y){return u>=bn(f,y)&&u<Yt(f,y)}function Bm(u,f,y){for(var D=y?Yu:_a,V=u[0].length,re=u.length,ye=re,Ee=G(re),Pe=1/0,qe=[];ye--;){var We=u[ye];ye&&f&&(We=un(We,wr(f))),Pe=bn(We.length,Pe),Ee[ye]=!y&&(f||V>=120&&We.length>=120)?new Wo(ye&&We):n}We=u[0];var Ze=-1,st=Ee[0];e:for(;++Ze<V&&qe.length<Pe;){var vt=We[Ze],Et=f?f(vt):vt;if(vt=y||vt!==0?vt:0,!(st?hn(st,Et):D(qe,Et,y))){for(ye=re;--ye;){var Lt=Ee[ye];if(!(Lt?hn(Lt,Et):D(u[ye],Et,y)))continue e}st&&st.push(Et),qe.push(vt)}}return qe}function $9(u,f,y,D){return Ia(u,function(V,re,ye){f(D,y(V),re,ye)}),D}function Vc(u,f,y){f=to(f,u),u=Tx(u,f);var D=u==null?u:u[Va(Fi(f))];return D==null?n:On(D,u,y)}function K$(u){return Vn(u)&&Rr(u)==Le}function x9(u){return Vn(u)&&Rr(u)==Rt}function w9(u){return Vn(u)&&Rr(u)==Ge}function Bc(u,f,y,D,V){return u===f?!0:u==null||f==null||!Vn(u)&&!Vn(f)?u!==u&&f!==f:C9(u,f,y,D,Bc,V)}function C9(u,f,y,D,V,re){var ye=Mt(u),Ee=Mt(f),Pe=ye?Ye:Er(u),qe=Ee?Ye:Er(f);Pe=Pe==Le?_t:Pe,qe=qe==Le?_t:qe;var We=Pe==_t,Ze=qe==_t,st=Pe==qe;if(st&&ro(u)){if(!ro(f))return!1;ye=!0,We=!1}if(st&&!We)return re||(re=new ua),ye||ol(u)?xx(u,f,y,D,V,re):Z9(u,f,Pe,y,D,V,re);if(!(y&w)){var vt=We&&Be.call(u,"__wrapped__"),Et=Ze&&Be.call(f,"__wrapped__");if(vt||Et){var Lt=vt?u.value():u,St=Et?f.value():f;return re||(re=new ua),V(Lt,St,y,D,re)}}return st?(re||(re=new ua),X9(u,f,y,D,V,re)):!1}function E9(u){return Vn(u)&&Er(u)==ht}function Nm(u,f,y,D){var V=y.length,re=V,ye=!D;if(u==null)return!re;for(u=L(u);V--;){var Ee=y[V];if(ye&&Ee[2]?Ee[1]!==u[Ee[0]]:!(Ee[0]in u))return!1}for(;++V<re;){Ee=y[V];var Pe=Ee[0],qe=u[Pe],We=Ee[1];if(ye&&Ee[2]){if(qe===n&&!(Pe in u))return!1}else{var Ze=new ua;if(D)var st=D(qe,We,Pe,u,f,Ze);if(!(st===n?Bc(We,qe,w|x,D,Ze):st))return!1}}return!0}function U$(u){if(!Tn(u)||sL(u))return!1;var f=Ss(u)?X:Yn;return f.test(Zo(u))}function S9(u){return Vn(u)&&Rr(u)==be}function D9(u){return Vn(u)&&Er(u)==De}function A9(u){return Vn(u)&&eh(u.length)&&!!Gt[Rr(u)]}function q$(u){return typeof u=="function"?u:u==null?Qr:typeof u=="object"?Mt(u)?H$(u[0],u[1]):W$(u):dw(u)}function jm(u){if(!Kc(u))return aa(u);var f=[];for(var y in L(u))Be.call(u,y)&&y!="constructor"&&f.push(y);return f}function T9(u){if(!Tn(u))return cL(u);var f=Kc(u),y=[];for(var D in u)D=="constructor"&&(f||!Be.call(u,D))||y.push(D);return y}function Km(u,f){return u<f}function z$(u,f){var y=-1,D=Xr(u)?G(u.length):[];return Qs(u,function(V,re,ye){D[++y]=f(V,re,ye)}),D}function W$(u){var f=rg(u);return f.length==1&&f[0][2]?Dx(f[0][0],f[0][1]):function(y){return y===u||Nm(y,u,f)}}function H$(u,f){return ag(u)&&Sx(f)?Dx(Va(u),f):function(y){var D=mg(y,u);return D===n&&D===f?gg(y,u):Bc(f,D,w|x)}}function Vd(u,f,y,D,V){u!==f&&Im(f,function(re,ye){if(V||(V=new ua),Tn(re))P9(u,f,ye,y,Vd,D,V);else{var Ee=D?D(og(u,ye),re,ye+"",u,f,V):n;Ee===n&&(Ee=re),km(u,ye,Ee)}},Jr)}function P9(u,f,y,D,V,re,ye){var Ee=og(u,y),Pe=og(f,y),qe=ye.get(Pe);if(qe){km(u,y,qe);return}var We=re?re(Ee,Pe,y+"",u,f,ye):n,Ze=We===n;if(Ze){var st=Mt(Pe),vt=!st&&ro(Pe),Et=!st&&!vt&&ol(Pe);We=Pe,st||vt||Et?Mt(Ee)?We=Ee:Kn(Ee)?We=Zr(Ee):vt?(Ze=!1,We=ax(Pe,!0)):Et?(Ze=!1,We=sx(Pe,!0)):We=[]:qc(Pe)||Xo(Pe)?(We=Ee,Xo(Ee)?We=nw(Ee):(!Tn(Ee)||Ss(Ee))&&(We=Ex(Pe))):Ze=!1}Ze&&(ye.set(Pe,We),V(We,Pe,D,re,ye),ye.delete(Pe)),km(u,y,We)}function G$(u,f){var y=u.length;if(y)return f+=f<0?y:0,Es(f,y)?u[f]:n}function Y$(u,f,y){f.length?f=un(f,function(re){return Mt(re)?function(ye){return Go(ye,re.length===1?re[0]:re)}:re}):f=[Qr];var D=-1;f=un(f,wr(wt()));var V=z$(u,function(re,ye,Ee){var Pe=un(f,function(qe){return qe(re)});return{criteria:Pe,index:++D,value:re}});return qo(V,function(re,ye){return K9(re,ye,y)})}function _9(u,f){return Z$(u,f,function(y,D){return gg(u,D)})}function Z$(u,f,y){for(var D=-1,V=f.length,re={};++D<V;){var ye=f[D],Ee=Go(u,ye);y(Ee,ye)&&Nc(re,to(ye,u),Ee)}return re}function M9(u){return function(f){return Go(f,u)}}function Um(u,f,y,D){var V=D?_d:vs,re=-1,ye=f.length,Ee=u;for(u===f&&(f=Zr(f)),y&&(Ee=un(u,wr(y)));++re<ye;)for(var Pe=0,qe=f[re],We=y?y(qe):qe;(Pe=V(Ee,We,Pe,D))>-1;)Ee!==u&&zt.call(Ee,Pe,1),zt.call(u,Pe,1);return u}function X$(u,f){for(var y=u?f.length:0,D=y-1;y--;){var V=f[y];if(y==D||V!==re){var re=V;Es(V)?zt.call(u,V,1):Hm(u,V)}}return u}function qm(u,f){return u+Yr(sa()*(f-u+1))}function F9(u,f,y,D){for(var V=-1,re=Yt(ln((f-u)/(y||1)),0),ye=G(re);re--;)ye[D?re:++V]=u,u+=y;return ye}function zm(u,f){var y="";if(!u||f<1||f>N)return y;do f%2&&(y+=u),f=Yr(f/2),f&&(u+=u);while(f);return y}function Vt(u,f){return ug(Ax(u,f,Qr),u+"")}function R9(u){return k$(ul(u))}function k9(u,f){var y=ul(u);return Gd(y,Ho(f,0,y.length))}function Nc(u,f,y,D){if(!Tn(u))return u;f=to(f,u);for(var V=-1,re=f.length,ye=re-1,Ee=u;Ee!=null&&++V<re;){var Pe=Va(f[V]),qe=y;if(Pe==="__proto__"||Pe==="constructor"||Pe==="prototype")return u;if(V!=ye){var We=Ee[Pe];qe=D?D(We,Pe,Ee):n,qe===n&&(qe=Tn(We)?We:Es(f[V+1])?[]:{})}Ic(Ee,Pe,qe),Ee=Ee[Pe]}return u}var J$=Fd?function(u,f){return Fd.set(u,f),u}:Qr,O9=Nn?function(u,f){return Nn(u,"toString",{configurable:!0,enumerable:!1,value:yg(f),writable:!0})}:Qr;function I9(u){return Gd(ul(u))}function Mi(u,f,y){var D=-1,V=u.length;f<0&&(f=-f>V?0:V+f),y=y>V?V:y,y<0&&(y+=V),V=f>y?0:y-f>>>0,f>>>=0;for(var re=G(V);++D<V;)re[D]=u[D+f];return re}function L9(u,f){var y;return Qs(u,function(D,V,re){return y=f(D,V,re),!y}),!!y}function Bd(u,f,y){var D=0,V=u==null?D:u.length;if(typeof f=="number"&&f===f&&V<=Ae){for(;D<V;){var re=D+V>>>1,ye=u[re];ye!==null&&!gi(ye)&&(y?ye<=f:ye<f)?D=re+1:V=re}return V}return Wm(u,f,Qr,y)}function Wm(u,f,y,D){var V=0,re=u==null?0:u.length;if(re===0)return 0;f=y(f);for(var ye=f!==f,Ee=f===null,Pe=gi(f),qe=f===n;V<re;){var We=Yr((V+re)/2),Ze=y(u[We]),st=Ze!==n,vt=Ze===null,Et=Ze===Ze,Lt=gi(Ze);if(ye)var St=D||Et;else qe?St=Et&&(D||st):Ee?St=Et&&st&&(D||!vt):Pe?St=Et&&st&&!vt&&(D||!Lt):vt||Lt?St=!1:St=D?Ze<=f:Ze<f;St?V=We+1:re=We}return bn(re,ue)}function Q$(u,f){for(var y=-1,D=u.length,V=0,re=[];++y<D;){var ye=u[y],Ee=f?f(ye):ye;if(!y||!la(Ee,Pe)){var Pe=Ee;re[V++]=ye===0?0:ye}}return re}function ex(u){return typeof u=="number"?u:gi(u)?j:+u}function mi(u){if(typeof u=="string")return u;if(Mt(u))return un(u,mi)+"";if(gi(u))return F$?F$.call(u):"";var f=u+"";return f=="0"&&1/u==-k?"-0":f}function eo(u,f,y){var D=-1,V=_a,re=u.length,ye=!0,Ee=[],Pe=Ee;if(y)ye=!1,V=Yu;else if(re>=i){var qe=f?null:G9(u);if(qe)return Xs(qe);ye=!1,V=hn,Pe=new Wo}else Pe=f?[]:Ee;e:for(;++D<re;){var We=u[D],Ze=f?f(We):We;if(We=y||We!==0?We:0,ye&&Ze===Ze){for(var st=Pe.length;st--;)if(Pe[st]===Ze)continue e;f&&Pe.push(Ze),Ee.push(We)}else V(Pe,Ze,y)||(Pe!==Ee&&Pe.push(Ze),Ee.push(We))}return Ee}function Hm(u,f){return f=to(f,u),u=Tx(u,f),u==null||delete u[Va(Fi(f))]}function tx(u,f,y,D){return Nc(u,f,y(Go(u,f)),D)}function Nd(u,f,y,D){for(var V=u.length,re=D?V:-1;(D?re--:++re<V)&&f(u[re],re,u););return y?Mi(u,D?0:re,D?re+1:V):Mi(u,D?re+1:0,D?V:re)}function nx(u,f){var y=u;return y instanceof Kt&&(y=y.value()),Zu(f,function(D,V){return V.func.apply(V.thisArg,na([D],V.args))},y)}function Gm(u,f,y){var D=u.length;if(D<2)return D?eo(u[0]):[];for(var V=-1,re=G(D);++V<D;)for(var ye=u[V],Ee=-1;++Ee<D;)Ee!=V&&(re[V]=Lc(re[V]||ye,u[Ee],f,y));return eo(mr(re,1),f,y)}function rx(u,f,y){for(var D=-1,V=u.length,re=f.length,ye={};++D<V;){var Ee=D<re?f[D]:n;y(ye,u[D],Ee)}return ye}function Ym(u){return Kn(u)?u:[]}function Zm(u){return typeof u=="function"?u:Qr}function to(u,f){return Mt(u)?u:ag(u,f)?[u]:Fx(an(u))}var V9=Vt;function no(u,f,y){var D=u.length;return y=y===n?D:y,!f&&y>=D?u:Mi(u,f,y)}var ix=jn||function(u){return En.clearTimeout(u)};function ax(u,f){if(f)return u.slice();var y=u.length,D=lt?lt(y):new u.constructor(y);return u.copy(D),D}function Xm(u){var f=new u.constructor(u.byteLength);return new ke(f).set(new ke(u)),f}function B9(u,f){var y=f?Xm(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.byteLength)}function N9(u){var f=new u.constructor(u.source,cn.exec(u));return f.lastIndex=u.lastIndex,f}function j9(u){return Oc?L(Oc.call(u)):{}}function sx(u,f){var y=f?Xm(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.length)}function ox(u,f){if(u!==f){var y=u!==n,D=u===null,V=u===u,re=gi(u),ye=f!==n,Ee=f===null,Pe=f===f,qe=gi(f);if(!Ee&&!qe&&!re&&u>f||re&&ye&&Pe&&!Ee&&!qe||D&&ye&&Pe||!y&&Pe||!V)return 1;if(!D&&!re&&!qe&&u<f||qe&&y&&V&&!D&&!re||Ee&&y&&V||!ye&&V||!Pe)return-1}return 0}function K9(u,f,y){for(var D=-1,V=u.criteria,re=f.criteria,ye=V.length,Ee=y.length;++D<ye;){var Pe=ox(V[D],re[D]);if(Pe){if(D>=Ee)return Pe;var qe=y[D];return Pe*(qe=="desc"?-1:1)}}return u.index-f.index}function ux(u,f,y,D){for(var V=-1,re=u.length,ye=y.length,Ee=-1,Pe=f.length,qe=Yt(re-ye,0),We=G(Pe+qe),Ze=!D;++Ee<Pe;)We[Ee]=f[Ee];for(;++V<ye;)(Ze||V<re)&&(We[y[V]]=u[V]);for(;qe--;)We[Ee++]=u[V++];return We}function lx(u,f,y,D){for(var V=-1,re=u.length,ye=-1,Ee=y.length,Pe=-1,qe=f.length,We=Yt(re-Ee,0),Ze=G(We+qe),st=!D;++V<We;)Ze[V]=u[V];for(var vt=V;++Pe<qe;)Ze[vt+Pe]=f[Pe];for(;++ye<Ee;)(st||V<re)&&(Ze[vt+y[ye]]=u[V++]);return Ze}function Zr(u,f){var y=-1,D=u.length;for(f||(f=G(D));++y<D;)f[y]=u[y];return f}function La(u,f,y,D){var V=!y;y||(y={});for(var re=-1,ye=f.length;++re<ye;){var Ee=f[re],Pe=D?D(y[Ee],u[Ee],Ee,y,u):n;Pe===n&&(Pe=u[Ee]),V?xs(y,Ee,Pe):Ic(y,Ee,Pe)}return y}function U9(u,f){return La(u,ig(u),f)}function q9(u,f){return La(u,wx(u),f)}function jd(u,f){return function(y,D){var V=Mt(y)?Pa:d9,re=f?f():{};return V(y,u,wt(D,2),re)}}function il(u){return Vt(function(f,y){var D=-1,V=y.length,re=V>1?y[V-1]:n,ye=V>2?y[2]:n;for(re=u.length>3&&typeof re=="function"?(V--,re):n,ye&&kr(y[0],y[1],ye)&&(re=V<3?n:re,V=1),f=L(f);++D<V;){var Ee=y[D];Ee&&u(f,Ee,D,re)}return f})}function cx(u,f){return function(y,D){if(y==null)return y;if(!Xr(y))return u(y,D);for(var V=y.length,re=f?V:-1,ye=L(y);(f?re--:++re<V)&&D(ye[re],re,ye)!==!1;);return y}}function fx(u){return function(f,y,D){for(var V=-1,re=L(f),ye=D(f),Ee=ye.length;Ee--;){var Pe=ye[u?Ee:++V];if(y(re[Pe],Pe,re)===!1)break}return f}}function z9(u,f,y){var D=f&A,V=jc(u);function re(){var ye=this&&this!==En&&this instanceof re?V:u;return ye.apply(D?y:this,arguments)}return re}function dx(u){return function(f){f=an(f);var y=Cr(f)?T(f):n,D=y?y[0]:f.charAt(0),V=y?no(y,1).join(""):f.slice(1);return D[u]()+V}}function al(u){return function(f){return Zu(cw(lw(f).replace(ea,"")),u,"")}}function jc(u){return function(){var f=arguments;switch(f.length){case 0:return new u;case 1:return new u(f[0]);case 2:return new u(f[0],f[1]);case 3:return new u(f[0],f[1],f[2]);case 4:return new u(f[0],f[1],f[2],f[3]);case 5:return new u(f[0],f[1],f[2],f[3],f[4]);case 6:return new u(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new u(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var y=rl(u.prototype),D=u.apply(y,f);return Tn(D)?D:y}}function W9(u,f,y){var D=jc(u);function V(){for(var re=arguments.length,ye=G(re),Ee=re,Pe=sl(V);Ee--;)ye[Ee]=arguments[Ee];var qe=re<3&&ye[0]!==Pe&&ye[re-1]!==Pe?[]:Gr(ye,Pe);if(re-=qe.length,re<y)return vx(u,f,Kd,V.placeholder,n,ye,qe,n,n,y-re);var We=this&&this!==En&&this instanceof V?D:u;return On(We,this,ye)}return V}function hx(u){return function(f,y,D){var V=L(f);if(!Xr(f)){var re=wt(y,3);f=lr(f),y=function(Ee){return re(V[Ee],Ee,V)}}var ye=u(f,y,D);return ye>-1?V[re?f[ye]:ye]:n}}function px(u){return Cs(function(f){var y=f.length,D=y,V=Pi.prototype.thru;for(u&&f.reverse();D--;){var re=f[D];if(typeof re!="function")throw new ne(s);if(V&&!ye&&Wd(re)=="wrapper")var ye=new Pi([],!0)}for(D=ye?D:y;++D<y;){re=f[D];var Ee=Wd(re),Pe=Ee=="wrapper"?ng(re):n;Pe&&sg(Pe[0])&&Pe[1]==(z|S|_|ie)&&!Pe[4].length&&Pe[9]==1?ye=ye[Wd(Pe[0])].apply(ye,Pe[3]):ye=re.length==1&&sg(re)?ye[Ee]():ye.thru(re)}return function(){var qe=arguments,We=qe[0];if(ye&&qe.length==1&&Mt(We))return ye.plant(We).value();for(var Ze=0,st=y?f[Ze].apply(this,qe):We;++Ze<y;)st=f[Ze].call(this,st);return st}})}function Kd(u,f,y,D,V,re,ye,Ee,Pe,qe){var We=f&z,Ze=f&A,st=f&C,vt=f&(S|R),Et=f&ge,Lt=st?n:jc(u);function St(){for(var Bt=arguments.length,Wt=G(Bt),vi=Bt;vi--;)Wt[vi]=arguments[vi];if(vt)var Or=sl(St),yi=Mm(Wt,Or);if(D&&(Wt=ux(Wt,D,V,vt)),re&&(Wt=lx(Wt,re,ye,vt)),Bt-=yi,vt&&Bt<qe){var Un=Gr(Wt,Or);return vx(u,f,Kd,St.placeholder,y,Wt,Un,Ee,Pe,qe-Bt)}var ca=Ze?y:this,As=st?ca[u]:u;return Bt=Wt.length,Ee?Wt=dL(Wt,Ee):Et&&Bt>1&&Wt.reverse(),We&&Pe<Bt&&(Wt.length=Pe),this&&this!==En&&this instanceof St&&(As=Lt||jc(As)),As.apply(ca,Wt)}return St}function mx(u,f){return function(y,D){return $9(y,u,f(D),{})}}function Ud(u,f){return function(y,D){var V;if(y===n&&D===n)return f;if(y!==n&&(V=y),D!==n){if(V===n)return D;typeof y=="string"||typeof D=="string"?(y=mi(y),D=mi(D)):(y=ex(y),D=ex(D)),V=u(y,D)}return V}}function Jm(u){return Cs(function(f){return f=un(f,wr(wt())),Vt(function(y){var D=this;return u(f,function(V){return On(V,D,y)})})})}function qd(u,f){f=f===n?" ":mi(f);var y=f.length;if(y<2)return y?zm(f,u):f;var D=zm(f,ln(u/$(f)));return Cr(f)?no(T(D),0,u).join(""):D.slice(0,u)}function H9(u,f,y,D){var V=f&A,re=jc(u);function ye(){for(var Ee=-1,Pe=arguments.length,qe=-1,We=D.length,Ze=G(We+Pe),st=this&&this!==En&&this instanceof ye?re:u;++qe<We;)Ze[qe]=D[qe];for(;Pe--;)Ze[qe++]=arguments[++Ee];return On(st,V?y:this,Ze)}return ye}function gx(u){return function(f,y,D){return D&&typeof D!="number"&&kr(f,y,D)&&(y=D=n),f=Ds(f),y===n?(y=f,f=0):y=Ds(y),D=D===n?f<y?1:-1:Ds(D),F9(f,y,D,u)}}function zd(u){return function(f,y){return typeof f=="string"&&typeof y=="string"||(f=Ri(f),y=Ri(y)),u(f,y)}}function vx(u,f,y,D,V,re,ye,Ee,Pe,qe){var We=f&S,Ze=We?ye:n,st=We?n:ye,vt=We?re:n,Et=We?n:re;f|=We?_:F,f&=~(We?F:_),f&E||(f&=-4);var Lt=[u,f,V,vt,Ze,Et,st,Ee,Pe,qe],St=y.apply(n,Lt);return sg(u)&&Px(St,Lt),St.placeholder=D,_x(St,u,f)}function Qm(u){var f=Y[u];return function(y,D){if(y=Ri(y),D=D==null?0:bn(kt(D),292),D&&di(y)){var V=(an(y)+"e").split("e"),re=f(V[0]+"e"+(+V[1]+D));return V=(an(re)+"e").split("e"),+(V[0]+"e"+(+V[1]-D))}return f(y)}}var G9=tl&&1/Xs(new tl([,-0]))[1]==k?function(u){return new tl(u)}:xg;function yx(u){return function(f){var y=Er(f);return y==ht?In(f):y==De?l(f):_m(f,u(f))}}function ws(u,f,y,D,V,re,ye,Ee){var Pe=f&C;if(!Pe&&typeof u!="function")throw new ne(s);var qe=D?D.length:0;if(qe||(f&=-97,D=V=n),ye=ye===n?ye:Yt(kt(ye),0),Ee=Ee===n?Ee:kt(Ee),qe-=V?V.length:0,f&F){var We=D,Ze=V;D=V=n}var st=Pe?n:ng(u),vt=[u,f,y,D,V,We,Ze,re,ye,Ee];if(st&&lL(vt,st),u=vt[0],f=vt[1],y=vt[2],D=vt[3],V=vt[4],Ee=vt[9]=vt[9]===n?Pe?0:u.length:Yt(vt[9]-qe,0),!Ee&&f&(S|R)&&(f&=-25),!f||f==A)var Et=z9(u,f,y);else f==S||f==R?Et=W9(u,f,Ee):(f==_||f==(A|_))&&!V.length?Et=H9(u,f,y,D):Et=Kd.apply(n,vt);var Lt=st?J$:Px;return _x(Lt(Et,vt),u,f)}function bx(u,f,y,D){return u===n||la(u,Oe[y])&&!Be.call(D,y)?f:u}function $x(u,f,y,D,V,re){return Tn(u)&&Tn(f)&&(re.set(f,u),Vd(u,f,n,$x,re),re.delete(f)),u}function Y9(u){return qc(u)?n:u}function xx(u,f,y,D,V,re){var ye=y&w,Ee=u.length,Pe=f.length;if(Ee!=Pe&&!(ye&&Pe>Ee))return!1;var qe=re.get(u),We=re.get(f);if(qe&&We)return qe==f&&We==u;var Ze=-1,st=!0,vt=y&x?new Wo:n;for(re.set(u,f),re.set(f,u);++Ze<Ee;){var Et=u[Ze],Lt=f[Ze];if(D)var St=ye?D(Lt,Et,Ze,f,u,re):D(Et,Lt,Ze,u,f,re);if(St!==n){if(St)continue;st=!1;break}if(vt){if(!Ma(f,function(Bt,Wt){if(!hn(vt,Wt)&&(Et===Bt||V(Et,Bt,y,D,re)))return vt.push(Wt)})){st=!1;break}}else if(!(Et===Lt||V(Et,Lt,y,D,re))){st=!1;break}}return re.delete(u),re.delete(f),st}function Z9(u,f,y,D,V,re,ye){switch(y){case xt:if(u.byteLength!=f.byteLength||u.byteOffset!=f.byteOffset)return!1;u=u.buffer,f=f.buffer;case Rt:return!(u.byteLength!=f.byteLength||!re(new ke(u),new ke(f)));case Ue:case Ge:case Ht:return la(+u,+f);case Ne:return u.name==f.name&&u.message==f.message;case be:case Me:return u==f+"";case ht:var Ee=In;case De:var Pe=D&w;if(Ee||(Ee=Xs),u.size!=f.size&&!Pe)return!1;var qe=ye.get(u);if(qe)return qe==f;D|=x,ye.set(u,f);var We=xx(Ee(u),Ee(f),D,V,re,ye);return ye.delete(u),We;case Xe:if(Oc)return Oc.call(u)==Oc.call(f)}return!1}function X9(u,f,y,D,V,re){var ye=y&w,Ee=eg(u),Pe=Ee.length,qe=eg(f),We=qe.length;if(Pe!=We&&!ye)return!1;for(var Ze=Pe;Ze--;){var st=Ee[Ze];if(!(ye?st in f:Be.call(f,st)))return!1}var vt=re.get(u),Et=re.get(f);if(vt&&Et)return vt==f&&Et==u;var Lt=!0;re.set(u,f),re.set(f,u);for(var St=ye;++Ze<Pe;){st=Ee[Ze];var Bt=u[st],Wt=f[st];if(D)var vi=ye?D(Wt,Bt,st,f,u,re):D(Bt,Wt,st,u,f,re);if(!(vi===n?Bt===Wt||V(Bt,Wt,y,D,re):vi)){Lt=!1;break}St||(St=st=="constructor")}if(Lt&&!St){var Or=u.constructor,yi=f.constructor;Or!=yi&&"constructor"in u&&"constructor"in f&&!(typeof Or=="function"&&Or instanceof Or&&typeof yi=="function"&&yi instanceof yi)&&(Lt=!1)}return re.delete(u),re.delete(f),Lt}function Cs(u){return ug(Ax(u,n,Ix),u+"")}function eg(u){return j$(u,lr,ig)}function tg(u){return j$(u,Jr,wx)}var ng=Fd?function(u){return Fd.get(u)}:xg;function Wd(u){for(var f=u.name+"",y=nl[f],D=Be.call(nl,f)?y.length:0;D--;){var V=y[D],re=V.func;if(re==null||re==u)return V.name}return f}function sl(u){var f=Be.call(Z,"placeholder")?Z:u;return f.placeholder}function wt(){var u=Z.iteratee||bg;return u=u===bg?q$:u,arguments.length?u(arguments[0],arguments[1]):u}function Hd(u,f){var y=u.__data__;return aL(f)?y[typeof f=="string"?"string":"hash"]:y.map}function rg(u){for(var f=lr(u),y=f.length;y--;){var D=f[y],V=u[D];f[y]=[D,V,Sx(V)]}return f}function Yo(u,f){var y=Rm(u,f);return U$(y)?y:n}function J9(u){var f=Be.call(u,Ln),y=u[Ln];try{u[Ln]=n;var D=!0}catch{}var V=Ve.call(u);return D&&(f?u[Ln]=y:delete u[Ln]),V}var ig=Ti?function(u){return u==null?[]:(u=L(u),xr(Ti(u),function(f){return yn.call(u,f)}))}:wg,wx=Ti?function(u){for(var f=[];u;)na(f,ig(u)),u=At(u);return f}:wg,Er=Rr;(oa&&Er(new oa(new ArrayBuffer(1)))!=xt||Oa&&Er(new Oa)!=ht||Js&&Er(Js.resolve())!=zr||tl&&Er(new tl)!=De||Rc&&Er(new Rc)!=Je)&&(Er=function(u){var f=Rr(u),y=f==_t?u.constructor:n,D=y?Zo(y):"";if(D)switch(D){case kI:return xt;case OI:return ht;case II:return zr;case LI:return De;case VI:return Je}return f});function Q9(u,f,y){for(var D=-1,V=y.length;++D<V;){var re=y[D],ye=re.size;switch(re.type){case"drop":u+=ye;break;case"dropRight":f-=ye;break;case"take":f=bn(f,u+ye);break;case"takeRight":u=Yt(u,f-ye);break}}return{start:u,end:f}}function eL(u){var f=u.match($r);return f?f[1].split(Bu):[]}function Cx(u,f,y){f=to(f,u);for(var D=-1,V=f.length,re=!1;++D<V;){var ye=Va(f[D]);if(!(re=u!=null&&y(u,ye)))break;u=u[ye]}return re||++D!=V?re:(V=u==null?0:u.length,!!V&&eh(V)&&Es(ye,V)&&(Mt(u)||Xo(u)))}function tL(u){var f=u.length,y=new u.constructor(f);return f&&typeof u[0]=="string"&&Be.call(u,"index")&&(y.index=u.index,y.input=u.input),y}function Ex(u){return typeof u.constructor=="function"&&!Kc(u)?rl(At(u)):{}}function nL(u,f,y){var D=u.constructor;switch(f){case Rt:return Xm(u);case Ue:case Ge:return new D(+u);case xt:return B9(u,y);case gn:case br:case Ut:case Pt:case It:case qt:case fr:case Wr:case si:return sx(u,y);case ht:return new D;case Ht:case Me:return new D(u);case be:return N9(u);case De:return new D;case Xe:return j9(u)}}function rL(u,f){var y=f.length;if(!y)return u;var D=y-1;return f[D]=(y>1?"& ":"")+f[D],f=f.join(y>2?", ":" "),u.replace(Vu,`{
|
|
42
|
-
/* [wrapped with `+f+`] */
|
|
43
|
-
`)}function iL(u){return Mt(u)||Xo(u)||!!(ur&&u&&u[ur])}function Es(u,f){var y=typeof u;return f=f??N,!!f&&(y=="number"||y!="symbol"&&Sa.test(u))&&u>-1&&u%1==0&&u<f}function kr(u,f,y){if(!Tn(y))return!1;var D=typeof f;return(D=="number"?Xr(y)&&Es(f,y.length):D=="string"&&f in y)?la(y[f],u):!1}function ag(u,f){if(Mt(u))return!1;var y=typeof u;return y=="number"||y=="symbol"||y=="boolean"||u==null||gi(u)?!0:Lu.test(u)||!To.test(u)||f!=null&&u in L(f)}function aL(u){var f=typeof u;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?u!=="__proto__":u===null}function sg(u){var f=Wd(u),y=Z[f];if(typeof y!="function"||!(f in Kt.prototype))return!1;if(u===y)return!0;var D=ng(y);return!!D&&u===D[0]}function sL(u){return!!ct&&ct in u}var oL=nt?Ss:Cg;function Kc(u){var f=u&&u.constructor,y=typeof f=="function"&&f.prototype||Oe;return u===y}function Sx(u){return u===u&&!Tn(u)}function Dx(u,f){return function(y){return y==null?!1:y[u]===f&&(f!==n||u in L(y))}}function uL(u){var f=Jd(u,function(D){return y.size===d&&y.clear(),D}),y=f.cache;return f}function lL(u,f){var y=u[1],D=f[1],V=y|D,re=V<(A|C|z),ye=D==z&&y==S||D==z&&y==ie&&u[7].length<=f[8]||D==(z|ie)&&f[7].length<=f[8]&&y==S;if(!(re||ye))return u;D&A&&(u[2]=f[2],V|=y&A?0:E);var Ee=f[3];if(Ee){var Pe=u[3];u[3]=Pe?ux(Pe,Ee,f[4]):Ee,u[4]=Pe?Gr(u[3],h):f[4]}return Ee=f[5],Ee&&(Pe=u[5],u[5]=Pe?lx(Pe,Ee,f[6]):Ee,u[6]=Pe?Gr(u[5],h):f[6]),Ee=f[7],Ee&&(u[7]=Ee),D&z&&(u[8]=u[8]==null?f[8]:bn(u[8],f[8])),u[9]==null&&(u[9]=f[9]),u[0]=f[0],u[1]=V,u}function cL(u){var f=[];if(u!=null)for(var y in L(u))f.push(y);return f}function fL(u){return Ve.call(u)}function Ax(u,f,y){return f=Yt(f===n?u.length-1:f,0),function(){for(var D=arguments,V=-1,re=Yt(D.length-f,0),ye=G(re);++V<re;)ye[V]=D[f+V];V=-1;for(var Ee=G(f+1);++V<f;)Ee[V]=D[V];return Ee[f]=y(ye),On(u,this,Ee)}}function Tx(u,f){return f.length<2?u:Go(u,Mi(f,0,-1))}function dL(u,f){for(var y=u.length,D=bn(f.length,y),V=Zr(u);D--;){var re=f[D];u[D]=Es(re,y)?V[re]:n}return u}function og(u,f){if(!(f==="constructor"&&typeof u[f]=="function")&&f!="__proto__")return u[f]}var Px=Mx(J$),Uc=ft||function(u,f){return En.setTimeout(u,f)},ug=Mx(O9);function _x(u,f,y){var D=f+"";return ug(u,rL(D,hL(eL(D),y)))}function Mx(u){var f=0,y=0;return function(){var D=ka(),V=Se-(D-y);if(y=D,V>0){if(++f>=we)return arguments[0]}else f=0;return u.apply(n,arguments)}}function Gd(u,f){var y=-1,D=u.length,V=D-1;for(f=f===n?D:f;++y<f;){var re=qm(y,V),ye=u[re];u[re]=u[y],u[y]=ye}return u.length=f,u}var Fx=uL(function(u){var f=[];return u.charCodeAt(0)===46&&f.push(""),u.replace(Xi,function(y,D,V,re){f.push(V?re.replace(Hr,"$1"):D||y)}),f});function Va(u){if(typeof u=="string"||gi(u))return u;var f=u+"";return f=="0"&&1/u==-k?"-0":f}function Zo(u){if(u!=null){try{return et.call(u)}catch{}try{return u+""}catch{}}return""}function hL(u,f){return fn(_e,function(y){var D="_."+y[0];f&y[1]&&!_a(u,D)&&u.push(D)}),u.sort()}function Rx(u){if(u instanceof Kt)return u.clone();var f=new Pi(u.__wrapped__,u.__chain__);return f.__actions__=Zr(u.__actions__),f.__index__=u.__index__,f.__values__=u.__values__,f}function pL(u,f,y){(y?kr(u,f,y):f===n)?f=1:f=Yt(kt(f),0);var D=u==null?0:u.length;if(!D||f<1)return[];for(var V=0,re=0,ye=G(ln(D/f));V<D;)ye[re++]=Mi(u,V,V+=f);return ye}function mL(u){for(var f=-1,y=u==null?0:u.length,D=0,V=[];++f<y;){var re=u[f];re&&(V[D++]=re)}return V}function gL(){var u=arguments.length;if(!u)return[];for(var f=G(u-1),y=arguments[0],D=u;D--;)f[D-1]=arguments[D];return na(Mt(y)?Zr(y):[y],mr(f,1))}var vL=Vt(function(u,f){return Kn(u)?Lc(u,mr(f,1,Kn,!0)):[]}),yL=Vt(function(u,f){var y=Fi(f);return Kn(y)&&(y=n),Kn(u)?Lc(u,mr(f,1,Kn,!0),wt(y,2)):[]}),bL=Vt(function(u,f){var y=Fi(f);return Kn(y)&&(y=n),Kn(u)?Lc(u,mr(f,1,Kn,!0),n,y):[]});function $L(u,f,y){var D=u==null?0:u.length;return D?(f=y||f===n?1:kt(f),Mi(u,f<0?0:f,D)):[]}function xL(u,f,y){var D=u==null?0:u.length;return D?(f=y||f===n?1:kt(f),f=D-f,Mi(u,0,f<0?0:f)):[]}function wL(u,f){return u&&u.length?Nd(u,wt(f,3),!0,!0):[]}function CL(u,f){return u&&u.length?Nd(u,wt(f,3),!0):[]}function EL(u,f,y,D){var V=u==null?0:u.length;return V?(y&&typeof y!="number"&&kr(u,f,y)&&(y=0,D=V),g9(u,f,y,D)):[]}function kx(u,f,y){var D=u==null?0:u.length;if(!D)return-1;var V=y==null?0:kt(y);return V<0&&(V=Yt(D+V,0)),Ko(u,wt(f,3),V)}function Ox(u,f,y){var D=u==null?0:u.length;if(!D)return-1;var V=D-1;return y!==n&&(V=kt(y),V=y<0?Yt(D+V,0):bn(V,D-1)),Ko(u,wt(f,3),V,!0)}function Ix(u){var f=u==null?0:u.length;return f?mr(u,1):[]}function SL(u){var f=u==null?0:u.length;return f?mr(u,k):[]}function DL(u,f){var y=u==null?0:u.length;return y?(f=f===n?1:kt(f),mr(u,f)):[]}function AL(u){for(var f=-1,y=u==null?0:u.length,D={};++f<y;){var V=u[f];D[V[0]]=V[1]}return D}function Lx(u){return u&&u.length?u[0]:n}function TL(u,f,y){var D=u==null?0:u.length;if(!D)return-1;var V=y==null?0:kt(y);return V<0&&(V=Yt(D+V,0)),vs(u,f,V)}function PL(u){var f=u==null?0:u.length;return f?Mi(u,0,-1):[]}var _L=Vt(function(u){var f=un(u,Ym);return f.length&&f[0]===u[0]?Bm(f):[]}),ML=Vt(function(u){var f=Fi(u),y=un(u,Ym);return f===Fi(y)?f=n:y.pop(),y.length&&y[0]===u[0]?Bm(y,wt(f,2)):[]}),FL=Vt(function(u){var f=Fi(u),y=un(u,Ym);return f=typeof f=="function"?f:n,f&&y.pop(),y.length&&y[0]===u[0]?Bm(y,n,f):[]});function RL(u,f){return u==null?"":ia.call(u,f)}function Fi(u){var f=u==null?0:u.length;return f?u[f-1]:n}function kL(u,f,y){var D=u==null?0:u.length;if(!D)return-1;var V=D;return y!==n&&(V=kt(y),V=V<0?Yt(D+V,0):bn(V,D-1)),f===f?v(u,f,V):Ko(u,Pc,V,!0)}function OL(u,f){return u&&u.length?G$(u,kt(f)):n}var IL=Vt(Vx);function Vx(u,f){return u&&u.length&&f&&f.length?Um(u,f):u}function LL(u,f,y){return u&&u.length&&f&&f.length?Um(u,f,wt(y,2)):u}function VL(u,f,y){return u&&u.length&&f&&f.length?Um(u,f,n,y):u}var BL=Cs(function(u,f){var y=u==null?0:u.length,D=Om(u,f);return X$(u,un(f,function(V){return Es(V,y)?+V:V}).sort(ox)),D});function NL(u,f){var y=[];if(!(u&&u.length))return y;var D=-1,V=[],re=u.length;for(f=wt(f,3);++D<re;){var ye=u[D];f(ye,D,u)&&(y.push(ye),V.push(D))}return X$(u,V),y}function lg(u){return u==null?u:pi.call(u)}function jL(u,f,y){var D=u==null?0:u.length;return D?(y&&typeof y!="number"&&kr(u,f,y)?(f=0,y=D):(f=f==null?0:kt(f),y=y===n?D:kt(y)),Mi(u,f,y)):[]}function KL(u,f){return Bd(u,f)}function UL(u,f,y){return Wm(u,f,wt(y,2))}function qL(u,f){var y=u==null?0:u.length;if(y){var D=Bd(u,f);if(D<y&&la(u[D],f))return D}return-1}function zL(u,f){return Bd(u,f,!0)}function WL(u,f,y){return Wm(u,f,wt(y,2),!0)}function HL(u,f){var y=u==null?0:u.length;if(y){var D=Bd(u,f,!0)-1;if(la(u[D],f))return D}return-1}function GL(u){return u&&u.length?Q$(u):[]}function YL(u,f){return u&&u.length?Q$(u,wt(f,2)):[]}function ZL(u){var f=u==null?0:u.length;return f?Mi(u,1,f):[]}function XL(u,f,y){return u&&u.length?(f=y||f===n?1:kt(f),Mi(u,0,f<0?0:f)):[]}function JL(u,f,y){var D=u==null?0:u.length;return D?(f=y||f===n?1:kt(f),f=D-f,Mi(u,f<0?0:f,D)):[]}function QL(u,f){return u&&u.length?Nd(u,wt(f,3),!1,!0):[]}function e8(u,f){return u&&u.length?Nd(u,wt(f,3)):[]}var t8=Vt(function(u){return eo(mr(u,1,Kn,!0))}),n8=Vt(function(u){var f=Fi(u);return Kn(f)&&(f=n),eo(mr(u,1,Kn,!0),wt(f,2))}),r8=Vt(function(u){var f=Fi(u);return f=typeof f=="function"?f:n,eo(mr(u,1,Kn,!0),n,f)});function i8(u){return u&&u.length?eo(u):[]}function a8(u,f){return u&&u.length?eo(u,wt(f,2)):[]}function s8(u,f){return f=typeof f=="function"?f:n,u&&u.length?eo(u,n,f):[]}function cg(u){if(!(u&&u.length))return[];var f=0;return u=xr(u,function(y){if(Kn(y))return f=Yt(y.length,f),!0}),Qu(f,function(y){return un(u,Xu(y))})}function Bx(u,f){if(!(u&&u.length))return[];var y=cg(u);return f==null?y:un(y,function(D){return On(f,n,D)})}var o8=Vt(function(u,f){return Kn(u)?Lc(u,f):[]}),u8=Vt(function(u){return Gm(xr(u,Kn))}),l8=Vt(function(u){var f=Fi(u);return Kn(f)&&(f=n),Gm(xr(u,Kn),wt(f,2))}),c8=Vt(function(u){var f=Fi(u);return f=typeof f=="function"?f:n,Gm(xr(u,Kn),n,f)}),f8=Vt(cg);function d8(u,f){return rx(u||[],f||[],Ic)}function h8(u,f){return rx(u||[],f||[],Nc)}var p8=Vt(function(u){var f=u.length,y=f>1?u[f-1]:n;return y=typeof y=="function"?(u.pop(),y):n,Bx(u,y)});function Nx(u){var f=Z(u);return f.__chain__=!0,f}function m8(u,f){return f(u),u}function Yd(u,f){return f(u)}var g8=Cs(function(u){var f=u.length,y=f?u[0]:0,D=this.__wrapped__,V=function(re){return Om(re,u)};return f>1||this.__actions__.length||!(D instanceof Kt)||!Es(y)?this.thru(V):(D=D.slice(y,+y+(f?1:0)),D.__actions__.push({func:Yd,args:[V],thisArg:n}),new Pi(D,this.__chain__).thru(function(re){return f&&!re.length&&re.push(n),re}))});function v8(){return Nx(this)}function y8(){return new Pi(this.value(),this.__chain__)}function b8(){this.__values__===n&&(this.__values__=ew(this.value()));var u=this.__index__>=this.__values__.length,f=u?n:this.__values__[this.__index__++];return{done:u,value:f}}function $8(){return this}function x8(u){for(var f,y=this;y instanceof kd;){var D=Rx(y);D.__index__=0,D.__values__=n,f?V.__wrapped__=D:f=D;var V=D;y=y.__wrapped__}return V.__wrapped__=u,f}function w8(){var u=this.__wrapped__;if(u instanceof Kt){var f=u;return this.__actions__.length&&(f=new Kt(this)),f=f.reverse(),f.__actions__.push({func:Yd,args:[lg],thisArg:n}),new Pi(f,this.__chain__)}return this.thru(lg)}function C8(){return nx(this.__wrapped__,this.__actions__)}var E8=jd(function(u,f,y){Be.call(u,y)?++u[y]:xs(u,y,1)});function S8(u,f,y){var D=Mt(u)?gs:m9;return y&&kr(u,f,y)&&(f=n),D(u,wt(f,3))}function D8(u,f){var y=Mt(u)?xr:B$;return y(u,wt(f,3))}var A8=hx(kx),T8=hx(Ox);function P8(u,f){return mr(Zd(u,f),1)}function _8(u,f){return mr(Zd(u,f),k)}function M8(u,f,y){return y=y===n?1:kt(y),mr(Zd(u,f),y)}function jx(u,f){var y=Mt(u)?fn:Qs;return y(u,wt(f,3))}function Kx(u,f){var y=Mt(u)?sr:V$;return y(u,wt(f,3))}var F8=jd(function(u,f,y){Be.call(u,y)?u[y].push(f):xs(u,y,[f])});function R8(u,f,y,D){u=Xr(u)?u:ul(u),y=y&&!D?kt(y):0;var V=u.length;return y<0&&(y=Yt(V+y,0)),th(u)?y<=V&&u.indexOf(f,y)>-1:!!V&&vs(u,f,y)>-1}var k8=Vt(function(u,f,y){var D=-1,V=typeof f=="function",re=Xr(u)?G(u.length):[];return Qs(u,function(ye){re[++D]=V?On(f,ye,y):Vc(ye,f,y)}),re}),O8=jd(function(u,f,y){xs(u,y,f)});function Zd(u,f){var y=Mt(u)?un:z$;return y(u,wt(f,3))}function I8(u,f,y,D){return u==null?[]:(Mt(f)||(f=f==null?[]:[f]),y=D?n:y,Mt(y)||(y=y==null?[]:[y]),Y$(u,f,y))}var L8=jd(function(u,f,y){u[y?0:1].push(f)},function(){return[[],[]]});function V8(u,f,y){var D=Mt(u)?Zu:_c,V=arguments.length<3;return D(u,wt(f,4),y,V,Qs)}function B8(u,f,y){var D=Mt(u)?Bo:_c,V=arguments.length<3;return D(u,wt(f,4),y,V,V$)}function N8(u,f){var y=Mt(u)?xr:B$;return y(u,Qd(wt(f,3)))}function j8(u){var f=Mt(u)?k$:R9;return f(u)}function K8(u,f,y){(y?kr(u,f,y):f===n)?f=1:f=kt(f);var D=Mt(u)?c9:k9;return D(u,f)}function U8(u){var f=Mt(u)?f9:I9;return f(u)}function q8(u){if(u==null)return 0;if(Xr(u))return th(u)?$(u):u.length;var f=Er(u);return f==ht||f==De?u.size:jm(u).length}function z8(u,f,y){var D=Mt(u)?Ma:L9;return y&&kr(u,f,y)&&(f=n),D(u,wt(f,3))}var W8=Vt(function(u,f){if(u==null)return[];var y=f.length;return y>1&&kr(u,f[0],f[1])?f=[]:y>2&&kr(f[0],f[1],f[2])&&(f=[f[0]]),Y$(u,mr(f,1),[])}),Xd=pr||function(){return En.Date.now()};function H8(u,f){if(typeof f!="function")throw new ne(s);return u=kt(u),function(){if(--u<1)return f.apply(this,arguments)}}function Ux(u,f,y){return f=y?n:f,f=u&&f==null?u.length:f,ws(u,z,n,n,n,n,f)}function qx(u,f){var y;if(typeof f!="function")throw new ne(s);return u=kt(u),function(){return--u>0&&(y=f.apply(this,arguments)),u<=1&&(f=n),y}}var fg=Vt(function(u,f,y){var D=A;if(y.length){var V=Gr(y,sl(fg));D|=_}return ws(u,D,f,y,V)}),zx=Vt(function(u,f,y){var D=A|C;if(y.length){var V=Gr(y,sl(zx));D|=_}return ws(f,D,u,y,V)});function Wx(u,f,y){f=y?n:f;var D=ws(u,S,n,n,n,n,n,f);return D.placeholder=Wx.placeholder,D}function Hx(u,f,y){f=y?n:f;var D=ws(u,R,n,n,n,n,n,f);return D.placeholder=Hx.placeholder,D}function Gx(u,f,y){var D,V,re,ye,Ee,Pe,qe=0,We=!1,Ze=!1,st=!0;if(typeof u!="function")throw new ne(s);f=Ri(f)||0,Tn(y)&&(We=!!y.leading,Ze="maxWait"in y,re=Ze?Yt(Ri(y.maxWait)||0,f):re,st="trailing"in y?!!y.trailing:st);function vt(Un){var ca=D,As=V;return D=V=n,qe=Un,ye=u.apply(As,ca),ye}function Et(Un){return qe=Un,Ee=Uc(Bt,f),We?vt(Un):ye}function Lt(Un){var ca=Un-Pe,As=Un-qe,hw=f-ca;return Ze?bn(hw,re-As):hw}function St(Un){var ca=Un-Pe,As=Un-qe;return Pe===n||ca>=f||ca<0||Ze&&As>=re}function Bt(){var Un=Xd();if(St(Un))return Wt(Un);Ee=Uc(Bt,Lt(Un))}function Wt(Un){return Ee=n,st&&D?vt(Un):(D=V=n,ye)}function vi(){Ee!==n&&ix(Ee),qe=0,D=Pe=V=Ee=n}function Or(){return Ee===n?ye:Wt(Xd())}function yi(){var Un=Xd(),ca=St(Un);if(D=arguments,V=this,Pe=Un,ca){if(Ee===n)return Et(Pe);if(Ze)return ix(Ee),Ee=Uc(Bt,f),vt(Pe)}return Ee===n&&(Ee=Uc(Bt,f)),ye}return yi.cancel=vi,yi.flush=Or,yi}var G8=Vt(function(u,f){return L$(u,1,f)}),Y8=Vt(function(u,f,y){return L$(u,Ri(f)||0,y)});function Z8(u){return ws(u,ge)}function Jd(u,f){if(typeof u!="function"||f!=null&&typeof f!="function")throw new ne(s);var y=function(){var D=arguments,V=f?f.apply(this,D):D[0],re=y.cache;if(re.has(V))return re.get(V);var ye=u.apply(this,D);return y.cache=re.set(V,ye)||re,ye};return y.cache=new(Jd.Cache||$s),y}Jd.Cache=$s;function Qd(u){if(typeof u!="function")throw new ne(s);return function(){var f=arguments;switch(f.length){case 0:return!u.call(this);case 1:return!u.call(this,f[0]);case 2:return!u.call(this,f[0],f[1]);case 3:return!u.call(this,f[0],f[1],f[2])}return!u.apply(this,f)}}function X8(u){return qx(2,u)}var J8=V9(function(u,f){f=f.length==1&&Mt(f[0])?un(f[0],wr(wt())):un(mr(f,1),wr(wt()));var y=f.length;return Vt(function(D){for(var V=-1,re=bn(D.length,y);++V<re;)D[V]=f[V].call(this,D[V]);return On(u,this,D)})}),dg=Vt(function(u,f){var y=Gr(f,sl(dg));return ws(u,_,n,f,y)}),Yx=Vt(function(u,f){var y=Gr(f,sl(Yx));return ws(u,F,n,f,y)}),Q8=Cs(function(u,f){return ws(u,ie,n,n,n,f)});function eV(u,f){if(typeof u!="function")throw new ne(s);return f=f===n?f:kt(f),Vt(u,f)}function tV(u,f){if(typeof u!="function")throw new ne(s);return f=f==null?0:Yt(kt(f),0),Vt(function(y){var D=y[f],V=no(y,0,f);return D&&na(V,D),On(u,this,V)})}function nV(u,f,y){var D=!0,V=!0;if(typeof u!="function")throw new ne(s);return Tn(y)&&(D="leading"in y?!!y.leading:D,V="trailing"in y?!!y.trailing:V),Gx(u,f,{leading:D,maxWait:f,trailing:V})}function rV(u){return Ux(u,1)}function iV(u,f){return dg(Zm(f),u)}function aV(){if(!arguments.length)return[];var u=arguments[0];return Mt(u)?u:[u]}function sV(u){return _i(u,b)}function oV(u,f){return f=typeof f=="function"?f:n,_i(u,b,f)}function uV(u){return _i(u,m|b)}function lV(u,f){return f=typeof f=="function"?f:n,_i(u,m|b,f)}function cV(u,f){return f==null||I$(u,f,lr(f))}function la(u,f){return u===f||u!==u&&f!==f}var fV=zd(Vm),dV=zd(function(u,f){return u>=f}),Xo=K$(function(){return arguments}())?K$:function(u){return Vn(u)&&Be.call(u,"callee")&&!yn.call(u,"callee")},Mt=G.isArray,hV=ms?wr(ms):x9;function Xr(u){return u!=null&&eh(u.length)&&!Ss(u)}function Kn(u){return Vn(u)&&Xr(u)}function pV(u){return u===!0||u===!1||Vn(u)&&Rr(u)==Ue}var ro=ra||Cg,mV=Td?wr(Td):w9;function gV(u){return Vn(u)&&u.nodeType===1&&!qc(u)}function vV(u){if(u==null)return!0;if(Xr(u)&&(Mt(u)||typeof u=="string"||typeof u.splice=="function"||ro(u)||ol(u)||Xo(u)))return!u.length;var f=Er(u);if(f==ht||f==De)return!u.size;if(Kc(u))return!jm(u).length;for(var y in u)if(Be.call(u,y))return!1;return!0}function yV(u,f){return Bc(u,f)}function bV(u,f,y){y=typeof y=="function"?y:n;var D=y?y(u,f):n;return D===n?Bc(u,f,n,y):!!D}function hg(u){if(!Vn(u))return!1;var f=Rr(u);return f==Ne||f==Ie||typeof u.message=="string"&&typeof u.name=="string"&&!qc(u)}function $V(u){return typeof u=="number"&&di(u)}function Ss(u){if(!Tn(u))return!1;var f=Rr(u);return f==Te||f==He||f==Qe||f==Qt}function Zx(u){return typeof u=="number"&&u==kt(u)}function eh(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=N}function Tn(u){var f=typeof u;return u!=null&&(f=="object"||f=="function")}function Vn(u){return u!=null&&typeof u=="object"}var Xx=Pd?wr(Pd):E9;function xV(u,f){return u===f||Nm(u,f,rg(f))}function wV(u,f,y){return y=typeof y=="function"?y:n,Nm(u,f,rg(f),y)}function CV(u){return Jx(u)&&u!=+u}function EV(u){if(oL(u))throw new de(a);return U$(u)}function SV(u){return u===null}function DV(u){return u==null}function Jx(u){return typeof u=="number"||Vn(u)&&Rr(u)==Ht}function qc(u){if(!Vn(u)||Rr(u)!=_t)return!1;var f=At(u);if(f===null)return!0;var y=Be.call(f,"constructor")&&f.constructor;return typeof y=="function"&&y instanceof y&&et.call(y)==xe}var pg=Ac?wr(Ac):S9;function AV(u){return Zx(u)&&u>=-N&&u<=N}var Qx=Zs?wr(Zs):D9;function th(u){return typeof u=="string"||!Mt(u)&&Vn(u)&&Rr(u)==Me}function gi(u){return typeof u=="symbol"||Vn(u)&&Rr(u)==Xe}var ol=ta?wr(ta):A9;function TV(u){return u===n}function PV(u){return Vn(u)&&Er(u)==Je}function _V(u){return Vn(u)&&Rr(u)==gt}var MV=zd(Km),FV=zd(function(u,f){return u<=f});function ew(u){if(!u)return[];if(Xr(u))return th(u)?T(u):Zr(u);if(Zn&&u[Zn])return Ra(u[Zn]());var f=Er(u),y=f==ht?In:f==De?Xs:ul;return y(u)}function Ds(u){if(!u)return u===0?u:0;if(u=Ri(u),u===k||u===-k){var f=u<0?-1:1;return f*te}return u===u?u:0}function kt(u){var f=Ds(u),y=f%1;return f===f?y?f-y:f:0}function tw(u){return u?Ho(kt(u),0,ce):0}function Ri(u){if(typeof u=="number")return u;if(gi(u))return j;if(Tn(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=Tn(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=Md(u);var y=ui.test(u);return y||Po.test(u)?tr(u.slice(2),y?2:8):Qi.test(u)?j:+u}function nw(u){return La(u,Jr(u))}function RV(u){return u?Ho(kt(u),-N,N):u===0?u:0}function an(u){return u==null?"":mi(u)}var kV=il(function(u,f){if(Kc(f)||Xr(f)){La(f,lr(f),u);return}for(var y in f)Be.call(f,y)&&Ic(u,y,f[y])}),rw=il(function(u,f){La(f,Jr(f),u)}),nh=il(function(u,f,y,D){La(f,Jr(f),u,D)}),OV=il(function(u,f,y,D){La(f,lr(f),u,D)}),IV=Cs(Om);function LV(u,f){var y=rl(u);return f==null?y:O$(y,f)}var VV=Vt(function(u,f){u=L(u);var y=-1,D=f.length,V=D>2?f[2]:n;for(V&&kr(f[0],f[1],V)&&(D=1);++y<D;)for(var re=f[y],ye=Jr(re),Ee=-1,Pe=ye.length;++Ee<Pe;){var qe=ye[Ee],We=u[qe];(We===n||la(We,Oe[qe])&&!Be.call(u,qe))&&(u[qe]=re[qe])}return u}),BV=Vt(function(u){return u.push(n,$x),On(iw,n,u)});function NV(u,f){return Tc(u,wt(f,3),Ia)}function jV(u,f){return Tc(u,wt(f,3),Lm)}function KV(u,f){return u==null?u:Im(u,wt(f,3),Jr)}function UV(u,f){return u==null?u:N$(u,wt(f,3),Jr)}function qV(u,f){return u&&Ia(u,wt(f,3))}function zV(u,f){return u&&Lm(u,wt(f,3))}function WV(u){return u==null?[]:Ld(u,lr(u))}function HV(u){return u==null?[]:Ld(u,Jr(u))}function mg(u,f,y){var D=u==null?n:Go(u,f);return D===n?y:D}function GV(u,f){return u!=null&&Cx(u,f,v9)}function gg(u,f){return u!=null&&Cx(u,f,y9)}var YV=mx(function(u,f,y){f!=null&&typeof f.toString!="function"&&(f=Ve.call(f)),u[f]=y},yg(Qr)),ZV=mx(function(u,f,y){f!=null&&typeof f.toString!="function"&&(f=Ve.call(f)),Be.call(u,f)?u[f].push(y):u[f]=[y]},wt),XV=Vt(Vc);function lr(u){return Xr(u)?R$(u):jm(u)}function Jr(u){return Xr(u)?R$(u,!0):T9(u)}function JV(u,f){var y={};return f=wt(f,3),Ia(u,function(D,V,re){xs(y,f(D,V,re),D)}),y}function QV(u,f){var y={};return f=wt(f,3),Ia(u,function(D,V,re){xs(y,V,f(D,V,re))}),y}var eB=il(function(u,f,y){Vd(u,f,y)}),iw=il(function(u,f,y,D){Vd(u,f,y,D)}),tB=Cs(function(u,f){var y={};if(u==null)return y;var D=!1;f=un(f,function(re){return re=to(re,u),D||(D=re.length>1),re}),La(u,tg(u),y),D&&(y=_i(y,m|g|b,Y9));for(var V=f.length;V--;)Hm(y,f[V]);return y});function nB(u,f){return aw(u,Qd(wt(f)))}var rB=Cs(function(u,f){return u==null?{}:_9(u,f)});function aw(u,f){if(u==null)return{};var y=un(tg(u),function(D){return[D]});return f=wt(f),Z$(u,y,function(D,V){return f(D,V[0])})}function iB(u,f,y){f=to(f,u);var D=-1,V=f.length;for(V||(V=1,u=n);++D<V;){var re=u==null?n:u[Va(f[D])];re===n&&(D=V,re=y),u=Ss(re)?re.call(u):re}return u}function aB(u,f,y){return u==null?u:Nc(u,f,y)}function sB(u,f,y,D){return D=typeof D=="function"?D:n,u==null?u:Nc(u,f,y,D)}var sw=yx(lr),ow=yx(Jr);function oB(u,f,y){var D=Mt(u),V=D||ro(u)||ol(u);if(f=wt(f,4),y==null){var re=u&&u.constructor;V?y=D?new re:[]:Tn(u)?y=Ss(re)?rl(At(u)):{}:y={}}return(V?fn:Ia)(u,function(ye,Ee,Pe){return f(y,ye,Ee,Pe)}),y}function uB(u,f){return u==null?!0:Hm(u,f)}function lB(u,f,y){return u==null?u:tx(u,f,Zm(y))}function cB(u,f,y,D){return D=typeof D=="function"?D:n,u==null?u:tx(u,f,Zm(y),D)}function ul(u){return u==null?[]:Mc(u,lr(u))}function fB(u){return u==null?[]:Mc(u,Jr(u))}function dB(u,f,y){return y===n&&(y=f,f=n),y!==n&&(y=Ri(y),y=y===y?y:0),f!==n&&(f=Ri(f),f=f===f?f:0),Ho(Ri(u),f,y)}function hB(u,f,y){return f=Ds(f),y===n?(y=f,f=0):y=Ds(y),u=Ri(u),b9(u,f,y)}function pB(u,f,y){if(y&&typeof y!="boolean"&&kr(u,f,y)&&(f=y=n),y===n&&(typeof f=="boolean"?(y=f,f=n):typeof u=="boolean"&&(y=u,u=n)),u===n&&f===n?(u=0,f=1):(u=Ds(u),f===n?(f=u,u=0):f=Ds(f)),u>f){var D=u;u=f,f=D}if(y||u%1||f%1){var V=sa();return bn(u+V*(f-u+vn("1e-"+((V+"").length-1))),f)}return qm(u,f)}var mB=al(function(u,f,y){return f=f.toLowerCase(),u+(y?uw(f):f)});function uw(u){return vg(an(u).toLowerCase())}function lw(u){return u=an(u),u&&u.replace(li,Fm).replace(ds,"")}function gB(u,f,y){u=an(u),f=mi(f);var D=u.length;y=y===n?D:Ho(kt(y),0,D);var V=y;return y-=f.length,y>=0&&u.slice(y,V)==f}function vB(u){return u=an(u),u&&vc.test(u)?u.replace(oi,ys):u}function yB(u){return u=an(u),u&&yt.test(u)?u.replace(Ji,"\\$&"):u}var bB=al(function(u,f,y){return u+(y?"-":"")+f.toLowerCase()}),$B=al(function(u,f,y){return u+(y?" ":"")+f.toLowerCase()}),xB=dx("toLowerCase");function wB(u,f,y){u=an(u),f=kt(f);var D=f?$(u):0;if(!f||D>=f)return u;var V=(f-D)/2;return qd(Yr(V),y)+u+qd(ln(V),y)}function CB(u,f,y){u=an(u),f=kt(f);var D=f?$(u):0;return f&&D<f?u+qd(f-D,y):u}function EB(u,f,y){u=an(u),f=kt(f);var D=f?$(u):0;return f&&D<f?qd(f-D,y)+u:u}function SB(u,f,y){return y||f==null?f=0:f&&(f=+f),hi(an(u).replace(Cn,""),f||0)}function DB(u,f,y){return(y?kr(u,f,y):f===n)?f=1:f=kt(f),zm(an(u),f)}function AB(){var u=arguments,f=an(u[0]);return u.length<3?f:f.replace(u[1],u[2])}var TB=al(function(u,f,y){return u+(y?"_":"")+f.toLowerCase()});function PB(u,f,y){return y&&typeof y!="number"&&kr(u,f,y)&&(f=y=n),y=y===n?ce:y>>>0,y?(u=an(u),u&&(typeof f=="string"||f!=null&&!pg(f))&&(f=mi(f),!f&&Cr(u))?no(T(u),0,y):u.split(f,y)):[]}var _B=al(function(u,f,y){return u+(y?" ":"")+vg(f)});function MB(u,f,y){return u=an(u),y=y==null?0:Ho(kt(y),0,u.length),f=mi(f),u.slice(y,y+f.length)==f}function FB(u,f,y){var D=Z.templateSettings;y&&kr(u,f,y)&&(f=n),u=an(u),f=nh({},f,D,bx);var V=nh({},f.imports,D.imports,bx),re=lr(V),ye=Mc(V,re),Ee,Pe,qe=0,We=f.interpolate||kn,Ze="__p += '",st=B((f.escape||kn).source+"|"+We.source+"|"+(We===Iu?at:kn).source+"|"+(f.evaluate||kn).source+"|$","g"),vt="//# sourceURL="+(Be.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ps+"]")+`
|
|
44
|
-
`;u.replace(st,function(St,Bt,Wt,vi,Or,yi){return Wt||(Wt=vi),Ze+=u.slice(qe,yi).replace(Ws,fi),Bt&&(Ee=!0,Ze+=`' +
|
|
45
|
-
__e(`+Bt+`) +
|
|
46
|
-
'`),Or&&(Pe=!0,Ze+=`';
|
|
47
|
-
`+Or+`;
|
|
48
|
-
__p += '`),Wt&&(Ze+=`' +
|
|
49
|
-
((__t = (`+Wt+`)) == null ? '' : __t) +
|
|
50
|
-
'`),qe=yi+St.length,St}),Ze+=`';
|
|
51
|
-
`;var Et=Be.call(f,"variable")&&f.variable;if(!Et)Ze=`with (obj) {
|
|
52
|
-
`+Ze+`
|
|
53
|
-
}
|
|
54
|
-
`;else if(bc.test(Et))throw new de(o);Ze=(Pe?Ze.replace(Pr,""):Ze).replace(Ea,"$1").replace(Ao,"$1;"),Ze="function("+(Et||"obj")+`) {
|
|
55
|
-
`+(Et?"":`obj || (obj = {});
|
|
56
|
-
`)+"var __t, __p = ''"+(Ee?", __e = _.escape":"")+(Pe?`, __j = Array.prototype.join;
|
|
57
|
-
function print() { __p += __j.call(arguments, '') }
|
|
58
|
-
`:`;
|
|
59
|
-
`)+Ze+`return __p
|
|
60
|
-
}`;var Lt=fw(function(){return W(re,vt+"return "+Ze).apply(n,ye)});if(Lt.source=Ze,hg(Lt))throw Lt;return Lt}function RB(u){return an(u).toLowerCase()}function kB(u){return an(u).toUpperCase()}function OB(u,f,y){if(u=an(u),u&&(y||f===n))return Md(u);if(!u||!(f=mi(f)))return u;var D=T(u),V=T(f),re=el(D,V),ye=or(D,V)+1;return no(D,re,ye).join("")}function IB(u,f,y){if(u=an(u),u&&(y||f===n))return u.slice(0,P(u)+1);if(!u||!(f=mi(f)))return u;var D=T(u),V=or(D,T(f))+1;return no(D,0,V).join("")}function LB(u,f,y){if(u=an(u),u&&(y||f===n))return u.replace(Cn,"");if(!u||!(f=mi(f)))return u;var D=T(u),V=el(D,T(f));return no(D,V).join("")}function VB(u,f){var y=oe,D=O;if(Tn(f)){var V="separator"in f?f.separator:V;y="length"in f?kt(f.length):y,D="omission"in f?mi(f.omission):D}u=an(u);var re=u.length;if(Cr(u)){var ye=T(u);re=ye.length}if(y>=re)return u;var Ee=y-$(D);if(Ee<1)return D;var Pe=ye?no(ye,0,Ee).join(""):u.slice(0,Ee);if(V===n)return Pe+D;if(ye&&(Ee+=Pe.length-Ee),pg(V)){if(u.slice(Ee).search(V)){var qe,We=Pe;for(V.global||(V=B(V.source,an(cn.exec(V))+"g")),V.lastIndex=0;qe=V.exec(We);)var Ze=qe.index;Pe=Pe.slice(0,Ze===n?Ee:Ze)}}else if(u.indexOf(mi(V),Ee)!=Ee){var st=Pe.lastIndexOf(V);st>-1&&(Pe=Pe.slice(0,st))}return Pe+D}function BB(u){return u=an(u),u&&is.test(u)?u.replace(bt,q):u}var NB=al(function(u,f,y){return u+(y?" ":"")+f.toUpperCase()}),vg=dx("toUpperCase");function cw(u,f,y){return u=an(u),f=y?n:f,f===n?Fc(u)?$e(u):Pm(u):u.match(f)||[]}var fw=Vt(function(u,f){try{return On(u,n,f)}catch(y){return hg(y)?y:new de(y)}}),jB=Cs(function(u,f){return fn(f,function(y){y=Va(y),xs(u,y,fg(u[y],u))}),u});function KB(u){var f=u==null?0:u.length,y=wt();return u=f?un(u,function(D){if(typeof D[1]!="function")throw new ne(s);return[y(D[0]),D[1]]}):[],Vt(function(D){for(var V=-1;++V<f;){var re=u[V];if(On(re[0],this,D))return On(re[1],this,D)}})}function UB(u){return p9(_i(u,m))}function yg(u){return function(){return u}}function qB(u,f){return u==null||u!==u?f:u}var zB=px(),WB=px(!0);function Qr(u){return u}function bg(u){return q$(typeof u=="function"?u:_i(u,m))}function HB(u){return W$(_i(u,m))}function GB(u,f){return H$(u,_i(f,m))}var YB=Vt(function(u,f){return function(y){return Vc(y,u,f)}}),ZB=Vt(function(u,f){return function(y){return Vc(u,y,f)}});function $g(u,f,y){var D=lr(f),V=Ld(f,D);y==null&&!(Tn(f)&&(V.length||!D.length))&&(y=f,f=u,u=this,V=Ld(f,lr(f)));var re=!(Tn(y)&&"chain"in y)||!!y.chain,ye=Ss(u);return fn(V,function(Ee){var Pe=f[Ee];u[Ee]=Pe,ye&&(u.prototype[Ee]=function(){var qe=this.__chain__;if(re||qe){var We=u(this.__wrapped__),Ze=We.__actions__=Zr(this.__actions__);return Ze.push({func:Pe,args:arguments,thisArg:u}),We.__chain__=qe,We}return Pe.apply(u,na([this.value()],arguments))})}),u}function XB(){return En._===this&&(En._=le),this}function xg(){}function JB(u){return u=kt(u),Vt(function(f){return G$(f,u)})}var QB=Jm(un),eN=Jm(gs),tN=Jm(Ma);function dw(u){return ag(u)?Xu(Va(u)):M9(u)}function nN(u){return function(f){return u==null?n:Go(u,f)}}var rN=gx(),iN=gx(!0);function wg(){return[]}function Cg(){return!1}function aN(){return{}}function sN(){return""}function oN(){return!0}function uN(u,f){if(u=kt(u),u<1||u>N)return[];var y=ce,D=bn(u,ce);f=wt(f),u-=ce;for(var V=Qu(D,f);++y<u;)f(y);return V}function lN(u){return Mt(u)?un(u,Va):gi(u)?[u]:Zr(Fx(an(u)))}function cN(u){var f=++ot;return an(u)+f}var fN=Ud(function(u,f){return u+f},0),dN=Qm("ceil"),hN=Ud(function(u,f){return u/f},1),pN=Qm("floor");function mN(u){return u&&u.length?Id(u,Qr,Vm):n}function gN(u,f){return u&&u.length?Id(u,wt(f,2),Vm):n}function vN(u){return Uo(u,Qr)}function yN(u,f){return Uo(u,wt(f,2))}function bN(u){return u&&u.length?Id(u,Qr,Km):n}function $N(u,f){return u&&u.length?Id(u,wt(f,2),Km):n}var xN=Ud(function(u,f){return u*f},1),wN=Qm("round"),CN=Ud(function(u,f){return u-f},0);function EN(u){return u&&u.length?Fa(u,Qr):0}function SN(u,f){return u&&u.length?Fa(u,wt(f,2)):0}return Z.after=H8,Z.ary=Ux,Z.assign=kV,Z.assignIn=rw,Z.assignInWith=nh,Z.assignWith=OV,Z.at=IV,Z.before=qx,Z.bind=fg,Z.bindAll=jB,Z.bindKey=zx,Z.castArray=aV,Z.chain=Nx,Z.chunk=pL,Z.compact=mL,Z.concat=gL,Z.cond=KB,Z.conforms=UB,Z.constant=yg,Z.countBy=E8,Z.create=LV,Z.curry=Wx,Z.curryRight=Hx,Z.debounce=Gx,Z.defaults=VV,Z.defaultsDeep=BV,Z.defer=G8,Z.delay=Y8,Z.difference=vL,Z.differenceBy=yL,Z.differenceWith=bL,Z.drop=$L,Z.dropRight=xL,Z.dropRightWhile=wL,Z.dropWhile=CL,Z.fill=EL,Z.filter=D8,Z.flatMap=P8,Z.flatMapDeep=_8,Z.flatMapDepth=M8,Z.flatten=Ix,Z.flattenDeep=SL,Z.flattenDepth=DL,Z.flip=Z8,Z.flow=zB,Z.flowRight=WB,Z.fromPairs=AL,Z.functions=WV,Z.functionsIn=HV,Z.groupBy=F8,Z.initial=PL,Z.intersection=_L,Z.intersectionBy=ML,Z.intersectionWith=FL,Z.invert=YV,Z.invertBy=ZV,Z.invokeMap=k8,Z.iteratee=bg,Z.keyBy=O8,Z.keys=lr,Z.keysIn=Jr,Z.map=Zd,Z.mapKeys=JV,Z.mapValues=QV,Z.matches=HB,Z.matchesProperty=GB,Z.memoize=Jd,Z.merge=eB,Z.mergeWith=iw,Z.method=YB,Z.methodOf=ZB,Z.mixin=$g,Z.negate=Qd,Z.nthArg=JB,Z.omit=tB,Z.omitBy=nB,Z.once=X8,Z.orderBy=I8,Z.over=QB,Z.overArgs=J8,Z.overEvery=eN,Z.overSome=tN,Z.partial=dg,Z.partialRight=Yx,Z.partition=L8,Z.pick=rB,Z.pickBy=aw,Z.property=dw,Z.propertyOf=nN,Z.pull=IL,Z.pullAll=Vx,Z.pullAllBy=LL,Z.pullAllWith=VL,Z.pullAt=BL,Z.range=rN,Z.rangeRight=iN,Z.rearg=Q8,Z.reject=N8,Z.remove=NL,Z.rest=eV,Z.reverse=lg,Z.sampleSize=K8,Z.set=aB,Z.setWith=sB,Z.shuffle=U8,Z.slice=jL,Z.sortBy=W8,Z.sortedUniq=GL,Z.sortedUniqBy=YL,Z.split=PB,Z.spread=tV,Z.tail=ZL,Z.take=XL,Z.takeRight=JL,Z.takeRightWhile=QL,Z.takeWhile=e8,Z.tap=m8,Z.throttle=nV,Z.thru=Yd,Z.toArray=ew,Z.toPairs=sw,Z.toPairsIn=ow,Z.toPath=lN,Z.toPlainObject=nw,Z.transform=oB,Z.unary=rV,Z.union=t8,Z.unionBy=n8,Z.unionWith=r8,Z.uniq=i8,Z.uniqBy=a8,Z.uniqWith=s8,Z.unset=uB,Z.unzip=cg,Z.unzipWith=Bx,Z.update=lB,Z.updateWith=cB,Z.values=ul,Z.valuesIn=fB,Z.without=o8,Z.words=cw,Z.wrap=iV,Z.xor=u8,Z.xorBy=l8,Z.xorWith=c8,Z.zip=f8,Z.zipObject=d8,Z.zipObjectDeep=h8,Z.zipWith=p8,Z.entries=sw,Z.entriesIn=ow,Z.extend=rw,Z.extendWith=nh,$g(Z,Z),Z.add=fN,Z.attempt=fw,Z.camelCase=mB,Z.capitalize=uw,Z.ceil=dN,Z.clamp=dB,Z.clone=sV,Z.cloneDeep=uV,Z.cloneDeepWith=lV,Z.cloneWith=oV,Z.conformsTo=cV,Z.deburr=lw,Z.defaultTo=qB,Z.divide=hN,Z.endsWith=gB,Z.eq=la,Z.escape=vB,Z.escapeRegExp=yB,Z.every=S8,Z.find=A8,Z.findIndex=kx,Z.findKey=NV,Z.findLast=T8,Z.findLastIndex=Ox,Z.findLastKey=jV,Z.floor=pN,Z.forEach=jx,Z.forEachRight=Kx,Z.forIn=KV,Z.forInRight=UV,Z.forOwn=qV,Z.forOwnRight=zV,Z.get=mg,Z.gt=fV,Z.gte=dV,Z.has=GV,Z.hasIn=gg,Z.head=Lx,Z.identity=Qr,Z.includes=R8,Z.indexOf=TL,Z.inRange=hB,Z.invoke=XV,Z.isArguments=Xo,Z.isArray=Mt,Z.isArrayBuffer=hV,Z.isArrayLike=Xr,Z.isArrayLikeObject=Kn,Z.isBoolean=pV,Z.isBuffer=ro,Z.isDate=mV,Z.isElement=gV,Z.isEmpty=vV,Z.isEqual=yV,Z.isEqualWith=bV,Z.isError=hg,Z.isFinite=$V,Z.isFunction=Ss,Z.isInteger=Zx,Z.isLength=eh,Z.isMap=Xx,Z.isMatch=xV,Z.isMatchWith=wV,Z.isNaN=CV,Z.isNative=EV,Z.isNil=DV,Z.isNull=SV,Z.isNumber=Jx,Z.isObject=Tn,Z.isObjectLike=Vn,Z.isPlainObject=qc,Z.isRegExp=pg,Z.isSafeInteger=AV,Z.isSet=Qx,Z.isString=th,Z.isSymbol=gi,Z.isTypedArray=ol,Z.isUndefined=TV,Z.isWeakMap=PV,Z.isWeakSet=_V,Z.join=RL,Z.kebabCase=bB,Z.last=Fi,Z.lastIndexOf=kL,Z.lowerCase=$B,Z.lowerFirst=xB,Z.lt=MV,Z.lte=FV,Z.max=mN,Z.maxBy=gN,Z.mean=vN,Z.meanBy=yN,Z.min=bN,Z.minBy=$N,Z.stubArray=wg,Z.stubFalse=Cg,Z.stubObject=aN,Z.stubString=sN,Z.stubTrue=oN,Z.multiply=xN,Z.nth=OL,Z.noConflict=XB,Z.noop=xg,Z.now=Xd,Z.pad=wB,Z.padEnd=CB,Z.padStart=EB,Z.parseInt=SB,Z.random=pB,Z.reduce=V8,Z.reduceRight=B8,Z.repeat=DB,Z.replace=AB,Z.result=iB,Z.round=wN,Z.runInContext=M,Z.sample=j8,Z.size=q8,Z.snakeCase=TB,Z.some=z8,Z.sortedIndex=KL,Z.sortedIndexBy=UL,Z.sortedIndexOf=qL,Z.sortedLastIndex=zL,Z.sortedLastIndexBy=WL,Z.sortedLastIndexOf=HL,Z.startCase=_B,Z.startsWith=MB,Z.subtract=CN,Z.sum=EN,Z.sumBy=SN,Z.template=FB,Z.times=uN,Z.toFinite=Ds,Z.toInteger=kt,Z.toLength=tw,Z.toLower=RB,Z.toNumber=Ri,Z.toSafeInteger=RV,Z.toString=an,Z.toUpper=kB,Z.trim=OB,Z.trimEnd=IB,Z.trimStart=LB,Z.truncate=VB,Z.unescape=BB,Z.uniqueId=cN,Z.upperCase=NB,Z.upperFirst=vg,Z.each=jx,Z.eachRight=Kx,Z.first=Lx,$g(Z,function(){var u={};return Ia(Z,function(f,y){Be.call(Z.prototype,y)||(u[y]=f)}),u}(),{chain:!1}),Z.VERSION=r,fn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){Z[u].placeholder=Z}),fn(["drop","take"],function(u,f){Kt.prototype[u]=function(y){y=y===n?1:Yt(kt(y),0);var D=this.__filtered__&&!f?new Kt(this):this.clone();return D.__filtered__?D.__takeCount__=bn(y,D.__takeCount__):D.__views__.push({size:bn(y,ce),type:u+(D.__dir__<0?"Right":"")}),D},Kt.prototype[u+"Right"]=function(y){return this.reverse()[u](y).reverse()}}),fn(["filter","map","takeWhile"],function(u,f){var y=f+1,D=y==U||y==K;Kt.prototype[u]=function(V){var re=this.clone();return re.__iteratees__.push({iteratee:wt(V,3),type:y}),re.__filtered__=re.__filtered__||D,re}}),fn(["head","last"],function(u,f){var y="take"+(f?"Right":"");Kt.prototype[u]=function(){return this[y](1).value()[0]}}),fn(["initial","tail"],function(u,f){var y="drop"+(f?"":"Right");Kt.prototype[u]=function(){return this.__filtered__?new Kt(this):this[y](1)}}),Kt.prototype.compact=function(){return this.filter(Qr)},Kt.prototype.find=function(u){return this.filter(u).head()},Kt.prototype.findLast=function(u){return this.reverse().find(u)},Kt.prototype.invokeMap=Vt(function(u,f){return typeof u=="function"?new Kt(this):this.map(function(y){return Vc(y,u,f)})}),Kt.prototype.reject=function(u){return this.filter(Qd(wt(u)))},Kt.prototype.slice=function(u,f){u=kt(u);var y=this;return y.__filtered__&&(u>0||f<0)?new Kt(y):(u<0?y=y.takeRight(-u):u&&(y=y.drop(u)),f!==n&&(f=kt(f),y=f<0?y.dropRight(-f):y.take(f-u)),y)},Kt.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},Kt.prototype.toArray=function(){return this.take(ce)},Ia(Kt.prototype,function(u,f){var y=/^(?:filter|find|map|reject)|While$/.test(f),D=/^(?:head|last)$/.test(f),V=Z[D?"take"+(f=="last"?"Right":""):f],re=D||/^find/.test(f);V&&(Z.prototype[f]=function(){var ye=this.__wrapped__,Ee=D?[1]:arguments,Pe=ye instanceof Kt,qe=Ee[0],We=Pe||Mt(ye),Ze=function(Bt){var Wt=V.apply(Z,na([Bt],Ee));return D&&st?Wt[0]:Wt};We&&y&&typeof qe=="function"&&qe.length!=1&&(Pe=We=!1);var st=this.__chain__,vt=!!this.__actions__.length,Et=re&&!st,Lt=Pe&&!vt;if(!re&&We){ye=Lt?ye:new Kt(this);var St=u.apply(ye,Ee);return St.__actions__.push({func:Yd,args:[Ze],thisArg:n}),new Pi(St,st)}return Et&&Lt?u.apply(this,Ee):(St=this.thru(Ze),Et?D?St.value()[0]:St.value():St)})}),fn(["pop","push","shift","sort","splice","unshift"],function(u){var f=se[u],y=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",D=/^(?:pop|shift)$/.test(u);Z.prototype[u]=function(){var V=arguments;if(D&&!this.__chain__){var re=this.value();return f.apply(Mt(re)?re:[],V)}return this[y](function(ye){return f.apply(Mt(ye)?ye:[],V)})}}),Ia(Kt.prototype,function(u,f){var y=Z[f];if(y){var D=y.name+"";Be.call(nl,D)||(nl[D]=[]),nl[D].push({name:f,func:y})}}),nl[Kd(n,C).name]=[{name:"wrapper",func:n}],Kt.prototype.clone=BI,Kt.prototype.reverse=NI,Kt.prototype.value=jI,Z.prototype.at=g8,Z.prototype.chain=v8,Z.prototype.commit=y8,Z.prototype.next=b8,Z.prototype.plant=x8,Z.prototype.reverse=w8,Z.prototype.toJSON=Z.prototype.valueOf=Z.prototype.value=C8,Z.prototype.first=Z.prototype.head,Zn&&(Z.prototype[Zn]=$8),Z},Re=Ce();Di?((Di.exports=Re)._=Re,Si._=Re):En._=Re}).call(az)}(lf,lf.exports)),lf.exports}var jP=sz();const oz=yr(jP);function Yp(){return typeof window<"u"}function nc(e){return KP(e)?(e.nodeName||"").toLowerCase():"#document"}function ai(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ns(e){var t;return(t=(KP(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function KP(e){return Yp()?e instanceof Node||e instanceof ai(e).Node:!1}function er(e){return Yp()?e instanceof Element||e instanceof ai(e).Element:!1}function Yi(e){return Yp()?e instanceof HTMLElement||e instanceof ai(e).HTMLElement:!1}function Pb(e){return!Yp()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ai(e).ShadowRoot}const uz=new Set(["inline","contents"]);function Jf(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=va(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!uz.has(i)}const lz=new Set(["table","td","th"]);function cz(e){return lz.has(nc(e))}const fz=[":popover-open",":modal"];function Zp(e){return fz.some(t=>{try{return e.matches(t)}catch{return!1}})}const dz=["transform","translate","scale","rotate","perspective"],hz=["transform","translate","scale","rotate","perspective","filter"],pz=["paint","layout","strict","content"];function R4(e){const t=k4(),n=er(e)?va(e):e;return dz.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)||hz.some(r=>(n.willChange||"").includes(r))||pz.some(r=>(n.contain||"").includes(r))}function mz(e){let t=bo(e);for(;Yi(t)&&!Nl(t);){if(R4(t))return t;if(Zp(t))return null;t=bo(t)}return null}function k4(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const gz=new Set(["html","body","#document"]);function Nl(e){return gz.has(nc(e))}function va(e){return ai(e).getComputedStyle(e)}function Xp(e){return er(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function bo(e){if(nc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Pb(e)&&e.host||ns(e);return Pb(t)?t.host:t}function UP(e){const t=bo(e);return Nl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yi(t)&&Jf(t)?t:UP(t)}function _f(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=UP(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=ai(i);if(a){const o=_b(s);return t.concat(s,s.visualViewport||[],Jf(i)?i:[],o&&n?_f(o):[])}return t.concat(i,_f(i,[],n))}function _b(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Zh=Math.min,mu=Math.max,Xh=Math.round,rh=Math.floor,Ya=e=>({x:e,y:e}),vz={left:"right",right:"left",bottom:"top",top:"bottom"},yz={start:"end",end:"start"};function QE(e,t,n){return mu(e,Zh(t,n))}function Jp(e,t){return typeof e=="function"?e(t):e}function $u(e){return e.split("-")[0]}function Qp(e){return e.split("-")[1]}function qP(e){return e==="x"?"y":"x"}function zP(e){return e==="y"?"height":"width"}const bz=new Set(["top","bottom"]);function mo(e){return bz.has($u(e))?"y":"x"}function WP(e){return qP(mo(e))}function $z(e,t,n){n===void 0&&(n=!1);const r=Qp(e),i=WP(e),a=zP(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Jh(s)),[s,Jh(s)]}function xz(e){const t=Jh(e);return[Mb(e),t,Mb(t)]}function Mb(e){return e.replace(/start|end/g,t=>yz[t])}const eS=["left","right"],tS=["right","left"],wz=["top","bottom"],Cz=["bottom","top"];function Ez(e,t,n){switch(e){case"top":case"bottom":return n?t?tS:eS:t?eS:tS;case"left":case"right":return t?wz:Cz;default:return[]}}function Sz(e,t,n,r){const i=Qp(e);let a=Ez($u(e),n==="start",r);return i&&(a=a.map(s=>s+"-"+i),t&&(a=a.concat(a.map(Mb)))),a}function Jh(e){return e.replace(/left|right|bottom|top/g,t=>vz[t])}function Dz(e){return{top:0,right:0,bottom:0,left:0,...e}}function Az(e){return typeof e!="number"?Dz(e):{top:e,right:e,bottom:e,left:e}}function Qh(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 Tz(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Pz(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function _z(){return/apple/i.test(navigator.vendor)}function Mz(){return Tz().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Fz(){return Pz().includes("jsdom/")}const nS="data-floating-ui-focusable",Rz="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function rS(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Fb(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Pb(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function kz(e){return"composedPath"in e?e.composedPath()[0]:e.target}function cf(e){return(e==null?void 0:e.ownerDocument)||document}function Oz(e){return Yi(e)&&e.matches(Rz)}function Iz(e){if(!e||Fz())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Lz(e){return e?e.hasAttribute(nS)?e:e.querySelector("["+nS+"]")||e:null}function Rb(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}var Vz=typeof document<"u",Bz=function(){},jl=Vz?I.useLayoutEffect:Bz;const Nz={...fe};function ih(e){const t=fe.useRef(e);return jl(()=>{t.current=e}),t}const jz=Nz.useInsertionEffect,Kz=jz||(e=>e());function ff(e){const t=fe.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Kz(()=>{t.current=e}),fe.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function iS(e,t,n){let{reference:r,floating:i}=e;const a=mo(t),s=WP(t),o=zP(s),c=$u(t),d=a==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,g=r[o]/2-i[o]/2;let b;switch(c){case"top":b={x:h,y:r.y-i.height};break;case"bottom":b={x:h,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:m};break;case"left":b={x:r.x-i.width,y:m};break;default:b={x:r.x,y:r.y}}switch(Qp(t)){case"start":b[s]-=g*(n&&d?-1:1);break;case"end":b[s]+=g*(n&&d?-1:1);break}return b}const Uz=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,o=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=iS(d,r,c),g=r,b={},w=0;for(let x=0;x<o.length;x++){const{name:A,fn:C}=o[x],{x:E,y:S,data:R,reset:_}=await C({x:h,y:m,initialPlacement:r,placement:g,strategy:i,middlewareData:b,rects:d,platform:s,elements:{reference:e,floating:t}});h=E??h,m=S??m,b={...b,[A]:{...b[A],...R}},_&&w<=50&&(w++,typeof _=="object"&&(_.placement&&(g=_.placement),_.rects&&(d=_.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):_.rects),{x:h,y:m}=iS(d,g,c)),x=-1)}return{x:h,y:m,placement:g,strategy:i,middlewareData:b}};async function HP(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:s,elements:o,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:b=0}=Jp(t,e),w=Az(b),A=o[g?m==="floating"?"reference":"floating":m],C=Qh(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(A)))==null||n?A:A.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(o.floating)),boundary:d,rootBoundary:h,strategy:c})),E=m==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(o.floating)),R=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},_=Qh(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:E,offsetParent:S,strategy:c}):E);return{top:(C.top-_.top+w.top)/R.y,bottom:(_.bottom-C.bottom+w.bottom)/R.y,left:(C.left-_.left+w.left)/R.x,right:(_.right-C.right+w.right)/R.x}}const qz=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:o,platform:c,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:x=!0,...A}=Jp(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const C=$u(i),E=mo(o),S=$u(o)===o,R=await(c.isRTL==null?void 0:c.isRTL(d.floating)),_=g||(S||!x?[Jh(o)]:xz(o)),F=w!=="none";!g&&F&&_.push(...Sz(o,x,w,R));const z=[o,..._],ie=await HP(t,A),ge=[];let oe=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&ge.push(ie[C]),m){const U=$z(i,s,R);ge.push(ie[U[0]],ie[U[1]])}if(oe=[...oe,{placement:i,overflows:ge}],!ge.every(U=>U<=0)){var O,we;const U=(((O=a.flip)==null?void 0:O.index)||0)+1,ee=z[U];if(ee&&(!(m==="alignment"?E!==mo(ee):!1)||oe.every(N=>mo(N.placement)===E?N.overflows[0]>0:!0)))return{data:{index:U,overflows:oe},reset:{placement:ee}};let K=(we=oe.filter(k=>k.overflows[0]<=0).sort((k,N)=>k.overflows[1]-N.overflows[1])[0])==null?void 0:we.placement;if(!K)switch(b){case"bestFit":{var Se;const k=(Se=oe.filter(N=>{if(F){const te=mo(N.placement);return te===E||te==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(te=>te>0).reduce((te,j)=>te+j,0)]).sort((N,te)=>N[1]-te[1])[0])==null?void 0:Se[0];k&&(K=k);break}case"initialPlacement":K=o;break}if(i!==K)return{reset:{placement:K}}}return{}}}},zz=new Set(["left","top"]);async function Wz(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=$u(n),o=Qp(n),c=mo(n)==="y",d=zz.has(s)?-1:1,h=a&&c?-1:1,m=Jp(t,e);let{mainAxis:g,crossAxis:b,alignmentAxis:w}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return o&&typeof w=="number"&&(b=o==="end"?w*-1:w),c?{x:b*h,y:g*d}:{x:g*d,y:b*h}}const Hz=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:o}=t,c=await Wz(t,e);return s===((n=o.offset)==null?void 0:n.placement)&&(r=o.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:a+c.y,data:{...c,placement:s}}}}},Gz=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:o={fn:A=>{let{x:C,y:E}=A;return{x:C,y:E}}},...c}=Jp(e,t),d={x:n,y:r},h=await HP(t,c),m=mo($u(i)),g=qP(m);let b=d[g],w=d[m];if(a){const A=g==="y"?"top":"left",C=g==="y"?"bottom":"right",E=b+h[A],S=b-h[C];b=QE(E,b,S)}if(s){const A=m==="y"?"top":"left",C=m==="y"?"bottom":"right",E=w+h[A],S=w-h[C];w=QE(E,w,S)}const x=o.fn({...t,[g]:b,[m]:w});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[g]:a,[m]:s}}}}}};function GP(e){const t=va(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Yi(e),a=i?e.offsetWidth:n,s=i?e.offsetHeight:r,o=Xh(n)!==a||Xh(r)!==s;return o&&(n=a,r=s),{width:n,height:r,$:o}}function O4(e){return er(e)?e:e.contextElement}function Tl(e){const t=O4(e);if(!Yi(t))return Ya(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=GP(t);let s=(a?Xh(n.width):n.width)/r,o=(a?Xh(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!o||!Number.isFinite(o))&&(o=1),{x:s,y:o}}const Yz=Ya(0);function YP(e){const t=ai(e);return!k4()||!t.visualViewport?Yz:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zz(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ai(e)?!1:t}function xu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=O4(e);let s=Ya(1);t&&(r?er(r)&&(s=Tl(r)):s=Tl(e));const o=Zz(a,n,r)?YP(a):Ya(0);let c=(i.left+o.x)/s.x,d=(i.top+o.y)/s.y,h=i.width/s.x,m=i.height/s.y;if(a){const g=ai(a),b=r&&er(r)?ai(r):r;let w=g,x=_b(w);for(;x&&r&&b!==w;){const A=Tl(x),C=x.getBoundingClientRect(),E=va(x),S=C.left+(x.clientLeft+parseFloat(E.paddingLeft))*A.x,R=C.top+(x.clientTop+parseFloat(E.paddingTop))*A.y;c*=A.x,d*=A.y,h*=A.x,m*=A.y,c+=S,d+=R,w=ai(x),x=_b(w)}}return Qh({width:h,height:m,x:c,y:d})}function I4(e,t){const n=Xp(e).scrollLeft;return t?t.left+n:xu(ns(e)).left+n}function ZP(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:I4(e,r)),a=r.top+t.scrollTop;return{x:i,y:a}}function Xz(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",s=ns(r),o=t?Zp(t.floating):!1;if(r===s||o&&a)return n;let c={scrollLeft:0,scrollTop:0},d=Ya(1);const h=Ya(0),m=Yi(r);if((m||!m&&!a)&&((nc(r)!=="body"||Jf(s))&&(c=Xp(r)),Yi(r))){const b=xu(r);d=Tl(r),h.x=b.x+r.clientLeft,h.y=b.y+r.clientTop}const g=s&&!m&&!a?ZP(s,c,!0):Ya(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+h.x+g.x,y:n.y*d.y-c.scrollTop*d.y+h.y+g.y}}function Jz(e){return Array.from(e.getClientRects())}function Qz(e){const t=ns(e),n=Xp(e),r=e.ownerDocument.body,i=mu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=mu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+I4(e);const o=-n.scrollTop;return va(r).direction==="rtl"&&(s+=mu(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:s,y:o}}function eW(e,t){const n=ai(e),r=ns(e),i=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,o=0,c=0;if(i){a=i.width,s=i.height;const d=k4();(!d||d&&t==="fixed")&&(o=i.offsetLeft,c=i.offsetTop)}return{width:a,height:s,x:o,y:c}}const tW=new Set(["absolute","fixed"]);function nW(e,t){const n=xu(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Yi(e)?Tl(e):Ya(1),s=e.clientWidth*a.x,o=e.clientHeight*a.y,c=i*a.x,d=r*a.y;return{width:s,height:o,x:c,y:d}}function aS(e,t,n){let r;if(t==="viewport")r=eW(e,n);else if(t==="document")r=Qz(ns(e));else if(er(t))r=nW(t,n);else{const i=YP(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Qh(r)}function XP(e,t){const n=bo(e);return n===t||!er(n)||Nl(n)?!1:va(n).position==="fixed"||XP(n,t)}function rW(e,t){const n=t.get(e);if(n)return n;let r=_f(e,[],!1).filter(o=>er(o)&&nc(o)!=="body"),i=null;const a=va(e).position==="fixed";let s=a?bo(e):e;for(;er(s)&&!Nl(s);){const o=va(s),c=R4(s);!c&&o.position==="fixed"&&(i=null),(a?!c&&!i:!c&&o.position==="static"&&!!i&&tW.has(i.position)||Jf(s)&&!c&&XP(e,s))?r=r.filter(h=>h!==s):i=o,s=bo(s)}return t.set(e,r),r}function iW(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Zp(t)?[]:rW(t,this._c):[].concat(n),r],o=s[0],c=s.reduce((d,h)=>{const m=aS(t,h,i);return d.top=mu(m.top,d.top),d.right=Zh(m.right,d.right),d.bottom=Zh(m.bottom,d.bottom),d.left=mu(m.left,d.left),d},aS(t,o,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function aW(e){const{width:t,height:n}=GP(e);return{width:t,height:n}}function sW(e,t,n){const r=Yi(t),i=ns(t),a=n==="fixed",s=xu(e,!0,a,t);let o={scrollLeft:0,scrollTop:0};const c=Ya(0);function d(){c.x=I4(i)}if(r||!r&&!a)if((nc(t)!=="body"||Jf(i))&&(o=Xp(t)),r){const b=xu(t,!0,a,t);c.x=b.x+t.clientLeft,c.y=b.y+t.clientTop}else i&&d();a&&!r&&i&&d();const h=i&&!r&&!a?ZP(i,o):Ya(0),m=s.left+o.scrollLeft-c.x-h.x,g=s.top+o.scrollTop-c.y-h.y;return{x:m,y:g,width:s.width,height:s.height}}function Wy(e){return va(e).position==="static"}function sS(e,t){if(!Yi(e)||va(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ns(e)===n&&(n=n.ownerDocument.body),n}function JP(e,t){const n=ai(e);if(Zp(e))return n;if(!Yi(e)){let i=bo(e);for(;i&&!Nl(i);){if(er(i)&&!Wy(i))return i;i=bo(i)}return n}let r=sS(e,t);for(;r&&cz(r)&&Wy(r);)r=sS(r,t);return r&&Nl(r)&&Wy(r)&&!R4(r)?n:r||mz(e)||n}const oW=async function(e){const t=this.getOffsetParent||JP,n=this.getDimensions,r=await n(e.floating);return{reference:sW(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function uW(e){return va(e).direction==="rtl"}const lW={convertOffsetParentRelativeRectToViewportRelativeRect:Xz,getDocumentElement:ns,getClippingRect:iW,getOffsetParent:JP,getElementRects:oW,getClientRects:Jz,getDimensions:aW,getScale:Tl,isElement:er,isRTL:uW};function QP(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cW(e,t){let n=null,r;const i=ns(e);function a(){var o;clearTimeout(r),(o=n)==null||o.disconnect(),n=null}function s(o,c){o===void 0&&(o=!1),c===void 0&&(c=1),a();const d=e.getBoundingClientRect(),{left:h,top:m,width:g,height:b}=d;if(o||t(),!g||!b)return;const w=rh(m),x=rh(i.clientWidth-(h+g)),A=rh(i.clientHeight-(m+b)),C=rh(h),S={rootMargin:-w+"px "+-x+"px "+-A+"px "+-C+"px",threshold:mu(0,Zh(1,c))||1};let R=!0;function _(F){const z=F[0].intersectionRatio;if(z!==c){if(!R)return s();z?s(!1,z):r=setTimeout(()=>{s(!1,1e-7)},1e3)}z===1&&!QP(d,e.getBoundingClientRect())&&s(),R=!1}try{n=new IntersectionObserver(_,{...S,root:i.ownerDocument})}catch{n=new IntersectionObserver(_,S)}n.observe(e)}return s(!0),a}function fW(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=O4(e),h=i||a?[...d?_f(d):[],..._f(t)]:[];h.forEach(C=>{i&&C.addEventListener("scroll",n,{passive:!0}),a&&C.addEventListener("resize",n)});const m=d&&o?cW(d,n):null;let g=-1,b=null;s&&(b=new ResizeObserver(C=>{let[E]=C;E&&E.target===d&&b&&(b.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var S;(S=b)==null||S.observe(t)})),n()}),d&&!c&&b.observe(d),b.observe(t));let w,x=c?xu(e):null;c&&A();function A(){const C=xu(e);x&&!QP(x,C)&&n(),x=C,w=requestAnimationFrame(A)}return n(),()=>{var C;h.forEach(E=>{i&&E.removeEventListener("scroll",n),a&&E.removeEventListener("resize",n)}),m==null||m(),(C=b)==null||C.disconnect(),b=null,c&&cancelAnimationFrame(w)}}const dW=Hz,hW=Gz,pW=qz,mW=(e,t,n)=>{const r=new Map,i={platform:lW,...n},a={...i.platform,_c:r};return Uz(e,t,{...i,platform:a})};var gW=typeof document<"u",vW=function(){},Sh=gW?I.useLayoutEffect:vW;function ep(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(!ep(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)&&!ep(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function e5(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function oS(e,t){const n=e5(e);return Math.round(t*n)/n}function Hy(e){const t=fe.useRef(e);return Sh(()=>{t.current=e}),t}function t5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:o=!0,whileElementsMounted:c,open:d}=e,[h,m]=fe.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,b]=fe.useState(r);ep(g,r)||b(r);const[w,x]=fe.useState(null),[A,C]=fe.useState(null),E=fe.useCallback(N=>{N!==F.current&&(F.current=N,x(N))},[]),S=fe.useCallback(N=>{N!==z.current&&(z.current=N,C(N))},[]),R=a||w,_=s||A,F=fe.useRef(null),z=fe.useRef(null),ie=fe.useRef(h),ge=c!=null,oe=Hy(c),O=Hy(i),we=Hy(d),Se=fe.useCallback(()=>{if(!F.current||!z.current)return;const N={placement:t,strategy:n,middleware:g};O.current&&(N.platform=O.current),mW(F.current,z.current,N).then(te=>{const j={...te,isPositioned:we.current!==!1};U.current&&!ep(ie.current,j)&&(ie.current=j,Os.flushSync(()=>{m(j)}))})},[g,t,n,O,we]);Sh(()=>{d===!1&&ie.current.isPositioned&&(ie.current.isPositioned=!1,m(N=>({...N,isPositioned:!1})))},[d]);const U=fe.useRef(!1);Sh(()=>(U.current=!0,()=>{U.current=!1}),[]),Sh(()=>{if(R&&(F.current=R),_&&(z.current=_),R&&_){if(oe.current)return oe.current(R,_,Se);Se()}},[R,_,Se,oe,ge]);const ee=fe.useMemo(()=>({reference:F,floating:z,setReference:E,setFloating:S}),[E,S]),K=fe.useMemo(()=>({reference:R,floating:_}),[R,_]),k=fe.useMemo(()=>{const N={position:n,left:0,top:0};if(!K.floating)return N;const te=oS(K.floating,h.x),j=oS(K.floating,h.y);return o?{...N,transform:"translate("+te+"px, "+j+"px)",...e5(K.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:j}},[n,o,K.floating,h.x,h.y]);return fe.useMemo(()=>({...h,update:Se,refs:ee,elements:K,floatingStyles:k}),[h,Se,ee,K,k])}const yW=(e,t)=>({...dW(e),options:[e,t]}),bW=(e,t)=>({...hW(e),options:[e,t]}),$W=(e,t)=>({...pW(e),options:[e,t]}),xW="data-floating-ui-focusable",uS="active",lS="selected",wW={...fe};let cS=!1,CW=0;const fS=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+CW++;function EW(){const[e,t]=fe.useState(()=>cS?fS():void 0);return jl(()=>{e==null&&t(fS())},[]),fe.useEffect(()=>{cS=!0},[]),e}const SW=wW.useId,n5=SW||EW;let kb;process.env.NODE_ENV!=="production"&&(kb=new Set);function DW(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=kb)!=null&&e.has(i))){var a;(a=kb)==null||a.add(i),console.error(i)}}function AW(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const TW=fe.createContext(null),PW=fe.createContext(null),L4=()=>{var e;return((e=fe.useContext(TW))==null?void 0:e.id)||null},r5=()=>fe.useContext(PW);function i5(e){return"data-floating-ui-"+e}function Ii(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const dS=i5("safe-polygon");function Gy(e,t,n){if(n&&!Rb(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r==null?void 0:r[t]}return e==null?void 0:e[t]}function Yy(e){return typeof e=="function"?e():e}function _W(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:a,elements:s}=e,{enabled:o=!0,delay:c=0,handleClose:d=null,mouseOnly:h=!1,restMs:m=0,move:g=!0}=t,b=r5(),w=L4(),x=ih(d),A=ih(c),C=ih(n),E=ih(m),S=fe.useRef(),R=fe.useRef(-1),_=fe.useRef(),F=fe.useRef(-1),z=fe.useRef(!0),ie=fe.useRef(!1),ge=fe.useRef(()=>{}),oe=fe.useRef(!1),O=ff(()=>{var k;const N=(k=i.current.openEvent)==null?void 0:k.type;return(N==null?void 0:N.includes("mouse"))&&N!=="mousedown"});fe.useEffect(()=>{if(!o)return;function k(N){let{open:te}=N;te||(Ii(R),Ii(F),z.current=!0,oe.current=!1)}return a.on("openchange",k),()=>{a.off("openchange",k)}},[o,a]),fe.useEffect(()=>{if(!o||!x.current||!n)return;function k(te){O()&&r(!1,te,"hover")}const N=cf(s.floating).documentElement;return N.addEventListener("mouseleave",k),()=>{N.removeEventListener("mouseleave",k)}},[s.floating,n,r,o,x,O]);const we=fe.useCallback(function(k,N,te){N===void 0&&(N=!0),te===void 0&&(te="hover");const j=Gy(A.current,"close",S.current);j&&!_.current?(Ii(R),R.current=window.setTimeout(()=>r(!1,k,te),j)):N&&(Ii(R),r(!1,k,te))},[A,r]),Se=ff(()=>{ge.current(),_.current=void 0}),U=ff(()=>{if(ie.current){const k=cf(s.floating).body;k.style.pointerEvents="",k.removeAttribute(dS),ie.current=!1}}),ee=ff(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);fe.useEffect(()=>{if(!o)return;function k(ue){if(Ii(R),z.current=!1,h&&!Rb(S.current)||Yy(E.current)>0&&!Gy(A.current,"open"))return;const Ae=Gy(A.current,"open",S.current);Ae?R.current=window.setTimeout(()=>{C.current||r(!0,ue,"hover")},Ae):n||r(!0,ue,"hover")}function N(ue){if(ee()){U();return}ge.current();const Ae=cf(s.floating);if(Ii(F),oe.current=!1,x.current&&i.current.floatingContext){n||Ii(R),_.current=x.current({...i.current.floatingContext,tree:b,x:ue.clientX,y:ue.clientY,onClose(){U(),Se(),ee()||we(ue,!0,"safe-polygon")}});const Le=_.current;Ae.addEventListener("mousemove",Le),ge.current=()=>{Ae.removeEventListener("mousemove",Le)};return}(S.current==="touch"?!Fb(s.floating,ue.relatedTarget):!0)&&we(ue)}function te(ue){ee()||i.current.floatingContext&&(x.current==null||x.current({...i.current.floatingContext,tree:b,x:ue.clientX,y:ue.clientY,onClose(){U(),Se(),ee()||we(ue)}})(ue))}function j(){Ii(R)}function ce(ue){ee()||we(ue,!1)}if(er(s.domReference)){const ue=s.domReference,Ae=s.floating;return n&&ue.addEventListener("mouseleave",te),g&&ue.addEventListener("mousemove",k,{once:!0}),ue.addEventListener("mouseenter",k),ue.addEventListener("mouseleave",N),Ae&&(Ae.addEventListener("mouseleave",te),Ae.addEventListener("mouseenter",j),Ae.addEventListener("mouseleave",ce)),()=>{n&&ue.removeEventListener("mouseleave",te),g&&ue.removeEventListener("mousemove",k),ue.removeEventListener("mouseenter",k),ue.removeEventListener("mouseleave",N),Ae&&(Ae.removeEventListener("mouseleave",te),Ae.removeEventListener("mouseenter",j),Ae.removeEventListener("mouseleave",ce))}}},[s,o,e,h,g,we,Se,U,r,n,C,b,A,x,i,ee,E]),jl(()=>{var k;if(o&&n&&(k=x.current)!=null&&(k=k.__options)!=null&&k.blockPointerEvents&&O()){ie.current=!0;const te=s.floating;if(er(s.domReference)&&te){var N;const j=cf(s.floating).body;j.setAttribute(dS,"");const ce=s.domReference,ue=b==null||(N=b.nodesRef.current.find(Ae=>Ae.id===w))==null||(N=N.context)==null?void 0:N.elements.floating;return ue&&(ue.style.pointerEvents=""),j.style.pointerEvents="none",ce.style.pointerEvents="auto",te.style.pointerEvents="auto",()=>{j.style.pointerEvents="",ce.style.pointerEvents="",te.style.pointerEvents=""}}}},[o,n,w,s,b,x,O]),jl(()=>{n||(S.current=void 0,oe.current=!1,Se(),U())},[n,Se,U]),fe.useEffect(()=>()=>{Se(),Ii(R),Ii(F),U()},[o,s.domReference,Se,U]);const K=fe.useMemo(()=>{function k(N){S.current=N.pointerType}return{onPointerDown:k,onPointerEnter:k,onMouseMove(N){const{nativeEvent:te}=N;function j(){!z.current&&!C.current&&r(!0,te,"hover")}h&&!Rb(S.current)||n||Yy(E.current)===0||oe.current&&N.movementX**2+N.movementY**2<2||(Ii(F),S.current==="touch"?j():(oe.current=!0,F.current=window.setTimeout(j,Yy(E.current))))}}},[h,r,n,C,E]);return fe.useMemo(()=>o?{reference:K}:{},[o,K])}function MW(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=n5(),a=fe.useRef({}),[s]=fe.useState(()=>AW()),o=L4()!=null;if(process.env.NODE_ENV!=="production"){const b=r.reference;b&&!er(b)&&DW("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,d]=fe.useState(r.reference),h=ff((b,w,x)=>{a.current.openEvent=b?w:void 0,s.emit("openchange",{open:b,event:w,reason:x,nested:o}),n==null||n(b,w,x)}),m=fe.useMemo(()=>({setPositionReference:d}),[]),g=fe.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return fe.useMemo(()=>({dataRef:a,open:t,onOpenChange:h,elements:g,events:s,floatingId:i,refs:m}),[t,h,g,s,i,m])}function FW(e){e===void 0&&(e={});const{nodeId:t}=e,n=MW({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,s]=fe.useState(null),[o,c]=fe.useState(null),h=(i==null?void 0:i.domReference)||a,m=fe.useRef(null),g=r5();jl(()=>{h&&(m.current=h)},[h]);const b=t5({...e,elements:{...i,...o&&{reference:o}}}),w=fe.useCallback(S=>{const R=er(S)?{getBoundingClientRect:()=>S.getBoundingClientRect(),getClientRects:()=>S.getClientRects(),contextElement:S}:S;c(R),b.refs.setReference(R)},[b.refs]),x=fe.useCallback(S=>{(er(S)||S===null)&&(m.current=S,s(S)),(er(b.refs.reference.current)||b.refs.reference.current===null||S!==null&&!er(S))&&b.refs.setReference(S)},[b.refs]),A=fe.useMemo(()=>({...b.refs,setReference:x,setPositionReference:w,domReference:m}),[b.refs,x,w]),C=fe.useMemo(()=>({...b.elements,domReference:h}),[b.elements,h]),E=fe.useMemo(()=>({...b,...r,refs:A,elements:C,nodeId:t}),[b,A,C,t,r]);return jl(()=>{r.dataRef.current.floatingContext=E;const S=g==null?void 0:g.nodesRef.current.find(R=>R.id===t);S&&(S.context=E)}),fe.useMemo(()=>({...b,context:E,refs:A,elements:C}),[b,A,C,E])}function Zy(){return Mz()&&_z()}function RW(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:a,elements:s}=e,{enabled:o=!0,visibleOnly:c=!0}=t,d=fe.useRef(!1),h=fe.useRef(-1),m=fe.useRef(!0);fe.useEffect(()=>{if(!o)return;const b=ai(s.domReference);function w(){!n&&Yi(s.domReference)&&s.domReference===rS(cf(s.domReference))&&(d.current=!0)}function x(){m.current=!0}function A(){m.current=!1}return b.addEventListener("blur",w),Zy()&&(b.addEventListener("keydown",x,!0),b.addEventListener("pointerdown",A,!0)),()=>{b.removeEventListener("blur",w),Zy()&&(b.removeEventListener("keydown",x,!0),b.removeEventListener("pointerdown",A,!0))}},[s.domReference,n,o]),fe.useEffect(()=>{if(!o)return;function b(w){let{reason:x}=w;(x==="reference-press"||x==="escape-key")&&(d.current=!0)}return i.on("openchange",b),()=>{i.off("openchange",b)}},[i,o]),fe.useEffect(()=>()=>{Ii(h)},[]);const g=fe.useMemo(()=>({onMouseLeave(){d.current=!1},onFocus(b){if(d.current)return;const w=kz(b.nativeEvent);if(c&&er(w)){if(Zy()&&!b.relatedTarget){if(!m.current&&!Oz(w))return}else if(!Iz(w))return}r(!0,b.nativeEvent,"focus")},onBlur(b){d.current=!1;const w=b.relatedTarget,x=b.nativeEvent,A=er(w)&&w.hasAttribute(i5("focus-guard"))&&w.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var C;const E=rS(s.domReference?s.domReference.ownerDocument:document);!w&&E===s.domReference||Fb((C=a.current.floatingContext)==null?void 0:C.refs.floating.current,E)||Fb(s.domReference,E)||A||r(!1,x,"focus")})}}),[a,s.domReference,r,c]);return fe.useMemo(()=>o?{reference:g}:{},[o,g])}function Xy(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[uS]:s,[lS]:o,...c}=e;a=c}return{...n==="floating"&&{tabIndex:-1,[xW]:""},...a,...t.map(s=>{const o=s?s[n]:null;return typeof o=="function"?e?o(e):null:o}).concat(e).reduce((s,o)=>(o&&Object.entries(o).forEach(c=>{let[d,h]=c;if(!(i&&[uS,lS].includes(d)))if(d.indexOf("on")===0){if(r.has(d)||r.set(d,[]),typeof h=="function"){var m;(m=r.get(d))==null||m.push(h),s[d]=function(){for(var g,b=arguments.length,w=new Array(b),x=0;x<b;x++)w[x]=arguments[x];return(g=r.get(d))==null?void 0:g.map(A=>A(...w)).find(A=>A!==void 0)}}}else s[d]=h}),s),{})}}function kW(e){e===void 0&&(e=[]);const t=e.map(o=>o==null?void 0:o.reference),n=e.map(o=>o==null?void 0:o.floating),r=e.map(o=>o==null?void 0:o.item),i=fe.useCallback(o=>Xy(o,e,"reference"),t),a=fe.useCallback(o=>Xy(o,e,"floating"),n),s=fe.useCallback(o=>Xy(o,e,"item"),r);return fe.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:s}),[i,a,s])}const OW=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function IW(e,t){var n,r;t===void 0&&(t={});const{open:i,elements:a,floatingId:s}=e,{enabled:o=!0,role:c="dialog"}=t,d=n5(),h=((n=a.domReference)==null?void 0:n.id)||d,m=fe.useMemo(()=>{var E;return((E=Lz(a.floating))==null?void 0:E.id)||s},[a.floating,s]),g=(r=OW.get(c))!=null?r:c,w=L4()!=null,x=fe.useMemo(()=>g==="tooltip"||c==="label"?{["aria-"+(c==="label"?"labelledby":"describedby")]:i?m:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":g==="alertdialog"?"dialog":g,"aria-controls":i?m:void 0,...g==="listbox"&&{role:"combobox"},...g==="menu"&&{id:h},...g==="menu"&&w&&{role:"menuitem"},...c==="select"&&{"aria-autocomplete":"none"},...c==="combobox"&&{"aria-autocomplete":"list"}},[g,m,w,i,h,c]),A=fe.useMemo(()=>{const E={id:m,...g&&{role:g}};return g==="tooltip"||c==="label"?E:{...E,...g==="menu"&&{"aria-labelledby":h}}},[g,m,h,c]),C=fe.useCallback(E=>{let{active:S,selected:R}=E;const _={role:"option",...S&&{id:m+"-fui-option"}};switch(c){case"select":case"combobox":return{..._,"aria-selected":R}}return{}},[m,c]);return fe.useMemo(()=>o?{reference:x,floating:A,item:C}:{},[o,x,A,C])}var Qf=e=>e.type==="checkbox",au=e=>e instanceof Date,Lr=e=>e==null;const a5=e=>typeof e=="object";var Hn=e=>!Lr(e)&&!Array.isArray(e)&&a5(e)&&!au(e),s5=e=>Hn(e)&&e.target?Qf(e.target)?e.target.checked:e.target.value:e,LW=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,o5=(e,t)=>e.has(LW(t)),VW=e=>{const t=e.constructor&&e.constructor.prototype;return Hn(t)&&t.hasOwnProperty("isPrototypeOf")},V4=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function $n(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(V4&&(e instanceof Blob||r))&&(n||Hn(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!VW(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=$n(e[i]));else return e;return t}var em=e=>/^\w*$/.test(e),xn=e=>e===void 0,tm=e=>Array.isArray(e)?e.filter(Boolean):[],B4=e=>tm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),it=(e,t,n)=>{if(!t||!Hn(e))return n;const r=(em(t)?[t]:B4(t)).reduce((i,a)=>Lr(i)?i:i[a],e);return xn(r)||r===e?xn(e[t])?n:e[t]:r},$i=e=>typeof e=="boolean",nn=(e,t,n)=>{let r=-1;const i=em(t)?[t]:B4(t),a=i.length,s=a-1;for(;++r<a;){const o=i[r];let c=n;if(r!==s){const d=e[o];c=Hn(d)||Array.isArray(d)?d:isNaN(+i[r+1])?{}:[]}if(o==="__proto__"||o==="constructor"||o==="prototype")return;e[o]=c,e=e[o]}};const tp={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ki={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ts={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},N4=fe.default.createContext(null);N4.displayName="HookFormContext";const ed=()=>fe.default.useContext(N4),BW=e=>{const{children:t,...n}=e;return fe.default.createElement(N4.Provider,{value:n},t)};var u5=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const s=a;return t._proxyFormState[s]!==Ki.all&&(t._proxyFormState[s]=!r||Ki.all),n&&(n[s]=!0),e[s]}});return i};const nm=typeof window<"u"?fe.default.useLayoutEffect:fe.default.useEffect;function NW(e){const t=ed(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[s,o]=fe.default.useState(n._formState),c=fe.default.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return nm(()=>n._subscribe({name:i,formState:c.current,exact:a,callback:d=>{!r&&o({...n._formState,...d})}}),[i,r,a]),fe.default.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),fe.default.useMemo(()=>u5(s,n,c.current,!1),[s,n])}var Ua=e=>typeof e=="string",l5=(e,t,n,r,i)=>Ua(e)?(r&&t.watch.add(e),it(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),it(n,a))):(r&&(t.watchAll=!0),n),Ob=e=>Lr(e)||!a5(e);function _s(e,t,n=new WeakSet){if(Ob(e)||Ob(t))return e===t;if(au(e)&&au(t))return e.getTime()===t.getTime();const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const a of r){const s=e[a];if(!i.includes(a))return!1;if(a!=="ref"){const o=t[a];if(au(s)&&au(o)||Hn(s)&&Hn(o)||Array.isArray(s)&&Array.isArray(o)?!_s(s,o,n):s!==o)return!1}}return!0}function c5(e){const t=ed(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:s,compute:o}=e||{},c=fe.default.useRef(i),d=fe.default.useRef(o),h=fe.default.useRef(void 0);d.current=o;const m=fe.default.useMemo(()=>n._getWatch(r,c.current),[n,r]),[g,b]=fe.default.useState(d.current?d.current(m):m);return nm(()=>n._subscribe({name:r,formState:{values:!0},exact:s,callback:w=>{if(!a){const x=l5(r,n._names,w.values||n._formValues,!1,c.current);if(d.current){const A=d.current(x);_s(A,h.current)||(b(A),h.current=A)}else b(x)}}}),[n,a,r,s]),fe.default.useEffect(()=>n._removeUnmounted()),g}function f5(e){const t=ed(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a,defaultValue:s}=e,o=o5(i._names.array,n),c=fe.default.useMemo(()=>it(i._formValues,n,it(i._defaultValues,n,s)),[i,n,s]),d=c5({control:i,name:n,defaultValue:c,exact:!0}),h=NW({control:i,name:n,exact:!0}),m=fe.default.useRef(e),g=fe.default.useRef(i.register(n,{...e.rules,value:d,...$i(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;const b=fe.default.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!it(h.errors,n)},isDirty:{enumerable:!0,get:()=>!!it(h.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!it(h.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!it(h.validatingFields,n)},error:{enumerable:!0,get:()=>it(h.errors,n)}}),[h,n]),w=fe.default.useCallback(E=>g.current.onChange({target:{value:s5(E),name:n},type:tp.CHANGE}),[n]),x=fe.default.useCallback(()=>g.current.onBlur({target:{value:it(i._formValues,n),name:n},type:tp.BLUR}),[n,i._formValues]),A=fe.default.useCallback(E=>{const S=it(i._fields,n);S&&E&&(S._f.ref={focus:()=>E.focus&&E.focus(),select:()=>E.select&&E.select(),setCustomValidity:R=>E.setCustomValidity(R),reportValidity:()=>E.reportValidity()})},[i._fields,n]),C=fe.default.useMemo(()=>({name:n,value:d,...$i(r)||h.disabled?{disabled:h.disabled||r}:{},onChange:w,onBlur:x,ref:A}),[n,r,h.disabled,w,x,A,d]);return fe.default.useEffect(()=>{const E=i._options.shouldUnregister||a;i.register(n,{...m.current.rules,...$i(m.current.disabled)?{disabled:m.current.disabled}:{}});const S=(R,_)=>{const F=it(i._fields,R);F&&F._f&&(F._f.mount=_)};if(S(n,!0),E){const R=$n(it(i._options.defaultValues,n));nn(i._defaultValues,n,R),xn(it(i._formValues,n))&&nn(i._formValues,n,R)}return!o&&i.register(n),()=>{(o?E&&!i._state.action:E)?i.unregister(n):S(n,!1)}},[n,i,o,a]),fe.default.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),fe.default.useMemo(()=>({field:C,formState:h,fieldState:b}),[C,h,b])}const jW=e=>e.render(f5(e));var d5=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ni=e=>Array.isArray(e)?e:[e],hS=()=>{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},Ir=e=>Hn(e)&&!Object.keys(e).length,j4=e=>e.type==="file",pa=e=>typeof e=="function",np=e=>{if(!V4)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},h5=e=>e.type==="select-multiple",K4=e=>e.type==="radio",KW=e=>K4(e)||Qf(e),Jy=e=>np(e)&&e.isConnected;function UW(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=xn(e)?r++:e[t[r++]];return e}function qW(e){for(const t in e)if(e.hasOwnProperty(t)&&!xn(e[t]))return!1;return!0}function zn(e,t){const n=Array.isArray(t)?t:em(t)?[t]:B4(t),r=n.length===1?e:UW(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(Hn(r)&&Ir(r)||Array.isArray(r)&&qW(r))&&zn(e,n.slice(0,-1)),e}var p5=e=>{for(const t in e)if(pa(e[t]))return!0;return!1};function rp(e,t={}){const n=Array.isArray(e);if(Hn(e)||n)for(const r in e)Array.isArray(e[r])||Hn(e[r])&&!p5(e[r])?(t[r]=Array.isArray(e[r])?[]:{},rp(e[r],t[r])):Lr(e[r])||(t[r]=!0);return t}function m5(e,t,n){const r=Array.isArray(e);if(Hn(e)||r)for(const i in e)Array.isArray(e[i])||Hn(e[i])&&!p5(e[i])?xn(t)||Ob(n[i])?n[i]=Array.isArray(e[i])?rp(e[i],[]):{...rp(e[i])}:m5(e[i],Lr(t)?{}:t[i],n[i]):n[i]=!_s(e[i],t[i]);return n}var Wc=(e,t)=>m5(e,t,rp(t));const pS={value:!1,isValid:!1},mS={value:!0,isValid:!0};var g5=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!xn(e[0].attributes.value)?xn(e[0].value)||e[0].value===""?mS:{value:e[0].value,isValid:!0}:mS:pS}return pS},v5=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>xn(e)?e:t?e===""?NaN:e&&+e:n&&Ua(e)?new Date(e):r?r(e):e;const gS={isValid:!1,value:null};var y5=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,gS):gS;function vS(e){const t=e.ref;return j4(t)?t.files:K4(t)?y5(e.refs).value:h5(t)?[...t.selectedOptions].map(({value:n})=>n):Qf(t)?g5(e.refs).value:v5(xn(t.value)?e.ref.value:t.value,e)}var zW=(e,t,n,r)=>{const i={};for(const a of e){const s=it(t,a);s&&nn(i,a,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},ip=e=>e instanceof RegExp,Hc=e=>xn(e)?e:ip(e)?e.source:Hn(e)?ip(e.value)?e.value.source:e.value:e,gl=e=>({isOnSubmit:!e||e===Ki.onSubmit,isOnBlur:e===Ki.onBlur,isOnChange:e===Ki.onChange,isOnAll:e===Ki.all,isOnTouch:e===Ki.onTouched});const yS="AsyncFunction";var WW=e=>!!e&&!!e.validate&&!!(pa(e.validate)&&e.validate.constructor.name===yS||Hn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===yS)),HW=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Ib=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Pl=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=it(e,i);if(a){const{_f:s,...o}=a;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)return!0;if(s.ref&&t(s.ref,s.name)&&!r)return!0;if(Pl(o,t))break}else if(Hn(o)&&Pl(o,t))break}}};function bS(e,t,n){const r=it(e,n);if(r||em(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),s=it(t,a),o=it(e,a);if(s&&!Array.isArray(s)&&n!==a)return{name:n};if(o&&o.type)return{name:a,error:o};if(o&&o.root&&o.root.type)return{name:`${a}.root`,error:o.root};i.pop()}return{name:n}}var GW=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return Ir(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(s=>t[s]===(!r||Ki.all))},YW=(e,t,n)=>!e||!t||e===t||ni(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),ZW=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,XW=(e,t)=>!tm(it(e,t)).length&&zn(e,t),b5=(e,t,n)=>{const r=ni(it(e,n));return nn(r,"root",t[n]),nn(e,n,r),e},Dh=e=>Ua(e);function $S(e,t,n="validate"){if(Dh(e)||Array.isArray(e)&&e.every(Dh)||$i(e)&&!e)return{type:n,message:Dh(e)?e:"",ref:t}}var ll=e=>Hn(e)&&!ip(e)?e:{value:e,message:""},Lb=async(e,t,n,r,i,a)=>{const{ref:s,refs:o,required:c,maxLength:d,minLength:h,min:m,max:g,pattern:b,validate:w,name:x,valueAsNumber:A,mount:C}=e._f,E=it(n,x);if(!C||t.has(x))return{};const S=o?o[0]:s,R=we=>{i&&S.reportValidity&&(S.setCustomValidity($i(we)?"":we||""),S.reportValidity())},_={},F=K4(s),z=Qf(s),ie=F||z,ge=(A||j4(s))&&xn(s.value)&&xn(E)||np(s)&&s.value===""||E===""||Array.isArray(E)&&!E.length,oe=d5.bind(null,x,r,_),O=(we,Se,U,ee=Ts.maxLength,K=Ts.minLength)=>{const k=we?Se:U;_[x]={type:we?ee:K,message:k,ref:s,...oe(we?ee:K,k)}};if(a?!Array.isArray(E)||!E.length:c&&(!ie&&(ge||Lr(E))||$i(E)&&!E||z&&!g5(o).isValid||F&&!y5(o).isValid)){const{value:we,message:Se}=Dh(c)?{value:!!c,message:c}:ll(c);if(we&&(_[x]={type:Ts.required,message:Se,ref:S,...oe(Ts.required,Se)},!r))return R(Se),_}if(!ge&&(!Lr(m)||!Lr(g))){let we,Se;const U=ll(g),ee=ll(m);if(!Lr(E)&&!isNaN(E)){const K=s.valueAsNumber||E&&+E;Lr(U.value)||(we=K>U.value),Lr(ee.value)||(Se=K<ee.value)}else{const K=s.valueAsDate||new Date(E),k=j=>new Date(new Date().toDateString()+" "+j),N=s.type=="time",te=s.type=="week";Ua(U.value)&&E&&(we=N?k(E)>k(U.value):te?E>U.value:K>new Date(U.value)),Ua(ee.value)&&E&&(Se=N?k(E)<k(ee.value):te?E<ee.value:K<new Date(ee.value))}if((we||Se)&&(O(!!we,U.message,ee.message,Ts.max,Ts.min),!r))return R(_[x].message),_}if((d||h)&&!ge&&(Ua(E)||a&&Array.isArray(E))){const we=ll(d),Se=ll(h),U=!Lr(we.value)&&E.length>+we.value,ee=!Lr(Se.value)&&E.length<+Se.value;if((U||ee)&&(O(U,we.message,Se.message),!r))return R(_[x].message),_}if(b&&!ge&&Ua(E)){const{value:we,message:Se}=ll(b);if(ip(we)&&!E.match(we)&&(_[x]={type:Ts.pattern,message:Se,ref:s,...oe(Ts.pattern,Se)},!r))return R(Se),_}if(w){if(pa(w)){const we=await w(E,n),Se=$S(we,S);if(Se&&(_[x]={...Se,...oe(Ts.validate,Se.message)},!r))return R(Se.message),_}else if(Hn(w)){let we={};for(const Se in w){if(!Ir(we)&&!r)break;const U=$S(await w[Se](E,n),S,Se);U&&(we={...U,...oe(Se,U.message)},R(U.message),r&&(_[x]=we))}if(!Ir(we)&&(_[x]={ref:S,...we},!r))return _}}return R(!0),_};const JW={mode:Ki.onSubmit,reValidateMode:Ki.onChange,shouldFocusError:!0};function QW(e={}){let t={...JW,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:pa(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=Hn(t.defaultValues)||Hn(t.values)?$n(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:$n(i),s={action:!1,mount:!1,watch:!1},o={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let m={...h};const g={array:hS(),state:hS()},b=t.criteriaMode===Ki.all,w=be=>De=>{clearTimeout(d),d=setTimeout(be,De)},x=async be=>{if(!t.disabled&&(h.isValid||m.isValid||be)){const De=t.resolver?Ir((await z()).errors):await ge(r,!0);De!==n.isValid&&g.state.next({isValid:De})}},A=(be,De)=>{!t.disabled&&(h.isValidating||h.validatingFields||m.isValidating||m.validatingFields)&&((be||Array.from(o.mount)).forEach(Me=>{Me&&(De?nn(n.validatingFields,Me,De):zn(n.validatingFields,Me))}),g.state.next({validatingFields:n.validatingFields,isValidating:!Ir(n.validatingFields)}))},C=(be,De=[],Me,Xe,tt=!0,Je=!0)=>{if(Xe&&Me&&!t.disabled){if(s.action=!0,Je&&Array.isArray(it(r,be))){const gt=Me(it(r,be),Xe.argA,Xe.argB);tt&&nn(r,be,gt)}if(Je&&Array.isArray(it(n.errors,be))){const gt=Me(it(n.errors,be),Xe.argA,Xe.argB);tt&&nn(n.errors,be,gt),XW(n.errors,be)}if((h.touchedFields||m.touchedFields)&&Je&&Array.isArray(it(n.touchedFields,be))){const gt=Me(it(n.touchedFields,be),Xe.argA,Xe.argB);tt&&nn(n.touchedFields,be,gt)}(h.dirtyFields||m.dirtyFields)&&(n.dirtyFields=Wc(i,a)),g.state.next({name:be,isDirty:O(be,De),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else nn(a,be,De)},E=(be,De)=>{nn(n.errors,be,De),g.state.next({errors:n.errors})},S=be=>{n.errors=be,g.state.next({errors:n.errors,isValid:!1})},R=(be,De,Me,Xe)=>{const tt=it(r,be);if(tt){const Je=it(a,be,xn(Me)?it(i,be):Me);xn(Je)||Xe&&Xe.defaultChecked||De?nn(a,be,De?Je:vS(tt._f)):U(be,Je),s.mount&&x()}},_=(be,De,Me,Xe,tt)=>{let Je=!1,gt=!1;const Rt={name:be};if(!t.disabled){if(!Me||Xe){(h.isDirty||m.isDirty)&&(gt=n.isDirty,n.isDirty=Rt.isDirty=O(),Je=gt!==Rt.isDirty);const xt=_s(it(i,be),De);gt=!!it(n.dirtyFields,be),xt?zn(n.dirtyFields,be):nn(n.dirtyFields,be,!0),Rt.dirtyFields=n.dirtyFields,Je=Je||(h.dirtyFields||m.dirtyFields)&>!==!xt}if(Me){const xt=it(n.touchedFields,be);xt||(nn(n.touchedFields,be,Me),Rt.touchedFields=n.touchedFields,Je=Je||(h.touchedFields||m.touchedFields)&&xt!==Me)}Je&&tt&&g.state.next(Rt)}return Je?Rt:{}},F=(be,De,Me,Xe)=>{const tt=it(n.errors,be),Je=(h.isValid||m.isValid)&&$i(De)&&n.isValid!==De;if(t.delayError&&Me?(c=w(()=>E(be,Me)),c(t.delayError)):(clearTimeout(d),c=null,Me?nn(n.errors,be,Me):zn(n.errors,be)),(Me?!_s(tt,Me):tt)||!Ir(Xe)||Je){const gt={...Xe,...Je&&$i(De)?{isValid:De}:{},errors:n.errors,name:be};n={...n,...gt},g.state.next(gt)}},z=async be=>{A(be,!0);const De=await t.resolver(a,t.context,zW(be||o.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return A(be),De},ie=async be=>{const{errors:De}=await z(be);if(be)for(const Me of be){const Xe=it(De,Me);Xe?nn(n.errors,Me,Xe):zn(n.errors,Me)}else n.errors=De;return De},ge=async(be,De,Me={valid:!0})=>{for(const Xe in be){const tt=be[Xe];if(tt){const{_f:Je,...gt}=tt;if(Je){const Rt=o.array.has(Je.name),xt=tt._f&&WW(tt._f);xt&&h.validatingFields&&A([Xe],!0);const gn=await Lb(tt,o.disabled,a,b,t.shouldUseNativeValidation&&!De,Rt);if(xt&&h.validatingFields&&A([Xe]),gn[Je.name]&&(Me.valid=!1,De))break;!De&&(it(gn,Je.name)?Rt?b5(n.errors,gn,Je.name):nn(n.errors,Je.name,gn[Je.name]):zn(n.errors,Je.name))}!Ir(gt)&&await ge(gt,De,Me)}}return Me.valid},oe=()=>{for(const be of o.unMount){const De=it(r,be);De&&(De._f.refs?De._f.refs.every(Me=>!Jy(Me)):!Jy(De._f.ref))&&Qe(be)}o.unMount=new Set},O=(be,De)=>!t.disabled&&(be&&De&&nn(a,be,De),!_s(j(),i)),we=(be,De,Me)=>l5(be,o,{...s.mount?a:xn(De)?i:Ua(be)?{[be]:De}:De},Me,De),Se=be=>tm(it(s.mount?a:i,be,t.shouldUnregister?it(i,be,[]):[])),U=(be,De,Me={})=>{const Xe=it(r,be);let tt=De;if(Xe){const Je=Xe._f;Je&&(!Je.disabled&&nn(a,be,v5(De,Je)),tt=np(Je.ref)&&Lr(De)?"":De,h5(Je.ref)?[...Je.ref.options].forEach(gt=>gt.selected=tt.includes(gt.value)):Je.refs?Qf(Je.ref)?Je.refs.forEach(gt=>{(!gt.defaultChecked||!gt.disabled)&&(Array.isArray(tt)?gt.checked=!!tt.find(Rt=>Rt===gt.value):gt.checked=tt===gt.value||!!tt)}):Je.refs.forEach(gt=>gt.checked=gt.value===tt):j4(Je.ref)?Je.ref.value="":(Je.ref.value=tt,Je.ref.type||g.state.next({name:be,values:$n(a)})))}(Me.shouldDirty||Me.shouldTouch)&&_(be,tt,Me.shouldTouch,Me.shouldDirty,!0),Me.shouldValidate&&te(be)},ee=(be,De,Me)=>{for(const Xe in De){if(!De.hasOwnProperty(Xe))return;const tt=De[Xe],Je=be+"."+Xe,gt=it(r,Je);(o.array.has(be)||Hn(tt)||gt&&!gt._f)&&!au(tt)?ee(Je,tt,Me):U(Je,tt,Me)}},K=(be,De,Me={})=>{const Xe=it(r,be),tt=o.array.has(be),Je=$n(De);nn(a,be,Je),tt?(g.array.next({name:be,values:$n(a)}),(h.isDirty||h.dirtyFields||m.isDirty||m.dirtyFields)&&Me.shouldDirty&&g.state.next({name:be,dirtyFields:Wc(i,a),isDirty:O(be,Je)})):Xe&&!Xe._f&&!Lr(Je)?ee(be,Je,Me):U(be,Je,Me),Ib(be,o)&&g.state.next({...n,name:be}),g.state.next({name:s.mount?be:void 0,values:$n(a)})},k=async be=>{s.mount=!0;const De=be.target;let Me=De.name,Xe=!0;const tt=it(r,Me),Je=xt=>{Xe=Number.isNaN(xt)||au(xt)&&isNaN(xt.getTime())||_s(xt,it(a,Me,xt))},gt=gl(t.mode),Rt=gl(t.reValidateMode);if(tt){let xt,gn;const br=De.type?vS(tt._f):s5(be),Ut=be.type===tp.BLUR||be.type===tp.FOCUS_OUT,Pt=!HW(tt._f)&&!t.resolver&&!it(n.errors,Me)&&!tt._f.deps||ZW(Ut,it(n.touchedFields,Me),n.isSubmitted,Rt,gt),It=Ib(Me,o,Ut);nn(a,Me,br),Ut?(!De||!De.readOnly)&&(tt._f.onBlur&&tt._f.onBlur(be),c&&c(0)):tt._f.onChange&&tt._f.onChange(be);const qt=_(Me,br,Ut),fr=!Ir(qt)||It;if(!Ut&&g.state.next({name:Me,type:be.type,values:$n(a)}),Pt)return(h.isValid||m.isValid)&&(t.mode==="onBlur"?Ut&&x():Ut||x()),fr&&g.state.next({name:Me,...It?{}:qt});if(!Ut&&It&&g.state.next({...n}),t.resolver){const{errors:Wr}=await z([Me]);if(Je(br),Xe){const si=bS(n.errors,r,Me),Pr=bS(Wr,r,si.name||Me);xt=Pr.error,Me=Pr.name,gn=Ir(Wr)}}else A([Me],!0),xt=(await Lb(tt,o.disabled,a,b,t.shouldUseNativeValidation))[Me],A([Me]),Je(br),Xe&&(xt?gn=!1:(h.isValid||m.isValid)&&(gn=await ge(r,!0)));Xe&&(tt._f.deps&&te(tt._f.deps),F(Me,gn,xt,qt))}},N=(be,De)=>{if(it(n.errors,De)&&be.focus)return be.focus(),1},te=async(be,De={})=>{let Me,Xe;const tt=ni(be);if(t.resolver){const Je=await ie(xn(be)?be:tt);Me=Ir(Je),Xe=be?!tt.some(gt=>it(Je,gt)):Me}else be?(Xe=(await Promise.all(tt.map(async Je=>{const gt=it(r,Je);return await ge(gt&>._f?{[Je]:gt}:gt)}))).every(Boolean),!(!Xe&&!n.isValid)&&x()):Xe=Me=await ge(r);return g.state.next({...!Ua(be)||(h.isValid||m.isValid)&&Me!==n.isValid?{}:{name:be},...t.resolver||!be?{isValid:Me}:{},errors:n.errors}),De.shouldFocus&&!Xe&&Pl(r,N,be?tt:o.mount),Xe},j=be=>{const De={...s.mount?a:i};return xn(be)?De:Ua(be)?it(De,be):be.map(Me=>it(De,Me))},ce=(be,De)=>({invalid:!!it((De||n).errors,be),isDirty:!!it((De||n).dirtyFields,be),error:it((De||n).errors,be),isValidating:!!it(n.validatingFields,be),isTouched:!!it((De||n).touchedFields,be)}),ue=be=>{be&&ni(be).forEach(De=>zn(n.errors,De)),g.state.next({errors:be?n.errors:{}})},Ae=(be,De,Me)=>{const Xe=(it(r,be,{_f:{}})._f||{}).ref,tt=it(n.errors,be)||{},{ref:Je,message:gt,type:Rt,...xt}=tt;nn(n.errors,be,{...xt,...De,ref:Xe}),g.state.next({name:be,errors:n.errors,isValid:!1}),Me&&Me.shouldFocus&&Xe&&Xe.focus&&Xe.focus()},_e=(be,De)=>pa(be)?g.state.subscribe({next:Me=>"values"in Me&&be(we(void 0,De),Me)}):we(be,De,!0),Le=be=>g.state.subscribe({next:De=>{YW(be.name,De.name,be.exact)&&GW(De,be.formState||h,_t,be.reRenderRoot)&&be.callback({values:{...a},...n,...De,defaultValues:i})}}).unsubscribe,Ye=be=>(s.mount=!0,m={...m,...be.formState},Le({...be,formState:m})),Qe=(be,De={})=>{for(const Me of be?ni(be):o.mount)o.mount.delete(Me),o.array.delete(Me),De.keepValue||(zn(r,Me),zn(a,Me)),!De.keepError&&zn(n.errors,Me),!De.keepDirty&&zn(n.dirtyFields,Me),!De.keepTouched&&zn(n.touchedFields,Me),!De.keepIsValidating&&zn(n.validatingFields,Me),!t.shouldUnregister&&!De.keepDefaultValue&&zn(i,Me);g.state.next({values:$n(a)}),g.state.next({...n,...De.keepDirty?{isDirty:O()}:{}}),!De.keepIsValid&&x()},Ue=({disabled:be,name:De})=>{($i(be)&&s.mount||be||o.disabled.has(De))&&(be?o.disabled.add(De):o.disabled.delete(De))},Ge=(be,De={})=>{let Me=it(r,be);const Xe=$i(De.disabled)||$i(t.disabled);return nn(r,be,{...Me||{},_f:{...Me&&Me._f?Me._f:{ref:{name:be}},name:be,mount:!0,...De}}),o.mount.add(be),Me?Ue({disabled:$i(De.disabled)?De.disabled:t.disabled,name:be}):R(be,!0,De.value),{...Xe?{disabled:De.disabled||t.disabled}:{},...t.progressive?{required:!!De.required,min:Hc(De.min),max:Hc(De.max),minLength:Hc(De.minLength),maxLength:Hc(De.maxLength),pattern:Hc(De.pattern)}:{},name:be,onChange:k,onBlur:k,ref:tt=>{if(tt){Ge(be,De),Me=it(r,be);const Je=xn(tt.value)&&tt.querySelectorAll&&tt.querySelectorAll("input,select,textarea")[0]||tt,gt=KW(Je),Rt=Me._f.refs||[];if(gt?Rt.find(xt=>xt===Je):Je===Me._f.ref)return;nn(r,be,{_f:{...Me._f,...gt?{refs:[...Rt.filter(Jy),Je,...Array.isArray(it(i,be))?[{}]:[]],ref:{type:Je.type,name:be}}:{ref:Je}}}),R(be,!1,void 0,Je)}else Me=it(r,be,{}),Me._f&&(Me._f.mount=!1),(t.shouldUnregister||De.shouldUnregister)&&!(o5(o.array,be)&&s.action)&&o.unMount.add(be)}}},Ie=()=>t.shouldFocusError&&Pl(r,N,o.mount),Ne=be=>{$i(be)&&(g.state.next({disabled:be}),Pl(r,(De,Me)=>{const Xe=it(r,Me);Xe&&(De.disabled=Xe._f.disabled||be,Array.isArray(Xe._f.refs)&&Xe._f.refs.forEach(tt=>{tt.disabled=Xe._f.disabled||be}))},0,!1))},Te=(be,De)=>async Me=>{let Xe;Me&&(Me.preventDefault&&Me.preventDefault(),Me.persist&&Me.persist());let tt=$n(a);if(g.state.next({isSubmitting:!0}),t.resolver){const{errors:Je,values:gt}=await z();n.errors=Je,tt=$n(gt)}else await ge(r);if(o.disabled.size)for(const Je of o.disabled)zn(tt,Je);if(zn(n.errors,"root"),Ir(n.errors)){g.state.next({errors:{}});try{await be(tt,Me)}catch(Je){Xe=Je}}else De&&await De({...n.errors},Me),Ie(),setTimeout(Ie);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ir(n.errors)&&!Xe,submitCount:n.submitCount+1,errors:n.errors}),Xe)throw Xe},He=(be,De={})=>{it(r,be)&&(xn(De.defaultValue)?K(be,$n(it(i,be))):(K(be,De.defaultValue),nn(i,be,$n(De.defaultValue))),De.keepTouched||zn(n.touchedFields,be),De.keepDirty||(zn(n.dirtyFields,be),n.isDirty=De.defaultValue?O(be,$n(it(i,be))):O()),De.keepError||(zn(n.errors,be),h.isValid&&x()),g.state.next({...n}))},ht=(be,De={})=>{const Me=be?$n(be):i,Xe=$n(Me),tt=Ir(be),Je=tt?i:Xe;if(De.keepDefaultValues||(i=Me),!De.keepValues){if(De.keepDirtyValues){const gt=new Set([...o.mount,...Object.keys(Wc(i,a))]);for(const Rt of Array.from(gt))it(n.dirtyFields,Rt)?nn(Je,Rt,it(a,Rt)):K(Rt,it(Je,Rt))}else{if(V4&&xn(be))for(const gt of o.mount){const Rt=it(r,gt);if(Rt&&Rt._f){const xt=Array.isArray(Rt._f.refs)?Rt._f.refs[0]:Rt._f.ref;if(np(xt)){const gn=xt.closest("form");if(gn){gn.reset();break}}}}if(De.keepFieldsRef)for(const gt of o.mount)K(gt,it(Je,gt));else r={}}a=t.shouldUnregister?De.keepDefaultValues?$n(i):{}:$n(Je),g.array.next({values:{...Je}}),g.state.next({values:{...Je}})}o={mount:De.keepDirtyValues?o.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!h.isValid||!!De.keepIsValid||!!De.keepDirtyValues,s.watch=!!t.shouldUnregister,g.state.next({submitCount:De.keepSubmitCount?n.submitCount:0,isDirty:tt?!1:De.keepDirty?n.isDirty:!!(De.keepDefaultValues&&!_s(be,i)),isSubmitted:De.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:tt?{}:De.keepDirtyValues?De.keepDefaultValues&&a?Wc(i,a):n.dirtyFields:De.keepDefaultValues&&be?Wc(i,be):De.keepDirty?n.dirtyFields:{},touchedFields:De.keepTouched?n.touchedFields:{},errors:De.keepErrors?n.errors:{},isSubmitSuccessful:De.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Ht=(be,De)=>ht(pa(be)?be(a):be,De),$t=(be,De={})=>{const Me=it(r,be),Xe=Me&&Me._f;if(Xe){const tt=Xe.refs?Xe.refs[0]:Xe.ref;tt.focus&&(tt.focus(),De.shouldSelect&&pa(tt.select)&&tt.select())}},_t=be=>{n={...n,...be}},Qt={control:{register:Ge,unregister:Qe,getFieldState:ce,handleSubmit:Te,setError:Ae,_subscribe:Le,_runSchema:z,_focusError:Ie,_getWatch:we,_getDirty:O,_setValid:x,_setFieldArray:C,_setDisabledField:Ue,_setErrors:S,_getFieldArray:Se,_reset:ht,_resetDefaultValues:()=>pa(t.defaultValues)&&t.defaultValues().then(be=>{Ht(be,t.resetOptions),g.state.next({isLoading:!1})}),_removeUnmounted:oe,_disableForm:Ne,_subjects:g,_proxyFormState:h,get _fields(){return r},get _formValues(){return a},get _state(){return s},set _state(be){s=be},get _defaultValues(){return i},get _names(){return o},set _names(be){o=be},get _formState(){return n},get _options(){return t},set _options(be){t={...t,...be}}},subscribe:Ye,trigger:te,register:Ge,handleSubmit:Te,watch:_e,setValue:K,getValues:j,reset:Ht,resetField:He,clearErrors:ue,unregister:Qe,setError:Ae,setFocus:$t,getFieldState:ce};return{...Qt,formControl:Qt}}var io=()=>{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},Qy=(e,t,n={})=>n.shouldFocus||xn(n.shouldFocus)?n.focusName||`${e}.${xn(n.focusIndex)?t:n.focusIndex}.`:"",e0=(e,t)=>[...e,...ni(t)],t0=e=>Array.isArray(e)?e.map(()=>{}):void 0;function n0(e,t,n){return[...e.slice(0,t),...ni(n),...e.slice(t)]}var r0=(e,t,n)=>Array.isArray(e)?(xn(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],i0=(e,t)=>[...ni(t),...ni(e)];function eH(e,t){let n=0;const r=[...e];for(const i of t)r.splice(i-n,1),n++;return tm(r).length?r:[]}var a0=(e,t)=>xn(t)?[]:eH(e,ni(t).sort((n,r)=>n-r)),s0=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},xS=(e,t,n)=>(e[t]=n,e);function tH(e){const t=ed(),{control:n=t.control,name:r,keyName:i="id",shouldUnregister:a,rules:s}=e,[o,c]=fe.default.useState(n._getFieldArray(r)),d=fe.default.useRef(n._getFieldArray(r).map(io)),h=fe.default.useRef(o),m=fe.default.useRef(!1);h.current=o,n._names.array.add(r),fe.default.useMemo(()=>s&&n.register(r,s),[n,s,r]),nm(()=>n._subjects.array.subscribe({next:({values:_,name:F})=>{if(F===r||!F){const z=it(_,r);Array.isArray(z)&&(c(z),d.current=z.map(io))}}}).unsubscribe,[n,r]);const g=fe.default.useCallback(_=>{m.current=!0,n._setFieldArray(r,_)},[n,r]),b=(_,F)=>{const z=ni($n(_)),ie=e0(n._getFieldArray(r),z);n._names.focus=Qy(r,ie.length-1,F),d.current=e0(d.current,z.map(io)),g(ie),c(ie),n._setFieldArray(r,ie,e0,{argA:t0(_)})},w=(_,F)=>{const z=ni($n(_)),ie=i0(n._getFieldArray(r),z);n._names.focus=Qy(r,0,F),d.current=i0(d.current,z.map(io)),g(ie),c(ie),n._setFieldArray(r,ie,i0,{argA:t0(_)})},x=_=>{const F=a0(n._getFieldArray(r),_);d.current=a0(d.current,_),g(F),c(F),!Array.isArray(it(n._fields,r))&&nn(n._fields,r,void 0),n._setFieldArray(r,F,a0,{argA:_})},A=(_,F,z)=>{const ie=ni($n(F)),ge=n0(n._getFieldArray(r),_,ie);n._names.focus=Qy(r,_,z),d.current=n0(d.current,_,ie.map(io)),g(ge),c(ge),n._setFieldArray(r,ge,n0,{argA:_,argB:t0(F)})},C=(_,F)=>{const z=n._getFieldArray(r);s0(z,_,F),s0(d.current,_,F),g(z),c(z),n._setFieldArray(r,z,s0,{argA:_,argB:F},!1)},E=(_,F)=>{const z=n._getFieldArray(r);r0(z,_,F),r0(d.current,_,F),g(z),c(z),n._setFieldArray(r,z,r0,{argA:_,argB:F},!1)},S=(_,F)=>{const z=$n(F),ie=xS(n._getFieldArray(r),_,z);d.current=[...ie].map((ge,oe)=>!ge||oe===_?io():d.current[oe]),g(ie),c([...ie]),n._setFieldArray(r,ie,xS,{argA:_,argB:z},!0,!1)},R=_=>{const F=ni($n(_));d.current=F.map(io),g([...F]),c([...F]),n._setFieldArray(r,[...F],z=>z,{},!0,!1)};return fe.default.useEffect(()=>{if(n._state.action=!1,Ib(r,n._names)&&n._subjects.state.next({...n._formState}),m.current&&(!gl(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!gl(n._options.reValidateMode).isOnSubmit)if(n._options.resolver)n._runSchema([r]).then(_=>{const F=it(_.errors,r),z=it(n._formState.errors,r);(z?!F&&z.type||F&&(z.type!==F.type||z.message!==F.message):F&&F.type)&&(F?nn(n._formState.errors,r,F):zn(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const _=it(n._fields,r);_&&_._f&&!(gl(n._options.reValidateMode).isOnSubmit&&gl(n._options.mode).isOnSubmit)&&Lb(_,n._names.disabled,n._formValues,n._options.criteriaMode===Ki.all,n._options.shouldUseNativeValidation,!0).then(F=>!Ir(F)&&n._subjects.state.next({errors:b5(n._formState.errors,F,r)}))}n._subjects.state.next({name:r,values:$n(n._formValues)}),n._names.focus&&Pl(n._fields,(_,F)=>{if(n._names.focus&&F.startsWith(n._names.focus)&&_.focus)return _.focus(),1}),n._names.focus="",n._setValid(),m.current=!1},[o,r,n]),fe.default.useEffect(()=>(!it(n._formValues,r)&&n._setFieldArray(r),()=>{const _=(F,z)=>{const ie=it(n._fields,F);ie&&ie._f&&(ie._f.mount=z)};n._options.shouldUnregister||a?n.unregister(r):_(r,!1)}),[r,n,i,a]),{swap:fe.default.useCallback(C,[g,r,n]),move:fe.default.useCallback(E,[g,r,n]),prepend:fe.default.useCallback(w,[g,r,n]),append:fe.default.useCallback(b,[g,r,n]),remove:fe.default.useCallback(x,[g,r,n]),insert:fe.default.useCallback(A,[g,r,n]),update:fe.default.useCallback(S,[g,r,n]),replace:fe.default.useCallback(R,[g,r,n]),fields:fe.default.useMemo(()=>o.map((_,F)=>({..._,[i]:d.current[F]||io()})),[o,i])}}function nH(e={}){const t=fe.default.useRef(void 0),n=fe.default.useRef(void 0),[r,i]=fe.default.useState({isDirty:!1,isValidating:!1,isLoading:pa(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:pa(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!pa(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:s,...o}=QW(e);t.current={...o,formState:r}}const a=t.current.control;return a._options=e,nm(()=>{const s=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i(o=>({...o,isReady:!0})),a._formState.isReady=!0,s},[a]),fe.default.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),fe.default.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),fe.default.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),fe.default.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),fe.default.useEffect(()=>{if(a._proxyFormState.isDirty){const s=a._getDirty();s!==r.isDirty&&a._subjects.state.next({isDirty:s})}},[a,r.isDirty]),fe.default.useEffect(()=>{e.values&&!_s(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),n.current=e.values,i(s=>({...s}))):a._resetDefaultValues()},[a,e.values]),fe.default.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=u5(r,a),t.current}const mn=typeof document<"u"?fe.default.useLayoutEffect:()=>{};var o0;const rH=(o0=fe.default.useInsertionEffect)!==null&&o0!==void 0?o0:mn;function Mn(e){const t=I.useRef(null);return rH(()=>{t.current=e},[e]),I.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function iH(e){let[t,n]=I.useState(e),r=I.useRef(null),i=Mn(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}t===s.value?i():n(s.value)});mn(()=>{r.current&&i()});let a=Mn(s=>{r.current=s(t),i()});return[t,a]}const ap={prefix:String(Math.round(Math.random()*1e10)),current:0},$5=fe.default.createContext(ap),aH=fe.default.createContext(!1);let sH=!!(typeof window<"u"&&window.document&&window.document.createElement),u0=new WeakMap;function oH(e=!1){let t=I.useContext($5),n=I.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=fe.default.__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=u0.get(a);s==null?u0.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==s.state&&(t.current=s.id,u0.delete(a))}n.current=++t.current}return n.current}function uH(e){let t=I.useContext($5);t===ap&&!sH&&process.env.NODE_ENV!=="production"&&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=oH(!!e),r=t===ap&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function lH(e){let t=fe.default.useId(),[n]=I.useState(U4()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${ap.prefix}`;return e||`${r}-${t}`}const cH=typeof fe.default.useId=="function"?lH:uH;function fH(){return!1}function dH(){return!0}function hH(e){return()=>{}}function U4(){return typeof fe.default.useSyncExternalStore=="function"?fe.default.useSyncExternalStore(hH,fH,dH):I.useContext(aH)}let pH=!!(typeof window<"u"&&window.document&&window.document.createElement),_l=new Map,df;typeof FinalizationRegistry<"u"&&(df=new FinalizationRegistry(e=>{_l.delete(e)}));function Kr(e){let[t,n]=I.useState(e),r=I.useRef(null),i=cH(t),a=I.useRef(null);if(df&&df.register(a,i),pH){const s=_l.get(i);s&&!s.includes(r)?s.push(r):_l.set(i,[r])}return mn(()=>{let s=i;return()=>{df&&df.unregister(a),_l.delete(s)}},[i]),I.useEffect(()=>{let s=r.current;return s&&n(s),()=>{s&&(r.current=null)}}),i}function mH(e,t){if(e===t)return e;let n=_l.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=_l.get(t);return r?(r.forEach(i=>i.current=e),e):t}function Kl(e=[]){let t=Kr(),[n,r]=iH(t),i=I.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return mn(i,[t,i,...e]),n}function $o(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Xt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},es=e=>e&&"window"in e&&e.window===e?e:Xt(e).defaultView||window;function gH(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function vH(e){return gH(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let yH=!1;function rm(){return yH}function Sn(e,t){if(!rm())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:vH(n)?n=n.host:n=n.parentNode}return!1}const nr=(e=document)=>{var t;if(!rm())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function tn(e){return rm()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class bH{get currentNode(){return this._currentNode}set currentNode(t){if(!Sn(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const s=r,o=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});n.push(o),o.currentNode=i,this._currentSetFor.add(o),r=i=s.host}else r=r.parentNode;const a=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(a),a.currentNode=i,this._currentSetFor.add(a),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return Sn(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let a=this.nextNode();return a&&(this.currentNode=a),a}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){var r;let a;if(typeof this.filter=="function"?a=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(a=this.filter.acceptNode(n)),a===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let s=this.lastChild();return s&&(this.currentNode=s),s}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=s=>{if(s.nodeType===Node.ELEMENT_NODE){const c=s.shadowRoot;if(c){const d=this._doc.createTreeWalker(c,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(d),NodeFilter.FILTER_ACCEPT}else{var o;if(typeof this.filter=="function")return this.filter(s);if(!((o=this.filter)===null||o===void 0)&&o.acceptNode)return this.filter.acceptNode(s);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const a=n.shadowRoot;if(a){const s=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(s)}}}function $H(e,t,n,r){return rm()?new bH(e,t,n,r):e.createTreeWalker(t,n,r)}function x5(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=x5(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function xH(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=x5(e))&&(r&&(r+=" "),r+=t);return r}function Jt(...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]=$o(a,s):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof s=="string"?t[i]=xH(a,s):i==="id"&&a&&s?t.id=mH(a,s):t[i]=s!==void 0?s:a}}return t}const wH=new Set(["id"]),CH=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),EH=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),SH=new Set(["dir","lang","hidden","inert","translate"]),wS=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),DH=/^(data-.*)$/;function qs(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:s}=t,o={};for(const c in e)Object.prototype.hasOwnProperty.call(e,c)&&(wH.has(c)||n&&CH.has(c)||r&&EH.has(c)||i&&SH.has(c)||a&&wS.has(c)||c.endsWith("Capture")&&wS.has(c.slice(0,-7))||s!=null&&s.has(c)||DH.test(c))&&(o[c]=e[c]);return o}function xi(e){if(AH())e.focus({preventScroll:!0});else{let t=TH(e);e.focus(),PH(t)}}let ah=null;function AH(){if(ah==null){ah=!1;try{document.createElement("div").focus({get preventScroll(){return ah=!0,!0}})}catch{}}return ah}function TH(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 PH(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function im(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function q4(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 zs(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Vs=zs(function(){return q4(/^Mac/i)}),_H=zs(function(){return q4(/^iPhone/i)}),w5=zs(function(){return q4(/^iPad/i)||Vs()&&navigator.maxTouchPoints>1}),td=zs(function(){return _H()||w5()}),Ah=zs(function(){return Vs()||td()}),z4=zs(function(){return im(/AppleWebKit/i)&&!C5()}),C5=zs(function(){return im(/Chrome/i)}),W4=zs(function(){return im(/Android/i)}),MH=zs(function(){return im(/Firefox/i)}),FH=I.createContext({isNative:!0,open:kH,useHref:e=>e});function am(){return I.useContext(FH)}function wu(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:s,altKey:o,shiftKey:c}=t;MH()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Vs()?a=!0:s=!0);let d=z4()&&Vs()&&!w5()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:s,altKey:o,shiftKey:c}):new MouseEvent("click",{metaKey:a,ctrlKey:s,altKey:o,shiftKey:c,bubbles:!0,cancelable:!0});wu.isOpening=n,xi(e),e.dispatchEvent(d),wu.isOpening=!1}wu.isOpening=!1;function RH(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 kH(e,t){RH(e,n=>wu(n,t))}function OH(e){let t=am();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 co=new Map,Vb=new Set;function CS(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=co.get(r.target);i||(i=new Set,co.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=co.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),co.delete(r.target)),co.size===0)){for(let a of Vb)a();Vb.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?CS():document.addEventListener("DOMContentLoaded",CS));function IH(){for(const[e]of co)"isConnected"in e&&!e.isConnected&&co.delete(e)}function E5(e){requestAnimationFrame(()=>{IH(),co.size===0?e():Vb.add(e)})}function Eo(){let e=I.useRef(new Map),t=I.useCallback((i,a,s,o)=>{let c=o!=null&&o.once?(...d)=>{e.current.delete(s),s(...d)}:s;e.current.set(s,{type:a,eventTarget:i,fn:c,options:o}),i.addEventListener(a,c,o)},[]),n=I.useCallback((i,a,s,o)=>{var c;let d=((c=e.current.get(s))===null||c===void 0?void 0:c.fn)||s;i.removeEventListener(a,d,o),e.current.delete(s)},[]),r=I.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return I.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Ul(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Kr(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 Bb(e,t){const n=I.useRef(!0),r=I.useRef(null);I.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),I.useEffect(()=>{let i=r.current;n.current?n.current=!1:(!i||t.some((a,s)=>!Object.is(a,i[s])))&&e(),r.current=t},t)}function ES(e,t){const n=I.useRef(!0),r=I.useRef(null);mn(()=>(n.current=!0,()=>{n.current=!1}),[]),mn(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function LH(){return typeof window.ResizeObserver<"u"}function SS(e){const{ref:t,box:n,onResize:r}=e;I.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(LH()){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 S5(e,t){mn(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Mf(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 sm(e,t){let n=e;for(Mf(n,t)&&(n=n.parentElement);n&&!Mf(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function VH(e,t){const n=[];for(;e&&e!==document.documentElement;)Mf(e,t)&&n.push(e),e=e.parentElement;return n}let BH=0;const l0=new Map;function nd(e){let[t,n]=I.useState();return mn(()=>{if(!e)return;let r=l0.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${BH++}`;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},l0.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),l0.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function qa(e,t,n,r){let i=Mn(n),a=n==null;I.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 D5(e,t){let n=DS(e,t,"left"),r=DS(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,s=e.scrollLeft,o=e.scrollTop,{borderTopWidth:c,borderLeftWidth:d,scrollPaddingTop:h,scrollPaddingRight:m,scrollPaddingBottom:g,scrollPaddingLeft:b}=getComputedStyle(e),w=s+parseInt(d,10),x=o+parseInt(c,10),A=w+e.clientWidth,C=x+e.clientHeight,E=parseInt(h,10)||0,S=parseInt(g,10)||0,R=parseInt(m,10)||0,_=parseInt(b,10)||0;n<=s+_?s=n-parseInt(d,10)-_:n+i>A-R&&(s+=n+i-A+R),r<=x+E?o=r-parseInt(c,10)-E:r+a>C-S&&(o+=r+a-C+S),e.scrollLeft=s,e.scrollTop=o}function DS(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 sp(e,t){if(e&&document.contains(e)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let c=VH(e);for(let d of c)D5(d,e)}else{var n;let{left:c,top:d}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:h,top:m}=e.getBoundingClientRect();if(Math.abs(c-h)>1||Math.abs(d-m)>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 Nb(e){return e.mozInputSource===0&&e.isTrusted?!0:W4()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function NH(e){return!W4()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function A5(e,t){let n=I.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function H4(e,t,n){let r=Mn(()=>{n&&n(t)});I.useEffect(()=>{var i;let a=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return a==null||a.addEventListener("reset",r),()=>{a==null||a.removeEventListener("reset",r)}},[e,r])}const jH="react-aria-clear-focus",KH="react-aria-focus";function pl(e){return Vs()?e.metaKey:e.ctrlKey}const UH=typeof Element<"u"&&"checkVisibility"in Element.prototype;function qH(e){const t=es(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:o}=a(e);i=s!=="none"&&o!=="hidden"&&o!=="collapse"}return i}function zH(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 G4(e,t){return UH?e.checkVisibility():e.nodeName!=="#comment"&&qH(e)&&zH(e,t)&&(!e.parentElement||G4(e.parentElement,e))}const Y4=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],WH=Y4.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Y4.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const HH=Y4.join(':not([hidden]):not([tabindex="-1"]),');function T5(e){return e.matches(WH)&&G4(e)&&!P5(e)}function GH(e){return e.matches(HH)&&G4(e)&&!P5(e)}function P5(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function wi(e,t,n){let[r,i]=I.useState(e||t),a=I.useRef(e!==void 0),s=e!==void 0;I.useEffect(()=>{let d=a.current;d!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s},[s]);let o=s?e:r,c=I.useCallback((d,...h)=>{let m=(g,...b)=>{n&&(Object.is(o,g)||n(g,...b)),s||(o=g)};typeof d=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((b,...w)=>{let x=d(s?o:b,...w);return m(x,...h),s?b:x})):(s||i(d),m(d,...h))},[s,o,n]);return[o,c]}function ql(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function sh(e,t){let n=e,r=0,i=t.toString(),a=i.toLowerCase().indexOf("e-");if(a>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+a;else{let s=i.indexOf(".");s>=0&&(r=i.length-s)}if(r>0){let s=Math.pow(10,r);n=Math.round(n*s)/s}return n}function Gc(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,a=sh(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(sh(n/r,r))*r):a<t?a=t:!isNaN(n)&&a>n&&(a=t+Math.floor(sh((n-t)/r,r))*r),a=sh(a,r),a}function Z4(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function _5(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function M5(e){let t=I.useRef({isFocused:!1,observer:null});mn(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Mn(r=>{e==null||e(r)});return I.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=>{if(t.current.isFocused=!1,i.disabled){let o=Z4(s);n(o)}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 o=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let op=!1;function AS(e){for(;e&&!T5(e);)e=e.parentElement;let t=es(e),n=t.document.activeElement;if(!n||n===e)return;op=!0;let r=!1,i=h=>{(h.target===n||r)&&h.stopImmediatePropagation()},a=h=>{(h.target===n||r)&&(h.stopImmediatePropagation(),!e&&!r&&(r=!0,xi(n),c()))},s=h=>{(h.target===e||r)&&h.stopImmediatePropagation()},o=h=>{(h.target===e||r)&&(h.stopImmediatePropagation(),r||(r=!0,xi(n),c()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",a,!0),t.addEventListener("focusin",o,!0),t.addEventListener("focus",s,!0);let c=()=>{cancelAnimationFrame(d),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",a,!0),t.removeEventListener("focusin",o,!0),t.removeEventListener("focus",s,!0),op=!1,r=!1},d=requestAnimationFrame(c);return c}let vl="default",jb="",Th=new WeakMap;function Kb(e){if(td()){if(vl==="default"){const t=Xt(e);jb=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}vl="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Th.set(e,e.style[t]),e.style[t]="none"}}function Ph(e){if(td()){if(vl!=="disabled")return;vl="restoring",setTimeout(()=>{E5(()=>{if(vl==="restoring"){const t=Xt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=jb||""),jb="",vl="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Th.has(e)){let t=Th.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Th.delete(e)}}const X4=fe.default.createContext({register:()=>{}});X4.displayName="PressResponderContext";function YH(e,t){return t.get?t.get.call(e):t.value}function F5(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function ZH(e,t){var n=F5(e,t,"get");return YH(e,n)}function XH(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function rd(e,t,n){XH(e,t),t.set(e,n)}function JH(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 TS(e,t,n){var r=F5(e,t,"set");return JH(e,r,n),n}function QH(e){let t=I.useContext(X4);if(t){let{register:n,...r}=t;e=Jt(r,e),n()}return S5(t,e.ref),e}var oh=new WeakMap;class uh{continuePropagation(){TS(this,oh,!1)}get shouldStopPropagation(){return ZH(this,oh)}constructor(t,n,r,i){rd(this,oh,{writable:!0,value:void 0}),TS(this,oh,!0);var a;let s=(a=i==null?void 0:i.target)!==null&&a!==void 0?a:r.currentTarget;const o=s==null?void 0:s.getBoundingClientRect();let c,d=0,h,m=null;r.clientX!=null&&r.clientY!=null&&(h=r.clientX,m=r.clientY),o&&(h!=null&&m!=null?(c=h-o.left,d=m-o.top):(c=o.width/2,d=o.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=c,this.y=d}}const PS=Symbol("linkClicked"),_S="react-aria-pressable-style",MS="data-react-aria-pressable";function id(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:s,isDisabled:o,isPressed:c,preventFocusOnPress:d,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:m,ref:g,...b}=QH(e),[w,x]=I.useState(!1),A=I.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:C,removeAllGlobalListeners:E}=Eo(),S=Mn((O,we)=>{let Se=A.current;if(o||Se.didFirePressStart)return!1;let U=!0;if(Se.isTriggeringEvent=!0,r){let ee=new uh("pressstart",we,O);r(ee),U=ee.shouldStopPropagation}return n&&n(!0),Se.isTriggeringEvent=!1,Se.didFirePressStart=!0,x(!0),U}),R=Mn((O,we,Se=!0)=>{let U=A.current;if(!U.didFirePressStart)return!1;U.didFirePressStart=!1,U.isTriggeringEvent=!0;let ee=!0;if(i){let K=new uh("pressend",we,O);i(K),ee=K.shouldStopPropagation}if(n&&n(!1),x(!1),t&&Se&&!o){let K=new uh("press",we,O);t(K),ee&&(ee=K.shouldStopPropagation)}return U.isTriggeringEvent=!1,ee}),_=Mn((O,we)=>{let Se=A.current;if(o)return!1;if(a){Se.isTriggeringEvent=!0;let U=new uh("pressup",we,O);return a(U),Se.isTriggeringEvent=!1,U.shouldStopPropagation}return!0}),F=Mn(O=>{let we=A.current;if(we.isPressed&&we.target){we.didFirePressStart&&we.pointerType!=null&&R(Jo(we.target,O),we.pointerType,!1),we.isPressed=!1,we.isOverTarget=!1,we.activePointerId=null,we.pointerType=null,E(),m||Ph(we.target);for(let Se of we.disposables)Se();we.disposables=[]}}),z=Mn(O=>{h&&F(O)}),ie=Mn(O=>{s==null||s(O)}),ge=Mn((O,we)=>{if(s){let Se=new MouseEvent("click",O);_5(Se,we),s(Z4(Se))}}),oe=I.useMemo(()=>{let O=A.current,we={onKeyDown(U){if(c0(U.nativeEvent,U.currentTarget)&&Sn(U.currentTarget,tn(U.nativeEvent))){var ee;kS(tn(U.nativeEvent),U.key)&&U.preventDefault();let K=!0;if(!O.isPressed&&!U.repeat){O.target=U.currentTarget,O.isPressed=!0,O.pointerType="keyboard",K=S(U,"keyboard");let k=U.currentTarget,N=te=>{c0(te,k)&&!te.repeat&&Sn(k,tn(te))&&O.target&&_(Jo(O.target,te),"keyboard")};C(Xt(U.currentTarget),"keyup",$o(N,Se),!0)}K&&U.stopPropagation(),U.metaKey&&Vs()&&((ee=O.metaKeyEvents)===null||ee===void 0||ee.set(U.key,U.nativeEvent))}else U.key==="Meta"&&(O.metaKeyEvents=new Map)},onClick(U){if(!(U&&!Sn(U.currentTarget,tn(U.nativeEvent)))&&U&&U.button===0&&!O.isTriggeringEvent&&!wu.isOpening){let ee=!0;if(o&&U.preventDefault(),!O.ignoreEmulatedMouseEvents&&!O.isPressed&&(O.pointerType==="virtual"||Nb(U.nativeEvent))){let K=S(U,"virtual"),k=_(U,"virtual"),N=R(U,"virtual");ie(U),ee=K&&k&&N}else if(O.isPressed&&O.pointerType!=="keyboard"){let K=O.pointerType||U.nativeEvent.pointerType||"virtual",k=_(Jo(U.currentTarget,U),K),N=R(Jo(U.currentTarget,U),K,!0);ee=k&&N,O.isOverTarget=!1,ie(U),F(U)}O.ignoreEmulatedMouseEvents=!1,ee&&U.stopPropagation()}}},Se=U=>{var ee;if(O.isPressed&&O.target&&c0(U,O.target)){var K;kS(tn(U),U.key)&&U.preventDefault();let N=tn(U),te=Sn(O.target,tn(U));R(Jo(O.target,U),"keyboard",te),te&&ge(U,O.target),E(),U.key!=="Enter"&&J4(O.target)&&Sn(O.target,N)&&!U[PS]&&(U[PS]=!0,wu(O.target,U,!1)),O.isPressed=!1,(K=O.metaKeyEvents)===null||K===void 0||K.delete(U.key)}else if(U.key==="Meta"&&(!((ee=O.metaKeyEvents)===null||ee===void 0)&&ee.size)){var k;let N=O.metaKeyEvents;O.metaKeyEvents=void 0;for(let te of N.values())(k=O.target)===null||k===void 0||k.dispatchEvent(new KeyboardEvent("keyup",te))}};if(typeof PointerEvent<"u"){we.onPointerDown=K=>{if(K.button!==0||!Sn(K.currentTarget,tn(K.nativeEvent)))return;if(NH(K.nativeEvent)){O.pointerType="virtual";return}O.pointerType=K.pointerType;let k=!0;if(!O.isPressed){O.isPressed=!0,O.isOverTarget=!0,O.activePointerId=K.pointerId,O.target=K.currentTarget,m||Kb(O.target),k=S(K,O.pointerType);let N=tn(K.nativeEvent);"releasePointerCapture"in N&&N.releasePointerCapture(K.pointerId),C(Xt(K.currentTarget),"pointerup",U,!1),C(Xt(K.currentTarget),"pointercancel",ee,!1)}k&&K.stopPropagation()},we.onMouseDown=K=>{if(Sn(K.currentTarget,tn(K.nativeEvent))&&K.button===0){if(d){let k=AS(K.target);k&&O.disposables.push(k)}K.stopPropagation()}},we.onPointerUp=K=>{!Sn(K.currentTarget,tn(K.nativeEvent))||O.pointerType==="virtual"||K.button===0&&!O.isPressed&&_(K,O.pointerType||K.pointerType)},we.onPointerEnter=K=>{K.pointerId===O.activePointerId&&O.target&&!O.isOverTarget&&O.pointerType!=null&&(O.isOverTarget=!0,S(Jo(O.target,K),O.pointerType))},we.onPointerLeave=K=>{K.pointerId===O.activePointerId&&O.target&&O.isOverTarget&&O.pointerType!=null&&(O.isOverTarget=!1,R(Jo(O.target,K),O.pointerType,!1),z(K))};let U=K=>{if(K.pointerId===O.activePointerId&&O.isPressed&&K.button===0&&O.target){if(Sn(O.target,tn(K))&&O.pointerType!=null){let k=!1,N=setTimeout(()=>{O.isPressed&&O.target instanceof HTMLElement&&(k?F(K):(xi(O.target),O.target.click()))},80);C(K.currentTarget,"click",()=>k=!0,!0),O.disposables.push(()=>clearTimeout(N))}else F(K);O.isOverTarget=!1}},ee=K=>{F(K)};we.onDragStart=K=>{Sn(K.currentTarget,tn(K.nativeEvent))&&F(K)}}else if(process.env.NODE_ENV==="test"){we.onMouseDown=K=>{if(K.button!==0||!Sn(K.currentTarget,tn(K.nativeEvent)))return;if(O.ignoreEmulatedMouseEvents){K.stopPropagation();return}if(O.isPressed=!0,O.isOverTarget=!0,O.target=K.currentTarget,O.pointerType=Nb(K.nativeEvent)?"virtual":"mouse",kp.flushSync(()=>S(K,O.pointerType))&&K.stopPropagation(),d){let N=AS(K.target);N&&O.disposables.push(N)}C(Xt(K.currentTarget),"mouseup",U,!1)},we.onMouseEnter=K=>{if(!Sn(K.currentTarget,tn(K.nativeEvent)))return;let k=!0;O.isPressed&&!O.ignoreEmulatedMouseEvents&&O.pointerType!=null&&(O.isOverTarget=!0,k=S(K,O.pointerType)),k&&K.stopPropagation()},we.onMouseLeave=K=>{if(!Sn(K.currentTarget,tn(K.nativeEvent)))return;let k=!0;O.isPressed&&!O.ignoreEmulatedMouseEvents&&O.pointerType!=null&&(O.isOverTarget=!1,k=R(K,O.pointerType,!1),z(K)),k&&K.stopPropagation()},we.onMouseUp=K=>{Sn(K.currentTarget,tn(K.nativeEvent))&&!O.ignoreEmulatedMouseEvents&&K.button===0&&!O.isPressed&&_(K,O.pointerType||"mouse")};let U=K=>{if(K.button===0){if(O.ignoreEmulatedMouseEvents){O.ignoreEmulatedMouseEvents=!1;return}O.target&&O.target.contains(K.target)&&O.pointerType!=null||F(K),O.isOverTarget=!1}};we.onTouchStart=K=>{if(!Sn(K.currentTarget,tn(K.nativeEvent)))return;let k=eG(K.nativeEvent);if(!k)return;O.activePointerId=k.identifier,O.ignoreEmulatedMouseEvents=!0,O.isOverTarget=!0,O.isPressed=!0,O.target=K.currentTarget,O.pointerType="touch",m||Kb(O.target),S(ao(O.target,K),O.pointerType)&&K.stopPropagation(),C(es(K.currentTarget),"scroll",ee,!0)},we.onTouchMove=K=>{if(!Sn(K.currentTarget,tn(K.nativeEvent)))return;if(!O.isPressed){K.stopPropagation();return}let k=FS(K.nativeEvent,O.activePointerId),N=!0;k&&RS(k,K.currentTarget)?!O.isOverTarget&&O.pointerType!=null&&(O.isOverTarget=!0,N=S(ao(O.target,K),O.pointerType)):O.isOverTarget&&O.pointerType!=null&&(O.isOverTarget=!1,N=R(ao(O.target,K),O.pointerType,!1),z(ao(O.target,K))),N&&K.stopPropagation()},we.onTouchEnd=K=>{if(!Sn(K.currentTarget,tn(K.nativeEvent)))return;if(!O.isPressed){K.stopPropagation();return}let k=FS(K.nativeEvent,O.activePointerId),N=!0;k&&RS(k,K.currentTarget)&&O.pointerType!=null?(_(ao(O.target,K),O.pointerType),N=R(ao(O.target,K),O.pointerType),ge(K.nativeEvent,O.target)):O.isOverTarget&&O.pointerType!=null&&(N=R(ao(O.target,K),O.pointerType,!1)),N&&K.stopPropagation(),O.isPressed=!1,O.activePointerId=null,O.isOverTarget=!1,O.ignoreEmulatedMouseEvents=!0,O.target&&!m&&Ph(O.target),E()},we.onTouchCancel=K=>{Sn(K.currentTarget,tn(K.nativeEvent))&&(K.stopPropagation(),O.isPressed&&F(ao(O.target,K)))};let ee=K=>{O.isPressed&&Sn(tn(K),O.target)&&F({currentTarget:O.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};we.onDragStart=K=>{Sn(K.currentTarget,tn(K.nativeEvent))&&F(K)}}return we},[C,o,d,E,m,F,z,R,S,_,ie,ge]);return I.useEffect(()=>{if(!g||process.env.NODE_ENV==="test")return;const O=Xt(g.current);if(!O||!O.head||O.getElementById(_S))return;const we=O.createElement("style");we.id=_S,we.textContent=`
|
|
61
|
-
@layer {
|
|
62
|
-
[${MS}] {
|
|
63
|
-
touch-action: pan-x pan-y pinch-zoom;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
`.trim(),O.head.prepend(we)},[g]),I.useEffect(()=>{let O=A.current;return()=>{var we;m||Ph((we=O.target)!==null&&we!==void 0?we:void 0);for(let Se of O.disposables)Se();O.disposables=[]}},[m]),{isPressed:c||w,pressProps:Jt(b,oe,{[MS]:!0})}}function J4(e){return e.tagName==="A"&&e.hasAttribute("href")}function c0(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof es(i).HTMLInputElement&&!R5(i,n)||i instanceof es(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&J4(i))&&n!=="Enter")}function eG(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function FS(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 ao(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 Jo(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 tG(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 nG(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function RS(e,t){let n=t.getBoundingClientRect(),r=tG(e);return nG(n,r)}function rG(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!J4(e)}function kS(e,t){return e instanceof HTMLInputElement?!R5(e,t):rG(e)}const iG=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function R5(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":iG.has(e.type)}let Fu=null,aG=new Set,bf=new Map,Cu=!1,Ub=!1;function om(e,t){for(let n of aG)n(e,t)}function sG(e){return!(e.metaKey||!Vs()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function up(e){Cu=!0,sG(e)&&(Fu="keyboard",om("keyboard",e))}function Ni(e){Fu="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Cu=!0,om("pointer",e))}function k5(e){Nb(e)&&(Cu=!0,Fu="virtual")}function O5(e){e.target===window||e.target===document||op||!e.isTrusted||(!Cu&&!Ub&&(Fu="virtual",om("virtual",e)),Cu=!1,Ub=!1)}function I5(){op||(Cu=!1,Ub=!0)}function OS(e){if(typeof window>"u"||typeof document>"u"||bf.get(es(e)))return;const t=es(e),n=Xt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Cu=!0,r.apply(this,arguments)},n.addEventListener("keydown",up,!0),n.addEventListener("keyup",up,!0),n.addEventListener("click",k5,!0),t.addEventListener("focus",O5,!0),t.addEventListener("blur",I5,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Ni,!0),n.addEventListener("pointermove",Ni,!0),n.addEventListener("pointerup",Ni,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Ni,!0),n.addEventListener("mousemove",Ni,!0),n.addEventListener("mouseup",Ni,!0)),t.addEventListener("beforeunload",()=>{L5(e)},{once:!0}),bf.set(t,{focus:r})}const L5=(e,t)=>{const n=es(e),r=Xt(e);t&&r.removeEventListener("DOMContentLoaded",t),bf.has(n)&&(n.HTMLElement.prototype.focus=bf.get(n).focus,r.removeEventListener("keydown",up,!0),r.removeEventListener("keyup",up,!0),r.removeEventListener("click",k5,!0),n.removeEventListener("focus",O5,!0),n.removeEventListener("blur",I5,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Ni,!0),r.removeEventListener("pointermove",Ni,!0),r.removeEventListener("pointerup",Ni,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Ni,!0),r.removeEventListener("mousemove",Ni,!0),r.removeEventListener("mouseup",Ni,!0)),bf.delete(n))};function oG(e){const t=Xt(e);let n;return t.readyState!=="loading"?OS(e):(n=()=>{OS(e)},t.addEventListener("DOMContentLoaded",n)),()=>L5(e,n)}typeof document<"u"&&oG();function IS(){return Fu!=="pointer"}function Ff(){return Fu}function V5(e){Fu=e,om(e,null)}function Eu(e){const t=Xt(e),n=nr(t);if(Ff()==="virtual"){let r=n;E5(()=>{nr(t)===r&&e.isConnected&&xi(e)})}else xi(e)}function uG(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=I.useCallback(c=>{if(c.target===c.currentTarget)return r&&r(c),i&&i(!1),!0},[r,i]),s=M5(a),o=I.useCallback(c=>{const d=Xt(c.target),h=d?nr(d):nr();c.target===c.currentTarget&&h===tn(c.nativeEvent)&&(n&&n(c),i&&i(!0),s(c))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?o:void 0,onBlur:!t&&(r||i)?a:void 0}}}function LS(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function B5(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:LS(e.onKeyDown),onKeyUp:LS(e.onKeyUp)}}}let lG=fe.default.createContext(null);function cG(e){let t=I.useContext(lG)||{};S5(t,e);let{ref:n,...r}=t;return r}function Q4(e,t){let{focusProps:n}=uG(e),{keyboardProps:r}=B5(e),i=Jt(n,r),a=cG(t),s=e.isDisabled?{}:a,o=I.useRef(e.autoFocus);I.useEffect(()=>{o.current&&t.current&&Eu(t.current),o.current=!1},[t]);let c=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(c=void 0),{focusableProps:Jt({...i,tabIndex:c},s)}}function fG({children:e}){let t=I.useMemo(()=>({register:()=>{}}),[]);return fe.default.createElement(X4.Provider,{value:t},e)}function rc(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=I.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:o}=Eo(),c=I.useCallback(m=>{m.currentTarget.contains(m.target)&&a.current.isFocusWithin&&!m.currentTarget.contains(m.relatedTarget)&&(a.current.isFocusWithin=!1,o(),n&&n(m),i&&i(!1))},[n,i,a,o]),d=M5(c),h=I.useCallback(m=>{if(!m.currentTarget.contains(m.target))return;const g=Xt(m.target),b=nr(g);if(!a.current.isFocusWithin&&b===tn(m.nativeEvent)){r&&r(m),i&&i(!0),a.current.isFocusWithin=!0,d(m);let w=m.currentTarget;s(g,"focus",x=>{if(a.current.isFocusWithin&&!Sn(w,x.target)){let A=new g.defaultView.FocusEvent("blur",{relatedTarget:x.target});_5(A,w);let C=Z4(A);c(C)}},{capture:!0})}},[r,i,d,s,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:h,onBlur:c}}}let lp=!1,lh=0;function qb(){lp=!0,setTimeout(()=>{lp=!1},50)}function VS(e){e.pointerType==="touch"&&qb()}function dG(){if(!(typeof document>"u"))return lh===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",VS):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",qb)),lh++,()=>{lh--,!(lh>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",VS):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",qb))}}function hG(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,s]=I.useState(!1),o=I.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;I.useEffect(dG,[]);let{addGlobalListener:c,removeAllGlobalListeners:d}=Eo(),{hoverProps:h,triggerHoverEnd:m}=I.useMemo(()=>{let g=(x,A)=>{if(o.pointerType=A,i||A==="touch"||o.isHovered||!x.currentTarget.contains(x.target))return;o.isHovered=!0;let C=x.currentTarget;o.target=C,c(Xt(x.target),"pointerover",E=>{o.isHovered&&o.target&&!Sn(o.target,E.target)&&b(E,E.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:C,pointerType:A}),n&&n(!0),s(!0)},b=(x,A)=>{let C=o.target;o.pointerType="",o.target=null,!(A==="touch"||!o.isHovered||!C)&&(o.isHovered=!1,d(),r&&r({type:"hoverend",target:C,pointerType:A}),n&&n(!1),s(!1))},w={};return typeof PointerEvent<"u"?(w.onPointerEnter=x=>{lp&&x.pointerType==="mouse"||g(x,x.pointerType)},w.onPointerLeave=x=>{!i&&x.currentTarget.contains(x.target)&&b(x,x.pointerType)}):process.env.NODE_ENV==="test"&&(w.onTouchStart=()=>{o.ignoreEmulatedMouseEvents=!0},w.onMouseEnter=x=>{!o.ignoreEmulatedMouseEvents&&!lp&&g(x,"mouse"),o.ignoreEmulatedMouseEvents=!1},w.onMouseLeave=x=>{!i&&x.currentTarget.contains(x.target)&&b(x,"mouse")}),{hoverProps:w,triggerHoverEnd:b}},[t,n,r,i,o,c,d]);return I.useEffect(()=>{i&&m({currentTarget:o.target},o.pointerType)},[i]),{hoverProps:h,isHovered:a}}function pG(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=I.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=Mn(c=>{n&&ch(c,t)&&(i&&i(c),a.current.isPointerDown=!0)}),o=Mn(c=>{n&&n(c)});I.useEffect(()=>{let c=a.current;if(r)return;const d=t.current,h=Xt(d);if(typeof PointerEvent<"u"){let m=g=>{c.isPointerDown&&ch(g,t)&&o(g),c.isPointerDown=!1};return h.addEventListener("pointerdown",s,!0),h.addEventListener("click",m,!0),()=>{h.removeEventListener("pointerdown",s,!0),h.removeEventListener("click",m,!0)}}else if(process.env.NODE_ENV==="test"){let m=b=>{c.ignoreEmulatedMouseEvents?c.ignoreEmulatedMouseEvents=!1:c.isPointerDown&&ch(b,t)&&o(b),c.isPointerDown=!1},g=b=>{c.ignoreEmulatedMouseEvents=!0,c.isPointerDown&&ch(b,t)&&o(b),c.isPointerDown=!1};return h.addEventListener("mousedown",s,!0),h.addEventListener("mouseup",m,!0),h.addEventListener("touchstart",s,!0),h.addEventListener("touchend",g,!0),()=>{h.removeEventListener("mousedown",s,!0),h.removeEventListener("mouseup",m,!0),h.removeEventListener("touchstart",s,!0),h.removeEventListener("touchend",g,!0)}}},[t,r,s,o])}function ch(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?!e.composedPath().includes(t.current):!1}function N5(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=I.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:s}=Eo(),o=Mn((h,m,g,b)=>{g===0&&b===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:m,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey})),n==null||n({type:"move",pointerType:m,deltaX:g,deltaY:b,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey}))}),c=Mn((h,m)=>{Ph(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:m,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey}))});return{moveProps:I.useMemo(()=>{let h={},m=()=>{Kb(),i.current.didMove=!1};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let b=C=>{if(C.button===0){var E,S,R,_;o(C,"mouse",C.pageX-((R=(E=i.current.lastPosition)===null||E===void 0?void 0:E.pageX)!==null&&R!==void 0?R:0),C.pageY-((_=(S=i.current.lastPosition)===null||S===void 0?void 0:S.pageY)!==null&&_!==void 0?_:0)),i.current.lastPosition={pageX:C.pageX,pageY:C.pageY}}},w=C=>{C.button===0&&(c(C,"mouse"),s(window,"mousemove",b,!1),s(window,"mouseup",w,!1))};h.onMouseDown=C=>{C.button===0&&(m(),C.stopPropagation(),C.preventDefault(),i.current.lastPosition={pageX:C.pageX,pageY:C.pageY},a(window,"mousemove",b,!1),a(window,"mouseup",w,!1))};let x=C=>{let E=[...C.changedTouches].findIndex(({identifier:z})=>z===i.current.id);if(E>=0){var S,R;let{pageX:z,pageY:ie}=C.changedTouches[E];var _,F;o(C,"touch",z-((_=(S=i.current.lastPosition)===null||S===void 0?void 0:S.pageX)!==null&&_!==void 0?_:0),ie-((F=(R=i.current.lastPosition)===null||R===void 0?void 0:R.pageY)!==null&&F!==void 0?F:0)),i.current.lastPosition={pageX:z,pageY:ie}}},A=C=>{[...C.changedTouches].findIndex(({identifier:S})=>S===i.current.id)>=0&&(c(C,"touch"),i.current.id=null,s(window,"touchmove",x),s(window,"touchend",A),s(window,"touchcancel",A))};h.onTouchStart=C=>{if(C.changedTouches.length===0||i.current.id!=null)return;let{pageX:E,pageY:S,identifier:R}=C.changedTouches[0];m(),C.stopPropagation(),C.preventDefault(),i.current.lastPosition={pageX:E,pageY:S},i.current.id=R,a(window,"touchmove",x,!1),a(window,"touchend",A,!1),a(window,"touchcancel",A,!1)}}else{let b=x=>{if(x.pointerId===i.current.id){var A,C;let R=x.pointerType||"mouse";var E,S;o(x,R,x.pageX-((E=(A=i.current.lastPosition)===null||A===void 0?void 0:A.pageX)!==null&&E!==void 0?E:0),x.pageY-((S=(C=i.current.lastPosition)===null||C===void 0?void 0:C.pageY)!==null&&S!==void 0?S:0)),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY}}},w=x=>{if(x.pointerId===i.current.id){let A=x.pointerType||"mouse";c(x,A),i.current.id=null,s(window,"pointermove",b,!1),s(window,"pointerup",w,!1),s(window,"pointercancel",w,!1)}};h.onPointerDown=x=>{x.button===0&&i.current.id==null&&(m(),x.stopPropagation(),x.preventDefault(),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY},i.current.id=x.pointerId,a(window,"pointermove",b,!1),a(window,"pointerup",w,!1),a(window,"pointercancel",w,!1))}}let g=(b,w,x)=>{m(),o(b,"keyboard",w,x),c(b,"keyboard")};return h.onKeyDown=b=>{switch(b.key){case"Left":case"ArrowLeft":b.preventDefault(),b.stopPropagation(),g(b,-1,0);break;case"Right":case"ArrowRight":b.preventDefault(),b.stopPropagation(),g(b,1,0);break;case"Up":case"ArrowUp":b.preventDefault(),b.stopPropagation(),g(b,0,-1);break;case"Down":case"ArrowDown":b.preventDefault(),b.stopPropagation(),g(b,0,1);break}},h},[i,a,s,o,c])}}const mG=500;function j5(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:a=mG,accessibilityDescription:s}=e;const o=I.useRef(void 0);let{addGlobalListener:c,removeGlobalListener:d}=Eo(),{pressProps:h}=id({isDisabled:t,onPressStart(g){if(g.continuePropagation(),(g.pointerType==="mouse"||g.pointerType==="touch")&&(n&&n({...g,type:"longpressstart"}),o.current=setTimeout(()=>{g.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Xt(g.target).activeElement!==g.target&&xi(g.target),i&&i({...g,type:"longpress"}),o.current=void 0},a),g.pointerType==="touch")){let b=w=>{w.preventDefault()};c(g.target,"contextmenu",b,{once:!0}),c(window,"pointerup",()=>{setTimeout(()=>{d(g.target,"contextmenu",b)},30)},{once:!0})}},onPressEnd(g){o.current&&clearTimeout(o.current),r&&(g.pointerType==="mouse"||g.pointerType==="touch")&&r({...g,type:"longpressend"})}}),m=nd(i&&!t?s:void 0);return{longPressProps:Jt(h,m)}}const gG=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),vG=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function yG(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 gG.has(n.script)}let t=e.split("-")[0];return vG.has(t)}const bG=Symbol.for("react-aria.i18n.locale");function K5(){let e=typeof window<"u"&&window[bG]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:yG(e)?"rtl":"ltr"}}let zb=K5(),hf=new Set;function BS(){zb=K5();for(let e of hf)e(zb)}function $G(){let e=U4(),[t,n]=I.useState(zb);return I.useEffect(()=>(hf.size===0&&window.addEventListener("languagechange",BS),hf.add(n),()=>{hf.delete(n),hf.size===0&&window.removeEventListener("languagechange",BS)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const xG=fe.default.createContext(null);function Tr(){let e=$G();return I.useContext(xG)||e}const wG=Symbol.for("react-aria.i18n.locale"),CG=Symbol.for("react-aria.i18n.strings");let cl;class So{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=EG(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[wG];if(cl===void 0){let i=window[CG];if(!i)return null;cl={};for(let a in i)cl[a]=new So({[n]:i[a]},n)}let r=cl==null?void 0:cl[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 EG(e,t,n="en-US"){if(t[e])return t[e];let r=SG(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function SG(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const NS=new Map,jS=new Map;class U5{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=NS.get(a);s||(s=new Intl.PluralRules(this.locale,{type:r}),NS.set(a,s));let o=s.select(t);return i=n[o]||n.other,typeof i=="function"?i():i}number(t){let n=jS.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),jS.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 KS=new WeakMap;function DG(e){let t=KS.get(e);return t||(t=new So(e),KS.set(e,t)),t}function q5(e,t){return t&&So.getGlobalDictionaryForPackage(t)||DG(e)}function rs(e,t){let{locale:n}=Tr(),r=q5(e,t);return I.useMemo(()=>new U5(n,r),[n,r])}function Ml(e,t){return e-t*Math.floor(e/t)}const z5=1721426;function su(e,t,n,r){t=ad(e,t);let i=t-1,a=-2;return n<=2?a=0:go(t)&&(a=-1),z5-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function go(e){return e%4===0&&(e%100!==0||e%400===0)}function ad(e,t){return e==="BC"?1-t:t}function um(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const AG={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 qr{fromJulianDay(t){let n=t,r=n-z5,i=Math.floor(r/146097),a=Ml(r,146097),s=Math.floor(a/36524),o=Ml(a,36524),c=Math.floor(o/1461),d=Ml(o,1461),h=Math.floor(d/365),m=i*400+s*100+c*4+h+(s!==4&&h!==4?1:0),[g,b]=um(m),w=n-su(g,b,1,1),x=2;n<su(g,b,3,1)?x=0:go(b)&&(x=1);let A=Math.floor(((w+x)*12+373)/367),C=n-su(g,b,A,1)+1;return new Gn(g,b,A,C)}toJulianDay(t){return su(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return AG[go(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return go(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 TG={"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 Qn(e,t){return t=Fn(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Wb(e,t){return lm(e.calendar,t.calendar)&&Qn(e,t)}function lm(e,t){var n,r,i,a;return(a=(i=(n=e.isEqual)===null||n===void 0?void 0:n.call(e,t))!==null&&i!==void 0?i:(r=t.isEqual)===null||r===void 0?void 0:r.call(t,e))!==null&&a!==void 0?a:e.identifier===t.identifier}function W5(e,t){return Qn(e,cm(t))}const PG={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function e3(e,t,n){let r=e.calendar.toJulianDay(e),i=n?PG[n]:OG(t),a=Math.ceil(r+1-i)%7;return a<0&&(a+=7),a}function H5(e){return Fs(Date.now(),e)}function cm(e){return Ur(H5(e))}function G5(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Y5(e,t){return US(e)-US(t)}function US(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let f0=null;function sd(){return f0==null&&(f0=new Intl.DateTimeFormat().resolvedOptions().timeZone),f0}function od(e){return e.subtract({days:e.day-1})}function Hb(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function _G(e){return od(e.subtract({months:e.month-1}))}function MG(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function FG(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function Rf(e,t,n){let r=e3(e,t,n);return e.subtract({days:r})}function RG(e,t,n){return Rf(e,t,n).add({days:6})}const qS=new Map;function kG(e){if(Intl.Locale){let n=qS.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&qS.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function OG(e){let t=kG(e);return t&&TG[t]||0}function Z5(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((e3(od(e),t,n)+r)/7)}function t3(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function n3(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function zl(e){e=Fn(e,new qr);let t=ad(e.era,e.year);return X5(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function X5(e,t,n,r,i,a,s){let o=new Date;return o.setUTCHours(r,i,a,s),o.setUTCFullYear(e,t-1,n),o.getTime()}function Gb(e,t){if(t==="UTC")return 0;if(e>0&&t===sd())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:s,second:o}=J5(e,t);return X5(n,r,i,a,s,o,0)-Math.floor(e/1e3)*1e3}const zS=new Map;function J5(e,t){let n=zS.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"}),zS.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 WS=864e5;function IG(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>LG(e,t,a))}function LG(e,t,n){let r=J5(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 Ms(e,t,n="compatible"){let r=ya(e);if(t==="UTC")return zl(r);if(t===sd()&&n==="compatible"){r=Fn(r,new qr);let c=new Date,d=ad(r.era,r.year);return c.setFullYear(d,r.month-1,r.day),c.setHours(r.hour,r.minute,r.second,r.millisecond),c.getTime()}let i=zl(r),a=Gb(i-WS,t),s=Gb(i+WS,t),o=IG(r,t,i-a,i-s);if(o.length===1)return o[0];if(o.length>1)switch(n){case"compatible":case"earlier":return o[0];case"later":return o[o.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 Q5(e,t,n="compatible"){return new Date(Ms(e,t,n))}function Fs(e,t){let n=Gb(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,s=r.getUTCDate(),o=r.getUTCHours(),c=r.getUTCMinutes(),d=r.getUTCSeconds(),h=r.getUTCMilliseconds();return new If(i<1?"BC":"AD",i<1?-i+1:i,a,s,t,n,o,c,d,h)}function Ur(e){return new Gn(e.calendar,e.era,e.year,e.month,e.day)}function ya(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 Of(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function HS(e){return new ud(e.hour,e.minute,e.second,e.millisecond)}function Fn(e,t){if(lm(e.calendar,t))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,Su(r),r}function e_(e,t,n){if(e instanceof If)return e.timeZone===t?e:BG(e,t);let r=Ms(e,t,n);return Fs(r,t)}function VG(e){let t=zl(e)-e.offset;return new Date(t)}function BG(e,t){let n=zl(e)-e.offset;return Fn(Fs(n,t),e.calendar)}const Yc=36e5;function fm(e,t){let n=e.copy(),r="hour"in n?i_(n,t):0;Yb(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Zb(n),t_(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,NG(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 c=(a=(s=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(s,n);n.year=i,n.month=c?1:n.calendar.getMonthsInYear(n),n.day=c?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let o=n.calendar.getMonthsInYear(n);return n.month>o&&(n.month=o,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Yb(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function Zb(e){for(;e.month<1;)Yb(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Yb(e,1)}function NG(e){for(;e.day<1;)e.month--,Zb(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Zb(e)}function t_(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Su(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),t_(e)}function r3(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function n_(e,t){return fm(e,r3(t))}function i3(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),Su(n),n}function kf(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),r_(n),n}function jG(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=fh(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=fh(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=fh(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=fh(e.hour,24),t}function r_(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 fh(e,t){let n=e%t;return n<0&&(n+=t),n}function i_(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,jG(e)}function a_(e,t){let n=e.copy();return i_(n,t),n}function KG(e,t){return a_(e,r3(t))}function a3(e,t,n,r){let i=e.copy();switch(t){case"era":{let o=e.calendar.getEras(),c=o.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=Rs(c,n,0,o.length-1,r==null?void 0:r.round),i.era=o[c],Su(i);break}case"year":var a,s;!((a=(s=i.calendar).isInverseEra)===null||a===void 0)&&a.call(s,i)&&(n=-n),i.year=Rs(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=Rs(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=Rs(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),Su(i),i}function s3(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,s=0,o=23;if((r==null?void 0:r.hourCycle)===12){let c=a>=12;s=c?12:0,o=c?23:11}i.hour=Rs(a,n,s,o,r==null?void 0:r.round);break}case"minute":i.minute=Rs(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=Rs(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=Rs(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function Rs(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 s_(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=fm(ya(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Ms(i,e.timeZone)}else n=zl(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Fs(n,e.timeZone);return Fn(r,e.calendar)}function UG(e,t){return s_(e,r3(t))}function qG(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if((r==null?void 0:r.hourCycle)===12){let w=e.hour>=12;i=w?12:0,a=w?23:11}let s=ya(e),o=Fn(kf(s,{hour:i}),new qr),c=[Ms(o,e.timeZone,"earlier"),Ms(o,e.timeZone,"later")].filter(w=>Fs(w,e.timeZone).day===o.day)[0],d=Fn(kf(s,{hour:a}),new qr),h=[Ms(d,e.timeZone,"earlier"),Ms(d,e.timeZone,"later")].filter(w=>Fs(w,e.timeZone).day===d.day).pop(),m=zl(e)-e.offset,g=Math.floor(m/Yc),b=m%Yc;return m=Rs(g,n,Math.floor(c/Yc),Math.floor(h/Yc),r==null?void 0:r.round)*Yc+b,Fn(Fs(m,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return s3(e,t,n,r);case"era":case"year":case"month":case"day":{let i=a3(ya(e),t,n,r),a=Ms(i,e.timeZone);return Fn(Fs(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function zG(e,t,n){let r=ya(e),i=kf(i3(r,t),t);if(i.compare(r)===0)return e;let a=Ms(i,e.timeZone,n);return Fn(Fs(a,e.timeZone),e.calendar)}const WG=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,HG=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function GG(e){let t=e.match(WG);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new Gn(Na(t[1],0,9999),Na(t[2],1,12),1);return n.day=Na(t[3],1,n.calendar.getDaysInMonth(n)),n}function YG(e){let t=e.match(HG);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=Na(t[1],-9999,9999),r=n<1?"BC":"AD",i=new Of(r,n<1?-n+1:n,Na(t[2],1,12),1,t[4]?Na(t[4],0,23):0,t[5]?Na(t[5],0,59):0,t[6]?Na(t[6],0,59):0,t[7]?Na(t[7],0,1/0)*1e3:0);return i.day=Na(t[3],0,i.calendar.getDaysInMonth(i)),i}function Na(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 o_(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 u_(e){let t=Fn(e,new qr),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 l_(e){return`${u_(e)}T${o_(e)}`}function ZG(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 XG(e){return`${l_(e)}${ZG(e.offset)}[${e.timeZone}]`}function o3(e){let t=typeof e[0]=="object"?e.shift():new qr,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 JG=new WeakMap;class Gn{copy(){return this.era?new Gn(this.calendar,this.era,this.year,this.month,this.day):new Gn(this.calendar,this.year,this.month,this.day)}add(t){return fm(this,t)}subtract(t){return n_(this,t)}set(t){return i3(this,t)}cycle(t,n,r){return a3(this,t,n,r)}toDate(t){return Q5(this,t)}toString(){return u_(this)}compare(t){return G5(this,t)}constructor(...t){rd(this,JG,{writable:!0,value:void 0});let[n,r,i,a,s]=o3(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=s,Su(this)}}var QG=new WeakMap;class ud{copy(){return new ud(this.hour,this.minute,this.second,this.millisecond)}add(t){return a_(this,t)}subtract(t){return KG(this,t)}set(t){return kf(this,t)}cycle(t,n,r){return s3(this,t,n,r)}toString(){return o_(this)}compare(t){return Y5(this,t)}constructor(t=0,n=0,r=0,i=0){rd(this,QG,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,r_(this)}}var eY=new WeakMap;class Of{copy(){return this.era?new Of(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Of(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return fm(this,t)}subtract(t){return n_(this,t)}set(t){return i3(kf(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return a3(this,t,n,r);default:return s3(this,t,n,r)}}toDate(t,n){return Q5(this,t,n)}toString(){return l_(this)}compare(t){let n=G5(this,t);return n===0?Y5(this,ya(t)):n}constructor(...t){rd(this,eY,{writable:!0,value:void 0});let[n,r,i,a,s]=o3(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,Su(this)}}var tY=new WeakMap;class If{copy(){return this.era?new If(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new If(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return s_(this,t)}subtract(t){return UG(this,t)}set(t,n){return zG(this,t,n)}cycle(t,n,r){return qG(this,t,n,r)}toDate(){return VG(this)}toString(){return XG(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-e_(t,this.timeZone).toDate().getTime()}constructor(...t){rd(this,tY,{writable:!0,value:void 0});let[n,r,i,a,s]=o3(t),o=t.shift(),c=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=s,this.timeZone=o,this.offset=c,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Su(this)}}const Fl=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],nY=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],_h=[1867,1911,1925,1988,2018],lo=["meiji","taisho","showa","heisei","reiwa"];function GS(e){const t=Fl.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?Fl.length-1:t===0?0:t-1}function d0(e){let t=_h[lo.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Gn(e.year+t,e.month,e.day)}class rY extends qr{fromJulianDay(t){let n=super.fromJulianDay(t),r=GS(n);return new Gn(this,lo[r],n.year-_h[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(d0(t))}balanceDate(t){let n=d0(t),r=GS(n);lo[r]!==t.era&&(t.era=lo[r],t.year=n.year-_h[r]),this.constrainDate(t)}constrainDate(t){let n=lo.indexOf(t.era),r=nY[n];if(r!=null){let[i,a,s]=r,o=i-_h[n];t.year=Math.max(1,Math.min(o,t.year)),t.year===o&&(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]=Fl[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return lo}getYearsInEra(t){let n=lo.indexOf(t.era),r=Fl[n],i=Fl[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(d0(t))}getMinimumMonthInYear(t){let n=YS(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=YS(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function YS(e){if(e.year===1){let t=lo.indexOf(e.era);return Fl[t]}}const c_=-543;class iY extends qr{fromJulianDay(t){let n=super.fromJulianDay(t),r=ad(n.era,n.year);return new Gn(this,r-c_,n.month,n.day)}toJulianDay(t){return super.toJulianDay(ZS(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(ZS(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function ZS(e){let[t,n]=um(e.year+c_);return new Gn(t,n,e.month,e.day)}const cp=1911;function f_(e){return e.era==="minguo"?e.year+cp:1-e.year+cp}function XS(e){let t=e-cp;return t>0?["minguo",t]:["before_minguo",1-t]}class aY extends qr{fromJulianDay(t){let n=super.fromJulianDay(t),r=ad(n.era,n.year),[i,a]=XS(r);return new Gn(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(JS(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=XS(f_(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(JS(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-cp}constructor(...t){super(...t),this.identifier="roc"}}function JS(e){let[t,n]=um(f_(e));return new Gn(t,n,e.month,e.day)}const QS=1948320,eD=[0,31,62,93,124,155,186,216,246,276,306,336];class sY{fromJulianDay(t){let n=t-QS,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),o=a-eD[s]+1;return new Gn(this,r,s+1,o)}toJulianDay(t){let n=QS-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=eD[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Ml(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const h0=78,tD=80;class oY extends qr{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-h0,i=t-su(n.era,n.year,1,1),a;i<tD?(r--,a=go(n.year-1)?31:30,i+=a+155+90+10):(a=go(n.year)?31:30,i-=tD);let s,o;if(i<a)s=1,o=i+1;else{let c=i-a;c<155?(s=Math.floor(c/31)+2,o=c%31+1):(c-=155,s=Math.floor(c/30)+7,o=c%30+1)}return new Gn(this,r,s,o)}toJulianDay(t){let n=t.year+h0,[r,i]=um(n),a,s;return go(i)?(a=31,s=su(r,i,3,21)):(a=30,s=su(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&&go(t.year+h0)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const fp=1948440,nD=1948439,Bi=1300,fl=1600,uY=460322;function dp(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function d_(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+dp(t,r,1,1)))/29.5)+1),a=n-dp(t,r,i,1)+1;return new Gn(e,r,i,a)}function rD(e){return(14+11*e)%30<11}class u3{fromJulianDay(t){return d_(this,fp,t)}toJulianDay(t){return dp(fp,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&rD(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return rD(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class lY extends u3{fromJulianDay(t){return d_(this,nD,t)}toJulianDay(t){return dp(nD,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const cY="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Xb,Rl;function Mh(e){return uY+Rl[e-Bi]}function pf(e,t){let n=e-Bi,r=1<<11-(t-1);return(Xb[n]&r)===0?29:30}function iD(e,t){let n=Mh(e);for(let r=1;r<t;r++)n+=pf(e,r);return n}function aD(e){return Rl[e+1-Bi]-Rl[e-Bi]}class fY extends u3{fromJulianDay(t){let n=t-fp,r=Mh(Bi),i=Mh(fl);if(n<r||n>i)return super.fromJulianDay(t);{let a=Bi-1,s=1,o=1;for(;o>0;){a++,o=n-Mh(a)+1;let c=aD(a);if(o===c){s=12;break}else if(o<c){let d=pf(a,s);for(s=1;o>d;)o-=d,s++,d=pf(a,s);break}}return new Gn(this,a,s,n-iD(a,s)+1)}}toJulianDay(t){return t.year<Bi||t.year>fl?super.toJulianDay(t):fp+iD(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Bi||t.year>fl?super.getDaysInMonth(t):pf(t.year,t.month)}getDaysInYear(t){return t.year<Bi||t.year>fl?super.getDaysInYear(t):aD(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Xb||(Xb=new Uint16Array(Uint8Array.from(atob(cY),t=>t.charCodeAt(0)).buffer)),!Rl){Rl=new Uint32Array(fl-Bi+1);let t=0;for(let n=Bi;n<=fl;n++){Rl[n-Bi]=t;for(let r=1;r<=12;r++)t+=pf(n,r)}}}}const sD=347997,h_=1080,p_=24*h_,dY=29,hY=12*h_+793,pY=dY*p_+hY;function ru(e){return Ml(e*7+1,19)<7}function Fh(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Ml(3*(r+1),7)<3&&(r+=1),r}function mY(e){let t=Fh(e-1),n=Fh(e);return Fh(e+1)-n===356?2:n-t===382?1:0}function $f(e){return Fh(e)+mY(e)}function m_(e){return $f(e+1)-$f(e)}function gY(e){let t=m_(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function dh(e,t){if(t>=6&&!ru(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=gY(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?ru(e)?30:0:30}class vY{fromJulianDay(t){let n=t-sD,r=n*p_/pY,i=Math.floor((19*r+234)/235)+1,a=$f(i),s=Math.floor(n-a);for(;s<1;)i--,a=$f(i),s=Math.floor(n-a);let o=1,c=0;for(;c<s;)c+=dh(i,o),o++;o--,c-=dh(i,o);let d=s-c;return new Gn(this,i,o,d)}toJulianDay(t){let n=$f(t.year);for(let r=1;r<t.month;r++)n+=dh(t.year,r);return n+t.day+sD}getDaysInMonth(t){return dh(t.year,t.month)}getMonthsInYear(t){return ru(t.year)?13:12}getDaysInYear(t){return m_(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(ru(n.year)&&!ru(t.year)&&n.month>6?t.month--:!ru(n.year)&&ru(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Jb=1723856,oD=1824665,Qb=5500;function hp(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function l3(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-hp(e,n,1,1))/30),i=t+1-hp(e,n,r,1);return[n,r,i]}function g_(e){return Math.floor(e%4/3)}function v_(e,t){return t%13!==0?30:g_(e)+5}class c3{fromJulianDay(t){let[n,r,i]=l3(Jb,t),a="AM";return n<=0&&(a="AA",n+=Qb),new Gn(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Qb),hp(Jb,n,t.month,t.day)}getDaysInMonth(t){return v_(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+g_(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class yY extends c3{fromJulianDay(t){let[n,r,i]=l3(Jb,t);return n+=Qb,new Gn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class bY extends c3{fromJulianDay(t){let[n,r,i]=l3(oD,t),a="CE";return n<=0&&(a="BCE",n=1-n),new Gn(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),hp(oD,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),v_(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 $Y(e){switch(e){case"buddhist":return new iY;case"ethiopic":return new c3;case"ethioaa":return new yY;case"coptic":return new bY;case"hebrew":return new vY;case"indian":return new oY;case"islamic-civil":return new u3;case"islamic-tbla":return new lY;case"islamic-umalqura":return new fY;case"japanese":return new rY;case"persian":return new sY;case"roc":return new aY;case"gregory":default:return new qr}}let p0=new Map;class qi{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 CY()&&(this.resolvedHourCycle||(this.resolvedHourCycle=EY(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=y_(t,n),this.options=n}}const xY={true:{ja:"h11"},false:{}};function y_(e,t={}){if(typeof t.hour12=="boolean"&&wY()){t={...t};let i=xY[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(p0.has(n))return p0.get(n);let r=new Intl.DateTimeFormat(e,t);return p0.set(n,r),r}let m0=null;function wY(){return m0==null&&(m0=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),m0}let g0=null;function CY(){return g0==null&&(g0=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),g0}function EY(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=y_(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 za(e){e=A5(e??{},SY);let{locale:t}=Tr();return I.useMemo(()=>new qi(t,e),[t,e])}function SY(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 v0=new Map,e1=!1;try{e1=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let pp=!1;try{pp=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const b_={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class $_{format(t){let n="";if(!e1&&this.options.signDisplay!=null?n=AY(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!pp){var r;let{unit:i,unitDisplay:a="short",locale:s}=this.resolvedOptions();if(!i)return n;let o=(r=b_[i])===null||r===void 0?void 0:r[a];n+=o[s]||o.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!e1&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!pp&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=DY(t,n),this.options=n}}function DY(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!pp){var r;let{unit:s,unitDisplay:o="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=b_[s])===null||r===void 0)&&r[o]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${o}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((s,o)=>s[0]<o[0]?-1:1).join():"");if(v0.has(i))return v0.get(i);let a=new Intl.NumberFormat(e,t);return v0.set(i,a),a}function AY(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 TY=new RegExp("^.*\\(.*\\).*$"),PY=["latn","arab","hanidec","deva","beng","fullwide"];class x_{parse(t){return y0(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return y0(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return y0(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const uD=new Map;function y0(e,t,n){let r=lD(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of PY)if(i!==r.options.numberingSystem){let a=lD(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(a.isValidPartialNumber(n))return a}}return r}function lD(e,t){let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():""),r=uD.get(n);return r||(r=new _Y(e,t),uD.set(n,r)),r}class _Y{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=Zc(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("-",""),n=n.replace("+","");let o=n.indexOf(".");o===-1&&(o=n.length),n=n.replace(".",""),o-2===0?n=`0.${n}`:o-2===-1?n=`0.0${n}`:o-2===-2?n="0.00":n=`${n.slice(0,o-2)}.${n.slice(o-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 x_(this.locale,s).parse(new $_(this.locale,s).format(r))}return this.options.currencySign==="accounting"&&TY.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=Zc(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=Zc(t," ",this.symbols.group),t=Zc(t,/\u00A0/g,this.symbols.group)),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=Zc(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,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=FY(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 cD=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),MY=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function FY(e,t,n,r){var i,a,s,o;let c=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),d=c.formatToParts(-10000.111),h=c.formatToParts(10000.111),m=MY.map(oe=>c.formatToParts(oe));var g;let b=(g=(i=d.find(oe=>oe.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&g!==void 0?g:"-",w=(a=h.find(oe=>oe.type==="plusSign"))===null||a===void 0?void 0:a.value;!w&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(w="+");let A=(s=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(oe=>oe.type==="decimal"))===null||s===void 0?void 0:s.value,C=(o=d.find(oe=>oe.type==="group"))===null||o===void 0?void 0:o.value,E=d.filter(oe=>!cD.has(oe.type)).map(oe=>fD(oe.value)),S=m.flatMap(oe=>oe.filter(O=>!cD.has(O.type)).map(O=>fD(O.value))),R=[...new Set([...E,...S])].sort((oe,O)=>O.length-oe.length),_=R.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${R.join("|")}|[\\p{White_Space}]`,"gu"),F=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),z=new Map(F.map((oe,O)=>[oe,O])),ie=new RegExp(`[${F.join("")}]`,"g");return{minusSign:b,plusSign:w,decimal:A,group:C,literals:_,numeral:ie,index:oe=>String(z.get(oe))}}function Zc(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function fD(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function RY(e={}){let{locale:t}=Tr();return I.useMemo(()=>new $_(t,e),[t,e])}let b0=new Map;function w_(e){let{locale:t}=Tr(),n=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(b0.has(n))return b0.get(n);let r=new Intl.Collator(t,e);return b0.set(n,r),r}function C_(e){let t=w_({usage:"search",...e}),n=I.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=I.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=I.useCallback((a,s)=>{if(s.length===0)return!0;a=a.normalize("NFC"),s=s.normalize("NFC");let o=0,c=s.length;for(;o+c<=a.length;o++){let d=a.slice(o,o+c);if(t.compare(s,d)===0)return!0}return!1},[t]);return I.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function kY(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:s,onPressUp:o,onPressChange:c,preventFocusOnPress:d,allowFocusWhenDisabled:h,onClick:m,href:g,target:b,rel:w,type:x="button"}=e,A;n==="button"?A={type:x,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:A={role:"button",href:n==="a"&&!r?g:void 0,target:n==="a"?b:void 0,type:n==="input"?x:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?w:void 0};let{pressProps:C,isPressed:E}=id({onPressStart:a,onPressEnd:s,onPressChange:c,onPress:i,onPressUp:o,onClick:m,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:S}=Q4(e,t);h&&(S.tabIndex=r?-1:S.tabIndex);let R=Jt(S,C,qs(e,{labelable:!0}));return{isPressed:E,buttonProps:Jt(A,R,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}const dD=fe.default.createContext(null),t1="react-aria-focus-scope-restore";let pn=null;function OY(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=I.useRef(null),s=I.useRef(null),o=I.useRef([]),{parentNode:c}=I.useContext(dD)||{},d=I.useMemo(()=>new r1({scopeRef:o}),[o]);mn(()=>{let g=c||Xn.root;if(Xn.getTreeNode(g.scopeRef)&&pn&&!mp(pn,g.scopeRef)){let b=Xn.getTreeNode(pn);b&&(g=b)}g.addChild(d),Xn.addNode(d)},[d,c]),mn(()=>{let g=Xn.getTreeNode(o);g&&(g.contain=!!n)},[n]),mn(()=>{var g;let b=(g=a.current)===null||g===void 0?void 0:g.nextSibling,w=[],x=A=>A.stopPropagation();for(;b&&b!==s.current;)w.push(b),b.addEventListener(t1,x),b=b.nextSibling;return o.current=w,()=>{for(let A of w)A.removeEventListener(t1,x)}},[t]),jY(o,r,n),VY(o,n),KY(o,r,n),NY(o,i),I.useEffect(()=>{const g=nr(Xt(o.current?o.current[0]:void 0));let b=null;if(Zi(g,o.current)){for(let w of Xn.traverse())w.scopeRef&&Zi(g,w.scopeRef.current)&&(b=w);b===Xn.getTreeNode(o)&&(pn=b.scopeRef)}},[o]),mn(()=>()=>{var g,b,w;let x=(w=(b=Xn.getTreeNode(o))===null||b===void 0||(g=b.parent)===null||g===void 0?void 0:g.scopeRef)!==null&&w!==void 0?w:null;(o===pn||mp(o,pn))&&(!x||Xn.getTreeNode(x))&&(pn=x),Xn.removeTreeNode(o)},[o]);let h=I.useMemo(()=>IY(o),[]),m=I.useMemo(()=>({focusManager:h,parentNode:d}),[d,h]);return fe.default.createElement(dD.Provider,{value:m},fe.default.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,fe.default.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function IY(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:s}=t;var o;let c=r||nr(Xt((o=n[0])!==null&&o!==void 0?o:void 0)),d=n[0].previousElementSibling,h=ou(n),m=Vr(h,{tabbable:i,accept:s},n);m.currentNode=Zi(c,n)?c:d;let g=m.nextNode();return!g&&a&&(m.currentNode=d,g=m.nextNode()),g&&ti(g,!0),g},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:s}=t;var o;let c=r||nr(Xt((o=n[0])!==null&&o!==void 0?o:void 0)),d=n[n.length-1].nextElementSibling,h=ou(n),m=Vr(h,{tabbable:i,accept:s},n);m.currentNode=Zi(c,n)?c:d;let g=m.previousNode();return!g&&a&&(m.currentNode=d,g=m.previousNode()),g&&ti(g,!0),g},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=ou(n),s=Vr(a,{tabbable:r,accept:i},n);s.currentNode=n[0].previousElementSibling;let o=s.nextNode();return o&&ti(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=ou(n),s=Vr(a,{tabbable:r,accept:i},n);s.currentNode=n[n.length-1].nextElementSibling;let o=s.previousNode();return o&&ti(o,!0),o}}}function ou(e){return e[0].parentElement}function mf(e){let t=Xn.getTreeNode(pn);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function LY(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...Xt(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(a=>!a.form);else{var n,r;let a=(r=e.form)===null||r===void 0||(n=r.elements)===null||n===void 0?void 0:n.namedItem(e.name);t=[...a??[]]}return t?!t.some(a=>a.checked):!1}function VY(e,t){let n=I.useRef(void 0),r=I.useRef(void 0);mn(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const a=Xt(i?i[0]:void 0);let s=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!mf(e)||d.isComposing)return;let h=nr(a),m=e.current;if(!m||!Zi(h,m))return;let g=ou(m),b=Vr(g,{tabbable:!0},m);if(!h)return;b.currentNode=h;let w=d.shiftKey?b.previousNode():b.nextNode();w||(b.currentNode=d.shiftKey?m[m.length-1].nextElementSibling:m[0].previousElementSibling,w=d.shiftKey?b.previousNode():b.nextNode()),d.preventDefault(),w&&ti(w,!0)},o=d=>{(!pn||mp(pn,e))&&Zi(tn(d),e.current)?(pn=e,n.current=tn(d)):mf(e)&&!vo(tn(d),e)?n.current?n.current.focus():pn&&pn.current&&n1(pn.current):mf(e)&&(n.current=tn(d))},c=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let h=Ff(),m=(h==="virtual"||h===null)&&W4()&&C5(),g=nr(a);if(!m&&g&&mf(e)&&!vo(g,e)){pn=e;let w=tn(d);if(w&&w.isConnected){var b;n.current=w,(b=n.current)===null||b===void 0||b.focus()}else pn.current&&n1(pn.current)}})};return a.addEventListener("keydown",s,!1),a.addEventListener("focusin",o,!1),i==null||i.forEach(d=>d.addEventListener("focusin",o,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",c,!1)),()=>{a.removeEventListener("keydown",s,!1),a.removeEventListener("focusin",o,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",o,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",c,!1))}},[e,t]),mn(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function E_(e){return vo(e)}function Zi(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function vo(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Xn.traverse(Xn.getTreeNode(t)))if(n&&Zi(e,n.current))return!0;return!1}function BY(e){return vo(e,pn)}function mp(e,t){var n;let r=(n=Xn.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function ti(e,t=!1){if(e!=null&&!t)try{Eu(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function S_(e,t=!0){let n=e[0].previousElementSibling,r=ou(e),i=Vr(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=ou(e),i=Vr(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function n1(e,t=!0){ti(S_(e,t))}function NY(e,t){const n=fe.default.useRef(t);I.useEffect(()=>{if(n.current){pn=e;const r=Xt(e.current?e.current[0]:void 0);!Zi(nr(r),pn.current)&&e.current&&n1(e.current)}n.current=!1},[e])}function jY(e,t,n){mn(()=>{if(t||n)return;let r=e.current;const i=Xt(r?r[0]:void 0);let a=s=>{let o=tn(s);Zi(o,e.current)?pn=e:E_(o)||(pn=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 hD(e){let t=Xn.getTreeNode(pn);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function KY(e,t,n){const r=I.useRef(typeof document<"u"?nr(Xt(e.current?e.current[0]:void 0)):null);mn(()=>{let i=e.current;const a=Xt(i?i[0]:void 0);if(!t||n)return;let s=()=>{(!pn||mp(pn,e))&&Zi(nr(a),e.current)&&(pn=e)};return a.addEventListener("focusin",s,!1),i==null||i.forEach(o=>o.addEventListener("focusin",s,!1)),()=>{a.removeEventListener("focusin",s,!1),i==null||i.forEach(o=>o.removeEventListener("focusin",s,!1))}},[e,n]),mn(()=>{const i=Xt(e.current?e.current[0]:void 0);if(!t)return;let a=s=>{if(s.key!=="Tab"||s.altKey||s.ctrlKey||s.metaKey||!mf(e)||s.isComposing)return;let o=i.activeElement;if(!vo(o,e)||!hD(e))return;let c=Xn.getTreeNode(e);if(!c)return;let d=c.nodeToRestore,h=Vr(i.body,{tabbable:!0});h.currentNode=o;let m=s.shiftKey?h.previousNode():h.nextNode();if((!d||!d.isConnected||d===i.body)&&(d=void 0,c.nodeToRestore=void 0),(!m||!vo(m,e))&&d){h.currentNode=d;do m=s.shiftKey?h.previousNode():h.nextNode();while(vo(m,e));s.preventDefault(),s.stopPropagation(),m?ti(m,!0):E_(d)?ti(d,!0):o.blur()}};return n||i.addEventListener("keydown",a,!0),()=>{n||i.removeEventListener("keydown",a,!0)}},[e,t,n]),mn(()=>{const i=Xt(e.current?e.current[0]:void 0);if(!t)return;let a=Xn.getTreeNode(e);if(a){var s;return a.nodeToRestore=(s=r.current)!==null&&s!==void 0?s:void 0,()=>{let o=Xn.getTreeNode(e);if(!o)return;let c=o.nodeToRestore,d=nr(i);if(t&&c&&(d&&vo(d,e)||d===i.body&&hD(e))){let h=Xn.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let m=h.getTreeNode(e);for(;m;){if(m.nodeToRestore&&m.nodeToRestore.isConnected){pD(m.nodeToRestore);return}m=m.parent}for(m=h.getTreeNode(e);m;){if(m.scopeRef&&m.scopeRef.current&&Xn.getTreeNode(m.scopeRef)){let g=S_(m.scopeRef.current,!0);pD(g);return}m=m.parent}}})}}}},[e,t])}function pD(e){e.dispatchEvent(new CustomEvent(t1,{bubbles:!0,cancelable:!0}))&&ti(e)}function Vr(e,t,n){let r=t!=null&&t.tabbable?GH:T5,i=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,a=Xt(i),s=$H(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var c;return!(t==null||(c=t.from)===null||c===void 0)&&c.contains(o)||t!=null&&t.tabbable&&o.tagName==="INPUT"&&o.getAttribute("type")==="radio"&&(!LY(o)||s.currentNode.tagName==="INPUT"&&s.currentNode.type==="radio"&&s.currentNode.name===o.name)?NodeFilter.FILTER_REJECT:r(o)&&(!n||Zi(o,n))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(s.currentNode=t.from),s}function dm(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:o=t.accept}=n,c=i||nr(Xt(r)),d=Vr(r,{tabbable:a,accept:o});r.contains(c)&&(d.currentNode=c);let h=d.nextNode();return!h&&s&&(d.currentNode=r,h=d.nextNode()),h&&ti(h,!0),h},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:s=t.wrap,accept:o=t.accept}=n,c=i||nr(Xt(r)),d=Vr(r,{tabbable:a,accept:o});if(r.contains(c))d.currentNode=c;else{let m=$0(d);return m&&ti(m,!0),m??null}let h=d.previousNode();if(!h&&s){d.currentNode=r;let m=$0(d);if(!m)return null;h=m}return h&&ti(h,!0),h??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=Vr(r,{tabbable:i,accept:a}).nextNode();return o&&ti(o,!0),o},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,s=Vr(r,{tabbable:i,accept:a}),o=$0(s);return o&&ti(o,!0),o??null}}}function $0(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class f3{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 r1({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&&Zi(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 f3;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 r1({scopeRef:null}),this.fastMap.set(null,this.root)}}class r1{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 Xn=new f3;function D_(e){let t=qY(Xt(e));t!==e&&(t&&UY(t,e),e&&d3(e,t))}function UY(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function d3(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function qY(e){let t=nr(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}var A_={};A_={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var T_={};T_={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 P_={};P_={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 __={};__={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 M_={};M_={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 F_={};F_={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 R_={};R_={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 k_={};k_={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 O_={};O_={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 I_={};I_={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 L_={};L_={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 V_={};V_={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 B_={};B_={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 N_={};N_={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 j_={};j_={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 K_={};K_={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 U_={};U_={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 q_={};q_={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 z_={};z_={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 W_={};W_={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 H_={};H_={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 G_={};G_={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 Y_={};Y_={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 Z_={};Z_={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 X_={};X_={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 J_={};J_={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 Q_={};Q_={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 e6={};e6={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 t6={};t6={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 n6={};n6={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 r6={};r6={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 i6={};i6={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 a6={};a6={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 s6={};s6={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 ld={};ld={"ar-AE":A_,"bg-BG":T_,"cs-CZ":P_,"da-DK":__,"de-DE":M_,"el-GR":F_,"en-US":R_,"es-ES":k_,"et-EE":O_,"fi-FI":I_,"fr-FR":L_,"he-IL":V_,"hr-HR":B_,"hu-HU":N_,"it-IT":j_,"ja-JP":K_,"ko-KR":U_,"lt-LT":q_,"lv-LV":z_,"nb-NO":W_,"nl-NL":H_,"pl-PL":G_,"pt-BR":Y_,"pt-PT":Z_,"ro-RO":X_,"ru-RU":J_,"sk-SK":Q_,"sl-SI":e6,"sr-SP":t6,"sv-SE":n6,"tr-TR":r6,"uk-UA":i6,"zh-CN":a6,"zh-TW":s6};function o6(e){return e&&e.__esModule?e.default:e}const h3=new WeakMap;function Lf(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function zY(e){let t=rs(o6(ld),"@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=za({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Lf(n)||Lf(r),timeZone:e.timeZone}),s="anchorDate"in e?e.anchorDate:null;return I.useMemo(()=>{if(!s&&n&&r)if(Qn(n,r)){let o=a.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:o})}else{let o=a1(a,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:o})}return""},[n,r,s,e.timeZone,t,a])}function i1(e,t,n,r){let i=rs(o6(ld),"@react-aria/calendar"),a=Lf(e)||Lf(t),s=za({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),o=za({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return I.useMemo(()=>{if(Qn(e,od(e))){let c=e,d=t;if(e.calendar.getFormattableMonth&&(c=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(d=t.calendar.getFormattableMonth(t)),Qn(t,Hb(e)))return s.format(c.toDate(n));if(Qn(t,Hb(t)))return r?a1(s,i,c,d,n):s.formatRange(c.toDate(n),d.toDate(n))}return r?a1(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))},[e,t,s,o,i,n,r])}function a1(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),s=-1;for(let d=0;d<a.length;d++){let h=a[d];if(h.source==="shared"&&h.type==="literal")s=d;else if(h.source==="endRange")break}let o="",c="";for(let d=0;d<a.length;d++)d<s?o+=a[d].value:d>s&&(c+=a[d].value);return t.format("dateRange",{startDate:o,endDate:c})}const u6=7e3;let Li=null;function kl(e,t="assertive",n=u6){Li?Li.announce(e,t,n):(Li=new HY,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Li.announce(e,t,n):setTimeout(()=>{Li!=null&&Li.isAttached()&&(Li==null||Li.announce(e,t,n))},100))}function WY(e){Li&&Li.clear(e)}class HY{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=u6){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 GY(e){return e&&e.__esModule?e.default:e}function l6(e,t){let n=rs(GY(ld),"@react-aria/calendar"),r=qs(e),i=i1(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=i1(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);Bb(()=>{t.isFocused||kl(a)},[a]);let s=zY(t);Bb(()=>{s&&kl(s,"polite",4e3)},[s]);let o=Kl([!!e.errorMessage,e.isInvalid,e.validationState]);h3.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:o,selectedDateDescription:s});let[c,d]=I.useState(!1),h=e.isDisabled||t.isNextVisibleRangeInvalid();h&&c&&(d(!1),t.setFocused(!0));let[m,g]=I.useState(!1),b=e.isDisabled||t.isPreviousVisibleRangeInvalid();b&&m&&(g(!1),t.setFocused(!0));let w=Ul({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:Jt(r,w,{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:h,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:b,onFocusChange:g},errorMessageProps:{id:o},title:i}}function YY(e,t){return l6(e,t)}function ZY(e,t,n){let r=l6(e,t),i=I.useRef(!1),a=I.useRef(typeof window<"u"?window:null);return qa(a,"pointerdown",o=>{i.current=o.width===0&&o.height===0}),qa(a,"pointerup",o=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let c=o.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(c)||!c.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=o=>{n.current&&(!o.relatedTarget||!n.current.contains(o.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},qa(n,"touchmove",o=>{t.isDragging&&o.preventDefault()},{passive:!1,capture:!0}),r}function XY(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:a}=Tr(),s=x=>{switch(x.key){case"Enter":case" ":x.preventDefault(),t.selectFocusedDate();break;case"PageUp":x.preventDefault(),x.stopPropagation(),t.focusPreviousSection(x.shiftKey);break;case"PageDown":x.preventDefault(),x.stopPropagation(),t.focusNextSection(x.shiftKey);break;case"End":x.preventDefault(),x.stopPropagation(),t.focusSectionEnd();break;case"Home":x.preventDefault(),x.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":x.preventDefault(),x.stopPropagation(),a==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":x.preventDefault(),x.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":x.preventDefault(),x.stopPropagation(),a==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":x.preventDefault(),x.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(x.preventDefault(),t.setAnchorDate(null));break}},o=i1(n,r,t.timeZone,!0),{ariaLabel:c,ariaLabelledBy:d}=h3.get(t),h=Ul({"aria-label":[c,o].filter(Boolean).join(", "),"aria-labelledby":d}),m=za({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:g}=Tr(),b=I.useMemo(()=>{let x=Rf(cm(t.timeZone),g,i);return[...new Array(7).keys()].map(A=>{let E=x.add({days:A}).toDate(t.timeZone);return m.format(E)})},[g,t.timeZone,m,i]),w=Z5(n,g,i);return{gridProps:Jt(h,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:s,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:b,weeksInMonth:w}}function JY(e){return e&&e.__esModule?e.default:e}function QY(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:s}=h3.get(t),o=rs(JY(ld),"@react-aria/calendar"),c=za({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Lf(r),timeZone:t.timeZone}),d=t.isSelected(r),h=t.isCellFocused(r)&&!e.isOutsideMonth;i=i||t.isCellDisabled(r);let m=t.isCellUnavailable(r),g=!i&&!m,b=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&Qn(t.value,r));b&&(d=!0),r=A5(r,Wb);let w=I.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),x=W5(r,t.timeZone),A=I.useMemo(()=>{let O="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(Qn(r,t.value.start)||Qn(r,t.value.end))&&(O=s+", "),O+=c.format(w),x?O=o.format(d?"todayDateSelected":"todayDate",{date:O}):d&&(O=o.format("dateSelected",{date:O})),t.minValue&&Qn(r,t.minValue)?O+=", "+o.format("minimumDate"):t.maxValue&&Qn(r,t.maxValue)&&(O+=", "+o.format("maximumDate")),O},[c,w,o,d,x,r,t,s]),C="";"anchorDate"in t&&h&&!t.isReadOnly&&g&&(t.anchorDate?C=o.format("finishRangeSelectionPrompt"):C=o.format("startRangeSelectionPrompt"));let E=nd(C),S=I.useRef(!1),R=I.useRef(!1),_=I.useRef(void 0),{pressProps:F,isPressed:z}=id({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!g||t.isReadOnly,onPressStart(O){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(O.pointerType==="mouse"||O.pointerType==="touch")){if(t.highlightedRange&&!b){if(Qn(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),R.current=!0;return}else if(Qn(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),R.current=!0;return}}let we=()=>{t.setDragging(!0),_.current=void 0,t.selectDate(r),t.setFocusedDate(r),S.current=!0};O.pointerType==="touch"?_.current=setTimeout(we,200):we()}},onPressEnd(){R.current=!1,S.current=!1,clearTimeout(_.current),_.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(O){if(!t.isReadOnly&&("anchorDate"in t&&_.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(R.current)t.setAnchorDate(r);else if(t.anchorDate&&!S.current)t.selectDate(r),t.setFocusedDate(r);else if(O.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let we=r.add({days:1});t.isInvalid(we)&&(we=r.subtract({days:1})),t.isInvalid(we)||t.setFocusedDate(we)}else O.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),ie;i||(ie=Qn(r,t.focusedDate)?0:-1),I.useEffect(()=>{h&&n.current&&(xi(n.current),Ff()!=="pointer"&&document.activeElement===n.current&&sp(n.current,{containingElement:sm(n.current)}))},[h,n]);let ge=za({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),oe=I.useMemo(()=>ge.formatToParts(w).find(O=>O.type==="day").value,[ge,w]);return{cellProps:{role:"gridcell","aria-disabled":!g||void 0,"aria-selected":d||void 0,"aria-invalid":b||void 0},buttonProps:Jt(F,{onFocus(){i||t.setFocusedDate(r)},tabIndex:ie,role:"button","aria-disabled":!g||void 0,"aria-label":A,"aria-invalid":b||void 0,"aria-describedby":[b?a:void 0,E["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(O){"highlightDate"in t&&(O.pointerType!=="touch"||t.isDragging)&&g&&t.highlightDate(r)},onPointerDown(O){"releasePointerCapture"in O.target&&O.target.releasePointerCapture(O.pointerId)},onContextMenu(O){O.preventDefault()}}),isPressed:z,isFocused:h,isSelected:d,isDisabled:i,isUnavailable:m,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:b,formattedDate:oe}}const hm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},c6={...hm,customError:!0,valid:!1},iu={isInvalid:!1,validationDetails:hm,validationErrors:[]},eZ=I.createContext({}),Wl="__formValidationState"+Date.now();function cd(e){if(e[Wl]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[Wl];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return tZ(e)}function tZ(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:s,validationBehavior:o="aria"}=e;n&&(t||(t=n==="invalid"));let c=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:c6}:null,d=I.useMemo(()=>{if(!s||i==null)return null;let oe=nZ(s,i);return mD(oe)},[s,i]);a!=null&&a.validationDetails.valid&&(a=void 0);let h=I.useContext(eZ),m=I.useMemo(()=>r?Array.isArray(r)?r.flatMap(oe=>s1(h[oe])):s1(h[r]):[],[h,r]),[g,b]=I.useState(h),[w,x]=I.useState(!1);h!==g&&(b(h),x(!1));let A=I.useMemo(()=>mD(w?[]:m),[w,m]),C=I.useRef(iu),[E,S]=I.useState(iu),R=I.useRef(iu),_=()=>{if(!F)return;z(!1);let oe=d||a||C.current;x0(oe,R.current)||(R.current=oe,S(oe))},[F,z]=I.useState(!1);return I.useEffect(_),{realtimeValidation:c||A||d||a||iu,displayValidation:o==="native"?c||A||E:c||A||d||a||E,updateValidation(oe){o==="aria"&&!x0(E,oe)?S(oe):C.current=oe},resetValidation(){let oe=iu;x0(oe,R.current)||(R.current=oe,S(oe)),o==="native"&&z(!1),x(!0)},commitValidation(){o==="native"&&z(!0),x(!0)}}}function s1(e){return e?Array.isArray(e)?e:[e]:[]}function nZ(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return s1(n)}return[]}function mD(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:c6}:null}function x0(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 gp(...e){let t=new Set,n=!1,r={...hm};for(let s of e){var i,a;for(let o of s.validationErrors)t.add(o);n||(n=s.isInvalid);for(let o in r)(i=r)[a=o]||(i[a]=s.validationDetails[o])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function f6(e,t,n){let{validationBehavior:r,focus:i}=e;mn(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){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(iZ(n.current))}});let a=I.useRef(!1),s=Mn(()=>{a.current||t.resetValidation()}),o=Mn(d=>{var h;t.displayValidation.isInvalid||t.commitValidation();let m=n==null||(h=n.current)===null||h===void 0?void 0:h.form;if(!d.defaultPrevented&&n&&m&&aZ(m)===n.current){var g;i?i():(g=n.current)===null||g===void 0||g.focus(),V5("keyboard")}d.preventDefault()}),c=Mn(()=>{t.commitValidation()});I.useEffect(()=>{let d=n==null?void 0:n.current;if(!d)return;let h=d.form,m=h==null?void 0:h.reset;return h&&(h.reset=()=>{a.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,m==null||m.call(h),a.current=!1}),d.addEventListener("invalid",o),d.addEventListener("change",c),h==null||h.addEventListener("reset",s),()=>{d.removeEventListener("invalid",o),d.removeEventListener("change",c),h==null||h.removeEventListener("reset",s),h&&(h.reset=m)}},[n,o,c,s,r])}function rZ(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 iZ(e){return{isInvalid:!e.validity.valid,validationDetails:rZ(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function aZ(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function pm(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=Kr(t);let s=Kr(),o={};n?(r=r?`${s} ${r}`:s,o={id:s,htmlFor:a==="label"?t:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let c=Ul({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:o,fieldProps:c}}function mm(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:s}=pm(e),o=Kl([!!t,!!n,r,i]),c=Kl([!!t,!!n,r,i]);return s=Jt(s,{"aria-describedby":[o,c,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:s,descriptionProps:{id:o},errorMessageProps:{id:c}}}const sZ=0,oZ=100,uZ=1;function lZ(e){const{isDisabled:t=!1,minValue:n=sZ,maxValue:r=oZ,numberFormatter:i,step:a=uZ,orientation:s="horizontal"}=e;let o=I.useMemo(()=>{let ue=(r-n)/10;return ue=Gc(ue,0,ue+a,a),Math.max(ue,a)},[a,r,n]),c=I.useCallback(ue=>ue==null?void 0:ue.map((Ae,_e)=>{let Le=_e===0?n:ue[_e-1],Ye=_e===ue.length-1?r:ue[_e+1];return Gc(Ae,Le,Ye,a)}),[n,r,a]),d=I.useMemo(()=>c(vD(e.value)),[e.value,c]),h=I.useMemo(()=>{var ue;return c((ue=vD(e.defaultValue))!==null&&ue!==void 0?ue:[n])},[e.defaultValue,n,c]),m=yD(e.value,e.defaultValue,e.onChange),g=yD(e.value,e.defaultValue,e.onChangeEnd);const[b,w]=wi(d,h,m);let[x]=I.useState(b);const[A,C]=I.useState(new Array(b.length).fill(!1)),E=I.useRef(new Array(b.length).fill(!0)),[S,R]=I.useState(void 0),_=I.useRef(b),F=I.useRef(A);let z=ue=>{_.current=ue,w(ue)},ie=ue=>{F.current=ue,C(ue)};function ge(ue){return(ue-n)/(r-n)}function oe(ue){return ue===0?n:b[ue-1]}function O(ue){return ue===b.length-1?r:b[ue+1]}function we(ue){return E.current[ue]}function Se(ue,Ae){E.current[ue]=Ae}function U(ue,Ae){if(t||!we(ue))return;const _e=oe(ue),Le=O(ue);Ae=Gc(Ae,_e,Le,a);let Ye=gD(_.current,ue,Ae);z(Ye)}function ee(ue,Ae){if(t||!we(ue))return;Ae&&(_.current=b);const _e=F.current[ue];F.current=gD(F.current,ue,Ae),ie(F.current),g&&_e&&!F.current.some(Boolean)&&g(_.current)}function K(ue){return i.format(ue)}function k(ue,Ae){U(ue,te(Ae))}function N(ue){return Math.round((ue-n)/a)*a+n}function te(ue){const Ae=ue*(r-n)+n;return ql(N(Ae),n,r)}function j(ue,Ae=1){let _e=Math.max(Ae,a);U(ue,Gc(b[ue]+_e,n,r,a))}function ce(ue,Ae=1){let _e=Math.max(Ae,a);U(ue,Gc(b[ue]-_e,n,r,a))}return{values:b,defaultValues:e.defaultValue!==void 0?h:x,getThumbValue:ue=>b[ue],setThumbValue:U,setThumbPercent:k,isThumbDragging:ue=>A[ue],setThumbDragging:ee,focusedThumb:S,setFocusedThumb:R,getThumbPercent:ue=>ge(b[ue]),getValuePercent:ge,getThumbValueLabel:ue=>K(b[ue]),getFormattedValue:K,getThumbMinValue:oe,getThumbMaxValue:O,getPercentValue:te,isThumbEditable:we,setThumbEditable:Se,incrementThumb:j,decrementThumb:ce,step:a,pageSize:o,orientation:s,isDisabled:t}}function gD(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function vD(e){if(e!=null)return Array.isArray(e)?e:[e]}function yD(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const bD={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 cZ(e={}){let{style:t,isFocusable:n}=e,[r,i]=I.useState(!1),{focusWithinProps:a}=rc({isDisabled:!n,onFocusWithinChange:o=>i(o)}),s=I.useMemo(()=>r?t:t?{...bD,...t}:bD,[r]);return{visuallyHiddenProps:{...a,style:s}}}function fZ(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:s}=cZ(e);return fe.default.createElement(n,Jt(a,s),t)}const p3=new WeakMap;function o1(e,t){let n=p3.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function dZ(e,t,n){let{labelProps:r,fieldProps:i}=pm(e),a=e.orientation==="vertical";var s;p3.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:o}=Tr(),{addGlobalListener:c,removeGlobalListener:d}=Eo();const h=I.useRef(null),m=o==="rtl",g=I.useRef(null),{moveProps:b}=N5({onMoveStart(){g.current=null},onMove({deltaX:C,deltaY:E}){if(!n.current)return;let{height:S,width:R}=n.current.getBoundingClientRect(),_=a?S:R;g.current==null&&h.current!=null&&(g.current=t.getThumbPercent(h.current)*_);let F=a?E:C;if((a||m)&&(F=-F),g.current+=F,h.current!=null&&n.current){const z=ql(g.current/_,0,1);t.setThumbPercent(h.current,z)}},onMoveEnd(){h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null)}});let w=I.useRef(void 0),x=(C,E,S,R)=>{if(n.current&&!e.isDisabled&&t.values.every((_,F)=>!t.isThumbDragging(F))){let{height:_,width:F,top:z,left:ie}=n.current.getBoundingClientRect(),ge=a?_:F,Se=((a?R:S)-(a?z:ie))/ge;(o==="rtl"||a)&&(Se=1-Se);let U=t.getPercentValue(Se),ee,K=t.values.findIndex(k=>U-k<0);if(K===0)ee=K;else if(K===-1)ee=t.values.length-1;else{let k=t.values[K-1],N=t.values[K];Math.abs(k-U)<Math.abs(N-U)?ee=K-1:ee=K}ee>=0&&t.isThumbEditable(ee)?(C.preventDefault(),h.current=ee,t.setFocusedThumb(ee),w.current=E,t.setThumbDragging(h.current,!0),t.setThumbValue(ee,U),c(window,"mouseup",A,!1),c(window,"touchend",A,!1),c(window,"pointerup",A,!1)):h.current=null}},A=C=>{var E,S;((S=C.pointerId)!==null&&S!==void 0?S:(E=C.changedTouches)===null||E===void 0?void 0:E[0].identifier)===w.current&&(h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null),d(window,"mouseup",A,!1),d(window,"touchend",A,!1),d(window,"pointerup",A,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var C;(C=document.getElementById(o1(t,0)))===null||C===void 0||C.focus(),V5("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:Jt({onMouseDown(C){C.button!==0||C.altKey||C.ctrlKey||C.metaKey||x(C,void 0,C.clientX,C.clientY)},onPointerDown(C){C.pointerType==="mouse"&&(C.button!==0||C.altKey||C.ctrlKey||C.metaKey)||x(C,C.pointerId,C.clientX,C.clientY)},onTouchStart(C){x(C,C.changedTouches[0].identifier,C.changedTouches[0].clientX,C.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},b),outputProps:{htmlFor:t.values.map((C,E)=>o1(t,E)).join(" "),"aria-live":"off"}}}function hZ(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:a,trackRef:s,inputRef:o,orientation:c=t.orientation,name:d,form:h}=e,m=e.isDisabled||t.isDisabled,g=c==="vertical",{direction:b}=Tr(),{addGlobalListener:w,removeGlobalListener:x}=Eo(),A=p3.get(t);var C;const{labelProps:E,fieldProps:S}=pm({...e,id:o1(t,n),"aria-labelledby":`${A.id} ${(C=e["aria-labelledby"])!==null&&C!==void 0?C:""}`.trim()}),R=t.values[n],_=I.useCallback(()=>{o.current&&xi(o.current)},[o]),F=t.focusedThumb===n;I.useEffect(()=>{F&&_()},[F,_]);let z=b==="rtl",ie=I.useRef(null),{keyboardProps:ge}=B5({onKeyDown(k){let{getThumbMaxValue:N,getThumbMinValue:te,decrementThumb:j,incrementThumb:ce,setThumbValue:ue,setThumbDragging:Ae,pageSize:_e}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(k.key)){k.continuePropagation();return}switch(k.preventDefault(),Ae(n,!0),k.key){case"PageUp":ce(n,_e);break;case"PageDown":j(n,_e);break;case"Home":ue(n,te(n));break;case"End":ue(n,N(n));break}Ae(n,!1)}}),{moveProps:oe}=N5({onMoveStart(){ie.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:k,deltaY:N,pointerType:te,shiftKey:j}){const{getThumbPercent:ce,setThumbPercent:ue,decrementThumb:Ae,incrementThumb:_e,step:Le,pageSize:Ye}=t;if(!s.current)return;let{width:Qe,height:Ue}=s.current.getBoundingClientRect(),Ge=g?Ue:Qe;if(ie.current==null&&(ie.current=ce(n)*Ge),te==="keyboard")k>0&&z||k<0&&!z||N>0?Ae(n,j?Ye:Le):_e(n,j?Ye:Le);else{let Ie=g?N:k;(g||z)&&(Ie=-Ie),ie.current+=Ie,ue(n,ql(ie.current/Ge,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!m);const{focusableProps:O}=Q4(Jt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),o);let we=I.useRef(void 0),Se=k=>{_(),we.current=k,t.setThumbDragging(n,!0),w(window,"mouseup",U,!1),w(window,"touchend",U,!1),w(window,"pointerup",U,!1)},U=k=>{var N,te;((te=k.pointerId)!==null&&te!==void 0?te:(N=k.changedTouches)===null||N===void 0?void 0:N[0].identifier)===we.current&&(_(),t.setThumbDragging(n,!1),x(window,"mouseup",U,!1),x(window,"touchend",U,!1),x(window,"pointerup",U,!1))},ee=t.getThumbPercent(n);(g||b==="rtl")&&(ee=1-ee);let K=m?{}:Jt(ge,oe,{onMouseDown:k=>{k.button!==0||k.altKey||k.ctrlKey||k.metaKey||Se()},onPointerDown:k=>{k.button!==0||k.altKey||k.ctrlKey||k.metaKey||Se(k.pointerId)},onTouchStart:k=>{Se(k.changedTouches[0].identifier)}});return H4(o,t.defaultValues[n],k=>{t.setThumbValue(n,k)}),{inputProps:Jt(O,S,{type:"range",tabIndex:m?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:R,name:d,form:h,disabled:m,"aria-orientation":c,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":a||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[A["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[A["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:k=>{t.setThumbValue(n,parseFloat(k.target.value))}}),thumbProps:{...K,style:{position:"absolute",[g?"top":"left"]:`${ee*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:E,isDragging:t.isThumbDragging(n),isDisabled:m,isFocused:F}}function pZ(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:s="text",validationBehavior:o="aria"}=e,[c,d]=wi(e.value,e.defaultValue||"",e.onChange),{focusableProps:h}=Q4(e,t),m=cd({...e,value:c}),{isInvalid:g,validationErrors:b,validationDetails:w}=m.displayValidation,{labelProps:x,fieldProps:A,descriptionProps:C,errorMessageProps:E}=mm({...e,isInvalid:g,errorMessage:e.errorMessage||b}),S=qs(e,{labelable:!0});const R={type:s,pattern:e.pattern};let[_]=I.useState(c);var F;return H4(t,(F=e.defaultValue)!==null&&F!==void 0?F:_,d),f6(e,m,t),I.useEffect(()=>{if(t.current instanceof es(t.current).HTMLTextAreaElement){let z=t.current;Object.defineProperty(z,"defaultValue",{get:()=>z.value,set:()=>{},configurable:!0})}},[t]),{labelProps:x,inputProps:Jt(S,n==="input"?R:void 0,{disabled:r,readOnly:a,required:i&&o==="native","aria-required":i&&o==="aria"||void 0,"aria-invalid":g||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:c,onChange:z=>d(z.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(fe.default.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,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,...h,...A}),descriptionProps:C,errorMessageProps:E,isInvalid:g,validationErrors:b,validationDetails:w}}var d6={};d6={Empty:"فارغ"};var h6={};h6={Empty:"Изпразни"};var p6={};p6={Empty:"Prázdné"};var m6={};m6={Empty:"Tom"};var g6={};g6={Empty:"Leer"};var v6={};v6={Empty:"Άδειο"};var y6={};y6={Empty:"Empty"};var b6={};b6={Empty:"Vacío"};var $6={};$6={Empty:"Tühjenda"};var x6={};x6={Empty:"Tyhjä"};var w6={};w6={Empty:"Vide"};var C6={};C6={Empty:"ריק"};var E6={};E6={Empty:"Prazno"};var S6={};S6={Empty:"Üres"};var D6={};D6={Empty:"Vuoto"};var A6={};A6={Empty:"空"};var T6={};T6={Empty:"비어 있음"};var P6={};P6={Empty:"Tuščias"};var _6={};_6={Empty:"Tukšs"};var M6={};M6={Empty:"Tom"};var F6={};F6={Empty:"Leeg"};var R6={};R6={Empty:"Pusty"};var k6={};k6={Empty:"Vazio"};var O6={};O6={Empty:"Vazio"};var I6={};I6={Empty:"Gol"};var L6={};L6={Empty:"Не заполнено"};var V6={};V6={Empty:"Prázdne"};var B6={};B6={Empty:"Prazen"};var N6={};N6={Empty:"Prazno"};var j6={};j6={Empty:"Tomt"};var K6={};K6={Empty:"Boş"};var U6={};U6={Empty:"Пусто"};var q6={};q6={Empty:"空"};var z6={};z6={Empty:"空白"};var W6={};W6={"ar-AE":d6,"bg-BG":h6,"cs-CZ":p6,"da-DK":m6,"de-DE":g6,"el-GR":v6,"en-US":y6,"es-ES":b6,"et-EE":$6,"fi-FI":x6,"fr-FR":w6,"he-IL":C6,"hr-HR":E6,"hu-HU":S6,"it-IT":D6,"ja-JP":A6,"ko-KR":T6,"lt-LT":P6,"lv-LV":_6,"nb-NO":M6,"nl-NL":F6,"pl-PL":R6,"pt-BR":k6,"pt-PT":O6,"ro-RO":I6,"ru-RU":L6,"sk-SK":V6,"sl-SI":B6,"sr-SP":N6,"sv-SE":j6,"tr-TR":K6,"uk-UA":U6,"zh-CN":q6,"zh-TW":z6};function mZ(e){return e&&e.__esModule?e.default:e}function gZ(e){const t=I.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:a,isDisabled:s,isReadOnly:o,isRequired:c,onIncrement:d,onIncrementPage:h,onDecrement:m,onDecrementPage:g,onDecrementToMin:b,onIncrementToMax:w}=e;const x=rs(mZ(W6),"@react-aria/spinbutton"),A=()=>clearTimeout(t.current);I.useEffect(()=>()=>A(),[]);let C=O=>{if(!(O.ctrlKey||O.metaKey||O.shiftKey||O.altKey||o||O.nativeEvent.isComposing))switch(O.key){case"PageUp":if(h){O.preventDefault(),h==null||h();break}case"ArrowUp":case"Up":d&&(O.preventDefault(),d==null||d());break;case"PageDown":if(g){O.preventDefault(),g==null||g();break}case"ArrowDown":case"Down":m&&(O.preventDefault(),m==null||m());break;case"Home":b&&(O.preventDefault(),b==null||b());break;case"End":w&&(O.preventDefault(),w==null||w());break}},E=I.useRef(!1),S=()=>{E.current=!0},R=()=>{E.current=!1},_=r===""?x.format("Empty"):(r||`${n}`).replace("-","−");I.useEffect(()=>{E.current&&(WY("assertive"),kl(_,"assertive"))},[_]);const F=Mn(O=>{A(),d==null||d(),t.current=window.setTimeout(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&F(60)},O)}),z=Mn(O=>{A(),m==null||m(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&z(60)},O)});let ie=O=>{O.preventDefault()},{addGlobalListener:ge,removeAllGlobalListeners:oe}=Eo();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":_,"aria-valuemin":i,"aria-valuemax":a,"aria-disabled":s||void 0,"aria-readonly":o||void 0,"aria-required":c||void 0,onKeyDown:C,onFocus:S,onBlur:R},incrementButtonProps:{onPressStart:()=>{F(400),ge(window,"contextmenu",ie)},onPressEnd:()=>{A(),oe()},onFocus:S,onBlur:R},decrementButtonProps:{onPressStart:()=>{z(400),ge(window,"contextmenu",ie)},onPressEnd:()=>{A(),oe()},onFocus:S,onBlur:R}}}var H6={};H6={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 G6={};G6={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 Y6={};Y6={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 Z6={};Z6={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 X6={};X6={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 J6={};J6={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 Q6={};Q6={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 eM={};eM={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 tM={};tM={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 nM={};nM={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 rM={};rM={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 iM={};iM={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 aM={};aM={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 sM={};sM={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 oM={};oM={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 uM={};uM={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 lM={};lM={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 cM={};cM={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 fM={};fM={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 dM={};dM={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 hM={};hM={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 pM={};pM={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 mM={};mM={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 gM={};gM={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 vM={};vM={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 yM={};yM={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 bM={};bM={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 $M={};$M={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 xM={};xM={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 wM={};wM={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 CM={};CM={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 EM={};EM={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 SM={};SM={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 DM={};DM={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 AM={};AM={"ar-AE":H6,"bg-BG":G6,"cs-CZ":Y6,"da-DK":Z6,"de-DE":X6,"el-GR":J6,"en-US":Q6,"es-ES":eM,"et-EE":tM,"fi-FI":nM,"fr-FR":rM,"he-IL":iM,"hr-HR":aM,"hu-HU":sM,"it-IT":oM,"ja-JP":uM,"ko-KR":lM,"lt-LT":cM,"lv-LV":fM,"nb-NO":dM,"nl-NL":hM,"pl-PL":pM,"pt-BR":mM,"pt-PT":gM,"ro-RO":vM,"ru-RU":yM,"sk-SK":bM,"sl-SI":$M,"sr-SP":xM,"sv-SE":wM,"tr-TR":CM,"uk-UA":EM,"zh-CN":SM,"zh-TW":DM};const Wa={top:"top",bottom:"top",left:"left",right:"left"},vp={top:"bottom",bottom:"top",left:"right",right:"left"},vZ={top:"left",left:"top"},u1={top:"height",left:"width"},TM={width:"totalWidth",height:"totalHeight"},hh={};let cr=typeof document<"u"?window.visualViewport:null;function $D(e){let t=0,n=0,r=0,i=0,a=0,s=0,o={};var c;let d=((c=cr==null?void 0:cr.scale)!==null&&c!==void 0?c:1)>1;if(e.tagName==="BODY"){let w=document.documentElement;r=w.clientWidth,i=w.clientHeight;var h;t=(h=cr==null?void 0:cr.width)!==null&&h!==void 0?h:r;var m;n=(m=cr==null?void 0:cr.height)!==null&&m!==void 0?m:i,o.top=w.scrollTop||e.scrollTop,o.left=w.scrollLeft||e.scrollLeft,cr&&(a=cr.offsetTop,s=cr.offsetLeft)}else({width:t,height:n,top:a,left:s}=Ol(e)),o.top=e.scrollTop,o.left=e.scrollLeft,r=t,i=n;if(z4()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){o.top=0,o.left=0;var g;a=(g=cr==null?void 0:cr.pageTop)!==null&&g!==void 0?g:0;var b;s=(b=cr==null?void 0:cr.pageLeft)!==null&&b!==void 0?b:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:o,top:a,left:s}}function yZ(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function xD(e,t,n,r,i,a,s){var o;let c=(o=i.scroll[e])!==null&&o!==void 0?o:0,d=r[u1[e]],h=r.scroll[Wa[e]]+a,m=d+r.scroll[Wa[e]]-a,g=t-c+s[e]-r[Wa[e]],b=t-c+n+s[e]-r[Wa[e]];return g<h?h-g:b>m?Math.max(m-b,h-g):0}function bZ(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 wD(e){if(hh[e])return hh[e];let[t,n]=e.split(" "),r=Wa[t]||"right",i=vZ[r];Wa[n]||(n="center");let a=u1[r],s=u1[i];return hh[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:s},hh[e]}function w0(e,t,n,r,i,a,s,o,c,d){let{placement:h,crossPlacement:m,axis:g,crossAxis:b,size:w,crossSize:x}=r,A={};var C;A[b]=(C=e[b])!==null&&C!==void 0?C:0;var E,S,R,_;m==="center"?A[b]+=(((E=e[x])!==null&&E!==void 0?E:0)-((S=n[x])!==null&&S!==void 0?S:0))/2:m!==b&&(A[b]+=((R=e[x])!==null&&R!==void 0?R:0)-((_=n[x])!==null&&_!==void 0?_:0)),A[b]+=a;const F=e[b]-n[x]+c+d,z=e[b]+e[x]-c-d;if(A[b]=ql(A[b],F,z),h===g){const ie=o?s[w]:t[TM[w]];A[vp[g]]=Math.floor(ie-e[g]+i)}else A[g]=Math.floor(e[g]+e[w]+i);return A}function $Z(e,t,n,r,i,a,s,o){const c=r?n.height:t[TM.height];var d;let h=e.top!=null?n.top+e.top:n.top+(c-((d=e.bottom)!==null&&d!==void 0?d:0)-s);var m,g,b,w,x,A;let C=o!=="top"?Math.max(0,t.height+t.top+((m=t.scroll.top)!==null&&m!==void 0?m:0)-h-(((g=i.top)!==null&&g!==void 0?g:0)+((b=i.bottom)!==null&&b!==void 0?b:0)+a)):Math.max(0,h+s-(t.top+((w=t.scroll.top)!==null&&w!==void 0?w:0))-(((x=i.top)!==null&&x!==void 0?x:0)+((A=i.bottom)!==null&&A!==void 0?A:0)+a));return Math.min(t.height-a*2,C)}function CD(e,t,n,r,i,a){let{placement:s,axis:o,size:c}=a;var d,h;if(s===o)return Math.max(0,n[o]-e[o]-((d=e.scroll[o])!==null&&d!==void 0?d:0)+t[o]-((h=r[o])!==null&&h!==void 0?h:0)-r[vp[o]]-i);var m;return Math.max(0,e[c]+e[o]+e.scroll[o]-t[o]-n[o]-n[c]-((m=r[o])!==null&&m!==void 0?m:0)-r[vp[o]]-i)}function xZ(e,t,n,r,i,a,s,o,c,d,h,m,g,b,w,x){let A=wD(e),{size:C,crossAxis:E,crossSize:S,placement:R,crossPlacement:_}=A,F=w0(t,o,n,A,h,m,d,g,w,x),z=h,ie=CD(o,d,t,i,a+h,A);if(s&&r[C]>ie){let _e=wD(`${vp[R]} ${_}`),Le=w0(t,o,n,_e,h,m,d,g,w,x);CD(o,d,t,i,a+h,_e)>ie&&(A=_e,F=Le,z=h)}let ge="bottom";A.axis==="top"?A.placement==="top"?ge="top":A.placement==="bottom"&&(ge="bottom"):A.crossAxis==="top"&&(A.crossPlacement==="top"?ge="bottom":A.crossPlacement==="bottom"&&(ge="top"));let oe=xD(E,F[E],n[S],o,c,a,d);F[E]+=oe;let O=$Z(F,o,d,g,i,a,n.height,ge);b&&b<O&&(O=b),n.height=Math.min(n.height,O),F=w0(t,o,n,A,z,m,d,g,w,x),oe=xD(E,F[E],n[S],o,c,a,d),F[E]+=oe;let we={},Se=t[E]+.5*t[S]-F[E]-i[Wa[E]];const U=w/2+x;var ee,K,k,N;const te=Wa[E]==="left"?((ee=i.left)!==null&&ee!==void 0?ee:0)+((K=i.right)!==null&&K!==void 0?K:0):((k=i.top)!==null&&k!==void 0?k:0)+((N=i.bottom)!==null&&N!==void 0?N:0),j=n[S]-te-w/2-x,ce=t[E]+w/2-(F[E]+i[Wa[E]]),ue=t[E]+t[S]-w/2-(F[E]+i[Wa[E]]),Ae=ql(Se,ce,ue);return we[E]=ql(Ae,U,j),{position:F,maxHeight:O,arrowOffsetLeft:we.left,arrowOffsetTop:we.top,placement:A.placement}}function wZ(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:s,boundaryElement:o,offset:c,crossOffset:d,maxHeight:h,arrowSize:m=0,arrowBoundaryOffset:g=0}=e,b=r instanceof HTMLElement?CZ(r):document.documentElement,w=b===document.documentElement;const x=window.getComputedStyle(b).position;let A=!!x&&x!=="static",C=w?Ol(n):ED(n,b);if(!w){let{marginTop:we,marginLeft:Se}=window.getComputedStyle(n);C.top+=parseInt(we,10)||0,C.left+=parseInt(Se,10)||0}let E=Ol(r),S=bZ(r);var R,_;E.width+=((R=S.left)!==null&&R!==void 0?R:0)+((_=S.right)!==null&&_!==void 0?_:0);var F,z;E.height+=((F=S.top)!==null&&F!==void 0?F:0)+((z=S.bottom)!==null&&z!==void 0?z:0);let ie=yZ(i),ge=$D(o),oe=$D(b),O=o.tagName==="BODY"?Ol(b):ED(b,o);return b.tagName==="HTML"&&o.tagName==="BODY"&&(oe.scroll.top=0,oe.scroll.left=0),xZ(t,C,E,ie,S,a,s,ge,oe,O,c,d,A,h,m,g)}function Ol(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:a,scrollLeft:s,clientTop:o,clientLeft:c}=document.documentElement;return{top:t+a-o,left:n+s-c,width:r,height:i}}function ED(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:a,width:s,height:o}=e.getBoundingClientRect();r={top:i,left:a,width:s,height:o}}else{r=Ol(e);let i=Ol(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 CZ(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!SD(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!SD(t);)t=t.parentElement;return t||document.documentElement}function SD(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 PM=new WeakMap;function EZ(e){let{triggerRef:t,isOpen:n,onClose:r}=e;I.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 o=r||PM.get(t.current);o&&o()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let qn=typeof document<"u"?window.visualViewport:null;function SZ(e){let{direction:t}=Tr(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:a=i,placement:s="bottom",containerPadding:o=12,shouldFlip:c=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:h=0,crossOffset:m=0,shouldUpdatePosition:g=!0,isOpen:b=!0,onClose:w,maxHeight:x,arrowBoundaryOffset:A=0}=e,[C,E]=I.useState(null),S=[g,s,i.current,r.current,a.current,o,c,d,h,m,b,t,x,A,n],R=I.useRef(qn==null?void 0:qn.scale);I.useEffect(()=>{b&&(R.current=qn==null?void 0:qn.scale)},[b]);let _=I.useCallback(()=>{if(g===!1||!b||!i.current||!r.current||!d||(qn==null?void 0:qn.scale)!==R.current)return;let oe=null;if(a.current&&a.current.contains(document.activeElement)){var O;let N=(O=document.activeElement)===null||O===void 0?void 0:O.getBoundingClientRect(),te=a.current.getBoundingClientRect();var we;if(oe={type:"top",offset:((we=N==null?void 0:N.top)!==null&&we!==void 0?we:0)-te.top},oe.offset>te.height/2){oe.type="bottom";var Se;oe.offset=((Se=N==null?void 0:N.bottom)!==null&&Se!==void 0?Se:0)-te.bottom}}let U=i.current;if(!x&&i.current){var ee;U.style.top="0px",U.style.bottom="";var K;U.style.maxHeight=((K=(ee=window.visualViewport)===null||ee===void 0?void 0:ee.height)!==null&&K!==void 0?K:window.innerHeight)+"px"}let k=wZ({placement:AZ(s,t),overlayNode:i.current,targetNode:r.current,scrollNode:a.current||i.current,padding:o,shouldFlip:c,boundaryElement:d,offset:h,crossOffset:m,maxHeight:x,arrowSize:n,arrowBoundaryOffset:A});if(k.position){if(U.style.top="",U.style.bottom="",U.style.left="",U.style.right="",Object.keys(k.position).forEach(N=>U.style[N]=k.position[N]+"px"),U.style.maxHeight=k.maxHeight!=null?k.maxHeight+"px":"",oe&&document.activeElement&&a.current){let N=document.activeElement.getBoundingClientRect(),te=a.current.getBoundingClientRect(),j=N[oe.type]-te[oe.type];a.current.scrollTop+=j-oe.offset}E(k)}},S);mn(_,S),DZ(_),SS({ref:i,onResize:_}),SS({ref:r,onResize:_});let F=I.useRef(!1);mn(()=>{let oe,O=()=>{F.current=!0,clearTimeout(oe),oe=setTimeout(()=>{F.current=!1},500),_()},we=()=>{F.current&&O()};return qn==null||qn.addEventListener("resize",O),qn==null||qn.addEventListener("scroll",we),()=>{qn==null||qn.removeEventListener("resize",O),qn==null||qn.removeEventListener("scroll",we)}},[_]);let z=I.useCallback(()=>{F.current||w==null||w()},[w,F]);EZ({triggerRef:r,isOpen:b,onClose:w&&z});var ie,ge;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...C==null?void 0:C.position,maxHeight:(ie=C==null?void 0:C.maxHeight)!==null&&ie!==void 0?ie:"100vh"}},placement:(ge=C==null?void 0:C.placement)!==null&&ge!==void 0?ge:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:C==null?void 0:C.arrowOffsetLeft,top:C==null?void 0:C.arrowOffsetTop}},updatePosition:_}}function DZ(e){mn(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function AZ(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Ba=[];function TZ(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:o}=e;I.useEffect(()=>{if(i&&!Ba.includes(t))return Ba.push(t),()=>{let w=Ba.indexOf(t);w>=0&&Ba.splice(w,1)}},[i,t]);let c=()=>{Ba[Ba.length-1]===t&&n&&n()},d=w=>{(!o||o(w.target))&&Ba[Ba.length-1]===t&&(w.stopPropagation(),w.preventDefault())},h=w=>{(!o||o(w.target))&&(Ba[Ba.length-1]===t&&(w.stopPropagation(),w.preventDefault()),c())},m=w=>{w.key==="Escape"&&!s&&!w.nativeEvent.isComposing&&(w.stopPropagation(),w.preventDefault(),c())};pG({ref:t,onInteractOutside:a&&i?h:void 0,onInteractOutsideStart:d});let{focusWithinProps:g}=rc({isDisabled:!r,onBlurWithin:w=>{!w.relatedTarget||BY(w.relatedTarget)||(!o||o(w.relatedTarget))&&(n==null||n())}}),b=w=>{w.target===w.currentTarget&&w.preventDefault()};return{overlayProps:{onKeyDown:m,...g},underlayProps:{onPointerDown:b}}}function PZ(e,t,n){let{type:r}=e,{isOpen:i}=t;I.useEffect(()=>{n&&n.current&&PM.set(n.current,t.close)});let a;r==="menu"?a=!0:r==="listbox"&&(a="listbox");let s=Kr();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?s:void 0,onPress:t.toggle},overlayProps:{id:s}}}const C0=typeof document<"u"&&window.visualViewport,_Z=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ph=0,E0;function MZ(e={}){let{isDisabled:t}=e;mn(()=>{if(!t)return ph++,ph===1&&(td()?E0=RZ():E0=FZ()),()=>{ph--,ph===0&&E0()}},[t])}function FZ(){let e=window.innerWidth-document.documentElement.clientWidth;return $o(e>0&&("scrollbarGutter"in document.documentElement.style?uu(document.documentElement,"scrollbarGutter","stable"):uu(document.documentElement,"paddingRight",`${e}px`)),uu(document.documentElement,"overflow","hidden"))}function RZ(){let e,t,n=d=>{e=sm(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=uu(e,"overscrollBehavior","contain"))},r=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()},i=()=>{t&&t()},a=d=>{let h=d.target;kZ(h)&&(o(),h.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{h.style.transform="",C0&&(C0.height<window.innerHeight?requestAnimationFrame(()=>{DD(h)}):C0.addEventListener("resize",()=>DD(h),{once:!0}))}))},s=null,o=()=>{if(s)return;let d=()=>{window.scrollTo(0,0)},h=window.pageXOffset,m=window.pageYOffset;s=$o(Xc(window,"scroll",d),uu(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),uu(document.documentElement,"overflow","hidden"),uu(document.body,"marginTop",`-${m}px`),()=>{window.scrollTo(h,m)}),window.scrollTo(0,0)},c=$o(Xc(document,"touchstart",n,{passive:!1,capture:!0}),Xc(document,"touchmove",r,{passive:!1,capture:!0}),Xc(document,"touchend",i,{passive:!1,capture:!0}),Xc(document,"focus",a,!0));return()=>{t==null||t(),s==null||s(),c()}}function uu(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Xc(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function DD(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=sm(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 kZ(e){return e instanceof HTMLInputElement&&!_Z.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const OZ=I.createContext({});function IZ(){var e;return(e=I.useContext(OZ))!==null&&e!==void 0?e:{}}const LZ=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let Jc=new WeakMap,ei=[];function _M(e,t){let n=es(e==null?void 0:e[0]),r=t instanceof n.Element?{root:t}:t;var i;let a=(i=r==null?void 0:r.root)!==null&&i!==void 0?i:document.body,s=(r==null?void 0:r.shouldUseInert)&&LZ,o=new Set(e),c=new Set,d=x=>s&&x instanceof n.HTMLElement?x.inert:x.getAttribute("aria-hidden")==="true",h=(x,A)=>{s&&x instanceof n.HTMLElement?x.inert=A:A?x.setAttribute("aria-hidden","true"):x.removeAttribute("aria-hidden")},m=x=>{for(let S of x.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))o.add(S);let A=S=>{if(c.has(S)||o.has(S)||S.parentElement&&c.has(S.parentElement)&&S.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let R of o)if(S.contains(R))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},C=document.createTreeWalker(x,NodeFilter.SHOW_ELEMENT,{acceptNode:A}),E=A(x);if(E===NodeFilter.FILTER_ACCEPT&&g(x),E!==NodeFilter.FILTER_REJECT){let S=C.nextNode();for(;S!=null;)g(S),S=C.nextNode()}},g=x=>{var A;let C=(A=Jc.get(x))!==null&&A!==void 0?A:0;d(x)&&C===0||(C===0&&h(x,!0),c.add(x),Jc.set(x,C+1))};ei.length&&ei[ei.length-1].disconnect(),m(a);let b=new MutationObserver(x=>{for(let A of x)if(A.type==="childList"&&![...o,...c].some(C=>C.contains(A.target)))for(let C of A.addedNodes)(C instanceof HTMLElement||C instanceof SVGElement)&&(C.dataset.liveAnnouncer==="true"||C.dataset.reactAriaTopLayer==="true")?o.add(C):C instanceof Element&&m(C)});b.observe(a,{childList:!0,subtree:!0});let w={visibleNodes:o,hiddenNodes:c,observe(){b.observe(a,{childList:!0,subtree:!0})},disconnect(){b.disconnect()}};return ei.push(w),()=>{b.disconnect();for(let x of c){let A=Jc.get(x);A!=null&&(A===1?(h(x,!1),Jc.delete(x)):Jc.set(x,A-1))}w===ei[ei.length-1]?(ei.pop(),ei.length&&ei[ei.length-1].observe()):ei.splice(ei.indexOf(w),1)}}function VZ(e){let t=ei[ei.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function BZ(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:s,shouldCloseOnInteractOutside:o,...c}=e,d=c.trigger==="SubmenuTrigger",{overlayProps:h,underlayProps:m}=TZ({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||d,isKeyboardDismissDisabled:s,shouldCloseOnInteractOutside:o},i??r),{overlayProps:g,arrowProps:b,placement:w}=SZ({...c,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!d?t.close:null});return MZ({isDisabled:a||!t.isOpen}),I.useEffect(()=>{if(t.isOpen&&r.current){var x,A;return a?VZ((x=i==null?void 0:i.current)!==null&&x!==void 0?x:r.current):_M([(A=i==null?void 0:i.current)!==null&&A!==void 0?A:r.current],{shouldUseInert:!0})}},[a,t.isOpen,r,i]),{popoverProps:Jt(h,g),arrowProps:b,underlayProps:m,placement:w}}const MM=fe.default.createContext(null);function NZ(e){let t=U4(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=I.useState(!1),s=I.useMemo(()=>({contain:i,setContain:a}),[i,a]),{getContainer:o}=IZ();if(!e.portalContainer&&o&&(n=o()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=fe.default.createElement(OY,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},c)),c=fe.default.createElement(MM.Provider,{value:s},fe.default.createElement(fG,null,c)),Os.default.createPortal(c,n)}function jZ(){let e=I.useContext(MM),t=e==null?void 0:e.setContain;mn(()=>{t==null||t(!0)},[t])}const gm=new WeakMap;function KZ(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function FM(e,t){let n=gm.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${KZ(t)}`}function l1(e){return Ah()?e.altKey:e.ctrlKey}function Rh(e,t){var n,r;let i=`[data-key="${CSS.escape(String(t))}"]`,a=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return a&&(i=`[data-collection="${CSS.escape(a)}"]${i}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(i)}const RM=new WeakMap;function UZ(e){let t=Kr();return RM.set(e,t),t}function qZ(e){return RM.get(e)}const zZ=1e3;function WZ(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=I.useRef({search:"",timeout:void 0}).current,a=s=>{let o=HZ(s.key);if(!(!o||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target)||i.search.length===0&&o===" ")){if(o===" "&&i.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),i.search+=o,t.getKeyForSearch!=null){let c=t.getKeyForSearch(i.search,n.focusedKey);c==null&&(c=t.getKeyForSearch(i.search)),c!=null&&(n.setFocusedKey(c),r&&r(c))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},zZ)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:void 0}}}function HZ(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function kM(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:s=!1,disallowSelectAll:o=!1,escapeKeyBehavior:c="clearSelection",selectOnFocus:d=t.selectionBehavior==="replace",disallowTypeAhead:h=!1,shouldUseVirtualFocus:m,allowsTabNavigation:g=!1,isVirtualized:b,scrollRef:w=r,linkBehavior:x="action"}=e,{direction:A}=Tr(),C=am(),E=k=>{var N;if(k.altKey&&k.key==="Tab"&&k.preventDefault(),!(!((N=r.current)===null||N===void 0)&&N.contains(k.target)))return;const te=(Te,He)=>{if(Te!=null){if(t.isLink(Te)&&x==="selection"&&d&&!l1(k)){kp.flushSync(()=>{t.setFocusedKey(Te,He)});let ht=Rh(r,Te),Ht=t.getItemProps(Te);ht&&C.open(ht,k,Ht.href,Ht.routerOptions);return}if(t.setFocusedKey(Te,He),t.isLink(Te)&&x==="override")return;k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Te):d&&!l1(k)&&t.replaceSelection(Te)}};switch(k.key){case"ArrowDown":if(n.getKeyBelow){var j,ce,ue;let Te=t.focusedKey!=null?(j=n.getKeyBelow)===null||j===void 0?void 0:j.call(n,t.focusedKey):(ce=n.getFirstKey)===null||ce===void 0?void 0:ce.call(n);Te==null&&a&&(Te=(ue=n.getFirstKey)===null||ue===void 0?void 0:ue.call(n,t.focusedKey)),Te!=null&&(k.preventDefault(),te(Te))}break;case"ArrowUp":if(n.getKeyAbove){var Ae,_e,Le;let Te=t.focusedKey!=null?(Ae=n.getKeyAbove)===null||Ae===void 0?void 0:Ae.call(n,t.focusedKey):(_e=n.getLastKey)===null||_e===void 0?void 0:_e.call(n);Te==null&&a&&(Te=(Le=n.getLastKey)===null||Le===void 0?void 0:Le.call(n,t.focusedKey)),Te!=null&&(k.preventDefault(),te(Te))}break;case"ArrowLeft":if(n.getKeyLeftOf){var Ye,Qe,Ue;let Te=t.focusedKey!=null?(Ye=n.getKeyLeftOf)===null||Ye===void 0?void 0:Ye.call(n,t.focusedKey):null;Te==null&&a&&(Te=A==="rtl"?(Qe=n.getFirstKey)===null||Qe===void 0?void 0:Qe.call(n,t.focusedKey):(Ue=n.getLastKey)===null||Ue===void 0?void 0:Ue.call(n,t.focusedKey)),Te!=null&&(k.preventDefault(),te(Te,A==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Ge,Ie,Ne;let Te=t.focusedKey!=null?(Ge=n.getKeyRightOf)===null||Ge===void 0?void 0:Ge.call(n,t.focusedKey):null;Te==null&&a&&(Te=A==="rtl"?(Ie=n.getLastKey)===null||Ie===void 0?void 0:Ie.call(n,t.focusedKey):(Ne=n.getFirstKey)===null||Ne===void 0?void 0:Ne.call(n,t.focusedKey)),Te!=null&&(k.preventDefault(),te(Te,A==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&k.shiftKey)return;k.preventDefault();let Te=n.getFirstKey(t.focusedKey,pl(k));t.setFocusedKey(Te),Te!=null&&(pl(k)&&k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Te):d&&t.replaceSelection(Te))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&k.shiftKey)return;k.preventDefault();let Te=n.getLastKey(t.focusedKey,pl(k));t.setFocusedKey(Te),Te!=null&&(pl(k)&&k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Te):d&&t.replaceSelection(Te))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let Te=n.getKeyPageBelow(t.focusedKey);Te!=null&&(k.preventDefault(),te(Te))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Te=n.getKeyPageAbove(t.focusedKey);Te!=null&&(k.preventDefault(),te(Te))}break;case"a":pl(k)&&t.selectionMode==="multiple"&&o!==!0&&(k.preventDefault(),t.selectAll());break;case"Escape":c==="clearSelection"&&!s&&t.selectedKeys.size!==0&&(k.stopPropagation(),k.preventDefault(),t.clearSelection());break;case"Tab":if(!g){if(k.shiftKey)r.current.focus();else{let Te=Vr(r.current,{tabbable:!0}),He,ht;do ht=Te.lastChild(),ht&&(He=ht);while(ht);He&&!He.contains(document.activeElement)&&xi(He)}break}}},S=I.useRef({top:0,left:0});qa(w,"scroll",b?void 0:()=>{var k,N,te,j;S.current={top:(te=(k=w.current)===null||k===void 0?void 0:k.scrollTop)!==null&&te!==void 0?te:0,left:(j=(N=w.current)===null||N===void 0?void 0:N.scrollLeft)!==null&&j!==void 0?j:0}});let R=k=>{if(t.isFocused){k.currentTarget.contains(k.target)||t.setFocused(!1);return}if(k.currentTarget.contains(k.target)){if(t.setFocused(!0),t.focusedKey==null){var N,te;let ue=_e=>{_e!=null&&(t.setFocusedKey(_e),d&&!t.isSelected(_e)&&t.replaceSelection(_e))},Ae=k.relatedTarget;var j,ce;Ae&&k.currentTarget.compareDocumentPosition(Ae)&Node.DOCUMENT_POSITION_FOLLOWING?ue((j=t.lastSelectedKey)!==null&&j!==void 0?j:(N=n.getLastKey)===null||N===void 0?void 0:N.call(n)):ue((ce=t.firstSelectedKey)!==null&&ce!==void 0?ce:(te=n.getFirstKey)===null||te===void 0?void 0:te.call(n))}else!b&&w.current&&(w.current.scrollTop=S.current.top,w.current.scrollLeft=S.current.left);if(t.focusedKey!=null&&w.current){let ue=Rh(r,t.focusedKey);ue instanceof HTMLElement&&(!ue.contains(document.activeElement)&&!m&&xi(ue),Ff()==="keyboard"&&sp(ue,{containingElement:r.current}))}}},_=k=>{k.currentTarget.contains(k.relatedTarget)||t.setFocused(!1)},F=I.useRef(!1);qa(r,KH,m?k=>{let{detail:N}=k;k.stopPropagation(),t.setFocused(!0),(N==null?void 0:N.focusStrategy)==="first"&&(F.current=!0)}:void 0);let z=Mn(()=>{var k,N;let te=(N=(k=n.getFirstKey)===null||k===void 0?void 0:k.call(n))!==null&&N!==void 0?N:null;if(te==null){let j=nr();D_(r.current),d3(j,null),t.collection.size>0&&(F.current=!1)}else t.setFocusedKey(te),F.current=!1});ES(()=>{F.current&&z()},[t.collection,z]);let ie=Mn(()=>{t.collection.size>0&&(F.current=!1)});ES(()=>{ie()},[t.focusedKey,ie]),qa(r,jH,m?k=>{var N;k.stopPropagation(),t.setFocused(!1),!((N=k.detail)===null||N===void 0)&&N.clearFocusKey&&t.setFocusedKey(null)}:void 0);const ge=I.useRef(i),oe=I.useRef(!1);I.useEffect(()=>{if(ge.current){var k,N;let ce=null;var te;i==="first"&&(ce=(te=(k=n.getFirstKey)===null||k===void 0?void 0:k.call(n))!==null&&te!==void 0?te:null);var j;i==="last"&&(ce=(j=(N=n.getLastKey)===null||N===void 0?void 0:N.call(n))!==null&&j!==void 0?j:null);let ue=t.selectedKeys;if(ue.size){for(let Ae of ue)if(t.canSelectItem(Ae)){ce=Ae;break}}t.setFocused(!0),t.setFocusedKey(ce),ce==null&&!m&&r.current&&Eu(r.current),t.collection.size>0&&(ge.current=!1,oe.current=!0)}});let O=I.useRef(t.focusedKey),we=I.useRef(null);I.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==O.current||oe.current)&&w.current&&r.current){let k=Ff(),N=Rh(r,t.focusedKey);if(!(N instanceof HTMLElement))return;(k==="keyboard"||oe.current)&&(we.current&&cancelAnimationFrame(we.current),we.current=requestAnimationFrame(()=>{w.current&&(D5(w.current,N),k!=="virtual"&&sp(N,{containingElement:r.current}))}))}!m&&t.isFocused&&t.focusedKey==null&&O.current!=null&&r.current&&Eu(r.current),O.current=t.focusedKey,oe.current=!1}),I.useEffect(()=>()=>{we.current&&cancelAnimationFrame(we.current)},[]),qa(r,"react-aria-focus-scope-restore",k=>{k.preventDefault(),t.setFocused(!0)});let Se={onKeyDown:E,onFocus:R,onBlur:_,onMouseDown(k){w.current===k.target&&k.preventDefault()}},{typeSelectProps:U}=WZ({keyboardDelegate:n,selectionManager:t});h||(Se=Jt(U,Se));let ee;m||(ee=t.focusedKey==null?0:-1);let K=UZ(t.collection);return{collectionProps:Jt(Se,{tabIndex:ee,"data-collection":K})}}function GZ(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:s,focus:o,isDisabled:c,onAction:d,allowsDifferentPressOrigin:h,linkBehavior:m="action"}=e,g=am();t=Kr(t);let b=te=>{if(te.pointerType==="keyboard"&&l1(te))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(m==="selection"&&i.current){let j=n.getItemProps(r);g.open(i.current,te,j.href,j.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(m==="override"||m==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):te&&te.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||te&&(pl(te)||te.pointerType==="touch"||te.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};I.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(s?D_(i.current):o?o():document.activeElement!==i.current&&i.current&&Eu(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,s]),c=c||n.isDisabled(r);let w={};!s&&!c?w={tabIndex:r===n.focusedKey?0:-1,onFocus(te){te.target===i.current&&n.setFocusedKey(r)}}:c&&(w.onMouseDown=te=>{te.preventDefault()});let x=n.isLink(r)&&m==="override",A=n.isLink(r)&&m!=="selection"&&m!=="none",C=!c&&n.canSelectItem(r)&&!x,E=(d||A)&&!c,S=E&&(n.selectionBehavior==="replace"?!C:!C||n.isEmpty),R=E&&C&&n.selectionBehavior==="replace",_=S||R,F=I.useRef(null),z=_&&C,ie=I.useRef(!1),ge=I.useRef(!1),oe=n.getItemProps(r),O=te=>{d&&d(),A&&i.current&&g.open(i.current,te,oe.href,oe.routerOptions)},we={ref:i};if(a?(we.onPressStart=te=>{F.current=te.pointerType,ie.current=z,te.pointerType==="keyboard"&&(!_||TD())&&b(te)},h?(we.onPressUp=S?void 0:te=>{te.pointerType==="mouse"&&C&&b(te)},we.onPress=S?O:te=>{te.pointerType!=="keyboard"&&te.pointerType!=="mouse"&&C&&b(te)}):we.onPress=te=>{if(S||R&&te.pointerType!=="mouse"){if(te.pointerType==="keyboard"&&!AD())return;O(te)}else te.pointerType!=="keyboard"&&C&&b(te)}):(we.onPressStart=te=>{F.current=te.pointerType,ie.current=z,ge.current=S,C&&(te.pointerType==="mouse"&&!S||te.pointerType==="keyboard"&&(!E||TD()))&&b(te)},we.onPress=te=>{(te.pointerType==="touch"||te.pointerType==="pen"||te.pointerType==="virtual"||te.pointerType==="keyboard"&&_&&AD()||te.pointerType==="mouse"&&ge.current)&&(_?O(te):C&&b(te))}),w["data-collection"]=qZ(n.collection),w["data-key"]=r,we.preventFocusOnPress=s,s&&(we=Jt(we,{onPressStart(te){te.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(te){te.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),oe)for(let te of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])oe[te]&&(we[te]=$o(we[te],oe[te]));let{pressProps:Se,isPressed:U}=id(we),ee=R?te=>{F.current==="mouse"&&(te.stopPropagation(),te.preventDefault(),O(te))}:void 0,{longPressProps:K}=j5({isDisabled:!z,onLongPress(te){te.pointerType==="touch"&&(b(te),n.setSelectionBehavior("toggle"))}}),k=te=>{F.current==="touch"&&ie.current&&te.preventDefault()},N=m!=="none"&&n.isLink(r)?te=>{wu.isOpening||te.preventDefault()}:void 0;return{itemProps:Jt(w,C||S||s&&!c?Se:{},z?K:{},{onDoubleClick:ee,onDragStartCapture:k,onClick:N,id:t},s?{onMouseDown:te=>te.preventDefault()}:void 0),isPressed:U,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:c,allowsSelection:C,hasAction:_}}function AD(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function TD(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class PD{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?Rh(this.ref,t):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 OM{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&&!Mf(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&&!Mf(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 PD(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 PD(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function YZ(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:s}=e,o=w_({usage:"search",sensitivity:"base"}),c=t.disabledBehavior,d=I.useMemo(()=>a||new OM({collection:n,disabledKeys:r,disabledBehavior:c,ref:i,collator:o,layoutDelegate:s}),[a,s,n,r,i,o,c]),{collectionProps:h}=kM({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:h}}function ZZ(e,t,n){let r=qs(e,{labelable:!0}),i=e.selectionBehavior||"toggle",a=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&a==="action"&&(a="override");let{listProps:s}=YZ({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:a}),{focusWithinProps:o}=rc({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),c=Kr(e.id);gm.set(t,{id:c,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:a});let{labelProps:d,fieldProps:h}=pm({...e,id:c,labelElementType:"span"});return{labelProps:d,listBoxProps:Jt(r,o,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Jt(h,s)})}}function IM(e){return null}IM.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:a}=t,s=t.title||t.children,o=t.textValue||(typeof s=="string"?s:"")||t["aria-label"]||"";!o&&!(n!=null&&n.suppressTextValueWarning)&&process.env.NODE_ENV!=="production"&&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:o,"aria-label":t["aria-label"],hasChildNodes:XZ(t),*childNodes(){if(r)for(let c of r)yield{type:"item",value:c};else if(i){let c=[];fe.default.Children.forEach(a,d=>{c.push({type:"item",element:d})}),yield*c}}}};function XZ(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&fe.default.Children.count(e.children)>0)}let JZ=IM;class QZ{build(t,n){return this.context=n,_D(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(fe.default.isValidElement(n)&&n.type===fe.default.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=[];fe.default.Children.forEach(n,s=>{s&&i.push(s)});let a=0;for(let s of i){let o=this.getFullNode({element:s,index:a},{});for(let c of o)a++,yield c}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let a=n.value;if(a!=null){var s;let o=(s=a.key)!==null&&s!==void 0?s:a.id;if(o==null)throw new Error("No key found for item");return o}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(fe.default.isValidElement(t.element)&&t.element.type===fe.default.Fragment){let A=[];fe.default.Children.forEach(t.element.props.children,E=>{A.push(E)});var a;let C=(a=t.index)!==null&&a!==void 0?a:0;for(const E of A)yield*this.getFullNode({element:E,index:C++},n,r,i);return}let s=t.element;if(!s&&t.value&&n&&n.renderer){let A=this.cache.get(t.value);if(A&&(!A.shouldInvalidate||!A.shouldInvalidate(this.context))){A.index=t.index,A.parentKey=i?i.key:null,yield A;return}s=n.renderer(t.value)}if(fe.default.isValidElement(s)){let A=s.type;if(typeof A!="function"&&typeof A.getCollectionNode!="function"){let R=s.type;throw new Error(`Unknown element <${R}> in collection.`)}let C=A.getCollectionNode(s.props,this.context);var o;let E=(o=t.index)!==null&&o!==void 0?o:0,S=C.next();for(;!S.done&&S.value;){let R=S.value;t.index=E;var c;let _=(c=R.key)!==null&&c!==void 0?c:null;_==null&&(_=R.element?null:this.getKey(s,t,n,r));let z=[...this.getFullNode({...R,key:_,index:E,wrapper:eX(t.wrapper,R.wrapper)},this.getChildState(n,R),r?`${r}${s.key}`:s.key,i)];for(let ie of z){var d,h;ie.value=(h=(d=R.value)!==null&&d!==void 0?d:t.value)!==null&&h!==void 0?h:null,ie.value&&this.cache.set(ie.value,ie);var m;if(t.type&&ie.type!==t.type)throw new Error(`Unsupported type <${S0(ie.type)}> in <${S0((m=i==null?void 0:i.type)!==null&&m!==void 0?m:"unknown parent type")}>. Only <${S0(t.type)}> is supported.`);E++,yield ie}S=C.next(z)}return}if(t.key==null||t.type==null)return;let g=this;var b,w;let x={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(b=t.value)!==null&&b!==void 0?b:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(w=t.textValue)!==null&&w!==void 0?w:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:_D(function*(){if(!t.hasChildNodes||!t.childNodes)return;let A=0;for(let C of t.childNodes()){C.key!=null&&(C.key=`${x.key}${C.key}`);let E=g.getFullNode({...C,index:A},g.getChildState(n,C),x.key,x);for(let S of E)A++,yield S}})};yield x}constructor(){this.cache=new WeakMap}}function _D(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 eX(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function S0(e){return e[0].toUpperCase()+e.slice(1)}function tX(e,t,n){let r=I.useMemo(()=>new QZ,[]),{children:i,items:a,collection:s}=e;return I.useMemo(()=>{if(s)return s;let c=r.build({children:i,items:a},n);return t(c)},[r,i,a,s,n,t])}function vm(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function nX(e){return rX(e)}function rX(e,t){for(let n of e)return n}function D0(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...MD(e,t),t],i=[...MD(e,n),n],a=r.slice(0,i.length).findIndex((s,o)=>s!==i[o]);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 MD(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 FD=new WeakMap;function LM(e){let t=FD.get(e);if(t!=null)return t;let n=0,r=i=>{for(let a of i)a.type==="section"?r(vm(a,e)):a.type==="item"&&n++};return r(e),FD.set(e,n),n}function iX(e,t,n){var r,i;let{key:a}=e,s=gm.get(t);var o;let c=(o=e.isDisabled)!==null&&o!==void 0?o:t.selectionManager.isDisabled(a);var d;let h=(d=e.isSelected)!==null&&d!==void 0?d:t.selectionManager.isSelected(a);var m;let g=(m=e.shouldSelectOnPressUp)!==null&&m!==void 0?m:s==null?void 0:s.shouldSelectOnPressUp;var b;let w=(b=e.shouldFocusOnHover)!==null&&b!==void 0?b:s==null?void 0:s.shouldFocusOnHover;var x;let A=(x=e.shouldUseVirtualFocus)!==null&&x!==void 0?x:s==null?void 0:s.shouldUseVirtualFocus;var C;let E=(C=e.isVirtualized)!==null&&C!==void 0?C:s==null?void 0:s.isVirtualized,S=Kl(),R=Kl(),_={role:"option","aria-disabled":c||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?h:void 0};Vs()&&z4()||(_["aria-label"]=e["aria-label"],_["aria-labelledby"]=S,_["aria-describedby"]=R);let F=t.collection.getItem(a);if(E){let k=Number(F==null?void 0:F.index);_["aria-posinset"]=Number.isNaN(k)?void 0:k+1,_["aria-setsize"]=LM(t.collection)}let z=s!=null&&s.onAction?()=>{var k;return s==null||(k=s.onAction)===null||k===void 0?void 0:k.call(s,a)}:void 0,ie=FM(t,a),{itemProps:ge,isPressed:oe,isFocused:O,hasAction:we,allowsSelection:Se}=GZ({selectionManager:t.selectionManager,key:a,ref:n,shouldSelectOnPressUp:g,allowsDifferentPressOrigin:g&&w,isVirtualized:E,shouldUseVirtualFocus:A,isDisabled:c,onAction:z||!(F==null||(r=F.props)===null||r===void 0)&&r.onAction?$o(F==null||(i=F.props)===null||i===void 0?void 0:i.onAction,z):void 0,linkBehavior:s==null?void 0:s.linkBehavior,id:ie}),{hoverProps:U}=hG({isDisabled:c||!w,onHoverStart(){IS()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(a))}}),ee=qs(F==null?void 0:F.props);delete ee.id;let K=OH(F==null?void 0:F.props);return{optionProps:{..._,...Jt(ee,ge,U,K),id:ie},labelProps:{id:S},descriptionProps:{id:R},isFocused:O,isFocusVisible:O&&t.selectionManager.isFocused&&IS(),isSelected:h,isDisabled:c,isPressed:oe,allowsSelection:Se,hasAction:we}}var VM={};VM={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var BM={};BM={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var NM={};NM={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var jM={};jM={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var KM={};KM={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var UM={};UM={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var qM={};qM={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var zM={};zM={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var WM={};WM={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var HM={};HM={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var GM={};GM={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var YM={};YM={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var ZM={};ZM={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var XM={};XM={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var JM={};JM={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var QM={};QM={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var eF={};eF={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var tF={};tF={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var nF={};nF={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var rF={};rF={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var iF={};iF={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var aF={};aF={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var sF={};sF={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var oF={};oF={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var uF={};uF={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var lF={};lF={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var cF={};cF={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var fF={};fF={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var dF={};dF={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var hF={};hF={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var pF={};pF={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var mF={};mF={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var gF={};gF={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var vF={};vF={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var yF={};yF={"ar-AE":VM,"bg-BG":BM,"cs-CZ":NM,"da-DK":jM,"de-DE":KM,"el-GR":UM,"en-US":qM,"es-ES":zM,"et-EE":WM,"fi-FI":HM,"fr-FR":GM,"he-IL":YM,"hr-HR":ZM,"hu-HU":XM,"it-IT":JM,"ja-JP":QM,"ko-KR":eF,"lt-LT":tF,"lv-LV":nF,"nb-NO":rF,"nl-NL":iF,"pl-PL":aF,"pt-BR":sF,"pt-PT":oF,"ro-RO":uF,"ru-RU":lF,"sk-SK":cF,"sl-SI":fF,"sr-SP":dF,"sv-SE":hF,"tr-TR":pF,"uk-UA":mF,"zh-CN":gF,"zh-TW":vF};function aX(e){return e&&e.__esModule?e.default:e}function sX(e,t,n){let{type:r="menu",isDisabled:i,trigger:a="press"}=e,s=Kr(),{triggerProps:o,overlayProps:c}=PZ({type:r},t,n),d=b=>{if(!i&&!(a==="longPress"&&!b.altKey)&&n&&n.current)switch(b.key){case"Enter":case" ":if(a==="longPress"||b.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("last");break;default:"continuePropagation"in b&&b.continuePropagation()}},h=rs(aX(yF),"@react-aria/menu"),{longPressProps:m}=j5({isDisabled:i||a!=="longPress",accessibilityDescription:h.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),g={preventFocusOnPress:!0,onPressStart(b){b.pointerType!=="touch"&&b.pointerType!=="keyboard"&&!i&&(xi(b.target),t.open(b.pointerType==="virtual"?"first":null))},onPress(b){b.pointerType==="touch"&&!i&&(xi(b.target),t.toggle())}};return delete o.onPress,{menuTriggerProps:{...o,...a==="press"?g:m,id:s,onKeyDown:d},menuProps:{...c,"aria-labelledby":s,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function oX(e){return e&&e.__esModule?e.default:e}function uX(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:a,keyboardDelegate:s,layoutDelegate:o,shouldFocusWrap:c,isReadOnly:d,isDisabled:h}=e,m=I.useRef(null);n=n??m;let g=rs(oX(AM),"@react-aria/combobox"),{menuTriggerProps:b,menuProps:w}=sX({type:"listbox",isDisabled:h||d},t,n);gm.set(t,{id:w.id});let{collection:x}=t,{disabledKeys:A}=t.selectionManager,C=I.useMemo(()=>s||new OM({collection:x,disabledKeys:A,ref:a,layoutDelegate:o}),[s,o,x,A,a]),{collectionProps:E}=kM({selectionManager:t.selectionManager,keyboardDelegate:C,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:c,ref:i,isVirtualized:!0}),S=am(),R=Ne=>{if(!Ne.nativeEvent.isComposing)switch(Ne.key){case"Enter":case"Tab":if(t.isOpen&&Ne.key==="Enter"&&Ne.preventDefault(),t.isOpen&&a.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let Te=a.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(Ne.key==="Enter"&&Te instanceof HTMLAnchorElement){let He=t.collection.getItem(t.selectionManager.focusedKey);He&&S.open(Te,Ne,He.props.href,He.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&Ne.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}},_=Ne=>{var Te;let He=(n==null?void 0:n.current)&&n.current===Ne.relatedTarget,ht=(Te=r.current)===null||Te===void 0?void 0:Te.contains(Ne.relatedTarget);He||ht||(e.onBlur&&e.onBlur(Ne),t.setFocused(!1))},F=Ne=>{t.isFocused||(e.onFocus&&e.onFocus(Ne),t.setFocused(!0))},{isInvalid:z,validationErrors:ie,validationDetails:ge}=t.displayValidation,{labelProps:oe,inputProps:O,descriptionProps:we,errorMessageProps:Se}=pZ({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:$o(t.isOpen&&E.onKeyDown,R,e.onKeyDown),onBlur:_,value:t.inputValue,defaultValue:t.defaultInputValue,onFocus:F,autoComplete:"off",validate:void 0,[Wl]:t},i),U=Ne=>{if(Ne.pointerType==="touch"){var Te;(Te=i.current)===null||Te===void 0||Te.focus(),t.toggle(null,"manual")}},ee=Ne=>{if(Ne.pointerType!=="touch"){var Te;(Te=i.current)===null||Te===void 0||Te.focus(),t.toggle(Ne.pointerType==="keyboard"||Ne.pointerType==="virtual"?"first":null,"manual")}},K=Ul({id:b.id,"aria-label":g.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||oe.id}),k=Ul({id:w.id,"aria-label":g.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||oe.id}),N=I.useRef(0),te=Ne=>{if(h||d)return;if(Ne.timeStamp-N.current<500){var Te;Ne.preventDefault(),(Te=i.current)===null||Te===void 0||Te.focus();return}let He=Ne.target.getBoundingClientRect(),ht=Ne.changedTouches[0],Ht=Math.ceil(He.left+.5*He.width),$t=Math.ceil(He.top+.5*He.height);if(ht.clientX===Ht&&ht.clientY===$t){var _t;Ne.preventDefault(),(_t=i.current)===null||_t===void 0||_t.focus(),t.toggle(null,"manual"),N.current=Ne.timeStamp}},j=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var ce;let ue=(ce=j==null?void 0:j.parentKey)!==null&&ce!==void 0?ce:null;var Ae;let _e=(Ae=t.selectionManager.focusedKey)!==null&&Ae!==void 0?Ae:null,Le=I.useRef(ue),Ye=I.useRef(_e);I.useEffect(()=>{if(Ah()&&j!=null&&_e!=null&&_e!==Ye.current){let Te=t.selectionManager.isSelected(_e),He=ue!=null?t.collection.getItem(ue):null,ht=(He==null?void 0:He["aria-label"])||(typeof(He==null?void 0:He.rendered)=="string"?He.rendered:"")||"";var Ne;let Ht=g.format("focusAnnouncement",{isGroupChange:(Ne=He&&ue!==Le.current)!==null&&Ne!==void 0?Ne:!1,groupTitle:ht,groupCount:He?[...vm(He,t.collection)].length:0,optionText:j["aria-label"]||j.textValue||"",isSelected:Te});kl(Ht)}Le.current=ue,Ye.current=_e});let Qe=LM(t.collection),Ue=I.useRef(Qe),Ge=I.useRef(t.isOpen);I.useEffect(()=>{let Ne=t.isOpen!==Ge.current&&(t.selectionManager.focusedKey==null||Ah());if(t.isOpen&&(Ne||Qe!==Ue.current)){let Te=g.format("countAnnouncement",{optionCount:Qe});kl(Te)}Ue.current=Qe,Ge.current=t.isOpen});let Ie=I.useRef(t.selectedKey);return I.useEffect(()=>{if(Ah()&&t.isFocused&&t.selectedItem&&t.selectedKey!==Ie.current){let Ne=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",Te=g.format("selectedAnnouncement",{optionText:Ne});kl(Te)}Ie.current=t.selectedKey}),I.useEffect(()=>{if(t.isOpen)return _M([i.current,r.current].filter(Ne=>Ne!=null))},[t.isOpen,i,r]),Bb(()=>{!j&&i.current&&nr(Xt(i.current))===i.current&&d3(i.current,null)},[j]),{labelProps:oe,buttonProps:{...b,...K,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:U,onPressStart:ee,isDisabled:h||d},inputProps:Jt(O,{role:"combobox","aria-expanded":b["aria-expanded"],"aria-controls":t.isOpen?w.id:void 0,"aria-autocomplete":"list","aria-activedescendant":j?FM(t,j.key):void 0,onTouchEnd:te,autoCorrect:"off",spellCheck:"false"}),listBoxProps:Jt(w,k,{autoFocus:t.focusStrategy||!0,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:we,errorMessageProps:Se,isInvalid:z,validationErrors:ie,validationDetails:ge}}var bF={};bF={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 $F={};$F={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 xF={};xF={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 wF={};wF={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 CF={};CF={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:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var EF={};EF={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 SF={};SF={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 DF={};DF={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 AF={};AF={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 TF={};TF={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 PF={};PF={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 _F={};_F={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 MF={};MF={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 FF={};FF={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 RF={};RF={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 kF={};kF={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 OF={};OF={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 IF={};IF={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 LF={};LF={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 VF={};VF={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 BF={};BF={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 NF={};NF={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 jF={};jF={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 KF={};KF={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 UF={};UF={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 qF={};qF={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 zF={};zF={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 WF={};WF={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 HF={};HF={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 GF={};GF={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 YF={};YF={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 ZF={};ZF={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 XF={};XF={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 JF={};JF={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 fd={};fd={"ar-AE":bF,"bg-BG":$F,"cs-CZ":xF,"da-DK":wF,"de-DE":CF,"el-GR":EF,"en-US":SF,"es-ES":DF,"et-EE":AF,"fi-FI":TF,"fr-FR":PF,"he-IL":_F,"hr-HR":MF,"hu-HU":FF,"it-IT":RF,"ja-JP":kF,"ko-KR":OF,"lt-LT":IF,"lv-LV":LF,"nb-NO":VF,"nl-NL":BF,"pl-PL":NF,"pt-BR":jF,"pt-PT":KF,"ro-RO":UF,"ru-RU":qF,"sk-SK":zF,"sl-SI":WF,"sr-SP":HF,"sv-SE":GF,"tr-TR":YF,"uk-UA":ZF,"zh-CN":XF,"zh-TW":JF};function m3(e,t,n){let{direction:r}=Tr(),i=I.useMemo(()=>dm(t),[t]),a=c=>{if(c.currentTarget.contains(c.target)&&(c.altKey&&(c.key==="ArrowDown"||c.key==="ArrowUp")&&"setOpen"in e&&(c.preventDefault(),c.stopPropagation(),e.setOpen(!0)),!n))switch(c.key){case"ArrowLeft":if(c.preventDefault(),c.stopPropagation(),r==="rtl"){if(t.current){let d=c.target,h=RD(t.current,d.getBoundingClientRect().left,-1);h&&h.focus()}}else i.focusPrevious();break;case"ArrowRight":if(c.preventDefault(),c.stopPropagation(),r==="rtl"){if(t.current){let d=c.target,h=RD(t.current,d.getBoundingClientRect().left,1);h&&h.focus()}}else i.focusNext();break}},s=()=>{var c;if(!t.current)return;let d=(c=window.event)===null||c===void 0?void 0:c.target,h=Vr(t.current,{tabbable:!0});if(d&&(h.currentNode=d,d=h.previousNode()),!d){let m;do m=h.lastChild(),m&&(d=m);while(m)}for(;d!=null&&d.hasAttribute("data-placeholder");){let m=h.previousNode();if(m&&m.hasAttribute("data-placeholder"))d=m;else break}d&&d.focus()},{pressProps:o}=id({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(c){c.pointerType==="mouse"&&s()},onPress(c){(c.pointerType==="touch"||c.pointerType==="pen")&&s()}});return Jt(o,{onKeyDown:a})}function RD(e,t,n){let r=Vr(e,{tabbable:!0}),i=r.nextNode(),a=null,s=1/0;for(;i;){let c=i.getBoundingClientRect().left-t,d=Math.abs(c);Math.sign(c)===n&&d<s&&(a=i,s=d),i=r.nextNode()}return a}function lX(e){return e&&e.__esModule?e.default:e}const QF=new WeakMap,xf="__role_"+Date.now(),eR="__focusManager_"+Date.now();function tR(e,t,n){var r;let{isInvalid:i,validationErrors:a,validationDetails:s}=t.displayValidation,{labelProps:o,fieldProps:c,descriptionProps:d,errorMessageProps:h}=mm({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||a}),m=I.useRef(null),{focusWithinProps:g}=rc({...e,onFocusWithin(oe){var O;m.current=t.value,(O=e.onFocus)===null||O===void 0||O.call(e,oe)},onBlurWithin:oe=>{var O;t.confirmPlaceholder(),t.value!==m.current&&t.commitValidation(),(O=e.onBlur)===null||O===void 0||O.call(e,oe)},onFocusWithinChange:e.onFocusChange}),b=rs(lX(fd),"@react-aria/datepicker"),w=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",x=t.maxGranularity==="hour"?"time":"date",A=t.value?b.format(w,{[x]:t.formatValue({month:"long"})}):"",C=nd(A),E=e[xf]==="presentation"?c["aria-describedby"]:[C["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,S=e[eR],R=I.useMemo(()=>S||dm(n),[S,n]),_=m3(t,n,e[xf]==="presentation");QF.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[o.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:E,focusManager:R});let F=I.useRef(e.autoFocus),z;e[xf]==="presentation"?z={role:"presentation"}:z=Jt(c,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":E}),I.useEffect(()=>{F.current&&R.focusFirst(),F.current=!1},[R]),H4(e.inputRef,t.defaultValue,t.setValue),f6({...e,focus(){R.focusFirst()}},t,e.inputRef);let ie={type:"hidden",name:e.name,form:e.form,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(ie.type="text",ie.hidden=!0,ie.required=e.isRequired,ie.onChange=()=>{});let ge=qs(e);return{labelProps:{...o,onClick:()=>{R.focusFirst()}},fieldProps:Jt(ge,z,_,g,{onKeyDown(oe){e.onKeyDown&&e.onKeyDown(oe)},onKeyUp(oe){e.onKeyUp&&e.onKeyUp(oe)},style:{unicodeBidi:"isolate"}}),inputProps:ie,descriptionProps:d,errorMessageProps:h,isInvalid:i,validationErrors:a,validationDetails:s}}function cX(e,t,n){var r;let i=tR(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function fX(e){return e&&e.__esModule?e.default:e}function dX(e,t,n){let r=Kr(),i=Kr(),a=Kr(),s=rs(fX(fd),"@react-aria/datepicker"),{isInvalid:o,validationErrors:c,validationDetails:d}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:g,errorMessageProps:b}=mm({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||c}),w=m3(t,n),x=m["aria-labelledby"]||m.id,{locale:A}=Tr(),C=t.formatValue(A,{month:"long"}),E=C?s.format("selectedDateDescription",{date:C}):"",S=nd(E),R=[S["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,_=qs(e),F=I.useMemo(()=>dm(n),[n]),z=I.useRef(!1),{focusWithinProps:ie}=rc({...e,isDisabled:t.isOpen,onBlurWithin:ge=>{let oe=document.getElementById(i);if(!(oe!=null&&oe.contains(ge.relatedTarget))){var O,we;z.current=!1,(O=e.onBlur)===null||O===void 0||O.call(e,ge),(we=e.onFocusChange)===null||we===void 0||we.call(e,!1)}},onFocusWithin:ge=>{if(!z.current){var oe,O;z.current=!0,(oe=e.onFocus)===null||oe===void 0||oe.call(e,ge),(O=e.onFocusChange)===null||O===void 0||O.call(e,!0)}}});return{groupProps:Jt(_,w,m,S,ie,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":x,"aria-describedby":R,onKeyDown(ge){t.isOpen||e.onKeyDown&&e.onKeyDown(ge)},onKeyUp(ge){t.isOpen||e.onKeyUp&&e.onKeyUp(ge)}}),labelProps:{...h,onClick:()=>{F.focusFirst()}},fieldProps:{...m,id:a,[xf]:"presentation","aria-describedby":R,value:t.value,defaultValue:t.defaultValue,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,[Wl]:t,autoFocus:e.autoFocus,name:e.name,form:e.form},descriptionProps:g,errorMessageProps:b,buttonProps:{...S,id:r,"aria-haspopup":"dialog","aria-label":s.format("calendar"),"aria-labelledby":`${r} ${x}`,"aria-describedby":R,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${x}`},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:o,validationErrors:c,validationDetails:d}}function hX(e){return e&&e.__esModule?e.default:e}function pX(){let{locale:e}=Tr(),t=q5(hX(fd),"@react-aria/datepicker");return I.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new mX(e,t)}},[e,t])}class mX{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function gX(e,t,n){let r=I.useRef(""),{locale:i,direction:a}=Tr(),s=pX(),{ariaLabel:o,ariaLabelledBy:c,ariaDescribedBy:d,focusManager:h}=QF.get(t),m=e.isPlaceholder?"":e.text,g=I.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),b=za({month:"long",timeZone:g.timeZone}),w=za({hour:"numeric",hour12:g.hour12,timeZone:g.timeZone});if(e.type==="month"&&!e.isPlaceholder){let j=b.format(t.dateValue);m=j!==m?`${m} – ${j}`:j}else e.type==="hour"&&!e.isPlaceholder&&(m=w.format(t.dateValue));let{spinButtonProps:x}=gZ({value:e.value,textValue:m,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)}}),A=I.useMemo(()=>new x_(i,{maximumFractionDigits:0}),[i]),C=()=>{if(e.text===e.placeholder&&h.focusPrevious(),A.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let j=e.text.slice(0,-1),ce=A.parse(j);j=ce===0?"":j,j.length===0||ce===0?t.clearSegment(e.type):t.setSegment(e.type,ce),r.current=j}else e.type==="dayPeriod"&&t.clearSegment(e.type)},E=j=>{if(j.key==="a"&&(Vs()?j.metaKey:j.ctrlKey)&&j.preventDefault(),!(j.ctrlKey||j.metaKey||j.shiftKey||j.altKey))switch(j.key){case"Backspace":case"Delete":j.preventDefault(),j.stopPropagation(),C();break}},{startsWith:S}=C_({sensitivity:"base"}),R=za({hour:"numeric",hour12:!0}),_=I.useMemo(()=>{let j=new Date;return j.setHours(0),R.formatToParts(j).find(ce=>ce.type==="dayPeriod").value},[R]),F=I.useMemo(()=>{let j=new Date;return j.setHours(12),R.formatToParts(j).find(ce=>ce.type==="dayPeriod").value},[R]),z=za({year:"numeric",era:"narrow",timeZone:"UTC"}),ie=I.useMemo(()=>{if(e.type!=="era")return[];let j=Fn(new Gn(1,1,1),t.calendar),ce=t.calendar.getEras().map(Ae=>{let _e=j.set({year:1,month:1,day:1,era:Ae}).toDate("UTC"),Ye=z.formatToParts(_e).find(Qe=>Qe.type==="era").value;return{era:Ae,formatted:Ye}}),ue=vX(ce.map(Ae=>Ae.formatted));if(ue)for(let Ae of ce)Ae.formatted=Ae.formatted.slice(ue);return ce},[z,t.calendar,e.type]),ge=j=>{if(t.isDisabled||t.isReadOnly)return;let ce=r.current+j;switch(e.type){case"dayPeriod":if(S(_,j))t.setSegment("dayPeriod",0);else if(S(F,j))t.setSegment("dayPeriod",12);else break;h.focusNext();break;case"era":{let ue=ie.find(Ae=>S(Ae.formatted,j));ue&&(t.setSegment("era",ue.era),h.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!A.isValidPartialNumber(ce))return;let ue=A.parse(ce),Ae=ue,_e=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":ue>11&&(Ae=A.parse(j));break;case"h12":_e=!1,ue>12&&(Ae=A.parse(j));break}e.value!==void 0&&e.value>=12&&ue>1&&(ue+=12)}else e.maxValue!==void 0&&ue>e.maxValue&&(Ae=A.parse(j));if(isNaN(ue))return;let Le=Ae!==0||_e;Le&&t.setSegment(e.type,Ae),e.maxValue!==void 0&&(+(ue+"0")>e.maxValue||ce.length>=String(e.maxValue).length)?(r.current="",Le&&h.focusNext()):Le&&(r.current=ce);break}}},oe=()=>{r.current="",n.current&&sp(n.current,{containingElement:sm(n.current)});let j=window.getSelection();j==null||j.collapse(n.current)},O=I.useRef(typeof document<"u"?document:null);qa(O,"selectionchange",()=>{var j;let ce=window.getSelection();ce!=null&&ce.anchorNode&&(!((j=n.current)===null||j===void 0)&&j.contains(ce==null?void 0:ce.anchorNode))&&ce.collapse(n.current)});let we=I.useRef("");qa(n,"beforeinput",j=>{if(n.current)switch(j.preventDefault(),j.inputType){case"deleteContentBackward":case"deleteContentForward":A.isValidPartialNumber(e.text)&&!t.isReadOnly&&C();break;case"insertCompositionText":we.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:j.data!=null&&ge(j.data);break}}),qa(n,"input",j=>{let{inputType:ce,data:ue}=j;switch(ce){case"insertCompositionText":n.current&&(n.current.textContent=we.current),ue!=null&&(S(_,ue)||S(F,ue))&&ge(ue);break}}),mn(()=>{let j=n.current;return()=>{document.activeElement===j&&(h.focusPrevious()||h.focusNext())}},[n,h]);let Se=td()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},U=I.useMemo(()=>t.segments.find(j=>j.isEditable),[t.segments]);e!==U&&!t.isInvalid&&(d=void 0);let ee=Kr(),K=!t.isDisabled&&!t.isReadOnly&&e.isEditable,k=e.type==="literal"?"":s.of(e.type),N=Ul({"aria-label":`${k}${o?`, ${o}`:""}${c?", ":""}`,"aria-labelledby":c});if(e.type==="literal")return{segmentProps:{"aria-hidden":!0}};let te={caretColor:"transparent"};if(a==="rtl"){te.unicodeBidi="embed";let j=g[e.type];(j==="numeric"||j==="2-digit")&&(te.direction="ltr")}return{segmentProps:Jt(x,N,{id:ee,...Se,"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:K,suppressContentEditableWarning:K,spellCheck:K?"false":void 0,autoCorrect:K?"off":void 0,[parseInt(fe.default.version,10)>=17?"enterKeyHint":"enterkeyhint"]:K?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!K?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:E,onFocus:oe,style:te,onPointerDown(j){j.stopPropagation()},onMouseDown(j){j.stopPropagation()}})}}function vX(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 yX(e){return e&&e.__esModule?e.default:e}function bX(e,t,n){var r,i,a,s,o;let c=rs(yX(fd),"@react-aria/datepicker"),{isInvalid:d,validationErrors:h,validationDetails:m}=t.displayValidation,{labelProps:g,fieldProps:b,descriptionProps:w,errorMessageProps:x}=mm({...e,labelElementType:"span",isInvalid:d,errorMessage:e.errorMessage||h}),A=b["aria-labelledby"]||b.id,{locale:C}=Tr(),E=t.formatValue(C,{month:"long"}),S=E?c.format("selectedRangeDescription",{startDate:E.start,endDate:E.end}):"",R=nd(S),_={"aria-label":c.format("startDate"),"aria-labelledby":A},F={"aria-label":c.format("endDate"),"aria-labelledby":A},z=Kr(),ie=Kr(),ge=m3(t,n),oe=[R["aria-describedby"],b["aria-describedby"]].filter(Boolean).join(" ")||void 0,O=I.useMemo(()=>dm(n,{accept:j=>j.id!==z}),[n,z]),we={[eR]:O,[xf]:"presentation","aria-describedby":oe,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},Se=qs(e),U=I.useRef(!1),{focusWithinProps:ee}=rc({...e,isDisabled:t.isOpen,onBlurWithin:j=>{let ce=document.getElementById(ie);if(!(ce!=null&&ce.contains(j.relatedTarget))){var ue,Ae;U.current=!1,(ue=e.onBlur)===null||ue===void 0||ue.call(e,j),(Ae=e.onFocusChange)===null||Ae===void 0||Ae.call(e,!1)}},onFocusWithin:j=>{if(!U.current){var ce,ue;U.current=!0,(ce=e.onFocus)===null||ce===void 0||ce.call(e,j),(ue=e.onFocusChange)===null||ue===void 0||ue.call(e,!0)}}}),K=I.useRef(iu),k=I.useRef(iu);var N,te;return{groupProps:Jt(Se,ge,b,R,ee,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":oe,onKeyDown(j){t.isOpen||e.onKeyDown&&e.onKeyDown(j)},onKeyUp(j){t.isOpen||e.onKeyUp&&e.onKeyUp(j)}}),labelProps:{...g,onClick:()=>{O.focusFirst()}},buttonProps:{...R,id:z,"aria-haspopup":"dialog","aria-label":c.format("calendar"),"aria-labelledby":`${z} ${A}`,"aria-describedby":oe,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:ie,"aria-labelledby":`${z} ${A}`},startFieldProps:{..._,...we,value:(N=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&N!==void 0?N:null,defaultValue:(i=t.defaultValue)===null||i===void 0?void 0:i.start,onChange:j=>t.setDateTime("start",j),autoFocus:e.autoFocus,name:e.startName,form:e.form,[Wl]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(j){K.current=j,t.updateValidation(gp(j,k.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...F,...we,value:(te=(a=t.value)===null||a===void 0?void 0:a.end)!==null&&te!==void 0?te:null,defaultValue:(s=t.defaultValue)===null||s===void 0?void 0:s.end,onChange:j=>t.setDateTime("end",j),name:e.endName,form:e.form,[Wl]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(j){k.current=j,t.updateValidation(gp(K.current,j))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:w,errorMessageProps:x,calendarProps:{autoFocus:!0,value:!((o=t.dateRange)===null||o===void 0)&&o.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:d,validationErrors:h,validationDetails:m}}function $X(e,t){let{role:n="dialog"}=e,r=Kl();r=e["aria-label"]?void 0:r;let i=I.useRef(!1);return I.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Eu(t.current);let a=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(i.current=!0,t.current&&(t.current.blur(),Eu(t.current)),i.current=!1)},500);return()=>{clearTimeout(a)}}},[t]),jZ(),{dialogProps:{...qs(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:a=>{i.current&&a.stopPropagation()}},titleProps:{id:r}}}function Il(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function c1(e,t,n,r,i){let a={};for(let o in t)a[o]=Math.floor(t[o]/2),a[o]>0&&t[o]%2===0&&a[o]--;let s=lu(e,t,n).subtract(a);return Vf(e,s,t,n,r,i)}function lu(e,t,n,r,i){let a=e;return t.years?a=_G(e):t.months?a=od(e):t.weeks&&(a=Rf(e,n)),Vf(e,a,t,n,r,i)}function f1(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=lu(e,t,n).subtract(a);return Vf(e,s,t,n,r,i)}function Vf(e,t,n,r,i,a){if(i&&e.compare(i)>=0){let s=n3(t,lu(Ur(i),n,r));s&&(t=s)}if(a&&e.compare(a)<=0){let s=t3(t,f1(Ur(a),n,r));s&&(t=s)}return t}function so(e,t,n){if(t){let r=n3(e,Ur(t));r&&(e=r)}if(n){let r=t3(e,Ur(n));r&&(e=r)}return e}function nR(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 rR(e){let t=I.useMemo(()=>new qi(e.locale),[e.locale]),n=I.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:s,maxValue:o,selectionAlignment:c,isDateUnavailable:d,pageBehavior:h="visible",firstDayOfWeek:m}=e,g=I.useMemo(()=>i(n.calendar),[i,n.calendar]);var b;let[w,x]=wi(e.value,(b=e.defaultValue)!==null&&b!==void 0?b:null,e.onChange),A=I.useMemo(()=>w?Fn(Ur(w),g):null,[w,g]),C=I.useMemo(()=>w&&"timeZone"in w?w.timeZone:n.timeZone,[w,n.timeZone]),E=I.useMemo(()=>e.focusedValue?so(Fn(Ur(e.focusedValue),g),s,o):void 0,[e.focusedValue,g,s,o]),S=I.useMemo(()=>so(e.defaultFocusedValue?Fn(Ur(e.defaultFocusedValue),g):A||Fn(cm(C),g),s,o),[e.defaultFocusedValue,A,C,g,s,o]),[R,_]=wi(E,S,e.onFocusChange),[F,z]=I.useState(()=>{switch(c){case"start":return lu(R,a,r,s,o);case"end":return f1(R,a,r,s,o);case"center":default:return c1(R,a,r,s,o)}}),[ie,ge]=I.useState(e.autoFocus||!1),oe=I.useMemo(()=>{let ce={...a};return ce.days?ce.days--:ce.days=-1,F.add(ce)},[F,a]),[O,we]=I.useState(g);if(!lm(g,O)){let ce=Fn(R,g);z(c1(ce,a,r,s,o)),_(ce),we(g)}Il(R,s,o)?_(so(R,s,o)):R.compare(F)<0?z(f1(R,a,r,s,o)):R.compare(oe)>0&&z(lu(R,a,r,s,o));function Se(ce){ce=so(ce,s,o),_(ce)}function U(ce){if(!e.isDisabled&&!e.isReadOnly){let ue=ce;if(ue===null){x(null);return}if(ue=so(ue,s,o),ue=nR(ue,F,d),!ue)return;ue=Fn(ue,(w==null?void 0:w.calendar)||new qr),w&&"hour"in w?x(w.set(ue)):x(ue)}}let ee=I.useMemo(()=>A?d&&d(A)?!0:Il(A,s,o):!1,[A,d,s,o]),K=e.isInvalid||e.validationState==="invalid"||ee,k=K?"invalid":null,N=I.useMemo(()=>h==="visible"?a:A0(a),[h,a]);var te,j;return{isDisabled:(te=e.isDisabled)!==null&&te!==void 0?te:!1,isReadOnly:(j=e.isReadOnly)!==null&&j!==void 0?j:!1,value:A,setValue:U,visibleRange:{start:F,end:oe},minValue:s,maxValue:o,focusedDate:R,timeZone:C,validationState:k,isValueInvalid:K,setFocusedDate(ce){Se(ce),ge(!0)},focusNextDay(){Se(R.add({days:1}))},focusPreviousDay(){Se(R.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&Se(R.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&Se(R.subtract({weeks:1}))},focusNextPage(){let ce=F.add(N);_(so(R.add(N),s,o)),z(lu(Vf(R,ce,N,r,s,o),N,r))},focusPreviousPage(){let ce=F.subtract(N);_(so(R.subtract(N),s,o)),z(lu(Vf(R,ce,N,r,s,o),N,r))},focusSectionStart(){a.days?Se(F):a.weeks?Se(Rf(R,r)):(a.months||a.years)&&Se(od(R))},focusSectionEnd(){a.days?Se(oe):a.weeks?Se(RG(R,r)):(a.months||a.years)&&Se(Hb(R))},focusNextSection(ce){if(!ce&&!a.days){Se(R.add(A0(a)));return}a.days?this.focusNextPage():a.weeks?Se(R.add({months:1})):(a.months||a.years)&&Se(R.add({years:1}))},focusPreviousSection(ce){if(!ce&&!a.days){Se(R.subtract(A0(a)));return}a.days?this.focusPreviousPage():a.weeks?Se(R.subtract({months:1})):(a.months||a.years)&&Se(R.subtract({years:1}))},selectFocusedDate(){d&&d(R)||U(R)},selectDate(ce){U(ce)},isFocused:ie,setFocused:ge,isInvalid(ce){return Il(ce,s,o)},isSelected(ce){return A!=null&&Qn(ce,A)&&!this.isCellDisabled(ce)&&!this.isCellUnavailable(ce)},isCellFocused(ce){return ie&&R&&Qn(ce,R)},isCellDisabled(ce){return e.isDisabled||ce.compare(F)<0||ce.compare(oe)>0||this.isInvalid(ce)},isCellUnavailable(ce){return e.isDateUnavailable?e.isDateUnavailable(ce):!1},isPreviousVisibleRangeInvalid(){let ce=F.subtract({days:1});return Qn(ce,F)||this.isInvalid(ce)},isNextVisibleRangeInvalid(){let ce=oe.add({days:1});return Qn(ce,oe)||this.isInvalid(ce)},getDatesInWeek(ce,ue=F){let Ae=ue.add({weeks:ce}),_e=[];Ae=Rf(Ae,r,m);let Le=e3(Ae,r,m);for(let Ye=0;Ye<Le;Ye++)_e.push(null);for(;_e.length<7;){_e.push(Ae);let Ye=Ae.add({days:1});if(Qn(Ae,Ye))break;Ae=Ye}for(;_e.length<7;)_e.push(null);return _e}}}function A0(e){let t={...e};for(let n in e)t[n]=1;return t}function xX(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:s={months:1},minValue:o,maxValue:c,...d}=e,[h,m]=wi(t,n||null,r),[g,b]=I.useState(null),w="center";if(h&&h.start&&h.end){let N=c1(Ur(h.start),s,a,o,c).add(s).subtract({days:1});h.end.compare(N)>0&&(w="start")}let x=I.useRef(null),[A,C]=I.useState(null),E=I.useMemo(()=>n3(o,A==null?void 0:A.start),[o,A]),S=I.useMemo(()=>t3(c,A==null?void 0:A.end),[c,A]),R=rR({...d,value:h&&h.start,createCalendar:i,locale:a,visibleDuration:s,minValue:E,maxValue:S,selectionAlignment:w}),_=k=>{if(k&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const N=OD(k,R,-1),te=OD(k,R,1);x.current={start:N,end:te},C(x.current)}else x.current=null,C(null)},[F,z]=I.useState(R.visibleRange);(!Wb(R.visibleRange.start,F.start)||!Wb(R.visibleRange.end,F.end))&&(_(g),z(R.visibleRange));let ie=k=>{k?(b(k),_(k)):(b(null),_(null))},ge=g?T0(g,R.focusedDate):h&&T0(h.start,h.end),oe=k=>{if(e.isReadOnly)return;const N=so(k,E,S),te=nR(N,R.visibleRange.start,e.isDateUnavailable);if(te)if(!g)ie(te);else{let j=T0(g,te);j&&m({start:kD(j.start,h==null?void 0:h.start),end:kD(j.end,h==null?void 0:h.end)}),ie(null)}},[O,we]=I.useState(!1),{isDateUnavailable:Se}=e,U=I.useMemo(()=>!h||g?!1:Se&&(Se(h.start)||Se(h.end))?!0:Il(h.start,o,c)||Il(h.end,o,c),[Se,h,g,o,c]),ee=e.isInvalid||e.validationState==="invalid"||U;return{...R,value:h,setValue:m,anchorDate:g,setAnchorDate:ie,highlightedRange:ge,validationState:ee?"invalid":null,isValueInvalid:ee,selectFocusedDate(){oe(R.focusedDate)},selectDate:oe,highlightDate(k){g&&R.setFocusedDate(k)},isSelected(k){return!!(ge&&k.compare(ge.start)>=0&&k.compare(ge.end)<=0&&!R.isCellDisabled(k)&&!R.isCellUnavailable(k))},isInvalid(k){var N,te;return R.isInvalid(k)||Il(k,(N=x.current)===null||N===void 0?void 0:N.start,(te=x.current)===null||te===void 0?void 0:te.end)},isDragging:O,setDragging:we}}function T0(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:Ur(e),end:Ur(t)})}function kD(e,t){return e=Fn(e,(t==null?void 0:t.calendar)||new qr),t&&"hour"in t?t.set(e):e}function OD(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 d1{*[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 o of s.childNodes)n(o)};for(let s of t)n(s);let r=null,i=0;for(let[s,o]of this.keyMap)r?(r.nextKey=s,o.prevKey=r.key):(this.firstKey=s,o.prevKey=void 0),o.type==="item"&&(o.index=i++),r=o,r.nextKey=void 0;var a;this.lastKey=(a=r==null?void 0:r.key)!==null&&a!==void 0?a:null}}class da extends Set{constructor(t,n,r){super(t),t instanceof da?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function wX(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function CX(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e,s=I.useRef(!1),[,o]=I.useState(!1),c=I.useRef(null),d=I.useRef(null),[,h]=I.useState(null),m=I.useMemo(()=>ID(e.selectedKeys),[e.selectedKeys]),g=I.useMemo(()=>ID(e.defaultSelectedKeys,new da),[e.defaultSelectedKeys]),[b,w]=wi(m,g,e.onSelectionChange),x=I.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[A,C]=I.useState(i);i==="replace"&&A==="toggle"&&typeof b=="object"&&b.size===0&&C("replace");let E=I.useRef(i);return I.useEffect(()=>{i!==E.current&&(C(i),E.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:A,setSelectionBehavior:C,get isFocused(){return s.current},setFocused(S){s.current=S,o(S)},get focusedKey(){return c.current},get childFocusStrategy(){return d.current},setFocusedKey(S,R="first"){c.current=S,d.current=R,h(S)},selectedKeys:b,setSelectedKeys(S){(r||!wX(S,b))&&w(S)},disabledKeys:x,disabledBehavior:a}}function ID(e,t){return e?e==="all"?"all":new da(e):t}class g3{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&&D0(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&&D0(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 da([n],n,n);else{let s=this.state.selectedKeys;var i;let o=(i=s.anchorKey)!==null&&i!==void 0?i:n;r=new da(s,o,n);var a;for(let c of this.getKeyRange(o,(a=s.currentKey)!==null&&a!==void 0?a:n))r.delete(c);for(let c of this.getKeyRange(n,o))this.canSelectItem(c)&&r.add(c)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?D0(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 da(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 da([n],n,n):new da;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new da;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=nX(vm(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 da)}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}withCollection(t){return new g3(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}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 EX(e){let{filter:t,layoutDelegate:n}=e,r=CX(e),i=I.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=I.useCallback(d=>t?new d1(t(d)):new d1(d),[t]),s=I.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),o=tX(e,a,s),c=I.useMemo(()=>new g3(o,r,{layoutDelegate:n}),[o,r,n]);return SX(o,c),{collection:o,disabledKeys:i,selectionManager:c}}function SX(e,t){const n=I.useRef(null);I.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){const h=n.current.getItem(t.focusedKey),m=[...n.current.getKeys()].map(C=>{const E=n.current.getItem(C);return(E==null?void 0:E.type)==="item"?E:null}).filter(C=>C!==null),g=[...e.getKeys()].map(C=>{const E=e.getItem(C);return(E==null?void 0:E.type)==="item"?E:null}).filter(C=>C!==null);var r,i;const b=((r=m==null?void 0:m.length)!==null&&r!==void 0?r:0)-((i=g==null?void 0:g.length)!==null&&i!==void 0?i:0);var a,s,o;let w=Math.min(b>1?Math.max(((a=h==null?void 0:h.index)!==null&&a!==void 0?a:0)-b+1,0):(s=h==null?void 0:h.index)!==null&&s!==void 0?s:0,((o=g==null?void 0:g.length)!==null&&o!==void 0?o:0)-1),x=null,A=!1;for(;w>=0;){if(!t.isDisabled(g[w].key)){x=g[w];break}if(w<g.length-1&&!A)w++;else{A=!0;var c,d;w>((c=h==null?void 0:h.index)!==null&&c!==void 0?c:0)&&(w=(d=h==null?void 0:h.index)!==null&&d!==void 0?d:0),w--}}t.setFocusedKey(x?x.key:null)}n.current=e},[e,t])}function DX(e){var t;let[n,r]=wi(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=I.useMemo(()=>n!=null?[n]:[],[n]),{collection:a,disabledKeys:s,selectionManager:o}=EX({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:d=>{if(d==="all")return;var h;let m=(h=d.values().next().value)!==null&&h!==void 0?h:null;m===n&&e.onSelectionChange&&e.onSelectionChange(m),r(m)}}),c=n!=null?a.getItem(n):null;return{collection:a,disabledKeys:s,selectionManager:o,selectedKey:n,setSelectedKey:r,selectedItem:c}}function v3(e){let[t,n]=wi(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=I.useCallback(()=>{n(!0)},[n]),i=I.useCallback(()=>{n(!1)},[n]),a=I.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}function AX(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:a,shouldCloseOnBlur:s=!0}=e,[o,c]=I.useState(!1),[d,h]=I.useState(!1),[m,g]=I.useState(null),b=De=>{e.onSelectionChange&&e.onSelectionChange(De),De===C&&(Ae(),j())};var w;let{collection:x,selectionManager:A,selectedKey:C,setSelectedKey:E,selectedItem:S,disabledKeys:R}=DX({...e,onSelectionChange:b,items:(w=e.items)!==null&&w!==void 0?w:e.defaultItems}),[_,F]=wi(e.inputValue,LD(e.defaultInputValue,C,x)||"",e.onInputChange),[z]=I.useState(C),[ie]=I.useState(_),ge=x,oe=I.useMemo(()=>e.items!=null||!n?x:TX(x,_,n),[x,_,n,e.items]),[O,we]=I.useState(oe),Se=I.useRef("focus"),ee=v3({...e,onOpenChange:De=>{e.onOpenChange&&e.onOpenChange(De,De?Se.current:void 0),A.setFocused(De),De||A.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),K=(De=null,Me)=>{let Xe=Me==="manual"||Me==="focus"&&r==="focus";(i||oe.size>0||Xe&&ge.size>0||e.items)&&(Xe&&!ee.isOpen&&e.items===void 0&&c(!0),Se.current=Me,g(De),ee.open())},k=(De=null,Me)=>{let Xe=Me==="manual"||Me==="focus"&&r==="focus";!(i||oe.size>0||Xe&&ge.size>0||e.items)&&!ee.isOpen||(Xe&&!ee.isOpen&&e.items===void 0&&c(!0),ee.isOpen||(Se.current=Me),te(De))},N=I.useCallback(()=>{we(o?ge:oe)},[o,ge,oe]),te=I.useCallback((De=null)=>{ee.isOpen&&N(),g(De),ee.toggle()},[ee,N]),j=I.useCallback(()=>{ee.isOpen&&(N(),ee.close())},[ee,N]),[ce,ue]=I.useState(_),Ae=()=>{var De,Me;let Xe=C!=null&&(Me=(De=x.getItem(C))===null||De===void 0?void 0:De.textValue)!==null&&Me!==void 0?Me:"";ue(Xe),F(Xe)};var _e,Le;let Ye=I.useRef((Le=(_e=e.selectedKey)!==null&&_e!==void 0?_e:e.defaultSelectedKey)!==null&&Le!==void 0?Le:null);var Qe;let Ue=I.useRef(C!=null&&(Qe=(t=x.getItem(C))===null||t===void 0?void 0:t.textValue)!==null&&Qe!==void 0?Qe:"");I.useEffect(()=>{var De;d&&(oe.size>0||i)&&!ee.isOpen&&_!==ce&&r!=="manual"&&K(null,"input"),!o&&!i&&ee.isOpen&&oe.size===0&&j(),C!=null&&C!==Ye.current&&j(),_!==ce&&(A.setFocusedKey(null),c(!1),_===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&E(null)),C!==Ye.current&&(e.inputValue===void 0||e.selectedKey===void 0)?Ae():ce!==_&&ue(_);var Me;let Xe=C!=null&&(Me=(De=x.getItem(C))===null||De===void 0?void 0:De.textValue)!==null&&Me!==void 0?Me:"";!d&&C!=null&&e.inputValue===void 0&&C===Ye.current&&Ue.current!==Xe&&(ue(Xe),F(Xe)),Ye.current=C,Ue.current=Xe});let Ge=cd({...e,value:I.useMemo(()=>({inputValue:_,selectedKey:C}),[_,C])}),Ie=()=>{a&&C==null?Ne():Te()},Ne=()=>{Ye.current=null,E(null),j()},Te=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var De,Me;(De=e.onSelectionChange)===null||De===void 0||De.call(e,C);var Xe;let tt=C!=null&&(Xe=(Me=x.getItem(C))===null||Me===void 0?void 0:Me.textValue)!==null&&Xe!==void 0?Xe:"";ue(tt),j()}else Ae(),j()};const He=()=>{if(a){var De,Me;const Xe=C!=null&&(Me=(De=x.getItem(C))===null||De===void 0?void 0:De.textValue)!==null&&Me!==void 0?Me:"";_===Xe?Te():Ne()}else Te()};let ht=()=>{ee.isOpen&&A.focusedKey!=null?C===A.focusedKey?Te():E(A.focusedKey):He()},Ht=I.useRef(_),$t=De=>{De?(Ht.current=_,r==="focus"&&!e.isReadOnly&&K(null,"focus")):(s&&He(),_!==Ht.current&&Ge.commitValidation()),h(De)},_t=I.useMemo(()=>ee.isOpen?o?ge:oe:O,[ee.isOpen,ge,oe,o,O]);var zr;let Qt=(zr=e.defaultSelectedKey)!==null&&zr!==void 0?zr:z;var be;return{...Ge,...ee,focusStrategy:m,toggle:k,open:K,close:He,selectionManager:A,selectedKey:C,defaultSelectedKey:Qt,setSelectedKey:E,disabledKeys:R,isFocused:d,setFocused:$t,selectedItem:S,collection:_t,inputValue:_,defaultInputValue:(be=LD(e.defaultInputValue,Qt,x))!==null&&be!==void 0?be:ie,setInputValue:F,commit:ht,revert:Ie}}function TX(e,t,n){return new d1(iR(e,e,t,n))}function iR(e,t,n,r){let i=[];for(let a of t)if(a.type==="section"&&a.hasChildNodes){let s=iR(e,vm(a,e),n,r);[...s].some(o=>o.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}function LD(e,t,n){if(e==null){var r,i;if(t!=null)return(i=(r=n.getItem(t))===null||r===void 0?void 0:r.textValue)!==null&&i!==void 0?i:""}return e}var aR={};aR={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var sR={};sR={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var oR={};oR={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 uR={};uR={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 lR={};lR={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Startdatum 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 cR={};cR={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var fR={};fR={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 dR={};dR={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 hR={};hR={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 pR={};pR={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 mR={};mR={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 gR={};gR={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var vR={};vR={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 yR={};yR={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 bR={};bR={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 $R={};$R={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var xR={};xR={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var wR={};wR={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 CR={};CR={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 ER={};ER={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 SR={};SR={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 DR={};DR={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 AR={};AR={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 TR={};TR={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 PR={};PR={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 _R={};_R={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var MR={};MR={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 FR={};FR={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 RR={};RR={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 kR={};kR={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 OR={};OR={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 IR={};IR={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var LR={};LR={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var VR={};VR={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var BR={};BR={"ar-AE":aR,"bg-BG":sR,"cs-CZ":oR,"da-DK":uR,"de-DE":lR,"el-GR":cR,"en-US":fR,"es-ES":dR,"et-EE":hR,"fi-FI":pR,"fr-FR":mR,"he-IL":gR,"hr-HR":vR,"hu-HU":yR,"it-IT":bR,"ja-JP":$R,"ko-KR":xR,"lt-LT":wR,"lv-LV":CR,"nb-NO":ER,"nl-NL":SR,"pl-PL":DR,"pt-BR":AR,"pt-PT":TR,"ro-RO":PR,"ru-RU":_R,"sk-SK":MR,"sl-SI":FR,"sr-SP":RR,"sv-SE":kR,"tr-TR":OR,"uk-UA":IR,"zh-CN":LR,"zh-TW":VR};function PX(e){return e&&e.__esModule?e.default:e}const NR=new So(PX(BR));function jR(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function yp(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,s=e!=null&&t!=null&&e.compare(t)<0,o=e!=null&&(r==null?void 0:r(e))||!1,c=a||s||o,d=[];if(c){let h=jR(),m=So.getGlobalDictionaryForPackage("@react-stately/datepicker")||NR,g=new U5(h,m),b=new qi(h,Is({},i)),w=b.resolvedOptions().timeZone;s&&t!=null&&d.push(g.format("rangeUnderflow",{minValue:b.format(t.toDate(w))})),a&&n!=null&&d.push(g.format("rangeOverflow",{maxValue:b.format(n.toDate(w))})),o&&d.push(g.format("unavailableDate"))}return{isInvalid:c,validationErrors:d,validationDetails:{badInput:o,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:s,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!c}}}function _X(e,t,n,r,i){var a;let s=yp((a=e==null?void 0:e.start)!==null&&a!==void 0?a:null,t,n,r,i);var o;let c=yp((o=e==null?void 0:e.end)!==null&&o!==void 0?o:null,t,n,r,i),d=gp(s,c);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let h=So.getGlobalDictionaryForPackage("@react-stately/datepicker")||NR;d=gp(d,{isInvalid:!0,validationErrors:[h.getStringForLocale("rangeReversed",jR())],validationDetails:{...hm,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return d}const MX={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},FX={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Is(e,t){e={...t.shouldForceLeadingZeros?FX:MX,...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 o=i.indexOf(r);if(o<0&&(o=2),s>o)throw new Error("maxGranularity must be greater than granularity");let c=i.slice(s,o+1).reduce((h,m)=>(h[m]=e[m],h),{});return t.hourCycle!=null&&(c.hour12=t.hourCycle===12),c.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(c.timeZoneName="short"),t.showEra&&s===0&&(c.era="short"),c}function yl(e){return e&&"hour"in e?e:new ud}function KR(e,t){if(e===null)return null;if(e)return Fn(e,t)}function Qc(e,t,n,r){if(e)return KR(e,n);let i=Fn(H5(r??sd()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?Ur(i):r?i:ya(i)}function y3(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]=I.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 RX(e){let t=v3(e),[n,r]=wi(e.value,e.defaultValue||null,e.onChange),[i]=I.useState(n),a=n||e.placeholderValue||null,[s,o]=y3(a,e.granularity),c=n!=null?n.toDate(o??"UTC"):null,d=s==="hour"||s==="minute"||s==="second";var h;let m=(h=e.shouldCloseOnSelect)!==null&&h!==void 0?h:!0,[g,b]=I.useState(null),[w,x]=I.useState(null);if(n&&(g=n,"hour"in n&&(w=n)),a&&!(s in a))throw new Error("Invalid granularity "+s+" for value "+a.toString());let A=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",C=I.useMemo(()=>({granularity:s,timeZone:o,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:A}),[s,e.hourCycle,e.shouldForceLeadingZeros,o,e.hideTimeZone,A]),{minValue:E,maxValue:S,isDateUnavailable:R}=e,_=I.useMemo(()=>yp(n,E,S,R,C),[n,E,S,R,C]),F=cd({...e,value:n,builtinValidation:_}),z=F.displayValidation.isInvalid,ie=e.validationState||(z?"invalid":null),ge=(Se,U)=>{r("timeZone"in U?U.set(Ur(Se)):ya(Se,U)),b(null),x(null),F.commitValidation()},oe=Se=>{let U=typeof m=="function"?m():m;d?w||U?ge(Se,w||yl(e.defaultValue||e.placeholderValue)):b(Se):(r(Se),F.commitValidation()),U&&t.setOpen(!1)},O=Se=>{g&&Se?ge(g,Se):x(Se)};var we;return{...F,value:n,defaultValue:(we=e.defaultValue)!==null&&we!==void 0?we:i,setValue:r,dateValue:g,timeValue:w,setDateValue:oe,setTimeValue:O,granularity:s,hasTime:d,...t,setOpen(Se){!Se&&!n&&g&&d&&ge(g,w||yl(e.defaultValue||e.placeholderValue)),t.setOpen(Se)},validationState:ie,isInvalid:z,formatValue(Se,U){if(!c)return"";let ee=Is(U,C);return new qi(Se,ee).format(c)},getDateFormatter(Se,U){let ee={...C,...U},K=Is({},ee);return new qi(Se,K)}}}const kX=new So({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 OX(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?kX.getStringForLocale(e,n):"––"}const kh={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},VD={year:5,month:2,day:7,hour:2,minute:15,second:15},UR={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function qR(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:a=!1,isRequired:s=!1,minValue:o,maxValue:c,isDateUnavailable:d}=e,h=e.value||e.defaultValue||e.placeholderValue||null,[m,g]=y3(h,e.granularity),b=g||"UTC";if(h&&!(m in h))throw new Error("Invalid granularity "+m+" for value "+h.toString());let w=I.useMemo(()=>new qi(t),[t]),x=I.useMemo(()=>n(w.resolvedOptions().calendar),[n,w]);var A;let[C,E]=wi(e.value,(A=e.defaultValue)!==null&&A!==void 0?A:null,e.onChange),[S]=I.useState(C),R=I.useMemo(()=>{var Ie;return(Ie=KR(C,x))!==null&&Ie!==void 0?Ie:null},[C,x]),[_,F]=I.useState(()=>Qc(e.placeholderValue,m,x,g)),z=R||_,ie=x.identifier==="gregory"&&z.era==="BC",ge=I.useMemo(()=>{var Ie;return{granularity:m,maxGranularity:(Ie=e.maxGranularity)!==null&&Ie!==void 0?Ie:"year",timeZone:g,hideTimeZone:r,hourCycle:e.hourCycle,showEra:ie,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,m,e.hourCycle,e.shouldForceLeadingZeros,g,r,ie]),oe=I.useMemo(()=>Is({},ge),[ge]),O=I.useMemo(()=>new qi(t,oe),[t,oe]),we=I.useMemo(()=>O.resolvedOptions(),[O]),Se=I.useMemo(()=>O.formatToParts(new Date).filter(Ie=>kh[Ie.type]).reduce((Ie,Ne)=>(Ie[UR[Ne.type]||Ne.type]=!0,Ie),{}),[O]),[U,ee]=I.useState(()=>e.value||e.defaultValue?{...Se}:{}),K=I.useRef(null),k=I.useRef(x);I.useEffect(()=>{lm(x,k.current)||(k.current=x,F(Ie=>Object.keys(U).length>0?Fn(Ie,x):Qc(e.placeholderValue,m,x,g)))},[x,m,U,g,e.placeholderValue]),C&&Object.keys(U).length<Object.keys(Se).length&&(U={...Se},ee(U)),C==null&&Object.keys(U).length===Object.keys(Se).length&&(U={},ee(U),F(Qc(e.placeholderValue,m,x,g)));let N=R&&Object.keys(U).length>=Object.keys(Se).length?R:_,te=Ie=>{if(e.isDisabled||e.isReadOnly)return;let Ne=Object.keys(U),Te=Object.keys(Se);Ie==null?(E(null),F(Qc(e.placeholderValue,m,x,g)),ee({})):Ne.length===0&&K.current==null||Ne.length>=Te.length||Ne.length===Te.length-1&&Se.dayPeriod&&!U.dayPeriod&&K.current!=="dayPeriod"?(Ne.length===0&&(U={...Se},ee(U)),Ie=Fn(Ie,(h==null?void 0:h.calendar)||new qr),E(Ie)):F(Ie),K.current=null},j=I.useMemo(()=>N.toDate(b),[N,b]),ce=I.useMemo(()=>IX(j,U,O,we,N,x,t,m),[j,U,O,we,N,x,t,m]);Se.era&&U.year&&!U.era?(U.era=!0,ee({...U})):!Se.era&&U.era&&(delete U.era,ee({...U}));let ue=Ie=>{U[Ie]=!0,Ie==="year"&&Se.era&&(U.era=!0),ee({...U})},Ae=(Ie,Ne)=>{if(U[Ie])te(LX(N,Ie,Ne,we));else{ue(Ie);let Te=Object.keys(U),He=Object.keys(Se);(Te.length>=He.length||Te.length===He.length-1&&Se.dayPeriod&&!U.dayPeriod)&&te(N)}},_e=I.useMemo(()=>yp(C,o,c,d,ge),[C,o,c,d,ge]),Le=cd({...e,value:C,builtinValidation:_e}),Ye=Le.displayValidation.isInvalid,Qe=e.validationState||(Ye?"invalid":null);var Ue,Ge;return{...Le,value:R,defaultValue:(Ue=e.defaultValue)!==null&&Ue!==void 0?Ue:S,dateValue:j,calendar:x,setValue:te,segments:ce,dateFormatter:O,validationState:Qe,isInvalid:Ye,granularity:m,maxGranularity:(Ge=e.maxGranularity)!==null&&Ge!==void 0?Ge:"year",isDisabled:i,isReadOnly:a,isRequired:s,increment(Ie){Ae(Ie,1)},decrement(Ie){Ae(Ie,-1)},incrementPage(Ie){Ae(Ie,VD[Ie]||1)},decrementPage(Ie){Ae(Ie,-(VD[Ie]||1))},setSegment(Ie,Ne){ue(Ie),te(VX(N,Ie,Ne,we))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let Ie=Object.keys(U),Ne=Object.keys(Se);Ie.length===Ne.length-1&&Se.dayPeriod&&!U.dayPeriod&&(U={...Se},ee(U),te(N.copy()))},clearSegment(Ie){delete U[Ie],K.current=Ie,ee({...U});let Ne=Qc(e.placeholderValue,m,x,g),Te=N;if(Ie==="dayPeriod"&&"hour"in N&&"hour"in Ne){let He=N.hour>=12,ht=Ne.hour>=12;He&&!ht?Te=N.set({hour:N.hour-12}):!He&&ht&&(Te=N.set({hour:N.hour+12}))}else Ie==="hour"&&"hour"in N&&N.hour>=12&&U.dayPeriod?Te=N.set({hour:Ne.hour+12}):Ie in N&&(Te=N.set({[Ie]:Ne[Ie]}));E(null),te(Te)},formatValue(Ie){if(!R)return"";let Ne=Is(Ie,ge);return new qi(t,Ne).format(j)},getDateFormatter(Ie,Ne){let Te={...ge,...Ne},He=Is({},Te);return new qi(Ie,He)}}}function IX(e,t,n,r,i,a,s,o){let c=["hour","minute","second"],d=n.formatToParts(e),h=[];for(let m of d){let g=UR[m.type]||m.type,b=kh[g];g==="era"&&a.getEras().length===1&&(b=!1);let w=kh[g]&&!t[g],x=kh[g]?OX(g,m.value,s):null,A={type:g,text:w?x:m.value,...mh(i,g,r),isPlaceholder:w,placeholder:x,isEditable:b};g==="hour"?(h.push({type:"literal",text:"",...mh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1}),h.push(A),g===o&&h.push({type:"literal",text:"",...mh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):c.includes(g)&&g===o?(h.push(A),h.push({type:"literal",text:"",...mh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):h.push(A)}return h}function mh(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:MG(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:FG(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 LX(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 VX(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 BX(e){var t,n;let r=v3(e),[i,a]=wi(e.value,e.defaultValue||null,e.onChange),[s]=I.useState(i),[o,c]=I.useState(()=>i||{start:null,end:null});i==null&&o.start&&o.end&&(o={start:null,end:null},c(o));let d=i||o,h=N=>{d=N||{start:null,end:null},c(d),Qo(d)?a(d):a(null)},m=(d==null?void 0:d.start)||(d==null?void 0:d.end)||e.placeholderValue||null,[g,b]=y3(m,e.granularity),w=g==="hour"||g==="minute"||g==="second";var x;let A=(x=e.shouldCloseOnSelect)!==null&&x!==void 0?x:!0,[C,E]=I.useState(null),[S,R]=I.useState(null);d&&Qo(d)&&(C=d,"hour"in d.start&&(S=d));let _=(N,te)=>{h({start:"timeZone"in te.start?te.start.set(Ur(N.start)):ya(N.start,te.start),end:"timeZone"in te.end?te.end.set(Ur(N.end)):ya(N.end,te.end)}),E(null),R(null),U.commitValidation()},F=N=>{let te=typeof A=="function"?A():A;w?Qo(N)&&(te||S!=null&&S.start&&(S!=null&&S.end))?_(N,{start:(S==null?void 0:S.start)||yl(e.placeholderValue),end:(S==null?void 0:S.end)||yl(e.placeholderValue)}):E(N):Qo(N)?(h(N),U.commitValidation()):E(N),te&&r.setOpen(!1)},z=N=>{Qo(C)&&Qo(N)?_(C,N):R(N)},ie=(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",ge=I.useMemo(()=>({granularity:g,timeZone:b,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:ie}),[g,e.hourCycle,e.shouldForceLeadingZeros,b,e.hideTimeZone,ie]),{minValue:oe,maxValue:O,isDateUnavailable:we}=e,Se=I.useMemo(()=>_X(d,oe,O,we,ge),[d,oe,O,we,ge]),U=cd({...e,value:i,name:I.useMemo(()=>[e.startName,e.endName].filter(N=>N!=null),[e.startName,e.endName]),builtinValidation:Se}),ee=U.displayValidation.isInvalid,K=e.validationState||(ee?"invalid":null);var k;return{...U,value:d,defaultValue:(k=e.defaultValue)!==null&&k!==void 0?k:s,setValue:h,dateRange:C,timeRange:S,granularity:g,hasTime:w,setDate(N,te){var j,ce;F(N==="start"?{start:te,end:(j=C==null?void 0:C.end)!==null&&j!==void 0?j:null}:{start:(ce=C==null?void 0:C.start)!==null&&ce!==void 0?ce:null,end:te})},setTime(N,te){var j,ce;z(N==="start"?{start:te,end:(j=S==null?void 0:S.end)!==null&&j!==void 0?j:null}:{start:(ce=S==null?void 0:S.start)!==null&&ce!==void 0?ce:null,end:te})},setDateTime(N,te){var j,ce;h(N==="start"?{start:te,end:(j=d==null?void 0:d.end)!==null&&j!==void 0?j:null}:{start:(ce=d==null?void 0:d.start)!==null&&ce!==void 0?ce:null,end:te})},setDateRange:F,setTimeRange:z,...r,setOpen(N){!N&&!(d!=null&&d.start&&(d!=null&&d.end))&&Qo(C)&&w&&_(C,{start:(S==null?void 0:S.start)||yl(e.placeholderValue),end:(S==null?void 0:S.end)||yl(e.placeholderValue)}),r.setOpen(N)},validationState:K,isInvalid:ee,formatValue(N,te){if(!d||!d.start||!d.end)return null;let j="timeZone"in d.start?d.start.timeZone:void 0,ce=e.granularity||(d.start&&"minute"in d.start?"minute":"day"),ue="timeZone"in d.end?d.end.timeZone:void 0,Ae=e.granularity||(d.end&&"minute"in d.end?"minute":"day"),_e=Is(te,{granularity:ce,timeZone:j,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"}),Le=d.start.toDate(j||"UTC"),Ye=d.end.toDate(ue||"UTC"),Qe=new qi(N,_e),Ue;if(j===ue&&ce===Ae&&d.start.compare(d.end)!==0){try{let Ge=Qe.formatRangeToParts(Le,Ye),Ie=-1;for(let He=0;He<Ge.length;He++){let ht=Ge[He];if(ht.source==="shared"&&ht.type==="literal")Ie=He;else if(ht.source==="endRange")break}let Ne="",Te="";for(let He=0;He<Ge.length;He++)He<Ie?Ne+=Ge[He].value:He>Ie&&(Te+=Ge[He].value);return{start:Ne,end:Te}}catch{}Ue=Qe}else{let Ge=Is(te,{granularity:Ae,timeZone:ue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Ue=new qi(N,Ge)}return{start:Qe.format(Le),end:Ue.format(Ye)}},getDateFormatter(N,te){let j={...ge,...te},ce=Is({},j);return new qi(N,ce)}}}function Qo(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function NX(e){let{placeholderValue:t=new ud,minValue:n,maxValue:r,defaultValue:i,granularity:a,validate:s}=e,[o,c]=wi(e.value,i??null,e.onChange),d=o||t,h=d&&"day"in d?d:void 0,m=i&&"timeZone"in i?i.timeZone:void 0,g=I.useMemo(()=>{let R=d&&"timeZone"in d?d.timeZone:void 0;return(R||m)&&t?e_(dl(t),R||m):dl(t)},[t,d,m]),b=I.useMemo(()=>dl(n,h),[n,h]),w=I.useMemo(()=>dl(r,h),[r,h]),x=I.useMemo(()=>o&&"day"in o?HS(o):o,[o]),A=I.useMemo(()=>o==null?null:dl(o),[o]),C=I.useMemo(()=>i==null?null:dl(i),[i]);return{...qR({...e,value:A,defaultValue:C,minValue:b,maxValue:w,onChange:R=>{c(h||m?R:R&&HS(R))},granularity:a||"minute",maxGranularity:"hour",placeholderValue:g??void 0,createCalendar:()=>new qr,validate:I.useCallback(()=>s==null?void 0:s(o),[s,o])}),timeValue:x}}function dl(e,t=cm(sd())){return e?"day"in e?e:ya(t,e):null}var P0,BD;function jX(){if(BD)return P0;BD=1;var e=M4();function t(n,r){return e(n,r)}return P0=t,P0}var KX=jX();const UX=yr(KX);var Oh={exports:{}},qX=Oh.exports,ND;function zX(){return ND||(ND=1,function(e,t){(function(n,r){e.exports=r()})(qX,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",s="second",o="minute",c="hour",d="day",h="week",m="month",g="quarter",b="year",w="date",x="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(U){var ee=["th","st","nd","rd"],K=U%100;return"["+U+(ee[(K-20)%10]||ee[K]||ee[0])+"]"}},S=function(U,ee,K){var k=String(U);return!k||k.length>=ee?U:""+Array(ee+1-k.length).join(K)+U},R={s:S,z:function(U){var ee=-U.utcOffset(),K=Math.abs(ee),k=Math.floor(K/60),N=K%60;return(ee<=0?"+":"-")+S(k,2,"0")+":"+S(N,2,"0")},m:function U(ee,K){if(ee.date()<K.date())return-U(K,ee);var k=12*(K.year()-ee.year())+(K.month()-ee.month()),N=ee.clone().add(k,m),te=K-N<0,j=ee.clone().add(k+(te?-1:1),m);return+(-(k+(K-N)/(te?N-j:j-N))||0)},a:function(U){return U<0?Math.ceil(U)||0:Math.floor(U)},p:function(U){return{M:m,y:b,w:h,d,D:w,h:c,m:o,s,ms:a,Q:g}[U]||String(U||"").toLowerCase().replace(/s$/,"")},u:function(U){return U===void 0}},_="en",F={};F[_]=E;var z="$isDayjsObject",ie=function(U){return U instanceof we||!(!U||!U[z])},ge=function U(ee,K,k){var N;if(!ee)return _;if(typeof ee=="string"){var te=ee.toLowerCase();F[te]&&(N=te),K&&(F[te]=K,N=te);var j=ee.split("-");if(!N&&j.length>1)return U(j[0])}else{var ce=ee.name;F[ce]=ee,N=ce}return!k&&N&&(_=N),N||!k&&_},oe=function(U,ee){if(ie(U))return U.clone();var K=typeof ee=="object"?ee:{};return K.date=U,K.args=arguments,new we(K)},O=R;O.l=ge,O.i=ie,O.w=function(U,ee){return oe(U,{locale:ee.$L,utc:ee.$u,x:ee.$x,$offset:ee.$offset})};var we=function(){function U(K){this.$L=ge(K.locale,null,!0),this.parse(K),this.$x=this.$x||K.x||{},this[z]=!0}var ee=U.prototype;return ee.parse=function(K){this.$d=function(k){var N=k.date,te=k.utc;if(N===null)return new Date(NaN);if(O.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var j=N.match(A);if(j){var ce=j[2]-1||0,ue=(j[7]||"0").substring(0,3);return te?new Date(Date.UTC(j[1],ce,j[3]||1,j[4]||0,j[5]||0,j[6]||0,ue)):new Date(j[1],ce,j[3]||1,j[4]||0,j[5]||0,j[6]||0,ue)}}return new Date(N)}(K),this.init()},ee.init=function(){var K=this.$d;this.$y=K.getFullYear(),this.$M=K.getMonth(),this.$D=K.getDate(),this.$W=K.getDay(),this.$H=K.getHours(),this.$m=K.getMinutes(),this.$s=K.getSeconds(),this.$ms=K.getMilliseconds()},ee.$utils=function(){return O},ee.isValid=function(){return this.$d.toString()!==x},ee.isSame=function(K,k){var N=oe(K);return this.startOf(k)<=N&&N<=this.endOf(k)},ee.isAfter=function(K,k){return oe(K)<this.startOf(k)},ee.isBefore=function(K,k){return this.endOf(k)<oe(K)},ee.$g=function(K,k,N){return O.u(K)?this[k]:this.set(N,K)},ee.unix=function(){return Math.floor(this.valueOf()/1e3)},ee.valueOf=function(){return this.$d.getTime()},ee.startOf=function(K,k){var N=this,te=!!O.u(k)||k,j=O.p(K),ce=function(Ge,Ie){var Ne=O.w(N.$u?Date.UTC(N.$y,Ie,Ge):new Date(N.$y,Ie,Ge),N);return te?Ne:Ne.endOf(d)},ue=function(Ge,Ie){return O.w(N.toDate()[Ge].apply(N.toDate("s"),(te?[0,0,0,0]:[23,59,59,999]).slice(Ie)),N)},Ae=this.$W,_e=this.$M,Le=this.$D,Ye="set"+(this.$u?"UTC":"");switch(j){case b:return te?ce(1,0):ce(31,11);case m:return te?ce(1,_e):ce(0,_e+1);case h:var Qe=this.$locale().weekStart||0,Ue=(Ae<Qe?Ae+7:Ae)-Qe;return ce(te?Le-Ue:Le+(6-Ue),_e);case d:case w:return ue(Ye+"Hours",0);case c:return ue(Ye+"Minutes",1);case o:return ue(Ye+"Seconds",2);case s:return ue(Ye+"Milliseconds",3);default:return this.clone()}},ee.endOf=function(K){return this.startOf(K,!1)},ee.$set=function(K,k){var N,te=O.p(K),j="set"+(this.$u?"UTC":""),ce=(N={},N[d]=j+"Date",N[w]=j+"Date",N[m]=j+"Month",N[b]=j+"FullYear",N[c]=j+"Hours",N[o]=j+"Minutes",N[s]=j+"Seconds",N[a]=j+"Milliseconds",N)[te],ue=te===d?this.$D+(k-this.$W):k;if(te===m||te===b){var Ae=this.clone().set(w,1);Ae.$d[ce](ue),Ae.init(),this.$d=Ae.set(w,Math.min(this.$D,Ae.daysInMonth())).$d}else ce&&this.$d[ce](ue);return this.init(),this},ee.set=function(K,k){return this.clone().$set(K,k)},ee.get=function(K){return this[O.p(K)]()},ee.add=function(K,k){var N,te=this;K=Number(K);var j=O.p(k),ce=function(_e){var Le=oe(te);return O.w(Le.date(Le.date()+Math.round(_e*K)),te)};if(j===m)return this.set(m,this.$M+K);if(j===b)return this.set(b,this.$y+K);if(j===d)return ce(1);if(j===h)return ce(7);var ue=(N={},N[o]=r,N[c]=i,N[s]=n,N)[j]||1,Ae=this.$d.getTime()+K*ue;return O.w(Ae,this)},ee.subtract=function(K,k){return this.add(-1*K,k)},ee.format=function(K){var k=this,N=this.$locale();if(!this.isValid())return N.invalidDate||x;var te=K||"YYYY-MM-DDTHH:mm:ssZ",j=O.z(this),ce=this.$H,ue=this.$m,Ae=this.$M,_e=N.weekdays,Le=N.months,Ye=N.meridiem,Qe=function(Ie,Ne,Te,He){return Ie&&(Ie[Ne]||Ie(k,te))||Te[Ne].slice(0,He)},Ue=function(Ie){return O.s(ce%12||12,Ie,"0")},Ge=Ye||function(Ie,Ne,Te){var He=Ie<12?"AM":"PM";return Te?He.toLowerCase():He};return te.replace(C,function(Ie,Ne){return Ne||function(Te){switch(Te){case"YY":return String(k.$y).slice(-2);case"YYYY":return O.s(k.$y,4,"0");case"M":return Ae+1;case"MM":return O.s(Ae+1,2,"0");case"MMM":return Qe(N.monthsShort,Ae,Le,3);case"MMMM":return Qe(Le,Ae);case"D":return k.$D;case"DD":return O.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return Qe(N.weekdaysMin,k.$W,_e,2);case"ddd":return Qe(N.weekdaysShort,k.$W,_e,3);case"dddd":return _e[k.$W];case"H":return String(ce);case"HH":return O.s(ce,2,"0");case"h":return Ue(1);case"hh":return Ue(2);case"a":return Ge(ce,ue,!0);case"A":return Ge(ce,ue,!1);case"m":return String(ue);case"mm":return O.s(ue,2,"0");case"s":return String(k.$s);case"ss":return O.s(k.$s,2,"0");case"SSS":return O.s(k.$ms,3,"0");case"Z":return j}return null}(Ie)||j.replace(":","")})},ee.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ee.diff=function(K,k,N){var te,j=this,ce=O.p(k),ue=oe(K),Ae=(ue.utcOffset()-this.utcOffset())*r,_e=this-ue,Le=function(){return O.m(j,ue)};switch(ce){case b:te=Le()/12;break;case m:te=Le();break;case g:te=Le()/3;break;case h:te=(_e-Ae)/6048e5;break;case d:te=(_e-Ae)/864e5;break;case c:te=_e/i;break;case o:te=_e/r;break;case s:te=_e/n;break;default:te=_e}return N?te:O.a(te)},ee.daysInMonth=function(){return this.endOf(m).$D},ee.$locale=function(){return F[this.$L]},ee.locale=function(K,k){if(!K)return this.$L;var N=this.clone(),te=ge(K,k,!0);return te&&(N.$L=te),N},ee.clone=function(){return O.w(this.$d,this)},ee.toDate=function(){return new Date(this.valueOf())},ee.toJSON=function(){return this.isValid()?this.toISOString():null},ee.toISOString=function(){return this.$d.toISOString()},ee.toString=function(){return this.$d.toUTCString()},U}(),Se=we.prototype;return oe.prototype=Se,[["$ms",a],["$s",s],["$m",o],["$H",c],["$W",d],["$M",m],["$y",b],["$D",w]].forEach(function(U){Se[U[1]]=function(ee){return this.$g(ee,U[0],U[1])}}),oe.extend=function(U,ee){return U.$i||(U(ee,we,oe),U.$i=!0),oe},oe.locale=ge,oe.isDayjs=ie,oe.unix=function(U){return oe(1e3*U)},oe.en=F[_],oe.Ls=F,oe.p={},oe})}(Oh)),Oh.exports}var zR=zX();const WX=yr(zR);var _0,jD;function HX(){if(jD)return _0;jD=1;var e=Ql(),t=ec(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return _0=r,_0}var GX=HX();const YX=yr(GX);var Ru=[["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",".. ... ...."],["Faroe Islands","fo","298",".. .. .."],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594","... .. .. .."],["French Polynesia","pf","689",{"/^44/":".. .. ..","/^80[0-5]/":"... .. .. ..",default:".. .. .. .."}],["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"],["Mayotte","yt","262","... .. .. ..",1,["269","639"]],["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","... .. .. ..",0],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Pierre & Miquelon","pm","508",{"/^708/":"... ... ...","/^8/":"... .. .. ..",default:".. .. .."}],["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"],["Wallis & Futuna","wf","681",".. .. .."],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],ZX="react-international-phone-",WR=(...e)=>e.filter(t=>!!t).join(" ").trim(),XX=(...e)=>WR(...e).split(" ").map(t=>`${ZX}${t}`).join(" "),Ar=({addPrefix:e,rawClassNames:t})=>WR(XX(...e),...t),JX=({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),o=a,c=0;for(let d of t.split("")){if(c>=s.length){if(!i&&d!==n){o+=d;continue}break}d===n?(o+=s[c],c+=1):o+=d}return o},ml=e=>e?/^\d+$/.test(e):!1,ym=e=>e.replace(/\D/g,""),QX=(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},eJ=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),tJ=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,a=d=>t.trimNonDigitsEnd?d.trim():d;if(!i)return r&&!i.length||n?a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):a(i);if(i=ym(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 d=t.dialCode.length,h=i.slice(0,d),m=i.slice(d);return{phoneLeftSide:h,phoneRightSide:m}},{phoneLeftSide:o,phoneRightSide:c}=s();return o=`${t.prefix}${o}${t.charAfterDialCode}`,c=JX({value:c,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&c.length===0}),t.disableDialCodeAndPrefix&&(o=""),a(`${o}${c}`)},nJ=({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 h=r-1;h>=0;h-=1)if(ml(t[h])){s=h;break}if(s===null){for(let h=0;h<t.length;h+=1)if(ml(n[h]))return h;return t.length}let o=0;for(let h=0;h<s;h+=1)ml(t[h])&&(o+=1);let c=0,d=0;for(let h=0;h<n.length&&(c+=1,ml(n[h])&&(d+=1),!(d>=o+1));h+=1);if(a!=="backward")for(;!ml(n[c])&&c<n.length;)c+=1;return c},Ih=({phone:e,prefix:t})=>e?`${t}${ym(e)}`:"";function h1({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:a,charAfterDialCode:s,forceDialCode:o,disableDialCodeAndPrefix:c,defaultMask:d,countryGuessingEnabled:h,disableFormatting:m}){let g=e;c&&(g=g.startsWith(`${a}`)?g:`${a}${t.dialCode}${g}`);let b=h?fJ({phone:g,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,w=(b==null?void 0:b.country)??t,x=tJ(g,{prefix:a,mask:lJ({phone:g,country:w,defaultMask:d,disableFormatting:m}),maskChar:HR,dialCode:w.dialCode,trimNonDigitsEnd:r,charAfterDialCode:s,forceDialCode:o,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:c}),A=h&&!(b!=null&&b.fullDialCodeMatch)?t:w;return{phone:Ih({phone:c?`${A.dialCode}${x}`:x,prefix:a}),inputValue:x,country:A}}var rJ=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},iJ=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:a,forceDialCode:s,disableDialCodeAndPrefix:o,countryGuessingEnabled:c,defaultMask:d,disableFormatting:h,countries:m})=>{let g=e.nativeEvent,b=g.inputType,w=rJ(b),x=!!(b!=null&&b.startsWith("insertFrom")),A=b==="insertText",C=(g==null?void 0:g.data)||void 0,E=e.target.value,S=e.target.selectionStart??0;if(b!=null&&b.includes("history"))return{inputValue:r,phone:Ih({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(A&&!ml(C)&&E!==i)return{inputValue:r,phone:Ih({phone:o?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:S-((C==null?void 0:C.length)??0),country:t};if(s&&!E.startsWith(`${i}${t.dialCode}`)&&!x){let ie=E?r:`${i}${t.dialCode}${a}`;return{inputValue:ie,phone:Ih({phone:ie,prefix:i}),cursorPosition:i.length+t.dialCode.length+a.length,country:t}}let{phone:R,inputValue:_,country:F}=h1({value:E,country:t,trimNonDigitsEnd:w==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:c,countries:m,prefix:i,charAfterDialCode:a,forceDialCode:s,disableDialCodeAndPrefix:o,disableFormatting:h,defaultMask:d}),z=nJ({cursorPositionAfterInput:S,phoneBeforeInput:r,phoneAfterInput:E,phoneAfterFormatted:_,leftOffset:s?i.length+t.dialCode.length+a.length:0,deletion:w});return{phone:R,inputValue:_,cursorPosition:z,country:F}},aJ=(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},sJ=()=>{let e=I.useRef(),t=I.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}}},oJ={size:20,overrideLastItemDebounceMS:-1};function uJ(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...oJ,...t},[a,s]=I.useState(e),[o,c]=I.useState([a]),[d,h]=I.useState(0),m=sJ();return[a,(g,b)=>{if(typeof g=="object"&&typeof a=="object"&&aJ(g,a)||g===a)return;let w=r>0,x=m.check(),A=w&&x!==void 0?x>r:!0;if((b==null?void 0:b.overrideLastItem)!==void 0?b.overrideLastItem:!A)c(C=>[...C.slice(0,d),g]);else{let C=o.length>=n;c(E=>[...E.slice(C?1:0,d+1),g]),C||h(E=>E+1)}s(g),i==null||i(g)},()=>{if(d<=0)return{success:!1};let g=o[d-1];return s(g),h(b=>b-1),i==null||i(g),{success:!0,value:g}},()=>{if(d+1>=o.length)return{success:!1};let g=o[d+1];return s(g),h(b=>b+1),i==null||i(g),{success:!0,value:g}}]}var HR=".",ki={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:Ru},GR=({defaultCountry:e=ki.defaultCountry,value:t=ki.value,countries:n=ki.countries,prefix:r=ki.prefix,defaultMask:i=ki.defaultMask,charAfterDialCode:a=ki.charAfterDialCode,historySaveDebounceMS:s=ki.historySaveDebounceMS,disableCountryGuess:o=ki.disableCountryGuess,disableDialCodePrefill:c=ki.disableDialCodePrefill,forceDialCode:d=ki.forceDialCode,disableDialCodeAndPrefix:h=ki.disableDialCodeAndPrefix,disableFormatting:m=ki.disableFormatting,onChange:g,inputRef:b})=>{let w={countries:n,prefix:r,charAfterDialCode:a,forceDialCode:h?!1:d,disableDialCodeAndPrefix:h,defaultMask:i,countryGuessingEnabled:!o,disableFormatting:m},x=I.useRef(null),A=b||x,C=U=>{Promise.resolve().then(()=>{var ee;typeof window>"u"||A.current!==(document==null?void 0:document.activeElement)||((ee=A.current)==null||ee.setSelectionRange(U,U))})},[{phone:E,inputValue:S,country:R},_,F,z]=uJ(()=>{let U=bl({value:e,field:"iso2",countries:n});U||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let ee=U||bl({value:"us",field:"iso2",countries:n}),{phone:K,inputValue:k,country:N}=h1({value:t,country:ee,insertDialCodeOnEmpty:!c,...w});return C(k.length),{phone:K,inputValue:k,country:N.iso2}},{overrideLastItemDebounceMS:s,onChange:({inputValue:U,phone:ee,country:K})=>{if(!g)return;let k=ie(K);g({phone:ee,inputValue:U,country:k})}}),ie=I.useCallback(U=>bl({value:U,field:"iso2",countries:n}),[n]),ge=I.useMemo(()=>ie(R),[R,ie]);I.useEffect(()=>{let U=A.current;if(!U)return;let ee=K=>{if(!K.key)return;let k=K.ctrlKey,N=K.metaKey,te=K.shiftKey;if(K.key.toLowerCase()==="z"){if(eJ()){if(!N)return}else if(!k)return;te?z():F()}};return U.addEventListener("keydown",ee),()=>{U.removeEventListener("keydown",ee)}},[A,F,z]);let oe=U=>{U.preventDefault();let{phone:ee,inputValue:K,country:k,cursorPosition:N}=iJ(U,{country:ge,phoneBeforeInput:S,insertDialCodeOnEmpty:!1,...w});return _({inputValue:K,phone:ee,country:k.iso2}),C(N),t},O=(U,ee={focusOnInput:!1})=>{let K=bl({value:U,field:"iso2",countries:n});if(!K){console.error(`[react-international-phone]: can not find a country with "${U}" iso2 code`);return}let k=h?"":`${r}${K.dialCode}${a}`;_({inputValue:k,phone:`${r}${K.dialCode}`,country:K.iso2}),ee.focusOnInput&&Promise.resolve().then(()=>{var N;(N=A.current)==null||N.focus()})},[we,Se]=I.useState(!1);return I.useEffect(()=>{if(!we){Se(!0),t!==E&&(g==null||g({inputValue:S,phone:E,country:ge}));return}if(t===E)return;let{phone:U,inputValue:ee,country:K}=h1({value:t,country:ge,insertDialCodeOnEmpty:!c,...w});_({phone:U,inputValue:ee,country:K.iso2})},[t]),{phone:E,inputValue:S,country:ge,setCountry:O,handlePhoneValueChange:oe,inputRef:A}},lJ=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,a=o=>r?o.replace(new RegExp(`[^${HR}]`,"g"),""):o;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(o=>{if(o==="default")return!1;if(!(o.charAt(0)==="/"&&o.charAt(o.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${o}" for ${t.iso2} is not valid`),!1;let c=new RegExp(o.substring(1,o.length-1)),d=e.replace(t.dialCode,"");return c.test(ym(d))});return a(s?i[s]:i.default)},ha=e=>{let[t,n,r,i,a,s]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:a,areaCodes:s}},cJ=e=>`Field "${e}" is not supported`,bl=({field:e,value:t,countries:n=Ru})=>{if(["priority"].includes(e))throw new Error(cJ(e));let r=n.find(i=>{let a=ha(i);return t===a[e]});if(r)return ha(r)},fJ=({phone:e,countries:t=Ru,currentCountryIso2:n})=>{var o;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=ym(e);if(!i)return r;let a=r,s=({country:c,fullDialCodeMatch:d})=>{var g,b;let h=c.dialCode===((g=a.country)==null?void 0:g.dialCode),m=(c.priority??0)<(((b=a.country)==null?void 0:b.priority)??0);(!h||m)&&(a={country:c,fullDialCodeMatch:d})};for(let c of t){let d=ha(c),{dialCode:h,areaCodes:m}=d;if(i.startsWith(h)){let g=a.country?Number(h)>=Number(a.country.dialCode):!0;if(m){let b=i.substring(h.length);for(let w of m)if(b.startsWith(w))return{country:d,fullDialCodeMatch:!0}}(g||h===i||!a.fullDialCodeMatch)&&s({country:d,fullDialCodeMatch:!0})}a.fullDialCodeMatch||i.length<h.length&&h.startsWith(i)&&(!a.country||Number(h)<=Number(a.country.dialCode))&&s({country:d,fullDialCodeMatch:!1})}if(n){let c=bl({value:n,field:"iso2",countries:t});if(!c)return a;let d=c?(h=>{if(!(h!=null&&h.areaCodes))return!1;let m=i.substring(h.dialCode.length);return h.areaCodes.some(g=>g.startsWith(m))})(c):!1;a&&((o=a.country)==null?void 0:o.dialCode)===c.dialCode&&a.country!==c&&a.fullDialCodeMatch&&(!c.areaCodes||d)&&(a={country:c,fullDialCodeMatch:!0})}return a},dJ=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},hJ="abcdefghijklmnopqrstuvwxyz",pJ="1f1e6",KD=hJ.split("").reduce((e,t,n)=>({...e,[t]:dJ(pJ,n)}),{}),mJ=e=>[KD[e[0]],KD[e[1]]].join("-"),b3=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:a,style:s,...o})=>{if(!e)return fe.default.createElement("img",{className:Ar({addPrefix:["flag-emoji"],rawClassNames:[a]}),width:t,height:t,...o});let c=()=>{if(n)return n;let d=mJ(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${d}.svg`};return fe.default.createElement("img",{className:Ar({addPrefix:["flag-emoji"],rawClassNames:[a]}),src:c(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...s},alt:"",...o})},gJ=1e3,vJ=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=Ru,preferredCountries:i=[],flags:a,onSelect:s,onClose:o,...c})=>{let d=I.useRef(null),h=I.useRef(),m=I.useMemo(()=>{if(!i||!i.length)return r;let F=[],z=[...r];for(let ie of i){let ge=z.findIndex(oe=>ha(oe).iso2===ie);if(ge!==-1){let oe=z.splice(ge,1)[0];F.push(oe)}}return F.concat(z)},[r,i]),g=I.useRef({updatedAt:void 0,value:""}),b=F=>{let z=g.current.updatedAt&&new Date().getTime()-g.current.updatedAt.getTime()>gJ;g.current={value:z?F:`${g.current.value}${F}`,updatedAt:new Date};let ie=m.findIndex(ge=>ha(ge).name.toLowerCase().startsWith(g.current.value));ie!==-1&&A(ie)},w=I.useCallback(F=>m.findIndex(z=>ha(z).iso2===F),[m]),[x,A]=I.useState(w(n)),C=()=>{h.current!==n&&A(w(n))},E=I.useCallback(F=>{A(w(F.iso2)),s==null||s(F)},[s,w]),S=F=>{let z=m.length-1,ie=ge=>F==="prev"?ge-1:F==="next"?ge+1:F==="last"?z:0;A(ge=>{let oe=ie(ge);return oe<0?0:oe>z?z:oe})},R=F=>{if(F.stopPropagation(),F.key==="Enter"){F.preventDefault();let z=ha(m[x]);E(z);return}if(F.key==="Escape"){o==null||o();return}if(F.key==="ArrowUp"){F.preventDefault(),S("prev");return}if(F.key==="ArrowDown"){F.preventDefault(),S("next");return}if(F.key==="PageUp"){F.preventDefault(),S("first");return}if(F.key==="PageDown"){F.preventDefault(),S("last");return}F.key===" "&&F.preventDefault(),F.key.length===1&&!F.altKey&&!F.ctrlKey&&!F.metaKey&&b(F.key.toLocaleLowerCase())},_=I.useCallback(()=>{if(!d.current||x===void 0)return;let F=ha(m[x]).iso2;if(F===h.current)return;let z=d.current.querySelector(`[data-country="${F}"]`);z&&(QX(d.current,z),h.current=F)},[x,m]);return I.useEffect(()=>{_()},[x,_]),I.useEffect(()=>{d.current&&(e?d.current.focus():C())},[e]),I.useEffect(()=>{C()},[n]),fe.default.createElement("ul",{ref:d,role:"listbox",className:Ar({addPrefix:["country-selector-dropdown"],rawClassNames:[c.className]}),style:{display:e?"block":"none",...c.style},onKeyDown:R,onBlur:o,tabIndex:-1,"aria-activedescendant":`react-international-phone__${ha(m[x]).iso2}-option`},m.map((F,z)=>{let ie=ha(F),ge=ie.iso2===n,oe=z===x,O=i.includes(ie.iso2),we=z===i.length-1,Se=a==null?void 0:a.find(U=>U.iso2===ie.iso2);return fe.default.createElement(fe.default.Fragment,{key:ie.iso2},fe.default.createElement("li",{"data-country":ie.iso2,role:"option","aria-selected":ge,"aria-label":`${ie.name} ${t}${ie.dialCode}`,id:`react-international-phone__${ie.iso2}-option`,className:Ar({addPrefix:["country-selector-dropdown__list-item",O&&"country-selector-dropdown__list-item--preferred",ge&&"country-selector-dropdown__list-item--selected",oe&&"country-selector-dropdown__list-item--focused"],rawClassNames:[c.listItemClassName,O&&c.listItemPreferredClassName,ge&&c.listItemSelectedClassName,oe&&c.listItemFocusedClassName]}),onClick:()=>E(ie),style:c.listItemStyle,title:ie.name},fe.default.createElement(b3,{iso2:ie.iso2,src:Se==null?void 0:Se.src,className:Ar({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[c.listItemFlagClassName]}),style:c.listItemFlagStyle}),fe.default.createElement("span",{className:Ar({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[c.listItemCountryNameClassName]}),style:c.listItemCountryNameStyle},ie.name),fe.default.createElement("span",{className:Ar({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[c.listItemDialCodeClassName]}),style:c.listItemDialCodeStyle},t,ie.dialCode)),we?fe.default.createElement("hr",{className:Ar({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[c.preferredListDividerClassName]}),style:c.preferredListDividerStyle}):null)}))},yJ=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=Ru,preferredCountries:a=[],flags:s,renderButtonWrapper:o,...c})=>{let[d,h]=I.useState(!1),m=I.useMemo(()=>{if(e)return bl({value:e,field:"iso2",countries:i})},[i,e]),g=I.useRef(null),b=x=>{x.key&&["ArrowUp","ArrowDown"].includes(x.key)&&(x.preventDefault(),h(!0))},w=()=>{var C;let x={title:m==null?void 0:m.name,onClick:()=>h(E=>!E),onMouseDown:E=>E.preventDefault(),onKeyDown:b,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":d},A=fe.default.createElement("div",{className:Ar({addPrefix:["country-selector-button__button-content"],rawClassNames:[c.buttonContentWrapperClassName]}),style:c.buttonContentWrapperStyle},fe.default.createElement(b3,{iso2:e,src:(C=s==null?void 0:s.find(E=>E.iso2===e))==null?void 0:C.src,className:Ar({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[c.flagClassName]}),style:{visibility:e?"visible":"hidden",...c.flagStyle}}),!r&&fe.default.createElement("div",{className:Ar({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",d&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[c.dropdownArrowClassName]}),style:c.dropdownArrowStyle}));return o?o({children:A,rootProps:x}):fe.default.createElement("button",{...x,type:"button",className:Ar({addPrefix:["country-selector-button",d&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[c.buttonClassName]}),"data-country":e,style:c.buttonStyle},A)};return fe.default.createElement("div",{className:Ar({addPrefix:["country-selector"],rawClassNames:[c.className]}),style:c.style,ref:g},w(),fe.default.createElement(vJ,{show:d,countries:i,preferredCountries:a,flags:s,onSelect:x=>{h(!1),t==null||t(x)},selectedCountry:e,onClose:()=>{h(!1)},...c.dropdownStyleProps}))},bJ=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>fe.default.createElement("div",{className:Ar({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);I.forwardRef(({value:e,onChange:t,countries:n=Ru,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:a,disableFocusAfterCountrySelect:s,flags:o,style:c,className:d,inputStyle:h,inputClassName:m,countrySelectorStyleProps:g,dialCodePreviewStyleProps:b,inputProps:w,placeholder:x,disabled:A,name:C,onFocus:E,onBlur:S,required:R,autoFocus:_,...F},z)=>{let{phone:ie,inputValue:ge,inputRef:oe,country:O,setCountry:we,handlePhoneValueChange:Se}=GR({value:e,countries:n,...F,onChange:ee=>{t==null||t(ee.phone,{country:ee.country,inputValue:ee.inputValue})}}),U=F.disableDialCodeAndPrefix&&a&&(O==null?void 0:O.dialCode);return I.useImperativeHandle(z,()=>oe.current?Object.assign(oe.current,{setCountry:we,state:{phone:ie,inputValue:ge,country:O}}):null,[oe,we,ie,ge,O]),fe.default.createElement("div",{ref:z,className:Ar({addPrefix:["input-container"],rawClassNames:[d]}),style:c},fe.default.createElement(yJ,{onSelect:ee=>we(ee.iso2,{focusOnInput:!s}),flags:o,selectedCountry:O.iso2,countries:n,preferredCountries:r,disabled:A,hideDropdown:i,...g}),U&&fe.default.createElement(bJ,{dialCode:O.dialCode,prefix:F.prefix??"+",disabled:A,...b}),fe.default.createElement("input",{onChange:Se,value:ge,type:"tel",ref:oe,className:Ar({addPrefix:["input",A&&"input--disabled"],rawClassNames:[m]}),placeholder:x,disabled:A,style:h,name:C,onFocus:E,onBlur:S,autoFocus:_,required:R,...w}))});var M0,UD;function $J(){if(UD)return M0;UD=1;function e(t){return t===void 0}return M0=e,M0}var xJ=$J();const wJ=yr(xJ);var F0={exports:{}},qD;function CJ(){return qD||(qD=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
67
|
-
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
68
|
-
*
|
|
69
|
-
* @license MIT <https://opensource.org/licenses/MIT>
|
|
70
|
-
* @author Lea Verou <https://lea.verou.me>
|
|
71
|
-
* @namespace
|
|
72
|
-
* @public
|
|
73
|
-
*/var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,a=0,s={},o={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function E(S){return S instanceof c?new c(S.type,E(S.content),S.alias):Array.isArray(S)?S.map(E):S.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(E){return Object.prototype.toString.call(E).slice(8,-1)},objId:function(E){return E.__id||Object.defineProperty(E,"__id",{value:++a}),E.__id},clone:function E(S,R){R=R||{};var _,F;switch(o.util.type(S)){case"Object":if(F=o.util.objId(S),R[F])return R[F];_={},R[F]=_;for(var z in S)S.hasOwnProperty(z)&&(_[z]=E(S[z],R));return _;case"Array":return F=o.util.objId(S),R[F]?R[F]:(_=[],R[F]=_,S.forEach(function(ie,ge){_[ge]=E(ie,R)}),_);default:return S}},getLanguage:function(E){for(;E;){var S=i.exec(E.className);if(S)return S[1].toLowerCase();E=E.parentElement}return"none"},setLanguage:function(E,S){E.className=E.className.replace(RegExp(i,"gi"),""),E.classList.add("language-"+S)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(_){var E=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(_.stack)||[])[1];if(E){var S=document.getElementsByTagName("script");for(var R in S)if(S[R].src==E)return S[R]}return null}},isActive:function(E,S,R){for(var _="no-"+S;E;){var F=E.classList;if(F.contains(S))return!0;if(F.contains(_))return!1;E=E.parentElement}return!!R}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(E,S){var R=o.util.clone(o.languages[E]);for(var _ in S)R[_]=S[_];return R},insertBefore:function(E,S,R,_){_=_||o.languages;var F=_[E],z={};for(var ie in F)if(F.hasOwnProperty(ie)){if(ie==S)for(var ge in R)R.hasOwnProperty(ge)&&(z[ge]=R[ge]);R.hasOwnProperty(ie)||(z[ie]=F[ie])}var oe=_[E];return _[E]=z,o.languages.DFS(o.languages,function(O,we){we===oe&&O!=E&&(this[O]=z)}),z},DFS:function E(S,R,_,F){F=F||{};var z=o.util.objId;for(var ie in S)if(S.hasOwnProperty(ie)){R.call(S,ie,S[ie],_||ie);var ge=S[ie],oe=o.util.type(ge);oe==="Object"&&!F[z(ge)]?(F[z(ge)]=!0,E(ge,R,null,F)):oe==="Array"&&!F[z(ge)]&&(F[z(ge)]=!0,E(ge,R,ie,F))}}},plugins:{},highlightAll:function(E,S){o.highlightAllUnder(document,E,S)},highlightAllUnder:function(E,S,R){var _={callback:R,container:E,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",_),_.elements=Array.prototype.slice.apply(_.container.querySelectorAll(_.selector)),o.hooks.run("before-all-elements-highlight",_);for(var F=0,z;z=_.elements[F++];)o.highlightElement(z,S===!0,_.callback)},highlightElement:function(E,S,R){var _=o.util.getLanguage(E),F=o.languages[_];o.util.setLanguage(E,_);var z=E.parentElement;z&&z.nodeName.toLowerCase()==="pre"&&o.util.setLanguage(z,_);var ie=E.textContent,ge={element:E,language:_,grammar:F,code:ie};function oe(we){ge.highlightedCode=we,o.hooks.run("before-insert",ge),ge.element.innerHTML=ge.highlightedCode,o.hooks.run("after-highlight",ge),o.hooks.run("complete",ge),R&&R.call(ge.element)}if(o.hooks.run("before-sanity-check",ge),z=ge.element.parentElement,z&&z.nodeName.toLowerCase()==="pre"&&!z.hasAttribute("tabindex")&&z.setAttribute("tabindex","0"),!ge.code){o.hooks.run("complete",ge),R&&R.call(ge.element);return}if(o.hooks.run("before-highlight",ge),!ge.grammar){oe(o.util.encode(ge.code));return}if(S&&r.Worker){var O=new Worker(o.filename);O.onmessage=function(we){oe(we.data)},O.postMessage(JSON.stringify({language:ge.language,code:ge.code,immediateClose:!0}))}else oe(o.highlight(ge.code,ge.grammar,ge.language))},highlight:function(E,S,R){var _={code:E,grammar:S,language:R};if(o.hooks.run("before-tokenize",_),!_.grammar)throw new Error('The language "'+_.language+'" has no grammar.');return _.tokens=o.tokenize(_.code,_.grammar),o.hooks.run("after-tokenize",_),c.stringify(o.util.encode(_.tokens),_.language)},tokenize:function(E,S){var R=S.rest;if(R){for(var _ in R)S[_]=R[_];delete S.rest}var F=new m;return g(F,F.head,E),h(E,F,S,F.head,0),w(F)},hooks:{all:{},add:function(E,S){var R=o.hooks.all;R[E]=R[E]||[],R[E].push(S)},run:function(E,S){var R=o.hooks.all[E];if(!(!R||!R.length))for(var _=0,F;F=R[_++];)F(S)}},Token:c};r.Prism=o;function c(E,S,R,_){this.type=E,this.content=S,this.alias=R,this.length=(_||"").length|0}c.stringify=function E(S,R){if(typeof S=="string")return S;if(Array.isArray(S)){var _="";return S.forEach(function(oe){_+=E(oe,R)}),_}var F={type:S.type,content:E(S.content,R),tag:"span",classes:["token",S.type],attributes:{},language:R},z=S.alias;z&&(Array.isArray(z)?Array.prototype.push.apply(F.classes,z):F.classes.push(z)),o.hooks.run("wrap",F);var ie="";for(var ge in F.attributes)ie+=" "+ge+'="'+(F.attributes[ge]||"").replace(/"/g,""")+'"';return"<"+F.tag+' class="'+F.classes.join(" ")+'"'+ie+">"+F.content+"</"+F.tag+">"};function d(E,S,R,_){E.lastIndex=S;var F=E.exec(R);if(F&&_&&F[1]){var z=F[1].length;F.index+=z,F[0]=F[0].slice(z)}return F}function h(E,S,R,_,F,z){for(var ie in R)if(!(!R.hasOwnProperty(ie)||!R[ie])){var ge=R[ie];ge=Array.isArray(ge)?ge:[ge];for(var oe=0;oe<ge.length;++oe){if(z&&z.cause==ie+","+oe)return;var O=ge[oe],we=O.inside,Se=!!O.lookbehind,U=!!O.greedy,ee=O.alias;if(U&&!O.pattern.global){var K=O.pattern.toString().match(/[imsuy]*$/)[0];O.pattern=RegExp(O.pattern.source,K+"g")}for(var k=O.pattern||O,N=_.next,te=F;N!==S.tail&&!(z&&te>=z.reach);te+=N.value.length,N=N.next){var j=N.value;if(S.length>E.length)return;if(!(j instanceof c)){var ce=1,ue;if(U){if(ue=d(k,te,E,Se),!ue||ue.index>=E.length)break;var Ye=ue.index,Ae=ue.index+ue[0].length,_e=te;for(_e+=N.value.length;Ye>=_e;)N=N.next,_e+=N.value.length;if(_e-=N.value.length,te=_e,N.value instanceof c)continue;for(var Le=N;Le!==S.tail&&(_e<Ae||typeof Le.value=="string");Le=Le.next)ce++,_e+=Le.value.length;ce--,j=E.slice(te,_e),ue.index-=te}else if(ue=d(k,0,j,Se),!ue)continue;var Ye=ue.index,Qe=ue[0],Ue=j.slice(0,Ye),Ge=j.slice(Ye+Qe.length),Ie=te+j.length;z&&Ie>z.reach&&(z.reach=Ie);var Ne=N.prev;Ue&&(Ne=g(S,Ne,Ue),te+=Ue.length),b(S,Ne,ce);var Te=new c(ie,we?o.tokenize(Qe,we):Qe,ee,Qe);if(N=g(S,Ne,Te),Ge&&g(S,N,Ge),ce>1){var He={cause:ie+","+oe,reach:Ie};h(E,S,R,N.prev,te,He),z&&He.reach>z.reach&&(z.reach=He.reach)}}}}}}function m(){var E={value:null,prev:null,next:null},S={value:null,prev:E,next:null};E.next=S,this.head=E,this.tail=S,this.length=0}function g(E,S,R){var _=S.next,F={value:R,prev:S,next:_};return S.next=F,_.prev=F,E.length++,F}function b(E,S,R){for(var _=S.next,F=0;F<R&&_!==E.tail;F++)_=_.next;S.next=_,_.prev=S,E.length-=F}function w(E){for(var S=[],R=E.head.next;R!==E.tail;)S.push(R.value),R=R.next;return S}if(!r.document)return r.addEventListener&&(o.disableWorkerMessageHandler||r.addEventListener("message",function(E){var S=JSON.parse(E.data),R=S.language,_=S.code,F=S.immediateClose;r.postMessage(o.highlight(_,o.languages[R],R)),F&&r.close()},!1)),o;var x=o.util.currentScript();x&&(o.filename=x.src,x.hasAttribute("data-manual")&&(o.manual=!0));function A(){o.manual||o.highlightAll()}if(!o.manual){var C=document.readyState;C==="loading"||C==="interactive"&&x&&x.defer?document.addEventListener("DOMContentLoaded",A):window.requestAnimationFrame?window.requestAnimationFrame(A):window.setTimeout(A,16)}return o}(t);e.exports&&(e.exports=n),typeof Ui<"u"&&(Ui.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 o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};o["language-"+a]={pattern:/[\s\S]+/,inside:n.languages[a]};var c={};c[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:o},n.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var 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(x,A){return"✖ Error "+x+" while fetching file: "+A},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"},o="data-src-status",c="loading",d="loaded",h="failed",m="pre[data-src]:not(["+o+'="'+d+'"]):not(['+o+'="'+c+'"])';function g(x,A,C){var E=new XMLHttpRequest;E.open("GET",x,!0),E.onreadystatechange=function(){E.readyState==4&&(E.status<400&&E.responseText?A(E.responseText):E.status>=400?C(i(E.status,E.statusText)):C(a))},E.send(null)}function b(x){var A=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(x||"");if(A){var C=Number(A[1]),E=A[2],S=A[3];return E?S?[C,Number(S)]:[C,void 0]:[C,C]}}n.hooks.add("before-highlightall",function(x){x.selector+=", "+m}),n.hooks.add("before-sanity-check",function(x){var A=x.element;if(A.matches(m)){x.code="",A.setAttribute(o,c);var C=A.appendChild(document.createElement("CODE"));C.textContent=r;var E=A.getAttribute("data-src"),S=x.language;if(S==="none"){var R=(/\.(\w+)$/.exec(E)||[,"none"])[1];S=s[R]||R}n.util.setLanguage(C,S),n.util.setLanguage(A,S);var _=n.plugins.autoloader;_&&_.loadLanguages(S),g(E,function(F){A.setAttribute(o,d);var z=b(A.getAttribute("data-range"));if(z){var ie=F.split(/\r\n?|\n/g),ge=z[0],oe=z[1]==null?ie.length:z[1];ge<0&&(ge+=ie.length),ge=Math.max(0,Math.min(ge-1,ie.length)),oe<0&&(oe+=ie.length),oe=Math.max(0,Math.min(oe,ie.length)),F=ie.slice(ge,oe).join(`
|
|
74
|
-
`),A.hasAttribute("data-start")||A.setAttribute("data-start",String(ge+1))}C.textContent=F,n.highlightElement(C)},function(F){A.setAttribute(o,h),C.textContent=F})}}),n.plugins.fileHighlight={highlight:function(A){for(var C=(A||document).querySelectorAll(m),E=0,S;S=C[E++];)n.highlightElement(S)}};var w=!1;n.fileHighlight=function(){w||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),w=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(F0)),F0.exports}var EJ=CJ();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(g,b){return Array.prototype.slice.call((b||document).querySelectorAll(g))}function i(g,b){return g.classList.contains(b)}function a(g){g()}var s=function(){var g;return function(){if(typeof g>"u"){var b=document.createElement("div");b.style.fontSize="13px",b.style.lineHeight="1.5",b.style.padding="0",b.style.border="0",b.innerHTML=" <br /> ",document.body.appendChild(b),g=b.offsetHeight===38,document.body.removeChild(b)}return g}}();function o(g,b){var w=getComputedStyle(g),x=getComputedStyle(b);function A(C){return+C.substr(0,C.length-2)}return b.offsetTop+A(x.borderTopWidth)+A(x.paddingTop)-A(w.paddingTop)}function c(g){return!g||!/pre/i.test(g.nodeName)?!1:!!(g.hasAttribute("data-line")||g.id&&Prism.util.isActive(g,t))}var d=!0;Prism.plugins.lineHighlight={highlightLines:function(b,w,x){w=typeof w=="string"?w:b.getAttribute("data-line")||"";var A=w.replace(/\s+/g,"").split(",").filter(Boolean),C=+b.getAttribute("data-line-offset")||0,E=s()?parseInt:parseFloat,S=E(getComputedStyle(b).lineHeight),R=Prism.util.isActive(b,e),_=b.querySelector("code"),F=R?b:_||b,z=[],ie=_.textContent.match(n),ge=ie?ie.length+1:1,oe=!_||F==_?0:o(b,_);A.forEach(function(Se){var U=Se.split("-"),ee=+U[0],K=+U[1]||ee;if(K=Math.min(ge+C,K),!(K<ee)){var k=b.querySelector('.line-highlight[data-range="'+Se+'"]')||document.createElement("div");if(z.push(function(){k.setAttribute("aria-hidden","true"),k.setAttribute("data-range",Se),k.className=(x||"")+" line-highlight"}),R&&Prism.plugins.lineNumbers){var N=Prism.plugins.lineNumbers.getLine(b,ee),te=Prism.plugins.lineNumbers.getLine(b,K);if(N){var j=N.offsetTop+oe+"px";z.push(function(){k.style.top=j})}if(te){var ce=te.offsetTop-N.offsetTop+te.offsetHeight+"px";z.push(function(){k.style.height=ce})}}else z.push(function(){k.setAttribute("data-start",String(ee)),K>ee&&k.setAttribute("data-end",String(K)),k.style.top=(ee-C-1)*S+oe+"px",k.textContent=new Array(K-ee+2).join(`
|
|
75
|
-
`)});z.push(function(){k.style.width=b.scrollWidth+"px"}),z.push(function(){F.appendChild(k)})}});var O=b.id;if(R&&Prism.util.isActive(b,t)&&O){i(b,t)||z.push(function(){b.classList.add(t)});var we=parseInt(b.getAttribute("data-start")||"1");r(".line-numbers-rows > span",b).forEach(function(Se,U){var ee=U+we;Se.onclick=function(){var K=O+"."+ee;d=!1,location.hash=K,setTimeout(function(){d=!0},1)}})}return function(){z.forEach(a)}}};function h(){var g=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(C){C.parentNode.removeChild(C)});var b=(g.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!b||document.getElementById(g))){var w=g.slice(0,g.lastIndexOf(".")),x=document.getElementById(w);if(x){x.hasAttribute("data-line")||x.setAttribute("data-line","");var A=Prism.plugins.lineHighlight.highlightLines(x,b,"temporary ");A(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var m=0;Prism.hooks.add("before-sanity-check",function(g){var b=g.element.parentElement;if(c(b)){var w=0;r(".line-highlight",b).forEach(function(x){w+=x.textContent.length,x.parentNode.removeChild(x)}),w&&/^(?: \n)+$/.test(g.code.slice(-w))&&(g.code=g.code.slice(0,-w))}}),Prism.hooks.add("complete",function g(b){var w=b.element.parentElement;if(c(w)){clearTimeout(m);var x=Prism.plugins.lineNumbers,A=b.plugins&&b.plugins.lineNumbers;if(i(w,e)&&x&&!A)Prism.hooks.add("line-numbers",g);else{var C=Prism.plugins.lineHighlight.highlightLines(w);C(),m=setTimeout(h,1)}}}),window.addEventListener("hashchange",h),window.addEventListener("resize",function(){var g=r("pre").filter(c).map(function(b){return Prism.plugins.lineHighlight.highlightLines(b)});g.forEach(a)})})();const YR=I.createContext({});function dd(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const $3=typeof window<"u",ZR=$3?I.useLayoutEffect:I.useEffect,x3=I.createContext(null);function w3(e,t){e.indexOf(t)===-1&&e.push(t)}function C3(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function SJ([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const i=n<0?e.length+n:n,[a]=e.splice(t,1);e.splice(i,0,a)}return e}const Bs=(e,t,n)=>n>t?t:n<e?e:n;function p1(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let ic=()=>{},ba=()=>{};process.env.NODE_ENV!=="production"&&(ic=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(p1(t,n))},ba=(e,t,n)=>{if(!e)throw new Error(p1(t,n))});const Ns={},XR=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function JR(e){return typeof e=="object"&&e!==null}const QR=e=>/^0[^.\s]+$/u.test(e);function E3(e){let t;return()=>(t===void 0&&(t=e()),t)}const Gi=e=>e,DJ=(e,t)=>n=>t(e(n)),hd=(...e)=>e.reduce(DJ),Bf=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let S3=class{constructor(){this.subscriptions=[]}add(t){return w3(this.subscriptions,t),()=>C3(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 ga=e=>e*1e3,Za=e=>e/1e3;function e7(e,t){return t?e*(1e3/t):0}const zD=new Set;function D3(e,t,n){e||zD.has(t)||(console.warn(p1(t,n)),zD.add(t))}const t7=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,AJ=1e-7,TJ=12;function PJ(e,t,n,r,i){let a,s,o=0;do s=t+(n-t)/2,a=t7(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>AJ&&++o<TJ);return s}function pd(e,t,n,r){if(e===t&&n===r)return Gi;const i=a=>PJ(a,0,1,e,n);return a=>a===0||a===1?a:t7(i(a),t,r)}const n7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,r7=e=>t=>1-e(1-t),i7=pd(.33,1.53,.69,.99),A3=r7(i7),a7=n7(A3),s7=e=>(e*=2)<1?.5*A3(e):.5*(2-Math.pow(2,-10*(e-1))),T3=e=>1-Math.sin(Math.acos(e)),o7=r7(T3),u7=n7(T3),_J=pd(.42,0,1,1),MJ=pd(0,0,.58,1),l7=pd(.42,0,.58,1),FJ=e=>Array.isArray(e)&&typeof e[0]!="number",c7=e=>Array.isArray(e)&&typeof e[0]=="number",WD={linear:Gi,easeIn:_J,easeInOut:l7,easeOut:MJ,circIn:T3,circInOut:u7,circOut:o7,backIn:A3,backInOut:a7,backOut:i7,anticipate:s7},RJ=e=>typeof e=="string",HD=e=>{if(c7(e)){ba(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return pd(t,n,r,i)}else if(RJ(e))return ba(WD[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),WD[e];return e},gh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function kJ(e,t){let n=new Set,r=new Set,i=!1,a=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function c(h){s.has(h)&&(d.schedule(h),e()),h(o)}const d={schedule:(h,m=!1,g=!1)=>{const w=g&&i?n:r;return m&&s.add(h),w.has(h)||w.add(h),h},cancel:h=>{r.delete(h),s.delete(h)},process:h=>{if(o=h,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(c),n.clear(),i=!1,a&&(a=!1,d.process(h))}};return d}const OJ=40;function f7(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=gh.reduce((S,R)=>(S[R]=kJ(a),S),{}),{setup:o,read:c,resolveKeyframes:d,preUpdate:h,update:m,preRender:g,render:b,postRender:w}=s,x=()=>{const S=Ns.useManualTiming?i.timestamp:performance.now();n=!1,Ns.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,OJ),1)),i.timestamp=S,i.isProcessing=!0,o.process(i),c.process(i),d.process(i),h.process(i),m.process(i),g.process(i),b.process(i),w.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(x))},A=()=>{n=!0,r=!0,i.isProcessing||e(x)};return{schedule:gh.reduce((S,R)=>{const _=s[R];return S[R]=(F,z=!1,ie=!1)=>(n||A(),_.schedule(F,z,ie)),S},{}),cancel:S=>{for(let R=0;R<gh.length;R++)s[gh[R]].cancel(S)},state:i,steps:s}}const{schedule:wn,cancel:js,state:gr,steps:R0}=f7(typeof requestAnimationFrame<"u"?requestAnimationFrame:Gi,!0);let Lh;function IJ(){Lh=void 0}const ri={now:()=>(Lh===void 0&&ri.set(gr.isProcessing||Ns.useManualTiming?gr.timestamp:performance.now()),Lh),set:e=>{Lh=e,queueMicrotask(IJ)}},d7=e=>t=>typeof t=="string"&&t.startsWith(e),P3=d7("--"),LJ=d7("var(--"),_3=e=>LJ(e)?VJ.test(e.split("/*")[0].trim()):!1,VJ=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ac={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Nf={...ac,transform:e=>Bs(0,1,e)},vh={...ac,default:1},wf=e=>Math.round(e*1e5)/1e5,M3=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function BJ(e){return e==null}const NJ=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,F3=(e,t)=>n=>!!(typeof n=="string"&&NJ.test(n)&&n.startsWith(e)||t&&!BJ(n)&&Object.prototype.hasOwnProperty.call(n,t)),h7=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,o]=r.match(M3);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},jJ=e=>Bs(0,255,e),k0={...ac,transform:e=>Math.round(jJ(e))},cu={test:F3("rgb","red"),parse:h7("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+k0.transform(e)+", "+k0.transform(t)+", "+k0.transform(n)+", "+wf(Nf.transform(r))+")"};function KJ(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 m1={test:F3("#"),parse:KJ,transform:cu.transform},md=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),oo=md("deg"),Xa=md("%"),Dt=md("px"),UJ=md("vh"),qJ=md("vw"),GD={...Xa,parse:e=>Xa.parse(e)/100,transform:e=>Xa.transform(e*100)},$l={test:F3("hsl","hue"),parse:h7("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Xa.transform(wf(t))+", "+Xa.transform(wf(n))+", "+wf(Nf.transform(r))+")"},Jn={test:e=>cu.test(e)||m1.test(e)||$l.test(e),parse:e=>cu.test(e)?cu.parse(e):$l.test(e)?$l.parse(e):m1.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?cu.transform(e):$l.transform(e),getAnimatableNone:e=>{const t=Jn.parse(e);return t.alpha=0,Jn.transform(t)}},zJ=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function WJ(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(M3))==null?void 0:t.length)||0)+(((n=e.match(zJ))==null?void 0:n.length)||0)>0}const p7="number",m7="color",HJ="var",GJ="var(",YD="${}",YJ=/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 jf(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(YJ,c=>(Jn.test(c)?(r.color.push(a),i.push(m7),n.push(Jn.parse(c))):c.startsWith(GJ)?(r.var.push(a),i.push(HJ),n.push(c)):(r.number.push(a),i.push(p7),n.push(parseFloat(c))),++a,YD)).split(YD);return{values:n,split:o,indexes:r,types:i}}function g7(e){return jf(e).values}function v7(e){const{split:t,types:n}=jf(e),r=t.length;return i=>{let a="";for(let s=0;s<r;s++)if(a+=t[s],i[s]!==void 0){const o=n[s];o===p7?a+=wf(i[s]):o===m7?a+=Jn.transform(i[s]):a+=i[s]}return a}}const ZJ=e=>typeof e=="number"?0:Jn.test(e)?Jn.getAnimatableNone(e):e;function XJ(e){const t=g7(e);return v7(e)(t.map(ZJ))}const xo={test:WJ,parse:g7,createTransformer:v7,getAnimatableNone:XJ};function O0(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 JJ({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 o=n<.5?n*(1+t):n+t-n*t,c=2*n-o;i=O0(c,o,e+1/3),a=O0(c,o,e),s=O0(c,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function bp(e,t){return n=>n>0?t:e}const An=(e,t,n)=>e+(t-e)*n,I0=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},QJ=[m1,cu,$l],eQ=e=>QJ.find(t=>t.test(e));function ZD(e){const t=eQ(e);if(ic(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===$l&&(n=JJ(n)),n}const XD=(e,t)=>{const n=ZD(e),r=ZD(t);if(!n||!r)return bp(e,t);const i={...n};return a=>(i.red=I0(n.red,r.red,a),i.green=I0(n.green,r.green,a),i.blue=I0(n.blue,r.blue,a),i.alpha=An(n.alpha,r.alpha,a),cu.transform(i))},g1=new Set(["none","hidden"]);function tQ(e,t){return g1.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function nQ(e,t){return n=>An(e,t,n)}function R3(e){return typeof e=="number"?nQ:typeof e=="string"?_3(e)?bp:Jn.test(e)?XD:aQ:Array.isArray(e)?y7:typeof e=="object"?Jn.test(e)?XD:rQ:bp}function y7(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>R3(a)(a,t[s]));return a=>{for(let s=0;s<r;s++)n[s]=i[s](a);return n}}function rQ(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=R3(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function iQ(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][r[a]],o=e.values[s]??0;n[i]=o,r[a]++}return n}const aQ=(e,t)=>{const n=xo.createTransformer(t),r=jf(e),i=jf(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?g1.has(e)&&!i.values.length||g1.has(t)&&!r.values.length?tQ(e,t):hd(y7(iQ(r,i),i.values),n):(ic(!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.`,"complex-values-different"),bp(e,t))};function b7(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?An(e,t,n):R3(e)(e,t)}const sQ=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>wn.update(t,n),stop:()=>js(t),now:()=>gr.isProcessing?gr.timestamp:ri.now()}},$7=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=Math.round(e(a/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},$p=2e4;function k3(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<$p;)t+=n,r=e.next(t);return t>=$p?1/0:t}function oQ(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(k3(r),$p);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:Za(i)}}const uQ=5;function x7(e,t,n){const r=Math.max(t-uQ,0);return e7(n-e(r),t-r)}const Pn={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},L0=.001;function lQ({duration:e=Pn.duration,bounce:t=Pn.bounce,velocity:n=Pn.velocity,mass:r=Pn.mass}){let i,a;ic(e<=ga(Pn.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Bs(Pn.minDamping,Pn.maxDamping,s),e=Bs(Pn.minDuration,Pn.maxDuration,Za(e)),s<1?(i=d=>{const h=d*s,m=h*e,g=h-n,b=v1(d,s),w=Math.exp(-m);return L0-g/b*w},a=d=>{const m=d*s*e,g=m*n+n,b=Math.pow(s,2)*Math.pow(d,2)*e,w=Math.exp(-m),x=v1(Math.pow(d,2),s);return(-i(d)+L0>0?-1:1)*((g-b)*w)/x}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-L0+h*m},a=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const o=5/e,c=fQ(i,a,o);if(e=ga(e),isNaN(c))return{stiffness:Pn.stiffness,damping:Pn.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const cQ=12;function fQ(e,t,n){let r=n;for(let i=1;i<cQ;i++)r=r-e(r)/t(r);return r}function v1(e,t){return e*Math.sqrt(1-t*t)}const dQ=["duration","bounce"],hQ=["stiffness","damping","mass"];function JD(e,t){return t.some(n=>e[n]!==void 0)}function pQ(e){let t={velocity:Pn.velocity,stiffness:Pn.stiffness,damping:Pn.damping,mass:Pn.mass,isResolvedFromDuration:!1,...e};if(!JD(e,hQ)&&JD(e,dQ))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Bs(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Pn.mass,stiffness:i,damping:a}}else{const n=lQ(e);t={...t,...n,mass:Pn.mass},t.isResolvedFromDuration=!0}return t}function xp(e=Pn.visualDuration,t=Pn.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],o={done:!1,value:a},{stiffness:c,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=pQ({...n,velocity:-Za(n.velocity||0)}),w=g||0,x=d/(2*Math.sqrt(c*h)),A=s-a,C=Za(Math.sqrt(c/h)),E=Math.abs(A)<5;r||(r=E?Pn.restSpeed.granular:Pn.restSpeed.default),i||(i=E?Pn.restDelta.granular:Pn.restDelta.default);let S;if(x<1){const _=v1(C,x);S=F=>{const z=Math.exp(-x*C*F);return s-z*((w+x*C*A)/_*Math.sin(_*F)+A*Math.cos(_*F))}}else if(x===1)S=_=>s-Math.exp(-C*_)*(A+(w+C*A)*_);else{const _=C*Math.sqrt(x*x-1);S=F=>{const z=Math.exp(-x*C*F),ie=Math.min(_*F,300);return s-z*((w+x*C*A)*Math.sinh(ie)+_*A*Math.cosh(ie))/_}}const R={calculatedDuration:b&&m||null,next:_=>{const F=S(_);if(b)o.done=_>=m;else{let z=_===0?w:0;x<1&&(z=_===0?ga(w):x7(S,_,F));const ie=Math.abs(z)<=r,ge=Math.abs(s-F)<=i;o.done=ie&&ge}return o.value=o.done?s:F,o},toString:()=>{const _=Math.min(k3(R),$p),F=$7(z=>R.next(_*z).value,_,30);return _+"ms "+F},toTransition:()=>{}};return R}xp.applyToOptions=e=>{const t=oQ(e,100,xp);return e.ease=t.ease,e.duration=ga(t.duration),e.type="keyframes",e};function y1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:c,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=ie=>o!==void 0&&ie<o||c!==void 0&&ie>c,w=ie=>o===void 0?c:c===void 0||Math.abs(o-ie)<Math.abs(c-ie)?o:c;let x=n*t;const A=m+x,C=s===void 0?A:s(A);C!==A&&(x=C-m);const E=ie=>-x*Math.exp(-ie/r),S=ie=>C+E(ie),R=ie=>{const ge=E(ie),oe=S(ie);g.done=Math.abs(ge)<=d,g.value=g.done?C:oe};let _,F;const z=ie=>{b(g.value)&&(_=ie,F=xp({keyframes:[g.value,w(g.value)],velocity:x7(S,ie,g.value),damping:i,stiffness:a,restDelta:d,restSpeed:h}))};return z(0),{calculatedDuration:null,next:ie=>{let ge=!1;return!F&&_===void 0&&(ge=!0,R(ie),z(ie)),_!==void 0&&ie>=_?F.next(ie-_):(!ge&&R(ie),g)}}}function mQ(e,t,n){const r=[],i=n||Ns.mix||b7,a=e.length-1;for(let s=0;s<a;s++){let o=i(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||Gi:t;o=hd(c,o)}r.push(o)}return r}function w7(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(ba(a===t.length,"Both input and output ranges must be the same length","range-length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=mQ(t,r,i),c=o.length,d=h=>{if(s&&h<e[0])return t[0];let m=0;if(c>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=Bf(e[m],e[m+1],h);return o[m](g)};return n?h=>d(Bs(e[0],e[a-1],h)):d}function gQ(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Bf(0,t,r);e.push(An(n,1,i))}}function vQ(e){const t=[0];return gQ(t,e.length-1),t}function yQ(e,t){return e.map(n=>n*t)}function bQ(e,t){return e.map(()=>t||l7).splice(0,e.length-1)}function xl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=FJ(r)?r.map(HD):HD(r),a={done:!1,value:t[0]},s=yQ(n&&n.length===t.length?n:vQ(t),e),o=w7(s,t,{ease:Array.isArray(i)?i:bQ(t,i)});return{calculatedDuration:e,next:c=>(a.value=o(c),a.done=c>=e,a)}}const $Q=e=>e!==null;function O3(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter($Q),o=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!o||r===void 0?a[o]:r}const xQ={decay:y1,inertia:y1,tween:xl,keyframes:xl,spring:xp};function C7(e){typeof e.type=="string"&&(e.type=xQ[e.type])}let I3=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}};const wQ=e=>e/100;let L3=class extends I3{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==ri.now()&&this.tick(ri.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;C7(t);const{type:n=xl,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=t;let{keyframes:o}=t;const c=n||xl;process.env.NODE_ENV!=="production"&&c!==xl&&ba(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`,"spring-two-frames"),c!==xl&&typeof o[0]!="number"&&(this.mixKeyframes=hd(wQ,b7(o[0],o[1])),o=[0,100]);const d=c({...t,keyframes:o});a==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...o].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=k3(d));const{calculatedDuration:h}=d;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:h,repeat:m,repeatType:g,repeatDelay:b,type:w,onUpdate:x,finalKeyframe:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const C=this.currentTime-d*(this.playbackSpeed>=0?1:-1),E=this.playbackSpeed>=0?C<0:C>i;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let S=this.currentTime,R=r;if(m){const ie=Math.min(this.currentTime,i)/o;let ge=Math.floor(ie),oe=ie%1;!oe&&ie>=1&&(oe=1),oe===1&&ge--,ge=Math.min(ge,m+1),!!(ge%2)&&(g==="reverse"?(oe=1-oe,b&&(oe-=b/o)):g==="mirror"&&(R=s)),S=Bs(0,1,oe)*o}const _=E?{done:!1,value:h[0]}:R.next(S);a&&(_.value=a(_.value));let{done:F}=_;!E&&c!==null&&(F=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return z&&w!==y1&&(_.value=O3(h,this.options,A,this.speed)),x&&x(_.value),z&&this.finish(),_}then(t,n){return this.finished.then(t,n)}get duration(){return Za(this.calculatedDuration)}get time(){return Za(this.currentTime)}set time(t){var n;t=ga(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ri.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Za(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=sQ,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(a=(i=this.options).onPlay)==null||a.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ri.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}};function CQ(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const fu=e=>e*180/Math.PI,b1=e=>{const t=fu(Math.atan2(e[1],e[0]));return $1(t)},EQ={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:b1,rotateZ:b1,skewX:e=>fu(Math.atan(e[1])),skewY:e=>fu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},$1=e=>(e=e%360,e<0&&(e+=360),e),QD=b1,eA=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),tA=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),SQ={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:eA,scaleY:tA,scale:e=>(eA(e)+tA(e))/2,rotateX:e=>$1(fu(Math.atan2(e[6],e[5]))),rotateY:e=>$1(fu(Math.atan2(-e[2],e[0]))),rotateZ:QD,rotate:QD,skewX:e=>fu(Math.atan(e[4])),skewY:e=>fu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function x1(e){return e.includes("scale")?1:0}function w1(e,t){if(!e||e==="none")return x1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=SQ,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=EQ,i=o}if(!i)return x1(t);const a=r[t],s=i[1].split(",").map(AQ);return typeof a=="function"?a(s):s[a]}const DQ=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return w1(n,t)};function AQ(e){return parseFloat(e.trim())}const sc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],oc=new Set(sc),nA=e=>e===ac||e===Dt,TQ=new Set(["x","y","z"]),PQ=sc.filter(e=>!TQ.has(e));function _Q(e){const t=[];return PQ.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const gu={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:(e,{transform:t})=>w1(t,"x"),y:(e,{transform:t})=>w1(t,"y")};gu.translateX=gu.x;gu.translateY=gu.y;const vu=new Set;let C1=!1,E1=!1,S1=!1;function E7(){if(E1){const e=Array.from(vu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=_Q(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 o;(o=r.getValue(a))==null||o.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}E1=!1,C1=!1,vu.forEach(e=>e.complete(S1)),vu.clear()}function S7(){vu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(E1=!0)})}function MQ(){S1=!0,S7(),E7(),S1=!1}let V3=class{constructor(t,n,r,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(vu.add(this),C1||(C1=!0,wn.read(S7),wn.resolveKeyframes(E7))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i==null?void 0:i.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const o=r.readValue(n,s);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}CQ(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),vu.delete(this)}cancel(){this.state==="scheduled"&&(vu.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};const FQ=e=>e.startsWith("--");function RQ(e,t,n){FQ(t)?e.style.setProperty(t,n):e.style[t]=n}const kQ=E3(()=>window.ScrollTimeline!==void 0),OQ={};function IQ(e,t){const n=E3(e);return()=>OQ[t]??n()}const D7=IQ(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),gf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,rA={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gf([0,.65,.55,1]),circOut:gf([.55,0,1,.45]),backIn:gf([.31,.01,.66,-.59]),backOut:gf([.33,1.53,.69,.99])};function A7(e,t){if(e)return typeof e=="function"?D7()?$7(e,t):"ease-out":c7(e)?gf(e):Array.isArray(e)?e.map(n=>A7(n,t)||rA.easeOut):rA[e]}function LQ(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:c}={},d=void 0){const h={[t]:n};c&&(h.offset=c);const m=A7(o,i);Array.isArray(m)&&(h.easing=m);const g={delay:r,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return d&&(g.pseudoElement=d),e.animate(h,g)}function T7(e){return typeof e=="function"&&"applyToOptions"in e}function VQ({type:e,...t}){return T7(e)&&D7()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}let BQ=class extends I3{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:o,onComplete:c}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,ba(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=VQ(t);this.animation=LQ(n,r,i,d,a),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const h=O3(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(h):RQ(n,r,h),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Za(Number(t))}get time(){return Za(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ga(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&kQ()?(this.animation.timeline=t,Gi):n(this)}};const P7={anticipate:s7,backInOut:a7,circInOut:u7};function NQ(e){return e in P7}function jQ(e){typeof e.ease=="string"&&NQ(e.ease)&&(e.ease=P7[e.ease])}const iA=10;let KQ=class extends BQ{constructor(t){jQ(t),C7(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new L3({...s,autoplay:!1}),c=ga(this.finishedTime??this.time);n.setWithVelocity(o.sample(c-iA).value,o.sample(c).value,iA),o.stop()}};const aA=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(xo.test(e)||e==="0")&&!e.startsWith("url("));function UQ(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function qQ(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=aA(i,t),o=aA(a,t);return ic(s===o,`You are trying to animate ${t} from "${i}" to "${a}". "${s?a:i}" is not an animatable value.`,"value-not-animatable"),!s||!o?!1:UQ(e)||(n==="spring"||T7(n))&&r}function D1(e){e.duration=0,e.type}const zQ=new Set(["opacity","clipPath","filter","transform"]),WQ=E3(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function HQ(e){var h;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:s}=e;if(!(((h=t==null?void 0:t.owner)==null?void 0:h.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=t.owner.getProps();return WQ()&&n&&zQ.has(n)&&(n!=="transform"||!d)&&!c&&!r&&i!=="mirror"&&a!==0&&s!=="inertia"}const GQ=40;let YQ=class extends I3{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:o,name:c,motionValue:d,element:h,...m}){var w;super(),this.stop=()=>{var x,A;this._animation&&(this._animation.stop(),(x=this.stopTimeline)==null||x.call(this)),(A=this.keyframeResolver)==null||A.cancel()},this.createdAt=ri.now();const g={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,name:c,motionValue:d,element:h,...m},b=(h==null?void 0:h.KeyframeResolver)||V3;this.keyframeResolver=new b(o,(x,A,C)=>this.onKeyframesResolved(x,A,g,!C),c,d,h),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:s,velocity:o,delay:c,isHandoff:d,onUpdate:h}=r;this.resolvedAt=ri.now(),qQ(t,a,s,o)||((Ns.instantAnimations||!c)&&(h==null||h(O3(t,r,n))),t[0]=t[t.length-1],D1(r),r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>GQ?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!d&&HQ(g)?new KQ({...g,element:g.motionValue.owner.current}):new L3(g);b.finished.then(()=>this.notifyFinished()).catch(Gi),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),MQ()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}};const ZQ=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function XQ(e){const t=ZQ.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const JQ=4;function _7(e,t,n=1){ba(n<=JQ,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=XQ(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return XR(s)?parseFloat(s):s}return _3(i)?_7(i,t,n+1):i}function B3(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const M7=new Set(["width","height","top","left","right","bottom",...sc]),QQ={test:e=>e==="auto",parse:e=>e},F7=e=>t=>t.test(e),R7=[ac,Dt,Xa,oo,qJ,UJ,QQ],sA=e=>R7.find(F7(e));function eee(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||QR(e):!0}const tee=new Set(["brightness","contrast","saturate","opacity"]);function nee(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(M3)||[];if(!r)return e;const i=n.replace(r,"");let a=tee.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const ree=/\b([a-z-]*)\(.*?\)/gu,A1={...xo,getAnimatableNone:e=>{const t=e.match(ree);return t?t.map(nee).join(" "):e}},oA={...ac,transform:Math.round},iee={rotate:oo,rotateX:oo,rotateY:oo,rotateZ:oo,scale:vh,scaleX:vh,scaleY:vh,scaleZ:vh,skew:oo,skewX:oo,skewY:oo,distance:Dt,translateX:Dt,translateY:Dt,translateZ:Dt,x:Dt,y:Dt,z:Dt,perspective:Dt,transformPerspective:Dt,opacity:Nf,originX:GD,originY:GD,originZ:Dt},N3={borderWidth:Dt,borderTopWidth:Dt,borderRightWidth:Dt,borderBottomWidth:Dt,borderLeftWidth:Dt,borderRadius:Dt,radius:Dt,borderTopLeftRadius:Dt,borderTopRightRadius:Dt,borderBottomRightRadius:Dt,borderBottomLeftRadius:Dt,width:Dt,maxWidth:Dt,height:Dt,maxHeight:Dt,top:Dt,right:Dt,bottom:Dt,left:Dt,padding:Dt,paddingTop:Dt,paddingRight:Dt,paddingBottom:Dt,paddingLeft:Dt,margin:Dt,marginTop:Dt,marginRight:Dt,marginBottom:Dt,marginLeft:Dt,backgroundPositionX:Dt,backgroundPositionY:Dt,...iee,zIndex:oA,fillOpacity:Nf,strokeOpacity:Nf,numOctaves:oA},aee={...N3,color:Jn,backgroundColor:Jn,outlineColor:Jn,fill:Jn,stroke:Jn,borderColor:Jn,borderTopColor:Jn,borderRightColor:Jn,borderBottomColor:Jn,borderLeftColor:Jn,filter:A1,WebkitFilter:A1},k7=e=>aee[e];function O7(e,t){let n=k7(e);return n!==A1&&(n=xo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const see=new Set(["auto","none","0"]);function oee(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!see.has(a)&&jf(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=O7(n,i)}let uee=class extends V3{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 c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),_3(d))){const h=_7(d,n.current);h!==void 0&&(t[c]=h),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!M7.has(r)||t.length!==2)return;const[i,a]=t,s=sA(i),o=sA(a);if(s!==o)if(nA(s)&&nA(o))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else gu[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||eee(t[i]))&&r.push(i);r.length&&oee(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=gu[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 o;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const a=r.length-1,s=r[a];r[a]=gu[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(o=this.removedTransforms)!=null&&o.length&&this.removedTransforms.forEach(([c,d])=>{t.getValue(c).set(d)}),this.resolveNoneKeyframes()}};function lee(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const I7=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function cee(e){return JR(e)&&"offsetHeight"in e}const uA=30,fee=e=>!isNaN(parseFloat(e)),Cf={current:void 0};let dee=class{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var a;const i=ri.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ri.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=fee(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&D3(!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 S3);const r=this.events[t].add(n);return t==="change"?()=>{r(),wn.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}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()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Cf.current&&Cf.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=ri.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>uA)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,uA);return e7(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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Du(e,t){return new dee(e,t)}const{schedule:j3}=f7(queueMicrotask,!1),fa={x:!1,y:!1};function L7(){return fa.x||fa.y}function hee(e){return e==="x"||e==="y"?fa[e]?null:(fa[e]=!0,()=>{fa[e]=!1}):fa.x||fa.y?null:(fa.x=fa.y=!0,()=>{fa.x=fa.y=!1})}function V7(e,t){const n=lee(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function lA(e){return!(e.pointerType==="touch"||L7())}function pee(e,t,n={}){const[r,i,a]=V7(e,n),s=o=>{if(!lA(o))return;const{target:c}=o,d=t(c,o);if(typeof d!="function"||!c)return;const h=m=>{lA(m)&&(d(m),c.removeEventListener("pointerleave",h))};c.addEventListener("pointerleave",h,i)};return r.forEach(o=>{o.addEventListener("pointerenter",s,i)}),a}const B7=(e,t)=>t?e===t?!0:B7(e,t.parentElement):!1,K3=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,mee=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function gee(e){return mee.has(e.tagName)||e.tabIndex!==-1}const Vh=new WeakSet;function cA(e){return t=>{t.key==="Enter"&&e(t)}}function V0(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const vee=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=cA(()=>{if(Vh.has(n))return;V0(n,"down");const i=cA(()=>{V0(n,"up")}),a=()=>V0(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)};function fA(e){return K3(e)&&!L7()}function yee(e,t,n={}){const[r,i,a]=V7(e,n),s=o=>{const c=o.currentTarget;if(!fA(o))return;Vh.add(c);const d=t(c,o),h=(b,w)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),Vh.has(c)&&Vh.delete(c),fA(b)&&typeof d=="function"&&d(b,{success:w})},m=b=>{h(b,c===window||c===document||n.useGlobalTarget||B7(c,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,i),cee(o)&&(o.addEventListener("focus",d=>vee(d,i)),!gee(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),a}function N7(e){return JR(e)&&"ownerSVGElement"in e}function bee(e){return N7(e)&&e.tagName==="svg"}function $ee(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],s=e[3+n],o=w7(i,a,s);return t?o(r):o}const vr=e=>!!(e&&e.getVelocity),xee=[...R7,Jn,xo],wee=e=>xee.find(F7(e)),U3=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Cee(e=!0){const t=I.useContext(x3);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=I.useId();I.useEffect(()=>{if(e)return i(a)},[e]);const s=I.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}const j7=I.createContext({strict:!1}),dA={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"]},Hl={};for(const e in dA)Hl[e]={isEnabled:t=>dA[e].some(n=>!!t[n])};function Eee(e){for(const t in e)Hl[t]={...Hl[t],...e[t]}}const See=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 wp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||See.has(e)}let K7=e=>!wp(e);function Dee(e){typeof e=="function"&&(K7=t=>t.startsWith("on")?!wp(t):e(t))}try{Dee(require("@emotion/is-prop-valid").default)}catch{}function Aee(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(K7(i)||n===!0&&wp(i)||!t&&!wp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const bm=I.createContext({});function $m(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Kf(e){return typeof e=="string"||Array.isArray(e)}const q3=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],z3=["initial",...q3];function xm(e){return $m(e.animate)||z3.some(t=>Kf(e[t]))}function U7(e){return!!(xm(e)||e.variants)}function Tee(e,t){if(xm(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Kf(n)?n:void 0,animate:Kf(r)?r:void 0}}return e.inherit!==!1?t:{}}function Pee(e){const{initial:t,animate:n}=Tee(e,I.useContext(bm));return I.useMemo(()=>({initial:t,animate:n}),[hA(t),hA(n)])}function hA(e){return Array.isArray(e)?e.join(" "):e}const Uf={};function _ee(e){for(const t in e)Uf[t]=e[t],P3(t)&&(Uf[t].isCSSVariable=!0)}function q7(e,{layout:t,layoutId:n}){return oc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Uf[e]||e==="opacity")}const Mee={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Fee=sc.length;function Ree(e,t,n){let r="",i=!0;for(let a=0;a<Fee;a++){const s=sc[a],o=e[s];if(o===void 0)continue;let c=!0;if(typeof o=="number"?c=o===(s.startsWith("scale")?1:0):c=parseFloat(o)===0,!c||n){const d=I7(o,N3[s]);if(!c){i=!1;const h=Mee[s]||s;r+=`${h}(${d}) `}n&&(t[s]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function W3(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let s=!1,o=!1;for(const c in t){const d=t[c];if(oc.has(c)){s=!0;continue}else if(P3(c)){i[c]=d;continue}else{const h=I7(d,N3[c]);c.startsWith("origin")?(o=!0,a[c]=h):r[c]=h}}if(t.transform||(s||n?r.transform=Ree(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:c="50%",originY:d="50%",originZ:h=0}=a;r.transformOrigin=`${c} ${d} ${h}`}}const H3=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function z7(e,t,n){for(const r in t)!vr(t[r])&&!q7(r,n)&&(e[r]=t[r])}function kee({transformTemplate:e},t){return I.useMemo(()=>{const n=H3();return W3(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Oee(e,t){const n=e.style||{},r={};return z7(r,n,e),Object.assign(r,kee(e,t)),r}function Iee(e,t){const n={},r=Oee(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 Lee={offset:"stroke-dashoffset",array:"stroke-dasharray"},Vee={offset:"strokeDashoffset",array:"strokeDasharray"};function Bee(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?Lee:Vee;e[a.offset]=Dt.transform(-r);const s=Dt.transform(t),o=Dt.transform(n);e[a.array]=`${s} ${o}`}function W7(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...o},c,d,h){if(W3(e,o,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g}=e;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=(h==null?void 0:h.transformBox)??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),i!==void 0&&Bee(m,i,a,s,!1)}const H7=()=>({...H3(),attrs:{}}),G7=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Nee(e,t,n,r){const i=I.useMemo(()=>{const a=H7();return W7(a,t,G7(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};z7(a,e.style,e),i.style={...a,...i.style}}return i}const jee=["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 G3(e){return typeof e!="string"||e.includes("-")?!1:!!(jee.indexOf(e)>-1||/[A-Z]/u.test(e))}function Kee(e,t,n,{latestValues:r},i,a=!1){const o=(G3(e)?Nee:Iee)(t,r,i,e),c=Aee(t,typeof e=="string",a),d=e!==I.Fragment?{...c,...o,ref:n}:{},{children:h}=t,m=I.useMemo(()=>vr(h)?h.get():h,[h]);return I.createElement(e,{...d,children:m})}function pA(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Y3(e,t,n,r){if(typeof t=="function"){const[i,a]=pA(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]=pA(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function Bh(e){return vr(e)?e.get():e}function Uee({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:qee(n,r,i,e),renderState:t()}}function qee(e,t,n,r){const i={},a=r(e,{});for(const g in a)i[g]=Bh(a[g]);let{initial:s,animate:o}=e;const c=xm(e),d=U7(e);t&&d&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let h=n?n.initial===!1:!1;h=h||s===!1;const m=h?o:s;if(m&&typeof m!="boolean"&&!$m(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const w=Y3(e,g[b]);if(w){const{transitionEnd:x,transition:A,...C}=w;for(const E in C){let S=C[E];if(Array.isArray(S)){const R=h?S.length-1:0;S=S[R]}S!==null&&(i[E]=S)}for(const E in x)i[E]=x[E]}}}return i}const Y7=e=>(t,n)=>{const r=I.useContext(bm),i=I.useContext(x3),a=()=>Uee(e,t,r,i);return n?a():dd(a)};function Z3(e,t,n){var a;const{style:r}=e,i={};for(const s in r)(vr(r[s])||t.style&&vr(t.style[s])||q7(s,e)||((a=n==null?void 0:n.getValue(s))==null?void 0:a.liveStyle)!==void 0)&&(i[s]=r[s]);return i}const zee=Y7({scrapeMotionValuesFromProps:Z3,createRenderState:H3});function Z7(e,t,n){const r=Z3(e,t,n);for(const i in e)if(vr(e[i])||vr(t[i])){const a=sc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const Wee=Y7({scrapeMotionValuesFromProps:Z7,createRenderState:H7}),Hee=Symbol.for("motionComponentSymbol");function wl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Gee(e,t,n){return I.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):wl(n)&&(n.current=r))},[t])}const X3=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Yee="framerAppearId",X7="data-"+X3(Yee),J7=I.createContext({});function Zee(e,t,n,r,i){var x,A;const{visualElement:a}=I.useContext(bm),s=I.useContext(j7),o=I.useContext(x3),c=I.useContext(U3).reducedMotion,d=I.useRef(null);r=r||s.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:c}));const h=d.current,m=I.useContext(J7);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&Xee(d.current,n,i,m);const g=I.useRef(!1);I.useInsertionEffect(()=>{h&&g.current&&h.update(n,o)});const b=n[X7],w=I.useRef(!!b&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,b))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,b)));return ZR(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),w.current&&h.animationState&&h.animationState.animateChanges())}),I.useEffect(()=>{h&&(!w.current&&h.animationState&&h.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)==null||C.call(window,b)}),w.current=!1),h.enteringChildren=void 0)}),h}function Xee(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:c,layoutRoot:d,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Q7(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&wl(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:c,layoutRoot:d})}function Q7(e){if(e)return e.options.allowProjection!==!1?e.projection:Q7(e.parent)}function B0(e,{forwardMotionProps:t=!1}={},n,r){n&&Eee(n);const i=G3(e)?Wee:zee;function a(o,c){let d;const h={...I.useContext(U3),...o,layoutId:Jee(o)},{isStatic:m}=h,g=Pee(o),b=i(o,m);if(!m&&$3){Qee(h,n);const w=ete(h);d=w.MeasureLayout,g.visualElement=Zee(e,b,h,r,w.ProjectionNode)}return Qa.jsxs(bm.Provider,{value:g,children:[d&&g.visualElement?Qa.jsx(d,{visualElement:g.visualElement,...h}):null,Kee(e,o,Gee(b,g.visualElement,c),b,m,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=I.forwardRef(a);return s[Hee]=e,s}function Jee({layoutId:e}){const t=I.useContext(YR).id;return t&&e!==void 0?t+"-"+e:e}function Qee(e,t){const n=I.useContext(j7).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?ic(!1,r,"lazy-strict-mode"):ba(!1,r,"lazy-strict-mode")}}function ete(e){const{drag:t,layout:n}=Hl;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}}function tte(e,t){if(typeof Proxy>"u")return B0;const n=new Map,r=(a,s)=>B0(a,s,e,t),i=(a,s)=>(process.env.NODE_ENV!=="production"&&D3(!1,"motion() is deprecated. Use motion.create() instead."),r(a,s));return new Proxy(i,{get:(a,s)=>s==="create"?r:(n.has(s)||n.set(s,B0(s,void 0,e,t)),n.get(s))})}function ek({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function nte({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function rte(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 N0(e){return e===void 0||e===1}function T1({scale:e,scaleX:t,scaleY:n}){return!N0(e)||!N0(t)||!N0(n)}function nu(e){return T1(e)||tk(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tk(e){return mA(e.x)||mA(e.y)}function mA(e){return e&&e!=="0%"}function Cp(e,t,n){const r=e-n,i=t*r;return n+i}function gA(e,t,n,r,i){return i!==void 0&&(e=Cp(e,i,r)),Cp(e,n,r)+t}function P1(e,t=0,n=1,r,i){e.min=gA(e.min,t,n,r,i),e.max=gA(e.max,t,n,r,i)}function nk(e,{x:t,y:n}){P1(e.x,t.translate,t.scale,t.originPoint),P1(e.y,n.translate,n.scale,n.originPoint)}const vA=.999999999999,yA=1.0000000000001;function ite(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,s;for(let o=0;o<i;o++){a=n[o],s=a.projectionDelta;const{visualElement:c}=a.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&El(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,nk(e,s)),r&&nu(a.latestValues)&&El(e,a.latestValues))}t.x<yA&&t.x>vA&&(t.x=1),t.y<yA&&t.y>vA&&(t.y=1)}function Cl(e,t){e.min=e.min+t,e.max=e.max+t}function bA(e,t,n,r,i=.5){const a=An(e.min,e.max,i);P1(e,t,n,a,r)}function El(e,t){bA(e.x,t.x,t.scaleX,t.scale,t.originX),bA(e.y,t.y,t.scaleY,t.scale,t.originY)}function rk(e,t){return ek(rte(e.getBoundingClientRect(),t))}function ate(e,t,n){const r=rk(e,n),{scroll:i}=t;return i&&(Cl(r.x,i.offset.x),Cl(r.y,i.offset.y)),r}const $A=()=>({translate:0,scale:1,origin:0,originPoint:0}),Sl=()=>({x:$A(),y:$A()}),xA=()=>({min:0,max:0}),Wn=()=>({x:xA(),y:xA()}),_1={current:null},ik={current:!1};function ste(){if(ik.current=!0,!!$3)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>_1.current=e.matches;e.addEventListener("change",t),t()}else _1.current=!1}const ote=new WeakMap;function ute(e,t,n){for(const r in t){const i=t[r],a=n[r];if(vr(i))e.addValue(r,i);else if(vr(a))e.addValue(r,Du(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,Du(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const wA=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let lte=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=V3,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=ri.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,wn.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!a,this.isControllingVariants=xm(n),this.isVariantNode=U7(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const b=m[g];c[g]!==void 0&&vr(b)&&b.set(c[g])}}mount(t){var n;this.current=t,ote.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((r,i)=>this.bindToMotionValue(i,r)),ik.current||ste(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:_1.current,process.env.NODE_ENV!=="production"&&D3(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),js(this.notifyUpdate),js(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=oc.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&wn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Hl){const n=Hl[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):Wn()}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<wA.length;r++){const i=wA[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=ute(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=Du(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(XR(r)||QR(r))?r=parseFloat(r):!wee(r)&&xo.test(n)&&(r=O7(t,n)),this.setBaseTarget(t,vr(r)?r.get():r)),vr(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var a;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=Y3(this.props,n,(a=this.presenceContext)==null?void 0:a.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!vr(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new S3),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){j3.render(this.render)}},ak=class extends lte{constructor(){super(...arguments),this.KeyframeResolver=uee}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;vr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function sk(e,{style:t,vars:n},r,i){const a=e.style;let s;for(s in t)a[s]=t[s];i==null||i.applyProjectionStyles(a,r);for(s in n)a.setProperty(s,n[s])}function cte(e){return window.getComputedStyle(e)}let fte=class extends ak{constructor(){super(...arguments),this.type="html",this.renderInstance=sk}readValueFromInstance(t,n){var r;if(oc.has(n))return(r=this.projection)!=null&&r.isProjecting?x1(n):DQ(t,n);{const i=cte(t),a=(P3(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return rk(t,n)}build(t,n,r){W3(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Z3(t,n,r)}};const ok=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 dte(e,t,n,r){sk(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(ok.has(i)?i:X3(i),t.attrs[i])}let hte=class extends ak{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Wn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(oc.has(n)){const r=k7(n);return r&&r.default||0}return n=ok.has(n)?n:X3(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Z7(t,n,r)}build(t,n,r){W7(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){dte(t,n,r,i)}mount(t){this.isSVGTag=G7(t.tagName),super.mount(t)}};const pte=(e,t)=>G3(e)?new hte(t):new fte(t,{allowProjection:e!==I.Fragment});function Ll(e,t,n){const r=e.getProps();return Y3(r,t,n!==void 0?n:r.custom,e)}const M1=e=>Array.isArray(e);function mte(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Du(n))}function gte(e){return M1(e)?e[e.length-1]||0:e}function vte(e,t){const n=Ll(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const o=gte(a[s]);mte(e,s,o)}}function yte(e){return!!(vr(e)&&e.add)}function F1(e,t){const n=e.getValue("willChange");if(yte(n))return n.add(t);if(!n&&Ns.WillChange){const r=new Ns.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function uk(e){return e.props[X7]}const bte=e=>e!==null;function $te(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(bte),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const xte={type:"spring",stiffness:500,damping:25,restSpeed:10},wte=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Cte={type:"keyframes",duration:.8},Ete={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ste=(e,{keyframes:t})=>t.length>2?Cte:oc.has(e)?e.startsWith("scale")?wte(t[1]):xte:Ete;function Dte({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:c,elapsed:d,...h}){return!!Object.keys(h).length}const J3=(e,t,n,r={},i,a)=>s=>{const o=B3(r,e)||{},c=o.delay||r.delay||0;let{elapsed:d=0}=r;d=d-ga(c);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-d,onUpdate:g=>{t.set(g),o.onUpdate&&o.onUpdate(g)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:i};Dte(o)||Object.assign(h,Ste(e,h)),h.duration&&(h.duration=ga(h.duration)),h.repeatDelay&&(h.repeatDelay=ga(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(D1(h),h.delay===0&&(m=!0)),(Ns.instantAnimations||Ns.skipAnimations)&&(m=!0,D1(h),h.delay=0),h.allowFlatten=!o.type&&!o.ease,m&&!a&&t.get()!==void 0){const g=$te(h.keyframes,o);if(g!==void 0){wn.update(()=>{h.onUpdate(g),h.onComplete()});return}}return o.isSync?new L3(h):new YQ(h)};function Ate({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function lk(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...o}=t;r&&(a=r);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in o){const m=e.getValue(h,e.latestValues[h]??null),g=o[h];if(g===void 0||d&&Ate(d,h))continue;const b={delay:n,...B3(a||{},h)},w=m.get();if(w!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===w&&!b.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const C=uk(e);if(C){const E=window.MotionHandoffAnimation(C,h,wn);E!==null&&(b.startTime=E,x=!0)}}F1(e,h),m.start(J3(h,m,g,e.shouldReduceMotion&&M7.has(h)?{type:!1}:b,e,x));const A=m.animation;A&&c.push(A)}return s&&Promise.all(c).then(()=>{wn.update(()=>{s&&vte(e,s)})}),c}function ck(e,t,n,r=0,i=1){const a=Array.from(e).sort((d,h)=>d.sortNodePosition(h)).indexOf(t),s=e.size,o=(s-1)*r;return typeof n=="function"?n(a,s):i===1?a*r:o-a*r}function R1(e,t,n={}){var c;const r=Ll(e,t,n.type==="exit"?(c=e.presenceContext)==null?void 0:c.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(lk(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return Tte(e,t,d,h,m,g,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[d,h]=o==="beforeChildren"?[a,s]:[s,a];return d().then(()=>h())}else return Promise.all([a(),s(n.delay)])}function Tte(e,t,n=0,r=0,i=0,a=1,s){const o=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),o.push(R1(c,t,{...s,delay:n+(typeof r=="function"?0:r)+ck(e.variantChildren,c,r,i,a)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(o)}function Pte(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>R1(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=R1(e,t,n);else{const i=typeof t=="function"?Ll(e,t,n.custom):t;r=Promise.all(lk(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function fk(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}const _te=z3.length;function dk(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?dk(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<_te;n++){const r=z3[n],i=e.props[r];(Kf(i)||i===!1)&&(t[r]=i)}return t}const Mte=[...q3].reverse(),Fte=q3.length;function Rte(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Pte(e,n,r)))}function kte(e){let t=Rte(e),n=CA(),r=!0;const i=c=>(d,h)=>{var g;const m=Ll(e,h,c==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:w,...x}=m;d={...d,...x,...w}}return d};function a(c){t=c(e)}function s(c){const{props:d}=e,h=dk(e.parent)||{},m=[],g=new Set;let b={},w=1/0;for(let A=0;A<Fte;A++){const C=Mte[A],E=n[C],S=d[C]!==void 0?d[C]:h[C],R=Kf(S),_=C===c?E.isActive:null;_===!1&&(w=A);let F=S===h[C]&&S!==d[C]&&R;if(F&&r&&e.manuallyAnimateOnMount&&(F=!1),E.protectedKeys={...b},!E.isActive&&_===null||!S&&!E.prevProp||$m(S)||typeof S=="boolean")continue;const z=Ote(E.prevProp,S);let ie=z||C===c&&E.isActive&&!F&&R||A>w&&R,ge=!1;const oe=Array.isArray(S)?S:[S];let O=oe.reduce(i(C),{});_===!1&&(O={});const{prevResolvedValues:we={}}=E,Se={...we,...O},U=k=>{ie=!0,g.has(k)&&(ge=!0,g.delete(k)),E.needsAnimating[k]=!0;const N=e.getValue(k);N&&(N.liveStyle=!1)};for(const k in Se){const N=O[k],te=we[k];if(b.hasOwnProperty(k))continue;let j=!1;M1(N)&&M1(te)?j=!fk(N,te):j=N!==te,j?N!=null?U(k):g.add(k):N!==void 0&&g.has(k)?U(k):E.protectedKeys[k]=!0}E.prevProp=S,E.prevResolvedValues=O,E.isActive&&(b={...b,...O}),r&&e.blockInitialAnimation&&(ie=!1);const ee=F&&z;ie&&(!ee||ge)&&m.push(...oe.map(k=>{const N={type:C};if(typeof k=="string"&&r&&!ee&&e.manuallyAnimateOnMount&&e.parent){const{parent:te}=e,j=Ll(te,k);if(te.enteringChildren&&j){const{delayChildren:ce}=j.transition||{};N.delay=ck(te.enteringChildren,e,ce)}}return{animation:k,options:N}}))}if(g.size){const A={};if(typeof d.initial!="boolean"){const C=Ll(e,Array.isArray(d.initial)?d.initial[0]:d.initial);C&&C.transition&&(A.transition=C.transition)}g.forEach(C=>{const E=e.getBaseTarget(C),S=e.getValue(C);S&&(S.liveStyle=!0),A[C]=E??null}),m.push({animation:A})}let x=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(m):Promise.resolve()}function o(c,d){var m;if(n[c].isActive===d)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(g=>{var b;return(b=g.animationState)==null?void 0:b.setActive(c,d)}),n[c].isActive=d;const h=s(c);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>n,reset:()=>{n=CA(),r=!0}}}function Ote(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!fk(t,e):!1}function eu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function CA(){return{animate:eu(!0),whileInView:eu(),whileHover:eu(),whileTap:eu(),whileDrag:eu(),whileFocus:eu(),exit:eu()}}let Do=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},Ite=class extends Do{constructor(t){super(t),t.animationState||(t.animationState=kte(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();$m(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.call(this)}},Lte=0,Vte=class extends Do{constructor(){super(...arguments),this.id=Lte++}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,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}};const Bte={animation:{Feature:Ite},exit:{Feature:Vte}};function qf(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function gd(e){return{point:{x:e.pageX,y:e.pageY}}}const Nte=e=>t=>K3(t)&&e(t,gd(t));function Ef(e,t,n,r){return qf(e,t,Nte(n),r)}const hk=1e-4,jte=1-hk,Kte=1+hk,pk=.01,Ute=0-pk,qte=0+pk;function Br(e){return e.max-e.min}function zte(e,t,n){return Math.abs(e-t)<=n}function EA(e,t,n,r=.5){e.origin=r,e.originPoint=An(t.min,t.max,e.origin),e.scale=Br(n)/Br(t),e.translate=An(n.min,n.max,e.origin)-e.originPoint,(e.scale>=jte&&e.scale<=Kte||isNaN(e.scale))&&(e.scale=1),(e.translate>=Ute&&e.translate<=qte||isNaN(e.translate))&&(e.translate=0)}function Sf(e,t,n,r){EA(e.x,t.x,n.x,r?r.originX:void 0),EA(e.y,t.y,n.y,r?r.originY:void 0)}function SA(e,t,n){e.min=n.min+t.min,e.max=e.min+Br(t)}function Wte(e,t,n){SA(e.x,t.x,n.x),SA(e.y,t.y,n.y)}function DA(e,t,n){e.min=t.min-n.min,e.max=e.min+Br(t)}function Df(e,t,n){DA(e.x,t.x,n.x),DA(e.y,t.y,n.y)}function Vi(e){return[e("x"),e("y")]}const mk=({current:e})=>e?e.ownerDocument.defaultView:null,AA=(e,t)=>Math.abs(e-t);function Hte(e,t){const n=AA(e.x,t.x),r=AA(e.y,t.y);return Math.sqrt(n**2+r**2)}class gk{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=K0(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,w=Hte(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!w)return;const{point:x}=g,{timestamp:A}=gr;this.history.push({...x,timestamp:A});const{onStart:C,onMove:E}=this.handlers;b||(C&&C(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,g)},this.handlePointerMove=(g,b)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=j0(b,this.transformPagePoint),wn.update(this.updatePoint,!0)},this.handlePointerUp=(g,b)=>{this.end();const{onEnd:w,onSessionEnd:x,resumeAnimation:A}=this.handlers;if(this.dragSnapToOrigin&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=K0(g.type==="pointercancel"?this.lastMoveEventInfo:j0(b,this.transformPagePoint),this.history);this.startEvent&&w&&w(g,C),x&&x(g,C)},!K3(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const o=gd(t),c=j0(o,this.transformPagePoint),{point:d}=c,{timestamp:h}=gr;this.history=[{...d,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,K0(c,this.history)),this.removeListeners=hd(Ef(this.contextWindow,"pointermove",this.handlePointerMove),Ef(this.contextWindow,"pointerup",this.handlePointerUp),Ef(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),js(this.updatePoint)}}function j0(e,t){return t?{point:t(e.point)}:e}function TA(e,t){return{x:e.x-t.x,y:e.y-t.y}}function K0({point:e},t){return{point:e,delta:TA(e,vk(t)),offset:TA(e,Gte(t)),velocity:Yte(t,.1)}}function Gte(e){return e[0]}function vk(e){return e[e.length-1]}function Yte(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=vk(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ga(t)));)n--;if(!r)return{x:0,y:0};const a=Za(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Zte(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?An(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?An(n,e,r.max):Math.min(e,n)),e}function PA(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Xte(e,{top:t,left:n,bottom:r,right:i}){return{x:PA(e.x,n,i),y:PA(e.y,t,r)}}function _A(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Jte(e,t){return{x:_A(e.x,t.x),y:_A(e.y,t.y)}}function Qte(e,t){let n=.5;const r=Br(e),i=Br(t);return i>r?n=Bf(t.min,t.max-r,e.min):r>i&&(n=Bf(e.min,e.max-i,t.min)),Bs(0,1,n)}function ene(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const k1=.35;function tne(e=k1){return e===!1?e=0:e===!0&&(e=k1),{x:MA(e,"left","right"),y:MA(e,"top","bottom")}}function MA(e,t,n){return{min:FA(e,t),max:FA(e,n)}}function FA(e,t){return typeof e=="number"?e:e[t]||0}const nne=new WeakMap;class rne{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Wn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=m=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(gd(m).point)},s=(m,g)=>{const{drag:b,dragPropagation:w,onDragStart:x}=this.getProps();if(b&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=hee(b),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Vi(C=>{let E=this.getAxisMotionValue(C).get()||0;if(Xa.test(E)){const{projection:S}=this.visualElement;if(S&&S.layout){const R=S.layout.layoutBox[C];R&&(E=Br(R)*(parseFloat(E)/100))}}this.originPoint[C]=E}),x&&wn.postRender(()=>x(m,g)),F1(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},o=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g;const{dragPropagation:b,dragDirectionLock:w,onDirectionLock:x,onDrag:A}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:C}=g;if(w&&this.currentDirection===null){this.currentDirection=ine(C),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",g.point,C),this.updateAxis("y",g.point,C),this.visualElement.render(),A&&A(m,g)},c=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g,this.stop(m,g),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>Vi(m=>{var g;return this.getAnimationState(m)==="paused"&&((g=this.getAxisMotionValue(m).animation)==null?void 0:g.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new gk(t,{onSessionStart:a,onStart:s,onMove:o,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:r,contextWindow:mk(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&wn.postRender(()=>o(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!yh(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Zte(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){var a;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(a=this.visualElement.projection)==null?void 0:a.layout,i=this.constraints;t&&wl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Xte(r.layoutBox,t):this.constraints=!1,this.elastic=tne(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Vi(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=ene(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!wl(t))return!1;const r=t.current;ba(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=ate(r,i.root,this.visualElement.getTransformPagePoint());let s=Jte(i.layout.layoutBox,a);if(n){const o=n(nte(s));this.hasMutatedConstraints=!!o,o&&(s=ek(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),c=this.constraints||{},d=Vi(h=>{if(!yh(h,n,this.currentDirection))return;let m=c&&c[h]||{};s&&(m={min:0,max:0});const g=i?200:1e6,b=i?40:1e7,w={type:"inertia",velocity:r?t[h]:0,bounceStiffness:g,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...a,...m};return this.startAxisValueAnimation(h,w)});return Promise.all(d).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return F1(this.visualElement,t),r.start(J3(t,r,0,n,this.visualElement,!1))}stopAnimation(){Vi(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Vi(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Vi(n=>{const{drag:r}=this.getProps();if(!yh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:o}=i.layout.layoutBox[n];a.set(t[n]-An(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!wl(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Vi(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const c=o.get();i[s]=Qte({min:c,max:c},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Vi(s=>{if(!yh(s,t,null))return;const o=this.getAxisMotionValue(s),{min:c,max:d}=this.constraints[s];o.set(An(c,d,i[s]))})}addListeners(){if(!this.visualElement.current)return;nne.set(this.visualElement,this);const t=this.visualElement.current,n=Ef(t,"pointerdown",c=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();wl(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),wn.read(r);const s=qf(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Vi(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=c[h].translate,m.set(m.get()+c[h].translate))}),this.visualElement.render())});return()=>{s(),n(),a(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=k1,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:o}}}function yh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function ine(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ane extends Do{constructor(t){super(t),this.removeGroupControls=Gi,this.removeListeners=Gi,this.controls=new rne(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Gi}unmount(){this.removeGroupControls(),this.removeListeners()}}const RA=e=>(t,n)=>{e&&wn.postRender(()=>e(t,n))};class sne extends Do{constructor(){super(...arguments),this.removePointerDownListener=Gi}onPointerDown(t){this.session=new gk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:mk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:RA(t),onStart:RA(n),onMove:r,onEnd:(a,s)=>{delete this.session,i&&wn.postRender(()=>i(a,s))}}}mount(){this.removePointerDownListener=Ef(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Nh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function kA(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ef={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Dt.test(e))e=parseFloat(e);else return e;const n=kA(e,t.target.x),r=kA(e,t.target.y);return`${n}% ${r}%`}},one={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=xo.parse(e);if(i.length>5)return r;const a=xo.createTransformer(e),s=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,c=n.y.scale*t.y;i[0+s]/=o,i[1+s]/=c;const d=An(o,c,.5);return typeof i[2+s]=="number"&&(i[2+s]/=d),typeof i[3+s]=="number"&&(i[3+s]/=d),a(i)}};let U0=!1;class une extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;_ee(lne),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),U0&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Nh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:s}=r;return s&&(s.isPresent=a,U0=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||wn.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),j3.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;U0=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function yk(e){const[t,n]=Cee(),r=I.useContext(YR);return Qa.jsx(une,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(J7),isPresent:t,safeToRemove:n})}const lne={borderRadius:{...ef,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ef,borderTopRightRadius:ef,borderBottomLeftRadius:ef,borderBottomRightRadius:ef,boxShadow:one};function cne(e,t,n){const r=vr(e)?e:Du(e);return r.start(J3("",r,t,n)),r.animation}const fne=(e,t)=>e.depth-t.depth;class dne{constructor(){this.children=[],this.isDirty=!1}add(t){w3(this.children,t),this.isDirty=!0}remove(t){C3(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(fne),this.isDirty=!1,this.children.forEach(t)}}function hne(e,t){const n=ri.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(js(r),e(a-t))};return wn.setup(r,!0),()=>js(r)}const bk=["TopLeft","TopRight","BottomLeft","BottomRight"],pne=bk.length,OA=e=>typeof e=="string"?parseFloat(e):e,IA=e=>typeof e=="number"||Dt.test(e);function mne(e,t,n,r,i,a){i?(e.opacity=An(0,n.opacity??1,gne(r)),e.opacityExit=An(t.opacity??1,0,vne(r))):a&&(e.opacity=An(t.opacity??1,n.opacity??1,r));for(let s=0;s<pne;s++){const o=`border${bk[s]}Radius`;let c=LA(t,o),d=LA(n,o);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||IA(c)===IA(d)?(e[o]=Math.max(An(OA(c),OA(d),r),0),(Xa.test(d)||Xa.test(c))&&(e[o]+="%")):e[o]=d}(t.rotate||n.rotate)&&(e.rotate=An(t.rotate||0,n.rotate||0,r))}function LA(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const gne=$k(0,.5,o7),vne=$k(.5,.95,Gi);function $k(e,t,n){return r=>r<e?0:r>t?1:n(Bf(e,t,r))}function VA(e,t){e.min=t.min,e.max=t.max}function Oi(e,t){VA(e.x,t.x),VA(e.y,t.y)}function BA(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function NA(e,t,n,r,i){return e-=t,e=Cp(e,1/n,r),i!==void 0&&(e=Cp(e,1/i,r)),e}function yne(e,t=0,n=1,r=.5,i,a=e,s=e){if(Xa.test(t)&&(t=parseFloat(t),t=An(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=An(a.min,a.max,r);e===a&&(o-=t),e.min=NA(e.min,t,n,o,i),e.max=NA(e.max,t,n,o,i)}function jA(e,t,[n,r,i],a,s){yne(e,t[n],t[r],t[i],t.scale,a,s)}const bne=["x","scaleX","originX"],$ne=["y","scaleY","originY"];function KA(e,t,n,r){jA(e.x,t,bne,n?n.x:void 0,r?r.x:void 0),jA(e.y,t,$ne,n?n.y:void 0,r?r.y:void 0)}function UA(e){return e.translate===0&&e.scale===1}function xk(e){return UA(e.x)&&UA(e.y)}function qA(e,t){return e.min===t.min&&e.max===t.max}function xne(e,t){return qA(e.x,t.x)&&qA(e.y,t.y)}function zA(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function wk(e,t){return zA(e.x,t.x)&&zA(e.y,t.y)}function WA(e){return Br(e.x)/Br(e.y)}function HA(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class wne{constructor(){this.members=[]}add(t){w3(this.members,t),t.scheduleRender()}remove(t){if(C3(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Cne(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:g,skewX:b,skewY:w}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),g&&(r+=`rotateY(${g}deg) `),b&&(r+=`skewX(${b}deg) `),w&&(r+=`skewY(${w}deg) `)}const o=e.x.scale*t.x,c=e.y.scale*t.y;return(o!==1||c!==1)&&(r+=`scale(${o}, ${c})`),r||"none"}const q0=["","X","Y","Z"],Ene=1e3;let Sne=0;function z0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ck(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=uk(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",wn,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ck(r)}function Ek({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},o=t==null?void 0:t()){this.id=Sne++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Tne),this.nodes.forEach(Fne),this.nodes.forEach(Rne),this.nodes.forEach(Pne)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new dne)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new S3),this.eventHandlers.get(s).add(o)}notifyListeners(s,...o){const c=this.eventHandlers.get(s);c&&c.notify(...o)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=N7(s)&&!bee(s),this.instance=s;const{layoutId:o,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||o)&&(this.isLayoutDirty=!0),e){let h,m=0;const g=()=>this.root.updateBlockedByResize=!1;wn.read(()=>{m=window.innerWidth}),e(s,()=>{const b=window.innerWidth;b!==m&&(m=b,this.root.updateBlockedByResize=!0,h&&h(),h=hne(g,250),Nh.hasAnimatedSinceResize&&(Nh.hasAnimatedSinceResize=!1,this.nodes.forEach(ZA)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&d&&(o||c)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeLayoutChanged:g,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||d.getDefaultTransition()||Vne,{onLayoutAnimationStart:x,onLayoutAnimationComplete:A}=d.getProps(),C=!this.targetLayout||!wk(this.targetLayout,b),E=!m&&g;if(this.options.layoutRoot||this.resumeFrom||E||m&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const S={...B3(w,"layout"),onPlay:x,onComplete:A};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S),this.setAnimationOrigin(h,E)}else m||ZA(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),js(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(kne),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ck(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:o,layout:c}=this.options;if(o===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(GA);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(YA);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Mne),this.nodes.forEach(Dne),this.nodes.forEach(Ane)):this.nodes.forEach(YA),this.clearAllSnapshots();const o=ri.now();gr.delta=Bs(0,1e3/60,o-gr.timestamp),gr.timestamp=o,gr.isProcessing=!0,R0.update.process(gr),R0.preRender.process(gr),R0.render.process(gr),gr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,j3.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(_ne),this.sharedNodes.forEach(One)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,wn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){wn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Br(this.snapshot.measuredBox.x)&&!Br(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Wn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(o=!1),o&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!xk(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;s&&this.instance&&(o||nu(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const o=this.measurePageBox();let c=this.removeElementScroll(o);return s&&(c=this.removeTransform(c)),Bne(c),{animationId:this.root.animationId,measuredBox:o,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:s}=this.options;if(!s)return Wn();const o=s.measureViewportBox();if(!(((d=this.scroll)==null?void 0:d.wasRoot)||this.path.some(Nne))){const{scroll:h}=this.root;h&&(Cl(o.x,h.offset.x),Cl(o.y,h.offset.y))}return o}removeElementScroll(s){var c;const o=Wn();if(Oi(o,s),(c=this.scroll)!=null&&c.wasRoot)return o;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:g}=h;h!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&Oi(o,s),Cl(o.x,m.offset.x),Cl(o.y,m.offset.y))}return o}applyTransform(s,o=!1){const c=Wn();Oi(c,s);for(let d=0;d<this.path.length;d++){const h=this.path[d];!o&&h.options.layoutScroll&&h.scroll&&h!==h.root&&El(c,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),nu(h.latestValues)&&El(c,h.latestValues)}return nu(this.latestValues)&&El(c,this.latestValues),c}removeTransform(s){const o=Wn();Oi(o,s);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!nu(d.latestValues))continue;T1(d.latestValues)&&d.updateSnapshot();const h=Wn(),m=d.measurePageBox();Oi(h,m),KA(o,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return nu(this.latestValues)&&KA(o,this.latestValues),o}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==gr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var g;const o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==o;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(g=this.parent)!=null&&g.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=gr.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wn(),this.relativeTargetOrigin=Wn(),Df(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),Oi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Wn(),this.targetWithTransforms=Wn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Wte(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Oi(this.target,this.layout.layoutBox),nk(this.target,this.targetDelta)):Oi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wn(),this.relativeTargetOrigin=Wn(),Df(this.relativeTargetOrigin,this.target,b.target),Oi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||T1(this.parent.latestValues)||tk(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var w;const s=this.getLead(),o=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty)&&(c=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===gr.timestamp&&(c=!1),c)return;const{layout:d,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||h))return;Oi(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;ite(this.layoutCorrected,this.treeScale,this.path,o),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=Wn());const{target:b}=s;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(BA(this.prevProjectionDelta.x,this.projectionDelta.x),BA(this.prevProjectionDelta.y,this.projectionDelta.y)),Sf(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!HA(this.projectionDelta.x,this.prevProjectionDelta.x)||!HA(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var o;if((o=this.options.visualElement)==null||o.scheduleRender(),s){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Sl(),this.projectionDelta=Sl(),this.projectionDeltaWithTransform=Sl()}setAnimationOrigin(s,o=!1){const c=this.snapshot,d=c?c.latestValues:{},h={...this.latestValues},m=Sl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const g=Wn(),b=c?c.source:void 0,w=this.layout?this.layout.source:void 0,x=b!==w,A=this.getStack(),C=!A||A.members.length<=1,E=!!(x&&!C&&this.options.crossfade===!0&&!this.path.some(Lne));this.animationProgress=0;let S;this.mixTargetDelta=R=>{const _=R/1e3;XA(m.x,s.x,_),XA(m.y,s.y,_),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Df(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ine(this.relativeTarget,this.relativeTargetOrigin,g,_),S&&xne(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Wn()),Oi(S,this.relativeTarget)),x&&(this.animationValues=h,mne(h,d,this.latestValues,_,E,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var o,c,d;this.notifyListeners("animationStart"),(o=this.currentAnimation)==null||o.stop(),(d=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||d.stop(),this.pendingAnimation&&(js(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=wn.update(()=>{Nh.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Du(0)),this.currentAnimation=cne(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),s.onUpdate&&s.onUpdate(h)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ene),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:c,layout:d,latestValues:h}=s;if(!(!o||!c||!d)){if(this!==s&&this.layout&&d&&Sk(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||Wn();const m=Br(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+m;const g=Br(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+g}Oi(o,c),El(o,h),Sf(this.projectionDeltaWithTransform,this.layoutCorrected,o,h)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new wne),this.sharedNodes.get(s).add(o);const d=o.options.initialPromotionConfig;o.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var o;const{layoutId:s}=this.options;return s?((o=this.getStack())==null?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:s}=this.options;return s?(o=this.getStack())==null?void 0:o.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:c}=s;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(o=!0),!o)return;const d={};c.z&&z0("z",s,d,this.animationValues);for(let h=0;h<q0.length;h++)z0(`rotate${q0[h]}`,s,d,this.animationValues),z0(`skew${q0[h]}`,s,d,this.animationValues);s.render();for(const h in d)s.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);s.scheduleRender()}applyProjectionStyles(s,o){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=Bh(o==null?void 0:o.pointerEvents)||"",s.transform=c?c(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=Bh(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!nu(this.latestValues)&&(s.transform=c?c({},""):"none",this.hasProjected=!1);return}s.visibility="";const h=d.animationValues||d.latestValues;this.applyTransformsToTarget();let m=Cne(this.projectionDeltaWithTransform,this.treeScale,h);c&&(m=c(h,m)),s.transform=m;const{x:g,y:b}=this.projectionDelta;s.transformOrigin=`${g.origin*100}% ${b.origin*100}% 0`,d.animationValues?s.opacity=d===this?h.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:s.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const w in Uf){if(h[w]===void 0)continue;const{correct:x,applyTo:A,isCSSVariable:C}=Uf[w],E=m==="none"?h[w]:x(h[w],d);if(A){const S=A.length;for(let R=0;R<S;R++)s[A[R]]=E}else C?this.options.visualElement.renderState.vars[w]=E:s[w]=E}this.options.layoutId&&(s.pointerEvents=d===this?Bh(o==null?void 0:o.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var o;return(o=s.currentAnimation)==null?void 0:o.stop()}),this.root.nodes.forEach(GA),this.root.sharedNodes.clear()}}}function Dne(e){e.updateLayout()}function Ane(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,s=t.source!==e.layout.source;a==="size"?Vi(m=>{const g=s?t.measuredBox[m]:t.layoutBox[m],b=Br(g);g.min=r[m].min,g.max=g.min+b}):Sk(a,t.layoutBox,r)&&Vi(m=>{const g=s?t.measuredBox[m]:t.layoutBox[m],b=Br(r[m]);g.max=g.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const o=Sl();Sf(o,r,t.layoutBox);const c=Sl();s?Sf(c,e.applyTransform(i,!0),t.measuredBox):Sf(c,r,t.layoutBox);const d=!xk(o);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:b}=m;if(g&&b){const w=Wn();Df(w,t.layoutBox,g.layoutBox);const x=Wn();Df(x,r,b.layoutBox),wk(w,x)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=w,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:c,layoutDelta:o,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Tne(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Pne(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function _ne(e){e.clearSnapshot()}function GA(e){e.clearMeasurements()}function YA(e){e.isLayoutDirty=!1}function Mne(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ZA(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Fne(e){e.resolveTargetDelta()}function Rne(e){e.calcProjection()}function kne(e){e.resetSkewAndRotation()}function One(e){e.removeLeadSnapshot()}function XA(e,t,n){e.translate=An(t.translate,0,n),e.scale=An(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function JA(e,t,n,r){e.min=An(t.min,n.min,r),e.max=An(t.max,n.max,r)}function Ine(e,t,n,r){JA(e.x,t.x,n.x,r),JA(e.y,t.y,n.y,r)}function Lne(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Vne={duration:.45,ease:[.4,0,.1,1]},QA=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),eT=QA("applewebkit/")&&!QA("chrome/")?Math.round:Gi;function tT(e){e.min=eT(e.min),e.max=eT(e.max)}function Bne(e){tT(e.x),tT(e.y)}function Sk(e,t,n){return e==="position"||e==="preserve-aspect"&&!zte(WA(t),WA(n),.2)}function Nne(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const jne=Ek({attachResizeListener:(e,t)=>qf(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),W0={current:void 0},Dk=Ek({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!W0.current){const e=new jne({});e.mount(window),e.setOptions({layoutScroll:!0}),W0.current=e}return W0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Kne={pan:{Feature:sne},drag:{Feature:ane,ProjectionNode:Dk,MeasureLayout:yk}};function nT(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&&wn.postRender(()=>a(t,gd(t)))}let Une=class extends Do{mount(){const{current:t}=this.node;t&&(this.unmount=pee(t,(n,r)=>(nT(this.node,r,"Start"),i=>nT(this.node,i,"End"))))}unmount(){}},qne=class extends Do{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=hd(qf(this.node.current,"focus",()=>this.onFocus()),qf(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function rT(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&wn.postRender(()=>a(t,gd(t)))}let zne=class extends Do{mount(){const{current:t}=this.node;t&&(this.unmount=yee(t,(n,r)=>(rT(this.node,r,"Start"),(i,{success:a})=>rT(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const O1=new WeakMap,H0=new WeakMap,Wne=e=>{const t=O1.get(e.target);t&&t(e)},Hne=e=>{e.forEach(Wne)};function Gne({root:e,...t}){const n=e||document;H0.has(n)||H0.set(n,{});const r=H0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Hne,{root:e,...t})),r[i]}function Yne(e,t,n){const r=Gne(t);return O1.set(e,n),r.observe(e),()=>{O1.delete(e),r.unobserve(e)}}const Zne={some:0,all:1};let Xne=class extends Do{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:Zne[i]},o=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,a&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=d?h:m;g&&g(c)};return Yne(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Jne(t,n))&&this.startObserver()}unmount(){}};function Jne({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Qne={inView:{Feature:Xne},tap:{Feature:zne},focus:{Feature:qne},hover:{Feature:Une}},ere={layout:{ProjectionNode:Dk,MeasureLayout:yk}},tre={...Bte,...Qne,...Kne,...ere},Ak=tte(tre,pte);function Tk(e){const t=dd(()=>Du(e)),{isStatic:n}=I.useContext(U3);if(n){const[,r]=I.useState(e);I.useEffect(()=>t.on("change",r),[])}return t}function Pk(e,t){const n=Tk(t()),r=()=>n.set(t());return r(),ZR(()=>{const i=()=>wn.preRender(r,!1,!0),a=e.map(s=>s.on("change",i));return()=>{a.forEach(s=>s()),js(r)}}),n}function nre(e){Cf.current=[],e();const t=Pk(Cf.current,e);return Cf.current=void 0,t}function rre(e,t,n,r){if(typeof e=="function")return nre(e);const i=typeof t=="function"?t:$ee(t,n,r);return Array.isArray(e)?iT(e,i):iT([e],([a])=>i(a))}function iT(e,t){const n=dd(()=>[]);return Pk(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const _k=I.createContext(null);function ire(e,t,n,r){if(!r)return e;const i=e.findIndex(h=>h.value===t);if(i===-1)return e;const a=r>0?1:-1,s=e[i+a];if(!s)return e;const o=e[i],c=s.layout,d=An(c.min,c.max,.5);return a===1&&o.layout.max+n>d||a===-1&&o.layout.min+n<d?SJ(e,i,i+a):e}function are({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...a},s){const o=dd(()=>Ak[t]),c=[],d=I.useRef(!1);ba(!!i,"Reorder.Group must be provided a values prop","reorder-values");const h={axis:n,registerItem:(m,g)=>{const b=c.findIndex(w=>m===w.value);b!==-1?c[b].layout=g[n]:c.push({value:m,layout:g[n]}),c.sort(ure)},updateOrder:(m,g,b)=>{if(d.current)return;const w=ire(c,m,g,b);c!==w&&(d.current=!0,r(w.map(ore).filter(x=>i.indexOf(x)!==-1)))}};return I.useEffect(()=>{d.current=!1}),Qa.jsx(o,{...a,ref:s,ignoreStrict:!0,children:Qa.jsx(_k.Provider,{value:h,children:e})})}const sre=I.forwardRef(are);function ore(e){return e.value}function ure(e,t){return e.layout.min-t.layout.min}function aT(e,t=0){return vr(e)?e:Tk(t)}function lre({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:a=!0,...s},o){const c=dd(()=>Ak[r]),d=I.useContext(_k),h={x:aT(t.x),y:aT(t.y)},m=rre([h.x,h.y],([x,A])=>x||A?1:"unset");ba(!!d,"Reorder.Item must be a child of Reorder.Group","reorder-item-child");const{axis:g,registerItem:b,updateOrder:w}=d;return Qa.jsx(c,{drag:g,...s,dragSnapToOrigin:!0,style:{...t,x:h.x,y:h.y,zIndex:m},layout:a,onDrag:(x,A)=>{const{velocity:C}=A;C[g]&&w(n,h[g].get(),C[g]),i&&i(x,A)},onLayoutMeasure:x=>b(n,x),ref:o,ignoreStrict:!0,children:e})}const cre=I.forwardRef(lre);var jh={exports:{}},fre=jh.exports,sT;function dre(){return sT||(sT=1,function(e,t){(function(n,r){e.exports=r()})(fre,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,a){var s=i.prototype,o=s.format;a.en.formats=n,s.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var d=this.$locale().formats,h=function(m,g){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,w,x){var A=x&&x.toUpperCase();return w||g[x]||n[x]||g[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,E,S){return E||S.slice(1)})})}(c,d===void 0?{}:d);return o.call(this,h)}}})}(jh)),jh.exports}var hre=dre();const pre=yr(hre),oT=(e,t,n)=>{if(e&&"reportValidity"in e){const r=it(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Mk=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?oT(r.ref,n,e):r&&r.refs&&r.refs.forEach(i=>oT(i,n,e))}},mre=(e,t)=>{t.shouldUseNativeValidation&&Mk(e,t);const n={};for(const r in e){const i=it(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(gre(t.names||Object.keys(e),r)){const s=Object.assign({},it(n,r));nn(s,"root",a),nn(n,r,s)}else nn(n,r,a)}return n},gre=(e,t)=>{const n=uT(t);return e.some(r=>uT(r).match(`^${n}\\.\\d+`))};function uT(e){return e.replace(/\]|\[/g,"")}function vre(e,t,n){return n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(s,o){try{var c=(t!=null&&t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(d){return a.shouldUseNativeValidation&&Mk({},a),{values:n.raw?Object.assign({},r):d,errors:{}}}))}catch(d){return o(d)}return c&&c.then?c.then(void 0,o):c}(0,function(s){if(!s.inner)throw s;return{values:{},errors:mre((o=s,c=!a.shouldUseNativeValidation&&a.criteriaMode==="all",(o.inner||[]).reduce(function(d,h){if(d[h.path]||(d[h.path]={message:h.message,type:h.type}),c){var m=d[h.path].types,g=m&&m[h.type];d[h.path]=d5(h.path,c,d,h.type,g?[].concat(g,h.message):h.message)}return d},{})),a)};var o,c}))}catch(s){return Promise.reject(s)}}}var vf={exports:{}},yre=vf.exports,lT;function bre(){return lT||(lT=1,function(e,t){(function(n,r){r(t,fe.default)})(yre,function(n,r){function i(U){return U&&typeof U=="object"&&"default"in U?U:{default:U}}var a=i(r),s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Ui<"u"?Ui:typeof self<"u"?self:{},o={exports:{}};(function(U,ee){typeof document<"u"&&typeof navigator<"u"&&function(K,k){U.exports=k()}(s,function(){var K="http://www.w3.org/2000/svg",k="",N=!1,te=-999999,j=function(p){N=!!p},ce=function(){return N},ue=function(p){k=p},Ae=function(){return k};function _e(l){return document.createElement(l)}function Le(l,p){var v,$=l.length,T;for(v=0;v<$;v+=1){T=l[v].prototype;for(var P in T)Object.prototype.hasOwnProperty.call(T,P)&&(p.prototype[P]=T[P])}}function Ye(l){function p(){}return p.prototype=l,p}var Qe=function(){function l(p){this.audios=[],this.audioFactory=p,this._volume=1,this._isMuted=!1}return l.prototype={addAudio:function(v){this.audios.push(v)},pause:function(){var v,$=this.audios.length;for(v=0;v<$;v+=1)this.audios[v].pause()},resume:function(){var v,$=this.audios.length;for(v=0;v<$;v+=1)this.audios[v].resume()},setRate:function(v){var $,T=this.audios.length;for($=0;$<T;$+=1)this.audios[$].setRate(v)},createAudio:function(v){return this.audioFactory?this.audioFactory(v):window.Howl?new window.Howl({src:[v]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(v){this.audioFactory=v},setVolume:function(v){this._volume=v,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var v,$=this.audios.length;for(v=0;v<$;v+=1)this.audios[v].volume(this._volume*(this._isMuted?0:1))}},function(){return new l}}(),Ue=function(){function l(v,$){var T=0,P=[],q;switch(v){case"int16":case"uint8c":q=1;break;default:q=1.1;break}for(T=0;T<$;T+=1)P.push(q);return P}function p(v,$){return v==="float32"?new Float32Array($):v==="int16"?new Int16Array($):v==="uint8c"?new Uint8ClampedArray($):l(v,$)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?p:l}();function Ge(l){return Array.apply(null,{length:l})}var Ie=!0,Ne=null,Te="",He=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),ht=Math.pow,Ht=Math.sqrt,$t=Math.floor,_t=Math.min,zr=150,Qt=Math.PI/180,be=.5519;function De(l,p,v,$){this.type=l,this.currentTime=p,this.totalTime=v,this.direction=$<0?-1:1}function Me(l,p){this.type=l,this.direction=p<0?-1:1}function Xe(l,p,v,$){this.type=l,this.currentLoop=v,this.totalLoops=p,this.direction=$<0?-1:1}function tt(l,p,v){this.type=l,this.firstFrame=p,this.totalFrames=v}function Je(l,p){this.type=l,this.target=p}function gt(l,p){this.type="renderFrameError",this.nativeError=l,this.currentTime=p}function Rt(l){this.type="configError",this.nativeError=l}var xt=function(){var l=0;return function(){return l+=1,Te+"__lottie_element_"+l}}();function gn(l,p,v){var $,T,P,q,me,J,$e,Ce;switch(q=Math.floor(l*6),me=l*6-q,J=v*(1-p),$e=v*(1-me*p),Ce=v*(1-(1-me)*p),q%6){case 0:$=v,T=Ce,P=J;break;case 1:$=$e,T=v,P=J;break;case 2:$=J,T=v,P=Ce;break;case 3:$=J,T=$e,P=v;break;case 4:$=Ce,T=J,P=v;break;case 5:$=v,T=J,P=$e;break}return[$,T,P]}function br(l,p,v){var $=Math.max(l,p,v),T=Math.min(l,p,v),P=$-T,q,me=$===0?0:P/$,J=$/255;switch($){case T:q=0;break;case l:q=p-v+P*(p<v?6:0),q/=6*P;break;case p:q=v-l+P*2,q/=6*P;break;case v:q=l-p+P*4,q/=6*P;break}return[q,me,J]}function Ut(l,p){var v=br(l[0]*255,l[1]*255,l[2]*255);return v[1]+=p,v[1]>1?v[1]=1:v[1]<=0&&(v[1]=0),gn(v[0],v[1],v[2])}function Pt(l,p){var v=br(l[0]*255,l[1]*255,l[2]*255);return v[2]+=p,v[2]>1?v[2]=1:v[2]<0&&(v[2]=0),gn(v[0],v[1],v[2])}function It(l,p){var v=br(l[0]*255,l[1]*255,l[2]*255);return v[0]+=p/360,v[0]>1?v[0]-=1:v[0]<0&&(v[0]+=1),gn(v[0],v[1],v[2])}(function(){var l=[],p,v;for(p=0;p<256;p+=1)v=p.toString(16),l[p]=v.length===1?"0"+v:v;return function($,T,P){return $<0&&($=0),T<0&&(T=0),P<0&&(P=0),"#"+l[$]+l[T]+l[P]}})();var qt=function(p){Ie=!!p},fr=function(){return Ie},Wr=function(p){Ne=p},si=function(){return Ne},Pr=function(p){zr=p},Ea=function(){return zr},Ao=function(p){Te=p};function bt(l){return document.createElementNS(K,l)}function oi(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?oi=function(v){return typeof v}:oi=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},oi(l)}var is=function(){var l=1,p=[],v,$,T={onmessage:function(){},postMessage:function(Q){v({data:Q})}},P={postMessage:function(Q){T.onmessage({data:Q})}};function q(M){if(window.Worker&&window.Blob&&ce()){var Q=new Blob(["var _workerSelf = self; self.onmessage = ",M.toString()],{type:"text/javascript"}),G=URL.createObjectURL(Q);return new Worker(G)}return v=M,T}function me(){$||($=q(function(Q){function G(){function de(Ve,xe){var le,X,ve=Ve.length,je,ke,lt,At;for(X=0;X<ve;X+=1)if(le=Ve[X],"ks"in le&&!le.completed){if(le.completed=!0,le.hasMask){var Ct=le.masksProperties;for(ke=Ct.length,je=0;je<ke;je+=1)if(Ct[je].pt.k.i)H(Ct[je].pt.k);else for(At=Ct[je].pt.k.length,lt=0;lt<At;lt+=1)Ct[je].pt.k[lt].s&&H(Ct[je].pt.k[lt].s[0]),Ct[je].pt.k[lt].e&&H(Ct[je].pt.k[lt].e[0])}le.ty===0?(le.layers=L(le.refId,xe),de(le.layers,xe)):le.ty===4?B(le.shapes):le.ty===5&&ot(le)}}function W(Ve,xe){if(Ve){var le=0,X=Ve.length;for(le=0;le<X;le+=1)Ve[le].t===1&&(Ve[le].data.layers=L(Ve[le].data.refId,xe),de(Ve[le].data.layers,xe))}}function Y(Ve,xe){for(var le=0,X=xe.length;le<X;){if(xe[le].id===Ve)return xe[le];le+=1}return null}function L(Ve,xe){var le=Y(Ve,xe);return le?le.layers.__used?JSON.parse(JSON.stringify(le.layers)):(le.layers.__used=!0,le.layers):null}function B(Ve){var xe,le=Ve.length,X,ve;for(xe=le-1;xe>=0;xe-=1)if(Ve[xe].ty==="sh")if(Ve[xe].ks.k.i)H(Ve[xe].ks.k);else for(ve=Ve[xe].ks.k.length,X=0;X<ve;X+=1)Ve[xe].ks.k[X].s&&H(Ve[xe].ks.k[X].s[0]),Ve[xe].ks.k[X].e&&H(Ve[xe].ks.k[X].e[0]);else Ve[xe].ty==="gr"&&B(Ve[xe].it)}function H(Ve){var xe,le=Ve.i.length;for(xe=0;xe<le;xe+=1)Ve.i[xe][0]+=Ve.v[xe][0],Ve.i[xe][1]+=Ve.v[xe][1],Ve.o[xe][0]+=Ve.v[xe][0],Ve.o[xe][1]+=Ve.v[xe][1]}function ne(Ve,xe){var le=xe?xe.split("."):[100,100,100];return Ve[0]>le[0]?!0:le[0]>Ve[0]?!1:Ve[1]>le[1]?!0:le[1]>Ve[1]?!1:Ve[2]>le[2]?!0:le[2]>Ve[2]?!1:null}var se=function(){var Ve=[4,4,14];function xe(X){var ve=X.t.d;X.t.d={k:[{s:ve,t:0}]}}function le(X){var ve,je=X.length;for(ve=0;ve<je;ve+=1)X[ve].ty===5&&xe(X[ve])}return function(X){if(ne(Ve,X.v)&&(le(X.layers),X.assets)){var ve,je=X.assets.length;for(ve=0;ve<je;ve+=1)X.assets[ve].layers&&le(X.assets[ve].layers)}}}(),pe=function(){var Ve=[4,7,99];return function(xe){if(xe.chars&&!ne(Ve,xe.v)){var le,X=xe.chars.length;for(le=0;le<X;le+=1){var ve=xe.chars[le];ve.data&&ve.data.shapes&&(B(ve.data.shapes),ve.data.ip=0,ve.data.op=99999,ve.data.st=0,ve.data.sr=1,ve.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}},xe.chars[le].t||(ve.data.shapes.push({ty:"no"}),ve.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"})))}}}}(),Oe=function(){var Ve=[5,7,15];function xe(X){var ve=X.t.p;typeof ve.a=="number"&&(ve.a={a:0,k:ve.a}),typeof ve.p=="number"&&(ve.p={a:0,k:ve.p}),typeof ve.r=="number"&&(ve.r={a:0,k:ve.r})}function le(X){var ve,je=X.length;for(ve=0;ve<je;ve+=1)X[ve].ty===5&&xe(X[ve])}return function(X){if(ne(Ve,X.v)&&(le(X.layers),X.assets)){var ve,je=X.assets.length;for(ve=0;ve<je;ve+=1)X.assets[ve].layers&&le(X.assets[ve].layers)}}}(),nt=function(){var Ve=[4,1,9];function xe(X){var ve,je=X.length,ke,lt;for(ve=0;ve<je;ve+=1)if(X[ve].ty==="gr")xe(X[ve].it);else if(X[ve].ty==="fl"||X[ve].ty==="st")if(X[ve].c.k&&X[ve].c.k[0].i)for(lt=X[ve].c.k.length,ke=0;ke<lt;ke+=1)X[ve].c.k[ke].s&&(X[ve].c.k[ke].s[0]/=255,X[ve].c.k[ke].s[1]/=255,X[ve].c.k[ke].s[2]/=255,X[ve].c.k[ke].s[3]/=255),X[ve].c.k[ke].e&&(X[ve].c.k[ke].e[0]/=255,X[ve].c.k[ke].e[1]/=255,X[ve].c.k[ke].e[2]/=255,X[ve].c.k[ke].e[3]/=255);else X[ve].c.k[0]/=255,X[ve].c.k[1]/=255,X[ve].c.k[2]/=255,X[ve].c.k[3]/=255}function le(X){var ve,je=X.length;for(ve=0;ve<je;ve+=1)X[ve].ty===4&&xe(X[ve].shapes)}return function(X){if(ne(Ve,X.v)&&(le(X.layers),X.assets)){var ve,je=X.assets.length;for(ve=0;ve<je;ve+=1)X.assets[ve].layers&&le(X.assets[ve].layers)}}}(),et=function(){var Ve=[4,4,18];function xe(X){var ve,je=X.length,ke,lt;for(ve=je-1;ve>=0;ve-=1)if(X[ve].ty==="sh")if(X[ve].ks.k.i)X[ve].ks.k.c=X[ve].closed;else for(lt=X[ve].ks.k.length,ke=0;ke<lt;ke+=1)X[ve].ks.k[ke].s&&(X[ve].ks.k[ke].s[0].c=X[ve].closed),X[ve].ks.k[ke].e&&(X[ve].ks.k[ke].e[0].c=X[ve].closed);else X[ve].ty==="gr"&&xe(X[ve].it)}function le(X){var ve,je,ke=X.length,lt,At,Ct,yn;for(je=0;je<ke;je+=1){if(ve=X[je],ve.hasMask){var zt=ve.masksProperties;for(At=zt.length,lt=0;lt<At;lt+=1)if(zt[lt].pt.k.i)zt[lt].pt.k.c=zt[lt].cl;else for(yn=zt[lt].pt.k.length,Ct=0;Ct<yn;Ct+=1)zt[lt].pt.k[Ct].s&&(zt[lt].pt.k[Ct].s[0].c=zt[lt].cl),zt[lt].pt.k[Ct].e&&(zt[lt].pt.k[Ct].e[0].c=zt[lt].cl)}ve.ty===4&&xe(ve.shapes)}}return function(X){if(ne(Ve,X.v)&&(le(X.layers),X.assets)){var ve,je=X.assets.length;for(ve=0;ve<je;ve+=1)X.assets[ve].layers&&le(X.assets[ve].layers)}}}();function Be(Ve){Ve.__complete||(nt(Ve),se(Ve),pe(Ve),Oe(Ve),et(Ve),de(Ve.layers,Ve.assets),W(Ve.chars,Ve.assets),Ve.__complete=!0)}function ot(Ve){Ve.t.a.length===0&&"m"in Ve.t.p}var ct={};return ct.completeData=Be,ct.checkColors=nt,ct.checkChars=pe,ct.checkPathProperties=Oe,ct.checkShapes=et,ct.completeLayers=de,ct}if(P.dataManager||(P.dataManager=G()),P.assetLoader||(P.assetLoader=function(){function de(Y){var L=Y.getResponseHeader("content-type");return L&&Y.responseType==="json"&&L.indexOf("json")!==-1||Y.response&&oi(Y.response)==="object"?Y.response:Y.response&&typeof Y.response=="string"?JSON.parse(Y.response):Y.responseText?JSON.parse(Y.responseText):null}function W(Y,L,B,H){var ne,se=new XMLHttpRequest;try{se.responseType="json"}catch{}se.onreadystatechange=function(){if(se.readyState===4)if(se.status===200)ne=de(se),B(ne);else try{ne=de(se),B(ne)}catch(pe){H&&H(pe)}};try{se.open(["G","E","T"].join(""),Y,!0)}catch{se.open(["G","E","T"].join(""),L+"/"+Y,!0)}se.send()}return{load:W}}()),Q.data.type==="loadAnimation")P.assetLoader.load(Q.data.path,Q.data.fullPath,function(de){P.dataManager.completeData(de),P.postMessage({id:Q.data.id,payload:de,status:"success"})},function(){P.postMessage({id:Q.data.id,status:"error"})});else if(Q.data.type==="complete"){var he=Q.data.animation;P.dataManager.completeData(he),P.postMessage({id:Q.data.id,payload:he,status:"success"})}else Q.data.type==="loadData"&&P.assetLoader.load(Q.data.path,Q.data.fullPath,function(de){P.postMessage({id:Q.data.id,payload:de,status:"success"})},function(){P.postMessage({id:Q.data.id,status:"error"})})}),$.onmessage=function(M){var Q=M.data,G=Q.id,he=p[G];p[G]=null,Q.status==="success"?he.onComplete(Q.payload):he.onError&&he.onError()})}function J(M,Q){l+=1;var G="processId_"+l;return p[G]={onComplete:M,onError:Q},G}function $e(M,Q,G){me();var he=J(Q,G);$.postMessage({type:"loadAnimation",path:M,fullPath:window.location.origin+window.location.pathname,id:he})}function Ce(M,Q,G){me();var he=J(Q,G);$.postMessage({type:"loadData",path:M,fullPath:window.location.origin+window.location.pathname,id:he})}function Re(M,Q,G){me();var he=J(Q,G);$.postMessage({type:"complete",animation:M,id:he})}return{loadAnimation:$e,loadData:Ce,completeAnimation:Re}}(),vc=function(){var l=function(){var W=_e("canvas");W.width=1,W.height=1;var Y=W.getContext("2d");return Y.fillStyle="rgba(0,0,0,0)",Y.fillRect(0,0,1,1),W}();function p(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function v(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function $(W,Y,L){var B="";if(W.e)B=W.p;else if(Y){var H=W.p;H.indexOf("images/")!==-1&&(H=H.split("/")[1]),B=Y+H}else B=L,B+=W.u?W.u:"",B+=W.p;return B}function T(W){var Y=0,L=setInterval((function(){var B=W.getBBox();(B.width||Y>500)&&(this._imageLoaded(),clearInterval(L)),Y+=1}).bind(this),50)}function P(W){var Y=$(W,this.assetsPath,this.path),L=bt("image");He?this.testImageLoaded(L):L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){B.img=l,this._imageLoaded()}).bind(this),!1),L.setAttributeNS("http://www.w3.org/1999/xlink","href",Y),this._elementHelper.append?this._elementHelper.append(L):this._elementHelper.appendChild(L);var B={img:L,assetData:W};return B}function q(W){var Y=$(W,this.assetsPath,this.path),L=_e("img");L.crossOrigin="anonymous",L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){B.img=l,this._imageLoaded()}).bind(this),!1),L.src=Y;var B={img:L,assetData:W};return B}function me(W){var Y={assetData:W},L=$(W,this.assetsPath,this.path);return is.loadData(L,(function(B){Y.img=B,this._footageLoaded()}).bind(this),(function(){Y.img={},this._footageLoaded()}).bind(this)),Y}function J(W,Y){this.imagesLoadedCb=Y;var L,B=W.length;for(L=0;L<B;L+=1)W[L].layers||(!W[L].t||W[L].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(W[L]))):W[L].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(W[L]))))}function $e(W){this.path=W||""}function Ce(W){this.assetsPath=W||""}function Re(W){for(var Y=0,L=this.images.length;Y<L;){if(this.images[Y].assetData===W)return this.images[Y].img;Y+=1}return null}function M(){this.imagesLoadedCb=null,this.images.length=0}function Q(){return this.totalImages===this.loadedAssets}function G(){return this.totalFootages===this.loadedFootagesCount}function he(W,Y){W==="svg"?(this._elementHelper=Y,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function de(){this._imageLoaded=p.bind(this),this._footageLoaded=v.bind(this),this.testImageLoaded=T.bind(this),this.createFootageData=me.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return de.prototype={loadAssets:J,setAssetsPath:Ce,setPath:$e,loadedImages:Q,loadedFootages:G,destroy:M,getAsset:Re,createImgData:q,createImageData:P,imageLoaded:p,footageLoaded:v,setCacheType:he},de}();function Ou(){}Ou.prototype={triggerEvent:function(p,v){if(this._cbs[p])for(var $=this._cbs[p],T=0;T<$.length;T+=1)$[T](v)},addEventListener:function(p,v){return this._cbs[p]||(this._cbs[p]=[]),this._cbs[p].push(v),(function(){this.removeEventListener(p,v)}).bind(this)},removeEventListener:function(p,v){if(!v)this._cbs[p]=null;else if(this._cbs[p]){for(var $=0,T=this._cbs[p].length;$<T;)this._cbs[p][$]===v&&(this._cbs[p].splice($,1),$-=1,T-=1),$+=1;this._cbs[p].length||(this._cbs[p]=null)}}};var yc=function(){function l(p){for(var v=p.split(`\r
|
|
76
|
-
`),$={},T,P=0,q=0;q<v.length;q+=1)T=v[q].split(":"),T.length===2&&($[T[0]]=T[1].trim(),P+=1);if(P===0)throw new Error;return $}return function(p){for(var v=[],$=0;$<p.length;$+=1){var T=p[$],P={time:T.tm,duration:T.dr};try{P.payload=JSON.parse(p[$].cm)}catch{try{P.payload=l(p[$].cm)}catch{P.payload={name:p[$].cm}}}v.push(P)}return v}}(),Iu=function(){function l(p){this.compositions.push(p)}return function(){function p(v){for(var $=0,T=this.compositions.length;$<T;){if(this.compositions[$].data&&this.compositions[$].data.nm===v)return this.compositions[$].prepareFrame&&this.compositions[$].data.xt&&this.compositions[$].prepareFrame(this.currentFrame),this.compositions[$].compInterface;$+=1}return null}return p.compositions=[],p.currentFrame=0,p.registerComposition=l,p}}(),To={},Lu=function(p,v){To[p]=v};function Xi(l){return To[l]}function Ji(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ji=function(v){return typeof v}:Ji=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},Ji(l)}var yt=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=xt(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=fr(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Iu(),this.imagePreloader=new vc,this.audioController=Qe(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new De("drawnFrame",0,0,0)};Le([Ou],yt),yt.prototype.setParams=function(l){(l.wrapper||l.container)&&(this.wrapper=l.wrapper||l.container);var p="svg";l.animType?p=l.animType:l.renderer&&(p=l.renderer);var v=Xi(p);this.renderer=new v(this,l.rendererSettings),this.imagePreloader.setCacheType(p,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=p,l.loop===""||l.loop===null||l.loop===void 0||l.loop===!0?this.loop=!0:l.loop===!1?this.loop=!1:this.loop=parseInt(l.loop,10),this.autoplay="autoplay"in l?l.autoplay:!0,this.name=l.name?l.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(l,"autoloadSegments")?l.autoloadSegments:!0,this.assetsPath=l.assetsPath,this.initialSegment=l.initialSegment,l.audioFactory&&this.audioController.setAudioFactory(l.audioFactory),l.animationData?this.setupAnimation(l.animationData):l.path&&(l.path.lastIndexOf("\\")!==-1?this.path=l.path.substr(0,l.path.lastIndexOf("\\")+1):this.path=l.path.substr(0,l.path.lastIndexOf("/")+1),this.fileName=l.path.substr(l.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),is.loadAnimation(l.path,this.configAnimation,this.onSetupError))},yt.prototype.onSetupError=function(){this.trigger("data_failed")},yt.prototype.setupAnimation=function(l){is.completeAnimation(l,this.configAnimation)},yt.prototype.setData=function(l,p){p&&Ji(p)!=="object"&&(p=JSON.parse(p));var v={wrapper:l,animationData:p},$=l.attributes;v.path=$.getNamedItem("data-animation-path")?$.getNamedItem("data-animation-path").value:$.getNamedItem("data-bm-path")?$.getNamedItem("data-bm-path").value:$.getNamedItem("bm-path")?$.getNamedItem("bm-path").value:"",v.animType=$.getNamedItem("data-anim-type")?$.getNamedItem("data-anim-type").value:$.getNamedItem("data-bm-type")?$.getNamedItem("data-bm-type").value:$.getNamedItem("bm-type")?$.getNamedItem("bm-type").value:$.getNamedItem("data-bm-renderer")?$.getNamedItem("data-bm-renderer").value:$.getNamedItem("bm-renderer")?$.getNamedItem("bm-renderer").value:"canvas";var T=$.getNamedItem("data-anim-loop")?$.getNamedItem("data-anim-loop").value:$.getNamedItem("data-bm-loop")?$.getNamedItem("data-bm-loop").value:$.getNamedItem("bm-loop")?$.getNamedItem("bm-loop").value:"";T==="false"?v.loop=!1:T==="true"?v.loop=!0:T!==""&&(v.loop=parseInt(T,10));var P=$.getNamedItem("data-anim-autoplay")?$.getNamedItem("data-anim-autoplay").value:$.getNamedItem("data-bm-autoplay")?$.getNamedItem("data-bm-autoplay").value:$.getNamedItem("bm-autoplay")?$.getNamedItem("bm-autoplay").value:!0;v.autoplay=P!=="false",v.name=$.getNamedItem("data-name")?$.getNamedItem("data-name").value:$.getNamedItem("data-bm-name")?$.getNamedItem("data-bm-name").value:$.getNamedItem("bm-name")?$.getNamedItem("bm-name").value:"";var q=$.getNamedItem("data-anim-prerender")?$.getNamedItem("data-anim-prerender").value:$.getNamedItem("data-bm-prerender")?$.getNamedItem("data-bm-prerender").value:$.getNamedItem("bm-prerender")?$.getNamedItem("bm-prerender").value:"";q==="false"&&(v.prerender=!1),this.setParams(v)},yt.prototype.includeLayers=function(l){l.op>this.animationData.op&&(this.animationData.op=l.op,this.totalFrames=Math.floor(l.op-this.animationData.ip));var p=this.animationData.layers,v,$=p.length,T=l.layers,P,q=T.length;for(P=0;P<q;P+=1)for(v=0;v<$;){if(p[v].id===T[P].id){p[v]=T[P];break}v+=1}if((l.chars||l.fonts)&&(this.renderer.globalData.fontManager.addChars(l.chars),this.renderer.globalData.fontManager.addFonts(l.fonts,this.renderer.globalData.defs)),l.assets)for($=l.assets.length,v=0;v<$;v+=1)this.animationData.assets.push(l.assets[v]);this.animationData.__complete=!1,is.completeAnimation(this.animationData,this.onSegmentComplete)},yt.prototype.onSegmentComplete=function(l){this.animationData=l;var p=si();p&&p.initExpressions(this),this.loadNextSegment()},yt.prototype.loadNextSegment=function(){var l=this.animationData.segments;if(!l||l.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var p=l.shift();this.timeCompleted=p.time*this.frameRate;var v=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,is.loadData(v,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},yt.prototype.loadSegments=function(){var l=this.animationData.segments;l||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},yt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},yt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},yt.prototype.configAnimation=function(l){if(this.renderer)try{this.animationData=l,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(l),l.assets||(l.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(l.assets),this.markers=yc(l.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(p){this.triggerConfigError(p)}},yt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},yt.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 l=si();l&&l.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},yt.prototype.resize=function(l,p){var v=typeof l=="number"?l:void 0,$=typeof p=="number"?p:void 0;this.renderer.updateContainerSize(v,$)},yt.prototype.setSubframe=function(l){this.isSubframeEnabled=!!l},yt.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")},yt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(l){this.triggerRenderFrameError(l)}},yt.prototype.play=function(l){l&&this.name!==l||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},yt.prototype.pause=function(l){l&&this.name!==l||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},yt.prototype.togglePause=function(l){l&&this.name!==l||(this.isPaused===!0?this.play():this.pause())},yt.prototype.stop=function(l){l&&this.name!==l||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},yt.prototype.getMarkerData=function(l){for(var p,v=0;v<this.markers.length;v+=1)if(p=this.markers[v],p.payload&&p.payload.name===l)return p;return null},yt.prototype.goToAndStop=function(l,p,v){if(!(v&&this.name!==v)){var $=Number(l);if(isNaN($)){var T=this.getMarkerData(l);T&&this.goToAndStop(T.time,!0)}else p?this.setCurrentRawFrameValue(l):this.setCurrentRawFrameValue(l*this.frameModifier);this.pause()}},yt.prototype.goToAndPlay=function(l,p,v){if(!(v&&this.name!==v)){var $=Number(l);if(isNaN($)){var T=this.getMarkerData(l);T&&(T.duration?this.playSegments([T.time,T.time+T.duration],!0):this.goToAndStop(T.time,!0))}else this.goToAndStop($,p,v);this.play()}},yt.prototype.advanceTime=function(l){if(!(this.isPaused===!0||this.isLoaded===!1)){var p=this.currentRawFrame+l*this.frameModifier,v=!1;p>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(p>this.totalFrames?p%this.totalFrames:0)||(v=!0,p=this.totalFrames-1):p>=this.totalFrames?(this.playCount+=1,this.checkSegments(p%this.totalFrames)||(this.setCurrentRawFrameValue(p%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(p):p<0?this.checkSegments(p%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+p%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(v=!0,p=0)):this.setCurrentRawFrameValue(p),v&&(this.setCurrentRawFrameValue(p),this.pause(),this.trigger("complete"))}},yt.prototype.adjustSegment=function(l,p){this.playCount=0,l[1]<l[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=l[0]-l[1],this.timeCompleted=this.totalFrames,this.firstFrame=l[1],this.setCurrentRawFrameValue(this.totalFrames-.001-p)):l[1]>l[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=l[1]-l[0],this.timeCompleted=this.totalFrames,this.firstFrame=l[0],this.setCurrentRawFrameValue(.001+p)),this.trigger("segmentStart")},yt.prototype.setSegment=function(l,p){var v=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<l?v=l:this.currentRawFrame+this.firstFrame>p&&(v=p-l)),this.firstFrame=l,this.totalFrames=p-l,this.timeCompleted=this.totalFrames,v!==-1&&this.goToAndStop(v,!0)},yt.prototype.playSegments=function(l,p){if(p&&(this.segments.length=0),Ji(l[0])==="object"){var v,$=l.length;for(v=0;v<$;v+=1)this.segments.push(l[v])}else this.segments.push(l);this.segments.length&&p&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},yt.prototype.resetSegments=function(l){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),l&&this.checkSegments(0)},yt.prototype.checkSegments=function(l){return this.segments.length?(this.adjustSegment(this.segments.shift(),l),!0):!1},yt.prototype.destroy=function(l){l&&this.name!==l||!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)},yt.prototype.setCurrentRawFrameValue=function(l){this.currentRawFrame=l,this.gotoFrame()},yt.prototype.setSpeed=function(l){this.playSpeed=l,this.updaFrameModifier()},yt.prototype.setDirection=function(l){this.playDirection=l<0?-1:1,this.updaFrameModifier()},yt.prototype.setLoop=function(l){this.loop=l},yt.prototype.setVolume=function(l,p){p&&this.name!==p||this.audioController.setVolume(l)},yt.prototype.getVolume=function(){return this.audioController.getVolume()},yt.prototype.mute=function(l){l&&this.name!==l||this.audioController.mute()},yt.prototype.unmute=function(l){l&&this.name!==l||this.audioController.unmute()},yt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},yt.prototype.getPath=function(){return this.path},yt.prototype.getAssetsPath=function(l){var p="";if(l.e)p=l.p;else if(this.assetsPath){var v=l.p;v.indexOf("images/")!==-1&&(v=v.split("/")[1]),p=this.assetsPath+v}else p=this.path,p+=l.u?l.u:"",p+=l.p;return p},yt.prototype.getAssetData=function(l){for(var p=0,v=this.assets.length;p<v;){if(l===this.assets[p].id)return this.assets[p];p+=1}return null},yt.prototype.hide=function(){this.renderer.hide()},yt.prototype.show=function(){this.renderer.show()},yt.prototype.getDuration=function(l){return l?this.totalFrames:this.totalFrames/this.frameRate},yt.prototype.updateDocumentData=function(l,p,v){try{var $=this.renderer.getElementByPath(l);$.updateDocumentData(p,v)}catch{}},yt.prototype.trigger=function(l){if(this._cbs&&this._cbs[l])switch(l){case"enterFrame":this.triggerEvent(l,new De(l,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(l,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(l,new Xe(l,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(l,new Me(l,this.frameMult));break;case"segmentStart":this.triggerEvent(l,new tt(l,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(l,new Je(l,this));break;default:this.triggerEvent(l)}l==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new De(l,this.currentFrame,this.totalFrames,this.frameMult)),l==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Xe(l,this.loop,this.playCount,this.frameMult)),l==="complete"&&this.onComplete&&this.onComplete.call(this,new Me(l,this.frameMult)),l==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new tt(l,this.firstFrame,this.totalFrames)),l==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Je(l,this))},yt.prototype.triggerRenderFrameError=function(l){var p=new gt(l,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)},yt.prototype.triggerConfigError=function(l){var p=new Rt(l,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)};var Cn=function(){var l={},p=[],v=0,$=0,T=0,P=!0,q=!1;function me(xe){for(var le=0,X=xe.target;le<$;)p[le].animation===X&&(p.splice(le,1),le-=1,$-=1,X.isPaused||Re()),le+=1}function J(xe,le){if(!xe)return null;for(var X=0;X<$;){if(p[X].elem===xe&&p[X].elem!==null)return p[X].animation;X+=1}var ve=new yt;return M(ve,xe),ve.setData(xe,le),ve}function $e(){var xe,le=p.length,X=[];for(xe=0;xe<le;xe+=1)X.push(p[xe].animation);return X}function Ce(){T+=1,nt()}function Re(){T-=1}function M(xe,le){xe.addEventListener("destroy",me),xe.addEventListener("_active",Ce),xe.addEventListener("_idle",Re),p.push({elem:le,animation:xe}),$+=1}function Q(xe){var le=new yt;return M(le,null),le.setParams(xe),le}function G(xe,le){var X;for(X=0;X<$;X+=1)p[X].animation.setSpeed(xe,le)}function he(xe,le){var X;for(X=0;X<$;X+=1)p[X].animation.setDirection(xe,le)}function de(xe){var le;for(le=0;le<$;le+=1)p[le].animation.play(xe)}function W(xe){var le=xe-v,X;for(X=0;X<$;X+=1)p[X].animation.advanceTime(le);v=xe,T&&!q?window.requestAnimationFrame(W):P=!0}function Y(xe){v=xe,window.requestAnimationFrame(W)}function L(xe){var le;for(le=0;le<$;le+=1)p[le].animation.pause(xe)}function B(xe,le,X){var ve;for(ve=0;ve<$;ve+=1)p[ve].animation.goToAndStop(xe,le,X)}function H(xe){var le;for(le=0;le<$;le+=1)p[le].animation.stop(xe)}function ne(xe){var le;for(le=0;le<$;le+=1)p[le].animation.togglePause(xe)}function se(xe){var le;for(le=$-1;le>=0;le-=1)p[le].animation.destroy(xe)}function pe(xe,le,X){var ve=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),je,ke=ve.length;for(je=0;je<ke;je+=1)X&&ve[je].setAttribute("data-bm-type",X),J(ve[je],xe);if(le&&ke===0){X||(X="svg");var lt=document.getElementsByTagName("body")[0];lt.innerText="";var At=_e("div");At.style.width="100%",At.style.height="100%",At.setAttribute("data-bm-type",X),lt.appendChild(At),J(At,xe)}}function Oe(){var xe;for(xe=0;xe<$;xe+=1)p[xe].animation.resize()}function nt(){!q&&T&&P&&(window.requestAnimationFrame(Y),P=!1)}function et(){q=!0}function Be(){q=!1,nt()}function ot(xe,le){var X;for(X=0;X<$;X+=1)p[X].animation.setVolume(xe,le)}function ct(xe){var le;for(le=0;le<$;le+=1)p[le].animation.mute(xe)}function Ve(xe){var le;for(le=0;le<$;le+=1)p[le].animation.unmute(xe)}return l.registerAnimation=J,l.loadAnimation=Q,l.setSpeed=G,l.setDirection=he,l.play=de,l.pause=L,l.stop=H,l.togglePause=ne,l.searchAnimations=pe,l.resize=Oe,l.goToAndStop=B,l.destroy=se,l.freeze=et,l.unfreeze=Be,l.setVolume=ot,l.mute=ct,l.unmute=Ve,l.getRegisteredAnimations=$e,l}(),as=function(){var l={};l.getBezierEasing=v;var p={};function v(Y,L,B,H,ne){var se=ne||("bez_"+Y+"_"+L+"_"+B+"_"+H).replace(/\./g,"p");if(p[se])return p[se];var pe=new W([Y,L,B,H]);return p[se]=pe,pe}var $=4,T=.001,P=1e-7,q=10,me=11,J=1/(me-1),$e=typeof Float32Array=="function";function Ce(Y,L){return 1-3*L+3*Y}function Re(Y,L){return 3*L-6*Y}function M(Y){return 3*Y}function Q(Y,L,B){return((Ce(L,B)*Y+Re(L,B))*Y+M(L))*Y}function G(Y,L,B){return 3*Ce(L,B)*Y*Y+2*Re(L,B)*Y+M(L)}function he(Y,L,B,H,ne){var se,pe,Oe=0;do pe=L+(B-L)/2,se=Q(pe,H,ne)-Y,se>0?B=pe:L=pe;while(Math.abs(se)>P&&++Oe<q);return pe}function de(Y,L,B,H){for(var ne=0;ne<$;++ne){var se=G(L,B,H);if(se===0)return L;var pe=Q(L,B,H)-Y;L-=pe/se}return L}function W(Y){this._p=Y,this._mSampleValues=$e?new Float32Array(me):new Array(me),this._precomputed=!1,this.get=this.get.bind(this)}return W.prototype={get:function(L){var B=this._p[0],H=this._p[1],ne=this._p[2],se=this._p[3];return this._precomputed||this._precompute(),B===H&&ne===se?L:L===0?0:L===1?1:Q(this._getTForX(L),H,se)},_precompute:function(){var L=this._p[0],B=this._p[1],H=this._p[2],ne=this._p[3];this._precomputed=!0,(L!==B||H!==ne)&&this._calcSampleValues()},_calcSampleValues:function(){for(var L=this._p[0],B=this._p[2],H=0;H<me;++H)this._mSampleValues[H]=Q(H*J,L,B)},_getTForX:function(L){for(var B=this._p[0],H=this._p[2],ne=this._mSampleValues,se=0,pe=1,Oe=me-1;pe!==Oe&&ne[pe]<=L;++pe)se+=J;--pe;var nt=(L-ne[pe])/(ne[pe+1]-ne[pe]),et=se+nt*J,Be=G(et,B,H);return Be>=T?de(L,et,B,H):Be===0?et:he(L,se,se+J,B,H)}},l}(),Vu=function(){function l(p){return p.concat(Ge(p.length))}return{double:l}}(),$r=function(){return function(l,p,v){var $=0,T=l,P=Ge(T),q={newElement:me,release:J};function me(){var $e;return $?($-=1,$e=P[$]):$e=p(),$e}function J($e){$===T&&(P=Vu.double(P),T*=2),v&&v($e),P[$]=$e,$+=1}return q}}(),Bu=function(){function l(){return{addedLength:0,percents:Ue("float32",Ea()),lengths:Ue("float32",Ea())}}return $r(8,l)}(),Nu=function(){function l(){return{lengths:[],totalLength:0}}function p(v){var $,T=v.lengths.length;for($=0;$<T;$+=1)Bu.release(v.lengths[$]);v.lengths.length=0}return $r(8,l,p)}();function bc(){var l=Math;function p(M,Q,G,he,de,W){var Y=M*he+Q*de+G*W-de*he-W*M-G*Q;return Y>-.001&&Y<.001}function v(M,Q,G,he,de,W,Y,L,B){if(G===0&&W===0&&B===0)return p(M,Q,he,de,Y,L);var H=l.sqrt(l.pow(he-M,2)+l.pow(de-Q,2)+l.pow(W-G,2)),ne=l.sqrt(l.pow(Y-M,2)+l.pow(L-Q,2)+l.pow(B-G,2)),se=l.sqrt(l.pow(Y-he,2)+l.pow(L-de,2)+l.pow(B-W,2)),pe;return H>ne?H>se?pe=H-ne-se:pe=se-ne-H:se>ne?pe=se-ne-H:pe=ne-H-se,pe>-1e-4&&pe<1e-4}var $=function(){return function(M,Q,G,he){var de=Ea(),W,Y,L,B,H,ne=0,se,pe=[],Oe=[],nt=Bu.newElement();for(L=G.length,W=0;W<de;W+=1){for(H=W/(de-1),se=0,Y=0;Y<L;Y+=1)B=ht(1-H,3)*M[Y]+3*ht(1-H,2)*H*G[Y]+3*(1-H)*ht(H,2)*he[Y]+ht(H,3)*Q[Y],pe[Y]=B,Oe[Y]!==null&&(se+=ht(pe[Y]-Oe[Y],2)),Oe[Y]=pe[Y];se&&(se=Ht(se),ne+=se),nt.percents[W]=H,nt.lengths[W]=ne}return nt.addedLength=ne,nt}}();function T(M){var Q=Nu.newElement(),G=M.c,he=M.v,de=M.o,W=M.i,Y,L=M._length,B=Q.lengths,H=0;for(Y=0;Y<L-1;Y+=1)B[Y]=$(he[Y],he[Y+1],de[Y],W[Y+1]),H+=B[Y].addedLength;return G&&L&&(B[Y]=$(he[Y],he[0],de[Y],W[0]),H+=B[Y].addedLength),Q.totalLength=H,Q}function P(M){this.segmentLength=0,this.points=new Array(M)}function q(M,Q){this.partialLength=M,this.point=Q}var me=function(){var M={};return function(Q,G,he,de){var W=(Q[0]+"_"+Q[1]+"_"+G[0]+"_"+G[1]+"_"+he[0]+"_"+he[1]+"_"+de[0]+"_"+de[1]).replace(/\./g,"p");if(!M[W]){var Y=Ea(),L,B,H,ne,se,pe=0,Oe,nt,et=null;Q.length===2&&(Q[0]!==G[0]||Q[1]!==G[1])&&p(Q[0],Q[1],G[0],G[1],Q[0]+he[0],Q[1]+he[1])&&p(Q[0],Q[1],G[0],G[1],G[0]+de[0],G[1]+de[1])&&(Y=2);var Be=new P(Y);for(H=he.length,L=0;L<Y;L+=1){for(nt=Ge(H),se=L/(Y-1),Oe=0,B=0;B<H;B+=1)ne=ht(1-se,3)*Q[B]+3*ht(1-se,2)*se*(Q[B]+he[B])+3*(1-se)*ht(se,2)*(G[B]+de[B])+ht(se,3)*G[B],nt[B]=ne,et!==null&&(Oe+=ht(nt[B]-et[B],2));Oe=Ht(Oe),pe+=Oe,Be.points[L]=new q(Oe,nt),et=nt}Be.segmentLength=pe,M[W]=Be}return M[W]}}();function J(M,Q){var G=Q.percents,he=Q.lengths,de=G.length,W=$t((de-1)*M),Y=M*Q.addedLength,L=0;if(W===de-1||W===0||Y===he[W])return G[W];for(var B=he[W]>Y?-1:1,H=!0;H;)if(he[W]<=Y&&he[W+1]>Y?(L=(Y-he[W])/(he[W+1]-he[W]),H=!1):W+=B,W<0||W>=de-1){if(W===de-1)return G[W];H=!1}return G[W]+(G[W+1]-G[W])*L}function $e(M,Q,G,he,de,W){var Y=J(de,W),L=1-Y,B=l.round((L*L*L*M[0]+(Y*L*L+L*Y*L+L*L*Y)*G[0]+(Y*Y*L+L*Y*Y+Y*L*Y)*he[0]+Y*Y*Y*Q[0])*1e3)/1e3,H=l.round((L*L*L*M[1]+(Y*L*L+L*Y*L+L*L*Y)*G[1]+(Y*Y*L+L*Y*Y+Y*L*Y)*he[1]+Y*Y*Y*Q[1])*1e3)/1e3;return[B,H]}var Ce=Ue("float32",8);function Re(M,Q,G,he,de,W,Y){de<0?de=0:de>1&&(de=1);var L=J(de,Y);W=W>1?1:W;var B=J(W,Y),H,ne=M.length,se=1-L,pe=1-B,Oe=se*se*se,nt=L*se*se*3,et=L*L*se*3,Be=L*L*L,ot=se*se*pe,ct=L*se*pe+se*L*pe+se*se*B,Ve=L*L*pe+se*L*B+L*se*B,xe=L*L*B,le=se*pe*pe,X=L*pe*pe+se*B*pe+se*pe*B,ve=L*B*pe+se*B*B+L*pe*B,je=L*B*B,ke=pe*pe*pe,lt=B*pe*pe+pe*B*pe+pe*pe*B,At=B*B*pe+pe*B*B+B*pe*B,Ct=B*B*B;for(H=0;H<ne;H+=1)Ce[H*4]=l.round((Oe*M[H]+nt*G[H]+et*he[H]+Be*Q[H])*1e3)/1e3,Ce[H*4+1]=l.round((ot*M[H]+ct*G[H]+Ve*he[H]+xe*Q[H])*1e3)/1e3,Ce[H*4+2]=l.round((le*M[H]+X*G[H]+ve*he[H]+je*Q[H])*1e3)/1e3,Ce[H*4+3]=l.round((ke*M[H]+lt*G[H]+At*he[H]+Ct*Q[H])*1e3)/1e3;return Ce}return{getSegmentsLength:T,getNewSegment:Re,getPointInSegment:$e,buildBezierData:me,pointOnLine2D:p,pointOnLine3D:v}}var Hr=bc(),at=function(){var l=te,p=Math.abs;function v(de,W){var Y=this.offsetTime,L;this.propType==="multidimensional"&&(L=Ue("float32",this.pv.length));for(var B=W.lastIndex,H=B,ne=this.keyframes.length-1,se=!0,pe,Oe,nt;se;){if(pe=this.keyframes[H],Oe=this.keyframes[H+1],H===ne-1&&de>=Oe.t-Y){pe.h&&(pe=Oe),B=0;break}if(Oe.t-Y>de){B=H;break}H<ne-1?H+=1:(B=0,se=!1)}nt=this.keyframesMetadata[H]||{};var et,Be,ot,ct,Ve,xe,le=Oe.t-Y,X=pe.t-Y,ve;if(pe.to){nt.bezierData||(nt.bezierData=Hr.buildBezierData(pe.s,Oe.s||pe.e,pe.to,pe.ti));var je=nt.bezierData;if(de>=le||de<X){var ke=de>=le?je.points.length-1:0;for(Be=je.points[ke].point.length,et=0;et<Be;et+=1)L[et]=je.points[ke].point[et]}else{nt.__fnct?xe=nt.__fnct:(xe=as.getBezierEasing(pe.o.x,pe.o.y,pe.i.x,pe.i.y,pe.n).get,nt.__fnct=xe),ot=xe((de-X)/(le-X));var lt=je.segmentLength*ot,At,Ct=W.lastFrame<de&&W._lastKeyframeIndex===H?W._lastAddedLength:0;for(Ve=W.lastFrame<de&&W._lastKeyframeIndex===H?W._lastPoint:0,se=!0,ct=je.points.length;se;){if(Ct+=je.points[Ve].partialLength,lt===0||ot===0||Ve===je.points.length-1){for(Be=je.points[Ve].point.length,et=0;et<Be;et+=1)L[et]=je.points[Ve].point[et];break}else if(lt>=Ct&<<Ct+je.points[Ve+1].partialLength){for(At=(lt-Ct)/je.points[Ve+1].partialLength,Be=je.points[Ve].point.length,et=0;et<Be;et+=1)L[et]=je.points[Ve].point[et]+(je.points[Ve+1].point[et]-je.points[Ve].point[et])*At;break}Ve<ct-1?Ve+=1:se=!1}W._lastPoint=Ve,W._lastAddedLength=Ct-je.points[Ve].partialLength,W._lastKeyframeIndex=H}}else{var yn,zt,ur,Zn,Ln;if(ne=pe.s.length,ve=Oe.s||pe.e,this.sh&&pe.h!==1)if(de>=le)L[0]=ve[0],L[1]=ve[1],L[2]=ve[2];else if(de<=X)L[0]=pe.s[0],L[1]=pe.s[1],L[2]=pe.s[2];else{var Nn=P(pe.s),jn=P(ve),pr=(de-X)/(le-X);T(L,$(Nn,jn,pr))}else for(H=0;H<ne;H+=1)pe.h!==1&&(de>=le?ot=1:de<X?ot=0:(pe.o.x.constructor===Array?(nt.__fnct||(nt.__fnct=[]),nt.__fnct[H]?xe=nt.__fnct[H]:(yn=pe.o.x[H]===void 0?pe.o.x[0]:pe.o.x[H],zt=pe.o.y[H]===void 0?pe.o.y[0]:pe.o.y[H],ur=pe.i.x[H]===void 0?pe.i.x[0]:pe.i.x[H],Zn=pe.i.y[H]===void 0?pe.i.y[0]:pe.i.y[H],xe=as.getBezierEasing(yn,zt,ur,Zn).get,nt.__fnct[H]=xe)):nt.__fnct?xe=nt.__fnct:(yn=pe.o.x,zt=pe.o.y,ur=pe.i.x,Zn=pe.i.y,xe=as.getBezierEasing(yn,zt,ur,Zn).get,pe.keyframeMetadata=xe),ot=xe((de-X)/(le-X)))),ve=Oe.s||pe.e,Ln=pe.h===1?pe.s[H]:pe.s[H]+(ve[H]-pe.s[H])*ot,this.propType==="multidimensional"?L[H]=Ln:L=Ln}return W.lastIndex=B,L}function $(de,W,Y){var L=[],B=de[0],H=de[1],ne=de[2],se=de[3],pe=W[0],Oe=W[1],nt=W[2],et=W[3],Be,ot,ct,Ve,xe;return ot=B*pe+H*Oe+ne*nt+se*et,ot<0&&(ot=-ot,pe=-pe,Oe=-Oe,nt=-nt,et=-et),1-ot>1e-6?(Be=Math.acos(ot),ct=Math.sin(Be),Ve=Math.sin((1-Y)*Be)/ct,xe=Math.sin(Y*Be)/ct):(Ve=1-Y,xe=Y),L[0]=Ve*B+xe*pe,L[1]=Ve*H+xe*Oe,L[2]=Ve*ne+xe*nt,L[3]=Ve*se+xe*et,L}function T(de,W){var Y=W[0],L=W[1],B=W[2],H=W[3],ne=Math.atan2(2*L*H-2*Y*B,1-2*L*L-2*B*B),se=Math.asin(2*Y*L+2*B*H),pe=Math.atan2(2*Y*H-2*L*B,1-2*Y*Y-2*B*B);de[0]=ne/Qt,de[1]=se/Qt,de[2]=pe/Qt}function P(de){var W=de[0]*Qt,Y=de[1]*Qt,L=de[2]*Qt,B=Math.cos(W/2),H=Math.cos(Y/2),ne=Math.cos(L/2),se=Math.sin(W/2),pe=Math.sin(Y/2),Oe=Math.sin(L/2),nt=B*H*ne-se*pe*Oe,et=se*pe*ne+B*H*Oe,Be=se*H*ne+B*pe*Oe,ot=B*pe*ne-se*H*Oe;return[et,Be,ot,nt]}function q(){var de=this.comp.renderedFrame-this.offsetTime,W=this.keyframes[0].t-this.offsetTime,Y=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(de===this._caching.lastFrame||this._caching.lastFrame!==l&&(this._caching.lastFrame>=Y&&de>=Y||this._caching.lastFrame<W&&de<W))){this._caching.lastFrame>=de&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var L=this.interpolateValue(de,this._caching);this.pv=L}return this._caching.lastFrame=de,this.pv}function me(de){var W;if(this.propType==="unidimensional")W=de*this.mult,p(this.v-W)>1e-5&&(this.v=W,this._mdf=!0);else for(var Y=0,L=this.v.length;Y<L;)W=de[Y]*this.mult,p(this.v[Y]-W)>1e-5&&(this.v[Y]=W,this._mdf=!0),Y+=1}function J(){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 de,W=this.effectsSequence.length,Y=this.kf?this.pv:this.data.k;for(de=0;de<W;de+=1)Y=this.effectsSequence[de](Y);this.setVValue(Y),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function $e(de){this.effectsSequence.push(de),this.container.addDynamicProperty(this)}function Ce(de,W,Y,L){this.propType="unidimensional",this.mult=Y||1,this.data=W,this.v=Y?W.k*Y:W.k,this.pv=W.k,this._mdf=!1,this.elem=de,this.container=L,this.comp=de.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=J,this.setVValue=me,this.addEffect=$e}function Re(de,W,Y,L){this.propType="multidimensional",this.mult=Y||1,this.data=W,this._mdf=!1,this.elem=de,this.container=L,this.comp=de.comp,this.k=!1,this.kf=!1,this.frameId=-1;var B,H=W.k.length;for(this.v=Ue("float32",H),this.pv=Ue("float32",H),this.vel=Ue("float32",H),B=0;B<H;B+=1)this.v[B]=W.k[B]*this.mult,this.pv[B]=W.k[B];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=J,this.setVValue=me,this.addEffect=$e}function M(de,W,Y,L){this.propType="unidimensional",this.keyframes=W.k,this.keyframesMetadata=[],this.offsetTime=de.data.st,this.frameId=-1,this._caching={lastFrame:l,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=W,this.mult=Y||1,this.elem=de,this.container=L,this.comp=de.comp,this.v=l,this.pv=l,this._isFirstFrame=!0,this.getValue=J,this.setVValue=me,this.interpolateValue=v,this.effectsSequence=[q.bind(this)],this.addEffect=$e}function Q(de,W,Y,L){this.propType="multidimensional";var B,H=W.k.length,ne,se,pe,Oe;for(B=0;B<H-1;B+=1)W.k[B].to&&W.k[B].s&&W.k[B+1]&&W.k[B+1].s&&(ne=W.k[B].s,se=W.k[B+1].s,pe=W.k[B].to,Oe=W.k[B].ti,(ne.length===2&&!(ne[0]===se[0]&&ne[1]===se[1])&&Hr.pointOnLine2D(ne[0],ne[1],se[0],se[1],ne[0]+pe[0],ne[1]+pe[1])&&Hr.pointOnLine2D(ne[0],ne[1],se[0],se[1],se[0]+Oe[0],se[1]+Oe[1])||ne.length===3&&!(ne[0]===se[0]&&ne[1]===se[1]&&ne[2]===se[2])&&Hr.pointOnLine3D(ne[0],ne[1],ne[2],se[0],se[1],se[2],ne[0]+pe[0],ne[1]+pe[1],ne[2]+pe[2])&&Hr.pointOnLine3D(ne[0],ne[1],ne[2],se[0],se[1],se[2],se[0]+Oe[0],se[1]+Oe[1],se[2]+Oe[2]))&&(W.k[B].to=null,W.k[B].ti=null),ne[0]===se[0]&&ne[1]===se[1]&&pe[0]===0&&pe[1]===0&&Oe[0]===0&&Oe[1]===0&&(ne.length===2||ne[2]===se[2]&&pe[2]===0&&Oe[2]===0)&&(W.k[B].to=null,W.k[B].ti=null));this.effectsSequence=[q.bind(this)],this.data=W,this.keyframes=W.k,this.keyframesMetadata=[],this.offsetTime=de.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=Y||1,this.elem=de,this.container=L,this.comp=de.comp,this.getValue=J,this.setVValue=me,this.interpolateValue=v,this.frameId=-1;var nt=W.k[0].s.length;for(this.v=Ue("float32",nt),this.pv=Ue("float32",nt),B=0;B<nt;B+=1)this.v[B]=l,this.pv[B]=l;this._caching={lastFrame:l,lastIndex:0,value:Ue("float32",nt)},this.addEffect=$e}function G(de,W,Y,L,B){var H;if(!W.k.length)H=new Ce(de,W,L,B);else if(typeof W.k[0]=="number")H=new Re(de,W,L,B);else switch(Y){case 0:H=new M(de,W,L,B);break;case 1:H=new Q(de,W,L,B);break}return H.effectsSequence.length&&B.addDynamicProperty(H),H}var he={getProp:G};return he}();function cn(){}cn.prototype={addDynamicProperty:function(p){this.dynamicProperties.indexOf(p)===-1&&(this.dynamicProperties.push(p),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var p,v=this.dynamicProperties.length;for(p=0;p<v;p+=1)this.dynamicProperties[p].getValue(),this.dynamicProperties[p]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(p){this.container=p,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Qi=function(){function l(){return Ue("float32",2)}return $r(8,l)}();function ui(){this.c=!1,this._length=0,this._maxLength=8,this.v=Ge(this._maxLength),this.o=Ge(this._maxLength),this.i=Ge(this._maxLength)}ui.prototype.setPathData=function(l,p){this.c=l,this.setLength(p);for(var v=0;v<p;)this.v[v]=Qi.newElement(),this.o[v]=Qi.newElement(),this.i[v]=Qi.newElement(),v+=1},ui.prototype.setLength=function(l){for(;this._maxLength<l;)this.doubleArrayLength();this._length=l},ui.prototype.doubleArrayLength=function(){this.v=this.v.concat(Ge(this._maxLength)),this.i=this.i.concat(Ge(this._maxLength)),this.o=this.o.concat(Ge(this._maxLength)),this._maxLength*=2},ui.prototype.setXYAt=function(l,p,v,$,T){var P;switch(this._length=Math.max(this._length,$+1),this._length>=this._maxLength&&this.doubleArrayLength(),v){case"v":P=this.v;break;case"i":P=this.i;break;case"o":P=this.o;break;default:P=[];break}(!P[$]||P[$]&&!T)&&(P[$]=Qi.newElement()),P[$][0]=l,P[$][1]=p},ui.prototype.setTripleAt=function(l,p,v,$,T,P,q,me){this.setXYAt(l,p,"v",q,me),this.setXYAt(v,$,"o",q,me),this.setXYAt(T,P,"i",q,me)},ui.prototype.reverse=function(){var l=new ui;l.setPathData(this.c,this._length);var p=this.v,v=this.o,$=this.i,T=0;this.c&&(l.setTripleAt(p[0][0],p[0][1],$[0][0],$[0][1],v[0][0],v[0][1],0,!1),T=1);var P=this._length-1,q=this._length,me;for(me=T;me<q;me+=1)l.setTripleAt(p[P][0],p[P][1],$[P][0],$[P][1],v[P][0],v[P][1],me,!1),P-=1;return l},ui.prototype.length=function(){return this._length};var Yn=function(){function l(){return new ui}function p(T){var P=T._length,q;for(q=0;q<P;q+=1)Qi.release(T.v[q]),Qi.release(T.i[q]),Qi.release(T.o[q]),T.v[q]=null,T.i[q]=null,T.o[q]=null;T._length=0,T.c=!1}function v(T){var P=$.newElement(),q,me=T._length===void 0?T.v.length:T._length;for(P.setLength(me),P.c=T.c,q=0;q<me;q+=1)P.setTripleAt(T.v[q][0],T.v[q][1],T.o[q][0],T.o[q][1],T.i[q][0],T.i[q][1],q);return P}var $=$r(4,l,p);return $.clone=v,$}();function Po(){this._length=0,this._maxLength=4,this.shapes=Ge(this._maxLength)}Po.prototype.addShape=function(l){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Ge(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=l,this._length+=1},Po.prototype.releaseShapes=function(){var l;for(l=0;l<this._length;l+=1)Yn.release(this.shapes[l]);this._length=0};var Sa=function(){var l={newShapeCollection:T,release:P},p=0,v=4,$=Ge(v);function T(){var q;return p?(p-=1,q=$[p]):q=new Po,q}function P(q){var me,J=q._length;for(me=0;me<J;me+=1)Yn.release(q.shapes[me]);q._length=0,p===v&&($=Vu.double($),v*=2),$[p]=q,p+=1}return l}(),li=function(){var l=-999999;function p(W,Y,L){var B=L.lastIndex,H,ne,se,pe,Oe,nt,et,Be,ot,ct=this.keyframes;if(W<ct[0].t-this.offsetTime)H=ct[0].s[0],se=!0,B=0;else if(W>=ct[ct.length-1].t-this.offsetTime)H=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],se=!0;else{for(var Ve=B,xe=ct.length-1,le=!0,X,ve,je;le&&(X=ct[Ve],ve=ct[Ve+1],!(ve.t-this.offsetTime>W));)Ve<xe-1?Ve+=1:le=!1;if(je=this.keyframesMetadata[Ve]||{},se=X.h===1,B=Ve,!se){if(W>=ve.t-this.offsetTime)Be=1;else if(W<X.t-this.offsetTime)Be=0;else{var ke;je.__fnct?ke=je.__fnct:(ke=as.getBezierEasing(X.o.x,X.o.y,X.i.x,X.i.y).get,je.__fnct=ke),Be=ke((W-(X.t-this.offsetTime))/(ve.t-this.offsetTime-(X.t-this.offsetTime)))}ne=ve.s?ve.s[0]:X.e[0]}H=X.s[0]}for(nt=Y._length,et=H.i[0].length,L.lastIndex=B,pe=0;pe<nt;pe+=1)for(Oe=0;Oe<et;Oe+=1)ot=se?H.i[pe][Oe]:H.i[pe][Oe]+(ne.i[pe][Oe]-H.i[pe][Oe])*Be,Y.i[pe][Oe]=ot,ot=se?H.o[pe][Oe]:H.o[pe][Oe]+(ne.o[pe][Oe]-H.o[pe][Oe])*Be,Y.o[pe][Oe]=ot,ot=se?H.v[pe][Oe]:H.v[pe][Oe]+(ne.v[pe][Oe]-H.v[pe][Oe])*Be,Y.v[pe][Oe]=ot}function v(){var W=this.comp.renderedFrame-this.offsetTime,Y=this.keyframes[0].t-this.offsetTime,L=this.keyframes[this.keyframes.length-1].t-this.offsetTime,B=this._caching.lastFrame;return B!==l&&(B<Y&&W<Y||B>L&&W>L)||(this._caching.lastIndex=B<W?this._caching.lastIndex:0,this.interpolateShape(W,this.pv,this._caching)),this._caching.lastFrame=W,this.pv}function $(){this.paths=this.localShapeCollection}function T(W,Y){if(W._length!==Y._length||W.c!==Y.c)return!1;var L,B=W._length;for(L=0;L<B;L+=1)if(W.v[L][0]!==Y.v[L][0]||W.v[L][1]!==Y.v[L][1]||W.o[L][0]!==Y.o[L][0]||W.o[L][1]!==Y.o[L][1]||W.i[L][0]!==Y.i[L][0]||W.i[L][1]!==Y.i[L][1])return!1;return!0}function P(W){T(this.v,W)||(this.v=Yn.clone(W),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function q(){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 W;this.kf?W=this.pv:this.data.ks?W=this.data.ks.k:W=this.data.pt.k;var Y,L=this.effectsSequence.length;for(Y=0;Y<L;Y+=1)W=this.effectsSequence[Y](W);this.setVValue(W),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function me(W,Y,L){this.propType="shape",this.comp=W.comp,this.container=W,this.elem=W,this.data=Y,this.k=!1,this.kf=!1,this._mdf=!1;var B=L===3?Y.pt.k:Y.ks.k;this.v=Yn.clone(B),this.pv=Yn.clone(this.v),this.localShapeCollection=Sa.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=$,this.effectsSequence=[]}function J(W){this.effectsSequence.push(W),this.container.addDynamicProperty(this)}me.prototype.interpolateShape=p,me.prototype.getValue=q,me.prototype.setVValue=P,me.prototype.addEffect=J;function $e(W,Y,L){this.propType="shape",this.comp=W.comp,this.elem=W,this.container=W,this.offsetTime=W.data.st,this.keyframes=L===3?Y.pt.k:Y.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var B=this.keyframes[0].s[0].i.length;this.v=Yn.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,B),this.pv=Yn.clone(this.v),this.localShapeCollection=Sa.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=l,this.reset=$,this._caching={lastFrame:l,lastIndex:0},this.effectsSequence=[v.bind(this)]}$e.prototype.getValue=q,$e.prototype.interpolateShape=p,$e.prototype.setVValue=P,$e.prototype.addEffect=J;var Ce=function(){var W=be;function Y(L,B){this.v=Yn.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Sa.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=B.d,this.elem=L,this.comp=L.comp,this.frameId=-1,this.initDynamicPropertyContainer(L),this.p=at.getProp(L,B.p,1,0,this),this.s=at.getProp(L,B.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return Y.prototype={reset:$,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var B=this.p.v[0],H=this.p.v[1],ne=this.s.v[0]/2,se=this.s.v[1]/2,pe=this.d!==3,Oe=this.v;Oe.v[0][0]=B,Oe.v[0][1]=H-se,Oe.v[1][0]=pe?B+ne:B-ne,Oe.v[1][1]=H,Oe.v[2][0]=B,Oe.v[2][1]=H+se,Oe.v[3][0]=pe?B-ne:B+ne,Oe.v[3][1]=H,Oe.i[0][0]=pe?B-ne*W:B+ne*W,Oe.i[0][1]=H-se,Oe.i[1][0]=pe?B+ne:B-ne,Oe.i[1][1]=H-se*W,Oe.i[2][0]=pe?B+ne*W:B-ne*W,Oe.i[2][1]=H+se,Oe.i[3][0]=pe?B-ne:B+ne,Oe.i[3][1]=H+se*W,Oe.o[0][0]=pe?B+ne*W:B-ne*W,Oe.o[0][1]=H-se,Oe.o[1][0]=pe?B+ne:B-ne,Oe.o[1][1]=H+se*W,Oe.o[2][0]=pe?B-ne*W:B+ne*W,Oe.o[2][1]=H+se,Oe.o[3][0]=pe?B-ne:B+ne,Oe.o[3][1]=H-se*W}},Le([cn],Y),Y}(),Re=function(){function W(Y,L){this.v=Yn.newElement(),this.v.setPathData(!0,0),this.elem=Y,this.comp=Y.comp,this.data=L,this.frameId=-1,this.d=L.d,this.initDynamicPropertyContainer(Y),L.sy===1?(this.ir=at.getProp(Y,L.ir,0,0,this),this.is=at.getProp(Y,L.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=at.getProp(Y,L.pt,0,0,this),this.p=at.getProp(Y,L.p,1,0,this),this.r=at.getProp(Y,L.r,0,Qt,this),this.or=at.getProp(Y,L.or,0,0,this),this.os=at.getProp(Y,L.os,0,.01,this),this.localShapeCollection=Sa.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return W.prototype={reset:$,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var L=Math.floor(this.pt.v)*2,B=Math.PI*2/L,H=!0,ne=this.or.v,se=this.ir.v,pe=this.os.v,Oe=this.is.v,nt=2*Math.PI*ne/(L*2),et=2*Math.PI*se/(L*2),Be,ot,ct,Ve,xe=-Math.PI/2;xe+=this.r.v;var le=this.data.d===3?-1:1;for(this.v._length=0,Be=0;Be<L;Be+=1){ot=H?ne:se,ct=H?pe:Oe,Ve=H?nt:et;var X=ot*Math.cos(xe),ve=ot*Math.sin(xe),je=X===0&&ve===0?0:ve/Math.sqrt(X*X+ve*ve),ke=X===0&&ve===0?0:-X/Math.sqrt(X*X+ve*ve);X+=+this.p.v[0],ve+=+this.p.v[1],this.v.setTripleAt(X,ve,X-je*Ve*ct*le,ve-ke*Ve*ct*le,X+je*Ve*ct*le,ve+ke*Ve*ct*le,Be,!0),H=!H,xe+=B*le}},convertPolygonToPath:function(){var L=Math.floor(this.pt.v),B=Math.PI*2/L,H=this.or.v,ne=this.os.v,se=2*Math.PI*H/(L*4),pe,Oe=-Math.PI*.5,nt=this.data.d===3?-1:1;for(Oe+=this.r.v,this.v._length=0,pe=0;pe<L;pe+=1){var et=H*Math.cos(Oe),Be=H*Math.sin(Oe),ot=et===0&&Be===0?0:Be/Math.sqrt(et*et+Be*Be),ct=et===0&&Be===0?0:-et/Math.sqrt(et*et+Be*Be);et+=+this.p.v[0],Be+=+this.p.v[1],this.v.setTripleAt(et,Be,et-ot*se*ne*nt,Be-ct*se*ne*nt,et+ot*se*ne*nt,Be+ct*se*ne*nt,pe,!0),Oe+=B*nt}this.paths.length=0,this.paths[0]=this.v}},Le([cn],W),W}(),M=function(){function W(Y,L){this.v=Yn.newElement(),this.v.c=!0,this.localShapeCollection=Sa.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Y,this.comp=Y.comp,this.frameId=-1,this.d=L.d,this.initDynamicPropertyContainer(Y),this.p=at.getProp(Y,L.p,1,0,this),this.s=at.getProp(Y,L.s,1,0,this),this.r=at.getProp(Y,L.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return W.prototype={convertRectToPath:function(){var L=this.p.v[0],B=this.p.v[1],H=this.s.v[0]/2,ne=this.s.v[1]/2,se=_t(H,ne,this.r.v),pe=se*(1-be);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(L+H,B-ne+se,L+H,B-ne+se,L+H,B-ne+pe,0,!0),this.v.setTripleAt(L+H,B+ne-se,L+H,B+ne-pe,L+H,B+ne-se,1,!0),se!==0?(this.v.setTripleAt(L+H-se,B+ne,L+H-se,B+ne,L+H-pe,B+ne,2,!0),this.v.setTripleAt(L-H+se,B+ne,L-H+pe,B+ne,L-H+se,B+ne,3,!0),this.v.setTripleAt(L-H,B+ne-se,L-H,B+ne-se,L-H,B+ne-pe,4,!0),this.v.setTripleAt(L-H,B-ne+se,L-H,B-ne+pe,L-H,B-ne+se,5,!0),this.v.setTripleAt(L-H+se,B-ne,L-H+se,B-ne,L-H+pe,B-ne,6,!0),this.v.setTripleAt(L+H-se,B-ne,L+H-pe,B-ne,L+H-se,B-ne,7,!0)):(this.v.setTripleAt(L-H,B+ne,L-H+pe,B+ne,L-H,B+ne,2),this.v.setTripleAt(L-H,B-ne,L-H,B-ne+pe,L-H,B-ne,3))):(this.v.setTripleAt(L+H,B-ne+se,L+H,B-ne+pe,L+H,B-ne+se,0,!0),se!==0?(this.v.setTripleAt(L+H-se,B-ne,L+H-se,B-ne,L+H-pe,B-ne,1,!0),this.v.setTripleAt(L-H+se,B-ne,L-H+pe,B-ne,L-H+se,B-ne,2,!0),this.v.setTripleAt(L-H,B-ne+se,L-H,B-ne+se,L-H,B-ne+pe,3,!0),this.v.setTripleAt(L-H,B+ne-se,L-H,B+ne-pe,L-H,B+ne-se,4,!0),this.v.setTripleAt(L-H+se,B+ne,L-H+se,B+ne,L-H+pe,B+ne,5,!0),this.v.setTripleAt(L+H-se,B+ne,L+H-pe,B+ne,L+H-se,B+ne,6,!0),this.v.setTripleAt(L+H,B+ne-se,L+H,B+ne-se,L+H,B+ne-pe,7,!0)):(this.v.setTripleAt(L-H,B-ne,L-H+pe,B-ne,L-H,B-ne,1,!0),this.v.setTripleAt(L-H,B+ne,L-H,B+ne-pe,L-H,B+ne,2,!0),this.v.setTripleAt(L+H,B+ne,L+H-pe,B+ne,L+H,B+ne,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:$},Le([cn],W),W}();function Q(W,Y,L){var B;if(L===3||L===4){var H=L===3?Y.pt:Y.ks,ne=H.k;ne.length?B=new $e(W,Y,L):B=new me(W,Y,L)}else L===5?B=new M(W,Y):L===6?B=new Ce(W,Y):L===7&&(B=new Re(W,Y));return B.k&&W.addDynamicProperty(B),B}function G(){return me}function he(){return $e}var de={};return de.getShapeProp=Q,de.getConstructorFunction=G,de.getKeyframedConstructorFunction=he,de}();/*!
|
|
77
|
-
Transformation Matrix v2.0
|
|
78
|
-
(c) Epistemex 2014-2015
|
|
79
|
-
www.epistemex.com
|
|
80
|
-
By Ken Fyrstenberg
|
|
81
|
-
Contributions by leeoniya.
|
|
82
|
-
License: MIT, header required.
|
|
83
|
-
*/var kn=function(){var l=Math.cos,p=Math.sin,v=Math.tan,$=Math.round;function T(){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 P(le){if(le===0)return this;var X=l(le),ve=p(le);return this._t(X,-ve,0,0,ve,X,0,0,0,0,1,0,0,0,0,1)}function q(le){if(le===0)return this;var X=l(le),ve=p(le);return this._t(1,0,0,0,0,X,-ve,0,0,ve,X,0,0,0,0,1)}function me(le){if(le===0)return this;var X=l(le),ve=p(le);return this._t(X,0,ve,0,0,1,0,0,-ve,0,X,0,0,0,0,1)}function J(le){if(le===0)return this;var X=l(le),ve=p(le);return this._t(X,-ve,0,0,ve,X,0,0,0,0,1,0,0,0,0,1)}function $e(le,X){return this._t(1,X,le,1,0,0)}function Ce(le,X){return this.shear(v(le),v(X))}function Re(le,X){var ve=l(X),je=p(X);return this._t(ve,je,0,0,-je,ve,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,v(le),1,0,0,0,0,1,0,0,0,0,1)._t(ve,-je,0,0,je,ve,0,0,0,0,1,0,0,0,0,1)}function M(le,X,ve){return!ve&&ve!==0&&(ve=1),le===1&&X===1&&ve===1?this:this._t(le,0,0,0,0,X,0,0,0,0,ve,0,0,0,0,1)}function Q(le,X,ve,je,ke,lt,At,Ct,yn,zt,ur,Zn,Ln,Nn,jn,pr){return this.props[0]=le,this.props[1]=X,this.props[2]=ve,this.props[3]=je,this.props[4]=ke,this.props[5]=lt,this.props[6]=At,this.props[7]=Ct,this.props[8]=yn,this.props[9]=zt,this.props[10]=ur,this.props[11]=Zn,this.props[12]=Ln,this.props[13]=Nn,this.props[14]=jn,this.props[15]=pr,this}function G(le,X,ve){return ve=ve||0,le!==0||X!==0||ve!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,le,X,ve,1):this}function he(le,X,ve,je,ke,lt,At,Ct,yn,zt,ur,Zn,Ln,Nn,jn,pr){var ft=this.props;if(le===1&&X===0&&ve===0&&je===0&&ke===0&<===1&&At===0&&Ct===0&&yn===0&&zt===0&&ur===1&&Zn===0)return ft[12]=ft[12]*le+ft[15]*Ln,ft[13]=ft[13]*lt+ft[15]*Nn,ft[14]=ft[14]*ur+ft[15]*jn,ft[15]*=pr,this._identityCalculated=!1,this;var ln=ft[0],Yr=ft[1],Ti=ft[2],ra=ft[3],di=ft[4],ia=ft[5],aa=ft[6],Yt=ft[7],bn=ft[8],ka=ft[9],hi=ft[10],sa=ft[11],pi=ft[12],oa=ft[13],Oa=ft[14],Js=ft[15];return ft[0]=ln*le+Yr*ke+Ti*yn+ra*Ln,ft[1]=ln*X+Yr*lt+Ti*zt+ra*Nn,ft[2]=ln*ve+Yr*At+Ti*ur+ra*jn,ft[3]=ln*je+Yr*Ct+Ti*Zn+ra*pr,ft[4]=di*le+ia*ke+aa*yn+Yt*Ln,ft[5]=di*X+ia*lt+aa*zt+Yt*Nn,ft[6]=di*ve+ia*At+aa*ur+Yt*jn,ft[7]=di*je+ia*Ct+aa*Zn+Yt*pr,ft[8]=bn*le+ka*ke+hi*yn+sa*Ln,ft[9]=bn*X+ka*lt+hi*zt+sa*Nn,ft[10]=bn*ve+ka*At+hi*ur+sa*jn,ft[11]=bn*je+ka*Ct+hi*Zn+sa*pr,ft[12]=pi*le+oa*ke+Oa*yn+Js*Ln,ft[13]=pi*X+oa*lt+Oa*zt+Js*Nn,ft[14]=pi*ve+oa*At+Oa*ur+Js*jn,ft[15]=pi*je+oa*Ct+Oa*Zn+Js*pr,this._identityCalculated=!1,this}function de(){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 W(le){for(var X=0;X<16;){if(le.props[X]!==this.props[X])return!1;X+=1}return!0}function Y(le){var X;for(X=0;X<16;X+=1)le.props[X]=this.props[X];return le}function L(le){var X;for(X=0;X<16;X+=1)this.props[X]=le[X]}function B(le,X,ve){return{x:le*this.props[0]+X*this.props[4]+ve*this.props[8]+this.props[12],y:le*this.props[1]+X*this.props[5]+ve*this.props[9]+this.props[13],z:le*this.props[2]+X*this.props[6]+ve*this.props[10]+this.props[14]}}function H(le,X,ve){return le*this.props[0]+X*this.props[4]+ve*this.props[8]+this.props[12]}function ne(le,X,ve){return le*this.props[1]+X*this.props[5]+ve*this.props[9]+this.props[13]}function se(le,X,ve){return le*this.props[2]+X*this.props[6]+ve*this.props[10]+this.props[14]}function pe(){var le=this.props[0]*this.props[5]-this.props[1]*this.props[4],X=this.props[5]/le,ve=-this.props[1]/le,je=-this.props[4]/le,ke=this.props[0]/le,lt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/le,At=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/le,Ct=new kn;return Ct.props[0]=X,Ct.props[1]=ve,Ct.props[4]=je,Ct.props[5]=ke,Ct.props[12]=lt,Ct.props[13]=At,Ct}function Oe(le){var X=this.getInverseMatrix();return X.applyToPointArray(le[0],le[1],le[2]||0)}function nt(le){var X,ve=le.length,je=[];for(X=0;X<ve;X+=1)je[X]=Oe(le[X]);return je}function et(le,X,ve){var je=Ue("float32",6);if(this.isIdentity())je[0]=le[0],je[1]=le[1],je[2]=X[0],je[3]=X[1],je[4]=ve[0],je[5]=ve[1];else{var ke=this.props[0],lt=this.props[1],At=this.props[4],Ct=this.props[5],yn=this.props[12],zt=this.props[13];je[0]=le[0]*ke+le[1]*At+yn,je[1]=le[0]*lt+le[1]*Ct+zt,je[2]=X[0]*ke+X[1]*At+yn,je[3]=X[0]*lt+X[1]*Ct+zt,je[4]=ve[0]*ke+ve[1]*At+yn,je[5]=ve[0]*lt+ve[1]*Ct+zt}return je}function Be(le,X,ve){var je;return this.isIdentity()?je=[le,X,ve]:je=[le*this.props[0]+X*this.props[4]+ve*this.props[8]+this.props[12],le*this.props[1]+X*this.props[5]+ve*this.props[9]+this.props[13],le*this.props[2]+X*this.props[6]+ve*this.props[10]+this.props[14]],je}function ot(le,X){if(this.isIdentity())return le+","+X;var ve=this.props;return Math.round((le*ve[0]+X*ve[4]+ve[12])*100)/100+","+Math.round((le*ve[1]+X*ve[5]+ve[13])*100)/100}function ct(){for(var le=0,X=this.props,ve="matrix3d(",je=1e4;le<16;)ve+=$(X[le]*je)/je,ve+=le===15?")":",",le+=1;return ve}function Ve(le){var X=1e4;return le<1e-6&&le>0||le>-1e-6&&le<0?$(le*X)/X:le}function xe(){var le=this.props,X=Ve(le[0]),ve=Ve(le[1]),je=Ve(le[4]),ke=Ve(le[5]),lt=Ve(le[12]),At=Ve(le[13]);return"matrix("+X+","+ve+","+je+","+ke+","+lt+","+At+")"}return function(){this.reset=T,this.rotate=P,this.rotateX=q,this.rotateY=me,this.rotateZ=J,this.skew=Ce,this.skewFromAxis=Re,this.shear=$e,this.scale=M,this.setTransform=Q,this.translate=G,this.transform=he,this.applyToPoint=B,this.applyToX=H,this.applyToY=ne,this.applyToZ=se,this.applyToPointArray=Be,this.applyToTriplePoints=et,this.applyToPointStringified=ot,this.toCSS=ct,this.to2dCSS=xe,this.clone=Y,this.cloneFromProps=L,this.equals=W,this.inversePoints=nt,this.inversePoint=Oe,this.getInverseMatrix=pe,this._t=this.transform,this.isIdentity=de,this._identity=!0,this._identityCalculated=!1,this.props=Ue("float32",16),this.reset()}}();function Ws(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ws=function(v){return typeof v}:Ws=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},Ws(l)}var jt={};function $c(l){ue(l)}function ju(){Cn.searchAnimations()}function xc(l){qt(l)}function _o(l){Ao(l)}function ss(l){return Cn.loadAnimation(l)}function Ku(l){if(typeof l=="string")switch(l){case"high":Pr(200);break;default:case"medium":Pr(50);break;case"low":Pr(10);break}else!isNaN(l)&&l>1&&Pr(l)}function Mo(){return typeof navigator<"u"}function wc(l,p){l==="expressions"&&Wr(p)}function Cc(l){switch(l){case"propertyFactory":return at;case"shapePropertyFactory":return li;case"matrix":return kn;default:return null}}jt.play=Cn.play,jt.pause=Cn.pause,jt.setLocationHref=$c,jt.togglePause=Cn.togglePause,jt.setSpeed=Cn.setSpeed,jt.setDirection=Cn.setDirection,jt.stop=Cn.stop,jt.searchAnimations=ju,jt.registerAnimation=Cn.registerAnimation,jt.loadAnimation=ss,jt.setSubframeRendering=xc,jt.resize=Cn.resize,jt.goToAndStop=Cn.goToAndStop,jt.destroy=Cn.destroy,jt.setQuality=Ku,jt.inBrowser=Mo,jt.installPlugin=wc,jt.freeze=Cn.freeze,jt.unfreeze=Cn.unfreeze,jt.setVolume=Cn.setVolume,jt.mute=Cn.mute,jt.unmute=Cn.unmute,jt.getRegisteredAnimations=Cn.getRegisteredAnimations,jt.useWebWorker=j,jt.setIDPrefix=_o,jt.__getFactory=Cc,jt.version="5.10.2";function Ec(){document.readyState==="complete"&&(clearInterval(zu),ju())}function Uu(l){for(var p=Fo.split("&"),v=0;v<p.length;v+=1){var $=p[v].split("=");if(decodeURIComponent($[0])==l)return decodeURIComponent($[1])}return null}var Fo="";{var Ro=document.getElementsByTagName("script"),os=Ro.length-1,qu=Ro[os]||{src:""};Fo=qu.src?qu.src.replace(/^[^\?]+\??/,""):"",Uu("renderer")}var zu=setInterval(Ec,100);try{Ws(ee)!=="object"&&(window.bodymovin=jt)}catch{}var _r=function(){var l={},p={};l.registerModifier=v,l.getModifier=$;function v(T,P){p[T]||(p[T]=P)}function $(T,P,q){return new p[T](P,q)}return l}();function dr(){}dr.prototype.initModifierProperties=function(){},dr.prototype.addShapeToModifier=function(){},dr.prototype.addShape=function(l){if(!this.closed){l.sh.container.addDynamicProperty(l.sh);var p={shape:l.sh,data:l,localShapeCollection:Sa.newShapeCollection()};this.shapes.push(p),this.addShapeToModifier(p),this._isAnimated&&l.setAsAnimated()}},dr.prototype.init=function(l,p){this.shapes=[],this.elem=l,this.initDynamicPropertyContainer(l),this.initModifierProperties(l,p),this.frameId=te,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())},Le([cn],dr);function Mr(){}Le([dr],Mr),Mr.prototype.initModifierProperties=function(l,p){this.s=at.getProp(l,p.s,0,.01,this),this.e=at.getProp(l,p.e,0,.01,this),this.o=at.getProp(l,p.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=p.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Mr.prototype.addShapeToModifier=function(l){l.pathsData=[]},Mr.prototype.calculateShapeEdges=function(l,p,v,$,T){var P=[];p<=1?P.push({s:l,e:p}):l>=1?P.push({s:l-1,e:p-1}):(P.push({s:l,e:1}),P.push({s:0,e:p-1}));var q=[],me,J=P.length,$e;for(me=0;me<J;me+=1)if($e=P[me],!($e.e*T<$||$e.s*T>$+v)){var Ce,Re;$e.s*T<=$?Ce=0:Ce=($e.s*T-$)/v,$e.e*T>=$+v?Re=1:Re=($e.e*T-$)/v,q.push([Ce,Re])}return q.length||q.push([0,0]),q},Mr.prototype.releasePathsData=function(l){var p,v=l.length;for(p=0;p<v;p+=1)Nu.release(l[p]);return l.length=0,l},Mr.prototype.processShapes=function(l){var p,v;if(this._mdf||l){var $=this.o.v%360/360;if($<0&&($+=1),this.s.v>1?p=1+$:this.s.v<0?p=0+$:p=this.s.v+$,this.e.v>1?v=1+$:this.e.v<0?v=0+$:v=this.e.v+$,p>v){var T=p;p=v,v=T}p=Math.round(p*1e4)*1e-4,v=Math.round(v*1e4)*1e-4,this.sValue=p,this.eValue=v}else p=this.sValue,v=this.eValue;var P,q,me=this.shapes.length,J,$e,Ce,Re,M,Q=0;if(v===p)for(q=0;q<me;q+=1)this.shapes[q].localShapeCollection.releaseShapes(),this.shapes[q].shape._mdf=!0,this.shapes[q].shape.paths=this.shapes[q].localShapeCollection,this._mdf&&(this.shapes[q].pathsData.length=0);else if(v===1&&p===0||v===0&&p===1){if(this._mdf)for(q=0;q<me;q+=1)this.shapes[q].pathsData.length=0,this.shapes[q].shape._mdf=!0}else{var G=[],he,de;for(q=0;q<me;q+=1)if(he=this.shapes[q],!he.shape._mdf&&!this._mdf&&!l&&this.m!==2)he.shape.paths=he.localShapeCollection;else{if(P=he.shape.paths,$e=P._length,M=0,!he.shape._mdf&&he.pathsData.length)M=he.totalShapeLength;else{for(Ce=this.releasePathsData(he.pathsData),J=0;J<$e;J+=1)Re=Hr.getSegmentsLength(P.shapes[J]),Ce.push(Re),M+=Re.totalLength;he.totalShapeLength=M,he.pathsData=Ce}Q+=M,he.shape._mdf=!0}var W=p,Y=v,L=0,B;for(q=me-1;q>=0;q-=1)if(he=this.shapes[q],he.shape._mdf){for(de=he.localShapeCollection,de.releaseShapes(),this.m===2&&me>1?(B=this.calculateShapeEdges(p,v,he.totalShapeLength,L,Q),L+=he.totalShapeLength):B=[[W,Y]],$e=B.length,J=0;J<$e;J+=1){W=B[J][0],Y=B[J][1],G.length=0,Y<=1?G.push({s:he.totalShapeLength*W,e:he.totalShapeLength*Y}):W>=1?G.push({s:he.totalShapeLength*(W-1),e:he.totalShapeLength*(Y-1)}):(G.push({s:he.totalShapeLength*W,e:he.totalShapeLength}),G.push({s:0,e:he.totalShapeLength*(Y-1)}));var H=this.addShapes(he,G[0]);if(G[0].s!==G[0].e){if(G.length>1){var ne=he.shape.paths.shapes[he.shape.paths._length-1];if(ne.c){var se=H.pop();this.addPaths(H,de),H=this.addShapes(he,G[1],se)}else this.addPaths(H,de),H=this.addShapes(he,G[1])}this.addPaths(H,de)}}he.shape.paths=de}}},Mr.prototype.addPaths=function(l,p){var v,$=l.length;for(v=0;v<$;v+=1)p.addShape(l[v])},Mr.prototype.addSegment=function(l,p,v,$,T,P,q){T.setXYAt(p[0],p[1],"o",P),T.setXYAt(v[0],v[1],"i",P+1),q&&T.setXYAt(l[0],l[1],"v",P),T.setXYAt($[0],$[1],"v",P+1)},Mr.prototype.addSegmentFromArray=function(l,p,v,$){p.setXYAt(l[1],l[5],"o",v),p.setXYAt(l[2],l[6],"i",v+1),$&&p.setXYAt(l[0],l[4],"v",v),p.setXYAt(l[3],l[7],"v",v+1)},Mr.prototype.addShapes=function(l,p,v){var $=l.pathsData,T=l.shape.paths.shapes,P,q=l.shape.paths._length,me,J,$e=0,Ce,Re,M,Q,G=[],he,de=!0;for(v?(Re=v._length,he=v._length):(v=Yn.newElement(),Re=0,he=0),G.push(v),P=0;P<q;P+=1){for(M=$[P].lengths,v.c=T[P].c,J=T[P].c?M.length:M.length+1,me=1;me<J;me+=1)if(Ce=M[me-1],$e+Ce.addedLength<p.s)$e+=Ce.addedLength,v.c=!1;else if($e>p.e){v.c=!1;break}else p.s<=$e&&p.e>=$e+Ce.addedLength?(this.addSegment(T[P].v[me-1],T[P].o[me-1],T[P].i[me],T[P].v[me],v,Re,de),de=!1):(Q=Hr.getNewSegment(T[P].v[me-1],T[P].v[me],T[P].o[me-1],T[P].i[me],(p.s-$e)/Ce.addedLength,(p.e-$e)/Ce.addedLength,M[me-1]),this.addSegmentFromArray(Q,v,Re,de),de=!1,v.c=!1),$e+=Ce.addedLength,Re+=1;if(T[P].c&&M.length){if(Ce=M[me-1],$e<=p.e){var W=M[me-1].addedLength;p.s<=$e&&p.e>=$e+W?(this.addSegment(T[P].v[me-1],T[P].o[me-1],T[P].i[0],T[P].v[0],v,Re,de),de=!1):(Q=Hr.getNewSegment(T[P].v[me-1],T[P].v[0],T[P].o[me-1],T[P].i[0],(p.s-$e)/W,(p.e-$e)/W,M[me-1]),this.addSegmentFromArray(Q,v,Re,de),de=!1,v.c=!1)}else v.c=!1;$e+=Ce.addedLength,Re+=1}if(v._length&&(v.setXYAt(v.v[he][0],v.v[he][1],"i",he),v.setXYAt(v.v[v._length-1][0],v.v[v._length-1][1],"o",v._length-1)),$e>p.e)break;P<q-1&&(v=Yn.newElement(),de=!0,G.push(v),Re=0)}return G};function Da(){}Le([dr],Da),Da.prototype.initModifierProperties=function(l,p){this.getValue=this.processKeys,this.amount=at.getProp(l,p.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Da.prototype.processPath=function(l,p){var v=p/100,$=[0,0],T=l._length,P=0;for(P=0;P<T;P+=1)$[0]+=l.v[P][0],$[1]+=l.v[P][1];$[0]/=T,$[1]/=T;var q=Yn.newElement();q.c=l.c;var me,J,$e,Ce,Re,M;for(P=0;P<T;P+=1)me=l.v[P][0]+($[0]-l.v[P][0])*v,J=l.v[P][1]+($[1]-l.v[P][1])*v,$e=l.o[P][0]+($[0]-l.o[P][0])*-v,Ce=l.o[P][1]+($[1]-l.o[P][1])*-v,Re=l.i[P][0]+($[0]-l.i[P][0])*-v,M=l.i[P][1]+($[1]-l.i[P][1])*-v,q.setTripleAt(me,J,$e,Ce,Re,M,P);return q},Da.prototype.processShapes=function(l){var p,v,$=this.shapes.length,T,P,q=this.amount.v;if(q!==0){var me,J;for(v=0;v<$;v+=1){if(me=this.shapes[v],J=me.localShapeCollection,!(!me.shape._mdf&&!this._mdf&&!l))for(J.releaseShapes(),me.shape._mdf=!0,p=me.shape.paths.shapes,P=me.shape.paths._length,T=0;T<P;T+=1)J.addShape(this.processPath(p[T],q));me.shape.paths=me.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Hs=function(){var l=[0,0];function p(J){var $e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||$e,this.a&&J.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&J.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&J.skewFromAxis(-this.sk.v,this.sa.v),this.r?J.rotate(-this.r.v):J.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?J.translate(this.px.v,this.py.v,-this.pz.v):J.translate(this.px.v,this.py.v,0):J.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function v(J){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||J){var $e;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 Ce,Re;if($e=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(Ce=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/$e,0),Re=this.p.getValueAtTime(this.p.keyframes[0].t/$e,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(Ce=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/$e,0),Re=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/$e,0)):(Ce=this.p.pv,Re=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/$e,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){Ce=[],Re=[];var M=this.px,Q=this.py;M._caching.lastFrame+M.offsetTime<=M.keyframes[0].t?(Ce[0]=M.getValueAtTime((M.keyframes[0].t+.01)/$e,0),Ce[1]=Q.getValueAtTime((Q.keyframes[0].t+.01)/$e,0),Re[0]=M.getValueAtTime(M.keyframes[0].t/$e,0),Re[1]=Q.getValueAtTime(Q.keyframes[0].t/$e,0)):M._caching.lastFrame+M.offsetTime>=M.keyframes[M.keyframes.length-1].t?(Ce[0]=M.getValueAtTime(M.keyframes[M.keyframes.length-1].t/$e,0),Ce[1]=Q.getValueAtTime(Q.keyframes[Q.keyframes.length-1].t/$e,0),Re[0]=M.getValueAtTime((M.keyframes[M.keyframes.length-1].t-.01)/$e,0),Re[1]=Q.getValueAtTime((Q.keyframes[Q.keyframes.length-1].t-.01)/$e,0)):(Ce=[M.pv,Q.pv],Re[0]=M.getValueAtTime((M._caching.lastFrame+M.offsetTime-.01)/$e,M.offsetTime),Re[1]=Q.getValueAtTime((Q._caching.lastFrame+Q.offsetTime-.01)/$e,Q.offsetTime))}else Re=l,Ce=Re;this.v.rotate(-Math.atan2(Ce[1]-Re[1],Ce[0]-Re[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 $(){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 T(){}function P(J){this._addDynamicProperty(J),this.elem.addDynamicProperty(J),this._isDirty=!0}function q(J,$e,Ce){if(this.elem=J,this.frameId=-1,this.propType="transform",this.data=$e,this.v=new kn,this.pre=new kn,this.appliedTransformations=0,this.initDynamicPropertyContainer(Ce||J),$e.p&&$e.p.s?(this.px=at.getProp(J,$e.p.x,0,0,this),this.py=at.getProp(J,$e.p.y,0,0,this),$e.p.z&&(this.pz=at.getProp(J,$e.p.z,0,0,this))):this.p=at.getProp(J,$e.p||{k:[0,0,0]},1,0,this),$e.rx){if(this.rx=at.getProp(J,$e.rx,0,Qt,this),this.ry=at.getProp(J,$e.ry,0,Qt,this),this.rz=at.getProp(J,$e.rz,0,Qt,this),$e.or.k[0].ti){var Re,M=$e.or.k.length;for(Re=0;Re<M;Re+=1)$e.or.k[Re].to=null,$e.or.k[Re].ti=null}this.or=at.getProp(J,$e.or,1,Qt,this),this.or.sh=!0}else this.r=at.getProp(J,$e.r||{k:0},0,Qt,this);$e.sk&&(this.sk=at.getProp(J,$e.sk,0,Qt,this),this.sa=at.getProp(J,$e.sa,0,Qt,this)),this.a=at.getProp(J,$e.a||{k:[0,0,0]},1,0,this),this.s=at.getProp(J,$e.s||{k:[100,100,100]},1,.01,this),$e.o?this.o=at.getProp(J,$e.o,0,.01,J):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}q.prototype={applyToMatrix:p,getValue:v,precalculateMatrix:$,autoOrient:T},Le([cn],q),q.prototype.addDynamicProperty=P,q.prototype._addDynamicProperty=cn.prototype.addDynamicProperty;function me(J,$e,Ce){return new q(J,$e,Ce)}return{getTransformProperty:me}}();function hr(){}Le([dr],hr),hr.prototype.initModifierProperties=function(l,p){this.getValue=this.processKeys,this.c=at.getProp(l,p.c,0,null,this),this.o=at.getProp(l,p.o,0,null,this),this.tr=Hs.getTransformProperty(l,p.tr,this),this.so=at.getProp(l,p.tr.so,0,.01,this),this.eo=at.getProp(l,p.tr.eo,0,.01,this),this.data=p,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new kn,this.rMatrix=new kn,this.sMatrix=new kn,this.tMatrix=new kn,this.matrix=new kn},hr.prototype.applyTransforms=function(l,p,v,$,T,P){var q=P?-1:1,me=$.s.v[0]+(1-$.s.v[0])*(1-T),J=$.s.v[1]+(1-$.s.v[1])*(1-T);l.translate($.p.v[0]*q*T,$.p.v[1]*q*T,$.p.v[2]),p.translate(-$.a.v[0],-$.a.v[1],$.a.v[2]),p.rotate(-$.r.v*q*T),p.translate($.a.v[0],$.a.v[1],$.a.v[2]),v.translate(-$.a.v[0],-$.a.v[1],$.a.v[2]),v.scale(P?1/me:me,P?1/J:J),v.translate($.a.v[0],$.a.v[1],$.a.v[2])},hr.prototype.init=function(l,p,v,$){for(this.elem=l,this.arr=p,this.pos=v,this.elemsData=$,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(l),this.initModifierProperties(l,p[v]);v>0;)v-=1,this._elements.unshift(p[v]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},hr.prototype.resetElements=function(l){var p,v=l.length;for(p=0;p<v;p+=1)l[p]._processed=!1,l[p].ty==="gr"&&this.resetElements(l[p].it)},hr.prototype.cloneElements=function(l){var p=JSON.parse(JSON.stringify(l));return this.resetElements(p),p},hr.prototype.changeGroupRender=function(l,p){var v,$=l.length;for(v=0;v<$;v+=1)l[v]._render=p,l[v].ty==="gr"&&this.changeGroupRender(l[v].it,p)},hr.prototype.processShapes=function(l){var p,v,$,T,P,q=!1;if(this._mdf||l){var me=Math.ceil(this.c.v);if(this._groups.length<me){for(;this._groups.length<me;){var J={it:this.cloneElements(this._elements),ty:"gr"};J.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,J),this._groups.splice(0,0,J),this._currentCopies+=1}this.elem.reloadShapes(),q=!0}P=0;var $e;for($=0;$<=this._groups.length-1;$+=1){if($e=P<me,this._groups[$]._render=$e,this.changeGroupRender(this._groups[$].it,$e),!$e){var Ce=this.elemsData[$].it,Re=Ce[Ce.length-1];Re.transform.op.v!==0?(Re.transform.op._mdf=!0,Re.transform.op.v=0):Re.transform.op._mdf=!1}P+=1}this._currentCopies=me;var M=this.o.v,Q=M%1,G=M>0?Math.floor(M):Math.ceil(M),he=this.pMatrix.props,de=this.rMatrix.props,W=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Y=0;if(M>0){for(;Y<G;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),Y+=1;Q&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,Q,!1),Y+=Q)}else if(M<0){for(;Y>G;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),Y-=1;Q&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-Q,!0),Y-=Q)}$=this.data.m===1?0:this._currentCopies-1,T=this.data.m===1?1:-1,P=this._currentCopies;for(var L,B;P;){if(p=this.elemsData[$].it,v=p[p.length-1].transform.mProps.v.props,B=v.length,p[p.length-1].transform.mProps._mdf=!0,p[p.length-1].transform.op._mdf=!0,p[p.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*($/(this._currentCopies-1)),Y!==0){for(($!==0&&T===1||$!==this._currentCopies-1&&T===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(de[0],de[1],de[2],de[3],de[4],de[5],de[6],de[7],de[8],de[9],de[10],de[11],de[12],de[13],de[14],de[15]),this.matrix.transform(W[0],W[1],W[2],W[3],W[4],W[5],W[6],W[7],W[8],W[9],W[10],W[11],W[12],W[13],W[14],W[15]),this.matrix.transform(he[0],he[1],he[2],he[3],he[4],he[5],he[6],he[7],he[8],he[9],he[10],he[11],he[12],he[13],he[14],he[15]),L=0;L<B;L+=1)v[L]=this.matrix.props[L];this.matrix.reset()}else for(this.matrix.reset(),L=0;L<B;L+=1)v[L]=this.matrix.props[L];Y+=1,P-=1,$+=T}}else for(P=this._currentCopies,$=0,T=1;P;)p=this.elemsData[$].it,v=p[p.length-1].transform.mProps.v.props,p[p.length-1].transform.mProps._mdf=!1,p[p.length-1].transform.op._mdf=!1,P-=1,$+=T;return q},hr.prototype.addShape=function(){};function us(){}Le([dr],us),us.prototype.initModifierProperties=function(l,p){this.getValue=this.processKeys,this.rd=at.getProp(l,p.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},us.prototype.processPath=function(l,p){var v=Yn.newElement();v.c=l.c;var $,T=l._length,P,q,me,J,$e,Ce,Re=0,M,Q,G,he,de,W;for($=0;$<T;$+=1)P=l.v[$],me=l.o[$],q=l.i[$],P[0]===me[0]&&P[1]===me[1]&&P[0]===q[0]&&P[1]===q[1]?($===0||$===T-1)&&!l.c?(v.setTripleAt(P[0],P[1],me[0],me[1],q[0],q[1],Re),Re+=1):($===0?J=l.v[T-1]:J=l.v[$-1],$e=Math.sqrt(Math.pow(P[0]-J[0],2)+Math.pow(P[1]-J[1],2)),Ce=$e?Math.min($e/2,p)/$e:0,de=P[0]+(J[0]-P[0])*Ce,M=de,W=P[1]-(P[1]-J[1])*Ce,Q=W,G=M-(M-P[0])*be,he=Q-(Q-P[1])*be,v.setTripleAt(M,Q,G,he,de,W,Re),Re+=1,$===T-1?J=l.v[0]:J=l.v[$+1],$e=Math.sqrt(Math.pow(P[0]-J[0],2)+Math.pow(P[1]-J[1],2)),Ce=$e?Math.min($e/2,p)/$e:0,G=P[0]+(J[0]-P[0])*Ce,M=G,he=P[1]+(J[1]-P[1])*Ce,Q=he,de=M-(M-P[0])*be,W=Q-(Q-P[1])*be,v.setTripleAt(M,Q,G,he,de,W,Re),Re+=1):(v.setTripleAt(l.v[$][0],l.v[$][1],l.o[$][0],l.o[$][1],l.i[$][0],l.i[$][1],Re),Re+=1);return v},us.prototype.processShapes=function(l){var p,v,$=this.shapes.length,T,P,q=this.rd.v;if(q!==0){var me,J;for(v=0;v<$;v+=1){if(me=this.shapes[v],J=me.localShapeCollection,!(!me.shape._mdf&&!this._mdf&&!l))for(J.releaseShapes(),me.shape._mdf=!0,p=me.shape.paths.shapes,P=me.shape.paths._length,T=0;T<P;T+=1)J.addShape(this.processPath(p[T],q));me.shape.paths=me.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ls(l,p){return Math.abs(l-p)*1e5<=Math.min(Math.abs(l),Math.abs(p))}function Ci(l){return Math.abs(l)<=1e-5}function ci(l,p,v){return l*(1-v)+p*v}function rr(l,p,v){return[ci(l[0],p[0],v),ci(l[1],p[1],v)]}function Ei(l,p,v){if(l===0)return[];var $=p*p-4*l*v;if($<0)return[];var T=-p/(2*l);if($===0)return[T];var P=Math.sqrt($)/(2*l);return[T-P,T+P]}function ko(l,p,v,$){return[-l+3*p-3*v+$,3*l-6*p+3*v,-3*l+3*p,l]}function Wu(l){return new dn(l,l,l,l,!1)}function dn(l,p,v,$,T){T&&ea(l,p)&&(p=rr(l,$,1/3)),T&&ea(v,$)&&(v=rr(l,$,2/3));var P=ko(l[0],p[0],v[0],$[0]),q=ko(l[1],p[1],v[1],$[1]);this.a=[P[0],q[0]],this.b=[P[1],q[1]],this.c=[P[2],q[2]],this.d=[P[3],q[3]],this.points=[l,p,v,$]}dn.prototype.point=function(l){return[((this.a[0]*l+this.b[0])*l+this.c[0])*l+this.d[0],((this.a[1]*l+this.b[1])*l+this.c[1])*l+this.d[1]]},dn.prototype.derivative=function(l){return[(3*l*this.a[0]+2*this.b[0])*l+this.c[0],(3*l*this.a[1]+2*this.b[1])*l+this.c[1]]},dn.prototype.tangentAngle=function(l){var p=this.derivative(l);return Math.atan2(p[1],p[0])},dn.prototype.normalAngle=function(l){var p=this.derivative(l);return Math.atan2(p[0],p[1])},dn.prototype.inflectionPoints=function(){var l=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Ci(l))return[];var p=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/l,v=p*p-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/l;if(v<0)return[];var $=Math.sqrt(v);return Ci($)?$>0&&$<1?[p]:[]:[p-$,p+$].filter(function(T){return T>0&&T<1})},dn.prototype.split=function(l){if(l<=0)return[Wu(this.points[0]),this];if(l>=1)return[this,Wu(this.points[this.points.length-1])];var p=rr(this.points[0],this.points[1],l),v=rr(this.points[1],this.points[2],l),$=rr(this.points[2],this.points[3],l),T=rr(p,v,l),P=rr(v,$,l),q=rr(T,P,l);return[new dn(this.points[0],p,T,q,!0),new dn(q,P,$,this.points[3],!0)]};function Oo(l,p){var v=l.points[0][p],$=l.points[l.points.length-1][p];if(v>$){var T=$;$=v,v=T}for(var P=Ei(3*l.a[p],2*l.b[p],l.c[p]),q=0;q<P.length;q+=1)if(P[q]>0&&P[q]<1){var me=l.point(P[q])[p];me<v?v=me:me>$&&($=me)}return{min:v,max:$}}dn.prototype.bounds=function(){return{x:Oo(this,0),y:Oo(this,1)}},dn.prototype.boundingBox=function(){var l=this.bounds();return{left:l.x.min,right:l.x.max,top:l.y.min,bottom:l.y.max,width:l.x.max-l.x.min,height:l.y.max-l.y.min,cx:(l.x.max+l.x.min)/2,cy:(l.y.max+l.y.min)/2}};function cs(l,p,v){var $=l.boundingBox();return{cx:$.cx,cy:$.cy,width:$.width,height:$.height,bez:l,t:(p+v)/2,t1:p,t2:v}}function Io(l){var p=l.bez.split(.5);return[cs(p[0],l.t1,l.t),cs(p[1],l.t,l.t2)]}function Hu(l,p){return Math.abs(l.cx-p.cx)*2<l.width+p.width&&Math.abs(l.cy-p.cy)*2<l.height+p.height}function Fr(l,p,v,$,T,P){if(Hu(l,p)){if(v>=P||l.width<=$&&l.height<=$&&p.width<=$&&p.height<=$){T.push([l.t,p.t]);return}var q=Io(l),me=Io(p);Fr(q[0],me[0],v+1,$,T,P),Fr(q[0],me[1],v+1,$,T,P),Fr(q[1],me[0],v+1,$,T,P),Fr(q[1],me[1],v+1,$,T,P)}}dn.prototype.intersections=function(l,p,v){p===void 0&&(p=2),v===void 0&&(v=7);var $=[];return Fr(cs(this,0,1),cs(l,0,1),0,p,$,v),$},dn.shapeSegment=function(l,p){var v=(p+1)%l.length();return new dn(l.v[p],l.o[p],l.i[v],l.v[v],!0)},dn.shapeSegmentInverted=function(l,p){var v=(p+1)%l.length();return new dn(l.v[v],l.i[v],l.o[p],l.v[p],!0)};function Lo(l,p){return[l[1]*p[2]-l[2]*p[1],l[2]*p[0]-l[0]*p[2],l[0]*p[1]-l[1]*p[0]]}function Aa(l,p,v,$){var T=[l[0],l[1],1],P=[p[0],p[1],1],q=[v[0],v[1],1],me=[$[0],$[1],1],J=Lo(Lo(T,P),Lo(q,me));return Ci(J[2])?null:[J[0]/J[2],J[1]/J[2]]}function Ta(l,p,v){return[l[0]+Math.cos(p)*v,l[1]-Math.sin(p)*v]}function fs(l,p){return Math.hypot(l[0]-p[0],l[1]-p[1])}function ea(l,p){return ls(l[0],p[0])&&ls(l[1],p[1])}function ds(){}Le([dr],ds),ds.prototype.initModifierProperties=function(l,p){this.getValue=this.processKeys,this.amplitude=at.getProp(l,p.s,0,null,this),this.frequency=at.getProp(l,p.r,0,null,this),this.pointsType=at.getProp(l,p.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Gs(l,p,v,$,T,P,q){var me=v-Math.PI/2,J=v+Math.PI/2,$e=p[0]+Math.cos(v)*$*T,Ce=p[1]-Math.sin(v)*$*T;l.setTripleAt($e,Ce,$e+Math.cos(me)*P,Ce-Math.sin(me)*P,$e+Math.cos(J)*q,Ce-Math.sin(J)*q,l.length())}function Gu(l,p){var v=[p[0]-l[0],p[1]-l[1]],$=-Math.PI*.5,T=[Math.cos($)*v[0]-Math.sin($)*v[1],Math.sin($)*v[0]+Math.cos($)*v[1]];return T}function Sc(l,p){var v=p===0?l.length()-1:p-1,$=(p+1)%l.length(),T=l.v[v],P=l.v[$],q=Gu(T,P);return Math.atan2(0,1)-Math.atan2(q[1],q[0])}function hs(l,p,v,$,T,P,q){var me=Sc(p,v),J=p.v[v%p._length],$e=p.v[v===0?p._length-1:v-1],Ce=p.v[(v+1)%p._length],Re=P===2?Math.sqrt(Math.pow(J[0]-$e[0],2)+Math.pow(J[1]-$e[1],2)):0,M=P===2?Math.sqrt(Math.pow(J[0]-Ce[0],2)+Math.pow(J[1]-Ce[1],2)):0;Gs(l,p.v[v%p._length],me,q,$,M/((T+1)*2),Re/((T+1)*2))}function Dc(l,p,v,$,T,P){for(var q=0;q<$;q+=1){var me=(q+1)/($+1),J=T===2?Math.sqrt(Math.pow(p.points[3][0]-p.points[0][0],2)+Math.pow(p.points[3][1]-p.points[0][1],2)):0,$e=p.normalAngle(me),Ce=p.point(me);Gs(l,Ce,$e,P,v,J/(($+1)*2),J/(($+1)*2)),P=-P}return P}ds.prototype.processPath=function(l,p,v,$){var T=l._length,P=Yn.newElement();if(P.c=l.c,l.c||(T-=1),T===0)return P;var q=-1,me=dn.shapeSegment(l,0);hs(P,l,0,p,v,$,q);for(var J=0;J<T;J+=1)q=Dc(P,me,p,v,$,-q),J===T-1&&!l.c?me=null:me=dn.shapeSegment(l,(J+1)%T),hs(P,l,J+1,p,v,$,q);return P},ds.prototype.processShapes=function(l){var p,v,$=this.shapes.length,T,P,q=this.amplitude.v,me=Math.max(0,Math.round(this.frequency.v)),J=this.pointsType.v;if(q!==0){var $e,Ce;for(v=0;v<$;v+=1){if($e=this.shapes[v],Ce=$e.localShapeCollection,!(!$e.shape._mdf&&!this._mdf&&!l))for(Ce.releaseShapes(),$e.shape._mdf=!0,p=$e.shape.paths.shapes,P=$e.shape.paths._length,T=0;T<P;T+=1)Ce.addShape(this.processPath(p[T],q,me,J));$e.shape.paths=$e.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ps(l,p,v){var $=Math.atan2(p[0]-l[0],p[1]-l[1]);return[Ta(l,$,v),Ta(p,$,v)]}function Gt(l,p){var v,$,T,P,q,me,J;J=ps(l.points[0],l.points[1],p),v=J[0],$=J[1],J=ps(l.points[1],l.points[2],p),T=J[0],P=J[1],J=ps(l.points[2],l.points[3],p),q=J[0],me=J[1];var $e=Aa(v,$,T,P);$e===null&&($e=$);var Ce=Aa(q,me,T,P);return Ce===null&&(Ce=q),new dn(v,$e,Ce,me)}function en(l,p,v,$,T){var P=p.points[3],q=v.points[0];if($===3||ea(P,q))return P;if($===2){var me=-p.tangentAngle(1),J=-v.tangentAngle(0)+Math.PI,$e=Aa(P,Ta(P,me+Math.PI/2,100),q,Ta(q,me+Math.PI/2,100)),Ce=$e?fs($e,P):fs(P,q)/2,Re=Ta(P,me,2*Ce*be);return l.setXYAt(Re[0],Re[1],"o",l.length()-1),Re=Ta(q,J,2*Ce*be),l.setTripleAt(q[0],q[1],q[0],q[1],Re[0],Re[1],l.length()),q}var M=ea(P,p.points[2])?p.points[0]:p.points[2],Q=ea(q,v.points[1])?v.points[3]:v.points[1],G=Aa(M,P,q,Q);return G&&fs(G,P)<T?(l.setTripleAt(G[0],G[1],G[0],G[1],G[0],G[1],l.length()),G):P}function ae(l,p){var v=l.intersections(p);return v.length&&ls(v[0][0],1)&&v.shift(),v.length?v[0]:null}function Fe(l,p){var v=l.slice(),$=p.slice(),T=ae(l[l.length-1],p[0]);return T&&(v[l.length-1]=l[l.length-1].split(T[0])[0],$[0]=p[0].split(T[1])[1]),l.length>1&&p.length>1&&(T=ae(l[0],p[p.length-1]),T)?[[l[0].split(T[0])[0]],[p[p.length-1].split(T[1])[1]]]:[v,$]}function ze(l){for(var p,v=1;v<l.length;v+=1)p=Fe(l[v-1],l[v]),l[v-1]=p[0],l[v]=p[1];return l.length>1&&(p=Fe(l[l.length-1],l[0]),l[l.length-1]=p[0],l[0]=p[1]),l}function pt(l,p){var v=l.inflectionPoints(),$,T,P,q;if(v.length===0)return[Gt(l,p)];if(v.length===1||ls(v[1],1))return P=l.split(v[0]),$=P[0],T=P[1],[Gt($,p),Gt(T,p)];P=l.split(v[0]),$=P[0];var me=(v[1]-v[0])/(1-v[0]);return P=P[1].split(me),q=P[0],T=P[1],[Gt($,p),Gt(q,p),Gt(T,p)]}function vn(){}Le([dr],vn),vn.prototype.initModifierProperties=function(l,p){this.getValue=this.processKeys,this.amount=at.getProp(l,p.a,0,null,this),this.miterLimit=at.getProp(l,p.ml,0,null,this),this.lineJoin=p.lj,this._isAnimated=this.amount.effectsSequence.length!==0},vn.prototype.processPath=function(l,p,v,$){var T=Yn.newElement();T.c=l.c;var P=l.length();l.c||(P-=1);var q,me,J,$e=[];for(q=0;q<P;q+=1)J=dn.shapeSegment(l,q),$e.push(pt(J,p));if(!l.c)for(q=P-1;q>=0;q-=1)J=dn.shapeSegmentInverted(l,q),$e.push(pt(J,p));$e=ze($e);var Ce=null,Re=null;for(q=0;q<$e.length;q+=1){var M=$e[q];for(Re&&(Ce=en(T,Re,M[0],v,$)),Re=M[M.length-1],me=0;me<M.length;me+=1)J=M[me],Ce&&ea(J.points[0],Ce)?T.setXYAt(J.points[1][0],J.points[1][1],"o",T.length()-1):T.setTripleAt(J.points[0][0],J.points[0][1],J.points[1][0],J.points[1][1],J.points[0][0],J.points[0][1],T.length()),T.setTripleAt(J.points[3][0],J.points[3][1],J.points[3][0],J.points[3][1],J.points[2][0],J.points[2][1],T.length()),Ce=J.points[3]}return $e.length&&en(T,Re,$e[0][0],v,$),T},vn.prototype.processShapes=function(l){var p,v,$=this.shapes.length,T,P,q=this.amount.v,me=this.miterLimit.v,J=this.lineJoin;if(q!==0){var $e,Ce;for(v=0;v<$;v+=1){if($e=this.shapes[v],Ce=$e.localShapeCollection,!(!$e.shape._mdf&&!this._mdf&&!l))for(Ce.releaseShapes(),$e.shape._mdf=!0,p=$e.shape.paths.shapes,P=$e.shape.paths._length,T=0;T<P;T+=1)Ce.addShape(this.processPath(p[T],q,J,me));$e.shape.paths=$e.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function tr(l){for(var p=l.fStyle?l.fStyle.split(" "):[],v="normal",$="normal",T=p.length,P,q=0;q<T;q+=1)switch(P=p[q].toLowerCase(),P){case"italic":$="italic";break;case"bold":v="700";break;case"black":v="900";break;case"medium":v="500";break;case"regular":case"normal":v="400";break;case"light":case"thin":v="200";break}return{style:$,weight:l.fWeight||v}}var ir=function(){var l=5e3,p={w:0,size:0,shapes:[],data:{shapes:[]}},v=[];v=v.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 $=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],T=[65039,8205];function P(B){var H=B.split(","),ne,se=H.length,pe=[];for(ne=0;ne<se;ne+=1)H[ne]!=="sans-serif"&&H[ne]!=="monospace"&&pe.push(H[ne]);return pe.join(",")}function q(B,H){var ne=_e("span");ne.setAttribute("aria-hidden",!0),ne.style.fontFamily=H;var se=_e("span");se.innerText="giItT1WQy@!-/#",ne.style.position="absolute",ne.style.left="-10000px",ne.style.top="-10000px",ne.style.fontSize="300px",ne.style.fontVariant="normal",ne.style.fontStyle="normal",ne.style.fontWeight="normal",ne.style.letterSpacing="0",ne.appendChild(se),document.body.appendChild(ne);var pe=se.offsetWidth;return se.style.fontFamily=P(B)+", "+H,{node:se,w:pe,parent:ne}}function me(){var B,H=this.fonts.length,ne,se,pe=H;for(B=0;B<H;B+=1)this.fonts[B].loaded?pe-=1:this.fonts[B].fOrigin==="n"||this.fonts[B].origin===0?this.fonts[B].loaded=!0:(ne=this.fonts[B].monoCase.node,se=this.fonts[B].monoCase.w,ne.offsetWidth!==se?(pe-=1,this.fonts[B].loaded=!0):(ne=this.fonts[B].sansCase.node,se=this.fonts[B].sansCase.w,ne.offsetWidth!==se&&(pe-=1,this.fonts[B].loaded=!0)),this.fonts[B].loaded&&(this.fonts[B].sansCase.parent.parentNode.removeChild(this.fonts[B].sansCase.parent),this.fonts[B].monoCase.parent.parentNode.removeChild(this.fonts[B].monoCase.parent)));pe!==0&&Date.now()-this.initTime<l?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function J(B,H){var ne=document.body&&H?"svg":"canvas",se,pe=tr(B);if(ne==="svg"){var Oe=bt("text");Oe.style.fontSize="100px",Oe.setAttribute("font-family",B.fFamily),Oe.setAttribute("font-style",pe.style),Oe.setAttribute("font-weight",pe.weight),Oe.textContent="1",B.fClass?(Oe.style.fontFamily="inherit",Oe.setAttribute("class",B.fClass)):Oe.style.fontFamily=B.fFamily,H.appendChild(Oe),se=Oe}else{var nt=new OffscreenCanvas(500,500).getContext("2d");nt.font=pe.style+" "+pe.weight+" 100px "+B.fFamily,se=nt}function et(Be){return ne==="svg"?(se.textContent=Be,se.getComputedTextLength()):se.measureText(Be).width}return{measureText:et}}function $e(B,H){if(!B){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=B.list;return}if(!document.body){this.isLoaded=!0,B.list.forEach(function(xe){xe.helper=J(xe),xe.cache={}}),this.fonts=B.list;return}var ne=B.list,se,pe=ne.length,Oe=pe;for(se=0;se<pe;se+=1){var nt=!0,et,Be;if(ne[se].loaded=!1,ne[se].monoCase=q(ne[se].fFamily,"monospace"),ne[se].sansCase=q(ne[se].fFamily,"sans-serif"),!ne[se].fPath)ne[se].loaded=!0,Oe-=1;else if(ne[se].fOrigin==="p"||ne[se].origin===3){if(et=document.querySelectorAll('style[f-forigin="p"][f-family="'+ne[se].fFamily+'"], style[f-origin="3"][f-family="'+ne[se].fFamily+'"]'),et.length>0&&(nt=!1),nt){var ot=_e("style");ot.setAttribute("f-forigin",ne[se].fOrigin),ot.setAttribute("f-origin",ne[se].origin),ot.setAttribute("f-family",ne[se].fFamily),ot.type="text/css",ot.innerText="@font-face {font-family: "+ne[se].fFamily+"; font-style: normal; src: url('"+ne[se].fPath+"');}",H.appendChild(ot)}}else if(ne[se].fOrigin==="g"||ne[se].origin===1){for(et=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Be=0;Be<et.length;Be+=1)et[Be].href.indexOf(ne[se].fPath)!==-1&&(nt=!1);if(nt){var ct=_e("link");ct.setAttribute("f-forigin",ne[se].fOrigin),ct.setAttribute("f-origin",ne[se].origin),ct.type="text/css",ct.rel="stylesheet",ct.href=ne[se].fPath,document.body.appendChild(ct)}}else if(ne[se].fOrigin==="t"||ne[se].origin===2){for(et=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Be=0;Be<et.length;Be+=1)ne[se].fPath===et[Be].src&&(nt=!1);if(nt){var Ve=_e("link");Ve.setAttribute("f-forigin",ne[se].fOrigin),Ve.setAttribute("f-origin",ne[se].origin),Ve.setAttribute("rel","stylesheet"),Ve.setAttribute("href",ne[se].fPath),H.appendChild(Ve)}}ne[se].helper=J(ne[se],H),ne[se].cache={},this.fonts.push(ne[se])}Oe===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Ce(B){if(B){this.chars||(this.chars=[]);var H,ne=B.length,se,pe=this.chars.length,Oe;for(H=0;H<ne;H+=1){for(se=0,Oe=!1;se<pe;)this.chars[se].style===B[H].style&&this.chars[se].fFamily===B[H].fFamily&&this.chars[se].ch===B[H].ch&&(Oe=!0),se+=1;Oe||(this.chars.push(B[H]),pe+=1)}}}function Re(B,H,ne){for(var se=0,pe=this.chars.length;se<pe;){if(this.chars[se].ch===B&&this.chars[se].style===H&&this.chars[se].fFamily===ne)return this.chars[se];se+=1}return(typeof B=="string"&&B.charCodeAt(0)!==13||!B)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",B,H,ne)),p}function M(B,H,ne){var se=this.getFontByName(H),pe=B.charCodeAt(0);if(!se.cache[pe+1]){var Oe=se.helper;if(B===" "){var nt=Oe.measureText("|"+B+"|"),et=Oe.measureText("||");se.cache[pe+1]=(nt-et)/100}else se.cache[pe+1]=Oe.measureText(B)/100}return se.cache[pe+1]*ne}function Q(B){for(var H=0,ne=this.fonts.length;H<ne;){if(this.fonts[H].fName===B)return this.fonts[H];H+=1}return this.fonts[0]}function G(B,H){var ne=B.toString(16)+H.toString(16);return $.indexOf(ne)!==-1}function he(B,H){return H?B===T[0]&&H===T[1]:B===T[1]}function de(B){return v.indexOf(B)!==-1}function W(){this.isLoaded=!0}var Y=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)};Y.isModifier=G,Y.isZeroWidthJoiner=he,Y.isCombinedCharacter=de;var L={addChars:Ce,addFonts:$e,getCharData:Re,getFontByName:Q,measureText:M,checkLoadedFonts:me,setIsLoaded:W};return Y.prototype=L,Y}();function Bn(){}Bn.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(p){this.renderableComponents.indexOf(p)===-1&&this.renderableComponents.push(p)},removeRenderableComponent:function(p){this.renderableComponents.indexOf(p)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(p),1)},prepareRenderableFrame:function(p){this.checkLayerLimits(p)},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(p){this.data.ip-this.data.st<=p&&this.data.op-this.data.st>p?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 p,v=this.renderableComponents.length;for(p=0;p<v;p+=1)this.renderableComponents[p].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 En=function(){var l={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(p){return l[p]||""}}();function Si(l,p,v){this.p=at.getProp(p,l.v,0,0,v)}function Di(l,p,v){this.p=at.getProp(p,l.v,0,0,v)}function Vo(l,p,v){this.p=at.getProp(p,l.v,1,0,v)}function Ys(l,p,v){this.p=at.getProp(p,l.v,1,0,v)}function ar(l,p,v){this.p=at.getProp(p,l.v,0,0,v)}function ms(l,p,v){this.p=at.getProp(p,l.v,0,0,v)}function Td(l,p,v){this.p=at.getProp(p,l.v,0,0,v)}function Pd(){this.p={}}function Ac(l,p){var v=l.ef||[];this.effectElements=[];var $,T=v.length,P;for($=0;$<T;$+=1)P=new Zs(v[$],p),this.effectElements.push(P)}function Zs(l,p){this.init(l,p)}Le([cn],Zs),Zs.prototype.getValue=Zs.prototype.iterateDynamicProperties,Zs.prototype.init=function(l,p){this.data=l,this.effectElements=[],this.initDynamicPropertyContainer(p);var v,$=this.data.ef.length,T,P=this.data.ef;for(v=0;v<$;v+=1){switch(T=null,P[v].ty){case 0:T=new Si(P[v],p,this);break;case 1:T=new Di(P[v],p,this);break;case 2:T=new Vo(P[v],p,this);break;case 3:T=new Ys(P[v],p,this);break;case 4:case 7:T=new Td(P[v],p,this);break;case 10:T=new ar(P[v],p,this);break;case 11:T=new ms(P[v],p,this);break;case 5:T=new Ac(P[v],p);break;default:T=new Pd(P[v]);break}T&&this.effectElements.push(T)}};function ta(){}ta.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var p=0,v=this.data.masksProperties.length;p<v;){if(this.data.masksProperties[p].mode!=="n"&&this.data.masksProperties[p].cl!==!1)return!0;p+=1}return!1},initExpressions:function(){},setBlendMode:function(){var p=En(this.data.bm),v=this.baseElement||this.layerElement;v.style["mix-blend-mode"]=p},initBaseData:function(p,v,$){this.globalData=v,this.comp=$,this.data=p,this.layerId=xt(),this.data.sr||(this.data.sr=1),this.effectsManager=new Ac(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function On(){}On.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(p,v){var $,T=this.dynamicProperties.length;for($=0;$<T;$+=1)(v||this._isParent&&this.dynamicProperties[$].propType==="transform")&&(this.dynamicProperties[$].getValue(),this.dynamicProperties[$]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(p){this.dynamicProperties.indexOf(p)===-1&&this.dynamicProperties.push(p)}};function Pa(l,p,v){this.initFrame(),this.initRenderable(),this.assetData=p.getAssetData(l.refId),this.footageData=p.imageLoader.getAsset(this.assetData),this.initBaseData(l,p,v)}Pa.prototype.prepareFrame=function(){},Le([Bn,ta,On],Pa),Pa.prototype.getBaseElement=function(){return null},Pa.prototype.renderFrame=function(){},Pa.prototype.destroy=function(){},Pa.prototype.initExpressions=function(){},Pa.prototype.getFootageData=function(){return this.footageData};function fn(l,p,v){this.initFrame(),this.initRenderable(),this.assetData=p.getAssetData(l.refId),this.initBaseData(l,p,v),this._isPlaying=!1,this._canPlay=!1;var $=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio($),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=l.tm?at.getProp(this,l.tm,0,p.frameRate,this):{_placeholder:!0},this.lv=at.getProp(this,l.au&&l.au.lv?l.au.lv:{k:[100]},1,.01,this)}fn.prototype.prepareFrame=function(l){if(this.prepareRenderableFrame(l,!0),this.prepareProperties(l,!0),this.tm._placeholder)this._currentTime=l/this.data.sr;else{var p=this.tm.v;this._currentTime=p}this._volume=this.lv.v[0];var v=this._volume*this._volumeMultiplier;this._previousVolume!==v&&(this._previousVolume=v,this.audio.volume(v))},Le([Bn,ta,On],fn),fn.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))},fn.prototype.show=function(){},fn.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},fn.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},fn.prototype.resume=function(){this._canPlay=!0},fn.prototype.setRate=function(l){this.audio.rate(l)},fn.prototype.volume=function(l){this._volumeMultiplier=l,this._previousVolume=l*this._volume,this.audio.volume(this._previousVolume)},fn.prototype.getBaseElement=function(){return null},fn.prototype.destroy=function(){},fn.prototype.sourceRectAtTime=function(){},fn.prototype.initExpressions=function(){};function sr(){}sr.prototype.checkLayers=function(l){var p,v=this.layers.length,$;for(this.completeLayers=!0,p=v-1;p>=0;p-=1)this.elements[p]||($=this.layers[p],$.ip-$.st<=l-this.layers[p].st&&$.op-$.st>l-this.layers[p].st&&this.buildItem(p)),this.completeLayers=this.elements[p]?this.completeLayers:!1;this.checkPendingElements()},sr.prototype.createItem=function(l){switch(l.ty){case 2:return this.createImage(l);case 0:return this.createComp(l);case 1:return this.createSolid(l);case 3:return this.createNull(l);case 4:return this.createShape(l);case 5:return this.createText(l);case 6:return this.createAudio(l);case 13:return this.createCamera(l);case 15:return this.createFootage(l);default:return this.createNull(l)}},sr.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},sr.prototype.createAudio=function(l){return new fn(l,this.globalData,this)},sr.prototype.createFootage=function(l){return new Pa(l,this.globalData,this)},sr.prototype.buildAllItems=function(){var l,p=this.layers.length;for(l=0;l<p;l+=1)this.buildItem(l);this.checkPendingElements()},sr.prototype.includeLayers=function(l){this.completeLayers=!1;var p,v=l.length,$,T=this.layers.length;for(p=0;p<v;p+=1)for($=0;$<T;){if(this.layers[$].id===l[p].id){this.layers[$]=l[p];break}$+=1}},sr.prototype.setProjectInterface=function(l){this.globalData.projectInterface=l},sr.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},sr.prototype.buildElementParenting=function(l,p,v){for(var $=this.elements,T=this.layers,P=0,q=T.length;P<q;)T[P].ind==p&&(!$[P]||$[P]===!0?(this.buildItem(P),this.addPendingElement(l)):(v.push($[P]),$[P].setAsParent(),T[P].parent!==void 0?this.buildElementParenting(l,T[P].parent,v):l.setHierarchy(v))),P+=1},sr.prototype.addPendingElement=function(l){this.pendingElements.push(l)},sr.prototype.searchExtraCompositions=function(l){var p,v=l.length;for(p=0;p<v;p+=1)if(l[p].xt){var $=this.createComp(l[p]);$.initExpressions(),this.globalData.projectInterface.registerComposition($)}},sr.prototype.getElementById=function(l){var p,v=this.elements.length;for(p=0;p<v;p+=1)if(this.elements[p].data.ind===l)return this.elements[p];return null},sr.prototype.getElementByPath=function(l){var p=l.shift(),v;if(typeof p=="number")v=this.elements[p];else{var $,T=this.elements.length;for($=0;$<T;$+=1)if(this.elements[$].data.nm===p){v=this.elements[$];break}}return l.length===0?v:v.getElementByPath(l)},sr.prototype.setupGlobalData=function(l,p){this.globalData.fontManager=new ir,this.globalData.fontManager.addChars(l.chars),this.globalData.fontManager.addFonts(l.fonts,p),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=l.fr,this.globalData.nm=l.nm,this.globalData.compSize={w:l.w,h:l.h}};function gs(){}gs.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?Hs.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new kn},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 p,v=this.finalTransform.mat,$=0,T=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;$<T;){if(this.hierarchy[$].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}$+=1}if(this.finalTransform._matMdf)for(p=this.finalTransform.mProp.v.props,v.cloneFromProps(p),$=0;$<T;$+=1)p=this.hierarchy[$].finalTransform.mProp.v.props,v.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15])}},globalToLocal:function(p){var v=[];v.push(this.finalTransform);for(var $=!0,T=this.comp;$;)T.finalTransform?(T.data.hasMask&&v.splice(0,0,T.finalTransform),T=T.comp):$=!1;var P,q=v.length,me;for(P=0;P<q;P+=1)me=v[P].mat.applyToPointArray(0,0,0),p=[p[0]-me[0],p[1]-me[1],0];return p},mHelper:new kn};function xr(l,p,v){this.data=l,this.element=p,this.globalData=v,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var $=this.globalData.defs,T,P=this.masksProperties?this.masksProperties.length:0;this.viewData=Ge(P),this.solidPath="";var q,me=this.masksProperties,J=0,$e=[],Ce,Re,M=xt(),Q,G,he,de,W="clipPath",Y="clip-path";for(T=0;T<P;T+=1)if((me[T].mode!=="a"&&me[T].mode!=="n"||me[T].inv||me[T].o.k!==100||me[T].o.x)&&(W="mask",Y="mask"),(me[T].mode==="s"||me[T].mode==="i")&&J===0?(Q=bt("rect"),Q.setAttribute("fill","#ffffff"),Q.setAttribute("width",this.element.comp.data.w||0),Q.setAttribute("height",this.element.comp.data.h||0),$e.push(Q)):Q=null,q=bt("path"),me[T].mode==="n")this.viewData[T]={op:at.getProp(this.element,me[T].o,0,.01,this.element),prop:li.getShapeProp(this.element,me[T],3),elem:q,lastPath:""},$.appendChild(q);else{J+=1,q.setAttribute("fill",me[T].mode==="s"?"#000000":"#ffffff"),q.setAttribute("clip-rule","nonzero");var L;if(me[T].x.k!==0?(W="mask",Y="mask",de=at.getProp(this.element,me[T].x,0,null,this.element),L=xt(),G=bt("filter"),G.setAttribute("id",L),he=bt("feMorphology"),he.setAttribute("operator","erode"),he.setAttribute("in","SourceGraphic"),he.setAttribute("radius","0"),G.appendChild(he),$.appendChild(G),q.setAttribute("stroke",me[T].mode==="s"?"#000000":"#ffffff")):(he=null,de=null),this.storedData[T]={elem:q,x:de,expan:he,lastPath:"",lastOperator:"",filterId:L,lastRadius:0},me[T].mode==="i"){Re=$e.length;var B=bt("g");for(Ce=0;Ce<Re;Ce+=1)B.appendChild($e[Ce]);var H=bt("mask");H.setAttribute("mask-type","alpha"),H.setAttribute("id",M+"_"+J),H.appendChild(q),$.appendChild(H),B.setAttribute("mask","url("+Ae()+"#"+M+"_"+J+")"),$e.length=0,$e.push(B)}else $e.push(q);me[T].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[T]={elem:q,lastPath:"",op:at.getProp(this.element,me[T].o,0,.01,this.element),prop:li.getShapeProp(this.element,me[T],3),invRect:Q},this.viewData[T].prop.k||this.drawPath(me[T],this.viewData[T].prop.v,this.viewData[T])}for(this.maskElement=bt(W),P=$e.length,T=0;T<P;T+=1)this.maskElement.appendChild($e[T]);J>0&&(this.maskElement.setAttribute("id",M),this.element.maskedElement.setAttribute(Y,"url("+Ae()+"#"+M+")"),$.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}xr.prototype.getMaskProperty=function(l){return this.viewData[l].prop},xr.prototype.renderFrame=function(l){var p=this.element.finalTransform.mat,v,$=this.masksProperties.length;for(v=0;v<$;v+=1)if((this.viewData[v].prop._mdf||l)&&this.drawPath(this.masksProperties[v],this.viewData[v].prop.v,this.viewData[v]),(this.viewData[v].op._mdf||l)&&this.viewData[v].elem.setAttribute("fill-opacity",this.viewData[v].op.v),this.masksProperties[v].mode!=="n"&&(this.viewData[v].invRect&&(this.element.finalTransform.mProp._mdf||l)&&this.viewData[v].invRect.setAttribute("transform",p.getInverseMatrix().to2dCSS()),this.storedData[v].x&&(this.storedData[v].x._mdf||l))){var T=this.storedData[v].expan;this.storedData[v].x.v<0?(this.storedData[v].lastOperator!=="erode"&&(this.storedData[v].lastOperator="erode",this.storedData[v].elem.setAttribute("filter","url("+Ae()+"#"+this.storedData[v].filterId+")")),T.setAttribute("radius",-this.storedData[v].x.v)):(this.storedData[v].lastOperator!=="dilate"&&(this.storedData[v].lastOperator="dilate",this.storedData[v].elem.setAttribute("filter",null)),this.storedData[v].elem.setAttribute("stroke-width",this.storedData[v].x.v*2))}},xr.prototype.getMaskelement=function(){return this.maskElement},xr.prototype.createLayerSolidPath=function(){var l="M0,0 ";return l+=" h"+this.globalData.compSize.w,l+=" v"+this.globalData.compSize.h,l+=" h-"+this.globalData.compSize.w,l+=" v-"+this.globalData.compSize.h+" ",l},xr.prototype.drawPath=function(l,p,v){var $=" M"+p.v[0][0]+","+p.v[0][1],T,P;for(P=p._length,T=1;T<P;T+=1)$+=" C"+p.o[T-1][0]+","+p.o[T-1][1]+" "+p.i[T][0]+","+p.i[T][1]+" "+p.v[T][0]+","+p.v[T][1];if(p.c&&P>1&&($+=" C"+p.o[T-1][0]+","+p.o[T-1][1]+" "+p.i[0][0]+","+p.i[0][1]+" "+p.v[0][0]+","+p.v[0][1]),v.lastPath!==$){var q="";v.elem&&(p.c&&(q=l.inv?this.solidPath+$:$),v.elem.setAttribute("d",q)),v.lastPath=$}},xr.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var _a=function(){var l={};l.createFilter=p,l.createAlphaToLuminanceFilter=v;function p($,T){var P=bt("filter");return P.setAttribute("id",$),T!==!0&&(P.setAttribute("filterUnits","objectBoundingBox"),P.setAttribute("x","0%"),P.setAttribute("y","0%"),P.setAttribute("width","100%"),P.setAttribute("height","100%")),P}function v(){var $=bt("feColorMatrix");return $.setAttribute("type","matrix"),$.setAttribute("color-interpolation-filters","sRGB"),$.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),$}return l}(),Yu=function(){var l={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))&&(l.maskType=!1),/firefox/i.test(navigator.userAgent)&&(l.svgLumaHidden=!1),l}(),un={},na="filter_result_";function Zu(l){var p,v="SourceGraphic",$=l.data.ef?l.data.ef.length:0,T=xt(),P=_a.createFilter(T,!0),q=0;this.filters=[];var me;for(p=0;p<$;p+=1){me=null;var J=l.data.ef[p].ty;if(un[J]){var $e=un[J].effect;me=new $e(P,l.effectsManager.effectElements[p],l,na+q,v),v=na+q,un[J].countsAsEffect&&(q+=1)}me&&this.filters.push(me)}q&&(l.globalData.defs.appendChild(P),l.layerElement.setAttribute("filter","url("+Ae()+"#"+T+")")),this.filters.length&&l.addRenderableComponent(this)}Zu.prototype.renderFrame=function(l){var p,v=this.filters.length;for(p=0;p<v;p+=1)this.filters[p].renderFrame(l)};function Bo(){}Bo.prototype={initRendererElement:function(){this.layerElement=bt("g")},createContainerElements:function(){this.matteElement=bt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var p=null;if(this.data.td){this.matteMasks={};var v=bt("g");v.setAttribute("id",this.layerId),v.appendChild(this.layerElement),p=v,this.globalData.defs.appendChild(v)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),p=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 $=bt("clipPath"),T=bt("path");T.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var P=xt();if($.setAttribute("id",P),$.appendChild(T),this.globalData.defs.appendChild($),this.checkMasks()){var q=bt("g");q.setAttribute("clip-path","url("+Ae()+"#"+P+")"),q.appendChild(this.layerElement),this.transformedElement=q,p?p.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+Ae()+"#"+P+")")}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 xr(this.data,this,this.globalData),this.renderableEffectsManager=new Zu(this)},getMatte:function(p){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[p]){var v=this.layerId+"_"+p,$,T,P,q;if(p===1||p===3){var me=bt("mask");me.setAttribute("id",v),me.setAttribute("mask-type",p===3?"luminance":"alpha"),P=bt("use"),P.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),me.appendChild(P),this.globalData.defs.appendChild(me),!Yu.maskType&&p===1&&(me.setAttribute("mask-type","luminance"),$=xt(),T=_a.createFilter($),this.globalData.defs.appendChild(T),T.appendChild(_a.createAlphaToLuminanceFilter()),q=bt("g"),q.appendChild(P),me.appendChild(q),q.setAttribute("filter","url("+Ae()+"#"+$+")"))}else if(p===2){var J=bt("mask");J.setAttribute("id",v),J.setAttribute("mask-type","alpha");var $e=bt("g");J.appendChild($e),$=xt(),T=_a.createFilter($);var Ce=bt("feComponentTransfer");Ce.setAttribute("in","SourceGraphic"),T.appendChild(Ce);var Re=bt("feFuncA");Re.setAttribute("type","table"),Re.setAttribute("tableValues","1.0 0.0"),Ce.appendChild(Re),this.globalData.defs.appendChild(T);var M=bt("rect");M.setAttribute("width",this.comp.data.w),M.setAttribute("height",this.comp.data.h),M.setAttribute("x","0"),M.setAttribute("y","0"),M.setAttribute("fill","#ffffff"),M.setAttribute("opacity","0"),$e.setAttribute("filter","url("+Ae()+"#"+$+")"),$e.appendChild(M),P=bt("use"),P.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),$e.appendChild(P),Yu.maskType||(J.setAttribute("mask-type","luminance"),T.appendChild(_a.createAlphaToLuminanceFilter()),q=bt("g"),$e.appendChild(M),q.appendChild(this.layerElement),$e.appendChild(q)),this.globalData.defs.appendChild(J)}this.matteMasks[p]=v}return this.matteMasks[p]},setMatte:function(p){this.matteElement&&this.matteElement.setAttribute("mask","url("+Ae()+"#"+p+")")}};function Ma(){}Ma.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(p){this.hierarchy=p},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function No(){}(function(){var l={initElement:function(v,$,T){this.initFrame(),this.initBaseData(v,$,T),this.initTransform(v,$,T),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var v=this.baseElement||this.layerElement;v.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var v=this.baseElement||this.layerElement;v.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(v){this._mdf=!1,this.prepareRenderableFrame(v),this.prepareProperties(v,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};Le([Bn,Ye(l)],No)})();function jo(l,p,v){this.assetData=p.getAssetData(l.refId),this.initElement(l,p,v),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}Le([ta,gs,Bo,Ma,On,No],jo),jo.prototype.createContent=function(){var l=this.globalData.getAssetsPath(this.assetData);this.innerElem=bt("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",l),this.layerElement.appendChild(this.innerElem)},jo.prototype.sourceRectAtTime=function(){return this.sourceRect};function Pm(l,p){this.elem=l,this.pos=p}function Tc(){}Tc.prototype={addShapeToModifiers:function(p){var v,$=this.shapeModifiers.length;for(v=0;v<$;v+=1)this.shapeModifiers[v].addShape(p)},isShapeInAnimatedModifiers:function(p){for(var v=0,$=this.shapeModifiers.length;v<$;)if(this.shapeModifiers[v].isAnimatedWithShape(p))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var p,v=this.shapes.length;for(p=0;p<v;p+=1)this.shapes[p].sh.reset();v=this.shapeModifiers.length;var $;for(p=v-1;p>=0&&($=this.shapeModifiers[p].processShapes(this._isFirstFrame),!$);p-=1);}},searchProcessedElement:function(p){for(var v=this.processedElements,$=0,T=v.length;$<T;){if(v[$].elem===p)return v[$].pos;$+=1}return 0},addProcessedElement:function(p,v){for(var $=this.processedElements,T=$.length;T;)if(T-=1,$[T].elem===p){$[T].pos=v;return}$.push(new Pm(p,v))},prepareFrame:function(p){this.prepareRenderableFrame(p),this.prepareProperties(p,this.isInRange)}};var Ko={1:"butt",2:"round",3:"square"},vs={1:"miter",2:"round",3:"bevel"};function _d(l,p,v){this.caches=[],this.styles=[],this.transformers=l,this.lStr="",this.sh=v,this.lvl=p,this._isAnimated=!!v.k;for(var $=0,T=l.length;$<T;){if(l[$].mProps.dynamicProperties.length){this._isAnimated=!0;break}$+=1}}_d.prototype.setAsAnimated=function(){this._isAnimated=!0};function Pc(l,p){this.data=l,this.type=l.ty,this.d="",this.lvl=p,this._mdf=!1,this.closed=l.hd===!0,this.pElem=bt("path"),this.msElem=null}Pc.prototype.reset=function(){this.d="",this._mdf=!1};function Uo(l,p,v,$){this.elem=l,this.frameId=-1,this.dataProps=Ge(p.length),this.renderer=v,this.k=!1,this.dashStr="",this.dashArray=Ue("float32",p.length?p.length-1:0),this.dashoffset=Ue("float32",1),this.initDynamicPropertyContainer($);var T,P=p.length||0,q;for(T=0;T<P;T+=1)q=at.getProp(l,p[T].v,0,0,this),this.k=q.k||this.k,this.dataProps[T]={n:p[T].n,p:q};this.k||this.getValue(!0),this._isAnimated=this.k}Uo.prototype.getValue=function(l){if(!(this.elem.globalData.frameId===this.frameId&&!l)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||l,this._mdf)){var p=0,v=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),p=0;p<v;p+=1)this.dataProps[p].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[p].p.v:this.dashArray[p]=this.dataProps[p].p.v:this.dashoffset[0]=this.dataProps[p].p.v}},Le([cn],Uo);function Xu(l,p,v){this.initDynamicPropertyContainer(l),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(l,p.o,0,.01,this),this.w=at.getProp(l,p.w,0,null,this),this.d=new Uo(l,p.d||{},"svg",this),this.c=at.getProp(l,p.c,1,255,this),this.style=v,this._isAnimated=!!this._isAnimated}Le([cn],Xu);function Ju(l,p,v){this.initDynamicPropertyContainer(l),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(l,p.o,0,.01,this),this.c=at.getProp(l,p.c,1,255,this),this.style=v}Le([cn],Ju);function _c(l,p,v){this.initDynamicPropertyContainer(l),this.getValue=this.iterateDynamicProperties,this.style=v}Le([cn],_c);function qo(l,p,v){this.data=p,this.c=Ue("uint8c",p.p*4);var $=p.k.k[0].s?p.k.k[0].s.length-p.p*4:p.k.k.length-p.p*4;this.o=Ue("float32",$),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=$,this.initDynamicPropertyContainer(v),this.prop=at.getProp(l,p.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}qo.prototype.comparePoints=function(l,p){for(var v=0,$=this.o.length/2,T;v<$;){if(T=Math.abs(l[v*4]-l[p*4+v*2]),T>.01)return!1;v+=1}return!0},qo.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var l=0,p=this.data.k.k.length;l<p;){if(!this.comparePoints(this.data.k.k[l].s,this.data.p))return!1;l+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},qo.prototype.getValue=function(l){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||l){var p,v=this.data.p*4,$,T;for(p=0;p<v;p+=1)$=p%4===0?100:255,T=Math.round(this.prop.v[p]*$),this.c[p]!==T&&(this.c[p]=T,this._cmdf=!l);if(this.o.length)for(v=this.prop.v.length,p=this.data.p*4;p<v;p+=1)$=p%2===0?100:1,T=p%2===0?Math.round(this.prop.v[p]*100):this.prop.v[p],this.o[p-this.data.p*4]!==T&&(this.o[p-this.data.p*4]=T,this._omdf=!l);this._mdf=!l}},Le([cn],qo);function Fa(l,p,v){this.initDynamicPropertyContainer(l),this.getValue=this.iterateDynamicProperties,this.initGradientData(l,p,v)}Fa.prototype.initGradientData=function(l,p,v){this.o=at.getProp(l,p.o,0,.01,this),this.s=at.getProp(l,p.s,1,null,this),this.e=at.getProp(l,p.e,1,null,this),this.h=at.getProp(l,p.h||{k:0},0,.01,this),this.a=at.getProp(l,p.a||{k:0},0,Qt,this),this.g=new qo(l,p.g,this),this.style=v,this.stops=[],this.setGradientData(v.pElem,p),this.setGradientOpacity(p,v),this._isAnimated=!!this._isAnimated},Fa.prototype.setGradientData=function(l,p){var v=xt(),$=bt(p.t===1?"linearGradient":"radialGradient");$.setAttribute("id",v),$.setAttribute("spreadMethod","pad"),$.setAttribute("gradientUnits","userSpaceOnUse");var T=[],P,q,me;for(me=p.g.p*4,q=0;q<me;q+=4)P=bt("stop"),$.appendChild(P),T.push(P);l.setAttribute(p.ty==="gf"?"fill":"stroke","url("+Ae()+"#"+v+")"),this.gf=$,this.cst=T},Fa.prototype.setGradientOpacity=function(l,p){if(this.g._hasOpacity&&!this.g._collapsable){var v,$,T,P=bt("mask"),q=bt("path");P.appendChild(q);var me=xt(),J=xt();P.setAttribute("id",J);var $e=bt(l.t===1?"linearGradient":"radialGradient");$e.setAttribute("id",me),$e.setAttribute("spreadMethod","pad"),$e.setAttribute("gradientUnits","userSpaceOnUse"),T=l.g.k.k[0].s?l.g.k.k[0].s.length:l.g.k.k.length;var Ce=this.stops;for($=l.g.p*4;$<T;$+=2)v=bt("stop"),v.setAttribute("stop-color","rgb(255,255,255)"),$e.appendChild(v),Ce.push(v);q.setAttribute(l.ty==="gf"?"fill":"stroke","url("+Ae()+"#"+me+")"),l.ty==="gs"&&(q.setAttribute("stroke-linecap",Ko[l.lc||2]),q.setAttribute("stroke-linejoin",vs[l.lj||2]),l.lj===1&&q.setAttribute("stroke-miterlimit",l.ml)),this.of=$e,this.ms=P,this.ost=Ce,this.maskId=J,p.msElem=q}},Le([cn],Fa);function Qu(l,p,v){this.initDynamicPropertyContainer(l),this.getValue=this.iterateDynamicProperties,this.w=at.getProp(l,p.w,0,null,this),this.d=new Uo(l,p.d||{},"svg",this),this.initGradientData(l,p,v),this._isAnimated=!!this._isAnimated}Le([Fa,cn],Qu);function _m(){this.it=[],this.prevViewData=[],this.gr=bt("g")}function Md(l,p,v){this.transform={mProps:l,op:p,container:v},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var wr=function(p,v,$,T){if(v===0)return"";var P=p.o,q=p.i,me=p.v,J,$e=" M"+T.applyToPointStringified(me[0][0],me[0][1]);for(J=1;J<v;J+=1)$e+=" C"+T.applyToPointStringified(P[J-1][0],P[J-1][1])+" "+T.applyToPointStringified(q[J][0],q[J][1])+" "+T.applyToPointStringified(me[J][0],me[J][1]);return $&&v&&($e+=" C"+T.applyToPointStringified(P[J-1][0],P[J-1][1])+" "+T.applyToPointStringified(q[0][0],q[0][1])+" "+T.applyToPointStringified(me[0][0],me[0][1]),$e+="z"),$e},Mc=function(){var l=new kn,p=new kn,v={createRenderFunction:$};function $(Re){switch(Re.ty){case"fl":return me;case"gf":return $e;case"gs":return J;case"st":return Ce;case"sh":case"el":case"rc":case"sr":return q;case"tr":return T;case"no":return P;default:return null}}function T(Re,M,Q){(Q||M.transform.op._mdf)&&M.transform.container.setAttribute("opacity",M.transform.op.v),(Q||M.transform.mProps._mdf)&&M.transform.container.setAttribute("transform",M.transform.mProps.v.to2dCSS())}function P(){}function q(Re,M,Q){var G,he,de,W,Y,L,B=M.styles.length,H=M.lvl,ne,se,pe,Oe,nt;for(L=0;L<B;L+=1){if(W=M.sh._mdf||Q,M.styles[L].lvl<H){for(se=p.reset(),Oe=H-M.styles[L].lvl,nt=M.transformers.length-1;!W&&Oe>0;)W=M.transformers[nt].mProps._mdf||W,Oe-=1,nt-=1;if(W)for(Oe=H-M.styles[L].lvl,nt=M.transformers.length-1;Oe>0;)pe=M.transformers[nt].mProps.v.props,se.transform(pe[0],pe[1],pe[2],pe[3],pe[4],pe[5],pe[6],pe[7],pe[8],pe[9],pe[10],pe[11],pe[12],pe[13],pe[14],pe[15]),Oe-=1,nt-=1}else se=l;if(ne=M.sh.paths,he=ne._length,W){for(de="",G=0;G<he;G+=1)Y=ne.shapes[G],Y&&Y._length&&(de+=wr(Y,Y._length,Y.c,se));M.caches[L]=de}else de=M.caches[L];M.styles[L].d+=Re.hd===!0?"":de,M.styles[L]._mdf=W||M.styles[L]._mdf}}function me(Re,M,Q){var G=M.style;(M.c._mdf||Q)&&G.pElem.setAttribute("fill","rgb("+$t(M.c.v[0])+","+$t(M.c.v[1])+","+$t(M.c.v[2])+")"),(M.o._mdf||Q)&&G.pElem.setAttribute("fill-opacity",M.o.v)}function J(Re,M,Q){$e(Re,M,Q),Ce(Re,M,Q)}function $e(Re,M,Q){var G=M.gf,he=M.g._hasOpacity,de=M.s.v,W=M.e.v;if(M.o._mdf||Q){var Y=Re.ty==="gf"?"fill-opacity":"stroke-opacity";M.style.pElem.setAttribute(Y,M.o.v)}if(M.s._mdf||Q){var L=Re.t===1?"x1":"cx",B=L==="x1"?"y1":"cy";G.setAttribute(L,de[0]),G.setAttribute(B,de[1]),he&&!M.g._collapsable&&(M.of.setAttribute(L,de[0]),M.of.setAttribute(B,de[1]))}var H,ne,se,pe;if(M.g._cmdf||Q){H=M.cst;var Oe=M.g.c;for(se=H.length,ne=0;ne<se;ne+=1)pe=H[ne],pe.setAttribute("offset",Oe[ne*4]+"%"),pe.setAttribute("stop-color","rgb("+Oe[ne*4+1]+","+Oe[ne*4+2]+","+Oe[ne*4+3]+")")}if(he&&(M.g._omdf||Q)){var nt=M.g.o;for(M.g._collapsable?H=M.cst:H=M.ost,se=H.length,ne=0;ne<se;ne+=1)pe=H[ne],M.g._collapsable||pe.setAttribute("offset",nt[ne*2]+"%"),pe.setAttribute("stop-opacity",nt[ne*2+1])}if(Re.t===1)(M.e._mdf||Q)&&(G.setAttribute("x2",W[0]),G.setAttribute("y2",W[1]),he&&!M.g._collapsable&&(M.of.setAttribute("x2",W[0]),M.of.setAttribute("y2",W[1])));else{var et;if((M.s._mdf||M.e._mdf||Q)&&(et=Math.sqrt(Math.pow(de[0]-W[0],2)+Math.pow(de[1]-W[1],2)),G.setAttribute("r",et),he&&!M.g._collapsable&&M.of.setAttribute("r",et)),M.e._mdf||M.h._mdf||M.a._mdf||Q){et||(et=Math.sqrt(Math.pow(de[0]-W[0],2)+Math.pow(de[1]-W[1],2)));var Be=Math.atan2(W[1]-de[1],W[0]-de[0]),ot=M.h.v;ot>=1?ot=.99:ot<=-1&&(ot=-.99);var ct=et*ot,Ve=Math.cos(Be+M.a.v)*ct+de[0],xe=Math.sin(Be+M.a.v)*ct+de[1];G.setAttribute("fx",Ve),G.setAttribute("fy",xe),he&&!M.g._collapsable&&(M.of.setAttribute("fx",Ve),M.of.setAttribute("fy",xe))}}}function Ce(Re,M,Q){var G=M.style,he=M.d;he&&(he._mdf||Q)&&he.dashStr&&(G.pElem.setAttribute("stroke-dasharray",he.dashStr),G.pElem.setAttribute("stroke-dashoffset",he.dashoffset[0])),M.c&&(M.c._mdf||Q)&&G.pElem.setAttribute("stroke","rgb("+$t(M.c.v[0])+","+$t(M.c.v[1])+","+$t(M.c.v[2])+")"),(M.o._mdf||Q)&&G.pElem.setAttribute("stroke-opacity",M.o.v),(M.w._mdf||Q)&&(G.pElem.setAttribute("stroke-width",M.w.v),G.msElem&&G.msElem.setAttribute("stroke-width",M.w.v))}return v}();function hn(l,p,v){this.shapes=[],this.shapesData=l.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(l,p,v),this.prevViewData=[]}Le([ta,gs,Bo,Tc,Ma,On,No],hn),hn.prototype.initSecondaryElement=function(){},hn.prototype.identityMatrix=new kn,hn.prototype.buildExpressionInterface=function(){},hn.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},hn.prototype.filterUniqueShapes=function(){var l,p=this.shapes.length,v,$,T=this.stylesList.length,P,q=[],me=!1;for($=0;$<T;$+=1){for(P=this.stylesList[$],me=!1,q.length=0,l=0;l<p;l+=1)v=this.shapes[l],v.styles.indexOf(P)!==-1&&(q.push(v),me=v._isAnimated||me);q.length>1&&me&&this.setShapesAsAnimated(q)}},hn.prototype.setShapesAsAnimated=function(l){var p,v=l.length;for(p=0;p<v;p+=1)l[p].setAsAnimated()},hn.prototype.createStyleElement=function(l,p){var v,$=new Pc(l,p),T=$.pElem;if(l.ty==="st")v=new Xu(this,l,$);else if(l.ty==="fl")v=new Ju(this,l,$);else if(l.ty==="gf"||l.ty==="gs"){var P=l.ty==="gf"?Fa:Qu;v=new P(this,l,$),this.globalData.defs.appendChild(v.gf),v.maskId&&(this.globalData.defs.appendChild(v.ms),this.globalData.defs.appendChild(v.of),T.setAttribute("mask","url("+Ae()+"#"+v.maskId+")"))}else l.ty==="no"&&(v=new _c(this,l,$));return(l.ty==="st"||l.ty==="gs")&&(T.setAttribute("stroke-linecap",Ko[l.lc||2]),T.setAttribute("stroke-linejoin",vs[l.lj||2]),T.setAttribute("fill-opacity","0"),l.lj===1&&T.setAttribute("stroke-miterlimit",l.ml)),l.r===2&&T.setAttribute("fill-rule","evenodd"),l.ln&&T.setAttribute("id",l.ln),l.cl&&T.setAttribute("class",l.cl),l.bm&&(T.style["mix-blend-mode"]=En(l.bm)),this.stylesList.push($),this.addToAnimatedContents(l,v),v},hn.prototype.createGroupElement=function(l){var p=new _m;return l.ln&&p.gr.setAttribute("id",l.ln),l.cl&&p.gr.setAttribute("class",l.cl),l.bm&&(p.gr.style["mix-blend-mode"]=En(l.bm)),p},hn.prototype.createTransformElement=function(l,p){var v=Hs.getTransformProperty(this,l,this),$=new Md(v,v.o,p);return this.addToAnimatedContents(l,$),$},hn.prototype.createShapeElement=function(l,p,v){var $=4;l.ty==="rc"?$=5:l.ty==="el"?$=6:l.ty==="sr"&&($=7);var T=li.getShapeProp(this,l,$,this),P=new _d(p,v,T);return this.shapes.push(P),this.addShapeToModifiers(P),this.addToAnimatedContents(l,P),P},hn.prototype.addToAnimatedContents=function(l,p){for(var v=0,$=this.animatedContents.length;v<$;){if(this.animatedContents[v].element===p)return;v+=1}this.animatedContents.push({fn:Mc.createRenderFunction(l),element:p,data:l})},hn.prototype.setElementStyles=function(l){var p=l.styles,v,$=this.stylesList.length;for(v=0;v<$;v+=1)this.stylesList[v].closed||p.push(this.stylesList[v])},hn.prototype.reloadShapes=function(){this._isFirstFrame=!0;var l,p=this.itemsData.length;for(l=0;l<p;l+=1)this.prevViewData[l]=this.itemsData[l];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),p=this.dynamicProperties.length,l=0;l<p;l+=1)this.dynamicProperties[l].getValue();this.renderModifiers()},hn.prototype.searchShapes=function(l,p,v,$,T,P,q){var me=[].concat(P),J,$e=l.length-1,Ce,Re,M=[],Q=[],G,he,de;for(J=$e;J>=0;J-=1){if(de=this.searchProcessedElement(l[J]),de?p[J]=v[de-1]:l[J]._render=q,l[J].ty==="fl"||l[J].ty==="st"||l[J].ty==="gf"||l[J].ty==="gs"||l[J].ty==="no")de?p[J].style.closed=!1:p[J]=this.createStyleElement(l[J],T),l[J]._render&&p[J].style.pElem.parentNode!==$&&$.appendChild(p[J].style.pElem),M.push(p[J].style);else if(l[J].ty==="gr"){if(!de)p[J]=this.createGroupElement(l[J]);else for(Re=p[J].it.length,Ce=0;Ce<Re;Ce+=1)p[J].prevViewData[Ce]=p[J].it[Ce];this.searchShapes(l[J].it,p[J].it,p[J].prevViewData,p[J].gr,T+1,me,q),l[J]._render&&p[J].gr.parentNode!==$&&$.appendChild(p[J].gr)}else l[J].ty==="tr"?(de||(p[J]=this.createTransformElement(l[J],$)),G=p[J].transform,me.push(G)):l[J].ty==="sh"||l[J].ty==="rc"||l[J].ty==="el"||l[J].ty==="sr"?(de||(p[J]=this.createShapeElement(l[J],me,T)),this.setElementStyles(p[J])):l[J].ty==="tm"||l[J].ty==="rd"||l[J].ty==="ms"||l[J].ty==="pb"||l[J].ty==="zz"||l[J].ty==="op"?(de?(he=p[J],he.closed=!1):(he=_r.getModifier(l[J].ty),he.init(this,l[J]),p[J]=he,this.shapeModifiers.push(he)),Q.push(he)):l[J].ty==="rp"&&(de?(he=p[J],he.closed=!0):(he=_r.getModifier(l[J].ty),p[J]=he,he.init(this,l,J,p),this.shapeModifiers.push(he),q=!1),Q.push(he));this.addProcessedElement(l[J],J+1)}for($e=M.length,J=0;J<$e;J+=1)M[J].closed=!0;for($e=Q.length,J=0;J<$e;J+=1)Q[J].closed=!0},hn.prototype.renderInnerContent=function(){this.renderModifiers();var l,p=this.stylesList.length;for(l=0;l<p;l+=1)this.stylesList[l].reset();for(this.renderShape(),l=0;l<p;l+=1)(this.stylesList[l]._mdf||this._isFirstFrame)&&(this.stylesList[l].msElem&&(this.stylesList[l].msElem.setAttribute("d",this.stylesList[l].d),this.stylesList[l].d="M0 0"+this.stylesList[l].d),this.stylesList[l].pElem.setAttribute("d",this.stylesList[l].d||"M0 0"))},hn.prototype.renderShape=function(){var l,p=this.animatedContents.length,v;for(l=0;l<p;l+=1)v=this.animatedContents[l],(this._isFirstFrame||v.element._isAnimated)&&v.data!==!0&&v.fn(v.data,v.element,this._isFirstFrame)},hn.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function el(l,p,v,$,T,P){this.o=l,this.sw=p,this.sc=v,this.fc=$,this.m=T,this.p=P,this._mdf={o:!0,sw:!!p,sc:!!v,fc:!!$,m:!0,p:!0}}el.prototype.update=function(l,p,v,$,T,P){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 q=!1;return this.o!==l&&(this.o=l,this._mdf.o=!0,q=!0),this.sw!==p&&(this.sw=p,this._mdf.sw=!0,q=!0),this.sc!==v&&(this.sc=v,this._mdf.sc=!0,q=!0),this.fc!==$&&(this.fc=$,this._mdf.fc=!0,q=!0),this.m!==T&&(this.m=T,this._mdf.m=!0,q=!0),P.length&&(this.p[0]!==P[0]||this.p[1]!==P[1]||this.p[4]!==P[4]||this.p[5]!==P[5]||this.p[12]!==P[12]||this.p[13]!==P[13])&&(this.p=P,this._mdf.p=!0,q=!0),q};function or(l,p){this._frameId=te,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=p,this.elem=l,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)}or.prototype.defaultBoxWidth=[0,0],or.prototype.copyData=function(l,p){for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(l[v]=p[v]);return l},or.prototype.setCurrentData=function(l){l.__complete||this.completeTextData(l),this.currentData=l,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},or.prototype.searchProperty=function(){return this.searchKeyframes()},or.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},or.prototype.addEffect=function(l){this.effectsSequence.push(l),this.elem.addDynamicProperty(this)},or.prototype.getValue=function(l){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!l)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var p=this.currentData,v=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var $,T=this.effectsSequence.length,P=l||this.data.d.k[this.keysIndex].s;for($=0;$<T;$+=1)v!==this.keysIndex?P=this.effectsSequence[$](P,P.t):P=this.effectsSequence[$](this.currentData,P.t);p!==P&&this.setCurrentData(P),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},or.prototype.getKeyframeValue=function(){for(var l=this.data.d.k,p=this.elem.comp.renderedFrame,v=0,$=l.length;v<=$-1&&!(v===$-1||l[v+1].t>p);)v+=1;return this.keysIndex!==v&&(this.keysIndex=v),this.data.d.k[this.keysIndex].s},or.prototype.buildFinalText=function(l){for(var p=[],v=0,$=l.length,T,P,q=!1;v<$;)T=l.charCodeAt(v),ir.isCombinedCharacter(T)?p[p.length-1]+=l.charAt(v):T>=55296&&T<=56319?(P=l.charCodeAt(v+1),P>=56320&&P<=57343?(q||ir.isModifier(T,P)?(p[p.length-1]+=l.substr(v,2),q=!1):p.push(l.substr(v,2)),v+=1):p.push(l.charAt(v))):T>56319?(P=l.charCodeAt(v+1),ir.isZeroWidthJoiner(T,P)?(q=!0,p[p.length-1]+=l.substr(v,2),v+=1):p.push(l.charAt(v))):ir.isZeroWidthJoiner(T)?(p[p.length-1]+=l.charAt(v),q=!0):p.push(l.charAt(v)),v+=1;return p},or.prototype.completeTextData=function(l){l.__complete=!0;var p=this.elem.globalData.fontManager,v=this.data,$=[],T,P,q,me=0,J,$e=v.m.g,Ce=0,Re=0,M=0,Q=[],G=0,he=0,de,W,Y=p.getFontByName(l.f),L,B=0,H=tr(Y);l.fWeight=H.weight,l.fStyle=H.style,l.finalSize=l.s,l.finalText=this.buildFinalText(l.t),P=l.finalText.length,l.finalLineHeight=l.lh;var ne=l.tr/1e3*l.finalSize,se;if(l.sz)for(var pe=!0,Oe=l.sz[0],nt=l.sz[1],et,Be;pe;){Be=this.buildFinalText(l.t),et=0,G=0,P=Be.length,ne=l.tr/1e3*l.finalSize;var ot=-1;for(T=0;T<P;T+=1)se=Be[T].charCodeAt(0),q=!1,Be[T]===" "?ot=T:(se===13||se===3)&&(G=0,q=!0,et+=l.finalLineHeight||l.finalSize*1.2),p.chars?(L=p.getCharData(Be[T],Y.fStyle,Y.fFamily),B=q?0:L.w*l.finalSize/100):B=p.measureText(Be[T],l.f,l.finalSize),G+B>Oe&&Be[T]!==" "?(ot===-1?P+=1:T=ot,et+=l.finalLineHeight||l.finalSize*1.2,Be.splice(T,ot===T?1:0,"\r"),ot=-1,G=0):(G+=B,G+=ne);et+=Y.ascent*l.finalSize/100,this.canResize&&l.finalSize>this.minimumFontSize&&nt<et?(l.finalSize-=1,l.finalLineHeight=l.finalSize*l.lh/l.s):(l.finalText=Be,P=l.finalText.length,pe=!1)}G=-ne,B=0;var ct=0,Ve;for(T=0;T<P;T+=1)if(q=!1,Ve=l.finalText[T],se=Ve.charCodeAt(0),se===13||se===3?(ct=0,Q.push(G),he=G>he?G:he,G=-2*ne,J="",q=!0,M+=1):J=Ve,p.chars?(L=p.getCharData(Ve,Y.fStyle,p.getFontByName(l.f).fFamily),B=q?0:L.w*l.finalSize/100):B=p.measureText(J,l.f,l.finalSize),Ve===" "?ct+=B+ne:(G+=B+ne+ct,ct=0),$.push({l:B,an:B,add:Ce,n:q,anIndexes:[],val:J,line:M,animatorJustifyOffset:0}),$e==2){if(Ce+=B,J===""||J===" "||T===P-1){for((J===""||J===" ")&&(Ce-=B);Re<=T;)$[Re].an=Ce,$[Re].ind=me,$[Re].extra=B,Re+=1;me+=1,Ce=0}}else if($e==3){if(Ce+=B,J===""||T===P-1){for(J===""&&(Ce-=B);Re<=T;)$[Re].an=Ce,$[Re].ind=me,$[Re].extra=B,Re+=1;Ce=0,me+=1}}else $[me].ind=me,$[me].extra=0,me+=1;if(l.l=$,he=G>he?G:he,Q.push(G),l.sz)l.boxWidth=l.sz[0],l.justifyOffset=0;else switch(l.boxWidth=he,l.j){case 1:l.justifyOffset=-l.boxWidth;break;case 2:l.justifyOffset=-l.boxWidth/2;break;default:l.justifyOffset=0}l.lineWidths=Q;var xe=v.a,le,X;W=xe.length;var ve,je,ke=[];for(de=0;de<W;de+=1){for(le=xe[de],le.a.sc&&(l.strokeColorAnim=!0),le.a.sw&&(l.strokeWidthAnim=!0),(le.a.fc||le.a.fh||le.a.fs||le.a.fb)&&(l.fillColorAnim=!0),je=0,ve=le.s.b,T=0;T<P;T+=1)X=$[T],X.anIndexes[de]=je,(ve==1&&X.val!==""||ve==2&&X.val!==""&&X.val!==" "||ve==3&&(X.n||X.val==" "||T==P-1)||ve==4&&(X.n||T==P-1))&&(le.s.rn===1&&ke.push(je),je+=1);v.a[de].s.totalChars=je;var lt=-1,At;if(le.s.rn===1)for(T=0;T<P;T+=1)X=$[T],lt!=X.anIndexes[de]&&(lt=X.anIndexes[de],At=ke.splice(Math.floor(Math.random()*ke.length),1)[0]),X.anIndexes[de]=At}l.yOffset=l.finalLineHeight||l.finalSize*1.2,l.ls=l.ls||0,l.ascent=Y.ascent*l.finalSize/100},or.prototype.updateDocumentData=function(l,p){p=p===void 0?this.keysIndex:p;var v=this.copyData({},this.data.d.k[p].s);v=this.copyData(v,l),this.data.d.k[p].s=v,this.recalculate(p),this.elem.addDynamicProperty(this)},or.prototype.recalculate=function(l){var p=this.data.d.k[l].s;p.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(p)},or.prototype.canResizeFont=function(l){this.canResize=l,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},or.prototype.setMinimumFontSize=function(l){this.minimumFontSize=Math.floor(l)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Mm=function(){var l=Math.max,p=Math.min,v=Math.floor;function $(P,q){this._currentTextLength=-1,this.k=!1,this.data=q,this.elem=P,this.comp=P.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(P),this.s=at.getProp(P,q.s||{k:0},0,0,this),"e"in q?this.e=at.getProp(P,q.e,0,0,this):this.e={v:100},this.o=at.getProp(P,q.o||{k:0},0,0,this),this.xe=at.getProp(P,q.xe||{k:0},0,0,this),this.ne=at.getProp(P,q.ne||{k:0},0,0,this),this.sm=at.getProp(P,q.sm||{k:100},0,0,this),this.a=at.getProp(P,q.a,0,.01,this),this.dynamicProperties.length||this.getValue()}$.prototype={getMult:function(q){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var me=0,J=0,$e=1,Ce=1;this.ne.v>0?me=this.ne.v/100:J=-this.ne.v/100,this.xe.v>0?$e=1-this.xe.v/100:Ce=1+this.xe.v/100;var Re=as.getBezierEasing(me,J,$e,Ce).get,M=0,Q=this.finalS,G=this.finalE,he=this.data.sh;if(he===2)G===Q?M=q>=G?1:0:M=l(0,p(.5/(G-Q)+(q-Q)/(G-Q),1)),M=Re(M);else if(he===3)G===Q?M=q>=G?0:1:M=1-l(0,p(.5/(G-Q)+(q-Q)/(G-Q),1)),M=Re(M);else if(he===4)G===Q?M=0:(M=l(0,p(.5/(G-Q)+(q-Q)/(G-Q),1)),M<.5?M*=2:M=1-2*(M-.5)),M=Re(M);else if(he===5){if(G===Q)M=0;else{var de=G-Q;q=p(l(0,q+.5-Q),G-Q);var W=-de/2+q,Y=de/2;M=Math.sqrt(1-W*W/(Y*Y))}M=Re(M)}else he===6?(G===Q?M=0:(q=p(l(0,q+.5-Q),G-Q),M=(1+Math.cos(Math.PI+Math.PI*2*q/(G-Q)))/2),M=Re(M)):(q>=v(Q)&&(q-Q<0?M=l(0,p(p(G,1)-(Q-q),1)):M=l(0,p(G-q,1))),M=Re(M));if(this.sm.v!==100){var L=this.sm.v*.01;L===0&&(L=1e-8);var B=.5-L*.5;M<B?M=0:(M=(M-B)/L,M>1&&(M=1))}return M*this.a.v},getValue:function(q){this.iterateDynamicProperties(),this._mdf=q||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,q&&this.data.r===2&&(this.e.v=this._currentTextLength);var me=this.data.r===2?1:100/this.data.totalChars,J=this.o.v/me,$e=this.s.v/me+J,Ce=this.e.v/me+J;if($e>Ce){var Re=$e;$e=Ce,Ce=Re}this.finalS=$e,this.finalE=Ce}},Le([cn],$);function T(P,q,me){return new $(P,q)}return{getTextSelectorProp:T}}();function Fm(l,p,v){var $={propType:!1},T=at.getProp,P=p.a;this.a={r:P.r?T(l,P.r,0,Qt,v):$,rx:P.rx?T(l,P.rx,0,Qt,v):$,ry:P.ry?T(l,P.ry,0,Qt,v):$,sk:P.sk?T(l,P.sk,0,Qt,v):$,sa:P.sa?T(l,P.sa,0,Qt,v):$,s:P.s?T(l,P.s,1,.01,v):$,a:P.a?T(l,P.a,1,0,v):$,o:P.o?T(l,P.o,0,.01,v):$,p:P.p?T(l,P.p,1,0,v):$,sw:P.sw?T(l,P.sw,0,0,v):$,sc:P.sc?T(l,P.sc,1,0,v):$,fc:P.fc?T(l,P.fc,1,0,v):$,fh:P.fh?T(l,P.fh,0,0,v):$,fs:P.fs?T(l,P.fs,0,.01,v):$,fb:P.fb?T(l,P.fb,0,.01,v):$,t:P.t?T(l,P.t,0,0,v):$},this.s=Mm.getTextSelectorProp(l,p.s,v),this.s.t=p.s.t}function ys(l,p,v){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=l,this._renderType=p,this._elem=v,this._animatorsData=Ge(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(v)}ys.prototype.searchProperties=function(){var l,p=this._textData.a.length,v,$=at.getProp;for(l=0;l<p;l+=1)v=this._textData.a[l],this._animatorsData[l]=new Fm(this._elem,v,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:$(this._elem,this._textData.p.a,0,0,this),f:$(this._elem,this._textData.p.f,0,0,this),l:$(this._elem,this._textData.p.l,0,0,this),r:$(this._elem,this._textData.p.r,0,0,this),p:$(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=$(this._elem,this._textData.m.a,1,0,this)},ys.prototype.getMeasures=function(l,p){if(this.lettersChangedFlag=p,!(!this._mdf&&!this._isFirstFrame&&!p&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var v=this._moreOptions.alignment.v,$=this._animatorsData,T=this._textData,P=this.mHelper,q=this._renderType,me=this.renderedLetters.length,J,$e,Ce,Re,M=l.l,Q,G,he,de,W,Y,L,B,H,ne,se,pe,Oe,nt,et;if(this._hasMaskedPath){if(et=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Be=et.v;this._pathData.r.v&&(Be=Be.reverse()),Q={tLength:0,segments:[]},Re=Be._length-1;var ot;for(pe=0,Ce=0;Ce<Re;Ce+=1)ot=Hr.buildBezierData(Be.v[Ce],Be.v[Ce+1],[Be.o[Ce][0]-Be.v[Ce][0],Be.o[Ce][1]-Be.v[Ce][1]],[Be.i[Ce+1][0]-Be.v[Ce+1][0],Be.i[Ce+1][1]-Be.v[Ce+1][1]]),Q.tLength+=ot.segmentLength,Q.segments.push(ot),pe+=ot.segmentLength;Ce=Re,et.v.c&&(ot=Hr.buildBezierData(Be.v[Ce],Be.v[0],[Be.o[Ce][0]-Be.v[Ce][0],Be.o[Ce][1]-Be.v[Ce][1]],[Be.i[0][0]-Be.v[0][0],Be.i[0][1]-Be.v[0][1]]),Q.tLength+=ot.segmentLength,Q.segments.push(ot),pe+=ot.segmentLength),this._pathData.pi=Q}if(Q=this._pathData.pi,G=this._pathData.f.v,L=0,Y=1,de=0,W=!0,ne=Q.segments,G<0&&et.v.c)for(Q.tLength<Math.abs(G)&&(G=-Math.abs(G)%Q.tLength),L=ne.length-1,H=ne[L].points,Y=H.length-1;G<0;)G+=H[Y].partialLength,Y-=1,Y<0&&(L-=1,H=ne[L].points,Y=H.length-1);H=ne[L].points,B=H[Y-1],he=H[Y],se=he.partialLength}Re=M.length,J=0,$e=0;var ct=l.finalSize*1.2*.714,Ve=!0,xe,le,X,ve,je;ve=$.length;var ke,lt=-1,At,Ct,yn,zt=G,ur=L,Zn=Y,Ln=-1,Nn,jn,pr,ft,ln,Yr,Ti,ra,di="",ia=this.defaultPropsArray,aa;if(l.j===2||l.j===1){var Yt=0,bn=0,ka=l.j===2?-.5:-1,hi=0,sa=!0;for(Ce=0;Ce<Re;Ce+=1)if(M[Ce].n){for(Yt&&(Yt+=bn);hi<Ce;)M[hi].animatorJustifyOffset=Yt,hi+=1;Yt=0,sa=!0}else{for(X=0;X<ve;X+=1)xe=$[X].a,xe.t.propType&&(sa&&l.j===2&&(bn+=xe.t.v*ka),le=$[X].s,ke=le.getMult(M[Ce].anIndexes[X],T.a[X].s.totalChars),ke.length?Yt+=xe.t.v*ke[0]*ka:Yt+=xe.t.v*ke*ka);sa=!1}for(Yt&&(Yt+=bn);hi<Ce;)M[hi].animatorJustifyOffset=Yt,hi+=1}for(Ce=0;Ce<Re;Ce+=1){if(P.reset(),Nn=1,M[Ce].n)J=0,$e+=l.yOffset,$e+=Ve?1:0,G=zt,Ve=!1,this._hasMaskedPath&&(L=ur,Y=Zn,H=ne[L].points,B=H[Y-1],he=H[Y],se=he.partialLength,de=0),di="",ra="",Yr="",aa="",ia=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Ln!==M[Ce].line){switch(l.j){case 1:G+=pe-l.lineWidths[M[Ce].line];break;case 2:G+=(pe-l.lineWidths[M[Ce].line])/2;break}Ln=M[Ce].line}lt!==M[Ce].ind&&(M[lt]&&(G+=M[lt].extra),G+=M[Ce].an/2,lt=M[Ce].ind),G+=v[0]*M[Ce].an*.005;var pi=0;for(X=0;X<ve;X+=1)xe=$[X].a,xe.p.propType&&(le=$[X].s,ke=le.getMult(M[Ce].anIndexes[X],T.a[X].s.totalChars),ke.length?pi+=xe.p.v[0]*ke[0]:pi+=xe.p.v[0]*ke),xe.a.propType&&(le=$[X].s,ke=le.getMult(M[Ce].anIndexes[X],T.a[X].s.totalChars),ke.length?pi+=xe.a.v[0]*ke[0]:pi+=xe.a.v[0]*ke);for(W=!0,this._pathData.a.v&&(G=M[0].an*.5+(pe-this._pathData.f.v-M[0].an*.5-M[M.length-1].an*.5)*lt/(Re-1),G+=this._pathData.f.v);W;)de+se>=G+pi||!H?(Oe=(G+pi-de)/he.partialLength,Ct=B.point[0]+(he.point[0]-B.point[0])*Oe,yn=B.point[1]+(he.point[1]-B.point[1])*Oe,P.translate(-v[0]*M[Ce].an*.005,-(v[1]*ct)*.01),W=!1):H&&(de+=he.partialLength,Y+=1,Y>=H.length&&(Y=0,L+=1,ne[L]?H=ne[L].points:et.v.c?(Y=0,L=0,H=ne[L].points):(de-=he.partialLength,H=null)),H&&(B=he,he=H[Y],se=he.partialLength));At=M[Ce].an/2-M[Ce].add,P.translate(-At,0,0)}else At=M[Ce].an/2-M[Ce].add,P.translate(-At,0,0),P.translate(-v[0]*M[Ce].an*.005,-v[1]*ct*.01,0);for(X=0;X<ve;X+=1)xe=$[X].a,xe.t.propType&&(le=$[X].s,ke=le.getMult(M[Ce].anIndexes[X],T.a[X].s.totalChars),(J!==0||l.j!==0)&&(this._hasMaskedPath?ke.length?G+=xe.t.v*ke[0]:G+=xe.t.v*ke:ke.length?J+=xe.t.v*ke[0]:J+=xe.t.v*ke));for(l.strokeWidthAnim&&(pr=l.sw||0),l.strokeColorAnim&&(l.sc?jn=[l.sc[0],l.sc[1],l.sc[2]]:jn=[0,0,0]),l.fillColorAnim&&l.fc&&(ft=[l.fc[0],l.fc[1],l.fc[2]]),X=0;X<ve;X+=1)xe=$[X].a,xe.a.propType&&(le=$[X].s,ke=le.getMult(M[Ce].anIndexes[X],T.a[X].s.totalChars),ke.length?P.translate(-xe.a.v[0]*ke[0],-xe.a.v[1]*ke[1],xe.a.v[2]*ke[2]):P.translate(-xe.a.v[0]*ke,-xe.a.v[1]*ke,xe.a.v[2]*ke));for(X=0;X<ve;X+=1)xe=$[X].a,xe.s.propType&&(le=$[X].s,ke=le.getMult(M[Ce].anIndexes[X],T.a[X].s.totalChars),ke.length?P.scale(1+(xe.s.v[0]-1)*ke[0],1+(xe.s.v[1]-1)*ke[1],1):P.scale(1+(xe.s.v[0]-1)*ke,1+(xe.s.v[1]-1)*ke,1));for(X=0;X<ve;X+=1){if(xe=$[X].a,le=$[X].s,ke=le.getMult(M[Ce].anIndexes[X],T.a[X].s.totalChars),xe.sk.propType&&(ke.length?P.skewFromAxis(-xe.sk.v*ke[0],xe.sa.v*ke[1]):P.skewFromAxis(-xe.sk.v*ke,xe.sa.v*ke)),xe.r.propType&&(ke.length?P.rotateZ(-xe.r.v*ke[2]):P.rotateZ(-xe.r.v*ke)),xe.ry.propType&&(ke.length?P.rotateY(xe.ry.v*ke[1]):P.rotateY(xe.ry.v*ke)),xe.rx.propType&&(ke.length?P.rotateX(xe.rx.v*ke[0]):P.rotateX(xe.rx.v*ke)),xe.o.propType&&(ke.length?Nn+=(xe.o.v*ke[0]-Nn)*ke[0]:Nn+=(xe.o.v*ke-Nn)*ke),l.strokeWidthAnim&&xe.sw.propType&&(ke.length?pr+=xe.sw.v*ke[0]:pr+=xe.sw.v*ke),l.strokeColorAnim&&xe.sc.propType)for(ln=0;ln<3;ln+=1)ke.length?jn[ln]+=(xe.sc.v[ln]-jn[ln])*ke[0]:jn[ln]+=(xe.sc.v[ln]-jn[ln])*ke;if(l.fillColorAnim&&l.fc){if(xe.fc.propType)for(ln=0;ln<3;ln+=1)ke.length?ft[ln]+=(xe.fc.v[ln]-ft[ln])*ke[0]:ft[ln]+=(xe.fc.v[ln]-ft[ln])*ke;xe.fh.propType&&(ke.length?ft=It(ft,xe.fh.v*ke[0]):ft=It(ft,xe.fh.v*ke)),xe.fs.propType&&(ke.length?ft=Ut(ft,xe.fs.v*ke[0]):ft=Ut(ft,xe.fs.v*ke)),xe.fb.propType&&(ke.length?ft=Pt(ft,xe.fb.v*ke[0]):ft=Pt(ft,xe.fb.v*ke))}}for(X=0;X<ve;X+=1)xe=$[X].a,xe.p.propType&&(le=$[X].s,ke=le.getMult(M[Ce].anIndexes[X],T.a[X].s.totalChars),this._hasMaskedPath?ke.length?P.translate(0,xe.p.v[1]*ke[0],-xe.p.v[2]*ke[1]):P.translate(0,xe.p.v[1]*ke,-xe.p.v[2]*ke):ke.length?P.translate(xe.p.v[0]*ke[0],xe.p.v[1]*ke[1],-xe.p.v[2]*ke[2]):P.translate(xe.p.v[0]*ke,xe.p.v[1]*ke,-xe.p.v[2]*ke));if(l.strokeWidthAnim&&(Yr=pr<0?0:pr),l.strokeColorAnim&&(Ti="rgb("+Math.round(jn[0]*255)+","+Math.round(jn[1]*255)+","+Math.round(jn[2]*255)+")"),l.fillColorAnim&&l.fc&&(ra="rgb("+Math.round(ft[0]*255)+","+Math.round(ft[1]*255)+","+Math.round(ft[2]*255)+")"),this._hasMaskedPath){if(P.translate(0,-l.ls),P.translate(0,v[1]*ct*.01+$e,0),this._pathData.p.v){nt=(he.point[1]-B.point[1])/(he.point[0]-B.point[0]);var oa=Math.atan(nt)*180/Math.PI;he.point[0]<B.point[0]&&(oa+=180),P.rotate(-oa*Math.PI/180)}P.translate(Ct,yn,0),G-=v[0]*M[Ce].an*.005,M[Ce+1]&<!==M[Ce+1].ind&&(G+=M[Ce].an/2,G+=l.tr*.001*l.finalSize)}else{switch(P.translate(J,$e,0),l.ps&&P.translate(l.ps[0],l.ps[1]+l.ascent,0),l.j){case 1:P.translate(M[Ce].animatorJustifyOffset+l.justifyOffset+(l.boxWidth-l.lineWidths[M[Ce].line]),0,0);break;case 2:P.translate(M[Ce].animatorJustifyOffset+l.justifyOffset+(l.boxWidth-l.lineWidths[M[Ce].line])/2,0,0);break}P.translate(0,-l.ls),P.translate(At,0,0),P.translate(v[0]*M[Ce].an*.005,v[1]*ct*.01,0),J+=M[Ce].l+l.tr*.001*l.finalSize}q==="html"?di=P.toCSS():q==="svg"?di=P.to2dCSS():ia=[P.props[0],P.props[1],P.props[2],P.props[3],P.props[4],P.props[5],P.props[6],P.props[7],P.props[8],P.props[9],P.props[10],P.props[11],P.props[12],P.props[13],P.props[14],P.props[15]],aa=Nn}me<=Ce?(je=new el(aa,Yr,Ti,ra,di,ia),this.renderedLetters.push(je),me+=1,this.lettersChangedFlag=!0):(je=this.renderedLetters[Ce],this.lettersChangedFlag=je.update(aa,Yr,Ti,ra,di,ia)||this.lettersChangedFlag)}}},ys.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},ys.prototype.mHelper=new kn,ys.prototype.defaultPropsArray=[],Le([cn],ys);function fi(){}fi.prototype.initElement=function(l,p,v){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(l,p,v),this.textProperty=new or(this,l.t,this.dynamicProperties),this.textAnimator=new ys(l.t,this.renderType,this),this.initTransform(l,p,v),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},fi.prototype.prepareFrame=function(l){this._mdf=!1,this.prepareRenderableFrame(l),this.prepareProperties(l,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},fi.prototype.createPathShape=function(l,p){var v,$=p.length,T,P="";for(v=0;v<$;v+=1)p[v].ty==="sh"&&(T=p[v].ks.k,P+=wr(T,T.i.length,!0,l));return P},fi.prototype.updateDocumentData=function(l,p){this.textProperty.updateDocumentData(l,p)},fi.prototype.canResizeFont=function(l){this.textProperty.canResizeFont(l)},fi.prototype.setMinimumFontSize=function(l){this.textProperty.setMinimumFontSize(l)},fi.prototype.applyTextPropertiesToMatrix=function(l,p,v,$,T){switch(l.ps&&p.translate(l.ps[0],l.ps[1]+l.ascent,0),p.translate(0,-l.ls,0),l.j){case 1:p.translate(l.justifyOffset+(l.boxWidth-l.lineWidths[v]),0,0);break;case 2:p.translate(l.justifyOffset+(l.boxWidth-l.lineWidths[v])/2,0,0);break}p.translate($,T,0)},fi.prototype.buildColor=function(l){return"rgb("+Math.round(l[0]*255)+","+Math.round(l[1]*255)+","+Math.round(l[2]*255)+")"},fi.prototype.emptyProp=new el,fi.prototype.destroy=function(){};var Rm={shapes:[]};function Cr(l,p,v){this.textSpans=[],this.renderType="svg",this.initElement(l,p,v)}Le([ta,gs,Bo,Ma,On,No,fi],Cr),Cr.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=bt("text"))},Cr.prototype.buildTextContents=function(l){for(var p=0,v=l.length,$=[],T="";p<v;)l[p]==="\r"||l[p]===""?($.push(T),T=""):T+=l[p],p+=1;return $.push(T),$},Cr.prototype.buildShapeData=function(l,p){if(l.shapes&&l.shapes.length){var v=l.shapes[0];if(v.it){var $=v.it[v.it.length-1];$.s&&($.s.k[0]=p,$.s.k[1]=p)}}return l},Cr.prototype.buildNewText=function(){this.addDynamicProperty(this);var l,p,v=this.textProperty.currentData;this.renderedLetters=Ge(v?v.l.length:0),v.fc?this.layerElement.setAttribute("fill",this.buildColor(v.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),v.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(v.sc)),this.layerElement.setAttribute("stroke-width",v.sw)),this.layerElement.setAttribute("font-size",v.finalSize);var $=this.globalData.fontManager.getFontByName(v.f);if($.fClass)this.layerElement.setAttribute("class",$.fClass);else{this.layerElement.setAttribute("font-family",$.fFamily);var T=v.fWeight,P=v.fStyle;this.layerElement.setAttribute("font-style",P),this.layerElement.setAttribute("font-weight",T)}this.layerElement.setAttribute("aria-label",v.t);var q=v.l||[],me=!!this.globalData.fontManager.chars;p=q.length;var J,$e=this.mHelper,Ce="",Re=this.data.singleShape,M=0,Q=0,G=!0,he=v.tr*.001*v.finalSize;if(Re&&!me&&!v.sz){var de=this.textContainer,W="start";switch(v.j){case 1:W="end";break;case 2:W="middle";break;default:W="start";break}de.setAttribute("text-anchor",W),de.setAttribute("letter-spacing",he);var Y=this.buildTextContents(v.finalText);for(p=Y.length,Q=v.ps?v.ps[1]+v.ascent:0,l=0;l<p;l+=1)J=this.textSpans[l].span||bt("tspan"),J.textContent=Y[l],J.setAttribute("x",0),J.setAttribute("y",Q),J.style.display="inherit",de.appendChild(J),this.textSpans[l]||(this.textSpans[l]={span:null,glyph:null}),this.textSpans[l].span=J,Q+=v.finalLineHeight;this.layerElement.appendChild(de)}else{var L=this.textSpans.length,B;for(l=0;l<p;l+=1){if(this.textSpans[l]||(this.textSpans[l]={span:null,childSpan:null,glyph:null}),!me||!Re||l===0){if(J=L>l?this.textSpans[l].span:bt(me?"g":"text"),L<=l){if(J.setAttribute("stroke-linecap","butt"),J.setAttribute("stroke-linejoin","round"),J.setAttribute("stroke-miterlimit","4"),this.textSpans[l].span=J,me){var H=bt("g");J.appendChild(H),this.textSpans[l].childSpan=H}this.textSpans[l].span=J,this.layerElement.appendChild(J)}J.style.display="inherit"}if($e.reset(),Re&&(q[l].n&&(M=-he,Q+=v.yOffset,Q+=G?1:0,G=!1),this.applyTextPropertiesToMatrix(v,$e,q[l].line,M,Q),M+=q[l].l||0,M+=he),me){B=this.globalData.fontManager.getCharData(v.finalText[l],$.fStyle,this.globalData.fontManager.getFontByName(v.f).fFamily);var ne;if(B.t===1)ne=new Gr(B.data,this.globalData,this);else{var se=Rm;B.data&&B.data.shapes&&(se=this.buildShapeData(B.data,v.finalSize)),ne=new hn(se,this.globalData,this)}if(this.textSpans[l].glyph){var pe=this.textSpans[l].glyph;this.textSpans[l].childSpan.removeChild(pe.layerElement),pe.destroy()}this.textSpans[l].glyph=ne,ne._debug=!0,ne.prepareFrame(0),ne.renderFrame(),this.textSpans[l].childSpan.appendChild(ne.layerElement),B.t===1&&this.textSpans[l].childSpan.setAttribute("transform","scale("+v.finalSize/100+","+v.finalSize/100+")")}else Re&&J.setAttribute("transform","translate("+$e.props[12]+","+$e.props[13]+")"),J.textContent=q[l].val,J.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Re&&J&&J.setAttribute("d",Ce)}for(;l<this.textSpans.length;)this.textSpans[l].span.style.display="none",l+=1;this._sizeChanged=!0},Cr.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var l=this.layerElement.getBBox();this.bbox={top:l.y,left:l.x,width:l.width,height:l.height}}return this.bbox},Cr.prototype.getValue=function(){var l,p=this.textSpans.length,v;for(this.renderedFrame=this.comp.renderedFrame,l=0;l<p;l+=1)v=this.textSpans[l].glyph,v&&(v.prepareFrame(this.comp.renderedFrame-this.data.st),v._mdf&&(this._mdf=!0))},Cr.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 l,p,v=this.textAnimator.renderedLetters,$=this.textProperty.currentData.l;p=$.length;var T,P,q;for(l=0;l<p;l+=1)$[l].n||(T=v[l],P=this.textSpans[l].span,q=this.textSpans[l].glyph,q&&q.renderFrame(),T._mdf.m&&P.setAttribute("transform",T.m),T._mdf.o&&P.setAttribute("opacity",T.o),T._mdf.sw&&P.setAttribute("stroke-width",T.sw),T._mdf.sc&&P.setAttribute("stroke",T.sc),T._mdf.fc&&P.setAttribute("fill",T.fc))}};function Fc(l,p,v){this.initElement(l,p,v)}Le([jo],Fc),Fc.prototype.createContent=function(){var l=bt("rect");l.setAttribute("width",this.data.sw),l.setAttribute("height",this.data.sh),l.setAttribute("fill",this.data.sc),this.layerElement.appendChild(l)};function Ra(l,p,v){this.initFrame(),this.initBaseData(l,p,v),this.initFrame(),this.initTransform(l,p,v),this.initHierarchy()}Ra.prototype.prepareFrame=function(l){this.prepareProperties(l,!0)},Ra.prototype.renderFrame=function(){},Ra.prototype.getBaseElement=function(){return null},Ra.prototype.destroy=function(){},Ra.prototype.sourceRectAtTime=function(){},Ra.prototype.hide=function(){},Le([ta,gs,Ma,On],Ra);function In(){}Le([sr],In),In.prototype.createNull=function(l){return new Ra(l,this.globalData,this)},In.prototype.createShape=function(l){return new hn(l,this.globalData,this)},In.prototype.createText=function(l){return new Cr(l,this.globalData,this)},In.prototype.createImage=function(l){return new jo(l,this.globalData,this)},In.prototype.createSolid=function(l){return new Fc(l,this.globalData,this)},In.prototype.configAnimation=function(l){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 "+l.w+" "+l.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",l.w),this.svgElement.setAttribute("height",l.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 p=this.globalData.defs;this.setupGlobalData(l,p),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=l;var v=bt("clipPath"),$=bt("rect");$.setAttribute("width",l.w),$.setAttribute("height",l.h),$.setAttribute("x",0),$.setAttribute("y",0);var T=xt();v.setAttribute("id",T),v.appendChild($),this.layerElement.setAttribute("clip-path","url("+Ae()+"#"+T+")"),p.appendChild(v),this.layers=l.layers,this.elements=Ge(l.layers.length)},In.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var l,p=this.layers?this.layers.length:0;for(l=0;l<p;l+=1)this.elements[l]&&this.elements[l].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},In.prototype.updateContainerSize=function(){},In.prototype.findIndexByInd=function(l){var p=0,v=this.layers.length;for(p=0;p<v;p+=1)if(this.layers[p].ind===l)return p;return-1},In.prototype.buildItem=function(l){var p=this.elements;if(!(p[l]||this.layers[l].ty===99)){p[l]=!0;var v=this.createItem(this.layers[l]);if(p[l]=v,si()&&(this.layers[l].ty===0&&this.globalData.projectInterface.registerComposition(v),v.initExpressions()),this.appendElementInPos(v,l),this.layers[l].tt){var $="tp"in this.layers[l]?this.findIndexByInd(this.layers[l].tp):l-1;if($===-1)return;if(!this.elements[$]||this.elements[$]===!0)this.buildItem($),this.addPendingElement(v);else{var T=p[$],P=T.getMatte(this.layers[l].tt);v.setMatte(P)}}}},In.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var l=this.pendingElements.pop();if(l.checkParenting(),l.data.tt)for(var p=0,v=this.elements.length;p<v;){if(this.elements[p]===l){var $="tp"in l.data?this.findIndexByInd(l.data.tp):p-1,T=this.elements[$],P=T.getMatte(this.layers[p].tt);l.setMatte(P);break}p+=1}}},In.prototype.renderFrame=function(l){if(!(this.renderedFrame===l||this.destroyed)){l===null?l=this.renderedFrame:this.renderedFrame=l,this.globalData.frameNum=l,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=l,this.globalData._mdf=!1;var p,v=this.layers.length;for(this.completeLayers||this.checkLayers(l),p=v-1;p>=0;p-=1)(this.completeLayers||this.elements[p])&&this.elements[p].prepareFrame(l-this.layers[p].st);if(this.globalData._mdf)for(p=0;p<v;p+=1)(this.completeLayers||this.elements[p])&&this.elements[p].renderFrame()}},In.prototype.appendElementInPos=function(l,p){var v=l.getBaseElement();if(v){for(var $=0,T;$<p;)this.elements[$]&&this.elements[$]!==!0&&this.elements[$].getBaseElement()&&(T=this.elements[$].getBaseElement()),$+=1;T?this.layerElement.insertBefore(v,T):this.layerElement.appendChild(v)}},In.prototype.hide=function(){this.layerElement.style.display="none"},In.prototype.show=function(){this.layerElement.style.display="block"};function Ai(){}Le([ta,gs,Ma,On,No],Ai),Ai.prototype.initElement=function(l,p,v){this.initFrame(),this.initBaseData(l,p,v),this.initTransform(l,p,v),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!p.progressiveLoad)&&this.buildAllItems(),this.hide()},Ai.prototype.prepareFrame=function(l){if(this._mdf=!1,this.prepareRenderableFrame(l),this.prepareProperties(l,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=l/this.data.sr;else{var p=this.tm.v;p===this.data.op&&(p=this.data.op-1),this.renderedFrame=p}var v,$=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),v=$-1;v>=0;v-=1)(this.completeLayers||this.elements[v])&&(this.elements[v].prepareFrame(this.renderedFrame-this.layers[v].st),this.elements[v]._mdf&&(this._mdf=!0))}},Ai.prototype.renderInnerContent=function(){var l,p=this.layers.length;for(l=0;l<p;l+=1)(this.completeLayers||this.elements[l])&&this.elements[l].renderFrame()},Ai.prototype.setElements=function(l){this.elements=l},Ai.prototype.getElements=function(){return this.elements},Ai.prototype.destroyElements=function(){var l,p=this.layers.length;for(l=0;l<p;l+=1)this.elements[l]&&this.elements[l].destroy()},Ai.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Gr(l,p,v){this.layers=l.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?Ge(this.layers.length):[],this.initElement(l,p,v),this.tm=l.tm?at.getProp(this,l.tm,0,p.frameRate,this):{_placeholder:!0}}Le([In,Ai,Bo],Gr),Gr.prototype.createComp=function(l){return new Gr(l,this.globalData,this)};function Xs(l,p){this.animationItem=l,this.layers=null,this.renderedFrame=-1,this.svgElement=bt("svg");var v="";if(p&&p.title){var $=bt("title"),T=xt();$.setAttribute("id",T),$.textContent=p.title,this.svgElement.appendChild($),v+=T}if(p&&p.description){var P=bt("desc"),q=xt();P.setAttribute("id",q),P.textContent=p.description,this.svgElement.appendChild(P),v+=" "+q}v&&this.svgElement.setAttribute("aria-labelledby",v);var me=bt("defs");this.svgElement.appendChild(me);var J=bt("g");this.svgElement.appendChild(J),this.layerElement=J,this.renderConfig={preserveAspectRatio:p&&p.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:p&&p.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:p&&p.contentVisibility||"visible",progressiveLoad:p&&p.progressiveLoad||!1,hideOnTransparent:!(p&&p.hideOnTransparent===!1),viewBoxOnly:p&&p.viewBoxOnly||!1,viewBoxSize:p&&p.viewBoxSize||!1,className:p&&p.className||"",id:p&&p.id||"",focusable:p&&p.focusable,filterSize:{width:p&&p.filterSize&&p.filterSize.width||"100%",height:p&&p.filterSize&&p.filterSize.height||"100%",x:p&&p.filterSize&&p.filterSize.x||"0%",y:p&&p.filterSize&&p.filterSize.y||"0%"},width:p&&p.width,height:p&&p.height,runExpressions:!p||p.runExpressions===void 0||p.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:me,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return Le([In],Xs),Xs.prototype.createComp=function(l){return new Gr(l,this.globalData,this)},Lu("svg",Xs),_r.registerModifier("tm",Mr),_r.registerModifier("pb",Da),_r.registerModifier("rp",hr),_r.registerModifier("rd",us),_r.registerModifier("zz",ds),_r.registerModifier("op",vn),jt})})(o,o.exports);var c=o.exports;function d(U,ee){var K=U==null?null:typeof Symbol<"u"&&U[Symbol.iterator]||U["@@iterator"];if(K!=null){var k,N,te,j,ce=[],ue=!0,Ae=!1;try{if(te=(K=K.call(U)).next,ee!==0)for(;!(ue=(k=te.call(K)).done)&&(ce.push(k.value),ce.length!==ee);ue=!0);}catch(_e){Ae=!0,N=_e}finally{try{if(!ue&&K.return!=null&&(j=K.return(),Object(j)!==j))return}finally{if(Ae)throw N}}return ce}}function h(U,ee){var K=Object.keys(U);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(U);ee&&(k=k.filter(function(N){return Object.getOwnPropertyDescriptor(U,N).enumerable})),K.push.apply(K,k)}return K}function m(U){for(var ee=1;ee<arguments.length;ee++){var K=arguments[ee]!=null?arguments[ee]:{};ee%2?h(Object(K),!0).forEach(function(k){g(U,k,K[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(K)):h(Object(K)).forEach(function(k){Object.defineProperty(U,k,Object.getOwnPropertyDescriptor(K,k))})}return U}function g(U,ee,K){return ee=_(ee),ee in U?Object.defineProperty(U,ee,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[ee]=K,U}function b(U,ee){if(U==null)return{};var K={},k=Object.keys(U),N,te;for(te=0;te<k.length;te++)N=k[te],!(ee.indexOf(N)>=0)&&(K[N]=U[N]);return K}function w(U,ee){if(U==null)return{};var K=b(U,ee),k,N;if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(U);for(N=0;N<te.length;N++)k=te[N],!(ee.indexOf(k)>=0)&&Object.prototype.propertyIsEnumerable.call(U,k)&&(K[k]=U[k])}return K}function x(U,ee){return A(U)||d(U,ee)||C(U,ee)||S()}function A(U){if(Array.isArray(U))return U}function C(U,ee){if(U){if(typeof U=="string")return E(U,ee);var K=Object.prototype.toString.call(U).slice(8,-1);if(K==="Object"&&U.constructor&&(K=U.constructor.name),K==="Map"||K==="Set")return Array.from(U);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return E(U,ee)}}function E(U,ee){(ee==null||ee>U.length)&&(ee=U.length);for(var K=0,k=new Array(ee);K<ee;K++)k[K]=U[K];return k}function S(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
84
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R(U,ee){if(typeof U!="object"||U===null)return U;var K=U[Symbol.toPrimitive];if(K!==void 0){var k=K.call(U,ee);if(typeof k!="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ee==="string"?String:Number)(U)}function _(U){var ee=R(U,"string");return typeof ee=="symbol"?ee:String(ee)}var F=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],z=function(ee,K){var k=ee.animationData,N=ee.loop,te=ee.autoplay,j=ee.initialSegment,ce=ee.onComplete,ue=ee.onLoopComplete,Ae=ee.onEnterFrame,_e=ee.onSegmentStart,Le=ee.onConfigReady,Ye=ee.onDataReady,Qe=ee.onDataFailed,Ue=ee.onLoadedImages,Ge=ee.onDOMLoaded,Ie=ee.onDestroy;ee.lottieRef,ee.renderer,ee.name,ee.assetsPath,ee.rendererSettings;var Ne=w(ee,F),Te=r.useState(!1),He=x(Te,2),ht=He[0],Ht=He[1],$t=r.useRef(),_t=r.useRef(null),zr=function(){var Pt;(Pt=$t.current)===null||Pt===void 0||Pt.play()},Qt=function(){var Pt;(Pt=$t.current)===null||Pt===void 0||Pt.stop()},be=function(){var Pt;(Pt=$t.current)===null||Pt===void 0||Pt.pause()},De=function(Pt){var It;(It=$t.current)===null||It===void 0||It.setSpeed(Pt)},Me=function(Pt,It){var qt;(qt=$t.current)===null||qt===void 0||qt.goToAndPlay(Pt,It)},Xe=function(Pt,It){var qt;(qt=$t.current)===null||qt===void 0||qt.goToAndStop(Pt,It)},tt=function(Pt){var It;(It=$t.current)===null||It===void 0||It.setDirection(Pt)},Je=function(Pt,It){var qt;(qt=$t.current)===null||qt===void 0||qt.playSegments(Pt,It)},gt=function(Pt){var It;(It=$t.current)===null||It===void 0||It.setSubframe(Pt)},Rt=function(Pt){var It;return(It=$t.current)===null||It===void 0?void 0:It.getDuration(Pt)},xt=function(){var Pt;(Pt=$t.current)===null||Pt===void 0||Pt.destroy(),$t.current=void 0},gn=function(){var Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},It;if(_t.current){(It=$t.current)===null||It===void 0||It.destroy();var qt=m(m(m({},ee),Pt),{},{container:_t.current});return $t.current=c.loadAnimation(qt),Ht(!!$t.current),function(){var fr;(fr=$t.current)===null||fr===void 0||fr.destroy(),$t.current=void 0}}};r.useEffect(function(){var Ut=gn();return function(){return Ut==null?void 0:Ut()}},[k,N]),r.useEffect(function(){$t.current&&($t.current.autoplay=!!te)},[te]),r.useEffect(function(){if($t.current){if(!j){$t.current.resetSegments(!0);return}!Array.isArray(j)||!j.length||(($t.current.currentRawFrame<j[0]||$t.current.currentRawFrame>j[1])&&($t.current.currentRawFrame=j[0]),$t.current.setSegment(j[0],j[1]))}},[j]),r.useEffect(function(){var Ut=[{name:"complete",handler:ce},{name:"loopComplete",handler:ue},{name:"enterFrame",handler:Ae},{name:"segmentStart",handler:_e},{name:"config_ready",handler:Le},{name:"data_ready",handler:Ye},{name:"data_failed",handler:Qe},{name:"loaded_images",handler:Ue},{name:"DOMLoaded",handler:Ge},{name:"destroy",handler:Ie}],Pt=Ut.filter(function(qt){return qt.handler!=null});if(Pt.length){var It=Pt.map(function(qt){var fr;return(fr=$t.current)===null||fr===void 0||fr.addEventListener(qt.name,qt.handler),function(){var Wr;(Wr=$t.current)===null||Wr===void 0||Wr.removeEventListener(qt.name,qt.handler)}});return function(){It.forEach(function(qt){return qt()})}}},[ce,ue,Ae,_e,Le,Ye,Qe,Ue,Ge,Ie]);var br=a.default.createElement("div",m({style:K,ref:_t},Ne));return{View:br,play:zr,stop:Qt,pause:be,setSpeed:De,goToAndStop:Xe,goToAndPlay:Me,setDirection:tt,playSegments:Je,setSubframe:gt,getDuration:Rt,destroy:xt,animationContainerRef:_t,animationLoaded:ht,animationItem:$t.current}};function ie(U){var ee=U.getBoundingClientRect(),K=ee.top,k=ee.height,N=window.innerHeight-K,te=window.innerHeight+k;return N/te}function ge(U,ee,K){var k=U.getBoundingClientRect(),N=k.top,te=k.left,j=k.width,ce=k.height,ue=(ee-te)/j,Ae=(K-N)/ce;return{x:ue,y:Ae}}var oe=function(ee){var K=ee.wrapperRef,k=ee.animationItem,N=ee.mode,te=ee.actions;r.useEffect(function(){var j=K.current;if(!(!j||!k||!te.length)){k.stop();var ce=function(){var _e=null,Le=function(){var Qe=ie(j),Ue=te.find(function(Ie){var Ne=Ie.visibility;return Ne&&Qe>=Ne[0]&&Qe<=Ne[1]});if(Ue){if(Ue.type==="seek"&&Ue.visibility&&Ue.frames.length===2){var Ge=Ue.frames[0]+Math.ceil((Qe-Ue.visibility[0])/(Ue.visibility[1]-Ue.visibility[0])*Ue.frames[1]);//! goToAndStop must be relative to the start of the current segment
|
|
85
|
-
k.goToAndStop(Ge-k.firstFrame-1,!0)}Ue.type==="loop"&&(_e===null||_e!==Ue.frames||k.isPaused)&&(k.playSegments(Ue.frames,!0),_e=Ue.frames),Ue.type==="play"&&k.isPaused&&(k.resetSegments(!0),k.play()),Ue.type==="stop"&&k.goToAndStop(Ue.frames[0]-k.firstFrame-1,!0)}};return document.addEventListener("scroll",Le),function(){document.removeEventListener("scroll",Le)}},ue=function(){var _e=function(Ue,Ge){var Ie=Ue,Ne=Ge;if(Ie!==-1&&Ne!==-1){var Te=ge(j,Ie,Ne);Ie=Te.x,Ne=Te.y}var He=te.find(function($t){var _t=$t.position;return _t&&Array.isArray(_t.x)&&Array.isArray(_t.y)?Ie>=_t.x[0]&&Ie<=_t.x[1]&&Ne>=_t.y[0]&&Ne<=_t.y[1]:_t&&!Number.isNaN(_t.x)&&!Number.isNaN(_t.y)?Ie===_t.x&&Ne===_t.y:!1});if(He){if(He.type==="seek"&&He.position&&Array.isArray(He.position.x)&&Array.isArray(He.position.y)&&He.frames.length===2){var ht=(Ie-He.position.x[0])/(He.position.x[1]-He.position.x[0]),Ht=(Ne-He.position.y[0])/(He.position.y[1]-He.position.y[0]);k.playSegments(He.frames,!0),k.goToAndStop(Math.ceil((ht+Ht)/2*(He.frames[1]-He.frames[0])),!0)}He.type==="loop"&&k.playSegments(He.frames,!0),He.type==="play"&&(k.isPaused&&k.resetSegments(!1),k.playSegments(He.frames)),He.type==="stop"&&k.goToAndStop(He.frames[0],!0)}},Le=function(Ue){_e(Ue.clientX,Ue.clientY)},Ye=function(){_e(-1,-1)};return j.addEventListener("mousemove",Le),j.addEventListener("mouseout",Ye),function(){j.removeEventListener("mousemove",Le),j.removeEventListener("mouseout",Ye)}};switch(N){case"scroll":return ce();case"cursor":return ue()}}},[N,k])},O=function(ee){var K=ee.actions,k=ee.mode,N=ee.lottieObj,te=N.animationItem,j=N.View,ce=N.animationContainerRef;return oe({actions:K,animationItem:te,mode:k,wrapperRef:ce}),j},we=["style","interactivity"],Se=function(ee){var K,k,N,te=ee.style,j=ee.interactivity,ce=w(ee,we),ue=z(ce,te),Ae=ue.View,_e=ue.play,Le=ue.stop,Ye=ue.pause,Qe=ue.setSpeed,Ue=ue.goToAndStop,Ge=ue.goToAndPlay,Ie=ue.setDirection,Ne=ue.playSegments,Te=ue.setSubframe,He=ue.getDuration,ht=ue.destroy,Ht=ue.animationContainerRef,$t=ue.animationLoaded,_t=ue.animationItem;return r.useEffect(function(){ee.lottieRef&&(ee.lottieRef.current={play:_e,stop:Le,pause:Ye,setSpeed:Qe,goToAndPlay:Ge,goToAndStop:Ue,setDirection:Ie,playSegments:Ne,setSubframe:Te,getDuration:He,destroy:ht,animationContainerRef:Ht,animationLoaded:$t,animationItem:_t})},[(K=ee.lottieRef)===null||K===void 0?void 0:K.current]),O({lottieObj:{View:Ae,play:_e,stop:Le,pause:Ye,setSpeed:Qe,goToAndStop:Ue,goToAndPlay:Ge,setDirection:Ie,playSegments:Ne,setSubframe:Te,getDuration:He,destroy:ht,animationContainerRef:Ht,animationLoaded:$t,animationItem:_t},actions:(k=j==null?void 0:j.actions)!==null&&k!==void 0?k:[],mode:(N=j==null?void 0:j.mode)!==null&&N!==void 0?N:"scroll"})};n.LottiePlayer=c,n.default=Se,n.useLottie=z,n.useLottieInteractivity=O,Object.defineProperty(n,"__esModule",{value:!0})})}(vf,vf.exports)),vf.exports}var $re=bre();const xre=yr($re);var G0,cT;function wre(){if(cT)return G0;cT=1;var e=Math.floor,t=Math.random;function n(r,i){return r+e(t()*(i-r+1))}return G0=n,G0}var Y0,fT;function Cre(){if(fT)return Y0;fT=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return Y0=t,Y0}var Z0,dT;function Ere(){if(dT)return Z0;dT=1;var e=Cre(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return Z0=n,Z0}var X0,hT;function Sre(){if(hT)return X0;hT=1;var e=Ere(),t=Mu(),n=Ip(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt;function c(d){if(typeof d=="number")return d;if(n(d))return r;if(t(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=t(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=e(d);var m=a.test(d);return m||s.test(d)?o(d.slice(2),m?2:8):i.test(d)?r:+d}return X0=c,X0}var J0,pT;function Dre(){if(pT)return J0;pT=1;var e=Sre(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*n}return i===i?i:0}return J0=r,J0}var Q0,mT;function Are(){if(mT)return Q0;mT=1;var e=wre(),t=NP(),n=Dre(),r=parseFloat,i=Math.min,a=Math.random;function s(o,c,d){if(d&&typeof d!="boolean"&&t(o,c,d)&&(c=d=void 0),d===void 0&&(typeof c=="boolean"?(d=c,c=void 0):typeof o=="boolean"&&(d=o,o=void 0)),o===void 0&&c===void 0?(o=0,c=1):(o=n(o),c===void 0?(c=o,o=0):c=n(c)),o>c){var h=o;o=c,c=h}if(d||o%1||c%1){var m=a();return i(o+m*(c-o+r("1e-"+((m+"").length-1))),c)}return e(o,c)}return Q0=s,Q0}var Tre=Are();const Pre=yr(Tre),_re=I.createContext({});function Mre(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const Q3=typeof window<"u",Fre=Q3?I.useLayoutEffect:I.useEffect,Fk=I.createContext(null),Rk=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Rre(e){return typeof e=="object"&&e!==null}function kk(e){return Rre(e)&&"offsetHeight"in e}const bh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function kre(e,t){let n=new Set,r=new Set,i=!1,a=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function c(h){s.has(h)&&(d.schedule(h),e()),h(o)}const d={schedule:(h,m=!1,g=!1)=>{const w=g&&i?n:r;return m&&s.add(h),w.has(h)||w.add(h),h},cancel:h=>{r.delete(h),s.delete(h)},process:h=>{if(o=h,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(c),n.clear(),i=!1,a&&(a=!1,d.process(h))}};return d}const Ks={},Ore=40;function Ok(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=bh.reduce((S,R)=>(S[R]=kre(a),S),{}),{setup:o,read:c,resolveKeyframes:d,preUpdate:h,update:m,preRender:g,render:b,postRender:w}=s,x=()=>{const S=Ks.useManualTiming?i.timestamp:performance.now();n=!1,Ks.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,Ore),1)),i.timestamp=S,i.isProcessing=!0,o.process(i),c.process(i),d.process(i),h.process(i),m.process(i),g.process(i),b.process(i),w.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(x))},A=()=>{n=!0,r=!0,i.isProcessing||e(x)};return{schedule:bh.reduce((S,R)=>{const _=s[R];return S[R]=(F,z=!1,ie=!1)=>(n||A(),_.schedule(F,z,ie)),S},{}),cancel:S=>{for(let R=0;R<bh.length;R++)s[bh[R]].cancel(S)},state:i,steps:s}}const uc=e=>e,{schedule:$a,cancel:I1,state:Ep}=Ok(typeof requestAnimationFrame<"u"?requestAnimationFrame:uc,!0),e$=I.createContext({strict:!1}),gT={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 gT)Gl[e]={isEnabled:t=>gT[e].some(n=>!!t[n])};function vT(e){for(const t in e)Gl[t]={...Gl[t],...e[t]}}function Ire({children:e,features:t,strict:n=!1}){const[,r]=I.useState(!eb(t)),i=I.useRef(void 0);if(!eb(t)){const{renderer:a,...s}=t;i.current=a,vT(s)}return I.useEffect(()=>{eb(t)&&t().then(({renderer:a,...s})=>{vT(s),i.current=a,r(!0)})},[]),Qa.jsx(e$.Provider,{value:{renderer:i.current,strict:n},children:e})}function eb(e){return typeof e=="function"}const Lre=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 Sp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Lre.has(e)}let Ik=e=>!Sp(e);function Vre(e){e&&(Ik=t=>t.startsWith("on")?!Sp(t):e(t))}try{Vre(require("@emotion/is-prop-valid").default)}catch{}function Bre(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Ik(i)||n===!0&&Sp(i)||!t&&!Sp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const yT=new Set;function t$(e,t,n){e||yT.has(t)||(console.warn(t),yT.add(t))}function Nre(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&t$(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const wm=I.createContext({});function Cm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function zf(e){return typeof e=="string"||Array.isArray(e)}const n$=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],r$=["initial",...n$];function Em(e){return Cm(e.animate)||r$.some(t=>zf(e[t]))}function Lk(e){return!!(Em(e)||e.variants)}function jre(e,t){if(Em(e)){const{initial:n,animate:r}=e;return{initial:n===!1||zf(n)?n:void 0,animate:zf(r)?r:void 0}}return e.inherit!==!1?t:{}}function Kre(e){const{initial:t,animate:n}=jre(e,I.useContext(wm));return I.useMemo(()=>({initial:t,animate:n}),[bT(t),bT(n)])}function bT(e){return Array.isArray(e)?e.join(" "):e}const Ure=Symbol.for("motionComponentSymbol");function Vk(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function qre(e,t,n){return I.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Vk(n)&&(n.current=r))},[t])}const i$=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),zre="framerAppearId",Bk="data-"+i$(zre),Wre=I.createContext({}),{schedule:Hre}=Ok(queueMicrotask,!1);function Gre(e,t,n,r,i){var x,A;const{visualElement:a}=I.useContext(wm),s=I.useContext(e$),o=I.useContext(Fk),c=I.useContext(Rk).reducedMotion,d=I.useRef(null);r=r||s.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:c}));const h=d.current,m=I.useContext(Wre);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&Yre(d.current,n,i,m);const g=I.useRef(!1);I.useInsertionEffect(()=>{h&&g.current&&h.update(n,o)});const b=n[Bk],w=I.useRef(!!b&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,b))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,b)));return Fre(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Hre.render(h.render),w.current&&h.animationState&&h.animationState.animateChanges())}),I.useEffect(()=>{h&&(!w.current&&h.animationState&&h.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)==null||C.call(window,b)}),w.current=!1))}),h}function Yre(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:c,layoutRoot:d,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Nk(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&Vk(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:c,layoutRoot:d})}function Nk(e){if(e)return e.options.allowProjection!==!1?e.projection:Nk(e.parent)}let vd=()=>{},Au=()=>{};process.env.NODE_ENV!=="production"&&(vd=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Au=(e,t)=>{if(!e)throw new Error(t)});function Zre({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){function a(o,c){let d;const h={...I.useContext(Rk),...o,layoutId:Xre(o)},{isStatic:m}=h,g=Kre(o),b=r(o,m);if(!m&&Q3){Jre(h,e);const w=Qre(h);d=w.MeasureLayout,g.visualElement=Gre(i,b,h,t,w.ProjectionNode)}return Qa.jsxs(wm.Provider,{value:g,children:[d&&g.visualElement?Qa.jsx(d,{visualElement:g.visualElement,...h}):null,n(i,o,qre(b,g.visualElement,c),b,m,g.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const s=I.forwardRef(a);return s[Ure]=i,s}function Xre({layoutId:e}){const t=I.useContext(_re).id;return t&&e!==void 0?t+"-"+e:e}function Jre(e,t){I.useContext(e$).strict,process.env.NODE_ENV}function Qre(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 jk=e=>t=>typeof t=="string"&&t.startsWith(e),Kk=jk("--"),eie=jk("var(--"),a$=e=>eie(e)?tie.test(e.split("/*")[0].trim()):!1,tie=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,nie={},lc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],cc=new Set(lc);function Uk(e,{layout:t,layoutId:n}){return cc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!nie[e]||e==="opacity")}const qk=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Tu=(e,t,n)=>n>t?t:n<e?e:n,fc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Wf={...fc,transform:e=>Tu(0,1,e)},$h={...fc,default:1},$T={...fc,transform:Math.round},yd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),uo=yd("deg"),Vl=yd("%"),Tt=yd("px"),rie=yd("vh"),iie=yd("vw"),xT={...Vl,parse:e=>Vl.parse(e)/100,transform:e=>Vl.transform(e*100)},aie={rotate:uo,rotateX:uo,rotateY:uo,rotateZ:uo,scale:$h,scaleX:$h,scaleY:$h,scaleZ:$h,skew:uo,skewX:uo,skewY:uo,distance:Tt,translateX:Tt,translateY:Tt,translateZ:Tt,x:Tt,y:Tt,z:Tt,perspective:Tt,transformPerspective:Tt,opacity:Wf,originX:xT,originY:xT,originZ:Tt},s$={borderWidth:Tt,borderTopWidth:Tt,borderRightWidth:Tt,borderBottomWidth:Tt,borderLeftWidth:Tt,borderRadius:Tt,radius:Tt,borderTopLeftRadius:Tt,borderTopRightRadius:Tt,borderBottomRightRadius:Tt,borderBottomLeftRadius:Tt,width:Tt,maxWidth:Tt,height:Tt,maxHeight:Tt,top:Tt,right:Tt,bottom:Tt,left:Tt,padding:Tt,paddingTop:Tt,paddingRight:Tt,paddingBottom:Tt,paddingLeft:Tt,margin:Tt,marginTop:Tt,marginRight:Tt,marginBottom:Tt,marginLeft:Tt,backgroundPositionX:Tt,backgroundPositionY:Tt,...aie,zIndex:$T,fillOpacity:Wf,strokeOpacity:Wf,numOctaves:$T},sie={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},oie=lc.length;function uie(e,t,n){let r="",i=!0;for(let a=0;a<oie;a++){const s=lc[a],o=e[s];if(o===void 0)continue;let c=!0;if(typeof o=="number"?c=o===(s.startsWith("scale")?1:0):c=parseFloat(o)===0,!c||n){const d=qk(o,s$[s]);if(!c){i=!1;const h=sie[s]||s;r+=`${h}(${d}) `}n&&(t[s]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function o$(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let s=!1,o=!1;for(const c in t){const d=t[c];if(cc.has(c)){s=!0;continue}else if(Kk(c)){i[c]=d;continue}else{const h=qk(d,s$[c]);c.startsWith("origin")?(o=!0,a[c]=h):r[c]=h}}if(t.transform||(s||n?r.transform=uie(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:c="50%",originY:d="50%",originZ:h=0}=a;r.transformOrigin=`${c} ${d} ${h}`}}const u$=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Nr=e=>!!(e&&e.getVelocity);function zk(e,t,n){for(const r in t)!Nr(t[r])&&!Uk(r,n)&&(e[r]=t[r])}function lie({transformTemplate:e},t){return I.useMemo(()=>{const n=u$();return o$(n,t,e),Object.assign({},n.vars,n.style)},[t])}function cie(e,t){const n=e.style||{},r={};return zk(r,n,e),Object.assign(r,lie(e,t)),r}function fie(e,t){const n={},r=cie(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 die={offset:"stroke-dashoffset",array:"stroke-dasharray"},hie={offset:"strokeDashoffset",array:"strokeDasharray"};function pie(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?die:hie;e[a.offset]=Tt.transform(-r);const s=Tt.transform(t),o=Tt.transform(n);e[a.array]=`${s} ${o}`}function Wk(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...o},c,d,h){if(o$(e,o,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g}=e;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=(h==null?void 0:h.transformBox)??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),i!==void 0&&pie(m,i,a,s,!1)}const Hk=()=>({...u$(),attrs:{}}),Gk=e=>typeof e=="string"&&e.toLowerCase()==="svg";function mie(e,t,n,r){const i=I.useMemo(()=>{const a=Hk();return Wk(a,t,Gk(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};zk(a,e.style,e),i.style={...a,...i.style}}return i}const gie=["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 l$(e){return typeof e!="string"||e.includes("-")?!1:!!(gie.indexOf(e)>-1||/[A-Z]/u.test(e))}function vie(e=!1){return(n,r,i,{latestValues:a},s)=>{const c=(l$(n)?mie:fie)(r,a,s,n),d=Bre(r,typeof n=="string",e),h=n!==I.Fragment?{...d,...c,ref:i}:{},{children:m}=r,g=I.useMemo(()=>Nr(m)?m.get():m,[m]);return I.createElement(n,{...h,children:g})}}function wT(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function c$(e,t,n,r){if(typeof t=="function"){const[i,a]=wT(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]=wT(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function yie(e){return Nr(e)?e.get():e}function bie({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:$ie(n,r,i,e),renderState:t()}}const Yk=e=>(t,n)=>{const r=I.useContext(wm),i=I.useContext(Fk),a=()=>bie(e,t,r,i);return n?a():Mre(a)};function $ie(e,t,n,r){const i={},a=r(e,{});for(const g in a)i[g]=yie(a[g]);let{initial:s,animate:o}=e;const c=Em(e),d=Lk(e);t&&d&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let h=n?n.initial===!1:!1;h=h||s===!1;const m=h?o:s;if(m&&typeof m!="boolean"&&!Cm(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const w=c$(e,g[b]);if(w){const{transitionEnd:x,transition:A,...C}=w;for(const E in C){let S=C[E];if(Array.isArray(S)){const R=h?S.length-1:0;S=S[R]}S!==null&&(i[E]=S)}for(const E in x)i[E]=x[E]}}}return i}function f$(e,t,n){var a;const{style:r}=e,i={};for(const s in r)(Nr(r[s])||t.style&&Nr(t.style[s])||Uk(s,e)||((a=n==null?void 0:n.getValue(s))==null?void 0:a.liveStyle)!==void 0)&&(i[s]=r[s]);return i}const xie={useVisualState:Yk({scrapeMotionValuesFromProps:f$,createRenderState:u$})};function Zk(e,t,n){const r=f$(e,t,n);for(const i in e)if(Nr(e[i])||Nr(t[i])){const a=lc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const wie={useVisualState:Yk({scrapeMotionValuesFromProps:Zk,createRenderState:Hk})};function Cie(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...l$(r)?wie:xie,preloadedFeatures:e,useRender:vie(i),createVisualElement:t,Component:r};return Zre(s)}}const Eie=Cie(),Sie=Nre(Eie);function Hf(e,t,n){const r=e.getProps();return c$(r,t,n!==void 0?n:r.custom,e)}const L1=e=>Array.isArray(e);let Kh;function Die(){Kh=void 0}const zi={now:()=>(Kh===void 0&&zi.set(Ep.isProcessing||Ks.useManualTiming?Ep.timestamp:performance.now()),Kh),set:e=>{Kh=e,queueMicrotask(Die)}};function Aie(e,t){e.indexOf(t)===-1&&e.push(t)}function Tie(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Xk{constructor(){this.subscriptions=[]}add(t){return Aie(this.subscriptions,t),()=>Tie(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}}function Jk(e,t){return t?e*(1e3/t):0}const CT=30,Pie=e=>!isNaN(parseFloat(e));class _ie{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{var s,o;const a=zi.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty();i&&((o=this.events.renderRequest)==null||o.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=zi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Pie(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&t$(!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 Xk);const r=this.events[t].add(n);return t==="change"?()=>{r(),$a.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()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=zi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>CT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,CT);return Jk(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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Dp(e,t){return new _ie(e,t)}function Mie(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Dp(n))}function Fie(e){return L1(e)?e[e.length-1]||0:e}function Rie(e,t){const n=Hf(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const o=Fie(a[s]);Mie(e,s,o)}}function kie(e){return!!(Nr(e)&&e.add)}function Oie(e,t){const n=e.getValue("willChange");if(kie(n))return n.add(t);if(!n&&Ks.WillChange){const r=new Ks.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Iie(e){return e.props[Bk]}const Lie=e=>e!==null;function Vie(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Lie),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const Bie={type:"spring",stiffness:500,damping:25,restSpeed:10},Nie=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),jie={type:"keyframes",duration:.8},Kie={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Uie=(e,{keyframes:t})=>t.length>2?jie:cc.has(e)?e.startsWith("scale")?Nie(t[1]):Bie:Kie;function qie({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:c,elapsed:d,...h}){return!!Object.keys(h).length}function Qk(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Ja=e=>e*1e3,Ls=e=>e/1e3,Af=e=>Math.round(e*1e5)/1e5,d$=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function zie(e){return e==null}const Wie=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,h$=(e,t)=>n=>!!(typeof n=="string"&&Wie.test(n)&&n.startsWith(e)||t&&!zie(n)&&Object.prototype.hasOwnProperty.call(n,t)),eO=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,o]=r.match(d$);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},Hie=e=>Tu(0,255,e),tb={...fc,transform:e=>Math.round(Hie(e))},du={test:h$("rgb","red"),parse:eO("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+tb.transform(e)+", "+tb.transform(t)+", "+tb.transform(n)+", "+Af(Wf.transform(r))+")"};function Gie(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 V1={test:h$("#"),parse:Gie,transform:du.transform},Dl={test:h$("hsl","hue"),parse:eO("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Vl.transform(Af(t))+", "+Vl.transform(Af(n))+", "+Af(Wf.transform(r))+")"},Sr={test:e=>du.test(e)||V1.test(e)||Dl.test(e),parse:e=>du.test(e)?du.parse(e):Dl.test(e)?Dl.parse(e):V1.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?du.transform(e):Dl.transform(e)},Yie=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Zie(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(d$))==null?void 0:t.length)||0)+(((n=e.match(Yie))==null?void 0:n.length)||0)>0}const tO="number",nO="color",Xie="var",Jie="var(",ET="${}",Qie=/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 Gf(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(Qie,c=>(Sr.test(c)?(r.color.push(a),i.push(nO),n.push(Sr.parse(c))):c.startsWith(Jie)?(r.var.push(a),i.push(Xie),n.push(c)):(r.number.push(a),i.push(tO),n.push(parseFloat(c))),++a,ET)).split(ET);return{values:n,split:o,indexes:r,types:i}}function rO(e){return Gf(e).values}function iO(e){const{split:t,types:n}=Gf(e),r=t.length;return i=>{let a="";for(let s=0;s<r;s++)if(a+=t[s],i[s]!==void 0){const o=n[s];o===tO?a+=Af(i[s]):o===nO?a+=Sr.transform(i[s]):a+=i[s]}return a}}const eae=e=>typeof e=="number"?0:e;function tae(e){const t=rO(e);return iO(e)(t.map(eae))}const dc={test:Zie,parse:rO,createTransformer:iO,getAnimatableNone:tae};function nb(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 nae({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 o=n<.5?n*(1+t):n+t-n*t,c=2*n-o;i=nb(c,o,e+1/3),a=nb(c,o,e),s=nb(c,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function Ap(e,t){return n=>n>0?t:e}const Sm=(e,t,n)=>e+(t-e)*n,rb=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},rae=[V1,du,Dl],iae=e=>rae.find(t=>t.test(e));function ST(e){const t=iae(e);if(vd(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Dl&&(n=nae(n)),n}const DT=(e,t)=>{const n=ST(e),r=ST(t);if(!n||!r)return Ap(e,t);const i={...n};return a=>(i.red=rb(n.red,r.red,a),i.green=rb(n.green,r.green,a),i.blue=rb(n.blue,r.blue,a),i.alpha=Sm(n.alpha,r.alpha,a),du.transform(i))},B1=new Set(["none","hidden"]);function aae(e,t){return B1.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}const sae=(e,t)=>n=>t(e(n)),Dm=(...e)=>e.reduce(sae);function oae(e,t){return n=>Sm(e,t,n)}function p$(e){return typeof e=="number"?oae:typeof e=="string"?a$(e)?Ap:Sr.test(e)?DT:cae:Array.isArray(e)?aO:typeof e=="object"?Sr.test(e)?DT:uae:Ap}function aO(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>p$(a)(a,t[s]));return a=>{for(let s=0;s<r;s++)n[s]=i[s](a);return n}}function uae(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=p$(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function lae(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][r[a]],o=e.values[s]??0;n[i]=o,r[a]++}return n}const cae=(e,t)=>{const n=dc.createTransformer(t),r=Gf(e),i=Gf(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?B1.has(e)&&!i.values.length||B1.has(t)&&!r.values.length?aae(e,t):Dm(aO(lae(r,i),i.values),n):(vd(!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.`),Ap(e,t))};function sO(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Sm(e,t,n):p$(e)(e,t)}const fae=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>$a.update(t,n),stop:()=>I1(t),now:()=>Ep.isProcessing?Ep.timestamp:zi.now()}},oO=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(a/(i-1))+", ";return`linear(${r.substring(0,r.length-2)})`},Tp=2e4;function m$(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Tp;)t+=n,r=e.next(t);return t>=Tp?1/0:t}function dae(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(m$(r),Tp);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:Ls(i)}}const hae=5;function uO(e,t,n){const r=Math.max(t-hae,0);return Jk(n-e(r),t-r)}const _n={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},ib=.001;function pae({duration:e=_n.duration,bounce:t=_n.bounce,velocity:n=_n.velocity,mass:r=_n.mass}){let i,a;vd(e<=Ja(_n.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=Tu(_n.minDamping,_n.maxDamping,s),e=Tu(_n.minDuration,_n.maxDuration,Ls(e)),s<1?(i=d=>{const h=d*s,m=h*e,g=h-n,b=N1(d,s),w=Math.exp(-m);return ib-g/b*w},a=d=>{const m=d*s*e,g=m*n+n,b=Math.pow(s,2)*Math.pow(d,2)*e,w=Math.exp(-m),x=N1(Math.pow(d,2),s);return(-i(d)+ib>0?-1:1)*((g-b)*w)/x}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-ib+h*m},a=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const o=5/e,c=gae(i,a,o);if(e=Ja(e),isNaN(c))return{stiffness:_n.stiffness,damping:_n.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const mae=12;function gae(e,t,n){let r=n;for(let i=1;i<mae;i++)r=r-e(r)/t(r);return r}function N1(e,t){return e*Math.sqrt(1-t*t)}const vae=["duration","bounce"],yae=["stiffness","damping","mass"];function AT(e,t){return t.some(n=>e[n]!==void 0)}function bae(e){let t={velocity:_n.velocity,stiffness:_n.stiffness,damping:_n.damping,mass:_n.mass,isResolvedFromDuration:!1,...e};if(!AT(e,yae)&&AT(e,vae))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Tu(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:_n.mass,stiffness:i,damping:a}}else{const n=pae(e);t={...t,...n,mass:_n.mass},t.isResolvedFromDuration=!0}return t}function Pp(e=_n.visualDuration,t=_n.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],o={done:!1,value:a},{stiffness:c,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=bae({...n,velocity:-Ls(n.velocity||0)}),w=g||0,x=d/(2*Math.sqrt(c*h)),A=s-a,C=Ls(Math.sqrt(c/h)),E=Math.abs(A)<5;r||(r=E?_n.restSpeed.granular:_n.restSpeed.default),i||(i=E?_n.restDelta.granular:_n.restDelta.default);let S;if(x<1){const _=N1(C,x);S=F=>{const z=Math.exp(-x*C*F);return s-z*((w+x*C*A)/_*Math.sin(_*F)+A*Math.cos(_*F))}}else if(x===1)S=_=>s-Math.exp(-C*_)*(A+(w+C*A)*_);else{const _=C*Math.sqrt(x*x-1);S=F=>{const z=Math.exp(-x*C*F),ie=Math.min(_*F,300);return s-z*((w+x*C*A)*Math.sinh(ie)+_*A*Math.cosh(ie))/_}}const R={calculatedDuration:b&&m||null,next:_=>{const F=S(_);if(b)o.done=_>=m;else{let z=_===0?w:0;x<1&&(z=_===0?Ja(w):uO(S,_,F));const ie=Math.abs(z)<=r,ge=Math.abs(s-F)<=i;o.done=ie&&ge}return o.value=o.done?s:F,o},toString:()=>{const _=Math.min(m$(R),Tp),F=oO(z=>R.next(_*z).value,_,30);return _+"ms "+F},toTransition:()=>{}};return R}Pp.applyToOptions=e=>{const t=dae(e,100,Pp);return e.ease=t.ease,e.duration=Ja(t.duration),e.type="keyframes",e};function j1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:c,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=ie=>o!==void 0&&ie<o||c!==void 0&&ie>c,w=ie=>o===void 0?c:c===void 0||Math.abs(o-ie)<Math.abs(c-ie)?o:c;let x=n*t;const A=m+x,C=s===void 0?A:s(A);C!==A&&(x=C-m);const E=ie=>-x*Math.exp(-ie/r),S=ie=>C+E(ie),R=ie=>{const ge=E(ie),oe=S(ie);g.done=Math.abs(ge)<=d,g.value=g.done?C:oe};let _,F;const z=ie=>{b(g.value)&&(_=ie,F=Pp({keyframes:[g.value,w(g.value)],velocity:uO(S,ie,g.value),damping:i,stiffness:a,restDelta:d,restSpeed:h}))};return z(0),{calculatedDuration:null,next:ie=>{let ge=!1;return!F&&_===void 0&&(ge=!0,R(ie),z(ie)),_!==void 0&&ie>=_?F.next(ie-_):(!ge&&R(ie),g)}}}const lO=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};function $ae(e,t,n){const r=[],i=n||Ks.mix||sO,a=e.length-1;for(let s=0;s<a;s++){let o=i(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||uc:t;o=Dm(c,o)}r.push(o)}return r}function xae(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Au(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=$ae(t,r,i),c=o.length,d=h=>{if(s&&h<e[0])return t[0];let m=0;if(c>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=lO(e[m],e[m+1],h);return o[m](g)};return n?h=>d(Tu(e[0],e[a-1],h)):d}function wae(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=lO(0,t,r);e.push(Sm(n,1,i))}}function Cae(e){const t=[0];return wae(t,e.length-1),t}function Eae(e,t){return e.map(n=>n*t)}const cO=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Sae=1e-7,Dae=12;function Aae(e,t,n,r,i){let a,s,o=0;do s=t+(n-t)/2,a=cO(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>Sae&&++o<Dae);return s}function bd(e,t,n,r){if(e===t&&n===r)return uc;const i=a=>Aae(a,0,1,e,n);return a=>a===0||a===1?a:cO(i(a),t,r)}const Tae=bd(.42,0,1,1),Pae=bd(0,0,.58,1),fO=bd(.42,0,.58,1),_ae=e=>Array.isArray(e)&&typeof e[0]!="number",dO=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,hO=e=>t=>1-e(1-t),pO=bd(.33,1.53,.69,.99),g$=hO(pO),mO=dO(g$),gO=e=>(e*=2)<1?.5*g$(e):.5*(2-Math.pow(2,-10*(e-1))),v$=e=>1-Math.sin(Math.acos(e)),Mae=hO(v$),vO=dO(v$),yO=e=>Array.isArray(e)&&typeof e[0]=="number",TT={linear:uc,easeIn:Tae,easeInOut:fO,easeOut:Pae,circIn:v$,circInOut:vO,circOut:Mae,backIn:g$,backInOut:mO,backOut:pO,anticipate:gO},Fae=e=>typeof e=="string",PT=e=>{if(yO(e)){Au(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return bd(t,n,r,i)}else if(Fae(e))return Au(TT[e]!==void 0,`Invalid easing type '${e}'`),TT[e];return e};function Rae(e,t){return e.map(()=>t||fO).splice(0,e.length-1)}function Al({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=_ae(r)?r.map(PT):PT(r),a={done:!1,value:t[0]},s=Eae(n&&n.length===t.length?n:Cae(t),e),o=xae(s,t,{ease:Array.isArray(i)?i:Rae(t,i)});return{calculatedDuration:e,next:c=>(a.value=o(c),a.done=c>=e,a)}}const kae=e=>e!==null;function y$(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(kae),o=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!o||r===void 0?a[o]:r}const Oae={decay:j1,inertia:j1,tween:Al,keyframes:Al,spring:Pp};function bO(e){typeof e.type=="string"&&(e.type=Oae[e.type])}class b${constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Iae=e=>e/100;class $$ extends b${constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==zi.now()&&this.tick(zi.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;bO(t);const{type:n=Al,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=t;let{keyframes:o}=t;const c=n||Al;process.env.NODE_ENV!=="production"&&c!==Al&&Au(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`),c!==Al&&typeof o[0]!="number"&&(this.mixKeyframes=Dm(Iae,sO(o[0],o[1])),o=[0,100]);const d=c({...t,keyframes:o});a==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...o].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=m$(d));const{calculatedDuration:h}=d;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:h,repeat:m,repeatType:g,repeatDelay:b,type:w,onUpdate:x,finalKeyframe:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const C=this.currentTime-d*(this.playbackSpeed>=0?1:-1),E=this.playbackSpeed>=0?C<0:C>i;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let S=this.currentTime,R=r;if(m){const ie=Math.min(this.currentTime,i)/o;let ge=Math.floor(ie),oe=ie%1;!oe&&ie>=1&&(oe=1),oe===1&&ge--,ge=Math.min(ge,m+1),!!(ge%2)&&(g==="reverse"?(oe=1-oe,b&&(oe-=b/o)):g==="mirror"&&(R=s)),S=Tu(0,1,oe)*o}const _=E?{done:!1,value:h[0]}:R.next(S);a&&(_.value=a(_.value));let{done:F}=_;!E&&c!==null&&(F=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return z&&w!==j1&&(_.value=y$(h,this.options,A,this.speed)),x&&x(_.value),z&&this.finish(),_}then(t,n){return this.finished.then(t,n)}get duration(){return Ls(this.calculatedDuration)}get time(){return Ls(this.currentTime)}set time(t){var n;t=Ja(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(zi.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ls(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=fae,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(a=(i=this.options).onPlay)==null||a.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(zi.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Lae(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const hu=e=>e*180/Math.PI,K1=e=>{const t=hu(Math.atan2(e[1],e[0]));return U1(t)},Vae={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:K1,rotateZ:K1,skewX:e=>hu(Math.atan(e[1])),skewY:e=>hu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},U1=e=>(e=e%360,e<0&&(e+=360),e),_T=K1,MT=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),FT=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Bae={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:MT,scaleY:FT,scale:e=>(MT(e)+FT(e))/2,rotateX:e=>U1(hu(Math.atan2(e[6],e[5]))),rotateY:e=>U1(hu(Math.atan2(-e[2],e[0]))),rotateZ:_T,rotate:_T,skewX:e=>hu(Math.atan(e[4])),skewY:e=>hu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function q1(e){return e.includes("scale")?1:0}function z1(e,t){if(!e||e==="none")return q1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Bae,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Vae,i=o}if(!i)return q1(t);const a=r[t],s=i[1].split(",").map(jae);return typeof a=="function"?a(s):s[a]}const Nae=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return z1(n,t)};function jae(e){return parseFloat(e.trim())}const RT=e=>e===fc||e===Tt,Kae=new Set(["x","y","z"]),Uae=lc.filter(e=>!Kae.has(e));function qae(e){const t=[];return Uae.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const yu={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:(e,{transform:t})=>z1(t,"x"),y:(e,{transform:t})=>z1(t,"y")};yu.translateX=yu.x;yu.translateY=yu.y;const bu=new Set;let W1=!1,H1=!1,G1=!1;function $O(){if(H1){const e=Array.from(bu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=qae(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 o;(o=r.getValue(a))==null||o.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}H1=!1,W1=!1,bu.forEach(e=>e.complete(G1)),bu.clear()}function xO(){bu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(H1=!0)})}function zae(){G1=!0,xO(),$O(),G1=!1}class x${constructor(t,n,r,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(bu.add(this),W1||(W1=!0,$a.read(xO),$a.resolveKeyframes($O))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i==null?void 0:i.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const o=r.readValue(n,s);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}Lae(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),bu.delete(this)}cancel(){this.state==="scheduled"&&(bu.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Wae=e=>e.startsWith("--");function Hae(e,t,n){Wae(t)?e.style.setProperty(t,n):e.style[t]=n}function w$(e){let t;return()=>(t===void 0&&(t=e()),t)}const Gae=w$(()=>window.ScrollTimeline!==void 0),Yae={};function Zae(e,t){const n=w$(e);return()=>Yae[t]??n()}const wO=Zae(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),yf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,kT={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:yf([0,.65,.55,1]),circOut:yf([.55,0,1,.45]),backIn:yf([.31,.01,.66,-.59]),backOut:yf([.33,1.53,.69,.99])};function CO(e,t){if(e)return typeof e=="function"?wO()?oO(e,t):"ease-out":yO(e)?yf(e):Array.isArray(e)?e.map(n=>CO(n,t)||kT.easeOut):kT[e]}function Xae(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:c}={},d=void 0){const h={[t]:n};c&&(h.offset=c);const m=CO(o,i);Array.isArray(m)&&(h.easing=m);const g={delay:r,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return d&&(g.pseudoElement=d),e.animate(h,g)}function EO(e){return typeof e=="function"&&"applyToOptions"in e}function Jae({type:e,...t}){return EO(e)&&wO()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Qae extends b${constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:o,onComplete:c}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,Au(typeof t.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);const d=Jae(t);this.animation=Xae(n,r,i,d,a),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const h=y$(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(h):Hae(n,r,h),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Ls(Number(t))}get time(){return Ls(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ja(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Gae()?(this.animation.timeline=t,uc):n(this)}}const SO={anticipate:gO,backInOut:mO,circInOut:vO};function ese(e){return e in SO}function tse(e){typeof e.ease=="string"&&ese(e.ease)&&(e.ease=SO[e.ease])}const OT=10;class nse extends Qae{constructor(t){tse(t),bO(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new $$({...s,autoplay:!1}),c=Ja(this.finishedTime??this.time);n.setWithVelocity(o.sample(c-OT).value,o.sample(c).value,OT),o.stop()}}const IT=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(dc.test(e)||e==="0")&&!e.startsWith("url("));function rse(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 ise(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=IT(i,t),o=IT(a,t);return vd(s===o,`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||!o?!1:rse(e)||(n==="spring"||EO(n))&&r}const ase=new Set(["opacity","clipPath","filter","transform"]),sse=w$(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ose(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:s}=e;if(!kk((d=t==null?void 0:t.owner)==null?void 0:d.current))return!1;const{onUpdate:o,transformTemplate:c}=t.owner.getProps();return sse()&&n&&ase.has(n)&&(n!=="transform"||!c)&&!o&&!r&&i!=="mirror"&&a!==0&&s!=="inertia"}const use=40;class lse extends b${constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:o,name:c,motionValue:d,element:h,...m}){var w;super(),this.stop=()=>{var x,A;this._animation&&(this._animation.stop(),(x=this.stopTimeline)==null||x.call(this)),(A=this.keyframeResolver)==null||A.cancel()},this.createdAt=zi.now();const g={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,name:c,motionValue:d,element:h,...m},b=(h==null?void 0:h.KeyframeResolver)||x$;this.keyframeResolver=new b(o,(x,A,C)=>this.onKeyframesResolved(x,A,g,!C),c,d,h),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:s,velocity:o,delay:c,isHandoff:d,onUpdate:h}=r;this.resolvedAt=zi.now(),ise(t,a,s,o)||((Ks.instantAnimations||!c)&&(h==null||h(y$(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>use?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!d&&ose(g)?new nse({...g,element:g.motionValue.owner.current}):new $$(g);b.finished.then(()=>this.notifyFinished()).catch(uc),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),zae()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const cse=(e,t,n,r={},i,a)=>s=>{const o=Qk(r,e)||{},c=o.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Ja(c);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-d,onUpdate:g=>{t.set(g),o.onUpdate&&o.onUpdate(g)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:i};qie(o)||Object.assign(h,Uie(e,h)),h.duration&&(h.duration=Ja(h.duration)),h.repeatDelay&&(h.repeatDelay=Ja(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),(Ks.instantAnimations||Ks.skipAnimations)&&(m=!0,h.duration=0,h.delay=0),h.allowFlatten=!o.type&&!o.ease,m&&!a&&t.get()!==void 0){const g=Vie(h.keyframes,o);if(g!==void 0){$a.update(()=>{h.onUpdate(g),h.onComplete()});return}}return o.isSync?new $$(h):new lse(h)},DO=new Set(["width","height","top","left","right","bottom",...lc]);function fse({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function AO(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...o}=t;r&&(a=r);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in o){const m=e.getValue(h,e.latestValues[h]??null),g=o[h];if(g===void 0||d&&fse(d,h))continue;const b={delay:n,...Qk(a||{},h)},w=m.get();if(w!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===w&&!b.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const C=Iie(e);if(C){const E=window.MotionHandoffAnimation(C,h,$a);E!==null&&(b.startTime=E,x=!0)}}Oie(e,h),m.start(cse(h,m,g,e.shouldReduceMotion&&DO.has(h)?{type:!1}:b,e,x));const A=m.animation;A&&c.push(A)}return s&&Promise.all(c).then(()=>{$a.update(()=>{s&&Rie(e,s)})}),c}function Y1(e,t,n={}){var c;const r=Hf(e,t,n.type==="exit"?(c=e.presenceContext)==null?void 0:c.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(AO(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return dse(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[d,h]=o==="beforeChildren"?[a,s]:[s,a];return d().then(()=>h())}else return Promise.all([a(),s(n.delay)])}function dse(e,t,n=0,r=0,i=1,a){const s=[],o=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>o-d*r;return Array.from(e.variantChildren).sort(hse).forEach((d,h)=>{d.notify("AnimationStart",t),s.push(Y1(d,t,{...a,delay:n+c(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(s)}function hse(e,t){return e.sortNodePosition(t)}function pse(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>Y1(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=Y1(e,t,n);else{const i=typeof t=="function"?Hf(e,t,n.custom):t;r=Promise.all(AO(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function TO(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}const mse=r$.length;function PO(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?PO(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<mse;n++){const r=r$[n],i=e.props[r];(zf(i)||i===!1)&&(t[r]=i)}return t}const gse=[...n$].reverse(),vse=n$.length;function yse(e){return t=>Promise.all(t.map(({animation:n,options:r})=>pse(e,n,r)))}function bse(e){let t=yse(e),n=LT(),r=!0;const i=c=>(d,h)=>{var g;const m=Hf(e,h,c==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:w,...x}=m;d={...d,...x,...w}}return d};function a(c){t=c(e)}function s(c){const{props:d}=e,h=PO(e.parent)||{},m=[],g=new Set;let b={},w=1/0;for(let A=0;A<vse;A++){const C=gse[A],E=n[C],S=d[C]!==void 0?d[C]:h[C],R=zf(S),_=C===c?E.isActive:null;_===!1&&(w=A);let F=S===h[C]&&S!==d[C]&&R;if(F&&r&&e.manuallyAnimateOnMount&&(F=!1),E.protectedKeys={...b},!E.isActive&&_===null||!S&&!E.prevProp||Cm(S)||typeof S=="boolean")continue;const z=$se(E.prevProp,S);let ie=z||C===c&&E.isActive&&!F&&R||A>w&&R,ge=!1;const oe=Array.isArray(S)?S:[S];let O=oe.reduce(i(C),{});_===!1&&(O={});const{prevResolvedValues:we={}}=E,Se={...we,...O},U=k=>{ie=!0,g.has(k)&&(ge=!0,g.delete(k)),E.needsAnimating[k]=!0;const N=e.getValue(k);N&&(N.liveStyle=!1)};for(const k in Se){const N=O[k],te=we[k];if(b.hasOwnProperty(k))continue;let j=!1;L1(N)&&L1(te)?j=!TO(N,te):j=N!==te,j?N!=null?U(k):g.add(k):N!==void 0&&g.has(k)?U(k):E.protectedKeys[k]=!0}E.prevProp=S,E.prevResolvedValues=O,E.isActive&&(b={...b,...O}),r&&e.blockInitialAnimation&&(ie=!1),ie&&(!(F&&z)||ge)&&m.push(...oe.map(k=>({animation:k,options:{type:C}})))}if(g.size){const A={};if(typeof d.initial!="boolean"){const C=Hf(e,Array.isArray(d.initial)?d.initial[0]:d.initial);C&&C.transition&&(A.transition=C.transition)}g.forEach(C=>{const E=e.getBaseTarget(C),S=e.getValue(C);S&&(S.liveStyle=!0),A[C]=E??null}),m.push({animation:A})}let x=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(m):Promise.resolve()}function o(c,d){var m;if(n[c].isActive===d)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(g=>{var b;return(b=g.animationState)==null?void 0:b.setActive(c,d)}),n[c].isActive=d;const h=s(c);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>n,reset:()=>{n=LT(),r=!0}}}function $se(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!TO(t,e):!1}function tu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function LT(){return{animate:tu(!0),whileInView:tu(),whileHover:tu(),whileTap:tu(),whileDrag:tu(),whileFocus:tu(),exit:tu()}}class hc{constructor(t){this.isMounted=!1,this.node=t}update(){}}class xse extends hc{constructor(t){super(t),t.animationState||(t.animationState=bse(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Cm(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.call(this)}}let wse=0;class Cse extends hc{constructor(){super(...arguments),this.id=wse++}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,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Ese={animation:{Feature:xse},exit:{Feature:Cse}};function VT(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Sse=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function _O(e){return{point:{x:e.pageX,y:e.pageY}}}function Dse({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ase(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}}const BT=()=>({min:0,max:0}),MO=()=>({x:BT(),y:BT()});function Tse(e,t){return Dse(Ase(e.getBoundingClientRect(),t))}const Pse={y:!1};function _se(){return Pse.y}function Mse(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function FO(e,t){const n=Mse(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function NT(e){return!(e.pointerType==="touch"||_se())}function Fse(e,t,n={}){const[r,i,a]=FO(e,n),s=o=>{if(!NT(o))return;const{target:c}=o,d=t(c,o);if(typeof d!="function"||!c)return;const h=m=>{NT(m)&&(d(m),c.removeEventListener("pointerleave",h))};c.addEventListener("pointerleave",h,i)};return r.forEach(o=>{o.addEventListener("pointerenter",s,i)}),a}function jT(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&&$a.postRender(()=>a(t,_O(t)))}class Rse extends hc{mount(){const{current:t}=this.node;t&&(this.unmount=Fse(t,(n,r)=>(jT(this.node,r,"Start"),i=>jT(this.node,i,"End"))))}unmount(){}}class kse extends hc{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=Dm(VT(this.node.current,"focus",()=>this.onFocus()),VT(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const RO=(e,t)=>t?e===t?!0:RO(e,t.parentElement):!1,Ose=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ise(e){return Ose.has(e.tagName)||e.tabIndex!==-1}const Uh=new WeakSet;function KT(e){return t=>{t.key==="Enter"&&e(t)}}function ab(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Lse=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=KT(()=>{if(Uh.has(n))return;ab(n,"down");const i=KT(()=>{ab(n,"up")}),a=()=>ab(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)};function UT(e){return Sse(e)&&!0}function Vse(e,t,n={}){const[r,i,a]=FO(e,n),s=o=>{const c=o.currentTarget;if(!UT(o))return;Uh.add(c);const d=t(c,o),h=(b,w)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),Uh.has(c)&&Uh.delete(c),UT(b)&&typeof d=="function"&&d(b,{success:w})},m=b=>{h(b,c===window||c===document||n.useGlobalTarget||RO(c,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,i),kk(o)&&(o.addEventListener("focus",d=>Lse(d,i)),!Ise(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),a}function qT(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&$a.postRender(()=>a(t,_O(t)))}class Bse extends hc{mount(){const{current:t}=this.node;t&&(this.unmount=Vse(t,(n,r)=>(qT(this.node,r,"Start"),(i,{success:a})=>qT(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Z1=new WeakMap,sb=new WeakMap,Nse=e=>{const t=Z1.get(e.target);t&&t(e)},jse=e=>{e.forEach(Nse)};function Kse({root:e,...t}){const n=e||document;sb.has(n)||sb.set(n,{});const r=sb.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(jse,{root:e,...t})),r[i]}function Use(e,t,n){const r=Kse(t);return Z1.set(e,n),r.observe(e),()=>{Z1.delete(e),r.unobserve(e)}}const qse={some:0,all:1};class zse extends hc{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:qse[i]},o=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,a&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=d?h:m;g&&g(c)};return Use(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Wse(t,n))&&this.startObserver()}unmount(){}}function Wse({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Hse={inView:{Feature:zse},tap:{Feature:Bse},focus:{Feature:kse},hover:{Feature:Rse}},X1={current:null},kO={current:!1};function Gse(){if(kO.current=!0,!!Q3)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>X1.current=e.matches;e.addListener(t),t()}else X1.current=!1}const Yse=new WeakMap;function Zse(e,t,n){for(const r in t){const i=t[r],a=n[r];if(Nr(i))e.addValue(r,i);else if(Nr(a))e.addValue(r,Dp(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,Dp(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const OO=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),IO=e=>/^0[^.\s]+$/u.test(e),Xse={test:e=>e==="auto",parse:e=>e},LO=e=>t=>t.test(e),VO=[fc,Tt,Vl,uo,iie,rie,Xse],zT=e=>VO.find(LO(e)),Jse=[...VO,Sr,dc],Qse=e=>Jse.find(LO(e)),eoe=new Set(["brightness","contrast","saturate","opacity"]);function toe(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(d$)||[];if(!r)return e;const i=n.replace(r,"");let a=eoe.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const noe=/\b([a-z-]*)\(.*?\)/gu,J1={...dc,getAnimatableNone:e=>{const t=e.match(noe);return t?t.map(toe).join(" "):e}},roe={...s$,color:Sr,backgroundColor:Sr,outlineColor:Sr,fill:Sr,stroke:Sr,borderColor:Sr,borderTopColor:Sr,borderRightColor:Sr,borderBottomColor:Sr,borderLeftColor:Sr,filter:J1,WebkitFilter:J1},BO=e=>roe[e];function NO(e,t){let n=BO(e);return n!==J1&&(n=dc),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const WT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ioe{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=x$,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=zi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,$a.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!a,this.isControllingVariants=Em(n),this.isVariantNode=Lk(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const b=m[g];c[g]!==void 0&&Nr(b)&&b.set(c[g],!1)}}mount(t){this.current=t,Yse.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)),kO.current||Gse(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:X1.current,process.env.NODE_ENV!=="production"&&t$(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(){this.projection&&this.projection.unmount(),I1(this.notifyUpdate),I1(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=cc.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&$a.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):MO()}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<WT.length;r++){const i=WT[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=Zse(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=Dp(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(OO(r)||IO(r))?r=parseFloat(r):!Qse(r)&&dc.test(n)&&(r=NO(t,n)),this.setBaseTarget(t,Nr(r)?r.get():r)),Nr(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var a;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=c$(this.props,n,(a=this.presenceContext)==null?void 0:a.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Nr(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Xk),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}const aoe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function soe(e){const t=aoe.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const ooe=4;function jO(e,t,n=1){Au(n<=ooe,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=soe(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return OO(s)?parseFloat(s):s}return a$(i)?jO(i,t,n+1):i}function uoe(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||IO(e):!0}const loe=new Set(["auto","none","0"]);function coe(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!loe.has(a)&&Gf(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=NO(n,i)}class foe extends x${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 c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),a$(d))){const h=jO(d,n.current);h!==void 0&&(t[c]=h),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!DO.has(r)||t.length!==2)return;const[i,a]=t,s=zT(i),o=zT(a);if(s!==o)if(RT(s)&&RT(o))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else yu[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||uoe(t[i]))&&r.push(i);r.length&&coe(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=yu[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 o;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const a=r.length-1,s=r[a];r[a]=yu[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(o=this.removedTransforms)!=null&&o.length&&this.removedTransforms.forEach(([c,d])=>{t.getValue(c).set(d)}),this.resolveNoneKeyframes()}}class KO extends ioe{constructor(){super(...arguments),this.KeyframeResolver=foe}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;Nr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function UO(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])}function doe(e){return window.getComputedStyle(e)}class hoe extends KO{constructor(){super(...arguments),this.type="html",this.renderInstance=UO}readValueFromInstance(t,n){var r;if(cc.has(n))return(r=this.projection)!=null&&r.isProjecting?q1(n):Nae(t,n);{const i=doe(t),a=(Kk(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Tse(t,n)}build(t,n,r){o$(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return f$(t,n,r)}}const qO=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 poe(e,t,n,r){UO(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(qO.has(i)?i:i$(i),t.attrs[i])}class moe extends KO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=MO}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(cc.has(n)){const r=BO(n);return r&&r.default||0}return n=qO.has(n)?n:i$(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Zk(t,n,r)}build(t,n,r){Wk(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){poe(t,n,r,i)}mount(t){this.isSVGTag=Gk(t.tagName),super.mount(t)}}const goe=(e,t)=>l$(e)?new moe(t):new hoe(t,{allowProjection:e!==I.Fragment}),voe={renderer:goe,...Ese,...Hse},yoe=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),zO=e=>Array.isArray(e)&&e.every(t=>typeof t=="object"&&!(t instanceof Array)),boe=e=>Array.isArray(e)&&e.every(t=>Array.isArray(t)),$oe=e=>Array.from(e.map(t=>Object.keys(t)).reduce((t,n)=>new Set([...t,...n]),[])),xoe=(e,t)=>{t=t||$oe(e);let n=t,r=t;zO(t)&&(n=t.map(a=>a.label),r=t.map(a=>a.key));const i=e.map(a=>r.map(s=>woe(s,a)));return[n,...i]},woe=(e,t)=>{const n=e.replace(/\[([^\]]+)]/g,".$1").split(".").reduce(function(r,i,a,s){const o=r[i];if(o==null)s.splice(1);else return o},t);return n===void 0?e in t?t[e]:"":n},Coe=e=>typeof e>"u"||e===null?"":e,WO=(e,t=",",n='"')=>e.filter(r=>r).map(r=>r.map(i=>Coe(i)).map(i=>`${n}${i}${n}`).join(t)).join(`
|
|
86
|
-
`),Eoe=(e,t,n,r)=>WO(t?[t,...e]:e,n,r),Soe=(e,t,n,r)=>WO(xoe(e,t),n,r),Doe=(e,t,n,r)=>t?`${t.join(n)}
|
|
87
|
-
${e}`:e.replace(/"/g,'""'),HO=(e,t,n,r)=>{if(zO(e))return Soe(e,t,n,r);if(boe(e))return Eoe(e,t,n,r);if(typeof e=="string")return Doe(e,t,n);throw new TypeError('Data should be a "String", "Array of arrays" OR "Array of objects" ')},GO=(e,t,n,r,i)=>{const a=HO(e,n,r,i),s=yoe()?"application/csv":"text/csv",o=new Blob([t?"\uFEFF":"",a],{type:s}),c=`data:${s};charset=utf-8,${t?"\uFEFF":""}${a}`,d=window.URL||window.webkitURL;return typeof d.createObjectURL>"u"?c:d.createObjectURL(o)};var xh={exports:{}},wh={exports:{}},sn={};/** @license React v16.13.1
|
|
88
|
-
* react-is.production.min.js
|
|
89
|
-
*
|
|
90
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
91
|
-
*
|
|
92
|
-
* This source code is licensed under the MIT license found in the
|
|
93
|
-
* LICENSE file in the root directory of this source tree.
|
|
94
|
-
*/var HT;function Aoe(){if(HT)return sn;HT=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,o=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function S(_){if(typeof _=="object"&&_!==null){var F=_.$$typeof;switch(F){case t:switch(_=_.type,_){case c:case d:case r:case a:case i:case m:return _;default:switch(_=_&&_.$$typeof,_){case o:case h:case w:case b:case s:return _;default:return F}}case n:return F}}}function R(_){return S(_)===d}return sn.AsyncMode=c,sn.ConcurrentMode=d,sn.ContextConsumer=o,sn.ContextProvider=s,sn.Element=t,sn.ForwardRef=h,sn.Fragment=r,sn.Lazy=w,sn.Memo=b,sn.Portal=n,sn.Profiler=a,sn.StrictMode=i,sn.Suspense=m,sn.isAsyncMode=function(_){return R(_)||S(_)===c},sn.isConcurrentMode=R,sn.isContextConsumer=function(_){return S(_)===o},sn.isContextProvider=function(_){return S(_)===s},sn.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},sn.isForwardRef=function(_){return S(_)===h},sn.isFragment=function(_){return S(_)===r},sn.isLazy=function(_){return S(_)===w},sn.isMemo=function(_){return S(_)===b},sn.isPortal=function(_){return S(_)===n},sn.isProfiler=function(_){return S(_)===a},sn.isStrictMode=function(_){return S(_)===i},sn.isSuspense=function(_){return S(_)===m},sn.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===d||_===a||_===i||_===m||_===g||typeof _=="object"&&_!==null&&(_.$$typeof===w||_.$$typeof===b||_.$$typeof===s||_.$$typeof===o||_.$$typeof===h||_.$$typeof===A||_.$$typeof===C||_.$$typeof===E||_.$$typeof===x)},sn.typeOf=S,sn}var on={};/** @license React v16.13.1
|
|
95
|
-
* react-is.development.js
|
|
96
|
-
*
|
|
97
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
98
|
-
*
|
|
99
|
-
* This source code is licensed under the MIT license found in the
|
|
100
|
-
* LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/var GT;function Toe(){return GT||(GT=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,o=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function S(Te){return typeof Te=="string"||typeof Te=="function"||Te===r||Te===d||Te===a||Te===i||Te===m||Te===g||typeof Te=="object"&&Te!==null&&(Te.$$typeof===w||Te.$$typeof===b||Te.$$typeof===s||Te.$$typeof===o||Te.$$typeof===h||Te.$$typeof===A||Te.$$typeof===C||Te.$$typeof===E||Te.$$typeof===x)}function R(Te){if(typeof Te=="object"&&Te!==null){var He=Te.$$typeof;switch(He){case t:var ht=Te.type;switch(ht){case c:case d:case r:case a:case i:case m:return ht;default:var Ht=ht&&ht.$$typeof;switch(Ht){case o:case h:case w:case b:case s:return Ht;default:return He}}case n:return He}}}var _=c,F=d,z=o,ie=s,ge=t,oe=h,O=r,we=w,Se=b,U=n,ee=a,K=i,k=m,N=!1;function te(Te){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(Te)||R(Te)===c}function j(Te){return R(Te)===d}function ce(Te){return R(Te)===o}function ue(Te){return R(Te)===s}function Ae(Te){return typeof Te=="object"&&Te!==null&&Te.$$typeof===t}function _e(Te){return R(Te)===h}function Le(Te){return R(Te)===r}function Ye(Te){return R(Te)===w}function Qe(Te){return R(Te)===b}function Ue(Te){return R(Te)===n}function Ge(Te){return R(Te)===a}function Ie(Te){return R(Te)===i}function Ne(Te){return R(Te)===m}on.AsyncMode=_,on.ConcurrentMode=F,on.ContextConsumer=z,on.ContextProvider=ie,on.Element=ge,on.ForwardRef=oe,on.Fragment=O,on.Lazy=we,on.Memo=Se,on.Portal=U,on.Profiler=ee,on.StrictMode=K,on.Suspense=k,on.isAsyncMode=te,on.isConcurrentMode=j,on.isContextConsumer=ce,on.isContextProvider=ue,on.isElement=Ae,on.isForwardRef=_e,on.isFragment=Le,on.isLazy=Ye,on.isMemo=Qe,on.isPortal=Ue,on.isProfiler=Ge,on.isStrictMode=Ie,on.isSuspense=Ne,on.isValidElementType=S,on.typeOf=R}()),on}var YT;function YO(){return YT||(YT=1,process.env.NODE_ENV==="production"?wh.exports=Aoe():wh.exports=Toe()),wh.exports}/*
|
|
102
|
-
object-assign
|
|
103
|
-
(c) Sindre Sorhus
|
|
104
|
-
@license MIT
|
|
105
|
-
*/var ob,ZT;function Poe(){if(ZT)return ob;ZT=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={},o=0;o<10;o++)s["_"+String.fromCharCode(o)]=o;var c=Object.getOwnPropertyNames(s).map(function(h){return s[h]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ob=i()?Object.assign:function(a,s){for(var o,c=r(a),d,h=1;h<arguments.length;h++){o=Object(arguments[h]);for(var m in o)t.call(o,m)&&(c[m]=o[m]);if(e){d=e(o);for(var g=0;g<d.length;g++)n.call(o,d[g])&&(c[d[g]]=o[d[g]])}}return c},ob}var ub,XT;function C$(){if(XT)return ub;XT=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ub=e,ub}var lb,JT;function ZO(){return JT||(JT=1,lb=Function.call.bind(Object.prototype.hasOwnProperty)),lb}var cb,QT;function _oe(){if(QT)return cb;QT=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=C$(),n={},r=ZO();e=function(a){var s="Warning: "+a;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(a,s,o,c,d){if(process.env.NODE_ENV!=="production"){for(var h in a)if(r(a,h)){var m;try{if(typeof a[h]!="function"){var g=Error((c||"React class")+": "+o+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}m=a[h](s,h,c,o,null,t)}catch(w){m=w}if(m&&!(m instanceof Error)&&e((c||"React class")+": type specification of "+o+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var b=d?d():"";e("Failed "+o+" type: "+m.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},cb=i,cb}var fb,e2;function Moe(){if(e2)return fb;e2=1;var e=YO(),t=Poe(),n=C$(),r=ZO(),i=_oe(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(o){var c="Warning: "+o;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return fb=function(o,c){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(j){var ce=j&&(d&&j[d]||j[h]);if(typeof ce=="function")return ce}var g="<<anonymous>>",b={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:E(),arrayOf:S,element:R(),elementType:_(),instanceOf:F,node:oe(),objectOf:ie,oneOf:z,oneOfType:ge,shape:we,exact:Se};function w(j,ce){return j===ce?j!==0||1/j===1/ce:j!==j&&ce!==ce}function x(j,ce){this.message=j,this.data=ce&&typeof ce=="object"?ce:{},this.stack=""}x.prototype=Error.prototype;function A(j){if(process.env.NODE_ENV!=="production")var ce={},ue=0;function Ae(Le,Ye,Qe,Ue,Ge,Ie,Ne){if(Ue=Ue||g,Ie=Ie||Qe,Ne!==n){if(c){var Te=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 Te.name="Invariant Violation",Te}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var He=Ue+":"+Qe;!ce[He]&&ue<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Ie+"` prop on `"+Ue+"`. 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."),ce[He]=!0,ue++)}}return Ye[Qe]==null?Le?Ye[Qe]===null?new x("The "+Ge+" `"+Ie+"` is marked as required "+("in `"+Ue+"`, but its value is `null`.")):new x("The "+Ge+" `"+Ie+"` is marked as required in "+("`"+Ue+"`, but its value is `undefined`.")):null:j(Ye,Qe,Ue,Ge,Ie)}var _e=Ae.bind(null,!1);return _e.isRequired=Ae.bind(null,!0),_e}function C(j){function ce(ue,Ae,_e,Le,Ye,Qe){var Ue=ue[Ae],Ge=K(Ue);if(Ge!==j){var Ie=k(Ue);return new x("Invalid "+Le+" `"+Ye+"` of type "+("`"+Ie+"` supplied to `"+_e+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return A(ce)}function E(){return A(s)}function S(j){function ce(ue,Ae,_e,Le,Ye){if(typeof j!="function")return new x("Property `"+Ye+"` of component `"+_e+"` has invalid PropType notation inside arrayOf.");var Qe=ue[Ae];if(!Array.isArray(Qe)){var Ue=K(Qe);return new x("Invalid "+Le+" `"+Ye+"` of type "+("`"+Ue+"` supplied to `"+_e+"`, expected an array."))}for(var Ge=0;Ge<Qe.length;Ge++){var Ie=j(Qe,Ge,_e,Le,Ye+"["+Ge+"]",n);if(Ie instanceof Error)return Ie}return null}return A(ce)}function R(){function j(ce,ue,Ae,_e,Le){var Ye=ce[ue];if(!o(Ye)){var Qe=K(Ye);return new x("Invalid "+_e+" `"+Le+"` of type "+("`"+Qe+"` supplied to `"+Ae+"`, expected a single ReactElement."))}return null}return A(j)}function _(){function j(ce,ue,Ae,_e,Le){var Ye=ce[ue];if(!e.isValidElementType(Ye)){var Qe=K(Ye);return new x("Invalid "+_e+" `"+Le+"` of type "+("`"+Qe+"` supplied to `"+Ae+"`, expected a single ReactElement type."))}return null}return A(j)}function F(j){function ce(ue,Ae,_e,Le,Ye){if(!(ue[Ae]instanceof j)){var Qe=j.name||g,Ue=te(ue[Ae]);return new x("Invalid "+Le+" `"+Ye+"` of type "+("`"+Ue+"` supplied to `"+_e+"`, expected ")+("instance of `"+Qe+"`."))}return null}return A(ce)}function z(j){if(!Array.isArray(j))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 ce(ue,Ae,_e,Le,Ye){for(var Qe=ue[Ae],Ue=0;Ue<j.length;Ue++)if(w(Qe,j[Ue]))return null;var Ge=JSON.stringify(j,function(Ne,Te){var He=k(Te);return He==="symbol"?String(Te):Te});return new x("Invalid "+Le+" `"+Ye+"` of value `"+String(Qe)+"` "+("supplied to `"+_e+"`, expected one of "+Ge+"."))}return A(ce)}function ie(j){function ce(ue,Ae,_e,Le,Ye){if(typeof j!="function")return new x("Property `"+Ye+"` of component `"+_e+"` has invalid PropType notation inside objectOf.");var Qe=ue[Ae],Ue=K(Qe);if(Ue!=="object")return new x("Invalid "+Le+" `"+Ye+"` of type "+("`"+Ue+"` supplied to `"+_e+"`, expected an object."));for(var Ge in Qe)if(r(Qe,Ge)){var Ie=j(Qe,Ge,_e,Le,Ye+"."+Ge,n);if(Ie instanceof Error)return Ie}return null}return A(ce)}function ge(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var ce=0;ce<j.length;ce++){var ue=j[ce];if(typeof ue!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+N(ue)+" at index "+ce+"."),s}function Ae(_e,Le,Ye,Qe,Ue){for(var Ge=[],Ie=0;Ie<j.length;Ie++){var Ne=j[Ie],Te=Ne(_e,Le,Ye,Qe,Ue,n);if(Te==null)return null;Te.data&&r(Te.data,"expectedType")&&Ge.push(Te.data.expectedType)}var He=Ge.length>0?", expected one of type ["+Ge.join(", ")+"]":"";return new x("Invalid "+Qe+" `"+Ue+"` supplied to "+("`"+Ye+"`"+He+"."))}return A(Ae)}function oe(){function j(ce,ue,Ae,_e,Le){return U(ce[ue])?null:new x("Invalid "+_e+" `"+Le+"` supplied to "+("`"+Ae+"`, expected a ReactNode."))}return A(j)}function O(j,ce,ue,Ae,_e){return new x((j||"React class")+": "+ce+" type `"+ue+"."+Ae+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+_e+"`.")}function we(j){function ce(ue,Ae,_e,Le,Ye){var Qe=ue[Ae],Ue=K(Qe);if(Ue!=="object")return new x("Invalid "+Le+" `"+Ye+"` of type `"+Ue+"` "+("supplied to `"+_e+"`, expected `object`."));for(var Ge in j){var Ie=j[Ge];if(typeof Ie!="function")return O(_e,Le,Ye,Ge,k(Ie));var Ne=Ie(Qe,Ge,_e,Le,Ye+"."+Ge,n);if(Ne)return Ne}return null}return A(ce)}function Se(j){function ce(ue,Ae,_e,Le,Ye){var Qe=ue[Ae],Ue=K(Qe);if(Ue!=="object")return new x("Invalid "+Le+" `"+Ye+"` of type `"+Ue+"` "+("supplied to `"+_e+"`, expected `object`."));var Ge=t({},ue[Ae],j);for(var Ie in Ge){var Ne=j[Ie];if(r(j,Ie)&&typeof Ne!="function")return O(_e,Le,Ye,Ie,k(Ne));if(!Ne)return new x("Invalid "+Le+" `"+Ye+"` key `"+Ie+"` supplied to `"+_e+"`.\nBad object: "+JSON.stringify(ue[Ae],null," ")+`
|
|
106
|
-
Valid keys: `+JSON.stringify(Object.keys(j),null," "));var Te=Ne(Qe,Ie,_e,Le,Ye+"."+Ie,n);if(Te)return Te}return null}return A(ce)}function U(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(U);if(j===null||o(j))return!0;var ce=m(j);if(ce){var ue=ce.call(j),Ae;if(ce!==j.entries){for(;!(Ae=ue.next()).done;)if(!U(Ae.value))return!1}else for(;!(Ae=ue.next()).done;){var _e=Ae.value;if(_e&&!U(_e[1]))return!1}}else return!1;return!0;default:return!1}}function ee(j,ce){return j==="symbol"?!0:ce?ce["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ce instanceof Symbol:!1}function K(j){var ce=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":ee(ce,j)?"symbol":ce}function k(j){if(typeof j>"u"||j===null)return""+j;var ce=K(j);if(ce==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return ce}function N(j){var ce=k(j);switch(ce){case"array":case"object":return"an "+ce;case"boolean":case"date":case"regexp":return"a "+ce;default:return ce}}function te(j){return!j.constructor||!j.constructor.name?g:j.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},fb}var db,t2;function Foe(){if(t2)return db;t2=1;var e=C$();function t(){}function n(){}return n.resetWarningCache=t,db=function(){function r(s,o,c,d,h,m){if(m!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var 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},db}var n2;function Roe(){if(n2)return xh.exports;if(n2=1,process.env.NODE_ENV!=="production"){var e=YO(),t=!0;xh.exports=Moe()(e.isElement,t)}else xh.exports=Foe()();return xh.exports}var bi=Roe();const rt=yr(bi),XO={data:bi.oneOfType([bi.string,bi.array,bi.func]).isRequired,headers:bi.array,target:bi.string,separator:bi.string,filename:bi.string,uFEFF:bi.bool,onClick:bi.func,asyncOnClick:bi.bool,enclosingCharacter:bi.string},JO={separator:",",filename:"generatedBy_react-csv.csv",uFEFF:!0,asyncOnClick:!1,enclosingCharacter:'"'},koe={target:"_blank"};class r2 extends fe.default.Component{constructor(t){super(t),this.state={}}buildURI(){return GO(...arguments)}componentDidMount(){const{data:t,headers:n,separator:r,enclosingCharacter:i,uFEFF:a,target:s,specs:o,replace:c}=this.props;this.state.page=window.open(this.buildURI(t,a,n,r,i),s,o,c)}getWindow(){return this.state.page}render(){return null}}zc(r2,"defaultProps",Object.assign(JO,koe)),zc(r2,"propTypes",XO);var Eh;let Ooe=(Eh=class extends fe.default.Component{constructor(t){super(t),this.buildURI=this.buildURI.bind(this)}buildURI(){return GO(...arguments)}handleLegacy(t,n=!1){if(window.navigator.msSaveOrOpenBlob){t.preventDefault();const{data:r,headers:i,separator:a,filename:s,enclosingCharacter:o,uFEFF:c}=this.props,d=n&&typeof r=="function"?r():r;let h=new Blob([c?"\uFEFF":"",HO(d,i,a,o)]);return window.navigator.msSaveBlob(h,s),!1}}handleAsyncClick(t){const n=r=>{if(r===!1){t.preventDefault();return}this.handleLegacy(t,!0)};this.props.onClick(t,n)}handleSyncClick(t){if(this.props.onClick(t)===!1){t.preventDefault();return}this.handleLegacy(t)}handleClick(){return t=>{if(typeof this.props.onClick=="function")return this.props.asyncOnClick?this.handleAsyncClick(t):this.handleSyncClick(t);this.handleLegacy(t)}}render(){const{data:t,headers:n,separator:r,filename:i,uFEFF:a,children:s,onClick:o,asyncOnClick:c,enclosingCharacter:d,...h}=this.props,g=typeof window>"u"?"":this.buildURI(t,a,n,r,d);return Qa.jsx("a",{download:i,...h,ref:b=>this.link=b,target:"_self",href:g,onClick:this.handleClick(),children:s})}},zc(Eh,"defaultProps",JO),zc(Eh,"propTypes",XO),Eh);const Ioe=Ooe;var hb,i2;function Loe(){if(i2)return hb;i2=1;function e(t){return t==null}return hb=e,hb}var Voe=Loe();const Boe=yr(Voe);/**
|
|
107
|
-
* react-table
|
|
108
|
-
*
|
|
109
|
-
* Copyright (c) TanStack
|
|
110
|
-
*
|
|
111
|
-
* This source code is licensed under the MIT license found in the
|
|
112
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
113
|
-
*
|
|
114
|
-
* @license MIT
|
|
115
|
-
*/function Noe(e,t){return e?joe(e)?fe.createElement(e,t):e:null}function joe(e){return Koe(e)||typeof e=="function"||Uoe(e)}function Koe(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Uoe(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}var pb,a2;function qoe(){if(a2)return pb;a2=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i&&n(t[r],r,t)!==!1;);return t}return pb=e,pb}var mb,s2;function zoe(){if(s2)return mb;s2=1;var e=Mu(),t=Object.create,n=function(){function r(){}return function(i){if(!e(i))return{};if(t)return t(i);r.prototype=i;var a=new r;return r.prototype=void 0,a}}();return mb=n,mb}var gb,o2;function Woe(){if(o2)return gb;o2=1;var e=RP(),t=e(Object.getPrototypeOf,Object);return gb=t,gb}var vb,u2;function Hoe(){if(u2)return vb;u2=1;var e=qoe(),t=zoe(),n=BP(),r=VP(),i=Woe(),a=ts(),s=S4(),o=w4(),c=Mu(),d=T4();function h(m,g,b){var w=a(m),x=w||s(m)||d(m);if(g=r(g,4),b==null){var A=m&&m.constructor;x?b=w?new A:[]:c(m)?b=o(A)?t(i(m)):{}:b={}}return(x?e:n)(m,function(C,E,S){return g(b,C,E,S)}),b}return vb=h,vb}var Goe=Hoe();const Yoe=yr(Goe);function QO(e){return t=>typeof t===e}var Zoe=QO("function"),Xoe=e=>e===null,l2=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",c2=e=>!Joe(e)&&!Xoe(e)&&(Zoe(e)||typeof e=="object"),Joe=QO("undefined");function Qoe(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!jr(e[r],t[r]))return!1;return!0}function eue(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 tue(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(!jr(n[1],t.get(n[0])))return!1;return!0}function nue(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 jr(e,t){if(e===t)return!0;if(e&&c2(e)&&t&&c2(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Qoe(e,t);if(e instanceof Map&&t instanceof Map)return tue(e,t);if(e instanceof Set&&t instanceof Set)return nue(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return eue(e,t);if(l2(e)&&l2(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)&&!jr(e[a],t[a]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var rue=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],iue=["bigint","boolean","null","number","string","symbol","undefined"];function Am(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(aue(t))return t}function wa(e){return t=>Am(t)===e}function aue(e){return rue.includes(e)}function pc(e){return t=>typeof t===e}function sue(e){return iue.includes(e)}var oue=["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=Am(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=>Am(e)==="AsyncGeneratorFunction";ut.asyncFunction=wa("AsyncFunction");ut.bigint=pc("bigint");ut.boolean=e=>e===!0||e===!1;ut.date=wa("Date");ut.defined=e=>!ut.undefined(e);ut.domElement=e=>ut.object(e)&&!ut.plainObject(e)&&e.nodeType===1&&ut.string(e.nodeName)&&oue.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=wa("Error");ut.function=pc("function");ut.generator=e=>ut.iterable(e)&&ut.function(e.next)&&ut.function(e.throw);ut.generatorFunction=wa("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=wa("Map");ut.nan=e=>Number.isNaN(e);ut.null=e=>e===null;ut.nullOrUndefined=e=>ut.null(e)||ut.undefined(e);ut.number=e=>pc("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=wa("Function");ut.plainObject=e=>{if(Am(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ut.primitive=e=>ut.null(e)||sue(typeof e);ut.promise=wa("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=wa("RegExp");ut.set=wa("Set");ut.string=pc("string");ut.symbol=pc("symbol");ut.undefined=pc("undefined");ut.weakMap=wa("WeakMap");ut.weakSet=wa("WeakSet");var dt=ut;function uue(...e){return e.every(t=>dt.string(t)||dt.array(t)||dt.plainObject(t))}function lue(e,t,n){return eI(e,t)?[e,t].every(dt.array)?!e.some(m2(n))&&t.some(m2(n)):[e,t].every(dt.plainObject)?!Object.entries(e).some(p2(n))&&Object.entries(t).some(p2(n)):t===n:!1}function f2(e,t,n){const{actual:r,key:i,previous:a,type:s}=n,o=Ha(e,i),c=Ha(t,i);let d=[o,c].every(dt.number)&&(s==="increased"?o<c:o>c);return dt.undefined(r)||(d=d&&c===r),dt.undefined(a)||(d=d&&o===a),d}function d2(e,t,n){const{key:r,type:i,value:a}=n,s=Ha(e,r),o=Ha(t,r),c=i==="added"?s:o,d=i==="added"?o:s;if(!dt.nullOrUndefined(a)){if(dt.defined(c)){if(dt.array(c)||dt.plainObject(c))return lue(c,d,a)}else return jr(d,a);return!1}return[s,o].every(dt.array)?!d.every(E$(c)):[s,o].every(dt.plainObject)?cue(Object.keys(c),Object.keys(d)):![s,o].every(h=>dt.primitive(h)&&dt.defined(h))&&(i==="added"?!dt.defined(s)&&dt.defined(o):dt.defined(s)&&!dt.defined(o))}function h2(e,t,{key:n}={}){let r=Ha(e,n),i=Ha(t,n);if(!eI(r,i))throw new TypeError("Inputs have different types");if(!uue(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(dt.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function p2(e){return([t,n])=>dt.array(e)?jr(e,n)||e.some(r=>jr(r,n)||dt.array(n)&&E$(n)(r)):dt.plainObject(e)&&e[t]?!!e[t]&&jr(e[t],n):jr(e,n)}function cue(e,t){return t.some(n=>!e.includes(n))}function m2(e){return t=>dt.array(e)?e.some(n=>jr(n,t)||dt.array(t)&&E$(t)(n)):jr(e,t)}function tf(e,t){return dt.array(e)?e.some(n=>jr(n,t)):jr(e,t)}function E$(e){return t=>e.some(n=>jr(n,t))}function eI(...e){return e.every(dt.array)||e.every(dt.number)||e.every(dt.plainObject)||e.every(dt.string)}function Ha(e,t){return dt.plainObject(e)||dt.array(e)?dt.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):dt.number(t)?e[t]:e:e}function _p(e,t){if([e,t].some(dt.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(h=>dt.plainObject(h)||dt.array(h)))throw new Error("Expected plain objects or array");return{added:(h,m)=>{try{return d2(e,t,{key:h,type:"added",value:m})}catch{return!1}},changed:(h,m,g)=>{try{const b=Ha(e,h),w=Ha(t,h),x=dt.defined(m),A=dt.defined(g);if(x||A){const C=A?tf(g,b):!tf(m,b),E=tf(m,w);return C&&E}return[b,w].every(dt.array)||[b,w].every(dt.plainObject)?!jr(b,w):b!==w}catch{return!1}},changedFrom:(h,m,g)=>{if(!dt.defined(h))return!1;try{const b=Ha(e,h),w=Ha(t,h),x=dt.defined(g);return tf(m,b)&&(x?tf(g,w):!x)}catch{return!1}},decreased:(h,m,g)=>{if(!dt.defined(h))return!1;try{return f2(e,t,{key:h,actual:m,previous:g,type:"decreased"})}catch{return!1}},emptied:h=>{try{const[m,g]=h2(e,t,{key:h});return!!m.length&&!g.length}catch{return!1}},filled:h=>{try{const[m,g]=h2(e,t,{key:h});return!m.length&&!!g.length}catch{return!1}},increased:(h,m,g)=>{if(!dt.defined(h))return!1;try{return f2(e,t,{key:h,actual:m,previous:g,type:"increased"})}catch{return!1}},removed:(h,m)=>{try{return d2(e,t,{key:h,type:"removed",value:m})}catch{return!1}}}}var yb,g2;function fue(){if(g2)return yb;g2=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;yb={left:i("scrollLeft"),top:i("scrollTop")};function i(o){return function(d,h,m,g){m=m||{},typeof m=="function"&&(g=m,m={}),typeof g!="function"&&(g=s);var b=r(),w=d[o],x=m.ease||a,A=isNaN(m.duration)?350:+m.duration,C=!1;return w===h?g(e,d[o]):requestAnimationFrame(S),E;function E(){C=!0}function S(R){if(C)return g(t,d[o]);var _=r(),F=n(1,(_-b)/A),z=x(F);d[o]=z*(h-w)+w,F<1?requestAnimationFrame(S):requestAnimationFrame(function(){g(null,d[o])})}}}function a(o){return .5*(1-Math.cos(Math.PI*o))}function s(){}return yb}var due=fue();const hue=yr(due);var qh={exports:{}},pue=qh.exports,v2;function mue(){return v2||(v2=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(pue,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})}(qh)),qh.exports}var gue=mue();const tI=yr(gue);var bb,y2;function vue(){if(y2)return bb;y2=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,bb=n,bb}var yue=vue();const b2=yr(yue);var $b,$2;function bue(){if($2)return $b;$2=1;var e=function(E){return t(E)&&!n(E)};function t(C){return!!C&&typeof C=="object"}function n(C){var E=Object.prototype.toString.call(C);return E==="[object RegExp]"||E==="[object Date]"||a(C)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function a(C){return C.$$typeof===i}function s(C){return Array.isArray(C)?[]:{}}function o(C,E){return E.clone!==!1&&E.isMergeableObject(C)?x(s(C),C,E):C}function c(C,E,S){return C.concat(E).map(function(R){return o(R,S)})}function d(C,E){if(!E.customMerge)return x;var S=E.customMerge(C);return typeof S=="function"?S:x}function h(C){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(C).filter(function(E){return Object.propertyIsEnumerable.call(C,E)}):[]}function m(C){return Object.keys(C).concat(h(C))}function g(C,E){try{return E in C}catch{return!1}}function b(C,E){return g(C,E)&&!(Object.hasOwnProperty.call(C,E)&&Object.propertyIsEnumerable.call(C,E))}function w(C,E,S){var R={};return S.isMergeableObject(C)&&m(C).forEach(function(_){R[_]=o(C[_],S)}),m(E).forEach(function(_){b(C,_)||(g(C,_)&&S.isMergeableObject(E[_])?R[_]=d(_,S)(C[_],E[_],S):R[_]=o(E[_],S))}),R}function x(C,E,S){S=S||{},S.arrayMerge=S.arrayMerge||c,S.isMergeableObject=S.isMergeableObject||e,S.cloneUnlessOtherwiseSpecified=o;var R=Array.isArray(E),_=Array.isArray(C),F=R===_;return F?R?S.arrayMerge(C,E,S):w(C,E,S):o(E,S)}x.all=function(E,S){if(!Array.isArray(E))throw new Error("first argument should be an array");return E.reduce(function(R,_){return x(R,_,S)},{})};var A=x;return $b=A,$b}var $ue=bue();const ma=yr($ue);/**!
|
|
116
|
-
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
117
|
-
* @version 1.16.1
|
|
118
|
-
* @license
|
|
119
|
-
* Copyright (c) 2016 Federico Zivolo and contributors
|
|
120
|
-
*
|
|
121
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
122
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
123
|
-
* in the Software without restriction, including without limitation the rights
|
|
124
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
125
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
126
|
-
* furnished to do so, subject to the following conditions:
|
|
127
|
-
*
|
|
128
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
129
|
-
* copies or substantial portions of the Software.
|
|
130
|
-
*
|
|
131
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
132
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
133
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
134
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
135
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
136
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
137
|
-
* SOFTWARE.
|
|
138
|
-
*/var $d=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",xue=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if($d&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function wue(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function Cue(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},xue))}}var Eue=$d&&window.Promise,Sue=Eue?wue:Cue;function nI(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function ku(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function S$(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function xd(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=ku(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:xd(S$(e))}function rI(e){return e&&e.referenceNode?e.referenceNode:e}var x2=$d&&!!(window.MSInputMethodContext&&document.documentMode),w2=$d&&/MSIE 10/.test(navigator.userAgent);function mc(e){return e===11?x2:e===10?w2:x2||w2}function Yl(e){if(!e)return document.documentElement;for(var t=mc(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&&ku(n,"position")==="static"?Yl(n):n}function Due(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||Yl(e.firstElementChild)===e}function Q1(e){return e.parentNode!==null?Q1(e.parentNode):e}function Mp(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 Due(s)?s:Yl(s);var o=Q1(e);return o.host?Mp(o.host,t):Mp(e,Q1(t).host)}function Zl(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 Aue(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Zl(t,"top"),i=Zl(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 C2(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 E2(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],mc(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function iI(e){var t=e.body,n=e.documentElement,r=mc(10)&&getComputedStyle(n);return{height:E2("Height",t,n,r),width:E2("Width",t,n,r)}}var Tue=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Pue=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}}(),Xl=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Wi=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 wo(e){return Wi({},e,{right:e.left+e.width,bottom:e.top+e.height})}function e4(e){var t={};try{if(mc(10)){t=e.getBoundingClientRect();var n=Zl(e,"top"),r=Zl(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"?iI(e.ownerDocument):{},s=a.width||e.clientWidth||i.width,o=a.height||e.clientHeight||i.height,c=e.offsetWidth-s,d=e.offsetHeight-o;if(c||d){var h=ku(e);c-=C2(h,"x"),d-=C2(h,"y"),i.width-=c,i.height-=d}return wo(i)}function D$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=mc(10),i=t.nodeName==="HTML",a=e4(e),s=e4(t),o=xd(e),c=ku(t),d=parseFloat(c.borderTopWidth),h=parseFloat(c.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var m=wo({top:a.top-s.top-d,left:a.left-s.left-h,width:a.width,height:a.height});if(m.marginTop=0,m.marginLeft=0,!r&&i){var g=parseFloat(c.marginTop),b=parseFloat(c.marginLeft);m.top-=d-g,m.bottom-=d-g,m.left-=h-b,m.right-=h-b,m.marginTop=g,m.marginLeft=b}return(r&&!n?t.contains(o):t===o&&o.nodeName!=="BODY")&&(m=Aue(m,t)),m}function _ue(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=D$(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:Zl(n),o=t?0:Zl(n,"left"),c={top:s-r.top+r.marginTop,left:o-r.left+r.marginLeft,width:i,height:a};return wo(c)}function aI(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(ku(e,"position")==="fixed")return!0;var n=S$(e);return n?aI(n):!1}function sI(e){if(!e||!e.parentElement||mc())return document.documentElement;for(var t=e.parentElement;t&&ku(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function A$(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},s=i?sI(e):Mp(e,rI(t));if(r==="viewport")a=_ue(s,i);else{var o=void 0;r==="scrollParent"?(o=xd(S$(t)),o.nodeName==="BODY"&&(o=e.ownerDocument.documentElement)):r==="window"?o=e.ownerDocument.documentElement:o=r;var c=D$(o,s,i);if(o.nodeName==="HTML"&&!aI(s)){var d=iI(e.ownerDocument),h=d.height,m=d.width;a.top+=c.top-c.marginTop,a.bottom=h+c.top,a.left+=c.left-c.marginLeft,a.right=m+c.left}else a=c}n=n||0;var g=typeof n=="number";return a.left+=g?n:n.left||0,a.top+=g?n:n.top||0,a.right-=g?n:n.right||0,a.bottom-=g?n:n.bottom||0,a}function Mue(e){var t=e.width,n=e.height;return t*n}function oI(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=A$(n,r,a,i),o={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}},c=Object.keys(o).map(function(g){return Wi({key:g},o[g],{area:Mue(o[g])})}).sort(function(g,b){return b.area-g.area}),d=c.filter(function(g){var b=g.width,w=g.height;return b>=n.clientWidth&&w>=n.clientHeight}),h=d.length>0?d[0].key:c[0].key,m=e.split("-")[1];return h+(m?"-"+m:"")}function uI(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?sI(t):Mp(t,rI(n));return D$(n,i,r)}function lI(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 Fp(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 cI(e,t,n){n=n.split("-")[0];var r=lI(e),i={width:r.width,height:r.height},a=["right","left"].indexOf(n)!==-1,s=a?"top":"left",o=a?"left":"top",c=a?"height":"width",d=a?"width":"height";return i[s]=t[s]+t[c]/2-r[c]/2,n===o?i[o]=t[o]-r[d]:i[o]=t[Fp(o)],i}function wd(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Fue(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=wd(e,function(i){return i[t]===n});return e.indexOf(r)}function fI(e,t,n){var r=n===void 0?e:e.slice(0,Fue(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&&nI(a)&&(t.offsets.popper=wo(t.offsets.popper),t.offsets.reference=wo(t.offsets.reference),t=a(t,i))}),t}function Rue(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=uI(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=oI(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=cI(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=fI(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function dI(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function T$(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 kue(){return this.state.isDestroyed=!0,dI(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[T$("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function hI(e){var t=e.ownerDocument;return t?t.defaultView:window}function pI(e,t,n,r){var i=e.nodeName==="BODY",a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),i||pI(xd(a.parentNode),t,n,r),r.push(a)}function Oue(e,t,n,r){n.updateBound=r,hI(e).addEventListener("resize",n.updateBound,{passive:!0});var i=xd(e);return pI(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Iue(){this.state.eventsEnabled||(this.state=Oue(this.reference,this.options,this.state,this.scheduleUpdate))}function Lue(e,t){return hI(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 Vue(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Lue(this.reference,this.state))}function P$(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function t4(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&P$(t[n])&&(r="px"),e.style[n]=t[n]+r})}function Bue(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function Nue(e){return t4(e.instance.popper,e.styles),Bue(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&t4(e.arrowElement,e.arrowStyles),e}function jue(e,t,n,r,i){var a=uI(i,t,e,n.positionFixed),s=oI(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),t4(t,{position:n.positionFixed?"fixed":"absolute"}),n}function Kue(e,t){var n=e.offsets,r=n.popper,i=n.reference,a=Math.round,s=Math.floor,o=function(C){return C},c=a(i.width),d=a(r.width),h=["left","right"].indexOf(e.placement)!==-1,m=e.placement.indexOf("-")!==-1,g=c%2===d%2,b=c%2===1&&d%2===1,w=t?h||m||g?a:s:o,x=t?a:o;return{left:w(b&&!m&&t?r.left-1:r.left),top:x(r.top),bottom:x(r.bottom),right:w(r.right)}}var Uue=$d&&/Firefox/i.test(navigator.userAgent);function que(e,t){var n=t.x,r=t.y,i=e.offsets.popper,a=wd(e.instance.modifiers,function(S){return S.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,o=Yl(e.instance.popper),c=e4(o),d={position:i.position},h=Kue(e,window.devicePixelRatio<2||!Uue),m=n==="bottom"?"top":"bottom",g=r==="right"?"left":"right",b=T$("transform"),w=void 0,x=void 0;if(m==="bottom"?o.nodeName==="HTML"?x=-o.clientHeight+h.bottom:x=-c.height+h.bottom:x=h.top,g==="right"?o.nodeName==="HTML"?w=-o.clientWidth+h.right:w=-c.width+h.right:w=h.left,s&&b)d[b]="translate3d("+w+"px, "+x+"px, 0)",d[m]=0,d[g]=0,d.willChange="transform";else{var A=m==="bottom"?-1:1,C=g==="right"?-1:1;d[m]=x*A,d[g]=w*C,d.willChange=m+", "+g}var E={"x-placement":e.placement};return e.attributes=Wi({},E,e.attributes),e.styles=Wi({},d,e.styles),e.arrowStyles=Wi({},e.offsets.arrow,e.arrowStyles),e}function mI(e,t,n){var r=wd(e,function(o){var c=o.name;return c===t}),i=!!r&&e.some(function(o){return o.name===n&&o.enabled&&o.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 zue(e,t){var n;if(!mI(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,o=a.reference,c=["left","right"].indexOf(i)!==-1,d=c?"height":"width",h=c?"Top":"Left",m=h.toLowerCase(),g=c?"left":"top",b=c?"bottom":"right",w=lI(r)[d];o[b]-w<s[m]&&(e.offsets.popper[m]-=s[m]-(o[b]-w)),o[m]+w>s[b]&&(e.offsets.popper[m]+=o[m]+w-s[b]),e.offsets.popper=wo(e.offsets.popper);var x=o[m]+o[d]/2-w/2,A=ku(e.instance.popper),C=parseFloat(A["margin"+h]),E=parseFloat(A["border"+h+"Width"]),S=x-e.offsets.popper[m]-C-E;return S=Math.max(Math.min(s[d]-w,S),0),e.arrowElement=r,e.offsets.arrow=(n={},Xl(n,m,Math.round(S)),Xl(n,g,""),n),e}function Wue(e){return e==="end"?"start":e==="start"?"end":e}var gI=["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"],xb=gI.slice(3);function S2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=xb.indexOf(e),r=xb.slice(n+1).concat(xb.slice(0,n));return t?r.reverse():r}var wb={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Hue(e,t){if(dI(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=A$(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=Fp(r),a=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case wb.FLIP:s=[r,i];break;case wb.CLOCKWISE:s=S2(r);break;case wb.COUNTERCLOCKWISE:s=S2(r,!0);break;default:s=t.behavior}return s.forEach(function(o,c){if(r!==o||s.length===c+1)return e;r=e.placement.split("-")[0],i=Fp(r);var d=e.offsets.popper,h=e.offsets.reference,m=Math.floor,g=r==="left"&&m(d.right)>m(h.left)||r==="right"&&m(d.left)<m(h.right)||r==="top"&&m(d.bottom)>m(h.top)||r==="bottom"&&m(d.top)<m(h.bottom),b=m(d.left)<m(n.left),w=m(d.right)>m(n.right),x=m(d.top)<m(n.top),A=m(d.bottom)>m(n.bottom),C=r==="left"&&b||r==="right"&&w||r==="top"&&x||r==="bottom"&&A,E=["top","bottom"].indexOf(r)!==-1,S=!!t.flipVariations&&(E&&a==="start"&&b||E&&a==="end"&&w||!E&&a==="start"&&x||!E&&a==="end"&&A),R=!!t.flipVariationsByContent&&(E&&a==="start"&&w||E&&a==="end"&&b||!E&&a==="start"&&A||!E&&a==="end"&&x),_=S||R;(g||C||_)&&(e.flipped=!0,(g||C)&&(r=s[c+1]),_&&(a=Wue(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=Wi({},e.offsets.popper,cI(e.instance.popper,e.offsets.reference,e.placement)),e=fI(e.instance.modifiers,e,"flip"))}),e}function Gue(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,o=s?"right":"bottom",c=s?"left":"top",d=s?"width":"height";return n[o]<a(r[c])&&(e.offsets.popper[c]=a(r[c])-n[d]),n[c]>a(r[o])&&(e.offsets.popper[c]=a(r[o])),e}function Yue(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 o=void 0;switch(s){case"%p":o=n;break;case"%":case"%r":default:o=r}var c=wo(o);return c[t]/100*a}else if(s==="vh"||s==="vw"){var d=void 0;return s==="vh"?d=Math.max(document.documentElement.clientHeight,window.innerHeight||0):d=Math.max(document.documentElement.clientWidth,window.innerWidth||0),d/100*a}else return a}function Zue(e,t,n,r){var i=[0,0],a=["right","left"].indexOf(r)!==-1,s=e.split(/(\+|\-)/).map(function(h){return h.trim()}),o=s.indexOf(wd(s,function(h){return h.search(/,|\s/)!==-1}));s[o]&&s[o].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,d=o!==-1?[s.slice(0,o).concat([s[o].split(c)[0]]),[s[o].split(c)[1]].concat(s.slice(o+1))]:[s];return d=d.map(function(h,m){var g=(m===1?!a:a)?"height":"width",b=!1;return h.reduce(function(w,x){return w[w.length-1]===""&&["+","-"].indexOf(x)!==-1?(w[w.length-1]=x,b=!0,w):b?(w[w.length-1]+=x,b=!1,w):w.concat(x)},[]).map(function(w){return Yue(w,g,t,n)})}),d.forEach(function(h,m){h.forEach(function(g,b){P$(g)&&(i[m]+=g*(h[b-1]==="-"?-1:1))})}),i}function Xue(e,t){var n=t.offset,r=e.placement,i=e.offsets,a=i.popper,s=i.reference,o=r.split("-")[0],c=void 0;return P$(+n)?c=[+n,0]:c=Zue(n,a,s,o),o==="left"?(a.top+=c[0],a.left-=c[1]):o==="right"?(a.top+=c[0],a.left+=c[1]):o==="top"?(a.left+=c[0],a.top-=c[1]):o==="bottom"&&(a.left+=c[0],a.top+=c[1]),e.popper=a,e}function Jue(e,t){var n=t.boundariesElement||Yl(e.instance.popper);e.instance.reference===n&&(n=Yl(n));var r=T$("transform"),i=e.instance.popper.style,a=i.top,s=i.left,o=i[r];i.top="",i.left="",i[r]="";var c=A$(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=a,i.left=s,i[r]=o,t.boundaries=c;var d=t.priority,h=e.offsets.popper,m={primary:function(b){var w=h[b];return h[b]<c[b]&&!t.escapeWithReference&&(w=Math.max(h[b],c[b])),Xl({},b,w)},secondary:function(b){var w=b==="right"?"left":"top",x=h[w];return h[b]>c[b]&&!t.escapeWithReference&&(x=Math.min(h[w],c[b]-(b==="right"?h.width:h.height))),Xl({},w,x)}};return d.forEach(function(g){var b=["left","top"].indexOf(g)!==-1?"primary":"secondary";h=Wi({},h,m[b](g))}),e.offsets.popper=h,e}function Que(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,o=["bottom","top"].indexOf(n)!==-1,c=o?"left":"top",d=o?"width":"height",h={start:Xl({},c,a[c]),end:Xl({},c,a[c]+a[d]-s[d])};e.offsets.popper=Wi({},s,h[r])}return e}function ele(e){if(!mI(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=wd(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 tle(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,a=r.reference,s=["left","right"].indexOf(n)!==-1,o=["top","left"].indexOf(n)===-1;return i[s?"left":"top"]=a[n]-(o?i[s?"width":"height"]:0),e.placement=Fp(t),e.offsets.popper=wo(i),e}var nle={shift:{order:100,enabled:!0,fn:Que},offset:{order:200,enabled:!0,fn:Xue,offset:0},preventOverflow:{order:300,enabled:!0,fn:Jue,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Gue},arrow:{order:500,enabled:!0,fn:zue,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Hue,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:tle},hide:{order:800,enabled:!0,fn:ele},computeStyle:{order:850,enabled:!0,fn:que,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Nue,onLoad:jue,gpuAcceleration:void 0}},rle={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:nle},Yf=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Tue(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Sue(this.update.bind(this)),this.options=Wi({},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(Wi({},e.Defaults.modifiers,i.modifiers)).forEach(function(s){r.options.modifiers[s]=Wi({},e.Defaults.modifiers[s]||{},i.modifiers?i.modifiers[s]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(s){return Wi({name:s},r.options.modifiers[s])}).sort(function(s,o){return s.order-o.order}),this.modifiers.forEach(function(s){s.enabled&&nI(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 Pue(e,[{key:"update",value:function(){return Rue.call(this)}},{key:"destroy",value:function(){return kue.call(this)}},{key:"enableEventListeners",value:function(){return Iue.call(this)}},{key:"disableEventListeners",value:function(){return Vue.call(this)}}]),e}();Yf.Utils=(typeof window<"u"?window:global).PopperUtils;Yf.placements=gI;Yf.Defaults=rle;var ile=["innerHTML","ownerDocument","style","attributes","nodeValue"],ale=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],sle=["bigint","boolean","null","number","string","symbol","undefined"];function Tm(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(ole(t))return t}function Ca(e){return function(t){return Tm(t)===e}}function ole(e){return ale.includes(e)}function gc(e){return function(t){return typeof t===e}}function ule(e){return sle.includes(e)}function Ke(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(Ke.array(e))return"Array";if(Ke.plainFunction(e))return"Function";var t=Tm(e);return t||"Object"}Ke.array=Array.isArray;Ke.arrayOf=function(e,t){return!Ke.array(e)&&!Ke.function(t)?!1:e.every(function(n){return t(n)})};Ke.asyncGeneratorFunction=function(e){return Tm(e)==="AsyncGeneratorFunction"};Ke.asyncFunction=Ca("AsyncFunction");Ke.bigint=gc("bigint");Ke.boolean=function(e){return e===!0||e===!1};Ke.date=Ca("Date");Ke.defined=function(e){return!Ke.undefined(e)};Ke.domElement=function(e){return Ke.object(e)&&!Ke.plainObject(e)&&e.nodeType===1&&Ke.string(e.nodeName)&&ile.every(function(t){return t in e})};Ke.empty=function(e){return Ke.string(e)&&e.length===0||Ke.array(e)&&e.length===0||Ke.object(e)&&!Ke.map(e)&&!Ke.set(e)&&Object.keys(e).length===0||Ke.set(e)&&e.size===0||Ke.map(e)&&e.size===0};Ke.error=Ca("Error");Ke.function=gc("function");Ke.generator=function(e){return Ke.iterable(e)&&Ke.function(e.next)&&Ke.function(e.throw)};Ke.generatorFunction=Ca("GeneratorFunction");Ke.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};Ke.iterable=function(e){return!Ke.nullOrUndefined(e)&&Ke.function(e[Symbol.iterator])};Ke.map=Ca("Map");Ke.nan=function(e){return Number.isNaN(e)};Ke.null=function(e){return e===null};Ke.nullOrUndefined=function(e){return Ke.null(e)||Ke.undefined(e)};Ke.number=function(e){return gc("number")(e)&&!Ke.nan(e)};Ke.numericString=function(e){return Ke.string(e)&&e.length>0&&!Number.isNaN(Number(e))};Ke.object=function(e){return!Ke.nullOrUndefined(e)&&(Ke.function(e)||typeof e=="object")};Ke.oneOf=function(e,t){return Ke.array(e)?e.indexOf(t)>-1:!1};Ke.plainFunction=Ca("Function");Ke.plainObject=function(e){if(Tm(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};Ke.primitive=function(e){return Ke.null(e)||ule(typeof e)};Ke.promise=Ca("Promise");Ke.propertyOf=function(e,t,n){if(!Ke.object(e)||!t)return!1;var r=e[t];return Ke.function(n)?n(r):Ke.defined(r)};Ke.regexp=Ca("RegExp");Ke.set=Ca("Set");Ke.string=gc("string");Ke.symbol=gc("symbol");Ke.undefined=gc("undefined");Ke.weakMap=Ca("WeakMap");Ke.weakSet=Ca("WeakSet");function vI(e){return function(t){return typeof t===e}}var lle=vI("function"),cle=function(e){return e===null},D2=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},A2=function(e){return!fle(e)&&!cle(e)&&(lle(e)||typeof e=="object")},fle=vI("undefined"),n4=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 dle(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!ii(e[r],t[r]))return!1;return!0}function hle(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 ple(e,t){var n,r,i,a;if(e.size!==t.size)return!1;try{for(var s=n4(e.entries()),o=s.next();!o.done;o=s.next()){var c=o.value;if(!t.has(c[0]))return!1}}catch(m){n={error:m}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}try{for(var d=n4(e.entries()),h=d.next();!h.done;h=d.next()){var c=h.value;if(!ii(c[1],t.get(c[0])))return!1}}catch(m){i={error:m}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}return!0}function mle(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=n4(e.entries()),a=i.next();!a.done;a=i.next()){var s=a.value;if(!t.has(s[0]))return!1}}catch(o){n={error:o}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function ii(e,t){if(e===t)return!0;if(e&&A2(e)&&t&&A2(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return dle(e,t);if(e instanceof Map&&t instanceof Map)return ple(e,t);if(e instanceof Set&&t instanceof Set)return mle(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return hle(e,t);if(D2(e)&&D2(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)&&!ii(e[a],t[a]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function gle(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return Ke.string(n)||Ke.array(n)||Ke.plainObject(n)})}function vle(e,t,n){return yI(e,t)?[e,t].every(Ke.array)?!e.some(F2(n))&&t.some(F2(n)):[e,t].every(Ke.plainObject)?!Object.entries(e).some(M2(n))&&Object.entries(t).some(M2(n)):t===n:!1}function T2(e,t,n){var r=n.actual,i=n.key,a=n.previous,s=n.type,o=Ga(e,i),c=Ga(t,i),d=[o,c].every(Ke.number)&&(s==="increased"?o<c:o>c);return Ke.undefined(r)||(d=d&&c===r),Ke.undefined(a)||(d=d&&o===a),d}function P2(e,t,n){var r=n.key,i=n.type,a=n.value,s=Ga(e,r),o=Ga(t,r),c=i==="added"?s:o,d=i==="added"?o:s;if(!Ke.nullOrUndefined(a)){if(Ke.defined(c)){if(Ke.array(c)||Ke.plainObject(c))return vle(c,d,a)}else return ii(d,a);return!1}return[s,o].every(Ke.array)?!d.every(_$(c)):[s,o].every(Ke.plainObject)?yle(Object.keys(c),Object.keys(d)):![s,o].every(function(h){return Ke.primitive(h)&&Ke.defined(h)})&&(i==="added"?!Ke.defined(s)&&Ke.defined(o):Ke.defined(s)&&!Ke.defined(o))}function _2(e,t,n){var r=n===void 0?{}:n,i=r.key,a=Ga(e,i),s=Ga(t,i);if(!yI(a,s))throw new TypeError("Inputs have different types");if(!gle(a,s))throw new TypeError("Inputs don't have length");return[a,s].every(Ke.plainObject)&&(a=Object.keys(a),s=Object.keys(s)),[a,s]}function M2(e){return function(t){var n=t[0],r=t[1];return Ke.array(e)?ii(e,r)||e.some(function(i){return ii(i,r)||Ke.array(r)&&_$(r)(i)}):Ke.plainObject(e)&&e[n]?!!e[n]&&ii(e[n],r):ii(e,r)}}function yle(e,t){return t.some(function(n){return!e.includes(n)})}function F2(e){return function(t){return Ke.array(e)?e.some(function(n){return ii(n,t)||Ke.array(t)&&_$(t)(n)}):ii(e,t)}}function nf(e,t){return Ke.array(e)?e.some(function(n){return ii(n,t)}):ii(e,t)}function _$(e){return function(t){return e.some(function(n){return ii(n,t)})}}function yI(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(Ke.array)||e.every(Ke.number)||e.every(Ke.plainObject)||e.every(Ke.string)}function Ga(e,t){if(Ke.plainObject(e)||Ke.array(e)){if(Ke.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return Ke.number(t)?e[t]:e}return e}function ble(e,t){if([e,t].some(Ke.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(m){return Ke.plainObject(m)||Ke.array(m)}))throw new Error("Expected plain objects or array");var n=function(m,g){try{return P2(e,t,{key:m,type:"added",value:g})}catch{return!1}},r=function(m,g,b){try{var w=Ga(e,m),x=Ga(t,m),A=Ke.defined(g),C=Ke.defined(b);if(A||C){var E=C?nf(b,w):!nf(g,w),S=nf(g,x);return E&&S}return[w,x].every(Ke.array)||[w,x].every(Ke.plainObject)?!ii(w,x):w!==x}catch{return!1}},i=function(m,g,b){if(!Ke.defined(m))return!1;try{var w=Ga(e,m),x=Ga(t,m),A=Ke.defined(b);return nf(g,w)&&(A?nf(b,x):!A)}catch{return!1}},a=function(m,g){return Ke.defined(m)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(m,g)):!1},s=function(m,g,b){if(!Ke.defined(m))return!1;try{return T2(e,t,{key:m,actual:g,previous:b,type:"decreased"})}catch{return!1}},o=function(m){try{var g=_2(e,t,{key:m}),b=g[0],w=g[1];return!!b.length&&!w.length}catch{return!1}},c=function(m){try{var g=_2(e,t,{key:m}),b=g[0],w=g[1];return!b.length&&!!w.length}catch{return!1}},d=function(m,g,b){if(!Ke.defined(m))return!1;try{return T2(e,t,{key:m,actual:g,previous:b,type:"increased"})}catch{return!1}},h=function(m,g){try{return P2(e,t,{key:m,type:"removed",value:g})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:a,decreased:s,emptied:o,filled:c,increased:d,removed:h}}function R2(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 Dn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R2(Object(n),!0).forEach(function(r){Dr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $le(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,$I(r.key),r)}}function Ed(e,t,n){return t&&$le(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dr(e,t,n){return t=$I(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sd(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r4(e,t)}function Rp(e){return Rp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rp(e)}function r4(e,t){return r4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},r4(e,t)}function xle(){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 wle(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 bI(e,t){if(e==null)return{};var n=wle(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 Ps(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cle(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 Ps(e)}function Dd(e){var t=xle();return function(){var r=Rp(e),i;if(t){var a=Rp(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Cle(this,i)}}function Ele(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);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $I(e){var t=Ele(e,"string");return typeof t=="symbol"?t:String(t)}var Sle={flip:{padding:20},preventOverflow:{padding:10}},Dle="The typeValidator argument must be a function with the signature function(props, propName, componentName).",Ale="The error message is optional, but must be a string if provided.";function Tle(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function Ple(e,t){return Object.hasOwnProperty.call(e,t)}function _le(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function Mle(e,t){if(typeof e!="function")throw new TypeError(Dle);if(t&&typeof t!="string")throw new TypeError(Ale)}function k2(e,t,n){return Mle(e,n),function(r,i,a){for(var s=arguments.length,o=new Array(s>3?s-3:0),c=3;c<s;c++)o[c-3]=arguments[c];return Tle(t,r,i,a)?Ple(r,i)?e.apply(void 0,[r,i,a].concat(o)):_le(r,i,a):e.apply(void 0,[r,i,a].concat(o))}}var Zt={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},rf=Os.default.createPortal!==void 0;function ja(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Cb(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function Ch(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,o=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(c){Ke.plainObject(c)&&c.key?o.apply(console,[c.key,c.value]):o.apply(console,[c])}):o.apply(console,[n]),console.groupEnd())}function Fle(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function Rle(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function kle(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(s){n(s),Rle(e,t,i)},Fle(e,t,i,r)}function O2(){}var xI=function(e){Sd(n,e);var t=Dd(n);function n(){return Cd(this,n),t.apply(this,arguments)}return Ed(n,[{key:"componentDidMount",value:function(){ja()&&(this.node||this.appendNode(),rf||this.renderPortal())}},{key:"componentDidUpdate",value:function(){ja()&&(rf||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!ja()||!this.node||(rf||Os.default.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(!ja())return null;var i=this.props,a=i.children,s=i.setRef;if(this.node||this.appendNode(),rf)return Os.default.createPortal(a,this.node);var o=Os.default.unstable_renderSubtreeIntoContainer(this,a.length>1?fe.default.createElement("div",null,a):a[0],this.node);return s(o),null}},{key:"renderReact16",value:function(){var i=this.props,a=i.hasChildren,s=i.placement,o=i.target;return a?this.renderPortal():o||s==="center"?this.renderPortal():null}},{key:"render",value:function(){return rf?this.renderReact16():null}}]),n}(fe.default.Component);Dr(xI,"propTypes",{children:rt.oneOfType([rt.element,rt.array]),hasChildren:rt.bool,id:rt.oneOfType([rt.string,rt.number]),placement:rt.string,setRef:rt.func.isRequired,target:rt.oneOfType([rt.object,rt.string]),zIndex:rt.number});var wI=function(e){Sd(n,e);var t=Dd(n);function n(){return Cd(this,n),t.apply(this,arguments)}return Ed(n,[{key:"parentStyle",get:function(){var i=this.props,a=i.placement,s=i.styles,o=s.arrow.length,c={pointerEvents:"none",position:"absolute",width:"100%"};return a.startsWith("top")?(c.bottom=0,c.left=0,c.right=0,c.height=o):a.startsWith("bottom")?(c.left=0,c.right=0,c.top=0,c.height=o):a.startsWith("left")?(c.right=0,c.top=0,c.bottom=0):a.startsWith("right")&&(c.left=0,c.top=0),c}},{key:"render",value:function(){var i=this.props,a=i.placement,s=i.setArrowRef,o=i.styles,c=o.arrow,d=c.color,h=c.display,m=c.length,g=c.margin,b=c.position,w=c.spread,x={display:h,position:b},A,C=w,E=m;return a.startsWith("top")?(A="0,0 ".concat(C/2,",").concat(E," ").concat(C,",0"),x.bottom=0,x.marginLeft=g,x.marginRight=g):a.startsWith("bottom")?(A="".concat(C,",").concat(E," ").concat(C/2,",0 0,").concat(E),x.top=0,x.marginLeft=g,x.marginRight=g):a.startsWith("left")?(E=w,C=m,A="0,0 ".concat(C,",").concat(E/2," 0,").concat(E),x.right=0,x.marginTop=g,x.marginBottom=g):a.startsWith("right")&&(E=w,C=m,A="".concat(C,",").concat(E," ").concat(C,",0 0,").concat(E/2),x.left=0,x.marginTop=g,x.marginBottom=g),fe.default.createElement("div",{className:"__floater__arrow",style:this.parentStyle},fe.default.createElement("span",{ref:s,style:x},fe.default.createElement("svg",{width:C,height:E,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},fe.default.createElement("polygon",{points:A,fill:d}))))}}]),n}(fe.default.Component);Dr(wI,"propTypes",{placement:rt.string.isRequired,setArrowRef:rt.func.isRequired,styles:rt.object.isRequired});var Ole=["color","height","width"];function CI(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,a=n.width,s=bI(n,Ole);return fe.default.createElement("button",{"aria-label":"close",onClick:t,style:s,type:"button"},fe.default.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"},fe.default.createElement("g",null,fe.default.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}))))}CI.propTypes={handleClick:rt.func.isRequired,styles:rt.object.isRequired};function EI(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,a=e.positionWrapper,s=e.showCloseButton,o=e.title,c=e.styles,d={content:fe.default.isValidElement(t)?t:fe.default.createElement("div",{className:"__floater__content",style:c.content},t)};return o&&(d.title=fe.default.isValidElement(o)?o:fe.default.createElement("div",{className:"__floater__title",style:c.title},o)),n&&(d.footer=fe.default.isValidElement(n)?n:fe.default.createElement("div",{className:"__floater__footer",style:c.footer},n)),(s||a)&&!Ke.boolean(i)&&(d.close=fe.default.createElement(CI,{styles:c.close,handleClick:r})),fe.default.createElement("div",{className:"__floater__container",style:c.container},d.close,d.title,d.content,d.footer)}EI.propTypes={content:rt.node.isRequired,footer:rt.node,handleClick:rt.func.isRequired,open:rt.bool,positionWrapper:rt.bool.isRequired,showCloseButton:rt.bool.isRequired,styles:rt.object.isRequired,title:rt.node};var SI=function(e){Sd(n,e);var t=Dd(n);function n(){return Cd(this,n),t.apply(this,arguments)}return Ed(n,[{key:"style",get:function(){var i=this.props,a=i.disableAnimation,s=i.component,o=i.placement,c=i.hideArrow,d=i.status,h=i.styles,m=h.arrow.length,g=h.floater,b=h.floaterCentered,w=h.floaterClosing,x=h.floaterOpening,A=h.floaterWithAnimation,C=h.floaterWithComponent,E={};return c||(o.startsWith("top")?E.padding="0 0 ".concat(m,"px"):o.startsWith("bottom")?E.padding="".concat(m,"px 0 0"):o.startsWith("left")?E.padding="0 ".concat(m,"px 0 0"):o.startsWith("right")&&(E.padding="0 0 0 ".concat(m,"px"))),[Zt.OPENING,Zt.OPEN].indexOf(d)!==-1&&(E=Dn(Dn({},E),x)),d===Zt.CLOSING&&(E=Dn(Dn({},E),w)),d===Zt.OPEN&&!a&&(E=Dn(Dn({},E),A)),o==="center"&&(E=Dn(Dn({},E),b)),s&&(E=Dn(Dn({},E),C)),Dn(Dn({},g),E)}},{key:"render",value:function(){var i=this.props,a=i.component,s=i.handleClick,o=i.hideArrow,c=i.setFloaterRef,d=i.status,h={},m=["__floater"];return a?fe.default.isValidElement(a)?h.content=fe.default.cloneElement(a,{closeFn:s}):h.content=a({closeFn:s}):h.content=fe.default.createElement(EI,this.props),d===Zt.OPEN&&m.push("__floater__open"),o||(h.arrow=fe.default.createElement(wI,this.props)),fe.default.createElement("div",{ref:c,className:m.join(" "),style:this.style},fe.default.createElement("div",{className:"__floater__body"},h.content,h.arrow))}}]),n}(fe.default.Component);Dr(SI,"propTypes",{component:rt.oneOfType([rt.func,rt.element]),content:rt.node,disableAnimation:rt.bool.isRequired,footer:rt.node,handleClick:rt.func.isRequired,hideArrow:rt.bool.isRequired,open:rt.bool,placement:rt.string.isRequired,positionWrapper:rt.bool.isRequired,setArrowRef:rt.func.isRequired,setFloaterRef:rt.func.isRequired,showCloseButton:rt.bool,status:rt.string.isRequired,styles:rt.object.isRequired,title:rt.node});var DI=function(e){Sd(n,e);var t=Dd(n);function n(){return Cd(this,n),t.apply(this,arguments)}return Ed(n,[{key:"render",value:function(){var i=this.props,a=i.children,s=i.handleClick,o=i.handleMouseEnter,c=i.handleMouseLeave,d=i.setChildRef,h=i.setWrapperRef,m=i.style,g=i.styles,b;if(a)if(fe.default.Children.count(a)===1)if(!fe.default.isValidElement(a))b=fe.default.createElement("span",null,a);else{var w=Ke.function(a.type)?"innerRef":"ref";b=fe.default.cloneElement(fe.default.Children.only(a),Dr({},w,d))}else b=a;return b?fe.default.createElement("span",{ref:h,style:Dn(Dn({},g),m),onClick:s,onMouseEnter:o,onMouseLeave:c},b):null}}]),n}(fe.default.Component);Dr(DI,"propTypes",{children:rt.node,handleClick:rt.func.isRequired,handleMouseEnter:rt.func.isRequired,handleMouseLeave:rt.func.isRequired,setChildRef:rt.func.isRequired,setWrapperRef:rt.func.isRequired,style:rt.object,styles:rt.object.isRequired});var Ile={zIndex:100};function Lle(e){var t=ma(Ile,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 Vle=["arrow","flip","offset"],Ble=["position","top","right","bottom","left"],M$=function(e){Sd(n,e);var t=Dd(n);function n(r){var i;return Cd(this,n),i=t.call(this,r),Dr(Ps(i),"setArrowRef",function(a){i.arrowRef=a}),Dr(Ps(i),"setChildRef",function(a){i.childRef=a}),Dr(Ps(i),"setFloaterRef",function(a){i.floaterRef=a}),Dr(Ps(i),"setWrapperRef",function(a){i.wrapperRef=a}),Dr(Ps(i),"handleTransitionEnd",function(){var a=i.state.status,s=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:a===Zt.OPENING?Zt.OPEN:Zt.IDLE},function(){var o=i.state.status;s(o===Zt.OPEN?"open":"close",i.props)})}),Dr(Ps(i),"handleClick",function(){var a=i.props,s=a.event,o=a.open;if(!Ke.boolean(o)){var c=i.state,d=c.positionWrapper,h=c.status;(i.event==="click"||i.event==="hover"&&d)&&(Ch({title:"click",data:[{event:s,status:h===Zt.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),Dr(Ps(i),"handleMouseEnter",function(){var a=i.props,s=a.event,o=a.open;if(!(Ke.boolean(o)||Cb())){var c=i.state.status;i.event==="hover"&&c===Zt.IDLE&&(Ch({title:"mouseEnter",data:[{key:"originalEvent",value:s}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),Dr(Ps(i),"handleMouseLeave",function(){var a=i.props,s=a.event,o=a.eventDelay,c=a.open;if(!(Ke.boolean(c)||Cb())){var d=i.state,h=d.status,m=d.positionWrapper;i.event==="hover"&&(Ch({title:"mouseLeave",data:[{key:"originalEvent",value:s}],debug:i.debug}),o?[Zt.OPENING,Zt.OPEN].indexOf(h)!==-1&&!m&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},o*1e3)):i.toggle(Zt.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:Zt.INIT,statusWrapper:Zt.INIT},i._isMounted=!1,i.hasMounted=!1,ja()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return Ed(n,[{key:"componentDidMount",value:function(){if(ja()){var i=this.state.positionWrapper,a=this.props,s=a.children,o=a.open,c=a.target;this._isMounted=!0,Ch({title:"init",data:{hasChildren:!!s,hasTarget:!!c,isControlled:Ke.boolean(o),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!s&&c&&Ke.boolean(o)}}},{key:"componentDidUpdate",value:function(i,a){if(ja()){var s=this.props,o=s.autoOpen,c=s.open,d=s.target,h=s.wrapperOptions,m=ble(a,this.state),g=m.changedFrom,b=m.changed;if(i.open!==c){var w;Ke.boolean(c)&&(w=c?Zt.OPENING:Zt.CLOSING),this.toggle(w)}(i.wrapperOptions.position!==h.position||i.target!==d)&&this.changeWrapperPosition(this.props),b("status",Zt.IDLE)&&c?this.toggle(Zt.OPEN):g("status",Zt.INIT,Zt.IDLE)&&o&&this.toggle(Zt.OPEN),this.popper&&b("status",Zt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(b("status",Zt.OPENING)||b("status",Zt.CLOSING))&&kle(this.floaterRef,"transitionend",this.handleTransitionEnd),b("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){ja()&&(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,o=this.props,c=o.disableFlip,d=o.getPopper,h=o.hideArrow,m=o.offset,g=o.placement,b=o.wrapperOptions,w=g==="top"||g==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(g==="center")this.setState({status:Zt.IDLE});else if(a&&this.floaterRef){var x=this.options,A=x.arrow,C=x.flip,E=x.offset,S=bI(x,Vle);new Yf(a,this.floaterRef,{placement:g,modifiers:Dn({arrow:Dn({enabled:!h,element:this.arrowRef},A),flip:Dn({enabled:!c,behavior:w},C),offset:Dn({offset:"0, ".concat(m,"px")},E)},S),onCreate:function(F){var z;if(i.popper=F,!((z=i.floaterRef)!==null&&z!==void 0&&z.isConnected)){i.setState({needsUpdate:!0});return}d(F,"floater"),i._isMounted&&i.setState({currentPlacement:F.placement,status:Zt.IDLE}),g!==F.placement&&setTimeout(function(){F.instance.update()},1)},onUpdate:function(F){i.popper=F;var z=i.state.currentPlacement;i._isMounted&&F.placement!==z&&i.setState({currentPlacement:F.placement})}})}if(s){var R=Ke.undefined(b.offset)?0:b.offset;new Yf(this.target,this.wrapperRef,{placement:b.placement||g,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(R,"px")},flip:{enabled:!1}},onCreate:function(F){i.wrapperPopper=F,i._isMounted&&i.setState({statusWrapper:Zt.IDLE}),d(F,"wrapper"),g!==F.placement&&setTimeout(function(){F.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===Zt.OPEN?Zt.CLOSING:Zt.OPENING;Ke.undefined(i)||(s=i),this.setState({status:s})}},{key:"debug",get:function(){var i=this.props.debug;return i||ja()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,a=i.disableHoverToClick,s=i.event;return s==="hover"&&Cb()&&!a?"click":s}},{key:"options",get:function(){var i=this.props.options;return ma(Sle,i||{})}},{key:"styles",get:function(){var i=this,a=this.state,s=a.status,o=a.positionWrapper,c=a.statusWrapper,d=this.props.styles,h=ma(Lle(d),d);if(o){var m;[Zt.IDLE].indexOf(s)===-1||[Zt.IDLE].indexOf(c)===-1?m=h.wrapperPosition:m=this.wrapperPopper.styles,h.wrapper=Dn(Dn({},h.wrapper),m)}if(this.target){var g=window.getComputedStyle(this.target);this.wrapperStyles?h.wrapper=Dn(Dn({},h.wrapper),this.wrapperStyles):["relative","static"].indexOf(g.position)===-1&&(this.wrapperStyles={},o||(Ble.forEach(function(b){i.wrapperStyles[b]=g[b]}),h.wrapper=Dn(Dn({},h.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 h}},{key:"target",get:function(){if(!ja())return null;var i=this.props.target;return i?Ke.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,a=i.currentPlacement,s=i.positionWrapper,o=i.status,c=this.props,d=c.children,h=c.component,m=c.content,g=c.disableAnimation,b=c.footer,w=c.hideArrow,x=c.id,A=c.open,C=c.showCloseButton,E=c.style,S=c.target,R=c.title,_=fe.default.createElement(DI,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:E,styles:this.styles.wrapper},d),F={};return s?F.wrapperInPortal=_:F.wrapperAsChildren=_,fe.default.createElement("span",null,fe.default.createElement(xI,{hasChildren:!!d,id:x,placement:a,setRef:this.setFloaterRef,target:S,zIndex:this.styles.options.zIndex},fe.default.createElement(SI,{component:h,content:m,disableAnimation:g,footer:b,handleClick:this.handleClick,hideArrow:w||a==="center",open:A,placement:a,positionWrapper:s,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:C,status:o,styles:this.styles,title:R}),F.wrapperInPortal),F.wrapperAsChildren)}}]),n}(fe.default.Component);Dr(M$,"propTypes",{autoOpen:rt.bool,callback:rt.func,children:rt.node,component:k2(rt.oneOfType([rt.func,rt.element]),function(e){return!e.content}),content:k2(rt.node,function(e){return!e.component}),debug:rt.bool,disableAnimation:rt.bool,disableFlip:rt.bool,disableHoverToClick:rt.bool,event:rt.oneOf(["hover","click"]),eventDelay:rt.number,footer:rt.node,getPopper:rt.func,hideArrow:rt.bool,id:rt.oneOfType([rt.string,rt.number]),offset:rt.number,open:rt.bool,options:rt.object,placement:rt.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:rt.bool,style:rt.object,styles:rt.object,target:rt.oneOfType([rt.object,rt.string]),title:rt.node,wrapperOptions:rt.shape({offset:rt.number,placement:rt.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:rt.bool})});Dr(M$,"defaultProps",{autoOpen:!1,callback:O2,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:O2,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var Nle=Object.defineProperty,jle=(e,t,n)=>t in e?Nle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mt=(e,t,n)=>jle(e,typeof t!="symbol"?t+"":t,n),rn={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},ji={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"},Ft={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},Nt={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function fo(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function AI(e){return e?e.getBoundingClientRect():null}function Kle(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 ks(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 Ule(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function Zf(e,t,n){if(!e)return pu();const r=tI(e);if(r){if(r.isSameNode(pu()))return n?document:pu();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",pu()}return r}function Ad(e,t){if(!e)return!1;const n=Zf(e,t);return n?!n.isSameNode(pu()):!1}function qle(e){return e.offsetParent!==document.body}function Jl(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=Ule(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?Jl(e.parentNode,t):!1}function zle(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 Wle(e,t,n){var r,i,a;const s=AI(e),o=Zf(e,n),c=Ad(e,n),d=Jl(e);let h=0,m=(r=s==null?void 0:s.top)!=null?r:0;if(c&&d){const g=(i=e==null?void 0:e.offsetTop)!=null?i:0,b=(a=o==null?void 0:o.scrollTop)!=null?a:0;m=g-b}else o instanceof HTMLElement&&(h=o.scrollTop,!c&&!Jl(e)&&(m+=h),o.isSameNode(pu())||(m+=pu().scrollTop));return Math.floor(m-t)}function Hle(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:a=0}=(r=tI(e))!=null?r:{};let s=e.getBoundingClientRect().top+a;i&&(Ad(e,n)||qle(e))&&(s-=i);const o=Math.floor(s-t);return o<0?0:o}function pu(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function Gle(e,t){const{duration:n,element:r}=t;return new Promise((i,a)=>{const{scrollTop:s}=r,o=e>s?e-s:s-e;hue.top(r,e,{duration:o<100?50:n},c=>c&&c.message!=="Element already at target scroll position"?a(c):i())})}var af=kp.createPortal!==void 0;function TI(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 zh(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Ka(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let a=b2(e);if(a)(a.includes("{step}")||a.includes("{steps}"))&&r&&i&&(a=a.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(I.isValidElement(e)&&!Object.values(e.props).length&&zh(e.type)==="function"){const s=e.type({});a=Ka(s,t)}else a=b2(n);return a}function Yle(e,t){return!dt.plainObject(e)||!dt.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function Zle(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,a,s,o)=>a+a+s+s+o+o),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 I2(e){return e.disableBeacon||e.placement==="center"}function L2(){return!["chrome","safari","firefox","opera"].includes(TI())}function Co({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=>{dt.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 Xle(e){return Object.keys(e)}function PI(e,...t){if(!dt.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 Jle(e,...t){if(!dt.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 i4(e,t,n){const r=a=>a.replace("{step}",String(t)).replace("{steps}",String(n));if(zh(e)==="string")return r(e);if(!I.isValidElement(e))return e;const{children:i}=e.props;if(zh(i)==="string"&&i.includes("{step}"))return I.cloneElement(e,{children:r(i)});if(Array.isArray(i))return I.cloneElement(e,{children:i.map(a=>typeof a=="string"?r(a):i4(a,t,n))});if(zh(e.type)==="function"&&!Object.values(e.props).length){const a=e.type({});return i4(a,t,n)}return e}function Qle(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:a,target:s}=e;return!a.disableScrolling&&(!t||i||n===Ft.TOOLTIP)&&a.placement!=="center"&&(!a.isFixed||!Jl(s))&&r!==n&&[Ft.BEACON,Ft.TOOLTIP].includes(n)}var ece={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},_I={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},tce={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:_I,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},nce={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:[]},rce={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},sf={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},V2={borderRadius:4,position:"absolute"};function ice(e,t){var n,r,i,a,s;const{floaterProps:o,styles:c}=e,d=ma((n=t.floaterProps)!=null?n:{},o??{}),h=ma(c??{},(r=t.styles)!=null?r:{}),m=ma(rce,h.options||{}),g=t.placement==="center"||t.disableBeacon;let{width:b}=m;window.innerWidth>480&&(b=380),"width"in m&&(b=typeof m.width=="number"&&window.innerWidth<m.width?window.innerWidth-30:m.width);const w={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:m.zIndex},x={beacon:{...sf,display:g?"none":"inline-block",height:m.beaconSize,position:"relative",width:m.beaconSize,zIndex:m.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:m.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(${Zle(m.primaryColor).join(",")}, 0.2)`,border:`2px solid ${m.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:m.backgroundColor,borderRadius:5,boxSizing:"border-box",color:m.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:b},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:{...sf,backgroundColor:m.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...sf,color:m.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...sf,color:m.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...sf,color:m.textColor,fontSize:14},overlay:{...w,backgroundColor:m.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...w},overlayLegacyCenter:{...w,backgroundColor:m.overlayColor},spotlight:{...V2,backgroundColor:"gray"},spotlightLegacy:{...V2,boxShadow:`0 0 0 9999px ${m.overlayColor}, ${m.spotlightShadow}`},floaterStyles:{arrow:{color:(s=(a=(i=d==null?void 0:d.styles)==null?void 0:i.arrow)==null?void 0:a.color)!=null?s:m.arrowColor},options:{zIndex:m.zIndex+100}},options:m};return ma(x,h)}function ace(e){return Jle(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function hl(e,t){var n,r,i,a,s,o;const c=t??{},d=ma.all([tce,ace(e),c],{isMergeableObject:dt.plainObject}),h=ice(e,d),m=Ad(ks(d.target),d.disableScrollParentFix),g=ma.all([ece,(n=e.floaterProps)!=null?n:{},(r=d.floaterProps)!=null?r:{}]);return g.offset=d.offset,g.styles=ma((i=g.styles)!=null?i:{},h.floaterStyles),g.offset+=(s=(a=e.spotlightPadding)!=null?a:d.spotlightPadding)!=null?s:0,d.placementBeacon&&g.wrapperOptions&&(g.wrapperOptions.placement=d.placementBeacon),m&&g.options.preventOverflow&&(g.options.preventOverflow.boundariesElement="window"),{...d,locale:ma.all([_I,(o=e.locale)!=null?o:{},d.locale||{}]),floaterProps:g,styles:PI(h,"floaterStyles")}}function MI(e,t=!1){return dt.plainObject(e)?e.target?!0:(Co({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(Co({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function B2(e,t=!1){return dt.array(e)?e.every(n=>MI(n,t)):(Co({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var FI={action:"init",controlled:!1,index:0,lifecycle:Ft.INIT,origin:null,size:0,status:Nt.IDLE},N2=Xle(PI(FI,"controlled","size")),sce=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(),o={size:i.length,status:s};this.data.set("steps",i),s===Nt.WAITING&&!a&&i.length&&(o.status=Nt.RUNNING),this.setState(o)}),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===Nt.RUNNING&&this.setState({...this.getNextState({action:rn.CLOSE,index:a+1,origin:i})})}),mt(this,"go",i=>{const{controlled:a,status:s}=this.getState();if(a||s!==Nt.RUNNING)return;const o=this.getSteps()[i];this.setState({...this.getNextState({action:rn.GO,index:i}),status:o?s:Nt.FINISHED})}),mt(this,"info",()=>this.getState()),mt(this,"next",()=>{const{index:i,status:a}=this.getState();a===Nt.RUNNING&&this.setState(this.getNextState({action:rn.NEXT,index:i+1}))}),mt(this,"open",()=>{const{status:i}=this.getState();i===Nt.RUNNING&&this.setState({...this.getNextState({action:rn.UPDATE,lifecycle:Ft.TOOLTIP})})}),mt(this,"prev",()=>{const{index:i,status:a}=this.getState();a===Nt.RUNNING&&this.setState({...this.getNextState({action:rn.PREV,index:i-1})})}),mt(this,"reset",(i=!1)=>{const{controlled:a}=this.getState();a||this.setState({...this.getNextState({action:rn.RESET,index:0}),status:i?Nt.RUNNING:Nt.READY})}),mt(this,"skip",()=>{const{status:i}=this.getState();i===Nt.RUNNING&&this.setState({action:rn.SKIP,lifecycle:Ft.INIT,status:Nt.SKIPPED})}),mt(this,"start",i=>{const{index:a,size:s}=this.getState();this.setState({...this.getNextState({action:rn.START,index:dt.number(i)?i:a},!0),status:s?Nt.RUNNING:Nt.WAITING})}),mt(this,"stop",(i=!1)=>{const{index:a,status:s}=this.getState();[Nt.FINISHED,Nt.SKIPPED].includes(s)||this.setState({...this.getNextState({action:rn.STOP,index:a+(i?1:0)}),status:Nt.PAUSED})}),mt(this,"update",i=>{var a,s;if(!Yle(i,N2))throw new Error(`State is not valid. Valid keys: ${N2.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(a=i.action)!=null?a:rn.UPDATE,origin:(s=i.origin)!=null?s:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:rn.INIT,controlled:dt.number(n),continuous:t,index:dt.number(n)?n:0,lifecycle:Ft.INIT,origin:null,status:r.length?Nt.READY:Nt.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...FI}}getNextState(e,t=!1){var n,r,i,a,s;const{action:o,controlled:c,index:d,size:h,status:m}=this.getState(),g=dt.number(e.index)?e.index:d,b=c&&!t?d:Math.min(Math.max(g,0),h);return{action:(n=e.action)!=null?n:o,controlled:c,index:b,lifecycle:(r=e.lifecycle)!=null?r:Ft.INIT,origin:(i=e.origin)!=null?i:null,size:(a=e.size)!=null?a:h,status:b===h?Nt.FINISHED:(s=e.status)!=null?s:m}}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:o,status:c}={...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",o),this.store.set("status",c),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function oce(e){return new sce(e)}function uce({styles:e}){return fe.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var lce=uce,cce=class extends fe.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=[Ft.INIT,Ft.BEACON,Ft.COMPLETE,Ft.ERROR];return t||(e?r.includes(n):n!==Ft.TOOLTIP)}),mt(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:a,width:s}=this.spotlightStyles,o=i==="fixed"?e.clientY:e.pageY,c=i==="fixed"?e.clientX:e.pageX,d=o>=a&&o<=a+n,m=c>=r&&c<=r+s&&d;m!==t&&this.updateState({mouseOverSpotlight:m})}),mt(this,"handleScroll",()=>{const{target:e}=this.props,t=ks(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 Jl(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=ks(r);this.scrollParent=Zf(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&Ad(i,!0)&&Co({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}=_p(e,this.props);if(s("target")||s("disableScrollParentFix")){const o=ks(a);this.scrollParent=Zf(o??document.body,n,!0)}s("lifecycle",Ft.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:o}=this.state;o||this.updateState({showSpotlight:!0})},100)),(s("spotlightClicks")||s("disableOverlay")||s("lifecycle"))&&(i&&r===Ft.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Ft.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 L2()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:Kle(),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:o,target:c}=this.props,d=ks(c),h=AI(d),m=Jl(d),g=Wle(d,s,i);return{...L2()?o.spotlightLegacy:o.spotlight,height:Math.round(((e=h==null?void 0:h.height)!=null?e:0)+s*2),left:Math.round(((t=h==null?void 0:h.left)!=null?t:0)-s),opacity:r?1:0,pointerEvents:a?"none":"auto",position:m?"fixed":"absolute",top:g,transition:"opacity 0.2s",width:Math.round(((n=h==null?void 0:h.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&&fe.createElement(lce,{styles:a});if(TI()==="safari"){const{mixBlendMode:o,zIndex:c,...d}=i;s=fe.createElement("div",{style:{...d}},s),delete i.backgroundColor}return fe.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},s)}},fce=class extends fe.Component{constructor(){super(...arguments),mt(this,"node",null)}componentDidMount(){const{id:e}=this.props;fo()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),af||this.renderReact15())}componentDidUpdate(){fo()&&(af||this.renderReact15())}componentWillUnmount(){!fo()||!this.node||(af||Os.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!fo())return;const{children:e}=this.props;this.node&&Os.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!fo()||!af)return null;const{children:e}=this.props;return this.node?Os.createPortal(e,this.node):null}render(){return af?this.renderReact16():null}},dce=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()}},hce=class extends fe.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(`
|
|
139
|
-
@keyframes joyride-beacon-inner {
|
|
140
|
-
20% {
|
|
141
|
-
opacity: 0.9;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
90% {
|
|
145
|
-
opacity: 0.7;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
@keyframes joyride-beacon-outer {
|
|
150
|
-
0% {
|
|
151
|
-
transform: scale(1);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
45% {
|
|
155
|
-
opacity: 0.7;
|
|
156
|
-
transform: scale(0.75);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
100% {
|
|
160
|
-
opacity: 0.9;
|
|
161
|
-
transform: scale(1);
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
`)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(dt.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{dt.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:o,styles:c}=this.props,d=Ka(i.open),h={"aria-label":d,onClick:a,onMouseEnter:a,ref:this.setBeaconRef,title:d};let m;if(e){const g=e;m=fe.createElement(g,{continuous:t,index:n,isLastStep:r,size:s,step:o,...h})}else m=fe.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:c.beacon,type:"button",...h},fe.createElement("span",{style:c.beaconInner}),fe.createElement("span",{style:c.beaconOuter}));return m}};function pce({styles:e,...t}){const{color:n,height:r,width:i,...a}=e;return fe.default.createElement("button",{style:a,type:"button",...t},fe.default.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"},fe.default.createElement("g",null,fe.default.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 mce=pce;function gce(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:a,skipProps:s,step:o,tooltipProps:c}=e,{content:d,hideBackButton:h,hideCloseButton:m,hideFooter:g,showSkipButton:b,styles:w,title:x}=o,A={};return A.primary=fe.createElement("button",{"data-test-id":"button-primary",style:w.buttonNext,type:"button",...a}),b&&!i&&(A.skip=fe.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:w.buttonSkip,type:"button",...s})),!h&&r>0&&(A.back=fe.createElement("button",{"data-test-id":"button-back",style:w.buttonBack,type:"button",...t})),A.close=!m&&fe.createElement(mce,{"data-test-id":"button-close",styles:w.buttonClose,...n}),fe.createElement("div",{key:"JoyrideTooltip","aria-label":Ka(x??d),className:"react-joyride__tooltip",style:w.tooltip,...c},fe.createElement("div",{style:w.tooltipContainer},x&&fe.createElement("h1",{"aria-label":Ka(x),style:w.tooltipTitle},x),fe.createElement("div",{style:w.tooltipContent},d)),!g&&fe.createElement("div",{style:w.tooltipFooter},fe.createElement("div",{style:w.tooltipFooterSpacer},A.skip),A.back,A.primary),A.close)}var vce=gce,yce=class extends fe.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:o,last:c,next:d,nextLabelWithProgress:h,skip:m}=a.locale,g=Ka(s),b=Ka(o),w=Ka(c),x=Ka(d),A=Ka(m);let C=o,E=b;if(e){if(C=d,E=x,a.showProgress&&!n){const S=Ka(h,{step:t+1,steps:i});C=i4(h,t+1,i),E=S}n&&(C=c,E=w)}return{backProps:{"aria-label":g,children:s,"data-action":"back",onClick:this.handleClickBack,role:"button",title:g},closeProps:{"aria-label":b,children:o,"data-action":"close",onClick:this.handleClickClose,role:"button",title:b},primaryProps:{"aria-label":E,children:C,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:E},skipProps:{"aria-label":A,children:m,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:A},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:o,...c}=a;let d;if(o){const h={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:c,setTooltipRef:r},m=o;d=fe.createElement(m,{...h})}else d=fe.createElement(vce,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:a});return d}},bce=class extends fe.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:Ft.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===Ft.INIT&&s.update({action:r,lifecycle:Ft.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 fe.createElement(yce,{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;Co({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:o,index:c,lifecycle:d,shouldScroll:h,status:m,step:g,store:b}=this.props,{changed:w,changedFrom:x}=_p(e,this.props),A=o.info(),C=i&&n!==rn.CLOSE&&(c>0||n===rn.PREV),E=w("action")||w("index")||w("lifecycle")||w("status"),S=x("lifecycle",[Ft.TOOLTIP,Ft.INIT],Ft.INIT),R=w("action",[rn.NEXT,rn.PREV,rn.SKIP,rn.CLOSE]),_=a&&c===e.index;if(R&&(S||_)&&r({...A,index:e.index,lifecycle:Ft.COMPLETE,step:e.step,type:ji.STEP_AFTER}),g.placement==="center"&&m===Nt.RUNNING&&w("index")&&n!==rn.START&&d===Ft.INIT&&b.update({lifecycle:Ft.READY}),E){const F=ks(g.target),z=!!F;z&&zle(F)?(x("status",Nt.READY,Nt.RUNNING)||x("lifecycle",Ft.INIT,Ft.READY))&&r({...A,step:g,type:ji.STEP_BEFORE}):(console.warn(z?"Target not visible":"Target not mounted",g),r({...A,type:ji.TARGET_NOT_FOUND,step:g}),a||b.update({index:c+(n===rn.PREV?-1:1)}))}x("lifecycle",Ft.INIT,Ft.READY)&&b.update({lifecycle:I2(g)||C?Ft.TOOLTIP:Ft.BEACON}),w("index")&&Co({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:s}),w("lifecycle",Ft.BEACON)&&r({...A,step:g,type:ji.BEACON}),w("lifecycle",Ft.TOOLTIP)&&(r({...A,step:g,type:ji.TOOLTIP}),h&&this.tooltip&&(this.scope=new dce(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),x("lifecycle",[Ft.TOOLTIP,Ft.INIT],Ft.INIT)&&((t=this.scope)==null||t.removeScope(),b.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return I2(t)||e===Ft.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:a,step:s}=this.props,o=ks(s.target);return!MI(s)||!dt.domElement(o)?null:fe.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},fe.createElement(M$,{...s.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:s.placement,target:s.target},fe.createElement(hce,{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})))}},RI=class extends fe.Component{constructor(e){super(e),mt(this,"helpers"),mt(this,"store"),mt(this,"callback",s=>{const{callback:o}=this.props;dt.function(o)&&o(s)}),mt(this,"handleKeyboard",s=>{const{index:o,lifecycle:c}=this.state,{steps:d}=this.props,h=d[o];c===Ft.TOOLTIP&&s.code==="Escape"&&h&&!h.disableCloseOnEsc&&this.store.close("keyboard")}),mt(this,"handleClickOverlay",()=>{const{index:s}=this.state,{steps:o}=this.props;hl(this.props,o[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=oce({...e,controlled:r&&dt.number(i)}),this.helpers=this.store.getHelpers();const{addListener:a}=this.store;Co({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(!fo())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;B2(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!fo())return;const{action:n,controlled:r,index:i,status:a}=this.state,{debug:s,run:o,stepIndex:c,steps:d}=this.props,{stepIndex:h,steps:m}=e,{reset:g,setSteps:b,start:w,stop:x,update:A}=this.store,{changed:C}=_p(e,this.props),{changed:E,changedFrom:S}=_p(t,this.state),R=hl(this.props,d[i]),_=!jr(m,d),F=dt.number(c)&&C("stepIndex"),z=ks(R.target);if(_&&(B2(d,s)?b(d):console.warn("Steps are not valid",d)),C("run")&&(o?w(c):x()),F){let oe=dt.number(h)&&h<c?rn.NEXT:rn.PREV;n===rn.STOP&&(oe=rn.START),[Nt.FINISHED,Nt.SKIPPED].includes(a)||A({action:n===rn.CLOSE?rn.CLOSE:oe,index:c,lifecycle:Ft.INIT})}!r&&a===Nt.RUNNING&&i===0&&!z&&(this.store.update({index:i+1}),this.callback({...this.state,type:ji.TARGET_NOT_FOUND,step:R}));const ie={...this.state,index:i,step:R};if(E("action",[rn.NEXT,rn.PREV,rn.SKIP,rn.CLOSE])&&E("status",Nt.PAUSED)){const oe=hl(this.props,d[t.index]);this.callback({...ie,index:t.index,lifecycle:Ft.COMPLETE,step:oe,type:ji.STEP_AFTER})}if(E("status",[Nt.FINISHED,Nt.SKIPPED])){const oe=hl(this.props,d[t.index]);r||this.callback({...ie,index:t.index,lifecycle:Ft.COMPLETE,step:oe,type:ji.STEP_AFTER}),this.callback({...ie,type:ji.TOUR_END,step:oe,index:t.index}),g()}else S("status",[Nt.IDLE,Nt.READY],Nt.RUNNING)?this.callback({...ie,type:ji.TOUR_START}):(E("status")||E("action",rn.RESET))&&this.callback({...ie,type:ji.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:o=20,scrollToFirstStep:c=!1,steps:d}=this.props,h=hl(this.props,d[t]),m=ks(h.target),g=Qle({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:c,step:h,target:m});if(r===Nt.RUNNING&&g){const b=Ad(m,a),w=Zf(m,a);let x=Math.floor(Hle(m,o,a))||0;Co({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const A=this.store.getPopper("beacon"),C=this.store.getPopper("tooltip");if(n===Ft.BEACON&&A){const{offsets:E,placement:S}=A;!["bottom"].includes(S)&&!b&&(x=Math.floor(E.popper.top-o))}else if(n===Ft.TOOLTIP&&C){const{flipped:E,offsets:S,placement:R}=C;["top","right","left"].includes(R)&&!E&&!b?x=Math.floor(S.popper.top-o):x-=h.spotlightPadding}x=x>=0?x:0,r===Nt.RUNNING&&Gle(x,{element:w,duration:s}).then(()=>{setTimeout(()=>{var E;(E=this.store.getPopper("tooltip"))==null||E.instance.update()},10)})}}render(){if(!fo())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:a,scrollToFirstStep:s=!1,steps:o}=this.props,c=n===Nt.RUNNING,d={};if(c&&o[e]){const h=hl(this.props,o[e]);d.step=fe.createElement(bce,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:a,shouldScroll:!h.disableScrolling&&(e!==0||s),step:h,store:this.store}),d.overlay=fe.createElement(fce,{id:"react-joyride-portal"},fe.createElement(cce,{...h,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return fe.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};mt(RI,"defaultProps",nce);var $ce=RI;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=rR;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=W5;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=sd;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=Z5;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=Qn;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=cX;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=tR;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Tr;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=lZ;exports.$293f70390ea03370$export$497855f14858aa34=iX;exports.$32489daedd52963e$export$1315d136e6f7581=gX;exports.$337b884510726a0d$export$c6fdb837b070b4ff=NZ;exports.$36a0ac60f04457c5$export$136073280381448e=QY;exports.$3c0fc76039f1c516$export$60e84778edff6d26=qR;exports.$40df3f8667284809$export$d55e7ee900f34e93=$X;exports.$46a4342aab3d8076$export$87e0539f600c24e5=ZY;exports.$47b897dc8cdb026b$export$8d15029008292ae=hZ;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=fZ;exports.$6057a3d2a53a12fd$export$42df105a73306d51=dX;exports.$64244302c3013299$export$dd0bbc9b26defe37=$Y;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=kY;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=bX;exports.$93c38a5e28be6249$export$e50a61c1de9f574=BX;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=YY;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=xX;exports.$a916eb452884faea$export$b7a616150fdb9f44=RY;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=AX;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=RX;exports.$bb77f239b46e8c72$export$3274cf84b703fff=C_;exports.$bcca50147b47f54d$export$56b2c08e277f365=dZ;exports.$c132121280ec012d$export$50eacbbf140a3141=ZZ;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=JZ;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=uX;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=XY;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=NX;exports.$f2f8a6077418541e$export$542a6fd13ac93354=BZ;exports.$fae977aafc393c5c$export$588937bcd60ade55=YG;exports.$fae977aafc393c5c$export$6b862160d295c8e=GG;exports.ACTIONS=rn;exports.AdvancedImage=LK;exports.CSVLink=Ioe;exports.Cloudinary=FU;exports.Controller=jW;exports.EVENTS=ji;exports.FormProvider=BW;exports.LazyMotion=Ire;exports.Lottie=xre;exports.M=ha;exports.ReorderGroup=sre;exports.ReorderItem=cre;exports.STATUS=Nt;exports._=oz;exports._$1=Ru;exports.autoUpdate=fW;exports.capitalize=jN;exports.components_default=$ce;exports.dayjs=WX;exports.dayjs_minExports=zR;exports.domAnimation=voe;exports.ee=GR;exports.flexRender=Noe;exports.flip=$W;exports.isEqual=UX;exports.isNil=Boe;exports.isNumber=YX;exports.isUndefined=wJ;exports.lazyload=_K;exports.localizedFormat=pre;exports.lodashExports=jP;exports.m=Sie;exports.o=vre;exports.offset=yW;exports.placeholder=kK;exports.prismExports=EJ;exports.q=b3;exports.random=Pre;exports.shift=bW;exports.some=iz;exports.transform=Yoe;exports.useController=f5;exports.useFieldArray=tH;exports.useFloating=FW;exports.useFloating$1=t5;exports.useFocus=RW;exports.useForm=nH;exports.useFormContext=ed;exports.useHover=_W;exports.useInteractions=kW;exports.useRole=IW;exports.useWatch=c5;
|