@fluidattacks/design 3.33.13 → 3.33.15
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/filters/active-filters/active-filter/index.js +1 -1
- package/dist/components/filters/active-filters/index.js +1 -1
- package/dist/components/filters/active-filters/utils.d.ts +1 -1
- package/dist/components/filters/context/index.js +1 -1
- package/dist/components/filters/filters-menu/index.js +1 -1
- package/dist/components/filters/index.js +1 -1
- package/dist/components/filters/options-menu/index.js +1 -1
- package/dist/components/filters/options-menu/options/index.js +1 -1
- package/dist/components/filters/search/no-matches/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/default/index.js +1 -1
- package/dist/components/inputs/fields/input-file/dropzone/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-section/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/rules-card/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.d.ts +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/tag/types.d.ts +1 -0
- 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/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-10ncsIOh.js → components-2gxj2mVy.js} +237 -237
- package/dist/{components-Bj79vSGF.mjs → components-DTO57G1m.mjs} +1801 -1736
- package/dist/context/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{vendor-C0CrxSAa.mjs → vendor-DqWEtepN.mjs} +11530 -11214
- package/dist/vendor-_hdBUzNL.js +173 -0
- package/package.json +16 -13
- package/dist/vendor-uQRonpxh.js +0 -173
package/dist/vendor-uQRonpxh.js
DELETED
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
"use strict";require('./assets/vendor.css');var vK=Object.defineProperty;var yK=(e,t,n)=>t in e?vK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Xn=(e,t,n)=>yK(e,typeof t!="symbol"?t+"":t,n);const I=require("react"),io=require("react/jsx-runtime"),of=require("react-dom"),Z5=require("react-router-dom");function V6(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 de=V6(I),No=V6(of);var Hi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ar(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vg,X5;function N6(){if(X5)return Vg;X5=1;var e=typeof Hi=="object"&&Hi&&Hi.Object===Object&&Hi;return Vg=e,Vg}var Ng,Q5;function Go(){if(Q5)return Ng;Q5=1;var e=N6(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Ng=n,Ng}var jg,J5;function Up(){if(J5)return jg;J5=1;var e=Go(),t=e.Symbol;return jg=t,jg}var Kg,e$;function bK(){if(e$)return Kg;e$=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 Kg=e,Kg}var zg,t$;function Aa(){if(t$)return zg;t$=1;var e=Array.isArray;return zg=e,zg}var qg,n$;function xK(){if(n$)return qg;n$=1;var e=Up(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=n.call(o,i),l=o[i];try{o[i]=void 0;var f=!0}catch{}var h=r.call(o);return f&&(s?o[i]=l:delete o[i]),h}return qg=a,qg}var Ug,r$;function DK(){if(r$)return Ug;r$=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Ug=n,Ug}var Wg,i$;function uc(){if(i$)return Wg;i$=1;var e=Up(),t=xK(),n=DK(),r="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:r:a&&a in Object(s)?t(s):n(s)}return Wg=o,Wg}var Hg,a$;function lc(){if(a$)return Hg;a$=1;function e(t){return t!=null&&typeof t=="object"}return Hg=e,Hg}var Gg,o$;function Wp(){if(o$)return Gg;o$=1;var e=uc(),t=lc(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return Gg=r,Gg}var Yg,s$;function $K(){if(s$)return Yg;s$=1;var e=Up(),t=bK(),n=Aa(),r=Wp(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(n(s))return t(s,o)+"";if(r(s))return a?a.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return Yg=o,Yg}var Zg,u$;function V1(){if(u$)return Zg;u$=1;var e=$K();function t(n){return n==null?"":e(n)}return Zg=t,Zg}var Xg,l$;function EK(){if(l$)return Xg;l$=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 o=Array(a);++i<a;)o[i]=t[i+n];return o}return Xg=e,Xg}var Qg,c$;function CK(){if(c$)return Qg;c$=1;var e=EK();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 Qg=t,Qg}var Jg,d$;function j6(){if(d$)return Jg;d$=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,a="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+i+a+"]");function l(f){return s.test(f)}return Jg=l,Jg}var e0,f$;function wK(){if(f$)return e0;f$=1;function e(t){return t.split("")}return e0=e,e0}var t0,h$;function AK(){if(h$)return t0;h$=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,a="\\ufe0e\\ufe0f",o="["+e+"]",s="["+i+"]",l="\\ud83c[\\udffb-\\udfff]",f="(?:"+s+"|"+l+")",h="[^"+e+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",b="\\u200d",$=f+"?",x="["+a+"]?",A="(?:"+b+"(?:"+[h,m,g].join("|")+")"+x+$+")*",w=x+$+A,C="(?:"+[h+s+"?",s,m,g,o].join("|")+")",E=RegExp(l+"(?="+l+")|"+C+w,"g");function T(P){return P.match(E)||[]}return t0=T,t0}var n0,p$;function SK(){if(p$)return n0;p$=1;var e=wK(),t=j6(),n=AK();function r(i){return t(i)?n(i):e(i)}return n0=r,n0}var r0,m$;function TK(){if(m$)return r0;m$=1;var e=CK(),t=j6(),n=SK(),r=V1();function i(a){return function(o){o=r(o);var s=t(o)?n(o):void 0,l=s?s[0]:o.charAt(0),f=s?e(s,1).join(""):o.slice(1);return l[a]()+f}}return r0=i,r0}var i0,g$;function PK(){if(g$)return i0;g$=1;var e=TK(),t=e("toUpperCase");return i0=t,i0}var a0,v$;function _K(){if(v$)return a0;v$=1;var e=V1(),t=PK();function n(r){return t(e(r).toLowerCase())}return a0=n,a0}var BK=_K();const FK=ar(BK);var ys=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Gy={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",o="[object Array]",s="[object Boolean]",l="[object Date]",f="[object Error]",h="[object Function]",m="[object GeneratorFunction]",g="[object Map]",b="[object Number]",$="[object Object]",x="[object Promise]",A="[object RegExp]",w="[object Set]",C="[object String]",E="[object Symbol]",T="[object WeakMap]",P="[object ArrayBuffer]",F="[object DataView]",q="[object Float32Array]",te="[object Float64Array]",se="[object Int8Array]",ae="[object Int16Array]",O="[object Int32Array]",Ee="[object Uint8Array]",be="[object Uint8ClampedArray]",z="[object Uint16Array]",G="[object Uint32Array]",V=/[\\^$.*+?()[\]{}|]/g,R=/\w*$/,K=/^\[object .+?Constructor\]$/,fe=/^(?:0|[1-9]\d*)$/,M={};M[a]=M[o]=M[P]=M[F]=M[s]=M[l]=M[q]=M[te]=M[se]=M[ae]=M[O]=M[g]=M[b]=M[$]=M[A]=M[w]=M[C]=M[E]=M[Ee]=M[be]=M[z]=M[G]=!0,M[f]=M[h]=M[T]=!1;var oe=typeof ys=="object"&&ys&&ys.Object===Object&&ys,le=typeof self=="object"&&self&&self.Object===Object&&self,Se=oe||le||Function("return this")(),_e=t&&!t.nodeType&&t,Be=_e&&!0&&e&&!e.nodeType&&e,Ge=Be&&Be.exports===_e;function Xe(ie,Me){return ie.set(Me[0],Me[1]),ie}function Ne(ie,Me){return ie.add(Me),ie}function qe(ie,Me){for(var We=-1,pt=ie?ie.length:0;++We<pt&&Me(ie[We],We,ie)!==!1;);return ie}function ke(ie,Me){for(var We=-1,pt=Me.length,xn=ie.length;++We<pt;)ie[xn+We]=Me[We];return ie}function je(ie,Me,We,pt){for(var xn=-1,rr=ie?ie.length:0;++xn<rr;)We=Me(We,ie[xn],xn,ie);return We}function Te(ie,Me){for(var We=-1,pt=Array(ie);++We<ie;)pt[We]=Me(We);return pt}function Ye(ie,Me){return ie==null?void 0:ie[Me]}function ht(ie){var Me=!1;if(ie!=null&&typeof ie.toString!="function")try{Me=!!(ie+"")}catch{}return Me}function Ht(ie){var Me=-1,We=Array(ie.size);return ie.forEach(function(pt,xn){We[++Me]=[xn,pt]}),We}function xt(ie,Me){return function(We){return ie(Me(We))}}function _t(ie){var Me=-1,We=Array(ie.size);return ie.forEach(function(pt){We[++Me]=pt}),We}var Wr=Array.prototype,Jt=Function.prototype,xe=Object.prototype,Ae=Se["__core-js_shared__"],Fe=function(){var ie=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return ie?"Symbol(src)_1."+ie:""}(),Qe=Jt.toString,et=xe.hasOwnProperty,Je=xe.toString,gt=RegExp("^"+Qe.call(et).replace(V,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kt=Ge?Se.Buffer:void 0,Dt=Se.Symbol,bn=Se.Uint8Array,Dr=xt(Object.getPrototypeOf,Object),zt=Object.create,Pt=xe.propertyIsEnumerable,It=Wr.splice,qt=Object.getOwnPropertySymbols,pr=kt?kt.isBuffer:void 0,Hr=xt(Object.keys,Object),li=hi(Se,"DataView"),Br=hi(Se,"Map"),Ba=hi(Se,"Promise"),Bs=hi(Se,"Set"),bt=hi(Se,"WeakMap"),ci=hi(Object,"create"),uo=Mr(li),Sc=Mr(Br),Nu=Mr(Ba),Tc=Mr(Bs),ju=Mr(bt),Fs=Dt?Dt.prototype:void 0,Ku=Fs?Fs.valueOf:void 0;function ta(ie){var Me=-1,We=ie?ie.length:0;for(this.clear();++Me<We;){var pt=ie[Me];this.set(pt[0],pt[1])}}function na(){this.__data__=ci?ci(null):{}}function yt(ie){return this.has(ie)&&delete this.__data__[ie]}function wn(ie){var Me=this.__data__;if(ci){var We=Me[ie];return We===r?void 0:We}return et.call(Me,ie)?Me[ie]:void 0}function lo(ie){var Me=this.__data__;return ci?Me[ie]!==void 0:et.call(Me,ie)}function zu(ie,Me){var We=this.__data__;return We[ie]=ci&&Me===void 0?r:Me,this}ta.prototype.clear=na,ta.prototype.delete=yt,ta.prototype.get=wn,ta.prototype.has=lo,ta.prototype.set=zu;function $r(ie){var Me=-1,We=ie?ie.length:0;for(this.clear();++Me<We;){var pt=ie[Me];this.set(pt[0],pt[1])}}function qu(){this.__data__=[]}function Uu(ie){var Me=this.__data__,We=co(Me,ie);if(We<0)return!1;var pt=Me.length-1;return We==pt?Me.pop():It.call(Me,We,1),!0}function Pc(ie){var Me=this.__data__,We=co(Me,ie);return We<0?void 0:Me[We][1]}function Gr(ie){return co(this.__data__,ie)>-1}function at(ie,Me){var We=this.__data__,pt=co(We,ie);return pt<0?We.push([ie,Me]):We[pt][1]=Me,this}$r.prototype.clear=qu,$r.prototype.delete=Uu,$r.prototype.get=Pc,$r.prototype.has=Gr,$r.prototype.set=at;function dn(ie){var Me=-1,We=ie?ie.length:0;for(this.clear();++Me<We;){var pt=ie[Me];this.set(pt[0],pt[1])}}function ra(){this.__data__={hash:new ta,map:new(Br||$r),string:new ta}}function di(ie){return Si(this,ie).delete(ie)}function Yn(ie){return Si(this,ie).get(ie)}function ks(ie){return Si(this,ie).has(ie)}function Fa(ie,Me){return Si(this,ie).set(ie,Me),this}dn.prototype.clear=ra,dn.prototype.delete=di,dn.prototype.get=Yn,dn.prototype.has=ks,dn.prototype.set=Fa;function fi(ie){this.__data__=new $r(ie)}function Rn(){this.__data__=new $r}function Qo(ie){return this.__data__.delete(ie)}function jt(ie){return this.__data__.get(ie)}function _c(ie){return this.__data__.has(ie)}function Wu(ie,Me){var We=this.__data__;if(We instanceof $r){var pt=We.__data__;if(!Br||pt.length<n-1)return pt.push([ie,Me]),this;We=this.__data__=new dn(pt)}return We.set(ie,Me),this}fi.prototype.clear=Rn,fi.prototype.delete=Qo,fi.prototype.get=jt,fi.prototype.has=_c,fi.prototype.set=Wu;function Bc(ie,Me){var We=go(ie)||Ra(ie)?Te(ie.length,String):[],pt=We.length,xn=!!pt;for(var rr in ie)et.call(ie,rr)&&!(xn&&(rr=="length"||Vs(rr,pt)))&&We.push(rr);return We}function Ms(ie,Me,We){var pt=ie[Me];(!(et.call(ie,Me)&&Ma(pt,We))||We===void 0&&!(Me in ie))&&(ie[Me]=We)}function co(ie,Me){for(var We=ie.length;We--;)if(Ma(ie[We][0],Me))return We;return-1}function Hu(ie,Me){return ie&&gr(Me,bo(Me),ie)}function Rs(ie,Me,We,pt,xn,rr,sr){var Nn;if(pt&&(Nn=rr?pt(ie,xn,rr,sr):pt(ie)),Nn!==void 0)return Nn;if(!yo(ie))return ie;var An=go(ie);if(An){if(Nn=Ls(ie),!Me)return Jo(ie,Nn)}else{var Pi=Ti(ie),_i=Pi==h||Pi==m;if(es(ie))return Os(ie,Me);if(Pi==$||Pi==a||_i&&!rr){if(ht(ie))return rr?ie:{};if(Nn=Xu(_i?{}:ie),!Me)return ho(ie,Hu(Nn,ie))}else{if(!M[Pi])return rr?ie:{};Nn=pn(ie,Pi,Rs,Me)}}sr||(sr=new fi);var Ks=sr.get(ie);if(Ks)return Ks;if(sr.set(ie,Nn),!An)var ts=We?po(ie):bo(ie);return qe(ts||ie,function(ur,xo){ts&&(xo=ur,ur=ie[xo]),Ms(Nn,xo,Rs(ur,Me,We,pt,xo,ie,sr))}),Nn}function Fc(ie){return yo(ie)?zt(ie):{}}function kc(ie,Me,We){var pt=Me(ie);return go(ie)?pt:ke(pt,We(ie))}function Mc(ie){return Je.call(ie)}function Gu(ie){if(!yo(ie)||Ns(ie))return!1;var Me=Ju(ie)||ht(ie)?gt:K;return Me.test(Mr(ie))}function Is(ie){if(!Qu(ie))return Hr(ie);var Me=[];for(var We in Object(ie))et.call(ie,We)&&We!="constructor"&&Me.push(We);return Me}function Os(ie,Me){if(Me)return ie.slice();var We=new ie.constructor(ie.length);return ie.copy(We),We}function fo(ie){var Me=new ie.constructor(ie.byteLength);return new bn(Me).set(new bn(ie)),Me}function Yu(ie,Me){var We=Me?fo(ie.buffer):ie.buffer;return new ie.constructor(We,ie.byteOffset,ie.byteLength)}function Zu(ie,Me,We){var pt=Me?We(Ht(ie),!0):Ht(ie);return je(pt,Xe,new ie.constructor)}function Fr(ie){var Me=new ie.constructor(ie.source,R.exec(ie));return Me.lastIndex=ie.lastIndex,Me}function mr(ie,Me,We){var pt=Me?We(_t(ie),!0):_t(ie);return je(pt,Ne,new ie.constructor)}function kr(ie){return Ku?Object(Ku.call(ie)):{}}function ka(ie,Me){var We=Me?fo(ie.buffer):ie.buffer;return new ie.constructor(We,ie.byteOffset,ie.length)}function Jo(ie,Me){var We=-1,pt=ie.length;for(Me||(Me=Array(pt));++We<pt;)Me[We]=ie[We];return Me}function gr(ie,Me,We,pt){We||(We={});for(var xn=-1,rr=Me.length;++xn<rr;){var sr=Me[xn],Nn=void 0;Ms(We,sr,Nn===void 0?ie[sr]:Nn)}return We}function ho(ie,Me){return gr(ie,or(ie),Me)}function po(ie){return kc(ie,bo,or)}function Si(ie,Me){var We=ie.__data__;return mo(Me)?We[typeof Me=="string"?"string":"hash"]:We.map}function hi(ie,Me){var We=Ye(ie,Me);return Gu(We)?We:void 0}var or=qt?xt(qt,Object):Gt,Ti=Mc;(li&&Ti(new li(new ArrayBuffer(1)))!=F||Br&&Ti(new Br)!=g||Ba&&Ti(Ba.resolve())!=x||Bs&&Ti(new Bs)!=w||bt&&Ti(new bt)!=T)&&(Ti=function(ie){var Me=Je.call(ie),We=Me==$?ie.constructor:void 0,pt=We?Mr(We):void 0;if(pt)switch(pt){case uo:return F;case Sc:return g;case Nu:return x;case Tc:return w;case ju:return T}return Me});function Ls(ie){var Me=ie.length,We=ie.constructor(Me);return Me&&typeof ie[0]=="string"&&et.call(ie,"index")&&(We.index=ie.index,We.input=ie.input),We}function Xu(ie){return typeof ie.constructor=="function"&&!Qu(ie)?Fc(Dr(ie)):{}}function pn(ie,Me,We,pt){var xn=ie.constructor;switch(Me){case P:return fo(ie);case s:case l:return new xn(+ie);case F:return Yu(ie,pt);case q:case te:case se:case ae:case O:case Ee:case be:case z:case G:return ka(ie,pt);case g:return Zu(ie,pt,We);case b:case C:return new xn(ie);case A:return Fr(ie);case w:return mr(ie,pt,We);case E:return kr(ie)}}function Vs(ie,Me){return Me=Me??i,!!Me&&(typeof ie=="number"||fe.test(ie))&&ie>-1&&ie%1==0&&ie<Me}function mo(ie){var Me=typeof ie;return Me=="string"||Me=="number"||Me=="symbol"||Me=="boolean"?ie!=="__proto__":ie===null}function Ns(ie){return!!Fe&&Fe in ie}function Qu(ie){var Me=ie&&ie.constructor,We=typeof Me=="function"&&Me.prototype||xe;return ie===We}function Mr(ie){if(ie!=null){try{return Qe.call(ie)}catch{}try{return ie+""}catch{}}return""}function js(ie){return Rs(ie,!0,!0)}function Ma(ie,Me){return ie===Me||ie!==ie&&Me!==Me}function Ra(ie){return vo(ie)&&et.call(ie,"callee")&&(!Pt.call(ie,"callee")||Je.call(ie)==a)}var go=Array.isArray;function ia(ie){return ie!=null&&Rc(ie.length)&&!Ju(ie)}function vo(ie){return Ic(ie)&&ia(ie)}var es=pr||en;function Ju(ie){var Me=yo(ie)?Je.call(ie):"";return Me==h||Me==m}function Rc(ie){return typeof ie=="number"&&ie>-1&&ie%1==0&&ie<=i}function yo(ie){var Me=typeof ie;return!!ie&&(Me=="object"||Me=="function")}function Ic(ie){return!!ie&&typeof ie=="object"}function bo(ie){return ia(ie)?Bc(ie):Is(ie)}function Gt(){return[]}function en(){return!1}e.exports=js})(Gy,Gy.exports);var bs=Gy.exports,Yy=function(){return Yy=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},Yy.apply(this,arguments)};function kK(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(h){try{f(r.next(h))}catch(m){o(m)}}function l(h){try{f(r.throw(h))}catch(m){o(m)}}function f(h){h.done?a(h.value):i(h.value).then(s,l)}f((r=r.apply(e,[])).next())})}function MK(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(f){return function(h){return l([f,h])}}function l(f){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,f[0]&&(n=0)),n;)try{if(r=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,i=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){n.label=f[1];break}if(f[0]===6&&n.label<a[1]){n.label=a[1],a=f;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(f);break}a[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(h){f=[6,h],i=0}finally{r=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function rp(e,t,n,r,i){return kK(this,void 0,void 0,function(){var a,o;return MK(this,function(s){switch(s.label){case 0:if(n===void 0)return[2];o=0,s.label=1;case 1:return o<n.length?[4,n[o](e,t,r,i,n)]:[3,4];case 2:if(a=s.sent(),a==="canceled")return[3,4];s.label=3;case 3:return o++,[3,1];case 4:return a!=="canceled"?[2,a]:[2]}})})}var Zy=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:Yy({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},RK=function(){function e(t,n,r,i){var a=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var o=bs(n);rp(t,o,r,this.htmlPluginState,i).then(function(s){if(a.isMounted){a.htmlPluginState.pluginEventSubscription.forEach(function(f){f()});var l=Zy(i,s);a.imgElement.setAttribute("src",o.toURL(l))}})}return e.prototype.update=function(t,n,r){var i=this,a=bs(t);rp(this.imgElement,a,n,this.htmlPluginState).then(function(o){if(i.isMounted){var s=Zy(r,o);i.imgElement.setAttribute("src",a.toURL(s))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let Mn=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}},IK=class extends Error{constructor(t="Unsupported"){super(t)}};function N1(e){return new IK(e)}function OK(){return this._qualifierModel||{error:N1(`unsupported qualifier ${this.constructor.name}`)}}let LK=class{constructor(){this._qualifierModel={}}toJson(){return OK.apply(this)}},Rt=class extends LK{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof Mn?this.qualifierValue=n:(this.qualifierValue=new Mn,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}},Xi=class extends Rt{constructor(t,n){let r;n?r=new Mn([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function VK(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function NK(){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:N1(`unsupported action ${this.constructor.name}`)}}let jK=class{constructor(){this._actionModel={}}toJson(){return NK.apply(this)}},Sa=class extends jK{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(),VK(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new Xi(r)):this.qualifiers.set(n,new Rt(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Xi(t)):t instanceof Xi&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class j1 extends Sa{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class Hp extends j1{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new Rt("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new Rt("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new Rt("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new Rt("h",t)),this}static fromJson(t){const n=new Hp;return t.width&&n.width(t.width),t.height&&n.height(t.height),t.x&&n.x(t.x),t.y&&n.y(t.y),n}}function KK(){return new Hp}function K6(){return new j1("faces")}function zK(){return new j1("ocr_text")}class qK extends Sa{constructor(t){super(),this._actionModel={},this._strength=t,this._actionModel.actionType="blur",this._actionModel.strength=t}region(t){return this._region=t,this._actionModel.region=t.toJson(),this}strength(t){return this._strength=t,this._actionModel.strength=t,this}prepareQualifiers(){const t=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new Rt("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Rt("e",`blur_region${t}`)),this.addQualifier(new Rt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Rt("e",`blur_faces${t}`))):this.addQualifier(new Rt("e",`blur${t}`))}static fromJson(t){const{strength:n,region:r}=t,i=new this(n);return n&&i.strength(n),r&&r.regionType==="faces"&&i.region(K6()),r&&r.regionType==="ocr_text"&&i.region(zK()),r&&r.regionType==="custom"&&i.region(Hp.fromJson(r)),i}}function ku(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const z6={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},UK={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},q6={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},U6={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},WK={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},W6={444:"CHROMA_444",420:"CHROMA_420"},HK={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},GK=ku(W6);ku(HK);const YK=ku(z6),ZK=ku(UK),H6=ku(q6);ku(U6);ku(WK);class G6 extends Sa{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=H6[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new Mn([t,`${n}`]).setDelimiter(":"):r=new Mn(t),new Rt("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,a=q6[n]||n;return new this(a,r||i)}}class XK extends G6{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=H6[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 Gp(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class QK extends Sa{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 Mn(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new Mn(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new Mn(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new Mn(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new Mn(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new Rt("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:a,detailLevel:o,numOfColors:s}=t,l=new this;return r&&l.paths(r),i&&l.cornersLevel(i),a&&l.despeckleLevel(a),o&&l.detailsLevel(o),s&&l.numOfColors(s),l}}class JK extends XK{level(t){return this._actionModel.level=t,this.setLevel(t)}}class ez extends Sa{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new Rt("e",new Mn("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new Rt("e",new Mn(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new Rt("e",new Mn(["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 tz extends JK{color(t){return this._actionModel.color=t,this.addQualifier(new Rt("co",new Mn(Gp(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,a=new this(n,r);return i&&a.color(i),a}}class nz extends Sa{constructor(t){super(),this._actionModel={},this._squareSize=t,this._actionModel.actionType="pixelate",this._actionModel.squareSize=t}region(t){return this._region=t,this._actionModel.region={regionType:this._region.regionType},this}squareSize(t){return this._squareSize=t,this._actionModel.squareSize=t,this}prepareQualifiers(){const t=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new Rt("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Rt("e",`pixelate_region${t}`)),this.addQualifier(new Rt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Rt("e",`pixelate_faces${t}`))):this.addQualifier(new Rt("e",`pixelate${t}`))}static fromJson(t){const{region:n,squareSize:r}=t,i=new this(r);return r&&i.squareSize(r),n&&n.regionType==="faces"&&i.region(K6()),n&&n.regionType==="custom"&&i.region(KK()),i}}const rz=e=>uz(encodeURIComponent,oz,sz)(e),iz=/[!'()*~_.-]/g,az={"!":"%21","'":"%27","(":"%28",")":"%29","*":"%2A","~":"%7E",_:"%5F",".":"%2E","-":"%2D"},oz=e=>e.replace(iz,t=>{var n;return(n=az[t])!==null&&n!==void 0?n:t}),sz=e=>e.replace(/%20/g," "),uz=(...e)=>t=>e.reduce((n,r)=>r(n),t);function lz(e){return new qK(e)}function cz(){return new G6("grayscale")}function y$(e){return new tz("colorize",e)}function dz(){return new QK}function fz(){return new ez}function hz(e){return new nz(e)}let pz=class extends Sa{constructor(t){super(),this._actionModel={},this.addQualifier(new Rt("b",new Mn(Gp(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},b$=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:N1(`unsupported action ${this.constructor.name}`)}}};function mz(e){const t=e;return"error"in t&&!!t.error}function gz(){return new Xi("ignore_aspect_ratio")}function vz(){return new Xi("lossy")}function yz(){return new Xi("preserve_transparency")}function bz(e){return new Xi("progressive",e)}function xz(){return new Xi("region_relative")}function Dz(){return new Xi("relative")}let K1=class extends Mn{constructor(t){super(t),this.val=t}getValue(){return this.val}},Y6=class extends Sa{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof K1?i=n.getValue():i=n,this._actionModel.actionType=ZK[t],this._actionModel[r]=i,this.addQualifier(new Rt(t,n))}},$z=class extends Xi{constructor(t){super("progressive",t)}},Xy=class extends Y6{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(vz()),this}progressive(t){return t instanceof $z?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(bz(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(yz()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:a}=t;let o;return n?o=new this("f",n):o=new this("f"),i&&(i.mode?o.progressive(i.mode):o.progressive()),r&&o.lossy(),a&&o.preserveTransparency(),o}},Yp=class Z6{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 b$(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof Z6?this.actions=this.actions.concat(t.actions):this.actions.push(new b$(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 Xy("q",t)),this}format(t){return this.addAction(new Xy("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 pz(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Sa;let r=t;return typeof t=="string"&&(r=new Xi(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(mz(r))return r;t.push(r)}return{actions:t}}};function x$(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 Ez extends Mn{}class Cz extends Sa{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=YK[t]||t,this.addQualifier(new Rt("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new Rt("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new Rt("w",t))}aspectRatio(t){if(t instanceof Ez)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new Rt("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=x$(t),this.addQualifier(new Rt("ar",x$(t)));if(t instanceof Xi)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(Dz())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(xz())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:a}=t,{aspectRatio:o,width:s,height:l}=r,f=z6[n]||n,h=new this(f,s,l);return o&&h.aspectRatio(o==="ignore_aspect_ratio"?gz():o),i&&h.relative(),a&&h.regionRelative(),h}}class z1 extends Rt{constructor(t){super("g",new Mn(t))}}class X6 extends z1{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class Q6 extends z1{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class J6 extends z1{constructor(t){super(t)}}function wz(e){return new J6(e)}function eT(...e){const t=[...e];return new Q6(t)}function tT(){return new X6}class Hl extends Mn{constructor(t){super(),this.name=t}toString(){return this.name}}function Az(){return new Hl("ocr_text")}function Sz(e){return e&&`${e}`.split(":")[0]==="auto"}function Tz(e){const t=q1(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function q1(e){return`${e}`.replace("g_","")}function Pz(e){return{compass:q1(e),gravityType:"direction"}}function _z(e){return q1(e)==="ocr_text"}function Bz(){return{gravityType:"ocr"}}function Fz(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function kz(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 nT(e){let t;const n=e==="auto"?new X6: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(kz)}}function Mz(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),o=tT().autoFocus(...a);i.fallbackGravity=nT(o)}return i}function Rz(e){const n=e.split(":").map(r=>new Hl(r));return new Q6(n)}function Iz(e){return Tz(e)?Pz(e):_z(e)?Bz():Sz(e)||Fz(e)?nT(e):Mz(typeof e=="string"?Rz(e):e)}class U1 extends Mn{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof Hl?t:new Hl(t);return new U1(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 rT extends Mn{constructor(t){super(),this.val=t}toString(){return this.val}}function Oz(e){return e.gravityType==="direction"}function Lz(e){return e.gravityType==="ocr"}function Vz(e){return e.gravityType==="auto"}function Nz(e){const{object:t,weight:n,avoid:r}=e,i=new U1(new Hl(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function iT(e){const n=(e.autoFocus||[]).map(Nz);return tT().autoFocus(...n)}function jz(e){const t=(e.focusOnObjects||[]).map(r=>new Hl(r)),n=eT(...t);if(e.fallbackGravity){const r=iT(e.fallbackGravity);n.fallbackGravity(r)}return n}function Kz(e){return Oz(e)?new J6(new rT(e.compass)):Lz(e)?eT(Az()):Vz(e)?iT(e):jz(e)}class W1 extends Cz{gravity(t){this._actionModel.gravity=Iz(t);const n=typeof t=="string"?new Rt("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(Kz(t.gravity)),n}}class sf extends Rt{constructor(t){super("b"),t&&this.addValue(t)}}const aT=100,zz=0;class qz extends sf{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}`:`:${aT}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var oT=qz;class H1 extends sf{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>Gp(n)),this}}class sT extends H1{toString(){return`
|
|
2
|
-
b_auto:border
|
|
3
|
-
${this._contrast?"_contrast":""}
|
|
4
|
-
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
5
|
-
`.replace(/\s+/g,"")}}class uT extends H1{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class lT extends uT{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 cT extends uT{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 dT extends H1{toString(){return`
|
|
18
|
-
b_auto:predominant
|
|
19
|
-
${this._contrast?"_contrast":""}
|
|
20
|
-
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
21
|
-
`.replace(/\s+/g,"")}}class fT extends sf{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_${rz(this._prompt)}`:""}`}}function hT(e){return`${e}`.replace("b_","")}function Uz(){return{backgroundType:"auto"}}function Wz(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 G1(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function Hz(e){return Object.assign(Object.assign({},G1(e)),{backgroundType:"border"})}function pT(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=G1(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function Gz(e){return Object.assign(Object.assign({},pT(e)),{backgroundType:"borderGradient"})}function Yz(e){return{backgroundType:"color",color:hT(e)}}function Zz(e){return Object.assign(Object.assign({},G1(e)),{backgroundType:"predominant"})}function Xz(e){return Object.assign(Object.assign({},pT(e)),{backgroundType:"predominantGradient"})}function Qz(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function Jz(e){return hT(e)==="auto"?Uz():e instanceof oT?Wz(e):e instanceof sT?Hz(e):e instanceof lT?Gz(e):e instanceof dT?Zz(e):e instanceof cT?Xz(e):e instanceof fT?Qz(e):Yz(e)}function eq(){return new K1("svg")}function Y1(){return new K1("auto")}function mT(){return new sT}function gT(){return new sf("auto")}function vT(){return new lT}function yT(){return new cT}function bT(){return new dT}function xT(e){return new sf(Gp(e))}function tq(){return new oT}function DT(){return new fT}const $T={auto:gT,border:mT,borderGradient:vT,predominantGradient:yT,predominant:bT,color:xT,blurred:tq,generativeFill:DT};function nq(e){const{brightness:t,intensity:n}=e,r=$T.blurred();return r.brightness(t??zz),r.intensity(n??aT),r}function D$(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 $$(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function rq(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function iq(e){const{backgroundType:t}=e;switch(t){case"auto":return gT();case"blurred":return nq(e);case"border":return $$(mT(),e);case"borderGradient":return D$(vT(),e);case"predominant":return $$(bT(),e);case"predominantGradient":return D$(yT(),e);case"generativeFill":return rq(DT(),e);default:return xT(e.color)}}class aq extends W1{background(t){return this._actionModel.background=Jz(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new Rt("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new Rt("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.background&&n.background(iq(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class oq extends W1{x(t){return this._actionModel.x=t,this.addQualifier(new Rt("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Rt("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new Rt("z",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.x&&n.x(t.x),t.y&&n.y(t.y),t.zoom&&n.zoom(t.zoom),n}}class sq extends W1{x(t){return this._actionModel.x=t,this.addQualifier(new Rt("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Rt("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.x&&n.x(t.x),t.y&&n.y(t.y),n}}function uq(e,t){return new oq("crop",e,t)}function lq(e,t){return new sq("fill",e,t)}function cq(e,t){return new aq("pad",e,t)}class dq extends Y6{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=W6[t];const n=new Mn([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new Rt("q",n))}quantization(t){this._actionModel.quantization=t;const n=new Mn([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new Rt("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,a=U6[n]||n,o=new this(a);if(r){const s=GK[r.toUpperCase()];s&&o.chromaSubSampling(+s)}return i&&o.quantization(i),o}}function Zp(e){return new Xy("f",e)}function Xp(e){return new dq(e)}function fq(){return new rT("north_east")}y$(70).color("black"),y$(40).color("white"),cz(),fz();var hq=new Yp().effect(dz()).delivery(Xp("auto")).delivery(Zp(eq())),pq=new Yp().effect(hz()).delivery(Xp("auto")).delivery(Zp(Y1())),mq=new Yp().effect(lz(2e3)).delivery(Xp("auto")).delivery(Zp(Y1())),gq=new Yp().resize(cq("iw_div_2").aspectRatio(1).background($T.auto())).resize(uq(1,1).gravity(wz(fq()))).resize(lq().height("ih").width("iw")).delivery(Xp("auto")).delivery(Zp(Y1())),E$={vectorize:hq,pixelate:pq,blur:mq,"predominant-color":gq},C$="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",w$={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},A$="?_a=",vq=function(){function e(t,n,r,i,a,o,s){var l=this;this.mimeType="video",this.mimeSubTypes=w$,this.videoElement=t,this.originalVideo=n,this.videoOptions=s,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var f=bs(n);rp(t,n,i,this.htmlPluginState).then(function(){l.htmlPluginState.pluginEventSubscription.forEach(function(h){h()}),l.setVideoAttributes(a,o),l.handleSourceToVideo(f,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(bs(t),a)})}},e.prototype.generateUserSources=function(t,n){var r=this;n.map(function(i){var a=i.type,o=i.codecs,s=i.transcode;return r.appendSourceTag(bs(t).transcode(s),a,r.buildMimeType(a,o))})},e.prototype.appendSourceTag=function(t,n,r){var i,a=document.createElement("source"),o=(i=this.videoOptions)===null||i===void 0?void 0:i.useFetchFormat;o&&t.format(n);var s=t.toURL(),l=s.split(A$),f=l[1]?"".concat(A$).concat(l[1]):"",h=o?"":".".concat(n);a.src="".concat(l[0]).concat(h).concat(f),a.type=r||"video/".concat(w$[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=bs(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,o=Object.entries(t);a<o.length;a++){var s=o[a],l=s[0],f=s[1];f&&this.videoElement.setAttribute(l,l==="poster"?f:"")}},e.prototype.update=function(t,n,r,i,a){var o=this;if(t!==this.originalVideo){for(var s=this.videoElement.getElementsByTagName("SOURCE");s[0];)s[0].parentNode.removeChild(s[0]);rp(this.videoElement,t,r,this.htmlPluginState).then(function(){o.setVideoAttributes(i,a),o.handleSourceToVideo(t,n),o.videoElement.load()})}},e}(),yq=typeof ys=="object"&&ys&&ys.Object===Object&&ys,bq=typeof self=="object"&&self&&self.Object===Object&&self;yq||bq||Function("return this")();function Z1(){return typeof window<"u"}function xq(e){return e instanceof HTMLImageElement}function Dq(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,a=i===void 0?.1:i;return $q.bind(null,r,a)}function $q(e,t,n,r,i,a){return e===void 0&&(e="0px"),t===void 0&&(t=.1),Z1()?new Promise(function(o){var s=function(){return o({lazyload:!0})},l=Cq(n,s,e,t);i.cleanupCallbacks.push(function(){l(),o("canceled")})}):!1}function Eq(){return window&&"IntersectionObserver"in window}function Cq(e,t,n,r){try{if(!Eq())return t(),function(){};var i=new IntersectionObserver(function(a){a.forEach(function(o){o.isIntersecting&&(i.unobserve(o.target),t())})},{rootMargin:n,threshold:r});return i.observe(e),function(){e&&i.observe(e)}}catch{t()}}function wq(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return Aq.bind(null,r)}function Aq(e,t,n,r,i,a){E$[e]||(e="vectorize");var o=E$[e].actions,s=bs(n);if(o.forEach(function(f){s.addAction(f)}),!Z1())return n.transformation=s.transformation,!0;if(xq(t)){s.transformation.actions.forEach(function(f,h){f instanceof Sa&&f.getActionTag()==="responsive"&&delete s.transformation.actions[h]});var l=Zy(i,{placeholder:!0});return t.src=s.toURL(l),t.onerror=function(){t.src=C$},new Promise(function(f){t.onload=function(){f()}}).then(function(){return new Promise(function(f){r.cleanupCallbacks.push(function(){t.src=C$,f("canceled")});var h=new Image;h.src=n.toURL(l),h.onload=function(){f({placeholder:!0})},h.onerror=function(){f({placeholder:!0})}})})}}function Sq(e,t,n){var r=bs(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 ip(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 Qy=function(e,t){return Qy=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])},Qy(e,t)};function ET(e,t){Qy(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Od=function(){return Od=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},Od.apply(this,arguments)};function CT(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 o0={sdkSemver:"1.14.3",techVersion:de.default.version,sdkCode:"J"},Tq=function(e){ET(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=de.default.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new RK(this.imageRef.current,this.props.cldImg,this.props.plugins,o0)},t.prototype.componentDidUpdate=function(){ip(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,o0)},t.prototype.componentWillUnmount=function(){ip(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=CT(n,["cldImg","plugins"]);if(Z1())return de.default.createElement("img",Od({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=Sq(this.props.plugins,this.props.cldImg,o0);return de.default.createElement("img",Od({},r,{src:i}))},t}(de.default.Component),Pq=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){ET(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 vq(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(){ip(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){ip(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return Pq.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=CT(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return de.default.createElement("video",Od({},r,{ref:this.attachRef}))},t})(I.Component);function _q(e){return!(typeof e!="object"||e instanceof Array)}class Bq{filterOutNonSupportedKeys(t,n){const r=Object.create({});return _q(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 S$=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class X1 extends Bq{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,S$);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,S$);return new X1(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 Ld{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 Fq extends Error{constructor(t="Unsupported"){super(t)}}function Q1(e){return new Fq(e)}function kq(){return this._qualifierModel||{error:Q1(`unsupported qualifier ${this.constructor.name}`)}}class Mq{constructor(){this._qualifierModel={}}toJson(){return kq.apply(this)}}class Qp extends Mq{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof Ld?this.qualifierValue=n:(this.qualifierValue=new Ld,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 Es extends Qp{constructor(t,n){let r;n?r=new Ld([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function Rq(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function Iq(){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:Q1(`unsupported action ${this.constructor.name}`)}}class Oq{constructor(){this._actionModel={}}toJson(){return Iq.apply(this)}}class J1 extends Oq{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(),Rq(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 Es(r)):this.qualifiers.set(n,new Qp(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Es(t)):t instanceof Es&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function Lq(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class Vq extends J1{constructor(t){super(),this._actionModel={},this.addQualifier(new Qp("b",new Ld(Lq(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class T${constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Q1(`unsupported action ${this.constructor.name}`)}}}function Nq(e){const t=e;return"error"in t&&!!t.error}function jq(){return new Es("lossy")}function Kq(){return new Es("preserve_transparency")}function zq(e){return new Es("progressive",e)}class qq extends Ld{constructor(t){super(t),this.val=t}getValue(){return this.val}}function Mu(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const Uq={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},Wq={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},Hq={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},Gq={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},Yq={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},Zq={444:"CHROMA_444",420:"CHROMA_420"},Xq={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};Mu(Zq);Mu(Xq);Mu(Uq);const Qq=Mu(Wq);Mu(Hq);Mu(Gq);Mu(Yq);class Jq extends J1{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof qq?i=n.getValue():i=n,this._actionModel.actionType=Qq[t],this._actionModel[r]=i,this.addQualifier(new Qp(t,n))}}class eU extends Es{constructor(t){super("progressive",t)}}class ap extends Jq{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(jq()),this}progressive(t){return t instanceof eU?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(zq(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(Kq()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:a}=t;let o;return n?o=new this("f",n):o=new this("f"),i&&(i.mode?o.progressive(i.mode):o.progressive()),r&&o.lossy(),a&&o.preserveTransparency(),o}}class Jp{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 T$(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof Jp?this.actions=this.actions.concat(t.actions):this.actions.push(new T$(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 ap("q",t)),this}format(t){return this.addAction(new ap("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 Vq(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new J1;let r=t;return typeof t=="string"&&(r=new Es(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(Nq(r))return r;t.push(r)}return{actions:t}}}class tU extends Jp{}class nU extends Jp{}function rU(e){return e.match(/^https?:\//)}function iU(e){return e.indexOf("/")<0}function aU(e){return e.match(/^v[0-9]+/)}function oU(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 sU(e){return e||"image"}function uU(e){return e||"upload"}function lU(e,t,n){const r=n!==!1;return t?`v${t}`:aU(e)||rU(e)||iU(e)?"":r?"v1":""}function eb(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=cU(i,r/i.length)),i.slice(0,r)+String(e))}function cU(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const dU="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",op={};let P$=0;dU.split("").forEach(e=>{let t=P$.toString(2);t=eb(t,6,"0"),op[t]=e,P$++});function fU(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function hU(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 eb(t,2,"0")}).join(".")}function _$(e){let t="";const r=e.split(".").length*6,i=fU(e),a=hU(i);let s=parseInt(a.split(".").join("")).toString(2);if(s=eb(s,r,"0"),s.length%6!==0)throw"Version must be smaller than 43.21.26)";return s.match(/.{1,6}/g).forEach(l=>{t+=op[l]}),t}function pU(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"),e.feature&&(t.feature=e.feature),t}const mU="1.22.0";function gU(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),a=r.padStart(6,"0"),o=i.padStart(6,"0");return op[a]+op[o]}function vU(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function yU(e){const t={techVersion:vU(),sdkCode:"T",sdkSemver:mU.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 B$(e){const t=yU(e),n=pU(t);try{const r=bU(n.techVersion),i=_$(n.sdkSemver),a=_$(r),o=gU(n.osVersion),s=n.feature,l=n.sdkCode,{product:f,osType:h}=n;return`D${f}${l}${i}${a}${h}${o}${s}`}catch{return"E"}}function bU(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const F$={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class xU{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new X1(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=sU(this.assetType),n=uU(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,a=F$[`${t}/${n}`],o=this.urlConfig.useRootPath,s=this.urlConfig.shorten;if(o){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(s&&i==="image/upload")return"iu";if(r){if(a)return a;throw new Error(`URL Suffix only supported for ${Object.keys(F$).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=oU(this.cloudName,this.urlConfig),i=t?t.toString():"",a=lU(this.publicID,this.version,this.urlConfig.forceVersion),o=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,a,o.replace(/,/g,"%2C"),this.suffix].filter(l=>l).join("/");{const s=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),a,encodeURI(o).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(h=>h).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),l=this.urlConfig.analytics!==!1&&!o.includes("?");let f="";if(typeof this.urlConfig.queryParams=="object")try{const h=new URLSearchParams(this.urlConfig.queryParams);l&&h.set("_a",B$(n)),f=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 f=this.urlConfig.queryParams||"",l&&(f+=`${f.length>0?"&":""}_a=${B$(n)}`);return f?`${s}?${f}`:s}}}class wT extends xU{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 ap("q",t)),this}format(t){return this.addAction(new ap("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 DU extends wT{constructor(t,n,r){super(t,n,r,new tU)}}class $U extends wT{constructor(t,n,r){super(t,n,r,new nU),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class EU{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new DU(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new $U(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var s0,k$;function AT(){if(k$)return s0;k$=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 s0=e,s0}var u0,M$;function CU(){if(M$)return u0;M$=1;function e(){this.__data__=[],this.size=0}return u0=e,u0}var l0,R$;function tb(){if(R$)return l0;R$=1;function e(t,n){return t===n||t!==t&&n!==n}return l0=e,l0}var c0,I$;function em(){if(I$)return c0;I$=1;var e=tb();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return c0=t,c0}var d0,O$;function wU(){if(O$)return d0;O$=1;var e=em(),t=Array.prototype,n=t.splice;function r(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():n.call(a,o,1),--this.size,!0}return d0=r,d0}var f0,L$;function AU(){if(L$)return f0;L$=1;var e=em();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return f0=t,f0}var h0,V$;function SU(){if(V$)return h0;V$=1;var e=em();function t(n){return e(this.__data__,n)>-1}return h0=t,h0}var p0,N$;function TU(){if(N$)return p0;N$=1;var e=em();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 p0=t,p0}var m0,j$;function tm(){if(j$)return m0;j$=1;var e=CU(),t=wU(),n=AU(),r=SU(),i=TU();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var f=o[s];this.set(f[0],f[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,m0=a,m0}var g0,K$;function PU(){if(K$)return g0;K$=1;var e=tm();function t(){this.__data__=new e,this.size=0}return g0=t,g0}var v0,z$;function _U(){if(z$)return v0;z$=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return v0=e,v0}var y0,q$;function BU(){if(q$)return y0;q$=1;function e(t){return this.__data__.get(t)}return y0=e,y0}var b0,U$;function FU(){if(U$)return b0;U$=1;function e(t){return this.__data__.has(t)}return b0=e,b0}var x0,W$;function Ru(){if(W$)return x0;W$=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return x0=e,x0}var D0,H$;function nb(){if(H$)return D0;H$=1;var e=uc(),t=Ru(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!t(s))return!1;var l=e(s);return l==r||l==i||l==n||l==a}return D0=o,D0}var $0,G$;function kU(){if(G$)return $0;G$=1;var e=Go(),t=e["__core-js_shared__"];return $0=t,$0}var E0,Y$;function MU(){if(Y$)return E0;Y$=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 E0=n,E0}var C0,Z$;function ST(){if(Z$)return C0;Z$=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 C0=n,C0}var w0,X$;function RU(){if(X$)return w0;X$=1;var e=nb(),t=MU(),n=Ru(),r=ST(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,l=o.toString,f=s.hasOwnProperty,h=RegExp("^"+l.call(f).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 w0=m,w0}var A0,Q$;function IU(){if(Q$)return A0;Q$=1;function e(t,n){return t==null?void 0:t[n]}return A0=e,A0}var S0,J$;function cc(){if(J$)return S0;J$=1;var e=RU(),t=IU();function n(r,i){var a=t(r,i);return e(a)?a:void 0}return S0=n,S0}var T0,eE;function rb(){if(eE)return T0;eE=1;var e=cc(),t=Go(),n=e(t,"Map");return T0=n,T0}var P0,tE;function nm(){if(tE)return P0;tE=1;var e=cc(),t=e(Object,"create");return P0=t,P0}var _0,nE;function OU(){if(nE)return _0;nE=1;var e=nm();function t(){this.__data__=e?e(null):{},this.size=0}return _0=t,_0}var B0,rE;function LU(){if(rE)return B0;rE=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return B0=e,B0}var F0,iE;function VU(){if(iE)return F0;iE=1;var e=nm(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return r.call(o,a)?o[a]:void 0}return F0=i,F0}var k0,aE;function NU(){if(aE)return k0;aE=1;var e=nm(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var a=this.__data__;return e?a[i]!==void 0:n.call(a,i)}return k0=r,k0}var M0,oE;function jU(){if(oE)return M0;oE=1;var e=nm(),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 M0=n,M0}var R0,sE;function KU(){if(sE)return R0;sE=1;var e=OU(),t=LU(),n=VU(),r=NU(),i=jU();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var f=o[s];this.set(f[0],f[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,R0=a,R0}var I0,uE;function zU(){if(uE)return I0;uE=1;var e=KU(),t=tm(),n=rb();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return I0=r,I0}var O0,lE;function qU(){if(lE)return O0;lE=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return O0=e,O0}var L0,cE;function rm(){if(cE)return L0;cE=1;var e=qU();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return L0=t,L0}var V0,dE;function UU(){if(dE)return V0;dE=1;var e=rm();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return V0=t,V0}var N0,fE;function WU(){if(fE)return N0;fE=1;var e=rm();function t(n){return e(this,n).get(n)}return N0=t,N0}var j0,hE;function HU(){if(hE)return j0;hE=1;var e=rm();function t(n){return e(this,n).has(n)}return j0=t,j0}var K0,pE;function GU(){if(pE)return K0;pE=1;var e=rm();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 K0=t,K0}var z0,mE;function ib(){if(mE)return z0;mE=1;var e=zU(),t=UU(),n=WU(),r=HU(),i=GU();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var f=o[s];this.set(f[0],f[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,z0=a,z0}var q0,gE;function YU(){if(gE)return q0;gE=1;var e=tm(),t=rb(),n=ib(),r=200;function i(a,o){var s=this.__data__;if(s instanceof e){var l=s.__data__;if(!t||l.length<r-1)return l.push([a,o]),this.size=++s.size,this;s=this.__data__=new n(l)}return s.set(a,o),this.size=s.size,this}return q0=i,q0}var U0,vE;function TT(){if(vE)return U0;vE=1;var e=tm(),t=PU(),n=_U(),r=BU(),i=FU(),a=YU();function o(s){var l=this.__data__=new e(s);this.size=l.size}return o.prototype.clear=t,o.prototype.delete=n,o.prototype.get=r,o.prototype.has=i,o.prototype.set=a,U0=o,U0}var W0,yE;function ZU(){if(yE)return W0;yE=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return W0=t,W0}var H0,bE;function XU(){if(bE)return H0;bE=1;function e(t){return this.__data__.has(t)}return H0=e,H0}var G0,xE;function QU(){if(xE)return G0;xE=1;var e=ib(),t=ZU(),n=XU();function r(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,G0=r,G0}var Y0,DE;function JU(){if(DE)return Y0;DE=1;function e(t,n){return t.has(n)}return Y0=e,Y0}var Z0,$E;function PT(){if($E)return Z0;$E=1;var e=QU(),t=AT(),n=JU(),r=1,i=2;function a(o,s,l,f,h,m){var g=l&r,b=o.length,$=s.length;if(b!=$&&!(g&&$>b))return!1;var x=m.get(o),A=m.get(s);if(x&&A)return x==s&&A==o;var w=-1,C=!0,E=l&i?new e:void 0;for(m.set(o,s),m.set(s,o);++w<b;){var T=o[w],P=s[w];if(f)var F=g?f(P,T,w,s,o,m):f(T,P,w,o,s,m);if(F!==void 0){if(F)continue;C=!1;break}if(E){if(!t(s,function(q,te){if(!n(E,te)&&(T===q||h(T,q,l,f,m)))return E.push(te)})){C=!1;break}}else if(!(T===P||h(T,P,l,f,m))){C=!1;break}}return m.delete(o),m.delete(s),C}return Z0=a,Z0}var X0,EE;function eW(){if(EE)return X0;EE=1;var e=Go(),t=e.Uint8Array;return X0=t,X0}var Q0,CE;function tW(){if(CE)return Q0;CE=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,a){r[++n]=[a,i]}),r}return Q0=e,Q0}var J0,wE;function nW(){if(wE)return J0;wE=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return J0=e,J0}var ev,AE;function rW(){if(AE)return ev;AE=1;var e=Up(),t=eW(),n=tb(),r=PT(),i=tW(),a=nW(),o=1,s=2,l="[object Boolean]",f="[object Date]",h="[object Error]",m="[object Map]",g="[object Number]",b="[object RegExp]",$="[object Set]",x="[object String]",A="[object Symbol]",w="[object ArrayBuffer]",C="[object DataView]",E=e?e.prototype:void 0,T=E?E.valueOf:void 0;function P(F,q,te,se,ae,O,Ee){switch(te){case C:if(F.byteLength!=q.byteLength||F.byteOffset!=q.byteOffset)return!1;F=F.buffer,q=q.buffer;case w:return!(F.byteLength!=q.byteLength||!O(new t(F),new t(q)));case l:case f:case g:return n(+F,+q);case h:return F.name==q.name&&F.message==q.message;case b:case x:return F==q+"";case m:var be=i;case $:var z=se&o;if(be||(be=a),F.size!=q.size&&!z)return!1;var G=Ee.get(F);if(G)return G==q;se|=s,Ee.set(F,q);var V=r(be(F),be(q),se,ae,O,Ee);return Ee.delete(F),V;case A:if(T)return T.call(F)==T.call(q)}return!1}return ev=P,ev}var tv,SE;function iW(){if(SE)return tv;SE=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 tv=e,tv}var nv,TE;function aW(){if(TE)return nv;TE=1;var e=iW(),t=Aa();function n(r,i,a){var o=i(r);return t(r)?o:e(o,a(r))}return nv=n,nv}var rv,PE;function oW(){if(PE)return rv;PE=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=0,o=[];++r<i;){var s=t[r];n(s,r,t)&&(o[a++]=s)}return o}return rv=e,rv}var iv,_E;function sW(){if(_E)return iv;_E=1;function e(){return[]}return iv=e,iv}var av,BE;function uW(){if(BE)return av;BE=1;var e=oW(),t=sW(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(s){return r.call(o,s)}))}:t;return av=a,av}var ov,FE;function lW(){if(FE)return ov;FE=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return ov=e,ov}var sv,kE;function cW(){if(kE)return sv;kE=1;var e=uc(),t=lc(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return sv=r,sv}var uv,ME;function ab(){if(ME)return uv;ME=1;var e=cW(),t=lc(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,a=e(function(){return arguments}())?e:function(o){return t(o)&&r.call(o,"callee")&&!i.call(o,"callee")};return uv=a,uv}var fd={exports:{}},lv,RE;function dW(){if(RE)return lv;RE=1;function e(){return!1}return lv=e,lv}fd.exports;var IE;function im(){return IE||(IE=1,function(e,t){var n=Go(),r=dW(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?n.Buffer:void 0,l=s?s.isBuffer:void 0,f=l||r;e.exports=f}(fd,fd.exports)),fd.exports}var cv,OE;function ob(){if(OE)return cv;OE=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 cv=n,cv}var dv,LE;function sb(){if(LE)return dv;LE=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return dv=t,dv}var fv,VE;function fW(){if(VE)return fv;VE=1;var e=uc(),t=sb(),n=lc(),r="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",l="[object Function]",f="[object Map]",h="[object Number]",m="[object Object]",g="[object RegExp]",b="[object Set]",$="[object String]",x="[object WeakMap]",A="[object ArrayBuffer]",w="[object DataView]",C="[object Float32Array]",E="[object Float64Array]",T="[object Int8Array]",P="[object Int16Array]",F="[object Int32Array]",q="[object Uint8Array]",te="[object Uint8ClampedArray]",se="[object Uint16Array]",ae="[object Uint32Array]",O={};O[C]=O[E]=O[T]=O[P]=O[F]=O[q]=O[te]=O[se]=O[ae]=!0,O[r]=O[i]=O[A]=O[a]=O[w]=O[o]=O[s]=O[l]=O[f]=O[h]=O[m]=O[g]=O[b]=O[$]=O[x]=!1;function Ee(be){return n(be)&&t(be.length)&&!!O[e(be)]}return fv=Ee,fv}var hv,NE;function hW(){if(NE)return hv;NE=1;function e(t){return function(n){return t(n)}}return hv=e,hv}var hd={exports:{}};hd.exports;var jE;function pW(){return jE||(jE=1,function(e,t){var n=N6(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s}(hd,hd.exports)),hd.exports}var pv,KE;function am(){if(KE)return pv;KE=1;var e=fW(),t=hW(),n=pW(),r=n&&n.isTypedArray,i=r?t(r):e;return pv=i,pv}var mv,zE;function mW(){if(zE)return mv;zE=1;var e=lW(),t=ab(),n=Aa(),r=im(),i=ob(),a=am(),o=Object.prototype,s=o.hasOwnProperty;function l(f,h){var m=n(f),g=!m&&t(f),b=!m&&!g&&r(f),$=!m&&!g&&!b&&a(f),x=m||g||b||$,A=x?e(f.length,String):[],w=A.length;for(var C in f)(h||s.call(f,C))&&!(x&&(C=="length"||b&&(C=="offset"||C=="parent")||$&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||i(C,w)))&&A.push(C);return A}return mv=l,mv}var gv,qE;function _T(){if(qE)return gv;qE=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return gv=t,gv}var vv,UE;function BT(){if(UE)return vv;UE=1;function e(t,n){return function(r){return t(n(r))}}return vv=e,vv}var yv,WE;function gW(){if(WE)return yv;WE=1;var e=BT(),t=e(Object.keys,Object);return yv=t,yv}var bv,HE;function FT(){if(HE)return bv;HE=1;var e=_T(),t=gW(),n=Object.prototype,r=n.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))r.call(a,s)&&s!="constructor"&&o.push(s);return o}return bv=i,bv}var xv,GE;function om(){if(GE)return xv;GE=1;var e=nb(),t=sb();function n(r){return r!=null&&t(r.length)&&!e(r)}return xv=n,xv}var Dv,YE;function ub(){if(YE)return Dv;YE=1;var e=mW(),t=FT(),n=om();function r(i){return n(i)?e(i):t(i)}return Dv=r,Dv}var $v,ZE;function vW(){if(ZE)return $v;ZE=1;var e=aW(),t=uW(),n=ub();function r(i){return e(i,n,t)}return $v=r,$v}var Ev,XE;function yW(){if(XE)return Ev;XE=1;var e=vW(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(a,o,s,l,f,h){var m=s&t,g=e(a),b=g.length,$=e(o),x=$.length;if(b!=x&&!m)return!1;for(var A=b;A--;){var w=g[A];if(!(m?w in o:r.call(o,w)))return!1}var C=h.get(a),E=h.get(o);if(C&&E)return C==o&&E==a;var T=!0;h.set(a,o),h.set(o,a);for(var P=m;++A<b;){w=g[A];var F=a[w],q=o[w];if(l)var te=m?l(q,F,w,o,a,h):l(F,q,w,a,o,h);if(!(te===void 0?F===q||f(F,q,s,l,h):te)){T=!1;break}P||(P=w=="constructor")}if(T&&!P){var se=a.constructor,ae=o.constructor;se!=ae&&"constructor"in a&&"constructor"in o&&!(typeof se=="function"&&se instanceof se&&typeof ae=="function"&&ae instanceof ae)&&(T=!1)}return h.delete(a),h.delete(o),T}return Ev=i,Ev}var Cv,QE;function bW(){if(QE)return Cv;QE=1;var e=cc(),t=Go(),n=e(t,"DataView");return Cv=n,Cv}var wv,JE;function xW(){if(JE)return wv;JE=1;var e=cc(),t=Go(),n=e(t,"Promise");return wv=n,wv}var Av,eC;function DW(){if(eC)return Av;eC=1;var e=cc(),t=Go(),n=e(t,"Set");return Av=n,Av}var Sv,tC;function $W(){if(tC)return Sv;tC=1;var e=cc(),t=Go(),n=e(t,"WeakMap");return Sv=n,Sv}var Tv,nC;function kT(){if(nC)return Tv;nC=1;var e=bW(),t=rb(),n=xW(),r=DW(),i=$W(),a=uc(),o=ST(),s="[object Map]",l="[object Object]",f="[object Promise]",h="[object Set]",m="[object WeakMap]",g="[object DataView]",b=o(e),$=o(t),x=o(n),A=o(r),w=o(i),C=a;return(e&&C(new e(new ArrayBuffer(1)))!=g||t&&C(new t)!=s||n&&C(n.resolve())!=f||r&&C(new r)!=h||i&&C(new i)!=m)&&(C=function(E){var T=a(E),P=T==l?E.constructor:void 0,F=P?o(P):"";if(F)switch(F){case b:return g;case $:return s;case x:return f;case A:return h;case w:return m}return T}),Tv=C,Tv}var Pv,rC;function EW(){if(rC)return Pv;rC=1;var e=TT(),t=PT(),n=rW(),r=yW(),i=kT(),a=Aa(),o=im(),s=am(),l=1,f="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype,b=g.hasOwnProperty;function $(x,A,w,C,E,T){var P=a(x),F=a(A),q=P?h:i(x),te=F?h:i(A);q=q==f?m:q,te=te==f?m:te;var se=q==m,ae=te==m,O=q==te;if(O&&o(x)){if(!o(A))return!1;P=!0,se=!1}if(O&&!se)return T||(T=new e),P||s(x)?t(x,A,w,C,E,T):n(x,A,q,w,C,E,T);if(!(w&l)){var Ee=se&&b.call(x,"__wrapped__"),be=ae&&b.call(A,"__wrapped__");if(Ee||be){var z=Ee?x.value():x,G=be?A.value():A;return T||(T=new e),E(z,G,w,C,T)}}return O?(T||(T=new e),r(x,A,w,C,E,T)):!1}return Pv=$,Pv}var _v,iC;function lb(){if(iC)return _v;iC=1;var e=EW(),t=lc();function n(r,i,a,o,s){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,a,o,n,s)}return _v=n,_v}var Bv,aC;function CW(){if(aC)return Bv;aC=1;var e=TT(),t=lb(),n=1,r=2;function i(a,o,s,l){var f=s.length,h=f,m=!l;if(a==null)return!h;for(a=Object(a);f--;){var g=s[f];if(m&&g[2]?g[1]!==a[g[0]]:!(g[0]in a))return!1}for(;++f<h;){g=s[f];var b=g[0],$=a[b],x=g[1];if(m&&g[2]){if($===void 0&&!(b in a))return!1}else{var A=new e;if(l)var w=l($,x,b,a,o,A);if(!(w===void 0?t(x,$,n|r,l,A):w))return!1}}return!0}return Bv=i,Bv}var Fv,oC;function MT(){if(oC)return Fv;oC=1;var e=Ru();function t(n){return n===n&&!e(n)}return Fv=t,Fv}var kv,sC;function wW(){if(sC)return kv;sC=1;var e=MT(),t=ub();function n(r){for(var i=t(r),a=i.length;a--;){var o=i[a],s=r[o];i[a]=[o,s,e(s)]}return i}return kv=n,kv}var Mv,uC;function RT(){if(uC)return Mv;uC=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return Mv=e,Mv}var Rv,lC;function AW(){if(lC)return Rv;lC=1;var e=CW(),t=wW(),n=RT();function r(i){var a=t(i);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return Rv=r,Rv}var Iv,cC;function cb(){if(cC)return Iv;cC=1;var e=Aa(),t=Wp(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||o!=null&&a in Object(o)}return Iv=i,Iv}var Ov,dC;function SW(){if(dC)return Ov;dC=1;var e=ib(),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 o=arguments,s=i?i.apply(this,o):o[0],l=a.cache;if(l.has(s))return l.get(s);var f=r.apply(this,o);return a.cache=l.set(s,f)||l,f};return a.cache=new(n.Cache||e),a}return n.Cache=e,Ov=n,Ov}var Lv,fC;function TW(){if(fC)return Lv;fC=1;var e=SW(),t=500;function n(r){var i=e(r,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Lv=n,Lv}var Vv,hC;function PW(){if(hC)return Vv;hC=1;var e=TW(),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(o,s,l,f){a.push(l?f.replace(n,"$1"):s||o)}),a});return Vv=r,Vv}var Nv,pC;function IT(){if(pC)return Nv;pC=1;var e=Aa(),t=cb(),n=PW(),r=V1();function i(a,o){return e(a)?a:t(a,o)?[a]:n(r(a))}return Nv=i,Nv}var jv,mC;function sm(){if(mC)return jv;mC=1;var e=Wp();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return jv=t,jv}var Kv,gC;function OT(){if(gC)return Kv;gC=1;var e=IT(),t=sm();function n(r,i){i=e(i,r);for(var a=0,o=i.length;r!=null&&a<o;)r=r[t(i[a++])];return a&&a==o?r:void 0}return Kv=n,Kv}var zv,vC;function _W(){if(vC)return zv;vC=1;var e=OT();function t(n,r,i){var a=n==null?void 0:e(n,r);return a===void 0?i:a}return zv=t,zv}var qv,yC;function BW(){if(yC)return qv;yC=1;function e(t,n){return t!=null&&n in Object(t)}return qv=e,qv}var Uv,bC;function FW(){if(bC)return Uv;bC=1;var e=IT(),t=ab(),n=Aa(),r=ob(),i=sb(),a=sm();function o(s,l,f){l=e(l,s);for(var h=-1,m=l.length,g=!1;++h<m;){var b=a(l[h]);if(!(g=s!=null&&f(s,b)))break;s=s[b]}return g||++h!=m?g:(m=s==null?0:s.length,!!m&&i(m)&&r(b,m)&&(n(s)||t(s)))}return Uv=o,Uv}var Wv,xC;function kW(){if(xC)return Wv;xC=1;var e=BW(),t=FW();function n(r,i){return r!=null&&t(r,i,e)}return Wv=n,Wv}var Hv,DC;function MW(){if(DC)return Hv;DC=1;var e=lb(),t=_W(),n=kW(),r=cb(),i=MT(),a=RT(),o=sm(),s=1,l=2;function f(h,m){return r(h)&&i(m)?a(o(h),m):function(g){var b=t(g,h);return b===void 0&&b===m?n(g,h):e(m,b,s|l)}}return Hv=f,Hv}var Gv,$C;function RW(){if($C)return Gv;$C=1;function e(t){return t}return Gv=e,Gv}var Yv,EC;function IW(){if(EC)return Yv;EC=1;function e(t){return function(n){return n==null?void 0:n[t]}}return Yv=e,Yv}var Zv,CC;function OW(){if(CC)return Zv;CC=1;var e=OT();function t(n){return function(r){return e(r,n)}}return Zv=t,Zv}var Xv,wC;function LW(){if(wC)return Xv;wC=1;var e=IW(),t=OW(),n=cb(),r=sm();function i(a){return n(a)?e(r(a)):t(a)}return Xv=i,Xv}var Qv,AC;function LT(){if(AC)return Qv;AC=1;var e=AW(),t=MW(),n=RW(),r=Aa(),i=LW();function a(o){return typeof o=="function"?o:o==null?n:typeof o=="object"?r(o)?t(o[0],o[1]):e(o):i(o)}return Qv=a,Qv}var Jv,SC;function VW(){if(SC)return Jv;SC=1;function e(t){return function(n,r,i){for(var a=-1,o=Object(n),s=i(n),l=s.length;l--;){var f=s[t?l:++a];if(r(o[f],f,o)===!1)break}return n}}return Jv=e,Jv}var e4,TC;function NW(){if(TC)return e4;TC=1;var e=VW(),t=e();return e4=t,e4}var t4,PC;function VT(){if(PC)return t4;PC=1;var e=NW(),t=ub();function n(r,i){return r&&e(r,i,t)}return t4=n,t4}var n4,_C;function jW(){if(_C)return n4;_C=1;var e=om();function t(n,r){return function(i,a){if(i==null)return i;if(!e(i))return n(i,a);for(var o=i.length,s=r?o:-1,l=Object(i);(r?s--:++s<o)&&a(l[s],s,l)!==!1;);return i}}return n4=t,n4}var r4,BC;function KW(){if(BC)return r4;BC=1;var e=VT(),t=jW(),n=t(e);return r4=n,r4}var i4,FC;function zW(){if(FC)return i4;FC=1;var e=KW();function t(n,r){var i;return e(n,function(a,o,s){return i=r(a,o,s),!i}),!!i}return i4=t,i4}var a4,kC;function NT(){if(kC)return a4;kC=1;var e=tb(),t=om(),n=ob(),r=Ru();function i(a,o,s){if(!r(s))return!1;var l=typeof o;return(l=="number"?t(s)&&n(o,s.length):l=="string"&&o in s)?e(s[o],a):!1}return a4=i,a4}var o4,MC;function qW(){if(MC)return o4;MC=1;var e=AT(),t=LT(),n=zW(),r=Aa(),i=NT();function a(o,s,l){var f=r(o)?e:n;return l&&i(o,s,l)&&(s=void 0),f(o,t(s,3))}return o4=a,o4}var UW=qW();const WW=ar(UW);var pd={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 HW=pd.exports,RC;function GW(){return RC||(RC=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.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",f=500,h="__lodash_placeholder__",m=1,g=2,b=4,$=1,x=2,A=1,w=2,C=4,E=8,T=16,P=32,F=64,q=128,te=256,se=512,ae=30,O="...",Ee=800,be=16,z=1,G=2,V=3,R=1/0,K=9007199254740991,fe=17976931348623157e292,M=NaN,oe=4294967295,le=oe-1,Se=oe>>>1,_e=[["ary",q],["bind",A],["bindKey",w],["curry",E],["curryRight",T],["flip",se],["partial",P],["partialRight",F],["rearg",te]],Be="[object Arguments]",Ge="[object Array]",Xe="[object AsyncFunction]",Ne="[object Boolean]",qe="[object Date]",ke="[object DOMException]",je="[object Error]",Te="[object Function]",Ye="[object GeneratorFunction]",ht="[object Map]",Ht="[object Number]",xt="[object Null]",_t="[object Object]",Wr="[object Promise]",Jt="[object Proxy]",xe="[object RegExp]",Ae="[object Set]",Fe="[object String]",Qe="[object Symbol]",et="[object Undefined]",Je="[object WeakMap]",gt="[object WeakSet]",kt="[object ArrayBuffer]",Dt="[object DataView]",bn="[object Float32Array]",Dr="[object Float64Array]",zt="[object Int8Array]",Pt="[object Int16Array]",It="[object Int32Array]",qt="[object Uint8Array]",pr="[object Uint8ClampedArray]",Hr="[object Uint16Array]",li="[object Uint32Array]",Br=/\b__p \+= '';/g,Ba=/\b(__p \+=) '' \+/g,Bs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bt=/&(?:amp|lt|gt|quot|#39);/g,ci=/[&<>"']/g,uo=RegExp(bt.source),Sc=RegExp(ci.source),Nu=/<%-([\s\S]+?)%>/g,Tc=/<%([\s\S]+?)%>/g,ju=/<%=([\s\S]+?)%>/g,Fs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ku=/^\w*$/,ta=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,na=/[\\^$.*+?()[\]{}|]/g,yt=RegExp(na.source),wn=/^\s+/,lo=/\s/,zu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$r=/\{\n\/\* \[wrapped with (.+)\] \*/,qu=/,? & /,Uu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Pc=/[()=,{}\[\]\/\s]/,Gr=/\\(\\)?/g,at=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dn=/\w*$/,ra=/^[-+]0x[0-9a-f]+$/i,di=/^0b[01]+$/i,Yn=/^\[object .+?Constructor\]$/,ks=/^0o[0-7]+$/i,Fa=/^(?:0|[1-9]\d*)$/,fi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Rn=/($^)/,Qo=/['\n\r\u2028\u2029\\]/g,jt="\\ud800-\\udfff",_c="\\u0300-\\u036f",Wu="\\ufe20-\\ufe2f",Bc="\\u20d0-\\u20ff",Ms=_c+Wu+Bc,co="\\u2700-\\u27bf",Hu="a-z\\xdf-\\xf6\\xf8-\\xff",Rs="\\xac\\xb1\\xd7\\xf7",Fc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",kc="\\u2000-\\u206f",Mc=" \\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",Gu="A-Z\\xc0-\\xd6\\xd8-\\xde",Is="\\ufe0e\\ufe0f",Os=Rs+Fc+kc+Mc,fo="['’]",Yu="["+jt+"]",Zu="["+Os+"]",Fr="["+Ms+"]",mr="\\d+",kr="["+co+"]",ka="["+Hu+"]",Jo="[^"+jt+Os+mr+co+Hu+Gu+"]",gr="\\ud83c[\\udffb-\\udfff]",ho="(?:"+Fr+"|"+gr+")",po="[^"+jt+"]",Si="(?:\\ud83c[\\udde6-\\uddff]){2}",hi="[\\ud800-\\udbff][\\udc00-\\udfff]",or="["+Gu+"]",Ti="\\u200d",Ls="(?:"+ka+"|"+Jo+")",Xu="(?:"+or+"|"+Jo+")",pn="(?:"+fo+"(?:d|ll|m|re|s|t|ve))?",Vs="(?:"+fo+"(?:D|LL|M|RE|S|T|VE))?",mo=ho+"?",Ns="["+Is+"]?",Qu="(?:"+Ti+"(?:"+[po,Si,hi].join("|")+")"+Ns+mo+")*",Mr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",js="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ma=Ns+mo+Qu,Ra="(?:"+[kr,Si,hi].join("|")+")"+Ma,go="(?:"+[po+Fr+"?",Fr,Si,hi,Yu].join("|")+")",ia=RegExp(fo,"g"),vo=RegExp(Fr,"g"),es=RegExp(gr+"(?="+gr+")|"+go+Ma,"g"),Ju=RegExp([or+"?"+ka+"+"+pn+"(?="+[Zu,or,"$"].join("|")+")",Xu+"+"+Vs+"(?="+[Zu,or+Ls,"$"].join("|")+")",or+"?"+Ls+"+"+pn,or+"+"+Vs,js,Mr,mr,Ra].join("|"),"g"),Rc=RegExp("["+Ti+jt+Ms+Is+"]"),yo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ic=["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"],bo=-1,Gt={};Gt[bn]=Gt[Dr]=Gt[zt]=Gt[Pt]=Gt[It]=Gt[qt]=Gt[pr]=Gt[Hr]=Gt[li]=!0,Gt[Be]=Gt[Ge]=Gt[kt]=Gt[Ne]=Gt[Dt]=Gt[qe]=Gt[je]=Gt[Te]=Gt[ht]=Gt[Ht]=Gt[_t]=Gt[xe]=Gt[Ae]=Gt[Fe]=Gt[Je]=!1;var en={};en[Be]=en[Ge]=en[kt]=en[Dt]=en[Ne]=en[qe]=en[bn]=en[Dr]=en[zt]=en[Pt]=en[It]=en[ht]=en[Ht]=en[_t]=en[xe]=en[Ae]=en[Fe]=en[Qe]=en[qt]=en[pr]=en[Hr]=en[li]=!0,en[je]=en[Te]=en[Je]=!1;var ie={À:"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"},Me={"&":"&","<":"<",">":">",'"':""","'":"'"},We={"&":"&","<":"<",">":">",""":'"',"'":"'"},pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},xn=parseFloat,rr=parseInt,sr=typeof Hi=="object"&&Hi&&Hi.Object===Object&&Hi,Nn=typeof self=="object"&&self&&self.Object===Object&&self,An=sr||Nn||Function("return this")(),Pi=t&&!t.nodeType&&t,_i=Pi&&!0&&e&&!e.nodeType&&e,Ks=_i&&_i.exports===Pi,ts=Ks&&sr.process,ur=function(){try{var k=_i&&_i.require&&_i.require("util").types;return k||ts&&ts.binding&&ts.binding("util")}catch{}}(),xo=ur&&ur.isArrayBuffer,Of=ur&&ur.isDate,Lf=ur&&ur.isMap,Oc=ur&&ur.isRegExp,ns=ur&&ur.isSet,aa=ur&&ur.isTypedArray;function In(k,ee,Y){switch(Y.length){case 0:return k.call(ee);case 1:return k.call(ee,Y[0]);case 2:return k.call(ee,Y[0],Y[1]);case 3:return k.call(ee,Y[0],Y[1],Y[2])}return k.apply(ee,Y)}function Ia(k,ee,Y,pe){for(var he=-1,W=k==null?0:k.length;++he<W;){var Z=k[he];ee(pe,Z,Y(Z),k)}return pe}function fn(k,ee){for(var Y=-1,pe=k==null?0:k.length;++Y<pe&&ee(k[Y],Y,k)!==!1;);return k}function lr(k,ee){for(var Y=k==null?0:k.length;Y--&&ee(k[Y],Y,k)!==!1;);return k}function Do(k,ee){for(var Y=-1,pe=k==null?0:k.length;++Y<pe;)if(!ee(k[Y],Y,k))return!1;return!0}function Er(k,ee){for(var Y=-1,pe=k==null?0:k.length,he=0,W=[];++Y<pe;){var Z=k[Y];ee(Z,Y,k)&&(W[he++]=Z)}return W}function Oa(k,ee){var Y=k==null?0:k.length;return!!Y&&$o(k,ee,0)>-1}function el(k,ee,Y){for(var pe=-1,he=k==null?0:k.length;++pe<he;)if(Y(ee,k[pe]))return!0;return!1}function un(k,ee){for(var Y=-1,pe=k==null?0:k.length,he=Array(pe);++Y<pe;)he[Y]=ee(k[Y],Y,k);return he}function oa(k,ee){for(var Y=-1,pe=ee.length,he=k.length;++Y<pe;)k[he+Y]=ee[Y];return k}function tl(k,ee,Y,pe){var he=-1,W=k==null?0:k.length;for(pe&&W&&(Y=k[++he]);++he<W;)Y=ee(Y,k[he],he,k);return Y}function zs(k,ee,Y,pe){var he=k==null?0:k.length;for(pe&&he&&(Y=k[--he]);he--;)Y=ee(Y,k[he],he,k);return Y}function La(k,ee){for(var Y=-1,pe=k==null?0:k.length;++Y<pe;)if(ee(k[Y],Y,k))return!0;return!1}var qs=nl("length");function Us(k){return k.split("")}function qm(k){return k.match(Uu)||[]}function Lc(k,ee,Y){var pe;return Y(k,function(he,W,Z){if(ee(he,W,Z))return pe=W,!1}),pe}function Ws(k,ee,Y,pe){for(var he=k.length,W=Y+(pe?1:-1);pe?W--:++W<he;)if(ee(k[W],W,k))return W;return-1}function $o(k,ee,Y){return ee===ee?p(k,ee,Y):Ws(k,Vc,Y)}function Vf(k,ee,Y,pe){for(var he=Y-1,W=k.length;++he<W;)if(pe(k[he],ee))return he;return-1}function Vc(k){return k!==k}function Hs(k,ee){var Y=k==null?0:k.length;return Y?Va(k,ee)/Y:M}function nl(k){return function(ee){return ee==null?n:ee[k]}}function rl(k){return function(ee){return k==null?n:k[ee]}}function Nc(k,ee,Y,pe,he){return he(k,function(W,Z,L){Y=pe?(pe=!1,W):ee(Y,W,Z,L)}),Y}function Gs(k,ee){var Y=k.length;for(k.sort(ee);Y--;)k[Y]=k[Y].value;return k}function Va(k,ee){for(var Y,pe=-1,he=k.length;++pe<he;){var W=ee(k[pe]);W!==n&&(Y=Y===n?W:Y+W)}return Y}function il(k,ee){for(var Y=-1,pe=Array(k);++Y<k;)pe[Y]=ee(Y);return pe}function Um(k,ee){return un(ee,function(Y){return[Y,k[Y]]})}function Nf(k){return k&&k.slice(0,B(k)+1).replace(wn,"")}function Cr(k){return function(ee){return k(ee)}}function jc(k,ee){return un(ee,function(Y){return k[Y]})}function mn(k,ee){return k.has(ee)}function al(k,ee){for(var Y=-1,pe=k.length;++Y<pe&&$o(ee,k[Y],0)>-1;);return Y}function cr(k,ee){for(var Y=k.length;Y--&&$o(ee,k[Y],0)>-1;);return Y}function Wm(k,ee){for(var Y=k.length,pe=0;Y--;)k[Y]===ee&&++pe;return pe}var Hm=rl(ie),Eo=rl(Me);function pi(k){return"\\"+pt[k]}function Gm(k,ee){return k==null?n:k[ee]}function wr(k){return Rc.test(k)}function Kc(k){return yo.test(k)}function Na(k){for(var ee,Y=[];!(ee=k.next()).done;)Y.push(ee.value);return Y}function On(k){var ee=-1,Y=Array(k.size);return k.forEach(function(pe,he){Y[++ee]=[he,pe]}),Y}function Bi(k,ee){return function(Y){return k(ee(Y))}}function Yr(k,ee){for(var Y=-1,pe=k.length,he=0,W=[];++Y<pe;){var Z=k[Y];(Z===ee||Z===h)&&(k[Y]=h,W[he++]=Y)}return W}function rs(k){var ee=-1,Y=Array(k.size);return k.forEach(function(pe){Y[++ee]=pe}),Y}function c(k){var ee=-1,Y=Array(k.size);return k.forEach(function(pe){Y[++ee]=[pe,pe]}),Y}function p(k,ee,Y){for(var pe=Y-1,he=k.length;++pe<he;)if(k[pe]===ee)return pe;return-1}function v(k,ee,Y){for(var pe=Y+1;pe--;)if(k[pe]===ee)return pe;return pe}function D(k){return wr(k)?ge(k):qs(k)}function _(k){return wr(k)?J(k):Us(k)}function B(k){for(var ee=k.length;ee--&&lo.test(k.charAt(ee)););return ee}var U=rl(We);function ge(k){for(var ee=es.lastIndex=0;es.test(k);)++ee;return ee}function J(k){return k.match(es)||[]}function De(k){return k.match(Ju)||[]}var Ce=function k(ee){ee=ee==null?An:Re.defaults(An.Object(),ee,Re.pick(An,Ic));var Y=ee.Array,pe=ee.Date,he=ee.Error,W=ee.Function,Z=ee.Math,L=ee.Object,j=ee.RegExp,H=ee.String,ne=ee.TypeError,ue=Y.prototype,me=W.prototype,Oe=L.prototype,nt=ee["__core-js_shared__"],tt=me.toString,Ve=Oe.hasOwnProperty,st=0,ct=function(){var u=/[^.]+$/.exec(nt&&nt.keys&&nt.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),Le=Oe.toString,$e=tt.call(L),ce=An._,Q=j("^"+tt.call(Ve).replace(na,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ve=Ks?ee.Buffer:n,Ke=ee.Symbol,Ie=ee.Uint8Array,lt=ve?ve.allocUnsafe:n,St=Bi(L.getPrototypeOf,L),Et=L.create,Dn=Oe.propertyIsEnumerable,Ut=ue.splice,dr=Ke?Ke.isConcatSpreadable:n,Zn=Ke?Ke.iterator:n,Ln=Ke?Ke.toStringTag:n,jn=function(){try{var u=Js(L,"defineProperty");return u({},"",{}),u}catch{}}(),Kn=ee.clearTimeout!==An.clearTimeout&&ee.clearTimeout,vr=pe&&pe.now!==An.Date.now&&pe.now,dt=ee.setTimeout!==An.setTimeout&&ee.setTimeout,ln=Z.ceil,Zr=Z.floor,Fi=L.getOwnPropertySymbols,sa=ve?ve.isBuffer:n,mi=ee.isFinite,ua=ue.join,la=Bi(L.keys,L),Yt=Z.max,$n=Z.min,ja=pe.now,gi=ee.parseInt,ca=Z.random,vi=ue.reverse,da=Js(ee,"DataView"),Ka=Js(ee,"Map"),is=Js(ee,"Promise"),ol=Js(ee,"Set"),zc=Js(ee,"WeakMap"),qc=Js(L,"create"),jf=zc&&new zc,sl={},wI=eu(da),AI=eu(Ka),SI=eu(is),TI=eu(ol),PI=eu(zc),Kf=Ke?Ke.prototype:n,Uc=Kf?Kf.valueOf:n,pD=Kf?Kf.toString:n;function X(u){if(Vn(u)&&!Bt(u)&&!(u instanceof Kt)){if(u instanceof ki)return u;if(Ve.call(u,"__wrapped__"))return m5(u)}return new ki(u)}var ul=function(){function u(){}return function(d){if(!_n(d))return{};if(Et)return Et(d);u.prototype=d;var y=new u;return u.prototype=n,y}}();function zf(){}function ki(u,d){this.__wrapped__=u,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=n}X.templateSettings={escape:Nu,evaluate:Tc,interpolate:ju,variable:"",imports:{_:X}},X.prototype=zf.prototype,X.prototype.constructor=X,ki.prototype=ul(zf.prototype),ki.prototype.constructor=ki;function Kt(u){this.__wrapped__=u,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=oe,this.__views__=[]}function _I(){var u=new Kt(this.__wrapped__);return u.__actions__=Xr(this.__actions__),u.__dir__=this.__dir__,u.__filtered__=this.__filtered__,u.__iteratees__=Xr(this.__iteratees__),u.__takeCount__=this.__takeCount__,u.__views__=Xr(this.__views__),u}function BI(){if(this.__filtered__){var u=new Kt(this);u.__dir__=-1,u.__filtered__=!0}else u=this.clone(),u.__dir__*=-1;return u}function FI(){var u=this.__wrapped__.value(),d=this.__dir__,y=Bt(u),S=d<0,N=y?u.length:0,re=qO(0,N,this.__views__),ye=re.start,we=re.end,Pe=we-ye,Ue=S?we:ye-1,He=this.__iteratees__,Ze=He.length,ot=0,vt=$n(Pe,this.__takeCount__);if(!y||!S&&N==Pe&&vt==Pe)return LD(u,this.__actions__);var Ct=[];e:for(;Pe--&&ot<vt;){Ue+=d;for(var Ot=-1,wt=u[Ue];++Ot<Ze;){var Vt=He[Ot],Wt=Vt.iteratee,xi=Vt.type,Or=Wt(wt);if(xi==G)wt=Or;else if(!Or){if(xi==z)continue e;break e}}Ct[ot++]=wt}return Ct}Kt.prototype=ul(zf.prototype),Kt.prototype.constructor=Kt;function Ys(u){var d=-1,y=u==null?0:u.length;for(this.clear();++d<y;){var S=u[d];this.set(S[0],S[1])}}function kI(){this.__data__=qc?qc(null):{},this.size=0}function MI(u){var d=this.has(u)&&delete this.__data__[u];return this.size-=d?1:0,d}function RI(u){var d=this.__data__;if(qc){var y=d[u];return y===l?n:y}return Ve.call(d,u)?d[u]:n}function II(u){var d=this.__data__;return qc?d[u]!==n:Ve.call(d,u)}function OI(u,d){var y=this.__data__;return this.size+=this.has(u)?0:1,y[u]=qc&&d===n?l:d,this}Ys.prototype.clear=kI,Ys.prototype.delete=MI,Ys.prototype.get=RI,Ys.prototype.has=II,Ys.prototype.set=OI;function Co(u){var d=-1,y=u==null?0:u.length;for(this.clear();++d<y;){var S=u[d];this.set(S[0],S[1])}}function LI(){this.__data__=[],this.size=0}function VI(u){var d=this.__data__,y=qf(d,u);if(y<0)return!1;var S=d.length-1;return y==S?d.pop():Ut.call(d,y,1),--this.size,!0}function NI(u){var d=this.__data__,y=qf(d,u);return y<0?n:d[y][1]}function jI(u){return qf(this.__data__,u)>-1}function KI(u,d){var y=this.__data__,S=qf(y,u);return S<0?(++this.size,y.push([u,d])):y[S][1]=d,this}Co.prototype.clear=LI,Co.prototype.delete=VI,Co.prototype.get=NI,Co.prototype.has=jI,Co.prototype.set=KI;function wo(u){var d=-1,y=u==null?0:u.length;for(this.clear();++d<y;){var S=u[d];this.set(S[0],S[1])}}function zI(){this.size=0,this.__data__={hash:new Ys,map:new(Ka||Co),string:new Ys}}function qI(u){var d=nh(this,u).delete(u);return this.size-=d?1:0,d}function UI(u){return nh(this,u).get(u)}function WI(u){return nh(this,u).has(u)}function HI(u,d){var y=nh(this,u),S=y.size;return y.set(u,d),this.size+=y.size==S?0:1,this}wo.prototype.clear=zI,wo.prototype.delete=qI,wo.prototype.get=UI,wo.prototype.has=WI,wo.prototype.set=HI;function Zs(u){var d=-1,y=u==null?0:u.length;for(this.__data__=new wo;++d<y;)this.add(u[d])}function GI(u){return this.__data__.set(u,l),this}function YI(u){return this.__data__.has(u)}Zs.prototype.add=Zs.prototype.push=GI,Zs.prototype.has=YI;function fa(u){var d=this.__data__=new Co(u);this.size=d.size}function ZI(){this.__data__=new Co,this.size=0}function XI(u){var d=this.__data__,y=d.delete(u);return this.size=d.size,y}function QI(u){return this.__data__.get(u)}function JI(u){return this.__data__.has(u)}function eO(u,d){var y=this.__data__;if(y instanceof Co){var S=y.__data__;if(!Ka||S.length<i-1)return S.push([u,d]),this.size=++y.size,this;y=this.__data__=new wo(S)}return y.set(u,d),this.size=y.size,this}fa.prototype.clear=ZI,fa.prototype.delete=XI,fa.prototype.get=QI,fa.prototype.has=JI,fa.prototype.set=eO;function mD(u,d){var y=Bt(u),S=!y&&tu(u),N=!y&&!S&&ls(u),re=!y&&!S&&!N&&fl(u),ye=y||S||N||re,we=ye?il(u.length,H):[],Pe=we.length;for(var Ue in u)(d||Ve.call(u,Ue))&&!(ye&&(Ue=="length"||N&&(Ue=="offset"||Ue=="parent")||re&&(Ue=="buffer"||Ue=="byteLength"||Ue=="byteOffset")||Po(Ue,Pe)))&&we.push(Ue);return we}function gD(u){var d=u.length;return d?u[ag(0,d-1)]:n}function tO(u,d){return rh(Xr(u),Xs(d,0,u.length))}function nO(u){return rh(Xr(u))}function Ym(u,d,y){(y!==n&&!ha(u[d],y)||y===n&&!(d in u))&&Ao(u,d,y)}function Wc(u,d,y){var S=u[d];(!(Ve.call(u,d)&&ha(S,y))||y===n&&!(d in u))&&Ao(u,d,y)}function qf(u,d){for(var y=u.length;y--;)if(ha(u[y][0],d))return y;return-1}function rO(u,d,y,S){return as(u,function(N,re,ye){d(S,N,y(N),ye)}),S}function vD(u,d){return u&&qa(d,fr(d),u)}function iO(u,d){return u&&qa(d,Jr(d),u)}function Ao(u,d,y){d=="__proto__"&&jn?jn(u,d,{configurable:!0,enumerable:!0,value:y,writable:!0}):u[d]=y}function Zm(u,d){for(var y=-1,S=d.length,N=Y(S),re=u==null;++y<S;)N[y]=re?n:_g(u,d[y]);return N}function Xs(u,d,y){return u===u&&(y!==n&&(u=u<=y?u:y),d!==n&&(u=u>=d?u:d)),u}function Mi(u,d,y,S,N,re){var ye,we=d&m,Pe=d&g,Ue=d&b;if(y&&(ye=N?y(u,S,N,re):y(u)),ye!==n)return ye;if(!_n(u))return u;var He=Bt(u);if(He){if(ye=WO(u),!we)return Xr(u,ye)}else{var Ze=Ar(u),ot=Ze==Te||Ze==Ye;if(ls(u))return jD(u,we);if(Ze==_t||Ze==Be||ot&&!N){if(ye=Pe||ot?{}:o5(u),!we)return Pe?RO(u,iO(ye,u)):MO(u,vD(ye,u))}else{if(!en[Ze])return N?u:{};ye=HO(u,Ze,we)}}re||(re=new fa);var vt=re.get(u);if(vt)return vt;re.set(u,ye),R5(u)?u.forEach(function(wt){ye.add(Mi(wt,d,y,wt,u,re))}):k5(u)&&u.forEach(function(wt,Vt){ye.set(Vt,Mi(wt,d,y,Vt,u,re))});var Ct=Ue?Pe?gg:mg:Pe?Jr:fr,Ot=He?n:Ct(u);return fn(Ot||u,function(wt,Vt){Ot&&(Vt=wt,wt=u[Vt]),Wc(ye,Vt,Mi(wt,d,y,Vt,u,re))}),ye}function aO(u){var d=fr(u);return function(y){return yD(y,u,d)}}function yD(u,d,y){var S=y.length;if(u==null)return!S;for(u=L(u);S--;){var N=y[S],re=d[N],ye=u[N];if(ye===n&&!(N in u)||!re(ye))return!1}return!0}function bD(u,d,y){if(typeof u!="function")throw new ne(o);return Jc(function(){u.apply(n,y)},d)}function Hc(u,d,y,S){var N=-1,re=Oa,ye=!0,we=u.length,Pe=[],Ue=d.length;if(!we)return Pe;y&&(d=un(d,Cr(y))),S?(re=el,ye=!1):d.length>=i&&(re=mn,ye=!1,d=new Zs(d));e:for(;++N<we;){var He=u[N],Ze=y==null?He:y(He);if(He=S||He!==0?He:0,ye&&Ze===Ze){for(var ot=Ue;ot--;)if(d[ot]===Ze)continue e;Pe.push(He)}else re(d,Ze,S)||Pe.push(He)}return Pe}var as=WD(za),xD=WD(Qm,!0);function oO(u,d){var y=!0;return as(u,function(S,N,re){return y=!!d(S,N,re),y}),y}function Uf(u,d,y){for(var S=-1,N=u.length;++S<N;){var re=u[S],ye=d(re);if(ye!=null&&(we===n?ye===ye&&!bi(ye):y(ye,we)))var we=ye,Pe=re}return Pe}function sO(u,d,y,S){var N=u.length;for(y=Mt(y),y<0&&(y=-y>N?0:N+y),S=S===n||S>N?N:Mt(S),S<0&&(S+=N),S=y>S?0:O5(S);y<S;)u[y++]=d;return u}function DD(u,d){var y=[];return as(u,function(S,N,re){d(S,N,re)&&y.push(S)}),y}function yr(u,d,y,S,N){var re=-1,ye=u.length;for(y||(y=YO),N||(N=[]);++re<ye;){var we=u[re];d>0&&y(we)?d>1?yr(we,d-1,y,S,N):oa(N,we):S||(N[N.length]=we)}return N}var Xm=HD(),$D=HD(!0);function za(u,d){return u&&Xm(u,d,fr)}function Qm(u,d){return u&&$D(u,d,fr)}function Wf(u,d){return Er(d,function(y){return _o(u[y])})}function Qs(u,d){d=ss(d,u);for(var y=0,S=d.length;u!=null&&y<S;)u=u[Ua(d[y++])];return y&&y==S?u:n}function ED(u,d,y){var S=d(u);return Bt(u)?S:oa(S,y(u))}function Rr(u){return u==null?u===n?et:xt:Ln&&Ln in L(u)?zO(u):nL(u)}function Jm(u,d){return u>d}function uO(u,d){return u!=null&&Ve.call(u,d)}function lO(u,d){return u!=null&&d in L(u)}function cO(u,d,y){return u>=$n(d,y)&&u<Yt(d,y)}function eg(u,d,y){for(var S=y?el:Oa,N=u[0].length,re=u.length,ye=re,we=Y(re),Pe=1/0,Ue=[];ye--;){var He=u[ye];ye&&d&&(He=un(He,Cr(d))),Pe=$n(He.length,Pe),we[ye]=!y&&(d||N>=120&&He.length>=120)?new Zs(ye&&He):n}He=u[0];var Ze=-1,ot=we[0];e:for(;++Ze<N&&Ue.length<Pe;){var vt=He[Ze],Ct=d?d(vt):vt;if(vt=y||vt!==0?vt:0,!(ot?mn(ot,Ct):S(Ue,Ct,y))){for(ye=re;--ye;){var Ot=we[ye];if(!(Ot?mn(Ot,Ct):S(u[ye],Ct,y)))continue e}ot&&ot.push(Ct),Ue.push(vt)}}return Ue}function dO(u,d,y,S){return za(u,function(N,re,ye){d(S,y(N),re,ye)}),S}function Gc(u,d,y){d=ss(d,u),u=c5(u,d);var S=u==null?u:u[Ua(Ii(d))];return S==null?n:In(S,u,y)}function CD(u){return Vn(u)&&Rr(u)==Be}function fO(u){return Vn(u)&&Rr(u)==kt}function hO(u){return Vn(u)&&Rr(u)==qe}function Yc(u,d,y,S,N){return u===d?!0:u==null||d==null||!Vn(u)&&!Vn(d)?u!==u&&d!==d:pO(u,d,y,S,Yc,N)}function pO(u,d,y,S,N,re){var ye=Bt(u),we=Bt(d),Pe=ye?Ge:Ar(u),Ue=we?Ge:Ar(d);Pe=Pe==Be?_t:Pe,Ue=Ue==Be?_t:Ue;var He=Pe==_t,Ze=Ue==_t,ot=Pe==Ue;if(ot&&ls(u)){if(!ls(d))return!1;ye=!0,He=!1}if(ot&&!He)return re||(re=new fa),ye||fl(u)?r5(u,d,y,S,N,re):jO(u,d,Pe,y,S,N,re);if(!(y&$)){var vt=He&&Ve.call(u,"__wrapped__"),Ct=Ze&&Ve.call(d,"__wrapped__");if(vt||Ct){var Ot=vt?u.value():u,wt=Ct?d.value():d;return re||(re=new fa),N(Ot,wt,y,S,re)}}return ot?(re||(re=new fa),KO(u,d,y,S,N,re)):!1}function mO(u){return Vn(u)&&Ar(u)==ht}function tg(u,d,y,S){var N=y.length,re=N,ye=!S;if(u==null)return!re;for(u=L(u);N--;){var we=y[N];if(ye&&we[2]?we[1]!==u[we[0]]:!(we[0]in u))return!1}for(;++N<re;){we=y[N];var Pe=we[0],Ue=u[Pe],He=we[1];if(ye&&we[2]){if(Ue===n&&!(Pe in u))return!1}else{var Ze=new fa;if(S)var ot=S(Ue,He,Pe,u,d,Ze);if(!(ot===n?Yc(He,Ue,$|x,S,Ze):ot))return!1}}return!0}function wD(u){if(!_n(u)||XO(u))return!1;var d=_o(u)?Q:Yn;return d.test(eu(u))}function gO(u){return Vn(u)&&Rr(u)==xe}function vO(u){return Vn(u)&&Ar(u)==Ae}function yO(u){return Vn(u)&&lh(u.length)&&!!Gt[Rr(u)]}function AD(u){return typeof u=="function"?u:u==null?ei:typeof u=="object"?Bt(u)?PD(u[0],u[1]):TD(u):G5(u)}function ng(u){if(!Qc(u))return la(u);var d=[];for(var y in L(u))Ve.call(u,y)&&y!="constructor"&&d.push(y);return d}function bO(u){if(!_n(u))return tL(u);var d=Qc(u),y=[];for(var S in u)S=="constructor"&&(d||!Ve.call(u,S))||y.push(S);return y}function rg(u,d){return u<d}function SD(u,d){var y=-1,S=Qr(u)?Y(u.length):[];return as(u,function(N,re,ye){S[++y]=d(N,re,ye)}),S}function TD(u){var d=yg(u);return d.length==1&&d[0][2]?u5(d[0][0],d[0][1]):function(y){return y===u||tg(y,u,d)}}function PD(u,d){return xg(u)&&s5(d)?u5(Ua(u),d):function(y){var S=_g(y,u);return S===n&&S===d?Bg(y,u):Yc(d,S,$|x)}}function Hf(u,d,y,S,N){u!==d&&Xm(d,function(re,ye){if(N||(N=new fa),_n(re))xO(u,d,ye,y,Hf,S,N);else{var we=S?S($g(u,ye),re,ye+"",u,d,N):n;we===n&&(we=re),Ym(u,ye,we)}},Jr)}function xO(u,d,y,S,N,re,ye){var we=$g(u,y),Pe=$g(d,y),Ue=ye.get(Pe);if(Ue){Ym(u,y,Ue);return}var He=re?re(we,Pe,y+"",u,d,ye):n,Ze=He===n;if(Ze){var ot=Bt(Pe),vt=!ot&&ls(Pe),Ct=!ot&&!vt&&fl(Pe);He=Pe,ot||vt||Ct?Bt(we)?He=we:zn(we)?He=Xr(we):vt?(Ze=!1,He=jD(Pe,!0)):Ct?(Ze=!1,He=KD(Pe,!0)):He=[]:ed(Pe)||tu(Pe)?(He=we,tu(we)?He=L5(we):(!_n(we)||_o(we))&&(He=o5(Pe))):Ze=!1}Ze&&(ye.set(Pe,He),N(He,Pe,S,re,ye),ye.delete(Pe)),Ym(u,y,He)}function _D(u,d){var y=u.length;if(y)return d+=d<0?y:0,Po(d,y)?u[d]:n}function BD(u,d,y){d.length?d=un(d,function(re){return Bt(re)?function(ye){return Qs(ye,re.length===1?re[0]:re)}:re}):d=[ei];var S=-1;d=un(d,Cr($t()));var N=SD(u,function(re,ye,we){var Pe=un(d,function(Ue){return Ue(re)});return{criteria:Pe,index:++S,value:re}});return Gs(N,function(re,ye){return kO(re,ye,y)})}function DO(u,d){return FD(u,d,function(y,S){return Bg(u,S)})}function FD(u,d,y){for(var S=-1,N=d.length,re={};++S<N;){var ye=d[S],we=Qs(u,ye);y(we,ye)&&Zc(re,ss(ye,u),we)}return re}function $O(u){return function(d){return Qs(d,u)}}function ig(u,d,y,S){var N=S?Vf:$o,re=-1,ye=d.length,we=u;for(u===d&&(d=Xr(d)),y&&(we=un(u,Cr(y)));++re<ye;)for(var Pe=0,Ue=d[re],He=y?y(Ue):Ue;(Pe=N(we,He,Pe,S))>-1;)we!==u&&Ut.call(we,Pe,1),Ut.call(u,Pe,1);return u}function kD(u,d){for(var y=u?d.length:0,S=y-1;y--;){var N=d[y];if(y==S||N!==re){var re=N;Po(N)?Ut.call(u,N,1):ug(u,N)}}return u}function ag(u,d){return u+Zr(ca()*(d-u+1))}function EO(u,d,y,S){for(var N=-1,re=Yt(ln((d-u)/(y||1)),0),ye=Y(re);re--;)ye[S?re:++N]=u,u+=y;return ye}function og(u,d){var y="";if(!u||d<1||d>K)return y;do d%2&&(y+=u),d=Zr(d/2),d&&(u+=u);while(d);return y}function Lt(u,d){return Eg(l5(u,d,ei),u+"")}function CO(u){return gD(hl(u))}function wO(u,d){var y=hl(u);return rh(y,Xs(d,0,y.length))}function Zc(u,d,y,S){if(!_n(u))return u;d=ss(d,u);for(var N=-1,re=d.length,ye=re-1,we=u;we!=null&&++N<re;){var Pe=Ua(d[N]),Ue=y;if(Pe==="__proto__"||Pe==="constructor"||Pe==="prototype")return u;if(N!=ye){var He=we[Pe];Ue=S?S(He,Pe,we):n,Ue===n&&(Ue=_n(He)?He:Po(d[N+1])?[]:{})}Wc(we,Pe,Ue),we=we[Pe]}return u}var MD=jf?function(u,d){return jf.set(u,d),u}:ei,AO=jn?function(u,d){return jn(u,"toString",{configurable:!0,enumerable:!1,value:kg(d),writable:!0})}:ei;function SO(u){return rh(hl(u))}function Ri(u,d,y){var S=-1,N=u.length;d<0&&(d=-d>N?0:N+d),y=y>N?N:y,y<0&&(y+=N),N=d>y?0:y-d>>>0,d>>>=0;for(var re=Y(N);++S<N;)re[S]=u[S+d];return re}function TO(u,d){var y;return as(u,function(S,N,re){return y=d(S,N,re),!y}),!!y}function Gf(u,d,y){var S=0,N=u==null?S:u.length;if(typeof d=="number"&&d===d&&N<=Se){for(;S<N;){var re=S+N>>>1,ye=u[re];ye!==null&&!bi(ye)&&(y?ye<=d:ye<d)?S=re+1:N=re}return N}return sg(u,d,ei,y)}function sg(u,d,y,S){var N=0,re=u==null?0:u.length;if(re===0)return 0;d=y(d);for(var ye=d!==d,we=d===null,Pe=bi(d),Ue=d===n;N<re;){var He=Zr((N+re)/2),Ze=y(u[He]),ot=Ze!==n,vt=Ze===null,Ct=Ze===Ze,Ot=bi(Ze);if(ye)var wt=S||Ct;else Ue?wt=Ct&&(S||ot):we?wt=Ct&&ot&&(S||!vt):Pe?wt=Ct&&ot&&!vt&&(S||!Ot):vt||Ot?wt=!1:wt=S?Ze<=d:Ze<d;wt?N=He+1:re=He}return $n(re,le)}function RD(u,d){for(var y=-1,S=u.length,N=0,re=[];++y<S;){var ye=u[y],we=d?d(ye):ye;if(!y||!ha(we,Pe)){var Pe=we;re[N++]=ye===0?0:ye}}return re}function ID(u){return typeof u=="number"?u:bi(u)?M:+u}function yi(u){if(typeof u=="string")return u;if(Bt(u))return un(u,yi)+"";if(bi(u))return pD?pD.call(u):"";var d=u+"";return d=="0"&&1/u==-R?"-0":d}function os(u,d,y){var S=-1,N=Oa,re=u.length,ye=!0,we=[],Pe=we;if(y)ye=!1,N=el;else if(re>=i){var Ue=d?null:VO(u);if(Ue)return rs(Ue);ye=!1,N=mn,Pe=new Zs}else Pe=d?[]:we;e:for(;++S<re;){var He=u[S],Ze=d?d(He):He;if(He=y||He!==0?He:0,ye&&Ze===Ze){for(var ot=Pe.length;ot--;)if(Pe[ot]===Ze)continue e;d&&Pe.push(Ze),we.push(He)}else N(Pe,Ze,y)||(Pe!==we&&Pe.push(Ze),we.push(He))}return we}function ug(u,d){return d=ss(d,u),u=c5(u,d),u==null||delete u[Ua(Ii(d))]}function OD(u,d,y,S){return Zc(u,d,y(Qs(u,d)),S)}function Yf(u,d,y,S){for(var N=u.length,re=S?N:-1;(S?re--:++re<N)&&d(u[re],re,u););return y?Ri(u,S?0:re,S?re+1:N):Ri(u,S?re+1:0,S?N:re)}function LD(u,d){var y=u;return y instanceof Kt&&(y=y.value()),tl(d,function(S,N){return N.func.apply(N.thisArg,oa([S],N.args))},y)}function lg(u,d,y){var S=u.length;if(S<2)return S?os(u[0]):[];for(var N=-1,re=Y(S);++N<S;)for(var ye=u[N],we=-1;++we<S;)we!=N&&(re[N]=Hc(re[N]||ye,u[we],d,y));return os(yr(re,1),d,y)}function VD(u,d,y){for(var S=-1,N=u.length,re=d.length,ye={};++S<N;){var we=S<re?d[S]:n;y(ye,u[S],we)}return ye}function cg(u){return zn(u)?u:[]}function dg(u){return typeof u=="function"?u:ei}function ss(u,d){return Bt(u)?u:xg(u,d)?[u]:p5(an(u))}var PO=Lt;function us(u,d,y){var S=u.length;return y=y===n?S:y,!d&&y>=S?u:Ri(u,d,y)}var ND=Kn||function(u){return An.clearTimeout(u)};function jD(u,d){if(d)return u.slice();var y=u.length,S=lt?lt(y):new u.constructor(y);return u.copy(S),S}function fg(u){var d=new u.constructor(u.byteLength);return new Ie(d).set(new Ie(u)),d}function _O(u,d){var y=d?fg(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.byteLength)}function BO(u){var d=new u.constructor(u.source,dn.exec(u));return d.lastIndex=u.lastIndex,d}function FO(u){return Uc?L(Uc.call(u)):{}}function KD(u,d){var y=d?fg(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.length)}function zD(u,d){if(u!==d){var y=u!==n,S=u===null,N=u===u,re=bi(u),ye=d!==n,we=d===null,Pe=d===d,Ue=bi(d);if(!we&&!Ue&&!re&&u>d||re&&ye&&Pe&&!we&&!Ue||S&&ye&&Pe||!y&&Pe||!N)return 1;if(!S&&!re&&!Ue&&u<d||Ue&&y&&N&&!S&&!re||we&&y&&N||!ye&&N||!Pe)return-1}return 0}function kO(u,d,y){for(var S=-1,N=u.criteria,re=d.criteria,ye=N.length,we=y.length;++S<ye;){var Pe=zD(N[S],re[S]);if(Pe){if(S>=we)return Pe;var Ue=y[S];return Pe*(Ue=="desc"?-1:1)}}return u.index-d.index}function qD(u,d,y,S){for(var N=-1,re=u.length,ye=y.length,we=-1,Pe=d.length,Ue=Yt(re-ye,0),He=Y(Pe+Ue),Ze=!S;++we<Pe;)He[we]=d[we];for(;++N<ye;)(Ze||N<re)&&(He[y[N]]=u[N]);for(;Ue--;)He[we++]=u[N++];return He}function UD(u,d,y,S){for(var N=-1,re=u.length,ye=-1,we=y.length,Pe=-1,Ue=d.length,He=Yt(re-we,0),Ze=Y(He+Ue),ot=!S;++N<He;)Ze[N]=u[N];for(var vt=N;++Pe<Ue;)Ze[vt+Pe]=d[Pe];for(;++ye<we;)(ot||N<re)&&(Ze[vt+y[ye]]=u[N++]);return Ze}function Xr(u,d){var y=-1,S=u.length;for(d||(d=Y(S));++y<S;)d[y]=u[y];return d}function qa(u,d,y,S){var N=!y;y||(y={});for(var re=-1,ye=d.length;++re<ye;){var we=d[re],Pe=S?S(y[we],u[we],we,y,u):n;Pe===n&&(Pe=u[we]),N?Ao(y,we,Pe):Wc(y,we,Pe)}return y}function MO(u,d){return qa(u,bg(u),d)}function RO(u,d){return qa(u,i5(u),d)}function Zf(u,d){return function(y,S){var N=Bt(y)?Ia:rO,re=d?d():{};return N(y,u,$t(S,2),re)}}function ll(u){return Lt(function(d,y){var S=-1,N=y.length,re=N>1?y[N-1]:n,ye=N>2?y[2]:n;for(re=u.length>3&&typeof re=="function"?(N--,re):n,ye&&Ir(y[0],y[1],ye)&&(re=N<3?n:re,N=1),d=L(d);++S<N;){var we=y[S];we&&u(d,we,S,re)}return d})}function WD(u,d){return function(y,S){if(y==null)return y;if(!Qr(y))return u(y,S);for(var N=y.length,re=d?N:-1,ye=L(y);(d?re--:++re<N)&&S(ye[re],re,ye)!==!1;);return y}}function HD(u){return function(d,y,S){for(var N=-1,re=L(d),ye=S(d),we=ye.length;we--;){var Pe=ye[u?we:++N];if(y(re[Pe],Pe,re)===!1)break}return d}}function IO(u,d,y){var S=d&A,N=Xc(u);function re(){var ye=this&&this!==An&&this instanceof re?N:u;return ye.apply(S?y:this,arguments)}return re}function GD(u){return function(d){d=an(d);var y=wr(d)?_(d):n,S=y?y[0]:d.charAt(0),N=y?us(y,1).join(""):d.slice(1);return S[u]()+N}}function cl(u){return function(d){return tl(W5(U5(d).replace(ia,"")),u,"")}}function Xc(u){return function(){var d=arguments;switch(d.length){case 0:return new u;case 1:return new u(d[0]);case 2:return new u(d[0],d[1]);case 3:return new u(d[0],d[1],d[2]);case 4:return new u(d[0],d[1],d[2],d[3]);case 5:return new u(d[0],d[1],d[2],d[3],d[4]);case 6:return new u(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new u(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var y=ul(u.prototype),S=u.apply(y,d);return _n(S)?S:y}}function OO(u,d,y){var S=Xc(u);function N(){for(var re=arguments.length,ye=Y(re),we=re,Pe=dl(N);we--;)ye[we]=arguments[we];var Ue=re<3&&ye[0]!==Pe&&ye[re-1]!==Pe?[]:Yr(ye,Pe);if(re-=Ue.length,re<y)return JD(u,d,Xf,N.placeholder,n,ye,Ue,n,n,y-re);var He=this&&this!==An&&this instanceof N?S:u;return In(He,this,ye)}return N}function YD(u){return function(d,y,S){var N=L(d);if(!Qr(d)){var re=$t(y,3);d=fr(d),y=function(we){return re(N[we],we,N)}}var ye=u(d,y,S);return ye>-1?N[re?d[ye]:ye]:n}}function ZD(u){return To(function(d){var y=d.length,S=y,N=ki.prototype.thru;for(u&&d.reverse();S--;){var re=d[S];if(typeof re!="function")throw new ne(o);if(N&&!ye&&th(re)=="wrapper")var ye=new ki([],!0)}for(S=ye?S:y;++S<y;){re=d[S];var we=th(re),Pe=we=="wrapper"?vg(re):n;Pe&&Dg(Pe[0])&&Pe[1]==(q|E|P|te)&&!Pe[4].length&&Pe[9]==1?ye=ye[th(Pe[0])].apply(ye,Pe[3]):ye=re.length==1&&Dg(re)?ye[we]():ye.thru(re)}return function(){var Ue=arguments,He=Ue[0];if(ye&&Ue.length==1&&Bt(He))return ye.plant(He).value();for(var Ze=0,ot=y?d[Ze].apply(this,Ue):He;++Ze<y;)ot=d[Ze].call(this,ot);return ot}})}function Xf(u,d,y,S,N,re,ye,we,Pe,Ue){var He=d&q,Ze=d&A,ot=d&w,vt=d&(E|T),Ct=d&se,Ot=ot?n:Xc(u);function wt(){for(var Vt=arguments.length,Wt=Y(Vt),xi=Vt;xi--;)Wt[xi]=arguments[xi];if(vt)var Or=dl(wt),Di=Wm(Wt,Or);if(S&&(Wt=qD(Wt,S,N,vt)),re&&(Wt=UD(Wt,re,ye,vt)),Vt-=Di,vt&&Vt<Ue){var qn=Yr(Wt,Or);return JD(u,d,Xf,wt.placeholder,y,Wt,qn,we,Pe,Ue-Vt)}var pa=Ze?y:this,Fo=ot?pa[u]:u;return Vt=Wt.length,we?Wt=rL(Wt,we):Ct&&Vt>1&&Wt.reverse(),He&&Pe<Vt&&(Wt.length=Pe),this&&this!==An&&this instanceof wt&&(Fo=Ot||Xc(Fo)),Fo.apply(pa,Wt)}return wt}function XD(u,d){return function(y,S){return dO(y,u,d(S),{})}}function Qf(u,d){return function(y,S){var N;if(y===n&&S===n)return d;if(y!==n&&(N=y),S!==n){if(N===n)return S;typeof y=="string"||typeof S=="string"?(y=yi(y),S=yi(S)):(y=ID(y),S=ID(S)),N=u(y,S)}return N}}function hg(u){return To(function(d){return d=un(d,Cr($t())),Lt(function(y){var S=this;return u(d,function(N){return In(N,S,y)})})})}function Jf(u,d){d=d===n?" ":yi(d);var y=d.length;if(y<2)return y?og(d,u):d;var S=og(d,ln(u/D(d)));return wr(d)?us(_(S),0,u).join(""):S.slice(0,u)}function LO(u,d,y,S){var N=d&A,re=Xc(u);function ye(){for(var we=-1,Pe=arguments.length,Ue=-1,He=S.length,Ze=Y(He+Pe),ot=this&&this!==An&&this instanceof ye?re:u;++Ue<He;)Ze[Ue]=S[Ue];for(;Pe--;)Ze[Ue++]=arguments[++we];return In(ot,N?y:this,Ze)}return ye}function QD(u){return function(d,y,S){return S&&typeof S!="number"&&Ir(d,y,S)&&(y=S=n),d=Bo(d),y===n?(y=d,d=0):y=Bo(y),S=S===n?d<y?1:-1:Bo(S),EO(d,y,S,u)}}function eh(u){return function(d,y){return typeof d=="string"&&typeof y=="string"||(d=Oi(d),y=Oi(y)),u(d,y)}}function JD(u,d,y,S,N,re,ye,we,Pe,Ue){var He=d&E,Ze=He?ye:n,ot=He?n:ye,vt=He?re:n,Ct=He?n:re;d|=He?P:F,d&=~(He?F:P),d&C||(d&=-4);var Ot=[u,d,N,vt,Ze,Ct,ot,we,Pe,Ue],wt=y.apply(n,Ot);return Dg(u)&&d5(wt,Ot),wt.placeholder=S,f5(wt,u,d)}function pg(u){var d=Z[u];return function(y,S){if(y=Oi(y),S=S==null?0:$n(Mt(S),292),S&&mi(y)){var N=(an(y)+"e").split("e"),re=d(N[0]+"e"+(+N[1]+S));return N=(an(re)+"e").split("e"),+(N[0]+"e"+(+N[1]-S))}return d(y)}}var VO=ol&&1/rs(new ol([,-0]))[1]==R?function(u){return new ol(u)}:Ig;function e5(u){return function(d){var y=Ar(d);return y==ht?On(d):y==Ae?c(d):Um(d,u(d))}}function So(u,d,y,S,N,re,ye,we){var Pe=d&w;if(!Pe&&typeof u!="function")throw new ne(o);var Ue=S?S.length:0;if(Ue||(d&=-97,S=N=n),ye=ye===n?ye:Yt(Mt(ye),0),we=we===n?we:Mt(we),Ue-=N?N.length:0,d&F){var He=S,Ze=N;S=N=n}var ot=Pe?n:vg(u),vt=[u,d,y,S,N,He,Ze,re,ye,we];if(ot&&eL(vt,ot),u=vt[0],d=vt[1],y=vt[2],S=vt[3],N=vt[4],we=vt[9]=vt[9]===n?Pe?0:u.length:Yt(vt[9]-Ue,0),!we&&d&(E|T)&&(d&=-25),!d||d==A)var Ct=IO(u,d,y);else d==E||d==T?Ct=OO(u,d,we):(d==P||d==(A|P))&&!N.length?Ct=LO(u,d,y,S):Ct=Xf.apply(n,vt);var Ot=ot?MD:d5;return f5(Ot(Ct,vt),u,d)}function t5(u,d,y,S){return u===n||ha(u,Oe[y])&&!Ve.call(S,y)?d:u}function n5(u,d,y,S,N,re){return _n(u)&&_n(d)&&(re.set(d,u),Hf(u,d,n,n5,re),re.delete(d)),u}function NO(u){return ed(u)?n:u}function r5(u,d,y,S,N,re){var ye=y&$,we=u.length,Pe=d.length;if(we!=Pe&&!(ye&&Pe>we))return!1;var Ue=re.get(u),He=re.get(d);if(Ue&&He)return Ue==d&&He==u;var Ze=-1,ot=!0,vt=y&x?new Zs:n;for(re.set(u,d),re.set(d,u);++Ze<we;){var Ct=u[Ze],Ot=d[Ze];if(S)var wt=ye?S(Ot,Ct,Ze,d,u,re):S(Ct,Ot,Ze,u,d,re);if(wt!==n){if(wt)continue;ot=!1;break}if(vt){if(!La(d,function(Vt,Wt){if(!mn(vt,Wt)&&(Ct===Vt||N(Ct,Vt,y,S,re)))return vt.push(Wt)})){ot=!1;break}}else if(!(Ct===Ot||N(Ct,Ot,y,S,re))){ot=!1;break}}return re.delete(u),re.delete(d),ot}function jO(u,d,y,S,N,re,ye){switch(y){case Dt:if(u.byteLength!=d.byteLength||u.byteOffset!=d.byteOffset)return!1;u=u.buffer,d=d.buffer;case kt:return!(u.byteLength!=d.byteLength||!re(new Ie(u),new Ie(d)));case Ne:case qe:case Ht:return ha(+u,+d);case je:return u.name==d.name&&u.message==d.message;case xe:case Fe:return u==d+"";case ht:var we=On;case Ae:var Pe=S&$;if(we||(we=rs),u.size!=d.size&&!Pe)return!1;var Ue=ye.get(u);if(Ue)return Ue==d;S|=x,ye.set(u,d);var He=r5(we(u),we(d),S,N,re,ye);return ye.delete(u),He;case Qe:if(Uc)return Uc.call(u)==Uc.call(d)}return!1}function KO(u,d,y,S,N,re){var ye=y&$,we=mg(u),Pe=we.length,Ue=mg(d),He=Ue.length;if(Pe!=He&&!ye)return!1;for(var Ze=Pe;Ze--;){var ot=we[Ze];if(!(ye?ot in d:Ve.call(d,ot)))return!1}var vt=re.get(u),Ct=re.get(d);if(vt&&Ct)return vt==d&&Ct==u;var Ot=!0;re.set(u,d),re.set(d,u);for(var wt=ye;++Ze<Pe;){ot=we[Ze];var Vt=u[ot],Wt=d[ot];if(S)var xi=ye?S(Wt,Vt,ot,d,u,re):S(Vt,Wt,ot,u,d,re);if(!(xi===n?Vt===Wt||N(Vt,Wt,y,S,re):xi)){Ot=!1;break}wt||(wt=ot=="constructor")}if(Ot&&!wt){var Or=u.constructor,Di=d.constructor;Or!=Di&&"constructor"in u&&"constructor"in d&&!(typeof Or=="function"&&Or instanceof Or&&typeof Di=="function"&&Di instanceof Di)&&(Ot=!1)}return re.delete(u),re.delete(d),Ot}function To(u){return Eg(l5(u,n,y5),u+"")}function mg(u){return ED(u,fr,bg)}function gg(u){return ED(u,Jr,i5)}var vg=jf?function(u){return jf.get(u)}:Ig;function th(u){for(var d=u.name+"",y=sl[d],S=Ve.call(sl,d)?y.length:0;S--;){var N=y[S],re=N.func;if(re==null||re==u)return N.name}return d}function dl(u){var d=Ve.call(X,"placeholder")?X:u;return d.placeholder}function $t(){var u=X.iteratee||Mg;return u=u===Mg?AD:u,arguments.length?u(arguments[0],arguments[1]):u}function nh(u,d){var y=u.__data__;return ZO(d)?y[typeof d=="string"?"string":"hash"]:y.map}function yg(u){for(var d=fr(u),y=d.length;y--;){var S=d[y],N=u[S];d[y]=[S,N,s5(N)]}return d}function Js(u,d){var y=Gm(u,d);return wD(y)?y:n}function zO(u){var d=Ve.call(u,Ln),y=u[Ln];try{u[Ln]=n;var S=!0}catch{}var N=Le.call(u);return S&&(d?u[Ln]=y:delete u[Ln]),N}var bg=Fi?function(u){return u==null?[]:(u=L(u),Er(Fi(u),function(d){return Dn.call(u,d)}))}:Og,i5=Fi?function(u){for(var d=[];u;)oa(d,bg(u)),u=St(u);return d}:Og,Ar=Rr;(da&&Ar(new da(new ArrayBuffer(1)))!=Dt||Ka&&Ar(new Ka)!=ht||is&&Ar(is.resolve())!=Wr||ol&&Ar(new ol)!=Ae||zc&&Ar(new zc)!=Je)&&(Ar=function(u){var d=Rr(u),y=d==_t?u.constructor:n,S=y?eu(y):"";if(S)switch(S){case wI:return Dt;case AI:return ht;case SI:return Wr;case TI:return Ae;case PI:return Je}return d});function qO(u,d,y){for(var S=-1,N=y.length;++S<N;){var re=y[S],ye=re.size;switch(re.type){case"drop":u+=ye;break;case"dropRight":d-=ye;break;case"take":d=$n(d,u+ye);break;case"takeRight":u=Yt(u,d-ye);break}}return{start:u,end:d}}function UO(u){var d=u.match($r);return d?d[1].split(qu):[]}function a5(u,d,y){d=ss(d,u);for(var S=-1,N=d.length,re=!1;++S<N;){var ye=Ua(d[S]);if(!(re=u!=null&&y(u,ye)))break;u=u[ye]}return re||++S!=N?re:(N=u==null?0:u.length,!!N&&lh(N)&&Po(ye,N)&&(Bt(u)||tu(u)))}function WO(u){var d=u.length,y=new u.constructor(d);return d&&typeof u[0]=="string"&&Ve.call(u,"index")&&(y.index=u.index,y.input=u.input),y}function o5(u){return typeof u.constructor=="function"&&!Qc(u)?ul(St(u)):{}}function HO(u,d,y){var S=u.constructor;switch(d){case kt:return fg(u);case Ne:case qe:return new S(+u);case Dt:return _O(u,y);case bn:case Dr:case zt:case Pt:case It:case qt:case pr:case Hr:case li:return KD(u,y);case ht:return new S;case Ht:case Fe:return new S(u);case xe:return BO(u);case Ae:return new S;case Qe:return FO(u)}}function GO(u,d){var y=d.length;if(!y)return u;var S=y-1;return d[S]=(y>1?"& ":"")+d[S],d=d.join(y>2?", ":" "),u.replace(zu,`{
|
|
42
|
-
/* [wrapped with `+d+`] */
|
|
43
|
-
`)}function YO(u){return Bt(u)||tu(u)||!!(dr&&u&&u[dr])}function Po(u,d){var y=typeof u;return d=d??K,!!d&&(y=="number"||y!="symbol"&&Fa.test(u))&&u>-1&&u%1==0&&u<d}function Ir(u,d,y){if(!_n(y))return!1;var S=typeof d;return(S=="number"?Qr(y)&&Po(d,y.length):S=="string"&&d in y)?ha(y[d],u):!1}function xg(u,d){if(Bt(u))return!1;var y=typeof u;return y=="number"||y=="symbol"||y=="boolean"||u==null||bi(u)?!0:Ku.test(u)||!Fs.test(u)||d!=null&&u in L(d)}function ZO(u){var d=typeof u;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?u!=="__proto__":u===null}function Dg(u){var d=th(u),y=X[d];if(typeof y!="function"||!(d in Kt.prototype))return!1;if(u===y)return!0;var S=vg(y);return!!S&&u===S[0]}function XO(u){return!!ct&&ct in u}var QO=nt?_o:Lg;function Qc(u){var d=u&&u.constructor,y=typeof d=="function"&&d.prototype||Oe;return u===y}function s5(u){return u===u&&!_n(u)}function u5(u,d){return function(y){return y==null?!1:y[u]===d&&(d!==n||u in L(y))}}function JO(u){var d=sh(u,function(S){return y.size===f&&y.clear(),S}),y=d.cache;return d}function eL(u,d){var y=u[1],S=d[1],N=y|S,re=N<(A|w|q),ye=S==q&&y==E||S==q&&y==te&&u[7].length<=d[8]||S==(q|te)&&d[7].length<=d[8]&&y==E;if(!(re||ye))return u;S&A&&(u[2]=d[2],N|=y&A?0:C);var we=d[3];if(we){var Pe=u[3];u[3]=Pe?qD(Pe,we,d[4]):we,u[4]=Pe?Yr(u[3],h):d[4]}return we=d[5],we&&(Pe=u[5],u[5]=Pe?UD(Pe,we,d[6]):we,u[6]=Pe?Yr(u[5],h):d[6]),we=d[7],we&&(u[7]=we),S&q&&(u[8]=u[8]==null?d[8]:$n(u[8],d[8])),u[9]==null&&(u[9]=d[9]),u[0]=d[0],u[1]=N,u}function tL(u){var d=[];if(u!=null)for(var y in L(u))d.push(y);return d}function nL(u){return Le.call(u)}function l5(u,d,y){return d=Yt(d===n?u.length-1:d,0),function(){for(var S=arguments,N=-1,re=Yt(S.length-d,0),ye=Y(re);++N<re;)ye[N]=S[d+N];N=-1;for(var we=Y(d+1);++N<d;)we[N]=S[N];return we[d]=y(ye),In(u,this,we)}}function c5(u,d){return d.length<2?u:Qs(u,Ri(d,0,-1))}function rL(u,d){for(var y=u.length,S=$n(d.length,y),N=Xr(u);S--;){var re=d[S];u[S]=Po(re,y)?N[re]:n}return u}function $g(u,d){if(!(d==="constructor"&&typeof u[d]=="function")&&d!="__proto__")return u[d]}var d5=h5(MD),Jc=dt||function(u,d){return An.setTimeout(u,d)},Eg=h5(AO);function f5(u,d,y){var S=d+"";return Eg(u,GO(S,iL(UO(S),y)))}function h5(u){var d=0,y=0;return function(){var S=ja(),N=be-(S-y);if(y=S,N>0){if(++d>=Ee)return arguments[0]}else d=0;return u.apply(n,arguments)}}function rh(u,d){var y=-1,S=u.length,N=S-1;for(d=d===n?S:d;++y<d;){var re=ag(y,N),ye=u[re];u[re]=u[y],u[y]=ye}return u.length=d,u}var p5=JO(function(u){var d=[];return u.charCodeAt(0)===46&&d.push(""),u.replace(ta,function(y,S,N,re){d.push(N?re.replace(Gr,"$1"):S||y)}),d});function Ua(u){if(typeof u=="string"||bi(u))return u;var d=u+"";return d=="0"&&1/u==-R?"-0":d}function eu(u){if(u!=null){try{return tt.call(u)}catch{}try{return u+""}catch{}}return""}function iL(u,d){return fn(_e,function(y){var S="_."+y[0];d&y[1]&&!Oa(u,S)&&u.push(S)}),u.sort()}function m5(u){if(u instanceof Kt)return u.clone();var d=new ki(u.__wrapped__,u.__chain__);return d.__actions__=Xr(u.__actions__),d.__index__=u.__index__,d.__values__=u.__values__,d}function aL(u,d,y){(y?Ir(u,d,y):d===n)?d=1:d=Yt(Mt(d),0);var S=u==null?0:u.length;if(!S||d<1)return[];for(var N=0,re=0,ye=Y(ln(S/d));N<S;)ye[re++]=Ri(u,N,N+=d);return ye}function oL(u){for(var d=-1,y=u==null?0:u.length,S=0,N=[];++d<y;){var re=u[d];re&&(N[S++]=re)}return N}function sL(){var u=arguments.length;if(!u)return[];for(var d=Y(u-1),y=arguments[0],S=u;S--;)d[S-1]=arguments[S];return oa(Bt(y)?Xr(y):[y],yr(d,1))}var uL=Lt(function(u,d){return zn(u)?Hc(u,yr(d,1,zn,!0)):[]}),lL=Lt(function(u,d){var y=Ii(d);return zn(y)&&(y=n),zn(u)?Hc(u,yr(d,1,zn,!0),$t(y,2)):[]}),cL=Lt(function(u,d){var y=Ii(d);return zn(y)&&(y=n),zn(u)?Hc(u,yr(d,1,zn,!0),n,y):[]});function dL(u,d,y){var S=u==null?0:u.length;return S?(d=y||d===n?1:Mt(d),Ri(u,d<0?0:d,S)):[]}function fL(u,d,y){var S=u==null?0:u.length;return S?(d=y||d===n?1:Mt(d),d=S-d,Ri(u,0,d<0?0:d)):[]}function hL(u,d){return u&&u.length?Yf(u,$t(d,3),!0,!0):[]}function pL(u,d){return u&&u.length?Yf(u,$t(d,3),!0):[]}function mL(u,d,y,S){var N=u==null?0:u.length;return N?(y&&typeof y!="number"&&Ir(u,d,y)&&(y=0,S=N),sO(u,d,y,S)):[]}function g5(u,d,y){var S=u==null?0:u.length;if(!S)return-1;var N=y==null?0:Mt(y);return N<0&&(N=Yt(S+N,0)),Ws(u,$t(d,3),N)}function v5(u,d,y){var S=u==null?0:u.length;if(!S)return-1;var N=S-1;return y!==n&&(N=Mt(y),N=y<0?Yt(S+N,0):$n(N,S-1)),Ws(u,$t(d,3),N,!0)}function y5(u){var d=u==null?0:u.length;return d?yr(u,1):[]}function gL(u){var d=u==null?0:u.length;return d?yr(u,R):[]}function vL(u,d){var y=u==null?0:u.length;return y?(d=d===n?1:Mt(d),yr(u,d)):[]}function yL(u){for(var d=-1,y=u==null?0:u.length,S={};++d<y;){var N=u[d];S[N[0]]=N[1]}return S}function b5(u){return u&&u.length?u[0]:n}function bL(u,d,y){var S=u==null?0:u.length;if(!S)return-1;var N=y==null?0:Mt(y);return N<0&&(N=Yt(S+N,0)),$o(u,d,N)}function xL(u){var d=u==null?0:u.length;return d?Ri(u,0,-1):[]}var DL=Lt(function(u){var d=un(u,cg);return d.length&&d[0]===u[0]?eg(d):[]}),$L=Lt(function(u){var d=Ii(u),y=un(u,cg);return d===Ii(y)?d=n:y.pop(),y.length&&y[0]===u[0]?eg(y,$t(d,2)):[]}),EL=Lt(function(u){var d=Ii(u),y=un(u,cg);return d=typeof d=="function"?d:n,d&&y.pop(),y.length&&y[0]===u[0]?eg(y,n,d):[]});function CL(u,d){return u==null?"":ua.call(u,d)}function Ii(u){var d=u==null?0:u.length;return d?u[d-1]:n}function wL(u,d,y){var S=u==null?0:u.length;if(!S)return-1;var N=S;return y!==n&&(N=Mt(y),N=N<0?Yt(S+N,0):$n(N,S-1)),d===d?v(u,d,N):Ws(u,Vc,N,!0)}function AL(u,d){return u&&u.length?_D(u,Mt(d)):n}var SL=Lt(x5);function x5(u,d){return u&&u.length&&d&&d.length?ig(u,d):u}function TL(u,d,y){return u&&u.length&&d&&d.length?ig(u,d,$t(y,2)):u}function PL(u,d,y){return u&&u.length&&d&&d.length?ig(u,d,n,y):u}var _L=To(function(u,d){var y=u==null?0:u.length,S=Zm(u,d);return kD(u,un(d,function(N){return Po(N,y)?+N:N}).sort(zD)),S});function BL(u,d){var y=[];if(!(u&&u.length))return y;var S=-1,N=[],re=u.length;for(d=$t(d,3);++S<re;){var ye=u[S];d(ye,S,u)&&(y.push(ye),N.push(S))}return kD(u,N),y}function Cg(u){return u==null?u:vi.call(u)}function FL(u,d,y){var S=u==null?0:u.length;return S?(y&&typeof y!="number"&&Ir(u,d,y)?(d=0,y=S):(d=d==null?0:Mt(d),y=y===n?S:Mt(y)),Ri(u,d,y)):[]}function kL(u,d){return Gf(u,d)}function ML(u,d,y){return sg(u,d,$t(y,2))}function RL(u,d){var y=u==null?0:u.length;if(y){var S=Gf(u,d);if(S<y&&ha(u[S],d))return S}return-1}function IL(u,d){return Gf(u,d,!0)}function OL(u,d,y){return sg(u,d,$t(y,2),!0)}function LL(u,d){var y=u==null?0:u.length;if(y){var S=Gf(u,d,!0)-1;if(ha(u[S],d))return S}return-1}function VL(u){return u&&u.length?RD(u):[]}function NL(u,d){return u&&u.length?RD(u,$t(d,2)):[]}function jL(u){var d=u==null?0:u.length;return d?Ri(u,1,d):[]}function KL(u,d,y){return u&&u.length?(d=y||d===n?1:Mt(d),Ri(u,0,d<0?0:d)):[]}function zL(u,d,y){var S=u==null?0:u.length;return S?(d=y||d===n?1:Mt(d),d=S-d,Ri(u,d<0?0:d,S)):[]}function qL(u,d){return u&&u.length?Yf(u,$t(d,3),!1,!0):[]}function UL(u,d){return u&&u.length?Yf(u,$t(d,3)):[]}var WL=Lt(function(u){return os(yr(u,1,zn,!0))}),HL=Lt(function(u){var d=Ii(u);return zn(d)&&(d=n),os(yr(u,1,zn,!0),$t(d,2))}),GL=Lt(function(u){var d=Ii(u);return d=typeof d=="function"?d:n,os(yr(u,1,zn,!0),n,d)});function YL(u){return u&&u.length?os(u):[]}function ZL(u,d){return u&&u.length?os(u,$t(d,2)):[]}function XL(u,d){return d=typeof d=="function"?d:n,u&&u.length?os(u,n,d):[]}function wg(u){if(!(u&&u.length))return[];var d=0;return u=Er(u,function(y){if(zn(y))return d=Yt(y.length,d),!0}),il(d,function(y){return un(u,nl(y))})}function D5(u,d){if(!(u&&u.length))return[];var y=wg(u);return d==null?y:un(y,function(S){return In(d,n,S)})}var QL=Lt(function(u,d){return zn(u)?Hc(u,d):[]}),JL=Lt(function(u){return lg(Er(u,zn))}),eV=Lt(function(u){var d=Ii(u);return zn(d)&&(d=n),lg(Er(u,zn),$t(d,2))}),tV=Lt(function(u){var d=Ii(u);return d=typeof d=="function"?d:n,lg(Er(u,zn),n,d)}),nV=Lt(wg);function rV(u,d){return VD(u||[],d||[],Wc)}function iV(u,d){return VD(u||[],d||[],Zc)}var aV=Lt(function(u){var d=u.length,y=d>1?u[d-1]:n;return y=typeof y=="function"?(u.pop(),y):n,D5(u,y)});function $5(u){var d=X(u);return d.__chain__=!0,d}function oV(u,d){return d(u),u}function ih(u,d){return d(u)}var sV=To(function(u){var d=u.length,y=d?u[0]:0,S=this.__wrapped__,N=function(re){return Zm(re,u)};return d>1||this.__actions__.length||!(S instanceof Kt)||!Po(y)?this.thru(N):(S=S.slice(y,+y+(d?1:0)),S.__actions__.push({func:ih,args:[N],thisArg:n}),new ki(S,this.__chain__).thru(function(re){return d&&!re.length&&re.push(n),re}))});function uV(){return $5(this)}function lV(){return new ki(this.value(),this.__chain__)}function cV(){this.__values__===n&&(this.__values__=I5(this.value()));var u=this.__index__>=this.__values__.length,d=u?n:this.__values__[this.__index__++];return{done:u,value:d}}function dV(){return this}function fV(u){for(var d,y=this;y instanceof zf;){var S=m5(y);S.__index__=0,S.__values__=n,d?N.__wrapped__=S:d=S;var N=S;y=y.__wrapped__}return N.__wrapped__=u,d}function hV(){var u=this.__wrapped__;if(u instanceof Kt){var d=u;return this.__actions__.length&&(d=new Kt(this)),d=d.reverse(),d.__actions__.push({func:ih,args:[Cg],thisArg:n}),new ki(d,this.__chain__)}return this.thru(Cg)}function pV(){return LD(this.__wrapped__,this.__actions__)}var mV=Zf(function(u,d,y){Ve.call(u,y)?++u[y]:Ao(u,y,1)});function gV(u,d,y){var S=Bt(u)?Do:oO;return y&&Ir(u,d,y)&&(d=n),S(u,$t(d,3))}function vV(u,d){var y=Bt(u)?Er:DD;return y(u,$t(d,3))}var yV=YD(g5),bV=YD(v5);function xV(u,d){return yr(ah(u,d),1)}function DV(u,d){return yr(ah(u,d),R)}function $V(u,d,y){return y=y===n?1:Mt(y),yr(ah(u,d),y)}function E5(u,d){var y=Bt(u)?fn:as;return y(u,$t(d,3))}function C5(u,d){var y=Bt(u)?lr:xD;return y(u,$t(d,3))}var EV=Zf(function(u,d,y){Ve.call(u,y)?u[y].push(d):Ao(u,y,[d])});function CV(u,d,y,S){u=Qr(u)?u:hl(u),y=y&&!S?Mt(y):0;var N=u.length;return y<0&&(y=Yt(N+y,0)),ch(u)?y<=N&&u.indexOf(d,y)>-1:!!N&&$o(u,d,y)>-1}var wV=Lt(function(u,d,y){var S=-1,N=typeof d=="function",re=Qr(u)?Y(u.length):[];return as(u,function(ye){re[++S]=N?In(d,ye,y):Gc(ye,d,y)}),re}),AV=Zf(function(u,d,y){Ao(u,y,d)});function ah(u,d){var y=Bt(u)?un:SD;return y(u,$t(d,3))}function SV(u,d,y,S){return u==null?[]:(Bt(d)||(d=d==null?[]:[d]),y=S?n:y,Bt(y)||(y=y==null?[]:[y]),BD(u,d,y))}var TV=Zf(function(u,d,y){u[y?0:1].push(d)},function(){return[[],[]]});function PV(u,d,y){var S=Bt(u)?tl:Nc,N=arguments.length<3;return S(u,$t(d,4),y,N,as)}function _V(u,d,y){var S=Bt(u)?zs:Nc,N=arguments.length<3;return S(u,$t(d,4),y,N,xD)}function BV(u,d){var y=Bt(u)?Er:DD;return y(u,uh($t(d,3)))}function FV(u){var d=Bt(u)?gD:CO;return d(u)}function kV(u,d,y){(y?Ir(u,d,y):d===n)?d=1:d=Mt(d);var S=Bt(u)?tO:wO;return S(u,d)}function MV(u){var d=Bt(u)?nO:SO;return d(u)}function RV(u){if(u==null)return 0;if(Qr(u))return ch(u)?D(u):u.length;var d=Ar(u);return d==ht||d==Ae?u.size:ng(u).length}function IV(u,d,y){var S=Bt(u)?La:TO;return y&&Ir(u,d,y)&&(d=n),S(u,$t(d,3))}var OV=Lt(function(u,d){if(u==null)return[];var y=d.length;return y>1&&Ir(u,d[0],d[1])?d=[]:y>2&&Ir(d[0],d[1],d[2])&&(d=[d[0]]),BD(u,yr(d,1),[])}),oh=vr||function(){return An.Date.now()};function LV(u,d){if(typeof d!="function")throw new ne(o);return u=Mt(u),function(){if(--u<1)return d.apply(this,arguments)}}function w5(u,d,y){return d=y?n:d,d=u&&d==null?u.length:d,So(u,q,n,n,n,n,d)}function A5(u,d){var y;if(typeof d!="function")throw new ne(o);return u=Mt(u),function(){return--u>0&&(y=d.apply(this,arguments)),u<=1&&(d=n),y}}var Ag=Lt(function(u,d,y){var S=A;if(y.length){var N=Yr(y,dl(Ag));S|=P}return So(u,S,d,y,N)}),S5=Lt(function(u,d,y){var S=A|w;if(y.length){var N=Yr(y,dl(S5));S|=P}return So(d,S,u,y,N)});function T5(u,d,y){d=y?n:d;var S=So(u,E,n,n,n,n,n,d);return S.placeholder=T5.placeholder,S}function P5(u,d,y){d=y?n:d;var S=So(u,T,n,n,n,n,n,d);return S.placeholder=P5.placeholder,S}function _5(u,d,y){var S,N,re,ye,we,Pe,Ue=0,He=!1,Ze=!1,ot=!0;if(typeof u!="function")throw new ne(o);d=Oi(d)||0,_n(y)&&(He=!!y.leading,Ze="maxWait"in y,re=Ze?Yt(Oi(y.maxWait)||0,d):re,ot="trailing"in y?!!y.trailing:ot);function vt(qn){var pa=S,Fo=N;return S=N=n,Ue=qn,ye=u.apply(Fo,pa),ye}function Ct(qn){return Ue=qn,we=Jc(Vt,d),He?vt(qn):ye}function Ot(qn){var pa=qn-Pe,Fo=qn-Ue,Y5=d-pa;return Ze?$n(Y5,re-Fo):Y5}function wt(qn){var pa=qn-Pe,Fo=qn-Ue;return Pe===n||pa>=d||pa<0||Ze&&Fo>=re}function Vt(){var qn=oh();if(wt(qn))return Wt(qn);we=Jc(Vt,Ot(qn))}function Wt(qn){return we=n,ot&&S?vt(qn):(S=N=n,ye)}function xi(){we!==n&&ND(we),Ue=0,S=Pe=N=we=n}function Or(){return we===n?ye:Wt(oh())}function Di(){var qn=oh(),pa=wt(qn);if(S=arguments,N=this,Pe=qn,pa){if(we===n)return Ct(Pe);if(Ze)return ND(we),we=Jc(Vt,d),vt(Pe)}return we===n&&(we=Jc(Vt,d)),ye}return Di.cancel=xi,Di.flush=Or,Di}var VV=Lt(function(u,d){return bD(u,1,d)}),NV=Lt(function(u,d,y){return bD(u,Oi(d)||0,y)});function jV(u){return So(u,se)}function sh(u,d){if(typeof u!="function"||d!=null&&typeof d!="function")throw new ne(o);var y=function(){var S=arguments,N=d?d.apply(this,S):S[0],re=y.cache;if(re.has(N))return re.get(N);var ye=u.apply(this,S);return y.cache=re.set(N,ye)||re,ye};return y.cache=new(sh.Cache||wo),y}sh.Cache=wo;function uh(u){if(typeof u!="function")throw new ne(o);return function(){var d=arguments;switch(d.length){case 0:return!u.call(this);case 1:return!u.call(this,d[0]);case 2:return!u.call(this,d[0],d[1]);case 3:return!u.call(this,d[0],d[1],d[2])}return!u.apply(this,d)}}function KV(u){return A5(2,u)}var zV=PO(function(u,d){d=d.length==1&&Bt(d[0])?un(d[0],Cr($t())):un(yr(d,1),Cr($t()));var y=d.length;return Lt(function(S){for(var N=-1,re=$n(S.length,y);++N<re;)S[N]=d[N].call(this,S[N]);return In(u,this,S)})}),Sg=Lt(function(u,d){var y=Yr(d,dl(Sg));return So(u,P,n,d,y)}),B5=Lt(function(u,d){var y=Yr(d,dl(B5));return So(u,F,n,d,y)}),qV=To(function(u,d){return So(u,te,n,n,n,d)});function UV(u,d){if(typeof u!="function")throw new ne(o);return d=d===n?d:Mt(d),Lt(u,d)}function WV(u,d){if(typeof u!="function")throw new ne(o);return d=d==null?0:Yt(Mt(d),0),Lt(function(y){var S=y[d],N=us(y,0,d);return S&&oa(N,S),In(u,this,N)})}function HV(u,d,y){var S=!0,N=!0;if(typeof u!="function")throw new ne(o);return _n(y)&&(S="leading"in y?!!y.leading:S,N="trailing"in y?!!y.trailing:N),_5(u,d,{leading:S,maxWait:d,trailing:N})}function GV(u){return w5(u,1)}function YV(u,d){return Sg(dg(d),u)}function ZV(){if(!arguments.length)return[];var u=arguments[0];return Bt(u)?u:[u]}function XV(u){return Mi(u,b)}function QV(u,d){return d=typeof d=="function"?d:n,Mi(u,b,d)}function JV(u){return Mi(u,m|b)}function eN(u,d){return d=typeof d=="function"?d:n,Mi(u,m|b,d)}function tN(u,d){return d==null||yD(u,d,fr(d))}function ha(u,d){return u===d||u!==u&&d!==d}var nN=eh(Jm),rN=eh(function(u,d){return u>=d}),tu=CD(function(){return arguments}())?CD:function(u){return Vn(u)&&Ve.call(u,"callee")&&!Dn.call(u,"callee")},Bt=Y.isArray,iN=xo?Cr(xo):fO;function Qr(u){return u!=null&&lh(u.length)&&!_o(u)}function zn(u){return Vn(u)&&Qr(u)}function aN(u){return u===!0||u===!1||Vn(u)&&Rr(u)==Ne}var ls=sa||Lg,oN=Of?Cr(Of):hO;function sN(u){return Vn(u)&&u.nodeType===1&&!ed(u)}function uN(u){if(u==null)return!0;if(Qr(u)&&(Bt(u)||typeof u=="string"||typeof u.splice=="function"||ls(u)||fl(u)||tu(u)))return!u.length;var d=Ar(u);if(d==ht||d==Ae)return!u.size;if(Qc(u))return!ng(u).length;for(var y in u)if(Ve.call(u,y))return!1;return!0}function lN(u,d){return Yc(u,d)}function cN(u,d,y){y=typeof y=="function"?y:n;var S=y?y(u,d):n;return S===n?Yc(u,d,n,y):!!S}function Tg(u){if(!Vn(u))return!1;var d=Rr(u);return d==je||d==ke||typeof u.message=="string"&&typeof u.name=="string"&&!ed(u)}function dN(u){return typeof u=="number"&&mi(u)}function _o(u){if(!_n(u))return!1;var d=Rr(u);return d==Te||d==Ye||d==Xe||d==Jt}function F5(u){return typeof u=="number"&&u==Mt(u)}function lh(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=K}function _n(u){var d=typeof u;return u!=null&&(d=="object"||d=="function")}function Vn(u){return u!=null&&typeof u=="object"}var k5=Lf?Cr(Lf):mO;function fN(u,d){return u===d||tg(u,d,yg(d))}function hN(u,d,y){return y=typeof y=="function"?y:n,tg(u,d,yg(d),y)}function pN(u){return M5(u)&&u!=+u}function mN(u){if(QO(u))throw new he(a);return wD(u)}function gN(u){return u===null}function vN(u){return u==null}function M5(u){return typeof u=="number"||Vn(u)&&Rr(u)==Ht}function ed(u){if(!Vn(u)||Rr(u)!=_t)return!1;var d=St(u);if(d===null)return!0;var y=Ve.call(d,"constructor")&&d.constructor;return typeof y=="function"&&y instanceof y&&tt.call(y)==$e}var Pg=Oc?Cr(Oc):gO;function yN(u){return F5(u)&&u>=-K&&u<=K}var R5=ns?Cr(ns):vO;function ch(u){return typeof u=="string"||!Bt(u)&&Vn(u)&&Rr(u)==Fe}function bi(u){return typeof u=="symbol"||Vn(u)&&Rr(u)==Qe}var fl=aa?Cr(aa):yO;function bN(u){return u===n}function xN(u){return Vn(u)&&Ar(u)==Je}function DN(u){return Vn(u)&&Rr(u)==gt}var $N=eh(rg),EN=eh(function(u,d){return u<=d});function I5(u){if(!u)return[];if(Qr(u))return ch(u)?_(u):Xr(u);if(Zn&&u[Zn])return Na(u[Zn]());var d=Ar(u),y=d==ht?On:d==Ae?rs:hl;return y(u)}function Bo(u){if(!u)return u===0?u:0;if(u=Oi(u),u===R||u===-R){var d=u<0?-1:1;return d*fe}return u===u?u:0}function Mt(u){var d=Bo(u),y=d%1;return d===d?y?d-y:d:0}function O5(u){return u?Xs(Mt(u),0,oe):0}function Oi(u){if(typeof u=="number")return u;if(bi(u))return M;if(_n(u)){var d=typeof u.valueOf=="function"?u.valueOf():u;u=_n(d)?d+"":d}if(typeof u!="string")return u===0?u:+u;u=Nf(u);var y=di.test(u);return y||ks.test(u)?rr(u.slice(2),y?2:8):ra.test(u)?M:+u}function L5(u){return qa(u,Jr(u))}function CN(u){return u?Xs(Mt(u),-K,K):u===0?u:0}function an(u){return u==null?"":yi(u)}var wN=ll(function(u,d){if(Qc(d)||Qr(d)){qa(d,fr(d),u);return}for(var y in d)Ve.call(d,y)&&Wc(u,y,d[y])}),V5=ll(function(u,d){qa(d,Jr(d),u)}),dh=ll(function(u,d,y,S){qa(d,Jr(d),u,S)}),AN=ll(function(u,d,y,S){qa(d,fr(d),u,S)}),SN=To(Zm);function TN(u,d){var y=ul(u);return d==null?y:vD(y,d)}var PN=Lt(function(u,d){u=L(u);var y=-1,S=d.length,N=S>2?d[2]:n;for(N&&Ir(d[0],d[1],N)&&(S=1);++y<S;)for(var re=d[y],ye=Jr(re),we=-1,Pe=ye.length;++we<Pe;){var Ue=ye[we],He=u[Ue];(He===n||ha(He,Oe[Ue])&&!Ve.call(u,Ue))&&(u[Ue]=re[Ue])}return u}),_N=Lt(function(u){return u.push(n,n5),In(N5,n,u)});function BN(u,d){return Lc(u,$t(d,3),za)}function FN(u,d){return Lc(u,$t(d,3),Qm)}function kN(u,d){return u==null?u:Xm(u,$t(d,3),Jr)}function MN(u,d){return u==null?u:$D(u,$t(d,3),Jr)}function RN(u,d){return u&&za(u,$t(d,3))}function IN(u,d){return u&&Qm(u,$t(d,3))}function ON(u){return u==null?[]:Wf(u,fr(u))}function LN(u){return u==null?[]:Wf(u,Jr(u))}function _g(u,d,y){var S=u==null?n:Qs(u,d);return S===n?y:S}function VN(u,d){return u!=null&&a5(u,d,uO)}function Bg(u,d){return u!=null&&a5(u,d,lO)}var NN=XD(function(u,d,y){d!=null&&typeof d.toString!="function"&&(d=Le.call(d)),u[d]=y},kg(ei)),jN=XD(function(u,d,y){d!=null&&typeof d.toString!="function"&&(d=Le.call(d)),Ve.call(u,d)?u[d].push(y):u[d]=[y]},$t),KN=Lt(Gc);function fr(u){return Qr(u)?mD(u):ng(u)}function Jr(u){return Qr(u)?mD(u,!0):bO(u)}function zN(u,d){var y={};return d=$t(d,3),za(u,function(S,N,re){Ao(y,d(S,N,re),S)}),y}function qN(u,d){var y={};return d=$t(d,3),za(u,function(S,N,re){Ao(y,N,d(S,N,re))}),y}var UN=ll(function(u,d,y){Hf(u,d,y)}),N5=ll(function(u,d,y,S){Hf(u,d,y,S)}),WN=To(function(u,d){var y={};if(u==null)return y;var S=!1;d=un(d,function(re){return re=ss(re,u),S||(S=re.length>1),re}),qa(u,gg(u),y),S&&(y=Mi(y,m|g|b,NO));for(var N=d.length;N--;)ug(y,d[N]);return y});function HN(u,d){return j5(u,uh($t(d)))}var GN=To(function(u,d){return u==null?{}:DO(u,d)});function j5(u,d){if(u==null)return{};var y=un(gg(u),function(S){return[S]});return d=$t(d),FD(u,y,function(S,N){return d(S,N[0])})}function YN(u,d,y){d=ss(d,u);var S=-1,N=d.length;for(N||(N=1,u=n);++S<N;){var re=u==null?n:u[Ua(d[S])];re===n&&(S=N,re=y),u=_o(re)?re.call(u):re}return u}function ZN(u,d,y){return u==null?u:Zc(u,d,y)}function XN(u,d,y,S){return S=typeof S=="function"?S:n,u==null?u:Zc(u,d,y,S)}var K5=e5(fr),z5=e5(Jr);function QN(u,d,y){var S=Bt(u),N=S||ls(u)||fl(u);if(d=$t(d,4),y==null){var re=u&&u.constructor;N?y=S?new re:[]:_n(u)?y=_o(re)?ul(St(u)):{}:y={}}return(N?fn:za)(u,function(ye,we,Pe){return d(y,ye,we,Pe)}),y}function JN(u,d){return u==null?!0:ug(u,d)}function ej(u,d,y){return u==null?u:OD(u,d,dg(y))}function tj(u,d,y,S){return S=typeof S=="function"?S:n,u==null?u:OD(u,d,dg(y),S)}function hl(u){return u==null?[]:jc(u,fr(u))}function nj(u){return u==null?[]:jc(u,Jr(u))}function rj(u,d,y){return y===n&&(y=d,d=n),y!==n&&(y=Oi(y),y=y===y?y:0),d!==n&&(d=Oi(d),d=d===d?d:0),Xs(Oi(u),d,y)}function ij(u,d,y){return d=Bo(d),y===n?(y=d,d=0):y=Bo(y),u=Oi(u),cO(u,d,y)}function aj(u,d,y){if(y&&typeof y!="boolean"&&Ir(u,d,y)&&(d=y=n),y===n&&(typeof d=="boolean"?(y=d,d=n):typeof u=="boolean"&&(y=u,u=n)),u===n&&d===n?(u=0,d=1):(u=Bo(u),d===n?(d=u,u=0):d=Bo(d)),u>d){var S=u;u=d,d=S}if(y||u%1||d%1){var N=ca();return $n(u+N*(d-u+xn("1e-"+((N+"").length-1))),d)}return ag(u,d)}var oj=cl(function(u,d,y){return d=d.toLowerCase(),u+(y?q5(d):d)});function q5(u){return Fg(an(u).toLowerCase())}function U5(u){return u=an(u),u&&u.replace(fi,Hm).replace(vo,"")}function sj(u,d,y){u=an(u),d=yi(d);var S=u.length;y=y===n?S:Xs(Mt(y),0,S);var N=y;return y-=d.length,y>=0&&u.slice(y,N)==d}function uj(u){return u=an(u),u&&Sc.test(u)?u.replace(ci,Eo):u}function lj(u){return u=an(u),u&&yt.test(u)?u.replace(na,"\\$&"):u}var cj=cl(function(u,d,y){return u+(y?"-":"")+d.toLowerCase()}),dj=cl(function(u,d,y){return u+(y?" ":"")+d.toLowerCase()}),fj=GD("toLowerCase");function hj(u,d,y){u=an(u),d=Mt(d);var S=d?D(u):0;if(!d||S>=d)return u;var N=(d-S)/2;return Jf(Zr(N),y)+u+Jf(ln(N),y)}function pj(u,d,y){u=an(u),d=Mt(d);var S=d?D(u):0;return d&&S<d?u+Jf(d-S,y):u}function mj(u,d,y){u=an(u),d=Mt(d);var S=d?D(u):0;return d&&S<d?Jf(d-S,y)+u:u}function gj(u,d,y){return y||d==null?d=0:d&&(d=+d),gi(an(u).replace(wn,""),d||0)}function vj(u,d,y){return(y?Ir(u,d,y):d===n)?d=1:d=Mt(d),og(an(u),d)}function yj(){var u=arguments,d=an(u[0]);return u.length<3?d:d.replace(u[1],u[2])}var bj=cl(function(u,d,y){return u+(y?"_":"")+d.toLowerCase()});function xj(u,d,y){return y&&typeof y!="number"&&Ir(u,d,y)&&(d=y=n),y=y===n?oe:y>>>0,y?(u=an(u),u&&(typeof d=="string"||d!=null&&!Pg(d))&&(d=yi(d),!d&&wr(u))?us(_(u),0,y):u.split(d,y)):[]}var Dj=cl(function(u,d,y){return u+(y?" ":"")+Fg(d)});function $j(u,d,y){return u=an(u),y=y==null?0:Xs(Mt(y),0,u.length),d=yi(d),u.slice(y,y+d.length)==d}function Ej(u,d,y){var S=X.templateSettings;y&&Ir(u,d,y)&&(d=n),u=an(u),d=dh({},d,S,t5);var N=dh({},d.imports,S.imports,t5),re=fr(N),ye=jc(N,re),we,Pe,Ue=0,He=d.interpolate||Rn,Ze="__p += '",ot=j((d.escape||Rn).source+"|"+He.source+"|"+(He===ju?at:Rn).source+"|"+(d.evaluate||Rn).source+"|$","g"),vt="//# sourceURL="+(Ve.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++bo+"]")+`
|
|
44
|
-
`;u.replace(ot,function(wt,Vt,Wt,xi,Or,Di){return Wt||(Wt=xi),Ze+=u.slice(Ue,Di).replace(Qo,pi),Vt&&(we=!0,Ze+=`' +
|
|
45
|
-
__e(`+Vt+`) +
|
|
46
|
-
'`),Or&&(Pe=!0,Ze+=`';
|
|
47
|
-
`+Or+`;
|
|
48
|
-
__p += '`),Wt&&(Ze+=`' +
|
|
49
|
-
((__t = (`+Wt+`)) == null ? '' : __t) +
|
|
50
|
-
'`),Ue=Di+wt.length,wt}),Ze+=`';
|
|
51
|
-
`;var Ct=Ve.call(d,"variable")&&d.variable;if(!Ct)Ze=`with (obj) {
|
|
52
|
-
`+Ze+`
|
|
53
|
-
}
|
|
54
|
-
`;else if(Pc.test(Ct))throw new he(s);Ze=(Pe?Ze.replace(Br,""):Ze).replace(Ba,"$1").replace(Bs,"$1;"),Ze="function("+(Ct||"obj")+`) {
|
|
55
|
-
`+(Ct?"":`obj || (obj = {});
|
|
56
|
-
`)+"var __t, __p = ''"+(we?", __e = _.escape":"")+(Pe?`, __j = Array.prototype.join;
|
|
57
|
-
function print() { __p += __j.call(arguments, '') }
|
|
58
|
-
`:`;
|
|
59
|
-
`)+Ze+`return __p
|
|
60
|
-
}`;var Ot=H5(function(){return W(re,vt+"return "+Ze).apply(n,ye)});if(Ot.source=Ze,Tg(Ot))throw Ot;return Ot}function Cj(u){return an(u).toLowerCase()}function wj(u){return an(u).toUpperCase()}function Aj(u,d,y){if(u=an(u),u&&(y||d===n))return Nf(u);if(!u||!(d=yi(d)))return u;var S=_(u),N=_(d),re=al(S,N),ye=cr(S,N)+1;return us(S,re,ye).join("")}function Sj(u,d,y){if(u=an(u),u&&(y||d===n))return u.slice(0,B(u)+1);if(!u||!(d=yi(d)))return u;var S=_(u),N=cr(S,_(d))+1;return us(S,0,N).join("")}function Tj(u,d,y){if(u=an(u),u&&(y||d===n))return u.replace(wn,"");if(!u||!(d=yi(d)))return u;var S=_(u),N=al(S,_(d));return us(S,N).join("")}function Pj(u,d){var y=ae,S=O;if(_n(d)){var N="separator"in d?d.separator:N;y="length"in d?Mt(d.length):y,S="omission"in d?yi(d.omission):S}u=an(u);var re=u.length;if(wr(u)){var ye=_(u);re=ye.length}if(y>=re)return u;var we=y-D(S);if(we<1)return S;var Pe=ye?us(ye,0,we).join(""):u.slice(0,we);if(N===n)return Pe+S;if(ye&&(we+=Pe.length-we),Pg(N)){if(u.slice(we).search(N)){var Ue,He=Pe;for(N.global||(N=j(N.source,an(dn.exec(N))+"g")),N.lastIndex=0;Ue=N.exec(He);)var Ze=Ue.index;Pe=Pe.slice(0,Ze===n?we:Ze)}}else if(u.indexOf(yi(N),we)!=we){var ot=Pe.lastIndexOf(N);ot>-1&&(Pe=Pe.slice(0,ot))}return Pe+S}function _j(u){return u=an(u),u&&uo.test(u)?u.replace(bt,U):u}var Bj=cl(function(u,d,y){return u+(y?" ":"")+d.toUpperCase()}),Fg=GD("toUpperCase");function W5(u,d,y){return u=an(u),d=y?n:d,d===n?Kc(u)?De(u):qm(u):u.match(d)||[]}var H5=Lt(function(u,d){try{return In(u,n,d)}catch(y){return Tg(y)?y:new he(y)}}),Fj=To(function(u,d){return fn(d,function(y){y=Ua(y),Ao(u,y,Ag(u[y],u))}),u});function kj(u){var d=u==null?0:u.length,y=$t();return u=d?un(u,function(S){if(typeof S[1]!="function")throw new ne(o);return[y(S[0]),S[1]]}):[],Lt(function(S){for(var N=-1;++N<d;){var re=u[N];if(In(re[0],this,S))return In(re[1],this,S)}})}function Mj(u){return aO(Mi(u,m))}function kg(u){return function(){return u}}function Rj(u,d){return u==null||u!==u?d:u}var Ij=ZD(),Oj=ZD(!0);function ei(u){return u}function Mg(u){return AD(typeof u=="function"?u:Mi(u,m))}function Lj(u){return TD(Mi(u,m))}function Vj(u,d){return PD(u,Mi(d,m))}var Nj=Lt(function(u,d){return function(y){return Gc(y,u,d)}}),jj=Lt(function(u,d){return function(y){return Gc(u,y,d)}});function Rg(u,d,y){var S=fr(d),N=Wf(d,S);y==null&&!(_n(d)&&(N.length||!S.length))&&(y=d,d=u,u=this,N=Wf(d,fr(d)));var re=!(_n(y)&&"chain"in y)||!!y.chain,ye=_o(u);return fn(N,function(we){var Pe=d[we];u[we]=Pe,ye&&(u.prototype[we]=function(){var Ue=this.__chain__;if(re||Ue){var He=u(this.__wrapped__),Ze=He.__actions__=Xr(this.__actions__);return Ze.push({func:Pe,args:arguments,thisArg:u}),He.__chain__=Ue,He}return Pe.apply(u,oa([this.value()],arguments))})}),u}function Kj(){return An._===this&&(An._=ce),this}function Ig(){}function zj(u){return u=Mt(u),Lt(function(d){return _D(d,u)})}var qj=hg(un),Uj=hg(Do),Wj=hg(La);function G5(u){return xg(u)?nl(Ua(u)):$O(u)}function Hj(u){return function(d){return u==null?n:Qs(u,d)}}var Gj=QD(),Yj=QD(!0);function Og(){return[]}function Lg(){return!1}function Zj(){return{}}function Xj(){return""}function Qj(){return!0}function Jj(u,d){if(u=Mt(u),u<1||u>K)return[];var y=oe,S=$n(u,oe);d=$t(d),u-=oe;for(var N=il(S,d);++y<u;)d(y);return N}function eK(u){return Bt(u)?un(u,Ua):bi(u)?[u]:Xr(p5(an(u)))}function tK(u){var d=++st;return an(u)+d}var nK=Qf(function(u,d){return u+d},0),rK=pg("ceil"),iK=Qf(function(u,d){return u/d},1),aK=pg("floor");function oK(u){return u&&u.length?Uf(u,ei,Jm):n}function sK(u,d){return u&&u.length?Uf(u,$t(d,2),Jm):n}function uK(u){return Hs(u,ei)}function lK(u,d){return Hs(u,$t(d,2))}function cK(u){return u&&u.length?Uf(u,ei,rg):n}function dK(u,d){return u&&u.length?Uf(u,$t(d,2),rg):n}var fK=Qf(function(u,d){return u*d},1),hK=pg("round"),pK=Qf(function(u,d){return u-d},0);function mK(u){return u&&u.length?Va(u,ei):0}function gK(u,d){return u&&u.length?Va(u,$t(d,2)):0}return X.after=LV,X.ary=w5,X.assign=wN,X.assignIn=V5,X.assignInWith=dh,X.assignWith=AN,X.at=SN,X.before=A5,X.bind=Ag,X.bindAll=Fj,X.bindKey=S5,X.castArray=ZV,X.chain=$5,X.chunk=aL,X.compact=oL,X.concat=sL,X.cond=kj,X.conforms=Mj,X.constant=kg,X.countBy=mV,X.create=TN,X.curry=T5,X.curryRight=P5,X.debounce=_5,X.defaults=PN,X.defaultsDeep=_N,X.defer=VV,X.delay=NV,X.difference=uL,X.differenceBy=lL,X.differenceWith=cL,X.drop=dL,X.dropRight=fL,X.dropRightWhile=hL,X.dropWhile=pL,X.fill=mL,X.filter=vV,X.flatMap=xV,X.flatMapDeep=DV,X.flatMapDepth=$V,X.flatten=y5,X.flattenDeep=gL,X.flattenDepth=vL,X.flip=jV,X.flow=Ij,X.flowRight=Oj,X.fromPairs=yL,X.functions=ON,X.functionsIn=LN,X.groupBy=EV,X.initial=xL,X.intersection=DL,X.intersectionBy=$L,X.intersectionWith=EL,X.invert=NN,X.invertBy=jN,X.invokeMap=wV,X.iteratee=Mg,X.keyBy=AV,X.keys=fr,X.keysIn=Jr,X.map=ah,X.mapKeys=zN,X.mapValues=qN,X.matches=Lj,X.matchesProperty=Vj,X.memoize=sh,X.merge=UN,X.mergeWith=N5,X.method=Nj,X.methodOf=jj,X.mixin=Rg,X.negate=uh,X.nthArg=zj,X.omit=WN,X.omitBy=HN,X.once=KV,X.orderBy=SV,X.over=qj,X.overArgs=zV,X.overEvery=Uj,X.overSome=Wj,X.partial=Sg,X.partialRight=B5,X.partition=TV,X.pick=GN,X.pickBy=j5,X.property=G5,X.propertyOf=Hj,X.pull=SL,X.pullAll=x5,X.pullAllBy=TL,X.pullAllWith=PL,X.pullAt=_L,X.range=Gj,X.rangeRight=Yj,X.rearg=qV,X.reject=BV,X.remove=BL,X.rest=UV,X.reverse=Cg,X.sampleSize=kV,X.set=ZN,X.setWith=XN,X.shuffle=MV,X.slice=FL,X.sortBy=OV,X.sortedUniq=VL,X.sortedUniqBy=NL,X.split=xj,X.spread=WV,X.tail=jL,X.take=KL,X.takeRight=zL,X.takeRightWhile=qL,X.takeWhile=UL,X.tap=oV,X.throttle=HV,X.thru=ih,X.toArray=I5,X.toPairs=K5,X.toPairsIn=z5,X.toPath=eK,X.toPlainObject=L5,X.transform=QN,X.unary=GV,X.union=WL,X.unionBy=HL,X.unionWith=GL,X.uniq=YL,X.uniqBy=ZL,X.uniqWith=XL,X.unset=JN,X.unzip=wg,X.unzipWith=D5,X.update=ej,X.updateWith=tj,X.values=hl,X.valuesIn=nj,X.without=QL,X.words=W5,X.wrap=YV,X.xor=JL,X.xorBy=eV,X.xorWith=tV,X.zip=nV,X.zipObject=rV,X.zipObjectDeep=iV,X.zipWith=aV,X.entries=K5,X.entriesIn=z5,X.extend=V5,X.extendWith=dh,Rg(X,X),X.add=nK,X.attempt=H5,X.camelCase=oj,X.capitalize=q5,X.ceil=rK,X.clamp=rj,X.clone=XV,X.cloneDeep=JV,X.cloneDeepWith=eN,X.cloneWith=QV,X.conformsTo=tN,X.deburr=U5,X.defaultTo=Rj,X.divide=iK,X.endsWith=sj,X.eq=ha,X.escape=uj,X.escapeRegExp=lj,X.every=gV,X.find=yV,X.findIndex=g5,X.findKey=BN,X.findLast=bV,X.findLastIndex=v5,X.findLastKey=FN,X.floor=aK,X.forEach=E5,X.forEachRight=C5,X.forIn=kN,X.forInRight=MN,X.forOwn=RN,X.forOwnRight=IN,X.get=_g,X.gt=nN,X.gte=rN,X.has=VN,X.hasIn=Bg,X.head=b5,X.identity=ei,X.includes=CV,X.indexOf=bL,X.inRange=ij,X.invoke=KN,X.isArguments=tu,X.isArray=Bt,X.isArrayBuffer=iN,X.isArrayLike=Qr,X.isArrayLikeObject=zn,X.isBoolean=aN,X.isBuffer=ls,X.isDate=oN,X.isElement=sN,X.isEmpty=uN,X.isEqual=lN,X.isEqualWith=cN,X.isError=Tg,X.isFinite=dN,X.isFunction=_o,X.isInteger=F5,X.isLength=lh,X.isMap=k5,X.isMatch=fN,X.isMatchWith=hN,X.isNaN=pN,X.isNative=mN,X.isNil=vN,X.isNull=gN,X.isNumber=M5,X.isObject=_n,X.isObjectLike=Vn,X.isPlainObject=ed,X.isRegExp=Pg,X.isSafeInteger=yN,X.isSet=R5,X.isString=ch,X.isSymbol=bi,X.isTypedArray=fl,X.isUndefined=bN,X.isWeakMap=xN,X.isWeakSet=DN,X.join=CL,X.kebabCase=cj,X.last=Ii,X.lastIndexOf=wL,X.lowerCase=dj,X.lowerFirst=fj,X.lt=$N,X.lte=EN,X.max=oK,X.maxBy=sK,X.mean=uK,X.meanBy=lK,X.min=cK,X.minBy=dK,X.stubArray=Og,X.stubFalse=Lg,X.stubObject=Zj,X.stubString=Xj,X.stubTrue=Qj,X.multiply=fK,X.nth=AL,X.noConflict=Kj,X.noop=Ig,X.now=oh,X.pad=hj,X.padEnd=pj,X.padStart=mj,X.parseInt=gj,X.random=aj,X.reduce=PV,X.reduceRight=_V,X.repeat=vj,X.replace=yj,X.result=YN,X.round=hK,X.runInContext=k,X.sample=FV,X.size=RV,X.snakeCase=bj,X.some=IV,X.sortedIndex=kL,X.sortedIndexBy=ML,X.sortedIndexOf=RL,X.sortedLastIndex=IL,X.sortedLastIndexBy=OL,X.sortedLastIndexOf=LL,X.startCase=Dj,X.startsWith=$j,X.subtract=pK,X.sum=mK,X.sumBy=gK,X.template=Ej,X.times=Jj,X.toFinite=Bo,X.toInteger=Mt,X.toLength=O5,X.toLower=Cj,X.toNumber=Oi,X.toSafeInteger=CN,X.toString=an,X.toUpper=wj,X.trim=Aj,X.trimEnd=Sj,X.trimStart=Tj,X.truncate=Pj,X.unescape=_j,X.uniqueId=tK,X.upperCase=Bj,X.upperFirst=Fg,X.each=E5,X.eachRight=C5,X.first=b5,Rg(X,function(){var u={};return za(X,function(d,y){Ve.call(X.prototype,y)||(u[y]=d)}),u}(),{chain:!1}),X.VERSION=r,fn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){X[u].placeholder=X}),fn(["drop","take"],function(u,d){Kt.prototype[u]=function(y){y=y===n?1:Yt(Mt(y),0);var S=this.__filtered__&&!d?new Kt(this):this.clone();return S.__filtered__?S.__takeCount__=$n(y,S.__takeCount__):S.__views__.push({size:$n(y,oe),type:u+(S.__dir__<0?"Right":"")}),S},Kt.prototype[u+"Right"]=function(y){return this.reverse()[u](y).reverse()}}),fn(["filter","map","takeWhile"],function(u,d){var y=d+1,S=y==z||y==V;Kt.prototype[u]=function(N){var re=this.clone();return re.__iteratees__.push({iteratee:$t(N,3),type:y}),re.__filtered__=re.__filtered__||S,re}}),fn(["head","last"],function(u,d){var y="take"+(d?"Right":"");Kt.prototype[u]=function(){return this[y](1).value()[0]}}),fn(["initial","tail"],function(u,d){var y="drop"+(d?"":"Right");Kt.prototype[u]=function(){return this.__filtered__?new Kt(this):this[y](1)}}),Kt.prototype.compact=function(){return this.filter(ei)},Kt.prototype.find=function(u){return this.filter(u).head()},Kt.prototype.findLast=function(u){return this.reverse().find(u)},Kt.prototype.invokeMap=Lt(function(u,d){return typeof u=="function"?new Kt(this):this.map(function(y){return Gc(y,u,d)})}),Kt.prototype.reject=function(u){return this.filter(uh($t(u)))},Kt.prototype.slice=function(u,d){u=Mt(u);var y=this;return y.__filtered__&&(u>0||d<0)?new Kt(y):(u<0?y=y.takeRight(-u):u&&(y=y.drop(u)),d!==n&&(d=Mt(d),y=d<0?y.dropRight(-d):y.take(d-u)),y)},Kt.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},Kt.prototype.toArray=function(){return this.take(oe)},za(Kt.prototype,function(u,d){var y=/^(?:filter|find|map|reject)|While$/.test(d),S=/^(?:head|last)$/.test(d),N=X[S?"take"+(d=="last"?"Right":""):d],re=S||/^find/.test(d);N&&(X.prototype[d]=function(){var ye=this.__wrapped__,we=S?[1]:arguments,Pe=ye instanceof Kt,Ue=we[0],He=Pe||Bt(ye),Ze=function(Vt){var Wt=N.apply(X,oa([Vt],we));return S&&ot?Wt[0]:Wt};He&&y&&typeof Ue=="function"&&Ue.length!=1&&(Pe=He=!1);var ot=this.__chain__,vt=!!this.__actions__.length,Ct=re&&!ot,Ot=Pe&&!vt;if(!re&&He){ye=Ot?ye:new Kt(this);var wt=u.apply(ye,we);return wt.__actions__.push({func:ih,args:[Ze],thisArg:n}),new ki(wt,ot)}return Ct&&Ot?u.apply(this,we):(wt=this.thru(Ze),Ct?S?wt.value()[0]:wt.value():wt)})}),fn(["pop","push","shift","sort","splice","unshift"],function(u){var d=ue[u],y=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",S=/^(?:pop|shift)$/.test(u);X.prototype[u]=function(){var N=arguments;if(S&&!this.__chain__){var re=this.value();return d.apply(Bt(re)?re:[],N)}return this[y](function(ye){return d.apply(Bt(ye)?ye:[],N)})}}),za(Kt.prototype,function(u,d){var y=X[d];if(y){var S=y.name+"";Ve.call(sl,S)||(sl[S]=[]),sl[S].push({name:d,func:y})}}),sl[Xf(n,w).name]=[{name:"wrapper",func:n}],Kt.prototype.clone=_I,Kt.prototype.reverse=BI,Kt.prototype.value=FI,X.prototype.at=sV,X.prototype.chain=uV,X.prototype.commit=lV,X.prototype.next=cV,X.prototype.plant=fV,X.prototype.reverse=hV,X.prototype.toJSON=X.prototype.valueOf=X.prototype.value=pV,X.prototype.first=X.prototype.head,Zn&&(X.prototype[Zn]=dV),X},Re=Ce();_i?((_i.exports=Re)._=Re,Pi._=Re):An._=Re}).call(HW)}(pd,pd.exports)),pd.exports}var jT=GW();const YW=ar(jT),db=QW();function vn(e,...t){if(!db)return;const n=XW(e,...t);performance.mark(n);try{console.log(e,...t)}catch{console.log(n)}}function ZW(e,...t){db&&console.warn(e,...t)}function XW(e,...t){return e.replace(/%[sfdO]/g,n=>{const r=t.shift();return n==="%O"&&r?JSON.stringify(r).replace(/"([^"]+)":/g,"$1:"):String(r)})}function QW(){try{const e="nuqs-localStorage-test";if(typeof localStorage>"u")return!1;localStorage.setItem(e,e);const t=localStorage.getItem(e)===e;return localStorage.removeItem(e),t&&(localStorage.getItem("debug")||"").includes("nuqs")}catch{return!1}}const JW={303:"Multiple adapter contexts detected. This might happen in monorepos.",404:"nuqs requires an adapter to work with your framework.",409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:"Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.",422:"Invalid options combination: `limitUrlUpdates: debounce` should be used in SSR scenarios, with `shallow: false`",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?"};function Iu(e){return`[nuqs] ${JW[e]}
|
|
61
|
-
See https://nuqs.dev/NUQS-${e}`}function eH(e){if(e.size===0)return"";const t=[];for(const[r,i]of e.entries()){const a=r.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");t.push(`${a}=${tH(i)}`)}const n="?"+t.join("&");return rH(n),n}function tH(e){return e.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/[\x00-\x1F]/g,t=>encodeURIComponent(t))}const nH=2e3;function rH(e){if(process.env.NODE_ENV==="production"||typeof location>"u")return;const t=new URL(location.href);t.search=e,t.href.length>nH&&console.warn(Iu(414))}const Eu=I.createContext({useAdapter(){throw new Error(Iu(404))}});Eu.displayName="NuqsAdapterContext";db&&typeof window<"u"&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==Eu&&console.error(Iu(303)),window.__NuqsAdapterContext=Eu);function iH(e){return({children:t,defaultOptions:n,processUrlSearchParams:r,...i})=>I.createElement(Eu.Provider,{...i,value:{useAdapter:e,defaultOptions:n,processUrlSearchParams:r}},t)}function aH(e){const t=I.useContext(Eu);if(!("useAdapter"in t))throw new Error(Iu(404));return t.useAdapter(e)}const oH=()=>I.useContext(Eu).defaultOptions,sH=()=>I.useContext(Eu).processUrlSearchParams;function uH(){var e;if(typeof window>"u"||!window.GestureEvent)return 50;try{const t=(e=navigator.userAgent)==null?void 0:e.match(/version\/([\d\.]+) safari/i);return parseFloat(t[1])>=17?120:320}catch{return 320}}function lH(e){return{method:"throttle",timeMs:e}}const Cd=lH(uH());function cH(e){return e===null||Array.isArray(e)&&e.length===0}function dH(e,t,n){if(typeof e=="string")n.set(t,e);else{n.delete(t);for(const r of e)n.append(t,r);n.has(t)||n.set(t,"")}return n}function fb(){const e=new Map;return{on(t,n){const r=e.get(t)||[];return r.push(n),e.set(t,r),()=>this.off(t,n)},off(t,n){const r=e.get(t);r&&e.set(t,r.filter(i=>i!==n))},emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))}}}function Jy(e,t,n){function r(){e(),n.removeEventListener("abort",a)}const i=setTimeout(r,t);function a(){clearTimeout(i),n.removeEventListener("abort",a)}n.addEventListener("abort",a)}function e3(){const e=Promise;if(Promise.hasOwnProperty("withResolvers"))return Promise.withResolvers();let t=()=>{},n=()=>{};return{promise:new e((r,i)=>{t=r,n=i}),resolve:t,reject:n}}function fH(e,t){let n=t;for(let r=e.length-1;r>=0;r--){const i=e[r];if(!i)continue;const a=n;n=()=>i(a)}n()}function t3(){return new URLSearchParams(location.search)}var KT=class{constructor(){Xn(this,"updateMap",new Map);Xn(this,"options",{history:"replace",scroll:!1,shallow:!0});Xn(this,"timeMs",Cd.timeMs);Xn(this,"transitions",new Set);Xn(this,"resolvers",null);Xn(this,"controller",null);Xn(this,"lastFlushedAt",0);Xn(this,"resetQueueOnNextPush",!1)}push({key:e,query:t,options:n},r=Cd.timeMs){this.resetQueueOnNextPush&&(this.reset(),this.resetQueueOnNextPush=!1),vn("[nuqs gtq] Enqueueing %s=%s %O",e,t,n),this.updateMap.set(e,t),n.history==="push"&&(this.options.history="push"),n.scroll&&(this.options.scroll=!0),n.shallow===!1&&(this.options.shallow=!1),n.startTransition&&this.transitions.add(n.startTransition),(!Number.isFinite(this.timeMs)||r>this.timeMs)&&(this.timeMs=r)}getQueuedQuery(e){return this.updateMap.get(e)}getPendingPromise({getSearchParamsSnapshot:e=t3}){var t;return((t=this.resolvers)==null?void 0:t.promise)??Promise.resolve(e())}flush({getSearchParamsSnapshot:e=t3,rateLimitFactor:t=1,...n},r){if(this.controller??(this.controller=new AbortController),!Number.isFinite(this.timeMs))return vn("[nuqs gtq] Skipping flush due to throttleMs=Infinity"),Promise.resolve(e());if(this.resolvers)return this.resolvers.promise;this.resolvers=e3();const i=()=>{this.lastFlushedAt=performance.now();const[o,s]=this.applyPendingUpdates({...n,autoResetQueueOnUpdate:n.autoResetQueueOnUpdate??!0,getSearchParamsSnapshot:e},r);s===null?(this.resolvers.resolve(o),this.resetQueueOnNextPush=!0):this.resolvers.reject(o),this.resolvers=null};return Jy(()=>{const o=performance.now()-this.lastFlushedAt,s=this.timeMs,l=t*Math.max(0,s-o);vn("[nuqs gtq] Scheduling flush in %f ms. Throttled at %f ms (x%f)",l,s,t),l===0?i():Jy(i,l,this.controller.signal)},0,this.controller.signal),this.resolvers.promise}abort(){var e,t;return(e=this.controller)==null||e.abort(),this.controller=new AbortController,(t=this.resolvers)==null||t.resolve(new URLSearchParams),this.resolvers=null,this.reset()}reset(){const e=Array.from(this.updateMap.keys());return vn("[nuqs gtq] Resetting queue %s",JSON.stringify(Object.fromEntries(this.updateMap))),this.updateMap.clear(),this.transitions.clear(),this.options={history:"replace",scroll:!1,shallow:!0},this.timeMs=Cd.timeMs,e}applyPendingUpdates(e,t){const{updateUrl:n,getSearchParamsSnapshot:r}=e;let i=r();if(vn("[nuqs gtq] Applying %d pending update(s) on top of %s",this.updateMap.size,i.toString()),this.updateMap.size===0)return[i,null];const a=Array.from(this.updateMap.entries()),o={...this.options},s=Array.from(this.transitions);e.autoResetQueueOnUpdate&&this.reset(),vn("[nuqs gtq] Flushing queue %O with options %O",a,o);for(const[l,f]of a)f===null?i.delete(l):i=dH(f,l,i);t&&(i=t(i));try{return fH(s,()=>{n(i,o)}),[i,null]}catch(l){return console.error(Iu(429),a.map(([f])=>f).join(),l),[i,l]}}};const wd=new KT;function hH(e,t,n){const r=I.useCallback(()=>{const o=Object.fromEntries(e.map(s=>[s,n(s)]));return[JSON.stringify(o),o]},[e.join(","),n]),i=I.useRef(null);i.current===null&&(i.current=r());const a=I.useCallback(o=>{const s=e.map(l=>t(l,o));return()=>s.forEach(l=>l())},[e.join(","),t]);return I.useSyncExternalStore(a,()=>{const[o,s]=r();return i.current[0]===o?i.current[1]:(i.current=[o,s],s)},()=>i.current[1])}var pH=class{constructor(e){Xn(this,"callback");Xn(this,"resolvers",e3());Xn(this,"controller",new AbortController);Xn(this,"queuedValue");this.callback=e}abort(){this.controller.abort(),this.queuedValue=void 0}push(e,t){return this.queuedValue=e,this.controller.abort(),this.controller=new AbortController,Jy(()=>{const n=this.resolvers;try{vn("[nuqs dq] Flushing debounce queue",e);const r=this.callback(e);vn("[nuqs dq] Reset debounce queue %O",this.queuedValue),this.queuedValue=void 0,this.resolvers=e3(),r.then(i=>n.resolve(i)).catch(i=>n.reject(i))}catch(r){this.queuedValue=void 0,n.reject(r)}},t,this.controller.signal),this.resolvers.promise}},mH=class{constructor(e=new KT){Xn(this,"throttleQueue");Xn(this,"queues",new Map);Xn(this,"queuedQuerySync",fb());this.throttleQueue=e}useQueuedQueries(e){return hH(e,(t,n)=>this.queuedQuerySync.on(t,n),t=>this.getQueuedQuery(t))}push(e,t,n){if(!Number.isFinite(t)){const a=n.getSearchParamsSnapshot??t3;return Promise.resolve(a())}const r=e.key;if(!this.queues.has(r)){vn("[nuqs dqc] Creating debounce queue for `%s`",r);const a=new pH(o=>(this.throttleQueue.push(o),this.throttleQueue.flush(n).finally(()=>{var s;((s=this.queues.get(o.key))==null?void 0:s.queuedValue)===void 0&&(vn("[nuqs dqc] Cleaning up empty queue for `%s`",o.key),this.queues.delete(o.key)),this.queuedQuerySync.emit(o.key)})));this.queues.set(r,a)}vn("[nuqs dqc] Enqueueing debounce update %O",e);const i=this.queues.get(r).push(e,t);return this.queuedQuerySync.emit(r),i}abort(e){var n;const t=this.queues.get(e);return t?(vn("[nuqs dqc] Aborting debounce queue %s=%s",e,(n=t.queuedValue)==null?void 0:n.query),this.queues.delete(e),t.abort(),this.queuedQuerySync.emit(e),r=>(r.then(t.resolvers.resolve,t.resolvers.reject),r)):r=>r}abortAll(){var e;for(const[t,n]of this.queues.entries())vn("[nuqs dqc] Aborting debounce queue %s=%s",t,(e=n.queuedValue)==null?void 0:e.query),n.abort(),n.resolvers.resolve(new URLSearchParams),this.queuedQuerySync.emit(t);this.queues.clear()}getQueuedQuery(e){var n,r;const t=(r=(n=this.queues.get(e))==null?void 0:n.queuedValue)==null?void 0:r.query;return t!==void 0?t:this.throttleQueue.getQueuedQuery(e)}};const Ad=new mH(wd);function zT(e,t){return e===t?!0:e===null||t===null||typeof e=="string"||typeof t=="string"||e.length!==t.length?!1:e.every((n,r)=>n===t[r])}function qT(e,t,n){try{return e(t)}catch(r){return ZW("[nuqs] Error while parsing value `%s`: %O"+(n?" (for key `%s`)":""),t,r,n),null}}function Yo(e){function t(n){if(typeof n>"u")return null;let r="";if(Array.isArray(n)){if(n[0]===void 0)return null;r=n[0]}return typeof n=="string"&&(r=n),qT(e.parse,r)}return{type:"single",eq:(n,r)=>n===r,...e,parseServerSide:t,withDefault(n){return{...this,defaultValue:n,parseServerSide(r){return t(r)??n}}},withOptions(n){return{...this,...n}}}}const gH=Yo({parse:e=>e,serialize:String});Yo({parse:e=>{const t=parseInt(e);return t==t?t:null},serialize:e=>""+Math.round(e)});Yo({parse:e=>{const t=parseInt(e);return t==t?t-1:null},serialize:e=>""+Math.round(e+1)});Yo({parse:e=>{const t=parseInt(e,16);return t==t?t:null},serialize:e=>{const t=Math.round(e).toString(16);return(t.length&1?"0":"")+t}});Yo({parse:e=>{const t=parseFloat(e);return t==t?t:null},serialize:String});Yo({parse:e=>e==="true",serialize:String});function hb(e,t){return e.valueOf()===t.valueOf()}Yo({parse:e=>{const t=parseInt(e);return t==t?new Date(t):null},serialize:e=>""+e.valueOf(),eq:hb});Yo({parse:e=>{const t=new Date(e);return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString(),eq:hb});Yo({parse:e=>{const t=new Date(e.slice(0,10));return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString().slice(0,10),eq:hb});const s4=fb(),vH={};function UT(e,t={}){const n=I.useId(),r=oH(),i=sH(),{history:a="replace",scroll:o=(r==null?void 0:r.scroll)??!1,shallow:s=(r==null?void 0:r.shallow)??!0,throttleMs:l=Cd.timeMs,limitUrlUpdates:f=r==null?void 0:r.limitUrlUpdates,clearOnDefault:h=(r==null?void 0:r.clearOnDefault)??!0,startTransition:m,urlKeys:g=vH}=t,b=Object.keys(e).join(","),$=I.useMemo(()=>Object.fromEntries(Object.keys(e).map(te=>[te,g[te]??te])),[b,JSON.stringify(g)]),x=aH(Object.values($)),A=x.searchParams,w=I.useRef({}),C=I.useMemo(()=>Object.fromEntries(Object.keys(e).map(te=>[te,e[te].defaultValue??null])),[Object.values(e).map(({defaultValue:te})=>te).join(",")]),E=Ad.useQueuedQueries(Object.values($)),[T,P]=I.useState(()=>{const te=A??new URLSearchParams;return u4(e,g,te,E).state}),F=I.useRef(T);if(vn("[nuq+ %s `%s`] render - state: %O, iSP: %s",n,b,T,A),Object.keys(w.current).join("&")!==Object.values($).join("&")){const{state:te,hasChanged:se}=u4(e,g,A,E,w.current,F.current);se&&(vn("[nuq+ %s `%s`] State changed: %O",n,b,{state:te,initialSearchParams:A,queuedQueries:E,queryRef:w.current,stateRef:F.current}),F.current=te,P(te)),w.current=Object.fromEntries(Object.entries($).map(([ae,O])=>{const Ee=e[ae];return[O,(Ee==null?void 0:Ee.type)==="multi"?A==null?void 0:A.getAll(O):(A==null?void 0:A.get(O))??null]}))}I.useEffect(()=>{const{state:te,hasChanged:se}=u4(e,g,A,E,w.current,F.current);se&&(vn("[nuq+ %s `%s`] State changed: %O",n,b,{state:te,initialSearchParams:A,queuedQueries:E,queryRef:w.current,stateRef:F.current}),F.current=te,P(te))},[Object.values($).map(te=>`${te}=${A==null?void 0:A.getAll(te)}`).join("&"),JSON.stringify(E)]),I.useEffect(()=>{const te=Object.keys(e).reduce((se,ae)=>(se[ae]=({state:O,query:Ee})=>{P(be=>{const{defaultValue:z}=e[ae],G=$[ae],V=O??z??null,R=be[ae]??z??null;return Object.is(R,V)?(vn("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). no change, skipping, resolved: %O",n,b,G,O,z,F.current),be):(F.current={...F.current,[ae]:V},w.current[G]=Ee,vn("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). updateInternalState, resolved: %O",n,b,G,O,z,F.current),F.current)})},se),{});for(const se of Object.keys(e)){const ae=$[se];vn("[nuq+ %s `%s`] Subscribing to sync for `%s`",n,ae,b),s4.on(ae,te[se])}return()=>{for(const se of Object.keys(e)){const ae=$[se];vn("[nuq+ %s `%s`] Unsubscribing to sync for `%s`",n,ae,b),s4.off(ae,te[se])}}},[b,$]);const q=I.useCallback((te,se={})=>{var R,K,fe,M,oe,le;const ae=Object.fromEntries(Object.keys(e).map(Se=>[Se,null])),O=typeof te=="function"?te(IC(F.current,C))??ae:te??ae;vn("[nuq+ %s `%s`] setState: %O",n,b,O);let Ee,be=0,z=!1;const G=[];for(let[Se,_e]of Object.entries(O)){const Be=e[Se],Ge=$[Se];if(!Be)continue;(se.clearOnDefault??Be.clearOnDefault??h)&&_e!==null&&Be.defaultValue!==void 0&&(Be.eq??((qe,ke)=>qe===ke))(_e,Be.defaultValue)&&(_e=null);const Xe=_e===null?null:(Be.serialize??String)(_e);s4.emit(Ge,{state:_e,query:Xe});const Ne={key:Ge,query:Xe,options:{history:se.history??Be.history??a,shallow:se.shallow??Be.shallow??s,scroll:se.scroll??Be.scroll??o,startTransition:se.startTransition??Be.startTransition??m}};if(((R=se==null?void 0:se.limitUrlUpdates)==null?void 0:R.method)==="debounce"||(f==null?void 0:f.method)==="debounce"||((K=Be.limitUrlUpdates)==null?void 0:K.method)==="debounce"){Ne.options.shallow===!0&&console.warn(Iu(422));const qe=((fe=se==null?void 0:se.limitUrlUpdates)==null?void 0:fe.timeMs)??(f==null?void 0:f.timeMs)??((M=Be.limitUrlUpdates)==null?void 0:M.timeMs)??Cd.timeMs,ke=Ad.push(Ne,qe,x);be<qe&&(Ee=ke,be=qe)}else{const qe=((oe=se==null?void 0:se.limitUrlUpdates)==null?void 0:oe.timeMs)??((le=Be==null?void 0:Be.limitUrlUpdates)==null?void 0:le.timeMs)??(f==null?void 0:f.timeMs)??se.throttleMs??Be.throttleMs??l;G.push(Ad.abort(Ge)),wd.push(Ne,qe),z=!0}}const V=G.reduce((Se,_e)=>_e(Se),z?wd.flush(x,i):wd.getPendingPromise(x));return Ee??V},[b,a,s,o,l,f==null?void 0:f.method,f==null?void 0:f.timeMs,m,$,x.updateUrl,x.getSearchParamsSnapshot,x.rateLimitFactor,i,C]);return[I.useMemo(()=>IC(T,C),[T,C]),q]}function u4(e,t,n,r,i,a){let o=!1;const s=Object.entries(e).reduce((l,[f,h])=>{const m=(t==null?void 0:t[f])??f,g=r[m],b=h.type==="multi"?[]:null,$=g===void 0?(h.type==="multi"?n==null?void 0:n.getAll(m):n==null?void 0:n.get(m))??b:g;return i&&a&&zT(i[m]??b,$)?(l[f]=a[f]??null,l):(o=!0,l[f]=(cH($)?null:qT(h.parse,$,m))??null,i&&(i[m]=$),l)},{});if(!o){const l=Object.keys(e),f=Object.keys(a??{});o=l.length!==f.length||l.some(h=>!f.includes(h))}return{state:s,hasChanged:o}}function IC(e,t){return Object.fromEntries(Object.keys(e).map(n=>[n,e[n]??t[n]??null]))}function yH(e,t={}){const{parse:n,type:r,serialize:i,eq:a,defaultValue:o,...s}=t,[{[e]:l},f]=UT({[e]:{parse:n??(m=>m),type:r,serialize:i,eq:a,defaultValue:o}},s),h=I.useCallback((m,g={})=>f(b=>({[e]:typeof m=="function"?m(b[e]):m}),g),[e,f]);return[l,h]}function um(){return typeof window<"u"}function dc(e){return WT(e)?(e.nodeName||"").toLowerCase():"#document"}function ui(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function so(e){var t;return(t=(WT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function WT(e){return um()?e instanceof Node||e instanceof ui(e).Node:!1}function tr(e){return um()?e instanceof Element||e instanceof ui(e).Element:!1}function Ji(e){return um()?e instanceof HTMLElement||e instanceof ui(e).HTMLElement:!1}function n3(e){return!um()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ui(e).ShadowRoot}const bH=new Set(["inline","contents"]);function uf(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=$a(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!bH.has(i)}const xH=new Set(["table","td","th"]);function DH(e){return xH.has(dc(e))}const $H=[":popover-open",":modal"];function lm(e){return $H.some(t=>{try{return e.matches(t)}catch{return!1}})}const EH=["transform","translate","scale","rotate","perspective"],CH=["transform","translate","scale","rotate","perspective","filter"],wH=["paint","layout","strict","content"];function pb(e){const t=mb(),n=tr(e)?$a(e):e;return EH.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)||CH.some(r=>(n.willChange||"").includes(r))||wH.some(r=>(n.contain||"").includes(r))}function AH(e){let t=Cs(e);for(;Ji(t)&&!Gl(t);){if(pb(t))return t;if(lm(t))return null;t=Cs(t)}return null}function mb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const SH=new Set(["html","body","#document"]);function Gl(e){return SH.has(dc(e))}function $a(e){return ui(e).getComputedStyle(e)}function cm(e){return tr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Cs(e){if(dc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||n3(e)&&e.host||so(e);return n3(t)?t.host:t}function HT(e){const t=Cs(e);return Gl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ji(t)&&uf(t)?t:HT(t)}function Vd(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=HT(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=ui(i);if(a){const s=r3(o);return t.concat(o,o.visualViewport||[],uf(i)?i:[],s&&n?Vd(s):[])}return t.concat(i,Vd(i,[],n))}function r3(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const sp=Math.min,yu=Math.max,up=Math.round,fh=Math.floor,eo=e=>({x:e,y:e}),TH={left:"right",right:"left",bottom:"top",top:"bottom"},PH={start:"end",end:"start"};function OC(e,t,n){return yu(e,sp(t,n))}function dm(e,t){return typeof e=="function"?e(t):e}function Cu(e){return e.split("-")[0]}function fm(e){return e.split("-")[1]}function GT(e){return e==="x"?"y":"x"}function YT(e){return e==="y"?"height":"width"}const _H=new Set(["top","bottom"]);function xs(e){return _H.has(Cu(e))?"y":"x"}function ZT(e){return GT(xs(e))}function BH(e,t,n){n===void 0&&(n=!1);const r=fm(e),i=ZT(e),a=YT(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=lp(o)),[o,lp(o)]}function FH(e){const t=lp(e);return[i3(e),t,i3(t)]}function i3(e){return e.replace(/start|end/g,t=>PH[t])}const LC=["left","right"],VC=["right","left"],kH=["top","bottom"],MH=["bottom","top"];function RH(e,t,n){switch(e){case"top":case"bottom":return n?t?VC:LC:t?LC:VC;case"left":case"right":return t?kH:MH;default:return[]}}function IH(e,t,n,r){const i=fm(e);let a=RH(Cu(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(i3)))),a}function lp(e){return e.replace(/left|right|bottom|top/g,t=>TH[t])}function OH(e){return{top:0,right:0,bottom:0,left:0,...e}}function LH(e){return typeof e!="number"?OH(e):{top:e,right:e,bottom:e,left:e}}function cp(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 VH(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function NH(){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 jH(){return/apple/i.test(navigator.vendor)}function KH(){return VH().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function zH(){return NH().includes("jsdom/")}const NC="data-floating-ui-focusable",qH="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function jC(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 a3(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&n3(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function UH(e){return"composedPath"in e?e.composedPath()[0]:e.target}function md(e){return(e==null?void 0:e.ownerDocument)||document}function WH(e){return Ji(e)&&e.matches(qH)}function HH(e){if(!e||zH())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function GH(e){return e?e.hasAttribute(NC)?e:e.querySelector("["+NC+"]")||e:null}function o3(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}var YH=typeof document<"u",ZH=function(){},Yl=YH?I.useLayoutEffect:ZH;const XH={...de};function hh(e){const t=de.useRef(e);return Yl(()=>{t.current=e}),t}const QH=XH.useInsertionEffect,JH=QH||(e=>e());function gd(e){const t=de.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return JH(()=>{t.current=e}),de.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 KC(e,t,n){let{reference:r,floating:i}=e;const a=xs(t),o=ZT(t),s=YT(o),l=Cu(t),f=a==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,g=r[s]/2-i[s]/2;let b;switch(l){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(fm(t)){case"start":b[o]-=g*(n&&f?-1:1);break;case"end":b[o]+=g*(n&&f?-1:1);break}return b}const eG=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let f=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=KC(f,r,l),g=r,b={},$=0;for(let x=0;x<s.length;x++){const{name:A,fn:w}=s[x],{x:C,y:E,data:T,reset:P}=await w({x:h,y:m,initialPlacement:r,placement:g,strategy:i,middlewareData:b,rects:f,platform:o,elements:{reference:e,floating:t}});h=C??h,m=E??m,b={...b,[A]:{...b[A],...T}},P&&$<=50&&($++,typeof P=="object"&&(P.placement&&(g=P.placement),P.rects&&(f=P.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):P.rects),{x:h,y:m}=KC(f,g,l)),x=-1)}return{x:h,y:m,placement:g,strategy:i,middlewareData:b}};async function XT(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:b=0}=dm(t,e),$=LH(b),A=s[g?m==="floating"?"reference":"floating":m],w=cp(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(s.floating)),boundary:f,rootBoundary:h,strategy:l})),C=m==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),T=await(a.isElement==null?void 0:a.isElement(E))?await(a.getScale==null?void 0:a.getScale(E))||{x:1,y:1}:{x:1,y:1},P=cp(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:C,offsetParent:E,strategy:l}):C);return{top:(w.top-P.top+$.top)/T.y,bottom:(P.bottom-w.bottom+$.bottom)/T.y,left:(w.left-P.left+$.left)/T.x,right:(P.right-w.right+$.right)/T.x}}const tG=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:l,elements:f}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:$="none",flipAlignment:x=!0,...A}=dm(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const w=Cu(i),C=xs(s),E=Cu(s)===s,T=await(l.isRTL==null?void 0:l.isRTL(f.floating)),P=g||(E||!x?[lp(s)]:FH(s)),F=$!=="none";!g&&F&&P.push(...IH(s,x,$,T));const q=[s,...P],te=await XT(t,A),se=[];let ae=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&se.push(te[w]),m){const z=BH(i,o,T);se.push(te[z[0]],te[z[1]])}if(ae=[...ae,{placement:i,overflows:se}],!se.every(z=>z<=0)){var O,Ee;const z=(((O=a.flip)==null?void 0:O.index)||0)+1,G=q[z];if(G&&(!(m==="alignment"?C!==xs(G):!1)||ae.every(K=>xs(K.placement)===C?K.overflows[0]>0:!0)))return{data:{index:z,overflows:ae},reset:{placement:G}};let V=(Ee=ae.filter(R=>R.overflows[0]<=0).sort((R,K)=>R.overflows[1]-K.overflows[1])[0])==null?void 0:Ee.placement;if(!V)switch(b){case"bestFit":{var be;const R=(be=ae.filter(K=>{if(F){const fe=xs(K.placement);return fe===C||fe==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(fe=>fe>0).reduce((fe,M)=>fe+M,0)]).sort((K,fe)=>K[1]-fe[1])[0])==null?void 0:be[0];R&&(V=R);break}case"initialPlacement":V=s;break}if(i!==V)return{reset:{placement:V}}}return{}}}},nG=new Set(["left","top"]);async function rG(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Cu(n),s=fm(n),l=xs(n)==="y",f=nG.has(o)?-1:1,h=a&&l?-1:1,m=dm(t,e);let{mainAxis:g,crossAxis:b,alignmentAxis:$}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&typeof $=="number"&&(b=s==="end"?$*-1:$),l?{x:b*h,y:g*f}:{x:g*f,y:b*h}}const iG=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:o,middlewareData:s}=t,l=await rG(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},aG=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:o=!1,limiter:s={fn:A=>{let{x:w,y:C}=A;return{x:w,y:C}}},...l}=dm(e,t),f={x:n,y:r},h=await XT(t,l),m=xs(Cu(i)),g=GT(m);let b=f[g],$=f[m];if(a){const A=g==="y"?"top":"left",w=g==="y"?"bottom":"right",C=b+h[A],E=b-h[w];b=OC(C,b,E)}if(o){const A=m==="y"?"top":"left",w=m==="y"?"bottom":"right",C=$+h[A],E=$-h[w];$=OC(C,$,E)}const x=s.fn({...t,[g]:b,[m]:$});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[g]:a,[m]:o}}}}}};function QT(e){const t=$a(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ji(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=up(n)!==a||up(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function gb(e){return tr(e)?e:e.contextElement}function Il(e){const t=gb(e);if(!Ji(t))return eo(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=QT(t);let o=(a?up(n.width):n.width)/r,s=(a?up(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const oG=eo(0);function JT(e){const t=ui(e);return!mb()||!t.visualViewport?oG:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sG(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ui(e)?!1:t}function wu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=gb(e);let o=eo(1);t&&(r?tr(r)&&(o=Il(r)):o=Il(e));const s=sG(a,n,r)?JT(a):eo(0);let l=(i.left+s.x)/o.x,f=(i.top+s.y)/o.y,h=i.width/o.x,m=i.height/o.y;if(a){const g=ui(a),b=r&&tr(r)?ui(r):r;let $=g,x=r3($);for(;x&&r&&b!==$;){const A=Il(x),w=x.getBoundingClientRect(),C=$a(x),E=w.left+(x.clientLeft+parseFloat(C.paddingLeft))*A.x,T=w.top+(x.clientTop+parseFloat(C.paddingTop))*A.y;l*=A.x,f*=A.y,h*=A.x,m*=A.y,l+=E,f+=T,$=ui(x),x=r3($)}}return cp({width:h,height:m,x:l,y:f})}function hm(e,t){const n=cm(e).scrollLeft;return t?t.left+n:wu(so(e)).left+n}function eP(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-hm(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function uG(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=so(r),s=t?lm(t.floating):!1;if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},f=eo(1);const h=eo(0),m=Ji(r);if((m||!m&&!a)&&((dc(r)!=="body"||uf(o))&&(l=cm(r)),Ji(r))){const b=wu(r);f=Il(r),h.x=b.x+r.clientLeft,h.y=b.y+r.clientTop}const g=o&&!m&&!a?eP(o,l):eo(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+h.x+g.x,y:n.y*f.y-l.scrollTop*f.y+h.y+g.y}}function lG(e){return Array.from(e.getClientRects())}function cG(e){const t=so(e),n=cm(e),r=e.ownerDocument.body,i=yu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=yu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+hm(e);const s=-n.scrollTop;return $a(r).direction==="rtl"&&(o+=yu(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}const zC=25;function dG(e,t){const n=ui(e),r=so(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;const h=mb();(!h||h&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}const f=hm(r);if(f<=0){const h=r.ownerDocument,m=h.body,g=getComputedStyle(m),b=h.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,$=Math.abs(r.clientWidth-m.clientWidth-b);$<=zC&&(a-=$)}else f<=zC&&(a+=f);return{width:a,height:o,x:s,y:l}}const fG=new Set(["absolute","fixed"]);function hG(e,t){const n=wu(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ji(e)?Il(e):eo(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,l=i*a.x,f=r*a.y;return{width:o,height:s,x:l,y:f}}function qC(e,t,n){let r;if(t==="viewport")r=dG(e,n);else if(t==="document")r=cG(so(e));else if(tr(t))r=hG(t,n);else{const i=JT(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return cp(r)}function tP(e,t){const n=Cs(e);return n===t||!tr(n)||Gl(n)?!1:$a(n).position==="fixed"||tP(n,t)}function pG(e,t){const n=t.get(e);if(n)return n;let r=Vd(e,[],!1).filter(s=>tr(s)&&dc(s)!=="body"),i=null;const a=$a(e).position==="fixed";let o=a?Cs(e):e;for(;tr(o)&&!Gl(o);){const s=$a(o),l=pb(o);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&fG.has(i.position)||uf(o)&&!l&&tP(e,o))?r=r.filter(h=>h!==o):i=s,o=Cs(o)}return t.set(e,r),r}function mG(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?lm(t)?[]:pG(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((f,h)=>{const m=qC(t,h,i);return f.top=yu(m.top,f.top),f.right=sp(m.right,f.right),f.bottom=sp(m.bottom,f.bottom),f.left=yu(m.left,f.left),f},qC(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function gG(e){const{width:t,height:n}=QT(e);return{width:t,height:n}}function vG(e,t,n){const r=Ji(t),i=so(t),a=n==="fixed",o=wu(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=eo(0);function f(){l.x=hm(i)}if(r||!r&&!a)if((dc(t)!=="body"||uf(i))&&(s=cm(t)),r){const b=wu(t,!0,a,t);l.x=b.x+t.clientLeft,l.y=b.y+t.clientTop}else i&&f();a&&!r&&i&&f();const h=i&&!r&&!a?eP(i,s):eo(0),m=o.left+s.scrollLeft-l.x-h.x,g=o.top+s.scrollTop-l.y-h.y;return{x:m,y:g,width:o.width,height:o.height}}function l4(e){return $a(e).position==="static"}function UC(e,t){if(!Ji(e)||$a(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return so(e)===n&&(n=n.ownerDocument.body),n}function nP(e,t){const n=ui(e);if(lm(e))return n;if(!Ji(e)){let i=Cs(e);for(;i&&!Gl(i);){if(tr(i)&&!l4(i))return i;i=Cs(i)}return n}let r=UC(e,t);for(;r&&DH(r)&&l4(r);)r=UC(r,t);return r&&Gl(r)&&l4(r)&&!pb(r)?n:r||AH(e)||n}const yG=async function(e){const t=this.getOffsetParent||nP,n=this.getDimensions,r=await n(e.floating);return{reference:vG(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function bG(e){return $a(e).direction==="rtl"}const xG={convertOffsetParentRelativeRectToViewportRelativeRect:uG,getDocumentElement:so,getClippingRect:mG,getOffsetParent:nP,getElementRects:yG,getClientRects:lG,getDimensions:gG,getScale:Il,isElement:tr,isRTL:bG};function rP(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function DG(e,t){let n=null,r;const i=so(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const f=e.getBoundingClientRect(),{left:h,top:m,width:g,height:b}=f;if(s||t(),!g||!b)return;const $=fh(m),x=fh(i.clientWidth-(h+g)),A=fh(i.clientHeight-(m+b)),w=fh(h),E={rootMargin:-$+"px "+-x+"px "+-A+"px "+-w+"px",threshold:yu(0,sp(1,l))||1};let T=!0;function P(F){const q=F[0].intersectionRatio;if(q!==l){if(!T)return o();q?o(!1,q):r=setTimeout(()=>{o(!1,1e-7)},1e3)}q===1&&!rP(f,e.getBoundingClientRect())&&o(),T=!1}try{n=new IntersectionObserver(P,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(P,E)}n.observe(e)}return o(!0),a}function $G(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,f=gb(e),h=i||a?[...f?Vd(f):[],...Vd(t)]:[];h.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),a&&w.addEventListener("resize",n)});const m=f&&s?DG(f,n):null;let g=-1,b=null;o&&(b=new ResizeObserver(w=>{let[C]=w;C&&C.target===f&&b&&(b.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var E;(E=b)==null||E.observe(t)})),n()}),f&&!l&&b.observe(f),b.observe(t));let $,x=l?wu(e):null;l&&A();function A(){const w=wu(e);x&&!rP(x,w)&&n(),x=w,$=requestAnimationFrame(A)}return n(),()=>{var w;h.forEach(C=>{i&&C.removeEventListener("scroll",n),a&&C.removeEventListener("resize",n)}),m==null||m(),(w=b)==null||w.disconnect(),b=null,l&&cancelAnimationFrame($)}}const EG=iG,CG=aG,wG=tG,AG=(e,t,n)=>{const r=new Map,i={platform:xG,...n},a={...i.platform,_c:r};return eG(e,t,{...i,platform:a})};var SG=typeof document<"u",TG=function(){},Ih=SG?I.useLayoutEffect:TG;function dp(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(!dp(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)&&!dp(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function iP(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function WC(e,t){const n=iP(e);return Math.round(t*n)/n}function c4(e){const t=de.useRef(e);return Ih(()=>{t.current=e}),t}function aP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:f}=e,[h,m]=de.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,b]=de.useState(r);dp(g,r)||b(r);const[$,x]=de.useState(null),[A,w]=de.useState(null),C=de.useCallback(K=>{K!==F.current&&(F.current=K,x(K))},[]),E=de.useCallback(K=>{K!==q.current&&(q.current=K,w(K))},[]),T=a||$,P=o||A,F=de.useRef(null),q=de.useRef(null),te=de.useRef(h),se=l!=null,ae=c4(l),O=c4(i),Ee=c4(f),be=de.useCallback(()=>{if(!F.current||!q.current)return;const K={placement:t,strategy:n,middleware:g};O.current&&(K.platform=O.current),AG(F.current,q.current,K).then(fe=>{const M={...fe,isPositioned:Ee.current!==!1};z.current&&!dp(te.current,M)&&(te.current=M,No.flushSync(()=>{m(M)}))})},[g,t,n,O,Ee]);Ih(()=>{f===!1&&te.current.isPositioned&&(te.current.isPositioned=!1,m(K=>({...K,isPositioned:!1})))},[f]);const z=de.useRef(!1);Ih(()=>(z.current=!0,()=>{z.current=!1}),[]),Ih(()=>{if(T&&(F.current=T),P&&(q.current=P),T&&P){if(ae.current)return ae.current(T,P,be);be()}},[T,P,be,ae,se]);const G=de.useMemo(()=>({reference:F,floating:q,setReference:C,setFloating:E}),[C,E]),V=de.useMemo(()=>({reference:T,floating:P}),[T,P]),R=de.useMemo(()=>{const K={position:n,left:0,top:0};if(!V.floating)return K;const fe=WC(V.floating,h.x),M=WC(V.floating,h.y);return s?{...K,transform:"translate("+fe+"px, "+M+"px)",...iP(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:fe,top:M}},[n,s,V.floating,h.x,h.y]);return de.useMemo(()=>({...h,update:be,refs:G,elements:V,floatingStyles:R}),[h,be,G,V,R])}const PG=(e,t)=>({...EG(e),options:[e,t]}),_G=(e,t)=>({...CG(e),options:[e,t]}),BG=(e,t)=>({...wG(e),options:[e,t]}),FG="data-floating-ui-focusable",HC="active",GC="selected",kG={...de};let YC=!1,MG=0;const ZC=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+MG++;function RG(){const[e,t]=de.useState(()=>YC?ZC():void 0);return Yl(()=>{e==null&&t(ZC())},[]),de.useEffect(()=>{YC=!0},[]),e}const IG=kG.useId,oP=IG||RG;let s3;process.env.NODE_ENV!=="production"&&(s3=new Set);function OG(){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=s3)!=null&&e.has(i))){var a;(a=s3)==null||a.add(i),console.error(i)}}function LG(){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 VG=de.createContext(null),NG=de.createContext(null),vb=()=>{var e;return((e=de.useContext(VG))==null?void 0:e.id)||null},sP=()=>de.useContext(NG);function uP(e){return"data-floating-ui-"+e}function Ni(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const XC=uP("safe-polygon");function d4(e,t,n){if(n&&!o3(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 f4(e){return typeof e=="function"?e():e}function jG(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:a,elements:o}=e,{enabled:s=!0,delay:l=0,handleClose:f=null,mouseOnly:h=!1,restMs:m=0,move:g=!0}=t,b=sP(),$=vb(),x=hh(f),A=hh(l),w=hh(n),C=hh(m),E=de.useRef(),T=de.useRef(-1),P=de.useRef(),F=de.useRef(-1),q=de.useRef(!0),te=de.useRef(!1),se=de.useRef(()=>{}),ae=de.useRef(!1),O=gd(()=>{var R;const K=(R=i.current.openEvent)==null?void 0:R.type;return(K==null?void 0:K.includes("mouse"))&&K!=="mousedown"});de.useEffect(()=>{if(!s)return;function R(K){let{open:fe}=K;fe||(Ni(T),Ni(F),q.current=!0,ae.current=!1)}return a.on("openchange",R),()=>{a.off("openchange",R)}},[s,a]),de.useEffect(()=>{if(!s||!x.current||!n)return;function R(fe){O()&&r(!1,fe,"hover")}const K=md(o.floating).documentElement;return K.addEventListener("mouseleave",R),()=>{K.removeEventListener("mouseleave",R)}},[o.floating,n,r,s,x,O]);const Ee=de.useCallback(function(R,K,fe){K===void 0&&(K=!0),fe===void 0&&(fe="hover");const M=d4(A.current,"close",E.current);M&&!P.current?(Ni(T),T.current=window.setTimeout(()=>r(!1,R,fe),M)):K&&(Ni(T),r(!1,R,fe))},[A,r]),be=gd(()=>{se.current(),P.current=void 0}),z=gd(()=>{if(te.current){const R=md(o.floating).body;R.style.pointerEvents="",R.removeAttribute(XC),te.current=!1}}),G=gd(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);de.useEffect(()=>{if(!s)return;function R(le){if(Ni(T),q.current=!1,h&&!o3(E.current)||f4(C.current)>0&&!d4(A.current,"open"))return;const Se=d4(A.current,"open",E.current);Se?T.current=window.setTimeout(()=>{w.current||r(!0,le,"hover")},Se):n||r(!0,le,"hover")}function K(le){if(G()){z();return}se.current();const Se=md(o.floating);if(Ni(F),ae.current=!1,x.current&&i.current.floatingContext){n||Ni(T),P.current=x.current({...i.current.floatingContext,tree:b,x:le.clientX,y:le.clientY,onClose(){z(),be(),G()||Ee(le,!0,"safe-polygon")}});const Be=P.current;Se.addEventListener("mousemove",Be),se.current=()=>{Se.removeEventListener("mousemove",Be)};return}(E.current==="touch"?!a3(o.floating,le.relatedTarget):!0)&&Ee(le)}function fe(le){G()||i.current.floatingContext&&(x.current==null||x.current({...i.current.floatingContext,tree:b,x:le.clientX,y:le.clientY,onClose(){z(),be(),G()||Ee(le)}})(le))}function M(){Ni(T)}function oe(le){G()||Ee(le,!1)}if(tr(o.domReference)){const le=o.domReference,Se=o.floating;return n&&le.addEventListener("mouseleave",fe),g&&le.addEventListener("mousemove",R,{once:!0}),le.addEventListener("mouseenter",R),le.addEventListener("mouseleave",K),Se&&(Se.addEventListener("mouseleave",fe),Se.addEventListener("mouseenter",M),Se.addEventListener("mouseleave",oe)),()=>{n&&le.removeEventListener("mouseleave",fe),g&&le.removeEventListener("mousemove",R),le.removeEventListener("mouseenter",R),le.removeEventListener("mouseleave",K),Se&&(Se.removeEventListener("mouseleave",fe),Se.removeEventListener("mouseenter",M),Se.removeEventListener("mouseleave",oe))}}},[o,s,e,h,g,Ee,be,z,r,n,w,b,A,x,i,G,C]),Yl(()=>{var R;if(s&&n&&(R=x.current)!=null&&(R=R.__options)!=null&&R.blockPointerEvents&&O()){te.current=!0;const fe=o.floating;if(tr(o.domReference)&&fe){var K;const M=md(o.floating).body;M.setAttribute(XC,"");const oe=o.domReference,le=b==null||(K=b.nodesRef.current.find(Se=>Se.id===$))==null||(K=K.context)==null?void 0:K.elements.floating;return le&&(le.style.pointerEvents=""),M.style.pointerEvents="none",oe.style.pointerEvents="auto",fe.style.pointerEvents="auto",()=>{M.style.pointerEvents="",oe.style.pointerEvents="",fe.style.pointerEvents=""}}}},[s,n,$,o,b,x,O]),Yl(()=>{n||(E.current=void 0,ae.current=!1,be(),z())},[n,be,z]),de.useEffect(()=>()=>{be(),Ni(T),Ni(F),z()},[s,o.domReference,be,z]);const V=de.useMemo(()=>{function R(K){E.current=K.pointerType}return{onPointerDown:R,onPointerEnter:R,onMouseMove(K){const{nativeEvent:fe}=K;function M(){!q.current&&!w.current&&r(!0,fe,"hover")}h&&!o3(E.current)||n||f4(C.current)===0||ae.current&&K.movementX**2+K.movementY**2<2||(Ni(F),E.current==="touch"?M():(ae.current=!0,F.current=window.setTimeout(M,f4(C.current))))}}},[h,r,n,w,C]);return de.useMemo(()=>s?{reference:V}:{},[s,V])}function KG(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=oP(),a=de.useRef({}),[o]=de.useState(()=>LG()),s=vb()!=null;if(process.env.NODE_ENV!=="production"){const b=r.reference;b&&!tr(b)&&OG("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,f]=de.useState(r.reference),h=gd((b,$,x)=>{a.current.openEvent=b?$:void 0,o.emit("openchange",{open:b,event:$,reason:x,nested:s}),n==null||n(b,$,x)}),m=de.useMemo(()=>({setPositionReference:f}),[]),g=de.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return de.useMemo(()=>({dataRef:a,open:t,onOpenChange:h,elements:g,events:o,floatingId:i,refs:m}),[t,h,g,o,i,m])}function zG(e){e===void 0&&(e={});const{nodeId:t}=e,n=KG({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,o]=de.useState(null),[s,l]=de.useState(null),h=(i==null?void 0:i.domReference)||a,m=de.useRef(null),g=sP();Yl(()=>{h&&(m.current=h)},[h]);const b=aP({...e,elements:{...i,...s&&{reference:s}}}),$=de.useCallback(E=>{const T=tr(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),getClientRects:()=>E.getClientRects(),contextElement:E}:E;l(T),b.refs.setReference(T)},[b.refs]),x=de.useCallback(E=>{(tr(E)||E===null)&&(m.current=E,o(E)),(tr(b.refs.reference.current)||b.refs.reference.current===null||E!==null&&!tr(E))&&b.refs.setReference(E)},[b.refs]),A=de.useMemo(()=>({...b.refs,setReference:x,setPositionReference:$,domReference:m}),[b.refs,x,$]),w=de.useMemo(()=>({...b.elements,domReference:h}),[b.elements,h]),C=de.useMemo(()=>({...b,...r,refs:A,elements:w,nodeId:t}),[b,A,w,t,r]);return Yl(()=>{r.dataRef.current.floatingContext=C;const E=g==null?void 0:g.nodesRef.current.find(T=>T.id===t);E&&(E.context=C)}),de.useMemo(()=>({...b,context:C,refs:A,elements:w}),[b,A,w,C])}function h4(){return KH()&&jH()}function qG(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:a,elements:o}=e,{enabled:s=!0,visibleOnly:l=!0}=t,f=de.useRef(!1),h=de.useRef(-1),m=de.useRef(!0);de.useEffect(()=>{if(!s)return;const b=ui(o.domReference);function $(){!n&&Ji(o.domReference)&&o.domReference===jC(md(o.domReference))&&(f.current=!0)}function x(){m.current=!0}function A(){m.current=!1}return b.addEventListener("blur",$),h4()&&(b.addEventListener("keydown",x,!0),b.addEventListener("pointerdown",A,!0)),()=>{b.removeEventListener("blur",$),h4()&&(b.removeEventListener("keydown",x,!0),b.removeEventListener("pointerdown",A,!0))}},[o.domReference,n,s]),de.useEffect(()=>{if(!s)return;function b($){let{reason:x}=$;(x==="reference-press"||x==="escape-key")&&(f.current=!0)}return i.on("openchange",b),()=>{i.off("openchange",b)}},[i,s]),de.useEffect(()=>()=>{Ni(h)},[]);const g=de.useMemo(()=>({onMouseLeave(){f.current=!1},onFocus(b){if(f.current)return;const $=UH(b.nativeEvent);if(l&&tr($)){if(h4()&&!b.relatedTarget){if(!m.current&&!WH($))return}else if(!HH($))return}r(!0,b.nativeEvent,"focus")},onBlur(b){f.current=!1;const $=b.relatedTarget,x=b.nativeEvent,A=tr($)&&$.hasAttribute(uP("focus-guard"))&&$.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var w;const C=jC(o.domReference?o.domReference.ownerDocument:document);!$&&C===o.domReference||a3((w=a.current.floatingContext)==null?void 0:w.refs.floating.current,C)||a3(o.domReference,C)||A||r(!1,x,"focus")})}}),[a,o.domReference,r,l]);return de.useMemo(()=>s?{reference:g}:{},[s,g])}function p4(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[HC]:o,[GC]:s,...l}=e;a=l}return{...n==="floating"&&{tabIndex:-1,[FG]:""},...a,...t.map(o=>{const s=o?o[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((o,s)=>(s&&Object.entries(s).forEach(l=>{let[f,h]=l;if(!(i&&[HC,GC].includes(f)))if(f.indexOf("on")===0){if(r.has(f)||r.set(f,[]),typeof h=="function"){var m;(m=r.get(f))==null||m.push(h),o[f]=function(){for(var g,b=arguments.length,$=new Array(b),x=0;x<b;x++)$[x]=arguments[x];return(g=r.get(f))==null?void 0:g.map(A=>A(...$)).find(A=>A!==void 0)}}}else o[f]=h}),o),{})}}function UG(e){e===void 0&&(e=[]);const t=e.map(s=>s==null?void 0:s.reference),n=e.map(s=>s==null?void 0:s.floating),r=e.map(s=>s==null?void 0:s.item),i=de.useCallback(s=>p4(s,e,"reference"),t),a=de.useCallback(s=>p4(s,e,"floating"),n),o=de.useCallback(s=>p4(s,e,"item"),r);return de.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}const WG=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function HG(e,t){var n,r;t===void 0&&(t={});const{open:i,elements:a,floatingId:o}=e,{enabled:s=!0,role:l="dialog"}=t,f=oP(),h=((n=a.domReference)==null?void 0:n.id)||f,m=de.useMemo(()=>{var C;return((C=GH(a.floating))==null?void 0:C.id)||o},[a.floating,o]),g=(r=WG.get(l))!=null?r:l,$=vb()!=null,x=de.useMemo(()=>g==="tooltip"||l==="label"?{["aria-"+(l==="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"&&$&&{role:"menuitem"},...l==="select"&&{"aria-autocomplete":"none"},...l==="combobox"&&{"aria-autocomplete":"list"}},[g,m,$,i,h,l]),A=de.useMemo(()=>{const C={id:m,...g&&{role:g}};return g==="tooltip"||l==="label"?C:{...C,...g==="menu"&&{"aria-labelledby":h}}},[g,m,h,l]),w=de.useCallback(C=>{let{active:E,selected:T}=C;const P={role:"option",...E&&{id:m+"-fui-option"}};switch(l){case"select":case"combobox":return{...P,"aria-selected":T}}return{}},[m,l]);return de.useMemo(()=>s?{reference:x,floating:A,item:w}:{},[s,x,A,w])}var lf=e=>e.type==="checkbox",lu=e=>e instanceof Date,ni=e=>e==null;const lP=e=>typeof e=="object";var nr=e=>!ni(e)&&!Array.isArray(e)&&lP(e)&&!lu(e),cP=e=>nr(e)&&e.target?lf(e.target)?e.target.checked:e.target.value:e,GG=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,dP=(e,t)=>e.has(GG(t)),YG=e=>{const t=e.constructor&&e.constructor.prototype;return nr(t)&&t.hasOwnProperty("isPrototypeOf")},yb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function En(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(!(yb&&(e instanceof Blob||r))&&(n||nr(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!YG(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=En(e[i]));else return e;return t}var pm=e=>/^\w*$/.test(e),yn=e=>e===void 0,mm=e=>Array.isArray(e)?e.filter(Boolean):[],bb=e=>mm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),it=(e,t,n)=>{if(!t||!nr(e))return n;const r=(pm(t)?[t]:bb(t)).reduce((i,a)=>ni(i)?i:i[a],e);return yn(r)||r===e?yn(e[t])?n:e[t]:r},Ei=e=>typeof e=="boolean",nn=(e,t,n)=>{let r=-1;const i=pm(t)?[t]:bb(t),a=i.length,o=a-1;for(;++r<a;){const s=i[r];let l=n;if(r!==o){const f=e[s];l=nr(f)||Array.isArray(f)?f:isNaN(+i[r+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=l,e=e[s]}};const fp={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Wi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ko={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},xb=de.default.createContext(null);xb.displayName="HookFormContext";const cf=()=>de.default.useContext(xb),ZG=e=>{const{children:t,...n}=e;return de.default.createElement(xb.Provider,{value:n},t)};var fP=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Wi.all&&(t._proxyFormState[o]=!r||Wi.all),n&&(n[o]=!0),e[o]}});return i};const gm=typeof window<"u"?de.default.useLayoutEffect:de.default.useEffect;function XG(e){const t=cf(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[o,s]=de.default.useState(n._formState),l=de.default.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return gm(()=>n._subscribe({name:i,formState:l.current,exact:a,callback:f=>{!r&&s({...n._formState,...f})}}),[i,r,a]),de.default.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),de.default.useMemo(()=>fP(o,n,l.current,!1),[o,n])}var Ci=e=>typeof e=="string",hP=(e,t,n,r,i)=>Ci(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),u3=e=>ni(e)||!lP(e);function Ro(e,t,n=new WeakSet){if(u3(e)||u3(t))return e===t;if(lu(e)&&lu(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 o=e[a];if(!i.includes(a))return!1;if(a!=="ref"){const s=t[a];if(lu(o)&&lu(s)||nr(o)&&nr(s)||Array.isArray(o)&&Array.isArray(s)?!Ro(o,s,n):o!==s)return!1}}return!0}function pP(e){const t=cf(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o,compute:s}=e||{},l=de.default.useRef(i),f=de.default.useRef(s),h=de.default.useRef(void 0);f.current=s;const m=de.default.useMemo(()=>n._getWatch(r,l.current),[n,r]),[g,b]=de.default.useState(f.current?f.current(m):m);return gm(()=>n._subscribe({name:r,formState:{values:!0},exact:o,callback:$=>{if(!a){const x=hP(r,n._names,$.values||n._formValues,!1,l.current);if(f.current){const A=f.current(x);Ro(A,h.current)||(b(A),h.current=A)}else b(x)}}}),[n,a,r,o]),de.default.useEffect(()=>n._removeUnmounted()),g}function mP(e){const t=cf(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a,defaultValue:o}=e,s=dP(i._names.array,n),l=de.default.useMemo(()=>it(i._formValues,n,it(i._defaultValues,n,o)),[i,n,o]),f=pP({control:i,name:n,defaultValue:l,exact:!0}),h=XG({control:i,name:n,exact:!0}),m=de.default.useRef(e),g=de.default.useRef(void 0),b=de.default.useRef(i.register(n,{...e.rules,value:f,...Ei(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;const $=de.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]),x=de.default.useCallback(E=>b.current.onChange({target:{value:cP(E),name:n},type:fp.CHANGE}),[n]),A=de.default.useCallback(()=>b.current.onBlur({target:{value:it(i._formValues,n),name:n},type:fp.BLUR}),[n,i._formValues]),w=de.default.useCallback(E=>{const T=it(i._fields,n);T&&E&&(T._f.ref={focus:()=>E.focus&&E.focus(),select:()=>E.select&&E.select(),setCustomValidity:P=>E.setCustomValidity(P),reportValidity:()=>E.reportValidity()})},[i._fields,n]),C=de.default.useMemo(()=>({name:n,value:f,...Ei(r)||h.disabled?{disabled:h.disabled||r}:{},onChange:x,onBlur:A,ref:w}),[n,r,h.disabled,x,A,w,f]);return de.default.useEffect(()=>{const E=i._options.shouldUnregister||a,T=g.current;T&&T!==n&&!s&&i.unregister(T),i.register(n,{...m.current.rules,...Ei(m.current.disabled)?{disabled:m.current.disabled}:{}});const P=(F,q)=>{const te=it(i._fields,F);te&&te._f&&(te._f.mount=q)};if(P(n,!0),E){const F=En(it(i._options.defaultValues,n,m.current.defaultValue));nn(i._defaultValues,n,F),yn(it(i._formValues,n))&&nn(i._formValues,n,F)}return!s&&i.register(n),g.current=n,()=>{(s?E&&!i._state.action:E)?i.unregister(n):P(n,!1)}},[n,i,s,a]),de.default.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),de.default.useMemo(()=>({field:C,formState:h,fieldState:$}),[C,h,$])}const QG=e=>e.render(mP(e));var gP=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ai=e=>Array.isArray(e)?e:[e],QC=()=>{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=[]}}};function vP(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const i=e[r],a=t[r];if(i&&nr(i)&&a){const o=vP(i,a);nr(o)&&(n[r]=o)}else e[r]&&(n[r]=a)}return n}var Lr=e=>nr(e)&&!Object.keys(e).length,Db=e=>e.type==="file",ya=e=>typeof e=="function",hp=e=>{if(!yb)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},yP=e=>e.type==="select-multiple",$b=e=>e.type==="radio",JG=e=>$b(e)||lf(e),m4=e=>hp(e)&&e.isConnected;function eY(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=yn(e)?r++:e[t[r++]];return e}function tY(e){for(const t in e)if(e.hasOwnProperty(t)&&!yn(e[t]))return!1;return!0}function Wn(e,t){const n=Array.isArray(t)?t:pm(t)?[t]:bb(t),r=n.length===1?e:eY(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(nr(r)&&Lr(r)||Array.isArray(r)&&tY(r))&&Wn(e,n.slice(0,-1)),e}var nY=e=>{for(const t in e)if(ya(e[t]))return!0;return!1};function bP(e){return Array.isArray(e)||nr(e)&&!nY(e)}function l3(e,t={}){for(const n in e)bP(e[n])?(t[n]=Array.isArray(e[n])?[]:{},l3(e[n],t[n])):yn(e[n])||(t[n]=!0);return t}function Dl(e,t,n){n||(n=l3(t));for(const r in e)bP(e[r])?yn(t)||u3(n[r])?n[r]=l3(e[r],Array.isArray(e[r])?[]:{}):Dl(e[r],ni(t)?{}:t[r],n[r]):n[r]=!Ro(e[r],t[r]);return n}const JC={value:!1,isValid:!1},e2={value:!0,isValid:!0};var xP=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&&!yn(e[0].attributes.value)?yn(e[0].value)||e[0].value===""?e2:{value:e[0].value,isValid:!0}:e2:JC}return JC},DP=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>yn(e)?e:t?e===""?NaN:e&&+e:n&&Ci(e)?new Date(e):r?r(e):e;const t2={isValid:!1,value:null};var $P=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,t2):t2;function n2(e){const t=e.ref;return Db(t)?t.files:$b(t)?$P(e.refs).value:yP(t)?[...t.selectedOptions].map(({value:n})=>n):lf(t)?xP(e.refs).value:DP(yn(t.value)?e.ref.value:t.value,e)}var rY=(e,t,n,r)=>{const i={};for(const a of e){const o=it(t,a);o&&nn(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},pp=e=>e instanceof RegExp,td=e=>yn(e)?e:pp(e)?e.source:nr(e)?pp(e.value)?e.value.source:e.value:e,Cl=e=>({isOnSubmit:!e||e===Wi.onSubmit,isOnBlur:e===Wi.onBlur,isOnChange:e===Wi.onChange,isOnAll:e===Wi.all,isOnTouch:e===Wi.onTouched});const r2="AsyncFunction";var iY=e=>!!e&&!!e.validate&&!!(ya(e.validate)&&e.validate.constructor.name===r2||nr(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===r2)),aY=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),c3=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Ol=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=it(e,i);if(a){const{_f:o,...s}=a;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],i)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(Ol(s,t))break}else if(nr(s)&&Ol(s,t))break}}};function i2(e,t,n){const r=it(e,n);if(r||pm(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=it(t,a),s=it(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};if(s&&s.root&&s.root.type)return{name:`${a}.root`,error:s.root};i.pop()}return{name:n}}var oY=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return Lr(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||Wi.all))},sY=(e,t,n)=>!e||!t||e===t||ai(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),uY=(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,lY=(e,t)=>!mm(it(e,t)).length&&Wn(e,t),EP=(e,t,n)=>{const r=ai(it(e,n));return nn(r,"root",t[n]),nn(e,n,r),e};function a2(e,t,n="validate"){if(Ci(e)||Array.isArray(e)&&e.every(Ci)||Ei(e)&&!e)return{type:n,message:Ci(e)?e:"",ref:t}}var pl=e=>nr(e)&&!pp(e)?e:{value:e,message:""},d3=async(e,t,n,r,i,a)=>{const{ref:o,refs:s,required:l,maxLength:f,minLength:h,min:m,max:g,pattern:b,validate:$,name:x,valueAsNumber:A,mount:w}=e._f,C=it(n,x);if(!w||t.has(x))return{};const E=s?s[0]:o,T=Ee=>{i&&E.reportValidity&&(E.setCustomValidity(Ei(Ee)?"":Ee||""),E.reportValidity())},P={},F=$b(o),q=lf(o),te=F||q,se=(A||Db(o))&&yn(o.value)&&yn(C)||hp(o)&&o.value===""||C===""||Array.isArray(C)&&!C.length,ae=gP.bind(null,x,r,P),O=(Ee,be,z,G=ko.maxLength,V=ko.minLength)=>{const R=Ee?be:z;P[x]={type:Ee?G:V,message:R,ref:o,...ae(Ee?G:V,R)}};if(a?!Array.isArray(C)||!C.length:l&&(!te&&(se||ni(C))||Ei(C)&&!C||q&&!xP(s).isValid||F&&!$P(s).isValid)){const{value:Ee,message:be}=Ci(l)?{value:!!l,message:l}:pl(l);if(Ee&&(P[x]={type:ko.required,message:be,ref:E,...ae(ko.required,be)},!r))return T(be),P}if(!se&&(!ni(m)||!ni(g))){let Ee,be;const z=pl(g),G=pl(m);if(!ni(C)&&!isNaN(C)){const V=o.valueAsNumber||C&&+C;ni(z.value)||(Ee=V>z.value),ni(G.value)||(be=V<G.value)}else{const V=o.valueAsDate||new Date(C),R=M=>new Date(new Date().toDateString()+" "+M),K=o.type=="time",fe=o.type=="week";Ci(z.value)&&C&&(Ee=K?R(C)>R(z.value):fe?C>z.value:V>new Date(z.value)),Ci(G.value)&&C&&(be=K?R(C)<R(G.value):fe?C<G.value:V<new Date(G.value))}if((Ee||be)&&(O(!!Ee,z.message,G.message,ko.max,ko.min),!r))return T(P[x].message),P}if((f||h)&&!se&&(Ci(C)||a&&Array.isArray(C))){const Ee=pl(f),be=pl(h),z=!ni(Ee.value)&&C.length>+Ee.value,G=!ni(be.value)&&C.length<+be.value;if((z||G)&&(O(z,Ee.message,be.message),!r))return T(P[x].message),P}if(b&&!se&&Ci(C)){const{value:Ee,message:be}=pl(b);if(pp(Ee)&&!C.match(Ee)&&(P[x]={type:ko.pattern,message:be,ref:o,...ae(ko.pattern,be)},!r))return T(be),P}if($){if(ya($)){const Ee=await $(C,n),be=a2(Ee,E);if(be&&(P[x]={...be,...ae(ko.validate,be.message)},!r))return T(be.message),P}else if(nr($)){let Ee={};for(const be in $){if(!Lr(Ee)&&!r)break;const z=a2(await $[be](C,n),E,be);z&&(Ee={...z,...ae(be,z.message)},T(z.message),r&&(P[x]=Ee))}if(!Lr(Ee)&&(P[x]={ref:E,...Ee},!r))return P}}return T(!0),P};const cY={mode:Wi.onSubmit,reValidateMode:Wi.onChange,shouldFocusError:!0};function dY(e={}){let t={...cY,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:ya(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=nr(t.defaultValues)||nr(t.values)?En(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:En(i),o={action:!1,mount:!1,watch:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,f=0;const h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let m={...h};const g={array:QC(),state:QC()},b=t.criteriaMode===Wi.all,$=xe=>Ae=>{clearTimeout(f),f=setTimeout(xe,Ae)},x=async xe=>{if(!t.disabled&&(h.isValid||m.isValid||xe)){const Ae=t.resolver?Lr((await q()).errors):await se(r,!0);Ae!==n.isValid&&g.state.next({isValid:Ae})}},A=(xe,Ae)=>{!t.disabled&&(h.isValidating||h.validatingFields||m.isValidating||m.validatingFields)&&((xe||Array.from(s.mount)).forEach(Fe=>{Fe&&(Ae?nn(n.validatingFields,Fe,Ae):Wn(n.validatingFields,Fe))}),g.state.next({validatingFields:n.validatingFields,isValidating:!Lr(n.validatingFields)}))},w=(xe,Ae=[],Fe,Qe,et=!0,Je=!0)=>{if(Qe&&Fe&&!t.disabled){if(o.action=!0,Je&&Array.isArray(it(r,xe))){const gt=Fe(it(r,xe),Qe.argA,Qe.argB);et&&nn(r,xe,gt)}if(Je&&Array.isArray(it(n.errors,xe))){const gt=Fe(it(n.errors,xe),Qe.argA,Qe.argB);et&&nn(n.errors,xe,gt),lY(n.errors,xe)}if((h.touchedFields||m.touchedFields)&&Je&&Array.isArray(it(n.touchedFields,xe))){const gt=Fe(it(n.touchedFields,xe),Qe.argA,Qe.argB);et&&nn(n.touchedFields,xe,gt)}(h.dirtyFields||m.dirtyFields)&&(n.dirtyFields=Dl(i,a)),g.state.next({name:xe,isDirty:O(xe,Ae),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else nn(a,xe,Ae)},C=(xe,Ae)=>{nn(n.errors,xe,Ae),g.state.next({errors:n.errors})},E=xe=>{n.errors=xe,g.state.next({errors:n.errors,isValid:!1})},T=(xe,Ae,Fe,Qe)=>{const et=it(r,xe);if(et){const Je=it(a,xe,yn(Fe)?it(i,xe):Fe);yn(Je)||Qe&&Qe.defaultChecked||Ae?nn(a,xe,Ae?Je:n2(et._f)):z(xe,Je),o.mount&&x()}},P=(xe,Ae,Fe,Qe,et)=>{let Je=!1,gt=!1;const kt={name:xe};if(!t.disabled){if(!Fe||Qe){(h.isDirty||m.isDirty)&&(gt=n.isDirty,n.isDirty=kt.isDirty=O(),Je=gt!==kt.isDirty);const Dt=Ro(it(i,xe),Ae);gt=!!it(n.dirtyFields,xe),Dt?Wn(n.dirtyFields,xe):nn(n.dirtyFields,xe,!0),kt.dirtyFields=n.dirtyFields,Je=Je||(h.dirtyFields||m.dirtyFields)&>!==!Dt}if(Fe){const Dt=it(n.touchedFields,xe);Dt||(nn(n.touchedFields,xe,Fe),kt.touchedFields=n.touchedFields,Je=Je||(h.touchedFields||m.touchedFields)&&Dt!==Fe)}Je&&et&&g.state.next(kt)}return Je?kt:{}},F=(xe,Ae,Fe,Qe)=>{const et=it(n.errors,xe),Je=(h.isValid||m.isValid)&&Ei(Ae)&&n.isValid!==Ae;if(t.delayError&&Fe?(l=$(()=>C(xe,Fe)),l(t.delayError)):(clearTimeout(f),l=null,Fe?nn(n.errors,xe,Fe):Wn(n.errors,xe)),(Fe?!Ro(et,Fe):et)||!Lr(Qe)||Je){const gt={...Qe,...Je&&Ei(Ae)?{isValid:Ae}:{},errors:n.errors,name:xe};n={...n,...gt},g.state.next(gt)}},q=async xe=>{A(xe,!0);const Ae=await t.resolver(a,t.context,rY(xe||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return A(xe),Ae},te=async xe=>{const{errors:Ae}=await q(xe);if(xe)for(const Fe of xe){const Qe=it(Ae,Fe);Qe?nn(n.errors,Fe,Qe):Wn(n.errors,Fe)}else n.errors=Ae;return Ae},se=async(xe,Ae,Fe={valid:!0})=>{for(const Qe in xe){const et=xe[Qe];if(et){const{_f:Je,...gt}=et;if(Je){const kt=s.array.has(Je.name),Dt=et._f&&iY(et._f);Dt&&h.validatingFields&&A([Je.name],!0);const bn=await d3(et,s.disabled,a,b,t.shouldUseNativeValidation&&!Ae,kt);if(Dt&&h.validatingFields&&A([Je.name]),bn[Je.name]&&(Fe.valid=!1,Ae))break;!Ae&&(it(bn,Je.name)?kt?EP(n.errors,bn,Je.name):nn(n.errors,Je.name,bn[Je.name]):Wn(n.errors,Je.name))}!Lr(gt)&&await se(gt,Ae,Fe)}}return Fe.valid},ae=()=>{for(const xe of s.unMount){const Ae=it(r,xe);Ae&&(Ae._f.refs?Ae._f.refs.every(Fe=>!m4(Fe)):!m4(Ae._f.ref))&&Xe(xe)}s.unMount=new Set},O=(xe,Ae)=>!t.disabled&&(xe&&Ae&&nn(a,xe,Ae),!Ro(M(),i)),Ee=(xe,Ae,Fe)=>hP(xe,s,{...o.mount?a:yn(Ae)?i:Ci(xe)?{[xe]:Ae}:Ae},Fe,Ae),be=xe=>mm(it(o.mount?a:i,xe,t.shouldUnregister?it(i,xe,[]):[])),z=(xe,Ae,Fe={})=>{const Qe=it(r,xe);let et=Ae;if(Qe){const Je=Qe._f;Je&&(!Je.disabled&&nn(a,xe,DP(Ae,Je)),et=hp(Je.ref)&&ni(Ae)?"":Ae,yP(Je.ref)?[...Je.ref.options].forEach(gt=>gt.selected=et.includes(gt.value)):Je.refs?lf(Je.ref)?Je.refs.forEach(gt=>{(!gt.defaultChecked||!gt.disabled)&&(Array.isArray(et)?gt.checked=!!et.find(kt=>kt===gt.value):gt.checked=et===gt.value||!!et)}):Je.refs.forEach(gt=>gt.checked=gt.value===et):Db(Je.ref)?Je.ref.value="":(Je.ref.value=et,Je.ref.type||g.state.next({name:xe,values:En(a)})))}(Fe.shouldDirty||Fe.shouldTouch)&&P(xe,et,Fe.shouldTouch,Fe.shouldDirty,!0),Fe.shouldValidate&&fe(xe)},G=(xe,Ae,Fe)=>{for(const Qe in Ae){if(!Ae.hasOwnProperty(Qe))return;const et=Ae[Qe],Je=xe+"."+Qe,gt=it(r,Je);(s.array.has(xe)||nr(et)||gt&&!gt._f)&&!lu(et)?G(Je,et,Fe):z(Je,et,Fe)}},V=(xe,Ae,Fe={})=>{const Qe=it(r,xe),et=s.array.has(xe),Je=En(Ae);nn(a,xe,Je),et?(g.array.next({name:xe,values:En(a)}),(h.isDirty||h.dirtyFields||m.isDirty||m.dirtyFields)&&Fe.shouldDirty&&g.state.next({name:xe,dirtyFields:Dl(i,a),isDirty:O(xe,Je)})):Qe&&!Qe._f&&!ni(Je)?G(xe,Je,Fe):z(xe,Je,Fe),c3(xe,s)&&g.state.next({...n,name:xe}),g.state.next({name:o.mount?xe:void 0,values:En(a)})},R=async xe=>{o.mount=!0;const Ae=xe.target;let Fe=Ae.name,Qe=!0;const et=it(r,Fe),Je=Dt=>{Qe=Number.isNaN(Dt)||lu(Dt)&&isNaN(Dt.getTime())||Ro(Dt,it(a,Fe,Dt))},gt=Cl(t.mode),kt=Cl(t.reValidateMode);if(et){let Dt,bn;const Dr=Ae.type?n2(et._f):cP(xe),zt=xe.type===fp.BLUR||xe.type===fp.FOCUS_OUT,Pt=!aY(et._f)&&!t.resolver&&!it(n.errors,Fe)&&!et._f.deps||uY(zt,it(n.touchedFields,Fe),n.isSubmitted,kt,gt),It=c3(Fe,s,zt);nn(a,Fe,Dr),zt?(!Ae||!Ae.readOnly)&&(et._f.onBlur&&et._f.onBlur(xe),l&&l(0)):et._f.onChange&&et._f.onChange(xe);const qt=P(Fe,Dr,zt),pr=!Lr(qt)||It;if(!zt&&g.state.next({name:Fe,type:xe.type,values:En(a)}),Pt)return(h.isValid||m.isValid)&&(t.mode==="onBlur"?zt&&x():zt||x()),pr&&g.state.next({name:Fe,...It?{}:qt});if(!zt&&It&&g.state.next({...n}),t.resolver){const{errors:Hr}=await q([Fe]);if(Je(Dr),Qe){const li=i2(n.errors,r,Fe),Br=i2(Hr,r,li.name||Fe);Dt=Br.error,Fe=Br.name,bn=Lr(Hr)}}else A([Fe],!0),Dt=(await d3(et,s.disabled,a,b,t.shouldUseNativeValidation))[Fe],A([Fe]),Je(Dr),Qe&&(Dt?bn=!1:(h.isValid||m.isValid)&&(bn=await se(r,!0)));Qe&&(et._f.deps&&(!Array.isArray(et._f.deps)||et._f.deps.length>0)&&fe(et._f.deps),F(Fe,bn,Dt,qt))}},K=(xe,Ae)=>{if(it(n.errors,Ae)&&xe.focus)return xe.focus(),1},fe=async(xe,Ae={})=>{let Fe,Qe;const et=ai(xe);if(t.resolver){const Je=await te(yn(xe)?xe:et);Fe=Lr(Je),Qe=xe?!et.some(gt=>it(Je,gt)):Fe}else xe?(Qe=(await Promise.all(et.map(async Je=>{const gt=it(r,Je);return await se(gt&>._f?{[Je]:gt}:gt)}))).every(Boolean),!(!Qe&&!n.isValid)&&x()):Qe=Fe=await se(r);return g.state.next({...!Ci(xe)||(h.isValid||m.isValid)&&Fe!==n.isValid?{}:{name:xe},...t.resolver||!xe?{isValid:Fe}:{},errors:n.errors}),Ae.shouldFocus&&!Qe&&Ol(r,K,xe?et:s.mount),Qe},M=(xe,Ae)=>{let Fe={...o.mount?a:i};return Ae&&(Fe=vP(Ae.dirtyFields?n.dirtyFields:n.touchedFields,Fe)),yn(xe)?Fe:Ci(xe)?it(Fe,xe):xe.map(Qe=>it(Fe,Qe))},oe=(xe,Ae)=>({invalid:!!it((Ae||n).errors,xe),isDirty:!!it((Ae||n).dirtyFields,xe),error:it((Ae||n).errors,xe),isValidating:!!it(n.validatingFields,xe),isTouched:!!it((Ae||n).touchedFields,xe)}),le=xe=>{xe&&ai(xe).forEach(Ae=>Wn(n.errors,Ae)),g.state.next({errors:xe?n.errors:{}})},Se=(xe,Ae,Fe)=>{const Qe=(it(r,xe,{_f:{}})._f||{}).ref,et=it(n.errors,xe)||{},{ref:Je,message:gt,type:kt,...Dt}=et;nn(n.errors,xe,{...Dt,...Ae,ref:Qe}),g.state.next({name:xe,errors:n.errors,isValid:!1}),Fe&&Fe.shouldFocus&&Qe&&Qe.focus&&Qe.focus()},_e=(xe,Ae)=>ya(xe)?g.state.subscribe({next:Fe=>"values"in Fe&&xe(Ee(void 0,Ae),Fe)}):Ee(xe,Ae,!0),Be=xe=>g.state.subscribe({next:Ae=>{sY(xe.name,Ae.name,xe.exact)&&oY(Ae,xe.formState||h,_t,xe.reRenderRoot)&&xe.callback({values:{...a},...n,...Ae,defaultValues:i})}}).unsubscribe,Ge=xe=>(o.mount=!0,m={...m,...xe.formState},Be({...xe,formState:m})),Xe=(xe,Ae={})=>{for(const Fe of xe?ai(xe):s.mount)s.mount.delete(Fe),s.array.delete(Fe),Ae.keepValue||(Wn(r,Fe),Wn(a,Fe)),!Ae.keepError&&Wn(n.errors,Fe),!Ae.keepDirty&&Wn(n.dirtyFields,Fe),!Ae.keepTouched&&Wn(n.touchedFields,Fe),!Ae.keepIsValidating&&Wn(n.validatingFields,Fe),!t.shouldUnregister&&!Ae.keepDefaultValue&&Wn(i,Fe);g.state.next({values:En(a)}),g.state.next({...n,...Ae.keepDirty?{isDirty:O()}:{}}),!Ae.keepIsValid&&x()},Ne=({disabled:xe,name:Ae})=>{(Ei(xe)&&o.mount||xe||s.disabled.has(Ae))&&(xe?s.disabled.add(Ae):s.disabled.delete(Ae))},qe=(xe,Ae={})=>{let Fe=it(r,xe);const Qe=Ei(Ae.disabled)||Ei(t.disabled);return nn(r,xe,{...Fe||{},_f:{...Fe&&Fe._f?Fe._f:{ref:{name:xe}},name:xe,mount:!0,...Ae}}),s.mount.add(xe),Fe?Ne({disabled:Ei(Ae.disabled)?Ae.disabled:t.disabled,name:xe}):T(xe,!0,Ae.value),{...Qe?{disabled:Ae.disabled||t.disabled}:{},...t.progressive?{required:!!Ae.required,min:td(Ae.min),max:td(Ae.max),minLength:td(Ae.minLength),maxLength:td(Ae.maxLength),pattern:td(Ae.pattern)}:{},name:xe,onChange:R,onBlur:R,ref:et=>{if(et){qe(xe,Ae),Fe=it(r,xe);const Je=yn(et.value)&&et.querySelectorAll&&et.querySelectorAll("input,select,textarea")[0]||et,gt=JG(Je),kt=Fe._f.refs||[];if(gt?kt.find(Dt=>Dt===Je):Je===Fe._f.ref)return;nn(r,xe,{_f:{...Fe._f,...gt?{refs:[...kt.filter(m4),Je,...Array.isArray(it(i,xe))?[{}]:[]],ref:{type:Je.type,name:xe}}:{ref:Je}}}),T(xe,!1,void 0,Je)}else Fe=it(r,xe,{}),Fe._f&&(Fe._f.mount=!1),(t.shouldUnregister||Ae.shouldUnregister)&&!(dP(s.array,xe)&&o.action)&&s.unMount.add(xe)}}},ke=()=>t.shouldFocusError&&Ol(r,K,s.mount),je=xe=>{Ei(xe)&&(g.state.next({disabled:xe}),Ol(r,(Ae,Fe)=>{const Qe=it(r,Fe);Qe&&(Ae.disabled=Qe._f.disabled||xe,Array.isArray(Qe._f.refs)&&Qe._f.refs.forEach(et=>{et.disabled=Qe._f.disabled||xe}))},0,!1))},Te=(xe,Ae)=>async Fe=>{let Qe;Fe&&(Fe.preventDefault&&Fe.preventDefault(),Fe.persist&&Fe.persist());let et=En(a);if(g.state.next({isSubmitting:!0}),t.resolver){const{errors:Je,values:gt}=await q();n.errors=Je,et=En(gt)}else await se(r);if(s.disabled.size)for(const Je of s.disabled)Wn(et,Je);if(Wn(n.errors,"root"),Lr(n.errors)){g.state.next({errors:{}});try{await xe(et,Fe)}catch(Je){Qe=Je}}else Ae&&await Ae({...n.errors},Fe),ke(),setTimeout(ke);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Lr(n.errors)&&!Qe,submitCount:n.submitCount+1,errors:n.errors}),Qe)throw Qe},Ye=(xe,Ae={})=>{it(r,xe)&&(yn(Ae.defaultValue)?V(xe,En(it(i,xe))):(V(xe,Ae.defaultValue),nn(i,xe,En(Ae.defaultValue))),Ae.keepTouched||Wn(n.touchedFields,xe),Ae.keepDirty||(Wn(n.dirtyFields,xe),n.isDirty=Ae.defaultValue?O(xe,En(it(i,xe))):O()),Ae.keepError||(Wn(n.errors,xe),h.isValid&&x()),g.state.next({...n}))},ht=(xe,Ae={})=>{const Fe=xe?En(xe):i,Qe=En(Fe),et=Lr(xe),Je=et?i:Qe;if(Ae.keepDefaultValues||(i=Fe),!Ae.keepValues){if(Ae.keepDirtyValues){const gt=new Set([...s.mount,...Object.keys(Dl(i,a))]);for(const kt of Array.from(gt))it(n.dirtyFields,kt)?nn(Je,kt,it(a,kt)):V(kt,it(Je,kt))}else{if(yb&&yn(xe))for(const gt of s.mount){const kt=it(r,gt);if(kt&&kt._f){const Dt=Array.isArray(kt._f.refs)?kt._f.refs[0]:kt._f.ref;if(hp(Dt)){const bn=Dt.closest("form");if(bn){bn.reset();break}}}}if(Ae.keepFieldsRef)for(const gt of s.mount)V(gt,it(Je,gt));else r={}}a=t.shouldUnregister?Ae.keepDefaultValues?En(i):{}:En(Je),g.array.next({values:{...Je}}),g.state.next({values:{...Je}})}s={mount:Ae.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!h.isValid||!!Ae.keepIsValid||!!Ae.keepDirtyValues,o.watch=!!t.shouldUnregister,g.state.next({submitCount:Ae.keepSubmitCount?n.submitCount:0,isDirty:et?!1:Ae.keepDirty?n.isDirty:!!(Ae.keepDefaultValues&&!Ro(xe,i)),isSubmitted:Ae.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:et?{}:Ae.keepDirtyValues?Ae.keepDefaultValues&&a?Dl(i,a):n.dirtyFields:Ae.keepDefaultValues&&xe?Dl(i,xe):Ae.keepDirty?n.dirtyFields:{},touchedFields:Ae.keepTouched?n.touchedFields:{},errors:Ae.keepErrors?n.errors:{},isSubmitSuccessful:Ae.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Ht=(xe,Ae)=>ht(ya(xe)?xe(a):xe,Ae),xt=(xe,Ae={})=>{const Fe=it(r,xe),Qe=Fe&&Fe._f;if(Qe){const et=Qe.refs?Qe.refs[0]:Qe.ref;et.focus&&(et.focus(),Ae.shouldSelect&&ya(et.select)&&et.select())}},_t=xe=>{n={...n,...xe}},Jt={control:{register:qe,unregister:Xe,getFieldState:oe,handleSubmit:Te,setError:Se,_subscribe:Be,_runSchema:q,_focusError:ke,_getWatch:Ee,_getDirty:O,_setValid:x,_setFieldArray:w,_setDisabledField:Ne,_setErrors:E,_getFieldArray:be,_reset:ht,_resetDefaultValues:()=>ya(t.defaultValues)&&t.defaultValues().then(xe=>{Ht(xe,t.resetOptions),g.state.next({isLoading:!1})}),_removeUnmounted:ae,_disableForm:je,_subjects:g,_proxyFormState:h,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(xe){o=xe},get _defaultValues(){return i},get _names(){return s},set _names(xe){s=xe},get _formState(){return n},get _options(){return t},set _options(xe){t={...t,...xe}}},subscribe:Ge,trigger:fe,register:qe,handleSubmit:Te,watch:_e,setValue:V,getValues:M,reset:Ht,resetField:Ye,clearErrors:le,unregister:Xe,setError:Se,setFocus:xt,getFieldState:oe};return{...Jt,formControl:Jt}}var cs=()=>{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)})},g4=(e,t,n={})=>n.shouldFocus||yn(n.shouldFocus)?n.focusName||`${e}.${yn(n.focusIndex)?t:n.focusIndex}.`:"",v4=(e,t)=>[...e,...ai(t)],y4=e=>Array.isArray(e)?e.map(()=>{}):void 0;function b4(e,t,n){return[...e.slice(0,t),...ai(n),...e.slice(t)]}var x4=(e,t,n)=>Array.isArray(e)?(yn(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],D4=(e,t)=>[...ai(t),...ai(e)];function fY(e,t){let n=0;const r=[...e];for(const i of t)r.splice(i-n,1),n++;return mm(r).length?r:[]}var $4=(e,t)=>yn(t)?[]:fY(e,ai(t).sort((n,r)=>n-r)),E4=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},o2=(e,t,n)=>(e[t]=n,e);function hY(e){const t=cf(),{control:n=t.control,name:r,keyName:i="id",shouldUnregister:a,rules:o}=e,[s,l]=de.default.useState(n._getFieldArray(r)),f=de.default.useRef(n._getFieldArray(r).map(cs)),h=de.default.useRef(!1);n._names.array.add(r),de.default.useMemo(()=>o&&s.length>=0&&n.register(r,o),[n,r,s.length,o]),gm(()=>n._subjects.array.subscribe({next:({values:T,name:P})=>{if(P===r||!P){const F=it(T,r);Array.isArray(F)&&(l(F),f.current=F.map(cs))}}}).unsubscribe,[n,r]);const m=de.default.useCallback(T=>{h.current=!0,n._setFieldArray(r,T)},[n,r]),g=(T,P)=>{const F=ai(En(T)),q=v4(n._getFieldArray(r),F);n._names.focus=g4(r,q.length-1,P),f.current=v4(f.current,F.map(cs)),m(q),l(q),n._setFieldArray(r,q,v4,{argA:y4(T)})},b=(T,P)=>{const F=ai(En(T)),q=D4(n._getFieldArray(r),F);n._names.focus=g4(r,0,P),f.current=D4(f.current,F.map(cs)),m(q),l(q),n._setFieldArray(r,q,D4,{argA:y4(T)})},$=T=>{const P=$4(n._getFieldArray(r),T);f.current=$4(f.current,T),m(P),l(P),!Array.isArray(it(n._fields,r))&&nn(n._fields,r,void 0),n._setFieldArray(r,P,$4,{argA:T})},x=(T,P,F)=>{const q=ai(En(P)),te=b4(n._getFieldArray(r),T,q);n._names.focus=g4(r,T,F),f.current=b4(f.current,T,q.map(cs)),m(te),l(te),n._setFieldArray(r,te,b4,{argA:T,argB:y4(P)})},A=(T,P)=>{const F=n._getFieldArray(r);E4(F,T,P),E4(f.current,T,P),m(F),l(F),n._setFieldArray(r,F,E4,{argA:T,argB:P},!1)},w=(T,P)=>{const F=n._getFieldArray(r);x4(F,T,P),x4(f.current,T,P),m(F),l(F),n._setFieldArray(r,F,x4,{argA:T,argB:P},!1)},C=(T,P)=>{const F=En(P),q=o2(n._getFieldArray(r),T,F);f.current=[...q].map((te,se)=>!te||se===T?cs():f.current[se]),m(q),l([...q]),n._setFieldArray(r,q,o2,{argA:T,argB:F},!0,!1)},E=T=>{const P=ai(En(T));f.current=P.map(cs),m([...P]),l([...P]),n._setFieldArray(r,[...P],F=>F,{},!0,!1)};return de.default.useEffect(()=>{if(n._state.action=!1,c3(r,n._names)&&n._subjects.state.next({...n._formState}),h.current&&(!Cl(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!Cl(n._options.reValidateMode).isOnSubmit)if(n._options.resolver)n._runSchema([r]).then(T=>{const P=it(T.errors,r),F=it(n._formState.errors,r);(F?!P&&F.type||P&&(F.type!==P.type||F.message!==P.message):P&&P.type)&&(P?nn(n._formState.errors,r,P):Wn(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const T=it(n._fields,r);T&&T._f&&!(Cl(n._options.reValidateMode).isOnSubmit&&Cl(n._options.mode).isOnSubmit)&&d3(T,n._names.disabled,n._formValues,n._options.criteriaMode===Wi.all,n._options.shouldUseNativeValidation,!0).then(P=>!Lr(P)&&n._subjects.state.next({errors:EP(n._formState.errors,P,r)}))}n._subjects.state.next({name:r,values:En(n._formValues)}),n._names.focus&&Ol(n._fields,(T,P)=>{if(n._names.focus&&P.startsWith(n._names.focus)&&T.focus)return T.focus(),1}),n._names.focus="",n._setValid(),h.current=!1},[s,r,n]),de.default.useEffect(()=>(!it(n._formValues,r)&&n._setFieldArray(r),()=>{const T=(P,F)=>{const q=it(n._fields,P);q&&q._f&&(q._f.mount=F)};n._options.shouldUnregister||a?n.unregister(r):T(r,!1)}),[r,n,i,a]),{swap:de.default.useCallback(A,[m,r,n]),move:de.default.useCallback(w,[m,r,n]),prepend:de.default.useCallback(b,[m,r,n]),append:de.default.useCallback(g,[m,r,n]),remove:de.default.useCallback($,[m,r,n]),insert:de.default.useCallback(x,[m,r,n]),update:de.default.useCallback(C,[m,r,n]),replace:de.default.useCallback(E,[m,r,n]),fields:de.default.useMemo(()=>s.map((T,P)=>({...T,[i]:f.current[P]||cs()})),[s,i])}}function pY(e={}){const t=de.default.useRef(void 0),n=de.default.useRef(void 0),[r,i]=de.default.useState({isDirty:!1,isValidating:!1,isLoading:ya(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:ya(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!ya(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:o,...s}=dY(e);t.current={...s,formState:r}}const a=t.current.control;return a._options=e,gm(()=>{const o=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i(s=>({...s,isReady:!0})),a._formState.isReady=!0,o},[a]),de.default.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),de.default.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),de.default.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),de.default.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),de.default.useEffect(()=>{if(a._proxyFormState.isDirty){const o=a._getDirty();o!==r.isDirty&&a._subjects.state.next({isDirty:o})}},[a,r.isDirty]),de.default.useEffect(()=>{e.values&&!Ro(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),n.current=e.values,i(o=>({...o}))):a._resetDefaultValues()},[a,e.values]),de.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=fP(r,a),t.current}function ml(e,t,n){let r=n.initialDeps??[],i;function a(){var o,s,l,f;let h;n.key&&((o=n.debug)!=null&&o.call(n))&&(h=Date.now());const m=e();if(!(m.length!==r.length||m.some(($,x)=>r[x]!==$)))return i;r=m;let b;if(n.key&&((s=n.debug)!=null&&s.call(n))&&(b=Date.now()),i=t(...m),n.key&&((l=n.debug)!=null&&l.call(n))){const $=Math.round((Date.now()-h)*100)/100,x=Math.round((Date.now()-b)*100)/100,A=x/16,w=(C,E)=>{for(C=String(C);C.length<E;)C=" "+C;return C};console.info(`%c⏱ ${w(x,5)} /${w($,5)} ms`,`
|
|
62
|
-
font-size: .6rem;
|
|
63
|
-
font-weight: bold;
|
|
64
|
-
color: hsl(${Math.max(0,Math.min(120-120*A,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(f=n==null?void 0:n.onChange)==null||f.call(n,i),i}return a.updateDeps=o=>{r=o},a}function s2(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const mY=(e,t)=>Math.abs(e-t)<1.01,gY=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},u2=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},vY=e=>e,yY=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let i=t;i<=n;i++)r.push(i);return r},bY=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=o=>{const{width:s,height:l}=o;t({width:Math.round(s),height:Math.round(l)})};if(i(u2(n)),!r.ResizeObserver)return()=>{};const a=new r.ResizeObserver(o=>{const s=()=>{const l=o[0];if(l!=null&&l.borderBoxSize){const f=l.borderBoxSize[0];if(f){i({width:f.inlineSize,height:f.blockSize});return}}i(u2(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()});return a.observe(n,{box:"border-box"}),()=>{a.unobserve(n)}},l2={passive:!0},c2=typeof window>"u"?!0:"onscrollend"in window,xY=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const a=e.options.useScrollendEvent&&c2?()=>{}:gY(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),o=h=>()=>{const{horizontal:m,isRtl:g}=e.options;i=m?n.scrollLeft*(g&&-1||1):n.scrollTop,a(),t(i,h)},s=o(!0),l=o(!1);l(),n.addEventListener("scroll",s,l2);const f=e.options.useScrollendEvent&&c2;return f&&n.addEventListener("scrollend",l,l2),()=>{n.removeEventListener("scroll",s),f&&n.removeEventListener("scrollend",l)}},DY=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},$Y=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;const o=e+t;(a=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||a.call(i,{[r.options.horizontal?"left":"top"]:o,behavior:n})};class EY{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(i=>{i.forEach(a=>{const o=()=>{this._measureElement(a.target,a)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),n=null},observe:i=>{var a;return(a=r())==null?void 0:a.observe(i,{box:"border-box"})},unobserve:i=>{var a;return(a=r())==null?void 0:a.unobserve(i)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,i])=>{typeof i>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:vY,rangeExtractor:yY,onChange:()=>{},measureElement:DY,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,n)},this.maybeNotify=ml(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=a,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const i=new Map,a=new Map;for(let o=r-1;o>=0;o--){const s=n[o];if(i.has(s.lane))continue;const l=a.get(s.lane);if(l==null||s.end>l.end?a.set(s.lane,s):s.end<l.end&&i.set(s.lane,!0),i.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((o,s)=>o.end===s.end?o.index-s.index:o.end-s.end)[0]:void 0},this.getMeasurementOptions=ml(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,r,i,a,o)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:i,getItemKey:a,enabled:o}),{key:!1}),this.getMeasurements=ml(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:i,getItemKey:a,enabled:o},s)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const f=this.measurementsCache.slice(0,l);for(let h=l;h<n;h++){const m=a(h),g=this.options.lanes===1?f[h-1]:this.getFurthestMeasurement(f,h),b=g?g.end+this.options.gap:r+i,$=s.get(m),x=typeof $=="number"?$:this.options.estimateSize(h),A=b+x,w=g?g.lane:h%this.options.lanes;f[h]={index:h,start:b,size:x,end:A,key:m,lane:w}}return this.measurementsCache=f,f},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=ml(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,i,a)=>this.range=n.length>0&&r>0?CY({measurements:n,outerSize:r,scrollOffset:i,lanes:a}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=ml(()=>{let n=null,r=null;const i=this.calculateRange();return i&&(n=i.startIndex,r=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,i,a,o)=>a===null||o===null?[]:n({startIndex:a,endIndex:o,overscan:r,count:i}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,i=n.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const i=this.indexFromElement(n),a=this.measurementsCache[i];if(!a)return;const o=a.key,s=this.elementsCache.get(o);s!==n&&(s&&this.observer.unobserve(s),this.observer.observe(n),this.elementsCache.set(o,n)),n.isConnected&&this.resizeItem(i,this.options.measureElement(n,r,this))},this.resizeItem=(n,r)=>{const i=this.measurementsCache[n];if(!i)return;const a=this.itemSizeCache.get(i.key)??i.size,o=r-a;o!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,o,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",o),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(n,void 0)},this.getVirtualItems=ml(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let a=0,o=n.length;a<o;a++){const s=n[a],l=r[s];i.push(l)}return i},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return s2(r[CP(0,r.length-1,i=>s2(r[i]).start,n)])},this.getOffsetForAlignment=(n,r,i=0)=>{const a=this.getSize(),o=this.getScrollOffset();r==="auto"&&(r=n>=o+a?"end":"start"),r==="center"?n+=(i-a)/2:r==="end"&&(n-=a);const s=this.getTotalSize()+this.options.scrollMargin-a;return Math.max(Math.min(s,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const i=this.measurementsCache[n];if(!i)return;const a=this.getSize(),o=this.getScrollOffset();if(r==="auto")if(i.end>=o+a-this.options.scrollPaddingEnd)r="end";else if(i.start<=o+this.options.scrollPaddingStart)r="start";else return[o,r];const s=r==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,r,i.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(n,{align:r="start",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:i})},this.scrollToIndex=(n,{align:r="auto",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),n=Math.max(0,Math.min(n,this.options.count-1));let a=0;const o=10,s=f=>{if(!this.targetWindow)return;const h=this.getOffsetForIndex(n,f);if(!h){console.warn("Failed to get offset for index:",n);return}const[m,g]=h;this._scrollToOffset(m,{adjustments:void 0,behavior:i}),this.targetWindow.requestAnimationFrame(()=>{const b=this.getScrollOffset(),$=this.getOffsetForIndex(n,g);if(!$){console.warn("Failed to get offset for index:",n);return}mY($[0],b)||l(g)})},l=f=>{this.targetWindow&&(a++,a<o?(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("Schedule retry",a,o),this.targetWindow.requestAnimationFrame(()=>s(f))):console.warn(`Failed to scroll to index ${n} after ${o} attempts.`))};s(r)},this.scrollBy=(n,{behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let i;if(r.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=((n=r[r.length-1])==null?void 0:n.end)??0;else{const a=Array(this.options.lanes).fill(null);let o=r.length-1;for(;o>=0&&a.some(s=>s===null);){const s=r[o];a[s.lane]===null&&(a[s.lane]=s.end),o--}i=Math.max(...a.filter(s=>s!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:i})=>{this.options.scrollToFn(n,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const CP=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,a=n(i);if(a<r)e=i+1;else if(a>r)t=i-1;else return i}return e>0?e-1:0};function CY({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const i=e.length-1,a=l=>e[l].start;if(e.length<=r)return{startIndex:0,endIndex:i};let o=CP(0,i,a,n),s=o;if(r===1)for(;s<i&&e[s].end<n+t;)s++;else if(r>1){const l=Array(r).fill(0);for(;s<i&&l.some(h=>h<n+t);){const h=e[s];l[h.lane]=h.end,s++}const f=Array(r).fill(n+t);for(;o>=0&&f.some(h=>h>=n);){const h=e[o];f[h.lane]=h.start,o--}o=Math.max(0,o-o%r),s=Math.min(i,s+(r-1-s%r))}return{startIndex:o,endIndex:s}}const d2=typeof document<"u"?de.useLayoutEffect:de.useEffect;function wY(e){const t=de.useReducer(()=>({}),{})[1],n={...e,onChange:(i,a)=>{var o;a?of.flushSync(t):t(),(o=e.onChange)==null||o.call(e,i,a)}},[r]=de.useState(()=>new EY(n));return r.setOptions(n),d2(()=>r._didMount(),[]),d2(()=>r._willUpdate()),r}function AY(e){return wY({observeElementRect:bY,observeElementOffset:xY,scrollToFn:$Y,...e})}const hn=typeof document<"u"?de.default.useLayoutEffect:()=>{};var C4;const SY=(C4=de.default.useInsertionEffect)!==null&&C4!==void 0?C4:hn;function cn(e){const t=I.useRef(null);return SY(()=>{t.current=e},[e]),I.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function TY(e){let[t,n]=I.useState(e),r=I.useRef(null),i=cn(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?i():n(o.value)});hn(()=>{r.current&&i()});let a=cn(o=>{r.current=o(t),i()});return[t,a]}const mp={prefix:String(Math.round(Math.random()*1e10)),current:0},wP=de.default.createContext(mp),PY=de.default.createContext(!1);let _Y=!!(typeof window<"u"&&window.document&&window.document.createElement),w4=new WeakMap;function BY(e=!1){let t=I.useContext(wP),n=I.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=de.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 o=w4.get(a);o==null?w4.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,w4.delete(a))}n.current=++t.current}return n.current}function FY(e){let t=I.useContext(wP);t===mp&&!_Y&&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=BY(!!e),r=t===mp&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function kY(e){let t=de.default.useId(),[n]=I.useState(vm()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${mp.prefix}`;return e||`${r}-${t}`}const MY=typeof de.default.useId=="function"?kY:FY;function RY(){return!1}function IY(){return!0}function OY(e){return()=>{}}function vm(){return typeof de.default.useSyncExternalStore=="function"?de.default.useSyncExternalStore(OY,RY,IY):I.useContext(PY)}let LY=!!(typeof window<"u"&&window.document&&window.document.createElement),Ll=new Map,vd;typeof FinalizationRegistry<"u"&&(vd=new FinalizationRegistry(e=>{Ll.delete(e)}));function zr(e){let[t,n]=I.useState(e),r=I.useRef(null),i=MY(t),a=I.useRef(null);if(vd&&vd.register(a,i),LY){const o=Ll.get(i);o&&!o.includes(r)?o.push(r):Ll.set(i,[r])}return hn(()=>{let o=i;return()=>{vd&&vd.unregister(a),Ll.delete(o)}},[i]),I.useEffect(()=>{let o=r.current;return o&&n(o),()=>{o&&(r.current=null)}}),i}function VY(e,t){if(e===t)return e;let n=Ll.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=Ll.get(t);return r?(r.forEach(i=>i.current=e),e):t}function Zl(e=[]){let t=zr(),[n,r]=TY(t),i=I.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return hn(i,[t,i,...e]),n}function Ou(...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},ao=e=>e&&"window"in e&&e.window===e?e:Xt(e).defaultView||window;function NY(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function jY(e){return NY(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let KY=!1;function ym(){return KY}function Sn(e,t){if(!ym())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:jY(n)?n=n.host:n=n.parentNode}return!1}const ir=(e=document)=>{var t;if(!ym())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 ym()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class zY{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 o=r,s=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=i,this._currentSetFor.add(s),r=i=o.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 o=this.lastChild();return o&&(this.currentNode=o),o}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=o=>{if(o.nodeType===Node.ELEMENT_NODE){const l=o.shadowRoot;if(l){const f=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(f),NodeFilter.FILTER_ACCEPT}else{var s;if(typeof this.filter=="function")return this.filter(o);if(!((s=this.filter)===null||s===void 0)&&s.acceptNode)return this.filter.acceptNode(o);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 o=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(o)}}}function qY(e,t,n,r){return ym()?new zY(e,t,n,r):e.createTreeWalker(t,n,r)}function AP(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=AP(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function UY(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=AP(e))&&(r&&(r+=" "),r+=t);return r}function Qt(...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],o=r[i];typeof a=="function"&&typeof o=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=Ou(a,o):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof o=="string"?t[i]=UY(a,o):i==="id"&&a&&o?t.id=VY(a,o):t[i]=o!==void 0?o:a}}return t}const WY=new Set(["id"]),HY=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),GY=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),YY=new Set(["dir","lang","hidden","inert","translate"]),f2=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"]),ZY=/^(data-.*)$/;function Zo(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:o}=t,s={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(WY.has(l)||n&&HY.has(l)||r&&GY.has(l)||i&&YY.has(l)||a&&f2.has(l)||l.endsWith("Capture")&&f2.has(l.slice(0,-7))||o!=null&&o.has(l)||ZY.test(l))&&(s[l]=e[l]);return s}function wi(e){if(XY())e.focus({preventScroll:!0});else{let t=QY(e);e.focus(),JY(t)}}let ph=null;function XY(){if(ph==null){ph=!1;try{document.createElement("div").focus({get preventScroll(){return ph=!0,!0}})}catch{}}return ph}function QY(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 JY(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function bm(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 Eb(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 Xo(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const oo=Xo(function(){return Eb(/^Mac/i)}),eZ=Xo(function(){return Eb(/^iPhone/i)}),Cb=Xo(function(){return Eb(/^iPad/i)||oo()&&navigator.maxTouchPoints>1}),df=Xo(function(){return eZ()||Cb()}),Oh=Xo(function(){return oo()||df()}),wb=Xo(function(){return bm(/AppleWebKit/i)&&!Ab()}),Ab=Xo(function(){return bm(/Chrome/i)}),Sb=Xo(function(){return bm(/Android/i)}),tZ=Xo(function(){return bm(/Firefox/i)}),nZ=I.createContext({isNative:!0,open:iZ,useHref:e=>e});function xm(){return I.useContext(nZ)}function Au(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}=t;tZ()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(oo()?a=!0:o=!0);let f=wb()&&oo()&&!Cb()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});Au.isOpening=n,wi(e),e.dispatchEvent(f),Au.isOpening=!1}Au.isOpening=!1;function rZ(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 iZ(e,t){rZ(e,n=>Au(n,t))}function aZ(e){let t=xm();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 gs=new Map,f3=new Set;function h2(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=gs.get(r.target);i||(i=new Set,gs.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=gs.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),gs.delete(r.target)),gs.size===0)){for(let a of f3)a();f3.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?h2():document.addEventListener("DOMContentLoaded",h2));function oZ(){for(const[e]of gs)"isConnected"in e&&!e.isConnected&&gs.delete(e)}function SP(e){requestAnimationFrame(()=>{oZ(),gs.size===0?e():f3.add(e)})}function Ts(){let e=I.useRef(new Map),t=I.useCallback((i,a,o,s)=>{let l=s!=null&&s.once?(...f)=>{e.current.delete(o),o(...f)}:o;e.current.set(o,{type:a,eventTarget:i,fn:l,options:s}),i.addEventListener(a,l,s)},[]),n=I.useCallback((i,a,o,s)=>{var l;let f=((l=e.current.get(o))===null||l===void 0?void 0:l.fn)||o;i.removeEventListener(a,f,s),e.current.delete(o)},[]),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 Xl(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=zr(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 h3(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,o)=>!Object.is(a,i[o])))&&e(),r.current=t},t)}function p2(e,t){const n=I.useRef(!0),r=I.useRef(null);hn(()=>(n.current=!0,()=>{n.current=!1}),[]),hn(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function sZ(){return typeof window.ResizeObserver<"u"}function m2(e){const{ref:t,box:n,onResize:r}=e;I.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(sZ()){const a=new window.ResizeObserver(o=>{o.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 TP(e,t){hn(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Ql(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 Dm(e,t){let n=e;for(Ql(n,t)&&(n=n.parentElement);n&&!Ql(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function uZ(e,t){const n=[];for(;e&&e!==document.documentElement;)Ql(e,t)&&n.push(e),e=e.parentElement;return n}function $l(e){return oo()?e.metaKey:e.ctrlKey}const lZ=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function A4(e){return e instanceof HTMLInputElement&&!lZ.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let cZ=0;const S4=new Map;function fc(e){let[t,n]=I.useState();return hn(()=>{if(!e)return;let r=S4.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${cZ++}`;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},S4.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),S4.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function ba(e,t,n,r){let i=cn(n),a=n==null;I.useEffect(()=>{if(a||!e.current)return;let o=e.current;return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[e,t,r,a,i])}function PP(e,t){let n=g2(e,t,"left"),r=g2(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:f,scrollPaddingTop:h,scrollPaddingRight:m,scrollPaddingBottom:g,scrollPaddingLeft:b}=getComputedStyle(e),{scrollMarginTop:$,scrollMarginRight:x,scrollMarginBottom:A,scrollMarginLeft:w}=getComputedStyle(t),C=o+parseInt(f,10),E=s+parseInt(l,10),T=C+e.clientWidth,P=E+e.clientHeight,F=parseInt(h,10)||0,q=parseInt(g,10)||0,te=parseInt(m,10)||0,se=parseInt(b,10)||0,ae=parseInt($,10)||0,O=parseInt(A,10)||0,Ee=parseInt(x,10)||0,be=parseInt(w,10)||0,z=n-be,G=n+i+Ee,V=r-ae,R=r+a+O,K=o+parseInt(f,10)+se,fe=T-te,M=s+parseInt(l,10)+F,oe=P-q;if((z>K||G<fe)&&(z<=o+se?o=z-parseInt(f,10)-se:G>T-te&&(o+=G-T+te)),(V>M||R<oe)&&(V<=E+F?s=V-parseInt(l,10)-F:R>P-q&&(s+=R-P+q)),process.env.NODE_ENV==="test"){e.scrollLeft=o,e.scrollTop=s;return}e.scrollTo({left:o,top:s})}function g2(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 gp(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(o).overflow==="hidden")&&!Ab()){var n;let{left:l,top:f}=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(l-h)>1||Math.abs(f-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"})}}else{let l=uZ(e);for(let f of l)PP(f,e)}}}function p3(e){return e.pointerType===""&&e.isTrusted?!0:Sb()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function dZ(e){return!Sb()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function _P(e,t){let n=I.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function Tb(e,t,n){let r=cn(()=>{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 fZ="react-aria-clear-focus",hZ="react-aria-focus",pZ=typeof Element<"u"&&"checkVisibility"in Element.prototype;function mZ(e){const t=ao(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:o,visibility:s}=a(e);i=o!=="none"&&s!=="hidden"&&s!=="collapse"}return i}function gZ(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 Pb(e,t){return pZ?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&mZ(e)&&gZ(e,t)&&(!e.parentElement||Pb(e.parentElement,e))}const _b=["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"],vZ=_b.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";_b.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const yZ=_b.join(':not([hidden]):not([tabindex="-1"]),');function BP(e){return e.matches(vZ)&&Pb(e)&&!FP(e)}function bZ(e){return e.matches(yZ)&&Pb(e)&&!FP(e)}function FP(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function Ai(e,t,n){let[r,i]=I.useState(e||t),a=I.useRef(e!==void 0),o=e!==void 0;I.useEffect(()=>{let f=a.current;f!==o&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),a.current=o},[o]);let s=o?e:r,l=I.useCallback((f,...h)=>{let m=(g,...b)=>{n&&(Object.is(s,g)||n(g,...b)),o||(s=g)};typeof f=="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,...$)=>{let x=f(o?s:b,...$);return m(x,...h),o?b:x})):(o||i(f),m(f,...h))},[o,s,n]);return[s,l]}function Jl(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function mh(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 o=i.indexOf(".");o>=0&&(r=i.length-o)}if(r>0){let o=Math.pow(10,r);n=Math.round(n*o)/o}return n}function nd(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,a=mh(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(mh(n/r,r))*r):a<t?a=t:!isNaN(n)&&a>n&&(a=t+Math.floor(mh((n-t)/r,r))*r),a=mh(a,r),a}function Bb(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function kP(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function MP(e){let t=I.useRef({isFocused:!1,observer:null});hn(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=cn(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=o=>{if(t.current.isFocused=!1,i.disabled){let s=Bb(o);n(s)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let s=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let vp=!1;function v2(e){for(;e&&!BP(e);)e=e.parentElement;let t=ao(e),n=t.document.activeElement;if(!n||n===e)return;vp=!0;let r=!1,i=h=>{(h.target===n||r)&&h.stopImmediatePropagation()},a=h=>{(h.target===n||r)&&(h.stopImmediatePropagation(),!e&&!r&&(r=!0,wi(n),l()))},o=h=>{(h.target===e||r)&&h.stopImmediatePropagation()},s=h=>{(h.target===e||r)&&(h.stopImmediatePropagation(),r||(r=!0,wi(n),l()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",a,!0),t.addEventListener("focusin",s,!0),t.addEventListener("focus",o,!0);let l=()=>{cancelAnimationFrame(f),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",a,!0),t.removeEventListener("focusin",s,!0),t.removeEventListener("focus",o,!0),vp=!1,r=!1},f=requestAnimationFrame(l);return l}let wl="default",m3="",Lh=new WeakMap;function g3(e){if(df()){if(wl==="default"){const t=Xt(e);m3=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}wl="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Lh.set(e,e.style[t]),e.style[t]="none"}}function Vh(e){if(df()){if(wl!=="disabled")return;wl="restoring",setTimeout(()=>{SP(()=>{if(wl==="restoring"){const t=Xt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=m3||""),m3="",wl="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Lh.has(e)){let t=Lh.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Lh.delete(e)}}const Fb=de.default.createContext({register:()=>{}});Fb.displayName="PressResponderContext";function xZ(e,t){return t.get?t.get.call(e):t.value}function RP(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function DZ(e,t){var n=RP(e,t,"get");return xZ(e,n)}function $Z(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ff(e,t,n){$Z(e,t),t.set(e,n)}function EZ(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 y2(e,t,n){var r=RP(e,t,"set");return EZ(e,r,n),n}function CZ(e){let t=I.useContext(Fb);if(t){let{register:n,...r}=t;e=Qt(r,e),n()}return TP(t,e.ref),e}var gh=new WeakMap;class vh{continuePropagation(){y2(this,gh,!1)}get shouldStopPropagation(){return DZ(this,gh)}constructor(t,n,r,i){ff(this,gh,{writable:!0,value:void 0}),y2(this,gh,!0);var a;let o=(a=i==null?void 0:i.target)!==null&&a!==void 0?a:r.currentTarget;const s=o==null?void 0:o.getBoundingClientRect();let l,f=0,h,m=null;r.clientX!=null&&r.clientY!=null&&(h=r.clientX,m=r.clientY),s&&(h!=null&&m!=null?(l=h-s.left,f=m-s.top):(l=s.width/2,f=s.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=f}}const b2=Symbol("linkClicked"),x2="react-aria-pressable-style",D2="data-react-aria-pressable";function hf(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:o,isDisabled:s,isPressed:l,preventFocusOnPress:f,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:m,ref:g,...b}=CZ(e),[$,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:w,removeAllGlobalListeners:C}=Ts(),E=cn((O,Ee)=>{let be=A.current;if(s||be.didFirePressStart)return!1;let z=!0;if(be.isTriggeringEvent=!0,r){let G=new vh("pressstart",Ee,O);r(G),z=G.shouldStopPropagation}return n&&n(!0),be.isTriggeringEvent=!1,be.didFirePressStart=!0,x(!0),z}),T=cn((O,Ee,be=!0)=>{let z=A.current;if(!z.didFirePressStart)return!1;z.didFirePressStart=!1,z.isTriggeringEvent=!0;let G=!0;if(i){let V=new vh("pressend",Ee,O);i(V),G=V.shouldStopPropagation}if(n&&n(!1),x(!1),t&&be&&!s){let V=new vh("press",Ee,O);t(V),G&&(G=V.shouldStopPropagation)}return z.isTriggeringEvent=!1,G}),P=cn((O,Ee)=>{let be=A.current;if(s)return!1;if(a){be.isTriggeringEvent=!0;let z=new vh("pressup",Ee,O);return a(z),be.isTriggeringEvent=!1,z.shouldStopPropagation}return!0}),F=cn(O=>{let Ee=A.current;if(Ee.isPressed&&Ee.target){Ee.didFirePressStart&&Ee.pointerType!=null&&T(nu(Ee.target,O),Ee.pointerType,!1),Ee.isPressed=!1,Ee.isOverTarget=!1,Ee.activePointerId=null,Ee.pointerType=null,C(),m||Vh(Ee.target);for(let be of Ee.disposables)be();Ee.disposables=[]}}),q=cn(O=>{h&&F(O)}),te=cn(O=>{s||o==null||o(O)}),se=cn((O,Ee)=>{if(!s&&o){let be=new MouseEvent("click",O);kP(be,Ee),o(Bb(be))}}),ae=I.useMemo(()=>{let O=A.current,Ee={onKeyDown(z){if(T4(z.nativeEvent,z.currentTarget)&&Sn(z.currentTarget,tn(z.nativeEvent))){var G;C2(tn(z.nativeEvent),z.key)&&z.preventDefault();let V=!0;if(!O.isPressed&&!z.repeat){O.target=z.currentTarget,O.isPressed=!0,O.pointerType="keyboard",V=E(z,"keyboard");let R=z.currentTarget,K=fe=>{T4(fe,R)&&!fe.repeat&&Sn(R,tn(fe))&&O.target&&P(nu(O.target,fe),"keyboard")};w(Xt(z.currentTarget),"keyup",Ou(K,be),!0)}V&&z.stopPropagation(),z.metaKey&&oo()&&((G=O.metaKeyEvents)===null||G===void 0||G.set(z.key,z.nativeEvent))}else z.key==="Meta"&&(O.metaKeyEvents=new Map)},onClick(z){if(!(z&&!Sn(z.currentTarget,tn(z.nativeEvent)))&&z&&z.button===0&&!O.isTriggeringEvent&&!Au.isOpening){let G=!0;if(s&&z.preventDefault(),!O.ignoreEmulatedMouseEvents&&!O.isPressed&&(O.pointerType==="virtual"||p3(z.nativeEvent))){let V=E(z,"virtual"),R=P(z,"virtual"),K=T(z,"virtual");te(z),G=V&&R&&K}else if(O.isPressed&&O.pointerType!=="keyboard"){let V=O.pointerType||z.nativeEvent.pointerType||"virtual",R=P(nu(z.currentTarget,z),V),K=T(nu(z.currentTarget,z),V,!0);G=R&&K,O.isOverTarget=!1,te(z),F(z)}O.ignoreEmulatedMouseEvents=!1,G&&z.stopPropagation()}}},be=z=>{var G;if(O.isPressed&&O.target&&T4(z,O.target)){var V;C2(tn(z),z.key)&&z.preventDefault();let K=tn(z),fe=Sn(O.target,tn(z));T(nu(O.target,z),"keyboard",fe),fe&&se(z,O.target),C(),z.key!=="Enter"&&kb(O.target)&&Sn(O.target,K)&&!z[b2]&&(z[b2]=!0,Au(O.target,z,!1)),O.isPressed=!1,(V=O.metaKeyEvents)===null||V===void 0||V.delete(z.key)}else if(z.key==="Meta"&&(!((G=O.metaKeyEvents)===null||G===void 0)&&G.size)){var R;let K=O.metaKeyEvents;O.metaKeyEvents=void 0;for(let fe of K.values())(R=O.target)===null||R===void 0||R.dispatchEvent(new KeyboardEvent("keyup",fe))}};if(typeof PointerEvent<"u"){Ee.onPointerDown=V=>{if(V.button!==0||!Sn(V.currentTarget,tn(V.nativeEvent)))return;if(dZ(V.nativeEvent)){O.pointerType="virtual";return}O.pointerType=V.pointerType;let R=!0;if(!O.isPressed){O.isPressed=!0,O.isOverTarget=!0,O.activePointerId=V.pointerId,O.target=V.currentTarget,m||g3(O.target),R=E(V,O.pointerType);let K=tn(V.nativeEvent);"releasePointerCapture"in K&&K.releasePointerCapture(V.pointerId),w(Xt(V.currentTarget),"pointerup",z,!1),w(Xt(V.currentTarget),"pointercancel",G,!1)}R&&V.stopPropagation()},Ee.onMouseDown=V=>{if(Sn(V.currentTarget,tn(V.nativeEvent))&&V.button===0){if(f){let R=v2(V.target);R&&O.disposables.push(R)}V.stopPropagation()}},Ee.onPointerUp=V=>{!Sn(V.currentTarget,tn(V.nativeEvent))||O.pointerType==="virtual"||V.button===0&&!O.isPressed&&P(V,O.pointerType||V.pointerType)},Ee.onPointerEnter=V=>{V.pointerId===O.activePointerId&&O.target&&!O.isOverTarget&&O.pointerType!=null&&(O.isOverTarget=!0,E(nu(O.target,V),O.pointerType))},Ee.onPointerLeave=V=>{V.pointerId===O.activePointerId&&O.target&&O.isOverTarget&&O.pointerType!=null&&(O.isOverTarget=!1,T(nu(O.target,V),O.pointerType,!1),q(V))};let z=V=>{if(V.pointerId===O.activePointerId&&O.isPressed&&V.button===0&&O.target){if(Sn(O.target,tn(V))&&O.pointerType!=null){let R=!1,K=setTimeout(()=>{O.isPressed&&O.target instanceof HTMLElement&&(R?F(V):(wi(O.target),O.target.click()))},80);w(V.currentTarget,"click",()=>R=!0,!0),O.disposables.push(()=>clearTimeout(K))}else F(V);O.isOverTarget=!1}},G=V=>{F(V)};Ee.onDragStart=V=>{Sn(V.currentTarget,tn(V.nativeEvent))&&F(V)}}else if(process.env.NODE_ENV==="test"){Ee.onMouseDown=V=>{if(V.button!==0||!Sn(V.currentTarget,tn(V.nativeEvent)))return;if(O.ignoreEmulatedMouseEvents){V.stopPropagation();return}if(O.isPressed=!0,O.isOverTarget=!0,O.target=V.currentTarget,O.pointerType=p3(V.nativeEvent)?"virtual":"mouse",of.flushSync(()=>E(V,O.pointerType))&&V.stopPropagation(),f){let K=v2(V.target);K&&O.disposables.push(K)}w(Xt(V.currentTarget),"mouseup",z,!1)},Ee.onMouseEnter=V=>{if(!Sn(V.currentTarget,tn(V.nativeEvent)))return;let R=!0;O.isPressed&&!O.ignoreEmulatedMouseEvents&&O.pointerType!=null&&(O.isOverTarget=!0,R=E(V,O.pointerType)),R&&V.stopPropagation()},Ee.onMouseLeave=V=>{if(!Sn(V.currentTarget,tn(V.nativeEvent)))return;let R=!0;O.isPressed&&!O.ignoreEmulatedMouseEvents&&O.pointerType!=null&&(O.isOverTarget=!1,R=T(V,O.pointerType,!1),q(V)),R&&V.stopPropagation()},Ee.onMouseUp=V=>{Sn(V.currentTarget,tn(V.nativeEvent))&&!O.ignoreEmulatedMouseEvents&&V.button===0&&!O.isPressed&&P(V,O.pointerType||"mouse")};let z=V=>{if(V.button===0){if(O.ignoreEmulatedMouseEvents){O.ignoreEmulatedMouseEvents=!1;return}O.target&&O.target.contains(V.target)&&O.pointerType!=null||F(V),O.isOverTarget=!1}};Ee.onTouchStart=V=>{if(!Sn(V.currentTarget,tn(V.nativeEvent)))return;let R=wZ(V.nativeEvent);if(!R)return;O.activePointerId=R.identifier,O.ignoreEmulatedMouseEvents=!0,O.isOverTarget=!0,O.isPressed=!0,O.target=V.currentTarget,O.pointerType="touch",m||g3(O.target),E(ds(O.target,V),O.pointerType)&&V.stopPropagation(),w(ao(V.currentTarget),"scroll",G,!0)},Ee.onTouchMove=V=>{if(!Sn(V.currentTarget,tn(V.nativeEvent)))return;if(!O.isPressed){V.stopPropagation();return}let R=$2(V.nativeEvent,O.activePointerId),K=!0;R&&E2(R,V.currentTarget)?!O.isOverTarget&&O.pointerType!=null&&(O.isOverTarget=!0,K=E(ds(O.target,V),O.pointerType)):O.isOverTarget&&O.pointerType!=null&&(O.isOverTarget=!1,K=T(ds(O.target,V),O.pointerType,!1),q(ds(O.target,V))),K&&V.stopPropagation()},Ee.onTouchEnd=V=>{if(!Sn(V.currentTarget,tn(V.nativeEvent)))return;if(!O.isPressed){V.stopPropagation();return}let R=$2(V.nativeEvent,O.activePointerId),K=!0;R&&E2(R,V.currentTarget)&&O.pointerType!=null?(P(ds(O.target,V),O.pointerType),K=T(ds(O.target,V),O.pointerType),se(V.nativeEvent,O.target)):O.isOverTarget&&O.pointerType!=null&&(K=T(ds(O.target,V),O.pointerType,!1)),K&&V.stopPropagation(),O.isPressed=!1,O.activePointerId=null,O.isOverTarget=!1,O.ignoreEmulatedMouseEvents=!0,O.target&&!m&&Vh(O.target),C()},Ee.onTouchCancel=V=>{Sn(V.currentTarget,tn(V.nativeEvent))&&(V.stopPropagation(),O.isPressed&&F(ds(O.target,V)))};let G=V=>{O.isPressed&&Sn(tn(V),O.target)&&F({currentTarget:O.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};Ee.onDragStart=V=>{Sn(V.currentTarget,tn(V.nativeEvent))&&F(V)}}return Ee},[w,s,f,C,m,F,q,T,E,P,te,se]);return I.useEffect(()=>{if(!g||process.env.NODE_ENV==="test")return;const O=Xt(g.current);if(!O||!O.head||O.getElementById(x2))return;const Ee=O.createElement("style");Ee.id=x2,Ee.textContent=`
|
|
65
|
-
@layer {
|
|
66
|
-
[${D2}] {
|
|
67
|
-
touch-action: pan-x pan-y pinch-zoom;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
`.trim(),O.head.prepend(Ee)},[g]),I.useEffect(()=>{let O=A.current;return()=>{var Ee;m||Vh((Ee=O.target)!==null&&Ee!==void 0?Ee:void 0);for(let be of O.disposables)be();O.disposables=[]}},[m]),{isPressed:l||$,pressProps:Qt(b,ae,{[D2]:!0})}}function kb(e){return e.tagName==="A"&&e.hasAttribute("href")}function T4(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof ao(i).HTMLInputElement&&!IP(i,n)||i instanceof ao(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&kb(i))&&n!=="Enter")}function wZ(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function $2(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 ds(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 nu(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 AZ(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 SZ(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function E2(e,t){let n=t.getBoundingClientRect(),r=AZ(e);return SZ(n,r)}function TZ(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!kb(e)}function C2(e,t){return e instanceof HTMLInputElement?!IP(e,t):TZ(e)}const PZ=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function IP(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":PZ.has(e.type)}let zo=null,v3=new Set,Sd=new Map,Su=!1,y3=!1;function $m(e,t){for(let n of v3)n(e,t)}function _Z(e){return!(e.metaKey||!oo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function yp(e){Su=!0,_Z(e)&&(zo="keyboard",$m("keyboard",e))}function qi(e){zo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Su=!0,$m("pointer",e))}function OP(e){p3(e)&&(Su=!0,zo="virtual")}function LP(e){e.target===window||e.target===document||vp||!e.isTrusted||(!Su&&!y3&&(zo="virtual",$m("virtual",e)),Su=!1,y3=!1)}function VP(){vp||(Su=!1,y3=!0)}function b3(e){if(typeof window>"u"||typeof document>"u"||Sd.get(ao(e)))return;const t=ao(e),n=Xt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Su=!0,r.apply(this,arguments)},n.addEventListener("keydown",yp,!0),n.addEventListener("keyup",yp,!0),n.addEventListener("click",OP,!0),t.addEventListener("focus",LP,!0),t.addEventListener("blur",VP,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",qi,!0),n.addEventListener("pointermove",qi,!0),n.addEventListener("pointerup",qi,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",qi,!0),n.addEventListener("mousemove",qi,!0),n.addEventListener("mouseup",qi,!0)),t.addEventListener("beforeunload",()=>{NP(e)},{once:!0}),Sd.set(t,{focus:r})}const NP=(e,t)=>{const n=ao(e),r=Xt(e);t&&r.removeEventListener("DOMContentLoaded",t),Sd.has(n)&&(n.HTMLElement.prototype.focus=Sd.get(n).focus,r.removeEventListener("keydown",yp,!0),r.removeEventListener("keyup",yp,!0),r.removeEventListener("click",OP,!0),n.removeEventListener("focus",LP,!0),n.removeEventListener("blur",VP,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",qi,!0),r.removeEventListener("pointermove",qi,!0),r.removeEventListener("pointerup",qi,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",qi,!0),r.removeEventListener("mousemove",qi,!0),r.removeEventListener("mouseup",qi,!0)),Sd.delete(n))};function BZ(e){const t=Xt(e);let n;return t.readyState!=="loading"?b3(e):(n=()=>{b3(e)},t.addEventListener("DOMContentLoaded",n)),()=>NP(e,n)}typeof document<"u"&&BZ();function w2(){return zo!=="pointer"}function Nd(){return zo}function jP(e){zo=e,$m(e,null)}function FZ(){b3();let[e,t]=I.useState(zo);return I.useEffect(()=>{let n=()=>{t(zo)};return v3.add(n),()=>{v3.delete(n)}},[]),vm()?null:e}function Tu(e){const t=Xt(e),n=ir(t);if(Nd()==="virtual"){let r=n;SP(()=>{ir(t)===r&&e.isConnected&&wi(e)})}else wi(e)}function kZ(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=I.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),o=MP(a),s=I.useCallback(l=>{const f=Xt(l.target),h=f?ir(f):ir();l.target===l.currentTarget&&h===tn(l.nativeEvent)&&(n&&n(l),i&&i(!0),o(l))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?a:void 0}}}function A2(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 KP(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:A2(e.onKeyDown),onKeyUp:A2(e.onKeyUp)}}}let MZ=de.default.createContext(null);function RZ(e){let t=I.useContext(MZ)||{};TP(t,e);let{ref:n,...r}=t;return r}function Mb(e,t){let{focusProps:n}=kZ(e),{keyboardProps:r}=KP(e),i=Qt(n,r),a=RZ(t),o=e.isDisabled?{}:a,s=I.useRef(e.autoFocus);I.useEffect(()=>{s.current&&t.current&&Tu(t.current),s.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:Qt({...i,tabIndex:l},o)}}function IZ({children:e}){let t=I.useMemo(()=>({register:()=>{}}),[]);return de.default.createElement(Fb.Provider,{value:t},e)}function hc(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=I.useRef({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=Ts(),l=I.useCallback(m=>{m.currentTarget.contains(m.target)&&a.current.isFocusWithin&&!m.currentTarget.contains(m.relatedTarget)&&(a.current.isFocusWithin=!1,s(),n&&n(m),i&&i(!1))},[n,i,a,s]),f=MP(l),h=I.useCallback(m=>{if(!m.currentTarget.contains(m.target))return;const g=Xt(m.target),b=ir(g);if(!a.current.isFocusWithin&&b===tn(m.nativeEvent)){r&&r(m),i&&i(!0),a.current.isFocusWithin=!0,f(m);let $=m.currentTarget;o(g,"focus",x=>{if(a.current.isFocusWithin&&!Sn($,x.target)){let A=new g.defaultView.FocusEvent("blur",{relatedTarget:x.target});kP(A,$);let w=Bb(A);l(w)}},{capture:!0})}},[r,i,f,o,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:h,onBlur:l}}}let bp=!1,yh=0;function x3(){bp=!0,setTimeout(()=>{bp=!1},50)}function S2(e){e.pointerType==="touch"&&x3()}function OZ(){if(!(typeof document>"u"))return yh===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",S2):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",x3)),yh++,()=>{yh--,!(yh>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",S2):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",x3))}}function LZ(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=I.useState(!1),s=I.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;I.useEffect(OZ,[]);let{addGlobalListener:l,removeAllGlobalListeners:f}=Ts(),{hoverProps:h,triggerHoverEnd:m}=I.useMemo(()=>{let g=(x,A)=>{if(s.pointerType=A,i||A==="touch"||s.isHovered||!x.currentTarget.contains(x.target))return;s.isHovered=!0;let w=x.currentTarget;s.target=w,l(Xt(x.target),"pointerover",C=>{s.isHovered&&s.target&&!Sn(s.target,C.target)&&b(C,C.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:w,pointerType:A}),n&&n(!0),o(!0)},b=(x,A)=>{let w=s.target;s.pointerType="",s.target=null,!(A==="touch"||!s.isHovered||!w)&&(s.isHovered=!1,f(),r&&r({type:"hoverend",target:w,pointerType:A}),n&&n(!1),o(!1))},$={};return typeof PointerEvent<"u"?($.onPointerEnter=x=>{bp&&x.pointerType==="mouse"||g(x,x.pointerType)},$.onPointerLeave=x=>{!i&&x.currentTarget.contains(x.target)&&b(x,x.pointerType)}):process.env.NODE_ENV==="test"&&($.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},$.onMouseEnter=x=>{!s.ignoreEmulatedMouseEvents&&!bp&&g(x,"mouse"),s.ignoreEmulatedMouseEvents=!1},$.onMouseLeave=x=>{!i&&x.currentTarget.contains(x.target)&&b(x,"mouse")}),{hoverProps:$,triggerHoverEnd:b}},[t,n,r,i,s,l,f]);return I.useEffect(()=>{i&&m({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:h,isHovered:a}}function VZ(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=I.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=cn(l=>{n&&bh(l,t)&&(i&&i(l),a.current.isPointerDown=!0)}),s=cn(l=>{n&&n(l)});I.useEffect(()=>{let l=a.current;if(r)return;const f=t.current,h=Xt(f);if(typeof PointerEvent<"u"){let m=g=>{l.isPointerDown&&bh(g,t)&&s(g),l.isPointerDown=!1};return h.addEventListener("pointerdown",o,!0),h.addEventListener("click",m,!0),()=>{h.removeEventListener("pointerdown",o,!0),h.removeEventListener("click",m,!0)}}else if(process.env.NODE_ENV==="test"){let m=b=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&bh(b,t)&&s(b),l.isPointerDown=!1},g=b=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&bh(b,t)&&s(b),l.isPointerDown=!1};return h.addEventListener("mousedown",o,!0),h.addEventListener("mouseup",m,!0),h.addEventListener("touchstart",o,!0),h.addEventListener("touchend",g,!0),()=>{h.removeEventListener("mousedown",o,!0),h.removeEventListener("mouseup",m,!0),h.removeEventListener("touchstart",o,!0),h.removeEventListener("touchend",g,!0)}}},[t,r,o,s])}function bh(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 zP(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=I.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:o}=Ts(),s=cn((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}))}),l=cn((h,m)=>{Vh(),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=()=>{g3(),i.current.didMove=!1};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let b=w=>{if(w.button===0){var C,E,T,P;s(w,"mouse",w.pageX-((T=(C=i.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&T!==void 0?T:0),w.pageY-((P=(E=i.current.lastPosition)===null||E===void 0?void 0:E.pageY)!==null&&P!==void 0?P:0)),i.current.lastPosition={pageX:w.pageX,pageY:w.pageY}}},$=w=>{w.button===0&&(l(w,"mouse"),o(window,"mousemove",b,!1),o(window,"mouseup",$,!1))};h.onMouseDown=w=>{w.button===0&&(m(),w.stopPropagation(),w.preventDefault(),i.current.lastPosition={pageX:w.pageX,pageY:w.pageY},a(window,"mousemove",b,!1),a(window,"mouseup",$,!1))};let x=w=>{let C=[...w.changedTouches].findIndex(({identifier:q})=>q===i.current.id);if(C>=0){var E,T;let{pageX:q,pageY:te}=w.changedTouches[C];var P,F;s(w,"touch",q-((P=(E=i.current.lastPosition)===null||E===void 0?void 0:E.pageX)!==null&&P!==void 0?P:0),te-((F=(T=i.current.lastPosition)===null||T===void 0?void 0:T.pageY)!==null&&F!==void 0?F:0)),i.current.lastPosition={pageX:q,pageY:te}}},A=w=>{[...w.changedTouches].findIndex(({identifier:E})=>E===i.current.id)>=0&&(l(w,"touch"),i.current.id=null,o(window,"touchmove",x),o(window,"touchend",A),o(window,"touchcancel",A))};h.onTouchStart=w=>{if(w.changedTouches.length===0||i.current.id!=null)return;let{pageX:C,pageY:E,identifier:T}=w.changedTouches[0];m(),w.stopPropagation(),w.preventDefault(),i.current.lastPosition={pageX:C,pageY:E},i.current.id=T,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,w;let T=x.pointerType||"mouse";var C,E;s(x,T,x.pageX-((C=(A=i.current.lastPosition)===null||A===void 0?void 0:A.pageX)!==null&&C!==void 0?C:0),x.pageY-((E=(w=i.current.lastPosition)===null||w===void 0?void 0:w.pageY)!==null&&E!==void 0?E:0)),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY}}},$=x=>{if(x.pointerId===i.current.id){let A=x.pointerType||"mouse";l(x,A),i.current.id=null,o(window,"pointermove",b,!1),o(window,"pointerup",$,!1),o(window,"pointercancel",$,!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",$,!1),a(window,"pointercancel",$,!1))}}let g=(b,$,x)=>{m(),s(b,"keyboard",$,x),l(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,o,s,l])}}const NZ=500;function qP(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:a=NZ,accessibilityDescription:o}=e;const s=I.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:f}=Ts(),{pressProps:h}=hf({isDisabled:t,onPressStart(g){if(g.continuePropagation(),(g.pointerType==="mouse"||g.pointerType==="touch")&&(n&&n({...g,type:"longpressstart"}),s.current=setTimeout(()=>{g.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Xt(g.target).activeElement!==g.target&&wi(g.target),i&&i({...g,type:"longpress"}),s.current=void 0},a),g.pointerType==="touch")){let b=$=>{$.preventDefault()};l(g.target,"contextmenu",b,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{f(g.target,"contextmenu",b)},30)},{once:!0})}},onPressEnd(g){s.current&&clearTimeout(s.current),r&&(g.pointerType==="mouse"||g.pointerType==="touch")&&r({...g,type:"longpressend"})}}),m=fc(i&&!t?o:void 0);return{longPressProps:Qt(h,m)}}const jZ=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),KZ=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function zZ(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 jZ.has(n.script)}let t=e.split("-")[0];return KZ.has(t)}const qZ=Symbol.for("react-aria.i18n.locale");function UP(){let e=typeof window<"u"&&window[qZ]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:zZ(e)?"rtl":"ltr"}}let D3=UP(),yd=new Set;function T2(){D3=UP();for(let e of yd)e(D3)}function UZ(){let e=vm(),[t,n]=I.useState(D3);return I.useEffect(()=>(yd.size===0&&window.addEventListener("languagechange",T2),yd.add(n),()=>{yd.delete(n),yd.size===0&&window.removeEventListener("languagechange",T2)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const WZ=de.default.createContext(null);function _r(){let e=UZ();return I.useContext(WZ)||e}const HZ=Symbol.for("react-aria.i18n.locale"),GZ=Symbol.for("react-aria.i18n.strings");let gl;class Ps{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=YZ(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[HZ];if(gl===void 0){let i=window[GZ];if(!i)return null;gl={};for(let a in i)gl[a]=new Ps({[n]:i[a]},n)}let r=gl==null?void 0:gl[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 YZ(e,t,n="en-US"){if(t[e])return t[e];let r=ZZ(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function ZZ(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const P2=new Map,_2=new Map;class WP{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,o=P2.get(a);o||(o=new Intl.PluralRules(this.locale,{type:r}),P2.set(a,o));let s=o.select(t);return i=n[s]||n.other,typeof i=="function"?i():i}number(t){let n=_2.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),_2.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 B2=new WeakMap;function XZ(e){let t=B2.get(e);return t||(t=new Ps(e),B2.set(e,t)),t}function HP(e,t){return t&&Ps.getGlobalDictionaryForPackage(t)||XZ(e)}function Ta(e,t){let{locale:n}=_r(),r=HP(e,t);return I.useMemo(()=>new WP(n,r),[n,r])}function Vl(e,t){return e-t*Math.floor(e/t)}const GP=1721426;function cu(e,t,n,r){t=pf(e,t);let i=t-1,a=-2;return n<=2?a=0:Ds(t)&&(a=-1),GP-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function Ds(e){return e%4===0&&(e%100!==0||e%400===0)}function pf(e,t){return e==="BC"?1-t:t}function Em(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const QZ={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 Ur{fromJulianDay(t){let n=t,r=n-GP,i=Math.floor(r/146097),a=Vl(r,146097),o=Math.floor(a/36524),s=Vl(a,36524),l=Math.floor(s/1461),f=Vl(s,1461),h=Math.floor(f/365),m=i*400+o*100+l*4+h+(o!==4&&h!==4?1:0),[g,b]=Em(m),$=n-cu(g,b,1,1),x=2;n<cu(g,b,3,1)?x=0:Ds(b)&&(x=1);let A=Math.floor((($+x)*12+373)/367),w=n-cu(g,b,A,1)+1;return new Gn(g,b,A,w)}toJulianDay(t){return cu(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return QZ[Ds(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Ds(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 JZ={"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 er(e,t){return t=kn(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function $3(e,t){return Cm(e.calendar,t.calendar)&&er(e,t)}function Cm(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 YP(e,t){return er(e,wm(t))}const eX={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function Rb(e,t,n){let r=e.calendar.toJulianDay(e),i=n?eX[n]:oX(t),a=Math.ceil(r+1-i)%7;return a<0&&(a+=7),a}function ZP(e){return Oo(Date.now(),e)}function wm(e){return qr(ZP(e))}function XP(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function QP(e,t){return F2(e)-F2(t)}function F2(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let P4=null;function mf(){return P4==null&&(P4=new Intl.DateTimeFormat().resolvedOptions().timeZone),P4}function gf(e){return e.subtract({days:e.day-1})}function E3(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function tX(e){return gf(e.subtract({months:e.month-1}))}function nX(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function rX(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function jd(e,t,n){let r=Rb(e,t,n);return e.subtract({days:r})}function iX(e,t,n){return jd(e,t,n).add({days:6})}const k2=new Map,_4=new Map;function aX(e){if(Intl.Locale){let n=k2.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&k2.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function oX(e){let t=_4.get(e);if(!t){if(Intl.Locale){let r=new Intl.Locale(e);if("getWeekInfo"in r&&(t=r.getWeekInfo(),t))return _4.set(e,t),t.firstDay}let n=aX(e);if(e.includes("-fw-")){let r=e.split("-fw-")[1].split("-")[0];r==="mon"?t={firstDay:1}:r==="tue"?t={firstDay:2}:r==="wed"?t={firstDay:3}:r==="thu"?t={firstDay:4}:r==="fri"?t={firstDay:5}:r==="sat"?t={firstDay:6}:t={firstDay:0}}else e.includes("-ca-iso8601")?t={firstDay:1}:t={firstDay:n&&JZ[n]||0};_4.set(e,t)}return t.firstDay}function JP(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((Rb(gf(e),t,n)+r)/7)}function Ib(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function Ob(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function ec(e){e=kn(e,new Ur);let t=pf(e.era,e.year);return e7(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function e7(e,t,n,r,i,a,o){let s=new Date;return s.setUTCHours(r,i,a,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function C3(e,t){if(t==="UTC")return 0;if(e>0&&t===mf())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=t7(e,t);return e7(n,r,i,a,o,s,0)-Math.floor(e/1e3)*1e3}const M2=new Map;function t7(e,t){let n=M2.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"}),M2.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 R2=864e5;function sX(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>uX(e,t,a))}function uX(e,t,n){let r=t7(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 Io(e,t,n="compatible"){let r=Ea(e);if(t==="UTC")return ec(r);if(t===mf()&&n==="compatible"){r=kn(r,new Ur);let l=new Date,f=pf(r.era,r.year);return l.setFullYear(f,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=ec(r),a=C3(i-R2,t),o=C3(i+R2,t),s=sX(r,t,i-a,i-o);if(s.length===1)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-o);case"compatible":case"later":return Math.max(i-a,i-o);case"reject":throw new RangeError("No such absolute time found")}}function n7(e,t,n="compatible"){return new Date(Io(e,t,n))}function Oo(e,t){let n=C3(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),f=r.getUTCSeconds(),h=r.getUTCMilliseconds();return new qd(i<1?"BC":"AD",i<1?-i+1:i,a,o,t,n,s,l,f,h)}function qr(e){return new Gn(e.calendar,e.era,e.year,e.month,e.day)}function Ea(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 zd(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function I2(e){return new vf(e.hour,e.minute,e.second,e.millisecond)}function kn(e,t){if(Cm(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,Pu(r),r}function r7(e,t,n){if(e instanceof qd)return e.timeZone===t?e:cX(e,t);let r=Io(e,t,n);return Oo(r,t)}function lX(e){let t=ec(e)-e.offset;return new Date(t)}function cX(e,t){let n=ec(e)-e.offset;return kn(Oo(n,t),e.calendar)}const rd=36e5;function Am(e,t){let n=e.copy(),r="hour"in n?s7(n,t):0;w3(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,A3(n),i7(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,dX(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,o;let l=(a=(o=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(o,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function w3(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function A3(e){for(;e.month<1;)w3(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,w3(e,1)}function dX(e){for(;e.day<1;)e.month--,A3(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,A3(e)}function i7(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 Pu(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),i7(e)}function Lb(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function a7(e,t){return Am(e,Lb(t))}function Vb(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),Pu(n),n}function Kd(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),o7(n),n}function fX(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=xh(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=xh(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=xh(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=xh(e.hour,24),t}function o7(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 xh(e,t){let n=e%t;return n<0&&(n+=t),n}function s7(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,fX(e)}function u7(e,t){let n=e.copy();return s7(n,t),n}function hX(e,t){return u7(e,Lb(t))}function Nb(e,t,n,r){let i=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),l=s.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=Lo(l,n,0,s.length-1,r==null?void 0:r.round),i.era=s[l],Pu(i);break}case"year":var a,o;!((a=(o=i.calendar).isInverseEra)===null||a===void 0)&&a.call(o,i)&&(n=-n),i.year=Lo(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=Lo(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=Lo(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),Pu(i),i}function jb(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,o=0,s=23;if((r==null?void 0:r.hourCycle)===12){let l=a>=12;o=l?12:0,s=l?23:11}i.hour=Lo(a,n,o,s,r==null?void 0:r.round);break}case"minute":i.minute=Lo(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=Lo(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=Lo(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function Lo(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 l7(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=Am(Ea(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Io(i,e.timeZone)}else n=ec(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Oo(n,e.timeZone);return kn(r,e.calendar)}function pX(e,t){return l7(e,Lb(t))}function mX(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if((r==null?void 0:r.hourCycle)===12){let $=e.hour>=12;i=$?12:0,a=$?23:11}let o=Ea(e),s=kn(Kd(o,{hour:i}),new Ur),l=[Io(s,e.timeZone,"earlier"),Io(s,e.timeZone,"later")].filter($=>Oo($,e.timeZone).day===s.day)[0],f=kn(Kd(o,{hour:a}),new Ur),h=[Io(f,e.timeZone,"earlier"),Io(f,e.timeZone,"later")].filter($=>Oo($,e.timeZone).day===f.day).pop(),m=ec(e)-e.offset,g=Math.floor(m/rd),b=m%rd;return m=Lo(g,n,Math.floor(l/rd),Math.floor(h/rd),r==null?void 0:r.round)*rd+b,kn(Oo(m,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return jb(e,t,n,r);case"era":case"year":case"month":case"day":{let i=Nb(Ea(e),t,n,r),a=Io(i,e.timeZone);return kn(Oo(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function gX(e,t,n){let r=Ea(e),i=Kd(Vb(r,t),t);if(i.compare(r)===0)return e;let a=Io(i,e.timeZone,n);return kn(Oo(a,e.timeZone),e.calendar)}const vX=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,yX=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function bX(e){let t=e.match(vX);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new Gn(Ha(t[1],0,9999),Ha(t[2],1,12),1);return n.day=Ha(t[3],1,n.calendar.getDaysInMonth(n)),n}function xX(e){let t=e.match(yX);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=Ha(t[1],-9999,9999),r=n<1?"BC":"AD",i=new zd(r,n<1?-n+1:n,Ha(t[2],1,12),1,t[4]?Ha(t[4],0,23):0,t[5]?Ha(t[5],0,59):0,t[6]?Ha(t[6],0,59):0,t[7]?Ha(t[7],0,1/0)*1e3:0);return i.day=Ha(t[3],0,i.calendar.getDaysInMonth(i)),i}function Ha(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 c7(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 d7(e){let t=kn(e,new Ur),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 f7(e){return`${d7(e)}T${c7(e)}`}function DX(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=Math.floor(e%36e5/6e4),i=Math.floor(e%36e5%6e4/1e3),a=`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`;return i!==0&&(a+=`:${String(i).padStart(2,"0")}`),a}function $X(e){return`${f7(e)}${DX(e.offset)}[${e.timeZone}]`}function Kb(e){let t=typeof e[0]=="object"?e.shift():new Ur,n;if(typeof e[0]=="string")n=e.shift();else{let o=t.getEras();n=o[o.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var EX=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 Am(this,t)}subtract(t){return a7(this,t)}set(t){return Vb(this,t)}cycle(t,n,r){return Nb(this,t,n,r)}toDate(t){return n7(this,t)}toString(){return d7(this)}compare(t){return XP(this,t)}constructor(...t){ff(this,EX,{writable:!0,value:void 0});let[n,r,i,a,o]=Kb(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,Pu(this)}}var CX=new WeakMap;class vf{copy(){return new vf(this.hour,this.minute,this.second,this.millisecond)}add(t){return u7(this,t)}subtract(t){return hX(this,t)}set(t){return Kd(this,t)}cycle(t,n,r){return jb(this,t,n,r)}toString(){return c7(this)}compare(t){return QP(this,t)}constructor(t=0,n=0,r=0,i=0){ff(this,CX,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,o7(this)}}var wX=new WeakMap;class zd{copy(){return this.era?new zd(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new zd(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Am(this,t)}subtract(t){return a7(this,t)}set(t){return Vb(Kd(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Nb(this,t,n,r);default:return jb(this,t,n,r)}}toDate(t,n){return n7(this,t,n)}toString(){return f7(this)}compare(t){let n=XP(this,t);return n===0?QP(this,Ea(t)):n}constructor(...t){ff(this,wX,{writable:!0,value:void 0});let[n,r,i,a,o]=Kb(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Pu(this)}}var AX=new WeakMap;class qd{copy(){return this.era?new qd(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new qd(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return l7(this,t)}subtract(t){return pX(this,t)}set(t,n){return gX(this,t,n)}cycle(t,n,r){return mX(this,t,n,r)}toDate(){return lX(this)}toString(){return $X(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-r7(t,this.timeZone).toDate().getTime()}constructor(...t){ff(this,AX,{writable:!0,value:void 0});let[n,r,i,a,o]=Kb(t),s=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.timeZone=s,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Pu(this)}}const Nl=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],SX=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Nh=[1867,1911,1925,1988,2018],ms=["meiji","taisho","showa","heisei","reiwa"];function O2(e){const t=Nl.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?Nl.length-1:t===0?0:t-1}function B4(e){let t=Nh[ms.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Gn(e.year+t,e.month,e.day)}class TX extends Ur{fromJulianDay(t){let n=super.fromJulianDay(t),r=O2(n);return new Gn(this,ms[r],n.year-Nh[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(B4(t))}balanceDate(t){let n=B4(t),r=O2(n);ms[r]!==t.era&&(t.era=ms[r],t.year=n.year-Nh[r]),this.constrainDate(t)}constrainDate(t){let n=ms.indexOf(t.era),r=SX[n];if(r!=null){let[i,a,o]=r,s=i-Nh[n];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(o,t.day)))}if(t.year===1&&n>=0){let[,i,a]=Nl[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return ms}getYearsInEra(t){let n=ms.indexOf(t.era),r=Nl[n],i=Nl[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(B4(t))}getMinimumMonthInYear(t){let n=L2(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=L2(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function L2(e){if(e.year===1){let t=ms.indexOf(e.era);return Nl[t]}}const h7=-543;class PX extends Ur{fromJulianDay(t){let n=super.fromJulianDay(t),r=pf(n.era,n.year);return new Gn(this,r-h7,n.month,n.day)}toJulianDay(t){return super.toJulianDay(V2(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(V2(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function V2(e){let[t,n]=Em(e.year+h7);return new Gn(t,n,e.month,e.day)}const xp=1911;function p7(e){return e.era==="minguo"?e.year+xp:1-e.year+xp}function N2(e){let t=e-xp;return t>0?["minguo",t]:["before_minguo",1-t]}class _X extends Ur{fromJulianDay(t){let n=super.fromJulianDay(t),r=pf(n.era,n.year),[i,a]=N2(r);return new Gn(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(j2(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=N2(p7(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(j2(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-xp}constructor(...t){super(...t),this.identifier="roc"}}function j2(e){let[t,n]=Em(p7(e));return new Gn(t,n,e.month,e.day)}const K2=1948320,z2=[0,31,62,93,124,155,186,216,246,276,306,336];class BX{fromJulianDay(t){let n=t-K2,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,o=a<216?Math.floor(a/31):Math.floor((a-6)/30),s=a-z2[o]+1;return new Gn(this,r,o+1,s)}toJulianDay(t){let n=K2-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=z2[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Vl(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const F4=78,q2=80;class FX extends Ur{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-F4,i=t-cu(n.era,n.year,1,1),a;i<q2?(r--,a=Ds(n.year-1)?31:30,i+=a+155+90+10):(a=Ds(n.year)?31:30,i-=q2);let o,s;if(i<a)o=1,s=i+1;else{let l=i-a;l<155?(o=Math.floor(l/31)+2,s=l%31+1):(l-=155,o=Math.floor(l/30)+7,s=l%30+1)}return new Gn(this,r,o,s)}toJulianDay(t){let n=t.year+F4,[r,i]=Em(n),a,o;return Ds(i)?(a=31,o=cu(r,i,3,21)):(a=30,o=cu(r,i,3,22)),t.month===1?o+t.day-1:(o+=a+Math.min(t.month-2,5)*31,t.month>=8&&(o+=(t.month-7)*30),o+=t.day-1,o)}getDaysInMonth(t){return t.month===1&&Ds(t.year+F4)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Dp=1948440,U2=1948439,zi=1300,vl=1600,kX=460322;function $p(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function m7(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+$p(t,r,1,1)))/29.5)+1),a=n-$p(t,r,i,1)+1;return new Gn(e,r,i,a)}function W2(e){return(14+11*e)%30<11}class zb{fromJulianDay(t){return m7(this,Dp,t)}toJulianDay(t){return $p(Dp,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&W2(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return W2(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class MX extends zb{fromJulianDay(t){return m7(this,U2,t)}toJulianDay(t){return $p(U2,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const RX="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let S3,jl;function jh(e){return kX+jl[e-zi]}function bd(e,t){let n=e-zi,r=1<<11-(t-1);return(S3[n]&r)===0?29:30}function H2(e,t){let n=jh(e);for(let r=1;r<t;r++)n+=bd(e,r);return n}function G2(e){return jl[e+1-zi]-jl[e-zi]}class IX extends zb{fromJulianDay(t){let n=t-Dp,r=jh(zi),i=jh(vl);if(n<r||n>i)return super.fromJulianDay(t);{let a=zi-1,o=1,s=1;for(;s>0;){a++,s=n-jh(a)+1;let l=G2(a);if(s===l){o=12;break}else if(s<l){let f=bd(a,o);for(o=1;s>f;)s-=f,o++,f=bd(a,o);break}}return new Gn(this,a,o,n-H2(a,o)+1)}}toJulianDay(t){return t.year<zi||t.year>vl?super.toJulianDay(t):Dp+H2(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<zi||t.year>vl?super.getDaysInMonth(t):bd(t.year,t.month)}getDaysInYear(t){return t.year<zi||t.year>vl?super.getDaysInYear(t):G2(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",S3||(S3=new Uint16Array(Uint8Array.from(atob(RX),t=>t.charCodeAt(0)).buffer)),!jl){jl=new Uint32Array(vl-zi+1);let t=0;for(let n=zi;n<=vl;n++){jl[n-zi]=t;for(let r=1;r<=12;r++)t+=bd(n,r)}}}}const Y2=347997,g7=1080,v7=24*g7,OX=29,LX=12*g7+793,VX=OX*v7+LX;function su(e){return Vl(e*7+1,19)<7}function Kh(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Vl(3*(r+1),7)<3&&(r+=1),r}function NX(e){let t=Kh(e-1),n=Kh(e);return Kh(e+1)-n===356?2:n-t===382?1:0}function Td(e){return Kh(e)+NX(e)}function y7(e){return Td(e+1)-Td(e)}function jX(e){let t=y7(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&&!su(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=jX(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?su(e)?30:0:30}class KX{fromJulianDay(t){let n=t-Y2,r=n*v7/VX,i=Math.floor((19*r+234)/235)+1,a=Td(i),o=Math.floor(n-a);for(;o<1;)i--,a=Td(i),o=Math.floor(n-a);let s=1,l=0;for(;l<o;)l+=Dh(i,s),s++;s--,l-=Dh(i,s);let f=o-l;return new Gn(this,i,s,f)}toJulianDay(t){let n=Td(t.year);for(let r=1;r<t.month;r++)n+=Dh(t.year,r);return n+t.day+Y2}getDaysInMonth(t){return Dh(t.year,t.month)}getMonthsInYear(t){return su(t.year)?13:12}getDaysInYear(t){return y7(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(su(n.year)&&!su(t.year)&&n.month>6?t.month--:!su(n.year)&&su(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const T3=1723856,Z2=1824665,P3=5500;function Ep(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function qb(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Ep(e,n,1,1))/30),i=t+1-Ep(e,n,r,1);return[n,r,i]}function b7(e){return Math.floor(e%4/3)}function x7(e,t){return t%13!==0?30:b7(e)+5}class Ub{fromJulianDay(t){let[n,r,i]=qb(T3,t),a="AM";return n<=0&&(a="AA",n+=P3),new Gn(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=P3),Ep(T3,n,t.month,t.day)}getDaysInMonth(t){return x7(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+b7(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class zX extends Ub{fromJulianDay(t){let[n,r,i]=qb(T3,t);return n+=P3,new Gn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class qX extends Ub{fromJulianDay(t){let[n,r,i]=qb(Z2,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),Ep(Z2,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),x7(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 UX(e){switch(e){case"buddhist":return new PX;case"ethiopic":return new Ub;case"ethioaa":return new zX;case"coptic":return new qX;case"hebrew":return new KX;case"indian":return new FX;case"islamic-civil":return new zb;case"islamic-tbla":return new MX;case"islamic-umalqura":return new IX;case"japanese":return new TX;case"persian":return new BX;case"roc":return new _X;case"gregory":default:return new Ur}}let k4=new Map;class Gi{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 GX()&&(this.resolvedHourCycle||(this.resolvedHourCycle=YX(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=D7(t,n),this.options=n}}const WX={true:{ja:"h11"},false:{}};function D7(e,t={}){if(typeof t.hour12=="boolean"&&HX()){t={...t};let i=WX[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(k4.has(n))return k4.get(n);let r=new Intl.DateTimeFormat(e,t);return k4.set(n,r),r}let M4=null;function HX(){return M4==null&&(M4=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),M4}let R4=null;function GX(){return R4==null&&(R4=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),R4}function YX(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=D7(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=_P(e??{},ZX);let{locale:t}=_r();return I.useMemo(()=>new Gi(t,e),[t,e])}function ZX(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 I4=new Map,_3=!1;try{_3=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Cp=!1;try{Cp=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const $7={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class E7{format(t){let n="";if(!_3&&this.options.signDisplay!=null?n=QX(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Cp){var r;let{unit:i,unitDisplay:a="short",locale:o}=this.resolvedOptions();if(!i)return n;let s=(r=$7[i])===null||r===void 0?void 0:r[a];n+=s[o]||s.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!_3&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Cp&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=XX(t,n),this.options=n}}function XX(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Cp){var r;let{unit:o,unitDisplay:s="short"}=t;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=$7[o])===null||r===void 0)&&r[s]))throw new Error(`Unsupported unit ${o} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((o,s)=>o[0]<s[0]?-1:1).join():"");if(I4.has(i))return I4.get(i);let a=new Intl.NumberFormat(e,t);return I4.set(i,a),a}function QX(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),o=i.replace(a,"").replace(/\u200e|\u061C/,"");return[...o].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(a,"!!!").replace(o,"+").replace("!!!",a)}else return e.format(n)}}const JX=new RegExp("^.*\\(.*\\).*$"),eQ=["latn","arab","hanidec","deva","beng","fullwide"];class C7{parse(t){return O4(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return O4(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return O4(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const X2=new Map;function O4(e,t,n){let r=Q2(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of eQ)if(i!==r.options.numberingSystem){let a=Q2(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(a.isValidPartialNumber(n))return a}}return r}function Q2(e,t){let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():""),r=X2.get(n);return r||(r=new tQ(e,t),X2.set(n,r)),r}class tQ{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=yl(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 o=n.indexOf("-");n=n.replace("-",""),n=n.replace("+","");let s=n.indexOf(".");s===-1&&(s=n.length),n=n.replace(".",""),s-2===0?n=`0.${n}`:s-2===-1?n=`0.0${n}`:s-2===-2?n="0.00":n=`${n.slice(0,s-2)}.${n.slice(s-2)}`,o>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,a;let o={...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 C7(this.locale,o).parse(new E7(this.locale,o).format(r))}return this.options.currencySign==="accounting"&&JX.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=yl(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&(t=yl(t,"'",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&(t=yl(t," ",this.symbols.group),t=yl(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=yl(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=rQ(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 J2=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),nQ=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function rQ(e,t,n,r){var i,a,o,s;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),f=l.formatToParts(-10000.111),h=l.formatToParts(10000.111),m=nQ.map(ae=>l.formatToParts(ae));var g;let b=(g=(i=f.find(ae=>ae.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&g!==void 0?g:"-",$=(a=h.find(ae=>ae.type==="plusSign"))===null||a===void 0?void 0:a.value;!$&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&($="+");let A=(o=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(ae=>ae.type==="decimal"))===null||o===void 0?void 0:o.value,w=(s=f.find(ae=>ae.type==="group"))===null||s===void 0?void 0:s.value,C=f.filter(ae=>!J2.has(ae.type)).map(ae=>ew(ae.value)),E=m.flatMap(ae=>ae.filter(O=>!J2.has(O.type)).map(O=>ew(O.value))),T=[...new Set([...C,...E])].sort((ae,O)=>O.length-ae.length),P=T.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${T.join("|")}|[\\p{White_Space}]`,"gu"),F=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),q=new Map(F.map((ae,O)=>[ae,O])),te=new RegExp(`[${F.join("")}]`,"g");return{minusSign:b,plusSign:$,decimal:A,group:w,literals:P,numeral:te,index:ae=>String(q.get(ae))}}function yl(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function ew(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function iQ(e={}){let{locale:t}=_r();return I.useMemo(()=>new E7(t,e),[t,e])}let L4=new Map;function w7(e){let{locale:t}=_r(),n=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(L4.has(n))return L4.get(n);let r=new Intl.Collator(t,e);return L4.set(n,r),r}function A7(e){let t=w7({usage:"search",...e}),n=I.useCallback((a,o)=>o.length===0?!0:(a=a.normalize("NFC"),o=o.normalize("NFC"),t.compare(a.slice(0,o.length),o)===0),[t]),r=I.useCallback((a,o)=>o.length===0?!0:(a=a.normalize("NFC"),o=o.normalize("NFC"),t.compare(a.slice(-o.length),o)===0),[t]),i=I.useCallback((a,o)=>{if(o.length===0)return!0;a=a.normalize("NFC"),o=o.normalize("NFC");let s=0,l=o.length;for(;s+l<=a.length;s++){let f=a.slice(s,s+l);if(t.compare(o,f)===0)return!0}return!1},[t]);return I.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function aQ(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:l,preventFocusOnPress:f,allowFocusWhenDisabled:h,onClick:m,href:g,target:b,rel:$,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"?$:void 0};let{pressProps:w,isPressed:C}=hf({onPressStart:a,onPressEnd:o,onPressChange:l,onPress:i,onPressUp:s,onClick:m,isDisabled:r,preventFocusOnPress:f,ref:t}),{focusableProps:E}=Mb(e,t);h&&(E.tabIndex=r?-1:E.tabIndex);let T=Qt(E,w,Zo(e,{labelable:!0}));return{isPressed:C,buttonProps:Qt(A,T,{"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"],"aria-disabled":e["aria-disabled"]})}}const tw=de.default.createContext(null),B3="react-aria-focus-scope-restore";let gn=null;function oQ(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=I.useRef(null),o=I.useRef(null),s=I.useRef([]),{parentNode:l}=I.useContext(tw)||{},f=I.useMemo(()=>new k3({scopeRef:s}),[s]);hn(()=>{let g=l||Qn.root;if(Qn.getTreeNode(g.scopeRef)&&gn&&!wp(gn,g.scopeRef)){let b=Qn.getTreeNode(gn);b&&(g=b)}g.addChild(f),Qn.addNode(f)},[f,l]),hn(()=>{let g=Qn.getTreeNode(s);g&&(g.contain=!!n)},[n]),hn(()=>{var g;let b=(g=a.current)===null||g===void 0?void 0:g.nextSibling,$=[],x=A=>A.stopPropagation();for(;b&&b!==o.current;)$.push(b),b.addEventListener(B3,x),b=b.nextSibling;return s.current=$,()=>{for(let A of $)A.removeEventListener(B3,x)}},[t]),fQ(s,r,n),lQ(s,n),hQ(s,r,n),dQ(s,i),I.useEffect(()=>{const g=ir(Xt(s.current?s.current[0]:void 0));let b=null;if(ea(g,s.current)){for(let $ of Qn.traverse())$.scopeRef&&ea(g,$.scopeRef.current)&&(b=$);b===Qn.getTreeNode(s)&&(gn=b.scopeRef)}},[s]),hn(()=>()=>{var g,b,$;let x=($=(b=Qn.getTreeNode(s))===null||b===void 0||(g=b.parent)===null||g===void 0?void 0:g.scopeRef)!==null&&$!==void 0?$:null;(s===gn||wp(s,gn))&&(!x||Qn.getTreeNode(x))&&(gn=x),Qn.removeTreeNode(s)},[s]);let h=I.useMemo(()=>sQ(s),[]),m=I.useMemo(()=>({focusManager:h,parentNode:f}),[f,h]);return de.default.createElement(tw.Provider,{value:m},de.default.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,de.default.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function sQ(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t;var s;let l=r||ir(Xt((s=n[0])!==null&&s!==void 0?s:void 0)),f=n[0].previousElementSibling,h=du(n),m=Vr(h,{tabbable:i,accept:o},n);m.currentNode=ea(l,n)?l:f;let g=m.nextNode();return!g&&a&&(m.currentNode=f,g=m.nextNode()),g&&ii(g,!0),g},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t;var s;let l=r||ir(Xt((s=n[0])!==null&&s!==void 0?s:void 0)),f=n[n.length-1].nextElementSibling,h=du(n),m=Vr(h,{tabbable:i,accept:o},n);m.currentNode=ea(l,n)?l:f;let g=m.previousNode();return!g&&a&&(m.currentNode=f,g=m.previousNode()),g&&ii(g,!0),g},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=du(n),o=Vr(a,{tabbable:r,accept:i},n);o.currentNode=n[0].previousElementSibling;let s=o.nextNode();return s&&ii(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=du(n),o=Vr(a,{tabbable:r,accept:i},n);o.currentNode=n[n.length-1].nextElementSibling;let s=o.previousNode();return s&&ii(s,!0),s}}}function du(e){return e[0].parentElement}function xd(e){let t=Qn.getTreeNode(gn);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function uQ(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 lQ(e,t){let n=I.useRef(void 0),r=I.useRef(void 0);hn(()=>{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 o=f=>{if(f.key!=="Tab"||f.altKey||f.ctrlKey||f.metaKey||!xd(e)||f.isComposing)return;let h=ir(a),m=e.current;if(!m||!ea(h,m))return;let g=du(m),b=Vr(g,{tabbable:!0},m);if(!h)return;b.currentNode=h;let $=f.shiftKey?b.previousNode():b.nextNode();$||(b.currentNode=f.shiftKey?m[m.length-1].nextElementSibling:m[0].previousElementSibling,$=f.shiftKey?b.previousNode():b.nextNode()),f.preventDefault(),$&&ii($,!0)},s=f=>{(!gn||wp(gn,e))&&ea(tn(f),e.current)?(gn=e,n.current=tn(f)):xd(e)&&!$s(tn(f),e)?n.current?n.current.focus():gn&&gn.current&&F3(gn.current):xd(e)&&(n.current=tn(f))},l=f=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let h=Nd(),m=(h==="virtual"||h===null)&&Sb()&&Ab(),g=ir(a);if(!m&&g&&xd(e)&&!$s(g,e)){gn=e;let $=tn(f);if($&&$.isConnected){var b;n.current=$,(b=n.current)===null||b===void 0||b.focus()}else gn.current&&F3(gn.current)}})};return a.addEventListener("keydown",o,!1),a.addEventListener("focusin",s,!1),i==null||i.forEach(f=>f.addEventListener("focusin",s,!1)),i==null||i.forEach(f=>f.addEventListener("focusout",l,!1)),()=>{a.removeEventListener("keydown",o,!1),a.removeEventListener("focusin",s,!1),i==null||i.forEach(f=>f.removeEventListener("focusin",s,!1)),i==null||i.forEach(f=>f.removeEventListener("focusout",l,!1))}},[e,t]),hn(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function S7(e){return $s(e)}function ea(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function $s(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Qn.traverse(Qn.getTreeNode(t)))if(n&&ea(e,n.current))return!0;return!1}function cQ(e){return $s(e,gn)}function wp(e,t){var n;let r=(n=Qn.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function ii(e,t=!1){if(e!=null&&!t)try{Tu(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function T7(e,t=!0){let n=e[0].previousElementSibling,r=du(e),i=Vr(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=du(e),i=Vr(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function F3(e,t=!0){ii(T7(e,t))}function dQ(e,t){const n=de.default.useRef(t);I.useEffect(()=>{if(n.current){gn=e;const r=Xt(e.current?e.current[0]:void 0);!ea(ir(r),gn.current)&&e.current&&F3(e.current)}n.current=!1},[e])}function fQ(e,t,n){hn(()=>{if(t||n)return;let r=e.current;const i=Xt(r?r[0]:void 0);let a=o=>{let s=tn(o);ea(s,e.current)?gn=e:S7(s)||(gn=null)};return i.addEventListener("focusin",a,!1),r==null||r.forEach(o=>o.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),r==null||r.forEach(o=>o.removeEventListener("focusin",a,!1))}},[e,t,n])}function nw(e){let t=Qn.getTreeNode(gn);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function hQ(e,t,n){const r=I.useRef(typeof document<"u"?ir(Xt(e.current?e.current[0]:void 0)):null);hn(()=>{let i=e.current;const a=Xt(i?i[0]:void 0);if(!t||n)return;let o=()=>{(!gn||wp(gn,e))&&ea(ir(a),e.current)&&(gn=e)};return a.addEventListener("focusin",o,!1),i==null||i.forEach(s=>s.addEventListener("focusin",o,!1)),()=>{a.removeEventListener("focusin",o,!1),i==null||i.forEach(s=>s.removeEventListener("focusin",o,!1))}},[e,n]),hn(()=>{const i=Xt(e.current?e.current[0]:void 0);if(!t)return;let a=o=>{if(o.key!=="Tab"||o.altKey||o.ctrlKey||o.metaKey||!xd(e)||o.isComposing)return;let s=i.activeElement;if(!$s(s,e)||!nw(e))return;let l=Qn.getTreeNode(e);if(!l)return;let f=l.nodeToRestore,h=Vr(i.body,{tabbable:!0});h.currentNode=s;let m=o.shiftKey?h.previousNode():h.nextNode();if((!f||!f.isConnected||f===i.body)&&(f=void 0,l.nodeToRestore=void 0),(!m||!$s(m,e))&&f){h.currentNode=f;do m=o.shiftKey?h.previousNode():h.nextNode();while($s(m,e));o.preventDefault(),o.stopPropagation(),m?ii(m,!0):S7(f)?ii(f,!0):s.blur()}};return n||i.addEventListener("keydown",a,!0),()=>{n||i.removeEventListener("keydown",a,!0)}},[e,t,n]),hn(()=>{const i=Xt(e.current?e.current[0]:void 0);if(!t)return;let a=Qn.getTreeNode(e);if(a){var o;return a.nodeToRestore=(o=r.current)!==null&&o!==void 0?o:void 0,()=>{let s=Qn.getTreeNode(e);if(!s)return;let l=s.nodeToRestore,f=ir(i);if(t&&l&&(f&&$s(f,e)||f===i.body&&nw(e))){let h=Qn.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let m=h.getTreeNode(e);for(;m;){if(m.nodeToRestore&&m.nodeToRestore.isConnected){rw(m.nodeToRestore);return}m=m.parent}for(m=h.getTreeNode(e);m;){if(m.scopeRef&&m.scopeRef.current&&Qn.getTreeNode(m.scopeRef)){let g=T7(m.scopeRef.current,!0);rw(g);return}m=m.parent}}})}}}},[e,t])}function rw(e){e.dispatchEvent(new CustomEvent(B3,{bubbles:!0,cancelable:!0}))&&ii(e)}function Vr(e,t,n){let r=t!=null&&t.tabbable?bZ:BP,i=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,a=Xt(i),o=qY(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode(s){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(s)||t!=null&&t.tabbable&&s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(!uQ(s)||o.currentNode.tagName==="INPUT"&&o.currentNode.type==="radio"&&o.currentNode.name===s.name)?NodeFilter.FILTER_REJECT:r(s)&&(!n||ea(s,n))&&(!(t!=null&&t.accept)||t.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}function Sm(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||ir(Xt(r)),f=Vr(r,{tabbable:a,accept:s});r.contains(l)&&(f.currentNode=l);let h=f.nextNode();return!h&&o&&(f.currentNode=r,h=f.nextNode()),h&&ii(h,!0),h},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||ir(Xt(r)),f=Vr(r,{tabbable:a,accept:s});if(r.contains(l))f.currentNode=l;else{let m=V4(f);return m&&ii(m,!0),m??null}let h=f.previousNode();if(!h&&o){f.currentNode=r;let m=V4(f);if(!m)return null;h=m}return h&&ii(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,s=Vr(r,{tabbable:i,accept:a}).nextNode();return s&&ii(s,!0),s},focusLast(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}),s=V4(o);return s&&ii(s,!0),s??null}}}function V4(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Wb{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 k3({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ea(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Wb;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 k3({scopeRef:null}),this.fastMap.set(null,this.root)}}class k3{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 Qn=new Wb;function P7(e){let t=mQ(Xt(e));t!==e&&(t&&pQ(t,e),e&&Hb(e,t))}function pQ(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function Hb(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function mQ(e){let t=ir(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}var _7={};_7={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 B7={};B7={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 F7={};F7={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 k7={};k7={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 M7={};M7={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 R7={};R7={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 I7={};I7={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 O7={};O7={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 L7={};L7={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 V7={};V7={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 N7={};N7={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 j7={};j7={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 K7={};K7={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 z7={};z7={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 q7={};q7={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 U7={};U7={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 W7={};W7={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 H7={};H7={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 G7={};G7={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 Y7={};Y7={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 Z7={};Z7={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 X7={};X7={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 Q7={};Q7={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 J7={};J7={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 e_={};e_={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 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 n_={};n_={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 r_={};r_={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 i_={};i_={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 a_={};a_={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 o_={};o_={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 s_={};s_={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 l_={};l_={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 yf={};yf={"ar-AE":_7,"bg-BG":B7,"cs-CZ":F7,"da-DK":k7,"de-DE":M7,"el-GR":R7,"en-US":I7,"es-ES":O7,"et-EE":L7,"fi-FI":V7,"fr-FR":N7,"he-IL":j7,"hr-HR":K7,"hu-HU":z7,"it-IT":q7,"ja-JP":U7,"ko-KR":W7,"lt-LT":H7,"lv-LV":G7,"nb-NO":Y7,"nl-NL":Z7,"pl-PL":X7,"pt-BR":Q7,"pt-PT":J7,"ro-RO":e_,"ru-RU":t_,"sk-SK":n_,"sl-SI":r_,"sr-SP":i_,"sv-SE":a_,"tr-TR":o_,"uk-UA":s_,"zh-CN":u_,"zh-TW":l_};function c_(e){return e&&e.__esModule?e.default:e}const Gb=new WeakMap;function Ud(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function gQ(e){let t=Ta(c_(yf),"@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:Ud(n)||Ud(r),timeZone:e.timeZone}),o="anchorDate"in e?e.anchorDate:null;return I.useMemo(()=>{if(!o&&n&&r)if(er(n,r)){let s=a.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:s})}else{let s=R3(a,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:s})}return""},[n,r,o,e.timeZone,t,a])}function M3(e,t,n,r){let i=Ta(c_(yf),"@react-aria/calendar"),a=Ud(e)||Ud(t),o=Za({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),s=Za({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return I.useMemo(()=>{if(er(e,gf(e))){let l=e,f=t;if(e.calendar.getFormattableMonth&&(l=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(f=t.calendar.getFormattableMonth(t)),er(t,E3(e)))return o.format(l.toDate(n));if(er(t,E3(t)))return r?R3(o,i,l,f,n):o.formatRange(l.toDate(n),f.toDate(n))}return r?R3(s,i,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))},[e,t,o,s,i,n,r])}function R3(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),o=-1;for(let f=0;f<a.length;f++){let h=a[f];if(h.source==="shared"&&h.type==="literal")o=f;else if(h.source==="endRange")break}let s="",l="";for(let f=0;f<a.length;f++)f<o?s+=a[f].value:f>o&&(l+=a[f].value);return t.format("dateRange",{startDate:s,endDate:l})}const d_=7e3;let ji=null;function Kl(e,t="assertive",n=d_){ji?ji.announce(e,t,n):(ji=new yQ,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?ji.announce(e,t,n):setTimeout(()=>{ji!=null&&ji.isAttached()&&(ji==null||ji.announce(e,t,n))},100))}function vQ(e){ji&&ji.clear(e)}class yQ{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=d_){var i,a;if(!this.node)return;let o=document.createElement("div");typeof t=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",t["aria-labelledby"])):o.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(o):(a=this.politeLog)===null||a===void 0||a.appendChild(o),t!==""&&setTimeout(()=>{o.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 bQ(e){return e&&e.__esModule?e.default:e}function f_(e,t){let n=Ta(bQ(yf),"@react-aria/calendar"),r=Zo(e),i=M3(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=M3(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);h3(()=>{t.isFocused||Kl(a)},[a]);let o=gQ(t);h3(()=>{o&&Kl(o,"polite",4e3)},[o]);let s=Zl([!!e.errorMessage,e.isInvalid,e.validationState]);Gb.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:s,selectedDateDescription:o});let[l,f]=I.useState(!1),h=e.isDisabled||t.isNextVisibleRangeInvalid();h&&l&&(f(!1),t.setFocused(!0));let[m,g]=I.useState(!1),b=e.isDisabled||t.isPreviousVisibleRangeInvalid();b&&m&&(g(!1),t.setFocused(!0));let $=Xl({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:Qt(r,$,{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:f},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:b,onFocusChange:g},errorMessageProps:{id:s},title:i}}function xQ(e,t){return f_(e,t)}function DQ(e,t,n){let r=f_(e,t),i=I.useRef(!1),a=I.useRef(typeof window<"u"?window:null);return ba(a,"pointerdown",s=>{i.current=s.width===0&&s.height===0}),ba(a,"pointerup",s=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=s.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=s=>{n.current&&(!s.relatedTarget||!n.current.contains(s.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},ba(n,"touchmove",s=>{t.isDragging&&s.preventDefault()},{passive:!1,capture:!0}),r}function $Q(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:a}=_r(),o=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}},s=M3(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:f}=Gb.get(t),h=Xl({"aria-label":[l,s].filter(Boolean).join(", "),"aria-labelledby":f}),m=Za({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:g}=_r(),b=I.useMemo(()=>{let x=jd(wm(t.timeZone),g,i);return[...new Array(7).keys()].map(A=>{let C=x.add({days:A}).toDate(t.timeZone);return m.format(C)})},[g,t.timeZone,m,i]),$=JP(n,g,i);return{gridProps:Qt(h,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:o,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:b,weeksInMonth:$}}function EQ(e){return e&&e.__esModule?e.default:e}function CQ(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:o}=Gb.get(t),s=Ta(EQ(yf),"@react-aria/calendar"),l=Za({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Ud(r),timeZone:t.timeZone}),f=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&&er(t.value,r));b&&(f=!0),r=_P(r,$3);let $=I.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),x=YP(r,t.timeZone),A=I.useMemo(()=>{let O="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(er(r,t.value.start)||er(r,t.value.end))&&(O=o+", "),O+=l.format($),x?O=s.format(f?"todayDateSelected":"todayDate",{date:O}):f&&(O=s.format("dateSelected",{date:O})),t.minValue&&er(r,t.minValue)?O+=", "+s.format("minimumDate"):t.maxValue&&er(r,t.maxValue)&&(O+=", "+s.format("maximumDate")),O},[l,$,s,f,x,r,t,o]),w="";"anchorDate"in t&&h&&!t.isReadOnly&&g&&(t.anchorDate?w=s.format("finishRangeSelectionPrompt"):w=s.format("startRangeSelectionPrompt"));let C=fc(w),E=I.useRef(!1),T=I.useRef(!1),P=I.useRef(void 0),{pressProps:F,isPressed:q}=hf({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(er(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),T.current=!0;return}else if(er(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),T.current=!0;return}}let Ee=()=>{t.setDragging(!0),P.current=void 0,t.selectDate(r),t.setFocusedDate(r),E.current=!0};O.pointerType==="touch"?P.current=setTimeout(Ee,200):Ee()}},onPressEnd(){T.current=!1,E.current=!1,clearTimeout(P.current),P.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(O){if(!t.isReadOnly&&("anchorDate"in t&&P.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(T.current)t.setAnchorDate(r);else if(t.anchorDate&&!E.current)t.selectDate(r),t.setFocusedDate(r);else if(O.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let Ee=r.add({days:1});t.isInvalid(Ee)&&(Ee=r.subtract({days:1})),t.isInvalid(Ee)||t.setFocusedDate(Ee)}else O.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),te;i||(te=er(r,t.focusedDate)?0:-1),I.useEffect(()=>{h&&n.current&&(wi(n.current),Nd()!=="pointer"&&document.activeElement===n.current&&gp(n.current,{containingElement:Dm(n.current)}))},[h,n]);let se=Za({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),ae=I.useMemo(()=>se.formatToParts($).find(O=>O.type==="day").value,[se,$]);return{cellProps:{role:"gridcell","aria-disabled":!g||void 0,"aria-selected":f||void 0,"aria-invalid":b||void 0},buttonProps:Qt(F,{onFocus(){i||t.setFocusedDate(r)},tabIndex:te,role:"button","aria-disabled":!g||void 0,"aria-label":A,"aria-invalid":b||void 0,"aria-describedby":[b?a:void 0,C["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:q,isFocused:h,isSelected:f,isDisabled:i,isUnavailable:m,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:b,formattedDate:ae}}const Tm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},h_={...Tm,customError:!0,valid:!1},uu={isInvalid:!1,validationDetails:Tm,validationErrors:[]},wQ=I.createContext({}),tc="__formValidationState"+Date.now();function bf(e){if(e[tc]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[tc];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return AQ(e)}function AQ(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:o,validationBehavior:s="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:h_}:null,f=I.useMemo(()=>{if(!o||i==null)return null;let ae=SQ(o,i);return iw(ae)},[o,i]);a!=null&&a.validationDetails.valid&&(a=void 0);let h=I.useContext(wQ),m=I.useMemo(()=>r?Array.isArray(r)?r.flatMap(ae=>I3(h[ae])):I3(h[r]):[],[h,r]),[g,b]=I.useState(h),[$,x]=I.useState(!1);h!==g&&(b(h),x(!1));let A=I.useMemo(()=>iw($?[]:m),[$,m]),w=I.useRef(uu),[C,E]=I.useState(uu),T=I.useRef(uu),P=()=>{if(!F)return;q(!1);let ae=f||a||w.current;N4(ae,T.current)||(T.current=ae,E(ae))},[F,q]=I.useState(!1);return I.useEffect(P),{realtimeValidation:l||A||f||a||uu,displayValidation:s==="native"?l||A||C:l||A||f||a||C,updateValidation(ae){s==="aria"&&!N4(C,ae)?E(ae):w.current=ae},resetValidation(){let ae=uu;N4(ae,T.current)||(T.current=ae,E(ae)),s==="native"&&q(!1),x(!0)},commitValidation(){s==="native"&&q(!0),x(!0)}}}function I3(e){return e?Array.isArray(e)?e:[e]:[]}function SQ(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return I3(n)}return[]}function iw(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:h_}:null}function N4(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 Ap(...e){let t=new Set,n=!1,r={...Tm};for(let o of e){var i,a;for(let s of o.validationErrors)t.add(s);n||(n=o.isInvalid);for(let s in r)(i=r)[a=s]||(i[a]=o.validationDetails[s])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function p_(e,t,n){let{validationBehavior:r,focus:i}=e;hn(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let f=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(f),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(PQ(n.current))}});let a=I.useRef(!1),o=cn(()=>{a.current||t.resetValidation()}),s=cn(f=>{var h;t.displayValidation.isInvalid||t.commitValidation();let m=n==null||(h=n.current)===null||h===void 0?void 0:h.form;if(!f.defaultPrevented&&n&&m&&_Q(m)===n.current){var g;i?i():(g=n.current)===null||g===void 0||g.focus(),jP("keyboard")}f.preventDefault()}),l=cn(()=>{t.commitValidation()});I.useEffect(()=>{let f=n==null?void 0:n.current;if(!f)return;let h=f.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}),f.addEventListener("invalid",s),f.addEventListener("change",l),h==null||h.addEventListener("reset",o),()=>{f.removeEventListener("invalid",s),f.removeEventListener("change",l),h==null||h.removeEventListener("reset",o),h&&(h.reset=m)}},[n,s,l,o,r])}function TQ(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 PQ(e){return{isInvalid:!e.validity.valid,validationDetails:TQ(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function _Q(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=zr(t);let o=zr(),s={};n?(r=r?`${o} ${r}`:o,s={id:o,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 l=Xl({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function _m(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=Pm(e),s=Zl([!!t,!!n,r,i]),l=Zl([!!t,!!n,r,i]);return o=Qt(o,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:l}}}const BQ=0,FQ=100,kQ=1;function MQ(e){const{isDisabled:t=!1,minValue:n=BQ,maxValue:r=FQ,numberFormatter:i,step:a=kQ,orientation:o="horizontal"}=e;let s=I.useMemo(()=>{let le=(r-n)/10;return le=nd(le,0,le+a,a),Math.max(le,a)},[a,r,n]),l=I.useCallback(le=>le==null?void 0:le.map((Se,_e)=>{let Be=_e===0?n:le[_e-1],Ge=_e===le.length-1?r:le[_e+1];return nd(Se,Be,Ge,a)}),[n,r,a]),f=I.useMemo(()=>l(ow(e.value)),[e.value,l]),h=I.useMemo(()=>{var le;return l((le=ow(e.defaultValue))!==null&&le!==void 0?le:[n])},[e.defaultValue,n,l]),m=sw(e.value,e.defaultValue,e.onChange),g=sw(e.value,e.defaultValue,e.onChangeEnd);const[b,$]=Ai(f,h,m);let[x]=I.useState(b);const[A,w]=I.useState(new Array(b.length).fill(!1)),C=I.useRef(new Array(b.length).fill(!0)),[E,T]=I.useState(void 0),P=I.useRef(b),F=I.useRef(A);let q=le=>{P.current=le,$(le)},te=le=>{F.current=le,w(le)};function se(le){return(le-n)/(r-n)}function ae(le){return le===0?n:b[le-1]}function O(le){return le===b.length-1?r:b[le+1]}function Ee(le){return C.current[le]}function be(le,Se){C.current[le]=Se}function z(le,Se){if(t||!Ee(le))return;const _e=ae(le),Be=O(le);Se=nd(Se,_e,Be,a);let Ge=aw(P.current,le,Se);q(Ge)}function G(le,Se){if(t||!Ee(le))return;Se&&(P.current=b);const _e=F.current[le];F.current=aw(F.current,le,Se),te(F.current),g&&_e&&!F.current.some(Boolean)&&g(P.current)}function V(le){return i.format(le)}function R(le,Se){z(le,fe(Se))}function K(le){return Math.round((le-n)/a)*a+n}function fe(le){const Se=le*(r-n)+n;return Jl(K(Se),n,r)}function M(le,Se=1){let _e=Math.max(Se,a);z(le,nd(b[le]+_e,n,r,a))}function oe(le,Se=1){let _e=Math.max(Se,a);z(le,nd(b[le]-_e,n,r,a))}return{values:b,defaultValues:e.defaultValue!==void 0?h:x,getThumbValue:le=>b[le],setThumbValue:z,setThumbPercent:R,isThumbDragging:le=>A[le],setThumbDragging:G,focusedThumb:E,setFocusedThumb:T,getThumbPercent:le=>se(b[le]),getValuePercent:se,getThumbValueLabel:le=>V(b[le]),getFormattedValue:V,getThumbMinValue:ae,getThumbMaxValue:O,getPercentValue:fe,isThumbEditable:Ee,setThumbEditable:be,incrementThumb:M,decrementThumb:oe,step:a,pageSize:s,orientation:o,isDisabled:t}}function aw(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function ow(e){if(e!=null)return Array.isArray(e)?e:[e]}function sw(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const uw={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 RQ(e={}){let{style:t,isFocusable:n}=e,[r,i]=I.useState(!1),{focusWithinProps:a}=hc({isDisabled:!n,onFocusWithinChange:s=>i(s)}),o=I.useMemo(()=>r?t:t?{...uw,...t}:uw,[r]);return{visuallyHiddenProps:{...a,style:o}}}function IQ(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=RQ(e);return de.default.createElement(n,Qt(a,o),t)}const Yb=new WeakMap;function O3(e,t){let n=Yb.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function OQ(e,t,n){let{labelProps:r,fieldProps:i}=Pm(e),a=e.orientation==="vertical";var o;Yb.set(t,{id:(o=r.id)!==null&&o!==void 0?o:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:s}=_r(),{addGlobalListener:l,removeGlobalListener:f}=Ts();const h=I.useRef(null),m=s==="rtl",g=I.useRef(null),{moveProps:b}=zP({onMoveStart(){g.current=null},onMove({deltaX:w,deltaY:C}){if(!n.current)return;let{height:E,width:T}=n.current.getBoundingClientRect(),P=a?E:T;g.current==null&&h.current!=null&&(g.current=t.getThumbPercent(h.current)*P);let F=a?C:w;if((a||m)&&(F=-F),g.current+=F,h.current!=null&&n.current){const q=Jl(g.current/P,0,1);t.setThumbPercent(h.current,q)}},onMoveEnd(){h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null)}});let $=I.useRef(void 0),x=(w,C,E,T)=>{if(n.current&&!e.isDisabled&&t.values.every((P,F)=>!t.isThumbDragging(F))){let{height:P,width:F,top:q,left:te}=n.current.getBoundingClientRect(),se=a?P:F,be=((a?T:E)-(a?q:te))/se;(s==="rtl"||a)&&(be=1-be);let z=t.getPercentValue(be),G,V=t.values.findIndex(R=>z-R<0);if(V===0)G=V;else if(V===-1)G=t.values.length-1;else{let R=t.values[V-1],K=t.values[V];Math.abs(R-z)<Math.abs(K-z)?G=V-1:G=V}G>=0&&t.isThumbEditable(G)?(w.preventDefault(),h.current=G,t.setFocusedThumb(G),$.current=C,t.setThumbDragging(h.current,!0),t.setThumbValue(G,z),l(window,"mouseup",A,!1),l(window,"touchend",A,!1),l(window,"pointerup",A,!1)):h.current=null}},A=w=>{var C,E;((E=w.pointerId)!==null&&E!==void 0?E:(C=w.changedTouches)===null||C===void 0?void 0:C[0].identifier)===$.current&&(h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null),f(window,"mouseup",A,!1),f(window,"touchend",A,!1),f(window,"pointerup",A,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var w;(w=document.getElementById(O3(t,0)))===null||w===void 0||w.focus(),jP("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:Qt({onMouseDown(w){w.button!==0||w.altKey||w.ctrlKey||w.metaKey||x(w,void 0,w.clientX,w.clientY)},onPointerDown(w){w.pointerType==="mouse"&&(w.button!==0||w.altKey||w.ctrlKey||w.metaKey)||x(w,w.pointerId,w.clientX,w.clientY)},onTouchStart(w){x(w,w.changedTouches[0].identifier,w.changedTouches[0].clientX,w.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},b),outputProps:{htmlFor:t.values.map((w,C)=>O3(t,C)).join(" "),"aria-live":"off"}}}function LQ(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:a,trackRef:o,inputRef:s,orientation:l=t.orientation,name:f,form:h}=e,m=e.isDisabled||t.isDisabled,g=l==="vertical",{direction:b}=_r(),{addGlobalListener:$,removeGlobalListener:x}=Ts(),A=Yb.get(t);var w;const{labelProps:C,fieldProps:E}=Pm({...e,id:O3(t,n),"aria-labelledby":`${A.id} ${(w=e["aria-labelledby"])!==null&&w!==void 0?w:""}`.trim()}),T=t.values[n],P=I.useCallback(()=>{s.current&&wi(s.current)},[s]),F=t.focusedThumb===n;I.useEffect(()=>{F&&P()},[F,P]);let q=b==="rtl",te=I.useRef(null),{keyboardProps:se}=KP({onKeyDown(R){let{getThumbMaxValue:K,getThumbMinValue:fe,decrementThumb:M,incrementThumb:oe,setThumbValue:le,setThumbDragging:Se,pageSize:_e}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(R.key)){R.continuePropagation();return}switch(R.preventDefault(),Se(n,!0),R.key){case"PageUp":oe(n,_e);break;case"PageDown":M(n,_e);break;case"Home":le(n,fe(n));break;case"End":le(n,K(n));break}Se(n,!1)}}),{moveProps:ae}=zP({onMoveStart(){te.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:R,deltaY:K,pointerType:fe,shiftKey:M}){const{getThumbPercent:oe,setThumbPercent:le,decrementThumb:Se,incrementThumb:_e,step:Be,pageSize:Ge}=t;if(!o.current)return;let{width:Xe,height:Ne}=o.current.getBoundingClientRect(),qe=g?Ne:Xe;if(te.current==null&&(te.current=oe(n)*qe),fe==="keyboard")R>0&&q||R<0&&!q||K>0?Se(n,M?Ge:Be):_e(n,M?Ge:Be);else{let ke=g?K:R;(g||q)&&(ke=-ke),te.current+=ke,le(n,Jl(te.current/qe,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!m);const{focusableProps:O}=Mb(Qt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),s);let Ee=I.useRef(void 0),be=R=>{P(),Ee.current=R,t.setThumbDragging(n,!0),$(window,"mouseup",z,!1),$(window,"touchend",z,!1),$(window,"pointerup",z,!1)},z=R=>{var K,fe;((fe=R.pointerId)!==null&&fe!==void 0?fe:(K=R.changedTouches)===null||K===void 0?void 0:K[0].identifier)===Ee.current&&(P(),t.setThumbDragging(n,!1),x(window,"mouseup",z,!1),x(window,"touchend",z,!1),x(window,"pointerup",z,!1))},G=t.getThumbPercent(n);(g||b==="rtl")&&(G=1-G);let V=m?{}:Qt(se,ae,{onMouseDown:R=>{R.button!==0||R.altKey||R.ctrlKey||R.metaKey||be()},onPointerDown:R=>{R.button!==0||R.altKey||R.ctrlKey||R.metaKey||be(R.pointerId)},onTouchStart:R=>{be(R.changedTouches[0].identifier)}});return Tb(s,t.defaultValues[n],R=>{t.setThumbValue(n,R)}),{inputProps:Qt(O,E,{type:"range",tabIndex:m?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:T,name:f,form:h,disabled:m,"aria-orientation":l,"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:R=>{t.setThumbValue(n,parseFloat(R.target.value))}}),thumbProps:{...V,style:{position:"absolute",[g?"top":"left"]:`${G*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:C,isDragging:t.isThumbDragging(n),isDisabled:m,isFocused:F}}function VQ(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:o="text",validationBehavior:s="aria"}=e,[l,f]=Ai(e.value,e.defaultValue||"",e.onChange),{focusableProps:h}=Mb(e,t),m=bf({...e,value:l}),{isInvalid:g,validationErrors:b,validationDetails:$}=m.displayValidation,{labelProps:x,fieldProps:A,descriptionProps:w,errorMessageProps:C}=_m({...e,isInvalid:g,errorMessage:e.errorMessage||b}),E=Zo(e,{labelable:!0});const T={type:o,pattern:e.pattern};let[P]=I.useState(l);var F;return Tb(t,(F=e.defaultValue)!==null&&F!==void 0?F:P,f),p_(e,m,t),I.useEffect(()=>{if(t.current instanceof ao(t.current).HTMLTextAreaElement){let q=t.current;Object.defineProperty(q,"defaultValue",{get:()=>q.value,set:()=>{},configurable:!0})}},[t]),{labelProps:x,inputProps:Qt(E,n==="input"?T:void 0,{disabled:r,readOnly:a,required:i&&s==="native","aria-required":i&&s==="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:l,onChange:q=>f(q.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(de.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:w,errorMessageProps:C,isInvalid:g,validationErrors:b,validationDetails:$}}var m_={};m_={Empty:"فارغ"};var g_={};g_={Empty:"Изпразни"};var v_={};v_={Empty:"Prázdné"};var y_={};y_={Empty:"Tom"};var b_={};b_={Empty:"Leer"};var x_={};x_={Empty:"Άδειο"};var D_={};D_={Empty:"Empty"};var $_={};$_={Empty:"Vacío"};var E_={};E_={Empty:"Tühjenda"};var C_={};C_={Empty:"Tyhjä"};var w_={};w_={Empty:"Vide"};var A_={};A_={Empty:"ריק"};var S_={};S_={Empty:"Prazno"};var T_={};T_={Empty:"Üres"};var P_={};P_={Empty:"Vuoto"};var __={};__={Empty:"空"};var B_={};B_={Empty:"비어 있음"};var F_={};F_={Empty:"Tuščias"};var k_={};k_={Empty:"Tukšs"};var M_={};M_={Empty:"Tom"};var R_={};R_={Empty:"Leeg"};var I_={};I_={Empty:"Pusty"};var O_={};O_={Empty:"Vazio"};var L_={};L_={Empty:"Vazio"};var V_={};V_={Empty:"Gol"};var N_={};N_={Empty:"Не заполнено"};var j_={};j_={Empty:"Prázdne"};var K_={};K_={Empty:"Prazen"};var z_={};z_={Empty:"Prazno"};var q_={};q_={Empty:"Tomt"};var U_={};U_={Empty:"Boş"};var W_={};W_={Empty:"Пусто"};var H_={};H_={Empty:"空"};var G_={};G_={Empty:"空白"};var Y_={};Y_={"ar-AE":m_,"bg-BG":g_,"cs-CZ":v_,"da-DK":y_,"de-DE":b_,"el-GR":x_,"en-US":D_,"es-ES":$_,"et-EE":E_,"fi-FI":C_,"fr-FR":w_,"he-IL":A_,"hr-HR":S_,"hu-HU":T_,"it-IT":P_,"ja-JP":__,"ko-KR":B_,"lt-LT":F_,"lv-LV":k_,"nb-NO":M_,"nl-NL":R_,"pl-PL":I_,"pt-BR":O_,"pt-PT":L_,"ro-RO":V_,"ru-RU":N_,"sk-SK":j_,"sl-SI":K_,"sr-SP":z_,"sv-SE":q_,"tr-TR":U_,"uk-UA":W_,"zh-CN":H_,"zh-TW":G_};function NQ(e){return e&&e.__esModule?e.default:e}function jQ(e){const t=I.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:a,isDisabled:o,isReadOnly:s,isRequired:l,onIncrement:f,onIncrementPage:h,onDecrement:m,onDecrementPage:g,onDecrementToMin:b,onIncrementToMax:$}=e;const x=Ta(NQ(Y_),"@react-aria/spinbutton"),A=()=>clearTimeout(t.current);I.useEffect(()=>()=>A(),[]);let w=O=>{if(!(O.ctrlKey||O.metaKey||O.shiftKey||O.altKey||s||O.nativeEvent.isComposing))switch(O.key){case"PageUp":if(h){O.preventDefault(),h==null||h();break}case"ArrowUp":case"Up":f&&(O.preventDefault(),f==null||f());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":$&&(O.preventDefault(),$==null||$());break}},C=I.useRef(!1),E=()=>{C.current=!0},T=()=>{C.current=!1},P=r===""?x.format("Empty"):(r||`${n}`).replace("-","−");I.useEffect(()=>{C.current&&(vQ("assertive"),Kl(P,"assertive"))},[P]);const F=cn(O=>{A(),f==null||f(),t.current=window.setTimeout(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&F(60)},O)}),q=cn(O=>{A(),m==null||m(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&q(60)},O)});let te=O=>{O.preventDefault()},{addGlobalListener:se,removeAllGlobalListeners:ae}=Ts();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":P,"aria-valuemin":i,"aria-valuemax":a,"aria-disabled":o||void 0,"aria-readonly":s||void 0,"aria-required":l||void 0,onKeyDown:w,onFocus:E,onBlur:T},incrementButtonProps:{onPressStart:()=>{F(400),se(window,"contextmenu",te)},onPressEnd:()=>{A(),ae()},onFocus:E,onBlur:T},decrementButtonProps:{onPressStart:()=>{q(400),se(window,"contextmenu",te)},onPressEnd:()=>{A(),ae()},onFocus:E,onBlur:T}}}var Z_={};Z_={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 X_={};X_={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 Q_={};Q_={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 J_={};J_={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 eB={};eB={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 tB={};tB={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 nB={};nB={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 rB={};rB={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 iB={};iB={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 aB={};aB={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 oB={};oB={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 sB={};sB={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 uB={};uB={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 lB={};lB={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 cB={};cB={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 dB={};dB={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 fB={};fB={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 hB={};hB={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 pB={};pB={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 mB={};mB={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 gB={};gB={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 vB={};vB={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 yB={};yB={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 bB={};bB={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 xB={};xB={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 DB={};DB={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 $B={};$B={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 EB={};EB={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 CB={};CB={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 wB={};wB={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 AB={};AB={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 SB={};SB={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 TB={};TB={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 PB={};PB={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 _B={};_B={"ar-AE":Z_,"bg-BG":X_,"cs-CZ":Q_,"da-DK":J_,"de-DE":eB,"el-GR":tB,"en-US":nB,"es-ES":rB,"et-EE":iB,"fi-FI":aB,"fr-FR":oB,"he-IL":sB,"hr-HR":uB,"hu-HU":lB,"it-IT":cB,"ja-JP":dB,"ko-KR":fB,"lt-LT":hB,"lv-LV":pB,"nb-NO":mB,"nl-NL":gB,"pl-PL":vB,"pt-BR":yB,"pt-PT":bB,"ro-RO":xB,"ru-RU":DB,"sk-SK":$B,"sl-SI":EB,"sr-SP":CB,"sv-SE":wB,"tr-TR":AB,"uk-UA":SB,"zh-CN":TB,"zh-TW":PB};const Xa={top:"top",bottom:"top",left:"left",right:"left"},Sp={top:"bottom",bottom:"top",left:"right",right:"left"},KQ={top:"left",left:"top"},L3={top:"height",left:"width"},BB={width:"totalWidth",height:"totalHeight"},$h={};let hr=typeof document<"u"?window.visualViewport:null;function lw(e){let t=0,n=0,r=0,i=0,a=0,o=0,s={};var l;let f=((l=hr==null?void 0:hr.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let $=document.documentElement;r=$.clientWidth,i=$.clientHeight;var h;t=(h=hr==null?void 0:hr.width)!==null&&h!==void 0?h:r;var m;n=(m=hr==null?void 0:hr.height)!==null&&m!==void 0?m:i,s.top=$.scrollTop||e.scrollTop,s.left=$.scrollLeft||e.scrollLeft,hr&&(a=hr.offsetTop,o=hr.offsetLeft)}else({width:t,height:n,top:a,left:o}=zl(e,!1)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,i=n;if(wb()&&(e.tagName==="BODY"||e.tagName==="HTML")&&f){s.top=0,s.left=0;var g;a=(g=hr==null?void 0:hr.pageTop)!==null&&g!==void 0?g:0;var b;o=(b=hr==null?void 0:hr.pageLeft)!==null&&b!==void 0?b:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:s,top:a,left:o}}function zQ(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function cw(e,t,n,r,i,a,o){var s;let l=(s=i.scroll[e])!==null&&s!==void 0?s:0,f=r[L3[e]],h=r.scroll[Xa[e]]+a,m=f+r.scroll[Xa[e]]-a,g=t-l+o[e]-r[Xa[e]],b=t-l+n+o[e]-r[Xa[e]];return g<h?h-g:b>m?Math.max(m-b,h-g):0}function qQ(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 dw(e){if($h[e])return $h[e];let[t,n]=e.split(" "),r=Xa[t]||"right",i=KQ[r];Xa[n]||(n="center");let a=L3[r],o=L3[i];return $h[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:o},$h[e]}function j4(e,t,n,r,i,a,o,s,l,f){let{placement:h,crossPlacement:m,axis:g,crossAxis:b,size:$,crossSize:x}=r,A={};var w;A[b]=(w=e[b])!==null&&w!==void 0?w:0;var C,E,T,P;m==="center"?A[b]+=(((C=e[x])!==null&&C!==void 0?C:0)-((E=n[x])!==null&&E!==void 0?E:0))/2:m!==b&&(A[b]+=((T=e[x])!==null&&T!==void 0?T:0)-((P=n[x])!==null&&P!==void 0?P:0)),A[b]+=a;const F=e[b]-n[x]+l+f,q=e[b]+e[x]-l-f;if(A[b]=Jl(A[b],F,q),h===g){const te=s?o[$]:t[BB[$]];A[Sp[g]]=Math.floor(te-e[g]+i)}else A[g]=Math.floor(e[g]+e[$]+i);return A}function UQ(e,t,n,r,i,a,o,s){const l=r?n.height:t[BB.height];var f;let h=e.top!=null?n.top+e.top:n.top+(l-((f=e.bottom)!==null&&f!==void 0?f:0)-o);var m,g,b,$,x,A;let w=s!=="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+o-(t.top+(($=t.scroll.top)!==null&&$!==void 0?$: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,w)}function fw(e,t,n,r,i,a){let{placement:o,axis:s,size:l}=a;var f,h;if(o===s)return Math.max(0,n[s]-e[s]-((f=e.scroll[s])!==null&&f!==void 0?f:0)+t[s]-((h=r[s])!==null&&h!==void 0?h:0)-r[Sp[s]]-i);var m;return Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-n[s]-n[l]-((m=r[s])!==null&&m!==void 0?m:0)-r[Sp[s]]-i)}function WQ(e,t,n,r,i,a,o,s,l,f,h,m,g,b,$,x){let A=dw(e),{size:w,crossAxis:C,crossSize:E,placement:T,crossPlacement:P}=A,F=j4(t,s,n,A,h,m,f,g,$,x),q=h,te=fw(s,f,t,i,a+h,A);if(o&&r[w]>te){let Xe=dw(`${Sp[T]} ${P}`),Ne=j4(t,s,n,Xe,h,m,f,g,$,x);fw(s,f,t,i,a+h,Xe)>te&&(A=Xe,F=Ne,q=h)}let se="bottom";A.axis==="top"?A.placement==="top"?se="top":A.placement==="bottom"&&(se="bottom"):A.crossAxis==="top"&&(A.crossPlacement==="top"?se="bottom":A.crossPlacement==="bottom"&&(se="top"));let ae=cw(C,F[C],n[E],s,l,a,f);F[C]+=ae;let O=UQ(F,s,f,g,i,a,n.height,se);b&&b<O&&(O=b),n.height=Math.min(n.height,O),F=j4(t,s,n,A,q,m,f,g,$,x),ae=cw(C,F[C],n[E],s,l,a,f),F[C]+=ae;let Ee={},be=t[C]-F[C]-i[Xa[C]],z=be+.5*t[E];const G=$/2+x;var V,R,K,fe;const M=Xa[C]==="left"?((V=i.left)!==null&&V!==void 0?V:0)+((R=i.right)!==null&&R!==void 0?R:0):((K=i.top)!==null&&K!==void 0?K:0)+((fe=i.bottom)!==null&&fe!==void 0?fe:0),oe=n[E]-M-$/2-x,le=t[C]+$/2-(F[C]+i[Xa[C]]),Se=t[C]+t[E]-$/2-(F[C]+i[Xa[C]]),_e=Jl(z,le,Se);Ee[C]=Jl(_e,G,oe),{placement:T,crossPlacement:P}=A,$?be=Ee[C]:P==="right"?be+=t[E]:P==="center"&&(be+=t[E]/2);let Be=T==="left"||T==="top"?n[w]:0,Ge={x:T==="top"||T==="bottom"?be:Be,y:T==="left"||T==="right"?be:Be};return{position:F,maxHeight:O,arrowOffsetLeft:Ee.left,arrowOffsetTop:Ee.top,placement:T,triggerAnchorPoint:Ge}}function HQ(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:o,boundaryElement:s,offset:l,crossOffset:f,maxHeight:h,arrowSize:m=0,arrowBoundaryOffset:g=0}=e,b=r instanceof HTMLElement?GQ(r):document.documentElement,$=b===document.documentElement;const x=window.getComputedStyle(b).position;let A=!!x&&x!=="static",w=$?zl(n,!1):hw(n,b,!1);if(!$){let{marginTop:Ee,marginLeft:be}=window.getComputedStyle(n);w.top+=parseInt(Ee,10)||0,w.left+=parseInt(be,10)||0}let C=zl(r,!0),E=qQ(r);var T,P;C.width+=((T=E.left)!==null&&T!==void 0?T:0)+((P=E.right)!==null&&P!==void 0?P:0);var F,q;C.height+=((F=E.top)!==null&&F!==void 0?F:0)+((q=E.bottom)!==null&&q!==void 0?q:0);let te=zQ(i),se=lw(s),ae=lw(b),O=s.tagName==="BODY"?zl(b,!1):hw(b,s,!1);return b.tagName==="HTML"&&s.tagName==="BODY"&&(ae.scroll.top=0,ae.scroll.left=0),WQ(t,w,C,te,E,a,o,se,ae,O,l,f,A,h,m,g)}function Zb(e,t){let{top:n,left:r,width:i,height:a}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(i=e.offsetWidth,a=e.offsetHeight),{top:n,left:r,width:i,height:a}}function zl(e,t){let{top:n,left:r,width:i,height:a}=Zb(e,t),{scrollTop:o,scrollLeft:s,clientTop:l,clientLeft:f}=document.documentElement;return{top:n+o-l,left:r+s-f,width:i,height:a}}function hw(e,t,n){let r=window.getComputedStyle(e),i;if(r.position==="fixed")i=Zb(e,n);else{i=zl(e,n);let a=zl(t,n),o=window.getComputedStyle(t);a.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,a.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,i.top-=a.top,i.left-=a.left}return i.top-=parseInt(r.marginTop,10)||0,i.left-=parseInt(r.marginLeft,10)||0,i}function GQ(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!pw(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!pw(t);)t=t.parentElement;return t||document.documentElement}function pw(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 FB=new WeakMap;function YQ(e){let{triggerRef:t,isOpen:n,onClose:r}=e;I.useEffect(()=>{if(!n||r===null)return;let i=a=>{let o=a.target;if(!t.current||o instanceof Node&&!o.contains(t.current)||a.target instanceof HTMLInputElement||a.target instanceof HTMLTextAreaElement)return;let s=r||FB.get(t.current);s&&s()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let Un=typeof document<"u"?window.visualViewport:null;function ZQ(e){let{direction:t}=_r(),{arrowSize:n,targetRef:r,overlayRef:i,arrowRef:a,scrollRef:o=i,placement:s="bottom",containerPadding:l=12,shouldFlip:f=!0,boundaryElement:h=typeof document<"u"?document.body:null,offset:m=0,crossOffset:g=0,shouldUpdatePosition:b=!0,isOpen:$=!0,onClose:x,maxHeight:A,arrowBoundaryOffset:w=0}=e,[C,E]=I.useState(null),T=[b,s,i.current,r.current,a==null?void 0:a.current,o.current,l,f,h,m,g,$,t,A,w,n],P=I.useRef(Un==null?void 0:Un.scale);I.useEffect(()=>{$&&(P.current=Un==null?void 0:Un.scale)},[$]);let F=I.useCallback(()=>{if(b===!1||!$||!i.current||!r.current||!h||(Un==null?void 0:Un.scale)!==P.current)return;let Ee=null;if(o.current&&o.current.contains(document.activeElement)){var be;let M=(be=document.activeElement)===null||be===void 0?void 0:be.getBoundingClientRect(),oe=o.current.getBoundingClientRect();var z;if(Ee={type:"top",offset:((z=M==null?void 0:M.top)!==null&&z!==void 0?z:0)-oe.top},Ee.offset>oe.height/2){Ee.type="bottom";var G;Ee.offset=((G=M==null?void 0:M.bottom)!==null&&G!==void 0?G:0)-oe.bottom}}let V=i.current;if(!A&&i.current){var R;V.style.top="0px",V.style.bottom="";var K;V.style.maxHeight=((K=(R=window.visualViewport)===null||R===void 0?void 0:R.height)!==null&&K!==void 0?K:window.innerHeight)+"px"}let fe=HQ({placement:QQ(s,t),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:l,shouldFlip:f,boundaryElement:h,offset:m,crossOffset:g,maxHeight:A,arrowSize:n??(a!=null&&a.current?Zb(a.current,!0).width:0),arrowBoundaryOffset:w});if(fe.position){if(V.style.top="",V.style.bottom="",V.style.left="",V.style.right="",Object.keys(fe.position).forEach(M=>V.style[M]=fe.position[M]+"px"),V.style.maxHeight=fe.maxHeight!=null?fe.maxHeight+"px":"",Ee&&document.activeElement&&o.current){let M=document.activeElement.getBoundingClientRect(),oe=o.current.getBoundingClientRect(),le=M[Ee.type]-oe[Ee.type];o.current.scrollTop+=le-Ee.offset}E(fe)}},T);hn(F,T),XQ(F),m2({ref:i,onResize:F}),m2({ref:r,onResize:F});let q=I.useRef(!1);hn(()=>{let Ee,be=()=>{q.current=!0,clearTimeout(Ee),Ee=setTimeout(()=>{q.current=!1},500),F()},z=()=>{q.current&&be()};return Un==null||Un.addEventListener("resize",be),Un==null||Un.addEventListener("scroll",z),()=>{Un==null||Un.removeEventListener("resize",be),Un==null||Un.removeEventListener("scroll",z)}},[F]);let te=I.useCallback(()=>{q.current||x==null||x()},[x,q]);YQ({triggerRef:r,isOpen:$,onClose:x&&te});var se,ae,O;return{overlayProps:{style:{position:C?"absolute":"fixed",top:C?void 0:0,left:C?void 0:0,zIndex:1e5,...C==null?void 0:C.position,maxHeight:(se=C==null?void 0:C.maxHeight)!==null&&se!==void 0?se:"100vh"}},placement:(ae=C==null?void 0:C.placement)!==null&&ae!==void 0?ae:null,triggerAnchorPoint:(O=C==null?void 0:C.triggerAnchorPoint)!==null&&O!==void 0?O:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:C==null?void 0:C.arrowOffsetLeft,top:C==null?void 0:C.arrowOffsetTop}},updatePosition:F}}function XQ(e){hn(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function QQ(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Wa=[];function JQ(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:s}=e;I.useEffect(()=>{if(i&&!Wa.includes(t))return Wa.push(t),()=>{let $=Wa.indexOf(t);$>=0&&Wa.splice($,1)}},[i,t]);let l=()=>{Wa[Wa.length-1]===t&&n&&n()},f=$=>{(!s||s($.target))&&Wa[Wa.length-1]===t&&($.stopPropagation(),$.preventDefault())},h=$=>{(!s||s($.target))&&(Wa[Wa.length-1]===t&&($.stopPropagation(),$.preventDefault()),l())},m=$=>{$.key==="Escape"&&!o&&!$.nativeEvent.isComposing&&($.stopPropagation(),$.preventDefault(),l())};VZ({ref:t,onInteractOutside:a&&i?h:void 0,onInteractOutsideStart:f});let{focusWithinProps:g}=hc({isDisabled:!r,onBlurWithin:$=>{!$.relatedTarget||cQ($.relatedTarget)||(!s||s($.relatedTarget))&&(n==null||n())}}),b=$=>{$.target===$.currentTarget&&$.preventDefault()};return{overlayProps:{onKeyDown:m,...g},underlayProps:{onPointerDown:b}}}function eJ(e,t,n){let{type:r}=e,{isOpen:i}=t;I.useEffect(()=>{n&&n.current&&FB.set(n.current,t.close)});let a;r==="menu"?a=!0:r==="listbox"&&(a="listbox");let o=zr();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?o:void 0,onPress:t.toggle},overlayProps:{id:o}}}const Pd=typeof document<"u"&&window.visualViewport;let Eh=0,K4;function tJ(e={}){let{isDisabled:t}=e;hn(()=>{if(!t)return Eh++,Eh===1&&(df()?K4=rJ():K4=nJ()),()=>{Eh--,Eh===0&&K4()}},[t])}function nJ(){let e=window.innerWidth-document.documentElement.clientWidth;return Ou(e>0&&("scrollbarGutter"in document.documentElement.style?z4(document.documentElement,"scrollbarGutter","stable"):z4(document.documentElement,"paddingRight",`${e}px`)),z4(document.documentElement,"overflow","hidden"))}function rJ(){let e,t=!1,n=l=>{let f=l.target;e=Ql(f)?f:Dm(f,!0),t=!1;let h=f.ownerDocument.defaultView.getSelection();h&&!h.isCollapsed&&h.containsNode(f,!0)&&(t=!0),"selectionStart"in f&&"selectionEnd"in f&&f.selectionStart<f.selectionEnd&&f.ownerDocument.activeElement===f&&(t=!0)},r=document.createElement("style");r.textContent=`
|
|
71
|
-
@layer {
|
|
72
|
-
* {
|
|
73
|
-
overscroll-behavior: contain;
|
|
74
|
-
}
|
|
75
|
-
}`.trim(),document.head.prepend(r);let i=l=>{if(!(l.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){l.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&l.preventDefault()}},a=l=>{let f=l.target,h=l.relatedTarget;if(h&&A4(h))h.focus({preventScroll:!0}),mw(h,A4(f));else if(!h){var m;let g=(m=f.parentElement)===null||m===void 0?void 0:m.closest("[tabindex]");g==null||g.focus({preventScroll:!0})}},o=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(l){let f=document.activeElement!=null&&A4(document.activeElement);o.call(this,{...l,preventScroll:!0}),(!l||!l.preventScroll)&&mw(this,f)};let s=Ou(q4(document,"touchstart",n,{passive:!1,capture:!0}),q4(document,"touchmove",i,{passive:!1,capture:!0}),q4(document,"blur",a,!0));return()=>{s(),r.remove(),HTMLElement.prototype.focus=o}}function z4(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function q4(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function mw(e,t){t||!Pd?gw(e):Pd.addEventListener("resize",()=>gw(e),{once:!0})}function gw(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=Dm(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect(),a=n.getBoundingClientRect();if(a.top<i.top||a.bottom>i.top+n.clientHeight){let o=i.bottom;Pd&&(o=Math.min(o,Pd.offsetTop+Pd.height));let s=a.top-i.top-((o-i.top)/2-a.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+s)),behavior:"smooth"})}}n=r.parentElement}}const iJ=I.createContext({});function aJ(){var e;return(e=I.useContext(iJ))!==null&&e!==void 0?e:{}}const oJ=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let id=new WeakMap,ti=[];function kB(e,t){let n=ao(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,o=(r==null?void 0:r.shouldUseInert)&&oJ,s=new Set(e),l=new Set,f=x=>o&&x instanceof n.HTMLElement?x.inert:x.getAttribute("aria-hidden")==="true",h=(x,A)=>{o&&x instanceof n.HTMLElement?x.inert=A:A?x.setAttribute("aria-hidden","true"):(x.removeAttribute("aria-hidden"),x instanceof n.HTMLElement&&(x.inert=!1))},m=x=>{for(let E of x.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))s.add(E);let A=E=>{if(l.has(E)||s.has(E)||E.parentElement&&l.has(E.parentElement)&&E.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let T of s)if(E.contains(T))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},w=document.createTreeWalker(x,NodeFilter.SHOW_ELEMENT,{acceptNode:A}),C=A(x);if(C===NodeFilter.FILTER_ACCEPT&&g(x),C!==NodeFilter.FILTER_REJECT){let E=w.nextNode();for(;E!=null;)g(E),E=w.nextNode()}},g=x=>{var A;let w=(A=id.get(x))!==null&&A!==void 0?A:0;f(x)&&w===0||(w===0&&h(x,!0),l.add(x),id.set(x,w+1))};ti.length&&ti[ti.length-1].disconnect(),m(a);let b=new MutationObserver(x=>{for(let A of x)if(A.type==="childList"&&![...s,...l].some(w=>w.contains(A.target)))for(let w of A.addedNodes)(w instanceof HTMLElement||w instanceof SVGElement)&&(w.dataset.liveAnnouncer==="true"||w.dataset.reactAriaTopLayer==="true")?s.add(w):w instanceof Element&&m(w)});b.observe(a,{childList:!0,subtree:!0});let $={visibleNodes:s,hiddenNodes:l,observe(){b.observe(a,{childList:!0,subtree:!0})},disconnect(){b.disconnect()}};return ti.push($),()=>{b.disconnect();for(let x of l){let A=id.get(x);A!=null&&(A===1?(h(x,!1),id.delete(x)):id.set(x,A-1))}$===ti[ti.length-1]?(ti.pop(),ti.length&&ti[ti.length-1].observe()):ti.splice(ti.indexOf($),1)}}function sJ(e){let t=ti[ti.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function uJ(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s,...l}=e,f=l.trigger==="SubmenuTrigger",{overlayProps:h,underlayProps:m}=JQ({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||f,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s},i??r),{overlayProps:g,arrowProps:b,placement:$,triggerAnchorPoint:x}=ZQ({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!f?t.close:null});return tJ({isDisabled:a||!t.isOpen}),I.useEffect(()=>{if(t.isOpen&&r.current){var A,w;return a?sJ((A=i==null?void 0:i.current)!==null&&A!==void 0?A:r.current):kB([(w=i==null?void 0:i.current)!==null&&w!==void 0?w:r.current],{shouldUseInert:!0})}},[a,t.isOpen,r,i]),{popoverProps:Qt(h,g),arrowProps:b,underlayProps:m,placement:$,triggerAnchorPoint:x}}const MB=de.default.createContext(null);function lJ(e){let t=vm(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=I.useState(!1),o=I.useMemo(()=>({contain:i,setContain:a}),[i,a]),{getContainer:s}=aJ();if(!e.portalContainer&&s&&(n=s()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=de.default.createElement(oQ,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},l)),l=de.default.createElement(MB.Provider,{value:o},de.default.createElement(IZ,null,l)),No.default.createPortal(l,n)}function cJ(){let e=I.useContext(MB),t=e==null?void 0:e.setContain;hn(()=>{t==null||t(!0)},[t])}const Bm=new WeakMap;function dJ(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function RB(e,t){let n=Bm.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${dJ(t)}`}function V3(e){return Oh()?e.altKey:e.ctrlKey}function zh(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 IB=new WeakMap;function fJ(e){let t=zr();return IB.set(e,t),t}function hJ(e){return IB.get(e)}const pJ=1e3;function mJ(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=I.useRef({search:"",timeout:void 0}).current,a=o=>{let s=gJ(o.key);if(!(!s||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target)||i.search.length===0&&s===" ")){if(s===" "&&i.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),i.search+=s,t.getKeyForSearch!=null){let l=t.getKeyForSearch(i.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(i.search)),l!=null&&(n.setFocusedKey(l),r&&r(l))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},pJ)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:void 0}}}function gJ(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function OB(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:o=!1,disallowSelectAll:s=!1,escapeKeyBehavior:l="clearSelection",selectOnFocus:f=t.selectionBehavior==="replace",disallowTypeAhead:h=!1,shouldUseVirtualFocus:m,allowsTabNavigation:g=!1,isVirtualized:b,scrollRef:$=r,linkBehavior:x="action"}=e,{direction:A}=_r(),w=xm(),C=R=>{var K;if(R.altKey&&R.key==="Tab"&&R.preventDefault(),!(!((K=r.current)===null||K===void 0)&&K.contains(R.target)))return;const fe=(Te,Ye)=>{if(Te!=null){if(t.isLink(Te)&&x==="selection"&&f&&!V3(R)){of.flushSync(()=>{t.setFocusedKey(Te,Ye)});let ht=zh(r,Te),Ht=t.getItemProps(Te);ht&&w.open(ht,R,Ht.href,Ht.routerOptions);return}if(t.setFocusedKey(Te,Ye),t.isLink(Te)&&x==="override")return;R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Te):f&&!V3(R)&&t.replaceSelection(Te)}};switch(R.key){case"ArrowDown":if(n.getKeyBelow){var M,oe,le;let Te=t.focusedKey!=null?(M=n.getKeyBelow)===null||M===void 0?void 0:M.call(n,t.focusedKey):(oe=n.getFirstKey)===null||oe===void 0?void 0:oe.call(n);Te==null&&a&&(Te=(le=n.getFirstKey)===null||le===void 0?void 0:le.call(n,t.focusedKey)),Te!=null&&(R.preventDefault(),fe(Te))}break;case"ArrowUp":if(n.getKeyAbove){var Se,_e,Be;let Te=t.focusedKey!=null?(Se=n.getKeyAbove)===null||Se===void 0?void 0:Se.call(n,t.focusedKey):(_e=n.getLastKey)===null||_e===void 0?void 0:_e.call(n);Te==null&&a&&(Te=(Be=n.getLastKey)===null||Be===void 0?void 0:Be.call(n,t.focusedKey)),Te!=null&&(R.preventDefault(),fe(Te))}break;case"ArrowLeft":if(n.getKeyLeftOf){var Ge,Xe,Ne;let Te=t.focusedKey!=null?(Ge=n.getKeyLeftOf)===null||Ge===void 0?void 0:Ge.call(n,t.focusedKey):null;Te==null&&a&&(Te=A==="rtl"?(Xe=n.getFirstKey)===null||Xe===void 0?void 0:Xe.call(n,t.focusedKey):(Ne=n.getLastKey)===null||Ne===void 0?void 0:Ne.call(n,t.focusedKey)),Te!=null&&(R.preventDefault(),fe(Te,A==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var qe,ke,je;let Te=t.focusedKey!=null?(qe=n.getKeyRightOf)===null||qe===void 0?void 0:qe.call(n,t.focusedKey):null;Te==null&&a&&(Te=A==="rtl"?(ke=n.getLastKey)===null||ke===void 0?void 0:ke.call(n,t.focusedKey):(je=n.getFirstKey)===null||je===void 0?void 0:je.call(n,t.focusedKey)),Te!=null&&(R.preventDefault(),fe(Te,A==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&R.shiftKey)return;R.preventDefault();let Te=n.getFirstKey(t.focusedKey,$l(R));t.setFocusedKey(Te),Te!=null&&($l(R)&&R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Te):f&&t.replaceSelection(Te))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&R.shiftKey)return;R.preventDefault();let Te=n.getLastKey(t.focusedKey,$l(R));t.setFocusedKey(Te),Te!=null&&($l(R)&&R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Te):f&&t.replaceSelection(Te))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let Te=n.getKeyPageBelow(t.focusedKey);Te!=null&&(R.preventDefault(),fe(Te))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Te=n.getKeyPageAbove(t.focusedKey);Te!=null&&(R.preventDefault(),fe(Te))}break;case"a":$l(R)&&t.selectionMode==="multiple"&&s!==!0&&(R.preventDefault(),t.selectAll());break;case"Escape":l==="clearSelection"&&!o&&t.selectedKeys.size!==0&&(R.stopPropagation(),R.preventDefault(),t.clearSelection());break;case"Tab":if(!g){if(R.shiftKey)r.current.focus();else{let Te=Vr(r.current,{tabbable:!0}),Ye,ht;do ht=Te.lastChild(),ht&&(Ye=ht);while(ht);Ye&&!Ye.contains(document.activeElement)&&wi(Ye)}break}}},E=I.useRef({top:0,left:0});ba($,"scroll",b?void 0:()=>{var R,K,fe,M;E.current={top:(fe=(R=$.current)===null||R===void 0?void 0:R.scrollTop)!==null&&fe!==void 0?fe:0,left:(M=(K=$.current)===null||K===void 0?void 0:K.scrollLeft)!==null&&M!==void 0?M:0}});let T=R=>{if(t.isFocused){R.currentTarget.contains(R.target)||t.setFocused(!1);return}if(R.currentTarget.contains(R.target)){if(t.setFocused(!0),t.focusedKey==null){var K,fe;let le=_e=>{_e!=null&&(t.setFocusedKey(_e),f&&!t.isSelected(_e)&&t.replaceSelection(_e))},Se=R.relatedTarget;var M,oe;Se&&R.currentTarget.compareDocumentPosition(Se)&Node.DOCUMENT_POSITION_FOLLOWING?le((M=t.lastSelectedKey)!==null&&M!==void 0?M:(K=n.getLastKey)===null||K===void 0?void 0:K.call(n)):le((oe=t.firstSelectedKey)!==null&&oe!==void 0?oe:(fe=n.getFirstKey)===null||fe===void 0?void 0:fe.call(n))}else!b&&$.current&&($.current.scrollTop=E.current.top,$.current.scrollLeft=E.current.left);if(t.focusedKey!=null&&$.current){let le=zh(r,t.focusedKey);le instanceof HTMLElement&&(!le.contains(document.activeElement)&&!m&&wi(le),Nd()==="keyboard"&&gp(le,{containingElement:r.current}))}}},P=R=>{R.currentTarget.contains(R.relatedTarget)||t.setFocused(!1)},F=I.useRef(!1);ba(r,hZ,m?R=>{let{detail:K}=R;R.stopPropagation(),t.setFocused(!0),(K==null?void 0:K.focusStrategy)==="first"&&(F.current=!0)}:void 0);let q=cn(()=>{var R,K;let fe=(K=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n))!==null&&K!==void 0?K:null;if(fe==null){let M=ir();P7(r.current),Hb(M,null),t.collection.size>0&&(F.current=!1)}else t.setFocusedKey(fe),F.current=!1});p2(()=>{F.current&&q()},[t.collection,q]);let te=cn(()=>{t.collection.size>0&&(F.current=!1)});p2(()=>{te()},[t.focusedKey,te]),ba(r,fZ,m?R=>{var K;R.stopPropagation(),t.setFocused(!1),!((K=R.detail)===null||K===void 0)&&K.clearFocusKey&&t.setFocusedKey(null)}:void 0);const se=I.useRef(i),ae=I.useRef(!1);I.useEffect(()=>{if(se.current){var R,K;let oe=null;var fe;i==="first"&&(oe=(fe=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n))!==null&&fe!==void 0?fe:null);var M;i==="last"&&(oe=(M=(K=n.getLastKey)===null||K===void 0?void 0:K.call(n))!==null&&M!==void 0?M:null);let le=t.selectedKeys;if(le.size){for(let Se of le)if(t.canSelectItem(Se)){oe=Se;break}}t.setFocused(!0),t.setFocusedKey(oe),oe==null&&!m&&r.current&&Tu(r.current),t.collection.size>0&&(se.current=!1,ae.current=!0)}});let O=I.useRef(t.focusedKey),Ee=I.useRef(null);I.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==O.current||ae.current)&&$.current&&r.current){let R=Nd(),K=zh(r,t.focusedKey);if(!(K instanceof HTMLElement))return;(R==="keyboard"||ae.current)&&(Ee.current&&cancelAnimationFrame(Ee.current),Ee.current=requestAnimationFrame(()=>{$.current&&(PP($.current,K),R!=="virtual"&&gp(K,{containingElement:r.current}))}))}!m&&t.isFocused&&t.focusedKey==null&&O.current!=null&&r.current&&Tu(r.current),O.current=t.focusedKey,ae.current=!1}),I.useEffect(()=>()=>{Ee.current&&cancelAnimationFrame(Ee.current)},[]),ba(r,"react-aria-focus-scope-restore",R=>{R.preventDefault(),t.setFocused(!0)});let be={onKeyDown:C,onFocus:T,onBlur:P,onMouseDown(R){$.current===R.target&&R.preventDefault()}},{typeSelectProps:z}=mJ({keyboardDelegate:n,selectionManager:t});h||(be=Qt(z,be));let G;m||(G=t.focusedKey==null?0:-1);let V=fJ(t.collection);return{collectionProps:Qt(be,{tabIndex:G,"data-collection":V})}}function vJ(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:o,focus:s,isDisabled:l,onAction:f,allowsDifferentPressOrigin:h,linkBehavior:m="action"}=e,g=xm();t=zr(t);let b=M=>{if(M.pointerType==="keyboard"&&V3(M))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(m==="selection"&&i.current){let oe=n.getItemProps(r);g.open(i.current,M,oe.href,oe.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):M&&M.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||M&&($l(M)||M.pointerType==="touch"||M.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};I.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(o?P7(i.current):s?s():document.activeElement!==i.current&&i.current&&Tu(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),l=l||n.isDisabled(r);let $={};!o&&!l?$={tabIndex:r===n.focusedKey?0:-1,onFocus(M){M.target===i.current&&n.setFocusedKey(r)}}:l&&($.onMouseDown=M=>{M.preventDefault()});let x=n.isLink(r)&&m==="override",A=f&&e.UNSTABLE_itemBehavior==="action",w=n.isLink(r)&&m!=="selection"&&m!=="none",C=!l&&n.canSelectItem(r)&&!x&&!A,E=(f||w)&&!l,T=E&&(n.selectionBehavior==="replace"?!C:!C||n.isEmpty),P=E&&C&&n.selectionBehavior==="replace",F=T||P,q=I.useRef(null),te=F&&C,se=I.useRef(!1),ae=I.useRef(!1),O=n.getItemProps(r),Ee=M=>{if(f){var oe;f(),(oe=i.current)===null||oe===void 0||oe.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}w&&i.current&&g.open(i.current,M,O.href,O.routerOptions)},be={ref:i};if(a?(be.onPressStart=M=>{q.current=M.pointerType,se.current=te,M.pointerType==="keyboard"&&(!F||yw())&&b(M)},h?(be.onPressUp=T?void 0:M=>{M.pointerType==="mouse"&&C&&b(M)},be.onPress=T?Ee:M=>{M.pointerType!=="keyboard"&&M.pointerType!=="mouse"&&C&&b(M)}):be.onPress=M=>{if(T||P&&M.pointerType!=="mouse"){if(M.pointerType==="keyboard"&&!vw())return;Ee(M)}else M.pointerType!=="keyboard"&&C&&b(M)}):(be.onPressStart=M=>{q.current=M.pointerType,se.current=te,ae.current=T,C&&(M.pointerType==="mouse"&&!T||M.pointerType==="keyboard"&&(!E||yw()))&&b(M)},be.onPress=M=>{(M.pointerType==="touch"||M.pointerType==="pen"||M.pointerType==="virtual"||M.pointerType==="keyboard"&&F&&vw()||M.pointerType==="mouse"&&ae.current)&&(F?Ee(M):C&&b(M))}),$["data-collection"]=hJ(n.collection),$["data-key"]=r,be.preventFocusOnPress=o,o&&(be=Qt(be,{onPressStart(M){M.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(M){M.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),O)for(let M of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])O[M]&&(be[M]=Ou(be[M],O[M]));let{pressProps:z,isPressed:G}=hf(be),V=P?M=>{q.current==="mouse"&&(M.stopPropagation(),M.preventDefault(),Ee(M))}:void 0,{longPressProps:R}=qP({isDisabled:!te,onLongPress(M){M.pointerType==="touch"&&(b(M),n.setSelectionBehavior("toggle"))}}),K=M=>{q.current==="touch"&&se.current&&M.preventDefault()},fe=m!=="none"&&n.isLink(r)?M=>{Au.isOpening||M.preventDefault()}:void 0;return{itemProps:Qt($,C||T||o&&!l?z:{},te?R:{},{onDoubleClick:V,onDragStartCapture:K,onClick:fe,id:t},o?{onMouseDown:M=>M.preventDefault()}:void 0),isPressed:G,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:C,hasAction:F}}function vw(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function yw(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class bw{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?zh(this.ref,t):null;if(!r)return null;let i=n.getBoundingClientRect(),a=r.getBoundingClientRect();return{x:a.left-i.left-n.clientLeft+n.scrollLeft,y:a.top-i.top-n.clientTop+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.clientWidth)!==null&&i!==void 0?i:0,height:(a=t==null?void 0:t.clientHeight)!==null&&a!==void 0?a:0}}constructor(t){this.ref=t}}class LB{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 o=a;do{if(i=n(i),i==null)break;a=this.layoutDelegate.getItemRect(i)}while(a&&r(o,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&&!Ql(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&&!Ql(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 o=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(o,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 bw(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 bw(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function yJ(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o}=e,s=w7({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,f=I.useMemo(()=>a||new LB({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:s,layoutDelegate:o}),[a,o,n,r,i,s,l]),{collectionProps:h}=OB({...e,ref:i,selectionManager:t,keyboardDelegate:f});return{listProps:h}}function bJ(e,t,n){let r=Zo(e,{labelable:!0}),i=e.selectionBehavior||"toggle",a=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&a==="action"&&(a="override");let{listProps:o}=yJ({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:a}),{focusWithinProps:s}=hc({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=zr(e.id);Bm.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:a,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:f,fieldProps:h}=Pm({...e,id:l,labelElementType:"span"});return{labelProps:f,listBoxProps:Qt(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Qt(h,o)})}}function VB(e){return null}VB.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:a}=t,o=t.title||t.children,s=t.textValue||(typeof o=="string"?o:"")||t["aria-label"]||"";!s&&!(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:o,textValue:s,"aria-label":t["aria-label"],hasChildNodes:xJ(t),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(i){let l=[];de.default.Children.forEach(a,f=>{l.push({type:"item",element:f})}),yield*l}}}};function xJ(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&de.default.Children.count(e.children)>0)}let DJ=VB;class $J{build(t,n){return this.context=n,xw(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(de.default.isValidElement(n)&&n.type===de.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=[];de.default.Children.forEach(n,o=>{o&&i.push(o)});let a=0;for(let o of i){let s=this.getFullNode({element:o,index:a},{});for(let l of s)a++,yield l}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let a=n.value;if(a!=null){var o;let s=(o=a.key)!==null&&o!==void 0?o:a.id;if(s==null)throw new Error("No key found for item");return s}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(de.default.isValidElement(t.element)&&t.element.type===de.default.Fragment){let A=[];de.default.Children.forEach(t.element.props.children,C=>{A.push(C)});var a;let w=(a=t.index)!==null&&a!==void 0?a:0;for(const C of A)yield*this.getFullNode({element:C,index:w++},n,r,i);return}let o=t.element;if(!o&&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}o=n.renderer(t.value)}if(de.default.isValidElement(o)){let A=o.type;if(typeof A!="function"&&typeof A.getCollectionNode!="function"){let T=o.type;throw new Error(`Unknown element <${T}> in collection.`)}let w=A.getCollectionNode(o.props,this.context);var s;let C=(s=t.index)!==null&&s!==void 0?s:0,E=w.next();for(;!E.done&&E.value;){let T=E.value;t.index=C;var l;let P=(l=T.key)!==null&&l!==void 0?l:null;P==null&&(P=T.element?null:this.getKey(o,t,n,r));let q=[...this.getFullNode({...T,key:P,index:C,wrapper:EJ(t.wrapper,T.wrapper)},this.getChildState(n,T),r?`${r}${o.key}`:o.key,i)];for(let te of q){var f,h;te.value=(h=(f=T.value)!==null&&f!==void 0?f:t.value)!==null&&h!==void 0?h:null,te.value&&this.cache.set(te.value,te);var m;if(t.type&&te.type!==t.type)throw new Error(`Unsupported type <${U4(te.type)}> in <${U4((m=i==null?void 0:i.type)!==null&&m!==void 0?m:"unknown parent type")}>. Only <${U4(t.type)}> is supported.`);C++,yield te}E=w.next(q)}return}if(t.key==null||t.type==null)return;let g=this;var b,$;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:($=t.textValue)!==null&&$!==void 0?$:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:xw(function*(){if(!t.hasChildNodes||!t.childNodes)return;let A=0;for(let w of t.childNodes()){w.key!=null&&(w.key=`${x.key}${w.key}`);let C=g.getFullNode({...w,index:A},g.getChildState(n,w),x.key,x);for(let E of C)A++,yield E}})};yield x}constructor(){this.cache=new WeakMap}}function xw(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 EJ(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function U4(e){return e[0].toUpperCase()+e.slice(1)}function CJ(e,t,n){let r=I.useMemo(()=>new $J,[]),{children:i,items:a,collection:o}=e;return I.useMemo(()=>{if(o)return o;let l=r.build({children:i,items:a},n);return t(l)},[r,i,a,o,n,t])}function Fm(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function wJ(e){return AJ(e)}function AJ(e,t){for(let n of e)return n}function W4(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Dw(e,t),t],i=[...Dw(e,n),n],a=r.slice(0,i.length).findIndex((o,s)=>o!==i[s]);return a!==-1?(t=r[a],n=i[a],t.index-n.index):r.findIndex(o=>o===n)>=0?1:(i.findIndex(o=>o===t)>=0,-1)}function Dw(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 $w=new WeakMap;function NB(e){let t=$w.get(e);if(t!=null)return t;let n=0,r=i=>{for(let a of i)a.type==="section"?r(Fm(a,e)):a.type==="item"&&n++};return r(e),$w.set(e,n),n}function SJ(e,t,n){var r,i;let{key:a}=e,o=Bm.get(t);var s;let l=(s=e.isDisabled)!==null&&s!==void 0?s:t.selectionManager.isDisabled(a);var f;let h=(f=e.isSelected)!==null&&f!==void 0?f:t.selectionManager.isSelected(a);var m;let g=(m=e.shouldSelectOnPressUp)!==null&&m!==void 0?m:o==null?void 0:o.shouldSelectOnPressUp;var b;let $=(b=e.shouldFocusOnHover)!==null&&b!==void 0?b:o==null?void 0:o.shouldFocusOnHover;var x;let A=(x=e.shouldUseVirtualFocus)!==null&&x!==void 0?x:o==null?void 0:o.shouldUseVirtualFocus;var w;let C=(w=e.isVirtualized)!==null&&w!==void 0?w:o==null?void 0:o.isVirtualized,E=Zl(),T=Zl(),P={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?h:void 0};oo()&&wb()||(P["aria-label"]=e["aria-label"],P["aria-labelledby"]=E,P["aria-describedby"]=T);let F=t.collection.getItem(a);if(C){let R=Number(F==null?void 0:F.index);P["aria-posinset"]=Number.isNaN(R)?void 0:R+1,P["aria-setsize"]=NB(t.collection)}let q=o!=null&&o.onAction?()=>{var R;return o==null||(R=o.onAction)===null||R===void 0?void 0:R.call(o,a)}:void 0,te=RB(t,a),{itemProps:se,isPressed:ae,isFocused:O,hasAction:Ee,allowsSelection:be}=vJ({selectionManager:t.selectionManager,key:a,ref:n,shouldSelectOnPressUp:g,allowsDifferentPressOrigin:g&&$,isVirtualized:C,shouldUseVirtualFocus:A,isDisabled:l,onAction:q||!(F==null||(r=F.props)===null||r===void 0)&&r.onAction?Ou(F==null||(i=F.props)===null||i===void 0?void 0:i.onAction,q):void 0,linkBehavior:o==null?void 0:o.linkBehavior,UNSTABLE_itemBehavior:o==null?void 0:o.UNSTABLE_itemBehavior,id:te}),{hoverProps:z}=LZ({isDisabled:l||!$,onHoverStart(){w2()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(a))}}),G=Zo(F==null?void 0:F.props);delete G.id;let V=aZ(F==null?void 0:F.props);return{optionProps:{...P,...Qt(G,se,z,V),id:te},labelProps:{id:E},descriptionProps:{id:T},isFocused:O,isFocusVisible:O&&t.selectionManager.isFocused&&w2(),isSelected:h,isDisabled:l,isPressed:ae,allowsSelection:be,hasAction:Ee}}var jB={};jB={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var KB={};KB={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var zB={};zB={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var qB={};qB={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var UB={};UB={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var WB={};WB={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var HB={};HB={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var GB={};GB={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var YB={};YB={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var ZB={};ZB={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var XB={};XB={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var QB={};QB={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var JB={};JB={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var eF={};eF={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var tF={};tF={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var nF={};nF={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var rF={};rF={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var iF={};iF={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var aF={};aF={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var oF={};oF={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var sF={};sF={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var uF={};uF={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var lF={};lF={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var cF={};cF={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var dF={};dF={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var fF={};fF={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var hF={};hF={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var pF={};pF={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var mF={};mF={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var gF={};gF={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var vF={};vF={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var yF={};yF={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var bF={};bF={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var xF={};xF={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var DF={};DF={"ar-AE":jB,"bg-BG":KB,"cs-CZ":zB,"da-DK":qB,"de-DE":UB,"el-GR":WB,"en-US":HB,"es-ES":GB,"et-EE":YB,"fi-FI":ZB,"fr-FR":XB,"he-IL":QB,"hr-HR":JB,"hu-HU":eF,"it-IT":tF,"ja-JP":nF,"ko-KR":rF,"lt-LT":iF,"lv-LV":aF,"nb-NO":oF,"nl-NL":sF,"pl-PL":uF,"pt-BR":lF,"pt-PT":cF,"ro-RO":dF,"ru-RU":fF,"sk-SK":hF,"sl-SI":pF,"sr-SP":mF,"sv-SE":gF,"tr-TR":vF,"uk-UA":yF,"zh-CN":bF,"zh-TW":xF};function TJ(e){return e&&e.__esModule?e.default:e}function PJ(e,t,n){let{type:r="menu",isDisabled:i,trigger:a="press"}=e,o=zr(),{triggerProps:s,overlayProps:l}=eJ({type:r},t,n),f=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=Ta(TJ(DF),"@react-aria/menu"),{longPressProps:m}=qP({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&&(wi(b.target),t.open(b.pointerType==="virtual"?"first":null))},onPress(b){b.pointerType==="touch"&&!i&&(wi(b.target),t.toggle())}};return delete s.onPress,{menuTriggerProps:{...s,...a==="press"?g:m,id:o,onKeyDown:f},menuProps:{...l,"aria-labelledby":o,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function _J(e){return e&&e.__esModule?e.default:e}function BJ(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:a,keyboardDelegate:o,layoutDelegate:s,shouldFocusWrap:l,isReadOnly:f,isDisabled:h}=e,m=I.useRef(null);n=n??m;let g=Ta(_J(_B),"@react-aria/combobox"),{menuTriggerProps:b,menuProps:$}=PJ({type:"listbox",isDisabled:h||f},t,n);Bm.set(t,{id:$.id});let{collection:x}=t,{disabledKeys:A}=t.selectionManager,w=I.useMemo(()=>o||new LB({collection:x,disabledKeys:A,ref:a,layoutDelegate:s}),[o,s,x,A,a]),{collectionProps:C}=OB({selectionManager:t.selectionManager,keyboardDelegate:w,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:l,ref:i,isVirtualized:!0}),E=xm(),T=je=>{if(!je.nativeEvent.isComposing)switch(je.key){case"Enter":case"Tab":if(t.isOpen&&je.key==="Enter"&&je.preventDefault(),t.isOpen&&a.current&&t.selectionManager.focusedKey!=null){let Te=t.collection.getItem(t.selectionManager.focusedKey);if(Te!=null&&Te.props.href){let Ye=a.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);je.key==="Enter"&&Ye instanceof HTMLAnchorElement&&E.open(Ye,je,Te.props.href,Te.props.routerOptions),t.close();break}else if(Te!=null&&Te.props.onAction){Te.props.onAction(),t.close();break}}t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&je.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}},P=je=>{var Te;let Ye=(n==null?void 0:n.current)&&n.current===je.relatedTarget,ht=(Te=r.current)===null||Te===void 0?void 0:Te.contains(je.relatedTarget);Ye||ht||(e.onBlur&&e.onBlur(je),t.setFocused(!1))},F=je=>{t.isFocused||(e.onFocus&&e.onFocus(je),t.setFocused(!0))},{isInvalid:q,validationErrors:te,validationDetails:se}=t.displayValidation,{labelProps:ae,inputProps:O,descriptionProps:Ee,errorMessageProps:be}=VQ({...e,onChange:t.setInputValue,onKeyDown:f?e.onKeyDown:Ou(t.isOpen&&C.onKeyDown,T,e.onKeyDown),onBlur:P,value:t.inputValue,defaultValue:t.defaultInputValue,onFocus:F,autoComplete:"off",validate:void 0,[tc]:t},i),z=je=>{if(je.pointerType==="touch"){var Te;(Te=i.current)===null||Te===void 0||Te.focus(),t.toggle(null,"manual")}},G=je=>{if(je.pointerType!=="touch"){var Te;(Te=i.current)===null||Te===void 0||Te.focus(),t.toggle(je.pointerType==="keyboard"||je.pointerType==="virtual"?"first":null,"manual")}},V=Xl({id:b.id,"aria-label":g.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||ae.id}),R=Xl({id:$.id,"aria-label":g.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||ae.id}),K=I.useRef(0),fe=je=>{if(h||f)return;if(je.timeStamp-K.current<500){var Te;je.preventDefault(),(Te=i.current)===null||Te===void 0||Te.focus();return}let Ye=je.target.getBoundingClientRect(),ht=je.changedTouches[0],Ht=Math.ceil(Ye.left+.5*Ye.width),xt=Math.ceil(Ye.top+.5*Ye.height);if(ht.clientX===Ht&&ht.clientY===xt){var _t;je.preventDefault(),(_t=i.current)===null||_t===void 0||_t.focus(),t.toggle(null,"manual"),K.current=je.timeStamp}},M=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var oe;let le=(oe=M==null?void 0:M.parentKey)!==null&&oe!==void 0?oe:null;var Se;let _e=(Se=t.selectionManager.focusedKey)!==null&&Se!==void 0?Se:null,Be=I.useRef(le),Ge=I.useRef(_e);I.useEffect(()=>{if(Oh()&&M!=null&&_e!=null&&_e!==Ge.current){let Te=t.selectionManager.isSelected(_e),Ye=le!=null?t.collection.getItem(le):null,ht=(Ye==null?void 0:Ye["aria-label"])||(typeof(Ye==null?void 0:Ye.rendered)=="string"?Ye.rendered:"")||"";var je;let Ht=g.format("focusAnnouncement",{isGroupChange:(je=Ye&&le!==Be.current)!==null&&je!==void 0?je:!1,groupTitle:ht,groupCount:Ye?[...Fm(Ye,t.collection)].length:0,optionText:M["aria-label"]||M.textValue||"",isSelected:Te});Kl(Ht)}Be.current=le,Ge.current=_e});let Xe=NB(t.collection),Ne=I.useRef(Xe),qe=I.useRef(t.isOpen);I.useEffect(()=>{let je=t.isOpen!==qe.current&&(t.selectionManager.focusedKey==null||Oh());if(t.isOpen&&(je||Xe!==Ne.current)){let Te=g.format("countAnnouncement",{optionCount:Xe});Kl(Te)}Ne.current=Xe,qe.current=t.isOpen});let ke=I.useRef(t.selectedKey);return I.useEffect(()=>{if(Oh()&&t.isFocused&&t.selectedItem&&t.selectedKey!==ke.current){let je=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",Te=g.format("selectedAnnouncement",{optionText:je});Kl(Te)}ke.current=t.selectedKey}),I.useEffect(()=>{if(t.isOpen)return kB([i.current,r.current].filter(je=>je!=null))},[t.isOpen,i,r]),h3(()=>{!M&&i.current&&ir(Xt(i.current))===i.current&&Hb(i.current,null)},[M]),ba(a,"react-aria-item-action",t.isOpen?()=>{t.close()}:void 0),{labelProps:ae,buttonProps:{...b,...V,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:z,onPressStart:G,isDisabled:h||f},inputProps:Qt(O,{role:"combobox","aria-expanded":b["aria-expanded"],"aria-controls":t.isOpen?$.id:void 0,"aria-autocomplete":"list","aria-activedescendant":M?RB(t,M.key):void 0,onTouchEnd:fe,autoCorrect:"off",spellCheck:"false"}),listBoxProps:Qt($,R,{autoFocus:t.focusStrategy||!0,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection",UNSTABLE_itemBehavior:"action"}),descriptionProps:Ee,errorMessageProps:be,isInvalid:q,validationErrors:te,validationDetails:se}}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 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 CF={};CF={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 AF={};AF={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 SF={};SF={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 TF={};TF={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 PF={};PF={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 _F={};_F={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 BF={};BF={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 FF={};FF={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 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 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 RF={};RF={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 IF={};IF={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 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 LF={};LF={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 VF={};VF={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 NF={};NF={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 jF={};jF={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 KF={};KF={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 zF={};zF={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 qF={};qF={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 UF={};UF={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 WF={};WF={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 HF={};HF={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 GF={};GF={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 YF={};YF={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 ZF={};ZF={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 XF={};XF={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 QF={};QF={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 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 ek={};ek={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 tk={};tk={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={"ar-AE":$F,"bg-BG":EF,"cs-CZ":CF,"da-DK":wF,"de-DE":AF,"el-GR":SF,"en-US":TF,"es-ES":PF,"et-EE":_F,"fi-FI":BF,"fr-FR":FF,"he-IL":kF,"hr-HR":MF,"hu-HU":RF,"it-IT":IF,"ja-JP":OF,"ko-KR":LF,"lt-LT":VF,"lv-LV":NF,"nb-NO":jF,"nl-NL":KF,"pl-PL":zF,"pt-BR":qF,"pt-PT":UF,"ro-RO":WF,"ru-RU":HF,"sk-SK":GF,"sl-SI":YF,"sr-SP":ZF,"sv-SE":XF,"tr-TR":QF,"uk-UA":JF,"zh-CN":ek,"zh-TW":tk};function Xb(e,t,n){let{direction:r}=_r(),i=I.useMemo(()=>Sm(t),[t]),a=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":if(l.preventDefault(),l.stopPropagation(),r==="rtl"){if(t.current){let f=l.target,h=Ew(t.current,f.getBoundingClientRect().left,-1);h&&h.focus()}}else i.focusPrevious();break;case"ArrowRight":if(l.preventDefault(),l.stopPropagation(),r==="rtl"){if(t.current){let f=l.target,h=Ew(t.current,f.getBoundingClientRect().left,1);h&&h.focus()}}else i.focusNext();break}},o=()=>{var l;if(!t.current)return;let f=(l=window.event)===null||l===void 0?void 0:l.target,h=Vr(t.current,{tabbable:!0});if(f&&(h.currentNode=f,f=h.previousNode()),!f){let m;do m=h.lastChild(),m&&(f=m);while(m)}for(;f!=null&&f.hasAttribute("data-placeholder");){let m=h.previousNode();if(m&&m.hasAttribute("data-placeholder"))f=m;else break}f&&f.focus()},{pressProps:s}=hf({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&o()},onPress(l){(l.pointerType==="touch"||l.pointerType==="pen")&&o()}});return Qt(s,{onKeyDown:a})}function Ew(e,t,n){let r=Vr(e,{tabbable:!0}),i=r.nextNode(),a=null,o=1/0;for(;i;){let l=i.getBoundingClientRect().left-t,f=Math.abs(l);Math.sign(l)===n&&f<o&&(a=i,o=f),i=r.nextNode()}return a}function FJ(e){return e&&e.__esModule?e.default:e}const nk=new WeakMap,_d="__role_"+Date.now(),rk="__focusManager_"+Date.now();function ik(e,t,n){var r;let{isInvalid:i,validationErrors:a,validationDetails:o}=t.displayValidation,{labelProps:s,fieldProps:l,descriptionProps:f,errorMessageProps:h}=_m({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||a}),m=I.useRef(null),{focusWithinProps:g}=hc({...e,onFocusWithin(ae){var O;m.current=t.value,(O=e.onFocus)===null||O===void 0||O.call(e,ae)},onBlurWithin:ae=>{var O;t.confirmPlaceholder(),t.value!==m.current&&t.commitValidation(),(O=e.onBlur)===null||O===void 0||O.call(e,ae)},onFocusWithinChange:e.onFocusChange}),b=Ta(FJ(xf),"@react-aria/datepicker"),$=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",x=t.maxGranularity==="hour"?"time":"date",A=t.value?b.format($,{[x]:t.formatValue({month:"long"})}):"",w=fc(A),C=e[_d]==="presentation"?l["aria-describedby"]:[w["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=e[rk],T=I.useMemo(()=>E||Sm(n),[E,n]),P=Xb(t,n,e[_d]==="presentation");nk.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[s.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:C,focusManager:T});let F=I.useRef(e.autoFocus),q;e[_d]==="presentation"?q={role:"presentation"}:q=Qt(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":C}),I.useEffect(()=>{F.current&&T.focusFirst(),F.current=!1},[T]),Tb(e.inputRef,t.defaultValue,t.setValue),p_({...e,focus(){T.focusFirst()}},t,e.inputRef);let te={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"&&(te.type="text",te.hidden=!0,te.required=e.isRequired,te.onChange=()=>{});let se=Zo(e);return{labelProps:{...s,onClick:()=>{T.focusFirst()}},fieldProps:Qt(se,q,P,g,{onKeyDown(ae){e.onKeyDown&&e.onKeyDown(ae)},onKeyUp(ae){e.onKeyUp&&e.onKeyUp(ae)},style:{unicodeBidi:"isolate"}}),inputProps:te,descriptionProps:f,errorMessageProps:h,isInvalid:i,validationErrors:a,validationDetails:o}}function kJ(e,t,n){var r;let i=ik(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function MJ(e){return e&&e.__esModule?e.default:e}function RJ(e,t,n){let r=zr(),i=zr(),a=zr(),o=Ta(MJ(xf),"@react-aria/datepicker"),{isInvalid:s,validationErrors:l,validationDetails:f}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:g,errorMessageProps:b}=_m({...e,labelElementType:"span",isInvalid:s,errorMessage:e.errorMessage||l}),$=Xb(t,n),x=m["aria-labelledby"]||m.id,{locale:A}=_r(),w=t.formatValue(A,{month:"long"}),C=w?o.format("selectedDateDescription",{date:w}):"",E=fc(C),T=[E["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,P=Zo(e),F=I.useMemo(()=>Sm(n),[n]),q=I.useRef(!1),{focusWithinProps:te}=hc({...e,isDisabled:t.isOpen,onBlurWithin:se=>{let ae=document.getElementById(i);if(!(ae!=null&&ae.contains(se.relatedTarget))){var O,Ee;q.current=!1,(O=e.onBlur)===null||O===void 0||O.call(e,se),(Ee=e.onFocusChange)===null||Ee===void 0||Ee.call(e,!1)}},onFocusWithin:se=>{if(!q.current){var ae,O;q.current=!0,(ae=e.onFocus)===null||ae===void 0||ae.call(e,se),(O=e.onFocusChange)===null||O===void 0||O.call(e,!0)}}});return{groupProps:Qt(P,$,m,E,te,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":x,"aria-describedby":T,onKeyDown(se){t.isOpen||e.onKeyDown&&e.onKeyDown(se)},onKeyUp(se){t.isOpen||e.onKeyUp&&e.onKeyUp(se)}}),labelProps:{...h,onClick:()=>{F.focusFirst()}},fieldProps:{...m,id:a,[_d]:"presentation","aria-describedby":T,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,[tc]:t,autoFocus:e.autoFocus,name:e.name,form:e.form},descriptionProps:g,errorMessageProps:b,buttonProps:{...E,id:r,"aria-haspopup":"dialog","aria-label":o.format("calendar"),"aria-labelledby":`${r} ${x}`,"aria-describedby":T,"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(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:s,validationErrors:l,validationDetails:f}}function IJ(e){return e&&e.__esModule?e.default:e}function OJ(){let{locale:e}=_r(),t=HP(IJ(xf),"@react-aria/datepicker");return I.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new LJ(e,t)}},[e,t])}class LJ{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function VJ(e,t,n){let r=I.useRef(""),{locale:i,direction:a}=_r(),o=OJ(),{ariaLabel:s,ariaLabelledBy:l,ariaDescribedBy:f,focusManager:h}=nk.get(t),m=e.isPlaceholder?"":e.text,g=I.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),b=Za({month:"long",timeZone:g.timeZone}),$=Za({hour:"numeric",hour12:g.hour12,timeZone:g.timeZone});if(e.type==="month"&&!e.isPlaceholder){let M=b.format(t.dateValue);m=M!==m?`${m} – ${M}`:M}else e.type==="hour"&&!e.isPlaceholder&&(m=$.format(t.dateValue));let{spinButtonProps:x}=jQ({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 C7(i,{maximumFractionDigits:0}),[i]),w=()=>{if(e.text===e.placeholder&&h.focusPrevious(),A.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let M=e.text.slice(0,-1),oe=A.parse(M);M=oe===0?"":M,M.length===0||oe===0?t.clearSegment(e.type):t.setSegment(e.type,oe),r.current=M}else e.type==="dayPeriod"&&t.clearSegment(e.type)},C=M=>{if(M.key==="a"&&(oo()?M.metaKey:M.ctrlKey)&&M.preventDefault(),!(M.ctrlKey||M.metaKey||M.shiftKey||M.altKey))switch(M.key){case"Backspace":case"Delete":M.preventDefault(),M.stopPropagation(),w();break}},{startsWith:E}=A7({sensitivity:"base"}),T=Za({hour:"numeric",hour12:!0}),P=I.useMemo(()=>{let M=new Date;return M.setHours(0),T.formatToParts(M).find(oe=>oe.type==="dayPeriod").value},[T]),F=I.useMemo(()=>{let M=new Date;return M.setHours(12),T.formatToParts(M).find(oe=>oe.type==="dayPeriod").value},[T]),q=Za({year:"numeric",era:"narrow",timeZone:"UTC"}),te=I.useMemo(()=>{if(e.type!=="era")return[];let M=kn(new Gn(1,1,1),t.calendar),oe=t.calendar.getEras().map(Se=>{let _e=M.set({year:1,month:1,day:1,era:Se}).toDate("UTC"),Ge=q.formatToParts(_e).find(Xe=>Xe.type==="era").value;return{era:Se,formatted:Ge}}),le=NJ(oe.map(Se=>Se.formatted));if(le)for(let Se of oe)Se.formatted=Se.formatted.slice(le);return oe},[q,t.calendar,e.type]),se=M=>{if(t.isDisabled||t.isReadOnly)return;let oe=r.current+M;switch(e.type){case"dayPeriod":if(E(P,M))t.setSegment("dayPeriod",0);else if(E(F,M))t.setSegment("dayPeriod",12);else break;h.focusNext();break;case"era":{let le=te.find(Se=>E(Se.formatted,M));le&&(t.setSegment("era",le.era),h.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!A.isValidPartialNumber(oe))return;let le=A.parse(oe),Se=le,_e=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":le>11&&(Se=A.parse(M));break;case"h12":_e=!1,le>12&&(Se=A.parse(M));break}e.value!==void 0&&e.value>=12&&le>1&&(le+=12)}else e.maxValue!==void 0&&le>e.maxValue&&(Se=A.parse(M));if(isNaN(le))return;let Be=Se!==0||_e;Be&&t.setSegment(e.type,Se),e.maxValue!==void 0&&(+(le+"0")>e.maxValue||oe.length>=String(e.maxValue).length)?(r.current="",Be&&h.focusNext()):r.current=oe;break}}},ae=()=>{r.current="",n.current&&gp(n.current,{containingElement:Dm(n.current)});let M=window.getSelection();M==null||M.collapse(n.current)},O=I.useRef(typeof document<"u"?document:null);ba(O,"selectionchange",()=>{var M;let oe=window.getSelection();oe!=null&&oe.anchorNode&&(!((M=n.current)===null||M===void 0)&&M.contains(oe==null?void 0:oe.anchorNode))&&oe.collapse(n.current)});let Ee=I.useRef("");ba(n,"beforeinput",M=>{if(n.current)switch(M.preventDefault(),M.inputType){case"deleteContentBackward":case"deleteContentForward":A.isValidPartialNumber(e.text)&&!t.isReadOnly&&w();break;case"insertCompositionText":Ee.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:M.data!=null&&se(M.data);break}}),ba(n,"input",M=>{let{inputType:oe,data:le}=M;switch(oe){case"insertCompositionText":n.current&&(n.current.textContent=Ee.current),le!=null&&(E(P,le)||E(F,le))&&se(le);break}}),hn(()=>{let M=n.current;return()=>{document.activeElement===M&&(h.focusPrevious()||h.focusNext())}},[n,h]);let be=df()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},z=I.useMemo(()=>t.segments.find(M=>M.isEditable),[t.segments]);e!==z&&!t.isInvalid&&(f=void 0);let G=zr(),V=!t.isDisabled&&!t.isReadOnly&&e.isEditable,R=e.type==="literal"?"":o.of(e.type),K=Xl({"aria-label":`${R}${s?`, ${s}`:""}${l?", ":""}`,"aria-labelledby":l});if(e.type==="literal")return{segmentProps:{"aria-hidden":!0}};let fe={caretColor:"transparent"};if(a==="rtl"){fe.unicodeBidi="embed";let M=g[e.type];(M==="numeric"||M==="2-digit")&&(fe.direction="ltr")}return{segmentProps:Qt(x,K,{id:G,...be,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":f,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:V,suppressContentEditableWarning:V,spellCheck:V?"false":void 0,autoCorrect:V?"off":void 0,[parseInt(de.default.version,10)>=17?"enterKeyHint":"enterkeyhint"]:V?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!V?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:C,onFocus:ae,style:fe,onPointerDown(M){M.stopPropagation()},onMouseDown(M){M.stopPropagation()}})}}function NJ(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 jJ(e){return e&&e.__esModule?e.default:e}function KJ(e,t,n){var r,i,a,o,s;let l=Ta(jJ(xf),"@react-aria/datepicker"),{isInvalid:f,validationErrors:h,validationDetails:m}=t.displayValidation,{labelProps:g,fieldProps:b,descriptionProps:$,errorMessageProps:x}=_m({...e,labelElementType:"span",isInvalid:f,errorMessage:e.errorMessage||h}),A=b["aria-labelledby"]||b.id,{locale:w}=_r(),C=t.formatValue(w,{month:"long"}),E=C?l.format("selectedRangeDescription",{startDate:C.start,endDate:C.end}):"",T=fc(E),P={"aria-label":l.format("startDate"),"aria-labelledby":A},F={"aria-label":l.format("endDate"),"aria-labelledby":A},q=zr(),te=zr(),se=Xb(t,n),ae=[T["aria-describedby"],b["aria-describedby"]].filter(Boolean).join(" ")||void 0,O=I.useMemo(()=>Sm(n,{accept:M=>M.id!==q}),[n,q]),Ee={[rk]:O,[_d]:"presentation","aria-describedby":ae,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},be=Zo(e),z=I.useRef(!1),{focusWithinProps:G}=hc({...e,isDisabled:t.isOpen,onBlurWithin:M=>{let oe=document.getElementById(te);if(!(oe!=null&&oe.contains(M.relatedTarget))){var le,Se;z.current=!1,(le=e.onBlur)===null||le===void 0||le.call(e,M),(Se=e.onFocusChange)===null||Se===void 0||Se.call(e,!1)}},onFocusWithin:M=>{if(!z.current){var oe,le;z.current=!0,(oe=e.onFocus)===null||oe===void 0||oe.call(e,M),(le=e.onFocusChange)===null||le===void 0||le.call(e,!0)}}}),V=I.useRef(uu),R=I.useRef(uu);var K,fe;return{groupProps:Qt(be,se,b,T,G,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":ae,onKeyDown(M){t.isOpen||e.onKeyDown&&e.onKeyDown(M)},onKeyUp(M){t.isOpen||e.onKeyUp&&e.onKeyUp(M)}}),labelProps:{...g,onClick:()=>{O.focusFirst()}},buttonProps:{...T,id:q,"aria-haspopup":"dialog","aria-label":l.format("calendar"),"aria-labelledby":`${q} ${A}`,"aria-describedby":ae,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:te,"aria-labelledby":`${q} ${A}`},startFieldProps:{...P,...Ee,value:(K=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&K!==void 0?K:null,defaultValue:(i=t.defaultValue)===null||i===void 0?void 0:i.start,onChange:M=>t.setDateTime("start",M),autoFocus:e.autoFocus,name:e.startName,form:e.form,[tc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(M){V.current=M,t.updateValidation(Ap(M,R.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...F,...Ee,value:(fe=(a=t.value)===null||a===void 0?void 0:a.end)!==null&&fe!==void 0?fe:null,defaultValue:(o=t.defaultValue)===null||o===void 0?void 0:o.end,onChange:M=>t.setDateTime("end",M),name:e.endName,form:e.form,[tc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(M){R.current=M,t.updateValidation(Ap(V.current,M))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:$,errorMessageProps:x,calendarProps:{autoFocus:!0,value:!((s=t.dateRange)===null||s===void 0)&&s.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(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:f,validationErrors:h,validationDetails:m}}function zJ(e,t){let{role:n="dialog"}=e,r=Zl();r=e["aria-label"]?void 0:r;let i=I.useRef(!1);return I.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Tu(t.current);let a=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(i.current=!0,t.current&&(t.current.blur(),Tu(t.current)),i.current=!1)},500);return()=>{clearTimeout(a)}}},[t]),cJ(),{dialogProps:{...Zo(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:a=>{i.current&&a.stopPropagation()}},titleProps:{id:r}}}var ri=function(e){return e[e.none=0]="none",e[e.cancel=0]="cancel",e[e.move=1]="move",e[e.copy=2]="copy",e[e.link=4]="link",e[e.all=7]="all",e}({});const ak={...ri,copyMove:3,copyLink:6,linkMove:5,all:7,uninitialized:7},qJ=sk(ak);qJ[7]="all";const ok={none:"cancel",link:"link",copy:"copy",move:"move"},H4=sk(ok);function sk(e){let t={};for(let n in e)t[e[n]]=n;return t}const N3="application/vnd.react-aria.items+json",Tp="application/octet-stream",UJ=Symbol();function WJ(e){return e||(e="virtual"),e==="pointer"&&(e="virtual"),e==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(e="touch"),e}function HJ(){return WJ(FZ())}class Ch{has(t){return this.includesUnknownTypes||t===UJ&&this.types.has(Tp)?!0:typeof t=="string"&&this.types.has(t)}constructor(t){this.types=new Set;let n=!1;for(let r of t.items)r.type!==N3&&(r.kind==="file"&&(n=!0),r.type?this.types.add(r.type):this.types.add(Tp));this.includesUnknownTypes=!n&&t.types.includes("Files")}}function GJ(e){let t=[];if(!e)return t;let n=!1;if(e.types.includes(N3))try{let r=e.getData(N3),i=JSON.parse(r);for(let a of i)t.push({kind:"text",types:new Set(Object.keys(a)),getText:o=>Promise.resolve(a[o])});n=!0}catch{}if(!n){let r=new Map;for(let i of e.items)if(i.kind==="string")r.set(i.type||Tp,e.getData(i.type));else if(i.kind==="file")if(typeof i.webkitGetAsEntry=="function"){let a=i.webkitGetAsEntry();if(!a)continue;a.isFile?t.push(j3(i.getAsFile())):a.isDirectory&&t.push(uk(a))}else t.push(j3(i.getAsFile()));r.size>0&&t.push({kind:"text",types:new Set(r.keys()),getText:i=>Promise.resolve(r.get(i))})}return t}function YJ(e){return typeof e.text=="function"?e.text():new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{t(r.result)},r.onerror=n,r.readAsText(e)})}function j3(e){if(!e)throw new Error("No file provided");return{kind:"file",type:e.type||Tp,name:e.name,getText:()=>YJ(e),getFile:()=>Promise.resolve(e)}}function uk(e){return{kind:"directory",name:e.name,getEntries:()=>ZJ(e)}}async function*ZJ(e){let t=e.createReader(),n;do{n=await new Promise((r,i)=>{t.readEntries(r,i)});for(let r of n)if(r.isFile){let i=await XJ(r);yield j3(i)}else r.isDirectory&&(yield uk(r))}while(n.length>0)}function XJ(e){return new Promise((t,n)=>e.file(t,n))}let lk={draggingKeys:new Set};function QJ(e){lk=e}let Cw=ri.none,ww=new Map,Aw=null,Sw=new Set;function JJ(e){return ww.set(e.element,e),()=>{ww.delete(e.element)}}function eee(){let[e,t]=I.useState(Aw);return I.useEffect(()=>{let n=()=>t(Aw);return Sw.add(n),()=>{Sw.delete(n)}},[]),e}var ck={};ck={dragDescriptionKeyboard:"اضغط Enter لبدء السحب.",dragDescriptionKeyboardAlt:"اضغط على Alt + Enter لبدء السحب.",dragDescriptionLongPress:"اضغط باستمرار لبدء السحب.",dragDescriptionTouch:"اضغط مرتين لبدء السحب.",dragDescriptionVirtual:"انقر لبدء السحب.",dragItem:e=>`اسحب ${e.itemText}`,dragSelectedItems:(e,t)=>`اسحب ${t.plural(e.count,{one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عناصر محددة`})}`,dragSelectedKeyboard:(e,t)=>`اضغط على Enter للسحب ${t.plural(e.count,{one:"عدد العناصر المختارة",other:"عدد العناصر المختارة"})}.`,dragSelectedKeyboardAlt:(e,t)=>`اضغط على مفتاحي Alt + Enter للسحب ${t.plural(e.count,{one:"عدد العناصر المختارة",other:"عدد العناصر المختارة"})}.`,dragSelectedLongPress:(e,t)=>`اضغط باستمرار للسحب ${t.plural(e.count,{one:"عدد العناصر المختارة",other:"عدد العناصر المختارة"})}.`,dragStartedKeyboard:"بدأ السحب. اضغط Tab للانتقال إلى موضع الإفلات، ثم اضغط Enter للإفلات، أو اضغط Escape للإلغاء.",dragStartedTouch:"بدأ السحب. انتقل إلى موضع الإفلات، ثم اضغط مرتين للإفلات.",dragStartedVirtual:"بدأ السحب. انتقل إلى مكان الإفلات، ثم انقر أو اضغط Enter للإفلات.",dropCanceled:"تم إلغاء الإفلات.",dropComplete:"اكتمل الإفلات.",dropDescriptionKeyboard:"اضغط Enter للإفلات. اضغط Escape لإلغاء السحب.",dropDescriptionTouch:"اضغط مرتين للإفلات.",dropDescriptionVirtual:"انقر للإفلات.",dropIndicator:"مؤشر الإفلات",dropOnItem:e=>`إفلات ${e.itemText}`,dropOnRoot:"الإفلات",endDragKeyboard:"السحب. اضغط Enter لإلغاء السحب.",endDragTouch:"السحب. اضغط مرتين لإلغاء السحب.",endDragVirtual:"السحب. انقر لإلغاء السحب.",insertAfter:e=>`أدخل بعد ${e.itemText}`,insertBefore:e=>`أدخل قبل ${e.itemText}`,insertBetween:e=>`أدخل بين ${e.beforeItemText} و ${e.afterItemText}`};var dk={};dk={dragDescriptionKeyboard:"Натиснете „Enter“, за да започнете да плъзгате.",dragDescriptionKeyboardAlt:"Натиснете Alt + Enter, за да започнете да плъзгате.",dragDescriptionLongPress:"Натиснете продължително, за да започнете да плъзгате.",dragDescriptionTouch:"Натиснете двукратно, за да започнете да плъзгате.",dragDescriptionVirtual:"Щракнете, за да започнете да плъзгате.",dragItem:e=>`Плъзни ${e.itemText}`,dragSelectedItems:(e,t)=>`Плъзни ${t.plural(e.count,{one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елемента`})}`,dragSelectedKeyboard:(e,t)=>`Натиснете Enter, за да плъзнете ${t.plural(e.count,{one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Натиснете Alt и Enter, за да плъзнете ${t.plural(e.count,{one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,dragSelectedLongPress:(e,t)=>`Натиснете продължително, за да плъзнете ${t.plural(e.count,{one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,dragStartedKeyboard:"Започна плъзгане. Натиснете „Tab“, за да се придвижите до целта, след което натиснете „Enter“ за пускане или натиснете „Escape“ за отмяна.",dragStartedTouch:"Започна плъзгане. Придвижете се до целта, след което натиснете двукратно, за да пуснете.",dragStartedVirtual:"Започна плъзгане. Придвижете се до целта, след което щракнете или натиснете „Enter“ за пускане.",dropCanceled:"Пускането е отменено.",dropComplete:"Пускането е завършено.",dropDescriptionKeyboard:"Натиснете „Enter“ за пускане. Натиснете „Escape“ за отмяна на плъзгането.",dropDescriptionTouch:"Натиснете двукратно за пускане.",dropDescriptionVirtual:"Щракнете за пускане.",dropIndicator:"индикатор за пускане",dropOnItem:e=>`Пусни върху ${e.itemText}`,dropOnRoot:"Пусни върху",endDragKeyboard:"Плъзгане. Натиснете „Enter“ за отмяна на плъзгането.",endDragTouch:"Плъзгане. Натиснете двукратно за отмяна на плъзгането.",endDragVirtual:"Плъзгане. Щракнете за отмяна.",insertAfter:e=>`Вмъкни след ${e.itemText}`,insertBefore:e=>`Вмъкни преди ${e.itemText}`,insertBetween:e=>`Вмъкни между ${e.beforeItemText} и ${e.afterItemText}`};var fk={};fk={dragDescriptionKeyboard:"Stisknutím klávesy Enter začnete s přetahováním.",dragDescriptionKeyboardAlt:"Stisknutím Alt + Enter zahájíte přetahování.",dragDescriptionLongPress:"Dlouhým stisknutím zahájíte přetahování.",dragDescriptionTouch:"Poklepáním začnete s přetahováním.",dragDescriptionVirtual:"Kliknutím začnete s přetahováním.",dragItem:e=>`Přetáhnout ${e.itemText}`,dragSelectedItems:(e,t)=>`Přetáhnout ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou položku`,few:()=>`${t.number(e.count)} vybrané položky`,other:()=>`${t.number(e.count)} vybraných položek`})}`,dragSelectedKeyboard:(e,t)=>`Stisknutím klávesy Enter přetáhněte ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou položku`,other:()=>`${t.number(e.count)} vybrané položky`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Stisknutím Alt + Enter přetáhněte ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou položku`,other:()=>`${t.number(e.count)} vybrané položky`})}.`,dragSelectedLongPress:(e,t)=>`Dlouhým stisknutím přetáhnete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou položku`,other:()=>`${t.number(e.count)} vybrané položky`})}.`,dragStartedKeyboard:"Začněte s přetahováním. Po stisknutí klávesy Tab najděte požadovaný cíl a stisknutím klávesy Enter přetažení dokončete nebo stisknutím klávesy Esc akci zrušte.",dragStartedTouch:"Začněte s přetahováním. Najděte požadovaný cíl a poklepáním přetažení dokončete.",dragStartedVirtual:"Začněte s přetahováním. Najděte požadovaný cíl a kliknutím nebo stisknutím klávesy Enter přetažení dokončete.",dropCanceled:"Přetažení bylo zrušeno.",dropComplete:"Přetažení bylo dokončeno.",dropDescriptionKeyboard:"Stisknutím klávesy Enter přetažení dokončete nebo stisknutím klávesy Esc akci zrušte.",dropDescriptionTouch:"Poklepáním přetažení dokončete.",dropDescriptionVirtual:"Kliknutím objekt přetáhněte.",dropIndicator:"indikátor přetažení",dropOnItem:e=>`Přetáhnout na ${e.itemText}`,dropOnRoot:"Přetáhnout na",endDragKeyboard:"Probíhá přetahování. Stisknutím klávesy Enter přetažení zrušíte.",endDragTouch:"Probíhá přetahování. Poklepáním přetažení zrušíte.",endDragVirtual:"Probíhá přetahování. Kliknutím přetažení zrušíte.",insertAfter:e=>`Vložit za ${e.itemText}`,insertBefore:e=>`Vložit před ${e.itemText}`,insertBetween:e=>`Vložit mezi ${e.beforeItemText} a ${e.afterItemText}`};var hk={};hk={dragDescriptionKeyboard:"Tryk på Enter for at starte med at trække.",dragDescriptionKeyboardAlt:"Tryk på Alt + Enter for at starte med at trække.",dragDescriptionLongPress:"Tryk længe for at starte med at trække.",dragDescriptionTouch:"Dobbelttryk for at starte med at trække.",dragDescriptionVirtual:"Klik for at starte med at trække.",dragItem:e=>`Træk ${e.itemText}`,dragSelectedItems:(e,t)=>`Træk ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}`,dragSelectedKeyboard:(e,t)=>`Tryk på Enter for at trække ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Tryk på Alt + Enter for at trække ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedLongPress:(e,t)=>`Tryk længe for at trække ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragStartedKeyboard:"Startet med at trække. Tryk på Tab for at gå til et slip-mål, tryk derefter på Enter for at slippe, eller tryk på Escape for at annullere.",dragStartedTouch:"Startet med at trække. Gå til et slip-mål, og dobbelttryk derefter for at slippe.",dragStartedVirtual:"Startet med at trække. Gå til et slip-mål, og klik eller tryk derefter på enter for at slippe.",dropCanceled:"Slip annulleret.",dropComplete:"Slip fuldført.",dropDescriptionKeyboard:"Tryk på Enter for at slippe. Tryk på Escape for at annullere trækning.",dropDescriptionTouch:"Dobbelttryk for at slippe.",dropDescriptionVirtual:"Klik for at slippe.",dropIndicator:"slip-indikator",dropOnItem:e=>`Slip på ${e.itemText}`,dropOnRoot:"Slip på",endDragKeyboard:"Trækning. Tryk på enter for at annullere træk.",endDragTouch:"Trækning. Dobbelttryk for at annullere træk.",endDragVirtual:"Trækning. Klik for at annullere trækning.",insertAfter:e=>`Indsæt efter ${e.itemText}`,insertBefore:e=>`Indsæt før ${e.itemText}`,insertBetween:e=>`Indsæt mellem ${e.beforeItemText} og ${e.afterItemText}`};var pk={};pk={dragDescriptionKeyboard:"Drücken Sie die Eingabetaste, um den Ziehvorgang zu starten.",dragDescriptionKeyboardAlt:"Alt + Eingabe drücken, um den Ziehvorgang zu starten.",dragDescriptionLongPress:"Lang drücken, um mit dem Ziehen zu beginnen.",dragDescriptionTouch:"Tippen Sie doppelt, um den Ziehvorgang zu starten.",dragDescriptionVirtual:"Zum Starten des Ziehvorgangs klicken.",dragItem:e=>`${e.itemText} ziehen`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgewähltes Objekt`,other:()=>`${t.number(e.count)} ausgewählte Objekte`})} ziehen`,dragSelectedKeyboard:(e,t)=>`Eingabetaste drücken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgewähltes Element`,other:()=>`${t.number(e.count)} ausgewählte Elemente`})} zu ziehen.`,dragSelectedKeyboardAlt:(e,t)=>`Alt + Eingabetaste drücken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgewähltes Element`,other:()=>`${t.number(e.count)} ausgewählte Elemente`})} zu ziehen.`,dragSelectedLongPress:(e,t)=>`Lang drücken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgewähltes Element`,other:()=>`${t.number(e.count)} ausgewählte Elemente`})} zu ziehen.`,dragStartedKeyboard:"Ziehvorgang gestartet. Drücken Sie die Tabulatortaste, um zu einem Ablegeziel zu navigieren und drücken Sie dann die Eingabetaste, um das Objekt abzulegen, oder Escape, um den Vorgang abzubrechen.",dragStartedTouch:"Ziehvorgang gestartet. Navigieren Sie zu einem Ablegeziel und tippen Sie doppelt, um das Objekt abzulegen.",dragStartedVirtual:"Ziehvorgang gestartet. Navigieren Sie zu einem Ablegeziel und klicken Sie oder drücken Sie die Eingabetaste, um das Objekt abzulegen.",dropCanceled:"Ablegen abgebrochen.",dropComplete:"Ablegen abgeschlossen.",dropDescriptionKeyboard:"Drücken Sie die Eingabetaste, um das Objekt abzulegen. Drücken Sie Escape, um den Vorgang abzubrechen.",dropDescriptionTouch:"Tippen Sie doppelt, um das Objekt abzulegen.",dropDescriptionVirtual:"Zum Ablegen klicken.",dropIndicator:"Ablegeanzeiger",dropOnItem:e=>`Auf ${e.itemText} ablegen`,dropOnRoot:"Ablegen auf",endDragKeyboard:"Ziehvorgang läuft. Drücken Sie die Eingabetaste, um den Vorgang abzubrechen.",endDragTouch:"Ziehvorgang läuft. Tippen Sie doppelt, um den Vorgang abzubrechen.",endDragVirtual:"Ziehvorgang läuft. Klicken Sie, um den Vorgang abzubrechen.",insertAfter:e=>`Nach ${e.itemText} einfügen`,insertBefore:e=>`Vor ${e.itemText} einfügen`,insertBetween:e=>`Zwischen ${e.beforeItemText} und ${e.afterItemText} einfügen`};var mk={};mk={dragDescriptionKeyboard:"Πατήστε Enter για έναρξη της μεταφοράς.",dragDescriptionKeyboardAlt:"Πατήστε Alt + Enter για έναρξη της μεταφοράς.",dragDescriptionLongPress:"Πατήστε παρατεταμένα για να ξεκινήσετε τη μεταφορά.",dragDescriptionTouch:"Πατήστε δύο φορές για έναρξη της μεταφοράς.",dragDescriptionVirtual:"Κάντε κλικ για να ξεκινήσετε τη μεταφορά.",dragItem:e=>`Μεταφορά ${e.itemText}`,dragSelectedItems:(e,t)=>`Μεταφορά σε ${t.plural(e.count,{one:()=>`${t.number(e.count)} επιλεγμένο στοιχείο`,other:()=>`${t.number(e.count)} επιλεγμένα στοιχεία`})}`,dragSelectedKeyboard:(e,t)=>`Πατήστε Enter για να σύρετε ${t.plural(e.count,{one:()=>`${t.number(e.count)} επιλεγμένο στοιχείο`,other:()=>`${t.number(e.count)} επιλεγμένα στοιχεία`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Πατήστε Alt + Enter για να σύρετε ${t.plural(e.count,{one:()=>`${t.number(e.count)} επιλεγμένο στοιχείο`,other:()=>`${t.number(e.count)} επιλεγμένα στοιχεία`})}.`,dragSelectedLongPress:(e,t)=>`Πατήστε παρατεταμένα για να σύρετε ${t.plural(e.count,{one:()=>`${t.number(e.count)} επιλεγμένο στοιχείο`,other:()=>`${t.number(e.count)} επιλεγμένα στοιχεία`})}.`,dragStartedKeyboard:"Η μεταφορά ξεκίνησε. Πατήστε το πλήκτρο Tab για να μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, πατήστε Enter για απόθεση ή πατήστε Escape για ακύρωση.",dragStartedTouch:"Η μεταφορά ξεκίνησε. Μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, πατήστε δύο φορές για απόθεση.",dragStartedVirtual:"Η μεταφορά ξεκίνησε. Μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, κάντε κλικ ή πατήστε Enter για απόθεση.",dropCanceled:"Η απόθεση ακυρώθηκε.",dropComplete:"Η απόθεση ολοκληρώθηκε.",dropDescriptionKeyboard:"Πατήστε Enter για απόθεση. Πατήστε Escape για ακύρωση της μεταφοράς.",dropDescriptionTouch:"Πατήστε δύο φορές για απόθεση.",dropDescriptionVirtual:"Κάντε κλικ για απόθεση.",dropIndicator:"δείκτης απόθεσης",dropOnItem:e=>`Απόθεση σε ${e.itemText}`,dropOnRoot:"Απόθεση σε",endDragKeyboard:"Μεταφορά σε εξέλιξη. Πατήστε Enter για ακύρωση της μεταφοράς.",endDragTouch:"Μεταφορά σε εξέλιξη. Πατήστε δύο φορές για ακύρωση της μεταφοράς.",endDragVirtual:"Μεταφορά σε εξέλιξη. Κάντε κλικ για ακύρωση της μεταφοράς.",insertAfter:e=>`Εισαγωγή μετά από ${e.itemText}`,insertBefore:e=>`Εισαγωγή πριν από ${e.itemText}`,insertBetween:e=>`Εισαγωγή μεταξύ ${e.beforeItemText} και ${e.afterItemText}`};var gk={};gk={dragItem:e=>`Drag ${e.itemText}`,dragSelectedItems:(e,t)=>`Drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}`,dragDescriptionKeyboard:"Press Enter to start dragging.",dragDescriptionKeyboardAlt:"Press Alt + Enter to start dragging.",dragDescriptionTouch:"Double tap to start dragging.",dragDescriptionVirtual:"Click to start dragging.",dragDescriptionLongPress:"Long press to start dragging.",dragSelectedKeyboard:(e,t)=>`Press Enter to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Press Alt + Enter to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragSelectedLongPress:(e,t)=>`Long press to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragStartedKeyboard:"Started dragging. Press Tab to navigate to a drop target, then press Enter to drop, or press Escape to cancel.",dragStartedTouch:"Started dragging. Navigate to a drop target, then double tap to drop.",dragStartedVirtual:"Started dragging. Navigate to a drop target, then click or press Enter to drop.",endDragKeyboard:"Dragging. Press Enter to cancel drag.",endDragTouch:"Dragging. Double tap to cancel drag.",endDragVirtual:"Dragging. Click to cancel drag.",dropDescriptionKeyboard:"Press Enter to drop. Press Escape to cancel drag.",dropDescriptionTouch:"Double tap to drop.",dropDescriptionVirtual:"Click to drop.",dropCanceled:"Drop canceled.",dropComplete:"Drop complete.",dropIndicator:"drop indicator",dropOnRoot:"Drop on",dropOnItem:e=>`Drop on ${e.itemText}`,insertBefore:e=>`Insert before ${e.itemText}`,insertBetween:e=>`Insert between ${e.beforeItemText} and ${e.afterItemText}`,insertAfter:e=>`Insert after ${e.itemText}`};var vk={};vk={dragDescriptionKeyboard:"Pulse Intro para empezar a arrastrar.",dragDescriptionKeyboardAlt:"Pulse Intro para empezar a arrastrar.",dragDescriptionLongPress:"Mantenga pulsado para comenzar a arrastrar.",dragDescriptionTouch:"Pulse dos veces para iniciar el arrastre.",dragDescriptionVirtual:"Haga clic para iniciar el arrastre.",dragItem:e=>`Arrastrar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}`,dragSelectedKeyboard:(e,t)=>`Pulse Intro para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pulse Alt + Intro para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragSelectedLongPress:(e,t)=>`Mantenga pulsado para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragStartedKeyboard:"Se ha empezado a arrastrar. Pulse el tabulador para ir al público destinatario donde se vaya a colocar y, a continuación, pulse Intro para soltar, o pulse Escape para cancelar.",dragStartedTouch:"Se ha empezado a arrastrar. Vaya al público destinatario donde se vaya a colocar y, a continuación, pulse dos veces para soltar.",dragStartedVirtual:"Se ha empezado a arrastrar. Vaya al público destinatario donde se vaya a colocar y, a continuación, haga clic o pulse Intro para soltar.",dropCanceled:"Se ha cancelado la colocación.",dropComplete:"Colocación finalizada.",dropDescriptionKeyboard:"Pulse Intro para soltar. Pulse Escape para cancelar el arrastre.",dropDescriptionTouch:"Pulse dos veces para soltar.",dropDescriptionVirtual:"Haga clic para soltar.",dropIndicator:"indicador de colocación",dropOnItem:e=>`Soltar en ${e.itemText}`,dropOnRoot:"Soltar en",endDragKeyboard:"Arrastrando. Pulse Intro para cancelar el arrastre.",endDragTouch:"Arrastrando. Pulse dos veces para cancelar el arrastre.",endDragVirtual:"Arrastrando. Haga clic para cancelar el arrastre.",insertAfter:e=>`Insertar después de ${e.itemText}`,insertBefore:e=>`Insertar antes de ${e.itemText}`,insertBetween:e=>`Insertar entre ${e.beforeItemText} y ${e.afterItemText}`};var yk={};yk={dragDescriptionKeyboard:"Lohistamise alustamiseks vajutage klahvi Enter.",dragDescriptionKeyboardAlt:"Lohistamise alustamiseks vajutage klahvikombinatsiooni Alt + Enter.",dragDescriptionLongPress:"Vajutage pikalt lohistamise alustamiseks.",dragDescriptionTouch:"Topeltpuudutage lohistamise alustamiseks.",dragDescriptionVirtual:"Klõpsake lohistamise alustamiseks.",dragItem:e=>`Lohista ${e.itemText}`,dragSelectedItems:(e,t)=>`Lohista ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud üksust`,other:()=>`${t.number(e.count)} valitud üksust`})}`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud üksuse`,other:()=>`${t.number(e.count)} valitud üksuse`})} lohistamiseks vajutage sisestusklahvi Enter.`,dragSelectedKeyboardAlt:(e,t)=>`Lohistamiseks vajutage klahvikombinatsiooni Alt + Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud üksuse`,other:()=>`${t.number(e.count)} valitud üksuse`})} jaoks.`,dragSelectedLongPress:(e,t)=>`Pikk vajutus ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud üksuse`,other:()=>`${t.number(e.count)} valitud üksuse`})} lohistamiseks.`,dragStartedKeyboard:"Alustati lohistamist. Kukutamise sihtmärgi juurde navigeerimiseks vajutage klahvi Tab, seejärel vajutage kukutamiseks klahvi Enter või loobumiseks klahvi Escape.",dragStartedTouch:"Alustati lohistamist. Navigeerige kukutamise sihtmärgi juurde ja topeltpuudutage kukutamiseks.",dragStartedVirtual:"Alustati lohistamist. Navigeerige kukutamise sihtmärgi juurde ja kukutamiseks klõpsake või vajutage klahvi Enter.",dropCanceled:"Lohistamisest loobuti.",dropComplete:"Lohistamine on tehtud.",dropDescriptionKeyboard:"Kukutamiseks vajutage klahvi Enter. Lohistamisest loobumiseks vajutage klahvi Escape.",dropDescriptionTouch:"Kukutamiseks topeltpuudutage.",dropDescriptionVirtual:"Kukutamiseks klõpsake.",dropIndicator:"lohistamise indikaator",dropOnItem:e=>`Kukuta asukohta ${e.itemText}`,dropOnRoot:"Kukuta asukohta",endDragKeyboard:"Lohistamine. Lohistamisest loobumiseks vajutage klahvi Enter.",endDragTouch:"Lohistamine. Lohistamisest loobumiseks topeltpuudutage.",endDragVirtual:"Lohistamine. Lohistamisest loobumiseks klõpsake.",insertAfter:e=>`Sisesta ${e.itemText} järele`,insertBefore:e=>`Sisesta ${e.itemText} ette`,insertBetween:e=>`Sisesta ${e.beforeItemText} ja ${e.afterItemText} vahele`};var bk={};bk={dragDescriptionKeyboard:"Aloita vetäminen painamalla Enter-näppäintä.",dragDescriptionKeyboardAlt:"Aloita vetäminen painamalla Alt + Enter -näppäinyhdistelmää.",dragDescriptionLongPress:"Aloita vetäminen pitämällä painettuna.",dragDescriptionTouch:"Aloita vetäminen kaksoisnapauttamalla.",dragDescriptionVirtual:"Aloita vetäminen napsauttamalla.",dragItem:e=>`Vedä kohdetta ${e.itemText}`,dragSelectedItems:(e,t)=>`Vedä ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittua kohdetta`,other:()=>`${t.number(e.count)} valittua kohdetta`})}`,dragSelectedKeyboard:(e,t)=>`Vedä painamalla Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Vedä painamalla Alt + Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragSelectedLongPress:(e,t)=>`Vedä pitämällä painettuna ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragStartedKeyboard:"Vetäminen aloitettu. Siirry pudotuskohteeseen painamalla sarkainnäppäintä ja sitten pudota painamalla Enter-näppäintä tai peruuta painamalla Escape-näppäintä.",dragStartedTouch:"Vetäminen aloitettu. Siirry pudotuskohteeseen ja pudota kaksoisnapauttamalla.",dragStartedVirtual:"Vetäminen aloitettu. Siirry pudotuskohteeseen ja pudota napsauttamalla tai painamalla Enter-näppäintä.",dropCanceled:"Pudotus peruutettu.",dropComplete:"Pudotus suoritettu.",dropDescriptionKeyboard:"Pudota painamalla Enter-näppäintä. Peruuta vetäminen painamalla Escape-näppäintä.",dropDescriptionTouch:"Pudota kaksoisnapauttamalla.",dropDescriptionVirtual:"Pudota napsauttamalla.",dropIndicator:"pudotuksen ilmaisin",dropOnItem:e=>`Pudota kohteeseen ${e.itemText}`,dropOnRoot:"Pudota kohteeseen",endDragKeyboard:"Vedetään. Peruuta vetäminen painamalla Enter-näppäintä.",endDragTouch:"Vedetään. Peruuta vetäminen kaksoisnapauttamalla.",endDragVirtual:"Vedetään. Peruuta vetäminen napsauttamalla.",insertAfter:e=>`Lisää kohteen ${e.itemText} jälkeen`,insertBefore:e=>`Lisää ennen kohdetta ${e.itemText}`,insertBetween:e=>`Lisää kohteiden ${e.beforeItemText} ja ${e.afterItemText} väliin`};var xk={};xk={dragDescriptionKeyboard:"Appuyez sur Entrée pour commencer le déplacement.",dragDescriptionKeyboardAlt:"Appuyez sur Alt + Entrée pour commencer à faire glisser.",dragDescriptionLongPress:"Appuyez de manière prolongée pour commencer à faire glisser.",dragDescriptionTouch:"Touchez deux fois pour commencer le déplacement.",dragDescriptionVirtual:"Cliquez pour commencer le déplacement.",dragItem:e=>`Déplacer ${e.itemText}`,dragSelectedItems:(e,t)=>`Déplacer ${t.plural(e.count,{one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}`,dragSelectedKeyboard:(e,t)=>`Appuyez sur Entrée pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Appuyez sur Alt + Entrée pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,dragSelectedLongPress:(e,t)=>`Appuyez de manière prolongée pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,dragStartedKeyboard:"Déplacement commencé. Appuyez sur Tabulation pour accéder à une cible de dépôt, puis appuyez sur Entrée pour déposer, ou appuyez sur Échap pour annuler.",dragStartedTouch:"Déplacement commencé. Accédez à une cible de dépôt, puis touchez deux fois pour déposer.",dragStartedVirtual:"Déplacement commencé. Accédez à une cible de dépôt, puis cliquez ou appuyez sur Entrée pour déposer.",dropCanceled:"Dépôt annulé.",dropComplete:"Dépôt terminé.",dropDescriptionKeyboard:"Appuyez sur Entrée pour déposer. Appuyez sur Échap pour annuler le déplacement.",dropDescriptionTouch:"Touchez deux fois pour déposer.",dropDescriptionVirtual:"Cliquez pour déposer.",dropIndicator:"indicateur de dépôt",dropOnItem:e=>`Déposer sur ${e.itemText}`,dropOnRoot:"Déposer sur",endDragKeyboard:"Déplacement. Appuyez sur Entrée pour annuler le déplacement.",endDragTouch:"Déplacement. Touchez deux fois pour annuler le déplacement.",endDragVirtual:"Déplacement. Cliquez pour annuler le déplacement.",insertAfter:e=>`Insérer après ${e.itemText}`,insertBefore:e=>`Insérer avant ${e.itemText}`,insertBetween:e=>`Insérer entre ${e.beforeItemText} et ${e.afterItemText}`};var Dk={};Dk={dragDescriptionKeyboard:"הקש על Enter כדי להתחיל לגרור.",dragDescriptionKeyboardAlt:"הקש Alt + Enter כדי להתחיל לגרור.",dragDescriptionLongPress:"לחץ לחיצה ארוכה כדי להתחיל לגרור.",dragDescriptionTouch:"הקש פעמיים כדי להתחיל בגרירה.",dragDescriptionVirtual:"לחץ כדי להתחיל לגרור.",dragItem:e=>`גרור את ${e.itemText}`,dragSelectedItems:(e,t)=>`גרור ${t.plural(e.count,{one:()=>`פריט נבחר ${t.number(e.count)}`,other:()=>`${t.number(e.count)} פריטים שנבחרו`})}`,dragSelectedKeyboard:(e,t)=>`הקש על Enter כדי לגרור ${t.plural(e.count,{one:()=>`${t.number(e.count)} פריט שנבחר`,other:()=>`${t.number(e.count)} פריטים שנבחרו`})}.`,dragSelectedKeyboardAlt:(e,t)=>`הקש Alt + Enter כדי לגרור ${t.plural(e.count,{one:()=>`${t.number(e.count)} פריט שנבחר`,other:()=>`${t.number(e.count)} פריטים שנבחרו`})}.`,dragSelectedLongPress:(e,t)=>`לחץ לחיצה ארוכה כדי לגרור ${t.plural(e.count,{one:()=>`${t.number(e.count)} פריט שנבחר`,other:()=>`${t.number(e.count)} פריטים שנבחרו`})}.`,dragStartedKeyboard:"התחלת לגרור. הקש על Tab כדי לנווט לנקודת הגרירה ולאחר מכן הקש על Enter כדי לשחרר או על Escape כדי לבטל.",dragStartedTouch:"התחלת לגרור. נווט לנקודת השחרור ולאחר מכן הקש פעמיים כדי לשחרר.",dragStartedVirtual:"התחלת לגרור. נווט לנקודת השחרור ולאחר מכן לחץ או הקש על Enter כדי לשחרר.",dropCanceled:"השחרור בוטל.",dropComplete:"השחרור הושלם.",dropDescriptionKeyboard:"הקש על Enter כדי לשחרר. הקש על Escape כדי לבטל את הגרירה.",dropDescriptionTouch:"הקש פעמיים כדי לשחרר.",dropDescriptionVirtual:"לחץ כדי לשחרר.",dropIndicator:"מחוון שחרור",dropOnItem:e=>`שחרר על ${e.itemText}`,dropOnRoot:"שחרר על",endDragKeyboard:"גורר. הקש על Enter כדי לבטל את הגרירה.",endDragTouch:"גורר. הקש פעמיים כדי לבטל את הגרירה.",endDragVirtual:"גורר. לחץ כדי לבטל את הגרירה.",insertAfter:e=>`הוסף אחרי ${e.itemText}`,insertBefore:e=>`הוסף לפני ${e.itemText}`,insertBetween:e=>`הוסף בין ${e.beforeItemText} לבין ${e.afterItemText}`};var $k={};$k={dragDescriptionKeyboard:"Pritisnite Enter da biste počeli povlačiti.",dragDescriptionKeyboardAlt:"Pritisnite Alt + Enter za početak povlačenja.",dragDescriptionLongPress:"Dugo pritisnite za početak povlačenja.",dragDescriptionTouch:"Dvaput dodirnite da biste počeli povlačiti.",dragDescriptionVirtual:"Kliknite da biste počeli povlačiti.",dragItem:e=>`Povucite stavku ${e.itemText}`,dragSelectedItems:(e,t)=>`Povucite ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabranu stavku`,other:()=>`ovoliko odabranih stavki: ${t.number(e.count)}`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite Enter za povlačenje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite Alt + Enter za povlačenje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragSelectedLongPress:(e,t)=>`Dugo pritisnite za povlačenje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragStartedKeyboard:"Počeli ste povlačiti. Pritisnite tipku tabulatora da biste došli do cilja ispuštanja, a zatim Enter da biste ispustili stavku ili Escape da biste prekinuli povlačenje.",dragStartedTouch:"Počeli ste povlačiti. Dođite do cilja ispuštanja, a zatim dvaput dodirnite da biste ispustili stavku.",dragStartedVirtual:"Počeli ste povlačiti. Dođite do cilja ispuštanja, a zatim kliknite ili pritisnite Enter da biste ispustili stavku.",dropCanceled:"Povlačenje je prekinuto.",dropComplete:"Ispuštanje je dovršeno.",dropDescriptionKeyboard:"Pritisnite Enter da biste ispustili stavku. Pritisnite Escape da biste prekinuli povlačenje.",dropDescriptionTouch:"Dvaput dodirnite da biste ispustili stavku.",dropDescriptionVirtual:"Kliknite da biste ispustili stavku.",dropIndicator:"pokazatelj ispuštanja",dropOnItem:e=>`Ispustite na stavku ${e.itemText}`,dropOnRoot:"Ispustite na",endDragKeyboard:"Povlačenje. Pritisnite Enter da biste prekinuli povlačenje.",endDragTouch:"Povlačenje. Dvaput dodirnite da biste prekinuli povlačenje.",endDragVirtual:"Povlačenje. Kliknite da biste prekinuli povlačenje.",insertAfter:e=>`Umetnite iza stavke ${e.itemText}`,insertBefore:e=>`Ispustite ispred stavke ${e.itemText}`,insertBetween:e=>`Umetnite između stavki ${e.beforeItemText} i ${e.afterItemText}`};var Ek={};Ek={dragDescriptionKeyboard:"Nyomja le az Enter billentyűt a húzás megkezdéséhez.",dragDescriptionKeyboardAlt:"Nyomja le az Alt + Enter billentyűket a húzás megkezdéséhez.",dragDescriptionLongPress:"Hosszan nyomja meg a húzás elindításához.",dragDescriptionTouch:"Koppintson duplán a húzás megkezdéséhez.",dragDescriptionVirtual:"Kattintson a húzás megkezdéséhez.",dragItem:e=>`${e.itemText} húzása`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} kijelölt elem`,other:()=>`${t.number(e.count)} kijelölt elem`})} húzása`,dragSelectedKeyboard:(e,t)=>`Nyomja meg az Entert ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijelölt elem`,other:()=>`${t.number(e.count)} kijelölt elem`})} húzásához.`,dragSelectedKeyboardAlt:(e,t)=>`Nyomja meg az Alt + Enter billentyűket ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijelölt elem`,other:()=>`${t.number(e.count)} kijelölt elem`})} húzásához.`,dragSelectedLongPress:(e,t)=>`Tartsa lenyomva hosszan ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijelölt elem`,other:()=>`${t.number(e.count)} kijelölt elem`})} húzásához.`,dragStartedKeyboard:"Húzás megkezdve. Nyomja le a Tab billentyűt az elengedési célhoz navigálásához, majd nyomja le az Enter billentyűt az elengedéshez, vagy nyomja le az Escape billentyűt a megszakításhoz.",dragStartedTouch:"Húzás megkezdve. Navigáljon egy elengedési célhoz, majd koppintson duplán az elengedéshez.",dragStartedVirtual:"Húzás megkezdve. Navigáljon egy elengedési célhoz, majd kattintson vagy nyomja le az Enter billentyűt az elengedéshez.",dropCanceled:"Elengedés megszakítva.",dropComplete:"Elengedés teljesítve.",dropDescriptionKeyboard:"Nyomja le az Enter billentyűt az elengedéshez. Nyomja le az Escape billentyűt a húzás megszakításához.",dropDescriptionTouch:"Koppintson duplán az elengedéshez.",dropDescriptionVirtual:"Kattintson az elengedéshez.",dropIndicator:"elengedésjelző",dropOnItem:e=>`Elengedés erre: ${e.itemText}`,dropOnRoot:"Elengedés erre:",endDragKeyboard:"Húzás folyamatban. Nyomja le az Enter billentyűt a húzás megszakításához.",endDragTouch:"Húzás folyamatban. Koppintson duplán a húzás megszakításához.",endDragVirtual:"Húzás folyamatban. Kattintson a húzás megszakításához.",insertAfter:e=>`Beszúrás ${e.itemText} után`,insertBefore:e=>`Beszúrás ${e.itemText} elé`,insertBetween:e=>`Beszúrás ${e.beforeItemText} és ${e.afterItemText} közé`};var Ck={};Ck={dragDescriptionKeyboard:"Premi Invio per iniziare a trascinare.",dragDescriptionKeyboardAlt:"Premi Alt + Invio per iniziare a trascinare.",dragDescriptionLongPress:"Premi a lungo per iniziare a trascinare.",dragDescriptionTouch:"Tocca due volte per iniziare a trascinare.",dragDescriptionVirtual:"Fai clic per iniziare a trascinare.",dragItem:e=>`Trascina ${e.itemText}`,dragSelectedItems:(e,t)=>`Trascina ${t.plural(e.count,{one:()=>`${t.number(e.count)} altro elemento selezionato`,other:()=>`${t.number(e.count)} altri elementi selezionati`})}`,dragSelectedKeyboard:(e,t)=>`Premi Invio per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Premi Alt + Invio per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragSelectedLongPress:(e,t)=>`Premi a lungo per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragStartedKeyboard:"Hai iniziato a trascinare. Premi Tab per arrivare sull’area di destinazione, quindi premi Invio per rilasciare o Esc per annullare.",dragStartedTouch:"Hai iniziato a trascinare. Arriva sull’area di destinazione, quindi tocca due volte per rilasciare.",dragStartedVirtual:"Hai iniziato a trascinare. Arriva sull’area di destinazione, quindi fai clic o premi Invio per rilasciare.",dropCanceled:"Rilascio annullato.",dropComplete:"Rilascio completato.",dropDescriptionKeyboard:"Premi Invio per rilasciare. Premi Esc per annullare.",dropDescriptionTouch:"Tocca due volte per rilasciare.",dropDescriptionVirtual:"Fai clic per rilasciare.",dropIndicator:"indicatore di rilascio",dropOnItem:e=>`Rilascia su ${e.itemText}`,dropOnRoot:"Rilascia su",endDragKeyboard:"Trascinamento. Premi Invio per annullare.",endDragTouch:"Trascinamento. Tocca due volte per annullare.",endDragVirtual:"Trascinamento. Fai clic per annullare.",insertAfter:e=>`Inserisci dopo ${e.itemText}`,insertBefore:e=>`Inserisci prima di ${e.itemText}`,insertBetween:e=>`Inserisci tra ${e.beforeItemText} e ${e.afterItemText}`};var wk={};wk={dragDescriptionKeyboard:"Enter キーを押してドラッグを開始してください。",dragDescriptionKeyboardAlt:"Alt+Enter キーを押してドラッグを開始します。",dragDescriptionLongPress:"長押ししてドラッグを開始します。",dragDescriptionTouch:"ダブルタップしてドラッグを開始します。",dragDescriptionVirtual:"クリックしてドラッグを開始します。",dragItem:e=>`${e.itemText} をドラッグ`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} 個の選択項目`,other:()=>`${t.number(e.count)} 個の選択項目`})} をドラッグ`,dragSelectedKeyboard:(e,t)=>`Enter キーを押して、${t.plural(e.count,{one:()=>`${t.number(e.count)} 選択した項目`,other:()=>`${t.number(e.count)} 選択した項目`})}をドラッグします。`,dragSelectedKeyboardAlt:(e,t)=>`Alt+Enter キーを押して、${t.plural(e.count,{one:()=>`${t.number(e.count)} 選択した項目`,other:()=>`${t.number(e.count)} 選択した項目`})}をドラッグします。`,dragSelectedLongPress:(e,t)=>`長押しして、${t.plural(e.count,{one:()=>`${t.number(e.count)} 選択した項目`,other:()=>`${t.number(e.count)} 選択した項目`})}をドラッグします。`,dragStartedKeyboard:"ドラッグを開始します。Tab キーを押してドロップターゲットにいどうし、Enter キーを押してドロップするか、Esc キーを押してキャンセルします。",dragStartedTouch:"ドラッグを開始しました。ドロップのターゲットに移動し、ダブルタップしてドロップします。",dragStartedVirtual:"ドラッグを開始しました。ドロップのターゲットに移動し、クリックまたは Enter キーを押してドロップします。",dropCanceled:"ドロップがキャンセルされました。",dropComplete:"ドロップが完了しました。",dropDescriptionKeyboard:"Enter キーを押してドロップします。Esc キーを押してドラッグをキャンセルします。",dropDescriptionTouch:"ダブルタップしてドロップします。",dropDescriptionVirtual:"クリックしてドロップします。",dropIndicator:"ドロップインジケーター",dropOnItem:e=>`${e.itemText} にドロップ`,dropOnRoot:"ドロップ場所",endDragKeyboard:"ドラッグしています。Enter キーを押してドラッグをキャンセルします。",endDragTouch:"ドラッグしています。ダブルタップしてドラッグをキャンセルします。",endDragVirtual:"ドラッグしています。クリックしてドラッグをキャンセルします。",insertAfter:e=>`${e.itemText} の後に挿入`,insertBefore:e=>`${e.itemText} の前に挿入`,insertBetween:e=>`${e.beforeItemText} と ${e.afterItemText} の間に挿入`};var Ak={};Ak={dragDescriptionKeyboard:"드래그를 시작하려면 Enter를 누르세요.",dragDescriptionKeyboardAlt:"드래그를 시작하려면 Alt + Enter를 누르십시오.",dragDescriptionLongPress:"드래그를 시작하려면 길게 누르십시오.",dragDescriptionTouch:"드래그를 시작하려면 더블 탭하세요.",dragDescriptionVirtual:"드래그를 시작하려면 클릭하세요.",dragItem:e=>`${e.itemText} 드래그`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}개 선택 항목`,other:()=>`${t.number(e.count)}개 선택 항목`})} 드래그`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}개 선택 항목`,other:()=>`${t.number(e.count)}개 선택 항목`})}을 드래그하려면 Enter를 누르십시오.`,dragSelectedKeyboardAlt:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}개 선택 항목`,other:()=>`${t.number(e.count)}개 선택 항목`})}을 드래그하려면 Alt + Enter를 누르십시오.`,dragSelectedLongPress:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}개 선택 항목`,other:()=>`${t.number(e.count)}개 선택 항목`})}을 드래그하려면 길게 누르십시오.`,dragStartedKeyboard:"드래그가 시작되었습니다. Tab을 눌러 드롭 대상으로 이동한 다음 Enter를 눌러 드롭하거나 Esc를 눌러 취소하세요.",dragStartedTouch:"드래그가 시작되었습니다. 드롭 대상으로 이동한 다음 더블 탭하여 드롭하세요.",dragStartedVirtual:"드래그가 시작되었습니다. 드롭 대상으로 이동한 다음 클릭하거나 Enter를 눌러 드롭하세요.",dropCanceled:"드롭이 취소되었습니다.",dropComplete:"드롭이 완료되었습니다.",dropDescriptionKeyboard:"드롭하려면 Enter를 누르세요. 드래그를 취소하려면 Esc를 누르세요.",dropDescriptionTouch:"더블 탭하여 드롭하세요.",dropDescriptionVirtual:"드롭하려면 클릭하세요.",dropIndicator:"드롭 표시기",dropOnItem:e=>`${e.itemText}에 드롭`,dropOnRoot:"드롭 대상",endDragKeyboard:"드래그 중입니다. 드래그를 취소하려면 Enter를 누르세요.",endDragTouch:"드래그 중입니다. 드래그를 취소하려면 더블 탭하세요.",endDragVirtual:"드래그 중입니다. 드래그를 취소하려면 클릭하세요.",insertAfter:e=>`${e.itemText} 이후에 삽입`,insertBefore:e=>`${e.itemText} 이전에 삽입`,insertBetween:e=>`${e.beforeItemText} 및 ${e.afterItemText} 사이에 삽입`};var Sk={};Sk={dragDescriptionKeyboard:"Paspauskite „Enter“, kad pradėtumėte vilkti.",dragDescriptionKeyboardAlt:"Paspauskite „Alt + Enter“, kad pradėtumėte vilkti.",dragDescriptionLongPress:"Palaikykite nuspaudę, kad pradėtumėte vilkti.",dragDescriptionTouch:"Palieskite dukart, kad pradėtumėte vilkti.",dragDescriptionVirtual:"Spustelėkite, kad pradėtumėte vilkti.",dragItem:e=>`Vilkti ${e.itemText}`,dragSelectedItems:(e,t)=>`Vilkti ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinktą elementą`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}`,dragSelectedKeyboard:(e,t)=>`Paspauskite „Enter“, jei norite nuvilkti ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinktą elementą`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Paspauskite „Alt + Enter“, kad nuvilktumėte ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinktą elementą`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragSelectedLongPress:(e,t)=>`Nuspaudę palaikykite, kad nuvilktumėte ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinktą elementą`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragStartedKeyboard:"Pradėta vilkti. Paspauskite „Tab“, kad pereitumėte į tiesioginę paskirties vietą, tada paspauskite „Enter“, kad numestumėte, arba „Escape“, kad atšauktumėte.",dragStartedTouch:"Pradėta vilkti. Eikite į tiesioginę paskirties vietą, tada palieskite dukart, kad numestumėte.",dragStartedVirtual:"Pradėta vilkti. Eikite į tiesioginę paskirties vietą ir spustelėkite arba paspauskite „Enter“, kad numestumėte.",dropCanceled:"Numetimas atšauktas.",dropComplete:"Numesta.",dropDescriptionKeyboard:"Paspauskite „Enter“, kad numestumėte. Paspauskite „Escape“, kad atšauktumėte vilkimą.",dropDescriptionTouch:"Palieskite dukart, kad numestumėte.",dropDescriptionVirtual:"Spustelėkite, kad numestumėte.",dropIndicator:"numetimo indikatorius",dropOnItem:e=>`Numesti ant ${e.itemText}`,dropOnRoot:"Numesti ant",endDragKeyboard:"Velkama. Paspauskite „Enter“, kad atšauktumėte vilkimą.",endDragTouch:"Velkama. Spustelėkite dukart, kad atšauktumėte vilkimą.",endDragVirtual:"Velkama. Spustelėkite, kad atšauktumėte vilkimą.",insertAfter:e=>`Įterpti po ${e.itemText}`,insertBefore:e=>`Įterpti prieš ${e.itemText}`,insertBetween:e=>`Įterpti tarp ${e.beforeItemText} ir ${e.afterItemText}`};var Tk={};Tk={dragDescriptionKeyboard:"Nospiediet Enter, lai sāktu vilkšanu.",dragDescriptionKeyboardAlt:"Nospiediet taustiņu kombināciju Alt+Enter, lai sāktu vilkšanu.",dragDescriptionLongPress:"Turiet nospiestu, lai sāktu vilkšanu.",dragDescriptionTouch:"Veiciet dubultskārienu, lai sāktu vilkšanu.",dragDescriptionVirtual:"Noklikšķiniet, lai sāktu vilkšanu.",dragItem:e=>`Velciet ${e.itemText}`,dragSelectedItems:(e,t)=>`Velciet ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlasīto vienumu`,other:()=>`${t.number(e.count)} atlasītos vienumus`})}`,dragSelectedKeyboard:(e,t)=>`Nospiediet taustiņu Enter, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlasīto vienumu`,other:()=>`${t.number(e.count)} atlasītos vienumus`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Nospiediet taustiņu kombināciju Alt+Enter, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlasīto vienumu`,other:()=>`${t.number(e.count)} atlasītos vienumus`})}.`,dragSelectedLongPress:(e,t)=>`Turiet nospiestu, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlasīto vienumu`,other:()=>`${t.number(e.count)} atlasītos vienumus`})}.`,dragStartedKeyboard:"Uzsākta vilkšana. Nospiediet taustiņu Tab, lai pārietu uz nomešanas mērķi, pēc tam nospiediet Enter, lai nomestu, vai nospiediet Escape, lai atceltu.",dragStartedTouch:"Uzsākta vilkšana. Pārejiet uz nomešanas mērķi, pēc tam veiciet dubultskārienu, lai nomestu.",dragStartedVirtual:"Uzsākta vilkšana. Pārejiet uz nomešanas mērķi, pēc tam nospiediet Enter, lai nomestu.",dropCanceled:"Nomešana atcelta.",dropComplete:"Nomešana pabeigta.",dropDescriptionKeyboard:"Nospiediet Enter, lai nomestu. Nospiediet Escape, lai atceltu vilkšanu.",dropDescriptionTouch:"Veiciet dubultskārienu, lai nomestu.",dropDescriptionVirtual:"Noklikšķiniet, lai nomestu.",dropIndicator:"nomešanas indikators",dropOnItem:e=>`Nometiet uz ${e.itemText}`,dropOnRoot:"Nometiet uz",endDragKeyboard:"Notiek vilkšana. Nospiediet Enter, lai atceltu vilkšanu.",endDragTouch:"Notiek vilkšana. Veiciet dubultskārienu, lai atceltu vilkšanu.",endDragVirtual:"Notiek vilkšana. Noklikšķiniet, lai atceltu vilkšanu.",insertAfter:e=>`Ievietojiet pēc ${e.itemText}`,insertBefore:e=>`Ievietojiet pirms ${e.itemText}`,insertBetween:e=>`Ievietojiet starp ${e.beforeItemText} un ${e.afterItemText}`};var Pk={};Pk={dragDescriptionKeyboard:"Trykk på Enter for å begynne å dra.",dragDescriptionKeyboardAlt:"Trykk på Alt + Enter for å begynne å dra.",dragDescriptionLongPress:"Trykk lenge for å begynne å dra.",dragDescriptionTouch:"Dobbelttrykk for å begynne å dra.",dragDescriptionVirtual:"Klikk for å begynne å dra.",dragItem:e=>`Dra ${e.itemText}`,dragSelectedItems:(e,t)=>`Dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} merket element`,other:()=>`${t.number(e.count)} merkede elementer`})}`,dragSelectedKeyboard:(e,t)=>`Trykk Enter for å dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Trykk på Alt + Enter for å dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedLongPress:(e,t)=>`Trykk lenge for å dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragStartedKeyboard:"Begynte å dra. Trykk på Tab for å navigere til et mål, og trykk deretter på Enter for å slippe eller på Esc for å avbryte.",dragStartedTouch:"Begynte å dra. Naviger til et mål, og dobbelttrykk for å slippe.",dragStartedVirtual:"Begynte å dra. Naviger til et mål, og klikk eller trykk på Enter for å slippe.",dropCanceled:"Avbrøt slipping.",dropComplete:"Slippingen er fullført.",dropDescriptionKeyboard:"Trykk på Enter for å slippe. Trykk på Esc hvis du vil avbryte draingen.",dropDescriptionTouch:"Dobbelttrykk for å slippe.",dropDescriptionVirtual:"Klikk for å slippe.",dropIndicator:"slippeindikator",dropOnItem:e=>`Slipp på ${e.itemText}`,dropOnRoot:"Slipp på",endDragKeyboard:"Drar. Trykk på Enter hvis du vil avbryte.",endDragTouch:"Drar. Dobbelttrykk hvis du vil avbryte.",endDragVirtual:"Drar. Klikk hvis du vil avbryte.",insertAfter:e=>`Sett inn etter ${e.itemText}`,insertBefore:e=>`Sett inn før ${e.itemText}`,insertBetween:e=>`Sett inn mellom ${e.beforeItemText} og ${e.afterItemText}`};var _k={};_k={dragDescriptionKeyboard:"Druk op Enter om te slepen.",dragDescriptionKeyboardAlt:"Druk op Alt + Enter om te slepen.",dragDescriptionLongPress:"Houd lang ingedrukt om te slepen.",dragDescriptionTouch:"Dubbeltik om te slepen.",dragDescriptionVirtual:"Klik om met slepen te starten.",dragItem:e=>`${e.itemText} slepen`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} slepen`,dragSelectedKeyboard:(e,t)=>`Druk op Enter om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragSelectedKeyboardAlt:(e,t)=>`Druk op Alt + Enter om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragSelectedLongPress:(e,t)=>`Houd lang ingedrukt om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragStartedKeyboard:"Begonnen met slepen. Druk op Tab om naar een locatie te gaan. Druk dan op Enter om neer te zetten, of op Esc om te annuleren.",dragStartedTouch:"Begonnen met slepen. Ga naar de gewenste locatie en dubbeltik om neer te zetten.",dragStartedVirtual:"Begonnen met slepen. Ga naar de gewenste locatie en klik of druk op Enter om neer te zetten.",dropCanceled:"Neerzetten geannuleerd.",dropComplete:"Neerzetten voltooid.",dropDescriptionKeyboard:"Druk op Enter om neer te zetten. Druk op Esc om het slepen te annuleren.",dropDescriptionTouch:"Dubbeltik om neer te zetten.",dropDescriptionVirtual:"Klik om neer te zetten.",dropIndicator:"aanwijzer voor neerzetten",dropOnItem:e=>`Neerzetten op ${e.itemText}`,dropOnRoot:"Neerzetten op",endDragKeyboard:"Bezig met slepen. Druk op Enter om te annuleren.",endDragTouch:"Bezig met slepen. Dubbeltik om te annuleren.",endDragVirtual:"Bezig met slepen. Klik om te annuleren.",insertAfter:e=>`Plaatsen na ${e.itemText}`,insertBefore:e=>`Plaatsen vóór ${e.itemText}`,insertBetween:e=>`Plaatsen tussen ${e.beforeItemText} en ${e.afterItemText}`};var Bk={};Bk={dragDescriptionKeyboard:"Naciśnij Enter, aby rozpocząć przeciąganie.",dragDescriptionKeyboardAlt:"Naciśnij Alt + Enter, aby rozpocząć przeciąganie.",dragDescriptionLongPress:"Naciśnij i przytrzymaj, aby rozpocząć przeciąganie.",dragDescriptionTouch:"Dotknij dwukrotnie, aby rozpocząć przeciąganie.",dragDescriptionVirtual:"Kliknij, aby rozpocząć przeciąganie.",dragItem:e=>`Przeciągnij ${e.itemText}`,dragSelectedItems:(e,t)=>`Przeciągnij ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybranych elementów`})}`,dragSelectedKeyboard:(e,t)=>`Naciśnij Enter, aby przeciągnąć ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-ów)`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Naciśnij Alt + Enter, aby przeciągnąć ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-ów)`})}.`,dragSelectedLongPress:(e,t)=>`Naciśnij i przytrzymaj, aby przeciągnąć ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-ów)`})}.`,dragStartedKeyboard:"Rozpoczęto przeciąganie. Naciśnij Tab, aby wybrać miejsce docelowe, a następnie naciśnij Enter, aby upuścić, lub Escape, aby anulować.",dragStartedTouch:"Rozpoczęto przeciąganie. Wybierz miejsce, w którym chcesz upuścić element, a następnie dotknij dwukrotnie, aby upuścić.F",dragStartedVirtual:"Rozpoczęto przeciąganie. Wybierz miejsce, w którym chcesz upuścić element, a następnie kliknij lub naciśnij Enter, aby upuścić.",dropCanceled:"Anulowano upuszczenie.",dropComplete:"Zakończono upuszczanie.",dropDescriptionKeyboard:"Naciśnij Enter, aby upuścić. Naciśnij Escape, aby anulować przeciągnięcie.",dropDescriptionTouch:"Dotknij dwukrotnie, aby upuścić.",dropDescriptionVirtual:"Kliknij, aby upuścić.",dropIndicator:"wskaźnik upuszczenia",dropOnItem:e=>`Upuść na ${e.itemText}`,dropOnRoot:"Upuść",endDragKeyboard:"Przeciąganie. Naciśnij Enter, aby anulować przeciągnięcie.",endDragTouch:"Przeciąganie. Kliknij dwukrotnie, aby anulować przeciągnięcie.",endDragVirtual:"Przeciąganie. Kliknij, aby anulować przeciąganie.",insertAfter:e=>`Umieść za ${e.itemText}`,insertBefore:e=>`Umieść przed ${e.itemText}`,insertBetween:e=>`Umieść między ${e.beforeItemText} i ${e.afterItemText}`};var Fk={};Fk={dragDescriptionKeyboard:"Pressione Enter para começar a arrastar.",dragDescriptionKeyboardAlt:"Pressione Alt + Enter para começar a arrastar.",dragDescriptionLongPress:"Pressione e segure para começar a arrastar.",dragDescriptionTouch:"Toque duas vezes para começar a arrastar.",dragDescriptionVirtual:"Clique para começar a arrastar.",dragItem:e=>`Arrastar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}`,dragSelectedKeyboard:(e,t)=>`Pressione Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pressione Alt + Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedLongPress:(e,t)=>`Pressione e segure para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragStartedKeyboard:"Comece a arrastar. Pressione Tab para navegar até um alvo e, em seguida, pressione Enter para soltar ou pressione Escape para cancelar.",dragStartedTouch:"Comece a arrastar. Navegue até um alvo e toque duas vezes para soltar.",dragStartedVirtual:"Comece a arrastar. Navegue até um alvo e clique ou pressione Enter para soltar.",dropCanceled:"Liberação cancelada.",dropComplete:"Liberação concluída.",dropDescriptionKeyboard:"Pressione Enter para soltar. Pressione Escape para cancelar.",dropDescriptionTouch:"Toque duas vezes para soltar.",dropDescriptionVirtual:"Clique para soltar.",dropIndicator:"indicador de liberação",dropOnItem:e=>`Soltar em ${e.itemText}`,dropOnRoot:"Soltar",endDragKeyboard:"Arrastando. Pressione Enter para cancelar.",endDragTouch:"Arrastando. Toque duas vezes para cancelar.",endDragVirtual:"Arrastando. Clique para cancelar.",insertAfter:e=>`Inserir após ${e.itemText}`,insertBefore:e=>`Inserir antes de ${e.itemText}`,insertBetween:e=>`Inserir entre ${e.beforeItemText} e ${e.afterItemText}`};var kk={};kk={dragDescriptionKeyboard:"Prima Enter para iniciar o arrasto.",dragDescriptionKeyboardAlt:"Prima Alt + Enter para iniciar o arrasto.",dragDescriptionLongPress:"Prima longamente para começar a arrastar.",dragDescriptionTouch:"Faça duplo toque para começar a arrastar.",dragDescriptionVirtual:"Clique para iniciar o arrasto.",dragItem:e=>`Arrastar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}`,dragSelectedKeyboard:(e,t)=>`Prima Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Prima Alt + Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedLongPress:(e,t)=>`Prima longamente para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragStartedKeyboard:"Arrasto iniciado. Prima a tecla de tabulação para navegar para um destino para largar, e em seguida prima Enter para largar ou prima Escape para cancelar.",dragStartedTouch:"Arrasto iniciado. Navegue para um destino para largar, e em seguida faça duplo toque para largar.",dragStartedVirtual:"Arrasto iniciado. Navegue para um destino para largar, e em seguida clique ou prima Enter para largar.",dropCanceled:"Largar cancelado.",dropComplete:"Largar completo.",dropDescriptionKeyboard:"Prima Enter para largar. Prima Escape para cancelar o arrasto.",dropDescriptionTouch:"Faça duplo toque para largar.",dropDescriptionVirtual:"Clique para largar.",dropIndicator:"Indicador de largar",dropOnItem:e=>`Largar em ${e.itemText}`,dropOnRoot:"Largar em",endDragKeyboard:"A arrastar. Prima Enter para cancelar o arrasto.",endDragTouch:"A arrastar. Faça duplo toque para cancelar o arrasto.",endDragVirtual:"A arrastar. Clique para cancelar o arrasto.",insertAfter:e=>`Inserir depois de ${e.itemText}`,insertBefore:e=>`Inserir antes de ${e.itemText}`,insertBetween:e=>`Inserir entre ${e.beforeItemText} e ${e.afterItemText}`};var Mk={};Mk={dragDescriptionKeyboard:"Apăsați pe Enter pentru a începe glisarea.",dragDescriptionKeyboardAlt:"Apăsați pe Alt + Enter pentru a începe glisarea.",dragDescriptionLongPress:"Apăsați lung pentru a începe glisarea.",dragDescriptionTouch:"Atingeți de două ori pentru a începe să glisați.",dragDescriptionVirtual:"Faceți clic pentru a începe glisarea.",dragItem:e=>`Glisați ${e.itemText}`,dragSelectedItems:(e,t)=>`Glisați ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}`,dragSelectedKeyboard:(e,t)=>`Apăsați pe Enter pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Apăsați pe Alt + Enter pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragSelectedLongPress:(e,t)=>`Apăsați lung pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragStartedKeyboard:"A început glisarea. Apăsați pe Tab pentru a naviga la o țintă de fixare, apoi apăsați pe Enter pentru a fixa sau apăsați pe Escape pentru a anula glisarea.",dragStartedTouch:"A început glisarea. Navigați la o țintă de fixare, apoi atingeți de două ori pentru a fixa.",dragStartedVirtual:"A început glisarea. Navigați la o țintă de fixare, apoi faceți clic sau apăsați pe Enter pentru a fixa.",dropCanceled:"Fixare anulată.",dropComplete:"Fixare finalizată.",dropDescriptionKeyboard:"Apăsați pe Enter pentru a fixa. Apăsați pe Escape pentru a anula glisarea.",dropDescriptionTouch:"Atingeți de două ori pentru a fixa.",dropDescriptionVirtual:"Faceți clic pentru a fixa.",dropIndicator:"indicator de fixare",dropOnItem:e=>`Fixați pe ${e.itemText}`,dropOnRoot:"Fixare pe",endDragKeyboard:"Se glisează. Apăsați pe Enter pentru a anula glisarea.",endDragTouch:"Se glisează. Atingeți de două ori pentru a anula glisarea.",endDragVirtual:"Se glisează. Faceți clic pentru a anula glisarea.",insertAfter:e=>`Inserați după ${e.itemText}`,insertBefore:e=>`Inserați înainte de ${e.itemText}`,insertBetween:e=>`Inserați între ${e.beforeItemText} și ${e.afterItemText}`};var Rk={};Rk={dragDescriptionKeyboard:"Нажмите клавишу Enter для начала перетаскивания.",dragDescriptionKeyboardAlt:"Нажмите Alt + Enter, чтобы начать перетаскивать.",dragDescriptionLongPress:"Нажмите и удерживайте, чтобы начать перетаскивать.",dragDescriptionTouch:"Дважды нажмите для начала перетаскивания.",dragDescriptionVirtual:"Щелкните для начала перетаскивания.",dragItem:e=>`Перетащить ${e.itemText}`,dragSelectedItems:(e,t)=>`Перетащить ${t.plural(e.count,{one:()=>`${t.number(e.count)} выбранный элемент`,other:()=>`${t.number(e.count)} выбранных элем`})}`,dragSelectedKeyboard:(e,t)=>`Нажмите Enter для перетаскивания ${t.plural(e.count,{one:()=>`${t.number(e.count)} выбранного элемента`,other:()=>`${t.number(e.count)} выбранных элементов`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Нажмите Alt + Enter для перетаскивания ${t.plural(e.count,{one:()=>`${t.number(e.count)} выбранного элемента`,other:()=>`${t.number(e.count)} выбранных элементов`})}.`,dragSelectedLongPress:(e,t)=>`Нажмите и удерживайте для перетаскивания ${t.plural(e.count,{one:()=>`${t.number(e.count)} выбранного элемента`,other:()=>`${t.number(e.count)} выбранных элементов`})}.`,dragStartedKeyboard:"Начато перетаскивание. Нажмите клавишу Tab для выбора цели, затем нажмите клавишу Enter, чтобы применить перетаскивание, или клавишу Escape для отмены действия.",dragStartedTouch:"Начато перетаскивание. Выберите цель, затем дважды нажмите, чтобы применить перетаскивание.",dragStartedVirtual:"Начато перетаскивание. Нажмите клавишу Tab для выбора цели, затем нажмите клавишу Enter, чтобы применить перетаскивание.",dropCanceled:"Перетаскивание отменено.",dropComplete:"Перетаскивание завершено.",dropDescriptionKeyboard:"Нажмите клавишу Enter, чтобы применить перетаскивание. Нажмите клавишу Escape для отмены.",dropDescriptionTouch:"Дважды нажмите, чтобы применить перетаскивание.",dropDescriptionVirtual:"Щелкните, чтобы применить перетаскивание.",dropIndicator:"индикатор перетаскивания",dropOnItem:e=>`Перетащить на ${e.itemText}`,dropOnRoot:"Перетащить на",endDragKeyboard:"Перетаскивание. Нажмите клавишу Enter для отмены.",endDragTouch:"Перетаскивание. Дважды нажмите для отмены.",endDragVirtual:"Перетаскивание. Щелкните для отмены.",insertAfter:e=>`Вставить после ${e.itemText}`,insertBefore:e=>`Вставить перед ${e.itemText}`,insertBetween:e=>`Вставить между ${e.beforeItemText} и ${e.afterItemText}`};var Ik={};Ik={dragDescriptionKeyboard:"Stlačením klávesu Enter začnete presúvanie.",dragDescriptionKeyboardAlt:"Stlačením klávesov Alt + Enter začnete presúvanie.",dragDescriptionLongPress:"Dlhým stlačením začnete presúvanie.",dragDescriptionTouch:"Dvojitým kliknutím začnete presúvanie.",dragDescriptionVirtual:"Kliknutím začnete presúvanie.",dragItem:e=>`Presunúť položku ${e.itemText}`,dragSelectedItems:(e,t)=>`Presunúť ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybratú položku`,other:()=>`${t.number(e.count)} vybraté položky`})}`,dragSelectedKeyboard:(e,t)=>`Stlačením klávesu Enter presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybratú položku`,other:()=>`${t.number(e.count)} vybratých položiek`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Stlačením klávesov Alt + Enter presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybratú položku`,other:()=>`${t.number(e.count)} vybratých položiek`})}.`,dragSelectedLongPress:(e,t)=>`Dlhým stlačením presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybratú položku`,other:()=>`${t.number(e.count)} vybratých položiek`})}.`,dragStartedKeyboard:"Presúvanie sa začalo. Do cieľového umiestnenia prejdete stlačením klávesu Tab. Ak chcete položku umiestniť, stlačte kláves Enter alebo stlačte kláves Esc, ak chcete presúvanie zrušiť.",dragStartedTouch:"Presúvanie sa začalo. Prejdite na cieľové umiestnenie a dvojitým kliknutím umiestnite položku.",dragStartedVirtual:"Presúvanie sa začalo. Prejdite na cieľové umiestnenie a kliknutím alebo stlačením klávesu Enter umiestnite položku.",dropCanceled:"Umiestnenie zrušené.",dropComplete:"Umiestnenie dokončené.",dropDescriptionKeyboard:"Stlačením klávesu Enter umiestnite položku. Stlačením klávesu Esc zrušíte presúvanie.",dropDescriptionTouch:"Dvojitým kliknutím umiestnite položku.",dropDescriptionVirtual:"Kliknutím umiestnite položku.",dropIndicator:"indikátor umiestnenia",dropOnItem:e=>`Umiestniť na položku ${e.itemText}`,dropOnRoot:"Umiestniť na",endDragKeyboard:"Prebieha presúvanie. Ak ho chcete zrušiť, stlačte kláves Enter.",endDragTouch:"Prebieha presúvanie. Dvojitým kliknutím ho môžete zrušiť.",endDragVirtual:"Prebieha presúvanie.",insertAfter:e=>`Vložiť za položku ${e.itemText}`,insertBefore:e=>`Vložiť pred položku ${e.itemText}`,insertBetween:e=>`Vložiť medzi položky ${e.beforeItemText} a ${e.afterItemText}`};var Ok={};Ok={dragDescriptionKeyboard:"Pritisnite tipko Enter za začetek vlečenja.",dragDescriptionKeyboardAlt:"Pritisnite tipki Alt + Enter za začetek vlečenja.",dragDescriptionLongPress:"Pritisnite in zadržite za začetek vlečenja.",dragDescriptionTouch:"Dvotapnite za začetek vlečenja.",dragDescriptionVirtual:"Kliknite za začetek vlečenja.",dragItem:e=>`Povleci ${e.itemText}`,dragSelectedItems:(e,t)=>`Povlecite ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbran element`,other:()=>`izbrane elemente (${t.number(e.count)})`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite tipko Enter, da povlečete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite tipki Alt + Enter, da povlečete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragSelectedLongPress:(e,t)=>`Pritisnite in zadržite, da povlečete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragStartedKeyboard:"Vlečenje se je začelo. Pritisnite tipko Tab za pomik na mesto, kamor želite spustiti elemente, in pritisnite tipko Enter, da jih spustite, ali tipko Escape, da prekličete postopek.",dragStartedTouch:"Vlečenje se je začelo. Pomaknite se na mesto, kamor želite spustiti elemente, in dvotapnite, da jih spustite.",dragStartedVirtual:"Vlečenje se je začelo. Pomaknite se na mesto, kamor želite spustiti elemente, in kliknite ali pritisnite tipko Enter, da jih spustite.",dropCanceled:"Spust je preklican.",dropComplete:"Spust je končan.",dropDescriptionKeyboard:"Pritisnite tipko Enter, da spustite. Pritisnite tipko Escape, da prekličete vlečenje.",dropDescriptionTouch:"Dvotapnite, da spustite.",dropDescriptionVirtual:"Kliknite, da spustite.",dropIndicator:"indikator spusta",dropOnItem:e=>`Spusti na mesto ${e.itemText}`,dropOnRoot:"Spusti na mesto",endDragKeyboard:"Vlečenje. Pritisnite tipko Enter za preklic vlečenja.",endDragTouch:"Vlečenje. Dvotapnite za preklic vlečenja.",endDragVirtual:"Vlečenje. Kliknite, da prekličete vlečenje.",insertAfter:e=>`Vstavi za ${e.itemText}`,insertBefore:e=>`Vstavi pred ${e.itemText}`,insertBetween:e=>`Vstavi med ${e.beforeItemText} in ${e.afterItemText}`};var Lk={};Lk={dragDescriptionKeyboard:"Pritisnite Enter da biste započeli prevlačenje.",dragDescriptionKeyboardAlt:"Pritisnite Alt + Enter da biste započeli prevlačenje.",dragDescriptionLongPress:"Pritisnite dugo da biste započeli prevlačenje.",dragDescriptionTouch:"Dvaput dodirnite da biste započeli prevlačenje.",dragDescriptionVirtual:"Kliknite da biste započeli prevlačenje.",dragItem:e=>`Prevucite ${e.itemText}`,dragSelectedItems:(e,t)=>`Prevucite ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabrane stavke`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite Enter da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite Alt + Enter da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragSelectedLongPress:(e,t)=>`Pritisnite dugo da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragStartedKeyboard:"Prevlačenje je započeto. Pritisnite Tab da biste otišli do cilja za otpuštanje, zatim pritisnite Enter za ispuštanje ili pritisnite Escape za otkazivanje.",dragStartedTouch:"Prevlačenje je započeto. Idite do cilja za otpuštanje, a zatim dvaput dodirnite za otpuštanje.",dragStartedVirtual:"Prevlačenje je započeto. Idite do cilja za otpuštanje, a zatim kliknite ili pritinite Enter za otpuštanje.",dropCanceled:"Otpuštanje je otkazano.",dropComplete:"Prevlačenje je završeno.",dropDescriptionKeyboard:"Pritisnite Enter da biste otpustili. Pritisnite Escape da biste otkazali prevlačenje.",dropDescriptionTouch:"Dvaput dodirnite za otpuštanje.",dropDescriptionVirtual:"Kliknite za otpuštanje.",dropIndicator:"Indikator otpuštanja",dropOnItem:e=>`Otpusti na ${e.itemText}`,dropOnRoot:"Otpusti na",endDragKeyboard:"Prevlačenje u toku. Pritisnite Enter da biste otkazali prevlačenje.",endDragTouch:"Prevlačenje u toku. Dvaput dodirnite da biste otkazali prevlačenje.",endDragVirtual:"Prevlačenje u toku. Kliknite da biste otkazali prevlačenje.",insertAfter:e=>`Umetnite posle ${e.itemText}`,insertBefore:e=>`Umetnite ispred ${e.itemText}`,insertBetween:e=>`Umetnite između ${e.beforeItemText} i ${e.afterItemText}`};var Vk={};Vk={dragDescriptionKeyboard:"Tryck på enter för att börja dra.",dragDescriptionKeyboardAlt:"Tryck på Alt + Retur för att börja dra.",dragDescriptionLongPress:"Tryck länge för att börja dra.",dragDescriptionTouch:"Dubbeltryck för att börja dra.",dragDescriptionVirtual:"Klicka för att börja dra.",dragItem:e=>`Dra ${e.itemText}`,dragSelectedItems:(e,t)=>`Dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valt objekt`,other:()=>`${t.number(e.count)} valda objekt`})}`,dragSelectedKeyboard:(e,t)=>`Tryck på Retur för att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Tryck på Alt + Retur för att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragSelectedLongPress:(e,t)=>`Tryck länge för att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragStartedKeyboard:"Börja dra. Tryck på tabb för att navigera till målet, tryck på enter för att släppa eller på escape för att avbryta.",dragStartedTouch:"Börja dra. Navigera till ett mål och dubbeltryck för att släppa.",dragStartedVirtual:"Börja dra. Navigera till ett mål och klicka eller tryck på enter för att släppa.",dropCanceled:"Släppåtgärd avbröts.",dropComplete:"Släppåtgärd klar.",dropDescriptionKeyboard:"Tryck på enter för att släppa. Tryck på escape för att avbryta dragåtgärd.",dropDescriptionTouch:"Dubbeltryck för att släppa.",dropDescriptionVirtual:"Klicka för att släppa.",dropIndicator:"släppindikator",dropOnItem:e=>`Släpp på ${e.itemText}`,dropOnRoot:"Släpp på",endDragKeyboard:"Drar. Tryck på enter för att avbryta dragåtgärd.",endDragTouch:"Drar. Dubbeltryck för att avbryta dragåtgärd.",endDragVirtual:"Drar. Klicka för att avbryta dragåtgärd.",insertAfter:e=>`Infoga efter ${e.itemText}`,insertBefore:e=>`Infoga före ${e.itemText}`,insertBetween:e=>`Infoga mellan ${e.beforeItemText} och ${e.afterItemText}`};var Nk={};Nk={dragDescriptionKeyboard:"Sürüklemeyi başlatmak için Enter'a basın.",dragDescriptionKeyboardAlt:"Sürüklemeyi başlatmak için Alt + Enter'a basın.",dragDescriptionLongPress:"Sürüklemeye başlamak için uzun basın.",dragDescriptionTouch:"Sürüklemeyi başlatmak için çift tıklayın.",dragDescriptionVirtual:"Sürüklemeyi başlatmak için tıklayın.",dragItem:e=>`${e.itemText}’i sürükle`,dragSelectedItems:(e,t)=>`Sürükle ${t.plural(e.count,{one:()=>`${t.number(e.count)} seçili öge`,other:()=>`${t.number(e.count)} seçili öge`})}`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} seçilmiş öğe`,other:()=>`${t.number(e.count)} seçilmiş öğe`})} öğesini sürüklemek için Enter'a basın.`,dragSelectedKeyboardAlt:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} seçilmiş öğe`,other:()=>`${t.number(e.count)} seçilmiş öğe`})} öğesini sürüklemek için Alt + Enter tuşuna basın.`,dragSelectedLongPress:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} seçilmiş öğe`,other:()=>`${t.number(e.count)} seçilmiş öğe`})} öğesini sürüklemek için uzun basın.`,dragStartedKeyboard:"Sürükleme başlatıldı. Bir bırakma hedefine gitmek için Tab’a basın, ardından bırakmak için Enter’a basın veya iptal etmek için Escape’e basın.",dragStartedTouch:"Sürükleme başlatıldı. Bir bırakma hedefine gidin, ardından bırakmak için çift tıklayın.",dragStartedVirtual:"Sürükleme başlatıldı. Bir bırakma hedefine gidin, ardından bırakmak için Enter’a tıklayın veya basın.",dropCanceled:"Bırakma iptal edildi.",dropComplete:"Bırakma tamamlandı.",dropDescriptionKeyboard:"Bırakmak için Enter'a basın. Sürüklemeyi iptal etmek için Escape'e basın.",dropDescriptionTouch:"Bırakmak için çift tıklayın.",dropDescriptionVirtual:"Bırakmak için tıklayın.",dropIndicator:"bırakma göstergesi",dropOnItem:e=>`${e.itemText} üzerine bırak`,dropOnRoot:"Bırakın",endDragKeyboard:"Sürükleme. Sürüklemeyi iptal etmek için Enter'a basın.",endDragTouch:"Sürükleme. Sürüklemeyi iptal etmek için çift tıklayın.",endDragVirtual:"Sürükleme. Sürüklemeyi iptal etmek için tıklayın.",insertAfter:e=>`${e.itemText}’den sonra gir`,insertBefore:e=>`${e.itemText}’den önce gir`,insertBetween:e=>`${e.beforeItemText} ve ${e.afterItemText} arasına gir`};var jk={};jk={dragDescriptionKeyboard:"Натисніть Enter, щоб почати перетягування.",dragDescriptionKeyboardAlt:"Натисніть Alt + Enter, щоб почати перетягування.",dragDescriptionLongPress:"Натисніть і утримуйте, щоб почати перетягування.",dragDescriptionTouch:"Натисніть двічі, щоб почати перетягування.",dragDescriptionVirtual:"Натисніть, щоб почати перетягування.",dragItem:e=>`Перетягнути ${e.itemText}`,dragSelectedItems:(e,t)=>`Перетягніть ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елем`})}`,dragSelectedKeyboard:(e,t)=>`Натисніть Enter, щоб перетягнути ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елементи(-ів)`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Натисніть Alt + Enter, щоб перетягнути ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елементи(-ів)`})}.`,dragSelectedLongPress:(e,t)=>`Утримуйте, щоб перетягнути ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елементи(-ів)`})}.`,dragStartedKeyboard:"Перетягування почалося. Натисніть Tab, щоб перейти до цілі перетягування, потім натисніть Enter, щоб перетягнути, або Escape, щоб скасувати.",dragStartedTouch:"Перетягування почалося. Перейдіть до цілі перетягування, потім натисніть двічі, щоб перетягнути.",dragStartedVirtual:"Перетягування почалося. Перейдіть до цілі перетягування, потім натисніть Enter, щоб перетягнути.",dropCanceled:"Перетягування скасовано.",dropComplete:"Перетягування завершено.",dropDescriptionKeyboard:"Натисніть Enter, щоб перетягнути. Натисніть Escape, щоб скасувати перетягування.",dropDescriptionTouch:"Натисніть двічі, щоб перетягнути.",dropDescriptionVirtual:"Натисніть, щоб перетягнути.",dropIndicator:"індикатор перетягування",dropOnItem:e=>`Перетягнути на ${e.itemText}`,dropOnRoot:"Перетягнути на",endDragKeyboard:"Триває перетягування. Натисніть Enter, щоб скасувати перетягування.",endDragTouch:"Триває перетягування. Натисніть двічі, щоб скасувати перетягування.",endDragVirtual:"Триває перетягування. Натисніть, щоб скасувати перетягування.",insertAfter:e=>`Вставити після ${e.itemText}`,insertBefore:e=>`Вставити перед ${e.itemText}`,insertBetween:e=>`Вставити між ${e.beforeItemText} і ${e.afterItemText}`};var Kk={};Kk={dragDescriptionKeyboard:"按 Enter 开始拖动。",dragDescriptionKeyboardAlt:"按 Alt + Enter 开始拖动。",dragDescriptionLongPress:"长按以开始拖动。",dragDescriptionTouch:"双击开始拖动。",dragDescriptionVirtual:"单击开始拖动。",dragItem:e=>`拖动 ${e.itemText}`,dragSelectedItems:(e,t)=>`拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 选中项目`,other:()=>`${t.number(e.count)} 选中项目`})}`,dragSelectedKeyboard:(e,t)=>`按 Enter 以拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 个选定项`,other:()=>`${t.number(e.count)} 个选定项`})}。`,dragSelectedKeyboardAlt:(e,t)=>`按 Alt + Enter 以拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 个选定项`,other:()=>`${t.number(e.count)} 个选定项`})}。`,dragSelectedLongPress:(e,t)=>`长按以拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 个选定项`,other:()=>`${t.number(e.count)} 个选定项`})}。`,dragStartedKeyboard:"已开始拖动。按 Tab 导航到放置目标,然后按 Enter 放置或按 Escape 取消。",dragStartedTouch:"已开始拖动。导航到放置目标,然后双击放置。",dragStartedVirtual:"已开始拖动。导航到放置目标,然后单击或按 Enter 放置。",dropCanceled:"放置已取消。",dropComplete:"放置已完成。",dropDescriptionKeyboard:"按 Enter 放置。按 Escape 取消拖动。",dropDescriptionTouch:"双击放置。",dropDescriptionVirtual:"单击放置。",dropIndicator:"放置标记",dropOnItem:e=>`放置于 ${e.itemText}`,dropOnRoot:"放置于",endDragKeyboard:"正在拖动。按 Enter 取消拖动。",endDragTouch:"正在拖动。双击取消拖动。",endDragVirtual:"正在拖动。单击取消拖动。",insertAfter:e=>`插入到 ${e.itemText} 之后`,insertBefore:e=>`插入到 ${e.itemText} 之前`,insertBetween:e=>`插入到 ${e.beforeItemText} 和 ${e.afterItemText} 之间`};var zk={};zk={dragDescriptionKeyboard:"按 Enter 鍵以開始拖曳。",dragDescriptionKeyboardAlt:"按 Alt+Enter 鍵以開始拖曳。",dragDescriptionLongPress:"長按以開始拖曳。",dragDescriptionTouch:"輕點兩下以開始拖曳。",dragDescriptionVirtual:"按一下滑鼠以開始拖曳。",dragItem:e=>`拖曳「${e.itemText}」`,dragSelectedItems:(e,t)=>`拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}`,dragSelectedKeyboard:(e,t)=>`按 Enter 鍵以拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}。`,dragSelectedKeyboardAlt:(e,t)=>`按 Alt+Enter 鍵以拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}。`,dragSelectedLongPress:(e,t)=>`長按以拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}。`,dragStartedKeyboard:"已開始拖曳。按 Tab 鍵以瀏覽至放置目標,然後按 Enter 鍵以放置,或按 Escape 鍵以取消。",dragStartedTouch:"已開始拖曳。瀏覽至放置目標,然後輕點兩下以放置。",dragStartedVirtual:"已開始拖曳。瀏覽至放置目標,然後按一下滑鼠或按 Enter 鍵以放置。",dropCanceled:"放置已取消。",dropComplete:"放置已完成。",dropDescriptionKeyboard:"按 Enter 鍵以放置。按 Escape 鍵以取消拖曳。",dropDescriptionTouch:"輕點兩下以放置。",dropDescriptionVirtual:"按一下滑鼠以放置。",dropIndicator:"放置指示器",dropOnItem:e=>`放置在「${e.itemText}」上`,dropOnRoot:"放置在",endDragKeyboard:"拖曳中。按 Enter 鍵以取消拖曳。",endDragTouch:"拖曳中。輕點兩下以取消拖曳。",endDragVirtual:"拖曳中。按一下滑鼠以取消拖曳。",insertAfter:e=>`插入至「${e.itemText}」之後`,insertBefore:e=>`插入至「${e.itemText}」之前`,insertBetween:e=>`插入至「${e.beforeItemText}」和「${e.afterItemText}」之間`};var qk={};qk={"ar-AE":ck,"bg-BG":dk,"cs-CZ":fk,"da-DK":hk,"de-DE":pk,"el-GR":mk,"en-US":gk,"es-ES":vk,"et-EE":yk,"fi-FI":bk,"fr-FR":xk,"he-IL":Dk,"hr-HR":$k,"hu-HU":Ek,"it-IT":Ck,"ja-JP":wk,"ko-KR":Ak,"lt-LT":Sk,"lv-LV":Tk,"nb-NO":Pk,"nl-NL":_k,"pl-PL":Bk,"pt-BR":Fk,"pt-PT":kk,"ro-RO":Mk,"ru-RU":Rk,"sk-SK":Ik,"sl-SI":Ok,"sr-SP":Lk,"sv-SE":Vk,"tr-TR":Nk,"uk-UA":jk,"zh-CN":Kk,"zh-TW":zk};function tee(e){return e&&e.__esModule?e.default:e}const nee={keyboard:"dropDescriptionKeyboard",touch:"dropDescriptionTouch",virtual:"dropDescriptionVirtual"};function ree(){let e=Ta(tee(qk),"@react-aria/dnd"),t=HJ(),n=eee();return{dropProps:{...fc(n?e.format(nee[t]):""),onClick:()=>{}}}}const iee=800;function aee(e){let{hasDropButton:t,isDisabled:n}=e,[r,i]=I.useState(!1),a=I.useRef({x:0,y:0,dragOverElements:new Set,dropEffect:"none",allowedOperations:ri.all,dropActivateTimer:void 0}).current,o=E=>{if(i(!0),typeof e.onDropEnter=="function"){let T=E.currentTarget.getBoundingClientRect();e.onDropEnter({type:"dropenter",x:E.clientX-T.x,y:E.clientY-T.y})}},s=E=>{if(i(!1),typeof e.onDropExit=="function"){let T=E.currentTarget.getBoundingClientRect();e.onDropExit({type:"dropexit",x:E.clientX-T.x,y:E.clientY-T.y})}},l=E=>{E.preventDefault(),E.stopPropagation();let T=Tw(E);if(E.clientX===a.x&&E.clientY===a.y&&T===a.allowedOperations){E.dataTransfer.dropEffect=a.dropEffect;return}a.x=E.clientX,a.y=E.clientY;let P=a.dropEffect;if(T!==a.allowedOperations){let F=G4(T),q=F[0];if(typeof e.getDropOperation=="function"){let te=new Ch(E.dataTransfer);q=wh(T,e.getDropOperation(te,F))}a.dropEffect=H4[q]||"none"}if(typeof e.getDropOperationForPoint=="function"){let F=new Ch(E.dataTransfer),q=E.currentTarget.getBoundingClientRect(),te=wh(T,e.getDropOperationForPoint(F,G4(T),a.x-q.x,a.y-q.y));a.dropEffect=H4[te]||"none"}if(a.allowedOperations=T,E.dataTransfer.dropEffect=a.dropEffect,a.dropEffect==="none"&&P!=="none"?s(E):a.dropEffect!=="none"&&P==="none"&&o(E),typeof e.onDropMove=="function"&&a.dropEffect!=="none"){let F=E.currentTarget.getBoundingClientRect();e.onDropMove({type:"dropmove",x:a.x-F.x,y:a.y-F.y})}if(clearTimeout(a.dropActivateTimer),e.onDropActivate&&typeof e.onDropActivate=="function"&&a.dropEffect!=="none"){let F=e.onDropActivate,q=E.currentTarget.getBoundingClientRect();a.dropActivateTimer=setTimeout(()=>{F({type:"dropactivate",x:a.x-q.x,y:a.y-q.y})},iee)}},f=E=>{if(E.preventDefault(),E.stopPropagation(),a.dragOverElements.add(E.target),a.dragOverElements.size>1)return;let T=Tw(E),P=G4(T),F=P[0];if(typeof e.getDropOperation=="function"){let q=new Ch(E.dataTransfer);F=wh(T,e.getDropOperation(q,P))}if(typeof e.getDropOperationForPoint=="function"){let q=new Ch(E.dataTransfer),te=E.currentTarget.getBoundingClientRect();F=wh(T,e.getDropOperationForPoint(q,P,E.clientX-te.x,E.clientY-te.y))}a.x=E.clientX,a.y=E.clientY,a.allowedOperations=T,a.dropEffect=H4[F]||"none",E.dataTransfer.dropEffect=a.dropEffect,F!=="cancel"&&o(E)},h=E=>{E.preventDefault(),E.stopPropagation(),a.dragOverElements.delete(E.target);for(let T of a.dragOverElements)E.currentTarget.contains(T)||a.dragOverElements.delete(T);a.dragOverElements.size>0||(a.dropEffect!=="none"&&s(E),clearTimeout(a.dropActivateTimer))},m=E=>{if(E.preventDefault(),E.stopPropagation(),a.dropEffect,typeof e.onDrop=="function"){let P=ok[a.dropEffect],F=GJ(E.dataTransfer),q=E.currentTarget.getBoundingClientRect(),te={type:"drop",x:E.clientX-q.x,y:E.clientY-q.y,items:F,dropOperation:P};e.onDrop(te)}let T={...lk};a.dragOverElements.clear(),s(E),clearTimeout(a.dropActivateTimer),T.draggingCollectionRef==null||QJ(T)},g=cn(E=>{typeof e.onDropEnter=="function"&&e.onDropEnter(E)}),b=cn(E=>{typeof e.onDropExit=="function"&&e.onDropExit(E)}),$=cn(E=>{typeof e.onDropActivate=="function"&&e.onDropActivate(E)}),x=cn(E=>{typeof e.onDrop=="function"&&e.onDrop(E)}),A=cn((E,T)=>e.getDropOperation?e.getDropOperation(E,T):T[0]),{ref:w}=e;hn(()=>{if(!(n||!w.current))return JJ({element:w.current,getDropOperation:A,onDropEnter(E){i(!0),g(E)},onDropExit(E){i(!1),b(E)},onDrop:x,onDropActivate:$})},[n,w,A,g,b,x,$]);let{dropProps:C}=ree();return n?{dropProps:{},dropButtonProps:{isDisabled:!0},isDropTarget:!1}:{dropProps:{...!t&&C,onDragEnter:f,onDragOver:l,onDragLeave:h,onDrop:m},dropButtonProps:{...t&&C},isDropTarget:r}}function Tw(e){let t=ak[e.dataTransfer.effectAllowed];Cw&&(t&=Cw);let n=ri.none;return oo()?(e.altKey&&(n|=ri.copy),e.ctrlKey&&!Cb()&&(n|=ri.link),e.metaKey&&(n|=ri.move)):(e.altKey&&(n|=ri.link),e.shiftKey&&(n|=ri.move),e.ctrlKey&&(n|=ri.copy)),n?t&n:t}function G4(e){let t=[];return e&ri.move&&t.push("move"),e&ri.copy&&t.push("copy"),e&ri.link&&t.push("link"),t}function wh(e,t){let n=ri[t];return e&n?t:"cancel"}function ql(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function K3(e,t,n,r,i){let a={};for(let s in t)a[s]=Math.floor(t[s]/2),a[s]>0&&t[s]%2===0&&a[s]--;let o=fu(e,t,n).subtract(a);return Wd(e,o,t,n,r,i)}function fu(e,t,n,r,i){let a=e;return t.years?a=tX(e):t.months?a=gf(e):t.weeks&&(a=jd(e,n)),Wd(e,a,t,n,r,i)}function z3(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 o=fu(e,t,n).subtract(a);return Wd(e,o,t,n,r,i)}function Wd(e,t,n,r,i,a){if(i&&e.compare(i)>=0){let o=Ob(t,fu(qr(i),n,r));o&&(t=o)}if(a&&e.compare(a)<=0){let o=Ib(t,z3(qr(a),n,r));o&&(t=o)}return t}function fs(e,t,n){if(t){let r=Ob(e,qr(t));r&&(e=r)}if(n){let r=Ib(e,qr(n));r&&(e=r)}return e}function Uk(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 Wk(e){let t=I.useMemo(()=>new Gi(e.locale),[e.locale]),n=I.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:o,maxValue:s,selectionAlignment:l,isDateUnavailable:f,pageBehavior:h="visible",firstDayOfWeek:m}=e,g=I.useMemo(()=>i(n.calendar),[i,n.calendar]);var b;let[$,x]=Ai(e.value,(b=e.defaultValue)!==null&&b!==void 0?b:null,e.onChange),A=I.useMemo(()=>$?kn(qr($),g):null,[$,g]),w=I.useMemo(()=>$&&"timeZone"in $?$.timeZone:n.timeZone,[$,n.timeZone]),C=I.useMemo(()=>e.focusedValue?fs(kn(qr(e.focusedValue),g),o,s):void 0,[e.focusedValue,g,o,s]),E=I.useMemo(()=>fs(e.defaultFocusedValue?kn(qr(e.defaultFocusedValue),g):A||kn(wm(w),g),o,s),[e.defaultFocusedValue,A,w,g,o,s]),[T,P]=Ai(C,E,e.onFocusChange),[F,q]=I.useState(()=>{switch(l){case"start":return fu(T,a,r,o,s);case"end":return z3(T,a,r,o,s);case"center":default:return K3(T,a,r,o,s)}}),[te,se]=I.useState(e.autoFocus||!1),ae=I.useMemo(()=>{let oe={...a};return oe.days?oe.days--:oe.days=-1,F.add(oe)},[F,a]),[O,Ee]=I.useState(g);if(!Cm(g,O)){let oe=kn(T,g);q(K3(oe,a,r,o,s)),P(oe),Ee(g)}ql(T,o,s)?P(fs(T,o,s)):T.compare(F)<0?q(z3(T,a,r,o,s)):T.compare(ae)>0&&q(fu(T,a,r,o,s));function be(oe){oe=fs(oe,o,s),P(oe)}function z(oe){if(!e.isDisabled&&!e.isReadOnly){let le=oe;if(le===null){x(null);return}if(le=fs(le,o,s),le=Uk(le,F,f),!le)return;le=kn(le,($==null?void 0:$.calendar)||new Ur),$&&"hour"in $?x($.set(le)):x(le)}}let G=I.useMemo(()=>A?f&&f(A)?!0:ql(A,o,s):!1,[A,f,o,s]),V=e.isInvalid||e.validationState==="invalid"||G,R=V?"invalid":null,K=I.useMemo(()=>h==="visible"?a:Y4(a),[h,a]);var fe,M;return{isDisabled:(fe=e.isDisabled)!==null&&fe!==void 0?fe:!1,isReadOnly:(M=e.isReadOnly)!==null&&M!==void 0?M:!1,value:A,setValue:z,visibleRange:{start:F,end:ae},minValue:o,maxValue:s,focusedDate:T,timeZone:w,validationState:R,isValueInvalid:V,setFocusedDate(oe){be(oe),se(!0)},focusNextDay(){be(T.add({days:1}))},focusPreviousDay(){be(T.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&be(T.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&be(T.subtract({weeks:1}))},focusNextPage(){let oe=F.add(K);P(fs(T.add(K),o,s)),q(fu(Wd(T,oe,K,r,o,s),K,r))},focusPreviousPage(){let oe=F.subtract(K);P(fs(T.subtract(K),o,s)),q(fu(Wd(T,oe,K,r,o,s),K,r))},focusSectionStart(){a.days?be(F):a.weeks?be(jd(T,r)):(a.months||a.years)&&be(gf(T))},focusSectionEnd(){a.days?be(ae):a.weeks?be(iX(T,r)):(a.months||a.years)&&be(E3(T))},focusNextSection(oe){if(!oe&&!a.days){be(T.add(Y4(a)));return}a.days?this.focusNextPage():a.weeks?be(T.add({months:1})):(a.months||a.years)&&be(T.add({years:1}))},focusPreviousSection(oe){if(!oe&&!a.days){be(T.subtract(Y4(a)));return}a.days?this.focusPreviousPage():a.weeks?be(T.subtract({months:1})):(a.months||a.years)&&be(T.subtract({years:1}))},selectFocusedDate(){f&&f(T)||z(T)},selectDate(oe){z(oe)},isFocused:te,setFocused:se,isInvalid(oe){return ql(oe,o,s)},isSelected(oe){return A!=null&&er(oe,A)&&!this.isCellDisabled(oe)&&!this.isCellUnavailable(oe)},isCellFocused(oe){return te&&T&&er(oe,T)},isCellDisabled(oe){return e.isDisabled||oe.compare(F)<0||oe.compare(ae)>0||this.isInvalid(oe)},isCellUnavailable(oe){return e.isDateUnavailable?e.isDateUnavailable(oe):!1},isPreviousVisibleRangeInvalid(){let oe=F.subtract({days:1});return er(oe,F)||this.isInvalid(oe)},isNextVisibleRangeInvalid(){let oe=ae.add({days:1});return er(oe,ae)||this.isInvalid(oe)},getDatesInWeek(oe,le=F){let Se=le.add({weeks:oe}),_e=[];Se=jd(Se,r,m);let Be=Rb(Se,r,m);for(let Ge=0;Ge<Be;Ge++)_e.push(null);for(;_e.length<7;){_e.push(Se);let Ge=Se.add({days:1});if(er(Se,Ge))break;Se=Ge}for(;_e.length<7;)_e.push(null);return _e}}}function Y4(e){let t={...e};for(let n in e)t[n]=1;return t}function oee(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:o={months:1},minValue:s,maxValue:l,...f}=e,[h,m]=Ai(t,n||null,r),[g,b]=I.useState(null),$="center";if(h&&h.start&&h.end){let K=K3(qr(h.start),o,a,s,l).add(o).subtract({days:1});h.end.compare(K)>0&&($="start")}let x=I.useRef(null),[A,w]=I.useState(null),C=I.useMemo(()=>Ob(s,A==null?void 0:A.start),[s,A]),E=I.useMemo(()=>Ib(l,A==null?void 0:A.end),[l,A]),T=Wk({...f,value:h&&h.start,createCalendar:i,locale:a,visibleDuration:o,minValue:C,maxValue:E,selectionAlignment:e.selectionAlignment||$}),P=R=>{if(R&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const K=_w(R,T,-1),fe=_w(R,T,1);x.current={start:K,end:fe},w(x.current)}else x.current=null,w(null)},[F,q]=I.useState(T.visibleRange);(!$3(T.visibleRange.start,F.start)||!$3(T.visibleRange.end,F.end))&&(P(g),q(T.visibleRange));let te=R=>{R?(b(R),P(R)):(b(null),P(null))},se=g?Z4(g,T.focusedDate):h&&Z4(h.start,h.end),ae=R=>{if(e.isReadOnly)return;const K=fs(R,C,E),fe=Uk(K,T.visibleRange.start,e.isDateUnavailable);if(fe)if(!g)te(fe);else{let M=Z4(g,fe);M&&m({start:Pw(M.start,h==null?void 0:h.start),end:Pw(M.end,h==null?void 0:h.end)}),te(null)}},[O,Ee]=I.useState(!1),{isDateUnavailable:be}=e,z=I.useMemo(()=>!h||g?!1:be&&(be(h.start)||be(h.end))?!0:ql(h.start,s,l)||ql(h.end,s,l),[be,h,g,s,l]),G=e.isInvalid||e.validationState==="invalid"||z;return{...T,value:h,setValue:m,anchorDate:g,setAnchorDate:te,highlightedRange:se,validationState:G?"invalid":null,isValueInvalid:G,selectFocusedDate(){ae(T.focusedDate)},selectDate:ae,highlightDate(R){g&&T.setFocusedDate(R)},isSelected(R){return!!(se&&R.compare(se.start)>=0&&R.compare(se.end)<=0&&!T.isCellDisabled(R)&&!T.isCellUnavailable(R))},isInvalid(R){var K,fe;return T.isInvalid(R)||ql(R,(K=x.current)===null||K===void 0?void 0:K.start,(fe=x.current)===null||fe===void 0?void 0:fe.end)},isDragging:O,setDragging:Ee}}function Z4(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:qr(e),end:qr(t)})}function Pw(e,t){return e=kn(e,(t==null?void 0:t.calendar)||new Ur),t&&"hour"in t?t.set(e):e}function _w(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 q3{*[Symbol.iterator](){yield*this.iterable}get size(){return this._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 l of s.childNodes)n(l)};for(let s of t)n(s);let r=null,i=0,a=0;for(let[s,l]of this.keyMap)r?(r.nextKey=s,l.prevKey=r.key):(this.firstKey=s,l.prevKey=void 0),l.type==="item"&&(l.index=i++),(l.type==="section"||l.type==="item")&&a++,r=l,r.nextKey=void 0;this._size=a;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}class ga extends Set{constructor(t,n,r){super(t),t instanceof ga?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function see(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function uee(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e,o=I.useRef(!1),[,s]=I.useState(!1),l=I.useRef(null),f=I.useRef(null),[,h]=I.useState(null),m=I.useMemo(()=>Bw(e.selectedKeys),[e.selectedKeys]),g=I.useMemo(()=>Bw(e.defaultSelectedKeys,new ga),[e.defaultSelectedKeys]),[b,$]=Ai(m,g,e.onSelectionChange),x=I.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[A,w]=I.useState(i);i==="replace"&&A==="toggle"&&typeof b=="object"&&b.size===0&&w("replace");let C=I.useRef(i);return I.useEffect(()=>{i!==C.current&&(w(i),C.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:A,setSelectionBehavior:w,get isFocused(){return o.current},setFocused(E){o.current=E,s(E)},get focusedKey(){return l.current},get childFocusStrategy(){return f.current},setFocusedKey(E,T="first"){l.current=E,f.current=T,h(E)},selectedKeys:b,setSelectedKeys(E){(r||!see(E,b))&&$(E)},disabledKeys:x,disabledBehavior:a}}function Bw(e,t){return e?e==="all"?"all":new ga(e):t}class Qb{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&&W4(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&&W4(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 ga([n],n,n);else{let o=this.state.selectedKeys;var i;let s=(i=o.anchorKey)!==null&&i!==void 0?i:n;r=new ga(o,s,n);var a;for(let l of this.getKeyRange(s,(a=o.currentKey)!==null&&a!==void 0?a:n))r.delete(l);for(let l of this.getKeyRange(n,s))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?W4(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 o=this.collection.getItem(a);if(o&&(o.type==="item"||o.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 ga(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 ga([n],n,n):new ga;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new ga;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 o=this.collection.getItem(r);(o==null?void 0:o.type)==="item"&&t.push(r);var a;o!=null&&o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n((a=(i=wJ(Fm(o,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 ga)}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 Qb(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 lee(e){let{filter:t,layoutDelegate:n}=e,r=uee(e),i=I.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=I.useCallback(f=>t?new q3(t(f)):new q3(f),[t]),o=I.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),s=CJ(e,a,o),l=I.useMemo(()=>new Qb(s,r,{layoutDelegate:n}),[s,r,n]);return cee(s,l),{collection:s,disabledKeys:i,selectionManager:l}}function cee(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(w=>{const C=n.current.getItem(w);return(C==null?void 0:C.type)==="item"?C:null}).filter(w=>w!==null),g=[...e.getKeys()].map(w=>{const C=e.getItem(w);return(C==null?void 0:C.type)==="item"?C:null}).filter(w=>w!==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,o,s;let $=Math.min(b>1?Math.max(((a=h==null?void 0:h.index)!==null&&a!==void 0?a:0)-b+1,0):(o=h==null?void 0:h.index)!==null&&o!==void 0?o:0,((s=g==null?void 0:g.length)!==null&&s!==void 0?s:0)-1),x=null,A=!1;for(;$>=0;){if(!t.isDisabled(g[$].key)){x=g[$];break}if($<g.length-1&&!A)$++;else{A=!0;var l,f;$>((l=h==null?void 0:h.index)!==null&&l!==void 0?l:0)&&($=(f=h==null?void 0:h.index)!==null&&f!==void 0?f:0),$--}}t.setFocusedKey(x?x.key:null)}n.current=e},[e,t])}function dee(e){var t;let[n,r]=Ai(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=I.useMemo(()=>n!=null?[n]:[],[n]),{collection:a,disabledKeys:o,selectionManager:s}=lee({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:f=>{if(f==="all")return;var h;let m=(h=f.values().next().value)!==null&&h!==void 0?h:null;m===n&&e.onSelectionChange&&e.onSelectionChange(m),r(m)}}),l=n!=null?a.getItem(n):null;return{collection:a,disabledKeys:o,selectionManager:s,selectedKey:n,setSelectedKey:r,selectedItem:l}}function Jb(e){let[t,n]=Ai(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 fee(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:a,shouldCloseOnBlur:o=!0}=e,[s,l]=I.useState(!1),[f,h]=I.useState(!1),[m,g]=I.useState(null),b=Ae=>{e.onSelectionChange&&e.onSelectionChange(Ae),Ae===w&&(Se(),M())};var $;let{collection:x,selectionManager:A,selectedKey:w,setSelectedKey:C,selectedItem:E,disabledKeys:T}=dee({...e,onSelectionChange:b,items:($=e.items)!==null&&$!==void 0?$:e.defaultItems}),[P,F]=Ai(e.inputValue,Fw(e.defaultInputValue,w,x)||"",e.onInputChange),[q]=I.useState(w),[te]=I.useState(P),se=x,ae=I.useMemo(()=>e.items!=null||!n?x:hee(x,P,n),[x,P,n,e.items]),[O,Ee]=I.useState(ae),be=I.useRef("focus"),G=Jb({...e,onOpenChange:Ae=>{e.onOpenChange&&e.onOpenChange(Ae,Ae?be.current:void 0),A.setFocused(Ae),Ae||A.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),V=(Ae=null,Fe)=>{let Qe=Fe==="manual"||Fe==="focus"&&r==="focus";(i||ae.size>0||Qe&&se.size>0||e.items)&&(Qe&&!G.isOpen&&e.items===void 0&&l(!0),be.current=Fe,g(Ae),G.open())},R=(Ae=null,Fe)=>{let Qe=Fe==="manual"||Fe==="focus"&&r==="focus";!(i||ae.size>0||Qe&&se.size>0||e.items)&&!G.isOpen||(Qe&&!G.isOpen&&e.items===void 0&&l(!0),G.isOpen||(be.current=Fe),fe(Ae))},K=I.useCallback(()=>{Ee(s?se:ae)},[s,se,ae]),fe=I.useCallback((Ae=null)=>{G.isOpen&&K(),g(Ae),G.toggle()},[G,K]),M=I.useCallback(()=>{G.isOpen&&(K(),G.close())},[G,K]),[oe,le]=I.useState(P),Se=()=>{var Ae,Fe;let Qe=w!=null&&(Fe=(Ae=x.getItem(w))===null||Ae===void 0?void 0:Ae.textValue)!==null&&Fe!==void 0?Fe:"";le(Qe),F(Qe)};var _e,Be;let Ge=I.useRef((Be=(_e=e.selectedKey)!==null&&_e!==void 0?_e:e.defaultSelectedKey)!==null&&Be!==void 0?Be:null);var Xe;let Ne=I.useRef(w!=null&&(Xe=(t=x.getItem(w))===null||t===void 0?void 0:t.textValue)!==null&&Xe!==void 0?Xe:"");I.useEffect(()=>{var Ae;f&&(ae.size>0||i)&&!G.isOpen&&P!==oe&&r!=="manual"&&V(null,"input"),!s&&!i&&G.isOpen&&ae.size===0&&M(),w!=null&&w!==Ge.current&&M(),P!==oe&&(A.setFocusedKey(null),l(!1),P===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&C(null)),w!==Ge.current&&(e.inputValue===void 0||e.selectedKey===void 0)?Se():oe!==P&&le(P);var Fe;let Qe=w!=null&&(Fe=(Ae=x.getItem(w))===null||Ae===void 0?void 0:Ae.textValue)!==null&&Fe!==void 0?Fe:"";!f&&w!=null&&e.inputValue===void 0&&w===Ge.current&&Ne.current!==Qe&&(le(Qe),F(Qe)),Ge.current=w,Ne.current=Qe});let qe=bf({...e,value:I.useMemo(()=>({inputValue:P,selectedKey:w}),[P,w])}),ke=()=>{a&&w==null?je():Te()},je=()=>{Ge.current=null,C(null),M()},Te=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var Ae,Fe;(Ae=e.onSelectionChange)===null||Ae===void 0||Ae.call(e,w);var Qe;let et=w!=null&&(Qe=(Fe=x.getItem(w))===null||Fe===void 0?void 0:Fe.textValue)!==null&&Qe!==void 0?Qe:"";le(et),M()}else Se(),M()};const Ye=()=>{if(a){var Ae,Fe;const Qe=w!=null&&(Fe=(Ae=x.getItem(w))===null||Ae===void 0?void 0:Ae.textValue)!==null&&Fe!==void 0?Fe:"";P===Qe?Te():je()}else Te()};let ht=()=>{G.isOpen&&A.focusedKey!=null?w===A.focusedKey?Te():C(A.focusedKey):Ye()},Ht=I.useRef(P),xt=Ae=>{Ae?(Ht.current=P,r==="focus"&&!e.isReadOnly&&V(null,"focus")):(o&&Ye(),P!==Ht.current&&qe.commitValidation()),h(Ae)},_t=I.useMemo(()=>G.isOpen?s?se:ae:O,[G.isOpen,se,ae,s,O]);var Wr;let Jt=(Wr=e.defaultSelectedKey)!==null&&Wr!==void 0?Wr:q;var xe;return{...qe,...G,focusStrategy:m,toggle:R,open:V,close:Ye,selectionManager:A,selectedKey:w,defaultSelectedKey:Jt,setSelectedKey:C,disabledKeys:T,isFocused:f,setFocused:xt,selectedItem:E,collection:_t,inputValue:P,defaultInputValue:(xe=Fw(e.defaultInputValue,Jt,x))!==null&&xe!==void 0?xe:te,setInputValue:F,commit:ht,revert:ke}}function hee(e,t,n){return new q3(Hk(e,e,t,n))}function Hk(e,t,n,r){let i=[];for(let a of t)if(a.type==="section"&&a.hasChildNodes){let o=Hk(e,Fm(a,e),n,r);[...o].some(s=>s.type==="item")&&i.push({...a,childNodes:o})}else a.type==="item"&&r(a.textValue,n)?i.push({...a}):a.type!=="item"&&i.push({...a});return i}function Fw(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 Gk={};Gk={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var Yk={};Yk={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var Zk={};Zk={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 Xk={};Xk={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 Qk={};Qk={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 Jk={};Jk={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var e9={};e9={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 t9={};t9={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 n9={};n9={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 r9={};r9={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 i9={};i9={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 a9={};a9={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var o9={};o9={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 s9={};s9={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 u9={};u9={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 l9={};l9={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var c9={};c9={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var d9={};d9={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 f9={};f9={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 h9={};h9={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 p9={};p9={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 m9={};m9={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 g9={};g9={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 v9={};v9={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 y9={};y9={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 b9={};b9={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var x9={};x9={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 D9={};D9={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 $9={};$9={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 E9={};E9={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 C9={};C9={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 w9={};w9={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var A9={};A9={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var S9={};S9={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var T9={};T9={"ar-AE":Gk,"bg-BG":Yk,"cs-CZ":Zk,"da-DK":Xk,"de-DE":Qk,"el-GR":Jk,"en-US":e9,"es-ES":t9,"et-EE":n9,"fi-FI":r9,"fr-FR":i9,"he-IL":a9,"hr-HR":o9,"hu-HU":s9,"it-IT":u9,"ja-JP":l9,"ko-KR":c9,"lt-LT":d9,"lv-LV":f9,"nb-NO":h9,"nl-NL":p9,"pl-PL":m9,"pt-BR":g9,"pt-PT":v9,"ro-RO":y9,"ru-RU":b9,"sk-SK":x9,"sl-SI":D9,"sr-SP":$9,"sv-SE":E9,"tr-TR":C9,"uk-UA":w9,"zh-CN":A9,"zh-TW":S9};function pee(e){return e&&e.__esModule?e.default:e}const P9=new Ps(pee(T9));function _9(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function Pp(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,o=e!=null&&t!=null&&e.compare(t)<0,s=e!=null&&(r==null?void 0:r(e))||!1,l=a||o||s,f=[];if(l){let h=_9(),m=Ps.getGlobalDictionaryForPackage("@react-stately/datepicker")||P9,g=new WP(h,m),b=new Gi(h,jo({},i)),$=b.resolvedOptions().timeZone;o&&t!=null&&f.push(g.format("rangeUnderflow",{minValue:b.format(t.toDate($))})),a&&n!=null&&f.push(g.format("rangeOverflow",{maxValue:b.format(n.toDate($))})),s&&f.push(g.format("unavailableDate"))}return{isInvalid:l,validationErrors:f,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function mee(e,t,n,r,i){var a;let o=Pp((a=e==null?void 0:e.start)!==null&&a!==void 0?a:null,t,n,r,i);var s;let l=Pp((s=e==null?void 0:e.end)!==null&&s!==void 0?s:null,t,n,r,i),f=Ap(o,l);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let h=Ps.getGlobalDictionaryForPackage("@react-stately/datepicker")||P9;f=Ap(f,{isInvalid:!0,validationErrors:[h.getStringForLocale("rangeReversed",_9())],validationDetails:{...Tm,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return f}const gee={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},vee={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function jo(e,t){e={...t.shouldForceLeadingZeros?vee:gee,...e};let r=t.granularity||"minute",i=Object.keys(e);var a;let o=i.indexOf((a=t.maxGranularity)!==null&&a!==void 0?a:"year");o<0&&(o=0);let s=i.indexOf(r);if(s<0&&(s=2),o>s)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(o,s+1).reduce((h,m)=>(h[m]=e[m],h),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&o===0&&(l.era="short"),l}function Al(e){return e&&"hour"in e?e:new vf}function B9(e,t){if(e===null)return null;if(e)return kn(e,t)}function ad(e,t,n,r){if(e)return B9(e,n);let i=kn(ZP(r??mf()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?qr(i):r?i:Ea(i)}function ex(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 o=e?n:i[1];return[t,o]}function yee(e){let t=Jb(e),[n,r]=Ai(e.value,e.defaultValue||null,e.onChange),[i]=I.useState(n),a=n||e.placeholderValue||null,[o,s]=ex(a,e.granularity),l=n!=null?n.toDate(s??"UTC"):null,f=o==="hour"||o==="minute"||o==="second";var h;let m=(h=e.shouldCloseOnSelect)!==null&&h!==void 0?h:!0,[g,b]=I.useState(null),[$,x]=I.useState(null);if(n&&(g=n,"hour"in n&&($=n)),a&&!(o in a))throw new Error("Invalid granularity "+o+" for value "+a.toString());let A=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",w=I.useMemo(()=>({granularity:o,timeZone:s,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:A}),[o,e.hourCycle,e.shouldForceLeadingZeros,s,e.hideTimeZone,A]),{minValue:C,maxValue:E,isDateUnavailable:T}=e,P=I.useMemo(()=>Pp(n,C,E,T,w),[n,C,E,T,w]),F=bf({...e,value:n,builtinValidation:P}),q=F.displayValidation.isInvalid,te=e.validationState||(q?"invalid":null),se=(be,z)=>{r("timeZone"in z?z.set(qr(be)):Ea(be,z)),b(null),x(null),F.commitValidation()},ae=be=>{let z=typeof m=="function"?m():m;f?$||z?se(be,$||Al(e.defaultValue||e.placeholderValue)):b(be):(r(be),F.commitValidation()),z&&t.setOpen(!1)},O=be=>{g&&be?se(g,be):x(be)};var Ee;return{...F,value:n,defaultValue:(Ee=e.defaultValue)!==null&&Ee!==void 0?Ee:i,setValue:r,dateValue:g,timeValue:$,setDateValue:ae,setTimeValue:O,granularity:o,hasTime:f,...t,setOpen(be){!be&&!n&&g&&f&&se(g,$||Al(e.defaultValue||e.placeholderValue)),t.setOpen(be)},validationState:te,isInvalid:q,formatValue(be,z){if(!l)return"";let G=jo(z,w);return new Gi(be,G).format(l)},getDateFormatter(be,z){let G={...w,...z},V=jo({},G);return new Gi(be,V)}}}const bee=new Ps({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"},nb:{year:"åååå",month:"mm",day:"dd"},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 xee(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?bee.getStringForLocale(e,n):"––"}const qh={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},kw={year:5,month:2,day:7,hour:2,minute:15,second:15},F9={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function k9(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:a=!1,isRequired:o=!1,minValue:s,maxValue:l,isDateUnavailable:f}=e,h=e.value||e.defaultValue||e.placeholderValue||null,[m,g]=ex(h,e.granularity),b=g||"UTC";if(h&&!(m in h))throw new Error("Invalid granularity "+m+" for value "+h.toString());let $=I.useMemo(()=>new Gi(t),[t]),x=I.useMemo(()=>n($.resolvedOptions().calendar),[n,$]);var A;let[w,C]=Ai(e.value,(A=e.defaultValue)!==null&&A!==void 0?A:null,e.onChange),[E]=I.useState(w),T=I.useMemo(()=>{var ke;return(ke=B9(w,x))!==null&&ke!==void 0?ke:null},[w,x]),[P,F]=I.useState(()=>ad(e.placeholderValue,m,x,g)),q=T||P,te=x.identifier==="gregory"&&q.era==="BC",se=I.useMemo(()=>{var ke;return{granularity:m,maxGranularity:(ke=e.maxGranularity)!==null&&ke!==void 0?ke:"year",timeZone:g,hideTimeZone:r,hourCycle:e.hourCycle,showEra:te,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,m,e.hourCycle,e.shouldForceLeadingZeros,g,r,te]),ae=I.useMemo(()=>jo({},se),[se]),O=I.useMemo(()=>new Gi(t,ae),[t,ae]),Ee=I.useMemo(()=>O.resolvedOptions(),[O]),be=I.useMemo(()=>O.formatToParts(new Date).filter(ke=>qh[ke.type]).reduce((ke,je)=>(ke[F9[je.type]||je.type]=!0,ke),{}),[O]),[z,G]=I.useState(()=>e.value||e.defaultValue?{...be}:{}),V=I.useRef(null),R=I.useRef(x);I.useEffect(()=>{Cm(x,R.current)||(R.current=x,F(ke=>Object.keys(z).length>0?kn(ke,x):ad(e.placeholderValue,m,x,g)))},[x,m,z,g,e.placeholderValue]),w&&Object.keys(z).length<Object.keys(be).length&&(z={...be},G(z)),w==null&&Object.keys(z).length===Object.keys(be).length&&(z={},G(z),F(ad(e.placeholderValue,m,x,g)));let K=T&&Object.keys(z).length>=Object.keys(be).length?T:P,fe=ke=>{if(e.isDisabled||e.isReadOnly)return;let je=Object.keys(z),Te=Object.keys(be);ke==null?(C(null),F(ad(e.placeholderValue,m,x,g)),G({})):je.length===0&&V.current==null||je.length>=Te.length||je.length===Te.length-1&&be.dayPeriod&&!z.dayPeriod&&V.current!=="dayPeriod"?(je.length===0&&(z={...be},G(z)),ke=kn(ke,(h==null?void 0:h.calendar)||new Ur),C(ke)):F(ke),V.current=null},M=I.useMemo(()=>K.toDate(b),[K,b]),oe=I.useMemo(()=>Dee(M,z,O,Ee,K,x,t,m),[M,z,O,Ee,K,x,t,m]);be.era&&z.year&&!z.era?(z.era=!0,G({...z})):!be.era&&z.era&&(delete z.era,G({...z}));let le=ke=>{z[ke]=!0,ke==="year"&&be.era&&(z.era=!0),G({...z})},Se=(ke,je)=>{if(z[ke])fe($ee(K,ke,je,Ee));else{le(ke);let Te=Object.keys(z),Ye=Object.keys(be);(Te.length>=Ye.length||Te.length===Ye.length-1&&be.dayPeriod&&!z.dayPeriod)&&fe(K)}},_e=I.useMemo(()=>Pp(w,s,l,f,se),[w,s,l,f,se]),Be=bf({...e,value:w,builtinValidation:_e}),Ge=Be.displayValidation.isInvalid,Xe=e.validationState||(Ge?"invalid":null);var Ne,qe;return{...Be,value:T,defaultValue:(Ne=e.defaultValue)!==null&&Ne!==void 0?Ne:E,dateValue:M,calendar:x,setValue:fe,segments:oe,dateFormatter:O,validationState:Xe,isInvalid:Ge,granularity:m,maxGranularity:(qe=e.maxGranularity)!==null&&qe!==void 0?qe:"year",isDisabled:i,isReadOnly:a,isRequired:o,increment(ke){Se(ke,1)},decrement(ke){Se(ke,-1)},incrementPage(ke){Se(ke,kw[ke]||1)},decrementPage(ke){Se(ke,-(kw[ke]||1))},setSegment(ke,je){le(ke),fe(Eee(K,ke,je,Ee))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let ke=Object.keys(z),je=Object.keys(be);ke.length===je.length-1&&be.dayPeriod&&!z.dayPeriod&&(z={...be},G(z),fe(K.copy()))},clearSegment(ke){delete z[ke],V.current=ke,G({...z});let je=ad(e.placeholderValue,m,x,g),Te=K;if(ke==="dayPeriod"&&"hour"in K&&"hour"in je){let Ye=K.hour>=12,ht=je.hour>=12;Ye&&!ht?Te=K.set({hour:K.hour-12}):!Ye&&ht&&(Te=K.set({hour:K.hour+12}))}else ke==="hour"&&"hour"in K&&K.hour>=12&&z.dayPeriod?Te=K.set({hour:je.hour+12}):ke in K&&(Te=K.set({[ke]:je[ke]}));C(null),fe(Te)},formatValue(ke){if(!T)return"";let je=jo(ke,se);return new Gi(t,je).format(M)},getDateFormatter(ke,je){let Te={...se,...je},Ye=jo({},Te);return new Gi(ke,Ye)}}}function Dee(e,t,n,r,i,a,o,s){let l=["hour","minute","second"],f=n.formatToParts(e),h=[];for(let m of f){let g=F9[m.type]||m.type,b=qh[g];g==="era"&&a.getEras().length===1&&(b=!1);let $=qh[g]&&!t[g],x=qh[g]?xee(g,m.value,o):null,A={type:g,text:$?x:m.value,...Ah(i,g,r),isPlaceholder:$,placeholder:x,isEditable:b};g==="hour"?(h.push({type:"literal",text:"",...Ah(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1}),h.push(A),g===s&&h.push({type:"literal",text:"",...Ah(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):l.includes(g)&&g===s?(h.push(A),h.push({type:"literal",text:"",...Ah(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):h.push(A)}return h}function Ah(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:nX(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:rX(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 $ee(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 Eee(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 Cee(e){var t,n;let r=Jb(e),[i,a]=Ai(e.value,e.defaultValue||null,e.onChange),[o]=I.useState(i),[s,l]=I.useState(()=>i||{start:null,end:null});i==null&&s.start&&s.end&&(s={start:null,end:null},l(s));let f=i||s,h=K=>{f=K||{start:null,end:null},l(f),ru(f)?a(f):a(null)},m=(f==null?void 0:f.start)||(f==null?void 0:f.end)||e.placeholderValue||null,[g,b]=ex(m,e.granularity),$=g==="hour"||g==="minute"||g==="second";var x;let A=(x=e.shouldCloseOnSelect)!==null&&x!==void 0?x:!0,[w,C]=I.useState(null),[E,T]=I.useState(null);f&&ru(f)&&(w=f,"hour"in f.start&&(E=f));let P=(K,fe)=>{h({start:"timeZone"in fe.start?fe.start.set(qr(K.start)):Ea(K.start,fe.start),end:"timeZone"in fe.end?fe.end.set(qr(K.end)):Ea(K.end,fe.end)}),C(null),T(null),z.commitValidation()},F=K=>{let fe=typeof A=="function"?A():A;$?ru(K)&&(fe||E!=null&&E.start&&(E!=null&&E.end))?P(K,{start:(E==null?void 0:E.start)||Al(e.placeholderValue),end:(E==null?void 0:E.end)||Al(e.placeholderValue)}):C(K):ru(K)?(h(K),z.commitValidation()):C(K),fe&&r.setOpen(!1)},q=K=>{ru(w)&&ru(K)?P(w,K):T(K)},te=(f==null||(t=f.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&f.start.era==="BC"||(f==null||(n=f.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&f.end.era==="BC",se=I.useMemo(()=>({granularity:g,timeZone:b,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:te}),[g,e.hourCycle,e.shouldForceLeadingZeros,b,e.hideTimeZone,te]),{minValue:ae,maxValue:O,isDateUnavailable:Ee}=e,be=I.useMemo(()=>mee(f,ae,O,Ee,se),[f,ae,O,Ee,se]),z=bf({...e,value:i,name:I.useMemo(()=>[e.startName,e.endName].filter(K=>K!=null),[e.startName,e.endName]),builtinValidation:be}),G=z.displayValidation.isInvalid,V=e.validationState||(G?"invalid":null);var R;return{...z,value:f,defaultValue:(R=e.defaultValue)!==null&&R!==void 0?R:o,setValue:h,dateRange:w,timeRange:E,granularity:g,hasTime:$,setDate(K,fe){var M,oe;F(K==="start"?{start:fe,end:(M=w==null?void 0:w.end)!==null&&M!==void 0?M:null}:{start:(oe=w==null?void 0:w.start)!==null&&oe!==void 0?oe:null,end:fe})},setTime(K,fe){var M,oe;q(K==="start"?{start:fe,end:(M=E==null?void 0:E.end)!==null&&M!==void 0?M:null}:{start:(oe=E==null?void 0:E.start)!==null&&oe!==void 0?oe:null,end:fe})},setDateTime(K,fe){var M,oe;h(K==="start"?{start:fe,end:(M=f==null?void 0:f.end)!==null&&M!==void 0?M:null}:{start:(oe=f==null?void 0:f.start)!==null&&oe!==void 0?oe:null,end:fe})},setDateRange:F,setTimeRange:q,...r,setOpen(K){!K&&!(f!=null&&f.start&&(f!=null&&f.end))&&ru(w)&&$&&P(w,{start:(E==null?void 0:E.start)||Al(e.placeholderValue),end:(E==null?void 0:E.end)||Al(e.placeholderValue)}),r.setOpen(K)},validationState:V,isInvalid:G,formatValue(K,fe){if(!f||!f.start||!f.end)return null;let M="timeZone"in f.start?f.start.timeZone:void 0,oe=e.granularity||(f.start&&"minute"in f.start?"minute":"day"),le="timeZone"in f.end?f.end.timeZone:void 0,Se=e.granularity||(f.end&&"minute"in f.end?"minute":"day"),_e=jo(fe,{granularity:oe,timeZone:M,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:f.start.calendar.identifier==="gregory"&&f.start.era==="BC"||f.end.calendar.identifier==="gregory"&&f.end.era==="BC"}),Be=f.start.toDate(M||"UTC"),Ge=f.end.toDate(le||"UTC"),Xe=new Gi(K,_e),Ne;if(M===le&&oe===Se&&f.start.compare(f.end)!==0){try{let qe=Xe.formatRangeToParts(Be,Ge),ke=-1;for(let Ye=0;Ye<qe.length;Ye++){let ht=qe[Ye];if(ht.source==="shared"&&ht.type==="literal")ke=Ye;else if(ht.source==="endRange")break}let je="",Te="";for(let Ye=0;Ye<qe.length;Ye++)Ye<ke?je+=qe[Ye].value:Ye>ke&&(Te+=qe[Ye].value);return{start:je,end:Te}}catch{}Ne=Xe}else{let qe=jo(fe,{granularity:Se,timeZone:le,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Ne=new Gi(K,qe)}return{start:Xe.format(Be),end:Ne.format(Ge)}},getDateFormatter(K,fe){let M={...se,...fe},oe=jo({},M);return new Gi(K,oe)}}}function ru(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function wee(e){let{placeholderValue:t=new vf,minValue:n,maxValue:r,defaultValue:i,granularity:a,validate:o}=e,[s,l]=Ai(e.value,i??null,e.onChange),f=s||t,h=f&&"day"in f?f:void 0,m=i&&"timeZone"in i?i.timeZone:void 0,g=I.useMemo(()=>{let T=f&&"timeZone"in f?f.timeZone:void 0;return(T||m)&&t?r7(bl(t),T||m):bl(t)},[t,f,m]),b=I.useMemo(()=>bl(n,h),[n,h]),$=I.useMemo(()=>bl(r,h),[r,h]),x=I.useMemo(()=>s&&"day"in s?I2(s):s,[s]),A=I.useMemo(()=>s==null?null:bl(s),[s]),w=I.useMemo(()=>i==null?null:bl(i),[i]);return{...k9({...e,value:A,defaultValue:w,minValue:b,maxValue:$,onChange:T=>{l(h||m?T:T&&I2(T))},granularity:a||"minute",maxGranularity:"hour",placeholderValue:g??void 0,createCalendar:()=>new Ur,validate:I.useCallback(()=>o==null?void 0:o(s),[o,s])}),timeValue:x}}function bl(e,t=wm(mf())){return e?"day"in e?e:Ea(t,e):null}var X4,Mw;function Aee(){if(Mw)return X4;Mw=1;var e=lb();function t(n,r){return e(n,r)}return X4=t,X4}var See=Aee();const Tee=ar(See);var Uh={exports:{}},Pee=Uh.exports,Rw;function _ee(){return Rw||(Rw=1,function(e,t){(function(n,r){e.exports=r()})(Pee,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",f="day",h="week",m="month",g="quarter",b="year",$="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+)?$/,w=/\[([^\]]+)]|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,C={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(z){var G=["th","st","nd","rd"],V=z%100;return"["+z+(G[(V-20)%10]||G[V]||G[0])+"]"}},E=function(z,G,V){var R=String(z);return!R||R.length>=G?z:""+Array(G+1-R.length).join(V)+z},T={s:E,z:function(z){var G=-z.utcOffset(),V=Math.abs(G),R=Math.floor(V/60),K=V%60;return(G<=0?"+":"-")+E(R,2,"0")+":"+E(K,2,"0")},m:function z(G,V){if(G.date()<V.date())return-z(V,G);var R=12*(V.year()-G.year())+(V.month()-G.month()),K=G.clone().add(R,m),fe=V-K<0,M=G.clone().add(R+(fe?-1:1),m);return+(-(R+(V-K)/(fe?K-M:M-K))||0)},a:function(z){return z<0?Math.ceil(z)||0:Math.floor(z)},p:function(z){return{M:m,y:b,w:h,d:f,D:$,h:l,m:s,s:o,ms:a,Q:g}[z]||String(z||"").toLowerCase().replace(/s$/,"")},u:function(z){return z===void 0}},P="en",F={};F[P]=C;var q="$isDayjsObject",te=function(z){return z instanceof Ee||!(!z||!z[q])},se=function z(G,V,R){var K;if(!G)return P;if(typeof G=="string"){var fe=G.toLowerCase();F[fe]&&(K=fe),V&&(F[fe]=V,K=fe);var M=G.split("-");if(!K&&M.length>1)return z(M[0])}else{var oe=G.name;F[oe]=G,K=oe}return!R&&K&&(P=K),K||!R&&P},ae=function(z,G){if(te(z))return z.clone();var V=typeof G=="object"?G:{};return V.date=z,V.args=arguments,new Ee(V)},O=T;O.l=se,O.i=te,O.w=function(z,G){return ae(z,{locale:G.$L,utc:G.$u,x:G.$x,$offset:G.$offset})};var Ee=function(){function z(V){this.$L=se(V.locale,null,!0),this.parse(V),this.$x=this.$x||V.x||{},this[q]=!0}var G=z.prototype;return G.parse=function(V){this.$d=function(R){var K=R.date,fe=R.utc;if(K===null)return new Date(NaN);if(O.u(K))return new Date;if(K instanceof Date)return new Date(K);if(typeof K=="string"&&!/Z$/i.test(K)){var M=K.match(A);if(M){var oe=M[2]-1||0,le=(M[7]||"0").substring(0,3);return fe?new Date(Date.UTC(M[1],oe,M[3]||1,M[4]||0,M[5]||0,M[6]||0,le)):new Date(M[1],oe,M[3]||1,M[4]||0,M[5]||0,M[6]||0,le)}}return new Date(K)}(V),this.init()},G.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},G.$utils=function(){return O},G.isValid=function(){return this.$d.toString()!==x},G.isSame=function(V,R){var K=ae(V);return this.startOf(R)<=K&&K<=this.endOf(R)},G.isAfter=function(V,R){return ae(V)<this.startOf(R)},G.isBefore=function(V,R){return this.endOf(R)<ae(V)},G.$g=function(V,R,K){return O.u(V)?this[R]:this.set(K,V)},G.unix=function(){return Math.floor(this.valueOf()/1e3)},G.valueOf=function(){return this.$d.getTime()},G.startOf=function(V,R){var K=this,fe=!!O.u(R)||R,M=O.p(V),oe=function(qe,ke){var je=O.w(K.$u?Date.UTC(K.$y,ke,qe):new Date(K.$y,ke,qe),K);return fe?je:je.endOf(f)},le=function(qe,ke){return O.w(K.toDate()[qe].apply(K.toDate("s"),(fe?[0,0,0,0]:[23,59,59,999]).slice(ke)),K)},Se=this.$W,_e=this.$M,Be=this.$D,Ge="set"+(this.$u?"UTC":"");switch(M){case b:return fe?oe(1,0):oe(31,11);case m:return fe?oe(1,_e):oe(0,_e+1);case h:var Xe=this.$locale().weekStart||0,Ne=(Se<Xe?Se+7:Se)-Xe;return oe(fe?Be-Ne:Be+(6-Ne),_e);case f:case $:return le(Ge+"Hours",0);case l:return le(Ge+"Minutes",1);case s:return le(Ge+"Seconds",2);case o:return le(Ge+"Milliseconds",3);default:return this.clone()}},G.endOf=function(V){return this.startOf(V,!1)},G.$set=function(V,R){var K,fe=O.p(V),M="set"+(this.$u?"UTC":""),oe=(K={},K[f]=M+"Date",K[$]=M+"Date",K[m]=M+"Month",K[b]=M+"FullYear",K[l]=M+"Hours",K[s]=M+"Minutes",K[o]=M+"Seconds",K[a]=M+"Milliseconds",K)[fe],le=fe===f?this.$D+(R-this.$W):R;if(fe===m||fe===b){var Se=this.clone().set($,1);Se.$d[oe](le),Se.init(),this.$d=Se.set($,Math.min(this.$D,Se.daysInMonth())).$d}else oe&&this.$d[oe](le);return this.init(),this},G.set=function(V,R){return this.clone().$set(V,R)},G.get=function(V){return this[O.p(V)]()},G.add=function(V,R){var K,fe=this;V=Number(V);var M=O.p(R),oe=function(_e){var Be=ae(fe);return O.w(Be.date(Be.date()+Math.round(_e*V)),fe)};if(M===m)return this.set(m,this.$M+V);if(M===b)return this.set(b,this.$y+V);if(M===f)return oe(1);if(M===h)return oe(7);var le=(K={},K[s]=r,K[l]=i,K[o]=n,K)[M]||1,Se=this.$d.getTime()+V*le;return O.w(Se,this)},G.subtract=function(V,R){return this.add(-1*V,R)},G.format=function(V){var R=this,K=this.$locale();if(!this.isValid())return K.invalidDate||x;var fe=V||"YYYY-MM-DDTHH:mm:ssZ",M=O.z(this),oe=this.$H,le=this.$m,Se=this.$M,_e=K.weekdays,Be=K.months,Ge=K.meridiem,Xe=function(ke,je,Te,Ye){return ke&&(ke[je]||ke(R,fe))||Te[je].slice(0,Ye)},Ne=function(ke){return O.s(oe%12||12,ke,"0")},qe=Ge||function(ke,je,Te){var Ye=ke<12?"AM":"PM";return Te?Ye.toLowerCase():Ye};return fe.replace(w,function(ke,je){return je||function(Te){switch(Te){case"YY":return String(R.$y).slice(-2);case"YYYY":return O.s(R.$y,4,"0");case"M":return Se+1;case"MM":return O.s(Se+1,2,"0");case"MMM":return Xe(K.monthsShort,Se,Be,3);case"MMMM":return Xe(Be,Se);case"D":return R.$D;case"DD":return O.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return Xe(K.weekdaysMin,R.$W,_e,2);case"ddd":return Xe(K.weekdaysShort,R.$W,_e,3);case"dddd":return _e[R.$W];case"H":return String(oe);case"HH":return O.s(oe,2,"0");case"h":return Ne(1);case"hh":return Ne(2);case"a":return qe(oe,le,!0);case"A":return qe(oe,le,!1);case"m":return String(le);case"mm":return O.s(le,2,"0");case"s":return String(R.$s);case"ss":return O.s(R.$s,2,"0");case"SSS":return O.s(R.$ms,3,"0");case"Z":return M}return null}(ke)||M.replace(":","")})},G.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},G.diff=function(V,R,K){var fe,M=this,oe=O.p(R),le=ae(V),Se=(le.utcOffset()-this.utcOffset())*r,_e=this-le,Be=function(){return O.m(M,le)};switch(oe){case b:fe=Be()/12;break;case m:fe=Be();break;case g:fe=Be()/3;break;case h:fe=(_e-Se)/6048e5;break;case f:fe=(_e-Se)/864e5;break;case l:fe=_e/i;break;case s:fe=_e/r;break;case o:fe=_e/n;break;default:fe=_e}return K?fe:O.a(fe)},G.daysInMonth=function(){return this.endOf(m).$D},G.$locale=function(){return F[this.$L]},G.locale=function(V,R){if(!V)return this.$L;var K=this.clone(),fe=se(V,R,!0);return fe&&(K.$L=fe),K},G.clone=function(){return O.w(this.$d,this)},G.toDate=function(){return new Date(this.valueOf())},G.toJSON=function(){return this.isValid()?this.toISOString():null},G.toISOString=function(){return this.$d.toISOString()},G.toString=function(){return this.$d.toUTCString()},z}(),be=Ee.prototype;return ae.prototype=be,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",f],["$M",m],["$y",b],["$D",$]].forEach(function(z){be[z[1]]=function(G){return this.$g(G,z[0],z[1])}}),ae.extend=function(z,G){return z.$i||(z(G,Ee,ae),z.$i=!0),ae},ae.locale=se,ae.isDayjs=te,ae.unix=function(z){return ae(1e3*z)},ae.en=F[P],ae.Ls=F,ae.p={},ae})}(Uh)),Uh.exports}var M9=_ee();const Bee=ar(M9);var Q4,Iw;function R9(){if(Iw)return Q4;Iw=1;var e=uc(),t=lc(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return Q4=r,Q4}var Fee=R9();const kee=ar(Fee);var Lu=[["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"]],Mee="react-international-phone-",I9=(...e)=>e.filter(t=>!!t).join(" ").trim(),Ree=(...e)=>I9(...e).split(" ").map(t=>`${Mee}${t}`).join(" "),Pr=({addPrefix:e,rawClassNames:t})=>I9(Ree(...e),...t),Iee=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let a=e.slice(0,r),o=e.slice(r),s=a,l=0;for(let f of t.split("")){if(l>=o.length){if(!i&&f!==n){s+=f;continue}break}f===n?(s+=o[l],l+=1):s+=f}return s},El=e=>e?/^\d+$/.test(e):!1,km=e=>e.replace(/\D/g,""),Oee=(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,o=r.bottom-i.bottom;a>=0&&o>=0||(Math.abs(a)<Math.abs(o)?e.scrollTop+=a:e.scrollTop-=o),e.style.display=n},Lee=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),Vee=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,a=f=>t.trimNonDigitsEnd?f.trim():f;if(!i)return r&&!i.length||n?a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):a(i);if(i=km(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 o=()=>{let f=t.dialCode.length,h=i.slice(0,f),m=i.slice(f);return{phoneLeftSide:h,phoneRightSide:m}},{phoneLeftSide:s,phoneRightSide:l}=o();return s=`${t.prefix}${s}${t.charAfterDialCode}`,l=Iee({value:l,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&l.length===0}),t.disableDialCodeAndPrefix&&(s=""),a(`${s}${l}`)},Nee=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:a})=>{if(r<i)return i;if(!e)return n.length;let o=null;for(let h=r-1;h>=0;h-=1)if(El(t[h])){o=h;break}if(o===null){for(let h=0;h<t.length;h+=1)if(El(n[h]))return h;return t.length}let s=0;for(let h=0;h<o;h+=1)El(t[h])&&(s+=1);let l=0,f=0;for(let h=0;h<n.length&&(l+=1,El(n[h])&&(f+=1),!(f>=s+1));h+=1);if(a!=="backward")for(;!El(n[l])&&l<n.length;)l+=1;return l},Wh=({phone:e,prefix:t})=>e?`${t}${km(e)}`:"";function U3({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:a,charAfterDialCode:o,forceDialCode:s,disableDialCodeAndPrefix:l,defaultMask:f,countryGuessingEnabled:h,disableFormatting:m}){let g=e;l&&(g=g.startsWith(`${a}`)?g:`${a}${t.dialCode}${g}`);let b=h?Yee({phone:g,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,$=(b==null?void 0:b.country)??t,x=Vee(g,{prefix:a,mask:Hee({phone:g,country:$,defaultMask:f,disableFormatting:m}),maskChar:O9,dialCode:$.dialCode,trimNonDigitsEnd:r,charAfterDialCode:o,forceDialCode:s,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),A=h&&!(b!=null&&b.fullDialCodeMatch)?t:$;return{phone:Wh({phone:l?`${A.dialCode}${x}`:x,prefix:a}),inputValue:x,country:A}}var jee=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},Kee=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:a,forceDialCode:o,disableDialCodeAndPrefix:s,countryGuessingEnabled:l,defaultMask:f,disableFormatting:h,countries:m})=>{let g=e.nativeEvent,b=g.inputType,$=jee(b),x=!!(b!=null&&b.startsWith("insertFrom")),A=b==="insertText",w=(g==null?void 0:g.data)||void 0,C=e.target.value,E=e.target.selectionStart??0;if(b!=null&&b.includes("history"))return{inputValue:r,phone:Wh({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(A&&!El(w)&&C!==i)return{inputValue:r,phone:Wh({phone:s?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:E-((w==null?void 0:w.length)??0),country:t};if(o&&!C.startsWith(`${i}${t.dialCode}`)&&!x){let te=C?r:`${i}${t.dialCode}${a}`;return{inputValue:te,phone:Wh({phone:te,prefix:i}),cursorPosition:i.length+t.dialCode.length+a.length,country:t}}let{phone:T,inputValue:P,country:F}=U3({value:C,country:t,trimNonDigitsEnd:$==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:l,countries:m,prefix:i,charAfterDialCode:a,forceDialCode:o,disableDialCodeAndPrefix:s,disableFormatting:h,defaultMask:f}),q=Nee({cursorPositionAfterInput:E,phoneBeforeInput:r,phoneAfterInput:C,phoneAfterFormatted:P,leftOffset:o?i.length+t.dialCode.length+a.length:0,deletion:$});return{phone:T,inputValue:P,cursorPosition:q,country:F}},zee=(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},qee=()=>{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}}},Uee={size:20,overrideLastItemDebounceMS:-1};function Wee(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...Uee,...t},[a,o]=I.useState(e),[s,l]=I.useState([a]),[f,h]=I.useState(0),m=qee();return[a,(g,b)=>{if(typeof g=="object"&&typeof a=="object"&&zee(g,a)||g===a)return;let $=r>0,x=m.check(),A=$&&x!==void 0?x>r:!0;if((b==null?void 0:b.overrideLastItem)!==void 0?b.overrideLastItem:!A)l(w=>[...w.slice(0,f),g]);else{let w=s.length>=n;l(C=>[...C.slice(w?1:0,f+1),g]),w||h(C=>C+1)}o(g),i==null||i(g)},()=>{if(f<=0)return{success:!1};let g=s[f-1];return o(g),h(b=>b-1),i==null||i(g),{success:!0,value:g}},()=>{if(f+1>=s.length)return{success:!1};let g=s[f+1];return o(g),h(b=>b+1),i==null||i(g),{success:!0,value:g}}]}var O9=".",Li={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:Lu},L9=({defaultCountry:e=Li.defaultCountry,value:t=Li.value,countries:n=Li.countries,prefix:r=Li.prefix,defaultMask:i=Li.defaultMask,charAfterDialCode:a=Li.charAfterDialCode,historySaveDebounceMS:o=Li.historySaveDebounceMS,disableCountryGuess:s=Li.disableCountryGuess,disableDialCodePrefill:l=Li.disableDialCodePrefill,forceDialCode:f=Li.forceDialCode,disableDialCodeAndPrefix:h=Li.disableDialCodeAndPrefix,disableFormatting:m=Li.disableFormatting,onChange:g,inputRef:b})=>{let $={countries:n,prefix:r,charAfterDialCode:a,forceDialCode:h?!1:f,disableDialCodeAndPrefix:h,defaultMask:i,countryGuessingEnabled:!s,disableFormatting:m},x=I.useRef(null),A=b||x,w=z=>{Promise.resolve().then(()=>{var G;typeof window>"u"||A.current!==(document==null?void 0:document.activeElement)||((G=A.current)==null||G.setSelectionRange(z,z))})},[{phone:C,inputValue:E,country:T},P,F,q]=Wee(()=>{let z=Sl({value:e,field:"iso2",countries:n});z||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let G=z||Sl({value:"us",field:"iso2",countries:n}),{phone:V,inputValue:R,country:K}=U3({value:t,country:G,insertDialCodeOnEmpty:!l,...$});return w(R.length),{phone:V,inputValue:R,country:K.iso2}},{overrideLastItemDebounceMS:o,onChange:({inputValue:z,phone:G,country:V})=>{if(!g)return;let R=te(V);g({phone:G,inputValue:z,country:R})}}),te=I.useCallback(z=>Sl({value:z,field:"iso2",countries:n}),[n]),se=I.useMemo(()=>te(T),[T,te]);I.useEffect(()=>{let z=A.current;if(!z)return;let G=V=>{if(!V.key)return;let R=V.ctrlKey,K=V.metaKey,fe=V.shiftKey;if(V.key.toLowerCase()==="z"){if(Lee()){if(!K)return}else if(!R)return;fe?q():F()}};return z.addEventListener("keydown",G),()=>{z.removeEventListener("keydown",G)}},[A,F,q]);let ae=z=>{z.preventDefault();let{phone:G,inputValue:V,country:R,cursorPosition:K}=Kee(z,{country:se,phoneBeforeInput:E,insertDialCodeOnEmpty:!1,...$});return P({inputValue:V,phone:G,country:R.iso2}),w(K),t},O=(z,G={focusOnInput:!1})=>{let V=Sl({value:z,field:"iso2",countries:n});if(!V){console.error(`[react-international-phone]: can not find a country with "${z}" iso2 code`);return}let R=h?"":`${r}${V.dialCode}${a}`;P({inputValue:R,phone:`${r}${V.dialCode}`,country:V.iso2}),G.focusOnInput&&Promise.resolve().then(()=>{var K;(K=A.current)==null||K.focus()})},[Ee,be]=I.useState(!1);return I.useEffect(()=>{if(!Ee){be(!0),t!==C&&(g==null||g({inputValue:E,phone:C,country:se}));return}if(t===C)return;let{phone:z,inputValue:G,country:V}=U3({value:t,country:se,insertDialCodeOnEmpty:!l,...$});P({phone:z,inputValue:G,country:V.iso2})},[t]),{phone:C,inputValue:E,country:se,setCountry:O,handlePhoneValueChange:ae,inputRef:A}},Hee=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,a=s=>r?s.replace(new RegExp(`[^${O9}]`,"g"),""):s;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 o=Object.keys(i).find(s=>{if(s==="default")return!1;if(!(s.charAt(0)==="/"&&s.charAt(s.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${s}" for ${t.iso2} is not valid`),!1;let l=new RegExp(s.substring(1,s.length-1)),f=e.replace(t.dialCode,"");return l.test(km(f))});return a(o?i[o]:i.default)},va=e=>{let[t,n,r,i,a,o]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:a,areaCodes:o}},Gee=e=>`Field "${e}" is not supported`,Sl=({field:e,value:t,countries:n=Lu})=>{if(["priority"].includes(e))throw new Error(Gee(e));let r=n.find(i=>{let a=va(i);return t===a[e]});if(r)return va(r)},Yee=({phone:e,countries:t=Lu,currentCountryIso2:n})=>{var s;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=km(e);if(!i)return r;let a=r,o=({country:l,fullDialCodeMatch:f})=>{var g,b;let h=l.dialCode===((g=a.country)==null?void 0:g.dialCode),m=(l.priority??0)<(((b=a.country)==null?void 0:b.priority)??0);(!h||m)&&(a={country:l,fullDialCodeMatch:f})};for(let l of t){let f=va(l),{dialCode:h,areaCodes:m}=f;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 $ of m)if(b.startsWith($))return{country:f,fullDialCodeMatch:!0}}(g||h===i||!a.fullDialCodeMatch)&&o({country:f,fullDialCodeMatch:!0})}a.fullDialCodeMatch||i.length<h.length&&h.startsWith(i)&&(!a.country||Number(h)<=Number(a.country.dialCode))&&o({country:f,fullDialCodeMatch:!1})}if(n){let l=Sl({value:n,field:"iso2",countries:t});if(!l)return a;let f=l?(h=>{if(!(h!=null&&h.areaCodes))return!1;let m=i.substring(h.dialCode.length);return h.areaCodes.some(g=>g.startsWith(m))})(l):!1;a&&((s=a.country)==null?void 0:s.dialCode)===l.dialCode&&a.country!==l&&a.fullDialCodeMatch&&(!l.areaCodes||f)&&(a={country:l,fullDialCodeMatch:!0})}return a},Zee=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},Xee="abcdefghijklmnopqrstuvwxyz",Qee="1f1e6",Ow=Xee.split("").reduce((e,t,n)=>({...e,[t]:Zee(Qee,n)}),{}),Jee=e=>[Ow[e[0]],Ow[e[1]]].join("-"),tx=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:a,style:o,...s})=>{if(!e)return de.default.createElement("img",{className:Pr({addPrefix:["flag-emoji"],rawClassNames:[a]}),width:t,height:t,...s});let l=()=>{if(n)return n;let f=Jee(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${f}.svg`};return de.default.createElement("img",{className:Pr({addPrefix:["flag-emoji"],rawClassNames:[a]}),src:l(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...o},alt:"",...s})},ete=1e3,tte=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=Lu,preferredCountries:i=[],flags:a,onSelect:o,onClose:s,...l})=>{let f=I.useRef(null),h=I.useRef(),m=I.useMemo(()=>{if(!i||!i.length)return r;let F=[],q=[...r];for(let te of i){let se=q.findIndex(ae=>va(ae).iso2===te);if(se!==-1){let ae=q.splice(se,1)[0];F.push(ae)}}return F.concat(q)},[r,i]),g=I.useRef({updatedAt:void 0,value:""}),b=F=>{let q=g.current.updatedAt&&new Date().getTime()-g.current.updatedAt.getTime()>ete;g.current={value:q?F:`${g.current.value}${F}`,updatedAt:new Date};let te=m.findIndex(se=>va(se).name.toLowerCase().startsWith(g.current.value));te!==-1&&A(te)},$=I.useCallback(F=>m.findIndex(q=>va(q).iso2===F),[m]),[x,A]=I.useState($(n)),w=()=>{h.current!==n&&A($(n))},C=I.useCallback(F=>{A($(F.iso2)),o==null||o(F)},[o,$]),E=F=>{let q=m.length-1,te=se=>F==="prev"?se-1:F==="next"?se+1:F==="last"?q:0;A(se=>{let ae=te(se);return ae<0?0:ae>q?q:ae})},T=F=>{if(F.stopPropagation(),F.key==="Enter"){F.preventDefault();let q=va(m[x]);C(q);return}if(F.key==="Escape"){s==null||s();return}if(F.key==="ArrowUp"){F.preventDefault(),E("prev");return}if(F.key==="ArrowDown"){F.preventDefault(),E("next");return}if(F.key==="PageUp"){F.preventDefault(),E("first");return}if(F.key==="PageDown"){F.preventDefault(),E("last");return}F.key===" "&&F.preventDefault(),F.key.length===1&&!F.altKey&&!F.ctrlKey&&!F.metaKey&&b(F.key.toLocaleLowerCase())},P=I.useCallback(()=>{if(!f.current||x===void 0)return;let F=va(m[x]).iso2;if(F===h.current)return;let q=f.current.querySelector(`[data-country="${F}"]`);q&&(Oee(f.current,q),h.current=F)},[x,m]);return I.useEffect(()=>{P()},[x,P]),I.useEffect(()=>{f.current&&(e?f.current.focus():w())},[e]),I.useEffect(()=>{w()},[n]),de.default.createElement("ul",{ref:f,role:"listbox",className:Pr({addPrefix:["country-selector-dropdown"],rawClassNames:[l.className]}),style:{display:e?"block":"none",...l.style},onKeyDown:T,onBlur:s,tabIndex:-1,"aria-activedescendant":`react-international-phone__${va(m[x]).iso2}-option`},m.map((F,q)=>{let te=va(F),se=te.iso2===n,ae=q===x,O=i.includes(te.iso2),Ee=q===i.length-1,be=a==null?void 0:a.find(z=>z.iso2===te.iso2);return de.default.createElement(de.default.Fragment,{key:te.iso2},de.default.createElement("li",{"data-country":te.iso2,role:"option","aria-selected":se,"aria-label":`${te.name} ${t}${te.dialCode}`,id:`react-international-phone__${te.iso2}-option`,className:Pr({addPrefix:["country-selector-dropdown__list-item",O&&"country-selector-dropdown__list-item--preferred",se&&"country-selector-dropdown__list-item--selected",ae&&"country-selector-dropdown__list-item--focused"],rawClassNames:[l.listItemClassName,O&&l.listItemPreferredClassName,se&&l.listItemSelectedClassName,ae&&l.listItemFocusedClassName]}),onClick:()=>C(te),style:l.listItemStyle,title:te.name},de.default.createElement(tx,{iso2:te.iso2,src:be==null?void 0:be.src,className:Pr({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[l.listItemFlagClassName]}),style:l.listItemFlagStyle}),de.default.createElement("span",{className:Pr({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[l.listItemCountryNameClassName]}),style:l.listItemCountryNameStyle},te.name),de.default.createElement("span",{className:Pr({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[l.listItemDialCodeClassName]}),style:l.listItemDialCodeStyle},t,te.dialCode)),Ee?de.default.createElement("hr",{className:Pr({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[l.preferredListDividerClassName]}),style:l.preferredListDividerStyle}):null)}))},nte=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=Lu,preferredCountries:a=[],flags:o,renderButtonWrapper:s,...l})=>{let[f,h]=I.useState(!1),m=I.useMemo(()=>{if(e)return Sl({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))},$=()=>{var w;let x={title:m==null?void 0:m.name,onClick:()=>h(C=>!C),onMouseDown:C=>C.preventDefault(),onKeyDown:b,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":f},A=de.default.createElement("div",{className:Pr({addPrefix:["country-selector-button__button-content"],rawClassNames:[l.buttonContentWrapperClassName]}),style:l.buttonContentWrapperStyle},de.default.createElement(tx,{iso2:e,src:(w=o==null?void 0:o.find(C=>C.iso2===e))==null?void 0:w.src,className:Pr({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[l.flagClassName]}),style:{visibility:e?"visible":"hidden",...l.flagStyle}}),!r&&de.default.createElement("div",{className:Pr({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",f&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[l.dropdownArrowClassName]}),style:l.dropdownArrowStyle}));return s?s({children:A,rootProps:x}):de.default.createElement("button",{...x,type:"button",className:Pr({addPrefix:["country-selector-button",f&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[l.buttonClassName]}),"data-country":e,style:l.buttonStyle},A)};return de.default.createElement("div",{className:Pr({addPrefix:["country-selector"],rawClassNames:[l.className]}),style:l.style,ref:g},$(),de.default.createElement(tte,{show:f,countries:i,preferredCountries:a,flags:o,onSelect:x=>{h(!1),t==null||t(x)},selectedCountry:e,onClose:()=>{h(!1)},...l.dropdownStyleProps}))},rte=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>de.default.createElement("div",{className:Pr({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);I.forwardRef(({value:e,onChange:t,countries:n=Lu,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:a,disableFocusAfterCountrySelect:o,flags:s,style:l,className:f,inputStyle:h,inputClassName:m,countrySelectorStyleProps:g,dialCodePreviewStyleProps:b,inputProps:$,placeholder:x,disabled:A,name:w,onFocus:C,onBlur:E,required:T,autoFocus:P,...F},q)=>{let{phone:te,inputValue:se,inputRef:ae,country:O,setCountry:Ee,handlePhoneValueChange:be}=L9({value:e,countries:n,...F,onChange:G=>{t==null||t(G.phone,{country:G.country,inputValue:G.inputValue})}}),z=F.disableDialCodeAndPrefix&&a&&(O==null?void 0:O.dialCode);return I.useImperativeHandle(q,()=>ae.current?Object.assign(ae.current,{setCountry:Ee,state:{phone:te,inputValue:se,country:O}}):null,[ae,Ee,te,se,O]),de.default.createElement("div",{ref:q,className:Pr({addPrefix:["input-container"],rawClassNames:[f]}),style:l},de.default.createElement(nte,{onSelect:G=>Ee(G.iso2,{focusOnInput:!o}),flags:s,selectedCountry:O.iso2,countries:n,preferredCountries:r,disabled:A,hideDropdown:i,...g}),z&&de.default.createElement(rte,{dialCode:O.dialCode,prefix:F.prefix??"+",disabled:A,...b}),de.default.createElement("input",{onChange:be,value:se,type:"tel",ref:ae,className:Pr({addPrefix:["input",A&&"input--disabled"],rawClassNames:[m]}),placeholder:x,disabled:A,style:h,name:w,onFocus:C,onBlur:E,autoFocus:P,required:T,...$}))});var J4,Lw;function ite(){if(Lw)return J4;Lw=1;function e(t){return t===void 0}return J4=e,J4}var ate=ite();const ote=ar(ate);var ey={exports:{}},Vw;function ste(){return Vw||(Vw=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
76
|
-
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
77
|
-
*
|
|
78
|
-
* @license MIT <https://opensource.org/licenses/MIT>
|
|
79
|
-
* @author Lea Verou <https://lea.verou.me>
|
|
80
|
-
* @namespace
|
|
81
|
-
* @public
|
|
82
|
-
*/var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,a=0,o={},s={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function C(E){return E instanceof l?new l(E.type,C(E.content),E.alias):Array.isArray(E)?E.map(C):E.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(C){return Object.prototype.toString.call(C).slice(8,-1)},objId:function(C){return C.__id||Object.defineProperty(C,"__id",{value:++a}),C.__id},clone:function C(E,T){T=T||{};var P,F;switch(s.util.type(E)){case"Object":if(F=s.util.objId(E),T[F])return T[F];P={},T[F]=P;for(var q in E)E.hasOwnProperty(q)&&(P[q]=C(E[q],T));return P;case"Array":return F=s.util.objId(E),T[F]?T[F]:(P=[],T[F]=P,E.forEach(function(te,se){P[se]=C(te,T)}),P);default:return E}},getLanguage:function(C){for(;C;){var E=i.exec(C.className);if(E)return E[1].toLowerCase();C=C.parentElement}return"none"},setLanguage:function(C,E){C.className=C.className.replace(RegExp(i,"gi"),""),C.classList.add("language-"+E)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(P){var C=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(P.stack)||[])[1];if(C){var E=document.getElementsByTagName("script");for(var T in E)if(E[T].src==C)return E[T]}return null}},isActive:function(C,E,T){for(var P="no-"+E;C;){var F=C.classList;if(F.contains(E))return!0;if(F.contains(P))return!1;C=C.parentElement}return!!T}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(C,E){var T=s.util.clone(s.languages[C]);for(var P in E)T[P]=E[P];return T},insertBefore:function(C,E,T,P){P=P||s.languages;var F=P[C],q={};for(var te in F)if(F.hasOwnProperty(te)){if(te==E)for(var se in T)T.hasOwnProperty(se)&&(q[se]=T[se]);T.hasOwnProperty(te)||(q[te]=F[te])}var ae=P[C];return P[C]=q,s.languages.DFS(s.languages,function(O,Ee){Ee===ae&&O!=C&&(this[O]=q)}),q},DFS:function C(E,T,P,F){F=F||{};var q=s.util.objId;for(var te in E)if(E.hasOwnProperty(te)){T.call(E,te,E[te],P||te);var se=E[te],ae=s.util.type(se);ae==="Object"&&!F[q(se)]?(F[q(se)]=!0,C(se,T,null,F)):ae==="Array"&&!F[q(se)]&&(F[q(se)]=!0,C(se,T,te,F))}}},plugins:{},highlightAll:function(C,E){s.highlightAllUnder(document,C,E)},highlightAllUnder:function(C,E,T){var P={callback:T,container:C,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",P),P.elements=Array.prototype.slice.apply(P.container.querySelectorAll(P.selector)),s.hooks.run("before-all-elements-highlight",P);for(var F=0,q;q=P.elements[F++];)s.highlightElement(q,E===!0,P.callback)},highlightElement:function(C,E,T){var P=s.util.getLanguage(C),F=s.languages[P];s.util.setLanguage(C,P);var q=C.parentElement;q&&q.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(q,P);var te=C.textContent,se={element:C,language:P,grammar:F,code:te};function ae(Ee){se.highlightedCode=Ee,s.hooks.run("before-insert",se),se.element.innerHTML=se.highlightedCode,s.hooks.run("after-highlight",se),s.hooks.run("complete",se),T&&T.call(se.element)}if(s.hooks.run("before-sanity-check",se),q=se.element.parentElement,q&&q.nodeName.toLowerCase()==="pre"&&!q.hasAttribute("tabindex")&&q.setAttribute("tabindex","0"),!se.code){s.hooks.run("complete",se),T&&T.call(se.element);return}if(s.hooks.run("before-highlight",se),!se.grammar){ae(s.util.encode(se.code));return}if(E&&r.Worker){var O=new Worker(s.filename);O.onmessage=function(Ee){ae(Ee.data)},O.postMessage(JSON.stringify({language:se.language,code:se.code,immediateClose:!0}))}else ae(s.highlight(se.code,se.grammar,se.language))},highlight:function(C,E,T){var P={code:C,grammar:E,language:T};if(s.hooks.run("before-tokenize",P),!P.grammar)throw new Error('The language "'+P.language+'" has no grammar.');return P.tokens=s.tokenize(P.code,P.grammar),s.hooks.run("after-tokenize",P),l.stringify(s.util.encode(P.tokens),P.language)},tokenize:function(C,E){var T=E.rest;if(T){for(var P in T)E[P]=T[P];delete E.rest}var F=new m;return g(F,F.head,C),h(C,F,E,F.head,0),$(F)},hooks:{all:{},add:function(C,E){var T=s.hooks.all;T[C]=T[C]||[],T[C].push(E)},run:function(C,E){var T=s.hooks.all[C];if(!(!T||!T.length))for(var P=0,F;F=T[P++];)F(E)}},Token:l};r.Prism=s;function l(C,E,T,P){this.type=C,this.content=E,this.alias=T,this.length=(P||"").length|0}l.stringify=function C(E,T){if(typeof E=="string")return E;if(Array.isArray(E)){var P="";return E.forEach(function(ae){P+=C(ae,T)}),P}var F={type:E.type,content:C(E.content,T),tag:"span",classes:["token",E.type],attributes:{},language:T},q=E.alias;q&&(Array.isArray(q)?Array.prototype.push.apply(F.classes,q):F.classes.push(q)),s.hooks.run("wrap",F);var te="";for(var se in F.attributes)te+=" "+se+'="'+(F.attributes[se]||"").replace(/"/g,""")+'"';return"<"+F.tag+' class="'+F.classes.join(" ")+'"'+te+">"+F.content+"</"+F.tag+">"};function f(C,E,T,P){C.lastIndex=E;var F=C.exec(T);if(F&&P&&F[1]){var q=F[1].length;F.index+=q,F[0]=F[0].slice(q)}return F}function h(C,E,T,P,F,q){for(var te in T)if(!(!T.hasOwnProperty(te)||!T[te])){var se=T[te];se=Array.isArray(se)?se:[se];for(var ae=0;ae<se.length;++ae){if(q&&q.cause==te+","+ae)return;var O=se[ae],Ee=O.inside,be=!!O.lookbehind,z=!!O.greedy,G=O.alias;if(z&&!O.pattern.global){var V=O.pattern.toString().match(/[imsuy]*$/)[0];O.pattern=RegExp(O.pattern.source,V+"g")}for(var R=O.pattern||O,K=P.next,fe=F;K!==E.tail&&!(q&&fe>=q.reach);fe+=K.value.length,K=K.next){var M=K.value;if(E.length>C.length)return;if(!(M instanceof l)){var oe=1,le;if(z){if(le=f(R,fe,C,be),!le||le.index>=C.length)break;var Ge=le.index,Se=le.index+le[0].length,_e=fe;for(_e+=K.value.length;Ge>=_e;)K=K.next,_e+=K.value.length;if(_e-=K.value.length,fe=_e,K.value instanceof l)continue;for(var Be=K;Be!==E.tail&&(_e<Se||typeof Be.value=="string");Be=Be.next)oe++,_e+=Be.value.length;oe--,M=C.slice(fe,_e),le.index-=fe}else if(le=f(R,0,M,be),!le)continue;var Ge=le.index,Xe=le[0],Ne=M.slice(0,Ge),qe=M.slice(Ge+Xe.length),ke=fe+M.length;q&&ke>q.reach&&(q.reach=ke);var je=K.prev;Ne&&(je=g(E,je,Ne),fe+=Ne.length),b(E,je,oe);var Te=new l(te,Ee?s.tokenize(Xe,Ee):Xe,G,Xe);if(K=g(E,je,Te),qe&&g(E,K,qe),oe>1){var Ye={cause:te+","+ae,reach:ke};h(C,E,T,K.prev,fe,Ye),q&&Ye.reach>q.reach&&(q.reach=Ye.reach)}}}}}}function m(){var C={value:null,prev:null,next:null},E={value:null,prev:C,next:null};C.next=E,this.head=C,this.tail=E,this.length=0}function g(C,E,T){var P=E.next,F={value:T,prev:E,next:P};return E.next=F,P.prev=F,C.length++,F}function b(C,E,T){for(var P=E.next,F=0;F<T&&P!==C.tail;F++)P=P.next;E.next=P,P.prev=E,C.length-=F}function $(C){for(var E=[],T=C.head.next;T!==C.tail;)E.push(T.value),T=T.next;return E}if(!r.document)return r.addEventListener&&(s.disableWorkerMessageHandler||r.addEventListener("message",function(C){var E=JSON.parse(C.data),T=E.language,P=E.code,F=E.immediateClose;r.postMessage(s.highlight(P,s.languages[T],T)),F&&r.close()},!1)),s;var x=s.util.currentScript();x&&(s.filename=x.src,x.hasAttribute("data-manual")&&(s.manual=!0));function A(){s.manual||s.highlightAll()}if(!s.manual){var w=document.readyState;w==="loading"||w==="interactive"&&x&&x.defer?document.addEventListener("DOMContentLoaded",A):window.requestAnimationFrame?window.requestAnimationFrame(A):window.setTimeout(A,16)}return s}(t);e.exports&&(e.exports=n),typeof Hi<"u"&&(Hi.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 o={};o["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[a]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};s["language-"+a]={pattern:/[\s\S]+/,inside:n.languages[a]};var l={};l[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:s},n.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var 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",o={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",l="loading",f="loaded",h="failed",m="pre[data-src]:not(["+s+'="'+f+'"]):not(['+s+'="'+l+'"])';function g(x,A,w){var C=new XMLHttpRequest;C.open("GET",x,!0),C.onreadystatechange=function(){C.readyState==4&&(C.status<400&&C.responseText?A(C.responseText):C.status>=400?w(i(C.status,C.statusText)):w(a))},C.send(null)}function b(x){var A=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(x||"");if(A){var w=Number(A[1]),C=A[2],E=A[3];return C?E?[w,Number(E)]:[w,void 0]:[w,w]}}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(s,l);var w=A.appendChild(document.createElement("CODE"));w.textContent=r;var C=A.getAttribute("data-src"),E=x.language;if(E==="none"){var T=(/\.(\w+)$/.exec(C)||[,"none"])[1];E=o[T]||T}n.util.setLanguage(w,E),n.util.setLanguage(A,E);var P=n.plugins.autoloader;P&&P.loadLanguages(E),g(C,function(F){A.setAttribute(s,f);var q=b(A.getAttribute("data-range"));if(q){var te=F.split(/\r\n?|\n/g),se=q[0],ae=q[1]==null?te.length:q[1];se<0&&(se+=te.length),se=Math.max(0,Math.min(se-1,te.length)),ae<0&&(ae+=te.length),ae=Math.max(0,Math.min(ae,te.length)),F=te.slice(se,ae).join(`
|
|
83
|
-
`),A.hasAttribute("data-start")||A.setAttribute("data-start",String(se+1))}w.textContent=F,n.highlightElement(w)},function(F){A.setAttribute(s,h),w.textContent=F})}}),n.plugins.fileHighlight={highlight:function(A){for(var w=(A||document).querySelectorAll(m),C=0,E;E=w[C++];)n.highlightElement(E)}};var $=!1;n.fileHighlight=function(){$||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),$=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(ey)),ey.exports}var ute=ste();(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 o=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 s(g,b){var $=getComputedStyle(g),x=getComputedStyle(b);function A(w){return+w.substr(0,w.length-2)}return b.offsetTop+A(x.borderTopWidth)+A(x.paddingTop)-A($.paddingTop)}function l(g){return!g||!/pre/i.test(g.nodeName)?!1:!!(g.hasAttribute("data-line")||g.id&&Prism.util.isActive(g,t))}var f=!0;Prism.plugins.lineHighlight={highlightLines:function(b,$,x){$=typeof $=="string"?$:b.getAttribute("data-line")||"";var A=$.replace(/\s+/g,"").split(",").filter(Boolean),w=+b.getAttribute("data-line-offset")||0,C=o()?parseInt:parseFloat,E=C(getComputedStyle(b).lineHeight),T=Prism.util.isActive(b,e),P=b.querySelector("code"),F=T?b:P||b,q=[],te=P.textContent.match(n),se=te?te.length+1:1,ae=!P||F==P?0:s(b,P);A.forEach(function(be){var z=be.split("-"),G=+z[0],V=+z[1]||G;if(V=Math.min(se+w,V),!(V<G)){var R=b.querySelector('.line-highlight[data-range="'+be+'"]')||document.createElement("div");if(q.push(function(){R.setAttribute("aria-hidden","true"),R.setAttribute("data-range",be),R.className=(x||"")+" line-highlight"}),T&&Prism.plugins.lineNumbers){var K=Prism.plugins.lineNumbers.getLine(b,G),fe=Prism.plugins.lineNumbers.getLine(b,V);if(K){var M=K.offsetTop+ae+"px";q.push(function(){R.style.top=M})}if(fe){var oe=fe.offsetTop-K.offsetTop+fe.offsetHeight+"px";q.push(function(){R.style.height=oe})}}else q.push(function(){R.setAttribute("data-start",String(G)),V>G&&R.setAttribute("data-end",String(V)),R.style.top=(G-w-1)*E+ae+"px",R.textContent=new Array(V-G+2).join(`
|
|
84
|
-
`)});q.push(function(){R.style.width=b.scrollWidth+"px"}),q.push(function(){F.appendChild(R)})}});var O=b.id;if(T&&Prism.util.isActive(b,t)&&O){i(b,t)||q.push(function(){b.classList.add(t)});var Ee=parseInt(b.getAttribute("data-start")||"1");r(".line-numbers-rows > span",b).forEach(function(be,z){var G=z+Ee;be.onclick=function(){var V=O+"."+G;f=!1,location.hash=V,setTimeout(function(){f=!0},1)}})}return function(){q.forEach(a)}}};function h(){var g=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(w){w.parentNode.removeChild(w)});var b=(g.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!b||document.getElementById(g))){var $=g.slice(0,g.lastIndexOf(".")),x=document.getElementById($);if(x){x.hasAttribute("data-line")||x.setAttribute("data-line","");var A=Prism.plugins.lineHighlight.highlightLines(x,b,"temporary ");A(),f&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var m=0;Prism.hooks.add("before-sanity-check",function(g){var b=g.element.parentElement;if(l(b)){var $=0;r(".line-highlight",b).forEach(function(x){$+=x.textContent.length,x.parentNode.removeChild(x)}),$&&/^(?: \n)+$/.test(g.code.slice(-$))&&(g.code=g.code.slice(0,-$))}}),Prism.hooks.add("complete",function g(b){var $=b.element.parentElement;if(l($)){clearTimeout(m);var x=Prism.plugins.lineNumbers,A=b.plugins&&b.plugins.lineNumbers;if(i($,e)&&x&&!A)Prism.hooks.add("line-numbers",g);else{var w=Prism.plugins.lineHighlight.highlightLines($);w(),m=setTimeout(h,1)}}}),window.addEventListener("hashchange",h),window.addEventListener("resize",function(){var g=r("pre").filter(l).map(function(b){return Prism.plugins.lineHighlight.highlightLines(b)});g.forEach(a)})})();const V9=I.createContext({});function Df(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const nx=typeof window<"u",N9=nx?I.useLayoutEffect:I.useEffect,rx=I.createContext(null);function ix(e,t){e.indexOf(t)===-1&&e.push(t)}function ax(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function lte([...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 qo=(e,t,n)=>n>t?t:n<e?e:n;function W3(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let pc=()=>{},Ca=()=>{};process.env.NODE_ENV!=="production"&&(pc=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(W3(t,n))},Ca=(e,t,n)=>{if(!e)throw new Error(W3(t,n))});const Uo={},j9=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function K9(e){return typeof e=="object"&&e!==null}const z9=e=>/^0[^.\s]+$/u.test(e);function ox(e){let t;return()=>(t===void 0&&(t=e()),t)}const Qi=e=>e,cte=(e,t)=>n=>t(e(n)),$f=(...e)=>e.reduce(cte),Hd=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let sx=class{constructor(){this.subscriptions=[]}add(t){return ix(this.subscriptions,t),()=>ax(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 o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const Da=e=>e*1e3,to=e=>e/1e3;function q9(e,t){return t?e*(1e3/t):0}const Nw=new Set;function ux(e,t,n){e||Nw.has(t)||(console.warn(W3(t,n)),Nw.add(t))}const U9=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,dte=1e-7,fte=12;function hte(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=U9(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>dte&&++s<fte);return o}function Ef(e,t,n,r){if(e===t&&n===r)return Qi;const i=a=>hte(a,0,1,e,n);return a=>a===0||a===1?a:U9(i(a),t,r)}const W9=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,H9=e=>t=>1-e(1-t),G9=Ef(.33,1.53,.69,.99),lx=H9(G9),Y9=W9(lx),Z9=e=>(e*=2)<1?.5*lx(e):.5*(2-Math.pow(2,-10*(e-1))),cx=e=>1-Math.sin(Math.acos(e)),X9=H9(cx),Q9=W9(cx),pte=Ef(.42,0,1,1),mte=Ef(0,0,.58,1),J9=Ef(.42,0,.58,1),gte=e=>Array.isArray(e)&&typeof e[0]!="number",e8=e=>Array.isArray(e)&&typeof e[0]=="number",jw={linear:Qi,easeIn:pte,easeInOut:J9,easeOut:mte,circIn:cx,circInOut:Q9,circOut:X9,backIn:lx,backInOut:Y9,backOut:G9,anticipate:Z9},vte=e=>typeof e=="string",Kw=e=>{if(e8(e)){Ca(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return Ef(t,n,r,i)}else if(vte(e))return Ca(jw[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),jw[e];return e},Sh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function yte(e,t){let n=new Set,r=new Set,i=!1,a=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(h){o.has(h)&&(f.schedule(h),e()),h(s)}const f={schedule:(h,m=!1,g=!1)=>{const $=g&&i?n:r;return m&&o.add(h),$.has(h)||$.add(h),h},cancel:h=>{r.delete(h),o.delete(h)},process:h=>{if(s=h,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,a&&(a=!1,f.process(h))}};return f}const bte=40;function t8(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Sh.reduce((E,T)=>(E[T]=yte(a),E),{}),{setup:s,read:l,resolveKeyframes:f,preUpdate:h,update:m,preRender:g,render:b,postRender:$}=o,x=()=>{const E=Uo.useManualTiming?i.timestamp:performance.now();n=!1,Uo.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(E-i.timestamp,bte),1)),i.timestamp=E,i.isProcessing=!0,s.process(i),l.process(i),f.process(i),h.process(i),m.process(i),g.process(i),b.process(i),$.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(x))},A=()=>{n=!0,r=!0,i.isProcessing||e(x)};return{schedule:Sh.reduce((E,T)=>{const P=o[T];return E[T]=(F,q=!1,te=!1)=>(n||A(),P.schedule(F,q,te)),E},{}),cancel:E=>{for(let T=0;T<Sh.length;T++)o[Sh[T]].cancel(E)},state:i,steps:o}}const{schedule:Cn,cancel:Wo,state:br,steps:ty}=t8(typeof requestAnimationFrame<"u"?requestAnimationFrame:Qi,!0);let Hh;function xte(){Hh=void 0}const oi={now:()=>(Hh===void 0&&oi.set(br.isProcessing||Uo.useManualTiming?br.timestamp:performance.now()),Hh),set:e=>{Hh=e,queueMicrotask(xte)}},n8=e=>t=>typeof t=="string"&&t.startsWith(e),dx=n8("--"),Dte=n8("var(--"),fx=e=>Dte(e)?$te.test(e.split("/*")[0].trim()):!1,$te=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,mc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Gd={...mc,transform:e=>qo(0,1,e)},Th={...mc,default:1},Bd=e=>Math.round(e*1e5)/1e5,hx=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ete(e){return e==null}const Cte=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,px=(e,t)=>n=>!!(typeof n=="string"&&Cte.test(n)&&n.startsWith(e)||t&&!Ete(n)&&Object.prototype.hasOwnProperty.call(n,t)),r8=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,s]=r.match(hx);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},wte=e=>qo(0,255,e),ny={...mc,transform:e=>Math.round(wte(e))},hu={test:px("rgb","red"),parse:r8("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ny.transform(e)+", "+ny.transform(t)+", "+ny.transform(n)+", "+Bd(Gd.transform(r))+")"};function Ate(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 H3={test:px("#"),parse:Ate,transform:hu.transform},Cf=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),hs=Cf("deg"),no=Cf("%"),At=Cf("px"),Ste=Cf("vh"),Tte=Cf("vw"),zw={...no,parse:e=>no.parse(e)/100,transform:e=>no.transform(e*100)},Tl={test:px("hsl","hue"),parse:r8("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+no.transform(Bd(t))+", "+no.transform(Bd(n))+", "+Bd(Gd.transform(r))+")"},Jn={test:e=>hu.test(e)||H3.test(e)||Tl.test(e),parse:e=>hu.test(e)?hu.parse(e):Tl.test(e)?Tl.parse(e):H3.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?hu.transform(e):Tl.transform(e),getAnimatableNone:e=>{const t=Jn.parse(e);return t.alpha=0,Jn.transform(t)}},Pte=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function _te(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(hx))==null?void 0:t.length)||0)+(((n=e.match(Pte))==null?void 0:n.length)||0)>0}const i8="number",a8="color",Bte="var",Fte="var(",qw="${}",kte=/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 Yd(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const s=t.replace(kte,l=>(Jn.test(l)?(r.color.push(a),i.push(a8),n.push(Jn.parse(l))):l.startsWith(Fte)?(r.var.push(a),i.push(Bte),n.push(l)):(r.number.push(a),i.push(i8),n.push(parseFloat(l))),++a,qw)).split(qw);return{values:n,split:s,indexes:r,types:i}}function o8(e){return Yd(e).values}function s8(e){const{split:t,types:n}=Yd(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const s=n[o];s===i8?a+=Bd(i[o]):s===a8?a+=Jn.transform(i[o]):a+=i[o]}return a}}const Mte=e=>typeof e=="number"?0:Jn.test(e)?Jn.getAnimatableNone(e):e;function Rte(e){const t=o8(e);return s8(e)(t.map(Mte))}const ws={test:_te,parse:o8,createTransformer:s8,getAnimatableNone:Rte};function ry(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 Ite({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=ry(l,s,e+1/3),a=ry(l,s,e),o=ry(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function _p(e,t){return n=>n>0?t:e}const Pn=(e,t,n)=>e+(t-e)*n,iy=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Ote=[H3,hu,Tl],Lte=e=>Ote.find(t=>t.test(e));function Uw(e){const t=Lte(e);if(pc(!!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===Tl&&(n=Ite(n)),n}const Ww=(e,t)=>{const n=Uw(e),r=Uw(t);if(!n||!r)return _p(e,t);const i={...n};return a=>(i.red=iy(n.red,r.red,a),i.green=iy(n.green,r.green,a),i.blue=iy(n.blue,r.blue,a),i.alpha=Pn(n.alpha,r.alpha,a),hu.transform(i))},G3=new Set(["none","hidden"]);function Vte(e,t){return G3.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Nte(e,t){return n=>Pn(e,t,n)}function mx(e){return typeof e=="number"?Nte:typeof e=="string"?fx(e)?_p:Jn.test(e)?Ww:zte:Array.isArray(e)?u8:typeof e=="object"?Jn.test(e)?Ww:jte:_p}function u8(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>mx(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function jte(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=mx(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function Kte(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],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}const zte=(e,t)=>{const n=ws.createTransformer(t),r=Yd(e),i=Yd(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?G3.has(e)&&!i.values.length||G3.has(t)&&!r.values.length?Vte(e,t):$f(u8(Kte(r,i),i.values),n):(pc(!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"),_p(e,t))};function l8(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Pn(e,t,n):mx(e)(e,t)}const qte=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Cn.update(t,n),stop:()=>Wo(t),now:()=>br.isProcessing?br.timestamp:oi.now()}},c8=(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)})`},Bp=2e4;function gx(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Bp;)t+=n,r=e.next(t);return t>=Bp?1/0:t}function Ute(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(gx(r),Bp);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:to(i)}}const Wte=5;function d8(e,t,n){const r=Math.max(t-Wte,0);return q9(n-e(r),t-r)}const Bn={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},ay=.001;function Hte({duration:e=Bn.duration,bounce:t=Bn.bounce,velocity:n=Bn.velocity,mass:r=Bn.mass}){let i,a;pc(e<=Da(Bn.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=qo(Bn.minDamping,Bn.maxDamping,o),e=qo(Bn.minDuration,Bn.maxDuration,to(e)),o<1?(i=f=>{const h=f*o,m=h*e,g=h-n,b=Y3(f,o),$=Math.exp(-m);return ay-g/b*$},a=f=>{const m=f*o*e,g=m*n+n,b=Math.pow(o,2)*Math.pow(f,2)*e,$=Math.exp(-m),x=Y3(Math.pow(f,2),o);return(-i(f)+ay>0?-1:1)*((g-b)*$)/x}):(i=f=>{const h=Math.exp(-f*e),m=(f-n)*e+1;return-ay+h*m},a=f=>{const h=Math.exp(-f*e),m=(n-f)*(e*e);return h*m});const s=5/e,l=Yte(i,a,s);if(e=Da(e),isNaN(l))return{stiffness:Bn.stiffness,damping:Bn.damping,duration:e};{const f=Math.pow(l,2)*r;return{stiffness:f,damping:o*2*Math.sqrt(r*f),duration:e}}}const Gte=12;function Yte(e,t,n){let r=n;for(let i=1;i<Gte;i++)r=r-e(r)/t(r);return r}function Y3(e,t){return e*Math.sqrt(1-t*t)}const Zte=["duration","bounce"],Xte=["stiffness","damping","mass"];function Hw(e,t){return t.some(n=>e[n]!==void 0)}function Qte(e){let t={velocity:Bn.velocity,stiffness:Bn.stiffness,damping:Bn.damping,mass:Bn.mass,isResolvedFromDuration:!1,...e};if(!Hw(e,Xte)&&Hw(e,Zte))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*qo(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Bn.mass,stiffness:i,damping:a}}else{const n=Hte(e);t={...t,...n,mass:Bn.mass},t.isResolvedFromDuration=!0}return t}function Fp(e=Bn.visualDuration,t=Bn.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],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:l,damping:f,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=Qte({...n,velocity:-to(n.velocity||0)}),$=g||0,x=f/(2*Math.sqrt(l*h)),A=o-a,w=to(Math.sqrt(l/h)),C=Math.abs(A)<5;r||(r=C?Bn.restSpeed.granular:Bn.restSpeed.default),i||(i=C?Bn.restDelta.granular:Bn.restDelta.default);let E;if(x<1){const P=Y3(w,x);E=F=>{const q=Math.exp(-x*w*F);return o-q*(($+x*w*A)/P*Math.sin(P*F)+A*Math.cos(P*F))}}else if(x===1)E=P=>o-Math.exp(-w*P)*(A+($+w*A)*P);else{const P=w*Math.sqrt(x*x-1);E=F=>{const q=Math.exp(-x*w*F),te=Math.min(P*F,300);return o-q*(($+x*w*A)*Math.sinh(te)+P*A*Math.cosh(te))/P}}const T={calculatedDuration:b&&m||null,next:P=>{const F=E(P);if(b)s.done=P>=m;else{let q=P===0?$:0;x<1&&(q=P===0?Da($):d8(E,P,F));const te=Math.abs(q)<=r,se=Math.abs(o-F)<=i;s.done=te&&se}return s.value=s.done?o:F,s},toString:()=>{const P=Math.min(gx(T),Bp),F=c8(q=>T.next(P*q).value,P,30);return P+"ms "+F},toTransition:()=>{}};return T}Fp.applyToOptions=e=>{const t=Ute(e,100,Fp);return e.ease=t.ease,e.duration=Da(t.duration),e.type="keyframes",e};function Z3({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:f=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=te=>s!==void 0&&te<s||l!==void 0&&te>l,$=te=>s===void 0?l:l===void 0||Math.abs(s-te)<Math.abs(l-te)?s:l;let x=n*t;const A=m+x,w=o===void 0?A:o(A);w!==A&&(x=w-m);const C=te=>-x*Math.exp(-te/r),E=te=>w+C(te),T=te=>{const se=C(te),ae=E(te);g.done=Math.abs(se)<=f,g.value=g.done?w:ae};let P,F;const q=te=>{b(g.value)&&(P=te,F=Fp({keyframes:[g.value,$(g.value)],velocity:d8(E,te,g.value),damping:i,stiffness:a,restDelta:f,restSpeed:h}))};return q(0),{calculatedDuration:null,next:te=>{let se=!1;return!F&&P===void 0&&(se=!0,T(te),q(te)),P!==void 0&&te>=P?F.next(te-P):(!se&&T(te),g)}}}function Jte(e,t,n){const r=[],i=n||Uo.mix||l8,a=e.length-1;for(let o=0;o<a;o++){let s=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Qi:t;s=$f(l,s)}r.push(s)}return r}function f8(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Ca(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 o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=Jte(t,r,i),l=s.length,f=h=>{if(o&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=Hd(e[m],e[m+1],h);return s[m](g)};return n?h=>f(qo(e[0],e[a-1],h)):f}function ene(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Hd(0,t,r);e.push(Pn(n,1,i))}}function tne(e){const t=[0];return ene(t,e.length-1),t}function nne(e,t){return e.map(n=>n*t)}function rne(e,t){return e.map(()=>t||J9).splice(0,e.length-1)}function Pl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=gte(r)?r.map(Kw):Kw(r),a={done:!1,value:t[0]},o=nne(n&&n.length===t.length?n:tne(t),e),s=f8(o,t,{ease:Array.isArray(i)?i:rne(t,i)});return{calculatedDuration:e,next:l=>(a.value=s(l),a.done=l>=e,a)}}const ine=e=>e!==null;function vx(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(ine),s=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!s||r===void 0?a[s]:r}const ane={decay:Z3,inertia:Z3,tween:Pl,keyframes:Pl,spring:Fp};function h8(e){typeof e.type=="string"&&(e.type=ane[e.type])}let yx=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 one=e=>e/100;let bx=class extends yx{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!==oi.now()&&this.tick(oi.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;h8(t);const{type:n=Pl,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=t;let{keyframes:s}=t;const l=n||Pl;process.env.NODE_ENV!=="production"&&l!==Pl&&Ca(s.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${s}`,"spring-two-frames"),l!==Pl&&typeof s[0]!="number"&&(this.mixKeyframes=$f(one,l8(s[0],s[1])),s=[0,100]);const f=l({...t,keyframes:s});a==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-o})),f.calculatedDuration===null&&(f.calculatedDuration=gx(f));const{calculatedDuration:h}=f;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=f}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:o,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:f=0,keyframes:h,repeat:m,repeatType:g,repeatDelay:b,type:$,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 w=this.currentTime-f*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?w<0:w>i;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let E=this.currentTime,T=r;if(m){const te=Math.min(this.currentTime,i)/s;let se=Math.floor(te),ae=te%1;!ae&&te>=1&&(ae=1),ae===1&&se--,se=Math.min(se,m+1),!!(se%2)&&(g==="reverse"?(ae=1-ae,b&&(ae-=b/s)):g==="mirror"&&(T=o)),E=qo(0,1,ae)*s}const P=C?{done:!1,value:h[0]}:T.next(E);a&&(P.value=a(P.value));let{done:F}=P;!C&&l!==null&&(F=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const q=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return q&&$!==Z3&&(P.value=vx(h,this.options,A,this.speed)),x&&x(P.value),q&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return to(this.calculatedDuration)}get time(){return to(this.currentTime)}set time(t){var n;t=Da(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(oi.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=to(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=qte,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(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(oi.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 sne(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const pu=e=>e*180/Math.PI,X3=e=>{const t=pu(Math.atan2(e[1],e[0]));return Q3(t)},une={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:X3,rotateZ:X3,skewX:e=>pu(Math.atan(e[1])),skewY:e=>pu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Q3=e=>(e=e%360,e<0&&(e+=360),e),Gw=X3,Yw=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Zw=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),lne={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Yw,scaleY:Zw,scale:e=>(Yw(e)+Zw(e))/2,rotateX:e=>Q3(pu(Math.atan2(e[6],e[5]))),rotateY:e=>Q3(pu(Math.atan2(-e[2],e[0]))),rotateZ:Gw,rotate:Gw,skewX:e=>pu(Math.atan(e[4])),skewY:e=>pu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function J3(e){return e.includes("scale")?1:0}function e1(e,t){if(!e||e==="none")return J3(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=lne,i=n;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=une,i=s}if(!i)return J3(t);const a=r[t],o=i[1].split(",").map(dne);return typeof a=="function"?a(o):o[a]}const cne=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return e1(n,t)};function dne(e){return parseFloat(e.trim())}const gc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vc=new Set(gc),Xw=e=>e===mc||e===At,fne=new Set(["x","y","z"]),hne=gc.filter(e=>!fne.has(e));function pne(e){const t=[];return hne.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const bu={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})=>e1(t,"x"),y:(e,{transform:t})=>e1(t,"y")};bu.translateX=bu.x;bu.translateY=bu.y;const xu=new Set;let t1=!1,n1=!1,r1=!1;function p8(){if(n1){const e=Array.from(xu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=pne(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,o])=>{var s;(s=r.getValue(a))==null||s.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}n1=!1,t1=!1,xu.forEach(e=>e.complete(r1)),xu.clear()}function m8(){xu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(n1=!0)})}function mne(){r1=!0,m8(),p8(),r1=!1}let xx=class{constructor(t,n,r,i,a,o=!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=o}scheduleResolve(){this.state="scheduled",this.isAsync?(xu.add(this),t1||(t1=!0,Cn.read(m8),Cn.resolveKeyframes(p8))):(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(),o=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const s=r.readValue(n,o);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=o),i&&a===void 0&&i.set(t[0])}sne(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),xu.delete(this)}cancel(){this.state==="scheduled"&&(xu.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};const gne=e=>e.startsWith("--");function vne(e,t,n){gne(t)?e.style.setProperty(t,n):e.style[t]=n}const yne=ox(()=>window.ScrollTimeline!==void 0),bne={};function xne(e,t){const n=ox(e);return()=>bne[t]??n()}const g8=xne(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Dd=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Qw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Dd([0,.65,.55,1]),circOut:Dd([.55,0,1,.45]),backIn:Dd([.31,.01,.66,-.59]),backOut:Dd([.33,1.53,.69,.99])};function v8(e,t){if(e)return typeof e=="function"?g8()?c8(e,t):"ease-out":e8(e)?Dd(e):Array.isArray(e)?e.map(n=>v8(n,t)||Qw.easeOut):Qw[e]}function Dne(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeOut",times:l}={},f=void 0){const h={[t]:n};l&&(h.offset=l);const m=v8(s,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:o==="reverse"?"alternate":"normal"};return f&&(g.pseudoElement=f),e.animate(h,g)}function y8(e){return typeof e=="function"&&"applyToOptions"in e}function $ne({type:e,...t}){return y8(e)&&g8()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}let Ene=class extends yx{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:o=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!a,this.allowFlatten=o,this.options=t,Ca(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const f=$ne(t);this.animation=Dne(n,r,i,f,a),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const h=vx(i,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(h):vne(n,r,h),this.animation.cancel()}l==null||l(),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 to(Number(t))}get time(){return to(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Da(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&&yne()?(this.animation.timeline=t,Qi):n(this)}};const b8={anticipate:Z9,backInOut:Y9,circInOut:Q9};function Cne(e){return e in b8}function wne(e){typeof e.ease=="string"&&Cne(e.ease)&&(e.ease=b8[e.ease])}const Jw=10;let Ane=class extends Ene{constructor(t){wne(t),h8(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const s=new bx({...o,autoplay:!1}),l=Da(this.finishedTime??this.time);n.setWithVelocity(s.sample(l-Jw).value,s.sample(l).value,Jw),s.stop()}};const eA=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ws.test(e)||e==="0")&&!e.startsWith("url("));function Sne(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 Tne(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],o=eA(i,t),s=eA(a,t);return pc(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,"value-not-animatable"),!o||!s?!1:Sne(e)||(n==="spring"||y8(n))&&r}function i1(e){e.duration=0,e.type}const Pne=new Set(["opacity","clipPath","filter","transform"]),_ne=ox(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Bne(e){var h;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!(((h=t==null?void 0:t.owner)==null?void 0:h.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:f}=t.owner.getProps();return _ne()&&n&&Pne.has(n)&&(n!=="transform"||!f)&&!l&&!r&&i!=="mirror"&&a!==0&&o!=="inertia"}const Fne=40;let kne=class extends yx{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",keyframes:s,name:l,motionValue:f,element:h,...m}){var $;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=oi.now();const g={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,name:l,motionValue:f,element:h,...m},b=(h==null?void 0:h.KeyframeResolver)||xx;this.keyframeResolver=new b(s,(x,A,w)=>this.onKeyframesResolved(x,A,g,!w),l,f,h),($=this.keyframeResolver)==null||$.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:o,velocity:s,delay:l,isHandoff:f,onUpdate:h}=r;this.resolvedAt=oi.now(),Tne(t,a,o,s)||((Uo.instantAnimations||!l)&&(h==null||h(vx(t,r,n))),t[0]=t[t.length-1],i1(r),r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Fne?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!f&&Bne(g)?new Ane({...g,element:g.motionValue.owner.current}):new bx(g);b.finished.then(()=>this.notifyFinished()).catch(Qi),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(),mne()),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 Mne=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Rne(e){const t=Mne.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Ine=4;function x8(e,t,n=1){Ca(n<=Ine,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=Rne(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return j9(o)?parseFloat(o):o}return fx(i)?x8(i,t,n+1):i}function Dx(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const D8=new Set(["width","height","top","left","right","bottom",...gc]),One={test:e=>e==="auto",parse:e=>e},$8=e=>t=>t.test(e),E8=[mc,At,no,hs,Tte,Ste,One],tA=e=>E8.find($8(e));function Lne(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||z9(e):!0}const Vne=new Set(["brightness","contrast","saturate","opacity"]);function Nne(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(hx)||[];if(!r)return e;const i=n.replace(r,"");let a=Vne.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const jne=/\b([a-z-]*)\(.*?\)/gu,a1={...ws,getAnimatableNone:e=>{const t=e.match(jne);return t?t.map(Nne).join(" "):e}},nA={...mc,transform:Math.round},Kne={rotate:hs,rotateX:hs,rotateY:hs,rotateZ:hs,scale:Th,scaleX:Th,scaleY:Th,scaleZ:Th,skew:hs,skewX:hs,skewY:hs,distance:At,translateX:At,translateY:At,translateZ:At,x:At,y:At,z:At,perspective:At,transformPerspective:At,opacity:Gd,originX:zw,originY:zw,originZ:At},$x={borderWidth:At,borderTopWidth:At,borderRightWidth:At,borderBottomWidth:At,borderLeftWidth:At,borderRadius:At,radius:At,borderTopLeftRadius:At,borderTopRightRadius:At,borderBottomRightRadius:At,borderBottomLeftRadius:At,width:At,maxWidth:At,height:At,maxHeight:At,top:At,right:At,bottom:At,left:At,padding:At,paddingTop:At,paddingRight:At,paddingBottom:At,paddingLeft:At,margin:At,marginTop:At,marginRight:At,marginBottom:At,marginLeft:At,backgroundPositionX:At,backgroundPositionY:At,...Kne,zIndex:nA,fillOpacity:Gd,strokeOpacity:Gd,numOctaves:nA},zne={...$x,color:Jn,backgroundColor:Jn,outlineColor:Jn,fill:Jn,stroke:Jn,borderColor:Jn,borderTopColor:Jn,borderRightColor:Jn,borderBottomColor:Jn,borderLeftColor:Jn,filter:a1,WebkitFilter:a1},C8=e=>zne[e];function w8(e,t){let n=C8(e);return n!==a1&&(n=ws),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const qne=new Set(["auto","none","0"]);function Une(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!qne.has(a)&&Yd(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=w8(n,i)}let Wne=class extends xx{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 l=0;l<t.length;l++){let f=t[l];if(typeof f=="string"&&(f=f.trim(),fx(f))){const h=x8(f,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!D8.has(r)||t.length!==2)return;const[i,a]=t,o=tA(i),s=tA(a);if(o!==s)if(Xw(o)&&Xw(s))for(let l=0;l<t.length;l++){const f=t[l];typeof f=="string"&&(t[l]=parseFloat(f))}else bu[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||Lne(t[i]))&&r.push(i);r.length&&Une(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=bu[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 s;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,o=r[a];r[a]=bu[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(s=this.removedTransforms)!=null&&s.length&&this.removedTransforms.forEach(([l,f])=>{t.getValue(l).set(f)}),this.resolveNoneKeyframes()}};function Hne(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 A8=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Gne(e){return K9(e)&&"offsetHeight"in e}const rA=30,Yne=e=>!isNaN(parseFloat(e)),Fd={current:void 0};let Zne=class{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var a;const i=oi.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 o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=oi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Yne(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ux(!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 sx);const r=this.events[t].add(n);return t==="change"?()=>{r(),Cn.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 Fd.current&&Fd.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=oi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>rA)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,rA);return q9(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 _u(e,t){return new Zne(e,t)}const{schedule:Ex}=t8(queueMicrotask,!1),ma={x:!1,y:!1};function S8(){return ma.x||ma.y}function Xne(e){return e==="x"||e==="y"?ma[e]?null:(ma[e]=!0,()=>{ma[e]=!1}):ma.x||ma.y?null:(ma.x=ma.y=!0,()=>{ma.x=ma.y=!1})}function T8(e,t){const n=Hne(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function iA(e){return!(e.pointerType==="touch"||S8())}function Qne(e,t,n={}){const[r,i,a]=T8(e,n),o=s=>{if(!iA(s))return;const{target:l}=s,f=t(l,s);if(typeof f!="function"||!l)return;const h=m=>{iA(m)&&(f(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(s=>{s.addEventListener("pointerenter",o,i)}),a}const P8=(e,t)=>t?e===t?!0:P8(e,t.parentElement):!1,Cx=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Jne=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ere(e){return Jne.has(e.tagName)||e.tabIndex!==-1}const Gh=new WeakSet;function aA(e){return t=>{t.key==="Enter"&&e(t)}}function oy(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const tre=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=aA(()=>{if(Gh.has(n))return;oy(n,"down");const i=aA(()=>{oy(n,"up")}),a=()=>oy(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 oA(e){return Cx(e)&&!S8()}function nre(e,t,n={}){const[r,i,a]=T8(e,n),o=s=>{const l=s.currentTarget;if(!oA(s))return;Gh.add(l);const f=t(l,s),h=(b,$)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),Gh.has(l)&&Gh.delete(l),oA(b)&&typeof f=="function"&&f(b,{success:$})},m=b=>{h(b,l===window||l===document||n.useGlobalTarget||P8(l,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(s=>{(n.useGlobalTarget?window:s).addEventListener("pointerdown",o,i),Gne(s)&&(s.addEventListener("focus",f=>tre(f,i)),!ere(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),a}function _8(e){return K9(e)&&"ownerSVGElement"in e}function rre(e){return _8(e)&&e.tagName==="svg"}function ire(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=f8(i,a,o);return t?s(r):s}const xr=e=>!!(e&&e.getVelocity),are=[...E8,Jn,ws],ore=e=>are.find($8(e)),wx=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function sre(e=!0){const t=I.useContext(rx);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 o=I.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const B8=I.createContext({strict:!1}),sA={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"]},nc={};for(const e in sA)nc[e]={isEnabled:t=>sA[e].some(n=>!!t[n])};function ure(e){for(const t in e)nc[t]={...nc[t],...e[t]}}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 kp(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 F8=e=>!kp(e);function cre(e){typeof e=="function"&&(F8=t=>t.startsWith("on")?!kp(t):e(t))}try{cre(require("@emotion/is-prop-valid").default)}catch{}function dre(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(F8(i)||n===!0&&kp(i)||!t&&!kp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Mm=I.createContext({});function Rm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Zd(e){return typeof e=="string"||Array.isArray(e)}const Ax=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Sx=["initial",...Ax];function Im(e){return Rm(e.animate)||Sx.some(t=>Zd(e[t]))}function k8(e){return!!(Im(e)||e.variants)}function fre(e,t){if(Im(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Zd(n)?n:void 0,animate:Zd(r)?r:void 0}}return e.inherit!==!1?t:{}}function hre(e){const{initial:t,animate:n}=fre(e,I.useContext(Mm));return I.useMemo(()=>({initial:t,animate:n}),[uA(t),uA(n)])}function uA(e){return Array.isArray(e)?e.join(" "):e}const Xd={};function pre(e){for(const t in e)Xd[t]=e[t],dx(t)&&(Xd[t].isCSSVariable=!0)}function M8(e,{layout:t,layoutId:n}){return vc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Xd[e]||e==="opacity")}const mre={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gre=gc.length;function vre(e,t,n){let r="",i=!0;for(let a=0;a<gre;a++){const o=gc[a],s=e[o];if(s===void 0)continue;let l=!0;if(typeof s=="number"?l=s===(o.startsWith("scale")?1:0):l=parseFloat(s)===0,!l||n){const f=A8(s,$x[o]);if(!l){i=!1;const h=mre[o]||o;r+=`${h}(${f}) `}n&&(t[o]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Tx(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,s=!1;for(const l in t){const f=t[l];if(vc.has(l)){o=!0;continue}else if(dx(l)){i[l]=f;continue}else{const h=A8(f,$x[l]);l.startsWith("origin")?(s=!0,a[l]=h):r[l]=h}}if(t.transform||(o||n?r.transform=vre(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:l="50%",originY:f="50%",originZ:h=0}=a;r.transformOrigin=`${l} ${f} ${h}`}}const Px=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function R8(e,t,n){for(const r in t)!xr(t[r])&&!M8(r,n)&&(e[r]=t[r])}function yre({transformTemplate:e},t){return I.useMemo(()=>{const n=Px();return Tx(n,t,e),Object.assign({},n.vars,n.style)},[t])}function bre(e,t){const n=e.style||{},r={};return R8(r,n,e),Object.assign(r,yre(e,t)),r}function xre(e,t){const n={},r=bre(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 Dre={offset:"stroke-dashoffset",array:"stroke-dasharray"},$re={offset:"strokeDashoffset",array:"strokeDasharray"};function Ere(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?Dre:$re;e[a.offset]=At.transform(-r);const o=At.transform(t),s=At.transform(n);e[a.array]=`${o} ${s}`}function I8(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},l,f,h){if(Tx(e,s,f),l){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&&Ere(m,i,a,o,!1)}const O8=()=>({...Px(),attrs:{}}),L8=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Cre(e,t,n,r){const i=I.useMemo(()=>{const a=O8();return I8(a,t,L8(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};R8(a,e.style,e),i.style={...a,...i.style}}return i}const wre=["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 _x(e){return typeof e!="string"||e.includes("-")?!1:!!(wre.indexOf(e)>-1||/[A-Z]/u.test(e))}function Are(e,t,n,{latestValues:r},i,a=!1){const s=(_x(e)?Cre:xre)(t,r,i,e),l=dre(t,typeof e=="string",a),f=e!==I.Fragment?{...l,...s,ref:n}:{},{children:h}=t,m=I.useMemo(()=>xr(h)?h.get():h,[h]);return I.createElement(e,{...f,children:m})}function lA(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Bx(e,t,n,r){if(typeof t=="function"){const[i,a]=lA(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]=lA(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function Yh(e){return xr(e)?e.get():e}function Sre({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Tre(n,r,i,e),renderState:t()}}function Tre(e,t,n,r){const i={},a=r(e,{});for(const g in a)i[g]=Yh(a[g]);let{initial:o,animate:s}=e;const l=Im(e),f=k8(e);t&&f&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let h=n?n.initial===!1:!1;h=h||o===!1;const m=h?s:o;if(m&&typeof m!="boolean"&&!Rm(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const $=Bx(e,g[b]);if($){const{transitionEnd:x,transition:A,...w}=$;for(const C in w){let E=w[C];if(Array.isArray(E)){const T=h?E.length-1:0;E=E[T]}E!==null&&(i[C]=E)}for(const C in x)i[C]=x[C]}}}return i}const V8=e=>(t,n)=>{const r=I.useContext(Mm),i=I.useContext(rx),a=()=>Sre(e,t,r,i);return n?a():Df(a)};function Fx(e,t,n){var a;const{style:r}=e,i={};for(const o in r)(xr(r[o])||t.style&&xr(t.style[o])||M8(o,e)||((a=n==null?void 0:n.getValue(o))==null?void 0:a.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const Pre=V8({scrapeMotionValuesFromProps:Fx,createRenderState:Px});function N8(e,t,n){const r=Fx(e,t,n);for(const i in e)if(xr(e[i])||xr(t[i])){const a=gc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const _re=V8({scrapeMotionValuesFromProps:N8,createRenderState:O8}),Bre=Symbol.for("motionComponentSymbol");function _l(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Fre(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):_l(n)&&(n.current=r))},[t])}const kx=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),kre="framerAppearId",j8="data-"+kx(kre),K8=I.createContext({});function Mre(e,t,n,r,i){var x,A;const{visualElement:a}=I.useContext(Mm),o=I.useContext(B8),s=I.useContext(rx),l=I.useContext(wx).reducedMotion,f=I.useRef(null);r=r||o.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const h=f.current,m=I.useContext(K8);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&Rre(f.current,n,i,m);const g=I.useRef(!1);I.useInsertionEffect(()=>{h&&g.current&&h.update(n,s)});const b=n[j8],$=I.useRef(!!b&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,b))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,b)));return N9(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),$.current&&h.animationState&&h.animationState.animateChanges())}),I.useEffect(()=>{h&&(!$.current&&h.animationState&&h.animationState.animateChanges(),$.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)==null||w.call(window,b)}),$.current=!1),h.enteringChildren=void 0)}),h}function Rre(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:f,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:z8(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&_l(s),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:f})}function z8(e){if(e)return e.options.allowProjection!==!1?e.projection:z8(e.parent)}function sy(e,{forwardMotionProps:t=!1}={},n,r){n&&ure(n);const i=_x(e)?_re:Pre;function a(s,l){let f;const h={...I.useContext(wx),...s,layoutId:Ire(s)},{isStatic:m}=h,g=hre(s),b=i(s,m);if(!m&&nx){Ore(h,n);const $=Lre(h);f=$.MeasureLayout,g.visualElement=Mre(e,b,h,r,$.ProjectionNode)}return io.jsxs(Mm.Provider,{value:g,children:[f&&g.visualElement?io.jsx(f,{visualElement:g.visualElement,...h}):null,Are(e,s,Fre(b,g.visualElement,l),b,m,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const o=I.forwardRef(a);return o[Bre]=e,o}function Ire({layoutId:e}){const t=I.useContext(V9).id;return t&&e!==void 0?t+"-"+e:e}function Ore(e,t){const n=I.useContext(B8).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?pc(!1,r,"lazy-strict-mode"):Ca(!1,r,"lazy-strict-mode")}}function Lre(e){const{drag:t,layout:n}=nc;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 Vre(e,t){if(typeof Proxy>"u")return sy;const n=new Map,r=(a,o)=>sy(a,o,e,t),i=(a,o)=>(process.env.NODE_ENV!=="production"&&ux(!1,"motion() is deprecated. Use motion.create() instead."),r(a,o));return new Proxy(i,{get:(a,o)=>o==="create"?r:(n.has(o)||n.set(o,sy(o,void 0,e,t)),n.get(o))})}function q8({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Nre({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function jre(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 uy(e){return e===void 0||e===1}function o1({scale:e,scaleX:t,scaleY:n}){return!uy(e)||!uy(t)||!uy(n)}function ou(e){return o1(e)||U8(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function U8(e){return cA(e.x)||cA(e.y)}function cA(e){return e&&e!=="0%"}function Mp(e,t,n){const r=e-n,i=t*r;return n+i}function dA(e,t,n,r,i){return i!==void 0&&(e=Mp(e,i,r)),Mp(e,n,r)+t}function s1(e,t=0,n=1,r,i){e.min=dA(e.min,t,n,r,i),e.max=dA(e.max,t,n,r,i)}function W8(e,{x:t,y:n}){s1(e.x,t.translate,t.scale,t.originPoint),s1(e.y,n.translate,n.scale,n.originPoint)}const fA=.999999999999,hA=1.0000000000001;function Kre(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;const{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Fl(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,W8(e,o)),r&&ou(a.latestValues)&&Fl(e,a.latestValues))}t.x<hA&&t.x>fA&&(t.x=1),t.y<hA&&t.y>fA&&(t.y=1)}function Bl(e,t){e.min=e.min+t,e.max=e.max+t}function pA(e,t,n,r,i=.5){const a=Pn(e.min,e.max,i);s1(e,t,n,a,r)}function Fl(e,t){pA(e.x,t.x,t.scaleX,t.scale,t.originX),pA(e.y,t.y,t.scaleY,t.scale,t.originY)}function H8(e,t){return q8(jre(e.getBoundingClientRect(),t))}function zre(e,t,n){const r=H8(e,n),{scroll:i}=t;return i&&(Bl(r.x,i.offset.x),Bl(r.y,i.offset.y)),r}const mA=()=>({translate:0,scale:1,origin:0,originPoint:0}),kl=()=>({x:mA(),y:mA()}),gA=()=>({min:0,max:0}),Hn=()=>({x:gA(),y:gA()}),u1={current:null},G8={current:!1};function qre(){if(G8.current=!0,!!nx)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>u1.current=e.matches;e.addEventListener("change",t),t()}else u1.current=!1}const Ure=new WeakMap;function Wre(e,t,n){for(const r in t){const i=t[r],a=n[r];if(xr(i))e.addValue(r,i);else if(xr(a))e.addValue(r,_u(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,_u(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const vA=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Hre=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=xx,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=oi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Cn.render(this.render,!1,!0))};const{latestValues:l,renderState:f}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Im(n),this.isVariantNode=k8(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];l[g]!==void 0&&xr(b)&&b.set(l[g])}}mount(t){var n;this.current=t,Ure.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)),G8.current||qre(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:u1.current,process.env.NODE_ENV!=="production"&&ux(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(),Wo(this.notifyUpdate),Wo(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=vc.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Cn.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 nc){const n=nc[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):Hn()}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<vA.length;r++){const i=vA[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=t[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Wre(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=_u(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"&&(j9(r)||z9(r))?r=parseFloat(r):!ore(r)&&ws.test(n)&&(r=w8(t,n)),this.setBaseTarget(t,xr(r)?r.get():r)),xr(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 o=Bx(this.props,n,(a=this.presenceContext)==null?void 0:a.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!xr(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 sx),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Ex.render(this.render)}},Y8=class extends Hre{constructor(){super(...arguments),this.KeyframeResolver=Wne}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;xr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function Z8(e,{style:t,vars:n},r,i){const a=e.style;let o;for(o in t)a[o]=t[o];i==null||i.applyProjectionStyles(a,r);for(o in n)a.setProperty(o,n[o])}function Gre(e){return window.getComputedStyle(e)}let Yre=class extends Y8{constructor(){super(...arguments),this.type="html",this.renderInstance=Z8}readValueFromInstance(t,n){var r;if(vc.has(n))return(r=this.projection)!=null&&r.isProjecting?J3(n):cne(t,n);{const i=Gre(t),a=(dx(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return H8(t,n)}build(t,n,r){Tx(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Fx(t,n,r)}};const X8=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 Zre(e,t,n,r){Z8(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(X8.has(i)?i:kx(i),t.attrs[i])}let Xre=class extends Y8{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Hn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(vc.has(n)){const r=C8(n);return r&&r.default||0}return n=X8.has(n)?n:kx(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return N8(t,n,r)}build(t,n,r){I8(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Zre(t,n,r,i)}mount(t){this.isSVGTag=L8(t.tagName),super.mount(t)}};const Qre=(e,t)=>_x(e)?new Xre(t):new Yre(t,{allowProjection:e!==I.Fragment});function Ul(e,t,n){const r=e.getProps();return Bx(r,t,n!==void 0?n:r.custom,e)}const l1=e=>Array.isArray(e);function Jre(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,_u(n))}function eie(e){return l1(e)?e[e.length-1]||0:e}function tie(e,t){const n=Ul(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const s=eie(a[o]);Jre(e,o,s)}}function nie(e){return!!(xr(e)&&e.add)}function c1(e,t){const n=e.getValue("willChange");if(nie(n))return n.add(t);if(!n&&Uo.WillChange){const r=new Uo.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Q8(e){return e.props[j8]}const rie=e=>e!==null;function iie(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(rie),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const aie={type:"spring",stiffness:500,damping:25,restSpeed:10},oie=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),sie={type:"keyframes",duration:.8},uie={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},lie=(e,{keyframes:t})=>t.length>2?sie:vc.has(e)?e.startsWith("scale")?oie(t[1]):aie:uie;function cie({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:l,elapsed:f,...h}){return!!Object.keys(h).length}const Mx=(e,t,n,r={},i,a)=>o=>{const s=Dx(r,e)||{},l=s.delay||r.delay||0;let{elapsed:f=0}=r;f=f-Da(l);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-f,onUpdate:g=>{t.set(g),s.onUpdate&&s.onUpdate(g)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};cie(s)||Object.assign(h,lie(e,h)),h.duration&&(h.duration=Da(h.duration)),h.repeatDelay&&(h.repeatDelay=Da(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(i1(h),h.delay===0&&(m=!0)),(Uo.instantAnimations||Uo.skipAnimations)&&(m=!0,i1(h),h.delay=0),h.allowFlatten=!s.type&&!s.ease,m&&!a&&t.get()!==void 0){const g=iie(h.keyframes,s);if(g!==void 0){Cn.update(()=>{h.onUpdate(g),h.onComplete()});return}}return s.isSync?new bx(h):new kne(h)};function die({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function J8(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;r&&(a=r);const l=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in s){const m=e.getValue(h,e.latestValues[h]??null),g=s[h];if(g===void 0||f&&die(f,h))continue;const b={delay:n,...Dx(a||{},h)},$=m.get();if($!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===$&&!b.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const w=Q8(e);if(w){const C=window.MotionHandoffAnimation(w,h,Cn);C!==null&&(b.startTime=C,x=!0)}}c1(e,h),m.start(Mx(h,m,g,e.shouldReduceMotion&&D8.has(h)?{type:!1}:b,e,x));const A=m.animation;A&&l.push(A)}return o&&Promise.all(l).then(()=>{Cn.update(()=>{o&&tie(e,o)})}),l}function eM(e,t,n,r=0,i=1){const a=Array.from(e).sort((f,h)=>f.sortNodePosition(h)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n=="function"?n(a,o):i===1?a*r:s-a*r}function d1(e,t,n={}){var l;const r=Ul(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(J8(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return fie(e,t,f,h,m,g,n)}:()=>Promise.resolve(),{when:s}=i;if(s){const[f,h]=s==="beforeChildren"?[a,o]:[o,a];return f().then(()=>h())}else return Promise.all([a(),o(n.delay)])}function fie(e,t,n=0,r=0,i=0,a=1,o){const s=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),s.push(d1(l,t,{...o,delay:n+(typeof r=="function"?0:r)+eM(e.variantChildren,l,r,i,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function hie(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>d1(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=d1(e,t,n);else{const i=typeof t=="function"?Ul(e,t,n.custom):t;r=Promise.all(J8(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function tM(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 pie=Sx.length;function nM(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?nM(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<pie;n++){const r=Sx[n],i=e.props[r];(Zd(i)||i===!1)&&(t[r]=i)}return t}const mie=[...Ax].reverse(),gie=Ax.length;function vie(e){return t=>Promise.all(t.map(({animation:n,options:r})=>hie(e,n,r)))}function yie(e){let t=vie(e),n=yA(),r=!0;const i=l=>(f,h)=>{var g;const m=Ul(e,h,l==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:$,...x}=m;f={...f,...x,...$}}return f};function a(l){t=l(e)}function o(l){const{props:f}=e,h=nM(e.parent)||{},m=[],g=new Set;let b={},$=1/0;for(let A=0;A<gie;A++){const w=mie[A],C=n[w],E=f[w]!==void 0?f[w]:h[w],T=Zd(E),P=w===l?C.isActive:null;P===!1&&($=A);let F=E===h[w]&&E!==f[w]&&T;if(F&&r&&e.manuallyAnimateOnMount&&(F=!1),C.protectedKeys={...b},!C.isActive&&P===null||!E&&!C.prevProp||Rm(E)||typeof E=="boolean")continue;const q=bie(C.prevProp,E);let te=q||w===l&&C.isActive&&!F&&T||A>$&&T,se=!1;const ae=Array.isArray(E)?E:[E];let O=ae.reduce(i(w),{});P===!1&&(O={});const{prevResolvedValues:Ee={}}=C,be={...Ee,...O},z=R=>{te=!0,g.has(R)&&(se=!0,g.delete(R)),C.needsAnimating[R]=!0;const K=e.getValue(R);K&&(K.liveStyle=!1)};for(const R in be){const K=O[R],fe=Ee[R];if(b.hasOwnProperty(R))continue;let M=!1;l1(K)&&l1(fe)?M=!tM(K,fe):M=K!==fe,M?K!=null?z(R):g.add(R):K!==void 0&&g.has(R)?z(R):C.protectedKeys[R]=!0}C.prevProp=E,C.prevResolvedValues=O,C.isActive&&(b={...b,...O}),r&&e.blockInitialAnimation&&(te=!1);const G=F&&q;te&&(!G||se)&&m.push(...ae.map(R=>{const K={type:w};if(typeof R=="string"&&r&&!G&&e.manuallyAnimateOnMount&&e.parent){const{parent:fe}=e,M=Ul(fe,R);if(fe.enteringChildren&&M){const{delayChildren:oe}=M.transition||{};K.delay=eM(fe.enteringChildren,e,oe)}}return{animation:R,options:K}}))}if(g.size){const A={};if(typeof f.initial!="boolean"){const w=Ul(e,Array.isArray(f.initial)?f.initial[0]:f.initial);w&&w.transition&&(A.transition=w.transition)}g.forEach(w=>{const C=e.getBaseTarget(w),E=e.getValue(w);E&&(E.liveStyle=!0),A[w]=C??null}),m.push({animation:A})}let x=!!m.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(m):Promise.resolve()}function s(l,f){var m;if(n[l].isActive===f)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(g=>{var b;return(b=g.animationState)==null?void 0:b.setActive(l,f)}),n[l].isActive=f;const h=o(l);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=yA(),r=!0}}}function bie(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!tM(t,e):!1}function iu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function yA(){return{animate:iu(!0),whileInView:iu(),whileHover:iu(),whileTap:iu(),whileDrag:iu(),whileFocus:iu(),exit:iu()}}let _s=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},xie=class extends _s{constructor(t){super(t),t.animationState||(t.animationState=yie(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Rm(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)}},Die=0,$ie=class extends _s{constructor(){super(...arguments),this.id=Die++}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 Eie={animation:{Feature:xie},exit:{Feature:$ie}};function Qd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function wf(e){return{point:{x:e.pageX,y:e.pageY}}}const Cie=e=>t=>Cx(t)&&e(t,wf(t));function kd(e,t,n,r){return Qd(e,t,Cie(n),r)}const rM=1e-4,wie=1-rM,Aie=1+rM,iM=.01,Sie=0-iM,Tie=0+iM;function Nr(e){return e.max-e.min}function Pie(e,t,n){return Math.abs(e-t)<=n}function bA(e,t,n,r=.5){e.origin=r,e.originPoint=Pn(t.min,t.max,e.origin),e.scale=Nr(n)/Nr(t),e.translate=Pn(n.min,n.max,e.origin)-e.originPoint,(e.scale>=wie&&e.scale<=Aie||isNaN(e.scale))&&(e.scale=1),(e.translate>=Sie&&e.translate<=Tie||isNaN(e.translate))&&(e.translate=0)}function Md(e,t,n,r){bA(e.x,t.x,n.x,r?r.originX:void 0),bA(e.y,t.y,n.y,r?r.originY:void 0)}function xA(e,t,n){e.min=n.min+t.min,e.max=e.min+Nr(t)}function _ie(e,t,n){xA(e.x,t.x,n.x),xA(e.y,t.y,n.y)}function DA(e,t,n){e.min=t.min-n.min,e.max=e.min+Nr(t)}function Rd(e,t,n){DA(e.x,t.x,n.x),DA(e.y,t.y,n.y)}function Ki(e){return[e("x"),e("y")]}const aM=({current:e})=>e?e.ownerDocument.defaultView:null,$A=(e,t)=>Math.abs(e-t);function Bie(e,t){const n=$A(e.x,t.x),r=$A(e.y,t.y);return Math.sqrt(n**2+r**2)}class oM{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:o=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=cy(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,$=Bie(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!$)return;const{point:x}=g,{timestamp:A}=br;this.history.push({...x,timestamp:A});const{onStart:w,onMove:C}=this.handlers;b||(w&&w(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,g)},this.handlePointerMove=(g,b)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=ly(b,this.transformPagePoint),Cn.update(this.updatePoint,!0)},this.handlePointerUp=(g,b)=>{this.end();const{onEnd:$,onSessionEnd:x,resumeAnimation:A}=this.handlers;if(this.dragSnapToOrigin&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=cy(g.type==="pointercancel"?this.lastMoveEventInfo:ly(b,this.transformPagePoint),this.history);this.startEvent&&$&&$(g,w),x&&x(g,w)},!Cx(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const s=wf(t),l=ly(s,this.transformPagePoint),{point:f}=l,{timestamp:h}=br;this.history=[{...f,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,cy(l,this.history)),this.removeListeners=$f(kd(this.contextWindow,"pointermove",this.handlePointerMove),kd(this.contextWindow,"pointerup",this.handlePointerUp),kd(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Wo(this.updatePoint)}}function ly(e,t){return t?{point:t(e.point)}:e}function EA(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cy({point:e},t){return{point:e,delta:EA(e,sM(t)),offset:EA(e,Fie(t)),velocity:kie(t,.1)}}function Fie(e){return e[0]}function sM(e){return e[e.length-1]}function kie(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=sM(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Da(t)));)n--;if(!r)return{x:0,y:0};const a=to(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Mie(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Pn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Pn(n,e,r.max):Math.min(e,n)),e}function CA(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 Rie(e,{top:t,left:n,bottom:r,right:i}){return{x:CA(e.x,n,i),y:CA(e.y,t,r)}}function wA(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 Iie(e,t){return{x:wA(e.x,t.x),y:wA(e.y,t.y)}}function Oie(e,t){let n=.5;const r=Nr(e),i=Nr(t);return i>r?n=Hd(t.min,t.max-r,e.min):r>i&&(n=Hd(e.min,e.max-i,t.min)),qo(0,1,n)}function Lie(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 f1=.35;function Vie(e=f1){return e===!1?e=0:e===!0&&(e=f1),{x:AA(e,"left","right"),y:AA(e,"top","bottom")}}function AA(e,t,n){return{min:SA(e,t),max:SA(e,n)}}function SA(e,t){return typeof e=="number"?e:e[t]||0}const Nie=new WeakMap;class jie{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=Hn(),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(wf(m).point)},o=(m,g)=>{const{drag:b,dragPropagation:$,onDragStart:x}=this.getProps();if(b&&!$&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Xne(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),Ki(w=>{let C=this.getAxisMotionValue(w).get()||0;if(no.test(C)){const{projection:E}=this.visualElement;if(E&&E.layout){const T=E.layout.layoutBox[w];T&&(C=Nr(T)*(parseFloat(C)/100))}}this.originPoint[w]=C}),x&&Cn.postRender(()=>x(m,g)),c1(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},s=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g;const{dragPropagation:b,dragDirectionLock:$,onDirectionLock:x,onDrag:A}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:w}=g;if($&&this.currentDirection===null){this.currentDirection=Kie(w),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",g.point,w),this.updateAxis("y",g.point,w),this.visualElement.render(),A&&A(m,g)},l=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g,this.stop(m,g),this.latestPointerEvent=null,this.latestPanInfo=null},f=()=>Ki(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 oM(t,{onSessionStart:a,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:r,contextWindow:aM(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:o}=i;this.startAnimation(o);const{onDragEnd:s}=this.getProps();s&&Cn.postRender(()=>s(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||!Ph(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Mie(o,this.constraints[t],this.elastic[t])),a.set(o)}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&&_l(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Rie(r.layoutBox,t):this.constraints=!1,this.elastic=Vie(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ki(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Lie(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!_l(t))return!1;const r=t.current;Ca(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=zre(r,i.root,this.visualElement.getTransformPagePoint());let o=Iie(i.layout.layoutBox,a);if(n){const s=n(Nre(o));this.hasMutatedConstraints=!!s,s&&(o=q8(s))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},f=Ki(h=>{if(!Ph(h,n,this.currentDirection))return;let m=l&&l[h]||{};o&&(m={min:0,max:0});const g=i?200:1e6,b=i?40:1e7,$={type:"inertia",velocity:r?t[h]:0,bounceStiffness:g,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...a,...m};return this.startAxisValueAnimation(h,$)});return Promise.all(f).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return c1(this.visualElement,t),r.start(Mx(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ki(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ki(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){Ki(n=>{const{drag:r}=this.getProps();if(!Ph(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:s}=i.layout.layoutBox[n];a.set(t[n]-Pn(o,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!_l(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ki(o=>{const s=this.getAxisMotionValue(o);if(s&&this.constraints!==!1){const l=s.get();i[o]=Oie({min:l,max:l},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ki(o=>{if(!Ph(o,t,null))return;const s=this.getAxisMotionValue(o),{min:l,max:f}=this.constraints[o];s.set(Pn(l,f,i[o]))})}addListeners(){if(!this.visualElement.current)return;Nie.set(this.visualElement,this);const t=this.visualElement.current,n=kd(t,"pointerdown",l=>{const{drag:f,dragListener:h=!0}=this.getProps();f&&h&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();_l(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Cn.read(r);const o=Qd(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:f})=>{this.isDragging&&f&&(Ki(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=l[h].translate,m.set(m.get()+l[h].translate))}),this.visualElement.render())});return()=>{o(),n(),a(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=f1,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:s}}}function Ph(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Kie(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class zie extends _s{constructor(t){super(t),this.removeGroupControls=Qi,this.removeListeners=Qi,this.controls=new jie(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Qi}unmount(){this.removeGroupControls(),this.removeListeners()}}const TA=e=>(t,n)=>{e&&Cn.postRender(()=>e(t,n))};class qie extends _s{constructor(){super(...arguments),this.removePointerDownListener=Qi}onPointerDown(t){this.session=new oM(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:aM(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:TA(t),onStart:TA(n),onMove:r,onEnd:(a,o)=>{delete this.session,i&&Cn.postRender(()=>i(a,o))}}}mount(){this.removePointerDownListener=kd(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 Zh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function PA(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const od={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(At.test(e))e=parseFloat(e);else return e;const n=PA(e,t.target.x),r=PA(e,t.target.y);return`${n}% ${r}%`}},Uie={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ws.parse(e);if(i.length>5)return r;const a=ws.createTransformer(e),o=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=l;const f=Pn(s,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=f),typeof i[3+o]=="number"&&(i[3+o]/=f),a(i)}};let dy=!1;class Wie extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;pre(Hie),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),dy&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Zh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:o}=r;return o&&(o.isPresent=a,dy=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||Cn.postRender(()=>{const s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ex.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;dy=!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 uM(e){const[t,n]=sre(),r=I.useContext(V9);return io.jsx(Wie,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(K8),isPresent:t,safeToRemove:n})}const Hie={borderRadius:{...od,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:od,borderTopRightRadius:od,borderBottomLeftRadius:od,borderBottomRightRadius:od,boxShadow:Uie};function Gie(e,t,n){const r=xr(e)?e:_u(e);return r.start(Mx("",r,t,n)),r.animation}const Yie=(e,t)=>e.depth-t.depth;class Zie{constructor(){this.children=[],this.isDirty=!1}add(t){ix(this.children,t),this.isDirty=!0}remove(t){ax(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Yie),this.isDirty=!1,this.children.forEach(t)}}function Xie(e,t){const n=oi.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Wo(r),e(a-t))};return Cn.setup(r,!0),()=>Wo(r)}const lM=["TopLeft","TopRight","BottomLeft","BottomRight"],Qie=lM.length,_A=e=>typeof e=="string"?parseFloat(e):e,BA=e=>typeof e=="number"||At.test(e);function Jie(e,t,n,r,i,a){i?(e.opacity=Pn(0,n.opacity??1,eae(r)),e.opacityExit=Pn(t.opacity??1,0,tae(r))):a&&(e.opacity=Pn(t.opacity??1,n.opacity??1,r));for(let o=0;o<Qie;o++){const s=`border${lM[o]}Radius`;let l=FA(t,s),f=FA(n,s);if(l===void 0&&f===void 0)continue;l||(l=0),f||(f=0),l===0||f===0||BA(l)===BA(f)?(e[s]=Math.max(Pn(_A(l),_A(f),r),0),(no.test(f)||no.test(l))&&(e[s]+="%")):e[s]=f}(t.rotate||n.rotate)&&(e.rotate=Pn(t.rotate||0,n.rotate||0,r))}function FA(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const eae=cM(0,.5,X9),tae=cM(.5,.95,Qi);function cM(e,t,n){return r=>r<e?0:r>t?1:n(Hd(e,t,r))}function kA(e,t){e.min=t.min,e.max=t.max}function Vi(e,t){kA(e.x,t.x),kA(e.y,t.y)}function MA(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function RA(e,t,n,r,i){return e-=t,e=Mp(e,1/n,r),i!==void 0&&(e=Mp(e,1/i,r)),e}function nae(e,t=0,n=1,r=.5,i,a=e,o=e){if(no.test(t)&&(t=parseFloat(t),t=Pn(o.min,o.max,t/100)-o.min),typeof t!="number")return;let s=Pn(a.min,a.max,r);e===a&&(s-=t),e.min=RA(e.min,t,n,s,i),e.max=RA(e.max,t,n,s,i)}function IA(e,t,[n,r,i],a,o){nae(e,t[n],t[r],t[i],t.scale,a,o)}const rae=["x","scaleX","originX"],iae=["y","scaleY","originY"];function OA(e,t,n,r){IA(e.x,t,rae,n?n.x:void 0,r?r.x:void 0),IA(e.y,t,iae,n?n.y:void 0,r?r.y:void 0)}function LA(e){return e.translate===0&&e.scale===1}function dM(e){return LA(e.x)&&LA(e.y)}function VA(e,t){return e.min===t.min&&e.max===t.max}function aae(e,t){return VA(e.x,t.x)&&VA(e.y,t.y)}function NA(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function fM(e,t){return NA(e.x,t.x)&&NA(e.y,t.y)}function jA(e){return Nr(e.x)/Nr(e.y)}function KA(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class oae{constructor(){this.members=[]}add(t){ix(this.members,t),t.scheduleRender()}remove(t){if(ax(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 sae(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:f,rotate:h,rotateX:m,rotateY:g,skewX:b,skewY:$}=n;f&&(r=`perspective(${f}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),g&&(r+=`rotateY(${g}deg) `),b&&(r+=`skewX(${b}deg) `),$&&(r+=`skewY(${$}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const fy=["","X","Y","Z"],uae=1e3;let lae=0;function hy(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function hM(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Q8(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Cn,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&hM(r)}function pM({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},s=t==null?void 0:t()){this.id=lae++,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(fae),this.nodes.forEach(gae),this.nodes.forEach(vae),this.nodes.forEach(hae)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Zie)}addEventListener(o,s){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new sx),this.eventHandlers.get(o).add(s)}notifyListeners(o,...s){const l=this.eventHandlers.get(o);l&&l.notify(...s)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=_8(o)&&!rre(o),this.instance=o;const{layoutId:s,layout:l,visualElement:f}=this.options;if(f&&!f.current&&f.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),e){let h,m=0;const g=()=>this.root.updateBlockedByResize=!1;Cn.read(()=>{m=window.innerWidth}),e(o,()=>{const b=window.innerWidth;b!==m&&(m=b,this.root.updateBlockedByResize=!0,h&&h(),h=Xie(g,250),Zh.hasAnimatedSinceResize&&(Zh.hasAnimatedSinceResize=!1,this.nodes.forEach(UA)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&f&&(s||l)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeLayoutChanged:g,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const $=this.options.transition||f.getDefaultTransition()||$ae,{onLayoutAnimationStart:x,onLayoutAnimationComplete:A}=f.getProps(),w=!this.targetLayout||!fM(this.targetLayout,b),C=!m&&g;if(this.options.layoutRoot||this.resumeFrom||C||m&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const E={...Dx($,"layout"),onPlay:x,onComplete:A};(f.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E),this.setAnimationOrigin(h,C)}else m||UA(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Wo(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(yae),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&hM(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:s,layout:l}=this.options;if(s===void 0&&!l)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(zA);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(qA);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(mae),this.nodes.forEach(cae),this.nodes.forEach(dae)):this.nodes.forEach(qA),this.clearAllSnapshots();const s=oi.now();br.delta=qo(0,1e3/60,s-br.timestamp),br.timestamp=s,br.isProcessing=!0,ty.update.process(br),ty.preRender.process(br),ty.render.process(br),br.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ex.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(pae),this.sharedNodes.forEach(bae)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Cn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Cn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Nr(this.snapshot.measuredBox.x)&&!Nr(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Hn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(s=!1),s&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!dM(this.projectionDelta),l=this.getTransformTemplate(),f=l?l(this.latestValues,""):void 0,h=f!==this.prevTransformTemplateValue;o&&this.instance&&(s||ou(this.latestValues)||h)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return o&&(l=this.removeTransform(l)),Eae(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var f;const{visualElement:o}=this.options;if(!o)return Hn();const s=o.measureViewportBox();if(!(((f=this.scroll)==null?void 0:f.wasRoot)||this.path.some(Cae))){const{scroll:h}=this.root;h&&(Bl(s.x,h.offset.x),Bl(s.y,h.offset.y))}return s}removeElementScroll(o){var l;const s=Hn();if(Vi(s,o),(l=this.scroll)!=null&&l.wasRoot)return s;for(let f=0;f<this.path.length;f++){const h=this.path[f],{scroll:m,options:g}=h;h!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&Vi(s,o),Bl(s.x,m.offset.x),Bl(s.y,m.offset.y))}return s}applyTransform(o,s=!1){const l=Hn();Vi(l,o);for(let f=0;f<this.path.length;f++){const h=this.path[f];!s&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Fl(l,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),ou(h.latestValues)&&Fl(l,h.latestValues)}return ou(this.latestValues)&&Fl(l,this.latestValues),l}removeTransform(o){const s=Hn();Vi(s,o);for(let l=0;l<this.path.length;l++){const f=this.path[l];if(!f.instance||!ou(f.latestValues))continue;o1(f.latestValues)&&f.updateSnapshot();const h=Hn(),m=f.measurePageBox();Vi(h,m),OA(s,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,h)}return ou(this.latestValues)&&OA(s,this.latestValues),s}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.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!==br.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var g;const s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==s;if(!(o||l&&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=br.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Hn(),this.relativeTargetOrigin=Hn(),Rd(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),Vi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Hn(),this.targetWithTransforms=Hn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),_ie(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Vi(this.target,this.layout.layoutBox),W8(this.target,this.targetDelta)):Vi(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=Hn(),this.relativeTargetOrigin=Hn(),Rd(this.relativeTargetOrigin,this.target,b.target),Vi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||o1(this.parent.latestValues)||U8(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 $;const o=this.getLead(),s=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||($=this.parent)!=null&&$.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===br.timestamp&&(l=!1),l)return;const{layout:f,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||h))return;Vi(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;Kre(this.layoutCorrected,this.treeScale,this.path,s),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Hn());const{target:b}=o;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(MA(this.prevProjectionDelta.x,this.projectionDelta.x),MA(this.prevProjectionDelta.y,this.projectionDelta.y)),Md(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!KA(this.projectionDelta.x,this.prevProjectionDelta.x)||!KA(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var s;if((s=this.options.visualElement)==null||s.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=kl(),this.projectionDelta=kl(),this.projectionDeltaWithTransform=kl()}setAnimationOrigin(o,s=!1){const l=this.snapshot,f=l?l.latestValues:{},h={...this.latestValues},m=kl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const g=Hn(),b=l?l.source:void 0,$=this.layout?this.layout.source:void 0,x=b!==$,A=this.getStack(),w=!A||A.members.length<=1,C=!!(x&&!w&&this.options.crossfade===!0&&!this.path.some(Dae));this.animationProgress=0;let E;this.mixTargetDelta=T=>{const P=T/1e3;WA(m.x,o.x,P),WA(m.y,o.y,P),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Rd(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),xae(this.relativeTarget,this.relativeTargetOrigin,g,P),E&&aae(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=Hn()),Vi(E,this.relativeTarget)),x&&(this.animationValues=h,Jie(h,f,this.latestValues,P,C,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var s,l,f;this.notifyListeners("animationStart"),(s=this.currentAnimation)==null||s.stop(),(f=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||f.stop(),this.pendingAnimation&&(Wo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Cn.update(()=>{Zh.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=_u(0)),this.currentAnimation=Gie(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),o.onUpdate&&o.onUpdate(h)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(uae),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:s,target:l,layout:f,latestValues:h}=o;if(!(!s||!l||!f)){if(this!==o&&this.layout&&f&&mM(this.options.animationType,this.layout.layoutBox,f.layoutBox)){l=this.target||Hn();const m=Nr(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+m;const g=Nr(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+g}Vi(s,l),Fl(s,h),Md(this.projectionDeltaWithTransform,this.layoutCorrected,s,h)}}registerSharedNode(o,s){this.sharedNodes.has(o)||this.sharedNodes.set(o,new oae),this.sharedNodes.get(o).add(s);const f=s.options.initialPromotionConfig;s.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(s):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var s;const{layoutId:o}=this.options;return o?((s=this.getStack())==null?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:o}=this.options;return o?(s=this.getStack())==null?void 0:s.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:s,preserveFollowOpacity:l}={}){const f=this.getStack();f&&f.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let s=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const f={};l.z&&hy("z",o,f,this.animationValues);for(let h=0;h<fy.length;h++)hy(`rotate${fy[h]}`,o,f,this.animationValues),hy(`skew${fy[h]}`,o,f,this.animationValues);o.render();for(const h in f)o.setStaticValue(h,f[h]),this.animationValues&&(this.animationValues[h]=f[h]);o.scheduleRender()}applyProjectionStyles(o,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Yh(s==null?void 0:s.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Yh(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!ou(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const h=f.animationValues||f.latestValues;this.applyTransformsToTarget();let m=sae(this.projectionDeltaWithTransform,this.treeScale,h);l&&(m=l(h,m)),o.transform=m;const{x:g,y:b}=this.projectionDelta;o.transformOrigin=`${g.origin*100}% ${b.origin*100}% 0`,f.animationValues?o.opacity=f===this?h.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:o.opacity=f===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const $ in Xd){if(h[$]===void 0)continue;const{correct:x,applyTo:A,isCSSVariable:w}=Xd[$],C=m==="none"?h[$]:x(h[$],f);if(A){const E=A.length;for(let T=0;T<E;T++)o[A[T]]=C}else w?this.options.visualElement.renderState.vars[$]=C:o[$]=C}this.options.layoutId&&(o.pointerEvents=f===this?Yh(s==null?void 0:s.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var s;return(s=o.currentAnimation)==null?void 0:s.stop()}),this.root.nodes.forEach(zA),this.root.sharedNodes.clear()}}}function cae(e){e.updateLayout()}function dae(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,o=t.source!==e.layout.source;a==="size"?Ki(m=>{const g=o?t.measuredBox[m]:t.layoutBox[m],b=Nr(g);g.min=r[m].min,g.max=g.min+b}):mM(a,t.layoutBox,r)&&Ki(m=>{const g=o?t.measuredBox[m]:t.layoutBox[m],b=Nr(r[m]);g.max=g.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const s=kl();Md(s,r,t.layoutBox);const l=kl();o?Md(l,e.applyTransform(i,!0),t.measuredBox):Md(l,r,t.layoutBox);const f=!dM(s);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:b}=m;if(g&&b){const $=Hn();Rd($,t.layoutBox,g.layoutBox);const x=Hn();Rd(x,r,b.layoutBox),fM($,x)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=$,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:s,hasLayoutChanged:f,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function fae(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 hae(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function pae(e){e.clearSnapshot()}function zA(e){e.clearMeasurements()}function qA(e){e.isLayoutDirty=!1}function mae(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function UA(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function gae(e){e.resolveTargetDelta()}function vae(e){e.calcProjection()}function yae(e){e.resetSkewAndRotation()}function bae(e){e.removeLeadSnapshot()}function WA(e,t,n){e.translate=Pn(t.translate,0,n),e.scale=Pn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function HA(e,t,n,r){e.min=Pn(t.min,n.min,r),e.max=Pn(t.max,n.max,r)}function xae(e,t,n,r){HA(e.x,t.x,n.x,r),HA(e.y,t.y,n.y,r)}function Dae(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const $ae={duration:.45,ease:[.4,0,.1,1]},GA=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),YA=GA("applewebkit/")&&!GA("chrome/")?Math.round:Qi;function ZA(e){e.min=YA(e.min),e.max=YA(e.max)}function Eae(e){ZA(e.x),ZA(e.y)}function mM(e,t,n){return e==="position"||e==="preserve-aspect"&&!Pie(jA(t),jA(n),.2)}function Cae(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const wae=pM({attachResizeListener:(e,t)=>Qd(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),py={current:void 0},gM=pM({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!py.current){const e=new wae({});e.mount(window),e.setOptions({layoutScroll:!0}),py.current=e}return py.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Aae={pan:{Feature:qie},drag:{Feature:zie,ProjectionNode:gM,MeasureLayout:uM}};function XA(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&&Cn.postRender(()=>a(t,wf(t)))}let Sae=class extends _s{mount(){const{current:t}=this.node;t&&(this.unmount=Qne(t,(n,r)=>(XA(this.node,r,"Start"),i=>XA(this.node,i,"End"))))}unmount(){}},Tae=class extends _s{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=$f(Qd(this.node.current,"focus",()=>this.onFocus()),Qd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function QA(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&&Cn.postRender(()=>a(t,wf(t)))}let Pae=class extends _s{mount(){const{current:t}=this.node;t&&(this.unmount=nre(t,(n,r)=>(QA(this.node,r,"Start"),(i,{success:a})=>QA(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const h1=new WeakMap,my=new WeakMap,_ae=e=>{const t=h1.get(e.target);t&&t(e)},Bae=e=>{e.forEach(_ae)};function Fae({root:e,...t}){const n=e||document;my.has(n)||my.set(n,{});const r=my.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Bae,{root:e,...t})),r[i]}function kae(e,t,n){const r=Fae(t);return h1.set(e,n),r.observe(e),()=>{h1.delete(e),r.unobserve(e)}}const Mae={some:0,all:1};let Rae=class extends _s{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,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Mae[i]},s=l=>{const{isIntersecting:f}=l;if(this.isInView===f||(this.isInView=f,a&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=f?h:m;g&&g(l)};return kae(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Iae(t,n))&&this.startObserver()}unmount(){}};function Iae({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Oae={inView:{Feature:Rae},tap:{Feature:Pae},focus:{Feature:Tae},hover:{Feature:Sae}},Lae={layout:{ProjectionNode:gM,MeasureLayout:uM}},Vae={...Eie,...Oae,...Aae,...Lae},vM=Vre(Vae,Qre);function yM(e){const t=Df(()=>_u(e)),{isStatic:n}=I.useContext(wx);if(n){const[,r]=I.useState(e);I.useEffect(()=>t.on("change",r),[])}return t}function bM(e,t){const n=yM(t()),r=()=>n.set(t());return r(),N9(()=>{const i=()=>Cn.preRender(r,!1,!0),a=e.map(o=>o.on("change",i));return()=>{a.forEach(o=>o()),Wo(r)}}),n}function Nae(e){Fd.current=[],e();const t=bM(Fd.current,e);return Fd.current=void 0,t}function jae(e,t,n,r){if(typeof e=="function")return Nae(e);const i=typeof t=="function"?t:ire(t,n,r);return Array.isArray(e)?JA(e,i):JA([e],([a])=>i(a))}function JA(e,t){const n=Df(()=>[]);return bM(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const xM=I.createContext(null);function Kae(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,o=e[i+a];if(!o)return e;const s=e[i],l=o.layout,f=Pn(l.min,l.max,.5);return a===1&&s.layout.max+n>f||a===-1&&s.layout.min+n<f?lte(e,i,i+a):e}function zae({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...a},o){const s=Df(()=>vM[t]),l=[],f=I.useRef(!1);Ca(!!i,"Reorder.Group must be provided a values prop","reorder-values");const h={axis:n,registerItem:(m,g)=>{const b=l.findIndex($=>m===$.value);b!==-1?l[b].layout=g[n]:l.push({value:m,layout:g[n]}),l.sort(Wae)},updateOrder:(m,g,b)=>{if(f.current)return;const $=Kae(l,m,g,b);l!==$&&(f.current=!0,r($.map(Uae).filter(x=>i.indexOf(x)!==-1)))}};return I.useEffect(()=>{f.current=!1}),io.jsx(s,{...a,ref:o,ignoreStrict:!0,children:io.jsx(xM.Provider,{value:h,children:e})})}const qae=I.forwardRef(zae);function Uae(e){return e.value}function Wae(e,t){return e.layout.min-t.layout.min}function eS(e,t=0){return xr(e)?e:yM(t)}function Hae({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:a=!0,...o},s){const l=Df(()=>vM[r]),f=I.useContext(xM),h={x:eS(t.x),y:eS(t.y)},m=jae([h.x,h.y],([x,A])=>x||A?1:"unset");Ca(!!f,"Reorder.Item must be a child of Reorder.Group","reorder-item-child");const{axis:g,registerItem:b,updateOrder:$}=f;return io.jsx(l,{drag:g,...o,dragSnapToOrigin:!0,style:{...t,x:h.x,y:h.y,zIndex:m},layout:a,onDrag:(x,A)=>{const{velocity:w}=A;w[g]&&$(n,h[g].get(),w[g]),i&&i(x,A)},onLayoutMeasure:x=>b(n,x),ref:s,ignoreStrict:!0,children:e})}const Gae=I.forwardRef(Hae);var Xh={exports:{}},Yae=Xh.exports,tS;function Zae(){return tS||(tS=1,function(e,t){(function(n,r){e.exports=r()})(Yae,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 o=i.prototype,s=o.format;a.en.formats=n,o.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var f=this.$locale().formats,h=function(m,g){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,$,x){var A=x&&x.toUpperCase();return $||g[x]||n[x]||g[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(w,C,E){return C||E.slice(1)})})}(l,f===void 0?{}:f);return s.call(this,h)}}})}(Xh)),Xh.exports}var Xae=Zae();const Qae=ar(Xae);var gy,nS;function Jae(){if(nS)return gy;nS=1;var e=FT(),t=kT(),n=ab(),r=Aa(),i=om(),a=im(),o=_T(),s=am(),l="[object Map]",f="[object Set]",h=Object.prototype,m=h.hasOwnProperty;function g(b){if(b==null)return!0;if(i(b)&&(r(b)||typeof b=="string"||typeof b.splice=="function"||a(b)||s(b)||n(b)))return!b.length;var $=t(b);if($==l||$==f)return!b.size;if(o(b))return!e(b).length;for(var x in b)if(m.call(b,x))return!1;return!0}return gy=g,gy}var eoe=Jae();const toe=ar(eoe);var vy,rS;function noe(){if(rS)return vy;rS=1;var e=Math.floor,t=Math.random;function n(r,i){return r+e(t()*(i-r+1))}return vy=n,vy}var yy,iS;function roe(){if(iS)return yy;iS=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return yy=t,yy}var by,aS;function ioe(){if(aS)return by;aS=1;var e=roe(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return by=n,by}var xy,oS;function aoe(){if(oS)return xy;oS=1;var e=ioe(),t=Ru(),n=Wp(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function l(f){if(typeof f=="number")return f;if(n(f))return r;if(t(f)){var h=typeof f.valueOf=="function"?f.valueOf():f;f=t(h)?h+"":h}if(typeof f!="string")return f===0?f:+f;f=e(f);var m=a.test(f);return m||o.test(f)?s(f.slice(2),m?2:8):i.test(f)?r:+f}return xy=l,xy}var Dy,sS;function ooe(){if(sS)return Dy;sS=1;var e=aoe(),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 Dy=r,Dy}var $y,uS;function soe(){if(uS)return $y;uS=1;var e=noe(),t=NT(),n=ooe(),r=parseFloat,i=Math.min,a=Math.random;function o(s,l,f){if(f&&typeof f!="boolean"&&t(s,l,f)&&(l=f=void 0),f===void 0&&(typeof l=="boolean"?(f=l,l=void 0):typeof s=="boolean"&&(f=s,s=void 0)),s===void 0&&l===void 0?(s=0,l=1):(s=n(s),l===void 0?(l=s,s=0):l=n(l)),s>l){var h=s;s=l,l=h}if(f||s%1||l%1){var m=a();return i(s+m*(l-s+r("1e-"+((m+"").length-1))),l)}return e(s,l)}return $y=o,$y}var uoe=soe();const loe=ar(uoe);var Ey,lS;function coe(){if(lS)return Ey;lS=1;var e=R9();function t(n){return e(n)&&n!=+n}return Ey=t,Ey}var doe=coe();const foe=ar(doe),cS=(e,t,n)=>{if(e&&"reportValidity"in e){const r=it(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},DM=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?cS(r.ref,n,e):r&&r.refs&&r.refs.forEach(i=>cS(i,n,e))}},hoe=(e,t)=>{t.shouldUseNativeValidation&&DM(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(poe(t.names||Object.keys(e),r)){const o=Object.assign({},it(n,r));nn(o,"root",a),nn(n,r,o)}else nn(n,r,a)}return n},poe=(e,t)=>{const n=dS(t);return e.some(r=>dS(r).match(`^${n}\\.\\d+`))};function dS(e){return e.replace(/\]|\[/g,"")}function moe(e,t,n){return n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(o,s){try{var l=(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(f){return a.shouldUseNativeValidation&&DM({},a),{values:n.raw?Object.assign({},r):f,errors:{}}}))}catch(f){return s(f)}return l&&l.then?l.then(void 0,s):l}(0,function(o){if(!o.inner)throw o;return{values:{},errors:hoe((s=o,l=!a.shouldUseNativeValidation&&a.criteriaMode==="all",(s.inner||[]).reduce(function(f,h){if(f[h.path]||(f[h.path]={message:h.message,type:h.type}),l){var m=f[h.path].types,g=m&&m[h.type];f[h.path]=gP(h.path,l,f,h.type,g?[].concat(g,h.message):h.message)}return f},{})),a)};var s,l}))}catch(o){return Promise.reject(o)}}}var $d={exports:{}},goe=$d.exports,fS;function voe(){return fS||(fS=1,function(e,t){(function(n,r){r(t,de.default)})(goe,function(n,r){function i(z){return z&&typeof z=="object"&&"default"in z?z:{default:z}}var a=i(r),o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Hi<"u"?Hi:typeof self<"u"?self:{},s={exports:{}};(function(z,G){typeof document<"u"&&typeof navigator<"u"&&function(V,R){z.exports=R()}(o,function(){var V="http://www.w3.org/2000/svg",R="",K=!1,fe=-999999,M=function(p){K=!!p},oe=function(){return K},le=function(p){R=p},Se=function(){return R};function _e(c){return document.createElement(c)}function Be(c,p){var v,D=c.length,_;for(v=0;v<D;v+=1){_=c[v].prototype;for(var B in _)Object.prototype.hasOwnProperty.call(_,B)&&(p.prototype[B]=_[B])}}function Ge(c){function p(){}return p.prototype=c,p}var Xe=function(){function c(p){this.audios=[],this.audioFactory=p,this._volume=1,this._isMuted=!1}return c.prototype={addAudio:function(v){this.audios.push(v)},pause:function(){var v,D=this.audios.length;for(v=0;v<D;v+=1)this.audios[v].pause()},resume:function(){var v,D=this.audios.length;for(v=0;v<D;v+=1)this.audios[v].resume()},setRate:function(v){var D,_=this.audios.length;for(D=0;D<_;D+=1)this.audios[D].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,D=this.audios.length;for(v=0;v<D;v+=1)this.audios[v].volume(this._volume*(this._isMuted?0:1))}},function(){return new c}}(),Ne=function(){function c(v,D){var _=0,B=[],U;switch(v){case"int16":case"uint8c":U=1;break;default:U=1.1;break}for(_=0;_<D;_+=1)B.push(U);return B}function p(v,D){return v==="float32"?new Float32Array(D):v==="int16"?new Int16Array(D):v==="uint8c"?new Uint8ClampedArray(D):c(v,D)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?p:c}();function qe(c){return Array.apply(null,{length:c})}var ke=!0,je=null,Te="",Ye=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),ht=Math.pow,Ht=Math.sqrt,xt=Math.floor,_t=Math.min,Wr=150,Jt=Math.PI/180,xe=.5519;function Ae(c,p,v,D){this.type=c,this.currentTime=p,this.totalTime=v,this.direction=D<0?-1:1}function Fe(c,p){this.type=c,this.direction=p<0?-1:1}function Qe(c,p,v,D){this.type=c,this.currentLoop=v,this.totalLoops=p,this.direction=D<0?-1:1}function et(c,p,v){this.type=c,this.firstFrame=p,this.totalFrames=v}function Je(c,p){this.type=c,this.target=p}function gt(c,p){this.type="renderFrameError",this.nativeError=c,this.currentTime=p}function kt(c){this.type="configError",this.nativeError=c}var Dt=function(){var c=0;return function(){return c+=1,Te+"__lottie_element_"+c}}();function bn(c,p,v){var D,_,B,U,ge,J,De,Ce;switch(U=Math.floor(c*6),ge=c*6-U,J=v*(1-p),De=v*(1-ge*p),Ce=v*(1-(1-ge)*p),U%6){case 0:D=v,_=Ce,B=J;break;case 1:D=De,_=v,B=J;break;case 2:D=J,_=v,B=Ce;break;case 3:D=J,_=De,B=v;break;case 4:D=Ce,_=J,B=v;break;case 5:D=v,_=J,B=De;break}return[D,_,B]}function Dr(c,p,v){var D=Math.max(c,p,v),_=Math.min(c,p,v),B=D-_,U,ge=D===0?0:B/D,J=D/255;switch(D){case _:U=0;break;case c:U=p-v+B*(p<v?6:0),U/=6*B;break;case p:U=v-c+B*2,U/=6*B;break;case v:U=c-p+B*4,U/=6*B;break}return[U,ge,J]}function zt(c,p){var v=Dr(c[0]*255,c[1]*255,c[2]*255);return v[1]+=p,v[1]>1?v[1]=1:v[1]<=0&&(v[1]=0),bn(v[0],v[1],v[2])}function Pt(c,p){var v=Dr(c[0]*255,c[1]*255,c[2]*255);return v[2]+=p,v[2]>1?v[2]=1:v[2]<0&&(v[2]=0),bn(v[0],v[1],v[2])}function It(c,p){var v=Dr(c[0]*255,c[1]*255,c[2]*255);return v[0]+=p/360,v[0]>1?v[0]-=1:v[0]<0&&(v[0]+=1),bn(v[0],v[1],v[2])}(function(){var c=[],p,v;for(p=0;p<256;p+=1)v=p.toString(16),c[p]=v.length===1?"0"+v:v;return function(D,_,B){return D<0&&(D=0),_<0&&(_=0),B<0&&(B=0),"#"+c[D]+c[_]+c[B]}})();var qt=function(p){ke=!!p},pr=function(){return ke},Hr=function(p){je=p},li=function(){return je},Br=function(p){Wr=p},Ba=function(){return Wr},Bs=function(p){Te=p};function bt(c){return document.createElementNS(V,c)}function ci(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ci=function(v){return typeof v}:ci=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},ci(c)}var uo=function(){var c=1,p=[],v,D,_={onmessage:function(){},postMessage:function(ee){v({data:ee})}},B={postMessage:function(ee){_.onmessage({data:ee})}};function U(k){if(window.Worker&&window.Blob&&oe()){var ee=new Blob(["var _workerSelf = self; self.onmessage = ",k.toString()],{type:"text/javascript"}),Y=URL.createObjectURL(ee);return new Worker(Y)}return v=k,_}function ge(){D||(D=U(function(ee){function Y(){function he(Le,$e){var ce,Q,ve=Le.length,Ke,Ie,lt,St;for(Q=0;Q<ve;Q+=1)if(ce=Le[Q],"ks"in ce&&!ce.completed){if(ce.completed=!0,ce.hasMask){var Et=ce.masksProperties;for(Ie=Et.length,Ke=0;Ke<Ie;Ke+=1)if(Et[Ke].pt.k.i)H(Et[Ke].pt.k);else for(St=Et[Ke].pt.k.length,lt=0;lt<St;lt+=1)Et[Ke].pt.k[lt].s&&H(Et[Ke].pt.k[lt].s[0]),Et[Ke].pt.k[lt].e&&H(Et[Ke].pt.k[lt].e[0])}ce.ty===0?(ce.layers=L(ce.refId,$e),he(ce.layers,$e)):ce.ty===4?j(ce.shapes):ce.ty===5&&st(ce)}}function W(Le,$e){if(Le){var ce=0,Q=Le.length;for(ce=0;ce<Q;ce+=1)Le[ce].t===1&&(Le[ce].data.layers=L(Le[ce].data.refId,$e),he(Le[ce].data.layers,$e))}}function Z(Le,$e){for(var ce=0,Q=$e.length;ce<Q;){if($e[ce].id===Le)return $e[ce];ce+=1}return null}function L(Le,$e){var ce=Z(Le,$e);return ce?ce.layers.__used?JSON.parse(JSON.stringify(ce.layers)):(ce.layers.__used=!0,ce.layers):null}function j(Le){var $e,ce=Le.length,Q,ve;for($e=ce-1;$e>=0;$e-=1)if(Le[$e].ty==="sh")if(Le[$e].ks.k.i)H(Le[$e].ks.k);else for(ve=Le[$e].ks.k.length,Q=0;Q<ve;Q+=1)Le[$e].ks.k[Q].s&&H(Le[$e].ks.k[Q].s[0]),Le[$e].ks.k[Q].e&&H(Le[$e].ks.k[Q].e[0]);else Le[$e].ty==="gr"&&j(Le[$e].it)}function H(Le){var $e,ce=Le.i.length;for($e=0;$e<ce;$e+=1)Le.i[$e][0]+=Le.v[$e][0],Le.i[$e][1]+=Le.v[$e][1],Le.o[$e][0]+=Le.v[$e][0],Le.o[$e][1]+=Le.v[$e][1]}function ne(Le,$e){var ce=$e?$e.split("."):[100,100,100];return Le[0]>ce[0]?!0:ce[0]>Le[0]?!1:Le[1]>ce[1]?!0:ce[1]>Le[1]?!1:Le[2]>ce[2]?!0:ce[2]>Le[2]?!1:null}var ue=function(){var Le=[4,4,14];function $e(Q){var ve=Q.t.d;Q.t.d={k:[{s:ve,t:0}]}}function ce(Q){var ve,Ke=Q.length;for(ve=0;ve<Ke;ve+=1)Q[ve].ty===5&&$e(Q[ve])}return function(Q){if(ne(Le,Q.v)&&(ce(Q.layers),Q.assets)){var ve,Ke=Q.assets.length;for(ve=0;ve<Ke;ve+=1)Q.assets[ve].layers&&ce(Q.assets[ve].layers)}}}(),me=function(){var Le=[4,7,99];return function($e){if($e.chars&&!ne(Le,$e.v)){var ce,Q=$e.chars.length;for(ce=0;ce<Q;ce+=1){var ve=$e.chars[ce];ve.data&&ve.data.shapes&&(j(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}},$e.chars[ce].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 Le=[5,7,15];function $e(Q){var ve=Q.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 ce(Q){var ve,Ke=Q.length;for(ve=0;ve<Ke;ve+=1)Q[ve].ty===5&&$e(Q[ve])}return function(Q){if(ne(Le,Q.v)&&(ce(Q.layers),Q.assets)){var ve,Ke=Q.assets.length;for(ve=0;ve<Ke;ve+=1)Q.assets[ve].layers&&ce(Q.assets[ve].layers)}}}(),nt=function(){var Le=[4,1,9];function $e(Q){var ve,Ke=Q.length,Ie,lt;for(ve=0;ve<Ke;ve+=1)if(Q[ve].ty==="gr")$e(Q[ve].it);else if(Q[ve].ty==="fl"||Q[ve].ty==="st")if(Q[ve].c.k&&Q[ve].c.k[0].i)for(lt=Q[ve].c.k.length,Ie=0;Ie<lt;Ie+=1)Q[ve].c.k[Ie].s&&(Q[ve].c.k[Ie].s[0]/=255,Q[ve].c.k[Ie].s[1]/=255,Q[ve].c.k[Ie].s[2]/=255,Q[ve].c.k[Ie].s[3]/=255),Q[ve].c.k[Ie].e&&(Q[ve].c.k[Ie].e[0]/=255,Q[ve].c.k[Ie].e[1]/=255,Q[ve].c.k[Ie].e[2]/=255,Q[ve].c.k[Ie].e[3]/=255);else Q[ve].c.k[0]/=255,Q[ve].c.k[1]/=255,Q[ve].c.k[2]/=255,Q[ve].c.k[3]/=255}function ce(Q){var ve,Ke=Q.length;for(ve=0;ve<Ke;ve+=1)Q[ve].ty===4&&$e(Q[ve].shapes)}return function(Q){if(ne(Le,Q.v)&&(ce(Q.layers),Q.assets)){var ve,Ke=Q.assets.length;for(ve=0;ve<Ke;ve+=1)Q.assets[ve].layers&&ce(Q.assets[ve].layers)}}}(),tt=function(){var Le=[4,4,18];function $e(Q){var ve,Ke=Q.length,Ie,lt;for(ve=Ke-1;ve>=0;ve-=1)if(Q[ve].ty==="sh")if(Q[ve].ks.k.i)Q[ve].ks.k.c=Q[ve].closed;else for(lt=Q[ve].ks.k.length,Ie=0;Ie<lt;Ie+=1)Q[ve].ks.k[Ie].s&&(Q[ve].ks.k[Ie].s[0].c=Q[ve].closed),Q[ve].ks.k[Ie].e&&(Q[ve].ks.k[Ie].e[0].c=Q[ve].closed);else Q[ve].ty==="gr"&&$e(Q[ve].it)}function ce(Q){var ve,Ke,Ie=Q.length,lt,St,Et,Dn;for(Ke=0;Ke<Ie;Ke+=1){if(ve=Q[Ke],ve.hasMask){var Ut=ve.masksProperties;for(St=Ut.length,lt=0;lt<St;lt+=1)if(Ut[lt].pt.k.i)Ut[lt].pt.k.c=Ut[lt].cl;else for(Dn=Ut[lt].pt.k.length,Et=0;Et<Dn;Et+=1)Ut[lt].pt.k[Et].s&&(Ut[lt].pt.k[Et].s[0].c=Ut[lt].cl),Ut[lt].pt.k[Et].e&&(Ut[lt].pt.k[Et].e[0].c=Ut[lt].cl)}ve.ty===4&&$e(ve.shapes)}}return function(Q){if(ne(Le,Q.v)&&(ce(Q.layers),Q.assets)){var ve,Ke=Q.assets.length;for(ve=0;ve<Ke;ve+=1)Q.assets[ve].layers&&ce(Q.assets[ve].layers)}}}();function Ve(Le){Le.__complete||(nt(Le),ue(Le),me(Le),Oe(Le),tt(Le),he(Le.layers,Le.assets),W(Le.chars,Le.assets),Le.__complete=!0)}function st(Le){Le.t.a.length===0&&"m"in Le.t.p}var ct={};return ct.completeData=Ve,ct.checkColors=nt,ct.checkChars=me,ct.checkPathProperties=Oe,ct.checkShapes=tt,ct.completeLayers=he,ct}if(B.dataManager||(B.dataManager=Y()),B.assetLoader||(B.assetLoader=function(){function he(Z){var L=Z.getResponseHeader("content-type");return L&&Z.responseType==="json"&&L.indexOf("json")!==-1||Z.response&&ci(Z.response)==="object"?Z.response:Z.response&&typeof Z.response=="string"?JSON.parse(Z.response):Z.responseText?JSON.parse(Z.responseText):null}function W(Z,L,j,H){var ne,ue=new XMLHttpRequest;try{ue.responseType="json"}catch{}ue.onreadystatechange=function(){if(ue.readyState===4)if(ue.status===200)ne=he(ue),j(ne);else try{ne=he(ue),j(ne)}catch(me){H&&H(me)}};try{ue.open(["G","E","T"].join(""),Z,!0)}catch{ue.open(["G","E","T"].join(""),L+"/"+Z,!0)}ue.send()}return{load:W}}()),ee.data.type==="loadAnimation")B.assetLoader.load(ee.data.path,ee.data.fullPath,function(he){B.dataManager.completeData(he),B.postMessage({id:ee.data.id,payload:he,status:"success"})},function(){B.postMessage({id:ee.data.id,status:"error"})});else if(ee.data.type==="complete"){var pe=ee.data.animation;B.dataManager.completeData(pe),B.postMessage({id:ee.data.id,payload:pe,status:"success"})}else ee.data.type==="loadData"&&B.assetLoader.load(ee.data.path,ee.data.fullPath,function(he){B.postMessage({id:ee.data.id,payload:he,status:"success"})},function(){B.postMessage({id:ee.data.id,status:"error"})})}),D.onmessage=function(k){var ee=k.data,Y=ee.id,pe=p[Y];p[Y]=null,ee.status==="success"?pe.onComplete(ee.payload):pe.onError&&pe.onError()})}function J(k,ee){c+=1;var Y="processId_"+c;return p[Y]={onComplete:k,onError:ee},Y}function De(k,ee,Y){ge();var pe=J(ee,Y);D.postMessage({type:"loadAnimation",path:k,fullPath:window.location.origin+window.location.pathname,id:pe})}function Ce(k,ee,Y){ge();var pe=J(ee,Y);D.postMessage({type:"loadData",path:k,fullPath:window.location.origin+window.location.pathname,id:pe})}function Re(k,ee,Y){ge();var pe=J(ee,Y);D.postMessage({type:"complete",animation:k,id:pe})}return{loadAnimation:De,loadData:Ce,completeAnimation:Re}}(),Sc=function(){var c=function(){var W=_e("canvas");W.width=1,W.height=1;var Z=W.getContext("2d");return Z.fillStyle="rgba(0,0,0,0)",Z.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 D(W,Z,L){var j="";if(W.e)j=W.p;else if(Z){var H=W.p;H.indexOf("images/")!==-1&&(H=H.split("/")[1]),j=Z+H}else j=L,j+=W.u?W.u:"",j+=W.p;return j}function _(W){var Z=0,L=setInterval((function(){var j=W.getBBox();(j.width||Z>500)&&(this._imageLoaded(),clearInterval(L)),Z+=1}).bind(this),50)}function B(W){var Z=D(W,this.assetsPath,this.path),L=bt("image");Ye?this.testImageLoaded(L):L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){j.img=c,this._imageLoaded()}).bind(this),!1),L.setAttributeNS("http://www.w3.org/1999/xlink","href",Z),this._elementHelper.append?this._elementHelper.append(L):this._elementHelper.appendChild(L);var j={img:L,assetData:W};return j}function U(W){var Z=D(W,this.assetsPath,this.path),L=_e("img");L.crossOrigin="anonymous",L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){j.img=c,this._imageLoaded()}).bind(this),!1),L.src=Z;var j={img:L,assetData:W};return j}function ge(W){var Z={assetData:W},L=D(W,this.assetsPath,this.path);return uo.loadData(L,(function(j){Z.img=j,this._footageLoaded()}).bind(this),(function(){Z.img={},this._footageLoaded()}).bind(this)),Z}function J(W,Z){this.imagesLoadedCb=Z;var L,j=W.length;for(L=0;L<j;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 De(W){this.path=W||""}function Ce(W){this.assetsPath=W||""}function Re(W){for(var Z=0,L=this.images.length;Z<L;){if(this.images[Z].assetData===W)return this.images[Z].img;Z+=1}return null}function k(){this.imagesLoadedCb=null,this.images.length=0}function ee(){return this.totalImages===this.loadedAssets}function Y(){return this.totalFootages===this.loadedFootagesCount}function pe(W,Z){W==="svg"?(this._elementHelper=Z,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function he(){this._imageLoaded=p.bind(this),this._footageLoaded=v.bind(this),this.testImageLoaded=_.bind(this),this.createFootageData=ge.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return he.prototype={loadAssets:J,setAssetsPath:Ce,setPath:De,loadedImages:ee,loadedFootages:Y,destroy:k,getAsset:Re,createImgData:U,createImageData:B,imageLoaded:p,footageLoaded:v,setCacheType:pe},he}();function Nu(){}Nu.prototype={triggerEvent:function(p,v){if(this._cbs[p])for(var D=this._cbs[p],_=0;_<D.length;_+=1)D[_](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 D=0,_=this._cbs[p].length;D<_;)this._cbs[p][D]===v&&(this._cbs[p].splice(D,1),D-=1,_-=1),D+=1;this._cbs[p].length||(this._cbs[p]=null)}}};var Tc=function(){function c(p){for(var v=p.split(`\r
|
|
85
|
-
`),D={},_,B=0,U=0;U<v.length;U+=1)_=v[U].split(":"),_.length===2&&(D[_[0]]=_[1].trim(),B+=1);if(B===0)throw new Error;return D}return function(p){for(var v=[],D=0;D<p.length;D+=1){var _=p[D],B={time:_.tm,duration:_.dr};try{B.payload=JSON.parse(p[D].cm)}catch{try{B.payload=c(p[D].cm)}catch{B.payload={name:p[D].cm}}}v.push(B)}return v}}(),ju=function(){function c(p){this.compositions.push(p)}return function(){function p(v){for(var D=0,_=this.compositions.length;D<_;){if(this.compositions[D].data&&this.compositions[D].data.nm===v)return this.compositions[D].prepareFrame&&this.compositions[D].data.xt&&this.compositions[D].prepareFrame(this.currentFrame),this.compositions[D].compInterface;D+=1}return null}return p.compositions=[],p.currentFrame=0,p.registerComposition=c,p}}(),Fs={},Ku=function(p,v){Fs[p]=v};function ta(c){return Fs[c]}function na(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?na=function(v){return typeof v}:na=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},na(c)}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=Dt(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=pr(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ju(),this.imagePreloader=new Sc,this.audioController=Xe(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Ae("drawnFrame",0,0,0)};Be([Nu],yt),yt.prototype.setParams=function(c){(c.wrapper||c.container)&&(this.wrapper=c.wrapper||c.container);var p="svg";c.animType?p=c.animType:c.renderer&&(p=c.renderer);var v=ta(p);this.renderer=new v(this,c.rendererSettings),this.imagePreloader.setCacheType(p,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=p,c.loop===""||c.loop===null||c.loop===void 0||c.loop===!0?this.loop=!0:c.loop===!1?this.loop=!1:this.loop=parseInt(c.loop,10),this.autoplay="autoplay"in c?c.autoplay:!0,this.name=c.name?c.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(c,"autoloadSegments")?c.autoloadSegments:!0,this.assetsPath=c.assetsPath,this.initialSegment=c.initialSegment,c.audioFactory&&this.audioController.setAudioFactory(c.audioFactory),c.animationData?this.setupAnimation(c.animationData):c.path&&(c.path.lastIndexOf("\\")!==-1?this.path=c.path.substr(0,c.path.lastIndexOf("\\")+1):this.path=c.path.substr(0,c.path.lastIndexOf("/")+1),this.fileName=c.path.substr(c.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),uo.loadAnimation(c.path,this.configAnimation,this.onSetupError))},yt.prototype.onSetupError=function(){this.trigger("data_failed")},yt.prototype.setupAnimation=function(c){uo.completeAnimation(c,this.configAnimation)},yt.prototype.setData=function(c,p){p&&na(p)!=="object"&&(p=JSON.parse(p));var v={wrapper:c,animationData:p},D=c.attributes;v.path=D.getNamedItem("data-animation-path")?D.getNamedItem("data-animation-path").value:D.getNamedItem("data-bm-path")?D.getNamedItem("data-bm-path").value:D.getNamedItem("bm-path")?D.getNamedItem("bm-path").value:"",v.animType=D.getNamedItem("data-anim-type")?D.getNamedItem("data-anim-type").value:D.getNamedItem("data-bm-type")?D.getNamedItem("data-bm-type").value:D.getNamedItem("bm-type")?D.getNamedItem("bm-type").value:D.getNamedItem("data-bm-renderer")?D.getNamedItem("data-bm-renderer").value:D.getNamedItem("bm-renderer")?D.getNamedItem("bm-renderer").value:"canvas";var _=D.getNamedItem("data-anim-loop")?D.getNamedItem("data-anim-loop").value:D.getNamedItem("data-bm-loop")?D.getNamedItem("data-bm-loop").value:D.getNamedItem("bm-loop")?D.getNamedItem("bm-loop").value:"";_==="false"?v.loop=!1:_==="true"?v.loop=!0:_!==""&&(v.loop=parseInt(_,10));var B=D.getNamedItem("data-anim-autoplay")?D.getNamedItem("data-anim-autoplay").value:D.getNamedItem("data-bm-autoplay")?D.getNamedItem("data-bm-autoplay").value:D.getNamedItem("bm-autoplay")?D.getNamedItem("bm-autoplay").value:!0;v.autoplay=B!=="false",v.name=D.getNamedItem("data-name")?D.getNamedItem("data-name").value:D.getNamedItem("data-bm-name")?D.getNamedItem("data-bm-name").value:D.getNamedItem("bm-name")?D.getNamedItem("bm-name").value:"";var U=D.getNamedItem("data-anim-prerender")?D.getNamedItem("data-anim-prerender").value:D.getNamedItem("data-bm-prerender")?D.getNamedItem("data-bm-prerender").value:D.getNamedItem("bm-prerender")?D.getNamedItem("bm-prerender").value:"";U==="false"&&(v.prerender=!1),this.setParams(v)},yt.prototype.includeLayers=function(c){c.op>this.animationData.op&&(this.animationData.op=c.op,this.totalFrames=Math.floor(c.op-this.animationData.ip));var p=this.animationData.layers,v,D=p.length,_=c.layers,B,U=_.length;for(B=0;B<U;B+=1)for(v=0;v<D;){if(p[v].id===_[B].id){p[v]=_[B];break}v+=1}if((c.chars||c.fonts)&&(this.renderer.globalData.fontManager.addChars(c.chars),this.renderer.globalData.fontManager.addFonts(c.fonts,this.renderer.globalData.defs)),c.assets)for(D=c.assets.length,v=0;v<D;v+=1)this.animationData.assets.push(c.assets[v]);this.animationData.__complete=!1,uo.completeAnimation(this.animationData,this.onSegmentComplete)},yt.prototype.onSegmentComplete=function(c){this.animationData=c;var p=li();p&&p.initExpressions(this),this.loadNextSegment()},yt.prototype.loadNextSegment=function(){var c=this.animationData.segments;if(!c||c.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var p=c.shift();this.timeCompleted=p.time*this.frameRate;var v=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,uo.loadData(v,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},yt.prototype.loadSegments=function(){var c=this.animationData.segments;c||(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(c){if(this.renderer)try{this.animationData=c,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(c),c.assets||(c.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(c.assets),this.markers=Tc(c.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 c=li();c&&c.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},yt.prototype.resize=function(c,p){var v=typeof c=="number"?c:void 0,D=typeof p=="number"?p:void 0;this.renderer.updateContainerSize(v,D)},yt.prototype.setSubframe=function(c){this.isSubframeEnabled=!!c},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(c){this.triggerRenderFrameError(c)}},yt.prototype.play=function(c){c&&this.name!==c||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},yt.prototype.pause=function(c){c&&this.name!==c||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},yt.prototype.togglePause=function(c){c&&this.name!==c||(this.isPaused===!0?this.play():this.pause())},yt.prototype.stop=function(c){c&&this.name!==c||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},yt.prototype.getMarkerData=function(c){for(var p,v=0;v<this.markers.length;v+=1)if(p=this.markers[v],p.payload&&p.payload.name===c)return p;return null},yt.prototype.goToAndStop=function(c,p,v){if(!(v&&this.name!==v)){var D=Number(c);if(isNaN(D)){var _=this.getMarkerData(c);_&&this.goToAndStop(_.time,!0)}else p?this.setCurrentRawFrameValue(c):this.setCurrentRawFrameValue(c*this.frameModifier);this.pause()}},yt.prototype.goToAndPlay=function(c,p,v){if(!(v&&this.name!==v)){var D=Number(c);if(isNaN(D)){var _=this.getMarkerData(c);_&&(_.duration?this.playSegments([_.time,_.time+_.duration],!0):this.goToAndStop(_.time,!0))}else this.goToAndStop(D,p,v);this.play()}},yt.prototype.advanceTime=function(c){if(!(this.isPaused===!0||this.isLoaded===!1)){var p=this.currentRawFrame+c*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(c,p){this.playCount=0,c[1]<c[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=c[0]-c[1],this.timeCompleted=this.totalFrames,this.firstFrame=c[1],this.setCurrentRawFrameValue(this.totalFrames-.001-p)):c[1]>c[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=c[1]-c[0],this.timeCompleted=this.totalFrames,this.firstFrame=c[0],this.setCurrentRawFrameValue(.001+p)),this.trigger("segmentStart")},yt.prototype.setSegment=function(c,p){var v=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<c?v=c:this.currentRawFrame+this.firstFrame>p&&(v=p-c)),this.firstFrame=c,this.totalFrames=p-c,this.timeCompleted=this.totalFrames,v!==-1&&this.goToAndStop(v,!0)},yt.prototype.playSegments=function(c,p){if(p&&(this.segments.length=0),na(c[0])==="object"){var v,D=c.length;for(v=0;v<D;v+=1)this.segments.push(c[v])}else this.segments.push(c);this.segments.length&&p&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},yt.prototype.resetSegments=function(c){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),c&&this.checkSegments(0)},yt.prototype.checkSegments=function(c){return this.segments.length?(this.adjustSegment(this.segments.shift(),c),!0):!1},yt.prototype.destroy=function(c){c&&this.name!==c||!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(c){this.currentRawFrame=c,this.gotoFrame()},yt.prototype.setSpeed=function(c){this.playSpeed=c,this.updaFrameModifier()},yt.prototype.setDirection=function(c){this.playDirection=c<0?-1:1,this.updaFrameModifier()},yt.prototype.setLoop=function(c){this.loop=c},yt.prototype.setVolume=function(c,p){p&&this.name!==p||this.audioController.setVolume(c)},yt.prototype.getVolume=function(){return this.audioController.getVolume()},yt.prototype.mute=function(c){c&&this.name!==c||this.audioController.mute()},yt.prototype.unmute=function(c){c&&this.name!==c||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(c){var p="";if(c.e)p=c.p;else if(this.assetsPath){var v=c.p;v.indexOf("images/")!==-1&&(v=v.split("/")[1]),p=this.assetsPath+v}else p=this.path,p+=c.u?c.u:"",p+=c.p;return p},yt.prototype.getAssetData=function(c){for(var p=0,v=this.assets.length;p<v;){if(c===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(c){return c?this.totalFrames:this.totalFrames/this.frameRate},yt.prototype.updateDocumentData=function(c,p,v){try{var D=this.renderer.getElementByPath(c);D.updateDocumentData(p,v)}catch{}},yt.prototype.trigger=function(c){if(this._cbs&&this._cbs[c])switch(c){case"enterFrame":this.triggerEvent(c,new Ae(c,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(c,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(c,new Qe(c,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(c,new Fe(c,this.frameMult));break;case"segmentStart":this.triggerEvent(c,new et(c,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(c,new Je(c,this));break;default:this.triggerEvent(c)}c==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Ae(c,this.currentFrame,this.totalFrames,this.frameMult)),c==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Qe(c,this.loop,this.playCount,this.frameMult)),c==="complete"&&this.onComplete&&this.onComplete.call(this,new Fe(c,this.frameMult)),c==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new et(c,this.firstFrame,this.totalFrames)),c==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Je(c,this))},yt.prototype.triggerRenderFrameError=function(c){var p=new gt(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)},yt.prototype.triggerConfigError=function(c){var p=new kt(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)};var wn=function(){var c={},p=[],v=0,D=0,_=0,B=!0,U=!1;function ge($e){for(var ce=0,Q=$e.target;ce<D;)p[ce].animation===Q&&(p.splice(ce,1),ce-=1,D-=1,Q.isPaused||Re()),ce+=1}function J($e,ce){if(!$e)return null;for(var Q=0;Q<D;){if(p[Q].elem===$e&&p[Q].elem!==null)return p[Q].animation;Q+=1}var ve=new yt;return k(ve,$e),ve.setData($e,ce),ve}function De(){var $e,ce=p.length,Q=[];for($e=0;$e<ce;$e+=1)Q.push(p[$e].animation);return Q}function Ce(){_+=1,nt()}function Re(){_-=1}function k($e,ce){$e.addEventListener("destroy",ge),$e.addEventListener("_active",Ce),$e.addEventListener("_idle",Re),p.push({elem:ce,animation:$e}),D+=1}function ee($e){var ce=new yt;return k(ce,null),ce.setParams($e),ce}function Y($e,ce){var Q;for(Q=0;Q<D;Q+=1)p[Q].animation.setSpeed($e,ce)}function pe($e,ce){var Q;for(Q=0;Q<D;Q+=1)p[Q].animation.setDirection($e,ce)}function he($e){var ce;for(ce=0;ce<D;ce+=1)p[ce].animation.play($e)}function W($e){var ce=$e-v,Q;for(Q=0;Q<D;Q+=1)p[Q].animation.advanceTime(ce);v=$e,_&&!U?window.requestAnimationFrame(W):B=!0}function Z($e){v=$e,window.requestAnimationFrame(W)}function L($e){var ce;for(ce=0;ce<D;ce+=1)p[ce].animation.pause($e)}function j($e,ce,Q){var ve;for(ve=0;ve<D;ve+=1)p[ve].animation.goToAndStop($e,ce,Q)}function H($e){var ce;for(ce=0;ce<D;ce+=1)p[ce].animation.stop($e)}function ne($e){var ce;for(ce=0;ce<D;ce+=1)p[ce].animation.togglePause($e)}function ue($e){var ce;for(ce=D-1;ce>=0;ce-=1)p[ce].animation.destroy($e)}function me($e,ce,Q){var ve=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Ke,Ie=ve.length;for(Ke=0;Ke<Ie;Ke+=1)Q&&ve[Ke].setAttribute("data-bm-type",Q),J(ve[Ke],$e);if(ce&&Ie===0){Q||(Q="svg");var lt=document.getElementsByTagName("body")[0];lt.innerText="";var St=_e("div");St.style.width="100%",St.style.height="100%",St.setAttribute("data-bm-type",Q),lt.appendChild(St),J(St,$e)}}function Oe(){var $e;for($e=0;$e<D;$e+=1)p[$e].animation.resize()}function nt(){!U&&_&&B&&(window.requestAnimationFrame(Z),B=!1)}function tt(){U=!0}function Ve(){U=!1,nt()}function st($e,ce){var Q;for(Q=0;Q<D;Q+=1)p[Q].animation.setVolume($e,ce)}function ct($e){var ce;for(ce=0;ce<D;ce+=1)p[ce].animation.mute($e)}function Le($e){var ce;for(ce=0;ce<D;ce+=1)p[ce].animation.unmute($e)}return c.registerAnimation=J,c.loadAnimation=ee,c.setSpeed=Y,c.setDirection=pe,c.play=he,c.pause=L,c.stop=H,c.togglePause=ne,c.searchAnimations=me,c.resize=Oe,c.goToAndStop=j,c.destroy=ue,c.freeze=tt,c.unfreeze=Ve,c.setVolume=st,c.mute=ct,c.unmute=Le,c.getRegisteredAnimations=De,c}(),lo=function(){var c={};c.getBezierEasing=v;var p={};function v(Z,L,j,H,ne){var ue=ne||("bez_"+Z+"_"+L+"_"+j+"_"+H).replace(/\./g,"p");if(p[ue])return p[ue];var me=new W([Z,L,j,H]);return p[ue]=me,me}var D=4,_=.001,B=1e-7,U=10,ge=11,J=1/(ge-1),De=typeof Float32Array=="function";function Ce(Z,L){return 1-3*L+3*Z}function Re(Z,L){return 3*L-6*Z}function k(Z){return 3*Z}function ee(Z,L,j){return((Ce(L,j)*Z+Re(L,j))*Z+k(L))*Z}function Y(Z,L,j){return 3*Ce(L,j)*Z*Z+2*Re(L,j)*Z+k(L)}function pe(Z,L,j,H,ne){var ue,me,Oe=0;do me=L+(j-L)/2,ue=ee(me,H,ne)-Z,ue>0?j=me:L=me;while(Math.abs(ue)>B&&++Oe<U);return me}function he(Z,L,j,H){for(var ne=0;ne<D;++ne){var ue=Y(L,j,H);if(ue===0)return L;var me=ee(L,j,H)-Z;L-=me/ue}return L}function W(Z){this._p=Z,this._mSampleValues=De?new Float32Array(ge):new Array(ge),this._precomputed=!1,this.get=this.get.bind(this)}return W.prototype={get:function(L){var j=this._p[0],H=this._p[1],ne=this._p[2],ue=this._p[3];return this._precomputed||this._precompute(),j===H&&ne===ue?L:L===0?0:L===1?1:ee(this._getTForX(L),H,ue)},_precompute:function(){var L=this._p[0],j=this._p[1],H=this._p[2],ne=this._p[3];this._precomputed=!0,(L!==j||H!==ne)&&this._calcSampleValues()},_calcSampleValues:function(){for(var L=this._p[0],j=this._p[2],H=0;H<ge;++H)this._mSampleValues[H]=ee(H*J,L,j)},_getTForX:function(L){for(var j=this._p[0],H=this._p[2],ne=this._mSampleValues,ue=0,me=1,Oe=ge-1;me!==Oe&&ne[me]<=L;++me)ue+=J;--me;var nt=(L-ne[me])/(ne[me+1]-ne[me]),tt=ue+nt*J,Ve=Y(tt,j,H);return Ve>=_?he(L,tt,j,H):Ve===0?tt:pe(L,ue,ue+J,j,H)}},c}(),zu=function(){function c(p){return p.concat(qe(p.length))}return{double:c}}(),$r=function(){return function(c,p,v){var D=0,_=c,B=qe(_),U={newElement:ge,release:J};function ge(){var De;return D?(D-=1,De=B[D]):De=p(),De}function J(De){D===_&&(B=zu.double(B),_*=2),v&&v(De),B[D]=De,D+=1}return U}}(),qu=function(){function c(){return{addedLength:0,percents:Ne("float32",Ba()),lengths:Ne("float32",Ba())}}return $r(8,c)}(),Uu=function(){function c(){return{lengths:[],totalLength:0}}function p(v){var D,_=v.lengths.length;for(D=0;D<_;D+=1)qu.release(v.lengths[D]);v.lengths.length=0}return $r(8,c,p)}();function Pc(){var c=Math;function p(k,ee,Y,pe,he,W){var Z=k*pe+ee*he+Y*W-he*pe-W*k-Y*ee;return Z>-.001&&Z<.001}function v(k,ee,Y,pe,he,W,Z,L,j){if(Y===0&&W===0&&j===0)return p(k,ee,pe,he,Z,L);var H=c.sqrt(c.pow(pe-k,2)+c.pow(he-ee,2)+c.pow(W-Y,2)),ne=c.sqrt(c.pow(Z-k,2)+c.pow(L-ee,2)+c.pow(j-Y,2)),ue=c.sqrt(c.pow(Z-pe,2)+c.pow(L-he,2)+c.pow(j-W,2)),me;return H>ne?H>ue?me=H-ne-ue:me=ue-ne-H:ue>ne?me=ue-ne-H:me=ne-H-ue,me>-1e-4&&me<1e-4}var D=function(){return function(k,ee,Y,pe){var he=Ba(),W,Z,L,j,H,ne=0,ue,me=[],Oe=[],nt=qu.newElement();for(L=Y.length,W=0;W<he;W+=1){for(H=W/(he-1),ue=0,Z=0;Z<L;Z+=1)j=ht(1-H,3)*k[Z]+3*ht(1-H,2)*H*Y[Z]+3*(1-H)*ht(H,2)*pe[Z]+ht(H,3)*ee[Z],me[Z]=j,Oe[Z]!==null&&(ue+=ht(me[Z]-Oe[Z],2)),Oe[Z]=me[Z];ue&&(ue=Ht(ue),ne+=ue),nt.percents[W]=H,nt.lengths[W]=ne}return nt.addedLength=ne,nt}}();function _(k){var ee=Uu.newElement(),Y=k.c,pe=k.v,he=k.o,W=k.i,Z,L=k._length,j=ee.lengths,H=0;for(Z=0;Z<L-1;Z+=1)j[Z]=D(pe[Z],pe[Z+1],he[Z],W[Z+1]),H+=j[Z].addedLength;return Y&&L&&(j[Z]=D(pe[Z],pe[0],he[Z],W[0]),H+=j[Z].addedLength),ee.totalLength=H,ee}function B(k){this.segmentLength=0,this.points=new Array(k)}function U(k,ee){this.partialLength=k,this.point=ee}var ge=function(){var k={};return function(ee,Y,pe,he){var W=(ee[0]+"_"+ee[1]+"_"+Y[0]+"_"+Y[1]+"_"+pe[0]+"_"+pe[1]+"_"+he[0]+"_"+he[1]).replace(/\./g,"p");if(!k[W]){var Z=Ba(),L,j,H,ne,ue,me=0,Oe,nt,tt=null;ee.length===2&&(ee[0]!==Y[0]||ee[1]!==Y[1])&&p(ee[0],ee[1],Y[0],Y[1],ee[0]+pe[0],ee[1]+pe[1])&&p(ee[0],ee[1],Y[0],Y[1],Y[0]+he[0],Y[1]+he[1])&&(Z=2);var Ve=new B(Z);for(H=pe.length,L=0;L<Z;L+=1){for(nt=qe(H),ue=L/(Z-1),Oe=0,j=0;j<H;j+=1)ne=ht(1-ue,3)*ee[j]+3*ht(1-ue,2)*ue*(ee[j]+pe[j])+3*(1-ue)*ht(ue,2)*(Y[j]+he[j])+ht(ue,3)*Y[j],nt[j]=ne,tt!==null&&(Oe+=ht(nt[j]-tt[j],2));Oe=Ht(Oe),me+=Oe,Ve.points[L]=new U(Oe,nt),tt=nt}Ve.segmentLength=me,k[W]=Ve}return k[W]}}();function J(k,ee){var Y=ee.percents,pe=ee.lengths,he=Y.length,W=xt((he-1)*k),Z=k*ee.addedLength,L=0;if(W===he-1||W===0||Z===pe[W])return Y[W];for(var j=pe[W]>Z?-1:1,H=!0;H;)if(pe[W]<=Z&&pe[W+1]>Z?(L=(Z-pe[W])/(pe[W+1]-pe[W]),H=!1):W+=j,W<0||W>=he-1){if(W===he-1)return Y[W];H=!1}return Y[W]+(Y[W+1]-Y[W])*L}function De(k,ee,Y,pe,he,W){var Z=J(he,W),L=1-Z,j=c.round((L*L*L*k[0]+(Z*L*L+L*Z*L+L*L*Z)*Y[0]+(Z*Z*L+L*Z*Z+Z*L*Z)*pe[0]+Z*Z*Z*ee[0])*1e3)/1e3,H=c.round((L*L*L*k[1]+(Z*L*L+L*Z*L+L*L*Z)*Y[1]+(Z*Z*L+L*Z*Z+Z*L*Z)*pe[1]+Z*Z*Z*ee[1])*1e3)/1e3;return[j,H]}var Ce=Ne("float32",8);function Re(k,ee,Y,pe,he,W,Z){he<0?he=0:he>1&&(he=1);var L=J(he,Z);W=W>1?1:W;var j=J(W,Z),H,ne=k.length,ue=1-L,me=1-j,Oe=ue*ue*ue,nt=L*ue*ue*3,tt=L*L*ue*3,Ve=L*L*L,st=ue*ue*me,ct=L*ue*me+ue*L*me+ue*ue*j,Le=L*L*me+ue*L*j+L*ue*j,$e=L*L*j,ce=ue*me*me,Q=L*me*me+ue*j*me+ue*me*j,ve=L*j*me+ue*j*j+L*me*j,Ke=L*j*j,Ie=me*me*me,lt=j*me*me+me*j*me+me*me*j,St=j*j*me+me*j*j+j*me*j,Et=j*j*j;for(H=0;H<ne;H+=1)Ce[H*4]=c.round((Oe*k[H]+nt*Y[H]+tt*pe[H]+Ve*ee[H])*1e3)/1e3,Ce[H*4+1]=c.round((st*k[H]+ct*Y[H]+Le*pe[H]+$e*ee[H])*1e3)/1e3,Ce[H*4+2]=c.round((ce*k[H]+Q*Y[H]+ve*pe[H]+Ke*ee[H])*1e3)/1e3,Ce[H*4+3]=c.round((Ie*k[H]+lt*Y[H]+St*pe[H]+Et*ee[H])*1e3)/1e3;return Ce}return{getSegmentsLength:_,getNewSegment:Re,getPointInSegment:De,buildBezierData:ge,pointOnLine2D:p,pointOnLine3D:v}}var Gr=Pc(),at=function(){var c=fe,p=Math.abs;function v(he,W){var Z=this.offsetTime,L;this.propType==="multidimensional"&&(L=Ne("float32",this.pv.length));for(var j=W.lastIndex,H=j,ne=this.keyframes.length-1,ue=!0,me,Oe,nt;ue;){if(me=this.keyframes[H],Oe=this.keyframes[H+1],H===ne-1&&he>=Oe.t-Z){me.h&&(me=Oe),j=0;break}if(Oe.t-Z>he){j=H;break}H<ne-1?H+=1:(j=0,ue=!1)}nt=this.keyframesMetadata[H]||{};var tt,Ve,st,ct,Le,$e,ce=Oe.t-Z,Q=me.t-Z,ve;if(me.to){nt.bezierData||(nt.bezierData=Gr.buildBezierData(me.s,Oe.s||me.e,me.to,me.ti));var Ke=nt.bezierData;if(he>=ce||he<Q){var Ie=he>=ce?Ke.points.length-1:0;for(Ve=Ke.points[Ie].point.length,tt=0;tt<Ve;tt+=1)L[tt]=Ke.points[Ie].point[tt]}else{nt.__fnct?$e=nt.__fnct:($e=lo.getBezierEasing(me.o.x,me.o.y,me.i.x,me.i.y,me.n).get,nt.__fnct=$e),st=$e((he-Q)/(ce-Q));var lt=Ke.segmentLength*st,St,Et=W.lastFrame<he&&W._lastKeyframeIndex===H?W._lastAddedLength:0;for(Le=W.lastFrame<he&&W._lastKeyframeIndex===H?W._lastPoint:0,ue=!0,ct=Ke.points.length;ue;){if(Et+=Ke.points[Le].partialLength,lt===0||st===0||Le===Ke.points.length-1){for(Ve=Ke.points[Le].point.length,tt=0;tt<Ve;tt+=1)L[tt]=Ke.points[Le].point[tt];break}else if(lt>=Et&<<Et+Ke.points[Le+1].partialLength){for(St=(lt-Et)/Ke.points[Le+1].partialLength,Ve=Ke.points[Le].point.length,tt=0;tt<Ve;tt+=1)L[tt]=Ke.points[Le].point[tt]+(Ke.points[Le+1].point[tt]-Ke.points[Le].point[tt])*St;break}Le<ct-1?Le+=1:ue=!1}W._lastPoint=Le,W._lastAddedLength=Et-Ke.points[Le].partialLength,W._lastKeyframeIndex=H}}else{var Dn,Ut,dr,Zn,Ln;if(ne=me.s.length,ve=Oe.s||me.e,this.sh&&me.h!==1)if(he>=ce)L[0]=ve[0],L[1]=ve[1],L[2]=ve[2];else if(he<=Q)L[0]=me.s[0],L[1]=me.s[1],L[2]=me.s[2];else{var jn=B(me.s),Kn=B(ve),vr=(he-Q)/(ce-Q);_(L,D(jn,Kn,vr))}else for(H=0;H<ne;H+=1)me.h!==1&&(he>=ce?st=1:he<Q?st=0:(me.o.x.constructor===Array?(nt.__fnct||(nt.__fnct=[]),nt.__fnct[H]?$e=nt.__fnct[H]:(Dn=me.o.x[H]===void 0?me.o.x[0]:me.o.x[H],Ut=me.o.y[H]===void 0?me.o.y[0]:me.o.y[H],dr=me.i.x[H]===void 0?me.i.x[0]:me.i.x[H],Zn=me.i.y[H]===void 0?me.i.y[0]:me.i.y[H],$e=lo.getBezierEasing(Dn,Ut,dr,Zn).get,nt.__fnct[H]=$e)):nt.__fnct?$e=nt.__fnct:(Dn=me.o.x,Ut=me.o.y,dr=me.i.x,Zn=me.i.y,$e=lo.getBezierEasing(Dn,Ut,dr,Zn).get,me.keyframeMetadata=$e),st=$e((he-Q)/(ce-Q)))),ve=Oe.s||me.e,Ln=me.h===1?me.s[H]:me.s[H]+(ve[H]-me.s[H])*st,this.propType==="multidimensional"?L[H]=Ln:L=Ln}return W.lastIndex=j,L}function D(he,W,Z){var L=[],j=he[0],H=he[1],ne=he[2],ue=he[3],me=W[0],Oe=W[1],nt=W[2],tt=W[3],Ve,st,ct,Le,$e;return st=j*me+H*Oe+ne*nt+ue*tt,st<0&&(st=-st,me=-me,Oe=-Oe,nt=-nt,tt=-tt),1-st>1e-6?(Ve=Math.acos(st),ct=Math.sin(Ve),Le=Math.sin((1-Z)*Ve)/ct,$e=Math.sin(Z*Ve)/ct):(Le=1-Z,$e=Z),L[0]=Le*j+$e*me,L[1]=Le*H+$e*Oe,L[2]=Le*ne+$e*nt,L[3]=Le*ue+$e*tt,L}function _(he,W){var Z=W[0],L=W[1],j=W[2],H=W[3],ne=Math.atan2(2*L*H-2*Z*j,1-2*L*L-2*j*j),ue=Math.asin(2*Z*L+2*j*H),me=Math.atan2(2*Z*H-2*L*j,1-2*Z*Z-2*j*j);he[0]=ne/Jt,he[1]=ue/Jt,he[2]=me/Jt}function B(he){var W=he[0]*Jt,Z=he[1]*Jt,L=he[2]*Jt,j=Math.cos(W/2),H=Math.cos(Z/2),ne=Math.cos(L/2),ue=Math.sin(W/2),me=Math.sin(Z/2),Oe=Math.sin(L/2),nt=j*H*ne-ue*me*Oe,tt=ue*me*ne+j*H*Oe,Ve=ue*H*ne+j*me*Oe,st=j*me*ne-ue*H*Oe;return[tt,Ve,st,nt]}function U(){var he=this.comp.renderedFrame-this.offsetTime,W=this.keyframes[0].t-this.offsetTime,Z=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(he===this._caching.lastFrame||this._caching.lastFrame!==c&&(this._caching.lastFrame>=Z&&he>=Z||this._caching.lastFrame<W&&he<W))){this._caching.lastFrame>=he&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var L=this.interpolateValue(he,this._caching);this.pv=L}return this._caching.lastFrame=he,this.pv}function ge(he){var W;if(this.propType==="unidimensional")W=he*this.mult,p(this.v-W)>1e-5&&(this.v=W,this._mdf=!0);else for(var Z=0,L=this.v.length;Z<L;)W=he[Z]*this.mult,p(this.v[Z]-W)>1e-5&&(this.v[Z]=W,this._mdf=!0),Z+=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 he,W=this.effectsSequence.length,Z=this.kf?this.pv:this.data.k;for(he=0;he<W;he+=1)Z=this.effectsSequence[he](Z);this.setVValue(Z),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function De(he){this.effectsSequence.push(he),this.container.addDynamicProperty(this)}function Ce(he,W,Z,L){this.propType="unidimensional",this.mult=Z||1,this.data=W,this.v=Z?W.k*Z:W.k,this.pv=W.k,this._mdf=!1,this.elem=he,this.container=L,this.comp=he.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=J,this.setVValue=ge,this.addEffect=De}function Re(he,W,Z,L){this.propType="multidimensional",this.mult=Z||1,this.data=W,this._mdf=!1,this.elem=he,this.container=L,this.comp=he.comp,this.k=!1,this.kf=!1,this.frameId=-1;var j,H=W.k.length;for(this.v=Ne("float32",H),this.pv=Ne("float32",H),this.vel=Ne("float32",H),j=0;j<H;j+=1)this.v[j]=W.k[j]*this.mult,this.pv[j]=W.k[j];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=J,this.setVValue=ge,this.addEffect=De}function k(he,W,Z,L){this.propType="unidimensional",this.keyframes=W.k,this.keyframesMetadata=[],this.offsetTime=he.data.st,this.frameId=-1,this._caching={lastFrame:c,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=W,this.mult=Z||1,this.elem=he,this.container=L,this.comp=he.comp,this.v=c,this.pv=c,this._isFirstFrame=!0,this.getValue=J,this.setVValue=ge,this.interpolateValue=v,this.effectsSequence=[U.bind(this)],this.addEffect=De}function ee(he,W,Z,L){this.propType="multidimensional";var j,H=W.k.length,ne,ue,me,Oe;for(j=0;j<H-1;j+=1)W.k[j].to&&W.k[j].s&&W.k[j+1]&&W.k[j+1].s&&(ne=W.k[j].s,ue=W.k[j+1].s,me=W.k[j].to,Oe=W.k[j].ti,(ne.length===2&&!(ne[0]===ue[0]&&ne[1]===ue[1])&&Gr.pointOnLine2D(ne[0],ne[1],ue[0],ue[1],ne[0]+me[0],ne[1]+me[1])&&Gr.pointOnLine2D(ne[0],ne[1],ue[0],ue[1],ue[0]+Oe[0],ue[1]+Oe[1])||ne.length===3&&!(ne[0]===ue[0]&&ne[1]===ue[1]&&ne[2]===ue[2])&&Gr.pointOnLine3D(ne[0],ne[1],ne[2],ue[0],ue[1],ue[2],ne[0]+me[0],ne[1]+me[1],ne[2]+me[2])&&Gr.pointOnLine3D(ne[0],ne[1],ne[2],ue[0],ue[1],ue[2],ue[0]+Oe[0],ue[1]+Oe[1],ue[2]+Oe[2]))&&(W.k[j].to=null,W.k[j].ti=null),ne[0]===ue[0]&&ne[1]===ue[1]&&me[0]===0&&me[1]===0&&Oe[0]===0&&Oe[1]===0&&(ne.length===2||ne[2]===ue[2]&&me[2]===0&&Oe[2]===0)&&(W.k[j].to=null,W.k[j].ti=null));this.effectsSequence=[U.bind(this)],this.data=W,this.keyframes=W.k,this.keyframesMetadata=[],this.offsetTime=he.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=Z||1,this.elem=he,this.container=L,this.comp=he.comp,this.getValue=J,this.setVValue=ge,this.interpolateValue=v,this.frameId=-1;var nt=W.k[0].s.length;for(this.v=Ne("float32",nt),this.pv=Ne("float32",nt),j=0;j<nt;j+=1)this.v[j]=c,this.pv[j]=c;this._caching={lastFrame:c,lastIndex:0,value:Ne("float32",nt)},this.addEffect=De}function Y(he,W,Z,L,j){var H;if(!W.k.length)H=new Ce(he,W,L,j);else if(typeof W.k[0]=="number")H=new Re(he,W,L,j);else switch(Z){case 0:H=new k(he,W,L,j);break;case 1:H=new ee(he,W,L,j);break}return H.effectsSequence.length&&j.addDynamicProperty(H),H}var pe={getProp:Y};return pe}();function dn(){}dn.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 ra=function(){function c(){return Ne("float32",2)}return $r(8,c)}();function di(){this.c=!1,this._length=0,this._maxLength=8,this.v=qe(this._maxLength),this.o=qe(this._maxLength),this.i=qe(this._maxLength)}di.prototype.setPathData=function(c,p){this.c=c,this.setLength(p);for(var v=0;v<p;)this.v[v]=ra.newElement(),this.o[v]=ra.newElement(),this.i[v]=ra.newElement(),v+=1},di.prototype.setLength=function(c){for(;this._maxLength<c;)this.doubleArrayLength();this._length=c},di.prototype.doubleArrayLength=function(){this.v=this.v.concat(qe(this._maxLength)),this.i=this.i.concat(qe(this._maxLength)),this.o=this.o.concat(qe(this._maxLength)),this._maxLength*=2},di.prototype.setXYAt=function(c,p,v,D,_){var B;switch(this._length=Math.max(this._length,D+1),this._length>=this._maxLength&&this.doubleArrayLength(),v){case"v":B=this.v;break;case"i":B=this.i;break;case"o":B=this.o;break;default:B=[];break}(!B[D]||B[D]&&!_)&&(B[D]=ra.newElement()),B[D][0]=c,B[D][1]=p},di.prototype.setTripleAt=function(c,p,v,D,_,B,U,ge){this.setXYAt(c,p,"v",U,ge),this.setXYAt(v,D,"o",U,ge),this.setXYAt(_,B,"i",U,ge)},di.prototype.reverse=function(){var c=new di;c.setPathData(this.c,this._length);var p=this.v,v=this.o,D=this.i,_=0;this.c&&(c.setTripleAt(p[0][0],p[0][1],D[0][0],D[0][1],v[0][0],v[0][1],0,!1),_=1);var B=this._length-1,U=this._length,ge;for(ge=_;ge<U;ge+=1)c.setTripleAt(p[B][0],p[B][1],D[B][0],D[B][1],v[B][0],v[B][1],ge,!1),B-=1;return c},di.prototype.length=function(){return this._length};var Yn=function(){function c(){return new di}function p(_){var B=_._length,U;for(U=0;U<B;U+=1)ra.release(_.v[U]),ra.release(_.i[U]),ra.release(_.o[U]),_.v[U]=null,_.i[U]=null,_.o[U]=null;_._length=0,_.c=!1}function v(_){var B=D.newElement(),U,ge=_._length===void 0?_.v.length:_._length;for(B.setLength(ge),B.c=_.c,U=0;U<ge;U+=1)B.setTripleAt(_.v[U][0],_.v[U][1],_.o[U][0],_.o[U][1],_.i[U][0],_.i[U][1],U);return B}var D=$r(4,c,p);return D.clone=v,D}();function ks(){this._length=0,this._maxLength=4,this.shapes=qe(this._maxLength)}ks.prototype.addShape=function(c){this._length===this._maxLength&&(this.shapes=this.shapes.concat(qe(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=c,this._length+=1},ks.prototype.releaseShapes=function(){var c;for(c=0;c<this._length;c+=1)Yn.release(this.shapes[c]);this._length=0};var Fa=function(){var c={newShapeCollection:_,release:B},p=0,v=4,D=qe(v);function _(){var U;return p?(p-=1,U=D[p]):U=new ks,U}function B(U){var ge,J=U._length;for(ge=0;ge<J;ge+=1)Yn.release(U.shapes[ge]);U._length=0,p===v&&(D=zu.double(D),v*=2),D[p]=U,p+=1}return c}(),fi=function(){var c=-999999;function p(W,Z,L){var j=L.lastIndex,H,ne,ue,me,Oe,nt,tt,Ve,st,ct=this.keyframes;if(W<ct[0].t-this.offsetTime)H=ct[0].s[0],ue=!0,j=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],ue=!0;else{for(var Le=j,$e=ct.length-1,ce=!0,Q,ve,Ke;ce&&(Q=ct[Le],ve=ct[Le+1],!(ve.t-this.offsetTime>W));)Le<$e-1?Le+=1:ce=!1;if(Ke=this.keyframesMetadata[Le]||{},ue=Q.h===1,j=Le,!ue){if(W>=ve.t-this.offsetTime)Ve=1;else if(W<Q.t-this.offsetTime)Ve=0;else{var Ie;Ke.__fnct?Ie=Ke.__fnct:(Ie=lo.getBezierEasing(Q.o.x,Q.o.y,Q.i.x,Q.i.y).get,Ke.__fnct=Ie),Ve=Ie((W-(Q.t-this.offsetTime))/(ve.t-this.offsetTime-(Q.t-this.offsetTime)))}ne=ve.s?ve.s[0]:Q.e[0]}H=Q.s[0]}for(nt=Z._length,tt=H.i[0].length,L.lastIndex=j,me=0;me<nt;me+=1)for(Oe=0;Oe<tt;Oe+=1)st=ue?H.i[me][Oe]:H.i[me][Oe]+(ne.i[me][Oe]-H.i[me][Oe])*Ve,Z.i[me][Oe]=st,st=ue?H.o[me][Oe]:H.o[me][Oe]+(ne.o[me][Oe]-H.o[me][Oe])*Ve,Z.o[me][Oe]=st,st=ue?H.v[me][Oe]:H.v[me][Oe]+(ne.v[me][Oe]-H.v[me][Oe])*Ve,Z.v[me][Oe]=st}function v(){var W=this.comp.renderedFrame-this.offsetTime,Z=this.keyframes[0].t-this.offsetTime,L=this.keyframes[this.keyframes.length-1].t-this.offsetTime,j=this._caching.lastFrame;return j!==c&&(j<Z&&W<Z||j>L&&W>L)||(this._caching.lastIndex=j<W?this._caching.lastIndex:0,this.interpolateShape(W,this.pv,this._caching)),this._caching.lastFrame=W,this.pv}function D(){this.paths=this.localShapeCollection}function _(W,Z){if(W._length!==Z._length||W.c!==Z.c)return!1;var L,j=W._length;for(L=0;L<j;L+=1)if(W.v[L][0]!==Z.v[L][0]||W.v[L][1]!==Z.v[L][1]||W.o[L][0]!==Z.o[L][0]||W.o[L][1]!==Z.o[L][1]||W.i[L][0]!==Z.i[L][0]||W.i[L][1]!==Z.i[L][1])return!1;return!0}function B(W){_(this.v,W)||(this.v=Yn.clone(W),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function U(){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 Z,L=this.effectsSequence.length;for(Z=0;Z<L;Z+=1)W=this.effectsSequence[Z](W);this.setVValue(W),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function ge(W,Z,L){this.propType="shape",this.comp=W.comp,this.container=W,this.elem=W,this.data=Z,this.k=!1,this.kf=!1,this._mdf=!1;var j=L===3?Z.pt.k:Z.ks.k;this.v=Yn.clone(j),this.pv=Yn.clone(this.v),this.localShapeCollection=Fa.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=D,this.effectsSequence=[]}function J(W){this.effectsSequence.push(W),this.container.addDynamicProperty(this)}ge.prototype.interpolateShape=p,ge.prototype.getValue=U,ge.prototype.setVValue=B,ge.prototype.addEffect=J;function De(W,Z,L){this.propType="shape",this.comp=W.comp,this.elem=W,this.container=W,this.offsetTime=W.data.st,this.keyframes=L===3?Z.pt.k:Z.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var j=this.keyframes[0].s[0].i.length;this.v=Yn.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,j),this.pv=Yn.clone(this.v),this.localShapeCollection=Fa.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=c,this.reset=D,this._caching={lastFrame:c,lastIndex:0},this.effectsSequence=[v.bind(this)]}De.prototype.getValue=U,De.prototype.interpolateShape=p,De.prototype.setVValue=B,De.prototype.addEffect=J;var Ce=function(){var W=xe;function Z(L,j){this.v=Yn.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Fa.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=j.d,this.elem=L,this.comp=L.comp,this.frameId=-1,this.initDynamicPropertyContainer(L),this.p=at.getProp(L,j.p,1,0,this),this.s=at.getProp(L,j.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return Z.prototype={reset:D,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var j=this.p.v[0],H=this.p.v[1],ne=this.s.v[0]/2,ue=this.s.v[1]/2,me=this.d!==3,Oe=this.v;Oe.v[0][0]=j,Oe.v[0][1]=H-ue,Oe.v[1][0]=me?j+ne:j-ne,Oe.v[1][1]=H,Oe.v[2][0]=j,Oe.v[2][1]=H+ue,Oe.v[3][0]=me?j-ne:j+ne,Oe.v[3][1]=H,Oe.i[0][0]=me?j-ne*W:j+ne*W,Oe.i[0][1]=H-ue,Oe.i[1][0]=me?j+ne:j-ne,Oe.i[1][1]=H-ue*W,Oe.i[2][0]=me?j+ne*W:j-ne*W,Oe.i[2][1]=H+ue,Oe.i[3][0]=me?j-ne:j+ne,Oe.i[3][1]=H+ue*W,Oe.o[0][0]=me?j+ne*W:j-ne*W,Oe.o[0][1]=H-ue,Oe.o[1][0]=me?j+ne:j-ne,Oe.o[1][1]=H+ue*W,Oe.o[2][0]=me?j-ne*W:j+ne*W,Oe.o[2][1]=H+ue,Oe.o[3][0]=me?j-ne:j+ne,Oe.o[3][1]=H-ue*W}},Be([dn],Z),Z}(),Re=function(){function W(Z,L){this.v=Yn.newElement(),this.v.setPathData(!0,0),this.elem=Z,this.comp=Z.comp,this.data=L,this.frameId=-1,this.d=L.d,this.initDynamicPropertyContainer(Z),L.sy===1?(this.ir=at.getProp(Z,L.ir,0,0,this),this.is=at.getProp(Z,L.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=at.getProp(Z,L.pt,0,0,this),this.p=at.getProp(Z,L.p,1,0,this),this.r=at.getProp(Z,L.r,0,Jt,this),this.or=at.getProp(Z,L.or,0,0,this),this.os=at.getProp(Z,L.os,0,.01,this),this.localShapeCollection=Fa.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:D,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,j=Math.PI*2/L,H=!0,ne=this.or.v,ue=this.ir.v,me=this.os.v,Oe=this.is.v,nt=2*Math.PI*ne/(L*2),tt=2*Math.PI*ue/(L*2),Ve,st,ct,Le,$e=-Math.PI/2;$e+=this.r.v;var ce=this.data.d===3?-1:1;for(this.v._length=0,Ve=0;Ve<L;Ve+=1){st=H?ne:ue,ct=H?me:Oe,Le=H?nt:tt;var Q=st*Math.cos($e),ve=st*Math.sin($e),Ke=Q===0&&ve===0?0:ve/Math.sqrt(Q*Q+ve*ve),Ie=Q===0&&ve===0?0:-Q/Math.sqrt(Q*Q+ve*ve);Q+=+this.p.v[0],ve+=+this.p.v[1],this.v.setTripleAt(Q,ve,Q-Ke*Le*ct*ce,ve-Ie*Le*ct*ce,Q+Ke*Le*ct*ce,ve+Ie*Le*ct*ce,Ve,!0),H=!H,$e+=j*ce}},convertPolygonToPath:function(){var L=Math.floor(this.pt.v),j=Math.PI*2/L,H=this.or.v,ne=this.os.v,ue=2*Math.PI*H/(L*4),me,Oe=-Math.PI*.5,nt=this.data.d===3?-1:1;for(Oe+=this.r.v,this.v._length=0,me=0;me<L;me+=1){var tt=H*Math.cos(Oe),Ve=H*Math.sin(Oe),st=tt===0&&Ve===0?0:Ve/Math.sqrt(tt*tt+Ve*Ve),ct=tt===0&&Ve===0?0:-tt/Math.sqrt(tt*tt+Ve*Ve);tt+=+this.p.v[0],Ve+=+this.p.v[1],this.v.setTripleAt(tt,Ve,tt-st*ue*ne*nt,Ve-ct*ue*ne*nt,tt+st*ue*ne*nt,Ve+ct*ue*ne*nt,me,!0),Oe+=j*nt}this.paths.length=0,this.paths[0]=this.v}},Be([dn],W),W}(),k=function(){function W(Z,L){this.v=Yn.newElement(),this.v.c=!0,this.localShapeCollection=Fa.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Z,this.comp=Z.comp,this.frameId=-1,this.d=L.d,this.initDynamicPropertyContainer(Z),this.p=at.getProp(Z,L.p,1,0,this),this.s=at.getProp(Z,L.s,1,0,this),this.r=at.getProp(Z,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],j=this.p.v[1],H=this.s.v[0]/2,ne=this.s.v[1]/2,ue=_t(H,ne,this.r.v),me=ue*(1-xe);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(L+H,j-ne+ue,L+H,j-ne+ue,L+H,j-ne+me,0,!0),this.v.setTripleAt(L+H,j+ne-ue,L+H,j+ne-me,L+H,j+ne-ue,1,!0),ue!==0?(this.v.setTripleAt(L+H-ue,j+ne,L+H-ue,j+ne,L+H-me,j+ne,2,!0),this.v.setTripleAt(L-H+ue,j+ne,L-H+me,j+ne,L-H+ue,j+ne,3,!0),this.v.setTripleAt(L-H,j+ne-ue,L-H,j+ne-ue,L-H,j+ne-me,4,!0),this.v.setTripleAt(L-H,j-ne+ue,L-H,j-ne+me,L-H,j-ne+ue,5,!0),this.v.setTripleAt(L-H+ue,j-ne,L-H+ue,j-ne,L-H+me,j-ne,6,!0),this.v.setTripleAt(L+H-ue,j-ne,L+H-me,j-ne,L+H-ue,j-ne,7,!0)):(this.v.setTripleAt(L-H,j+ne,L-H+me,j+ne,L-H,j+ne,2),this.v.setTripleAt(L-H,j-ne,L-H,j-ne+me,L-H,j-ne,3))):(this.v.setTripleAt(L+H,j-ne+ue,L+H,j-ne+me,L+H,j-ne+ue,0,!0),ue!==0?(this.v.setTripleAt(L+H-ue,j-ne,L+H-ue,j-ne,L+H-me,j-ne,1,!0),this.v.setTripleAt(L-H+ue,j-ne,L-H+me,j-ne,L-H+ue,j-ne,2,!0),this.v.setTripleAt(L-H,j-ne+ue,L-H,j-ne+ue,L-H,j-ne+me,3,!0),this.v.setTripleAt(L-H,j+ne-ue,L-H,j+ne-me,L-H,j+ne-ue,4,!0),this.v.setTripleAt(L-H+ue,j+ne,L-H+ue,j+ne,L-H+me,j+ne,5,!0),this.v.setTripleAt(L+H-ue,j+ne,L+H-me,j+ne,L+H-ue,j+ne,6,!0),this.v.setTripleAt(L+H,j+ne-ue,L+H,j+ne-ue,L+H,j+ne-me,7,!0)):(this.v.setTripleAt(L-H,j-ne,L-H+me,j-ne,L-H,j-ne,1,!0),this.v.setTripleAt(L-H,j+ne,L-H,j+ne-me,L-H,j+ne,2,!0),this.v.setTripleAt(L+H,j+ne,L+H-me,j+ne,L+H,j+ne,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:D},Be([dn],W),W}();function ee(W,Z,L){var j;if(L===3||L===4){var H=L===3?Z.pt:Z.ks,ne=H.k;ne.length?j=new De(W,Z,L):j=new ge(W,Z,L)}else L===5?j=new k(W,Z):L===6?j=new Ce(W,Z):L===7&&(j=new Re(W,Z));return j.k&&W.addDynamicProperty(j),j}function Y(){return ge}function pe(){return De}var he={};return he.getShapeProp=ee,he.getConstructorFunction=Y,he.getKeyframedConstructorFunction=pe,he}();/*!
|
|
86
|
-
Transformation Matrix v2.0
|
|
87
|
-
(c) Epistemex 2014-2015
|
|
88
|
-
www.epistemex.com
|
|
89
|
-
By Ken Fyrstenberg
|
|
90
|
-
Contributions by leeoniya.
|
|
91
|
-
License: MIT, header required.
|
|
92
|
-
*/var Rn=function(){var c=Math.cos,p=Math.sin,v=Math.tan,D=Math.round;function _(){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 B(ce){if(ce===0)return this;var Q=c(ce),ve=p(ce);return this._t(Q,-ve,0,0,ve,Q,0,0,0,0,1,0,0,0,0,1)}function U(ce){if(ce===0)return this;var Q=c(ce),ve=p(ce);return this._t(1,0,0,0,0,Q,-ve,0,0,ve,Q,0,0,0,0,1)}function ge(ce){if(ce===0)return this;var Q=c(ce),ve=p(ce);return this._t(Q,0,ve,0,0,1,0,0,-ve,0,Q,0,0,0,0,1)}function J(ce){if(ce===0)return this;var Q=c(ce),ve=p(ce);return this._t(Q,-ve,0,0,ve,Q,0,0,0,0,1,0,0,0,0,1)}function De(ce,Q){return this._t(1,Q,ce,1,0,0)}function Ce(ce,Q){return this.shear(v(ce),v(Q))}function Re(ce,Q){var ve=c(Q),Ke=p(Q);return this._t(ve,Ke,0,0,-Ke,ve,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,v(ce),1,0,0,0,0,1,0,0,0,0,1)._t(ve,-Ke,0,0,Ke,ve,0,0,0,0,1,0,0,0,0,1)}function k(ce,Q,ve){return!ve&&ve!==0&&(ve=1),ce===1&&Q===1&&ve===1?this:this._t(ce,0,0,0,0,Q,0,0,0,0,ve,0,0,0,0,1)}function ee(ce,Q,ve,Ke,Ie,lt,St,Et,Dn,Ut,dr,Zn,Ln,jn,Kn,vr){return this.props[0]=ce,this.props[1]=Q,this.props[2]=ve,this.props[3]=Ke,this.props[4]=Ie,this.props[5]=lt,this.props[6]=St,this.props[7]=Et,this.props[8]=Dn,this.props[9]=Ut,this.props[10]=dr,this.props[11]=Zn,this.props[12]=Ln,this.props[13]=jn,this.props[14]=Kn,this.props[15]=vr,this}function Y(ce,Q,ve){return ve=ve||0,ce!==0||Q!==0||ve!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,ce,Q,ve,1):this}function pe(ce,Q,ve,Ke,Ie,lt,St,Et,Dn,Ut,dr,Zn,Ln,jn,Kn,vr){var dt=this.props;if(ce===1&&Q===0&&ve===0&&Ke===0&&Ie===0&<===1&&St===0&&Et===0&&Dn===0&&Ut===0&&dr===1&&Zn===0)return dt[12]=dt[12]*ce+dt[15]*Ln,dt[13]=dt[13]*lt+dt[15]*jn,dt[14]=dt[14]*dr+dt[15]*Kn,dt[15]*=vr,this._identityCalculated=!1,this;var ln=dt[0],Zr=dt[1],Fi=dt[2],sa=dt[3],mi=dt[4],ua=dt[5],la=dt[6],Yt=dt[7],$n=dt[8],ja=dt[9],gi=dt[10],ca=dt[11],vi=dt[12],da=dt[13],Ka=dt[14],is=dt[15];return dt[0]=ln*ce+Zr*Ie+Fi*Dn+sa*Ln,dt[1]=ln*Q+Zr*lt+Fi*Ut+sa*jn,dt[2]=ln*ve+Zr*St+Fi*dr+sa*Kn,dt[3]=ln*Ke+Zr*Et+Fi*Zn+sa*vr,dt[4]=mi*ce+ua*Ie+la*Dn+Yt*Ln,dt[5]=mi*Q+ua*lt+la*Ut+Yt*jn,dt[6]=mi*ve+ua*St+la*dr+Yt*Kn,dt[7]=mi*Ke+ua*Et+la*Zn+Yt*vr,dt[8]=$n*ce+ja*Ie+gi*Dn+ca*Ln,dt[9]=$n*Q+ja*lt+gi*Ut+ca*jn,dt[10]=$n*ve+ja*St+gi*dr+ca*Kn,dt[11]=$n*Ke+ja*Et+gi*Zn+ca*vr,dt[12]=vi*ce+da*Ie+Ka*Dn+is*Ln,dt[13]=vi*Q+da*lt+Ka*Ut+is*jn,dt[14]=vi*ve+da*St+Ka*dr+is*Kn,dt[15]=vi*Ke+da*Et+Ka*Zn+is*vr,this._identityCalculated=!1,this}function he(){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(ce){for(var Q=0;Q<16;){if(ce.props[Q]!==this.props[Q])return!1;Q+=1}return!0}function Z(ce){var Q;for(Q=0;Q<16;Q+=1)ce.props[Q]=this.props[Q];return ce}function L(ce){var Q;for(Q=0;Q<16;Q+=1)this.props[Q]=ce[Q]}function j(ce,Q,ve){return{x:ce*this.props[0]+Q*this.props[4]+ve*this.props[8]+this.props[12],y:ce*this.props[1]+Q*this.props[5]+ve*this.props[9]+this.props[13],z:ce*this.props[2]+Q*this.props[6]+ve*this.props[10]+this.props[14]}}function H(ce,Q,ve){return ce*this.props[0]+Q*this.props[4]+ve*this.props[8]+this.props[12]}function ne(ce,Q,ve){return ce*this.props[1]+Q*this.props[5]+ve*this.props[9]+this.props[13]}function ue(ce,Q,ve){return ce*this.props[2]+Q*this.props[6]+ve*this.props[10]+this.props[14]}function me(){var ce=this.props[0]*this.props[5]-this.props[1]*this.props[4],Q=this.props[5]/ce,ve=-this.props[1]/ce,Ke=-this.props[4]/ce,Ie=this.props[0]/ce,lt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/ce,St=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/ce,Et=new Rn;return Et.props[0]=Q,Et.props[1]=ve,Et.props[4]=Ke,Et.props[5]=Ie,Et.props[12]=lt,Et.props[13]=St,Et}function Oe(ce){var Q=this.getInverseMatrix();return Q.applyToPointArray(ce[0],ce[1],ce[2]||0)}function nt(ce){var Q,ve=ce.length,Ke=[];for(Q=0;Q<ve;Q+=1)Ke[Q]=Oe(ce[Q]);return Ke}function tt(ce,Q,ve){var Ke=Ne("float32",6);if(this.isIdentity())Ke[0]=ce[0],Ke[1]=ce[1],Ke[2]=Q[0],Ke[3]=Q[1],Ke[4]=ve[0],Ke[5]=ve[1];else{var Ie=this.props[0],lt=this.props[1],St=this.props[4],Et=this.props[5],Dn=this.props[12],Ut=this.props[13];Ke[0]=ce[0]*Ie+ce[1]*St+Dn,Ke[1]=ce[0]*lt+ce[1]*Et+Ut,Ke[2]=Q[0]*Ie+Q[1]*St+Dn,Ke[3]=Q[0]*lt+Q[1]*Et+Ut,Ke[4]=ve[0]*Ie+ve[1]*St+Dn,Ke[5]=ve[0]*lt+ve[1]*Et+Ut}return Ke}function Ve(ce,Q,ve){var Ke;return this.isIdentity()?Ke=[ce,Q,ve]:Ke=[ce*this.props[0]+Q*this.props[4]+ve*this.props[8]+this.props[12],ce*this.props[1]+Q*this.props[5]+ve*this.props[9]+this.props[13],ce*this.props[2]+Q*this.props[6]+ve*this.props[10]+this.props[14]],Ke}function st(ce,Q){if(this.isIdentity())return ce+","+Q;var ve=this.props;return Math.round((ce*ve[0]+Q*ve[4]+ve[12])*100)/100+","+Math.round((ce*ve[1]+Q*ve[5]+ve[13])*100)/100}function ct(){for(var ce=0,Q=this.props,ve="matrix3d(",Ke=1e4;ce<16;)ve+=D(Q[ce]*Ke)/Ke,ve+=ce===15?")":",",ce+=1;return ve}function Le(ce){var Q=1e4;return ce<1e-6&&ce>0||ce>-1e-6&&ce<0?D(ce*Q)/Q:ce}function $e(){var ce=this.props,Q=Le(ce[0]),ve=Le(ce[1]),Ke=Le(ce[4]),Ie=Le(ce[5]),lt=Le(ce[12]),St=Le(ce[13]);return"matrix("+Q+","+ve+","+Ke+","+Ie+","+lt+","+St+")"}return function(){this.reset=_,this.rotate=B,this.rotateX=U,this.rotateY=ge,this.rotateZ=J,this.skew=Ce,this.skewFromAxis=Re,this.shear=De,this.scale=k,this.setTransform=ee,this.translate=Y,this.transform=pe,this.applyToPoint=j,this.applyToX=H,this.applyToY=ne,this.applyToZ=ue,this.applyToPointArray=Ve,this.applyToTriplePoints=tt,this.applyToPointStringified=st,this.toCSS=ct,this.to2dCSS=$e,this.clone=Z,this.cloneFromProps=L,this.equals=W,this.inversePoints=nt,this.inversePoint=Oe,this.getInverseMatrix=me,this._t=this.transform,this.isIdentity=he,this._identity=!0,this._identityCalculated=!1,this.props=Ne("float32",16),this.reset()}}();function Qo(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qo=function(v){return typeof v}:Qo=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},Qo(c)}var jt={};function _c(c){le(c)}function Wu(){wn.searchAnimations()}function Bc(c){qt(c)}function Ms(c){Bs(c)}function co(c){return wn.loadAnimation(c)}function Hu(c){if(typeof c=="string")switch(c){case"high":Br(200);break;default:case"medium":Br(50);break;case"low":Br(10);break}else!isNaN(c)&&c>1&&Br(c)}function Rs(){return typeof navigator<"u"}function Fc(c,p){c==="expressions"&&Hr(p)}function kc(c){switch(c){case"propertyFactory":return at;case"shapePropertyFactory":return fi;case"matrix":return Rn;default:return null}}jt.play=wn.play,jt.pause=wn.pause,jt.setLocationHref=_c,jt.togglePause=wn.togglePause,jt.setSpeed=wn.setSpeed,jt.setDirection=wn.setDirection,jt.stop=wn.stop,jt.searchAnimations=Wu,jt.registerAnimation=wn.registerAnimation,jt.loadAnimation=co,jt.setSubframeRendering=Bc,jt.resize=wn.resize,jt.goToAndStop=wn.goToAndStop,jt.destroy=wn.destroy,jt.setQuality=Hu,jt.inBrowser=Rs,jt.installPlugin=Fc,jt.freeze=wn.freeze,jt.unfreeze=wn.unfreeze,jt.setVolume=wn.setVolume,jt.mute=wn.mute,jt.unmute=wn.unmute,jt.getRegisteredAnimations=wn.getRegisteredAnimations,jt.useWebWorker=M,jt.setIDPrefix=Ms,jt.__getFactory=kc,jt.version="5.10.2";function Mc(){document.readyState==="complete"&&(clearInterval(Zu),Wu())}function Gu(c){for(var p=Is.split("&"),v=0;v<p.length;v+=1){var D=p[v].split("=");if(decodeURIComponent(D[0])==c)return decodeURIComponent(D[1])}return null}var Is="";{var Os=document.getElementsByTagName("script"),fo=Os.length-1,Yu=Os[fo]||{src:""};Is=Yu.src?Yu.src.replace(/^[^\?]+\??/,""):"",Gu("renderer")}var Zu=setInterval(Mc,100);try{Qo(G)!=="object"&&(window.bodymovin=jt)}catch{}var Fr=function(){var c={},p={};c.registerModifier=v,c.getModifier=D;function v(_,B){p[_]||(p[_]=B)}function D(_,B,U){return new p[_](B,U)}return c}();function mr(){}mr.prototype.initModifierProperties=function(){},mr.prototype.addShapeToModifier=function(){},mr.prototype.addShape=function(c){if(!this.closed){c.sh.container.addDynamicProperty(c.sh);var p={shape:c.sh,data:c,localShapeCollection:Fa.newShapeCollection()};this.shapes.push(p),this.addShapeToModifier(p),this._isAnimated&&c.setAsAnimated()}},mr.prototype.init=function(c,p){this.shapes=[],this.elem=c,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,p),this.frameId=fe,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},mr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},Be([dn],mr);function kr(){}Be([mr],kr),kr.prototype.initModifierProperties=function(c,p){this.s=at.getProp(c,p.s,0,.01,this),this.e=at.getProp(c,p.e,0,.01,this),this.o=at.getProp(c,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},kr.prototype.addShapeToModifier=function(c){c.pathsData=[]},kr.prototype.calculateShapeEdges=function(c,p,v,D,_){var B=[];p<=1?B.push({s:c,e:p}):c>=1?B.push({s:c-1,e:p-1}):(B.push({s:c,e:1}),B.push({s:0,e:p-1}));var U=[],ge,J=B.length,De;for(ge=0;ge<J;ge+=1)if(De=B[ge],!(De.e*_<D||De.s*_>D+v)){var Ce,Re;De.s*_<=D?Ce=0:Ce=(De.s*_-D)/v,De.e*_>=D+v?Re=1:Re=(De.e*_-D)/v,U.push([Ce,Re])}return U.length||U.push([0,0]),U},kr.prototype.releasePathsData=function(c){var p,v=c.length;for(p=0;p<v;p+=1)Uu.release(c[p]);return c.length=0,c},kr.prototype.processShapes=function(c){var p,v;if(this._mdf||c){var D=this.o.v%360/360;if(D<0&&(D+=1),this.s.v>1?p=1+D:this.s.v<0?p=0+D:p=this.s.v+D,this.e.v>1?v=1+D:this.e.v<0?v=0+D:v=this.e.v+D,p>v){var _=p;p=v,v=_}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 B,U,ge=this.shapes.length,J,De,Ce,Re,k,ee=0;if(v===p)for(U=0;U<ge;U+=1)this.shapes[U].localShapeCollection.releaseShapes(),this.shapes[U].shape._mdf=!0,this.shapes[U].shape.paths=this.shapes[U].localShapeCollection,this._mdf&&(this.shapes[U].pathsData.length=0);else if(v===1&&p===0||v===0&&p===1){if(this._mdf)for(U=0;U<ge;U+=1)this.shapes[U].pathsData.length=0,this.shapes[U].shape._mdf=!0}else{var Y=[],pe,he;for(U=0;U<ge;U+=1)if(pe=this.shapes[U],!pe.shape._mdf&&!this._mdf&&!c&&this.m!==2)pe.shape.paths=pe.localShapeCollection;else{if(B=pe.shape.paths,De=B._length,k=0,!pe.shape._mdf&&pe.pathsData.length)k=pe.totalShapeLength;else{for(Ce=this.releasePathsData(pe.pathsData),J=0;J<De;J+=1)Re=Gr.getSegmentsLength(B.shapes[J]),Ce.push(Re),k+=Re.totalLength;pe.totalShapeLength=k,pe.pathsData=Ce}ee+=k,pe.shape._mdf=!0}var W=p,Z=v,L=0,j;for(U=ge-1;U>=0;U-=1)if(pe=this.shapes[U],pe.shape._mdf){for(he=pe.localShapeCollection,he.releaseShapes(),this.m===2&&ge>1?(j=this.calculateShapeEdges(p,v,pe.totalShapeLength,L,ee),L+=pe.totalShapeLength):j=[[W,Z]],De=j.length,J=0;J<De;J+=1){W=j[J][0],Z=j[J][1],Y.length=0,Z<=1?Y.push({s:pe.totalShapeLength*W,e:pe.totalShapeLength*Z}):W>=1?Y.push({s:pe.totalShapeLength*(W-1),e:pe.totalShapeLength*(Z-1)}):(Y.push({s:pe.totalShapeLength*W,e:pe.totalShapeLength}),Y.push({s:0,e:pe.totalShapeLength*(Z-1)}));var H=this.addShapes(pe,Y[0]);if(Y[0].s!==Y[0].e){if(Y.length>1){var ne=pe.shape.paths.shapes[pe.shape.paths._length-1];if(ne.c){var ue=H.pop();this.addPaths(H,he),H=this.addShapes(pe,Y[1],ue)}else this.addPaths(H,he),H=this.addShapes(pe,Y[1])}this.addPaths(H,he)}}pe.shape.paths=he}}},kr.prototype.addPaths=function(c,p){var v,D=c.length;for(v=0;v<D;v+=1)p.addShape(c[v])},kr.prototype.addSegment=function(c,p,v,D,_,B,U){_.setXYAt(p[0],p[1],"o",B),_.setXYAt(v[0],v[1],"i",B+1),U&&_.setXYAt(c[0],c[1],"v",B),_.setXYAt(D[0],D[1],"v",B+1)},kr.prototype.addSegmentFromArray=function(c,p,v,D){p.setXYAt(c[1],c[5],"o",v),p.setXYAt(c[2],c[6],"i",v+1),D&&p.setXYAt(c[0],c[4],"v",v),p.setXYAt(c[3],c[7],"v",v+1)},kr.prototype.addShapes=function(c,p,v){var D=c.pathsData,_=c.shape.paths.shapes,B,U=c.shape.paths._length,ge,J,De=0,Ce,Re,k,ee,Y=[],pe,he=!0;for(v?(Re=v._length,pe=v._length):(v=Yn.newElement(),Re=0,pe=0),Y.push(v),B=0;B<U;B+=1){for(k=D[B].lengths,v.c=_[B].c,J=_[B].c?k.length:k.length+1,ge=1;ge<J;ge+=1)if(Ce=k[ge-1],De+Ce.addedLength<p.s)De+=Ce.addedLength,v.c=!1;else if(De>p.e){v.c=!1;break}else p.s<=De&&p.e>=De+Ce.addedLength?(this.addSegment(_[B].v[ge-1],_[B].o[ge-1],_[B].i[ge],_[B].v[ge],v,Re,he),he=!1):(ee=Gr.getNewSegment(_[B].v[ge-1],_[B].v[ge],_[B].o[ge-1],_[B].i[ge],(p.s-De)/Ce.addedLength,(p.e-De)/Ce.addedLength,k[ge-1]),this.addSegmentFromArray(ee,v,Re,he),he=!1,v.c=!1),De+=Ce.addedLength,Re+=1;if(_[B].c&&k.length){if(Ce=k[ge-1],De<=p.e){var W=k[ge-1].addedLength;p.s<=De&&p.e>=De+W?(this.addSegment(_[B].v[ge-1],_[B].o[ge-1],_[B].i[0],_[B].v[0],v,Re,he),he=!1):(ee=Gr.getNewSegment(_[B].v[ge-1],_[B].v[0],_[B].o[ge-1],_[B].i[0],(p.s-De)/W,(p.e-De)/W,k[ge-1]),this.addSegmentFromArray(ee,v,Re,he),he=!1,v.c=!1)}else v.c=!1;De+=Ce.addedLength,Re+=1}if(v._length&&(v.setXYAt(v.v[pe][0],v.v[pe][1],"i",pe),v.setXYAt(v.v[v._length-1][0],v.v[v._length-1][1],"o",v._length-1)),De>p.e)break;B<U-1&&(v=Yn.newElement(),he=!0,Y.push(v),Re=0)}return Y};function ka(){}Be([mr],ka),ka.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amount=at.getProp(c,p.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},ka.prototype.processPath=function(c,p){var v=p/100,D=[0,0],_=c._length,B=0;for(B=0;B<_;B+=1)D[0]+=c.v[B][0],D[1]+=c.v[B][1];D[0]/=_,D[1]/=_;var U=Yn.newElement();U.c=c.c;var ge,J,De,Ce,Re,k;for(B=0;B<_;B+=1)ge=c.v[B][0]+(D[0]-c.v[B][0])*v,J=c.v[B][1]+(D[1]-c.v[B][1])*v,De=c.o[B][0]+(D[0]-c.o[B][0])*-v,Ce=c.o[B][1]+(D[1]-c.o[B][1])*-v,Re=c.i[B][0]+(D[0]-c.i[B][0])*-v,k=c.i[B][1]+(D[1]-c.i[B][1])*-v,U.setTripleAt(ge,J,De,Ce,Re,k,B);return U},ka.prototype.processShapes=function(c){var p,v,D=this.shapes.length,_,B,U=this.amount.v;if(U!==0){var ge,J;for(v=0;v<D;v+=1){if(ge=this.shapes[v],J=ge.localShapeCollection,!(!ge.shape._mdf&&!this._mdf&&!c))for(J.releaseShapes(),ge.shape._mdf=!0,p=ge.shape.paths.shapes,B=ge.shape.paths._length,_=0;_<B;_+=1)J.addShape(this.processPath(p[_],U));ge.shape.paths=ge.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Jo=function(){var c=[0,0];function p(J){var De=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||De,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 De;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(De=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)/De,0),Re=this.p.getValueAtTime(this.p.keyframes[0].t/De,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/De,0),Re=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/De,0)):(Ce=this.p.pv,Re=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/De,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){Ce=[],Re=[];var k=this.px,ee=this.py;k._caching.lastFrame+k.offsetTime<=k.keyframes[0].t?(Ce[0]=k.getValueAtTime((k.keyframes[0].t+.01)/De,0),Ce[1]=ee.getValueAtTime((ee.keyframes[0].t+.01)/De,0),Re[0]=k.getValueAtTime(k.keyframes[0].t/De,0),Re[1]=ee.getValueAtTime(ee.keyframes[0].t/De,0)):k._caching.lastFrame+k.offsetTime>=k.keyframes[k.keyframes.length-1].t?(Ce[0]=k.getValueAtTime(k.keyframes[k.keyframes.length-1].t/De,0),Ce[1]=ee.getValueAtTime(ee.keyframes[ee.keyframes.length-1].t/De,0),Re[0]=k.getValueAtTime((k.keyframes[k.keyframes.length-1].t-.01)/De,0),Re[1]=ee.getValueAtTime((ee.keyframes[ee.keyframes.length-1].t-.01)/De,0)):(Ce=[k.pv,ee.pv],Re[0]=k.getValueAtTime((k._caching.lastFrame+k.offsetTime-.01)/De,k.offsetTime),Re[1]=ee.getValueAtTime((ee._caching.lastFrame+ee.offsetTime-.01)/De,ee.offsetTime))}else Re=c,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 D(){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 _(){}function B(J){this._addDynamicProperty(J),this.elem.addDynamicProperty(J),this._isDirty=!0}function U(J,De,Ce){if(this.elem=J,this.frameId=-1,this.propType="transform",this.data=De,this.v=new Rn,this.pre=new Rn,this.appliedTransformations=0,this.initDynamicPropertyContainer(Ce||J),De.p&&De.p.s?(this.px=at.getProp(J,De.p.x,0,0,this),this.py=at.getProp(J,De.p.y,0,0,this),De.p.z&&(this.pz=at.getProp(J,De.p.z,0,0,this))):this.p=at.getProp(J,De.p||{k:[0,0,0]},1,0,this),De.rx){if(this.rx=at.getProp(J,De.rx,0,Jt,this),this.ry=at.getProp(J,De.ry,0,Jt,this),this.rz=at.getProp(J,De.rz,0,Jt,this),De.or.k[0].ti){var Re,k=De.or.k.length;for(Re=0;Re<k;Re+=1)De.or.k[Re].to=null,De.or.k[Re].ti=null}this.or=at.getProp(J,De.or,1,Jt,this),this.or.sh=!0}else this.r=at.getProp(J,De.r||{k:0},0,Jt,this);De.sk&&(this.sk=at.getProp(J,De.sk,0,Jt,this),this.sa=at.getProp(J,De.sa,0,Jt,this)),this.a=at.getProp(J,De.a||{k:[0,0,0]},1,0,this),this.s=at.getProp(J,De.s||{k:[100,100,100]},1,.01,this),De.o?this.o=at.getProp(J,De.o,0,.01,J):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}U.prototype={applyToMatrix:p,getValue:v,precalculateMatrix:D,autoOrient:_},Be([dn],U),U.prototype.addDynamicProperty=B,U.prototype._addDynamicProperty=dn.prototype.addDynamicProperty;function ge(J,De,Ce){return new U(J,De,Ce)}return{getTransformProperty:ge}}();function gr(){}Be([mr],gr),gr.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.c=at.getProp(c,p.c,0,null,this),this.o=at.getProp(c,p.o,0,null,this),this.tr=Jo.getTransformProperty(c,p.tr,this),this.so=at.getProp(c,p.tr.so,0,.01,this),this.eo=at.getProp(c,p.tr.eo,0,.01,this),this.data=p,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Rn,this.rMatrix=new Rn,this.sMatrix=new Rn,this.tMatrix=new Rn,this.matrix=new Rn},gr.prototype.applyTransforms=function(c,p,v,D,_,B){var U=B?-1:1,ge=D.s.v[0]+(1-D.s.v[0])*(1-_),J=D.s.v[1]+(1-D.s.v[1])*(1-_);c.translate(D.p.v[0]*U*_,D.p.v[1]*U*_,D.p.v[2]),p.translate(-D.a.v[0],-D.a.v[1],D.a.v[2]),p.rotate(-D.r.v*U*_),p.translate(D.a.v[0],D.a.v[1],D.a.v[2]),v.translate(-D.a.v[0],-D.a.v[1],D.a.v[2]),v.scale(B?1/ge:ge,B?1/J:J),v.translate(D.a.v[0],D.a.v[1],D.a.v[2])},gr.prototype.init=function(c,p,v,D){for(this.elem=c,this.arr=p,this.pos=v,this.elemsData=D,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,p[v]);v>0;)v-=1,this._elements.unshift(p[v]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},gr.prototype.resetElements=function(c){var p,v=c.length;for(p=0;p<v;p+=1)c[p]._processed=!1,c[p].ty==="gr"&&this.resetElements(c[p].it)},gr.prototype.cloneElements=function(c){var p=JSON.parse(JSON.stringify(c));return this.resetElements(p),p},gr.prototype.changeGroupRender=function(c,p){var v,D=c.length;for(v=0;v<D;v+=1)c[v]._render=p,c[v].ty==="gr"&&this.changeGroupRender(c[v].it,p)},gr.prototype.processShapes=function(c){var p,v,D,_,B,U=!1;if(this._mdf||c){var ge=Math.ceil(this.c.v);if(this._groups.length<ge){for(;this._groups.length<ge;){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(),U=!0}B=0;var De;for(D=0;D<=this._groups.length-1;D+=1){if(De=B<ge,this._groups[D]._render=De,this.changeGroupRender(this._groups[D].it,De),!De){var Ce=this.elemsData[D].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}B+=1}this._currentCopies=ge;var k=this.o.v,ee=k%1,Y=k>0?Math.floor(k):Math.ceil(k),pe=this.pMatrix.props,he=this.rMatrix.props,W=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Z=0;if(k>0){for(;Z<Y;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),Z+=1;ee&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,ee,!1),Z+=ee)}else if(k<0){for(;Z>Y;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),Z-=1;ee&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-ee,!0),Z-=ee)}D=this.data.m===1?0:this._currentCopies-1,_=this.data.m===1?1:-1,B=this._currentCopies;for(var L,j;B;){if(p=this.elemsData[D].it,v=p[p.length-1].transform.mProps.v.props,j=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)*(D/(this._currentCopies-1)),Z!==0){for((D!==0&&_===1||D!==this._currentCopies-1&&_===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),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]),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(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]),L=0;L<j;L+=1)v[L]=this.matrix.props[L];this.matrix.reset()}else for(this.matrix.reset(),L=0;L<j;L+=1)v[L]=this.matrix.props[L];Z+=1,B-=1,D+=_}}else for(B=this._currentCopies,D=0,_=1;B;)p=this.elemsData[D].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,B-=1,D+=_;return U},gr.prototype.addShape=function(){};function ho(){}Be([mr],ho),ho.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.rd=at.getProp(c,p.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},ho.prototype.processPath=function(c,p){var v=Yn.newElement();v.c=c.c;var D,_=c._length,B,U,ge,J,De,Ce,Re=0,k,ee,Y,pe,he,W;for(D=0;D<_;D+=1)B=c.v[D],ge=c.o[D],U=c.i[D],B[0]===ge[0]&&B[1]===ge[1]&&B[0]===U[0]&&B[1]===U[1]?(D===0||D===_-1)&&!c.c?(v.setTripleAt(B[0],B[1],ge[0],ge[1],U[0],U[1],Re),Re+=1):(D===0?J=c.v[_-1]:J=c.v[D-1],De=Math.sqrt(Math.pow(B[0]-J[0],2)+Math.pow(B[1]-J[1],2)),Ce=De?Math.min(De/2,p)/De:0,he=B[0]+(J[0]-B[0])*Ce,k=he,W=B[1]-(B[1]-J[1])*Ce,ee=W,Y=k-(k-B[0])*xe,pe=ee-(ee-B[1])*xe,v.setTripleAt(k,ee,Y,pe,he,W,Re),Re+=1,D===_-1?J=c.v[0]:J=c.v[D+1],De=Math.sqrt(Math.pow(B[0]-J[0],2)+Math.pow(B[1]-J[1],2)),Ce=De?Math.min(De/2,p)/De:0,Y=B[0]+(J[0]-B[0])*Ce,k=Y,pe=B[1]+(J[1]-B[1])*Ce,ee=pe,he=k-(k-B[0])*xe,W=ee-(ee-B[1])*xe,v.setTripleAt(k,ee,Y,pe,he,W,Re),Re+=1):(v.setTripleAt(c.v[D][0],c.v[D][1],c.o[D][0],c.o[D][1],c.i[D][0],c.i[D][1],Re),Re+=1);return v},ho.prototype.processShapes=function(c){var p,v,D=this.shapes.length,_,B,U=this.rd.v;if(U!==0){var ge,J;for(v=0;v<D;v+=1){if(ge=this.shapes[v],J=ge.localShapeCollection,!(!ge.shape._mdf&&!this._mdf&&!c))for(J.releaseShapes(),ge.shape._mdf=!0,p=ge.shape.paths.shapes,B=ge.shape.paths._length,_=0;_<B;_+=1)J.addShape(this.processPath(p[_],U));ge.shape.paths=ge.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function po(c,p){return Math.abs(c-p)*1e5<=Math.min(Math.abs(c),Math.abs(p))}function Si(c){return Math.abs(c)<=1e-5}function hi(c,p,v){return c*(1-v)+p*v}function or(c,p,v){return[hi(c[0],p[0],v),hi(c[1],p[1],v)]}function Ti(c,p,v){if(c===0)return[];var D=p*p-4*c*v;if(D<0)return[];var _=-p/(2*c);if(D===0)return[_];var B=Math.sqrt(D)/(2*c);return[_-B,_+B]}function Ls(c,p,v,D){return[-c+3*p-3*v+D,3*c-6*p+3*v,-3*c+3*p,c]}function Xu(c){return new pn(c,c,c,c,!1)}function pn(c,p,v,D,_){_&&ia(c,p)&&(p=or(c,D,1/3)),_&&ia(v,D)&&(v=or(c,D,2/3));var B=Ls(c[0],p[0],v[0],D[0]),U=Ls(c[1],p[1],v[1],D[1]);this.a=[B[0],U[0]],this.b=[B[1],U[1]],this.c=[B[2],U[2]],this.d=[B[3],U[3]],this.points=[c,p,v,D]}pn.prototype.point=function(c){return[((this.a[0]*c+this.b[0])*c+this.c[0])*c+this.d[0],((this.a[1]*c+this.b[1])*c+this.c[1])*c+this.d[1]]},pn.prototype.derivative=function(c){return[(3*c*this.a[0]+2*this.b[0])*c+this.c[0],(3*c*this.a[1]+2*this.b[1])*c+this.c[1]]},pn.prototype.tangentAngle=function(c){var p=this.derivative(c);return Math.atan2(p[1],p[0])},pn.prototype.normalAngle=function(c){var p=this.derivative(c);return Math.atan2(p[0],p[1])},pn.prototype.inflectionPoints=function(){var c=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Si(c))return[];var p=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/c,v=p*p-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/c;if(v<0)return[];var D=Math.sqrt(v);return Si(D)?D>0&&D<1?[p]:[]:[p-D,p+D].filter(function(_){return _>0&&_<1})},pn.prototype.split=function(c){if(c<=0)return[Xu(this.points[0]),this];if(c>=1)return[this,Xu(this.points[this.points.length-1])];var p=or(this.points[0],this.points[1],c),v=or(this.points[1],this.points[2],c),D=or(this.points[2],this.points[3],c),_=or(p,v,c),B=or(v,D,c),U=or(_,B,c);return[new pn(this.points[0],p,_,U,!0),new pn(U,B,D,this.points[3],!0)]};function Vs(c,p){var v=c.points[0][p],D=c.points[c.points.length-1][p];if(v>D){var _=D;D=v,v=_}for(var B=Ti(3*c.a[p],2*c.b[p],c.c[p]),U=0;U<B.length;U+=1)if(B[U]>0&&B[U]<1){var ge=c.point(B[U])[p];ge<v?v=ge:ge>D&&(D=ge)}return{min:v,max:D}}pn.prototype.bounds=function(){return{x:Vs(this,0),y:Vs(this,1)}},pn.prototype.boundingBox=function(){var c=this.bounds();return{left:c.x.min,right:c.x.max,top:c.y.min,bottom:c.y.max,width:c.x.max-c.x.min,height:c.y.max-c.y.min,cx:(c.x.max+c.x.min)/2,cy:(c.y.max+c.y.min)/2}};function mo(c,p,v){var D=c.boundingBox();return{cx:D.cx,cy:D.cy,width:D.width,height:D.height,bez:c,t:(p+v)/2,t1:p,t2:v}}function Ns(c){var p=c.bez.split(.5);return[mo(p[0],c.t1,c.t),mo(p[1],c.t,c.t2)]}function Qu(c,p){return Math.abs(c.cx-p.cx)*2<c.width+p.width&&Math.abs(c.cy-p.cy)*2<c.height+p.height}function Mr(c,p,v,D,_,B){if(Qu(c,p)){if(v>=B||c.width<=D&&c.height<=D&&p.width<=D&&p.height<=D){_.push([c.t,p.t]);return}var U=Ns(c),ge=Ns(p);Mr(U[0],ge[0],v+1,D,_,B),Mr(U[0],ge[1],v+1,D,_,B),Mr(U[1],ge[0],v+1,D,_,B),Mr(U[1],ge[1],v+1,D,_,B)}}pn.prototype.intersections=function(c,p,v){p===void 0&&(p=2),v===void 0&&(v=7);var D=[];return Mr(mo(this,0,1),mo(c,0,1),0,p,D,v),D},pn.shapeSegment=function(c,p){var v=(p+1)%c.length();return new pn(c.v[p],c.o[p],c.i[v],c.v[v],!0)},pn.shapeSegmentInverted=function(c,p){var v=(p+1)%c.length();return new pn(c.v[v],c.i[v],c.o[p],c.v[p],!0)};function js(c,p){return[c[1]*p[2]-c[2]*p[1],c[2]*p[0]-c[0]*p[2],c[0]*p[1]-c[1]*p[0]]}function Ma(c,p,v,D){var _=[c[0],c[1],1],B=[p[0],p[1],1],U=[v[0],v[1],1],ge=[D[0],D[1],1],J=js(js(_,B),js(U,ge));return Si(J[2])?null:[J[0]/J[2],J[1]/J[2]]}function Ra(c,p,v){return[c[0]+Math.cos(p)*v,c[1]-Math.sin(p)*v]}function go(c,p){return Math.hypot(c[0]-p[0],c[1]-p[1])}function ia(c,p){return po(c[0],p[0])&&po(c[1],p[1])}function vo(){}Be([mr],vo),vo.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amplitude=at.getProp(c,p.s,0,null,this),this.frequency=at.getProp(c,p.r,0,null,this),this.pointsType=at.getProp(c,p.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function es(c,p,v,D,_,B,U){var ge=v-Math.PI/2,J=v+Math.PI/2,De=p[0]+Math.cos(v)*D*_,Ce=p[1]-Math.sin(v)*D*_;c.setTripleAt(De,Ce,De+Math.cos(ge)*B,Ce-Math.sin(ge)*B,De+Math.cos(J)*U,Ce-Math.sin(J)*U,c.length())}function Ju(c,p){var v=[p[0]-c[0],p[1]-c[1]],D=-Math.PI*.5,_=[Math.cos(D)*v[0]-Math.sin(D)*v[1],Math.sin(D)*v[0]+Math.cos(D)*v[1]];return _}function Rc(c,p){var v=p===0?c.length()-1:p-1,D=(p+1)%c.length(),_=c.v[v],B=c.v[D],U=Ju(_,B);return Math.atan2(0,1)-Math.atan2(U[1],U[0])}function yo(c,p,v,D,_,B,U){var ge=Rc(p,v),J=p.v[v%p._length],De=p.v[v===0?p._length-1:v-1],Ce=p.v[(v+1)%p._length],Re=B===2?Math.sqrt(Math.pow(J[0]-De[0],2)+Math.pow(J[1]-De[1],2)):0,k=B===2?Math.sqrt(Math.pow(J[0]-Ce[0],2)+Math.pow(J[1]-Ce[1],2)):0;es(c,p.v[v%p._length],ge,U,D,k/((_+1)*2),Re/((_+1)*2))}function Ic(c,p,v,D,_,B){for(var U=0;U<D;U+=1){var ge=(U+1)/(D+1),J=_===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,De=p.normalAngle(ge),Ce=p.point(ge);es(c,Ce,De,B,v,J/((D+1)*2),J/((D+1)*2)),B=-B}return B}vo.prototype.processPath=function(c,p,v,D){var _=c._length,B=Yn.newElement();if(B.c=c.c,c.c||(_-=1),_===0)return B;var U=-1,ge=pn.shapeSegment(c,0);yo(B,c,0,p,v,D,U);for(var J=0;J<_;J+=1)U=Ic(B,ge,p,v,D,-U),J===_-1&&!c.c?ge=null:ge=pn.shapeSegment(c,(J+1)%_),yo(B,c,J+1,p,v,D,U);return B},vo.prototype.processShapes=function(c){var p,v,D=this.shapes.length,_,B,U=this.amplitude.v,ge=Math.max(0,Math.round(this.frequency.v)),J=this.pointsType.v;if(U!==0){var De,Ce;for(v=0;v<D;v+=1){if(De=this.shapes[v],Ce=De.localShapeCollection,!(!De.shape._mdf&&!this._mdf&&!c))for(Ce.releaseShapes(),De.shape._mdf=!0,p=De.shape.paths.shapes,B=De.shape.paths._length,_=0;_<B;_+=1)Ce.addShape(this.processPath(p[_],U,ge,J));De.shape.paths=De.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function bo(c,p,v){var D=Math.atan2(p[0]-c[0],p[1]-c[1]);return[Ra(c,D,v),Ra(p,D,v)]}function Gt(c,p){var v,D,_,B,U,ge,J;J=bo(c.points[0],c.points[1],p),v=J[0],D=J[1],J=bo(c.points[1],c.points[2],p),_=J[0],B=J[1],J=bo(c.points[2],c.points[3],p),U=J[0],ge=J[1];var De=Ma(v,D,_,B);De===null&&(De=D);var Ce=Ma(U,ge,_,B);return Ce===null&&(Ce=U),new pn(v,De,Ce,ge)}function en(c,p,v,D,_){var B=p.points[3],U=v.points[0];if(D===3||ia(B,U))return B;if(D===2){var ge=-p.tangentAngle(1),J=-v.tangentAngle(0)+Math.PI,De=Ma(B,Ra(B,ge+Math.PI/2,100),U,Ra(U,ge+Math.PI/2,100)),Ce=De?go(De,B):go(B,U)/2,Re=Ra(B,ge,2*Ce*xe);return c.setXYAt(Re[0],Re[1],"o",c.length()-1),Re=Ra(U,J,2*Ce*xe),c.setTripleAt(U[0],U[1],U[0],U[1],Re[0],Re[1],c.length()),U}var k=ia(B,p.points[2])?p.points[0]:p.points[2],ee=ia(U,v.points[1])?v.points[3]:v.points[1],Y=Ma(k,B,U,ee);return Y&&go(Y,B)<_?(c.setTripleAt(Y[0],Y[1],Y[0],Y[1],Y[0],Y[1],c.length()),Y):B}function ie(c,p){var v=c.intersections(p);return v.length&&po(v[0][0],1)&&v.shift(),v.length?v[0]:null}function Me(c,p){var v=c.slice(),D=p.slice(),_=ie(c[c.length-1],p[0]);return _&&(v[c.length-1]=c[c.length-1].split(_[0])[0],D[0]=p[0].split(_[1])[1]),c.length>1&&p.length>1&&(_=ie(c[0],p[p.length-1]),_)?[[c[0].split(_[0])[0]],[p[p.length-1].split(_[1])[1]]]:[v,D]}function We(c){for(var p,v=1;v<c.length;v+=1)p=Me(c[v-1],c[v]),c[v-1]=p[0],c[v]=p[1];return c.length>1&&(p=Me(c[c.length-1],c[0]),c[c.length-1]=p[0],c[0]=p[1]),c}function pt(c,p){var v=c.inflectionPoints(),D,_,B,U;if(v.length===0)return[Gt(c,p)];if(v.length===1||po(v[1],1))return B=c.split(v[0]),D=B[0],_=B[1],[Gt(D,p),Gt(_,p)];B=c.split(v[0]),D=B[0];var ge=(v[1]-v[0])/(1-v[0]);return B=B[1].split(ge),U=B[0],_=B[1],[Gt(D,p),Gt(U,p),Gt(_,p)]}function xn(){}Be([mr],xn),xn.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amount=at.getProp(c,p.a,0,null,this),this.miterLimit=at.getProp(c,p.ml,0,null,this),this.lineJoin=p.lj,this._isAnimated=this.amount.effectsSequence.length!==0},xn.prototype.processPath=function(c,p,v,D){var _=Yn.newElement();_.c=c.c;var B=c.length();c.c||(B-=1);var U,ge,J,De=[];for(U=0;U<B;U+=1)J=pn.shapeSegment(c,U),De.push(pt(J,p));if(!c.c)for(U=B-1;U>=0;U-=1)J=pn.shapeSegmentInverted(c,U),De.push(pt(J,p));De=We(De);var Ce=null,Re=null;for(U=0;U<De.length;U+=1){var k=De[U];for(Re&&(Ce=en(_,Re,k[0],v,D)),Re=k[k.length-1],ge=0;ge<k.length;ge+=1)J=k[ge],Ce&&ia(J.points[0],Ce)?_.setXYAt(J.points[1][0],J.points[1][1],"o",_.length()-1):_.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],_.length()),_.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],_.length()),Ce=J.points[3]}return De.length&&en(_,Re,De[0][0],v,D),_},xn.prototype.processShapes=function(c){var p,v,D=this.shapes.length,_,B,U=this.amount.v,ge=this.miterLimit.v,J=this.lineJoin;if(U!==0){var De,Ce;for(v=0;v<D;v+=1){if(De=this.shapes[v],Ce=De.localShapeCollection,!(!De.shape._mdf&&!this._mdf&&!c))for(Ce.releaseShapes(),De.shape._mdf=!0,p=De.shape.paths.shapes,B=De.shape.paths._length,_=0;_<B;_+=1)Ce.addShape(this.processPath(p[_],U,J,ge));De.shape.paths=De.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function rr(c){for(var p=c.fStyle?c.fStyle.split(" "):[],v="normal",D="normal",_=p.length,B,U=0;U<_;U+=1)switch(B=p[U].toLowerCase(),B){case"italic":D="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:D,weight:c.fWeight||v}}var sr=function(){var c=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 D=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],_=[65039,8205];function B(j){var H=j.split(","),ne,ue=H.length,me=[];for(ne=0;ne<ue;ne+=1)H[ne]!=="sans-serif"&&H[ne]!=="monospace"&&me.push(H[ne]);return me.join(",")}function U(j,H){var ne=_e("span");ne.setAttribute("aria-hidden",!0),ne.style.fontFamily=H;var ue=_e("span");ue.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(ue),document.body.appendChild(ne);var me=ue.offsetWidth;return ue.style.fontFamily=B(j)+", "+H,{node:ue,w:me,parent:ne}}function ge(){var j,H=this.fonts.length,ne,ue,me=H;for(j=0;j<H;j+=1)this.fonts[j].loaded?me-=1:this.fonts[j].fOrigin==="n"||this.fonts[j].origin===0?this.fonts[j].loaded=!0:(ne=this.fonts[j].monoCase.node,ue=this.fonts[j].monoCase.w,ne.offsetWidth!==ue?(me-=1,this.fonts[j].loaded=!0):(ne=this.fonts[j].sansCase.node,ue=this.fonts[j].sansCase.w,ne.offsetWidth!==ue&&(me-=1,this.fonts[j].loaded=!0)),this.fonts[j].loaded&&(this.fonts[j].sansCase.parent.parentNode.removeChild(this.fonts[j].sansCase.parent),this.fonts[j].monoCase.parent.parentNode.removeChild(this.fonts[j].monoCase.parent)));me!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function J(j,H){var ne=document.body&&H?"svg":"canvas",ue,me=rr(j);if(ne==="svg"){var Oe=bt("text");Oe.style.fontSize="100px",Oe.setAttribute("font-family",j.fFamily),Oe.setAttribute("font-style",me.style),Oe.setAttribute("font-weight",me.weight),Oe.textContent="1",j.fClass?(Oe.style.fontFamily="inherit",Oe.setAttribute("class",j.fClass)):Oe.style.fontFamily=j.fFamily,H.appendChild(Oe),ue=Oe}else{var nt=new OffscreenCanvas(500,500).getContext("2d");nt.font=me.style+" "+me.weight+" 100px "+j.fFamily,ue=nt}function tt(Ve){return ne==="svg"?(ue.textContent=Ve,ue.getComputedTextLength()):ue.measureText(Ve).width}return{measureText:tt}}function De(j,H){if(!j){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=j.list;return}if(!document.body){this.isLoaded=!0,j.list.forEach(function($e){$e.helper=J($e),$e.cache={}}),this.fonts=j.list;return}var ne=j.list,ue,me=ne.length,Oe=me;for(ue=0;ue<me;ue+=1){var nt=!0,tt,Ve;if(ne[ue].loaded=!1,ne[ue].monoCase=U(ne[ue].fFamily,"monospace"),ne[ue].sansCase=U(ne[ue].fFamily,"sans-serif"),!ne[ue].fPath)ne[ue].loaded=!0,Oe-=1;else if(ne[ue].fOrigin==="p"||ne[ue].origin===3){if(tt=document.querySelectorAll('style[f-forigin="p"][f-family="'+ne[ue].fFamily+'"], style[f-origin="3"][f-family="'+ne[ue].fFamily+'"]'),tt.length>0&&(nt=!1),nt){var st=_e("style");st.setAttribute("f-forigin",ne[ue].fOrigin),st.setAttribute("f-origin",ne[ue].origin),st.setAttribute("f-family",ne[ue].fFamily),st.type="text/css",st.innerText="@font-face {font-family: "+ne[ue].fFamily+"; font-style: normal; src: url('"+ne[ue].fPath+"');}",H.appendChild(st)}}else if(ne[ue].fOrigin==="g"||ne[ue].origin===1){for(tt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Ve=0;Ve<tt.length;Ve+=1)tt[Ve].href.indexOf(ne[ue].fPath)!==-1&&(nt=!1);if(nt){var ct=_e("link");ct.setAttribute("f-forigin",ne[ue].fOrigin),ct.setAttribute("f-origin",ne[ue].origin),ct.type="text/css",ct.rel="stylesheet",ct.href=ne[ue].fPath,document.body.appendChild(ct)}}else if(ne[ue].fOrigin==="t"||ne[ue].origin===2){for(tt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Ve=0;Ve<tt.length;Ve+=1)ne[ue].fPath===tt[Ve].src&&(nt=!1);if(nt){var Le=_e("link");Le.setAttribute("f-forigin",ne[ue].fOrigin),Le.setAttribute("f-origin",ne[ue].origin),Le.setAttribute("rel","stylesheet"),Le.setAttribute("href",ne[ue].fPath),H.appendChild(Le)}}ne[ue].helper=J(ne[ue],H),ne[ue].cache={},this.fonts.push(ne[ue])}Oe===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Ce(j){if(j){this.chars||(this.chars=[]);var H,ne=j.length,ue,me=this.chars.length,Oe;for(H=0;H<ne;H+=1){for(ue=0,Oe=!1;ue<me;)this.chars[ue].style===j[H].style&&this.chars[ue].fFamily===j[H].fFamily&&this.chars[ue].ch===j[H].ch&&(Oe=!0),ue+=1;Oe||(this.chars.push(j[H]),me+=1)}}}function Re(j,H,ne){for(var ue=0,me=this.chars.length;ue<me;){if(this.chars[ue].ch===j&&this.chars[ue].style===H&&this.chars[ue].fFamily===ne)return this.chars[ue];ue+=1}return(typeof j=="string"&&j.charCodeAt(0)!==13||!j)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",j,H,ne)),p}function k(j,H,ne){var ue=this.getFontByName(H),me=j.charCodeAt(0);if(!ue.cache[me+1]){var Oe=ue.helper;if(j===" "){var nt=Oe.measureText("|"+j+"|"),tt=Oe.measureText("||");ue.cache[me+1]=(nt-tt)/100}else ue.cache[me+1]=Oe.measureText(j)/100}return ue.cache[me+1]*ne}function ee(j){for(var H=0,ne=this.fonts.length;H<ne;){if(this.fonts[H].fName===j)return this.fonts[H];H+=1}return this.fonts[0]}function Y(j,H){var ne=j.toString(16)+H.toString(16);return D.indexOf(ne)!==-1}function pe(j,H){return H?j===_[0]&&H===_[1]:j===_[1]}function he(j){return v.indexOf(j)!==-1}function W(){this.isLoaded=!0}var Z=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)};Z.isModifier=Y,Z.isZeroWidthJoiner=pe,Z.isCombinedCharacter=he;var L={addChars:Ce,addFonts:De,getCharData:Re,getFontByName:ee,measureText:k,checkLoadedFonts:ge,setIsLoaded:W};return Z.prototype=L,Z}();function Nn(){}Nn.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 An=function(){var c={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 c[p]||""}}();function Pi(c,p,v){this.p=at.getProp(p,c.v,0,0,v)}function _i(c,p,v){this.p=at.getProp(p,c.v,0,0,v)}function Ks(c,p,v){this.p=at.getProp(p,c.v,1,0,v)}function ts(c,p,v){this.p=at.getProp(p,c.v,1,0,v)}function ur(c,p,v){this.p=at.getProp(p,c.v,0,0,v)}function xo(c,p,v){this.p=at.getProp(p,c.v,0,0,v)}function Of(c,p,v){this.p=at.getProp(p,c.v,0,0,v)}function Lf(){this.p={}}function Oc(c,p){var v=c.ef||[];this.effectElements=[];var D,_=v.length,B;for(D=0;D<_;D+=1)B=new ns(v[D],p),this.effectElements.push(B)}function ns(c,p){this.init(c,p)}Be([dn],ns),ns.prototype.getValue=ns.prototype.iterateDynamicProperties,ns.prototype.init=function(c,p){this.data=c,this.effectElements=[],this.initDynamicPropertyContainer(p);var v,D=this.data.ef.length,_,B=this.data.ef;for(v=0;v<D;v+=1){switch(_=null,B[v].ty){case 0:_=new Pi(B[v],p,this);break;case 1:_=new _i(B[v],p,this);break;case 2:_=new Ks(B[v],p,this);break;case 3:_=new ts(B[v],p,this);break;case 4:case 7:_=new Of(B[v],p,this);break;case 10:_=new ur(B[v],p,this);break;case 11:_=new xo(B[v],p,this);break;case 5:_=new Oc(B[v],p);break;default:_=new Lf(B[v]);break}_&&this.effectElements.push(_)}};function aa(){}aa.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=An(this.data.bm),v=this.baseElement||this.layerElement;v.style["mix-blend-mode"]=p},initBaseData:function(p,v,D){this.globalData=v,this.comp=D,this.data=p,this.layerId=Dt(),this.data.sr||(this.data.sr=1),this.effectsManager=new Oc(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function In(){}In.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(p,v){var D,_=this.dynamicProperties.length;for(D=0;D<_;D+=1)(v||this._isParent&&this.dynamicProperties[D].propType==="transform")&&(this.dynamicProperties[D].getValue(),this.dynamicProperties[D]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(p){this.dynamicProperties.indexOf(p)===-1&&this.dynamicProperties.push(p)}};function Ia(c,p,v){this.initFrame(),this.initRenderable(),this.assetData=p.getAssetData(c.refId),this.footageData=p.imageLoader.getAsset(this.assetData),this.initBaseData(c,p,v)}Ia.prototype.prepareFrame=function(){},Be([Nn,aa,In],Ia),Ia.prototype.getBaseElement=function(){return null},Ia.prototype.renderFrame=function(){},Ia.prototype.destroy=function(){},Ia.prototype.initExpressions=function(){},Ia.prototype.getFootageData=function(){return this.footageData};function fn(c,p,v){this.initFrame(),this.initRenderable(),this.assetData=p.getAssetData(c.refId),this.initBaseData(c,p,v),this._isPlaying=!1,this._canPlay=!1;var D=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(D),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=c.tm?at.getProp(this,c.tm,0,p.frameRate,this):{_placeholder:!0},this.lv=at.getProp(this,c.au&&c.au.lv?c.au.lv:{k:[100]},1,.01,this)}fn.prototype.prepareFrame=function(c){if(this.prepareRenderableFrame(c,!0),this.prepareProperties(c,!0),this.tm._placeholder)this._currentTime=c/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))},Be([Nn,aa,In],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(c){this.audio.rate(c)},fn.prototype.volume=function(c){this._volumeMultiplier=c,this._previousVolume=c*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 lr(){}lr.prototype.checkLayers=function(c){var p,v=this.layers.length,D;for(this.completeLayers=!0,p=v-1;p>=0;p-=1)this.elements[p]||(D=this.layers[p],D.ip-D.st<=c-this.layers[p].st&&D.op-D.st>c-this.layers[p].st&&this.buildItem(p)),this.completeLayers=this.elements[p]?this.completeLayers:!1;this.checkPendingElements()},lr.prototype.createItem=function(c){switch(c.ty){case 2:return this.createImage(c);case 0:return this.createComp(c);case 1:return this.createSolid(c);case 3:return this.createNull(c);case 4:return this.createShape(c);case 5:return this.createText(c);case 6:return this.createAudio(c);case 13:return this.createCamera(c);case 15:return this.createFootage(c);default:return this.createNull(c)}},lr.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},lr.prototype.createAudio=function(c){return new fn(c,this.globalData,this)},lr.prototype.createFootage=function(c){return new Ia(c,this.globalData,this)},lr.prototype.buildAllItems=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)this.buildItem(c);this.checkPendingElements()},lr.prototype.includeLayers=function(c){this.completeLayers=!1;var p,v=c.length,D,_=this.layers.length;for(p=0;p<v;p+=1)for(D=0;D<_;){if(this.layers[D].id===c[p].id){this.layers[D]=c[p];break}D+=1}},lr.prototype.setProjectInterface=function(c){this.globalData.projectInterface=c},lr.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},lr.prototype.buildElementParenting=function(c,p,v){for(var D=this.elements,_=this.layers,B=0,U=_.length;B<U;)_[B].ind==p&&(!D[B]||D[B]===!0?(this.buildItem(B),this.addPendingElement(c)):(v.push(D[B]),D[B].setAsParent(),_[B].parent!==void 0?this.buildElementParenting(c,_[B].parent,v):c.setHierarchy(v))),B+=1},lr.prototype.addPendingElement=function(c){this.pendingElements.push(c)},lr.prototype.searchExtraCompositions=function(c){var p,v=c.length;for(p=0;p<v;p+=1)if(c[p].xt){var D=this.createComp(c[p]);D.initExpressions(),this.globalData.projectInterface.registerComposition(D)}},lr.prototype.getElementById=function(c){var p,v=this.elements.length;for(p=0;p<v;p+=1)if(this.elements[p].data.ind===c)return this.elements[p];return null},lr.prototype.getElementByPath=function(c){var p=c.shift(),v;if(typeof p=="number")v=this.elements[p];else{var D,_=this.elements.length;for(D=0;D<_;D+=1)if(this.elements[D].data.nm===p){v=this.elements[D];break}}return c.length===0?v:v.getElementByPath(c)},lr.prototype.setupGlobalData=function(c,p){this.globalData.fontManager=new sr,this.globalData.fontManager.addChars(c.chars),this.globalData.fontManager.addFonts(c.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=c.fr,this.globalData.nm=c.nm,this.globalData.compSize={w:c.w,h:c.h}};function Do(){}Do.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?Jo.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Rn},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,D=0,_=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;D<_;){if(this.hierarchy[D].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}D+=1}if(this.finalTransform._matMdf)for(p=this.finalTransform.mProp.v.props,v.cloneFromProps(p),D=0;D<_;D+=1)p=this.hierarchy[D].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 D=!0,_=this.comp;D;)_.finalTransform?(_.data.hasMask&&v.splice(0,0,_.finalTransform),_=_.comp):D=!1;var B,U=v.length,ge;for(B=0;B<U;B+=1)ge=v[B].mat.applyToPointArray(0,0,0),p=[p[0]-ge[0],p[1]-ge[1],0];return p},mHelper:new Rn};function Er(c,p,v){this.data=c,this.element=p,this.globalData=v,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var D=this.globalData.defs,_,B=this.masksProperties?this.masksProperties.length:0;this.viewData=qe(B),this.solidPath="";var U,ge=this.masksProperties,J=0,De=[],Ce,Re,k=Dt(),ee,Y,pe,he,W="clipPath",Z="clip-path";for(_=0;_<B;_+=1)if((ge[_].mode!=="a"&&ge[_].mode!=="n"||ge[_].inv||ge[_].o.k!==100||ge[_].o.x)&&(W="mask",Z="mask"),(ge[_].mode==="s"||ge[_].mode==="i")&&J===0?(ee=bt("rect"),ee.setAttribute("fill","#ffffff"),ee.setAttribute("width",this.element.comp.data.w||0),ee.setAttribute("height",this.element.comp.data.h||0),De.push(ee)):ee=null,U=bt("path"),ge[_].mode==="n")this.viewData[_]={op:at.getProp(this.element,ge[_].o,0,.01,this.element),prop:fi.getShapeProp(this.element,ge[_],3),elem:U,lastPath:""},D.appendChild(U);else{J+=1,U.setAttribute("fill",ge[_].mode==="s"?"#000000":"#ffffff"),U.setAttribute("clip-rule","nonzero");var L;if(ge[_].x.k!==0?(W="mask",Z="mask",he=at.getProp(this.element,ge[_].x,0,null,this.element),L=Dt(),Y=bt("filter"),Y.setAttribute("id",L),pe=bt("feMorphology"),pe.setAttribute("operator","erode"),pe.setAttribute("in","SourceGraphic"),pe.setAttribute("radius","0"),Y.appendChild(pe),D.appendChild(Y),U.setAttribute("stroke",ge[_].mode==="s"?"#000000":"#ffffff")):(pe=null,he=null),this.storedData[_]={elem:U,x:he,expan:pe,lastPath:"",lastOperator:"",filterId:L,lastRadius:0},ge[_].mode==="i"){Re=De.length;var j=bt("g");for(Ce=0;Ce<Re;Ce+=1)j.appendChild(De[Ce]);var H=bt("mask");H.setAttribute("mask-type","alpha"),H.setAttribute("id",k+"_"+J),H.appendChild(U),D.appendChild(H),j.setAttribute("mask","url("+Se()+"#"+k+"_"+J+")"),De.length=0,De.push(j)}else De.push(U);ge[_].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[_]={elem:U,lastPath:"",op:at.getProp(this.element,ge[_].o,0,.01,this.element),prop:fi.getShapeProp(this.element,ge[_],3),invRect:ee},this.viewData[_].prop.k||this.drawPath(ge[_],this.viewData[_].prop.v,this.viewData[_])}for(this.maskElement=bt(W),B=De.length,_=0;_<B;_+=1)this.maskElement.appendChild(De[_]);J>0&&(this.maskElement.setAttribute("id",k),this.element.maskedElement.setAttribute(Z,"url("+Se()+"#"+k+")"),D.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Er.prototype.getMaskProperty=function(c){return this.viewData[c].prop},Er.prototype.renderFrame=function(c){var p=this.element.finalTransform.mat,v,D=this.masksProperties.length;for(v=0;v<D;v+=1)if((this.viewData[v].prop._mdf||c)&&this.drawPath(this.masksProperties[v],this.viewData[v].prop.v,this.viewData[v]),(this.viewData[v].op._mdf||c)&&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||c)&&this.viewData[v].invRect.setAttribute("transform",p.getInverseMatrix().to2dCSS()),this.storedData[v].x&&(this.storedData[v].x._mdf||c))){var _=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("+Se()+"#"+this.storedData[v].filterId+")")),_.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))}},Er.prototype.getMaskelement=function(){return this.maskElement},Er.prototype.createLayerSolidPath=function(){var c="M0,0 ";return c+=" h"+this.globalData.compSize.w,c+=" v"+this.globalData.compSize.h,c+=" h-"+this.globalData.compSize.w,c+=" v-"+this.globalData.compSize.h+" ",c},Er.prototype.drawPath=function(c,p,v){var D=" M"+p.v[0][0]+","+p.v[0][1],_,B;for(B=p._length,_=1;_<B;_+=1)D+=" C"+p.o[_-1][0]+","+p.o[_-1][1]+" "+p.i[_][0]+","+p.i[_][1]+" "+p.v[_][0]+","+p.v[_][1];if(p.c&&B>1&&(D+=" C"+p.o[_-1][0]+","+p.o[_-1][1]+" "+p.i[0][0]+","+p.i[0][1]+" "+p.v[0][0]+","+p.v[0][1]),v.lastPath!==D){var U="";v.elem&&(p.c&&(U=c.inv?this.solidPath+D:D),v.elem.setAttribute("d",U)),v.lastPath=D}},Er.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Oa=function(){var c={};c.createFilter=p,c.createAlphaToLuminanceFilter=v;function p(D,_){var B=bt("filter");return B.setAttribute("id",D),_!==!0&&(B.setAttribute("filterUnits","objectBoundingBox"),B.setAttribute("x","0%"),B.setAttribute("y","0%"),B.setAttribute("width","100%"),B.setAttribute("height","100%")),B}function v(){var D=bt("feColorMatrix");return D.setAttribute("type","matrix"),D.setAttribute("color-interpolation-filters","sRGB"),D.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),D}return c}(),el=function(){var c={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))&&(c.maskType=!1),/firefox/i.test(navigator.userAgent)&&(c.svgLumaHidden=!1),c}(),un={},oa="filter_result_";function tl(c){var p,v="SourceGraphic",D=c.data.ef?c.data.ef.length:0,_=Dt(),B=Oa.createFilter(_,!0),U=0;this.filters=[];var ge;for(p=0;p<D;p+=1){ge=null;var J=c.data.ef[p].ty;if(un[J]){var De=un[J].effect;ge=new De(B,c.effectsManager.effectElements[p],c,oa+U,v),v=oa+U,un[J].countsAsEffect&&(U+=1)}ge&&this.filters.push(ge)}U&&(c.globalData.defs.appendChild(B),c.layerElement.setAttribute("filter","url("+Se()+"#"+_+")")),this.filters.length&&c.addRenderableComponent(this)}tl.prototype.renderFrame=function(c){var p,v=this.filters.length;for(p=0;p<v;p+=1)this.filters[p].renderFrame(c)};function zs(){}zs.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 D=bt("clipPath"),_=bt("path");_.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var B=Dt();if(D.setAttribute("id",B),D.appendChild(_),this.globalData.defs.appendChild(D),this.checkMasks()){var U=bt("g");U.setAttribute("clip-path","url("+Se()+"#"+B+")"),U.appendChild(this.layerElement),this.transformedElement=U,p?p.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+Se()+"#"+B+")")}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 Er(this.data,this,this.globalData),this.renderableEffectsManager=new tl(this)},getMatte:function(p){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[p]){var v=this.layerId+"_"+p,D,_,B,U;if(p===1||p===3){var ge=bt("mask");ge.setAttribute("id",v),ge.setAttribute("mask-type",p===3?"luminance":"alpha"),B=bt("use"),B.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),ge.appendChild(B),this.globalData.defs.appendChild(ge),!el.maskType&&p===1&&(ge.setAttribute("mask-type","luminance"),D=Dt(),_=Oa.createFilter(D),this.globalData.defs.appendChild(_),_.appendChild(Oa.createAlphaToLuminanceFilter()),U=bt("g"),U.appendChild(B),ge.appendChild(U),U.setAttribute("filter","url("+Se()+"#"+D+")"))}else if(p===2){var J=bt("mask");J.setAttribute("id",v),J.setAttribute("mask-type","alpha");var De=bt("g");J.appendChild(De),D=Dt(),_=Oa.createFilter(D);var Ce=bt("feComponentTransfer");Ce.setAttribute("in","SourceGraphic"),_.appendChild(Ce);var Re=bt("feFuncA");Re.setAttribute("type","table"),Re.setAttribute("tableValues","1.0 0.0"),Ce.appendChild(Re),this.globalData.defs.appendChild(_);var k=bt("rect");k.setAttribute("width",this.comp.data.w),k.setAttribute("height",this.comp.data.h),k.setAttribute("x","0"),k.setAttribute("y","0"),k.setAttribute("fill","#ffffff"),k.setAttribute("opacity","0"),De.setAttribute("filter","url("+Se()+"#"+D+")"),De.appendChild(k),B=bt("use"),B.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),De.appendChild(B),el.maskType||(J.setAttribute("mask-type","luminance"),_.appendChild(Oa.createAlphaToLuminanceFilter()),U=bt("g"),De.appendChild(k),U.appendChild(this.layerElement),De.appendChild(U)),this.globalData.defs.appendChild(J)}this.matteMasks[p]=v}return this.matteMasks[p]},setMatte:function(p){this.matteElement&&this.matteElement.setAttribute("mask","url("+Se()+"#"+p+")")}};function La(){}La.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 qs(){}(function(){var c={initElement:function(v,D,_){this.initFrame(),this.initBaseData(v,D,_),this.initTransform(v,D,_),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()}};Be([Nn,Ge(c)],qs)})();function Us(c,p,v){this.assetData=p.getAssetData(c.refId),this.initElement(c,p,v),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}Be([aa,Do,zs,La,In,qs],Us),Us.prototype.createContent=function(){var c=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",c),this.layerElement.appendChild(this.innerElem)},Us.prototype.sourceRectAtTime=function(){return this.sourceRect};function qm(c,p){this.elem=c,this.pos=p}function Lc(){}Lc.prototype={addShapeToModifiers:function(p){var v,D=this.shapeModifiers.length;for(v=0;v<D;v+=1)this.shapeModifiers[v].addShape(p)},isShapeInAnimatedModifiers:function(p){for(var v=0,D=this.shapeModifiers.length;v<D;)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 D;for(p=v-1;p>=0&&(D=this.shapeModifiers[p].processShapes(this._isFirstFrame),!D);p-=1);}},searchProcessedElement:function(p){for(var v=this.processedElements,D=0,_=v.length;D<_;){if(v[D].elem===p)return v[D].pos;D+=1}return 0},addProcessedElement:function(p,v){for(var D=this.processedElements,_=D.length;_;)if(_-=1,D[_].elem===p){D[_].pos=v;return}D.push(new qm(p,v))},prepareFrame:function(p){this.prepareRenderableFrame(p),this.prepareProperties(p,this.isInRange)}};var Ws={1:"butt",2:"round",3:"square"},$o={1:"miter",2:"round",3:"bevel"};function Vf(c,p,v){this.caches=[],this.styles=[],this.transformers=c,this.lStr="",this.sh=v,this.lvl=p,this._isAnimated=!!v.k;for(var D=0,_=c.length;D<_;){if(c[D].mProps.dynamicProperties.length){this._isAnimated=!0;break}D+=1}}Vf.prototype.setAsAnimated=function(){this._isAnimated=!0};function Vc(c,p){this.data=c,this.type=c.ty,this.d="",this.lvl=p,this._mdf=!1,this.closed=c.hd===!0,this.pElem=bt("path"),this.msElem=null}Vc.prototype.reset=function(){this.d="",this._mdf=!1};function Hs(c,p,v,D){this.elem=c,this.frameId=-1,this.dataProps=qe(p.length),this.renderer=v,this.k=!1,this.dashStr="",this.dashArray=Ne("float32",p.length?p.length-1:0),this.dashoffset=Ne("float32",1),this.initDynamicPropertyContainer(D);var _,B=p.length||0,U;for(_=0;_<B;_+=1)U=at.getProp(c,p[_].v,0,0,this),this.k=U.k||this.k,this.dataProps[_]={n:p[_].n,p:U};this.k||this.getValue(!0),this._isAnimated=this.k}Hs.prototype.getValue=function(c){if(!(this.elem.globalData.frameId===this.frameId&&!c)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||c,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}},Be([dn],Hs);function nl(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(c,p.o,0,.01,this),this.w=at.getProp(c,p.w,0,null,this),this.d=new Hs(c,p.d||{},"svg",this),this.c=at.getProp(c,p.c,1,255,this),this.style=v,this._isAnimated=!!this._isAnimated}Be([dn],nl);function rl(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(c,p.o,0,.01,this),this.c=at.getProp(c,p.c,1,255,this),this.style=v}Be([dn],rl);function Nc(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.style=v}Be([dn],Nc);function Gs(c,p,v){this.data=p,this.c=Ne("uint8c",p.p*4);var D=p.k.k[0].s?p.k.k[0].s.length-p.p*4:p.k.k.length-p.p*4;this.o=Ne("float32",D),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=D,this.initDynamicPropertyContainer(v),this.prop=at.getProp(c,p.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Gs.prototype.comparePoints=function(c,p){for(var v=0,D=this.o.length/2,_;v<D;){if(_=Math.abs(c[v*4]-c[p*4+v*2]),_>.01)return!1;v+=1}return!0},Gs.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var c=0,p=this.data.k.k.length;c<p;){if(!this.comparePoints(this.data.k.k[c].s,this.data.p))return!1;c+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Gs.prototype.getValue=function(c){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||c){var p,v=this.data.p*4,D,_;for(p=0;p<v;p+=1)D=p%4===0?100:255,_=Math.round(this.prop.v[p]*D),this.c[p]!==_&&(this.c[p]=_,this._cmdf=!c);if(this.o.length)for(v=this.prop.v.length,p=this.data.p*4;p<v;p+=1)D=p%2===0?100:1,_=p%2===0?Math.round(this.prop.v[p]*100):this.prop.v[p],this.o[p-this.data.p*4]!==_&&(this.o[p-this.data.p*4]=_,this._omdf=!c);this._mdf=!c}},Be([dn],Gs);function Va(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.initGradientData(c,p,v)}Va.prototype.initGradientData=function(c,p,v){this.o=at.getProp(c,p.o,0,.01,this),this.s=at.getProp(c,p.s,1,null,this),this.e=at.getProp(c,p.e,1,null,this),this.h=at.getProp(c,p.h||{k:0},0,.01,this),this.a=at.getProp(c,p.a||{k:0},0,Jt,this),this.g=new Gs(c,p.g,this),this.style=v,this.stops=[],this.setGradientData(v.pElem,p),this.setGradientOpacity(p,v),this._isAnimated=!!this._isAnimated},Va.prototype.setGradientData=function(c,p){var v=Dt(),D=bt(p.t===1?"linearGradient":"radialGradient");D.setAttribute("id",v),D.setAttribute("spreadMethod","pad"),D.setAttribute("gradientUnits","userSpaceOnUse");var _=[],B,U,ge;for(ge=p.g.p*4,U=0;U<ge;U+=4)B=bt("stop"),D.appendChild(B),_.push(B);c.setAttribute(p.ty==="gf"?"fill":"stroke","url("+Se()+"#"+v+")"),this.gf=D,this.cst=_},Va.prototype.setGradientOpacity=function(c,p){if(this.g._hasOpacity&&!this.g._collapsable){var v,D,_,B=bt("mask"),U=bt("path");B.appendChild(U);var ge=Dt(),J=Dt();B.setAttribute("id",J);var De=bt(c.t===1?"linearGradient":"radialGradient");De.setAttribute("id",ge),De.setAttribute("spreadMethod","pad"),De.setAttribute("gradientUnits","userSpaceOnUse"),_=c.g.k.k[0].s?c.g.k.k[0].s.length:c.g.k.k.length;var Ce=this.stops;for(D=c.g.p*4;D<_;D+=2)v=bt("stop"),v.setAttribute("stop-color","rgb(255,255,255)"),De.appendChild(v),Ce.push(v);U.setAttribute(c.ty==="gf"?"fill":"stroke","url("+Se()+"#"+ge+")"),c.ty==="gs"&&(U.setAttribute("stroke-linecap",Ws[c.lc||2]),U.setAttribute("stroke-linejoin",$o[c.lj||2]),c.lj===1&&U.setAttribute("stroke-miterlimit",c.ml)),this.of=De,this.ms=B,this.ost=Ce,this.maskId=J,p.msElem=U}},Be([dn],Va);function il(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.w=at.getProp(c,p.w,0,null,this),this.d=new Hs(c,p.d||{},"svg",this),this.initGradientData(c,p,v),this._isAnimated=!!this._isAnimated}Be([Va,dn],il);function Um(){this.it=[],this.prevViewData=[],this.gr=bt("g")}function Nf(c,p,v){this.transform={mProps:c,op:p,container:v},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Cr=function(p,v,D,_){if(v===0)return"";var B=p.o,U=p.i,ge=p.v,J,De=" M"+_.applyToPointStringified(ge[0][0],ge[0][1]);for(J=1;J<v;J+=1)De+=" C"+_.applyToPointStringified(B[J-1][0],B[J-1][1])+" "+_.applyToPointStringified(U[J][0],U[J][1])+" "+_.applyToPointStringified(ge[J][0],ge[J][1]);return D&&v&&(De+=" C"+_.applyToPointStringified(B[J-1][0],B[J-1][1])+" "+_.applyToPointStringified(U[0][0],U[0][1])+" "+_.applyToPointStringified(ge[0][0],ge[0][1]),De+="z"),De},jc=function(){var c=new Rn,p=new Rn,v={createRenderFunction:D};function D(Re){switch(Re.ty){case"fl":return ge;case"gf":return De;case"gs":return J;case"st":return Ce;case"sh":case"el":case"rc":case"sr":return U;case"tr":return _;case"no":return B;default:return null}}function _(Re,k,ee){(ee||k.transform.op._mdf)&&k.transform.container.setAttribute("opacity",k.transform.op.v),(ee||k.transform.mProps._mdf)&&k.transform.container.setAttribute("transform",k.transform.mProps.v.to2dCSS())}function B(){}function U(Re,k,ee){var Y,pe,he,W,Z,L,j=k.styles.length,H=k.lvl,ne,ue,me,Oe,nt;for(L=0;L<j;L+=1){if(W=k.sh._mdf||ee,k.styles[L].lvl<H){for(ue=p.reset(),Oe=H-k.styles[L].lvl,nt=k.transformers.length-1;!W&&Oe>0;)W=k.transformers[nt].mProps._mdf||W,Oe-=1,nt-=1;if(W)for(Oe=H-k.styles[L].lvl,nt=k.transformers.length-1;Oe>0;)me=k.transformers[nt].mProps.v.props,ue.transform(me[0],me[1],me[2],me[3],me[4],me[5],me[6],me[7],me[8],me[9],me[10],me[11],me[12],me[13],me[14],me[15]),Oe-=1,nt-=1}else ue=c;if(ne=k.sh.paths,pe=ne._length,W){for(he="",Y=0;Y<pe;Y+=1)Z=ne.shapes[Y],Z&&Z._length&&(he+=Cr(Z,Z._length,Z.c,ue));k.caches[L]=he}else he=k.caches[L];k.styles[L].d+=Re.hd===!0?"":he,k.styles[L]._mdf=W||k.styles[L]._mdf}}function ge(Re,k,ee){var Y=k.style;(k.c._mdf||ee)&&Y.pElem.setAttribute("fill","rgb("+xt(k.c.v[0])+","+xt(k.c.v[1])+","+xt(k.c.v[2])+")"),(k.o._mdf||ee)&&Y.pElem.setAttribute("fill-opacity",k.o.v)}function J(Re,k,ee){De(Re,k,ee),Ce(Re,k,ee)}function De(Re,k,ee){var Y=k.gf,pe=k.g._hasOpacity,he=k.s.v,W=k.e.v;if(k.o._mdf||ee){var Z=Re.ty==="gf"?"fill-opacity":"stroke-opacity";k.style.pElem.setAttribute(Z,k.o.v)}if(k.s._mdf||ee){var L=Re.t===1?"x1":"cx",j=L==="x1"?"y1":"cy";Y.setAttribute(L,he[0]),Y.setAttribute(j,he[1]),pe&&!k.g._collapsable&&(k.of.setAttribute(L,he[0]),k.of.setAttribute(j,he[1]))}var H,ne,ue,me;if(k.g._cmdf||ee){H=k.cst;var Oe=k.g.c;for(ue=H.length,ne=0;ne<ue;ne+=1)me=H[ne],me.setAttribute("offset",Oe[ne*4]+"%"),me.setAttribute("stop-color","rgb("+Oe[ne*4+1]+","+Oe[ne*4+2]+","+Oe[ne*4+3]+")")}if(pe&&(k.g._omdf||ee)){var nt=k.g.o;for(k.g._collapsable?H=k.cst:H=k.ost,ue=H.length,ne=0;ne<ue;ne+=1)me=H[ne],k.g._collapsable||me.setAttribute("offset",nt[ne*2]+"%"),me.setAttribute("stop-opacity",nt[ne*2+1])}if(Re.t===1)(k.e._mdf||ee)&&(Y.setAttribute("x2",W[0]),Y.setAttribute("y2",W[1]),pe&&!k.g._collapsable&&(k.of.setAttribute("x2",W[0]),k.of.setAttribute("y2",W[1])));else{var tt;if((k.s._mdf||k.e._mdf||ee)&&(tt=Math.sqrt(Math.pow(he[0]-W[0],2)+Math.pow(he[1]-W[1],2)),Y.setAttribute("r",tt),pe&&!k.g._collapsable&&k.of.setAttribute("r",tt)),k.e._mdf||k.h._mdf||k.a._mdf||ee){tt||(tt=Math.sqrt(Math.pow(he[0]-W[0],2)+Math.pow(he[1]-W[1],2)));var Ve=Math.atan2(W[1]-he[1],W[0]-he[0]),st=k.h.v;st>=1?st=.99:st<=-1&&(st=-.99);var ct=tt*st,Le=Math.cos(Ve+k.a.v)*ct+he[0],$e=Math.sin(Ve+k.a.v)*ct+he[1];Y.setAttribute("fx",Le),Y.setAttribute("fy",$e),pe&&!k.g._collapsable&&(k.of.setAttribute("fx",Le),k.of.setAttribute("fy",$e))}}}function Ce(Re,k,ee){var Y=k.style,pe=k.d;pe&&(pe._mdf||ee)&&pe.dashStr&&(Y.pElem.setAttribute("stroke-dasharray",pe.dashStr),Y.pElem.setAttribute("stroke-dashoffset",pe.dashoffset[0])),k.c&&(k.c._mdf||ee)&&Y.pElem.setAttribute("stroke","rgb("+xt(k.c.v[0])+","+xt(k.c.v[1])+","+xt(k.c.v[2])+")"),(k.o._mdf||ee)&&Y.pElem.setAttribute("stroke-opacity",k.o.v),(k.w._mdf||ee)&&(Y.pElem.setAttribute("stroke-width",k.w.v),Y.msElem&&Y.msElem.setAttribute("stroke-width",k.w.v))}return v}();function mn(c,p,v){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(c,p,v),this.prevViewData=[]}Be([aa,Do,zs,Lc,La,In,qs],mn),mn.prototype.initSecondaryElement=function(){},mn.prototype.identityMatrix=new Rn,mn.prototype.buildExpressionInterface=function(){},mn.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},mn.prototype.filterUniqueShapes=function(){var c,p=this.shapes.length,v,D,_=this.stylesList.length,B,U=[],ge=!1;for(D=0;D<_;D+=1){for(B=this.stylesList[D],ge=!1,U.length=0,c=0;c<p;c+=1)v=this.shapes[c],v.styles.indexOf(B)!==-1&&(U.push(v),ge=v._isAnimated||ge);U.length>1&&ge&&this.setShapesAsAnimated(U)}},mn.prototype.setShapesAsAnimated=function(c){var p,v=c.length;for(p=0;p<v;p+=1)c[p].setAsAnimated()},mn.prototype.createStyleElement=function(c,p){var v,D=new Vc(c,p),_=D.pElem;if(c.ty==="st")v=new nl(this,c,D);else if(c.ty==="fl")v=new rl(this,c,D);else if(c.ty==="gf"||c.ty==="gs"){var B=c.ty==="gf"?Va:il;v=new B(this,c,D),this.globalData.defs.appendChild(v.gf),v.maskId&&(this.globalData.defs.appendChild(v.ms),this.globalData.defs.appendChild(v.of),_.setAttribute("mask","url("+Se()+"#"+v.maskId+")"))}else c.ty==="no"&&(v=new Nc(this,c,D));return(c.ty==="st"||c.ty==="gs")&&(_.setAttribute("stroke-linecap",Ws[c.lc||2]),_.setAttribute("stroke-linejoin",$o[c.lj||2]),_.setAttribute("fill-opacity","0"),c.lj===1&&_.setAttribute("stroke-miterlimit",c.ml)),c.r===2&&_.setAttribute("fill-rule","evenodd"),c.ln&&_.setAttribute("id",c.ln),c.cl&&_.setAttribute("class",c.cl),c.bm&&(_.style["mix-blend-mode"]=An(c.bm)),this.stylesList.push(D),this.addToAnimatedContents(c,v),v},mn.prototype.createGroupElement=function(c){var p=new Um;return c.ln&&p.gr.setAttribute("id",c.ln),c.cl&&p.gr.setAttribute("class",c.cl),c.bm&&(p.gr.style["mix-blend-mode"]=An(c.bm)),p},mn.prototype.createTransformElement=function(c,p){var v=Jo.getTransformProperty(this,c,this),D=new Nf(v,v.o,p);return this.addToAnimatedContents(c,D),D},mn.prototype.createShapeElement=function(c,p,v){var D=4;c.ty==="rc"?D=5:c.ty==="el"?D=6:c.ty==="sr"&&(D=7);var _=fi.getShapeProp(this,c,D,this),B=new Vf(p,v,_);return this.shapes.push(B),this.addShapeToModifiers(B),this.addToAnimatedContents(c,B),B},mn.prototype.addToAnimatedContents=function(c,p){for(var v=0,D=this.animatedContents.length;v<D;){if(this.animatedContents[v].element===p)return;v+=1}this.animatedContents.push({fn:jc.createRenderFunction(c),element:p,data:c})},mn.prototype.setElementStyles=function(c){var p=c.styles,v,D=this.stylesList.length;for(v=0;v<D;v+=1)this.stylesList[v].closed||p.push(this.stylesList[v])},mn.prototype.reloadShapes=function(){this._isFirstFrame=!0;var c,p=this.itemsData.length;for(c=0;c<p;c+=1)this.prevViewData[c]=this.itemsData[c];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),p=this.dynamicProperties.length,c=0;c<p;c+=1)this.dynamicProperties[c].getValue();this.renderModifiers()},mn.prototype.searchShapes=function(c,p,v,D,_,B,U){var ge=[].concat(B),J,De=c.length-1,Ce,Re,k=[],ee=[],Y,pe,he;for(J=De;J>=0;J-=1){if(he=this.searchProcessedElement(c[J]),he?p[J]=v[he-1]:c[J]._render=U,c[J].ty==="fl"||c[J].ty==="st"||c[J].ty==="gf"||c[J].ty==="gs"||c[J].ty==="no")he?p[J].style.closed=!1:p[J]=this.createStyleElement(c[J],_),c[J]._render&&p[J].style.pElem.parentNode!==D&&D.appendChild(p[J].style.pElem),k.push(p[J].style);else if(c[J].ty==="gr"){if(!he)p[J]=this.createGroupElement(c[J]);else for(Re=p[J].it.length,Ce=0;Ce<Re;Ce+=1)p[J].prevViewData[Ce]=p[J].it[Ce];this.searchShapes(c[J].it,p[J].it,p[J].prevViewData,p[J].gr,_+1,ge,U),c[J]._render&&p[J].gr.parentNode!==D&&D.appendChild(p[J].gr)}else c[J].ty==="tr"?(he||(p[J]=this.createTransformElement(c[J],D)),Y=p[J].transform,ge.push(Y)):c[J].ty==="sh"||c[J].ty==="rc"||c[J].ty==="el"||c[J].ty==="sr"?(he||(p[J]=this.createShapeElement(c[J],ge,_)),this.setElementStyles(p[J])):c[J].ty==="tm"||c[J].ty==="rd"||c[J].ty==="ms"||c[J].ty==="pb"||c[J].ty==="zz"||c[J].ty==="op"?(he?(pe=p[J],pe.closed=!1):(pe=Fr.getModifier(c[J].ty),pe.init(this,c[J]),p[J]=pe,this.shapeModifiers.push(pe)),ee.push(pe)):c[J].ty==="rp"&&(he?(pe=p[J],pe.closed=!0):(pe=Fr.getModifier(c[J].ty),p[J]=pe,pe.init(this,c,J,p),this.shapeModifiers.push(pe),U=!1),ee.push(pe));this.addProcessedElement(c[J],J+1)}for(De=k.length,J=0;J<De;J+=1)k[J].closed=!0;for(De=ee.length,J=0;J<De;J+=1)ee[J].closed=!0},mn.prototype.renderInnerContent=function(){this.renderModifiers();var c,p=this.stylesList.length;for(c=0;c<p;c+=1)this.stylesList[c].reset();for(this.renderShape(),c=0;c<p;c+=1)(this.stylesList[c]._mdf||this._isFirstFrame)&&(this.stylesList[c].msElem&&(this.stylesList[c].msElem.setAttribute("d",this.stylesList[c].d),this.stylesList[c].d="M0 0"+this.stylesList[c].d),this.stylesList[c].pElem.setAttribute("d",this.stylesList[c].d||"M0 0"))},mn.prototype.renderShape=function(){var c,p=this.animatedContents.length,v;for(c=0;c<p;c+=1)v=this.animatedContents[c],(this._isFirstFrame||v.element._isAnimated)&&v.data!==!0&&v.fn(v.data,v.element,this._isFirstFrame)},mn.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function al(c,p,v,D,_,B){this.o=c,this.sw=p,this.sc=v,this.fc=D,this.m=_,this.p=B,this._mdf={o:!0,sw:!!p,sc:!!v,fc:!!D,m:!0,p:!0}}al.prototype.update=function(c,p,v,D,_,B){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 U=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,U=!0),this.sw!==p&&(this.sw=p,this._mdf.sw=!0,U=!0),this.sc!==v&&(this.sc=v,this._mdf.sc=!0,U=!0),this.fc!==D&&(this.fc=D,this._mdf.fc=!0,U=!0),this.m!==_&&(this.m=_,this._mdf.m=!0,U=!0),B.length&&(this.p[0]!==B[0]||this.p[1]!==B[1]||this.p[4]!==B[4]||this.p[5]!==B[5]||this.p[12]!==B[12]||this.p[13]!==B[13])&&(this.p=B,this._mdf.p=!0,U=!0),U};function cr(c,p){this._frameId=fe,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=p,this.elem=c,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)}cr.prototype.defaultBoxWidth=[0,0],cr.prototype.copyData=function(c,p){for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(c[v]=p[v]);return c},cr.prototype.setCurrentData=function(c){c.__complete||this.completeTextData(c),this.currentData=c,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},cr.prototype.searchProperty=function(){return this.searchKeyframes()},cr.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},cr.prototype.addEffect=function(c){this.effectsSequence.push(c),this.elem.addDynamicProperty(this)},cr.prototype.getValue=function(c){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!c)){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 D,_=this.effectsSequence.length,B=c||this.data.d.k[this.keysIndex].s;for(D=0;D<_;D+=1)v!==this.keysIndex?B=this.effectsSequence[D](B,B.t):B=this.effectsSequence[D](this.currentData,B.t);p!==B&&this.setCurrentData(B),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},cr.prototype.getKeyframeValue=function(){for(var c=this.data.d.k,p=this.elem.comp.renderedFrame,v=0,D=c.length;v<=D-1&&!(v===D-1||c[v+1].t>p);)v+=1;return this.keysIndex!==v&&(this.keysIndex=v),this.data.d.k[this.keysIndex].s},cr.prototype.buildFinalText=function(c){for(var p=[],v=0,D=c.length,_,B,U=!1;v<D;)_=c.charCodeAt(v),sr.isCombinedCharacter(_)?p[p.length-1]+=c.charAt(v):_>=55296&&_<=56319?(B=c.charCodeAt(v+1),B>=56320&&B<=57343?(U||sr.isModifier(_,B)?(p[p.length-1]+=c.substr(v,2),U=!1):p.push(c.substr(v,2)),v+=1):p.push(c.charAt(v))):_>56319?(B=c.charCodeAt(v+1),sr.isZeroWidthJoiner(_,B)?(U=!0,p[p.length-1]+=c.substr(v,2),v+=1):p.push(c.charAt(v))):sr.isZeroWidthJoiner(_)?(p[p.length-1]+=c.charAt(v),U=!0):p.push(c.charAt(v)),v+=1;return p},cr.prototype.completeTextData=function(c){c.__complete=!0;var p=this.elem.globalData.fontManager,v=this.data,D=[],_,B,U,ge=0,J,De=v.m.g,Ce=0,Re=0,k=0,ee=[],Y=0,pe=0,he,W,Z=p.getFontByName(c.f),L,j=0,H=rr(Z);c.fWeight=H.weight,c.fStyle=H.style,c.finalSize=c.s,c.finalText=this.buildFinalText(c.t),B=c.finalText.length,c.finalLineHeight=c.lh;var ne=c.tr/1e3*c.finalSize,ue;if(c.sz)for(var me=!0,Oe=c.sz[0],nt=c.sz[1],tt,Ve;me;){Ve=this.buildFinalText(c.t),tt=0,Y=0,B=Ve.length,ne=c.tr/1e3*c.finalSize;var st=-1;for(_=0;_<B;_+=1)ue=Ve[_].charCodeAt(0),U=!1,Ve[_]===" "?st=_:(ue===13||ue===3)&&(Y=0,U=!0,tt+=c.finalLineHeight||c.finalSize*1.2),p.chars?(L=p.getCharData(Ve[_],Z.fStyle,Z.fFamily),j=U?0:L.w*c.finalSize/100):j=p.measureText(Ve[_],c.f,c.finalSize),Y+j>Oe&&Ve[_]!==" "?(st===-1?B+=1:_=st,tt+=c.finalLineHeight||c.finalSize*1.2,Ve.splice(_,st===_?1:0,"\r"),st=-1,Y=0):(Y+=j,Y+=ne);tt+=Z.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&nt<tt?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Ve,B=c.finalText.length,me=!1)}Y=-ne,j=0;var ct=0,Le;for(_=0;_<B;_+=1)if(U=!1,Le=c.finalText[_],ue=Le.charCodeAt(0),ue===13||ue===3?(ct=0,ee.push(Y),pe=Y>pe?Y:pe,Y=-2*ne,J="",U=!0,k+=1):J=Le,p.chars?(L=p.getCharData(Le,Z.fStyle,p.getFontByName(c.f).fFamily),j=U?0:L.w*c.finalSize/100):j=p.measureText(J,c.f,c.finalSize),Le===" "?ct+=j+ne:(Y+=j+ne+ct,ct=0),D.push({l:j,an:j,add:Ce,n:U,anIndexes:[],val:J,line:k,animatorJustifyOffset:0}),De==2){if(Ce+=j,J===""||J===" "||_===B-1){for((J===""||J===" ")&&(Ce-=j);Re<=_;)D[Re].an=Ce,D[Re].ind=ge,D[Re].extra=j,Re+=1;ge+=1,Ce=0}}else if(De==3){if(Ce+=j,J===""||_===B-1){for(J===""&&(Ce-=j);Re<=_;)D[Re].an=Ce,D[Re].ind=ge,D[Re].extra=j,Re+=1;Ce=0,ge+=1}}else D[ge].ind=ge,D[ge].extra=0,ge+=1;if(c.l=D,pe=Y>pe?Y:pe,ee.push(Y),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=pe,c.j){case 1:c.justifyOffset=-c.boxWidth;break;case 2:c.justifyOffset=-c.boxWidth/2;break;default:c.justifyOffset=0}c.lineWidths=ee;var $e=v.a,ce,Q;W=$e.length;var ve,Ke,Ie=[];for(he=0;he<W;he+=1){for(ce=$e[he],ce.a.sc&&(c.strokeColorAnim=!0),ce.a.sw&&(c.strokeWidthAnim=!0),(ce.a.fc||ce.a.fh||ce.a.fs||ce.a.fb)&&(c.fillColorAnim=!0),Ke=0,ve=ce.s.b,_=0;_<B;_+=1)Q=D[_],Q.anIndexes[he]=Ke,(ve==1&&Q.val!==""||ve==2&&Q.val!==""&&Q.val!==" "||ve==3&&(Q.n||Q.val==" "||_==B-1)||ve==4&&(Q.n||_==B-1))&&(ce.s.rn===1&&Ie.push(Ke),Ke+=1);v.a[he].s.totalChars=Ke;var lt=-1,St;if(ce.s.rn===1)for(_=0;_<B;_+=1)Q=D[_],lt!=Q.anIndexes[he]&&(lt=Q.anIndexes[he],St=Ie.splice(Math.floor(Math.random()*Ie.length),1)[0]),Q.anIndexes[he]=St}c.yOffset=c.finalLineHeight||c.finalSize*1.2,c.ls=c.ls||0,c.ascent=Z.ascent*c.finalSize/100},cr.prototype.updateDocumentData=function(c,p){p=p===void 0?this.keysIndex:p;var v=this.copyData({},this.data.d.k[p].s);v=this.copyData(v,c),this.data.d.k[p].s=v,this.recalculate(p),this.elem.addDynamicProperty(this)},cr.prototype.recalculate=function(c){var p=this.data.d.k[c].s;p.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(p)},cr.prototype.canResizeFont=function(c){this.canResize=c,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},cr.prototype.setMinimumFontSize=function(c){this.minimumFontSize=Math.floor(c)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Wm=function(){var c=Math.max,p=Math.min,v=Math.floor;function D(B,U){this._currentTextLength=-1,this.k=!1,this.data=U,this.elem=B,this.comp=B.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(B),this.s=at.getProp(B,U.s||{k:0},0,0,this),"e"in U?this.e=at.getProp(B,U.e,0,0,this):this.e={v:100},this.o=at.getProp(B,U.o||{k:0},0,0,this),this.xe=at.getProp(B,U.xe||{k:0},0,0,this),this.ne=at.getProp(B,U.ne||{k:0},0,0,this),this.sm=at.getProp(B,U.sm||{k:100},0,0,this),this.a=at.getProp(B,U.a,0,.01,this),this.dynamicProperties.length||this.getValue()}D.prototype={getMult:function(U){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var ge=0,J=0,De=1,Ce=1;this.ne.v>0?ge=this.ne.v/100:J=-this.ne.v/100,this.xe.v>0?De=1-this.xe.v/100:Ce=1+this.xe.v/100;var Re=lo.getBezierEasing(ge,J,De,Ce).get,k=0,ee=this.finalS,Y=this.finalE,pe=this.data.sh;if(pe===2)Y===ee?k=U>=Y?1:0:k=c(0,p(.5/(Y-ee)+(U-ee)/(Y-ee),1)),k=Re(k);else if(pe===3)Y===ee?k=U>=Y?0:1:k=1-c(0,p(.5/(Y-ee)+(U-ee)/(Y-ee),1)),k=Re(k);else if(pe===4)Y===ee?k=0:(k=c(0,p(.5/(Y-ee)+(U-ee)/(Y-ee),1)),k<.5?k*=2:k=1-2*(k-.5)),k=Re(k);else if(pe===5){if(Y===ee)k=0;else{var he=Y-ee;U=p(c(0,U+.5-ee),Y-ee);var W=-he/2+U,Z=he/2;k=Math.sqrt(1-W*W/(Z*Z))}k=Re(k)}else pe===6?(Y===ee?k=0:(U=p(c(0,U+.5-ee),Y-ee),k=(1+Math.cos(Math.PI+Math.PI*2*U/(Y-ee)))/2),k=Re(k)):(U>=v(ee)&&(U-ee<0?k=c(0,p(p(Y,1)-(ee-U),1)):k=c(0,p(Y-U,1))),k=Re(k));if(this.sm.v!==100){var L=this.sm.v*.01;L===0&&(L=1e-8);var j=.5-L*.5;k<j?k=0:(k=(k-j)/L,k>1&&(k=1))}return k*this.a.v},getValue:function(U){this.iterateDynamicProperties(),this._mdf=U||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,U&&this.data.r===2&&(this.e.v=this._currentTextLength);var ge=this.data.r===2?1:100/this.data.totalChars,J=this.o.v/ge,De=this.s.v/ge+J,Ce=this.e.v/ge+J;if(De>Ce){var Re=De;De=Ce,Ce=Re}this.finalS=De,this.finalE=Ce}},Be([dn],D);function _(B,U,ge){return new D(B,U)}return{getTextSelectorProp:_}}();function Hm(c,p,v){var D={propType:!1},_=at.getProp,B=p.a;this.a={r:B.r?_(c,B.r,0,Jt,v):D,rx:B.rx?_(c,B.rx,0,Jt,v):D,ry:B.ry?_(c,B.ry,0,Jt,v):D,sk:B.sk?_(c,B.sk,0,Jt,v):D,sa:B.sa?_(c,B.sa,0,Jt,v):D,s:B.s?_(c,B.s,1,.01,v):D,a:B.a?_(c,B.a,1,0,v):D,o:B.o?_(c,B.o,0,.01,v):D,p:B.p?_(c,B.p,1,0,v):D,sw:B.sw?_(c,B.sw,0,0,v):D,sc:B.sc?_(c,B.sc,1,0,v):D,fc:B.fc?_(c,B.fc,1,0,v):D,fh:B.fh?_(c,B.fh,0,0,v):D,fs:B.fs?_(c,B.fs,0,.01,v):D,fb:B.fb?_(c,B.fb,0,.01,v):D,t:B.t?_(c,B.t,0,0,v):D},this.s=Wm.getTextSelectorProp(c,p.s,v),this.s.t=p.s.t}function Eo(c,p,v){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=c,this._renderType=p,this._elem=v,this._animatorsData=qe(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(v)}Eo.prototype.searchProperties=function(){var c,p=this._textData.a.length,v,D=at.getProp;for(c=0;c<p;c+=1)v=this._textData.a[c],this._animatorsData[c]=new Hm(this._elem,v,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:D(this._elem,this._textData.p.a,0,0,this),f:D(this._elem,this._textData.p.f,0,0,this),l:D(this._elem,this._textData.p.l,0,0,this),r:D(this._elem,this._textData.p.r,0,0,this),p:D(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=D(this._elem,this._textData.m.a,1,0,this)},Eo.prototype.getMeasures=function(c,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,D=this._animatorsData,_=this._textData,B=this.mHelper,U=this._renderType,ge=this.renderedLetters.length,J,De,Ce,Re,k=c.l,ee,Y,pe,he,W,Z,L,j,H,ne,ue,me,Oe,nt,tt;if(this._hasMaskedPath){if(tt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Ve=tt.v;this._pathData.r.v&&(Ve=Ve.reverse()),ee={tLength:0,segments:[]},Re=Ve._length-1;var st;for(me=0,Ce=0;Ce<Re;Ce+=1)st=Gr.buildBezierData(Ve.v[Ce],Ve.v[Ce+1],[Ve.o[Ce][0]-Ve.v[Ce][0],Ve.o[Ce][1]-Ve.v[Ce][1]],[Ve.i[Ce+1][0]-Ve.v[Ce+1][0],Ve.i[Ce+1][1]-Ve.v[Ce+1][1]]),ee.tLength+=st.segmentLength,ee.segments.push(st),me+=st.segmentLength;Ce=Re,tt.v.c&&(st=Gr.buildBezierData(Ve.v[Ce],Ve.v[0],[Ve.o[Ce][0]-Ve.v[Ce][0],Ve.o[Ce][1]-Ve.v[Ce][1]],[Ve.i[0][0]-Ve.v[0][0],Ve.i[0][1]-Ve.v[0][1]]),ee.tLength+=st.segmentLength,ee.segments.push(st),me+=st.segmentLength),this._pathData.pi=ee}if(ee=this._pathData.pi,Y=this._pathData.f.v,L=0,Z=1,he=0,W=!0,ne=ee.segments,Y<0&&tt.v.c)for(ee.tLength<Math.abs(Y)&&(Y=-Math.abs(Y)%ee.tLength),L=ne.length-1,H=ne[L].points,Z=H.length-1;Y<0;)Y+=H[Z].partialLength,Z-=1,Z<0&&(L-=1,H=ne[L].points,Z=H.length-1);H=ne[L].points,j=H[Z-1],pe=H[Z],ue=pe.partialLength}Re=k.length,J=0,De=0;var ct=c.finalSize*1.2*.714,Le=!0,$e,ce,Q,ve,Ke;ve=D.length;var Ie,lt=-1,St,Et,Dn,Ut=Y,dr=L,Zn=Z,Ln=-1,jn,Kn,vr,dt,ln,Zr,Fi,sa,mi="",ua=this.defaultPropsArray,la;if(c.j===2||c.j===1){var Yt=0,$n=0,ja=c.j===2?-.5:-1,gi=0,ca=!0;for(Ce=0;Ce<Re;Ce+=1)if(k[Ce].n){for(Yt&&(Yt+=$n);gi<Ce;)k[gi].animatorJustifyOffset=Yt,gi+=1;Yt=0,ca=!0}else{for(Q=0;Q<ve;Q+=1)$e=D[Q].a,$e.t.propType&&(ca&&c.j===2&&($n+=$e.t.v*ja),ce=D[Q].s,Ie=ce.getMult(k[Ce].anIndexes[Q],_.a[Q].s.totalChars),Ie.length?Yt+=$e.t.v*Ie[0]*ja:Yt+=$e.t.v*Ie*ja);ca=!1}for(Yt&&(Yt+=$n);gi<Ce;)k[gi].animatorJustifyOffset=Yt,gi+=1}for(Ce=0;Ce<Re;Ce+=1){if(B.reset(),jn=1,k[Ce].n)J=0,De+=c.yOffset,De+=Le?1:0,Y=Ut,Le=!1,this._hasMaskedPath&&(L=dr,Z=Zn,H=ne[L].points,j=H[Z-1],pe=H[Z],ue=pe.partialLength,he=0),mi="",sa="",Zr="",la="",ua=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Ln!==k[Ce].line){switch(c.j){case 1:Y+=me-c.lineWidths[k[Ce].line];break;case 2:Y+=(me-c.lineWidths[k[Ce].line])/2;break}Ln=k[Ce].line}lt!==k[Ce].ind&&(k[lt]&&(Y+=k[lt].extra),Y+=k[Ce].an/2,lt=k[Ce].ind),Y+=v[0]*k[Ce].an*.005;var vi=0;for(Q=0;Q<ve;Q+=1)$e=D[Q].a,$e.p.propType&&(ce=D[Q].s,Ie=ce.getMult(k[Ce].anIndexes[Q],_.a[Q].s.totalChars),Ie.length?vi+=$e.p.v[0]*Ie[0]:vi+=$e.p.v[0]*Ie),$e.a.propType&&(ce=D[Q].s,Ie=ce.getMult(k[Ce].anIndexes[Q],_.a[Q].s.totalChars),Ie.length?vi+=$e.a.v[0]*Ie[0]:vi+=$e.a.v[0]*Ie);for(W=!0,this._pathData.a.v&&(Y=k[0].an*.5+(me-this._pathData.f.v-k[0].an*.5-k[k.length-1].an*.5)*lt/(Re-1),Y+=this._pathData.f.v);W;)he+ue>=Y+vi||!H?(Oe=(Y+vi-he)/pe.partialLength,Et=j.point[0]+(pe.point[0]-j.point[0])*Oe,Dn=j.point[1]+(pe.point[1]-j.point[1])*Oe,B.translate(-v[0]*k[Ce].an*.005,-(v[1]*ct)*.01),W=!1):H&&(he+=pe.partialLength,Z+=1,Z>=H.length&&(Z=0,L+=1,ne[L]?H=ne[L].points:tt.v.c?(Z=0,L=0,H=ne[L].points):(he-=pe.partialLength,H=null)),H&&(j=pe,pe=H[Z],ue=pe.partialLength));St=k[Ce].an/2-k[Ce].add,B.translate(-St,0,0)}else St=k[Ce].an/2-k[Ce].add,B.translate(-St,0,0),B.translate(-v[0]*k[Ce].an*.005,-v[1]*ct*.01,0);for(Q=0;Q<ve;Q+=1)$e=D[Q].a,$e.t.propType&&(ce=D[Q].s,Ie=ce.getMult(k[Ce].anIndexes[Q],_.a[Q].s.totalChars),(J!==0||c.j!==0)&&(this._hasMaskedPath?Ie.length?Y+=$e.t.v*Ie[0]:Y+=$e.t.v*Ie:Ie.length?J+=$e.t.v*Ie[0]:J+=$e.t.v*Ie));for(c.strokeWidthAnim&&(vr=c.sw||0),c.strokeColorAnim&&(c.sc?Kn=[c.sc[0],c.sc[1],c.sc[2]]:Kn=[0,0,0]),c.fillColorAnim&&c.fc&&(dt=[c.fc[0],c.fc[1],c.fc[2]]),Q=0;Q<ve;Q+=1)$e=D[Q].a,$e.a.propType&&(ce=D[Q].s,Ie=ce.getMult(k[Ce].anIndexes[Q],_.a[Q].s.totalChars),Ie.length?B.translate(-$e.a.v[0]*Ie[0],-$e.a.v[1]*Ie[1],$e.a.v[2]*Ie[2]):B.translate(-$e.a.v[0]*Ie,-$e.a.v[1]*Ie,$e.a.v[2]*Ie));for(Q=0;Q<ve;Q+=1)$e=D[Q].a,$e.s.propType&&(ce=D[Q].s,Ie=ce.getMult(k[Ce].anIndexes[Q],_.a[Q].s.totalChars),Ie.length?B.scale(1+($e.s.v[0]-1)*Ie[0],1+($e.s.v[1]-1)*Ie[1],1):B.scale(1+($e.s.v[0]-1)*Ie,1+($e.s.v[1]-1)*Ie,1));for(Q=0;Q<ve;Q+=1){if($e=D[Q].a,ce=D[Q].s,Ie=ce.getMult(k[Ce].anIndexes[Q],_.a[Q].s.totalChars),$e.sk.propType&&(Ie.length?B.skewFromAxis(-$e.sk.v*Ie[0],$e.sa.v*Ie[1]):B.skewFromAxis(-$e.sk.v*Ie,$e.sa.v*Ie)),$e.r.propType&&(Ie.length?B.rotateZ(-$e.r.v*Ie[2]):B.rotateZ(-$e.r.v*Ie)),$e.ry.propType&&(Ie.length?B.rotateY($e.ry.v*Ie[1]):B.rotateY($e.ry.v*Ie)),$e.rx.propType&&(Ie.length?B.rotateX($e.rx.v*Ie[0]):B.rotateX($e.rx.v*Ie)),$e.o.propType&&(Ie.length?jn+=($e.o.v*Ie[0]-jn)*Ie[0]:jn+=($e.o.v*Ie-jn)*Ie),c.strokeWidthAnim&&$e.sw.propType&&(Ie.length?vr+=$e.sw.v*Ie[0]:vr+=$e.sw.v*Ie),c.strokeColorAnim&&$e.sc.propType)for(ln=0;ln<3;ln+=1)Ie.length?Kn[ln]+=($e.sc.v[ln]-Kn[ln])*Ie[0]:Kn[ln]+=($e.sc.v[ln]-Kn[ln])*Ie;if(c.fillColorAnim&&c.fc){if($e.fc.propType)for(ln=0;ln<3;ln+=1)Ie.length?dt[ln]+=($e.fc.v[ln]-dt[ln])*Ie[0]:dt[ln]+=($e.fc.v[ln]-dt[ln])*Ie;$e.fh.propType&&(Ie.length?dt=It(dt,$e.fh.v*Ie[0]):dt=It(dt,$e.fh.v*Ie)),$e.fs.propType&&(Ie.length?dt=zt(dt,$e.fs.v*Ie[0]):dt=zt(dt,$e.fs.v*Ie)),$e.fb.propType&&(Ie.length?dt=Pt(dt,$e.fb.v*Ie[0]):dt=Pt(dt,$e.fb.v*Ie))}}for(Q=0;Q<ve;Q+=1)$e=D[Q].a,$e.p.propType&&(ce=D[Q].s,Ie=ce.getMult(k[Ce].anIndexes[Q],_.a[Q].s.totalChars),this._hasMaskedPath?Ie.length?B.translate(0,$e.p.v[1]*Ie[0],-$e.p.v[2]*Ie[1]):B.translate(0,$e.p.v[1]*Ie,-$e.p.v[2]*Ie):Ie.length?B.translate($e.p.v[0]*Ie[0],$e.p.v[1]*Ie[1],-$e.p.v[2]*Ie[2]):B.translate($e.p.v[0]*Ie,$e.p.v[1]*Ie,-$e.p.v[2]*Ie));if(c.strokeWidthAnim&&(Zr=vr<0?0:vr),c.strokeColorAnim&&(Fi="rgb("+Math.round(Kn[0]*255)+","+Math.round(Kn[1]*255)+","+Math.round(Kn[2]*255)+")"),c.fillColorAnim&&c.fc&&(sa="rgb("+Math.round(dt[0]*255)+","+Math.round(dt[1]*255)+","+Math.round(dt[2]*255)+")"),this._hasMaskedPath){if(B.translate(0,-c.ls),B.translate(0,v[1]*ct*.01+De,0),this._pathData.p.v){nt=(pe.point[1]-j.point[1])/(pe.point[0]-j.point[0]);var da=Math.atan(nt)*180/Math.PI;pe.point[0]<j.point[0]&&(da+=180),B.rotate(-da*Math.PI/180)}B.translate(Et,Dn,0),Y-=v[0]*k[Ce].an*.005,k[Ce+1]&<!==k[Ce+1].ind&&(Y+=k[Ce].an/2,Y+=c.tr*.001*c.finalSize)}else{switch(B.translate(J,De,0),c.ps&&B.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:B.translate(k[Ce].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[k[Ce].line]),0,0);break;case 2:B.translate(k[Ce].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[k[Ce].line])/2,0,0);break}B.translate(0,-c.ls),B.translate(St,0,0),B.translate(v[0]*k[Ce].an*.005,v[1]*ct*.01,0),J+=k[Ce].l+c.tr*.001*c.finalSize}U==="html"?mi=B.toCSS():U==="svg"?mi=B.to2dCSS():ua=[B.props[0],B.props[1],B.props[2],B.props[3],B.props[4],B.props[5],B.props[6],B.props[7],B.props[8],B.props[9],B.props[10],B.props[11],B.props[12],B.props[13],B.props[14],B.props[15]],la=jn}ge<=Ce?(Ke=new al(la,Zr,Fi,sa,mi,ua),this.renderedLetters.push(Ke),ge+=1,this.lettersChangedFlag=!0):(Ke=this.renderedLetters[Ce],this.lettersChangedFlag=Ke.update(la,Zr,Fi,sa,mi,ua)||this.lettersChangedFlag)}}},Eo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Eo.prototype.mHelper=new Rn,Eo.prototype.defaultPropsArray=[],Be([dn],Eo);function pi(){}pi.prototype.initElement=function(c,p,v){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(c,p,v),this.textProperty=new cr(this,c.t,this.dynamicProperties),this.textAnimator=new Eo(c.t,this.renderType,this),this.initTransform(c,p,v),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},pi.prototype.prepareFrame=function(c){this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},pi.prototype.createPathShape=function(c,p){var v,D=p.length,_,B="";for(v=0;v<D;v+=1)p[v].ty==="sh"&&(_=p[v].ks.k,B+=Cr(_,_.i.length,!0,c));return B},pi.prototype.updateDocumentData=function(c,p){this.textProperty.updateDocumentData(c,p)},pi.prototype.canResizeFont=function(c){this.textProperty.canResizeFont(c)},pi.prototype.setMinimumFontSize=function(c){this.textProperty.setMinimumFontSize(c)},pi.prototype.applyTextPropertiesToMatrix=function(c,p,v,D,_){switch(c.ps&&p.translate(c.ps[0],c.ps[1]+c.ascent,0),p.translate(0,-c.ls,0),c.j){case 1:p.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[v]),0,0);break;case 2:p.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[v])/2,0,0);break}p.translate(D,_,0)},pi.prototype.buildColor=function(c){return"rgb("+Math.round(c[0]*255)+","+Math.round(c[1]*255)+","+Math.round(c[2]*255)+")"},pi.prototype.emptyProp=new al,pi.prototype.destroy=function(){};var Gm={shapes:[]};function wr(c,p,v){this.textSpans=[],this.renderType="svg",this.initElement(c,p,v)}Be([aa,Do,zs,La,In,qs,pi],wr),wr.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=bt("text"))},wr.prototype.buildTextContents=function(c){for(var p=0,v=c.length,D=[],_="";p<v;)c[p]==="\r"||c[p]===""?(D.push(_),_=""):_+=c[p],p+=1;return D.push(_),D},wr.prototype.buildShapeData=function(c,p){if(c.shapes&&c.shapes.length){var v=c.shapes[0];if(v.it){var D=v.it[v.it.length-1];D.s&&(D.s.k[0]=p,D.s.k[1]=p)}}return c},wr.prototype.buildNewText=function(){this.addDynamicProperty(this);var c,p,v=this.textProperty.currentData;this.renderedLetters=qe(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 D=this.globalData.fontManager.getFontByName(v.f);if(D.fClass)this.layerElement.setAttribute("class",D.fClass);else{this.layerElement.setAttribute("font-family",D.fFamily);var _=v.fWeight,B=v.fStyle;this.layerElement.setAttribute("font-style",B),this.layerElement.setAttribute("font-weight",_)}this.layerElement.setAttribute("aria-label",v.t);var U=v.l||[],ge=!!this.globalData.fontManager.chars;p=U.length;var J,De=this.mHelper,Ce="",Re=this.data.singleShape,k=0,ee=0,Y=!0,pe=v.tr*.001*v.finalSize;if(Re&&!ge&&!v.sz){var he=this.textContainer,W="start";switch(v.j){case 1:W="end";break;case 2:W="middle";break;default:W="start";break}he.setAttribute("text-anchor",W),he.setAttribute("letter-spacing",pe);var Z=this.buildTextContents(v.finalText);for(p=Z.length,ee=v.ps?v.ps[1]+v.ascent:0,c=0;c<p;c+=1)J=this.textSpans[c].span||bt("tspan"),J.textContent=Z[c],J.setAttribute("x",0),J.setAttribute("y",ee),J.style.display="inherit",he.appendChild(J),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=J,ee+=v.finalLineHeight;this.layerElement.appendChild(he)}else{var L=this.textSpans.length,j;for(c=0;c<p;c+=1){if(this.textSpans[c]||(this.textSpans[c]={span:null,childSpan:null,glyph:null}),!ge||!Re||c===0){if(J=L>c?this.textSpans[c].span:bt(ge?"g":"text"),L<=c){if(J.setAttribute("stroke-linecap","butt"),J.setAttribute("stroke-linejoin","round"),J.setAttribute("stroke-miterlimit","4"),this.textSpans[c].span=J,ge){var H=bt("g");J.appendChild(H),this.textSpans[c].childSpan=H}this.textSpans[c].span=J,this.layerElement.appendChild(J)}J.style.display="inherit"}if(De.reset(),Re&&(U[c].n&&(k=-pe,ee+=v.yOffset,ee+=Y?1:0,Y=!1),this.applyTextPropertiesToMatrix(v,De,U[c].line,k,ee),k+=U[c].l||0,k+=pe),ge){j=this.globalData.fontManager.getCharData(v.finalText[c],D.fStyle,this.globalData.fontManager.getFontByName(v.f).fFamily);var ne;if(j.t===1)ne=new Yr(j.data,this.globalData,this);else{var ue=Gm;j.data&&j.data.shapes&&(ue=this.buildShapeData(j.data,v.finalSize)),ne=new mn(ue,this.globalData,this)}if(this.textSpans[c].glyph){var me=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(me.layerElement),me.destroy()}this.textSpans[c].glyph=ne,ne._debug=!0,ne.prepareFrame(0),ne.renderFrame(),this.textSpans[c].childSpan.appendChild(ne.layerElement),j.t===1&&this.textSpans[c].childSpan.setAttribute("transform","scale("+v.finalSize/100+","+v.finalSize/100+")")}else Re&&J.setAttribute("transform","translate("+De.props[12]+","+De.props[13]+")"),J.textContent=U[c].val,J.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Re&&J&&J.setAttribute("d",Ce)}for(;c<this.textSpans.length;)this.textSpans[c].span.style.display="none",c+=1;this._sizeChanged=!0},wr.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var c=this.layerElement.getBBox();this.bbox={top:c.y,left:c.x,width:c.width,height:c.height}}return this.bbox},wr.prototype.getValue=function(){var c,p=this.textSpans.length,v;for(this.renderedFrame=this.comp.renderedFrame,c=0;c<p;c+=1)v=this.textSpans[c].glyph,v&&(v.prepareFrame(this.comp.renderedFrame-this.data.st),v._mdf&&(this._mdf=!0))},wr.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 c,p,v=this.textAnimator.renderedLetters,D=this.textProperty.currentData.l;p=D.length;var _,B,U;for(c=0;c<p;c+=1)D[c].n||(_=v[c],B=this.textSpans[c].span,U=this.textSpans[c].glyph,U&&U.renderFrame(),_._mdf.m&&B.setAttribute("transform",_.m),_._mdf.o&&B.setAttribute("opacity",_.o),_._mdf.sw&&B.setAttribute("stroke-width",_.sw),_._mdf.sc&&B.setAttribute("stroke",_.sc),_._mdf.fc&&B.setAttribute("fill",_.fc))}};function Kc(c,p,v){this.initElement(c,p,v)}Be([Us],Kc),Kc.prototype.createContent=function(){var c=bt("rect");c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.layerElement.appendChild(c)};function Na(c,p,v){this.initFrame(),this.initBaseData(c,p,v),this.initFrame(),this.initTransform(c,p,v),this.initHierarchy()}Na.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},Na.prototype.renderFrame=function(){},Na.prototype.getBaseElement=function(){return null},Na.prototype.destroy=function(){},Na.prototype.sourceRectAtTime=function(){},Na.prototype.hide=function(){},Be([aa,Do,La,In],Na);function On(){}Be([lr],On),On.prototype.createNull=function(c){return new Na(c,this.globalData,this)},On.prototype.createShape=function(c){return new mn(c,this.globalData,this)},On.prototype.createText=function(c){return new wr(c,this.globalData,this)},On.prototype.createImage=function(c){return new Us(c,this.globalData,this)},On.prototype.createSolid=function(c){return new Kc(c,this.globalData,this)},On.prototype.configAnimation=function(c){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 "+c.w+" "+c.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",c.w),this.svgElement.setAttribute("height",c.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(c,p),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=c;var v=bt("clipPath"),D=bt("rect");D.setAttribute("width",c.w),D.setAttribute("height",c.h),D.setAttribute("x",0),D.setAttribute("y",0);var _=Dt();v.setAttribute("id",_),v.appendChild(D),this.layerElement.setAttribute("clip-path","url("+Se()+"#"+_+")"),p.appendChild(v),this.layers=c.layers,this.elements=qe(c.layers.length)},On.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var c,p=this.layers?this.layers.length:0;for(c=0;c<p;c+=1)this.elements[c]&&this.elements[c].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},On.prototype.updateContainerSize=function(){},On.prototype.findIndexByInd=function(c){var p=0,v=this.layers.length;for(p=0;p<v;p+=1)if(this.layers[p].ind===c)return p;return-1},On.prototype.buildItem=function(c){var p=this.elements;if(!(p[c]||this.layers[c].ty===99)){p[c]=!0;var v=this.createItem(this.layers[c]);if(p[c]=v,li()&&(this.layers[c].ty===0&&this.globalData.projectInterface.registerComposition(v),v.initExpressions()),this.appendElementInPos(v,c),this.layers[c].tt){var D="tp"in this.layers[c]?this.findIndexByInd(this.layers[c].tp):c-1;if(D===-1)return;if(!this.elements[D]||this.elements[D]===!0)this.buildItem(D),this.addPendingElement(v);else{var _=p[D],B=_.getMatte(this.layers[c].tt);v.setMatte(B)}}}},On.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();if(c.checkParenting(),c.data.tt)for(var p=0,v=this.elements.length;p<v;){if(this.elements[p]===c){var D="tp"in c.data?this.findIndexByInd(c.data.tp):p-1,_=this.elements[D],B=_.getMatte(this.layers[p].tt);c.setMatte(B);break}p+=1}}},On.prototype.renderFrame=function(c){if(!(this.renderedFrame===c||this.destroyed)){c===null?c=this.renderedFrame:this.renderedFrame=c,this.globalData.frameNum=c,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=c,this.globalData._mdf=!1;var p,v=this.layers.length;for(this.completeLayers||this.checkLayers(c),p=v-1;p>=0;p-=1)(this.completeLayers||this.elements[p])&&this.elements[p].prepareFrame(c-this.layers[p].st);if(this.globalData._mdf)for(p=0;p<v;p+=1)(this.completeLayers||this.elements[p])&&this.elements[p].renderFrame()}},On.prototype.appendElementInPos=function(c,p){var v=c.getBaseElement();if(v){for(var D=0,_;D<p;)this.elements[D]&&this.elements[D]!==!0&&this.elements[D].getBaseElement()&&(_=this.elements[D].getBaseElement()),D+=1;_?this.layerElement.insertBefore(v,_):this.layerElement.appendChild(v)}},On.prototype.hide=function(){this.layerElement.style.display="none"},On.prototype.show=function(){this.layerElement.style.display="block"};function Bi(){}Be([aa,Do,La,In,qs],Bi),Bi.prototype.initElement=function(c,p,v){this.initFrame(),this.initBaseData(c,p,v),this.initTransform(c,p,v),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!p.progressiveLoad)&&this.buildAllItems(),this.hide()},Bi.prototype.prepareFrame=function(c){if(this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=c/this.data.sr;else{var p=this.tm.v;p===this.data.op&&(p=this.data.op-1),this.renderedFrame=p}var v,D=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),v=D-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))}},Bi.prototype.renderInnerContent=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)(this.completeLayers||this.elements[c])&&this.elements[c].renderFrame()},Bi.prototype.setElements=function(c){this.elements=c},Bi.prototype.getElements=function(){return this.elements},Bi.prototype.destroyElements=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)this.elements[c]&&this.elements[c].destroy()},Bi.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Yr(c,p,v){this.layers=c.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?qe(this.layers.length):[],this.initElement(c,p,v),this.tm=c.tm?at.getProp(this,c.tm,0,p.frameRate,this):{_placeholder:!0}}Be([On,Bi,zs],Yr),Yr.prototype.createComp=function(c){return new Yr(c,this.globalData,this)};function rs(c,p){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.svgElement=bt("svg");var v="";if(p&&p.title){var D=bt("title"),_=Dt();D.setAttribute("id",_),D.textContent=p.title,this.svgElement.appendChild(D),v+=_}if(p&&p.description){var B=bt("desc"),U=Dt();B.setAttribute("id",U),B.textContent=p.description,this.svgElement.appendChild(B),v+=" "+U}v&&this.svgElement.setAttribute("aria-labelledby",v);var ge=bt("defs");this.svgElement.appendChild(ge);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:ge,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return Be([On],rs),rs.prototype.createComp=function(c){return new Yr(c,this.globalData,this)},Ku("svg",rs),Fr.registerModifier("tm",kr),Fr.registerModifier("pb",ka),Fr.registerModifier("rp",gr),Fr.registerModifier("rd",ho),Fr.registerModifier("zz",vo),Fr.registerModifier("op",xn),jt})})(s,s.exports);var l=s.exports;function f(z,G){var V=z==null?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(V!=null){var R,K,fe,M,oe=[],le=!0,Se=!1;try{if(fe=(V=V.call(z)).next,G!==0)for(;!(le=(R=fe.call(V)).done)&&(oe.push(R.value),oe.length!==G);le=!0);}catch(_e){Se=!0,K=_e}finally{try{if(!le&&V.return!=null&&(M=V.return(),Object(M)!==M))return}finally{if(Se)throw K}}return oe}}function h(z,G){var V=Object.keys(z);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(z);G&&(R=R.filter(function(K){return Object.getOwnPropertyDescriptor(z,K).enumerable})),V.push.apply(V,R)}return V}function m(z){for(var G=1;G<arguments.length;G++){var V=arguments[G]!=null?arguments[G]:{};G%2?h(Object(V),!0).forEach(function(R){g(z,R,V[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(V)):h(Object(V)).forEach(function(R){Object.defineProperty(z,R,Object.getOwnPropertyDescriptor(V,R))})}return z}function g(z,G,V){return G=P(G),G in z?Object.defineProperty(z,G,{value:V,enumerable:!0,configurable:!0,writable:!0}):z[G]=V,z}function b(z,G){if(z==null)return{};var V={},R=Object.keys(z),K,fe;for(fe=0;fe<R.length;fe++)K=R[fe],!(G.indexOf(K)>=0)&&(V[K]=z[K]);return V}function $(z,G){if(z==null)return{};var V=b(z,G),R,K;if(Object.getOwnPropertySymbols){var fe=Object.getOwnPropertySymbols(z);for(K=0;K<fe.length;K++)R=fe[K],!(G.indexOf(R)>=0)&&Object.prototype.propertyIsEnumerable.call(z,R)&&(V[R]=z[R])}return V}function x(z,G){return A(z)||f(z,G)||w(z,G)||E()}function A(z){if(Array.isArray(z))return z}function w(z,G){if(z){if(typeof z=="string")return C(z,G);var V=Object.prototype.toString.call(z).slice(8,-1);if(V==="Object"&&z.constructor&&(V=z.constructor.name),V==="Map"||V==="Set")return Array.from(z);if(V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V))return C(z,G)}}function C(z,G){(G==null||G>z.length)&&(G=z.length);for(var V=0,R=new Array(G);V<G;V++)R[V]=z[V];return R}function E(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
93
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T(z,G){if(typeof z!="object"||z===null)return z;var V=z[Symbol.toPrimitive];if(V!==void 0){var R=V.call(z,G);if(typeof R!="object")return R;throw new TypeError("@@toPrimitive must return a primitive value.")}return(G==="string"?String:Number)(z)}function P(z){var G=T(z,"string");return typeof G=="symbol"?G:String(G)}var F=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],q=function(G,V){var R=G.animationData,K=G.loop,fe=G.autoplay,M=G.initialSegment,oe=G.onComplete,le=G.onLoopComplete,Se=G.onEnterFrame,_e=G.onSegmentStart,Be=G.onConfigReady,Ge=G.onDataReady,Xe=G.onDataFailed,Ne=G.onLoadedImages,qe=G.onDOMLoaded,ke=G.onDestroy;G.lottieRef,G.renderer,G.name,G.assetsPath,G.rendererSettings;var je=$(G,F),Te=r.useState(!1),Ye=x(Te,2),ht=Ye[0],Ht=Ye[1],xt=r.useRef(),_t=r.useRef(null),Wr=function(){var Pt;(Pt=xt.current)===null||Pt===void 0||Pt.play()},Jt=function(){var Pt;(Pt=xt.current)===null||Pt===void 0||Pt.stop()},xe=function(){var Pt;(Pt=xt.current)===null||Pt===void 0||Pt.pause()},Ae=function(Pt){var It;(It=xt.current)===null||It===void 0||It.setSpeed(Pt)},Fe=function(Pt,It){var qt;(qt=xt.current)===null||qt===void 0||qt.goToAndPlay(Pt,It)},Qe=function(Pt,It){var qt;(qt=xt.current)===null||qt===void 0||qt.goToAndStop(Pt,It)},et=function(Pt){var It;(It=xt.current)===null||It===void 0||It.setDirection(Pt)},Je=function(Pt,It){var qt;(qt=xt.current)===null||qt===void 0||qt.playSegments(Pt,It)},gt=function(Pt){var It;(It=xt.current)===null||It===void 0||It.setSubframe(Pt)},kt=function(Pt){var It;return(It=xt.current)===null||It===void 0?void 0:It.getDuration(Pt)},Dt=function(){var Pt;(Pt=xt.current)===null||Pt===void 0||Pt.destroy(),xt.current=void 0},bn=function(){var Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},It;if(_t.current){(It=xt.current)===null||It===void 0||It.destroy();var qt=m(m(m({},G),Pt),{},{container:_t.current});return xt.current=l.loadAnimation(qt),Ht(!!xt.current),function(){var pr;(pr=xt.current)===null||pr===void 0||pr.destroy(),xt.current=void 0}}};r.useEffect(function(){var zt=bn();return function(){return zt==null?void 0:zt()}},[R,K]),r.useEffect(function(){xt.current&&(xt.current.autoplay=!!fe)},[fe]),r.useEffect(function(){if(xt.current){if(!M){xt.current.resetSegments(!0);return}!Array.isArray(M)||!M.length||((xt.current.currentRawFrame<M[0]||xt.current.currentRawFrame>M[1])&&(xt.current.currentRawFrame=M[0]),xt.current.setSegment(M[0],M[1]))}},[M]),r.useEffect(function(){var zt=[{name:"complete",handler:oe},{name:"loopComplete",handler:le},{name:"enterFrame",handler:Se},{name:"segmentStart",handler:_e},{name:"config_ready",handler:Be},{name:"data_ready",handler:Ge},{name:"data_failed",handler:Xe},{name:"loaded_images",handler:Ne},{name:"DOMLoaded",handler:qe},{name:"destroy",handler:ke}],Pt=zt.filter(function(qt){return qt.handler!=null});if(Pt.length){var It=Pt.map(function(qt){var pr;return(pr=xt.current)===null||pr===void 0||pr.addEventListener(qt.name,qt.handler),function(){var Hr;(Hr=xt.current)===null||Hr===void 0||Hr.removeEventListener(qt.name,qt.handler)}});return function(){It.forEach(function(qt){return qt()})}}},[oe,le,Se,_e,Be,Ge,Xe,Ne,qe,ke]);var Dr=a.default.createElement("div",m({style:V,ref:_t},je));return{View:Dr,play:Wr,stop:Jt,pause:xe,setSpeed:Ae,goToAndStop:Qe,goToAndPlay:Fe,setDirection:et,playSegments:Je,setSubframe:gt,getDuration:kt,destroy:Dt,animationContainerRef:_t,animationLoaded:ht,animationItem:xt.current}};function te(z){var G=z.getBoundingClientRect(),V=G.top,R=G.height,K=window.innerHeight-V,fe=window.innerHeight+R;return K/fe}function se(z,G,V){var R=z.getBoundingClientRect(),K=R.top,fe=R.left,M=R.width,oe=R.height,le=(G-fe)/M,Se=(V-K)/oe;return{x:le,y:Se}}var ae=function(G){var V=G.wrapperRef,R=G.animationItem,K=G.mode,fe=G.actions;r.useEffect(function(){var M=V.current;if(!(!M||!R||!fe.length)){R.stop();var oe=function(){var _e=null,Be=function(){var Xe=te(M),Ne=fe.find(function(ke){var je=ke.visibility;return je&&Xe>=je[0]&&Xe<=je[1]});if(Ne){if(Ne.type==="seek"&&Ne.visibility&&Ne.frames.length===2){var qe=Ne.frames[0]+Math.ceil((Xe-Ne.visibility[0])/(Ne.visibility[1]-Ne.visibility[0])*Ne.frames[1]);//! goToAndStop must be relative to the start of the current segment
|
|
94
|
-
R.goToAndStop(qe-R.firstFrame-1,!0)}Ne.type==="loop"&&(_e===null||_e!==Ne.frames||R.isPaused)&&(R.playSegments(Ne.frames,!0),_e=Ne.frames),Ne.type==="play"&&R.isPaused&&(R.resetSegments(!0),R.play()),Ne.type==="stop"&&R.goToAndStop(Ne.frames[0]-R.firstFrame-1,!0)}};return document.addEventListener("scroll",Be),function(){document.removeEventListener("scroll",Be)}},le=function(){var _e=function(Ne,qe){var ke=Ne,je=qe;if(ke!==-1&&je!==-1){var Te=se(M,ke,je);ke=Te.x,je=Te.y}var Ye=fe.find(function(xt){var _t=xt.position;return _t&&Array.isArray(_t.x)&&Array.isArray(_t.y)?ke>=_t.x[0]&&ke<=_t.x[1]&&je>=_t.y[0]&&je<=_t.y[1]:_t&&!Number.isNaN(_t.x)&&!Number.isNaN(_t.y)?ke===_t.x&&je===_t.y:!1});if(Ye){if(Ye.type==="seek"&&Ye.position&&Array.isArray(Ye.position.x)&&Array.isArray(Ye.position.y)&&Ye.frames.length===2){var ht=(ke-Ye.position.x[0])/(Ye.position.x[1]-Ye.position.x[0]),Ht=(je-Ye.position.y[0])/(Ye.position.y[1]-Ye.position.y[0]);R.playSegments(Ye.frames,!0),R.goToAndStop(Math.ceil((ht+Ht)/2*(Ye.frames[1]-Ye.frames[0])),!0)}Ye.type==="loop"&&R.playSegments(Ye.frames,!0),Ye.type==="play"&&(R.isPaused&&R.resetSegments(!1),R.playSegments(Ye.frames)),Ye.type==="stop"&&R.goToAndStop(Ye.frames[0],!0)}},Be=function(Ne){_e(Ne.clientX,Ne.clientY)},Ge=function(){_e(-1,-1)};return M.addEventListener("mousemove",Be),M.addEventListener("mouseout",Ge),function(){M.removeEventListener("mousemove",Be),M.removeEventListener("mouseout",Ge)}};switch(K){case"scroll":return oe();case"cursor":return le()}}},[K,R])},O=function(G){var V=G.actions,R=G.mode,K=G.lottieObj,fe=K.animationItem,M=K.View,oe=K.animationContainerRef;return ae({actions:V,animationItem:fe,mode:R,wrapperRef:oe}),M},Ee=["style","interactivity"],be=function(G){var V,R,K,fe=G.style,M=G.interactivity,oe=$(G,Ee),le=q(oe,fe),Se=le.View,_e=le.play,Be=le.stop,Ge=le.pause,Xe=le.setSpeed,Ne=le.goToAndStop,qe=le.goToAndPlay,ke=le.setDirection,je=le.playSegments,Te=le.setSubframe,Ye=le.getDuration,ht=le.destroy,Ht=le.animationContainerRef,xt=le.animationLoaded,_t=le.animationItem;return r.useEffect(function(){G.lottieRef&&(G.lottieRef.current={play:_e,stop:Be,pause:Ge,setSpeed:Xe,goToAndPlay:qe,goToAndStop:Ne,setDirection:ke,playSegments:je,setSubframe:Te,getDuration:Ye,destroy:ht,animationContainerRef:Ht,animationLoaded:xt,animationItem:_t})},[(V=G.lottieRef)===null||V===void 0?void 0:V.current]),O({lottieObj:{View:Se,play:_e,stop:Be,pause:Ge,setSpeed:Xe,goToAndStop:Ne,goToAndPlay:qe,setDirection:ke,playSegments:je,setSubframe:Te,getDuration:Ye,destroy:ht,animationContainerRef:Ht,animationLoaded:xt,animationItem:_t},actions:(R=M==null?void 0:M.actions)!==null&&R!==void 0?R:[],mode:(K=M==null?void 0:M.mode)!==null&&K!==void 0?K:"scroll"})};n.LottiePlayer=l,n.default=be,n.useLottie=q,n.useLottieInteractivity=O,Object.defineProperty(n,"__esModule",{value:!0})})}($d,$d.exports)),$d.exports}var yoe=voe();const boe=ar(yoe),xoe=I.createContext({});function Doe(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const Rx=typeof window<"u",$oe=Rx?I.useLayoutEffect:I.useEffect,$M=I.createContext(null),EM=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Eoe(e){return typeof e=="object"&&e!==null}function CM(e){return Eoe(e)&&"offsetHeight"in e}const _h=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Coe(e,t){let n=new Set,r=new Set,i=!1,a=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(h){o.has(h)&&(f.schedule(h),e()),h(s)}const f={schedule:(h,m=!1,g=!1)=>{const $=g&&i?n:r;return m&&o.add(h),$.has(h)||$.add(h),h},cancel:h=>{r.delete(h),o.delete(h)},process:h=>{if(s=h,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,a&&(a=!1,f.process(h))}};return f}const Ho={},woe=40;function wM(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=_h.reduce((E,T)=>(E[T]=Coe(a),E),{}),{setup:s,read:l,resolveKeyframes:f,preUpdate:h,update:m,preRender:g,render:b,postRender:$}=o,x=()=>{const E=Ho.useManualTiming?i.timestamp:performance.now();n=!1,Ho.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(E-i.timestamp,woe),1)),i.timestamp=E,i.isProcessing=!0,s.process(i),l.process(i),f.process(i),h.process(i),m.process(i),g.process(i),b.process(i),$.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(x))},A=()=>{n=!0,r=!0,i.isProcessing||e(x)};return{schedule:_h.reduce((E,T)=>{const P=o[T];return E[T]=(F,q=!1,te=!1)=>(n||A(),P.schedule(F,q,te)),E},{}),cancel:E=>{for(let T=0;T<_h.length;T++)o[_h[T]].cancel(E)},state:i,steps:o}}const yc=e=>e,{schedule:wa,cancel:p1,state:Rp}=wM(typeof requestAnimationFrame<"u"?requestAnimationFrame:yc,!0),Ix=I.createContext({strict:!1}),hS={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"]},rc={};for(const e in hS)rc[e]={isEnabled:t=>hS[e].some(n=>!!t[n])};function pS(e){for(const t in e)rc[t]={...rc[t],...e[t]}}function Aoe({children:e,features:t,strict:n=!1}){const[,r]=I.useState(!Cy(t)),i=I.useRef(void 0);if(!Cy(t)){const{renderer:a,...o}=t;i.current=a,pS(o)}return I.useEffect(()=>{Cy(t)&&t().then(({renderer:a,...o})=>{pS(o),i.current=a,r(!0)})},[]),io.jsx(Ix.Provider,{value:{renderer:i.current,strict:n},children:e})}function Cy(e){return typeof e=="function"}const Soe=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 Ip(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Soe.has(e)}let AM=e=>!Ip(e);function Toe(e){e&&(AM=t=>t.startsWith("on")?!Ip(t):e(t))}try{Toe(require("@emotion/is-prop-valid").default)}catch{}function Poe(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(AM(i)||n===!0&&Ip(i)||!t&&!Ip(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const mS=new Set;function Ox(e,t,n){e||mS.has(t)||(console.warn(t),mS.add(t))}function _oe(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Ox(!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 Om=I.createContext({});function Lm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Jd(e){return typeof e=="string"||Array.isArray(e)}const Lx=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Vx=["initial",...Lx];function Vm(e){return Lm(e.animate)||Vx.some(t=>Jd(e[t]))}function SM(e){return!!(Vm(e)||e.variants)}function Boe(e,t){if(Vm(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Jd(n)?n:void 0,animate:Jd(r)?r:void 0}}return e.inherit!==!1?t:{}}function Foe(e){const{initial:t,animate:n}=Boe(e,I.useContext(Om));return I.useMemo(()=>({initial:t,animate:n}),[gS(t),gS(n)])}function gS(e){return Array.isArray(e)?e.join(" "):e}const koe=Symbol.for("motionComponentSymbol");function TM(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Moe(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):TM(n)&&(n.current=r))},[t])}const Nx=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Roe="framerAppearId",PM="data-"+Nx(Roe),Ioe=I.createContext({}),{schedule:Ooe}=wM(queueMicrotask,!1);function Loe(e,t,n,r,i){var x,A;const{visualElement:a}=I.useContext(Om),o=I.useContext(Ix),s=I.useContext($M),l=I.useContext(EM).reducedMotion,f=I.useRef(null);r=r||o.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const h=f.current,m=I.useContext(Ioe);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&Voe(f.current,n,i,m);const g=I.useRef(!1);I.useInsertionEffect(()=>{h&&g.current&&h.update(n,s)});const b=n[PM],$=I.useRef(!!b&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,b))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,b)));return $oe(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Ooe.render(h.render),$.current&&h.animationState&&h.animationState.animateChanges())}),I.useEffect(()=>{h&&(!$.current&&h.animationState&&h.animationState.animateChanges(),$.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)==null||w.call(window,b)}),$.current=!1))}),h}function Voe(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:f,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:_M(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&TM(s),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:f})}function _M(e){if(e)return e.options.allowProjection!==!1?e.projection:_M(e.parent)}let Af=()=>{},Bu=()=>{};process.env.NODE_ENV!=="production"&&(Af=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Bu=(e,t)=>{if(!e)throw new Error(t)});function Noe({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){function a(s,l){let f;const h={...I.useContext(EM),...s,layoutId:joe(s)},{isStatic:m}=h,g=Foe(s),b=r(s,m);if(!m&&Rx){Koe(h,e);const $=zoe(h);f=$.MeasureLayout,g.visualElement=Loe(i,b,h,t,$.ProjectionNode)}return io.jsxs(Om.Provider,{value:g,children:[f&&g.visualElement?io.jsx(f,{visualElement:g.visualElement,...h}):null,n(i,s,Moe(b,g.visualElement,l),b,m,g.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const o=I.forwardRef(a);return o[koe]=i,o}function joe({layoutId:e}){const t=I.useContext(xoe).id;return t&&e!==void 0?t+"-"+e:e}function Koe(e,t){I.useContext(Ix).strict,process.env.NODE_ENV}function zoe(e){const{drag:t,layout:n}=rc;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 BM=e=>t=>typeof t=="string"&&t.startsWith(e),FM=BM("--"),qoe=BM("var(--"),jx=e=>qoe(e)?Uoe.test(e.split("/*")[0].trim()):!1,Uoe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Woe={},bc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],xc=new Set(bc);function kM(e,{layout:t,layoutId:n}){return xc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Woe[e]||e==="opacity")}const MM=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Fu=(e,t,n)=>n>t?t:n<e?e:n,Dc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ef={...Dc,transform:e=>Fu(0,1,e)},Bh={...Dc,default:1},vS={...Dc,transform:Math.round},Sf=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ps=Sf("deg"),Wl=Sf("%"),Tt=Sf("px"),Hoe=Sf("vh"),Goe=Sf("vw"),yS={...Wl,parse:e=>Wl.parse(e)/100,transform:e=>Wl.transform(e*100)},Yoe={rotate:ps,rotateX:ps,rotateY:ps,rotateZ:ps,scale:Bh,scaleX:Bh,scaleY:Bh,scaleZ:Bh,skew:ps,skewX:ps,skewY:ps,distance:Tt,translateX:Tt,translateY:Tt,translateZ:Tt,x:Tt,y:Tt,z:Tt,perspective:Tt,transformPerspective:Tt,opacity:ef,originX:yS,originY:yS,originZ:Tt},Kx={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,...Yoe,zIndex:vS,fillOpacity:ef,strokeOpacity:ef,numOctaves:vS},Zoe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Xoe=bc.length;function Qoe(e,t,n){let r="",i=!0;for(let a=0;a<Xoe;a++){const o=bc[a],s=e[o];if(s===void 0)continue;let l=!0;if(typeof s=="number"?l=s===(o.startsWith("scale")?1:0):l=parseFloat(s)===0,!l||n){const f=MM(s,Kx[o]);if(!l){i=!1;const h=Zoe[o]||o;r+=`${h}(${f}) `}n&&(t[o]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function zx(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,s=!1;for(const l in t){const f=t[l];if(xc.has(l)){o=!0;continue}else if(FM(l)){i[l]=f;continue}else{const h=MM(f,Kx[l]);l.startsWith("origin")?(s=!0,a[l]=h):r[l]=h}}if(t.transform||(o||n?r.transform=Qoe(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:l="50%",originY:f="50%",originZ:h=0}=a;r.transformOrigin=`${l} ${f} ${h}`}}const qx=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),jr=e=>!!(e&&e.getVelocity);function RM(e,t,n){for(const r in t)!jr(t[r])&&!kM(r,n)&&(e[r]=t[r])}function Joe({transformTemplate:e},t){return I.useMemo(()=>{const n=qx();return zx(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ese(e,t){const n=e.style||{},r={};return RM(r,n,e),Object.assign(r,Joe(e,t)),r}function tse(e,t){const n={},r=ese(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 nse={offset:"stroke-dashoffset",array:"stroke-dasharray"},rse={offset:"strokeDashoffset",array:"strokeDasharray"};function ise(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?nse:rse;e[a.offset]=Tt.transform(-r);const o=Tt.transform(t),s=Tt.transform(n);e[a.array]=`${o} ${s}`}function IM(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},l,f,h){if(zx(e,s,f),l){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&&ise(m,i,a,o,!1)}const OM=()=>({...qx(),attrs:{}}),LM=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ase(e,t,n,r){const i=I.useMemo(()=>{const a=OM();return IM(a,t,LM(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};RM(a,e.style,e),i.style={...a,...i.style}}return i}const ose=["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 Ux(e){return typeof e!="string"||e.includes("-")?!1:!!(ose.indexOf(e)>-1||/[A-Z]/u.test(e))}function sse(e=!1){return(n,r,i,{latestValues:a},o)=>{const l=(Ux(n)?ase:tse)(r,a,o,n),f=Poe(r,typeof n=="string",e),h=n!==I.Fragment?{...f,...l,ref:i}:{},{children:m}=r,g=I.useMemo(()=>jr(m)?m.get():m,[m]);return I.createElement(n,{...h,children:g})}}function bS(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Wx(e,t,n,r){if(typeof t=="function"){const[i,a]=bS(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]=bS(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function use(e){return jr(e)?e.get():e}function lse({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:cse(n,r,i,e),renderState:t()}}const VM=e=>(t,n)=>{const r=I.useContext(Om),i=I.useContext($M),a=()=>lse(e,t,r,i);return n?a():Doe(a)};function cse(e,t,n,r){const i={},a=r(e,{});for(const g in a)i[g]=use(a[g]);let{initial:o,animate:s}=e;const l=Vm(e),f=SM(e);t&&f&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let h=n?n.initial===!1:!1;h=h||o===!1;const m=h?s:o;if(m&&typeof m!="boolean"&&!Lm(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const $=Wx(e,g[b]);if($){const{transitionEnd:x,transition:A,...w}=$;for(const C in w){let E=w[C];if(Array.isArray(E)){const T=h?E.length-1:0;E=E[T]}E!==null&&(i[C]=E)}for(const C in x)i[C]=x[C]}}}return i}function Hx(e,t,n){var a;const{style:r}=e,i={};for(const o in r)(jr(r[o])||t.style&&jr(t.style[o])||kM(o,e)||((a=n==null?void 0:n.getValue(o))==null?void 0:a.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const dse={useVisualState:VM({scrapeMotionValuesFromProps:Hx,createRenderState:qx})};function NM(e,t,n){const r=Hx(e,t,n);for(const i in e)if(jr(e[i])||jr(t[i])){const a=bc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const fse={useVisualState:VM({scrapeMotionValuesFromProps:NM,createRenderState:OM})};function hse(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...Ux(r)?fse:dse,preloadedFeatures:e,useRender:sse(i),createVisualElement:t,Component:r};return Noe(o)}}const pse=hse(),mse=_oe(pse);function tf(e,t,n){const r=e.getProps();return Wx(r,t,n!==void 0?n:r.custom,e)}const m1=e=>Array.isArray(e);let Qh;function gse(){Qh=void 0}const Yi={now:()=>(Qh===void 0&&Yi.set(Rp.isProcessing||Ho.useManualTiming?Rp.timestamp:performance.now()),Qh),set:e=>{Qh=e,queueMicrotask(gse)}};function vse(e,t){e.indexOf(t)===-1&&e.push(t)}function yse(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class jM{constructor(){this.subscriptions=[]}add(t){return vse(this.subscriptions,t),()=>yse(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 o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function KM(e,t){return t?e*(1e3/t):0}const xS=30,bse=e=>!isNaN(parseFloat(e));class xse{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{var o,s;const a=Yi.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty();i&&((s=this.events.renderRequest)==null||s.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Yi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=bse(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Ox(!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 jM);const r=this.events[t].add(n);return t==="change"?()=>{r(),wa.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=Yi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>xS)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,xS);return KM(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 Op(e,t){return new xse(e,t)}function Dse(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Op(n))}function $se(e){return m1(e)?e[e.length-1]||0:e}function Ese(e,t){const n=tf(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const s=$se(a[o]);Dse(e,o,s)}}function Cse(e){return!!(jr(e)&&e.add)}function wse(e,t){const n=e.getValue("willChange");if(Cse(n))return n.add(t);if(!n&&Ho.WillChange){const r=new Ho.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ase(e){return e.props[PM]}const Sse=e=>e!==null;function Tse(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Sse),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const Pse={type:"spring",stiffness:500,damping:25,restSpeed:10},_se=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Bse={type:"keyframes",duration:.8},Fse={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},kse=(e,{keyframes:t})=>t.length>2?Bse:xc.has(e)?e.startsWith("scale")?_se(t[1]):Pse:Fse;function Mse({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:l,elapsed:f,...h}){return!!Object.keys(h).length}function zM(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const ro=e=>e*1e3,Ko=e=>e/1e3,Id=e=>Math.round(e*1e5)/1e5,Gx=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Rse(e){return e==null}const Ise=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Yx=(e,t)=>n=>!!(typeof n=="string"&&Ise.test(n)&&n.startsWith(e)||t&&!Rse(n)&&Object.prototype.hasOwnProperty.call(n,t)),qM=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,s]=r.match(Gx);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},Ose=e=>Fu(0,255,e),wy={...Dc,transform:e=>Math.round(Ose(e))},mu={test:Yx("rgb","red"),parse:qM("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+wy.transform(e)+", "+wy.transform(t)+", "+wy.transform(n)+", "+Id(ef.transform(r))+")"};function Lse(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 g1={test:Yx("#"),parse:Lse,transform:mu.transform},Ml={test:Yx("hsl","hue"),parse:qM("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Wl.transform(Id(t))+", "+Wl.transform(Id(n))+", "+Id(ef.transform(r))+")"},Sr={test:e=>mu.test(e)||g1.test(e)||Ml.test(e),parse:e=>mu.test(e)?mu.parse(e):Ml.test(e)?Ml.parse(e):g1.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?mu.transform(e):Ml.transform(e)},Vse=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Nse(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Gx))==null?void 0:t.length)||0)+(((n=e.match(Vse))==null?void 0:n.length)||0)>0}const UM="number",WM="color",jse="var",Kse="var(",DS="${}",zse=/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 nf(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const s=t.replace(zse,l=>(Sr.test(l)?(r.color.push(a),i.push(WM),n.push(Sr.parse(l))):l.startsWith(Kse)?(r.var.push(a),i.push(jse),n.push(l)):(r.number.push(a),i.push(UM),n.push(parseFloat(l))),++a,DS)).split(DS);return{values:n,split:s,indexes:r,types:i}}function HM(e){return nf(e).values}function GM(e){const{split:t,types:n}=nf(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const s=n[o];s===UM?a+=Id(i[o]):s===WM?a+=Sr.transform(i[o]):a+=i[o]}return a}}const qse=e=>typeof e=="number"?0:e;function Use(e){const t=HM(e);return GM(e)(t.map(qse))}const $c={test:Nse,parse:HM,createTransformer:GM,getAnimatableNone:Use};function Ay(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 Wse({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=Ay(l,s,e+1/3),a=Ay(l,s,e),o=Ay(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Lp(e,t){return n=>n>0?t:e}const Nm=(e,t,n)=>e+(t-e)*n,Sy=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Hse=[g1,mu,Ml],Gse=e=>Hse.find(t=>t.test(e));function $S(e){const t=Gse(e);if(Af(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Ml&&(n=Wse(n)),n}const ES=(e,t)=>{const n=$S(e),r=$S(t);if(!n||!r)return Lp(e,t);const i={...n};return a=>(i.red=Sy(n.red,r.red,a),i.green=Sy(n.green,r.green,a),i.blue=Sy(n.blue,r.blue,a),i.alpha=Nm(n.alpha,r.alpha,a),mu.transform(i))},v1=new Set(["none","hidden"]);function Yse(e,t){return v1.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}const Zse=(e,t)=>n=>t(e(n)),jm=(...e)=>e.reduce(Zse);function Xse(e,t){return n=>Nm(e,t,n)}function Zx(e){return typeof e=="number"?Xse:typeof e=="string"?jx(e)?Lp:Sr.test(e)?ES:eue:Array.isArray(e)?YM:typeof e=="object"?Sr.test(e)?ES:Qse:Lp}function YM(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>Zx(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function Qse(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Zx(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function Jse(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],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}const eue=(e,t)=>{const n=$c.createTransformer(t),r=nf(e),i=nf(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?v1.has(e)&&!i.values.length||v1.has(t)&&!r.values.length?Yse(e,t):jm(YM(Jse(r,i),i.values),n):(Af(!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.`),Lp(e,t))};function ZM(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Nm(e,t,n):Zx(e)(e,t)}const tue=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>wa.update(t,n),stop:()=>p1(t),now:()=>Rp.isProcessing?Rp.timestamp:Yi.now()}},XM=(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)})`},Vp=2e4;function Xx(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Vp;)t+=n,r=e.next(t);return t>=Vp?1/0:t}function nue(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Xx(r),Vp);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:Ko(i)}}const rue=5;function QM(e,t,n){const r=Math.max(t-rue,0);return KM(n-e(r),t-r)}const Fn={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},Ty=.001;function iue({duration:e=Fn.duration,bounce:t=Fn.bounce,velocity:n=Fn.velocity,mass:r=Fn.mass}){let i,a;Af(e<=ro(Fn.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Fu(Fn.minDamping,Fn.maxDamping,o),e=Fu(Fn.minDuration,Fn.maxDuration,Ko(e)),o<1?(i=f=>{const h=f*o,m=h*e,g=h-n,b=y1(f,o),$=Math.exp(-m);return Ty-g/b*$},a=f=>{const m=f*o*e,g=m*n+n,b=Math.pow(o,2)*Math.pow(f,2)*e,$=Math.exp(-m),x=y1(Math.pow(f,2),o);return(-i(f)+Ty>0?-1:1)*((g-b)*$)/x}):(i=f=>{const h=Math.exp(-f*e),m=(f-n)*e+1;return-Ty+h*m},a=f=>{const h=Math.exp(-f*e),m=(n-f)*(e*e);return h*m});const s=5/e,l=oue(i,a,s);if(e=ro(e),isNaN(l))return{stiffness:Fn.stiffness,damping:Fn.damping,duration:e};{const f=Math.pow(l,2)*r;return{stiffness:f,damping:o*2*Math.sqrt(r*f),duration:e}}}const aue=12;function oue(e,t,n){let r=n;for(let i=1;i<aue;i++)r=r-e(r)/t(r);return r}function y1(e,t){return e*Math.sqrt(1-t*t)}const sue=["duration","bounce"],uue=["stiffness","damping","mass"];function CS(e,t){return t.some(n=>e[n]!==void 0)}function lue(e){let t={velocity:Fn.velocity,stiffness:Fn.stiffness,damping:Fn.damping,mass:Fn.mass,isResolvedFromDuration:!1,...e};if(!CS(e,uue)&&CS(e,sue))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Fu(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Fn.mass,stiffness:i,damping:a}}else{const n=iue(e);t={...t,...n,mass:Fn.mass},t.isResolvedFromDuration=!0}return t}function Np(e=Fn.visualDuration,t=Fn.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],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:l,damping:f,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=lue({...n,velocity:-Ko(n.velocity||0)}),$=g||0,x=f/(2*Math.sqrt(l*h)),A=o-a,w=Ko(Math.sqrt(l/h)),C=Math.abs(A)<5;r||(r=C?Fn.restSpeed.granular:Fn.restSpeed.default),i||(i=C?Fn.restDelta.granular:Fn.restDelta.default);let E;if(x<1){const P=y1(w,x);E=F=>{const q=Math.exp(-x*w*F);return o-q*(($+x*w*A)/P*Math.sin(P*F)+A*Math.cos(P*F))}}else if(x===1)E=P=>o-Math.exp(-w*P)*(A+($+w*A)*P);else{const P=w*Math.sqrt(x*x-1);E=F=>{const q=Math.exp(-x*w*F),te=Math.min(P*F,300);return o-q*(($+x*w*A)*Math.sinh(te)+P*A*Math.cosh(te))/P}}const T={calculatedDuration:b&&m||null,next:P=>{const F=E(P);if(b)s.done=P>=m;else{let q=P===0?$:0;x<1&&(q=P===0?ro($):QM(E,P,F));const te=Math.abs(q)<=r,se=Math.abs(o-F)<=i;s.done=te&&se}return s.value=s.done?o:F,s},toString:()=>{const P=Math.min(Xx(T),Vp),F=XM(q=>T.next(P*q).value,P,30);return P+"ms "+F},toTransition:()=>{}};return T}Np.applyToOptions=e=>{const t=nue(e,100,Np);return e.ease=t.ease,e.duration=ro(t.duration),e.type="keyframes",e};function b1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:f=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=te=>s!==void 0&&te<s||l!==void 0&&te>l,$=te=>s===void 0?l:l===void 0||Math.abs(s-te)<Math.abs(l-te)?s:l;let x=n*t;const A=m+x,w=o===void 0?A:o(A);w!==A&&(x=w-m);const C=te=>-x*Math.exp(-te/r),E=te=>w+C(te),T=te=>{const se=C(te),ae=E(te);g.done=Math.abs(se)<=f,g.value=g.done?w:ae};let P,F;const q=te=>{b(g.value)&&(P=te,F=Np({keyframes:[g.value,$(g.value)],velocity:QM(E,te,g.value),damping:i,stiffness:a,restDelta:f,restSpeed:h}))};return q(0),{calculatedDuration:null,next:te=>{let se=!1;return!F&&P===void 0&&(se=!0,T(te),q(te)),P!==void 0&&te>=P?F.next(te-P):(!se&&T(te),g)}}}const JM=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};function cue(e,t,n){const r=[],i=n||Ho.mix||ZM,a=e.length-1;for(let o=0;o<a;o++){let s=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||yc:t;s=jm(l,s)}r.push(s)}return r}function due(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Bu(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 o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=cue(t,r,i),l=s.length,f=h=>{if(o&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=JM(e[m],e[m+1],h);return s[m](g)};return n?h=>f(Fu(e[0],e[a-1],h)):f}function fue(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=JM(0,t,r);e.push(Nm(n,1,i))}}function hue(e){const t=[0];return fue(t,e.length-1),t}function pue(e,t){return e.map(n=>n*t)}const eR=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,mue=1e-7,gue=12;function vue(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=eR(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>mue&&++s<gue);return o}function Tf(e,t,n,r){if(e===t&&n===r)return yc;const i=a=>vue(a,0,1,e,n);return a=>a===0||a===1?a:eR(i(a),t,r)}const yue=Tf(.42,0,1,1),bue=Tf(0,0,.58,1),tR=Tf(.42,0,.58,1),xue=e=>Array.isArray(e)&&typeof e[0]!="number",nR=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,rR=e=>t=>1-e(1-t),iR=Tf(.33,1.53,.69,.99),Qx=rR(iR),aR=nR(Qx),oR=e=>(e*=2)<1?.5*Qx(e):.5*(2-Math.pow(2,-10*(e-1))),Jx=e=>1-Math.sin(Math.acos(e)),Due=rR(Jx),sR=nR(Jx),uR=e=>Array.isArray(e)&&typeof e[0]=="number",wS={linear:yc,easeIn:yue,easeInOut:tR,easeOut:bue,circIn:Jx,circInOut:sR,circOut:Due,backIn:Qx,backInOut:aR,backOut:iR,anticipate:oR},$ue=e=>typeof e=="string",AS=e=>{if(uR(e)){Bu(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Tf(t,n,r,i)}else if($ue(e))return Bu(wS[e]!==void 0,`Invalid easing type '${e}'`),wS[e];return e};function Eue(e,t){return e.map(()=>t||tR).splice(0,e.length-1)}function Rl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=xue(r)?r.map(AS):AS(r),a={done:!1,value:t[0]},o=pue(n&&n.length===t.length?n:hue(t),e),s=due(o,t,{ease:Array.isArray(i)?i:Eue(t,i)});return{calculatedDuration:e,next:l=>(a.value=s(l),a.done=l>=e,a)}}const Cue=e=>e!==null;function eD(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(Cue),s=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!s||r===void 0?a[s]:r}const wue={decay:b1,inertia:b1,tween:Rl,keyframes:Rl,spring:Np};function lR(e){typeof e.type=="string"&&(e.type=wue[e.type])}class tD{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 Aue=e=>e/100;class nD extends tD{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!==Yi.now()&&this.tick(Yi.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;lR(t);const{type:n=Rl,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=t;let{keyframes:s}=t;const l=n||Rl;process.env.NODE_ENV!=="production"&&l!==Rl&&Bu(s.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${s}`),l!==Rl&&typeof s[0]!="number"&&(this.mixKeyframes=jm(Aue,ZM(s[0],s[1])),s=[0,100]);const f=l({...t,keyframes:s});a==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-o})),f.calculatedDuration===null&&(f.calculatedDuration=Xx(f));const{calculatedDuration:h}=f;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=f}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:o,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:f=0,keyframes:h,repeat:m,repeatType:g,repeatDelay:b,type:$,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 w=this.currentTime-f*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?w<0:w>i;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let E=this.currentTime,T=r;if(m){const te=Math.min(this.currentTime,i)/s;let se=Math.floor(te),ae=te%1;!ae&&te>=1&&(ae=1),ae===1&&se--,se=Math.min(se,m+1),!!(se%2)&&(g==="reverse"?(ae=1-ae,b&&(ae-=b/s)):g==="mirror"&&(T=o)),E=Fu(0,1,ae)*s}const P=C?{done:!1,value:h[0]}:T.next(E);a&&(P.value=a(P.value));let{done:F}=P;!C&&l!==null&&(F=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const q=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return q&&$!==b1&&(P.value=eD(h,this.options,A,this.speed)),x&&x(P.value),q&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return Ko(this.calculatedDuration)}get time(){return Ko(this.currentTime)}set time(t){var n;t=ro(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(Yi.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ko(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=tue,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(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(Yi.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 Sue(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const gu=e=>e*180/Math.PI,x1=e=>{const t=gu(Math.atan2(e[1],e[0]));return D1(t)},Tue={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:x1,rotateZ:x1,skewX:e=>gu(Math.atan(e[1])),skewY:e=>gu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},D1=e=>(e=e%360,e<0&&(e+=360),e),SS=x1,TS=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),PS=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Pue={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:TS,scaleY:PS,scale:e=>(TS(e)+PS(e))/2,rotateX:e=>D1(gu(Math.atan2(e[6],e[5]))),rotateY:e=>D1(gu(Math.atan2(-e[2],e[0]))),rotateZ:SS,rotate:SS,skewX:e=>gu(Math.atan(e[4])),skewY:e=>gu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function $1(e){return e.includes("scale")?1:0}function E1(e,t){if(!e||e==="none")return $1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Pue,i=n;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Tue,i=s}if(!i)return $1(t);const a=r[t],o=i[1].split(",").map(Bue);return typeof a=="function"?a(o):o[a]}const _ue=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return E1(n,t)};function Bue(e){return parseFloat(e.trim())}const _S=e=>e===Dc||e===Tt,Fue=new Set(["x","y","z"]),kue=bc.filter(e=>!Fue.has(e));function Mue(e){const t=[];return kue.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Du={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})=>E1(t,"x"),y:(e,{transform:t})=>E1(t,"y")};Du.translateX=Du.x;Du.translateY=Du.y;const $u=new Set;let C1=!1,w1=!1,A1=!1;function cR(){if(w1){const e=Array.from($u).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Mue(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,o])=>{var s;(s=r.getValue(a))==null||s.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}w1=!1,C1=!1,$u.forEach(e=>e.complete(A1)),$u.clear()}function dR(){$u.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(w1=!0)})}function Rue(){A1=!0,dR(),cR(),A1=!1}class rD{constructor(t,n,r,i,a,o=!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=o}scheduleResolve(){this.state="scheduled",this.isAsync?($u.add(this),C1||(C1=!0,wa.read(dR),wa.resolveKeyframes(cR))):(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(),o=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const s=r.readValue(n,o);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=o),i&&a===void 0&&i.set(t[0])}Sue(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),$u.delete(this)}cancel(){this.state==="scheduled"&&($u.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Iue=e=>e.startsWith("--");function Oue(e,t,n){Iue(t)?e.style.setProperty(t,n):e.style[t]=n}function iD(e){let t;return()=>(t===void 0&&(t=e()),t)}const Lue=iD(()=>window.ScrollTimeline!==void 0),Vue={};function Nue(e,t){const n=iD(e);return()=>Vue[t]??n()}const fR=Nue(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ed=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,BS={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ed([0,.65,.55,1]),circOut:Ed([.55,0,1,.45]),backIn:Ed([.31,.01,.66,-.59]),backOut:Ed([.33,1.53,.69,.99])};function hR(e,t){if(e)return typeof e=="function"?fR()?XM(e,t):"ease-out":uR(e)?Ed(e):Array.isArray(e)?e.map(n=>hR(n,t)||BS.easeOut):BS[e]}function jue(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeOut",times:l}={},f=void 0){const h={[t]:n};l&&(h.offset=l);const m=hR(s,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:o==="reverse"?"alternate":"normal"};return f&&(g.pseudoElement=f),e.animate(h,g)}function pR(e){return typeof e=="function"&&"applyToOptions"in e}function Kue({type:e,...t}){return pR(e)&&fR()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class zue extends tD{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:o=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!a,this.allowFlatten=o,this.options=t,Bu(typeof t.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);const f=Kue(t);this.animation=jue(n,r,i,f,a),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const h=eD(i,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(h):Oue(n,r,h),this.animation.cancel()}l==null||l(),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 Ko(Number(t))}get time(){return Ko(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ro(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&&Lue()?(this.animation.timeline=t,yc):n(this)}}const mR={anticipate:oR,backInOut:aR,circInOut:sR};function que(e){return e in mR}function Uue(e){typeof e.ease=="string"&&que(e.ease)&&(e.ease=mR[e.ease])}const FS=10;class Wue extends zue{constructor(t){Uue(t),lR(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const s=new nD({...o,autoplay:!1}),l=ro(this.finishedTime??this.time);n.setWithVelocity(s.sample(l-FS).value,s.sample(l).value,FS),s.stop()}}const kS=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&($c.test(e)||e==="0")&&!e.startsWith("url("));function Hue(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 Gue(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],o=kS(i,t),s=kS(a,t);return Af(o===s,`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.`),!o||!s?!1:Hue(e)||(n==="spring"||pR(n))&&r}const Yue=new Set(["opacity","clipPath","filter","transform"]),Zue=iD(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Xue(e){var f;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!CM((f=t==null?void 0:t.owner)==null?void 0:f.current))return!1;const{onUpdate:s,transformTemplate:l}=t.owner.getProps();return Zue()&&n&&Yue.has(n)&&(n!=="transform"||!l)&&!s&&!r&&i!=="mirror"&&a!==0&&o!=="inertia"}const Que=40;class Jue extends tD{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",keyframes:s,name:l,motionValue:f,element:h,...m}){var $;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=Yi.now();const g={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,name:l,motionValue:f,element:h,...m},b=(h==null?void 0:h.KeyframeResolver)||rD;this.keyframeResolver=new b(s,(x,A,w)=>this.onKeyframesResolved(x,A,g,!w),l,f,h),($=this.keyframeResolver)==null||$.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:o,velocity:s,delay:l,isHandoff:f,onUpdate:h}=r;this.resolvedAt=Yi.now(),Gue(t,a,o,s)||((Ho.instantAnimations||!l)&&(h==null||h(eD(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>Que?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!f&&Xue(g)?new Wue({...g,element:g.motionValue.owner.current}):new nD(g);b.finished.then(()=>this.notifyFinished()).catch(yc),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(),Rue()),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 ele=(e,t,n,r={},i,a)=>o=>{const s=zM(r,e)||{},l=s.delay||r.delay||0;let{elapsed:f=0}=r;f=f-ro(l);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-f,onUpdate:g=>{t.set(g),s.onUpdate&&s.onUpdate(g)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Mse(s)||Object.assign(h,kse(e,h)),h.duration&&(h.duration=ro(h.duration)),h.repeatDelay&&(h.repeatDelay=ro(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)),(Ho.instantAnimations||Ho.skipAnimations)&&(m=!0,h.duration=0,h.delay=0),h.allowFlatten=!s.type&&!s.ease,m&&!a&&t.get()!==void 0){const g=Tse(h.keyframes,s);if(g!==void 0){wa.update(()=>{h.onUpdate(g),h.onComplete()});return}}return s.isSync?new nD(h):new Jue(h)},gR=new Set(["width","height","top","left","right","bottom",...bc]);function tle({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function vR(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;r&&(a=r);const l=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in s){const m=e.getValue(h,e.latestValues[h]??null),g=s[h];if(g===void 0||f&&tle(f,h))continue;const b={delay:n,...zM(a||{},h)},$=m.get();if($!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===$&&!b.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const w=Ase(e);if(w){const C=window.MotionHandoffAnimation(w,h,wa);C!==null&&(b.startTime=C,x=!0)}}wse(e,h),m.start(ele(h,m,g,e.shouldReduceMotion&&gR.has(h)?{type:!1}:b,e,x));const A=m.animation;A&&l.push(A)}return o&&Promise.all(l).then(()=>{wa.update(()=>{o&&Ese(e,o)})}),l}function S1(e,t,n={}){var l;const r=tf(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(vR(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return nle(e,t,h+f,m,g,n)}:()=>Promise.resolve(),{when:s}=i;if(s){const[f,h]=s==="beforeChildren"?[a,o]:[o,a];return f().then(()=>h())}else return Promise.all([a(),o(n.delay)])}function nle(e,t,n=0,r=0,i=1,a){const o=[],s=(e.variantChildren.size-1)*r,l=i===1?(f=0)=>f*r:(f=0)=>s-f*r;return Array.from(e.variantChildren).sort(rle).forEach((f,h)=>{f.notify("AnimationStart",t),o.push(S1(f,t,{...a,delay:n+l(h)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(o)}function rle(e,t){return e.sortNodePosition(t)}function ile(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>S1(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=S1(e,t,n);else{const i=typeof t=="function"?tf(e,t,n.custom):t;r=Promise.all(vR(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function yR(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 ale=Vx.length;function bR(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?bR(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<ale;n++){const r=Vx[n],i=e.props[r];(Jd(i)||i===!1)&&(t[r]=i)}return t}const ole=[...Lx].reverse(),sle=Lx.length;function ule(e){return t=>Promise.all(t.map(({animation:n,options:r})=>ile(e,n,r)))}function lle(e){let t=ule(e),n=MS(),r=!0;const i=l=>(f,h)=>{var g;const m=tf(e,h,l==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:$,...x}=m;f={...f,...x,...$}}return f};function a(l){t=l(e)}function o(l){const{props:f}=e,h=bR(e.parent)||{},m=[],g=new Set;let b={},$=1/0;for(let A=0;A<sle;A++){const w=ole[A],C=n[w],E=f[w]!==void 0?f[w]:h[w],T=Jd(E),P=w===l?C.isActive:null;P===!1&&($=A);let F=E===h[w]&&E!==f[w]&&T;if(F&&r&&e.manuallyAnimateOnMount&&(F=!1),C.protectedKeys={...b},!C.isActive&&P===null||!E&&!C.prevProp||Lm(E)||typeof E=="boolean")continue;const q=cle(C.prevProp,E);let te=q||w===l&&C.isActive&&!F&&T||A>$&&T,se=!1;const ae=Array.isArray(E)?E:[E];let O=ae.reduce(i(w),{});P===!1&&(O={});const{prevResolvedValues:Ee={}}=C,be={...Ee,...O},z=R=>{te=!0,g.has(R)&&(se=!0,g.delete(R)),C.needsAnimating[R]=!0;const K=e.getValue(R);K&&(K.liveStyle=!1)};for(const R in be){const K=O[R],fe=Ee[R];if(b.hasOwnProperty(R))continue;let M=!1;m1(K)&&m1(fe)?M=!yR(K,fe):M=K!==fe,M?K!=null?z(R):g.add(R):K!==void 0&&g.has(R)?z(R):C.protectedKeys[R]=!0}C.prevProp=E,C.prevResolvedValues=O,C.isActive&&(b={...b,...O}),r&&e.blockInitialAnimation&&(te=!1),te&&(!(F&&q)||se)&&m.push(...ae.map(R=>({animation:R,options:{type:w}})))}if(g.size){const A={};if(typeof f.initial!="boolean"){const w=tf(e,Array.isArray(f.initial)?f.initial[0]:f.initial);w&&w.transition&&(A.transition=w.transition)}g.forEach(w=>{const C=e.getBaseTarget(w),E=e.getValue(w);E&&(E.liveStyle=!0),A[w]=C??null}),m.push({animation:A})}let x=!!m.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(m):Promise.resolve()}function s(l,f){var m;if(n[l].isActive===f)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(g=>{var b;return(b=g.animationState)==null?void 0:b.setActive(l,f)}),n[l].isActive=f;const h=o(l);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=MS(),r=!0}}}function cle(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!yR(t,e):!1}function au(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function MS(){return{animate:au(!0),whileInView:au(),whileHover:au(),whileTap:au(),whileDrag:au(),whileFocus:au(),exit:au()}}class Ec{constructor(t){this.isMounted=!1,this.node=t}update(){}}class dle extends Ec{constructor(t){super(t),t.animationState||(t.animationState=lle(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Lm(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 fle=0;class hle extends Ec{constructor(){super(...arguments),this.id=fle++}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 ple={animation:{Feature:dle},exit:{Feature:hle}};function RS(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const mle=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function xR(e){return{point:{x:e.pageX,y:e.pageY}}}function gle({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function vle(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 IS=()=>({min:0,max:0}),DR=()=>({x:IS(),y:IS()});function yle(e,t){return gle(vle(e.getBoundingClientRect(),t))}const ble={y:!1};function xle(){return ble.y}function Dle(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 $R(e,t){const n=Dle(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function OS(e){return!(e.pointerType==="touch"||xle())}function $le(e,t,n={}){const[r,i,a]=$R(e,n),o=s=>{if(!OS(s))return;const{target:l}=s,f=t(l,s);if(typeof f!="function"||!l)return;const h=m=>{OS(m)&&(f(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(s=>{s.addEventListener("pointerenter",o,i)}),a}function LS(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&&wa.postRender(()=>a(t,xR(t)))}class Ele extends Ec{mount(){const{current:t}=this.node;t&&(this.unmount=$le(t,(n,r)=>(LS(this.node,r,"Start"),i=>LS(this.node,i,"End"))))}unmount(){}}class Cle extends Ec{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=jm(RS(this.node.current,"focus",()=>this.onFocus()),RS(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ER=(e,t)=>t?e===t?!0:ER(e,t.parentElement):!1,wle=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ale(e){return wle.has(e.tagName)||e.tabIndex!==-1}const Jh=new WeakSet;function VS(e){return t=>{t.key==="Enter"&&e(t)}}function Py(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Sle=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=VS(()=>{if(Jh.has(n))return;Py(n,"down");const i=VS(()=>{Py(n,"up")}),a=()=>Py(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 NS(e){return mle(e)&&!0}function Tle(e,t,n={}){const[r,i,a]=$R(e,n),o=s=>{const l=s.currentTarget;if(!NS(s))return;Jh.add(l);const f=t(l,s),h=(b,$)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),Jh.has(l)&&Jh.delete(l),NS(b)&&typeof f=="function"&&f(b,{success:$})},m=b=>{h(b,l===window||l===document||n.useGlobalTarget||ER(l,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(s=>{(n.useGlobalTarget?window:s).addEventListener("pointerdown",o,i),CM(s)&&(s.addEventListener("focus",f=>Sle(f,i)),!Ale(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),a}function jS(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&&wa.postRender(()=>a(t,xR(t)))}class Ple extends Ec{mount(){const{current:t}=this.node;t&&(this.unmount=Tle(t,(n,r)=>(jS(this.node,r,"Start"),(i,{success:a})=>jS(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const T1=new WeakMap,_y=new WeakMap,_le=e=>{const t=T1.get(e.target);t&&t(e)},Ble=e=>{e.forEach(_le)};function Fle({root:e,...t}){const n=e||document;_y.has(n)||_y.set(n,{});const r=_y.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Ble,{root:e,...t})),r[i]}function kle(e,t,n){const r=Fle(t);return T1.set(e,n),r.observe(e),()=>{T1.delete(e),r.unobserve(e)}}const Mle={some:0,all:1};class Rle extends Ec{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,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Mle[i]},s=l=>{const{isIntersecting:f}=l;if(this.isInView===f||(this.isInView=f,a&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=f?h:m;g&&g(l)};return kle(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Ile(t,n))&&this.startObserver()}unmount(){}}function Ile({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Ole={inView:{Feature:Rle},tap:{Feature:Ple},focus:{Feature:Cle},hover:{Feature:Ele}},P1={current:null},CR={current:!1};function Lle(){if(CR.current=!0,!!Rx)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>P1.current=e.matches;e.addListener(t),t()}else P1.current=!1}const Vle=new WeakMap;function Nle(e,t,n){for(const r in t){const i=t[r],a=n[r];if(jr(i))e.addValue(r,i);else if(jr(a))e.addValue(r,Op(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,Op(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const wR=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),AR=e=>/^0[^.\s]+$/u.test(e),jle={test:e=>e==="auto",parse:e=>e},SR=e=>t=>t.test(e),TR=[Dc,Tt,Wl,ps,Goe,Hoe,jle],KS=e=>TR.find(SR(e)),Kle=[...TR,Sr,$c],zle=e=>Kle.find(SR(e)),qle=new Set(["brightness","contrast","saturate","opacity"]);function Ule(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Gx)||[];if(!r)return e;const i=n.replace(r,"");let a=qle.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const Wle=/\b([a-z-]*)\(.*?\)/gu,_1={...$c,getAnimatableNone:e=>{const t=e.match(Wle);return t?t.map(Ule).join(" "):e}},Hle={...Kx,color:Sr,backgroundColor:Sr,outlineColor:Sr,fill:Sr,stroke:Sr,borderColor:Sr,borderTopColor:Sr,borderRightColor:Sr,borderBottomColor:Sr,borderLeftColor:Sr,filter:_1,WebkitFilter:_1},PR=e=>Hle[e];function _R(e,t){let n=PR(e);return n!==_1&&(n=$c),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const zS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Gle{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=rD,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=Yi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,wa.render(this.render,!1,!0))};const{latestValues:l,renderState:f}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Vm(n),this.isVariantNode=SM(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];l[g]!==void 0&&jr(b)&&b.set(l[g],!1)}}mount(t){this.current=t,Vle.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)),CR.current||Lle(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:P1.current,process.env.NODE_ENV!=="production"&&Ox(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(),p1(this.notifyUpdate),p1(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=xc.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&wa.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),o&&o(),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 rc){const n=rc[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):DR()}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<zS.length;r++){const i=zS[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=t[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Nle(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=Op(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"&&(wR(r)||AR(r))?r=parseFloat(r):!zle(r)&&$c.test(n)&&(r=_R(t,n)),this.setBaseTarget(t,jr(r)?r.get():r)),jr(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 o=Wx(this.props,n,(a=this.presenceContext)==null?void 0:a.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!jr(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 jM),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}const Yle=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Zle(e){const t=Yle.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Xle=4;function BR(e,t,n=1){Bu(n<=Xle,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=Zle(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return wR(o)?parseFloat(o):o}return jx(i)?BR(i,t,n+1):i}function Qle(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||AR(e):!0}const Jle=new Set(["auto","none","0"]);function ece(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!Jle.has(a)&&nf(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=_R(n,i)}class tce extends rD{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 l=0;l<t.length;l++){let f=t[l];if(typeof f=="string"&&(f=f.trim(),jx(f))){const h=BR(f,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!gR.has(r)||t.length!==2)return;const[i,a]=t,o=KS(i),s=KS(a);if(o!==s)if(_S(o)&&_S(s))for(let l=0;l<t.length;l++){const f=t[l];typeof f=="string"&&(t[l]=parseFloat(f))}else Du[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||Qle(t[i]))&&r.push(i);r.length&&ece(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=Du[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 s;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,o=r[a];r[a]=Du[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(s=this.removedTransforms)!=null&&s.length&&this.removedTransforms.forEach(([l,f])=>{t.getValue(l).set(f)}),this.resolveNoneKeyframes()}}class FR extends Gle{constructor(){super(...arguments),this.KeyframeResolver=tce}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;jr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function kR(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 nce(e){return window.getComputedStyle(e)}class rce extends FR{constructor(){super(...arguments),this.type="html",this.renderInstance=kR}readValueFromInstance(t,n){var r;if(xc.has(n))return(r=this.projection)!=null&&r.isProjecting?$1(n):_ue(t,n);{const i=nce(t),a=(FM(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return yle(t,n)}build(t,n,r){zx(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Hx(t,n,r)}}const MR=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 ice(e,t,n,r){kR(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(MR.has(i)?i:Nx(i),t.attrs[i])}class ace extends FR{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=DR}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(xc.has(n)){const r=PR(n);return r&&r.default||0}return n=MR.has(n)?n:Nx(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return NM(t,n,r)}build(t,n,r){IM(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){ice(t,n,r,i)}mount(t){this.isSVGTag=LM(t.tagName),super.mount(t)}}const oce=(e,t)=>Ux(e)?new ace(t):new rce(t,{allowProjection:e!==I.Fragment}),sce={renderer:oce,...ple,...Ole},uce=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),RR=e=>Array.isArray(e)&&e.every(t=>typeof t=="object"&&!(t instanceof Array)),lce=e=>Array.isArray(e)&&e.every(t=>Array.isArray(t)),cce=e=>Array.from(e.map(t=>Object.keys(t)).reduce((t,n)=>new Set([...t,...n]),[])),dce=(e,t)=>{t=t||cce(e);let n=t,r=t;RR(t)&&(n=t.map(a=>a.label),r=t.map(a=>a.key));const i=e.map(a=>r.map(o=>fce(o,a)));return[n,...i]},fce=(e,t)=>{const n=e.replace(/\[([^\]]+)]/g,".$1").split(".").reduce(function(r,i,a,o){const s=r[i];if(s==null)o.splice(1);else return s},t);return n===void 0?e in t?t[e]:"":n},hce=e=>typeof e>"u"||e===null?"":e,IR=(e,t=",",n='"')=>e.filter(r=>r).map(r=>r.map(i=>hce(i)).map(i=>`${n}${i}${n}`).join(t)).join(`
|
|
95
|
-
`),pce=(e,t,n,r)=>IR(t?[t,...e]:e,n,r),mce=(e,t,n,r)=>IR(dce(e,t),n,r),gce=(e,t,n,r)=>t?`${t.join(n)}
|
|
96
|
-
${e}`:e.replace(/"/g,'""'),OR=(e,t,n,r)=>{if(RR(e))return mce(e,t,n,r);if(lce(e))return pce(e,t,n,r);if(typeof e=="string")return gce(e,t,n);throw new TypeError('Data should be a "String", "Array of arrays" OR "Array of objects" ')},LR=(e,t,n,r,i)=>{const a=OR(e,n,r,i),o=uce()?"application/csv":"text/csv",s=new Blob([t?"\uFEFF":"",a],{type:o}),l=`data:${o};charset=utf-8,${t?"\uFEFF":""}${a}`,f=window.URL||window.webkitURL;return typeof f.createObjectURL>"u"?l:f.createObjectURL(s)};var Fh={exports:{}},kh={exports:{}},on={};/** @license React v16.13.1
|
|
97
|
-
* react-is.production.min.js
|
|
98
|
-
*
|
|
99
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
100
|
-
*
|
|
101
|
-
* This source code is licensed under the MIT license found in the
|
|
102
|
-
* LICENSE file in the root directory of this source tree.
|
|
103
|
-
*/var qS;function vce(){if(qS)return on;qS=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,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=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,$=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function E(P){if(typeof P=="object"&&P!==null){var F=P.$$typeof;switch(F){case t:switch(P=P.type,P){case l:case f:case r:case a:case i:case m:return P;default:switch(P=P&&P.$$typeof,P){case s:case h:case $:case b:case o:return P;default:return F}}case n:return F}}}function T(P){return E(P)===f}return on.AsyncMode=l,on.ConcurrentMode=f,on.ContextConsumer=s,on.ContextProvider=o,on.Element=t,on.ForwardRef=h,on.Fragment=r,on.Lazy=$,on.Memo=b,on.Portal=n,on.Profiler=a,on.StrictMode=i,on.Suspense=m,on.isAsyncMode=function(P){return T(P)||E(P)===l},on.isConcurrentMode=T,on.isContextConsumer=function(P){return E(P)===s},on.isContextProvider=function(P){return E(P)===o},on.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===t},on.isForwardRef=function(P){return E(P)===h},on.isFragment=function(P){return E(P)===r},on.isLazy=function(P){return E(P)===$},on.isMemo=function(P){return E(P)===b},on.isPortal=function(P){return E(P)===n},on.isProfiler=function(P){return E(P)===a},on.isStrictMode=function(P){return E(P)===i},on.isSuspense=function(P){return E(P)===m},on.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===r||P===f||P===a||P===i||P===m||P===g||typeof P=="object"&&P!==null&&(P.$$typeof===$||P.$$typeof===b||P.$$typeof===o||P.$$typeof===s||P.$$typeof===h||P.$$typeof===A||P.$$typeof===w||P.$$typeof===C||P.$$typeof===x)},on.typeOf=E,on}var sn={};/** @license React v16.13.1
|
|
104
|
-
* react-is.development.js
|
|
105
|
-
*
|
|
106
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
107
|
-
*
|
|
108
|
-
* This source code is licensed under the MIT license found in the
|
|
109
|
-
* LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/var US;function yce(){return US||(US=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,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=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,$=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function E(Te){return typeof Te=="string"||typeof Te=="function"||Te===r||Te===f||Te===a||Te===i||Te===m||Te===g||typeof Te=="object"&&Te!==null&&(Te.$$typeof===$||Te.$$typeof===b||Te.$$typeof===o||Te.$$typeof===s||Te.$$typeof===h||Te.$$typeof===A||Te.$$typeof===w||Te.$$typeof===C||Te.$$typeof===x)}function T(Te){if(typeof Te=="object"&&Te!==null){var Ye=Te.$$typeof;switch(Ye){case t:var ht=Te.type;switch(ht){case l:case f:case r:case a:case i:case m:return ht;default:var Ht=ht&&ht.$$typeof;switch(Ht){case s:case h:case $:case b:case o:return Ht;default:return Ye}}case n:return Ye}}}var P=l,F=f,q=s,te=o,se=t,ae=h,O=r,Ee=$,be=b,z=n,G=a,V=i,R=m,K=!1;function fe(Te){return K||(K=!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.")),M(Te)||T(Te)===l}function M(Te){return T(Te)===f}function oe(Te){return T(Te)===s}function le(Te){return T(Te)===o}function Se(Te){return typeof Te=="object"&&Te!==null&&Te.$$typeof===t}function _e(Te){return T(Te)===h}function Be(Te){return T(Te)===r}function Ge(Te){return T(Te)===$}function Xe(Te){return T(Te)===b}function Ne(Te){return T(Te)===n}function qe(Te){return T(Te)===a}function ke(Te){return T(Te)===i}function je(Te){return T(Te)===m}sn.AsyncMode=P,sn.ConcurrentMode=F,sn.ContextConsumer=q,sn.ContextProvider=te,sn.Element=se,sn.ForwardRef=ae,sn.Fragment=O,sn.Lazy=Ee,sn.Memo=be,sn.Portal=z,sn.Profiler=G,sn.StrictMode=V,sn.Suspense=R,sn.isAsyncMode=fe,sn.isConcurrentMode=M,sn.isContextConsumer=oe,sn.isContextProvider=le,sn.isElement=Se,sn.isForwardRef=_e,sn.isFragment=Be,sn.isLazy=Ge,sn.isMemo=Xe,sn.isPortal=Ne,sn.isProfiler=qe,sn.isStrictMode=ke,sn.isSuspense=je,sn.isValidElementType=E,sn.typeOf=T}()),sn}var WS;function VR(){return WS||(WS=1,process.env.NODE_ENV==="production"?kh.exports=vce():kh.exports=yce()),kh.exports}/*
|
|
111
|
-
object-assign
|
|
112
|
-
(c) Sindre Sorhus
|
|
113
|
-
@license MIT
|
|
114
|
-
*/var By,HS;function bce(){if(HS)return By;HS=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 o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(h){return o[h]});if(l.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(h){f[h]=h}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return By=i()?Object.assign:function(a,o){for(var s,l=r(a),f,h=1;h<arguments.length;h++){s=Object(arguments[h]);for(var m in s)t.call(s,m)&&(l[m]=s[m]);if(e){f=e(s);for(var g=0;g<f.length;g++)n.call(s,f[g])&&(l[f[g]]=s[f[g]])}}return l},By}var Fy,GS;function aD(){if(GS)return Fy;GS=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Fy=e,Fy}var ky,YS;function NR(){return YS||(YS=1,ky=Function.call.bind(Object.prototype.hasOwnProperty)),ky}var My,ZS;function xce(){if(ZS)return My;ZS=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=aD(),n={},r=NR();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,l,f){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((l||"React class")+": "+s+" 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](o,h,l,s,null,t)}catch($){m=$}if(m&&!(m instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+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=f?f():"";e("Failed "+s+" type: "+m.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},My=i,My}var Ry,XS;function Dce(){if(XS)return Ry;XS=1;var e=VR(),t=bce(),n=aD(),r=NR(),i=xce(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Ry=function(s,l){var f=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(M){var oe=M&&(f&&M[f]||M[h]);if(typeof oe=="function")return oe}var g="<<anonymous>>",b={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:C(),arrayOf:E,element:T(),elementType:P(),instanceOf:F,node:ae(),objectOf:te,oneOf:q,oneOfType:se,shape:Ee,exact:be};function $(M,oe){return M===oe?M!==0||1/M===1/oe:M!==M&&oe!==oe}function x(M,oe){this.message=M,this.data=oe&&typeof oe=="object"?oe:{},this.stack=""}x.prototype=Error.prototype;function A(M){if(process.env.NODE_ENV!=="production")var oe={},le=0;function Se(Be,Ge,Xe,Ne,qe,ke,je){if(Ne=Ne||g,ke=ke||Xe,je!==n){if(l){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 Ye=Ne+":"+Xe;!oe[Ye]&&le<3&&(a("You are manually calling a React.PropTypes validation function for the `"+ke+"` prop on `"+Ne+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),oe[Ye]=!0,le++)}}return Ge[Xe]==null?Be?Ge[Xe]===null?new x("The "+qe+" `"+ke+"` is marked as required "+("in `"+Ne+"`, but its value is `null`.")):new x("The "+qe+" `"+ke+"` is marked as required in "+("`"+Ne+"`, but its value is `undefined`.")):null:M(Ge,Xe,Ne,qe,ke)}var _e=Se.bind(null,!1);return _e.isRequired=Se.bind(null,!0),_e}function w(M){function oe(le,Se,_e,Be,Ge,Xe){var Ne=le[Se],qe=V(Ne);if(qe!==M){var ke=R(Ne);return new x("Invalid "+Be+" `"+Ge+"` of type "+("`"+ke+"` supplied to `"+_e+"`, expected ")+("`"+M+"`."),{expectedType:M})}return null}return A(oe)}function C(){return A(o)}function E(M){function oe(le,Se,_e,Be,Ge){if(typeof M!="function")return new x("Property `"+Ge+"` of component `"+_e+"` has invalid PropType notation inside arrayOf.");var Xe=le[Se];if(!Array.isArray(Xe)){var Ne=V(Xe);return new x("Invalid "+Be+" `"+Ge+"` of type "+("`"+Ne+"` supplied to `"+_e+"`, expected an array."))}for(var qe=0;qe<Xe.length;qe++){var ke=M(Xe,qe,_e,Be,Ge+"["+qe+"]",n);if(ke instanceof Error)return ke}return null}return A(oe)}function T(){function M(oe,le,Se,_e,Be){var Ge=oe[le];if(!s(Ge)){var Xe=V(Ge);return new x("Invalid "+_e+" `"+Be+"` of type "+("`"+Xe+"` supplied to `"+Se+"`, expected a single ReactElement."))}return null}return A(M)}function P(){function M(oe,le,Se,_e,Be){var Ge=oe[le];if(!e.isValidElementType(Ge)){var Xe=V(Ge);return new x("Invalid "+_e+" `"+Be+"` of type "+("`"+Xe+"` supplied to `"+Se+"`, expected a single ReactElement type."))}return null}return A(M)}function F(M){function oe(le,Se,_e,Be,Ge){if(!(le[Se]instanceof M)){var Xe=M.name||g,Ne=fe(le[Se]);return new x("Invalid "+Be+" `"+Ge+"` of type "+("`"+Ne+"` supplied to `"+_e+"`, expected ")+("instance of `"+Xe+"`."))}return null}return A(oe)}function q(M){if(!Array.isArray(M))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.")),o;function oe(le,Se,_e,Be,Ge){for(var Xe=le[Se],Ne=0;Ne<M.length;Ne++)if($(Xe,M[Ne]))return null;var qe=JSON.stringify(M,function(je,Te){var Ye=R(Te);return Ye==="symbol"?String(Te):Te});return new x("Invalid "+Be+" `"+Ge+"` of value `"+String(Xe)+"` "+("supplied to `"+_e+"`, expected one of "+qe+"."))}return A(oe)}function te(M){function oe(le,Se,_e,Be,Ge){if(typeof M!="function")return new x("Property `"+Ge+"` of component `"+_e+"` has invalid PropType notation inside objectOf.");var Xe=le[Se],Ne=V(Xe);if(Ne!=="object")return new x("Invalid "+Be+" `"+Ge+"` of type "+("`"+Ne+"` supplied to `"+_e+"`, expected an object."));for(var qe in Xe)if(r(Xe,qe)){var ke=M(Xe,qe,_e,Be,Ge+"."+qe,n);if(ke instanceof Error)return ke}return null}return A(oe)}function se(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var oe=0;oe<M.length;oe++){var le=M[oe];if(typeof le!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+K(le)+" at index "+oe+"."),o}function Se(_e,Be,Ge,Xe,Ne){for(var qe=[],ke=0;ke<M.length;ke++){var je=M[ke],Te=je(_e,Be,Ge,Xe,Ne,n);if(Te==null)return null;Te.data&&r(Te.data,"expectedType")&&qe.push(Te.data.expectedType)}var Ye=qe.length>0?", expected one of type ["+qe.join(", ")+"]":"";return new x("Invalid "+Xe+" `"+Ne+"` supplied to "+("`"+Ge+"`"+Ye+"."))}return A(Se)}function ae(){function M(oe,le,Se,_e,Be){return z(oe[le])?null:new x("Invalid "+_e+" `"+Be+"` supplied to "+("`"+Se+"`, expected a ReactNode."))}return A(M)}function O(M,oe,le,Se,_e){return new x((M||"React class")+": "+oe+" type `"+le+"."+Se+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+_e+"`.")}function Ee(M){function oe(le,Se,_e,Be,Ge){var Xe=le[Se],Ne=V(Xe);if(Ne!=="object")return new x("Invalid "+Be+" `"+Ge+"` of type `"+Ne+"` "+("supplied to `"+_e+"`, expected `object`."));for(var qe in M){var ke=M[qe];if(typeof ke!="function")return O(_e,Be,Ge,qe,R(ke));var je=ke(Xe,qe,_e,Be,Ge+"."+qe,n);if(je)return je}return null}return A(oe)}function be(M){function oe(le,Se,_e,Be,Ge){var Xe=le[Se],Ne=V(Xe);if(Ne!=="object")return new x("Invalid "+Be+" `"+Ge+"` of type `"+Ne+"` "+("supplied to `"+_e+"`, expected `object`."));var qe=t({},le[Se],M);for(var ke in qe){var je=M[ke];if(r(M,ke)&&typeof je!="function")return O(_e,Be,Ge,ke,R(je));if(!je)return new x("Invalid "+Be+" `"+Ge+"` key `"+ke+"` supplied to `"+_e+"`.\nBad object: "+JSON.stringify(le[Se],null," ")+`
|
|
115
|
-
Valid keys: `+JSON.stringify(Object.keys(M),null," "));var Te=je(Xe,ke,_e,Be,Ge+"."+ke,n);if(Te)return Te}return null}return A(oe)}function z(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(z);if(M===null||s(M))return!0;var oe=m(M);if(oe){var le=oe.call(M),Se;if(oe!==M.entries){for(;!(Se=le.next()).done;)if(!z(Se.value))return!1}else for(;!(Se=le.next()).done;){var _e=Se.value;if(_e&&!z(_e[1]))return!1}}else return!1;return!0;default:return!1}}function G(M,oe){return M==="symbol"?!0:oe?oe["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&oe instanceof Symbol:!1}function V(M){var oe=typeof M;return Array.isArray(M)?"array":M instanceof RegExp?"object":G(oe,M)?"symbol":oe}function R(M){if(typeof M>"u"||M===null)return""+M;var oe=V(M);if(oe==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return oe}function K(M){var oe=R(M);switch(oe){case"array":case"object":return"an "+oe;case"boolean":case"date":case"regexp":return"a "+oe;default:return oe}}function fe(M){return!M.constructor||!M.constructor.name?g:M.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},Ry}var Iy,QS;function $ce(){if(QS)return Iy;QS=1;var e=aD();function t(){}function n(){}return n.resetWarningCache=t,Iy=function(){function r(o,s,l,f,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},Iy}var JS;function Ece(){if(JS)return Fh.exports;if(JS=1,process.env.NODE_ENV!=="production"){var e=VR(),t=!0;Fh.exports=Dce()(e.isElement,t)}else Fh.exports=$ce()();return Fh.exports}var $i=Ece();const rt=ar($i),jR={data:$i.oneOfType([$i.string,$i.array,$i.func]).isRequired,headers:$i.array,target:$i.string,separator:$i.string,filename:$i.string,uFEFF:$i.bool,onClick:$i.func,asyncOnClick:$i.bool,enclosingCharacter:$i.string},KR={separator:",",filename:"generatedBy_react-csv.csv",uFEFF:!0,asyncOnClick:!1,enclosingCharacter:'"'},Cce={target:"_blank"};class e6 extends de.default.Component{constructor(t){super(t),this.state={}}buildURI(){return LR(...arguments)}componentDidMount(){const{data:t,headers:n,separator:r,enclosingCharacter:i,uFEFF:a,target:o,specs:s,replace:l}=this.props;this.state.page=window.open(this.buildURI(t,a,n,r,i),o,s,l)}getWindow(){return this.state.page}render(){return null}}Xn(e6,"defaultProps",Object.assign(KR,Cce)),Xn(e6,"propTypes",jR);var Rh;let wce=(Rh=class extends de.default.Component{constructor(t){super(t),this.buildURI=this.buildURI.bind(this)}buildURI(){return LR(...arguments)}handleLegacy(t,n=!1){if(window.navigator.msSaveOrOpenBlob){t.preventDefault();const{data:r,headers:i,separator:a,filename:o,enclosingCharacter:s,uFEFF:l}=this.props,f=n&&typeof r=="function"?r():r;let h=new Blob([l?"\uFEFF":"",OR(f,i,a,s)]);return window.navigator.msSaveBlob(h,o),!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:o,onClick:s,asyncOnClick:l,enclosingCharacter:f,...h}=this.props,g=typeof window>"u"?"":this.buildURI(t,a,n,r,f);return io.jsx("a",{download:i,...h,ref:b=>this.link=b,target:"_self",href:g,onClick:this.handleClick(),children:o})}},Xn(Rh,"defaultProps",KR),Xn(Rh,"propTypes",jR),Rh);const Ace=wce;var Oy,t6;function Sce(){if(t6)return Oy;t6=1;function e(t){return t==null}return Oy=e,Oy}var Tce=Sce();const Pce=ar(Tce);/**
|
|
116
|
-
* react-table
|
|
117
|
-
*
|
|
118
|
-
* Copyright (c) TanStack
|
|
119
|
-
*
|
|
120
|
-
* This source code is licensed under the MIT license found in the
|
|
121
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
122
|
-
*
|
|
123
|
-
* @license MIT
|
|
124
|
-
*/function _ce(e,t){return e?Bce(e)?de.createElement(e,t):e:null}function Bce(e){return Fce(e)||typeof e=="function"||kce(e)}function Fce(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function kce(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}var Ly,n6;function Mce(){if(n6)return Ly;n6=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 Ly=e,Ly}var Vy,r6;function Rce(){if(r6)return Vy;r6=1;var e=Ru(),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 Vy=n,Vy}var Ny,i6;function Ice(){if(i6)return Ny;i6=1;var e=BT(),t=e(Object.getPrototypeOf,Object);return Ny=t,Ny}var jy,a6;function Oce(){if(a6)return jy;a6=1;var e=Mce(),t=Rce(),n=VT(),r=LT(),i=Ice(),a=Aa(),o=im(),s=nb(),l=Ru(),f=am();function h(m,g,b){var $=a(m),x=$||o(m)||f(m);if(g=r(g,4),b==null){var A=m&&m.constructor;x?b=$?new A:[]:l(m)?b=s(A)?t(i(m)):{}:b={}}return(x?e:n)(m,function(w,C,E){return g(b,w,C,E)}),b}return jy=h,jy}var Lce=Oce();const Vce=ar(Lce);function zR(e){return t=>typeof t===e}var Nce=zR("function"),jce=e=>e===null,o6=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",s6=e=>!Kce(e)&&!jce(e)&&(Nce(e)||typeof e=="object"),Kce=zR("undefined");function zce(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!Kr(e[r],t[r]))return!1;return!0}function qce(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 Uce(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(!Kr(n[1],t.get(n[0])))return!1;return!0}function Wce(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 Kr(e,t){if(e===t)return!0;if(e&&s6(e)&&t&&s6(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return zce(e,t);if(e instanceof Map&&t instanceof Map)return Uce(e,t);if(e instanceof Set&&t instanceof Set)return Wce(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return qce(e,t);if(o6(e)&&o6(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)&&!Kr(e[a],t[a]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var Hce=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Gce=["bigint","boolean","null","number","string","symbol","undefined"];function Km(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(Yce(t))return t}function Pa(e){return t=>Km(t)===e}function Yce(e){return Hce.includes(e)}function Cc(e){return t=>typeof t===e}function Zce(e){return Gce.includes(e)}var Xce=["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=Km(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=>Km(e)==="AsyncGeneratorFunction";ut.asyncFunction=Pa("AsyncFunction");ut.bigint=Cc("bigint");ut.boolean=e=>e===!0||e===!1;ut.date=Pa("Date");ut.defined=e=>!ut.undefined(e);ut.domElement=e=>ut.object(e)&&!ut.plainObject(e)&&e.nodeType===1&&ut.string(e.nodeName)&&Xce.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=Pa("Error");ut.function=Cc("function");ut.generator=e=>ut.iterable(e)&&ut.function(e.next)&&ut.function(e.throw);ut.generatorFunction=Pa("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=Pa("Map");ut.nan=e=>Number.isNaN(e);ut.null=e=>e===null;ut.nullOrUndefined=e=>ut.null(e)||ut.undefined(e);ut.number=e=>Cc("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=Pa("Function");ut.plainObject=e=>{if(Km(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ut.primitive=e=>ut.null(e)||Zce(typeof e);ut.promise=Pa("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=Pa("RegExp");ut.set=Pa("Set");ut.string=Cc("string");ut.symbol=Cc("symbol");ut.undefined=Cc("undefined");ut.weakMap=Pa("WeakMap");ut.weakSet=Pa("WeakSet");var ft=ut;function Qce(...e){return e.every(t=>ft.string(t)||ft.array(t)||ft.plainObject(t))}function Jce(e,t,n){return qR(e,t)?[e,t].every(ft.array)?!e.some(f6(n))&&t.some(f6(n)):[e,t].every(ft.plainObject)?!Object.entries(e).some(d6(n))&&Object.entries(t).some(d6(n)):t===n:!1}function u6(e,t,n){const{actual:r,key:i,previous:a,type:o}=n,s=Qa(e,i),l=Qa(t,i);let f=[s,l].every(ft.number)&&(o==="increased"?s<l:s>l);return ft.undefined(r)||(f=f&&l===r),ft.undefined(a)||(f=f&&s===a),f}function l6(e,t,n){const{key:r,type:i,value:a}=n,o=Qa(e,r),s=Qa(t,r),l=i==="added"?o:s,f=i==="added"?s:o;if(!ft.nullOrUndefined(a)){if(ft.defined(l)){if(ft.array(l)||ft.plainObject(l))return Jce(l,f,a)}else return Kr(f,a);return!1}return[o,s].every(ft.array)?!f.every(oD(l)):[o,s].every(ft.plainObject)?ede(Object.keys(l),Object.keys(f)):![o,s].every(h=>ft.primitive(h)&&ft.defined(h))&&(i==="added"?!ft.defined(o)&&ft.defined(s):ft.defined(o)&&!ft.defined(s))}function c6(e,t,{key:n}={}){let r=Qa(e,n),i=Qa(t,n);if(!qR(r,i))throw new TypeError("Inputs have different types");if(!Qce(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(ft.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function d6(e){return([t,n])=>ft.array(e)?Kr(e,n)||e.some(r=>Kr(r,n)||ft.array(n)&&oD(n)(r)):ft.plainObject(e)&&e[t]?!!e[t]&&Kr(e[t],n):Kr(e,n)}function ede(e,t){return t.some(n=>!e.includes(n))}function f6(e){return t=>ft.array(e)?e.some(n=>Kr(n,t)||ft.array(t)&&oD(t)(n)):Kr(e,t)}function sd(e,t){return ft.array(e)?e.some(n=>Kr(n,t)):Kr(e,t)}function oD(e){return t=>e.some(n=>Kr(n,t))}function qR(...e){return e.every(ft.array)||e.every(ft.number)||e.every(ft.plainObject)||e.every(ft.string)}function Qa(e,t){return ft.plainObject(e)||ft.array(e)?ft.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):ft.number(t)?e[t]:e:e}function jp(e,t){if([e,t].some(ft.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(h=>ft.plainObject(h)||ft.array(h)))throw new Error("Expected plain objects or array");return{added:(h,m)=>{try{return l6(e,t,{key:h,type:"added",value:m})}catch{return!1}},changed:(h,m,g)=>{try{const b=Qa(e,h),$=Qa(t,h),x=ft.defined(m),A=ft.defined(g);if(x||A){const w=A?sd(g,b):!sd(m,b),C=sd(m,$);return w&&C}return[b,$].every(ft.array)||[b,$].every(ft.plainObject)?!Kr(b,$):b!==$}catch{return!1}},changedFrom:(h,m,g)=>{if(!ft.defined(h))return!1;try{const b=Qa(e,h),$=Qa(t,h),x=ft.defined(g);return sd(m,b)&&(x?sd(g,$):!x)}catch{return!1}},decreased:(h,m,g)=>{if(!ft.defined(h))return!1;try{return u6(e,t,{key:h,actual:m,previous:g,type:"decreased"})}catch{return!1}},emptied:h=>{try{const[m,g]=c6(e,t,{key:h});return!!m.length&&!g.length}catch{return!1}},filled:h=>{try{const[m,g]=c6(e,t,{key:h});return!m.length&&!!g.length}catch{return!1}},increased:(h,m,g)=>{if(!ft.defined(h))return!1;try{return u6(e,t,{key:h,actual:m,previous:g,type:"increased"})}catch{return!1}},removed:(h,m)=>{try{return l6(e,t,{key:h,type:"removed",value:m})}catch{return!1}}}}var Ky,h6;function tde(){if(h6)return Ky;h6=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;Ky={left:i("scrollLeft"),top:i("scrollTop")};function i(s){return function(f,h,m,g){m=m||{},typeof m=="function"&&(g=m,m={}),typeof g!="function"&&(g=o);var b=r(),$=f[s],x=m.ease||a,A=isNaN(m.duration)?350:+m.duration,w=!1;return $===h?g(e,f[s]):requestAnimationFrame(E),C;function C(){w=!0}function E(T){if(w)return g(t,f[s]);var P=r(),F=n(1,(P-b)/A),q=x(F);f[s]=q*(h-$)+$,F<1?requestAnimationFrame(E):requestAnimationFrame(function(){g(null,f[s])})}}}function a(s){return .5*(1-Math.cos(Math.PI*s))}function o(){}return Ky}var nde=tde();const rde=ar(nde);var ep={exports:{}},ide=ep.exports,p6;function ade(){return p6||(p6=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(ide,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})}(ep)),ep.exports}var ode=ade();const UR=ar(ode);var zy,m6;function sde(){if(m6)return zy;m6=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,zy=n,zy}var ude=sde();const g6=ar(ude);var qy,v6;function lde(){if(v6)return qy;v6=1;var e=function(C){return t(C)&&!n(C)};function t(w){return!!w&&typeof w=="object"}function n(w){var C=Object.prototype.toString.call(w);return C==="[object RegExp]"||C==="[object Date]"||a(w)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function a(w){return w.$$typeof===i}function o(w){return Array.isArray(w)?[]:{}}function s(w,C){return C.clone!==!1&&C.isMergeableObject(w)?x(o(w),w,C):w}function l(w,C,E){return w.concat(C).map(function(T){return s(T,E)})}function f(w,C){if(!C.customMerge)return x;var E=C.customMerge(w);return typeof E=="function"?E:x}function h(w){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(w).filter(function(C){return Object.propertyIsEnumerable.call(w,C)}):[]}function m(w){return Object.keys(w).concat(h(w))}function g(w,C){try{return C in w}catch{return!1}}function b(w,C){return g(w,C)&&!(Object.hasOwnProperty.call(w,C)&&Object.propertyIsEnumerable.call(w,C))}function $(w,C,E){var T={};return E.isMergeableObject(w)&&m(w).forEach(function(P){T[P]=s(w[P],E)}),m(C).forEach(function(P){b(w,P)||(g(w,P)&&E.isMergeableObject(C[P])?T[P]=f(P,E)(w[P],C[P],E):T[P]=s(C[P],E))}),T}function x(w,C,E){E=E||{},E.arrayMerge=E.arrayMerge||l,E.isMergeableObject=E.isMergeableObject||e,E.cloneUnlessOtherwiseSpecified=s;var T=Array.isArray(C),P=Array.isArray(w),F=T===P;return F?T?E.arrayMerge(w,C,E):$(w,C,E):s(C,E)}x.all=function(C,E){if(!Array.isArray(C))throw new Error("first argument should be an array");return C.reduce(function(T,P){return x(T,P,E)},{})};var A=x;return qy=A,qy}var cde=lde();const xa=ar(cde);/**!
|
|
125
|
-
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
126
|
-
* @version 1.16.1
|
|
127
|
-
* @license
|
|
128
|
-
* Copyright (c) 2016 Federico Zivolo and contributors
|
|
129
|
-
*
|
|
130
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
131
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
132
|
-
* in the Software without restriction, including without limitation the rights
|
|
133
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
134
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
135
|
-
* furnished to do so, subject to the following conditions:
|
|
136
|
-
*
|
|
137
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
138
|
-
* copies or substantial portions of the Software.
|
|
139
|
-
*
|
|
140
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
141
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
142
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
143
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
144
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
145
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
146
|
-
* SOFTWARE.
|
|
147
|
-
*/var Pf=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",dde=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Pf&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function fde(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function hde(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},dde))}}var pde=Pf&&window.Promise,mde=pde?fde:hde;function WR(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Vu(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function sD(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function _f(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Vu(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:_f(sD(e))}function HR(e){return e&&e.referenceNode?e.referenceNode:e}var y6=Pf&&!!(window.MSInputMethodContext&&document.documentMode),b6=Pf&&/MSIE 10/.test(navigator.userAgent);function wc(e){return e===11?y6:e===10?b6:y6||b6}function ic(e){if(!e)return document.documentElement;for(var t=wc(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r==="BODY"||r==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&Vu(n,"position")==="static"?ic(n):n}function gde(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||ic(e.firstElementChild)===e}function B1(e){return e.parentNode!==null?B1(e.parentNode):e}function Kp(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 o=a.commonAncestorContainer;if(e!==o&&t!==o||r.contains(i))return gde(o)?o:ic(o);var s=B1(e);return s.host?Kp(s.host,t):Kp(e,B1(t).host)}function ac(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 vde(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=ac(t,"top"),i=ac(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 x6(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 D6(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],wc(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function GR(e){var t=e.body,n=e.documentElement,r=wc(10)&&getComputedStyle(n);return{height:D6("Height",t,n,r),width:D6("Width",t,n,r)}}var yde=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},bde=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}}(),oc=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Zi=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 As(e){return Zi({},e,{right:e.left+e.width,bottom:e.top+e.height})}function F1(e){var t={};try{if(wc(10)){t=e.getBoundingClientRect();var n=ac(e,"top"),r=ac(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"?GR(e.ownerDocument):{},o=a.width||e.clientWidth||i.width,s=a.height||e.clientHeight||i.height,l=e.offsetWidth-o,f=e.offsetHeight-s;if(l||f){var h=Vu(e);l-=x6(h,"x"),f-=x6(h,"y"),i.width-=l,i.height-=f}return As(i)}function uD(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=wc(10),i=t.nodeName==="HTML",a=F1(e),o=F1(t),s=_f(e),l=Vu(t),f=parseFloat(l.borderTopWidth),h=parseFloat(l.borderLeftWidth);n&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var m=As({top:a.top-o.top-f,left:a.left-o.left-h,width:a.width,height:a.height});if(m.marginTop=0,m.marginLeft=0,!r&&i){var g=parseFloat(l.marginTop),b=parseFloat(l.marginLeft);m.top-=f-g,m.bottom-=f-g,m.left-=h-b,m.right-=h-b,m.marginTop=g,m.marginLeft=b}return(r&&!n?t.contains(s):t===s&&s.nodeName!=="BODY")&&(m=vde(m,t)),m}function xde(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=uD(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:ac(n),s=t?0:ac(n,"left"),l={top:o-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:a};return As(l)}function YR(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Vu(e,"position")==="fixed")return!0;var n=sD(e);return n?YR(n):!1}function ZR(e){if(!e||!e.parentElement||wc())return document.documentElement;for(var t=e.parentElement;t&&Vu(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function lD(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},o=i?ZR(e):Kp(e,HR(t));if(r==="viewport")a=xde(o,i);else{var s=void 0;r==="scrollParent"?(s=_f(sD(t)),s.nodeName==="BODY"&&(s=e.ownerDocument.documentElement)):r==="window"?s=e.ownerDocument.documentElement:s=r;var l=uD(s,o,i);if(s.nodeName==="HTML"&&!YR(o)){var f=GR(e.ownerDocument),h=f.height,m=f.width;a.top+=l.top-l.marginTop,a.bottom=h+l.top,a.left+=l.left-l.marginLeft,a.right=m+l.left}else a=l}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 Dde(e){var t=e.width,n=e.height;return t*n}function XR(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 o=lD(n,r,a,i),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},l=Object.keys(s).map(function(g){return Zi({key:g},s[g],{area:Dde(s[g])})}).sort(function(g,b){return b.area-g.area}),f=l.filter(function(g){var b=g.width,$=g.height;return b>=n.clientWidth&&$>=n.clientHeight}),h=f.length>0?f[0].key:l[0].key,m=e.split("-")[1];return h+(m?"-"+m:"")}function QR(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?ZR(t):Kp(t,HR(n));return uD(n,i,r)}function JR(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 zp(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 eI(e,t,n){n=n.split("-")[0];var r=JR(e),i={width:r.width,height:r.height},a=["right","left"].indexOf(n)!==-1,o=a?"top":"left",s=a?"left":"top",l=a?"height":"width",f=a?"width":"height";return i[o]=t[o]+t[l]/2-r[l]/2,n===s?i[s]=t[s]-r[f]:i[s]=t[zp(s)],i}function Bf(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function $de(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=Bf(e,function(i){return i[t]===n});return e.indexOf(r)}function tI(e,t,n){var r=n===void 0?e:e.slice(0,$de(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&&WR(a)&&(t.offsets.popper=As(t.offsets.popper),t.offsets.reference=As(t.offsets.reference),t=a(t,i))}),t}function Ede(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=QR(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=XR(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=eI(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=tI(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function nI(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function cD(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 Cde(){return this.state.isDestroyed=!0,nI(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[cD("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function rI(e){var t=e.ownerDocument;return t?t.defaultView:window}function iI(e,t,n,r){var i=e.nodeName==="BODY",a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),i||iI(_f(a.parentNode),t,n,r),r.push(a)}function wde(e,t,n,r){n.updateBound=r,rI(e).addEventListener("resize",n.updateBound,{passive:!0});var i=_f(e);return iI(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Ade(){this.state.eventsEnabled||(this.state=wde(this.reference,this.options,this.state,this.scheduleUpdate))}function Sde(e,t){return rI(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 Tde(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Sde(this.reference,this.state))}function dD(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function k1(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&dD(t[n])&&(r="px"),e.style[n]=t[n]+r})}function Pde(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function _de(e){return k1(e.instance.popper,e.styles),Pde(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&k1(e.arrowElement,e.arrowStyles),e}function Bde(e,t,n,r,i){var a=QR(i,t,e,n.positionFixed),o=XR(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),k1(t,{position:n.positionFixed?"fixed":"absolute"}),n}function Fde(e,t){var n=e.offsets,r=n.popper,i=n.reference,a=Math.round,o=Math.floor,s=function(w){return w},l=a(i.width),f=a(r.width),h=["left","right"].indexOf(e.placement)!==-1,m=e.placement.indexOf("-")!==-1,g=l%2===f%2,b=l%2===1&&f%2===1,$=t?h||m||g?a:o:s,x=t?a:s;return{left:$(b&&!m&&t?r.left-1:r.left),top:x(r.top),bottom:x(r.bottom),right:$(r.right)}}var kde=Pf&&/Firefox/i.test(navigator.userAgent);function Mde(e,t){var n=t.x,r=t.y,i=e.offsets.popper,a=Bf(e.instance.modifiers,function(E){return E.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 o=a!==void 0?a:t.gpuAcceleration,s=ic(e.instance.popper),l=F1(s),f={position:i.position},h=Fde(e,window.devicePixelRatio<2||!kde),m=n==="bottom"?"top":"bottom",g=r==="right"?"left":"right",b=cD("transform"),$=void 0,x=void 0;if(m==="bottom"?s.nodeName==="HTML"?x=-s.clientHeight+h.bottom:x=-l.height+h.bottom:x=h.top,g==="right"?s.nodeName==="HTML"?$=-s.clientWidth+h.right:$=-l.width+h.right:$=h.left,o&&b)f[b]="translate3d("+$+"px, "+x+"px, 0)",f[m]=0,f[g]=0,f.willChange="transform";else{var A=m==="bottom"?-1:1,w=g==="right"?-1:1;f[m]=x*A,f[g]=$*w,f.willChange=m+", "+g}var C={"x-placement":e.placement};return e.attributes=Zi({},C,e.attributes),e.styles=Zi({},f,e.styles),e.arrowStyles=Zi({},e.offsets.arrow,e.arrowStyles),e}function aI(e,t,n){var r=Bf(e,function(s){var l=s.name;return l===t}),i=!!r&&e.some(function(s){return s.name===n&&s.enabled&&s.order<r.order});if(!i){var a="`"+t+"`",o="`"+n+"`";console.warn(o+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return i}function Rde(e,t){var n;if(!aI(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,o=a.popper,s=a.reference,l=["left","right"].indexOf(i)!==-1,f=l?"height":"width",h=l?"Top":"Left",m=h.toLowerCase(),g=l?"left":"top",b=l?"bottom":"right",$=JR(r)[f];s[b]-$<o[m]&&(e.offsets.popper[m]-=o[m]-(s[b]-$)),s[m]+$>o[b]&&(e.offsets.popper[m]+=s[m]+$-o[b]),e.offsets.popper=As(e.offsets.popper);var x=s[m]+s[f]/2-$/2,A=Vu(e.instance.popper),w=parseFloat(A["margin"+h]),C=parseFloat(A["border"+h+"Width"]),E=x-e.offsets.popper[m]-w-C;return E=Math.max(Math.min(o[f]-$,E),0),e.arrowElement=r,e.offsets.arrow=(n={},oc(n,m,Math.round(E)),oc(n,g,""),n),e}function Ide(e){return e==="end"?"start":e==="start"?"end":e}var oI=["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"],Uy=oI.slice(3);function $6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Uy.indexOf(e),r=Uy.slice(n+1).concat(Uy.slice(0,n));return t?r.reverse():r}var Wy={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Ode(e,t){if(nI(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=lD(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=zp(r),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case Wy.FLIP:o=[r,i];break;case Wy.CLOCKWISE:o=$6(r);break;case Wy.COUNTERCLOCKWISE:o=$6(r,!0);break;default:o=t.behavior}return o.forEach(function(s,l){if(r!==s||o.length===l+1)return e;r=e.placement.split("-")[0],i=zp(r);var f=e.offsets.popper,h=e.offsets.reference,m=Math.floor,g=r==="left"&&m(f.right)>m(h.left)||r==="right"&&m(f.left)<m(h.right)||r==="top"&&m(f.bottom)>m(h.top)||r==="bottom"&&m(f.top)<m(h.bottom),b=m(f.left)<m(n.left),$=m(f.right)>m(n.right),x=m(f.top)<m(n.top),A=m(f.bottom)>m(n.bottom),w=r==="left"&&b||r==="right"&&$||r==="top"&&x||r==="bottom"&&A,C=["top","bottom"].indexOf(r)!==-1,E=!!t.flipVariations&&(C&&a==="start"&&b||C&&a==="end"&&$||!C&&a==="start"&&x||!C&&a==="end"&&A),T=!!t.flipVariationsByContent&&(C&&a==="start"&&$||C&&a==="end"&&b||!C&&a==="start"&&A||!C&&a==="end"&&x),P=E||T;(g||w||P)&&(e.flipped=!0,(g||w)&&(r=o[l+1]),P&&(a=Ide(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=Zi({},e.offsets.popper,eI(e.instance.popper,e.offsets.reference,e.placement)),e=tI(e.instance.modifiers,e,"flip"))}),e}function Lde(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],a=Math.floor,o=["top","bottom"].indexOf(i)!==-1,s=o?"right":"bottom",l=o?"left":"top",f=o?"width":"height";return n[s]<a(r[l])&&(e.offsets.popper[l]=a(r[l])-n[f]),n[l]>a(r[s])&&(e.offsets.popper[l]=a(r[s])),e}function Vde(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],o=i[2];if(!a)return e;if(o.indexOf("%")===0){var s=void 0;switch(o){case"%p":s=n;break;case"%":case"%r":default:s=r}var l=As(s);return l[t]/100*a}else if(o==="vh"||o==="vw"){var f=void 0;return o==="vh"?f=Math.max(document.documentElement.clientHeight,window.innerHeight||0):f=Math.max(document.documentElement.clientWidth,window.innerWidth||0),f/100*a}else return a}function Nde(e,t,n,r){var i=[0,0],a=["right","left"].indexOf(r)!==-1,o=e.split(/(\+|\-)/).map(function(h){return h.trim()}),s=o.indexOf(Bf(o,function(h){return h.search(/,|\s/)!==-1}));o[s]&&o[s].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,f=s!==-1?[o.slice(0,s).concat([o[s].split(l)[0]]),[o[s].split(l)[1]].concat(o.slice(s+1))]:[o];return f=f.map(function(h,m){var g=(m===1?!a:a)?"height":"width",b=!1;return h.reduce(function($,x){return $[$.length-1]===""&&["+","-"].indexOf(x)!==-1?($[$.length-1]=x,b=!0,$):b?($[$.length-1]+=x,b=!1,$):$.concat(x)},[]).map(function($){return Vde($,g,t,n)})}),f.forEach(function(h,m){h.forEach(function(g,b){dD(g)&&(i[m]+=g*(h[b-1]==="-"?-1:1))})}),i}function jde(e,t){var n=t.offset,r=e.placement,i=e.offsets,a=i.popper,o=i.reference,s=r.split("-")[0],l=void 0;return dD(+n)?l=[+n,0]:l=Nde(n,a,o,s),s==="left"?(a.top+=l[0],a.left-=l[1]):s==="right"?(a.top+=l[0],a.left+=l[1]):s==="top"?(a.left+=l[0],a.top-=l[1]):s==="bottom"&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e}function Kde(e,t){var n=t.boundariesElement||ic(e.instance.popper);e.instance.reference===n&&(n=ic(n));var r=cD("transform"),i=e.instance.popper.style,a=i.top,o=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=lD(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=a,i.left=o,i[r]=s,t.boundaries=l;var f=t.priority,h=e.offsets.popper,m={primary:function(b){var $=h[b];return h[b]<l[b]&&!t.escapeWithReference&&($=Math.max(h[b],l[b])),oc({},b,$)},secondary:function(b){var $=b==="right"?"left":"top",x=h[$];return h[b]>l[b]&&!t.escapeWithReference&&(x=Math.min(h[$],l[b]-(b==="right"?h.width:h.height))),oc({},$,x)}};return f.forEach(function(g){var b=["left","top"].indexOf(g)!==-1?"primary":"secondary";h=Zi({},h,m[b](g))}),e.offsets.popper=h,e}function zde(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,a=i.reference,o=i.popper,s=["bottom","top"].indexOf(n)!==-1,l=s?"left":"top",f=s?"width":"height",h={start:oc({},l,a[l]),end:oc({},l,a[l]+a[f]-o[f])};e.offsets.popper=Zi({},o,h[r])}return e}function qde(e){if(!aI(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Bf(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 Ude(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,a=r.reference,o=["left","right"].indexOf(n)!==-1,s=["top","left"].indexOf(n)===-1;return i[o?"left":"top"]=a[n]-(s?i[o?"width":"height"]:0),e.placement=zp(t),e.offsets.popper=As(i),e}var Wde={shift:{order:100,enabled:!0,fn:zde},offset:{order:200,enabled:!0,fn:jde,offset:0},preventOverflow:{order:300,enabled:!0,fn:Kde,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Lde},arrow:{order:500,enabled:!0,fn:Rde,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Ode,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:Ude},hide:{order:800,enabled:!0,fn:qde},computeStyle:{order:850,enabled:!0,fn:Mde,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:_de,onLoad:Bde,gpuAcceleration:void 0}},Hde={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Wde},rf=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};yde(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=mde(this.update.bind(this)),this.options=Zi({},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(Zi({},e.Defaults.modifiers,i.modifiers)).forEach(function(o){r.options.modifiers[o]=Zi({},e.Defaults.modifiers[o]||{},i.modifiers?i.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return Zi({name:o},r.options.modifiers[o])}).sort(function(o,s){return o.order-s.order}),this.modifiers.forEach(function(o){o.enabled&&WR(o.onLoad)&&o.onLoad(r.reference,r.popper,r.options,o,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return bde(e,[{key:"update",value:function(){return Ede.call(this)}},{key:"destroy",value:function(){return Cde.call(this)}},{key:"enableEventListeners",value:function(){return Ade.call(this)}},{key:"disableEventListeners",value:function(){return Tde.call(this)}}]),e}();rf.Utils=(typeof window<"u"?window:global).PopperUtils;rf.placements=oI;rf.Defaults=Hde;var Gde=["innerHTML","ownerDocument","style","attributes","nodeValue"],Yde=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Zde=["bigint","boolean","null","number","string","symbol","undefined"];function zm(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(Xde(t))return t}function _a(e){return function(t){return zm(t)===e}}function Xde(e){return Yde.includes(e)}function Ac(e){return function(t){return typeof t===e}}function Qde(e){return Zde.includes(e)}function ze(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(ze.array(e))return"Array";if(ze.plainFunction(e))return"Function";var t=zm(e);return t||"Object"}ze.array=Array.isArray;ze.arrayOf=function(e,t){return!ze.array(e)&&!ze.function(t)?!1:e.every(function(n){return t(n)})};ze.asyncGeneratorFunction=function(e){return zm(e)==="AsyncGeneratorFunction"};ze.asyncFunction=_a("AsyncFunction");ze.bigint=Ac("bigint");ze.boolean=function(e){return e===!0||e===!1};ze.date=_a("Date");ze.defined=function(e){return!ze.undefined(e)};ze.domElement=function(e){return ze.object(e)&&!ze.plainObject(e)&&e.nodeType===1&&ze.string(e.nodeName)&&Gde.every(function(t){return t in e})};ze.empty=function(e){return ze.string(e)&&e.length===0||ze.array(e)&&e.length===0||ze.object(e)&&!ze.map(e)&&!ze.set(e)&&Object.keys(e).length===0||ze.set(e)&&e.size===0||ze.map(e)&&e.size===0};ze.error=_a("Error");ze.function=Ac("function");ze.generator=function(e){return ze.iterable(e)&&ze.function(e.next)&&ze.function(e.throw)};ze.generatorFunction=_a("GeneratorFunction");ze.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};ze.iterable=function(e){return!ze.nullOrUndefined(e)&&ze.function(e[Symbol.iterator])};ze.map=_a("Map");ze.nan=function(e){return Number.isNaN(e)};ze.null=function(e){return e===null};ze.nullOrUndefined=function(e){return ze.null(e)||ze.undefined(e)};ze.number=function(e){return Ac("number")(e)&&!ze.nan(e)};ze.numericString=function(e){return ze.string(e)&&e.length>0&&!Number.isNaN(Number(e))};ze.object=function(e){return!ze.nullOrUndefined(e)&&(ze.function(e)||typeof e=="object")};ze.oneOf=function(e,t){return ze.array(e)?e.indexOf(t)>-1:!1};ze.plainFunction=_a("Function");ze.plainObject=function(e){if(zm(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ze.primitive=function(e){return ze.null(e)||Qde(typeof e)};ze.promise=_a("Promise");ze.propertyOf=function(e,t,n){if(!ze.object(e)||!t)return!1;var r=e[t];return ze.function(n)?n(r):ze.defined(r)};ze.regexp=_a("RegExp");ze.set=_a("Set");ze.string=Ac("string");ze.symbol=Ac("symbol");ze.undefined=Ac("undefined");ze.weakMap=_a("WeakMap");ze.weakSet=_a("WeakSet");function sI(e){return function(t){return typeof t===e}}var Jde=sI("function"),efe=function(e){return e===null},E6=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},C6=function(e){return!tfe(e)&&!efe(e)&&(Jde(e)||typeof e=="object")},tfe=sI("undefined"),M1=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 nfe(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!si(e[r],t[r]))return!1;return!0}function rfe(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 ife(e,t){var n,r,i,a;if(e.size!==t.size)return!1;try{for(var o=M1(e.entries()),s=o.next();!s.done;s=o.next()){var l=s.value;if(!t.has(l[0]))return!1}}catch(m){n={error:m}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}try{for(var f=M1(e.entries()),h=f.next();!h.done;h=f.next()){var l=h.value;if(!si(l[1],t.get(l[0])))return!1}}catch(m){i={error:m}}finally{try{h&&!h.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}return!0}function afe(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=M1(e.entries()),a=i.next();!a.done;a=i.next()){var o=a.value;if(!t.has(o[0]))return!1}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function si(e,t){if(e===t)return!0;if(e&&C6(e)&&t&&C6(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return nfe(e,t);if(e instanceof Map&&t instanceof Map)return ife(e,t);if(e instanceof Set&&t instanceof Set)return afe(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return rfe(e,t);if(E6(e)&&E6(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)&&!si(e[a],t[a]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function ofe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return ze.string(n)||ze.array(n)||ze.plainObject(n)})}function sfe(e,t,n){return uI(e,t)?[e,t].every(ze.array)?!e.some(P6(n))&&t.some(P6(n)):[e,t].every(ze.plainObject)?!Object.entries(e).some(T6(n))&&Object.entries(t).some(T6(n)):t===n:!1}function w6(e,t,n){var r=n.actual,i=n.key,a=n.previous,o=n.type,s=Ja(e,i),l=Ja(t,i),f=[s,l].every(ze.number)&&(o==="increased"?s<l:s>l);return ze.undefined(r)||(f=f&&l===r),ze.undefined(a)||(f=f&&s===a),f}function A6(e,t,n){var r=n.key,i=n.type,a=n.value,o=Ja(e,r),s=Ja(t,r),l=i==="added"?o:s,f=i==="added"?s:o;if(!ze.nullOrUndefined(a)){if(ze.defined(l)){if(ze.array(l)||ze.plainObject(l))return sfe(l,f,a)}else return si(f,a);return!1}return[o,s].every(ze.array)?!f.every(fD(l)):[o,s].every(ze.plainObject)?ufe(Object.keys(l),Object.keys(f)):![o,s].every(function(h){return ze.primitive(h)&&ze.defined(h)})&&(i==="added"?!ze.defined(o)&&ze.defined(s):ze.defined(o)&&!ze.defined(s))}function S6(e,t,n){var r=n===void 0?{}:n,i=r.key,a=Ja(e,i),o=Ja(t,i);if(!uI(a,o))throw new TypeError("Inputs have different types");if(!ofe(a,o))throw new TypeError("Inputs don't have length");return[a,o].every(ze.plainObject)&&(a=Object.keys(a),o=Object.keys(o)),[a,o]}function T6(e){return function(t){var n=t[0],r=t[1];return ze.array(e)?si(e,r)||e.some(function(i){return si(i,r)||ze.array(r)&&fD(r)(i)}):ze.plainObject(e)&&e[n]?!!e[n]&&si(e[n],r):si(e,r)}}function ufe(e,t){return t.some(function(n){return!e.includes(n)})}function P6(e){return function(t){return ze.array(e)?e.some(function(n){return si(n,t)||ze.array(t)&&fD(t)(n)}):si(e,t)}}function ud(e,t){return ze.array(e)?e.some(function(n){return si(n,t)}):si(e,t)}function fD(e){return function(t){return e.some(function(n){return si(n,t)})}}function uI(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(ze.array)||e.every(ze.number)||e.every(ze.plainObject)||e.every(ze.string)}function Ja(e,t){if(ze.plainObject(e)||ze.array(e)){if(ze.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return ze.number(t)?e[t]:e}return e}function lfe(e,t){if([e,t].some(ze.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(m){return ze.plainObject(m)||ze.array(m)}))throw new Error("Expected plain objects or array");var n=function(m,g){try{return A6(e,t,{key:m,type:"added",value:g})}catch{return!1}},r=function(m,g,b){try{var $=Ja(e,m),x=Ja(t,m),A=ze.defined(g),w=ze.defined(b);if(A||w){var C=w?ud(b,$):!ud(g,$),E=ud(g,x);return C&&E}return[$,x].every(ze.array)||[$,x].every(ze.plainObject)?!si($,x):$!==x}catch{return!1}},i=function(m,g,b){if(!ze.defined(m))return!1;try{var $=Ja(e,m),x=Ja(t,m),A=ze.defined(b);return ud(g,$)&&(A?ud(b,x):!A)}catch{return!1}},a=function(m,g){return ze.defined(m)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(m,g)):!1},o=function(m,g,b){if(!ze.defined(m))return!1;try{return w6(e,t,{key:m,actual:g,previous:b,type:"decreased"})}catch{return!1}},s=function(m){try{var g=S6(e,t,{key:m}),b=g[0],$=g[1];return!!b.length&&!$.length}catch{return!1}},l=function(m){try{var g=S6(e,t,{key:m}),b=g[0],$=g[1];return!b.length&&!!$.length}catch{return!1}},f=function(m,g,b){if(!ze.defined(m))return!1;try{return w6(e,t,{key:m,actual:g,previous:b,type:"increased"})}catch{return!1}},h=function(m,g){try{return A6(e,t,{key:m,type:"removed",value:g})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:a,decreased:o,emptied:s,filled:l,increased:f,removed:h}}function _6(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 Tn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_6(Object(n),!0).forEach(function(r){Tr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ff(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cfe(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,cI(r.key),r)}}function kf(e,t,n){return t&&cfe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tr(e,t,n){return t=cI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mf(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&&R1(e,t)}function qp(e){return qp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qp(e)}function R1(e,t){return R1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},R1(e,t)}function dfe(){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 ffe(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 lI(e,t){if(e==null)return{};var n=ffe(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 Mo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hfe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mo(e)}function Rf(e){var t=dfe();return function(){var r=qp(e),i;if(t){var a=qp(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return hfe(this,i)}}function pfe(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 cI(e){var t=pfe(e,"string");return typeof t=="symbol"?t:String(t)}var mfe={flip:{padding:20},preventOverflow:{padding:10}},gfe="The typeValidator argument must be a function with the signature function(props, propName, componentName).",vfe="The error message is optional, but must be a string if provided.";function yfe(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function bfe(e,t){return Object.hasOwnProperty.call(e,t)}function xfe(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function Dfe(e,t){if(typeof e!="function")throw new TypeError(gfe);if(t&&typeof t!="string")throw new TypeError(vfe)}function B6(e,t,n){return Dfe(e,n),function(r,i,a){for(var o=arguments.length,s=new Array(o>3?o-3:0),l=3;l<o;l++)s[l-3]=arguments[l];return yfe(t,r,i,a)?bfe(r,i)?e.apply(void 0,[r,i,a].concat(s)):xfe(r,i,a):e.apply(void 0,[r,i,a].concat(s))}}var Zt={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},ld=No.default.createPortal!==void 0;function Ga(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Hy(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function Mh(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,a=e.debug,o=a===void 0?!1:a,s=i?console.warn||console.error:console.log;o&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(l){ze.plainObject(l)&&l.key?s.apply(console,[l.key,l.value]):s.apply(console,[l])}):s.apply(console,[n]),console.groupEnd())}function $fe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function Efe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function Cfe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(o){n(o),Efe(e,t,i)},$fe(e,t,i,r)}function F6(){}var dI=function(e){Mf(n,e);var t=Rf(n);function n(){return Ff(this,n),t.apply(this,arguments)}return kf(n,[{key:"componentDidMount",value:function(){Ga()&&(this.node||this.appendNode(),ld||this.renderPortal())}},{key:"componentDidUpdate",value:function(){Ga()&&(ld||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!Ga()||!this.node||(ld||No.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,o=i.zIndex;this.node||(this.node=document.createElement("div"),a&&(this.node.id=a),o&&(this.node.style.zIndex=o),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!Ga())return null;var i=this.props,a=i.children,o=i.setRef;if(this.node||this.appendNode(),ld)return No.default.createPortal(a,this.node);var s=No.default.unstable_renderSubtreeIntoContainer(this,a.length>1?de.default.createElement("div",null,a):a[0],this.node);return o(s),null}},{key:"renderReact16",value:function(){var i=this.props,a=i.hasChildren,o=i.placement,s=i.target;return a?this.renderPortal():s||o==="center"?this.renderPortal():null}},{key:"render",value:function(){return ld?this.renderReact16():null}}]),n}(de.default.Component);Tr(dI,"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 fI=function(e){Mf(n,e);var t=Rf(n);function n(){return Ff(this,n),t.apply(this,arguments)}return kf(n,[{key:"parentStyle",get:function(){var i=this.props,a=i.placement,o=i.styles,s=o.arrow.length,l={pointerEvents:"none",position:"absolute",width:"100%"};return a.startsWith("top")?(l.bottom=0,l.left=0,l.right=0,l.height=s):a.startsWith("bottom")?(l.left=0,l.right=0,l.top=0,l.height=s):a.startsWith("left")?(l.right=0,l.top=0,l.bottom=0):a.startsWith("right")&&(l.left=0,l.top=0),l}},{key:"render",value:function(){var i=this.props,a=i.placement,o=i.setArrowRef,s=i.styles,l=s.arrow,f=l.color,h=l.display,m=l.length,g=l.margin,b=l.position,$=l.spread,x={display:h,position:b},A,w=$,C=m;return a.startsWith("top")?(A="0,0 ".concat(w/2,",").concat(C," ").concat(w,",0"),x.bottom=0,x.marginLeft=g,x.marginRight=g):a.startsWith("bottom")?(A="".concat(w,",").concat(C," ").concat(w/2,",0 0,").concat(C),x.top=0,x.marginLeft=g,x.marginRight=g):a.startsWith("left")?(C=$,w=m,A="0,0 ".concat(w,",").concat(C/2," 0,").concat(C),x.right=0,x.marginTop=g,x.marginBottom=g):a.startsWith("right")&&(C=$,w=m,A="".concat(w,",").concat(C," ").concat(w,",0 0,").concat(C/2),x.left=0,x.marginTop=g,x.marginBottom=g),de.default.createElement("div",{className:"__floater__arrow",style:this.parentStyle},de.default.createElement("span",{ref:o,style:x},de.default.createElement("svg",{width:w,height:C,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},de.default.createElement("polygon",{points:A,fill:f}))))}}]),n}(de.default.Component);Tr(fI,"propTypes",{placement:rt.string.isRequired,setArrowRef:rt.func.isRequired,styles:rt.object.isRequired});var wfe=["color","height","width"];function hI(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,a=n.width,o=lI(n,wfe);return de.default.createElement("button",{"aria-label":"close",onClick:t,style:o,type:"button"},de.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"},de.default.createElement("g",null,de.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}))))}hI.propTypes={handleClick:rt.func.isRequired,styles:rt.object.isRequired};function pI(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,a=e.positionWrapper,o=e.showCloseButton,s=e.title,l=e.styles,f={content:de.default.isValidElement(t)?t:de.default.createElement("div",{className:"__floater__content",style:l.content},t)};return s&&(f.title=de.default.isValidElement(s)?s:de.default.createElement("div",{className:"__floater__title",style:l.title},s)),n&&(f.footer=de.default.isValidElement(n)?n:de.default.createElement("div",{className:"__floater__footer",style:l.footer},n)),(o||a)&&!ze.boolean(i)&&(f.close=de.default.createElement(hI,{styles:l.close,handleClick:r})),de.default.createElement("div",{className:"__floater__container",style:l.container},f.close,f.title,f.content,f.footer)}pI.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 mI=function(e){Mf(n,e);var t=Rf(n);function n(){return Ff(this,n),t.apply(this,arguments)}return kf(n,[{key:"style",get:function(){var i=this.props,a=i.disableAnimation,o=i.component,s=i.placement,l=i.hideArrow,f=i.status,h=i.styles,m=h.arrow.length,g=h.floater,b=h.floaterCentered,$=h.floaterClosing,x=h.floaterOpening,A=h.floaterWithAnimation,w=h.floaterWithComponent,C={};return l||(s.startsWith("top")?C.padding="0 0 ".concat(m,"px"):s.startsWith("bottom")?C.padding="".concat(m,"px 0 0"):s.startsWith("left")?C.padding="0 ".concat(m,"px 0 0"):s.startsWith("right")&&(C.padding="0 0 0 ".concat(m,"px"))),[Zt.OPENING,Zt.OPEN].indexOf(f)!==-1&&(C=Tn(Tn({},C),x)),f===Zt.CLOSING&&(C=Tn(Tn({},C),$)),f===Zt.OPEN&&!a&&(C=Tn(Tn({},C),A)),s==="center"&&(C=Tn(Tn({},C),b)),o&&(C=Tn(Tn({},C),w)),Tn(Tn({},g),C)}},{key:"render",value:function(){var i=this.props,a=i.component,o=i.handleClick,s=i.hideArrow,l=i.setFloaterRef,f=i.status,h={},m=["__floater"];return a?de.default.isValidElement(a)?h.content=de.default.cloneElement(a,{closeFn:o}):h.content=a({closeFn:o}):h.content=de.default.createElement(pI,this.props),f===Zt.OPEN&&m.push("__floater__open"),s||(h.arrow=de.default.createElement(fI,this.props)),de.default.createElement("div",{ref:l,className:m.join(" "),style:this.style},de.default.createElement("div",{className:"__floater__body"},h.content,h.arrow))}}]),n}(de.default.Component);Tr(mI,"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 gI=function(e){Mf(n,e);var t=Rf(n);function n(){return Ff(this,n),t.apply(this,arguments)}return kf(n,[{key:"render",value:function(){var i=this.props,a=i.children,o=i.handleClick,s=i.handleMouseEnter,l=i.handleMouseLeave,f=i.setChildRef,h=i.setWrapperRef,m=i.style,g=i.styles,b;if(a)if(de.default.Children.count(a)===1)if(!de.default.isValidElement(a))b=de.default.createElement("span",null,a);else{var $=ze.function(a.type)?"innerRef":"ref";b=de.default.cloneElement(de.default.Children.only(a),Tr({},$,f))}else b=a;return b?de.default.createElement("span",{ref:h,style:Tn(Tn({},g),m),onClick:o,onMouseEnter:s,onMouseLeave:l},b):null}}]),n}(de.default.Component);Tr(gI,"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 Afe={zIndex:100};function Sfe(e){var t=xa(Afe,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 Tfe=["arrow","flip","offset"],Pfe=["position","top","right","bottom","left"],hD=function(e){Mf(n,e);var t=Rf(n);function n(r){var i;return Ff(this,n),i=t.call(this,r),Tr(Mo(i),"setArrowRef",function(a){i.arrowRef=a}),Tr(Mo(i),"setChildRef",function(a){i.childRef=a}),Tr(Mo(i),"setFloaterRef",function(a){i.floaterRef=a}),Tr(Mo(i),"setWrapperRef",function(a){i.wrapperRef=a}),Tr(Mo(i),"handleTransitionEnd",function(){var a=i.state.status,o=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:a===Zt.OPENING?Zt.OPEN:Zt.IDLE},function(){var s=i.state.status;o(s===Zt.OPEN?"open":"close",i.props)})}),Tr(Mo(i),"handleClick",function(){var a=i.props,o=a.event,s=a.open;if(!ze.boolean(s)){var l=i.state,f=l.positionWrapper,h=l.status;(i.event==="click"||i.event==="hover"&&f)&&(Mh({title:"click",data:[{event:o,status:h===Zt.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),Tr(Mo(i),"handleMouseEnter",function(){var a=i.props,o=a.event,s=a.open;if(!(ze.boolean(s)||Hy())){var l=i.state.status;i.event==="hover"&&l===Zt.IDLE&&(Mh({title:"mouseEnter",data:[{key:"originalEvent",value:o}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),Tr(Mo(i),"handleMouseLeave",function(){var a=i.props,o=a.event,s=a.eventDelay,l=a.open;if(!(ze.boolean(l)||Hy())){var f=i.state,h=f.status,m=f.positionWrapper;i.event==="hover"&&(Mh({title:"mouseLeave",data:[{key:"originalEvent",value:o}],debug:i.debug}),s?[Zt.OPENING,Zt.OPEN].indexOf(h)!==-1&&!m&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},s*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,Ga()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return kf(n,[{key:"componentDidMount",value:function(){if(Ga()){var i=this.state.positionWrapper,a=this.props,o=a.children,s=a.open,l=a.target;this._isMounted=!0,Mh({title:"init",data:{hasChildren:!!o,hasTarget:!!l,isControlled:ze.boolean(s),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!o&&l&&ze.boolean(s)}}},{key:"componentDidUpdate",value:function(i,a){if(Ga()){var o=this.props,s=o.autoOpen,l=o.open,f=o.target,h=o.wrapperOptions,m=lfe(a,this.state),g=m.changedFrom,b=m.changed;if(i.open!==l){var $;ze.boolean(l)&&($=l?Zt.OPENING:Zt.CLOSING),this.toggle($)}(i.wrapperOptions.position!==h.position||i.target!==f)&&this.changeWrapperPosition(this.props),b("status",Zt.IDLE)&&l?this.toggle(Zt.OPEN):g("status",Zt.INIT,Zt.IDLE)&&s&&this.toggle(Zt.OPEN),this.popper&&b("status",Zt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(b("status",Zt.OPENING)||b("status",Zt.CLOSING))&&Cfe(this.floaterRef,"transitionend",this.handleTransitionEnd),b("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){Ga()&&(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,o=this.state.positionWrapper,s=this.props,l=s.disableFlip,f=s.getPopper,h=s.hideArrow,m=s.offset,g=s.placement,b=s.wrapperOptions,$=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,w=x.flip,C=x.offset,E=lI(x,Tfe);new rf(a,this.floaterRef,{placement:g,modifiers:Tn({arrow:Tn({enabled:!h,element:this.arrowRef},A),flip:Tn({enabled:!l,behavior:$},w),offset:Tn({offset:"0, ".concat(m,"px")},C)},E),onCreate:function(F){var q;if(i.popper=F,!((q=i.floaterRef)!==null&&q!==void 0&&q.isConnected)){i.setState({needsUpdate:!0});return}f(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 q=i.state.currentPlacement;i._isMounted&&F.placement!==q&&i.setState({currentPlacement:F.placement})}})}if(o){var T=ze.undefined(b.offset)?0:b.offset;new rf(this.target,this.wrapperRef,{placement:b.placement||g,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(T,"px")},flip:{enabled:!1}},onCreate:function(F){i.wrapperPopper=F,i._isMounted&&i.setState({statusWrapper:Zt.IDLE}),f(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,o=i.wrapperOptions;this.setState({positionWrapper:o.position&&!!a})}},{key:"toggle",value:function(i){var a=this.state.status,o=a===Zt.OPEN?Zt.CLOSING:Zt.OPENING;ze.undefined(i)||(o=i),this.setState({status:o})}},{key:"debug",get:function(){var i=this.props.debug;return i||Ga()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,a=i.disableHoverToClick,o=i.event;return o==="hover"&&Hy()&&!a?"click":o}},{key:"options",get:function(){var i=this.props.options;return xa(mfe,i||{})}},{key:"styles",get:function(){var i=this,a=this.state,o=a.status,s=a.positionWrapper,l=a.statusWrapper,f=this.props.styles,h=xa(Sfe(f),f);if(s){var m;[Zt.IDLE].indexOf(o)===-1||[Zt.IDLE].indexOf(l)===-1?m=h.wrapperPosition:m=this.wrapperPopper.styles,h.wrapper=Tn(Tn({},h.wrapper),m)}if(this.target){var g=window.getComputedStyle(this.target);this.wrapperStyles?h.wrapper=Tn(Tn({},h.wrapper),this.wrapperStyles):["relative","static"].indexOf(g.position)===-1&&(this.wrapperStyles={},s||(Pfe.forEach(function(b){i.wrapperStyles[b]=g[b]}),h.wrapper=Tn(Tn({},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(!Ga())return null;var i=this.props.target;return i?ze.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,a=i.currentPlacement,o=i.positionWrapper,s=i.status,l=this.props,f=l.children,h=l.component,m=l.content,g=l.disableAnimation,b=l.footer,$=l.hideArrow,x=l.id,A=l.open,w=l.showCloseButton,C=l.style,E=l.target,T=l.title,P=de.default.createElement(gI,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:C,styles:this.styles.wrapper},f),F={};return o?F.wrapperInPortal=P:F.wrapperAsChildren=P,de.default.createElement("span",null,de.default.createElement(dI,{hasChildren:!!f,id:x,placement:a,setRef:this.setFloaterRef,target:E,zIndex:this.styles.options.zIndex},de.default.createElement(mI,{component:h,content:m,disableAnimation:g,footer:b,handleClick:this.handleClick,hideArrow:$||a==="center",open:A,placement:a,positionWrapper:o,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:w,status:s,styles:this.styles,title:T}),F.wrapperInPortal),F.wrapperAsChildren)}}]),n}(de.default.Component);Tr(hD,"propTypes",{autoOpen:rt.bool,callback:rt.func,children:rt.node,component:B6(rt.oneOfType([rt.func,rt.element]),function(e){return!e.content}),content:B6(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})});Tr(hD,"defaultProps",{autoOpen:!1,callback:F6,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:F6,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var _fe=Object.defineProperty,Bfe=(e,t,n)=>t in e?_fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mt=(e,t,n)=>Bfe(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"},Ui={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 vs(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function vI(e){return e?e.getBoundingClientRect():null}function Ffe(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,o)=>a-o),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 Vo(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 kfe(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function af(e,t,n){if(!e)return vu();const r=UR(e);if(r){if(r.isSameNode(vu()))return n?document:vu();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",vu()}return r}function If(e,t){if(!e)return!1;const n=af(e,t);return n?!n.isSameNode(vu()):!1}function Mfe(e){return e.offsetParent!==document.body}function sc(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=kfe(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?sc(e.parentNode,t):!1}function Rfe(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 Ife(e,t,n){var r,i,a;const o=vI(e),s=af(e,n),l=If(e,n),f=sc(e);let h=0,m=(r=o==null?void 0:o.top)!=null?r:0;if(l&&f){const g=(i=e==null?void 0:e.offsetTop)!=null?i:0,b=(a=s==null?void 0:s.scrollTop)!=null?a:0;m=g-b}else s instanceof HTMLElement&&(h=s.scrollTop,!l&&!sc(e)&&(m+=h),s.isSameNode(vu())||(m+=vu().scrollTop));return Math.floor(m-t)}function Ofe(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:a=0}=(r=UR(e))!=null?r:{};let o=e.getBoundingClientRect().top+a;i&&(If(e,n)||Mfe(e))&&(o-=i);const s=Math.floor(o-t);return s<0?0:s}function vu(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function Lfe(e,t){const{duration:n,element:r}=t;return new Promise((i,a)=>{const{scrollTop:o}=r,s=e>o?e-o:o-e;rde.top(r,e,{duration:s<100?50:n},l=>l&&l.message!=="Element already at target scroll position"?a(l):i())})}var cd=of.createPortal!==void 0;function yI(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 tp(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Ya(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let a=g6(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&&tp(e.type)==="function"){const o=e.type({});a=Ya(o,t)}else a=g6(n);return a}function Vfe(e,t){return!ft.plainObject(e)||!ft.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function Nfe(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,a,o,s)=>a+a+o+o+s+s),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 k6(e){return e.disableBeacon||e.placement==="center"}function M6(){return!["chrome","safari","firefox","opera"].includes(yI())}function Ss({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=>{ft.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 jfe(e){return Object.keys(e)}function bI(e,...t){if(!ft.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 Kfe(e,...t){if(!ft.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 I1(e,t,n){const r=a=>a.replace("{step}",String(t)).replace("{steps}",String(n));if(tp(e)==="string")return r(e);if(!I.isValidElement(e))return e;const{children:i}=e.props;if(tp(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):I1(a,t,n))});if(tp(e.type)==="function"&&!Object.values(e.props).length){const a=e.type({});return I1(a,t,n)}return e}function zfe(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:a,target:o}=e;return!a.disableScrolling&&(!t||i||n===Ft.TOOLTIP)&&a.placement!=="center"&&(!a.isFixed||!sc(o))&&r!==n&&[Ft.BEACON,Ft.TOOLTIP].includes(n)}var qfe={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},xI={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},Ufe={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:xI,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},Wfe={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:[]},Hfe={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},dd={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},R6={borderRadius:4,position:"absolute"};function Gfe(e,t){var n,r,i,a,o;const{floaterProps:s,styles:l}=e,f=xa((n=t.floaterProps)!=null?n:{},s??{}),h=xa(l??{},(r=t.styles)!=null?r:{}),m=xa(Hfe,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 $={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:m.zIndex},x={beacon:{...dd,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(${Nfe(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:{...dd,backgroundColor:m.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...dd,color:m.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...dd,color:m.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...dd,color:m.textColor,fontSize:14},overlay:{...$,backgroundColor:m.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...$},overlayLegacyCenter:{...$,backgroundColor:m.overlayColor},spotlight:{...R6,backgroundColor:"gray"},spotlightLegacy:{...R6,boxShadow:`0 0 0 9999px ${m.overlayColor}, ${m.spotlightShadow}`},floaterStyles:{arrow:{color:(o=(a=(i=f==null?void 0:f.styles)==null?void 0:i.arrow)==null?void 0:a.color)!=null?o:m.arrowColor},options:{zIndex:m.zIndex+100}},options:m};return xa(x,h)}function Yfe(e){return Kfe(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function xl(e,t){var n,r,i,a,o,s;const l=t??{},f=xa.all([Ufe,Yfe(e),l],{isMergeableObject:ft.plainObject}),h=Gfe(e,f),m=If(Vo(f.target),f.disableScrollParentFix),g=xa.all([qfe,(n=e.floaterProps)!=null?n:{},(r=f.floaterProps)!=null?r:{}]);return g.offset=f.offset,g.styles=xa((i=g.styles)!=null?i:{},h.floaterStyles),g.offset+=(o=(a=e.spotlightPadding)!=null?a:f.spotlightPadding)!=null?o:0,f.placementBeacon&&g.wrapperOptions&&(g.wrapperOptions.placement=f.placementBeacon),m&&g.options.preventOverflow&&(g.options.preventOverflow.boundariesElement="window"),{...f,locale:xa.all([xI,(s=e.locale)!=null?s:{},f.locale||{}]),floaterProps:g,styles:bI(h,"floaterStyles")}}function DI(e,t=!1){return ft.plainObject(e)?e.target?!0:(Ss({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(Ss({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function I6(e,t=!1){return ft.array(e)?e.every(n=>DI(n,t)):(Ss({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var $I={action:"init",controlled:!1,index:0,lifecycle:Ft.INIT,origin:null,size:0,status:Nt.IDLE},O6=jfe(bI($I,"controlled","size")),Zfe=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:o}=this.getState(),s={size:i.length,status:o};this.data.set("steps",i),o===Nt.WAITING&&!a&&i.length&&(s.status=Nt.RUNNING),this.setState(s)}),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:o}=this.getState();o===Nt.RUNNING&&this.setState({...this.getNextState({action:rn.CLOSE,index:a+1,origin:i})})}),mt(this,"go",i=>{const{controlled:a,status:o}=this.getState();if(a||o!==Nt.RUNNING)return;const s=this.getSteps()[i];this.setState({...this.getNextState({action:rn.GO,index:i}),status:s?o: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:o}=this.getState();this.setState({...this.getNextState({action:rn.START,index:ft.number(i)?i:a},!0),status:o?Nt.RUNNING:Nt.WAITING})}),mt(this,"stop",(i=!1)=>{const{index:a,status:o}=this.getState();[Nt.FINISHED,Nt.SKIPPED].includes(o)||this.setState({...this.getNextState({action:rn.STOP,index:a+(i?1:0)}),status:Nt.PAUSED})}),mt(this,"update",i=>{var a,o;if(!Vfe(i,O6))throw new Error(`State is not valid. Valid keys: ${O6.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(a=i.action)!=null?a:rn.UPDATE,origin:(o=i.origin)!=null?o:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:rn.INIT,controlled:ft.number(n),continuous:t,index:ft.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")||""}:{...$I}}getNextState(e,t=!1){var n,r,i,a,o;const{action:s,controlled:l,index:f,size:h,status:m}=this.getState(),g=ft.number(e.index)?e.index:f,b=l&&!t?f:Math.min(Math.max(g,0),h);return{action:(n=e.action)!=null?n:s,controlled:l,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:(o=e.status)!=null?o: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:o=null,size:s,status:l}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",a),this.store.set("origin",o),this.store.set("size",s),this.store.set("status",l),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function Xfe(e){return new Zfe(e)}function Qfe({styles:e}){return de.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var Jfe=Qfe,ehe=class extends de.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:o}=this.spotlightStyles,s=i==="fixed"?e.clientY:e.pageY,l=i==="fixed"?e.clientX:e.pageX,f=s>=a&&s<=a+n,m=l>=r&&l<=r+o&&f;m!==t&&this.updateState({mouseOverSpotlight:m})}),mt(this,"handleScroll",()=>{const{target:e}=this.props,t=Vo(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 sc(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=Vo(r);this.scrollParent=af(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&If(i,!0)&&Ss({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:o}=jp(e,this.props);if(o("target")||o("disableScrollParentFix")){const s=Vo(a);this.scrollParent=af(s??document.body,n,!0)}o("lifecycle",Ft.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:s}=this.state;s||this.updateState({showSpotlight:!0})},100)),(o("spotlightClicks")||o("disableOverlay")||o("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 M6()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:Ffe(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:a,spotlightPadding:o=0,styles:s,target:l}=this.props,f=Vo(l),h=vI(f),m=sc(f),g=Ife(f,o,i);return{...M6()?s.spotlightLegacy:s.spotlight,height:Math.round(((e=h==null?void 0:h.height)!=null?e:0)+o*2),left:Math.round(((t=h==null?void 0:h.left)!=null?t:0)-o),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)+o*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 o=n!=="center"&&e&&de.createElement(Jfe,{styles:a});if(yI()==="safari"){const{mixBlendMode:s,zIndex:l,...f}=i;o=de.createElement("div",{style:{...f}},o),delete i.backgroundColor}return de.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},o)}},the=class extends de.Component{constructor(){super(...arguments),mt(this,"node",null)}componentDidMount(){const{id:e}=this.props;vs()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),cd||this.renderReact15())}componentDidUpdate(){vs()&&(cd||this.renderReact15())}componentWillUnmount(){!vs()||!this.node||(cd||No.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!vs())return;const{children:e}=this.props;this.node&&No.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!vs()||!cd)return null;const{children:e}=this.props;return this.node?No.createPortal(e,this.node):null}render(){return cd?this.renderReact16():null}},nhe=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()}},rhe=class extends de.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(`
|
|
148
|
-
@keyframes joyride-beacon-inner {
|
|
149
|
-
20% {
|
|
150
|
-
opacity: 0.9;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
90% {
|
|
154
|
-
opacity: 0.7;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
@keyframes joyride-beacon-outer {
|
|
159
|
-
0% {
|
|
160
|
-
transform: scale(1);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
45% {
|
|
164
|
-
opacity: 0.7;
|
|
165
|
-
transform: scale(0.75);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
100% {
|
|
169
|
-
opacity: 0.9;
|
|
170
|
-
transform: scale(1);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
`)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(ft.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{ft.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:o,step:s,styles:l}=this.props,f=Ya(i.open),h={"aria-label":f,onClick:a,onMouseEnter:a,ref:this.setBeaconRef,title:f};let m;if(e){const g=e;m=de.createElement(g,{continuous:t,index:n,isLastStep:r,size:o,step:s,...h})}else m=de.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:l.beacon,type:"button",...h},de.createElement("span",{style:l.beaconInner}),de.createElement("span",{style:l.beaconOuter}));return m}};function ihe({styles:e,...t}){const{color:n,height:r,width:i,...a}=e;return de.default.createElement("button",{style:a,type:"button",...t},de.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"},de.default.createElement("g",null,de.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 ahe=ihe;function ohe(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:a,skipProps:o,step:s,tooltipProps:l}=e,{content:f,hideBackButton:h,hideCloseButton:m,hideFooter:g,showSkipButton:b,styles:$,title:x}=s,A={};return A.primary=de.createElement("button",{"data-test-id":"button-primary",style:$.buttonNext,type:"button",...a}),b&&!i&&(A.skip=de.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:$.buttonSkip,type:"button",...o})),!h&&r>0&&(A.back=de.createElement("button",{"data-test-id":"button-back",style:$.buttonBack,type:"button",...t})),A.close=!m&&de.createElement(ahe,{"data-test-id":"button-close",styles:$.buttonClose,...n}),de.createElement("div",{key:"JoyrideTooltip","aria-label":Ya(x??f),className:"react-joyride__tooltip",style:$.tooltip,...l},de.createElement("div",{style:$.tooltipContainer},x&&de.createElement("h1",{"aria-label":Ya(x),style:$.tooltipTitle},x),de.createElement("div",{style:$.tooltipContent},f)),!g&&de.createElement("div",{style:$.tooltipFooter},de.createElement("div",{style:$.tooltipFooterSpacer},A.skip),A.back,A.primary),A.close)}var she=ohe,uhe=class extends de.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:o,close:s,last:l,next:f,nextLabelWithProgress:h,skip:m}=a.locale,g=Ya(o),b=Ya(s),$=Ya(l),x=Ya(f),A=Ya(m);let w=s,C=b;if(e){if(w=f,C=x,a.showProgress&&!n){const E=Ya(h,{step:t+1,steps:i});w=I1(h,t+1,i),C=E}n&&(w=l,C=$)}return{backProps:{"aria-label":g,children:o,"data-action":"back",onClick:this.handleClickBack,role:"button",title:g},closeProps:{"aria-label":b,children:s,"data-action":"close",onClick:this.handleClickClose,role:"button",title:b},primaryProps:{"aria-label":C,children:w,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:C},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:o,tooltipComponent:s,...l}=a;let f;if(s){const h={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:l,setTooltipRef:r},m=s;f=de.createElement(m,{...h})}else f=de.createElement(she,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:a});return f}},lhe=class extends de.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:o}=this.props;t==="wrapper"?o.setPopper("beacon",e):o.setPopper("tooltip",e),o.getPopper("beacon")&&(o.getPopper("tooltip")||a.placement==="center")&&i===Ft.INIT&&o.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 de.createElement(uhe,{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;Ss({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:o,helpers:s,index:l,lifecycle:f,shouldScroll:h,status:m,step:g,store:b}=this.props,{changed:$,changedFrom:x}=jp(e,this.props),A=s.info(),w=i&&n!==rn.CLOSE&&(l>0||n===rn.PREV),C=$("action")||$("index")||$("lifecycle")||$("status"),E=x("lifecycle",[Ft.TOOLTIP,Ft.INIT],Ft.INIT),T=$("action",[rn.NEXT,rn.PREV,rn.SKIP,rn.CLOSE]),P=a&&l===e.index;if(T&&(E||P)&&r({...A,index:e.index,lifecycle:Ft.COMPLETE,step:e.step,type:Ui.STEP_AFTER}),g.placement==="center"&&m===Nt.RUNNING&&$("index")&&n!==rn.START&&f===Ft.INIT&&b.update({lifecycle:Ft.READY}),C){const F=Vo(g.target),q=!!F;q&&Rfe(F)?(x("status",Nt.READY,Nt.RUNNING)||x("lifecycle",Ft.INIT,Ft.READY))&&r({...A,step:g,type:Ui.STEP_BEFORE}):(console.warn(q?"Target not visible":"Target not mounted",g),r({...A,type:Ui.TARGET_NOT_FOUND,step:g}),a||b.update({index:l+(n===rn.PREV?-1:1)}))}x("lifecycle",Ft.INIT,Ft.READY)&&b.update({lifecycle:k6(g)||w?Ft.TOOLTIP:Ft.BEACON}),$("index")&&Ss({title:`step:${f}`,data:[{key:"props",value:this.props}],debug:o}),$("lifecycle",Ft.BEACON)&&r({...A,step:g,type:Ui.BEACON}),$("lifecycle",Ft.TOOLTIP)&&(r({...A,step:g,type:Ui.TOOLTIP}),h&&this.tooltip&&(this.scope=new nhe(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 k6(t)||e===Ft.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:a,step:o}=this.props,s=Vo(o.target);return!DI(o)||!ft.domElement(s)?null:de.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},de.createElement(hD,{...o.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:o.placement,target:o.target},de.createElement(rhe,{beaconComponent:o.beaconComponent,continuous:e,index:n,isLastStep:n+1===a,locale:o.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:a,step:o,styles:o.styles})))}},EI=class extends de.Component{constructor(e){super(e),mt(this,"helpers"),mt(this,"store"),mt(this,"callback",o=>{const{callback:s}=this.props;ft.function(s)&&s(o)}),mt(this,"handleKeyboard",o=>{const{index:s,lifecycle:l}=this.state,{steps:f}=this.props,h=f[s];l===Ft.TOOLTIP&&o.code==="Escape"&&h&&!h.disableCloseOnEsc&&this.store.close("keyboard")}),mt(this,"handleClickOverlay",()=>{const{index:o}=this.state,{steps:s}=this.props;xl(this.props,s[o]).disableOverlayClose||this.helpers.close("overlay")}),mt(this,"syncState",o=>{this.setState(o)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=Xfe({...e,controlled:r&&ft.number(i)}),this.helpers=this.store.getHelpers();const{addListener:a}=this.store;Ss({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(!vs())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;I6(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!vs())return;const{action:n,controlled:r,index:i,status:a}=this.state,{debug:o,run:s,stepIndex:l,steps:f}=this.props,{stepIndex:h,steps:m}=e,{reset:g,setSteps:b,start:$,stop:x,update:A}=this.store,{changed:w}=jp(e,this.props),{changed:C,changedFrom:E}=jp(t,this.state),T=xl(this.props,f[i]),P=!Kr(m,f),F=ft.number(l)&&w("stepIndex"),q=Vo(T.target);if(P&&(I6(f,o)?b(f):console.warn("Steps are not valid",f)),w("run")&&(s?$(l):x()),F){let ae=ft.number(h)&&h<l?rn.NEXT:rn.PREV;n===rn.STOP&&(ae=rn.START),[Nt.FINISHED,Nt.SKIPPED].includes(a)||A({action:n===rn.CLOSE?rn.CLOSE:ae,index:l,lifecycle:Ft.INIT})}!r&&a===Nt.RUNNING&&i===0&&!q&&(this.store.update({index:i+1}),this.callback({...this.state,type:Ui.TARGET_NOT_FOUND,step:T}));const te={...this.state,index:i,step:T};if(C("action",[rn.NEXT,rn.PREV,rn.SKIP,rn.CLOSE])&&C("status",Nt.PAUSED)){const ae=xl(this.props,f[t.index]);this.callback({...te,index:t.index,lifecycle:Ft.COMPLETE,step:ae,type:Ui.STEP_AFTER})}if(C("status",[Nt.FINISHED,Nt.SKIPPED])){const ae=xl(this.props,f[t.index]);r||this.callback({...te,index:t.index,lifecycle:Ft.COMPLETE,step:ae,type:Ui.STEP_AFTER}),this.callback({...te,type:Ui.TOUR_END,step:ae,index:t.index}),g()}else E("status",[Nt.IDLE,Nt.READY],Nt.RUNNING)?this.callback({...te,type:Ui.TOUR_START}):(C("status")||C("action",rn.RESET))&&this.callback({...te,type:Ui.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:o,scrollOffset:s=20,scrollToFirstStep:l=!1,steps:f}=this.props,h=xl(this.props,f[t]),m=Vo(h.target),g=zfe({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:h,target:m});if(r===Nt.RUNNING&&g){const b=If(m,a),$=af(m,a);let x=Math.floor(Ofe(m,s,a))||0;Ss({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const A=this.store.getPopper("beacon"),w=this.store.getPopper("tooltip");if(n===Ft.BEACON&&A){const{offsets:C,placement:E}=A;!["bottom"].includes(E)&&!b&&(x=Math.floor(C.popper.top-s))}else if(n===Ft.TOOLTIP&&w){const{flipped:C,offsets:E,placement:T}=w;["top","right","left"].includes(T)&&!C&&!b?x=Math.floor(E.popper.top-s):x-=h.spotlightPadding}x=x>=0?x:0,r===Nt.RUNNING&&Lfe(x,{element:$,duration:o}).then(()=>{setTimeout(()=>{var C;(C=this.store.getPopper("tooltip"))==null||C.instance.update()},10)})}}render(){if(!vs())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:a,scrollToFirstStep:o=!1,steps:s}=this.props,l=n===Nt.RUNNING,f={};if(l&&s[e]){const h=xl(this.props,s[e]);f.step=de.createElement(lhe,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:a,shouldScroll:!h.disableScrolling&&(e!==0||o),step:h,store:this.store}),f.overlay=de.createElement(the,{id:"react-joyride-portal"},de.createElement(ehe,{...h,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return de.createElement("div",{className:"react-joyride"},f.step,f.overlay)}};mt(EI,"defaultProps",Wfe);var che=EI;function L6(e,t,n){return r=>{if(!(t.length===0||t.some(a=>!zT(r.getAll(a),e.getAll(a)))))return vn("[nuqs `%s`] no change, returning previous",t.join(","),r),r;const i=O1(e,t,n);return vn("[nuqs `%s`] subbed search params change\n from %O\n to %O",t.join(","),r,i),i}}function O1(e,t,n){if(t.length===0)return e;const r=n?new URLSearchParams(e):e;for(const i of e.keys())t.includes(i)||r.delete(i);return r}let np=0;function dhe(e=1){np=e}function fhe(){np=Math.max(0,np-1),!(np>0)&&CI()}function CI(){vn("[nuqs] Aborting queues"),Ad.abortAll(),wd.abort().forEach(e=>Ad.queuedQuerySync.emit(e))}const L1="__nuqs__";function hhe(e){if(e instanceof URL)return e.searchParams;if(e.startsWith("?"))return new URLSearchParams(e);try{return new URL(e,location.origin).searchParams}catch{return new URLSearchParams(e)}}function phe(e){var t,n,r;return typeof history>"u"?!1:(t=history.nuqs)!=null&&t.version&&history.nuqs.version!=="0.0.0-inject-version-here"?(console.error(Iu(409),history.nuqs.version,"0.0.0-inject-version-here",e),!1):!((r=(n=history.nuqs)==null?void 0:n.adapters)!=null&&r.includes(e))}function mhe(e){history.nuqs=history.nuqs??{version:"0.0.0-inject-version-here",adapters:[]},history.nuqs.adapters.push(e)}function ghe(e,t){if(!phe(t))return;let n=typeof location=="object"?location.search:"";e.on("update",o=>{const s=o.toString();n=s.length?"?"+s:""}),window.addEventListener("popstate",()=>{n=location.search,CI()}),vn("[nuqs %s] Patching history (%s adapter)","0.0.0-inject-version-here",t);function r(o){fhe();try{if(new URL(o,location.origin).search===n)return}catch{}try{e.emit("update",hhe(o))}catch(s){console.error(s)}}const i=history.pushState,a=history.replaceState;history.pushState=function(s,l,f){i.call(history,s,"",f),f&&l!==L1&&r(f)},history.replaceState=function(s,l,f){a.call(history,s,"",f),f&&l!==L1&&r(f)},mhe(t)}function vhe({adapter:e,useNavigate:t,useSearchParams:n}){const r=fb();function i(o){const s=t(),l=a(o),f=I.useCallback((h,m)=>{var $;I.startTransition(()=>{r.emit("update",h)});const g=new URL(location.href);g.search=eH(h),vn(`[nuqs ${e}] Updating url: %s`,g);const b=m.history==="push"?history.pushState:history.replaceState;dhe(m.shallow?1:2),b.call(history,history.state,L1,g),m.shallow===!1&&s({hash:g.hash,search:g.search},{replace:!0,preventScrollReset:!0,state:($=history.state)==null?void 0:$.usr}),m.scroll&&window.scrollTo(0,0)},[s]);return{searchParams:l,updateUrl:f,autoResetQueueOnUpdate:!1}}function a(o=[]){const[s]=n(typeof location>"u"?new URLSearchParams:new URLSearchParams(location.search)),[l,f]=I.useState(()=>typeof location>"u"?O1(s,o,!0):O1(new URLSearchParams(location.search),o,!1));return I.useEffect(()=>{function h(){f(L6(new URLSearchParams(location.search),o,!1))}function m(g){f(L6(g,o,!0))}return r.on("update",m),window.addEventListener("popstate",h),()=>{r.off("update",m),window.removeEventListener("popstate",h)}},[o.join("&")]),l}return ghe(r,e),{NuqsAdapter:iH(i),useOptimisticSearchParams:a}}const yhe=vhe({adapter:"react-router-v6",useNavigate:Z5.useNavigate,useSearchParams:Z5.useSearchParams}),bhe=yhe.NuqsAdapter;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=Wk;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=YP;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=mf;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=JP;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=er;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=kJ;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=ik;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=_r;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=MQ;exports.$293f70390ea03370$export$497855f14858aa34=SJ;exports.$32489daedd52963e$export$1315d136e6f7581=VJ;exports.$337b884510726a0d$export$c6fdb837b070b4ff=lJ;exports.$36a0ac60f04457c5$export$136073280381448e=CQ;exports.$3c0fc76039f1c516$export$60e84778edff6d26=k9;exports.$40df3f8667284809$export$d55e7ee900f34e93=zJ;exports.$46a4342aab3d8076$export$87e0539f600c24e5=DQ;exports.$47b897dc8cdb026b$export$8d15029008292ae=LQ;exports.$5c06e4929e123553$export$ccdee5eaf73cf661=aee;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=IQ;exports.$6057a3d2a53a12fd$export$42df105a73306d51=RJ;exports.$64244302c3013299$export$dd0bbc9b26defe37=UX;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=aQ;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=KJ;exports.$93c38a5e28be6249$export$e50a61c1de9f574=Cee;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=xQ;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=oee;exports.$a916eb452884faea$export$b7a616150fdb9f44=iQ;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=fee;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=yee;exports.$bb77f239b46e8c72$export$3274cf84b703fff=A7;exports.$bcca50147b47f54d$export$56b2c08e277f365=OQ;exports.$c132121280ec012d$export$50eacbbf140a3141=bJ;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=DJ;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=BJ;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=$Q;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=wee;exports.$f2f8a6077418541e$export$542a6fd13ac93354=uJ;exports.$fae977aafc393c5c$export$588937bcd60ade55=xX;exports.$fae977aafc393c5c$export$6b862160d295c8e=bX;exports.ACTIONS=rn;exports.AdvancedImage=Tq;exports.CSVLink=Ace;exports.Cloudinary=EU;exports.Controller=QG;exports.EVENTS=Ui;exports.FormProvider=ZG;exports.LazyMotion=Aoe;exports.Lottie=boe;exports.M=va;exports.NuqsAdapter=bhe;exports.ReorderGroup=qae;exports.ReorderItem=Gae;exports.STATUS=Nt;exports._=YW;exports._$1=Lu;exports.autoUpdate=$G;exports.capitalize=FK;exports.components_default=che;exports.dayjs=Bee;exports.dayjs_minExports=M9;exports.domAnimation=sce;exports.ee=L9;exports.flexRender=_ce;exports.flip=BG;exports.isEmpty=toe;exports.isEqual=Tee;exports.isNaN=foe;exports.isNil=Pce;exports.isNumber=kee;exports.isUndefined=ote;exports.lazyload=Dq;exports.localizedFormat=Qae;exports.lodashExports=jT;exports.m=mse;exports.o=moe;exports.offset=PG;exports.parseAsString=gH;exports.placeholder=wq;exports.prismExports=ute;exports.q=tx;exports.random=loe;exports.shift=_G;exports.some=WW;exports.transform=Vce;exports.useController=mP;exports.useFieldArray=hY;exports.useFloating=zG;exports.useFloating$1=aP;exports.useFocus=qG;exports.useForm=pY;exports.useFormContext=cf;exports.useHover=jG;exports.useInteractions=UG;exports.useQueryState=yH;exports.useQueryStates=UT;exports.useRole=HG;exports.useVirtualizer=AY;exports.useWatch=pP;
|