lawgic-dev-kit 0.16.4 → 0.16.8
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/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/atoms/CenterModal/CenterModal.js +38 -31
- package/dist/components/atoms/FloatingCard/FloatingCard.d.ts +4 -0
- package/dist/components/atoms/FloatingCard/FloatingCard.types.d.ts +9 -0
- package/dist/components/atoms/FloatingCard/index.d.ts +1 -0
- package/dist/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.d.ts +4 -0
- package/dist/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.js +115 -0
- package/dist/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.types.d.ts +26 -0
- package/dist/components/atoms/ThresholdCircleProgress/index.d.ts +1 -0
- package/dist/components/atoms/TresholdProgressBar/TresholdProgressBar.d.ts +4 -0
- package/dist/components/atoms/TresholdProgressBar/TresholdProgressBar.js +72 -0
- package/dist/components/atoms/TresholdProgressBar/TresholdProgressBar.types.d.ts +22 -0
- package/dist/components/atoms/TresholdProgressBar/index.d.ts +1 -0
- package/dist/components/atoms/index.d.ts +2 -0
- package/dist/components/molecules/AlertModal/AlertModal.d.ts +1 -1
- package/dist/components/molecules/AlertModal/AlertModal.js +21 -20
- package/dist/components/molecules/AlertModal/AlertModal.types.d.ts +1 -0
- package/dist/components/molecules/DialogModal/DialogModal.d.ts +1 -1
- package/dist/components/molecules/DialogModal/DialogModal.js +23 -29
- package/dist/components/molecules/DialogModal/DialogModal.types.d.ts +1 -0
- package/dist/index.js +81 -77
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +50 -50
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/toposort/index.js +1 -1
- package/dist/src/components/atoms/index.d.ts +37 -0
- package/dist/types/modal.d.ts +4 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(oe,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("react"),require("react-hook-form"),require("fuse.js"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-hook-form","fuse.js","react-dom"],I):(oe=typeof globalThis<"u"?globalThis:oe||self,I(oe.lawgicDevKit={},oe.React,oe.reactHookForm,oe.Fuse,oe.ReactDOM))})(this,function(oe,I,hr,dT,hT){"use strict";function Om(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 X=Om(I),mT=Om(hT);var ea=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ta={exports:{}},Ls={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Im;function pT(){if(Im)return Ls;Im=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,
|
|
9
|
+
*/var Im;function pT(){if(Im)return Ls;Im=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var a=null;if(o!==void 0&&(a=""+o),i.key!==void 0&&(a=""+i.key),"key"in i){o={};for(var c in i)c!=="key"&&(o[c]=i[c])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:a,ref:i!==void 0?i:null,props:o}}return Ls.Fragment=t,Ls.jsx=n,Ls.jsxs=n,Ls}var ks={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Dm;function gT(){return Dm||(Dm=1,process.env.NODE_ENV!=="production"&&function(){function e(
|
|
17
|
+
*/var Dm;function gT(){return Dm||(Dm=1,process.env.NODE_ENV!=="production"&&function(){function e(O){if(O==null)return null;if(typeof O=="function")return O.$$typeof===Z?null:O.displayName||O.name||null;if(typeof O=="string")return O;switch(O){case b:return"Fragment";case w:return"Profiler";case E:return"StrictMode";case P:return"Suspense";case R:return"SuspenseList";case z:return"Activity"}if(typeof O=="object")switch(typeof O.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),O.$$typeof){case S:return"Portal";case M:return(O.displayName||"Context")+".Provider";case C:return(O._context.displayName||"Context")+".Consumer";case $:var V=O.render;return O=O.displayName,O||(O=V.displayName||V.name||"",O=O!==""?"ForwardRef("+O+")":"ForwardRef"),O;case k:return V=O.displayName||null,V!==null?V:e(O.type)||"Memo";case j:V=O._payload,O=O._init;try{return e(O(V))}catch{}}return null}function t(O){return""+O}function n(O){try{t(O);var V=!1}catch{V=!0}if(V){V=console;var J=V.error,re=typeof Symbol=="function"&&Symbol.toStringTag&&O[Symbol.toStringTag]||O.constructor.name||"Object";return J.call(V,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",re),t(O)}}function r(O){if(O===b)return"<>";if(typeof O=="object"&&O!==null&&O.$$typeof===j)return"<...>";try{var V=e(O);return V?"<"+V+">":"<...>"}catch{return"<...>"}}function i(){var O=te.A;return O===null?null:O.getOwner()}function o(){return Error("react-stack-top-frame")}function a(O){if(ce.call(O,"key")){var V=Object.getOwnPropertyDescriptor(O,"key").get;if(V&&V.isReactWarning)return!1}return O.key!==void 0}function c(O,V){function J(){ee||(ee=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",V))}J.isReactWarning=!0,Object.defineProperty(O,"key",{get:J,configurable:!0})}function u(){var O=e(this.type);return ne[O]||(ne[O]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),O=this.props.ref,O!==void 0?O:null}function d(O,V,J,re,ae,G,ie,he){return J=G.ref,O={$$typeof:y,type:O,key:V,props:G,_owner:ae},(J!==void 0?J:null)!==null?Object.defineProperty(O,"ref",{enumerable:!1,get:u}):Object.defineProperty(O,"ref",{enumerable:!1,value:null}),O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(O,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(O,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ie}),Object.defineProperty(O,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:he}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O}function h(O,V,J,re,ae,G,ie,he){var ue=V.children;if(ue!==void 0)if(re)if(ve(ue)){for(re=0;re<ue.length;re++)m(ue[re]);Object.freeze&&Object.freeze(ue)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(ue);if(ce.call(V,"key")){ue=e(O);var ye=Object.keys(V).filter(function(Le){return Le!=="key"});re=0<ye.length?"{key: someKey, "+ye.join(": ..., ")+": ...}":"{key: someKey}",q[ue+re]||(ye=0<ye.length?"{"+ye.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,
|
|
22
|
+
<%s key={someKey} {...props} />`,re,ue,ye,ue),q[ue+re]=!0)}if(ue=null,J!==void 0&&(n(J),ue=""+J),a(V)&&(n(V.key),ue=""+V.key),"key"in V){J={};for(var xe in V)xe!=="key"&&(J[xe]=V[xe])}else J=V;return ue&&c(J,typeof O=="function"?O.displayName||O.name||"Unknown":O),d(O,ue,G,ae,i(),J,ie,he)}function m(O){typeof O=="object"&&O!==null&&O.$$typeof===y&&O._store&&(O._store.validated=1)}var p=I,y=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),M=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),Z=Symbol.for("react.client.reference"),te=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce=Object.prototype.hasOwnProperty,ve=Array.isArray,fe=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function(O){return O()}};var ee,ne={},N=p["react-stack-bottom-frame"].bind(p,o)(),W=fe(r(o)),q={};ks.Fragment=b,ks.jsx=function(O,V,J,re,ae){var G=1e4>te.recentlyCreatedOwnerStacks++;return h(O,V,J,!1,re,ae,G?Error("react-stack-top-frame"):N,G?fe(r(O)):W)},ks.jsxs=function(O,V,J,re,ae){var G=1e4>te.recentlyCreatedOwnerStacks++;return h(O,V,J,!0,re,ae,G?Error("react-stack-top-frame"):N,G?fe(r(O)):W)}}()),ks}var $m;function yT(){return $m||($m=1,process.env.NODE_ENV==="production"?ta.exports=pT():ta.exports=gT()),ta.exports}var v=yT();/*!
|
|
23
23
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
24
24
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
25
25
|
* Copyright 2024 Fonticons, Inc.
|
|
26
|
-
*/function vT(e,t,n){return(t=xT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rm(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 J(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rm(Object(n),!0).forEach(function(r){vT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bT(e,t){if(typeof e!="object"||!e)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 xT(e){var t=bT(e,"string");return typeof t=="symbol"?t:t+""}const Nm=()=>{};let fc={},Lm={},km=null,jm={mark:Nm,measure:Nm};try{typeof window<"u"&&(fc=window),typeof document<"u"&&(Lm=document),typeof MutationObserver<"u"&&(km=MutationObserver),typeof performance<"u"&&(jm=performance)}catch{}const{userAgent:Fm=""}=fc.navigator||{},mr=fc,Xe=Lm,Vm=km,na=jm;mr.document;const zn=!!Xe.documentElement&&!!Xe.head&&typeof Xe.addEventListener=="function"&&typeof Xe.createElement=="function",Bm=~Fm.indexOf("MSIE")||~Fm.indexOf("Trident/");var wT=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,ST=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Wm={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},TT={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Um=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",ra="duotone",ET="sharp",CT="sharp-duotone",zm=[wt,ra,ET,CT],PT={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},AT={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},OT=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),MT={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},_T=["fak","fa-kit","fakd","fa-kit-duotone"],Gm={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},IT=["kit"],DT={kit:{"fa-kit":"fak"}},$T=["fak","fakd"],RT={kit:{fak:"fa-kit"}},Ym={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},ia={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},NT=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],LT=["fak","fa-kit","fakd","fa-kit-duotone"],kT={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},jT={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},FT={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},dc={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},VT=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],hc=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...NT,...VT],BT=["solid","regular","light","thin","duotone","brands"],Hm=[1,2,3,4,5,6,7,8,9,10],WT=Hm.concat([11,12,13,14,15,16,17,18,19,20]),UT=[...Object.keys(FT),...BT,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",ia.GROUP,ia.SWAP_OPACITY,ia.PRIMARY,ia.SECONDARY].concat(Hm.map(e=>"".concat(e,"x"))).concat(WT.map(e=>"w-".concat(e))),zT={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const Gn="___FONT_AWESOME___",mc=16,qm="fa",Km="svg-inline--fa",Gr="data-fa-i2svg",pc="data-fa-pseudo-element",GT="data-fa-pseudo-element-pending",gc="data-prefix",yc="data-icon",Xm="fontawesome-i2svg",YT="async",HT=["HTML","HEAD","STYLE","SCRIPT"],Zm=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function js(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const Jm=J({},Wm);Jm[wt]=J(J(J(J({},{"fa-duotone":"duotone"}),Wm[wt]),Gm.kit),Gm["kit-duotone"]);const qT=js(Jm),vc=J({},MT);vc[wt]=J(J(J(J({},{duotone:"fad"}),vc[wt]),Ym.kit),Ym["kit-duotone"]);const Qm=js(vc),bc=J({},dc);bc[wt]=J(J({},bc[wt]),RT.kit);const xc=js(bc),wc=J({},jT);wc[wt]=J(J({},wc[wt]),DT.kit),js(wc);const KT=wT,ep="fa-layers-text",XT=ST,ZT=J({},PT);js(ZT);const JT=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Sc=TT,QT=[...IT,...UT],Fs=mr.FontAwesomeConfig||{};function eE(e){var t=Xe.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function tE(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Xe&&typeof Xe.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const i=tE(eE(n));i!=null&&(Fs[r]=i)});const tp={styleDefault:"solid",familyDefault:wt,cssPrefix:qm,replacementClass:Km,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Fs.familyPrefix&&(Fs.cssPrefix=Fs.familyPrefix);const $i=J(J({},tp),Fs);$i.autoReplaceSvg||($i.observeMutations=!1);const ge={};Object.keys(tp).forEach(e=>{Object.defineProperty(ge,e,{enumerable:!0,set:function(t){$i[e]=t,Vs.forEach(n=>n(ge))},get:function(){return $i[e]}})}),Object.defineProperty(ge,"familyPrefix",{enumerable:!0,set:function(e){$i.cssPrefix=e,Vs.forEach(t=>t(ge))},get:function(){return $i.cssPrefix}}),mr.FontAwesomeConfig=ge;const Vs=[];function nE(e){return Vs.push(e),()=>{Vs.splice(Vs.indexOf(e),1)}}const pr=mc,Cn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function rE(e){if(!e||!zn)return;const t=Xe.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Xe.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const a=n[i],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=a)}return Xe.head.insertBefore(t,r),e}const iE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Bs(){let e=12,t="";for(;e-- >0;)t+=iE[Math.random()*62|0];return t}function Ri(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Tc(e){return e.classList?Ri(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function np(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function sE(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(np(e[n]),'" '),"").trim()}function sa(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Ec(e){return e.size!==Cn.size||e.x!==Cn.x||e.y!==Cn.y||e.rotate!==Cn.rotate||e.flipX||e.flipY}function oE(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),c="rotate(".concat(t.rotate," 0 0)"),u={transform:"".concat(a," ").concat(o," ").concat(c)},d={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:u,path:d}}function aE(e){let{transform:t,width:n=mc,height:r=mc,startCentered:i=!1}=e,a="";return i&&Bm?a+="translate(".concat(t.x/pr-n/2,"em, ").concat(t.y/pr-r/2,"em) "):i?a+="translate(calc(-50% + ".concat(t.x/pr,"em), calc(-50% + ").concat(t.y/pr,"em)) "):a+="translate(".concat(t.x/pr,"em, ").concat(t.y/pr,"em) "),a+="scale(".concat(t.size/pr*(t.flipX?-1:1),", ").concat(t.size/pr*(t.flipY?-1:1),") "),a+="rotate(".concat(t.rotate,"deg) "),a}var lE=`:root, :host {
|
|
26
|
+
*/function vT(e,t,n){return(t=xT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rm(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 Q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rm(Object(n),!0).forEach(function(r){vT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bT(e,t){if(typeof e!="object"||!e)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 xT(e){var t=bT(e,"string");return typeof t=="symbol"?t:t+""}const Nm=()=>{};let fc={},Lm={},km=null,jm={mark:Nm,measure:Nm};try{typeof window<"u"&&(fc=window),typeof document<"u"&&(Lm=document),typeof MutationObserver<"u"&&(km=MutationObserver),typeof performance<"u"&&(jm=performance)}catch{}const{userAgent:Fm=""}=fc.navigator||{},mr=fc,Xe=Lm,Vm=km,na=jm;mr.document;const zn=!!Xe.documentElement&&!!Xe.head&&typeof Xe.addEventListener=="function"&&typeof Xe.createElement=="function",Bm=~Fm.indexOf("MSIE")||~Fm.indexOf("Trident/");var wT=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,ST=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Wm={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},TT={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Um=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",ra="duotone",ET="sharp",CT="sharp-duotone",zm=[wt,ra,ET,CT],PT={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},AT={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},MT=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),OT={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},_T=["fak","fa-kit","fakd","fa-kit-duotone"],Gm={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},IT=["kit"],DT={kit:{"fa-kit":"fak"}},$T=["fak","fakd"],RT={kit:{fak:"fa-kit"}},Ym={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},ia={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},NT=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],LT=["fak","fa-kit","fakd","fa-kit-duotone"],kT={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},jT={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},FT={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},dc={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},VT=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],hc=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...NT,...VT],BT=["solid","regular","light","thin","duotone","brands"],Hm=[1,2,3,4,5,6,7,8,9,10],WT=Hm.concat([11,12,13,14,15,16,17,18,19,20]),UT=[...Object.keys(FT),...BT,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",ia.GROUP,ia.SWAP_OPACITY,ia.PRIMARY,ia.SECONDARY].concat(Hm.map(e=>"".concat(e,"x"))).concat(WT.map(e=>"w-".concat(e))),zT={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const Gn="___FONT_AWESOME___",mc=16,qm="fa",Km="svg-inline--fa",Gr="data-fa-i2svg",pc="data-fa-pseudo-element",GT="data-fa-pseudo-element-pending",gc="data-prefix",yc="data-icon",Xm="fontawesome-i2svg",YT="async",HT=["HTML","HEAD","STYLE","SCRIPT"],Zm=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function js(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const Jm=Q({},Wm);Jm[wt]=Q(Q(Q(Q({},{"fa-duotone":"duotone"}),Wm[wt]),Gm.kit),Gm["kit-duotone"]);const qT=js(Jm),vc=Q({},OT);vc[wt]=Q(Q(Q(Q({},{duotone:"fad"}),vc[wt]),Ym.kit),Ym["kit-duotone"]);const Qm=js(vc),bc=Q({},dc);bc[wt]=Q(Q({},bc[wt]),RT.kit);const xc=js(bc),wc=Q({},jT);wc[wt]=Q(Q({},wc[wt]),DT.kit),js(wc);const KT=wT,ep="fa-layers-text",XT=ST,ZT=Q({},PT);js(ZT);const JT=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Sc=TT,QT=[...IT,...UT],Fs=mr.FontAwesomeConfig||{};function eE(e){var t=Xe.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function tE(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Xe&&typeof Xe.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const i=tE(eE(n));i!=null&&(Fs[r]=i)});const tp={styleDefault:"solid",familyDefault:wt,cssPrefix:qm,replacementClass:Km,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Fs.familyPrefix&&(Fs.cssPrefix=Fs.familyPrefix);const $i=Q(Q({},tp),Fs);$i.autoReplaceSvg||($i.observeMutations=!1);const ge={};Object.keys(tp).forEach(e=>{Object.defineProperty(ge,e,{enumerable:!0,set:function(t){$i[e]=t,Vs.forEach(n=>n(ge))},get:function(){return $i[e]}})}),Object.defineProperty(ge,"familyPrefix",{enumerable:!0,set:function(e){$i.cssPrefix=e,Vs.forEach(t=>t(ge))},get:function(){return $i.cssPrefix}}),mr.FontAwesomeConfig=ge;const Vs=[];function nE(e){return Vs.push(e),()=>{Vs.splice(Vs.indexOf(e),1)}}const pr=mc,Cn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function rE(e){if(!e||!zn)return;const t=Xe.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Xe.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return Xe.head.insertBefore(t,r),e}const iE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Bs(){let e=12,t="";for(;e-- >0;)t+=iE[Math.random()*62|0];return t}function Ri(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Tc(e){return e.classList?Ri(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function np(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function sE(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(np(e[n]),'" '),"").trim()}function sa(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Ec(e){return e.size!==Cn.size||e.x!==Cn.x||e.y!==Cn.y||e.rotate!==Cn.rotate||e.flipX||e.flipY}function oE(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),c="rotate(".concat(t.rotate," 0 0)"),u={transform:"".concat(o," ").concat(a," ").concat(c)},d={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:u,path:d}}function aE(e){let{transform:t,width:n=mc,height:r=mc,startCentered:i=!1}=e,o="";return i&&Bm?o+="translate(".concat(t.x/pr-n/2,"em, ").concat(t.y/pr-r/2,"em) "):i?o+="translate(calc(-50% + ".concat(t.x/pr,"em), calc(-50% + ").concat(t.y/pr,"em)) "):o+="translate(".concat(t.x/pr,"em, ").concat(t.y/pr,"em) "),o+="scale(".concat(t.size/pr*(t.flipX?-1:1),", ").concat(t.size/pr*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var lE=`:root, :host {
|
|
27
27
|
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
|
|
28
28
|
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
|
|
29
29
|
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
|
|
@@ -576,29 +576,29 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
|
576
576
|
.svg-inline--fa mask .fa-primary,
|
|
577
577
|
.svg-inline--fa mask .fa-secondary {
|
|
578
578
|
fill: black;
|
|
579
|
-
}`;function rp(){const e=qm,t=Km,n=ge.cssPrefix,r=ge.replacementClass;let i=lE;if(n!==e||r!==t){const a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),c=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(c,".".concat(r))}return i}let ip=!1;function Cc(){ge.autoAddCss&&!ip&&(rE(rp()),ip=!0)}var cE={mixout(){return{dom:{css:rp,insertCss:Cc}}},hooks(){return{beforeDOMElementCreation(){Cc()},beforeI2svg(){Cc()}}}};const Yn=mr||{};Yn[Gn]||(Yn[Gn]={}),Yn[Gn].styles||(Yn[Gn].styles={}),Yn[Gn].hooks||(Yn[Gn].hooks={}),Yn[Gn].shims||(Yn[Gn].shims=[]);var Pn=Yn[Gn];const sp=[],op=function(){Xe.removeEventListener("DOMContentLoaded",op),oa=1,sp.map(e=>e())};let oa=!1;zn&&(oa=(Xe.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Xe.readyState),oa||Xe.addEventListener("DOMContentLoaded",op));function uE(e){zn&&(oa?setTimeout(e,0):sp.push(e))}function Ws(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?np(e):"<".concat(t," ").concat(sE(n),">").concat(r.map(Ws).join(""),"</").concat(t,">")}function ap(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Pc=function(t,n,r,i){var a=Object.keys(t),o=a.length,c=n,u,d,h;for(r===void 0?(u=1,h=t[a[0]]):(u=0,h=r);u<o;u++)d=a[u],h=c(h,t[d],d,t);return h};function fE(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const a=e.charCodeAt(n++);(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function Ac(e){const t=fE(e);return t.length===1?t[0].toString(16):null}function dE(e,t){const n=e.length;let r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function lp(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function Oc(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=lp(t);typeof Pn.hooks.addPack=="function"&&!r?Pn.hooks.addPack(e,lp(t)):Pn.styles[e]=J(J({},Pn.styles[e]||{}),i),e==="fas"&&Oc("fa",t)}const{styles:Us,shims:hE}=Pn,cp=Object.keys(xc),mE=cp.reduce((e,t)=>(e[t]=Object.keys(xc[t]),e),{});let Mc=null,up={},fp={},dp={},hp={},mp={};function pE(e){return~QT.indexOf(e)}function gE(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!pE(i)?i:null}const pp=()=>{const e=r=>Pc(Us,(i,a,o)=>(i[o]=Pc(a,r,{}),i),{});up=e((r,i,a)=>(i[3]&&(r[i[3]]=a),i[2]&&i[2].filter(c=>typeof c=="number").forEach(c=>{r[c.toString(16)]=a}),r)),fp=e((r,i,a)=>(r[a]=a,i[2]&&i[2].filter(c=>typeof c=="string").forEach(c=>{r[c]=a}),r)),mp=e((r,i,a)=>{const o=i[2];return r[a]=a,o.forEach(c=>{r[c]=a}),r});const t="far"in Us||ge.autoFetchSvg,n=Pc(hE,(r,i)=>{const a=i[0];let o=i[1];const c=i[2];return o==="far"&&!t&&(o="fas"),typeof a=="string"&&(r.names[a]={prefix:o,iconName:c}),typeof a=="number"&&(r.unicodes[a.toString(16)]={prefix:o,iconName:c}),r},{names:{},unicodes:{}});dp=n.names,hp=n.unicodes,Mc=aa(ge.styleDefault,{family:ge.familyDefault})};nE(e=>{Mc=aa(e.styleDefault,{family:ge.familyDefault})}),pp();function _c(e,t){return(up[e]||{})[t]}function yE(e,t){return(fp[e]||{})[t]}function Yr(e,t){return(mp[e]||{})[t]}function gp(e){return dp[e]||{prefix:null,iconName:null}}function vE(e){const t=hp[e],n=_c("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function gr(){return Mc}const yp=()=>({prefix:null,iconName:null,rest:[]});function bE(e){let t=wt;const n=cp.reduce((r,i)=>(r[i]="".concat(ge.cssPrefix,"-").concat(i),r),{});return zm.forEach(r=>{(e.includes(n[r])||e.some(i=>mE[r].includes(i)))&&(t=r)}),t}function aa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=wt}=t,r=qT[n][e];if(n===ra&&!e)return"fad";const i=Qm[n][e]||Qm[n][r],a=e in Pn.styles?e:null;return i||a||null}function xE(e){let t=[],n=null;return e.forEach(r=>{const i=gE(ge.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function vp(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function la(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=hc.concat(LT),a=vp(e.filter(m=>i.includes(m))),o=vp(e.filter(m=>!hc.includes(m))),c=a.filter(m=>(r=m,!Um.includes(m))),[u=null]=c,d=bE(a),h=J(J({},xE(o)),{},{prefix:aa(u,{family:d})});return J(J(J({},h),EE({values:e,family:d,styles:Us,config:ge,canonical:h,givenPrefix:r})),wE(n,r,h))}function wE(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const a=t==="fa"?gp(i):{},o=Yr(r,i);return i=a.iconName||o||i,r=a.prefix||r,r==="far"&&!Us.far&&Us.fas&&!ge.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const SE=zm.filter(e=>e!==wt||e!==ra),TE=Object.keys(dc).filter(e=>e!==wt).map(e=>Object.keys(dc[e])).flat();function EE(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:a={},config:o={}}=e,c=n===ra,u=t.includes("fa-duotone")||t.includes("fad"),d=o.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!c&&(u||d||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&SE.includes(n)&&(Object.keys(a).find(p=>TE.includes(p))||o.autoFetchSvg)){const p=OT.get(n).defaultShortPrefixId;r.prefix=p,r.iconName=Yr(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||i==="fa")&&(r.prefix=gr()||"fas"),r}class CE{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach(a=>{this.definitions[a]=J(J({},this.definitions[a]||{}),i[a]),Oc(a,i[a]);const o=xc[wt][a];o&&Oc(o,i[a]),pp()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(i=>{const{prefix:a,iconName:o,icon:c}=r[i],u=c[2];t[a]||(t[a]={}),u.length>0&&u.forEach(d=>{typeof d=="string"&&(t[a][d]=c)}),t[a][o]=c}),t}}let bp=[],Ni={};const Li={},PE=Object.keys(Li);function AE(e,t){let{mixoutsTo:n}=t;return bp=e,Ni={},Object.keys(Li).forEach(r=>{PE.indexOf(r)===-1&&delete Li[r]}),bp.forEach(r=>{const i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(a=>{typeof i[a]=="function"&&(n[a]=i[a]),typeof i[a]=="object"&&Object.keys(i[a]).forEach(o=>{n[a]||(n[a]={}),n[a][o]=i[a][o]})}),r.hooks){const a=r.hooks();Object.keys(a).forEach(o=>{Ni[o]||(Ni[o]=[]),Ni[o].push(a[o])})}r.provides&&r.provides(Li)}),n}function Ic(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(Ni[e]||[]).forEach(o=>{t=o.apply(null,[t,...r])}),t}function Hr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Ni[e]||[]).forEach(a=>{a.apply(null,n)})}function yr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Li[e]?Li[e].apply(null,t):void 0}function Dc(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||gr();if(t)return t=Yr(n,t)||t,ap(xp.definitions,n,t)||ap(Pn.styles,n,t)}const xp=new CE,zt={noAuto:()=>{ge.autoReplaceSvg=!1,ge.observeMutations=!1,Hr("noAuto")},config:ge,dom:{i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return zn?(Hr("beforeI2svg",e),yr("pseudoElements2svg",e),yr("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;ge.autoReplaceSvg===!1&&(ge.autoReplaceSvg=!0),ge.observeMutations=!0,uE(()=>{OE({autoReplaceSvgRoot:t}),Hr("watch",e)})}},parse:{icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Yr(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=aa(e[0]);return{prefix:n,iconName:Yr(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(ge.cssPrefix,"-"))>-1||e.match(KT))){const t=la(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||gr(),iconName:Yr(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=gr();return{prefix:t,iconName:Yr(t,e)||e}}}},library:xp,findIconDefinition:Dc,toHtml:Ws},OE=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Xe}=e;(Object.keys(Pn.styles).length>0||ge.autoFetchSvg)&&zn&&ge.autoReplaceSvg&&zt.dom.i2svg({node:t})};function ca(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Ws(n))}}),Object.defineProperty(e,"node",{get:function(){if(!zn)return;const n=Xe.createElement("div");return n.innerHTML=e.html,n.children}}),e}function ME(e){let{children:t,main:n,mask:r,attributes:i,styles:a,transform:o}=e;if(Ec(o)&&n.found&&!r.found){const{width:c,height:u}=n,d={x:c/u/2,y:.5};i.style=sa(J(J({},a),{},{"transform-origin":"".concat(d.x+o.x/16,"em ").concat(d.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function _E(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:a}=e;const o=a===!0?"".concat(t,"-").concat(ge.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:J(J({},i),{},{id:o}),children:r}]}]}function $c(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:a,symbol:o,title:c,maskId:u,titleId:d,extra:h,watchable:m=!1}=e,{width:p,height:y}=n.found?n:t,S=$T.includes(r),b=[ge.replacementClass,i?"".concat(ge.cssPrefix,"-").concat(i):""].filter(O=>h.classes.indexOf(O)===-1).filter(O=>O!==""||!!O).concat(h.classes).join(" ");let E={children:[],attributes:J(J({},h.attributes),{},{"data-prefix":r,"data-icon":i,class:b,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat(y)})};const w=S&&!~h.classes.indexOf("fa-fw")?{width:"".concat(p/y*16*.0625,"em")}:{};m&&(E.attributes[Gr]=""),c&&(E.children.push({tag:"title",attributes:{id:E.attributes["aria-labelledby"]||"title-".concat(d||Bs())},children:[c]}),delete E.attributes.title);const C=J(J({},E),{},{prefix:r,iconName:i,main:t,mask:n,maskId:u,transform:a,symbol:o,styles:J(J({},w),h.styles)}),{children:A,attributes:$}=n.found&&t.found?yr("generateAbstractMask",C)||{children:[],attributes:{}}:yr("generateAbstractIcon",C)||{children:[],attributes:{}};return C.children=A,C.attributes=$,o?_E(C):ME(C)}function wp(e){const{content:t,width:n,height:r,transform:i,title:a,extra:o,watchable:c=!1}=e,u=J(J(J({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});c&&(u[Gr]="");const d=J({},o.styles);Ec(i)&&(d.transform=aE({transform:i,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);const h=sa(d);h.length>0&&(u.style=h);const m=[];return m.push({tag:"span",attributes:u,children:[t]}),a&&m.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),m}function IE(e){const{content:t,title:n,extra:r}=e,i=J(J(J({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),a=sa(r.styles);a.length>0&&(i.style=a);const o=[];return o.push({tag:"span",attributes:i,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}const{styles:Rc}=Pn;function Nc(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return Array.isArray(r)?i={tag:"g",attributes:{class:"".concat(ge.cssPrefix,"-").concat(Sc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ge.cssPrefix,"-").concat(Sc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ge.cssPrefix,"-").concat(Sc.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const DE={found:!1,width:512,height:512};function $E(e,t){!Zm&&!ge.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Lc(e,t){let n=t;return t==="fa"&&ge.styleDefault!==null&&(t=gr()),new Promise((r,i)=>{if(n==="fa"){const a=gp(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&Rc[t]&&Rc[t][e]){const a=Rc[t][e];return r(Nc(a))}$E(e,t),r(J(J({},DE),{},{icon:ge.showMissingIcons&&e?yr("missingIconAbstract")||{}:{}}))})}const Sp=()=>{},kc=ge.measurePerformance&&na&&na.mark&&na.measure?na:{mark:Sp,measure:Sp},zs='FA "6.7.2"',RE=e=>(kc.mark("".concat(zs," ").concat(e," begins")),()=>Tp(e)),Tp=e=>{kc.mark("".concat(zs," ").concat(e," ends")),kc.measure("".concat(zs," ").concat(e),"".concat(zs," ").concat(e," begins"),"".concat(zs," ").concat(e," ends"))};var jc={begin:RE,end:Tp};const ua=()=>{};function Ep(e){return typeof(e.getAttribute?e.getAttribute(Gr):null)=="string"}function NE(e){const t=e.getAttribute?e.getAttribute(gc):null,n=e.getAttribute?e.getAttribute(yc):null;return t&&n}function LE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ge.replacementClass)}function kE(){return ge.autoReplaceSvg===!0?fa.replace:fa[ge.autoReplaceSvg]||fa.replace}function jE(e){return Xe.createElementNS("http://www.w3.org/2000/svg",e)}function FE(e){return Xe.createElement(e)}function Cp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?jE:FE}=t;if(typeof e=="string")return Xe.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(a){r.setAttribute(a,e.attributes[a])}),(e.children||[]).forEach(function(a){r.appendChild(Cp(a,{ceFn:n}))}),r}function VE(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const fa={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(Cp(n),t)}),t.getAttribute(Gr)===null&&ge.keepOriginalSource){let n=Xe.createComment(VE(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Tc(t).indexOf(ge.replacementClass))return fa.replace(e);const r=new RegExp("".concat(ge.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const a=n[0].attributes.class.split(" ").reduce((o,c)=>(c===ge.replacementClass||c.match(r)?o.toSvg.push(c):o.toNode.push(c),o),{toNode:[],toSvg:[]});n[0].attributes.class=a.toSvg.join(" "),a.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",a.toNode.join(" "))}const i=n.map(a=>Ws(a)).join(`
|
|
580
|
-
`);t.setAttribute(Gr,""),t.innerHTML=i}};function Pp(e){e()}function Ap(e,t){const n=typeof t=="function"?t:ua;if(e.length===0)n();else{let r=Pp;ge.mutateApproach===YT&&(r=mr.requestAnimationFrame||Pp),r(()=>{const i=kE(),
|
|
581
|
-
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function sC(e){return Promise.all([Np(e,"::before"),Np(e,"::after")])}function oC(e){return e.parentNode!==document.head&&!~HT.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(pc)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Lp(e){if(zn)return new Promise((t,n)=>{const r=Ri(e.querySelectorAll("*")).filter(oC).map(sC),i=jc.begin("searchPseudoElements");
|
|
579
|
+
}`;function rp(){const e=qm,t=Km,n=ge.cssPrefix,r=ge.replacementClass;let i=lE;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),c=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(c,".".concat(r))}return i}let ip=!1;function Cc(){ge.autoAddCss&&!ip&&(rE(rp()),ip=!0)}var cE={mixout(){return{dom:{css:rp,insertCss:Cc}}},hooks(){return{beforeDOMElementCreation(){Cc()},beforeI2svg(){Cc()}}}};const Yn=mr||{};Yn[Gn]||(Yn[Gn]={}),Yn[Gn].styles||(Yn[Gn].styles={}),Yn[Gn].hooks||(Yn[Gn].hooks={}),Yn[Gn].shims||(Yn[Gn].shims=[]);var Pn=Yn[Gn];const sp=[],op=function(){Xe.removeEventListener("DOMContentLoaded",op),oa=1,sp.map(e=>e())};let oa=!1;zn&&(oa=(Xe.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Xe.readyState),oa||Xe.addEventListener("DOMContentLoaded",op));function uE(e){zn&&(oa?setTimeout(e,0):sp.push(e))}function Ws(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?np(e):"<".concat(t," ").concat(sE(n),">").concat(r.map(Ws).join(""),"</").concat(t,">")}function ap(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Pc=function(t,n,r,i){var o=Object.keys(t),a=o.length,c=n,u,d,h;for(r===void 0?(u=1,h=t[o[0]]):(u=0,h=r);u<a;u++)d=o[u],h=c(h,t[d],d,t);return h};function fE(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function Ac(e){const t=fE(e);return t.length===1?t[0].toString(16):null}function dE(e,t){const n=e.length;let r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function lp(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function Mc(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=lp(t);typeof Pn.hooks.addPack=="function"&&!r?Pn.hooks.addPack(e,lp(t)):Pn.styles[e]=Q(Q({},Pn.styles[e]||{}),i),e==="fas"&&Mc("fa",t)}const{styles:Us,shims:hE}=Pn,cp=Object.keys(xc),mE=cp.reduce((e,t)=>(e[t]=Object.keys(xc[t]),e),{});let Oc=null,up={},fp={},dp={},hp={},mp={};function pE(e){return~QT.indexOf(e)}function gE(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!pE(i)?i:null}const pp=()=>{const e=r=>Pc(Us,(i,o,a)=>(i[a]=Pc(o,r,{}),i),{});up=e((r,i,o)=>(i[3]&&(r[i[3]]=o),i[2]&&i[2].filter(c=>typeof c=="number").forEach(c=>{r[c.toString(16)]=o}),r)),fp=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(c=>typeof c=="string").forEach(c=>{r[c]=o}),r)),mp=e((r,i,o)=>{const a=i[2];return r[o]=o,a.forEach(c=>{r[c]=o}),r});const t="far"in Us||ge.autoFetchSvg,n=Pc(hE,(r,i)=>{const o=i[0];let a=i[1];const c=i[2];return a==="far"&&!t&&(a="fas"),typeof o=="string"&&(r.names[o]={prefix:a,iconName:c}),typeof o=="number"&&(r.unicodes[o.toString(16)]={prefix:a,iconName:c}),r},{names:{},unicodes:{}});dp=n.names,hp=n.unicodes,Oc=aa(ge.styleDefault,{family:ge.familyDefault})};nE(e=>{Oc=aa(e.styleDefault,{family:ge.familyDefault})}),pp();function _c(e,t){return(up[e]||{})[t]}function yE(e,t){return(fp[e]||{})[t]}function Yr(e,t){return(mp[e]||{})[t]}function gp(e){return dp[e]||{prefix:null,iconName:null}}function vE(e){const t=hp[e],n=_c("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function gr(){return Oc}const yp=()=>({prefix:null,iconName:null,rest:[]});function bE(e){let t=wt;const n=cp.reduce((r,i)=>(r[i]="".concat(ge.cssPrefix,"-").concat(i),r),{});return zm.forEach(r=>{(e.includes(n[r])||e.some(i=>mE[r].includes(i)))&&(t=r)}),t}function aa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=wt}=t,r=qT[n][e];if(n===ra&&!e)return"fad";const i=Qm[n][e]||Qm[n][r],o=e in Pn.styles?e:null;return i||o||null}function xE(e){let t=[],n=null;return e.forEach(r=>{const i=gE(ge.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function vp(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function la(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=hc.concat(LT),o=vp(e.filter(m=>i.includes(m))),a=vp(e.filter(m=>!hc.includes(m))),c=o.filter(m=>(r=m,!Um.includes(m))),[u=null]=c,d=bE(o),h=Q(Q({},xE(a)),{},{prefix:aa(u,{family:d})});return Q(Q(Q({},h),EE({values:e,family:d,styles:Us,config:ge,canonical:h,givenPrefix:r})),wE(n,r,h))}function wE(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const o=t==="fa"?gp(i):{},a=Yr(r,i);return i=o.iconName||a||i,r=o.prefix||r,r==="far"&&!Us.far&&Us.fas&&!ge.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const SE=zm.filter(e=>e!==wt||e!==ra),TE=Object.keys(dc).filter(e=>e!==wt).map(e=>Object.keys(dc[e])).flat();function EE(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:o={},config:a={}}=e,c=n===ra,u=t.includes("fa-duotone")||t.includes("fad"),d=a.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!c&&(u||d||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&SE.includes(n)&&(Object.keys(o).find(p=>TE.includes(p))||a.autoFetchSvg)){const p=MT.get(n).defaultShortPrefixId;r.prefix=p,r.iconName=Yr(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||i==="fa")&&(r.prefix=gr()||"fas"),r}class CE{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach(o=>{this.definitions[o]=Q(Q({},this.definitions[o]||{}),i[o]),Mc(o,i[o]);const a=xc[wt][o];a&&Mc(a,i[o]),pp()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(i=>{const{prefix:o,iconName:a,icon:c}=r[i],u=c[2];t[o]||(t[o]={}),u.length>0&&u.forEach(d=>{typeof d=="string"&&(t[o][d]=c)}),t[o][a]=c}),t}}let bp=[],Ni={};const Li={},PE=Object.keys(Li);function AE(e,t){let{mixoutsTo:n}=t;return bp=e,Ni={},Object.keys(Li).forEach(r=>{PE.indexOf(r)===-1&&delete Li[r]}),bp.forEach(r=>{const i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(o=>{typeof i[o]=="function"&&(n[o]=i[o]),typeof i[o]=="object"&&Object.keys(i[o]).forEach(a=>{n[o]||(n[o]={}),n[o][a]=i[o][a]})}),r.hooks){const o=r.hooks();Object.keys(o).forEach(a=>{Ni[a]||(Ni[a]=[]),Ni[a].push(o[a])})}r.provides&&r.provides(Li)}),n}function Ic(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(Ni[e]||[]).forEach(a=>{t=a.apply(null,[t,...r])}),t}function Hr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Ni[e]||[]).forEach(o=>{o.apply(null,n)})}function yr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Li[e]?Li[e].apply(null,t):void 0}function Dc(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||gr();if(t)return t=Yr(n,t)||t,ap(xp.definitions,n,t)||ap(Pn.styles,n,t)}const xp=new CE,zt={noAuto:()=>{ge.autoReplaceSvg=!1,ge.observeMutations=!1,Hr("noAuto")},config:ge,dom:{i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return zn?(Hr("beforeI2svg",e),yr("pseudoElements2svg",e),yr("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;ge.autoReplaceSvg===!1&&(ge.autoReplaceSvg=!0),ge.observeMutations=!0,uE(()=>{ME({autoReplaceSvgRoot:t}),Hr("watch",e)})}},parse:{icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Yr(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=aa(e[0]);return{prefix:n,iconName:Yr(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(ge.cssPrefix,"-"))>-1||e.match(KT))){const t=la(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||gr(),iconName:Yr(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=gr();return{prefix:t,iconName:Yr(t,e)||e}}}},library:xp,findIconDefinition:Dc,toHtml:Ws},ME=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Xe}=e;(Object.keys(Pn.styles).length>0||ge.autoFetchSvg)&&zn&&ge.autoReplaceSvg&&zt.dom.i2svg({node:t})};function ca(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Ws(n))}}),Object.defineProperty(e,"node",{get:function(){if(!zn)return;const n=Xe.createElement("div");return n.innerHTML=e.html,n.children}}),e}function OE(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(Ec(a)&&n.found&&!r.found){const{width:c,height:u}=n,d={x:c/u/2,y:.5};i.style=sa(Q(Q({},o),{},{"transform-origin":"".concat(d.x+a.x/16,"em ").concat(d.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function _E(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;const a=o===!0?"".concat(t,"-").concat(ge.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Q(Q({},i),{},{id:a}),children:r}]}]}function $c(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:a,title:c,maskId:u,titleId:d,extra:h,watchable:m=!1}=e,{width:p,height:y}=n.found?n:t,S=$T.includes(r),b=[ge.replacementClass,i?"".concat(ge.cssPrefix,"-").concat(i):""].filter(P=>h.classes.indexOf(P)===-1).filter(P=>P!==""||!!P).concat(h.classes).join(" ");let E={children:[],attributes:Q(Q({},h.attributes),{},{"data-prefix":r,"data-icon":i,class:b,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat(y)})};const w=S&&!~h.classes.indexOf("fa-fw")?{width:"".concat(p/y*16*.0625,"em")}:{};m&&(E.attributes[Gr]=""),c&&(E.children.push({tag:"title",attributes:{id:E.attributes["aria-labelledby"]||"title-".concat(d||Bs())},children:[c]}),delete E.attributes.title);const C=Q(Q({},E),{},{prefix:r,iconName:i,main:t,mask:n,maskId:u,transform:o,symbol:a,styles:Q(Q({},w),h.styles)}),{children:M,attributes:$}=n.found&&t.found?yr("generateAbstractMask",C)||{children:[],attributes:{}}:yr("generateAbstractIcon",C)||{children:[],attributes:{}};return C.children=M,C.attributes=$,a?_E(C):OE(C)}function wp(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:c=!1}=e,u=Q(Q(Q({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});c&&(u[Gr]="");const d=Q({},a.styles);Ec(i)&&(d.transform=aE({transform:i,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);const h=sa(d);h.length>0&&(u.style=h);const m=[];return m.push({tag:"span",attributes:u,children:[t]}),o&&m.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),m}function IE(e){const{content:t,title:n,extra:r}=e,i=Q(Q(Q({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=sa(r.styles);o.length>0&&(i.style=o);const a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}const{styles:Rc}=Pn;function Nc(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return Array.isArray(r)?i={tag:"g",attributes:{class:"".concat(ge.cssPrefix,"-").concat(Sc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ge.cssPrefix,"-").concat(Sc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ge.cssPrefix,"-").concat(Sc.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const DE={found:!1,width:512,height:512};function $E(e,t){!Zm&&!ge.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Lc(e,t){let n=t;return t==="fa"&&ge.styleDefault!==null&&(t=gr()),new Promise((r,i)=>{if(n==="fa"){const o=gp(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&Rc[t]&&Rc[t][e]){const o=Rc[t][e];return r(Nc(o))}$E(e,t),r(Q(Q({},DE),{},{icon:ge.showMissingIcons&&e?yr("missingIconAbstract")||{}:{}}))})}const Sp=()=>{},kc=ge.measurePerformance&&na&&na.mark&&na.measure?na:{mark:Sp,measure:Sp},zs='FA "6.7.2"',RE=e=>(kc.mark("".concat(zs," ").concat(e," begins")),()=>Tp(e)),Tp=e=>{kc.mark("".concat(zs," ").concat(e," ends")),kc.measure("".concat(zs," ").concat(e),"".concat(zs," ").concat(e," begins"),"".concat(zs," ").concat(e," ends"))};var jc={begin:RE,end:Tp};const ua=()=>{};function Ep(e){return typeof(e.getAttribute?e.getAttribute(Gr):null)=="string"}function NE(e){const t=e.getAttribute?e.getAttribute(gc):null,n=e.getAttribute?e.getAttribute(yc):null;return t&&n}function LE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ge.replacementClass)}function kE(){return ge.autoReplaceSvg===!0?fa.replace:fa[ge.autoReplaceSvg]||fa.replace}function jE(e){return Xe.createElementNS("http://www.w3.org/2000/svg",e)}function FE(e){return Xe.createElement(e)}function Cp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?jE:FE}=t;if(typeof e=="string")return Xe.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){r.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){r.appendChild(Cp(o,{ceFn:n}))}),r}function VE(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const fa={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(Cp(n),t)}),t.getAttribute(Gr)===null&&ge.keepOriginalSource){let n=Xe.createComment(VE(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Tc(t).indexOf(ge.replacementClass))return fa.replace(e);const r=new RegExp("".concat(ge.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((a,c)=>(c===ge.replacementClass||c.match(r)?a.toSvg.push(c):a.toNode.push(c),a),{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}const i=n.map(o=>Ws(o)).join(`
|
|
580
|
+
`);t.setAttribute(Gr,""),t.innerHTML=i}};function Pp(e){e()}function Ap(e,t){const n=typeof t=="function"?t:ua;if(e.length===0)n();else{let r=Pp;ge.mutateApproach===YT&&(r=mr.requestAnimationFrame||Pp),r(()=>{const i=kE(),o=jc.begin("mutate");e.map(i),o(),n()})}}let Fc=!1;function Mp(){Fc=!0}function Vc(){Fc=!1}let da=null;function Op(e){if(!Vm||!ge.observeMutations)return;const{treeCallback:t=ua,nodeCallback:n=ua,pseudoElementsCallback:r=ua,observeMutationsRoot:i=Xe}=e;da=new Vm(o=>{if(Fc)return;const a=gr();Ri(o).forEach(c=>{if(c.type==="childList"&&c.addedNodes.length>0&&!Ep(c.addedNodes[0])&&(ge.searchPseudoElements&&r(c.target),t(c.target)),c.type==="attributes"&&c.target.parentNode&&ge.searchPseudoElements&&r(c.target.parentNode),c.type==="attributes"&&Ep(c.target)&&~JT.indexOf(c.attributeName))if(c.attributeName==="class"&&NE(c.target)){const{prefix:u,iconName:d}=la(Tc(c.target));c.target.setAttribute(gc,u||a),d&&c.target.setAttribute(yc,d)}else LE(c.target)&&n(c.target)})}),zn&&da.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function BE(){da&&da.disconnect()}function WE(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,i)=>{const o=i.split(":"),a=o[0],c=o.slice(1);return a&&c.length>0&&(r[a]=c.join(":").trim()),r},{})),n}function UE(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=la(Tc(e));return i.prefix||(i.prefix=gr()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=yE(i.prefix,e.innerText)||_c(i.prefix,Ac(e.innerText))),!i.iconName&&ge.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function zE(e){const t=Ri(e.attributes).reduce((i,o)=>(i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return ge.autoA11y&&(n?t["aria-labelledby"]="".concat(ge.replacementClass,"-title-").concat(r||Bs()):(t["aria-hidden"]="true",t.focusable="false")),t}function GE(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Cn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function _p(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=UE(e),o=zE(e),a=Ic("parseNodeAttributes",{},e);let c=t.styleParser?WE(e):[];return Q({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Cn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:c,attributes:o}},a)}const{styles:YE}=Pn;function Ip(e){const t=ge.autoReplaceSvg==="nest"?_p(e,{styleParser:!1}):_p(e);return~t.extra.classes.indexOf(ep)?yr("generateLayersText",e,t):yr("generateSvgReplacementMutation",e,t)}function HE(){return[..._T,...hc]}function Dp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!zn)return Promise.resolve();const n=Xe.documentElement.classList,r=h=>n.add("".concat(Xm,"-").concat(h)),i=h=>n.remove("".concat(Xm,"-").concat(h)),o=ge.autoFetchSvg?HE():Um.concat(Object.keys(YE));o.includes("fa")||o.push("fa");const a=[".".concat(ep,":not([").concat(Gr,"])")].concat(o.map(h=>".".concat(h,":not([").concat(Gr,"])"))).join(", ");if(a.length===0)return Promise.resolve();let c=[];try{c=Ri(e.querySelectorAll(a))}catch{}if(c.length>0)r("pending"),i("complete");else return Promise.resolve();const u=jc.begin("onTree"),d=c.reduce((h,m)=>{try{const p=Ip(m);p&&h.push(p)}catch(p){Zm||p.name==="MissingIcon"&&console.error(p)}return h},[]);return new Promise((h,m)=>{Promise.all(d).then(p=>{Ap(p,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),u(),h()})}).catch(p=>{u(),m(p)})})}function qE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ip(e).then(n=>{n&&Ap([n],t)})}function KE(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:Dc(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:Dc(i||{})),e(r,Q(Q({},n),{},{mask:i}))}}const XE=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Cn,symbol:r=!1,mask:i=null,maskId:o=null,title:a=null,titleId:c=null,classes:u=[],attributes:d={},styles:h={}}=t;if(!e)return;const{prefix:m,iconName:p,icon:y}=e;return ca(Q({type:"icon"},e),()=>(Hr("beforeDOMElementCreation",{iconDefinition:e,params:t}),ge.autoA11y&&(a?d["aria-labelledby"]="".concat(ge.replacementClass,"-title-").concat(c||Bs()):(d["aria-hidden"]="true",d.focusable="false")),$c({icons:{main:Nc(y),mask:i?Nc(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:m,iconName:p,transform:Q(Q({},Cn),n),symbol:r,title:a,maskId:o,titleId:c,extra:{attributes:d,styles:h,classes:u}})))};var ZE={mixout(){return{icon:KE(XE)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Dp,e.nodeCallback=qE,e}}},provides(e){e.i2svg=function(t){const{node:n=Xe,callback:r=()=>{}}=t;return Dp(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:i,titleId:o,prefix:a,transform:c,symbol:u,mask:d,maskId:h,extra:m}=n;return new Promise((p,y)=>{Promise.all([Lc(r,a),d.iconName?Lc(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(S=>{let[b,E]=S;p([t,$c({icons:{main:b,mask:E},prefix:a,iconName:r,transform:c,symbol:u,maskId:h,title:i,titleId:o,extra:m,watchable:!0})])}).catch(y)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:i,transform:o,styles:a}=t;const c=sa(a);c.length>0&&(r.style=c);let u;return Ec(o)&&(u=yr("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(u||i.icon),{children:n,attributes:r}}}},JE={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return ca({type:"layer"},()=>{Hr("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(i=>{Array.isArray(i)?i.map(o=>{r=r.concat(o.abstract)}):r=r.concat(i.abstract)}),[{tag:"span",attributes:{class:["".concat(ge.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},QE={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:o={}}=t;return ca({type:"counter",content:e},()=>(Hr("beforeDOMElementCreation",{content:e,params:t}),IE({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(ge.cssPrefix,"-layers-counter"),...r]}})))}}}},eC={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Cn,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return ca({type:"text",content:e},()=>(Hr("beforeDOMElementCreation",{content:e,params:t}),wp({content:e,transform:Q(Q({},Cn),n),title:r,extra:{attributes:o,styles:a,classes:["".concat(ge.cssPrefix,"-layers-text"),...i]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:i,extra:o}=n;let a=null,c=null;if(Bm){const u=parseInt(getComputedStyle(t).fontSize,10),d=t.getBoundingClientRect();a=d.width/u,c=d.height/u}return ge.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,wp({content:t.innerHTML,width:a,height:c,transform:i,title:r,extra:o,watchable:!0})])}}};const tC=new RegExp('"',"ug"),$p=[1105920,1112319],Rp=Q(Q(Q(Q({},{FontAwesome:{normal:"fas",400:"fas"}}),AT),zT),kT),Bc=Object.keys(Rp).reduce((e,t)=>(e[t.toLowerCase()]=Rp[t],e),{}),nC=Object.keys(Bc).reduce((e,t)=>{const n=Bc[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function rC(e){const t=e.replace(tC,""),n=dE(t,0),r=n>=$p[0]&&n<=$p[1],i=t.length===2?t[0]===t[1]:!1;return{value:Ac(i?t[0]:t),isSecondary:r||i}}function iC(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Bc[n]||{})[i]||nC[n]}function Np(e,t){const n="".concat(GT).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const a=Ri(e.children).filter(p=>p.getAttribute(pc)===t)[0],c=mr.getComputedStyle(e,t),u=c.getPropertyValue("font-family"),d=u.match(XT),h=c.getPropertyValue("font-weight"),m=c.getPropertyValue("content");if(a&&!d)return e.removeChild(a),r();if(d&&m!=="none"&&m!==""){const p=c.getPropertyValue("content");let y=iC(u,h);const{value:S,isSecondary:b}=rC(p),E=d[0].startsWith("FontAwesome");let w=_c(y,S),C=w;if(E){const M=vE(S);M.iconName&&M.prefix&&(w=M.iconName,y=M.prefix)}if(w&&!b&&(!a||a.getAttribute(gc)!==y||a.getAttribute(yc)!==C)){e.setAttribute(n,C),a&&e.removeChild(a);const M=GE(),{extra:$}=M;$.attributes[pc]=t,Lc(w,y).then(P=>{const R=$c(Q(Q({},M),{},{icons:{main:P,mask:yp()},prefix:y,iconName:C,extra:$,watchable:!0})),k=Xe.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(k,e.firstChild):e.appendChild(k),k.outerHTML=R.map(j=>Ws(j)).join(`
|
|
581
|
+
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function sC(e){return Promise.all([Np(e,"::before"),Np(e,"::after")])}function oC(e){return e.parentNode!==document.head&&!~HT.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(pc)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Lp(e){if(zn)return new Promise((t,n)=>{const r=Ri(e.querySelectorAll("*")).filter(oC).map(sC),i=jc.begin("searchPseudoElements");Mp(),Promise.all(r).then(()=>{i(),Vc(),t()}).catch(()=>{i(),Vc(),n()})})}var aC={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Lp,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=Xe}=t;ge.searchPseudoElements&&Lp(n)}}};let kp=!1;var lC={mixout(){return{dom:{unwatch(){Mp(),kp=!0}}}},hooks(){return{bootstrap(){Op(Ic("mutationObserverCallbacks",{}))},noAuto(){BE()},watch(e){const{observeMutationsRoot:t}=e;kp?Vc():Op(Ic("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const jp=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const i=r.toLowerCase().split("-"),o=i[0];let a=i.slice(1).join("-");if(o&&a==="h")return n.flipX=!0,n;if(o&&a==="v")return n.flipY=!0,n;if(a=parseFloat(a),isNaN(a))return n;switch(o){case"grow":n.size=n.size+a;break;case"shrink":n.size=n.size-a;break;case"left":n.x=n.x-a;break;case"right":n.x=n.x+a;break;case"up":n.y=n.y-a;break;case"down":n.y=n.y+a;break;case"rotate":n.rotate=n.rotate+a;break}return n},t)};var cC={mixout(){return{parse:{transform:e=>jp(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=jp(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:i,iconWidth:o}=t;const a={transform:"translate(".concat(i/2," 256)")},c="translate(".concat(r.x*32,", ").concat(r.y*32,") "),u="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),d="rotate(".concat(r.rotate," 0 0)"),h={transform:"".concat(c," ").concat(u," ").concat(d)},m={transform:"translate(".concat(o/2*-1," -256)")},p={outer:a,inner:h,path:m};return{tag:"g",attributes:Q({},p.outer),children:[{tag:"g",attributes:Q({},p.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:Q(Q({},n.icon.attributes),p.path)}]}]}}}};const Wc={x:0,y:0,width:"100%",height:"100%"};function Fp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function uC(e){return e.tag==="g"?e.children:[e]}var fC={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?la(n.split(" ").map(i=>i.trim())):yp();return r.prefix||(r.prefix=gr()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:i,mask:o,maskId:a,transform:c}=t;const{width:u,icon:d}=i,{width:h,icon:m}=o,p=oE({transform:c,containerWidth:h,iconWidth:u}),y={tag:"rect",attributes:Q(Q({},Wc),{},{fill:"white"})},S=d.children?{children:d.children.map(Fp)}:{},b={tag:"g",attributes:Q({},p.inner),children:[Fp(Q({tag:d.tag,attributes:Q(Q({},d.attributes),p.path)},S))]},E={tag:"g",attributes:Q({},p.outer),children:[b]},w="mask-".concat(a||Bs()),C="clip-".concat(a||Bs()),M={tag:"mask",attributes:Q(Q({},Wc),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[y,E]},$={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:uC(m)},M]};return n.push($,{tag:"rect",attributes:Q({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(w,")")},Wc)}),{children:n,attributes:r}}}},dC={provides(e){let t=!1;mr.matchMedia&&(t=mr.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:Q(Q({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const o=Q(Q({},i),{},{attributeName:"opacity"}),a={tag:"circle",attributes:Q(Q({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:Q(Q({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Q(Q({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(a),n.push({tag:"path",attributes:Q(Q({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Q(Q({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:Q(Q({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Q(Q({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},hC={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},mC=[cE,ZE,JE,QE,eC,aC,lC,cC,fC,dC,hC];AE(mC,{mixoutsTo:zt}),zt.noAuto,zt.config,zt.library,zt.dom;const Uc=zt.parse;zt.findIconDefinition,zt.toHtml;const pC=zt.icon;zt.layer,zt.text,zt.counter;var ha={exports:{}},ma={exports:{}},Fe={};/** @license React v16.13.1
|
|
582
582
|
* react-is.production.min.js
|
|
583
583
|
*
|
|
584
584
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
585
585
|
*
|
|
586
586
|
* This source code is licensed under the MIT license found in the
|
|
587
587
|
* LICENSE file in the root directory of this source tree.
|
|
588
|
-
*/var Vp;function gC(){if(Vp)return Fe;Vp=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,
|
|
588
|
+
*/var Vp;function gC(){if(Vp)return Fe;Vp=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function M(P){if(typeof P=="object"&&P!==null){var R=P.$$typeof;switch(R){case t:switch(P=P.type,P){case u:case d:case r:case o:case i:case m:return P;default:switch(P=P&&P.$$typeof,P){case c:case h:case S:case y:case a:return P;default:return R}}case n:return R}}}function $(P){return M(P)===d}return Fe.AsyncMode=u,Fe.ConcurrentMode=d,Fe.ContextConsumer=c,Fe.ContextProvider=a,Fe.Element=t,Fe.ForwardRef=h,Fe.Fragment=r,Fe.Lazy=S,Fe.Memo=y,Fe.Portal=n,Fe.Profiler=o,Fe.StrictMode=i,Fe.Suspense=m,Fe.isAsyncMode=function(P){return $(P)||M(P)===u},Fe.isConcurrentMode=$,Fe.isContextConsumer=function(P){return M(P)===c},Fe.isContextProvider=function(P){return M(P)===a},Fe.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===t},Fe.isForwardRef=function(P){return M(P)===h},Fe.isFragment=function(P){return M(P)===r},Fe.isLazy=function(P){return M(P)===S},Fe.isMemo=function(P){return M(P)===y},Fe.isPortal=function(P){return M(P)===n},Fe.isProfiler=function(P){return M(P)===o},Fe.isStrictMode=function(P){return M(P)===i},Fe.isSuspense=function(P){return M(P)===m},Fe.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===r||P===d||P===o||P===i||P===m||P===p||typeof P=="object"&&P!==null&&(P.$$typeof===S||P.$$typeof===y||P.$$typeof===a||P.$$typeof===c||P.$$typeof===h||P.$$typeof===E||P.$$typeof===w||P.$$typeof===C||P.$$typeof===b)},Fe.typeOf=M,Fe}var Ve={};/** @license React v16.13.1
|
|
589
589
|
* react-is.development.js
|
|
590
590
|
*
|
|
591
591
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
592
592
|
*
|
|
593
593
|
* This source code is licensed under the MIT license found in the
|
|
594
594
|
* LICENSE file in the root directory of this source tree.
|
|
595
|
-
*/var Bp;function yC(){return Bp||(Bp=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,
|
|
595
|
+
*/var Bp;function yC(){return Bp||(Bp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function M(se){return typeof se=="string"||typeof se=="function"||se===r||se===d||se===o||se===i||se===m||se===p||typeof se=="object"&&se!==null&&(se.$$typeof===S||se.$$typeof===y||se.$$typeof===a||se.$$typeof===c||se.$$typeof===h||se.$$typeof===E||se.$$typeof===w||se.$$typeof===C||se.$$typeof===b)}function $(se){if(typeof se=="object"&&se!==null){var pe=se.$$typeof;switch(pe){case t:var ke=se.type;switch(ke){case u:case d:case r:case o:case i:case m:return ke;default:var ft=ke&&ke.$$typeof;switch(ft){case c:case h:case S:case y:case a:return ft;default:return pe}}case n:return pe}}}var P=u,R=d,k=c,j=a,z=t,Z=h,te=r,ce=S,ve=y,fe=n,ee=o,ne=i,N=m,W=!1;function q(se){return W||(W=!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.")),O(se)||$(se)===u}function O(se){return $(se)===d}function V(se){return $(se)===c}function J(se){return $(se)===a}function re(se){return typeof se=="object"&&se!==null&&se.$$typeof===t}function ae(se){return $(se)===h}function G(se){return $(se)===r}function ie(se){return $(se)===S}function he(se){return $(se)===y}function ue(se){return $(se)===n}function ye(se){return $(se)===o}function xe(se){return $(se)===i}function Le(se){return $(se)===m}Ve.AsyncMode=P,Ve.ConcurrentMode=R,Ve.ContextConsumer=k,Ve.ContextProvider=j,Ve.Element=z,Ve.ForwardRef=Z,Ve.Fragment=te,Ve.Lazy=ce,Ve.Memo=ve,Ve.Portal=fe,Ve.Profiler=ee,Ve.StrictMode=ne,Ve.Suspense=N,Ve.isAsyncMode=q,Ve.isConcurrentMode=O,Ve.isContextConsumer=V,Ve.isContextProvider=J,Ve.isElement=re,Ve.isForwardRef=ae,Ve.isFragment=G,Ve.isLazy=ie,Ve.isMemo=he,Ve.isPortal=ue,Ve.isProfiler=ye,Ve.isStrictMode=xe,Ve.isSuspense=Le,Ve.isValidElementType=M,Ve.typeOf=$}()),Ve}var Wp;function Up(){return Wp||(Wp=1,process.env.NODE_ENV==="production"?ma.exports=gC():ma.exports=yC()),ma.exports}/*
|
|
596
596
|
object-assign
|
|
597
597
|
(c) Sindre Sorhus
|
|
598
598
|
@license MIT
|
|
599
|
-
*/var zc,zp;function vC(){if(zp)return zc;zp=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(
|
|
600
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
601
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _C(e){var t,n=e.beat,r=e.fade,i=e.beatFade,
|
|
599
|
+
*/var zc,zp;function vC(){if(zp)return zc;zp=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(a).map(function(h){return a[h]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return zc=i()?Object.assign:function(o,a){for(var c,u=r(o),d,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var m in c)t.call(c,m)&&(u[m]=c[m]);if(e){d=e(c);for(var p=0;p<d.length;p++)n.call(c,d[p])&&(u[d[p]]=c[d[p]])}}return u},zc}var Gc,Gp;function Yc(){if(Gp)return Gc;Gp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Gc=e,Gc}var Hc,Yp;function Hp(){return Yp||(Yp=1,Hc=Function.call.bind(Object.prototype.hasOwnProperty)),Hc}var qc,qp;function bC(){if(qp)return qc;qp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Yc(),n={},r=Hp();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,c,u,d){if(process.env.NODE_ENV!=="production"){for(var h in o)if(r(o,h)){var m;try{if(typeof o[h]!="function"){var p=Error((u||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}m=o[h](a,h,u,c,null,t)}catch(S){m=S}if(m&&!(m instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+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 y=d?d():"";e("Failed "+c+" type: "+m.message+(y??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},qc=i,qc}var Kc,Kp;function xC(){if(Kp)return Kc;Kp=1;var e=Up(),t=vC(),n=Yc(),r=Hp(),i=bC(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return Kc=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(O){var V=O&&(d&&O[d]||O[h]);if(typeof V=="function")return V}var p="<<anonymous>>",y={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:M,element:$(),elementType:P(),instanceOf:R,node:Z(),objectOf:j,oneOf:k,oneOfType:z,shape:ce,exact:ve};function S(O,V){return O===V?O!==0||1/O===1/V:O!==O&&V!==V}function b(O,V){this.message=O,this.data=V&&typeof V=="object"?V:{},this.stack=""}b.prototype=Error.prototype;function E(O){if(process.env.NODE_ENV!=="production")var V={},J=0;function re(G,ie,he,ue,ye,xe,Le){if(ue=ue||p,xe=xe||he,Le!==n){if(u){var se=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 se.name="Invariant Violation",se}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var pe=ue+":"+he;!V[pe]&&J<3&&(o("You are manually calling a React.PropTypes validation function for the `"+xe+"` prop on `"+ue+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),V[pe]=!0,J++)}}return ie[he]==null?G?ie[he]===null?new b("The "+ye+" `"+xe+"` is marked as required "+("in `"+ue+"`, but its value is `null`.")):new b("The "+ye+" `"+xe+"` is marked as required in "+("`"+ue+"`, but its value is `undefined`.")):null:O(ie,he,ue,ye,xe)}var ae=re.bind(null,!1);return ae.isRequired=re.bind(null,!0),ae}function w(O){function V(J,re,ae,G,ie,he){var ue=J[re],ye=ne(ue);if(ye!==O){var xe=N(ue);return new b("Invalid "+G+" `"+ie+"` of type "+("`"+xe+"` supplied to `"+ae+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return E(V)}function C(){return E(a)}function M(O){function V(J,re,ae,G,ie){if(typeof O!="function")return new b("Property `"+ie+"` of component `"+ae+"` has invalid PropType notation inside arrayOf.");var he=J[re];if(!Array.isArray(he)){var ue=ne(he);return new b("Invalid "+G+" `"+ie+"` of type "+("`"+ue+"` supplied to `"+ae+"`, expected an array."))}for(var ye=0;ye<he.length;ye++){var xe=O(he,ye,ae,G,ie+"["+ye+"]",n);if(xe instanceof Error)return xe}return null}return E(V)}function $(){function O(V,J,re,ae,G){var ie=V[J];if(!c(ie)){var he=ne(ie);return new b("Invalid "+ae+" `"+G+"` of type "+("`"+he+"` supplied to `"+re+"`, expected a single ReactElement."))}return null}return E(O)}function P(){function O(V,J,re,ae,G){var ie=V[J];if(!e.isValidElementType(ie)){var he=ne(ie);return new b("Invalid "+ae+" `"+G+"` of type "+("`"+he+"` supplied to `"+re+"`, expected a single ReactElement type."))}return null}return E(O)}function R(O){function V(J,re,ae,G,ie){if(!(J[re]instanceof O)){var he=O.name||p,ue=q(J[re]);return new b("Invalid "+G+" `"+ie+"` of type "+("`"+ue+"` supplied to `"+ae+"`, expected ")+("instance of `"+he+"`."))}return null}return E(V)}function k(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function V(J,re,ae,G,ie){for(var he=J[re],ue=0;ue<O.length;ue++)if(S(he,O[ue]))return null;var ye=JSON.stringify(O,function(Le,se){var pe=N(se);return pe==="symbol"?String(se):se});return new b("Invalid "+G+" `"+ie+"` of value `"+String(he)+"` "+("supplied to `"+ae+"`, expected one of "+ye+"."))}return E(V)}function j(O){function V(J,re,ae,G,ie){if(typeof O!="function")return new b("Property `"+ie+"` of component `"+ae+"` has invalid PropType notation inside objectOf.");var he=J[re],ue=ne(he);if(ue!=="object")return new b("Invalid "+G+" `"+ie+"` of type "+("`"+ue+"` supplied to `"+ae+"`, expected an object."));for(var ye in he)if(r(he,ye)){var xe=O(he,ye,ae,G,ie+"."+ye,n);if(xe instanceof Error)return xe}return null}return E(V)}function z(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var V=0;V<O.length;V++){var J=O[V];if(typeof J!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+W(J)+" at index "+V+"."),a}function re(ae,G,ie,he,ue){for(var ye=[],xe=0;xe<O.length;xe++){var Le=O[xe],se=Le(ae,G,ie,he,ue,n);if(se==null)return null;se.data&&r(se.data,"expectedType")&&ye.push(se.data.expectedType)}var pe=ye.length>0?", expected one of type ["+ye.join(", ")+"]":"";return new b("Invalid "+he+" `"+ue+"` supplied to "+("`"+ie+"`"+pe+"."))}return E(re)}function Z(){function O(V,J,re,ae,G){return fe(V[J])?null:new b("Invalid "+ae+" `"+G+"` supplied to "+("`"+re+"`, expected a ReactNode."))}return E(O)}function te(O,V,J,re,ae){return new b((O||"React class")+": "+V+" type `"+J+"."+re+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ae+"`.")}function ce(O){function V(J,re,ae,G,ie){var he=J[re],ue=ne(he);if(ue!=="object")return new b("Invalid "+G+" `"+ie+"` of type `"+ue+"` "+("supplied to `"+ae+"`, expected `object`."));for(var ye in O){var xe=O[ye];if(typeof xe!="function")return te(ae,G,ie,ye,N(xe));var Le=xe(he,ye,ae,G,ie+"."+ye,n);if(Le)return Le}return null}return E(V)}function ve(O){function V(J,re,ae,G,ie){var he=J[re],ue=ne(he);if(ue!=="object")return new b("Invalid "+G+" `"+ie+"` of type `"+ue+"` "+("supplied to `"+ae+"`, expected `object`."));var ye=t({},J[re],O);for(var xe in ye){var Le=O[xe];if(r(O,xe)&&typeof Le!="function")return te(ae,G,ie,xe,N(Le));if(!Le)return new b("Invalid "+G+" `"+ie+"` key `"+xe+"` supplied to `"+ae+"`.\nBad object: "+JSON.stringify(J[re],null," ")+`
|
|
600
|
+
Valid keys: `+JSON.stringify(Object.keys(O),null," "));var se=Le(he,xe,ae,G,ie+"."+xe,n);if(se)return se}return null}return E(V)}function fe(O){switch(typeof O){case"number":case"string":case"undefined":return!0;case"boolean":return!O;case"object":if(Array.isArray(O))return O.every(fe);if(O===null||c(O))return!0;var V=m(O);if(V){var J=V.call(O),re;if(V!==O.entries){for(;!(re=J.next()).done;)if(!fe(re.value))return!1}else for(;!(re=J.next()).done;){var ae=re.value;if(ae&&!fe(ae[1]))return!1}}else return!1;return!0;default:return!1}}function ee(O,V){return O==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function ne(O){var V=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":ee(V,O)?"symbol":V}function N(O){if(typeof O>"u"||O===null)return""+O;var V=ne(O);if(V==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return V}function W(O){var V=N(O);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function q(O){return!O.constructor||!O.constructor.name?p:O.constructor.name}return y.checkPropTypes=i,y.resetWarningCache=i.resetWarningCache,y.PropTypes=y,y},Kc}var Xc,Xp;function wC(){if(Xp)return Xc;Xp=1;var e=Yc();function t(){}function n(){}return n.resetWarningCache=t,Xc=function(){function r(a,c,u,d,h,m){if(m!==e){var p=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 p.name="Invariant Violation",p}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Xc}var Zp;function SC(){if(Zp)return ha.exports;if(Zp=1,process.env.NODE_ENV!=="production"){var e=Up(),t=!0;ha.exports=xC()(e.isElement,t)}else ha.exports=wC()();return ha.exports}var TC=SC();const Ie=_m(TC);function Jp(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 An(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jp(Object(n),!0).forEach(function(r){ki(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pa(e){"@babel/helpers - typeof";return pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pa(e)}function ki(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function CC(e,t){if(e==null)return{};var n=EC(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zc(e){return PC(e)||AC(e)||MC(e)||OC()}function PC(e){if(Array.isArray(e))return Jc(e)}function AC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MC(e,t){if(e){if(typeof e=="string")return Jc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jc(e,t)}}function Jc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function OC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
601
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _C(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,c=e.flash,u=e.spin,d=e.spinPulse,h=e.spinReverse,m=e.pulse,p=e.fixedWidth,y=e.inverse,S=e.border,b=e.listItem,E=e.flip,w=e.size,C=e.rotation,M=e.pull,$=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":c,"fa-spin":u,"fa-spin-reverse":h,"fa-spin-pulse":d,"fa-pulse":m,"fa-fw":p,"fa-inverse":y,"fa-border":S,"fa-li":b,"fa-flip":E===!0,"fa-flip-horizontal":E==="horizontal"||E==="both","fa-flip-vertical":E==="vertical"||E==="both"},ki(t,"fa-".concat(w),typeof w<"u"&&w!==null),ki(t,"fa-rotate-".concat(C),typeof C<"u"&&C!==null&&C!==0),ki(t,"fa-pull-".concat(M),typeof M<"u"&&M!==null),ki(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys($).map(function(P){return $[P]?P:null}).filter(function(P){return P})}function IC(e){return e=e-0,e===e}function Qp(e){return IC(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var DC=["style"];function $C(e){return e.charAt(0).toUpperCase()+e.slice(1)}function RC(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=Qp(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[$C(i)]=o:t[i]=o,t},{})}function eg(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(u){return eg(e,u)}),i=Object.keys(t.attributes||{}).reduce(function(u,d){var h=t.attributes[d];switch(d){case"class":u.attrs.className=h,delete t.attributes.class;break;case"style":u.attrs.style=RC(h);break;default:d.indexOf("aria-")===0||d.indexOf("data-")===0?u.attrs[d.toLowerCase()]=h:u.attrs[Qp(d)]=h}return u},{attrs:{}}),o=n.style,a=o===void 0?{}:o,c=CC(n,DC);return i.attrs.style=An(An({},i.attrs.style),a),e.apply(void 0,[t.tag,An(An({},i.attrs),c)].concat(Zc(r)))}var tg=!1;try{tg=process.env.NODE_ENV==="production"}catch{}function NC(){if(!tg&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function ng(e){if(e&&pa(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Uc.icon)return Uc.icon(e);if(e===null)return null;if(e&&pa(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Qc(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?ki({},e,t):{}}var rg={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},De=I.forwardRef(function(e,t){var n=An(An({},rg),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,c=n.title,u=n.titleId,d=n.maskId,h=ng(r),m=Qc("classes",[].concat(Zc(_C(n)),Zc((a||"").split(" ")))),p=Qc("transform",typeof n.transform=="string"?Uc.transform(n.transform):n.transform),y=Qc("mask",ng(i)),S=pC(h,An(An(An(An({},m),p),y),{},{symbol:o,title:c,titleId:u,maskId:d}));if(!S)return NC("Could not find icon",h),null;var b=S.abstract,E={ref:t};return Object.keys(n).forEach(function(w){rg.hasOwnProperty(w)||(E[w]=n[w])}),LC(b[0],E)});De.displayName="FontAwesomeIcon",De.propTypes={beat:Ie.bool,border:Ie.bool,beatFade:Ie.bool,bounce:Ie.bool,className:Ie.string,fade:Ie.bool,flash:Ie.bool,mask:Ie.oneOfType([Ie.object,Ie.array,Ie.string]),maskId:Ie.string,fixedWidth:Ie.bool,inverse:Ie.bool,flip:Ie.oneOf([!0,!1,"horizontal","vertical","both"]),icon:Ie.oneOfType([Ie.object,Ie.array,Ie.string]),listItem:Ie.bool,pull:Ie.oneOf(["right","left"]),pulse:Ie.bool,rotation:Ie.oneOf([0,90,180,270]),shake:Ie.bool,size:Ie.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Ie.bool,spinPulse:Ie.bool,spinReverse:Ie.bool,symbol:Ie.oneOfType([Ie.bool,Ie.string]),title:Ie.string,titleId:Ie.string,transform:Ie.oneOfType([Ie.string,Ie.object]),swapOpacity:Ie.bool};var LC=eg.bind(null,I.createElement);const kC=({title:e,icon:t,imageUrl:n,onClick:r,isSelected:i=!1})=>v.jsxs("button",{onClick:r,className:`
|
|
602
602
|
flex flex-col items-center justify-center
|
|
603
603
|
w-[180px] h-[87px] p-4 rounded-xl
|
|
604
604
|
gap-2 transition-colors
|
|
@@ -610,7 +610,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
610
610
|
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
611
611
|
* License - https://fontawesome.com/license (Commercial License)
|
|
612
612
|
* Copyright 2024 Fonticons, Inc.
|
|
613
|
-
*/const jC={prefix:"fal",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c-8.8 0-16 7.2-16 16l0 128c0 8.8 7.2 16 16 16s16-7.2 16-16l0-128c0-8.8-7.2-16-16-16zm24 224a24 24 0 1 0 -48 0 24 24 0 1 0 48 0z"]},FC={prefix:"fal",iconName:"eye-slash",icon:[640,512,[],"f070","M25.9 3.4C19-2 8.9-.8 3.4 6.1S-.8 23.1 6.1 28.6l608 480c6.9 5.5 17 4.3 22.5-2.6s4.3-17-2.6-22.5L25.9 3.4zM605.5 268.3c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-51.2 0-96 14.8-133.9 36.8l27.3 21.5C244.6 74.2 280.2 64 320 64c70.4 0 127.7 32 170.8 72c43.1 40 71.9 88 85.2 120c-9.2 22.1-25.9 52-49.5 81.5l25.1 19.8c25.6-32 43.7-64.4 53.9-89zM88.4 154.7c-25.6 32-43.7 64.4-53.9 89c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c51.2 0 96-14.8 133.9-36.8l-27.3-21.5C395.4 437.8 359.8 448 320 448c-70.4 0-127.7-32-170.8-72C106.1 336 77.3 288 64 256c9.2-22.1 25.9-52 49.5-81.5L88.4 154.7zM320 384c16.7 0 32.7-3.2 47.4-9.1l-30.9-24.4c-5.4 .9-10.9 1.4-16.5 1.4c-51 0-92.8-39.8-95.8-90.1l-30.9-24.4c-.9 6-1.3 12.2-1.3 18.5c0 70.7 57.3 128 128 128zM448 256c0-70.7-57.3-128-128-128c-16.7 0-32.7 3.2-47.4 9.1l30.9 24.4c5.4-.9 10.9-1.4 16.5-1.4c51 0 92.8 39.8 95.8 90.1l30.9 24.4c.9-6 1.3-12.2 1.3-18.5z"]},VC={prefix:"fal",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM363.3 203.3c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L224 297.4l-52.7-52.7c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6l64 64c6.2 6.2 16.4 6.2 22.6 0l128-128z"]},BC={prefix:"fal",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M69.4 210.6C89.8 126.5 165.6 64 256 64c71.1 0 133.1 38.6 166.3 96L368 160c-8.8 0-16 7.2-16 16s7.2 16 16 16l80.7 0 15.3 0c8.8 0 16-7.2 16-16l0-96c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 60.6C408.8 75.5 337.5 32 256 32C149.6 32 60.5 106.2 37.7 205.6C35.5 215.2 43.1 224 53 224c7.9 0 14.6-5.7 16.5-13.4zm373.2 90.9C422.2 385.5 346.4 448 256 448c-71.1 0-133.1-38.6-166.3-96l54.5 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-80.9 0-15.1 0c-8.8 0-16 7.2-16 16l0 96c0 8.8 7.2 16 16 16s16-7.2 16-16l0-60.2C103.4 436.6 174.7 480 256 480c106.4 0 195.5-74.2 218.3-173.6c2.2-9.6-5.4-18.4-15.3-18.4c-7.9 0-14.6 5.7-16.5 13.4z"]},WC={prefix:"fal",iconName:"eye",icon:[576,512,[128065],"f06e","M117.2 136C160.3 96 217.6 64 288 64s127.7 32 170.8 72c43.1 40 71.9 88 85.2 120c-13.3 32-42.1 80-85.2 120c-43.1 40-100.4 72-170.8 72s-127.7-32-170.8-72C74.1 336 45.3 288 32 256c13.3-32 42.1-80 85.2-120zM288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM192 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},UC={prefix:"fal",iconName:"trash",icon:[448,512,[],"f1f8","M177.7 32l92.5 0c5.5 0 10.6 2.8 13.6 7.5L299.1 64 148.9 64l15.3-24.5c2.9-4.7 8.1-7.5 13.6-7.5zM336.9 64L311 22.6C302.2 8.5 286.8 0 270.3 0L177.7 0C161.2 0 145.8 8.5 137 22.6L111.1 64 64.1 64 32 64 16 64C7.2 64 0 71.2 0 80s7.2 16 16 16l18.3 0L59.8 452.6C62.1 486.1 90 512 123.6 512l200.8 0c33.6 0 61.4-25.9 63.8-59.4L413.7 96 432 96c8.8 0 16-7.2 16-16s-7.2-16-16-16l-16 0-32.1 0-47.1 0zm44.8 32L356.3 450.3C355.1 467 341.2 480 324.4 480l-200.8 0c-16.8 0-30.7-13-31.9-29.7L66.4 96l315.3 0z"]},ig={prefix:"fal",iconName:"clock-six",icon:[512,512,[],"e352","M480 256A224 224 0 1 0 32 256a224 224 0 1 0 448 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM272 112l0 256c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16s16 7.2 16 16z"]},eu={prefix:"fal",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM208 352c-8.8 0-16 7.2-16 16s7.2 16 16 16l96 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-112c0-8.8-7.2-16-16-16l-40 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l24 0 0 96-32 0zm48-168a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},zC={prefix:"fal",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M352 448l0-256-112 0c-26.5 0-48-21.5-48-48l0-112L64 32C46.3 32 32 46.3 32 64l0 384c0 17.7 14.3 32 32 32l256 0c17.7 0 32-14.3 32-32zm-.5-288c-.7-2.8-2.1-5.4-4.2-7.4L231.4 36.7c-2.1-2.1-4.6-3.5-7.4-4.2L224 144c0 8.8 7.2 16 16 16l111.5 0zM0 64C0 28.7 28.7 0 64 0L220.1 0c12.7 0 24.9 5.1 33.9 14.1L369.9 129.9c9 9 14.1 21.2 14.1 33.9L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"]},GC={prefix:"fal",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M324.5 411.1c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L214.6 256 347.1 123.5c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L192 233.4 59.6 100.9c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6L169.4 256 36.9 388.5c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L192 278.6 324.5 411.1z"]},sg={prefix:"fal",iconName:"check",icon:[448,512,[10003,10004],"f00c","M443.3 100.7c6.2 6.2 6.2 16.4 0 22.6l-272 272c-6.2 6.2-16.4 6.2-22.6 0l-144-144c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L160 361.4 420.7 100.7c6.2-6.2 16.4-6.2 22.6 0z"]},YC={prefix:"fal",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M34.5 420.4c-1.6 2.8-2.5 6-2.5 9.3c0 10.2 8.2 18.4 18.4 18.4l411.2 0c10.2 0 18.4-8.2 18.4-18.4c0-3.3-.9-6.4-2.5-9.3L276.5 75.8C272.2 68.5 264.4 64 256 64s-16.2 4.5-20.5 11.8L34.5 420.4zM6.9 404.2l201-344.6C217.9 42.5 236.2 32 256 32s38.1 10.5 48.1 27.6l201 344.6c4.5 7.7 6.9 16.5 6.9 25.4c0 27.8-22.6 50.4-50.4 50.4L50.4 480C22.6 480 0 457.4 0 429.6c0-8.9 2.4-17.7 6.9-25.4zM256 160c8.8 0 16 7.2 16 16l0 128c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zM232 384a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},tu={prefix:"fal",iconName:"x",icon:[384,512,[120],"58","M380.2 58.3c5.7-6.7 4.9-16.8-1.9-22.5s-16.8-4.9-22.6 1.9L192 231.2 28.2 37.7c-5.7-6.7-15.8-7.6-22.5-1.9s-7.6 15.8-1.9 22.5L171 256 3.8 453.7c-5.7 6.7-4.9 16.8 1.9 22.6s16.8 4.9 22.5-1.9L192 280.8 355.8 474.3c5.7 6.7 15.8 7.6 22.6 1.9s7.6-15.8 1.9-22.6L213 256 380.2 58.3z"]},nu=I.createContext({});function ru(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const iu=typeof window<"u",og=iu?I.useLayoutEffect:I.useEffect,ga=I.createContext(null),su=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});let HC=class extends X.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=r instanceof HTMLElement&&r.offsetWidth||0,
|
|
613
|
+
*/const jC={prefix:"fal",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c-8.8 0-16 7.2-16 16l0 128c0 8.8 7.2 16 16 16s16-7.2 16-16l0-128c0-8.8-7.2-16-16-16zm24 224a24 24 0 1 0 -48 0 24 24 0 1 0 48 0z"]},FC={prefix:"fal",iconName:"eye-slash",icon:[640,512,[],"f070","M25.9 3.4C19-2 8.9-.8 3.4 6.1S-.8 23.1 6.1 28.6l608 480c6.9 5.5 17 4.3 22.5-2.6s4.3-17-2.6-22.5L25.9 3.4zM605.5 268.3c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-51.2 0-96 14.8-133.9 36.8l27.3 21.5C244.6 74.2 280.2 64 320 64c70.4 0 127.7 32 170.8 72c43.1 40 71.9 88 85.2 120c-9.2 22.1-25.9 52-49.5 81.5l25.1 19.8c25.6-32 43.7-64.4 53.9-89zM88.4 154.7c-25.6 32-43.7 64.4-53.9 89c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c51.2 0 96-14.8 133.9-36.8l-27.3-21.5C395.4 437.8 359.8 448 320 448c-70.4 0-127.7-32-170.8-72C106.1 336 77.3 288 64 256c9.2-22.1 25.9-52 49.5-81.5L88.4 154.7zM320 384c16.7 0 32.7-3.2 47.4-9.1l-30.9-24.4c-5.4 .9-10.9 1.4-16.5 1.4c-51 0-92.8-39.8-95.8-90.1l-30.9-24.4c-.9 6-1.3 12.2-1.3 18.5c0 70.7 57.3 128 128 128zM448 256c0-70.7-57.3-128-128-128c-16.7 0-32.7 3.2-47.4 9.1l30.9 24.4c5.4-.9 10.9-1.4 16.5-1.4c51 0 92.8 39.8 95.8 90.1l30.9 24.4c.9-6 1.3-12.2 1.3-18.5z"]},VC={prefix:"fal",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM363.3 203.3c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L224 297.4l-52.7-52.7c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6l64 64c6.2 6.2 16.4 6.2 22.6 0l128-128z"]},BC={prefix:"fal",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M69.4 210.6C89.8 126.5 165.6 64 256 64c71.1 0 133.1 38.6 166.3 96L368 160c-8.8 0-16 7.2-16 16s7.2 16 16 16l80.7 0 15.3 0c8.8 0 16-7.2 16-16l0-96c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 60.6C408.8 75.5 337.5 32 256 32C149.6 32 60.5 106.2 37.7 205.6C35.5 215.2 43.1 224 53 224c7.9 0 14.6-5.7 16.5-13.4zm373.2 90.9C422.2 385.5 346.4 448 256 448c-71.1 0-133.1-38.6-166.3-96l54.5 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-80.9 0-15.1 0c-8.8 0-16 7.2-16 16l0 96c0 8.8 7.2 16 16 16s16-7.2 16-16l0-60.2C103.4 436.6 174.7 480 256 480c106.4 0 195.5-74.2 218.3-173.6c2.2-9.6-5.4-18.4-15.3-18.4c-7.9 0-14.6 5.7-16.5 13.4z"]},WC={prefix:"fal",iconName:"eye",icon:[576,512,[128065],"f06e","M117.2 136C160.3 96 217.6 64 288 64s127.7 32 170.8 72c43.1 40 71.9 88 85.2 120c-13.3 32-42.1 80-85.2 120c-43.1 40-100.4 72-170.8 72s-127.7-32-170.8-72C74.1 336 45.3 288 32 256c13.3-32 42.1-80 85.2-120zM288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM192 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},UC={prefix:"fal",iconName:"trash",icon:[448,512,[],"f1f8","M177.7 32l92.5 0c5.5 0 10.6 2.8 13.6 7.5L299.1 64 148.9 64l15.3-24.5c2.9-4.7 8.1-7.5 13.6-7.5zM336.9 64L311 22.6C302.2 8.5 286.8 0 270.3 0L177.7 0C161.2 0 145.8 8.5 137 22.6L111.1 64 64.1 64 32 64 16 64C7.2 64 0 71.2 0 80s7.2 16 16 16l18.3 0L59.8 452.6C62.1 486.1 90 512 123.6 512l200.8 0c33.6 0 61.4-25.9 63.8-59.4L413.7 96 432 96c8.8 0 16-7.2 16-16s-7.2-16-16-16l-16 0-32.1 0-47.1 0zm44.8 32L356.3 450.3C355.1 467 341.2 480 324.4 480l-200.8 0c-16.8 0-30.7-13-31.9-29.7L66.4 96l315.3 0z"]},ig={prefix:"fal",iconName:"clock-six",icon:[512,512,[],"e352","M480 256A224 224 0 1 0 32 256a224 224 0 1 0 448 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM272 112l0 256c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16s16 7.2 16 16z"]},eu={prefix:"fal",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM208 352c-8.8 0-16 7.2-16 16s7.2 16 16 16l96 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-112c0-8.8-7.2-16-16-16l-40 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l24 0 0 96-32 0zm48-168a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},zC={prefix:"fal",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M352 448l0-256-112 0c-26.5 0-48-21.5-48-48l0-112L64 32C46.3 32 32 46.3 32 64l0 384c0 17.7 14.3 32 32 32l256 0c17.7 0 32-14.3 32-32zm-.5-288c-.7-2.8-2.1-5.4-4.2-7.4L231.4 36.7c-2.1-2.1-4.6-3.5-7.4-4.2L224 144c0 8.8 7.2 16 16 16l111.5 0zM0 64C0 28.7 28.7 0 64 0L220.1 0c12.7 0 24.9 5.1 33.9 14.1L369.9 129.9c9 9 14.1 21.2 14.1 33.9L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"]},GC={prefix:"fal",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M324.5 411.1c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L214.6 256 347.1 123.5c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L192 233.4 59.6 100.9c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6L169.4 256 36.9 388.5c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L192 278.6 324.5 411.1z"]},sg={prefix:"fal",iconName:"check",icon:[448,512,[10003,10004],"f00c","M443.3 100.7c6.2 6.2 6.2 16.4 0 22.6l-272 272c-6.2 6.2-16.4 6.2-22.6 0l-144-144c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L160 361.4 420.7 100.7c6.2-6.2 16.4-6.2 22.6 0z"]},YC={prefix:"fal",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M34.5 420.4c-1.6 2.8-2.5 6-2.5 9.3c0 10.2 8.2 18.4 18.4 18.4l411.2 0c10.2 0 18.4-8.2 18.4-18.4c0-3.3-.9-6.4-2.5-9.3L276.5 75.8C272.2 68.5 264.4 64 256 64s-16.2 4.5-20.5 11.8L34.5 420.4zM6.9 404.2l201-344.6C217.9 42.5 236.2 32 256 32s38.1 10.5 48.1 27.6l201 344.6c4.5 7.7 6.9 16.5 6.9 25.4c0 27.8-22.6 50.4-50.4 50.4L50.4 480C22.6 480 0 457.4 0 429.6c0-8.9 2.4-17.7 6.9-25.4zM256 160c8.8 0 16 7.2 16 16l0 128c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zM232 384a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},tu={prefix:"fal",iconName:"x",icon:[384,512,[120],"58","M380.2 58.3c5.7-6.7 4.9-16.8-1.9-22.5s-16.8-4.9-22.6 1.9L192 231.2 28.2 37.7c-5.7-6.7-15.8-7.6-22.5-1.9s-7.6 15.8-1.9 22.5L171 256 3.8 453.7c-5.7 6.7-4.9 16.8 1.9 22.6s16.8 4.9 22.5-1.9L192 280.8 355.8 474.3c5.7 6.7 15.8 7.6 22.6 1.9s7.6-15.8 1.9-22.6L213 256 380.2 58.3z"]},nu=I.createContext({});function ru(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const iu=typeof window<"u",og=iu?I.useLayoutEffect:I.useEffect,ga=I.createContext(null),su=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});let HC=class extends X.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=r instanceof HTMLElement&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}};function qC({children:e,isPresent:t,anchorX:n}){const r=I.useId(),i=I.useRef(null),o=I.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=I.useContext(su);return I.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:h,right:m}=o.current;if(t||!i.current||!c||!u)return;const p=n==="left"?`left: ${h}`:`right: ${m}`;i.current.dataset.motionPopId=r;const y=document.createElement("style");return a&&(y.nonce=a),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
614
614
|
[data-motion-pop-id="${r}"] {
|
|
615
615
|
position: absolute !important;
|
|
616
616
|
width: ${c}px !important;
|
|
@@ -618,23 +618,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
618
618
|
${p}px !important;
|
|
619
619
|
top: ${d}px !important;
|
|
620
620
|
}
|
|
621
|
-
`),()=>{document.head.removeChild(y)}},[t]),v.jsx(HC,{isPresent:t,childRef:i,sizeRef:a,children:X.cloneElement(e,{ref:i})})}const KC=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:c})=>{const u=ru(XC),d=I.useId(),h=I.useCallback(p=>{u.set(p,!0);for(const y of u.values())if(!y)return;r&&r()},[u,r]),m=I.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),a?[Math.random(),h]:[n,h]);return I.useMemo(()=>{u.forEach((p,y)=>u.set(y,!1))},[n]),X.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(e=v.jsx(qC,{isPresent:n,anchorX:c,children:e})),v.jsx(ga.Provider,{value:m,children:e})};function XC(){return new Map}function ag(e=!0){const t=I.useContext(ga);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 ya=e=>e.key||"";function lg(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const ZC=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a="sync",propagate:o=!1,anchorX:c="left"})=>{const[u,d]=ag(o),h=I.useMemo(()=>lg(e),[e]),m=o&&!u?[]:h.map(ya),p=I.useRef(!0),y=I.useRef(h),S=ru(()=>new Map),[b,E]=I.useState(h),[w,C]=I.useState(h);og(()=>{p.current=!1,y.current=h;for(let O=0;O<w.length;O++){const R=ya(w[O]);m.includes(R)?S.delete(R):S.get(R)!==!0&&S.set(R,!1)}},[w,m.length,m.join("-")]);const A=[];if(h!==b){let O=[...h];for(let R=0;R<w.length;R++){const V=w[R],F=ya(V);m.includes(F)||(O.splice(R,0,V),A.push(V))}return a==="wait"&&A.length&&(O=A),C(lg(O)),E(h),null}process.env.NODE_ENV!=="production"&&a==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:$}=I.useContext(nu);return v.jsx(v.Fragment,{children:w.map(O=>{const R=ya(O),V=o&&!u?!1:h===w||m.includes(R),F=()=>{if(S.has(R))S.set(R,!0);else return;let z=!0;S.forEach(Q=>{Q||(z=!1)}),z&&($==null||$(),C(y.current),o&&(d==null||d()),r&&r())};return v.jsx(KC,{isPresent:V,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,onExitComplete:V?void 0:F,anchorX:c,children:O},R)})})};function ou(e,t){e.indexOf(t)===-1&&e.push(t)}function au(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Rt=e=>e;let ji=Rt,vr=Rt;process.env.NODE_ENV!=="production"&&(ji=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},vr=(e,t)=>{if(!e)throw new Error(t)});const JC={useManualTiming:!1};function lu(e){let t;return()=>(t===void 0&&(t=e()),t)}const Fi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let cu=class{constructor(){this.subscriptions=[]}add(t){return ou(this.subscriptions,t),()=>au(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 On=e=>e*1e3,Hn=e=>e/1e3;function cg(e,t){return t?e*(1e3/t):0}const ug=new Set;function va(e,t,n){e||ug.has(t)||(console.warn(t),ug.add(t))}const QC=lu(()=>window.ScrollTimeline!==void 0);let eP=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(QC()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,a)=>{i&&i(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},tP=class extends eP{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function uu(e,t){return e?e[t]||e.default||e:void 0}const fu=2e4;function fg(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<fu;)t+=n,r=e.next(t);return t>=fu?1/0:t}function du(e){return typeof e=="function"}function dg(e,t){e.timeline=t,e.onfinish=null}const hu=e=>Array.isArray(e)&&typeof e[0]=="number",nP={linearEasing:void 0};function rP(e,t){const n=lu(e);return()=>{var r;return(r=nP[t])!==null&&r!==void 0?r:n()}}const ba=rP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),hg=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(Fi(0,i-1,a))+", ";return`linear(${r.substring(0,r.length-2)})`};function mg(e){return!!(typeof e=="function"&&ba()||!e||typeof e=="string"&&(e in mu||ba())||hu(e)||Array.isArray(e)&&e.every(mg))}const Gs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,mu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Gs([0,.65,.55,1]),circOut:Gs([.55,0,1,.45]),backIn:Gs([.31,.01,.66,-.59]),backOut:Gs([.33,1.53,.69,.99])};function pg(e,t){if(e)return typeof e=="function"&&ba()?hg(e,t):hu(e)?Gs(e):Array.isArray(e)?e.map(n=>pg(n,t)||mu.easeOut):mu[e]}const xa=["read","resolveKeyframes","update","preRender","render","postRender"],gg={value:null};function iP(e,t){let n=new Set,r=new Set,i=!1,a=!1;const o=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){o.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,p=!1,y=!1)=>{const b=y&&i?n:r;return p&&o.add(m),b.has(m)||b.add(m),m},cancel:m=>{r.delete(m),o.delete(m)},process:m=>{if(c=m,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&gg.value&&gg.value.frameloop[t].push(u),u=0,n.clear(),i=!1,a&&(a=!1,h.process(m))}};return h}const sP=40;function yg(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=xa.reduce((w,C)=>(w[C]=iP(a,t?C:void 0),w),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:p}=o,y=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,sP),1),i.timestamp=w,i.isProcessing=!0,c.process(i),u.process(i),d.process(i),h.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},S=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:xa.reduce((w,C)=>{const A=o[C];return w[C]=($,O=!1,R=!1)=>(n||S(),A.schedule($,O,R)),w},{}),cancel:w=>{for(let C=0;C<xa.length;C++)o[xa[C]].cancel(w)},state:i,steps:o}}const{schedule:Ye,cancel:br,state:yt,steps:pu}=yg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Rt,!0),{schedule:gu}=yg(queueMicrotask,!1);let wa;function oP(){wa=void 0}const Mn={now:()=>(wa===void 0&&Mn.set(yt.isProcessing||JC.useManualTiming?yt.timestamp:performance.now()),wa),set:e=>{wa=e,queueMicrotask(oP)}},yn={x:!1,y:!1};function vg(){return yn.x||yn.y}function aP(e){return e==="x"||e==="y"?yn[e]?null:(yn[e]=!0,()=>{yn[e]=!1}):yn.x||yn.y?null:(yn.x=yn.y=!0,()=>{yn.x=yn.y=!1})}function lP(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const a=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function bg(e,t){const n=lP(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function xg(e){return!(e.pointerType==="touch"||vg())}function cP(e,t,n={}){const[r,i,a]=bg(e,n),o=c=>{if(!xg(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{xg(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",o,i)}),a}const wg=(e,t)=>t?e===t?!0:wg(e,t.parentElement):!1,yu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,uP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function fP(e){return uP.has(e.tagName)||e.tabIndex!==-1}const Ys=new WeakSet;function Sg(e){return t=>{t.key==="Enter"&&e(t)}}function vu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const dP=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Sg(()=>{if(Ys.has(n))return;vu(n,"down");const i=Sg(()=>{vu(n,"up")}),a=()=>vu(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 Tg(e){return yu(e)&&!vg()}function hP(e,t,n={}){const[r,i,a]=bg(e,n),o=c=>{const u=c.currentTarget;if(!Tg(c)||Ys.has(u))return;Ys.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!Tg(y)||!Ys.has(u))&&(Ys.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||wg(u,y.target))},p=y=>{h(y,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",p,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",o,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>dP(d,i)),!fP(c)&&c.tabIndex===null&&(c.tabIndex=0))}),a}const Eg=30,mP=e=>!isNaN(parseFloat(e));let pP=class{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const a=Mn.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Mn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=mP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&va(!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 cu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ye.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Mn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Eg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Eg);return cg(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Hs(e,t){return new pP(e,t)}const Cg=I.createContext({strict:!1}),Pg={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"]},Vi={};for(const e in Pg)Vi[e]={isEnabled:t=>Pg[e].some(n=>!!t[n])};function gP(e){for(const t in e)Vi[t]={...Vi[t],...e[t]}}const yP=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 Sa(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||yP.has(e)}let Ag=e=>!Sa(e);function vP(e){e&&(Ag=t=>t.startsWith("on")?!Sa(t):e(t))}try{vP(require("@emotion/is-prop-valid").default)}catch{}function bP(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Ag(i)||n===!0&&Sa(i)||!t&&!Sa(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function xP(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&va(!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 Ta=I.createContext({});function Ea(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function qs(e){return typeof e=="string"||Array.isArray(e)}const bu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],xu=["initial",...bu];function Ca(e){return Ea(e.animate)||xu.some(t=>qs(e[t]))}function Og(e){return!!(Ca(e)||e.variants)}function wP(e,t){if(Ca(e)){const{initial:n,animate:r}=e;return{initial:n===!1||qs(n)?n:void 0,animate:qs(r)?r:void 0}}return e.inherit!==!1?t:{}}function SP(e){const{initial:t,animate:n}=wP(e,I.useContext(Ta));return I.useMemo(()=>({initial:t,animate:n}),[Mg(t),Mg(n)])}function Mg(e){return Array.isArray(e)?e.join(" "):e}const TP=Symbol.for("motionComponentSymbol");function Bi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function EP(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):Bi(n)&&(n.current=r))},[t])}const wu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),_g="data-"+wu("framerAppearId"),Ig=I.createContext({});function CP(e,t,n,r,i){var a,o;const{visualElement:c}=I.useContext(Ta),u=I.useContext(Cg),d=I.useContext(ga),h=I.useContext(su).reducedMotion,m=I.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const p=m.current,y=I.useContext(Ig);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&PP(m.current,n,i,y);const S=I.useRef(!1);I.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const b=n[_g],E=I.useRef(!!b&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,b))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,b)));return og(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),gu.render(p.render),E.current&&p.animationState&&p.animationState.animateChanges())}),I.useEffect(()=>{p&&(!E.current&&p.animationState&&p.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,b)}),E.current=!1))}),p}function PP(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Dg(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||c&&Bi(c),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function Dg(e){if(e)return e.options.allowProjection!==!1?e.projection:Dg(e.parent)}function AP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var a,o;e&&gP(e);function c(d,h){let m;const p={...I.useContext(su),...d,layoutId:OP(d)},{isStatic:y}=p,S=SP(d),b=r(d,y);if(!y&&iu){MP(p,e);const E=_P(p);m=E.MeasureLayout,S.visualElement=CP(i,b,p,t,E.ProjectionNode)}return v.jsxs(Ta.Provider,{value:S,children:[m&&S.visualElement?v.jsx(m,{visualElement:S.visualElement,...p}):null,n(i,d,EP(b,S.visualElement,h),b,y,S.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(o=(a=i.displayName)!==null&&a!==void 0?a:i.name)!==null&&o!==void 0?o:""})`}`;const u=I.forwardRef(c);return u[TP]=i,u}function OP({layoutId:e}){const t=I.useContext(nu).id;return t&&e!==void 0?t+"-"+e:e}function MP(e,t){const n=I.useContext(Cg).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?ji(!1,r):vr(!1,r)}}function _P(e){const{drag:t,layout:n}=Vi;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 $g=e=>t=>typeof t=="string"&&t.startsWith(e),Su=$g("--"),IP=$g("var(--"),Tu=e=>IP(e)?DP.test(e.split("/*")[0].trim()):!1,DP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ks={};function $P(e){for(const t in e)Ks[t]=e[t],Su(t)&&(Ks[t].isCSSVariable=!0)}const Wi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qr=new Set(Wi);function Rg(e,{layout:t,layoutId:n}){return qr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ks[e]||e==="opacity")}const St=e=>!!(e&&e.getVelocity),Ng=(e,t)=>t&&typeof e=="number"?t.transform(e):e,qn=(e,t,n)=>n>t?t:n<e?e:n,Ui={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Xs={...Ui,transform:e=>qn(0,1,e)},Pa={...Ui,default:1},Zs=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xr=Zs("deg"),_n=Zs("%"),Se=Zs("px"),RP=Zs("vh"),NP=Zs("vw"),Lg={..._n,parse:e=>_n.parse(e)/100,transform:e=>_n.transform(e*100)},LP={borderWidth:Se,borderTopWidth:Se,borderRightWidth:Se,borderBottomWidth:Se,borderLeftWidth:Se,borderRadius:Se,radius:Se,borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomRightRadius:Se,borderBottomLeftRadius:Se,width:Se,maxWidth:Se,height:Se,maxHeight:Se,top:Se,right:Se,bottom:Se,left:Se,padding:Se,paddingTop:Se,paddingRight:Se,paddingBottom:Se,paddingLeft:Se,margin:Se,marginTop:Se,marginRight:Se,marginBottom:Se,marginLeft:Se,backgroundPositionX:Se,backgroundPositionY:Se},kP={rotate:xr,rotateX:xr,rotateY:xr,rotateZ:xr,scale:Pa,scaleX:Pa,scaleY:Pa,scaleZ:Pa,skew:xr,skewX:xr,skewY:xr,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:Xs,originX:Lg,originY:Lg,originZ:Se},kg={...Ui,transform:Math.round},Eu={...LP,...kP,zIndex:kg,size:Se,fillOpacity:Xs,strokeOpacity:Xs,numOctaves:kg},jP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},FP=Wi.length;function VP(e,t,n){let r="",i=!0;for(let a=0;a<FP;a++){const o=Wi[a],c=e[o];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(o.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Ng(c,Eu[o]);if(!u){i=!1;const h=jP[o]||o;r+=`${h}(${d}) `}n&&(t[o]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Cu(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,c=!1;for(const u in t){const d=t[u];if(qr.has(u)){o=!0;continue}else if(Su(u)){i[u]=d;continue}else{const h=Ng(d,Eu[u]);u.startsWith("origin")?(c=!0,a[u]=h):r[u]=h}}if(t.transform||(o||n?r.transform=VP(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=a;r.transformOrigin=`${u} ${d} ${h}`}}const Pu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function jg(e,t,n){for(const r in t)!St(t[r])&&!Rg(r,n)&&(e[r]=t[r])}function BP({transformTemplate:e},t){return I.useMemo(()=>{const n=Pu();return Cu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function WP(e,t){const n=e.style||{},r={};return jg(r,n,e),Object.assign(r,BP(e,t)),r}function UP(e,t){const n={},r=WP(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 zP=["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 Au(e){return typeof e!="string"||e.includes("-")?!1:!!(zP.indexOf(e)>-1||/[A-Z]/u.test(e))}const GP={offset:"stroke-dashoffset",array:"stroke-dasharray"},YP={offset:"strokeDashoffset",array:"strokeDasharray"};function HP(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?GP:YP;e[a.offset]=Se.transform(-r);const o=Se.transform(t),c=Se.transform(n);e[a.array]=`${o} ${c}`}function Fg(e,t,n){return typeof e=="string"?e:Se.transform(t+n*e)}function qP(e,t,n){const r=Fg(t,e.x,e.width),i=Fg(n,e.y,e.height);return`${r} ${i}`}function Ou(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:o,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(Cu(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:y,dimensions:S}=e;p.transform&&(S&&(y.transform=p.transform),delete p.transform),S&&(i!==void 0||a!==void 0||y.transform)&&(y.transformOrigin=qP(S,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),o!==void 0&&HP(p,o,c,u,!1)}const Vg=()=>({...Pu(),attrs:{}}),Mu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function KP(e,t,n,r){const i=I.useMemo(()=>{const a=Vg();return Ou(a,t,Mu(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};jg(a,e.style,e),i.style={...a,...i.style}}return i}function XP(e=!1){return(n,r,i,{latestValues:a},o)=>{const u=(Au(n)?KP:UP)(r,a,o,n),d=bP(r,typeof n=="string",e),h=n!==I.Fragment?{...d,...u,ref:i}:{},{children:m}=r,p=I.useMemo(()=>St(m)?m.get():m,[m]);return I.createElement(n,{...h,children:p})}}function Bg(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function _u(e,t,n,r){if(typeof t=="function"){const[i,a]=Bg(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]=Bg(r);t=t(n!==void 0?n:e.custom,i,a)}return t}const Iu=e=>Array.isArray(e),ZP=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),JP=e=>Iu(e)?e[e.length-1]||0:e;function Aa(e){const t=St(e)?e.get():e;return ZP(t)?t.toValue():t}function QP({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,a){const o={latestValues:eA(r,i,a,e),renderState:t()};return n&&(o.onMount=c=>n({props:r,current:c,...o}),o.onUpdate=c=>n(c)),o}const Wg=e=>(t,n)=>{const r=I.useContext(Ta),i=I.useContext(ga),a=()=>QP(e,t,r,i);return n?a():ru(a)};function eA(e,t,n,r){const i={},a=r(e,{});for(const p in a)i[p]=Aa(a[p]);let{initial:o,animate:c}=e;const u=Ca(e),d=Og(e);t&&d&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||o===!1;const m=h?c:o;if(m&&typeof m!="boolean"&&!Ea(m)){const p=Array.isArray(m)?m:[m];for(let y=0;y<p.length;y++){const S=_u(e,p[y]);if(S){const{transitionEnd:b,transition:E,...w}=S;for(const C in w){let A=w[C];if(Array.isArray(A)){const $=h?A.length-1:0;A=A[$]}A!==null&&(i[C]=A)}for(const C in b)i[C]=b[C]}}}return i}function Du(e,t,n){var r;const{style:i}=e,a={};for(const o in i)(St(i[o])||t.style&&St(t.style[o])||Rg(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[o]=i[o]);return a}const tA={useVisualState:Wg({scrapeMotionValuesFromProps:Du,createRenderState:Pu})};function Ug(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function zg(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const Gg=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 Yg(e,t,n,r){zg(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Gg.has(i)?i:wu(i),t.attrs[i])}function Hg(e,t,n){const r=Du(e,t,n);for(const i in e)if(St(e[i])||St(t[i])){const a=Wi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const qg=["x","y","width","height","cx","cy","r"],nA={useVisualState:Wg({scrapeMotionValuesFromProps:Hg,createRenderState:Vg,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let a=!!e.drag;if(!a){for(const c in i)if(qr.has(c)){a=!0;break}}if(!a)return;let o=!t;if(t)for(let c=0;c<qg.length;c++){const u=qg[c];e[u]!==t[u]&&(o=!0)}o&&Ye.read(()=>{Ug(n,r),Ye.render(()=>{Ou(r,i,Mu(n.tagName),e.transformTemplate),Yg(n,r)})})}})};function rA(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...Au(r)?nA:tA,preloadedFeatures:e,useRender:XP(i),createVisualElement:t,Component:r};return AP(o)}}function Js(e,t,n){const r=e.getProps();return _u(r,t,n!==void 0?n:r.custom,e)}const Kg=new Set(["width","height","top","left","right","bottom",...Wi]);function iA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Hs(n))}function sA(e,t){const n=Js(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const c=JP(a[o]);iA(e,o,c)}}function oA(e){return!!(St(e)&&e.add)}function $u(e,t){const n=e.getValue("willChange");if(oA(n))return n.add(t)}function Xg(e){return e.props[_g]}const Zg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,aA=1e-7,lA=12;function cA(e,t,n,r,i){let a,o,c=0;do o=t+(n-t)/2,a=Zg(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>aA&&++c<lA);return o}function Qs(e,t,n,r){if(e===t&&n===r)return Rt;const i=a=>cA(a,0,1,e,n);return a=>a===0||a===1?a:Zg(i(a),t,r)}const Jg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Qg=e=>t=>1-e(1-t),e0=Qs(.33,1.53,.69,.99),Ru=Qg(e0),t0=Jg(Ru),n0=e=>(e*=2)<1?.5*Ru(e):.5*(2-Math.pow(2,-10*(e-1))),Nu=e=>1-Math.sin(Math.acos(e)),r0=Qg(Nu),i0=Jg(Nu),s0=e=>/^0[^.\s]+$/u.test(e);function uA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||s0(e):!0}const eo=e=>Math.round(e*1e5)/1e5,Lu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function fA(e){return e==null}const dA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ku=(e,t)=>n=>!!(typeof n=="string"&&dA.test(n)&&n.startsWith(e)||t&&!fA(n)&&Object.prototype.hasOwnProperty.call(n,t)),o0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,c]=r.match(Lu);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:c!==void 0?parseFloat(c):1}},hA=e=>qn(0,255,e),ju={...Ui,transform:e=>Math.round(hA(e))},Kr={test:ku("rgb","red"),parse:o0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ju.transform(e)+", "+ju.transform(t)+", "+ju.transform(n)+", "+eo(Xs.transform(r))+")"};function mA(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 Fu={test:ku("#"),parse:mA,transform:Kr.transform},zi={test:ku("hsl","hue"),parse:o0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+_n.transform(eo(t))+", "+_n.transform(eo(n))+", "+eo(Xs.transform(r))+")"},Tt={test:e=>Kr.test(e)||Fu.test(e)||zi.test(e),parse:e=>Kr.test(e)?Kr.parse(e):zi.test(e)?zi.parse(e):Fu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Kr.transform(e):zi.transform(e)},pA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function gA(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Lu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(pA))===null||n===void 0?void 0:n.length)||0)>0}const a0="number",l0="color",yA="var",vA="var(",c0="${}",bA=/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 to(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const c=t.replace(bA,u=>(Tt.test(u)?(r.color.push(a),i.push(l0),n.push(Tt.parse(u))):u.startsWith(vA)?(r.var.push(a),i.push(yA),n.push(u)):(r.number.push(a),i.push(a0),n.push(parseFloat(u))),++a,c0)).split(c0);return{values:n,split:c,indexes:r,types:i}}function u0(e){return to(e).values}function f0(e){const{split:t,types:n}=to(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const c=n[o];c===a0?a+=eo(i[o]):c===l0?a+=Tt.transform(i[o]):a+=i[o]}return a}}const xA=e=>typeof e=="number"?0:e;function wA(e){const t=u0(e);return f0(e)(t.map(xA))}const wr={test:gA,parse:u0,createTransformer:f0,getAnimatableNone:wA},SA=new Set(["brightness","contrast","saturate","opacity"]);function TA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Lu)||[];if(!r)return e;const i=n.replace(r,"");let a=SA.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const EA=/\b([a-z-]*)\(.*?\)/gu,Vu={...wr,getAnimatableNone:e=>{const t=e.match(EA);return t?t.map(TA).join(" "):e}},CA={...Eu,color:Tt,backgroundColor:Tt,outlineColor:Tt,fill:Tt,stroke:Tt,borderColor:Tt,borderTopColor:Tt,borderRightColor:Tt,borderBottomColor:Tt,borderLeftColor:Tt,filter:Vu,WebkitFilter:Vu},d0=e=>CA[e];function h0(e,t){let n=d0(e);return n!==Vu&&(n=wr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const PA=new Set(["auto","none","0"]);function AA(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!PA.has(a)&&to(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=h0(n,i)}const Xr=e=>e*180/Math.PI,Bu=e=>{const t=Xr(Math.atan2(e[1],e[0]));return Wu(t)},OA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Bu,rotateZ:Bu,skewX:e=>Xr(Math.atan(e[1])),skewY:e=>Xr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Wu=e=>(e=e%360,e<0&&(e+=360),e),m0=Bu,p0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),g0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),MA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:p0,scaleY:g0,scale:e=>(p0(e)+g0(e))/2,rotateX:e=>Wu(Xr(Math.atan2(e[6],e[5]))),rotateY:e=>Wu(Xr(Math.atan2(-e[2],e[0]))),rotateZ:m0,rotate:m0,skewX:e=>Xr(Math.atan(e[4])),skewY:e=>Xr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function y0(e){return e.includes("scale")?1:0}function Uu(e,t){if(!e||e==="none")return y0(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=MA,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=OA,i=c}if(!i)return y0(t);const a=r[t],o=i[1].split(",").map(IA);return typeof a=="function"?a(o):o[a]}const _A=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Uu(n,t)};function IA(e){return parseFloat(e.trim())}const v0=e=>e===Ui||e===Se,DA=new Set(["x","y","z"]),$A=Wi.filter(e=>!DA.has(e));function RA(e){const t=[];return $A.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Gi={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})=>Uu(t,"x"),y:(e,{transform:t})=>Uu(t,"y")};Gi.translateX=Gi.x,Gi.translateY=Gi.y;const Zr=new Set;let zu=!1,Gu=!1;function b0(){if(Gu){const e=Array.from(Zr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=RA(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 c;(c=r.getValue(a))===null||c===void 0||c.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Gu=!1,zu=!1,Zr.forEach(e=>e.complete()),Zr.clear()}function x0(){Zr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Gu=!0)})}function NA(){x0(),b0()}let Yu=class{constructor(t,n,r,i,a,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Zr.add(this),zu||(zu=!0,Ye.read(x0),Ye.resolveKeyframes(b0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const o=i==null?void 0:i.get(),c=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&o===void 0&&i.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Zr.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Zr.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const w0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),LA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kA(e){const t=LA.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const jA=4;function S0(e,t,n=1){vr(n<=jA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=kA(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return w0(o)?parseFloat(o):o}return Tu(i)?S0(i,t,n+1):i}const T0=e=>t=>t.test(e),E0=[Ui,Se,_n,xr,NP,RP,{test:e=>e==="auto",parse:e=>e}],C0=e=>E0.find(T0(e));let P0=class extends Yu{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 u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Tu(d))){const h=S0(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Kg.has(r)||t.length!==2)return;const[i,a]=t,o=C0(i),c=C0(a);if(o!==c)if(v0(o)&&v0(c))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)uA(t[i])&&r.push(i);r.length&&AA(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=Gi[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const o=i.length-1,c=i[o];i[o]=Gi[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,d])=>{n.getValue(u).set(d)}),this.resolveNoneKeyframes()}};const A0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wr.test(e)||e==="0")&&!e.startsWith("url("));function FA(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 VA(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=A0(i,t),c=A0(a,t);return ji(o===c,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!o||!c?!1:FA(e)||(n==="spring"||du(n))&&r}const BA=e=>e!==null;function Oa(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(BA),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const WA=40;let O0=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Mn.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>WA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&NA(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Mn.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:a,delay:o,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!VA(t,r,i,a))if(o)this.options.duration=0;else{u&&u(Oa(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const tt=(e,t,n)=>e+(t-e)*n;function Hu(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 UA({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 c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=Hu(u,c,e+1/3),a=Hu(u,c,e),o=Hu(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Ma(e,t){return n=>n>0?t:e}const qu=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},zA=[Fu,Kr,zi],GA=e=>zA.find(t=>t.test(e));function M0(e){const t=GA(e);if(ji(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===zi&&(n=UA(n)),n}const _0=(e,t)=>{const n=M0(e),r=M0(t);if(!n||!r)return Ma(e,t);const i={...n};return a=>(i.red=qu(n.red,r.red,a),i.green=qu(n.green,r.green,a),i.blue=qu(n.blue,r.blue,a),i.alpha=tt(n.alpha,r.alpha,a),Kr.transform(i))},YA=(e,t)=>n=>t(e(n)),no=(...e)=>e.reduce(YA),Ku=new Set(["none","hidden"]);function HA(e,t){return Ku.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function qA(e,t){return n=>tt(e,t,n)}function Xu(e){return typeof e=="number"?qA:typeof e=="string"?Tu(e)?Ma:Tt.test(e)?_0:ZA:Array.isArray(e)?I0:typeof e=="object"?Tt.test(e)?_0:KA:Ma}function I0(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>Xu(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function KA(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Xu(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function XA(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const o=t.types[a],c=e.indexes[o][i[o]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[a]=u,i[o]++}return r}const ZA=(e,t)=>{const n=wr.createTransformer(t),r=to(e),i=to(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?Ku.has(e)&&!i.values.length||Ku.has(t)&&!r.values.length?HA(e,t):no(I0(XA(r,i),i.values),n):(ji(!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.`),Ma(e,t))};function D0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tt(e,t,n):Xu(e)(e,t)}const JA=5;function $0(e,t,n){const r=Math.max(t-JA,0);return cg(n-e(r),t-r)}const nt={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},R0=.001;function QA({duration:e=nt.duration,bounce:t=nt.bounce,velocity:n=nt.velocity,mass:r=nt.mass}){let i,a;ji(e<=On(nt.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=qn(nt.minDamping,nt.maxDamping,o),e=qn(nt.minDuration,nt.maxDuration,Hn(e)),o<1?(i=d=>{const h=d*o,m=h*e,p=h-n,y=Zu(d,o),S=Math.exp(-m);return R0-p/y*S},a=d=>{const m=d*o*e,p=m*n+n,y=Math.pow(o,2)*Math.pow(d,2)*e,S=Math.exp(-m),b=Zu(Math.pow(d,2),o);return(-i(d)+R0>0?-1:1)*((p-y)*S)/b}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},a=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const c=5/e,u=tO(i,a,c);if(e=On(e),isNaN(u))return{stiffness:nt.stiffness,damping:nt.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:o*2*Math.sqrt(r*d),duration:e}}}const eO=12;function tO(e,t,n){let r=n;for(let i=1;i<eO;i++)r=r-e(r)/t(r);return r}function Zu(e,t){return e*Math.sqrt(1-t*t)}const nO=["duration","bounce"],rO=["stiffness","damping","mass"];function N0(e,t){return t.some(n=>e[n]!==void 0)}function iO(e){let t={velocity:nt.velocity,stiffness:nt.stiffness,damping:nt.damping,mass:nt.mass,isResolvedFromDuration:!1,...e};if(!N0(e,rO)&&N0(e,nO))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*qn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:nt.mass,stiffness:i,damping:a}}else{const n=QA(e);t={...t,...n,mass:nt.mass},t.isResolvedFromDuration=!0}return t}function L0(e=nt.visualDuration,t=nt.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],c={done:!1,value:a},{stiffness:u,damping:d,mass:h,duration:m,velocity:p,isResolvedFromDuration:y}=iO({...n,velocity:-Hn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),E=o-a,w=Hn(Math.sqrt(u/h)),C=Math.abs(E)<5;r||(r=C?nt.restSpeed.granular:nt.restSpeed.default),i||(i=C?nt.restDelta.granular:nt.restDelta.default);let A;if(b<1){const O=Zu(w,b);A=R=>{const V=Math.exp(-b*w*R);return o-V*((S+b*w*E)/O*Math.sin(O*R)+E*Math.cos(O*R))}}else if(b===1)A=O=>o-Math.exp(-w*O)*(E+(S+w*E)*O);else{const O=w*Math.sqrt(b*b-1);A=R=>{const V=Math.exp(-b*w*R),F=Math.min(O*R,300);return o-V*((S+b*w*E)*Math.sinh(F)+O*E*Math.cosh(F))/O}}const $={calculatedDuration:y&&m||null,next:O=>{const R=A(O);if(y)c.done=O>=m;else{let V=0;b<1&&(V=O===0?On(S):$0(A,O,R));const F=Math.abs(V)<=r,z=Math.abs(o-R)<=i;c.done=F&&z}return c.value=c.done?o:R,c},toString:()=>{const O=Math.min(fg($),fu),R=hg(V=>$.next(O*V).value,O,30);return O+"ms "+R}};return $}function k0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},y=F=>c!==void 0&&F<c||u!==void 0&&F>u,S=F=>c===void 0?u:u===void 0||Math.abs(c-F)<Math.abs(u-F)?c:u;let b=n*t;const E=m+b,w=o===void 0?E:o(E);w!==E&&(b=w-m);const C=F=>-b*Math.exp(-F/r),A=F=>w+C(F),$=F=>{const z=C(F),Q=A(F);p.done=Math.abs(z)<=d,p.value=p.done?w:Q};let O,R;const V=F=>{y(p.value)&&(O=F,R=L0({keyframes:[p.value,S(p.value)],velocity:$0(A,F,p.value),damping:i,stiffness:a,restDelta:d,restSpeed:h}))};return V(0),{calculatedDuration:null,next:F=>{let z=!1;return!R&&O===void 0&&(z=!0,$(F),V(F)),O!==void 0&&F>=O?R.next(F-O):(!z&&$(F),p)}}}const sO=Qs(.42,0,1,1),oO=Qs(0,0,.58,1),j0=Qs(.42,0,.58,1),aO=e=>Array.isArray(e)&&typeof e[0]!="number",F0={linear:Rt,easeIn:sO,easeInOut:j0,easeOut:oO,circIn:Nu,circInOut:i0,circOut:r0,backIn:Ru,backInOut:t0,backOut:e0,anticipate:n0},V0=e=>{if(hu(e)){vr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Qs(t,n,r,i)}else if(typeof e=="string")return vr(F0[e]!==void 0,`Invalid easing type '${e}'`),F0[e];return e};function lO(e,t,n){const r=[],i=n||D0,a=e.length-1;for(let o=0;o<a;o++){let c=i(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||Rt:t;c=no(u,c)}r.push(c)}return r}function cO(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(vr(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 c=lO(t,r,i),u=c.length,d=h=>{if(o&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const p=Fi(e[m],e[m+1],h);return c[m](p)};return n?h=>d(qn(e[0],e[a-1],h)):d}function uO(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Fi(0,t,r);e.push(tt(n,1,i))}}function fO(e){const t=[0];return uO(t,e.length-1),t}function dO(e,t){return e.map(n=>n*t)}function hO(e,t){return e.map(()=>t||j0).splice(0,e.length-1)}function ro({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=aO(r)?r.map(V0):V0(r),a={done:!1,value:t[0]},o=dO(n&&n.length===t.length?n:fO(t),e),c=cO(o,t,{ease:Array.isArray(i)?i:hO(t,i)});return{calculatedDuration:e,next:u=>(a.value=c(u),a.done=u>=e,a)}}const mO=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ye.update(t,!0),stop:()=>br(t),now:()=>yt.isProcessing?yt.timestamp:Mn.now()}},pO={decay:k0,inertia:k0,tween:ro,keyframes:ro,spring:L0},gO=e=>e/100;let Ju=class extends O0{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:a}=this.options,o=(i==null?void 0:i.KeyframeResolver)||Yu,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new o(a,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=this.options,c=du(n)?n:pO[n]||ro;let u,d;process.env.NODE_ENV!=="production"&&c!==ro&&vr(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==ro&&typeof t[0]!="number"&&(u=no(gO,D0(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});a==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-o})),h.calculatedDuration===null&&(h.calculatedDuration=fg(h));const{calculatedDuration:m}=h,p=m+i,y=p*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:i,generator:a,mirroredGenerator:o,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return a.next(0);const{delay:p,repeat:y,repeatType:S,repeatDelay:b,onUpdate:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const w=this.currentTime-p*(this.speed>=0?1:-1),C=this.speed>=0?w<0:w>h;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let A=this.currentTime,$=a;if(y){const F=Math.min(this.currentTime,h)/m;let z=Math.floor(F),Q=F%1;!Q&&F>=1&&(Q=1),Q===1&&z--,z=Math.min(z,y+1),!!(z%2)&&(S==="reverse"?(Q=1-Q,b&&(Q-=b/m)):S==="mirror"&&($=o)),A=qn(0,1,Q)*m}const O=C?{done:!1,value:u[0]}:$.next(A);c&&(O.value=c(O.value));let{done:R}=O;!C&&d!==null&&(R=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return V&&i!==void 0&&(O.value=Oa(u,this.options,i)),E&&E(O.value),V&&this.finish(),O}get duration(){const{resolved:t}=this;return t?Hn(t.calculatedDuration):0}get time(){return Hn(this.currentTime)}set time(t){t=On(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Hn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=mO,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};const yO=new Set(["opacity","clipPath","filter","transform"]);function vO(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=pg(c,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}const bO=lu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_a=10,xO=2e4;function wO(e){return du(e.type)||e.type==="spring"||!mg(e.ease)}function SO(e,t){const n=new Ju({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<xO;)r=n.sample(a),i.push(r.value),a+=_a;return{times:void 0,keyframes:i,duration:a-_a,ease:"linear"}}const B0={anticipate:n0,backInOut:t0,circInOut:i0};function TO(e){return e in B0}let W0=class extends O0{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:a}=this.options;this.resolver=new P0(a,(o,c)=>this.onKeyframesResolved(o,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:a,type:o,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof a=="string"&&ba()&&TO(a)&&(a=B0[a]),wO(this.options)){const{onComplete:m,onUpdate:p,motionValue:y,element:S,...b}=this.options,E=SO(t,b);t=E.keyframes,t.length===1&&(t[1]=t[0]),r=E.duration,i=E.times,a=E.ease,o="keyframes"}const h=vO(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:a});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(dg(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Oa(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:o,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Hn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Hn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=On(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Rt;const{animation:r}=n;dg(r,t)}return Rt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:a,ease:o,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:p,...y}=this.options,S=new Ju({...y,keyframes:r,duration:i,type:a,ease:o,times:c,isGenerator:!0}),b=On(this.time);d.setWithVelocity(S.sample(b-_a).value,S.sample(b).value,_a)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:a,damping:o,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return bO()&&r&&yO.has(r)&&(r!=="transform"||!d)&&!u&&!i&&a!=="mirror"&&o!==0&&c!=="inertia"}};const EO={type:"spring",stiffness:500,damping:25,restSpeed:10},CO=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),PO={type:"keyframes",duration:.8},AO={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},OO=(e,{keyframes:t})=>t.length>2?PO:qr.has(e)?e.startsWith("scale")?CO(t[1]):EO:AO;function MO({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const Qu=(e,t,n,r={},i,a)=>o=>{const c=uu(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-On(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{o(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:a?void 0:i};MO(c)||(h={...h,...OO(e,h)}),h.duration&&(h.duration=On(h.duration)),h.repeatDelay&&(h.repeatDelay=On(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)),h.allowFlatten=!c.type&&!c.ease,m&&!a&&t.get()!==void 0){const p=Oa(h.keyframes,c);if(p!==void 0)return Ye.update(()=>{h.onUpdate(p),h.onComplete()}),new tP([])}return!a&&W0.supports(h)?new W0(h):new Ju(h)};function _O({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function U0(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(o=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const p=e.getValue(m,(a=e.latestValues[m])!==null&&a!==void 0?a:null),y=u[m];if(y===void 0||h&&_O(h,m))continue;const S={delay:n,...uu(o||{},m)};let b=!1;if(window.MotionHandoffAnimation){const w=Xg(e);if(w){const C=window.MotionHandoffAnimation(w,m,Ye);C!==null&&(S.startTime=C,b=!0)}}$u(e,m),p.start(Qu(m,p,y,e.shouldReduceMotion&&Kg.has(m)?{type:!1}:S,e,b));const E=p.animation;E&&d.push(E)}return c&&Promise.all(d).then(()=>{Ye.update(()=>{c&&sA(e,c)})}),d}function ef(e,t,n={}){var r;const i=Js(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const o=i?()=>Promise.all(U0(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=a;return IO(e,t,h+d,m,p,n)}:()=>Promise.resolve(),{when:u}=a;if(u){const[d,h]=u==="beforeChildren"?[o,c]:[c,o];return d().then(()=>h())}else return Promise.all([o(),c(n.delay)])}function IO(e,t,n=0,r=0,i=1,a){const o=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(DO).forEach((d,h)=>{d.notify("AnimationStart",t),o.push(ef(d,t,{...a,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(o)}function DO(e,t){return e.sortNodePosition(t)}function $O(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>ef(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=ef(e,t,n);else{const i=typeof t=="function"?Js(e,t,n.custom):t;r=Promise.all(U0(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function z0(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 RO=xu.length;function G0(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?G0(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<RO;n++){const r=xu[n],i=e.props[r];(qs(i)||i===!1)&&(t[r]=i)}return t}const NO=[...bu].reverse(),LO=bu.length;function kO(e){return t=>Promise.all(t.map(({animation:n,options:r})=>$O(e,n,r)))}function jO(e){let t=kO(e),n=Y0(),r=!0;const i=u=>(d,h)=>{var m;const p=Js(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:y,transitionEnd:S,...b}=p;d={...d,...b,...S}}return d};function a(u){t=u(e)}function o(u){const{props:d}=e,h=G0(e.parent)||{},m=[],p=new Set;let y={},S=1/0;for(let E=0;E<LO;E++){const w=NO[E],C=n[w],A=d[w]!==void 0?d[w]:h[w],$=qs(A),O=w===u?C.isActive:null;O===!1&&(S=E);let R=A===h[w]&&A!==d[w]&&$;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),C.protectedKeys={...y},!C.isActive&&O===null||!A&&!C.prevProp||Ea(A)||typeof A=="boolean")continue;const V=FO(C.prevProp,A);let F=V||w===u&&C.isActive&&!R&&$||E>S&&$,z=!1;const Q=Array.isArray(A)?A:[A];let ne=Q.reduce(i(w),{});O===!1&&(ne={});const{prevResolvedValues:ue={}}=C,ve={...ue,...ne},de=j=>{F=!0,p.has(j)&&(z=!0,p.delete(j)),C.needsAnimating[j]=!0;const W=e.getValue(j);W&&(W.liveStyle=!1)};for(const j in ve){const W=ne[j],q=ue[j];if(y.hasOwnProperty(j))continue;let M=!1;Iu(W)&&Iu(q)?M=!z0(W,q):M=W!==q,M?W!=null?de(j):p.add(j):W!==void 0&&p.has(j)?de(j):C.protectedKeys[j]=!0}C.prevProp=A,C.prevResolvedValues=ne,C.isActive&&(y={...y,...ne}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(R&&V)||z)&&m.push(...Q.map(j=>({animation:j,options:{type:w}})))}if(p.size){const E={};if(typeof d.initial!="boolean"){const w=Js(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(E.transition=w.transition)}p.forEach(w=>{const C=e.getBaseTarget(w),A=e.getValue(w);A&&(A.liveStyle=!0),E[w]=C??null}),m.push({animation:E})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(m):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var y;return(y=p.animationState)===null||y===void 0?void 0:y.setActive(u,d)}),n[u].isActive=d;const m=o(u);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:o,setActive:c,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Y0(),r=!0}}}function FO(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!z0(t,e):!1}function Jr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Y0(){return{animate:Jr(!0),whileInView:Jr(),whileHover:Jr(),whileTap:Jr(),whileDrag:Jr(),whileFocus:Jr(),exit:Jr()}}let Sr=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},VO=class extends Sr{constructor(t){super(t),t.animationState||(t.animationState=jO(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ea(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}},BO=0;const WO={animation:{Feature:VO},exit:{Feature:class extends Sr{constructor(){super(...arguments),this.id=BO++}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(){}}}};function io(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function so(e){return{point:{x:e.pageX,y:e.pageY}}}const UO=e=>t=>yu(t)&&e(t,so(t));function oo(e,t,n,r){return io(e,t,UO(n),r)}function H0({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function zO({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function GO(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 q0=1e-4,YO=1-q0,HO=1+q0,K0=.01,qO=0-K0,KO=0+K0;function Mt(e){return e.max-e.min}function XO(e,t,n){return Math.abs(e-t)<=n}function X0(e,t,n,r=.5){e.origin=r,e.originPoint=tt(t.min,t.max,e.origin),e.scale=Mt(n)/Mt(t),e.translate=tt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=YO&&e.scale<=HO||isNaN(e.scale))&&(e.scale=1),(e.translate>=qO&&e.translate<=KO||isNaN(e.translate))&&(e.translate=0)}function ao(e,t,n,r){X0(e.x,t.x,n.x,r?r.originX:void 0),X0(e.y,t.y,n.y,r?r.originY:void 0)}function Z0(e,t,n){e.min=n.min+t.min,e.max=e.min+Mt(t)}function ZO(e,t,n){Z0(e.x,t.x,n.x),Z0(e.y,t.y,n.y)}function J0(e,t,n){e.min=t.min-n.min,e.max=e.min+Mt(t)}function lo(e,t,n){J0(e.x,t.x,n.x),J0(e.y,t.y,n.y)}const Q0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Yi=()=>({x:Q0(),y:Q0()}),ey=()=>({min:0,max:0}),at=()=>({x:ey(),y:ey()});function tn(e){return[e("x"),e("y")]}function tf(e){return e===void 0||e===1}function nf({scale:e,scaleX:t,scaleY:n}){return!tf(e)||!tf(t)||!tf(n)}function Qr(e){return nf(e)||ty(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ty(e){return ny(e.x)||ny(e.y)}function ny(e){return e&&e!=="0%"}function Ia(e,t,n){const r=e-n,i=t*r;return n+i}function ry(e,t,n,r,i){return i!==void 0&&(e=Ia(e,i,r)),Ia(e,n,r)+t}function rf(e,t=0,n=1,r,i){e.min=ry(e.min,t,n,r,i),e.max=ry(e.max,t,n,r,i)}function iy(e,{x:t,y:n}){rf(e.x,t.translate,t.scale,t.originPoint),rf(e.y,n.translate,n.scale,n.originPoint)}const sy=.999999999999,oy=1.0000000000001;function JO(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let c=0;c<i;c++){a=n[c],o=a.projectionDelta;const{visualElement:u}=a.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&qi(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,iy(e,o)),r&&Qr(a.latestValues)&&qi(e,a.latestValues))}t.x<oy&&t.x>sy&&(t.x=1),t.y<oy&&t.y>sy&&(t.y=1)}function Hi(e,t){e.min=e.min+t,e.max=e.max+t}function ay(e,t,n,r,i=.5){const a=tt(e.min,e.max,i);rf(e,t,n,a,r)}function qi(e,t){ay(e.x,t.x,t.scaleX,t.scale,t.originX),ay(e.y,t.y,t.scaleY,t.scale,t.originY)}function ly(e,t){return H0(GO(e.getBoundingClientRect(),t))}function QO(e,t,n){const r=ly(e,n),{scroll:i}=t;return i&&(Hi(r.x,i.offset.x),Hi(r.y,i.offset.y)),r}const cy=({current:e})=>e?e.ownerDocument.defaultView:null,uy=(e,t)=>Math.abs(e-t);function eM(e,t){const n=uy(e.x,t.x),r=uy(e.y,t.y);return Math.sqrt(n**2+r**2)}let fy=class{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=of(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=eM(m.offset,{x:0,y:0})>=3;if(!p&&!y)return;const{point:S}=m,{timestamp:b}=yt;this.history.push({...S,timestamp:b});const{onStart:E,onMove:w}=this.handlers;p||(E&&E(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=sf(p,this.transformPagePoint),Ye.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:y,onSessionEnd:S,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=of(m.type==="pointercancel"?this.lastMoveEventInfo:sf(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,E),S&&S(m,E)},!yu(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=so(t),c=sf(o,this.transformPagePoint),{point:u}=c,{timestamp:d}=yt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,of(c,this.history)),this.removeListeners=no(oo(this.contextWindow,"pointermove",this.handlePointerMove),oo(this.contextWindow,"pointerup",this.handlePointerUp),oo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),br(this.updatePoint)}};function sf(e,t){return t?{point:t(e.point)}:e}function dy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function of({point:e},t){return{point:e,delta:dy(e,hy(t)),offset:dy(e,tM(t)),velocity:nM(t,.1)}}function tM(e){return e[0]}function hy(e){return e[e.length-1]}function nM(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=hy(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>On(t)));)n--;if(!r)return{x:0,y:0};const a=Hn(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 rM(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?tt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?tt(n,e,r.max):Math.min(e,n)),e}function my(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 iM(e,{top:t,left:n,bottom:r,right:i}){return{x:my(e.x,n,i),y:my(e.y,t,r)}}function py(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 sM(e,t){return{x:py(e.x,t.x),y:py(e.y,t.y)}}function oM(e,t){let n=.5;const r=Mt(e),i=Mt(t);return i>r?n=Fi(t.min,t.max-r,e.min):r>i&&(n=Fi(e.min,e.max-i,t.min)),qn(0,1,n)}function aM(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 af=.35;function lM(e=af){return e===!1?e=0:e===!0&&(e=af),{x:gy(e,"left","right"),y:gy(e,"top","bottom")}}function gy(e,t,n){return{min:yy(e,t),max:yy(e,n)}}function yy(e,t){return typeof e=="number"?e:e[t]||0}const cM=new WeakMap;let uM=class{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=at(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(so(h).point)},a=(h,m)=>{const{drag:p,dragPropagation:y,onDragStart:S}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=aP(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tn(E=>{let w=this.getAxisMotionValue(E).get()||0;if(_n.test(w)){const{projection:C}=this.visualElement;if(C&&C.layout){const A=C.layout.layoutBox[E];A&&(w=Mt(A)*(parseFloat(w)/100))}}this.originPoint[E]=w}),S&&Ye.postRender(()=>S(h,m)),$u(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},o=(h,m)=>{const{dragPropagation:p,dragDirectionLock:y,onDirectionLock:S,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:E}=m;if(y&&this.currentDirection===null){this.currentDirection=fM(E),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,E),this.updateAxis("y",m.point,E),this.visualElement.render(),b&&b(h,m)},c=(h,m)=>this.stop(h,m),u=()=>tn(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new fy(t,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:cy(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&Ye.postRender(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Da(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=rM(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&Bi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=iM(i.layoutBox,n):this.constraints=!1,this.elastic=lM(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=aM(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Bi(t))return!1;const r=t.current;vr(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=QO(r,i.root,this.visualElement.getTransformPagePoint());let o=sM(i.layout.layoutBox,a);if(n){const c=n(zO(o));this.hasMutatedConstraints=!!c,c&&(o=H0(c))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=tn(h=>{if(!Da(h,n,this.currentDirection))return;let m=u&&u[h]||{};o&&(m={min:0,max:0});const p=i?200:1e6,y=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...a,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return $u(this.visualElement,t),r.start(Qu(t,r,0,n,this.visualElement,!1))}stopAnimation(){tn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){tn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){tn(n=>{const{drag:r}=this.getProps();if(!Da(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:c}=i.layout.layoutBox[n];a.set(t[n]-tt(o,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Bi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};tn(o=>{const c=this.getAxisMotionValue(o);if(c&&this.constraints!==!1){const u=c.get();i[o]=oM({min:u,max:u},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(),tn(o=>{if(!Da(o,t,null))return;const c=this.getAxisMotionValue(o),{min:u,max:d}=this.constraints[o];c.set(tt(u,d,i[o]))})}addListeners(){if(!this.visualElement.current)return;cM.set(this.visualElement,this);const t=this.visualElement.current,n=oo(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Bi(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Ye.read(r);const o=io(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(tn(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=u[h].translate,m.set(m.get()+u[h].translate))}),this.visualElement.render())});return()=>{o(),n(),a(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=af,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:c}}};function Da(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function fM(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}let dM=class extends Sr{constructor(t){super(t),this.removeGroupControls=Rt,this.removeListeners=Rt,this.controls=new uM(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Rt}unmount(){this.removeGroupControls(),this.removeListeners()}};const vy=e=>(t,n)=>{e&&Ye.postRender(()=>e(t,n))};let hM=class extends Sr{constructor(){super(...arguments),this.removePointerDownListener=Rt}onPointerDown(t){this.session=new fy(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:cy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:vy(t),onStart:vy(n),onMove:r,onEnd:(a,o)=>{delete this.session,i&&Ye.postRender(()=>i(a,o))}}}mount(){this.removePointerDownListener=oo(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 $a={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function by(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const co={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=by(e,t.target.x),r=by(e,t.target.y);return`${n}% ${r}%`}},mM={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=wr.parse(e);if(i.length>5)return r;const a=wr.createTransformer(e),o=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+o]/=c,i[1+o]/=u;const d=tt(c,u,.5);return typeof i[2+o]=="number"&&(i[2+o]/=d),typeof i[3+o]=="number"&&(i[3+o]/=d),a(i)}};let pM=class extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;$P(gM),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),$a.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,o=r.projection;return o&&(o.isPresent=a,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||Ye.postRender(()=>{const c=o.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),gu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}};function xy(e){const[t,n]=ag(),r=I.useContext(nu);return v.jsx(pM,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(Ig),isPresent:t,safeToRemove:n})}const gM={borderRadius:{...co,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:co,borderTopRightRadius:co,borderBottomLeftRadius:co,borderBottomRightRadius:co,boxShadow:mM};function yM(e,t,n){const r=St(e)?e:Hs(e);return r.start(Qu("",r,t,n)),r.animation}function vM(e){return e instanceof SVGElement&&e.tagName!=="svg"}const bM=(e,t)=>e.depth-t.depth;let xM=class{constructor(){this.children=[],this.isDirty=!1}add(t){ou(this.children,t),this.isDirty=!0}remove(t){au(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(bM),this.isDirty=!1,this.children.forEach(t)}};function wM(e,t){const n=Mn.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(br(r),e(a-t))};return Ye.read(r,!0),()=>br(r)}const wy=["TopLeft","TopRight","BottomLeft","BottomRight"],SM=wy.length,Sy=e=>typeof e=="string"?parseFloat(e):e,Ty=e=>typeof e=="number"||Se.test(e);function TM(e,t,n,r,i,a){i?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,EM(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,CM(r))):a&&(e.opacity=tt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<SM;o++){const c=`border${wy[o]}Radius`;let u=Ey(t,c),d=Ey(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||Ty(u)===Ty(d)?(e[c]=Math.max(tt(Sy(u),Sy(d),r),0),(_n.test(d)||_n.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=tt(t.rotate||0,n.rotate||0,r))}function Ey(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const EM=Cy(0,.5,r0),CM=Cy(.5,.95,Rt);function Cy(e,t,n){return r=>r<e?0:r>t?1:n(Fi(e,t,r))}function Py(e,t){e.min=t.min,e.max=t.max}function nn(e,t){Py(e.x,t.x),Py(e.y,t.y)}function Ay(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Oy(e,t,n,r,i){return e-=t,e=Ia(e,1/n,r),i!==void 0&&(e=Ia(e,1/i,r)),e}function PM(e,t=0,n=1,r=.5,i,a=e,o=e){if(_n.test(t)&&(t=parseFloat(t),t=tt(o.min,o.max,t/100)-o.min),typeof t!="number")return;let c=tt(a.min,a.max,r);e===a&&(c-=t),e.min=Oy(e.min,t,n,c,i),e.max=Oy(e.max,t,n,c,i)}function My(e,t,[n,r,i],a,o){PM(e,t[n],t[r],t[i],t.scale,a,o)}const AM=["x","scaleX","originX"],OM=["y","scaleY","originY"];function _y(e,t,n,r){My(e.x,t,AM,n?n.x:void 0,r?r.x:void 0),My(e.y,t,OM,n?n.y:void 0,r?r.y:void 0)}function Iy(e){return e.translate===0&&e.scale===1}function Dy(e){return Iy(e.x)&&Iy(e.y)}function $y(e,t){return e.min===t.min&&e.max===t.max}function MM(e,t){return $y(e.x,t.x)&&$y(e.y,t.y)}function Ry(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ny(e,t){return Ry(e.x,t.x)&&Ry(e.y,t.y)}function Ly(e){return Mt(e.x)/Mt(e.y)}function ky(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}let _M=class{constructor(){this.members=[]}add(t){ou(this.members,t),t.scheduleRender()}remove(t){if(au(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 IM(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:d,rotate:h,rotateX:m,rotateY:p,skewX:y,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),y&&(r+=`skewX(${y}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const lf=["","X","Y","Z"],DM={visibility:"hidden"},jy=1e3;let $M=0;function cf(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Fy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Xg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ye,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Fy(r)}function Vy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},c=t==null?void 0:t()){this.id=$M++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(LM),this.nodes.forEach(BM),this.nodes.forEach(WM),this.nodes.forEach(kM)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new xM)}addEventListener(o,c){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new cu),this.eventHandlers.get(o).add(c)}notifyListeners(o,...c){const u=this.eventHandlers.get(o);u&&u.notify(...c)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=vM(o),this.instance=o;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=wM(p,250),$a.hasAnimatedSinceResize&&($a.hasAnimatedSinceResize=!1,this.nodes.forEach(Wy))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:y,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||h.getDefaultTransition()||HM,{onLayoutAnimationStart:E,onLayoutAnimationComplete:w}=h.getProps(),C=!this.targetLayout||!Ny(this.targetLayout,S),A=!p&&y;if(this.options.layoutRoot||this.resumeFrom||A||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,A);const $={...uu(b,"layout"),onPlay:E,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||Wy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}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,br(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(UM),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&&Fy(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:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(By);return}this.isUpdating||this.nodes.forEach(FM),this.isUpdating=!1,this.nodes.forEach(VM),this.nodes.forEach(RM),this.nodes.forEach(NM),this.clearAllSnapshots();const c=Mn.now();yt.delta=qn(0,1e3/60,c-yt.timestamp),yt.timestamp=c,yt.isProcessing=!0,pu.update.process(yt),pu.preRender.process(yt),pu.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,gu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(jM),this.sharedNodes.forEach(zM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ye.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ye.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Mt(this.snapshot.measuredBox.x)&&!Mt(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 u=0;u<this.path.length;u++)this.path[u].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=at(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!Dy(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;o&&(c||Qr(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return o&&(u=this.removeTransform(u)),qM(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:c}=this.options;if(!c)return at();const u=c.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(KM))){const{scroll:h}=this.root;h&&(Hi(u.x,h.offset.x),Hi(u.y,h.offset.y))}return u}removeElementScroll(o){var c;const u=at();if(nn(u,o),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&nn(u,o),Hi(u.x,m.offset.x),Hi(u.y,m.offset.y))}return u}applyTransform(o,c=!1){const u=at();nn(u,o);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&qi(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),Qr(h.latestValues)&&qi(u,h.latestValues)}return Qr(this.latestValues)&&qi(u,this.latestValues),u}removeTransform(o){const c=at();nn(c,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!Qr(d.latestValues))continue;nf(d.latestValues)&&d.updateSnapshot();const h=at(),m=d.measurePageBox();nn(h,m),_y(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return Qr(this.latestValues)&&_y(c,this.latestValues),c}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!==yt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(o||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=yt.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),lo(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=at(),this.targetWithTransforms=at()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ZO(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),iy(this.target,this.targetDelta)):nn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),lo(this.relativeTargetOrigin,this.target,y.target),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||nf(this.parent.latestValues)||ty(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 o;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===yt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;nn(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,y=this.treeScale.y;JO(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=at());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ay(this.prevProjectionDelta.x,this.projectionDelta.x),Ay(this.prevProjectionDelta.y,this.projectionDelta.y)),ao(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==y||!ky(this.projectionDelta.x,this.prevProjectionDelta.x)||!ky(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),o){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Yi(),this.projectionDelta=Yi(),this.projectionDeltaWithTransform=Yi()}setAnimationOrigin(o,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=Yi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=at(),y=u?u.source:void 0,S=this.layout?this.layout.source:void 0,b=y!==S,E=this.getStack(),w=!E||E.members.length<=1,C=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(YM));this.animationProgress=0;let A;this.mixTargetDelta=$=>{const O=$/1e3;Uy(m.x,o.x,O),Uy(m.y,o.y,O),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(lo(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),GM(this.relativeTarget,this.relativeTargetOrigin,p,O),A&&MM(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=at()),nn(A,this.relativeTarget)),b&&(this.animationValues=h,TM(h,d,this.latestValues,O,C,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=O},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(br(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ye.update(()=>{$a.hasAnimatedSinceResize=!0,this.currentAnimation=yM(0,jy,{...o,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},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(jy),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=o;if(!(!c||!u||!d)){if(this!==o&&this.layout&&d&&qy(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||at();const m=Mt(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+m;const p=Mt(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+p}nn(c,u),qi(c,h),ao(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(o,c){this.sharedNodes.has(o)||this.sharedNodes.set(o,new _M),this.sharedNodes.get(o).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:c}=this.options;return c?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:c}=this.options;return c?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let c=!1;const{latestValues:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&cf("z",o,d,this.animationValues);for(let h=0;h<lf.length;h++)cf(`rotate${lf[h]}`,o,d,this.animationValues),cf(`skew${lf[h]}`,o,d,this.animationValues);o.render();for(const h in d)o.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);o.scheduleRender()}getProjectionStyles(o){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return DM;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Aa(o==null?void 0:o.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Aa(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!Qr(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=IM(this.projectionDeltaWithTransform,this.treeScale,p),h&&(d.transform=h(p,d.transform));const{x:y,y:S}=this.projectionDelta;d.transformOrigin=`${y.origin*100}% ${S.origin*100}% 0`,m.animationValues?d.opacity=m===this?(u=(c=p.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const b in Ks){if(p[b]===void 0)continue;const{correct:E,applyTo:w,isCSSVariable:C}=Ks[b],A=d.transform==="none"?p[b]:E(p[b],m);if(w){const $=w.length;for(let O=0;O<$;O++)d[w[O]]=A}else C?this.options.visualElement.renderState.vars[b]=A:d[b]=A}return this.options.layoutId&&(d.pointerEvents=m===this?Aa(o==null?void 0:o.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var c;return(c=o.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(By),this.root.sharedNodes.clear()}}}function RM(e){e.updateLayout()}function NM(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,o=n.source!==e.layout.source;a==="size"?tn(m=>{const p=o?n.measuredBox[m]:n.layoutBox[m],y=Mt(p);p.min=r[m].min,p.max=p.min+y}):qy(a,n.layoutBox,r)&&tn(m=>{const p=o?n.measuredBox[m]:n.layoutBox[m],y=Mt(r[m]);p.max=p.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+y)});const c=Yi();ao(c,r,n.layoutBox);const u=Yi();o?ao(u,e.applyTransform(i,!0),n.measuredBox):ao(u,r,n.layoutBox);const d=!Dy(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:y}=m;if(p&&y){const S=at();lo(S,n.layoutBox,p.layoutBox);const b=at();lo(b,r,y.layoutBox),Ny(S,b)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function LM(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 kM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function jM(e){e.clearSnapshot()}function By(e){e.clearMeasurements()}function FM(e){e.isLayoutDirty=!1}function VM(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Wy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function BM(e){e.resolveTargetDelta()}function WM(e){e.calcProjection()}function UM(e){e.resetSkewAndRotation()}function zM(e){e.removeLeadSnapshot()}function Uy(e,t,n){e.translate=tt(t.translate,0,n),e.scale=tt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function zy(e,t,n,r){e.min=tt(t.min,n.min,r),e.max=tt(t.max,n.max,r)}function GM(e,t,n,r){zy(e.x,t.x,n.x,r),zy(e.y,t.y,n.y,r)}function YM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const HM={duration:.45,ease:[.4,0,.1,1]},Gy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Yy=Gy("applewebkit/")&&!Gy("chrome/")?Math.round:Rt;function Hy(e){e.min=Yy(e.min),e.max=Yy(e.max)}function qM(e){Hy(e.x),Hy(e.y)}function qy(e,t,n){return e==="position"||e==="preserve-aspect"&&!XO(Ly(t),Ly(n),.2)}function KM(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const XM=Vy({attachResizeListener:(e,t)=>io(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),uf={current:void 0},Ky=Vy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!uf.current){const e=new XM({});e.mount(window),e.setOptions({layoutScroll:!0}),uf.current=e}return uf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ZM={pan:{Feature:hM},drag:{Feature:dM,ProjectionNode:Ky,MeasureLayout:xy}};function Xy(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&&Ye.postRender(()=>a(t,so(t)))}let JM=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=cP(t,(n,r)=>(Xy(this.node,r,"Start"),i=>Xy(this.node,i,"End"))))}unmount(){}},QM=class extends Sr{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=no(io(this.node.current,"focus",()=>this.onFocus()),io(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Zy(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&&Ye.postRender(()=>a(t,so(t)))}let e_=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=hP(t,(n,r)=>(Zy(this.node,r,"Start"),(i,{success:a})=>Zy(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const ff=new WeakMap,df=new WeakMap,t_=e=>{const t=ff.get(e.target);t&&t(e)},n_=e=>{e.forEach(t_)};function r_({root:e,...t}){const n=e||document;df.has(n)||df.set(n,{});const r=df.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(n_,{root:e,...t})),r[i]}function i_(e,t,n){const r=r_(t);return ff.set(e,n),r.observe(e),()=>{ff.delete(e),r.unobserve(e)}}const s_={some:0,all:1};let o_=class extends Sr{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:s_[i]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,a&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=d?h:m;p&&p(u)};return i_(this.node.current,o,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(a_(t,n))&&this.startObserver()}unmount(){}};function a_({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const l_={inView:{Feature:o_},tap:{Feature:e_},focus:{Feature:QM},hover:{Feature:JM}},c_={layout:{ProjectionNode:Ky,MeasureLayout:xy}},hf={current:null},Jy={current:!1};function u_(){if(Jy.current=!0,!!iu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>hf.current=e.matches;e.addListener(t),t()}else hf.current=!1}const f_=[...E0,Tt,wr],d_=e=>f_.find(T0(e)),h_=new WeakMap;function m_(e,t,n){for(const r in t){const i=t[r],a=n[r];if(St(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&va(i.version==="12.6.2",`Attempting to mix Motion versions ${i.version} with 12.6.2 may not work as expected.`);else if(St(a))e.addValue(r,Hs(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,Hs(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Qy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let p_=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Yu,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 y=Mn.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,Ye.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=o;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=Ca(n),this.isVariantNode=Og(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in p){const S=p[y];u[y]!==void 0&&St(S)&&S.set(u[y],!1)}}mount(t){this.current=t,h_.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)),Jy.current||u_(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:hf.current,process.env.NODE_ENV!=="production"&&va(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(),br(this.notifyUpdate),br(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=qr.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Ye.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 Vi){const n=Vi[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):at()}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<Qy.length;r++){const i=Qy[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=m_(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Hs(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(w0(i)||s0(i))?i=parseFloat(i):!d_(i)&&wr.test(n)&&(i=h0(t,n)),this.setBaseTarget(t,St(i)?i.get():i)),St(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=_u(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!St(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new cu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},ev=class extends p_{constructor(){super(...arguments),this.KeyframeResolver=P0}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;St(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function g_(e){return window.getComputedStyle(e)}let y_=class extends ev{constructor(){super(...arguments),this.type="html",this.renderInstance=zg}readValueFromInstance(t,n){if(qr.has(n))return _A(t,n);{const r=g_(t),i=(Su(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ly(t,n)}build(t,n,r){Cu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Du(t,n,r)}},v_=class extends ev{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=at,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Ug(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(qr.has(n)){const r=d0(n);return r&&r.default||0}return n=Gg.has(n)?n:wu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Hg(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Ye.postRender(this.updateDimensions)}build(t,n,r){Ou(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Yg(t,n,r,i)}mount(t){this.isSVGTag=Mu(t.tagName),super.mount(t)}};const b_=(e,t)=>Au(e)?new v_(t):new y_(t,{allowProjection:e!==I.Fragment}),x_=rA({...WO,...l_,...ZM,...c_},b_),mf=xP(x_),w_=500,pf=({id:e,content:t,type:n="info",duration:r=0,onClose:i})=>{const[a,o]=I.useState(!0);let c=eu,u,d,h;switch(n){case"success":u="text-green-500",d="bg-green-50",h="border-green-500",c=VC;break;case"error":u="text-red-500",d="bg-red-50",h="border-red-500",c=YC;break;case"warning":u="text-yellow-500",d="bg-yellow-50",h="border-yellow-500",c=jC;break;case"loading":u="text-gray-500",d="bg-gray-50",h="border-gray-500",c=eu;break;case"info":default:u="text-blue-500",d="bg-blue-50",h="border-blue-500",c=eu}I.useEffect(()=>{if(r===0)return;const p=setTimeout(()=>{o(!1)},r);return()=>clearTimeout(p)},[r]),I.useEffect(()=>{if(!a){const p=setTimeout(i,w_);return()=>clearTimeout(p)}},[a,i]);const m={initial:{opacity:0,y:50,scale:.9},animate:{opacity:1,y:0,scale:1,transition:{duration:.3,type:"spring",stiffness:300,damping:20}},exit:{opacity:0,y:20,scale:.95,transition:{duration:.2,ease:"easeOut"}}};return v.jsx(ZC,{onExitComplete:i,children:a&&v.jsx(mf.div,{id:e,className:`toast w-[320px] rounded-xl border-[1.5px] p-8 shadow-md ${d} ${h}`,initial:"initial",animate:"animate",exit:"exit",variants:m,layout:!0,children:v.jsxs("div",{className:"flex justify-between items-center p-3",children:[v.jsxs("div",{className:"flex items-center gap-6",children:[v.jsx(De,{icon:c,className:`w-20 h-20 min-h-20 min-w-20 ${u}`}),v.jsx("span",{className:"text-gray-800 font-medium text-base",children:t})]}),v.jsx("button",{onClick:()=>o(!1),className:"text-gray-500 transition-all hover:text-gray-700 flex items-center",children:v.jsx(De,{icon:GC,className:"w-20 h-20 min-h-20 min-w-20"})})]})})})},tv=({promise:e,messages:t,options:n,onClose:r})=>{const[i,a]=I.useState("loading"),[o,c]=I.useState(t.loading);return I.useEffect(()=>{e.then(()=>{console.log("promise resolved"),a("success"),c(t.success)}).catch(()=>{console.log("promise rejected"),a("error"),c(t.error)}).finally(()=>{console.log("promise finally"),setTimeout(()=>{r()},(n==null?void 0:n.duration)||3e3)})},[e]),v.jsx(pf,{content:o,type:i,duration:n.duration,onClose:r})};/*!
|
|
621
|
+
`),()=>{document.head.removeChild(y)}},[t]),v.jsx(HC,{isPresent:t,childRef:i,sizeRef:o,children:X.cloneElement(e,{ref:i})})}const KC=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=ru(XC),d=I.useId(),h=I.useCallback(p=>{u.set(p,!0);for(const y of u.values())if(!y)return;r&&r()},[u,r]),m=I.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),o?[Math.random(),h]:[n,h]);return I.useMemo(()=>{u.forEach((p,y)=>u.set(y,!1))},[n]),X.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=v.jsx(qC,{isPresent:n,anchorX:c,children:e})),v.jsx(ga.Provider,{value:m,children:e})};function XC(){return new Map}function ag(e=!0){const t=I.useContext(ga);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=I.useId();I.useEffect(()=>{if(e)return i(o)},[e]);const a=I.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const ya=e=>e.key||"";function lg(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const ZC=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=ag(a),h=I.useMemo(()=>lg(e),[e]),m=a&&!u?[]:h.map(ya),p=I.useRef(!0),y=I.useRef(h),S=ru(()=>new Map),[b,E]=I.useState(h),[w,C]=I.useState(h);og(()=>{p.current=!1,y.current=h;for(let P=0;P<w.length;P++){const R=ya(w[P]);m.includes(R)?S.delete(R):S.get(R)!==!0&&S.set(R,!1)}},[w,m.length,m.join("-")]);const M=[];if(h!==b){let P=[...h];for(let R=0;R<w.length;R++){const k=w[R],j=ya(k);m.includes(j)||(P.splice(R,0,k),M.push(k))}return o==="wait"&&M.length&&(P=M),C(lg(P)),E(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:$}=I.useContext(nu);return v.jsx(v.Fragment,{children:w.map(P=>{const R=ya(P),k=a&&!u?!1:h===w||m.includes(R),j=()=>{if(S.has(R))S.set(R,!0);else return;let z=!0;S.forEach(Z=>{Z||(z=!1)}),z&&($==null||$(),C(y.current),a&&(d==null||d()),r&&r())};return v.jsx(KC,{isPresent:k,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:k?void 0:j,anchorX:c,children:P},R)})})};function ou(e,t){e.indexOf(t)===-1&&e.push(t)}function au(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Rt=e=>e;let ji=Rt,vr=Rt;process.env.NODE_ENV!=="production"&&(ji=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},vr=(e,t)=>{if(!e)throw new Error(t)});const JC={useManualTiming:!1};function lu(e){let t;return()=>(t===void 0&&(t=e()),t)}const Fi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let cu=class{constructor(){this.subscriptions=[]}add(t){return ou(this.subscriptions,t),()=>au(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const Mn=e=>e*1e3,Hn=e=>e/1e3;function cg(e,t){return t?e*(1e3/t):0}const ug=new Set;function va(e,t,n){e||ug.has(t)||(console.warn(t),ug.add(t))}const QC=lu(()=>window.ScrollTimeline!==void 0);let eP=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(QC()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},tP=class extends eP{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function uu(e,t){return e?e[t]||e.default||e:void 0}const fu=2e4;function fg(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<fu;)t+=n,r=e.next(t);return t>=fu?1/0:t}function du(e){return typeof e=="function"}function dg(e,t){e.timeline=t,e.onfinish=null}const hu=e=>Array.isArray(e)&&typeof e[0]=="number",nP={linearEasing:void 0};function rP(e,t){const n=lu(e);return()=>{var r;return(r=nP[t])!==null&&r!==void 0?r:n()}}const ba=rP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),hg=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Fi(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function mg(e){return!!(typeof e=="function"&&ba()||!e||typeof e=="string"&&(e in mu||ba())||hu(e)||Array.isArray(e)&&e.every(mg))}const Gs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,mu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Gs([0,.65,.55,1]),circOut:Gs([.55,0,1,.45]),backIn:Gs([.31,.01,.66,-.59]),backOut:Gs([.33,1.53,.69,.99])};function pg(e,t){if(e)return typeof e=="function"&&ba()?hg(e,t):hu(e)?Gs(e):Array.isArray(e)?e.map(n=>pg(n,t)||mu.easeOut):mu[e]}const xa=["read","resolveKeyframes","update","preRender","render","postRender"],gg={value:null};function iP(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,p=!1,y=!1)=>{const b=y&&i?n:r;return p&&a.add(m),b.has(m)||b.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&gg.value&&gg.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const sP=40;function yg(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=xa.reduce((w,C)=>(w[C]=iP(o,t?C:void 0),w),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:p}=a,y=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,sP),1),i.timestamp=w,i.isProcessing=!0,c.process(i),u.process(i),d.process(i),h.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},S=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:xa.reduce((w,C)=>{const M=a[C];return w[C]=($,P=!1,R=!1)=>(n||S(),M.schedule($,P,R)),w},{}),cancel:w=>{for(let C=0;C<xa.length;C++)a[xa[C]].cancel(w)},state:i,steps:a}}const{schedule:Ye,cancel:br,state:yt,steps:pu}=yg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Rt,!0),{schedule:gu}=yg(queueMicrotask,!1);let wa;function oP(){wa=void 0}const On={now:()=>(wa===void 0&&On.set(yt.isProcessing||JC.useManualTiming?yt.timestamp:performance.now()),wa),set:e=>{wa=e,queueMicrotask(oP)}},yn={x:!1,y:!1};function vg(){return yn.x||yn.y}function aP(e){return e==="x"||e==="y"?yn[e]?null:(yn[e]=!0,()=>{yn[e]=!1}):yn.x||yn.y?null:(yn.x=yn.y=!0,()=>{yn.x=yn.y=!1})}function lP(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function bg(e,t){const n=lP(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function xg(e){return!(e.pointerType==="touch"||vg())}function cP(e,t,n={}){const[r,i,o]=bg(e,n),a=c=>{if(!xg(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{xg(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}const wg=(e,t)=>t?e===t?!0:wg(e,t.parentElement):!1,yu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,uP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function fP(e){return uP.has(e.tagName)||e.tabIndex!==-1}const Ys=new WeakSet;function Sg(e){return t=>{t.key==="Enter"&&e(t)}}function vu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const dP=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Sg(()=>{if(Ys.has(n))return;vu(n,"down");const i=Sg(()=>{vu(n,"up")}),o=()=>vu(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Tg(e){return yu(e)&&!vg()}function hP(e,t,n={}){const[r,i,o]=bg(e,n),a=c=>{const u=c.currentTarget;if(!Tg(c)||Ys.has(u))return;Ys.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!Tg(y)||!Ys.has(u))&&(Ys.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||wg(u,y.target))},p=y=>{h(y,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",p,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>dP(d,i)),!fP(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}const Eg=30,mP=e=>!isNaN(parseFloat(e));let pP=class{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=On.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=On.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=mP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&va(!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 cu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ye.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=On.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Eg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Eg);return cg(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Hs(e,t){return new pP(e,t)}const Cg=I.createContext({strict:!1}),Pg={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"]},Vi={};for(const e in Pg)Vi[e]={isEnabled:t=>Pg[e].some(n=>!!t[n])};function gP(e){for(const t in e)Vi[t]={...Vi[t],...e[t]}}const yP=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 Sa(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||yP.has(e)}let Ag=e=>!Sa(e);function vP(e){e&&(Ag=t=>t.startsWith("on")?!Sa(t):e(t))}try{vP(require("@emotion/is-prop-valid").default)}catch{}function bP(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Ag(i)||n===!0&&Sa(i)||!t&&!Sa(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function xP(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&va(!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 Ta=I.createContext({});function Ea(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function qs(e){return typeof e=="string"||Array.isArray(e)}const bu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],xu=["initial",...bu];function Ca(e){return Ea(e.animate)||xu.some(t=>qs(e[t]))}function Mg(e){return!!(Ca(e)||e.variants)}function wP(e,t){if(Ca(e)){const{initial:n,animate:r}=e;return{initial:n===!1||qs(n)?n:void 0,animate:qs(r)?r:void 0}}return e.inherit!==!1?t:{}}function SP(e){const{initial:t,animate:n}=wP(e,I.useContext(Ta));return I.useMemo(()=>({initial:t,animate:n}),[Og(t),Og(n)])}function Og(e){return Array.isArray(e)?e.join(" "):e}const TP=Symbol.for("motionComponentSymbol");function Bi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function EP(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):Bi(n)&&(n.current=r))},[t])}const wu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),_g="data-"+wu("framerAppearId"),Ig=I.createContext({});function CP(e,t,n,r,i){var o,a;const{visualElement:c}=I.useContext(Ta),u=I.useContext(Cg),d=I.useContext(ga),h=I.useContext(su).reducedMotion,m=I.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const p=m.current,y=I.useContext(Ig);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&PP(m.current,n,i,y);const S=I.useRef(!1);I.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const b=n[_g],E=I.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,b)));return og(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),gu.render(p.render),E.current&&p.animationState&&p.animationState.animateChanges())}),I.useEffect(()=>{p&&(!E.current&&p.animationState&&p.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,b)}),E.current=!1))}),p}function PP(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Dg(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&Bi(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function Dg(e){if(e)return e.options.allowProjection!==!1?e.projection:Dg(e.parent)}function AP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&gP(e);function c(d,h){let m;const p={...I.useContext(su),...d,layoutId:MP(d)},{isStatic:y}=p,S=SP(d),b=r(d,y);if(!y&&iu){OP(p,e);const E=_P(p);m=E.MeasureLayout,S.visualElement=CP(i,b,p,t,E.ProjectionNode)}return v.jsxs(Ta.Provider,{value:S,children:[m&&S.visualElement?v.jsx(m,{visualElement:S.visualElement,...p}):null,n(i,d,EP(b,S.visualElement,h),b,y,S.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const u=I.forwardRef(c);return u[TP]=i,u}function MP({layoutId:e}){const t=I.useContext(nu).id;return t&&e!==void 0?t+"-"+e:e}function OP(e,t){const n=I.useContext(Cg).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?ji(!1,r):vr(!1,r)}}function _P(e){const{drag:t,layout:n}=Vi;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 $g=e=>t=>typeof t=="string"&&t.startsWith(e),Su=$g("--"),IP=$g("var(--"),Tu=e=>IP(e)?DP.test(e.split("/*")[0].trim()):!1,DP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ks={};function $P(e){for(const t in e)Ks[t]=e[t],Su(t)&&(Ks[t].isCSSVariable=!0)}const Wi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qr=new Set(Wi);function Rg(e,{layout:t,layoutId:n}){return qr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ks[e]||e==="opacity")}const St=e=>!!(e&&e.getVelocity),Ng=(e,t)=>t&&typeof e=="number"?t.transform(e):e,qn=(e,t,n)=>n>t?t:n<e?e:n,Ui={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Xs={...Ui,transform:e=>qn(0,1,e)},Pa={...Ui,default:1},Zs=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xr=Zs("deg"),_n=Zs("%"),Se=Zs("px"),RP=Zs("vh"),NP=Zs("vw"),Lg={..._n,parse:e=>_n.parse(e)/100,transform:e=>_n.transform(e*100)},LP={borderWidth:Se,borderTopWidth:Se,borderRightWidth:Se,borderBottomWidth:Se,borderLeftWidth:Se,borderRadius:Se,radius:Se,borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomRightRadius:Se,borderBottomLeftRadius:Se,width:Se,maxWidth:Se,height:Se,maxHeight:Se,top:Se,right:Se,bottom:Se,left:Se,padding:Se,paddingTop:Se,paddingRight:Se,paddingBottom:Se,paddingLeft:Se,margin:Se,marginTop:Se,marginRight:Se,marginBottom:Se,marginLeft:Se,backgroundPositionX:Se,backgroundPositionY:Se},kP={rotate:xr,rotateX:xr,rotateY:xr,rotateZ:xr,scale:Pa,scaleX:Pa,scaleY:Pa,scaleZ:Pa,skew:xr,skewX:xr,skewY:xr,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:Xs,originX:Lg,originY:Lg,originZ:Se},kg={...Ui,transform:Math.round},Eu={...LP,...kP,zIndex:kg,size:Se,fillOpacity:Xs,strokeOpacity:Xs,numOctaves:kg},jP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},FP=Wi.length;function VP(e,t,n){let r="",i=!0;for(let o=0;o<FP;o++){const a=Wi[o],c=e[a];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(a.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Ng(c,Eu[a]);if(!u){i=!1;const h=jP[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Cu(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(qr.has(u)){a=!0;continue}else if(Su(u)){i[u]=d;continue}else{const h=Ng(d,Eu[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=VP(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${d} ${h}`}}const Pu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function jg(e,t,n){for(const r in t)!St(t[r])&&!Rg(r,n)&&(e[r]=t[r])}function BP({transformTemplate:e},t){return I.useMemo(()=>{const n=Pu();return Cu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function WP(e,t){const n=e.style||{},r={};return jg(r,n,e),Object.assign(r,BP(e,t)),r}function UP(e,t){const n={},r=WP(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 zP=["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 Au(e){return typeof e!="string"||e.includes("-")?!1:!!(zP.indexOf(e)>-1||/[A-Z]/u.test(e))}const GP={offset:"stroke-dashoffset",array:"stroke-dasharray"},YP={offset:"strokeDashoffset",array:"strokeDasharray"};function HP(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?GP:YP;e[o.offset]=Se.transform(-r);const a=Se.transform(t),c=Se.transform(n);e[o.array]=`${a} ${c}`}function Fg(e,t,n){return typeof e=="string"?e:Se.transform(t+n*e)}function qP(e,t,n){const r=Fg(t,e.x,e.width),i=Fg(n,e.y,e.height);return`${r} ${i}`}function Mu(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(Cu(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:y,dimensions:S}=e;p.transform&&(S&&(y.transform=p.transform),delete p.transform),S&&(i!==void 0||o!==void 0||y.transform)&&(y.transformOrigin=qP(S,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&HP(p,a,c,u,!1)}const Vg=()=>({...Pu(),attrs:{}}),Ou=e=>typeof e=="string"&&e.toLowerCase()==="svg";function KP(e,t,n,r){const i=I.useMemo(()=>{const o=Vg();return Mu(o,t,Ou(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};jg(o,e.style,e),i.style={...o,...i.style}}return i}function XP(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(Au(n)?KP:UP)(r,o,a,n),d=bP(r,typeof n=="string",e),h=n!==I.Fragment?{...d,...u,ref:i}:{},{children:m}=r,p=I.useMemo(()=>St(m)?m.get():m,[m]);return I.createElement(n,{...h,children:p})}}function Bg(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function _u(e,t,n,r){if(typeof t=="function"){const[i,o]=Bg(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Bg(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Iu=e=>Array.isArray(e),ZP=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),JP=e=>Iu(e)?e[e.length-1]||0:e;function Aa(e){const t=St(e)?e.get():e;return ZP(t)?t.toValue():t}function QP({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:eA(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Wg=e=>(t,n)=>{const r=I.useContext(Ta),i=I.useContext(ga),o=()=>QP(e,t,r,i);return n?o():ru(o)};function eA(e,t,n,r){const i={},o=r(e,{});for(const p in o)i[p]=Aa(o[p]);let{initial:a,animate:c}=e;const u=Ca(e),d=Mg(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?c:a;if(m&&typeof m!="boolean"&&!Ea(m)){const p=Array.isArray(m)?m:[m];for(let y=0;y<p.length;y++){const S=_u(e,p[y]);if(S){const{transitionEnd:b,transition:E,...w}=S;for(const C in w){let M=w[C];if(Array.isArray(M)){const $=h?M.length-1:0;M=M[$]}M!==null&&(i[C]=M)}for(const C in b)i[C]=b[C]}}}return i}function Du(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(St(i[a])||t.style&&St(t.style[a])||Rg(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}const tA={useVisualState:Wg({scrapeMotionValuesFromProps:Du,createRenderState:Pu})};function Ug(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function zg(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Gg=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 Yg(e,t,n,r){zg(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Gg.has(i)?i:wu(i),t.attrs[i])}function Hg(e,t,n){const r=Du(e,t,n);for(const i in e)if(St(e[i])||St(t[i])){const o=Wi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const qg=["x","y","width","height","cx","cy","r"],nA={useVisualState:Wg({scrapeMotionValuesFromProps:Hg,createRenderState:Vg,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in i)if(qr.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<qg.length;c++){const u=qg[c];e[u]!==t[u]&&(a=!0)}a&&Ye.read(()=>{Ug(n,r),Ye.render(()=>{Mu(r,i,Ou(n.tagName),e.transformTemplate),Yg(n,r)})})}})};function rA(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Au(r)?nA:tA,preloadedFeatures:e,useRender:XP(i),createVisualElement:t,Component:r};return AP(a)}}function Js(e,t,n){const r=e.getProps();return _u(r,t,n!==void 0?n:r.custom,e)}const Kg=new Set(["width","height","top","left","right","bottom",...Wi]);function iA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Hs(n))}function sA(e,t){const n=Js(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=JP(o[a]);iA(e,a,c)}}function oA(e){return!!(St(e)&&e.add)}function $u(e,t){const n=e.getValue("willChange");if(oA(n))return n.add(t)}function Xg(e){return e.props[_g]}const Zg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,aA=1e-7,lA=12;function cA(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=Zg(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>aA&&++c<lA);return a}function Qs(e,t,n,r){if(e===t&&n===r)return Rt;const i=o=>cA(o,0,1,e,n);return o=>o===0||o===1?o:Zg(i(o),t,r)}const Jg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Qg=e=>t=>1-e(1-t),e0=Qs(.33,1.53,.69,.99),Ru=Qg(e0),t0=Jg(Ru),n0=e=>(e*=2)<1?.5*Ru(e):.5*(2-Math.pow(2,-10*(e-1))),Nu=e=>1-Math.sin(Math.acos(e)),r0=Qg(Nu),i0=Jg(Nu),s0=e=>/^0[^.\s]+$/u.test(e);function uA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||s0(e):!0}const eo=e=>Math.round(e*1e5)/1e5,Lu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function fA(e){return e==null}const dA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ku=(e,t)=>n=>!!(typeof n=="string"&&dA.test(n)&&n.startsWith(e)||t&&!fA(n)&&Object.prototype.hasOwnProperty.call(n,t)),o0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Lu);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},hA=e=>qn(0,255,e),ju={...Ui,transform:e=>Math.round(hA(e))},Kr={test:ku("rgb","red"),parse:o0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ju.transform(e)+", "+ju.transform(t)+", "+ju.transform(n)+", "+eo(Xs.transform(r))+")"};function mA(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 Fu={test:ku("#"),parse:mA,transform:Kr.transform},zi={test:ku("hsl","hue"),parse:o0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+_n.transform(eo(t))+", "+_n.transform(eo(n))+", "+eo(Xs.transform(r))+")"},Tt={test:e=>Kr.test(e)||Fu.test(e)||zi.test(e),parse:e=>Kr.test(e)?Kr.parse(e):zi.test(e)?zi.parse(e):Fu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Kr.transform(e):zi.transform(e)},pA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function gA(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Lu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(pA))===null||n===void 0?void 0:n.length)||0)>0}const a0="number",l0="color",yA="var",vA="var(",c0="${}",bA=/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 to(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(bA,u=>(Tt.test(u)?(r.color.push(o),i.push(l0),n.push(Tt.parse(u))):u.startsWith(vA)?(r.var.push(o),i.push(yA),n.push(u)):(r.number.push(o),i.push(a0),n.push(parseFloat(u))),++o,c0)).split(c0);return{values:n,split:c,indexes:r,types:i}}function u0(e){return to(e).values}function f0(e){const{split:t,types:n}=to(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const c=n[a];c===a0?o+=eo(i[a]):c===l0?o+=Tt.transform(i[a]):o+=i[a]}return o}}const xA=e=>typeof e=="number"?0:e;function wA(e){const t=u0(e);return f0(e)(t.map(xA))}const wr={test:gA,parse:u0,createTransformer:f0,getAnimatableNone:wA},SA=new Set(["brightness","contrast","saturate","opacity"]);function TA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Lu)||[];if(!r)return e;const i=n.replace(r,"");let o=SA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const EA=/\b([a-z-]*)\(.*?\)/gu,Vu={...wr,getAnimatableNone:e=>{const t=e.match(EA);return t?t.map(TA).join(" "):e}},CA={...Eu,color:Tt,backgroundColor:Tt,outlineColor:Tt,fill:Tt,stroke:Tt,borderColor:Tt,borderTopColor:Tt,borderRightColor:Tt,borderBottomColor:Tt,borderLeftColor:Tt,filter:Vu,WebkitFilter:Vu},d0=e=>CA[e];function h0(e,t){let n=d0(e);return n!==Vu&&(n=wr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const PA=new Set(["auto","none","0"]);function AA(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!PA.has(o)&&to(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=h0(n,i)}const Xr=e=>e*180/Math.PI,Bu=e=>{const t=Xr(Math.atan2(e[1],e[0]));return Wu(t)},MA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Bu,rotateZ:Bu,skewX:e=>Xr(Math.atan(e[1])),skewY:e=>Xr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Wu=e=>(e=e%360,e<0&&(e+=360),e),m0=Bu,p0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),g0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),OA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:p0,scaleY:g0,scale:e=>(p0(e)+g0(e))/2,rotateX:e=>Wu(Xr(Math.atan2(e[6],e[5]))),rotateY:e=>Wu(Xr(Math.atan2(-e[2],e[0]))),rotateZ:m0,rotate:m0,skewX:e=>Xr(Math.atan(e[4])),skewY:e=>Xr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function y0(e){return e.includes("scale")?1:0}function Uu(e,t){if(!e||e==="none")return y0(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=OA,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=MA,i=c}if(!i)return y0(t);const o=r[t],a=i[1].split(",").map(IA);return typeof o=="function"?o(a):a[o]}const _A=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Uu(n,t)};function IA(e){return parseFloat(e.trim())}const v0=e=>e===Ui||e===Se,DA=new Set(["x","y","z"]),$A=Wi.filter(e=>!DA.has(e));function RA(e){const t=[];return $A.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Gi={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})=>Uu(t,"x"),y:(e,{transform:t})=>Uu(t,"y")};Gi.translateX=Gi.x,Gi.translateY=Gi.y;const Zr=new Set;let zu=!1,Gu=!1;function b0(){if(Gu){const e=Array.from(Zr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=RA(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Gu=!1,zu=!1,Zr.forEach(e=>e.complete()),Zr.clear()}function x0(){Zr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Gu=!0)})}function NA(){x0(),b0()}let Yu=class{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Zr.add(this),zu||(zu=!0,Ye.read(x0),Ye.resolveKeyframes(b0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Zr.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Zr.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const w0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),LA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kA(e){const t=LA.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const jA=4;function S0(e,t,n=1){vr(n<=jA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=kA(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return w0(a)?parseFloat(a):a}return Tu(i)?S0(i,t,n+1):i}const T0=e=>t=>t.test(e),E0=[Ui,Se,_n,xr,NP,RP,{test:e=>e==="auto",parse:e=>e}],C0=e=>E0.find(T0(e));let P0=class extends Yu{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Tu(d))){const h=S0(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Kg.has(r)||t.length!==2)return;const[i,o]=t,a=C0(i),c=C0(o);if(a!==c)if(v0(a)&&v0(c))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)uA(t[i])&&r.push(i);r.length&&AA(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=Gi[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=Gi[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,d])=>{n.getValue(u).set(d)}),this.resolveNoneKeyframes()}};const A0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wr.test(e)||e==="0")&&!e.startsWith("url("));function FA(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 VA(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=A0(i,t),c=A0(o,t);return ji(a===c,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:FA(e)||(n==="spring"||du(n))&&r}const BA=e=>e!==null;function Ma(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(BA),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const WA=40;let M0=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=On.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>WA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&NA(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=On.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!VA(t,r,i,o))if(a)this.options.duration=0;else{u&&u(Ma(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const tt=(e,t,n)=>e+(t-e)*n;function Hu(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 UA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=Hu(u,c,e+1/3),o=Hu(u,c,e),a=Hu(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Oa(e,t){return n=>n>0?t:e}const qu=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},zA=[Fu,Kr,zi],GA=e=>zA.find(t=>t.test(e));function O0(e){const t=GA(e);if(ji(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===zi&&(n=UA(n)),n}const _0=(e,t)=>{const n=O0(e),r=O0(t);if(!n||!r)return Oa(e,t);const i={...n};return o=>(i.red=qu(n.red,r.red,o),i.green=qu(n.green,r.green,o),i.blue=qu(n.blue,r.blue,o),i.alpha=tt(n.alpha,r.alpha,o),Kr.transform(i))},YA=(e,t)=>n=>t(e(n)),no=(...e)=>e.reduce(YA),Ku=new Set(["none","hidden"]);function HA(e,t){return Ku.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function qA(e,t){return n=>tt(e,t,n)}function Xu(e){return typeof e=="number"?qA:typeof e=="string"?Tu(e)?Oa:Tt.test(e)?_0:ZA:Array.isArray(e)?I0:typeof e=="object"?Tt.test(e)?_0:KA:Oa}function I0(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>Xu(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function KA(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Xu(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function XA(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][i[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,i[a]++}return r}const ZA=(e,t)=>{const n=wr.createTransformer(t),r=to(e),i=to(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?Ku.has(e)&&!i.values.length||Ku.has(t)&&!r.values.length?HA(e,t):no(I0(XA(r,i),i.values),n):(ji(!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.`),Oa(e,t))};function D0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tt(e,t,n):Xu(e)(e,t)}const JA=5;function $0(e,t,n){const r=Math.max(t-JA,0);return cg(n-e(r),t-r)}const nt={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},R0=.001;function QA({duration:e=nt.duration,bounce:t=nt.bounce,velocity:n=nt.velocity,mass:r=nt.mass}){let i,o;ji(e<=Mn(nt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=qn(nt.minDamping,nt.maxDamping,a),e=qn(nt.minDuration,nt.maxDuration,Hn(e)),a<1?(i=d=>{const h=d*a,m=h*e,p=h-n,y=Zu(d,a),S=Math.exp(-m);return R0-p/y*S},o=d=>{const m=d*a*e,p=m*n+n,y=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),b=Zu(Math.pow(d,2),a);return(-i(d)+R0>0?-1:1)*((p-y)*S)/b}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const c=5/e,u=tM(i,o,c);if(e=Mn(e),isNaN(u))return{stiffness:nt.stiffness,damping:nt.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const eM=12;function tM(e,t,n){let r=n;for(let i=1;i<eM;i++)r=r-e(r)/t(r);return r}function Zu(e,t){return e*Math.sqrt(1-t*t)}const nM=["duration","bounce"],rM=["stiffness","damping","mass"];function N0(e,t){return t.some(n=>e[n]!==void 0)}function iM(e){let t={velocity:nt.velocity,stiffness:nt.stiffness,damping:nt.damping,mass:nt.mass,isResolvedFromDuration:!1,...e};if(!N0(e,rM)&&N0(e,nM))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*qn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:nt.mass,stiffness:i,damping:o}}else{const n=QA(e);t={...t,...n,mass:nt.mass},t.isResolvedFromDuration=!0}return t}function L0(e=nt.visualDuration,t=nt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:m,velocity:p,isResolvedFromDuration:y}=iM({...n,velocity:-Hn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),E=a-o,w=Hn(Math.sqrt(u/h)),C=Math.abs(E)<5;r||(r=C?nt.restSpeed.granular:nt.restSpeed.default),i||(i=C?nt.restDelta.granular:nt.restDelta.default);let M;if(b<1){const P=Zu(w,b);M=R=>{const k=Math.exp(-b*w*R);return a-k*((S+b*w*E)/P*Math.sin(P*R)+E*Math.cos(P*R))}}else if(b===1)M=P=>a-Math.exp(-w*P)*(E+(S+w*E)*P);else{const P=w*Math.sqrt(b*b-1);M=R=>{const k=Math.exp(-b*w*R),j=Math.min(P*R,300);return a-k*((S+b*w*E)*Math.sinh(j)+P*E*Math.cosh(j))/P}}const $={calculatedDuration:y&&m||null,next:P=>{const R=M(P);if(y)c.done=P>=m;else{let k=0;b<1&&(k=P===0?Mn(S):$0(M,P,R));const j=Math.abs(k)<=r,z=Math.abs(a-R)<=i;c.done=j&&z}return c.value=c.done?a:R,c},toString:()=>{const P=Math.min(fg($),fu),R=hg(k=>$.next(P*k).value,P,30);return P+"ms "+R}};return $}function k0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},y=j=>c!==void 0&&j<c||u!==void 0&&j>u,S=j=>c===void 0?u:u===void 0||Math.abs(c-j)<Math.abs(u-j)?c:u;let b=n*t;const E=m+b,w=a===void 0?E:a(E);w!==E&&(b=w-m);const C=j=>-b*Math.exp(-j/r),M=j=>w+C(j),$=j=>{const z=C(j),Z=M(j);p.done=Math.abs(z)<=d,p.value=p.done?w:Z};let P,R;const k=j=>{y(p.value)&&(P=j,R=L0({keyframes:[p.value,S(p.value)],velocity:$0(M,j,p.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return k(0),{calculatedDuration:null,next:j=>{let z=!1;return!R&&P===void 0&&(z=!0,$(j),k(j)),P!==void 0&&j>=P?R.next(j-P):(!z&&$(j),p)}}}const sM=Qs(.42,0,1,1),oM=Qs(0,0,.58,1),j0=Qs(.42,0,.58,1),aM=e=>Array.isArray(e)&&typeof e[0]!="number",F0={linear:Rt,easeIn:sM,easeInOut:j0,easeOut:oM,circIn:Nu,circInOut:i0,circOut:r0,backIn:Ru,backInOut:t0,backOut:e0,anticipate:n0},V0=e=>{if(hu(e)){vr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Qs(t,n,r,i)}else if(typeof e=="string")return vr(F0[e]!==void 0,`Invalid easing type '${e}'`),F0[e];return e};function lM(e,t,n){const r=[],i=n||D0,o=e.length-1;for(let a=0;a<o;a++){let c=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Rt:t;c=no(u,c)}r.push(c)}return r}function cM(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(vr(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=lM(t,r,i),u=c.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const p=Fi(e[m],e[m+1],h);return c[m](p)};return n?h=>d(qn(e[0],e[o-1],h)):d}function uM(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Fi(0,t,r);e.push(tt(n,1,i))}}function fM(e){const t=[0];return uM(t,e.length-1),t}function dM(e,t){return e.map(n=>n*t)}function hM(e,t){return e.map(()=>t||j0).splice(0,e.length-1)}function ro({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=aM(r)?r.map(V0):V0(r),o={done:!1,value:t[0]},a=dM(n&&n.length===t.length?n:fM(t),e),c=cM(a,t,{ease:Array.isArray(i)?i:hM(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const mM=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ye.update(t,!0),stop:()=>br(t),now:()=>yt.isProcessing?yt.timestamp:On.now()}},pM={decay:k0,inertia:k0,tween:ro,keyframes:ro,spring:L0},gM=e=>e/100;let Ju=class extends M0{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||Yu,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=du(n)?n:pM[n]||ro;let u,d;process.env.NODE_ENV!=="production"&&c!==ro&&vr(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==ro&&typeof t[0]!="number"&&(u=no(gM,D0(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=fg(h));const{calculatedDuration:m}=h,p=m+i,y=p*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:j}=this.options;return{done:!0,value:j[j.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:y,repeatType:S,repeatDelay:b,onUpdate:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const w=this.currentTime-p*(this.speed>=0?1:-1),C=this.speed>=0?w<0:w>h;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let M=this.currentTime,$=o;if(y){const j=Math.min(this.currentTime,h)/m;let z=Math.floor(j),Z=j%1;!Z&&j>=1&&(Z=1),Z===1&&z--,z=Math.min(z,y+1),!!(z%2)&&(S==="reverse"?(Z=1-Z,b&&(Z-=b/m)):S==="mirror"&&($=a)),M=qn(0,1,Z)*m}const P=C?{done:!1,value:u[0]}:$.next(M);c&&(P.value=c(P.value));let{done:R}=P;!C&&d!==null&&(R=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return k&&i!==void 0&&(P.value=Ma(u,this.options,i)),E&&E(P.value),k&&this.finish(),P}get duration(){const{resolved:t}=this;return t?Hn(t.calculatedDuration):0}get time(){return Hn(this.currentTime)}set time(t){t=Mn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Hn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=mM,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};const yM=new Set(["opacity","clipPath","filter","transform"]);function vM(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=pg(c,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const bM=lu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_a=10,xM=2e4;function wM(e){return du(e.type)||e.type==="spring"||!mg(e.ease)}function SM(e,t){const n=new Ju({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<xM;)r=n.sample(o),i.push(r.value),o+=_a;return{times:void 0,keyframes:i,duration:o-_a,ease:"linear"}}const B0={anticipate:n0,backInOut:t0,circInOut:i0};function TM(e){return e in B0}let W0=class extends M0{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new P0(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&ba()&&TM(o)&&(o=B0[o]),wM(this.options)){const{onComplete:m,onUpdate:p,motionValue:y,element:S,...b}=this.options,E=SM(t,b);t=E.keyframes,t.length===1&&(t[1]=t[0]),r=E.duration,i=E.times,o=E.ease,a="keyframes"}const h=vM(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(dg(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ma(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Hn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Hn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Mn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Rt;const{animation:r}=n;dg(r,t)}return Rt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:p,...y}=this.options,S=new Ju({...y,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),b=Mn(this.time);d.setWithVelocity(S.sample(b-_a).value,S.sample(b).value,_a)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return bM()&&r&&yM.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}};const EM={type:"spring",stiffness:500,damping:25,restSpeed:10},CM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),PM={type:"keyframes",duration:.8},AM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},MM=(e,{keyframes:t})=>t.length>2?PM:qr.has(e)?e.startsWith("scale")?CM(t[1]):EM:AM;function OM({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const Qu=(e,t,n,r={},i,o)=>a=>{const c=uu(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Mn(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};OM(c)||(h={...h,...MM(e,h)}),h.duration&&(h.duration=Mn(h.duration)),h.repeatDelay&&(h.repeatDelay=Mn(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)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const p=Ma(h.keyframes,c);if(p!==void 0)return Ye.update(()=>{h.onUpdate(p),h.onComplete()}),new tP([])}return!o&&W0.supports(h)?new W0(h):new Ju(h)};function _M({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function U0(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const p=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),y=u[m];if(y===void 0||h&&_M(h,m))continue;const S={delay:n,...uu(a||{},m)};let b=!1;if(window.MotionHandoffAnimation){const w=Xg(e);if(w){const C=window.MotionHandoffAnimation(w,m,Ye);C!==null&&(S.startTime=C,b=!0)}}$u(e,m),p.start(Qu(m,p,y,e.shouldReduceMotion&&Kg.has(m)?{type:!1}:S,e,b));const E=p.animation;E&&d.push(E)}return c&&Promise.all(d).then(()=>{Ye.update(()=>{c&&sA(e,c)})}),d}function ef(e,t,n={}){var r;const i=Js(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(U0(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return IM(e,t,h+d,m,p,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[a,c]:[c,a];return d().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function IM(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(DM).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(ef(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function DM(e,t){return e.sortNodePosition(t)}function $M(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>ef(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=ef(e,t,n);else{const i=typeof t=="function"?Js(e,t,n.custom):t;r=Promise.all(U0(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function z0(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 RM=xu.length;function G0(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?G0(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<RM;n++){const r=xu[n],i=e.props[r];(qs(i)||i===!1)&&(t[r]=i)}return t}const NM=[...bu].reverse(),LM=bu.length;function kM(e){return t=>Promise.all(t.map(({animation:n,options:r})=>$M(e,n,r)))}function jM(e){let t=kM(e),n=Y0(),r=!0;const i=u=>(d,h)=>{var m;const p=Js(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:y,transitionEnd:S,...b}=p;d={...d,...b,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=G0(e.parent)||{},m=[],p=new Set;let y={},S=1/0;for(let E=0;E<LM;E++){const w=NM[E],C=n[w],M=d[w]!==void 0?d[w]:h[w],$=qs(M),P=w===u?C.isActive:null;P===!1&&(S=E);let R=M===h[w]&&M!==d[w]&&$;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),C.protectedKeys={...y},!C.isActive&&P===null||!M&&!C.prevProp||Ea(M)||typeof M=="boolean")continue;const k=FM(C.prevProp,M);let j=k||w===u&&C.isActive&&!R&&$||E>S&&$,z=!1;const Z=Array.isArray(M)?M:[M];let te=Z.reduce(i(w),{});P===!1&&(te={});const{prevResolvedValues:ce={}}=C,ve={...ce,...te},fe=N=>{j=!0,p.has(N)&&(z=!0,p.delete(N)),C.needsAnimating[N]=!0;const W=e.getValue(N);W&&(W.liveStyle=!1)};for(const N in ve){const W=te[N],q=ce[N];if(y.hasOwnProperty(N))continue;let O=!1;Iu(W)&&Iu(q)?O=!z0(W,q):O=W!==q,O?W!=null?fe(N):p.add(N):W!==void 0&&p.has(N)?fe(N):C.protectedKeys[N]=!0}C.prevProp=M,C.prevResolvedValues=te,C.isActive&&(y={...y,...te}),r&&e.blockInitialAnimation&&(j=!1),j&&(!(R&&k)||z)&&m.push(...Z.map(N=>({animation:N,options:{type:w}})))}if(p.size){const E={};if(typeof d.initial!="boolean"){const w=Js(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(E.transition=w.transition)}p.forEach(w=>{const C=e.getBaseTarget(w),M=e.getValue(w);M&&(M.liveStyle=!0),E[w]=C??null}),m.push({animation:E})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(m):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var y;return(y=p.animationState)===null||y===void 0?void 0:y.setActive(u,d)}),n[u].isActive=d;const m=a(u);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Y0(),r=!0}}}function FM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!z0(t,e):!1}function Jr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Y0(){return{animate:Jr(!0),whileInView:Jr(),whileHover:Jr(),whileTap:Jr(),whileDrag:Jr(),whileFocus:Jr(),exit:Jr()}}let Sr=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},VM=class extends Sr{constructor(t){super(t),t.animationState||(t.animationState=jM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ea(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}},BM=0;const WM={animation:{Feature:VM},exit:{Feature:class extends Sr{constructor(){super(...arguments),this.id=BM++}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(){}}}};function io(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function so(e){return{point:{x:e.pageX,y:e.pageY}}}const UM=e=>t=>yu(t)&&e(t,so(t));function oo(e,t,n,r){return io(e,t,UM(n),r)}function H0({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function zM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function GM(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 q0=1e-4,YM=1-q0,HM=1+q0,K0=.01,qM=0-K0,KM=0+K0;function Ot(e){return e.max-e.min}function XM(e,t,n){return Math.abs(e-t)<=n}function X0(e,t,n,r=.5){e.origin=r,e.originPoint=tt(t.min,t.max,e.origin),e.scale=Ot(n)/Ot(t),e.translate=tt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=YM&&e.scale<=HM||isNaN(e.scale))&&(e.scale=1),(e.translate>=qM&&e.translate<=KM||isNaN(e.translate))&&(e.translate=0)}function ao(e,t,n,r){X0(e.x,t.x,n.x,r?r.originX:void 0),X0(e.y,t.y,n.y,r?r.originY:void 0)}function Z0(e,t,n){e.min=n.min+t.min,e.max=e.min+Ot(t)}function ZM(e,t,n){Z0(e.x,t.x,n.x),Z0(e.y,t.y,n.y)}function J0(e,t,n){e.min=t.min-n.min,e.max=e.min+Ot(t)}function lo(e,t,n){J0(e.x,t.x,n.x),J0(e.y,t.y,n.y)}const Q0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Yi=()=>({x:Q0(),y:Q0()}),ey=()=>({min:0,max:0}),at=()=>({x:ey(),y:ey()});function tn(e){return[e("x"),e("y")]}function tf(e){return e===void 0||e===1}function nf({scale:e,scaleX:t,scaleY:n}){return!tf(e)||!tf(t)||!tf(n)}function Qr(e){return nf(e)||ty(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ty(e){return ny(e.x)||ny(e.y)}function ny(e){return e&&e!=="0%"}function Ia(e,t,n){const r=e-n,i=t*r;return n+i}function ry(e,t,n,r,i){return i!==void 0&&(e=Ia(e,i,r)),Ia(e,n,r)+t}function rf(e,t=0,n=1,r,i){e.min=ry(e.min,t,n,r,i),e.max=ry(e.max,t,n,r,i)}function iy(e,{x:t,y:n}){rf(e.x,t.translate,t.scale,t.originPoint),rf(e.y,n.translate,n.scale,n.originPoint)}const sy=.999999999999,oy=1.0000000000001;function JM(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&qi(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,iy(e,a)),r&&Qr(o.latestValues)&&qi(e,o.latestValues))}t.x<oy&&t.x>sy&&(t.x=1),t.y<oy&&t.y>sy&&(t.y=1)}function Hi(e,t){e.min=e.min+t,e.max=e.max+t}function ay(e,t,n,r,i=.5){const o=tt(e.min,e.max,i);rf(e,t,n,o,r)}function qi(e,t){ay(e.x,t.x,t.scaleX,t.scale,t.originX),ay(e.y,t.y,t.scaleY,t.scale,t.originY)}function ly(e,t){return H0(GM(e.getBoundingClientRect(),t))}function QM(e,t,n){const r=ly(e,n),{scroll:i}=t;return i&&(Hi(r.x,i.offset.x),Hi(r.y,i.offset.y)),r}const cy=({current:e})=>e?e.ownerDocument.defaultView:null,uy=(e,t)=>Math.abs(e-t);function eO(e,t){const n=uy(e.x,t.x),r=uy(e.y,t.y);return Math.sqrt(n**2+r**2)}let fy=class{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=of(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=eO(m.offset,{x:0,y:0})>=3;if(!p&&!y)return;const{point:S}=m,{timestamp:b}=yt;this.history.push({...S,timestamp:b});const{onStart:E,onMove:w}=this.handlers;p||(E&&E(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=sf(p,this.transformPagePoint),Ye.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:y,onSessionEnd:S,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=of(m.type==="pointercancel"?this.lastMoveEventInfo:sf(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,E),S&&S(m,E)},!yu(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=so(t),c=sf(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=yt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,of(c,this.history)),this.removeListeners=no(oo(this.contextWindow,"pointermove",this.handlePointerMove),oo(this.contextWindow,"pointerup",this.handlePointerUp),oo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),br(this.updatePoint)}};function sf(e,t){return t?{point:t(e.point)}:e}function dy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function of({point:e},t){return{point:e,delta:dy(e,hy(t)),offset:dy(e,tO(t)),velocity:nO(t,.1)}}function tO(e){return e[0]}function hy(e){return e[e.length-1]}function nO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=hy(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Mn(t)));)n--;if(!r)return{x:0,y:0};const o=Hn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function rO(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?tt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?tt(n,e,r.max):Math.min(e,n)),e}function my(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 iO(e,{top:t,left:n,bottom:r,right:i}){return{x:my(e.x,n,i),y:my(e.y,t,r)}}function py(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 sO(e,t){return{x:py(e.x,t.x),y:py(e.y,t.y)}}function oO(e,t){let n=.5;const r=Ot(e),i=Ot(t);return i>r?n=Fi(t.min,t.max-r,e.min):r>i&&(n=Fi(e.min,e.max-i,t.min)),qn(0,1,n)}function aO(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 af=.35;function lO(e=af){return e===!1?e=0:e===!0&&(e=af),{x:gy(e,"left","right"),y:gy(e,"top","bottom")}}function gy(e,t,n){return{min:yy(e,t),max:yy(e,n)}}function yy(e,t){return typeof e=="number"?e:e[t]||0}const cO=new WeakMap;let uO=class{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=at(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(so(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:y,onDragStart:S}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=aP(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tn(E=>{let w=this.getAxisMotionValue(E).get()||0;if(_n.test(w)){const{projection:C}=this.visualElement;if(C&&C.layout){const M=C.layout.layoutBox[E];M&&(w=Ot(M)*(parseFloat(w)/100))}}this.originPoint[E]=w}),S&&Ye.postRender(()=>S(h,m)),$u(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:p,dragDirectionLock:y,onDirectionLock:S,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:E}=m;if(y&&this.currentDirection===null){this.currentDirection=fO(E),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,E),this.updateAxis("y",m.point,E),this.visualElement.render(),b&&b(h,m)},c=(h,m)=>this.stop(h,m),u=()=>tn(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new fy(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:cy(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Ye.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Da(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=rO(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Bi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=iO(i.layoutBox,n):this.constraints=!1,this.elastic=lO(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=aO(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Bi(t))return!1;const r=t.current;vr(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=QM(r,i.root,this.visualElement.getTransformPagePoint());let a=sO(i.layout.layoutBox,o);if(n){const c=n(zM(a));this.hasMutatedConstraints=!!c,c&&(a=H0(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=tn(h=>{if(!Da(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const p=i?200:1e6,y=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return $u(this.visualElement,t),r.start(Qu(t,r,0,n,this.visualElement,!1))}stopAnimation(){tn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){tn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){tn(n=>{const{drag:r}=this.getProps();if(!Da(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(t[n]-tt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Bi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};tn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();i[a]=oO({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),tn(a=>{if(!Da(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(tt(u,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;cO.set(this.visualElement,this);const t=this.visualElement.current,n=oo(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Bi(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Ye.read(r);const a=io(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(tn(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=u[h].translate,m.set(m.get()+u[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=af,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}};function Da(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function fO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}let dO=class extends Sr{constructor(t){super(t),this.removeGroupControls=Rt,this.removeListeners=Rt,this.controls=new uO(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Rt}unmount(){this.removeGroupControls(),this.removeListeners()}};const vy=e=>(t,n)=>{e&&Ye.postRender(()=>e(t,n))};let hO=class extends Sr{constructor(){super(...arguments),this.removePointerDownListener=Rt}onPointerDown(t){this.session=new fy(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:cy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:vy(t),onStart:vy(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Ye.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=oo(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 $a={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function by(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const co={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=by(e,t.target.x),r=by(e,t.target.y);return`${n}% ${r}%`}},mO={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=wr.parse(e);if(i.length>5)return r;const o=wr.createTransformer(e),a=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+a]/=c,i[1+a]/=u;const d=tt(c,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};let pO=class extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;$P(gO),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),$a.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||Ye.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),gu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}};function xy(e){const[t,n]=ag(),r=I.useContext(nu);return v.jsx(pO,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(Ig),isPresent:t,safeToRemove:n})}const gO={borderRadius:{...co,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:co,borderTopRightRadius:co,borderBottomLeftRadius:co,borderBottomRightRadius:co,boxShadow:mO};function yO(e,t,n){const r=St(e)?e:Hs(e);return r.start(Qu("",r,t,n)),r.animation}function vO(e){return e instanceof SVGElement&&e.tagName!=="svg"}const bO=(e,t)=>e.depth-t.depth;let xO=class{constructor(){this.children=[],this.isDirty=!1}add(t){ou(this.children,t),this.isDirty=!0}remove(t){au(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(bO),this.isDirty=!1,this.children.forEach(t)}};function wO(e,t){const n=On.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(br(r),e(o-t))};return Ye.read(r,!0),()=>br(r)}const wy=["TopLeft","TopRight","BottomLeft","BottomRight"],SO=wy.length,Sy=e=>typeof e=="string"?parseFloat(e):e,Ty=e=>typeof e=="number"||Se.test(e);function TO(e,t,n,r,i,o){i?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,EO(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,CO(r))):o&&(e.opacity=tt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<SO;a++){const c=`border${wy[a]}Radius`;let u=Ey(t,c),d=Ey(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||Ty(u)===Ty(d)?(e[c]=Math.max(tt(Sy(u),Sy(d),r),0),(_n.test(d)||_n.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=tt(t.rotate||0,n.rotate||0,r))}function Ey(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const EO=Cy(0,.5,r0),CO=Cy(.5,.95,Rt);function Cy(e,t,n){return r=>r<e?0:r>t?1:n(Fi(e,t,r))}function Py(e,t){e.min=t.min,e.max=t.max}function nn(e,t){Py(e.x,t.x),Py(e.y,t.y)}function Ay(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function My(e,t,n,r,i){return e-=t,e=Ia(e,1/n,r),i!==void 0&&(e=Ia(e,1/i,r)),e}function PO(e,t=0,n=1,r=.5,i,o=e,a=e){if(_n.test(t)&&(t=parseFloat(t),t=tt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=tt(o.min,o.max,r);e===o&&(c-=t),e.min=My(e.min,t,n,c,i),e.max=My(e.max,t,n,c,i)}function Oy(e,t,[n,r,i],o,a){PO(e,t[n],t[r],t[i],t.scale,o,a)}const AO=["x","scaleX","originX"],MO=["y","scaleY","originY"];function _y(e,t,n,r){Oy(e.x,t,AO,n?n.x:void 0,r?r.x:void 0),Oy(e.y,t,MO,n?n.y:void 0,r?r.y:void 0)}function Iy(e){return e.translate===0&&e.scale===1}function Dy(e){return Iy(e.x)&&Iy(e.y)}function $y(e,t){return e.min===t.min&&e.max===t.max}function OO(e,t){return $y(e.x,t.x)&&$y(e.y,t.y)}function Ry(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ny(e,t){return Ry(e.x,t.x)&&Ry(e.y,t.y)}function Ly(e){return Ot(e.x)/Ot(e.y)}function ky(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}let _O=class{constructor(){this.members=[]}add(t){ou(this.members,t),t.scheduleRender()}remove(t){if(au(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function IO(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:p,skewX:y,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),y&&(r+=`skewX(${y}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const lf=["","X","Y","Z"],DO={visibility:"hidden"},jy=1e3;let $O=0;function cf(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Fy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Xg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ye,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Fy(r)}function Vy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=$O++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(LO),this.nodes.forEach(BO),this.nodes.forEach(WO),this.nodes.forEach(kO)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new xO)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new cu),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=vO(a),this.instance=a;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=wO(p,250),$a.hasAnimatedSinceResize&&($a.hasAnimatedSinceResize=!1,this.nodes.forEach(Wy))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:y,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||h.getDefaultTransition()||HO,{onLayoutAnimationStart:E,onLayoutAnimationComplete:w}=h.getProps(),C=!this.targetLayout||!Ny(this.targetLayout,S),M=!p&&y;if(this.options.layoutRoot||this.resumeFrom||M||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,M);const $={...uu(b,"layout"),onPlay:E,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||Wy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,br(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(UO),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Fy(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:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(By);return}this.isUpdating||this.nodes.forEach(FO),this.isUpdating=!1,this.nodes.forEach(VO),this.nodes.forEach(RO),this.nodes.forEach(NO),this.clearAllSnapshots();const c=On.now();yt.delta=qn(0,1e3/60,c-yt.timestamp),yt.timestamp=c,yt.isProcessing=!0,pu.update.process(yt),pu.preRender.process(yt),pu.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,gu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(jO),this.sharedNodes.forEach(zO)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ye.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ye.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ot(this.snapshot.measuredBox.x)&&!Ot(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 u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=at(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!Dy(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||Qr(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),qO(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return at();const u=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(KO))){const{scroll:h}=this.root;h&&(Hi(u.x,h.offset.x),Hi(u.y,h.offset.y))}return u}removeElementScroll(a){var c;const u=at();if(nn(u,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&nn(u,a),Hi(u.x,m.offset.x),Hi(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=at();nn(u,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&qi(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),Qr(h.latestValues)&&qi(u,h.latestValues)}return Qr(this.latestValues)&&qi(u,this.latestValues),u}removeTransform(a){const c=at();nn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!Qr(d.latestValues))continue;nf(d.latestValues)&&d.updateSnapshot();const h=at(),m=d.measurePageBox();nn(h,m),_y(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return Qr(this.latestValues)&&_y(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==yt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=yt.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),lo(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=at(),this.targetWithTransforms=at()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ZM(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),iy(this.target,this.targetDelta)):nn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),lo(this.relativeTargetOrigin,this.target,y.target),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||nf(this.parent.latestValues)||ty(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===yt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;nn(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,y=this.treeScale.y;JM(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=at());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ay(this.prevProjectionDelta.x,this.projectionDelta.x),Ay(this.prevProjectionDelta.y,this.projectionDelta.y)),ao(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==y||!ky(this.projectionDelta.x,this.prevProjectionDelta.x)||!ky(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Yi(),this.projectionDelta=Yi(),this.projectionDeltaWithTransform=Yi()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=Yi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=at(),y=u?u.source:void 0,S=this.layout?this.layout.source:void 0,b=y!==S,E=this.getStack(),w=!E||E.members.length<=1,C=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(YO));this.animationProgress=0;let M;this.mixTargetDelta=$=>{const P=$/1e3;Uy(m.x,a.x,P),Uy(m.y,a.y,P),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(lo(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),GO(this.relativeTarget,this.relativeTargetOrigin,p,P),M&&OO(this.relativeTarget,M)&&(this.isProjectionDirty=!1),M||(M=at()),nn(M,this.relativeTarget)),b&&(this.animationValues=h,TO(h,d,this.latestValues,P,C,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(br(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ye.update(()=>{$a.hasAnimatedSinceResize=!0,this.currentAnimation=yO(0,jy,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(jy),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&qy(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||at();const m=Ot(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+m;const p=Ot(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+p}nn(c,u),qi(c,h),ao(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new _O),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&cf("z",a,d,this.animationValues);for(let h=0;h<lf.length;h++)cf(`rotate${lf[h]}`,a,d,this.animationValues),cf(`skew${lf[h]}`,a,d,this.animationValues);a.render();for(const h in d)a.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return DO;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Aa(a==null?void 0:a.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Aa(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Qr(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=IO(this.projectionDeltaWithTransform,this.treeScale,p),h&&(d.transform=h(p,d.transform));const{x:y,y:S}=this.projectionDelta;d.transformOrigin=`${y.origin*100}% ${S.origin*100}% 0`,m.animationValues?d.opacity=m===this?(u=(c=p.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const b in Ks){if(p[b]===void 0)continue;const{correct:E,applyTo:w,isCSSVariable:C}=Ks[b],M=d.transform==="none"?p[b]:E(p[b],m);if(w){const $=w.length;for(let P=0;P<$;P++)d[w[P]]=M}else C?this.options.visualElement.renderState.vars[b]=M:d[b]=M}return this.options.layoutId&&(d.pointerEvents=m===this?Aa(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(By),this.root.sharedNodes.clear()}}}function RO(e){e.updateLayout()}function NO(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?tn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],y=Ot(p);p.min=r[m].min,p.max=p.min+y}):qy(o,n.layoutBox,r)&&tn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],y=Ot(r[m]);p.max=p.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+y)});const c=Yi();ao(c,r,n.layoutBox);const u=Yi();a?ao(u,e.applyTransform(i,!0),n.measuredBox):ao(u,r,n.layoutBox);const d=!Dy(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:y}=m;if(p&&y){const S=at();lo(S,n.layoutBox,p.layoutBox);const b=at();lo(b,r,y.layoutBox),Ny(S,b)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function LO(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 kO(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function jO(e){e.clearSnapshot()}function By(e){e.clearMeasurements()}function FO(e){e.isLayoutDirty=!1}function VO(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Wy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function BO(e){e.resolveTargetDelta()}function WO(e){e.calcProjection()}function UO(e){e.resetSkewAndRotation()}function zO(e){e.removeLeadSnapshot()}function Uy(e,t,n){e.translate=tt(t.translate,0,n),e.scale=tt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function zy(e,t,n,r){e.min=tt(t.min,n.min,r),e.max=tt(t.max,n.max,r)}function GO(e,t,n,r){zy(e.x,t.x,n.x,r),zy(e.y,t.y,n.y,r)}function YO(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const HO={duration:.45,ease:[.4,0,.1,1]},Gy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Yy=Gy("applewebkit/")&&!Gy("chrome/")?Math.round:Rt;function Hy(e){e.min=Yy(e.min),e.max=Yy(e.max)}function qO(e){Hy(e.x),Hy(e.y)}function qy(e,t,n){return e==="position"||e==="preserve-aspect"&&!XM(Ly(t),Ly(n),.2)}function KO(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const XO=Vy({attachResizeListener:(e,t)=>io(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),uf={current:void 0},Ky=Vy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!uf.current){const e=new XO({});e.mount(window),e.setOptions({layoutScroll:!0}),uf.current=e}return uf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ZO={pan:{Feature:hO},drag:{Feature:dO,ProjectionNode:Ky,MeasureLayout:xy}};function Xy(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Ye.postRender(()=>o(t,so(t)))}let JO=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=cP(t,(n,r)=>(Xy(this.node,r,"Start"),i=>Xy(this.node,i,"End"))))}unmount(){}},QO=class extends Sr{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=no(io(this.node.current,"focus",()=>this.onFocus()),io(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Zy(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),o=r[i];o&&Ye.postRender(()=>o(t,so(t)))}let e_=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=hP(t,(n,r)=>(Zy(this.node,r,"Start"),(i,{success:o})=>Zy(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const ff=new WeakMap,df=new WeakMap,t_=e=>{const t=ff.get(e.target);t&&t(e)},n_=e=>{e.forEach(t_)};function r_({root:e,...t}){const n=e||document;df.has(n)||df.set(n,{});const r=df.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(n_,{root:e,...t})),r[i]}function i_(e,t,n){const r=r_(t);return ff.set(e,n),r.observe(e),()=>{ff.delete(e),r.unobserve(e)}}const s_={some:0,all:1};let o_=class extends Sr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:s_[i]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=d?h:m;p&&p(u)};return i_(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(a_(t,n))&&this.startObserver()}unmount(){}};function a_({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const l_={inView:{Feature:o_},tap:{Feature:e_},focus:{Feature:QO},hover:{Feature:JO}},c_={layout:{ProjectionNode:Ky,MeasureLayout:xy}},hf={current:null},Jy={current:!1};function u_(){if(Jy.current=!0,!!iu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>hf.current=e.matches;e.addListener(t),t()}else hf.current=!1}const f_=[...E0,Tt,wr],d_=e=>f_.find(T0(e)),h_=new WeakMap;function m_(e,t,n){for(const r in t){const i=t[r],o=n[r];if(St(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&va(i.version==="12.6.2",`Attempting to mix Motion versions ${i.version} with 12.6.2 may not work as expected.`);else if(St(o))e.addValue(r,Hs(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Hs(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Qy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let p_=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Yu,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 y=On.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,Ye.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Ca(n),this.isVariantNode=Mg(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in p){const S=p[y];u[y]!==void 0&&St(S)&&S.set(u[y],!1)}}mount(t){this.current=t,h_.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)),Jy.current||u_(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:hf.current,process.env.NODE_ENV!=="production"&&va(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(),br(this.notifyUpdate),br(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=qr.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Ye.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Vi){const n=Vi[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):at()}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<Qy.length;r++){const i=Qy[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=m_(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Hs(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(w0(i)||s0(i))?i=parseFloat(i):!d_(i)&&wr.test(n)&&(i=h0(t,n)),this.setBaseTarget(t,St(i)?i.get():i)),St(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=_u(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!St(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new cu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},ev=class extends p_{constructor(){super(...arguments),this.KeyframeResolver=P0}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;St(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function g_(e){return window.getComputedStyle(e)}let y_=class extends ev{constructor(){super(...arguments),this.type="html",this.renderInstance=zg}readValueFromInstance(t,n){if(qr.has(n))return _A(t,n);{const r=g_(t),i=(Su(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ly(t,n)}build(t,n,r){Cu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Du(t,n,r)}},v_=class extends ev{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=at,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Ug(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(qr.has(n)){const r=d0(n);return r&&r.default||0}return n=Gg.has(n)?n:wu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Hg(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Ye.postRender(this.updateDimensions)}build(t,n,r){Mu(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Yg(t,n,r,i)}mount(t){this.isSVGTag=Ou(t.tagName),super.mount(t)}};const b_=(e,t)=>Au(e)?new v_(t):new y_(t,{allowProjection:e!==I.Fragment}),x_=rA({...WM,...l_,...ZO,...c_},b_),mf=xP(x_),w_=500,pf=({id:e,content:t,type:n="info",duration:r=0,onClose:i})=>{const[o,a]=I.useState(!0);let c=eu,u,d,h;switch(n){case"success":u="text-green-500",d="bg-green-50",h="border-green-500",c=VC;break;case"error":u="text-red-500",d="bg-red-50",h="border-red-500",c=YC;break;case"warning":u="text-yellow-500",d="bg-yellow-50",h="border-yellow-500",c=jC;break;case"loading":u="text-gray-500",d="bg-gray-50",h="border-gray-500",c=eu;break;case"info":default:u="text-blue-500",d="bg-blue-50",h="border-blue-500",c=eu}I.useEffect(()=>{if(r===0)return;const p=setTimeout(()=>{a(!1)},r);return()=>clearTimeout(p)},[r]),I.useEffect(()=>{if(!o){const p=setTimeout(i,w_);return()=>clearTimeout(p)}},[o,i]);const m={initial:{opacity:0,y:50,scale:.9},animate:{opacity:1,y:0,scale:1,transition:{duration:.3,type:"spring",stiffness:300,damping:20}},exit:{opacity:0,y:20,scale:.95,transition:{duration:.2,ease:"easeOut"}}};return v.jsx(ZC,{onExitComplete:i,children:o&&v.jsx(mf.div,{id:e,className:`toast w-[320px] rounded-xl border-[1.5px] p-8 shadow-md ${d} ${h}`,initial:"initial",animate:"animate",exit:"exit",variants:m,layout:!0,children:v.jsxs("div",{className:"flex justify-between items-center p-3",children:[v.jsxs("div",{className:"flex items-center gap-6",children:[v.jsx(De,{icon:c,className:`w-20 h-20 min-h-20 min-w-20 ${u}`}),v.jsx("span",{className:"text-gray-800 font-medium text-base",children:t})]}),v.jsx("button",{onClick:()=>a(!1),className:"text-gray-500 transition-all hover:text-gray-700 flex items-center",children:v.jsx(De,{icon:GC,className:"w-20 h-20 min-h-20 min-w-20"})})]})})})},tv=({promise:e,messages:t,options:n,onClose:r})=>{const[i,o]=I.useState("loading"),[a,c]=I.useState(t.loading);return I.useEffect(()=>{e.then(()=>{console.log("promise resolved"),o("success"),c(t.success)}).catch(()=>{console.log("promise rejected"),o("error"),c(t.error)}).finally(()=>{console.log("promise finally"),setTimeout(()=>{r()},(n==null?void 0:n.duration)||3e3)})},[e]),v.jsx(pf,{content:a,type:i,duration:n.duration,onClose:r})};/*!
|
|
622
622
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
623
623
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
624
624
|
* Copyright 2024 Fonticons, Inc.
|
|
625
|
-
*/const S_={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},T_={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},nv={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]},rv=6048e5,E_=864e5,iv=Symbol.for("constructDateFrom");function Gt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&iv in e?e[iv](t):e instanceof Date?new e.constructor(t):new Date(t)}function pt(e,t){return Gt(t||e,e)}function sv(e,t,n){const r=pt(e,n==null?void 0:n.in);if(isNaN(t))return Gt(e,NaN);if(!t)return r;const i=r.getDate(),a=Gt(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const o=a.getDate();return i>=o?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}let C_={};function uo(){return C_}function Ki(e,t){var c,u,d,h;const n=uo(),r=(t==null?void 0:t.weekStartsOn)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??0,i=pt(e,t==null?void 0:t.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Ra(e,t){return Ki(e,{...t,weekStartsOn:1})}function ov(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=Gt(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const a=Ra(i),o=Gt(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const c=Ra(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function av(e){const t=pt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Na(e,...t){const n=Gt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function La(e,t){const n=pt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function P_(e,t,n){const[r,i]=Na(n==null?void 0:n.in,e,t),a=La(r),o=La(i),c=+a-av(a),u=+o-av(o);return Math.round((c-u)/E_)}function A_(e,t){const n=ov(e,t),r=Gt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ra(r)}function O_(e){return Gt(e,Date.now())}function lv(e,t,n){const[r,i]=Na(n==null?void 0:n.in,e,t);return+La(r)==+La(i)}function M_(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function __(e){return!(!M_(e)&&typeof e!="number"||isNaN(+pt(e)))}function I_(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function D_(e,t){const[n,r]=Na(e,t.start,t.end);return{start:n,end:r}}function $_(e,t){const{start:n,end:r}=D_(t==null?void 0:t.in,e);let i=+n>+r;const a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0);let c=1;const u=[];for(;+o<=a;)u.push(Gt(n,o)),o.setDate(o.getDate()+c),o.setHours(0,0,0,0);return i?u.reverse():u}function R_(e,t){const n=pt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function N_(e,t){const n=pt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function L_(e,t){var c,u;const n=uo(),r=n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,i=pt(e,t==null?void 0:t.in),a=i.getDay(),o=(a<r?-7:0)+6-(a-r);return i.setDate(i.getDate()+o),i.setHours(23,59,59,999),i}const k_={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},j_=(e,t,n)=>{let r;const i=k_[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Xi(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const F_={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},V_={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},B_={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},W_={date:Xi({formats:F_,defaultWidth:"full"}),time:Xi({formats:V_,defaultWidth:"full"}),dateTime:Xi({formats:B_,defaultWidth:"full"})},U_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},z_=(e,t,n,r)=>U_[e];function In(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):o;i=e.formattingValues[c]||e.formattingValues[o]}else{const o=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const G_={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Y_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},H_={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},q_={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},K_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},X_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Z_={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:In({values:G_,defaultWidth:"wide"}),quarter:In({values:Y_,defaultWidth:"wide",argumentCallback:e=>e-1}),month:In({values:H_,defaultWidth:"wide"}),day:In({values:q_,defaultWidth:"wide"}),dayPeriod:In({values:K_,defaultWidth:"wide",formattingValues:X_,defaultFormattingWidth:"wide"})};function Dn(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?Q_(c,m=>m.test(o)):J_(c,m=>m.test(o));let d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;const h=t.slice(o.length);return{value:d,rest:h}}}function J_(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Q_(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function cv(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const c=t.slice(i.length);return{value:o,rest:c}}}const eI=/^(\d+)(th|st|nd|rd)?/i,tI=/\d+/i,nI={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},rI={any:[/^b/i,/^(a|c)/i]},iI={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},sI={any:[/1/i,/2/i,/3/i,/4/i]},oI={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},aI={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},lI={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},cI={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},uI={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},fI={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},dI={ordinalNumber:cv({matchPattern:eI,parsePattern:tI,valueCallback:e=>parseInt(e,10)}),era:Dn({matchPatterns:nI,defaultMatchWidth:"wide",parsePatterns:rI,defaultParseWidth:"any"}),quarter:Dn({matchPatterns:iI,defaultMatchWidth:"wide",parsePatterns:sI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Dn({matchPatterns:oI,defaultMatchWidth:"wide",parsePatterns:aI,defaultParseWidth:"any"}),day:Dn({matchPatterns:lI,defaultMatchWidth:"wide",parsePatterns:cI,defaultParseWidth:"any"}),dayPeriod:Dn({matchPatterns:uI,defaultMatchWidth:"any",parsePatterns:fI,defaultParseWidth:"any"})},uv={code:"en-US",formatDistance:j_,formatLong:W_,formatRelative:z_,localize:Z_,match:dI,options:{weekStartsOn:0,firstWeekContainsDate:1}};function hI(e,t){const n=pt(e,t==null?void 0:t.in);return P_(n,N_(n))+1}function mI(e,t){const n=pt(e,t==null?void 0:t.in),r=+Ra(n)-+A_(n);return Math.round(r/rv)+1}function fv(e,t){var h,m,p,y;const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=uo(),a=(t==null?void 0:t.firstWeekContainsDate)??((m=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??i.firstWeekContainsDate??((y=(p=i.locale)==null?void 0:p.options)==null?void 0:y.firstWeekContainsDate)??1,o=Gt((t==null?void 0:t.in)||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const c=Ki(o,t),u=Gt((t==null?void 0:t.in)||e,0);u.setFullYear(r,0,a),u.setHours(0,0,0,0);const d=Ki(u,t);return+n>=+c?r+1:+n>=+d?r:r-1}function pI(e,t){var c,u,d,h;const n=uo(),r=(t==null?void 0:t.firstWeekContainsDate)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,i=fv(e,t),a=Gt((t==null?void 0:t.in)||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Ki(a,t)}function gI(e,t){const n=pt(e,t==null?void 0:t.in),r=+Ki(n,t)-+pI(n,t);return Math.round(r/rv)+1}function We(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Tr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return We(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):We(n+1,2)},d(e,t){return We(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return We(e.getHours()%12||12,t.length)},H(e,t){return We(e.getHours(),t.length)},m(e,t){return We(e.getMinutes(),t.length)},s(e,t){return We(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return We(i,t.length)}},Zi={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dv={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Tr.y(e,t)},Y:function(e,t,n,r){const i=fv(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return We(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):We(a,t.length)},R:function(e,t){const n=ov(e);return We(n,t.length)},u:function(e,t){const n=e.getFullYear();return We(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return We(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return We(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Tr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return We(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=gI(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):We(i,t.length)},I:function(e,t,n){const r=mI(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):We(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Tr.d(e,t)},D:function(e,t,n){const r=hI(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):We(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return We(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return We(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return We(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Zi.noon:r===0?i=Zi.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Zi.evening:r>=12?i=Zi.afternoon:r>=4?i=Zi.morning:i=Zi.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Tr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Tr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):We(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):We(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Tr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Tr.s(e,t)},S:function(e,t){return Tr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return mv(r);case"XXXX":case"XX":return ei(r);case"XXXXX":case"XXX":default:return ei(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return mv(r);case"xxxx":case"xx":return ei(r);case"xxxxx":case"xxx":default:return ei(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+hv(r,":");case"OOOO":default:return"GMT"+ei(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+hv(r,":");case"zzzz":default:return"GMT"+ei(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return We(r,t.length)},T:function(e,t,n){return We(+e,t.length)}};function hv(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+We(a,2)}function mv(e,t){return e%60===0?(e>0?"-":"+")+We(Math.abs(e)/60,2):ei(e,t)}function ei(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=We(Math.trunc(r/60),2),a=We(r%60,2);return n+i+t+a}const pv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},gv=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},yI={p:gv,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return pv(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",pv(r,t)).replace("{{time}}",gv(i,t))}},vI=/^D+$/,bI=/^Y+$/,xI=["D","DD","YY","YYYY"];function wI(e){return vI.test(e)}function SI(e){return bI.test(e)}function TI(e,t,n){const r=EI(e,t,n);if(console.warn(r),xI.includes(e))throw new RangeError(r)}function EI(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const CI=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,PI=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,AI=/^'([^]*?)'?$/,OI=/''/g,MI=/[a-zA-Z]/;function $n(e,t,n){var h,m,p,y,S,b,E,w;const r=uo(),i=(n==null?void 0:n.locale)??r.locale??uv,a=(n==null?void 0:n.firstWeekContainsDate)??((m=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??r.firstWeekContainsDate??((y=(p=r.locale)==null?void 0:p.options)==null?void 0:y.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((b=(S=n==null?void 0:n.locale)==null?void 0:S.options)==null?void 0:b.weekStartsOn)??r.weekStartsOn??((w=(E=r.locale)==null?void 0:E.options)==null?void 0:w.weekStartsOn)??0,c=pt(e,n==null?void 0:n.in);if(!__(c))throw new RangeError("Invalid time value");let u=t.match(PI).map(C=>{const A=C[0];if(A==="p"||A==="P"){const $=yI[A];return $(C,i.formatLong)}return C}).join("").match(CI).map(C=>{if(C==="''")return{isToken:!1,value:"'"};const A=C[0];if(A==="'")return{isToken:!1,value:_I(C)};if(dv[A])return{isToken:!0,value:C};if(A.match(MI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+A+"`");return{isToken:!1,value:C}});i.localize.preprocessor&&(u=i.localize.preprocessor(c,u));const d={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return u.map(C=>{if(!C.isToken)return C.value;const A=C.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&SI(A)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&wI(A))&&TI(A,t,String(e));const $=dv[A[0]];return $(c,A,i.localize,d)}).join("")}function _I(e){const t=e.match(AI);return t?t[1].replace(OI,"'"):e}function II(e,t,n){const[r,i]=Na(n==null?void 0:n.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function DI(e,t){return lv(Gt(e,e),O_(e))}function yv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setHours(t),r}function vv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setMinutes(t),r}function bv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setSeconds(t),r}function $I(e,t,n){return sv(e,-1,n)}const RI={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},NI=(e,t,n)=>{let r;const i=RI[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},LI={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},kI={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},jI={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},FI={date:Xi({formats:LI,defaultWidth:"full"}),time:Xi({formats:kI,defaultWidth:"full"}),dateTime:Xi({formats:jI,defaultWidth:"full"})},VI={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},BI={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},WI=(e,t,n,r)=>t.getHours()!==1?BI[e]:VI[e],UI={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},zI={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},GI={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},YI={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},HI={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},qI={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},KI={ordinalNumber:(e,t)=>Number(e)+"º",era:In({values:UI,defaultWidth:"wide"}),quarter:In({values:zI,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:In({values:GI,defaultWidth:"wide"}),day:In({values:YI,defaultWidth:"wide"}),dayPeriod:In({values:HI,defaultWidth:"wide",formattingValues:qI,defaultFormattingWidth:"wide"})},XI=/^(\d+)(º)?/i,ZI=/\d+/i,JI={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},QI={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},eD={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},tD={any:[/1/i,/2/i,/3/i,/4/i]},nD={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},rD={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},iD={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},sD={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},oD={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},aD={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},lD={ordinalNumber:cv({matchPattern:XI,parsePattern:ZI,valueCallback:function(e){return parseInt(e,10)}}),era:Dn({matchPatterns:JI,defaultMatchWidth:"wide",parsePatterns:QI,defaultParseWidth:"any"}),quarter:Dn({matchPatterns:eD,defaultMatchWidth:"wide",parsePatterns:tD,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Dn({matchPatterns:nD,defaultMatchWidth:"wide",parsePatterns:rD,defaultParseWidth:"any"}),day:Dn({matchPatterns:iD,defaultMatchWidth:"wide",parsePatterns:sD,defaultParseWidth:"any"}),dayPeriod:Dn({matchPatterns:oD,defaultMatchWidth:"any",parsePatterns:aD,defaultParseWidth:"any"})},Ji={code:"es",formatDistance:NI,formatLong:FI,formatRelative:WI,localize:KI,match:lD,options:{weekStartsOn:1,firstWeekContainsDate:1}},xv=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),gf=e=>{if(!e)return"#9CA1B6";let t=0,n;for(n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t);let r="#";for(n=0;n<3;n+=1){const i=t>>n*8&255;r+=`00${i.toString(16)}`.slice(-2)}return r},cD=(e,t="PPPP",n="es")=>{const r=typeof e=="string"?new Date(e):e;return xv($n(r,t,{locale:{en:uv,es:Ji}[n]}))},uD=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=i=>n(i)});function wv(e,t){if(e<0)throw new Error("El valor en bytes no puede ser negativo");const r={b:{divisor:1,label:"B"},kb:{divisor:1024,label:"KB"},mb:{divisor:1024*1024,label:"MB"},gb:{divisor:1024*1024*1024,label:"GB"},tb:{divisor:1024*1024*1024*1024,label:"TB"},pb:{divisor:1024*1024*1024*1024*1024,label:"PB"}}[t];if(!r)throw new Error(`Unidad de medida '${t}' no reconocida`);return`${(e/r.divisor).toFixed(2).replace(/\.?0+$/,"")} ${r.label}`}const Sv=e=>e;var fo={exports:{}};/**
|
|
625
|
+
*/const S_={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},T_={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},nv={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]},rv=6048e5,E_=864e5,iv=Symbol.for("constructDateFrom");function Gt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&iv in e?e[iv](t):e instanceof Date?new e.constructor(t):new Date(t)}function pt(e,t){return Gt(t||e,e)}function sv(e,t,n){const r=pt(e,n==null?void 0:n.in);if(isNaN(t))return Gt(e,NaN);if(!t)return r;const i=r.getDate(),o=Gt(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const a=o.getDate();return i>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}let C_={};function uo(){return C_}function Ki(e,t){var c,u,d,h;const n=uo(),r=(t==null?void 0:t.weekStartsOn)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??0,i=pt(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function Ra(e,t){return Ki(e,{...t,weekStartsOn:1})}function ov(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=Gt(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=Ra(i),a=Gt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const c=Ra(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function av(e){const t=pt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Na(e,...t){const n=Gt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function La(e,t){const n=pt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function P_(e,t,n){const[r,i]=Na(n==null?void 0:n.in,e,t),o=La(r),a=La(i),c=+o-av(o),u=+a-av(a);return Math.round((c-u)/E_)}function A_(e,t){const n=ov(e,t),r=Gt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ra(r)}function M_(e){return Gt(e,Date.now())}function lv(e,t,n){const[r,i]=Na(n==null?void 0:n.in,e,t);return+La(r)==+La(i)}function O_(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function __(e){return!(!O_(e)&&typeof e!="number"||isNaN(+pt(e)))}function I_(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function D_(e,t){const[n,r]=Na(e,t.start,t.end);return{start:n,end:r}}function $_(e,t){const{start:n,end:r}=D_(t==null?void 0:t.in,e);let i=+n>+r;const o=i?+n:+r,a=i?r:n;a.setHours(0,0,0,0);let c=1;const u=[];for(;+a<=o;)u.push(Gt(n,a)),a.setDate(a.getDate()+c),a.setHours(0,0,0,0);return i?u.reverse():u}function R_(e,t){const n=pt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function N_(e,t){const n=pt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function L_(e,t){var c,u;const n=uo(),r=n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,i=pt(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?-7:0)+6-(o-r);return i.setDate(i.getDate()+a),i.setHours(23,59,59,999),i}const k_={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},j_=(e,t,n)=>{let r;const i=k_[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Xi(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const F_={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},V_={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},B_={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},W_={date:Xi({formats:F_,defaultWidth:"full"}),time:Xi({formats:V_,defaultWidth:"full"}),dateTime:Xi({formats:B_,defaultWidth:"full"})},U_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},z_=(e,t,n,r)=>U_[e];function In(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):a;i=e.formattingValues[c]||e.formattingValues[a]}else{const a=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const G_={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Y_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},H_={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},q_={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},K_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},X_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Z_={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:In({values:G_,defaultWidth:"wide"}),quarter:In({values:Y_,defaultWidth:"wide",argumentCallback:e=>e-1}),month:In({values:H_,defaultWidth:"wide"}),day:In({values:q_,defaultWidth:"wide"}),dayPeriod:In({values:K_,defaultWidth:"wide",formattingValues:X_,defaultFormattingWidth:"wide"})};function Dn(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?Q_(c,m=>m.test(a)):J_(c,m=>m.test(a));let d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;const h=t.slice(a.length);return{value:d,rest:h}}}function J_(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Q_(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function cv(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const c=t.slice(i.length);return{value:a,rest:c}}}const eI=/^(\d+)(th|st|nd|rd)?/i,tI=/\d+/i,nI={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},rI={any:[/^b/i,/^(a|c)/i]},iI={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},sI={any:[/1/i,/2/i,/3/i,/4/i]},oI={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},aI={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},lI={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},cI={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},uI={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},fI={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},dI={ordinalNumber:cv({matchPattern:eI,parsePattern:tI,valueCallback:e=>parseInt(e,10)}),era:Dn({matchPatterns:nI,defaultMatchWidth:"wide",parsePatterns:rI,defaultParseWidth:"any"}),quarter:Dn({matchPatterns:iI,defaultMatchWidth:"wide",parsePatterns:sI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Dn({matchPatterns:oI,defaultMatchWidth:"wide",parsePatterns:aI,defaultParseWidth:"any"}),day:Dn({matchPatterns:lI,defaultMatchWidth:"wide",parsePatterns:cI,defaultParseWidth:"any"}),dayPeriod:Dn({matchPatterns:uI,defaultMatchWidth:"any",parsePatterns:fI,defaultParseWidth:"any"})},uv={code:"en-US",formatDistance:j_,formatLong:W_,formatRelative:z_,localize:Z_,match:dI,options:{weekStartsOn:0,firstWeekContainsDate:1}};function hI(e,t){const n=pt(e,t==null?void 0:t.in);return P_(n,N_(n))+1}function mI(e,t){const n=pt(e,t==null?void 0:t.in),r=+Ra(n)-+A_(n);return Math.round(r/rv)+1}function fv(e,t){var h,m,p,y;const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=uo(),o=(t==null?void 0:t.firstWeekContainsDate)??((m=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??i.firstWeekContainsDate??((y=(p=i.locale)==null?void 0:p.options)==null?void 0:y.firstWeekContainsDate)??1,a=Gt((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const c=Ki(a,t),u=Gt((t==null?void 0:t.in)||e,0);u.setFullYear(r,0,o),u.setHours(0,0,0,0);const d=Ki(u,t);return+n>=+c?r+1:+n>=+d?r:r-1}function pI(e,t){var c,u,d,h;const n=uo(),r=(t==null?void 0:t.firstWeekContainsDate)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,i=fv(e,t),o=Gt((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Ki(o,t)}function gI(e,t){const n=pt(e,t==null?void 0:t.in),r=+Ki(n,t)-+pI(n,t);return Math.round(r/rv)+1}function We(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Tr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return We(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):We(n+1,2)},d(e,t){return We(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return We(e.getHours()%12||12,t.length)},H(e,t){return We(e.getHours(),t.length)},m(e,t){return We(e.getMinutes(),t.length)},s(e,t){return We(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return We(i,t.length)}},Zi={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dv={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Tr.y(e,t)},Y:function(e,t,n,r){const i=fv(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return We(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):We(o,t.length)},R:function(e,t){const n=ov(e);return We(n,t.length)},u:function(e,t){const n=e.getFullYear();return We(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return We(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return We(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Tr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return We(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=gI(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):We(i,t.length)},I:function(e,t,n){const r=mI(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):We(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Tr.d(e,t)},D:function(e,t,n){const r=hI(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):We(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return We(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return We(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return We(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Zi.noon:r===0?i=Zi.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Zi.evening:r>=12?i=Zi.afternoon:r>=4?i=Zi.morning:i=Zi.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Tr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Tr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):We(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):We(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Tr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Tr.s(e,t)},S:function(e,t){return Tr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return mv(r);case"XXXX":case"XX":return ei(r);case"XXXXX":case"XXX":default:return ei(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return mv(r);case"xxxx":case"xx":return ei(r);case"xxxxx":case"xxx":default:return ei(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+hv(r,":");case"OOOO":default:return"GMT"+ei(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+hv(r,":");case"zzzz":default:return"GMT"+ei(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return We(r,t.length)},T:function(e,t,n){return We(+e,t.length)}};function hv(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+We(o,2)}function mv(e,t){return e%60===0?(e>0?"-":"+")+We(Math.abs(e)/60,2):ei(e,t)}function ei(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=We(Math.trunc(r/60),2),o=We(r%60,2);return n+i+t+o}const pv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},gv=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},yI={p:gv,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return pv(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",pv(r,t)).replace("{{time}}",gv(i,t))}},vI=/^D+$/,bI=/^Y+$/,xI=["D","DD","YY","YYYY"];function wI(e){return vI.test(e)}function SI(e){return bI.test(e)}function TI(e,t,n){const r=EI(e,t,n);if(console.warn(r),xI.includes(e))throw new RangeError(r)}function EI(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const CI=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,PI=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,AI=/^'([^]*?)'?$/,MI=/''/g,OI=/[a-zA-Z]/;function $n(e,t,n){var h,m,p,y,S,b,E,w;const r=uo(),i=(n==null?void 0:n.locale)??r.locale??uv,o=(n==null?void 0:n.firstWeekContainsDate)??((m=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??r.firstWeekContainsDate??((y=(p=r.locale)==null?void 0:p.options)==null?void 0:y.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((b=(S=n==null?void 0:n.locale)==null?void 0:S.options)==null?void 0:b.weekStartsOn)??r.weekStartsOn??((w=(E=r.locale)==null?void 0:E.options)==null?void 0:w.weekStartsOn)??0,c=pt(e,n==null?void 0:n.in);if(!__(c))throw new RangeError("Invalid time value");let u=t.match(PI).map(C=>{const M=C[0];if(M==="p"||M==="P"){const $=yI[M];return $(C,i.formatLong)}return C}).join("").match(CI).map(C=>{if(C==="''")return{isToken:!1,value:"'"};const M=C[0];if(M==="'")return{isToken:!1,value:_I(C)};if(dv[M])return{isToken:!0,value:C};if(M.match(OI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");return{isToken:!1,value:C}});i.localize.preprocessor&&(u=i.localize.preprocessor(c,u));const d={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return u.map(C=>{if(!C.isToken)return C.value;const M=C.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&SI(M)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&wI(M))&&TI(M,t,String(e));const $=dv[M[0]];return $(c,M,i.localize,d)}).join("")}function _I(e){const t=e.match(AI);return t?t[1].replace(MI,"'"):e}function II(e,t,n){const[r,i]=Na(n==null?void 0:n.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function DI(e,t){return lv(Gt(e,e),M_(e))}function yv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setHours(t),r}function vv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setMinutes(t),r}function bv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setSeconds(t),r}function $I(e,t,n){return sv(e,-1,n)}const RI={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},NI=(e,t,n)=>{let r;const i=RI[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},LI={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},kI={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},jI={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},FI={date:Xi({formats:LI,defaultWidth:"full"}),time:Xi({formats:kI,defaultWidth:"full"}),dateTime:Xi({formats:jI,defaultWidth:"full"})},VI={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},BI={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},WI=(e,t,n,r)=>t.getHours()!==1?BI[e]:VI[e],UI={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},zI={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},GI={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},YI={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},HI={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},qI={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},KI={ordinalNumber:(e,t)=>Number(e)+"º",era:In({values:UI,defaultWidth:"wide"}),quarter:In({values:zI,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:In({values:GI,defaultWidth:"wide"}),day:In({values:YI,defaultWidth:"wide"}),dayPeriod:In({values:HI,defaultWidth:"wide",formattingValues:qI,defaultFormattingWidth:"wide"})},XI=/^(\d+)(º)?/i,ZI=/\d+/i,JI={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},QI={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},eD={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},tD={any:[/1/i,/2/i,/3/i,/4/i]},nD={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},rD={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},iD={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},sD={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},oD={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},aD={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},lD={ordinalNumber:cv({matchPattern:XI,parsePattern:ZI,valueCallback:function(e){return parseInt(e,10)}}),era:Dn({matchPatterns:JI,defaultMatchWidth:"wide",parsePatterns:QI,defaultParseWidth:"any"}),quarter:Dn({matchPatterns:eD,defaultMatchWidth:"wide",parsePatterns:tD,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Dn({matchPatterns:nD,defaultMatchWidth:"wide",parsePatterns:rD,defaultParseWidth:"any"}),day:Dn({matchPatterns:iD,defaultMatchWidth:"wide",parsePatterns:sD,defaultParseWidth:"any"}),dayPeriod:Dn({matchPatterns:oD,defaultMatchWidth:"any",parsePatterns:aD,defaultParseWidth:"any"})},Ji={code:"es",formatDistance:NI,formatLong:FI,formatRelative:WI,localize:KI,match:lD,options:{weekStartsOn:1,firstWeekContainsDate:1}},xv=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),gf=e=>{if(!e)return"#9CA1B6";let t=0,n;for(n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t);let r="#";for(n=0;n<3;n+=1){const i=t>>n*8&255;r+=`00${i.toString(16)}`.slice(-2)}return r},cD=(e,t="PPPP",n="es")=>{const r=typeof e=="string"?new Date(e):e;return xv($n(r,t,{locale:{en:uv,es:Ji}[n]}))},uD=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=i=>n(i)});function wv(e,t){if(e<0)throw new Error("El valor en bytes no puede ser negativo");const r={b:{divisor:1,label:"B"},kb:{divisor:1024,label:"KB"},mb:{divisor:1024*1024,label:"MB"},gb:{divisor:1024*1024*1024,label:"GB"},tb:{divisor:1024*1024*1024*1024,label:"TB"},pb:{divisor:1024*1024*1024*1024*1024,label:"PB"}}[t];if(!r)throw new Error(`Unidad de medida '${t}' no reconocida`);return`${(e/r.divisor).toFixed(2).replace(/\.?0+$/,"")} ${r.label}`}const Sv=e=>e;var fo={exports:{}};/**
|
|
626
626
|
* @license
|
|
627
627
|
* Lodash <https://lodash.com/>
|
|
628
628
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
629
629
|
* Released under MIT license <https://lodash.com/license>
|
|
630
630
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
631
631
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
632
|
-
*/var fD=fo.exports,Tv;function dD(){return Tv||(Tv=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",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,p=2,y=4,S=1,b=2,E=1,w=2,C=4,A=8,$=16,O=32,R=64,V=128,F=256,z=512,Q=30,ne="...",ue=800,ve=16,de=1,re=2,oe=3,j=1/0,W=9007199254740991,q=17976931348623157e292,M=NaN,k=4294967295,Z=k-1,ee=k>>>1,se=[["ary",V],["bind",E],["bindKey",w],["curry",A],["curryRight",$],["flip",z],["partial",O],["partialRight",R],["rearg",F]],G="[object Arguments]",te="[object Array]",he="[object AsyncFunction]",ce="[object Boolean]",ye="[object Date]",xe="[object DOMException]",Le="[object Error]",ie="[object Function]",pe="[object GeneratorFunction]",ke="[object Map]",ft="[object Number]",wi="[object Null]",dt="[object Object]",bl="[object Promise]",xl="[object Proxy]",Si="[object RegExp]",qt="[object Set]",bn="[object String]",Ti="[object Symbol]",wl="[object Undefined]",Nr="[object WeakMap]",Sl="[object WeakSet]",be="[object ArrayBuffer]",Qe="[object DataView]",Pt="[object Float32Array]",xn="[object Float64Array]",rr="[object Int8Array]",fh="[object Int16Array]",dh="[object Int32Array]",hh="[object Uint8Array]",mh="[object Uint8ClampedArray]",ph="[object Uint16Array]",gh="[object Uint32Array]",pk=/\b__p \+= '';/g,gk=/\b(__p \+=) '' \+/g,yk=/(__e\(.*?\)|\b__t\)) \+\n'';/g,kw=/&(?:amp|lt|gt|quot|#39);/g,jw=/[&<>"']/g,vk=RegExp(kw.source),bk=RegExp(jw.source),xk=/<%-([\s\S]+?)%>/g,wk=/<%([\s\S]+?)%>/g,Fw=/<%=([\s\S]+?)%>/g,Sk=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tk=/^\w*$/,Ek=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yh=/[\\^$.*+?()[\]{}|]/g,Ck=RegExp(yh.source),vh=/^\s+/,Pk=/\s/,Ak=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ok=/\{\n\/\* \[wrapped with (.+)\] \*/,Mk=/,? & /,_k=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ik=/[()=,{}\[\]\/\s]/,Dk=/\\(\\)?/g,$k=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vw=/\w*$/,Rk=/^[-+]0x[0-9a-f]+$/i,Nk=/^0b[01]+$/i,Lk=/^\[object .+?Constructor\]$/,kk=/^0o[0-7]+$/i,jk=/^(?:0|[1-9]\d*)$/,Fk=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tl=/($^)/,Vk=/['\n\r\u2028\u2029\\]/g,El="\\ud800-\\udfff",Bk="\\u0300-\\u036f",Wk="\\ufe20-\\ufe2f",Uk="\\u20d0-\\u20ff",Bw=Bk+Wk+Uk,Ww="\\u2700-\\u27bf",Uw="a-z\\xdf-\\xf6\\xf8-\\xff",zk="\\xac\\xb1\\xd7\\xf7",Gk="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Yk="\\u2000-\\u206f",Hk=" \\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",zw="A-Z\\xc0-\\xd6\\xd8-\\xde",Gw="\\ufe0e\\ufe0f",Yw=zk+Gk+Yk+Hk,bh="['’]",qk="["+El+"]",Hw="["+Yw+"]",Cl="["+Bw+"]",qw="\\d+",Kk="["+Ww+"]",Kw="["+Uw+"]",Xw="[^"+El+Yw+qw+Ww+Uw+zw+"]",xh="\\ud83c[\\udffb-\\udfff]",Xk="(?:"+Cl+"|"+xh+")",Zw="[^"+El+"]",wh="(?:\\ud83c[\\udde6-\\uddff]){2}",Sh="[\\ud800-\\udbff][\\udc00-\\udfff]",Ss="["+zw+"]",Jw="\\u200d",Qw="(?:"+Kw+"|"+Xw+")",Zk="(?:"+Ss+"|"+Xw+")",e2="(?:"+bh+"(?:d|ll|m|re|s|t|ve))?",t2="(?:"+bh+"(?:D|LL|M|RE|S|T|VE))?",n2=Xk+"?",r2="["+Gw+"]?",Jk="(?:"+Jw+"(?:"+[Zw,wh,Sh].join("|")+")"+r2+n2+")*",Qk="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",e3="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",i2=r2+n2+Jk,t3="(?:"+[Kk,wh,Sh].join("|")+")"+i2,n3="(?:"+[Zw+Cl+"?",Cl,wh,Sh,qk].join("|")+")",r3=RegExp(bh,"g"),i3=RegExp(Cl,"g"),Th=RegExp(xh+"(?="+xh+")|"+n3+i2,"g"),s3=RegExp([Ss+"?"+Kw+"+"+e2+"(?="+[Hw,Ss,"$"].join("|")+")",Zk+"+"+t2+"(?="+[Hw,Ss+Qw,"$"].join("|")+")",Ss+"?"+Qw+"+"+e2,Ss+"+"+t2,e3,Qk,qw,t3].join("|"),"g"),o3=RegExp("["+Jw+El+Bw+Gw+"]"),a3=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,l3=["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"],c3=-1,Je={};Je[Pt]=Je[xn]=Je[rr]=Je[fh]=Je[dh]=Je[hh]=Je[mh]=Je[ph]=Je[gh]=!0,Je[G]=Je[te]=Je[be]=Je[ce]=Je[Qe]=Je[ye]=Je[Le]=Je[ie]=Je[ke]=Je[ft]=Je[dt]=Je[Si]=Je[qt]=Je[bn]=Je[Nr]=!1;var Ke={};Ke[G]=Ke[te]=Ke[be]=Ke[Qe]=Ke[ce]=Ke[ye]=Ke[Pt]=Ke[xn]=Ke[rr]=Ke[fh]=Ke[dh]=Ke[ke]=Ke[ft]=Ke[dt]=Ke[Si]=Ke[qt]=Ke[bn]=Ke[Ti]=Ke[hh]=Ke[mh]=Ke[ph]=Ke[gh]=!0,Ke[Le]=Ke[ie]=Ke[Nr]=!1;var u3={À:"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"},f3={"&":"&","<":"<",">":">",'"':""","'":"'"},d3={"&":"&","<":"<",">":">",""":'"',"'":"'"},h3={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},m3=parseFloat,p3=parseInt,s2=typeof ea=="object"&&ea&&ea.Object===Object&&ea,g3=typeof self=="object"&&self&&self.Object===Object&&self,bt=s2||g3||Function("return this")(),Eh=t&&!t.nodeType&&t,Ei=Eh&&!0&&e&&!e.nodeType&&e,o2=Ei&&Ei.exports===Eh,Ch=o2&&s2.process,cn=function(){try{var N=Ei&&Ei.require&&Ei.require("util").types;return N||Ch&&Ch.binding&&Ch.binding("util")}catch{}}(),a2=cn&&cn.isArrayBuffer,l2=cn&&cn.isDate,c2=cn&&cn.isMap,u2=cn&&cn.isRegExp,f2=cn&&cn.isSet,d2=cn&&cn.isTypedArray;function Kt(N,U,B){switch(B.length){case 0:return N.call(U);case 1:return N.call(U,B[0]);case 2:return N.call(U,B[0],B[1]);case 3:return N.call(U,B[0],B[1],B[2])}return N.apply(U,B)}function y3(N,U,B,fe){for(var Pe=-1,je=N==null?0:N.length;++Pe<je;){var ht=N[Pe];U(fe,ht,B(ht),N)}return fe}function un(N,U){for(var B=-1,fe=N==null?0:N.length;++B<fe&&U(N[B],B,N)!==!1;);return N}function v3(N,U){for(var B=N==null?0:N.length;B--&&U(N[B],B,N)!==!1;);return N}function h2(N,U){for(var B=-1,fe=N==null?0:N.length;++B<fe;)if(!U(N[B],B,N))return!1;return!0}function Lr(N,U){for(var B=-1,fe=N==null?0:N.length,Pe=0,je=[];++B<fe;){var ht=N[B];U(ht,B,N)&&(je[Pe++]=ht)}return je}function Pl(N,U){var B=N==null?0:N.length;return!!B&&Ts(N,U,0)>-1}function Ph(N,U,B){for(var fe=-1,Pe=N==null?0:N.length;++fe<Pe;)if(B(U,N[fe]))return!0;return!1}function et(N,U){for(var B=-1,fe=N==null?0:N.length,Pe=Array(fe);++B<fe;)Pe[B]=U(N[B],B,N);return Pe}function kr(N,U){for(var B=-1,fe=U.length,Pe=N.length;++B<fe;)N[Pe+B]=U[B];return N}function Ah(N,U,B,fe){var Pe=-1,je=N==null?0:N.length;for(fe&&je&&(B=N[++Pe]);++Pe<je;)B=U(B,N[Pe],Pe,N);return B}function b3(N,U,B,fe){var Pe=N==null?0:N.length;for(fe&&Pe&&(B=N[--Pe]);Pe--;)B=U(B,N[Pe],Pe,N);return B}function Oh(N,U){for(var B=-1,fe=N==null?0:N.length;++B<fe;)if(U(N[B],B,N))return!0;return!1}var x3=Mh("length");function w3(N){return N.split("")}function S3(N){return N.match(_k)||[]}function m2(N,U,B){var fe;return B(N,function(Pe,je,ht){if(U(Pe,je,ht))return fe=je,!1}),fe}function Al(N,U,B,fe){for(var Pe=N.length,je=B+(fe?1:-1);fe?je--:++je<Pe;)if(U(N[je],je,N))return je;return-1}function Ts(N,U,B){return U===U?R3(N,U,B):Al(N,p2,B)}function T3(N,U,B,fe){for(var Pe=B-1,je=N.length;++Pe<je;)if(fe(N[Pe],U))return Pe;return-1}function p2(N){return N!==N}function g2(N,U){var B=N==null?0:N.length;return B?Ih(N,U)/B:M}function Mh(N){return function(U){return U==null?n:U[N]}}function _h(N){return function(U){return N==null?n:N[U]}}function y2(N,U,B,fe,Pe){return Pe(N,function(je,ht,Ge){B=fe?(fe=!1,je):U(B,je,ht,Ge)}),B}function E3(N,U){var B=N.length;for(N.sort(U);B--;)N[B]=N[B].value;return N}function Ih(N,U){for(var B,fe=-1,Pe=N.length;++fe<Pe;){var je=U(N[fe]);je!==n&&(B=B===n?je:B+je)}return B}function Dh(N,U){for(var B=-1,fe=Array(N);++B<N;)fe[B]=U(B);return fe}function C3(N,U){return et(U,function(B){return[B,N[B]]})}function v2(N){return N&&N.slice(0,S2(N)+1).replace(vh,"")}function Xt(N){return function(U){return N(U)}}function $h(N,U){return et(U,function(B){return N[B]})}function Fo(N,U){return N.has(U)}function b2(N,U){for(var B=-1,fe=N.length;++B<fe&&Ts(U,N[B],0)>-1;);return B}function x2(N,U){for(var B=N.length;B--&&Ts(U,N[B],0)>-1;);return B}function P3(N,U){for(var B=N.length,fe=0;B--;)N[B]===U&&++fe;return fe}var A3=_h(u3),O3=_h(f3);function M3(N){return"\\"+h3[N]}function _3(N,U){return N==null?n:N[U]}function Es(N){return o3.test(N)}function I3(N){return a3.test(N)}function D3(N){for(var U,B=[];!(U=N.next()).done;)B.push(U.value);return B}function Rh(N){var U=-1,B=Array(N.size);return N.forEach(function(fe,Pe){B[++U]=[Pe,fe]}),B}function w2(N,U){return function(B){return N(U(B))}}function jr(N,U){for(var B=-1,fe=N.length,Pe=0,je=[];++B<fe;){var ht=N[B];(ht===U||ht===h)&&(N[B]=h,je[Pe++]=B)}return je}function Ol(N){var U=-1,B=Array(N.size);return N.forEach(function(fe){B[++U]=fe}),B}function $3(N){var U=-1,B=Array(N.size);return N.forEach(function(fe){B[++U]=[fe,fe]}),B}function R3(N,U,B){for(var fe=B-1,Pe=N.length;++fe<Pe;)if(N[fe]===U)return fe;return-1}function N3(N,U,B){for(var fe=B+1;fe--;)if(N[fe]===U)return fe;return fe}function Cs(N){return Es(N)?k3(N):x3(N)}function wn(N){return Es(N)?j3(N):w3(N)}function S2(N){for(var U=N.length;U--&&Pk.test(N.charAt(U)););return U}var L3=_h(d3);function k3(N){for(var U=Th.lastIndex=0;Th.test(N);)++U;return U}function j3(N){return N.match(Th)||[]}function F3(N){return N.match(s3)||[]}var V3=function N(U){U=U==null?bt:Ps.defaults(bt.Object(),U,Ps.pick(bt,l3));var B=U.Array,fe=U.Date,Pe=U.Error,je=U.Function,ht=U.Math,Ge=U.Object,Nh=U.RegExp,B3=U.String,fn=U.TypeError,Ml=B.prototype,W3=je.prototype,As=Ge.prototype,_l=U["__core-js_shared__"],Il=W3.toString,Ue=As.hasOwnProperty,U3=0,T2=function(){var s=/[^.]+$/.exec(_l&&_l.keys&&_l.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Dl=As.toString,z3=Il.call(Ge),G3=bt._,Y3=Nh("^"+Il.call(Ue).replace(yh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$l=o2?U.Buffer:n,Fr=U.Symbol,Rl=U.Uint8Array,E2=$l?$l.allocUnsafe:n,Nl=w2(Ge.getPrototypeOf,Ge),C2=Ge.create,P2=As.propertyIsEnumerable,Ll=Ml.splice,A2=Fr?Fr.isConcatSpreadable:n,Vo=Fr?Fr.iterator:n,Ci=Fr?Fr.toStringTag:n,kl=function(){try{var s=_i(Ge,"defineProperty");return s({},"",{}),s}catch{}}(),H3=U.clearTimeout!==bt.clearTimeout&&U.clearTimeout,q3=fe&&fe.now!==bt.Date.now&&fe.now,K3=U.setTimeout!==bt.setTimeout&&U.setTimeout,jl=ht.ceil,Fl=ht.floor,Lh=Ge.getOwnPropertySymbols,X3=$l?$l.isBuffer:n,O2=U.isFinite,Z3=Ml.join,J3=w2(Ge.keys,Ge),mt=ht.max,At=ht.min,Q3=fe.now,ej=U.parseInt,M2=ht.random,tj=Ml.reverse,kh=_i(U,"DataView"),Bo=_i(U,"Map"),jh=_i(U,"Promise"),Os=_i(U,"Set"),Wo=_i(U,"WeakMap"),Uo=_i(Ge,"create"),Vl=Wo&&new Wo,Ms={},nj=Ii(kh),rj=Ii(Bo),ij=Ii(jh),sj=Ii(Os),oj=Ii(Wo),Bl=Fr?Fr.prototype:n,zo=Bl?Bl.valueOf:n,_2=Bl?Bl.toString:n;function T(s){if(ot(s)&&!Ae(s)&&!(s instanceof Re)){if(s instanceof dn)return s;if(Ue.call(s,"__wrapped__"))return IS(s)}return new dn(s)}var _s=function(){function s(){}return function(l){if(!st(l))return{};if(C2)return C2(l);s.prototype=l;var f=new s;return s.prototype=n,f}}();function Wl(){}function dn(s,l){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}T.templateSettings={escape:xk,evaluate:wk,interpolate:Fw,variable:"",imports:{_:T}},T.prototype=Wl.prototype,T.prototype.constructor=T,dn.prototype=_s(Wl.prototype),dn.prototype.constructor=dn;function Re(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=k,this.__views__=[]}function aj(){var s=new Re(this.__wrapped__);return s.__actions__=Vt(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Vt(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Vt(this.__views__),s}function lj(){if(this.__filtered__){var s=new Re(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function cj(){var s=this.__wrapped__.value(),l=this.__dir__,f=Ae(s),g=l<0,x=f?s.length:0,P=wF(0,x,this.__views__),_=P.start,D=P.end,L=D-_,Y=g?D:_-1,H=this.__iteratees__,K=H.length,le=0,me=At(L,this.__takeCount__);if(!f||!g&&x==L&&me==L)return eS(s,this.__actions__);var Ee=[];e:for(;L--&&le<me;){Y+=l;for(var Me=-1,Ce=s[Y];++Me<K;){var $e=H[Me],Ne=$e.iteratee,Qt=$e.type,$t=Ne(Ce);if(Qt==re)Ce=$t;else if(!$t){if(Qt==de)continue e;break e}}Ee[le++]=Ce}return Ee}Re.prototype=_s(Wl.prototype),Re.prototype.constructor=Re;function Pi(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var g=s[l];this.set(g[0],g[1])}}function uj(){this.__data__=Uo?Uo(null):{},this.size=0}function fj(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function dj(s){var l=this.__data__;if(Uo){var f=l[s];return f===u?n:f}return Ue.call(l,s)?l[s]:n}function hj(s){var l=this.__data__;return Uo?l[s]!==n:Ue.call(l,s)}function mj(s,l){var f=this.__data__;return this.size+=this.has(s)?0:1,f[s]=Uo&&l===n?u:l,this}Pi.prototype.clear=uj,Pi.prototype.delete=fj,Pi.prototype.get=dj,Pi.prototype.has=hj,Pi.prototype.set=mj;function ir(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var g=s[l];this.set(g[0],g[1])}}function pj(){this.__data__=[],this.size=0}function gj(s){var l=this.__data__,f=Ul(l,s);if(f<0)return!1;var g=l.length-1;return f==g?l.pop():Ll.call(l,f,1),--this.size,!0}function yj(s){var l=this.__data__,f=Ul(l,s);return f<0?n:l[f][1]}function vj(s){return Ul(this.__data__,s)>-1}function bj(s,l){var f=this.__data__,g=Ul(f,s);return g<0?(++this.size,f.push([s,l])):f[g][1]=l,this}ir.prototype.clear=pj,ir.prototype.delete=gj,ir.prototype.get=yj,ir.prototype.has=vj,ir.prototype.set=bj;function sr(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var g=s[l];this.set(g[0],g[1])}}function xj(){this.size=0,this.__data__={hash:new Pi,map:new(Bo||ir),string:new Pi}}function wj(s){var l=tc(this,s).delete(s);return this.size-=l?1:0,l}function Sj(s){return tc(this,s).get(s)}function Tj(s){return tc(this,s).has(s)}function Ej(s,l){var f=tc(this,s),g=f.size;return f.set(s,l),this.size+=f.size==g?0:1,this}sr.prototype.clear=xj,sr.prototype.delete=wj,sr.prototype.get=Sj,sr.prototype.has=Tj,sr.prototype.set=Ej;function Ai(s){var l=-1,f=s==null?0:s.length;for(this.__data__=new sr;++l<f;)this.add(s[l])}function Cj(s){return this.__data__.set(s,u),this}function Pj(s){return this.__data__.has(s)}Ai.prototype.add=Ai.prototype.push=Cj,Ai.prototype.has=Pj;function Sn(s){var l=this.__data__=new ir(s);this.size=l.size}function Aj(){this.__data__=new ir,this.size=0}function Oj(s){var l=this.__data__,f=l.delete(s);return this.size=l.size,f}function Mj(s){return this.__data__.get(s)}function _j(s){return this.__data__.has(s)}function Ij(s,l){var f=this.__data__;if(f instanceof ir){var g=f.__data__;if(!Bo||g.length<i-1)return g.push([s,l]),this.size=++f.size,this;f=this.__data__=new sr(g)}return f.set(s,l),this.size=f.size,this}Sn.prototype.clear=Aj,Sn.prototype.delete=Oj,Sn.prototype.get=Mj,Sn.prototype.has=_j,Sn.prototype.set=Ij;function I2(s,l){var f=Ae(s),g=!f&&Di(s),x=!f&&!g&&zr(s),P=!f&&!g&&!x&&Rs(s),_=f||g||x||P,D=_?Dh(s.length,B3):[],L=D.length;for(var Y in s)(l||Ue.call(s,Y))&&!(_&&(Y=="length"||x&&(Y=="offset"||Y=="parent")||P&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||cr(Y,L)))&&D.push(Y);return D}function D2(s){var l=s.length;return l?s[Kh(0,l-1)]:n}function Dj(s,l){return nc(Vt(s),Oi(l,0,s.length))}function $j(s){return nc(Vt(s))}function Fh(s,l,f){(f!==n&&!Tn(s[l],f)||f===n&&!(l in s))&&or(s,l,f)}function Go(s,l,f){var g=s[l];(!(Ue.call(s,l)&&Tn(g,f))||f===n&&!(l in s))&&or(s,l,f)}function Ul(s,l){for(var f=s.length;f--;)if(Tn(s[f][0],l))return f;return-1}function Rj(s,l,f,g){return Vr(s,function(x,P,_){l(g,x,f(x),_)}),g}function $2(s,l){return s&&Wn(l,gt(l),s)}function Nj(s,l){return s&&Wn(l,Wt(l),s)}function or(s,l,f){l=="__proto__"&&kl?kl(s,l,{configurable:!0,enumerable:!0,value:f,writable:!0}):s[l]=f}function Vh(s,l){for(var f=-1,g=l.length,x=B(g),P=s==null;++f<g;)x[f]=P?n:xm(s,l[f]);return x}function Oi(s,l,f){return s===s&&(f!==n&&(s=s<=f?s:f),l!==n&&(s=s>=l?s:l)),s}function hn(s,l,f,g,x,P){var _,D=l&m,L=l&p,Y=l&y;if(f&&(_=x?f(s,g,x,P):f(s)),_!==n)return _;if(!st(s))return s;var H=Ae(s);if(H){if(_=TF(s),!D)return Vt(s,_)}else{var K=Ot(s),le=K==ie||K==pe;if(zr(s))return rS(s,D);if(K==dt||K==G||le&&!x){if(_=L||le?{}:SS(s),!D)return L?dF(s,Nj(_,s)):fF(s,$2(_,s))}else{if(!Ke[K])return x?s:{};_=EF(s,K,D)}}P||(P=new Sn);var me=P.get(s);if(me)return me;P.set(s,_),ZS(s)?s.forEach(function(Ce){_.add(hn(Ce,l,f,Ce,s,P))}):KS(s)&&s.forEach(function(Ce,$e){_.set($e,hn(Ce,l,f,$e,s,P))});var Ee=Y?L?om:sm:L?Wt:gt,Me=H?n:Ee(s);return un(Me||s,function(Ce,$e){Me&&($e=Ce,Ce=s[$e]),Go(_,$e,hn(Ce,l,f,$e,s,P))}),_}function Lj(s){var l=gt(s);return function(f){return R2(f,s,l)}}function R2(s,l,f){var g=f.length;if(s==null)return!g;for(s=Ge(s);g--;){var x=f[g],P=l[x],_=s[x];if(_===n&&!(x in s)||!P(_))return!1}return!0}function N2(s,l,f){if(typeof s!="function")throw new fn(o);return Jo(function(){s.apply(n,f)},l)}function Yo(s,l,f,g){var x=-1,P=Pl,_=!0,D=s.length,L=[],Y=l.length;if(!D)return L;f&&(l=et(l,Xt(f))),g?(P=Ph,_=!1):l.length>=i&&(P=Fo,_=!1,l=new Ai(l));e:for(;++x<D;){var H=s[x],K=f==null?H:f(H);if(H=g||H!==0?H:0,_&&K===K){for(var le=Y;le--;)if(l[le]===K)continue e;L.push(H)}else P(l,K,g)||L.push(H)}return L}var Vr=lS(Bn),L2=lS(Wh,!0);function kj(s,l){var f=!0;return Vr(s,function(g,x,P){return f=!!l(g,x,P),f}),f}function zl(s,l,f){for(var g=-1,x=s.length;++g<x;){var P=s[g],_=l(P);if(_!=null&&(D===n?_===_&&!Jt(_):f(_,D)))var D=_,L=P}return L}function jj(s,l,f,g){var x=s.length;for(f=Oe(f),f<0&&(f=-f>x?0:x+f),g=g===n||g>x?x:Oe(g),g<0&&(g+=x),g=f>g?0:QS(g);f<g;)s[f++]=l;return s}function k2(s,l){var f=[];return Vr(s,function(g,x,P){l(g,x,P)&&f.push(g)}),f}function xt(s,l,f,g,x){var P=-1,_=s.length;for(f||(f=PF),x||(x=[]);++P<_;){var D=s[P];l>0&&f(D)?l>1?xt(D,l-1,f,g,x):kr(x,D):g||(x[x.length]=D)}return x}var Bh=cS(),j2=cS(!0);function Bn(s,l){return s&&Bh(s,l,gt)}function Wh(s,l){return s&&j2(s,l,gt)}function Gl(s,l){return Lr(l,function(f){return ur(s[f])})}function Mi(s,l){l=Wr(l,s);for(var f=0,g=l.length;s!=null&&f<g;)s=s[Un(l[f++])];return f&&f==g?s:n}function F2(s,l,f){var g=l(s);return Ae(s)?g:kr(g,f(s))}function It(s){return s==null?s===n?wl:wi:Ci&&Ci in Ge(s)?xF(s):$F(s)}function Uh(s,l){return s>l}function Fj(s,l){return s!=null&&Ue.call(s,l)}function Vj(s,l){return s!=null&&l in Ge(s)}function Bj(s,l,f){return s>=At(l,f)&&s<mt(l,f)}function zh(s,l,f){for(var g=f?Ph:Pl,x=s[0].length,P=s.length,_=P,D=B(P),L=1/0,Y=[];_--;){var H=s[_];_&&l&&(H=et(H,Xt(l))),L=At(H.length,L),D[_]=!f&&(l||x>=120&&H.length>=120)?new Ai(_&&H):n}H=s[0];var K=-1,le=D[0];e:for(;++K<x&&Y.length<L;){var me=H[K],Ee=l?l(me):me;if(me=f||me!==0?me:0,!(le?Fo(le,Ee):g(Y,Ee,f))){for(_=P;--_;){var Me=D[_];if(!(Me?Fo(Me,Ee):g(s[_],Ee,f)))continue e}le&&le.push(Ee),Y.push(me)}}return Y}function Wj(s,l,f,g){return Bn(s,function(x,P,_){l(g,f(x),P,_)}),g}function Ho(s,l,f){l=Wr(l,s),s=PS(s,l);var g=s==null?s:s[Un(pn(l))];return g==null?n:Kt(g,s,f)}function V2(s){return ot(s)&&It(s)==G}function Uj(s){return ot(s)&&It(s)==be}function zj(s){return ot(s)&&It(s)==ye}function qo(s,l,f,g,x){return s===l?!0:s==null||l==null||!ot(s)&&!ot(l)?s!==s&&l!==l:Gj(s,l,f,g,qo,x)}function Gj(s,l,f,g,x,P){var _=Ae(s),D=Ae(l),L=_?te:Ot(s),Y=D?te:Ot(l);L=L==G?dt:L,Y=Y==G?dt:Y;var H=L==dt,K=Y==dt,le=L==Y;if(le&&zr(s)){if(!zr(l))return!1;_=!0,H=!1}if(le&&!H)return P||(P=new Sn),_||Rs(s)?bS(s,l,f,g,x,P):vF(s,l,L,f,g,x,P);if(!(f&S)){var me=H&&Ue.call(s,"__wrapped__"),Ee=K&&Ue.call(l,"__wrapped__");if(me||Ee){var Me=me?s.value():s,Ce=Ee?l.value():l;return P||(P=new Sn),x(Me,Ce,f,g,P)}}return le?(P||(P=new Sn),bF(s,l,f,g,x,P)):!1}function Yj(s){return ot(s)&&Ot(s)==ke}function Gh(s,l,f,g){var x=f.length,P=x,_=!g;if(s==null)return!P;for(s=Ge(s);x--;){var D=f[x];if(_&&D[2]?D[1]!==s[D[0]]:!(D[0]in s))return!1}for(;++x<P;){D=f[x];var L=D[0],Y=s[L],H=D[1];if(_&&D[2]){if(Y===n&&!(L in s))return!1}else{var K=new Sn;if(g)var le=g(Y,H,L,s,l,K);if(!(le===n?qo(H,Y,S|b,g,K):le))return!1}}return!0}function B2(s){if(!st(s)||OF(s))return!1;var l=ur(s)?Y3:Lk;return l.test(Ii(s))}function Hj(s){return ot(s)&&It(s)==Si}function qj(s){return ot(s)&&Ot(s)==qt}function Kj(s){return ot(s)&&lc(s.length)&&!!Je[It(s)]}function W2(s){return typeof s=="function"?s:s==null?Ut:typeof s=="object"?Ae(s)?G2(s[0],s[1]):z2(s):uT(s)}function Yh(s){if(!Zo(s))return J3(s);var l=[];for(var f in Ge(s))Ue.call(s,f)&&f!="constructor"&&l.push(f);return l}function Xj(s){if(!st(s))return DF(s);var l=Zo(s),f=[];for(var g in s)g=="constructor"&&(l||!Ue.call(s,g))||f.push(g);return f}function Hh(s,l){return s<l}function U2(s,l){var f=-1,g=Bt(s)?B(s.length):[];return Vr(s,function(x,P,_){g[++f]=l(x,P,_)}),g}function z2(s){var l=lm(s);return l.length==1&&l[0][2]?ES(l[0][0],l[0][1]):function(f){return f===s||Gh(f,s,l)}}function G2(s,l){return um(s)&&TS(l)?ES(Un(s),l):function(f){var g=xm(f,s);return g===n&&g===l?wm(f,s):qo(l,g,S|b)}}function Yl(s,l,f,g,x){s!==l&&Bh(l,function(P,_){if(x||(x=new Sn),st(P))Zj(s,l,_,f,Yl,g,x);else{var D=g?g(dm(s,_),P,_+"",s,l,x):n;D===n&&(D=P),Fh(s,_,D)}},Wt)}function Zj(s,l,f,g,x,P,_){var D=dm(s,f),L=dm(l,f),Y=_.get(L);if(Y){Fh(s,f,Y);return}var H=P?P(D,L,f+"",s,l,_):n,K=H===n;if(K){var le=Ae(L),me=!le&&zr(L),Ee=!le&&!me&&Rs(L);H=L,le||me||Ee?Ae(D)?H=D:ct(D)?H=Vt(D):me?(K=!1,H=rS(L,!0)):Ee?(K=!1,H=iS(L,!0)):H=[]:Qo(L)||Di(L)?(H=D,Di(D)?H=eT(D):(!st(D)||ur(D))&&(H=SS(L))):K=!1}K&&(_.set(L,H),x(H,L,g,P,_),_.delete(L)),Fh(s,f,H)}function Y2(s,l){var f=s.length;if(f)return l+=l<0?f:0,cr(l,f)?s[l]:n}function H2(s,l,f){l.length?l=et(l,function(P){return Ae(P)?function(_){return Mi(_,P.length===1?P[0]:P)}:P}):l=[Ut];var g=-1;l=et(l,Xt(we()));var x=U2(s,function(P,_,D){var L=et(l,function(Y){return Y(P)});return{criteria:L,index:++g,value:P}});return E3(x,function(P,_){return uF(P,_,f)})}function Jj(s,l){return q2(s,l,function(f,g){return wm(s,g)})}function q2(s,l,f){for(var g=-1,x=l.length,P={};++g<x;){var _=l[g],D=Mi(s,_);f(D,_)&&Ko(P,Wr(_,s),D)}return P}function Qj(s){return function(l){return Mi(l,s)}}function qh(s,l,f,g){var x=g?T3:Ts,P=-1,_=l.length,D=s;for(s===l&&(l=Vt(l)),f&&(D=et(s,Xt(f)));++P<_;)for(var L=0,Y=l[P],H=f?f(Y):Y;(L=x(D,H,L,g))>-1;)D!==s&&Ll.call(D,L,1),Ll.call(s,L,1);return s}function K2(s,l){for(var f=s?l.length:0,g=f-1;f--;){var x=l[f];if(f==g||x!==P){var P=x;cr(x)?Ll.call(s,x,1):Jh(s,x)}}return s}function Kh(s,l){return s+Fl(M2()*(l-s+1))}function eF(s,l,f,g){for(var x=-1,P=mt(jl((l-s)/(f||1)),0),_=B(P);P--;)_[g?P:++x]=s,s+=f;return _}function Xh(s,l){var f="";if(!s||l<1||l>W)return f;do l%2&&(f+=s),l=Fl(l/2),l&&(s+=s);while(l);return f}function _e(s,l){return hm(CS(s,l,Ut),s+"")}function tF(s){return D2(Ns(s))}function nF(s,l){var f=Ns(s);return nc(f,Oi(l,0,f.length))}function Ko(s,l,f,g){if(!st(s))return s;l=Wr(l,s);for(var x=-1,P=l.length,_=P-1,D=s;D!=null&&++x<P;){var L=Un(l[x]),Y=f;if(L==="__proto__"||L==="constructor"||L==="prototype")return s;if(x!=_){var H=D[L];Y=g?g(H,L,D):n,Y===n&&(Y=st(H)?H:cr(l[x+1])?[]:{})}Go(D,L,Y),D=D[L]}return s}var X2=Vl?function(s,l){return Vl.set(s,l),s}:Ut,rF=kl?function(s,l){return kl(s,"toString",{configurable:!0,enumerable:!1,value:Tm(l),writable:!0})}:Ut;function iF(s){return nc(Ns(s))}function mn(s,l,f){var g=-1,x=s.length;l<0&&(l=-l>x?0:x+l),f=f>x?x:f,f<0&&(f+=x),x=l>f?0:f-l>>>0,l>>>=0;for(var P=B(x);++g<x;)P[g]=s[g+l];return P}function sF(s,l){var f;return Vr(s,function(g,x,P){return f=l(g,x,P),!f}),!!f}function Hl(s,l,f){var g=0,x=s==null?g:s.length;if(typeof l=="number"&&l===l&&x<=ee){for(;g<x;){var P=g+x>>>1,_=s[P];_!==null&&!Jt(_)&&(f?_<=l:_<l)?g=P+1:x=P}return x}return Zh(s,l,Ut,f)}function Zh(s,l,f,g){var x=0,P=s==null?0:s.length;if(P===0)return 0;l=f(l);for(var _=l!==l,D=l===null,L=Jt(l),Y=l===n;x<P;){var H=Fl((x+P)/2),K=f(s[H]),le=K!==n,me=K===null,Ee=K===K,Me=Jt(K);if(_)var Ce=g||Ee;else Y?Ce=Ee&&(g||le):D?Ce=Ee&&le&&(g||!me):L?Ce=Ee&&le&&!me&&(g||!Me):me||Me?Ce=!1:Ce=g?K<=l:K<l;Ce?x=H+1:P=H}return At(P,Z)}function Z2(s,l){for(var f=-1,g=s.length,x=0,P=[];++f<g;){var _=s[f],D=l?l(_):_;if(!f||!Tn(D,L)){var L=D;P[x++]=_===0?0:_}}return P}function J2(s){return typeof s=="number"?s:Jt(s)?M:+s}function Zt(s){if(typeof s=="string")return s;if(Ae(s))return et(s,Zt)+"";if(Jt(s))return _2?_2.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function Br(s,l,f){var g=-1,x=Pl,P=s.length,_=!0,D=[],L=D;if(f)_=!1,x=Ph;else if(P>=i){var Y=l?null:gF(s);if(Y)return Ol(Y);_=!1,x=Fo,L=new Ai}else L=l?[]:D;e:for(;++g<P;){var H=s[g],K=l?l(H):H;if(H=f||H!==0?H:0,_&&K===K){for(var le=L.length;le--;)if(L[le]===K)continue e;l&&L.push(K),D.push(H)}else x(L,K,f)||(L!==D&&L.push(K),D.push(H))}return D}function Jh(s,l){return l=Wr(l,s),s=PS(s,l),s==null||delete s[Un(pn(l))]}function Q2(s,l,f,g){return Ko(s,l,f(Mi(s,l)),g)}function ql(s,l,f,g){for(var x=s.length,P=g?x:-1;(g?P--:++P<x)&&l(s[P],P,s););return f?mn(s,g?0:P,g?P+1:x):mn(s,g?P+1:0,g?x:P)}function eS(s,l){var f=s;return f instanceof Re&&(f=f.value()),Ah(l,function(g,x){return x.func.apply(x.thisArg,kr([g],x.args))},f)}function Qh(s,l,f){var g=s.length;if(g<2)return g?Br(s[0]):[];for(var x=-1,P=B(g);++x<g;)for(var _=s[x],D=-1;++D<g;)D!=x&&(P[x]=Yo(P[x]||_,s[D],l,f));return Br(xt(P,1),l,f)}function tS(s,l,f){for(var g=-1,x=s.length,P=l.length,_={};++g<x;){var D=g<P?l[g]:n;f(_,s[g],D)}return _}function em(s){return ct(s)?s:[]}function tm(s){return typeof s=="function"?s:Ut}function Wr(s,l){return Ae(s)?s:um(s,l)?[s]:_S(Be(s))}var oF=_e;function Ur(s,l,f){var g=s.length;return f=f===n?g:f,!l&&f>=g?s:mn(s,l,f)}var nS=H3||function(s){return bt.clearTimeout(s)};function rS(s,l){if(l)return s.slice();var f=s.length,g=E2?E2(f):new s.constructor(f);return s.copy(g),g}function nm(s){var l=new s.constructor(s.byteLength);return new Rl(l).set(new Rl(s)),l}function aF(s,l){var f=l?nm(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function lF(s){var l=new s.constructor(s.source,Vw.exec(s));return l.lastIndex=s.lastIndex,l}function cF(s){return zo?Ge(zo.call(s)):{}}function iS(s,l){var f=l?nm(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.length)}function sS(s,l){if(s!==l){var f=s!==n,g=s===null,x=s===s,P=Jt(s),_=l!==n,D=l===null,L=l===l,Y=Jt(l);if(!D&&!Y&&!P&&s>l||P&&_&&L&&!D&&!Y||g&&_&&L||!f&&L||!x)return 1;if(!g&&!P&&!Y&&s<l||Y&&f&&x&&!g&&!P||D&&f&&x||!_&&x||!L)return-1}return 0}function uF(s,l,f){for(var g=-1,x=s.criteria,P=l.criteria,_=x.length,D=f.length;++g<_;){var L=sS(x[g],P[g]);if(L){if(g>=D)return L;var Y=f[g];return L*(Y=="desc"?-1:1)}}return s.index-l.index}function oS(s,l,f,g){for(var x=-1,P=s.length,_=f.length,D=-1,L=l.length,Y=mt(P-_,0),H=B(L+Y),K=!g;++D<L;)H[D]=l[D];for(;++x<_;)(K||x<P)&&(H[f[x]]=s[x]);for(;Y--;)H[D++]=s[x++];return H}function aS(s,l,f,g){for(var x=-1,P=s.length,_=-1,D=f.length,L=-1,Y=l.length,H=mt(P-D,0),K=B(H+Y),le=!g;++x<H;)K[x]=s[x];for(var me=x;++L<Y;)K[me+L]=l[L];for(;++_<D;)(le||x<P)&&(K[me+f[_]]=s[x++]);return K}function Vt(s,l){var f=-1,g=s.length;for(l||(l=B(g));++f<g;)l[f]=s[f];return l}function Wn(s,l,f,g){var x=!f;f||(f={});for(var P=-1,_=l.length;++P<_;){var D=l[P],L=g?g(f[D],s[D],D,f,s):n;L===n&&(L=s[D]),x?or(f,D,L):Go(f,D,L)}return f}function fF(s,l){return Wn(s,cm(s),l)}function dF(s,l){return Wn(s,xS(s),l)}function Kl(s,l){return function(f,g){var x=Ae(f)?y3:Rj,P=l?l():{};return x(f,s,we(g,2),P)}}function Is(s){return _e(function(l,f){var g=-1,x=f.length,P=x>1?f[x-1]:n,_=x>2?f[2]:n;for(P=s.length>3&&typeof P=="function"?(x--,P):n,_&&Dt(f[0],f[1],_)&&(P=x<3?n:P,x=1),l=Ge(l);++g<x;){var D=f[g];D&&s(l,D,g,P)}return l})}function lS(s,l){return function(f,g){if(f==null)return f;if(!Bt(f))return s(f,g);for(var x=f.length,P=l?x:-1,_=Ge(f);(l?P--:++P<x)&&g(_[P],P,_)!==!1;);return f}}function cS(s){return function(l,f,g){for(var x=-1,P=Ge(l),_=g(l),D=_.length;D--;){var L=_[s?D:++x];if(f(P[L],L,P)===!1)break}return l}}function hF(s,l,f){var g=l&E,x=Xo(s);function P(){var _=this&&this!==bt&&this instanceof P?x:s;return _.apply(g?f:this,arguments)}return P}function uS(s){return function(l){l=Be(l);var f=Es(l)?wn(l):n,g=f?f[0]:l.charAt(0),x=f?Ur(f,1).join(""):l.slice(1);return g[s]()+x}}function Ds(s){return function(l){return Ah(lT(aT(l).replace(r3,"")),s,"")}}function Xo(s){return function(){var l=arguments;switch(l.length){case 0:return new s;case 1:return new s(l[0]);case 2:return new s(l[0],l[1]);case 3:return new s(l[0],l[1],l[2]);case 4:return new s(l[0],l[1],l[2],l[3]);case 5:return new s(l[0],l[1],l[2],l[3],l[4]);case 6:return new s(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new s(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var f=_s(s.prototype),g=s.apply(f,l);return st(g)?g:f}}function mF(s,l,f){var g=Xo(s);function x(){for(var P=arguments.length,_=B(P),D=P,L=$s(x);D--;)_[D]=arguments[D];var Y=P<3&&_[0]!==L&&_[P-1]!==L?[]:jr(_,L);if(P-=Y.length,P<f)return pS(s,l,Xl,x.placeholder,n,_,Y,n,n,f-P);var H=this&&this!==bt&&this instanceof x?g:s;return Kt(H,this,_)}return x}function fS(s){return function(l,f,g){var x=Ge(l);if(!Bt(l)){var P=we(f,3);l=gt(l),f=function(D){return P(x[D],D,x)}}var _=s(l,f,g);return _>-1?x[P?l[_]:_]:n}}function dS(s){return lr(function(l){var f=l.length,g=f,x=dn.prototype.thru;for(s&&l.reverse();g--;){var P=l[g];if(typeof P!="function")throw new fn(o);if(x&&!_&&ec(P)=="wrapper")var _=new dn([],!0)}for(g=_?g:f;++g<f;){P=l[g];var D=ec(P),L=D=="wrapper"?am(P):n;L&&fm(L[0])&&L[1]==(V|A|O|F)&&!L[4].length&&L[9]==1?_=_[ec(L[0])].apply(_,L[3]):_=P.length==1&&fm(P)?_[D]():_.thru(P)}return function(){var Y=arguments,H=Y[0];if(_&&Y.length==1&&Ae(H))return _.plant(H).value();for(var K=0,le=f?l[K].apply(this,Y):H;++K<f;)le=l[K].call(this,le);return le}})}function Xl(s,l,f,g,x,P,_,D,L,Y){var H=l&V,K=l&E,le=l&w,me=l&(A|$),Ee=l&z,Me=le?n:Xo(s);function Ce(){for(var $e=arguments.length,Ne=B($e),Qt=$e;Qt--;)Ne[Qt]=arguments[Qt];if(me)var $t=$s(Ce),en=P3(Ne,$t);if(g&&(Ne=oS(Ne,g,x,me)),P&&(Ne=aS(Ne,P,_,me)),$e-=en,me&&$e<Y){var ut=jr(Ne,$t);return pS(s,l,Xl,Ce.placeholder,f,Ne,ut,D,L,Y-$e)}var En=K?f:this,dr=le?En[s]:s;return $e=Ne.length,D?Ne=RF(Ne,D):Ee&&$e>1&&Ne.reverse(),H&&L<$e&&(Ne.length=L),this&&this!==bt&&this instanceof Ce&&(dr=Me||Xo(dr)),dr.apply(En,Ne)}return Ce}function hS(s,l){return function(f,g){return Wj(f,s,l(g),{})}}function Zl(s,l){return function(f,g){var x;if(f===n&&g===n)return l;if(f!==n&&(x=f),g!==n){if(x===n)return g;typeof f=="string"||typeof g=="string"?(f=Zt(f),g=Zt(g)):(f=J2(f),g=J2(g)),x=s(f,g)}return x}}function rm(s){return lr(function(l){return l=et(l,Xt(we())),_e(function(f){var g=this;return s(l,function(x){return Kt(x,g,f)})})})}function Jl(s,l){l=l===n?" ":Zt(l);var f=l.length;if(f<2)return f?Xh(l,s):l;var g=Xh(l,jl(s/Cs(l)));return Es(l)?Ur(wn(g),0,s).join(""):g.slice(0,s)}function pF(s,l,f,g){var x=l&E,P=Xo(s);function _(){for(var D=-1,L=arguments.length,Y=-1,H=g.length,K=B(H+L),le=this&&this!==bt&&this instanceof _?P:s;++Y<H;)K[Y]=g[Y];for(;L--;)K[Y++]=arguments[++D];return Kt(le,x?f:this,K)}return _}function mS(s){return function(l,f,g){return g&&typeof g!="number"&&Dt(l,f,g)&&(f=g=n),l=fr(l),f===n?(f=l,l=0):f=fr(f),g=g===n?l<f?1:-1:fr(g),eF(l,f,g,s)}}function Ql(s){return function(l,f){return typeof l=="string"&&typeof f=="string"||(l=gn(l),f=gn(f)),s(l,f)}}function pS(s,l,f,g,x,P,_,D,L,Y){var H=l&A,K=H?_:n,le=H?n:_,me=H?P:n,Ee=H?n:P;l|=H?O:R,l&=~(H?R:O),l&C||(l&=-4);var Me=[s,l,x,me,K,Ee,le,D,L,Y],Ce=f.apply(n,Me);return fm(s)&&AS(Ce,Me),Ce.placeholder=g,OS(Ce,s,l)}function im(s){var l=ht[s];return function(f,g){if(f=gn(f),g=g==null?0:At(Oe(g),292),g&&O2(f)){var x=(Be(f)+"e").split("e"),P=l(x[0]+"e"+(+x[1]+g));return x=(Be(P)+"e").split("e"),+(x[0]+"e"+(+x[1]-g))}return l(f)}}var gF=Os&&1/Ol(new Os([,-0]))[1]==j?function(s){return new Os(s)}:Pm;function gS(s){return function(l){var f=Ot(l);return f==ke?Rh(l):f==qt?$3(l):C3(l,s(l))}}function ar(s,l,f,g,x,P,_,D){var L=l&w;if(!L&&typeof s!="function")throw new fn(o);var Y=g?g.length:0;if(Y||(l&=-97,g=x=n),_=_===n?_:mt(Oe(_),0),D=D===n?D:Oe(D),Y-=x?x.length:0,l&R){var H=g,K=x;g=x=n}var le=L?n:am(s),me=[s,l,f,g,x,H,K,P,_,D];if(le&&IF(me,le),s=me[0],l=me[1],f=me[2],g=me[3],x=me[4],D=me[9]=me[9]===n?L?0:s.length:mt(me[9]-Y,0),!D&&l&(A|$)&&(l&=-25),!l||l==E)var Ee=hF(s,l,f);else l==A||l==$?Ee=mF(s,l,D):(l==O||l==(E|O))&&!x.length?Ee=pF(s,l,f,g):Ee=Xl.apply(n,me);var Me=le?X2:AS;return OS(Me(Ee,me),s,l)}function yS(s,l,f,g){return s===n||Tn(s,As[f])&&!Ue.call(g,f)?l:s}function vS(s,l,f,g,x,P){return st(s)&&st(l)&&(P.set(l,s),Yl(s,l,n,vS,P),P.delete(l)),s}function yF(s){return Qo(s)?n:s}function bS(s,l,f,g,x,P){var _=f&S,D=s.length,L=l.length;if(D!=L&&!(_&&L>D))return!1;var Y=P.get(s),H=P.get(l);if(Y&&H)return Y==l&&H==s;var K=-1,le=!0,me=f&b?new Ai:n;for(P.set(s,l),P.set(l,s);++K<D;){var Ee=s[K],Me=l[K];if(g)var Ce=_?g(Me,Ee,K,l,s,P):g(Ee,Me,K,s,l,P);if(Ce!==n){if(Ce)continue;le=!1;break}if(me){if(!Oh(l,function($e,Ne){if(!Fo(me,Ne)&&(Ee===$e||x(Ee,$e,f,g,P)))return me.push(Ne)})){le=!1;break}}else if(!(Ee===Me||x(Ee,Me,f,g,P))){le=!1;break}}return P.delete(s),P.delete(l),le}function vF(s,l,f,g,x,P,_){switch(f){case Qe:if(s.byteLength!=l.byteLength||s.byteOffset!=l.byteOffset)return!1;s=s.buffer,l=l.buffer;case be:return!(s.byteLength!=l.byteLength||!P(new Rl(s),new Rl(l)));case ce:case ye:case ft:return Tn(+s,+l);case Le:return s.name==l.name&&s.message==l.message;case Si:case bn:return s==l+"";case ke:var D=Rh;case qt:var L=g&S;if(D||(D=Ol),s.size!=l.size&&!L)return!1;var Y=_.get(s);if(Y)return Y==l;g|=b,_.set(s,l);var H=bS(D(s),D(l),g,x,P,_);return _.delete(s),H;case Ti:if(zo)return zo.call(s)==zo.call(l)}return!1}function bF(s,l,f,g,x,P){var _=f&S,D=sm(s),L=D.length,Y=sm(l),H=Y.length;if(L!=H&&!_)return!1;for(var K=L;K--;){var le=D[K];if(!(_?le in l:Ue.call(l,le)))return!1}var me=P.get(s),Ee=P.get(l);if(me&&Ee)return me==l&&Ee==s;var Me=!0;P.set(s,l),P.set(l,s);for(var Ce=_;++K<L;){le=D[K];var $e=s[le],Ne=l[le];if(g)var Qt=_?g(Ne,$e,le,l,s,P):g($e,Ne,le,s,l,P);if(!(Qt===n?$e===Ne||x($e,Ne,f,g,P):Qt)){Me=!1;break}Ce||(Ce=le=="constructor")}if(Me&&!Ce){var $t=s.constructor,en=l.constructor;$t!=en&&"constructor"in s&&"constructor"in l&&!(typeof $t=="function"&&$t instanceof $t&&typeof en=="function"&&en instanceof en)&&(Me=!1)}return P.delete(s),P.delete(l),Me}function lr(s){return hm(CS(s,n,RS),s+"")}function sm(s){return F2(s,gt,cm)}function om(s){return F2(s,Wt,xS)}var am=Vl?function(s){return Vl.get(s)}:Pm;function ec(s){for(var l=s.name+"",f=Ms[l],g=Ue.call(Ms,l)?f.length:0;g--;){var x=f[g],P=x.func;if(P==null||P==s)return x.name}return l}function $s(s){var l=Ue.call(T,"placeholder")?T:s;return l.placeholder}function we(){var s=T.iteratee||Em;return s=s===Em?W2:s,arguments.length?s(arguments[0],arguments[1]):s}function tc(s,l){var f=s.__data__;return AF(l)?f[typeof l=="string"?"string":"hash"]:f.map}function lm(s){for(var l=gt(s),f=l.length;f--;){var g=l[f],x=s[g];l[f]=[g,x,TS(x)]}return l}function _i(s,l){var f=_3(s,l);return B2(f)?f:n}function xF(s){var l=Ue.call(s,Ci),f=s[Ci];try{s[Ci]=n;var g=!0}catch{}var x=Dl.call(s);return g&&(l?s[Ci]=f:delete s[Ci]),x}var cm=Lh?function(s){return s==null?[]:(s=Ge(s),Lr(Lh(s),function(l){return P2.call(s,l)}))}:Am,xS=Lh?function(s){for(var l=[];s;)kr(l,cm(s)),s=Nl(s);return l}:Am,Ot=It;(kh&&Ot(new kh(new ArrayBuffer(1)))!=Qe||Bo&&Ot(new Bo)!=ke||jh&&Ot(jh.resolve())!=bl||Os&&Ot(new Os)!=qt||Wo&&Ot(new Wo)!=Nr)&&(Ot=function(s){var l=It(s),f=l==dt?s.constructor:n,g=f?Ii(f):"";if(g)switch(g){case nj:return Qe;case rj:return ke;case ij:return bl;case sj:return qt;case oj:return Nr}return l});function wF(s,l,f){for(var g=-1,x=f.length;++g<x;){var P=f[g],_=P.size;switch(P.type){case"drop":s+=_;break;case"dropRight":l-=_;break;case"take":l=At(l,s+_);break;case"takeRight":s=mt(s,l-_);break}}return{start:s,end:l}}function SF(s){var l=s.match(Ok);return l?l[1].split(Mk):[]}function wS(s,l,f){l=Wr(l,s);for(var g=-1,x=l.length,P=!1;++g<x;){var _=Un(l[g]);if(!(P=s!=null&&f(s,_)))break;s=s[_]}return P||++g!=x?P:(x=s==null?0:s.length,!!x&&lc(x)&&cr(_,x)&&(Ae(s)||Di(s)))}function TF(s){var l=s.length,f=new s.constructor(l);return l&&typeof s[0]=="string"&&Ue.call(s,"index")&&(f.index=s.index,f.input=s.input),f}function SS(s){return typeof s.constructor=="function"&&!Zo(s)?_s(Nl(s)):{}}function EF(s,l,f){var g=s.constructor;switch(l){case be:return nm(s);case ce:case ye:return new g(+s);case Qe:return aF(s,f);case Pt:case xn:case rr:case fh:case dh:case hh:case mh:case ph:case gh:return iS(s,f);case ke:return new g;case ft:case bn:return new g(s);case Si:return lF(s);case qt:return new g;case Ti:return cF(s)}}function CF(s,l){var f=l.length;if(!f)return s;var g=f-1;return l[g]=(f>1?"& ":"")+l[g],l=l.join(f>2?", ":" "),s.replace(Ak,`{
|
|
632
|
+
*/var fD=fo.exports,Tv;function dD(){return Tv||(Tv=1,function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,p=2,y=4,S=1,b=2,E=1,w=2,C=4,M=8,$=16,P=32,R=64,k=128,j=256,z=512,Z=30,te="...",ce=800,ve=16,fe=1,ee=2,ne=3,N=1/0,W=9007199254740991,q=17976931348623157e292,O=NaN,V=4294967295,J=V-1,re=V>>>1,ae=[["ary",k],["bind",E],["bindKey",w],["curry",M],["curryRight",$],["flip",z],["partial",P],["partialRight",R],["rearg",j]],G="[object Arguments]",ie="[object Array]",he="[object AsyncFunction]",ue="[object Boolean]",ye="[object Date]",xe="[object DOMException]",Le="[object Error]",se="[object Function]",pe="[object GeneratorFunction]",ke="[object Map]",ft="[object Number]",wi="[object Null]",dt="[object Object]",bl="[object Promise]",xl="[object Proxy]",Si="[object RegExp]",qt="[object Set]",bn="[object String]",Ti="[object Symbol]",wl="[object Undefined]",Nr="[object WeakMap]",Sl="[object WeakSet]",be="[object ArrayBuffer]",Qe="[object DataView]",Pt="[object Float32Array]",xn="[object Float64Array]",rr="[object Int8Array]",fh="[object Int16Array]",dh="[object Int32Array]",hh="[object Uint8Array]",mh="[object Uint8ClampedArray]",ph="[object Uint16Array]",gh="[object Uint32Array]",yk=/\b__p \+= '';/g,vk=/\b(__p \+=) '' \+/g,bk=/(__e\(.*?\)|\b__t\)) \+\n'';/g,kw=/&(?:amp|lt|gt|quot|#39);/g,jw=/[&<>"']/g,xk=RegExp(kw.source),wk=RegExp(jw.source),Sk=/<%-([\s\S]+?)%>/g,Tk=/<%([\s\S]+?)%>/g,Fw=/<%=([\s\S]+?)%>/g,Ek=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ck=/^\w*$/,Pk=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yh=/[\\^$.*+?()[\]{}|]/g,Ak=RegExp(yh.source),vh=/^\s+/,Mk=/\s/,Ok=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,_k=/\{\n\/\* \[wrapped with (.+)\] \*/,Ik=/,? & /,Dk=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$k=/[()=,{}\[\]\/\s]/,Rk=/\\(\\)?/g,Nk=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vw=/\w*$/,Lk=/^[-+]0x[0-9a-f]+$/i,kk=/^0b[01]+$/i,jk=/^\[object .+?Constructor\]$/,Fk=/^0o[0-7]+$/i,Vk=/^(?:0|[1-9]\d*)$/,Bk=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tl=/($^)/,Wk=/['\n\r\u2028\u2029\\]/g,El="\\ud800-\\udfff",Uk="\\u0300-\\u036f",zk="\\ufe20-\\ufe2f",Gk="\\u20d0-\\u20ff",Bw=Uk+zk+Gk,Ww="\\u2700-\\u27bf",Uw="a-z\\xdf-\\xf6\\xf8-\\xff",Yk="\\xac\\xb1\\xd7\\xf7",Hk="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qk="\\u2000-\\u206f",Kk=" \\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",zw="A-Z\\xc0-\\xd6\\xd8-\\xde",Gw="\\ufe0e\\ufe0f",Yw=Yk+Hk+qk+Kk,bh="['’]",Xk="["+El+"]",Hw="["+Yw+"]",Cl="["+Bw+"]",qw="\\d+",Zk="["+Ww+"]",Kw="["+Uw+"]",Xw="[^"+El+Yw+qw+Ww+Uw+zw+"]",xh="\\ud83c[\\udffb-\\udfff]",Jk="(?:"+Cl+"|"+xh+")",Zw="[^"+El+"]",wh="(?:\\ud83c[\\udde6-\\uddff]){2}",Sh="[\\ud800-\\udbff][\\udc00-\\udfff]",Ss="["+zw+"]",Jw="\\u200d",Qw="(?:"+Kw+"|"+Xw+")",Qk="(?:"+Ss+"|"+Xw+")",e2="(?:"+bh+"(?:d|ll|m|re|s|t|ve))?",t2="(?:"+bh+"(?:D|LL|M|RE|S|T|VE))?",n2=Jk+"?",r2="["+Gw+"]?",e3="(?:"+Jw+"(?:"+[Zw,wh,Sh].join("|")+")"+r2+n2+")*",t3="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",n3="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",i2=r2+n2+e3,r3="(?:"+[Zk,wh,Sh].join("|")+")"+i2,i3="(?:"+[Zw+Cl+"?",Cl,wh,Sh,Xk].join("|")+")",s3=RegExp(bh,"g"),o3=RegExp(Cl,"g"),Th=RegExp(xh+"(?="+xh+")|"+i3+i2,"g"),a3=RegExp([Ss+"?"+Kw+"+"+e2+"(?="+[Hw,Ss,"$"].join("|")+")",Qk+"+"+t2+"(?="+[Hw,Ss+Qw,"$"].join("|")+")",Ss+"?"+Qw+"+"+e2,Ss+"+"+t2,n3,t3,qw,r3].join("|"),"g"),l3=RegExp("["+Jw+El+Bw+Gw+"]"),c3=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,u3=["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"],f3=-1,Je={};Je[Pt]=Je[xn]=Je[rr]=Je[fh]=Je[dh]=Je[hh]=Je[mh]=Je[ph]=Je[gh]=!0,Je[G]=Je[ie]=Je[be]=Je[ue]=Je[Qe]=Je[ye]=Je[Le]=Je[se]=Je[ke]=Je[ft]=Je[dt]=Je[Si]=Je[qt]=Je[bn]=Je[Nr]=!1;var Ke={};Ke[G]=Ke[ie]=Ke[be]=Ke[Qe]=Ke[ue]=Ke[ye]=Ke[Pt]=Ke[xn]=Ke[rr]=Ke[fh]=Ke[dh]=Ke[ke]=Ke[ft]=Ke[dt]=Ke[Si]=Ke[qt]=Ke[bn]=Ke[Ti]=Ke[hh]=Ke[mh]=Ke[ph]=Ke[gh]=!0,Ke[Le]=Ke[se]=Ke[Nr]=!1;var d3={À:"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"},h3={"&":"&","<":"<",">":">",'"':""","'":"'"},m3={"&":"&","<":"<",">":">",""":'"',"'":"'"},p3={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},g3=parseFloat,y3=parseInt,s2=typeof ea=="object"&&ea&&ea.Object===Object&&ea,v3=typeof self=="object"&&self&&self.Object===Object&&self,bt=s2||v3||Function("return this")(),Eh=t&&!t.nodeType&&t,Ei=Eh&&!0&&e&&!e.nodeType&&e,o2=Ei&&Ei.exports===Eh,Ch=o2&&s2.process,cn=function(){try{var L=Ei&&Ei.require&&Ei.require("util").types;return L||Ch&&Ch.binding&&Ch.binding("util")}catch{}}(),a2=cn&&cn.isArrayBuffer,l2=cn&&cn.isDate,c2=cn&&cn.isMap,u2=cn&&cn.isRegExp,f2=cn&&cn.isSet,d2=cn&&cn.isTypedArray;function Kt(L,U,B){switch(B.length){case 0:return L.call(U);case 1:return L.call(U,B[0]);case 2:return L.call(U,B[0],B[1]);case 3:return L.call(U,B[0],B[1],B[2])}return L.apply(U,B)}function b3(L,U,B,de){for(var Pe=-1,je=L==null?0:L.length;++Pe<je;){var ht=L[Pe];U(de,ht,B(ht),L)}return de}function un(L,U){for(var B=-1,de=L==null?0:L.length;++B<de&&U(L[B],B,L)!==!1;);return L}function x3(L,U){for(var B=L==null?0:L.length;B--&&U(L[B],B,L)!==!1;);return L}function h2(L,U){for(var B=-1,de=L==null?0:L.length;++B<de;)if(!U(L[B],B,L))return!1;return!0}function Lr(L,U){for(var B=-1,de=L==null?0:L.length,Pe=0,je=[];++B<de;){var ht=L[B];U(ht,B,L)&&(je[Pe++]=ht)}return je}function Pl(L,U){var B=L==null?0:L.length;return!!B&&Ts(L,U,0)>-1}function Ph(L,U,B){for(var de=-1,Pe=L==null?0:L.length;++de<Pe;)if(B(U,L[de]))return!0;return!1}function et(L,U){for(var B=-1,de=L==null?0:L.length,Pe=Array(de);++B<de;)Pe[B]=U(L[B],B,L);return Pe}function kr(L,U){for(var B=-1,de=U.length,Pe=L.length;++B<de;)L[Pe+B]=U[B];return L}function Ah(L,U,B,de){var Pe=-1,je=L==null?0:L.length;for(de&&je&&(B=L[++Pe]);++Pe<je;)B=U(B,L[Pe],Pe,L);return B}function w3(L,U,B,de){var Pe=L==null?0:L.length;for(de&&Pe&&(B=L[--Pe]);Pe--;)B=U(B,L[Pe],Pe,L);return B}function Mh(L,U){for(var B=-1,de=L==null?0:L.length;++B<de;)if(U(L[B],B,L))return!0;return!1}var S3=Oh("length");function T3(L){return L.split("")}function E3(L){return L.match(Dk)||[]}function m2(L,U,B){var de;return B(L,function(Pe,je,ht){if(U(Pe,je,ht))return de=je,!1}),de}function Al(L,U,B,de){for(var Pe=L.length,je=B+(de?1:-1);de?je--:++je<Pe;)if(U(L[je],je,L))return je;return-1}function Ts(L,U,B){return U===U?L3(L,U,B):Al(L,p2,B)}function C3(L,U,B,de){for(var Pe=B-1,je=L.length;++Pe<je;)if(de(L[Pe],U))return Pe;return-1}function p2(L){return L!==L}function g2(L,U){var B=L==null?0:L.length;return B?Ih(L,U)/B:O}function Oh(L){return function(U){return U==null?n:U[L]}}function _h(L){return function(U){return L==null?n:L[U]}}function y2(L,U,B,de,Pe){return Pe(L,function(je,ht,Ge){B=de?(de=!1,je):U(B,je,ht,Ge)}),B}function P3(L,U){var B=L.length;for(L.sort(U);B--;)L[B]=L[B].value;return L}function Ih(L,U){for(var B,de=-1,Pe=L.length;++de<Pe;){var je=U(L[de]);je!==n&&(B=B===n?je:B+je)}return B}function Dh(L,U){for(var B=-1,de=Array(L);++B<L;)de[B]=U(B);return de}function A3(L,U){return et(U,function(B){return[B,L[B]]})}function v2(L){return L&&L.slice(0,S2(L)+1).replace(vh,"")}function Xt(L){return function(U){return L(U)}}function $h(L,U){return et(U,function(B){return L[B]})}function Fo(L,U){return L.has(U)}function b2(L,U){for(var B=-1,de=L.length;++B<de&&Ts(U,L[B],0)>-1;);return B}function x2(L,U){for(var B=L.length;B--&&Ts(U,L[B],0)>-1;);return B}function M3(L,U){for(var B=L.length,de=0;B--;)L[B]===U&&++de;return de}var O3=_h(d3),_3=_h(h3);function I3(L){return"\\"+p3[L]}function D3(L,U){return L==null?n:L[U]}function Es(L){return l3.test(L)}function $3(L){return c3.test(L)}function R3(L){for(var U,B=[];!(U=L.next()).done;)B.push(U.value);return B}function Rh(L){var U=-1,B=Array(L.size);return L.forEach(function(de,Pe){B[++U]=[Pe,de]}),B}function w2(L,U){return function(B){return L(U(B))}}function jr(L,U){for(var B=-1,de=L.length,Pe=0,je=[];++B<de;){var ht=L[B];(ht===U||ht===h)&&(L[B]=h,je[Pe++]=B)}return je}function Ml(L){var U=-1,B=Array(L.size);return L.forEach(function(de){B[++U]=de}),B}function N3(L){var U=-1,B=Array(L.size);return L.forEach(function(de){B[++U]=[de,de]}),B}function L3(L,U,B){for(var de=B-1,Pe=L.length;++de<Pe;)if(L[de]===U)return de;return-1}function k3(L,U,B){for(var de=B+1;de--;)if(L[de]===U)return de;return de}function Cs(L){return Es(L)?F3(L):S3(L)}function wn(L){return Es(L)?V3(L):T3(L)}function S2(L){for(var U=L.length;U--&&Mk.test(L.charAt(U)););return U}var j3=_h(m3);function F3(L){for(var U=Th.lastIndex=0;Th.test(L);)++U;return U}function V3(L){return L.match(Th)||[]}function B3(L){return L.match(a3)||[]}var W3=function L(U){U=U==null?bt:Ps.defaults(bt.Object(),U,Ps.pick(bt,u3));var B=U.Array,de=U.Date,Pe=U.Error,je=U.Function,ht=U.Math,Ge=U.Object,Nh=U.RegExp,U3=U.String,fn=U.TypeError,Ol=B.prototype,z3=je.prototype,As=Ge.prototype,_l=U["__core-js_shared__"],Il=z3.toString,Ue=As.hasOwnProperty,G3=0,T2=function(){var s=/[^.]+$/.exec(_l&&_l.keys&&_l.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Dl=As.toString,Y3=Il.call(Ge),H3=bt._,q3=Nh("^"+Il.call(Ue).replace(yh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$l=o2?U.Buffer:n,Fr=U.Symbol,Rl=U.Uint8Array,E2=$l?$l.allocUnsafe:n,Nl=w2(Ge.getPrototypeOf,Ge),C2=Ge.create,P2=As.propertyIsEnumerable,Ll=Ol.splice,A2=Fr?Fr.isConcatSpreadable:n,Vo=Fr?Fr.iterator:n,Ci=Fr?Fr.toStringTag:n,kl=function(){try{var s=_i(Ge,"defineProperty");return s({},"",{}),s}catch{}}(),K3=U.clearTimeout!==bt.clearTimeout&&U.clearTimeout,X3=de&&de.now!==bt.Date.now&&de.now,Z3=U.setTimeout!==bt.setTimeout&&U.setTimeout,jl=ht.ceil,Fl=ht.floor,Lh=Ge.getOwnPropertySymbols,J3=$l?$l.isBuffer:n,M2=U.isFinite,Q3=Ol.join,ej=w2(Ge.keys,Ge),mt=ht.max,At=ht.min,tj=de.now,nj=U.parseInt,O2=ht.random,rj=Ol.reverse,kh=_i(U,"DataView"),Bo=_i(U,"Map"),jh=_i(U,"Promise"),Ms=_i(U,"Set"),Wo=_i(U,"WeakMap"),Uo=_i(Ge,"create"),Vl=Wo&&new Wo,Os={},ij=Ii(kh),sj=Ii(Bo),oj=Ii(jh),aj=Ii(Ms),lj=Ii(Wo),Bl=Fr?Fr.prototype:n,zo=Bl?Bl.valueOf:n,_2=Bl?Bl.toString:n;function T(s){if(ot(s)&&!Ae(s)&&!(s instanceof Re)){if(s instanceof dn)return s;if(Ue.call(s,"__wrapped__"))return IS(s)}return new dn(s)}var _s=function(){function s(){}return function(l){if(!st(l))return{};if(C2)return C2(l);s.prototype=l;var f=new s;return s.prototype=n,f}}();function Wl(){}function dn(s,l){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}T.templateSettings={escape:Sk,evaluate:Tk,interpolate:Fw,variable:"",imports:{_:T}},T.prototype=Wl.prototype,T.prototype.constructor=T,dn.prototype=_s(Wl.prototype),dn.prototype.constructor=dn;function Re(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=V,this.__views__=[]}function cj(){var s=new Re(this.__wrapped__);return s.__actions__=Vt(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Vt(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Vt(this.__views__),s}function uj(){if(this.__filtered__){var s=new Re(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function fj(){var s=this.__wrapped__.value(),l=this.__dir__,f=Ae(s),g=l<0,x=f?s.length:0,A=TF(0,x,this.__views__),_=A.start,D=A.end,F=D-_,Y=g?D:_-1,H=this.__iteratees__,K=H.length,le=0,me=At(F,this.__takeCount__);if(!f||!g&&x==F&&me==F)return eS(s,this.__actions__);var Ee=[];e:for(;F--&&le<me;){Y+=l;for(var Oe=-1,Ce=s[Y];++Oe<K;){var $e=H[Oe],Ne=$e.iteratee,Qt=$e.type,$t=Ne(Ce);if(Qt==ee)Ce=$t;else if(!$t){if(Qt==fe)continue e;break e}}Ee[le++]=Ce}return Ee}Re.prototype=_s(Wl.prototype),Re.prototype.constructor=Re;function Pi(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var g=s[l];this.set(g[0],g[1])}}function dj(){this.__data__=Uo?Uo(null):{},this.size=0}function hj(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function mj(s){var l=this.__data__;if(Uo){var f=l[s];return f===u?n:f}return Ue.call(l,s)?l[s]:n}function pj(s){var l=this.__data__;return Uo?l[s]!==n:Ue.call(l,s)}function gj(s,l){var f=this.__data__;return this.size+=this.has(s)?0:1,f[s]=Uo&&l===n?u:l,this}Pi.prototype.clear=dj,Pi.prototype.delete=hj,Pi.prototype.get=mj,Pi.prototype.has=pj,Pi.prototype.set=gj;function ir(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var g=s[l];this.set(g[0],g[1])}}function yj(){this.__data__=[],this.size=0}function vj(s){var l=this.__data__,f=Ul(l,s);if(f<0)return!1;var g=l.length-1;return f==g?l.pop():Ll.call(l,f,1),--this.size,!0}function bj(s){var l=this.__data__,f=Ul(l,s);return f<0?n:l[f][1]}function xj(s){return Ul(this.__data__,s)>-1}function wj(s,l){var f=this.__data__,g=Ul(f,s);return g<0?(++this.size,f.push([s,l])):f[g][1]=l,this}ir.prototype.clear=yj,ir.prototype.delete=vj,ir.prototype.get=bj,ir.prototype.has=xj,ir.prototype.set=wj;function sr(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var g=s[l];this.set(g[0],g[1])}}function Sj(){this.size=0,this.__data__={hash:new Pi,map:new(Bo||ir),string:new Pi}}function Tj(s){var l=tc(this,s).delete(s);return this.size-=l?1:0,l}function Ej(s){return tc(this,s).get(s)}function Cj(s){return tc(this,s).has(s)}function Pj(s,l){var f=tc(this,s),g=f.size;return f.set(s,l),this.size+=f.size==g?0:1,this}sr.prototype.clear=Sj,sr.prototype.delete=Tj,sr.prototype.get=Ej,sr.prototype.has=Cj,sr.prototype.set=Pj;function Ai(s){var l=-1,f=s==null?0:s.length;for(this.__data__=new sr;++l<f;)this.add(s[l])}function Aj(s){return this.__data__.set(s,u),this}function Mj(s){return this.__data__.has(s)}Ai.prototype.add=Ai.prototype.push=Aj,Ai.prototype.has=Mj;function Sn(s){var l=this.__data__=new ir(s);this.size=l.size}function Oj(){this.__data__=new ir,this.size=0}function _j(s){var l=this.__data__,f=l.delete(s);return this.size=l.size,f}function Ij(s){return this.__data__.get(s)}function Dj(s){return this.__data__.has(s)}function $j(s,l){var f=this.__data__;if(f instanceof ir){var g=f.__data__;if(!Bo||g.length<i-1)return g.push([s,l]),this.size=++f.size,this;f=this.__data__=new sr(g)}return f.set(s,l),this.size=f.size,this}Sn.prototype.clear=Oj,Sn.prototype.delete=_j,Sn.prototype.get=Ij,Sn.prototype.has=Dj,Sn.prototype.set=$j;function I2(s,l){var f=Ae(s),g=!f&&Di(s),x=!f&&!g&&zr(s),A=!f&&!g&&!x&&Rs(s),_=f||g||x||A,D=_?Dh(s.length,U3):[],F=D.length;for(var Y in s)(l||Ue.call(s,Y))&&!(_&&(Y=="length"||x&&(Y=="offset"||Y=="parent")||A&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||cr(Y,F)))&&D.push(Y);return D}function D2(s){var l=s.length;return l?s[Kh(0,l-1)]:n}function Rj(s,l){return nc(Vt(s),Mi(l,0,s.length))}function Nj(s){return nc(Vt(s))}function Fh(s,l,f){(f!==n&&!Tn(s[l],f)||f===n&&!(l in s))&&or(s,l,f)}function Go(s,l,f){var g=s[l];(!(Ue.call(s,l)&&Tn(g,f))||f===n&&!(l in s))&&or(s,l,f)}function Ul(s,l){for(var f=s.length;f--;)if(Tn(s[f][0],l))return f;return-1}function Lj(s,l,f,g){return Vr(s,function(x,A,_){l(g,x,f(x),_)}),g}function $2(s,l){return s&&Wn(l,gt(l),s)}function kj(s,l){return s&&Wn(l,Wt(l),s)}function or(s,l,f){l=="__proto__"&&kl?kl(s,l,{configurable:!0,enumerable:!0,value:f,writable:!0}):s[l]=f}function Vh(s,l){for(var f=-1,g=l.length,x=B(g),A=s==null;++f<g;)x[f]=A?n:xm(s,l[f]);return x}function Mi(s,l,f){return s===s&&(f!==n&&(s=s<=f?s:f),l!==n&&(s=s>=l?s:l)),s}function hn(s,l,f,g,x,A){var _,D=l&m,F=l&p,Y=l&y;if(f&&(_=x?f(s,g,x,A):f(s)),_!==n)return _;if(!st(s))return s;var H=Ae(s);if(H){if(_=CF(s),!D)return Vt(s,_)}else{var K=Mt(s),le=K==se||K==pe;if(zr(s))return rS(s,D);if(K==dt||K==G||le&&!x){if(_=F||le?{}:SS(s),!D)return F?mF(s,kj(_,s)):hF(s,$2(_,s))}else{if(!Ke[K])return x?s:{};_=PF(s,K,D)}}A||(A=new Sn);var me=A.get(s);if(me)return me;A.set(s,_),ZS(s)?s.forEach(function(Ce){_.add(hn(Ce,l,f,Ce,s,A))}):KS(s)&&s.forEach(function(Ce,$e){_.set($e,hn(Ce,l,f,$e,s,A))});var Ee=Y?F?om:sm:F?Wt:gt,Oe=H?n:Ee(s);return un(Oe||s,function(Ce,$e){Oe&&($e=Ce,Ce=s[$e]),Go(_,$e,hn(Ce,l,f,$e,s,A))}),_}function jj(s){var l=gt(s);return function(f){return R2(f,s,l)}}function R2(s,l,f){var g=f.length;if(s==null)return!g;for(s=Ge(s);g--;){var x=f[g],A=l[x],_=s[x];if(_===n&&!(x in s)||!A(_))return!1}return!0}function N2(s,l,f){if(typeof s!="function")throw new fn(a);return Jo(function(){s.apply(n,f)},l)}function Yo(s,l,f,g){var x=-1,A=Pl,_=!0,D=s.length,F=[],Y=l.length;if(!D)return F;f&&(l=et(l,Xt(f))),g?(A=Ph,_=!1):l.length>=i&&(A=Fo,_=!1,l=new Ai(l));e:for(;++x<D;){var H=s[x],K=f==null?H:f(H);if(H=g||H!==0?H:0,_&&K===K){for(var le=Y;le--;)if(l[le]===K)continue e;F.push(H)}else A(l,K,g)||F.push(H)}return F}var Vr=lS(Bn),L2=lS(Wh,!0);function Fj(s,l){var f=!0;return Vr(s,function(g,x,A){return f=!!l(g,x,A),f}),f}function zl(s,l,f){for(var g=-1,x=s.length;++g<x;){var A=s[g],_=l(A);if(_!=null&&(D===n?_===_&&!Jt(_):f(_,D)))var D=_,F=A}return F}function Vj(s,l,f,g){var x=s.length;for(f=Me(f),f<0&&(f=-f>x?0:x+f),g=g===n||g>x?x:Me(g),g<0&&(g+=x),g=f>g?0:QS(g);f<g;)s[f++]=l;return s}function k2(s,l){var f=[];return Vr(s,function(g,x,A){l(g,x,A)&&f.push(g)}),f}function xt(s,l,f,g,x){var A=-1,_=s.length;for(f||(f=MF),x||(x=[]);++A<_;){var D=s[A];l>0&&f(D)?l>1?xt(D,l-1,f,g,x):kr(x,D):g||(x[x.length]=D)}return x}var Bh=cS(),j2=cS(!0);function Bn(s,l){return s&&Bh(s,l,gt)}function Wh(s,l){return s&&j2(s,l,gt)}function Gl(s,l){return Lr(l,function(f){return ur(s[f])})}function Oi(s,l){l=Wr(l,s);for(var f=0,g=l.length;s!=null&&f<g;)s=s[Un(l[f++])];return f&&f==g?s:n}function F2(s,l,f){var g=l(s);return Ae(s)?g:kr(g,f(s))}function It(s){return s==null?s===n?wl:wi:Ci&&Ci in Ge(s)?SF(s):NF(s)}function Uh(s,l){return s>l}function Bj(s,l){return s!=null&&Ue.call(s,l)}function Wj(s,l){return s!=null&&l in Ge(s)}function Uj(s,l,f){return s>=At(l,f)&&s<mt(l,f)}function zh(s,l,f){for(var g=f?Ph:Pl,x=s[0].length,A=s.length,_=A,D=B(A),F=1/0,Y=[];_--;){var H=s[_];_&&l&&(H=et(H,Xt(l))),F=At(H.length,F),D[_]=!f&&(l||x>=120&&H.length>=120)?new Ai(_&&H):n}H=s[0];var K=-1,le=D[0];e:for(;++K<x&&Y.length<F;){var me=H[K],Ee=l?l(me):me;if(me=f||me!==0?me:0,!(le?Fo(le,Ee):g(Y,Ee,f))){for(_=A;--_;){var Oe=D[_];if(!(Oe?Fo(Oe,Ee):g(s[_],Ee,f)))continue e}le&&le.push(Ee),Y.push(me)}}return Y}function zj(s,l,f,g){return Bn(s,function(x,A,_){l(g,f(x),A,_)}),g}function Ho(s,l,f){l=Wr(l,s),s=PS(s,l);var g=s==null?s:s[Un(pn(l))];return g==null?n:Kt(g,s,f)}function V2(s){return ot(s)&&It(s)==G}function Gj(s){return ot(s)&&It(s)==be}function Yj(s){return ot(s)&&It(s)==ye}function qo(s,l,f,g,x){return s===l?!0:s==null||l==null||!ot(s)&&!ot(l)?s!==s&&l!==l:Hj(s,l,f,g,qo,x)}function Hj(s,l,f,g,x,A){var _=Ae(s),D=Ae(l),F=_?ie:Mt(s),Y=D?ie:Mt(l);F=F==G?dt:F,Y=Y==G?dt:Y;var H=F==dt,K=Y==dt,le=F==Y;if(le&&zr(s)){if(!zr(l))return!1;_=!0,H=!1}if(le&&!H)return A||(A=new Sn),_||Rs(s)?bS(s,l,f,g,x,A):xF(s,l,F,f,g,x,A);if(!(f&S)){var me=H&&Ue.call(s,"__wrapped__"),Ee=K&&Ue.call(l,"__wrapped__");if(me||Ee){var Oe=me?s.value():s,Ce=Ee?l.value():l;return A||(A=new Sn),x(Oe,Ce,f,g,A)}}return le?(A||(A=new Sn),wF(s,l,f,g,x,A)):!1}function qj(s){return ot(s)&&Mt(s)==ke}function Gh(s,l,f,g){var x=f.length,A=x,_=!g;if(s==null)return!A;for(s=Ge(s);x--;){var D=f[x];if(_&&D[2]?D[1]!==s[D[0]]:!(D[0]in s))return!1}for(;++x<A;){D=f[x];var F=D[0],Y=s[F],H=D[1];if(_&&D[2]){if(Y===n&&!(F in s))return!1}else{var K=new Sn;if(g)var le=g(Y,H,F,s,l,K);if(!(le===n?qo(H,Y,S|b,g,K):le))return!1}}return!0}function B2(s){if(!st(s)||_F(s))return!1;var l=ur(s)?q3:jk;return l.test(Ii(s))}function Kj(s){return ot(s)&&It(s)==Si}function Xj(s){return ot(s)&&Mt(s)==qt}function Zj(s){return ot(s)&&lc(s.length)&&!!Je[It(s)]}function W2(s){return typeof s=="function"?s:s==null?Ut:typeof s=="object"?Ae(s)?G2(s[0],s[1]):z2(s):uT(s)}function Yh(s){if(!Zo(s))return ej(s);var l=[];for(var f in Ge(s))Ue.call(s,f)&&f!="constructor"&&l.push(f);return l}function Jj(s){if(!st(s))return RF(s);var l=Zo(s),f=[];for(var g in s)g=="constructor"&&(l||!Ue.call(s,g))||f.push(g);return f}function Hh(s,l){return s<l}function U2(s,l){var f=-1,g=Bt(s)?B(s.length):[];return Vr(s,function(x,A,_){g[++f]=l(x,A,_)}),g}function z2(s){var l=lm(s);return l.length==1&&l[0][2]?ES(l[0][0],l[0][1]):function(f){return f===s||Gh(f,s,l)}}function G2(s,l){return um(s)&&TS(l)?ES(Un(s),l):function(f){var g=xm(f,s);return g===n&&g===l?wm(f,s):qo(l,g,S|b)}}function Yl(s,l,f,g,x){s!==l&&Bh(l,function(A,_){if(x||(x=new Sn),st(A))Qj(s,l,_,f,Yl,g,x);else{var D=g?g(dm(s,_),A,_+"",s,l,x):n;D===n&&(D=A),Fh(s,_,D)}},Wt)}function Qj(s,l,f,g,x,A,_){var D=dm(s,f),F=dm(l,f),Y=_.get(F);if(Y){Fh(s,f,Y);return}var H=A?A(D,F,f+"",s,l,_):n,K=H===n;if(K){var le=Ae(F),me=!le&&zr(F),Ee=!le&&!me&&Rs(F);H=F,le||me||Ee?Ae(D)?H=D:ct(D)?H=Vt(D):me?(K=!1,H=rS(F,!0)):Ee?(K=!1,H=iS(F,!0)):H=[]:Qo(F)||Di(F)?(H=D,Di(D)?H=eT(D):(!st(D)||ur(D))&&(H=SS(F))):K=!1}K&&(_.set(F,H),x(H,F,g,A,_),_.delete(F)),Fh(s,f,H)}function Y2(s,l){var f=s.length;if(f)return l+=l<0?f:0,cr(l,f)?s[l]:n}function H2(s,l,f){l.length?l=et(l,function(A){return Ae(A)?function(_){return Oi(_,A.length===1?A[0]:A)}:A}):l=[Ut];var g=-1;l=et(l,Xt(we()));var x=U2(s,function(A,_,D){var F=et(l,function(Y){return Y(A)});return{criteria:F,index:++g,value:A}});return P3(x,function(A,_){return dF(A,_,f)})}function eF(s,l){return q2(s,l,function(f,g){return wm(s,g)})}function q2(s,l,f){for(var g=-1,x=l.length,A={};++g<x;){var _=l[g],D=Oi(s,_);f(D,_)&&Ko(A,Wr(_,s),D)}return A}function tF(s){return function(l){return Oi(l,s)}}function qh(s,l,f,g){var x=g?C3:Ts,A=-1,_=l.length,D=s;for(s===l&&(l=Vt(l)),f&&(D=et(s,Xt(f)));++A<_;)for(var F=0,Y=l[A],H=f?f(Y):Y;(F=x(D,H,F,g))>-1;)D!==s&&Ll.call(D,F,1),Ll.call(s,F,1);return s}function K2(s,l){for(var f=s?l.length:0,g=f-1;f--;){var x=l[f];if(f==g||x!==A){var A=x;cr(x)?Ll.call(s,x,1):Jh(s,x)}}return s}function Kh(s,l){return s+Fl(O2()*(l-s+1))}function nF(s,l,f,g){for(var x=-1,A=mt(jl((l-s)/(f||1)),0),_=B(A);A--;)_[g?A:++x]=s,s+=f;return _}function Xh(s,l){var f="";if(!s||l<1||l>W)return f;do l%2&&(f+=s),l=Fl(l/2),l&&(s+=s);while(l);return f}function _e(s,l){return hm(CS(s,l,Ut),s+"")}function rF(s){return D2(Ns(s))}function iF(s,l){var f=Ns(s);return nc(f,Mi(l,0,f.length))}function Ko(s,l,f,g){if(!st(s))return s;l=Wr(l,s);for(var x=-1,A=l.length,_=A-1,D=s;D!=null&&++x<A;){var F=Un(l[x]),Y=f;if(F==="__proto__"||F==="constructor"||F==="prototype")return s;if(x!=_){var H=D[F];Y=g?g(H,F,D):n,Y===n&&(Y=st(H)?H:cr(l[x+1])?[]:{})}Go(D,F,Y),D=D[F]}return s}var X2=Vl?function(s,l){return Vl.set(s,l),s}:Ut,sF=kl?function(s,l){return kl(s,"toString",{configurable:!0,enumerable:!1,value:Tm(l),writable:!0})}:Ut;function oF(s){return nc(Ns(s))}function mn(s,l,f){var g=-1,x=s.length;l<0&&(l=-l>x?0:x+l),f=f>x?x:f,f<0&&(f+=x),x=l>f?0:f-l>>>0,l>>>=0;for(var A=B(x);++g<x;)A[g]=s[g+l];return A}function aF(s,l){var f;return Vr(s,function(g,x,A){return f=l(g,x,A),!f}),!!f}function Hl(s,l,f){var g=0,x=s==null?g:s.length;if(typeof l=="number"&&l===l&&x<=re){for(;g<x;){var A=g+x>>>1,_=s[A];_!==null&&!Jt(_)&&(f?_<=l:_<l)?g=A+1:x=A}return x}return Zh(s,l,Ut,f)}function Zh(s,l,f,g){var x=0,A=s==null?0:s.length;if(A===0)return 0;l=f(l);for(var _=l!==l,D=l===null,F=Jt(l),Y=l===n;x<A;){var H=Fl((x+A)/2),K=f(s[H]),le=K!==n,me=K===null,Ee=K===K,Oe=Jt(K);if(_)var Ce=g||Ee;else Y?Ce=Ee&&(g||le):D?Ce=Ee&&le&&(g||!me):F?Ce=Ee&&le&&!me&&(g||!Oe):me||Oe?Ce=!1:Ce=g?K<=l:K<l;Ce?x=H+1:A=H}return At(A,J)}function Z2(s,l){for(var f=-1,g=s.length,x=0,A=[];++f<g;){var _=s[f],D=l?l(_):_;if(!f||!Tn(D,F)){var F=D;A[x++]=_===0?0:_}}return A}function J2(s){return typeof s=="number"?s:Jt(s)?O:+s}function Zt(s){if(typeof s=="string")return s;if(Ae(s))return et(s,Zt)+"";if(Jt(s))return _2?_2.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function Br(s,l,f){var g=-1,x=Pl,A=s.length,_=!0,D=[],F=D;if(f)_=!1,x=Ph;else if(A>=i){var Y=l?null:vF(s);if(Y)return Ml(Y);_=!1,x=Fo,F=new Ai}else F=l?[]:D;e:for(;++g<A;){var H=s[g],K=l?l(H):H;if(H=f||H!==0?H:0,_&&K===K){for(var le=F.length;le--;)if(F[le]===K)continue e;l&&F.push(K),D.push(H)}else x(F,K,f)||(F!==D&&F.push(K),D.push(H))}return D}function Jh(s,l){return l=Wr(l,s),s=PS(s,l),s==null||delete s[Un(pn(l))]}function Q2(s,l,f,g){return Ko(s,l,f(Oi(s,l)),g)}function ql(s,l,f,g){for(var x=s.length,A=g?x:-1;(g?A--:++A<x)&&l(s[A],A,s););return f?mn(s,g?0:A,g?A+1:x):mn(s,g?A+1:0,g?x:A)}function eS(s,l){var f=s;return f instanceof Re&&(f=f.value()),Ah(l,function(g,x){return x.func.apply(x.thisArg,kr([g],x.args))},f)}function Qh(s,l,f){var g=s.length;if(g<2)return g?Br(s[0]):[];for(var x=-1,A=B(g);++x<g;)for(var _=s[x],D=-1;++D<g;)D!=x&&(A[x]=Yo(A[x]||_,s[D],l,f));return Br(xt(A,1),l,f)}function tS(s,l,f){for(var g=-1,x=s.length,A=l.length,_={};++g<x;){var D=g<A?l[g]:n;f(_,s[g],D)}return _}function em(s){return ct(s)?s:[]}function tm(s){return typeof s=="function"?s:Ut}function Wr(s,l){return Ae(s)?s:um(s,l)?[s]:_S(Be(s))}var lF=_e;function Ur(s,l,f){var g=s.length;return f=f===n?g:f,!l&&f>=g?s:mn(s,l,f)}var nS=K3||function(s){return bt.clearTimeout(s)};function rS(s,l){if(l)return s.slice();var f=s.length,g=E2?E2(f):new s.constructor(f);return s.copy(g),g}function nm(s){var l=new s.constructor(s.byteLength);return new Rl(l).set(new Rl(s)),l}function cF(s,l){var f=l?nm(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function uF(s){var l=new s.constructor(s.source,Vw.exec(s));return l.lastIndex=s.lastIndex,l}function fF(s){return zo?Ge(zo.call(s)):{}}function iS(s,l){var f=l?nm(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.length)}function sS(s,l){if(s!==l){var f=s!==n,g=s===null,x=s===s,A=Jt(s),_=l!==n,D=l===null,F=l===l,Y=Jt(l);if(!D&&!Y&&!A&&s>l||A&&_&&F&&!D&&!Y||g&&_&&F||!f&&F||!x)return 1;if(!g&&!A&&!Y&&s<l||Y&&f&&x&&!g&&!A||D&&f&&x||!_&&x||!F)return-1}return 0}function dF(s,l,f){for(var g=-1,x=s.criteria,A=l.criteria,_=x.length,D=f.length;++g<_;){var F=sS(x[g],A[g]);if(F){if(g>=D)return F;var Y=f[g];return F*(Y=="desc"?-1:1)}}return s.index-l.index}function oS(s,l,f,g){for(var x=-1,A=s.length,_=f.length,D=-1,F=l.length,Y=mt(A-_,0),H=B(F+Y),K=!g;++D<F;)H[D]=l[D];for(;++x<_;)(K||x<A)&&(H[f[x]]=s[x]);for(;Y--;)H[D++]=s[x++];return H}function aS(s,l,f,g){for(var x=-1,A=s.length,_=-1,D=f.length,F=-1,Y=l.length,H=mt(A-D,0),K=B(H+Y),le=!g;++x<H;)K[x]=s[x];for(var me=x;++F<Y;)K[me+F]=l[F];for(;++_<D;)(le||x<A)&&(K[me+f[_]]=s[x++]);return K}function Vt(s,l){var f=-1,g=s.length;for(l||(l=B(g));++f<g;)l[f]=s[f];return l}function Wn(s,l,f,g){var x=!f;f||(f={});for(var A=-1,_=l.length;++A<_;){var D=l[A],F=g?g(f[D],s[D],D,f,s):n;F===n&&(F=s[D]),x?or(f,D,F):Go(f,D,F)}return f}function hF(s,l){return Wn(s,cm(s),l)}function mF(s,l){return Wn(s,xS(s),l)}function Kl(s,l){return function(f,g){var x=Ae(f)?b3:Lj,A=l?l():{};return x(f,s,we(g,2),A)}}function Is(s){return _e(function(l,f){var g=-1,x=f.length,A=x>1?f[x-1]:n,_=x>2?f[2]:n;for(A=s.length>3&&typeof A=="function"?(x--,A):n,_&&Dt(f[0],f[1],_)&&(A=x<3?n:A,x=1),l=Ge(l);++g<x;){var D=f[g];D&&s(l,D,g,A)}return l})}function lS(s,l){return function(f,g){if(f==null)return f;if(!Bt(f))return s(f,g);for(var x=f.length,A=l?x:-1,_=Ge(f);(l?A--:++A<x)&&g(_[A],A,_)!==!1;);return f}}function cS(s){return function(l,f,g){for(var x=-1,A=Ge(l),_=g(l),D=_.length;D--;){var F=_[s?D:++x];if(f(A[F],F,A)===!1)break}return l}}function pF(s,l,f){var g=l&E,x=Xo(s);function A(){var _=this&&this!==bt&&this instanceof A?x:s;return _.apply(g?f:this,arguments)}return A}function uS(s){return function(l){l=Be(l);var f=Es(l)?wn(l):n,g=f?f[0]:l.charAt(0),x=f?Ur(f,1).join(""):l.slice(1);return g[s]()+x}}function Ds(s){return function(l){return Ah(lT(aT(l).replace(s3,"")),s,"")}}function Xo(s){return function(){var l=arguments;switch(l.length){case 0:return new s;case 1:return new s(l[0]);case 2:return new s(l[0],l[1]);case 3:return new s(l[0],l[1],l[2]);case 4:return new s(l[0],l[1],l[2],l[3]);case 5:return new s(l[0],l[1],l[2],l[3],l[4]);case 6:return new s(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new s(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var f=_s(s.prototype),g=s.apply(f,l);return st(g)?g:f}}function gF(s,l,f){var g=Xo(s);function x(){for(var A=arguments.length,_=B(A),D=A,F=$s(x);D--;)_[D]=arguments[D];var Y=A<3&&_[0]!==F&&_[A-1]!==F?[]:jr(_,F);if(A-=Y.length,A<f)return pS(s,l,Xl,x.placeholder,n,_,Y,n,n,f-A);var H=this&&this!==bt&&this instanceof x?g:s;return Kt(H,this,_)}return x}function fS(s){return function(l,f,g){var x=Ge(l);if(!Bt(l)){var A=we(f,3);l=gt(l),f=function(D){return A(x[D],D,x)}}var _=s(l,f,g);return _>-1?x[A?l[_]:_]:n}}function dS(s){return lr(function(l){var f=l.length,g=f,x=dn.prototype.thru;for(s&&l.reverse();g--;){var A=l[g];if(typeof A!="function")throw new fn(a);if(x&&!_&&ec(A)=="wrapper")var _=new dn([],!0)}for(g=_?g:f;++g<f;){A=l[g];var D=ec(A),F=D=="wrapper"?am(A):n;F&&fm(F[0])&&F[1]==(k|M|P|j)&&!F[4].length&&F[9]==1?_=_[ec(F[0])].apply(_,F[3]):_=A.length==1&&fm(A)?_[D]():_.thru(A)}return function(){var Y=arguments,H=Y[0];if(_&&Y.length==1&&Ae(H))return _.plant(H).value();for(var K=0,le=f?l[K].apply(this,Y):H;++K<f;)le=l[K].call(this,le);return le}})}function Xl(s,l,f,g,x,A,_,D,F,Y){var H=l&k,K=l&E,le=l&w,me=l&(M|$),Ee=l&z,Oe=le?n:Xo(s);function Ce(){for(var $e=arguments.length,Ne=B($e),Qt=$e;Qt--;)Ne[Qt]=arguments[Qt];if(me)var $t=$s(Ce),en=M3(Ne,$t);if(g&&(Ne=oS(Ne,g,x,me)),A&&(Ne=aS(Ne,A,_,me)),$e-=en,me&&$e<Y){var ut=jr(Ne,$t);return pS(s,l,Xl,Ce.placeholder,f,Ne,ut,D,F,Y-$e)}var En=K?f:this,dr=le?En[s]:s;return $e=Ne.length,D?Ne=LF(Ne,D):Ee&&$e>1&&Ne.reverse(),H&&F<$e&&(Ne.length=F),this&&this!==bt&&this instanceof Ce&&(dr=Oe||Xo(dr)),dr.apply(En,Ne)}return Ce}function hS(s,l){return function(f,g){return zj(f,s,l(g),{})}}function Zl(s,l){return function(f,g){var x;if(f===n&&g===n)return l;if(f!==n&&(x=f),g!==n){if(x===n)return g;typeof f=="string"||typeof g=="string"?(f=Zt(f),g=Zt(g)):(f=J2(f),g=J2(g)),x=s(f,g)}return x}}function rm(s){return lr(function(l){return l=et(l,Xt(we())),_e(function(f){var g=this;return s(l,function(x){return Kt(x,g,f)})})})}function Jl(s,l){l=l===n?" ":Zt(l);var f=l.length;if(f<2)return f?Xh(l,s):l;var g=Xh(l,jl(s/Cs(l)));return Es(l)?Ur(wn(g),0,s).join(""):g.slice(0,s)}function yF(s,l,f,g){var x=l&E,A=Xo(s);function _(){for(var D=-1,F=arguments.length,Y=-1,H=g.length,K=B(H+F),le=this&&this!==bt&&this instanceof _?A:s;++Y<H;)K[Y]=g[Y];for(;F--;)K[Y++]=arguments[++D];return Kt(le,x?f:this,K)}return _}function mS(s){return function(l,f,g){return g&&typeof g!="number"&&Dt(l,f,g)&&(f=g=n),l=fr(l),f===n?(f=l,l=0):f=fr(f),g=g===n?l<f?1:-1:fr(g),nF(l,f,g,s)}}function Ql(s){return function(l,f){return typeof l=="string"&&typeof f=="string"||(l=gn(l),f=gn(f)),s(l,f)}}function pS(s,l,f,g,x,A,_,D,F,Y){var H=l&M,K=H?_:n,le=H?n:_,me=H?A:n,Ee=H?n:A;l|=H?P:R,l&=~(H?R:P),l&C||(l&=-4);var Oe=[s,l,x,me,K,Ee,le,D,F,Y],Ce=f.apply(n,Oe);return fm(s)&&AS(Ce,Oe),Ce.placeholder=g,MS(Ce,s,l)}function im(s){var l=ht[s];return function(f,g){if(f=gn(f),g=g==null?0:At(Me(g),292),g&&M2(f)){var x=(Be(f)+"e").split("e"),A=l(x[0]+"e"+(+x[1]+g));return x=(Be(A)+"e").split("e"),+(x[0]+"e"+(+x[1]-g))}return l(f)}}var vF=Ms&&1/Ml(new Ms([,-0]))[1]==N?function(s){return new Ms(s)}:Pm;function gS(s){return function(l){var f=Mt(l);return f==ke?Rh(l):f==qt?N3(l):A3(l,s(l))}}function ar(s,l,f,g,x,A,_,D){var F=l&w;if(!F&&typeof s!="function")throw new fn(a);var Y=g?g.length:0;if(Y||(l&=-97,g=x=n),_=_===n?_:mt(Me(_),0),D=D===n?D:Me(D),Y-=x?x.length:0,l&R){var H=g,K=x;g=x=n}var le=F?n:am(s),me=[s,l,f,g,x,H,K,A,_,D];if(le&&$F(me,le),s=me[0],l=me[1],f=me[2],g=me[3],x=me[4],D=me[9]=me[9]===n?F?0:s.length:mt(me[9]-Y,0),!D&&l&(M|$)&&(l&=-25),!l||l==E)var Ee=pF(s,l,f);else l==M||l==$?Ee=gF(s,l,D):(l==P||l==(E|P))&&!x.length?Ee=yF(s,l,f,g):Ee=Xl.apply(n,me);var Oe=le?X2:AS;return MS(Oe(Ee,me),s,l)}function yS(s,l,f,g){return s===n||Tn(s,As[f])&&!Ue.call(g,f)?l:s}function vS(s,l,f,g,x,A){return st(s)&&st(l)&&(A.set(l,s),Yl(s,l,n,vS,A),A.delete(l)),s}function bF(s){return Qo(s)?n:s}function bS(s,l,f,g,x,A){var _=f&S,D=s.length,F=l.length;if(D!=F&&!(_&&F>D))return!1;var Y=A.get(s),H=A.get(l);if(Y&&H)return Y==l&&H==s;var K=-1,le=!0,me=f&b?new Ai:n;for(A.set(s,l),A.set(l,s);++K<D;){var Ee=s[K],Oe=l[K];if(g)var Ce=_?g(Oe,Ee,K,l,s,A):g(Ee,Oe,K,s,l,A);if(Ce!==n){if(Ce)continue;le=!1;break}if(me){if(!Mh(l,function($e,Ne){if(!Fo(me,Ne)&&(Ee===$e||x(Ee,$e,f,g,A)))return me.push(Ne)})){le=!1;break}}else if(!(Ee===Oe||x(Ee,Oe,f,g,A))){le=!1;break}}return A.delete(s),A.delete(l),le}function xF(s,l,f,g,x,A,_){switch(f){case Qe:if(s.byteLength!=l.byteLength||s.byteOffset!=l.byteOffset)return!1;s=s.buffer,l=l.buffer;case be:return!(s.byteLength!=l.byteLength||!A(new Rl(s),new Rl(l)));case ue:case ye:case ft:return Tn(+s,+l);case Le:return s.name==l.name&&s.message==l.message;case Si:case bn:return s==l+"";case ke:var D=Rh;case qt:var F=g&S;if(D||(D=Ml),s.size!=l.size&&!F)return!1;var Y=_.get(s);if(Y)return Y==l;g|=b,_.set(s,l);var H=bS(D(s),D(l),g,x,A,_);return _.delete(s),H;case Ti:if(zo)return zo.call(s)==zo.call(l)}return!1}function wF(s,l,f,g,x,A){var _=f&S,D=sm(s),F=D.length,Y=sm(l),H=Y.length;if(F!=H&&!_)return!1;for(var K=F;K--;){var le=D[K];if(!(_?le in l:Ue.call(l,le)))return!1}var me=A.get(s),Ee=A.get(l);if(me&&Ee)return me==l&&Ee==s;var Oe=!0;A.set(s,l),A.set(l,s);for(var Ce=_;++K<F;){le=D[K];var $e=s[le],Ne=l[le];if(g)var Qt=_?g(Ne,$e,le,l,s,A):g($e,Ne,le,s,l,A);if(!(Qt===n?$e===Ne||x($e,Ne,f,g,A):Qt)){Oe=!1;break}Ce||(Ce=le=="constructor")}if(Oe&&!Ce){var $t=s.constructor,en=l.constructor;$t!=en&&"constructor"in s&&"constructor"in l&&!(typeof $t=="function"&&$t instanceof $t&&typeof en=="function"&&en instanceof en)&&(Oe=!1)}return A.delete(s),A.delete(l),Oe}function lr(s){return hm(CS(s,n,RS),s+"")}function sm(s){return F2(s,gt,cm)}function om(s){return F2(s,Wt,xS)}var am=Vl?function(s){return Vl.get(s)}:Pm;function ec(s){for(var l=s.name+"",f=Os[l],g=Ue.call(Os,l)?f.length:0;g--;){var x=f[g],A=x.func;if(A==null||A==s)return x.name}return l}function $s(s){var l=Ue.call(T,"placeholder")?T:s;return l.placeholder}function we(){var s=T.iteratee||Em;return s=s===Em?W2:s,arguments.length?s(arguments[0],arguments[1]):s}function tc(s,l){var f=s.__data__;return OF(l)?f[typeof l=="string"?"string":"hash"]:f.map}function lm(s){for(var l=gt(s),f=l.length;f--;){var g=l[f],x=s[g];l[f]=[g,x,TS(x)]}return l}function _i(s,l){var f=D3(s,l);return B2(f)?f:n}function SF(s){var l=Ue.call(s,Ci),f=s[Ci];try{s[Ci]=n;var g=!0}catch{}var x=Dl.call(s);return g&&(l?s[Ci]=f:delete s[Ci]),x}var cm=Lh?function(s){return s==null?[]:(s=Ge(s),Lr(Lh(s),function(l){return P2.call(s,l)}))}:Am,xS=Lh?function(s){for(var l=[];s;)kr(l,cm(s)),s=Nl(s);return l}:Am,Mt=It;(kh&&Mt(new kh(new ArrayBuffer(1)))!=Qe||Bo&&Mt(new Bo)!=ke||jh&&Mt(jh.resolve())!=bl||Ms&&Mt(new Ms)!=qt||Wo&&Mt(new Wo)!=Nr)&&(Mt=function(s){var l=It(s),f=l==dt?s.constructor:n,g=f?Ii(f):"";if(g)switch(g){case ij:return Qe;case sj:return ke;case oj:return bl;case aj:return qt;case lj:return Nr}return l});function TF(s,l,f){for(var g=-1,x=f.length;++g<x;){var A=f[g],_=A.size;switch(A.type){case"drop":s+=_;break;case"dropRight":l-=_;break;case"take":l=At(l,s+_);break;case"takeRight":s=mt(s,l-_);break}}return{start:s,end:l}}function EF(s){var l=s.match(_k);return l?l[1].split(Ik):[]}function wS(s,l,f){l=Wr(l,s);for(var g=-1,x=l.length,A=!1;++g<x;){var _=Un(l[g]);if(!(A=s!=null&&f(s,_)))break;s=s[_]}return A||++g!=x?A:(x=s==null?0:s.length,!!x&&lc(x)&&cr(_,x)&&(Ae(s)||Di(s)))}function CF(s){var l=s.length,f=new s.constructor(l);return l&&typeof s[0]=="string"&&Ue.call(s,"index")&&(f.index=s.index,f.input=s.input),f}function SS(s){return typeof s.constructor=="function"&&!Zo(s)?_s(Nl(s)):{}}function PF(s,l,f){var g=s.constructor;switch(l){case be:return nm(s);case ue:case ye:return new g(+s);case Qe:return cF(s,f);case Pt:case xn:case rr:case fh:case dh:case hh:case mh:case ph:case gh:return iS(s,f);case ke:return new g;case ft:case bn:return new g(s);case Si:return uF(s);case qt:return new g;case Ti:return fF(s)}}function AF(s,l){var f=l.length;if(!f)return s;var g=f-1;return l[g]=(f>1?"& ":"")+l[g],l=l.join(f>2?", ":" "),s.replace(Ok,`{
|
|
633
633
|
/* [wrapped with `+l+`] */
|
|
634
|
-
`)}function PF(s){return Ae(s)||Di(s)||!!(A2&&s&&s[A2])}function cr(s,l){var f=typeof s;return l=l??W,!!l&&(f=="number"||f!="symbol"&&jk.test(s))&&s>-1&&s%1==0&&s<l}function Dt(s,l,f){if(!st(f))return!1;var g=typeof l;return(g=="number"?Bt(f)&&cr(l,f.length):g=="string"&&l in f)?Tn(f[l],s):!1}function um(s,l){if(Ae(s))return!1;var f=typeof s;return f=="number"||f=="symbol"||f=="boolean"||s==null||Jt(s)?!0:Tk.test(s)||!Sk.test(s)||l!=null&&s in Ge(l)}function AF(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function fm(s){var l=ec(s),f=T[l];if(typeof f!="function"||!(l in Re.prototype))return!1;if(s===f)return!0;var g=am(f);return!!g&&s===g[0]}function OF(s){return!!T2&&T2 in s}var MF=_l?ur:Om;function Zo(s){var l=s&&s.constructor,f=typeof l=="function"&&l.prototype||As;return s===f}function TS(s){return s===s&&!st(s)}function ES(s,l){return function(f){return f==null?!1:f[s]===l&&(l!==n||s in Ge(f))}}function _F(s){var l=oc(s,function(g){return f.size===d&&f.clear(),g}),f=l.cache;return l}function IF(s,l){var f=s[1],g=l[1],x=f|g,P=x<(E|w|V),_=g==V&&f==A||g==V&&f==F&&s[7].length<=l[8]||g==(V|F)&&l[7].length<=l[8]&&f==A;if(!(P||_))return s;g&E&&(s[2]=l[2],x|=f&E?0:C);var D=l[3];if(D){var L=s[3];s[3]=L?oS(L,D,l[4]):D,s[4]=L?jr(s[3],h):l[4]}return D=l[5],D&&(L=s[5],s[5]=L?aS(L,D,l[6]):D,s[6]=L?jr(s[5],h):l[6]),D=l[7],D&&(s[7]=D),g&V&&(s[8]=s[8]==null?l[8]:At(s[8],l[8])),s[9]==null&&(s[9]=l[9]),s[0]=l[0],s[1]=x,s}function DF(s){var l=[];if(s!=null)for(var f in Ge(s))l.push(f);return l}function $F(s){return Dl.call(s)}function CS(s,l,f){return l=mt(l===n?s.length-1:l,0),function(){for(var g=arguments,x=-1,P=mt(g.length-l,0),_=B(P);++x<P;)_[x]=g[l+x];x=-1;for(var D=B(l+1);++x<l;)D[x]=g[x];return D[l]=f(_),Kt(s,this,D)}}function PS(s,l){return l.length<2?s:Mi(s,mn(l,0,-1))}function RF(s,l){for(var f=s.length,g=At(l.length,f),x=Vt(s);g--;){var P=l[g];s[g]=cr(P,f)?x[P]:n}return s}function dm(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var AS=MS(X2),Jo=K3||function(s,l){return bt.setTimeout(s,l)},hm=MS(rF);function OS(s,l,f){var g=l+"";return hm(s,CF(g,NF(SF(g),f)))}function MS(s){var l=0,f=0;return function(){var g=Q3(),x=ve-(g-f);if(f=g,x>0){if(++l>=ue)return arguments[0]}else l=0;return s.apply(n,arguments)}}function nc(s,l){var f=-1,g=s.length,x=g-1;for(l=l===n?g:l;++f<l;){var P=Kh(f,x),_=s[P];s[P]=s[f],s[f]=_}return s.length=l,s}var _S=_F(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(Ek,function(f,g,x,P){l.push(x?P.replace(Dk,"$1"):g||f)}),l});function Un(s){if(typeof s=="string"||Jt(s))return s;var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function Ii(s){if(s!=null){try{return Il.call(s)}catch{}try{return s+""}catch{}}return""}function NF(s,l){return un(se,function(f){var g="_."+f[0];l&f[1]&&!Pl(s,g)&&s.push(g)}),s.sort()}function IS(s){if(s instanceof Re)return s.clone();var l=new dn(s.__wrapped__,s.__chain__);return l.__actions__=Vt(s.__actions__),l.__index__=s.__index__,l.__values__=s.__values__,l}function LF(s,l,f){(f?Dt(s,l,f):l===n)?l=1:l=mt(Oe(l),0);var g=s==null?0:s.length;if(!g||l<1)return[];for(var x=0,P=0,_=B(jl(g/l));x<g;)_[P++]=mn(s,x,x+=l);return _}function kF(s){for(var l=-1,f=s==null?0:s.length,g=0,x=[];++l<f;){var P=s[l];P&&(x[g++]=P)}return x}function jF(){var s=arguments.length;if(!s)return[];for(var l=B(s-1),f=arguments[0],g=s;g--;)l[g-1]=arguments[g];return kr(Ae(f)?Vt(f):[f],xt(l,1))}var FF=_e(function(s,l){return ct(s)?Yo(s,xt(l,1,ct,!0)):[]}),VF=_e(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Yo(s,xt(l,1,ct,!0),we(f,2)):[]}),BF=_e(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Yo(s,xt(l,1,ct,!0),n,f):[]});function WF(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Oe(l),mn(s,l<0?0:l,g)):[]}function UF(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Oe(l),l=g-l,mn(s,0,l<0?0:l)):[]}function zF(s,l){return s&&s.length?ql(s,we(l,3),!0,!0):[]}function GF(s,l){return s&&s.length?ql(s,we(l,3),!0):[]}function YF(s,l,f,g){var x=s==null?0:s.length;return x?(f&&typeof f!="number"&&Dt(s,l,f)&&(f=0,g=x),jj(s,l,f,g)):[]}function DS(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var x=f==null?0:Oe(f);return x<0&&(x=mt(g+x,0)),Al(s,we(l,3),x)}function $S(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var x=g-1;return f!==n&&(x=Oe(f),x=f<0?mt(g+x,0):At(x,g-1)),Al(s,we(l,3),x,!0)}function RS(s){var l=s==null?0:s.length;return l?xt(s,1):[]}function HF(s){var l=s==null?0:s.length;return l?xt(s,j):[]}function qF(s,l){var f=s==null?0:s.length;return f?(l=l===n?1:Oe(l),xt(s,l)):[]}function KF(s){for(var l=-1,f=s==null?0:s.length,g={};++l<f;){var x=s[l];g[x[0]]=x[1]}return g}function NS(s){return s&&s.length?s[0]:n}function XF(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var x=f==null?0:Oe(f);return x<0&&(x=mt(g+x,0)),Ts(s,l,x)}function ZF(s){var l=s==null?0:s.length;return l?mn(s,0,-1):[]}var JF=_e(function(s){var l=et(s,em);return l.length&&l[0]===s[0]?zh(l):[]}),QF=_e(function(s){var l=pn(s),f=et(s,em);return l===pn(f)?l=n:f.pop(),f.length&&f[0]===s[0]?zh(f,we(l,2)):[]}),eV=_e(function(s){var l=pn(s),f=et(s,em);return l=typeof l=="function"?l:n,l&&f.pop(),f.length&&f[0]===s[0]?zh(f,n,l):[]});function tV(s,l){return s==null?"":Z3.call(s,l)}function pn(s){var l=s==null?0:s.length;return l?s[l-1]:n}function nV(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var x=g;return f!==n&&(x=Oe(f),x=x<0?mt(g+x,0):At(x,g-1)),l===l?N3(s,l,x):Al(s,p2,x,!0)}function rV(s,l){return s&&s.length?Y2(s,Oe(l)):n}var iV=_e(LS);function LS(s,l){return s&&s.length&&l&&l.length?qh(s,l):s}function sV(s,l,f){return s&&s.length&&l&&l.length?qh(s,l,we(f,2)):s}function oV(s,l,f){return s&&s.length&&l&&l.length?qh(s,l,n,f):s}var aV=lr(function(s,l){var f=s==null?0:s.length,g=Vh(s,l);return K2(s,et(l,function(x){return cr(x,f)?+x:x}).sort(sS)),g});function lV(s,l){var f=[];if(!(s&&s.length))return f;var g=-1,x=[],P=s.length;for(l=we(l,3);++g<P;){var _=s[g];l(_,g,s)&&(f.push(_),x.push(g))}return K2(s,x),f}function mm(s){return s==null?s:tj.call(s)}function cV(s,l,f){var g=s==null?0:s.length;return g?(f&&typeof f!="number"&&Dt(s,l,f)?(l=0,f=g):(l=l==null?0:Oe(l),f=f===n?g:Oe(f)),mn(s,l,f)):[]}function uV(s,l){return Hl(s,l)}function fV(s,l,f){return Zh(s,l,we(f,2))}function dV(s,l){var f=s==null?0:s.length;if(f){var g=Hl(s,l);if(g<f&&Tn(s[g],l))return g}return-1}function hV(s,l){return Hl(s,l,!0)}function mV(s,l,f){return Zh(s,l,we(f,2),!0)}function pV(s,l){var f=s==null?0:s.length;if(f){var g=Hl(s,l,!0)-1;if(Tn(s[g],l))return g}return-1}function gV(s){return s&&s.length?Z2(s):[]}function yV(s,l){return s&&s.length?Z2(s,we(l,2)):[]}function vV(s){var l=s==null?0:s.length;return l?mn(s,1,l):[]}function bV(s,l,f){return s&&s.length?(l=f||l===n?1:Oe(l),mn(s,0,l<0?0:l)):[]}function xV(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Oe(l),l=g-l,mn(s,l<0?0:l,g)):[]}function wV(s,l){return s&&s.length?ql(s,we(l,3),!1,!0):[]}function SV(s,l){return s&&s.length?ql(s,we(l,3)):[]}var TV=_e(function(s){return Br(xt(s,1,ct,!0))}),EV=_e(function(s){var l=pn(s);return ct(l)&&(l=n),Br(xt(s,1,ct,!0),we(l,2))}),CV=_e(function(s){var l=pn(s);return l=typeof l=="function"?l:n,Br(xt(s,1,ct,!0),n,l)});function PV(s){return s&&s.length?Br(s):[]}function AV(s,l){return s&&s.length?Br(s,we(l,2)):[]}function OV(s,l){return l=typeof l=="function"?l:n,s&&s.length?Br(s,n,l):[]}function pm(s){if(!(s&&s.length))return[];var l=0;return s=Lr(s,function(f){if(ct(f))return l=mt(f.length,l),!0}),Dh(l,function(f){return et(s,Mh(f))})}function kS(s,l){if(!(s&&s.length))return[];var f=pm(s);return l==null?f:et(f,function(g){return Kt(l,n,g)})}var MV=_e(function(s,l){return ct(s)?Yo(s,l):[]}),_V=_e(function(s){return Qh(Lr(s,ct))}),IV=_e(function(s){var l=pn(s);return ct(l)&&(l=n),Qh(Lr(s,ct),we(l,2))}),DV=_e(function(s){var l=pn(s);return l=typeof l=="function"?l:n,Qh(Lr(s,ct),n,l)}),$V=_e(pm);function RV(s,l){return tS(s||[],l||[],Go)}function NV(s,l){return tS(s||[],l||[],Ko)}var LV=_e(function(s){var l=s.length,f=l>1?s[l-1]:n;return f=typeof f=="function"?(s.pop(),f):n,kS(s,f)});function jS(s){var l=T(s);return l.__chain__=!0,l}function kV(s,l){return l(s),s}function rc(s,l){return l(s)}var jV=lr(function(s){var l=s.length,f=l?s[0]:0,g=this.__wrapped__,x=function(P){return Vh(P,s)};return l>1||this.__actions__.length||!(g instanceof Re)||!cr(f)?this.thru(x):(g=g.slice(f,+f+(l?1:0)),g.__actions__.push({func:rc,args:[x],thisArg:n}),new dn(g,this.__chain__).thru(function(P){return l&&!P.length&&P.push(n),P}))});function FV(){return jS(this)}function VV(){return new dn(this.value(),this.__chain__)}function BV(){this.__values__===n&&(this.__values__=JS(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function WV(){return this}function UV(s){for(var l,f=this;f instanceof Wl;){var g=IS(f);g.__index__=0,g.__values__=n,l?x.__wrapped__=g:l=g;var x=g;f=f.__wrapped__}return x.__wrapped__=s,l}function zV(){var s=this.__wrapped__;if(s instanceof Re){var l=s;return this.__actions__.length&&(l=new Re(this)),l=l.reverse(),l.__actions__.push({func:rc,args:[mm],thisArg:n}),new dn(l,this.__chain__)}return this.thru(mm)}function GV(){return eS(this.__wrapped__,this.__actions__)}var YV=Kl(function(s,l,f){Ue.call(s,f)?++s[f]:or(s,f,1)});function HV(s,l,f){var g=Ae(s)?h2:kj;return f&&Dt(s,l,f)&&(l=n),g(s,we(l,3))}function qV(s,l){var f=Ae(s)?Lr:k2;return f(s,we(l,3))}var KV=fS(DS),XV=fS($S);function ZV(s,l){return xt(ic(s,l),1)}function JV(s,l){return xt(ic(s,l),j)}function QV(s,l,f){return f=f===n?1:Oe(f),xt(ic(s,l),f)}function FS(s,l){var f=Ae(s)?un:Vr;return f(s,we(l,3))}function VS(s,l){var f=Ae(s)?v3:L2;return f(s,we(l,3))}var eB=Kl(function(s,l,f){Ue.call(s,f)?s[f].push(l):or(s,f,[l])});function tB(s,l,f,g){s=Bt(s)?s:Ns(s),f=f&&!g?Oe(f):0;var x=s.length;return f<0&&(f=mt(x+f,0)),cc(s)?f<=x&&s.indexOf(l,f)>-1:!!x&&Ts(s,l,f)>-1}var nB=_e(function(s,l,f){var g=-1,x=typeof l=="function",P=Bt(s)?B(s.length):[];return Vr(s,function(_){P[++g]=x?Kt(l,_,f):Ho(_,l,f)}),P}),rB=Kl(function(s,l,f){or(s,f,l)});function ic(s,l){var f=Ae(s)?et:U2;return f(s,we(l,3))}function iB(s,l,f,g){return s==null?[]:(Ae(l)||(l=l==null?[]:[l]),f=g?n:f,Ae(f)||(f=f==null?[]:[f]),H2(s,l,f))}var sB=Kl(function(s,l,f){s[f?0:1].push(l)},function(){return[[],[]]});function oB(s,l,f){var g=Ae(s)?Ah:y2,x=arguments.length<3;return g(s,we(l,4),f,x,Vr)}function aB(s,l,f){var g=Ae(s)?b3:y2,x=arguments.length<3;return g(s,we(l,4),f,x,L2)}function lB(s,l){var f=Ae(s)?Lr:k2;return f(s,ac(we(l,3)))}function cB(s){var l=Ae(s)?D2:tF;return l(s)}function uB(s,l,f){(f?Dt(s,l,f):l===n)?l=1:l=Oe(l);var g=Ae(s)?Dj:nF;return g(s,l)}function fB(s){var l=Ae(s)?$j:iF;return l(s)}function dB(s){if(s==null)return 0;if(Bt(s))return cc(s)?Cs(s):s.length;var l=Ot(s);return l==ke||l==qt?s.size:Yh(s).length}function hB(s,l,f){var g=Ae(s)?Oh:sF;return f&&Dt(s,l,f)&&(l=n),g(s,we(l,3))}var mB=_e(function(s,l){if(s==null)return[];var f=l.length;return f>1&&Dt(s,l[0],l[1])?l=[]:f>2&&Dt(l[0],l[1],l[2])&&(l=[l[0]]),H2(s,xt(l,1),[])}),sc=q3||function(){return bt.Date.now()};function pB(s,l){if(typeof l!="function")throw new fn(o);return s=Oe(s),function(){if(--s<1)return l.apply(this,arguments)}}function BS(s,l,f){return l=f?n:l,l=s&&l==null?s.length:l,ar(s,V,n,n,n,n,l)}function WS(s,l){var f;if(typeof l!="function")throw new fn(o);return s=Oe(s),function(){return--s>0&&(f=l.apply(this,arguments)),s<=1&&(l=n),f}}var gm=_e(function(s,l,f){var g=E;if(f.length){var x=jr(f,$s(gm));g|=O}return ar(s,g,l,f,x)}),US=_e(function(s,l,f){var g=E|w;if(f.length){var x=jr(f,$s(US));g|=O}return ar(l,g,s,f,x)});function zS(s,l,f){l=f?n:l;var g=ar(s,A,n,n,n,n,n,l);return g.placeholder=zS.placeholder,g}function GS(s,l,f){l=f?n:l;var g=ar(s,$,n,n,n,n,n,l);return g.placeholder=GS.placeholder,g}function YS(s,l,f){var g,x,P,_,D,L,Y=0,H=!1,K=!1,le=!0;if(typeof s!="function")throw new fn(o);l=gn(l)||0,st(f)&&(H=!!f.leading,K="maxWait"in f,P=K?mt(gn(f.maxWait)||0,l):P,le="trailing"in f?!!f.trailing:le);function me(ut){var En=g,dr=x;return g=x=n,Y=ut,_=s.apply(dr,En),_}function Ee(ut){return Y=ut,D=Jo($e,l),H?me(ut):_}function Me(ut){var En=ut-L,dr=ut-Y,fT=l-En;return K?At(fT,P-dr):fT}function Ce(ut){var En=ut-L,dr=ut-Y;return L===n||En>=l||En<0||K&&dr>=P}function $e(){var ut=sc();if(Ce(ut))return Ne(ut);D=Jo($e,Me(ut))}function Ne(ut){return D=n,le&&g?me(ut):(g=x=n,_)}function Qt(){D!==n&&nS(D),Y=0,g=L=x=D=n}function $t(){return D===n?_:Ne(sc())}function en(){var ut=sc(),En=Ce(ut);if(g=arguments,x=this,L=ut,En){if(D===n)return Ee(L);if(K)return nS(D),D=Jo($e,l),me(L)}return D===n&&(D=Jo($e,l)),_}return en.cancel=Qt,en.flush=$t,en}var gB=_e(function(s,l){return N2(s,1,l)}),yB=_e(function(s,l,f){return N2(s,gn(l)||0,f)});function vB(s){return ar(s,z)}function oc(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new fn(o);var f=function(){var g=arguments,x=l?l.apply(this,g):g[0],P=f.cache;if(P.has(x))return P.get(x);var _=s.apply(this,g);return f.cache=P.set(x,_)||P,_};return f.cache=new(oc.Cache||sr),f}oc.Cache=sr;function ac(s){if(typeof s!="function")throw new fn(o);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function bB(s){return WS(2,s)}var xB=oF(function(s,l){l=l.length==1&&Ae(l[0])?et(l[0],Xt(we())):et(xt(l,1),Xt(we()));var f=l.length;return _e(function(g){for(var x=-1,P=At(g.length,f);++x<P;)g[x]=l[x].call(this,g[x]);return Kt(s,this,g)})}),ym=_e(function(s,l){var f=jr(l,$s(ym));return ar(s,O,n,l,f)}),HS=_e(function(s,l){var f=jr(l,$s(HS));return ar(s,R,n,l,f)}),wB=lr(function(s,l){return ar(s,F,n,n,n,l)});function SB(s,l){if(typeof s!="function")throw new fn(o);return l=l===n?l:Oe(l),_e(s,l)}function TB(s,l){if(typeof s!="function")throw new fn(o);return l=l==null?0:mt(Oe(l),0),_e(function(f){var g=f[l],x=Ur(f,0,l);return g&&kr(x,g),Kt(s,this,x)})}function EB(s,l,f){var g=!0,x=!0;if(typeof s!="function")throw new fn(o);return st(f)&&(g="leading"in f?!!f.leading:g,x="trailing"in f?!!f.trailing:x),YS(s,l,{leading:g,maxWait:l,trailing:x})}function CB(s){return BS(s,1)}function PB(s,l){return ym(tm(l),s)}function AB(){if(!arguments.length)return[];var s=arguments[0];return Ae(s)?s:[s]}function OB(s){return hn(s,y)}function MB(s,l){return l=typeof l=="function"?l:n,hn(s,y,l)}function _B(s){return hn(s,m|y)}function IB(s,l){return l=typeof l=="function"?l:n,hn(s,m|y,l)}function DB(s,l){return l==null||R2(s,l,gt(l))}function Tn(s,l){return s===l||s!==s&&l!==l}var $B=Ql(Uh),RB=Ql(function(s,l){return s>=l}),Di=V2(function(){return arguments}())?V2:function(s){return ot(s)&&Ue.call(s,"callee")&&!P2.call(s,"callee")},Ae=B.isArray,NB=a2?Xt(a2):Uj;function Bt(s){return s!=null&&lc(s.length)&&!ur(s)}function ct(s){return ot(s)&&Bt(s)}function LB(s){return s===!0||s===!1||ot(s)&&It(s)==ce}var zr=X3||Om,kB=l2?Xt(l2):zj;function jB(s){return ot(s)&&s.nodeType===1&&!Qo(s)}function FB(s){if(s==null)return!0;if(Bt(s)&&(Ae(s)||typeof s=="string"||typeof s.splice=="function"||zr(s)||Rs(s)||Di(s)))return!s.length;var l=Ot(s);if(l==ke||l==qt)return!s.size;if(Zo(s))return!Yh(s).length;for(var f in s)if(Ue.call(s,f))return!1;return!0}function VB(s,l){return qo(s,l)}function BB(s,l,f){f=typeof f=="function"?f:n;var g=f?f(s,l):n;return g===n?qo(s,l,n,f):!!g}function vm(s){if(!ot(s))return!1;var l=It(s);return l==Le||l==xe||typeof s.message=="string"&&typeof s.name=="string"&&!Qo(s)}function WB(s){return typeof s=="number"&&O2(s)}function ur(s){if(!st(s))return!1;var l=It(s);return l==ie||l==pe||l==he||l==xl}function qS(s){return typeof s=="number"&&s==Oe(s)}function lc(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=W}function st(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function ot(s){return s!=null&&typeof s=="object"}var KS=c2?Xt(c2):Yj;function UB(s,l){return s===l||Gh(s,l,lm(l))}function zB(s,l,f){return f=typeof f=="function"?f:n,Gh(s,l,lm(l),f)}function GB(s){return XS(s)&&s!=+s}function YB(s){if(MF(s))throw new Pe(a);return B2(s)}function HB(s){return s===null}function qB(s){return s==null}function XS(s){return typeof s=="number"||ot(s)&&It(s)==ft}function Qo(s){if(!ot(s)||It(s)!=dt)return!1;var l=Nl(s);if(l===null)return!0;var f=Ue.call(l,"constructor")&&l.constructor;return typeof f=="function"&&f instanceof f&&Il.call(f)==z3}var bm=u2?Xt(u2):Hj;function KB(s){return qS(s)&&s>=-9007199254740991&&s<=W}var ZS=f2?Xt(f2):qj;function cc(s){return typeof s=="string"||!Ae(s)&&ot(s)&&It(s)==bn}function Jt(s){return typeof s=="symbol"||ot(s)&&It(s)==Ti}var Rs=d2?Xt(d2):Kj;function XB(s){return s===n}function ZB(s){return ot(s)&&Ot(s)==Nr}function JB(s){return ot(s)&&It(s)==Sl}var QB=Ql(Hh),e8=Ql(function(s,l){return s<=l});function JS(s){if(!s)return[];if(Bt(s))return cc(s)?wn(s):Vt(s);if(Vo&&s[Vo])return D3(s[Vo]());var l=Ot(s),f=l==ke?Rh:l==qt?Ol:Ns;return f(s)}function fr(s){if(!s)return s===0?s:0;if(s=gn(s),s===j||s===-1/0){var l=s<0?-1:1;return l*q}return s===s?s:0}function Oe(s){var l=fr(s),f=l%1;return l===l?f?l-f:l:0}function QS(s){return s?Oi(Oe(s),0,k):0}function gn(s){if(typeof s=="number")return s;if(Jt(s))return M;if(st(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=st(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=v2(s);var f=Nk.test(s);return f||kk.test(s)?p3(s.slice(2),f?2:8):Rk.test(s)?M:+s}function eT(s){return Wn(s,Wt(s))}function t8(s){return s?Oi(Oe(s),-9007199254740991,W):s===0?s:0}function Be(s){return s==null?"":Zt(s)}var n8=Is(function(s,l){if(Zo(l)||Bt(l)){Wn(l,gt(l),s);return}for(var f in l)Ue.call(l,f)&&Go(s,f,l[f])}),tT=Is(function(s,l){Wn(l,Wt(l),s)}),uc=Is(function(s,l,f,g){Wn(l,Wt(l),s,g)}),r8=Is(function(s,l,f,g){Wn(l,gt(l),s,g)}),i8=lr(Vh);function s8(s,l){var f=_s(s);return l==null?f:$2(f,l)}var o8=_e(function(s,l){s=Ge(s);var f=-1,g=l.length,x=g>2?l[2]:n;for(x&&Dt(l[0],l[1],x)&&(g=1);++f<g;)for(var P=l[f],_=Wt(P),D=-1,L=_.length;++D<L;){var Y=_[D],H=s[Y];(H===n||Tn(H,As[Y])&&!Ue.call(s,Y))&&(s[Y]=P[Y])}return s}),a8=_e(function(s){return s.push(n,vS),Kt(nT,n,s)});function l8(s,l){return m2(s,we(l,3),Bn)}function c8(s,l){return m2(s,we(l,3),Wh)}function u8(s,l){return s==null?s:Bh(s,we(l,3),Wt)}function f8(s,l){return s==null?s:j2(s,we(l,3),Wt)}function d8(s,l){return s&&Bn(s,we(l,3))}function h8(s,l){return s&&Wh(s,we(l,3))}function m8(s){return s==null?[]:Gl(s,gt(s))}function p8(s){return s==null?[]:Gl(s,Wt(s))}function xm(s,l,f){var g=s==null?n:Mi(s,l);return g===n?f:g}function g8(s,l){return s!=null&&wS(s,l,Fj)}function wm(s,l){return s!=null&&wS(s,l,Vj)}var y8=hS(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),s[l]=f},Tm(Ut)),v8=hS(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),Ue.call(s,l)?s[l].push(f):s[l]=[f]},we),b8=_e(Ho);function gt(s){return Bt(s)?I2(s):Yh(s)}function Wt(s){return Bt(s)?I2(s,!0):Xj(s)}function x8(s,l){var f={};return l=we(l,3),Bn(s,function(g,x,P){or(f,l(g,x,P),g)}),f}function w8(s,l){var f={};return l=we(l,3),Bn(s,function(g,x,P){or(f,x,l(g,x,P))}),f}var S8=Is(function(s,l,f){Yl(s,l,f)}),nT=Is(function(s,l,f,g){Yl(s,l,f,g)}),T8=lr(function(s,l){var f={};if(s==null)return f;var g=!1;l=et(l,function(P){return P=Wr(P,s),g||(g=P.length>1),P}),Wn(s,om(s),f),g&&(f=hn(f,m|p|y,yF));for(var x=l.length;x--;)Jh(f,l[x]);return f});function E8(s,l){return rT(s,ac(we(l)))}var C8=lr(function(s,l){return s==null?{}:Jj(s,l)});function rT(s,l){if(s==null)return{};var f=et(om(s),function(g){return[g]});return l=we(l),q2(s,f,function(g,x){return l(g,x[0])})}function P8(s,l,f){l=Wr(l,s);var g=-1,x=l.length;for(x||(x=1,s=n);++g<x;){var P=s==null?n:s[Un(l[g])];P===n&&(g=x,P=f),s=ur(P)?P.call(s):P}return s}function A8(s,l,f){return s==null?s:Ko(s,l,f)}function O8(s,l,f,g){return g=typeof g=="function"?g:n,s==null?s:Ko(s,l,f,g)}var iT=gS(gt),sT=gS(Wt);function M8(s,l,f){var g=Ae(s),x=g||zr(s)||Rs(s);if(l=we(l,4),f==null){var P=s&&s.constructor;x?f=g?new P:[]:st(s)?f=ur(P)?_s(Nl(s)):{}:f={}}return(x?un:Bn)(s,function(_,D,L){return l(f,_,D,L)}),f}function _8(s,l){return s==null?!0:Jh(s,l)}function I8(s,l,f){return s==null?s:Q2(s,l,tm(f))}function D8(s,l,f,g){return g=typeof g=="function"?g:n,s==null?s:Q2(s,l,tm(f),g)}function Ns(s){return s==null?[]:$h(s,gt(s))}function $8(s){return s==null?[]:$h(s,Wt(s))}function R8(s,l,f){return f===n&&(f=l,l=n),f!==n&&(f=gn(f),f=f===f?f:0),l!==n&&(l=gn(l),l=l===l?l:0),Oi(gn(s),l,f)}function N8(s,l,f){return l=fr(l),f===n?(f=l,l=0):f=fr(f),s=gn(s),Bj(s,l,f)}function L8(s,l,f){if(f&&typeof f!="boolean"&&Dt(s,l,f)&&(l=f=n),f===n&&(typeof l=="boolean"?(f=l,l=n):typeof s=="boolean"&&(f=s,s=n)),s===n&&l===n?(s=0,l=1):(s=fr(s),l===n?(l=s,s=0):l=fr(l)),s>l){var g=s;s=l,l=g}if(f||s%1||l%1){var x=M2();return At(s+x*(l-s+m3("1e-"+((x+"").length-1))),l)}return Kh(s,l)}var k8=Ds(function(s,l,f){return l=l.toLowerCase(),s+(f?oT(l):l)});function oT(s){return Sm(Be(s).toLowerCase())}function aT(s){return s=Be(s),s&&s.replace(Fk,A3).replace(i3,"")}function j8(s,l,f){s=Be(s),l=Zt(l);var g=s.length;f=f===n?g:Oi(Oe(f),0,g);var x=f;return f-=l.length,f>=0&&s.slice(f,x)==l}function F8(s){return s=Be(s),s&&bk.test(s)?s.replace(jw,O3):s}function V8(s){return s=Be(s),s&&Ck.test(s)?s.replace(yh,"\\$&"):s}var B8=Ds(function(s,l,f){return s+(f?"-":"")+l.toLowerCase()}),W8=Ds(function(s,l,f){return s+(f?" ":"")+l.toLowerCase()}),U8=uS("toLowerCase");function z8(s,l,f){s=Be(s),l=Oe(l);var g=l?Cs(s):0;if(!l||g>=l)return s;var x=(l-g)/2;return Jl(Fl(x),f)+s+Jl(jl(x),f)}function G8(s,l,f){s=Be(s),l=Oe(l);var g=l?Cs(s):0;return l&&g<l?s+Jl(l-g,f):s}function Y8(s,l,f){s=Be(s),l=Oe(l);var g=l?Cs(s):0;return l&&g<l?Jl(l-g,f)+s:s}function H8(s,l,f){return f||l==null?l=0:l&&(l=+l),ej(Be(s).replace(vh,""),l||0)}function q8(s,l,f){return(f?Dt(s,l,f):l===n)?l=1:l=Oe(l),Xh(Be(s),l)}function K8(){var s=arguments,l=Be(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var X8=Ds(function(s,l,f){return s+(f?"_":"")+l.toLowerCase()});function Z8(s,l,f){return f&&typeof f!="number"&&Dt(s,l,f)&&(l=f=n),f=f===n?k:f>>>0,f?(s=Be(s),s&&(typeof l=="string"||l!=null&&!bm(l))&&(l=Zt(l),!l&&Es(s))?Ur(wn(s),0,f):s.split(l,f)):[]}var J8=Ds(function(s,l,f){return s+(f?" ":"")+Sm(l)});function Q8(s,l,f){return s=Be(s),f=f==null?0:Oi(Oe(f),0,s.length),l=Zt(l),s.slice(f,f+l.length)==l}function e9(s,l,f){var g=T.templateSettings;f&&Dt(s,l,f)&&(l=n),s=Be(s),l=uc({},l,g,yS);var x=uc({},l.imports,g.imports,yS),P=gt(x),_=$h(x,P),D,L,Y=0,H=l.interpolate||Tl,K="__p += '",le=Nh((l.escape||Tl).source+"|"+H.source+"|"+(H===Fw?$k:Tl).source+"|"+(l.evaluate||Tl).source+"|$","g"),me="//# sourceURL="+(Ue.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++c3+"]")+`
|
|
635
|
-
`;s.replace(le,function(Ce,$e,Ne,Qt,$t,en){return Ne||(Ne=Qt),K+=s.slice(Y,en).replace(
|
|
634
|
+
`)}function MF(s){return Ae(s)||Di(s)||!!(A2&&s&&s[A2])}function cr(s,l){var f=typeof s;return l=l??W,!!l&&(f=="number"||f!="symbol"&&Vk.test(s))&&s>-1&&s%1==0&&s<l}function Dt(s,l,f){if(!st(f))return!1;var g=typeof l;return(g=="number"?Bt(f)&&cr(l,f.length):g=="string"&&l in f)?Tn(f[l],s):!1}function um(s,l){if(Ae(s))return!1;var f=typeof s;return f=="number"||f=="symbol"||f=="boolean"||s==null||Jt(s)?!0:Ck.test(s)||!Ek.test(s)||l!=null&&s in Ge(l)}function OF(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function fm(s){var l=ec(s),f=T[l];if(typeof f!="function"||!(l in Re.prototype))return!1;if(s===f)return!0;var g=am(f);return!!g&&s===g[0]}function _F(s){return!!T2&&T2 in s}var IF=_l?ur:Mm;function Zo(s){var l=s&&s.constructor,f=typeof l=="function"&&l.prototype||As;return s===f}function TS(s){return s===s&&!st(s)}function ES(s,l){return function(f){return f==null?!1:f[s]===l&&(l!==n||s in Ge(f))}}function DF(s){var l=oc(s,function(g){return f.size===d&&f.clear(),g}),f=l.cache;return l}function $F(s,l){var f=s[1],g=l[1],x=f|g,A=x<(E|w|k),_=g==k&&f==M||g==k&&f==j&&s[7].length<=l[8]||g==(k|j)&&l[7].length<=l[8]&&f==M;if(!(A||_))return s;g&E&&(s[2]=l[2],x|=f&E?0:C);var D=l[3];if(D){var F=s[3];s[3]=F?oS(F,D,l[4]):D,s[4]=F?jr(s[3],h):l[4]}return D=l[5],D&&(F=s[5],s[5]=F?aS(F,D,l[6]):D,s[6]=F?jr(s[5],h):l[6]),D=l[7],D&&(s[7]=D),g&k&&(s[8]=s[8]==null?l[8]:At(s[8],l[8])),s[9]==null&&(s[9]=l[9]),s[0]=l[0],s[1]=x,s}function RF(s){var l=[];if(s!=null)for(var f in Ge(s))l.push(f);return l}function NF(s){return Dl.call(s)}function CS(s,l,f){return l=mt(l===n?s.length-1:l,0),function(){for(var g=arguments,x=-1,A=mt(g.length-l,0),_=B(A);++x<A;)_[x]=g[l+x];x=-1;for(var D=B(l+1);++x<l;)D[x]=g[x];return D[l]=f(_),Kt(s,this,D)}}function PS(s,l){return l.length<2?s:Oi(s,mn(l,0,-1))}function LF(s,l){for(var f=s.length,g=At(l.length,f),x=Vt(s);g--;){var A=l[g];s[g]=cr(A,f)?x[A]:n}return s}function dm(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var AS=OS(X2),Jo=Z3||function(s,l){return bt.setTimeout(s,l)},hm=OS(sF);function MS(s,l,f){var g=l+"";return hm(s,AF(g,kF(EF(g),f)))}function OS(s){var l=0,f=0;return function(){var g=tj(),x=ve-(g-f);if(f=g,x>0){if(++l>=ce)return arguments[0]}else l=0;return s.apply(n,arguments)}}function nc(s,l){var f=-1,g=s.length,x=g-1;for(l=l===n?g:l;++f<l;){var A=Kh(f,x),_=s[A];s[A]=s[f],s[f]=_}return s.length=l,s}var _S=DF(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(Pk,function(f,g,x,A){l.push(x?A.replace(Rk,"$1"):g||f)}),l});function Un(s){if(typeof s=="string"||Jt(s))return s;var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function Ii(s){if(s!=null){try{return Il.call(s)}catch{}try{return s+""}catch{}}return""}function kF(s,l){return un(ae,function(f){var g="_."+f[0];l&f[1]&&!Pl(s,g)&&s.push(g)}),s.sort()}function IS(s){if(s instanceof Re)return s.clone();var l=new dn(s.__wrapped__,s.__chain__);return l.__actions__=Vt(s.__actions__),l.__index__=s.__index__,l.__values__=s.__values__,l}function jF(s,l,f){(f?Dt(s,l,f):l===n)?l=1:l=mt(Me(l),0);var g=s==null?0:s.length;if(!g||l<1)return[];for(var x=0,A=0,_=B(jl(g/l));x<g;)_[A++]=mn(s,x,x+=l);return _}function FF(s){for(var l=-1,f=s==null?0:s.length,g=0,x=[];++l<f;){var A=s[l];A&&(x[g++]=A)}return x}function VF(){var s=arguments.length;if(!s)return[];for(var l=B(s-1),f=arguments[0],g=s;g--;)l[g-1]=arguments[g];return kr(Ae(f)?Vt(f):[f],xt(l,1))}var BF=_e(function(s,l){return ct(s)?Yo(s,xt(l,1,ct,!0)):[]}),WF=_e(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Yo(s,xt(l,1,ct,!0),we(f,2)):[]}),UF=_e(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Yo(s,xt(l,1,ct,!0),n,f):[]});function zF(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Me(l),mn(s,l<0?0:l,g)):[]}function GF(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Me(l),l=g-l,mn(s,0,l<0?0:l)):[]}function YF(s,l){return s&&s.length?ql(s,we(l,3),!0,!0):[]}function HF(s,l){return s&&s.length?ql(s,we(l,3),!0):[]}function qF(s,l,f,g){var x=s==null?0:s.length;return x?(f&&typeof f!="number"&&Dt(s,l,f)&&(f=0,g=x),Vj(s,l,f,g)):[]}function DS(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var x=f==null?0:Me(f);return x<0&&(x=mt(g+x,0)),Al(s,we(l,3),x)}function $S(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var x=g-1;return f!==n&&(x=Me(f),x=f<0?mt(g+x,0):At(x,g-1)),Al(s,we(l,3),x,!0)}function RS(s){var l=s==null?0:s.length;return l?xt(s,1):[]}function KF(s){var l=s==null?0:s.length;return l?xt(s,N):[]}function XF(s,l){var f=s==null?0:s.length;return f?(l=l===n?1:Me(l),xt(s,l)):[]}function ZF(s){for(var l=-1,f=s==null?0:s.length,g={};++l<f;){var x=s[l];g[x[0]]=x[1]}return g}function NS(s){return s&&s.length?s[0]:n}function JF(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var x=f==null?0:Me(f);return x<0&&(x=mt(g+x,0)),Ts(s,l,x)}function QF(s){var l=s==null?0:s.length;return l?mn(s,0,-1):[]}var eV=_e(function(s){var l=et(s,em);return l.length&&l[0]===s[0]?zh(l):[]}),tV=_e(function(s){var l=pn(s),f=et(s,em);return l===pn(f)?l=n:f.pop(),f.length&&f[0]===s[0]?zh(f,we(l,2)):[]}),nV=_e(function(s){var l=pn(s),f=et(s,em);return l=typeof l=="function"?l:n,l&&f.pop(),f.length&&f[0]===s[0]?zh(f,n,l):[]});function rV(s,l){return s==null?"":Q3.call(s,l)}function pn(s){var l=s==null?0:s.length;return l?s[l-1]:n}function iV(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var x=g;return f!==n&&(x=Me(f),x=x<0?mt(g+x,0):At(x,g-1)),l===l?k3(s,l,x):Al(s,p2,x,!0)}function sV(s,l){return s&&s.length?Y2(s,Me(l)):n}var oV=_e(LS);function LS(s,l){return s&&s.length&&l&&l.length?qh(s,l):s}function aV(s,l,f){return s&&s.length&&l&&l.length?qh(s,l,we(f,2)):s}function lV(s,l,f){return s&&s.length&&l&&l.length?qh(s,l,n,f):s}var cV=lr(function(s,l){var f=s==null?0:s.length,g=Vh(s,l);return K2(s,et(l,function(x){return cr(x,f)?+x:x}).sort(sS)),g});function uV(s,l){var f=[];if(!(s&&s.length))return f;var g=-1,x=[],A=s.length;for(l=we(l,3);++g<A;){var _=s[g];l(_,g,s)&&(f.push(_),x.push(g))}return K2(s,x),f}function mm(s){return s==null?s:rj.call(s)}function fV(s,l,f){var g=s==null?0:s.length;return g?(f&&typeof f!="number"&&Dt(s,l,f)?(l=0,f=g):(l=l==null?0:Me(l),f=f===n?g:Me(f)),mn(s,l,f)):[]}function dV(s,l){return Hl(s,l)}function hV(s,l,f){return Zh(s,l,we(f,2))}function mV(s,l){var f=s==null?0:s.length;if(f){var g=Hl(s,l);if(g<f&&Tn(s[g],l))return g}return-1}function pV(s,l){return Hl(s,l,!0)}function gV(s,l,f){return Zh(s,l,we(f,2),!0)}function yV(s,l){var f=s==null?0:s.length;if(f){var g=Hl(s,l,!0)-1;if(Tn(s[g],l))return g}return-1}function vV(s){return s&&s.length?Z2(s):[]}function bV(s,l){return s&&s.length?Z2(s,we(l,2)):[]}function xV(s){var l=s==null?0:s.length;return l?mn(s,1,l):[]}function wV(s,l,f){return s&&s.length?(l=f||l===n?1:Me(l),mn(s,0,l<0?0:l)):[]}function SV(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Me(l),l=g-l,mn(s,l<0?0:l,g)):[]}function TV(s,l){return s&&s.length?ql(s,we(l,3),!1,!0):[]}function EV(s,l){return s&&s.length?ql(s,we(l,3)):[]}var CV=_e(function(s){return Br(xt(s,1,ct,!0))}),PV=_e(function(s){var l=pn(s);return ct(l)&&(l=n),Br(xt(s,1,ct,!0),we(l,2))}),AV=_e(function(s){var l=pn(s);return l=typeof l=="function"?l:n,Br(xt(s,1,ct,!0),n,l)});function MV(s){return s&&s.length?Br(s):[]}function OV(s,l){return s&&s.length?Br(s,we(l,2)):[]}function _V(s,l){return l=typeof l=="function"?l:n,s&&s.length?Br(s,n,l):[]}function pm(s){if(!(s&&s.length))return[];var l=0;return s=Lr(s,function(f){if(ct(f))return l=mt(f.length,l),!0}),Dh(l,function(f){return et(s,Oh(f))})}function kS(s,l){if(!(s&&s.length))return[];var f=pm(s);return l==null?f:et(f,function(g){return Kt(l,n,g)})}var IV=_e(function(s,l){return ct(s)?Yo(s,l):[]}),DV=_e(function(s){return Qh(Lr(s,ct))}),$V=_e(function(s){var l=pn(s);return ct(l)&&(l=n),Qh(Lr(s,ct),we(l,2))}),RV=_e(function(s){var l=pn(s);return l=typeof l=="function"?l:n,Qh(Lr(s,ct),n,l)}),NV=_e(pm);function LV(s,l){return tS(s||[],l||[],Go)}function kV(s,l){return tS(s||[],l||[],Ko)}var jV=_e(function(s){var l=s.length,f=l>1?s[l-1]:n;return f=typeof f=="function"?(s.pop(),f):n,kS(s,f)});function jS(s){var l=T(s);return l.__chain__=!0,l}function FV(s,l){return l(s),s}function rc(s,l){return l(s)}var VV=lr(function(s){var l=s.length,f=l?s[0]:0,g=this.__wrapped__,x=function(A){return Vh(A,s)};return l>1||this.__actions__.length||!(g instanceof Re)||!cr(f)?this.thru(x):(g=g.slice(f,+f+(l?1:0)),g.__actions__.push({func:rc,args:[x],thisArg:n}),new dn(g,this.__chain__).thru(function(A){return l&&!A.length&&A.push(n),A}))});function BV(){return jS(this)}function WV(){return new dn(this.value(),this.__chain__)}function UV(){this.__values__===n&&(this.__values__=JS(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function zV(){return this}function GV(s){for(var l,f=this;f instanceof Wl;){var g=IS(f);g.__index__=0,g.__values__=n,l?x.__wrapped__=g:l=g;var x=g;f=f.__wrapped__}return x.__wrapped__=s,l}function YV(){var s=this.__wrapped__;if(s instanceof Re){var l=s;return this.__actions__.length&&(l=new Re(this)),l=l.reverse(),l.__actions__.push({func:rc,args:[mm],thisArg:n}),new dn(l,this.__chain__)}return this.thru(mm)}function HV(){return eS(this.__wrapped__,this.__actions__)}var qV=Kl(function(s,l,f){Ue.call(s,f)?++s[f]:or(s,f,1)});function KV(s,l,f){var g=Ae(s)?h2:Fj;return f&&Dt(s,l,f)&&(l=n),g(s,we(l,3))}function XV(s,l){var f=Ae(s)?Lr:k2;return f(s,we(l,3))}var ZV=fS(DS),JV=fS($S);function QV(s,l){return xt(ic(s,l),1)}function eB(s,l){return xt(ic(s,l),N)}function tB(s,l,f){return f=f===n?1:Me(f),xt(ic(s,l),f)}function FS(s,l){var f=Ae(s)?un:Vr;return f(s,we(l,3))}function VS(s,l){var f=Ae(s)?x3:L2;return f(s,we(l,3))}var nB=Kl(function(s,l,f){Ue.call(s,f)?s[f].push(l):or(s,f,[l])});function rB(s,l,f,g){s=Bt(s)?s:Ns(s),f=f&&!g?Me(f):0;var x=s.length;return f<0&&(f=mt(x+f,0)),cc(s)?f<=x&&s.indexOf(l,f)>-1:!!x&&Ts(s,l,f)>-1}var iB=_e(function(s,l,f){var g=-1,x=typeof l=="function",A=Bt(s)?B(s.length):[];return Vr(s,function(_){A[++g]=x?Kt(l,_,f):Ho(_,l,f)}),A}),sB=Kl(function(s,l,f){or(s,f,l)});function ic(s,l){var f=Ae(s)?et:U2;return f(s,we(l,3))}function oB(s,l,f,g){return s==null?[]:(Ae(l)||(l=l==null?[]:[l]),f=g?n:f,Ae(f)||(f=f==null?[]:[f]),H2(s,l,f))}var aB=Kl(function(s,l,f){s[f?0:1].push(l)},function(){return[[],[]]});function lB(s,l,f){var g=Ae(s)?Ah:y2,x=arguments.length<3;return g(s,we(l,4),f,x,Vr)}function cB(s,l,f){var g=Ae(s)?w3:y2,x=arguments.length<3;return g(s,we(l,4),f,x,L2)}function uB(s,l){var f=Ae(s)?Lr:k2;return f(s,ac(we(l,3)))}function fB(s){var l=Ae(s)?D2:rF;return l(s)}function dB(s,l,f){(f?Dt(s,l,f):l===n)?l=1:l=Me(l);var g=Ae(s)?Rj:iF;return g(s,l)}function hB(s){var l=Ae(s)?Nj:oF;return l(s)}function mB(s){if(s==null)return 0;if(Bt(s))return cc(s)?Cs(s):s.length;var l=Mt(s);return l==ke||l==qt?s.size:Yh(s).length}function pB(s,l,f){var g=Ae(s)?Mh:aF;return f&&Dt(s,l,f)&&(l=n),g(s,we(l,3))}var gB=_e(function(s,l){if(s==null)return[];var f=l.length;return f>1&&Dt(s,l[0],l[1])?l=[]:f>2&&Dt(l[0],l[1],l[2])&&(l=[l[0]]),H2(s,xt(l,1),[])}),sc=X3||function(){return bt.Date.now()};function yB(s,l){if(typeof l!="function")throw new fn(a);return s=Me(s),function(){if(--s<1)return l.apply(this,arguments)}}function BS(s,l,f){return l=f?n:l,l=s&&l==null?s.length:l,ar(s,k,n,n,n,n,l)}function WS(s,l){var f;if(typeof l!="function")throw new fn(a);return s=Me(s),function(){return--s>0&&(f=l.apply(this,arguments)),s<=1&&(l=n),f}}var gm=_e(function(s,l,f){var g=E;if(f.length){var x=jr(f,$s(gm));g|=P}return ar(s,g,l,f,x)}),US=_e(function(s,l,f){var g=E|w;if(f.length){var x=jr(f,$s(US));g|=P}return ar(l,g,s,f,x)});function zS(s,l,f){l=f?n:l;var g=ar(s,M,n,n,n,n,n,l);return g.placeholder=zS.placeholder,g}function GS(s,l,f){l=f?n:l;var g=ar(s,$,n,n,n,n,n,l);return g.placeholder=GS.placeholder,g}function YS(s,l,f){var g,x,A,_,D,F,Y=0,H=!1,K=!1,le=!0;if(typeof s!="function")throw new fn(a);l=gn(l)||0,st(f)&&(H=!!f.leading,K="maxWait"in f,A=K?mt(gn(f.maxWait)||0,l):A,le="trailing"in f?!!f.trailing:le);function me(ut){var En=g,dr=x;return g=x=n,Y=ut,_=s.apply(dr,En),_}function Ee(ut){return Y=ut,D=Jo($e,l),H?me(ut):_}function Oe(ut){var En=ut-F,dr=ut-Y,fT=l-En;return K?At(fT,A-dr):fT}function Ce(ut){var En=ut-F,dr=ut-Y;return F===n||En>=l||En<0||K&&dr>=A}function $e(){var ut=sc();if(Ce(ut))return Ne(ut);D=Jo($e,Oe(ut))}function Ne(ut){return D=n,le&&g?me(ut):(g=x=n,_)}function Qt(){D!==n&&nS(D),Y=0,g=F=x=D=n}function $t(){return D===n?_:Ne(sc())}function en(){var ut=sc(),En=Ce(ut);if(g=arguments,x=this,F=ut,En){if(D===n)return Ee(F);if(K)return nS(D),D=Jo($e,l),me(F)}return D===n&&(D=Jo($e,l)),_}return en.cancel=Qt,en.flush=$t,en}var vB=_e(function(s,l){return N2(s,1,l)}),bB=_e(function(s,l,f){return N2(s,gn(l)||0,f)});function xB(s){return ar(s,z)}function oc(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new fn(a);var f=function(){var g=arguments,x=l?l.apply(this,g):g[0],A=f.cache;if(A.has(x))return A.get(x);var _=s.apply(this,g);return f.cache=A.set(x,_)||A,_};return f.cache=new(oc.Cache||sr),f}oc.Cache=sr;function ac(s){if(typeof s!="function")throw new fn(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function wB(s){return WS(2,s)}var SB=lF(function(s,l){l=l.length==1&&Ae(l[0])?et(l[0],Xt(we())):et(xt(l,1),Xt(we()));var f=l.length;return _e(function(g){for(var x=-1,A=At(g.length,f);++x<A;)g[x]=l[x].call(this,g[x]);return Kt(s,this,g)})}),ym=_e(function(s,l){var f=jr(l,$s(ym));return ar(s,P,n,l,f)}),HS=_e(function(s,l){var f=jr(l,$s(HS));return ar(s,R,n,l,f)}),TB=lr(function(s,l){return ar(s,j,n,n,n,l)});function EB(s,l){if(typeof s!="function")throw new fn(a);return l=l===n?l:Me(l),_e(s,l)}function CB(s,l){if(typeof s!="function")throw new fn(a);return l=l==null?0:mt(Me(l),0),_e(function(f){var g=f[l],x=Ur(f,0,l);return g&&kr(x,g),Kt(s,this,x)})}function PB(s,l,f){var g=!0,x=!0;if(typeof s!="function")throw new fn(a);return st(f)&&(g="leading"in f?!!f.leading:g,x="trailing"in f?!!f.trailing:x),YS(s,l,{leading:g,maxWait:l,trailing:x})}function AB(s){return BS(s,1)}function MB(s,l){return ym(tm(l),s)}function OB(){if(!arguments.length)return[];var s=arguments[0];return Ae(s)?s:[s]}function _B(s){return hn(s,y)}function IB(s,l){return l=typeof l=="function"?l:n,hn(s,y,l)}function DB(s){return hn(s,m|y)}function $B(s,l){return l=typeof l=="function"?l:n,hn(s,m|y,l)}function RB(s,l){return l==null||R2(s,l,gt(l))}function Tn(s,l){return s===l||s!==s&&l!==l}var NB=Ql(Uh),LB=Ql(function(s,l){return s>=l}),Di=V2(function(){return arguments}())?V2:function(s){return ot(s)&&Ue.call(s,"callee")&&!P2.call(s,"callee")},Ae=B.isArray,kB=a2?Xt(a2):Gj;function Bt(s){return s!=null&&lc(s.length)&&!ur(s)}function ct(s){return ot(s)&&Bt(s)}function jB(s){return s===!0||s===!1||ot(s)&&It(s)==ue}var zr=J3||Mm,FB=l2?Xt(l2):Yj;function VB(s){return ot(s)&&s.nodeType===1&&!Qo(s)}function BB(s){if(s==null)return!0;if(Bt(s)&&(Ae(s)||typeof s=="string"||typeof s.splice=="function"||zr(s)||Rs(s)||Di(s)))return!s.length;var l=Mt(s);if(l==ke||l==qt)return!s.size;if(Zo(s))return!Yh(s).length;for(var f in s)if(Ue.call(s,f))return!1;return!0}function WB(s,l){return qo(s,l)}function UB(s,l,f){f=typeof f=="function"?f:n;var g=f?f(s,l):n;return g===n?qo(s,l,n,f):!!g}function vm(s){if(!ot(s))return!1;var l=It(s);return l==Le||l==xe||typeof s.message=="string"&&typeof s.name=="string"&&!Qo(s)}function zB(s){return typeof s=="number"&&M2(s)}function ur(s){if(!st(s))return!1;var l=It(s);return l==se||l==pe||l==he||l==xl}function qS(s){return typeof s=="number"&&s==Me(s)}function lc(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=W}function st(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function ot(s){return s!=null&&typeof s=="object"}var KS=c2?Xt(c2):qj;function GB(s,l){return s===l||Gh(s,l,lm(l))}function YB(s,l,f){return f=typeof f=="function"?f:n,Gh(s,l,lm(l),f)}function HB(s){return XS(s)&&s!=+s}function qB(s){if(IF(s))throw new Pe(o);return B2(s)}function KB(s){return s===null}function XB(s){return s==null}function XS(s){return typeof s=="number"||ot(s)&&It(s)==ft}function Qo(s){if(!ot(s)||It(s)!=dt)return!1;var l=Nl(s);if(l===null)return!0;var f=Ue.call(l,"constructor")&&l.constructor;return typeof f=="function"&&f instanceof f&&Il.call(f)==Y3}var bm=u2?Xt(u2):Kj;function ZB(s){return qS(s)&&s>=-9007199254740991&&s<=W}var ZS=f2?Xt(f2):Xj;function cc(s){return typeof s=="string"||!Ae(s)&&ot(s)&&It(s)==bn}function Jt(s){return typeof s=="symbol"||ot(s)&&It(s)==Ti}var Rs=d2?Xt(d2):Zj;function JB(s){return s===n}function QB(s){return ot(s)&&Mt(s)==Nr}function e8(s){return ot(s)&&It(s)==Sl}var t8=Ql(Hh),n8=Ql(function(s,l){return s<=l});function JS(s){if(!s)return[];if(Bt(s))return cc(s)?wn(s):Vt(s);if(Vo&&s[Vo])return R3(s[Vo]());var l=Mt(s),f=l==ke?Rh:l==qt?Ml:Ns;return f(s)}function fr(s){if(!s)return s===0?s:0;if(s=gn(s),s===N||s===-1/0){var l=s<0?-1:1;return l*q}return s===s?s:0}function Me(s){var l=fr(s),f=l%1;return l===l?f?l-f:l:0}function QS(s){return s?Mi(Me(s),0,V):0}function gn(s){if(typeof s=="number")return s;if(Jt(s))return O;if(st(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=st(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=v2(s);var f=kk.test(s);return f||Fk.test(s)?y3(s.slice(2),f?2:8):Lk.test(s)?O:+s}function eT(s){return Wn(s,Wt(s))}function r8(s){return s?Mi(Me(s),-9007199254740991,W):s===0?s:0}function Be(s){return s==null?"":Zt(s)}var i8=Is(function(s,l){if(Zo(l)||Bt(l)){Wn(l,gt(l),s);return}for(var f in l)Ue.call(l,f)&&Go(s,f,l[f])}),tT=Is(function(s,l){Wn(l,Wt(l),s)}),uc=Is(function(s,l,f,g){Wn(l,Wt(l),s,g)}),s8=Is(function(s,l,f,g){Wn(l,gt(l),s,g)}),o8=lr(Vh);function a8(s,l){var f=_s(s);return l==null?f:$2(f,l)}var l8=_e(function(s,l){s=Ge(s);var f=-1,g=l.length,x=g>2?l[2]:n;for(x&&Dt(l[0],l[1],x)&&(g=1);++f<g;)for(var A=l[f],_=Wt(A),D=-1,F=_.length;++D<F;){var Y=_[D],H=s[Y];(H===n||Tn(H,As[Y])&&!Ue.call(s,Y))&&(s[Y]=A[Y])}return s}),c8=_e(function(s){return s.push(n,vS),Kt(nT,n,s)});function u8(s,l){return m2(s,we(l,3),Bn)}function f8(s,l){return m2(s,we(l,3),Wh)}function d8(s,l){return s==null?s:Bh(s,we(l,3),Wt)}function h8(s,l){return s==null?s:j2(s,we(l,3),Wt)}function m8(s,l){return s&&Bn(s,we(l,3))}function p8(s,l){return s&&Wh(s,we(l,3))}function g8(s){return s==null?[]:Gl(s,gt(s))}function y8(s){return s==null?[]:Gl(s,Wt(s))}function xm(s,l,f){var g=s==null?n:Oi(s,l);return g===n?f:g}function v8(s,l){return s!=null&&wS(s,l,Bj)}function wm(s,l){return s!=null&&wS(s,l,Wj)}var b8=hS(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),s[l]=f},Tm(Ut)),x8=hS(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),Ue.call(s,l)?s[l].push(f):s[l]=[f]},we),w8=_e(Ho);function gt(s){return Bt(s)?I2(s):Yh(s)}function Wt(s){return Bt(s)?I2(s,!0):Jj(s)}function S8(s,l){var f={};return l=we(l,3),Bn(s,function(g,x,A){or(f,l(g,x,A),g)}),f}function T8(s,l){var f={};return l=we(l,3),Bn(s,function(g,x,A){or(f,x,l(g,x,A))}),f}var E8=Is(function(s,l,f){Yl(s,l,f)}),nT=Is(function(s,l,f,g){Yl(s,l,f,g)}),C8=lr(function(s,l){var f={};if(s==null)return f;var g=!1;l=et(l,function(A){return A=Wr(A,s),g||(g=A.length>1),A}),Wn(s,om(s),f),g&&(f=hn(f,m|p|y,bF));for(var x=l.length;x--;)Jh(f,l[x]);return f});function P8(s,l){return rT(s,ac(we(l)))}var A8=lr(function(s,l){return s==null?{}:eF(s,l)});function rT(s,l){if(s==null)return{};var f=et(om(s),function(g){return[g]});return l=we(l),q2(s,f,function(g,x){return l(g,x[0])})}function M8(s,l,f){l=Wr(l,s);var g=-1,x=l.length;for(x||(x=1,s=n);++g<x;){var A=s==null?n:s[Un(l[g])];A===n&&(g=x,A=f),s=ur(A)?A.call(s):A}return s}function O8(s,l,f){return s==null?s:Ko(s,l,f)}function _8(s,l,f,g){return g=typeof g=="function"?g:n,s==null?s:Ko(s,l,f,g)}var iT=gS(gt),sT=gS(Wt);function I8(s,l,f){var g=Ae(s),x=g||zr(s)||Rs(s);if(l=we(l,4),f==null){var A=s&&s.constructor;x?f=g?new A:[]:st(s)?f=ur(A)?_s(Nl(s)):{}:f={}}return(x?un:Bn)(s,function(_,D,F){return l(f,_,D,F)}),f}function D8(s,l){return s==null?!0:Jh(s,l)}function $8(s,l,f){return s==null?s:Q2(s,l,tm(f))}function R8(s,l,f,g){return g=typeof g=="function"?g:n,s==null?s:Q2(s,l,tm(f),g)}function Ns(s){return s==null?[]:$h(s,gt(s))}function N8(s){return s==null?[]:$h(s,Wt(s))}function L8(s,l,f){return f===n&&(f=l,l=n),f!==n&&(f=gn(f),f=f===f?f:0),l!==n&&(l=gn(l),l=l===l?l:0),Mi(gn(s),l,f)}function k8(s,l,f){return l=fr(l),f===n?(f=l,l=0):f=fr(f),s=gn(s),Uj(s,l,f)}function j8(s,l,f){if(f&&typeof f!="boolean"&&Dt(s,l,f)&&(l=f=n),f===n&&(typeof l=="boolean"?(f=l,l=n):typeof s=="boolean"&&(f=s,s=n)),s===n&&l===n?(s=0,l=1):(s=fr(s),l===n?(l=s,s=0):l=fr(l)),s>l){var g=s;s=l,l=g}if(f||s%1||l%1){var x=O2();return At(s+x*(l-s+g3("1e-"+((x+"").length-1))),l)}return Kh(s,l)}var F8=Ds(function(s,l,f){return l=l.toLowerCase(),s+(f?oT(l):l)});function oT(s){return Sm(Be(s).toLowerCase())}function aT(s){return s=Be(s),s&&s.replace(Bk,O3).replace(o3,"")}function V8(s,l,f){s=Be(s),l=Zt(l);var g=s.length;f=f===n?g:Mi(Me(f),0,g);var x=f;return f-=l.length,f>=0&&s.slice(f,x)==l}function B8(s){return s=Be(s),s&&wk.test(s)?s.replace(jw,_3):s}function W8(s){return s=Be(s),s&&Ak.test(s)?s.replace(yh,"\\$&"):s}var U8=Ds(function(s,l,f){return s+(f?"-":"")+l.toLowerCase()}),z8=Ds(function(s,l,f){return s+(f?" ":"")+l.toLowerCase()}),G8=uS("toLowerCase");function Y8(s,l,f){s=Be(s),l=Me(l);var g=l?Cs(s):0;if(!l||g>=l)return s;var x=(l-g)/2;return Jl(Fl(x),f)+s+Jl(jl(x),f)}function H8(s,l,f){s=Be(s),l=Me(l);var g=l?Cs(s):0;return l&&g<l?s+Jl(l-g,f):s}function q8(s,l,f){s=Be(s),l=Me(l);var g=l?Cs(s):0;return l&&g<l?Jl(l-g,f)+s:s}function K8(s,l,f){return f||l==null?l=0:l&&(l=+l),nj(Be(s).replace(vh,""),l||0)}function X8(s,l,f){return(f?Dt(s,l,f):l===n)?l=1:l=Me(l),Xh(Be(s),l)}function Z8(){var s=arguments,l=Be(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var J8=Ds(function(s,l,f){return s+(f?"_":"")+l.toLowerCase()});function Q8(s,l,f){return f&&typeof f!="number"&&Dt(s,l,f)&&(l=f=n),f=f===n?V:f>>>0,f?(s=Be(s),s&&(typeof l=="string"||l!=null&&!bm(l))&&(l=Zt(l),!l&&Es(s))?Ur(wn(s),0,f):s.split(l,f)):[]}var e9=Ds(function(s,l,f){return s+(f?" ":"")+Sm(l)});function t9(s,l,f){return s=Be(s),f=f==null?0:Mi(Me(f),0,s.length),l=Zt(l),s.slice(f,f+l.length)==l}function n9(s,l,f){var g=T.templateSettings;f&&Dt(s,l,f)&&(l=n),s=Be(s),l=uc({},l,g,yS);var x=uc({},l.imports,g.imports,yS),A=gt(x),_=$h(x,A),D,F,Y=0,H=l.interpolate||Tl,K="__p += '",le=Nh((l.escape||Tl).source+"|"+H.source+"|"+(H===Fw?Nk:Tl).source+"|"+(l.evaluate||Tl).source+"|$","g"),me="//# sourceURL="+(Ue.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++f3+"]")+`
|
|
635
|
+
`;s.replace(le,function(Ce,$e,Ne,Qt,$t,en){return Ne||(Ne=Qt),K+=s.slice(Y,en).replace(Wk,I3),$e&&(D=!0,K+=`' +
|
|
636
636
|
__e(`+$e+`) +
|
|
637
|
-
'`),$t&&(
|
|
637
|
+
'`),$t&&(F=!0,K+=`';
|
|
638
638
|
`+$t+`;
|
|
639
639
|
__p += '`),Ne&&(K+=`' +
|
|
640
640
|
((__t = (`+Ne+`)) == null ? '' : __t) +
|
|
@@ -642,13 +642,13 @@ __p += '`),Ne&&(K+=`' +
|
|
|
642
642
|
`;var Ee=Ue.call(l,"variable")&&l.variable;if(!Ee)K=`with (obj) {
|
|
643
643
|
`+K+`
|
|
644
644
|
}
|
|
645
|
-
`;else if(
|
|
645
|
+
`;else if($k.test(Ee))throw new Pe(c);K=(F?K.replace(yk,""):K).replace(vk,"$1").replace(bk,"$1;"),K="function("+(Ee||"obj")+`) {
|
|
646
646
|
`+(Ee?"":`obj || (obj = {});
|
|
647
|
-
`)+"var __t, __p = ''"+(D?", __e = _.escape":"")+(
|
|
647
|
+
`)+"var __t, __p = ''"+(D?", __e = _.escape":"")+(F?`, __j = Array.prototype.join;
|
|
648
648
|
function print() { __p += __j.call(arguments, '') }
|
|
649
649
|
`:`;
|
|
650
650
|
`)+K+`return __p
|
|
651
|
-
}`;var Me=cT(function(){return je(P,me+"return "+K).apply(n,_)});if(Me.source=K,vm(Me))throw Me;return Me}function t9(s){return Be(s).toLowerCase()}function n9(s){return Be(s).toUpperCase()}function r9(s,l,f){if(s=Be(s),s&&(f||l===n))return v2(s);if(!s||!(l=Zt(l)))return s;var g=wn(s),x=wn(l),P=b2(g,x),_=x2(g,x)+1;return Ur(g,P,_).join("")}function i9(s,l,f){if(s=Be(s),s&&(f||l===n))return s.slice(0,S2(s)+1);if(!s||!(l=Zt(l)))return s;var g=wn(s),x=x2(g,wn(l))+1;return Ur(g,0,x).join("")}function s9(s,l,f){if(s=Be(s),s&&(f||l===n))return s.replace(vh,"");if(!s||!(l=Zt(l)))return s;var g=wn(s),x=b2(g,wn(l));return Ur(g,x).join("")}function o9(s,l){var f=Q,g=ne;if(st(l)){var x="separator"in l?l.separator:x;f="length"in l?Oe(l.length):f,g="omission"in l?Zt(l.omission):g}s=Be(s);var P=s.length;if(Es(s)){var _=wn(s);P=_.length}if(f>=P)return s;var D=f-Cs(g);if(D<1)return g;var L=_?Ur(_,0,D).join(""):s.slice(0,D);if(x===n)return L+g;if(_&&(D+=L.length-D),bm(x)){if(s.slice(D).search(x)){var Y,H=L;for(x.global||(x=Nh(x.source,Be(Vw.exec(x))+"g")),x.lastIndex=0;Y=x.exec(H);)var K=Y.index;L=L.slice(0,K===n?D:K)}}else if(s.indexOf(Zt(x),D)!=D){var le=L.lastIndexOf(x);le>-1&&(L=L.slice(0,le))}return L+g}function a9(s){return s=Be(s),s&&vk.test(s)?s.replace(kw,L3):s}var l9=Ds(function(s,l,f){return s+(f?" ":"")+l.toUpperCase()}),Sm=uS("toUpperCase");function lT(s,l,f){return s=Be(s),l=f?n:l,l===n?I3(s)?F3(s):S3(s):s.match(l)||[]}var cT=_e(function(s,l){try{return Kt(s,n,l)}catch(f){return vm(f)?f:new Pe(f)}}),c9=lr(function(s,l){return un(l,function(f){f=Un(f),or(s,f,gm(s[f],s))}),s});function u9(s){var l=s==null?0:s.length,f=we();return s=l?et(s,function(g){if(typeof g[1]!="function")throw new fn(o);return[f(g[0]),g[1]]}):[],_e(function(g){for(var x=-1;++x<l;){var P=s[x];if(Kt(P[0],this,g))return Kt(P[1],this,g)}})}function f9(s){return Lj(hn(s,m))}function Tm(s){return function(){return s}}function d9(s,l){return s==null||s!==s?l:s}var h9=dS(),m9=dS(!0);function Ut(s){return s}function Em(s){return W2(typeof s=="function"?s:hn(s,m))}function p9(s){return z2(hn(s,m))}function g9(s,l){return G2(s,hn(l,m))}var y9=_e(function(s,l){return function(f){return Ho(f,s,l)}}),v9=_e(function(s,l){return function(f){return Ho(s,f,l)}});function Cm(s,l,f){var g=gt(l),x=Gl(l,g);f==null&&!(st(l)&&(x.length||!g.length))&&(f=l,l=s,s=this,x=Gl(l,gt(l)));var P=!(st(f)&&"chain"in f)||!!f.chain,_=ur(s);return un(x,function(D){var L=l[D];s[D]=L,_&&(s.prototype[D]=function(){var Y=this.__chain__;if(P||Y){var H=s(this.__wrapped__),K=H.__actions__=Vt(this.__actions__);return K.push({func:L,args:arguments,thisArg:s}),H.__chain__=Y,H}return L.apply(s,kr([this.value()],arguments))})}),s}function b9(){return bt._===this&&(bt._=G3),this}function Pm(){}function x9(s){return s=Oe(s),_e(function(l){return Y2(l,s)})}var w9=rm(et),S9=rm(h2),T9=rm(Oh);function uT(s){return um(s)?Mh(Un(s)):Qj(s)}function E9(s){return function(l){return s==null?n:Mi(s,l)}}var C9=mS(),P9=mS(!0);function Am(){return[]}function Om(){return!1}function A9(){return{}}function O9(){return""}function M9(){return!0}function _9(s,l){if(s=Oe(s),s<1||s>W)return[];var f=k,g=At(s,k);l=we(l),s-=k;for(var x=Dh(g,l);++f<s;)l(f);return x}function I9(s){return Ae(s)?et(s,Un):Jt(s)?[s]:Vt(_S(Be(s)))}function D9(s){var l=++U3;return Be(s)+l}var $9=Zl(function(s,l){return s+l},0),R9=im("ceil"),N9=Zl(function(s,l){return s/l},1),L9=im("floor");function k9(s){return s&&s.length?zl(s,Ut,Uh):n}function j9(s,l){return s&&s.length?zl(s,we(l,2),Uh):n}function F9(s){return g2(s,Ut)}function V9(s,l){return g2(s,we(l,2))}function B9(s){return s&&s.length?zl(s,Ut,Hh):n}function W9(s,l){return s&&s.length?zl(s,we(l,2),Hh):n}var U9=Zl(function(s,l){return s*l},1),z9=im("round"),G9=Zl(function(s,l){return s-l},0);function Y9(s){return s&&s.length?Ih(s,Ut):0}function H9(s,l){return s&&s.length?Ih(s,we(l,2)):0}return T.after=pB,T.ary=BS,T.assign=n8,T.assignIn=tT,T.assignInWith=uc,T.assignWith=r8,T.at=i8,T.before=WS,T.bind=gm,T.bindAll=c9,T.bindKey=US,T.castArray=AB,T.chain=jS,T.chunk=LF,T.compact=kF,T.concat=jF,T.cond=u9,T.conforms=f9,T.constant=Tm,T.countBy=YV,T.create=s8,T.curry=zS,T.curryRight=GS,T.debounce=YS,T.defaults=o8,T.defaultsDeep=a8,T.defer=gB,T.delay=yB,T.difference=FF,T.differenceBy=VF,T.differenceWith=BF,T.drop=WF,T.dropRight=UF,T.dropRightWhile=zF,T.dropWhile=GF,T.fill=YF,T.filter=qV,T.flatMap=ZV,T.flatMapDeep=JV,T.flatMapDepth=QV,T.flatten=RS,T.flattenDeep=HF,T.flattenDepth=qF,T.flip=vB,T.flow=h9,T.flowRight=m9,T.fromPairs=KF,T.functions=m8,T.functionsIn=p8,T.groupBy=eB,T.initial=ZF,T.intersection=JF,T.intersectionBy=QF,T.intersectionWith=eV,T.invert=y8,T.invertBy=v8,T.invokeMap=nB,T.iteratee=Em,T.keyBy=rB,T.keys=gt,T.keysIn=Wt,T.map=ic,T.mapKeys=x8,T.mapValues=w8,T.matches=p9,T.matchesProperty=g9,T.memoize=oc,T.merge=S8,T.mergeWith=nT,T.method=y9,T.methodOf=v9,T.mixin=Cm,T.negate=ac,T.nthArg=x9,T.omit=T8,T.omitBy=E8,T.once=bB,T.orderBy=iB,T.over=w9,T.overArgs=xB,T.overEvery=S9,T.overSome=T9,T.partial=ym,T.partialRight=HS,T.partition=sB,T.pick=C8,T.pickBy=rT,T.property=uT,T.propertyOf=E9,T.pull=iV,T.pullAll=LS,T.pullAllBy=sV,T.pullAllWith=oV,T.pullAt=aV,T.range=C9,T.rangeRight=P9,T.rearg=wB,T.reject=lB,T.remove=lV,T.rest=SB,T.reverse=mm,T.sampleSize=uB,T.set=A8,T.setWith=O8,T.shuffle=fB,T.slice=cV,T.sortBy=mB,T.sortedUniq=gV,T.sortedUniqBy=yV,T.split=Z8,T.spread=TB,T.tail=vV,T.take=bV,T.takeRight=xV,T.takeRightWhile=wV,T.takeWhile=SV,T.tap=kV,T.throttle=EB,T.thru=rc,T.toArray=JS,T.toPairs=iT,T.toPairsIn=sT,T.toPath=I9,T.toPlainObject=eT,T.transform=M8,T.unary=CB,T.union=TV,T.unionBy=EV,T.unionWith=CV,T.uniq=PV,T.uniqBy=AV,T.uniqWith=OV,T.unset=_8,T.unzip=pm,T.unzipWith=kS,T.update=I8,T.updateWith=D8,T.values=Ns,T.valuesIn=$8,T.without=MV,T.words=lT,T.wrap=PB,T.xor=_V,T.xorBy=IV,T.xorWith=DV,T.zip=$V,T.zipObject=RV,T.zipObjectDeep=NV,T.zipWith=LV,T.entries=iT,T.entriesIn=sT,T.extend=tT,T.extendWith=uc,Cm(T,T),T.add=$9,T.attempt=cT,T.camelCase=k8,T.capitalize=oT,T.ceil=R9,T.clamp=R8,T.clone=OB,T.cloneDeep=_B,T.cloneDeepWith=IB,T.cloneWith=MB,T.conformsTo=DB,T.deburr=aT,T.defaultTo=d9,T.divide=N9,T.endsWith=j8,T.eq=Tn,T.escape=F8,T.escapeRegExp=V8,T.every=HV,T.find=KV,T.findIndex=DS,T.findKey=l8,T.findLast=XV,T.findLastIndex=$S,T.findLastKey=c8,T.floor=L9,T.forEach=FS,T.forEachRight=VS,T.forIn=u8,T.forInRight=f8,T.forOwn=d8,T.forOwnRight=h8,T.get=xm,T.gt=$B,T.gte=RB,T.has=g8,T.hasIn=wm,T.head=NS,T.identity=Ut,T.includes=tB,T.indexOf=XF,T.inRange=N8,T.invoke=b8,T.isArguments=Di,T.isArray=Ae,T.isArrayBuffer=NB,T.isArrayLike=Bt,T.isArrayLikeObject=ct,T.isBoolean=LB,T.isBuffer=zr,T.isDate=kB,T.isElement=jB,T.isEmpty=FB,T.isEqual=VB,T.isEqualWith=BB,T.isError=vm,T.isFinite=WB,T.isFunction=ur,T.isInteger=qS,T.isLength=lc,T.isMap=KS,T.isMatch=UB,T.isMatchWith=zB,T.isNaN=GB,T.isNative=YB,T.isNil=qB,T.isNull=HB,T.isNumber=XS,T.isObject=st,T.isObjectLike=ot,T.isPlainObject=Qo,T.isRegExp=bm,T.isSafeInteger=KB,T.isSet=ZS,T.isString=cc,T.isSymbol=Jt,T.isTypedArray=Rs,T.isUndefined=XB,T.isWeakMap=ZB,T.isWeakSet=JB,T.join=tV,T.kebabCase=B8,T.last=pn,T.lastIndexOf=nV,T.lowerCase=W8,T.lowerFirst=U8,T.lt=QB,T.lte=e8,T.max=k9,T.maxBy=j9,T.mean=F9,T.meanBy=V9,T.min=B9,T.minBy=W9,T.stubArray=Am,T.stubFalse=Om,T.stubObject=A9,T.stubString=O9,T.stubTrue=M9,T.multiply=U9,T.nth=rV,T.noConflict=b9,T.noop=Pm,T.now=sc,T.pad=z8,T.padEnd=G8,T.padStart=Y8,T.parseInt=H8,T.random=L8,T.reduce=oB,T.reduceRight=aB,T.repeat=q8,T.replace=K8,T.result=P8,T.round=z9,T.runInContext=N,T.sample=cB,T.size=dB,T.snakeCase=X8,T.some=hB,T.sortedIndex=uV,T.sortedIndexBy=fV,T.sortedIndexOf=dV,T.sortedLastIndex=hV,T.sortedLastIndexBy=mV,T.sortedLastIndexOf=pV,T.startCase=J8,T.startsWith=Q8,T.subtract=G9,T.sum=Y9,T.sumBy=H9,T.template=e9,T.times=_9,T.toFinite=fr,T.toInteger=Oe,T.toLength=QS,T.toLower=t9,T.toNumber=gn,T.toSafeInteger=t8,T.toString=Be,T.toUpper=n9,T.trim=r9,T.trimEnd=i9,T.trimStart=s9,T.truncate=o9,T.unescape=a9,T.uniqueId=D9,T.upperCase=l9,T.upperFirst=Sm,T.each=FS,T.eachRight=VS,T.first=NS,Cm(T,function(){var s={};return Bn(T,function(l,f){Ue.call(T.prototype,f)||(s[f]=l)}),s}(),{chain:!1}),T.VERSION=r,un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){T[s].placeholder=T}),un(["drop","take"],function(s,l){Re.prototype[s]=function(f){f=f===n?1:mt(Oe(f),0);var g=this.__filtered__&&!l?new Re(this):this.clone();return g.__filtered__?g.__takeCount__=At(f,g.__takeCount__):g.__views__.push({size:At(f,k),type:s+(g.__dir__<0?"Right":"")}),g},Re.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),un(["filter","map","takeWhile"],function(s,l){var f=l+1,g=f==de||f==oe;Re.prototype[s]=function(x){var P=this.clone();return P.__iteratees__.push({iteratee:we(x,3),type:f}),P.__filtered__=P.__filtered__||g,P}}),un(["head","last"],function(s,l){var f="take"+(l?"Right":"");Re.prototype[s]=function(){return this[f](1).value()[0]}}),un(["initial","tail"],function(s,l){var f="drop"+(l?"":"Right");Re.prototype[s]=function(){return this.__filtered__?new Re(this):this[f](1)}}),Re.prototype.compact=function(){return this.filter(Ut)},Re.prototype.find=function(s){return this.filter(s).head()},Re.prototype.findLast=function(s){return this.reverse().find(s)},Re.prototype.invokeMap=_e(function(s,l){return typeof s=="function"?new Re(this):this.map(function(f){return Ho(f,s,l)})}),Re.prototype.reject=function(s){return this.filter(ac(we(s)))},Re.prototype.slice=function(s,l){s=Oe(s);var f=this;return f.__filtered__&&(s>0||l<0)?new Re(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),l!==n&&(l=Oe(l),f=l<0?f.dropRight(-l):f.take(l-s)),f)},Re.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Re.prototype.toArray=function(){return this.take(k)},Bn(Re.prototype,function(s,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),x=T[g?"take"+(l=="last"?"Right":""):l],P=g||/^find/.test(l);x&&(T.prototype[l]=function(){var _=this.__wrapped__,D=g?[1]:arguments,L=_ instanceof Re,Y=D[0],H=L||Ae(_),K=function($e){var Ne=x.apply(T,kr([$e],D));return g&&le?Ne[0]:Ne};H&&f&&typeof Y=="function"&&Y.length!=1&&(L=H=!1);var le=this.__chain__,me=!!this.__actions__.length,Ee=P&&!le,Me=L&&!me;if(!P&&H){_=Me?_:new Re(this);var Ce=s.apply(_,D);return Ce.__actions__.push({func:rc,args:[K],thisArg:n}),new dn(Ce,le)}return Ee&&Me?s.apply(this,D):(Ce=this.thru(K),Ee?g?Ce.value()[0]:Ce.value():Ce)})}),un(["pop","push","shift","sort","splice","unshift"],function(s){var l=Ml[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",g=/^(?:pop|shift)$/.test(s);T.prototype[s]=function(){var x=arguments;if(g&&!this.__chain__){var P=this.value();return l.apply(Ae(P)?P:[],x)}return this[f](function(_){return l.apply(Ae(_)?_:[],x)})}}),Bn(Re.prototype,function(s,l){var f=T[l];if(f){var g=f.name+"";Ue.call(Ms,g)||(Ms[g]=[]),Ms[g].push({name:l,func:f})}}),Ms[Xl(n,w).name]=[{name:"wrapper",func:n}],Re.prototype.clone=aj,Re.prototype.reverse=lj,Re.prototype.value=cj,T.prototype.at=jV,T.prototype.chain=FV,T.prototype.commit=VV,T.prototype.next=BV,T.prototype.plant=UV,T.prototype.reverse=zV,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=GV,T.prototype.first=T.prototype.head,Vo&&(T.prototype[Vo]=WV),T},Ps=V3();Ei?((Ei.exports=Ps)._=Ps,Eh._=Ps):bt._=Ps}).call(fD)}(fo,fo.exports)),fo.exports}var yf=dD();const vf=I.createContext({});function bf(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const xf=typeof window<"u",Ev=xf?I.useLayoutEffect:I.useEffect,ka=I.createContext(null),wf=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class hD extends X.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=r instanceof HTMLElement&&r.offsetWidth||0,a=this.props.sizeRef.current;a.height=n.offsetHeight||0,a.width=n.offsetWidth||0,a.top=n.offsetTop,a.left=n.offsetLeft,a.right=i-a.width-a.left}return null}componentDidUpdate(){}render(){return this.props.children}}function mD({children:e,isPresent:t,anchorX:n}){const r=I.useId(),i=I.useRef(null),a=I.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=I.useContext(wf);return I.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:h,right:m}=a.current;if(t||!i.current||!c||!u)return;const p=n==="left"?`left: ${h}`:`right: ${m}`;i.current.dataset.motionPopId=r;const y=document.createElement("style");return o&&(y.nonce=o),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
651
|
+
}`;var Oe=cT(function(){return je(A,me+"return "+K).apply(n,_)});if(Oe.source=K,vm(Oe))throw Oe;return Oe}function r9(s){return Be(s).toLowerCase()}function i9(s){return Be(s).toUpperCase()}function s9(s,l,f){if(s=Be(s),s&&(f||l===n))return v2(s);if(!s||!(l=Zt(l)))return s;var g=wn(s),x=wn(l),A=b2(g,x),_=x2(g,x)+1;return Ur(g,A,_).join("")}function o9(s,l,f){if(s=Be(s),s&&(f||l===n))return s.slice(0,S2(s)+1);if(!s||!(l=Zt(l)))return s;var g=wn(s),x=x2(g,wn(l))+1;return Ur(g,0,x).join("")}function a9(s,l,f){if(s=Be(s),s&&(f||l===n))return s.replace(vh,"");if(!s||!(l=Zt(l)))return s;var g=wn(s),x=b2(g,wn(l));return Ur(g,x).join("")}function l9(s,l){var f=Z,g=te;if(st(l)){var x="separator"in l?l.separator:x;f="length"in l?Me(l.length):f,g="omission"in l?Zt(l.omission):g}s=Be(s);var A=s.length;if(Es(s)){var _=wn(s);A=_.length}if(f>=A)return s;var D=f-Cs(g);if(D<1)return g;var F=_?Ur(_,0,D).join(""):s.slice(0,D);if(x===n)return F+g;if(_&&(D+=F.length-D),bm(x)){if(s.slice(D).search(x)){var Y,H=F;for(x.global||(x=Nh(x.source,Be(Vw.exec(x))+"g")),x.lastIndex=0;Y=x.exec(H);)var K=Y.index;F=F.slice(0,K===n?D:K)}}else if(s.indexOf(Zt(x),D)!=D){var le=F.lastIndexOf(x);le>-1&&(F=F.slice(0,le))}return F+g}function c9(s){return s=Be(s),s&&xk.test(s)?s.replace(kw,j3):s}var u9=Ds(function(s,l,f){return s+(f?" ":"")+l.toUpperCase()}),Sm=uS("toUpperCase");function lT(s,l,f){return s=Be(s),l=f?n:l,l===n?$3(s)?B3(s):E3(s):s.match(l)||[]}var cT=_e(function(s,l){try{return Kt(s,n,l)}catch(f){return vm(f)?f:new Pe(f)}}),f9=lr(function(s,l){return un(l,function(f){f=Un(f),or(s,f,gm(s[f],s))}),s});function d9(s){var l=s==null?0:s.length,f=we();return s=l?et(s,function(g){if(typeof g[1]!="function")throw new fn(a);return[f(g[0]),g[1]]}):[],_e(function(g){for(var x=-1;++x<l;){var A=s[x];if(Kt(A[0],this,g))return Kt(A[1],this,g)}})}function h9(s){return jj(hn(s,m))}function Tm(s){return function(){return s}}function m9(s,l){return s==null||s!==s?l:s}var p9=dS(),g9=dS(!0);function Ut(s){return s}function Em(s){return W2(typeof s=="function"?s:hn(s,m))}function y9(s){return z2(hn(s,m))}function v9(s,l){return G2(s,hn(l,m))}var b9=_e(function(s,l){return function(f){return Ho(f,s,l)}}),x9=_e(function(s,l){return function(f){return Ho(s,f,l)}});function Cm(s,l,f){var g=gt(l),x=Gl(l,g);f==null&&!(st(l)&&(x.length||!g.length))&&(f=l,l=s,s=this,x=Gl(l,gt(l)));var A=!(st(f)&&"chain"in f)||!!f.chain,_=ur(s);return un(x,function(D){var F=l[D];s[D]=F,_&&(s.prototype[D]=function(){var Y=this.__chain__;if(A||Y){var H=s(this.__wrapped__),K=H.__actions__=Vt(this.__actions__);return K.push({func:F,args:arguments,thisArg:s}),H.__chain__=Y,H}return F.apply(s,kr([this.value()],arguments))})}),s}function w9(){return bt._===this&&(bt._=H3),this}function Pm(){}function S9(s){return s=Me(s),_e(function(l){return Y2(l,s)})}var T9=rm(et),E9=rm(h2),C9=rm(Mh);function uT(s){return um(s)?Oh(Un(s)):tF(s)}function P9(s){return function(l){return s==null?n:Oi(s,l)}}var A9=mS(),M9=mS(!0);function Am(){return[]}function Mm(){return!1}function O9(){return{}}function _9(){return""}function I9(){return!0}function D9(s,l){if(s=Me(s),s<1||s>W)return[];var f=V,g=At(s,V);l=we(l),s-=V;for(var x=Dh(g,l);++f<s;)l(f);return x}function $9(s){return Ae(s)?et(s,Un):Jt(s)?[s]:Vt(_S(Be(s)))}function R9(s){var l=++G3;return Be(s)+l}var N9=Zl(function(s,l){return s+l},0),L9=im("ceil"),k9=Zl(function(s,l){return s/l},1),j9=im("floor");function F9(s){return s&&s.length?zl(s,Ut,Uh):n}function V9(s,l){return s&&s.length?zl(s,we(l,2),Uh):n}function B9(s){return g2(s,Ut)}function W9(s,l){return g2(s,we(l,2))}function U9(s){return s&&s.length?zl(s,Ut,Hh):n}function z9(s,l){return s&&s.length?zl(s,we(l,2),Hh):n}var G9=Zl(function(s,l){return s*l},1),Y9=im("round"),H9=Zl(function(s,l){return s-l},0);function q9(s){return s&&s.length?Ih(s,Ut):0}function K9(s,l){return s&&s.length?Ih(s,we(l,2)):0}return T.after=yB,T.ary=BS,T.assign=i8,T.assignIn=tT,T.assignInWith=uc,T.assignWith=s8,T.at=o8,T.before=WS,T.bind=gm,T.bindAll=f9,T.bindKey=US,T.castArray=OB,T.chain=jS,T.chunk=jF,T.compact=FF,T.concat=VF,T.cond=d9,T.conforms=h9,T.constant=Tm,T.countBy=qV,T.create=a8,T.curry=zS,T.curryRight=GS,T.debounce=YS,T.defaults=l8,T.defaultsDeep=c8,T.defer=vB,T.delay=bB,T.difference=BF,T.differenceBy=WF,T.differenceWith=UF,T.drop=zF,T.dropRight=GF,T.dropRightWhile=YF,T.dropWhile=HF,T.fill=qF,T.filter=XV,T.flatMap=QV,T.flatMapDeep=eB,T.flatMapDepth=tB,T.flatten=RS,T.flattenDeep=KF,T.flattenDepth=XF,T.flip=xB,T.flow=p9,T.flowRight=g9,T.fromPairs=ZF,T.functions=g8,T.functionsIn=y8,T.groupBy=nB,T.initial=QF,T.intersection=eV,T.intersectionBy=tV,T.intersectionWith=nV,T.invert=b8,T.invertBy=x8,T.invokeMap=iB,T.iteratee=Em,T.keyBy=sB,T.keys=gt,T.keysIn=Wt,T.map=ic,T.mapKeys=S8,T.mapValues=T8,T.matches=y9,T.matchesProperty=v9,T.memoize=oc,T.merge=E8,T.mergeWith=nT,T.method=b9,T.methodOf=x9,T.mixin=Cm,T.negate=ac,T.nthArg=S9,T.omit=C8,T.omitBy=P8,T.once=wB,T.orderBy=oB,T.over=T9,T.overArgs=SB,T.overEvery=E9,T.overSome=C9,T.partial=ym,T.partialRight=HS,T.partition=aB,T.pick=A8,T.pickBy=rT,T.property=uT,T.propertyOf=P9,T.pull=oV,T.pullAll=LS,T.pullAllBy=aV,T.pullAllWith=lV,T.pullAt=cV,T.range=A9,T.rangeRight=M9,T.rearg=TB,T.reject=uB,T.remove=uV,T.rest=EB,T.reverse=mm,T.sampleSize=dB,T.set=O8,T.setWith=_8,T.shuffle=hB,T.slice=fV,T.sortBy=gB,T.sortedUniq=vV,T.sortedUniqBy=bV,T.split=Q8,T.spread=CB,T.tail=xV,T.take=wV,T.takeRight=SV,T.takeRightWhile=TV,T.takeWhile=EV,T.tap=FV,T.throttle=PB,T.thru=rc,T.toArray=JS,T.toPairs=iT,T.toPairsIn=sT,T.toPath=$9,T.toPlainObject=eT,T.transform=I8,T.unary=AB,T.union=CV,T.unionBy=PV,T.unionWith=AV,T.uniq=MV,T.uniqBy=OV,T.uniqWith=_V,T.unset=D8,T.unzip=pm,T.unzipWith=kS,T.update=$8,T.updateWith=R8,T.values=Ns,T.valuesIn=N8,T.without=IV,T.words=lT,T.wrap=MB,T.xor=DV,T.xorBy=$V,T.xorWith=RV,T.zip=NV,T.zipObject=LV,T.zipObjectDeep=kV,T.zipWith=jV,T.entries=iT,T.entriesIn=sT,T.extend=tT,T.extendWith=uc,Cm(T,T),T.add=N9,T.attempt=cT,T.camelCase=F8,T.capitalize=oT,T.ceil=L9,T.clamp=L8,T.clone=_B,T.cloneDeep=DB,T.cloneDeepWith=$B,T.cloneWith=IB,T.conformsTo=RB,T.deburr=aT,T.defaultTo=m9,T.divide=k9,T.endsWith=V8,T.eq=Tn,T.escape=B8,T.escapeRegExp=W8,T.every=KV,T.find=ZV,T.findIndex=DS,T.findKey=u8,T.findLast=JV,T.findLastIndex=$S,T.findLastKey=f8,T.floor=j9,T.forEach=FS,T.forEachRight=VS,T.forIn=d8,T.forInRight=h8,T.forOwn=m8,T.forOwnRight=p8,T.get=xm,T.gt=NB,T.gte=LB,T.has=v8,T.hasIn=wm,T.head=NS,T.identity=Ut,T.includes=rB,T.indexOf=JF,T.inRange=k8,T.invoke=w8,T.isArguments=Di,T.isArray=Ae,T.isArrayBuffer=kB,T.isArrayLike=Bt,T.isArrayLikeObject=ct,T.isBoolean=jB,T.isBuffer=zr,T.isDate=FB,T.isElement=VB,T.isEmpty=BB,T.isEqual=WB,T.isEqualWith=UB,T.isError=vm,T.isFinite=zB,T.isFunction=ur,T.isInteger=qS,T.isLength=lc,T.isMap=KS,T.isMatch=GB,T.isMatchWith=YB,T.isNaN=HB,T.isNative=qB,T.isNil=XB,T.isNull=KB,T.isNumber=XS,T.isObject=st,T.isObjectLike=ot,T.isPlainObject=Qo,T.isRegExp=bm,T.isSafeInteger=ZB,T.isSet=ZS,T.isString=cc,T.isSymbol=Jt,T.isTypedArray=Rs,T.isUndefined=JB,T.isWeakMap=QB,T.isWeakSet=e8,T.join=rV,T.kebabCase=U8,T.last=pn,T.lastIndexOf=iV,T.lowerCase=z8,T.lowerFirst=G8,T.lt=t8,T.lte=n8,T.max=F9,T.maxBy=V9,T.mean=B9,T.meanBy=W9,T.min=U9,T.minBy=z9,T.stubArray=Am,T.stubFalse=Mm,T.stubObject=O9,T.stubString=_9,T.stubTrue=I9,T.multiply=G9,T.nth=sV,T.noConflict=w9,T.noop=Pm,T.now=sc,T.pad=Y8,T.padEnd=H8,T.padStart=q8,T.parseInt=K8,T.random=j8,T.reduce=lB,T.reduceRight=cB,T.repeat=X8,T.replace=Z8,T.result=M8,T.round=Y9,T.runInContext=L,T.sample=fB,T.size=mB,T.snakeCase=J8,T.some=pB,T.sortedIndex=dV,T.sortedIndexBy=hV,T.sortedIndexOf=mV,T.sortedLastIndex=pV,T.sortedLastIndexBy=gV,T.sortedLastIndexOf=yV,T.startCase=e9,T.startsWith=t9,T.subtract=H9,T.sum=q9,T.sumBy=K9,T.template=n9,T.times=D9,T.toFinite=fr,T.toInteger=Me,T.toLength=QS,T.toLower=r9,T.toNumber=gn,T.toSafeInteger=r8,T.toString=Be,T.toUpper=i9,T.trim=s9,T.trimEnd=o9,T.trimStart=a9,T.truncate=l9,T.unescape=c9,T.uniqueId=R9,T.upperCase=u9,T.upperFirst=Sm,T.each=FS,T.eachRight=VS,T.first=NS,Cm(T,function(){var s={};return Bn(T,function(l,f){Ue.call(T.prototype,f)||(s[f]=l)}),s}(),{chain:!1}),T.VERSION=r,un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){T[s].placeholder=T}),un(["drop","take"],function(s,l){Re.prototype[s]=function(f){f=f===n?1:mt(Me(f),0);var g=this.__filtered__&&!l?new Re(this):this.clone();return g.__filtered__?g.__takeCount__=At(f,g.__takeCount__):g.__views__.push({size:At(f,V),type:s+(g.__dir__<0?"Right":"")}),g},Re.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),un(["filter","map","takeWhile"],function(s,l){var f=l+1,g=f==fe||f==ne;Re.prototype[s]=function(x){var A=this.clone();return A.__iteratees__.push({iteratee:we(x,3),type:f}),A.__filtered__=A.__filtered__||g,A}}),un(["head","last"],function(s,l){var f="take"+(l?"Right":"");Re.prototype[s]=function(){return this[f](1).value()[0]}}),un(["initial","tail"],function(s,l){var f="drop"+(l?"":"Right");Re.prototype[s]=function(){return this.__filtered__?new Re(this):this[f](1)}}),Re.prototype.compact=function(){return this.filter(Ut)},Re.prototype.find=function(s){return this.filter(s).head()},Re.prototype.findLast=function(s){return this.reverse().find(s)},Re.prototype.invokeMap=_e(function(s,l){return typeof s=="function"?new Re(this):this.map(function(f){return Ho(f,s,l)})}),Re.prototype.reject=function(s){return this.filter(ac(we(s)))},Re.prototype.slice=function(s,l){s=Me(s);var f=this;return f.__filtered__&&(s>0||l<0)?new Re(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),l!==n&&(l=Me(l),f=l<0?f.dropRight(-l):f.take(l-s)),f)},Re.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Re.prototype.toArray=function(){return this.take(V)},Bn(Re.prototype,function(s,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),x=T[g?"take"+(l=="last"?"Right":""):l],A=g||/^find/.test(l);x&&(T.prototype[l]=function(){var _=this.__wrapped__,D=g?[1]:arguments,F=_ instanceof Re,Y=D[0],H=F||Ae(_),K=function($e){var Ne=x.apply(T,kr([$e],D));return g&&le?Ne[0]:Ne};H&&f&&typeof Y=="function"&&Y.length!=1&&(F=H=!1);var le=this.__chain__,me=!!this.__actions__.length,Ee=A&&!le,Oe=F&&!me;if(!A&&H){_=Oe?_:new Re(this);var Ce=s.apply(_,D);return Ce.__actions__.push({func:rc,args:[K],thisArg:n}),new dn(Ce,le)}return Ee&&Oe?s.apply(this,D):(Ce=this.thru(K),Ee?g?Ce.value()[0]:Ce.value():Ce)})}),un(["pop","push","shift","sort","splice","unshift"],function(s){var l=Ol[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",g=/^(?:pop|shift)$/.test(s);T.prototype[s]=function(){var x=arguments;if(g&&!this.__chain__){var A=this.value();return l.apply(Ae(A)?A:[],x)}return this[f](function(_){return l.apply(Ae(_)?_:[],x)})}}),Bn(Re.prototype,function(s,l){var f=T[l];if(f){var g=f.name+"";Ue.call(Os,g)||(Os[g]=[]),Os[g].push({name:l,func:f})}}),Os[Xl(n,w).name]=[{name:"wrapper",func:n}],Re.prototype.clone=cj,Re.prototype.reverse=uj,Re.prototype.value=fj,T.prototype.at=VV,T.prototype.chain=BV,T.prototype.commit=WV,T.prototype.next=UV,T.prototype.plant=GV,T.prototype.reverse=YV,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=HV,T.prototype.first=T.prototype.head,Vo&&(T.prototype[Vo]=zV),T},Ps=W3();Ei?((Ei.exports=Ps)._=Ps,Eh._=Ps):bt._=Ps}).call(fD)}(fo,fo.exports)),fo.exports}var yf=dD();const vf=I.createContext({});function bf(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const xf=typeof window<"u",Ev=xf?I.useLayoutEffect:I.useEffect,ka=I.createContext(null),wf=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class hD extends X.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=r instanceof HTMLElement&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function mD({children:e,isPresent:t,anchorX:n}){const r=I.useId(),i=I.useRef(null),o=I.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=I.useContext(wf);return I.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:h,right:m}=o.current;if(t||!i.current||!c||!u)return;const p=n==="left"?`left: ${h}`:`right: ${m}`;i.current.dataset.motionPopId=r;const y=document.createElement("style");return a&&(y.nonce=a),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
652
652
|
[data-motion-pop-id="${r}"] {
|
|
653
653
|
position: absolute !important;
|
|
654
654
|
width: ${c}px !important;
|
|
@@ -656,19 +656,19 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
656
656
|
${p}px !important;
|
|
657
657
|
top: ${d}px !important;
|
|
658
658
|
}
|
|
659
|
-
`),()=>{document.head.removeChild(y)}},[t]),v.jsx(hD,{isPresent:t,childRef:i,sizeRef:a,children:X.cloneElement(e,{ref:i})})}const pD=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:c})=>{const u=bf(gD),d=I.useId(),h=I.useCallback(p=>{u.set(p,!0);for(const y of u.values())if(!y)return;r&&r()},[u,r]),m=I.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),a?[Math.random(),h]:[n,h]);return I.useMemo(()=>{u.forEach((p,y)=>u.set(y,!1))},[n]),X.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(e=v.jsx(mD,{isPresent:n,anchorX:c,children:e})),v.jsx(ka.Provider,{value:m,children:e})};function gD(){return new Map}function Cv(e=!0){const t=I.useContext(ka);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 ja=e=>e.key||"";function Pv(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const Kn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a="sync",propagate:o=!1,anchorX:c="left"})=>{const[u,d]=Cv(o),h=I.useMemo(()=>Pv(e),[e]),m=o&&!u?[]:h.map(ja),p=I.useRef(!0),y=I.useRef(h),S=bf(()=>new Map),[b,E]=I.useState(h),[w,C]=I.useState(h);Ev(()=>{p.current=!1,y.current=h;for(let O=0;O<w.length;O++){const R=ja(w[O]);m.includes(R)?S.delete(R):S.get(R)!==!0&&S.set(R,!1)}},[w,m.length,m.join("-")]);const A=[];if(h!==b){let O=[...h];for(let R=0;R<w.length;R++){const V=w[R],F=ja(V);m.includes(F)||(O.splice(R,0,V),A.push(V))}return a==="wait"&&A.length&&(O=A),C(Pv(O)),E(h),null}process.env.NODE_ENV!=="production"&&a==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:$}=I.useContext(vf);return v.jsx(v.Fragment,{children:w.map(O=>{const R=ja(O),V=o&&!u?!1:h===w||m.includes(R),F=()=>{if(S.has(R))S.set(R,!0);else return;let z=!0;S.forEach(Q=>{Q||(z=!1)}),z&&($==null||$(),C(y.current),o&&(d==null||d()),r&&r())};return v.jsx(pD,{isPresent:V,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,onExitComplete:V?void 0:F,anchorX:c,children:O},R)})})},Nt=e=>e;let Qi=Nt,Er=Nt;process.env.NODE_ENV!=="production"&&(Qi=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Er=(e,t)=>{if(!e)throw new Error(t)});const yD={useManualTiming:!1},Fa=["read","resolveKeyframes","update","preRender","render","postRender"],Av={value:null};function vD(e,t){let n=new Set,r=new Set,i=!1,a=!1;const o=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){o.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,p=!1,y=!1)=>{const b=y&&i?n:r;return p&&o.add(m),b.has(m)||b.add(m),m},cancel:m=>{r.delete(m),o.delete(m)},process:m=>{if(c=m,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&Av.value&&Av.value.frameloop[t].push(u),u=0,n.clear(),i=!1,a&&(a=!1,h.process(m))}};return h}const bD=40;function Ov(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Fa.reduce((w,C)=>(w[C]=vD(a,t?C:void 0),w),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:p}=o,y=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,bD),1),i.timestamp=w,i.isProcessing=!0,c.process(i),u.process(i),d.process(i),h.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},S=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:Fa.reduce((w,C)=>{const A=o[C];return w[C]=($,O=!1,R=!1)=>(n||S(),A.schedule($,O,R)),w},{}),cancel:w=>{for(let C=0;C<Fa.length;C++)o[Fa[C]].cancel(w)},state:i,steps:o}}const{schedule:He,cancel:Cr,state:vt,steps:Sf}=Ov(typeof requestAnimationFrame<"u"?requestAnimationFrame:Nt,!0),Mv=I.createContext({strict:!1}),_v={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"]},es={};for(const e in _v)es[e]={isEnabled:t=>_v[e].some(n=>!!t[n])};function xD(e){for(const t in e)es[t]={...es[t],...e[t]}}const wD=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 Va(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||wD.has(e)}let Iv=e=>!Va(e);function SD(e){e&&(Iv=t=>t.startsWith("on")?!Va(t):e(t))}try{SD(require("@emotion/is-prop-valid").default)}catch{}function TD(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Iv(i)||n===!0&&Va(i)||!t&&!Va(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Dv=new Set;function Ba(e,t,n){e||Dv.has(t)||(console.warn(t),Dv.add(t))}function ED(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Ba(!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 Wa=I.createContext({});function Ua(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ho(e){return typeof e=="string"||Array.isArray(e)}const Tf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ef=["initial",...Tf];function za(e){return Ua(e.animate)||Ef.some(t=>ho(e[t]))}function $v(e){return!!(za(e)||e.variants)}function CD(e,t){if(za(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ho(n)?n:void 0,animate:ho(r)?r:void 0}}return e.inherit!==!1?t:{}}function PD(e){const{initial:t,animate:n}=CD(e,I.useContext(Wa));return I.useMemo(()=>({initial:t,animate:n}),[Rv(t),Rv(n)])}function Rv(e){return Array.isArray(e)?e.join(" "):e}const AD=Symbol.for("motionComponentSymbol");function ts(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function OD(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):ts(n)&&(n.current=r))},[t])}const{schedule:Cf}=Ov(queueMicrotask,!1),Pf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Nv="data-"+Pf("framerAppearId"),Lv=I.createContext({});function MD(e,t,n,r,i){var a,o;const{visualElement:c}=I.useContext(Wa),u=I.useContext(Mv),d=I.useContext(ka),h=I.useContext(wf).reducedMotion,m=I.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const p=m.current,y=I.useContext(Lv);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&_D(m.current,n,i,y);const S=I.useRef(!1);I.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const b=n[Nv],E=I.useRef(!!b&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,b))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,b)));return Ev(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Cf.render(p.render),E.current&&p.animationState&&p.animationState.animateChanges())}),I.useEffect(()=>{p&&(!E.current&&p.animationState&&p.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,b)}),E.current=!1))}),p}function _D(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:kv(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||c&&ts(c),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function kv(e){if(e)return e.options.allowProjection!==!1?e.projection:kv(e.parent)}function ID({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var a,o;e&&xD(e);function c(d,h){let m;const p={...I.useContext(wf),...d,layoutId:DD(d)},{isStatic:y}=p,S=PD(d),b=r(d,y);if(!y&&xf){$D(p,e);const E=RD(p);m=E.MeasureLayout,S.visualElement=MD(i,b,p,t,E.ProjectionNode)}return v.jsxs(Wa.Provider,{value:S,children:[m&&S.visualElement?v.jsx(m,{visualElement:S.visualElement,...p}):null,n(i,d,OD(b,S.visualElement,h),b,y,S.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(o=(a=i.displayName)!==null&&a!==void 0?a:i.name)!==null&&o!==void 0?o:""})`}`;const u=I.forwardRef(c);return u[AD]=i,u}function DD({layoutId:e}){const t=I.useContext(vf).id;return t&&e!==void 0?t+"-"+e:e}function $D(e,t){const n=I.useContext(Mv).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?Qi(!1,r):Er(!1,r)}}function RD(e){const{drag:t,layout:n}=es;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 jv=e=>t=>typeof t=="string"&&t.startsWith(e),Af=jv("--"),ND=jv("var(--"),Of=e=>ND(e)?LD.test(e.split("/*")[0].trim()):!1,LD=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,mo={};function kD(e){for(const t in e)mo[t]=e[t],Af(t)&&(mo[t].isCSSVariable=!0)}const ns=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ti=new Set(ns);function Fv(e,{layout:t,layoutId:n}){return ti.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!mo[e]||e==="opacity")}const Et=e=>!!(e&&e.getVelocity),Vv=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xn=(e,t,n)=>n>t?t:n<e?e:n,rs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},po={...rs,transform:e=>Xn(0,1,e)},Ga={...rs,default:1},go=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pr=go("deg"),Rn=go("%"),Te=go("px"),jD=go("vh"),FD=go("vw"),Bv={...Rn,parse:e=>Rn.parse(e)/100,transform:e=>Rn.transform(e*100)},VD={borderWidth:Te,borderTopWidth:Te,borderRightWidth:Te,borderBottomWidth:Te,borderLeftWidth:Te,borderRadius:Te,radius:Te,borderTopLeftRadius:Te,borderTopRightRadius:Te,borderBottomRightRadius:Te,borderBottomLeftRadius:Te,width:Te,maxWidth:Te,height:Te,maxHeight:Te,top:Te,right:Te,bottom:Te,left:Te,padding:Te,paddingTop:Te,paddingRight:Te,paddingBottom:Te,paddingLeft:Te,margin:Te,marginTop:Te,marginRight:Te,marginBottom:Te,marginLeft:Te,backgroundPositionX:Te,backgroundPositionY:Te},BD={rotate:Pr,rotateX:Pr,rotateY:Pr,rotateZ:Pr,scale:Ga,scaleX:Ga,scaleY:Ga,scaleZ:Ga,skew:Pr,skewX:Pr,skewY:Pr,distance:Te,translateX:Te,translateY:Te,translateZ:Te,x:Te,y:Te,z:Te,perspective:Te,transformPerspective:Te,opacity:po,originX:Bv,originY:Bv,originZ:Te},Wv={...rs,transform:Math.round},Mf={...VD,...BD,zIndex:Wv,size:Te,fillOpacity:po,strokeOpacity:po,numOctaves:Wv},WD={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},UD=ns.length;function zD(e,t,n){let r="",i=!0;for(let a=0;a<UD;a++){const o=ns[a],c=e[o];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(o.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Vv(c,Mf[o]);if(!u){i=!1;const h=WD[o]||o;r+=`${h}(${d}) `}n&&(t[o]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function _f(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,c=!1;for(const u in t){const d=t[u];if(ti.has(u)){o=!0;continue}else if(Af(u)){i[u]=d;continue}else{const h=Vv(d,Mf[u]);u.startsWith("origin")?(c=!0,a[u]=h):r[u]=h}}if(t.transform||(o||n?r.transform=zD(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=a;r.transformOrigin=`${u} ${d} ${h}`}}const If=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Uv(e,t,n){for(const r in t)!Et(t[r])&&!Fv(r,n)&&(e[r]=t[r])}function GD({transformTemplate:e},t){return I.useMemo(()=>{const n=If();return _f(n,t,e),Object.assign({},n.vars,n.style)},[t])}function YD(e,t){const n=e.style||{},r={};return Uv(r,n,e),Object.assign(r,GD(e,t)),r}function HD(e,t){const n={},r=YD(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 qD=["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 Df(e){return typeof e!="string"||e.includes("-")?!1:!!(qD.indexOf(e)>-1||/[A-Z]/u.test(e))}const KD={offset:"stroke-dashoffset",array:"stroke-dasharray"},XD={offset:"strokeDashoffset",array:"strokeDasharray"};function ZD(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?KD:XD;e[a.offset]=Te.transform(-r);const o=Te.transform(t),c=Te.transform(n);e[a.array]=`${o} ${c}`}function zv(e,t,n){return typeof e=="string"?e:Te.transform(t+n*e)}function JD(e,t,n){const r=zv(t,e.x,e.width),i=zv(n,e.y,e.height);return`${r} ${i}`}function $f(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:o,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(_f(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:y,dimensions:S}=e;p.transform&&(S&&(y.transform=p.transform),delete p.transform),S&&(i!==void 0||a!==void 0||y.transform)&&(y.transformOrigin=JD(S,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),o!==void 0&&ZD(p,o,c,u,!1)}const Gv=()=>({...If(),attrs:{}}),Rf=e=>typeof e=="string"&&e.toLowerCase()==="svg";function QD(e,t,n,r){const i=I.useMemo(()=>{const a=Gv();return $f(a,t,Rf(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Uv(a,e.style,e),i.style={...a,...i.style}}return i}function e$(e=!1){return(n,r,i,{latestValues:a},o)=>{const u=(Df(n)?QD:HD)(r,a,o,n),d=TD(r,typeof n=="string",e),h=n!==I.Fragment?{...d,...u,ref:i}:{},{children:m}=r,p=I.useMemo(()=>Et(m)?m.get():m,[m]);return I.createElement(n,{...h,children:p})}}function Yv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Nf(e,t,n,r){if(typeof t=="function"){const[i,a]=Yv(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]=Yv(r);t=t(n!==void 0?n:e.custom,i,a)}return t}const Lf=e=>Array.isArray(e),t$=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),n$=e=>Lf(e)?e[e.length-1]||0:e;function Ya(e){const t=Et(e)?e.get():e;return t$(t)?t.toValue():t}function r$({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,a){const o={latestValues:i$(r,i,a,e),renderState:t()};return n&&(o.onMount=c=>n({props:r,current:c,...o}),o.onUpdate=c=>n(c)),o}const Hv=e=>(t,n)=>{const r=I.useContext(Wa),i=I.useContext(ka),a=()=>r$(e,t,r,i);return n?a():bf(a)};function i$(e,t,n,r){const i={},a=r(e,{});for(const p in a)i[p]=Ya(a[p]);let{initial:o,animate:c}=e;const u=za(e),d=$v(e);t&&d&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||o===!1;const m=h?c:o;if(m&&typeof m!="boolean"&&!Ua(m)){const p=Array.isArray(m)?m:[m];for(let y=0;y<p.length;y++){const S=Nf(e,p[y]);if(S){const{transitionEnd:b,transition:E,...w}=S;for(const C in w){let A=w[C];if(Array.isArray(A)){const $=h?A.length-1:0;A=A[$]}A!==null&&(i[C]=A)}for(const C in b)i[C]=b[C]}}}return i}function kf(e,t,n){var r;const{style:i}=e,a={};for(const o in i)(Et(i[o])||t.style&&Et(t.style[o])||Fv(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[o]=i[o]);return a}const s$={useVisualState:Hv({scrapeMotionValuesFromProps:kf,createRenderState:If})};function qv(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function Kv(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const Xv=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 Zv(e,t,n,r){Kv(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Xv.has(i)?i:Pf(i),t.attrs[i])}function Jv(e,t,n){const r=kf(e,t,n);for(const i in e)if(Et(e[i])||Et(t[i])){const a=ns.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const Qv=["x","y","width","height","cx","cy","r"],o$={useVisualState:Hv({scrapeMotionValuesFromProps:Jv,createRenderState:Gv,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let a=!!e.drag;if(!a){for(const c in i)if(ti.has(c)){a=!0;break}}if(!a)return;let o=!t;if(t)for(let c=0;c<Qv.length;c++){const u=Qv[c];e[u]!==t[u]&&(o=!0)}o&&He.read(()=>{qv(n,r),He.render(()=>{$f(r,i,Rf(n.tagName),e.transformTemplate),Zv(n,r)})})}})};function a$(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...Df(r)?o$:s$,preloadedFeatures:e,useRender:e$(i),createVisualElement:t,Component:r};return ID(o)}}function yo(e,t,n){const r=e.getProps();return Nf(r,t,n!==void 0?n:r.custom,e)}function jf(e,t){return e?e[t]||e.default||e:void 0}const eb=new Set(["width","height","top","left","right","bottom",...ns]);function Ff(e,t){e.indexOf(t)===-1&&e.push(t)}function Vf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Bf{constructor(){this.subscriptions=[]}add(t){return Ff(this.subscriptions,t),()=>Vf(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 tb(e,t){return t?e*(1e3/t):0}let Ha;function l$(){Ha=void 0}const Nn={now:()=>(Ha===void 0&&Nn.set(vt.isProcessing||yD.useManualTiming?vt.timestamp:performance.now()),Ha),set:e=>{Ha=e,queueMicrotask(l$)}},nb=30,c$=e=>!isNaN(parseFloat(e));class u${constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const a=Nn.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Nn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=c$(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Ba(!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 Bf);const r=this.events[t].add(n);return t==="change"?()=>{r(),He.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Nn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>nb)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,nb);return tb(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function vo(e,t){return new u$(e,t)}function f$(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vo(n))}function d$(e,t){const n=yo(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const c=n$(a[o]);f$(e,o,c)}}function h$(e){return!!(Et(e)&&e.add)}function Wf(e,t){const n=e.getValue("willChange");if(h$(n))return n.add(t)}function rb(e){return e.props[Nv]}function Uf(e){let t;return()=>(t===void 0&&(t=e()),t)}const m$=Uf(()=>window.ScrollTimeline!==void 0);class p${constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(m$()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,a)=>{i&&i(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class g$ extends p${then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const Ln=e=>e*1e3,Zn=e=>e/1e3;function zf(e){return typeof e=="function"}function ib(e,t){e.timeline=t,e.onfinish=null}const Gf=e=>Array.isArray(e)&&typeof e[0]=="number",y$={linearEasing:void 0};function v$(e,t){const n=Uf(e);return()=>{var r;return(r=y$[t])!==null&&r!==void 0?r:n()}}const qa=v$(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),is=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},sb=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(is(0,i-1,a))+", ";return`linear(${r.substring(0,r.length-2)})`};function ob(e){return!!(typeof e=="function"&&qa()||!e||typeof e=="string"&&(e in Yf||qa())||Gf(e)||Array.isArray(e)&&e.every(ob))}const bo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Yf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bo([0,.65,.55,1]),circOut:bo([.55,0,1,.45]),backIn:bo([.31,.01,.66,-.59]),backOut:bo([.33,1.53,.69,.99])};function ab(e,t){if(e)return typeof e=="function"&&qa()?sb(e,t):Gf(e)?bo(e):Array.isArray(e)?e.map(n=>ab(n,t)||Yf.easeOut):Yf[e]}const lb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,b$=1e-7,x$=12;function w$(e,t,n,r,i){let a,o,c=0;do o=t+(n-t)/2,a=lb(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>b$&&++c<x$);return o}function xo(e,t,n,r){if(e===t&&n===r)return Nt;const i=a=>w$(a,0,1,e,n);return a=>a===0||a===1?a:lb(i(a),t,r)}const cb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ub=e=>t=>1-e(1-t),fb=xo(.33,1.53,.69,.99),Hf=ub(fb),db=cb(Hf),hb=e=>(e*=2)<1?.5*Hf(e):.5*(2-Math.pow(2,-10*(e-1))),qf=e=>1-Math.sin(Math.acos(e)),mb=ub(qf),pb=cb(qf),gb=e=>/^0[^.\s]+$/u.test(e);function S$(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||gb(e):!0}const wo=e=>Math.round(e*1e5)/1e5,Kf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function T$(e){return e==null}const E$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Xf=(e,t)=>n=>!!(typeof n=="string"&&E$.test(n)&&n.startsWith(e)||t&&!T$(n)&&Object.prototype.hasOwnProperty.call(n,t)),yb=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,c]=r.match(Kf);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:c!==void 0?parseFloat(c):1}},C$=e=>Xn(0,255,e),Zf={...rs,transform:e=>Math.round(C$(e))},ni={test:Xf("rgb","red"),parse:yb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Zf.transform(e)+", "+Zf.transform(t)+", "+Zf.transform(n)+", "+wo(po.transform(r))+")"};function P$(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 Jf={test:Xf("#"),parse:P$,transform:ni.transform},ss={test:Xf("hsl","hue"),parse:yb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Rn.transform(wo(t))+", "+Rn.transform(wo(n))+", "+wo(po.transform(r))+")"},Ct={test:e=>ni.test(e)||Jf.test(e)||ss.test(e),parse:e=>ni.test(e)?ni.parse(e):ss.test(e)?ss.parse(e):Jf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ni.transform(e):ss.transform(e)},A$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function O$(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Kf))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(A$))===null||n===void 0?void 0:n.length)||0)>0}const vb="number",bb="color",M$="var",_$="var(",xb="${}",I$=/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 So(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const c=t.replace(I$,u=>(Ct.test(u)?(r.color.push(a),i.push(bb),n.push(Ct.parse(u))):u.startsWith(_$)?(r.var.push(a),i.push(M$),n.push(u)):(r.number.push(a),i.push(vb),n.push(parseFloat(u))),++a,xb)).split(xb);return{values:n,split:c,indexes:r,types:i}}function wb(e){return So(e).values}function Sb(e){const{split:t,types:n}=So(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const c=n[o];c===vb?a+=wo(i[o]):c===bb?a+=Ct.transform(i[o]):a+=i[o]}return a}}const D$=e=>typeof e=="number"?0:e;function $$(e){const t=wb(e);return Sb(e)(t.map(D$))}const Ar={test:O$,parse:wb,createTransformer:Sb,getAnimatableNone:$$},R$=new Set(["brightness","contrast","saturate","opacity"]);function N$(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Kf)||[];if(!r)return e;const i=n.replace(r,"");let a=R$.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const L$=/\b([a-z-]*)\(.*?\)/gu,Qf={...Ar,getAnimatableNone:e=>{const t=e.match(L$);return t?t.map(N$).join(" "):e}},k$={...Mf,color:Ct,backgroundColor:Ct,outlineColor:Ct,fill:Ct,stroke:Ct,borderColor:Ct,borderTopColor:Ct,borderRightColor:Ct,borderBottomColor:Ct,borderLeftColor:Ct,filter:Qf,WebkitFilter:Qf},Tb=e=>k$[e];function Eb(e,t){let n=Tb(e);return n!==Qf&&(n=Ar),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const j$=new Set(["auto","none","0"]);function F$(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!j$.has(a)&&So(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=Eb(n,i)}const ri=e=>e*180/Math.PI,ed=e=>{const t=ri(Math.atan2(e[1],e[0]));return td(t)},V$={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ed,rotateZ:ed,skewX:e=>ri(Math.atan(e[1])),skewY:e=>ri(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},td=e=>(e=e%360,e<0&&(e+=360),e),Cb=ed,Pb=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ab=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),B$={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Pb,scaleY:Ab,scale:e=>(Pb(e)+Ab(e))/2,rotateX:e=>td(ri(Math.atan2(e[6],e[5]))),rotateY:e=>td(ri(Math.atan2(-e[2],e[0]))),rotateZ:Cb,rotate:Cb,skewX:e=>ri(Math.atan(e[4])),skewY:e=>ri(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ob(e){return e.includes("scale")?1:0}function nd(e,t){if(!e||e==="none")return Ob(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=B$,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=V$,i=c}if(!i)return Ob(t);const a=r[t],o=i[1].split(",").map(U$);return typeof a=="function"?a(o):o[a]}const W$=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return nd(n,t)};function U$(e){return parseFloat(e.trim())}const Mb=e=>e===rs||e===Te,z$=new Set(["x","y","z"]),G$=ns.filter(e=>!z$.has(e));function Y$(e){const t=[];return G$.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const os={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})=>nd(t,"x"),y:(e,{transform:t})=>nd(t,"y")};os.translateX=os.x,os.translateY=os.y;const ii=new Set;let rd=!1,id=!1;function _b(){if(id){const e=Array.from(ii).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Y$(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 c;(c=r.getValue(a))===null||c===void 0||c.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}id=!1,rd=!1,ii.forEach(e=>e.complete()),ii.clear()}function Ib(){ii.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(id=!0)})}function H$(){Ib(),_b()}class sd{constructor(t,n,r,i,a,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ii.add(this),rd||(rd=!0,He.read(Ib),He.resolveKeyframes(_b))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const o=i==null?void 0:i.get(),c=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&o===void 0&&i.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ii.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ii.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Db=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),q$=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function K$(e){const t=q$.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const X$=4;function $b(e,t,n=1){Er(n<=X$,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=K$(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return Db(o)?parseFloat(o):o}return Of(i)?$b(i,t,n+1):i}const Rb=e=>t=>t.test(e),Nb=[rs,Te,Rn,Pr,FD,jD,{test:e=>e==="auto",parse:e=>e}],Lb=e=>Nb.find(Rb(e));class kb extends sd{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 u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Of(d))){const h=$b(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!eb.has(r)||t.length!==2)return;const[i,a]=t,o=Lb(i),c=Lb(a);if(o!==c)if(Mb(o)&&Mb(c))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)S$(t[i])&&r.push(i);r.length&&F$(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=os[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const o=i.length-1,c=i[o];i[o]=os[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,d])=>{n.getValue(u).set(d)}),this.resolveNoneKeyframes()}}const jb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ar.test(e)||e==="0")&&!e.startsWith("url("));function Z$(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 J$(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=jb(i,t),c=jb(a,t);return Qi(o===c,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!o||!c?!1:Z$(e)||(n==="spring"||zf(n))&&r}const Q$=e=>e!==null;function Ka(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Q$),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const e4=40;class Fb{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Nn.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>e4?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&H$(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Nn.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:a,delay:o,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!J$(t,r,i,a))if(o)this.options.duration=0;else{u&&u(Ka(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const od=2e4;function Vb(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<od;)t+=n,r=e.next(t);return t>=od?1/0:t}const rt=(e,t,n)=>e+(t-e)*n;function ad(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 t4({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 c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=ad(u,c,e+1/3),a=ad(u,c,e),o=ad(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Xa(e,t){return n=>n>0?t:e}const ld=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},n4=[Jf,ni,ss],r4=e=>n4.find(t=>t.test(e));function Bb(e){const t=r4(e);if(Qi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ss&&(n=t4(n)),n}const Wb=(e,t)=>{const n=Bb(e),r=Bb(t);if(!n||!r)return Xa(e,t);const i={...n};return a=>(i.red=ld(n.red,r.red,a),i.green=ld(n.green,r.green,a),i.blue=ld(n.blue,r.blue,a),i.alpha=rt(n.alpha,r.alpha,a),ni.transform(i))},i4=(e,t)=>n=>t(e(n)),To=(...e)=>e.reduce(i4),cd=new Set(["none","hidden"]);function s4(e,t){return cd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function o4(e,t){return n=>rt(e,t,n)}function ud(e){return typeof e=="number"?o4:typeof e=="string"?Of(e)?Xa:Ct.test(e)?Wb:c4:Array.isArray(e)?Ub:typeof e=="object"?Ct.test(e)?Wb:a4:Xa}function Ub(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>ud(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function a4(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=ud(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function l4(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const o=t.types[a],c=e.indexes[o][i[o]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[a]=u,i[o]++}return r}const c4=(e,t)=>{const n=Ar.createTransformer(t),r=So(e),i=So(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?cd.has(e)&&!i.values.length||cd.has(t)&&!r.values.length?s4(e,t):To(Ub(l4(r,i),i.values),n):(Qi(!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.`),Xa(e,t))};function zb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?rt(e,t,n):ud(e)(e,t)}const u4=5;function Gb(e,t,n){const r=Math.max(t-u4,0);return tb(n-e(r),t-r)}const it={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},Yb=.001;function f4({duration:e=it.duration,bounce:t=it.bounce,velocity:n=it.velocity,mass:r=it.mass}){let i,a;Qi(e<=Ln(it.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Xn(it.minDamping,it.maxDamping,o),e=Xn(it.minDuration,it.maxDuration,Zn(e)),o<1?(i=d=>{const h=d*o,m=h*e,p=h-n,y=fd(d,o),S=Math.exp(-m);return Yb-p/y*S},a=d=>{const m=d*o*e,p=m*n+n,y=Math.pow(o,2)*Math.pow(d,2)*e,S=Math.exp(-m),b=fd(Math.pow(d,2),o);return(-i(d)+Yb>0?-1:1)*((p-y)*S)/b}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},a=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const c=5/e,u=h4(i,a,c);if(e=Ln(e),isNaN(u))return{stiffness:it.stiffness,damping:it.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:o*2*Math.sqrt(r*d),duration:e}}}const d4=12;function h4(e,t,n){let r=n;for(let i=1;i<d4;i++)r=r-e(r)/t(r);return r}function fd(e,t){return e*Math.sqrt(1-t*t)}const m4=["duration","bounce"],p4=["stiffness","damping","mass"];function Hb(e,t){return t.some(n=>e[n]!==void 0)}function g4(e){let t={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!Hb(e,p4)&&Hb(e,m4))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Xn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:it.mass,stiffness:i,damping:a}}else{const n=f4(e);t={...t,...n,mass:it.mass},t.isResolvedFromDuration=!0}return t}function qb(e=it.visualDuration,t=it.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],c={done:!1,value:a},{stiffness:u,damping:d,mass:h,duration:m,velocity:p,isResolvedFromDuration:y}=g4({...n,velocity:-Zn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),E=o-a,w=Zn(Math.sqrt(u/h)),C=Math.abs(E)<5;r||(r=C?it.restSpeed.granular:it.restSpeed.default),i||(i=C?it.restDelta.granular:it.restDelta.default);let A;if(b<1){const O=fd(w,b);A=R=>{const V=Math.exp(-b*w*R);return o-V*((S+b*w*E)/O*Math.sin(O*R)+E*Math.cos(O*R))}}else if(b===1)A=O=>o-Math.exp(-w*O)*(E+(S+w*E)*O);else{const O=w*Math.sqrt(b*b-1);A=R=>{const V=Math.exp(-b*w*R),F=Math.min(O*R,300);return o-V*((S+b*w*E)*Math.sinh(F)+O*E*Math.cosh(F))/O}}const $={calculatedDuration:y&&m||null,next:O=>{const R=A(O);if(y)c.done=O>=m;else{let V=0;b<1&&(V=O===0?Ln(S):Gb(A,O,R));const F=Math.abs(V)<=r,z=Math.abs(o-R)<=i;c.done=F&&z}return c.value=c.done?o:R,c},toString:()=>{const O=Math.min(Vb($),od),R=sb(V=>$.next(O*V).value,O,30);return O+"ms "+R}};return $}function Kb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},y=F=>c!==void 0&&F<c||u!==void 0&&F>u,S=F=>c===void 0?u:u===void 0||Math.abs(c-F)<Math.abs(u-F)?c:u;let b=n*t;const E=m+b,w=o===void 0?E:o(E);w!==E&&(b=w-m);const C=F=>-b*Math.exp(-F/r),A=F=>w+C(F),$=F=>{const z=C(F),Q=A(F);p.done=Math.abs(z)<=d,p.value=p.done?w:Q};let O,R;const V=F=>{y(p.value)&&(O=F,R=qb({keyframes:[p.value,S(p.value)],velocity:Gb(A,F,p.value),damping:i,stiffness:a,restDelta:d,restSpeed:h}))};return V(0),{calculatedDuration:null,next:F=>{let z=!1;return!R&&O===void 0&&(z=!0,$(F),V(F)),O!==void 0&&F>=O?R.next(F-O):(!z&&$(F),p)}}}const y4=xo(.42,0,1,1),v4=xo(0,0,.58,1),Xb=xo(.42,0,.58,1),b4=e=>Array.isArray(e)&&typeof e[0]!="number",Zb={linear:Nt,easeIn:y4,easeInOut:Xb,easeOut:v4,circIn:qf,circInOut:pb,circOut:mb,backIn:Hf,backInOut:db,backOut:fb,anticipate:hb},Jb=e=>{if(Gf(e)){Er(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return xo(t,n,r,i)}else if(typeof e=="string")return Er(Zb[e]!==void 0,`Invalid easing type '${e}'`),Zb[e];return e};function x4(e,t,n){const r=[],i=n||zb,a=e.length-1;for(let o=0;o<a;o++){let c=i(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||Nt:t;c=To(u,c)}r.push(c)}return r}function w4(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Er(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 c=x4(t,r,i),u=c.length,d=h=>{if(o&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const p=is(e[m],e[m+1],h);return c[m](p)};return n?h=>d(Xn(e[0],e[a-1],h)):d}function S4(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=is(0,t,r);e.push(rt(n,1,i))}}function T4(e){const t=[0];return S4(t,e.length-1),t}function E4(e,t){return e.map(n=>n*t)}function C4(e,t){return e.map(()=>t||Xb).splice(0,e.length-1)}function Eo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=b4(r)?r.map(Jb):Jb(r),a={done:!1,value:t[0]},o=E4(n&&n.length===t.length?n:T4(t),e),c=w4(o,t,{ease:Array.isArray(i)?i:C4(t,i)});return{calculatedDuration:e,next:u=>(a.value=c(u),a.done=u>=e,a)}}const P4=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>Cr(t),now:()=>vt.isProcessing?vt.timestamp:Nn.now()}},A4={decay:Kb,inertia:Kb,tween:Eo,keyframes:Eo,spring:qb},O4=e=>e/100;class dd extends Fb{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:a}=this.options,o=(i==null?void 0:i.KeyframeResolver)||sd,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new o(a,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=this.options,c=zf(n)?n:A4[n]||Eo;let u,d;process.env.NODE_ENV!=="production"&&c!==Eo&&Er(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==Eo&&typeof t[0]!="number"&&(u=To(O4,zb(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});a==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-o})),h.calculatedDuration===null&&(h.calculatedDuration=Vb(h));const{calculatedDuration:m}=h,p=m+i,y=p*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:i,generator:a,mirroredGenerator:o,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return a.next(0);const{delay:p,repeat:y,repeatType:S,repeatDelay:b,onUpdate:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const w=this.currentTime-p*(this.speed>=0?1:-1),C=this.speed>=0?w<0:w>h;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let A=this.currentTime,$=a;if(y){const F=Math.min(this.currentTime,h)/m;let z=Math.floor(F),Q=F%1;!Q&&F>=1&&(Q=1),Q===1&&z--,z=Math.min(z,y+1),!!(z%2)&&(S==="reverse"?(Q=1-Q,b&&(Q-=b/m)):S==="mirror"&&($=o)),A=Xn(0,1,Q)*m}const O=C?{done:!1,value:u[0]}:$.next(A);c&&(O.value=c(O.value));let{done:R}=O;!C&&d!==null&&(R=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return V&&i!==void 0&&(O.value=Ka(u,this.options,i)),E&&E(O.value),V&&this.finish(),O}get duration(){const{resolved:t}=this;return t?Zn(t.calculatedDuration):0}get time(){return Zn(this.currentTime)}set time(t){t=Ln(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Zn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=P4,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const M4=new Set(["opacity","clipPath","filter","transform"]);function _4(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=ab(c,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}const I4=Uf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Za=10,D4=2e4;function $4(e){return zf(e.type)||e.type==="spring"||!ob(e.ease)}function R4(e,t){const n=new dd({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<D4;)r=n.sample(a),i.push(r.value),a+=Za;return{times:void 0,keyframes:i,duration:a-Za,ease:"linear"}}const Qb={anticipate:hb,backInOut:db,circInOut:pb};function N4(e){return e in Qb}class e1 extends Fb{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:a}=this.options;this.resolver=new kb(a,(o,c)=>this.onKeyframesResolved(o,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:a,type:o,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof a=="string"&&qa()&&N4(a)&&(a=Qb[a]),$4(this.options)){const{onComplete:m,onUpdate:p,motionValue:y,element:S,...b}=this.options,E=R4(t,b);t=E.keyframes,t.length===1&&(t[1]=t[0]),r=E.duration,i=E.times,a=E.ease,o="keyframes"}const h=_4(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:a});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(ib(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ka(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:o,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Zn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Zn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Ln(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Nt;const{animation:r}=n;ib(r,t)}return Nt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:a,ease:o,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:p,...y}=this.options,S=new dd({...y,keyframes:r,duration:i,type:a,ease:o,times:c,isGenerator:!0}),b=Ln(this.time);d.setWithVelocity(S.sample(b-Za).value,S.sample(b).value,Za)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:a,damping:o,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return I4()&&r&&M4.has(r)&&(r!=="transform"||!d)&&!u&&!i&&a!=="mirror"&&o!==0&&c!=="inertia"}}const L4={type:"spring",stiffness:500,damping:25,restSpeed:10},k4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),j4={type:"keyframes",duration:.8},F4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},V4=(e,{keyframes:t})=>t.length>2?j4:ti.has(e)?e.startsWith("scale")?k4(t[1]):L4:F4;function B4({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const hd=(e,t,n,r={},i,a)=>o=>{const c=jf(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Ln(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{o(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:a?void 0:i};B4(c)||(h={...h,...V4(e,h)}),h.duration&&(h.duration=Ln(h.duration)),h.repeatDelay&&(h.repeatDelay=Ln(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)),h.allowFlatten=!c.type&&!c.ease,m&&!a&&t.get()!==void 0){const p=Ka(h.keyframes,c);if(p!==void 0)return He.update(()=>{h.onUpdate(p),h.onComplete()}),new g$([])}return!a&&e1.supports(h)?new e1(h):new dd(h)};function W4({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function t1(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(o=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const p=e.getValue(m,(a=e.latestValues[m])!==null&&a!==void 0?a:null),y=u[m];if(y===void 0||h&&W4(h,m))continue;const S={delay:n,...jf(o||{},m)};let b=!1;if(window.MotionHandoffAnimation){const w=rb(e);if(w){const C=window.MotionHandoffAnimation(w,m,He);C!==null&&(S.startTime=C,b=!0)}}Wf(e,m),p.start(hd(m,p,y,e.shouldReduceMotion&&eb.has(m)?{type:!1}:S,e,b));const E=p.animation;E&&d.push(E)}return c&&Promise.all(d).then(()=>{He.update(()=>{c&&d$(e,c)})}),d}function md(e,t,n={}){var r;const i=yo(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const o=i?()=>Promise.all(t1(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=a;return U4(e,t,h+d,m,p,n)}:()=>Promise.resolve(),{when:u}=a;if(u){const[d,h]=u==="beforeChildren"?[o,c]:[c,o];return d().then(()=>h())}else return Promise.all([o(),c(n.delay)])}function U4(e,t,n=0,r=0,i=1,a){const o=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(z4).forEach((d,h)=>{d.notify("AnimationStart",t),o.push(md(d,t,{...a,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(o)}function z4(e,t){return e.sortNodePosition(t)}function G4(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>md(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=md(e,t,n);else{const i=typeof t=="function"?yo(e,t,n.custom):t;r=Promise.all(t1(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function n1(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 Y4=Ef.length;function r1(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?r1(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Y4;n++){const r=Ef[n],i=e.props[r];(ho(i)||i===!1)&&(t[r]=i)}return t}const H4=[...Tf].reverse(),q4=Tf.length;function K4(e){return t=>Promise.all(t.map(({animation:n,options:r})=>G4(e,n,r)))}function X4(e){let t=K4(e),n=i1(),r=!0;const i=u=>(d,h)=>{var m;const p=yo(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:y,transitionEnd:S,...b}=p;d={...d,...b,...S}}return d};function a(u){t=u(e)}function o(u){const{props:d}=e,h=r1(e.parent)||{},m=[],p=new Set;let y={},S=1/0;for(let E=0;E<q4;E++){const w=H4[E],C=n[w],A=d[w]!==void 0?d[w]:h[w],$=ho(A),O=w===u?C.isActive:null;O===!1&&(S=E);let R=A===h[w]&&A!==d[w]&&$;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),C.protectedKeys={...y},!C.isActive&&O===null||!A&&!C.prevProp||Ua(A)||typeof A=="boolean")continue;const V=Z4(C.prevProp,A);let F=V||w===u&&C.isActive&&!R&&$||E>S&&$,z=!1;const Q=Array.isArray(A)?A:[A];let ne=Q.reduce(i(w),{});O===!1&&(ne={});const{prevResolvedValues:ue={}}=C,ve={...ue,...ne},de=j=>{F=!0,p.has(j)&&(z=!0,p.delete(j)),C.needsAnimating[j]=!0;const W=e.getValue(j);W&&(W.liveStyle=!1)};for(const j in ve){const W=ne[j],q=ue[j];if(y.hasOwnProperty(j))continue;let M=!1;Lf(W)&&Lf(q)?M=!n1(W,q):M=W!==q,M?W!=null?de(j):p.add(j):W!==void 0&&p.has(j)?de(j):C.protectedKeys[j]=!0}C.prevProp=A,C.prevResolvedValues=ne,C.isActive&&(y={...y,...ne}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(R&&V)||z)&&m.push(...Q.map(j=>({animation:j,options:{type:w}})))}if(p.size){const E={};if(typeof d.initial!="boolean"){const w=yo(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(E.transition=w.transition)}p.forEach(w=>{const C=e.getBaseTarget(w),A=e.getValue(w);A&&(A.liveStyle=!0),E[w]=C??null}),m.push({animation:E})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(m):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var y;return(y=p.animationState)===null||y===void 0?void 0:y.setActive(u,d)}),n[u].isActive=d;const m=o(u);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:o,setActive:c,setAnimateFunction:a,getState:()=>n,reset:()=>{n=i1(),r=!0}}}function Z4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!n1(t,e):!1}function si(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function i1(){return{animate:si(!0),whileInView:si(),whileHover:si(),whileTap:si(),whileDrag:si(),whileFocus:si(),exit:si()}}class Or{constructor(t){this.isMounted=!1,this.node=t}update(){}}class J4 extends Or{constructor(t){super(t),t.animationState||(t.animationState=X4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ua(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let Q4=0;class e6 extends Or{constructor(){super(...arguments),this.id=Q4++}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 t6={animation:{Feature:J4},exit:{Feature:e6}},vn={x:!1,y:!1};function s1(){return vn.x||vn.y}function n6(e){return e==="x"||e==="y"?vn[e]?null:(vn[e]=!0,()=>{vn[e]=!1}):vn.x||vn.y?null:(vn.x=vn.y=!0,()=>{vn.x=vn.y=!1})}function Co(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const pd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Po(e){return{point:{x:e.pageX,y:e.pageY}}}const r6=e=>t=>pd(t)&&e(t,Po(t));function Ao(e,t,n,r){return Co(e,t,r6(n),r)}function o1({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function i6({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function s6(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 a1=1e-4,o6=1-a1,a6=1+a1,l1=.01,l6=0-l1,c6=0+l1;function _t(e){return e.max-e.min}function u6(e,t,n){return Math.abs(e-t)<=n}function c1(e,t,n,r=.5){e.origin=r,e.originPoint=rt(t.min,t.max,e.origin),e.scale=_t(n)/_t(t),e.translate=rt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=o6&&e.scale<=a6||isNaN(e.scale))&&(e.scale=1),(e.translate>=l6&&e.translate<=c6||isNaN(e.translate))&&(e.translate=0)}function Oo(e,t,n,r){c1(e.x,t.x,n.x,r?r.originX:void 0),c1(e.y,t.y,n.y,r?r.originY:void 0)}function u1(e,t,n){e.min=n.min+t.min,e.max=e.min+_t(t)}function f6(e,t,n){u1(e.x,t.x,n.x),u1(e.y,t.y,n.y)}function f1(e,t,n){e.min=t.min-n.min,e.max=e.min+_t(t)}function Mo(e,t,n){f1(e.x,t.x,n.x),f1(e.y,t.y,n.y)}const d1=()=>({translate:0,scale:1,origin:0,originPoint:0}),as=()=>({x:d1(),y:d1()}),h1=()=>({min:0,max:0}),lt=()=>({x:h1(),y:h1()});function rn(e){return[e("x"),e("y")]}function gd(e){return e===void 0||e===1}function yd({scale:e,scaleX:t,scaleY:n}){return!gd(e)||!gd(t)||!gd(n)}function oi(e){return yd(e)||m1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function m1(e){return p1(e.x)||p1(e.y)}function p1(e){return e&&e!=="0%"}function Ja(e,t,n){const r=e-n,i=t*r;return n+i}function g1(e,t,n,r,i){return i!==void 0&&(e=Ja(e,i,r)),Ja(e,n,r)+t}function vd(e,t=0,n=1,r,i){e.min=g1(e.min,t,n,r,i),e.max=g1(e.max,t,n,r,i)}function y1(e,{x:t,y:n}){vd(e.x,t.translate,t.scale,t.originPoint),vd(e.y,n.translate,n.scale,n.originPoint)}const v1=.999999999999,b1=1.0000000000001;function d6(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let c=0;c<i;c++){a=n[c],o=a.projectionDelta;const{visualElement:u}=a.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&cs(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,y1(e,o)),r&&oi(a.latestValues)&&cs(e,a.latestValues))}t.x<b1&&t.x>v1&&(t.x=1),t.y<b1&&t.y>v1&&(t.y=1)}function ls(e,t){e.min=e.min+t,e.max=e.max+t}function x1(e,t,n,r,i=.5){const a=rt(e.min,e.max,i);vd(e,t,n,a,r)}function cs(e,t){x1(e.x,t.x,t.scaleX,t.scale,t.originX),x1(e.y,t.y,t.scaleY,t.scale,t.originY)}function w1(e,t){return o1(s6(e.getBoundingClientRect(),t))}function h6(e,t,n){const r=w1(e,n),{scroll:i}=t;return i&&(ls(r.x,i.offset.x),ls(r.y,i.offset.y)),r}const S1=({current:e})=>e?e.ownerDocument.defaultView:null,T1=(e,t)=>Math.abs(e-t);function m6(e,t){const n=T1(e.x,t.x),r=T1(e.y,t.y);return Math.sqrt(n**2+r**2)}class E1{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=xd(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=m6(m.offset,{x:0,y:0})>=3;if(!p&&!y)return;const{point:S}=m,{timestamp:b}=vt;this.history.push({...S,timestamp:b});const{onStart:E,onMove:w}=this.handlers;p||(E&&E(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=bd(p,this.transformPagePoint),He.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:y,onSessionEnd:S,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=xd(m.type==="pointercancel"?this.lastMoveEventInfo:bd(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,E),S&&S(m,E)},!pd(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=Po(t),c=bd(o,this.transformPagePoint),{point:u}=c,{timestamp:d}=vt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,xd(c,this.history)),this.removeListeners=To(Ao(this.contextWindow,"pointermove",this.handlePointerMove),Ao(this.contextWindow,"pointerup",this.handlePointerUp),Ao(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Cr(this.updatePoint)}}function bd(e,t){return t?{point:t(e.point)}:e}function C1(e,t){return{x:e.x-t.x,y:e.y-t.y}}function xd({point:e},t){return{point:e,delta:C1(e,P1(t)),offset:C1(e,p6(t)),velocity:g6(t,.1)}}function p6(e){return e[0]}function P1(e){return e[e.length-1]}function g6(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=P1(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ln(t)));)n--;if(!r)return{x:0,y:0};const a=Zn(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 y6(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?rt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?rt(n,e,r.max):Math.min(e,n)),e}function A1(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 v6(e,{top:t,left:n,bottom:r,right:i}){return{x:A1(e.x,n,i),y:A1(e.y,t,r)}}function O1(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 b6(e,t){return{x:O1(e.x,t.x),y:O1(e.y,t.y)}}function x6(e,t){let n=.5;const r=_t(e),i=_t(t);return i>r?n=is(t.min,t.max-r,e.min):r>i&&(n=is(e.min,e.max-i,t.min)),Xn(0,1,n)}function w6(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 wd=.35;function S6(e=wd){return e===!1?e=0:e===!0&&(e=wd),{x:M1(e,"left","right"),y:M1(e,"top","bottom")}}function M1(e,t,n){return{min:_1(e,t),max:_1(e,n)}}function _1(e,t){return typeof e=="number"?e:e[t]||0}const T6=new WeakMap;class E6{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=lt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Po(h).point)},a=(h,m)=>{const{drag:p,dragPropagation:y,onDragStart:S}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=n6(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rn(E=>{let w=this.getAxisMotionValue(E).get()||0;if(Rn.test(w)){const{projection:C}=this.visualElement;if(C&&C.layout){const A=C.layout.layoutBox[E];A&&(w=_t(A)*(parseFloat(w)/100))}}this.originPoint[E]=w}),S&&He.postRender(()=>S(h,m)),Wf(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},o=(h,m)=>{const{dragPropagation:p,dragDirectionLock:y,onDirectionLock:S,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:E}=m;if(y&&this.currentDirection===null){this.currentDirection=C6(E),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,E),this.updateAxis("y",m.point,E),this.visualElement.render(),b&&b(h,m)},c=(h,m)=>this.stop(h,m),u=()=>rn(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new E1(t,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:S1(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&He.postRender(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Qa(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=y6(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&ts(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=v6(i.layoutBox,n):this.constraints=!1,this.elastic=S6(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=w6(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ts(t))return!1;const r=t.current;Er(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=h6(r,i.root,this.visualElement.getTransformPagePoint());let o=b6(i.layout.layoutBox,a);if(n){const c=n(i6(o));this.hasMutatedConstraints=!!c,c&&(o=o1(c))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=rn(h=>{if(!Qa(h,n,this.currentDirection))return;let m=u&&u[h]||{};o&&(m={min:0,max:0});const p=i?200:1e6,y=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...a,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Wf(this.visualElement,t),r.start(hd(t,r,0,n,this.visualElement,!1))}stopAnimation(){rn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){rn(n=>{const{drag:r}=this.getProps();if(!Qa(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:c}=i.layout.layoutBox[n];a.set(t[n]-rt(o,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ts(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};rn(o=>{const c=this.getAxisMotionValue(o);if(c&&this.constraints!==!1){const u=c.get();i[o]=x6({min:u,max:u},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(),rn(o=>{if(!Qa(o,t,null))return;const c=this.getAxisMotionValue(o),{min:u,max:d}=this.constraints[o];c.set(rt(u,d,i[o]))})}addListeners(){if(!this.visualElement.current)return;T6.set(this.visualElement,this);const t=this.visualElement.current,n=Ao(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();ts(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),He.read(r);const o=Co(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(rn(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=u[h].translate,m.set(m.get()+u[h].translate))}),this.visualElement.render())});return()=>{o(),n(),a(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=wd,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:c}}}function Qa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function C6(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class P6 extends Or{constructor(t){super(t),this.removeGroupControls=Nt,this.removeListeners=Nt,this.controls=new E6(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Nt}unmount(){this.removeGroupControls(),this.removeListeners()}}const I1=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};class A6 extends Or{constructor(){super(...arguments),this.removePointerDownListener=Nt}onPointerDown(t){this.session=new E1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:S1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:I1(t),onStart:I1(n),onMove:r,onEnd:(a,o)=>{delete this.session,i&&He.postRender(()=>i(a,o))}}}mount(){this.removePointerDownListener=Ao(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 el={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function D1(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const _o={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Te.test(e))e=parseFloat(e);else return e;const n=D1(e,t.target.x),r=D1(e,t.target.y);return`${n}% ${r}%`}},O6={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ar.parse(e);if(i.length>5)return r;const a=Ar.createTransformer(e),o=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+o]/=c,i[1+o]/=u;const d=rt(c,u,.5);return typeof i[2+o]=="number"&&(i[2+o]/=d),typeof i[3+o]=="number"&&(i[3+o]/=d),a(i)}};class M6 extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;kD(_6),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),el.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,o=r.projection;return o&&(o.isPresent=a,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||He.postRender(()=>{const c=o.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Cf.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function $1(e){const[t,n]=Cv(),r=I.useContext(vf);return v.jsx(M6,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(Lv),isPresent:t,safeToRemove:n})}const _6={borderRadius:{..._o,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_o,borderTopRightRadius:_o,borderBottomLeftRadius:_o,borderBottomRightRadius:_o,boxShadow:O6};function I6(e,t,n){const r=Et(e)?e:vo(e);return r.start(hd("",r,t,n)),r.animation}function D6(e){return e instanceof SVGElement&&e.tagName!=="svg"}const $6=(e,t)=>e.depth-t.depth;class R6{constructor(){this.children=[],this.isDirty=!1}add(t){Ff(this.children,t),this.isDirty=!0}remove(t){Vf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort($6),this.isDirty=!1,this.children.forEach(t)}}function N6(e,t){const n=Nn.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Cr(r),e(a-t))};return He.read(r,!0),()=>Cr(r)}const R1=["TopLeft","TopRight","BottomLeft","BottomRight"],L6=R1.length,N1=e=>typeof e=="string"?parseFloat(e):e,L1=e=>typeof e=="number"||Te.test(e);function k6(e,t,n,r,i,a){i?(e.opacity=rt(0,n.opacity!==void 0?n.opacity:1,j6(r)),e.opacityExit=rt(t.opacity!==void 0?t.opacity:1,0,F6(r))):a&&(e.opacity=rt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<L6;o++){const c=`border${R1[o]}Radius`;let u=k1(t,c),d=k1(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||L1(u)===L1(d)?(e[c]=Math.max(rt(N1(u),N1(d),r),0),(Rn.test(d)||Rn.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=rt(t.rotate||0,n.rotate||0,r))}function k1(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const j6=j1(0,.5,mb),F6=j1(.5,.95,Nt);function j1(e,t,n){return r=>r<e?0:r>t?1:n(is(e,t,r))}function F1(e,t){e.min=t.min,e.max=t.max}function sn(e,t){F1(e.x,t.x),F1(e.y,t.y)}function V1(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function B1(e,t,n,r,i){return e-=t,e=Ja(e,1/n,r),i!==void 0&&(e=Ja(e,1/i,r)),e}function V6(e,t=0,n=1,r=.5,i,a=e,o=e){if(Rn.test(t)&&(t=parseFloat(t),t=rt(o.min,o.max,t/100)-o.min),typeof t!="number")return;let c=rt(a.min,a.max,r);e===a&&(c-=t),e.min=B1(e.min,t,n,c,i),e.max=B1(e.max,t,n,c,i)}function W1(e,t,[n,r,i],a,o){V6(e,t[n],t[r],t[i],t.scale,a,o)}const B6=["x","scaleX","originX"],W6=["y","scaleY","originY"];function U1(e,t,n,r){W1(e.x,t,B6,n?n.x:void 0,r?r.x:void 0),W1(e.y,t,W6,n?n.y:void 0,r?r.y:void 0)}function z1(e){return e.translate===0&&e.scale===1}function G1(e){return z1(e.x)&&z1(e.y)}function Y1(e,t){return e.min===t.min&&e.max===t.max}function U6(e,t){return Y1(e.x,t.x)&&Y1(e.y,t.y)}function H1(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function q1(e,t){return H1(e.x,t.x)&&H1(e.y,t.y)}function K1(e){return _t(e.x)/_t(e.y)}function X1(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class z6{constructor(){this.members=[]}add(t){Ff(this.members,t),t.scheduleRender()}remove(t){if(Vf(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 G6(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:d,rotate:h,rotateX:m,rotateY:p,skewX:y,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),y&&(r+=`skewX(${y}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const Sd=["","X","Y","Z"],Y6={visibility:"hidden"},Z1=1e3;let H6=0;function Td(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function J1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=rb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",He,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&J1(r)}function Q1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},c=t==null?void 0:t()){this.id=H6++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(X6),this.nodes.forEach(tR),this.nodes.forEach(nR),this.nodes.forEach(Z6)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new R6)}addEventListener(o,c){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Bf),this.eventHandlers.get(o).add(c)}notifyListeners(o,...c){const u=this.eventHandlers.get(o);u&&u.notify(...c)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=D6(o),this.instance=o;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=N6(p,250),el.hasAnimatedSinceResize&&(el.hasAnimatedSinceResize=!1,this.nodes.forEach(tx))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:y,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||h.getDefaultTransition()||aR,{onLayoutAnimationStart:E,onLayoutAnimationComplete:w}=h.getProps(),C=!this.targetLayout||!q1(this.targetLayout,S),A=!p&&y;if(this.options.layoutRoot||this.resumeFrom||A||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,A);const $={...jf(b,"layout"),onPlay:E,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||tx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}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,Cr(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(rR),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&&J1(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:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ex);return}this.isUpdating||this.nodes.forEach(Q6),this.isUpdating=!1,this.nodes.forEach(eR),this.nodes.forEach(q6),this.nodes.forEach(K6),this.clearAllSnapshots();const c=Nn.now();vt.delta=Xn(0,1e3/60,c-vt.timestamp),vt.timestamp=c,vt.isProcessing=!0,Sf.update.process(vt),Sf.preRender.process(vt),Sf.render.process(vt),vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Cf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(J6),this.sharedNodes.forEach(iR)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,He.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){He.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!_t(this.snapshot.measuredBox.x)&&!_t(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 u=0;u<this.path.length;u++)this.path[u].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=lt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!G1(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;o&&(c||oi(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return o&&(u=this.removeTransform(u)),lR(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:c}=this.options;if(!c)return lt();const u=c.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(cR))){const{scroll:h}=this.root;h&&(ls(u.x,h.offset.x),ls(u.y,h.offset.y))}return u}removeElementScroll(o){var c;const u=lt();if(sn(u,o),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&sn(u,o),ls(u.x,m.offset.x),ls(u.y,m.offset.y))}return u}applyTransform(o,c=!1){const u=lt();sn(u,o);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&cs(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),oi(h.latestValues)&&cs(u,h.latestValues)}return oi(this.latestValues)&&cs(u,this.latestValues),u}removeTransform(o){const c=lt();sn(c,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!oi(d.latestValues))continue;yd(d.latestValues)&&d.updateSnapshot();const h=lt(),m=d.measurePageBox();sn(h,m),U1(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return oi(this.latestValues)&&U1(c,this.latestValues),c}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!==vt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(o||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=vt.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Mo(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=lt(),this.targetWithTransforms=lt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),f6(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),y1(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Mo(this.relativeTargetOrigin,this.target,y.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||yd(this.parent.latestValues)||m1(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 o;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===vt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;sn(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,y=this.treeScale.y;d6(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=lt());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(V1(this.prevProjectionDelta.x,this.projectionDelta.x),V1(this.prevProjectionDelta.y,this.projectionDelta.y)),Oo(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==y||!X1(this.projectionDelta.x,this.prevProjectionDelta.x)||!X1(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),o){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=as(),this.projectionDelta=as(),this.projectionDeltaWithTransform=as()}setAnimationOrigin(o,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=as();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=lt(),y=u?u.source:void 0,S=this.layout?this.layout.source:void 0,b=y!==S,E=this.getStack(),w=!E||E.members.length<=1,C=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(oR));this.animationProgress=0;let A;this.mixTargetDelta=$=>{const O=$/1e3;nx(m.x,o.x,O),nx(m.y,o.y,O),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mo(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),sR(this.relativeTarget,this.relativeTargetOrigin,p,O),A&&U6(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=lt()),sn(A,this.relativeTarget)),b&&(this.animationValues=h,k6(h,d,this.latestValues,O,C,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=O},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{el.hasAnimatedSinceResize=!0,this.currentAnimation=I6(0,Z1,{...o,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},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(Z1),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=o;if(!(!c||!u||!d)){if(this!==o&&this.layout&&d&&ax(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||lt();const m=_t(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+m;const p=_t(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+p}sn(c,u),cs(c,h),Oo(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(o,c){this.sharedNodes.has(o)||this.sharedNodes.set(o,new z6),this.sharedNodes.get(o).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:c}=this.options;return c?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:c}=this.options;return c?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let c=!1;const{latestValues:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&Td("z",o,d,this.animationValues);for(let h=0;h<Sd.length;h++)Td(`rotate${Sd[h]}`,o,d,this.animationValues),Td(`skew${Sd[h]}`,o,d,this.animationValues);o.render();for(const h in d)o.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);o.scheduleRender()}getProjectionStyles(o){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Y6;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Ya(o==null?void 0:o.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Ya(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!oi(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=G6(this.projectionDeltaWithTransform,this.treeScale,p),h&&(d.transform=h(p,d.transform));const{x:y,y:S}=this.projectionDelta;d.transformOrigin=`${y.origin*100}% ${S.origin*100}% 0`,m.animationValues?d.opacity=m===this?(u=(c=p.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const b in mo){if(p[b]===void 0)continue;const{correct:E,applyTo:w,isCSSVariable:C}=mo[b],A=d.transform==="none"?p[b]:E(p[b],m);if(w){const $=w.length;for(let O=0;O<$;O++)d[w[O]]=A}else C?this.options.visualElement.renderState.vars[b]=A:d[b]=A}return this.options.layoutId&&(d.pointerEvents=m===this?Ya(o==null?void 0:o.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var c;return(c=o.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(ex),this.root.sharedNodes.clear()}}}function q6(e){e.updateLayout()}function K6(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,o=n.source!==e.layout.source;a==="size"?rn(m=>{const p=o?n.measuredBox[m]:n.layoutBox[m],y=_t(p);p.min=r[m].min,p.max=p.min+y}):ax(a,n.layoutBox,r)&&rn(m=>{const p=o?n.measuredBox[m]:n.layoutBox[m],y=_t(r[m]);p.max=p.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+y)});const c=as();Oo(c,r,n.layoutBox);const u=as();o?Oo(u,e.applyTransform(i,!0),n.measuredBox):Oo(u,r,n.layoutBox);const d=!G1(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:y}=m;if(p&&y){const S=lt();Mo(S,n.layoutBox,p.layoutBox);const b=lt();Mo(b,r,y.layoutBox),q1(S,b)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function X6(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 Z6(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function J6(e){e.clearSnapshot()}function ex(e){e.clearMeasurements()}function Q6(e){e.isLayoutDirty=!1}function eR(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function tx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function tR(e){e.resolveTargetDelta()}function nR(e){e.calcProjection()}function rR(e){e.resetSkewAndRotation()}function iR(e){e.removeLeadSnapshot()}function nx(e,t,n){e.translate=rt(t.translate,0,n),e.scale=rt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function rx(e,t,n,r){e.min=rt(t.min,n.min,r),e.max=rt(t.max,n.max,r)}function sR(e,t,n,r){rx(e.x,t.x,n.x,r),rx(e.y,t.y,n.y,r)}function oR(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const aR={duration:.45,ease:[.4,0,.1,1]},ix=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sx=ix("applewebkit/")&&!ix("chrome/")?Math.round:Nt;function ox(e){e.min=sx(e.min),e.max=sx(e.max)}function lR(e){ox(e.x),ox(e.y)}function ax(e,t,n){return e==="position"||e==="preserve-aspect"&&!u6(K1(t),K1(n),.2)}function cR(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const uR=Q1({attachResizeListener:(e,t)=>Co(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ed={current:void 0},lx=Q1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ed.current){const e=new uR({});e.mount(window),e.setOptions({layoutScroll:!0}),Ed.current=e}return Ed.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),fR={pan:{Feature:A6},drag:{Feature:P6,ProjectionNode:lx,MeasureLayout:$1}};function dR(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const a=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function cx(e,t){const n=dR(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function ux(e){return!(e.pointerType==="touch"||s1())}function hR(e,t,n={}){const[r,i,a]=cx(e,n),o=c=>{if(!ux(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{ux(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",o,i)}),a}function fx(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&&He.postRender(()=>a(t,Po(t)))}class mR extends Or{mount(){const{current:t}=this.node;t&&(this.unmount=hR(t,(n,r)=>(fx(this.node,r,"Start"),i=>fx(this.node,i,"End"))))}unmount(){}}class pR extends Or{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=To(Co(this.node.current,"focus",()=>this.onFocus()),Co(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const dx=(e,t)=>t?e===t?!0:dx(e,t.parentElement):!1,gR=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function yR(e){return gR.has(e.tagName)||e.tabIndex!==-1}const Io=new WeakSet;function hx(e){return t=>{t.key==="Enter"&&e(t)}}function Cd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const vR=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=hx(()=>{if(Io.has(n))return;Cd(n,"down");const i=hx(()=>{Cd(n,"up")}),a=()=>Cd(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 mx(e){return pd(e)&&!s1()}function bR(e,t,n={}){const[r,i,a]=cx(e,n),o=c=>{const u=c.currentTarget;if(!mx(c)||Io.has(u))return;Io.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!mx(y)||!Io.has(u))&&(Io.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||dx(u,y.target))},p=y=>{h(y,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",p,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",o,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>vR(d,i)),!yR(c)&&c.tabIndex===null&&(c.tabIndex=0))}),a}function px(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&&He.postRender(()=>a(t,Po(t)))}class xR extends Or{mount(){const{current:t}=this.node;t&&(this.unmount=bR(t,(n,r)=>(px(this.node,r,"Start"),(i,{success:a})=>px(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Pd=new WeakMap,Ad=new WeakMap,wR=e=>{const t=Pd.get(e.target);t&&t(e)},SR=e=>{e.forEach(wR)};function TR({root:e,...t}){const n=e||document;Ad.has(n)||Ad.set(n,{});const r=Ad.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(SR,{root:e,...t})),r[i]}function ER(e,t,n){const r=TR(t);return Pd.set(e,n),r.observe(e),()=>{Pd.delete(e),r.unobserve(e)}}const CR={some:0,all:1};class PR extends Or{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:CR[i]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,a&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=d?h:m;p&&p(u)};return ER(this.node.current,o,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(AR(t,n))&&this.startObserver()}unmount(){}}function AR({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const OR={inView:{Feature:PR},tap:{Feature:xR},focus:{Feature:pR},hover:{Feature:mR}},MR={layout:{ProjectionNode:lx,MeasureLayout:$1}},Od={current:null},gx={current:!1};function _R(){if(gx.current=!0,!!xf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Od.current=e.matches;e.addListener(t),t()}else Od.current=!1}const IR=[...Nb,Ct,Ar],DR=e=>IR.find(Rb(e)),$R=new WeakMap;function RR(e,t,n){for(const r in t){const i=t[r],a=n[r];if(Et(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&Ba(i.version==="12.6.2",`Attempting to mix Motion versions ${i.version} with 12.6.2 may not work as expected.`);else if(Et(a))e.addValue(r,vo(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,vo(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const yx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class NR{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=sd,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 y=Nn.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,He.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=o;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=za(n),this.isVariantNode=$v(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in p){const S=p[y];u[y]!==void 0&&Et(S)&&S.set(u[y],!1)}}mount(t){this.current=t,$R.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)),gx.current||_R(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Od.current,process.env.NODE_ENV!=="production"&&Ba(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(),Cr(this.notifyUpdate),Cr(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=ti.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&He.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 es){const n=es[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):lt()}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<yx.length;r++){const i=yx[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=RR(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=vo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Db(i)||gb(i))?i=parseFloat(i):!DR(i)&&Ar.test(n)&&(i=Eb(t,n)),this.setBaseTarget(t,Et(i)?i.get():i)),Et(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=Nf(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Et(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Bf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class vx extends NR{constructor(){super(...arguments),this.KeyframeResolver=kb}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;Et(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function LR(e){return window.getComputedStyle(e)}class kR extends vx{constructor(){super(...arguments),this.type="html",this.renderInstance=Kv}readValueFromInstance(t,n){if(ti.has(n))return W$(t,n);{const r=LR(t),i=(Af(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return w1(t,n)}build(t,n,r){_f(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return kf(t,n,r)}}class jR extends vx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&qv(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ti.has(n)){const r=Tb(n);return r&&r.default||0}return n=Xv.has(n)?n:Pf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Jv(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&He.postRender(this.updateDimensions)}build(t,n,r){$f(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Zv(t,n,r,i)}mount(t){this.isSVGTag=Rf(t.tagName),super.mount(t)}}const FR=(e,t)=>Df(e)?new jR(t):new kR(t,{allowProjection:e!==I.Fragment}),VR=a$({...t6,...OR,...fR,...MR},FR),Ze=ED(VR),Md={defaultColorScheme:"aqua",t:e=>e},bx=I.createContext(Md),ze=()=>I.useContext(bx),xx=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:a})=>{const{t:o}=ze(),c={hidden:{opacity:0},visible:{opacity:1}},u={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},d=()=>{i==null||i(),r()},h=()=>{a==null||a(),r()};return v.jsx(Kn,{children:n&&v.jsx(v.Fragment,{children:v.jsx(Ze.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:c,onClick:r,children:v.jsx(Ze.div,{className:"w-full max-w-4xl mx-16 z-50",variants:u,initial:"hidden",animate:"visible",exit:"exit",onClick:m=>m.stopPropagation(),children:v.jsxs(bs,{className:"flex flex-col gap-16 p-32",children:[v.jsxs("div",{className:"flex justify-between items-center gap-16",children:[v.jsx("h3",{className:"text-black font-700 text-3xl",children:e}),v.jsx(De,{icon:tu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})]}),v.jsx("p",{className:"text-gray-500 text-xl font-600",children:t}),v.jsxs("div",{className:"flex justify-end w-full gap-16",children:[a&&v.jsx(jo,{onClick:h,variant:"transparent",className:"px-24 py-10! text-lg!",children:o("cancel")}),i&&v.jsx(jo,{onClick:d,className:"px-24 py-16 text-lg!",children:o("confirm")})]})]})})})})})};/*!
|
|
659
|
+
`),()=>{document.head.removeChild(y)}},[t]),v.jsx(hD,{isPresent:t,childRef:i,sizeRef:o,children:X.cloneElement(e,{ref:i})})}const pD=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=bf(gD),d=I.useId(),h=I.useCallback(p=>{u.set(p,!0);for(const y of u.values())if(!y)return;r&&r()},[u,r]),m=I.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),o?[Math.random(),h]:[n,h]);return I.useMemo(()=>{u.forEach((p,y)=>u.set(y,!1))},[n]),X.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=v.jsx(mD,{isPresent:n,anchorX:c,children:e})),v.jsx(ka.Provider,{value:m,children:e})};function gD(){return new Map}function Cv(e=!0){const t=I.useContext(ka);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=I.useId();I.useEffect(()=>{if(e)return i(o)},[e]);const a=I.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const ja=e=>e.key||"";function Pv(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const Kn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=Cv(a),h=I.useMemo(()=>Pv(e),[e]),m=a&&!u?[]:h.map(ja),p=I.useRef(!0),y=I.useRef(h),S=bf(()=>new Map),[b,E]=I.useState(h),[w,C]=I.useState(h);Ev(()=>{p.current=!1,y.current=h;for(let P=0;P<w.length;P++){const R=ja(w[P]);m.includes(R)?S.delete(R):S.get(R)!==!0&&S.set(R,!1)}},[w,m.length,m.join("-")]);const M=[];if(h!==b){let P=[...h];for(let R=0;R<w.length;R++){const k=w[R],j=ja(k);m.includes(j)||(P.splice(R,0,k),M.push(k))}return o==="wait"&&M.length&&(P=M),C(Pv(P)),E(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:$}=I.useContext(vf);return v.jsx(v.Fragment,{children:w.map(P=>{const R=ja(P),k=a&&!u?!1:h===w||m.includes(R),j=()=>{if(S.has(R))S.set(R,!0);else return;let z=!0;S.forEach(Z=>{Z||(z=!1)}),z&&($==null||$(),C(y.current),a&&(d==null||d()),r&&r())};return v.jsx(pD,{isPresent:k,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:k?void 0:j,anchorX:c,children:P},R)})})},Nt=e=>e;let Qi=Nt,Er=Nt;process.env.NODE_ENV!=="production"&&(Qi=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Er=(e,t)=>{if(!e)throw new Error(t)});const yD={useManualTiming:!1},Fa=["read","resolveKeyframes","update","preRender","render","postRender"],Av={value:null};function vD(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,p=!1,y=!1)=>{const b=y&&i?n:r;return p&&a.add(m),b.has(m)||b.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&Av.value&&Av.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const bD=40;function Mv(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Fa.reduce((w,C)=>(w[C]=vD(o,t?C:void 0),w),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:p}=a,y=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,bD),1),i.timestamp=w,i.isProcessing=!0,c.process(i),u.process(i),d.process(i),h.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},S=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:Fa.reduce((w,C)=>{const M=a[C];return w[C]=($,P=!1,R=!1)=>(n||S(),M.schedule($,P,R)),w},{}),cancel:w=>{for(let C=0;C<Fa.length;C++)a[Fa[C]].cancel(w)},state:i,steps:a}}const{schedule:He,cancel:Cr,state:vt,steps:Sf}=Mv(typeof requestAnimationFrame<"u"?requestAnimationFrame:Nt,!0),Ov=I.createContext({strict:!1}),_v={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"]},es={};for(const e in _v)es[e]={isEnabled:t=>_v[e].some(n=>!!t[n])};function xD(e){for(const t in e)es[t]={...es[t],...e[t]}}const wD=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 Va(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||wD.has(e)}let Iv=e=>!Va(e);function SD(e){e&&(Iv=t=>t.startsWith("on")?!Va(t):e(t))}try{SD(require("@emotion/is-prop-valid").default)}catch{}function TD(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Iv(i)||n===!0&&Va(i)||!t&&!Va(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Dv=new Set;function Ba(e,t,n){e||Dv.has(t)||(console.warn(t),Dv.add(t))}function ED(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Ba(!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 Wa=I.createContext({});function Ua(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ho(e){return typeof e=="string"||Array.isArray(e)}const Tf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ef=["initial",...Tf];function za(e){return Ua(e.animate)||Ef.some(t=>ho(e[t]))}function $v(e){return!!(za(e)||e.variants)}function CD(e,t){if(za(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ho(n)?n:void 0,animate:ho(r)?r:void 0}}return e.inherit!==!1?t:{}}function PD(e){const{initial:t,animate:n}=CD(e,I.useContext(Wa));return I.useMemo(()=>({initial:t,animate:n}),[Rv(t),Rv(n)])}function Rv(e){return Array.isArray(e)?e.join(" "):e}const AD=Symbol.for("motionComponentSymbol");function ts(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function MD(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):ts(n)&&(n.current=r))},[t])}const{schedule:Cf}=Mv(queueMicrotask,!1),Pf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Nv="data-"+Pf("framerAppearId"),Lv=I.createContext({});function OD(e,t,n,r,i){var o,a;const{visualElement:c}=I.useContext(Wa),u=I.useContext(Ov),d=I.useContext(ka),h=I.useContext(wf).reducedMotion,m=I.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const p=m.current,y=I.useContext(Lv);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&_D(m.current,n,i,y);const S=I.useRef(!1);I.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const b=n[Nv],E=I.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,b)));return Ev(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Cf.render(p.render),E.current&&p.animationState&&p.animationState.animateChanges())}),I.useEffect(()=>{p&&(!E.current&&p.animationState&&p.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,b)}),E.current=!1))}),p}function _D(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:kv(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&ts(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function kv(e){if(e)return e.options.allowProjection!==!1?e.projection:kv(e.parent)}function ID({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&xD(e);function c(d,h){let m;const p={...I.useContext(wf),...d,layoutId:DD(d)},{isStatic:y}=p,S=PD(d),b=r(d,y);if(!y&&xf){$D(p,e);const E=RD(p);m=E.MeasureLayout,S.visualElement=OD(i,b,p,t,E.ProjectionNode)}return v.jsxs(Wa.Provider,{value:S,children:[m&&S.visualElement?v.jsx(m,{visualElement:S.visualElement,...p}):null,n(i,d,MD(b,S.visualElement,h),b,y,S.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const u=I.forwardRef(c);return u[AD]=i,u}function DD({layoutId:e}){const t=I.useContext(vf).id;return t&&e!==void 0?t+"-"+e:e}function $D(e,t){const n=I.useContext(Ov).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?Qi(!1,r):Er(!1,r)}}function RD(e){const{drag:t,layout:n}=es;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 jv=e=>t=>typeof t=="string"&&t.startsWith(e),Af=jv("--"),ND=jv("var(--"),Mf=e=>ND(e)?LD.test(e.split("/*")[0].trim()):!1,LD=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,mo={};function kD(e){for(const t in e)mo[t]=e[t],Af(t)&&(mo[t].isCSSVariable=!0)}const ns=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ti=new Set(ns);function Fv(e,{layout:t,layoutId:n}){return ti.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!mo[e]||e==="opacity")}const Et=e=>!!(e&&e.getVelocity),Vv=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xn=(e,t,n)=>n>t?t:n<e?e:n,rs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},po={...rs,transform:e=>Xn(0,1,e)},Ga={...rs,default:1},go=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pr=go("deg"),Rn=go("%"),Te=go("px"),jD=go("vh"),FD=go("vw"),Bv={...Rn,parse:e=>Rn.parse(e)/100,transform:e=>Rn.transform(e*100)},VD={borderWidth:Te,borderTopWidth:Te,borderRightWidth:Te,borderBottomWidth:Te,borderLeftWidth:Te,borderRadius:Te,radius:Te,borderTopLeftRadius:Te,borderTopRightRadius:Te,borderBottomRightRadius:Te,borderBottomLeftRadius:Te,width:Te,maxWidth:Te,height:Te,maxHeight:Te,top:Te,right:Te,bottom:Te,left:Te,padding:Te,paddingTop:Te,paddingRight:Te,paddingBottom:Te,paddingLeft:Te,margin:Te,marginTop:Te,marginRight:Te,marginBottom:Te,marginLeft:Te,backgroundPositionX:Te,backgroundPositionY:Te},BD={rotate:Pr,rotateX:Pr,rotateY:Pr,rotateZ:Pr,scale:Ga,scaleX:Ga,scaleY:Ga,scaleZ:Ga,skew:Pr,skewX:Pr,skewY:Pr,distance:Te,translateX:Te,translateY:Te,translateZ:Te,x:Te,y:Te,z:Te,perspective:Te,transformPerspective:Te,opacity:po,originX:Bv,originY:Bv,originZ:Te},Wv={...rs,transform:Math.round},Of={...VD,...BD,zIndex:Wv,size:Te,fillOpacity:po,strokeOpacity:po,numOctaves:Wv},WD={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},UD=ns.length;function zD(e,t,n){let r="",i=!0;for(let o=0;o<UD;o++){const a=ns[o],c=e[a];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(a.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Vv(c,Of[a]);if(!u){i=!1;const h=WD[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function _f(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(ti.has(u)){a=!0;continue}else if(Af(u)){i[u]=d;continue}else{const h=Vv(d,Of[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=zD(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${d} ${h}`}}const If=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Uv(e,t,n){for(const r in t)!Et(t[r])&&!Fv(r,n)&&(e[r]=t[r])}function GD({transformTemplate:e},t){return I.useMemo(()=>{const n=If();return _f(n,t,e),Object.assign({},n.vars,n.style)},[t])}function YD(e,t){const n=e.style||{},r={};return Uv(r,n,e),Object.assign(r,GD(e,t)),r}function HD(e,t){const n={},r=YD(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 qD=["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 Df(e){return typeof e!="string"||e.includes("-")?!1:!!(qD.indexOf(e)>-1||/[A-Z]/u.test(e))}const KD={offset:"stroke-dashoffset",array:"stroke-dasharray"},XD={offset:"strokeDashoffset",array:"strokeDasharray"};function ZD(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?KD:XD;e[o.offset]=Te.transform(-r);const a=Te.transform(t),c=Te.transform(n);e[o.array]=`${a} ${c}`}function zv(e,t,n){return typeof e=="string"?e:Te.transform(t+n*e)}function JD(e,t,n){const r=zv(t,e.x,e.width),i=zv(n,e.y,e.height);return`${r} ${i}`}function $f(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(_f(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:y,dimensions:S}=e;p.transform&&(S&&(y.transform=p.transform),delete p.transform),S&&(i!==void 0||o!==void 0||y.transform)&&(y.transformOrigin=JD(S,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&ZD(p,a,c,u,!1)}const Gv=()=>({...If(),attrs:{}}),Rf=e=>typeof e=="string"&&e.toLowerCase()==="svg";function QD(e,t,n,r){const i=I.useMemo(()=>{const o=Gv();return $f(o,t,Rf(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Uv(o,e.style,e),i.style={...o,...i.style}}return i}function e$(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(Df(n)?QD:HD)(r,o,a,n),d=TD(r,typeof n=="string",e),h=n!==I.Fragment?{...d,...u,ref:i}:{},{children:m}=r,p=I.useMemo(()=>Et(m)?m.get():m,[m]);return I.createElement(n,{...h,children:p})}}function Yv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Nf(e,t,n,r){if(typeof t=="function"){const[i,o]=Yv(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Yv(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Lf=e=>Array.isArray(e),t$=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),n$=e=>Lf(e)?e[e.length-1]||0:e;function Ya(e){const t=Et(e)?e.get():e;return t$(t)?t.toValue():t}function r$({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:i$(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Hv=e=>(t,n)=>{const r=I.useContext(Wa),i=I.useContext(ka),o=()=>r$(e,t,r,i);return n?o():bf(o)};function i$(e,t,n,r){const i={},o=r(e,{});for(const p in o)i[p]=Ya(o[p]);let{initial:a,animate:c}=e;const u=za(e),d=$v(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?c:a;if(m&&typeof m!="boolean"&&!Ua(m)){const p=Array.isArray(m)?m:[m];for(let y=0;y<p.length;y++){const S=Nf(e,p[y]);if(S){const{transitionEnd:b,transition:E,...w}=S;for(const C in w){let M=w[C];if(Array.isArray(M)){const $=h?M.length-1:0;M=M[$]}M!==null&&(i[C]=M)}for(const C in b)i[C]=b[C]}}}return i}function kf(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(Et(i[a])||t.style&&Et(t.style[a])||Fv(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}const s$={useVisualState:Hv({scrapeMotionValuesFromProps:kf,createRenderState:If})};function qv(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function Kv(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Xv=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 Zv(e,t,n,r){Kv(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Xv.has(i)?i:Pf(i),t.attrs[i])}function Jv(e,t,n){const r=kf(e,t,n);for(const i in e)if(Et(e[i])||Et(t[i])){const o=ns.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const Qv=["x","y","width","height","cx","cy","r"],o$={useVisualState:Hv({scrapeMotionValuesFromProps:Jv,createRenderState:Gv,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in i)if(ti.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<Qv.length;c++){const u=Qv[c];e[u]!==t[u]&&(a=!0)}a&&He.read(()=>{qv(n,r),He.render(()=>{$f(r,i,Rf(n.tagName),e.transformTemplate),Zv(n,r)})})}})};function a$(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Df(r)?o$:s$,preloadedFeatures:e,useRender:e$(i),createVisualElement:t,Component:r};return ID(a)}}function yo(e,t,n){const r=e.getProps();return Nf(r,t,n!==void 0?n:r.custom,e)}function jf(e,t){return e?e[t]||e.default||e:void 0}const eb=new Set(["width","height","top","left","right","bottom",...ns]);function Ff(e,t){e.indexOf(t)===-1&&e.push(t)}function Vf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Bf{constructor(){this.subscriptions=[]}add(t){return Ff(this.subscriptions,t),()=>Vf(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tb(e,t){return t?e*(1e3/t):0}let Ha;function l$(){Ha=void 0}const Nn={now:()=>(Ha===void 0&&Nn.set(vt.isProcessing||yD.useManualTiming?vt.timestamp:performance.now()),Ha),set:e=>{Ha=e,queueMicrotask(l$)}},nb=30,c$=e=>!isNaN(parseFloat(e));class u${constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Nn.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Nn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=c$(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Ba(!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 Bf);const r=this.events[t].add(n);return t==="change"?()=>{r(),He.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Nn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>nb)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,nb);return tb(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function vo(e,t){return new u$(e,t)}function f$(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vo(n))}function d$(e,t){const n=yo(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=n$(o[a]);f$(e,a,c)}}function h$(e){return!!(Et(e)&&e.add)}function Wf(e,t){const n=e.getValue("willChange");if(h$(n))return n.add(t)}function rb(e){return e.props[Nv]}function Uf(e){let t;return()=>(t===void 0&&(t=e()),t)}const m$=Uf(()=>window.ScrollTimeline!==void 0);class p${constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(m$()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class g$ extends p${then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const Ln=e=>e*1e3,Zn=e=>e/1e3;function zf(e){return typeof e=="function"}function ib(e,t){e.timeline=t,e.onfinish=null}const Gf=e=>Array.isArray(e)&&typeof e[0]=="number",y$={linearEasing:void 0};function v$(e,t){const n=Uf(e);return()=>{var r;return(r=y$[t])!==null&&r!==void 0?r:n()}}const qa=v$(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),is=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},sb=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(is(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function ob(e){return!!(typeof e=="function"&&qa()||!e||typeof e=="string"&&(e in Yf||qa())||Gf(e)||Array.isArray(e)&&e.every(ob))}const bo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Yf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bo([0,.65,.55,1]),circOut:bo([.55,0,1,.45]),backIn:bo([.31,.01,.66,-.59]),backOut:bo([.33,1.53,.69,.99])};function ab(e,t){if(e)return typeof e=="function"&&qa()?sb(e,t):Gf(e)?bo(e):Array.isArray(e)?e.map(n=>ab(n,t)||Yf.easeOut):Yf[e]}const lb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,b$=1e-7,x$=12;function w$(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=lb(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>b$&&++c<x$);return a}function xo(e,t,n,r){if(e===t&&n===r)return Nt;const i=o=>w$(o,0,1,e,n);return o=>o===0||o===1?o:lb(i(o),t,r)}const cb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ub=e=>t=>1-e(1-t),fb=xo(.33,1.53,.69,.99),Hf=ub(fb),db=cb(Hf),hb=e=>(e*=2)<1?.5*Hf(e):.5*(2-Math.pow(2,-10*(e-1))),qf=e=>1-Math.sin(Math.acos(e)),mb=ub(qf),pb=cb(qf),gb=e=>/^0[^.\s]+$/u.test(e);function S$(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||gb(e):!0}const wo=e=>Math.round(e*1e5)/1e5,Kf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function T$(e){return e==null}const E$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Xf=(e,t)=>n=>!!(typeof n=="string"&&E$.test(n)&&n.startsWith(e)||t&&!T$(n)&&Object.prototype.hasOwnProperty.call(n,t)),yb=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Kf);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},C$=e=>Xn(0,255,e),Zf={...rs,transform:e=>Math.round(C$(e))},ni={test:Xf("rgb","red"),parse:yb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Zf.transform(e)+", "+Zf.transform(t)+", "+Zf.transform(n)+", "+wo(po.transform(r))+")"};function P$(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 Jf={test:Xf("#"),parse:P$,transform:ni.transform},ss={test:Xf("hsl","hue"),parse:yb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Rn.transform(wo(t))+", "+Rn.transform(wo(n))+", "+wo(po.transform(r))+")"},Ct={test:e=>ni.test(e)||Jf.test(e)||ss.test(e),parse:e=>ni.test(e)?ni.parse(e):ss.test(e)?ss.parse(e):Jf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ni.transform(e):ss.transform(e)},A$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function M$(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Kf))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(A$))===null||n===void 0?void 0:n.length)||0)>0}const vb="number",bb="color",O$="var",_$="var(",xb="${}",I$=/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 So(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(I$,u=>(Ct.test(u)?(r.color.push(o),i.push(bb),n.push(Ct.parse(u))):u.startsWith(_$)?(r.var.push(o),i.push(O$),n.push(u)):(r.number.push(o),i.push(vb),n.push(parseFloat(u))),++o,xb)).split(xb);return{values:n,split:c,indexes:r,types:i}}function wb(e){return So(e).values}function Sb(e){const{split:t,types:n}=So(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const c=n[a];c===vb?o+=wo(i[a]):c===bb?o+=Ct.transform(i[a]):o+=i[a]}return o}}const D$=e=>typeof e=="number"?0:e;function $$(e){const t=wb(e);return Sb(e)(t.map(D$))}const Ar={test:M$,parse:wb,createTransformer:Sb,getAnimatableNone:$$},R$=new Set(["brightness","contrast","saturate","opacity"]);function N$(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Kf)||[];if(!r)return e;const i=n.replace(r,"");let o=R$.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const L$=/\b([a-z-]*)\(.*?\)/gu,Qf={...Ar,getAnimatableNone:e=>{const t=e.match(L$);return t?t.map(N$).join(" "):e}},k$={...Of,color:Ct,backgroundColor:Ct,outlineColor:Ct,fill:Ct,stroke:Ct,borderColor:Ct,borderTopColor:Ct,borderRightColor:Ct,borderBottomColor:Ct,borderLeftColor:Ct,filter:Qf,WebkitFilter:Qf},Tb=e=>k$[e];function Eb(e,t){let n=Tb(e);return n!==Qf&&(n=Ar),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const j$=new Set(["auto","none","0"]);function F$(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!j$.has(o)&&So(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Eb(n,i)}const ri=e=>e*180/Math.PI,ed=e=>{const t=ri(Math.atan2(e[1],e[0]));return td(t)},V$={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ed,rotateZ:ed,skewX:e=>ri(Math.atan(e[1])),skewY:e=>ri(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},td=e=>(e=e%360,e<0&&(e+=360),e),Cb=ed,Pb=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ab=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),B$={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Pb,scaleY:Ab,scale:e=>(Pb(e)+Ab(e))/2,rotateX:e=>td(ri(Math.atan2(e[6],e[5]))),rotateY:e=>td(ri(Math.atan2(-e[2],e[0]))),rotateZ:Cb,rotate:Cb,skewX:e=>ri(Math.atan(e[4])),skewY:e=>ri(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Mb(e){return e.includes("scale")?1:0}function nd(e,t){if(!e||e==="none")return Mb(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=B$,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=V$,i=c}if(!i)return Mb(t);const o=r[t],a=i[1].split(",").map(U$);return typeof o=="function"?o(a):a[o]}const W$=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return nd(n,t)};function U$(e){return parseFloat(e.trim())}const Ob=e=>e===rs||e===Te,z$=new Set(["x","y","z"]),G$=ns.filter(e=>!z$.has(e));function Y$(e){const t=[];return G$.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const os={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})=>nd(t,"x"),y:(e,{transform:t})=>nd(t,"y")};os.translateX=os.x,os.translateY=os.y;const ii=new Set;let rd=!1,id=!1;function _b(){if(id){const e=Array.from(ii).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Y$(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}id=!1,rd=!1,ii.forEach(e=>e.complete()),ii.clear()}function Ib(){ii.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(id=!0)})}function H$(){Ib(),_b()}class sd{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ii.add(this),rd||(rd=!0,He.read(Ib),He.resolveKeyframes(_b))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ii.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ii.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Db=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),q$=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function K$(e){const t=q$.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const X$=4;function $b(e,t,n=1){Er(n<=X$,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=K$(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return Db(a)?parseFloat(a):a}return Mf(i)?$b(i,t,n+1):i}const Rb=e=>t=>t.test(e),Nb=[rs,Te,Rn,Pr,FD,jD,{test:e=>e==="auto",parse:e=>e}],Lb=e=>Nb.find(Rb(e));class kb extends sd{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Mf(d))){const h=$b(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!eb.has(r)||t.length!==2)return;const[i,o]=t,a=Lb(i),c=Lb(o);if(a!==c)if(Ob(a)&&Ob(c))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)S$(t[i])&&r.push(i);r.length&&F$(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=os[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=os[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,d])=>{n.getValue(u).set(d)}),this.resolveNoneKeyframes()}}const jb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ar.test(e)||e==="0")&&!e.startsWith("url("));function Z$(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 J$(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=jb(i,t),c=jb(o,t);return Qi(a===c,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:Z$(e)||(n==="spring"||zf(n))&&r}const Q$=e=>e!==null;function Ka(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Q$),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const e4=40;class Fb{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Nn.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>e4?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&H$(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Nn.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!J$(t,r,i,o))if(a)this.options.duration=0;else{u&&u(Ka(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const od=2e4;function Vb(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<od;)t+=n,r=e.next(t);return t>=od?1/0:t}const rt=(e,t,n)=>e+(t-e)*n;function ad(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 t4({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=ad(u,c,e+1/3),o=ad(u,c,e),a=ad(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Xa(e,t){return n=>n>0?t:e}const ld=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},n4=[Jf,ni,ss],r4=e=>n4.find(t=>t.test(e));function Bb(e){const t=r4(e);if(Qi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ss&&(n=t4(n)),n}const Wb=(e,t)=>{const n=Bb(e),r=Bb(t);if(!n||!r)return Xa(e,t);const i={...n};return o=>(i.red=ld(n.red,r.red,o),i.green=ld(n.green,r.green,o),i.blue=ld(n.blue,r.blue,o),i.alpha=rt(n.alpha,r.alpha,o),ni.transform(i))},i4=(e,t)=>n=>t(e(n)),To=(...e)=>e.reduce(i4),cd=new Set(["none","hidden"]);function s4(e,t){return cd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function o4(e,t){return n=>rt(e,t,n)}function ud(e){return typeof e=="number"?o4:typeof e=="string"?Mf(e)?Xa:Ct.test(e)?Wb:c4:Array.isArray(e)?Ub:typeof e=="object"?Ct.test(e)?Wb:a4:Xa}function Ub(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>ud(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function a4(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=ud(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function l4(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][i[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,i[a]++}return r}const c4=(e,t)=>{const n=Ar.createTransformer(t),r=So(e),i=So(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?cd.has(e)&&!i.values.length||cd.has(t)&&!r.values.length?s4(e,t):To(Ub(l4(r,i),i.values),n):(Qi(!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.`),Xa(e,t))};function zb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?rt(e,t,n):ud(e)(e,t)}const u4=5;function Gb(e,t,n){const r=Math.max(t-u4,0);return tb(n-e(r),t-r)}const it={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},Yb=.001;function f4({duration:e=it.duration,bounce:t=it.bounce,velocity:n=it.velocity,mass:r=it.mass}){let i,o;Qi(e<=Ln(it.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Xn(it.minDamping,it.maxDamping,a),e=Xn(it.minDuration,it.maxDuration,Zn(e)),a<1?(i=d=>{const h=d*a,m=h*e,p=h-n,y=fd(d,a),S=Math.exp(-m);return Yb-p/y*S},o=d=>{const m=d*a*e,p=m*n+n,y=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),b=fd(Math.pow(d,2),a);return(-i(d)+Yb>0?-1:1)*((p-y)*S)/b}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const c=5/e,u=h4(i,o,c);if(e=Ln(e),isNaN(u))return{stiffness:it.stiffness,damping:it.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const d4=12;function h4(e,t,n){let r=n;for(let i=1;i<d4;i++)r=r-e(r)/t(r);return r}function fd(e,t){return e*Math.sqrt(1-t*t)}const m4=["duration","bounce"],p4=["stiffness","damping","mass"];function Hb(e,t){return t.some(n=>e[n]!==void 0)}function g4(e){let t={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!Hb(e,p4)&&Hb(e,m4))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Xn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:it.mass,stiffness:i,damping:o}}else{const n=f4(e);t={...t,...n,mass:it.mass},t.isResolvedFromDuration=!0}return t}function qb(e=it.visualDuration,t=it.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:m,velocity:p,isResolvedFromDuration:y}=g4({...n,velocity:-Zn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),E=a-o,w=Zn(Math.sqrt(u/h)),C=Math.abs(E)<5;r||(r=C?it.restSpeed.granular:it.restSpeed.default),i||(i=C?it.restDelta.granular:it.restDelta.default);let M;if(b<1){const P=fd(w,b);M=R=>{const k=Math.exp(-b*w*R);return a-k*((S+b*w*E)/P*Math.sin(P*R)+E*Math.cos(P*R))}}else if(b===1)M=P=>a-Math.exp(-w*P)*(E+(S+w*E)*P);else{const P=w*Math.sqrt(b*b-1);M=R=>{const k=Math.exp(-b*w*R),j=Math.min(P*R,300);return a-k*((S+b*w*E)*Math.sinh(j)+P*E*Math.cosh(j))/P}}const $={calculatedDuration:y&&m||null,next:P=>{const R=M(P);if(y)c.done=P>=m;else{let k=0;b<1&&(k=P===0?Ln(S):Gb(M,P,R));const j=Math.abs(k)<=r,z=Math.abs(a-R)<=i;c.done=j&&z}return c.value=c.done?a:R,c},toString:()=>{const P=Math.min(Vb($),od),R=sb(k=>$.next(P*k).value,P,30);return P+"ms "+R}};return $}function Kb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},y=j=>c!==void 0&&j<c||u!==void 0&&j>u,S=j=>c===void 0?u:u===void 0||Math.abs(c-j)<Math.abs(u-j)?c:u;let b=n*t;const E=m+b,w=a===void 0?E:a(E);w!==E&&(b=w-m);const C=j=>-b*Math.exp(-j/r),M=j=>w+C(j),$=j=>{const z=C(j),Z=M(j);p.done=Math.abs(z)<=d,p.value=p.done?w:Z};let P,R;const k=j=>{y(p.value)&&(P=j,R=qb({keyframes:[p.value,S(p.value)],velocity:Gb(M,j,p.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return k(0),{calculatedDuration:null,next:j=>{let z=!1;return!R&&P===void 0&&(z=!0,$(j),k(j)),P!==void 0&&j>=P?R.next(j-P):(!z&&$(j),p)}}}const y4=xo(.42,0,1,1),v4=xo(0,0,.58,1),Xb=xo(.42,0,.58,1),b4=e=>Array.isArray(e)&&typeof e[0]!="number",Zb={linear:Nt,easeIn:y4,easeInOut:Xb,easeOut:v4,circIn:qf,circInOut:pb,circOut:mb,backIn:Hf,backInOut:db,backOut:fb,anticipate:hb},Jb=e=>{if(Gf(e)){Er(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return xo(t,n,r,i)}else if(typeof e=="string")return Er(Zb[e]!==void 0,`Invalid easing type '${e}'`),Zb[e];return e};function x4(e,t,n){const r=[],i=n||zb,o=e.length-1;for(let a=0;a<o;a++){let c=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Nt:t;c=To(u,c)}r.push(c)}return r}function w4(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Er(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=x4(t,r,i),u=c.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const p=is(e[m],e[m+1],h);return c[m](p)};return n?h=>d(Xn(e[0],e[o-1],h)):d}function S4(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=is(0,t,r);e.push(rt(n,1,i))}}function T4(e){const t=[0];return S4(t,e.length-1),t}function E4(e,t){return e.map(n=>n*t)}function C4(e,t){return e.map(()=>t||Xb).splice(0,e.length-1)}function Eo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=b4(r)?r.map(Jb):Jb(r),o={done:!1,value:t[0]},a=E4(n&&n.length===t.length?n:T4(t),e),c=w4(a,t,{ease:Array.isArray(i)?i:C4(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const P4=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>Cr(t),now:()=>vt.isProcessing?vt.timestamp:Nn.now()}},A4={decay:Kb,inertia:Kb,tween:Eo,keyframes:Eo,spring:qb},M4=e=>e/100;class dd extends Fb{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||sd,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=zf(n)?n:A4[n]||Eo;let u,d;process.env.NODE_ENV!=="production"&&c!==Eo&&Er(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==Eo&&typeof t[0]!="number"&&(u=To(M4,zb(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=Vb(h));const{calculatedDuration:m}=h,p=m+i,y=p*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:j}=this.options;return{done:!0,value:j[j.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:y,repeatType:S,repeatDelay:b,onUpdate:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const w=this.currentTime-p*(this.speed>=0?1:-1),C=this.speed>=0?w<0:w>h;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let M=this.currentTime,$=o;if(y){const j=Math.min(this.currentTime,h)/m;let z=Math.floor(j),Z=j%1;!Z&&j>=1&&(Z=1),Z===1&&z--,z=Math.min(z,y+1),!!(z%2)&&(S==="reverse"?(Z=1-Z,b&&(Z-=b/m)):S==="mirror"&&($=a)),M=Xn(0,1,Z)*m}const P=C?{done:!1,value:u[0]}:$.next(M);c&&(P.value=c(P.value));let{done:R}=P;!C&&d!==null&&(R=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return k&&i!==void 0&&(P.value=Ka(u,this.options,i)),E&&E(P.value),k&&this.finish(),P}get duration(){const{resolved:t}=this;return t?Zn(t.calculatedDuration):0}get time(){return Zn(this.currentTime)}set time(t){t=Ln(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Zn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=P4,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const O4=new Set(["opacity","clipPath","filter","transform"]);function _4(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=ab(c,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const I4=Uf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Za=10,D4=2e4;function $4(e){return zf(e.type)||e.type==="spring"||!ob(e.ease)}function R4(e,t){const n=new dd({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<D4;)r=n.sample(o),i.push(r.value),o+=Za;return{times:void 0,keyframes:i,duration:o-Za,ease:"linear"}}const Qb={anticipate:hb,backInOut:db,circInOut:pb};function N4(e){return e in Qb}class e1 extends Fb{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new kb(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&qa()&&N4(o)&&(o=Qb[o]),$4(this.options)){const{onComplete:m,onUpdate:p,motionValue:y,element:S,...b}=this.options,E=R4(t,b);t=E.keyframes,t.length===1&&(t[1]=t[0]),r=E.duration,i=E.times,o=E.ease,a="keyframes"}const h=_4(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(ib(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ka(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Zn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Zn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Ln(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Nt;const{animation:r}=n;ib(r,t)}return Nt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:p,...y}=this.options,S=new dd({...y,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),b=Ln(this.time);d.setWithVelocity(S.sample(b-Za).value,S.sample(b).value,Za)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return I4()&&r&&O4.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}}const L4={type:"spring",stiffness:500,damping:25,restSpeed:10},k4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),j4={type:"keyframes",duration:.8},F4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},V4=(e,{keyframes:t})=>t.length>2?j4:ti.has(e)?e.startsWith("scale")?k4(t[1]):L4:F4;function B4({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const hd=(e,t,n,r={},i,o)=>a=>{const c=jf(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Ln(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};B4(c)||(h={...h,...V4(e,h)}),h.duration&&(h.duration=Ln(h.duration)),h.repeatDelay&&(h.repeatDelay=Ln(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)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const p=Ka(h.keyframes,c);if(p!==void 0)return He.update(()=>{h.onUpdate(p),h.onComplete()}),new g$([])}return!o&&e1.supports(h)?new e1(h):new dd(h)};function W4({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function t1(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const p=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),y=u[m];if(y===void 0||h&&W4(h,m))continue;const S={delay:n,...jf(a||{},m)};let b=!1;if(window.MotionHandoffAnimation){const w=rb(e);if(w){const C=window.MotionHandoffAnimation(w,m,He);C!==null&&(S.startTime=C,b=!0)}}Wf(e,m),p.start(hd(m,p,y,e.shouldReduceMotion&&eb.has(m)?{type:!1}:S,e,b));const E=p.animation;E&&d.push(E)}return c&&Promise.all(d).then(()=>{He.update(()=>{c&&d$(e,c)})}),d}function md(e,t,n={}){var r;const i=yo(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(t1(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return U4(e,t,h+d,m,p,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[a,c]:[c,a];return d().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function U4(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(z4).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(md(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function z4(e,t){return e.sortNodePosition(t)}function G4(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>md(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=md(e,t,n);else{const i=typeof t=="function"?yo(e,t,n.custom):t;r=Promise.all(t1(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function n1(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 Y4=Ef.length;function r1(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?r1(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Y4;n++){const r=Ef[n],i=e.props[r];(ho(i)||i===!1)&&(t[r]=i)}return t}const H4=[...Tf].reverse(),q4=Tf.length;function K4(e){return t=>Promise.all(t.map(({animation:n,options:r})=>G4(e,n,r)))}function X4(e){let t=K4(e),n=i1(),r=!0;const i=u=>(d,h)=>{var m;const p=yo(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:y,transitionEnd:S,...b}=p;d={...d,...b,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=r1(e.parent)||{},m=[],p=new Set;let y={},S=1/0;for(let E=0;E<q4;E++){const w=H4[E],C=n[w],M=d[w]!==void 0?d[w]:h[w],$=ho(M),P=w===u?C.isActive:null;P===!1&&(S=E);let R=M===h[w]&&M!==d[w]&&$;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),C.protectedKeys={...y},!C.isActive&&P===null||!M&&!C.prevProp||Ua(M)||typeof M=="boolean")continue;const k=Z4(C.prevProp,M);let j=k||w===u&&C.isActive&&!R&&$||E>S&&$,z=!1;const Z=Array.isArray(M)?M:[M];let te=Z.reduce(i(w),{});P===!1&&(te={});const{prevResolvedValues:ce={}}=C,ve={...ce,...te},fe=N=>{j=!0,p.has(N)&&(z=!0,p.delete(N)),C.needsAnimating[N]=!0;const W=e.getValue(N);W&&(W.liveStyle=!1)};for(const N in ve){const W=te[N],q=ce[N];if(y.hasOwnProperty(N))continue;let O=!1;Lf(W)&&Lf(q)?O=!n1(W,q):O=W!==q,O?W!=null?fe(N):p.add(N):W!==void 0&&p.has(N)?fe(N):C.protectedKeys[N]=!0}C.prevProp=M,C.prevResolvedValues=te,C.isActive&&(y={...y,...te}),r&&e.blockInitialAnimation&&(j=!1),j&&(!(R&&k)||z)&&m.push(...Z.map(N=>({animation:N,options:{type:w}})))}if(p.size){const E={};if(typeof d.initial!="boolean"){const w=yo(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(E.transition=w.transition)}p.forEach(w=>{const C=e.getBaseTarget(w),M=e.getValue(w);M&&(M.liveStyle=!0),E[w]=C??null}),m.push({animation:E})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(m):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var y;return(y=p.animationState)===null||y===void 0?void 0:y.setActive(u,d)}),n[u].isActive=d;const m=a(u);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=i1(),r=!0}}}function Z4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!n1(t,e):!1}function si(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function i1(){return{animate:si(!0),whileInView:si(),whileHover:si(),whileTap:si(),whileDrag:si(),whileFocus:si(),exit:si()}}class Mr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class J4 extends Mr{constructor(t){super(t),t.animationState||(t.animationState=X4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ua(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let Q4=0;class e5 extends Mr{constructor(){super(...arguments),this.id=Q4++}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 t5={animation:{Feature:J4},exit:{Feature:e5}},vn={x:!1,y:!1};function s1(){return vn.x||vn.y}function n5(e){return e==="x"||e==="y"?vn[e]?null:(vn[e]=!0,()=>{vn[e]=!1}):vn.x||vn.y?null:(vn.x=vn.y=!0,()=>{vn.x=vn.y=!1})}function Co(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const pd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Po(e){return{point:{x:e.pageX,y:e.pageY}}}const r5=e=>t=>pd(t)&&e(t,Po(t));function Ao(e,t,n,r){return Co(e,t,r5(n),r)}function o1({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function i5({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function s5(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 a1=1e-4,o5=1-a1,a5=1+a1,l1=.01,l5=0-l1,c5=0+l1;function _t(e){return e.max-e.min}function u5(e,t,n){return Math.abs(e-t)<=n}function c1(e,t,n,r=.5){e.origin=r,e.originPoint=rt(t.min,t.max,e.origin),e.scale=_t(n)/_t(t),e.translate=rt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=o5&&e.scale<=a5||isNaN(e.scale))&&(e.scale=1),(e.translate>=l5&&e.translate<=c5||isNaN(e.translate))&&(e.translate=0)}function Mo(e,t,n,r){c1(e.x,t.x,n.x,r?r.originX:void 0),c1(e.y,t.y,n.y,r?r.originY:void 0)}function u1(e,t,n){e.min=n.min+t.min,e.max=e.min+_t(t)}function f5(e,t,n){u1(e.x,t.x,n.x),u1(e.y,t.y,n.y)}function f1(e,t,n){e.min=t.min-n.min,e.max=e.min+_t(t)}function Oo(e,t,n){f1(e.x,t.x,n.x),f1(e.y,t.y,n.y)}const d1=()=>({translate:0,scale:1,origin:0,originPoint:0}),as=()=>({x:d1(),y:d1()}),h1=()=>({min:0,max:0}),lt=()=>({x:h1(),y:h1()});function rn(e){return[e("x"),e("y")]}function gd(e){return e===void 0||e===1}function yd({scale:e,scaleX:t,scaleY:n}){return!gd(e)||!gd(t)||!gd(n)}function oi(e){return yd(e)||m1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function m1(e){return p1(e.x)||p1(e.y)}function p1(e){return e&&e!=="0%"}function Ja(e,t,n){const r=e-n,i=t*r;return n+i}function g1(e,t,n,r,i){return i!==void 0&&(e=Ja(e,i,r)),Ja(e,n,r)+t}function vd(e,t=0,n=1,r,i){e.min=g1(e.min,t,n,r,i),e.max=g1(e.max,t,n,r,i)}function y1(e,{x:t,y:n}){vd(e.x,t.translate,t.scale,t.originPoint),vd(e.y,n.translate,n.scale,n.originPoint)}const v1=.999999999999,b1=1.0000000000001;function d5(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&cs(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,y1(e,a)),r&&oi(o.latestValues)&&cs(e,o.latestValues))}t.x<b1&&t.x>v1&&(t.x=1),t.y<b1&&t.y>v1&&(t.y=1)}function ls(e,t){e.min=e.min+t,e.max=e.max+t}function x1(e,t,n,r,i=.5){const o=rt(e.min,e.max,i);vd(e,t,n,o,r)}function cs(e,t){x1(e.x,t.x,t.scaleX,t.scale,t.originX),x1(e.y,t.y,t.scaleY,t.scale,t.originY)}function w1(e,t){return o1(s5(e.getBoundingClientRect(),t))}function h5(e,t,n){const r=w1(e,n),{scroll:i}=t;return i&&(ls(r.x,i.offset.x),ls(r.y,i.offset.y)),r}const S1=({current:e})=>e?e.ownerDocument.defaultView:null,T1=(e,t)=>Math.abs(e-t);function m5(e,t){const n=T1(e.x,t.x),r=T1(e.y,t.y);return Math.sqrt(n**2+r**2)}class E1{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=xd(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=m5(m.offset,{x:0,y:0})>=3;if(!p&&!y)return;const{point:S}=m,{timestamp:b}=vt;this.history.push({...S,timestamp:b});const{onStart:E,onMove:w}=this.handlers;p||(E&&E(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=bd(p,this.transformPagePoint),He.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:y,onSessionEnd:S,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=xd(m.type==="pointercancel"?this.lastMoveEventInfo:bd(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,E),S&&S(m,E)},!pd(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Po(t),c=bd(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=vt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,xd(c,this.history)),this.removeListeners=To(Ao(this.contextWindow,"pointermove",this.handlePointerMove),Ao(this.contextWindow,"pointerup",this.handlePointerUp),Ao(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Cr(this.updatePoint)}}function bd(e,t){return t?{point:t(e.point)}:e}function C1(e,t){return{x:e.x-t.x,y:e.y-t.y}}function xd({point:e},t){return{point:e,delta:C1(e,P1(t)),offset:C1(e,p5(t)),velocity:g5(t,.1)}}function p5(e){return e[0]}function P1(e){return e[e.length-1]}function g5(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=P1(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ln(t)));)n--;if(!r)return{x:0,y:0};const o=Zn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function y5(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?rt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?rt(n,e,r.max):Math.min(e,n)),e}function A1(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 v5(e,{top:t,left:n,bottom:r,right:i}){return{x:A1(e.x,n,i),y:A1(e.y,t,r)}}function M1(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 b5(e,t){return{x:M1(e.x,t.x),y:M1(e.y,t.y)}}function x5(e,t){let n=.5;const r=_t(e),i=_t(t);return i>r?n=is(t.min,t.max-r,e.min):r>i&&(n=is(e.min,e.max-i,t.min)),Xn(0,1,n)}function w5(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 wd=.35;function S5(e=wd){return e===!1?e=0:e===!0&&(e=wd),{x:O1(e,"left","right"),y:O1(e,"top","bottom")}}function O1(e,t,n){return{min:_1(e,t),max:_1(e,n)}}function _1(e,t){return typeof e=="number"?e:e[t]||0}const T5=new WeakMap;class E5{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=lt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Po(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:y,onDragStart:S}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=n5(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rn(E=>{let w=this.getAxisMotionValue(E).get()||0;if(Rn.test(w)){const{projection:C}=this.visualElement;if(C&&C.layout){const M=C.layout.layoutBox[E];M&&(w=_t(M)*(parseFloat(w)/100))}}this.originPoint[E]=w}),S&&He.postRender(()=>S(h,m)),Wf(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:p,dragDirectionLock:y,onDirectionLock:S,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:E}=m;if(y&&this.currentDirection===null){this.currentDirection=C5(E),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,E),this.updateAxis("y",m.point,E),this.visualElement.render(),b&&b(h,m)},c=(h,m)=>this.stop(h,m),u=()=>rn(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new E1(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:S1(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&He.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Qa(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=y5(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&ts(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=v5(i.layoutBox,n):this.constraints=!1,this.elastic=S5(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=w5(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ts(t))return!1;const r=t.current;Er(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=h5(r,i.root,this.visualElement.getTransformPagePoint());let a=b5(i.layout.layoutBox,o);if(n){const c=n(i5(a));this.hasMutatedConstraints=!!c,c&&(a=o1(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=rn(h=>{if(!Qa(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const p=i?200:1e6,y=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Wf(this.visualElement,t),r.start(hd(t,r,0,n,this.visualElement,!1))}stopAnimation(){rn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){rn(n=>{const{drag:r}=this.getProps();if(!Qa(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(t[n]-rt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ts(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};rn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();i[a]=x5({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rn(a=>{if(!Qa(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(rt(u,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;T5.set(this.visualElement,this);const t=this.visualElement.current,n=Ao(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();ts(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),He.read(r);const a=Co(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(rn(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=u[h].translate,m.set(m.get()+u[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=wd,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function Qa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function C5(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class P5 extends Mr{constructor(t){super(t),this.removeGroupControls=Nt,this.removeListeners=Nt,this.controls=new E5(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Nt}unmount(){this.removeGroupControls(),this.removeListeners()}}const I1=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};class A5 extends Mr{constructor(){super(...arguments),this.removePointerDownListener=Nt}onPointerDown(t){this.session=new E1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:S1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:I1(t),onStart:I1(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&He.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=Ao(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 el={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function D1(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const _o={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Te.test(e))e=parseFloat(e);else return e;const n=D1(e,t.target.x),r=D1(e,t.target.y);return`${n}% ${r}%`}},M5={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ar.parse(e);if(i.length>5)return r;const o=Ar.createTransformer(e),a=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+a]/=c,i[1+a]/=u;const d=rt(c,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};class O5 extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;kD(_5),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),el.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||He.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Cf.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function $1(e){const[t,n]=Cv(),r=I.useContext(vf);return v.jsx(O5,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(Lv),isPresent:t,safeToRemove:n})}const _5={borderRadius:{..._o,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_o,borderTopRightRadius:_o,borderBottomLeftRadius:_o,borderBottomRightRadius:_o,boxShadow:M5};function I5(e,t,n){const r=Et(e)?e:vo(e);return r.start(hd("",r,t,n)),r.animation}function D5(e){return e instanceof SVGElement&&e.tagName!=="svg"}const $5=(e,t)=>e.depth-t.depth;class R5{constructor(){this.children=[],this.isDirty=!1}add(t){Ff(this.children,t),this.isDirty=!0}remove(t){Vf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort($5),this.isDirty=!1,this.children.forEach(t)}}function N5(e,t){const n=Nn.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Cr(r),e(o-t))};return He.read(r,!0),()=>Cr(r)}const R1=["TopLeft","TopRight","BottomLeft","BottomRight"],L5=R1.length,N1=e=>typeof e=="string"?parseFloat(e):e,L1=e=>typeof e=="number"||Te.test(e);function k5(e,t,n,r,i,o){i?(e.opacity=rt(0,n.opacity!==void 0?n.opacity:1,j5(r)),e.opacityExit=rt(t.opacity!==void 0?t.opacity:1,0,F5(r))):o&&(e.opacity=rt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<L5;a++){const c=`border${R1[a]}Radius`;let u=k1(t,c),d=k1(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||L1(u)===L1(d)?(e[c]=Math.max(rt(N1(u),N1(d),r),0),(Rn.test(d)||Rn.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=rt(t.rotate||0,n.rotate||0,r))}function k1(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const j5=j1(0,.5,mb),F5=j1(.5,.95,Nt);function j1(e,t,n){return r=>r<e?0:r>t?1:n(is(e,t,r))}function F1(e,t){e.min=t.min,e.max=t.max}function sn(e,t){F1(e.x,t.x),F1(e.y,t.y)}function V1(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function B1(e,t,n,r,i){return e-=t,e=Ja(e,1/n,r),i!==void 0&&(e=Ja(e,1/i,r)),e}function V5(e,t=0,n=1,r=.5,i,o=e,a=e){if(Rn.test(t)&&(t=parseFloat(t),t=rt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=rt(o.min,o.max,r);e===o&&(c-=t),e.min=B1(e.min,t,n,c,i),e.max=B1(e.max,t,n,c,i)}function W1(e,t,[n,r,i],o,a){V5(e,t[n],t[r],t[i],t.scale,o,a)}const B5=["x","scaleX","originX"],W5=["y","scaleY","originY"];function U1(e,t,n,r){W1(e.x,t,B5,n?n.x:void 0,r?r.x:void 0),W1(e.y,t,W5,n?n.y:void 0,r?r.y:void 0)}function z1(e){return e.translate===0&&e.scale===1}function G1(e){return z1(e.x)&&z1(e.y)}function Y1(e,t){return e.min===t.min&&e.max===t.max}function U5(e,t){return Y1(e.x,t.x)&&Y1(e.y,t.y)}function H1(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function q1(e,t){return H1(e.x,t.x)&&H1(e.y,t.y)}function K1(e){return _t(e.x)/_t(e.y)}function X1(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class z5{constructor(){this.members=[]}add(t){Ff(this.members,t),t.scheduleRender()}remove(t){if(Vf(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function G5(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:p,skewX:y,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),y&&(r+=`skewX(${y}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const Sd=["","X","Y","Z"],Y5={visibility:"hidden"},Z1=1e3;let H5=0;function Td(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function J1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=rb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",He,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&J1(r)}function Q1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=H5++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(X5),this.nodes.forEach(t6),this.nodes.forEach(n6),this.nodes.forEach(Z5)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new R5)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Bf),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=D5(a),this.instance=a;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=N5(p,250),el.hasAnimatedSinceResize&&(el.hasAnimatedSinceResize=!1,this.nodes.forEach(tx))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:y,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||h.getDefaultTransition()||a6,{onLayoutAnimationStart:E,onLayoutAnimationComplete:w}=h.getProps(),C=!this.targetLayout||!q1(this.targetLayout,S),M=!p&&y;if(this.options.layoutRoot||this.resumeFrom||M||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,M);const $={...jf(b,"layout"),onPlay:E,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||tx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Cr(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(r6),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&J1(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:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ex);return}this.isUpdating||this.nodes.forEach(Q5),this.isUpdating=!1,this.nodes.forEach(e6),this.nodes.forEach(q5),this.nodes.forEach(K5),this.clearAllSnapshots();const c=Nn.now();vt.delta=Xn(0,1e3/60,c-vt.timestamp),vt.timestamp=c,vt.isProcessing=!0,Sf.update.process(vt),Sf.preRender.process(vt),Sf.render.process(vt),vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Cf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(J5),this.sharedNodes.forEach(i6)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,He.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){He.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!_t(this.snapshot.measuredBox.x)&&!_t(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 u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=lt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!G1(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||oi(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),l6(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return lt();const u=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(c6))){const{scroll:h}=this.root;h&&(ls(u.x,h.offset.x),ls(u.y,h.offset.y))}return u}removeElementScroll(a){var c;const u=lt();if(sn(u,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&sn(u,a),ls(u.x,m.offset.x),ls(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=lt();sn(u,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&cs(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),oi(h.latestValues)&&cs(u,h.latestValues)}return oi(this.latestValues)&&cs(u,this.latestValues),u}removeTransform(a){const c=lt();sn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!oi(d.latestValues))continue;yd(d.latestValues)&&d.updateSnapshot();const h=lt(),m=d.measurePageBox();sn(h,m),U1(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return oi(this.latestValues)&&U1(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==vt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=vt.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Oo(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=lt(),this.targetWithTransforms=lt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),f5(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),y1(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Oo(this.relativeTargetOrigin,this.target,y.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||yd(this.parent.latestValues)||m1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===vt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;sn(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,y=this.treeScale.y;d5(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=lt());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(V1(this.prevProjectionDelta.x,this.projectionDelta.x),V1(this.prevProjectionDelta.y,this.projectionDelta.y)),Mo(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==y||!X1(this.projectionDelta.x,this.prevProjectionDelta.x)||!X1(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=as(),this.projectionDelta=as(),this.projectionDeltaWithTransform=as()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=as();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=lt(),y=u?u.source:void 0,S=this.layout?this.layout.source:void 0,b=y!==S,E=this.getStack(),w=!E||E.members.length<=1,C=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(o6));this.animationProgress=0;let M;this.mixTargetDelta=$=>{const P=$/1e3;nx(m.x,a.x,P),nx(m.y,a.y,P),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Oo(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),s6(this.relativeTarget,this.relativeTargetOrigin,p,P),M&&U5(this.relativeTarget,M)&&(this.isProjectionDirty=!1),M||(M=lt()),sn(M,this.relativeTarget)),b&&(this.animationValues=h,k5(h,d,this.latestValues,P,C,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{el.hasAnimatedSinceResize=!0,this.currentAnimation=I5(0,Z1,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Z1),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&ax(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||lt();const m=_t(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+m;const p=_t(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+p}sn(c,u),cs(c,h),Mo(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new z5),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&Td("z",a,d,this.animationValues);for(let h=0;h<Sd.length;h++)Td(`rotate${Sd[h]}`,a,d,this.animationValues),Td(`skew${Sd[h]}`,a,d,this.animationValues);a.render();for(const h in d)a.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Y5;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Ya(a==null?void 0:a.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Ya(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!oi(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=G5(this.projectionDeltaWithTransform,this.treeScale,p),h&&(d.transform=h(p,d.transform));const{x:y,y:S}=this.projectionDelta;d.transformOrigin=`${y.origin*100}% ${S.origin*100}% 0`,m.animationValues?d.opacity=m===this?(u=(c=p.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const b in mo){if(p[b]===void 0)continue;const{correct:E,applyTo:w,isCSSVariable:C}=mo[b],M=d.transform==="none"?p[b]:E(p[b],m);if(w){const $=w.length;for(let P=0;P<$;P++)d[w[P]]=M}else C?this.options.visualElement.renderState.vars[b]=M:d[b]=M}return this.options.layoutId&&(d.pointerEvents=m===this?Ya(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(ex),this.root.sharedNodes.clear()}}}function q5(e){e.updateLayout()}function K5(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?rn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],y=_t(p);p.min=r[m].min,p.max=p.min+y}):ax(o,n.layoutBox,r)&&rn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],y=_t(r[m]);p.max=p.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+y)});const c=as();Mo(c,r,n.layoutBox);const u=as();a?Mo(u,e.applyTransform(i,!0),n.measuredBox):Mo(u,r,n.layoutBox);const d=!G1(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:y}=m;if(p&&y){const S=lt();Oo(S,n.layoutBox,p.layoutBox);const b=lt();Oo(b,r,y.layoutBox),q1(S,b)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function X5(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 Z5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function J5(e){e.clearSnapshot()}function ex(e){e.clearMeasurements()}function Q5(e){e.isLayoutDirty=!1}function e6(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function tx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function t6(e){e.resolveTargetDelta()}function n6(e){e.calcProjection()}function r6(e){e.resetSkewAndRotation()}function i6(e){e.removeLeadSnapshot()}function nx(e,t,n){e.translate=rt(t.translate,0,n),e.scale=rt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function rx(e,t,n,r){e.min=rt(t.min,n.min,r),e.max=rt(t.max,n.max,r)}function s6(e,t,n,r){rx(e.x,t.x,n.x,r),rx(e.y,t.y,n.y,r)}function o6(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const a6={duration:.45,ease:[.4,0,.1,1]},ix=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sx=ix("applewebkit/")&&!ix("chrome/")?Math.round:Nt;function ox(e){e.min=sx(e.min),e.max=sx(e.max)}function l6(e){ox(e.x),ox(e.y)}function ax(e,t,n){return e==="position"||e==="preserve-aspect"&&!u5(K1(t),K1(n),.2)}function c6(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const u6=Q1({attachResizeListener:(e,t)=>Co(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ed={current:void 0},lx=Q1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ed.current){const e=new u6({});e.mount(window),e.setOptions({layoutScroll:!0}),Ed.current=e}return Ed.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),f6={pan:{Feature:A5},drag:{Feature:P5,ProjectionNode:lx,MeasureLayout:$1}};function d6(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function cx(e,t){const n=d6(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function ux(e){return!(e.pointerType==="touch"||s1())}function h6(e,t,n={}){const[r,i,o]=cx(e,n),a=c=>{if(!ux(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{ux(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}function fx(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&He.postRender(()=>o(t,Po(t)))}class m6 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=h6(t,(n,r)=>(fx(this.node,r,"Start"),i=>fx(this.node,i,"End"))))}unmount(){}}class p6 extends Mr{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=To(Co(this.node.current,"focus",()=>this.onFocus()),Co(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const dx=(e,t)=>t?e===t?!0:dx(e,t.parentElement):!1,g6=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function y6(e){return g6.has(e.tagName)||e.tabIndex!==-1}const Io=new WeakSet;function hx(e){return t=>{t.key==="Enter"&&e(t)}}function Cd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const v6=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=hx(()=>{if(Io.has(n))return;Cd(n,"down");const i=hx(()=>{Cd(n,"up")}),o=()=>Cd(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function mx(e){return pd(e)&&!s1()}function b6(e,t,n={}){const[r,i,o]=cx(e,n),a=c=>{const u=c.currentTarget;if(!mx(c)||Io.has(u))return;Io.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!mx(y)||!Io.has(u))&&(Io.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||dx(u,y.target))},p=y=>{h(y,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",p,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>v6(d,i)),!y6(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}function px(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),o=r[i];o&&He.postRender(()=>o(t,Po(t)))}class x6 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=b6(t,(n,r)=>(px(this.node,r,"Start"),(i,{success:o})=>px(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Pd=new WeakMap,Ad=new WeakMap,w6=e=>{const t=Pd.get(e.target);t&&t(e)},S6=e=>{e.forEach(w6)};function T6({root:e,...t}){const n=e||document;Ad.has(n)||Ad.set(n,{});const r=Ad.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(S6,{root:e,...t})),r[i]}function E6(e,t,n){const r=T6(t);return Pd.set(e,n),r.observe(e),()=>{Pd.delete(e),r.unobserve(e)}}const C6={some:0,all:1};class P6 extends Mr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:C6[i]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=d?h:m;p&&p(u)};return E6(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(A6(t,n))&&this.startObserver()}unmount(){}}function A6({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const M6={inView:{Feature:P6},tap:{Feature:x6},focus:{Feature:p6},hover:{Feature:m6}},O6={layout:{ProjectionNode:lx,MeasureLayout:$1}},Md={current:null},gx={current:!1};function _6(){if(gx.current=!0,!!xf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Md.current=e.matches;e.addListener(t),t()}else Md.current=!1}const I6=[...Nb,Ct,Ar],D6=e=>I6.find(Rb(e)),$6=new WeakMap;function R6(e,t,n){for(const r in t){const i=t[r],o=n[r];if(Et(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&Ba(i.version==="12.6.2",`Attempting to mix Motion versions ${i.version} with 12.6.2 may not work as expected.`);else if(Et(o))e.addValue(r,vo(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,vo(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const yx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class N6{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=sd,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 y=Nn.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,He.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=za(n),this.isVariantNode=$v(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in p){const S=p[y];u[y]!==void 0&&Et(S)&&S.set(u[y],!1)}}mount(t){this.current=t,$6.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)),gx.current||_6(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Md.current,process.env.NODE_ENV!=="production"&&Ba(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(),Cr(this.notifyUpdate),Cr(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=ti.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&He.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in es){const n=es[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):lt()}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<yx.length;r++){const i=yx[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=R6(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=vo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Db(i)||gb(i))?i=parseFloat(i):!D6(i)&&Ar.test(n)&&(i=Eb(t,n)),this.setBaseTarget(t,Et(i)?i.get():i)),Et(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=Nf(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Et(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Bf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class vx extends N6{constructor(){super(...arguments),this.KeyframeResolver=kb}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;Et(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function L6(e){return window.getComputedStyle(e)}class k6 extends vx{constructor(){super(...arguments),this.type="html",this.renderInstance=Kv}readValueFromInstance(t,n){if(ti.has(n))return W$(t,n);{const r=L6(t),i=(Af(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return w1(t,n)}build(t,n,r){_f(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return kf(t,n,r)}}class j6 extends vx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&qv(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ti.has(n)){const r=Tb(n);return r&&r.default||0}return n=Xv.has(n)?n:Pf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Jv(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&He.postRender(this.updateDimensions)}build(t,n,r){$f(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Zv(t,n,r,i)}mount(t){this.isSVGTag=Rf(t.tagName),super.mount(t)}}const F6=(e,t)=>Df(e)?new j6(t):new k6(t,{allowProjection:e!==I.Fragment}),V6=a$({...t5,...M6,...f6,...O6},F6),Ze=ED(V6),Od={defaultColorScheme:"aqua",t:e=>e},bx=I.createContext(Od),ze=()=>I.useContext(bx),xx=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o,showCloseButton:a=!0})=>{const{t:c}=ze(),u={hidden:{opacity:0},visible:{opacity:1}},d={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},h=()=>{i==null||i(),r()},m=()=>{o==null||o(),r()};return v.jsx(Kn,{children:n&&v.jsx(v.Fragment,{children:v.jsx(Ze.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:u,onClick:r,children:v.jsx(Ze.div,{className:"w-full max-w-4xl mx-16 z-50",variants:d,initial:"hidden",animate:"visible",exit:"exit",onClick:p=>p.stopPropagation(),children:v.jsxs(bs,{className:"flex flex-col gap-16 p-32",children:[v.jsxs("div",{className:"flex justify-between items-center gap-16",children:[v.jsx("h3",{className:"text-black font-700 text-3xl",children:e}),a&&v.jsx(De,{icon:tu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})]}),v.jsx("p",{className:"text-gray-500 text-xl font-600",children:t}),v.jsxs("div",{className:"flex justify-end w-full gap-16",children:[o&&v.jsx(jo,{onClick:m,variant:"transparent",className:"px-24 py-10! text-lg!",children:c("cancel")}),i&&v.jsx(jo,{onClick:h,className:"px-24 py-16 text-lg!",children:c("confirm")})]})]})})})})})};/*!
|
|
660
660
|
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
661
661
|
* License - https://fontawesome.com/license (Commercial License)
|
|
662
662
|
* Copyright 2024 Fonticons, Inc.
|
|
663
|
-
*/const BR={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},WR={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},UR={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},zR={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},GR={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};function tl(){return typeof window<"u"}function us(e){return wx(e)?(e.nodeName||"").toLowerCase():"#document"}function Lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kn(e){var t;return(t=(wx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wx(e){return tl()?e instanceof Node||e instanceof Lt(e).Node:!1}function qe(e){return tl()?e instanceof Element||e instanceof Lt(e).Element:!1}function kt(e){return tl()?e instanceof HTMLElement||e instanceof Lt(e).HTMLElement:!1}function _d(e){return!tl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Lt(e).ShadowRoot}function Do(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=on(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function YR(e){return["table","td","th"].includes(us(e))}function nl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Id(e){const t=rl(),n=qe(e)?on(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function HR(e){let t=Qn(e);for(;kt(t)&&!Jn(t);){if(Id(t))return t;if(nl(t))return null;t=Qn(t)}return null}function rl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Jn(e){return["html","body","#document"].includes(us(e))}function on(e){return Lt(e).getComputedStyle(e)}function il(e){return qe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qn(e){if(us(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_d(e)&&e.host||kn(e);return _d(t)?t.host:t}function Sx(e){const t=Qn(e);return Jn(t)?e.ownerDocument?e.ownerDocument.body:e.body:kt(t)&&Do(t)?t:Sx(t)}function Mr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Sx(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=Lt(i);if(a){const c=Dd(o);return t.concat(o,o.visualViewport||[],Do(i)?i:[],c&&n?Mr(c):[])}return t.concat(i,Mr(i,[],n))}function Dd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Tx(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 $o(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&_d(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Ex(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Cx(){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 qR(e){return ZR()?!1:!Px()&&e.width===0&&e.height===0||Px()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function KR(){return/apple/i.test(navigator.vendor)}function Px(){const e=/android/i;return e.test(Ex())||e.test(Cx())}function XR(){return Ex().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function ZR(){return Cx().includes("jsdom/")}function Ro(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function JR(e){return"nativeEvent"in e}function QR(e){return e.matches("html,body")}function ai(e){return(e==null?void 0:e.ownerDocument)||document}function $d(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function fs(e){return"composedPath"in e?e.composedPath()[0]:e.target}const e5="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Ax(e){return kt(e)&&e.matches(e5)}const _r=Math.min,Yt=Math.max,sl=Math.round,ol=Math.floor,jn=e=>({x:e,y:e}),t5={left:"right",right:"left",bottom:"top",top:"bottom"},n5={start:"end",end:"start"};function Rd(e,t,n){return Yt(e,_r(t,n))}function ds(e,t){return typeof e=="function"?e(t):e}function Ir(e){return e.split("-")[0]}function hs(e){return e.split("-")[1]}function Ox(e){return e==="x"?"y":"x"}function Nd(e){return e==="y"?"height":"width"}function li(e){return["top","bottom"].includes(Ir(e))?"y":"x"}function Ld(e){return Ox(li(e))}function r5(e,t,n){n===void 0&&(n=!1);const r=hs(e),i=Ld(e),a=Nd(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=al(o)),[o,al(o)]}function i5(e){const t=al(e);return[kd(e),t,kd(t)]}function kd(e){return e.replace(/start|end/g,t=>n5[t])}function s5(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:o;default:return[]}}function o5(e,t,n,r){const i=hs(e);let a=s5(Ir(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(kd)))),a}function al(e){return e.replace(/left|right|bottom|top/g,t=>t5[t])}function a5(e){return{top:0,right:0,bottom:0,left:0,...e}}function Mx(e){return typeof e!="number"?a5(e):{top:e,right:e,bottom:e,left:e}}function ll(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 _x(e,t,n){let{reference:r,floating:i}=e;const a=li(t),o=Ld(t),c=Nd(o),u=Ir(t),d=a==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,p=r[c]/2-i[c]/2;let y;switch(u){case"top":y={x:h,y:r.y-i.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:m};break;case"left":y={x:r.x-i.width,y:m};break;default:y={x:r.x,y:r.y}}switch(hs(t)){case"start":y[o]-=p*(n&&d?-1:1);break;case"end":y[o]+=p*(n&&d?-1:1);break}return y}const l5=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,c=a.filter(Boolean),u=await(o.isRTL==null?void 0:o.isRTL(t));let d=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=_x(d,r,u),p=r,y={},S=0;for(let b=0;b<c.length;b++){const{name:E,fn:w}=c[b],{x:C,y:A,data:$,reset:O}=await w({x:h,y:m,initialPlacement:r,placement:p,strategy:i,middlewareData:y,rects:d,platform:o,elements:{reference:e,floating:t}});h=C??h,m=A??m,y={...y,[E]:{...y[E],...$}},O&&S<=50&&(S++,typeof O=="object"&&(O.placement&&(p=O.placement),O.rects&&(d=O.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):O.rects),{x:h,y:m}=_x(d,p,u)),b=-1)}return{x:h,y:m,placement:p,strategy:i,middlewareData:y}};async function jd(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:o,elements:c,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:p=!1,padding:y=0}=ds(t,e),S=Mx(y),E=c[p?m==="floating"?"reference":"floating":m],w=ll(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(E)))==null||n?E:E.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:u})),C=m==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,A=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),$=await(a.isElement==null?void 0:a.isElement(A))?await(a.getScale==null?void 0:a.getScale(A))||{x:1,y:1}:{x:1,y:1},O=ll(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:C,offsetParent:A,strategy:u}):C);return{top:(w.top-O.top+S.top)/$.y,bottom:(O.bottom-w.bottom+S.bottom)/$.y,left:(w.left-O.left+S.left)/$.x,right:(O.right-w.right+S.right)/$.x}}const c5=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:c,middlewareData:u}=t,{element:d,padding:h=0}=ds(e,t)||{};if(d==null)return{};const m=Mx(h),p={x:n,y:r},y=Ld(i),S=Nd(y),b=await o.getDimensions(d),E=y==="y",w=E?"top":"left",C=E?"bottom":"right",A=E?"clientHeight":"clientWidth",$=a.reference[S]+a.reference[y]-p[y]-a.floating[S],O=p[y]-a.reference[y],R=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d));let V=R?R[A]:0;(!V||!await(o.isElement==null?void 0:o.isElement(R)))&&(V=c.floating[A]||a.floating[S]);const F=$/2-O/2,z=V/2-b[S]/2-1,Q=_r(m[w],z),ne=_r(m[C],z),ue=Q,ve=V-b[S]-ne,de=V/2-b[S]/2+F,re=Rd(ue,de,ve),oe=!u.arrow&&hs(i)!=null&&de!==re&&a.reference[S]/2-(de<ue?Q:ne)-b[S]/2<0,j=oe?de<ue?de-ue:de-ve:0;return{[y]:p[y]+j,data:{[y]:re,centerOffset:de-re-j,...oe&&{alignmentOffset:j}},reset:oe}}}),u5=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:c,platform:u,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:b=!0,...E}=ds(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const w=Ir(i),C=li(c),A=Ir(c)===c,$=await(u.isRTL==null?void 0:u.isRTL(d.floating)),O=p||(A||!b?[al(c)]:i5(c)),R=S!=="none";!p&&R&&O.push(...o5(c,b,S,$));const V=[c,...O],F=await jd(t,E),z=[];let Q=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&z.push(F[w]),m){const de=r5(i,o,$);z.push(F[de[0]],F[de[1]])}if(Q=[...Q,{placement:i,overflows:z}],!z.every(de=>de<=0)){var ne,ue;const de=(((ne=a.flip)==null?void 0:ne.index)||0)+1,re=V[de];if(re)return{data:{index:de,overflows:Q},reset:{placement:re}};let oe=(ue=Q.filter(j=>j.overflows[0]<=0).sort((j,W)=>j.overflows[1]-W.overflows[1])[0])==null?void 0:ue.placement;if(!oe)switch(y){case"bestFit":{var ve;const j=(ve=Q.filter(W=>{if(R){const q=li(W.placement);return q===C||q==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(q=>q>0).reduce((q,M)=>q+M,0)]).sort((W,q)=>W[1]-q[1])[0])==null?void 0:ve[0];j&&(oe=j);break}case"initialPlacement":oe=c;break}if(i!==oe)return{reset:{placement:oe}}}return{}}}};async function f5(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Ir(n),c=hs(n),u=li(n)==="y",d=["left","top"].includes(o)?-1:1,h=a&&u?-1:1,m=ds(t,e);let{mainAxis:p,crossAxis:y,alignmentAxis:S}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof S=="number"&&(y=c==="end"?S*-1:S),u?{x:y*h,y:p*d}:{x:p*d,y:y*h}}const d5=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:c}=t,u=await f5(t,e);return o===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:a+u.y,data:{...u,placement:o}}}}},h5=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:c={fn:E=>{let{x:w,y:C}=E;return{x:w,y:C}}},...u}=ds(e,t),d={x:n,y:r},h=await jd(t,u),m=li(Ir(i)),p=Ox(m);let y=d[p],S=d[m];if(a){const E=p==="y"?"top":"left",w=p==="y"?"bottom":"right",C=y+h[E],A=y-h[w];y=Rd(C,y,A)}if(o){const E=m==="y"?"top":"left",w=m==="y"?"bottom":"right",C=S+h[E],A=S-h[w];S=Rd(C,S,A)}const b=c.fn({...t,[p]:y,[m]:S});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:a,[m]:o}}}}}},m5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:a,platform:o,elements:c}=t,{apply:u=()=>{},...d}=ds(e,t),h=await jd(t,d),m=Ir(i),p=hs(i),y=li(i)==="y",{width:S,height:b}=a.floating;let E,w;m==="top"||m==="bottom"?(E=m,w=p===(await(o.isRTL==null?void 0:o.isRTL(c.floating))?"start":"end")?"left":"right"):(w=m,E=p==="end"?"top":"bottom");const C=b-h.top-h.bottom,A=S-h.left-h.right,$=_r(b-h[E],C),O=_r(S-h[w],A),R=!t.middlewareData.shift;let V=$,F=O;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=A),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(V=C),R&&!p){const Q=Yt(h.left,0),ne=Yt(h.right,0),ue=Yt(h.top,0),ve=Yt(h.bottom,0);y?F=S-2*(Q!==0||ne!==0?Q+ne:Yt(h.left,h.right)):V=b-2*(ue!==0||ve!==0?ue+ve:Yt(h.top,h.bottom))}await u({...t,availableWidth:F,availableHeight:V});const z=await o.getDimensions(c.floating);return S!==z.width||b!==z.height?{reset:{rects:!0}}:{}}}};function Ix(e){const t=on(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=kt(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,c=sl(n)!==a||sl(r)!==o;return c&&(n=a,r=o),{width:n,height:r,$:c}}function Fd(e){return qe(e)?e:e.contextElement}function ms(e){const t=Fd(e);if(!kt(t))return jn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Ix(t);let o=(a?sl(n.width):n.width)/r,c=(a?sl(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!c||!Number.isFinite(c))&&(c=1),{x:o,y:c}}const p5=jn(0);function Dx(e){const t=Lt(e);return!rl()||!t.visualViewport?p5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function g5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Lt(e)?!1:t}function ci(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Fd(e);let o=jn(1);t&&(r?qe(r)&&(o=ms(r)):o=ms(e));const c=g5(a,n,r)?Dx(a):jn(0);let u=(i.left+c.x)/o.x,d=(i.top+c.y)/o.y,h=i.width/o.x,m=i.height/o.y;if(a){const p=Lt(a),y=r&&qe(r)?Lt(r):r;let S=p,b=Dd(S);for(;b&&r&&y!==S;){const E=ms(b),w=b.getBoundingClientRect(),C=on(b),A=w.left+(b.clientLeft+parseFloat(C.paddingLeft))*E.x,$=w.top+(b.clientTop+parseFloat(C.paddingTop))*E.y;u*=E.x,d*=E.y,h*=E.x,m*=E.y,u+=A,d+=$,S=Lt(b),b=Dd(S)}}return ll({width:h,height:m,x:u,y:d})}function Vd(e,t){const n=il(e).scrollLeft;return t?t.left+n:ci(kn(e)).left+n}function $x(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Vd(e,r)),a=r.top+t.scrollTop;return{x:i,y:a}}function y5(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=kn(r),c=t?nl(t.floating):!1;if(r===o||c&&a)return n;let u={scrollLeft:0,scrollTop:0},d=jn(1);const h=jn(0),m=kt(r);if((m||!m&&!a)&&((us(r)!=="body"||Do(o))&&(u=il(r)),kt(r))){const y=ci(r);d=ms(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}const p=o&&!m&&!a?$x(o,u,!0):jn(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+h.x+p.x,y:n.y*d.y-u.scrollTop*d.y+h.y+p.y}}function v5(e){return Array.from(e.getClientRects())}function b5(e){const t=kn(e),n=il(e),r=e.ownerDocument.body,i=Yt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Yt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Vd(e);const c=-n.scrollTop;return on(r).direction==="rtl"&&(o+=Yt(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:c}}function x5(e,t){const n=Lt(e),r=kn(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,c=0,u=0;if(i){a=i.width,o=i.height;const d=rl();(!d||d&&t==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:c,y:u}}function w5(e,t){const n=ci(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=kt(e)?ms(e):jn(1),o=e.clientWidth*a.x,c=e.clientHeight*a.y,u=i*a.x,d=r*a.y;return{width:o,height:c,x:u,y:d}}function Rx(e,t,n){let r;if(t==="viewport")r=x5(e,n);else if(t==="document")r=b5(kn(e));else if(qe(t))r=w5(t,n);else{const i=Dx(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ll(r)}function Nx(e,t){const n=Qn(e);return n===t||!qe(n)||Jn(n)?!1:on(n).position==="fixed"||Nx(n,t)}function S5(e,t){const n=t.get(e);if(n)return n;let r=Mr(e,[],!1).filter(c=>qe(c)&&us(c)!=="body"),i=null;const a=on(e).position==="fixed";let o=a?Qn(e):e;for(;qe(o)&&!Jn(o);){const c=on(o),u=Id(o);!u&&c.position==="fixed"&&(i=null),(a?!u&&!i:!u&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Do(o)&&!u&&Nx(e,o))?r=r.filter(h=>h!==o):i=c,o=Qn(o)}return t.set(e,r),r}function T5(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?nl(t)?[]:S5(t,this._c):[].concat(n),r],c=o[0],u=o.reduce((d,h)=>{const m=Rx(t,h,i);return d.top=Yt(m.top,d.top),d.right=_r(m.right,d.right),d.bottom=_r(m.bottom,d.bottom),d.left=Yt(m.left,d.left),d},Rx(t,c,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function E5(e){const{width:t,height:n}=Ix(e);return{width:t,height:n}}function C5(e,t,n){const r=kt(t),i=kn(t),a=n==="fixed",o=ci(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const u=jn(0);if(r||!r&&!a)if((us(t)!=="body"||Do(i))&&(c=il(t)),r){const p=ci(t,!0,a,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else i&&(u.x=Vd(i));const d=i&&!r&&!a?$x(i,c):jn(0),h=o.left+c.scrollLeft-u.x-d.x,m=o.top+c.scrollTop-u.y-d.y;return{x:h,y:m,width:o.width,height:o.height}}function Bd(e){return on(e).position==="static"}function Lx(e,t){if(!kt(e)||on(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return kn(e)===n&&(n=n.ownerDocument.body),n}function kx(e,t){const n=Lt(e);if(nl(e))return n;if(!kt(e)){let i=Qn(e);for(;i&&!Jn(i);){if(qe(i)&&!Bd(i))return i;i=Qn(i)}return n}let r=Lx(e,t);for(;r&&YR(r)&&Bd(r);)r=Lx(r,t);return r&&Jn(r)&&Bd(r)&&!Id(r)?n:r||HR(e)||n}const P5=async function(e){const t=this.getOffsetParent||kx,n=this.getDimensions,r=await n(e.floating);return{reference:C5(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function A5(e){return on(e).direction==="rtl"}const O5={convertOffsetParentRelativeRectToViewportRelativeRect:y5,getDocumentElement:kn,getClippingRect:T5,getOffsetParent:kx,getElementRects:P5,getClientRects:v5,getDimensions:E5,getScale:ms,isElement:qe,isRTL:A5};function jx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function M5(e,t){let n=null,r;const i=kn(e);function a(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function o(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),a();const d=e.getBoundingClientRect(),{left:h,top:m,width:p,height:y}=d;if(c||t(),!p||!y)return;const S=ol(m),b=ol(i.clientWidth-(h+p)),E=ol(i.clientHeight-(m+y)),w=ol(h),A={rootMargin:-S+"px "+-b+"px "+-E+"px "+-w+"px",threshold:Yt(0,_r(1,u))||1};let $=!0;function O(R){const V=R[0].intersectionRatio;if(V!==u){if(!$)return o();V?o(!1,V):r=setTimeout(()=>{o(!1,1e-7)},1e3)}V===1&&!jx(d,e.getBoundingClientRect())&&o(),$=!1}try{n=new IntersectionObserver(O,{...A,root:i.ownerDocument})}catch{n=new IntersectionObserver(O,A)}n.observe(e)}return o(!0),a}function ui(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=Fd(e),h=i||a?[...d?Mr(d):[],...Mr(t)]:[];h.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),a&&w.addEventListener("resize",n)});const m=d&&c?M5(d,n):null;let p=-1,y=null;o&&(y=new ResizeObserver(w=>{let[C]=w;C&&C.target===d&&y&&(y.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var A;(A=y)==null||A.observe(t)})),n()}),d&&!u&&y.observe(d),y.observe(t));let S,b=u?ci(e):null;u&&E();function E(){const w=ci(e);b&&!jx(b,w)&&n(),b=w,S=requestAnimationFrame(E)}return n(),()=>{var w;h.forEach(C=>{i&&C.removeEventListener("scroll",n),a&&C.removeEventListener("resize",n)}),m==null||m(),(w=y)==null||w.disconnect(),y=null,u&&cancelAnimationFrame(S)}}const _5=d5,I5=h5,D5=u5,$5=m5,Fx=c5,R5=(e,t,n)=>{const r=new Map,i={platform:O5,...n},a={...i.platform,_c:r};return l5(e,t,{...i,platform:a})};var cl=typeof document<"u"?I.useLayoutEffect:I.useEffect;function ul(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(!ul(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)&&!ul(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Vx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bx(e,t){const n=Vx(e);return Math.round(t*n)/n}function Wd(e){const t=X.useRef(e);return cl(()=>{t.current=e}),t}function N5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[h,m]=X.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,y]=X.useState(r);ul(p,r)||y(r);const[S,b]=X.useState(null),[E,w]=X.useState(null),C=X.useCallback(W=>{W!==R.current&&(R.current=W,b(W))},[]),A=X.useCallback(W=>{W!==V.current&&(V.current=W,w(W))},[]),$=a||S,O=o||E,R=X.useRef(null),V=X.useRef(null),F=X.useRef(h),z=u!=null,Q=Wd(u),ne=Wd(i),ue=Wd(d),ve=X.useCallback(()=>{if(!R.current||!V.current)return;const W={placement:t,strategy:n,middleware:p};ne.current&&(W.platform=ne.current),R5(R.current,V.current,W).then(q=>{const M={...q,isPositioned:ue.current!==!1};de.current&&!ul(F.current,M)&&(F.current=M,mT.flushSync(()=>{m(M)}))})},[p,t,n,ne,ue]);cl(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,m(W=>({...W,isPositioned:!1})))},[d]);const de=X.useRef(!1);cl(()=>(de.current=!0,()=>{de.current=!1}),[]),cl(()=>{if($&&(R.current=$),O&&(V.current=O),$&&O){if(Q.current)return Q.current($,O,ve);ve()}},[$,O,ve,Q,z]);const re=X.useMemo(()=>({reference:R,floating:V,setReference:C,setFloating:A}),[C,A]),oe=X.useMemo(()=>({reference:$,floating:O}),[$,O]),j=X.useMemo(()=>{const W={position:n,left:0,top:0};if(!oe.floating)return W;const q=Bx(oe.floating,h.x),M=Bx(oe.floating,h.y);return c?{...W,transform:"translate("+q+"px, "+M+"px)",...Vx(oe.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:q,top:M}},[n,c,oe.floating,h.x,h.y]);return X.useMemo(()=>({...h,update:ve,refs:re,elements:oe,floatingStyles:j}),[h,ve,re,oe,j])}const L5=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Fx({element:r.current,padding:i}).fn(n):{}:r?Fx({element:r,padding:i}).fn(n):{}}}},fi=(e,t)=>({..._5(e),options:[e,t]}),di=(e,t)=>({...I5(e),options:[e,t]}),hi=(e,t)=>({...D5(e),options:[e,t]}),No=(e,t)=>({...$5(e),options:[e,t]}),ps=(e,t)=>({...L5(e),options:[e,t]}),Wx={...X},k5=Wx.useInsertionEffect||(e=>e());function er(e){const t=X.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return k5(()=>{t.current=e}),X.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)},[])}var Dr=typeof document<"u"?I.useLayoutEffect:I.useEffect;let Ux=!1,j5=0;const zx=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+j5++;function F5(){const[e,t]=X.useState(()=>Ux?zx():void 0);return Dr(()=>{e==null&&t(zx())},[]),X.useEffect(()=>{Ux=!0},[]),e}const Gx=Wx.useId||F5;let Ud;process.env.NODE_ENV!=="production"&&(Ud=new Set);function V5(){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=Ud)!=null&&e.has(i))){var a;(a=Ud)==null||a.add(i),console.error(i)}}function B5(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const W5=X.createContext(null),U5=X.createContext(null),zd=()=>{var e;return((e=X.useContext(W5))==null?void 0:e.id)||null},Gd=()=>X.useContext(U5);function Yd(e){return"data-floating-ui-"+e}function an(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}function mi(e){const t=I.useRef(e);return Dr(()=>{t.current=e}),t}const Yx=Yd("safe-polygon");function Hd(e,t,n){return n&&!Ro(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function z5(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:a,elements:o}=e,{enabled:c=!0,delay:u=0,handleClose:d=null,mouseOnly:h=!1,restMs:m=0,move:p=!0}=t,y=Gd(),S=zd(),b=mi(d),E=mi(u),w=mi(n),C=X.useRef(),A=X.useRef(-1),$=X.useRef(),O=X.useRef(-1),R=X.useRef(!0),V=X.useRef(!1),F=X.useRef(()=>{}),z=X.useRef(!1),Q=X.useCallback(()=>{var j;const W=(j=i.current.openEvent)==null?void 0:j.type;return(W==null?void 0:W.includes("mouse"))&&W!=="mousedown"},[i]);X.useEffect(()=>{if(!c)return;function j(W){let{open:q}=W;q||(an(A),an(O),R.current=!0,z.current=!1)}return a.on("openchange",j),()=>{a.off("openchange",j)}},[c,a]),X.useEffect(()=>{if(!c||!b.current||!n)return;function j(q){Q()&&r(!1,q,"hover")}const W=ai(o.floating).documentElement;return W.addEventListener("mouseleave",j),()=>{W.removeEventListener("mouseleave",j)}},[o.floating,n,r,c,b,Q]);const ne=X.useCallback(function(j,W,q){W===void 0&&(W=!0),q===void 0&&(q="hover");const M=Hd(E.current,"close",C.current);M&&!$.current?(an(A),A.current=window.setTimeout(()=>r(!1,j,q),M)):W&&(an(A),r(!1,j,q))},[E,r]),ue=er(()=>{F.current(),$.current=void 0}),ve=er(()=>{if(V.current){const j=ai(o.floating).body;j.style.pointerEvents="",j.removeAttribute(Yx),V.current=!1}}),de=er(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);X.useEffect(()=>{if(!c)return;function j(k){if(an(A),R.current=!1,h&&!Ro(C.current)||m>0&&!Hd(E.current,"open"))return;const Z=Hd(E.current,"open",C.current);Z?A.current=window.setTimeout(()=>{w.current||r(!0,k,"hover")},Z):n||r(!0,k,"hover")}function W(k){if(de())return;F.current();const Z=ai(o.floating);if(an(O),z.current=!1,b.current&&i.current.floatingContext){n||an(A),$.current=b.current({...i.current.floatingContext,tree:y,x:k.clientX,y:k.clientY,onClose(){ve(),ue(),de()||ne(k,!0,"safe-polygon")}});const se=$.current;Z.addEventListener("mousemove",se),F.current=()=>{Z.removeEventListener("mousemove",se)};return}(C.current==="touch"?!$o(o.floating,k.relatedTarget):!0)&&ne(k)}function q(k){de()||i.current.floatingContext&&(b.current==null||b.current({...i.current.floatingContext,tree:y,x:k.clientX,y:k.clientY,onClose(){ve(),ue(),de()||ne(k)}})(k))}if(qe(o.domReference)){var M;const k=o.domReference;return n&&k.addEventListener("mouseleave",q),(M=o.floating)==null||M.addEventListener("mouseleave",q),p&&k.addEventListener("mousemove",j,{once:!0}),k.addEventListener("mouseenter",j),k.addEventListener("mouseleave",W),()=>{var Z;n&&k.removeEventListener("mouseleave",q),(Z=o.floating)==null||Z.removeEventListener("mouseleave",q),p&&k.removeEventListener("mousemove",j),k.removeEventListener("mouseenter",j),k.removeEventListener("mouseleave",W)}}},[o,c,e,h,m,p,ne,ue,ve,r,n,w,y,E,b,i,de]),Dr(()=>{var j;if(c&&n&&(j=b.current)!=null&&j.__options.blockPointerEvents&&Q()){V.current=!0;const q=o.floating;if(qe(o.domReference)&&q){var W;const M=ai(o.floating).body;M.setAttribute(Yx,"");const k=o.domReference,Z=y==null||(W=y.nodesRef.current.find(ee=>ee.id===S))==null||(W=W.context)==null?void 0:W.elements.floating;return Z&&(Z.style.pointerEvents=""),M.style.pointerEvents="none",k.style.pointerEvents="auto",q.style.pointerEvents="auto",()=>{M.style.pointerEvents="",k.style.pointerEvents="",q.style.pointerEvents=""}}}},[c,n,S,o,y,b,Q]),Dr(()=>{n||(C.current=void 0,z.current=!1,ue(),ve())},[n,ue,ve]),X.useEffect(()=>()=>{ue(),an(A),an(O),ve()},[c,o.domReference,ue,ve]);const re=X.useMemo(()=>{function j(W){C.current=W.pointerType}return{onPointerDown:j,onPointerEnter:j,onMouseMove(W){const{nativeEvent:q}=W;function M(){!R.current&&!w.current&&r(!0,q,"hover")}h&&!Ro(C.current)||n||m===0||z.current&&W.movementX**2+W.movementY**2<2||(an(O),C.current==="touch"?M():(z.current=!0,O.current=window.setTimeout(M,m)))}}},[h,r,n,w,m]),oe=X.useMemo(()=>({onMouseEnter(){an(A)},onMouseLeave(j){de()||ne(j.nativeEvent,!1)}}),[ne,de]);return X.useMemo(()=>c?{reference:re,floating:oe}:{},[c,re,oe])}function qd(e,t){let n=e.filter(i=>{var a;return i.parentId===t&&((a=i.context)==null?void 0:a.open)}),r=n;for(;r.length;)r=e.filter(i=>{var a;return(a=r)==null?void 0:a.some(o=>{var c;return i.parentId===o.id&&((c=i.context)==null?void 0:c.open)})}),n=n.concat(r);return n}const G5="data-floating-ui-focusable";function Hx(e){return kt(e.target)&&e.target.tagName==="BUTTON"}function qx(e){return Ax(e)}function gs(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:a}}=e,{enabled:o=!0,event:c="click",toggle:u=!0,ignoreMouse:d=!1,keyboardHandlers:h=!0,stickIfOpen:m=!0}=t,p=X.useRef(),y=X.useRef(!1),S=X.useMemo(()=>({onPointerDown(b){p.current=b.pointerType},onMouseDown(b){const E=p.current;b.button===0&&c!=="click"&&(Ro(E,!0)&&d||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="mousedown")?r(!1,b.nativeEvent,"click"):(b.preventDefault(),r(!0,b.nativeEvent,"click"))))},onClick(b){const E=p.current;if(c==="mousedown"&&p.current){p.current=void 0;return}Ro(E,!0)&&d||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="click")?r(!1,b.nativeEvent,"click"):r(!0,b.nativeEvent,"click"))},onKeyDown(b){p.current=void 0,!(b.defaultPrevented||!h||Hx(b))&&(b.key===" "&&!qx(a)&&(b.preventDefault(),y.current=!0),b.key==="Enter"&&r(!(n&&u),b.nativeEvent,"click"))},onKeyUp(b){b.defaultPrevented||!h||Hx(b)||qx(a)||b.key===" "&&y.current&&(y.current=!1,r(!(n&&u),b.nativeEvent,"click"))}}),[i,a,c,d,h,r,n,m,u]);return X.useMemo(()=>o?{reference:S}:{},[o,S])}const Y5={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},H5={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Kx=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function pi(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:o=!0,escapeKey:c=!0,outsidePress:u=!0,outsidePressEvent:d="pointerdown",referencePress:h=!1,referencePressEvent:m="pointerdown",ancestorScroll:p=!1,bubbles:y,capture:S}=t,b=Gd(),E=er(typeof u=="function"?u:()=>!1),w=typeof u=="function"?E:u,C=X.useRef(!1),A=X.useRef(!1),{escapeKey:$,outsidePress:O}=Kx(y),{escapeKey:R,outsidePress:V}=Kx(S),F=X.useRef(!1),z=er(re=>{var oe;if(!n||!o||!c||re.key!=="Escape"||F.current)return;const j=(oe=a.current.floatingContext)==null?void 0:oe.nodeId,W=b?qd(b.nodesRef.current,j):[];if(!$&&(re.stopPropagation(),W.length>0)){let q=!0;if(W.forEach(M=>{var k;if((k=M.context)!=null&&k.open&&!M.context.dataRef.current.__escapeKeyBubbles){q=!1;return}}),!q)return}r(!1,JR(re)?re.nativeEvent:re,"escape-key")}),Q=er(re=>{var oe;const j=()=>{var W;z(re),(W=fs(re))==null||W.removeEventListener("keydown",j)};(oe=fs(re))==null||oe.addEventListener("keydown",j)}),ne=er(re=>{var oe;const j=C.current;C.current=!1;const W=A.current;if(A.current=!1,d==="click"&&W||j||typeof w=="function"&&!w(re))return;const q=fs(re),M="["+Yd("inert")+"]",k=ai(i.floating).querySelectorAll(M);let Z=qe(q)?q:null;for(;Z&&!Jn(Z);){const te=Qn(Z);if(Jn(te)||!qe(te))break;Z=te}if(k.length&&qe(q)&&!QR(q)&&!$o(q,i.floating)&&Array.from(k).every(te=>!$o(Z,te)))return;if(kt(q)&&de){const te=Jn(q),he=on(q),ce=/auto|scroll/,ye=te||ce.test(he.overflowX),xe=te||ce.test(he.overflowY),Le=ye&&q.clientWidth>0&&q.scrollWidth>q.clientWidth,ie=xe&&q.clientHeight>0&&q.scrollHeight>q.clientHeight,pe=he.direction==="rtl",ke=ie&&(pe?re.offsetX<=q.offsetWidth-q.clientWidth:re.offsetX>q.clientWidth),ft=Le&&re.offsetY>q.clientHeight;if(ke||ft)return}const ee=(oe=a.current.floatingContext)==null?void 0:oe.nodeId,se=b&&qd(b.nodesRef.current,ee).some(te=>{var he;return $d(re,(he=te.context)==null?void 0:he.elements.floating)});if($d(re,i.floating)||$d(re,i.domReference)||se)return;const G=b?qd(b.nodesRef.current,ee):[];if(G.length>0){let te=!0;if(G.forEach(he=>{var ce;if((ce=he.context)!=null&&ce.open&&!he.context.dataRef.current.__outsidePressBubbles){te=!1;return}}),!te)return}r(!1,re,"outside-press")}),ue=er(re=>{var oe;const j=()=>{var W;ne(re),(W=fs(re))==null||W.removeEventListener(d,j)};(oe=fs(re))==null||oe.addEventListener(d,j)});X.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=$,a.current.__outsidePressBubbles=O;let re=-1;function oe(k){r(!1,k,"ancestor-scroll")}function j(){window.clearTimeout(re),F.current=!0}function W(){re=window.setTimeout(()=>{F.current=!1},rl()?5:0)}const q=ai(i.floating);c&&(q.addEventListener("keydown",R?Q:z,R),q.addEventListener("compositionstart",j),q.addEventListener("compositionend",W)),w&&q.addEventListener(d,V?ue:ne,V);let M=[];return p&&(qe(i.domReference)&&(M=Mr(i.domReference)),qe(i.floating)&&(M=M.concat(Mr(i.floating))),!qe(i.reference)&&i.reference&&i.reference.contextElement&&(M=M.concat(Mr(i.reference.contextElement)))),M=M.filter(k=>{var Z;return k!==((Z=q.defaultView)==null?void 0:Z.visualViewport)}),M.forEach(k=>{k.addEventListener("scroll",oe,{passive:!0})}),()=>{c&&(q.removeEventListener("keydown",R?Q:z,R),q.removeEventListener("compositionstart",j),q.removeEventListener("compositionend",W)),w&&q.removeEventListener(d,V?ue:ne,V),M.forEach(k=>{k.removeEventListener("scroll",oe)}),window.clearTimeout(re)}},[a,i,c,w,d,n,r,p,o,$,O,z,R,Q,ne,V,ue]),X.useEffect(()=>{C.current=!1},[w,d]);const ve=X.useMemo(()=>({onKeyDown:z,...h&&{[Y5[m]]:re=>{r(!1,re.nativeEvent,"reference-press")},...m!=="click"&&{onClick(re){r(!1,re.nativeEvent,"reference-press")}}}}),[z,r,h,m]),de=X.useMemo(()=>({onKeyDown:z,onMouseDown(){A.current=!0},onMouseUp(){A.current=!0},[H5[d]]:()=>{C.current=!0}}),[z,d]);return X.useMemo(()=>o?{reference:ve,floating:de}:{},[o,ve,de])}function q5(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Gx(),a=X.useRef({}),[o]=X.useState(()=>B5()),c=zd()!=null;if(process.env.NODE_ENV!=="production"){const y=r.reference;y&&!qe(y)&&V5("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[u,d]=X.useState(r.reference),h=er((y,S,b)=>{a.current.openEvent=y?S:void 0,o.emit("openchange",{open:y,event:S,reason:b,nested:c}),n==null||n(y,S,b)}),m=X.useMemo(()=>({setPositionReference:d}),[]),p=X.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return X.useMemo(()=>({dataRef:a,open:t,onOpenChange:h,elements:p,events:o,floatingId:i,refs:m}),[t,h,p,o,i,m])}function gi(e){e===void 0&&(e={});const{nodeId:t}=e,n=q5({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,o]=X.useState(null),[c,u]=X.useState(null),h=(i==null?void 0:i.domReference)||a,m=X.useRef(null),p=Gd();Dr(()=>{h&&(m.current=h)},[h]);const y=N5({...e,elements:{...i,...c&&{reference:c}}}),S=X.useCallback(A=>{const $=qe(A)?{getBoundingClientRect:()=>A.getBoundingClientRect(),contextElement:A}:A;u($),y.refs.setReference($)},[y.refs]),b=X.useCallback(A=>{(qe(A)||A===null)&&(m.current=A,o(A)),(qe(y.refs.reference.current)||y.refs.reference.current===null||A!==null&&!qe(A))&&y.refs.setReference(A)},[y.refs]),E=X.useMemo(()=>({...y.refs,setReference:b,setPositionReference:S,domReference:m}),[y.refs,b,S]),w=X.useMemo(()=>({...y.elements,domReference:h}),[y.elements,h]),C=X.useMemo(()=>({...y,...r,refs:E,elements:w,nodeId:t}),[y,E,w,t,r]);return Dr(()=>{r.dataRef.current.floatingContext=C;const A=p==null?void 0:p.nodesRef.current.find($=>$.id===t);A&&(A.context=C)}),X.useMemo(()=>({...y,context:C,refs:E,elements:w}),[y,E,w,C])}function K5(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:a,elements:o}=e,{enabled:c=!0,visibleOnly:u=!0}=t,d=X.useRef(!1),h=X.useRef(-1),m=X.useRef(!0);X.useEffect(()=>{if(!c)return;const y=Lt(o.domReference);function S(){!n&&kt(o.domReference)&&o.domReference===Tx(ai(o.domReference))&&(d.current=!0)}function b(){m.current=!0}return y.addEventListener("blur",S),y.addEventListener("keydown",b,!0),()=>{y.removeEventListener("blur",S),y.removeEventListener("keydown",b,!0)}},[o.domReference,n,c]),X.useEffect(()=>{if(!c)return;function y(S){let{reason:b}=S;(b==="reference-press"||b==="escape-key")&&(d.current=!0)}return i.on("openchange",y),()=>{i.off("openchange",y)}},[i,c]),X.useEffect(()=>()=>{an(h)},[]);const p=X.useMemo(()=>({onPointerDown(y){qR(y.nativeEvent)||(m.current=!1)},onMouseLeave(){d.current=!1},onFocus(y){if(d.current)return;const S=fs(y.nativeEvent);if(u&&qe(S))try{if(KR()&&XR())throw Error();if(!S.matches(":focus-visible"))return}catch{if(!m.current&&!Ax(S))return}r(!0,y.nativeEvent,"focus")},onBlur(y){d.current=!1;const S=y.relatedTarget,b=y.nativeEvent,E=qe(S)&&S.hasAttribute(Yd("focus-guard"))&&S.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var w;const C=Tx(o.domReference?o.domReference.ownerDocument:document);!S&&C===o.domReference||$o((w=a.current.floatingContext)==null?void 0:w.refs.floating.current,C)||$o(o.domReference,C)||E||r(!1,b,"focus")})}}),[a,o.domReference,r,u]);return X.useMemo(()=>c?{reference:p}:{},[c,p])}const Xx="active",Zx="selected";function Kd(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[Xx]:o,[Zx]:c,...u}=e;a=u}return{...n==="floating"&&{tabIndex:-1,[G5]:""},...a,...t.map(o=>{const c=o?o[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((o,c)=>(c&&Object.entries(c).forEach(u=>{let[d,h]=u;if(!(i&&[Xx,Zx].includes(d)))if(d.indexOf("on")===0){if(r.has(d)||r.set(d,[]),typeof h=="function"){var m;(m=r.get(d))==null||m.push(h),o[d]=function(){for(var p,y=arguments.length,S=new Array(y),b=0;b<y;b++)S[b]=arguments[b];return(p=r.get(d))==null?void 0:p.map(E=>E(...S)).find(E=>E!==void 0)}}}else o[d]=h}),o),{})}}function yi(e){e===void 0&&(e=[]);const t=e.map(c=>c==null?void 0:c.reference),n=e.map(c=>c==null?void 0:c.floating),r=e.map(c=>c==null?void 0:c.item),i=X.useCallback(c=>Kd(c,e,"reference"),t),a=X.useCallback(c=>Kd(c,e,"floating"),n),o=X.useCallback(c=>Kd(c,e,"item"),r);return X.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}const X5=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Z5(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:a=!0,role:o="dialog"}=t,c=(n=X5.get(o))!=null?n:o,u=Gx(),h=zd()!=null,m=X.useMemo(()=>c==="tooltip"||o==="label"?{["aria-"+(o==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":c==="alertdialog"?"dialog":c,"aria-controls":r?i:void 0,...c==="listbox"&&{role:"combobox"},...c==="menu"&&{id:u},...c==="menu"&&h&&{role:"menuitem"},...o==="select"&&{"aria-autocomplete":"none"},...o==="combobox"&&{"aria-autocomplete":"list"}},[c,i,h,r,u,o]),p=X.useMemo(()=>{const S={id:i,...c&&{role:c}};return c==="tooltip"||o==="label"?S:{...S,...c==="menu"&&{"aria-labelledby":u}}},[c,i,u,o]),y=X.useCallback(S=>{let{active:b,selected:E}=S;const w={role:"option",...b&&{id:i+"-option"}};switch(o){case"select":return{...w,"aria-selected":b&&E};case"combobox":return{...w,...b&&{"aria-selected":!0}}}return{}},[i,o]);return X.useMemo(()=>a?{reference:m,floating:p,item:y}:{},[a,m,p,y])}const Jx=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function ys(e,t){return typeof e=="function"?e(t):e}function J5(e,t){const[n,r]=X.useState(e);return e&&!n&&r(!0),X.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function Q5(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,o=(typeof i=="number"?i:i.close)||0,[c,u]=X.useState("unmounted"),d=J5(n,o);return!d&&c==="close"&&u("unmounted"),Dr(()=>{if(r){if(n){u("initial");const h=requestAnimationFrame(()=>{u("open")});return()=>{cancelAnimationFrame(h)}}u("close")}},[n,r]),{isMounted:d,status:c}}function vs(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:a,duration:o=250}=t,c=e.placement,u=c.split("-")[0],d=X.useMemo(()=>({side:u,placement:c}),[u,c]),h=typeof o=="number",m=(h?o:o.open)||0,p=(h?o:o.close)||0,[y,S]=X.useState(()=>({...ys(a,d),...ys(n,d)})),{isMounted:b,status:E}=Q5(e,{duration:o}),w=mi(n),C=mi(r),A=mi(i),$=mi(a);return Dr(()=>{const O=ys(w.current,d),R=ys(A.current,d),V=ys($.current,d),F=ys(C.current,d)||Object.keys(O).reduce((z,Q)=>(z[Q]="",z),{});if(E==="initial"&&S(z=>({transitionProperty:z.transitionProperty,...V,...O})),E==="open"&&S({transitionProperty:Object.keys(F).map(Jx).join(","),transitionDuration:m+"ms",...V,...F}),E==="close"){const z=R||O;S({transitionProperty:Object.keys(z).map(Jx).join(","),transitionDuration:p+"ms",...V,...z})}},[p,A,w,C,$,m,E,d]),{isMounted:b,styles:y}}const Lo=({open:e,onClose:t,component:n,children:r,placement:i="bottom",className:a="",strategy:o="absolute",offset:c=8,padding:u=8})=>{const[d,h]=I.useState(e);I.useEffect(()=>{h(e)},[e]);const m=()=>{h(!1),t==null||t()},{x:p,y,strategy:S,refs:b,context:E}=gi({strategy:o,open:d,onOpenChange:V=>{V||m()},middleware:[fi(c),hi(),di({padding:u})],whileElementsMounted:ui,placement:i}),w=gs(E),C=pi(E),{getReferenceProps:A,getFloatingProps:$}=yi([w,C]),{isMounted:O,styles:R}=vs(E,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px) scale(0.95)"}});return v.jsxs("div",{className:"relative",children:[v.jsx("div",{ref:b.setReference,...A(),className:"reference-element",children:r}),O&&v.jsx("div",{ref:b.setFloating,style:{position:S,top:y??0,left:p??0,...R,zIndex:9999},...$(),className:"floating-element",children:v.jsx(bs,{className:a,children:typeof n=="function"?I.createElement(n):n})})]})},Qx={initial:{backgroundColor:"#ffffff",color:"#57595f"},active:{backgroundColor:"#dee7fc",color:"#111827"},exit:{backgroundColor:"#ffffff",color:"#57595f"}},eN=({selectedPeriod:e,handlePeriodChange:t})=>v.jsxs("div",{className:"flex border border-blue-100 rounded-xl p-6 gap-2",children:[v.jsx(Ze.button,{variants:Qx,initial:"initial",animate:e==="AM"?"active":"initial",exit:"exit",transition:{duration:.2},onClick:()=>t("AM"),disabled:e==="AM",className:"flex items-center justify-center font-500 px-10 py-2 rounded-lg",children:"AM"}),v.jsx(Ze.button,{variants:Qx,initial:"initial",animate:e==="PM"?"active":"initial",exit:"exit",transition:{duration:.2},onClick:()=>t("PM"),disabled:e==="PM",className:"flex items-center justify-center font-500 px-10 py-2 rounded-lg",children:"PM"})]}),tN=({setHourMenuOpen:e,hourMenuOpen:t,selectedHour:n})=>v.jsx("button",{onClick:()=>e(!t),className:"flex justify-center items-center w-72 h-full border py-8 px-14 rounded-xl border-blue-100 text-gray-600 font-500",children:`${String(n).padStart(2,"0")}:00`});/*!
|
|
663
|
+
*/const B6={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},W6={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},U6={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},z6={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},G6={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};function tl(){return typeof window<"u"}function us(e){return wx(e)?(e.nodeName||"").toLowerCase():"#document"}function Lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kn(e){var t;return(t=(wx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wx(e){return tl()?e instanceof Node||e instanceof Lt(e).Node:!1}function qe(e){return tl()?e instanceof Element||e instanceof Lt(e).Element:!1}function kt(e){return tl()?e instanceof HTMLElement||e instanceof Lt(e).HTMLElement:!1}function _d(e){return!tl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Lt(e).ShadowRoot}function Do(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=on(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Y6(e){return["table","td","th"].includes(us(e))}function nl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Id(e){const t=rl(),n=qe(e)?on(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function H6(e){let t=Qn(e);for(;kt(t)&&!Jn(t);){if(Id(t))return t;if(nl(t))return null;t=Qn(t)}return null}function rl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Jn(e){return["html","body","#document"].includes(us(e))}function on(e){return Lt(e).getComputedStyle(e)}function il(e){return qe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qn(e){if(us(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_d(e)&&e.host||kn(e);return _d(t)?t.host:t}function Sx(e){const t=Qn(e);return Jn(t)?e.ownerDocument?e.ownerDocument.body:e.body:kt(t)&&Do(t)?t:Sx(t)}function Or(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Sx(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Lt(i);if(o){const c=Dd(a);return t.concat(a,a.visualViewport||[],Do(i)?i:[],c&&n?Or(c):[])}return t.concat(i,Or(i,[],n))}function Dd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Tx(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 $o(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&_d(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Ex(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Cx(){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 q6(e){return Z6()?!1:!Px()&&e.width===0&&e.height===0||Px()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function K6(){return/apple/i.test(navigator.vendor)}function Px(){const e=/android/i;return e.test(Ex())||e.test(Cx())}function X6(){return Ex().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Z6(){return Cx().includes("jsdom/")}function Ro(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function J6(e){return"nativeEvent"in e}function Q6(e){return e.matches("html,body")}function ai(e){return(e==null?void 0:e.ownerDocument)||document}function $d(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function fs(e){return"composedPath"in e?e.composedPath()[0]:e.target}const eR="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Ax(e){return kt(e)&&e.matches(eR)}const _r=Math.min,Yt=Math.max,sl=Math.round,ol=Math.floor,jn=e=>({x:e,y:e}),tR={left:"right",right:"left",bottom:"top",top:"bottom"},nR={start:"end",end:"start"};function Rd(e,t,n){return Yt(e,_r(t,n))}function ds(e,t){return typeof e=="function"?e(t):e}function Ir(e){return e.split("-")[0]}function hs(e){return e.split("-")[1]}function Mx(e){return e==="x"?"y":"x"}function Nd(e){return e==="y"?"height":"width"}function li(e){return["top","bottom"].includes(Ir(e))?"y":"x"}function Ld(e){return Mx(li(e))}function rR(e,t,n){n===void 0&&(n=!1);const r=hs(e),i=Ld(e),o=Nd(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=al(a)),[a,al(a)]}function iR(e){const t=al(e);return[kd(e),t,kd(t)]}function kd(e){return e.replace(/start|end/g,t=>nR[t])}function sR(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function oR(e,t,n,r){const i=hs(e);let o=sR(Ir(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(kd)))),o}function al(e){return e.replace(/left|right|bottom|top/g,t=>tR[t])}function aR(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ox(e){return typeof e!="number"?aR(e):{top:e,right:e,bottom:e,left:e}}function ll(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 _x(e,t,n){let{reference:r,floating:i}=e;const o=li(t),a=Ld(t),c=Nd(a),u=Ir(t),d=o==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,p=r[c]/2-i[c]/2;let y;switch(u){case"top":y={x:h,y:r.y-i.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:m};break;case"left":y={x:r.x-i.width,y:m};break;default:y={x:r.x,y:r.y}}switch(hs(t)){case"start":y[a]-=p*(n&&d?-1:1);break;case"end":y[a]+=p*(n&&d?-1:1);break}return y}const lR=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,c=o.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=_x(d,r,u),p=r,y={},S=0;for(let b=0;b<c.length;b++){const{name:E,fn:w}=c[b],{x:C,y:M,data:$,reset:P}=await w({x:h,y:m,initialPlacement:r,placement:p,strategy:i,middlewareData:y,rects:d,platform:a,elements:{reference:e,floating:t}});h=C??h,m=M??m,y={...y,[E]:{...y[E],...$}},P&&S<=50&&(S++,typeof P=="object"&&(P.placement&&(p=P.placement),P.rects&&(d=P.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):P.rects),{x:h,y:m}=_x(d,p,u)),b=-1)}return{x:h,y:m,placement:p,strategy:i,middlewareData:y}};async function jd(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:c,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:p=!1,padding:y=0}=ds(t,e),S=Ox(y),E=c[p?m==="floating"?"reference":"floating":m],w=ll(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(E)))==null||n?E:E.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:u})),C=m==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,M=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),$=await(o.isElement==null?void 0:o.isElement(M))?await(o.getScale==null?void 0:o.getScale(M))||{x:1,y:1}:{x:1,y:1},P=ll(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:C,offsetParent:M,strategy:u}):C);return{top:(w.top-P.top+S.top)/$.y,bottom:(P.bottom-w.bottom+S.bottom)/$.y,left:(w.left-P.left+S.left)/$.x,right:(P.right-w.right+S.right)/$.x}}const cR=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:c,middlewareData:u}=t,{element:d,padding:h=0}=ds(e,t)||{};if(d==null)return{};const m=Ox(h),p={x:n,y:r},y=Ld(i),S=Nd(y),b=await a.getDimensions(d),E=y==="y",w=E?"top":"left",C=E?"bottom":"right",M=E?"clientHeight":"clientWidth",$=o.reference[S]+o.reference[y]-p[y]-o.floating[S],P=p[y]-o.reference[y],R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let k=R?R[M]:0;(!k||!await(a.isElement==null?void 0:a.isElement(R)))&&(k=c.floating[M]||o.floating[S]);const j=$/2-P/2,z=k/2-b[S]/2-1,Z=_r(m[w],z),te=_r(m[C],z),ce=Z,ve=k-b[S]-te,fe=k/2-b[S]/2+j,ee=Rd(ce,fe,ve),ne=!u.arrow&&hs(i)!=null&&fe!==ee&&o.reference[S]/2-(fe<ce?Z:te)-b[S]/2<0,N=ne?fe<ce?fe-ce:fe-ve:0;return{[y]:p[y]+N,data:{[y]:ee,centerOffset:fe-ee-N,...ne&&{alignmentOffset:N}},reset:ne}}}),uR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:b=!0,...E}=ds(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const w=Ir(i),C=li(c),M=Ir(c)===c,$=await(u.isRTL==null?void 0:u.isRTL(d.floating)),P=p||(M||!b?[al(c)]:iR(c)),R=S!=="none";!p&&R&&P.push(...oR(c,b,S,$));const k=[c,...P],j=await jd(t,E),z=[];let Z=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&z.push(j[w]),m){const fe=rR(i,a,$);z.push(j[fe[0]],j[fe[1]])}if(Z=[...Z,{placement:i,overflows:z}],!z.every(fe=>fe<=0)){var te,ce;const fe=(((te=o.flip)==null?void 0:te.index)||0)+1,ee=k[fe];if(ee)return{data:{index:fe,overflows:Z},reset:{placement:ee}};let ne=(ce=Z.filter(N=>N.overflows[0]<=0).sort((N,W)=>N.overflows[1]-W.overflows[1])[0])==null?void 0:ce.placement;if(!ne)switch(y){case"bestFit":{var ve;const N=(ve=Z.filter(W=>{if(R){const q=li(W.placement);return q===C||q==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(q=>q>0).reduce((q,O)=>q+O,0)]).sort((W,q)=>W[1]-q[1])[0])==null?void 0:ve[0];N&&(ne=N);break}case"initialPlacement":ne=c;break}if(i!==ne)return{reset:{placement:ne}}}return{}}}};async function fR(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Ir(n),c=hs(n),u=li(n)==="y",d=["left","top"].includes(a)?-1:1,h=o&&u?-1:1,m=ds(t,e);let{mainAxis:p,crossAxis:y,alignmentAxis:S}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof S=="number"&&(y=c==="end"?S*-1:S),u?{x:y*h,y:p*d}:{x:p*d,y:y*h}}const dR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:c}=t,u=await fR(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:o+u.y,data:{...u,placement:a}}}}},hR=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:c={fn:E=>{let{x:w,y:C}=E;return{x:w,y:C}}},...u}=ds(e,t),d={x:n,y:r},h=await jd(t,u),m=li(Ir(i)),p=Mx(m);let y=d[p],S=d[m];if(o){const E=p==="y"?"top":"left",w=p==="y"?"bottom":"right",C=y+h[E],M=y-h[w];y=Rd(C,y,M)}if(a){const E=m==="y"?"top":"left",w=m==="y"?"bottom":"right",C=S+h[E],M=S-h[w];S=Rd(C,S,M)}const b=c.fn({...t,[p]:y,[m]:S});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:o,[m]:a}}}}}},mR=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:c}=t,{apply:u=()=>{},...d}=ds(e,t),h=await jd(t,d),m=Ir(i),p=hs(i),y=li(i)==="y",{width:S,height:b}=o.floating;let E,w;m==="top"||m==="bottom"?(E=m,w=p===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(w=m,E=p==="end"?"top":"bottom");const C=b-h.top-h.bottom,M=S-h.left-h.right,$=_r(b-h[E],C),P=_r(S-h[w],M),R=!t.middlewareData.shift;let k=$,j=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=M),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=C),R&&!p){const Z=Yt(h.left,0),te=Yt(h.right,0),ce=Yt(h.top,0),ve=Yt(h.bottom,0);y?j=S-2*(Z!==0||te!==0?Z+te:Yt(h.left,h.right)):k=b-2*(ce!==0||ve!==0?ce+ve:Yt(h.top,h.bottom))}await u({...t,availableWidth:j,availableHeight:k});const z=await a.getDimensions(c.floating);return S!==z.width||b!==z.height?{reset:{rects:!0}}:{}}}};function Ix(e){const t=on(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=kt(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,c=sl(n)!==o||sl(r)!==a;return c&&(n=o,r=a),{width:n,height:r,$:c}}function Fd(e){return qe(e)?e:e.contextElement}function ms(e){const t=Fd(e);if(!kt(t))return jn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Ix(t);let a=(o?sl(n.width):n.width)/r,c=(o?sl(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const pR=jn(0);function Dx(e){const t=Lt(e);return!rl()||!t.visualViewport?pR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gR(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Lt(e)?!1:t}function ci(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Fd(e);let a=jn(1);t&&(r?qe(r)&&(a=ms(r)):a=ms(e));const c=gR(o,n,r)?Dx(o):jn(0);let u=(i.left+c.x)/a.x,d=(i.top+c.y)/a.y,h=i.width/a.x,m=i.height/a.y;if(o){const p=Lt(o),y=r&&qe(r)?Lt(r):r;let S=p,b=Dd(S);for(;b&&r&&y!==S;){const E=ms(b),w=b.getBoundingClientRect(),C=on(b),M=w.left+(b.clientLeft+parseFloat(C.paddingLeft))*E.x,$=w.top+(b.clientTop+parseFloat(C.paddingTop))*E.y;u*=E.x,d*=E.y,h*=E.x,m*=E.y,u+=M,d+=$,S=Lt(b),b=Dd(S)}}return ll({width:h,height:m,x:u,y:d})}function Vd(e,t){const n=il(e).scrollLeft;return t?t.left+n:ci(kn(e)).left+n}function $x(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Vd(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function yR(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=kn(r),c=t?nl(t.floating):!1;if(r===a||c&&o)return n;let u={scrollLeft:0,scrollTop:0},d=jn(1);const h=jn(0),m=kt(r);if((m||!m&&!o)&&((us(r)!=="body"||Do(a))&&(u=il(r)),kt(r))){const y=ci(r);d=ms(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}const p=a&&!m&&!o?$x(a,u,!0):jn(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+h.x+p.x,y:n.y*d.y-u.scrollTop*d.y+h.y+p.y}}function vR(e){return Array.from(e.getClientRects())}function bR(e){const t=kn(e),n=il(e),r=e.ownerDocument.body,i=Yt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Yt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Vd(e);const c=-n.scrollTop;return on(r).direction==="rtl"&&(a+=Yt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:c}}function xR(e,t){const n=Lt(e),r=kn(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,c=0,u=0;if(i){o=i.width,a=i.height;const d=rl();(!d||d&&t==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:c,y:u}}function wR(e,t){const n=ci(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=kt(e)?ms(e):jn(1),a=e.clientWidth*o.x,c=e.clientHeight*o.y,u=i*o.x,d=r*o.y;return{width:a,height:c,x:u,y:d}}function Rx(e,t,n){let r;if(t==="viewport")r=xR(e,n);else if(t==="document")r=bR(kn(e));else if(qe(t))r=wR(t,n);else{const i=Dx(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ll(r)}function Nx(e,t){const n=Qn(e);return n===t||!qe(n)||Jn(n)?!1:on(n).position==="fixed"||Nx(n,t)}function SR(e,t){const n=t.get(e);if(n)return n;let r=Or(e,[],!1).filter(c=>qe(c)&&us(c)!=="body"),i=null;const o=on(e).position==="fixed";let a=o?Qn(e):e;for(;qe(a)&&!Jn(a);){const c=on(a),u=Id(a);!u&&c.position==="fixed"&&(i=null),(o?!u&&!i:!u&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Do(a)&&!u&&Nx(e,a))?r=r.filter(h=>h!==a):i=c,a=Qn(a)}return t.set(e,r),r}function TR(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?nl(t)?[]:SR(t,this._c):[].concat(n),r],c=a[0],u=a.reduce((d,h)=>{const m=Rx(t,h,i);return d.top=Yt(m.top,d.top),d.right=_r(m.right,d.right),d.bottom=_r(m.bottom,d.bottom),d.left=Yt(m.left,d.left),d},Rx(t,c,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function ER(e){const{width:t,height:n}=Ix(e);return{width:t,height:n}}function CR(e,t,n){const r=kt(t),i=kn(t),o=n==="fixed",a=ci(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const u=jn(0);if(r||!r&&!o)if((us(t)!=="body"||Do(i))&&(c=il(t)),r){const p=ci(t,!0,o,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else i&&(u.x=Vd(i));const d=i&&!r&&!o?$x(i,c):jn(0),h=a.left+c.scrollLeft-u.x-d.x,m=a.top+c.scrollTop-u.y-d.y;return{x:h,y:m,width:a.width,height:a.height}}function Bd(e){return on(e).position==="static"}function Lx(e,t){if(!kt(e)||on(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return kn(e)===n&&(n=n.ownerDocument.body),n}function kx(e,t){const n=Lt(e);if(nl(e))return n;if(!kt(e)){let i=Qn(e);for(;i&&!Jn(i);){if(qe(i)&&!Bd(i))return i;i=Qn(i)}return n}let r=Lx(e,t);for(;r&&Y6(r)&&Bd(r);)r=Lx(r,t);return r&&Jn(r)&&Bd(r)&&!Id(r)?n:r||H6(e)||n}const PR=async function(e){const t=this.getOffsetParent||kx,n=this.getDimensions,r=await n(e.floating);return{reference:CR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function AR(e){return on(e).direction==="rtl"}const MR={convertOffsetParentRelativeRectToViewportRelativeRect:yR,getDocumentElement:kn,getClippingRect:TR,getOffsetParent:kx,getElementRects:PR,getClientRects:vR,getDimensions:ER,getScale:ms,isElement:qe,isRTL:AR};function jx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function OR(e,t){let n=null,r;const i=kn(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),o();const d=e.getBoundingClientRect(),{left:h,top:m,width:p,height:y}=d;if(c||t(),!p||!y)return;const S=ol(m),b=ol(i.clientWidth-(h+p)),E=ol(i.clientHeight-(m+y)),w=ol(h),M={rootMargin:-S+"px "+-b+"px "+-E+"px "+-w+"px",threshold:Yt(0,_r(1,u))||1};let $=!0;function P(R){const k=R[0].intersectionRatio;if(k!==u){if(!$)return a();k?a(!1,k):r=setTimeout(()=>{a(!1,1e-7)},1e3)}k===1&&!jx(d,e.getBoundingClientRect())&&a(),$=!1}try{n=new IntersectionObserver(P,{...M,root:i.ownerDocument})}catch{n=new IntersectionObserver(P,M)}n.observe(e)}return a(!0),o}function ui(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=Fd(e),h=i||o?[...d?Or(d):[],...Or(t)]:[];h.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),o&&w.addEventListener("resize",n)});const m=d&&c?OR(d,n):null;let p=-1,y=null;a&&(y=new ResizeObserver(w=>{let[C]=w;C&&C.target===d&&y&&(y.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var M;(M=y)==null||M.observe(t)})),n()}),d&&!u&&y.observe(d),y.observe(t));let S,b=u?ci(e):null;u&&E();function E(){const w=ci(e);b&&!jx(b,w)&&n(),b=w,S=requestAnimationFrame(E)}return n(),()=>{var w;h.forEach(C=>{i&&C.removeEventListener("scroll",n),o&&C.removeEventListener("resize",n)}),m==null||m(),(w=y)==null||w.disconnect(),y=null,u&&cancelAnimationFrame(S)}}const _R=dR,IR=hR,DR=uR,$R=mR,Fx=cR,RR=(e,t,n)=>{const r=new Map,i={platform:MR,...n},o={...i.platform,_c:r};return lR(e,t,{...i,platform:o})};var cl=typeof document<"u"?I.useLayoutEffect:I.useEffect;function ul(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(!ul(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!ul(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Vx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bx(e,t){const n=Vx(e);return Math.round(t*n)/n}function Wd(e){const t=X.useRef(e);return cl(()=>{t.current=e}),t}function NR(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[h,m]=X.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,y]=X.useState(r);ul(p,r)||y(r);const[S,b]=X.useState(null),[E,w]=X.useState(null),C=X.useCallback(W=>{W!==R.current&&(R.current=W,b(W))},[]),M=X.useCallback(W=>{W!==k.current&&(k.current=W,w(W))},[]),$=o||S,P=a||E,R=X.useRef(null),k=X.useRef(null),j=X.useRef(h),z=u!=null,Z=Wd(u),te=Wd(i),ce=Wd(d),ve=X.useCallback(()=>{if(!R.current||!k.current)return;const W={placement:t,strategy:n,middleware:p};te.current&&(W.platform=te.current),RR(R.current,k.current,W).then(q=>{const O={...q,isPositioned:ce.current!==!1};fe.current&&!ul(j.current,O)&&(j.current=O,mT.flushSync(()=>{m(O)}))})},[p,t,n,te,ce]);cl(()=>{d===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,m(W=>({...W,isPositioned:!1})))},[d]);const fe=X.useRef(!1);cl(()=>(fe.current=!0,()=>{fe.current=!1}),[]),cl(()=>{if($&&(R.current=$),P&&(k.current=P),$&&P){if(Z.current)return Z.current($,P,ve);ve()}},[$,P,ve,Z,z]);const ee=X.useMemo(()=>({reference:R,floating:k,setReference:C,setFloating:M}),[C,M]),ne=X.useMemo(()=>({reference:$,floating:P}),[$,P]),N=X.useMemo(()=>{const W={position:n,left:0,top:0};if(!ne.floating)return W;const q=Bx(ne.floating,h.x),O=Bx(ne.floating,h.y);return c?{...W,transform:"translate("+q+"px, "+O+"px)",...Vx(ne.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:q,top:O}},[n,c,ne.floating,h.x,h.y]);return X.useMemo(()=>({...h,update:ve,refs:ee,elements:ne,floatingStyles:N}),[h,ve,ee,ne,N])}const LR=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Fx({element:r.current,padding:i}).fn(n):{}:r?Fx({element:r,padding:i}).fn(n):{}}}},fi=(e,t)=>({..._R(e),options:[e,t]}),di=(e,t)=>({...IR(e),options:[e,t]}),hi=(e,t)=>({...DR(e),options:[e,t]}),No=(e,t)=>({...$R(e),options:[e,t]}),ps=(e,t)=>({...LR(e),options:[e,t]}),Wx={...X},kR=Wx.useInsertionEffect||(e=>e());function er(e){const t=X.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return kR(()=>{t.current=e}),X.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)},[])}var Dr=typeof document<"u"?I.useLayoutEffect:I.useEffect;let Ux=!1,jR=0;const zx=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+jR++;function FR(){const[e,t]=X.useState(()=>Ux?zx():void 0);return Dr(()=>{e==null&&t(zx())},[]),X.useEffect(()=>{Ux=!0},[]),e}const Gx=Wx.useId||FR;let Ud;process.env.NODE_ENV!=="production"&&(Ud=new Set);function VR(){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=Ud)!=null&&e.has(i))){var o;(o=Ud)==null||o.add(i),console.error(i)}}function BR(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const WR=X.createContext(null),UR=X.createContext(null),zd=()=>{var e;return((e=X.useContext(WR))==null?void 0:e.id)||null},Gd=()=>X.useContext(UR);function Yd(e){return"data-floating-ui-"+e}function an(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}function mi(e){const t=I.useRef(e);return Dr(()=>{t.current=e}),t}const Yx=Yd("safe-polygon");function Hd(e,t,n){return n&&!Ro(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function zR(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:o,elements:a}=e,{enabled:c=!0,delay:u=0,handleClose:d=null,mouseOnly:h=!1,restMs:m=0,move:p=!0}=t,y=Gd(),S=zd(),b=mi(d),E=mi(u),w=mi(n),C=X.useRef(),M=X.useRef(-1),$=X.useRef(),P=X.useRef(-1),R=X.useRef(!0),k=X.useRef(!1),j=X.useRef(()=>{}),z=X.useRef(!1),Z=X.useCallback(()=>{var N;const W=(N=i.current.openEvent)==null?void 0:N.type;return(W==null?void 0:W.includes("mouse"))&&W!=="mousedown"},[i]);X.useEffect(()=>{if(!c)return;function N(W){let{open:q}=W;q||(an(M),an(P),R.current=!0,z.current=!1)}return o.on("openchange",N),()=>{o.off("openchange",N)}},[c,o]),X.useEffect(()=>{if(!c||!b.current||!n)return;function N(q){Z()&&r(!1,q,"hover")}const W=ai(a.floating).documentElement;return W.addEventListener("mouseleave",N),()=>{W.removeEventListener("mouseleave",N)}},[a.floating,n,r,c,b,Z]);const te=X.useCallback(function(N,W,q){W===void 0&&(W=!0),q===void 0&&(q="hover");const O=Hd(E.current,"close",C.current);O&&!$.current?(an(M),M.current=window.setTimeout(()=>r(!1,N,q),O)):W&&(an(M),r(!1,N,q))},[E,r]),ce=er(()=>{j.current(),$.current=void 0}),ve=er(()=>{if(k.current){const N=ai(a.floating).body;N.style.pointerEvents="",N.removeAttribute(Yx),k.current=!1}}),fe=er(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);X.useEffect(()=>{if(!c)return;function N(V){if(an(M),R.current=!1,h&&!Ro(C.current)||m>0&&!Hd(E.current,"open"))return;const J=Hd(E.current,"open",C.current);J?M.current=window.setTimeout(()=>{w.current||r(!0,V,"hover")},J):n||r(!0,V,"hover")}function W(V){if(fe())return;j.current();const J=ai(a.floating);if(an(P),z.current=!1,b.current&&i.current.floatingContext){n||an(M),$.current=b.current({...i.current.floatingContext,tree:y,x:V.clientX,y:V.clientY,onClose(){ve(),ce(),fe()||te(V,!0,"safe-polygon")}});const ae=$.current;J.addEventListener("mousemove",ae),j.current=()=>{J.removeEventListener("mousemove",ae)};return}(C.current==="touch"?!$o(a.floating,V.relatedTarget):!0)&&te(V)}function q(V){fe()||i.current.floatingContext&&(b.current==null||b.current({...i.current.floatingContext,tree:y,x:V.clientX,y:V.clientY,onClose(){ve(),ce(),fe()||te(V)}})(V))}if(qe(a.domReference)){var O;const V=a.domReference;return n&&V.addEventListener("mouseleave",q),(O=a.floating)==null||O.addEventListener("mouseleave",q),p&&V.addEventListener("mousemove",N,{once:!0}),V.addEventListener("mouseenter",N),V.addEventListener("mouseleave",W),()=>{var J;n&&V.removeEventListener("mouseleave",q),(J=a.floating)==null||J.removeEventListener("mouseleave",q),p&&V.removeEventListener("mousemove",N),V.removeEventListener("mouseenter",N),V.removeEventListener("mouseleave",W)}}},[a,c,e,h,m,p,te,ce,ve,r,n,w,y,E,b,i,fe]),Dr(()=>{var N;if(c&&n&&(N=b.current)!=null&&N.__options.blockPointerEvents&&Z()){k.current=!0;const q=a.floating;if(qe(a.domReference)&&q){var W;const O=ai(a.floating).body;O.setAttribute(Yx,"");const V=a.domReference,J=y==null||(W=y.nodesRef.current.find(re=>re.id===S))==null||(W=W.context)==null?void 0:W.elements.floating;return J&&(J.style.pointerEvents=""),O.style.pointerEvents="none",V.style.pointerEvents="auto",q.style.pointerEvents="auto",()=>{O.style.pointerEvents="",V.style.pointerEvents="",q.style.pointerEvents=""}}}},[c,n,S,a,y,b,Z]),Dr(()=>{n||(C.current=void 0,z.current=!1,ce(),ve())},[n,ce,ve]),X.useEffect(()=>()=>{ce(),an(M),an(P),ve()},[c,a.domReference,ce,ve]);const ee=X.useMemo(()=>{function N(W){C.current=W.pointerType}return{onPointerDown:N,onPointerEnter:N,onMouseMove(W){const{nativeEvent:q}=W;function O(){!R.current&&!w.current&&r(!0,q,"hover")}h&&!Ro(C.current)||n||m===0||z.current&&W.movementX**2+W.movementY**2<2||(an(P),C.current==="touch"?O():(z.current=!0,P.current=window.setTimeout(O,m)))}}},[h,r,n,w,m]),ne=X.useMemo(()=>({onMouseEnter(){an(M)},onMouseLeave(N){fe()||te(N.nativeEvent,!1)}}),[te,fe]);return X.useMemo(()=>c?{reference:ee,floating:ne}:{},[c,ee,ne])}function qd(e,t){let n=e.filter(i=>{var o;return i.parentId===t&&((o=i.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(i=>{var o;return(o=r)==null?void 0:o.some(a=>{var c;return i.parentId===a.id&&((c=i.context)==null?void 0:c.open)})}),n=n.concat(r);return n}const GR="data-floating-ui-focusable";function Hx(e){return kt(e.target)&&e.target.tagName==="BUTTON"}function qx(e){return Ax(e)}function gs(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:a=!0,event:c="click",toggle:u=!0,ignoreMouse:d=!1,keyboardHandlers:h=!0,stickIfOpen:m=!0}=t,p=X.useRef(),y=X.useRef(!1),S=X.useMemo(()=>({onPointerDown(b){p.current=b.pointerType},onMouseDown(b){const E=p.current;b.button===0&&c!=="click"&&(Ro(E,!0)&&d||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="mousedown")?r(!1,b.nativeEvent,"click"):(b.preventDefault(),r(!0,b.nativeEvent,"click"))))},onClick(b){const E=p.current;if(c==="mousedown"&&p.current){p.current=void 0;return}Ro(E,!0)&&d||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="click")?r(!1,b.nativeEvent,"click"):r(!0,b.nativeEvent,"click"))},onKeyDown(b){p.current=void 0,!(b.defaultPrevented||!h||Hx(b))&&(b.key===" "&&!qx(o)&&(b.preventDefault(),y.current=!0),b.key==="Enter"&&r(!(n&&u),b.nativeEvent,"click"))},onKeyUp(b){b.defaultPrevented||!h||Hx(b)||qx(o)||b.key===" "&&y.current&&(y.current=!1,r(!(n&&u),b.nativeEvent,"click"))}}),[i,o,c,d,h,r,n,m,u]);return X.useMemo(()=>a?{reference:S}:{},[a,S])}const YR={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},HR={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Kx=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function pi(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:a=!0,escapeKey:c=!0,outsidePress:u=!0,outsidePressEvent:d="pointerdown",referencePress:h=!1,referencePressEvent:m="pointerdown",ancestorScroll:p=!1,bubbles:y,capture:S}=t,b=Gd(),E=er(typeof u=="function"?u:()=>!1),w=typeof u=="function"?E:u,C=X.useRef(!1),M=X.useRef(!1),{escapeKey:$,outsidePress:P}=Kx(y),{escapeKey:R,outsidePress:k}=Kx(S),j=X.useRef(!1),z=er(ee=>{var ne;if(!n||!a||!c||ee.key!=="Escape"||j.current)return;const N=(ne=o.current.floatingContext)==null?void 0:ne.nodeId,W=b?qd(b.nodesRef.current,N):[];if(!$&&(ee.stopPropagation(),W.length>0)){let q=!0;if(W.forEach(O=>{var V;if((V=O.context)!=null&&V.open&&!O.context.dataRef.current.__escapeKeyBubbles){q=!1;return}}),!q)return}r(!1,J6(ee)?ee.nativeEvent:ee,"escape-key")}),Z=er(ee=>{var ne;const N=()=>{var W;z(ee),(W=fs(ee))==null||W.removeEventListener("keydown",N)};(ne=fs(ee))==null||ne.addEventListener("keydown",N)}),te=er(ee=>{var ne;const N=C.current;C.current=!1;const W=M.current;if(M.current=!1,d==="click"&&W||N||typeof w=="function"&&!w(ee))return;const q=fs(ee),O="["+Yd("inert")+"]",V=ai(i.floating).querySelectorAll(O);let J=qe(q)?q:null;for(;J&&!Jn(J);){const ie=Qn(J);if(Jn(ie)||!qe(ie))break;J=ie}if(V.length&&qe(q)&&!Q6(q)&&!$o(q,i.floating)&&Array.from(V).every(ie=>!$o(J,ie)))return;if(kt(q)&&fe){const ie=Jn(q),he=on(q),ue=/auto|scroll/,ye=ie||ue.test(he.overflowX),xe=ie||ue.test(he.overflowY),Le=ye&&q.clientWidth>0&&q.scrollWidth>q.clientWidth,se=xe&&q.clientHeight>0&&q.scrollHeight>q.clientHeight,pe=he.direction==="rtl",ke=se&&(pe?ee.offsetX<=q.offsetWidth-q.clientWidth:ee.offsetX>q.clientWidth),ft=Le&&ee.offsetY>q.clientHeight;if(ke||ft)return}const re=(ne=o.current.floatingContext)==null?void 0:ne.nodeId,ae=b&&qd(b.nodesRef.current,re).some(ie=>{var he;return $d(ee,(he=ie.context)==null?void 0:he.elements.floating)});if($d(ee,i.floating)||$d(ee,i.domReference)||ae)return;const G=b?qd(b.nodesRef.current,re):[];if(G.length>0){let ie=!0;if(G.forEach(he=>{var ue;if((ue=he.context)!=null&&ue.open&&!he.context.dataRef.current.__outsidePressBubbles){ie=!1;return}}),!ie)return}r(!1,ee,"outside-press")}),ce=er(ee=>{var ne;const N=()=>{var W;te(ee),(W=fs(ee))==null||W.removeEventListener(d,N)};(ne=fs(ee))==null||ne.addEventListener(d,N)});X.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=$,o.current.__outsidePressBubbles=P;let ee=-1;function ne(V){r(!1,V,"ancestor-scroll")}function N(){window.clearTimeout(ee),j.current=!0}function W(){ee=window.setTimeout(()=>{j.current=!1},rl()?5:0)}const q=ai(i.floating);c&&(q.addEventListener("keydown",R?Z:z,R),q.addEventListener("compositionstart",N),q.addEventListener("compositionend",W)),w&&q.addEventListener(d,k?ce:te,k);let O=[];return p&&(qe(i.domReference)&&(O=Or(i.domReference)),qe(i.floating)&&(O=O.concat(Or(i.floating))),!qe(i.reference)&&i.reference&&i.reference.contextElement&&(O=O.concat(Or(i.reference.contextElement)))),O=O.filter(V=>{var J;return V!==((J=q.defaultView)==null?void 0:J.visualViewport)}),O.forEach(V=>{V.addEventListener("scroll",ne,{passive:!0})}),()=>{c&&(q.removeEventListener("keydown",R?Z:z,R),q.removeEventListener("compositionstart",N),q.removeEventListener("compositionend",W)),w&&q.removeEventListener(d,k?ce:te,k),O.forEach(V=>{V.removeEventListener("scroll",ne)}),window.clearTimeout(ee)}},[o,i,c,w,d,n,r,p,a,$,P,z,R,Z,te,k,ce]),X.useEffect(()=>{C.current=!1},[w,d]);const ve=X.useMemo(()=>({onKeyDown:z,...h&&{[YR[m]]:ee=>{r(!1,ee.nativeEvent,"reference-press")},...m!=="click"&&{onClick(ee){r(!1,ee.nativeEvent,"reference-press")}}}}),[z,r,h,m]),fe=X.useMemo(()=>({onKeyDown:z,onMouseDown(){M.current=!0},onMouseUp(){M.current=!0},[HR[d]]:()=>{C.current=!0}}),[z,d]);return X.useMemo(()=>a?{reference:ve,floating:fe}:{},[a,ve,fe])}function qR(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Gx(),o=X.useRef({}),[a]=X.useState(()=>BR()),c=zd()!=null;if(process.env.NODE_ENV!=="production"){const y=r.reference;y&&!qe(y)&&VR("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[u,d]=X.useState(r.reference),h=er((y,S,b)=>{o.current.openEvent=y?S:void 0,a.emit("openchange",{open:y,event:S,reason:b,nested:c}),n==null||n(y,S,b)}),m=X.useMemo(()=>({setPositionReference:d}),[]),p=X.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return X.useMemo(()=>({dataRef:o,open:t,onOpenChange:h,elements:p,events:a,floatingId:i,refs:m}),[t,h,p,a,i,m])}function gi(e){e===void 0&&(e={});const{nodeId:t}=e,n=qR({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=X.useState(null),[c,u]=X.useState(null),h=(i==null?void 0:i.domReference)||o,m=X.useRef(null),p=Gd();Dr(()=>{h&&(m.current=h)},[h]);const y=NR({...e,elements:{...i,...c&&{reference:c}}}),S=X.useCallback(M=>{const $=qe(M)?{getBoundingClientRect:()=>M.getBoundingClientRect(),contextElement:M}:M;u($),y.refs.setReference($)},[y.refs]),b=X.useCallback(M=>{(qe(M)||M===null)&&(m.current=M,a(M)),(qe(y.refs.reference.current)||y.refs.reference.current===null||M!==null&&!qe(M))&&y.refs.setReference(M)},[y.refs]),E=X.useMemo(()=>({...y.refs,setReference:b,setPositionReference:S,domReference:m}),[y.refs,b,S]),w=X.useMemo(()=>({...y.elements,domReference:h}),[y.elements,h]),C=X.useMemo(()=>({...y,...r,refs:E,elements:w,nodeId:t}),[y,E,w,t,r]);return Dr(()=>{r.dataRef.current.floatingContext=C;const M=p==null?void 0:p.nodesRef.current.find($=>$.id===t);M&&(M.context=C)}),X.useMemo(()=>({...y,context:C,refs:E,elements:w}),[y,E,w,C])}function KR(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:o,elements:a}=e,{enabled:c=!0,visibleOnly:u=!0}=t,d=X.useRef(!1),h=X.useRef(-1),m=X.useRef(!0);X.useEffect(()=>{if(!c)return;const y=Lt(a.domReference);function S(){!n&&kt(a.domReference)&&a.domReference===Tx(ai(a.domReference))&&(d.current=!0)}function b(){m.current=!0}return y.addEventListener("blur",S),y.addEventListener("keydown",b,!0),()=>{y.removeEventListener("blur",S),y.removeEventListener("keydown",b,!0)}},[a.domReference,n,c]),X.useEffect(()=>{if(!c)return;function y(S){let{reason:b}=S;(b==="reference-press"||b==="escape-key")&&(d.current=!0)}return i.on("openchange",y),()=>{i.off("openchange",y)}},[i,c]),X.useEffect(()=>()=>{an(h)},[]);const p=X.useMemo(()=>({onPointerDown(y){q6(y.nativeEvent)||(m.current=!1)},onMouseLeave(){d.current=!1},onFocus(y){if(d.current)return;const S=fs(y.nativeEvent);if(u&&qe(S))try{if(K6()&&X6())throw Error();if(!S.matches(":focus-visible"))return}catch{if(!m.current&&!Ax(S))return}r(!0,y.nativeEvent,"focus")},onBlur(y){d.current=!1;const S=y.relatedTarget,b=y.nativeEvent,E=qe(S)&&S.hasAttribute(Yd("focus-guard"))&&S.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var w;const C=Tx(a.domReference?a.domReference.ownerDocument:document);!S&&C===a.domReference||$o((w=o.current.floatingContext)==null?void 0:w.refs.floating.current,C)||$o(a.domReference,C)||E||r(!1,b,"focus")})}}),[o,a.domReference,r,u]);return X.useMemo(()=>c?{reference:p}:{},[c,p])}const Xx="active",Zx="selected";function Kd(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[Xx]:a,[Zx]:c,...u}=e;o=u}return{...n==="floating"&&{tabIndex:-1,[GR]:""},...o,...t.map(a=>{const c=a?a[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((a,c)=>(c&&Object.entries(c).forEach(u=>{let[d,h]=u;if(!(i&&[Xx,Zx].includes(d)))if(d.indexOf("on")===0){if(r.has(d)||r.set(d,[]),typeof h=="function"){var m;(m=r.get(d))==null||m.push(h),a[d]=function(){for(var p,y=arguments.length,S=new Array(y),b=0;b<y;b++)S[b]=arguments[b];return(p=r.get(d))==null?void 0:p.map(E=>E(...S)).find(E=>E!==void 0)}}}else a[d]=h}),a),{})}}function yi(e){e===void 0&&(e=[]);const t=e.map(c=>c==null?void 0:c.reference),n=e.map(c=>c==null?void 0:c.floating),r=e.map(c=>c==null?void 0:c.item),i=X.useCallback(c=>Kd(c,e,"reference"),t),o=X.useCallback(c=>Kd(c,e,"floating"),n),a=X.useCallback(c=>Kd(c,e,"item"),r);return X.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const XR=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function ZR(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,c=(n=XR.get(a))!=null?n:a,u=Gx(),h=zd()!=null,m=X.useMemo(()=>c==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":c==="alertdialog"?"dialog":c,"aria-controls":r?i:void 0,...c==="listbox"&&{role:"combobox"},...c==="menu"&&{id:u},...c==="menu"&&h&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[c,i,h,r,u,a]),p=X.useMemo(()=>{const S={id:i,...c&&{role:c}};return c==="tooltip"||a==="label"?S:{...S,...c==="menu"&&{"aria-labelledby":u}}},[c,i,u,a]),y=X.useCallback(S=>{let{active:b,selected:E}=S;const w={role:"option",...b&&{id:i+"-option"}};switch(a){case"select":return{...w,"aria-selected":b&&E};case"combobox":return{...w,...b&&{"aria-selected":!0}}}return{}},[i,a]);return X.useMemo(()=>o?{reference:m,floating:p,item:y}:{},[o,m,p,y])}const Jx=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function ys(e,t){return typeof e=="function"?e(t):e}function JR(e,t){const[n,r]=X.useState(e);return e&&!n&&r(!0),X.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function QR(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,a=(typeof i=="number"?i:i.close)||0,[c,u]=X.useState("unmounted"),d=JR(n,a);return!d&&c==="close"&&u("unmounted"),Dr(()=>{if(r){if(n){u("initial");const h=requestAnimationFrame(()=>{u("open")});return()=>{cancelAnimationFrame(h)}}u("close")}},[n,r]),{isMounted:d,status:c}}function vs(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:o,duration:a=250}=t,c=e.placement,u=c.split("-")[0],d=X.useMemo(()=>({side:u,placement:c}),[u,c]),h=typeof a=="number",m=(h?a:a.open)||0,p=(h?a:a.close)||0,[y,S]=X.useState(()=>({...ys(o,d),...ys(n,d)})),{isMounted:b,status:E}=QR(e,{duration:a}),w=mi(n),C=mi(r),M=mi(i),$=mi(o);return Dr(()=>{const P=ys(w.current,d),R=ys(M.current,d),k=ys($.current,d),j=ys(C.current,d)||Object.keys(P).reduce((z,Z)=>(z[Z]="",z),{});if(E==="initial"&&S(z=>({transitionProperty:z.transitionProperty,...k,...P})),E==="open"&&S({transitionProperty:Object.keys(j).map(Jx).join(","),transitionDuration:m+"ms",...k,...j}),E==="close"){const z=R||P;S({transitionProperty:Object.keys(z).map(Jx).join(","),transitionDuration:p+"ms",...k,...z})}},[p,M,w,C,$,m,E,d]),{isMounted:b,styles:y}}const Lo=({open:e,onClose:t,component:n,children:r,placement:i="bottom",className:o="",strategy:a="absolute",offset:c=8,padding:u=8})=>{const[d,h]=I.useState(e);I.useEffect(()=>{h(e)},[e]);const m=()=>{h(!1),t==null||t()},{x:p,y,strategy:S,refs:b,context:E}=gi({strategy:a,open:d,onOpenChange:k=>{k||m()},middleware:[fi(c),hi(),di({padding:u})],whileElementsMounted:ui,placement:i}),w=gs(E),C=pi(E),{getReferenceProps:M,getFloatingProps:$}=yi([w,C]),{isMounted:P,styles:R}=vs(E,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px) scale(0.95)"}});return v.jsxs("div",{className:"relative",children:[v.jsx("div",{ref:b.setReference,...M(),className:"reference-element",children:r}),P&&v.jsx("div",{ref:b.setFloating,style:{position:S,top:y??0,left:p??0,...R,zIndex:9999},...$(),className:"floating-element",children:v.jsx(bs,{className:o,children:typeof n=="function"?I.createElement(n):n})})]})},Qx={initial:{backgroundColor:"#ffffff",color:"#57595f"},active:{backgroundColor:"#dee7fc",color:"#111827"},exit:{backgroundColor:"#ffffff",color:"#57595f"}},eN=({selectedPeriod:e,handlePeriodChange:t})=>v.jsxs("div",{className:"flex border border-blue-100 rounded-xl p-6 gap-2",children:[v.jsx(Ze.button,{variants:Qx,initial:"initial",animate:e==="AM"?"active":"initial",exit:"exit",transition:{duration:.2},onClick:()=>t("AM"),disabled:e==="AM",className:"flex items-center justify-center font-500 px-10 py-2 rounded-lg",children:"AM"}),v.jsx(Ze.button,{variants:Qx,initial:"initial",animate:e==="PM"?"active":"initial",exit:"exit",transition:{duration:.2},onClick:()=>t("PM"),disabled:e==="PM",className:"flex items-center justify-center font-500 px-10 py-2 rounded-lg",children:"PM"})]}),tN=({setHourMenuOpen:e,hourMenuOpen:t,selectedHour:n})=>v.jsx("button",{onClick:()=>e(!t),className:"flex justify-center items-center w-72 h-full border py-8 px-14 rounded-xl border-blue-100 text-gray-600 font-500",children:`${String(n).padStart(2,"0")}:00`});/*!
|
|
664
664
|
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
665
665
|
* License - https://fontawesome.com/license (Commercial License)
|
|
666
666
|
* Copyright 2024 Fonticons, Inc.
|
|
667
|
-
*/const nN={prefix:"far",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0 0-88c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 64-24 0zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},ew={prefix:"far",iconName:"chevron-down",icon:[512,512,[],"f078","M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"]},rN={prefix:"far",iconName:"check",icon:[448,512,[10003,10004],"f00c","M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"]},Xd=({date:e,onDateChange:t,showTimeSelector:n=!0,maxDate:r,futureDates:i=!1,pastDates:
|
|
667
|
+
*/const nN={prefix:"far",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0 0-88c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 64-24 0zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},ew={prefix:"far",iconName:"chevron-down",icon:[512,512,[],"f078","M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"]},rN={prefix:"far",iconName:"check",icon:[448,512,[10003,10004],"f00c","M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"]},Xd=({date:e,onDateChange:t,showTimeSelector:n=!0,maxDate:r,futureDates:i=!1,pastDates:o=!0})=>{const[a,c]=I.useState(e),[u,d]=I.useState(e),[h,m]=I.useState(e.getHours()%12||12),[p,y]=I.useState(e.getHours()>=12?"PM":"AM"),[S,b]=I.useState(0),{t:E}=ze(),[w,C]=I.useState(!1),[M,$]=I.useState(!1);I.useEffect(()=>{c(e),d(e),m(e.getHours()%12||12),y(e.getHours()>=12?"PM":"AM")},[e]);const P=()=>{b(-1),setTimeout(()=>{c($I(a))},10)},R=()=>{b(1),setTimeout(()=>{c(sv(a,1))},10)},k=ee=>{if(r&&ee>r)return;const ne=yv(vv(bv(ee,0),0),p==="AM"?h%12:h%12+12);d(ne),t(ne)},j=ee=>{m(ee);const ne=yv(vv(bv(u,0),0),p==="AM"?ee%12:ee%12+12);d(ne),t(ne),C(!1)},z=ee=>{y(ee)},Z=()=>{const ee=new Date,ne=20,N=5,[W,q]=I.useState(()=>Array.from({length:ne+1},(re,ae)=>{const G=new Date(ee.getFullYear(),ee.getMonth()-ae,1);return{name:$n(G,"MMMM",{locale:Ji}).replace(/^./,ie=>ie.toUpperCase()),index:G.getMonth(),year:G.getFullYear(),displayName:`${$n(G,"MMMM",{locale:Ji}).replace(/^./,ie=>ie.toUpperCase())} ${G.getFullYear()}`}})),O=I.useRef(null),V=I.useRef(null);I.useEffect(()=>{O.current&&O.current.disconnect(),O.current=new IntersectionObserver(re=>{re[0].isIntersecting&&q(ae=>{const G=ae[ae.length-1],ie=new Date(G.year,G.index-1,1),he=Array.from({length:N},(ue,ye)=>{const xe=new Date(ie.getFullYear(),ie.getMonth()-ye,1);return{name:$n(xe,"MMMM",{locale:Ji}).replace(/^./,Le=>Le.toUpperCase()),index:xe.getMonth(),year:xe.getFullYear(),displayName:`${$n(xe,"MMMM",{locale:Ji}).replace(/^./,Le=>Le.toUpperCase())} ${xe.getFullYear()}`}});return[...ae,...he]})}),V.current&&O.current.observe(V.current)},[W]);const J=(re,ae)=>{const G=new Date(a);G.setMonth(re),G.setFullYear(ae),c(G),$(!1)};return v.jsx("div",{className:"flex flex-col p-8 max-h-200 overflow-y-auto bg-light gap-4",children:W.map((re,ae)=>{const G=ae===W.length-1;return v.jsx("button",{ref:G?V:null,onClick:()=>J(re.index,re.year),className:`text-start p-6 font-600 transition-all duration-100 rounded-lg hover:bg-gray-100 ${a.getMonth()===re.index&&a.getFullYear()===re.year?"bg-blue-100":""}`,children:re.displayName},`${re.name}-${re.year}-${ae}`)})})},te=()=>v.jsxs("div",{className:"flex justify-between items-center mb-8",children:[v.jsx(Lo,{open:M,onClose:()=>$(!1),component:Z,placement:"bottom",className:"!p-0 overflow-hidden bg-light",strategy:"fixed",children:v.jsxs("button",{onClick:()=>$(!M),className:"hover:text-blue-500 transition-colors duration-150 flex gap-6 items-center",children:[v.jsx("h4",{className:"text-header-4",children:$n(a,"MMMM yyyy",{locale:Ji}).replace(/^./,ee=>ee.toUpperCase())}),v.jsx(De,{icon:ew,className:"w-12 h-12"})]})}),v.jsxs("div",{className:"flex items-center gap-8",children:[v.jsx(uh,{variant:"transparent",color:"gray",icon:z6,onClick:P}),v.jsx(uh,{variant:"transparent",color:"gray",icon:T_,onClick:R})]})]}),ce=()=>{const ee=Ki(R_(a)),ne=L_(I_(a)),N=$_({start:ee,end:ne}),W=new Date;return W.setHours(0,0,0,0),v.jsx("div",{className:"grid grid-cols-7 gap-2",children:N.map((q,O)=>{const V=lv(q,u),J=II(q,a),re=DI(q),ae=q<W,G=q>W,ie=!J||ae&&!o||G&&!i||r&&q>r;return v.jsx(Ze.div,{className:`
|
|
668
668
|
p-2 text-center w-[40px] h-[40px] rounded-full flex items-center justify-center font-600 select-none
|
|
669
|
-
${
|
|
670
|
-
${
|
|
671
|
-
`,onClick:()=>!
|
|
669
|
+
${ie?"text-gray-400 pointer-events-none":"cursor-pointer"}
|
|
670
|
+
${re&&!V?"text-blue-600":""}
|
|
671
|
+
`,onClick:()=>!ie&&k(q),initial:!1,animate:{backgroundColor:V?"#93C5FD":"transparent",color:V?"#FFFFFF":re?"#2563EB":ie?"#9CA3AF":"#000000"},transition:{duration:.2,ease:"easeInOut",backgroundColor:{duration:.2,ease:"easeOut"}},whileHover:!ie&&!V?{backgroundColor:"#E5E7EB"}:{},whileTap:ie?{}:{backgroundColor:V?"#7AA5E0":"#D1D5DB"},children:$n(q,"d")},O)})})},ve=()=>{const ee=Array.from({length:12},(N,W)=>W+1),ne=()=>v.jsx("div",{className:"bg-white rounded-lg shadow-lg w-80 max-h-[150px] overflow-y-auto p-4 flex flex-col gap-4",children:ee.map(N=>v.jsxs("button",{onClick:()=>j(N),className:`w-full text-center py-2 transition-all duration-100 rounded-lg hover:bg-gray-100 ${N===h?"text-blue-500 font-medium":""}`,children:[String(N).padStart(2,"0"),":00"]},N))});return v.jsxs("div",{className:"flex justify-between items-center mt-4 mb-4",children:[v.jsx("h4",{className:"text-body-m font-medium",children:E("time")}),v.jsxs("div",{className:"flex items-center gap-6",children:[v.jsx(Lo,{open:w,onClose:()=>C(!1),component:ne,placement:"bottom",className:"!p-0 overflow-hidden",strategy:"fixed",children:v.jsx(tN,{setHourMenuOpen:C,hourMenuOpen:w,selectedHour:h})}),v.jsx(eN,{selectedPeriod:p,handlePeriodChange:z})]})]})},fe={slideNextEnter:{x:300,opacity:0},slidePrevEnter:{x:-300,opacity:0},center:{x:0,opacity:1,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}},slideNextExit:{x:-300,opacity:0,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}},slidePrevExit:{x:300,opacity:0,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}}};return v.jsxs("div",{className:"rounded-3xl max-w-[300px] mx-auto bg-white p-24 relative overflow-hidden",children:[te(),v.jsx(Kn,{initial:!1,mode:"popLayout",children:v.jsx(Ze.div,{variants:fe,initial:S===1?"slideNextEnter":S===-1?"slidePrevEnter":!1,animate:"center",exit:S===1?"slideNextExit":"slidePrevExit",className:"w-full",children:ce()},$n(a,"yyyy-MM"))}),n&&ve()]})},Zd=({label:e,onChange:t,value:n,name:r,error:i,placeholder:o,className:a="",disabled:c=!1,disabledInput:u=!1,leftSide:d,rightSide:h,...m})=>{const{t:p}=ze();return v.jsxs("label",{className:`flex flex-col group gap-8 select-none ${c&&"cursor-not-allowed"} ${a}`,htmlFor:r,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${i&&"!text-red-500"} text-label ${c&&"text-gray-300"}`,children:e}),v.jsxs("label",{htmlFor:r,className:`
|
|
672
672
|
flex items-center justify-between gap-8 p-16
|
|
673
673
|
|
|
674
674
|
${i&&"!border-red-500"}
|
|
@@ -684,10 +684,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
684
684
|
group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
|
|
685
685
|
${u&&"hover:!cursor-pointer"}
|
|
686
686
|
group-disabled:bg-gray-500
|
|
687
|
-
`,children:[d&&d,v.jsx("input",{...m,id:r,name:r,disabled:c,placeholder:
|
|
687
|
+
`,children:[d&&d,v.jsx("input",{...m,id:r,name:r,disabled:c,placeholder:o,value:n,onChange:y=>{t(y.target.value)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${u&&"pointer-events-none !select-none !caret-transparent"}`}),h&&h]}),v.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:i&&p(i||"",{x:p(r)})})]})},tw=e=>$n(e,"dd/MM/yyyy"),nw=e=>{const[t,n,r]=e.split("/");if((t==null?void 0:t.length)===2&&(n==null?void 0:n.length)===2&&(r==null?void 0:r.length)===4){const i=new Date(Number(r),Number(n)-1,Number(t));return isNaN(i.getTime())?null:i}return null},iN=({control:e,name:t,showTimeSelector:n=!1,label:r,translateKey:i="",placeholder:o,futureDates:a=!1,pastDates:c=!0})=>{const{field:{value:u,onChange:d,onBlur:h},fieldState:{error:m}}=hr.useController({name:t,control:e}),{t:p}=ze(),y=p(t),S=p(i),[b,E]=I.useState(!1),[w,C]=I.useState("");I.useEffect(()=>{u instanceof Date&&!isNaN(u.getTime())?C(tw(u)):C("")},[u]);const M=nw(w),$=R=>{const k=R.replace(/\D/g,"").slice(0,8),j=[];k.length>0&&j.push(k.slice(0,2)),k.length>2&&j.push(k.slice(2,4)),k.length>4&&j.push(k.slice(4,8));const z=j.join("/");if(C(z),E(!1),z.length===10){const Z=nw(z);d(Z)}},P=()=>{d(null),C("")};return v.jsx(Lo,{open:b,strategy:"fixed",padding:0,offset:0,onClose:()=>E(!1),className:"p-0!",component:v.jsx(Xd,{date:M||new Date,onDateChange:R=>{C(tw(R)),d(R),E(!1)},showTimeSelector:n,futureDates:a,pastDates:c}),children:v.jsx(Zd,{onBlur:h,name:S||y,label:r,value:w,onFocus:R=>{R.preventDefault(),E(!0)},disabledInput:!0,onChange:R=>$(R),placeholder:o,error:m==null?void 0:m.message,rightSide:!!M&&v.jsx(De,{icon:nv,className:"text-gray-500 cursor-pointer",onClick:P})})})},rw=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o,icon:a=G6,showCloseButton:c=!0})=>{const u={hidden:{opacity:0},visible:{opacity:1}},d={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},h=()=>{i==null||i(),r()},m=()=>{o==null||o(),r()},{t:p}=ze();return v.jsx(Kn,{children:n&&v.jsx(v.Fragment,{children:v.jsx(Ze.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:u,onClick:r,children:v.jsx(Ze.div,{className:"w-full max-w-sm mx-16 z-50",variants:d,initial:"hidden",animate:"visible",exit:"exit",onClick:y=>y.stopPropagation(),children:v.jsxs(bs,{className:"flex flex-col gap-20 p-32",children:[v.jsxs("div",{className:"flex flex-col",children:[v.jsx("div",{className:"flex justify-end",children:c&&v.jsx(De,{icon:tu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})}),v.jsx("div",{className:"flex justify-center",children:v.jsx("div",{className:"bg-blue-100 rounded-full w-76 h-76 flex justify-center items-center",children:v.jsx(De,{icon:a,className:"w-32 h-36 min-h-36 min-w-36 text-blue-500",onClick:r})})})]}),v.jsxs("div",{className:"flex flex-col gap-20 items-center justify-center",children:[v.jsxs("div",{className:"text-center w-full",children:[v.jsx("h3",{className:"text-black font-700 text-3xl w-full",children:e}),v.jsx("p",{className:"text-gray-500 text-xl font-600 w-full",children:t})]}),v.jsxs("div",{className:"flex justify-center w-full gap-16",children:[!!o&&v.jsx(jo,{size:"lg",onClick:m,variant:"transparent",children:p("cancel")}),!!i&&v.jsx(jo,{size:"lg",onClick:h,children:p("confirm")})]})]})]})})})})})},iw={duration:.3,ease:[.32,.72,0,1]},sN={initial:{opacity:0,height:0,y:-8},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-8}},oN=({isOpen:e})=>v.jsx(Ze.div,{animate:{rotate:e?180:0},transition:{duration:.5,ease:[.16,1,.3,1]},children:v.jsx(De,{icon:W6,className:"text-gray-500 w-12 h-12 max-w-12 max-h-12"})}),aN=({label:e,children:t,subtitle:n,open:r,onClick:i,className:o="",labelClassName:a=""})=>{const{t:c}=ze(),[u,d]=I.useState(!1),h=r!==void 0?r:u,m=i||(()=>d(!u));return v.jsxs(Ze.div,{className:"relative w-full bg-white border border-blue-100 rounded-2xl overflow-hidden",children:[v.jsxs("button",{onClick:m,className:`py-24 px-32 text-black font-semibold border-b
|
|
688
688
|
${h?"border-blue-100 bg-gray-50/50":"border-transparent"}
|
|
689
|
-
transition-all duration-200 ease-in-out ${
|
|
690
|
-
flex items-center gap-2 group w-full justify-between`,children:[v.jsx("span",{className:"truncate text-nowrap text-lg md:text-xl font-700",children:c(e)}),v.jsxs("div",{className:"flex gap-10 items-center",children:[v.jsx("span",{className:"text-gray-500 font-normal text-base md:text-lg",children:n}),v.jsx(oN,{isOpen:h})]})]}),v.jsx(Kn,{mode:"wait",children:h&&v.jsx(Ze.div,{...sN,transition:{height:{duration:iw.duration,ease:iw.ease},opacity:{duration:.15,ease:"easeOut"}},className:`w-full bg-white overflow-hidden ${
|
|
689
|
+
transition-all duration-200 ease-in-out ${a} focus:outline-none hover:bg-gray-50/50
|
|
690
|
+
flex items-center gap-2 group w-full justify-between`,children:[v.jsx("span",{className:"truncate text-nowrap text-lg md:text-xl font-700",children:c(e)}),v.jsxs("div",{className:"flex gap-10 items-center",children:[v.jsx("span",{className:"text-gray-500 font-normal text-base md:text-lg",children:n}),v.jsx(oN,{isOpen:h})]})]}),v.jsx(Kn,{mode:"wait",children:h&&v.jsx(Ze.div,{...sN,transition:{height:{duration:iw.duration,ease:iw.ease},opacity:{duration:.15,ease:"easeOut"}},className:`w-full bg-white overflow-hidden ${o}`,children:t})})]})},Ht={LOADING:"loading",COMPLETE:"complete",ERROR:"error"},lN=({file:e,onDelete:t,onRetry:n,uploadDuration:r=4e3})=>{const{t:i}=ze(),o=()=>e.error?Ht.ERROR:e.loading?Ht.LOADING:Ht.COMPLETE,[a,c]=I.useState(o()),[u,d]=I.useState(0),[h,m]=I.useState(10);I.useEffect(()=>{const b=o();c(b);let E;if(b===Ht.LOADING&&u<100){const M=100/(r/100);E=setInterval(()=>{d($=>{const P=Math.min($+M,99),R=Math.max(0,Math.round((100-P)/10));return m(R),P})},100)}else b===Ht.COMPLETE&&u<100&&d(100);return()=>{E&&clearInterval(E)}},[e.loading,e.error,r,o,u]);const p=()=>{switch(a){case Ht.LOADING:return`${Math.round(u)}% (${h} ${i("seconds_left")})`;case Ht.COMPLETE:return i("file_uploaded");case Ht.ERROR:return i("upload_error");default:return""}},y=()=>{switch(a){case Ht.COMPLETE:return"text-green-500 font-600";case Ht.ERROR:return"text-red-500 font-600";default:return"text-gray-300 font-400"}},S=()=>{if(!(e!=null&&e.file_size))return i("unknown");const b=e.file_size/1024;return b<1024?`${b.toFixed(1)} KB`:`${(b/1024).toFixed(1)} MB`};return v.jsxs("div",{className:"border border-gray-100 bg-white rounded-lg p-16 shadow-sm w-full",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx(De,{icon:zC,className:"w-12 h-12 min-w-12 min-h-12 text-gray-400"}),v.jsx("span",{className:"text-gray-500 text-sm",children:e.user_file_name})]}),a===Ht.COMPLETE&&v.jsx("button",{onClick:t,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:v.jsx(De,{icon:UC})}),a===Ht.ERROR&&v.jsx("button",{onClick:n,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:v.jsx(De,{icon:BC})})]}),v.jsx("div",{className:"flex items-center mt-2",children:e!=null&&e.analyzing?v.jsxs("div",{className:"flex items-center gap-6",children:[v.jsx(Ze.div,{className:"h-14 w-14 rounded-full border-2 border-t-blue-500 border-r-blue-300 border-b-blue-200 border-l-blue-400",animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}}),v.jsxs("span",{className:"text-sm text-gray-500",children:[i("analyzing_file_with_ai"),"..."]})]}):v.jsxs("div",{className:"text-sm",children:[v.jsxs("span",{className:"text-gray-500",children:[S()," |"]})," ",v.jsx("span",{className:y(),children:p()})]})}),a===Ht.LOADING&&v.jsx("div",{className:"mt-2 bg-gray-200 rounded-full h-2",children:v.jsx("div",{className:"h-2 rounded-full transition-all duration-100 ease-linear bg-blue-500",style:{width:`${u}%`}})})]})},sw=({index:e,label:t,active:n,completed:r})=>v.jsxs("div",{className:"flex items-center gap-8",children:[v.jsx("div",{className:`
|
|
691
691
|
size-24 rounded-full border-[1px] flex items-center justify-center text-center font-600 text-label transition-colors ease-in-out duration-200
|
|
692
692
|
${n&&"border-blue-500! text-blue-500!"}
|
|
693
693
|
${r?"text-blue-500 bg-blue-50 border-none!":"border-gray-300 text-gray-300"}
|
|
@@ -699,18 +699,18 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
699
699
|
${n||r?"text-blue-500":"text-gray-300"}
|
|
700
700
|
${n&&"font-600"}
|
|
701
701
|
${r&&"font-500"}
|
|
702
|
-
`,children:t})]}),cN=({currentStep:e,steps:t})=>v.jsx("div",{className:"flex flex-col gap-16",children:t.map((n,r)=>v.jsx(sw,{label:n,index:r+1,active:r+1===e,completed:r+1<e},r))}),uN=({label:e,value:t})=>v.jsxs("div",{className:"col-span-2 flex flex-col gap-6",children:[v.jsx("h4",{className:"text-body-m font-600",children:e}),v.jsx("div",{className:"text-body-s text-gray-600",children:typeof t=="string"||I.isValidElement(t)?t:null})]}),ow=({title:e,children:t,className:n=""})=>v.jsxs("div",{className:`w-full flex flex-col gap-16 ${n}`,children:[v.jsx("h4",{className:"text-body-m font-600",children:e}),v.jsx("div",{className:"w-full grid grid-cols-4 gap-8 bg-white p-16 rounded-2xl border-1 border-blue-100",children:t})]});ow.Entry=uN;const bs=({children:e,className:t,element:n="div"})=>{const r=n;return v.jsx(r,{className:`bg-white p-24 border border-blue-100 rounded-2xl ${t||""}`,children:e})},fN=({isOpen:e,onClose:t})=>{const n={hidden:{opacity:0},visible:{opacity:1}},r={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}};return v.jsx(Kn,{children:e&&v.jsx(v.Fragment,{children:v.jsx(Ze.div,{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:n,onClick:t,children:v.jsx(Ze.div,{className:"w-full max-w-4xl mx-16 z-50",variants:r,initial:"hidden",animate:"visible",exit:"exit",onClick:i=>i.stopPropagation(),children:v.jsx(bs,{className:"flex flex-col gap-16 md:gap-24 !p-0",children:v.jsx(v.Fragment,{})})})})})})},dN={completedBgColor:"#dae2fb",focusBorderColor:"#4570EB",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-blue-500",lineActiveColor:"bg-blue-500",lineGradientFrom:"from-blue-500"},hN={completedBgColor:"#C7F9F5",focusBorderColor:"#1DA696",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-aqua-500",lineActiveColor:"bg-aqua-500",lineGradientFrom:"from-aqua-500"},Jd=e=>{switch(e){case"aqua":return hN;case"blue":default:return dN}},mN=({status:e,label:t,shouldAnimate:n,color:r,index:i})=>{const{t:
|
|
702
|
+
`,children:t})]}),cN=({currentStep:e,steps:t})=>v.jsx("div",{className:"flex flex-col gap-16",children:t.map((n,r)=>v.jsx(sw,{label:n,index:r+1,active:r+1===e,completed:r+1<e},r))}),uN=({label:e,value:t})=>v.jsxs("div",{className:"col-span-2 flex flex-col gap-6",children:[v.jsx("h4",{className:"text-body-m font-600",children:e}),v.jsx("div",{className:"text-body-s text-gray-600",children:typeof t=="string"||I.isValidElement(t)?t:null})]}),ow=({title:e,children:t,className:n=""})=>v.jsxs("div",{className:`w-full flex flex-col gap-16 ${n}`,children:[v.jsx("h4",{className:"text-body-m font-600",children:e}),v.jsx("div",{className:"w-full grid grid-cols-4 gap-8 bg-white p-16 rounded-2xl border-1 border-blue-100",children:t})]});ow.Entry=uN;const bs=({children:e,className:t,element:n="div"})=>{const r=n;return v.jsx(r,{className:`bg-white p-24 border border-blue-100 rounded-2xl ${t||""}`,children:e})},fN=({isOpen:e,onClose:t})=>{const n={hidden:{opacity:0},visible:{opacity:1}},r={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}};return v.jsx(Kn,{children:e&&v.jsx(v.Fragment,{children:v.jsx(Ze.div,{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:n,onClick:t,children:v.jsx(Ze.div,{className:"w-full max-w-4xl mx-16 z-50",variants:r,initial:"hidden",animate:"visible",exit:"exit",onClick:i=>i.stopPropagation(),children:v.jsx(bs,{className:"flex flex-col gap-16 md:gap-24 !p-0",children:v.jsx(v.Fragment,{})})})})})})},dN={completedBgColor:"#dae2fb",focusBorderColor:"#4570EB",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-blue-500",lineActiveColor:"bg-blue-500",lineGradientFrom:"from-blue-500"},hN={completedBgColor:"#C7F9F5",focusBorderColor:"#1DA696",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-aqua-500",lineActiveColor:"bg-aqua-500",lineGradientFrom:"from-aqua-500"},Jd=e=>{switch(e){case"aqua":return hN;case"blue":default:return dN}},mN=({status:e,label:t,shouldAnimate:n,color:r,index:i})=>{const{t:o}=ze(),a=e==="done",c=e==="focus",{focusBorderColor:u,pendingBorderColor:d,iconActiveColor:h}=Jd(r);return v.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[v.jsx(Ze.div,{initial:n?!1:{backgroundColor:a?"#E0F1ED":c?u:"white",borderWidth:c?"1px":"0px",borderColor:c?u:d},animate:{backgroundColor:a?"#E0F1ED":c?u:"white",borderWidth:c||!a?"1px":"0px",borderColor:c?u:d},transition:{duration:n?.3:0,ease:"easeOut"},className:"min-w-28 min-h-28 rounded-full flex items-center justify-center text-xl font-bold border-[1px]",children:v.jsx(Ze.div,{initial:n?!1:{color:a?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:a||c?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:n?.2:0},className:"flex items-center justify-center",children:v.jsx(Kn,{mode:"wait",children:a||c?v.jsx(Ze.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:a?v.jsx(De,{icon:sg,className:`w-14 h-14 min-w-14 min-h-14 ${h}`}):v.jsx("div",{className:"text-white leading-none font-500 text-body-s flex items-center justify-center mb-1",children:i+1})},"check"):v.jsx(Ze.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:v.jsx(De,{icon:ig,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),v.jsx("span",{className:`text-body-s transition-all duration-300 text-center w-full font-500
|
|
703
703
|
|
|
704
|
-
`,style:{color:c?u:
|
|
704
|
+
`,style:{color:c?u:a?"#000":"#8F9095"},children:o(t)})]})},pN=({status:e,label:t,shouldAnimate:n,color:r})=>{const{t:i}=ze(),o=e==="done",a=e==="focus",{completedBgColor:c,focusBorderColor:u,pendingBorderColor:d,iconActiveColor:h}=Jd(r);return v.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[v.jsx(Ze.div,{initial:n?!1:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:d},animate:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:d},transition:{duration:n?.3:0,ease:"easeOut"},className:"min-w-24 min-h-24 rounded-full flex items-center justify-center text-xs font-bold z-10",children:v.jsx(Ze.div,{initial:n?!1:{color:a||o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:a||o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:n?.2:0},className:"flex items-center justify-center",children:v.jsx(Kn,{mode:"wait",children:o||a?v.jsx(Ze.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:v.jsx(De,{icon:sg,className:`w-14 h-14 min-w-14 min-h-14 ${h}`})},"check"):v.jsx(Ze.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:v.jsx(De,{icon:ig,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),v.jsx("span",{className:`text-body-s font-medium transition-all duration-300 text-center w-full ${o||a?"text-black":"text-gray-400"}`,children:i(t)})]})},gN=({steps:e,direction:t="horizontal",color:n})=>{const{defaultColorScheme:r}=ze(),i=n||r,{lineActiveColor:o,lineGradientFrom:a}=Jd(i),[c,u]=I.useState([]),[d,h]=I.useState(null),[m,p]=I.useState(!1),y=e.findIndex(w=>!w.completed),S=w=>y===w;I.useEffect(()=>{const w=e.map((C,M)=>S(M)?"focus":C.completed?"done":"pending");if(!m)u(w),p(!0),h(null);else{const C=w.findIndex((M,$)=>M!==c[$]);h(C!==-1?C:null),u(w)}},[e,y]);const b=()=>v.jsx("div",{className:"flex flex-col gap-16 relative",children:e.map((w,C)=>{var R;const M=S(C-1)?"focus":(R=e[C-1])!=null&&R.completed?"done":"pending",$=S(C)?"focus":w.completed?"done":"pending",P=m&&d===C;return v.jsxs("div",{className:"flex items-center gap-10 relative",children:[C!==0&&v.jsx("div",{className:`absolute left-[13px] bottom-[28px] w-[1.5px] h-16 ${$==="done"||$==="focus"?o:M==="done"||M==="focus"?`bg-gradient-to-b ${a} to-[rgb(243,244,246)]`:"bg-[rgb(243,244,246)]"}`}),v.jsx(mN,{index:C,status:$,shouldAnimate:P,label:w.label,color:i})]},C)})}),E=()=>v.jsx("div",{className:"w-full flex items-center gap-12",children:e.map((w,C)=>{const M=S(C)?"focus":w.completed?"done":"pending",$=m&&d===C;return v.jsx("div",{className:"flex flex-col items-center justify-evenly w-full gap-2 relative col-span-1",children:v.jsx(pN,{index:C,status:M,shouldAnimate:$,label:w.label,color:i})},C)})});return t==="horizontal"?v.jsx(E,{}):v.jsx(b,{})},yN=({variant:e="underline",color:t="blue",tabs:n,activeTab:r,onTabChange:i,className:o="",direction:a="row",showLabel:c=!0})=>{const u=I.useRef([]),[d,h]=I.useState({left:0,width:0}),m=I.useRef(null),{defaultColorScheme:p}=ze(),y=t||p,S=()=>{const b=n.findIndex(E=>E.id===r);if(b>=0&&u.current[b]){const E=u.current[b];if(E&&m.current){const w=m.current.getBoundingClientRect(),C=E.getBoundingClientRect();h({left:C.left-w.left,width:C.width})}}};return I.useEffect(()=>{S()},[r,n]),I.useEffect(()=>{const b=()=>{S()};return window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}},[r,n]),v.jsxs("div",{ref:m,className:`flex items-center relative ${o}`,children:[n.map((b,E)=>v.jsx(mf.div,{ref:w=>{u.current[E]=w},className:"w-full",children:v.jsx(Rw,{href:b.href,label:c?b.label:"",icon:b.icon,direction:a,isSelected:r===b.id,onClick:()=>i(b.id),variant:e})},b.id)),v.jsx(mf.div,{className:`absolute bottom-0 h-2 bg-${y}-500`,initial:!1,animate:{left:d.left,width:d.width},transition:{type:"spring",stiffness:300,damping:30}})]})},Qd=e=>$n(e,"dd/MM/yyyy"),vN=e=>{const[t,n,r]=e.split("/");if((t==null?void 0:t.length)===2&&(n==null?void 0:n.length)===2&&(r==null?void 0:r.length)===4){const i=new Date(Number(r),Number(n)-1,Number(t));return isNaN(i.getTime())?null:i}return null};function bN({currentDate:e,onDateChange:t,label:n,placeholder:r="dd/mm/yyyy",error:i,translatedKey:o,showTimeSelector:a=!1,futureDates:c=!1,pastDates:u=!0}){const[d,h]=I.useState(!1),[m,p]=I.useState(e?Qd(e):"");I.useEffect(()=>{p(e?Qd(e):"")},[e]);const y=b=>{const E=b.replace(/\D/g,"").slice(0,8),w=[];E.length>0&&w.push(E.slice(0,2)),E.length>2&&w.push(E.slice(2,4)),E.length>4&&w.push(E.slice(4,8));const C=w.join("/");if(p(C),h(!1),C.length===10){const M=vN(C);M&&t(M)}},S=()=>{t(null),p("")};return v.jsx(Lo,{open:d,strategy:"fixed",padding:0,offset:0,onClose:()=>h(!1),className:"p-0!",component:v.jsx(Xd,{date:e||new Date,onDateChange:b=>{t(b),p(Qd(b)),h(!1)},showTimeSelector:a,futureDates:c,pastDates:u}),children:v.jsx(Zd,{name:o,label:n,value:m,onClick:b=>{b.preventDefault(),h(!0)},onChange:b=>y(b),placeholder:r,error:i,rightSide:e&&v.jsx(De,{icon:nv,className:"text-gray-500 cursor-pointer",onClick:S})})})}const xN=()=>{const[e,t]=I.useState([]),n=I.useRef([]),r=I.useCallback(a=>{const c={...a,id:(a==null?void 0:a.id)||yf.uniqueId(),open:!0,type:(a==null?void 0:a.type)||"center",props:{...a.props,open:!0,onClose:()=>o(a.id||yf.uniqueId())}};n.current=[...n.current,c],t(n.current)},[]),i=I.useCallback(a=>{const c=yf.uniqueId(),u={id:c,open:!0,onClose:()=>{o(c)},type:"custom",component:a};n.current=[...n.current,u],t(n.current)},[]),o=I.useCallback(a=>{n.current=n.current.map(c=>c.id===a?{...c,open:!1}:c),t(n.current),setTimeout(()=>{n.current=n.current.filter(c=>c.id!==a),t(n.current)},150)},[]);return I.useEffect(()=>{window.openModal=r,window.closeModal=o,window.openCustomModal=i},[r,o,i]),v.jsx(v.Fragment,{children:e.map(a=>{if(a.type==="custom"&&(a!=null&&a.component)){const{open:u,onClose:d,component:h}=a;return h(u,d)}if(a.type==="dialog"){const{props:u}=a;return v.jsx(rw,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}if(a.type==="alert"){const{props:u}=a;return v.jsx(xx,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}const{props:c}=a;return v.jsx(gw,{...c,open:a.open,onClose:()=>o(a.id),children:typeof c.children=="function"?c.children(()=>o(a.id)):c.children},a.id)})})};function wN(e){var t;(t=window==null?void 0:window.openModal)==null||t.call(window,e)}function SN(e){var t;(t=window==null?void 0:window.openCustomModal)==null||t.call(window,e)}function TN(e){var t;(t=window==null?void 0:window.closeModal)==null||t.call(window,e)}function EN(e,t,n){const r=t[e];if(I.isValidElement(r)&&typeof r.type!="string")return I.cloneElement(r,n);if(typeof r=="function"){const i=r;return v.jsx(i,{...n})}return r??v.jsx("div",{children:"no content"})}const eh=[];function aw(e="bottom-center"){var t;if(!eh.find(n=>n.id===e)){const n=document.createElement("div");switch(n.classList.add("fixed","z-50","flex","flex-col","items-center","w-fit","min-w-[18rem]"),e){case"top-left":n.classList.add("top-8","left-8");break;case"top-right":n.classList.add("top-8","right-8");break;case"bottom-left":n.classList.add("bottom-8","left-8");break;case"bottom-right":n.classList.add("bottom-8","right-8");break;case"top-center":n.classList.add("top-8","left-1/2","-translate-x-1/2");break;case"bottom-center":default:n.classList.add("bottom-8","left-1/2","-translate-x-1/2")}eh.push({id:e,element:n}),document.body.appendChild(n)}return(t=eh.find(n=>n.id===e))==null?void 0:t.element}function fl(e,t="success",{position:n="top-right",duration:r=3e3}={}){import("react-dom/client").then(({createRoot:i})=>{const o=aw(n);if(!o)return;const a=document.createElement("div"),c=i(a),u=()=>{c.unmount(),o.removeChild(a)};c.render(v.jsx(pf,{content:e,type:t,duration:r,onClose:u})),o.prepend(a),setTimeout(()=>{a.classList.add("mt-[0.5rem]")},10)})}const th=(e,t,n={})=>{import("react-dom/client").then(({createRoot:r})=>{const i=aw(n.position);if(!i)return;const o=document.createElement("div"),a=r(o),c=()=>{a.unmount(),i.removeChild(o)};a.render(v.jsx(tv,{promise:e,messages:t,options:n,onClose:c})),i.prepend(o),setTimeout(()=>{o.classList.add("mt-[0.5rem]")},10)})},lw=(e,t={})=>{let n=()=>{},r=()=>{};const i=new Promise((o,a)=>{n=o,r=a});return th(i,e,t),{resolve:n,reject:r}},CN={success:(e,t={})=>fl(e,"success",t),error:(e,t={})=>fl(e,"error",t),warning:(e,t={})=>fl(e,"warning",t),info:(e,t={})=>fl(e,"info",t),async:(e,t,n={})=>th(e,t,n),loading:(e,t={})=>lw(e,t)},cw=({containerProps:e={},imageProps:t={},src:n="",alt:r="",size:i=30,user:o=null})=>{const{className:a=" ",...c}=e,{className:u=" ",...d}=t,h=i+"px",m=i*.5+"px",p=i*.4+"px",[y,S]=I.useState(!1),b=()=>r?gf(r):o?gf(o!=null&&o.first_name||o!=null&&o.last_name?((o==null?void 0:o.first_name)||"")+" "+((o==null?void 0:o.last_name)||""):o==null?void 0:o.email):"#9CA1B6",E=P=>{try{return P?(new URL(P),!0):!1}catch(R){return console.log(R),!1}},w=()=>E(n)?n:o!=null&&o.image&&E(o.image)?o.image:o!=null&&o.image?Sv(o.image):"",C=()=>r?v.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:p},children:r}):o?v.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:p},children:o!=null&&o.first_name||o!=null&&o.last_name?((o==null?void 0:o.first_name)||" ")[0]+((o==null?void 0:o.last_name)||" ")[0]:((o==null?void 0:o.email)||" ")[0]}):v.jsx(De,{style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},icon:S_,className:"w-full text-white"}),M=()=>{S(!0)},$=w();return v.jsxs("div",{className:"flex items-center justify-center rounded-full overflow-hidden h-full relative "+a,style:{maxWidth:h,maxHeight:h,minWidth:h,minHeight:h,backgroundColor:b()},...c,children:[$&&!y&&v.jsx("img",{src:$,alt:r,className:`
|
|
705
705
|
object-cover w-full h-full text-center indent-[10000px] absolute
|
|
706
706
|
z-10
|
|
707
707
|
${u}
|
|
708
|
-
`,onError:
|
|
708
|
+
`,onError:M,...d}),v.jsx("div",{className:`
|
|
709
709
|
flex items-center justify-center leading-none text-center absolute
|
|
710
|
-
`,style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},children:C()})]})};function uw(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=uw(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=uw(e))&&(r&&(r+=" "),r+=t);return r}const fw={filled:"bg-blue-500 text-white hover:bg-blue-600 hover:text-white active:bg-blue-700 active:text-white",transparent:"bg-blue-100 text-blue-500 hover:bg-blue-200 hover:text-blue-600 active:bg-blue-300/80 active:text-blue-700",outline:"bg-transparent border-1 border-blue-500 text-blue-500 hover:text-blue-600 hover:border-blue-600 active:text-blue-700 active:border-blue-700",invisible:"text-blue-500 hover:text-blue-600 active:text-blue-700"},dw={filled:"bg-aqua-500 text-white hover:bg-aqua-600 hover:text-white active:bg-aqua-700 active:text-white",transparent:"bg-aqua-100 text-aqua-500 hover:bg-aqua-200/50 hover:text-aqua-600 active:bg-aqua-200/70 active:text-aqua-700",outline:"bg-transparent border-1 border-aqua-500 text-aqua-500 hover:text-aqua-600 hover:border-aqua-600 active:text-aqua-700 active:border-aqua-700",invisible:"text-aqua-500 hover:text-aqua-600 active:text-aqua-700"},hw={filled:"bg-red-500 text-white hover:bg-red-600 hover:text-white active:bg-red-700 active:text-white",transparent:"bg-red-500/20 text-error hover:bg-red-500/30 hover:text-red-600 active:text-red-700 active:bg-red-700/40",outline:"bg-transparent border-1 border-red-500 text-error hover:text-red-600 hover:border-red-600 active:text-red-700 active:border-red-700",invisible:"text-red-500 hover:text-red-600 active:text-red-700"},mw={filled:"bg-gray-500 text-white hover:bg-gray-600 hover:text-white active:bg-gray-700 active:text-white",transparent:"bg-gray-100 text-gray-500 hover:bg-gray-200 hover:text-gray-600 active:text-gray-700 active:bg-gray-300",outline:"bg-transparent border-1 border-gray-500 text-gray-500 hover:text-gray-600 hover:border-gray-600 active:text-gray-700 active:border-gray-700",invisible:"text-gray-500 hover:text-gray-600 active:text-gray-700"},PN="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 text-body-s disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",AN={lg:"gap-12 px-24 py-8 text-lg",base:"gap-8 px-20 py-7",md:"gap-8 px-16 py-6",sm:"gap-4 px-12 py-5",xs:"gap-4 px-6 py-3"},ON=(e="filled",t="blue",n="base")=>{const r=tr(PN,AN[n]),i={blue:fw[e],aqua:dw[e],red:hw[e],gray:mw[e]}[t];return tr(r,i)},MN="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 leading-normal disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",_N={lg:"min-h-[46px] max-h-[46px] min-w-[46px] max-w-[46px]",base:"min-h-[40px] max-h-[40px] min-w-[40px] max-w-[40px]",md:"min-h-[28px] max-h-[28px] min-w-[28px] max-w-[28px]",sm:"min-h-[20px] max-h-[20px] min-w-[16px] max-w-[16px]",xs:"min-h-[12px] max-h-[12px] min-w-[12px] max-w-[12px]"},IN={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},DN=(e="filled",t="blue",n="base",r="none")=>{const i=tr(MN,_N[n],IN[r]),a={blue:fw[e],aqua:dw[e],red:hw[e],gray:mw[e]}[t];return tr(i,a)},$N={lg:"min-h-[20px] max-h-[20px]",base:"min-h-[15px] max-h-[15px]",md:"min-h-[15px] max-h-[15px]",sm:"min-h-[15px] max-h-[15px]",xs:"min-h-[15px] max-h-[15px]"},ko=(e="base")=>$N[e],jo=({icon:e,rightIcon:t,color:n,variant:r="filled",size:i="base",children:a,className:o,...c})=>{const{defaultColorScheme:u}=ze(),d=n||u;return v.jsxs("button",{type:"button",className:ON(r,d,i)+" "+o,...c,children:[e&&v.jsx(De,{icon:e,className:ko(i)}),a,t&&v.jsx(De,{icon:t,className:ko(i)})]})},pw=({className:e="",direction:t="horizontal"})=>t==="horizontal"?v.jsx("hr",{className:`w-full min-h-1 max-h-1 bg-blue-100 border-blue-100 ${e}`}):v.jsx("hr",{className:`h-full min-w-1 max-w-1 bg-blue-100 border-blue-100 ${e}`}),gw=({open:e,onClose:t,title:n,children:r,className:i=""})=>{const a={hidden:{opacity:0},visible:{opacity:1}},o={hidden:{opacity:0,scale:.9},visible:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.9,transition:{duration:.15}}};return v.jsx(Kn,{children:e&&v.jsx(v.Fragment,{children:v.jsx(Ze.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:a,onClick:t,children:v.jsx(Ze.div,{className:`w-full max-w-lg mx-16 z-50 ${i}`,variants:o,initial:"hidden",animate:"visible",exit:"exit",onClick:c=>c.stopPropagation(),children:v.jsxs(bs,{className:`flex flex-col ${n&&"gap-16 md:gap-24"} p-0!`,children:[v.jsxs("div",{className:"flex flex-col gap-16 md:gap-24 md:p-32 pb-0!",children:[v.jsxs("div",{className:"flex justify-between items-center px-16 pt-16 md:px-0 md:pt-0",children:[n&&v.jsx("h2",{className:"text-black font-700 text-2xl",children:n}),v.jsx(De,{icon:tu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700 ml-auto",onClick:t})]}),n&&v.jsx(pw,{className:"bg-gray-100!"})]}),v.jsx("div",{className:"flex flex-col gap-16 md:gap-24 p-16 pt-0 md:p-32 md:pt-4",children:typeof r=="function"?r(t):r})]})})})})})},RN=({active:e,color:t="blue",variant:n="rounded",className:r,size:i=16,...a})=>{const o={blue:"border-blue-500 bg-blue-500",aqua:"border-aqua-500 bg-aqua-500",red:"border-red-500 bg-red-500",gray:"border-gray-500 bg-gray-500"}[t],c={rounded:"rounded-full",square:"rounded-md"}[n],u=d=>({width:`${d}px`,height:`${d}px`,minWidth:`${d}px`,minHeight:`${d}px`});return v.jsx("div",{className:`relative transition-colors ease-in-out duration-150 flex items-center justify-center ${c} border-[1.5px] bg-white ${e?o:"border-gray-400"} ${r}`,style:u(i),...a,children:v.jsx("div",{className:`absolute transition-colors ease-in-out duration-150 ${c} size-12 ${e?o:""}`,style:u(i*.7)})})};var nh,yw;function NN(){if(yw)return nh;yw=1;function e(w){this._maxSize=w,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(w){return this._values[w]},e.prototype.set=function(w,C){return this._size>=this._maxSize&&this.clear(),w in this._values||this._size++,this._values[w]=C};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,o=512,c=new e(o),u=new e(o),d=new e(o);nh={Cache:e,split:m,normalizePath:h,setter:function(w){var C=h(w);return u.get(w)||u.set(w,function($,O){for(var R=0,V=C.length,F=$;R<V-1;){var z=C[R];if(z==="__proto__"||z==="constructor"||z==="prototype")return $;F=F[C[R++]]}F[C[R]]=O})},getter:function(w,C){var A=h(w);return d.get(w)||d.set(w,function(O){for(var R=0,V=A.length;R<V;)if(O!=null||!C)O=O[A[R++]];else return;return O})},join:function(w){return w.reduce(function(C,A){return C+(y(A)||n.test(A)?"["+A+"]":(C?".":"")+A)},"")},forEach:function(w,C,A){p(Array.isArray(w)?w:m(w),C,A)}};function h(w){return c.get(w)||c.set(w,m(w).map(function(C){return C.replace(a,"$2")}))}function m(w){return w.match(t)||[""]}function p(w,C,A){var $=w.length,O,R,V,F;for(R=0;R<$;R++)O=w[R],O&&(E(O)&&(O='"'+O+'"'),F=y(O),V=!F&&/^\d+$/.test(O),C.call(A,O,F,V,R,w))}function y(w){return typeof w=="string"&&w&&["'",'"'].indexOf(w.charAt(0))!==-1}function S(w){return w.match(r)&&!w.match(n)}function b(w){return i.test(w)}function E(w){return!y(w)&&(S(w)||b(w))}return nh}var vi=NN(),rh,vw;function LN(){if(vw)return rh;vw=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=h=>h.match(e)||[],n=h=>h[0].toUpperCase()+h.slice(1),r=(h,m)=>t(h).join(m).toLowerCase(),i=h=>t(h).reduce((m,p)=>`${m}${m?p[0].toUpperCase()+p.slice(1).toLowerCase():p.toLowerCase()}`,"");return rh={words:t,upperFirst:n,camelCase:i,pascalCase:h=>n(i(h)),snakeCase:h=>r(h,"_"),kebabCase:h=>r(h,"-"),sentenceCase:h=>n(r(h," ")),titleCase:h=>t(h).map(n).join(" ")},rh}var ih=LN(),dl={exports:{}},bw;function kN(){if(bw)return dl.exports;bw=1,dl.exports=function(i){return e(t(i),i)},dl.exports.array=e;function e(i,a){var o=i.length,c=new Array(o),u={},d=o,h=n(a),m=r(i);for(a.forEach(function(y){if(!m.has(y[0])||!m.has(y[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)u[d]||p(i[d],d,new Set);return c;function p(y,S,b){if(b.has(y)){var E;try{E=", node was:"+JSON.stringify(y)}catch{E=""}throw new Error("Cyclic dependency"+E)}if(!m.has(y))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(y));if(!u[S]){u[S]=!0;var w=h.get(y)||new Set;if(w=Array.from(w),S=w.length){b.add(y);do{var C=w[--S];p(C,m.get(C),b)}while(S);b.delete(y)}c[--o]=y}}}function t(i){for(var a=new Set,o=0,c=i.length;o<c;o++){var u=i[o];a.add(u[0]),a.add(u[1])}return Array.from(a)}function n(i){for(var a=new Map,o=0,c=i.length;o<c;o++){var u=i[o];a.has(u[0])||a.set(u[0],new Set),a.has(u[1])||a.set(u[1],new Set),a.get(u[0]).add(u[1])}return a}function r(i){for(var a=new Map,o=0,c=i.length;o<c;o++)a.set(i[o],o);return a}return dl.exports}var jN=kN();const FN=_m(jN),VN=Object.prototype.toString,BN=Error.prototype.toString,WN=RegExp.prototype.toString,UN=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",zN=/^Symbol\((.*)\)(.*)$/;function GN(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function xw(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return GN(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return UN.call(e).replace(zN,"Symbol($1)");const r=VN.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+BN.call(e)+"]":r==="RegExp"?WN.call(e):null}function $r(e,t){let n=xw(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let a=xw(this[r],t);return a!==null?a:i},2)}function ww(e){return e==null?[]:[].concat(e)}let Sw,Tw,Ew,YN=/\$\{\s*(\w+)\s*\}/g;Sw=Symbol.toStringTag;class Cw{constructor(t,n,r,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[Sw]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],ww(t).forEach(a=>{if(jt.isError(a)){this.errors.push(...a.errors);const o=a.inner.length?a.inner:[a];this.inner.push(...o)}else this.errors.push(a)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}Tw=Symbol.hasInstance,Ew=Symbol.toStringTag;class jt extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(YN,(i,a)=>$r(n[a])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i,a){const o=new Cw(t,n,r,i);if(a)return o;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[Ew]="Error",this.name=o.name,this.message=o.message,this.type=o.type,this.value=o.value,this.path=o.path,this.errors=o.errors,this.inner=o.inner,Error.captureStackTrace&&Error.captureStackTrace(this,jt)}static[Tw](t){return Cw[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Fn={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${$r(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${$r(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${$r(n,!0)}\``+i}},Ft={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},HN={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},sh={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},qN={isValue:"${path} field must be ${value}"},hl={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:Fn,string:Ft,number:HN,date:sh,object:hl,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:qN,tuple:{notType:e=>{const{path:t,value:n,spec:r}=e,i=r.types.length;if(Array.isArray(n)){if(n.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${n.length} for value: \`${$r(n,!0)}\``;if(n.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${n.length} for value: \`${$r(n,!0)}\``}return jt.formatError(Fn.notType,e)}}});const oh=e=>e&&e.__isYupSchema__;class ml{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:a}=n,o=typeof r=="function"?r:(...c)=>c.every(u=>u===r);return new ml(t,(c,u)=>{var d;let h=o(...c)?i:a;return(d=h==null?void 0:h(u))!=null?d:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(a=>a.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!oh(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const pl={context:"$",value:"."};class bi{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===pl.context,this.isValue=this.key[0]===pl.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?pl.context:this.isValue?pl.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&vi.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}bi.prototype.__isYupRef=!0;const xi=e=>e==null;function xs(e){function t({value:n,path:r="",options:i,originalValue:a,schema:o},c,u){const{name:d,test:h,params:m,message:p,skipAbsent:y}=e;let{parent:S,context:b,abortEarly:E=o.spec.abortEarly,disableStackTrace:w=o.spec.disableStackTrace}=i;function C(ne){return bi.isRef(ne)?ne.getValue(n,S,b):ne}function A(ne={}){const ue=Object.assign({value:n,originalValue:a,label:o.spec.label,path:ne.path||r,spec:o.spec,disableStackTrace:ne.disableStackTrace||w},m,ne.params);for(const de of Object.keys(ue))ue[de]=C(ue[de]);const ve=new jt(jt.formatError(ne.message||p,ue),n,ue.path,ne.type||d,ue.disableStackTrace);return ve.params=ue,ve}const $=E?c:u;let O={path:r,parent:S,type:d,from:i.from,createError:A,resolve:C,options:i,originalValue:a,schema:o};const R=ne=>{jt.isError(ne)?$(ne):ne?u(null):$(A())},V=ne=>{jt.isError(ne)?$(ne):c(ne)};if(y&&xi(n))return R(!0);let z;try{var Q;if(z=h.call(O,n,O),typeof((Q=z)==null?void 0:Q.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${O.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(z).then(R,V)}}catch(ne){V(ne);return}R(z)}return t.OPTIONS=e,t}function KN(e,t,n,r=n){let i,a,o;return t?(vi.forEach(t,(c,u,d)=>{let h=u?c.slice(1,c.length-1):c;e=e.resolve({context:r,parent:i,value:n});let m=e.type==="tuple",p=d?parseInt(h,10):0;if(e.innerType||m){if(m&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[p],e=m?e.spec.types[p]:e.innerType}if(!d){if(!e.fields||!e.fields[h])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e.type}")`);i=n,n=n&&n[h],e=e.fields[h]}a=h,o=u?"["+c+"]":"."+c}),{schema:e,parent:i,parentPath:a}):{parent:i,parentPath:t,schema:e}}class gl extends Set{describe(){const t=[];for(const n of this.values())t.push(bi.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new gl(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function ws(e,t=new Map){if(oh(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=ws(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,i]of e.entries())n.set(r,ws(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(ws(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=ws(i,t)}else throw Error(`Unable to clone ${e}`);return n}class Vn{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new gl,this._blacklist=new gl,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Fn.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=ws(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(a=>{t.tests.forEach(o=>{a.test(o.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,a)=>a.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i,a;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(a=t.disableStackTrace)!=null?a:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",a=r._cast(t,n);if(n.assert!==!1&&!r.isType(a)){if(i&&xi(a))return a;let o=$r(t),c=$r(a);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
710
|
+
`,style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},children:C()})]})};function uw(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=uw(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=uw(e))&&(r&&(r+=" "),r+=t);return r}const fw={filled:"bg-blue-500 text-white hover:bg-blue-600 hover:text-white active:bg-blue-700 active:text-white",transparent:"bg-blue-100 text-blue-500 hover:bg-blue-200 hover:text-blue-600 active:bg-blue-300/80 active:text-blue-700",outline:"bg-transparent border-1 border-blue-500 text-blue-500 hover:text-blue-600 hover:border-blue-600 active:text-blue-700 active:border-blue-700",invisible:"text-blue-500 hover:text-blue-600 active:text-blue-700"},dw={filled:"bg-aqua-500 text-white hover:bg-aqua-600 hover:text-white active:bg-aqua-700 active:text-white",transparent:"bg-aqua-100 text-aqua-500 hover:bg-aqua-200/50 hover:text-aqua-600 active:bg-aqua-200/70 active:text-aqua-700",outline:"bg-transparent border-1 border-aqua-500 text-aqua-500 hover:text-aqua-600 hover:border-aqua-600 active:text-aqua-700 active:border-aqua-700",invisible:"text-aqua-500 hover:text-aqua-600 active:text-aqua-700"},hw={filled:"bg-red-500 text-white hover:bg-red-600 hover:text-white active:bg-red-700 active:text-white",transparent:"bg-red-500/20 text-error hover:bg-red-500/30 hover:text-red-600 active:text-red-700 active:bg-red-700/40",outline:"bg-transparent border-1 border-red-500 text-error hover:text-red-600 hover:border-red-600 active:text-red-700 active:border-red-700",invisible:"text-red-500 hover:text-red-600 active:text-red-700"},mw={filled:"bg-gray-500 text-white hover:bg-gray-600 hover:text-white active:bg-gray-700 active:text-white",transparent:"bg-gray-100 text-gray-500 hover:bg-gray-200 hover:text-gray-600 active:text-gray-700 active:bg-gray-300",outline:"bg-transparent border-1 border-gray-500 text-gray-500 hover:text-gray-600 hover:border-gray-600 active:text-gray-700 active:border-gray-700",invisible:"text-gray-500 hover:text-gray-600 active:text-gray-700"},PN="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 text-body-s disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",AN={lg:"gap-12 px-24 py-8 text-lg",base:"gap-8 px-20 py-7",md:"gap-8 px-16 py-6",sm:"gap-4 px-12 py-5",xs:"gap-4 px-6 py-3"},MN=(e="filled",t="blue",n="base")=>{const r=tr(PN,AN[n]),i={blue:fw[e],aqua:dw[e],red:hw[e],gray:mw[e]}[t];return tr(r,i)},ON="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 leading-normal disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",_N={lg:"min-h-[46px] max-h-[46px] min-w-[46px] max-w-[46px]",base:"min-h-[40px] max-h-[40px] min-w-[40px] max-w-[40px]",md:"min-h-[28px] max-h-[28px] min-w-[28px] max-w-[28px]",sm:"min-h-[20px] max-h-[20px] min-w-[16px] max-w-[16px]",xs:"min-h-[12px] max-h-[12px] min-w-[12px] max-w-[12px]"},IN={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},DN=(e="filled",t="blue",n="base",r="none")=>{const i=tr(ON,_N[n],IN[r]),o={blue:fw[e],aqua:dw[e],red:hw[e],gray:mw[e]}[t];return tr(i,o)},$N={lg:"min-h-[20px] max-h-[20px]",base:"min-h-[15px] max-h-[15px]",md:"min-h-[15px] max-h-[15px]",sm:"min-h-[15px] max-h-[15px]",xs:"min-h-[15px] max-h-[15px]"},ko=(e="base")=>$N[e],jo=({icon:e,rightIcon:t,color:n,variant:r="filled",size:i="base",children:o,className:a,...c})=>{const{defaultColorScheme:u}=ze(),d=n||u;return v.jsxs("button",{type:"button",className:MN(r,d,i)+" "+a,...c,children:[e&&v.jsx(De,{icon:e,className:ko(i)}),o,t&&v.jsx(De,{icon:t,className:ko(i)})]})},pw=({className:e="",direction:t="horizontal"})=>t==="horizontal"?v.jsx("hr",{className:`w-full min-h-1 max-h-1 bg-blue-100 border-blue-100 ${e}`}):v.jsx("hr",{className:`h-full min-w-1 max-w-1 bg-blue-100 border-blue-100 ${e}`}),gw=({open:e,onClose:t,title:n,children:r,className:i="",showCloseButton:o=!0})=>{const a={hidden:{opacity:0},visible:{opacity:1}},c={hidden:{opacity:0,scale:.9},visible:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.9,transition:{duration:.15}}};return v.jsx(Kn,{children:e&&v.jsx(v.Fragment,{children:v.jsx(Ze.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:a,onClick:t,children:v.jsx(Ze.div,{className:`w-full max-w-lg mx-16 z-50 ${i}`,variants:c,initial:"hidden",animate:"visible",exit:"exit",onClick:u=>u.stopPropagation(),children:v.jsxs(bs,{className:`flex flex-col ${n&&"gap-16 md:gap-24"} p-0!`,children:[v.jsxs("div",{className:"flex flex-col gap-16 md:gap-24 md:p-32 pb-0!",children:[v.jsxs("div",{className:"flex justify-between items-center px-16 pt-16 md:px-0 md:pt-0",children:[n&&v.jsx("h2",{className:"text-black font-700 text-2xl",children:n}),o&&v.jsx(De,{icon:tu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700 ml-auto",onClick:t})]}),n&&v.jsx(pw,{className:"bg-gray-100!"})]}),v.jsx("div",{className:"flex flex-col gap-16 md:gap-24 p-16 pt-0 md:p-32 md:pt-4",children:typeof r=="function"?r(t):r})]})})})})})},RN=({active:e,color:t="blue",variant:n="rounded",className:r,size:i=16,...o})=>{const a={blue:"border-blue-500 bg-blue-500",aqua:"border-aqua-500 bg-aqua-500",red:"border-red-500 bg-red-500",gray:"border-gray-500 bg-gray-500"}[t],c={rounded:"rounded-full",square:"rounded-md"}[n],u=d=>({width:`${d}px`,height:`${d}px`,minWidth:`${d}px`,minHeight:`${d}px`});return v.jsx("div",{className:`relative transition-colors ease-in-out duration-150 flex items-center justify-center ${c} border-[1.5px] bg-white ${e?a:"border-gray-400"} ${r}`,style:u(i),...o,children:v.jsx("div",{className:`absolute transition-colors ease-in-out duration-150 ${c} size-12 ${e?a:""}`,style:u(i*.7)})})};var nh,yw;function NN(){if(yw)return nh;yw=1;function e(w){this._maxSize=w,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(w){return this._values[w]},e.prototype.set=function(w,C){return this._size>=this._maxSize&&this.clear(),w in this._values||this._size++,this._values[w]=C};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,a=512,c=new e(a),u=new e(a),d=new e(a);nh={Cache:e,split:m,normalizePath:h,setter:function(w){var C=h(w);return u.get(w)||u.set(w,function($,P){for(var R=0,k=C.length,j=$;R<k-1;){var z=C[R];if(z==="__proto__"||z==="constructor"||z==="prototype")return $;j=j[C[R++]]}j[C[R]]=P})},getter:function(w,C){var M=h(w);return d.get(w)||d.set(w,function(P){for(var R=0,k=M.length;R<k;)if(P!=null||!C)P=P[M[R++]];else return;return P})},join:function(w){return w.reduce(function(C,M){return C+(y(M)||n.test(M)?"["+M+"]":(C?".":"")+M)},"")},forEach:function(w,C,M){p(Array.isArray(w)?w:m(w),C,M)}};function h(w){return c.get(w)||c.set(w,m(w).map(function(C){return C.replace(o,"$2")}))}function m(w){return w.match(t)||[""]}function p(w,C,M){var $=w.length,P,R,k,j;for(R=0;R<$;R++)P=w[R],P&&(E(P)&&(P='"'+P+'"'),j=y(P),k=!j&&/^\d+$/.test(P),C.call(M,P,j,k,R,w))}function y(w){return typeof w=="string"&&w&&["'",'"'].indexOf(w.charAt(0))!==-1}function S(w){return w.match(r)&&!w.match(n)}function b(w){return i.test(w)}function E(w){return!y(w)&&(S(w)||b(w))}return nh}var vi=NN(),rh,vw;function LN(){if(vw)return rh;vw=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=h=>h.match(e)||[],n=h=>h[0].toUpperCase()+h.slice(1),r=(h,m)=>t(h).join(m).toLowerCase(),i=h=>t(h).reduce((m,p)=>`${m}${m?p[0].toUpperCase()+p.slice(1).toLowerCase():p.toLowerCase()}`,"");return rh={words:t,upperFirst:n,camelCase:i,pascalCase:h=>n(i(h)),snakeCase:h=>r(h,"_"),kebabCase:h=>r(h,"-"),sentenceCase:h=>n(r(h," ")),titleCase:h=>t(h).map(n).join(" ")},rh}var ih=LN(),dl={exports:{}},bw;function kN(){if(bw)return dl.exports;bw=1,dl.exports=function(i){return e(t(i),i)},dl.exports.array=e;function e(i,o){var a=i.length,c=new Array(a),u={},d=a,h=n(o),m=r(i);for(o.forEach(function(y){if(!m.has(y[0])||!m.has(y[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)u[d]||p(i[d],d,new Set);return c;function p(y,S,b){if(b.has(y)){var E;try{E=", node was:"+JSON.stringify(y)}catch{E=""}throw new Error("Cyclic dependency"+E)}if(!m.has(y))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(y));if(!u[S]){u[S]=!0;var w=h.get(y)||new Set;if(w=Array.from(w),S=w.length){b.add(y);do{var C=w[--S];p(C,m.get(C),b)}while(S);b.delete(y)}c[--a]=y}}}function t(i){for(var o=new Set,a=0,c=i.length;a<c;a++){var u=i[a];o.add(u[0]),o.add(u[1])}return Array.from(o)}function n(i){for(var o=new Map,a=0,c=i.length;a<c;a++){var u=i[a];o.has(u[0])||o.set(u[0],new Set),o.has(u[1])||o.set(u[1],new Set),o.get(u[0]).add(u[1])}return o}function r(i){for(var o=new Map,a=0,c=i.length;a<c;a++)o.set(i[a],a);return o}return dl.exports}var jN=kN();const FN=_m(jN),VN=Object.prototype.toString,BN=Error.prototype.toString,WN=RegExp.prototype.toString,UN=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",zN=/^Symbol\((.*)\)(.*)$/;function GN(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function xw(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return GN(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return UN.call(e).replace(zN,"Symbol($1)");const r=VN.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+BN.call(e)+"]":r==="RegExp"?WN.call(e):null}function $r(e,t){let n=xw(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=xw(this[r],t);return o!==null?o:i},2)}function ww(e){return e==null?[]:[].concat(e)}let Sw,Tw,Ew,YN=/\$\{\s*(\w+)\s*\}/g;Sw=Symbol.toStringTag;class Cw{constructor(t,n,r,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[Sw]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],ww(t).forEach(o=>{if(jt.isError(o)){this.errors.push(...o.errors);const a=o.inner.length?o.inner:[o];this.inner.push(...a)}else this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}Tw=Symbol.hasInstance,Ew=Symbol.toStringTag;class jt extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(YN,(i,o)=>$r(n[o])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i,o){const a=new Cw(t,n,r,i);if(o)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[Ew]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,jt)}static[Tw](t){return Cw[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Fn={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${$r(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${$r(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${$r(n,!0)}\``+i}},Ft={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},HN={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},sh={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},qN={isValue:"${path} field must be ${value}"},hl={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:Fn,string:Ft,number:HN,date:sh,object:hl,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:qN,tuple:{notType:e=>{const{path:t,value:n,spec:r}=e,i=r.types.length;if(Array.isArray(n)){if(n.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${n.length} for value: \`${$r(n,!0)}\``;if(n.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${n.length} for value: \`${$r(n,!0)}\``}return jt.formatError(Fn.notType,e)}}});const oh=e=>e&&e.__isYupSchema__;class ml{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:o}=n,a=typeof r=="function"?r:(...c)=>c.every(u=>u===r);return new ml(t,(c,u)=>{var d;let h=a(...c)?i:o;return(d=h==null?void 0:h(u))!=null?d:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(o=>o.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!oh(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const pl={context:"$",value:"."};class bi{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===pl.context,this.isValue=this.key[0]===pl.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?pl.context:this.isValue?pl.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&vi.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}bi.prototype.__isYupRef=!0;const xi=e=>e==null;function xs(e){function t({value:n,path:r="",options:i,originalValue:o,schema:a},c,u){const{name:d,test:h,params:m,message:p,skipAbsent:y}=e;let{parent:S,context:b,abortEarly:E=a.spec.abortEarly,disableStackTrace:w=a.spec.disableStackTrace}=i;function C(te){return bi.isRef(te)?te.getValue(n,S,b):te}function M(te={}){const ce=Object.assign({value:n,originalValue:o,label:a.spec.label,path:te.path||r,spec:a.spec,disableStackTrace:te.disableStackTrace||w},m,te.params);for(const fe of Object.keys(ce))ce[fe]=C(ce[fe]);const ve=new jt(jt.formatError(te.message||p,ce),n,ce.path,te.type||d,ce.disableStackTrace);return ve.params=ce,ve}const $=E?c:u;let P={path:r,parent:S,type:d,from:i.from,createError:M,resolve:C,options:i,originalValue:o,schema:a};const R=te=>{jt.isError(te)?$(te):te?u(null):$(M())},k=te=>{jt.isError(te)?$(te):c(te)};if(y&&xi(n))return R(!0);let z;try{var Z;if(z=h.call(P,n,P),typeof((Z=z)==null?void 0:Z.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${P.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(z).then(R,k)}}catch(te){k(te);return}R(z)}return t.OPTIONS=e,t}function KN(e,t,n,r=n){let i,o,a;return t?(vi.forEach(t,(c,u,d)=>{let h=u?c.slice(1,c.length-1):c;e=e.resolve({context:r,parent:i,value:n});let m=e.type==="tuple",p=d?parseInt(h,10):0;if(e.innerType||m){if(m&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[p],e=m?e.spec.types[p]:e.innerType}if(!d){if(!e.fields||!e.fields[h])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);i=n,n=n&&n[h],e=e.fields[h]}o=h,a=u?"["+c+"]":"."+c}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}class gl extends Set{describe(){const t=[];for(const n of this.values())t.push(bi.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new gl(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function ws(e,t=new Map){if(oh(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=ws(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,i]of e.entries())n.set(r,ws(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(ws(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=ws(i,t)}else throw Error(`Unable to clone ${e}`);return n}class Vn{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new gl,this._blacklist=new gl,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Fn.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=ws(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(o=>{t.tests.forEach(a=>{o.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,o)=>o.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i,o;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(o=t.disableStackTrace)!=null?o:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",o=r._cast(t,n);if(n.assert!==!1&&!r.isType(o)){if(i&&xi(o))return o;let a=$r(t),c=$r(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
711
711
|
|
|
712
|
-
attempted value: ${
|
|
713
|
-
`+(c!==o?`result of cast: ${c}`:""))}return a}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,a)=>a.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,i){let{path:a,originalValue:o=t,strict:c=this.spec.strict}=n,u=t;c||(u=this._cast(u,Object.assign({assert:!1},n)));let d=[];for(let h of Object.values(this.internalTests))h&&d.push(h);this.runTests({path:a,value:u,originalValue:o,options:n,tests:d},r,h=>{if(h.length)return i(h,u);this.runTests({path:a,value:u,originalValue:o,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:a,value:o,originalValue:c,path:u,options:d}=t,h=b=>{i||(i=!0,n(b,o))},m=b=>{i||(i=!0,r(b,o))},p=a.length,y=[];if(!p)return m([]);let S={value:o,originalValue:c,path:u,options:d,schema:this};for(let b=0;b<a.length;b++){const E=a[b];E(S,h,function(C){C&&(Array.isArray(C)?y.push(...C):y.push(C)),--p<=0&&m(y)})}}asNestedTest({key:t,index:n,parent:r,parentPath:i,originalParent:a,options:o}){const c=t??n;if(c==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof c=="number";let d=r[c];const h=Object.assign({},o,{strict:!0,parent:r,value:d,originalValue:a[c],key:void 0,[u?"index":"key"]:c,path:u||c.includes(".")?`${i||""}[${u?c:`"${c}"`}]`:(i?`${i}.`:"")+t});return(m,p,y)=>this.resolve(h)._validate(d,h,p,y)}validate(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),a=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return new Promise((o,c)=>i._validate(t,n,(u,d)=>{jt.isError(u)&&(u.value=d),c(u)},(u,d)=>{u.length?c(new jt(u,d,void 0,void 0,a)):o(d)}))}validateSync(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),a,o=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return i._validate(t,Object.assign({},n,{sync:!0}),(c,u)=>{throw jt.isError(c)&&(c.value=u),c},(c,u)=>{if(c.length)throw new jt(c,t,void 0,void 0,o);a=u}),a}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(jt.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(jt.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):ws(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=xs({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=xs({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Fn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Fn.notNull){return this.nullability(!1,t)}required(t=Fn.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Fn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=xs(n),a=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(o=>!(o.OPTIONS.name===n.name&&(a||o.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=ww(t).map(a=>new bi(a));return i.forEach(a=>{a.isSibling&&r.deps.push(a.key)}),r.conditions.push(typeof n=="function"?new ml(i,n):ml.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=xs({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=Fn.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=xs({message:n,name:"oneOf",skipAbsent:!0,test(i){let a=this.schema._whitelist,o=a.resolveAll(this.resolve);return o.includes(i)?!0:this.createError({params:{values:Array.from(a).join(", "),resolved:o}})}}),r}notOneOf(t,n=Fn.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=xs({message:n,name:"notOneOf",test(i){let a=this.schema._blacklist,o=a.resolveAll(this.resolve);return o.includes(i)?this.createError({params:{values:Array.from(a).join(", "),resolved:o}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:a,nullable:o}=n.spec;return{meta:i,label:r,optional:a,nullable:o,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,d,h)=>h.findIndex(m=>m.name===u.name)===d)}}}Vn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Vn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:a,schema:o}=KN(this,t,n,r.context);return o[e](i&&i[a],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Vn.prototype[e]=Vn.prototype.oneOf;for(const e of["not","nope"])Vn.prototype[e]=Vn.prototype.notOneOf;const XN=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function ZN(e){const t=ah(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function ah(e){var t,n;const r=XN.exec(e);return r?{year:nr(r[1]),month:nr(r[2],1)-1,day:nr(r[3],1),hour:nr(r[4]),minute:nr(r[5]),second:nr(r[6]),millisecond:r[7]?nr(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:nr(r[10]),minuteOffset:nr(r[11])}:null}function nr(e,t=0){return Number(e)||t}let JN=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,QN=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,eL=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,tL="^\\d{4}-\\d{2}-\\d{2}",nL="\\d{2}:\\d{2}:\\d{2}",rL="(([+-]\\d{2}(:?\\d{2})?)|Z)",iL=new RegExp(`${tL}T${nL}(\\.\\d+)?${rL}$`),sL=e=>xi(e)||e===e.trim(),oL={}.toString();function Rr(){return new Pw}class Pw extends Vn{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===oL?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Fn.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=Ft.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=Ft.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=Ft.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,a;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:a}=n:i=n),this.test({name:a||"matches",message:i||Ft.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&r||o.search(t)!==-1})}email(t=Ft.email){return this.matches(JN,{name:"email",message:t,excludeEmptyString:!0})}url(t=Ft.url){return this.matches(QN,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Ft.uuid){return this.matches(eL,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,i;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:i=void 0}=t:n=t),this.matches(iL,{name:"datetime",message:n||Ft.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Ft.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:a=>{if(!a||r)return!0;const o=ah(a);return o?!!o.z:!1}}).test({name:"datetime_precision",message:n||Ft.datetime_precision,params:{precision:i},skipAbsent:!0,test:a=>{if(!a||i==null)return!0;const o=ah(a);return o?o.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Ft.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:sL})}lowercase(t=Ft.lowercase){return this.transform(n=>xi(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>xi(n)||n===n.toLowerCase()})}uppercase(t=Ft.uppercase){return this.transform(n=>xi(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>xi(n)||n===n.toUpperCase()})}}Rr.prototype=Pw.prototype;let aL=new Date(""),lL=e=>Object.prototype.toString.call(e)==="[object Date]";class lh extends Vn{constructor(){super({type:"date",check(t){return lL(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=ZN(t),isNaN(t)?lh.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(bi.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=sh.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(t,n=sh.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}lh.INVALID_DATE=aL;function cL(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([o,c])=>`${o}-${c}`));function a(o,c){let u=vi.split(o)[0];r.add(u),i.has(`${c}-${u}`)||n.push([c,u])}for(const o of Object.keys(e)){let c=e[o];r.add(o),bi.isRef(c)&&c.isSibling?a(c.path,o):oh(c)&&"deps"in c&&c.deps.forEach(u=>a(u,o))}return FN.array(Array.from(r),n).reverse()}function Aw(e,t){let n=1/0;return e.some((r,i)=>{var a;if((a=t.path)!=null&&a.includes(r))return n=i,!0}),n}function Ow(e){return(t,n)=>Aw(e,t)-Aw(e,n)}const uL=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function yl(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=yl(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=yl(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(yl)}):"optional"in e?e.optional():e}const fL=(e,t)=>{const n=[...vi.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=vi.getter(vi.join(n),!0)(e);return!!(i&&r in i)};let Mw=e=>Object.prototype.toString.call(e)==="[object Object]";function _w(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const dL=Ow([]);function ch(e){return new Iw(e)}class Iw extends Vn{constructor(t){super({type:"object",check(n){return Mw(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=dL,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault(n);if(!this._typeCheck(i))return i;let a=this.fields,o=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,c=[].concat(this._nodes,Object.keys(i).filter(m=>!this._nodes.includes(m))),u={},d=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),h=!1;for(const m of c){let p=a[m],y=m in i;if(p){let S,b=i[m];d.path=(n.path?`${n.path}.`:"")+m,p=p.resolve({value:b,context:n.context,parent:u});let E=p instanceof Vn?p.spec:void 0,w=E==null?void 0:E.strict;if(E!=null&&E.strip){h=h||m in i;continue}S=!n.__validating||!w?p.cast(i[m],d):i[m],S!==void 0&&(u[m]=S)}else y&&!o&&(u[m]=i[m]);(y!==m in u||u[m]!==i[m])&&(h=!0)}return h?u:i}_validate(t,n={},r,i){let{from:a=[],originalValue:o=t,recursive:c=this.spec.recursive}=n;n.from=[{schema:this,value:o},...a],n.__validating=!0,n.originalValue=o,super._validate(t,n,r,(u,d)=>{if(!c||!Mw(d)){i(u,d);return}o=o||d;let h=[];for(let m of this._nodes){let p=this.fields[m];!p||bi.isRef(p)||h.push(p.asNestedTest({options:n,key:m,parent:d,parentPath:n.path,originalParent:o}))}this.runTests({tests:h,value:d,originalValue:o,options:n},r,m=>{i(m.sort(this._sortErrors).concat(u),d)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,a]of Object.entries(this.fields)){const o=r[i];r[i]=o===void 0?a:o}return n.withMutation(i=>i.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var i;const a=this.fields[r];let o=t;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[r]})),n[r]=a&&"getDefault"in a?a.getDefault(o):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=cL(t,n),r._sortErrors=Ow(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),i)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return yl(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,i])=>t.includes(r)&&t.includes(i)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let i=vi.getter(t,!0);return this.transform(a=>{if(!a)return a;let o=a;return fL(a,t)&&(o=Object.assign({},a),r||delete o[t],o[n]=i(a)),o})}json(){return this.transform(uL)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||hl.exact,test(n){if(n==null)return!0;const r=_w(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=hl.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const a=_w(this.schema,i);return!t||a.length===0||this.createError({params:{unknown:a.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=hl.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[t(i)]=n[i];return r})}camelCase(){return this.transformKeys(ih.camelCase)}snakeCase(){return this.transformKeys(ih.snakeCase)}constantCase(){return this.transformKeys(t=>ih.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[a,o]of Object.entries(n.fields)){var i;let c=t;(i=c)!=null&&i.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[a]})),r.fields[a]=o.describe(c)}return r}}ch.prototype=Iw.prototype,ch().shape({labelES:Rr().required(),label:Rr().required(),code:Rr().required(),codeISO2:Rr().required(),phone:Rr().required()});const Dw=[{labelES:"Afganistán",label:"Afghanistan",codeISO2:"AF",code:"AFG",phone:"93"},{labelES:"Albania",label:"Albania",codeISO2:"AL",code:"ALB",phone:"355"},{labelES:"Alemania",label:"Germany",codeISO2:"DE",code:"DEU",phone:"49"},{labelES:"Andorra",label:"Andorra",codeISO2:"AD",code:"AND",phone:"376"},{labelES:"Angola",label:"Angola",codeISO2:"AO",code:"AGO",phone:"244"},{labelES:"Anguila",label:"Anguilla",codeISO2:"AI",code:"AIA",phone:"1 264"},{labelES:"Antártida",label:"Antarctica",codeISO2:"AQ",code:"ATA",phone:"672"},{labelES:"Antigua y Barbuda",label:"Antigua and Barbuda",codeISO2:"AG",code:"ATG",phone:"1 268"},{labelES:"Arabia Saudita",label:"Saudi Arabia",codeISO2:"SA",code:"SAU",phone:"966"},{labelES:"Argelia",label:"Algeria",codeISO2:"DZ",code:"DZA",phone:"213"},{labelES:"Argentina",label:"Argentina",codeISO2:"AR",code:"ARG",phone:"54"},{labelES:"Armenia",label:"Armenia",codeISO2:"AM",code:"ARM",phone:"374"},{labelES:"Aruba",label:"Aruba",codeISO2:"AW",code:"ABW",phone:"297"},{labelES:"Australia",label:"Australia",codeISO2:"AU",code:"AUS",phone:"61"},{labelES:"Austria",label:"Austria",codeISO2:"AT",code:"AUT",phone:"43"},{labelES:"Azerbaiyán",label:"Azerbaijan",codeISO2:"AZ",code:"AZE",phone:"994"},{labelES:"Bélgica",label:"Belgium",codeISO2:"BE",code:"BEL",phone:"32"},{labelES:"Bahamas",label:"Bahamas",codeISO2:"BS",code:"BHS",phone:"1 242"},{labelES:"Bahrein",label:"Bahrain",codeISO2:"BH",code:"BHR",phone:"973"},{labelES:"Bangladesh",label:"Bangladesh",codeISO2:"BD",code:"BGD",phone:"880"},{labelES:"Barbados",label:"Barbados",codeISO2:"BB",code:"BRB",phone:"1 246"},{labelES:"Belice",label:"Belize",codeISO2:"BZ",code:"BLZ",phone:"501"},{labelES:"Benín",label:"Benin",codeISO2:"BJ",code:"BEN",phone:"229"},{labelES:"Bhután",label:"Bhutan",codeISO2:"BT",code:"BTN",phone:"975"},{labelES:"Bielorrusia",label:"Belarus",codeISO2:"BY",code:"BLR",phone:"375"},{labelES:"Birmania",label:"Myanmar",codeISO2:"MM",code:"MMR",phone:"95"},{labelES:"Bolivia",label:"Bolivia",codeISO2:"BO",code:"BOL",phone:"591"},{labelES:"Bosnia y Herzegovina",label:"Bosnia and Herzegovina",codeISO2:"BA",code:"BIH",phone:"387"},{labelES:"Botsuana",label:"Botswana",codeISO2:"BW",code:"BWA",phone:"267"},{labelES:"Brasil",label:"Brazil",codeISO2:"BR",code:"BRA",phone:"55"},{labelES:"Brunéi",label:"Brunei",codeISO2:"BN",code:"BRN",phone:"673"},{labelES:"Bulgaria",label:"Bulgaria",codeISO2:"BG",code:"BGR",phone:"359"},{labelES:"Burkina Faso",label:"Burkina Faso",codeISO2:"BF",code:"BFA",phone:"226"},{labelES:"Burundi",label:"Burundi",codeISO2:"BI",code:"BDI",phone:"257"},{labelES:"Cabo Verde",label:"Cape Verde",codeISO2:"CV",code:"CPV",phone:"238"},{labelES:"Camboya",label:"Cambodia",codeISO2:"KH",code:"KHM",phone:"855"},{labelES:"Camerún",label:"Cameroon",codeISO2:"CM",code:"CMR",phone:"237"},{labelES:"Canadá",label:"Canada",codeISO2:"CA",code:"CAN",phone:"1"},{labelES:"Chad",label:"Chad",codeISO2:"TD",code:"TCD",phone:"235"},{labelES:"Chile",label:"Chile",codeISO2:"CL",code:"CHL",phone:"56"},{labelES:"China",label:"China",codeISO2:"CN",code:"CHN",phone:"86"},{labelES:"Chipre",label:"Cyprus",codeISO2:"CY",code:"CYP",phone:"357"},{labelES:"Ciudad del Vaticano",label:"Vatican City State",codeISO2:"VA",code:"VAT",phone:"39"},{labelES:"Colombia",label:"Colombia",codeISO2:"CO",code:"COL",phone:"57"},{labelES:"Comoras",label:"Comoros",codeISO2:"KM",code:"COM",phone:"269"},{labelES:"República del Congo",label:"Republic of the Congo",codeISO2:"CG",code:"COG",phone:"242"},{labelES:"República Democrática del Congo",label:"Democratic Republic of the Congo",codeISO2:"CD",code:"COD",phone:"243"},{labelES:"Corea del Norte",label:"North Korea",codeISO2:"KP",code:"PRK",phone:"850"},{labelES:"Corea del Sur",label:"South Korea",codeISO2:"KR",code:"KOR",phone:"82"},{labelES:"Costa de Marfil",label:"Ivory Coast",codeISO2:"CI",code:"CIV",phone:"225"},{labelES:"Costa Rica",label:"Costa Rica",codeISO2:"CR",code:"CRI",phone:"506"},{labelES:"Croacia",label:"Croatia",codeISO2:"HR",code:"HRV",phone:"385"},{labelES:"Cuba",label:"Cuba",codeISO2:"CU",code:"CUB",phone:"53"},{labelES:"Curazao",label:"Curaçao",codeISO2:"CW",code:"CWU",phone:"5999"},{labelES:"Dinamarca",label:"Denmark",codeISO2:"DK",code:"DNK",phone:"45"},{labelES:"Dominica",label:"Dominica",codeISO2:"DM",code:"DMA",phone:"1 767"},{labelES:"Ecuador",label:"Ecuador",codeISO2:"EC",code:"ECU",phone:"593"},{labelES:"Egipto",label:"Egypt",codeISO2:"EG",code:"EGY",phone:"20"},{labelES:"El Salvador",label:"El Salvador",codeISO2:"SV",code:"SLV",phone:"503"},{labelES:"Emiratos Árabes Unidos",label:"United Arab Emirates",codeISO2:"AE",code:"ARE",phone:"971"},{labelES:"Eritrea",label:"Eritrea",codeISO2:"ER",code:"ERI",phone:"291"},{labelES:"Eslovaquia",label:"Slovakia",codeISO2:"SK",code:"SVK",phone:"421"},{labelES:"Eslovenia",label:"Slovenia",codeISO2:"SI",code:"SVN",phone:"386"},{labelES:"España",label:"Spain",codeISO2:"ES",code:"ESP",phone:"34"},{labelES:"Estados Unidos de América",label:"United States of America",codeISO2:"US",code:"USA",phone:"1"},{labelES:"Estonia",label:"Estonia",codeISO2:"EE",code:"EST",phone:"372"},{labelES:"Etiopía",label:"Ethiopia",codeISO2:"ET",code:"ETH",phone:"251"},{labelES:"Filipinas",label:"Philippines",codeISO2:"PH",code:"PHL",phone:"63"},{labelES:"Finlandia",label:"Finland",codeISO2:"FI",code:"FIN",phone:"358"},{labelES:"Fiyi",label:"Fiji",codeISO2:"FJ",code:"FJI",phone:"679"},{labelES:"Francia",label:"France",codeISO2:"FR",code:"FRA",phone:"33"},{labelES:"Gabón",label:"Gabon",codeISO2:"GA",code:"GAB",phone:"241"},{labelES:"Gambia",label:"Gambia",codeISO2:"GM",code:"GMB",phone:"220"},{labelES:"Georgia",label:"Georgia",codeISO2:"GE",code:"GEO",phone:"995"},{labelES:"Ghana",label:"Ghana",codeISO2:"GH",code:"GHA",phone:"233"},{labelES:"Gibraltar",label:"Gibraltar",codeISO2:"GI",code:"GIB",phone:"350"},{labelES:"Granada",label:"Grenada",codeISO2:"GD",code:"GRD",phone:"1 473"},{labelES:"Grecia",label:"Greece",codeISO2:"GR",code:"GRC",phone:"30"},{labelES:"Groenlandia",label:"Greenland",codeISO2:"GL",code:"GRL",phone:"299"},{labelES:"Guadalupe",label:"Guadeloupe",codeISO2:"GP",code:"GLP",phone:"590"},{labelES:"Guam",label:"Guam",codeISO2:"GU",code:"GUM",phone:"1 671"},{labelES:"Guatemala",label:"Guatemala",codeISO2:"GT",code:"GTM",phone:"502"},{labelES:"Guayana Francesa",label:"French Guiana",codeISO2:"GF",code:"GUF",phone:"594"},{labelES:"Guernsey",label:"Guernsey",codeISO2:"GG",code:"GGY",phone:"44"},{labelES:"Guinea",label:"Guinea",codeISO2:"GN",code:"GIN",phone:"224"},{labelES:"Guinea Ecuatorial",label:"Equatorial Guinea",codeISO2:"GQ",code:"GNQ",phone:"240"},{labelES:"Guinea-Bissau",label:"Guinea-Bissau",codeISO2:"GW",code:"GNB",phone:"245"},{labelES:"Guyana",label:"Guyana",codeISO2:"GY",code:"GUY",phone:"592"},{labelES:"Haití",label:"Haiti",codeISO2:"HT",code:"HTI",phone:"509"},{labelES:"Honduras",label:"Honduras",codeISO2:"HN",code:"HND",phone:"504"},{labelES:"Hong kong",label:"Hong Kong",codeISO2:"HK",code:"HKG",phone:"852"},{labelES:"Hungría",label:"Hungary",codeISO2:"HU",code:"HUN",phone:"36"},{labelES:"India",label:"India",codeISO2:"IN",code:"IND",phone:"91"},{labelES:"Indonesia",label:"Indonesia",codeISO2:"ID",code:"IDN",phone:"62"},{labelES:"Irán",label:"Iran",codeISO2:"IR",code:"IRN",phone:"98"},{labelES:"Irak",label:"Iraq",codeISO2:"IQ",code:"IRQ",phone:"964"},{labelES:"Irlanda",label:"Ireland",codeISO2:"IE",code:"IRL",phone:"353"},{labelES:"Isla Bouvet",label:"Bouvet Island",codeISO2:"BV",code:"BVT",phone:""},{labelES:"Isla de Man",label:"Isle of Man",codeISO2:"IM",code:"IMN",phone:"44"},{labelES:"Isla de Navidad",label:"Christmas Island",codeISO2:"CX",code:"CXR",phone:"61"},{labelES:"Isla Norfolk",label:"Norfolk Island",codeISO2:"NF",code:"NFK",phone:"672"},{labelES:"Islandia",label:"Iceland",codeISO2:"IS",code:"ISL",phone:"354"},{labelES:"Islas Bermudas",label:"Bermuda Islands",codeISO2:"BM",code:"BMU",phone:"1 441"},{labelES:"Islas Caimán",label:"Cayman Islands",codeISO2:"KY",code:"CYM",phone:"1 345"},{labelES:"Islas Cocos (Keeling)",label:"Cocos (Keeling) Islands",codeISO2:"CC",code:"CCK",phone:"61"},{labelES:"Islas Cook",label:"Cook Islands",codeISO2:"CK",code:"COK",phone:"682"},{labelES:"Islas de Åland",label:"Åland Islands",codeISO2:"AX",code:"ALA",phone:"358"},{labelES:"Islas Feroe",label:"Faroe Islands",codeISO2:"FO",code:"FRO",phone:"298"},{labelES:"Islas Georgias del Sur y Sandwich del Sur",label:"South Georgia and the South Sandwich Islands",codeISO2:"GS",code:"SGS",phone:"500"},{labelES:"Islas Heard y McDonald",label:"Heard Island and McDonald Islands",codeISO2:"HM",code:"HMD",phone:""},{labelES:"Islas Maldivas",label:"Maldives",codeISO2:"MV",code:"MDV",phone:"960"},{labelES:"Islas Malvinas",label:"Falkland Islands (Malvinas)",codeISO2:"FK",code:"FLK",phone:"500"},{labelES:"Islas Marianas del Norte",label:"Northern Mariana Islands",codeISO2:"MP",code:"MNP",phone:"1 670"},{labelES:"Islas Marshall",label:"Marshall Islands",codeISO2:"MH",code:"MHL",phone:"692"},{labelES:"Islas Pitcairn",label:"Pitcairn Islands",codeISO2:"PN",code:"PCN",phone:"870"},{labelES:"Islas Salomón",label:"Solomon Islands",codeISO2:"SB",code:"SLB",phone:"677"},{labelES:"Islas Turcas y Caicos",label:"Turks and Caicos Islands",codeISO2:"TC",code:"TCA",phone:"1 649"},{labelES:"Islas Ultramarinas Menores de Estados Unidos",label:"United States Minor Outlying Islands",codeISO2:"UM",code:"UMI",phone:"246"},{labelES:"Islas Vírgenes Británicas",label:"Virgin Islands",codeISO2:"VG",code:"VGB",phone:"1 284"},{labelES:"Islas Vírgenes de los Estados Unidos",label:"United States Virgin Islands",codeISO2:"VI",code:"VIR",phone:"1 340"},{labelES:"Israel",label:"Israel",codeISO2:"IL",code:"ISR",phone:"972"},{labelES:"Italia",label:"Italy",codeISO2:"IT",code:"ITA",phone:"39"},{labelES:"Jamaica",label:"Jamaica",codeISO2:"JM",code:"JAM",phone:"1 876"},{labelES:"Japón",label:"Japan",codeISO2:"JP",code:"JPN",phone:"81"},{labelES:"Jersey",label:"Jersey",codeISO2:"JE",code:"JEY",phone:"44"},{labelES:"Jordania",label:"Jordan",codeISO2:"JO",code:"JOR",phone:"962"},{labelES:"Kazajistán",label:"Kazakhstan",codeISO2:"KZ",code:"KAZ",phone:"7"},{labelES:"Kenia",label:"Kenya",codeISO2:"KE",code:"KEN",phone:"254"},{labelES:"Kirguistán",label:"Kyrgyzstan",codeISO2:"KG",code:"KGZ",phone:"996"},{labelES:"Kiribati",label:"Kiribati",codeISO2:"KI",code:"KIR",phone:"686"},{labelES:"Kuwait",label:"Kuwait",codeISO2:"KW",code:"KWT",phone:"965"},{labelES:"Líbano",label:"Lebanon",codeISO2:"LB",code:"LBN",phone:"961"},{labelES:"Laos",label:"Laos",codeISO2:"LA",code:"LAO",phone:"856"},{labelES:"Lesoto",label:"Lesotho",codeISO2:"LS",code:"LSO",phone:"266"},{labelES:"Letonia",label:"Latvia",codeISO2:"LV",code:"LVA",phone:"371"},{labelES:"Liberia",label:"Liberia",codeISO2:"LR",code:"LBR",phone:"231"},{labelES:"Libia",label:"Libya",codeISO2:"LY",code:"LBY",phone:"218"},{labelES:"Liechtenstein",label:"Liechtenstein",codeISO2:"LI",code:"LIE",phone:"423"},{labelES:"Lituania",label:"Lithuania",codeISO2:"LT",code:"LTU",phone:"370"},{labelES:"Luxemburgo",label:"Luxembourg",codeISO2:"LU",code:"LUX",phone:"352"},{labelES:"México",label:"Mexico",codeISO2:"MX",code:"MEX",phone:"52"},{labelES:"Mónaco",label:"Monaco",codeISO2:"MC",code:"MCO",phone:"377"},{labelES:"Macao",label:"Macao",codeISO2:"MO",code:"MAC",phone:"853"},{labelES:"Macedônia",label:"Macedonia",codeISO2:"MK",code:"MKD",phone:"389"},{labelES:"Madagascar",label:"Madagascar",codeISO2:"MG",code:"MDG",phone:"261"},{labelES:"Malasia",label:"Malaysia",codeISO2:"MY",code:"MYS",phone:"60"},{labelES:"Malawi",label:"Malawi",codeISO2:"MW",code:"MWI",phone:"265"},{labelES:"Mali",label:"Mali",codeISO2:"ML",code:"MLI",phone:"223"},{labelES:"Malta",label:"Malta",codeISO2:"MT",code:"MLT",phone:"356"},{labelES:"Marruecos",label:"Morocco",codeISO2:"MA",code:"MAR",phone:"212"},{labelES:"Martinica",label:"Martinique",codeISO2:"MQ",code:"MTQ",phone:"596"},{labelES:"Mauricio",label:"Mauritius",codeISO2:"MU",code:"MUS",phone:"230"},{labelES:"Mauritania",label:"Mauritania",codeISO2:"MR",code:"MRT",phone:"222"},{labelES:"Mayotte",label:"Mayotte",codeISO2:"YT",code:"MYT",phone:"262"},{labelES:"Micronesia",label:"Estados Federados de",codeISO2:"FM",code:"FSM",phone:"691"},{labelES:"Moldavia",label:"Moldova",codeISO2:"MD",code:"MDA",phone:"373"},{labelES:"Mongolia",label:"Mongolia",codeISO2:"MN",code:"MNG",phone:"976"},{labelES:"Montenegro",label:"Montenegro",codeISO2:"ME",code:"MNE",phone:"382"},{labelES:"Montserrat",label:"Montserrat",codeISO2:"MS",code:"MSR",phone:"1 664"},{labelES:"Mozambique",label:"Mozambique",codeISO2:"MZ",code:"MOZ",phone:"258"},{labelES:"Namibia",label:"Namibia",codeISO2:"NA",code:"NAM",phone:"264"},{labelES:"Nauru",label:"Nauru",codeISO2:"NR",code:"NRU",phone:"674"},{labelES:"Nepal",label:"Nepal",codeISO2:"NP",code:"NPL",phone:"977"},{labelES:"Nicaragua",label:"Nicaragua",codeISO2:"NI",code:"NIC",phone:"505"},{labelES:"Niger",label:"Niger",codeISO2:"NE",code:"NER",phone:"227"},{labelES:"Nigeria",label:"Nigeria",codeISO2:"NG",code:"NGA",phone:"234"},{labelES:"Niue",label:"Niue",codeISO2:"NU",code:"NIU",phone:"683"},{labelES:"Noruega",label:"Norway",codeISO2:"NO",code:"NOR",phone:"47"},{labelES:"Nueva Caledonia",label:"New Caledonia",codeISO2:"NC",code:"NCL",phone:"687"},{labelES:"Nueva Zelanda",label:"New Zealand",codeISO2:"NZ",code:"NZL",phone:"64"},{labelES:"Omán",label:"Oman",codeISO2:"OM",code:"OMN",phone:"968"},{labelES:"Países Bajos",label:"Netherlands",codeISO2:"NL",code:"NLD",phone:"31"},{labelES:"Pakistán",label:"Pakistan",codeISO2:"PK",code:"PAK",phone:"92"},{labelES:"Palau",label:"Palau",codeISO2:"PW",code:"PLW",phone:"680"},{labelES:"Palestina",label:"Palestine",codeISO2:"PS",code:"PSE",phone:"970"},{labelES:"Panamá",label:"Panama",codeISO2:"PA",code:"PAN",phone:"507"},{labelES:"Papúa Nueva Guinea",label:"Papua New Guinea",codeISO2:"PG",code:"PNG",phone:"675"},{labelES:"Paraguay",label:"Paraguay",codeISO2:"PY",code:"PRY",phone:"595"},{labelES:"Perú",label:"Peru",codeISO2:"PE",code:"PER",phone:"51"},{labelES:"Polinesia Francesa",label:"French Polynesia",codeISO2:"PF",code:"PYF",phone:"689"},{labelES:"Polonia",label:"Poland",codeISO2:"PL",code:"POL",phone:"48"},{labelES:"Portugal",label:"Portugal",codeISO2:"PT",code:"PRT",phone:"351"},{labelES:"Puerto Rico",label:"Puerto Rico",codeISO2:"PR",code:"PRI",phone:"1"},{labelES:"Qatar",label:"Qatar",codeISO2:"QA",code:"QAT",phone:"974"},{labelES:"Reino Unido",label:"United Kingdom",codeISO2:"GB",code:"GBR",phone:"44"},{labelES:"República Centroafricana",label:"Central African Republic",codeISO2:"CF",code:"CAF",phone:"236"},{labelES:"República Checa",label:"Czech Republic",codeISO2:"CZ",code:"CZE",phone:"420"},{labelES:"República Dominicana",label:"Dominican Republic",codeISO2:"DO",code:"DOM",phone:"1 809"},{labelES:"República de Sudán del Sur",label:"South Sudan",codeISO2:"SS",code:"SSD",phone:"211"},{labelES:"Reunión",label:"Réunion",codeISO2:"RE",code:"REU",phone:"262"},{labelES:"Ruanda",label:"Rwanda",codeISO2:"RW",code:"RWA",phone:"250"},{labelES:"Rumanía",label:"Romania",codeISO2:"RO",code:"ROU",phone:"40"},{labelES:"Rusia",label:"Russia",codeISO2:"RU",code:"RUS",phone:"7"},{labelES:"Sahara Occidental",label:"Western Sahara",codeISO2:"EH",code:"ESH",phone:"212"},{labelES:"Samoa",label:"Samoa",codeISO2:"WS",code:"WSM",phone:"685"},{labelES:"Samoa Americana",label:"American Samoa",codeISO2:"AS",code:"ASM",phone:"1 684"},{labelES:"San Bartolomé",label:"Saint Barthélemy",codeISO2:"BL",code:"BLM",phone:"590"},{labelES:"San Cristóbal y Nieves",label:"Saint Kitts and Nevis",codeISO2:"KN",code:"KNA",phone:"1 869"},{labelES:"San Marino",label:"San Marino",codeISO2:"SM",code:"SMR",phone:"378"},{labelES:"San Martín (Francia)",label:"Saint Martin (French part)",codeISO2:"MF",code:"MAF",phone:"1 599"},{labelES:"San Pedro y Miquelón",label:"Saint Pierre and Miquelon",codeISO2:"PM",code:"SPM",phone:"508"},{labelES:"San Vicente y las Granadinas",label:"Saint Vincent and the Grenadines",codeISO2:"VC",code:"VCT",phone:"1 784"},{labelES:"Santa Elena",label:"Ascensión y Tristán de Acuña",codeISO2:"SH",code:"SHN",phone:"290"},{labelES:"Santa Lucía",label:"Saint Lucia",codeISO2:"LC",code:"LCA",phone:"1 758"},{labelES:"Santo Tomé y Príncipe",label:"Sao Tome and Principe",codeISO2:"ST",code:"STP",phone:"239"},{labelES:"Senegal",label:"Senegal",codeISO2:"SN",code:"SEN",phone:"221"},{labelES:"Serbia",label:"Serbia",codeISO2:"RS",code:"SRB",phone:"381"},{labelES:"Seychelles",label:"Seychelles",codeISO2:"SC",code:"SYC",phone:"248"},{labelES:"Sierra Leona",label:"Sierra Leone",codeISO2:"SL",code:"SLE",phone:"232"},{labelES:"Singapur",label:"Singapore",codeISO2:"SG",code:"SGP",phone:"65"},{labelES:"Sint Maarten",label:"Sint Maarten",codeISO2:"SX",code:"SMX",phone:"1 721"},{labelES:"Siria",label:"Syria",codeISO2:"SY",code:"SYR",phone:"963"},{labelES:"Somalia",label:"Somalia",codeISO2:"SO",code:"SOM",phone:"252"},{labelES:"Sri lanka",label:"Sri Lanka",codeISO2:"LK",code:"LKA",phone:"94"},{labelES:"Sudáfrica",label:"South Africa",codeISO2:"ZA",code:"ZAF",phone:"27"},{labelES:"Sudán",label:"Sudan",codeISO2:"SD",code:"SDN",phone:"249"},{labelES:"Suecia",label:"Sweden",codeISO2:"SE",code:"SWE",phone:"46"},{labelES:"Suiza",label:"Switzerland",codeISO2:"CH",code:"CHE",phone:"41"},{labelES:"Surinám",label:"Suriname",codeISO2:"SR",code:"SUR",phone:"597"},{labelES:"Svalbard y Jan Mayen",label:"Svalbard and Jan Mayen",codeISO2:"SJ",code:"SJM",phone:"47"},{labelES:"Swazilandia",label:"Swaziland",codeISO2:"SZ",code:"SWZ",phone:"268"},{labelES:"Tayikistán",label:"Tajikistan",codeISO2:"TJ",code:"TJK",phone:"992"},{labelES:"Tailandia",label:"Thailand",codeISO2:"TH",code:"THA",phone:"66"},{labelES:"Taiwán",label:"Taiwan",codeISO2:"TW",code:"TWN",phone:"886"},{labelES:"Tanzania",label:"Tanzania",codeISO2:"TZ",code:"TZA",phone:"255"},{labelES:"Territorio Británico del Océano Índico",label:"British Indian Ocean Territory",codeISO2:"IO",code:"IOT",phone:"246"},{labelES:"Territorios Australes y Antárticas Franceses",label:"French Southern Territories",codeISO2:"TF",code:"ATF",phone:""},{labelES:"Timor Oriental",label:"East Timor",codeISO2:"TL",code:"TLS",phone:"670"},{labelES:"Togo",label:"Togo",codeISO2:"TG",code:"TGO",phone:"228"},{labelES:"Tokelau",label:"Tokelau",codeISO2:"TK",code:"TKL",phone:"690"},{labelES:"Tonga",label:"Tonga",codeISO2:"TO",code:"TON",phone:"676"},{labelES:"Trinidad y Tobago",label:"Trinidad and Tobago",codeISO2:"TT",code:"TTO",phone:"1 868"},{labelES:"Tunez",label:"Tunisia",codeISO2:"TN",code:"TUN",phone:"216"},{labelES:"Turkmenistán",label:"Turkmenistan",codeISO2:"TM",code:"TKM",phone:"993"},{labelES:"Turquía",label:"Turkey",codeISO2:"TR",code:"TUR",phone:"90"},{labelES:"Tuvalu",label:"Tuvalu",codeISO2:"TV",code:"TUV",phone:"688"},{labelES:"Ucrania",label:"Ukraine",codeISO2:"UA",code:"UKR",phone:"380"},{labelES:"Uganda",label:"Uganda",codeISO2:"UG",code:"UGA",phone:"256"},{labelES:"Uruguay",label:"Uruguay",codeISO2:"UY",code:"URY",phone:"598"},{labelES:"Uzbekistán",label:"Uzbekistan",codeISO2:"UZ",code:"UZB",phone:"998"},{labelES:"Vanuatu",label:"Vanuatu",codeISO2:"VU",code:"VUT",phone:"678"},{labelES:"Venezuela",label:"Venezuela",codeISO2:"VE",code:"VEN",phone:"58"},{labelES:"Vietnam",label:"Vietnam",codeISO2:"VN",code:"VNM",phone:"84"},{labelES:"Wallis y Futuna",label:"Wallis and Futuna",codeISO2:"WF",code:"WLF",phone:"681"},{labelES:"Yemen",label:"Yemen",codeISO2:"YE",code:"YEM",phone:"967"},{labelES:"Yibuti",label:"Djibouti",codeISO2:"DJ",code:"DJI",phone:"253"},{labelES:"Zambia",label:"Zambia",codeISO2:"ZM",code:"ZMB",phone:"260"},{labelES:"Zimbabue",label:"Zimbabwe",codeISO2:"ZW",code:"ZWE",phone:"263"}],hL=({countries:e=Dw,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:a="en",className:o="",translateKey:c})=>{var xe,Le,ie;const{t:u}=ze(),{field:d,fieldState:h}=hr.useController({name:t,control:n,rules:{validate:{}},defaultValue:null}),[m,p]=I.useState(!1),[y,S]=I.useState(""),[b,E]=I.useState(d.value||null),w=I.useRef(null),C=I.useRef(null),A=I.useRef(null),{x:$,y:O,strategy:R,refs:V,context:F,placement:z,middlewareData:Q}=gi({open:m,onOpenChange:p,middleware:[fi(8),hi(),di({padding:8}),No({apply({availableHeight:pe,elements:ke}){Object.assign(ke.floating.style,{maxHeight:`${Math.min(pe-10,300)}px`})},padding:8}),ps({element:C})],placement:"bottom-start",whileElementsMounted:ui}),ne=gs(F),ue=pi(F),{getReferenceProps:ve,getFloatingProps:de}=yi([ne,ue]),{isMounted:re,styles:oe}=vs(F,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),W=(Array.isArray(e)?e:[]).filter(pe=>{if(!y.trim())return!0;const ke=a==="es"&&pe.labelES?pe.labelES.toLowerCase():pe.label.toLowerCase(),ft=pe.code?pe.code.toLowerCase():"";return ke.includes(y.toLowerCase())||ft.includes(y.toLowerCase())}),q=pe=>{E(pe),p(!1),S(""),d.onChange(pe)},M=()=>{p(!m),!m&&w.current&&setTimeout(()=>{var pe;(pe=w.current)==null||pe.focus()},100)},k=()=>{setTimeout(()=>{m||d.onBlur()},200)};I.useEffect(()=>{E(d.value)},[d.value]),I.useEffect(()=>{const pe=ke=>{A.current&&!A.current.contains(ke.target)&&d.onBlur()};return document.addEventListener("mousedown",pe),()=>{document.removeEventListener("mousedown",pe)}},[d]);const Z=pe=>{var ke;return pe?pe.codeISO2?pe.codeISO2.toLowerCase():((ke=pe.code)==null?void 0:ke.toLowerCase())||"":""},ee=(xe=Q.arrow)==null?void 0:xe.x,se=(Le=Q.arrow)==null?void 0:Le.y,G={top:"bottom",right:"left",bottom:"top",left:"right"}[z.split("-")[0]],te=ve({onClick:M,onBlur:k}),he=u(r),ce=u(i),ye=(ie=h.error)==null?void 0:ie.message;return v.jsxs("div",{ref:A,className:`w-full relative flex flex-col gap-8 ${o}`,children:[v.jsx("label",{className:`text-gray-600 font-600 group ${ye&&"!text-red-500"} text-label`,children:he}),v.jsxs("div",{ref:V.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${ye&&"border-red-500 hover:border-red-600"} ${re?"border-blue-400":"border-blue-100"}`,...te,tabIndex:0,children:[b!=null&&b.code?v.jsxs("div",{className:"flex items-center w-full gap-10",children:[Z(b)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Z(b)}.png`,srcSet:`https://flagcdn.com/w40/${Z(b)}.png 2x`,alt:b.label,onError:pe=>{pe.currentTarget.style.display="none"}}),v.jsxs("span",{className:"flex-grow font-600 text-body-m",children:[a==="es"&&b.labelES?b.labelES:b.label,b.code?` (${b.code})`:u("select_country")]})]}):v.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:ce}),v.jsx("svg",{className:`w-16 h-16 transition-transform ${m?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),ye&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(ye,{x:u(c||"")||u(t)})}),re&&v.jsxs("div",{ref:V.setFloating,style:{position:R,top:O??0,left:$??0,...oe},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...de(),children:[v.jsx("div",{ref:C,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ee!=null?`${ee}px`:"",top:se!=null?`${se}px`:"",right:"",bottom:"",[G]:"-2px",borderRight:G==="left"?"1px solid":"none",borderBottom:G==="top"?"1px solid":"none",borderLeft:G==="right"?"1px solid":"none",borderTop:G==="bottom"?"1px solid":"none"}}),v.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:v.jsx("input",{ref:w,type:"text",className:"w-full p-16 text-body-s",placeholder:u("search")+"...",value:y,onChange:pe=>S(pe.target.value),onClick:pe=>pe.stopPropagation(),onBlur:pe=>{pe.stopPropagation()},autoFocus:!0})}),v.jsx("div",{children:W.length>0?v.jsx("ul",{className:"flex flex-col",children:W.map((pe,ke)=>{var wi;const ft=pe.codeISO2?pe.codeISO2.toLowerCase():((wi=pe.code)==null?void 0:wi.toLowerCase())||"";return v.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:dt=>{dt.stopPropagation(),q(pe)},children:[ft&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${ft}.png`,srcSet:`https://flagcdn.com/w40/${ft}.png 2x`,alt:pe.label,onError:dt=>{dt.currentTarget.style.display="none"}}),v.jsxs("span",{children:[a==="es"&&pe.labelES?pe.labelES:pe.label,pe.code?` (${pe.code})`:"Country not found"]})]},`${pe.code}-${ke}`)})}):v.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},mL=({country:e})=>{const t=n=>{var r;return n?n.codeISO2?n.codeISO2.toLowerCase():((r=n.code)==null?void 0:r.toLowerCase())||"":""};return v.jsxs("div",{className:"flex items-center gap-8",children:[v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${t(e)}.png`,srcSet:`https://flagcdn.com/w40/${t(e)}.png 2x`,alt:e.label,onError:n=>{n.currentTarget.style.display="none"}}),v.jsx("p",{className:"text-body-s text-gray-600",children:e.label})]})},pL=({countries:e,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:a="en",className:o=""})=>{const{t:c}=ze();return v.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:u,value:d},fieldState:{error:h}})=>v.jsx(gL,{countries:e,value:d,onChange:u,label:c(r),placeholder:c(i),language:a,error:h==null?void 0:h.message,className:o})})},gL=({countries:e,value:t,onChange:n,label:r="select_a_country",placeholder:i="type_to_search",language:a="en",error:o,className:c=""})=>{var ee,se;const{t:u}=ze(),[d,h]=I.useState(!1),[m,p]=I.useState(""),[y,S]=I.useState(t||null),b=I.useRef(null),E=I.useRef(null),{x:w,y:C,strategy:A,refs:$,context:O,placement:R,middlewareData:V}=gi({open:d,onOpenChange:h,middleware:[fi(8),hi(),di({padding:8}),No({apply({availableHeight:G,elements:te}){Object.assign(te.floating.style,{maxHeight:`${Math.min(G-10,300)}px`})},padding:8}),ps({element:E})],placement:"bottom-start",whileElementsMounted:ui}),F=gs(O),z=pi(O),{getReferenceProps:Q,getFloatingProps:ne}=yi([F,z]),{isMounted:ue,styles:ve}=vs(O,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),re=(Array.isArray(e)?e:[]).filter(G=>{if(!m.trim())return!0;const te=a==="es"&&G.labelES?G.labelES.toLowerCase():G.label.toLowerCase(),he=G.code?G.code.toLowerCase():"";return te.includes(m.toLowerCase())||he.includes(m.toLowerCase())}),oe=G=>{S(G),h(!1),p(""),n(G)},j=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var G;(G=b.current)==null||G.focus()},100)};I.useEffect(()=>{S(t)},[t]);const W=G=>{var te;return G?G.codeISO2?G.codeISO2.toLowerCase():((te=G.code)==null?void 0:te.toLowerCase())||"":""},q=(ee=V.arrow)==null?void 0:ee.x,M=(se=V.arrow)==null?void 0:se.y,k={top:"bottom",right:"left",bottom:"top",left:"right"}[R.split("-")[0]],Z=Q({onClick:j});return v.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[v.jsx("label",{className:`text-gray-600 font-600 group ${o&&"!text-red-500"} text-label`,children:r}),v.jsxs("div",{ref:$.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${o&&"border-red-500 hover:border-red-600"} ${ue?"border-blue-400":"border-blue-100"}`,...Z,children:[y!=null&&y.code?v.jsxs("div",{className:"flex items-center w-full",children:[W(y)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${W(y)}.png`,srcSet:`https://flagcdn.com/w40/${W(y)}.png 2x`,alt:y.label,onError:G=>{G.currentTarget.style.display="none"}}),v.jsxs("span",{className:"flex-grow",children:[a==="es"&&y.labelES?y.labelES:y.label,y.code?` (${y.code})`:u("select_country")]})]}):v.jsx("span",{className:"text-gray-500",children:i}),v.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),o&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:o}),ue&&v.jsxs("div",{ref:$.setFloating,style:{position:A,top:C??0,left:w??0,...ve},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ne(),children:[v.jsx("div",{ref:E,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:q!=null?`${q}px`:"",top:M!=null?`${M}px`:"",right:"",bottom:"",[k]:"-2px",borderRight:k==="left"?"1px solid":"none",borderBottom:k==="top"?"1px solid":"none",borderLeft:k==="right"?"1px solid":"none",borderTop:k==="bottom"?"1px solid":"none"}}),v.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:v.jsx("input",{ref:b,type:"text",className:"w-full p-16",placeholder:u("search")+"...",value:m,onChange:G=>p(G.target.value),onClick:G=>G.stopPropagation(),autoFocus:!0})}),v.jsx("div",{children:re.length>0?v.jsx("ul",{className:"flex flex-col",children:re.map((G,te)=>{var ce;const he=G.codeISO2?G.codeISO2.toLowerCase():((ce=G.code)==null?void 0:ce.toLowerCase())||"";return v.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:ye=>{ye.stopPropagation(),oe(G)},children:[he&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${he}.png`,srcSet:`https://flagcdn.com/w40/${he}.png 2x`,alt:G.label,onError:ye=>{ye.currentTarget.style.display="none"}}),v.jsxs("span",{children:[a==="es"&&G.labelES?G.labelES:G.label,G.code?` (${G.code})`:"Country not found"]})]},`${G.code}-${te}`)})}):v.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No countries found"})})]})]})},uh=({variant:e="filled",color:t,size:n="base",shadow:r="none",icon:i,iconProps:a={},children:o,className:c,...u})=>{const{defaultColorScheme:d}=ze(),h=t||d;return v.jsx("button",{...u,className:`${DN(e,h,n,r)} ${c}`,children:i?v.jsx(De,{...a,className:ko(n),icon:i}):o})};function yL(e){return e!==null&&typeof e=="object"&&"name"in e&&"size"in e&&"type"in e&&typeof e.name=="string"&&typeof e.size=="number"&&typeof e.type=="string"}const vL=({src:e,alt:t,isEditable:n=!1,onChange:r,className:i="",name:a,control:o,user:c})=>{const[u,d]=I.useState(e||null),[h,m]=I.useState(!!e),p=I.useRef(null),y=hr.useController({name:a,control:o}),S=!!o;I.useEffect(()=>{if(S){const C=y==null?void 0:y.field.value;if(yL(C)){const A=URL.createObjectURL(C);return d(A),m(!0),()=>URL.revokeObjectURL(A)}else typeof C=="string"&&C&&C!==e?(d(C),m(!0)):e?(d(e),m(!0)):(d(null),m(!1))}},[y==null?void 0:y.field.value,e]);const b=()=>{var C;n&&((C=p.current)==null||C.click())},E=C=>{var $;const A=($=C.target.files)==null?void 0:$[0];if(A){const O=URL.createObjectURL(A);d(O),m(!0),S&&(y==null||y.field.onChange(A)),r&&r(A)}},w=C=>{C.stopPropagation(),d(null),m(!1),p.current&&(p.current.value=""),S&&(y==null||y.field.onChange(null)),r&&r(null)};return v.jsxs("div",{className:"relative flex items-center gap-10",children:[n&&h&&v.jsx("button",{type:"button",onClick:w,className:"bg-red-500 text-white rounded-full w-20 h-20 flex items-center justify-center hover:bg-red-600 focus:outline-none","aria-label":"Eliminar imagen",children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),v.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),v.jsxs("div",{className:`relative flex items-center justify-center h-40 w-40 ${n?"cursor-pointer hover:opacity-80":""} ${i}`,onClick:b,children:[u?v.jsx("img",{src:u,alt:t,className:"w-full h-full object-cover rounded-full"}):v.jsx(cw,{size:60,user:c}),n&&v.jsxs(v.Fragment,{children:[v.jsx("input",{type:"file",ref:C=>{p.current=C,y&&y.field.ref(C)},onChange:E,onBlur:y==null?void 0:y.field.onBlur,accept:"image/*",className:"hidden"}),!h&&v.jsx("div",{className:"absolute bottom-0 right-0 bg-blue-100 rounded-full h-20 w-20 flex items-center justify-center",children:v.jsx(De,{icon:UR,className:"text-blue-500"})})]})]})]})},bL=ch({name:Rr(),base64:Rr()}),xL=({imageUrl:e,title:t,subtitle:n})=>v.jsxs("section",{className:"gap-10 flex flex-col items-center justify-center",children:[v.jsx("img",{src:e,alt:t,width:100,height:100}),v.jsx("h1",{className:"font-bold text-2xl align-middle",children:t}),v.jsx("p",{className:"text-lg align-middle font-semibold text-gray-500",children:n})]}),wL=e=>{switch(e){case"warning":return"bg-yellow-50 border-2 border-yellow-500";case"error":return"bg-red-50 border-2 border-red-500";default:return"bg-blue-50 border-2 border-blue-500"}},SL=({description:e,title:t,className:n,icon:r,type:i="informative"})=>v.jsxs("div",{className:`flex items-center gap-12 p-12 w-full ${wL(i)} rounded-lg ${n}`,children:[r?v.jsx(De,{icon:r,className:"text-blue-500 min-h-20 h-20"}):v.jsx(De,{icon:nN,className:"text-blue-500 min-h-20 h-20"}),v.jsxs("div",{className:"flex flex-col gap-4",children:[v.jsx("h4",{className:"text-body-s font-500 text-black leading-none",children:t}),v.jsx("p",{className:"text-gray-600 text-body-s leading-none",children:e})]})]}),TL=({size:e=16,strokeWidth:t=2,color:n="#1DA696",...r})=>{const i=(e-t)/2,a=2*Math.PI*i,{className:o="",...c}=r;return v.jsx("div",{...c,className:`relative flex items-center justify-center ${o}`,children:v.jsx("svg",{height:e,width:e,className:"animate-spin",children:v.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:a+" "+a,strokeDashoffset:a/4,r:i,cx:e/2,cy:e/2})})})},EL=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:a=!1,leftSide:o})=>{const{field:{value:c="",onChange:u,ref:d,onBlur:h},fieldState:{error:m}}=hr.useController({name:n,control:t}),[p,y]=I.useState(!1),{t:S}=ze();return v.jsxs("label",{className:`flex flex-col group gap-8 select-none ${a&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${m&&"!text-red-500"} text-label ${a&&"text-gray-300"}`,children:e}),v.jsxs("label",{htmlFor:n,className:`
|
|
712
|
+
attempted value: ${a}
|
|
713
|
+
`+(c!==a?`result of cast: ${c}`:""))}return o}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,o)=>o.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,i){let{path:o,originalValue:a=t,strict:c=this.spec.strict}=n,u=t;c||(u=this._cast(u,Object.assign({assert:!1},n)));let d=[];for(let h of Object.values(this.internalTests))h&&d.push(h);this.runTests({path:o,value:u,originalValue:a,options:n,tests:d},r,h=>{if(h.length)return i(h,u);this.runTests({path:o,value:u,originalValue:a,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:o,value:a,originalValue:c,path:u,options:d}=t,h=b=>{i||(i=!0,n(b,a))},m=b=>{i||(i=!0,r(b,a))},p=o.length,y=[];if(!p)return m([]);let S={value:a,originalValue:c,path:u,options:d,schema:this};for(let b=0;b<o.length;b++){const E=o[b];E(S,h,function(C){C&&(Array.isArray(C)?y.push(...C):y.push(C)),--p<=0&&m(y)})}}asNestedTest({key:t,index:n,parent:r,parentPath:i,originalParent:o,options:a}){const c=t??n;if(c==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof c=="number";let d=r[c];const h=Object.assign({},a,{strict:!0,parent:r,value:d,originalValue:o[c],key:void 0,[u?"index":"key"]:c,path:u||c.includes(".")?`${i||""}[${u?c:`"${c}"`}]`:(i?`${i}.`:"")+t});return(m,p,y)=>this.resolve(h)._validate(d,h,p,y)}validate(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),o=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return new Promise((a,c)=>i._validate(t,n,(u,d)=>{jt.isError(u)&&(u.value=d),c(u)},(u,d)=>{u.length?c(new jt(u,d,void 0,void 0,o)):a(d)}))}validateSync(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),o,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return i._validate(t,Object.assign({},n,{sync:!0}),(c,u)=>{throw jt.isError(c)&&(c.value=u),c},(c,u)=>{if(c.length)throw new jt(c,t,void 0,void 0,a);o=u}),o}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(jt.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(jt.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):ws(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=xs({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=xs({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Fn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Fn.notNull){return this.nullability(!1,t)}required(t=Fn.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Fn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=xs(n),o=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(o||a.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=ww(t).map(o=>new bi(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new ml(i,n):ml.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=xs({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=Fn.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=xs({message:n,name:"oneOf",skipAbsent:!0,test(i){let o=this.schema._whitelist,a=o.resolveAll(this.resolve);return a.includes(i)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:a}})}}),r}notOneOf(t,n=Fn.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=xs({message:n,name:"notOneOf",test(i){let o=this.schema._blacklist,a=o.resolveAll(this.resolve);return a.includes(i)?this.createError({params:{values:Array.from(o).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:o,nullable:a}=n.spec;return{meta:i,label:r,optional:o,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,d,h)=>h.findIndex(m=>m.name===u.name)===d)}}}Vn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Vn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:a}=KN(this,t,n,r.context);return a[e](i&&i[o],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Vn.prototype[e]=Vn.prototype.oneOf;for(const e of["not","nope"])Vn.prototype[e]=Vn.prototype.notOneOf;const XN=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function ZN(e){const t=ah(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function ah(e){var t,n;const r=XN.exec(e);return r?{year:nr(r[1]),month:nr(r[2],1)-1,day:nr(r[3],1),hour:nr(r[4]),minute:nr(r[5]),second:nr(r[6]),millisecond:r[7]?nr(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:nr(r[10]),minuteOffset:nr(r[11])}:null}function nr(e,t=0){return Number(e)||t}let JN=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,QN=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,eL=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,tL="^\\d{4}-\\d{2}-\\d{2}",nL="\\d{2}:\\d{2}:\\d{2}",rL="(([+-]\\d{2}(:?\\d{2})?)|Z)",iL=new RegExp(`${tL}T${nL}(\\.\\d+)?${rL}$`),sL=e=>xi(e)||e===e.trim(),oL={}.toString();function Rr(){return new Pw}class Pw extends Vn{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===oL?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Fn.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=Ft.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=Ft.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=Ft.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,o;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:o}=n:i=n),this.test({name:o||"matches",message:i||Ft.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=Ft.email){return this.matches(JN,{name:"email",message:t,excludeEmptyString:!0})}url(t=Ft.url){return this.matches(QN,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Ft.uuid){return this.matches(eL,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,i;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:i=void 0}=t:n=t),this.matches(iL,{name:"datetime",message:n||Ft.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Ft.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:o=>{if(!o||r)return!0;const a=ah(o);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||Ft.datetime_precision,params:{precision:i},skipAbsent:!0,test:o=>{if(!o||i==null)return!0;const a=ah(o);return a?a.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Ft.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:sL})}lowercase(t=Ft.lowercase){return this.transform(n=>xi(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>xi(n)||n===n.toLowerCase()})}uppercase(t=Ft.uppercase){return this.transform(n=>xi(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>xi(n)||n===n.toUpperCase()})}}Rr.prototype=Pw.prototype;let aL=new Date(""),lL=e=>Object.prototype.toString.call(e)==="[object Date]";class lh extends Vn{constructor(){super({type:"date",check(t){return lL(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=ZN(t),isNaN(t)?lh.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(bi.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=sh.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(t,n=sh.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}lh.INVALID_DATE=aL;function cL(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([a,c])=>`${a}-${c}`));function o(a,c){let u=vi.split(a)[0];r.add(u),i.has(`${c}-${u}`)||n.push([c,u])}for(const a of Object.keys(e)){let c=e[a];r.add(a),bi.isRef(c)&&c.isSibling?o(c.path,a):oh(c)&&"deps"in c&&c.deps.forEach(u=>o(u,a))}return FN.array(Array.from(r),n).reverse()}function Aw(e,t){let n=1/0;return e.some((r,i)=>{var o;if((o=t.path)!=null&&o.includes(r))return n=i,!0}),n}function Mw(e){return(t,n)=>Aw(e,t)-Aw(e,n)}const uL=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function yl(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=yl(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=yl(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(yl)}):"optional"in e?e.optional():e}const fL=(e,t)=>{const n=[...vi.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=vi.getter(vi.join(n),!0)(e);return!!(i&&r in i)};let Ow=e=>Object.prototype.toString.call(e)==="[object Object]";function _w(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const dL=Mw([]);function ch(e){return new Iw(e)}class Iw extends Vn{constructor(t){super({type:"object",check(n){return Ow(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=dL,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault(n);if(!this._typeCheck(i))return i;let o=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,c=[].concat(this._nodes,Object.keys(i).filter(m=>!this._nodes.includes(m))),u={},d=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),h=!1;for(const m of c){let p=o[m],y=m in i;if(p){let S,b=i[m];d.path=(n.path?`${n.path}.`:"")+m,p=p.resolve({value:b,context:n.context,parent:u});let E=p instanceof Vn?p.spec:void 0,w=E==null?void 0:E.strict;if(E!=null&&E.strip){h=h||m in i;continue}S=!n.__validating||!w?p.cast(i[m],d):i[m],S!==void 0&&(u[m]=S)}else y&&!a&&(u[m]=i[m]);(y!==m in u||u[m]!==i[m])&&(h=!0)}return h?u:i}_validate(t,n={},r,i){let{from:o=[],originalValue:a=t,recursive:c=this.spec.recursive}=n;n.from=[{schema:this,value:a},...o],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(u,d)=>{if(!c||!Ow(d)){i(u,d);return}a=a||d;let h=[];for(let m of this._nodes){let p=this.fields[m];!p||bi.isRef(p)||h.push(p.asNestedTest({options:n,key:m,parent:d,parentPath:n.path,originalParent:a}))}this.runTests({tests:h,value:d,originalValue:a,options:n},r,m=>{i(m.sort(this._sortErrors).concat(u),d)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,o]of Object.entries(this.fields)){const a=r[i];r[i]=a===void 0?o:a}return n.withMutation(i=>i.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var i;const o=this.fields[r];let a=t;(i=a)!=null&&i.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=o&&"getDefault"in o?o.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=cL(t,n),r._sortErrors=Mw(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),i)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return yl(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,i])=>t.includes(r)&&t.includes(i)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let i=vi.getter(t,!0);return this.transform(o=>{if(!o)return o;let a=o;return fL(o,t)&&(a=Object.assign({},o),r||delete a[t],a[n]=i(o)),a})}json(){return this.transform(uL)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||hl.exact,test(n){if(n==null)return!0;const r=_w(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=hl.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const o=_w(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=hl.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[t(i)]=n[i];return r})}camelCase(){return this.transformKeys(ih.camelCase)}snakeCase(){return this.transformKeys(ih.snakeCase)}constantCase(){return this.transformKeys(t=>ih.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[o,a]of Object.entries(n.fields)){var i;let c=t;(i=c)!=null&&i.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[o]})),r.fields[o]=a.describe(c)}return r}}ch.prototype=Iw.prototype,ch().shape({labelES:Rr().required(),label:Rr().required(),code:Rr().required(),codeISO2:Rr().required(),phone:Rr().required()});const Dw=[{labelES:"Afganistán",label:"Afghanistan",codeISO2:"AF",code:"AFG",phone:"93"},{labelES:"Albania",label:"Albania",codeISO2:"AL",code:"ALB",phone:"355"},{labelES:"Alemania",label:"Germany",codeISO2:"DE",code:"DEU",phone:"49"},{labelES:"Andorra",label:"Andorra",codeISO2:"AD",code:"AND",phone:"376"},{labelES:"Angola",label:"Angola",codeISO2:"AO",code:"AGO",phone:"244"},{labelES:"Anguila",label:"Anguilla",codeISO2:"AI",code:"AIA",phone:"1 264"},{labelES:"Antártida",label:"Antarctica",codeISO2:"AQ",code:"ATA",phone:"672"},{labelES:"Antigua y Barbuda",label:"Antigua and Barbuda",codeISO2:"AG",code:"ATG",phone:"1 268"},{labelES:"Arabia Saudita",label:"Saudi Arabia",codeISO2:"SA",code:"SAU",phone:"966"},{labelES:"Argelia",label:"Algeria",codeISO2:"DZ",code:"DZA",phone:"213"},{labelES:"Argentina",label:"Argentina",codeISO2:"AR",code:"ARG",phone:"54"},{labelES:"Armenia",label:"Armenia",codeISO2:"AM",code:"ARM",phone:"374"},{labelES:"Aruba",label:"Aruba",codeISO2:"AW",code:"ABW",phone:"297"},{labelES:"Australia",label:"Australia",codeISO2:"AU",code:"AUS",phone:"61"},{labelES:"Austria",label:"Austria",codeISO2:"AT",code:"AUT",phone:"43"},{labelES:"Azerbaiyán",label:"Azerbaijan",codeISO2:"AZ",code:"AZE",phone:"994"},{labelES:"Bélgica",label:"Belgium",codeISO2:"BE",code:"BEL",phone:"32"},{labelES:"Bahamas",label:"Bahamas",codeISO2:"BS",code:"BHS",phone:"1 242"},{labelES:"Bahrein",label:"Bahrain",codeISO2:"BH",code:"BHR",phone:"973"},{labelES:"Bangladesh",label:"Bangladesh",codeISO2:"BD",code:"BGD",phone:"880"},{labelES:"Barbados",label:"Barbados",codeISO2:"BB",code:"BRB",phone:"1 246"},{labelES:"Belice",label:"Belize",codeISO2:"BZ",code:"BLZ",phone:"501"},{labelES:"Benín",label:"Benin",codeISO2:"BJ",code:"BEN",phone:"229"},{labelES:"Bhután",label:"Bhutan",codeISO2:"BT",code:"BTN",phone:"975"},{labelES:"Bielorrusia",label:"Belarus",codeISO2:"BY",code:"BLR",phone:"375"},{labelES:"Birmania",label:"Myanmar",codeISO2:"MM",code:"MMR",phone:"95"},{labelES:"Bolivia",label:"Bolivia",codeISO2:"BO",code:"BOL",phone:"591"},{labelES:"Bosnia y Herzegovina",label:"Bosnia and Herzegovina",codeISO2:"BA",code:"BIH",phone:"387"},{labelES:"Botsuana",label:"Botswana",codeISO2:"BW",code:"BWA",phone:"267"},{labelES:"Brasil",label:"Brazil",codeISO2:"BR",code:"BRA",phone:"55"},{labelES:"Brunéi",label:"Brunei",codeISO2:"BN",code:"BRN",phone:"673"},{labelES:"Bulgaria",label:"Bulgaria",codeISO2:"BG",code:"BGR",phone:"359"},{labelES:"Burkina Faso",label:"Burkina Faso",codeISO2:"BF",code:"BFA",phone:"226"},{labelES:"Burundi",label:"Burundi",codeISO2:"BI",code:"BDI",phone:"257"},{labelES:"Cabo Verde",label:"Cape Verde",codeISO2:"CV",code:"CPV",phone:"238"},{labelES:"Camboya",label:"Cambodia",codeISO2:"KH",code:"KHM",phone:"855"},{labelES:"Camerún",label:"Cameroon",codeISO2:"CM",code:"CMR",phone:"237"},{labelES:"Canadá",label:"Canada",codeISO2:"CA",code:"CAN",phone:"1"},{labelES:"Chad",label:"Chad",codeISO2:"TD",code:"TCD",phone:"235"},{labelES:"Chile",label:"Chile",codeISO2:"CL",code:"CHL",phone:"56"},{labelES:"China",label:"China",codeISO2:"CN",code:"CHN",phone:"86"},{labelES:"Chipre",label:"Cyprus",codeISO2:"CY",code:"CYP",phone:"357"},{labelES:"Ciudad del Vaticano",label:"Vatican City State",codeISO2:"VA",code:"VAT",phone:"39"},{labelES:"Colombia",label:"Colombia",codeISO2:"CO",code:"COL",phone:"57"},{labelES:"Comoras",label:"Comoros",codeISO2:"KM",code:"COM",phone:"269"},{labelES:"República del Congo",label:"Republic of the Congo",codeISO2:"CG",code:"COG",phone:"242"},{labelES:"República Democrática del Congo",label:"Democratic Republic of the Congo",codeISO2:"CD",code:"COD",phone:"243"},{labelES:"Corea del Norte",label:"North Korea",codeISO2:"KP",code:"PRK",phone:"850"},{labelES:"Corea del Sur",label:"South Korea",codeISO2:"KR",code:"KOR",phone:"82"},{labelES:"Costa de Marfil",label:"Ivory Coast",codeISO2:"CI",code:"CIV",phone:"225"},{labelES:"Costa Rica",label:"Costa Rica",codeISO2:"CR",code:"CRI",phone:"506"},{labelES:"Croacia",label:"Croatia",codeISO2:"HR",code:"HRV",phone:"385"},{labelES:"Cuba",label:"Cuba",codeISO2:"CU",code:"CUB",phone:"53"},{labelES:"Curazao",label:"Curaçao",codeISO2:"CW",code:"CWU",phone:"5999"},{labelES:"Dinamarca",label:"Denmark",codeISO2:"DK",code:"DNK",phone:"45"},{labelES:"Dominica",label:"Dominica",codeISO2:"DM",code:"DMA",phone:"1 767"},{labelES:"Ecuador",label:"Ecuador",codeISO2:"EC",code:"ECU",phone:"593"},{labelES:"Egipto",label:"Egypt",codeISO2:"EG",code:"EGY",phone:"20"},{labelES:"El Salvador",label:"El Salvador",codeISO2:"SV",code:"SLV",phone:"503"},{labelES:"Emiratos Árabes Unidos",label:"United Arab Emirates",codeISO2:"AE",code:"ARE",phone:"971"},{labelES:"Eritrea",label:"Eritrea",codeISO2:"ER",code:"ERI",phone:"291"},{labelES:"Eslovaquia",label:"Slovakia",codeISO2:"SK",code:"SVK",phone:"421"},{labelES:"Eslovenia",label:"Slovenia",codeISO2:"SI",code:"SVN",phone:"386"},{labelES:"España",label:"Spain",codeISO2:"ES",code:"ESP",phone:"34"},{labelES:"Estados Unidos de América",label:"United States of America",codeISO2:"US",code:"USA",phone:"1"},{labelES:"Estonia",label:"Estonia",codeISO2:"EE",code:"EST",phone:"372"},{labelES:"Etiopía",label:"Ethiopia",codeISO2:"ET",code:"ETH",phone:"251"},{labelES:"Filipinas",label:"Philippines",codeISO2:"PH",code:"PHL",phone:"63"},{labelES:"Finlandia",label:"Finland",codeISO2:"FI",code:"FIN",phone:"358"},{labelES:"Fiyi",label:"Fiji",codeISO2:"FJ",code:"FJI",phone:"679"},{labelES:"Francia",label:"France",codeISO2:"FR",code:"FRA",phone:"33"},{labelES:"Gabón",label:"Gabon",codeISO2:"GA",code:"GAB",phone:"241"},{labelES:"Gambia",label:"Gambia",codeISO2:"GM",code:"GMB",phone:"220"},{labelES:"Georgia",label:"Georgia",codeISO2:"GE",code:"GEO",phone:"995"},{labelES:"Ghana",label:"Ghana",codeISO2:"GH",code:"GHA",phone:"233"},{labelES:"Gibraltar",label:"Gibraltar",codeISO2:"GI",code:"GIB",phone:"350"},{labelES:"Granada",label:"Grenada",codeISO2:"GD",code:"GRD",phone:"1 473"},{labelES:"Grecia",label:"Greece",codeISO2:"GR",code:"GRC",phone:"30"},{labelES:"Groenlandia",label:"Greenland",codeISO2:"GL",code:"GRL",phone:"299"},{labelES:"Guadalupe",label:"Guadeloupe",codeISO2:"GP",code:"GLP",phone:"590"},{labelES:"Guam",label:"Guam",codeISO2:"GU",code:"GUM",phone:"1 671"},{labelES:"Guatemala",label:"Guatemala",codeISO2:"GT",code:"GTM",phone:"502"},{labelES:"Guayana Francesa",label:"French Guiana",codeISO2:"GF",code:"GUF",phone:"594"},{labelES:"Guernsey",label:"Guernsey",codeISO2:"GG",code:"GGY",phone:"44"},{labelES:"Guinea",label:"Guinea",codeISO2:"GN",code:"GIN",phone:"224"},{labelES:"Guinea Ecuatorial",label:"Equatorial Guinea",codeISO2:"GQ",code:"GNQ",phone:"240"},{labelES:"Guinea-Bissau",label:"Guinea-Bissau",codeISO2:"GW",code:"GNB",phone:"245"},{labelES:"Guyana",label:"Guyana",codeISO2:"GY",code:"GUY",phone:"592"},{labelES:"Haití",label:"Haiti",codeISO2:"HT",code:"HTI",phone:"509"},{labelES:"Honduras",label:"Honduras",codeISO2:"HN",code:"HND",phone:"504"},{labelES:"Hong kong",label:"Hong Kong",codeISO2:"HK",code:"HKG",phone:"852"},{labelES:"Hungría",label:"Hungary",codeISO2:"HU",code:"HUN",phone:"36"},{labelES:"India",label:"India",codeISO2:"IN",code:"IND",phone:"91"},{labelES:"Indonesia",label:"Indonesia",codeISO2:"ID",code:"IDN",phone:"62"},{labelES:"Irán",label:"Iran",codeISO2:"IR",code:"IRN",phone:"98"},{labelES:"Irak",label:"Iraq",codeISO2:"IQ",code:"IRQ",phone:"964"},{labelES:"Irlanda",label:"Ireland",codeISO2:"IE",code:"IRL",phone:"353"},{labelES:"Isla Bouvet",label:"Bouvet Island",codeISO2:"BV",code:"BVT",phone:""},{labelES:"Isla de Man",label:"Isle of Man",codeISO2:"IM",code:"IMN",phone:"44"},{labelES:"Isla de Navidad",label:"Christmas Island",codeISO2:"CX",code:"CXR",phone:"61"},{labelES:"Isla Norfolk",label:"Norfolk Island",codeISO2:"NF",code:"NFK",phone:"672"},{labelES:"Islandia",label:"Iceland",codeISO2:"IS",code:"ISL",phone:"354"},{labelES:"Islas Bermudas",label:"Bermuda Islands",codeISO2:"BM",code:"BMU",phone:"1 441"},{labelES:"Islas Caimán",label:"Cayman Islands",codeISO2:"KY",code:"CYM",phone:"1 345"},{labelES:"Islas Cocos (Keeling)",label:"Cocos (Keeling) Islands",codeISO2:"CC",code:"CCK",phone:"61"},{labelES:"Islas Cook",label:"Cook Islands",codeISO2:"CK",code:"COK",phone:"682"},{labelES:"Islas de Åland",label:"Åland Islands",codeISO2:"AX",code:"ALA",phone:"358"},{labelES:"Islas Feroe",label:"Faroe Islands",codeISO2:"FO",code:"FRO",phone:"298"},{labelES:"Islas Georgias del Sur y Sandwich del Sur",label:"South Georgia and the South Sandwich Islands",codeISO2:"GS",code:"SGS",phone:"500"},{labelES:"Islas Heard y McDonald",label:"Heard Island and McDonald Islands",codeISO2:"HM",code:"HMD",phone:""},{labelES:"Islas Maldivas",label:"Maldives",codeISO2:"MV",code:"MDV",phone:"960"},{labelES:"Islas Malvinas",label:"Falkland Islands (Malvinas)",codeISO2:"FK",code:"FLK",phone:"500"},{labelES:"Islas Marianas del Norte",label:"Northern Mariana Islands",codeISO2:"MP",code:"MNP",phone:"1 670"},{labelES:"Islas Marshall",label:"Marshall Islands",codeISO2:"MH",code:"MHL",phone:"692"},{labelES:"Islas Pitcairn",label:"Pitcairn Islands",codeISO2:"PN",code:"PCN",phone:"870"},{labelES:"Islas Salomón",label:"Solomon Islands",codeISO2:"SB",code:"SLB",phone:"677"},{labelES:"Islas Turcas y Caicos",label:"Turks and Caicos Islands",codeISO2:"TC",code:"TCA",phone:"1 649"},{labelES:"Islas Ultramarinas Menores de Estados Unidos",label:"United States Minor Outlying Islands",codeISO2:"UM",code:"UMI",phone:"246"},{labelES:"Islas Vírgenes Británicas",label:"Virgin Islands",codeISO2:"VG",code:"VGB",phone:"1 284"},{labelES:"Islas Vírgenes de los Estados Unidos",label:"United States Virgin Islands",codeISO2:"VI",code:"VIR",phone:"1 340"},{labelES:"Israel",label:"Israel",codeISO2:"IL",code:"ISR",phone:"972"},{labelES:"Italia",label:"Italy",codeISO2:"IT",code:"ITA",phone:"39"},{labelES:"Jamaica",label:"Jamaica",codeISO2:"JM",code:"JAM",phone:"1 876"},{labelES:"Japón",label:"Japan",codeISO2:"JP",code:"JPN",phone:"81"},{labelES:"Jersey",label:"Jersey",codeISO2:"JE",code:"JEY",phone:"44"},{labelES:"Jordania",label:"Jordan",codeISO2:"JO",code:"JOR",phone:"962"},{labelES:"Kazajistán",label:"Kazakhstan",codeISO2:"KZ",code:"KAZ",phone:"7"},{labelES:"Kenia",label:"Kenya",codeISO2:"KE",code:"KEN",phone:"254"},{labelES:"Kirguistán",label:"Kyrgyzstan",codeISO2:"KG",code:"KGZ",phone:"996"},{labelES:"Kiribati",label:"Kiribati",codeISO2:"KI",code:"KIR",phone:"686"},{labelES:"Kuwait",label:"Kuwait",codeISO2:"KW",code:"KWT",phone:"965"},{labelES:"Líbano",label:"Lebanon",codeISO2:"LB",code:"LBN",phone:"961"},{labelES:"Laos",label:"Laos",codeISO2:"LA",code:"LAO",phone:"856"},{labelES:"Lesoto",label:"Lesotho",codeISO2:"LS",code:"LSO",phone:"266"},{labelES:"Letonia",label:"Latvia",codeISO2:"LV",code:"LVA",phone:"371"},{labelES:"Liberia",label:"Liberia",codeISO2:"LR",code:"LBR",phone:"231"},{labelES:"Libia",label:"Libya",codeISO2:"LY",code:"LBY",phone:"218"},{labelES:"Liechtenstein",label:"Liechtenstein",codeISO2:"LI",code:"LIE",phone:"423"},{labelES:"Lituania",label:"Lithuania",codeISO2:"LT",code:"LTU",phone:"370"},{labelES:"Luxemburgo",label:"Luxembourg",codeISO2:"LU",code:"LUX",phone:"352"},{labelES:"México",label:"Mexico",codeISO2:"MX",code:"MEX",phone:"52"},{labelES:"Mónaco",label:"Monaco",codeISO2:"MC",code:"MCO",phone:"377"},{labelES:"Macao",label:"Macao",codeISO2:"MO",code:"MAC",phone:"853"},{labelES:"Macedônia",label:"Macedonia",codeISO2:"MK",code:"MKD",phone:"389"},{labelES:"Madagascar",label:"Madagascar",codeISO2:"MG",code:"MDG",phone:"261"},{labelES:"Malasia",label:"Malaysia",codeISO2:"MY",code:"MYS",phone:"60"},{labelES:"Malawi",label:"Malawi",codeISO2:"MW",code:"MWI",phone:"265"},{labelES:"Mali",label:"Mali",codeISO2:"ML",code:"MLI",phone:"223"},{labelES:"Malta",label:"Malta",codeISO2:"MT",code:"MLT",phone:"356"},{labelES:"Marruecos",label:"Morocco",codeISO2:"MA",code:"MAR",phone:"212"},{labelES:"Martinica",label:"Martinique",codeISO2:"MQ",code:"MTQ",phone:"596"},{labelES:"Mauricio",label:"Mauritius",codeISO2:"MU",code:"MUS",phone:"230"},{labelES:"Mauritania",label:"Mauritania",codeISO2:"MR",code:"MRT",phone:"222"},{labelES:"Mayotte",label:"Mayotte",codeISO2:"YT",code:"MYT",phone:"262"},{labelES:"Micronesia",label:"Estados Federados de",codeISO2:"FM",code:"FSM",phone:"691"},{labelES:"Moldavia",label:"Moldova",codeISO2:"MD",code:"MDA",phone:"373"},{labelES:"Mongolia",label:"Mongolia",codeISO2:"MN",code:"MNG",phone:"976"},{labelES:"Montenegro",label:"Montenegro",codeISO2:"ME",code:"MNE",phone:"382"},{labelES:"Montserrat",label:"Montserrat",codeISO2:"MS",code:"MSR",phone:"1 664"},{labelES:"Mozambique",label:"Mozambique",codeISO2:"MZ",code:"MOZ",phone:"258"},{labelES:"Namibia",label:"Namibia",codeISO2:"NA",code:"NAM",phone:"264"},{labelES:"Nauru",label:"Nauru",codeISO2:"NR",code:"NRU",phone:"674"},{labelES:"Nepal",label:"Nepal",codeISO2:"NP",code:"NPL",phone:"977"},{labelES:"Nicaragua",label:"Nicaragua",codeISO2:"NI",code:"NIC",phone:"505"},{labelES:"Niger",label:"Niger",codeISO2:"NE",code:"NER",phone:"227"},{labelES:"Nigeria",label:"Nigeria",codeISO2:"NG",code:"NGA",phone:"234"},{labelES:"Niue",label:"Niue",codeISO2:"NU",code:"NIU",phone:"683"},{labelES:"Noruega",label:"Norway",codeISO2:"NO",code:"NOR",phone:"47"},{labelES:"Nueva Caledonia",label:"New Caledonia",codeISO2:"NC",code:"NCL",phone:"687"},{labelES:"Nueva Zelanda",label:"New Zealand",codeISO2:"NZ",code:"NZL",phone:"64"},{labelES:"Omán",label:"Oman",codeISO2:"OM",code:"OMN",phone:"968"},{labelES:"Países Bajos",label:"Netherlands",codeISO2:"NL",code:"NLD",phone:"31"},{labelES:"Pakistán",label:"Pakistan",codeISO2:"PK",code:"PAK",phone:"92"},{labelES:"Palau",label:"Palau",codeISO2:"PW",code:"PLW",phone:"680"},{labelES:"Palestina",label:"Palestine",codeISO2:"PS",code:"PSE",phone:"970"},{labelES:"Panamá",label:"Panama",codeISO2:"PA",code:"PAN",phone:"507"},{labelES:"Papúa Nueva Guinea",label:"Papua New Guinea",codeISO2:"PG",code:"PNG",phone:"675"},{labelES:"Paraguay",label:"Paraguay",codeISO2:"PY",code:"PRY",phone:"595"},{labelES:"Perú",label:"Peru",codeISO2:"PE",code:"PER",phone:"51"},{labelES:"Polinesia Francesa",label:"French Polynesia",codeISO2:"PF",code:"PYF",phone:"689"},{labelES:"Polonia",label:"Poland",codeISO2:"PL",code:"POL",phone:"48"},{labelES:"Portugal",label:"Portugal",codeISO2:"PT",code:"PRT",phone:"351"},{labelES:"Puerto Rico",label:"Puerto Rico",codeISO2:"PR",code:"PRI",phone:"1"},{labelES:"Qatar",label:"Qatar",codeISO2:"QA",code:"QAT",phone:"974"},{labelES:"Reino Unido",label:"United Kingdom",codeISO2:"GB",code:"GBR",phone:"44"},{labelES:"República Centroafricana",label:"Central African Republic",codeISO2:"CF",code:"CAF",phone:"236"},{labelES:"República Checa",label:"Czech Republic",codeISO2:"CZ",code:"CZE",phone:"420"},{labelES:"República Dominicana",label:"Dominican Republic",codeISO2:"DO",code:"DOM",phone:"1 809"},{labelES:"República de Sudán del Sur",label:"South Sudan",codeISO2:"SS",code:"SSD",phone:"211"},{labelES:"Reunión",label:"Réunion",codeISO2:"RE",code:"REU",phone:"262"},{labelES:"Ruanda",label:"Rwanda",codeISO2:"RW",code:"RWA",phone:"250"},{labelES:"Rumanía",label:"Romania",codeISO2:"RO",code:"ROU",phone:"40"},{labelES:"Rusia",label:"Russia",codeISO2:"RU",code:"RUS",phone:"7"},{labelES:"Sahara Occidental",label:"Western Sahara",codeISO2:"EH",code:"ESH",phone:"212"},{labelES:"Samoa",label:"Samoa",codeISO2:"WS",code:"WSM",phone:"685"},{labelES:"Samoa Americana",label:"American Samoa",codeISO2:"AS",code:"ASM",phone:"1 684"},{labelES:"San Bartolomé",label:"Saint Barthélemy",codeISO2:"BL",code:"BLM",phone:"590"},{labelES:"San Cristóbal y Nieves",label:"Saint Kitts and Nevis",codeISO2:"KN",code:"KNA",phone:"1 869"},{labelES:"San Marino",label:"San Marino",codeISO2:"SM",code:"SMR",phone:"378"},{labelES:"San Martín (Francia)",label:"Saint Martin (French part)",codeISO2:"MF",code:"MAF",phone:"1 599"},{labelES:"San Pedro y Miquelón",label:"Saint Pierre and Miquelon",codeISO2:"PM",code:"SPM",phone:"508"},{labelES:"San Vicente y las Granadinas",label:"Saint Vincent and the Grenadines",codeISO2:"VC",code:"VCT",phone:"1 784"},{labelES:"Santa Elena",label:"Ascensión y Tristán de Acuña",codeISO2:"SH",code:"SHN",phone:"290"},{labelES:"Santa Lucía",label:"Saint Lucia",codeISO2:"LC",code:"LCA",phone:"1 758"},{labelES:"Santo Tomé y Príncipe",label:"Sao Tome and Principe",codeISO2:"ST",code:"STP",phone:"239"},{labelES:"Senegal",label:"Senegal",codeISO2:"SN",code:"SEN",phone:"221"},{labelES:"Serbia",label:"Serbia",codeISO2:"RS",code:"SRB",phone:"381"},{labelES:"Seychelles",label:"Seychelles",codeISO2:"SC",code:"SYC",phone:"248"},{labelES:"Sierra Leona",label:"Sierra Leone",codeISO2:"SL",code:"SLE",phone:"232"},{labelES:"Singapur",label:"Singapore",codeISO2:"SG",code:"SGP",phone:"65"},{labelES:"Sint Maarten",label:"Sint Maarten",codeISO2:"SX",code:"SMX",phone:"1 721"},{labelES:"Siria",label:"Syria",codeISO2:"SY",code:"SYR",phone:"963"},{labelES:"Somalia",label:"Somalia",codeISO2:"SO",code:"SOM",phone:"252"},{labelES:"Sri lanka",label:"Sri Lanka",codeISO2:"LK",code:"LKA",phone:"94"},{labelES:"Sudáfrica",label:"South Africa",codeISO2:"ZA",code:"ZAF",phone:"27"},{labelES:"Sudán",label:"Sudan",codeISO2:"SD",code:"SDN",phone:"249"},{labelES:"Suecia",label:"Sweden",codeISO2:"SE",code:"SWE",phone:"46"},{labelES:"Suiza",label:"Switzerland",codeISO2:"CH",code:"CHE",phone:"41"},{labelES:"Surinám",label:"Suriname",codeISO2:"SR",code:"SUR",phone:"597"},{labelES:"Svalbard y Jan Mayen",label:"Svalbard and Jan Mayen",codeISO2:"SJ",code:"SJM",phone:"47"},{labelES:"Swazilandia",label:"Swaziland",codeISO2:"SZ",code:"SWZ",phone:"268"},{labelES:"Tayikistán",label:"Tajikistan",codeISO2:"TJ",code:"TJK",phone:"992"},{labelES:"Tailandia",label:"Thailand",codeISO2:"TH",code:"THA",phone:"66"},{labelES:"Taiwán",label:"Taiwan",codeISO2:"TW",code:"TWN",phone:"886"},{labelES:"Tanzania",label:"Tanzania",codeISO2:"TZ",code:"TZA",phone:"255"},{labelES:"Territorio Británico del Océano Índico",label:"British Indian Ocean Territory",codeISO2:"IO",code:"IOT",phone:"246"},{labelES:"Territorios Australes y Antárticas Franceses",label:"French Southern Territories",codeISO2:"TF",code:"ATF",phone:""},{labelES:"Timor Oriental",label:"East Timor",codeISO2:"TL",code:"TLS",phone:"670"},{labelES:"Togo",label:"Togo",codeISO2:"TG",code:"TGO",phone:"228"},{labelES:"Tokelau",label:"Tokelau",codeISO2:"TK",code:"TKL",phone:"690"},{labelES:"Tonga",label:"Tonga",codeISO2:"TO",code:"TON",phone:"676"},{labelES:"Trinidad y Tobago",label:"Trinidad and Tobago",codeISO2:"TT",code:"TTO",phone:"1 868"},{labelES:"Tunez",label:"Tunisia",codeISO2:"TN",code:"TUN",phone:"216"},{labelES:"Turkmenistán",label:"Turkmenistan",codeISO2:"TM",code:"TKM",phone:"993"},{labelES:"Turquía",label:"Turkey",codeISO2:"TR",code:"TUR",phone:"90"},{labelES:"Tuvalu",label:"Tuvalu",codeISO2:"TV",code:"TUV",phone:"688"},{labelES:"Ucrania",label:"Ukraine",codeISO2:"UA",code:"UKR",phone:"380"},{labelES:"Uganda",label:"Uganda",codeISO2:"UG",code:"UGA",phone:"256"},{labelES:"Uruguay",label:"Uruguay",codeISO2:"UY",code:"URY",phone:"598"},{labelES:"Uzbekistán",label:"Uzbekistan",codeISO2:"UZ",code:"UZB",phone:"998"},{labelES:"Vanuatu",label:"Vanuatu",codeISO2:"VU",code:"VUT",phone:"678"},{labelES:"Venezuela",label:"Venezuela",codeISO2:"VE",code:"VEN",phone:"58"},{labelES:"Vietnam",label:"Vietnam",codeISO2:"VN",code:"VNM",phone:"84"},{labelES:"Wallis y Futuna",label:"Wallis and Futuna",codeISO2:"WF",code:"WLF",phone:"681"},{labelES:"Yemen",label:"Yemen",codeISO2:"YE",code:"YEM",phone:"967"},{labelES:"Yibuti",label:"Djibouti",codeISO2:"DJ",code:"DJI",phone:"253"},{labelES:"Zambia",label:"Zambia",codeISO2:"ZM",code:"ZMB",phone:"260"},{labelES:"Zimbabue",label:"Zimbabwe",codeISO2:"ZW",code:"ZWE",phone:"263"}],hL=({countries:e=Dw,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:a="",translateKey:c})=>{var xe,Le,se;const{t:u}=ze(),{field:d,fieldState:h}=hr.useController({name:t,control:n,rules:{validate:{}},defaultValue:null}),[m,p]=I.useState(!1),[y,S]=I.useState(""),[b,E]=I.useState(d.value||null),w=I.useRef(null),C=I.useRef(null),M=I.useRef(null),{x:$,y:P,strategy:R,refs:k,context:j,placement:z,middlewareData:Z}=gi({open:m,onOpenChange:p,middleware:[fi(8),hi(),di({padding:8}),No({apply({availableHeight:pe,elements:ke}){Object.assign(ke.floating.style,{maxHeight:`${Math.min(pe-10,300)}px`})},padding:8}),ps({element:C})],placement:"bottom-start",whileElementsMounted:ui}),te=gs(j),ce=pi(j),{getReferenceProps:ve,getFloatingProps:fe}=yi([te,ce]),{isMounted:ee,styles:ne}=vs(j,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),W=(Array.isArray(e)?e:[]).filter(pe=>{if(!y.trim())return!0;const ke=o==="es"&&pe.labelES?pe.labelES.toLowerCase():pe.label.toLowerCase(),ft=pe.code?pe.code.toLowerCase():"";return ke.includes(y.toLowerCase())||ft.includes(y.toLowerCase())}),q=pe=>{E(pe),p(!1),S(""),d.onChange(pe)},O=()=>{p(!m),!m&&w.current&&setTimeout(()=>{var pe;(pe=w.current)==null||pe.focus()},100)},V=()=>{setTimeout(()=>{m||d.onBlur()},200)};I.useEffect(()=>{E(d.value)},[d.value]),I.useEffect(()=>{const pe=ke=>{M.current&&!M.current.contains(ke.target)&&d.onBlur()};return document.addEventListener("mousedown",pe),()=>{document.removeEventListener("mousedown",pe)}},[d]);const J=pe=>{var ke;return pe?pe.codeISO2?pe.codeISO2.toLowerCase():((ke=pe.code)==null?void 0:ke.toLowerCase())||"":""},re=(xe=Z.arrow)==null?void 0:xe.x,ae=(Le=Z.arrow)==null?void 0:Le.y,G={top:"bottom",right:"left",bottom:"top",left:"right"}[z.split("-")[0]],ie=ve({onClick:O,onBlur:V}),he=u(r),ue=u(i),ye=(se=h.error)==null?void 0:se.message;return v.jsxs("div",{ref:M,className:`w-full relative flex flex-col gap-8 ${a}`,children:[v.jsx("label",{className:`text-gray-600 font-600 group ${ye&&"!text-red-500"} text-label`,children:he}),v.jsxs("div",{ref:k.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${ye&&"border-red-500 hover:border-red-600"} ${ee?"border-blue-400":"border-blue-100"}`,...ie,tabIndex:0,children:[b!=null&&b.code?v.jsxs("div",{className:"flex items-center w-full gap-10",children:[J(b)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${J(b)}.png`,srcSet:`https://flagcdn.com/w40/${J(b)}.png 2x`,alt:b.label,onError:pe=>{pe.currentTarget.style.display="none"}}),v.jsxs("span",{className:"flex-grow font-600 text-body-m",children:[o==="es"&&b.labelES?b.labelES:b.label,b.code?` (${b.code})`:u("select_country")]})]}):v.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:ue}),v.jsx("svg",{className:`w-16 h-16 transition-transform ${m?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),ye&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(ye,{x:u(c||"")||u(t)})}),ee&&v.jsxs("div",{ref:k.setFloating,style:{position:R,top:P??0,left:$??0,...ne},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...fe(),children:[v.jsx("div",{ref:C,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:re!=null?`${re}px`:"",top:ae!=null?`${ae}px`:"",right:"",bottom:"",[G]:"-2px",borderRight:G==="left"?"1px solid":"none",borderBottom:G==="top"?"1px solid":"none",borderLeft:G==="right"?"1px solid":"none",borderTop:G==="bottom"?"1px solid":"none"}}),v.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:v.jsx("input",{ref:w,type:"text",className:"w-full p-16 text-body-s",placeholder:u("search")+"...",value:y,onChange:pe=>S(pe.target.value),onClick:pe=>pe.stopPropagation(),onBlur:pe=>{pe.stopPropagation()},autoFocus:!0})}),v.jsx("div",{children:W.length>0?v.jsx("ul",{className:"flex flex-col",children:W.map((pe,ke)=>{var wi;const ft=pe.codeISO2?pe.codeISO2.toLowerCase():((wi=pe.code)==null?void 0:wi.toLowerCase())||"";return v.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:dt=>{dt.stopPropagation(),q(pe)},children:[ft&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${ft}.png`,srcSet:`https://flagcdn.com/w40/${ft}.png 2x`,alt:pe.label,onError:dt=>{dt.currentTarget.style.display="none"}}),v.jsxs("span",{children:[o==="es"&&pe.labelES?pe.labelES:pe.label,pe.code?` (${pe.code})`:"Country not found"]})]},`${pe.code}-${ke}`)})}):v.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},mL=({country:e})=>{const t=n=>{var r;return n?n.codeISO2?n.codeISO2.toLowerCase():((r=n.code)==null?void 0:r.toLowerCase())||"":""};return v.jsxs("div",{className:"flex items-center gap-8",children:[v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${t(e)}.png`,srcSet:`https://flagcdn.com/w40/${t(e)}.png 2x`,alt:e.label,onError:n=>{n.currentTarget.style.display="none"}}),v.jsx("p",{className:"text-body-s text-gray-600",children:e.label})]})},pL=({countries:e,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:a=""})=>{const{t:c}=ze();return v.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:u,value:d},fieldState:{error:h}})=>v.jsx(gL,{countries:e,value:d,onChange:u,label:c(r),placeholder:c(i),language:o,error:h==null?void 0:h.message,className:a})})},gL=({countries:e,value:t,onChange:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",error:a,className:c=""})=>{var re,ae;const{t:u}=ze(),[d,h]=I.useState(!1),[m,p]=I.useState(""),[y,S]=I.useState(t||null),b=I.useRef(null),E=I.useRef(null),{x:w,y:C,strategy:M,refs:$,context:P,placement:R,middlewareData:k}=gi({open:d,onOpenChange:h,middleware:[fi(8),hi(),di({padding:8}),No({apply({availableHeight:G,elements:ie}){Object.assign(ie.floating.style,{maxHeight:`${Math.min(G-10,300)}px`})},padding:8}),ps({element:E})],placement:"bottom-start",whileElementsMounted:ui}),j=gs(P),z=pi(P),{getReferenceProps:Z,getFloatingProps:te}=yi([j,z]),{isMounted:ce,styles:ve}=vs(P,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ee=(Array.isArray(e)?e:[]).filter(G=>{if(!m.trim())return!0;const ie=o==="es"&&G.labelES?G.labelES.toLowerCase():G.label.toLowerCase(),he=G.code?G.code.toLowerCase():"";return ie.includes(m.toLowerCase())||he.includes(m.toLowerCase())}),ne=G=>{S(G),h(!1),p(""),n(G)},N=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var G;(G=b.current)==null||G.focus()},100)};I.useEffect(()=>{S(t)},[t]);const W=G=>{var ie;return G?G.codeISO2?G.codeISO2.toLowerCase():((ie=G.code)==null?void 0:ie.toLowerCase())||"":""},q=(re=k.arrow)==null?void 0:re.x,O=(ae=k.arrow)==null?void 0:ae.y,V={top:"bottom",right:"left",bottom:"top",left:"right"}[R.split("-")[0]],J=Z({onClick:N});return v.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[v.jsx("label",{className:`text-gray-600 font-600 group ${a&&"!text-red-500"} text-label`,children:r}),v.jsxs("div",{ref:$.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${a&&"border-red-500 hover:border-red-600"} ${ce?"border-blue-400":"border-blue-100"}`,...J,children:[y!=null&&y.code?v.jsxs("div",{className:"flex items-center w-full",children:[W(y)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${W(y)}.png`,srcSet:`https://flagcdn.com/w40/${W(y)}.png 2x`,alt:y.label,onError:G=>{G.currentTarget.style.display="none"}}),v.jsxs("span",{className:"flex-grow",children:[o==="es"&&y.labelES?y.labelES:y.label,y.code?` (${y.code})`:u("select_country")]})]}):v.jsx("span",{className:"text-gray-500",children:i}),v.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),a&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:a}),ce&&v.jsxs("div",{ref:$.setFloating,style:{position:M,top:C??0,left:w??0,...ve},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...te(),children:[v.jsx("div",{ref:E,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:q!=null?`${q}px`:"",top:O!=null?`${O}px`:"",right:"",bottom:"",[V]:"-2px",borderRight:V==="left"?"1px solid":"none",borderBottom:V==="top"?"1px solid":"none",borderLeft:V==="right"?"1px solid":"none",borderTop:V==="bottom"?"1px solid":"none"}}),v.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:v.jsx("input",{ref:b,type:"text",className:"w-full p-16",placeholder:u("search")+"...",value:m,onChange:G=>p(G.target.value),onClick:G=>G.stopPropagation(),autoFocus:!0})}),v.jsx("div",{children:ee.length>0?v.jsx("ul",{className:"flex flex-col",children:ee.map((G,ie)=>{var ue;const he=G.codeISO2?G.codeISO2.toLowerCase():((ue=G.code)==null?void 0:ue.toLowerCase())||"";return v.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:ye=>{ye.stopPropagation(),ne(G)},children:[he&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${he}.png`,srcSet:`https://flagcdn.com/w40/${he}.png 2x`,alt:G.label,onError:ye=>{ye.currentTarget.style.display="none"}}),v.jsxs("span",{children:[o==="es"&&G.labelES?G.labelES:G.label,G.code?` (${G.code})`:"Country not found"]})]},`${G.code}-${ie}`)})}):v.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No countries found"})})]})]})},uh=({variant:e="filled",color:t,size:n="base",shadow:r="none",icon:i,iconProps:o={},children:a,className:c,...u})=>{const{defaultColorScheme:d}=ze(),h=t||d;return v.jsx("button",{...u,className:`${DN(e,h,n,r)} ${c}`,children:i?v.jsx(De,{...o,className:ko(n),icon:i}):a})};function yL(e){return e!==null&&typeof e=="object"&&"name"in e&&"size"in e&&"type"in e&&typeof e.name=="string"&&typeof e.size=="number"&&typeof e.type=="string"}const vL=({src:e,alt:t,isEditable:n=!1,onChange:r,className:i="",name:o,control:a,user:c})=>{const[u,d]=I.useState(e||null),[h,m]=I.useState(!!e),p=I.useRef(null),y=hr.useController({name:o,control:a}),S=!!a;I.useEffect(()=>{if(S){const C=y==null?void 0:y.field.value;if(yL(C)){const M=URL.createObjectURL(C);return d(M),m(!0),()=>URL.revokeObjectURL(M)}else typeof C=="string"&&C&&C!==e?(d(C),m(!0)):e?(d(e),m(!0)):(d(null),m(!1))}},[y==null?void 0:y.field.value,e]);const b=()=>{var C;n&&((C=p.current)==null||C.click())},E=C=>{var $;const M=($=C.target.files)==null?void 0:$[0];if(M){const P=URL.createObjectURL(M);d(P),m(!0),S&&(y==null||y.field.onChange(M)),r&&r(M)}},w=C=>{C.stopPropagation(),d(null),m(!1),p.current&&(p.current.value=""),S&&(y==null||y.field.onChange(null)),r&&r(null)};return v.jsxs("div",{className:"relative flex items-center gap-10",children:[n&&h&&v.jsx("button",{type:"button",onClick:w,className:"bg-red-500 text-white rounded-full w-20 h-20 flex items-center justify-center hover:bg-red-600 focus:outline-none","aria-label":"Eliminar imagen",children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),v.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),v.jsxs("div",{className:`relative flex items-center justify-center h-40 w-40 ${n?"cursor-pointer hover:opacity-80":""} ${i}`,onClick:b,children:[u?v.jsx("img",{src:u,alt:t,className:"w-full h-full object-cover rounded-full"}):v.jsx(cw,{size:60,user:c}),n&&v.jsxs(v.Fragment,{children:[v.jsx("input",{type:"file",ref:C=>{p.current=C,y&&y.field.ref(C)},onChange:E,onBlur:y==null?void 0:y.field.onBlur,accept:"image/*",className:"hidden"}),!h&&v.jsx("div",{className:"absolute bottom-0 right-0 bg-blue-100 rounded-full h-20 w-20 flex items-center justify-center",children:v.jsx(De,{icon:U6,className:"text-blue-500"})})]})]})]})},bL=ch({name:Rr(),base64:Rr()}),xL=({imageUrl:e,title:t,subtitle:n})=>v.jsxs("section",{className:"gap-10 flex flex-col items-center justify-center",children:[v.jsx("img",{src:e,alt:t,width:100,height:100}),v.jsx("h1",{className:"font-bold text-2xl align-middle",children:t}),v.jsx("p",{className:"text-lg align-middle font-semibold text-gray-500",children:n})]}),wL=e=>{switch(e){case"warning":return"bg-yellow-50 border-2 border-yellow-500";case"error":return"bg-red-50 border-2 border-red-500";default:return"bg-blue-50 border-2 border-blue-500"}},SL=({description:e,title:t,className:n,icon:r,type:i="informative"})=>v.jsxs("div",{className:`flex items-center gap-12 p-12 w-full ${wL(i)} rounded-lg ${n}`,children:[r?v.jsx(De,{icon:r,className:"text-blue-500 min-h-20 h-20"}):v.jsx(De,{icon:nN,className:"text-blue-500 min-h-20 h-20"}),v.jsxs("div",{className:"flex flex-col gap-4",children:[v.jsx("h4",{className:"text-body-s font-500 text-black leading-none",children:t}),v.jsx("p",{className:"text-gray-600 text-body-s leading-none",children:e})]})]}),TL=({size:e=16,strokeWidth:t=2,color:n="#1DA696",...r})=>{const i=(e-t)/2,o=2*Math.PI*i,{className:a="",...c}=r;return v.jsx("div",{...c,className:`relative flex items-center justify-center ${a}`,children:v.jsx("svg",{height:e,width:e,className:"animate-spin",children:v.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:o+" "+o,strokeDashoffset:o/4,r:i,cx:e/2,cy:e/2})})})},EL=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a})=>{const{field:{value:c="",onChange:u,ref:d,onBlur:h},fieldState:{error:m}}=hr.useController({name:n,control:t}),[p,y]=I.useState(!1),{t:S}=ze();return v.jsxs("label",{className:`flex flex-col group gap-8 select-none ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${m&&"!text-red-500"} text-label ${o&&"text-gray-300"}`,children:e}),v.jsxs("label",{htmlFor:n,className:`
|
|
714
714
|
flex items-center justify-between gap-8 p-16
|
|
715
715
|
|
|
716
716
|
${m&&"!border-red-500"}
|
|
@@ -719,19 +719,19 @@ attempted value: ${o}
|
|
|
719
719
|
|
|
720
720
|
w-full h-full rounded-full border
|
|
721
721
|
|
|
722
|
-
${c&&!
|
|
723
|
-
${!
|
|
724
|
-
${
|
|
722
|
+
${c&&!o?"border-blue-200":"border-blue-100"}
|
|
723
|
+
${!o&&"group-hover:border-blue-300"}
|
|
724
|
+
${o&&"cursor-not-allowed"}
|
|
725
725
|
|
|
726
726
|
group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
|
|
727
727
|
|
|
728
728
|
group-disabled:bg-gray-500
|
|
729
|
-
`,children:[o&&o,v.jsx("input",{id:n,type:p?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:n,disabled:a,placeholder:r,value:c,onChange:b=>u(b.target.value),onBlur:h,ref:d,className:"group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none"}),v.jsx(De,{icon:p?WC:FC,className:"min-h-16 max-h-16 text-gray-400 hover:text-gray-500 transition-colors duration-150 cursor-pointer ease-in-out",onClick:()=>y(!p)})]}),v.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:m&&S(m.message||"",{x:S(n)})})]})},CL=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:i="en",className:a="",translateKey:o,countries:c=Dw})=>{var Ti,wl,Nr,Sl;const{t:u}=ze(),{field:d,fieldState:h}=hr.useController({name:e,control:t,rules:{validate:{}}}),m=((Ti=d.value)==null?void 0:Ti.split(" "))||[],p=m[0]||null,y=m[1]||"",S=c.find(be=>p===be.phone),[b,E]=I.useState(!1),[w,C]=I.useState(""),[A,$]=I.useState(S||null),[O,R]=I.useState(y),[V,F]=I.useState(!1),z=I.useRef(null),Q=I.useRef(null),ne=I.useRef(null),ue=I.useRef(null),{x:ve,y:de,strategy:re,refs:oe,context:j,placement:W,middlewareData:q}=gi({open:b,onOpenChange:E,middleware:[fi(8),hi(),di({padding:8}),No({apply({availableHeight:be,elements:Qe}){Object.assign(Qe.floating.style,{maxHeight:`${Math.min(be-10,300)}px`})},padding:8}),ps({element:Q})],placement:"bottom-start",whileElementsMounted:ui}),M=gs(j),k=pi(j),{getReferenceProps:Z,getFloatingProps:ee}=yi([M,k]),{isMounted:se,styles:G}=vs(j,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),he=(Array.isArray(c)?c:[]).filter(be=>{if(!w.trim())return!0;const Qe=i==="es"&&be.labelES?be.labelES.toLowerCase():be.label.toLowerCase(),Pt=be.code?be.code.toLowerCase():"",xn=be.phone?be.phone.toLowerCase():"";return Qe.includes(w.toLowerCase())||Pt.includes(w.toLowerCase())||xn.includes(w.toLowerCase())}),ce=be=>{$(be),E(!1),C("");const Qe=`${be.phone} ${O}`;d.onChange(Qe),setTimeout(()=>{var Pt;(Pt=ne.current)==null||Pt.focus()},100)},ye=be=>{const Qe=be.target.value;if(R(Qe),A){const Pt=`${A.phone} ${Qe}`;d.onChange(Pt)}},xe=()=>{E(!b),!b&&z.current&&setTimeout(()=>{var be;(be=z.current)==null||be.focus()},100)},Le=()=>{setTimeout(()=>{b||d.onBlur()},200)},ie=()=>{F(!0)},pe=()=>{F(!1)};I.useEffect(()=>{if(d.value){const be=d.value.split(" "),Qe=be[0]||"",Pt=be[1]||"",xn=c.find(rr=>rr.phone===Qe);xn&&$(xn),R(Pt)}},[d.value,c]),I.useEffect(()=>{const be=Qe=>{ue.current&&!ue.current.contains(Qe.target)&&d.onBlur()};return document.addEventListener("mousedown",be),()=>{document.removeEventListener("mousedown",be)}},[d]);const ke=be=>{var Qe;return be?be.codeISO2?be.codeISO2.toLowerCase():((Qe=be.code)==null?void 0:Qe.toLowerCase())||"":""},ft=(wl=q.arrow)==null?void 0:wl.x,wi=(Nr=q.arrow)==null?void 0:Nr.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[W.split("-")[0]],bl=Z({onClick:xe,onBlur:Le}),xl=()=>h.error?"border-red-500":V||b?"border-blue-400":"border-blue-100",Si=u(n),qt=u(r),bn=(Sl=h.error)==null?void 0:Sl.message;return v.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${a}`,children:[v.jsx("label",{className:`text-gray-600 font-600 group ${bn&&"!text-red-500"} text-label`,children:Si}),v.jsxs("div",{ref:ue,className:"flex items-center w-full",onMouseEnter:ie,onMouseLeave:pe,children:[v.jsxs("div",{ref:oe.setReference,className:`flex items-center justify-between text-lg max-w-120 font-600 bg-light rounded-l-full p-16 cursor-pointer border border-r-0 transition-all duration-200 ${bn?"border-red-500":xl()}`,style:{minWidth:"140px"},...bl,tabIndex:0,children:[A!=null&&A.code?v.jsxs("div",{className:"flex items-center truncate",children:[ke(A)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${ke(A)}.png`,srcSet:`https://flagcdn.com/w40/${ke(A)}.png 2x`,alt:A.label,onError:be=>{be.currentTarget.style.display="none"}}),v.jsxs("span",{children:["+",A.phone]})]}):v.jsx("span",{className:"text-gray-400 font-600 text-body-m truncate",children:u("select_country")}),v.jsx(De,{icon:ew,className:"w-14 h-14 min-w-14 min-h-14"})]}),v.jsx("input",{ref:ne,type:"tel",className:`placeholder:text-gray-400 flex-grow bg-light rounded-r-full font-600 text-body-m p-16 border transition-all duration-200 ${bn?"border-red-500":xl()}`,placeholder:qt,value:O,onChange:ye,onBlur:Le})]}),bn&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(bn,{x:u(o||"")||e})}),se&&v.jsxs("div",{ref:oe.setFloating,style:{position:re,top:de??0,left:ve??0,...G},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...ee(),children:[v.jsx("div",{ref:Q,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ft!=null?`${ft}px`:"",top:wi!=null?`${wi}px`:"",right:"",bottom:"",[dt]:"-2px",borderRight:dt==="left"?"1px solid":"none",borderBottom:dt==="top"?"1px solid":"none",borderLeft:dt==="right"?"1px solid":"none",borderTop:dt==="bottom"?"1px solid":"none"}}),v.jsx("div",{className:"sticky top-0 bg-white p-2 z-20 w-fit",children:v.jsx("input",{ref:z,type:"text",className:"w-fit p-16",placeholder:u("search")+"...",value:w,onChange:be=>C(be.target.value),onClick:be=>be.stopPropagation(),onBlur:be=>{be.stopPropagation()},autoFocus:!0})}),v.jsx("div",{children:he.length>0?v.jsx("ul",{className:"flex flex-col",children:he.map((be,Qe)=>{var xn;const Pt=be.codeISO2?be.codeISO2.toLowerCase():((xn=be.code)==null?void 0:xn.toLowerCase())||"";return v.jsxs("li",{className:"flex items-center justify-between gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:rr=>{rr.stopPropagation(),ce(be)},children:[Pt&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Pt}.png`,srcSet:`https://flagcdn.com/w40/${Pt}.png 2x`,alt:be.label,onError:rr=>{rr.currentTarget.style.display="none"}}),v.jsxs("span",{className:"text-gray-500",children:["+",be.phone]})]},`${be.code}-${Qe}`)})}):v.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},PL={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},AL={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},OL=e=>{switch(e){case"aqua":return AL;case"blue":default:return PL}},ML=({progress:e,showPercentage:t=!1,color:n,className:r="",...i})=>{const{defaultColorScheme:a}=ze(),o=n||a,{bgColor:c,fillColor:u}=OL(o),d=Math.min(Math.max(e,0),100);return v.jsxs("div",{className:`flex items-center gap-12 ${r}`,...i,children:[v.jsx("div",{className:`w-full h-8 ${c} rounded-full`,children:v.jsx("div",{className:`h-full ${u} rounded-full transition-all duration-300 ease-in-out`,style:{width:`${d}%`}})}),t&&v.jsxs("span",{className:"text-sm text-gray-400 font-500",children:[d,"%"]})]})},_L=()=>{const[e,t]=I.useState(!1),n=I.useRef(null),r=()=>{t(!0),setTimeout(()=>{var a;return(a=n.current)==null?void 0:a.focus()},100)},i=()=>{t(!1)};return v.jsx("div",{className:"relative flex items-center",children:v.jsxs("div",{className:`flex items-center justify-center bg-white shadow-md rounded-full transition-all duration-300 ease-in-out ${e?"w-[200px] h-[40px]":"size-[40px]"}`,children:[v.jsx("button",{onClick:r,className:"size-[40px] flex items-center justify-center rounded-full hover:bg-gray-100 transition-all",children:v.jsx(De,{icon:BR})}),v.jsx("input",{ref:n,type:"text",className:`w-full outline-none bg-transparent transition-all ${e?"w-full pr-[10px]":"w-0"}`,placeholder:"Buscar...",onBlur:i,style:{border:"none",outline:"none"}})]})})},IL="w-fit transition-colors ease-in-out duration-200 flex items-center justify-center gap-12 px-24 py-7 text-base rounded-full font-600 bg-transparent",DL={true:"bg-blue-100 text-blue-500 hover:bg-blue-100/80 active:bg-blue-100/50 !bg-blue-100",false:"text-gray-800 hover:bg-blue-100/40 hover:text-blue-500 active:bg-blue-100/20 active:text-blue-500"},$L={true:"bg-aqua-100 text-aqua-500 hover:bg-aqua-100/80 active:bg-aqua-100/50 !bg-aqua-100",false:"text-gray-800 hover:bg-aqua-100/40 hover:text-aqua-500 active:bg-aqua-100/20 active:text-aqua-500"},RL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=$L[n];break;case"blue":default:r=DL[n];break}return tr(IL,r)},NL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:a,icon:o,color:c})=>{const{defaultColorScheme:u}=ze(),d=c||u,h=p=>{if(i){p.preventDefault();return}n==null||n(p)},m=`${RL(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?v.jsxs("a",{href:t,className:`${m} ${a||""}`,onClick:h,"aria-disabled":i,children:[o&&v.jsx(De,{icon:o,className:ko()}),e]}):v.jsxs("button",{className:`${m} ${a||""}`,onClick:h,disabled:i,children:[o&&v.jsx(De,{icon:o,className:ko()}),e]})},LL="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",kL={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},jL={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},FL="flex h-32 w-32 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",VL={true:"text-blue-500 bg-blue-100 rounded-full",false:"text-gray-800 hover:text-blue-500 active:text-blue-500 group-hover:bg-blue-100 group-hover:text-blue-500"},BL={true:"text-aqua-500 bg-aqua-100 rounded-full",false:"text-gray-800 hover:text-aqua-500 active:text-aqua-500 group-hover:bg-aqua-100 group-hover:text-aqua-500"},$w=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=VL[n];break;case"aqua":default:r=BL[n];break}return tr(FL,r)},WL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=jL[n];break;case"blue":default:r=kL[n];break}return tr(LL,r)},UL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:a,icon:o,color:c})=>{const{defaultColorScheme:u}=ze(),d=c||u,h=p=>{if(i){p.preventDefault();return}n==null||n(p)},m=`${WL(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?v.jsxs("a",{href:t,className:`${m} ${a||""}`,onClick:h,"aria-disabled":i,children:[o&&v.jsx("div",{className:$w(r,d),children:v.jsx(De,{icon:o,className:"size-16 max-h-16 max-w-16"})}),e]}):v.jsxs("button",{className:`${m} ${a||""}`,onClick:h,disabled:i,children:[o&&v.jsx("div",{className:$w(r,d),children:v.jsx(De,{icon:o,className:"size-16 max-h-16 max-w-16"})}),e]})},zL=e=>{const{display:t,...n}=e;return t==="desktop"?v.jsx(NL,{...n}):t==="mobile"?v.jsx(UL,{...n}):null},GL=({options:e,name:t,control:n,label:r="Select an option",placeholder:i="Type to search...",className:a="",input:o=!0})=>v.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:c,value:u},fieldState:{error:d}})=>v.jsx(YL,{options:e,value:u,onChange:c,label:r,placeholder:i,error:d==null?void 0:d.message,className:a,input:o})}),YL=({options:e,value:t,onChange:n,label:r="Select an option",placeholder:i="Type to search...",error:a,className:o="",input:c=!0})=>{const{t:u}=ze(),[d,h]=I.useState(!1),[m,p]=I.useState(""),[y,S]=I.useState(t||null),b=I.useRef(null),E=I.useRef(null),{x:w,y:C,strategy:A,refs:$,context:O}=gi({open:d,onOpenChange:h,middleware:[fi(8),hi(),di({padding:8}),No({apply({availableHeight:j,elements:W}){Object.assign(W.floating.style,{maxHeight:`${Math.min(j-10,300)}px`})},padding:8}),ps({element:E})],placement:"bottom-start",whileElementsMounted:ui}),R=gs(O),V=pi(O),{getReferenceProps:F,getFloatingProps:z}=yi([R,V]),{isMounted:Q,styles:ne}=vs(O,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ue=(()=>{const j=Array.isArray(e)?e:[];if(!m.trim())return j;const W=m.toLowerCase();return j.filter(q=>{const M=q.label.toLowerCase(),k=q.key.toLowerCase();return M.includes(W)||k.includes(W)})})(),ve=j=>{S(j),h(!1),p(""),n(j)},de=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var j;return(j=b.current)==null?void 0:j.focus()},100)};I.useEffect(()=>{S(t)},[t]);const re=F({onClick:de}),oe=u(i);return v.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${o}`,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${a?"!text-red-500":""} text-label`,children:r}),v.jsxs("div",{ref:$.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
|
|
729
|
+
`,children:[a&&a,v.jsx("input",{id:n,type:p?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:n,disabled:o,placeholder:r,value:c,onChange:b=>u(b.target.value),onBlur:h,ref:d,className:"group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none"}),v.jsx(De,{icon:p?WC:FC,className:"min-h-16 max-h-16 text-gray-400 hover:text-gray-500 transition-colors duration-150 cursor-pointer ease-in-out",onClick:()=>y(!p)})]}),v.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:m&&S(m.message||"",{x:S(n)})})]})},CL=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:i="en",className:o="",translateKey:a,countries:c=Dw})=>{var Ti,wl,Nr,Sl;const{t:u}=ze(),{field:d,fieldState:h}=hr.useController({name:e,control:t,rules:{validate:{}}}),m=((Ti=d.value)==null?void 0:Ti.split(" "))||[],p=m[0]||null,y=m[1]||"",S=c.find(be=>p===be.phone),[b,E]=I.useState(!1),[w,C]=I.useState(""),[M,$]=I.useState(S||null),[P,R]=I.useState(y),[k,j]=I.useState(!1),z=I.useRef(null),Z=I.useRef(null),te=I.useRef(null),ce=I.useRef(null),{x:ve,y:fe,strategy:ee,refs:ne,context:N,placement:W,middlewareData:q}=gi({open:b,onOpenChange:E,middleware:[fi(8),hi(),di({padding:8}),No({apply({availableHeight:be,elements:Qe}){Object.assign(Qe.floating.style,{maxHeight:`${Math.min(be-10,300)}px`})},padding:8}),ps({element:Z})],placement:"bottom-start",whileElementsMounted:ui}),O=gs(N),V=pi(N),{getReferenceProps:J,getFloatingProps:re}=yi([O,V]),{isMounted:ae,styles:G}=vs(N,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),he=(Array.isArray(c)?c:[]).filter(be=>{if(!w.trim())return!0;const Qe=i==="es"&&be.labelES?be.labelES.toLowerCase():be.label.toLowerCase(),Pt=be.code?be.code.toLowerCase():"",xn=be.phone?be.phone.toLowerCase():"";return Qe.includes(w.toLowerCase())||Pt.includes(w.toLowerCase())||xn.includes(w.toLowerCase())}),ue=be=>{$(be),E(!1),C("");const Qe=`${be.phone} ${P}`;d.onChange(Qe),setTimeout(()=>{var Pt;(Pt=te.current)==null||Pt.focus()},100)},ye=be=>{const Qe=be.target.value;if(R(Qe),M){const Pt=`${M.phone} ${Qe}`;d.onChange(Pt)}},xe=()=>{E(!b),!b&&z.current&&setTimeout(()=>{var be;(be=z.current)==null||be.focus()},100)},Le=()=>{setTimeout(()=>{b||d.onBlur()},200)},se=()=>{j(!0)},pe=()=>{j(!1)};I.useEffect(()=>{if(d.value){const be=d.value.split(" "),Qe=be[0]||"",Pt=be[1]||"",xn=c.find(rr=>rr.phone===Qe);xn&&$(xn),R(Pt)}},[d.value,c]),I.useEffect(()=>{const be=Qe=>{ce.current&&!ce.current.contains(Qe.target)&&d.onBlur()};return document.addEventListener("mousedown",be),()=>{document.removeEventListener("mousedown",be)}},[d]);const ke=be=>{var Qe;return be?be.codeISO2?be.codeISO2.toLowerCase():((Qe=be.code)==null?void 0:Qe.toLowerCase())||"":""},ft=(wl=q.arrow)==null?void 0:wl.x,wi=(Nr=q.arrow)==null?void 0:Nr.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[W.split("-")[0]],bl=J({onClick:xe,onBlur:Le}),xl=()=>h.error?"border-red-500":k||b?"border-blue-400":"border-blue-100",Si=u(n),qt=u(r),bn=(Sl=h.error)==null?void 0:Sl.message;return v.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${o}`,children:[v.jsx("label",{className:`text-gray-600 font-600 group ${bn&&"!text-red-500"} text-label`,children:Si}),v.jsxs("div",{ref:ce,className:"flex items-center w-full",onMouseEnter:se,onMouseLeave:pe,children:[v.jsxs("div",{ref:ne.setReference,className:`flex items-center justify-between text-lg max-w-120 font-600 bg-light rounded-l-full p-16 cursor-pointer border border-r-0 transition-all duration-200 ${bn?"border-red-500":xl()}`,style:{minWidth:"140px"},...bl,tabIndex:0,children:[M!=null&&M.code?v.jsxs("div",{className:"flex items-center truncate",children:[ke(M)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${ke(M)}.png`,srcSet:`https://flagcdn.com/w40/${ke(M)}.png 2x`,alt:M.label,onError:be=>{be.currentTarget.style.display="none"}}),v.jsxs("span",{children:["+",M.phone]})]}):v.jsx("span",{className:"text-gray-400 font-600 text-body-m truncate",children:u("select_country")}),v.jsx(De,{icon:ew,className:"w-14 h-14 min-w-14 min-h-14"})]}),v.jsx("input",{ref:te,type:"tel",className:`placeholder:text-gray-400 flex-grow bg-light rounded-r-full font-600 text-body-m p-16 border transition-all duration-200 ${bn?"border-red-500":xl()}`,placeholder:qt,value:P,onChange:ye,onBlur:Le})]}),bn&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(bn,{x:u(a||"")||e})}),ae&&v.jsxs("div",{ref:ne.setFloating,style:{position:ee,top:fe??0,left:ve??0,...G},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...re(),children:[v.jsx("div",{ref:Z,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ft!=null?`${ft}px`:"",top:wi!=null?`${wi}px`:"",right:"",bottom:"",[dt]:"-2px",borderRight:dt==="left"?"1px solid":"none",borderBottom:dt==="top"?"1px solid":"none",borderLeft:dt==="right"?"1px solid":"none",borderTop:dt==="bottom"?"1px solid":"none"}}),v.jsx("div",{className:"sticky top-0 bg-white p-2 z-20 w-fit",children:v.jsx("input",{ref:z,type:"text",className:"w-fit p-16",placeholder:u("search")+"...",value:w,onChange:be=>C(be.target.value),onClick:be=>be.stopPropagation(),onBlur:be=>{be.stopPropagation()},autoFocus:!0})}),v.jsx("div",{children:he.length>0?v.jsx("ul",{className:"flex flex-col",children:he.map((be,Qe)=>{var xn;const Pt=be.codeISO2?be.codeISO2.toLowerCase():((xn=be.code)==null?void 0:xn.toLowerCase())||"";return v.jsxs("li",{className:"flex items-center justify-between gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:rr=>{rr.stopPropagation(),ue(be)},children:[Pt&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Pt}.png`,srcSet:`https://flagcdn.com/w40/${Pt}.png 2x`,alt:be.label,onError:rr=>{rr.currentTarget.style.display="none"}}),v.jsxs("span",{className:"text-gray-500",children:["+",be.phone]})]},`${be.code}-${Qe}`)})}):v.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},PL={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},AL={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},ML=e=>{switch(e){case"aqua":return AL;case"blue":default:return PL}},OL=({progress:e,showPercentage:t=!1,color:n,className:r="",...i})=>{const{defaultColorScheme:o}=ze(),a=n||o,{bgColor:c,fillColor:u}=ML(a),d=Math.min(Math.max(e,0),100);return v.jsxs("div",{className:`flex items-center gap-12 ${r}`,...i,children:[v.jsx("div",{className:`w-full h-8 ${c} rounded-full`,children:v.jsx("div",{className:`h-full ${u} rounded-full transition-all duration-300 ease-in-out`,style:{width:`${d}%`}})}),t&&v.jsxs("span",{className:"text-sm text-gray-400 font-500",children:[d,"%"]})]})},_L=()=>{const[e,t]=I.useState(!1),n=I.useRef(null),r=()=>{t(!0),setTimeout(()=>{var o;return(o=n.current)==null?void 0:o.focus()},100)},i=()=>{t(!1)};return v.jsx("div",{className:"relative flex items-center",children:v.jsxs("div",{className:`flex items-center justify-center bg-white shadow-md rounded-full transition-all duration-300 ease-in-out ${e?"w-[200px] h-[40px]":"size-[40px]"}`,children:[v.jsx("button",{onClick:r,className:"size-[40px] flex items-center justify-center rounded-full hover:bg-gray-100 transition-all",children:v.jsx(De,{icon:B6})}),v.jsx("input",{ref:n,type:"text",className:`w-full outline-none bg-transparent transition-all ${e?"w-full pr-[10px]":"w-0"}`,placeholder:"Buscar...",onBlur:i,style:{border:"none",outline:"none"}})]})})},IL="w-fit transition-colors ease-in-out duration-200 flex items-center justify-center gap-12 px-24 py-7 text-base rounded-full font-600 bg-transparent",DL={true:"bg-blue-100 text-blue-500 hover:bg-blue-100/80 active:bg-blue-100/50 !bg-blue-100",false:"text-gray-800 hover:bg-blue-100/40 hover:text-blue-500 active:bg-blue-100/20 active:text-blue-500"},$L={true:"bg-aqua-100 text-aqua-500 hover:bg-aqua-100/80 active:bg-aqua-100/50 !bg-aqua-100",false:"text-gray-800 hover:bg-aqua-100/40 hover:text-aqua-500 active:bg-aqua-100/20 active:text-aqua-500"},RL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=$L[n];break;case"blue":default:r=DL[n];break}return tr(IL,r)},NL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=ze(),d=c||u,h=p=>{if(i){p.preventDefault();return}n==null||n(p)},m=`${RL(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?v.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&v.jsx(De,{icon:a,className:ko()}),e]}):v.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&v.jsx(De,{icon:a,className:ko()}),e]})},LL="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",kL={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},jL={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},FL="flex h-32 w-32 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",VL={true:"text-blue-500 bg-blue-100 rounded-full",false:"text-gray-800 hover:text-blue-500 active:text-blue-500 group-hover:bg-blue-100 group-hover:text-blue-500"},BL={true:"text-aqua-500 bg-aqua-100 rounded-full",false:"text-gray-800 hover:text-aqua-500 active:text-aqua-500 group-hover:bg-aqua-100 group-hover:text-aqua-500"},$w=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=VL[n];break;case"aqua":default:r=BL[n];break}return tr(FL,r)},WL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=jL[n];break;case"blue":default:r=kL[n];break}return tr(LL,r)},UL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=ze(),d=c||u,h=p=>{if(i){p.preventDefault();return}n==null||n(p)},m=`${WL(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?v.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&v.jsx("div",{className:$w(r,d),children:v.jsx(De,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]}):v.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&v.jsx("div",{className:$w(r,d),children:v.jsx(De,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]})},zL=e=>{const{display:t,...n}=e;return t==="desktop"?v.jsx(NL,{...n}):t==="mobile"?v.jsx(UL,{...n}):null},GL=({options:e,name:t,control:n,label:r="Select an option",placeholder:i="Type to search...",className:o="",input:a=!0})=>v.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:c,value:u},fieldState:{error:d}})=>v.jsx(YL,{options:e,value:u,onChange:c,label:r,placeholder:i,error:d==null?void 0:d.message,className:o,input:a})}),YL=({options:e,value:t,onChange:n,label:r="Select an option",placeholder:i="Type to search...",error:o,className:a="",input:c=!0})=>{const{t:u}=ze(),[d,h]=I.useState(!1),[m,p]=I.useState(""),[y,S]=I.useState(t||null),b=I.useRef(null),E=I.useRef(null),{x:w,y:C,strategy:M,refs:$,context:P}=gi({open:d,onOpenChange:h,middleware:[fi(8),hi(),di({padding:8}),No({apply({availableHeight:N,elements:W}){Object.assign(W.floating.style,{maxHeight:`${Math.min(N-10,300)}px`})},padding:8}),ps({element:E})],placement:"bottom-start",whileElementsMounted:ui}),R=gs(P),k=pi(P),{getReferenceProps:j,getFloatingProps:z}=yi([R,k]),{isMounted:Z,styles:te}=vs(P,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ce=(()=>{const N=Array.isArray(e)?e:[];if(!m.trim())return N;const W=m.toLowerCase();return N.filter(q=>{const O=q.label.toLowerCase(),V=q.key.toLowerCase();return O.includes(W)||V.includes(W)})})(),ve=N=>{S(N),h(!1),p(""),n(N)},fe=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var N;return(N=b.current)==null?void 0:N.focus()},100)};I.useEffect(()=>{S(t)},[t]);const ee=j({onClick:fe}),ne=u(i);return v.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${a}`,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${o?"!text-red-500":""} text-label`,children:r}),v.jsxs("div",{ref:$.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
|
|
730
730
|
border transition-all duration-200 hover:border-blue-400
|
|
731
|
-
${
|
|
731
|
+
${o?"border-red-500 hover:border-red-600":""} ${d?"border-blue-400":"border-blue-100"}`,...ee,children:[y?v.jsx("div",{className:"flex items-center w-full",children:v.jsx("span",{className:"flex-grow font-600 text-body-m",children:u(y.label)})}):v.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:ne}),v.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),o&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:o}),Z&&v.jsxs("div",{ref:$.setFloating,style:{position:M,top:C??0,left:w??0,...te,width:$.reference.current instanceof Element?$.reference.current.clientWidth:void 0,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...z(),children:[c&&v.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:v.jsxs("div",{className:"relative",children:[v.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:v.jsx("svg",{className:"h-16 w-16 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),v.jsx("input",{ref:b,type:"text",className:"w-full py-8 pl-40 pr-12 rounded-full focus:outline-none text-body-s",placeholder:u("search_options"),value:m,onChange:N=>p(N.target.value),onClick:N=>N.stopPropagation(),autoFocus:!0}),m&&v.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:N=>{N.stopPropagation(),p("")},children:v.jsx("svg",{className:"h-16 w-16 text-gray-400 hover:text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]})}),v.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:ce.length>0?v.jsx("ul",{className:"py-4",children:ce.map((N,W)=>v.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${(y==null?void 0:y.key)===N.key?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:q=>{q.stopPropagation(),ve(N)},children:v.jsx("span",{children:u(N.label)})},`${N.key}-${W}`))}):v.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[v.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),v.jsxs("p",{className:"mt-8 text-body-s",children:['No matches found for "',m,'"']})]})})]})]})},HL={activeTextColor:"text-blue-500",activeBgColor:"bg-blue-100",hoverBgColor:"hover:bg-blue-100",activeIconColor:"text-blue-500"},qL={activeTextColor:"text-aqua-500",activeBgColor:"bg-aqua-100",hoverBgColor:"hover:bg-aqua-100",activeIconColor:"text-aqua-500"},KL=e=>{switch(e){case"aqua":return qL;case"blue":default:return HL}},XL=({active:e,icon:t,label:n,onClick:r,expanded:i,disabled:o=!1,color:a})=>{const{defaultColorScheme:c}=ze(),u=a||c,{activeTextColor:d,activeBgColor:h,hoverBgColor:m,activeIconColor:p}=KL(u);return v.jsxs("div",{onClick:()=>!o&&r(),className:`
|
|
732
732
|
flex items-center rounded-full text-gray transition-all duration-150 h-[40px] w-full px-[12.3px]
|
|
733
733
|
${!i&&"w-fit"}
|
|
734
|
-
${
|
|
734
|
+
${o?"cursor-not-allowed opacity-50":`cursor-pointer ${m}`}
|
|
735
735
|
${e?`${d} ${h}`:"bg-transparent"}`,children:[v.jsx(De,{icon:t,className:e?p:"text-gray-900",style:{height:"16px"}}),v.jsx("h4",{className:`
|
|
736
736
|
text-md
|
|
737
737
|
leading-none
|
|
@@ -741,7 +741,7 @@ attempted value: ${o}
|
|
|
741
741
|
transition-all duration-100 ease-in-out
|
|
742
742
|
opacity-0 capitalize
|
|
743
743
|
${i&&"translate-x-0 opacity-100 !w-full !h-auto ml-8"}
|
|
744
|
-
${e&&d}`,children:n})]})},ZL="flex w-full h-full gap-12 px-10 py-6 items-center justify-center",JL={default:"flex-row rounded-full text-blue-500",underline:"flex-col border-b-[1.3px] px-24 pb-16 text-gray-700"},QL={true:"text-blue-500 border-b-blue-500",false:"text-gray-700 border-b-gray-700"},ek=(e="underline",t=!1)=>tr(ZL,JL[e],QL[String(t)]),Rw=({label:e,icon:t,isSelected:n,onClick:r,variant:i="default",direction:
|
|
744
|
+
${e&&d}`,children:n})]})},ZL="flex w-full h-full gap-12 px-10 py-6 items-center justify-center",JL={default:"flex-row rounded-full text-blue-500",underline:"flex-col border-b-[1.3px] px-24 pb-16 text-gray-700"},QL={true:"text-blue-500 border-b-blue-500",false:"text-gray-700 border-b-gray-700"},ek=(e="underline",t=!1)=>tr(ZL,JL[e],QL[String(t)]),Rw=({label:e,icon:t,isSelected:n,onClick:r,variant:i="default",direction:o="row"})=>v.jsxs("button",{className:`${ek(i,n)} w-full cursor-pointer transition-all duration-200 ${o==="row"&&"flex-row!"}`,onClick:r,children:[t&&v.jsx(De,{icon:t,className:`${n?"text-blue-500":"text-gray-500"} w-20 h-20`}),v.jsx("span",{className:"text-lg font-500",children:e})]}),tk="transition-colors ease-in-out duration-200 flex items-center justify-center text-body-m rounded-full w-fit font-600 leading-normal disabled:cursor-not-allowed disabled:text-gray-300",nk={blue:"text-blue-500 hover:text-blue-600 active:text-blue-700",aqua:"text-aqua-500 hover:text-aqua-600 active:text-aqua-700",red:"text-red-500 hover:text-red-600 active:text-red-700",gray:"text-gray-500 hover:text-gray-600 active:text-gray-700"},rk=(e="blue")=>tr(tk,nk[e]),Nw=({color:e,children:t,className:n,...r})=>{const{defaultColorScheme:i}=ze(),o=e||i;return v.jsx("button",{type:"button",className:rk(o)+" "+n,...r,children:t})},ik=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a,rightSide:c,translateKey:u="",...d})=>{const{field:{value:h="",onChange:m,ref:p,onBlur:y},fieldState:{error:S}}=hr.useController({name:n,control:t}),{t:b}=ze(),E=b(n),w=b(u);return v.jsxs("label",{className:`flex flex-col group gap-8 select-none ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${S&&"text-red-500!"} text-label ${o&&"text-gray-300"}`,children:e}),v.jsxs("label",{htmlFor:n,className:`
|
|
745
745
|
flex items-center justify-between gap-8 p-16
|
|
746
746
|
|
|
747
747
|
${S&&"border-red-500!"}
|
|
@@ -750,13 +750,13 @@ attempted value: ${o}
|
|
|
750
750
|
|
|
751
751
|
w-full h-full rounded-full border
|
|
752
752
|
|
|
753
|
-
${h&&!
|
|
754
|
-
${!
|
|
755
|
-
${
|
|
753
|
+
${h&&!o?"border-blue-200":"border-blue-100"}
|
|
754
|
+
${!o&&"group-hover:border-blue-300"}
|
|
755
|
+
${o&&"cursor-not-allowed"}
|
|
756
756
|
|
|
757
757
|
group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
|
|
758
758
|
|
|
759
759
|
group-disabled:bg-gray-500
|
|
760
|
-
`,children:[
|
|
760
|
+
`,children:[a&&a,v.jsx("input",{id:n,name:n,disabled:o,placeholder:r,value:h,onChange:C=>m(C.target.value),onBlur:y,ref:p,className:"group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-hidden",...d}),c&&c]}),v.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:(S==null?void 0:S.message)&&b(S.message,{x:w||E})})]})},sk=({label:e,value:t,className:n})=>v.jsxs("div",{className:`flex flex-col gap-4 ${n||""}`,children:[v.jsx("p",{className:"text-lg font-600 text-gray-800",children:e}),v.jsx("p",{className:"text-base font-400 text-gray-600",children:t})]}),ok=({options:e,onChange:t,value:n,disabled:r,error:i,label:o="Select an option",placeholder:a="Select an option...",className:c="",allowSearch:u=!1})=>{const[d,h]=I.useState(!1),[m,p]=I.useState(""),y=I.useRef(null),S=I.useRef(null),b=e.find(N=>N.value===n),E=I.useMemo(()=>e.map(N=>({...N,searchableLabel:typeof N.label=="string"?N.label:I.isValidElement(N.label)?vl(N.label):String(N.label),searchableValue:String(N.value)})),[e]),w=I.useMemo(()=>{const N={keys:[{name:"searchableLabel",weight:2},{name:"searchableValue",weight:1}],threshold:.2,distance:150,includeScore:!0,includeMatches:!0,ignoreLocation:!0,minMatchCharLength:1,shouldSort:!0,findAllMatches:!0};return new dT(E,N)},[E]),{x:C,y:M,strategy:$,refs:P,context:R}=gi({open:d,onOpenChange:h,middleware:[fi(8),hi(),di({padding:8}),No({apply({availableHeight:N,elements:W}){Object.assign(W.floating.style,{maxHeight:`${Math.min(N-10,300)}px`})},padding:8}),ps({element:S})],placement:"bottom-start",whileElementsMounted:ui}),k=gs(R),j=pi(R),{getReferenceProps:z,getFloatingProps:Z}=yi([k,j]),{isMounted:te,styles:ce}=vs(R,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ve=I.useMemo(()=>m.trim()?w.search(m).map(W=>({...W.item,score:W.score,matches:W.matches})):e,[m,w,e]),fe=N=>{t(N.value),h(!1),p("")},ne=z({onClick:()=>{r||(h(!d),!d&&y.current&&u&&setTimeout(()=>{var N;return(N=y.current)==null?void 0:N.focus()},100))}});return v.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[o&&v.jsx("h6",{className:`text-gray-600 font-600 group ${i?"!text-red-500":""} text-label ${r?"text-gray-300":""}`,children:o}),v.jsxs("div",{ref:P.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
|
|
761
761
|
border transition-all duration-200 ${r?"opacity-60 cursor-not-allowed":"hover:border-blue-400"}
|
|
762
|
-
${i?"border-red-500 hover:border-red-600":""} ${d?"border-blue-400":"border-blue-100"}`,...oe,children:[b?v.jsx("div",{className:"flex items-center w-full",children:v.jsx("span",{className:"flex-grow font-600 text-body-m",children:b.label})}):v.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:o}),v.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),i&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:i}),ne&&v.jsxs("div",{ref:O.setFloating,style:{position:$,top:A??0,left:C??0,...ue,width:O.reference.current instanceof Element?O.reference.current.clientWidth:void 0,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...Q(),children:[u&&v.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:v.jsxs("div",{className:"relative",children:[v.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:v.jsx("svg",{className:"h-16 w-16 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),v.jsx("input",{ref:y,type:"text",className:"w-full py-8 pl-40 pr-12 rounded-full focus:outline-none text-body-s",placeholder:"Search options...",value:m,onChange:j=>p(j.target.value),onClick:j=>j.stopPropagation(),autoFocus:!0}),m&&v.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:j=>{j.stopPropagation(),p("")},children:v.jsx("svg",{className:"h-16 w-16 text-gray-400 hover:text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]})}),v.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:ve.length>0?v.jsx("ul",{className:"py-4",children:ve.map((j,W)=>v.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${n===j.value?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:q=>{q.stopPropagation(),de(j)},children:v.jsx("span",{children:j.label})},`${j.value}-${W}`))}):v.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[v.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),v.jsxs("p",{className:"mt-8 text-body-s",children:['No matches found for "',m,'"']})]})})]})]})},vl=e=>{if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);if(!e)return"";if(I.isValidElement(e)){const n=e.props.children;return n?Array.isArray(n)?n.map(vl).join(" "):vl(n):""}return Array.isArray(e)?e.map(vl).join(" "):""},Lw=({size:e=100,strokeWidth:t=4,color:n="#1DA696",duration:r=3e3,label:i="",initialProgress:a=0,automaticProgress:o=!0,...c})=>{const[u,d]=I.useState(a),h=(e-t)/2,m=2*Math.PI*h,p=m*(1-u/100),{className:y="",...S}=c;return I.useEffect(()=>{if(!o)return;let b,E;const w=C=>{b||(b=C);const A=C-b,$=Math.min(100,A/r*100);d($),$<100&&(E=requestAnimationFrame(w))};return E=requestAnimationFrame(w),()=>{E&&cancelAnimationFrame(E)}},[r,o]),v.jsxs("div",{...S,className:`relative flex items-center justify-center ${y}`,children:[v.jsxs("svg",{height:e,width:e,className:"transform -rotate-90",children:[v.jsx("circle",{stroke:"#E5E7EB",fill:"transparent",strokeWidth:t,r:h,cx:e/2,cy:e/2}),v.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:m,strokeDashoffset:p,strokeLinecap:"round",r:h,cx:e/2,cy:e/2})]}),v.jsxs("div",{className:"absolute flex flex-col items-center justify-center",children:[i&&v.jsx("div",{className:"text-xs font-medium text-gray-500",children:i}),v.jsxs("div",{className:"text-lg font-semibold",style:{color:n},children:[Math.round(u),"%"]})]})]})},ak=({title:e="drag_and_drop_your_files_here",subtitle:t=null,buttonTitle:n="choose_files",onUpload:r=()=>{},acceptedExtensions:i=["pdf","png","jpg","jpeg","svg","docx","doc","xls","xlsx"],maxSize:a=1024,loading:o=!1,loadingDuration:c=1e4,className:u=""})=>{const{t:d}=ze(),[h,m]=I.useState(!1),[p,y]=I.useState(""),S=I.useRef(null),b=i.map(V=>`.${V}`).join(","),E=V=>{const F=[];let z=!1;Array.from(V).forEach(Q=>{var ue;const ne=((ue=Q.name.split(".").pop())==null?void 0:ue.toLowerCase())||"";if(!i.includes(ne)){y(`El archivo ${Q.name} tiene una extensión no permitida.`),z=!0;return}if(Q.size>a*1024){y(`El archivo ${Q.name} excede el tamaño máximo de ${a}KB.`),z=!0;return}F.push(Q)}),!z&&F.length>0&&(y(""),r(F))},w=()=>{S.current&&S.current.click()},C=V=>{const F=V.target.files;F&&F.length>0&&E(F),V.target.value=""},A=V=>{V.preventDefault(),V.stopPropagation(),m(!0)},$=V=>{V.preventDefault(),V.stopPropagation(),m(!1)},O=V=>{V.preventDefault(),V.stopPropagation(),h||m(!0)},R=V=>{V.preventDefault(),V.stopPropagation(),m(!1);const F=V.dataTransfer.files;F.length>0&&E(F)};return o?v.jsx("div",{className:`w-full mx-auto font-sans h-full ${u} flex flex-col grow`,children:v.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full flex flex-col grow",children:v.jsxs("div",{className:"h-full grow flex items-center justify-center gap-16 border-[1.4px] border-dashed rounded-2xl pt-28 p-32 text-center transition-all duration-300 border-blue-100 select-none",children:[v.jsx(Lw,{size:75,duration:c,strokeWidth:6,color:"#4570EB"}),v.jsxs("h4",{className:"text-body-s text-gray-400",children:[d("loading"),"..."]})]})})}):v.jsxs("div",{className:`w-full mx-auto font-sans h-full flex flex-col ${u}`,children:[v.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full grow",children:v.jsxs("div",{className:`flex flex-col border-[1.4px] h-full grow border-dashed items-center justify-center rounded-2xl pt-28 p-32 text-center cursor-pointer transition-all duration-300 ${h?"border-blue-400 bg-blue-100/50":"border-blue-100 hover:border-blue-400"}`,onDragEnter:A,onDragLeave:$,onDragOver:O,onDrop:R,onClick:w,children:[v.jsx("div",{className:"flex justify-center translate-y-4",children:v.jsx("img",{className:"w-full h-auto max-w-160",src:"/images/svg/empty-state/empty-state-upload.svg",alt:"empty-state"})}),v.jsxs("div",{className:"flex flex-col items-center",children:[v.jsx("h3",{className:"font-600 text-xl text-dark",children:d(e)}),t&&v.jsx("p",{className:"font-400 text-lg text-gray-500",children:d(t)}),v.jsx(Nw,{color:"blue",children:d(n)}),v.jsx("input",{type:"file",ref:S,className:"hidden",multiple:!0,accept:b,onChange:C})]})]})}),p&&v.jsx("div",{className:"mt-3 text-sm text-red-500 shrink-0",children:p}),v.jsx("div",{className:"mt-10 w-full flex justify-center shrink-0",children:v.jsxs("span",{className:"text-gray-500 font-400 text-base",children:[i.join(", ").toUpperCase()," ",d("formats"),". ",d("maximum_size"),":"," ",wv(a,"mb")]})})]})},ln=8,lk=1e3,ck="300px",uk={top:"bottom",right:"left",bottom:"top",left:"right"},fk={top:{borderLeft:`${ln}px solid transparent`,borderRight:`${ln}px solid transparent`,borderTop:`${ln}px solid #C7C8CA`},bottom:{borderLeft:`${ln}px solid transparent`,borderRight:`${ln}px solid transparent`,borderBottom:`${ln}px solid #C7C8CA`},left:{borderTop:`${ln}px solid transparent`,borderBottom:`${ln}px solid transparent`,borderLeft:`${ln}px solid #C7C8CA`},right:{borderTop:`${ln}px solid transparent`,borderBottom:`${ln}px solid transparent`,borderRight:`${ln}px solid #C7C8CA`}},dk=({children:e,message:t,className:n="",placement:r="top",offset:i=8,delay:a=0})=>{const[o,c]=I.useState(!1),u=I.useRef(null),{x:d,y:h,strategy:m,placement:p,refs:y,context:S,middlewareData:b}=gi({open:o,onOpenChange:c,placement:r,middleware:[fi(i),hi(),di({padding:8}),ps({element:u})],whileElementsMounted:ui}),E=z5(S,{delay:a}),w=K5(S),C=pi(S),A=Z5(S,{role:"tooltip"}),{getReferenceProps:$,getFloatingProps:O}=yi([E,w,C,A]),R=p.split("-")[0],V=uk[R],{x:F,y:z}=b.arrow||{x:0,y:0},Q=I.cloneElement(e,{ref:y.setReference,...$()});return v.jsxs(v.Fragment,{children:[Q,v.jsx(Kn,{children:o&&v.jsx("div",{ref:y.setFloating,style:{position:m,top:h??0,left:d??0,zIndex:lk,width:"max-content",maxWidth:ck},...O(),children:v.jsxs(Ze.div,{className:`py-10 px-16 rounded-xl text-md bg-gray-200 text-gray-800 font-600 shadow-lg ${n} relative`,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.1,ease:"easeOut"},children:[t,v.jsx("div",{ref:u,className:"absolute w-0 h-0 tooltip-arrow-light",style:{position:"absolute",left:F!=null?`${F}px`:"",top:z!=null?`${z}px`:"",[V]:"-7px",...fk[R]}})]})})})]})},hk="Alejo",mk=({theme:e={},children:t})=>{const n={...Md,...e};return v.jsx(bx.Provider,{value:n,children:t})};ae.ActionButton=kC,ae.AlertModal=xx,ae.AsyncToast=tv,ae.Avatar=cw,ae.BoxContainer=bs,ae.Button=jo,ae.CalendarSelector=Xd,ae.CenterModal=gw,ae.Checkbox=RN,ae.CountryDropdown=pL,ae.CountryInput=hL,ae.CountryLabel=mL,ae.DateInput=iN,ae.DialogModal=rw,ae.Divider=pw,ae.Dropdown=aN,ae.FileUpload=lN,ae.FloatingMenu=Lo,ae.IconButton=uh,ae.ImageProfileInput=vL,ae.IndexedStep=sw,ae.IndexedStepper=cN,ae.InfoCard=xL,ae.InformationContainer=ow,ae.InformationDisclaimer=SL,ae.LoadingProgress=Lw,ae.LoadingSpinner=TL,ae.ModalContainer=xN,ae.Organism=hk,ae.PasswordInput=EL,ae.PhoneInput=CL,ae.ProgressBar=ML,ae.SearchBar=_L,ae.SearchModal=fN,ae.SectionButton=zL,ae.SelectInput=GL,ae.SidebarButton=XL,ae.Stepper=gN,ae.Tab=Rw,ae.Tabs=yN,ae.TextButton=Nw,ae.TextInput=ik,ae.TextStaticInput=sk,ae.ThemeProvider=mk,ae.Toast=pf,ae.Tooltip=dk,ae.UncontrolledDateInput=bN,ae.UncontrolledSelector=ok,ae.UncontrolledTextInput=Zd,ae.UploadContainer=ak,ae.capitalizeFirstLetter=xv,ae.closeModal=TN,ae.defaultTheme=Md,ae.formatLocalizedDate=cD,ae.getImageUrl=Sv,ae.openCustomModal=SN,ae.openModal=wN,ae.renderTabContent=EN,ae.showToastAsync=th,ae.showToastLoading=lw,ae.stringToColor=gf,ae.toBase64=uD,ae.toast=CN,ae.translateBytes=wv,ae.useTheme=ze,ae.yupImageProfileValidator=bL,Object.defineProperty(ae,Symbol.toStringTag,{value:"Module"})});
|
|
762
|
+
${i?"border-red-500 hover:border-red-600":""} ${d?"border-blue-400":"border-blue-100"}`,...ne,children:[b?v.jsx("div",{className:"flex items-center w-full",children:v.jsx("span",{className:"flex-grow font-600 text-body-m",children:b.label})}):v.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:a}),v.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),i&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:i}),te&&v.jsxs("div",{ref:P.setFloating,style:{position:$,top:M??0,left:C??0,...ce,width:P.reference.current instanceof Element?P.reference.current.clientWidth:void 0,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...Z(),children:[u&&v.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:v.jsxs("div",{className:"relative",children:[v.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:v.jsx("svg",{className:"h-16 w-16 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),v.jsx("input",{ref:y,type:"text",className:"w-full py-8 pl-40 pr-12 rounded-full focus:outline-none text-body-s",placeholder:"Search options...",value:m,onChange:N=>p(N.target.value),onClick:N=>N.stopPropagation(),autoFocus:!0}),m&&v.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:N=>{N.stopPropagation(),p("")},children:v.jsx("svg",{className:"h-16 w-16 text-gray-400 hover:text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]})}),v.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:ve.length>0?v.jsx("ul",{className:"py-4",children:ve.map((N,W)=>v.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${n===N.value?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:q=>{q.stopPropagation(),fe(N)},children:v.jsx("span",{children:N.label})},`${N.value}-${W}`))}):v.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[v.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),v.jsxs("p",{className:"mt-8 text-body-s",children:['No matches found for "',m,'"']})]})})]})]})},vl=e=>{if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);if(!e)return"";if(I.isValidElement(e)){const n=e.props.children;return n?Array.isArray(n)?n.map(vl).join(" "):vl(n):""}return Array.isArray(e)?e.map(vl).join(" "):""},Lw=({size:e=100,strokeWidth:t=4,color:n="#1DA696",duration:r=3e3,label:i="",initialProgress:o=0,automaticProgress:a=!0,...c})=>{const[u,d]=I.useState(o),h=(e-t)/2,m=2*Math.PI*h,p=m*(1-u/100),{className:y="",...S}=c;return I.useEffect(()=>{if(!a)return;let b,E;const w=C=>{b||(b=C);const M=C-b,$=Math.min(100,M/r*100);d($),$<100&&(E=requestAnimationFrame(w))};return E=requestAnimationFrame(w),()=>{E&&cancelAnimationFrame(E)}},[r,a]),v.jsxs("div",{...S,className:`relative flex items-center justify-center ${y}`,children:[v.jsxs("svg",{height:e,width:e,className:"transform -rotate-90",children:[v.jsx("circle",{stroke:"#E5E7EB",fill:"transparent",strokeWidth:t,r:h,cx:e/2,cy:e/2}),v.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:m,strokeDashoffset:p,strokeLinecap:"round",r:h,cx:e/2,cy:e/2})]}),v.jsxs("div",{className:"absolute flex flex-col items-center justify-center",children:[i&&v.jsx("div",{className:"text-xs font-medium text-gray-500",children:i}),v.jsxs("div",{className:"text-lg font-semibold",style:{color:n},children:[Math.round(u),"%"]})]})]})},ak=({title:e="drag_and_drop_your_files_here",subtitle:t=null,buttonTitle:n="choose_files",onUpload:r=()=>{},acceptedExtensions:i=["pdf","png","jpg","jpeg","svg","docx","doc","xls","xlsx"],maxSize:o=1024,loading:a=!1,loadingDuration:c=1e4,className:u=""})=>{const{t:d}=ze(),[h,m]=I.useState(!1),[p,y]=I.useState(""),S=I.useRef(null),b=i.map(k=>`.${k}`).join(","),E=k=>{const j=[];let z=!1;Array.from(k).forEach(Z=>{var ce;const te=((ce=Z.name.split(".").pop())==null?void 0:ce.toLowerCase())||"";if(!i.includes(te)){y(`El archivo ${Z.name} tiene una extensión no permitida.`),z=!0;return}if(Z.size>o*1024){y(`El archivo ${Z.name} excede el tamaño máximo de ${o}KB.`),z=!0;return}j.push(Z)}),!z&&j.length>0&&(y(""),r(j))},w=()=>{S.current&&S.current.click()},C=k=>{const j=k.target.files;j&&j.length>0&&E(j),k.target.value=""},M=k=>{k.preventDefault(),k.stopPropagation(),m(!0)},$=k=>{k.preventDefault(),k.stopPropagation(),m(!1)},P=k=>{k.preventDefault(),k.stopPropagation(),h||m(!0)},R=k=>{k.preventDefault(),k.stopPropagation(),m(!1);const j=k.dataTransfer.files;j.length>0&&E(j)};return a?v.jsx("div",{className:`w-full mx-auto font-sans h-full ${u} flex flex-col grow`,children:v.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full flex flex-col grow",children:v.jsxs("div",{className:"h-full grow flex items-center justify-center gap-16 border-[1.4px] border-dashed rounded-2xl pt-28 p-32 text-center transition-all duration-300 border-blue-100 select-none",children:[v.jsx(Lw,{size:75,duration:c,strokeWidth:6,color:"#4570EB"}),v.jsxs("h4",{className:"text-body-s text-gray-400",children:[d("loading"),"..."]})]})})}):v.jsxs("div",{className:`w-full mx-auto font-sans h-full flex flex-col ${u}`,children:[v.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full grow",children:v.jsxs("div",{className:`flex flex-col border-[1.4px] h-full grow border-dashed items-center justify-center rounded-2xl pt-28 p-32 text-center cursor-pointer transition-all duration-300 ${h?"border-blue-400 bg-blue-100/50":"border-blue-100 hover:border-blue-400"}`,onDragEnter:M,onDragLeave:$,onDragOver:P,onDrop:R,onClick:w,children:[v.jsx("div",{className:"flex justify-center translate-y-4",children:v.jsx("img",{className:"w-full h-auto max-w-160",src:"/images/svg/empty-state/empty-state-upload.svg",alt:"empty-state"})}),v.jsxs("div",{className:"flex flex-col items-center",children:[v.jsx("h3",{className:"font-600 text-xl text-dark",children:d(e)}),t&&v.jsx("p",{className:"font-400 text-lg text-gray-500",children:d(t)}),v.jsx(Nw,{color:"blue",children:d(n)}),v.jsx("input",{type:"file",ref:S,className:"hidden",multiple:!0,accept:b,onChange:C})]})]})}),p&&v.jsx("div",{className:"mt-3 text-sm text-red-500 shrink-0",children:p}),v.jsx("div",{className:"mt-10 w-full flex justify-center shrink-0",children:v.jsxs("span",{className:"text-gray-500 font-400 text-base",children:[i.join(", ").toUpperCase()," ",d("formats"),". ",d("maximum_size"),":"," ",wv(o,"mb")]})})]})},ln=8,lk=1e3,ck="300px",uk={top:"bottom",right:"left",bottom:"top",left:"right"},fk={top:{borderLeft:`${ln}px solid transparent`,borderRight:`${ln}px solid transparent`,borderTop:`${ln}px solid #C7C8CA`},bottom:{borderLeft:`${ln}px solid transparent`,borderRight:`${ln}px solid transparent`,borderBottom:`${ln}px solid #C7C8CA`},left:{borderTop:`${ln}px solid transparent`,borderBottom:`${ln}px solid transparent`,borderLeft:`${ln}px solid #C7C8CA`},right:{borderTop:`${ln}px solid transparent`,borderBottom:`${ln}px solid transparent`,borderRight:`${ln}px solid #C7C8CA`}},dk=({children:e,message:t,className:n="",placement:r="top",offset:i=8,delay:o=0})=>{const[a,c]=I.useState(!1),u=I.useRef(null),{x:d,y:h,strategy:m,placement:p,refs:y,context:S,middlewareData:b}=gi({open:a,onOpenChange:c,placement:r,middleware:[fi(i),hi(),di({padding:8}),ps({element:u})],whileElementsMounted:ui}),E=zR(S,{delay:o}),w=KR(S),C=pi(S),M=ZR(S,{role:"tooltip"}),{getReferenceProps:$,getFloatingProps:P}=yi([E,w,C,M]),R=p.split("-")[0],k=uk[R],{x:j,y:z}=b.arrow||{x:0,y:0},Z=I.cloneElement(e,{ref:y.setReference,...$()});return v.jsxs(v.Fragment,{children:[Z,v.jsx(Kn,{children:a&&v.jsx("div",{ref:y.setFloating,style:{position:m,top:h??0,left:d??0,zIndex:lk,width:"max-content",maxWidth:ck},...P(),children:v.jsxs(Ze.div,{className:`py-10 px-16 rounded-xl text-md bg-gray-200 text-gray-800 font-600 shadow-lg ${n} relative`,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.1,ease:"easeOut"},children:[t,v.jsx("div",{ref:u,className:"absolute w-0 h-0 tooltip-arrow-light",style:{position:"absolute",left:j!=null?`${j}px`:"",top:z!=null?`${z}px`:"",[k]:"-7px",...fk[R]}})]})})})]})},hk=({progress:e,showPercentage:t=!0,showLabel:n=!1,percentageLabel:r="progreso",className:i="",size:o=120,strokeWidth:a=8,backgroundColor:c="#e5e7eb",animated:u=!0,animationDuration:d="1.5s",colorThresholds:h,lowThreshold:m=30,mediumThreshold:p=70,lowColor:y="#ef4444",mediumColor:S="#eab308",highColor:b="#22c55e",singleColor:E,clockwise:w=!0,startAngle:C=-90})=>{const M=ee=>{if(E)return E;if(h&&h.length>0){const ne=[...h].sort((N,W)=>N.threshold-W.threshold);for(let N=ne.length-1;N>=0;N--)if(ee>=ne[N].threshold)return ne[N].color;return ne[0].color}return ee<m?y:ee<p?S:b},$=ee=>{if(!h||h.length===0)return;const ne=[...h].sort((N,W)=>N.threshold-W.threshold);for(let N=ne.length-1;N>=0;N--)if(ee>=ne[N].threshold)return ne[N].label;return ne[0].label},P=Math.min(100,Math.max(0,e)),R=M(P),k=$(P),j=o/2,z=(o-a)/2,Z=2*Math.PI*z,te=Z,ce=Z-P/100*Z,fe=`rotate(${C} ${j} ${j}) scale(${w?1:-1}, 1)`;return v.jsxs("div",{className:`flex flex-col items-center gap-2 ${i}`,children:[v.jsxs("div",{className:"relative",style:{width:o,height:o},children:[v.jsxs("svg",{width:o,height:o,className:"transform -rotate-90",viewBox:`0 0 ${o} ${o}`,children:[v.jsx("circle",{cx:j,cy:j,r:z,fill:"transparent",stroke:c,strokeWidth:a,className:"opacity-20"}),v.jsx("circle",{cx:j,cy:j,r:z,fill:"transparent",stroke:R,strokeWidth:a,strokeDasharray:te,strokeDashoffset:ce,strokeLinecap:"round",transform:fe,className:u?"transition-all ease-out":"",style:u?{transitionDuration:d,transitionProperty:"stroke-dashoffset, stroke"}:{}})]}),t&&v.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:v.jsxs("div",{className:"text-center",children:[v.jsxs("div",{className:"text-2xl font-bold text-gray-800",children:[Math.round(P),"%"]}),n&&v.jsx("div",{className:"text-xs text-gray-500 mt-1",children:k||r})]})})]}),n&&!t&&v.jsxs("div",{className:"text-sm text-gray-600 text-center",children:[v.jsxs("span",{className:"font-medium",children:[Math.round(P),"%"]}),k&&v.jsxs("span",{className:"text-xs text-gray-500 block",children:["(",k,")"]}),v.jsx("span",{className:"text-gray-500",children:r})]})]})},mk=({progress:e,showPercentage:t=!1,percentageLabel:n="",className:r="",height:i="h-5",backgroundColor:o="bg-gray-200",animated:a=!0,animationDuration:c="duration-300",colorThresholds:u,lowThreshold:d=30,mediumThreshold:h=70,lowColor:m="bg-red-500",mediumColor:p="bg-yellow-500",highColor:y="bg-green-500",singleColor:S})=>{const b=P=>{if(S)return S;if(u&&u.length>0){const R=[...u].sort((k,j)=>k.threshold-j.threshold);for(let k=R.length-1;k>=0;k--)if(P>=R[k].threshold)return R[k].color;return R[0].color}return P<d?m:P<h?p:y},E=P=>{if(!u||u.length===0)return;const R=[...u].sort((k,j)=>k.threshold-j.threshold);for(let k=R.length-1;k>=0;k--)if(P>=R[k].threshold)return R[k].label;return R[0].label},w=Math.min(100,Math.max(0,e)),C=b(w),M=E(w),$=a?`transition-all ${c} ease-in-out`:"";return v.jsxs("div",{className:`w-full flex gap-4 items-center ${r}`,children:[v.jsx("div",{className:`flex-1 ${o} rounded-full ${i} overflow-hidden`,children:v.jsx("div",{className:`h-full ${C} ${$} rounded-full`,style:{width:`${w}%`}})}),t&&v.jsxs("div",{className:"text-sm text-gray-700 font-medium text-nowrap flex items-center gap-1",children:[v.jsxs("span",{className:"font-bold",children:[Math.round(w),"%"]}),M&&v.jsxs("span",{className:"text-xs text-gray-500",children:["(",M,")"]}),v.jsx("span",{className:"text-gray-600",children:n})]})]})},pk="Alejo",gk=({theme:e={},children:t})=>{const n={...Od,...e};return v.jsx(bx.Provider,{value:n,children:t})};oe.ActionButton=kC,oe.AlertModal=xx,oe.AsyncToast=tv,oe.Avatar=cw,oe.BoxContainer=bs,oe.Button=jo,oe.CalendarSelector=Xd,oe.CenterModal=gw,oe.Checkbox=RN,oe.CountryDropdown=pL,oe.CountryInput=hL,oe.CountryLabel=mL,oe.DateInput=iN,oe.DialogModal=rw,oe.Divider=pw,oe.Dropdown=aN,oe.FileUpload=lN,oe.FloatingMenu=Lo,oe.IconButton=uh,oe.ImageProfileInput=vL,oe.IndexedStep=sw,oe.IndexedStepper=cN,oe.InfoCard=xL,oe.InformationContainer=ow,oe.InformationDisclaimer=SL,oe.LoadingProgress=Lw,oe.LoadingSpinner=TL,oe.ModalContainer=xN,oe.Organism=pk,oe.PasswordInput=EL,oe.PhoneInput=CL,oe.ProgressBar=OL,oe.SearchBar=_L,oe.SearchModal=fN,oe.SectionButton=zL,oe.SelectInput=GL,oe.SidebarButton=XL,oe.Stepper=gN,oe.Tab=Rw,oe.Tabs=yN,oe.TextButton=Nw,oe.TextInput=ik,oe.TextStaticInput=sk,oe.ThemeProvider=gk,oe.ThresholdCircleProgress=hk,oe.Toast=pf,oe.Tooltip=dk,oe.TresholdProgressBar=mk,oe.UncontrolledDateInput=bN,oe.UncontrolledSelector=ok,oe.UncontrolledTextInput=Zd,oe.UploadContainer=ak,oe.capitalizeFirstLetter=xv,oe.closeModal=TN,oe.defaultTheme=Od,oe.formatLocalizedDate=cD,oe.getImageUrl=Sv,oe.openCustomModal=SN,oe.openModal=wN,oe.renderTabContent=EN,oe.showToastAsync=th,oe.showToastLoading=lw,oe.stringToColor=gf,oe.toBase64=uD,oe.toast=CN,oe.translateBytes=wv,oe.useTheme=ze,oe.yupImageProfileValidator=bL,Object.defineProperty(oe,Symbol.toStringTag,{value:"Module"})});
|