lawgic-dev-kit 0.17.0 → 0.17.4

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.
@@ -1,4 +1,4 @@
1
- (function(se,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):(se=typeof globalThis<"u"?globalThis:se||self,I(se.lawgicDevKit={},se.React,se.reactHookForm,se.Fuse,se.ReactDOM))})(this,function(se,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 Z=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={};/**
1
+ (function(se,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):(se=typeof globalThis<"u"?globalThis:se||self,I(se.lawgicDevKit={},se.React,se.reactHookForm,se.Fuse,se.ReactDOM))})(this,function(se,I,hr,hT,mT){"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 Z=Om(I),pT=Om(mT);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,a){var o=null;if(a!==void 0&&(o=""+a),i.key!==void 0&&(o=""+i.key),"key"in i){a={};for(var c in i)c!=="key"&&(a[c]=i[c])}else a=i;return i=a.ref,{$$typeof:e,type:r,key:o,ref:i!==void 0?i:null,props:a}}return Ls.Fragment=t,Ls.jsx=n,Ls.jsxs=n,Ls}var ks={};/**
9
+ */var Im;function gT(){if(Im)return Ls;Im=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,a){var o=null;if(a!==void 0&&(o=""+a),i.key!==void 0&&(o=""+i.key),"key"in i){a={};for(var c in i)c!=="key"&&(a[c]=i[c])}else a=i;return i=a.ref,{$$typeof:e,type:r,key:o,ref:i!==void 0?i:null,props:a}}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(O){if(O==null)return null;if(typeof O=="function")return O.$$typeof===Q?null:O.displayName||O.name||null;if(typeof O=="string")return O;switch(O){case b:return"Fragment";case w:return"Profiler";case T: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 A:return(O.displayName||"Context")+".Provider";case C:return(O._context.displayName||"Context")+".Consumer";case D:var N=O.render;return O=O.displayName,O||(O=N.displayName||N.name||"",O=O!==""?"ForwardRef("+O+")":"ForwardRef"),O;case k:return N=O.displayName||null,N!==null?N:e(O.type)||"Memo";case F:N=O._payload,O=O._init;try{return e(O(N))}catch{}}return null}function t(O){return""+O}function n(O){try{t(O);var N=!1}catch{N=!0}if(N){N=console;var X=N.error,ne=typeof Symbol=="function"&&Symbol.toStringTag&&O[Symbol.toStringTag]||O.constructor.name||"Object";return X.call(N,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ne),t(O)}}function r(O){if(O===b)return"<>";if(typeof O=="object"&&O!==null&&O.$$typeof===F)return"<...>";try{var N=e(O);return N?"<"+N+">":"<...>"}catch{return"<...>"}}function i(){var O=ee.A;return O===null?null:O.getOwner()}function a(){return Error("react-stack-top-frame")}function o(O){if(ce.call(O,"key")){var N=Object.getOwnPropertyDescriptor(O,"key").get;if(N&&N.isReactWarning)return!1}return O.key!==void 0}function c(O,N){function X(){te||(te=!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)",N))}X.isReactWarning=!0,Object.defineProperty(O,"key",{get:X,configurable:!0})}function u(){var O=e(this.type);return oe[O]||(oe[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,N,X,ne,ae,G,re,he){return X=G.ref,O={$$typeof:y,type:O,key:N,props:G,_owner:ae},(X!==void 0?X: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:re}),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,N,X,ne,ae,G,re,he){var fe=N.children;if(fe!==void 0)if(ne)if(ye(fe)){for(ne=0;ne<fe.length;ne++)m(fe[ne]);Object.freeze&&Object.freeze(fe)}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(fe);if(ce.call(N,"key")){fe=e(O);var ve=Object.keys(N).filter(function(Le){return Le!=="key"});ne=0<ve.length?"{key: someKey, "+ve.join(": ..., ")+": ...}":"{key: someKey}",H[fe+ne]||(ve=0<ve.length?"{"+ve.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var $m;function yT(){return $m||($m=1,process.env.NODE_ENV!=="production"&&function(){function e(O){if(O==null)return null;if(typeof O=="function")return O.$$typeof===Q?null:O.displayName||O.name||null;if(typeof O=="string")return O;switch(O){case b:return"Fragment";case w:return"Profiler";case T: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 A:return(O.displayName||"Context")+".Provider";case C:return(O._context.displayName||"Context")+".Consumer";case $:var N=O.render;return O=O.displayName,O||(O=N.displayName||N.name||"",O=O!==""?"ForwardRef("+O+")":"ForwardRef"),O;case k:return N=O.displayName||null,N!==null?N:e(O.type)||"Memo";case F:N=O._payload,O=O._init;try{return e(O(N))}catch{}}return null}function t(O){return""+O}function n(O){try{t(O);var N=!1}catch{N=!0}if(N){N=console;var X=N.error,ne=typeof Symbol=="function"&&Symbol.toStringTag&&O[Symbol.toStringTag]||O.constructor.name||"Object";return X.call(N,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ne),t(O)}}function r(O){if(O===b)return"<>";if(typeof O=="object"&&O!==null&&O.$$typeof===F)return"<...>";try{var N=e(O);return N?"<"+N+">":"<...>"}catch{return"<...>"}}function i(){var O=ee.A;return O===null?null:O.getOwner()}function a(){return Error("react-stack-top-frame")}function o(O){if(ce.call(O,"key")){var N=Object.getOwnPropertyDescriptor(O,"key").get;if(N&&N.isReactWarning)return!1}return O.key!==void 0}function c(O,N){function X(){te||(te=!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)",N))}X.isReactWarning=!0,Object.defineProperty(O,"key",{get:X,configurable:!0})}function u(){var O=e(this.type);return oe[O]||(oe[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,N,X,ne,ae,G,re,he){return X=G.ref,O={$$typeof:y,type:O,key:N,props:G,_owner:ae},(X!==void 0?X: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:re}),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,N,X,ne,ae,G,re,he){var fe=N.children;if(fe!==void 0)if(ne)if(ye(fe)){for(ne=0;ne<fe.length;ne++)m(fe[ne]);Object.freeze&&Object.freeze(fe)}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(fe);if(ce.call(N,"key")){fe=e(O);var ve=Object.keys(N).filter(function(Le){return Le!=="key"});ne=0<ve.length?"{key: someKey, "+ve.join(": ..., ")+": ...}":"{key: someKey}",H[fe+ne]||(ve=0<ve.length?"{"+ve.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} />`,ne,fe,ve,fe),H[fe+ne]=!0)}if(fe=null,X!==void 0&&(n(X),fe=""+X),o(N)&&(n(N.key),fe=""+N.key),"key"in N){X={};for(var xe in N)xe!=="key"&&(X[xe]=N[xe])}else X=N;return fe&&c(X,typeof O=="function"?O.displayName||O.name||"Unknown":O),d(O,fe,G,ae,i(),X,re,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"),T=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),A=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),Q=Symbol.for("react.client.reference"),ee=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce=Object.prototype.hasOwnProperty,ye=Array.isArray,ue=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function(O){return O()}};var te,oe={},V=p["react-stack-bottom-frame"].bind(p,a)(),W=ue(r(a)),H={};ks.Fragment=b,ks.jsx=function(O,N,X,ne,ae){var G=1e4>ee.recentlyCreatedOwnerStacks++;return h(O,N,X,!1,ne,ae,G?Error("react-stack-top-frame"):V,G?ue(r(O)):W)},ks.jsxs=function(O,N,X,ne,ae){var G=1e4>ee.recentlyCreatedOwnerStacks++;return h(O,N,X,!0,ne,ae,G?Error("react-stack-top-frame"):V,G?ue(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();/*!
22
+ <%s key={someKey} {...props} />`,ne,fe,ve,fe),H[fe+ne]=!0)}if(fe=null,X!==void 0&&(n(X),fe=""+X),o(N)&&(n(N.key),fe=""+N.key),"key"in N){X={};for(var xe in N)xe!=="key"&&(X[xe]=N[xe])}else X=N;return fe&&c(X,typeof O=="function"?O.displayName||O.name||"Unknown":O),d(O,fe,G,ae,i(),X,re,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"),T=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),A=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"),F=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),Q=Symbol.for("react.client.reference"),ee=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce=Object.prototype.hasOwnProperty,ye=Array.isArray,ue=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function(O){return O()}};var te,oe={},V=p["react-stack-bottom-frame"].bind(p,a)(),W=ue(r(a)),H={};ks.Fragment=b,ks.jsx=function(O,N,X,ne,ae){var G=1e4>ee.recentlyCreatedOwnerStacks++;return h(O,N,X,!1,ne,ae,G?Error("react-stack-top-frame"):V,G?ue(r(O)):W)},ks.jsxs=function(O,N,X,ne,ae){var G=1e4>ee.recentlyCreatedOwnerStacks++;return h(O,N,X,!0,ne,ae,G?Error("react-stack-top-frame"):V,G?ue(r(O)):W)}}()),ks}var Dm;function vT(){return Dm||(Dm=1,process.env.NODE_ENV==="production"?ta.exports=gT():ta.exports=yT()),ta.exports}var v=vT();/*!
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"}},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=J({},Wm);Jm[wt]=J(J(J(J({},{"fa-duotone":"duotone"}),Wm[wt]),Gm.kit),Gm["kit-duotone"]);const qT=js(Jm),vc=J({},OT);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,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}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 bT(e,t,n){return(t=wT(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){bT(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 xT(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 wT(e){var t=xT(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 ST=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,TT=/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"}},ET={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Um=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",ra="duotone",CT="sharp",PT="sharp-duotone",zm=[wt,ra,CT,PT],AT={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"}},MT={"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}]]),_T={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"}},IT=["fak","fa-kit","fakd","fa-kit-duotone"],Gm={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},$T=["kit"],DT={kit:{"fa-kit":"fak"}},RT=["fak","fakd"],NT={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"},LT=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],kT=["fak","fa-kit","fakd","fa-kit-duotone"],jT={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},FT={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"}},VT={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"}},BT=["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",...LT,...BT],WT=["solid","regular","light","thin","duotone","brands"],Hm=[1,2,3,4,5,6,7,8,9,10],UT=Hm.concat([11,12,13,14,15,16,17,18,19,20]),zT=[...Object.keys(VT),...WT,"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(UT.map(e=>"w-".concat(e))),GT={"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",YT="data-fa-pseudo-element-pending",gc="data-prefix",yc="data-icon",Xm="fontawesome-i2svg",HT="async",qT=["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 KT=js(Jm),vc=J({},_T);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]),NT.kit);const xc=js(bc),wc=J({},FT);wc[wt]=J(J({},wc[wt]),DT.kit),js(wc);const XT=ST,ep="fa-layers-text",ZT=TT,JT=J({},AT);js(JT);const QT=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Sc=ET,eE=[...$T,...zT],Fs=mr.FontAwesomeConfig||{};function tE(e){var t=Xe.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function nE(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=nE(tE(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 Di=J(J({},tp),Fs);Di.autoReplaceSvg||(Di.observeMutations=!1);const ge={};Object.keys(tp).forEach(e=>{Object.defineProperty(ge,e,{enumerable:!0,set:function(t){Di[e]=t,Vs.forEach(n=>n(ge))},get:function(){return Di[e]}})}),Object.defineProperty(ge,"familyPrefix",{enumerable:!0,set:function(e){Di.cssPrefix=e,Vs.forEach(t=>t(ge))},get:function(){return Di.cssPrefix}}),mr.FontAwesomeConfig=ge;const Vs=[];function rE(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 iE(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 sE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Bs(){let e=12,t="";for(;e-- >0;)t+=sE[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,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function oE(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 aE(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 lE(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 cE=`: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,41 +576,41 @@ 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 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]=J(J({},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,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,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],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=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(a=>{this.definitions[a]=J(J({},this.definitions[a]||{}),i[a]),Mc(a,i[a]);const o=xc[wt][a];o&&Mc(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(()=>{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: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(P=>h.classes.indexOf(P)===-1).filter(P=>P!==""||!!P).concat(h.classes).join(" ");let T={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&&(T.attributes[Gr]=""),c&&(T.children.push({tag:"title",attributes:{id:T.attributes["aria-labelledby"]||"title-".concat(d||Bs())},children:[c]}),delete T.attributes.title);const C=J(J({},T),{},{prefix:r,iconName:i,main:t,mask:n,maskId:u,transform:a,symbol:o,styles:J(J({},w),h.styles)}),{children:A,attributes:D}=n.found&&t.found?yr("generateAbstractMask",C)||{children:[],attributes:{}}:yr("generateAbstractIcon",C)||{children:[],attributes:{}};return C.children=A,C.attributes=D,o?_E(C):OE(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(),a=jc.begin("mutate");e.map(i),a(),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(a=>{if(Fc)return;const o=gr();Ri(a).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||o),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 a=i.split(":"),o=a[0],c=a.slice(1);return o&&c.length>0&&(r[o]=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,a)=>(i.name!=="class"&&i.name!=="style"&&(i[a.name]=a.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),a=zE(e),o=Ic("parseNodeAttributes",{},e);let c=t.styleParser?WE(e):[];return J({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:a}},o)}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)),a=ge.autoFetchSvg?HE():Um.concat(Object.keys(YE));a.includes("fa")||a.push("fa");const o=[".".concat(ep,":not([").concat(Gr,"])")].concat(a.map(h=>".".concat(h,":not([").concat(Gr,"])"))).join(", ");if(o.length===0)return Promise.resolve();let c=[];try{c=Ri(e.querySelectorAll(o))}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,J(J({},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:a=null,title:o=null,titleId:c=null,classes:u=[],attributes:d={},styles:h={}}=t;if(!e)return;const{prefix:m,iconName:p,icon:y}=e;return ca(J({type:"icon"},e),()=>(Hr("beforeDOMElementCreation",{iconDefinition:e,params:t}),ge.autoA11y&&(o?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:J(J({},Cn),n),symbol:r,title:o,maskId:a,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:a,prefix:o,transform:c,symbol:u,mask:d,maskId:h,extra:m}=n;return new Promise((p,y)=>{Promise.all([Lc(r,o),d.iconName?Lc(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(S=>{let[b,T]=S;p([t,$c({icons:{main:b,mask:T},prefix:o,iconName:r,transform:c,symbol:u,maskId:h,title:i,titleId:a,extra:m,watchable:!0})])}).catch(y)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:i,transform:a,styles:o}=t;const c=sa(o);c.length>0&&(r.style=c);let u;return Ec(a)&&(u=yr("generateAbstractTransformGrouping",{main:i,transform:a,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(a=>{r=r.concat(a.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:a={}}=t;return ca({type:"counter",content:e},()=>(Hr("beforeDOMElementCreation",{content:e,params:t}),IE({content:e.toString(),title:n,extra:{attributes:i,styles:a,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:a={},styles:o={}}=t;return ca({type:"text",content:e},()=>(Hr("beforeDOMElementCreation",{content:e,params:t}),wp({content:e,transform:J(J({},Cn),n),title:r,extra:{attributes:a,styles:o,classes:["".concat(ge.cssPrefix,"-layers-text"),...i]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:i,extra:a}=n;let o=null,c=null;if(Bm){const u=parseInt(getComputedStyle(t).fontSize,10),d=t.getBoundingClientRect();o=d.width/u,c=d.height/u}return ge.autoA11y&&!r&&(a.attributes["aria-hidden"]="true"),Promise.resolve([t,wp({content:t.innerHTML,width:o,height:c,transform:i,title:r,extra:a,watchable:!0})])}}};const tC=new RegExp('"',"ug"),$p=[1105920,1112319],Rp=J(J(J(J({},{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 o=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(o&&!d)return e.removeChild(o),r();if(d&&m!=="none"&&m!==""){const p=c.getPropertyValue("content");let y=iC(u,h);const{value:S,isSecondary:b}=rC(p),T=d[0].startsWith("FontAwesome");let w=_c(y,S),C=w;if(T){const A=vE(S);A.iconName&&A.prefix&&(w=A.iconName,y=A.prefix)}if(w&&!b&&(!o||o.getAttribute(gc)!==y||o.getAttribute(yc)!==C)){e.setAttribute(n,C),o&&e.removeChild(o);const A=GE(),{extra:D}=A;D.attributes[pc]=t,Lc(w,y).then(P=>{const R=$c(J(J({},A),{},{icons:{main:P,mask:yp()},prefix:y,iconName:C,extra:D,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(F=>Ws(F)).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("-"),a=i[0];let o=i.slice(1).join("-");if(a&&o==="h")return n.flipX=!0,n;if(a&&o==="v")return n.flipY=!0,n;if(o=parseFloat(o),isNaN(o))return n;switch(a){case"grow":n.size=n.size+o;break;case"shrink":n.size=n.size-o;break;case"left":n.x=n.x-o;break;case"right":n.x=n.x+o;break;case"up":n.y=n.y-o;break;case"down":n.y=n.y+o;break;case"rotate":n.rotate=n.rotate+o;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:a}=t;const o={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(a/2*-1," -256)")},p={outer:o,inner:h,path:m};return{tag:"g",attributes:J({},p.outer),children:[{tag:"g",attributes:J({},p.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:J(J({},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:a,maskId:o,transform:c}=t;const{width:u,icon:d}=i,{width:h,icon:m}=a,p=oE({transform:c,containerWidth:h,iconWidth:u}),y={tag:"rect",attributes:J(J({},Wc),{},{fill:"white"})},S=d.children?{children:d.children.map(Fp)}:{},b={tag:"g",attributes:J({},p.inner),children:[Fp(J({tag:d.tag,attributes:J(J({},d.attributes),p.path)},S))]},T={tag:"g",attributes:J({},p.outer),children:[b]},w="mask-".concat(o||Bs()),C="clip-".concat(o||Bs()),A={tag:"mask",attributes:J(J({},Wc),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[y,T]},D={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:uC(m)},A]};return n.push(D,{tag:"rect",attributes:J({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:J(J({},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 a=J(J({},i),{},{attributeName:"opacity"}),o={tag:"circle",attributes:J(J({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:J(J({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:J(J({},a),{},{values:"1;0;1;1;0;1;"})}),n.push(o),n.push({tag:"path",attributes:J(J({},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:J(J({},a),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:J(J({},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:J(J({},a),{},{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
579
+ }`;function rp(){const e=qm,t=Km,n=ge.cssPrefix,r=ge.replacementClass;let i=cE;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&&(iE(rp()),ip=!0)}var uE={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 fE(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(oE(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 dE(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=dE(e);return t.length===1?t[0].toString(16):null}function hE(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]=J(J({},Pn.styles[e]||{}),i),e==="fas"&&Mc("fa",t)}const{styles:Us,shims:mE}=Pn,cp=Object.keys(xc),pE=cp.reduce((e,t)=>(e[t]=Object.keys(xc[t]),e),{});let Oc=null,up={},fp={},dp={},hp={},mp={};function gE(e){return~eE.indexOf(e)}function yE(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!gE(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(mE,(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,Oc=aa(ge.styleDefault,{family:ge.familyDefault})};rE(e=>{Oc=aa(e.styleDefault,{family:ge.familyDefault})}),pp();function _c(e,t){return(up[e]||{})[t]}function vE(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 bE(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 xE(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=>pE[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=KT[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 wE(e){let t=[],n=null;return e.forEach(r=>{const i=yE(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(kT),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=xE(a),h=J(J({},wE(o)),{},{prefix:aa(u,{family:d})});return J(J(J({},h),CE({values:e,family:d,styles:Us,config:ge,canonical:h,givenPrefix:r})),SE(n,r,h))}function SE(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 TE=zm.filter(e=>e!==wt||e!==ra),EE=Object.keys(dc).filter(e=>e!==wt).map(e=>Object.keys(dc[e])).flat();function CE(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&&TE.includes(n)&&(Object.keys(a).find(p=>EE.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 PE{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]),Mc(a,i[a]);const o=xc[wt][a];o&&Mc(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={},AE=Object.keys(Li);function ME(e,t){let{mixoutsTo:n}=t;return bp=e,Ni={},Object.keys(Li).forEach(r=>{AE.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 $c(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 PE,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,fE(()=>{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(XT))){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:$c,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 _E(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 IE(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 Dc(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=RT.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 T={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&&(T.attributes[Gr]=""),c&&(T.children.push({tag:"title",attributes:{id:T.attributes["aria-labelledby"]||"title-".concat(d||Bs())},children:[c]}),delete T.attributes.title);const C=J(J({},T),{},{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?IE(C):_E(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=lE({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 $E(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 RE(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))}RE(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"',NE=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:NE,end:Tp};const ua=()=>{};function Ep(e){return typeof(e.getAttribute?e.getAttribute(Gr):null)=="string"}function LE(e){const t=e.getAttribute?e.getAttribute(gc):null,n=e.getAttribute?e.getAttribute(yc):null;return t&&n}function kE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ge.replacementClass)}function jE(){return ge.autoReplaceSvg===!0?fa.replace:fa[ge.autoReplaceSvg]||fa.replace}function FE(e){return Xe.createElementNS("http://www.w3.org/2000/svg",e)}function VE(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"?FE:VE}=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 BE(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(BE(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===HT&&(r=mr.requestAnimationFrame||Pp),r(()=>{const i=jE(),a=jc.begin("mutate");e.map(i),a(),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(a=>{if(Fc)return;const o=gr();Ri(a).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)&&~QT.indexOf(c.attributeName))if(c.attributeName==="class"&&LE(c.target)){const{prefix:u,iconName:d}=la(Tc(c.target));c.target.setAttribute(gc,u||o),d&&c.target.setAttribute(yc,d)}else kE(c.target)&&n(c.target)})}),zn&&da.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function WE(){da&&da.disconnect()}function UE(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,i)=>{const a=i.split(":"),o=a[0],c=a.slice(1);return o&&c.length>0&&(r[o]=c.join(":").trim()),r},{})),n}function zE(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=vE(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 GE(e){const t=Ri(e.attributes).reduce((i,a)=>(i.name!=="class"&&i.name!=="style"&&(i[a.name]=a.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 YE(){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}=zE(e),a=GE(e),o=Ic("parseNodeAttributes",{},e);let c=t.styleParser?UE(e):[];return J({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:a}},o)}const{styles:HE}=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 qE(){return[...IT,...hc]}function $p(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)),a=ge.autoFetchSvg?qE():Um.concat(Object.keys(HE));a.includes("fa")||a.push("fa");const o=[".".concat(ep,":not([").concat(Gr,"])")].concat(a.map(h=>".".concat(h,":not([").concat(Gr,"])"))).join(", ");if(o.length===0)return Promise.resolve();let c=[];try{c=Ri(e.querySelectorAll(o))}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 KE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ip(e).then(n=>{n&&Ap([n],t)})}function XE(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:$c(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:$c(i||{})),e(r,J(J({},n),{},{mask:i}))}}const ZE=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Cn,symbol:r=!1,mask:i=null,maskId:a=null,title:o=null,titleId:c=null,classes:u=[],attributes:d={},styles:h={}}=t;if(!e)return;const{prefix:m,iconName:p,icon:y}=e;return ca(J({type:"icon"},e),()=>(Hr("beforeDOMElementCreation",{iconDefinition:e,params:t}),ge.autoA11y&&(o?d["aria-labelledby"]="".concat(ge.replacementClass,"-title-").concat(c||Bs()):(d["aria-hidden"]="true",d.focusable="false")),Dc({icons:{main:Nc(y),mask:i?Nc(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:m,iconName:p,transform:J(J({},Cn),n),symbol:r,title:o,maskId:a,titleId:c,extra:{attributes:d,styles:h,classes:u}})))};var JE={mixout(){return{icon:XE(ZE)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=$p,e.nodeCallback=KE,e}}},provides(e){e.i2svg=function(t){const{node:n=Xe,callback:r=()=>{}}=t;return $p(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:i,titleId:a,prefix:o,transform:c,symbol:u,mask:d,maskId:h,extra:m}=n;return new Promise((p,y)=>{Promise.all([Lc(r,o),d.iconName?Lc(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(S=>{let[b,T]=S;p([t,Dc({icons:{main:b,mask:T},prefix:o,iconName:r,transform:c,symbol:u,maskId:h,title:i,titleId:a,extra:m,watchable:!0})])}).catch(y)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:i,transform:a,styles:o}=t;const c=sa(o);c.length>0&&(r.style=c);let u;return Ec(a)&&(u=yr("generateAbstractTransformGrouping",{main:i,transform:a,containerWidth:i.width,iconWidth:i.width})),n.push(u||i.icon),{children:n,attributes:r}}}},QE={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(a=>{r=r.concat(a.abstract)}):r=r.concat(i.abstract)}),[{tag:"span",attributes:{class:["".concat(ge.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},eC={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:a={}}=t;return ca({type:"counter",content:e},()=>(Hr("beforeDOMElementCreation",{content:e,params:t}),$E({content:e.toString(),title:n,extra:{attributes:i,styles:a,classes:["".concat(ge.cssPrefix,"-layers-counter"),...r]}})))}}}},tC={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:a={},styles:o={}}=t;return ca({type:"text",content:e},()=>(Hr("beforeDOMElementCreation",{content:e,params:t}),wp({content:e,transform:J(J({},Cn),n),title:r,extra:{attributes:a,styles:o,classes:["".concat(ge.cssPrefix,"-layers-text"),...i]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:i,extra:a}=n;let o=null,c=null;if(Bm){const u=parseInt(getComputedStyle(t).fontSize,10),d=t.getBoundingClientRect();o=d.width/u,c=d.height/u}return ge.autoA11y&&!r&&(a.attributes["aria-hidden"]="true"),Promise.resolve([t,wp({content:t.innerHTML,width:o,height:c,transform:i,title:r,extra:a,watchable:!0})])}}};const nC=new RegExp('"',"ug"),Dp=[1105920,1112319],Rp=J(J(J(J({},{FontAwesome:{normal:"fas",400:"fas"}}),MT),GT),jT),Bc=Object.keys(Rp).reduce((e,t)=>(e[t.toLowerCase()]=Rp[t],e),{}),rC=Object.keys(Bc).reduce((e,t)=>{const n=Bc[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function iC(e){const t=e.replace(nC,""),n=hE(t,0),r=n>=Dp[0]&&n<=Dp[1],i=t.length===2?t[0]===t[1]:!1;return{value:Ac(i?t[0]:t),isSecondary:r||i}}function sC(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Bc[n]||{})[i]||rC[n]}function Np(e,t){const n="".concat(YT).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const o=Ri(e.children).filter(p=>p.getAttribute(pc)===t)[0],c=mr.getComputedStyle(e,t),u=c.getPropertyValue("font-family"),d=u.match(ZT),h=c.getPropertyValue("font-weight"),m=c.getPropertyValue("content");if(o&&!d)return e.removeChild(o),r();if(d&&m!=="none"&&m!==""){const p=c.getPropertyValue("content");let y=sC(u,h);const{value:S,isSecondary:b}=iC(p),T=d[0].startsWith("FontAwesome");let w=_c(y,S),C=w;if(T){const A=bE(S);A.iconName&&A.prefix&&(w=A.iconName,y=A.prefix)}if(w&&!b&&(!o||o.getAttribute(gc)!==y||o.getAttribute(yc)!==C)){e.setAttribute(n,C),o&&e.removeChild(o);const A=YE(),{extra:$}=A;$.attributes[pc]=t,Lc(w,y).then(P=>{const R=Dc(J(J({},A),{},{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(F=>Ws(F)).join(`
581
+ `),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function oC(e){return Promise.all([Np(e,"::before"),Np(e,"::after")])}function aC(e){return e.parentNode!==document.head&&!~qT.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(aC).map(oC),i=jc.begin("searchPseudoElements");Mp(),Promise.all(r).then(()=>{i(),Vc(),t()}).catch(()=>{i(),Vc(),n()})})}var lC={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 cC={mixout(){return{dom:{unwatch(){Mp(),kp=!0}}}},hooks(){return{bootstrap(){Op(Ic("mutationObserverCallbacks",{}))},noAuto(){WE()},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("-"),a=i[0];let o=i.slice(1).join("-");if(a&&o==="h")return n.flipX=!0,n;if(a&&o==="v")return n.flipY=!0,n;if(o=parseFloat(o),isNaN(o))return n;switch(a){case"grow":n.size=n.size+o;break;case"shrink":n.size=n.size-o;break;case"left":n.x=n.x-o;break;case"right":n.x=n.x+o;break;case"up":n.y=n.y-o;break;case"down":n.y=n.y+o;break;case"rotate":n.rotate=n.rotate+o;break}return n},t)};var uC={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:a}=t;const o={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(a/2*-1," -256)")},p={outer:o,inner:h,path:m};return{tag:"g",attributes:J({},p.outer),children:[{tag:"g",attributes:J({},p.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:J(J({},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 fC(e){return e.tag==="g"?e.children:[e]}var dC={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:a,maskId:o,transform:c}=t;const{width:u,icon:d}=i,{width:h,icon:m}=a,p=aE({transform:c,containerWidth:h,iconWidth:u}),y={tag:"rect",attributes:J(J({},Wc),{},{fill:"white"})},S=d.children?{children:d.children.map(Fp)}:{},b={tag:"g",attributes:J({},p.inner),children:[Fp(J({tag:d.tag,attributes:J(J({},d.attributes),p.path)},S))]},T={tag:"g",attributes:J({},p.outer),children:[b]},w="mask-".concat(o||Bs()),C="clip-".concat(o||Bs()),A={tag:"mask",attributes:J(J({},Wc),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[y,T]},$={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:fC(m)},A]};return n.push($,{tag:"rect",attributes:J({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(w,")")},Wc)}),{children:n,attributes:r}}}},hC={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:J(J({},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 a=J(J({},i),{},{attributeName:"opacity"}),o={tag:"circle",attributes:J(J({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:J(J({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:J(J({},a),{},{values:"1;0;1;1;0;1;"})}),n.push(o),n.push({tag:"path",attributes:J(J({},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:J(J({},a),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:J(J({},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:J(J({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},mC={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},pC=[uE,JE,QE,eC,tC,lC,cC,uC,dC,hC,mC];ME(pC,{mixoutsTo:zt}),zt.noAuto,zt.config,zt.library,zt.dom;const Uc=zt.parse;zt.findIconDefinition,zt.toHtml;const gC=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,a=e?Symbol.for("react.profiler"):60114,o=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,T=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function A(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 a:case i:case m:return P;default:switch(P=P&&P.$$typeof,P){case c:case h:case S:case y:case o:return P;default:return R}}case n:return R}}}function D(P){return A(P)===d}return Fe.AsyncMode=u,Fe.ConcurrentMode=d,Fe.ContextConsumer=c,Fe.ContextProvider=o,Fe.Element=t,Fe.ForwardRef=h,Fe.Fragment=r,Fe.Lazy=S,Fe.Memo=y,Fe.Portal=n,Fe.Profiler=a,Fe.StrictMode=i,Fe.Suspense=m,Fe.isAsyncMode=function(P){return D(P)||A(P)===u},Fe.isConcurrentMode=D,Fe.isContextConsumer=function(P){return A(P)===c},Fe.isContextProvider=function(P){return A(P)===o},Fe.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===t},Fe.isForwardRef=function(P){return A(P)===h},Fe.isFragment=function(P){return A(P)===r},Fe.isLazy=function(P){return A(P)===S},Fe.isMemo=function(P){return A(P)===y},Fe.isPortal=function(P){return A(P)===n},Fe.isProfiler=function(P){return A(P)===a},Fe.isStrictMode=function(P){return A(P)===i},Fe.isSuspense=function(P){return A(P)===m},Fe.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===r||P===d||P===a||P===i||P===m||P===p||typeof P=="object"&&P!==null&&(P.$$typeof===S||P.$$typeof===y||P.$$typeof===o||P.$$typeof===c||P.$$typeof===h||P.$$typeof===T||P.$$typeof===w||P.$$typeof===C||P.$$typeof===b)},Fe.typeOf=A,Fe}var Ve={};/** @license React v16.13.1
588
+ */var Vp;function yC(){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,a=e?Symbol.for("react.profiler"):60114,o=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,T=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function A(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 a:case i:case m:return P;default:switch(P=P&&P.$$typeof,P){case c:case h:case S:case y:case o:return P;default:return R}}case n:return R}}}function $(P){return A(P)===d}return Fe.AsyncMode=u,Fe.ConcurrentMode=d,Fe.ContextConsumer=c,Fe.ContextProvider=o,Fe.Element=t,Fe.ForwardRef=h,Fe.Fragment=r,Fe.Lazy=S,Fe.Memo=y,Fe.Portal=n,Fe.Profiler=a,Fe.StrictMode=i,Fe.Suspense=m,Fe.isAsyncMode=function(P){return $(P)||A(P)===u},Fe.isConcurrentMode=$,Fe.isContextConsumer=function(P){return A(P)===c},Fe.isContextProvider=function(P){return A(P)===o},Fe.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===t},Fe.isForwardRef=function(P){return A(P)===h},Fe.isFragment=function(P){return A(P)===r},Fe.isLazy=function(P){return A(P)===S},Fe.isMemo=function(P){return A(P)===y},Fe.isPortal=function(P){return A(P)===n},Fe.isProfiler=function(P){return A(P)===a},Fe.isStrictMode=function(P){return A(P)===i},Fe.isSuspense=function(P){return A(P)===m},Fe.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===r||P===d||P===a||P===i||P===m||P===p||typeof P=="object"&&P!==null&&(P.$$typeof===S||P.$$typeof===y||P.$$typeof===o||P.$$typeof===c||P.$$typeof===h||P.$$typeof===T||P.$$typeof===w||P.$$typeof===C||P.$$typeof===b)},Fe.typeOf=A,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,a=e?Symbol.for("react.profiler"):60114,o=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,T=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function A(ie){return typeof ie=="string"||typeof ie=="function"||ie===r||ie===d||ie===a||ie===i||ie===m||ie===p||typeof ie=="object"&&ie!==null&&(ie.$$typeof===S||ie.$$typeof===y||ie.$$typeof===o||ie.$$typeof===c||ie.$$typeof===h||ie.$$typeof===T||ie.$$typeof===w||ie.$$typeof===C||ie.$$typeof===b)}function D(ie){if(typeof ie=="object"&&ie!==null){var pe=ie.$$typeof;switch(pe){case t:var ke=ie.type;switch(ke){case u:case d:case r:case a:case i:case m:return ke;default:var ft=ke&&ke.$$typeof;switch(ft){case c:case h:case S:case y:case o:return ft;default:return pe}}case n:return pe}}}var P=u,R=d,k=c,F=o,z=t,Q=h,ee=r,ce=S,ye=y,ue=n,te=a,oe=i,V=m,W=!1;function H(ie){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(ie)||D(ie)===u}function O(ie){return D(ie)===d}function N(ie){return D(ie)===c}function X(ie){return D(ie)===o}function ne(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function ae(ie){return D(ie)===h}function G(ie){return D(ie)===r}function re(ie){return D(ie)===S}function he(ie){return D(ie)===y}function fe(ie){return D(ie)===n}function ve(ie){return D(ie)===a}function xe(ie){return D(ie)===i}function Le(ie){return D(ie)===m}Ve.AsyncMode=P,Ve.ConcurrentMode=R,Ve.ContextConsumer=k,Ve.ContextProvider=F,Ve.Element=z,Ve.ForwardRef=Q,Ve.Fragment=ee,Ve.Lazy=ce,Ve.Memo=ye,Ve.Portal=ue,Ve.Profiler=te,Ve.StrictMode=oe,Ve.Suspense=V,Ve.isAsyncMode=H,Ve.isConcurrentMode=O,Ve.isContextConsumer=N,Ve.isContextProvider=X,Ve.isElement=ne,Ve.isForwardRef=ae,Ve.isFragment=G,Ve.isLazy=re,Ve.isMemo=he,Ve.isPortal=fe,Ve.isProfiler=ve,Ve.isStrictMode=xe,Ve.isSuspense=Le,Ve.isValidElementType=A,Ve.typeOf=D}()),Ve}var Wp;function Up(){return Wp||(Wp=1,process.env.NODE_ENV==="production"?ma.exports=gC():ma.exports=yC()),ma.exports}/*
595
+ */var Bp;function vC(){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,a=e?Symbol.for("react.profiler"):60114,o=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,T=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function A(ie){return typeof ie=="string"||typeof ie=="function"||ie===r||ie===d||ie===a||ie===i||ie===m||ie===p||typeof ie=="object"&&ie!==null&&(ie.$$typeof===S||ie.$$typeof===y||ie.$$typeof===o||ie.$$typeof===c||ie.$$typeof===h||ie.$$typeof===T||ie.$$typeof===w||ie.$$typeof===C||ie.$$typeof===b)}function $(ie){if(typeof ie=="object"&&ie!==null){var pe=ie.$$typeof;switch(pe){case t:var ke=ie.type;switch(ke){case u:case d:case r:case a:case i:case m:return ke;default:var ft=ke&&ke.$$typeof;switch(ft){case c:case h:case S:case y:case o:return ft;default:return pe}}case n:return pe}}}var P=u,R=d,k=c,F=o,z=t,Q=h,ee=r,ce=S,ye=y,ue=n,te=a,oe=i,V=m,W=!1;function H(ie){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(ie)||$(ie)===u}function O(ie){return $(ie)===d}function N(ie){return $(ie)===c}function X(ie){return $(ie)===o}function ne(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function ae(ie){return $(ie)===h}function G(ie){return $(ie)===r}function re(ie){return $(ie)===S}function he(ie){return $(ie)===y}function fe(ie){return $(ie)===n}function ve(ie){return $(ie)===a}function xe(ie){return $(ie)===i}function Le(ie){return $(ie)===m}Ve.AsyncMode=P,Ve.ConcurrentMode=R,Ve.ContextConsumer=k,Ve.ContextProvider=F,Ve.Element=z,Ve.ForwardRef=Q,Ve.Fragment=ee,Ve.Lazy=ce,Ve.Memo=ye,Ve.Portal=ue,Ve.Profiler=te,Ve.StrictMode=oe,Ve.Suspense=V,Ve.isAsyncMode=H,Ve.isConcurrentMode=O,Ve.isContextConsumer=N,Ve.isContextProvider=X,Ve.isElement=ne,Ve.isForwardRef=ae,Ve.isFragment=G,Ve.isLazy=re,Ve.isMemo=he,Ve.isPortal=fe,Ve.isProfiler=ve,Ve.isStrictMode=xe,Ve.isSuspense=Le,Ve.isValidElementType=A,Ve.typeOf=$}()),Ve}var Wp;function Up(){return Wp||(Wp=1,process.env.NODE_ENV==="production"?ma.exports=yC():ma.exports=vC()),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(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},c=0;c<10;c++)o["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(o).map(function(h){return o[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(a,o){for(var c,u=r(a),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(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,c,u,d){if(process.env.NODE_ENV!=="production"){for(var h in a)if(r(a,h)){var m;try{if(typeof a[h]!="function"){var p=Error((u||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}m=a[h](o,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(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function o(){return null}return Kc=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(O){var N=O&&(d&&O[d]||O[h]);if(typeof N=="function")return N}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:A,element:D(),elementType:P(),instanceOf:R,node:Q(),objectOf:F,oneOf:k,oneOfType:z,shape:ce,exact:ye};function S(O,N){return O===N?O!==0||1/O===1/N:O!==O&&N!==N}function b(O,N){this.message=O,this.data=N&&typeof N=="object"?N:{},this.stack=""}b.prototype=Error.prototype;function T(O){if(process.env.NODE_ENV!=="production")var N={},X=0;function ne(G,re,he,fe,ve,xe,Le){if(fe=fe||p,xe=xe||he,Le!==n){if(u){var ie=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 ie.name="Invariant Violation",ie}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var pe=fe+":"+he;!N[pe]&&X<3&&(a("You are manually calling a React.PropTypes validation function for the `"+xe+"` prop on `"+fe+"`. 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."),N[pe]=!0,X++)}}return re[he]==null?G?re[he]===null?new b("The "+ve+" `"+xe+"` is marked as required "+("in `"+fe+"`, but its value is `null`.")):new b("The "+ve+" `"+xe+"` is marked as required in "+("`"+fe+"`, but its value is `undefined`.")):null:O(re,he,fe,ve,xe)}var ae=ne.bind(null,!1);return ae.isRequired=ne.bind(null,!0),ae}function w(O){function N(X,ne,ae,G,re,he){var fe=X[ne],ve=oe(fe);if(ve!==O){var xe=V(fe);return new b("Invalid "+G+" `"+re+"` of type "+("`"+xe+"` supplied to `"+ae+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return T(N)}function C(){return T(o)}function A(O){function N(X,ne,ae,G,re){if(typeof O!="function")return new b("Property `"+re+"` of component `"+ae+"` has invalid PropType notation inside arrayOf.");var he=X[ne];if(!Array.isArray(he)){var fe=oe(he);return new b("Invalid "+G+" `"+re+"` of type "+("`"+fe+"` supplied to `"+ae+"`, expected an array."))}for(var ve=0;ve<he.length;ve++){var xe=O(he,ve,ae,G,re+"["+ve+"]",n);if(xe instanceof Error)return xe}return null}return T(N)}function D(){function O(N,X,ne,ae,G){var re=N[X];if(!c(re)){var he=oe(re);return new b("Invalid "+ae+" `"+G+"` of type "+("`"+he+"` supplied to `"+ne+"`, expected a single ReactElement."))}return null}return T(O)}function P(){function O(N,X,ne,ae,G){var re=N[X];if(!e.isValidElementType(re)){var he=oe(re);return new b("Invalid "+ae+" `"+G+"` of type "+("`"+he+"` supplied to `"+ne+"`, expected a single ReactElement type."))}return null}return T(O)}function R(O){function N(X,ne,ae,G,re){if(!(X[ne]instanceof O)){var he=O.name||p,fe=H(X[ne]);return new b("Invalid "+G+" `"+re+"` of type "+("`"+fe+"` supplied to `"+ae+"`, expected ")+("instance of `"+he+"`."))}return null}return T(N)}function k(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function N(X,ne,ae,G,re){for(var he=X[ne],fe=0;fe<O.length;fe++)if(S(he,O[fe]))return null;var ve=JSON.stringify(O,function(Le,ie){var pe=V(ie);return pe==="symbol"?String(ie):ie});return new b("Invalid "+G+" `"+re+"` of value `"+String(he)+"` "+("supplied to `"+ae+"`, expected one of "+ve+"."))}return T(N)}function F(O){function N(X,ne,ae,G,re){if(typeof O!="function")return new b("Property `"+re+"` of component `"+ae+"` has invalid PropType notation inside objectOf.");var he=X[ne],fe=oe(he);if(fe!=="object")return new b("Invalid "+G+" `"+re+"` of type "+("`"+fe+"` supplied to `"+ae+"`, expected an object."));for(var ve in he)if(r(he,ve)){var xe=O(he,ve,ae,G,re+"."+ve,n);if(xe instanceof Error)return xe}return null}return T(N)}function z(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var N=0;N<O.length;N++){var X=O[N];if(typeof X!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+W(X)+" at index "+N+"."),o}function ne(ae,G,re,he,fe){for(var ve=[],xe=0;xe<O.length;xe++){var Le=O[xe],ie=Le(ae,G,re,he,fe,n);if(ie==null)return null;ie.data&&r(ie.data,"expectedType")&&ve.push(ie.data.expectedType)}var pe=ve.length>0?", expected one of type ["+ve.join(", ")+"]":"";return new b("Invalid "+he+" `"+fe+"` supplied to "+("`"+re+"`"+pe+"."))}return T(ne)}function Q(){function O(N,X,ne,ae,G){return ue(N[X])?null:new b("Invalid "+ae+" `"+G+"` supplied to "+("`"+ne+"`, expected a ReactNode."))}return T(O)}function ee(O,N,X,ne,ae){return new b((O||"React class")+": "+N+" type `"+X+"."+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ae+"`.")}function ce(O){function N(X,ne,ae,G,re){var he=X[ne],fe=oe(he);if(fe!=="object")return new b("Invalid "+G+" `"+re+"` of type `"+fe+"` "+("supplied to `"+ae+"`, expected `object`."));for(var ve in O){var xe=O[ve];if(typeof xe!="function")return ee(ae,G,re,ve,V(xe));var Le=xe(he,ve,ae,G,re+"."+ve,n);if(Le)return Le}return null}return T(N)}function ye(O){function N(X,ne,ae,G,re){var he=X[ne],fe=oe(he);if(fe!=="object")return new b("Invalid "+G+" `"+re+"` of type `"+fe+"` "+("supplied to `"+ae+"`, expected `object`."));var ve=t({},X[ne],O);for(var xe in ve){var Le=O[xe];if(r(O,xe)&&typeof Le!="function")return ee(ae,G,re,xe,V(Le));if(!Le)return new b("Invalid "+G+" `"+re+"` key `"+xe+"` supplied to `"+ae+"`.\nBad object: "+JSON.stringify(X[ne],null," ")+`
600
- Valid keys: `+JSON.stringify(Object.keys(O),null," "));var ie=Le(he,xe,ae,G,re+"."+xe,n);if(ie)return ie}return null}return T(N)}function ue(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(ue);if(O===null||c(O))return!0;var N=m(O);if(N){var X=N.call(O),ne;if(N!==O.entries){for(;!(ne=X.next()).done;)if(!ue(ne.value))return!1}else for(;!(ne=X.next()).done;){var ae=ne.value;if(ae&&!ue(ae[1]))return!1}}else return!1;return!0;default:return!1}}function te(O,N){return O==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function oe(O){var N=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":te(N,O)?"symbol":N}function V(O){if(typeof O>"u"||O===null)return""+O;var N=oe(O);if(N==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return N}function W(O){var N=V(O);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function H(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(o,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 a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},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,a;for(a=0;a<r.length;a++)i=r[a],!(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 a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function 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,a=e.bounce,o=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,T=e.flip,w=e.size,C=e.rotation,A=e.pull,D=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":o,"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":T===!0,"fa-flip-horizontal":T==="horizontal"||T==="both","fa-flip-vertical":T==="vertical"||T==="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(A),typeof A<"u"&&A!==null),ki(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(D).map(function(P){return D[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)),a=n.slice(r+1).trim();return i.startsWith("webkit")?t[$C(i)]=a:t[i]=a,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:{}}),a=n.style,o=a===void 0?{}:a,c=CC(n,DC);return i.attrs.style=An(An({},i.attrs.style),o),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,a=n.symbol,o=n.className,c=n.title,u=n.titleId,d=n.maskId,h=ng(r),m=Qc("classes",[].concat(Zc(_C(n)),Zc((o||"").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:a,title:c,titleId:u,maskId:d}));if(!S)return NC("Could not find icon",h),null;var b=S.abstract,T={ref:t};return Object.keys(n).forEach(function(w){rg.hasOwnProperty(w)||(T[w]=n[w])}),LC(b[0],T)});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:`
599
+ */var zc,zp;function bC(){if(zp)return zc;zp=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},c=0;c<10;c++)o["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(o).map(function(h){return o[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(a,o){for(var c,u=r(a),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 xC(){if(qp)return qc;qp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Yc(),n={},r=Hp();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,c,u,d){if(process.env.NODE_ENV!=="production"){for(var h in a)if(r(a,h)){var m;try{if(typeof a[h]!="function"){var p=Error((u||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}m=a[h](o,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 wC(){if(Kp)return Kc;Kp=1;var e=Up(),t=bC(),n=Yc(),r=Hp(),i=xC(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function o(){return null}return Kc=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(O){var N=O&&(d&&O[d]||O[h]);if(typeof N=="function")return N}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:A,element:$(),elementType:P(),instanceOf:R,node:Q(),objectOf:F,oneOf:k,oneOfType:z,shape:ce,exact:ye};function S(O,N){return O===N?O!==0||1/O===1/N:O!==O&&N!==N}function b(O,N){this.message=O,this.data=N&&typeof N=="object"?N:{},this.stack=""}b.prototype=Error.prototype;function T(O){if(process.env.NODE_ENV!=="production")var N={},X=0;function ne(G,re,he,fe,ve,xe,Le){if(fe=fe||p,xe=xe||he,Le!==n){if(u){var ie=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 ie.name="Invariant Violation",ie}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var pe=fe+":"+he;!N[pe]&&X<3&&(a("You are manually calling a React.PropTypes validation function for the `"+xe+"` prop on `"+fe+"`. 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."),N[pe]=!0,X++)}}return re[he]==null?G?re[he]===null?new b("The "+ve+" `"+xe+"` is marked as required "+("in `"+fe+"`, but its value is `null`.")):new b("The "+ve+" `"+xe+"` is marked as required in "+("`"+fe+"`, but its value is `undefined`.")):null:O(re,he,fe,ve,xe)}var ae=ne.bind(null,!1);return ae.isRequired=ne.bind(null,!0),ae}function w(O){function N(X,ne,ae,G,re,he){var fe=X[ne],ve=oe(fe);if(ve!==O){var xe=V(fe);return new b("Invalid "+G+" `"+re+"` of type "+("`"+xe+"` supplied to `"+ae+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return T(N)}function C(){return T(o)}function A(O){function N(X,ne,ae,G,re){if(typeof O!="function")return new b("Property `"+re+"` of component `"+ae+"` has invalid PropType notation inside arrayOf.");var he=X[ne];if(!Array.isArray(he)){var fe=oe(he);return new b("Invalid "+G+" `"+re+"` of type "+("`"+fe+"` supplied to `"+ae+"`, expected an array."))}for(var ve=0;ve<he.length;ve++){var xe=O(he,ve,ae,G,re+"["+ve+"]",n);if(xe instanceof Error)return xe}return null}return T(N)}function $(){function O(N,X,ne,ae,G){var re=N[X];if(!c(re)){var he=oe(re);return new b("Invalid "+ae+" `"+G+"` of type "+("`"+he+"` supplied to `"+ne+"`, expected a single ReactElement."))}return null}return T(O)}function P(){function O(N,X,ne,ae,G){var re=N[X];if(!e.isValidElementType(re)){var he=oe(re);return new b("Invalid "+ae+" `"+G+"` of type "+("`"+he+"` supplied to `"+ne+"`, expected a single ReactElement type."))}return null}return T(O)}function R(O){function N(X,ne,ae,G,re){if(!(X[ne]instanceof O)){var he=O.name||p,fe=H(X[ne]);return new b("Invalid "+G+" `"+re+"` of type "+("`"+fe+"` supplied to `"+ae+"`, expected ")+("instance of `"+he+"`."))}return null}return T(N)}function k(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function N(X,ne,ae,G,re){for(var he=X[ne],fe=0;fe<O.length;fe++)if(S(he,O[fe]))return null;var ve=JSON.stringify(O,function(Le,ie){var pe=V(ie);return pe==="symbol"?String(ie):ie});return new b("Invalid "+G+" `"+re+"` of value `"+String(he)+"` "+("supplied to `"+ae+"`, expected one of "+ve+"."))}return T(N)}function F(O){function N(X,ne,ae,G,re){if(typeof O!="function")return new b("Property `"+re+"` of component `"+ae+"` has invalid PropType notation inside objectOf.");var he=X[ne],fe=oe(he);if(fe!=="object")return new b("Invalid "+G+" `"+re+"` of type "+("`"+fe+"` supplied to `"+ae+"`, expected an object."));for(var ve in he)if(r(he,ve)){var xe=O(he,ve,ae,G,re+"."+ve,n);if(xe instanceof Error)return xe}return null}return T(N)}function z(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var N=0;N<O.length;N++){var X=O[N];if(typeof X!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+W(X)+" at index "+N+"."),o}function ne(ae,G,re,he,fe){for(var ve=[],xe=0;xe<O.length;xe++){var Le=O[xe],ie=Le(ae,G,re,he,fe,n);if(ie==null)return null;ie.data&&r(ie.data,"expectedType")&&ve.push(ie.data.expectedType)}var pe=ve.length>0?", expected one of type ["+ve.join(", ")+"]":"";return new b("Invalid "+he+" `"+fe+"` supplied to "+("`"+re+"`"+pe+"."))}return T(ne)}function Q(){function O(N,X,ne,ae,G){return ue(N[X])?null:new b("Invalid "+ae+" `"+G+"` supplied to "+("`"+ne+"`, expected a ReactNode."))}return T(O)}function ee(O,N,X,ne,ae){return new b((O||"React class")+": "+N+" type `"+X+"."+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ae+"`.")}function ce(O){function N(X,ne,ae,G,re){var he=X[ne],fe=oe(he);if(fe!=="object")return new b("Invalid "+G+" `"+re+"` of type `"+fe+"` "+("supplied to `"+ae+"`, expected `object`."));for(var ve in O){var xe=O[ve];if(typeof xe!="function")return ee(ae,G,re,ve,V(xe));var Le=xe(he,ve,ae,G,re+"."+ve,n);if(Le)return Le}return null}return T(N)}function ye(O){function N(X,ne,ae,G,re){var he=X[ne],fe=oe(he);if(fe!=="object")return new b("Invalid "+G+" `"+re+"` of type `"+fe+"` "+("supplied to `"+ae+"`, expected `object`."));var ve=t({},X[ne],O);for(var xe in ve){var Le=O[xe];if(r(O,xe)&&typeof Le!="function")return ee(ae,G,re,xe,V(Le));if(!Le)return new b("Invalid "+G+" `"+re+"` key `"+xe+"` supplied to `"+ae+"`.\nBad object: "+JSON.stringify(X[ne],null," ")+`
600
+ Valid keys: `+JSON.stringify(Object.keys(O),null," "));var ie=Le(he,xe,ae,G,re+"."+xe,n);if(ie)return ie}return null}return T(N)}function ue(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(ue);if(O===null||c(O))return!0;var N=m(O);if(N){var X=N.call(O),ne;if(N!==O.entries){for(;!(ne=X.next()).done;)if(!ue(ne.value))return!1}else for(;!(ne=X.next()).done;){var ae=ne.value;if(ae&&!ue(ae[1]))return!1}}else return!1;return!0;default:return!1}}function te(O,N){return O==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function oe(O){var N=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":te(N,O)?"symbol":N}function V(O){if(typeof O>"u"||O===null)return""+O;var N=oe(O);if(N==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return N}function W(O){var N=V(O);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function H(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 SC(){if(Xp)return Xc;Xp=1;var e=Yc();function t(){}function n(){}return n.resetWarningCache=t,Xc=function(){function r(o,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 a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},Xc}var Zp;function TC(){if(Zp)return ha.exports;if(Zp=1,process.env.NODE_ENV!=="production"){var e=Up(),t=!0;ha.exports=wC()(e.isElement,t)}else ha.exports=SC()();return ha.exports}var EC=TC();const Ie=_m(EC);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 CC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function PC(e,t){if(e==null)return{};var n=CC(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zc(e){return AC(e)||MC(e)||OC(e)||_C()}function AC(e){if(Array.isArray(e))return Jc(e)}function MC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OC(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 _C(){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 IC(e){var t,n=e.beat,r=e.fade,i=e.beatFade,a=e.bounce,o=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,T=e.flip,w=e.size,C=e.rotation,A=e.pull,$=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":o,"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":T===!0,"fa-flip-horizontal":T==="horizontal"||T==="both","fa-flip-vertical":T==="vertical"||T==="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(A),typeof A<"u"&&A!==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 $C(e){return e=e-0,e===e}function Qp(e){return $C(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 RC(e){return e.charAt(0).toUpperCase()+e.slice(1)}function NC(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)),a=n.slice(r+1).trim();return i.startsWith("webkit")?t[RC(i)]=a:t[i]=a,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=NC(h);break;default:d.indexOf("aria-")===0||d.indexOf("data-")===0?u.attrs[d.toLowerCase()]=h:u.attrs[Qp(d)]=h}return u},{attrs:{}}),a=n.style,o=a===void 0?{}:a,c=PC(n,DC);return i.attrs.style=An(An({},i.attrs.style),o),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 LC(){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},$e=I.forwardRef(function(e,t){var n=An(An({},rg),e),r=n.icon,i=n.mask,a=n.symbol,o=n.className,c=n.title,u=n.titleId,d=n.maskId,h=ng(r),m=Qc("classes",[].concat(Zc(IC(n)),Zc((o||"").split(" ")))),p=Qc("transform",typeof n.transform=="string"?Uc.transform(n.transform):n.transform),y=Qc("mask",ng(i)),S=gC(h,An(An(An(An({},m),p),y),{},{symbol:a,title:c,titleId:u,maskId:d}));if(!S)return LC("Could not find icon",h),null;var b=S.abstract,T={ref:t};return Object.keys(n).forEach(function(w){rg.hasOwnProperty(w)||(T[w]=n[w])}),kC(b[0],T)});$e.displayName="FontAwesomeIcon",$e.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 kC=eg.bind(null,I.createElement);const jC=({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
605
605
  ${i?"bg-blue-100 border border-blue-800":"bg-light-gray-100 border border-gray-100 hover:border-blue-500 group"}
606
- `,children:[t?v.jsx(De,{icon:t,className:"w-20 h-20 transition-colors text-blue-500 group-hover:text-blue-500"}):n?v.jsx("img",{src:n,alt:e,width:32,height:32,className:"object-contain"}):null,v.jsx("span",{className:`
606
+ `,children:[t?v.jsx($e,{icon:t,className:"w-20 h-20 transition-colors text-blue-500 group-hover:text-blue-500"}):n?v.jsx("img",{src:n,alt:e,width:32,height:32,className:"object-contain"}):null,v.jsx("span",{className:`
607
607
  text-base font-medium transition-colors
608
608
  ${i?"text-gray-900":"text-gray-900 group-hover:text-blue-500"}
609
609
  `,children:e})]});/*!
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 Z.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 qC({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(su);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(`
613
+ */const FC={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"]},VC={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"]},BC={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"]},WC={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"]},UC={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"]},zC={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"]},GC={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"]},YC={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"]},HC={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 qC=class extends Z.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 KC({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(su);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(`
614
614
  [data-motion-pop-id="${r}"] {
615
615
  position: absolute !important;
616
616
  width: ${c}px !important;
@@ -618,37 +618,37 @@ 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:Z.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]),Z.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,T]=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 A=[];if(h!==b){let P=[...h];for(let R=0;R<w.length;R++){const k=w[R],F=ya(k);m.includes(F)||(P.splice(R,0,k),A.push(k))}return a==="wait"&&A.length&&(P=A),C(lg(P)),T(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:D}=I.useContext(nu);return v.jsx(v.Fragment,{children:w.map(P=>{const R=ya(P),k=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&&(D==null||D(),C(y.current),o&&(d==null||d()),r&&r())};return v.jsx(KC,{isPresent:k,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,onExitComplete:k?void 0:F,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 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 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,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]=(D,P=!1,R=!1)=>(n||S(),A.schedule(D,P,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 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 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=On.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=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 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],T=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),T.current&&p.animationState&&p.animationState.animateChanges())}),I.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,b)}),T.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:MP(d)},{isStatic:y}=p,S=SP(d),b=r(d,y);if(!y&&iu){OP(p,e);const T=_P(p);m=T.MeasureLayout,S.visualElement=CP(i,b,p,t,T.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 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 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 Mu(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:{}}),Ou=e=>typeof e=="string"&&e.toLowerCase()==="svg";function KP(e,t,n,r){const i=I.useMemo(()=>{const a=Vg();return Mu(a,t,Ou(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=Mg(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:T,...w}=S;for(const C in w){let A=w[C];if(Array.isArray(A)){const D=h?A.length-1:0;A=A[D]}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(()=>{Mu(r,i,Ou(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)},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 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 Ma(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 M0=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=On.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=On.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(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,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 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 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)?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((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.`),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,a;ji(e<=Mn(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=tM(i,a,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:o*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,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}=iM({...n,velocity:-Hn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=o-a,w=Hn(Math.sqrt(u/h)),C=Math.abs(T)<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 P=Zu(w,b);A=R=>{const k=Math.exp(-b*w*R);return o-k*((S+b*w*T)/P*Math.sin(P*R)+T*Math.cos(P*R))}}else if(b===1)A=P=>o-Math.exp(-w*P)*(T+(S+w*T)*P);else{const P=w*Math.sqrt(b*b-1);A=R=>{const k=Math.exp(-b*w*R),F=Math.min(P*R,300);return o-k*((S+b*w*T)*Math.sinh(F)+P*T*Math.cosh(F))/P}}const D={calculatedDuration:y&&m||null,next:P=>{const R=A(P);if(y)c.done=P>=m;else{let k=0;b<1&&(k=P===0?Mn(S):$0(A,P,R));const F=Math.abs(k)<=r,z=Math.abs(o-R)<=i;c.done=F&&z}return c.value=c.done?o:R,c},toString:()=>{const P=Math.min(fg(D),fu),R=hg(k=>D.next(P*k).value,P,30);return P+"ms "+R}};return D}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 T=m+b,w=o===void 0?T:o(T);w!==T&&(b=w-m);const C=F=>-b*Math.exp(-F/r),A=F=>w+C(F),D=F=>{const z=C(F),Q=A(F);p.done=Math.abs(z)<=d,p.value=p.done?w:Q};let P,R;const k=F=>{y(p.value)&&(P=F,R=L0({keyframes:[p.value,S(p.value)],velocity:$0(A,F,p.value),damping:i,stiffness:a,restDelta:d,restSpeed:h}))};return k(0),{calculatedDuration:null,next:F=>{let z=!1;return!R&&P===void 0&&(z=!0,D(F),k(F)),P!==void 0&&F>=P?R.next(F-P):(!z&&D(F),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,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 cM(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=lM(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 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),a={done:!1,value:t[0]},o=dM(n&&n.length===t.length?n:fM(t),e),c=cM(o,t,{ease:Array.isArray(i)?i:hM(t,i)});return{calculatedDuration:e,next:u=>(a.value=c(u),a.done=u>=e,a)}}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: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: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});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:T}=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,D=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"&&(D=o)),A=qn(0,1,Q)*m}const P=C?{done:!1,value:u[0]}:D.next(A);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)),T&&T(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(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 yM=new Set(["opacity","clipPath","filter","transform"]);function vM(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 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 a=0;for(;!r.done&&a<xM;)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 TM(e){return e in B0}let W0=class extends M0{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()&&TM(a)&&(a=B0[a]),wM(this.options)){const{onComplete:m,onUpdate:p,motionValue:y,element:S,...b}=this.options,T=SM(t,b);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,a=T.ease,o="keyframes"}const h=vM(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(Ma(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=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: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=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: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 bM()&&r&&yM.has(r)&&(r!=="transform"||!d)&&!u&&!i&&a!=="mirror"&&o!==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: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-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:()=>{o(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:a?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&&!a&&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!a&&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 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&&_M(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 T=p.animation;T&&d.push(T)}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 IM(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 IM(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(DM).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 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(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 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 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 T=0;T<LM;T++){const w=NM[T],C=n[w],A=d[w]!==void 0?d[w]:h[w],D=qs(A),P=w===u?C.isActive:null;P===!1&&(S=T);let R=A===h[w]&&A!==d[w]&&D;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),C.protectedKeys={...y},!C.isActive&&P===null||!A&&!C.prevProp||Ea(A)||typeof A=="boolean")continue;const k=FM(C.prevProp,A);let F=k||w===u&&C.isActive&&!R&&D||T>S&&D,z=!1;const Q=Array.isArray(A)?A:[A];let ee=Q.reduce(i(w),{});P===!1&&(ee={});const{prevResolvedValues:ce={}}=C,ye={...ce,...ee},ue=V=>{F=!0,p.has(V)&&(z=!0,p.delete(V)),C.needsAnimating[V]=!0;const W=e.getValue(V);W&&(W.liveStyle=!1)};for(const V in ye){const W=ee[V],H=ce[V];if(y.hasOwnProperty(V))continue;let O=!1;Iu(W)&&Iu(H)?O=!z0(W,H):O=W!==H,O?W!=null?ue(V):p.add(V):W!==void 0&&p.has(V)?ue(V):C.protectedKeys[V]=!0}C.prevProp=A,C.prevResolvedValues=ee,C.isActive&&(y={...y,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(R&&k)||z)&&m.push(...Q.map(V=>({animation:V,options:{type:w}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const w=Js(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(T.transition=w.transition)}p.forEach(w=>{const C=e.getBaseTarget(w),A=e.getValue(w);A&&(A.liveStyle=!0),T[w]=C??null}),m.push({animation:T})}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 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 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(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: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=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:T,onMove:w}=this.handlers;p||(T&&T(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 T=of(m.type==="pointercancel"?this.lastMoveEventInfo:sf(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,T),S&&S(m,T)},!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,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 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 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)},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(T=>{let w=this.getAxisMotionValue(T).get()||0;if(_n.test(w)){const{projection:C}=this.visualElement;if(C&&C.layout){const A=C.layout.layoutBox[T];A&&(w=Ot(A)*(parseFloat(w)/100))}}this.originPoint[T]=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:T}=m;if(y&&this.currentDirection===null){this.currentDirection=fO(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),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=rO(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=iO(i.layoutBox,n):this.constraints=!1,this.elastic=lO(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=aO(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=QM(r,i.root,this.visualElement.getTransformPagePoint());let o=sO(i.layout.layoutBox,a);if(n){const c=n(zM(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]=oO({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;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,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 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:(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}%`}},mO={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 pO=class extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;$P(gO),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(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 a=i-n;a>=t&&(br(r),e(a-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,a){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))):a&&(e.opacity=tt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<SO;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 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,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=My(e.min,t,n,c,i),e.max=My(e.max,t,n,c,i)}function Oy(e,t,[n,r,i],a,o){PO(e,t[n],t[r],t[i],t.scale,a,o)}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 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 IO(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"],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: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=$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=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 xO)}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=vO(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=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:T,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 D={...uu(b,"layout"),onPlay:T,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&(D.delay=0,D.type=!1),this.startAnimation(D)}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(UO),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(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 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)),qO(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(KO))){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(),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 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;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(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,T=this.getStack(),w=!T||T.members.length<=1,C=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(YO));this.animationProgress=0;let A;this.mixTargetDelta=D=>{const P=D/1e3;Uy(m.x,o.x,P),Uy(m.y,o.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),A&&OO(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=at()),nn(A,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(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=yO(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=Ot(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+m;const p=Ot(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 _O),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 DO;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=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:T,applyTo:w,isCSSVariable:C}=Ks[b],A=d.transform==="none"?p[b]:T(p[b],m);if(w){const D=w.length;for(let P=0;P<D;P++)d[w[P]]=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 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:a}=e.options,o=n.source!==e.layout.source;a==="size"?tn(m=>{const p=o?n.measuredBox[m]:n.layoutBox[m],y=Ot(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=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();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 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,a=r[i];a&&Ye.postRender(()=>a(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),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: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],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=On.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=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)}),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){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[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(qC,{isPresent:t,childRef:i,sizeRef:a,children:Z.cloneElement(e,{ref:i})})}const XC=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:c})=>{const u=ru(ZC),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]),Z.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(e=v.jsx(KC,{isPresent:n,anchorX:c,children:e})),v.jsx(ga.Provider,{value:m,children:e})};function ZC(){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 JC=({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,T]=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 A=[];if(h!==b){let P=[...h];for(let R=0;R<w.length;R++){const k=w[R],F=ya(k);m.includes(F)||(P.splice(R,0,k),A.push(k))}return a==="wait"&&A.length&&(P=A),C(lg(P)),T(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(P=>{const R=ya(P),k=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(XC,{isPresent:k,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,onExitComplete:k?void 0:F,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 QC={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 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 eP=lu(()=>window.ScrollTimeline!==void 0);let tP=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(eP()&&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")}},nP=class extends tP{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",rP={linearEasing:void 0};function iP(e,t){const n=lu(e);return()=>{var r;return(r=rP[t])!==null&&r!==void 0?r:n()}}const ba=iP(()=>{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 sP(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 oP=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]=sP(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,oP),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]=($,P=!1,R=!1)=>(n||S(),A.schedule($,P,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 aP(){wa=void 0}const On={now:()=>(wa===void 0&&On.set(yt.isProcessing||QC.useManualTiming?yt.timestamp:performance.now()),wa),set:e=>{wa=e,queueMicrotask(aP)}},yn={x:!1,y:!1};function vg(){return yn.x||yn.y}function lP(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 cP(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=cP(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 uP(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,fP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function dP(e){return fP.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 hP=(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 mP(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=>hP(d,i)),!dP(c)&&c.tabIndex===null&&(c.tabIndex=0))}),a}const Eg=30,pP=e=>!isNaN(parseFloat(e));let gP=class{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const a=On.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=On.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=pP(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 gP(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 yP(e){for(const t in e)Vi[t]={...Vi[t],...e[t]}}const vP=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")||vP.has(e)}let Ag=e=>!Sa(e);function bP(e){e&&(Ag=t=>t.startsWith("on")?!Sa(t):e(t))}try{bP(require("@emotion/is-prop-valid").default)}catch{}function xP(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 wP(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 SP(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 TP(e){const{initial:t,animate:n}=SP(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 EP=Symbol.for("motionComponentSymbol");function Bi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function CP(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 PP(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")&&AP(m.current,n,i,y);const S=I.useRef(!1);I.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const b=n[_g],T=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),T.current&&p.animationState&&p.animationState.animateChanges())}),I.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,b)}),T.current=!1))}),p}function AP(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:$g(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 $g(e){if(e)return e.options.allowProjection!==!1?e.projection:$g(e.parent)}function MP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var a,o;e&&yP(e);function c(d,h){let m;const p={...I.useContext(su),...d,layoutId:OP(d)},{isStatic:y}=p,S=TP(d),b=r(d,y);if(!y&&iu){_P(p,e);const T=IP(p);m=T.MeasureLayout,S.visualElement=PP(i,b,p,t,T.ProjectionNode)}return v.jsxs(Ta.Provider,{value:S,children:[m&&S.visualElement?v.jsx(m,{visualElement:S.visualElement,...p}):null,n(i,d,CP(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[EP]=i,u}function OP({layoutId:e}){const t=I.useContext(nu).id;return t&&e!==void 0?t+"-"+e:e}function _P(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 IP(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 Dg=e=>t=>typeof t=="string"&&t.startsWith(e),Su=Dg("--"),$P=Dg("var(--"),Tu=e=>$P(e)?DP.test(e.split("/*")[0].trim()):!1,DP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ks={};function RP(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"),NP=Zs("vh"),LP=Zs("vw"),Lg={..._n,parse:e=>_n.parse(e)/100,transform:e=>_n.transform(e*100)},kP={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},jP={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={...kP,...jP,zIndex:kg,size:Se,fillOpacity:Xs,strokeOpacity:Xs,numOctaves:kg},FP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},VP=Wi.length;function BP(e,t,n){let r="",i=!0;for(let a=0;a<VP;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=FP[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=BP(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 WP({transformTemplate:e},t){return I.useMemo(()=>{const n=Pu();return Cu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function UP(e,t){const n=e.style||{},r={};return jg(r,n,e),Object.assign(r,WP(e,t)),r}function zP(e,t){const n={},r=UP(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 GP=["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:!!(GP.indexOf(e)>-1||/[A-Z]/u.test(e))}const YP={offset:"stroke-dashoffset",array:"stroke-dasharray"},HP={offset:"strokeDashoffset",array:"strokeDasharray"};function qP(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?YP:HP;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 KP(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: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=KP(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&&qP(p,o,c,u,!1)}const Vg=()=>({...Pu(),attrs:{}}),Ou=e=>typeof e=="string"&&e.toLowerCase()==="svg";function XP(e,t,n,r){const i=I.useMemo(()=>{const a=Vg();return Mu(a,t,Ou(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 ZP(e=!1){return(n,r,i,{latestValues:a},o)=>{const u=(Au(n)?XP:zP)(r,a,o,n),d=xP(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),JP=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),QP=e=>Iu(e)?e[e.length-1]||0:e;function Aa(e){const t=St(e)?e.get():e;return JP(t)?t.toValue():t}function eA({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,a){const o={latestValues:tA(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=()=>eA(e,t,r,i);return n?a():ru(a)};function tA(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=Mg(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:T,...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 $u(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 nA={useVisualState:Wg({scrapeMotionValuesFromProps:$u,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=$u(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"],rA={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(()=>{Mu(r,i,Ou(n.tagName),e.transformTemplate),Yg(n,r)})})}})};function iA(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...Au(r)?rA:nA,preloadedFeatures:e,useRender:ZP(i),createVisualElement:t,Component:r};return MP(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 sA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Hs(n))}function oA(e,t){const n=Js(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const c=QP(a[o]);sA(e,o,c)}}function aA(e){return!!(St(e)&&e.add)}function Du(e,t){const n=e.getValue("willChange");if(aA(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,lA=1e-7,cA=12;function uA(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)>lA&&++c<cA);return o}function Qs(e,t,n,r){if(e===t&&n===r)return Rt;const i=a=>uA(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 fA(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 dA(e){return e==null}const hA=/^(?:#[\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"&&hA.test(n)&&n.startsWith(e)||t&&!dA(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}},mA=e=>qn(0,255,e),ju={...Ui,transform:e=>Math.round(mA(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 pA(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:pA,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)},gA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function yA(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(gA))===null||n===void 0?void 0:n.length)||0)>0}const a0="number",l0="color",vA="var",bA="var(",c0="${}",xA=/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(xA,u=>(Tt.test(u)?(r.color.push(a),i.push(l0),n.push(Tt.parse(u))):u.startsWith(bA)?(r.var.push(a),i.push(vA),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 wA=e=>typeof e=="number"?0:e;function SA(e){const t=u0(e);return f0(e)(t.map(wA))}const wr={test:yA,parse:u0,createTransformer:f0,getAnimatableNone:SA},TA=new Set(["brightness","contrast","saturate","opacity"]);function EA(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=TA.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const CA=/\b([a-z-]*)\(.*?\)/gu,Vu={...wr,getAnimatableNone:e=>{const t=e.match(CA);return t?t.map(EA).join(" "):e}},PA={...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=>PA[e];function h0(e,t){let n=d0(e);return n!==Vu&&(n=wr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const AA=new Set(["auto","none","0"]);function MA(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!AA.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]),_A={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=_A,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($A);return typeof a=="function"?a(o):o[a]}const IA=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Uu(n,t)};function $A(e){return parseFloat(e.trim())}const v0=e=>e===Ui||e===Se,DA=new Set(["x","y","z"]),RA=Wi.filter(e=>!DA.has(e));function NA(e){const t=[];return RA.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=NA(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 LA(){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),kA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function jA(e){const t=kA.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const FA=4;function S0(e,t,n=1){vr(n<=FA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=jA(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,LP,NP,{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++)fA(t[i])&&r.push(i);r.length&&MA(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 VA(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 BA(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:VA(e)||(n==="spring"||du(n))&&r}const WA=e=>e!==null;function Ma(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(WA),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const UA=40;let M0=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=On.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>UA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&LA(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=On.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:a,delay:o,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!BA(t,r,i,a))if(o)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 zA({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 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)},GA=[Fu,Kr,zi],YA=e=>GA.find(t=>t.test(e));function O0(e){const t=YA(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=zA(n)),n}const _0=(e,t)=>{const n=O0(e),r=O0(t);if(!n||!r)return Oa(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))},HA=(e,t)=>n=>t(e(n)),no=(...e)=>e.reduce(HA),Ku=new Set(["none","hidden"]);function qA(e,t){return Ku.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function KA(e,t){return n=>tt(e,t,n)}function Xu(e){return typeof e=="number"?KA:typeof e=="string"?Tu(e)?Oa:Tt.test(e)?_0:JA:Array.isArray(e)?I0:typeof e=="object"?Tt.test(e)?_0:XA:Oa}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 XA(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 ZA(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 JA=(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?qA(e,t):no(I0(ZA(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 $0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tt(e,t,n):Xu(e)(e,t)}const QA=5;function D0(e,t,n){const r=Math.max(t-QA,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 eM({duration:e=nt.duration,bounce:t=nt.bounce,velocity:n=nt.velocity,mass:r=nt.mass}){let i,a;ji(e<=Mn(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=nM(i,a,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:o*2*Math.sqrt(r*d),duration:e}}}const tM=12;function nM(e,t,n){let r=n;for(let i=1;i<tM;i++)r=r-e(r)/t(r);return r}function Zu(e,t){return e*Math.sqrt(1-t*t)}const rM=["duration","bounce"],iM=["stiffness","damping","mass"];function N0(e,t){return t.some(n=>e[n]!==void 0)}function sM(e){let t={velocity:nt.velocity,stiffness:nt.stiffness,damping:nt.damping,mass:nt.mass,isResolvedFromDuration:!1,...e};if(!N0(e,iM)&&N0(e,rM))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=eM(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}=sM({...n,velocity:-Hn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=o-a,w=Hn(Math.sqrt(u/h)),C=Math.abs(T)<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 P=Zu(w,b);A=R=>{const k=Math.exp(-b*w*R);return o-k*((S+b*w*T)/P*Math.sin(P*R)+T*Math.cos(P*R))}}else if(b===1)A=P=>o-Math.exp(-w*P)*(T+(S+w*T)*P);else{const P=w*Math.sqrt(b*b-1);A=R=>{const k=Math.exp(-b*w*R),F=Math.min(P*R,300);return o-k*((S+b*w*T)*Math.sinh(F)+P*T*Math.cosh(F))/P}}const $={calculatedDuration:y&&m||null,next:P=>{const R=A(P);if(y)c.done=P>=m;else{let k=0;b<1&&(k=P===0?Mn(S):D0(A,P,R));const F=Math.abs(k)<=r,z=Math.abs(o-R)<=i;c.done=F&&z}return c.value=c.done?o: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: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 T=m+b,w=o===void 0?T:o(T);w!==T&&(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 P,R;const k=F=>{y(p.value)&&(P=F,R=L0({keyframes:[p.value,S(p.value)],velocity:D0(A,F,p.value),damping:i,stiffness:a,restDelta:d,restSpeed:h}))};return k(0),{calculatedDuration:null,next:F=>{let z=!1;return!R&&P===void 0&&(z=!0,$(F),k(F)),P!==void 0&&F>=P?R.next(F-P):(!z&&$(F),p)}}}const oM=Qs(.42,0,1,1),aM=Qs(0,0,.58,1),j0=Qs(.42,0,.58,1),lM=e=>Array.isArray(e)&&typeof e[0]!="number",F0={linear:Rt,easeIn:oM,easeInOut:j0,easeOut:aM,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 cM(e,t,n){const r=[],i=n||$0,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 uM(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=cM(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 fM(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 dM(e){const t=[0];return fM(t,e.length-1),t}function hM(e,t){return e.map(n=>n*t)}function mM(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=lM(r)?r.map(V0):V0(r),a={done:!1,value:t[0]},o=hM(n&&n.length===t.length?n:dM(t),e),c=uM(o,t,{ease:Array.isArray(i)?i:mM(t,i)});return{calculatedDuration:e,next:u=>(a.value=c(u),a.done=u>=e,a)}}const pM=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ye.update(t,!0),stop:()=>br(t),now:()=>yt.isProcessing?yt.timestamp:On.now()}},gM={decay:k0,inertia:k0,tween:ro,keyframes:ro,spring:L0},yM=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: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:gM[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(yM,$0(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:T}=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 P=C?{done:!1,value:u[0]}:$.next(A);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)),T&&T(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=pM,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 vM=new Set(["opacity","clipPath","filter","transform"]);function bM(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 xM=lu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_a=10,wM=2e4;function SM(e){return du(e.type)||e.type==="spring"||!mg(e.ease)}function TM(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<wM;)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 EM(e){return e in B0}let W0=class extends M0{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()&&EM(a)&&(a=B0[a]),SM(this.options)){const{onComplete:m,onUpdate:p,motionValue:y,element:S,...b}=this.options,T=TM(t,b);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,a=T.ease,o="keyframes"}const h=bM(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(Ma(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=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: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=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: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 xM()&&r&&vM.has(r)&&(r!=="transform"||!d)&&!u&&!i&&a!=="mirror"&&o!==0&&c!=="inertia"}};const CM={type:"spring",stiffness:500,damping:25,restSpeed:10},PM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),AM={type:"keyframes",duration:.8},MM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},OM=(e,{keyframes:t})=>t.length>2?AM:qr.has(e)?e.startsWith("scale")?PM(t[1]):CM:MM;function _M({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-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:()=>{o(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:a?void 0:i};_M(c)||(h={...h,...OM(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&&!a&&t.get()!==void 0){const p=Ma(h.keyframes,c);if(p!==void 0)return Ye.update(()=>{h.onUpdate(p),h.onComplete()}),new nP([])}return!a&&W0.supports(h)?new W0(h):new Ju(h)};function IM({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&&IM(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)}}Du(e,m),p.start(Qu(m,p,y,e.shouldReduceMotion&&Kg.has(m)?{type:!1}:S,e,b));const T=p.animation;T&&d.push(T)}return c&&Promise.all(d).then(()=>{Ye.update(()=>{c&&oA(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 $M(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 $M(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(DM).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 DM(e,t){return e.sortNodePosition(t)}function RM(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 NM=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<NM;n++){const r=xu[n],i=e.props[r];(qs(i)||i===!1)&&(t[r]=i)}return t}const LM=[...bu].reverse(),kM=bu.length;function jM(e){return t=>Promise.all(t.map(({animation:n,options:r})=>RM(e,n,r)))}function FM(e){let t=jM(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 T=0;T<kM;T++){const w=LM[T],C=n[w],A=d[w]!==void 0?d[w]:h[w],$=qs(A),P=w===u?C.isActive:null;P===!1&&(S=T);let R=A===h[w]&&A!==d[w]&&$;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),C.protectedKeys={...y},!C.isActive&&P===null||!A&&!C.prevProp||Ea(A)||typeof A=="boolean")continue;const k=VM(C.prevProp,A);let F=k||w===u&&C.isActive&&!R&&$||T>S&&$,z=!1;const Q=Array.isArray(A)?A:[A];let ee=Q.reduce(i(w),{});P===!1&&(ee={});const{prevResolvedValues:ce={}}=C,ye={...ce,...ee},ue=V=>{F=!0,p.has(V)&&(z=!0,p.delete(V)),C.needsAnimating[V]=!0;const W=e.getValue(V);W&&(W.liveStyle=!1)};for(const V in ye){const W=ee[V],H=ce[V];if(y.hasOwnProperty(V))continue;let O=!1;Iu(W)&&Iu(H)?O=!z0(W,H):O=W!==H,O?W!=null?ue(V):p.add(V):W!==void 0&&p.has(V)?ue(V):C.protectedKeys[V]=!0}C.prevProp=A,C.prevResolvedValues=ee,C.isActive&&(y={...y,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(R&&k)||z)&&m.push(...Q.map(V=>({animation:V,options:{type:w}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const w=Js(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(T.transition=w.transition)}p.forEach(w=>{const C=e.getBaseTarget(w),A=e.getValue(w);A&&(A.liveStyle=!0),T[w]=C??null}),m.push({animation:T})}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 VM(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(){}},BM=class extends Sr{constructor(t){super(t),t.animationState||(t.animationState=FM(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)}},WM=0;const UM={animation:{Feature:BM},exit:{Feature:class extends Sr{constructor(){super(...arguments),this.id=WM++}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 zM=e=>t=>yu(t)&&e(t,so(t));function oo(e,t,n,r){return io(e,t,zM(n),r)}function H0({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function GM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function YM(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,HM=1-q0,qM=1+q0,K0=.01,KM=0-K0,XM=0+K0;function Ot(e){return e.max-e.min}function ZM(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>=HM&&e.scale<=qM||isNaN(e.scale))&&(e.scale=1),(e.translate>=KM&&e.translate<=XM||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 JM(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 QM(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(YM(e.getBoundingClientRect(),t))}function eO(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 tO(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=tO(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:T,onMove:w}=this.handlers;p||(T&&T(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 T=of(m.type==="pointercancel"?this.lastMoveEventInfo:sf(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,T),S&&S(m,T)},!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,nO(t)),velocity:rO(t,.1)}}function nO(e){return e[0]}function hy(e){return e[e.length-1]}function rO(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 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 iO(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 sO(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 oO(e,t){return{x:py(e.x,t.x),y:py(e.y,t.y)}}function aO(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 lO(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 cO(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 uO=new WeakMap;let fO=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=lP(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(T=>{let w=this.getAxisMotionValue(T).get()||0;if(_n.test(w)){const{projection:C}=this.visualElement;if(C&&C.layout){const A=C.layout.layoutBox[T];A&&(w=Ot(A)*(parseFloat(w)/100))}}this.originPoint[T]=w}),S&&Ye.postRender(()=>S(h,m)),Du(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:T}=m;if(y&&this.currentDirection===null){this.currentDirection=dO(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),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||!$a(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=iO(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=sO(i.layoutBox,n):this.constraints=!1,this.elastic=cO(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=lO(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=eO(r,i.root,this.visualElement.getTransformPagePoint());let o=oO(i.layout.layoutBox,a);if(n){const c=n(GM(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(!$a(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 Du(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(!$a(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]=aO({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(!$a(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;uO.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 $a(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function dO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}let hO=class extends Sr{constructor(t){super(t),this.removeGroupControls=Rt,this.removeListeners=Rt,this.controls=new fO(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 mO=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 Da={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}%`}},pO={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 gO=class extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;RP(yO),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()})),Da.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(gO,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(Ig),isPresent:t,safeToRemove:n})}const yO={borderRadius:{...co,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:co,borderTopRightRadius:co,borderBottomLeftRadius:co,borderBottomRightRadius:co,boxShadow:pO};function vO(e,t,n){const r=St(e)?e:Hs(e);return r.start(Qu("",r,t,n)),r.animation}function bO(e){return e instanceof SVGElement&&e.tagName!=="svg"}const xO=(e,t)=>e.depth-t.depth;let wO=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(xO),this.isDirty=!1,this.children.forEach(t)}};function SO(e,t){const n=On.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"],TO=wy.length,Sy=e=>typeof e=="string"?parseFloat(e):e,Ty=e=>typeof e=="number"||Se.test(e);function EO(e,t,n,r,i,a){i?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,CO(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,PO(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<TO;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 CO=Cy(0,.5,r0),PO=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 AO(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=My(e.min,t,n,c,i),e.max=My(e.max,t,n,c,i)}function Oy(e,t,[n,r,i],a,o){AO(e,t[n],t[r],t[i],t.scale,a,o)}const MO=["x","scaleX","originX"],OO=["y","scaleY","originY"];function _y(e,t,n,r){Oy(e.x,t,MO,n?n.x:void 0,r?r.x:void 0),Oy(e.y,t,OO,n?n.y:void 0,r?r.y:void 0)}function Iy(e){return e.translate===0&&e.scale===1}function $y(e){return Iy(e.x)&&Iy(e.y)}function Dy(e,t){return e.min===t.min&&e.max===t.max}function _O(e,t){return Dy(e.x,t.x)&&Dy(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 IO=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 $O(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"],DO={visibility:"hidden"},jy=1e3;let RO=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=RO++,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(kO),this.nodes.forEach(WO),this.nodes.forEach(UO),this.nodes.forEach(jO)},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 wO)}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=bO(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=SO(p,250),Da.hasAnimatedSinceResize&&(Da.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()||qO,{onLayoutAnimationStart:T,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:T,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(zO),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(VO),this.isUpdating=!1,this.nodes.forEach(BO),this.nodes.forEach(NO),this.nodes.forEach(LO),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(FO),this.sharedNodes.forEach(GO)}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 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&&!$y(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)),KO(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(XO))){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(),JM(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;QM(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,T=this.getStack(),w=!T||T.members.length<=1,C=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(HO));this.animationProgress=0;let A;this.mixTargetDelta=$=>{const P=$/1e3;Uy(m.x,o.x,P),Uy(m.y,o.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),YO(this.relativeTarget,this.relativeTargetOrigin,p,P),A&&_O(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=at()),nn(A,this.relativeTarget)),b&&(this.animationValues=h,EO(h,d,this.latestValues,P,C,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},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(()=>{Da.hasAnimatedSinceResize=!0,this.currentAnimation=vO(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=Ot(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+m;const p=Ot(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 IO),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 DO;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=$O(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:T,applyTo:w,isCSSVariable:C}=Ks[b],A=d.transform==="none"?p[b]:T(p[b],m);if(w){const $=w.length;for(let P=0;P<$;P++)d[w[P]]=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 NO(e){e.updateLayout()}function LO(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=Ot(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=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();o?ao(u,e.applyTransform(i,!0),n.measuredBox):ao(u,r,n.layoutBox);const d=!$y(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 kO(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 jO(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function FO(e){e.clearSnapshot()}function By(e){e.clearMeasurements()}function VO(e){e.isLayoutDirty=!1}function BO(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 WO(e){e.resolveTargetDelta()}function UO(e){e.calcProjection()}function zO(e){e.resetSkewAndRotation()}function GO(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 YO(e,t,n,r){zy(e.x,t.x,n.x,r),zy(e.y,t.y,n.y,r)}function HO(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const qO={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 KO(e){Hy(e.x),Hy(e.y)}function qy(e,t,n){return e==="position"||e==="preserve-aspect"&&!ZM(Ly(t),Ly(n),.2)}function XO(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const ZO=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 ZO({});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"}),JO={pan:{Feature:mO},drag:{Feature:hO,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 QO=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=uP(t,(n,r)=>(Xy(this.node,r,"Start"),i=>Xy(this.node,i,"End"))))}unmount(){}},e_=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 t_=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=mP(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,n_=e=>{const t=ff.get(e.target);t&&t(e)},r_=e=>{e.forEach(n_)};function i_({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(r_,{root:e,...t})),r[i]}function s_(e,t,n){const r=i_(t);return ff.set(e,n),r.observe(e),()=>{ff.delete(e),r.unobserve(e)}}const o_={some:0,all:1};let a_=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:o_[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 s_(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(l_(t,n))&&this.startObserver()}unmount(){}};function l_({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const c_={inView:{Feature:a_},tap:{Feature:t_},focus:{Feature:e_},hover:{Feature:QO}},u_={layout:{ProjectionNode:Ky,MeasureLayout:xy}},hf={current:null},Jy={current:!1};function f_(){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 d_=[...E0,Tt,wr],h_=e=>d_.find(T0(e)),m_=new WeakMap;function p_(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 g_=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=On.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=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,m_.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||f_(),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=p_(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):!h_(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 g_{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 y_(e){return window.getComputedStyle(e)}let v_=class extends ev{constructor(){super(...arguments),this.type="html",this.renderInstance=zg}readValueFromInstance(t,n){if(qr.has(n))return IA(t,n);{const r=y_(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 $u(t,n,r)}},b_=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 x_=(e,t)=>Au(e)?new b_(t):new v_(t,{allowProjection:e!==I.Fragment}),w_=iA({...UM,...c_,...JO,...u_},x_),mf=wP(w_),S_=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=BC;break;case"error":u="text-red-500",d="bg-red-50",h="border-red-500",c=HC;break;case"warning":u="text-yellow-500",d="bg-yellow-50",h="border-yellow-500",c=FC;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,S_);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(JC,{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($e,{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($e,{icon:YC,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})};/*!
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 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 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=/^'([^]*?)'?$/,MI=/''/g,OI=/[a-zA-Z]/;function $n(e,t,n){var h,m,p,y,S,b,T,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=(T=r.locale)==null?void 0:T.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 D=yI[A];return D(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(OI))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 D=dv[A[0]];return D(c,A,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:{}};/**
625
+ */const T_={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"]},E_={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,C_=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 P_={};function uo(){return P_}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 A_(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)/C_)}function M_(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 __(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function I_(e){return!(!__(e)&&typeof e!="number"||isNaN(+pt(e)))}function $_(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 R_(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 N_(e,t){const n=pt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function L_(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 k_(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 j_={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"}},F_=(e,t,n)=>{let r;const i=j_[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 V_={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},B_={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},W_={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},U_={date:Xi({formats:V_,defaultWidth:"full"}),time:Xi({formats:B_,defaultWidth:"full"}),dateTime:Xi({formats:W_,defaultWidth:"full"})},z_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},G_=(e,t,n,r)=>z_[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 Y_={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},H_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},q_={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"]},K_={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"]},X_={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"}},Z_={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"}},J_={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:Y_,defaultWidth:"wide"}),quarter:In({values:H_,defaultWidth:"wide",argumentCallback:e=>e-1}),month:In({values:q_,defaultWidth:"wide"}),day:In({values:K_,defaultWidth:"wide"}),dayPeriod:In({values:X_,defaultWidth:"wide",formattingValues:Z_,defaultFormattingWidth:"wide"})};function $n(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)?eI(c,m=>m.test(o)):Q_(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 Q_(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function eI(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 tI=/^(\d+)(th|st|nd|rd)?/i,nI=/\d+/i,rI={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},iI={any:[/^b/i,/^(a|c)/i]},sI={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},oI={any:[/1/i,/2/i,/3/i,/4/i]},aI={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},lI={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]},cI={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},uI={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]},fI={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},dI={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}},hI={ordinalNumber:cv({matchPattern:tI,parsePattern:nI,valueCallback:e=>parseInt(e,10)}),era:$n({matchPatterns:rI,defaultMatchWidth:"wide",parsePatterns:iI,defaultParseWidth:"any"}),quarter:$n({matchPatterns:sI,defaultMatchWidth:"wide",parsePatterns:oI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:aI,defaultMatchWidth:"wide",parsePatterns:lI,defaultParseWidth:"any"}),day:$n({matchPatterns:cI,defaultMatchWidth:"wide",parsePatterns:uI,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:fI,defaultMatchWidth:"any",parsePatterns:dI,defaultParseWidth:"any"})},uv={code:"en-US",formatDistance:F_,formatLong:U_,formatRelative:G_,localize:J_,match:hI,options:{weekStartsOn:0,firstWeekContainsDate:1}};function mI(e,t){const n=pt(e,t==null?void 0:t.in);return A_(n,L_(n))+1}function pI(e,t){const n=pt(e,t==null?void 0:t.in),r=+Ra(n)-+M_(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 gI(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 yI(e,t){const n=pt(e,t==null?void 0:t.in),r=+Ki(n,t)-+gI(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=yI(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):We(i,t.length)},I:function(e,t,n){const r=pI(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=mI(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"})}},vI={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))}},bI=/^D+$/,xI=/^Y+$/,wI=["D","DD","YY","YYYY"];function SI(e){return bI.test(e)}function TI(e){return xI.test(e)}function EI(e,t,n){const r=CI(e,t,n);if(console.warn(r),wI.includes(e))throw new RangeError(r)}function CI(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 PI=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,AI=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,MI=/^'([^]*?)'?$/,OI=/''/g,_I=/[a-zA-Z]/;function Dn(e,t,n){var h,m,p,y,S,b,T,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=(T=r.locale)==null?void 0:T.options)==null?void 0:w.weekStartsOn)??0,c=pt(e,n==null?void 0:n.in);if(!I_(c))throw new RangeError("Invalid time value");let u=t.match(AI).map(C=>{const A=C[0];if(A==="p"||A==="P"){const $=vI[A];return $(C,i.formatLong)}return C}).join("").match(PI).map(C=>{if(C==="''")return{isToken:!1,value:"'"};const A=C[0];if(A==="'")return{isToken:!1,value:II(C)};if(dv[A])return{isToken:!0,value:C};if(A.match(_I))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)&&TI(A)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&SI(A))&&EI(A,t,String(e));const $=dv[A[0]];return $(c,A,i.localize,d)}).join("")}function II(e){const t=e.match(MI);return t?t[1].replace(OI,"'"):e}function $I(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 RI(e,t,n){return sv(e,-1,n)}const NI={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"}},LI=(e,t,n)=>{let r;const i=NI[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},kI={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},jI={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},FI={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},VI={date:Xi({formats:kI,defaultWidth:"full"}),time:Xi({formats:jI,defaultWidth:"full"}),dateTime:Xi({formats:FI,defaultWidth:"full"})},BI={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"},WI={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"},UI=(e,t,n,r)=>t.getHours()!==1?WI[e]:BI[e],zI={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},GI={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},YI={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"]},HI={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"]},qI={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"}},KI={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"}},XI={ordinalNumber:(e,t)=>Number(e)+"º",era:In({values:zI,defaultWidth:"wide"}),quarter:In({values:GI,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:In({values:YI,defaultWidth:"wide"}),day:In({values:HI,defaultWidth:"wide"}),dayPeriod:In({values:qI,defaultWidth:"wide",formattingValues:KI,defaultFormattingWidth:"wide"})},ZI=/^(\d+)(º)?/i,JI=/\d+/i,QI={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},e$={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]},t$={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},n$={any:[/1/i,/2/i,/3/i,/4/i]},r$={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},i$={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]},s$={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},o$={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]},a$={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},l$={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}},c$={ordinalNumber:cv({matchPattern:ZI,parsePattern:JI,valueCallback:function(e){return parseInt(e,10)}}),era:$n({matchPatterns:QI,defaultMatchWidth:"wide",parsePatterns:e$,defaultParseWidth:"any"}),quarter:$n({matchPatterns:t$,defaultMatchWidth:"wide",parsePatterns:n$,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:r$,defaultMatchWidth:"wide",parsePatterns:i$,defaultParseWidth:"any"}),day:$n({matchPatterns:s$,defaultMatchWidth:"wide",parsePatterns:o$,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:a$,defaultMatchWidth:"any",parsePatterns:l$,defaultParseWidth:"any"})},Ji={code:"es",formatDistance:LI,formatLong:VI,formatRelative:UI,localize:XI,match:c$,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},u$=(e,t="PPPP",n="es")=>{const r=typeof e=="string"?new Date(e):e;return xv(Dn(r,t,{locale:{en:uv,es:Ji}[n]}))},f$=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,T=1,w=2,C=4,A=8,D=16,P=32,R=64,k=128,F=256,z=512,Q=30,ee="...",ce=800,ye=16,ue=1,te=2,oe=3,V=1/0,W=9007199254740991,H=17976931348623157e292,O=NaN,N=4294967295,X=N-1,ne=N>>>1,ae=[["ary",k],["bind",T],["bindKey",w],["curry",A],["curryRight",D],["flip",z],["partial",P],["partialRight",R],["rearg",F]],G="[object Arguments]",re="[object Array]",he="[object AsyncFunction]",fe="[object Boolean]",ve="[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]",bk=/\b__p \+= '';/g,xk=/\b(__p \+=) '' \+/g,wk=/(__e\(.*?\)|\b__t\)) \+\n'';/g,kw=/&(?:amp|lt|gt|quot|#39);/g,jw=/[&<>"']/g,Sk=RegExp(kw.source),Tk=RegExp(jw.source),Ek=/<%-([\s\S]+?)%>/g,Ck=/<%([\s\S]+?)%>/g,Fw=/<%=([\s\S]+?)%>/g,Pk=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ak=/^\w*$/,Mk=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yh=/[\\^$.*+?()[\]{}|]/g,Ok=RegExp(yh.source),vh=/^\s+/,_k=/\s/,Ik=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Dk=/\{\n\/\* \[wrapped with (.+)\] \*/,$k=/,? & /,Rk=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Nk=/[()=,{}\[\]\/\s]/,Lk=/\\(\\)?/g,kk=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vw=/\w*$/,jk=/^[-+]0x[0-9a-f]+$/i,Fk=/^0b[01]+$/i,Vk=/^\[object .+?Constructor\]$/,Bk=/^0o[0-7]+$/i,Wk=/^(?:0|[1-9]\d*)$/,Uk=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tl=/($^)/,zk=/['\n\r\u2028\u2029\\]/g,El="\\ud800-\\udfff",Gk="\\u0300-\\u036f",Yk="\\ufe20-\\ufe2f",Hk="\\u20d0-\\u20ff",Bw=Gk+Yk+Hk,Ww="\\u2700-\\u27bf",Uw="a-z\\xdf-\\xf6\\xf8-\\xff",qk="\\xac\\xb1\\xd7\\xf7",Kk="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Xk="\\u2000-\\u206f",Zk=" \\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=qk+Kk+Xk+Zk,bh="['’]",Jk="["+El+"]",Hw="["+Yw+"]",Cl="["+Bw+"]",qw="\\d+",Qk="["+Ww+"]",Kw="["+Uw+"]",Xw="[^"+El+Yw+qw+Ww+Uw+zw+"]",xh="\\ud83c[\\udffb-\\udfff]",e3="(?:"+Cl+"|"+xh+")",Zw="[^"+El+"]",wh="(?:\\ud83c[\\udde6-\\uddff]){2}",Sh="[\\ud800-\\udbff][\\udc00-\\udfff]",Ss="["+zw+"]",Jw="\\u200d",Qw="(?:"+Kw+"|"+Xw+")",t3="(?:"+Ss+"|"+Xw+")",e2="(?:"+bh+"(?:d|ll|m|re|s|t|ve))?",t2="(?:"+bh+"(?:D|LL|M|RE|S|T|VE))?",n2=e3+"?",r2="["+Gw+"]?",n3="(?:"+Jw+"(?:"+[Zw,wh,Sh].join("|")+")"+r2+n2+")*",r3="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",i3="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",i2=r2+n2+n3,s3="(?:"+[Qk,wh,Sh].join("|")+")"+i2,o3="(?:"+[Zw+Cl+"?",Cl,wh,Sh,Jk].join("|")+")",a3=RegExp(bh,"g"),l3=RegExp(Cl,"g"),Th=RegExp(xh+"(?="+xh+")|"+o3+i2,"g"),c3=RegExp([Ss+"?"+Kw+"+"+e2+"(?="+[Hw,Ss,"$"].join("|")+")",t3+"+"+t2+"(?="+[Hw,Ss+Qw,"$"].join("|")+")",Ss+"?"+Qw+"+"+e2,Ss+"+"+t2,i3,r3,qw,s3].join("|"),"g"),u3=RegExp("["+Jw+El+Bw+Gw+"]"),f3=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,d3=["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"],h3=-1,Je={};Je[Pt]=Je[xn]=Je[rr]=Je[fh]=Je[dh]=Je[hh]=Je[mh]=Je[ph]=Je[gh]=!0,Je[G]=Je[re]=Je[be]=Je[fe]=Je[Qe]=Je[ve]=Je[Le]=Je[ie]=Je[ke]=Je[ft]=Je[dt]=Je[Si]=Je[qt]=Je[bn]=Je[Nr]=!1;var Ke={};Ke[G]=Ke[re]=Ke[be]=Ke[Qe]=Ke[fe]=Ke[ve]=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 m3={À:"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"},p3={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},g3={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},y3={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},v3=parseFloat,b3=parseInt,s2=typeof ea=="object"&&ea&&ea.Object===Object&&ea,x3=typeof self=="object"&&self&&self.Object===Object&&self,bt=s2||x3||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 w3(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 S3(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 T3(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 E3=Oh("length");function C3(L){return L.split("")}function P3(L){return L.match(Rk)||[]}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?j3(L,U,B):Al(L,p2,B)}function A3(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 M3(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 O3(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 _3(L,U){for(var B=L.length,de=0;B--;)L[B]===U&&++de;return de}var I3=_h(m3),D3=_h(p3);function $3(L){return"\\"+y3[L]}function R3(L,U){return L==null?n:L[U]}function Es(L){return u3.test(L)}function N3(L){return f3.test(L)}function L3(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 k3(L){var U=-1,B=Array(L.size);return L.forEach(function(de){B[++U]=[de,de]}),B}function j3(L,U,B){for(var de=B-1,Pe=L.length;++de<Pe;)if(L[de]===U)return de;return-1}function F3(L,U,B){for(var de=B+1;de--;)if(L[de]===U)return de;return de}function Cs(L){return Es(L)?B3(L):E3(L)}function wn(L){return Es(L)?W3(L):C3(L)}function S2(L){for(var U=L.length;U--&&_k.test(L.charAt(U)););return U}var V3=_h(g3);function B3(L){for(var U=Th.lastIndex=0;Th.test(L);)++U;return U}function W3(L){return L.match(Th)||[]}function U3(L){return L.match(c3)||[]}var z3=function L(U){U=U==null?bt:Ps.defaults(bt.Object(),U,Ps.pick(bt,d3));var B=U.Array,de=U.Date,Pe=U.Error,je=U.Function,ht=U.Math,Ge=U.Object,Nh=U.RegExp,G3=U.String,fn=U.TypeError,Ol=B.prototype,Y3=je.prototype,As=Ge.prototype,_l=U["__core-js_shared__"],Il=Y3.toString,Ue=As.hasOwnProperty,H3=0,T2=function(){var s=/[^.]+$/.exec(_l&&_l.keys&&_l.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Dl=As.toString,q3=Il.call(Ge),K3=bt._,X3=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{}}(),Z3=U.clearTimeout!==bt.clearTimeout&&U.clearTimeout,J3=de&&de.now!==bt.Date.now&&de.now,Q3=U.setTimeout!==bt.setTimeout&&U.setTimeout,jl=ht.ceil,Fl=ht.floor,Lh=Ge.getOwnPropertySymbols,ej=$l?$l.isBuffer:n,M2=U.isFinite,tj=Ol.join,nj=w2(Ge.keys,Ge),mt=ht.max,At=ht.min,rj=de.now,ij=U.parseInt,O2=ht.random,sj=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={},oj=Ii(kh),aj=Ii(Bo),lj=Ii(jh),cj=Ii(Ms),uj=Ii(Wo),Bl=Fr?Fr.prototype:n,zo=Bl?Bl.valueOf:n,_2=Bl?Bl.toString:n;function E(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}E.templateSettings={escape:Ek,evaluate:Ck,interpolate:Fw,variable:"",imports:{_:E}},E.prototype=Wl.prototype,E.prototype.constructor=E,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__=N,this.__views__=[]}function fj(){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 dj(){if(this.__filtered__){var s=new Re(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function hj(){var s=this.__wrapped__.value(),l=this.__dir__,f=Ae(s),g=l<0,x=f?s.length:0,M=CF(0,x,this.__views__),_=M.start,$=M.end,j=$-_,Y=g?$:_-1,q=this.__iteratees__,K=q.length,le=0,me=At(j,this.__takeCount__);if(!f||!g&&x==j&&me==j)return eS(s,this.__actions__);var Ee=[];e:for(;j--&&le<me;){Y+=l;for(var Oe=-1,Ce=s[Y];++Oe<K;){var $e=q[Oe],Ne=$e.iteratee,Qt=$e.type,$t=Ne(Ce);if(Qt==te)Ce=$t;else if(!$t){if(Qt==ue)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 mj(){this.__data__=Uo?Uo(null):{},this.size=0}function pj(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function gj(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 yj(s){var l=this.__data__;return Uo?l[s]!==n:Ue.call(l,s)}function vj(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=mj,Pi.prototype.delete=pj,Pi.prototype.get=gj,Pi.prototype.has=yj,Pi.prototype.set=vj;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 bj(){this.__data__=[],this.size=0}function xj(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 wj(s){var l=this.__data__,f=Ul(l,s);return f<0?n:l[f][1]}function Sj(s){return Ul(this.__data__,s)>-1}function Tj(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=bj,ir.prototype.delete=xj,ir.prototype.get=wj,ir.prototype.has=Sj,ir.prototype.set=Tj;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 Ej(){this.size=0,this.__data__={hash:new Pi,map:new(Bo||ir),string:new Pi}}function Cj(s){var l=tc(this,s).delete(s);return this.size-=l?1:0,l}function Pj(s){return tc(this,s).get(s)}function Aj(s){return tc(this,s).has(s)}function Mj(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=Ej,sr.prototype.delete=Cj,sr.prototype.get=Pj,sr.prototype.has=Aj,sr.prototype.set=Mj;function Ai(s){var l=-1,f=s==null?0:s.length;for(this.__data__=new sr;++l<f;)this.add(s[l])}function Oj(s){return this.__data__.set(s,u),this}function _j(s){return this.__data__.has(s)}Ai.prototype.add=Ai.prototype.push=Oj,Ai.prototype.has=_j;function Sn(s){var l=this.__data__=new ir(s);this.size=l.size}function Ij(){this.__data__=new ir,this.size=0}function Dj(s){var l=this.__data__,f=l.delete(s);return this.size=l.size,f}function $j(s){return this.__data__.get(s)}function Rj(s){return this.__data__.has(s)}function Nj(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=Ij,Sn.prototype.delete=Dj,Sn.prototype.get=$j,Sn.prototype.has=Rj,Sn.prototype.set=Nj;function I2(s,l){var f=Ae(s),g=!f&&Di(s),x=!f&&!g&&zr(s),M=!f&&!g&&!x&&Rs(s),_=f||g||x||M,$=_?Dh(s.length,G3):[],j=$.length;for(var Y in s)(l||Ue.call(s,Y))&&!(_&&(Y=="length"||x&&(Y=="offset"||Y=="parent")||M&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||cr(Y,j)))&&$.push(Y);return $}function D2(s){var l=s.length;return l?s[Kh(0,l-1)]:n}function Lj(s,l){return nc(Vt(s),Mi(l,0,s.length))}function kj(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 jj(s,l,f,g){return Vr(s,function(x,M,_){l(g,x,f(x),_)}),g}function $2(s,l){return s&&Wn(l,gt(l),s)}function Fj(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),M=s==null;++f<g;)x[f]=M?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,M){var _,$=l&m,j=l&p,Y=l&y;if(f&&(_=x?f(s,g,x,M):f(s)),_!==n)return _;if(!st(s))return s;var q=Ae(s);if(q){if(_=AF(s),!$)return Vt(s,_)}else{var K=Mt(s),le=K==ie||K==pe;if(zr(s))return rS(s,$);if(K==dt||K==G||le&&!x){if(_=j||le?{}:SS(s),!$)return j?gF(s,Fj(_,s)):pF(s,$2(_,s))}else{if(!Ke[K])return x?s:{};_=MF(s,K,$)}}M||(M=new Sn);var me=M.get(s);if(me)return me;M.set(s,_),ZS(s)?s.forEach(function(Ce){_.add(hn(Ce,l,f,Ce,s,M))}):KS(s)&&s.forEach(function(Ce,$e){_.set($e,hn(Ce,l,f,$e,s,M))});var Ee=Y?j?om:sm:j?Wt:gt,Oe=q?n:Ee(s);return un(Oe||s,function(Ce,$e){Oe&&($e=Ce,Ce=s[$e]),Go(_,$e,hn(Ce,l,f,$e,s,M))}),_}function Vj(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],M=l[x],_=s[x];if(_===n&&!(x in s)||!M(_))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,M=Pl,_=!0,$=s.length,j=[],Y=l.length;if(!$)return j;f&&(l=et(l,Xt(f))),g?(M=Ph,_=!1):l.length>=i&&(M=Fo,_=!1,l=new Ai(l));e:for(;++x<$;){var q=s[x],K=f==null?q:f(q);if(q=g||q!==0?q:0,_&&K===K){for(var le=Y;le--;)if(l[le]===K)continue e;j.push(q)}else M(l,K,g)||j.push(q)}return j}var Vr=lS(Bn),L2=lS(Wh,!0);function Bj(s,l){var f=!0;return Vr(s,function(g,x,M){return f=!!l(g,x,M),f}),f}function zl(s,l,f){for(var g=-1,x=s.length;++g<x;){var M=s[g],_=l(M);if(_!=null&&($===n?_===_&&!Jt(_):f(_,$)))var $=_,j=M}return j}function Wj(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,M){l(g,x,M)&&f.push(g)}),f}function xt(s,l,f,g,x){var M=-1,_=s.length;for(f||(f=_F),x||(x=[]);++M<_;){var $=s[M];l>0&&f($)?l>1?xt($,l-1,f,g,x):kr(x,$):g||(x[x.length]=$)}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)?EF(s):kF(s)}function Uh(s,l){return s>l}function Uj(s,l){return s!=null&&Ue.call(s,l)}function zj(s,l){return s!=null&&l in Ge(s)}function Gj(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,M=s.length,_=M,$=B(M),j=1/0,Y=[];_--;){var q=s[_];_&&l&&(q=et(q,Xt(l))),j=At(q.length,j),$[_]=!f&&(l||x>=120&&q.length>=120)?new Ai(_&&q):n}q=s[0];var K=-1,le=$[0];e:for(;++K<x&&Y.length<j;){var me=q[K],Ee=l?l(me):me;if(me=f||me!==0?me:0,!(le?Fo(le,Ee):g(Y,Ee,f))){for(_=M;--_;){var Oe=$[_];if(!(Oe?Fo(Oe,Ee):g(s[_],Ee,f)))continue e}le&&le.push(Ee),Y.push(me)}}return Y}function Yj(s,l,f,g){return Bn(s,function(x,M,_){l(g,f(x),M,_)}),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 Hj(s){return ot(s)&&It(s)==be}function qj(s){return ot(s)&&It(s)==ve}function qo(s,l,f,g,x){return s===l?!0:s==null||l==null||!ot(s)&&!ot(l)?s!==s&&l!==l:Kj(s,l,f,g,qo,x)}function Kj(s,l,f,g,x,M){var _=Ae(s),$=Ae(l),j=_?re:Mt(s),Y=$?re:Mt(l);j=j==G?dt:j,Y=Y==G?dt:Y;var q=j==dt,K=Y==dt,le=j==Y;if(le&&zr(s)){if(!zr(l))return!1;_=!0,q=!1}if(le&&!q)return M||(M=new Sn),_||Rs(s)?bS(s,l,f,g,x,M):SF(s,l,j,f,g,x,M);if(!(f&S)){var me=q&&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 M||(M=new Sn),x(Oe,Ce,f,g,M)}}return le?(M||(M=new Sn),TF(s,l,f,g,x,M)):!1}function Xj(s){return ot(s)&&Mt(s)==ke}function Gh(s,l,f,g){var x=f.length,M=x,_=!g;if(s==null)return!M;for(s=Ge(s);x--;){var $=f[x];if(_&&$[2]?$[1]!==s[$[0]]:!($[0]in s))return!1}for(;++x<M;){$=f[x];var j=$[0],Y=s[j],q=$[1];if(_&&$[2]){if(Y===n&&!(j in s))return!1}else{var K=new Sn;if(g)var le=g(Y,q,j,s,l,K);if(!(le===n?qo(q,Y,S|b,g,K):le))return!1}}return!0}function B2(s){if(!st(s)||DF(s))return!1;var l=ur(s)?X3:Vk;return l.test(Ii(s))}function Zj(s){return ot(s)&&It(s)==Si}function Jj(s){return ot(s)&&Mt(s)==qt}function Qj(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 nj(s);var l=[];for(var f in Ge(s))Ue.call(s,f)&&f!="constructor"&&l.push(f);return l}function eF(s){if(!st(s))return LF(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,M,_){g[++f]=l(x,M,_)}),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(M,_){if(x||(x=new Sn),st(M))tF(s,l,_,f,Yl,g,x);else{var $=g?g(dm(s,_),M,_+"",s,l,x):n;$===n&&($=M),Fh(s,_,$)}},Wt)}function tF(s,l,f,g,x,M,_){var $=dm(s,f),j=dm(l,f),Y=_.get(j);if(Y){Fh(s,f,Y);return}var q=M?M($,j,f+"",s,l,_):n,K=q===n;if(K){var le=Ae(j),me=!le&&zr(j),Ee=!le&&!me&&Rs(j);q=j,le||me||Ee?Ae($)?q=$:ct($)?q=Vt($):me?(K=!1,q=rS(j,!0)):Ee?(K=!1,q=iS(j,!0)):q=[]:Qo(j)||Di(j)?(q=$,Di($)?q=eT($):(!st($)||ur($))&&(q=SS(j))):K=!1}K&&(_.set(j,q),x(q,j,g,M,_),_.delete(j)),Fh(s,f,q)}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(M){return Ae(M)?function(_){return Oi(_,M.length===1?M[0]:M)}:M}):l=[Ut];var g=-1;l=et(l,Xt(we()));var x=U2(s,function(M,_,$){var j=et(l,function(Y){return Y(M)});return{criteria:j,index:++g,value:M}});return M3(x,function(M,_){return mF(M,_,f)})}function nF(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,M={};++g<x;){var _=l[g],$=Oi(s,_);f($,_)&&Ko(M,Wr(_,s),$)}return M}function rF(s){return function(l){return Oi(l,s)}}function qh(s,l,f,g){var x=g?A3:Ts,M=-1,_=l.length,$=s;for(s===l&&(l=Vt(l)),f&&($=et(s,Xt(f)));++M<_;)for(var j=0,Y=l[M],q=f?f(Y):Y;(j=x($,q,j,g))>-1;)$!==s&&Ll.call($,j,1),Ll.call(s,j,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!==M){var M=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 iF(s,l,f,g){for(var x=-1,M=mt(jl((l-s)/(f||1)),0),_=B(M);M--;)_[g?M:++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 sF(s){return D2(Ns(s))}function oF(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,M=l.length,_=M-1,$=s;$!=null&&++x<M;){var j=Un(l[x]),Y=f;if(j==="__proto__"||j==="constructor"||j==="prototype")return s;if(x!=_){var q=$[j];Y=g?g(q,j,$):n,Y===n&&(Y=st(q)?q:cr(l[x+1])?[]:{})}Go($,j,Y),$=$[j]}return s}var X2=Vl?function(s,l){return Vl.set(s,l),s}:Ut,aF=kl?function(s,l){return kl(s,"toString",{configurable:!0,enumerable:!1,value:Tm(l),writable:!0})}:Ut;function lF(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 M=B(x);++g<x;)M[g]=s[g+l];return M}function cF(s,l){var f;return Vr(s,function(g,x,M){return f=l(g,x,M),!f}),!!f}function Hl(s,l,f){var g=0,x=s==null?g:s.length;if(typeof l=="number"&&l===l&&x<=ne){for(;g<x;){var M=g+x>>>1,_=s[M];_!==null&&!Jt(_)&&(f?_<=l:_<l)?g=M+1:x=M}return x}return Zh(s,l,Ut,f)}function Zh(s,l,f,g){var x=0,M=s==null?0:s.length;if(M===0)return 0;l=f(l);for(var _=l!==l,$=l===null,j=Jt(l),Y=l===n;x<M;){var q=Fl((x+M)/2),K=f(s[q]),le=K!==n,me=K===null,Ee=K===K,Oe=Jt(K);if(_)var Ce=g||Ee;else Y?Ce=Ee&&(g||le):$?Ce=Ee&&le&&(g||!me):j?Ce=Ee&&le&&!me&&(g||!Oe):me||Oe?Ce=!1:Ce=g?K<=l:K<l;Ce?x=q+1:M=q}return At(M,X)}function Z2(s,l){for(var f=-1,g=s.length,x=0,M=[];++f<g;){var _=s[f],$=l?l(_):_;if(!f||!Tn($,j)){var j=$;M[x++]=_===0?0:_}}return M}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,M=s.length,_=!0,$=[],j=$;if(f)_=!1,x=Ph;else if(M>=i){var Y=l?null:xF(s);if(Y)return Ml(Y);_=!1,x=Fo,j=new Ai}else j=l?[]:$;e:for(;++g<M;){var q=s[g],K=l?l(q):q;if(q=f||q!==0?q:0,_&&K===K){for(var le=j.length;le--;)if(j[le]===K)continue e;l&&j.push(K),$.push(q)}else x(j,K,f)||(j!==$&&j.push(K),$.push(q))}return $}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,M=g?x:-1;(g?M--:++M<x)&&l(s[M],M,s););return f?mn(s,g?0:M,g?M+1:x):mn(s,g?M+1:0,g?x:M)}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,M=B(g);++x<g;)for(var _=s[x],$=-1;++$<g;)$!=x&&(M[x]=Yo(M[x]||_,s[$],l,f));return Br(xt(M,1),l,f)}function tS(s,l,f){for(var g=-1,x=s.length,M=l.length,_={};++g<x;){var $=g<M?l[g]:n;f(_,s[g],$)}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 uF=_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=Z3||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 fF(s,l){var f=l?nm(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function dF(s){var l=new s.constructor(s.source,Vw.exec(s));return l.lastIndex=s.lastIndex,l}function hF(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,M=Jt(s),_=l!==n,$=l===null,j=l===l,Y=Jt(l);if(!$&&!Y&&!M&&s>l||M&&_&&j&&!$&&!Y||g&&_&&j||!f&&j||!x)return 1;if(!g&&!M&&!Y&&s<l||Y&&f&&x&&!g&&!M||$&&f&&x||!_&&x||!j)return-1}return 0}function mF(s,l,f){for(var g=-1,x=s.criteria,M=l.criteria,_=x.length,$=f.length;++g<_;){var j=sS(x[g],M[g]);if(j){if(g>=$)return j;var Y=f[g];return j*(Y=="desc"?-1:1)}}return s.index-l.index}function oS(s,l,f,g){for(var x=-1,M=s.length,_=f.length,$=-1,j=l.length,Y=mt(M-_,0),q=B(j+Y),K=!g;++$<j;)q[$]=l[$];for(;++x<_;)(K||x<M)&&(q[f[x]]=s[x]);for(;Y--;)q[$++]=s[x++];return q}function aS(s,l,f,g){for(var x=-1,M=s.length,_=-1,$=f.length,j=-1,Y=l.length,q=mt(M-$,0),K=B(q+Y),le=!g;++x<q;)K[x]=s[x];for(var me=x;++j<Y;)K[me+j]=l[j];for(;++_<$;)(le||x<M)&&(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 M=-1,_=l.length;++M<_;){var $=l[M],j=g?g(f[$],s[$],$,f,s):n;j===n&&(j=s[$]),x?or(f,$,j):Go(f,$,j)}return f}function pF(s,l){return Wn(s,cm(s),l)}function gF(s,l){return Wn(s,xS(s),l)}function Kl(s,l){return function(f,g){var x=Ae(f)?w3:jj,M=l?l():{};return x(f,s,we(g,2),M)}}function Is(s){return _e(function(l,f){var g=-1,x=f.length,M=x>1?f[x-1]:n,_=x>2?f[2]:n;for(M=s.length>3&&typeof M=="function"?(x--,M):n,_&&Dt(f[0],f[1],_)&&(M=x<3?n:M,x=1),l=Ge(l);++g<x;){var $=f[g];$&&s(l,$,g,M)}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,M=l?x:-1,_=Ge(f);(l?M--:++M<x)&&g(_[M],M,_)!==!1;);return f}}function cS(s){return function(l,f,g){for(var x=-1,M=Ge(l),_=g(l),$=_.length;$--;){var j=_[s?$:++x];if(f(M[j],j,M)===!1)break}return l}}function yF(s,l,f){var g=l&T,x=Xo(s);function M(){var _=this&&this!==bt&&this instanceof M?x:s;return _.apply(g?f:this,arguments)}return M}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(a3,"")),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 vF(s,l,f){var g=Xo(s);function x(){for(var M=arguments.length,_=B(M),$=M,j=$s(x);$--;)_[$]=arguments[$];var Y=M<3&&_[0]!==j&&_[M-1]!==j?[]:jr(_,j);if(M-=Y.length,M<f)return pS(s,l,Xl,x.placeholder,n,_,Y,n,n,f-M);var q=this&&this!==bt&&this instanceof x?g:s;return Kt(q,this,_)}return x}function fS(s){return function(l,f,g){var x=Ge(l);if(!Bt(l)){var M=we(f,3);l=gt(l),f=function($){return M(x[$],$,x)}}var _=s(l,f,g);return _>-1?x[M?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 M=l[g];if(typeof M!="function")throw new fn(o);if(x&&!_&&ec(M)=="wrapper")var _=new dn([],!0)}for(g=_?g:f;++g<f;){M=l[g];var $=ec(M),j=$=="wrapper"?am(M):n;j&&fm(j[0])&&j[1]==(k|A|P|F)&&!j[4].length&&j[9]==1?_=_[ec(j[0])].apply(_,j[3]):_=M.length==1&&fm(M)?_[$]():_.thru(M)}return function(){var Y=arguments,q=Y[0];if(_&&Y.length==1&&Ae(q))return _.plant(q).value();for(var K=0,le=f?l[K].apply(this,Y):q;++K<f;)le=l[K].call(this,le);return le}})}function Xl(s,l,f,g,x,M,_,$,j,Y){var q=l&k,K=l&T,le=l&w,me=l&(A|D),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=_3(Ne,$t);if(g&&(Ne=oS(Ne,g,x,me)),M&&(Ne=aS(Ne,M,_,me)),$e-=en,me&&$e<Y){var ut=jr(Ne,$t);return pS(s,l,Xl,Ce.placeholder,f,Ne,ut,$,j,Y-$e)}var En=K?f:this,dr=le?En[s]:s;return $e=Ne.length,$?Ne=jF(Ne,$):Ee&&$e>1&&Ne.reverse(),q&&j<$e&&(Ne.length=j),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 Yj(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 bF(s,l,f,g){var x=l&T,M=Xo(s);function _(){for(var $=-1,j=arguments.length,Y=-1,q=g.length,K=B(q+j),le=this&&this!==bt&&this instanceof _?M:s;++Y<q;)K[Y]=g[Y];for(;j--;)K[Y++]=arguments[++$];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),iF(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,M,_,$,j,Y){var q=l&A,K=q?_:n,le=q?n:_,me=q?M:n,Ee=q?n:M;l|=q?P:R,l&=~(q?R:P),l&C||(l&=-4);var Oe=[s,l,x,me,K,Ee,le,$,j,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"),M=l(x[0]+"e"+(+x[1]+g));return x=(Be(M)+"e").split("e"),+(x[0]+"e"+(+x[1]-g))}return l(f)}}var xF=Ms&&1/Ml(new Ms([,-0]))[1]==V?function(s){return new Ms(s)}:Pm;function gS(s){return function(l){var f=Mt(l);return f==ke?Rh(l):f==qt?k3(l):O3(l,s(l))}}function ar(s,l,f,g,x,M,_,$){var j=l&w;if(!j&&typeof s!="function")throw new fn(o);var Y=g?g.length:0;if(Y||(l&=-97,g=x=n),_=_===n?_:mt(Me(_),0),$=$===n?$:Me($),Y-=x?x.length:0,l&R){var q=g,K=x;g=x=n}var le=j?n:am(s),me=[s,l,f,g,x,q,K,M,_,$];if(le&&NF(me,le),s=me[0],l=me[1],f=me[2],g=me[3],x=me[4],$=me[9]=me[9]===n?j?0:s.length:mt(me[9]-Y,0),!$&&l&(A|D)&&(l&=-25),!l||l==T)var Ee=yF(s,l,f);else l==A||l==D?Ee=vF(s,l,$):(l==P||l==(T|P))&&!x.length?Ee=bF(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,M){return st(s)&&st(l)&&(M.set(l,s),Yl(s,l,n,vS,M),M.delete(l)),s}function wF(s){return Qo(s)?n:s}function bS(s,l,f,g,x,M){var _=f&S,$=s.length,j=l.length;if($!=j&&!(_&&j>$))return!1;var Y=M.get(s),q=M.get(l);if(Y&&q)return Y==l&&q==s;var K=-1,le=!0,me=f&b?new Ai:n;for(M.set(s,l),M.set(l,s);++K<$;){var Ee=s[K],Oe=l[K];if(g)var Ce=_?g(Oe,Ee,K,l,s,M):g(Ee,Oe,K,s,l,M);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,M)))return me.push(Ne)})){le=!1;break}}else if(!(Ee===Oe||x(Ee,Oe,f,g,M))){le=!1;break}}return M.delete(s),M.delete(l),le}function SF(s,l,f,g,x,M,_){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||!M(new Rl(s),new Rl(l)));case fe:case ve: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 $=Rh;case qt:var j=g&S;if($||($=Ml),s.size!=l.size&&!j)return!1;var Y=_.get(s);if(Y)return Y==l;g|=b,_.set(s,l);var q=bS($(s),$(l),g,x,M,_);return _.delete(s),q;case Ti:if(zo)return zo.call(s)==zo.call(l)}return!1}function TF(s,l,f,g,x,M){var _=f&S,$=sm(s),j=$.length,Y=sm(l),q=Y.length;if(j!=q&&!_)return!1;for(var K=j;K--;){var le=$[K];if(!(_?le in l:Ue.call(l,le)))return!1}var me=M.get(s),Ee=M.get(l);if(me&&Ee)return me==l&&Ee==s;var Oe=!0;M.set(s,l),M.set(l,s);for(var Ce=_;++K<j;){le=$[K];var $e=s[le],Ne=l[le];if(g)var Qt=_?g(Ne,$e,le,l,s,M):g($e,Ne,le,s,l,M);if(!(Qt===n?$e===Ne||x($e,Ne,f,g,M):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 M.delete(s),M.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],M=x.func;if(M==null||M==s)return x.name}return l}function $s(s){var l=Ue.call(E,"placeholder")?E:s;return l.placeholder}function we(){var s=E.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 IF(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=R3(s,l);return B2(f)?f:n}function EF(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 oj:return Qe;case aj:return ke;case lj:return bl;case cj:return qt;case uj:return Nr}return l});function CF(s,l,f){for(var g=-1,x=f.length;++g<x;){var M=f[g],_=M.size;switch(M.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 PF(s){var l=s.match(Dk);return l?l[1].split($k):[]}function wS(s,l,f){l=Wr(l,s);for(var g=-1,x=l.length,M=!1;++g<x;){var _=Un(l[g]);if(!(M=s!=null&&f(s,_)))break;s=s[_]}return M||++g!=x?M:(x=s==null?0:s.length,!!x&&lc(x)&&cr(_,x)&&(Ae(s)||Di(s)))}function AF(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 MF(s,l,f){var g=s.constructor;switch(l){case be:return nm(s);case fe:case ve:return new g(+s);case Qe:return fF(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 dF(s);case qt:return new g;case Ti:return hF(s)}}function OF(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(Ik,`{
632
+ */var d$=fo.exports,Tv;function h$(){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,T=1,w=2,C=4,A=8,$=16,P=32,R=64,k=128,F=256,z=512,Q=30,ee="...",ce=800,ye=16,ue=1,te=2,oe=3,V=1/0,W=9007199254740991,H=17976931348623157e292,O=NaN,N=4294967295,X=N-1,ne=N>>>1,ae=[["ary",k],["bind",T],["bindKey",w],["curry",A],["curryRight",$],["flip",z],["partial",P],["partialRight",R],["rearg",F]],G="[object Arguments]",re="[object Array]",he="[object AsyncFunction]",fe="[object Boolean]",ve="[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]",xk=/\b__p \+= '';/g,wk=/\b(__p \+=) '' \+/g,Sk=/(__e\(.*?\)|\b__t\)) \+\n'';/g,jw=/&(?:amp|lt|gt|quot|#39);/g,Fw=/[&<>"']/g,Tk=RegExp(jw.source),Ek=RegExp(Fw.source),Ck=/<%-([\s\S]+?)%>/g,Pk=/<%([\s\S]+?)%>/g,Vw=/<%=([\s\S]+?)%>/g,Ak=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mk=/^\w*$/,Ok=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yh=/[\\^$.*+?()[\]{}|]/g,_k=RegExp(yh.source),vh=/^\s+/,Ik=/\s/,$k=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Dk=/\{\n\/\* \[wrapped with (.+)\] \*/,Rk=/,? & /,Nk=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Lk=/[()=,{}\[\]\/\s]/,kk=/\\(\\)?/g,jk=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Bw=/\w*$/,Fk=/^[-+]0x[0-9a-f]+$/i,Vk=/^0b[01]+$/i,Bk=/^\[object .+?Constructor\]$/,Wk=/^0o[0-7]+$/i,Uk=/^(?:0|[1-9]\d*)$/,zk=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tl=/($^)/,Gk=/['\n\r\u2028\u2029\\]/g,El="\\ud800-\\udfff",Yk="\\u0300-\\u036f",Hk="\\ufe20-\\ufe2f",qk="\\u20d0-\\u20ff",Ww=Yk+Hk+qk,Uw="\\u2700-\\u27bf",zw="a-z\\xdf-\\xf6\\xf8-\\xff",Kk="\\xac\\xb1\\xd7\\xf7",Xk="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Zk="\\u2000-\\u206f",Jk=" \\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",Gw="A-Z\\xc0-\\xd6\\xd8-\\xde",Yw="\\ufe0e\\ufe0f",Hw=Kk+Xk+Zk+Jk,bh="['’]",Qk="["+El+"]",qw="["+Hw+"]",Cl="["+Ww+"]",Kw="\\d+",e3="["+Uw+"]",Xw="["+zw+"]",Zw="[^"+El+Hw+Kw+Uw+zw+Gw+"]",xh="\\ud83c[\\udffb-\\udfff]",t3="(?:"+Cl+"|"+xh+")",Jw="[^"+El+"]",wh="(?:\\ud83c[\\udde6-\\uddff]){2}",Sh="[\\ud800-\\udbff][\\udc00-\\udfff]",Ss="["+Gw+"]",Qw="\\u200d",e2="(?:"+Xw+"|"+Zw+")",n3="(?:"+Ss+"|"+Zw+")",t2="(?:"+bh+"(?:d|ll|m|re|s|t|ve))?",n2="(?:"+bh+"(?:D|LL|M|RE|S|T|VE))?",r2=t3+"?",i2="["+Yw+"]?",r3="(?:"+Qw+"(?:"+[Jw,wh,Sh].join("|")+")"+i2+r2+")*",i3="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s3="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",s2=i2+r2+r3,o3="(?:"+[e3,wh,Sh].join("|")+")"+s2,a3="(?:"+[Jw+Cl+"?",Cl,wh,Sh,Qk].join("|")+")",l3=RegExp(bh,"g"),c3=RegExp(Cl,"g"),Th=RegExp(xh+"(?="+xh+")|"+a3+s2,"g"),u3=RegExp([Ss+"?"+Xw+"+"+t2+"(?="+[qw,Ss,"$"].join("|")+")",n3+"+"+n2+"(?="+[qw,Ss+e2,"$"].join("|")+")",Ss+"?"+e2+"+"+t2,Ss+"+"+n2,s3,i3,Kw,o3].join("|"),"g"),f3=RegExp("["+Qw+El+Ww+Yw+"]"),d3=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,h3=["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"],m3=-1,Je={};Je[Pt]=Je[xn]=Je[rr]=Je[fh]=Je[dh]=Je[hh]=Je[mh]=Je[ph]=Je[gh]=!0,Je[G]=Je[re]=Je[be]=Je[fe]=Je[Qe]=Je[ve]=Je[Le]=Je[ie]=Je[ke]=Je[ft]=Je[dt]=Je[Si]=Je[qt]=Je[bn]=Je[Nr]=!1;var Ke={};Ke[G]=Ke[re]=Ke[be]=Ke[Qe]=Ke[fe]=Ke[ve]=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 p3={À:"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"},g3={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},y3={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},v3={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},b3=parseFloat,x3=parseInt,o2=typeof ea=="object"&&ea&&ea.Object===Object&&ea,w3=typeof self=="object"&&self&&self.Object===Object&&self,bt=o2||w3||Function("return this")(),Eh=t&&!t.nodeType&&t,Ei=Eh&&!0&&e&&!e.nodeType&&e,a2=Ei&&Ei.exports===Eh,Ch=a2&&o2.process,cn=function(){try{var L=Ei&&Ei.require&&Ei.require("util").types;return L||Ch&&Ch.binding&&Ch.binding("util")}catch{}}(),l2=cn&&cn.isArrayBuffer,c2=cn&&cn.isDate,u2=cn&&cn.isMap,f2=cn&&cn.isRegExp,d2=cn&&cn.isSet,h2=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 S3(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 T3(L,U){for(var B=L==null?0:L.length;B--&&U(L[B],B,L)!==!1;);return L}function m2(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 E3(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 C3=Oh("length");function P3(L){return L.split("")}function A3(L){return L.match(Nk)||[]}function p2(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?F3(L,U,B):Al(L,g2,B)}function M3(L,U,B,de){for(var Pe=B-1,je=L.length;++Pe<je;)if(de(L[Pe],U))return Pe;return-1}function g2(L){return L!==L}function y2(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 v2(L,U,B,de,Pe){return Pe(L,function(je,ht,Ge){B=de?(de=!1,je):U(B,je,ht,Ge)}),B}function O3(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 $h(L,U){for(var B=-1,de=Array(L);++B<L;)de[B]=U(B);return de}function _3(L,U){return et(U,function(B){return[B,L[B]]})}function b2(L){return L&&L.slice(0,T2(L)+1).replace(vh,"")}function Xt(L){return function(U){return L(U)}}function Dh(L,U){return et(U,function(B){return L[B]})}function Fo(L,U){return L.has(U)}function x2(L,U){for(var B=-1,de=L.length;++B<de&&Ts(U,L[B],0)>-1;);return B}function w2(L,U){for(var B=L.length;B--&&Ts(U,L[B],0)>-1;);return B}function I3(L,U){for(var B=L.length,de=0;B--;)L[B]===U&&++de;return de}var $3=_h(p3),D3=_h(g3);function R3(L){return"\\"+v3[L]}function N3(L,U){return L==null?n:L[U]}function Es(L){return f3.test(L)}function L3(L){return d3.test(L)}function k3(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 S2(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 j3(L){var U=-1,B=Array(L.size);return L.forEach(function(de){B[++U]=[de,de]}),B}function F3(L,U,B){for(var de=B-1,Pe=L.length;++de<Pe;)if(L[de]===U)return de;return-1}function V3(L,U,B){for(var de=B+1;de--;)if(L[de]===U)return de;return de}function Cs(L){return Es(L)?W3(L):C3(L)}function wn(L){return Es(L)?U3(L):P3(L)}function T2(L){for(var U=L.length;U--&&Ik.test(L.charAt(U)););return U}var B3=_h(y3);function W3(L){for(var U=Th.lastIndex=0;Th.test(L);)++U;return U}function U3(L){return L.match(Th)||[]}function z3(L){return L.match(u3)||[]}var G3=function L(U){U=U==null?bt:Ps.defaults(bt.Object(),U,Ps.pick(bt,h3));var B=U.Array,de=U.Date,Pe=U.Error,je=U.Function,ht=U.Math,Ge=U.Object,Nh=U.RegExp,Y3=U.String,fn=U.TypeError,Ol=B.prototype,H3=je.prototype,As=Ge.prototype,_l=U["__core-js_shared__"],Il=H3.toString,Ue=As.hasOwnProperty,q3=0,E2=function(){var s=/[^.]+$/.exec(_l&&_l.keys&&_l.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),$l=As.toString,K3=Il.call(Ge),X3=bt._,Z3=Nh("^"+Il.call(Ue).replace(yh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dl=a2?U.Buffer:n,Fr=U.Symbol,Rl=U.Uint8Array,C2=Dl?Dl.allocUnsafe:n,Nl=S2(Ge.getPrototypeOf,Ge),P2=Ge.create,A2=As.propertyIsEnumerable,Ll=Ol.splice,M2=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{}}(),J3=U.clearTimeout!==bt.clearTimeout&&U.clearTimeout,Q3=de&&de.now!==bt.Date.now&&de.now,ej=U.setTimeout!==bt.setTimeout&&U.setTimeout,jl=ht.ceil,Fl=ht.floor,Lh=Ge.getOwnPropertySymbols,tj=Dl?Dl.isBuffer:n,O2=U.isFinite,nj=Ol.join,rj=S2(Ge.keys,Ge),mt=ht.max,At=ht.min,ij=de.now,sj=U.parseInt,_2=ht.random,oj=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={},aj=Ii(kh),lj=Ii(Bo),cj=Ii(jh),uj=Ii(Ms),fj=Ii(Wo),Bl=Fr?Fr.prototype:n,zo=Bl?Bl.valueOf:n,I2=Bl?Bl.toString:n;function E(s){if(ot(s)&&!Ae(s)&&!(s instanceof Re)){if(s instanceof dn)return s;if(Ue.call(s,"__wrapped__"))return $S(s)}return new dn(s)}var _s=function(){function s(){}return function(l){if(!st(l))return{};if(P2)return P2(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}E.templateSettings={escape:Ck,evaluate:Pk,interpolate:Vw,variable:"",imports:{_:E}},E.prototype=Wl.prototype,E.prototype.constructor=E,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__=N,this.__views__=[]}function dj(){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 hj(){if(this.__filtered__){var s=new Re(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function mj(){var s=this.__wrapped__.value(),l=this.__dir__,f=Ae(s),g=l<0,x=f?s.length:0,M=PF(0,x,this.__views__),_=M.start,D=M.end,j=D-_,Y=g?D:_-1,q=this.__iteratees__,K=q.length,le=0,me=At(j,this.__takeCount__);if(!f||!g&&x==j&&me==j)return tS(s,this.__actions__);var Ee=[];e:for(;j--&&le<me;){Y+=l;for(var Oe=-1,Ce=s[Y];++Oe<K;){var De=q[Oe],Ne=De.iteratee,Qt=De.type,Dt=Ne(Ce);if(Qt==te)Ce=Dt;else if(!Dt){if(Qt==ue)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 pj(){this.__data__=Uo?Uo(null):{},this.size=0}function gj(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function yj(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 vj(s){var l=this.__data__;return Uo?l[s]!==n:Ue.call(l,s)}function bj(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=pj,Pi.prototype.delete=gj,Pi.prototype.get=yj,Pi.prototype.has=vj,Pi.prototype.set=bj;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 xj(){this.__data__=[],this.size=0}function wj(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 Sj(s){var l=this.__data__,f=Ul(l,s);return f<0?n:l[f][1]}function Tj(s){return Ul(this.__data__,s)>-1}function Ej(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=xj,ir.prototype.delete=wj,ir.prototype.get=Sj,ir.prototype.has=Tj,ir.prototype.set=Ej;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 Cj(){this.size=0,this.__data__={hash:new Pi,map:new(Bo||ir),string:new Pi}}function Pj(s){var l=tc(this,s).delete(s);return this.size-=l?1:0,l}function Aj(s){return tc(this,s).get(s)}function Mj(s){return tc(this,s).has(s)}function Oj(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=Cj,sr.prototype.delete=Pj,sr.prototype.get=Aj,sr.prototype.has=Mj,sr.prototype.set=Oj;function Ai(s){var l=-1,f=s==null?0:s.length;for(this.__data__=new sr;++l<f;)this.add(s[l])}function _j(s){return this.__data__.set(s,u),this}function Ij(s){return this.__data__.has(s)}Ai.prototype.add=Ai.prototype.push=_j,Ai.prototype.has=Ij;function Sn(s){var l=this.__data__=new ir(s);this.size=l.size}function $j(){this.__data__=new ir,this.size=0}function Dj(s){var l=this.__data__,f=l.delete(s);return this.size=l.size,f}function Rj(s){return this.__data__.get(s)}function Nj(s){return this.__data__.has(s)}function Lj(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=$j,Sn.prototype.delete=Dj,Sn.prototype.get=Rj,Sn.prototype.has=Nj,Sn.prototype.set=Lj;function $2(s,l){var f=Ae(s),g=!f&&$i(s),x=!f&&!g&&zr(s),M=!f&&!g&&!x&&Rs(s),_=f||g||x||M,D=_?$h(s.length,Y3):[],j=D.length;for(var Y in s)(l||Ue.call(s,Y))&&!(_&&(Y=="length"||x&&(Y=="offset"||Y=="parent")||M&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||cr(Y,j)))&&D.push(Y);return D}function D2(s){var l=s.length;return l?s[Kh(0,l-1)]:n}function kj(s,l){return nc(Vt(s),Mi(l,0,s.length))}function jj(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 Fj(s,l,f,g){return Vr(s,function(x,M,_){l(g,x,f(x),_)}),g}function R2(s,l){return s&&Wn(l,gt(l),s)}function Vj(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),M=s==null;++f<g;)x[f]=M?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,M){var _,D=l&m,j=l&p,Y=l&y;if(f&&(_=x?f(s,g,x,M):f(s)),_!==n)return _;if(!st(s))return s;var q=Ae(s);if(q){if(_=MF(s),!D)return Vt(s,_)}else{var K=Mt(s),le=K==ie||K==pe;if(zr(s))return iS(s,D);if(K==dt||K==G||le&&!x){if(_=j||le?{}:TS(s),!D)return j?yF(s,Vj(_,s)):gF(s,R2(_,s))}else{if(!Ke[K])return x?s:{};_=OF(s,K,D)}}M||(M=new Sn);var me=M.get(s);if(me)return me;M.set(s,_),JS(s)?s.forEach(function(Ce){_.add(hn(Ce,l,f,Ce,s,M))}):XS(s)&&s.forEach(function(Ce,De){_.set(De,hn(Ce,l,f,De,s,M))});var Ee=Y?j?om:sm:j?Wt:gt,Oe=q?n:Ee(s);return un(Oe||s,function(Ce,De){Oe&&(De=Ce,Ce=s[De]),Go(_,De,hn(Ce,l,f,De,s,M))}),_}function Bj(s){var l=gt(s);return function(f){return N2(f,s,l)}}function N2(s,l,f){var g=f.length;if(s==null)return!g;for(s=Ge(s);g--;){var x=f[g],M=l[x],_=s[x];if(_===n&&!(x in s)||!M(_))return!1}return!0}function L2(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,M=Pl,_=!0,D=s.length,j=[],Y=l.length;if(!D)return j;f&&(l=et(l,Xt(f))),g?(M=Ph,_=!1):l.length>=i&&(M=Fo,_=!1,l=new Ai(l));e:for(;++x<D;){var q=s[x],K=f==null?q:f(q);if(q=g||q!==0?q:0,_&&K===K){for(var le=Y;le--;)if(l[le]===K)continue e;j.push(q)}else M(l,K,g)||j.push(q)}return j}var Vr=cS(Bn),k2=cS(Wh,!0);function Wj(s,l){var f=!0;return Vr(s,function(g,x,M){return f=!!l(g,x,M),f}),f}function zl(s,l,f){for(var g=-1,x=s.length;++g<x;){var M=s[g],_=l(M);if(_!=null&&(D===n?_===_&&!Jt(_):f(_,D)))var D=_,j=M}return j}function Uj(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:eT(g);f<g;)s[f++]=l;return s}function j2(s,l){var f=[];return Vr(s,function(g,x,M){l(g,x,M)&&f.push(g)}),f}function xt(s,l,f,g,x){var M=-1,_=s.length;for(f||(f=IF),x||(x=[]);++M<_;){var D=s[M];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=uS(),F2=uS(!0);function Bn(s,l){return s&&Bh(s,l,gt)}function Wh(s,l){return s&&F2(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 V2(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)?CF(s):jF(s)}function Uh(s,l){return s>l}function zj(s,l){return s!=null&&Ue.call(s,l)}function Gj(s,l){return s!=null&&l in Ge(s)}function Yj(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,M=s.length,_=M,D=B(M),j=1/0,Y=[];_--;){var q=s[_];_&&l&&(q=et(q,Xt(l))),j=At(q.length,j),D[_]=!f&&(l||x>=120&&q.length>=120)?new Ai(_&&q):n}q=s[0];var K=-1,le=D[0];e:for(;++K<x&&Y.length<j;){var me=q[K],Ee=l?l(me):me;if(me=f||me!==0?me:0,!(le?Fo(le,Ee):g(Y,Ee,f))){for(_=M;--_;){var Oe=D[_];if(!(Oe?Fo(Oe,Ee):g(s[_],Ee,f)))continue e}le&&le.push(Ee),Y.push(me)}}return Y}function Hj(s,l,f,g){return Bn(s,function(x,M,_){l(g,f(x),M,_)}),g}function Ho(s,l,f){l=Wr(l,s),s=AS(s,l);var g=s==null?s:s[Un(pn(l))];return g==null?n:Kt(g,s,f)}function B2(s){return ot(s)&&It(s)==G}function qj(s){return ot(s)&&It(s)==be}function Kj(s){return ot(s)&&It(s)==ve}function qo(s,l,f,g,x){return s===l?!0:s==null||l==null||!ot(s)&&!ot(l)?s!==s&&l!==l:Xj(s,l,f,g,qo,x)}function Xj(s,l,f,g,x,M){var _=Ae(s),D=Ae(l),j=_?re:Mt(s),Y=D?re:Mt(l);j=j==G?dt:j,Y=Y==G?dt:Y;var q=j==dt,K=Y==dt,le=j==Y;if(le&&zr(s)){if(!zr(l))return!1;_=!0,q=!1}if(le&&!q)return M||(M=new Sn),_||Rs(s)?xS(s,l,f,g,x,M):TF(s,l,j,f,g,x,M);if(!(f&S)){var me=q&&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 M||(M=new Sn),x(Oe,Ce,f,g,M)}}return le?(M||(M=new Sn),EF(s,l,f,g,x,M)):!1}function Zj(s){return ot(s)&&Mt(s)==ke}function Gh(s,l,f,g){var x=f.length,M=x,_=!g;if(s==null)return!M;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<M;){D=f[x];var j=D[0],Y=s[j],q=D[1];if(_&&D[2]){if(Y===n&&!(j in s))return!1}else{var K=new Sn;if(g)var le=g(Y,q,j,s,l,K);if(!(le===n?qo(q,Y,S|b,g,K):le))return!1}}return!0}function W2(s){if(!st(s)||DF(s))return!1;var l=ur(s)?Z3:Bk;return l.test(Ii(s))}function Jj(s){return ot(s)&&It(s)==Si}function Qj(s){return ot(s)&&Mt(s)==qt}function eF(s){return ot(s)&&lc(s.length)&&!!Je[It(s)]}function U2(s){return typeof s=="function"?s:s==null?Ut:typeof s=="object"?Ae(s)?Y2(s[0],s[1]):G2(s):fT(s)}function Yh(s){if(!Zo(s))return rj(s);var l=[];for(var f in Ge(s))Ue.call(s,f)&&f!="constructor"&&l.push(f);return l}function tF(s){if(!st(s))return kF(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 z2(s,l){var f=-1,g=Bt(s)?B(s.length):[];return Vr(s,function(x,M,_){g[++f]=l(x,M,_)}),g}function G2(s){var l=lm(s);return l.length==1&&l[0][2]?CS(l[0][0],l[0][1]):function(f){return f===s||Gh(f,s,l)}}function Y2(s,l){return um(s)&&ES(l)?CS(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(M,_){if(x||(x=new Sn),st(M))nF(s,l,_,f,Yl,g,x);else{var D=g?g(dm(s,_),M,_+"",s,l,x):n;D===n&&(D=M),Fh(s,_,D)}},Wt)}function nF(s,l,f,g,x,M,_){var D=dm(s,f),j=dm(l,f),Y=_.get(j);if(Y){Fh(s,f,Y);return}var q=M?M(D,j,f+"",s,l,_):n,K=q===n;if(K){var le=Ae(j),me=!le&&zr(j),Ee=!le&&!me&&Rs(j);q=j,le||me||Ee?Ae(D)?q=D:ct(D)?q=Vt(D):me?(K=!1,q=iS(j,!0)):Ee?(K=!1,q=sS(j,!0)):q=[]:Qo(j)||$i(j)?(q=D,$i(D)?q=tT(D):(!st(D)||ur(D))&&(q=TS(j))):K=!1}K&&(_.set(j,q),x(q,j,g,M,_),_.delete(j)),Fh(s,f,q)}function H2(s,l){var f=s.length;if(f)return l+=l<0?f:0,cr(l,f)?s[l]:n}function q2(s,l,f){l.length?l=et(l,function(M){return Ae(M)?function(_){return Oi(_,M.length===1?M[0]:M)}:M}):l=[Ut];var g=-1;l=et(l,Xt(we()));var x=z2(s,function(M,_,D){var j=et(l,function(Y){return Y(M)});return{criteria:j,index:++g,value:M}});return O3(x,function(M,_){return pF(M,_,f)})}function rF(s,l){return K2(s,l,function(f,g){return wm(s,g)})}function K2(s,l,f){for(var g=-1,x=l.length,M={};++g<x;){var _=l[g],D=Oi(s,_);f(D,_)&&Ko(M,Wr(_,s),D)}return M}function iF(s){return function(l){return Oi(l,s)}}function qh(s,l,f,g){var x=g?M3:Ts,M=-1,_=l.length,D=s;for(s===l&&(l=Vt(l)),f&&(D=et(s,Xt(f)));++M<_;)for(var j=0,Y=l[M],q=f?f(Y):Y;(j=x(D,q,j,g))>-1;)D!==s&&Ll.call(D,j,1),Ll.call(s,j,1);return s}function X2(s,l){for(var f=s?l.length:0,g=f-1;f--;){var x=l[f];if(f==g||x!==M){var M=x;cr(x)?Ll.call(s,x,1):Jh(s,x)}}return s}function Kh(s,l){return s+Fl(_2()*(l-s+1))}function sF(s,l,f,g){for(var x=-1,M=mt(jl((l-s)/(f||1)),0),_=B(M);M--;)_[g?M:++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(PS(s,l,Ut),s+"")}function oF(s){return D2(Ns(s))}function aF(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,M=l.length,_=M-1,D=s;D!=null&&++x<M;){var j=Un(l[x]),Y=f;if(j==="__proto__"||j==="constructor"||j==="prototype")return s;if(x!=_){var q=D[j];Y=g?g(q,j,D):n,Y===n&&(Y=st(q)?q:cr(l[x+1])?[]:{})}Go(D,j,Y),D=D[j]}return s}var Z2=Vl?function(s,l){return Vl.set(s,l),s}:Ut,lF=kl?function(s,l){return kl(s,"toString",{configurable:!0,enumerable:!1,value:Tm(l),writable:!0})}:Ut;function cF(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 M=B(x);++g<x;)M[g]=s[g+l];return M}function uF(s,l){var f;return Vr(s,function(g,x,M){return f=l(g,x,M),!f}),!!f}function Hl(s,l,f){var g=0,x=s==null?g:s.length;if(typeof l=="number"&&l===l&&x<=ne){for(;g<x;){var M=g+x>>>1,_=s[M];_!==null&&!Jt(_)&&(f?_<=l:_<l)?g=M+1:x=M}return x}return Zh(s,l,Ut,f)}function Zh(s,l,f,g){var x=0,M=s==null?0:s.length;if(M===0)return 0;l=f(l);for(var _=l!==l,D=l===null,j=Jt(l),Y=l===n;x<M;){var q=Fl((x+M)/2),K=f(s[q]),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):j?Ce=Ee&&le&&!me&&(g||!Oe):me||Oe?Ce=!1:Ce=g?K<=l:K<l;Ce?x=q+1:M=q}return At(M,X)}function J2(s,l){for(var f=-1,g=s.length,x=0,M=[];++f<g;){var _=s[f],D=l?l(_):_;if(!f||!Tn(D,j)){var j=D;M[x++]=_===0?0:_}}return M}function Q2(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 I2?I2.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function Br(s,l,f){var g=-1,x=Pl,M=s.length,_=!0,D=[],j=D;if(f)_=!1,x=Ph;else if(M>=i){var Y=l?null:wF(s);if(Y)return Ml(Y);_=!1,x=Fo,j=new Ai}else j=l?[]:D;e:for(;++g<M;){var q=s[g],K=l?l(q):q;if(q=f||q!==0?q:0,_&&K===K){for(var le=j.length;le--;)if(j[le]===K)continue e;l&&j.push(K),D.push(q)}else x(j,K,f)||(j!==D&&j.push(K),D.push(q))}return D}function Jh(s,l){return l=Wr(l,s),s=AS(s,l),s==null||delete s[Un(pn(l))]}function eS(s,l,f,g){return Ko(s,l,f(Oi(s,l)),g)}function ql(s,l,f,g){for(var x=s.length,M=g?x:-1;(g?M--:++M<x)&&l(s[M],M,s););return f?mn(s,g?0:M,g?M+1:x):mn(s,g?M+1:0,g?x:M)}function tS(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,M=B(g);++x<g;)for(var _=s[x],D=-1;++D<g;)D!=x&&(M[x]=Yo(M[x]||_,s[D],l,f));return Br(xt(M,1),l,f)}function nS(s,l,f){for(var g=-1,x=s.length,M=l.length,_={};++g<x;){var D=g<M?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]:IS(Be(s))}var fF=_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 rS=J3||function(s){return bt.clearTimeout(s)};function iS(s,l){if(l)return s.slice();var f=s.length,g=C2?C2(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 dF(s,l){var f=l?nm(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function hF(s){var l=new s.constructor(s.source,Bw.exec(s));return l.lastIndex=s.lastIndex,l}function mF(s){return zo?Ge(zo.call(s)):{}}function sS(s,l){var f=l?nm(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.length)}function oS(s,l){if(s!==l){var f=s!==n,g=s===null,x=s===s,M=Jt(s),_=l!==n,D=l===null,j=l===l,Y=Jt(l);if(!D&&!Y&&!M&&s>l||M&&_&&j&&!D&&!Y||g&&_&&j||!f&&j||!x)return 1;if(!g&&!M&&!Y&&s<l||Y&&f&&x&&!g&&!M||D&&f&&x||!_&&x||!j)return-1}return 0}function pF(s,l,f){for(var g=-1,x=s.criteria,M=l.criteria,_=x.length,D=f.length;++g<_;){var j=oS(x[g],M[g]);if(j){if(g>=D)return j;var Y=f[g];return j*(Y=="desc"?-1:1)}}return s.index-l.index}function aS(s,l,f,g){for(var x=-1,M=s.length,_=f.length,D=-1,j=l.length,Y=mt(M-_,0),q=B(j+Y),K=!g;++D<j;)q[D]=l[D];for(;++x<_;)(K||x<M)&&(q[f[x]]=s[x]);for(;Y--;)q[D++]=s[x++];return q}function lS(s,l,f,g){for(var x=-1,M=s.length,_=-1,D=f.length,j=-1,Y=l.length,q=mt(M-D,0),K=B(q+Y),le=!g;++x<q;)K[x]=s[x];for(var me=x;++j<Y;)K[me+j]=l[j];for(;++_<D;)(le||x<M)&&(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 M=-1,_=l.length;++M<_;){var D=l[M],j=g?g(f[D],s[D],D,f,s):n;j===n&&(j=s[D]),x?or(f,D,j):Go(f,D,j)}return f}function gF(s,l){return Wn(s,cm(s),l)}function yF(s,l){return Wn(s,wS(s),l)}function Kl(s,l){return function(f,g){var x=Ae(f)?S3:Fj,M=l?l():{};return x(f,s,we(g,2),M)}}function Is(s){return _e(function(l,f){var g=-1,x=f.length,M=x>1?f[x-1]:n,_=x>2?f[2]:n;for(M=s.length>3&&typeof M=="function"?(x--,M):n,_&&$t(f[0],f[1],_)&&(M=x<3?n:M,x=1),l=Ge(l);++g<x;){var D=f[g];D&&s(l,D,g,M)}return l})}function cS(s,l){return function(f,g){if(f==null)return f;if(!Bt(f))return s(f,g);for(var x=f.length,M=l?x:-1,_=Ge(f);(l?M--:++M<x)&&g(_[M],M,_)!==!1;);return f}}function uS(s){return function(l,f,g){for(var x=-1,M=Ge(l),_=g(l),D=_.length;D--;){var j=_[s?D:++x];if(f(M[j],j,M)===!1)break}return l}}function vF(s,l,f){var g=l&T,x=Xo(s);function M(){var _=this&&this!==bt&&this instanceof M?x:s;return _.apply(g?f:this,arguments)}return M}function fS(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 $s(s){return function(l){return Ah(cT(lT(l).replace(l3,"")),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 bF(s,l,f){var g=Xo(s);function x(){for(var M=arguments.length,_=B(M),D=M,j=Ds(x);D--;)_[D]=arguments[D];var Y=M<3&&_[0]!==j&&_[M-1]!==j?[]:jr(_,j);if(M-=Y.length,M<f)return gS(s,l,Xl,x.placeholder,n,_,Y,n,n,f-M);var q=this&&this!==bt&&this instanceof x?g:s;return Kt(q,this,_)}return x}function dS(s){return function(l,f,g){var x=Ge(l);if(!Bt(l)){var M=we(f,3);l=gt(l),f=function(D){return M(x[D],D,x)}}var _=s(l,f,g);return _>-1?x[M?l[_]:_]:n}}function hS(s){return lr(function(l){var f=l.length,g=f,x=dn.prototype.thru;for(s&&l.reverse();g--;){var M=l[g];if(typeof M!="function")throw new fn(o);if(x&&!_&&ec(M)=="wrapper")var _=new dn([],!0)}for(g=_?g:f;++g<f;){M=l[g];var D=ec(M),j=D=="wrapper"?am(M):n;j&&fm(j[0])&&j[1]==(k|A|P|F)&&!j[4].length&&j[9]==1?_=_[ec(j[0])].apply(_,j[3]):_=M.length==1&&fm(M)?_[D]():_.thru(M)}return function(){var Y=arguments,q=Y[0];if(_&&Y.length==1&&Ae(q))return _.plant(q).value();for(var K=0,le=f?l[K].apply(this,Y):q;++K<f;)le=l[K].call(this,le);return le}})}function Xl(s,l,f,g,x,M,_,D,j,Y){var q=l&k,K=l&T,le=l&w,me=l&(A|$),Ee=l&z,Oe=le?n:Xo(s);function Ce(){for(var De=arguments.length,Ne=B(De),Qt=De;Qt--;)Ne[Qt]=arguments[Qt];if(me)var Dt=Ds(Ce),en=I3(Ne,Dt);if(g&&(Ne=aS(Ne,g,x,me)),M&&(Ne=lS(Ne,M,_,me)),De-=en,me&&De<Y){var ut=jr(Ne,Dt);return gS(s,l,Xl,Ce.placeholder,f,Ne,ut,D,j,Y-De)}var En=K?f:this,dr=le?En[s]:s;return De=Ne.length,D?Ne=FF(Ne,D):Ee&&De>1&&Ne.reverse(),q&&j<De&&(Ne.length=j),this&&this!==bt&&this instanceof Ce&&(dr=Oe||Xo(dr)),dr.apply(En,Ne)}return Ce}function mS(s,l){return function(f,g){return Hj(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=Q2(f),g=Q2(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 xF(s,l,f,g){var x=l&T,M=Xo(s);function _(){for(var D=-1,j=arguments.length,Y=-1,q=g.length,K=B(q+j),le=this&&this!==bt&&this instanceof _?M:s;++Y<q;)K[Y]=g[Y];for(;j--;)K[Y++]=arguments[++D];return Kt(le,x?f:this,K)}return _}function pS(s){return function(l,f,g){return g&&typeof g!="number"&&$t(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),sF(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 gS(s,l,f,g,x,M,_,D,j,Y){var q=l&A,K=q?_:n,le=q?n:_,me=q?M:n,Ee=q?n:M;l|=q?P:R,l&=~(q?R:P),l&C||(l&=-4);var Oe=[s,l,x,me,K,Ee,le,D,j,Y],Ce=f.apply(n,Oe);return fm(s)&&MS(Ce,Oe),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(Me(g),292),g&&O2(f)){var x=(Be(f)+"e").split("e"),M=l(x[0]+"e"+(+x[1]+g));return x=(Be(M)+"e").split("e"),+(x[0]+"e"+(+x[1]-g))}return l(f)}}var wF=Ms&&1/Ml(new Ms([,-0]))[1]==V?function(s){return new Ms(s)}:Pm;function yS(s){return function(l){var f=Mt(l);return f==ke?Rh(l):f==qt?j3(l):_3(l,s(l))}}function ar(s,l,f,g,x,M,_,D){var j=l&w;if(!j&&typeof s!="function")throw new fn(o);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 q=g,K=x;g=x=n}var le=j?n:am(s),me=[s,l,f,g,x,q,K,M,_,D];if(le&&LF(me,le),s=me[0],l=me[1],f=me[2],g=me[3],x=me[4],D=me[9]=me[9]===n?j?0:s.length:mt(me[9]-Y,0),!D&&l&(A|$)&&(l&=-25),!l||l==T)var Ee=vF(s,l,f);else l==A||l==$?Ee=bF(s,l,D):(l==P||l==(T|P))&&!x.length?Ee=xF(s,l,f,g):Ee=Xl.apply(n,me);var Oe=le?Z2:MS;return OS(Oe(Ee,me),s,l)}function vS(s,l,f,g){return s===n||Tn(s,As[f])&&!Ue.call(g,f)?l:s}function bS(s,l,f,g,x,M){return st(s)&&st(l)&&(M.set(l,s),Yl(s,l,n,bS,M),M.delete(l)),s}function SF(s){return Qo(s)?n:s}function xS(s,l,f,g,x,M){var _=f&S,D=s.length,j=l.length;if(D!=j&&!(_&&j>D))return!1;var Y=M.get(s),q=M.get(l);if(Y&&q)return Y==l&&q==s;var K=-1,le=!0,me=f&b?new Ai:n;for(M.set(s,l),M.set(l,s);++K<D;){var Ee=s[K],Oe=l[K];if(g)var Ce=_?g(Oe,Ee,K,l,s,M):g(Ee,Oe,K,s,l,M);if(Ce!==n){if(Ce)continue;le=!1;break}if(me){if(!Mh(l,function(De,Ne){if(!Fo(me,Ne)&&(Ee===De||x(Ee,De,f,g,M)))return me.push(Ne)})){le=!1;break}}else if(!(Ee===Oe||x(Ee,Oe,f,g,M))){le=!1;break}}return M.delete(s),M.delete(l),le}function TF(s,l,f,g,x,M,_){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||!M(new Rl(s),new Rl(l)));case fe:case ve: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 j=g&S;if(D||(D=Ml),s.size!=l.size&&!j)return!1;var Y=_.get(s);if(Y)return Y==l;g|=b,_.set(s,l);var q=xS(D(s),D(l),g,x,M,_);return _.delete(s),q;case Ti:if(zo)return zo.call(s)==zo.call(l)}return!1}function EF(s,l,f,g,x,M){var _=f&S,D=sm(s),j=D.length,Y=sm(l),q=Y.length;if(j!=q&&!_)return!1;for(var K=j;K--;){var le=D[K];if(!(_?le in l:Ue.call(l,le)))return!1}var me=M.get(s),Ee=M.get(l);if(me&&Ee)return me==l&&Ee==s;var Oe=!0;M.set(s,l),M.set(l,s);for(var Ce=_;++K<j;){le=D[K];var De=s[le],Ne=l[le];if(g)var Qt=_?g(Ne,De,le,l,s,M):g(De,Ne,le,s,l,M);if(!(Qt===n?De===Ne||x(De,Ne,f,g,M):Qt)){Oe=!1;break}Ce||(Ce=le=="constructor")}if(Oe&&!Ce){var Dt=s.constructor,en=l.constructor;Dt!=en&&"constructor"in s&&"constructor"in l&&!(typeof Dt=="function"&&Dt instanceof Dt&&typeof en=="function"&&en instanceof en)&&(Oe=!1)}return M.delete(s),M.delete(l),Oe}function lr(s){return hm(PS(s,n,NS),s+"")}function sm(s){return V2(s,gt,cm)}function om(s){return V2(s,Wt,wS)}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],M=x.func;if(M==null||M==s)return x.name}return l}function Ds(s){var l=Ue.call(E,"placeholder")?E:s;return l.placeholder}function we(){var s=E.iteratee||Em;return s=s===Em?U2:s,arguments.length?s(arguments[0],arguments[1]):s}function tc(s,l){var f=s.__data__;return $F(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,ES(x)]}return l}function _i(s,l){var f=N3(s,l);return W2(f)?f:n}function CF(s){var l=Ue.call(s,Ci),f=s[Ci];try{s[Ci]=n;var g=!0}catch{}var x=$l.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 A2.call(s,l)}))}:Am,wS=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 aj:return Qe;case lj:return ke;case cj:return bl;case uj:return qt;case fj:return Nr}return l});function PF(s,l,f){for(var g=-1,x=f.length;++g<x;){var M=f[g],_=M.size;switch(M.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 AF(s){var l=s.match(Dk);return l?l[1].split(Rk):[]}function SS(s,l,f){l=Wr(l,s);for(var g=-1,x=l.length,M=!1;++g<x;){var _=Un(l[g]);if(!(M=s!=null&&f(s,_)))break;s=s[_]}return M||++g!=x?M:(x=s==null?0:s.length,!!x&&lc(x)&&cr(_,x)&&(Ae(s)||$i(s)))}function MF(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 TS(s){return typeof s.constructor=="function"&&!Zo(s)?_s(Nl(s)):{}}function OF(s,l,f){var g=s.constructor;switch(l){case be:return nm(s);case fe:case ve:return new g(+s);case Qe:return dF(s,f);case Pt:case xn:case rr:case fh:case dh:case hh:case mh:case ph:case gh:return sS(s,f);case ke:return new g;case ft:case bn:return new g(s);case Si:return hF(s);case qt:return new g;case Ti:return mF(s)}}function _F(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($k,`{
633
633
  /* [wrapped with `+l+`] */
634
- `)}function _F(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"&&Wk.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:Ak.test(s)||!Pk.test(s)||l!=null&&s in Ge(l)}function IF(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=E[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 DF(s){return!!T2&&T2 in s}var $F=_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 RF(s){var l=oc(s,function(g){return f.size===d&&f.clear(),g}),f=l.cache;return l}function NF(s,l){var f=s[1],g=l[1],x=f|g,M=x<(T|w|k),_=g==k&&f==A||g==k&&f==F&&s[7].length<=l[8]||g==(k|F)&&l[7].length<=l[8]&&f==A;if(!(M||_))return s;g&T&&(s[2]=l[2],x|=f&T?0:C);var $=l[3];if($){var j=s[3];s[3]=j?oS(j,$,l[4]):$,s[4]=j?jr(s[3],h):l[4]}return $=l[5],$&&(j=s[5],s[5]=j?aS(j,$,l[6]):$,s[6]=j?jr(s[5],h):l[6]),$=l[7],$&&(s[7]=$),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 LF(s){var l=[];if(s!=null)for(var f in Ge(s))l.push(f);return l}function kF(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,M=mt(g.length-l,0),_=B(M);++x<M;)_[x]=g[l+x];x=-1;for(var $=B(l+1);++x<l;)$[x]=g[x];return $[l]=f(_),Kt(s,this,$)}}function PS(s,l){return l.length<2?s:Oi(s,mn(l,0,-1))}function jF(s,l){for(var f=s.length,g=At(l.length,f),x=Vt(s);g--;){var M=l[g];s[g]=cr(M,f)?x[M]:n}return s}function dm(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var AS=OS(X2),Jo=Q3||function(s,l){return bt.setTimeout(s,l)},hm=OS(aF);function MS(s,l,f){var g=l+"";return hm(s,OF(g,FF(PF(g),f)))}function OS(s){var l=0,f=0;return function(){var g=rj(),x=ye-(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 M=Kh(f,x),_=s[M];s[M]=s[f],s[f]=_}return s.length=l,s}var _S=RF(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(Mk,function(f,g,x,M){l.push(x?M.replace(Lk,"$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 FF(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 VF(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,M=0,_=B(jl(g/l));x<g;)_[M++]=mn(s,x,x+=l);return _}function BF(s){for(var l=-1,f=s==null?0:s.length,g=0,x=[];++l<f;){var M=s[l];M&&(x[g++]=M)}return x}function WF(){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 UF=_e(function(s,l){return ct(s)?Yo(s,xt(l,1,ct,!0)):[]}),zF=_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)):[]}),GF=_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 YF(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 HF(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 qF(s,l){return s&&s.length?ql(s,we(l,3),!0,!0):[]}function KF(s,l){return s&&s.length?ql(s,we(l,3),!0):[]}function XF(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),Wj(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 ZF(s){var l=s==null?0:s.length;return l?xt(s,V):[]}function JF(s,l){var f=s==null?0:s.length;return f?(l=l===n?1:Me(l),xt(s,l)):[]}function QF(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 eV(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 tV(s){var l=s==null?0:s.length;return l?mn(s,0,-1):[]}var nV=_e(function(s){var l=et(s,em);return l.length&&l[0]===s[0]?zh(l):[]}),rV=_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)):[]}),iV=_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 sV(s,l){return s==null?"":tj.call(s,l)}function pn(s){var l=s==null?0:s.length;return l?s[l-1]:n}function oV(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?F3(s,l,x):Al(s,p2,x,!0)}function aV(s,l){return s&&s.length?Y2(s,Me(l)):n}var lV=_e(LS);function LS(s,l){return s&&s.length&&l&&l.length?qh(s,l):s}function cV(s,l,f){return s&&s.length&&l&&l.length?qh(s,l,we(f,2)):s}function uV(s,l,f){return s&&s.length&&l&&l.length?qh(s,l,n,f):s}var fV=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 dV(s,l){var f=[];if(!(s&&s.length))return f;var g=-1,x=[],M=s.length;for(l=we(l,3);++g<M;){var _=s[g];l(_,g,s)&&(f.push(_),x.push(g))}return K2(s,x),f}function mm(s){return s==null?s:sj.call(s)}function hV(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 mV(s,l){return Hl(s,l)}function pV(s,l,f){return Zh(s,l,we(f,2))}function gV(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 yV(s,l){return Hl(s,l,!0)}function vV(s,l,f){return Zh(s,l,we(f,2),!0)}function bV(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 xV(s){return s&&s.length?Z2(s):[]}function wV(s,l){return s&&s.length?Z2(s,we(l,2)):[]}function SV(s){var l=s==null?0:s.length;return l?mn(s,1,l):[]}function TV(s,l,f){return s&&s.length?(l=f||l===n?1:Me(l),mn(s,0,l<0?0:l)):[]}function EV(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 CV(s,l){return s&&s.length?ql(s,we(l,3),!1,!0):[]}function PV(s,l){return s&&s.length?ql(s,we(l,3)):[]}var AV=_e(function(s){return Br(xt(s,1,ct,!0))}),MV=_e(function(s){var l=pn(s);return ct(l)&&(l=n),Br(xt(s,1,ct,!0),we(l,2))}),OV=_e(function(s){var l=pn(s);return l=typeof l=="function"?l:n,Br(xt(s,1,ct,!0),n,l)});function _V(s){return s&&s.length?Br(s):[]}function IV(s,l){return s&&s.length?Br(s,we(l,2)):[]}function DV(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 $V=_e(function(s,l){return ct(s)?Yo(s,l):[]}),RV=_e(function(s){return Qh(Lr(s,ct))}),NV=_e(function(s){var l=pn(s);return ct(l)&&(l=n),Qh(Lr(s,ct),we(l,2))}),LV=_e(function(s){var l=pn(s);return l=typeof l=="function"?l:n,Qh(Lr(s,ct),n,l)}),kV=_e(pm);function jV(s,l){return tS(s||[],l||[],Go)}function FV(s,l){return tS(s||[],l||[],Ko)}var VV=_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=E(s);return l.__chain__=!0,l}function BV(s,l){return l(s),s}function rc(s,l){return l(s)}var WV=lr(function(s){var l=s.length,f=l?s[0]:0,g=this.__wrapped__,x=function(M){return Vh(M,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(M){return l&&!M.length&&M.push(n),M}))});function UV(){return jS(this)}function zV(){return new dn(this.value(),this.__chain__)}function GV(){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 YV(){return this}function HV(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 qV(){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 KV(){return eS(this.__wrapped__,this.__actions__)}var XV=Kl(function(s,l,f){Ue.call(s,f)?++s[f]:or(s,f,1)});function ZV(s,l,f){var g=Ae(s)?h2:Bj;return f&&Dt(s,l,f)&&(l=n),g(s,we(l,3))}function JV(s,l){var f=Ae(s)?Lr:k2;return f(s,we(l,3))}var QV=fS(DS),eB=fS($S);function tB(s,l){return xt(ic(s,l),1)}function nB(s,l){return xt(ic(s,l),V)}function rB(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)?S3:L2;return f(s,we(l,3))}var iB=Kl(function(s,l,f){Ue.call(s,f)?s[f].push(l):or(s,f,[l])});function sB(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 oB=_e(function(s,l,f){var g=-1,x=typeof l=="function",M=Bt(s)?B(s.length):[];return Vr(s,function(_){M[++g]=x?Kt(l,_,f):Ho(_,l,f)}),M}),aB=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 lB(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 cB=Kl(function(s,l,f){s[f?0:1].push(l)},function(){return[[],[]]});function uB(s,l,f){var g=Ae(s)?Ah:y2,x=arguments.length<3;return g(s,we(l,4),f,x,Vr)}function fB(s,l,f){var g=Ae(s)?T3:y2,x=arguments.length<3;return g(s,we(l,4),f,x,L2)}function dB(s,l){var f=Ae(s)?Lr:k2;return f(s,ac(we(l,3)))}function hB(s){var l=Ae(s)?D2:sF;return l(s)}function mB(s,l,f){(f?Dt(s,l,f):l===n)?l=1:l=Me(l);var g=Ae(s)?Lj:oF;return g(s,l)}function pB(s){var l=Ae(s)?kj:lF;return l(s)}function gB(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 yB(s,l,f){var g=Ae(s)?Mh:cF;return f&&Dt(s,l,f)&&(l=n),g(s,we(l,3))}var vB=_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=J3||function(){return bt.Date.now()};function bB(s,l){if(typeof l!="function")throw new fn(o);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(o);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=T;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=T|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,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,D,n,n,n,n,n,l);return g.placeholder=GS.placeholder,g}function YS(s,l,f){var g,x,M,_,$,j,Y=0,q=!1,K=!1,le=!0;if(typeof s!="function")throw new fn(o);l=gn(l)||0,st(f)&&(q=!!f.leading,K="maxWait"in f,M=K?mt(gn(f.maxWait)||0,l):M,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,$=Jo($e,l),q?me(ut):_}function Oe(ut){var En=ut-j,dr=ut-Y,fT=l-En;return K?At(fT,M-dr):fT}function Ce(ut){var En=ut-j,dr=ut-Y;return j===n||En>=l||En<0||K&&dr>=M}function $e(){var ut=sc();if(Ce(ut))return Ne(ut);$=Jo($e,Oe(ut))}function Ne(ut){return $=n,le&&g?me(ut):(g=x=n,_)}function Qt(){$!==n&&nS($),Y=0,g=j=x=$=n}function $t(){return $===n?_:Ne(sc())}function en(){var ut=sc(),En=Ce(ut);if(g=arguments,x=this,j=ut,En){if($===n)return Ee(j);if(K)return nS($),$=Jo($e,l),me(j)}return $===n&&($=Jo($e,l)),_}return en.cancel=Qt,en.flush=$t,en}var xB=_e(function(s,l){return N2(s,1,l)}),wB=_e(function(s,l,f){return N2(s,gn(l)||0,f)});function SB(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],M=f.cache;if(M.has(x))return M.get(x);var _=s.apply(this,g);return f.cache=M.set(x,_)||M,_};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 TB(s){return WS(2,s)}var EB=uF(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,M=At(g.length,f);++x<M;)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)}),CB=lr(function(s,l){return ar(s,F,n,n,n,l)});function PB(s,l){if(typeof s!="function")throw new fn(o);return l=l===n?l:Me(l),_e(s,l)}function AB(s,l){if(typeof s!="function")throw new fn(o);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 MB(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 OB(s){return BS(s,1)}function _B(s,l){return ym(tm(l),s)}function IB(){if(!arguments.length)return[];var s=arguments[0];return Ae(s)?s:[s]}function DB(s){return hn(s,y)}function $B(s,l){return l=typeof l=="function"?l:n,hn(s,y,l)}function RB(s){return hn(s,m|y)}function NB(s,l){return l=typeof l=="function"?l:n,hn(s,m|y,l)}function LB(s,l){return l==null||R2(s,l,gt(l))}function Tn(s,l){return s===l||s!==s&&l!==l}var kB=Ql(Uh),jB=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,FB=a2?Xt(a2):Hj;function Bt(s){return s!=null&&lc(s.length)&&!ur(s)}function ct(s){return ot(s)&&Bt(s)}function VB(s){return s===!0||s===!1||ot(s)&&It(s)==fe}var zr=ej||Mm,BB=l2?Xt(l2):qj;function WB(s){return ot(s)&&s.nodeType===1&&!Qo(s)}function UB(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 zB(s,l){return qo(s,l)}function GB(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 YB(s){return typeof s=="number"&&M2(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==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):Xj;function HB(s,l){return s===l||Gh(s,l,lm(l))}function qB(s,l,f){return f=typeof f=="function"?f:n,Gh(s,l,lm(l),f)}function KB(s){return XS(s)&&s!=+s}function XB(s){if($F(s))throw new Pe(a);return B2(s)}function ZB(s){return s===null}function JB(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)==q3}var bm=u2?Xt(u2):Zj;function QB(s){return qS(s)&&s>=-9007199254740991&&s<=W}var ZS=f2?Xt(f2):Jj;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):Qj;function e8(s){return s===n}function t8(s){return ot(s)&&Mt(s)==Nr}function n8(s){return ot(s)&&It(s)==Sl}var r8=Ql(Hh),i8=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 L3(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===V||s===-1/0){var l=s<0?-1:1;return l*H}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,N):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=Fk.test(s);return f||Bk.test(s)?b3(s.slice(2),f?2:8):jk.test(s)?O:+s}function eT(s){return Wn(s,Wt(s))}function s8(s){return s?Mi(Me(s),-9007199254740991,W):s===0?s:0}function Be(s){return s==null?"":Zt(s)}var o8=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)}),a8=Is(function(s,l,f,g){Wn(l,gt(l),s,g)}),l8=lr(Vh);function c8(s,l){var f=_s(s);return l==null?f:$2(f,l)}var u8=_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 M=l[f],_=Wt(M),$=-1,j=_.length;++$<j;){var Y=_[$],q=s[Y];(q===n||Tn(q,As[Y])&&!Ue.call(s,Y))&&(s[Y]=M[Y])}return s}),f8=_e(function(s){return s.push(n,vS),Kt(nT,n,s)});function d8(s,l){return m2(s,we(l,3),Bn)}function h8(s,l){return m2(s,we(l,3),Wh)}function m8(s,l){return s==null?s:Bh(s,we(l,3),Wt)}function p8(s,l){return s==null?s:j2(s,we(l,3),Wt)}function g8(s,l){return s&&Bn(s,we(l,3))}function y8(s,l){return s&&Wh(s,we(l,3))}function v8(s){return s==null?[]:Gl(s,gt(s))}function b8(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 x8(s,l){return s!=null&&wS(s,l,Uj)}function wm(s,l){return s!=null&&wS(s,l,zj)}var w8=hS(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),s[l]=f},Tm(Ut)),S8=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),T8=_e(Ho);function gt(s){return Bt(s)?I2(s):Yh(s)}function Wt(s){return Bt(s)?I2(s,!0):eF(s)}function E8(s,l){var f={};return l=we(l,3),Bn(s,function(g,x,M){or(f,l(g,x,M),g)}),f}function C8(s,l){var f={};return l=we(l,3),Bn(s,function(g,x,M){or(f,x,l(g,x,M))}),f}var P8=Is(function(s,l,f){Yl(s,l,f)}),nT=Is(function(s,l,f,g){Yl(s,l,f,g)}),A8=lr(function(s,l){var f={};if(s==null)return f;var g=!1;l=et(l,function(M){return M=Wr(M,s),g||(g=M.length>1),M}),Wn(s,om(s),f),g&&(f=hn(f,m|p|y,wF));for(var x=l.length;x--;)Jh(f,l[x]);return f});function M8(s,l){return rT(s,ac(we(l)))}var O8=lr(function(s,l){return s==null?{}:nF(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 _8(s,l,f){l=Wr(l,s);var g=-1,x=l.length;for(x||(x=1,s=n);++g<x;){var M=s==null?n:s[Un(l[g])];M===n&&(g=x,M=f),s=ur(M)?M.call(s):M}return s}function I8(s,l,f){return s==null?s:Ko(s,l,f)}function D8(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 $8(s,l,f){var g=Ae(s),x=g||zr(s)||Rs(s);if(l=we(l,4),f==null){var M=s&&s.constructor;x?f=g?new M:[]:st(s)?f=ur(M)?_s(Nl(s)):{}:f={}}return(x?un:Bn)(s,function(_,$,j){return l(f,_,$,j)}),f}function R8(s,l){return s==null?!0:Jh(s,l)}function N8(s,l,f){return s==null?s:Q2(s,l,tm(f))}function L8(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 k8(s){return s==null?[]:$h(s,Wt(s))}function j8(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 F8(s,l,f){return l=fr(l),f===n?(f=l,l=0):f=fr(f),s=gn(s),Gj(s,l,f)}function V8(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+v3("1e-"+((x+"").length-1))),l)}return Kh(s,l)}var B8=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(Uk,I3).replace(l3,"")}function W8(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 U8(s){return s=Be(s),s&&Tk.test(s)?s.replace(jw,D3):s}function z8(s){return s=Be(s),s&&Ok.test(s)?s.replace(yh,"\\$&"):s}var G8=Ds(function(s,l,f){return s+(f?"-":"")+l.toLowerCase()}),Y8=Ds(function(s,l,f){return s+(f?" ":"")+l.toLowerCase()}),H8=uS("toLowerCase");function q8(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 K8(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 X8(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 Z8(s,l,f){return f||l==null?l=0:l&&(l=+l),ij(Be(s).replace(vh,""),l||0)}function J8(s,l,f){return(f?Dt(s,l,f):l===n)?l=1:l=Me(l),Xh(Be(s),l)}function Q8(){var s=arguments,l=Be(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var e9=Ds(function(s,l,f){return s+(f?"_":"")+l.toLowerCase()});function t9(s,l,f){return f&&typeof f!="number"&&Dt(s,l,f)&&(l=f=n),f=f===n?N: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 n9=Ds(function(s,l,f){return s+(f?" ":"")+Sm(l)});function r9(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 i9(s,l,f){var g=E.templateSettings;f&&Dt(s,l,f)&&(l=n),s=Be(s),l=uc({},l,g,yS);var x=uc({},l.imports,g.imports,yS),M=gt(x),_=$h(x,M),$,j,Y=0,q=l.interpolate||Tl,K="__p += '",le=Nh((l.escape||Tl).source+"|"+q.source+"|"+(q===Fw?kk:Tl).source+"|"+(l.evaluate||Tl).source+"|$","g"),me="//# sourceURL="+(Ue.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++h3+"]")+`
635
- `;s.replace(le,function(Ce,$e,Ne,Qt,$t,en){return Ne||(Ne=Qt),K+=s.slice(Y,en).replace(zk,$3),$e&&($=!0,K+=`' +
636
- __e(`+$e+`) +
637
- '`),$t&&(j=!0,K+=`';
638
- `+$t+`;
634
+ `)}function IF(s){return Ae(s)||$i(s)||!!(M2&&s&&s[M2])}function cr(s,l){var f=typeof s;return l=l??W,!!l&&(f=="number"||f!="symbol"&&Uk.test(s))&&s>-1&&s%1==0&&s<l}function $t(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:Mk.test(s)||!Ak.test(s)||l!=null&&s in Ge(l)}function $F(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=E[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 DF(s){return!!E2&&E2 in s}var RF=_l?ur:Mm;function Zo(s){var l=s&&s.constructor,f=typeof l=="function"&&l.prototype||As;return s===f}function ES(s){return s===s&&!st(s)}function CS(s,l){return function(f){return f==null?!1:f[s]===l&&(l!==n||s in Ge(f))}}function NF(s){var l=oc(s,function(g){return f.size===d&&f.clear(),g}),f=l.cache;return l}function LF(s,l){var f=s[1],g=l[1],x=f|g,M=x<(T|w|k),_=g==k&&f==A||g==k&&f==F&&s[7].length<=l[8]||g==(k|F)&&l[7].length<=l[8]&&f==A;if(!(M||_))return s;g&T&&(s[2]=l[2],x|=f&T?0:C);var D=l[3];if(D){var j=s[3];s[3]=j?aS(j,D,l[4]):D,s[4]=j?jr(s[3],h):l[4]}return D=l[5],D&&(j=s[5],s[5]=j?lS(j,D,l[6]):D,s[6]=j?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 kF(s){var l=[];if(s!=null)for(var f in Ge(s))l.push(f);return l}function jF(s){return $l.call(s)}function PS(s,l,f){return l=mt(l===n?s.length-1:l,0),function(){for(var g=arguments,x=-1,M=mt(g.length-l,0),_=B(M);++x<M;)_[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 AS(s,l){return l.length<2?s:Oi(s,mn(l,0,-1))}function FF(s,l){for(var f=s.length,g=At(l.length,f),x=Vt(s);g--;){var M=l[g];s[g]=cr(M,f)?x[M]:n}return s}function dm(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var MS=_S(Z2),Jo=ej||function(s,l){return bt.setTimeout(s,l)},hm=_S(lF);function OS(s,l,f){var g=l+"";return hm(s,_F(g,VF(AF(g),f)))}function _S(s){var l=0,f=0;return function(){var g=ij(),x=ye-(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 M=Kh(f,x),_=s[M];s[M]=s[f],s[f]=_}return s.length=l,s}var IS=NF(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(Ok,function(f,g,x,M){l.push(x?M.replace(kk,"$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 VF(s,l){return un(ae,function(f){var g="_."+f[0];l&f[1]&&!Pl(s,g)&&s.push(g)}),s.sort()}function $S(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 BF(s,l,f){(f?$t(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,M=0,_=B(jl(g/l));x<g;)_[M++]=mn(s,x,x+=l);return _}function WF(s){for(var l=-1,f=s==null?0:s.length,g=0,x=[];++l<f;){var M=s[l];M&&(x[g++]=M)}return x}function UF(){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 zF=_e(function(s,l){return ct(s)?Yo(s,xt(l,1,ct,!0)):[]}),GF=_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)):[]}),YF=_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 HF(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 qF(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 KF(s,l){return s&&s.length?ql(s,we(l,3),!0,!0):[]}function XF(s,l){return s&&s.length?ql(s,we(l,3),!0):[]}function ZF(s,l,f,g){var x=s==null?0:s.length;return x?(f&&typeof f!="number"&&$t(s,l,f)&&(f=0,g=x),Uj(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 RS(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 NS(s){var l=s==null?0:s.length;return l?xt(s,1):[]}function JF(s){var l=s==null?0:s.length;return l?xt(s,V):[]}function QF(s,l){var f=s==null?0:s.length;return f?(l=l===n?1:Me(l),xt(s,l)):[]}function eV(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 LS(s){return s&&s.length?s[0]:n}function tV(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 nV(s){var l=s==null?0:s.length;return l?mn(s,0,-1):[]}var rV=_e(function(s){var l=et(s,em);return l.length&&l[0]===s[0]?zh(l):[]}),iV=_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)):[]}),sV=_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 oV(s,l){return s==null?"":nj.call(s,l)}function pn(s){var l=s==null?0:s.length;return l?s[l-1]:n}function aV(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?V3(s,l,x):Al(s,g2,x,!0)}function lV(s,l){return s&&s.length?H2(s,Me(l)):n}var cV=_e(kS);function kS(s,l){return s&&s.length&&l&&l.length?qh(s,l):s}function uV(s,l,f){return s&&s.length&&l&&l.length?qh(s,l,we(f,2)):s}function fV(s,l,f){return s&&s.length&&l&&l.length?qh(s,l,n,f):s}var dV=lr(function(s,l){var f=s==null?0:s.length,g=Vh(s,l);return X2(s,et(l,function(x){return cr(x,f)?+x:x}).sort(oS)),g});function hV(s,l){var f=[];if(!(s&&s.length))return f;var g=-1,x=[],M=s.length;for(l=we(l,3);++g<M;){var _=s[g];l(_,g,s)&&(f.push(_),x.push(g))}return X2(s,x),f}function mm(s){return s==null?s:oj.call(s)}function mV(s,l,f){var g=s==null?0:s.length;return g?(f&&typeof f!="number"&&$t(s,l,f)?(l=0,f=g):(l=l==null?0:Me(l),f=f===n?g:Me(f)),mn(s,l,f)):[]}function pV(s,l){return Hl(s,l)}function gV(s,l,f){return Zh(s,l,we(f,2))}function yV(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 vV(s,l){return Hl(s,l,!0)}function bV(s,l,f){return Zh(s,l,we(f,2),!0)}function xV(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 wV(s){return s&&s.length?J2(s):[]}function SV(s,l){return s&&s.length?J2(s,we(l,2)):[]}function TV(s){var l=s==null?0:s.length;return l?mn(s,1,l):[]}function EV(s,l,f){return s&&s.length?(l=f||l===n?1:Me(l),mn(s,0,l<0?0:l)):[]}function CV(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 PV(s,l){return s&&s.length?ql(s,we(l,3),!1,!0):[]}function AV(s,l){return s&&s.length?ql(s,we(l,3)):[]}var MV=_e(function(s){return Br(xt(s,1,ct,!0))}),OV=_e(function(s){var l=pn(s);return ct(l)&&(l=n),Br(xt(s,1,ct,!0),we(l,2))}),_V=_e(function(s){var l=pn(s);return l=typeof l=="function"?l:n,Br(xt(s,1,ct,!0),n,l)});function IV(s){return s&&s.length?Br(s):[]}function $V(s,l){return s&&s.length?Br(s,we(l,2)):[]}function DV(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}),$h(l,function(f){return et(s,Oh(f))})}function jS(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 RV=_e(function(s,l){return ct(s)?Yo(s,l):[]}),NV=_e(function(s){return Qh(Lr(s,ct))}),LV=_e(function(s){var l=pn(s);return ct(l)&&(l=n),Qh(Lr(s,ct),we(l,2))}),kV=_e(function(s){var l=pn(s);return l=typeof l=="function"?l:n,Qh(Lr(s,ct),n,l)}),jV=_e(pm);function FV(s,l){return nS(s||[],l||[],Go)}function VV(s,l){return nS(s||[],l||[],Ko)}var BV=_e(function(s){var l=s.length,f=l>1?s[l-1]:n;return f=typeof f=="function"?(s.pop(),f):n,jS(s,f)});function FS(s){var l=E(s);return l.__chain__=!0,l}function WV(s,l){return l(s),s}function rc(s,l){return l(s)}var UV=lr(function(s){var l=s.length,f=l?s[0]:0,g=this.__wrapped__,x=function(M){return Vh(M,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(M){return l&&!M.length&&M.push(n),M}))});function zV(){return FS(this)}function GV(){return new dn(this.value(),this.__chain__)}function YV(){this.__values__===n&&(this.__values__=QS(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function HV(){return this}function qV(s){for(var l,f=this;f instanceof Wl;){var g=$S(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 KV(){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 XV(){return tS(this.__wrapped__,this.__actions__)}var ZV=Kl(function(s,l,f){Ue.call(s,f)?++s[f]:or(s,f,1)});function JV(s,l,f){var g=Ae(s)?m2:Wj;return f&&$t(s,l,f)&&(l=n),g(s,we(l,3))}function QV(s,l){var f=Ae(s)?Lr:j2;return f(s,we(l,3))}var eB=dS(DS),tB=dS(RS);function nB(s,l){return xt(ic(s,l),1)}function rB(s,l){return xt(ic(s,l),V)}function iB(s,l,f){return f=f===n?1:Me(f),xt(ic(s,l),f)}function VS(s,l){var f=Ae(s)?un:Vr;return f(s,we(l,3))}function BS(s,l){var f=Ae(s)?T3:k2;return f(s,we(l,3))}var sB=Kl(function(s,l,f){Ue.call(s,f)?s[f].push(l):or(s,f,[l])});function oB(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 aB=_e(function(s,l,f){var g=-1,x=typeof l=="function",M=Bt(s)?B(s.length):[];return Vr(s,function(_){M[++g]=x?Kt(l,_,f):Ho(_,l,f)}),M}),lB=Kl(function(s,l,f){or(s,f,l)});function ic(s,l){var f=Ae(s)?et:z2;return f(s,we(l,3))}function cB(s,l,f,g){return s==null?[]:(Ae(l)||(l=l==null?[]:[l]),f=g?n:f,Ae(f)||(f=f==null?[]:[f]),q2(s,l,f))}var uB=Kl(function(s,l,f){s[f?0:1].push(l)},function(){return[[],[]]});function fB(s,l,f){var g=Ae(s)?Ah:v2,x=arguments.length<3;return g(s,we(l,4),f,x,Vr)}function dB(s,l,f){var g=Ae(s)?E3:v2,x=arguments.length<3;return g(s,we(l,4),f,x,k2)}function hB(s,l){var f=Ae(s)?Lr:j2;return f(s,ac(we(l,3)))}function mB(s){var l=Ae(s)?D2:oF;return l(s)}function pB(s,l,f){(f?$t(s,l,f):l===n)?l=1:l=Me(l);var g=Ae(s)?kj:aF;return g(s,l)}function gB(s){var l=Ae(s)?jj:cF;return l(s)}function yB(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 vB(s,l,f){var g=Ae(s)?Mh:uF;return f&&$t(s,l,f)&&(l=n),g(s,we(l,3))}var bB=_e(function(s,l){if(s==null)return[];var f=l.length;return f>1&&$t(s,l[0],l[1])?l=[]:f>2&&$t(l[0],l[1],l[2])&&(l=[l[0]]),q2(s,xt(l,1),[])}),sc=Q3||function(){return bt.Date.now()};function xB(s,l){if(typeof l!="function")throw new fn(o);return s=Me(s),function(){if(--s<1)return l.apply(this,arguments)}}function WS(s,l,f){return l=f?n:l,l=s&&l==null?s.length:l,ar(s,k,n,n,n,n,l)}function US(s,l){var f;if(typeof l!="function")throw new fn(o);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=T;if(f.length){var x=jr(f,Ds(gm));g|=P}return ar(s,g,l,f,x)}),zS=_e(function(s,l,f){var g=T|w;if(f.length){var x=jr(f,Ds(zS));g|=P}return ar(l,g,s,f,x)});function GS(s,l,f){l=f?n:l;var g=ar(s,A,n,n,n,n,n,l);return g.placeholder=GS.placeholder,g}function YS(s,l,f){l=f?n:l;var g=ar(s,$,n,n,n,n,n,l);return g.placeholder=YS.placeholder,g}function HS(s,l,f){var g,x,M,_,D,j,Y=0,q=!1,K=!1,le=!0;if(typeof s!="function")throw new fn(o);l=gn(l)||0,st(f)&&(q=!!f.leading,K="maxWait"in f,M=K?mt(gn(f.maxWait)||0,l):M,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(De,l),q?me(ut):_}function Oe(ut){var En=ut-j,dr=ut-Y,dT=l-En;return K?At(dT,M-dr):dT}function Ce(ut){var En=ut-j,dr=ut-Y;return j===n||En>=l||En<0||K&&dr>=M}function De(){var ut=sc();if(Ce(ut))return Ne(ut);D=Jo(De,Oe(ut))}function Ne(ut){return D=n,le&&g?me(ut):(g=x=n,_)}function Qt(){D!==n&&rS(D),Y=0,g=j=x=D=n}function Dt(){return D===n?_:Ne(sc())}function en(){var ut=sc(),En=Ce(ut);if(g=arguments,x=this,j=ut,En){if(D===n)return Ee(j);if(K)return rS(D),D=Jo(De,l),me(j)}return D===n&&(D=Jo(De,l)),_}return en.cancel=Qt,en.flush=Dt,en}var wB=_e(function(s,l){return L2(s,1,l)}),SB=_e(function(s,l,f){return L2(s,gn(l)||0,f)});function TB(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],M=f.cache;if(M.has(x))return M.get(x);var _=s.apply(this,g);return f.cache=M.set(x,_)||M,_};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 EB(s){return US(2,s)}var CB=fF(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,M=At(g.length,f);++x<M;)g[x]=l[x].call(this,g[x]);return Kt(s,this,g)})}),ym=_e(function(s,l){var f=jr(l,Ds(ym));return ar(s,P,n,l,f)}),qS=_e(function(s,l){var f=jr(l,Ds(qS));return ar(s,R,n,l,f)}),PB=lr(function(s,l){return ar(s,F,n,n,n,l)});function AB(s,l){if(typeof s!="function")throw new fn(o);return l=l===n?l:Me(l),_e(s,l)}function MB(s,l){if(typeof s!="function")throw new fn(o);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 OB(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),HS(s,l,{leading:g,maxWait:l,trailing:x})}function _B(s){return WS(s,1)}function IB(s,l){return ym(tm(l),s)}function $B(){if(!arguments.length)return[];var s=arguments[0];return Ae(s)?s:[s]}function DB(s){return hn(s,y)}function RB(s,l){return l=typeof l=="function"?l:n,hn(s,y,l)}function NB(s){return hn(s,m|y)}function LB(s,l){return l=typeof l=="function"?l:n,hn(s,m|y,l)}function kB(s,l){return l==null||N2(s,l,gt(l))}function Tn(s,l){return s===l||s!==s&&l!==l}var jB=Ql(Uh),FB=Ql(function(s,l){return s>=l}),$i=B2(function(){return arguments}())?B2:function(s){return ot(s)&&Ue.call(s,"callee")&&!A2.call(s,"callee")},Ae=B.isArray,VB=l2?Xt(l2):qj;function Bt(s){return s!=null&&lc(s.length)&&!ur(s)}function ct(s){return ot(s)&&Bt(s)}function BB(s){return s===!0||s===!1||ot(s)&&It(s)==fe}var zr=tj||Mm,WB=c2?Xt(c2):Kj;function UB(s){return ot(s)&&s.nodeType===1&&!Qo(s)}function zB(s){if(s==null)return!0;if(Bt(s)&&(Ae(s)||typeof s=="string"||typeof s.splice=="function"||zr(s)||Rs(s)||$i(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 GB(s,l){return qo(s,l)}function YB(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 HB(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 KS(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 XS=u2?Xt(u2):Zj;function qB(s,l){return s===l||Gh(s,l,lm(l))}function KB(s,l,f){return f=typeof f=="function"?f:n,Gh(s,l,lm(l),f)}function XB(s){return ZS(s)&&s!=+s}function ZB(s){if(RF(s))throw new Pe(a);return W2(s)}function JB(s){return s===null}function QB(s){return s==null}function ZS(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)==K3}var bm=f2?Xt(f2):Jj;function e8(s){return KS(s)&&s>=-9007199254740991&&s<=W}var JS=d2?Xt(d2):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=h2?Xt(h2):eF;function t8(s){return s===n}function n8(s){return ot(s)&&Mt(s)==Nr}function r8(s){return ot(s)&&It(s)==Sl}var i8=Ql(Hh),s8=Ql(function(s,l){return s<=l});function QS(s){if(!s)return[];if(Bt(s))return cc(s)?wn(s):Vt(s);if(Vo&&s[Vo])return k3(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===V||s===-1/0){var l=s<0?-1:1;return l*H}return s===s?s:0}function Me(s){var l=fr(s),f=l%1;return l===l?f?l-f:l:0}function eT(s){return s?Mi(Me(s),0,N):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=b2(s);var f=Vk.test(s);return f||Wk.test(s)?x3(s.slice(2),f?2:8):Fk.test(s)?O:+s}function tT(s){return Wn(s,Wt(s))}function o8(s){return s?Mi(Me(s),-9007199254740991,W):s===0?s:0}function Be(s){return s==null?"":Zt(s)}var a8=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])}),nT=Is(function(s,l){Wn(l,Wt(l),s)}),uc=Is(function(s,l,f,g){Wn(l,Wt(l),s,g)}),l8=Is(function(s,l,f,g){Wn(l,gt(l),s,g)}),c8=lr(Vh);function u8(s,l){var f=_s(s);return l==null?f:R2(f,l)}var f8=_e(function(s,l){s=Ge(s);var f=-1,g=l.length,x=g>2?l[2]:n;for(x&&$t(l[0],l[1],x)&&(g=1);++f<g;)for(var M=l[f],_=Wt(M),D=-1,j=_.length;++D<j;){var Y=_[D],q=s[Y];(q===n||Tn(q,As[Y])&&!Ue.call(s,Y))&&(s[Y]=M[Y])}return s}),d8=_e(function(s){return s.push(n,bS),Kt(rT,n,s)});function h8(s,l){return p2(s,we(l,3),Bn)}function m8(s,l){return p2(s,we(l,3),Wh)}function p8(s,l){return s==null?s:Bh(s,we(l,3),Wt)}function g8(s,l){return s==null?s:F2(s,we(l,3),Wt)}function y8(s,l){return s&&Bn(s,we(l,3))}function v8(s,l){return s&&Wh(s,we(l,3))}function b8(s){return s==null?[]:Gl(s,gt(s))}function x8(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 w8(s,l){return s!=null&&SS(s,l,zj)}function wm(s,l){return s!=null&&SS(s,l,Gj)}var S8=mS(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=$l.call(l)),s[l]=f},Tm(Ut)),T8=mS(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=$l.call(l)),Ue.call(s,l)?s[l].push(f):s[l]=[f]},we),E8=_e(Ho);function gt(s){return Bt(s)?$2(s):Yh(s)}function Wt(s){return Bt(s)?$2(s,!0):tF(s)}function C8(s,l){var f={};return l=we(l,3),Bn(s,function(g,x,M){or(f,l(g,x,M),g)}),f}function P8(s,l){var f={};return l=we(l,3),Bn(s,function(g,x,M){or(f,x,l(g,x,M))}),f}var A8=Is(function(s,l,f){Yl(s,l,f)}),rT=Is(function(s,l,f,g){Yl(s,l,f,g)}),M8=lr(function(s,l){var f={};if(s==null)return f;var g=!1;l=et(l,function(M){return M=Wr(M,s),g||(g=M.length>1),M}),Wn(s,om(s),f),g&&(f=hn(f,m|p|y,SF));for(var x=l.length;x--;)Jh(f,l[x]);return f});function O8(s,l){return iT(s,ac(we(l)))}var _8=lr(function(s,l){return s==null?{}:rF(s,l)});function iT(s,l){if(s==null)return{};var f=et(om(s),function(g){return[g]});return l=we(l),K2(s,f,function(g,x){return l(g,x[0])})}function I8(s,l,f){l=Wr(l,s);var g=-1,x=l.length;for(x||(x=1,s=n);++g<x;){var M=s==null?n:s[Un(l[g])];M===n&&(g=x,M=f),s=ur(M)?M.call(s):M}return s}function $8(s,l,f){return s==null?s:Ko(s,l,f)}function D8(s,l,f,g){return g=typeof g=="function"?g:n,s==null?s:Ko(s,l,f,g)}var sT=yS(gt),oT=yS(Wt);function R8(s,l,f){var g=Ae(s),x=g||zr(s)||Rs(s);if(l=we(l,4),f==null){var M=s&&s.constructor;x?f=g?new M:[]:st(s)?f=ur(M)?_s(Nl(s)):{}:f={}}return(x?un:Bn)(s,function(_,D,j){return l(f,_,D,j)}),f}function N8(s,l){return s==null?!0:Jh(s,l)}function L8(s,l,f){return s==null?s:eS(s,l,tm(f))}function k8(s,l,f,g){return g=typeof g=="function"?g:n,s==null?s:eS(s,l,tm(f),g)}function Ns(s){return s==null?[]:Dh(s,gt(s))}function j8(s){return s==null?[]:Dh(s,Wt(s))}function F8(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 V8(s,l,f){return l=fr(l),f===n?(f=l,l=0):f=fr(f),s=gn(s),Yj(s,l,f)}function B8(s,l,f){if(f&&typeof f!="boolean"&&$t(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=_2();return At(s+x*(l-s+b3("1e-"+((x+"").length-1))),l)}return Kh(s,l)}var W8=$s(function(s,l,f){return l=l.toLowerCase(),s+(f?aT(l):l)});function aT(s){return Sm(Be(s).toLowerCase())}function lT(s){return s=Be(s),s&&s.replace(zk,$3).replace(c3,"")}function U8(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 z8(s){return s=Be(s),s&&Ek.test(s)?s.replace(Fw,D3):s}function G8(s){return s=Be(s),s&&_k.test(s)?s.replace(yh,"\\$&"):s}var Y8=$s(function(s,l,f){return s+(f?"-":"")+l.toLowerCase()}),H8=$s(function(s,l,f){return s+(f?" ":"")+l.toLowerCase()}),q8=fS("toLowerCase");function K8(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 X8(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 Z8(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 J8(s,l,f){return f||l==null?l=0:l&&(l=+l),sj(Be(s).replace(vh,""),l||0)}function Q8(s,l,f){return(f?$t(s,l,f):l===n)?l=1:l=Me(l),Xh(Be(s),l)}function e9(){var s=arguments,l=Be(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var t9=$s(function(s,l,f){return s+(f?"_":"")+l.toLowerCase()});function n9(s,l,f){return f&&typeof f!="number"&&$t(s,l,f)&&(l=f=n),f=f===n?N: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 r9=$s(function(s,l,f){return s+(f?" ":"")+Sm(l)});function i9(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 s9(s,l,f){var g=E.templateSettings;f&&$t(s,l,f)&&(l=n),s=Be(s),l=uc({},l,g,vS);var x=uc({},l.imports,g.imports,vS),M=gt(x),_=Dh(x,M),D,j,Y=0,q=l.interpolate||Tl,K="__p += '",le=Nh((l.escape||Tl).source+"|"+q.source+"|"+(q===Vw?jk:Tl).source+"|"+(l.evaluate||Tl).source+"|$","g"),me="//# sourceURL="+(Ue.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++m3+"]")+`
635
+ `;s.replace(le,function(Ce,De,Ne,Qt,Dt,en){return Ne||(Ne=Qt),K+=s.slice(Y,en).replace(Gk,R3),De&&(D=!0,K+=`' +
636
+ __e(`+De+`) +
637
+ '`),Dt&&(j=!0,K+=`';
638
+ `+Dt+`;
639
639
  __p += '`),Ne&&(K+=`' +
640
640
  ((__t = (`+Ne+`)) == null ? '' : __t) +
641
641
  '`),Y=en+Ce.length,Ce}),K+=`';
642
642
  `;var Ee=Ue.call(l,"variable")&&l.variable;if(!Ee)K=`with (obj) {
643
643
  `+K+`
644
644
  }
645
- `;else if(Nk.test(Ee))throw new Pe(c);K=(j?K.replace(bk,""):K).replace(xk,"$1").replace(wk,"$1;"),K="function("+(Ee||"obj")+`) {
645
+ `;else if(Lk.test(Ee))throw new Pe(c);K=(j?K.replace(xk,""):K).replace(wk,"$1").replace(Sk,"$1;"),K="function("+(Ee||"obj")+`) {
646
646
  `+(Ee?"":`obj || (obj = {});
647
- `)+"var __t, __p = ''"+($?", __e = _.escape":"")+(j?`, __j = Array.prototype.join;
647
+ `)+"var __t, __p = ''"+(D?", __e = _.escape":"")+(j?`, __j = Array.prototype.join;
648
648
  function print() { __p += __j.call(arguments, '') }
649
649
  `:`;
650
650
  `)+K+`return __p
651
- }`;var Oe=cT(function(){return je(M,me+"return "+K).apply(n,_)});if(Oe.source=K,vm(Oe))throw Oe;return Oe}function s9(s){return Be(s).toLowerCase()}function o9(s){return Be(s).toUpperCase()}function a9(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),M=b2(g,x),_=x2(g,x)+1;return Ur(g,M,_).join("")}function l9(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 c9(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 u9(s,l){var f=Q,g=ee;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 M=s.length;if(Es(s)){var _=wn(s);M=_.length}if(f>=M)return s;var $=f-Cs(g);if($<1)return g;var j=_?Ur(_,0,$).join(""):s.slice(0,$);if(x===n)return j+g;if(_&&($+=j.length-$),bm(x)){if(s.slice($).search(x)){var Y,q=j;for(x.global||(x=Nh(x.source,Be(Vw.exec(x))+"g")),x.lastIndex=0;Y=x.exec(q);)var K=Y.index;j=j.slice(0,K===n?$:K)}}else if(s.indexOf(Zt(x),$)!=$){var le=j.lastIndexOf(x);le>-1&&(j=j.slice(0,le))}return j+g}function f9(s){return s=Be(s),s&&Sk.test(s)?s.replace(kw,V3):s}var d9=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?N3(s)?U3(s):P3(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)}}),h9=lr(function(s,l){return un(l,function(f){f=Un(f),or(s,f,gm(s[f],s))}),s});function m9(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 M=s[x];if(Kt(M[0],this,g))return Kt(M[1],this,g)}})}function p9(s){return Vj(hn(s,m))}function Tm(s){return function(){return s}}function g9(s,l){return s==null||s!==s?l:s}var y9=dS(),v9=dS(!0);function Ut(s){return s}function Em(s){return W2(typeof s=="function"?s:hn(s,m))}function b9(s){return z2(hn(s,m))}function x9(s,l){return G2(s,hn(l,m))}var w9=_e(function(s,l){return function(f){return Ho(f,s,l)}}),S9=_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 M=!(st(f)&&"chain"in f)||!!f.chain,_=ur(s);return un(x,function($){var j=l[$];s[$]=j,_&&(s.prototype[$]=function(){var Y=this.__chain__;if(M||Y){var q=s(this.__wrapped__),K=q.__actions__=Vt(this.__actions__);return K.push({func:j,args:arguments,thisArg:s}),q.__chain__=Y,q}return j.apply(s,kr([this.value()],arguments))})}),s}function T9(){return bt._===this&&(bt._=K3),this}function Pm(){}function E9(s){return s=Me(s),_e(function(l){return Y2(l,s)})}var C9=rm(et),P9=rm(h2),A9=rm(Mh);function uT(s){return um(s)?Oh(Un(s)):rF(s)}function M9(s){return function(l){return s==null?n:Oi(s,l)}}var O9=mS(),_9=mS(!0);function Am(){return[]}function Mm(){return!1}function I9(){return{}}function D9(){return""}function $9(){return!0}function R9(s,l){if(s=Me(s),s<1||s>W)return[];var f=N,g=At(s,N);l=we(l),s-=N;for(var x=Dh(g,l);++f<s;)l(f);return x}function N9(s){return Ae(s)?et(s,Un):Jt(s)?[s]:Vt(_S(Be(s)))}function L9(s){var l=++H3;return Be(s)+l}var k9=Zl(function(s,l){return s+l},0),j9=im("ceil"),F9=Zl(function(s,l){return s/l},1),V9=im("floor");function B9(s){return s&&s.length?zl(s,Ut,Uh):n}function W9(s,l){return s&&s.length?zl(s,we(l,2),Uh):n}function U9(s){return g2(s,Ut)}function z9(s,l){return g2(s,we(l,2))}function G9(s){return s&&s.length?zl(s,Ut,Hh):n}function Y9(s,l){return s&&s.length?zl(s,we(l,2),Hh):n}var H9=Zl(function(s,l){return s*l},1),q9=im("round"),K9=Zl(function(s,l){return s-l},0);function X9(s){return s&&s.length?Ih(s,Ut):0}function Z9(s,l){return s&&s.length?Ih(s,we(l,2)):0}return E.after=bB,E.ary=BS,E.assign=o8,E.assignIn=tT,E.assignInWith=uc,E.assignWith=a8,E.at=l8,E.before=WS,E.bind=gm,E.bindAll=h9,E.bindKey=US,E.castArray=IB,E.chain=jS,E.chunk=VF,E.compact=BF,E.concat=WF,E.cond=m9,E.conforms=p9,E.constant=Tm,E.countBy=XV,E.create=c8,E.curry=zS,E.curryRight=GS,E.debounce=YS,E.defaults=u8,E.defaultsDeep=f8,E.defer=xB,E.delay=wB,E.difference=UF,E.differenceBy=zF,E.differenceWith=GF,E.drop=YF,E.dropRight=HF,E.dropRightWhile=qF,E.dropWhile=KF,E.fill=XF,E.filter=JV,E.flatMap=tB,E.flatMapDeep=nB,E.flatMapDepth=rB,E.flatten=RS,E.flattenDeep=ZF,E.flattenDepth=JF,E.flip=SB,E.flow=y9,E.flowRight=v9,E.fromPairs=QF,E.functions=v8,E.functionsIn=b8,E.groupBy=iB,E.initial=tV,E.intersection=nV,E.intersectionBy=rV,E.intersectionWith=iV,E.invert=w8,E.invertBy=S8,E.invokeMap=oB,E.iteratee=Em,E.keyBy=aB,E.keys=gt,E.keysIn=Wt,E.map=ic,E.mapKeys=E8,E.mapValues=C8,E.matches=b9,E.matchesProperty=x9,E.memoize=oc,E.merge=P8,E.mergeWith=nT,E.method=w9,E.methodOf=S9,E.mixin=Cm,E.negate=ac,E.nthArg=E9,E.omit=A8,E.omitBy=M8,E.once=TB,E.orderBy=lB,E.over=C9,E.overArgs=EB,E.overEvery=P9,E.overSome=A9,E.partial=ym,E.partialRight=HS,E.partition=cB,E.pick=O8,E.pickBy=rT,E.property=uT,E.propertyOf=M9,E.pull=lV,E.pullAll=LS,E.pullAllBy=cV,E.pullAllWith=uV,E.pullAt=fV,E.range=O9,E.rangeRight=_9,E.rearg=CB,E.reject=dB,E.remove=dV,E.rest=PB,E.reverse=mm,E.sampleSize=mB,E.set=I8,E.setWith=D8,E.shuffle=pB,E.slice=hV,E.sortBy=vB,E.sortedUniq=xV,E.sortedUniqBy=wV,E.split=t9,E.spread=AB,E.tail=SV,E.take=TV,E.takeRight=EV,E.takeRightWhile=CV,E.takeWhile=PV,E.tap=BV,E.throttle=MB,E.thru=rc,E.toArray=JS,E.toPairs=iT,E.toPairsIn=sT,E.toPath=N9,E.toPlainObject=eT,E.transform=$8,E.unary=OB,E.union=AV,E.unionBy=MV,E.unionWith=OV,E.uniq=_V,E.uniqBy=IV,E.uniqWith=DV,E.unset=R8,E.unzip=pm,E.unzipWith=kS,E.update=N8,E.updateWith=L8,E.values=Ns,E.valuesIn=k8,E.without=$V,E.words=lT,E.wrap=_B,E.xor=RV,E.xorBy=NV,E.xorWith=LV,E.zip=kV,E.zipObject=jV,E.zipObjectDeep=FV,E.zipWith=VV,E.entries=iT,E.entriesIn=sT,E.extend=tT,E.extendWith=uc,Cm(E,E),E.add=k9,E.attempt=cT,E.camelCase=B8,E.capitalize=oT,E.ceil=j9,E.clamp=j8,E.clone=DB,E.cloneDeep=RB,E.cloneDeepWith=NB,E.cloneWith=$B,E.conformsTo=LB,E.deburr=aT,E.defaultTo=g9,E.divide=F9,E.endsWith=W8,E.eq=Tn,E.escape=U8,E.escapeRegExp=z8,E.every=ZV,E.find=QV,E.findIndex=DS,E.findKey=d8,E.findLast=eB,E.findLastIndex=$S,E.findLastKey=h8,E.floor=V9,E.forEach=FS,E.forEachRight=VS,E.forIn=m8,E.forInRight=p8,E.forOwn=g8,E.forOwnRight=y8,E.get=xm,E.gt=kB,E.gte=jB,E.has=x8,E.hasIn=wm,E.head=NS,E.identity=Ut,E.includes=sB,E.indexOf=eV,E.inRange=F8,E.invoke=T8,E.isArguments=Di,E.isArray=Ae,E.isArrayBuffer=FB,E.isArrayLike=Bt,E.isArrayLikeObject=ct,E.isBoolean=VB,E.isBuffer=zr,E.isDate=BB,E.isElement=WB,E.isEmpty=UB,E.isEqual=zB,E.isEqualWith=GB,E.isError=vm,E.isFinite=YB,E.isFunction=ur,E.isInteger=qS,E.isLength=lc,E.isMap=KS,E.isMatch=HB,E.isMatchWith=qB,E.isNaN=KB,E.isNative=XB,E.isNil=JB,E.isNull=ZB,E.isNumber=XS,E.isObject=st,E.isObjectLike=ot,E.isPlainObject=Qo,E.isRegExp=bm,E.isSafeInteger=QB,E.isSet=ZS,E.isString=cc,E.isSymbol=Jt,E.isTypedArray=Rs,E.isUndefined=e8,E.isWeakMap=t8,E.isWeakSet=n8,E.join=sV,E.kebabCase=G8,E.last=pn,E.lastIndexOf=oV,E.lowerCase=Y8,E.lowerFirst=H8,E.lt=r8,E.lte=i8,E.max=B9,E.maxBy=W9,E.mean=U9,E.meanBy=z9,E.min=G9,E.minBy=Y9,E.stubArray=Am,E.stubFalse=Mm,E.stubObject=I9,E.stubString=D9,E.stubTrue=$9,E.multiply=H9,E.nth=aV,E.noConflict=T9,E.noop=Pm,E.now=sc,E.pad=q8,E.padEnd=K8,E.padStart=X8,E.parseInt=Z8,E.random=V8,E.reduce=uB,E.reduceRight=fB,E.repeat=J8,E.replace=Q8,E.result=_8,E.round=q9,E.runInContext=L,E.sample=hB,E.size=gB,E.snakeCase=e9,E.some=yB,E.sortedIndex=mV,E.sortedIndexBy=pV,E.sortedIndexOf=gV,E.sortedLastIndex=yV,E.sortedLastIndexBy=vV,E.sortedLastIndexOf=bV,E.startCase=n9,E.startsWith=r9,E.subtract=K9,E.sum=X9,E.sumBy=Z9,E.template=i9,E.times=R9,E.toFinite=fr,E.toInteger=Me,E.toLength=QS,E.toLower=s9,E.toNumber=gn,E.toSafeInteger=s8,E.toString=Be,E.toUpper=o9,E.trim=a9,E.trimEnd=l9,E.trimStart=c9,E.truncate=u9,E.unescape=f9,E.uniqueId=L9,E.upperCase=d9,E.upperFirst=Sm,E.each=FS,E.eachRight=VS,E.first=NS,Cm(E,function(){var s={};return Bn(E,function(l,f){Ue.call(E.prototype,f)||(s[f]=l)}),s}(),{chain:!1}),E.VERSION=r,un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){E[s].placeholder=E}),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,N),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==ue||f==oe;Re.prototype[s]=function(x){var M=this.clone();return M.__iteratees__.push({iteratee:we(x,3),type:f}),M.__filtered__=M.__filtered__||g,M}}),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(N)},Bn(Re.prototype,function(s,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),x=E[g?"take"+(l=="last"?"Right":""):l],M=g||/^find/.test(l);x&&(E.prototype[l]=function(){var _=this.__wrapped__,$=g?[1]:arguments,j=_ instanceof Re,Y=$[0],q=j||Ae(_),K=function($e){var Ne=x.apply(E,kr([$e],$));return g&&le?Ne[0]:Ne};q&&f&&typeof Y=="function"&&Y.length!=1&&(j=q=!1);var le=this.__chain__,me=!!this.__actions__.length,Ee=M&&!le,Oe=j&&!me;if(!M&&q){_=Oe?_:new Re(this);var Ce=s.apply(_,$);return Ce.__actions__.push({func:rc,args:[K],thisArg:n}),new dn(Ce,le)}return Ee&&Oe?s.apply(this,$):(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);E.prototype[s]=function(){var x=arguments;if(g&&!this.__chain__){var M=this.value();return l.apply(Ae(M)?M:[],x)}return this[f](function(_){return l.apply(Ae(_)?_:[],x)})}}),Bn(Re.prototype,function(s,l){var f=E[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=fj,Re.prototype.reverse=dj,Re.prototype.value=hj,E.prototype.at=WV,E.prototype.chain=UV,E.prototype.commit=zV,E.prototype.next=GV,E.prototype.plant=HV,E.prototype.reverse=qV,E.prototype.toJSON=E.prototype.valueOf=E.prototype.value=KV,E.prototype.first=E.prototype.head,Vo&&(E.prototype[Vo]=YV),E},Ps=z3();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 Z.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=uT(function(){return je(M,me+"return "+K).apply(n,_)});if(Oe.source=K,vm(Oe))throw Oe;return Oe}function o9(s){return Be(s).toLowerCase()}function a9(s){return Be(s).toUpperCase()}function l9(s,l,f){if(s=Be(s),s&&(f||l===n))return b2(s);if(!s||!(l=Zt(l)))return s;var g=wn(s),x=wn(l),M=x2(g,x),_=w2(g,x)+1;return Ur(g,M,_).join("")}function c9(s,l,f){if(s=Be(s),s&&(f||l===n))return s.slice(0,T2(s)+1);if(!s||!(l=Zt(l)))return s;var g=wn(s),x=w2(g,wn(l))+1;return Ur(g,0,x).join("")}function u9(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=x2(g,wn(l));return Ur(g,x).join("")}function f9(s,l){var f=Q,g=ee;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 M=s.length;if(Es(s)){var _=wn(s);M=_.length}if(f>=M)return s;var D=f-Cs(g);if(D<1)return g;var j=_?Ur(_,0,D).join(""):s.slice(0,D);if(x===n)return j+g;if(_&&(D+=j.length-D),bm(x)){if(s.slice(D).search(x)){var Y,q=j;for(x.global||(x=Nh(x.source,Be(Bw.exec(x))+"g")),x.lastIndex=0;Y=x.exec(q);)var K=Y.index;j=j.slice(0,K===n?D:K)}}else if(s.indexOf(Zt(x),D)!=D){var le=j.lastIndexOf(x);le>-1&&(j=j.slice(0,le))}return j+g}function d9(s){return s=Be(s),s&&Tk.test(s)?s.replace(jw,B3):s}var h9=$s(function(s,l,f){return s+(f?" ":"")+l.toUpperCase()}),Sm=fS("toUpperCase");function cT(s,l,f){return s=Be(s),l=f?n:l,l===n?L3(s)?z3(s):A3(s):s.match(l)||[]}var uT=_e(function(s,l){try{return Kt(s,n,l)}catch(f){return vm(f)?f:new Pe(f)}}),m9=lr(function(s,l){return un(l,function(f){f=Un(f),or(s,f,gm(s[f],s))}),s});function p9(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 M=s[x];if(Kt(M[0],this,g))return Kt(M[1],this,g)}})}function g9(s){return Bj(hn(s,m))}function Tm(s){return function(){return s}}function y9(s,l){return s==null||s!==s?l:s}var v9=hS(),b9=hS(!0);function Ut(s){return s}function Em(s){return U2(typeof s=="function"?s:hn(s,m))}function x9(s){return G2(hn(s,m))}function w9(s,l){return Y2(s,hn(l,m))}var S9=_e(function(s,l){return function(f){return Ho(f,s,l)}}),T9=_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 M=!(st(f)&&"chain"in f)||!!f.chain,_=ur(s);return un(x,function(D){var j=l[D];s[D]=j,_&&(s.prototype[D]=function(){var Y=this.__chain__;if(M||Y){var q=s(this.__wrapped__),K=q.__actions__=Vt(this.__actions__);return K.push({func:j,args:arguments,thisArg:s}),q.__chain__=Y,q}return j.apply(s,kr([this.value()],arguments))})}),s}function E9(){return bt._===this&&(bt._=X3),this}function Pm(){}function C9(s){return s=Me(s),_e(function(l){return H2(l,s)})}var P9=rm(et),A9=rm(m2),M9=rm(Mh);function fT(s){return um(s)?Oh(Un(s)):iF(s)}function O9(s){return function(l){return s==null?n:Oi(s,l)}}var _9=pS(),I9=pS(!0);function Am(){return[]}function Mm(){return!1}function $9(){return{}}function D9(){return""}function R9(){return!0}function N9(s,l){if(s=Me(s),s<1||s>W)return[];var f=N,g=At(s,N);l=we(l),s-=N;for(var x=$h(g,l);++f<s;)l(f);return x}function L9(s){return Ae(s)?et(s,Un):Jt(s)?[s]:Vt(IS(Be(s)))}function k9(s){var l=++q3;return Be(s)+l}var j9=Zl(function(s,l){return s+l},0),F9=im("ceil"),V9=Zl(function(s,l){return s/l},1),B9=im("floor");function W9(s){return s&&s.length?zl(s,Ut,Uh):n}function U9(s,l){return s&&s.length?zl(s,we(l,2),Uh):n}function z9(s){return y2(s,Ut)}function G9(s,l){return y2(s,we(l,2))}function Y9(s){return s&&s.length?zl(s,Ut,Hh):n}function H9(s,l){return s&&s.length?zl(s,we(l,2),Hh):n}var q9=Zl(function(s,l){return s*l},1),K9=im("round"),X9=Zl(function(s,l){return s-l},0);function Z9(s){return s&&s.length?Ih(s,Ut):0}function J9(s,l){return s&&s.length?Ih(s,we(l,2)):0}return E.after=xB,E.ary=WS,E.assign=a8,E.assignIn=nT,E.assignInWith=uc,E.assignWith=l8,E.at=c8,E.before=US,E.bind=gm,E.bindAll=m9,E.bindKey=zS,E.castArray=$B,E.chain=FS,E.chunk=BF,E.compact=WF,E.concat=UF,E.cond=p9,E.conforms=g9,E.constant=Tm,E.countBy=ZV,E.create=u8,E.curry=GS,E.curryRight=YS,E.debounce=HS,E.defaults=f8,E.defaultsDeep=d8,E.defer=wB,E.delay=SB,E.difference=zF,E.differenceBy=GF,E.differenceWith=YF,E.drop=HF,E.dropRight=qF,E.dropRightWhile=KF,E.dropWhile=XF,E.fill=ZF,E.filter=QV,E.flatMap=nB,E.flatMapDeep=rB,E.flatMapDepth=iB,E.flatten=NS,E.flattenDeep=JF,E.flattenDepth=QF,E.flip=TB,E.flow=v9,E.flowRight=b9,E.fromPairs=eV,E.functions=b8,E.functionsIn=x8,E.groupBy=sB,E.initial=nV,E.intersection=rV,E.intersectionBy=iV,E.intersectionWith=sV,E.invert=S8,E.invertBy=T8,E.invokeMap=aB,E.iteratee=Em,E.keyBy=lB,E.keys=gt,E.keysIn=Wt,E.map=ic,E.mapKeys=C8,E.mapValues=P8,E.matches=x9,E.matchesProperty=w9,E.memoize=oc,E.merge=A8,E.mergeWith=rT,E.method=S9,E.methodOf=T9,E.mixin=Cm,E.negate=ac,E.nthArg=C9,E.omit=M8,E.omitBy=O8,E.once=EB,E.orderBy=cB,E.over=P9,E.overArgs=CB,E.overEvery=A9,E.overSome=M9,E.partial=ym,E.partialRight=qS,E.partition=uB,E.pick=_8,E.pickBy=iT,E.property=fT,E.propertyOf=O9,E.pull=cV,E.pullAll=kS,E.pullAllBy=uV,E.pullAllWith=fV,E.pullAt=dV,E.range=_9,E.rangeRight=I9,E.rearg=PB,E.reject=hB,E.remove=hV,E.rest=AB,E.reverse=mm,E.sampleSize=pB,E.set=$8,E.setWith=D8,E.shuffle=gB,E.slice=mV,E.sortBy=bB,E.sortedUniq=wV,E.sortedUniqBy=SV,E.split=n9,E.spread=MB,E.tail=TV,E.take=EV,E.takeRight=CV,E.takeRightWhile=PV,E.takeWhile=AV,E.tap=WV,E.throttle=OB,E.thru=rc,E.toArray=QS,E.toPairs=sT,E.toPairsIn=oT,E.toPath=L9,E.toPlainObject=tT,E.transform=R8,E.unary=_B,E.union=MV,E.unionBy=OV,E.unionWith=_V,E.uniq=IV,E.uniqBy=$V,E.uniqWith=DV,E.unset=N8,E.unzip=pm,E.unzipWith=jS,E.update=L8,E.updateWith=k8,E.values=Ns,E.valuesIn=j8,E.without=RV,E.words=cT,E.wrap=IB,E.xor=NV,E.xorBy=LV,E.xorWith=kV,E.zip=jV,E.zipObject=FV,E.zipObjectDeep=VV,E.zipWith=BV,E.entries=sT,E.entriesIn=oT,E.extend=nT,E.extendWith=uc,Cm(E,E),E.add=j9,E.attempt=uT,E.camelCase=W8,E.capitalize=aT,E.ceil=F9,E.clamp=F8,E.clone=DB,E.cloneDeep=NB,E.cloneDeepWith=LB,E.cloneWith=RB,E.conformsTo=kB,E.deburr=lT,E.defaultTo=y9,E.divide=V9,E.endsWith=U8,E.eq=Tn,E.escape=z8,E.escapeRegExp=G8,E.every=JV,E.find=eB,E.findIndex=DS,E.findKey=h8,E.findLast=tB,E.findLastIndex=RS,E.findLastKey=m8,E.floor=B9,E.forEach=VS,E.forEachRight=BS,E.forIn=p8,E.forInRight=g8,E.forOwn=y8,E.forOwnRight=v8,E.get=xm,E.gt=jB,E.gte=FB,E.has=w8,E.hasIn=wm,E.head=LS,E.identity=Ut,E.includes=oB,E.indexOf=tV,E.inRange=V8,E.invoke=E8,E.isArguments=$i,E.isArray=Ae,E.isArrayBuffer=VB,E.isArrayLike=Bt,E.isArrayLikeObject=ct,E.isBoolean=BB,E.isBuffer=zr,E.isDate=WB,E.isElement=UB,E.isEmpty=zB,E.isEqual=GB,E.isEqualWith=YB,E.isError=vm,E.isFinite=HB,E.isFunction=ur,E.isInteger=KS,E.isLength=lc,E.isMap=XS,E.isMatch=qB,E.isMatchWith=KB,E.isNaN=XB,E.isNative=ZB,E.isNil=QB,E.isNull=JB,E.isNumber=ZS,E.isObject=st,E.isObjectLike=ot,E.isPlainObject=Qo,E.isRegExp=bm,E.isSafeInteger=e8,E.isSet=JS,E.isString=cc,E.isSymbol=Jt,E.isTypedArray=Rs,E.isUndefined=t8,E.isWeakMap=n8,E.isWeakSet=r8,E.join=oV,E.kebabCase=Y8,E.last=pn,E.lastIndexOf=aV,E.lowerCase=H8,E.lowerFirst=q8,E.lt=i8,E.lte=s8,E.max=W9,E.maxBy=U9,E.mean=z9,E.meanBy=G9,E.min=Y9,E.minBy=H9,E.stubArray=Am,E.stubFalse=Mm,E.stubObject=$9,E.stubString=D9,E.stubTrue=R9,E.multiply=q9,E.nth=lV,E.noConflict=E9,E.noop=Pm,E.now=sc,E.pad=K8,E.padEnd=X8,E.padStart=Z8,E.parseInt=J8,E.random=B8,E.reduce=fB,E.reduceRight=dB,E.repeat=Q8,E.replace=e9,E.result=I8,E.round=K9,E.runInContext=L,E.sample=mB,E.size=yB,E.snakeCase=t9,E.some=vB,E.sortedIndex=pV,E.sortedIndexBy=gV,E.sortedIndexOf=yV,E.sortedLastIndex=vV,E.sortedLastIndexBy=bV,E.sortedLastIndexOf=xV,E.startCase=r9,E.startsWith=i9,E.subtract=X9,E.sum=Z9,E.sumBy=J9,E.template=s9,E.times=N9,E.toFinite=fr,E.toInteger=Me,E.toLength=eT,E.toLower=o9,E.toNumber=gn,E.toSafeInteger=o8,E.toString=Be,E.toUpper=a9,E.trim=l9,E.trimEnd=c9,E.trimStart=u9,E.truncate=f9,E.unescape=d9,E.uniqueId=k9,E.upperCase=h9,E.upperFirst=Sm,E.each=VS,E.eachRight=BS,E.first=LS,Cm(E,function(){var s={};return Bn(E,function(l,f){Ue.call(E.prototype,f)||(s[f]=l)}),s}(),{chain:!1}),E.VERSION=r,un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){E[s].placeholder=E}),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,N),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==ue||f==oe;Re.prototype[s]=function(x){var M=this.clone();return M.__iteratees__.push({iteratee:we(x,3),type:f}),M.__filtered__=M.__filtered__||g,M}}),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(N)},Bn(Re.prototype,function(s,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),x=E[g?"take"+(l=="last"?"Right":""):l],M=g||/^find/.test(l);x&&(E.prototype[l]=function(){var _=this.__wrapped__,D=g?[1]:arguments,j=_ instanceof Re,Y=D[0],q=j||Ae(_),K=function(De){var Ne=x.apply(E,kr([De],D));return g&&le?Ne[0]:Ne};q&&f&&typeof Y=="function"&&Y.length!=1&&(j=q=!1);var le=this.__chain__,me=!!this.__actions__.length,Ee=M&&!le,Oe=j&&!me;if(!M&&q){_=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);E.prototype[s]=function(){var x=arguments;if(g&&!this.__chain__){var M=this.value();return l.apply(Ae(M)?M:[],x)}return this[f](function(_){return l.apply(Ae(_)?_:[],x)})}}),Bn(Re.prototype,function(s,l){var f=E[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=dj,Re.prototype.reverse=hj,Re.prototype.value=mj,E.prototype.at=UV,E.prototype.chain=zV,E.prototype.commit=GV,E.prototype.next=YV,E.prototype.plant=qV,E.prototype.reverse=KV,E.prototype.toJSON=E.prototype.valueOf=E.prototype.value=XV,E.prototype.first=E.prototype.head,Vo&&(E.prototype[Vo]=HV),E},Ps=G3();Ei?((Ei.exports=Ps)._=Ps,Eh._=Ps):bt._=Ps}).call(d$)}(fo,fo.exports)),fo.exports}var yf=h$();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 m$ extends Z.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 p$({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(`
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:Z.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]),Z.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,T]=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 A=[];if(h!==b){let P=[...h];for(let R=0;R<w.length;R++){const k=w[R],F=ja(k);m.includes(F)||(P.splice(R,0,k),A.push(k))}return a==="wait"&&A.length&&(P=A),C(Pv(P)),T(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:D}=I.useContext(vf);return v.jsx(v.Fragment,{children:w.map(P=>{const R=ja(P),k=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&&(D==null||D(),C(y.current),o&&(d==null||d()),r&&r())};return v.jsx(pD,{isPresent:k,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,onExitComplete:k?void 0:F,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,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 Mv(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]=(D,P=!1,R=!1)=>(n||S(),A.schedule(D,P,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}=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 a,o;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],T=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),T.current&&p.animationState&&p.animationState.animateChanges())}),I.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,b)}),T.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 T=RD(p);m=T.MeasureLayout,S.visualElement=OD(i,b,p,t,T.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(${(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(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 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,Of[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,Of[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:T,...w}=S;for(const C in w){let A=w[C];if(Array.isArray(A)){const D=h?A.length-1:0;A=A[D]}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 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 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(O$),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: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 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$={...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 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 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 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 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(([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 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,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(),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,a]=t,o=Lb(i),c=Lb(a);if(o!==c)if(Ob(o)&&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 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"?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((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)),T=o-a,w=Zn(Math.sqrt(u/h)),C=Math.abs(T)<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 P=fd(w,b);A=R=>{const k=Math.exp(-b*w*R);return o-k*((S+b*w*T)/P*Math.sin(P*R)+T*Math.cos(P*R))}}else if(b===1)A=P=>o-Math.exp(-w*P)*(T+(S+w*T)*P);else{const P=w*Math.sqrt(b*b-1);A=R=>{const k=Math.exp(-b*w*R),F=Math.min(P*R,300);return o-k*((S+b*w*T)*Math.sinh(F)+P*T*Math.cosh(F))/P}}const D={calculatedDuration:y&&m||null,next:P=>{const R=A(P);if(y)c.done=P>=m;else{let k=0;b<1&&(k=P===0?Ln(S):Gb(A,P,R));const F=Math.abs(k)<=r,z=Math.abs(o-R)<=i;c.done=F&&z}return c.value=c.done?o:R,c},toString:()=>{const P=Math.min(Vb(D),od),R=sb(k=>D.next(P*k).value,P,30);return P+"ms "+R}};return D}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 T=m+b,w=o===void 0?T:o(T);w!==T&&(b=w-m);const C=F=>-b*Math.exp(-F/r),A=F=>w+C(F),D=F=>{const z=C(F),Q=A(F);p.done=Math.abs(z)<=d,p.value=p.done?w:Q};let P,R;const k=F=>{y(p.value)&&(P=F,R=qb({keyframes:[p.value,S(p.value)],velocity:Gb(A,F,p.value),damping:i,stiffness:a,restDelta:d,restSpeed:h}))};return k(0),{calculatedDuration:null,next:F=>{let z=!1;return!R&&P===void 0&&(z=!0,D(F),k(F)),P!==void 0&&F>=P?R.next(F-P):(!z&&D(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},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: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(M4,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:T}=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,D=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"&&(D=o)),A=Xn(0,1,Q)*m}const P=C?{done:!1,value:u[0]}:D.next(A);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)),T&&T(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(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 O4=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,T=R4(t,b);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,a=T.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&&O4.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 T=p.animation;T&&d.push(T)}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 T=0;T<q4;T++){const w=H4[T],C=n[w],A=d[w]!==void 0?d[w]:h[w],D=ho(A),P=w===u?C.isActive:null;P===!1&&(S=T);let R=A===h[w]&&A!==d[w]&&D;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),C.protectedKeys={...y},!C.isActive&&P===null||!A&&!C.prevProp||Ua(A)||typeof A=="boolean")continue;const k=Z4(C.prevProp,A);let F=k||w===u&&C.isActive&&!R&&D||T>S&&D,z=!1;const Q=Array.isArray(A)?A:[A];let ee=Q.reduce(i(w),{});P===!1&&(ee={});const{prevResolvedValues:ce={}}=C,ye={...ce,...ee},ue=V=>{F=!0,p.has(V)&&(z=!0,p.delete(V)),C.needsAnimating[V]=!0;const W=e.getValue(V);W&&(W.liveStyle=!1)};for(const V in ye){const W=ee[V],H=ce[V];if(y.hasOwnProperty(V))continue;let O=!1;Lf(W)&&Lf(H)?O=!n1(W,H):O=W!==H,O?W!=null?ue(V):p.add(V):W!==void 0&&p.has(V)?ue(V):C.protectedKeys[V]=!0}C.prevProp=A,C.prevResolvedValues=ee,C.isActive&&(y={...y,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(R&&k)||z)&&m.push(...Q.map(V=>({animation:V,options:{type:w}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const w=yo(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(T.transition=w.transition)}p.forEach(w=>{const C=e.getBaseTarget(w),A=e.getValue(w);A&&(A.liveStyle=!0),T[w]=C??null}),m.push({animation:T})}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 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 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(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: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=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:T,onMove:w}=this.handlers;p||(T&&T(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 T=xd(m.type==="pointercancel"?this.lastMoveEventInfo:bd(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,T),S&&S(m,T)},!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,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 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 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)},a=(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(T=>{let w=this.getAxisMotionValue(T).get()||0;if(Rn.test(w)){const{projection:C}=this.visualElement;if(C&&C.layout){const A=C.layout.layoutBox[T];A&&(w=_t(A)*(parseFloat(w)/100))}}this.originPoint[T]=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:T}=m;if(y&&this.currentDirection===null){this.currentDirection=C5(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),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=y5(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=v5(i.layoutBox,n):this.constraints=!1,this.elastic=S5(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=w5(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=h5(r,i.root,this.visualElement.getTransformPagePoint());let o=b5(i.layout.layoutBox,a);if(n){const c=n(i5(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]=x5({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;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,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 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:(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}%`}},M5={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 O5 extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;kD(_5),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(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 a=i-n;a>=t&&(Cr(r),e(a-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,a){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))):a&&(e.opacity=rt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<L5;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 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,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){V5(e,t[n],t[r],t[i],t.scale,a,o)}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 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 G5(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"],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: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=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=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 R5)}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=D5(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=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:T,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 D={...jf(b,"layout"),onPlay:T,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&(D.delay=0,D.type=!1),this.startAnimation(D)}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(r6),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(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 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)),l6(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(c6))){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(),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 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;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(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,T=this.getStack(),w=!T||T.members.length<=1,C=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(o6));this.animationProgress=0;let A;this.mixTargetDelta=D=>{const P=D/1e3;nx(m.x,o.x,P),nx(m.y,o.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),A&&U5(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=lt()),sn(A,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(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=I5(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),Mo(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(o,c){this.sharedNodes.has(o)||this.sharedNodes.set(o,new z5),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 Y5;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=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:T,applyTo:w,isCSSVariable:C}=mo[b],A=d.transform==="none"?p[b]:T(p[b],m);if(w){const D=w.length;for(let P=0;P<D;P++)d[w[P]]=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 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: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();Mo(c,r,n.layoutBox);const u=as();o?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 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=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,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 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")}),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 b6(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=>v6(d,i)),!y6(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 x6 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=b6(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,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:a}=t,o={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,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 E6(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(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],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 N6{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,$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)}),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=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 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 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:a,showCloseButton:o=!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=()=>{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: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}),o&&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: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")})]})]})})})})})};/*!
659
+ `),()=>{document.head.removeChild(y)}},[t]),v.jsx(m$,{isPresent:t,childRef:i,sizeRef:a,children:Z.cloneElement(e,{ref:i})})}const g$=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:c})=>{const u=bf(y$),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]),Z.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(e=v.jsx(p$,{isPresent:n,anchorX:c,children:e})),v.jsx(ka.Provider,{value:m,children:e})};function y$(){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,T]=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 A=[];if(h!==b){let P=[...h];for(let R=0;R<w.length;R++){const k=w[R],F=ja(k);m.includes(F)||(P.splice(R,0,k),A.push(k))}return a==="wait"&&A.length&&(P=A),C(Pv(P)),T(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(P=>{const R=ja(P),k=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(g$,{isPresent:k,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,onExitComplete:k?void 0:F,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 v$={useManualTiming:!1},Fa=["read","resolveKeyframes","update","preRender","render","postRender"],Av={value:null};function b$(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 x$=40;function Mv(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]=b$(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,x$),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]=($,P=!1,R=!1)=>(n||S(),A.schedule($,P,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}=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 w$(e){for(const t in e)es[t]={...es[t],...e[t]}}const S$=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")||S$.has(e)}let Iv=e=>!Va(e);function T$(e){e&&(Iv=t=>t.startsWith("on")?!Va(t):e(t))}try{T$(require("@emotion/is-prop-valid").default)}catch{}function E$(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 $v=new Set;function Ba(e,t,n){e||$v.has(t)||(console.warn(t),$v.add(t))}function C$(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 Dv(e){return!!(za(e)||e.variants)}function P$(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 A$(e){const{initial:t,animate:n}=P$(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 M$=Symbol.for("motionComponentSymbol");function ts(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function O$(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 _$(e,t,n,r,i){var a,o;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")&&I$(m.current,n,i,y);const S=I.useRef(!1);I.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const b=n[Nv],T=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),T.current&&p.animationState&&p.animationState.animateChanges())}),I.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,b)}),T.current=!1))}),p}function I$(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 $$({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var a,o;e&&w$(e);function c(d,h){let m;const p={...I.useContext(wf),...d,layoutId:D$(d)},{isStatic:y}=p,S=A$(d),b=r(d,y);if(!y&&xf){R$(p,e);const T=N$(p);m=T.MeasureLayout,S.visualElement=_$(i,b,p,t,T.ProjectionNode)}return v.jsxs(Wa.Provider,{value:S,children:[m&&S.visualElement?v.jsx(m,{visualElement:S.visualElement,...p}):null,n(i,d,O$(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[M$]=i,u}function D$({layoutId:e}){const t=I.useContext(vf).id;return t&&e!==void 0?t+"-"+e:e}function R$(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 N$(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("--"),L$=jv("var(--"),Mf=e=>L$(e)?k$.test(e.split("/*")[0].trim()):!1,k$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,mo={};function j$(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"),F$=go("vh"),V$=go("vw"),Bv={...Rn,parse:e=>Rn.parse(e)/100,transform:e=>Rn.transform(e*100)},B$={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},W$={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={...B$,...W$,zIndex:Wv,size:Te,fillOpacity:po,strokeOpacity:po,numOctaves:Wv},U$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},z$=ns.length;function G$(e,t,n){let r="",i=!0;for(let a=0;a<z$;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,Of[o]);if(!u){i=!1;const h=U$[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,Of[u]);u.startsWith("origin")?(c=!0,a[u]=h):r[u]=h}}if(t.transform||(o||n?r.transform=G$(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 Y$({transformTemplate:e},t){return I.useMemo(()=>{const n=If();return _f(n,t,e),Object.assign({},n.vars,n.style)},[t])}function H$(e,t){const n=e.style||{},r={};return Uv(r,n,e),Object.assign(r,Y$(e,t)),r}function q$(e,t){const n={},r=H$(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 K$=["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 $f(e){return typeof e!="string"||e.includes("-")?!1:!!(K$.indexOf(e)>-1||/[A-Z]/u.test(e))}const X$={offset:"stroke-dashoffset",array:"stroke-dasharray"},Z$={offset:"strokeDashoffset",array:"strokeDasharray"};function J$(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?X$:Z$;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 Q$(e,t,n){const r=zv(t,e.x,e.width),i=zv(n,e.y,e.height);return`${r} ${i}`}function Df(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=Q$(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&&J$(p,o,c,u,!1)}const Gv=()=>({...If(),attrs:{}}),Rf=e=>typeof e=="string"&&e.toLowerCase()==="svg";function eD(e,t,n,r){const i=I.useMemo(()=>{const a=Gv();return Df(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 tD(e=!1){return(n,r,i,{latestValues:a},o)=>{const u=($f(n)?eD:q$)(r,a,o,n),d=E$(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),nD=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),rD=e=>Lf(e)?e[e.length-1]||0:e;function Ya(e){const t=Et(e)?e.get():e;return nD(t)?t.toValue():t}function iD({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,a){const o={latestValues:sD(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=()=>iD(e,t,r,i);return n?a():bf(a)};function sD(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=Dv(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:T,...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 oD={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"],aD={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(()=>{Df(r,i,Rf(n.tagName),e.transformTemplate),Zv(n,r)})})}})};function lD(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...$f(r)?aD:oD,preloadedFeatures:e,useRender:tD(i),createVisualElement:t,Component:r};return $$(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 cD(){Ha=void 0}const Nn={now:()=>(Ha===void 0&&Nn.set(vt.isProcessing||v$.useManualTiming?vt.timestamp:performance.now()),Ha),set:e=>{Ha=e,queueMicrotask(cD)}},nb=30,uD=e=>!isNaN(parseFloat(e));class fD{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=uD(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 fD(e,t)}function dD(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vo(n))}function hD(e,t){const n=yo(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const c=rD(a[o]);dD(e,o,c)}}function mD(e){return!!(Et(e)&&e.add)}function Wf(e,t){const n=e.getValue("willChange");if(mD(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 pD=Uf(()=>window.ScrollTimeline!==void 0);class gD{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(pD()&&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 yD extends gD{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",vD={linearEasing:void 0};function bD(e,t){const n=Uf(e);return()=>{var r;return(r=vD[t])!==null&&r!==void 0?r:n()}}const qa=bD(()=>{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,xD=1e-7,wD=12;function SD(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)>xD&&++c<wD);return o}function xo(e,t,n,r){if(e===t&&n===r)return Nt;const i=a=>SD(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 TD(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 ED(e){return e==null}const CD=/^(?:#[\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"&&CD.test(n)&&n.startsWith(e)||t&&!ED(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}},PD=e=>Xn(0,255,e),Zf={...rs,transform:e=>Math.round(PD(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 AD(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:AD,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)},MD=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function OD(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(MD))===null||n===void 0?void 0:n.length)||0)>0}const vb="number",bb="color",_D="var",ID="var(",xb="${}",$D=/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($D,u=>(Ct.test(u)?(r.color.push(a),i.push(bb),n.push(Ct.parse(u))):u.startsWith(ID)?(r.var.push(a),i.push(_D),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 DD=e=>typeof e=="number"?0:e;function RD(e){const t=wb(e);return Sb(e)(t.map(DD))}const Ar={test:OD,parse:wb,createTransformer:Sb,getAnimatableNone:RD},ND=new Set(["brightness","contrast","saturate","opacity"]);function LD(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=ND.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const kD=/\b([a-z-]*)\(.*?\)/gu,Qf={...Ar,getAnimatableNone:e=>{const t=e.match(kD);return t?t.map(LD).join(" "):e}},jD={...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=>jD[e];function Eb(e,t){let n=Tb(e);return n!==Qf&&(n=Ar),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const FD=new Set(["auto","none","0"]);function VD(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!FD.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)},BD={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]),WD={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=WD,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=BD,i=c}if(!i)return Mb(t);const a=r[t],o=i[1].split(",").map(zD);return typeof a=="function"?a(o):o[a]}const UD=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return nd(n,t)};function zD(e){return parseFloat(e.trim())}const Ob=e=>e===rs||e===Te,GD=new Set(["x","y","z"]),YD=ns.filter(e=>!GD.has(e));function HD(e){const t=[];return YD.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=HD(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 qD(){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 $b=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),KD=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function XD(e){const t=KD.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const ZD=4;function Db(e,t,n=1){Er(n<=ZD,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=XD(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return $b(o)?parseFloat(o):o}return Mf(i)?Db(i,t,n+1):i}const Rb=e=>t=>t.test(e),Nb=[rs,Te,Rn,Pr,V$,F$,{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(),Mf(d))){const h=Db(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(Ob(o)&&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++)TD(t[i])&&r.push(i);r.length&&VD(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 JD(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 QD(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:JD(e)||(n==="spring"||zf(n))&&r}const e4=e=>e!==null;function Ka(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(e4),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const t4=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>t4?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&qD(),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&&!QD(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 n4({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)},r4=[Jf,ni,ss],i4=e=>r4.find(t=>t.test(e));function Bb(e){const t=i4(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=n4(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))},s4=(e,t)=>n=>t(e(n)),To=(...e)=>e.reduce(s4),cd=new Set(["none","hidden"]);function o4(e,t){return cd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function a4(e,t){return n=>rt(e,t,n)}function ud(e){return typeof e=="number"?a4:typeof e=="string"?Mf(e)?Xa:Ct.test(e)?Wb:u4:Array.isArray(e)?Ub:typeof e=="object"?Ct.test(e)?Wb:l4: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 l4(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 c4(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 u4=(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?o4(e,t):To(Ub(c4(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 f4=5;function Gb(e,t,n){const r=Math.max(t-f4,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 d4({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=m4(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 h4=12;function m4(e,t,n){let r=n;for(let i=1;i<h4;i++)r=r-e(r)/t(r);return r}function fd(e,t){return e*Math.sqrt(1-t*t)}const p4=["duration","bounce"],g4=["stiffness","damping","mass"];function Hb(e,t){return t.some(n=>e[n]!==void 0)}function y4(e){let t={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!Hb(e,g4)&&Hb(e,p4))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=d4(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}=y4({...n,velocity:-Zn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=o-a,w=Zn(Math.sqrt(u/h)),C=Math.abs(T)<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 P=fd(w,b);A=R=>{const k=Math.exp(-b*w*R);return o-k*((S+b*w*T)/P*Math.sin(P*R)+T*Math.cos(P*R))}}else if(b===1)A=P=>o-Math.exp(-w*P)*(T+(S+w*T)*P);else{const P=w*Math.sqrt(b*b-1);A=R=>{const k=Math.exp(-b*w*R),F=Math.min(P*R,300);return o-k*((S+b*w*T)*Math.sinh(F)+P*T*Math.cosh(F))/P}}const $={calculatedDuration:y&&m||null,next:P=>{const R=A(P);if(y)c.done=P>=m;else{let k=0;b<1&&(k=P===0?Ln(S):Gb(A,P,R));const F=Math.abs(k)<=r,z=Math.abs(o-R)<=i;c.done=F&&z}return c.value=c.done?o: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: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 T=m+b,w=o===void 0?T:o(T);w!==T&&(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 P,R;const k=F=>{y(p.value)&&(P=F,R=qb({keyframes:[p.value,S(p.value)],velocity:Gb(A,F,p.value),damping:i,stiffness:a,restDelta:d,restSpeed:h}))};return k(0),{calculatedDuration:null,next:F=>{let z=!1;return!R&&P===void 0&&(z=!0,$(F),k(F)),P!==void 0&&F>=P?R.next(F-P):(!z&&$(F),p)}}}const v4=xo(.42,0,1,1),b4=xo(0,0,.58,1),Xb=xo(.42,0,.58,1),x4=e=>Array.isArray(e)&&typeof e[0]!="number",Zb={linear:Nt,easeIn:v4,easeInOut:Xb,easeOut:b4,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 w4(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 S4(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=w4(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 T4(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 E4(e){const t=[0];return T4(t,e.length-1),t}function C4(e,t){return e.map(n=>n*t)}function P4(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=x4(r)?r.map(Jb):Jb(r),a={done:!1,value:t[0]},o=C4(n&&n.length===t.length?n:E4(t),e),c=S4(o,t,{ease:Array.isArray(i)?i:P4(t,i)});return{calculatedDuration:e,next:u=>(a.value=c(u),a.done=u>=e,a)}}const A4=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>Cr(t),now:()=>vt.isProcessing?vt.timestamp:Nn.now()}},M4={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:M4[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:T}=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 P=C?{done:!1,value:u[0]}:$.next(A);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)),T&&T(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=A4,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 _4=new Set(["opacity","clipPath","filter","transform"]);function I4(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 $4=Uf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Za=10,D4=2e4;function R4(e){return zf(e.type)||e.type==="spring"||!ob(e.ease)}function N4(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 L4(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()&&L4(a)&&(a=Qb[a]),R4(this.options)){const{onComplete:m,onUpdate:p,motionValue:y,element:S,...b}=this.options,T=N4(t,b);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,a=T.ease,o="keyframes"}const h=I4(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 $4()&&r&&_4.has(r)&&(r!=="transform"||!d)&&!u&&!i&&a!=="mirror"&&o!==0&&c!=="inertia"}}const k4={type:"spring",stiffness:500,damping:25,restSpeed:10},j4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),F4={type:"keyframes",duration:.8},V4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},B4=(e,{keyframes:t})=>t.length>2?F4:ti.has(e)?e.startsWith("scale")?j4(t[1]):k4:V4;function W4({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};W4(c)||(h={...h,...B4(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 yD([])}return!a&&e1.supports(h)?new e1(h):new dd(h)};function U4({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&&U4(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 T=p.animation;T&&d.push(T)}return c&&Promise.all(d).then(()=>{He.update(()=>{c&&hD(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 z4(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 z4(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(G4).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 G4(e,t){return e.sortNodePosition(t)}function Y4(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 H4=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<H4;n++){const r=Ef[n],i=e.props[r];(ho(i)||i===!1)&&(t[r]=i)}return t}const q4=[...Tf].reverse(),K4=Tf.length;function X4(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Y4(e,n,r)))}function Z4(e){let t=X4(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 T=0;T<K4;T++){const w=q4[T],C=n[w],A=d[w]!==void 0?d[w]:h[w],$=ho(A),P=w===u?C.isActive:null;P===!1&&(S=T);let R=A===h[w]&&A!==d[w]&&$;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),C.protectedKeys={...y},!C.isActive&&P===null||!A&&!C.prevProp||Ua(A)||typeof A=="boolean")continue;const k=J4(C.prevProp,A);let F=k||w===u&&C.isActive&&!R&&$||T>S&&$,z=!1;const Q=Array.isArray(A)?A:[A];let ee=Q.reduce(i(w),{});P===!1&&(ee={});const{prevResolvedValues:ce={}}=C,ye={...ce,...ee},ue=V=>{F=!0,p.has(V)&&(z=!0,p.delete(V)),C.needsAnimating[V]=!0;const W=e.getValue(V);W&&(W.liveStyle=!1)};for(const V in ye){const W=ee[V],H=ce[V];if(y.hasOwnProperty(V))continue;let O=!1;Lf(W)&&Lf(H)?O=!n1(W,H):O=W!==H,O?W!=null?ue(V):p.add(V):W!==void 0&&p.has(V)?ue(V):C.protectedKeys[V]=!0}C.prevProp=A,C.prevResolvedValues=ee,C.isActive&&(y={...y,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(R&&k)||z)&&m.push(...Q.map(V=>({animation:V,options:{type:w}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const w=yo(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(T.transition=w.transition)}p.forEach(w=>{const C=e.getBaseTarget(w),A=e.getValue(w);A&&(A.liveStyle=!0),T[w]=C??null}),m.push({animation:T})}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 J4(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 Q4 extends Mr{constructor(t){super(t),t.animationState||(t.animationState=Z4(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 e5=0;class t5 extends Mr{constructor(){super(...arguments),this.id=e5++}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 n5={animation:{Feature:Q4},exit:{Feature:t5}},vn={x:!1,y:!1};function s1(){return vn.x||vn.y}function r5(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 i5=e=>t=>pd(t)&&e(t,Po(t));function Ao(e,t,n,r){return Co(e,t,i5(n),r)}function o1({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function s5({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function o5(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,a5=1-a1,l5=1+a1,l1=.01,c5=0-l1,u5=0+l1;function _t(e){return e.max-e.min}function f5(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>=a5&&e.scale<=l5||isNaN(e.scale))&&(e.scale=1),(e.translate>=c5&&e.translate<=u5||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 d5(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 h5(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(o5(e.getBoundingClientRect(),t))}function m5(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 p5(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=p5(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:T,onMove:w}=this.handlers;p||(T&&T(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 T=xd(m.type==="pointercancel"?this.lastMoveEventInfo:bd(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,T),S&&S(m,T)},!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,g5(t)),velocity:y5(t,.1)}}function g5(e){return e[0]}function P1(e){return e[e.length-1]}function y5(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 v5(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 b5(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 x5(e,t){return{x:M1(e.x,t.x),y:M1(e.y,t.y)}}function w5(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 S5(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 T5(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 E5=new WeakMap;class C5{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=r5(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(T=>{let w=this.getAxisMotionValue(T).get()||0;if(Rn.test(w)){const{projection:C}=this.visualElement;if(C&&C.layout){const A=C.layout.layoutBox[T];A&&(w=_t(A)*(parseFloat(w)/100))}}this.originPoint[T]=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:T}=m;if(y&&this.currentDirection===null){this.currentDirection=P5(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),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=v5(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=b5(i.layoutBox,n):this.constraints=!1,this.elastic=T5(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=S5(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=m5(r,i.root,this.visualElement.getTransformPagePoint());let o=x5(i.layout.layoutBox,a);if(n){const c=n(s5(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]=w5({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;E5.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 P5(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class A5 extends Mr{constructor(t){super(t),this.removeGroupControls=Nt,this.removeListeners=Nt,this.controls=new C5(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 M5 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:(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 $1(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=$1(e,t.target.x),r=$1(e,t.target.y);return`${n}% ${r}%`}},O5={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 _5 extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;j$(I5),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 D1(e){const[t,n]=Cv(),r=I.useContext(vf);return v.jsx(_5,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(Lv),isPresent:t,safeToRemove:n})}const I5={borderRadius:{..._o,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_o,borderTopRightRadius:_o,borderBottomLeftRadius:_o,borderBottomRightRadius:_o,boxShadow:O5};function $5(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 R5=(e,t)=>e.depth-t.depth;class N5{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(R5),this.isDirty=!1,this.children.forEach(t)}}function L5(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"],k5=R1.length,N1=e=>typeof e=="string"?parseFloat(e):e,L1=e=>typeof e=="number"||Te.test(e);function j5(e,t,n,r,i,a){i?(e.opacity=rt(0,n.opacity!==void 0?n.opacity:1,F5(r)),e.opacityExit=rt(t.opacity!==void 0?t.opacity:1,0,V5(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<k5;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 F5=j1(0,.5,mb),V5=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 B5(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){B5(e,t[n],t[r],t[i],t.scale,a,o)}const W5=["x","scaleX","originX"],U5=["y","scaleY","originY"];function U1(e,t,n,r){W1(e.x,t,W5,n?n.x:void 0,r?r.x:void 0),W1(e.y,t,U5,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 z5(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 G5{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 Y5(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"],H5={visibility:"hidden"},Z1=1e3;let q5=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=q5++,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(Z5),this.nodes.forEach(n6),this.nodes.forEach(r6),this.nodes.forEach(J5)},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 N5)}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=D5(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=L5(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()||l6,{onLayoutAnimationStart:T,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:T,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(i6),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(e6),this.isUpdating=!1,this.nodes.forEach(t6),this.nodes.forEach(K5),this.nodes.forEach(X5),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(Q5),this.sharedNodes.forEach(s6)}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)),c6(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(u6))){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(),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(),d5(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 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;h5(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(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,T=this.getStack(),w=!T||T.members.length<=1,C=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(a6));this.animationProgress=0;let A;this.mixTargetDelta=$=>{const P=$/1e3;nx(m.x,o.x,P),nx(m.y,o.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),o6(this.relativeTarget,this.relativeTargetOrigin,p,P),A&&z5(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=lt()),sn(A,this.relativeTarget)),b&&(this.animationValues=h,j5(h,d,this.latestValues,P,C,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},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=$5(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),Mo(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(o,c){this.sharedNodes.has(o)||this.sharedNodes.set(o,new G5),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 H5;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=Y5(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:T,applyTo:w,isCSSVariable:C}=mo[b],A=d.transform==="none"?p[b]:T(p[b],m);if(w){const $=w.length;for(let P=0;P<$;P++)d[w[P]]=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 K5(e){e.updateLayout()}function X5(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();Mo(c,r,n.layoutBox);const u=as();o?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 Z5(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 J5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Q5(e){e.clearSnapshot()}function ex(e){e.clearMeasurements()}function e6(e){e.isLayoutDirty=!1}function t6(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 n6(e){e.resolveTargetDelta()}function r6(e){e.calcProjection()}function i6(e){e.resetSkewAndRotation()}function s6(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 o6(e,t,n,r){rx(e.x,t.x,n.x,r),rx(e.y,t.y,n.y,r)}function a6(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const l6={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 c6(e){ox(e.x),ox(e.y)}function ax(e,t,n){return e==="position"||e==="preserve-aspect"&&!f5(K1(t),K1(n),.2)}function u6(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const f6=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 f6({});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"}),d6={pan:{Feature:M5},drag:{Feature:A5,ProjectionNode:lx,MeasureLayout:D1}};function h6(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=h6(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 m6(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 p6 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=m6(t,(n,r)=>(fx(this.node,r,"Start"),i=>fx(this.node,i,"End"))))}unmount(){}}class g6 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,y6=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function v6(e){return y6.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 b6=(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 x6(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=>b6(d,i)),!v6(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 w6 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=x6(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,S6=e=>{const t=Pd.get(e.target);t&&t(e)},T6=e=>{e.forEach(S6)};function E6({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(T6,{root:e,...t})),r[i]}function C6(e,t,n){const r=E6(t);return Pd.set(e,n),r.observe(e),()=>{Pd.delete(e),r.unobserve(e)}}const P6={some:0,all:1};class A6 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:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:P6[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 C6(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(M6(t,n))&&this.startObserver()}unmount(){}}function M6({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const O6={inView:{Feature:A6},tap:{Feature:w6},focus:{Feature:g6},hover:{Feature:p6}},_6={layout:{ProjectionNode:lx,MeasureLayout:D1}},Md={current:null},gx={current:!1};function I6(){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 $6=[...Nb,Ct,Ar],D6=e=>$6.find(Rb(e)),R6=new WeakMap;function N6(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 L6{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=Dv(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,R6.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||I6(),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)}),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=N6(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"&&($b(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 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 L6{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 k6(e){return window.getComputedStyle(e)}class j6 extends vx{constructor(){super(...arguments),this.type="html",this.renderInstance=Kv}readValueFromInstance(t,n){if(ti.has(n))return UD(t,n);{const r=k6(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 F6 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){Df(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 V6=(e,t)=>$f(e)?new F6(t):new j6(t,{allowProjection:e!==I.Fragment}),B6=lD({...n5,...O6,...d6,..._6},V6),Ze=C$(B6),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:a,showCloseButton:o=!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=()=>{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: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}),o&&v.jsx($e,{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: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 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),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?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),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 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"],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 oR(e,t,n,r){const i=hs(e);let a=sR(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=>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 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 lR=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:T,fn:w}=c[b],{x:C,y:A,data:D,reset:P}=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,[T]:{...y[T],...D}},P&&S<=50&&(S++,typeof P=="object"&&(P.placement&&(p=P.placement),P.rects&&(d=P.rects===!0?await o.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: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=Ox(y),T=c[p?m==="floating"?"reference":"floating":m],w=ll(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(T)))==null||n?T:T.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)),D=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},P=ll(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:C,offsetParent:A,strategy:u}):C);return{top:(w.top-P.top+S.top)/D.y,bottom:(P.bottom-w.bottom+S.bottom)/D.y,left:(w.left-P.left+S.left)/D.x,right:(P.right-w.right+S.right)/D.x}}const cR=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=Ox(h),p={x:n,y:r},y=Ld(i),S=Nd(y),b=await o.getDimensions(d),T=y==="y",w=T?"top":"left",C=T?"bottom":"right",A=T?"clientHeight":"clientWidth",D=a.reference[S]+a.reference[y]-p[y]-a.floating[S],P=p[y]-a.reference[y],R=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d));let k=R?R[A]:0;(!k||!await(o.isElement==null?void 0:o.isElement(R)))&&(k=c.floating[A]||a.floating[S]);const F=D/2-P/2,z=k/2-b[S]/2-1,Q=_r(m[w],z),ee=_r(m[C],z),ce=Q,ye=k-b[S]-ee,ue=k/2-b[S]/2+F,te=Rd(ce,ue,ye),oe=!u.arrow&&hs(i)!=null&&ue!==te&&a.reference[S]/2-(ue<ce?Q:ee)-b[S]/2<0,V=oe?ue<ce?ue-ce:ue-ye:0;return{[y]:p[y]+V,data:{[y]:te,centerOffset:ue-te-V,...oe&&{alignmentOffset:V}},reset:oe}}}),uR=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,...T}=ds(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const w=Ir(i),C=li(c),A=Ir(c)===c,D=await(u.isRTL==null?void 0:u.isRTL(d.floating)),P=p||(A||!b?[al(c)]:iR(c)),R=S!=="none";!p&&R&&P.push(...oR(c,b,S,D));const k=[c,...P],F=await jd(t,T),z=[];let Q=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&z.push(F[w]),m){const ue=rR(i,o,D);z.push(F[ue[0]],F[ue[1]])}if(Q=[...Q,{placement:i,overflows:z}],!z.every(ue=>ue<=0)){var ee,ce;const ue=(((ee=a.flip)==null?void 0:ee.index)||0)+1,te=k[ue];if(te)return{data:{index:ue,overflows:Q},reset:{placement:te}};let oe=(ce=Q.filter(V=>V.overflows[0]<=0).sort((V,W)=>V.overflows[1]-W.overflows[1])[0])==null?void 0:ce.placement;if(!oe)switch(y){case"bestFit":{var ye;const V=(ye=Q.filter(W=>{if(R){const H=li(W.placement);return H===C||H==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(H=>H>0).reduce((H,O)=>H+O,0)]).sort((W,H)=>W[1]-H[1])[0])==null?void 0:ye[0];V&&(oe=V);break}case"initialPlacement":oe=c;break}if(i!==oe)return{reset:{placement:oe}}}return{}}}};async function fR(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 dR=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 fR(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}}}}},hR=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:T=>{let{x:w,y:C}=T;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(a){const T=p==="y"?"top":"left",w=p==="y"?"bottom":"right",C=y+h[T],A=y-h[w];y=Rd(C,y,A)}if(o){const T=m==="y"?"top":"left",w=m==="y"?"bottom":"right",C=S+h[T],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}}}}}},mR=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 T,w;m==="top"||m==="bottom"?(T=m,w=p===(await(o.isRTL==null?void 0:o.isRTL(c.floating))?"start":"end")?"left":"right"):(w=m,T=p==="end"?"top":"bottom");const C=b-h.top-h.bottom,A=S-h.left-h.right,D=_r(b-h[T],C),P=_r(S-h[w],A),R=!t.middlewareData.shift;let k=D,F=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=A),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=C),R&&!p){const Q=Yt(h.left,0),ee=Yt(h.right,0),ce=Yt(h.top,0),ye=Yt(h.bottom,0);y?F=S-2*(Q!==0||ee!==0?Q+ee:Yt(h.left,h.right)):k=b-2*(ce!==0||ye!==0?ce+ye:Yt(h.top,h.bottom))}await u({...t,availableWidth:F,availableHeight:k});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 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(),a=Fd(e);let o=jn(1);t&&(r?qe(r)&&(o=ms(r)):o=ms(e));const c=gR(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 T=ms(b),w=b.getBoundingClientRect(),C=on(b),A=w.left+(b.clientLeft+parseFloat(C.paddingLeft))*T.x,D=w.top+(b.clientTop+parseFloat(C.paddingTop))*T.y;u*=T.x,d*=T.y,h*=T.x,m*=T.y,u+=A,d+=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 yR(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 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),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 xR(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 wR(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=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 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 TR(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?nl(t)?[]:SR(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 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),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&&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 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)),T=ol(i.clientHeight-(m+y)),w=ol(h),A={rootMargin:-S+"px "+-b+"px "+-T+"px "+-w+"px",threshold:Yt(0,_r(1,u))||1};let D=!0;function P(R){const k=R[0].intersectionRatio;if(k!==u){if(!D)return o();k?o(!1,k):r=setTimeout(()=>{o(!1,1e-7)},1e3)}k===1&&!jx(d,e.getBoundingClientRect())&&o(),D=!1}try{n=new IntersectionObserver(P,{...A,root:i.ownerDocument})}catch{n=new IntersectionObserver(P,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?Or(d):[],...Or(t)]:[];h.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),a&&w.addEventListener("resize",n)});const m=d&&c?OR(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&&T();function T(){const w=ci(e);b&&!jx(b,w)&&n(),b=w,S=requestAnimationFrame(T)}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 _R=dR,IR=hR,DR=uR,$R=mR,Fx=cR,RR=(e,t,n)=>{const r=new Map,i={platform:MR,...n},a={...i.platform,_c:r};return lR(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=Z.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:a,floating:o}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[h,m]=Z.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,y]=Z.useState(r);ul(p,r)||y(r);const[S,b]=Z.useState(null),[T,w]=Z.useState(null),C=Z.useCallback(W=>{W!==R.current&&(R.current=W,b(W))},[]),A=Z.useCallback(W=>{W!==k.current&&(k.current=W,w(W))},[]),D=a||S,P=o||T,R=Z.useRef(null),k=Z.useRef(null),F=Z.useRef(h),z=u!=null,Q=Wd(u),ee=Wd(i),ce=Wd(d),ye=Z.useCallback(()=>{if(!R.current||!k.current)return;const W={placement:t,strategy:n,middleware:p};ee.current&&(W.platform=ee.current),RR(R.current,k.current,W).then(H=>{const O={...H,isPositioned:ce.current!==!1};ue.current&&!ul(F.current,O)&&(F.current=O,mT.flushSync(()=>{m(O)}))})},[p,t,n,ee,ce]);cl(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,m(W=>({...W,isPositioned:!1})))},[d]);const ue=Z.useRef(!1);cl(()=>(ue.current=!0,()=>{ue.current=!1}),[]),cl(()=>{if(D&&(R.current=D),P&&(k.current=P),D&&P){if(Q.current)return Q.current(D,P,ye);ye()}},[D,P,ye,Q,z]);const te=Z.useMemo(()=>({reference:R,floating:k,setReference:C,setFloating:A}),[C,A]),oe=Z.useMemo(()=>({reference:D,floating:P}),[D,P]),V=Z.useMemo(()=>{const W={position:n,left:0,top:0};if(!oe.floating)return W;const H=Bx(oe.floating,h.x),O=Bx(oe.floating,h.y);return c?{...W,transform:"translate("+H+"px, "+O+"px)",...Vx(oe.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:O}},[n,c,oe.floating,h.x,h.y]);return Z.useMemo(()=>({...h,update:ye,refs:te,elements:oe,floatingStyles:V}),[h,ye,te,oe,V])}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={...Z},kR=Wx.useInsertionEffect||(e=>e());function er(e){const t=Z.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return kR(()=>{t.current=e}),Z.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]=Z.useState(()=>Ux?zx():void 0);return Dr(()=>{e==null&&t(zx())},[]),Z.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 a;(a=Ud)==null||a.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=Z.createContext(null),UR=Z.createContext(null),zd=()=>{var e;return((e=Z.useContext(WR))==null?void 0:e.id)||null},Gd=()=>Z.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: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),T=mi(u),w=mi(n),C=Z.useRef(),A=Z.useRef(-1),D=Z.useRef(),P=Z.useRef(-1),R=Z.useRef(!0),k=Z.useRef(!1),F=Z.useRef(()=>{}),z=Z.useRef(!1),Q=Z.useCallback(()=>{var V;const W=(V=i.current.openEvent)==null?void 0:V.type;return(W==null?void 0:W.includes("mouse"))&&W!=="mousedown"},[i]);Z.useEffect(()=>{if(!c)return;function V(W){let{open:H}=W;H||(an(A),an(P),R.current=!0,z.current=!1)}return a.on("openchange",V),()=>{a.off("openchange",V)}},[c,a]),Z.useEffect(()=>{if(!c||!b.current||!n)return;function V(H){Q()&&r(!1,H,"hover")}const W=ai(o.floating).documentElement;return W.addEventListener("mouseleave",V),()=>{W.removeEventListener("mouseleave",V)}},[o.floating,n,r,c,b,Q]);const ee=Z.useCallback(function(V,W,H){W===void 0&&(W=!0),H===void 0&&(H="hover");const O=Hd(T.current,"close",C.current);O&&!D.current?(an(A),A.current=window.setTimeout(()=>r(!1,V,H),O)):W&&(an(A),r(!1,V,H))},[T,r]),ce=er(()=>{F.current(),D.current=void 0}),ye=er(()=>{if(k.current){const V=ai(o.floating).body;V.style.pointerEvents="",V.removeAttribute(Yx),k.current=!1}}),ue=er(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);Z.useEffect(()=>{if(!c)return;function V(N){if(an(A),R.current=!1,h&&!Ro(C.current)||m>0&&!Hd(T.current,"open"))return;const X=Hd(T.current,"open",C.current);X?A.current=window.setTimeout(()=>{w.current||r(!0,N,"hover")},X):n||r(!0,N,"hover")}function W(N){if(ue())return;F.current();const X=ai(o.floating);if(an(P),z.current=!1,b.current&&i.current.floatingContext){n||an(A),D.current=b.current({...i.current.floatingContext,tree:y,x:N.clientX,y:N.clientY,onClose(){ye(),ce(),ue()||ee(N,!0,"safe-polygon")}});const ae=D.current;X.addEventListener("mousemove",ae),F.current=()=>{X.removeEventListener("mousemove",ae)};return}(C.current==="touch"?!$o(o.floating,N.relatedTarget):!0)&&ee(N)}function H(N){ue()||i.current.floatingContext&&(b.current==null||b.current({...i.current.floatingContext,tree:y,x:N.clientX,y:N.clientY,onClose(){ye(),ce(),ue()||ee(N)}})(N))}if(qe(o.domReference)){var O;const N=o.domReference;return n&&N.addEventListener("mouseleave",H),(O=o.floating)==null||O.addEventListener("mouseleave",H),p&&N.addEventListener("mousemove",V,{once:!0}),N.addEventListener("mouseenter",V),N.addEventListener("mouseleave",W),()=>{var X;n&&N.removeEventListener("mouseleave",H),(X=o.floating)==null||X.removeEventListener("mouseleave",H),p&&N.removeEventListener("mousemove",V),N.removeEventListener("mouseenter",V),N.removeEventListener("mouseleave",W)}}},[o,c,e,h,m,p,ee,ce,ye,r,n,w,y,T,b,i,ue]),Dr(()=>{var V;if(c&&n&&(V=b.current)!=null&&V.__options.blockPointerEvents&&Q()){k.current=!0;const H=o.floating;if(qe(o.domReference)&&H){var W;const O=ai(o.floating).body;O.setAttribute(Yx,"");const N=o.domReference,X=y==null||(W=y.nodesRef.current.find(ne=>ne.id===S))==null||(W=W.context)==null?void 0:W.elements.floating;return X&&(X.style.pointerEvents=""),O.style.pointerEvents="none",N.style.pointerEvents="auto",H.style.pointerEvents="auto",()=>{O.style.pointerEvents="",N.style.pointerEvents="",H.style.pointerEvents=""}}}},[c,n,S,o,y,b,Q]),Dr(()=>{n||(C.current=void 0,z.current=!1,ce(),ye())},[n,ce,ye]),Z.useEffect(()=>()=>{ce(),an(A),an(P),ye()},[c,o.domReference,ce,ye]);const te=Z.useMemo(()=>{function V(W){C.current=W.pointerType}return{onPointerDown:V,onPointerEnter:V,onMouseMove(W){const{nativeEvent:H}=W;function O(){!R.current&&!w.current&&r(!0,H,"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]),oe=Z.useMemo(()=>({onMouseEnter(){an(A)},onMouseLeave(V){ue()||ee(V.nativeEvent,!1)}}),[ee,ue]);return Z.useMemo(()=>c?{reference:te,floating:oe}:{},[c,te,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 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:a}}=e,{enabled:o=!0,event:c="click",toggle:u=!0,ignoreMouse:d=!1,keyboardHandlers:h=!0,stickIfOpen:m=!0}=t,p=Z.useRef(),y=Z.useRef(!1),S=Z.useMemo(()=>({onPointerDown(b){p.current=b.pointerType},onMouseDown(b){const T=p.current;b.button===0&&c!=="click"&&(Ro(T,!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 T=p.current;if(c==="mousedown"&&p.current){p.current=void 0;return}Ro(T,!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 Z.useMemo(()=>o?{reference:S}:{},[o,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: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(),T=er(typeof u=="function"?u:()=>!1),w=typeof u=="function"?T:u,C=Z.useRef(!1),A=Z.useRef(!1),{escapeKey:D,outsidePress:P}=Kx(y),{escapeKey:R,outsidePress:k}=Kx(S),F=Z.useRef(!1),z=er(te=>{var oe;if(!n||!o||!c||te.key!=="Escape"||F.current)return;const V=(oe=a.current.floatingContext)==null?void 0:oe.nodeId,W=b?qd(b.nodesRef.current,V):[];if(!D&&(te.stopPropagation(),W.length>0)){let H=!0;if(W.forEach(O=>{var N;if((N=O.context)!=null&&N.open&&!O.context.dataRef.current.__escapeKeyBubbles){H=!1;return}}),!H)return}r(!1,J6(te)?te.nativeEvent:te,"escape-key")}),Q=er(te=>{var oe;const V=()=>{var W;z(te),(W=fs(te))==null||W.removeEventListener("keydown",V)};(oe=fs(te))==null||oe.addEventListener("keydown",V)}),ee=er(te=>{var oe;const V=C.current;C.current=!1;const W=A.current;if(A.current=!1,d==="click"&&W||V||typeof w=="function"&&!w(te))return;const H=fs(te),O="["+Yd("inert")+"]",N=ai(i.floating).querySelectorAll(O);let X=qe(H)?H:null;for(;X&&!Jn(X);){const re=Qn(X);if(Jn(re)||!qe(re))break;X=re}if(N.length&&qe(H)&&!Q6(H)&&!$o(H,i.floating)&&Array.from(N).every(re=>!$o(X,re)))return;if(kt(H)&&ue){const re=Jn(H),he=on(H),fe=/auto|scroll/,ve=re||fe.test(he.overflowX),xe=re||fe.test(he.overflowY),Le=ve&&H.clientWidth>0&&H.scrollWidth>H.clientWidth,ie=xe&&H.clientHeight>0&&H.scrollHeight>H.clientHeight,pe=he.direction==="rtl",ke=ie&&(pe?te.offsetX<=H.offsetWidth-H.clientWidth:te.offsetX>H.clientWidth),ft=Le&&te.offsetY>H.clientHeight;if(ke||ft)return}const ne=(oe=a.current.floatingContext)==null?void 0:oe.nodeId,ae=b&&qd(b.nodesRef.current,ne).some(re=>{var he;return $d(te,(he=re.context)==null?void 0:he.elements.floating)});if($d(te,i.floating)||$d(te,i.domReference)||ae)return;const G=b?qd(b.nodesRef.current,ne):[];if(G.length>0){let re=!0;if(G.forEach(he=>{var fe;if((fe=he.context)!=null&&fe.open&&!he.context.dataRef.current.__outsidePressBubbles){re=!1;return}}),!re)return}r(!1,te,"outside-press")}),ce=er(te=>{var oe;const V=()=>{var W;ee(te),(W=fs(te))==null||W.removeEventListener(d,V)};(oe=fs(te))==null||oe.addEventListener(d,V)});Z.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=D,a.current.__outsidePressBubbles=P;let te=-1;function oe(N){r(!1,N,"ancestor-scroll")}function V(){window.clearTimeout(te),F.current=!0}function W(){te=window.setTimeout(()=>{F.current=!1},rl()?5:0)}const H=ai(i.floating);c&&(H.addEventListener("keydown",R?Q:z,R),H.addEventListener("compositionstart",V),H.addEventListener("compositionend",W)),w&&H.addEventListener(d,k?ce:ee,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(N=>{var X;return N!==((X=H.defaultView)==null?void 0:X.visualViewport)}),O.forEach(N=>{N.addEventListener("scroll",oe,{passive:!0})}),()=>{c&&(H.removeEventListener("keydown",R?Q:z,R),H.removeEventListener("compositionstart",V),H.removeEventListener("compositionend",W)),w&&H.removeEventListener(d,k?ce:ee,k),O.forEach(N=>{N.removeEventListener("scroll",oe)}),window.clearTimeout(te)}},[a,i,c,w,d,n,r,p,o,D,P,z,R,Q,ee,k,ce]),Z.useEffect(()=>{C.current=!1},[w,d]);const ye=Z.useMemo(()=>({onKeyDown:z,...h&&{[YR[m]]:te=>{r(!1,te.nativeEvent,"reference-press")},...m!=="click"&&{onClick(te){r(!1,te.nativeEvent,"reference-press")}}}}),[z,r,h,m]),ue=Z.useMemo(()=>({onKeyDown:z,onMouseDown(){A.current=!0},onMouseUp(){A.current=!0},[HR[d]]:()=>{C.current=!0}}),[z,d]);return Z.useMemo(()=>o?{reference:ye,floating:ue}:{},[o,ye,ue])}function qR(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Gx(),a=Z.useRef({}),[o]=Z.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]=Z.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=Z.useMemo(()=>({setPositionReference:d}),[]),p=Z.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return Z.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=qR({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,o]=Z.useState(null),[c,u]=Z.useState(null),h=(i==null?void 0:i.domReference)||a,m=Z.useRef(null),p=Gd();Dr(()=>{h&&(m.current=h)},[h]);const y=NR({...e,elements:{...i,...c&&{reference:c}}}),S=Z.useCallback(A=>{const D=qe(A)?{getBoundingClientRect:()=>A.getBoundingClientRect(),contextElement:A}:A;u(D),y.refs.setReference(D)},[y.refs]),b=Z.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]),T=Z.useMemo(()=>({...y.refs,setReference:b,setPositionReference:S,domReference:m}),[y.refs,b,S]),w=Z.useMemo(()=>({...y.elements,domReference:h}),[y.elements,h]),C=Z.useMemo(()=>({...y,...r,refs:T,elements:w,nodeId:t}),[y,T,w,t,r]);return Dr(()=>{r.dataRef.current.floatingContext=C;const A=p==null?void 0:p.nodesRef.current.find(D=>D.id===t);A&&(A.context=C)}),Z.useMemo(()=>({...y,context:C,refs:T,elements:w}),[y,T,w,C])}function KR(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=Z.useRef(!1),h=Z.useRef(-1),m=Z.useRef(!0);Z.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]),Z.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]),Z.useEffect(()=>()=>{an(h)},[]);const p=Z.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,T=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)||T||r(!1,b,"focus")})}}),[a,o.domReference,r,u]);return Z.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,[GR]:""},...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(T=>T(...S)).find(T=>T!==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=Z.useCallback(c=>Kd(c,e,"reference"),t),a=Z.useCallback(c=>Kd(c,e,"floating"),n),o=Z.useCallback(c=>Kd(c,e,"item"),r);return Z.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}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:a=!0,role:o="dialog"}=t,c=(n=XR.get(o))!=null?n:o,u=Gx(),h=zd()!=null,m=Z.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=Z.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=Z.useCallback(S=>{let{active:b,selected:T}=S;const w={role:"option",...b&&{id:i+"-option"}};switch(o){case"select":return{...w,"aria-selected":b&&T};case"combobox":return{...w,...b&&{"aria-selected":!0}}}return{}},[i,o]);return Z.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 JR(e,t){const[n,r]=Z.useState(e);return e&&!n&&r(!0),Z.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,o=(typeof i=="number"?i:i.close)||0,[c,u]=Z.useState("unmounted"),d=JR(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=Z.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]=Z.useState(()=>({...ys(a,d),...ys(n,d)})),{isMounted:b,status:T}=QR(e,{duration:o}),w=mi(n),C=mi(r),A=mi(i),D=mi(a);return Dr(()=>{const P=ys(w.current,d),R=ys(A.current,d),k=ys(D.current,d),F=ys(C.current,d)||Object.keys(P).reduce((z,Q)=>(z[Q]="",z),{});if(T==="initial"&&S(z=>({transitionProperty:z.transitionProperty,...k,...P})),T==="open"&&S({transitionProperty:Object.keys(F).map(Jx).join(","),transitionDuration:m+"ms",...k,...F}),T==="close"){const z=R||P;S({transitionProperty:Object.keys(z).map(Jx).join(","),transitionDuration:p+"ms",...k,...z})}},[p,A,w,C,D,m,T,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:T}=gi({strategy:o,open:d,onOpenChange:k=>{k||m()},middleware:[fi(c),hi(),di({padding:u})],whileElementsMounted:ui,placement:i}),w=gs(T),C=pi(T),{getReferenceProps:A,getFloatingProps:D}=yi([w,C]),{isMounted:P,styles:R}=vs(T,{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}),P&&v.jsx("div",{ref:b.setFloating,style:{position:S,top:y??0,left:p??0,...R,zIndex:9999},...D(),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 W6={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"]},U6={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"]},z6={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"]},G6={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"]},Y6={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 $o(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 H6(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 q6(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)&&$o(t)?t:Sx(t)}function Or(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=$d(o);return t.concat(o,o.visualViewport||[],$o(i)?i:[],c&&n?Or(c):[])}return t.concat(i,Or(i,[],n))}function $d(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 Do(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 K6(e){return J6()?!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 X6(){return/apple/i.test(navigator.vendor)}function Px(){const e=/android/i;return e.test(Ex())||e.test(Cx())}function Z6(){return Ex().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function J6(){return Cx().includes("jsdom/")}function Ro(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Q6(e){return"nativeEvent"in e}function eR(e){return e.matches("html,body")}function ai(e){return(e==null?void 0:e.ownerDocument)||document}function Dd(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 tR="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Ax(e){return kt(e)&&e.matches(tR)}const _r=Math.min,Yt=Math.max,sl=Math.round,ol=Math.floor,jn=e=>({x:e,y:e}),nR={left:"right",right:"left",bottom:"top",top:"bottom"},rR={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 iR(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 sR(e){const t=al(e);return[kd(e),t,kd(t)]}function kd(e){return e.replace(/start|end/g,t=>rR[t])}function oR(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 aR(e,t,n,r){const i=hs(e);let a=oR(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=>nR[t])}function lR(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ox(e){return typeof e!="number"?lR(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 cR=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:T,fn:w}=c[b],{x:C,y:A,data:$,reset:P}=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,[T]:{...y[T],...$}},P&&S<=50&&(S++,typeof P=="object"&&(P.placement&&(p=P.placement),P.rects&&(d=P.rects===!0?await o.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: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=Ox(y),T=c[p?m==="floating"?"reference":"floating":m],w=ll(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(T)))==null||n?T:T.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},P=ll(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:C,offsetParent:A,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 uR=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=Ox(h),p={x:n,y:r},y=Ld(i),S=Nd(y),b=await o.getDimensions(d),T=y==="y",w=T?"top":"left",C=T?"bottom":"right",A=T?"clientHeight":"clientWidth",$=a.reference[S]+a.reference[y]-p[y]-a.floating[S],P=p[y]-a.reference[y],R=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d));let k=R?R[A]:0;(!k||!await(o.isElement==null?void 0:o.isElement(R)))&&(k=c.floating[A]||a.floating[S]);const F=$/2-P/2,z=k/2-b[S]/2-1,Q=_r(m[w],z),ee=_r(m[C],z),ce=Q,ye=k-b[S]-ee,ue=k/2-b[S]/2+F,te=Rd(ce,ue,ye),oe=!u.arrow&&hs(i)!=null&&ue!==te&&a.reference[S]/2-(ue<ce?Q:ee)-b[S]/2<0,V=oe?ue<ce?ue-ce:ue-ye:0;return{[y]:p[y]+V,data:{[y]:te,centerOffset:ue-te-V,...oe&&{alignmentOffset:V}},reset:oe}}}),fR=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,...T}=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)),P=p||(A||!b?[al(c)]:sR(c)),R=S!=="none";!p&&R&&P.push(...aR(c,b,S,$));const k=[c,...P],F=await jd(t,T),z=[];let Q=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&z.push(F[w]),m){const ue=iR(i,o,$);z.push(F[ue[0]],F[ue[1]])}if(Q=[...Q,{placement:i,overflows:z}],!z.every(ue=>ue<=0)){var ee,ce;const ue=(((ee=a.flip)==null?void 0:ee.index)||0)+1,te=k[ue];if(te)return{data:{index:ue,overflows:Q},reset:{placement:te}};let oe=(ce=Q.filter(V=>V.overflows[0]<=0).sort((V,W)=>V.overflows[1]-W.overflows[1])[0])==null?void 0:ce.placement;if(!oe)switch(y){case"bestFit":{var ye;const V=(ye=Q.filter(W=>{if(R){const H=li(W.placement);return H===C||H==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(H=>H>0).reduce((H,O)=>H+O,0)]).sort((W,H)=>W[1]-H[1])[0])==null?void 0:ye[0];V&&(oe=V);break}case"initialPlacement":oe=c;break}if(i!==oe)return{reset:{placement:oe}}}return{}}}};async function dR(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 hR=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 dR(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}}}}},mR=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:T=>{let{x:w,y:C}=T;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(a){const T=p==="y"?"top":"left",w=p==="y"?"bottom":"right",C=y+h[T],A=y-h[w];y=Rd(C,y,A)}if(o){const T=m==="y"?"top":"left",w=m==="y"?"bottom":"right",C=S+h[T],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}}}}}},pR=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 T,w;m==="top"||m==="bottom"?(T=m,w=p===(await(o.isRTL==null?void 0:o.isRTL(c.floating))?"start":"end")?"left":"right"):(w=m,T=p==="end"?"top":"bottom");const C=b-h.top-h.bottom,A=S-h.left-h.right,$=_r(b-h[T],C),P=_r(S-h[w],A),R=!t.middlewareData.shift;let k=$,F=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=A),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=C),R&&!p){const Q=Yt(h.left,0),ee=Yt(h.right,0),ce=Yt(h.top,0),ye=Yt(h.bottom,0);y?F=S-2*(Q!==0||ee!==0?Q+ee:Yt(h.left,h.right)):k=b-2*(ce!==0||ye!==0?ce+ye:Yt(h.top,h.bottom))}await u({...t,availableWidth:F,availableHeight:k});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 gR=jn(0);function $x(e){const t=Lt(e);return!rl()||!t.visualViewport?gR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yR(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=yR(a,n,r)?$x(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=$d(S);for(;b&&r&&y!==S;){const T=ms(b),w=b.getBoundingClientRect(),C=on(b),A=w.left+(b.clientLeft+parseFloat(C.paddingLeft))*T.x,$=w.top+(b.clientTop+parseFloat(C.paddingTop))*T.y;u*=T.x,d*=T.y,h*=T.x,m*=T.y,u+=A,d+=$,S=Lt(b),b=$d(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 Dx(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 vR(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"||$o(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?Dx(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 bR(e){return Array.from(e.getClientRects())}function xR(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 wR(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 SR(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=wR(e,n);else if(t==="document")r=xR(kn(e));else if(qe(t))r=SR(t,n);else{const i=$x(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 TR(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 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)||$o(o)&&!u&&Nx(e,o))?r=r.filter(h=>h!==o):i=c,o=Qn(o)}return t.set(e,r),r}function ER(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?nl(t)?[]:TR(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 CR(e){const{width:t,height:n}=Ix(e);return{width:t,height:n}}function PR(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"||$o(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?Dx(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&&H6(r)&&Bd(r);)r=Lx(r,t);return r&&Jn(r)&&Bd(r)&&!Id(r)?n:r||q6(e)||n}const AR=async function(e){const t=this.getOffsetParent||kx,n=this.getDimensions,r=await n(e.floating);return{reference:PR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function MR(e){return on(e).direction==="rtl"}const OR={convertOffsetParentRelativeRectToViewportRelativeRect:vR,getDocumentElement:kn,getClippingRect:ER,getOffsetParent:kx,getElementRects:AR,getClientRects:bR,getDimensions:CR,getScale:ms,isElement:qe,isRTL:MR};function jx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _R(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)),T=ol(i.clientHeight-(m+y)),w=ol(h),A={rootMargin:-S+"px "+-b+"px "+-T+"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 o();k?o(!1,k):r=setTimeout(()=>{o(!1,1e-7)},1e3)}k===1&&!jx(d,e.getBoundingClientRect())&&o(),$=!1}try{n=new IntersectionObserver(P,{...A,root:i.ownerDocument})}catch{n=new IntersectionObserver(P,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?Or(d):[],...Or(t)]:[];h.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),a&&w.addEventListener("resize",n)});const m=d&&c?_R(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&&T();function T(){const w=ci(e);b&&!jx(b,w)&&n(),b=w,S=requestAnimationFrame(T)}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 IR=hR,$R=mR,DR=fR,RR=pR,Fx=uR,NR=(e,t,n)=>{const r=new Map,i={platform:OR,...n},a={...i.platform,_c:r};return cR(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=Z.useRef(e);return cl(()=>{t.current=e}),t}function LR(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]=Z.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,y]=Z.useState(r);ul(p,r)||y(r);const[S,b]=Z.useState(null),[T,w]=Z.useState(null),C=Z.useCallback(W=>{W!==R.current&&(R.current=W,b(W))},[]),A=Z.useCallback(W=>{W!==k.current&&(k.current=W,w(W))},[]),$=a||S,P=o||T,R=Z.useRef(null),k=Z.useRef(null),F=Z.useRef(h),z=u!=null,Q=Wd(u),ee=Wd(i),ce=Wd(d),ye=Z.useCallback(()=>{if(!R.current||!k.current)return;const W={placement:t,strategy:n,middleware:p};ee.current&&(W.platform=ee.current),NR(R.current,k.current,W).then(H=>{const O={...H,isPositioned:ce.current!==!1};ue.current&&!ul(F.current,O)&&(F.current=O,pT.flushSync(()=>{m(O)}))})},[p,t,n,ee,ce]);cl(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,m(W=>({...W,isPositioned:!1})))},[d]);const ue=Z.useRef(!1);cl(()=>(ue.current=!0,()=>{ue.current=!1}),[]),cl(()=>{if($&&(R.current=$),P&&(k.current=P),$&&P){if(Q.current)return Q.current($,P,ye);ye()}},[$,P,ye,Q,z]);const te=Z.useMemo(()=>({reference:R,floating:k,setReference:C,setFloating:A}),[C,A]),oe=Z.useMemo(()=>({reference:$,floating:P}),[$,P]),V=Z.useMemo(()=>{const W={position:n,left:0,top:0};if(!oe.floating)return W;const H=Bx(oe.floating,h.x),O=Bx(oe.floating,h.y);return c?{...W,transform:"translate("+H+"px, "+O+"px)",...Vx(oe.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:O}},[n,c,oe.floating,h.x,h.y]);return Z.useMemo(()=>({...h,update:ye,refs:te,elements:oe,floatingStyles:V}),[h,ye,te,oe,V])}const kR=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)=>({...IR(e),options:[e,t]}),di=(e,t)=>({...$R(e),options:[e,t]}),hi=(e,t)=>({...DR(e),options:[e,t]}),No=(e,t)=>({...RR(e),options:[e,t]}),ps=(e,t)=>({...kR(e),options:[e,t]}),Wx={...Z},jR=Wx.useInsertionEffect||(e=>e());function er(e){const t=Z.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return jR(()=>{t.current=e}),Z.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 $r=typeof document<"u"?I.useLayoutEffect:I.useEffect;let Ux=!1,FR=0;const zx=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+FR++;function VR(){const[e,t]=Z.useState(()=>Ux?zx():void 0);return $r(()=>{e==null&&t(zx())},[]),Z.useEffect(()=>{Ux=!0},[]),e}const Gx=Wx.useId||VR;let Ud;process.env.NODE_ENV!=="production"&&(Ud=new Set);function BR(){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 WR(){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 UR=Z.createContext(null),zR=Z.createContext(null),zd=()=>{var e;return((e=Z.useContext(UR))==null?void 0:e.id)||null},Gd=()=>Z.useContext(zR);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 $r(()=>{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 GR(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),T=mi(u),w=mi(n),C=Z.useRef(),A=Z.useRef(-1),$=Z.useRef(),P=Z.useRef(-1),R=Z.useRef(!0),k=Z.useRef(!1),F=Z.useRef(()=>{}),z=Z.useRef(!1),Q=Z.useCallback(()=>{var V;const W=(V=i.current.openEvent)==null?void 0:V.type;return(W==null?void 0:W.includes("mouse"))&&W!=="mousedown"},[i]);Z.useEffect(()=>{if(!c)return;function V(W){let{open:H}=W;H||(an(A),an(P),R.current=!0,z.current=!1)}return a.on("openchange",V),()=>{a.off("openchange",V)}},[c,a]),Z.useEffect(()=>{if(!c||!b.current||!n)return;function V(H){Q()&&r(!1,H,"hover")}const W=ai(o.floating).documentElement;return W.addEventListener("mouseleave",V),()=>{W.removeEventListener("mouseleave",V)}},[o.floating,n,r,c,b,Q]);const ee=Z.useCallback(function(V,W,H){W===void 0&&(W=!0),H===void 0&&(H="hover");const O=Hd(T.current,"close",C.current);O&&!$.current?(an(A),A.current=window.setTimeout(()=>r(!1,V,H),O)):W&&(an(A),r(!1,V,H))},[T,r]),ce=er(()=>{F.current(),$.current=void 0}),ye=er(()=>{if(k.current){const V=ai(o.floating).body;V.style.pointerEvents="",V.removeAttribute(Yx),k.current=!1}}),ue=er(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);Z.useEffect(()=>{if(!c)return;function V(N){if(an(A),R.current=!1,h&&!Ro(C.current)||m>0&&!Hd(T.current,"open"))return;const X=Hd(T.current,"open",C.current);X?A.current=window.setTimeout(()=>{w.current||r(!0,N,"hover")},X):n||r(!0,N,"hover")}function W(N){if(ue())return;F.current();const X=ai(o.floating);if(an(P),z.current=!1,b.current&&i.current.floatingContext){n||an(A),$.current=b.current({...i.current.floatingContext,tree:y,x:N.clientX,y:N.clientY,onClose(){ye(),ce(),ue()||ee(N,!0,"safe-polygon")}});const ae=$.current;X.addEventListener("mousemove",ae),F.current=()=>{X.removeEventListener("mousemove",ae)};return}(C.current==="touch"?!Do(o.floating,N.relatedTarget):!0)&&ee(N)}function H(N){ue()||i.current.floatingContext&&(b.current==null||b.current({...i.current.floatingContext,tree:y,x:N.clientX,y:N.clientY,onClose(){ye(),ce(),ue()||ee(N)}})(N))}if(qe(o.domReference)){var O;const N=o.domReference;return n&&N.addEventListener("mouseleave",H),(O=o.floating)==null||O.addEventListener("mouseleave",H),p&&N.addEventListener("mousemove",V,{once:!0}),N.addEventListener("mouseenter",V),N.addEventListener("mouseleave",W),()=>{var X;n&&N.removeEventListener("mouseleave",H),(X=o.floating)==null||X.removeEventListener("mouseleave",H),p&&N.removeEventListener("mousemove",V),N.removeEventListener("mouseenter",V),N.removeEventListener("mouseleave",W)}}},[o,c,e,h,m,p,ee,ce,ye,r,n,w,y,T,b,i,ue]),$r(()=>{var V;if(c&&n&&(V=b.current)!=null&&V.__options.blockPointerEvents&&Q()){k.current=!0;const H=o.floating;if(qe(o.domReference)&&H){var W;const O=ai(o.floating).body;O.setAttribute(Yx,"");const N=o.domReference,X=y==null||(W=y.nodesRef.current.find(ne=>ne.id===S))==null||(W=W.context)==null?void 0:W.elements.floating;return X&&(X.style.pointerEvents=""),O.style.pointerEvents="none",N.style.pointerEvents="auto",H.style.pointerEvents="auto",()=>{O.style.pointerEvents="",N.style.pointerEvents="",H.style.pointerEvents=""}}}},[c,n,S,o,y,b,Q]),$r(()=>{n||(C.current=void 0,z.current=!1,ce(),ye())},[n,ce,ye]),Z.useEffect(()=>()=>{ce(),an(A),an(P),ye()},[c,o.domReference,ce,ye]);const te=Z.useMemo(()=>{function V(W){C.current=W.pointerType}return{onPointerDown:V,onPointerEnter:V,onMouseMove(W){const{nativeEvent:H}=W;function O(){!R.current&&!w.current&&r(!0,H,"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]),oe=Z.useMemo(()=>({onMouseEnter(){an(A)},onMouseLeave(V){ue()||ee(V.nativeEvent,!1)}}),[ee,ue]);return Z.useMemo(()=>c?{reference:te,floating:oe}:{},[c,te,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 YR="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=Z.useRef(),y=Z.useRef(!1),S=Z.useMemo(()=>({onPointerDown(b){p.current=b.pointerType},onMouseDown(b){const T=p.current;b.button===0&&c!=="click"&&(Ro(T,!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 T=p.current;if(c==="mousedown"&&p.current){p.current=void 0;return}Ro(T,!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 Z.useMemo(()=>o?{reference:S}:{},[o,S])}const HR={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},qR={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(),T=er(typeof u=="function"?u:()=>!1),w=typeof u=="function"?T:u,C=Z.useRef(!1),A=Z.useRef(!1),{escapeKey:$,outsidePress:P}=Kx(y),{escapeKey:R,outsidePress:k}=Kx(S),F=Z.useRef(!1),z=er(te=>{var oe;if(!n||!o||!c||te.key!=="Escape"||F.current)return;const V=(oe=a.current.floatingContext)==null?void 0:oe.nodeId,W=b?qd(b.nodesRef.current,V):[];if(!$&&(te.stopPropagation(),W.length>0)){let H=!0;if(W.forEach(O=>{var N;if((N=O.context)!=null&&N.open&&!O.context.dataRef.current.__escapeKeyBubbles){H=!1;return}}),!H)return}r(!1,Q6(te)?te.nativeEvent:te,"escape-key")}),Q=er(te=>{var oe;const V=()=>{var W;z(te),(W=fs(te))==null||W.removeEventListener("keydown",V)};(oe=fs(te))==null||oe.addEventListener("keydown",V)}),ee=er(te=>{var oe;const V=C.current;C.current=!1;const W=A.current;if(A.current=!1,d==="click"&&W||V||typeof w=="function"&&!w(te))return;const H=fs(te),O="["+Yd("inert")+"]",N=ai(i.floating).querySelectorAll(O);let X=qe(H)?H:null;for(;X&&!Jn(X);){const re=Qn(X);if(Jn(re)||!qe(re))break;X=re}if(N.length&&qe(H)&&!eR(H)&&!Do(H,i.floating)&&Array.from(N).every(re=>!Do(X,re)))return;if(kt(H)&&ue){const re=Jn(H),he=on(H),fe=/auto|scroll/,ve=re||fe.test(he.overflowX),xe=re||fe.test(he.overflowY),Le=ve&&H.clientWidth>0&&H.scrollWidth>H.clientWidth,ie=xe&&H.clientHeight>0&&H.scrollHeight>H.clientHeight,pe=he.direction==="rtl",ke=ie&&(pe?te.offsetX<=H.offsetWidth-H.clientWidth:te.offsetX>H.clientWidth),ft=Le&&te.offsetY>H.clientHeight;if(ke||ft)return}const ne=(oe=a.current.floatingContext)==null?void 0:oe.nodeId,ae=b&&qd(b.nodesRef.current,ne).some(re=>{var he;return Dd(te,(he=re.context)==null?void 0:he.elements.floating)});if(Dd(te,i.floating)||Dd(te,i.domReference)||ae)return;const G=b?qd(b.nodesRef.current,ne):[];if(G.length>0){let re=!0;if(G.forEach(he=>{var fe;if((fe=he.context)!=null&&fe.open&&!he.context.dataRef.current.__outsidePressBubbles){re=!1;return}}),!re)return}r(!1,te,"outside-press")}),ce=er(te=>{var oe;const V=()=>{var W;ee(te),(W=fs(te))==null||W.removeEventListener(d,V)};(oe=fs(te))==null||oe.addEventListener(d,V)});Z.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=$,a.current.__outsidePressBubbles=P;let te=-1;function oe(N){r(!1,N,"ancestor-scroll")}function V(){window.clearTimeout(te),F.current=!0}function W(){te=window.setTimeout(()=>{F.current=!1},rl()?5:0)}const H=ai(i.floating);c&&(H.addEventListener("keydown",R?Q:z,R),H.addEventListener("compositionstart",V),H.addEventListener("compositionend",W)),w&&H.addEventListener(d,k?ce:ee,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(N=>{var X;return N!==((X=H.defaultView)==null?void 0:X.visualViewport)}),O.forEach(N=>{N.addEventListener("scroll",oe,{passive:!0})}),()=>{c&&(H.removeEventListener("keydown",R?Q:z,R),H.removeEventListener("compositionstart",V),H.removeEventListener("compositionend",W)),w&&H.removeEventListener(d,k?ce:ee,k),O.forEach(N=>{N.removeEventListener("scroll",oe)}),window.clearTimeout(te)}},[a,i,c,w,d,n,r,p,o,$,P,z,R,Q,ee,k,ce]),Z.useEffect(()=>{C.current=!1},[w,d]);const ye=Z.useMemo(()=>({onKeyDown:z,...h&&{[HR[m]]:te=>{r(!1,te.nativeEvent,"reference-press")},...m!=="click"&&{onClick(te){r(!1,te.nativeEvent,"reference-press")}}}}),[z,r,h,m]),ue=Z.useMemo(()=>({onKeyDown:z,onMouseDown(){A.current=!0},onMouseUp(){A.current=!0},[qR[d]]:()=>{C.current=!0}}),[z,d]);return Z.useMemo(()=>o?{reference:ye,floating:ue}:{},[o,ye,ue])}function KR(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Gx(),a=Z.useRef({}),[o]=Z.useState(()=>WR()),c=zd()!=null;if(process.env.NODE_ENV!=="production"){const y=r.reference;y&&!qe(y)&&BR("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]=Z.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=Z.useMemo(()=>({setPositionReference:d}),[]),p=Z.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return Z.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=KR({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,o]=Z.useState(null),[c,u]=Z.useState(null),h=(i==null?void 0:i.domReference)||a,m=Z.useRef(null),p=Gd();$r(()=>{h&&(m.current=h)},[h]);const y=LR({...e,elements:{...i,...c&&{reference:c}}}),S=Z.useCallback(A=>{const $=qe(A)?{getBoundingClientRect:()=>A.getBoundingClientRect(),contextElement:A}:A;u($),y.refs.setReference($)},[y.refs]),b=Z.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]),T=Z.useMemo(()=>({...y.refs,setReference:b,setPositionReference:S,domReference:m}),[y.refs,b,S]),w=Z.useMemo(()=>({...y.elements,domReference:h}),[y.elements,h]),C=Z.useMemo(()=>({...y,...r,refs:T,elements:w,nodeId:t}),[y,T,w,t,r]);return $r(()=>{r.dataRef.current.floatingContext=C;const A=p==null?void 0:p.nodesRef.current.find($=>$.id===t);A&&(A.context=C)}),Z.useMemo(()=>({...y,context:C,refs:T,elements:w}),[y,T,w,C])}function XR(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=Z.useRef(!1),h=Z.useRef(-1),m=Z.useRef(!0);Z.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]),Z.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]),Z.useEffect(()=>()=>{an(h)},[]);const p=Z.useMemo(()=>({onPointerDown(y){K6(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(X6()&&Z6())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,T=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||Do((w=a.current.floatingContext)==null?void 0:w.refs.floating.current,C)||Do(o.domReference,C)||T||r(!1,b,"focus")})}}),[a,o.domReference,r,u]);return Z.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,[YR]:""},...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(T=>T(...S)).find(T=>T!==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=Z.useCallback(c=>Kd(c,e,"reference"),t),a=Z.useCallback(c=>Kd(c,e,"floating"),n),o=Z.useCallback(c=>Kd(c,e,"item"),r);return Z.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}const ZR=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function JR(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:a=!0,role:o="dialog"}=t,c=(n=ZR.get(o))!=null?n:o,u=Gx(),h=zd()!=null,m=Z.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=Z.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=Z.useCallback(S=>{let{active:b,selected:T}=S;const w={role:"option",...b&&{id:i+"-option"}};switch(o){case"select":return{...w,"aria-selected":b&&T};case"combobox":return{...w,...b&&{"aria-selected":!0}}}return{}},[i,o]);return Z.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 QR(e,t){const[n,r]=Z.useState(e);return e&&!n&&r(!0),Z.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function eN(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]=Z.useState("unmounted"),d=QR(n,o);return!d&&c==="close"&&u("unmounted"),$r(()=>{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=Z.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]=Z.useState(()=>({...ys(a,d),...ys(n,d)})),{isMounted:b,status:T}=eN(e,{duration:o}),w=mi(n),C=mi(r),A=mi(i),$=mi(a);return $r(()=>{const P=ys(w.current,d),R=ys(A.current,d),k=ys($.current,d),F=ys(C.current,d)||Object.keys(P).reduce((z,Q)=>(z[Q]="",z),{});if(T==="initial"&&S(z=>({transitionProperty:z.transitionProperty,...k,...P})),T==="open"&&S({transitionProperty:Object.keys(F).map(Jx).join(","),transitionDuration:m+"ms",...k,...F}),T==="close"){const z=R||P;S({transitionProperty:Object.keys(z).map(Jx).join(","),transitionDuration:p+"ms",...k,...z})}},[p,A,w,C,$,m,T,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:T}=gi({strategy:o,open:d,onOpenChange:k=>{k||m()},middleware:[fi(c),hi(),di({padding:u})],whileElementsMounted:ui,placement:i}),w=gs(T),C=pi(T),{getReferenceProps:A,getFloatingProps:$}=yi([w,C]),{isMounted:P,styles:R}=vs(T,{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}),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: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"}},tN=({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"})]}),nN=({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:a=!0})=>{const[o,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:T}=ze(),[w,C]=I.useState(!1),[A,D]=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(o))},10)},R=()=>{b(1),setTimeout(()=>{c(sv(o,1))},10)},k=te=>{if(r&&te>r)return;const oe=yv(vv(bv(te,0),0),p==="AM"?h%12:h%12+12);d(oe),t(oe)},F=te=>{m(te);const oe=yv(vv(bv(u,0),0),p==="AM"?te%12:te%12+12);d(oe),t(oe),C(!1)},z=te=>{y(te)},Q=()=>{const te=new Date,oe=20,V=5,[W,H]=I.useState(()=>Array.from({length:oe+1},(ne,ae)=>{const G=new Date(te.getFullYear(),te.getMonth()-ae,1);return{name:$n(G,"MMMM",{locale:Ji}).replace(/^./,re=>re.toUpperCase()),index:G.getMonth(),year:G.getFullYear(),displayName:`${$n(G,"MMMM",{locale:Ji}).replace(/^./,re=>re.toUpperCase())} ${G.getFullYear()}`}})),O=I.useRef(null),N=I.useRef(null);I.useEffect(()=>{O.current&&O.current.disconnect(),O.current=new IntersectionObserver(ne=>{ne[0].isIntersecting&&H(ae=>{const G=ae[ae.length-1],re=new Date(G.year,G.index-1,1),he=Array.from({length:V},(fe,ve)=>{const xe=new Date(re.getFullYear(),re.getMonth()-ve,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]})}),N.current&&O.current.observe(N.current)},[W]);const X=(ne,ae)=>{const G=new Date(o);G.setMonth(ne),G.setFullYear(ae),c(G),D(!1)};return v.jsx("div",{className:"flex flex-col p-8 max-h-200 overflow-y-auto bg-light gap-4",children:W.map((ne,ae)=>{const G=ae===W.length-1;return v.jsx("button",{ref:G?N:null,onClick:()=>X(ne.index,ne.year),className:`text-start p-6 font-600 transition-all duration-100 rounded-lg hover:bg-gray-100 ${o.getMonth()===ne.index&&o.getFullYear()===ne.year?"bg-blue-100":""}`,children:ne.displayName},`${ne.name}-${ne.year}-${ae}`)})})},ee=()=>v.jsxs("div",{className:"flex justify-between items-center mb-8",children:[v.jsx(Lo,{open:A,onClose:()=>D(!1),component:Q,placement:"bottom",className:"!p-0 overflow-hidden bg-light",strategy:"fixed",children:v.jsxs("button",{onClick:()=>D(!A),className:"hover:text-blue-500 transition-colors duration-150 flex gap-6 items-center",children:[v.jsx("h4",{className:"text-header-4",children:$n(o,"MMMM yyyy",{locale:Ji}).replace(/^./,te=>te.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 te=Ki(R_(o)),oe=L_(I_(o)),V=$_({start:te,end:oe}),W=new Date;return W.setHours(0,0,0,0),v.jsx("div",{className:"grid grid-cols-7 gap-2",children:V.map((H,O)=>{const N=lv(H,u),X=II(H,o),ne=DI(H),ae=H<W,G=H>W,re=!X||ae&&!a||G&&!i||r&&H>r;return v.jsx(Ze.div,{className:`
667
+ */const rN={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"]},iN={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:a=!0})=>{const[o,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:T}=ze(),[w,C]=I.useState(!1),[A,$]=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(RI(o))},10)},R=()=>{b(1),setTimeout(()=>{c(sv(o,1))},10)},k=te=>{if(r&&te>r)return;const oe=yv(vv(bv(te,0),0),p==="AM"?h%12:h%12+12);d(oe),t(oe)},F=te=>{m(te);const oe=yv(vv(bv(u,0),0),p==="AM"?te%12:te%12+12);d(oe),t(oe),C(!1)},z=te=>{y(te)},Q=()=>{const te=new Date,oe=20,V=5,[W,H]=I.useState(()=>Array.from({length:oe+1},(ne,ae)=>{const G=new Date(te.getFullYear(),te.getMonth()-ae,1);return{name:Dn(G,"MMMM",{locale:Ji}).replace(/^./,re=>re.toUpperCase()),index:G.getMonth(),year:G.getFullYear(),displayName:`${Dn(G,"MMMM",{locale:Ji}).replace(/^./,re=>re.toUpperCase())} ${G.getFullYear()}`}})),O=I.useRef(null),N=I.useRef(null);I.useEffect(()=>{O.current&&O.current.disconnect(),O.current=new IntersectionObserver(ne=>{ne[0].isIntersecting&&H(ae=>{const G=ae[ae.length-1],re=new Date(G.year,G.index-1,1),he=Array.from({length:V},(fe,ve)=>{const xe=new Date(re.getFullYear(),re.getMonth()-ve,1);return{name:Dn(xe,"MMMM",{locale:Ji}).replace(/^./,Le=>Le.toUpperCase()),index:xe.getMonth(),year:xe.getFullYear(),displayName:`${Dn(xe,"MMMM",{locale:Ji}).replace(/^./,Le=>Le.toUpperCase())} ${xe.getFullYear()}`}});return[...ae,...he]})}),N.current&&O.current.observe(N.current)},[W]);const X=(ne,ae)=>{const G=new Date(o);G.setMonth(ne),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((ne,ae)=>{const G=ae===W.length-1;return v.jsx("button",{ref:G?N:null,onClick:()=>X(ne.index,ne.year),className:`text-start p-6 font-600 transition-all duration-100 rounded-lg hover:bg-gray-100 ${o.getMonth()===ne.index&&o.getFullYear()===ne.year?"bg-blue-100":""}`,children:ne.displayName},`${ne.name}-${ne.year}-${ae}`)})})},ee=()=>v.jsxs("div",{className:"flex justify-between items-center mb-8",children:[v.jsx(Lo,{open:A,onClose:()=>$(!1),component:Q,placement:"bottom",className:"!p-0 overflow-hidden bg-light",strategy:"fixed",children:v.jsxs("button",{onClick:()=>$(!A),className:"hover:text-blue-500 transition-colors duration-150 flex gap-6 items-center",children:[v.jsx("h4",{className:"text-header-4",children:Dn(o,"MMMM yyyy",{locale:Ji}).replace(/^./,te=>te.toUpperCase())}),v.jsx($e,{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:G6,onClick:P}),v.jsx(uh,{variant:"transparent",color:"gray",icon:E_,onClick:R})]})]}),ce=()=>{const te=Ki(N_(o)),oe=k_($_(o)),V=R_({start:te,end:oe}),W=new Date;return W.setHours(0,0,0,0),v.jsx("div",{className:"grid grid-cols-7 gap-2",children:V.map((H,O)=>{const N=lv(H,u),X=$I(H,o),ne=DI(H),ae=H<W,G=H>W,re=!X||ae&&!a||G&&!i||r&&H>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
669
  ${re?"text-gray-400 pointer-events-none":"cursor-pointer"}
670
670
  ${ne&&!N?"text-blue-600":""}
671
- `,onClick:()=>!re&&k(H),initial:!1,animate:{backgroundColor:N?"#93C5FD":"transparent",color:N?"#FFFFFF":ne?"#2563EB":re?"#9CA3AF":"#000000"},transition:{duration:.2,ease:"easeInOut",backgroundColor:{duration:.2,ease:"easeOut"}},whileHover:!re&&!N?{backgroundColor:"#E5E7EB"}:{},whileTap:re?{}:{backgroundColor:N?"#7AA5E0":"#D1D5DB"},children:$n(H,"d")},O)})})},ye=()=>{const te=Array.from({length:12},(V,W)=>W+1),oe=()=>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:te.map(V=>v.jsxs("button",{onClick:()=>F(V),className:`w-full text-center py-2 transition-all duration-100 rounded-lg hover:bg-gray-100 ${V===h?"text-blue-500 font-medium":""}`,children:[String(V).padStart(2,"0"),":00"]},V))});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:T("time")}),v.jsxs("div",{className:"flex items-center gap-6",children:[v.jsx(Lo,{open:w,onClose:()=>C(!1),component:oe,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})]})]})},ue={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:[ee(),v.jsx(Kn,{initial:!1,mode:"popLayout",children:v.jsx(Ze.div,{variants:ue,initial:S===1?"slideNextEnter":S===-1?"slidePrevEnter":!1,animate:"center",exit:S===1?"slideNextExit":"slidePrevExit",className:"w-full",children:ce()},$n(o,"yyyy-MM"))}),n&&ye()]})},Zd=({label:e,onChange:t,value:n,name:r,error:i,placeholder:a,className:o="",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"} ${o}`,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:`
671
+ `,onClick:()=>!re&&k(H),initial:!1,animate:{backgroundColor:N?"#93C5FD":"transparent",color:N?"#FFFFFF":ne?"#2563EB":re?"#9CA3AF":"#000000"},transition:{duration:.2,ease:"easeInOut",backgroundColor:{duration:.2,ease:"easeOut"}},whileHover:!re&&!N?{backgroundColor:"#E5E7EB"}:{},whileTap:re?{}:{backgroundColor:N?"#7AA5E0":"#D1D5DB"},children:Dn(H,"d")},O)})})},ye=()=>{const te=Array.from({length:12},(V,W)=>W+1),oe=()=>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:te.map(V=>v.jsxs("button",{onClick:()=>F(V),className:`w-full text-center py-2 transition-all duration-100 rounded-lg hover:bg-gray-100 ${V===h?"text-blue-500 font-medium":""}`,children:[String(V).padStart(2,"0"),":00"]},V))});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:T("time")}),v.jsxs("div",{className:"flex items-center gap-6",children:[v.jsx(Lo,{open:w,onClose:()=>C(!1),component:oe,placement:"bottom",className:"!p-0 overflow-hidden",strategy:"fixed",children:v.jsx(nN,{setHourMenuOpen:C,hourMenuOpen:w,selectedHour:h})}),v.jsx(tN,{selectedPeriod:p,handlePeriodChange:z})]})]})},ue={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:[ee(),v.jsx(Kn,{initial:!1,mode:"popLayout",children:v.jsx(Ze.div,{variants:ue,initial:S===1?"slideNextEnter":S===-1?"slidePrevEnter":!1,animate:"center",exit:S===1?"slideNextExit":"slidePrevExit",className:"w-full",children:ce()},Dn(o,"yyyy-MM"))}),n&&ye()]})},Zd=({label:e,onChange:t,value:n,name:r,error:i,placeholder:a,className:o="",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"} ${o}`,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,14 +684,14 @@ 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:a,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:a,futureDates:o=!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,T]=I.useState(!1),[w,C]=I.useState("");I.useEffect(()=>{u instanceof Date&&!isNaN(u.getTime())?C(tw(u)):C("")},[u]);const A=nw(w),D=R=>{const k=R.replace(/\D/g,"").slice(0,8),F=[];k.length>0&&F.push(k.slice(0,2)),k.length>2&&F.push(k.slice(2,4)),k.length>4&&F.push(k.slice(4,8));const z=F.join("/");if(C(z),T(!1),z.length===10){const Q=nw(z);d(Q)}},P=()=>{d(null),C("")};return v.jsx(Lo,{open:b,strategy:"fixed",padding:0,offset:0,onClose:()=>T(!1),className:"p-0!",component:v.jsx(Xd,{date:A||new Date,onDateChange:R=>{C(tw(R)),d(R),T(!1)},showTimeSelector:n,futureDates:o,pastDates:c}),children:v.jsx(Zd,{onBlur:h,name:S||y,label:r,value:w,onFocus:R=>{R.preventDefault(),T(!0)},disabledInput:!0,onChange:R=>D(R),placeholder:a,error:m==null?void 0:m.message,rightSide:!!A&&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:a,icon:o=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=()=>{a==null||a(),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:o,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:[!!a&&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:a="",labelClassName:o=""})=>{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
687
+ `,children:[d&&d,v.jsx("input",{...m,id:r,name:r,disabled:c,placeholder:a,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=>Dn(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},sN=({control:e,name:t,showTimeSelector:n=!1,label:r,translateKey:i="",placeholder:a,futureDates:o=!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,T]=I.useState(!1),[w,C]=I.useState("");I.useEffect(()=>{u instanceof Date&&!isNaN(u.getTime())?C(tw(u)):C("")},[u]);const A=nw(w),$=R=>{const k=R.replace(/\D/g,"").slice(0,8),F=[];k.length>0&&F.push(k.slice(0,2)),k.length>2&&F.push(k.slice(2,4)),k.length>4&&F.push(k.slice(4,8));const z=F.join("/");if(C(z),T(!1),z.length===10){const Q=nw(z);d(Q)}},P=()=>{d(null),C("")};return v.jsx(Lo,{open:b,strategy:"fixed",padding:0,offset:0,onClose:()=>T(!1),className:"p-0!",component:v.jsx(Xd,{date:A||new Date,onDateChange:R=>{C(tw(R)),d(R),T(!1)},showTimeSelector:n,futureDates:o,pastDates:c}),children:v.jsx(Zd,{onBlur:h,name:S||y,label:r,value:w,onFocus:R=>{R.preventDefault(),T(!0)},disabledInput:!0,onChange:R=>$(R),placeholder:a,error:m==null?void 0:m.message,rightSide:!!A&&v.jsx($e,{icon:nv,className:"text-gray-500 cursor-pointer",onClick:P})})})},rw=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:a,icon:o=Y6,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=()=>{a==null||a(),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($e,{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($e,{icon:o,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:[!!a&&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]},oN={initial:{opacity:0,height:0,y:-8},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-8}},aN=({isOpen:e})=>v.jsx(Ze.div,{animate:{rotate:e?180:0},transition:{duration:.5,ease:[.16,1,.3,1]},children:v.jsx($e,{icon:U6,className:"text-gray-500 w-12 h-12 max-w-12 max-h-12"})}),lN=({label:e,children:t,subtitle:n,open:r,onClick:i,className:a="",labelClassName:o=""})=>{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 ${o} 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 ${a}`,children:t})})]})},Ht={LOADING:"loading",COMPLETE:"complete",ERROR:"error"},lN=({file:e,onDelete:t,onRetry:n,uploadDuration:r=4e3})=>{const{t:i}=ze(),a=()=>e.error?Ht.ERROR:e.loading?Ht.LOADING:Ht.COMPLETE,[o,c]=I.useState(a()),[u,d]=I.useState(0),[h,m]=I.useState(10);I.useEffect(()=>{const b=a();c(b);let T;if(b===Ht.LOADING&&u<100){const A=100/(r/100);T=setInterval(()=>{d(D=>{const P=Math.min(D+A,99),R=Math.max(0,Math.round((100-P)/10));return m(R),P})},100)}else b===Ht.COMPLETE&&u<100&&d(100);return()=>{T&&clearInterval(T)}},[e.loading,e.error,r,a,u]);const p=()=>{switch(o){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(o){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})]}),o===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})}),o===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()})]})}),o===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:`
689
+ transition-all duration-200 ease-in-out focus:outline-none hover:bg-gray-50/50
690
+ flex items-center gap-2 group w-full justify-between`,children:[v.jsx("span",{className:`text-left text-lg md:text-xl font-700 ${o}`,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(aN,{isOpen:h})]})]}),v.jsx(Kn,{mode:"wait",children:h&&v.jsx(Ze.div,{...oN,transition:{height:{duration:iw.duration,ease:iw.ease},opacity:{duration:.15,ease:"easeOut"}},className:`w-full bg-white overflow-hidden ${a}`,children:t})})]})},Ht={LOADING:"loading",COMPLETE:"complete",ERROR:"error"},cN=({file:e,onDelete:t,onRetry:n,uploadDuration:r=4e3})=>{const{t:i}=ze(),a=()=>e.error?Ht.ERROR:e.loading?Ht.LOADING:Ht.COMPLETE,[o,c]=I.useState(a()),[u,d]=I.useState(0),[h,m]=I.useState(10);I.useEffect(()=>{const b=a();c(b);let T;if(b===Ht.LOADING&&u<100){const A=100/(r/100);T=setInterval(()=>{d($=>{const P=Math.min($+A,99),R=Math.max(0,Math.round((100-P)/10));return m(R),P})},100)}else b===Ht.COMPLETE&&u<100&&d(100);return()=>{T&&clearInterval(T)}},[e.loading,e.error,r,a,u]);const p=()=>{switch(o){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(o){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($e,{icon:GC,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})]}),o===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($e,{icon:zC})}),o===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($e,{icon:WC})})]}),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()})]})}),o===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"}
694
- `,children:r?v.jsx(De,{icon:rN,className:`
694
+ `,children:r?v.jsx($e,{icon:iN,className:`
695
695
  text-blue-500
696
696
  size-16
697
697
  `}):e}),v.jsx("h6",{className:`
@@ -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:a}=ze(),o=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:o?"#E0F1ED":c?u:"white",borderWidth:c?"1px":"0px",borderColor:c?u:d},animate:{backgroundColor:o?"#E0F1ED":c?u:"white",borderWidth:c||!o?"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:o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:o||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:o||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:o?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
702
+ `,children:t})]}),uN=({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))}),fN=({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=fN;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})},dN=({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,{})})})})})})},hN={completedBgColor:"#dae2fb",focusBorderColor:"#4570EB",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-blue-500",lineActiveColor:"bg-blue-500",lineGradientFrom:"from-blue-500"},mN={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 mN;case"blue":default:return hN}},pN=({status:e,label:t,shouldAnimate:n,color:r,index:i})=>{const{t:a}=ze(),o=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:o?"#E0F1ED":c?u:"white",borderWidth:c?"1px":"0px",borderColor:c?u:d},animate:{backgroundColor:o?"#E0F1ED":c?u:"white",borderWidth:c||!o?"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:o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:o||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:o||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:o?v.jsx($e,{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($e,{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:o?"#000":"#8F9095"},children:a(t)})]})},pN=({status:e,label:t,shouldAnimate:n,color:r})=>{const{t:i}=ze(),a=e==="done",o=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:a?c:"white",borderWidth:o||!a?"1px":"0px",borderColor:o?u:d},animate:{backgroundColor:a?c:"white",borderWidth:o||!a?"1px":"0px",borderColor:o?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:o||a?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:o||a?"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||o?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 ${a||o?"text-black":"text-gray-400"}`,children:i(t)})]})},gN=({steps:e,direction:t="horizontal",color:n})=>{const{defaultColorScheme:r}=ze(),i=n||r,{lineActiveColor:a,lineGradientFrom:o}=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,A)=>S(A)?"focus":C.completed?"done":"pending");if(!m)u(w),p(!0),h(null);else{const C=w.findIndex((A,D)=>A!==c[D]);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 A=S(C-1)?"focus":(R=e[C-1])!=null&&R.completed?"done":"pending",D=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 ${D==="done"||D==="focus"?a:A==="done"||A==="focus"?`bg-gradient-to-b ${o} to-[rgb(243,244,246)]`:"bg-[rgb(243,244,246)]"}`}),v.jsx(mN,{index:C,status:D,shouldAnimate:P,label:w.label,color:i})]},C)})}),T=()=>v.jsx("div",{className:"w-full flex items-center gap-12",children:e.map((w,C)=>{const A=S(C)?"focus":w.completed?"done":"pending",D=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:A,shouldAnimate:D,label:w.label,color:i})},C)})});return t==="horizontal"?v.jsx(T,{}):v.jsx(b,{})},yN=({variant:e="underline",color:t="blue",tabs:n,activeTab:r,onTabChange:i,className:a="",direction:o="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(T=>T.id===r);if(b>=0&&u.current[b]){const T=u.current[b];if(T&&m.current){const w=m.current.getBoundingClientRect(),C=T.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 ${a}`,children:[n.map((b,T)=>v.jsx(mf.div,{ref:w=>{u.current[T]=w},className:"w-full",children:v.jsx(Rw,{href:b.href,label:c?b.label:"",icon:b.icon,direction:o,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:a,showTimeSelector:o=!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 T=b.replace(/\D/g,"").slice(0,8),w=[];T.length>0&&w.push(T.slice(0,2)),T.length>2&&w.push(T.slice(2,4)),T.length>4&&w.push(T.slice(4,8));const C=w.join("/");if(p(C),h(!1),C.length===10){const A=vN(C);A&&t(A)}},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:o,futureDates:c,pastDates:u}),children:v.jsx(Zd,{name:a,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(o=>{const c={...o,id:(o==null?void 0:o.id)||yf.uniqueId(),open:!0,type:(o==null?void 0:o.type)||"center",props:{...o.props,open:!0,onClose:()=>a(o.id||yf.uniqueId())}};n.current=[...n.current,c],t(n.current)},[]),i=I.useCallback(o=>{const c=yf.uniqueId(),u={id:c,open:!0,onClose:()=>{a(c)},type:"custom",component:o};n.current=[...n.current,u],t(n.current)},[]),a=I.useCallback(o=>{n.current=n.current.map(c=>c.id===o?{...c,open:!1}:c),t(n.current),setTimeout(()=>{n.current=n.current.filter(c=>c.id!==o),t(n.current)},150)},[]);return I.useEffect(()=>{window.openModal=r,window.closeModal=a,window.openCustomModal=i},[r,a,i]),v.jsx(v.Fragment,{children:e.map(o=>{if(o.type==="custom"&&(o!=null&&o.component)){const{open:u,onClose:d,component:h}=o;return h(u,d)}if(o.type==="dialog"){const{props:u}=o;return v.jsx(rw,{...u,open:o.open,onClose:()=>a(o.id)},o.id)}if(o.type==="alert"){const{props:u}=o;return v.jsx(xx,{...u,open:o.open,onClose:()=>a(o.id)},o.id)}const{props:c}=o;return v.jsx(gw,{...c,open:o.open,onClose:()=>a(o.id),children:typeof c.children=="function"?c.children(()=>a(o.id)):c.children},o.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 a=aw(n);if(!a)return;const o=document.createElement("div"),c=i(o),u=()=>{c.unmount(),a.removeChild(o)};c.render(v.jsx(pf,{content:e,type:t,duration:r,onClose:u})),a.prepend(o),setTimeout(()=>{o.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 a=document.createElement("div"),o=r(a),c=()=>{o.unmount(),i.removeChild(a)};o.render(v.jsx(tv,{promise:e,messages:t,options:n,onClose:c})),i.prepend(a),setTimeout(()=>{a.classList.add("mt-[0.5rem]")},10)})},lw=(e,t={})=>{let n=()=>{},r=()=>{};const i=new Promise((a,o)=>{n=a,r=o});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:a=null})=>{const{className:o=" ",...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):a?gf(a!=null&&a.first_name||a!=null&&a.last_name?((a==null?void 0:a.first_name)||"")+" "+((a==null?void 0:a.last_name)||""):a==null?void 0:a.email):"#9CA1B6",T=P=>{try{return P?(new URL(P),!0):!1}catch(R){return console.log(R),!1}},w=()=>T(n)?n:a!=null&&a.image&&T(a.image)?a.image:a!=null&&a.image?Sv(a.image):"",C=()=>r?v.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:p},children:r}):a?v.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:p},children:a!=null&&a.first_name||a!=null&&a.last_name?((a==null?void 0:a.first_name)||" ")[0]+((a==null?void 0:a.last_name)||" ")[0]:((a==null?void 0:a.email)||" ")[0]}):v.jsx(De,{style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},icon:S_,className:"w-full text-white"}),A=()=>{S(!0)},D=w();return v.jsxs("div",{className:"flex items-center justify-center rounded-full overflow-hidden h-full relative "+o,style:{maxWidth:h,maxHeight:h,minWidth:h,minHeight:h,backgroundColor:b()},...c,children:[D&&!y&&v.jsx("img",{src:D,alt:r,className:`
704
+ `,style:{color:c?u:o?"#000":"#8F9095"},children:a(t)})]})},gN=({status:e,label:t,shouldAnimate:n,color:r})=>{const{t:i}=ze(),a=e==="done",o=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:a?c:"white",borderWidth:o||!a?"1px":"0px",borderColor:o?u:d},animate:{backgroundColor:a?c:"white",borderWidth:o||!a?"1px":"0px",borderColor:o?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:o||a?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:o||a?"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||o?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($e,{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($e,{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 ${a||o?"text-black":"text-gray-400"}`,children:i(t)})]})},yN=({steps:e,direction:t="horizontal",color:n})=>{const{defaultColorScheme:r}=ze(),i=n||r,{lineActiveColor:a,lineGradientFrom:o}=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,A)=>S(A)?"focus":C.completed?"done":"pending");if(!m)u(w),p(!0),h(null);else{const C=w.findIndex((A,$)=>A!==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 A=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"?a:A==="done"||A==="focus"?`bg-gradient-to-b ${o} to-[rgb(243,244,246)]`:"bg-[rgb(243,244,246)]"}`}),v.jsx(pN,{index:C,status:$,shouldAnimate:P,label:w.label,color:i})]},C)})}),T=()=>v.jsx("div",{className:"w-full flex items-center gap-12",children:e.map((w,C)=>{const A=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(gN,{index:C,status:A,shouldAnimate:$,label:w.label,color:i})},C)})});return t==="horizontal"?v.jsx(T,{}):v.jsx(b,{})},vN=({variant:e="underline",color:t="blue",tabs:n,activeTab:r,onTabChange:i,className:a="",direction:o="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(T=>T.id===r);if(b>=0&&u.current[b]){const T=u.current[b];if(T&&m.current){const w=m.current.getBoundingClientRect(),C=T.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 ${a}`,children:[n.map((b,T)=>v.jsx(mf.div,{ref:w=>{u.current[T]=w},className:"w-full",children:v.jsx(Nw,{href:b.href,label:c?b.label:"",icon:b.icon,direction:o,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=>Dn(e,"dd/MM/yyyy"),bN=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 xN({currentDate:e,onDateChange:t,label:n,placeholder:r="dd/mm/yyyy",error:i,translatedKey:a,showTimeSelector:o=!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 T=b.replace(/\D/g,"").slice(0,8),w=[];T.length>0&&w.push(T.slice(0,2)),T.length>2&&w.push(T.slice(2,4)),T.length>4&&w.push(T.slice(4,8));const C=w.join("/");if(p(C),h(!1),C.length===10){const A=bN(C);A&&t(A)}},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:o,futureDates:c,pastDates:u}),children:v.jsx(Zd,{name:a,label:n,value:m,onClick:b=>{b.preventDefault(),h(!0)},onChange:b=>y(b),placeholder:r,error:i,rightSide:e&&v.jsx($e,{icon:nv,className:"text-gray-500 cursor-pointer",onClick:S})})})}const wN=()=>{const[e,t]=I.useState([]),n=I.useRef([]),r=I.useCallback(o=>{const c={...o,id:(o==null?void 0:o.id)||yf.uniqueId(),open:!0,type:(o==null?void 0:o.type)||"center",props:{...o.props,open:!0,onClose:()=>a(o.id||yf.uniqueId())}};n.current=[...n.current,c],t(n.current)},[]),i=I.useCallback(o=>{const c=yf.uniqueId(),u={id:c,open:!0,onClose:()=>{a(c)},type:"custom",component:o};n.current=[...n.current,u],t(n.current)},[]),a=I.useCallback(o=>{n.current=n.current.map(c=>c.id===o?{...c,open:!1}:c),t(n.current),setTimeout(()=>{n.current=n.current.filter(c=>c.id!==o),t(n.current)},150)},[]);return I.useEffect(()=>{window.openModal=r,window.closeModal=a,window.openCustomModal=i},[r,a,i]),v.jsx(v.Fragment,{children:e.map(o=>{if(o.type==="custom"&&(o!=null&&o.component)){const{open:u,onClose:d,component:h}=o;return h(u,d)}if(o.type==="dialog"){const{props:u}=o;return v.jsx(rw,{...u,open:o.open,onClose:()=>a(o.id)},o.id)}if(o.type==="alert"){const{props:u}=o;return v.jsx(xx,{...u,open:o.open,onClose:()=>a(o.id)},o.id)}const{props:c}=o;return v.jsx(gw,{...c,open:o.open,onClose:()=>a(o.id),children:typeof c.children=="function"?c.children(()=>a(o.id)):c.children},o.id)})})};function SN(e){var t;(t=window==null?void 0:window.openModal)==null||t.call(window,e)}function TN(e){var t;(t=window==null?void 0:window.openCustomModal)==null||t.call(window,e)}function EN(e){var t;(t=window==null?void 0:window.closeModal)==null||t.call(window,e)}function CN(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 a=aw(n);if(!a)return;const o=document.createElement("div"),c=i(o),u=()=>{c.unmount(),a.removeChild(o)};c.render(v.jsx(pf,{content:e,type:t,duration:r,onClose:u})),a.prepend(o),setTimeout(()=>{o.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 a=document.createElement("div"),o=r(a),c=()=>{o.unmount(),i.removeChild(a)};o.render(v.jsx(tv,{promise:e,messages:t,options:n,onClose:c})),i.prepend(a),setTimeout(()=>{a.classList.add("mt-[0.5rem]")},10)})},lw=(e,t={})=>{let n=()=>{},r=()=>{};const i=new Promise((a,o)=>{n=a,r=o});return th(i,e,t),{resolve:n,reject:r}},PN={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:a=null})=>{const{className:o=" ",...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):a?gf(a!=null&&a.first_name||a!=null&&a.last_name?((a==null?void 0:a.first_name)||"")+" "+((a==null?void 0:a.last_name)||""):a==null?void 0:a.email):"#9CA1B6",T=P=>{try{return P?(new URL(P),!0):!1}catch(R){return console.log(R),!1}},w=()=>T(n)?n:a!=null&&a.image&&T(a.image)?a.image:a!=null&&a.image?Sv(a.image):"",C=()=>r?v.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:p},children:r}):a?v.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:p},children:a!=null&&a.first_name||a!=null&&a.last_name?((a==null?void 0:a.first_name)||" ")[0]+((a==null?void 0:a.last_name)||" ")[0]:((a==null?void 0:a.email)||" ")[0]}):v.jsx($e,{style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},icon:T_,className:"w-full text-white"}),A=()=>{S(!0)},$=w();return v.jsxs("div",{className:"flex items-center justify-center rounded-full overflow-hidden h-full relative "+o,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
708
  `,onError:A,...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"},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]),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:MN(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="",showCloseButton:a=!0})=>{const o={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:o,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}),a&&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(D,P){for(var R=0,k=C.length,F=D;R<k-1;){var z=C[R];if(z==="__proto__"||z==="constructor"||z==="prototype")return D;F=F[C[R++]]}F[C[R]]=P})},getter:function(w,C){var A=h(w);return d.get(w)||d.set(w,function(P){for(var R=0,k=A.length;R<k;)if(P!=null||!C)P=P[A[R++]];else return;return P})},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 D=w.length,P,R,k,F;for(R=0;R<D;R++)P=w[R],P&&(T(P)&&(P='"'+P+'"'),F=y(P),k=!F&&/^\d+$/.test(P),C.call(A,P,F,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 T(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 T;try{T=", node was:"+JSON.stringify(y)}catch{T=""}throw new Error("Cyclic dependency"+T)}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:T=o.spec.abortEarly,disableStackTrace:w=o.spec.disableStackTrace}=i;function C(ee){return bi.isRef(ee)?ee.getValue(n,S,b):ee}function A(ee={}){const ce=Object.assign({value:n,originalValue:a,label:o.spec.label,path:ee.path||r,spec:o.spec,disableStackTrace:ee.disableStackTrace||w},m,ee.params);for(const ue of Object.keys(ce))ce[ue]=C(ce[ue]);const ye=new jt(jt.formatError(ee.message||p,ce),n,ce.path,ee.type||d,ce.disableStackTrace);return ye.params=ce,ye}const D=T?c:u;let P={path:r,parent:S,type:d,from:i.from,createError:A,resolve:C,options:i,originalValue:a,schema:o};const R=ee=>{jt.isError(ee)?D(ee):ee?u(null):D(A())},k=ee=>{jt.isError(ee)?D(ee):c(ee)};if(y&&xi(n))return R(!0);let z;try{var Q;if(z=h.call(P,n,P),typeof((Q=z)==null?void 0:Q.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(ee){k(ee);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"},AN="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",MN={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(AN,MN[n]),i={blue:fw[e],aqua:dw[e],red:hw[e],gray:mw[e]}[t];return tr(r,i)},_N="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",IN={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]"},$N={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(_N,IN[n],$N[r]),a={blue:fw[e],aqua:dw[e],red:hw[e],gray:mw[e]}[t];return tr(i,a)},RN={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")=>RN[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($e,{icon:e,className:ko(i)}),a,t&&v.jsx($e,{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:a=!0})=>{const o={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:o,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}),a&&v.jsx($e,{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})]})})})})})},NN=({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 LN(){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($,P){for(var R=0,k=C.length,F=$;R<k-1;){var z=C[R];if(z==="__proto__"||z==="constructor"||z==="prototype")return $;F=F[C[R++]]}F[C[R]]=P})},getter:function(w,C){var A=h(w);return d.get(w)||d.set(w,function(P){for(var R=0,k=A.length;R<k;)if(P!=null||!C)P=P[A[R++]];else return;return P})},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,P,R,k,F;for(R=0;R<$;R++)P=w[R],P&&(T(P)&&(P='"'+P+'"'),F=y(P),k=!F&&/^\d+$/.test(P),C.call(A,P,F,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 T(w){return!y(w)&&(S(w)||b(w))}return nh}var vi=LN(),rh,vw;function kN(){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=kN(),dl={exports:{}},bw;function jN(){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 T;try{T=", node was:"+JSON.stringify(y)}catch{T=""}throw new Error("Cyclic dependency"+T)}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 FN=jN();const VN=_m(FN),BN=Object.prototype.toString,WN=Error.prototype.toString,UN=RegExp.prototype.toString,zN=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",GN=/^Symbol\((.*)\)(.*)$/;function YN(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 YN(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return zN.call(e).replace(GN,"Symbol($1)");const r=BN.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+WN.call(e)+"]":r==="RegExp"?UN.call(e):null}function Dr(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,HN=/\$\{\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(HN,(i,a)=>Dr(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 \`${Dr(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Dr(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${Dr(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"},qN={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}"},KN={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:qN,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:KN,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: \`${Dr(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: \`${Dr(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:T=o.spec.abortEarly,disableStackTrace:w=o.spec.disableStackTrace}=i;function C(ee){return bi.isRef(ee)?ee.getValue(n,S,b):ee}function A(ee={}){const ce=Object.assign({value:n,originalValue:a,label:o.spec.label,path:ee.path||r,spec:o.spec,disableStackTrace:ee.disableStackTrace||w},m,ee.params);for(const ue of Object.keys(ce))ce[ue]=C(ce[ue]);const ye=new jt(jt.formatError(ee.message||p,ce),n,ce.path,ee.type||d,ce.disableStackTrace);return ye.params=ce,ye}const $=T?c:u;let P={path:r,parent:S,type:d,from:i.from,createError:A,resolve:C,options:i,originalValue:a,schema:o};const R=ee=>{jt.isError(ee)?$(ee):ee?u(null):$(A())},k=ee=>{jt.isError(ee)?$(ee):c(ee)};if(y&&xi(n))return R(!0);let z;try{var Q;if(z=h.call(P,n,P),typeof((Q=z)==null?void 0:Q.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(ee){k(ee);return}R(z)}return t.OPTIONS=e,t}function XN(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=Dr(t),c=Dr(a);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
712
  attempted value: ${o}
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 T=a[b];T(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 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 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 T=p instanceof Vn?p.spec:void 0,w=T==null?void 0:T.strict;if(T!=null&&T.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||!Ow(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=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(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,T]=I.useState(d.value||null),w=I.useRef(null),C=I.useRef(null),A=I.useRef(null),{x:D,y:P,strategy:R,refs:k,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}),ee=gs(F),ce=pi(F),{getReferenceProps:ye,getFloatingProps:ue}=yi([ee,ce]),{isMounted:te,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())}),H=pe=>{T(pe),p(!1),S(""),d.onChange(pe)},O=()=>{p(!m),!m&&w.current&&setTimeout(()=>{var pe;(pe=w.current)==null||pe.focus()},100)},N=()=>{setTimeout(()=>{m||d.onBlur()},200)};I.useEffect(()=>{T(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 X=pe=>{var ke;return pe?pe.codeISO2?pe.codeISO2.toLowerCase():((ke=pe.code)==null?void 0:ke.toLowerCase())||"":""},ne=(xe=Q.arrow)==null?void 0:xe.x,ae=(Le=Q.arrow)==null?void 0:Le.y,G={top:"bottom",right:"left",bottom:"top",left:"right"}[z.split("-")[0]],re=ye({onClick:O,onBlur:N}),he=u(r),fe=u(i),ve=(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 ${ve&&"!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 ${ve&&"border-red-500 hover:border-red-600"} ${te?"border-blue-400":"border-blue-100"}`,...re,tabIndex:0,children:[b!=null&&b.code?v.jsxs("div",{className:"flex items-center w-full gap-10",children:[X(b)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${X(b)}.png`,srcSet:`https://flagcdn.com/w40/${X(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:fe}),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"})})]}),ve&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(ve,{x:u(c||"")||u(t)})}),te&&v.jsxs("div",{ref:k.setFloating,style:{position:R,top:P??0,left:D??0,...oe},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ue(),children:[v.jsx("div",{ref:C,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ne!=null?`${ne}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(),H(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 ne,ae;const{t:u}=ze(),[d,h]=I.useState(!1),[m,p]=I.useState(""),[y,S]=I.useState(t||null),b=I.useRef(null),T=I.useRef(null),{x:w,y:C,strategy:A,refs:D,context:P,placement:R,middlewareData:k}=gi({open:d,onOpenChange:h,middleware:[fi(8),hi(),di({padding:8}),No({apply({availableHeight:G,elements:re}){Object.assign(re.floating.style,{maxHeight:`${Math.min(G-10,300)}px`})},padding:8}),ps({element:T})],placement:"bottom-start",whileElementsMounted:ui}),F=gs(P),z=pi(P),{getReferenceProps:Q,getFloatingProps:ee}=yi([F,z]),{isMounted:ce,styles:ye}=vs(P,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),te=(Array.isArray(e)?e:[]).filter(G=>{if(!m.trim())return!0;const re=a==="es"&&G.labelES?G.labelES.toLowerCase():G.label.toLowerCase(),he=G.code?G.code.toLowerCase():"";return re.includes(m.toLowerCase())||he.includes(m.toLowerCase())}),oe=G=>{S(G),h(!1),p(""),n(G)},V=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var G;(G=b.current)==null||G.focus()},100)};I.useEffect(()=>{S(t)},[t]);const W=G=>{var re;return G?G.codeISO2?G.codeISO2.toLowerCase():((re=G.code)==null?void 0:re.toLowerCase())||"":""},H=(ne=k.arrow)==null?void 0:ne.x,O=(ae=k.arrow)==null?void 0:ae.y,N={top:"bottom",right:"left",bottom:"top",left:"right"}[R.split("-")[0]],X=Q({onClick:V});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:D.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"} ${ce?"border-blue-400":"border-blue-100"}`,...X,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}),ce&&v.jsxs("div",{ref:D.setFloating,style:{position:A,top:C??0,left:w??0,...ye},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ee(),children:[v.jsx("div",{ref:T,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:H!=null?`${H}px`:"",top:O!=null?`${O}px`:"",right:"",bottom:"",[N]:"-2px",borderRight:N==="left"?"1px solid":"none",borderBottom:N==="top"?"1px solid":"none",borderLeft:N==="right"?"1px solid":"none",borderTop:N==="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:te.length>0?v.jsx("ul",{className:"flex flex-col",children:te.map((G,re)=>{var fe;const he=G.codeISO2?G.codeISO2.toLowerCase():((fe=G.code)==null?void 0:fe.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:ve=>{ve.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:ve=>{ve.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}-${re}`)})}):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())},T=C=>{var D;const A=(D=C.target.files)==null?void 0:D[0];if(A){const P=URL.createObjectURL(A);d(P),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:T,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,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:`
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 T=a[b];T(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}=XN(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 ZN=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function JN(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=ZN.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 QN=/^[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])?)*$/,eL=/^((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,tL=/^(?:[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,nL="^\\d{4}-\\d{2}-\\d{2}",rL="\\d{2}:\\d{2}:\\d{2}",iL="(([+-]\\d{2}(:?\\d{2})?)|Z)",sL=new RegExp(`${nL}T${rL}(\\.\\d+)?${iL}$`),oL=e=>xi(e)||e===e.trim(),aL={}.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===aL?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(QN,{name:"email",message:t,excludeEmptyString:!0})}url(t=Ft.url){return this.matches(eL,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Ft.uuid){return this.matches(tL,{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(sL,{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:oL})}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 lL=new Date(""),cL=e=>Object.prototype.toString.call(e)==="[object Date]";class lh extends Vn{constructor(){super({type:"date",check(t){return cL(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=JN(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=lL;function uL(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 VN.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 Mw(e){return(t,n)=>Aw(e,t)-Aw(e,n)}const fL=(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 dL=(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 hL=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=hL,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 T=p instanceof Vn?p.spec:void 0,w=T==null?void 0:T.strict;if(T!=null&&T.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||!Ow(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=uL(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(a=>{if(!a)return a;let o=a;return dL(a,t)&&(o=Object.assign({},a),r||delete o[t],o[n]=i(a)),o})}json(){return this.transform(fL)}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 $w=[{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"}],mL=({countries:e=$w,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,T]=I.useState(d.value||null),w=I.useRef(null),C=I.useRef(null),A=I.useRef(null),{x:$,y:P,strategy:R,refs:k,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}),ee=gs(F),ce=pi(F),{getReferenceProps:ye,getFloatingProps:ue}=yi([ee,ce]),{isMounted:te,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())}),H=pe=>{T(pe),p(!1),S(""),d.onChange(pe)},O=()=>{p(!m),!m&&w.current&&setTimeout(()=>{var pe;(pe=w.current)==null||pe.focus()},100)},N=()=>{setTimeout(()=>{m||d.onBlur()},200)};I.useEffect(()=>{T(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 X=pe=>{var ke;return pe?pe.codeISO2?pe.codeISO2.toLowerCase():((ke=pe.code)==null?void 0:ke.toLowerCase())||"":""},ne=(xe=Q.arrow)==null?void 0:xe.x,ae=(Le=Q.arrow)==null?void 0:Le.y,G={top:"bottom",right:"left",bottom:"top",left:"right"}[z.split("-")[0]],re=ye({onClick:O,onBlur:N}),he=u(r),fe=u(i),ve=(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 ${ve&&"!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 ${ve&&"border-red-500 hover:border-red-600"} ${te?"border-blue-400":"border-blue-100"}`,...re,tabIndex:0,children:[b!=null&&b.code?v.jsxs("div",{className:"flex items-center w-full gap-10",children:[X(b)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${X(b)}.png`,srcSet:`https://flagcdn.com/w40/${X(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:fe}),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"})})]}),ve&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(ve,{x:u(c||"")||u(t)})}),te&&v.jsxs("div",{ref:k.setFloating,style:{position:R,top:P??0,left:$??0,...oe},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ue(),children:[v.jsx("div",{ref:C,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ne!=null?`${ne}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(),H(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")})})]})]})},pL=({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})]})},gL=({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(yL,{countries:e,value:d,onChange:u,label:c(r),placeholder:c(i),language:a,error:h==null?void 0:h.message,className:o})})},yL=({countries:e,value:t,onChange:n,label:r="select_a_country",placeholder:i="type_to_search",language:a="en",error:o,className:c=""})=>{var ne,ae;const{t:u}=ze(),[d,h]=I.useState(!1),[m,p]=I.useState(""),[y,S]=I.useState(t||null),b=I.useRef(null),T=I.useRef(null),{x:w,y:C,strategy:A,refs:$,context:P,placement:R,middlewareData:k}=gi({open:d,onOpenChange:h,middleware:[fi(8),hi(),di({padding:8}),No({apply({availableHeight:G,elements:re}){Object.assign(re.floating.style,{maxHeight:`${Math.min(G-10,300)}px`})},padding:8}),ps({element:T})],placement:"bottom-start",whileElementsMounted:ui}),F=gs(P),z=pi(P),{getReferenceProps:Q,getFloatingProps:ee}=yi([F,z]),{isMounted:ce,styles:ye}=vs(P,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),te=(Array.isArray(e)?e:[]).filter(G=>{if(!m.trim())return!0;const re=a==="es"&&G.labelES?G.labelES.toLowerCase():G.label.toLowerCase(),he=G.code?G.code.toLowerCase():"";return re.includes(m.toLowerCase())||he.includes(m.toLowerCase())}),oe=G=>{S(G),h(!1),p(""),n(G)},V=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var G;(G=b.current)==null||G.focus()},100)};I.useEffect(()=>{S(t)},[t]);const W=G=>{var re;return G?G.codeISO2?G.codeISO2.toLowerCase():((re=G.code)==null?void 0:re.toLowerCase())||"":""},H=(ne=k.arrow)==null?void 0:ne.x,O=(ae=k.arrow)==null?void 0:ae.y,N={top:"bottom",right:"left",bottom:"top",left:"right"}[R.split("-")[0]],X=Q({onClick:V});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"} ${ce?"border-blue-400":"border-blue-100"}`,...X,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}),ce&&v.jsxs("div",{ref:$.setFloating,style:{position:A,top:C??0,left:w??0,...ye},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ee(),children:[v.jsx("div",{ref:T,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:H!=null?`${H}px`:"",top:O!=null?`${O}px`:"",right:"",bottom:"",[N]:"-2px",borderRight:N==="left"?"1px solid":"none",borderBottom:N==="top"?"1px solid":"none",borderLeft:N==="right"?"1px solid":"none",borderTop:N==="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:te.length>0?v.jsx("ul",{className:"flex flex-col",children:te.map((G,re)=>{var fe;const he=G.codeISO2?G.codeISO2.toLowerCase():((fe=G.code)==null?void 0:fe.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:ve=>{ve.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:ve=>{ve.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}-${re}`)})}):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($e,{...a,className:ko(n),icon:i}):o})};function vL(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 bL=({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(vL(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())},T=C=>{var $;const A=($=C.target.files)==null?void 0:$[0];if(A){const P=URL.createObjectURL(A);d(P),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:T,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($e,{icon:z6,className:"text-blue-500"})})]})]})]})},xL=ch({name:Rr(),base64:Rr()}),wL=({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})]}),SL=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"}},Dw=e=>{switch(e){case"warning":return"text-yellow-500";case"error":return"text-red-500";default:return"text-blue-500"}},TL=({description:e,title:t,className:n,icon:r,type:i="informative",iconClassName:a=""})=>v.jsxs("div",{className:`flex items-center gap-12 p-12 w-full ${SL(i)} rounded-lg ${n}`,children:[r?v.jsx($e,{icon:r,className:`min-h-20 h-20 ${a} ${Dw(i)}`}):v.jsx($e,{icon:rN,className:`min-h-20 h-20 ${a} ${Dw(i)}`}),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})]})]}),EL=({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})})})},CL=({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:`
714
714
  flex items-center justify-between gap-8 p-16
715
715
 
716
716
  ${m&&"!border-red-500"}
@@ -726,13 +726,13 @@ attempted value: ${o}
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,T]=I.useState(!1),[w,C]=I.useState(""),[A,D]=I.useState(S||null),[P,R]=I.useState(y),[k,F]=I.useState(!1),z=I.useRef(null),Q=I.useRef(null),ee=I.useRef(null),ce=I.useRef(null),{x:ye,y:ue,strategy:te,refs:oe,context:V,placement:W,middlewareData:H}=gi({open:b,onOpenChange:T,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}),O=gs(V),N=pi(V),{getReferenceProps:X,getFloatingProps:ne}=yi([O,N]),{isMounted:ae,styles:G}=vs(V,{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())}),fe=be=>{D(be),T(!1),C("");const Qe=`${be.phone} ${P}`;d.onChange(Qe),setTimeout(()=>{var Pt;(Pt=ee.current)==null||Pt.focus()},100)},ve=be=>{const Qe=be.target.value;if(R(Qe),A){const Pt=`${A.phone} ${Qe}`;d.onChange(Pt)}},xe=()=>{T(!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&&D(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=H.arrow)==null?void 0:wl.x,wi=(Nr=H.arrow)==null?void 0:Nr.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[W.split("-")[0]],bl=X({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 ${a}`,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: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:ee,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:ve,onBlur:Le})]}),bn&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(bn,{x:u(o||"")||e})}),ae&&v.jsxs("div",{ref:oe.setFloating,style:{position:te,top:ue??0,left:ye??0,...G},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...ne(),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(),fe(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:a}=ze(),o=n||a,{bgColor:c,fillColor:u}=ML(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: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: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),T=I.useRef(null),{x:w,y:C,strategy:A,refs:D,context:P}=gi({open:d,onOpenChange:h,middleware:[fi(8),hi(),di({padding:8}),No({apply({availableHeight:V,elements:W}){Object.assign(W.floating.style,{maxHeight:`${Math.min(V-10,300)}px`})},padding:8}),ps({element:T})],placement:"bottom-start",whileElementsMounted:ui}),R=gs(P),k=pi(P),{getReferenceProps:F,getFloatingProps:z}=yi([R,k]),{isMounted:Q,styles:ee}=vs(P,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ce=(()=>{const V=Array.isArray(e)?e:[];if(!m.trim())return V;const W=m.toLowerCase();return V.filter(H=>{const O=H.label.toLowerCase(),N=H.key.toLowerCase();return O.includes(W)||N.includes(W)})})(),ye=V=>{S(V),h(!1),p(""),n(V)},ue=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var V;return(V=b.current)==null?void 0:V.focus()},100)};I.useEffect(()=>{S(t)},[t]);const te=F({onClick:ue}),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:D.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
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($e,{icon:p?UC:VC,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)})})]})},PL=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:i="en",className:a="",translateKey:o,countries:c=$w})=>{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,T]=I.useState(!1),[w,C]=I.useState(""),[A,$]=I.useState(S||null),[P,R]=I.useState(y),[k,F]=I.useState(!1),z=I.useRef(null),Q=I.useRef(null),ee=I.useRef(null),ce=I.useRef(null),{x:ye,y:ue,strategy:te,refs:oe,context:V,placement:W,middlewareData:H}=gi({open:b,onOpenChange:T,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}),O=gs(V),N=pi(V),{getReferenceProps:X,getFloatingProps:ne}=yi([O,N]),{isMounted:ae,styles:G}=vs(V,{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())}),fe=be=>{$(be),T(!1),C("");const Qe=`${be.phone} ${P}`;d.onChange(Qe),setTimeout(()=>{var Pt;(Pt=ee.current)==null||Pt.focus()},100)},ve=be=>{const Qe=be.target.value;if(R(Qe),A){const Pt=`${A.phone} ${Qe}`;d.onChange(Pt)}},xe=()=>{T(!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=>{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=H.arrow)==null?void 0:wl.x,wi=(Nr=H.arrow)==null?void 0:Nr.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[W.split("-")[0]],bl=X({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 ${a}`,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: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($e,{icon:ew,className:"w-14 h-14 min-w-14 min-h-14"})]}),v.jsx("input",{ref:ee,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:ve,onBlur:Le})]}),bn&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(bn,{x:u(o||"")||e})}),ae&&v.jsxs("div",{ref:oe.setFloating,style:{position:te,top:ue??0,left:ye??0,...G},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...ne(),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(),fe(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")})})]})]})},AL={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},ML={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},OL=e=>{switch(e){case"aqua":return ML;case"blue":default:return AL}},_L=({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,"%"]})]})},IL=()=>{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($e,{icon:W6})}),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"}})]})})},$L="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"},RL={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"},NL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=RL[n];break;case"blue":default:r=DL[n];break}return tr($L,r)},LL=({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=`${NL(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($e,{icon:o,className:ko()}),e]}):v.jsxs("button",{className:`${m} ${a||""}`,onClick:h,disabled:i,children:[o&&v.jsx($e,{icon:o,className:ko()}),e]})},kL="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",jL={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},FL={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},VL="flex h-32 w-32 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",BL={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"},WL={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"},Rw=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=BL[n];break;case"aqua":default:r=WL[n];break}return tr(VL,r)},UL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=FL[n];break;case"blue":default:r=jL[n];break}return tr(kL,r)},zL=({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=`${UL(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:Rw(r,d),children:v.jsx($e,{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:Rw(r,d),children:v.jsx($e,{icon:o,className:"size-16 max-h-16 max-w-16"})}),e]})},GL=e=>{const{display:t,...n}=e;return t==="desktop"?v.jsx(LL,{...n}):t==="mobile"?v.jsx(zL,{...n}):null},YL=({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(HL,{options:e,value:u,onChange:c,label:r,placeholder:i,error:d==null?void 0:d.message,className:a,input:o})}),HL=({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),T=I.useRef(null),{x:w,y:C,strategy:A,refs:$,context:P}=gi({open:d,onOpenChange:h,middleware:[fi(8),hi(),di({padding:8}),No({apply({availableHeight:V,elements:W}){Object.assign(W.floating.style,{maxHeight:`${Math.min(V-10,300)}px`})},padding:8}),ps({element:T})],placement:"bottom-start",whileElementsMounted:ui}),R=gs(P),k=pi(P),{getReferenceProps:F,getFloatingProps:z}=yi([R,k]),{isMounted:Q,styles:ee}=vs(P,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ce=(()=>{const V=Array.isArray(e)?e:[];if(!m.trim())return V;const W=m.toLowerCase();return V.filter(H=>{const O=H.label.toLowerCase(),N=H.key.toLowerCase();return O.includes(W)||N.includes(W)})})(),ye=V=>{S(V),h(!1),p(""),n(V)},ue=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var V;return(V=b.current)==null?void 0:V.focus()},100)};I.useEffect(()=>{S(t)},[t]);const te=F({onClick:ue}),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
730
730
  border transition-all duration-200 hover:border-blue-400
731
- ${a?"border-red-500 hover:border-red-600":""} ${d?"border-blue-400":"border-blue-100"}`,...te,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:oe}),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}),Q&&v.jsxs("div",{ref:D.setFloating,style:{position:A,top:C??0,left:w??0,...ee,width:D.reference.current instanceof Element?D.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:V=>p(V.target.value),onClick:V=>V.stopPropagation(),autoFocus:!0}),m&&v.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:V=>{V.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((V,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)===V.key?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:H=>{H.stopPropagation(),ye(V)},children:v.jsx("span",{children:u(V.label)})},`${V.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:a=!1,color:o})=>{const{defaultColorScheme:c}=ze(),u=o||c,{activeTextColor:d,activeBgColor:h,hoverBgColor:m,activeIconColor:p}=KL(u);return v.jsxs("div",{onClick:()=>!a&&r(),className:`
731
+ ${a?"border-red-500 hover:border-red-600":""} ${d?"border-blue-400":"border-blue-100"}`,...te,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:oe}),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}),Q&&v.jsxs("div",{ref:$.setFloating,style:{position:A,top:C??0,left:w??0,...ee,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:V=>p(V.target.value),onClick:V=>V.stopPropagation(),autoFocus:!0}),m&&v.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:V=>{V.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((V,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)===V.key?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:H=>{H.stopPropagation(),ye(V)},children:v.jsx("span",{children:u(V.label)})},`${V.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,'"']})]})})]})]})},qL={activeTextColor:"text-blue-500",activeBgColor:"bg-blue-100",hoverBgColor:"hover:bg-blue-100",activeIconColor:"text-blue-500"},KL={activeTextColor:"text-aqua-500",activeBgColor:"bg-aqua-100",hoverBgColor:"hover:bg-aqua-100",activeIconColor:"text-aqua-500"},XL=e=>{switch(e){case"aqua":return KL;case"blue":default:return qL}},ZL=({active:e,icon:t,label:n,onClick:r,expanded:i,disabled:a=!1,color:o})=>{const{defaultColorScheme:c}=ze(),u=o||c,{activeTextColor:d,activeBgColor:h,hoverBgColor:m,activeIconColor:p}=XL(u);return v.jsxs("div",{onClick:()=>!a&&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
  ${a?"cursor-not-allowed opacity-50":`cursor-pointer ${m}`}
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:`
735
+ ${e?`${d} ${h}`:"bg-transparent"}`,children:[v.jsx($e,{icon:t,className:e?p:"text-gray-900",style:{height:"16px"}}),v.jsx("h4",{className:`
736
736
  text-md
737
737
  leading-none
738
738
  font-600
@@ -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:a="row"})=>v.jsxs("button",{className:`${ek(i,n)} w-full cursor-pointer transition-all duration-200 ${a==="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(),a=e||i;return v.jsx("button",{type:"button",className:rk(a)+" "+n,...r,children:t})},ik=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:a=!1,leftSide:o,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(),T=b(n),w=b(u);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 ${S&&"text-red-500!"} text-label ${a&&"text-gray-300"}`,children:e}),v.jsxs("label",{htmlFor:n,className:`
744
+ ${e&&d}`,children:n})]})},JL="flex w-full h-full gap-12 px-10 py-6 items-center justify-center",QL={default:"flex-row rounded-full text-blue-500",underline:"flex-col border-b-[1.3px] px-24 pb-16 text-gray-700"},ek={true:"text-blue-500 border-b-blue-500",false:"text-gray-700 border-b-gray-700"},tk=(e="underline",t=!1)=>tr(JL,QL[e],ek[String(t)]),Nw=({label:e,icon:t,isSelected:n,onClick:r,variant:i="default",direction:a="row"})=>v.jsxs("button",{className:`${tk(i,n)} w-full cursor-pointer transition-all duration-200 ${a==="row"&&"flex-row!"}`,onClick:r,children:[t&&v.jsx($e,{icon:t,className:`${n?"text-blue-500":"text-gray-500"} w-20 h-20`}),v.jsx("span",{className:"text-lg font-500",children:e})]}),nk="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",rk={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"},ik=(e="blue")=>tr(nk,rk[e]),Lw=({color:e,children:t,className:n,...r})=>{const{defaultColorScheme:i}=ze(),a=e||i;return v.jsx("button",{type:"button",className:ik(a)+" "+n,...r,children:t})},sk=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:a=!1,leftSide:o,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(),T=b(n),w=b(u);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 ${S&&"text-red-500!"} text-label ${a&&"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!"}
@@ -757,9 +757,9 @@ attempted value: ${o}
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:[o&&o,v.jsx("input",{id:n,name:n,disabled:a,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||T})})]})},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:a="Select an option",placeholder:o="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(V=>V.value===n),T=I.useMemo(()=>e.map(V=>({...V,searchableLabel:typeof V.label=="string"?V.label:I.isValidElement(V.label)?vl(V.label):String(V.label),searchableValue:String(V.value)})),[e]),w=I.useMemo(()=>{const V={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(T,V)},[T]),{x:C,y:A,strategy:D,refs:P,context:R}=gi({open:d,onOpenChange:h,middleware:[fi(8),hi(),di({padding:8}),No({apply({availableHeight:V,elements:W}){Object.assign(W.floating.style,{maxHeight:`${Math.min(V-10,300)}px`})},padding:8}),ps({element:S})],placement:"bottom-start",whileElementsMounted:ui}),k=gs(R),F=pi(R),{getReferenceProps:z,getFloatingProps:Q}=yi([k,F]),{isMounted:ee,styles:ce}=vs(R,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ye=I.useMemo(()=>m.trim()?w.search(m).map(W=>({...W.item,score:W.score,matches:W.matches})):e,[m,w,e]),ue=V=>{t(V.value),h(!1),p("")},oe=z({onClick:()=>{r||(h(!d),!d&&y.current&&u&&setTimeout(()=>{var V;return(V=y.current)==null?void 0:V.focus()},100))}});return v.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[a&&v.jsx("h6",{className:`text-gray-600 font-600 group ${i?"!text-red-500":""} text-label ${r?"text-gray-300":""}`,children:a}),v.jsxs("div",{ref:P.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
760
+ `,children:[o&&o,v.jsx("input",{id:n,name:n,disabled:a,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||T})})]})},ok=({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})]}),ak=({options:e,onChange:t,value:n,disabled:r,error:i,label:a="Select an option",placeholder:o="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(V=>V.value===n),T=I.useMemo(()=>e.map(V=>({...V,searchableLabel:typeof V.label=="string"?V.label:I.isValidElement(V.label)?vl(V.label):String(V.label),searchableValue:String(V.value)})),[e]),w=I.useMemo(()=>{const V={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 hT(T,V)},[T]),{x:C,y:A,strategy:$,refs:P,context:R}=gi({open:d,onOpenChange:h,middleware:[fi(8),hi(),di({padding:8}),No({apply({availableHeight:V,elements:W}){Object.assign(W.floating.style,{maxHeight:`${Math.min(V-10,300)}px`})},padding:8}),ps({element:S})],placement:"bottom-start",whileElementsMounted:ui}),k=gs(R),F=pi(R),{getReferenceProps:z,getFloatingProps:Q}=yi([k,F]),{isMounted:ee,styles:ce}=vs(R,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ye=I.useMemo(()=>m.trim()?w.search(m).map(W=>({...W.item,score:W.score,matches:W.matches})):e,[m,w,e]),ue=V=>{t(V.value),h(!1),p("")},oe=z({onClick:()=>{r||(h(!d),!d&&y.current&&u&&setTimeout(()=>{var V;return(V=y.current)==null?void 0:V.focus()},100))}});return v.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[a&&v.jsx("h6",{className:`text-gray-600 font-600 group ${i?"!text-red-500":""} text-label ${r?"text-gray-300":""}`,children:a}),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}),ee&&v.jsxs("div",{ref:P.setFloating,style:{position:D,top:A??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",...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:V=>p(V.target.value),onClick:V=>V.stopPropagation(),autoFocus:!0}),m&&v.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:V=>{V.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:ye.length>0?v.jsx("ul",{className:"py-4",children:ye.map((V,W)=>v.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${n===V.value?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:H=>{H.stopPropagation(),ue(V)},children:v.jsx("span",{children:V.label})},`${V.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,T;const w=C=>{b||(b=C);const A=C-b,D=Math.min(100,A/r*100);d(D),D<100&&(T=requestAnimationFrame(w))};return T=requestAnimationFrame(w),()=>{T&&cancelAnimationFrame(T)}},[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(k=>`.${k}`).join(","),T=k=>{const F=[];let z=!1;Array.from(k).forEach(Q=>{var ce;const ee=((ce=Q.name.split(".").pop())==null?void 0:ce.toLowerCase())||"";if(!i.includes(ee)){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=k=>{const F=k.target.files;F&&F.length>0&&T(F),k.target.value=""},A=k=>{k.preventDefault(),k.stopPropagation(),m(!0)},D=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 F=k.dataTransfer.files;F.length>0&&T(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:D,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(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}),T=zR(S,{delay:a}),w=KR(S),C=pi(S),A=ZR(S,{role:"tooltip"}),{getReferenceProps:D,getFloatingProps:P}=yi([T,w,C,A]),R=p.split("-")[0],k=uk[R],{x:F,y:z}=b.arrow||{x:0,y:0},Q=I.cloneElement(e,{ref:y.setReference,...D()});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},...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:F!=null?`${F}px`:"",top:z!=null?`${z}px`:"",[k]:"-7px",...fk[R]}})]})})})]})},hk=({progress:e=0,showPercentage:t=!0,showPercentageLabel:n=!1,label:r,percentageLabel:i="progreso",percentageClassName:a="",percentageLabelClassName:o="",labelClassName:c="",className:u="",size:d=120,strokeWidth:h=8,backgroundColor:m="#e5e7eb",animated:p=!0,animationDuration:y="1.5s",colorThresholds:S,lowThreshold:b=30,mediumThreshold:T=70,lowColor:w="#ef4444",mediumColor:C="#eab308",highColor:A="#22c55e",singleColor:D,clockwise:P=!0,startAngle:R=-90})=>{const k=H=>{if(D)return D;if(S&&S.length>0){const O=[...S].sort((N,X)=>N.threshold-X.threshold);for(let N=O.length-1;N>=0;N--)if(H>=O[N].threshold)return O[N].color;return O[0].color}return H<b?w:H<T?C:A},F=H=>{if(!S||S.length===0)return;const O=[...S].sort((N,X)=>N.threshold-X.threshold);for(let N=O.length-1;N>=0;N--)if(H>=O[N].threshold)return O[N].label;return O[0].label},z=Math.min(100,Math.max(0,e)),Q=k(z),ee=F(z),ce=d/2,ye=(d-h)/2,ue=2*Math.PI*ye,te=ue,oe=ue-z/100*ue,W=`rotate(${R} ${ce} ${ce}) scale(${P?1:-1}, 1)`;return v.jsxs("div",{className:`flex flex-col items-center gap-2 ${u}`,children:[v.jsxs("div",{className:"relative",style:{width:d,height:d},children:[v.jsxs("svg",{width:d,height:d,className:"transform -rotate-90",viewBox:`0 0 ${d} ${d}`,children:[v.jsx("circle",{cx:ce,cy:ce,r:ye,fill:"transparent",stroke:m,strokeWidth:h,className:"opacity-20"}),v.jsx("circle",{cx:ce,cy:ce,r:ye,fill:"transparent",stroke:Q,strokeWidth:h,strokeDasharray:te,strokeDashoffset:oe,strokeLinecap:"round",transform:W,className:p?"transition-all ease-out":"",style:p?{transitionDuration:y,transitionProperty:"stroke-dashoffset, stroke"}:{}})]}),v.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:v.jsxs("div",{className:"text-center",children:[t&&v.jsxs("div",{className:`text-2xl font-bold text-gray-800 ${a}`,children:[Math.round(z),"%"]}),(ee||i)&&n&&v.jsx("div",{className:`text-xs text-gray-500 mt-1 ${o}`,children:ee||i})]})})]}),r&&v.jsx("p",{className:`text-gray-500 text-label mt-6 ${c}`,children:r})]})},mk=({progress:e,showPercentage:t=!1,percentageLabel:n="",className:r="",height:i="h-5",backgroundColor:a="bg-gray-200",animated:o=!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,F)=>k.threshold-F.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},T=P=>{if(!u||u.length===0)return;const R=[...u].sort((k,F)=>k.threshold-F.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),A=T(w),D=o?`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 ${a} rounded-full ${i} overflow-hidden`,children:v.jsx("div",{className:`h-full ${C} ${D} 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),"%"]}),A&&v.jsxs("span",{className:"text-xs text-gray-500",children:["(",A,")"]}),v.jsx("span",{className:"text-gray-600",children:n})]})]})},pk=({progress:e=0,showPercentage:t=!0,size:n=120,strokeWidth:r=8,color:i="#4570EB",backgroundColor:a="#E4E4E7",label:o,className:c="",labelClassName:u="",percentageLabel:d="",percentageClassName:h="",showPercentageLabel:m=!1,percentageLabelClassName:p="",clockwise:y=!0,startAngle:S=-90})=>{const b=Math.min(100,Math.max(0,e)),T=n/2,w=(n-r)/2,C=2*Math.PI*w,A=C,D=C-b/100*C,R=`rotate(${S} ${T} ${T}) scale(${y?1:-1}, 1)`;return v.jsxs("div",{className:`flex flex-col items-center gap-2 ${c}`,children:[v.jsxs("div",{className:"relative",style:{width:n,height:n},children:[v.jsxs("svg",{width:n,height:n,className:"transform -rotate-90",viewBox:`0 0 ${n} ${n}`,children:[v.jsx("circle",{cx:T,cy:T,r:w,fill:"transparent",stroke:a,strokeWidth:r,className:"opacity-20"}),v.jsx("circle",{cx:T,cy:T,r:w,fill:"transparent",stroke:i,strokeWidth:r,strokeDasharray:A,strokeDashoffset:D,strokeLinecap:"round",transform:R,className:"transition-all ease-out",style:{transitionDuration:"1.5s",transitionProperty:"stroke-dashoffset, stroke"}})]}),v.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:v.jsxs("div",{className:"text-center",children:[t&&v.jsxs("div",{className:`text-2xl font-bold text-gray-800 ${h}`,children:[Math.round(b),"%"]}),d&&m&&v.jsx("div",{className:`text-xs text-gray-500 mt-1 ${p}`,children:d})]})})]}),o&&v.jsx("p",{className:`text-gray-500 text-label mt-6 ${u}`,children:o})]})},gk=({active:e,onClick:t})=>{const{defaultColorScheme:n}=ze();return v.jsxs("button",{onClick:t,className:`
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}),ee&&v.jsxs("div",{ref:P.setFloating,style:{position:$,top:A??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",...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:V=>p(V.target.value),onClick:V=>V.stopPropagation(),autoFocus:!0}),m&&v.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:V=>{V.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:ye.length>0?v.jsx("ul",{className:"py-4",children:ye.map((V,W)=>v.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${n===V.value?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:H=>{H.stopPropagation(),ue(V)},children:v.jsx("span",{children:V.label})},`${V.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(" "):""},kw=({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,T;const w=C=>{b||(b=C);const A=C-b,$=Math.min(100,A/r*100);d($),$<100&&(T=requestAnimationFrame(w))};return T=requestAnimationFrame(w),()=>{T&&cancelAnimationFrame(T)}},[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),"%"]})]})]})},lk=({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(k=>`.${k}`).join(","),T=k=>{const F=[];let z=!1;Array.from(k).forEach(Q=>{var ce;const ee=((ce=Q.name.split(".").pop())==null?void 0:ce.toLowerCase())||"";if(!i.includes(ee)){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=k=>{const F=k.target.files;F&&F.length>0&&T(F),k.target.value=""},A=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 F=k.dataTransfer.files;F.length>0&&T(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(kw,{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: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(Lw,{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,ck=1e3,uk="300px",fk={top:"bottom",right:"left",bottom:"top",left:"right"},dk={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`}},hk=({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}),T=GR(S,{delay:a}),w=XR(S),C=pi(S),A=JR(S,{role:"tooltip"}),{getReferenceProps:$,getFloatingProps:P}=yi([T,w,C,A]),R=p.split("-")[0],k=fk[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:ck,width:"max-content",maxWidth:uk},...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:F!=null?`${F}px`:"",top:z!=null?`${z}px`:"",[k]:"-7px",...dk[R]}})]})})})]})},mk=({progress:e=0,showPercentage:t=!0,showPercentageLabel:n=!1,label:r,percentageLabel:i="progreso",percentageClassName:a="",percentageLabelClassName:o="",labelClassName:c="",className:u="",size:d=120,strokeWidth:h=8,backgroundColor:m="#e5e7eb",animated:p=!0,animationDuration:y="1.5s",colorThresholds:S,lowThreshold:b=30,mediumThreshold:T=70,lowColor:w="#ef4444",mediumColor:C="#eab308",highColor:A="#22c55e",singleColor:$,clockwise:P=!0,startAngle:R=-90})=>{const k=H=>{if($)return $;if(S&&S.length>0){const O=[...S].sort((N,X)=>N.threshold-X.threshold);for(let N=O.length-1;N>=0;N--)if(H>=O[N].threshold)return O[N].color;return O[0].color}return H<b?w:H<T?C:A},F=H=>{if(!S||S.length===0)return;const O=[...S].sort((N,X)=>N.threshold-X.threshold);for(let N=O.length-1;N>=0;N--)if(H>=O[N].threshold)return O[N].label;return O[0].label},z=Math.min(100,Math.max(0,e)),Q=k(z),ee=F(z),ce=d/2,ye=(d-h)/2,ue=2*Math.PI*ye,te=ue,oe=ue-z/100*ue,W=`rotate(${R} ${ce} ${ce}) scale(${P?1:-1}, 1)`;return v.jsxs("div",{className:`flex flex-col items-center gap-2 ${u}`,children:[v.jsxs("div",{className:"relative",style:{width:d,height:d},children:[v.jsxs("svg",{width:d,height:d,className:"transform -rotate-90",viewBox:`0 0 ${d} ${d}`,children:[v.jsx("circle",{cx:ce,cy:ce,r:ye,fill:"transparent",stroke:m,strokeWidth:h,className:"opacity-20"}),v.jsx("circle",{cx:ce,cy:ce,r:ye,fill:"transparent",stroke:Q,strokeWidth:h,strokeDasharray:te,strokeDashoffset:oe,strokeLinecap:"round",transform:W,className:p?"transition-all ease-out":"",style:p?{transitionDuration:y,transitionProperty:"stroke-dashoffset, stroke"}:{}})]}),v.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:v.jsxs("div",{className:"text-center",children:[t&&v.jsxs("div",{className:`text-2xl font-bold text-gray-800 ${a}`,children:[Math.round(z),"%"]}),(ee||i)&&n&&v.jsx("div",{className:`text-xs text-gray-500 mt-1 ${o}`,children:ee||i})]})})]}),r&&v.jsx("p",{className:`text-gray-500 text-label mt-6 ${c}`,children:r})]})},pk=({progress:e,showPercentage:t=!1,percentageLabel:n="",className:r="",height:i="h-5",backgroundColor:a="bg-gray-200",animated:o=!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,F)=>k.threshold-F.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},T=P=>{if(!u||u.length===0)return;const R=[...u].sort((k,F)=>k.threshold-F.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),A=T(w),$=o?`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 ${a} 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),"%"]}),A&&v.jsxs("span",{className:"text-xs text-gray-500",children:["(",A,")"]}),v.jsx("span",{className:"text-gray-600",children:n})]})]})},gk=({progress:e=0,showPercentage:t=!0,size:n=120,strokeWidth:r=8,color:i="#4570EB",backgroundColor:a="#E4E4E7",label:o,className:c="",labelClassName:u="",percentageLabel:d="",percentageClassName:h="",showPercentageLabel:m=!1,percentageLabelClassName:p="",clockwise:y=!0,startAngle:S=-90})=>{const b=Math.min(100,Math.max(0,e)),T=n/2,w=(n-r)/2,C=2*Math.PI*w,A=C,$=C-b/100*C,R=`rotate(${S} ${T} ${T}) scale(${y?1:-1}, 1)`;return v.jsxs("div",{className:`flex flex-col items-center gap-2 ${c}`,children:[v.jsxs("div",{className:"relative",style:{width:n,height:n},children:[v.jsxs("svg",{width:n,height:n,className:"transform -rotate-90",viewBox:`0 0 ${n} ${n}`,children:[v.jsx("circle",{cx:T,cy:T,r:w,fill:"transparent",stroke:a,strokeWidth:r,className:"opacity-20"}),v.jsx("circle",{cx:T,cy:T,r:w,fill:"transparent",stroke:i,strokeWidth:r,strokeDasharray:A,strokeDashoffset:$,strokeLinecap:"round",transform:R,className:"transition-all ease-out",style:{transitionDuration:"1.5s",transitionProperty:"stroke-dashoffset, stroke"}})]}),v.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:v.jsxs("div",{className:"text-center",children:[t&&v.jsxs("div",{className:`text-2xl font-bold text-gray-800 ${h}`,children:[Math.round(b),"%"]}),d&&m&&v.jsx("div",{className:`text-xs text-gray-500 mt-1 ${p}`,children:d})]})})]}),o&&v.jsx("p",{className:`text-gray-500 text-label mt-6 ${u}`,children:o})]})},yk=({active:e,onClick:t})=>{const{defaultColorScheme:n}=ze();return v.jsxs("button",{onClick:t,className:`
763
763
  relative inline-flex min-h-24 min-w-48 items-center rounded-full
764
764
  transition-colors duration-200 ease-in-out focus:outline-none
765
765
  shadow-lg
@@ -768,4 +768,4 @@ attempted value: ${o}
768
768
  inline-block h-20 w-20 transform rounded-full bg-white
769
769
  transition-transform duration-200 ease-in-out drop-shadow-xl
770
770
  ${e?"translate-x-24":"translate-x-3"}
771
- `})]})},yk="Alejo",vk=({theme:e={},children:t})=>{const n={...Od,...e};return v.jsx(bx.Provider,{value:n,children:t})};se.ActionButton=kC,se.AlertModal=xx,se.AsyncToast=tv,se.Avatar=cw,se.BoxContainer=bs,se.Button=jo,se.CalendarSelector=Xd,se.CenterModal=gw,se.Checkbox=RN,se.CircleProgress=pk,se.CountryDropdown=pL,se.CountryInput=hL,se.CountryLabel=mL,se.DateInput=iN,se.DialogModal=rw,se.Divider=pw,se.Dropdown=aN,se.FileUpload=lN,se.FloatingMenu=Lo,se.IconButton=uh,se.ImageProfileInput=vL,se.IndexedStep=sw,se.IndexedStepper=cN,se.InfoCard=xL,se.InformationContainer=ow,se.InformationDisclaimer=SL,se.LoadingProgress=Lw,se.LoadingSpinner=TL,se.ModalContainer=xN,se.Organism=yk,se.PasswordInput=EL,se.PhoneInput=CL,se.ProgressBar=OL,se.SearchBar=_L,se.SearchModal=fN,se.SectionButton=zL,se.SelectInput=GL,se.SidebarButton=XL,se.Stepper=gN,se.Switch=gk,se.Tab=Rw,se.Tabs=yN,se.TextButton=Nw,se.TextInput=ik,se.TextStaticInput=sk,se.ThemeProvider=vk,se.ThresholdCircleProgress=hk,se.ThresholdProgressBar=mk,se.Toast=pf,se.Tooltip=dk,se.UncontrolledDateInput=bN,se.UncontrolledSelector=ok,se.UncontrolledTextInput=Zd,se.UploadContainer=ak,se.capitalizeFirstLetter=xv,se.closeModal=TN,se.defaultTheme=Od,se.formatLocalizedDate=cD,se.getImageUrl=Sv,se.openCustomModal=SN,se.openModal=wN,se.renderTabContent=EN,se.showToastAsync=th,se.showToastLoading=lw,se.stringToColor=gf,se.toBase64=uD,se.toast=CN,se.translateBytes=wv,se.useTheme=ze,se.yupImageProfileValidator=bL,Object.defineProperty(se,Symbol.toStringTag,{value:"Module"})});
771
+ `})]})},vk="Alejo",bk=({theme:e={},children:t})=>{const n={...Od,...e};return v.jsx(bx.Provider,{value:n,children:t})};se.ActionButton=jC,se.AlertModal=xx,se.AsyncToast=tv,se.Avatar=cw,se.BoxContainer=bs,se.Button=jo,se.CalendarSelector=Xd,se.CenterModal=gw,se.Checkbox=NN,se.CircleProgress=gk,se.CountryDropdown=gL,se.CountryInput=mL,se.CountryLabel=pL,se.DateInput=sN,se.DialogModal=rw,se.Divider=pw,se.Dropdown=lN,se.FileUpload=cN,se.FloatingMenu=Lo,se.IconButton=uh,se.ImageProfileInput=bL,se.IndexedStep=sw,se.IndexedStepper=uN,se.InfoCard=wL,se.InformationContainer=ow,se.InformationDisclaimer=TL,se.LoadingProgress=kw,se.LoadingSpinner=EL,se.ModalContainer=wN,se.Organism=vk,se.PasswordInput=CL,se.PhoneInput=PL,se.ProgressBar=_L,se.SearchBar=IL,se.SearchModal=dN,se.SectionButton=GL,se.SelectInput=YL,se.SidebarButton=ZL,se.Stepper=yN,se.Switch=yk,se.Tab=Nw,se.Tabs=vN,se.TextButton=Lw,se.TextInput=sk,se.TextStaticInput=ok,se.ThemeProvider=bk,se.ThresholdCircleProgress=mk,se.ThresholdProgressBar=pk,se.Toast=pf,se.Tooltip=hk,se.UncontrolledDateInput=xN,se.UncontrolledSelector=ak,se.UncontrolledTextInput=Zd,se.UploadContainer=lk,se.capitalizeFirstLetter=xv,se.closeModal=EN,se.defaultTheme=Od,se.formatLocalizedDate=u$,se.getImageUrl=Sv,se.openCustomModal=TN,se.openModal=SN,se.renderTabContent=CN,se.showToastAsync=th,se.showToastLoading=lw,se.stringToColor=gf,se.toBase64=f$,se.toast=PN,se.translateBytes=wv,se.useTheme=ze,se.yupImageProfileValidator=xL,Object.defineProperty(se,Symbol.toStringTag,{value:"Module"})});