lawgic-dev-kit 0.18.2 → 0.18.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.
Files changed (26) hide show
  1. package/dist/_virtual/index2.js +2 -3
  2. package/dist/_virtual/index3.js +3 -3
  3. package/dist/_virtual/index4.js +3 -5
  4. package/dist/_virtual/index5.js +5 -2
  5. package/dist/components/atoms/LoadingProgress/LoadingProgress.d.ts +1 -0
  6. package/dist/components/atoms/LoadingProgress/LoadingProgress.js +14 -13
  7. package/dist/components/atoms/TextInput/TextInput.d.ts +1 -1
  8. package/dist/components/atoms/TextInput/TextInput.js +50 -34
  9. package/dist/components/atoms/TextInput/TextInput.types.d.ts +3 -2
  10. package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.js +41 -25
  11. package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +2 -1
  12. package/dist/components/atoms/UploadContainer/UploadContainer.js +139 -79
  13. package/dist/components/atoms/UploadContainer/UploadContainer.types.d.ts +2 -0
  14. package/dist/lawgic-dev-kit.css +1 -1
  15. package/dist/lawgic-dev-kit.umd.js +53 -53
  16. package/dist/node_modules/@fortawesome/pro-regular-svg-icons/index.js +10 -4
  17. package/dist/node_modules/prop-types/index.js +1 -1
  18. package/dist/node_modules/yup/index.esm.js +3 -3
  19. package/dist/src/components/atoms/LoadingProgress/LoadingProgress.d.ts +13 -0
  20. package/dist/src/components/atoms/TextInput/TextInput.d.ts +5 -0
  21. package/dist/src/components/atoms/TextInput/TextInput.types.d.ts +13 -0
  22. package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +14 -0
  23. package/dist/src/components/atoms/UploadContainer/UploadContainer.types.d.ts +37 -0
  24. package/package.json +1 -1
  25. package/dist/src/components/molecules/AutocompleteInput/AutocompleteInput.d.ts +0 -3
  26. package/dist/src/components/molecules/AutocompleteInput/AutocompleteInput.types.d.ts +0 -25
@@ -1,4 +1,4 @@
1
- (function(se,_){typeof exports=="object"&&typeof module<"u"?_(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"],_):(se=typeof globalThis<"u"?globalThis:se||self,_(se.lawgicDevKit={},se.React,se.reactHookForm,se.Fuse,se.ReactDOM))})(this,function(se,_,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 ee=Om(_),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:{}},ks={};/**
1
+ (function(se,_){typeof exports=="object"&&typeof module<"u"?_(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"],_):(se=typeof globalThis<"u"?globalThis:se||self,_(se.lawgicDevKit={},se.React,se.reactHookForm,se.Fuse,se.ReactDOM))})(this,function(se,_,hr,dT,hT){"use strict";function _m(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 ee=_m(_),mT=_m(hT);var ea=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Im(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ta={exports:{}},js={};/**
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 ks;Im=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var a=null;if(o!==void 0&&(a=""+o),i.key!==void 0&&(a=""+i.key),"key"in i){o={};for(var c in i)c!=="key"&&(o[c]=i[c])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:a,ref:i!==void 0?i:null,props:o}}return ks.Fragment=t,ks.jsx=n,ks.jsxs=n,ks}var js={};/**
9
+ */var $m;function pT(){if($m)return js;$m=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var a=null;if(o!==void 0&&(a=""+o),i.key!==void 0&&(a=""+i.key),"key"in i){o={};for(var c in i)c!=="key"&&(o[c]=i[c])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:a,ref:i!==void 0?i:null,props:o}}return js.Fragment=t,js.jsx=n,js.jsxs=n,js}var Fs={};/**
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 $m;function gT(){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===J?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 A:return"Suspense";case D: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 P:return(O.displayName||"Context")+".Provider";case E: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 K=N.error,oe=typeof Symbol=="function"&&Symbol.toStringTag&&O[Symbol.toStringTag]||O.constructor.name||"Object";return K.call(N,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",oe),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=ne.A;return O===null?null:O.getOwner()}function o(){return Error("react-stack-top-frame")}function a(O){if(le.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 K(){ue||(ue=!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))}K.isReactWarning=!0,Object.defineProperty(O,"key",{get:K,configurable:!0})}function u(){var O=e(this.type);return he[O]||(he[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,K,oe,Z,q,Q,ae){return K=q.ref,O={$$typeof:y,type:O,key:N,props:q,_owner:Z},(K!==void 0?K: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:Q}),Object.defineProperty(O,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ae}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O}function h(O,N,K,oe,Z,q,Q,ae){var re=N.children;if(re!==void 0)if(oe)if(ye(re)){for(oe=0;oe<re.length;oe++)m(re[oe]);Object.freeze&&Object.freeze(re)}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(re);if(le.call(N,"key")){re=e(O);var fe=Object.keys(N).filter(function(Ve){return Ve!=="key"});oe=0<fe.length?"{key: someKey, "+fe.join(": ..., ")+": ...}":"{key: someKey}",G[re+oe]||(fe=0<fe.length?"{"+fe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
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===X?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 A:return"Suspense";case D:return"SuspenseList";case U: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 P:return(O.displayName||"Context")+".Provider";case E: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 V:return N=O.displayName||null,N!==null?N:e(O.type)||"Memo";case j: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 K=N.error,ae=typeof Symbol=="function"&&Symbol.toStringTag&&O[Symbol.toStringTag]||O.constructor.name||"Object";return K.call(N,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ae),t(O)}}function r(O){if(O===b)return"<>";if(typeof O=="object"&&O!==null&&O.$$typeof===j)return"<...>";try{var N=e(O);return N?"<"+N+">":"<...>"}catch{return"<...>"}}function i(){var O=ne.A;return O===null?null:O.getOwner()}function o(){return Error("react-stack-top-frame")}function a(O){if(oe.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 K(){fe||(fe=!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))}K.isReactWarning=!0,Object.defineProperty(O,"key",{get:K,configurable:!0})}function u(){var O=e(this.type);return he[O]||(he[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,K,ae,J,q,Q,le){return K=q.ref,O={$$typeof:y,type:O,key:N,props:q,_owner:J},(K!==void 0?K: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:Q}),Object.defineProperty(O,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:le}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O}function h(O,N,K,ae,J,q,Q,le){var re=N.children;if(re!==void 0)if(ae)if(ge(re)){for(ae=0;ae<re.length;ae++)m(re[ae]);Object.freeze&&Object.freeze(re)}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(re);if(oe.call(N,"key")){re=e(O);var de=Object.keys(N).filter(function(Ve){return Ve!=="key"});ae=0<de.length?"{key: someKey, "+de.join(": ..., ")+": ...}":"{key: someKey}",G[re+ae]||(de=0<de.length?"{"+de.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} />`,oe,re,fe,re),G[re+oe]=!0)}if(re=null,K!==void 0&&(n(K),re=""+K),a(N)&&(n(N.key),re=""+N.key),"key"in N){K={};for(var Ce in N)Ce!=="key"&&(K[Ce]=N[Ce])}else K=N;return re&&c(K,typeof O=="function"?O.displayName||O.name||"Unknown":O),d(O,re,q,Z,i(),K,Q,ae)}function m(O){typeof O=="object"&&O!==null&&O.$$typeof===y&&O._store&&(O._store.validated=1)}var p=_,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"),E=Symbol.for("react.consumer"),P=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),J=Symbol.for("react.client.reference"),ne=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le=Object.prototype.hasOwnProperty,ye=Array.isArray,de=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function(O){return O()}};var ue,he={},V=p["react-stack-bottom-frame"].bind(p,o)(),B=de(r(o)),G={};js.Fragment=b,js.jsx=function(O,N,K,oe,Z){var q=1e4>ne.recentlyCreatedOwnerStacks++;return h(O,N,K,!1,oe,Z,q?Error("react-stack-top-frame"):V,q?de(r(O)):B)},js.jsxs=function(O,N,K,oe,Z){var q=1e4>ne.recentlyCreatedOwnerStacks++;return h(O,N,K,!0,oe,Z,q?Error("react-stack-top-frame"):V,q?de(r(O)):B)}}()),js}var Dm;function yT(){return Dm||(Dm=1,process.env.NODE_ENV==="production"?ta.exports=pT():ta.exports=gT()),ta.exports}var v=yT();/*!
22
+ <%s key={someKey} {...props} />`,ae,re,de,re),G[re+ae]=!0)}if(re=null,K!==void 0&&(n(K),re=""+K),a(N)&&(n(N.key),re=""+N.key),"key"in N){K={};for(var Ce in N)Ce!=="key"&&(K[Ce]=N[Ce])}else K=N;return re&&c(K,typeof O=="function"?O.displayName||O.name||"Unknown":O),d(O,re,q,J,i(),K,Q,le)}function m(O){typeof O=="object"&&O!==null&&O.$$typeof===y&&O._store&&(O._store.validated=1)}var p=_,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"),E=Symbol.for("react.consumer"),P=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),X=Symbol.for("react.client.reference"),ne=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe=Object.prototype.hasOwnProperty,ge=Array.isArray,ue=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function(O){return O()}};var fe,he={},F=p["react-stack-bottom-frame"].bind(p,o)(),B=ue(r(o)),G={};Fs.Fragment=b,Fs.jsx=function(O,N,K,ae,J){var q=1e4>ne.recentlyCreatedOwnerStacks++;return h(O,N,K,!1,ae,J,q?Error("react-stack-top-frame"):F,q?ue(r(O)):B)},Fs.jsxs=function(O,N,K,ae,J){var q=1e4>ne.recentlyCreatedOwnerStacks++;return h(O,N,K,!0,ae,J,q?Error("react-stack-top-frame"):F,q?ue(r(O)):B)}}()),Fs}var Rm;function yT(){return Rm||(Rm=1,process.env.NODE_ENV==="production"?ta.exports=pT():ta.exports=gT()),ta.exports}var v=yT();/*!
23
23
  * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
24
24
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
25
25
  * Copyright 2024 Fonticons, Inc.
26
- */function vT(e,t,n){return(t=xT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function te(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"],$T={kit:{"fa-kit":"fak"}},DT=["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",Jr="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 Fs(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const Jm=te({},Wm);Jm[wt]=te(te(te(te({},{"fa-duotone":"duotone"}),Wm[wt]),Gm.kit),Gm["kit-duotone"]);const qT=Fs(Jm),vc=te({},OT);vc[wt]=te(te(te(te({},{duotone:"fad"}),vc[wt]),Ym.kit),Ym["kit-duotone"]);const Qm=Fs(vc),bc=te({},dc);bc[wt]=te(te({},bc[wt]),RT.kit);const xc=Fs(bc),wc=te({},jT);wc[wt]=te(te({},wc[wt]),$T.kit),Fs(wc);const KT=wT,ep="fa-layers-text",XT=ST,ZT=te({},PT);Fs(ZT);const JT=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Sc=TT,QT=[...IT,...UT],Vs=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&&(Vs[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};Vs.familyPrefix&&(Vs.cssPrefix=Vs.familyPrefix);const Ni=te(te({},tp),Vs);Ni.autoReplaceSvg||(Ni.observeMutations=!1);const ve={};Object.keys(tp).forEach(e=>{Object.defineProperty(ve,e,{enumerable:!0,set:function(t){Ni[e]=t,Bs.forEach(n=>n(ve))},get:function(){return Ni[e]}})}),Object.defineProperty(ve,"familyPrefix",{enumerable:!0,set:function(e){Ni.cssPrefix=e,Bs.forEach(t=>t(ve))},get:function(){return Ni.cssPrefix}}),mr.FontAwesomeConfig=ve;const Bs=[];function nE(e){return Bs.push(e),()=>{Bs.splice(Bs.indexOf(e),1)}}const pr=mc,Cn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function rE(e){if(!e||!zn)return;const t=Xe.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Xe.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return Xe.head.insertBefore(t,r),e}const iE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Ws(){let e=12,t="";for(;e-- >0;)t+=iE[Math.random()*62|0];return t}function Li(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Tc(e){return e.classList?Li(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)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),c="rotate(".concat(t.rotate," 0 0)"),u={transform:"".concat(o," ").concat(a," ").concat(c)},d={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:u,path:d}}function aE(e){let{transform:t,width:n=mc,height:r=mc,startCentered:i=!1}=e,o="";return i&&Bm?o+="translate(".concat(t.x/pr-n/2,"em, ").concat(t.y/pr-r/2,"em) "):i?o+="translate(calc(-50% + ".concat(t.x/pr,"em), calc(-50% + ").concat(t.y/pr,"em)) "):o+="translate(".concat(t.x/pr,"em, ").concat(t.y/pr,"em) "),o+="scale(".concat(t.size/pr*(t.flipX?-1:1),", ").concat(t.size/pr*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var lE=`:root, :host {
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 Nm(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 te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Nm(Object(n),!0).forEach(function(r){vT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nm(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 Lm=()=>{};let fc={},km={},jm=null,Fm={mark:Lm,measure:Lm};try{typeof window<"u"&&(fc=window),typeof document<"u"&&(km=document),typeof MutationObserver<"u"&&(jm=MutationObserver),typeof performance<"u"&&(Fm=performance)}catch{}const{userAgent:Vm=""}=fc.navigator||{},mr=fc,Xe=km,Bm=jm,na=Fm;mr.document;const zn=!!Xe.documentElement&&!!Xe.head&&typeof Xe.addEventListener=="function"&&typeof Xe.createElement=="function",Wm=~Vm.indexOf("MSIE")||~Vm.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,Um={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"},zm=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",ra="duotone",ET="sharp",CT="sharp-duotone",Gm=[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"],Ym={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},IT=["kit"],$T={kit:{"fa-kit":"fak"}},DT=["fak","fakd"],RT={kit:{fak:"fa-kit"}},Hm={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"],qm=[1,2,3,4,5,6,7,8,9,10],WT=qm.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(qm.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,Km="fa",Xm="svg-inline--fa",Jr="data-fa-i2svg",pc="data-fa-pseudo-element",GT="data-fa-pseudo-element-pending",gc="data-prefix",yc="data-icon",Zm="fontawesome-i2svg",YT="async",HT=["HTML","HEAD","STYLE","SCRIPT"],Jm=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Vs(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const Qm=te({},Um);Qm[wt]=te(te(te(te({},{"fa-duotone":"duotone"}),Um[wt]),Ym.kit),Ym["kit-duotone"]);const qT=Vs(Qm),vc=te({},OT);vc[wt]=te(te(te(te({},{duotone:"fad"}),vc[wt]),Hm.kit),Hm["kit-duotone"]);const ep=Vs(vc),bc=te({},dc);bc[wt]=te(te({},bc[wt]),RT.kit);const xc=Vs(bc),wc=te({},jT);wc[wt]=te(te({},wc[wt]),$T.kit),Vs(wc);const KT=wT,tp="fa-layers-text",XT=ST,ZT=te({},PT);Vs(ZT);const JT=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Sc=TT,QT=[...IT,...UT],Bs=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&&(Bs[r]=i)});const np={styleDefault:"solid",familyDefault:wt,cssPrefix:Km,replacementClass:Xm,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Bs.familyPrefix&&(Bs.cssPrefix=Bs.familyPrefix);const Ni=te(te({},np),Bs);Ni.autoReplaceSvg||(Ni.observeMutations=!1);const ve={};Object.keys(np).forEach(e=>{Object.defineProperty(ve,e,{enumerable:!0,set:function(t){Ni[e]=t,Ws.forEach(n=>n(ve))},get:function(){return Ni[e]}})}),Object.defineProperty(ve,"familyPrefix",{enumerable:!0,set:function(e){Ni.cssPrefix=e,Ws.forEach(t=>t(ve))},get:function(){return Ni.cssPrefix}}),mr.FontAwesomeConfig=ve;const Ws=[];function nE(e){return Ws.push(e),()=>{Ws.splice(Ws.indexOf(e),1)}}const pr=mc,Cn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function rE(e){if(!e||!zn)return;const t=Xe.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Xe.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return Xe.head.insertBefore(t,r),e}const iE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Us(){let e=12,t="";for(;e-- >0;)t+=iE[Math.random()*62|0];return t}function Li(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Tc(e){return e.classList?Li(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function rp(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(rp(e[n]),'" '),"").trim()}function sa(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Ec(e){return e.size!==Cn.size||e.x!==Cn.x||e.y!==Cn.y||e.rotate!==Cn.rotate||e.flipX||e.flipY}function oE(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),c="rotate(".concat(t.rotate," 0 0)"),u={transform:"".concat(o," ").concat(a," ").concat(c)},d={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:u,path:d}}function aE(e){let{transform:t,width:n=mc,height:r=mc,startCentered:i=!1}=e,o="";return i&&Wm?o+="translate(".concat(t.x/pr-n/2,"em, ").concat(t.y/pr-r/2,"em) "):i?o+="translate(calc(-50% + ".concat(t.x/pr,"em), calc(-50% + ").concat(t.y/pr,"em)) "):o+="translate(".concat(t.x/pr,"em, ").concat(t.y/pr,"em) "),o+="scale(".concat(t.size/pr*(t.flipX?-1:1),", ").concat(t.size/pr*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var lE=`:root, :host {
27
27
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
28
28
  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
29
29
  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
@@ -576,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=ve.cssPrefix,r=ve.replacementClass;let i=lE;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),c=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(c,".".concat(r))}return i}let ip=!1;function Cc(){ve.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 Us(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?np(e):"<".concat(t," ").concat(sE(n),">").concat(r.map(Us).join(""),"</").concat(t,">")}function ap(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Pc=function(t,n,r,i){var o=Object.keys(t),a=o.length,c=n,u,d,h;for(r===void 0?(u=1,h=t[o[0]]):(u=0,h=r);u<a;u++)d=o[u],h=c(h,t[d],d,t);return h};function fE(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function Ac(e){const t=fE(e);return t.length===1?t[0].toString(16):null}function dE(e,t){const n=e.length;let r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function lp(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function Mc(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=lp(t);typeof Pn.hooks.addPack=="function"&&!r?Pn.hooks.addPack(e,lp(t)):Pn.styles[e]=te(te({},Pn.styles[e]||{}),i),e==="fas"&&Mc("fa",t)}const{styles:zs,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(zs,(i,o,a)=>(i[a]=Pc(o,r,{}),i),{});up=e((r,i,o)=>(i[3]&&(r[i[3]]=o),i[2]&&i[2].filter(c=>typeof c=="number").forEach(c=>{r[c.toString(16)]=o}),r)),fp=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(c=>typeof c=="string").forEach(c=>{r[c]=o}),r)),mp=e((r,i,o)=>{const a=i[2];return r[o]=o,a.forEach(c=>{r[c]=o}),r});const t="far"in zs||ve.autoFetchSvg,n=Pc(hE,(r,i)=>{const o=i[0];let a=i[1];const c=i[2];return a==="far"&&!t&&(a="fas"),typeof o=="string"&&(r.names[o]={prefix:a,iconName:c}),typeof o=="number"&&(r.unicodes[o.toString(16)]={prefix:a,iconName:c}),r},{names:{},unicodes:{}});dp=n.names,hp=n.unicodes,Oc=aa(ve.styleDefault,{family:ve.familyDefault})};nE(e=>{Oc=aa(e.styleDefault,{family:ve.familyDefault})}),pp();function _c(e,t){return(up[e]||{})[t]}function yE(e,t){return(fp[e]||{})[t]}function Qr(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(ve.cssPrefix,"-").concat(i),r),{});return zm.forEach(r=>{(e.includes(n[r])||e.some(i=>mE[r].includes(i)))&&(t=r)}),t}function aa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=wt}=t,r=qT[n][e];if(n===ra&&!e)return"fad";const i=Qm[n][e]||Qm[n][r],o=e in Pn.styles?e:null;return i||o||null}function xE(e){let t=[],n=null;return e.forEach(r=>{const i=gE(ve.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function vp(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function la(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=hc.concat(LT),o=vp(e.filter(m=>i.includes(m))),a=vp(e.filter(m=>!hc.includes(m))),c=o.filter(m=>(r=m,!Um.includes(m))),[u=null]=c,d=bE(o),h=te(te({},xE(a)),{},{prefix:aa(u,{family:d})});return te(te(te({},h),EE({values:e,family:d,styles:zs,config:ve,canonical:h,givenPrefix:r})),wE(n,r,h))}function wE(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const o=t==="fa"?gp(i):{},a=Qr(r,i);return i=o.iconName||a||i,r=o.prefix||r,r==="far"&&!zs.far&&zs.fas&&!ve.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const SE=zm.filter(e=>e!==wt||e!==ra),TE=Object.keys(dc).filter(e=>e!==wt).map(e=>Object.keys(dc[e])).flat();function EE(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:o={},config:a={}}=e,c=n===ra,u=t.includes("fa-duotone")||t.includes("fad"),d=a.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!c&&(u||d||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&SE.includes(n)&&(Object.keys(o).find(p=>TE.includes(p))||a.autoFetchSvg)){const p=MT.get(n).defaultShortPrefixId;r.prefix=p,r.iconName=Qr(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||i==="fa")&&(r.prefix=gr()||"fas"),r}class CE{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach(o=>{this.definitions[o]=te(te({},this.definitions[o]||{}),i[o]),Mc(o,i[o]);const a=xc[wt][o];a&&Mc(a,i[o]),pp()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(i=>{const{prefix:o,iconName:a,icon:c}=r[i],u=c[2];t[o]||(t[o]={}),u.length>0&&u.forEach(d=>{typeof d=="string"&&(t[o][d]=c)}),t[o][a]=c}),t}}let bp=[],ki={};const ji={},PE=Object.keys(ji);function AE(e,t){let{mixoutsTo:n}=t;return bp=e,ki={},Object.keys(ji).forEach(r=>{PE.indexOf(r)===-1&&delete ji[r]}),bp.forEach(r=>{const i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(o=>{typeof i[o]=="function"&&(n[o]=i[o]),typeof i[o]=="object"&&Object.keys(i[o]).forEach(a=>{n[o]||(n[o]={}),n[o][a]=i[o][a]})}),r.hooks){const o=r.hooks();Object.keys(o).forEach(a=>{ki[a]||(ki[a]=[]),ki[a].push(o[a])})}r.provides&&r.provides(ji)}),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(ki[e]||[]).forEach(a=>{t=a.apply(null,[t,...r])}),t}function ei(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(ki[e]||[]).forEach(o=>{o.apply(null,n)})}function yr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return ji[e]?ji[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=Qr(n,t)||t,ap(xp.definitions,n,t)||ap(Pn.styles,n,t)}const xp=new CE,zt={noAuto:()=>{ve.autoReplaceSvg=!1,ve.observeMutations=!1,ei("noAuto")},config:ve,dom:{i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return zn?(ei("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;ve.autoReplaceSvg===!1&&(ve.autoReplaceSvg=!0),ve.observeMutations=!0,uE(()=>{ME({autoReplaceSvgRoot:t}),ei("watch",e)})}},parse:{icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Qr(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:Qr(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(ve.cssPrefix,"-"))>-1||e.match(KT))){const t=la(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||gr(),iconName:Qr(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=gr();return{prefix:t,iconName:Qr(t,e)||e}}}},library:xp,findIconDefinition:$c,toHtml:Us},ME=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Xe}=e;(Object.keys(Pn.styles).length>0||ve.autoFetchSvg)&&zn&&ve.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=>Us(n))}}),Object.defineProperty(e,"node",{get:function(){if(!zn)return;const n=Xe.createElement("div");return n.innerHTML=e.html,n.children}}),e}function OE(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(Ec(a)&&n.found&&!r.found){const{width:c,height:u}=n,d={x:c/u/2,y:.5};i.style=sa(te(te({},o),{},{"transform-origin":"".concat(d.x+a.x/16,"em ").concat(d.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function _E(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;const a=o===!0?"".concat(t,"-").concat(ve.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:te(te({},i),{},{id:a}),children:r}]}]}function Dc(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:a,title:c,maskId:u,titleId:d,extra:h,watchable:m=!1}=e,{width:p,height:y}=n.found?n:t,S=DT.includes(r),b=[ve.replacementClass,i?"".concat(ve.cssPrefix,"-").concat(i):""].filter(A=>h.classes.indexOf(A)===-1).filter(A=>A!==""||!!A).concat(h.classes).join(" ");let T={children:[],attributes:te(te({},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[Jr]=""),c&&(T.children.push({tag:"title",attributes:{id:T.attributes["aria-labelledby"]||"title-".concat(d||Ws())},children:[c]}),delete T.attributes.title);const E=te(te({},T),{},{prefix:r,iconName:i,main:t,mask:n,maskId:u,transform:o,symbol:a,styles:te(te({},w),h.styles)}),{children:P,attributes:$}=n.found&&t.found?yr("generateAbstractMask",E)||{children:[],attributes:{}}:yr("generateAbstractIcon",E)||{children:[],attributes:{}};return E.children=P,E.attributes=$,a?_E(E):OE(E)}function wp(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:c=!1}=e,u=te(te(te({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});c&&(u[Jr]="");const d=te({},a.styles);Ec(i)&&(d.transform=aE({transform:i,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);const h=sa(d);h.length>0&&(u.style=h);const m=[];return m.push({tag:"span",attributes:u,children:[t]}),o&&m.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),m}function IE(e){const{content:t,title:n,extra:r}=e,i=te(te(te({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=sa(r.styles);o.length>0&&(i.style=o);const a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}const{styles:Rc}=Pn;function Nc(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return Array.isArray(r)?i={tag:"g",attributes:{class:"".concat(ve.cssPrefix,"-").concat(Sc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat(Sc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ve.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 $E={found:!1,width:512,height:512};function DE(e,t){!Zm&&!ve.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"&&ve.styleDefault!==null&&(t=gr()),new Promise((r,i)=>{if(n==="fa"){const o=gp(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&Rc[t]&&Rc[t][e]){const o=Rc[t][e];return r(Nc(o))}DE(e,t),r(te(te({},$E),{},{icon:ve.showMissingIcons&&e?yr("missingIconAbstract")||{}:{}}))})}const Sp=()=>{},kc=ve.measurePerformance&&na&&na.mark&&na.measure?na:{mark:Sp,measure:Sp},Gs='FA "6.7.2"',RE=e=>(kc.mark("".concat(Gs," ").concat(e," begins")),()=>Tp(e)),Tp=e=>{kc.mark("".concat(Gs," ").concat(e," ends")),kc.measure("".concat(Gs," ").concat(e),"".concat(Gs," ").concat(e," begins"),"".concat(Gs," ").concat(e," ends"))};var jc={begin:RE,end:Tp};const ua=()=>{};function Ep(e){return typeof(e.getAttribute?e.getAttribute(Jr):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(ve.replacementClass)}function kE(){return ve.autoReplaceSvg===!0?fa.replace:fa[ve.autoReplaceSvg]||fa.replace}function jE(e){return Xe.createElementNS("http://www.w3.org/2000/svg",e)}function FE(e){return Xe.createElement(e)}function Cp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?jE:FE}=t;if(typeof e=="string")return Xe.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){r.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){r.appendChild(Cp(o,{ceFn:n}))}),r}function VE(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const fa={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(Cp(n),t)}),t.getAttribute(Jr)===null&&ve.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(ve.replacementClass))return fa.replace(e);const r=new RegExp("".concat(ve.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((a,c)=>(c===ve.replacementClass||c.match(r)?a.toSvg.push(c):a.toNode.push(c),a),{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}const i=n.map(o=>Us(o)).join(`
580
- `);t.setAttribute(Jr,""),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;ve.mutateApproach===YT&&(r=mr.requestAnimationFrame||Pp),r(()=>{const i=kE(),o=jc.begin("mutate");e.map(i),o(),n()})}}let Fc=!1;function Mp(){Fc=!0}function Vc(){Fc=!1}let da=null;function Op(e){if(!Vm||!ve.observeMutations)return;const{treeCallback:t=ua,nodeCallback:n=ua,pseudoElementsCallback:r=ua,observeMutationsRoot:i=Xe}=e;da=new Vm(o=>{if(Fc)return;const a=gr();Li(o).forEach(c=>{if(c.type==="childList"&&c.addedNodes.length>0&&!Ep(c.addedNodes[0])&&(ve.searchPseudoElements&&r(c.target),t(c.target)),c.type==="attributes"&&c.target.parentNode&&ve.searchPseudoElements&&r(c.target.parentNode),c.type==="attributes"&&Ep(c.target)&&~JT.indexOf(c.attributeName))if(c.attributeName==="class"&&NE(c.target)){const{prefix:u,iconName:d}=la(Tc(c.target));c.target.setAttribute(gc,u||a),d&&c.target.setAttribute(yc,d)}else LE(c.target)&&n(c.target)})}),zn&&da.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function BE(){da&&da.disconnect()}function WE(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,i)=>{const o=i.split(":"),a=o[0],c=o.slice(1);return a&&c.length>0&&(r[a]=c.join(":").trim()),r},{})),n}function UE(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=la(Tc(e));return i.prefix||(i.prefix=gr()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=yE(i.prefix,e.innerText)||_c(i.prefix,Ac(e.innerText))),!i.iconName&&ve.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function zE(e){const t=Li(e.attributes).reduce((i,o)=>(i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return ve.autoA11y&&(n?t["aria-labelledby"]="".concat(ve.replacementClass,"-title-").concat(r||Ws()):(t["aria-hidden"]="true",t.focusable="false")),t}function GE(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Cn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function _p(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=UE(e),o=zE(e),a=Ic("parseNodeAttributes",{},e);let c=t.styleParser?WE(e):[];return te({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Cn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:c,attributes:o}},a)}const{styles:YE}=Pn;function Ip(e){const t=ve.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 $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)),o=ve.autoFetchSvg?HE():Um.concat(Object.keys(YE));o.includes("fa")||o.push("fa");const a=[".".concat(ep,":not([").concat(Jr,"])")].concat(o.map(h=>".".concat(h,":not([").concat(Jr,"])"))).join(", ");if(a.length===0)return Promise.resolve();let c=[];try{c=Li(e.querySelectorAll(a))}catch{}if(c.length>0)r("pending"),i("complete");else return Promise.resolve();const u=jc.begin("onTree"),d=c.reduce((h,m)=>{try{const p=Ip(m);p&&h.push(p)}catch(p){Zm||p.name==="MissingIcon"&&console.error(p)}return h},[]);return new Promise((h,m)=>{Promise.all(d).then(p=>{Ap(p,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),u(),h()})}).catch(p=>{u(),m(p)})})}function qE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ip(e).then(n=>{n&&Ap([n],t)})}function KE(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:$c(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:$c(i||{})),e(r,te(te({},n),{},{mask:i}))}}const XE=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Cn,symbol:r=!1,mask:i=null,maskId:o=null,title:a=null,titleId:c=null,classes:u=[],attributes:d={},styles:h={}}=t;if(!e)return;const{prefix:m,iconName:p,icon:y}=e;return ca(te({type:"icon"},e),()=>(ei("beforeDOMElementCreation",{iconDefinition:e,params:t}),ve.autoA11y&&(a?d["aria-labelledby"]="".concat(ve.replacementClass,"-title-").concat(c||Ws()):(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:te(te({},Cn),n),symbol:r,title:a,maskId:o,titleId:c,extra:{attributes:d,styles:h,classes:u}})))};var ZE={mixout(){return{icon:KE(XE)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=$p,e.nodeCallback=qE,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:o,prefix:a,transform:c,symbol:u,mask:d,maskId:h,extra:m}=n;return new Promise((p,y)=>{Promise.all([Lc(r,a),d.iconName?Lc(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(S=>{let[b,T]=S;p([t,Dc({icons:{main:b,mask:T},prefix:a,iconName:r,transform:c,symbol:u,maskId:h,title:i,titleId:o,extra:m,watchable:!0})])}).catch(y)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:i,transform:o,styles:a}=t;const c=sa(a);c.length>0&&(r.style=c);let u;return Ec(o)&&(u=yr("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(u||i.icon),{children:n,attributes:r}}}},JE={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return ca({type:"layer"},()=>{ei("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(i=>{Array.isArray(i)?i.map(o=>{r=r.concat(o.abstract)}):r=r.concat(i.abstract)}),[{tag:"span",attributes:{class:["".concat(ve.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},QE={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:o={}}=t;return ca({type:"counter",content:e},()=>(ei("beforeDOMElementCreation",{content:e,params:t}),IE({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(ve.cssPrefix,"-layers-counter"),...r]}})))}}}},eC={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Cn,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return ca({type:"text",content:e},()=>(ei("beforeDOMElementCreation",{content:e,params:t}),wp({content:e,transform:te(te({},Cn),n),title:r,extra:{attributes:o,styles:a,classes:["".concat(ve.cssPrefix,"-layers-text"),...i]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:i,extra:o}=n;let a=null,c=null;if(Bm){const u=parseInt(getComputedStyle(t).fontSize,10),d=t.getBoundingClientRect();a=d.width/u,c=d.height/u}return ve.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,wp({content:t.innerHTML,width:a,height:c,transform:i,title:r,extra:o,watchable:!0})])}}};const tC=new RegExp('"',"ug"),Dp=[1105920,1112319],Rp=te(te(te(te({},{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>=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 iC(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Bc[n]||{})[i]||nC[n]}function Np(e,t){const n="".concat(GT).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const a=Li(e.children).filter(p=>p.getAttribute(pc)===t)[0],c=mr.getComputedStyle(e,t),u=c.getPropertyValue("font-family"),d=u.match(XT),h=c.getPropertyValue("font-weight"),m=c.getPropertyValue("content");if(a&&!d)return e.removeChild(a),r();if(d&&m!=="none"&&m!==""){const p=c.getPropertyValue("content");let y=iC(u,h);const{value:S,isSecondary:b}=rC(p),T=d[0].startsWith("FontAwesome");let w=_c(y,S),E=w;if(T){const P=vE(S);P.iconName&&P.prefix&&(w=P.iconName,y=P.prefix)}if(w&&!b&&(!a||a.getAttribute(gc)!==y||a.getAttribute(yc)!==E)){e.setAttribute(n,E),a&&e.removeChild(a);const P=GE(),{extra:$}=P;$.attributes[pc]=t,Lc(w,y).then(A=>{const D=Dc(te(te({},P),{},{icons:{main:A,mask:yp()},prefix:y,iconName:E,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=D.map(F=>Us(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=Li(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;ve.searchPseudoElements&&Lp(n)}}};let kp=!1;var lC={mixout(){return{dom:{unwatch(){Mp(),kp=!0}}}},hooks(){return{bootstrap(){Op(Ic("mutationObserverCallbacks",{}))},noAuto(){BE()},watch(e){const{observeMutationsRoot:t}=e;kp?Vc():Op(Ic("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const jp=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const i=r.toLowerCase().split("-"),o=i[0];let a=i.slice(1).join("-");if(o&&a==="h")return n.flipX=!0,n;if(o&&a==="v")return n.flipY=!0,n;if(a=parseFloat(a),isNaN(a))return n;switch(o){case"grow":n.size=n.size+a;break;case"shrink":n.size=n.size-a;break;case"left":n.x=n.x-a;break;case"right":n.x=n.x+a;break;case"up":n.y=n.y-a;break;case"down":n.y=n.y+a;break;case"rotate":n.rotate=n.rotate+a;break}return n},t)};var cC={mixout(){return{parse:{transform:e=>jp(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=jp(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:i,iconWidth:o}=t;const a={transform:"translate(".concat(i/2," 256)")},c="translate(".concat(r.x*32,", ").concat(r.y*32,") "),u="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),d="rotate(".concat(r.rotate," 0 0)"),h={transform:"".concat(c," ").concat(u," ").concat(d)},m={transform:"translate(".concat(o/2*-1," -256)")},p={outer:a,inner:h,path:m};return{tag:"g",attributes:te({},p.outer),children:[{tag:"g",attributes:te({},p.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:te(te({},n.icon.attributes),p.path)}]}]}}}};const Wc={x:0,y:0,width:"100%",height:"100%"};function Fp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function uC(e){return e.tag==="g"?e.children:[e]}var fC={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?la(n.split(" ").map(i=>i.trim())):yp();return r.prefix||(r.prefix=gr()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:i,mask:o,maskId:a,transform:c}=t;const{width:u,icon:d}=i,{width:h,icon:m}=o,p=oE({transform:c,containerWidth:h,iconWidth:u}),y={tag:"rect",attributes:te(te({},Wc),{},{fill:"white"})},S=d.children?{children:d.children.map(Fp)}:{},b={tag:"g",attributes:te({},p.inner),children:[Fp(te({tag:d.tag,attributes:te(te({},d.attributes),p.path)},S))]},T={tag:"g",attributes:te({},p.outer),children:[b]},w="mask-".concat(a||Ws()),E="clip-".concat(a||Ws()),P={tag:"mask",attributes:te(te({},Wc),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[y,T]},$={tag:"defs",children:[{tag:"clipPath",attributes:{id:E},children:uC(m)},P]};return n.push($,{tag:"rect",attributes:te({fill:"currentColor","clip-path":"url(#".concat(E,")"),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:te(te({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const o=te(te({},i),{},{attributeName:"opacity"}),a={tag:"circle",attributes:te(te({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:te(te({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:te(te({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(a),n.push({tag:"path",attributes:te(te({},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:te(te({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:te(te({},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:te(te({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},hC={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},mC=[cE,ZE,JE,QE,eC,aC,lC,cC,fC,dC,hC];AE(mC,{mixoutsTo:zt}),zt.noAuto,zt.config,zt.library,zt.dom;const Uc=zt.parse;zt.findIconDefinition,zt.toHtml;const pC=zt.icon;zt.layer,zt.text,zt.counter;var ha={exports:{}},ma={exports:{}},je={};/** @license React v16.13.1
579
+ }`;function ip(){const e=Km,t=Xm,n=ve.cssPrefix,r=ve.replacementClass;let i=lE;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),c=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(c,".".concat(r))}return i}let sp=!1;function Cc(){ve.autoAddCss&&!sp&&(rE(ip()),sp=!0)}var cE={mixout(){return{dom:{css:ip,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 op=[],ap=function(){Xe.removeEventListener("DOMContentLoaded",ap),oa=1,op.map(e=>e())};let oa=!1;zn&&(oa=(Xe.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Xe.readyState),oa||Xe.addEventListener("DOMContentLoaded",ap));function uE(e){zn&&(oa?setTimeout(e,0):op.push(e))}function zs(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?rp(e):"<".concat(t," ").concat(sE(n),">").concat(r.map(zs).join(""),"</").concat(t,">")}function lp(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Pc=function(t,n,r,i){var o=Object.keys(t),a=o.length,c=n,u,d,h;for(r===void 0?(u=1,h=t[o[0]]):(u=0,h=r);u<a;u++)d=o[u],h=c(h,t[d],d,t);return h};function fE(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function Ac(e){const t=fE(e);return t.length===1?t[0].toString(16):null}function dE(e,t){const n=e.length;let r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function cp(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=cp(t);typeof Pn.hooks.addPack=="function"&&!r?Pn.hooks.addPack(e,cp(t)):Pn.styles[e]=te(te({},Pn.styles[e]||{}),i),e==="fas"&&Mc("fa",t)}const{styles:Gs,shims:hE}=Pn,up=Object.keys(xc),mE=up.reduce((e,t)=>(e[t]=Object.keys(xc[t]),e),{});let Oc=null,fp={},dp={},hp={},mp={},pp={};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 gp=()=>{const e=r=>Pc(Gs,(i,o,a)=>(i[a]=Pc(o,r,{}),i),{});fp=e((r,i,o)=>(i[3]&&(r[i[3]]=o),i[2]&&i[2].filter(c=>typeof c=="number").forEach(c=>{r[c.toString(16)]=o}),r)),dp=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(c=>typeof c=="string").forEach(c=>{r[c]=o}),r)),pp=e((r,i,o)=>{const a=i[2];return r[o]=o,a.forEach(c=>{r[c]=o}),r});const t="far"in Gs||ve.autoFetchSvg,n=Pc(hE,(r,i)=>{const o=i[0];let a=i[1];const c=i[2];return a==="far"&&!t&&(a="fas"),typeof o=="string"&&(r.names[o]={prefix:a,iconName:c}),typeof o=="number"&&(r.unicodes[o.toString(16)]={prefix:a,iconName:c}),r},{names:{},unicodes:{}});hp=n.names,mp=n.unicodes,Oc=aa(ve.styleDefault,{family:ve.familyDefault})};nE(e=>{Oc=aa(e.styleDefault,{family:ve.familyDefault})}),gp();function _c(e,t){return(fp[e]||{})[t]}function yE(e,t){return(dp[e]||{})[t]}function Qr(e,t){return(pp[e]||{})[t]}function yp(e){return hp[e]||{prefix:null,iconName:null}}function vE(e){const t=mp[e],n=_c("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function gr(){return Oc}const vp=()=>({prefix:null,iconName:null,rest:[]});function bE(e){let t=wt;const n=up.reduce((r,i)=>(r[i]="".concat(ve.cssPrefix,"-").concat(i),r),{});return Gm.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=ep[n][e]||ep[n][r],o=e in Pn.styles?e:null;return i||o||null}function xE(e){let t=[],n=null;return e.forEach(r=>{const i=gE(ve.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function bp(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function la(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=hc.concat(LT),o=bp(e.filter(m=>i.includes(m))),a=bp(e.filter(m=>!hc.includes(m))),c=o.filter(m=>(r=m,!zm.includes(m))),[u=null]=c,d=bE(o),h=te(te({},xE(a)),{},{prefix:aa(u,{family:d})});return te(te(te({},h),EE({values:e,family:d,styles:Gs,config:ve,canonical:h,givenPrefix:r})),wE(n,r,h))}function wE(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const o=t==="fa"?yp(i):{},a=Qr(r,i);return i=o.iconName||a||i,r=o.prefix||r,r==="far"&&!Gs.far&&Gs.fas&&!ve.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const SE=Gm.filter(e=>e!==wt||e!==ra),TE=Object.keys(dc).filter(e=>e!==wt).map(e=>Object.keys(dc[e])).flat();function EE(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:o={},config:a={}}=e,c=n===ra,u=t.includes("fa-duotone")||t.includes("fad"),d=a.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!c&&(u||d||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&SE.includes(n)&&(Object.keys(o).find(p=>TE.includes(p))||a.autoFetchSvg)){const p=MT.get(n).defaultShortPrefixId;r.prefix=p,r.iconName=Qr(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||i==="fa")&&(r.prefix=gr()||"fas"),r}class CE{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach(o=>{this.definitions[o]=te(te({},this.definitions[o]||{}),i[o]),Mc(o,i[o]);const a=xc[wt][o];a&&Mc(a,i[o]),gp()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(i=>{const{prefix:o,iconName:a,icon:c}=r[i],u=c[2];t[o]||(t[o]={}),u.length>0&&u.forEach(d=>{typeof d=="string"&&(t[o][d]=c)}),t[o][a]=c}),t}}let xp=[],ki={};const ji={},PE=Object.keys(ji);function AE(e,t){let{mixoutsTo:n}=t;return xp=e,ki={},Object.keys(ji).forEach(r=>{PE.indexOf(r)===-1&&delete ji[r]}),xp.forEach(r=>{const i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(o=>{typeof i[o]=="function"&&(n[o]=i[o]),typeof i[o]=="object"&&Object.keys(i[o]).forEach(a=>{n[o]||(n[o]={}),n[o][a]=i[o][a]})}),r.hooks){const o=r.hooks();Object.keys(o).forEach(a=>{ki[a]||(ki[a]=[]),ki[a].push(o[a])})}r.provides&&r.provides(ji)}),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(ki[e]||[]).forEach(a=>{t=a.apply(null,[t,...r])}),t}function ei(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(ki[e]||[]).forEach(o=>{o.apply(null,n)})}function yr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return ji[e]?ji[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=Qr(n,t)||t,lp(wp.definitions,n,t)||lp(Pn.styles,n,t)}const wp=new CE,zt={noAuto:()=>{ve.autoReplaceSvg=!1,ve.observeMutations=!1,ei("noAuto")},config:ve,dom:{i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return zn?(ei("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;ve.autoReplaceSvg===!1&&(ve.autoReplaceSvg=!0),ve.observeMutations=!0,uE(()=>{ME({autoReplaceSvgRoot:t}),ei("watch",e)})}},parse:{icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Qr(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:Qr(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(ve.cssPrefix,"-"))>-1||e.match(KT))){const t=la(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||gr(),iconName:Qr(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=gr();return{prefix:t,iconName:Qr(t,e)||e}}}},library:wp,findIconDefinition:$c,toHtml:zs},ME=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Xe}=e;(Object.keys(Pn.styles).length>0||ve.autoFetchSvg)&&zn&&ve.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=>zs(n))}}),Object.defineProperty(e,"node",{get:function(){if(!zn)return;const n=Xe.createElement("div");return n.innerHTML=e.html,n.children}}),e}function OE(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(Ec(a)&&n.found&&!r.found){const{width:c,height:u}=n,d={x:c/u/2,y:.5};i.style=sa(te(te({},o),{},{"transform-origin":"".concat(d.x+a.x/16,"em ").concat(d.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function _E(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;const a=o===!0?"".concat(t,"-").concat(ve.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:te(te({},i),{},{id:a}),children:r}]}]}function Dc(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:a,title:c,maskId:u,titleId:d,extra:h,watchable:m=!1}=e,{width:p,height:y}=n.found?n:t,S=DT.includes(r),b=[ve.replacementClass,i?"".concat(ve.cssPrefix,"-").concat(i):""].filter(A=>h.classes.indexOf(A)===-1).filter(A=>A!==""||!!A).concat(h.classes).join(" ");let T={children:[],attributes:te(te({},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[Jr]=""),c&&(T.children.push({tag:"title",attributes:{id:T.attributes["aria-labelledby"]||"title-".concat(d||Us())},children:[c]}),delete T.attributes.title);const E=te(te({},T),{},{prefix:r,iconName:i,main:t,mask:n,maskId:u,transform:o,symbol:a,styles:te(te({},w),h.styles)}),{children:P,attributes:$}=n.found&&t.found?yr("generateAbstractMask",E)||{children:[],attributes:{}}:yr("generateAbstractIcon",E)||{children:[],attributes:{}};return E.children=P,E.attributes=$,a?_E(E):OE(E)}function Sp(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:c=!1}=e,u=te(te(te({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});c&&(u[Jr]="");const d=te({},a.styles);Ec(i)&&(d.transform=aE({transform:i,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);const h=sa(d);h.length>0&&(u.style=h);const m=[];return m.push({tag:"span",attributes:u,children:[t]}),o&&m.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),m}function IE(e){const{content:t,title:n,extra:r}=e,i=te(te(te({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=sa(r.styles);o.length>0&&(i.style=o);const a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}const{styles:Rc}=Pn;function Nc(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return Array.isArray(r)?i={tag:"g",attributes:{class:"".concat(ve.cssPrefix,"-").concat(Sc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat(Sc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ve.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 $E={found:!1,width:512,height:512};function DE(e,t){!Jm&&!ve.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"&&ve.styleDefault!==null&&(t=gr()),new Promise((r,i)=>{if(n==="fa"){const o=yp(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&Rc[t]&&Rc[t][e]){const o=Rc[t][e];return r(Nc(o))}DE(e,t),r(te(te({},$E),{},{icon:ve.showMissingIcons&&e?yr("missingIconAbstract")||{}:{}}))})}const Tp=()=>{},kc=ve.measurePerformance&&na&&na.mark&&na.measure?na:{mark:Tp,measure:Tp},Ys='FA "6.7.2"',RE=e=>(kc.mark("".concat(Ys," ").concat(e," begins")),()=>Ep(e)),Ep=e=>{kc.mark("".concat(Ys," ").concat(e," ends")),kc.measure("".concat(Ys," ").concat(e),"".concat(Ys," ").concat(e," begins"),"".concat(Ys," ").concat(e," ends"))};var jc={begin:RE,end:Ep};const ua=()=>{};function Cp(e){return typeof(e.getAttribute?e.getAttribute(Jr):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(ve.replacementClass)}function kE(){return ve.autoReplaceSvg===!0?fa.replace:fa[ve.autoReplaceSvg]||fa.replace}function jE(e){return Xe.createElementNS("http://www.w3.org/2000/svg",e)}function FE(e){return Xe.createElement(e)}function Pp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?jE:FE}=t;if(typeof e=="string")return Xe.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){r.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){r.appendChild(Pp(o,{ceFn:n}))}),r}function VE(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const fa={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(Pp(n),t)}),t.getAttribute(Jr)===null&&ve.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(ve.replacementClass))return fa.replace(e);const r=new RegExp("".concat(ve.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((a,c)=>(c===ve.replacementClass||c.match(r)?a.toSvg.push(c):a.toNode.push(c),a),{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}const i=n.map(o=>zs(o)).join(`
580
+ `);t.setAttribute(Jr,""),t.innerHTML=i}};function Ap(e){e()}function Mp(e,t){const n=typeof t=="function"?t:ua;if(e.length===0)n();else{let r=Ap;ve.mutateApproach===YT&&(r=mr.requestAnimationFrame||Ap),r(()=>{const i=kE(),o=jc.begin("mutate");e.map(i),o(),n()})}}let Fc=!1;function Op(){Fc=!0}function Vc(){Fc=!1}let da=null;function _p(e){if(!Bm||!ve.observeMutations)return;const{treeCallback:t=ua,nodeCallback:n=ua,pseudoElementsCallback:r=ua,observeMutationsRoot:i=Xe}=e;da=new Bm(o=>{if(Fc)return;const a=gr();Li(o).forEach(c=>{if(c.type==="childList"&&c.addedNodes.length>0&&!Cp(c.addedNodes[0])&&(ve.searchPseudoElements&&r(c.target),t(c.target)),c.type==="attributes"&&c.target.parentNode&&ve.searchPseudoElements&&r(c.target.parentNode),c.type==="attributes"&&Cp(c.target)&&~JT.indexOf(c.attributeName))if(c.attributeName==="class"&&NE(c.target)){const{prefix:u,iconName:d}=la(Tc(c.target));c.target.setAttribute(gc,u||a),d&&c.target.setAttribute(yc,d)}else LE(c.target)&&n(c.target)})}),zn&&da.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function BE(){da&&da.disconnect()}function WE(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,i)=>{const o=i.split(":"),a=o[0],c=o.slice(1);return a&&c.length>0&&(r[a]=c.join(":").trim()),r},{})),n}function UE(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=la(Tc(e));return i.prefix||(i.prefix=gr()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=yE(i.prefix,e.innerText)||_c(i.prefix,Ac(e.innerText))),!i.iconName&&ve.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function zE(e){const t=Li(e.attributes).reduce((i,o)=>(i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return ve.autoA11y&&(n?t["aria-labelledby"]="".concat(ve.replacementClass,"-title-").concat(r||Us()):(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 Ip(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=UE(e),o=zE(e),a=Ic("parseNodeAttributes",{},e);let c=t.styleParser?WE(e):[];return te({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Cn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:c,attributes:o}},a)}const{styles:YE}=Pn;function $p(e){const t=ve.autoReplaceSvg==="nest"?Ip(e,{styleParser:!1}):Ip(e);return~t.extra.classes.indexOf(tp)?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(Zm,"-").concat(h)),i=h=>n.remove("".concat(Zm,"-").concat(h)),o=ve.autoFetchSvg?HE():zm.concat(Object.keys(YE));o.includes("fa")||o.push("fa");const a=[".".concat(tp,":not([").concat(Jr,"])")].concat(o.map(h=>".".concat(h,":not([").concat(Jr,"])"))).join(", ");if(a.length===0)return Promise.resolve();let c=[];try{c=Li(e.querySelectorAll(a))}catch{}if(c.length>0)r("pending"),i("complete");else return Promise.resolve();const u=jc.begin("onTree"),d=c.reduce((h,m)=>{try{const p=$p(m);p&&h.push(p)}catch(p){Jm||p.name==="MissingIcon"&&console.error(p)}return h},[]);return new Promise((h,m)=>{Promise.all(d).then(p=>{Mp(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;$p(e).then(n=>{n&&Mp([n],t)})}function KE(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,te(te({},n),{},{mask:i}))}}const XE=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Cn,symbol:r=!1,mask:i=null,maskId:o=null,title:a=null,titleId:c=null,classes:u=[],attributes:d={},styles:h={}}=t;if(!e)return;const{prefix:m,iconName:p,icon:y}=e;return ca(te({type:"icon"},e),()=>(ei("beforeDOMElementCreation",{iconDefinition:e,params:t}),ve.autoA11y&&(a?d["aria-labelledby"]="".concat(ve.replacementClass,"-title-").concat(c||Us()):(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:te(te({},Cn),n),symbol:r,title:a,maskId:o,titleId:c,extra:{attributes:d,styles:h,classes:u}})))};var ZE={mixout(){return{icon:KE(XE)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Dp,e.nodeCallback=qE,e}}},provides(e){e.i2svg=function(t){const{node:n=Xe,callback:r=()=>{}}=t;return Dp(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:i,titleId:o,prefix:a,transform:c,symbol:u,mask:d,maskId:h,extra:m}=n;return new Promise((p,y)=>{Promise.all([Lc(r,a),d.iconName?Lc(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(S=>{let[b,T]=S;p([t,Dc({icons:{main:b,mask:T},prefix:a,iconName:r,transform:c,symbol:u,maskId:h,title:i,titleId:o,extra:m,watchable:!0})])}).catch(y)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:i,transform:o,styles:a}=t;const c=sa(a);c.length>0&&(r.style=c);let u;return Ec(o)&&(u=yr("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(u||i.icon),{children:n,attributes:r}}}},JE={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return ca({type:"layer"},()=>{ei("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(i=>{Array.isArray(i)?i.map(o=>{r=r.concat(o.abstract)}):r=r.concat(i.abstract)}),[{tag:"span",attributes:{class:["".concat(ve.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},QE={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:o={}}=t;return ca({type:"counter",content:e},()=>(ei("beforeDOMElementCreation",{content:e,params:t}),IE({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(ve.cssPrefix,"-layers-counter"),...r]}})))}}}},eC={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Cn,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return ca({type:"text",content:e},()=>(ei("beforeDOMElementCreation",{content:e,params:t}),Sp({content:e,transform:te(te({},Cn),n),title:r,extra:{attributes:o,styles:a,classes:["".concat(ve.cssPrefix,"-layers-text"),...i]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:i,extra:o}=n;let a=null,c=null;if(Wm){const u=parseInt(getComputedStyle(t).fontSize,10),d=t.getBoundingClientRect();a=d.width/u,c=d.height/u}return ve.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,Sp({content:t.innerHTML,width:a,height:c,transform:i,title:r,extra:o,watchable:!0})])}}};const tC=new RegExp('"',"ug"),Rp=[1105920,1112319],Np=te(te(te(te({},{FontAwesome:{normal:"fas",400:"fas"}}),AT),zT),kT),Bc=Object.keys(Np).reduce((e,t)=>(e[t.toLowerCase()]=Np[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>=Rp[0]&&n<=Rp[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 Lp(e,t){const n="".concat(GT).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const a=Li(e.children).filter(p=>p.getAttribute(pc)===t)[0],c=mr.getComputedStyle(e,t),u=c.getPropertyValue("font-family"),d=u.match(XT),h=c.getPropertyValue("font-weight"),m=c.getPropertyValue("content");if(a&&!d)return e.removeChild(a),r();if(d&&m!=="none"&&m!==""){const p=c.getPropertyValue("content");let y=iC(u,h);const{value:S,isSecondary:b}=rC(p),T=d[0].startsWith("FontAwesome");let w=_c(y,S),E=w;if(T){const P=vE(S);P.iconName&&P.prefix&&(w=P.iconName,y=P.prefix)}if(w&&!b&&(!a||a.getAttribute(gc)!==y||a.getAttribute(yc)!==E)){e.setAttribute(n,E),a&&e.removeChild(a);const P=GE(),{extra:$}=P;$.attributes[pc]=t,Lc(w,y).then(A=>{const D=Dc(te(te({},P),{},{icons:{main:A,mask:vp()},prefix:y,iconName:E,extra:$,watchable:!0})),V=Xe.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(V,e.firstChild):e.appendChild(V),V.outerHTML=D.map(j=>zs(j)).join(`
581
+ `),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function sC(e){return Promise.all([Lp(e,"::before"),Lp(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 kp(e){if(zn)return new Promise((t,n)=>{const r=Li(e.querySelectorAll("*")).filter(oC).map(sC),i=jc.begin("searchPseudoElements");Op(),Promise.all(r).then(()=>{i(),Vc(),t()}).catch(()=>{i(),Vc(),n()})})}var aC={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=kp,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=Xe}=t;ve.searchPseudoElements&&kp(n)}}};let jp=!1;var lC={mixout(){return{dom:{unwatch(){Op(),jp=!0}}}},hooks(){return{bootstrap(){_p(Ic("mutationObserverCallbacks",{}))},noAuto(){BE()},watch(e){const{observeMutationsRoot:t}=e;jp?Vc():_p(Ic("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const Fp=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const i=r.toLowerCase().split("-"),o=i[0];let a=i.slice(1).join("-");if(o&&a==="h")return n.flipX=!0,n;if(o&&a==="v")return n.flipY=!0,n;if(a=parseFloat(a),isNaN(a))return n;switch(o){case"grow":n.size=n.size+a;break;case"shrink":n.size=n.size-a;break;case"left":n.x=n.x-a;break;case"right":n.x=n.x+a;break;case"up":n.y=n.y-a;break;case"down":n.y=n.y+a;break;case"rotate":n.rotate=n.rotate+a;break}return n},t)};var cC={mixout(){return{parse:{transform:e=>Fp(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Fp(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:i,iconWidth:o}=t;const a={transform:"translate(".concat(i/2," 256)")},c="translate(".concat(r.x*32,", ").concat(r.y*32,") "),u="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),d="rotate(".concat(r.rotate," 0 0)"),h={transform:"".concat(c," ").concat(u," ").concat(d)},m={transform:"translate(".concat(o/2*-1," -256)")},p={outer:a,inner:h,path:m};return{tag:"g",attributes:te({},p.outer),children:[{tag:"g",attributes:te({},p.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:te(te({},n.icon.attributes),p.path)}]}]}}}};const Wc={x:0,y:0,width:"100%",height:"100%"};function Vp(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())):vp();return r.prefix||(r.prefix=gr()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:i,mask:o,maskId:a,transform:c}=t;const{width:u,icon:d}=i,{width:h,icon:m}=o,p=oE({transform:c,containerWidth:h,iconWidth:u}),y={tag:"rect",attributes:te(te({},Wc),{},{fill:"white"})},S=d.children?{children:d.children.map(Vp)}:{},b={tag:"g",attributes:te({},p.inner),children:[Vp(te({tag:d.tag,attributes:te(te({},d.attributes),p.path)},S))]},T={tag:"g",attributes:te({},p.outer),children:[b]},w="mask-".concat(a||Us()),E="clip-".concat(a||Us()),P={tag:"mask",attributes:te(te({},Wc),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[y,T]},$={tag:"defs",children:[{tag:"clipPath",attributes:{id:E},children:uC(m)},P]};return n.push($,{tag:"rect",attributes:te({fill:"currentColor","clip-path":"url(#".concat(E,")"),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:te(te({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const o=te(te({},i),{},{attributeName:"opacity"}),a={tag:"circle",attributes:te(te({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:te(te({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:te(te({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(a),n.push({tag:"path",attributes:te(te({},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:te(te({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:te(te({},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:te(te({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},hC={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},mC=[cE,ZE,JE,QE,eC,aC,lC,cC,fC,dC,hC];AE(mC,{mixoutsTo:zt}),zt.noAuto,zt.config,zt.library,zt.dom;const Uc=zt.parse;zt.findIconDefinition,zt.toHtml;const pC=zt.icon;zt.layer,zt.text,zt.counter;var ha={exports:{}},ma={exports:{}},je={};/** @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 je;Vp=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function P(A){if(typeof A=="object"&&A!==null){var D=A.$$typeof;switch(D){case t:switch(A=A.type,A){case u:case d:case r:case o:case i:case m:return A;default:switch(A=A&&A.$$typeof,A){case c:case h:case S:case y:case a:return A;default:return D}}case n:return D}}}function $(A){return P(A)===d}return je.AsyncMode=u,je.ConcurrentMode=d,je.ContextConsumer=c,je.ContextProvider=a,je.Element=t,je.ForwardRef=h,je.Fragment=r,je.Lazy=S,je.Memo=y,je.Portal=n,je.Profiler=o,je.StrictMode=i,je.Suspense=m,je.isAsyncMode=function(A){return $(A)||P(A)===u},je.isConcurrentMode=$,je.isContextConsumer=function(A){return P(A)===c},je.isContextProvider=function(A){return P(A)===a},je.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},je.isForwardRef=function(A){return P(A)===h},je.isFragment=function(A){return P(A)===r},je.isLazy=function(A){return P(A)===S},je.isMemo=function(A){return P(A)===y},je.isPortal=function(A){return P(A)===n},je.isProfiler=function(A){return P(A)===o},je.isStrictMode=function(A){return P(A)===i},je.isSuspense=function(A){return P(A)===m},je.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===r||A===d||A===o||A===i||A===m||A===p||typeof A=="object"&&A!==null&&(A.$$typeof===S||A.$$typeof===y||A.$$typeof===a||A.$$typeof===c||A.$$typeof===h||A.$$typeof===T||A.$$typeof===w||A.$$typeof===E||A.$$typeof===b)},je.typeOf=P,je}var Fe={};/** @license React v16.13.1
588
+ */var Bp;function gC(){if(Bp)return je;Bp=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function P(A){if(typeof A=="object"&&A!==null){var D=A.$$typeof;switch(D){case t:switch(A=A.type,A){case u:case d:case r:case o:case i:case m:return A;default:switch(A=A&&A.$$typeof,A){case c:case h:case S:case y:case a:return A;default:return D}}case n:return D}}}function $(A){return P(A)===d}return je.AsyncMode=u,je.ConcurrentMode=d,je.ContextConsumer=c,je.ContextProvider=a,je.Element=t,je.ForwardRef=h,je.Fragment=r,je.Lazy=S,je.Memo=y,je.Portal=n,je.Profiler=o,je.StrictMode=i,je.Suspense=m,je.isAsyncMode=function(A){return $(A)||P(A)===u},je.isConcurrentMode=$,je.isContextConsumer=function(A){return P(A)===c},je.isContextProvider=function(A){return P(A)===a},je.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},je.isForwardRef=function(A){return P(A)===h},je.isFragment=function(A){return P(A)===r},je.isLazy=function(A){return P(A)===S},je.isMemo=function(A){return P(A)===y},je.isPortal=function(A){return P(A)===n},je.isProfiler=function(A){return P(A)===o},je.isStrictMode=function(A){return P(A)===i},je.isSuspense=function(A){return P(A)===m},je.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===r||A===d||A===o||A===i||A===m||A===p||typeof A=="object"&&A!==null&&(A.$$typeof===S||A.$$typeof===y||A.$$typeof===a||A.$$typeof===c||A.$$typeof===h||A.$$typeof===T||A.$$typeof===w||A.$$typeof===E||A.$$typeof===b)},je.typeOf=P,je}var Fe={};/** @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,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function P(ie){return typeof ie=="string"||typeof ie=="function"||ie===r||ie===d||ie===o||ie===i||ie===m||ie===p||typeof ie=="object"&&ie!==null&&(ie.$$typeof===S||ie.$$typeof===y||ie.$$typeof===a||ie.$$typeof===c||ie.$$typeof===h||ie.$$typeof===T||ie.$$typeof===w||ie.$$typeof===E||ie.$$typeof===b)}function $(ie){if(typeof ie=="object"&&ie!==null){var pe=ie.$$typeof;switch(pe){case t:var De=ie.type;switch(De){case u:case d:case r:case o:case i:case m:return De;default:var ft=De&&De.$$typeof;switch(ft){case c:case h:case S:case y:case a:return ft;default:return pe}}case n:return pe}}}var A=u,D=d,k=c,F=a,z=t,J=h,ne=r,le=S,ye=y,de=n,ue=o,he=i,V=m,B=!1;function G(ie){return B||(B=!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 K(ie){return $(ie)===a}function oe(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function Z(ie){return $(ie)===h}function q(ie){return $(ie)===r}function Q(ie){return $(ie)===S}function ae(ie){return $(ie)===y}function re(ie){return $(ie)===n}function fe(ie){return $(ie)===o}function Ce(ie){return $(ie)===i}function Ve(ie){return $(ie)===m}Fe.AsyncMode=A,Fe.ConcurrentMode=D,Fe.ContextConsumer=k,Fe.ContextProvider=F,Fe.Element=z,Fe.ForwardRef=J,Fe.Fragment=ne,Fe.Lazy=le,Fe.Memo=ye,Fe.Portal=de,Fe.Profiler=ue,Fe.StrictMode=he,Fe.Suspense=V,Fe.isAsyncMode=G,Fe.isConcurrentMode=O,Fe.isContextConsumer=N,Fe.isContextProvider=K,Fe.isElement=oe,Fe.isForwardRef=Z,Fe.isFragment=q,Fe.isLazy=Q,Fe.isMemo=ae,Fe.isPortal=re,Fe.isProfiler=fe,Fe.isStrictMode=Ce,Fe.isSuspense=Ve,Fe.isValidElementType=P,Fe.typeOf=$}()),Fe}var Wp;function Up(){return Wp||(Wp=1,process.env.NODE_ENV==="production"?ma.exports=gC():ma.exports=yC()),ma.exports}/*
595
+ */var Wp;function yC(){return Wp||(Wp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function P(ie){return typeof ie=="string"||typeof ie=="function"||ie===r||ie===d||ie===o||ie===i||ie===m||ie===p||typeof ie=="object"&&ie!==null&&(ie.$$typeof===S||ie.$$typeof===y||ie.$$typeof===a||ie.$$typeof===c||ie.$$typeof===h||ie.$$typeof===T||ie.$$typeof===w||ie.$$typeof===E||ie.$$typeof===b)}function $(ie){if(typeof ie=="object"&&ie!==null){var pe=ie.$$typeof;switch(pe){case t:var De=ie.type;switch(De){case u:case d:case r:case o:case i:case m:return De;default:var ft=De&&De.$$typeof;switch(ft){case c:case h:case S:case y:case a:return ft;default:return pe}}case n:return pe}}}var A=u,D=d,V=c,j=a,U=t,X=h,ne=r,oe=S,ge=y,ue=n,fe=o,he=i,F=m,B=!1;function G(ie){return B||(B=!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 K(ie){return $(ie)===a}function ae(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function J(ie){return $(ie)===h}function q(ie){return $(ie)===r}function Q(ie){return $(ie)===S}function le(ie){return $(ie)===y}function re(ie){return $(ie)===n}function de(ie){return $(ie)===o}function Ce(ie){return $(ie)===i}function Ve(ie){return $(ie)===m}Fe.AsyncMode=A,Fe.ConcurrentMode=D,Fe.ContextConsumer=V,Fe.ContextProvider=j,Fe.Element=U,Fe.ForwardRef=X,Fe.Fragment=ne,Fe.Lazy=oe,Fe.Memo=ge,Fe.Portal=ue,Fe.Profiler=fe,Fe.StrictMode=he,Fe.Suspense=F,Fe.isAsyncMode=G,Fe.isConcurrentMode=O,Fe.isContextConsumer=N,Fe.isContextProvider=K,Fe.isElement=ae,Fe.isForwardRef=J,Fe.isFragment=q,Fe.isLazy=Q,Fe.isMemo=le,Fe.isPortal=re,Fe.isProfiler=de,Fe.isStrictMode=Ce,Fe.isSuspense=Ve,Fe.isValidElementType=P,Fe.typeOf=$}()),Fe}var Up;function zp(){return Up||(Up=1,process.env.NODE_ENV==="production"?ma.exports=gC():ma.exports=yC()),ma.exports}/*
596
596
  object-assign
597
597
  (c) Sindre Sorhus
598
598
  @license MIT
599
- */var zc,zp;function vC(){if(zp)return zc;zp=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(a).map(function(h){return a[h]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return zc=i()?Object.assign:function(o,a){for(var c,u=r(o),d,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var m in c)t.call(c,m)&&(u[m]=c[m]);if(e){d=e(c);for(var p=0;p<d.length;p++)n.call(c,d[p])&&(u[d[p]]=c[d[p]])}}return u},zc}var Gc,Gp;function Yc(){if(Gp)return Gc;Gp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Gc=e,Gc}var Hc,Yp;function Hp(){return Yp||(Yp=1,Hc=Function.call.bind(Object.prototype.hasOwnProperty)),Hc}var qc,qp;function bC(){if(qp)return qc;qp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Yc(),n={},r=Hp();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,c,u,d){if(process.env.NODE_ENV!=="production"){for(var h in o)if(r(o,h)){var m;try{if(typeof o[h]!="function"){var p=Error((u||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}m=o[h](a,h,u,c,null,t)}catch(S){m=S}if(m&&!(m instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var y=d?d():"";e("Failed "+c+" type: "+m.message+(y??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},qc=i,qc}var Kc,Kp;function xC(){if(Kp)return Kc;Kp=1;var e=Up(),t=vC(),n=Yc(),r=Hp(),i=bC(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return Kc=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(O){var 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:E(),arrayOf:P,element:$(),elementType:A(),instanceOf:D,node:J(),objectOf:F,oneOf:k,oneOfType:z,shape:le,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={},K=0;function oe(q,Q,ae,re,fe,Ce,Ve){if(re=re||p,Ce=Ce||ae,Ve!==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=re+":"+ae;!N[pe]&&K<3&&(o("You are manually calling a React.PropTypes validation function for the `"+Ce+"` prop on `"+re+"`. 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,K++)}}return Q[ae]==null?q?Q[ae]===null?new b("The "+fe+" `"+Ce+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new b("The "+fe+" `"+Ce+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:O(Q,ae,re,fe,Ce)}var Z=oe.bind(null,!1);return Z.isRequired=oe.bind(null,!0),Z}function w(O){function N(K,oe,Z,q,Q,ae){var re=K[oe],fe=he(re);if(fe!==O){var Ce=V(re);return new b("Invalid "+q+" `"+Q+"` of type "+("`"+Ce+"` supplied to `"+Z+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return T(N)}function E(){return T(a)}function P(O){function N(K,oe,Z,q,Q){if(typeof O!="function")return new b("Property `"+Q+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var ae=K[oe];if(!Array.isArray(ae)){var re=he(ae);return new b("Invalid "+q+" `"+Q+"` of type "+("`"+re+"` supplied to `"+Z+"`, expected an array."))}for(var fe=0;fe<ae.length;fe++){var Ce=O(ae,fe,Z,q,Q+"["+fe+"]",n);if(Ce instanceof Error)return Ce}return null}return T(N)}function $(){function O(N,K,oe,Z,q){var Q=N[K];if(!c(Q)){var ae=he(Q);return new b("Invalid "+Z+" `"+q+"` of type "+("`"+ae+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return T(O)}function A(){function O(N,K,oe,Z,q){var Q=N[K];if(!e.isValidElementType(Q)){var ae=he(Q);return new b("Invalid "+Z+" `"+q+"` of type "+("`"+ae+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return T(O)}function D(O){function N(K,oe,Z,q,Q){if(!(K[oe]instanceof O)){var ae=O.name||p,re=G(K[oe]);return new b("Invalid "+q+" `"+Q+"` of type "+("`"+re+"` supplied to `"+Z+"`, expected ")+("instance of `"+ae+"`."))}return null}return T(N)}function k(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function N(K,oe,Z,q,Q){for(var ae=K[oe],re=0;re<O.length;re++)if(S(ae,O[re]))return null;var fe=JSON.stringify(O,function(Ve,ie){var pe=V(ie);return pe==="symbol"?String(ie):ie});return new b("Invalid "+q+" `"+Q+"` of value `"+String(ae)+"` "+("supplied to `"+Z+"`, expected one of "+fe+"."))}return T(N)}function F(O){function N(K,oe,Z,q,Q){if(typeof O!="function")return new b("Property `"+Q+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var ae=K[oe],re=he(ae);if(re!=="object")return new b("Invalid "+q+" `"+Q+"` of type "+("`"+re+"` supplied to `"+Z+"`, expected an object."));for(var fe in ae)if(r(ae,fe)){var Ce=O(ae,fe,Z,q,Q+"."+fe,n);if(Ce instanceof Error)return Ce}return null}return T(N)}function z(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var N=0;N<O.length;N++){var K=O[N];if(typeof K!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(K)+" at index "+N+"."),a}function oe(Z,q,Q,ae,re){for(var fe=[],Ce=0;Ce<O.length;Ce++){var Ve=O[Ce],ie=Ve(Z,q,Q,ae,re,n);if(ie==null)return null;ie.data&&r(ie.data,"expectedType")&&fe.push(ie.data.expectedType)}var pe=fe.length>0?", expected one of type ["+fe.join(", ")+"]":"";return new b("Invalid "+ae+" `"+re+"` supplied to "+("`"+Q+"`"+pe+"."))}return T(oe)}function J(){function O(N,K,oe,Z,q){return de(N[K])?null:new b("Invalid "+Z+" `"+q+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return T(O)}function ne(O,N,K,oe,Z){return new b((O||"React class")+": "+N+" type `"+K+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function le(O){function N(K,oe,Z,q,Q){var ae=K[oe],re=he(ae);if(re!=="object")return new b("Invalid "+q+" `"+Q+"` of type `"+re+"` "+("supplied to `"+Z+"`, expected `object`."));for(var fe in O){var Ce=O[fe];if(typeof Ce!="function")return ne(Z,q,Q,fe,V(Ce));var Ve=Ce(ae,fe,Z,q,Q+"."+fe,n);if(Ve)return Ve}return null}return T(N)}function ye(O){function N(K,oe,Z,q,Q){var ae=K[oe],re=he(ae);if(re!=="object")return new b("Invalid "+q+" `"+Q+"` of type `"+re+"` "+("supplied to `"+Z+"`, expected `object`."));var fe=t({},K[oe],O);for(var Ce in fe){var Ve=O[Ce];if(r(O,Ce)&&typeof Ve!="function")return ne(Z,q,Q,Ce,V(Ve));if(!Ve)return new b("Invalid "+q+" `"+Q+"` key `"+Ce+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(K[oe],null," ")+`
600
- Valid keys: `+JSON.stringify(Object.keys(O),null," "));var ie=Ve(ae,Ce,Z,q,Q+"."+Ce,n);if(ie)return ie}return null}return T(N)}function de(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(de);if(O===null||c(O))return!0;var N=m(O);if(N){var K=N.call(O),oe;if(N!==O.entries){for(;!(oe=K.next()).done;)if(!de(oe.value))return!1}else for(;!(oe=K.next()).done;){var Z=oe.value;if(Z&&!de(Z[1]))return!1}}else return!1;return!0;default:return!1}}function ue(O,N){return O==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function he(O){var N=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":ue(N,O)?"symbol":N}function V(O){if(typeof O>"u"||O===null)return""+O;var N=he(O);if(N==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return N}function B(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 G(O){return!O.constructor||!O.constructor.name?p:O.constructor.name}return y.checkPropTypes=i,y.resetWarningCache=i.resetWarningCache,y.PropTypes=y,y},Kc}var Xc,Xp;function wC(){if(Xp)return Xc;Xp=1;var e=Yc();function t(){}function n(){}return n.resetWarningCache=t,Xc=function(){function r(a,c,u,d,h,m){if(m!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Xc}var Zp;function SC(){if(Zp)return ha.exports;if(Zp=1,process.env.NODE_ENV!=="production"){var e=Up(),t=!0;ha.exports=xC()(e.isElement,t)}else ha.exports=wC()();return ha.exports}var TC=SC();const $e=_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){Fi(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 Fi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function CC(e,t){if(e==null)return{};var n=EC(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zc(e){return PC(e)||AC(e)||MC(e)||OC()}function PC(e){if(Array.isArray(e))return Jc(e)}function AC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MC(e,t){if(e){if(typeof e=="string")return Jc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jc(e,t)}}function Jc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function OC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
601
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _C(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,c=e.flash,u=e.spin,d=e.spinPulse,h=e.spinReverse,m=e.pulse,p=e.fixedWidth,y=e.inverse,S=e.border,b=e.listItem,T=e.flip,w=e.size,E=e.rotation,P=e.pull,$=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":c,"fa-spin":u,"fa-spin-reverse":h,"fa-spin-pulse":d,"fa-pulse":m,"fa-fw":p,"fa-inverse":y,"fa-border":S,"fa-li":b,"fa-flip":T===!0,"fa-flip-horizontal":T==="horizontal"||T==="both","fa-flip-vertical":T==="vertical"||T==="both"},Fi(t,"fa-".concat(w),typeof w<"u"&&w!==null),Fi(t,"fa-rotate-".concat(E),typeof E<"u"&&E!==null&&E!==0),Fi(t,"fa-pull-".concat(P),typeof P<"u"&&P!==null),Fi(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys($).map(function(A){return $[A]?A:null}).filter(function(A){return A})}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 $C=["style"];function DC(e){return e.charAt(0).toUpperCase()+e.slice(1)}function RC(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=Qp(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[DC(i)]=o:t[i]=o,t},{})}function eg(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(u){return eg(e,u)}),i=Object.keys(t.attributes||{}).reduce(function(u,d){var h=t.attributes[d];switch(d){case"class":u.attrs.className=h,delete t.attributes.class;break;case"style":u.attrs.style=RC(h);break;default:d.indexOf("aria-")===0||d.indexOf("data-")===0?u.attrs[d.toLowerCase()]=h:u.attrs[Qp(d)]=h}return u},{attrs:{}}),o=n.style,a=o===void 0?{}:o,c=CC(n,$C);return i.attrs.style=An(An({},i.attrs.style),a),e.apply(void 0,[t.tag,An(An({},i.attrs),c)].concat(Zc(r)))}var tg=!1;try{tg=process.env.NODE_ENV==="production"}catch{}function NC(){if(!tg&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function ng(e){if(e&&pa(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Uc.icon)return Uc.icon(e);if(e===null)return null;if(e&&pa(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Qc(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Fi({},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},Ie=_.forwardRef(function(e,t){var n=An(An({},rg),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,c=n.title,u=n.titleId,d=n.maskId,h=ng(r),m=Qc("classes",[].concat(Zc(_C(n)),Zc((a||"").split(" ")))),p=Qc("transform",typeof n.transform=="string"?Uc.transform(n.transform):n.transform),y=Qc("mask",ng(i)),S=pC(h,An(An(An(An({},m),p),y),{},{symbol:o,title:c,titleId:u,maskId:d}));if(!S)return NC("Could not find icon",h),null;var b=S.abstract,T={ref:t};return Object.keys(n).forEach(function(w){rg.hasOwnProperty(w)||(T[w]=n[w])}),LC(b[0],T)});Ie.displayName="FontAwesomeIcon",Ie.propTypes={beat:$e.bool,border:$e.bool,beatFade:$e.bool,bounce:$e.bool,className:$e.string,fade:$e.bool,flash:$e.bool,mask:$e.oneOfType([$e.object,$e.array,$e.string]),maskId:$e.string,fixedWidth:$e.bool,inverse:$e.bool,flip:$e.oneOf([!0,!1,"horizontal","vertical","both"]),icon:$e.oneOfType([$e.object,$e.array,$e.string]),listItem:$e.bool,pull:$e.oneOf(["right","left"]),pulse:$e.bool,rotation:$e.oneOf([0,90,180,270]),shake:$e.bool,size:$e.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:$e.bool,spinPulse:$e.bool,spinReverse:$e.bool,symbol:$e.oneOfType([$e.bool,$e.string]),title:$e.string,titleId:$e.string,transform:$e.oneOfType([$e.string,$e.object]),swapOpacity:$e.bool};var LC=eg.bind(null,_.createElement);const kC=({title:e,icon:t,imageUrl:n,onClick:r,isSelected:i=!1})=>v.jsxs("button",{onClick:r,className:`
599
+ */var zc,Gp;function vC(){if(Gp)return zc;Gp=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(a).map(function(h){return a[h]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return zc=i()?Object.assign:function(o,a){for(var c,u=r(o),d,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var m in c)t.call(c,m)&&(u[m]=c[m]);if(e){d=e(c);for(var p=0;p<d.length;p++)n.call(c,d[p])&&(u[d[p]]=c[d[p]])}}return u},zc}var Gc,Yp;function Yc(){if(Yp)return Gc;Yp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Gc=e,Gc}var Hc,Hp;function qp(){return Hp||(Hp=1,Hc=Function.call.bind(Object.prototype.hasOwnProperty)),Hc}var qc,Kp;function bC(){if(Kp)return qc;Kp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Yc(),n={},r=qp();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,c,u,d){if(process.env.NODE_ENV!=="production"){for(var h in o)if(r(o,h)){var m;try{if(typeof o[h]!="function"){var p=Error((u||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}m=o[h](a,h,u,c,null,t)}catch(S){m=S}if(m&&!(m instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var y=d?d():"";e("Failed "+c+" type: "+m.message+(y??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},qc=i,qc}var Kc,Xp;function xC(){if(Xp)return Kc;Xp=1;var e=zp(),t=vC(),n=Yc(),r=qp(),i=bC(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return Kc=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(O){var 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:E(),arrayOf:P,element:$(),elementType:A(),instanceOf:D,node:X(),objectOf:j,oneOf:V,oneOfType:U,shape:oe,exact:ge};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={},K=0;function ae(q,Q,le,re,de,Ce,Ve){if(re=re||p,Ce=Ce||le,Ve!==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=re+":"+le;!N[pe]&&K<3&&(o("You are manually calling a React.PropTypes validation function for the `"+Ce+"` prop on `"+re+"`. 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,K++)}}return Q[le]==null?q?Q[le]===null?new b("The "+de+" `"+Ce+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new b("The "+de+" `"+Ce+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:O(Q,le,re,de,Ce)}var J=ae.bind(null,!1);return J.isRequired=ae.bind(null,!0),J}function w(O){function N(K,ae,J,q,Q,le){var re=K[ae],de=he(re);if(de!==O){var Ce=F(re);return new b("Invalid "+q+" `"+Q+"` of type "+("`"+Ce+"` supplied to `"+J+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return T(N)}function E(){return T(a)}function P(O){function N(K,ae,J,q,Q){if(typeof O!="function")return new b("Property `"+Q+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var le=K[ae];if(!Array.isArray(le)){var re=he(le);return new b("Invalid "+q+" `"+Q+"` of type "+("`"+re+"` supplied to `"+J+"`, expected an array."))}for(var de=0;de<le.length;de++){var Ce=O(le,de,J,q,Q+"["+de+"]",n);if(Ce instanceof Error)return Ce}return null}return T(N)}function $(){function O(N,K,ae,J,q){var Q=N[K];if(!c(Q)){var le=he(Q);return new b("Invalid "+J+" `"+q+"` of type "+("`"+le+"` supplied to `"+ae+"`, expected a single ReactElement."))}return null}return T(O)}function A(){function O(N,K,ae,J,q){var Q=N[K];if(!e.isValidElementType(Q)){var le=he(Q);return new b("Invalid "+J+" `"+q+"` of type "+("`"+le+"` supplied to `"+ae+"`, expected a single ReactElement type."))}return null}return T(O)}function D(O){function N(K,ae,J,q,Q){if(!(K[ae]instanceof O)){var le=O.name||p,re=G(K[ae]);return new b("Invalid "+q+" `"+Q+"` of type "+("`"+re+"` supplied to `"+J+"`, expected ")+("instance of `"+le+"`."))}return null}return T(N)}function V(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function N(K,ae,J,q,Q){for(var le=K[ae],re=0;re<O.length;re++)if(S(le,O[re]))return null;var de=JSON.stringify(O,function(Ve,ie){var pe=F(ie);return pe==="symbol"?String(ie):ie});return new b("Invalid "+q+" `"+Q+"` of value `"+String(le)+"` "+("supplied to `"+J+"`, expected one of "+de+"."))}return T(N)}function j(O){function N(K,ae,J,q,Q){if(typeof O!="function")return new b("Property `"+Q+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var le=K[ae],re=he(le);if(re!=="object")return new b("Invalid "+q+" `"+Q+"` of type "+("`"+re+"` supplied to `"+J+"`, expected an object."));for(var de in le)if(r(le,de)){var Ce=O(le,de,J,q,Q+"."+de,n);if(Ce instanceof Error)return Ce}return null}return T(N)}function U(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var N=0;N<O.length;N++){var K=O[N];if(typeof K!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(K)+" at index "+N+"."),a}function ae(J,q,Q,le,re){for(var de=[],Ce=0;Ce<O.length;Ce++){var Ve=O[Ce],ie=Ve(J,q,Q,le,re,n);if(ie==null)return null;ie.data&&r(ie.data,"expectedType")&&de.push(ie.data.expectedType)}var pe=de.length>0?", expected one of type ["+de.join(", ")+"]":"";return new b("Invalid "+le+" `"+re+"` supplied to "+("`"+Q+"`"+pe+"."))}return T(ae)}function X(){function O(N,K,ae,J,q){return ue(N[K])?null:new b("Invalid "+J+" `"+q+"` supplied to "+("`"+ae+"`, expected a ReactNode."))}return T(O)}function ne(O,N,K,ae,J){return new b((O||"React class")+": "+N+" type `"+K+"."+ae+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function oe(O){function N(K,ae,J,q,Q){var le=K[ae],re=he(le);if(re!=="object")return new b("Invalid "+q+" `"+Q+"` of type `"+re+"` "+("supplied to `"+J+"`, expected `object`."));for(var de in O){var Ce=O[de];if(typeof Ce!="function")return ne(J,q,Q,de,F(Ce));var Ve=Ce(le,de,J,q,Q+"."+de,n);if(Ve)return Ve}return null}return T(N)}function ge(O){function N(K,ae,J,q,Q){var le=K[ae],re=he(le);if(re!=="object")return new b("Invalid "+q+" `"+Q+"` of type `"+re+"` "+("supplied to `"+J+"`, expected `object`."));var de=t({},K[ae],O);for(var Ce in de){var Ve=O[Ce];if(r(O,Ce)&&typeof Ve!="function")return ne(J,q,Q,Ce,F(Ve));if(!Ve)return new b("Invalid "+q+" `"+Q+"` key `"+Ce+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(K[ae],null," ")+`
600
+ Valid keys: `+JSON.stringify(Object.keys(O),null," "));var ie=Ve(le,Ce,J,q,Q+"."+Ce,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 K=N.call(O),ae;if(N!==O.entries){for(;!(ae=K.next()).done;)if(!ue(ae.value))return!1}else for(;!(ae=K.next()).done;){var J=ae.value;if(J&&!ue(J[1]))return!1}}else return!1;return!0;default:return!1}}function fe(O,N){return O==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function he(O){var N=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":fe(N,O)?"symbol":N}function F(O){if(typeof O>"u"||O===null)return""+O;var N=he(O);if(N==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return N}function B(O){var N=F(O);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function G(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,Zp;function wC(){if(Zp)return Xc;Zp=1;var e=Yc();function t(){}function n(){}return n.resetWarningCache=t,Xc=function(){function r(a,c,u,d,h,m){if(m!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Xc}var Jp;function SC(){if(Jp)return ha.exports;if(Jp=1,process.env.NODE_ENV!=="production"){var e=zp(),t=!0;ha.exports=xC()(e.isElement,t)}else ha.exports=wC()();return ha.exports}var TC=SC();const $e=Im(TC);function Qp(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?Qp(Object(n),!0).forEach(function(r){Fi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qp(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 Fi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function CC(e,t){if(e==null)return{};var n=EC(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zc(e){return PC(e)||AC(e)||MC(e)||OC()}function PC(e){if(Array.isArray(e))return Jc(e)}function AC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MC(e,t){if(e){if(typeof e=="string")return Jc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jc(e,t)}}function Jc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function OC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
601
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _C(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,c=e.flash,u=e.spin,d=e.spinPulse,h=e.spinReverse,m=e.pulse,p=e.fixedWidth,y=e.inverse,S=e.border,b=e.listItem,T=e.flip,w=e.size,E=e.rotation,P=e.pull,$=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":c,"fa-spin":u,"fa-spin-reverse":h,"fa-spin-pulse":d,"fa-pulse":m,"fa-fw":p,"fa-inverse":y,"fa-border":S,"fa-li":b,"fa-flip":T===!0,"fa-flip-horizontal":T==="horizontal"||T==="both","fa-flip-vertical":T==="vertical"||T==="both"},Fi(t,"fa-".concat(w),typeof w<"u"&&w!==null),Fi(t,"fa-rotate-".concat(E),typeof E<"u"&&E!==null&&E!==0),Fi(t,"fa-pull-".concat(P),typeof P<"u"&&P!==null),Fi(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys($).map(function(A){return $[A]?A:null}).filter(function(A){return A})}function IC(e){return e=e-0,e===e}function eg(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 $C=["style"];function DC(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=eg(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[DC(i)]=o:t[i]=o,t},{})}function tg(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 tg(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[eg(d)]=h}return u},{attrs:{}}),o=n.style,a=o===void 0?{}:o,c=CC(n,$C);return i.attrs.style=An(An({},i.attrs.style),a),e.apply(void 0,[t.tag,An(An({},i.attrs),c)].concat(Zc(r)))}var ng=!1;try{ng=process.env.NODE_ENV==="production"}catch{}function NC(){if(!ng&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function rg(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?Fi({},e,t):{}}var ig={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=_.forwardRef(function(e,t){var n=An(An({},ig),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,c=n.title,u=n.titleId,d=n.maskId,h=rg(r),m=Qc("classes",[].concat(Zc(_C(n)),Zc((a||"").split(" ")))),p=Qc("transform",typeof n.transform=="string"?Uc.transform(n.transform):n.transform),y=Qc("mask",rg(i)),S=pC(h,An(An(An(An({},m),p),y),{},{symbol:o,title:c,titleId:u,maskId:d}));if(!S)return NC("Could not find icon",h),null;var b=S.abstract,T={ref:t};return Object.keys(n).forEach(function(w){ig.hasOwnProperty(w)||(T[w]=n[w])}),LC(b[0],T)});_e.displayName="FontAwesomeIcon",_e.propTypes={beat:$e.bool,border:$e.bool,beatFade:$e.bool,bounce:$e.bool,className:$e.string,fade:$e.bool,flash:$e.bool,mask:$e.oneOfType([$e.object,$e.array,$e.string]),maskId:$e.string,fixedWidth:$e.bool,inverse:$e.bool,flip:$e.oneOf([!0,!1,"horizontal","vertical","both"]),icon:$e.oneOfType([$e.object,$e.array,$e.string]),listItem:$e.bool,pull:$e.oneOf(["right","left"]),pulse:$e.bool,rotation:$e.oneOf([0,90,180,270]),shake:$e.bool,size:$e.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:$e.bool,spinPulse:$e.bool,spinReverse:$e.bool,symbol:$e.oneOfType([$e.bool,$e.string]),title:$e.string,titleId:$e.string,transform:$e.oneOfType([$e.string,$e.object]),swapOpacity:$e.bool};var LC=tg.bind(null,_.createElement);const kC=({title:e,icon:t,imageUrl:n,onClick:r,isSelected:i=!1})=>v.jsxs("button",{onClick:r,className:`
602
602
  flex flex-col items-center justify-center
603
603
  w-[180px] h-[87px] p-4 rounded-xl
604
604
  gap-2 transition-colors
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(Ie,{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=_.createContext({});function ru(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const iu=typeof window<"u",og=iu?_.useLayoutEffect:_.useEffect,ga=_.createContext(null),su=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});let HC=class extends ee.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=r instanceof HTMLElement&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}};function qC({children:e,isPresent:t,anchorX:n}){const r=_.useId(),i=_.useRef(null),o=_.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=_.useContext(su);return _.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:h,right:m}=o.current;if(t||!i.current||!c||!u)return;const p=n==="left"?`left: ${h}`:`right: ${m}`;i.current.dataset.motionPopId=r;const y=document.createElement("style");return a&&(y.nonce=a),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(`
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"]},sg={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"]},og={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=_.createContext({});function ru(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const iu=typeof window<"u",ag=iu?_.useLayoutEffect:_.useEffect,ga=_.createContext(null),su=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});let HC=class extends ee.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=r instanceof HTMLElement&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}};function qC({children:e,isPresent:t,anchorX:n}){const r=_.useId(),i=_.useRef(null),o=_.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=_.useContext(su);return _.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:h,right:m}=o.current;if(t||!i.current||!c||!u)return;const p=n==="left"?`left: ${h}`:`right: ${m}`;i.current.dataset.motionPopId=r;const y=document.createElement("style");return a&&(y.nonce=a),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(`
614
614
  [data-motion-pop-id="${r}"] {
615
615
  position: absolute !important;
616
616
  width: ${c}px !important;
@@ -618,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:o,children:ee.cloneElement(e,{ref:i})})}const KC=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=ru(XC),d=_.useId(),h=_.useCallback(p=>{u.set(p,!0);for(const y of u.values())if(!y)return;r&&r()},[u,r]),m=_.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),o?[Math.random(),h]:[n,h]);return _.useMemo(()=>{u.forEach((p,y)=>u.set(y,!1))},[n]),ee.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=v.jsx(qC,{isPresent:n,anchorX:c,children:e})),v.jsx(ga.Provider,{value:m,children:e})};function XC(){return new Map}function ag(e=!0){const t=_.useContext(ga);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=_.useId();_.useEffect(()=>{if(e)return i(o)},[e]);const a=_.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const ya=e=>e.key||"";function lg(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const ZC=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=ag(a),h=_.useMemo(()=>lg(e),[e]),m=a&&!u?[]:h.map(ya),p=_.useRef(!0),y=_.useRef(h),S=ru(()=>new Map),[b,T]=_.useState(h),[w,E]=_.useState(h);og(()=>{p.current=!1,y.current=h;for(let A=0;A<w.length;A++){const D=ya(w[A]);m.includes(D)?S.delete(D):S.get(D)!==!0&&S.set(D,!1)}},[w,m.length,m.join("-")]);const P=[];if(h!==b){let A=[...h];for(let D=0;D<w.length;D++){const k=w[D],F=ya(k);m.includes(F)||(A.splice(D,0,k),P.push(k))}return o==="wait"&&P.length&&(A=P),E(lg(A)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:$}=_.useContext(nu);return v.jsx(v.Fragment,{children:w.map(A=>{const D=ya(A),k=a&&!u?!1:h===w||m.includes(D),F=()=>{if(S.has(D))S.set(D,!0);else return;let z=!0;S.forEach(J=>{J||(z=!1)}),z&&($==null||$(),E(y.current),a&&(d==null||d()),r&&r())};return v.jsx(KC,{isPresent:k,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:k?void 0:F,anchorX:c,children:A},D)})})};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 Vi=Rt,vr=Rt;process.env.NODE_ENV!=="production"&&(Vi=(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 Bi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let cu=class{constructor(){this.subscriptions=[]}add(t){return ou(this.subscriptions,t),()=>au(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const Mn=e=>e*1e3,Hn=e=>e/1e3;function cg(e,t){return t?e*(1e3/t):0}const ug=new Set;function va(e,t,n){e||ug.has(t)||(console.warn(t),ug.add(t))}const QC=lu(()=>window.ScrollTimeline!==void 0);let eP=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(QC()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},tP=class extends eP{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function uu(e,t){return e?e[t]||e.default||e:void 0}const fu=2e4;function fg(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<fu;)t+=n,r=e.next(t);return t>=fu?1/0:t}function du(e){return typeof e=="function"}function dg(e,t){e.timeline=t,e.onfinish=null}const hu=e=>Array.isArray(e)&&typeof e[0]=="number",nP={linearEasing:void 0};function rP(e,t){const n=lu(e);return()=>{var r;return(r=nP[t])!==null&&r!==void 0?r:n()}}const ba=rP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),hg=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Bi(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function mg(e){return!!(typeof e=="function"&&ba()||!e||typeof e=="string"&&(e in mu||ba())||hu(e)||Array.isArray(e)&&e.every(mg))}const Ys=([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:Ys([0,.65,.55,1]),circOut:Ys([.55,0,1,.45]),backIn:Ys([.31,.01,.66,-.59]),backOut:Ys([.33,1.53,.69,.99])};function pg(e,t){if(e)return typeof e=="function"&&ba()?hg(e,t):hu(e)?Ys(e):Array.isArray(e)?e.map(n=>pg(n,t)||mu.easeOut):mu[e]}const xa=["read","resolveKeyframes","update","preRender","render","postRender"],gg={value:null};function iP(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,p=!1,y=!1)=>{const b=y&&i?n:r;return p&&a.add(m),b.has(m)||b.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&gg.value&&gg.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const sP=40;function yg(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=xa.reduce((w,E)=>(w[E]=iP(o,t?E:void 0),w),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:p}=a,y=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,sP),1),i.timestamp=w,i.isProcessing=!0,c.process(i),u.process(i),d.process(i),h.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},S=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:xa.reduce((w,E)=>{const P=a[E];return w[E]=($,A=!1,D=!1)=>(n||S(),P.schedule($,A,D)),w},{}),cancel:w=>{for(let E=0;E<xa.length;E++)a[xa[E]].cancel(w)},state:i,steps:a}}const{schedule:Ye,cancel:br,state:yt,steps:pu}=yg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Rt,!0),{schedule:gu}=yg(queueMicrotask,!1);let wa;function oP(){wa=void 0}const On={now:()=>(wa===void 0&&On.set(yt.isProcessing||JC.useManualTiming?yt.timestamp:performance.now()),wa),set:e=>{wa=e,queueMicrotask(oP)}},yn={x:!1,y:!1};function vg(){return yn.x||yn.y}function aP(e){return e==="x"||e==="y"?yn[e]?null:(yn[e]=!0,()=>{yn[e]=!1}):yn.x||yn.y?null:(yn.x=yn.y=!0,()=>{yn.x=yn.y=!1})}function lP(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function bg(e,t){const n=lP(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function xg(e){return!(e.pointerType==="touch"||vg())}function cP(e,t,n={}){const[r,i,o]=bg(e,n),a=c=>{if(!xg(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{xg(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}const wg=(e,t)=>t?e===t?!0:wg(e,t.parentElement):!1,yu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,uP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function fP(e){return uP.has(e.tagName)||e.tabIndex!==-1}const Hs=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(Hs.has(n))return;vu(n,"down");const i=Sg(()=>{vu(n,"up")}),o=()=>vu(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Tg(e){return yu(e)&&!vg()}function hP(e,t,n={}){const[r,i,o]=bg(e,n),a=c=>{const u=c.currentTarget;if(!Tg(c)||Hs.has(u))return;Hs.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!Tg(y)||!Hs.has(u))&&(Hs.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||wg(u,y.target))},p=y=>{h(y,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",p,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>dP(d,i)),!fP(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}const Eg=30,mP=e=>!isNaN(parseFloat(e));let pP=class{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=On.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=On.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=mP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&va(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new cu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ye.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=On.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Eg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Eg);return cg(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function qs(e,t){return new pP(e,t)}const Cg=_.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"]},Wi={};for(const e in Pg)Wi[e]={isEnabled:t=>Pg[e].some(n=>!!t[n])};function gP(e){for(const t in e)Wi[t]={...Wi[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=_.createContext({});function Ea(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ks(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=>Ks(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||Ks(n)?n:void 0,animate:Ks(r)?r:void 0}}return e.inherit!==!1?t:{}}function SP(e){const{initial:t,animate:n}=wP(e,_.useContext(Ta));return _.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 Ui(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function EP(e,t,n){return _.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ui(n)&&(n.current=r))},[t])}const wu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),_g="data-"+wu("framerAppearId"),Ig=_.createContext({});function CP(e,t,n,r,i){var o,a;const{visualElement:c}=_.useContext(Ta),u=_.useContext(Cg),d=_.useContext(ga),h=_.useContext(su).reducedMotion,m=_.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=_.useContext(Ig);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&PP(m.current,n,i,y);const S=_.useRef(!1);_.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const b=n[_g],T=_.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,b)));return og(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),gu.render(p.render),T.current&&p.animationState&&p.animationState.animateChanges())}),_.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:o,drag:a,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:o,alwaysMeasureLayout:!!a||c&&Ui(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function $g(e){if(e)return e.options.allowProjection!==!1?e.projection:$g(e.parent)}function AP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&gP(e);function c(d,h){let m;const p={..._.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(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const u=_.forwardRef(c);return u[TP]=i,u}function MP({layoutId:e}){const t=_.useContext(nu).id;return t&&e!==void 0?t+"-"+e:e}function OP(e,t){const n=_.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?Vi(!1,r):vr(!1,r)}}function _P(e){const{drag:t,layout:n}=Wi;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("--"),IP=Dg("var(--"),Tu=e=>IP(e)?$P.test(e.split("/*")[0].trim()):!1,$P=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Xs={};function DP(e){for(const t in e)Xs[t]=e[t],Su(t)&&(Xs[t].isCSSVariable=!0)}const zi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ti=new Set(zi);function Rg(e,{layout:t,layoutId:n}){return ti.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Xs[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,Gi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Zs={...Gi,transform:e=>qn(0,1,e)},Pa={...Gi,default:1},Js=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xr=Js("deg"),_n=Js("%"),we=Js("px"),RP=Js("vh"),NP=Js("vw"),Lg={..._n,parse:e=>_n.parse(e)/100,transform:e=>_n.transform(e*100)},LP={borderWidth:we,borderTopWidth:we,borderRightWidth:we,borderBottomWidth:we,borderLeftWidth:we,borderRadius:we,radius:we,borderTopLeftRadius:we,borderTopRightRadius:we,borderBottomRightRadius:we,borderBottomLeftRadius:we,width:we,maxWidth:we,height:we,maxHeight:we,top:we,right:we,bottom:we,left:we,padding:we,paddingTop:we,paddingRight:we,paddingBottom:we,paddingLeft:we,margin:we,marginTop:we,marginRight:we,marginBottom:we,marginLeft:we,backgroundPositionX:we,backgroundPositionY:we},kP={rotate:xr,rotateX:xr,rotateY:xr,rotateZ:xr,scale:Pa,scaleX:Pa,scaleY:Pa,scaleZ:Pa,skew:xr,skewX:xr,skewY:xr,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:Zs,originX:Lg,originY:Lg,originZ:we},kg={...Gi,transform:Math.round},Eu={...LP,...kP,zIndex:kg,size:we,fillOpacity:Zs,strokeOpacity:Zs,numOctaves:kg},jP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},FP=zi.length;function VP(e,t,n){let r="",i=!0;for(let o=0;o<FP;o++){const a=zi[o],c=e[a];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(a.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Ng(c,Eu[a]);if(!u){i=!1;const h=jP[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Cu(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(ti.has(u)){a=!0;continue}else if(Su(u)){i[u]=d;continue}else{const h=Ng(d,Eu[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=VP(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${d} ${h}`}}const Pu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function jg(e,t,n){for(const r in t)!St(t[r])&&!Rg(r,n)&&(e[r]=t[r])}function BP({transformTemplate:e},t){return _.useMemo(()=>{const n=Pu();return Cu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function WP(e,t){const n=e.style||{},r={};return jg(r,n,e),Object.assign(r,BP(e,t)),r}function UP(e,t){const n={},r=WP(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const zP=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Au(e){return typeof e!="string"||e.includes("-")?!1:!!(zP.indexOf(e)>-1||/[A-Z]/u.test(e))}const GP={offset:"stroke-dashoffset",array:"stroke-dasharray"},YP={offset:"strokeDashoffset",array:"strokeDasharray"};function HP(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?GP:YP;e[o.offset]=we.transform(-r);const a=we.transform(t),c=we.transform(n);e[o.array]=`${a} ${c}`}function Fg(e,t,n){return typeof e=="string"?e:we.transform(t+n*e)}function qP(e,t,n){const r=Fg(t,e.x,e.width),i=Fg(n,e.y,e.height);return`${r} ${i}`}function Mu(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(Cu(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:y,dimensions:S}=e;p.transform&&(S&&(y.transform=p.transform),delete p.transform),S&&(i!==void 0||o!==void 0||y.transform)&&(y.transformOrigin=qP(S,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&HP(p,a,c,u,!1)}const Vg=()=>({...Pu(),attrs:{}}),Ou=e=>typeof e=="string"&&e.toLowerCase()==="svg";function KP(e,t,n,r){const i=_.useMemo(()=>{const o=Vg();return Mu(o,t,Ou(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};jg(o,e.style,e),i.style={...o,...i.style}}return i}function XP(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(Au(n)?KP:UP)(r,o,a,n),d=bP(r,typeof n=="string",e),h=n!==_.Fragment?{...d,...u,ref:i}:{},{children:m}=r,p=_.useMemo(()=>St(m)?m.get():m,[m]);return _.createElement(n,{...h,children:p})}}function Bg(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function _u(e,t,n,r){if(typeof t=="function"){const[i,o]=Bg(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Bg(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Iu=e=>Array.isArray(e),ZP=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),JP=e=>Iu(e)?e[e.length-1]||0:e;function Aa(e){const t=St(e)?e.get():e;return ZP(t)?t.toValue():t}function QP({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:eA(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Wg=e=>(t,n)=>{const r=_.useContext(Ta),i=_.useContext(ga),o=()=>QP(e,t,r,i);return n?o():ru(o)};function eA(e,t,n,r){const i={},o=r(e,{});for(const p in o)i[p]=Aa(o[p]);let{initial:a,animate:c}=e;const u=Ca(e),d=Mg(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?c:a;if(m&&typeof m!="boolean"&&!Ea(m)){const p=Array.isArray(m)?m:[m];for(let y=0;y<p.length;y++){const S=_u(e,p[y]);if(S){const{transitionEnd:b,transition:T,...w}=S;for(const E in w){let P=w[E];if(Array.isArray(P)){const $=h?P.length-1:0;P=P[$]}P!==null&&(i[E]=P)}for(const E in b)i[E]=b[E]}}}return i}function $u(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(St(i[a])||t.style&&St(t.style[a])||Rg(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}const tA={useVisualState:Wg({scrapeMotionValuesFromProps:$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 o in n)e.style.setProperty(o,n[o])}const Gg=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Yg(e,t,n,r){zg(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Gg.has(i)?i:wu(i),t.attrs[i])}function Hg(e,t,n){const r=$u(e,t,n);for(const i in e)if(St(e[i])||St(t[i])){const o=zi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const qg=["x","y","width","height","cx","cy","r"],nA={useVisualState:Wg({scrapeMotionValuesFromProps:Hg,createRenderState:Vg,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in i)if(ti.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<qg.length;c++){const u=qg[c];e[u]!==t[u]&&(a=!0)}a&&Ye.read(()=>{Ug(n,r),Ye.render(()=>{Mu(r,i,Ou(n.tagName),e.transformTemplate),Yg(n,r)})})}})};function rA(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Au(r)?nA:tA,preloadedFeatures:e,useRender:XP(i),createVisualElement:t,Component:r};return AP(a)}}function Qs(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",...zi]);function iA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,qs(n))}function sA(e,t){const n=Qs(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=JP(o[a]);iA(e,a,c)}}function oA(e){return!!(St(e)&&e.add)}function Du(e,t){const n=e.getValue("willChange");if(oA(n))return n.add(t)}function Xg(e){return e.props[_g]}const Zg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,aA=1e-7,lA=12;function cA(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=Zg(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>aA&&++c<lA);return a}function eo(e,t,n,r){if(e===t&&n===r)return Rt;const i=o=>cA(o,0,1,e,n);return o=>o===0||o===1?o:Zg(i(o),t,r)}const Jg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Qg=e=>t=>1-e(1-t),e0=eo(.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 to=e=>Math.round(e*1e5)/1e5,Lu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function fA(e){return e==null}const dA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ku=(e,t)=>n=>!!(typeof n=="string"&&dA.test(n)&&n.startsWith(e)||t&&!fA(n)&&Object.prototype.hasOwnProperty.call(n,t)),o0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Lu);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},hA=e=>qn(0,255,e),ju={...Gi,transform:e=>Math.round(hA(e))},ni={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)+", "+to(Zs.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:ni.transform},Yi={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(to(t))+", "+_n.transform(to(n))+", "+to(Zs.transform(r))+")"},Tt={test:e=>ni.test(e)||Fu.test(e)||Yi.test(e),parse:e=>ni.test(e)?ni.parse(e):Yi.test(e)?Yi.parse(e):Fu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ni.transform(e):Yi.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 no(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(bA,u=>(Tt.test(u)?(r.color.push(o),i.push(l0),n.push(Tt.parse(u))):u.startsWith(vA)?(r.var.push(o),i.push(yA),n.push(u)):(r.number.push(o),i.push(a0),n.push(parseFloat(u))),++o,c0)).split(c0);return{values:n,split:c,indexes:r,types:i}}function u0(e){return no(e).values}function f0(e){const{split:t,types:n}=no(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const c=n[a];c===a0?o+=to(i[a]):c===l0?o+=Tt.transform(i[a]):o+=i[a]}return o}}const xA=e=>typeof e=="number"?0:e;function wA(e){const t=u0(e);return f0(e)(t.map(xA))}const wr={test:gA,parse:u0,createTransformer:f0,getAnimatableNone:wA},SA=new Set(["brightness","contrast","saturate","opacity"]);function TA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Lu)||[];if(!r)return e;const i=n.replace(r,"");let o=SA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const EA=/\b([a-z-]*)\(.*?\)/gu,Vu={...wr,getAnimatableNone:e=>{const t=e.match(EA);return t?t.map(TA).join(" "):e}},CA={...Eu,color:Tt,backgroundColor:Tt,outlineColor:Tt,fill:Tt,stroke:Tt,borderColor:Tt,borderTopColor:Tt,borderRightColor:Tt,borderBottomColor:Tt,borderLeftColor:Tt,filter:Vu,WebkitFilter:Vu},d0=e=>CA[e];function h0(e,t){let n=d0(e);return n!==Vu&&(n=wr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const PA=new Set(["auto","none","0"]);function AA(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!PA.has(o)&&no(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=h0(n,i)}const ri=e=>e*180/Math.PI,Bu=e=>{const t=ri(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=>ri(Math.atan(e[1])),skewY:e=>ri(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(ri(Math.atan2(e[6],e[5]))),rotateY:e=>Wu(ri(Math.atan2(-e[2],e[0]))),rotateZ:m0,rotate:m0,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 y0(e){return e.includes("scale")?1:0}function Uu(e,t){if(!e||e==="none")return y0(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=OA,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=MA,i=c}if(!i)return y0(t);const o=r[t],a=i[1].split(",").map(IA);return typeof o=="function"?o(a):a[o]}const _A=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Uu(n,t)};function IA(e){return parseFloat(e.trim())}const v0=e=>e===Gi||e===we,$A=new Set(["x","y","z"]),DA=zi.filter(e=>!$A.has(e));function RA(e){const t=[];return DA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Hi={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")};Hi.translateX=Hi.x,Hi.translateY=Hi.y;const ii=new Set;let zu=!1,Gu=!1;function b0(){if(Gu){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=RA(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Gu=!1,zu=!1,ii.forEach(e=>e.complete()),ii.clear()}function x0(){ii.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Gu=!0)})}function NA(){x0(),b0()}let Yu=class{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ii.add(this),zu||(zu=!0,Ye.read(x0),Ye.resolveKeyframes(b0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ii.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ii.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const w0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),LA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kA(e){const t=LA.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const jA=4;function S0(e,t,n=1){vr(n<=jA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=kA(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return w0(a)?parseFloat(a):a}return Tu(i)?S0(i,t,n+1):i}const T0=e=>t=>t.test(e),E0=[Gi,we,_n,xr,NP,RP,{test:e=>e==="auto",parse:e=>e}],C0=e=>E0.find(T0(e));let P0=class extends Yu{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Tu(d))){const h=S0(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Kg.has(r)||t.length!==2)return;const[i,o]=t,a=C0(i),c=C0(o);if(a!==c)if(v0(a)&&v0(c))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)uA(t[i])&&r.push(i);r.length&&AA(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Hi[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=Hi[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,d])=>{n.getValue(u).set(d)}),this.resolveNoneKeyframes()}};const A0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wr.test(e)||e==="0")&&!e.startsWith("url("));function FA(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function VA(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=A0(i,t),c=A0(o,t);return Vi(a===c,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:FA(e)||(n==="spring"||du(n))&&r}const BA=e=>e!==null;function Ma(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(BA),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const WA=40;let M0=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=On.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>WA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&NA(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=On.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!VA(t,r,i,o))if(a)this.options.duration=0;else{u&&u(Ma(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const tt=(e,t,n)=>e+(t-e)*n;function Hu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function UA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=Hu(u,c,e+1/3),o=Hu(u,c,e),a=Hu(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Oa(e,t){return n=>n>0?t:e}const qu=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},zA=[Fu,ni,Yi],GA=e=>zA.find(t=>t.test(e));function O0(e){const t=GA(e);if(Vi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Yi&&(n=UA(n)),n}const _0=(e,t)=>{const n=O0(e),r=O0(t);if(!n||!r)return Oa(e,t);const i={...n};return o=>(i.red=qu(n.red,r.red,o),i.green=qu(n.green,r.green,o),i.blue=qu(n.blue,r.blue,o),i.alpha=tt(n.alpha,r.alpha,o),ni.transform(i))},YA=(e,t)=>n=>t(e(n)),ro=(...e)=>e.reduce(YA),Ku=new Set(["none","hidden"]);function HA(e,t){return Ku.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function qA(e,t){return n=>tt(e,t,n)}function Xu(e){return typeof e=="number"?qA:typeof e=="string"?Tu(e)?Oa:Tt.test(e)?_0:ZA:Array.isArray(e)?I0:typeof e=="object"?Tt.test(e)?_0:KA:Oa}function I0(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>Xu(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function KA(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Xu(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function XA(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][i[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,i[a]++}return r}const ZA=(e,t)=>{const n=wr.createTransformer(t),r=no(e),i=no(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):ro(I0(XA(r,i),i.values),n):(Vi(!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 JA=5;function D0(e,t,n){const r=Math.max(t-JA,0);return cg(n-e(r),t-r)}const nt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},R0=.001;function QA({duration:e=nt.duration,bounce:t=nt.bounce,velocity:n=nt.velocity,mass:r=nt.mass}){let i,o;Vi(e<=Mn(nt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=qn(nt.minDamping,nt.maxDamping,a),e=qn(nt.minDuration,nt.maxDuration,Hn(e)),a<1?(i=d=>{const h=d*a,m=h*e,p=h-n,y=Zu(d,a),S=Math.exp(-m);return R0-p/y*S},o=d=>{const m=d*a*e,p=m*n+n,y=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),b=Zu(Math.pow(d,2),a);return(-i(d)+R0>0?-1:1)*((p-y)*S)/b}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const c=5/e,u=tM(i,o,c);if(e=Mn(e),isNaN(u))return{stiffness:nt.stiffness,damping:nt.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const eM=12;function tM(e,t,n){let r=n;for(let i=1;i<eM;i++)r=r-e(r)/t(r);return r}function Zu(e,t){return e*Math.sqrt(1-t*t)}const nM=["duration","bounce"],rM=["stiffness","damping","mass"];function N0(e,t){return t.some(n=>e[n]!==void 0)}function iM(e){let t={velocity:nt.velocity,stiffness:nt.stiffness,damping:nt.damping,mass:nt.mass,isResolvedFromDuration:!1,...e};if(!N0(e,rM)&&N0(e,nM))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*qn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:nt.mass,stiffness:i,damping:o}}else{const n=QA(e);t={...t,...n,mass:nt.mass},t.isResolvedFromDuration=!0}return t}function L0(e=nt.visualDuration,t=nt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:m,velocity:p,isResolvedFromDuration:y}=iM({...n,velocity:-Hn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=a-o,w=Hn(Math.sqrt(u/h)),E=Math.abs(T)<5;r||(r=E?nt.restSpeed.granular:nt.restSpeed.default),i||(i=E?nt.restDelta.granular:nt.restDelta.default);let P;if(b<1){const A=Zu(w,b);P=D=>{const k=Math.exp(-b*w*D);return a-k*((S+b*w*T)/A*Math.sin(A*D)+T*Math.cos(A*D))}}else if(b===1)P=A=>a-Math.exp(-w*A)*(T+(S+w*T)*A);else{const A=w*Math.sqrt(b*b-1);P=D=>{const k=Math.exp(-b*w*D),F=Math.min(A*D,300);return a-k*((S+b*w*T)*Math.sinh(F)+A*T*Math.cosh(F))/A}}const $={calculatedDuration:y&&m||null,next:A=>{const D=P(A);if(y)c.done=A>=m;else{let k=0;b<1&&(k=A===0?Mn(S):D0(P,A,D));const F=Math.abs(k)<=r,z=Math.abs(a-D)<=i;c.done=F&&z}return c.value=c.done?a:D,c},toString:()=>{const A=Math.min(fg($),fu),D=hg(k=>$.next(A*k).value,A,30);return A+"ms "+D}};return $}function k0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},y=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=a===void 0?T:a(T);w!==T&&(b=w-m);const E=F=>-b*Math.exp(-F/r),P=F=>w+E(F),$=F=>{const z=E(F),J=P(F);p.done=Math.abs(z)<=d,p.value=p.done?w:J};let A,D;const k=F=>{y(p.value)&&(A=F,D=L0({keyframes:[p.value,S(p.value)],velocity:D0(P,F,p.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return k(0),{calculatedDuration:null,next:F=>{let z=!1;return!D&&A===void 0&&(z=!0,$(F),k(F)),A!==void 0&&F>=A?D.next(F-A):(!z&&$(F),p)}}}const sM=eo(.42,0,1,1),oM=eo(0,0,.58,1),j0=eo(.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 eo(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||$0,o=e.length-1;for(let a=0;a<o;a++){let c=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Rt:t;c=ro(u,c)}r.push(c)}return r}function cM(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(vr(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=lM(t,r,i),u=c.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const p=Bi(e[m],e[m+1],h);return c[m](p)};return n?h=>d(qn(e[0],e[o-1],h)):d}function uM(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Bi(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 io({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=aM(r)?r.map(V0):V0(r),o={done:!1,value:t[0]},a=dM(n&&n.length===t.length?n:fM(t),e),c=cM(a,t,{ease:Array.isArray(i)?i:hM(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const mM=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ye.update(t,!0),stop:()=>br(t),now:()=>yt.isProcessing?yt.timestamp:On.now()}},pM={decay:k0,inertia:k0,tween:io,keyframes:io,spring:L0},gM=e=>e/100;let Ju=class extends M0{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||Yu,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=du(n)?n:pM[n]||io;let u,d;process.env.NODE_ENV!=="production"&&c!==io&&vr(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==io&&typeof t[0]!="number"&&(u=ro(gM,$0(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=fg(h));const{calculatedDuration:m}=h,p=m+i,y=p*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:y,repeatType:S,repeatDelay:b,onUpdate: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),E=this.speed>=0?w<0:w>h;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let P=this.currentTime,$=o;if(y){const F=Math.min(this.currentTime,h)/m;let z=Math.floor(F),J=F%1;!J&&F>=1&&(J=1),J===1&&z--,z=Math.min(z,y+1),!!(z%2)&&(S==="reverse"?(J=1-J,b&&(J-=b/m)):S==="mirror"&&($=a)),P=qn(0,1,J)*m}const A=E?{done:!1,value:u[0]}:$.next(P);c&&(A.value=c(A.value));let{done:D}=A;!E&&d!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return k&&i!==void 0&&(A.value=Ma(u,this.options,i)),T&&T(A.value),k&&this.finish(),A}get duration(){const{resolved:t}=this;return t?Hn(t.calculatedDuration):0}get time(){return Hn(this.currentTime)}set time(t){t=Mn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Hn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=mM,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};const yM=new Set(["opacity","clipPath","filter","transform"]);function vM(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=pg(c,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const bM=lu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_a=10,xM=2e4;function wM(e){return du(e.type)||e.type==="spring"||!mg(e.ease)}function SM(e,t){const n=new Ju({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<xM;)r=n.sample(o),i.push(r.value),o+=_a;return{times:void 0,keyframes:i,duration:o-_a,ease:"linear"}}const B0={anticipate:n0,backInOut:t0,circInOut:i0};function TM(e){return e in B0}let W0=class extends M0{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new P0(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&ba()&&TM(o)&&(o=B0[o]),wM(this.options)){const{onComplete:m,onUpdate:p,motionValue:y,element:S,...b}=this.options,T=SM(t,b);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,o=T.ease,a="keyframes"}const h=vM(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(dg(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ma(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Hn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Hn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Mn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Rt;const{animation:r}=n;dg(r,t)}return Rt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:p,...y}=this.options,S=new Ju({...y,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),b=Mn(this.time);d.setWithVelocity(S.sample(b-_a).value,S.sample(b).value,_a)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return bM()&&r&&yM.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}};const EM={type:"spring",stiffness:500,damping:25,restSpeed:10},CM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),PM={type:"keyframes",duration:.8},AM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},MM=(e,{keyframes:t})=>t.length>2?PM:ti.has(e)?e.startsWith("scale")?CM(t[1]):EM:AM;function OM({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const Qu=(e,t,n,r={},i,o)=>a=>{const c=uu(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Mn(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};OM(c)||(h={...h,...MM(e,h)}),h.duration&&(h.duration=Mn(h.duration)),h.repeatDelay&&(h.repeatDelay=Mn(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const p=Ma(h.keyframes,c);if(p!==void 0)return Ye.update(()=>{h.onUpdate(p),h.onComplete()}),new tP([])}return!o&&W0.supports(h)?new W0(h):new Ju(h)};function _M({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function U0(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const p=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),y=u[m];if(y===void 0||h&&_M(h,m))continue;const S={delay:n,...uu(a||{},m)};let b=!1;if(window.MotionHandoffAnimation){const w=Xg(e);if(w){const E=window.MotionHandoffAnimation(w,m,Ye);E!==null&&(S.startTime=E,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&&sA(e,c)})}),d}function ef(e,t,n={}){var r;const i=Qs(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(U0(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return IM(e,t,h+d,m,p,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[a,c]:[c,a];return d().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function IM(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort($M).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(ef(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function $M(e,t){return e.sortNodePosition(t)}function DM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>ef(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=ef(e,t,n);else{const i=typeof t=="function"?Qs(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];(Ks(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})=>DM(e,n,r)))}function jM(e){let t=kM(e),n=Y0(),r=!0;const i=u=>(d,h)=>{var m;const p=Qs(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:y,transitionEnd:S,...b}=p;d={...d,...b,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=G0(e.parent)||{},m=[],p=new Set;let y={},S=1/0;for(let T=0;T<LM;T++){const w=NM[T],E=n[w],P=d[w]!==void 0?d[w]:h[w],$=Ks(P),A=w===u?E.isActive:null;A===!1&&(S=T);let D=P===h[w]&&P!==d[w]&&$;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),E.protectedKeys={...y},!E.isActive&&A===null||!P&&!E.prevProp||Ea(P)||typeof P=="boolean")continue;const k=FM(E.prevProp,P);let F=k||w===u&&E.isActive&&!D&&$||T>S&&$,z=!1;const J=Array.isArray(P)?P:[P];let ne=J.reduce(i(w),{});A===!1&&(ne={});const{prevResolvedValues:le={}}=E,ye={...le,...ne},de=V=>{F=!0,p.has(V)&&(z=!0,p.delete(V)),E.needsAnimating[V]=!0;const B=e.getValue(V);B&&(B.liveStyle=!1)};for(const V in ye){const B=ne[V],G=le[V];if(y.hasOwnProperty(V))continue;let O=!1;Iu(B)&&Iu(G)?O=!z0(B,G):O=B!==G,O?B!=null?de(V):p.add(V):B!==void 0&&p.has(V)?de(V):E.protectedKeys[V]=!0}E.prevProp=P,E.prevResolvedValues=ne,E.isActive&&(y={...y,...ne}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(D&&k)||z)&&m.push(...J.map(V=>({animation:V,options:{type:w}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const w=Qs(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(T.transition=w.transition)}p.forEach(w=>{const E=e.getBaseTarget(w),P=e.getValue(w);P&&(P.liveStyle=!0),T[w]=E??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=a(u);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Y0(),r=!0}}}function FM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!z0(t,e):!1}function si(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Y0(){return{animate:si(!0),whileInView:si(),whileHover:si(),whileTap:si(),whileDrag:si(),whileFocus:si(),exit:si()}}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 so(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function oo(e){return{point:{x:e.pageX,y:e.pageY}}}const UM=e=>t=>yu(t)&&e(t,oo(t));function ao(e,t,n,r){return so(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 lo(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 co(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}),qi=()=>({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 oi(e){return nf(e)||ty(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ty(e){return ny(e.x)||ny(e.y)}function ny(e){return e&&e!=="0%"}function Ia(e,t,n){const r=e-n,i=t*r;return n+i}function ry(e,t,n,r,i){return i!==void 0&&(e=Ia(e,i,r)),Ia(e,n,r)+t}function rf(e,t=0,n=1,r,i){e.min=ry(e.min,t,n,r,i),e.max=ry(e.max,t,n,r,i)}function iy(e,{x:t,y:n}){rf(e.x,t.translate,t.scale,t.originPoint),rf(e.y,n.translate,n.scale,n.originPoint)}const sy=.999999999999,oy=1.0000000000001;function JM(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Xi(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,iy(e,a)),r&&oi(o.latestValues)&&Xi(e,o.latestValues))}t.x<oy&&t.x>sy&&(t.x=1),t.y<oy&&t.y>sy&&(t.y=1)}function Ki(e,t){e.min=e.min+t,e.max=e.max+t}function ay(e,t,n,r,i=.5){const o=tt(e.min,e.max,i);rf(e,t,n,o,r)}function Xi(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&&(Ki(r.x,i.offset.x),Ki(r.y,i.offset.y)),r}const cy=({current:e})=>e?e.ownerDocument.defaultView:null,uy=(e,t)=>Math.abs(e-t);function eO(e,t){const n=uy(e.x,t.x),r=uy(e.y,t.y);return Math.sqrt(n**2+r**2)}let fy=class{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=of(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=eO(m.offset,{x:0,y:0})>=3;if(!p&&!y)return;const{point:S}=m,{timestamp:b}=yt;this.history.push({...S,timestamp:b});const{onStart: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=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=oo(t),c=sf(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=yt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,of(c,this.history)),this.removeListeners=ro(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(),br(this.updatePoint)}};function sf(e,t){return t?{point:t(e.point)}:e}function dy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function of({point:e},t){return{point:e,delta:dy(e,hy(t)),offset:dy(e,tO(t)),velocity:nO(t,.1)}}function tO(e){return e[0]}function hy(e){return e[e.length-1]}function nO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=hy(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Mn(t)));)n--;if(!r)return{x:0,y:0};const o=Hn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function rO(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?tt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?tt(n,e,r.max):Math.min(e,n)),e}function my(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function iO(e,{top:t,left:n,bottom:r,right:i}){return{x:my(e.x,n,i),y:my(e.y,t,r)}}function py(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function sO(e,t){return{x:py(e.x,t.x),y:py(e.y,t.y)}}function oO(e,t){let n=.5;const r=Ot(e),i=Ot(t);return i>r?n=Bi(t.min,t.max-r,e.min):r>i&&(n=Bi(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(oo(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:y,onDragStart:S}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=aP(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tn(T=>{let w=this.getAxisMotionValue(T).get()||0;if(_n.test(w)){const{projection:E}=this.visualElement;if(E&&E.layout){const P=E.layout.layoutBox[T];P&&(w=Ot(P)*(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)},a=(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:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:cy(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Ye.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!$a(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=rO(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Ui(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=iO(i.layoutBox,n):this.constraints=!1,this.elastic=lO(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=aO(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ui(t))return!1;const r=t.current;vr(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=QM(r,i.root,this.visualElement.getTransformPagePoint());let a=sO(i.layout.layoutBox,o);if(n){const c=n(zM(a));this.hasMutatedConstraints=!!c,c&&(a=H0(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=tn(h=>{if(!$a(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const p=i?200:1e6,y=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return 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,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(t[n]-tt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ui(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};tn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();i[a]=oO({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),tn(a=>{if(!$a(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(tt(u,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;cO.set(this.visualElement,this);const t=this.visualElement.current,n=ao(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Ui(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Ye.read(r);const a=so(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(tn(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=u[h].translate,m.set(m.get()+u[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=af,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}};function $a(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function fO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}let dO=class extends Sr{constructor(t){super(t),this.removeGroupControls=Rt,this.removeListeners=Rt,this.controls=new uO(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Rt}unmount(){this.removeGroupControls(),this.removeListeners()}};const vy=e=>(t,n)=>{e&&Ye.postRender(()=>e(t,n))};let hO=class extends Sr{constructor(){super(...arguments),this.removePointerDownListener=Rt}onPointerDown(t){this.session=new fy(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:cy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:vy(t),onStart:vy(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Ye.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=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 Da={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function by(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const uo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const n=by(e,t.target.x),r=by(e,t.target.y);return`${n}% ${r}%`}},mO={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=wr.parse(e);if(i.length>5)return r;const o=wr.createTransformer(e),a=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+a]/=c,i[1+a]/=u;const d=tt(c,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};let pO=class extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;DP(gO),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Da.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||Ye.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),gu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}};function xy(e){const[t,n]=ag(),r=_.useContext(nu);return v.jsx(pO,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(Ig),isPresent:t,safeToRemove:n})}const gO={borderRadius:{...uo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:uo,borderTopRightRadius:uo,borderBottomLeftRadius:uo,borderBottomRightRadius:uo,boxShadow:mO};function yO(e,t,n){const r=St(e)?e:qs(e);return r.start(Qu("",r,t,n)),r.animation}function vO(e){return e instanceof SVGElement&&e.tagName!=="svg"}const bO=(e,t)=>e.depth-t.depth;let xO=class{constructor(){this.children=[],this.isDirty=!1}add(t){ou(this.children,t),this.isDirty=!0}remove(t){au(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(bO),this.isDirty=!1,this.children.forEach(t)}};function wO(e,t){const n=On.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(br(r),e(o-t))};return Ye.read(r,!0),()=>br(r)}const wy=["TopLeft","TopRight","BottomLeft","BottomRight"],SO=wy.length,Sy=e=>typeof e=="string"?parseFloat(e):e,Ty=e=>typeof e=="number"||we.test(e);function TO(e,t,n,r,i,o){i?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,EO(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,CO(r))):o&&(e.opacity=tt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<SO;a++){const c=`border${wy[a]}Radius`;let u=Ey(t,c),d=Ey(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||Ty(u)===Ty(d)?(e[c]=Math.max(tt(Sy(u),Sy(d),r),0),(_n.test(d)||_n.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=tt(t.rotate||0,n.rotate||0,r))}function Ey(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const EO=Cy(0,.5,r0),CO=Cy(.5,.95,Rt);function Cy(e,t,n){return r=>r<e?0:r>t?1:n(Bi(e,t,r))}function Py(e,t){e.min=t.min,e.max=t.max}function nn(e,t){Py(e.x,t.x),Py(e.y,t.y)}function Ay(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function My(e,t,n,r,i){return e-=t,e=Ia(e,1/n,r),i!==void 0&&(e=Ia(e,1/i,r)),e}function PO(e,t=0,n=1,r=.5,i,o=e,a=e){if(_n.test(t)&&(t=parseFloat(t),t=tt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=tt(o.min,o.max,r);e===o&&(c-=t),e.min=My(e.min,t,n,c,i),e.max=My(e.max,t,n,c,i)}function Oy(e,t,[n,r,i],o,a){PO(e,t[n],t[r],t[i],t.scale,o,a)}const AO=["x","scaleX","originX"],MO=["y","scaleY","originY"];function _y(e,t,n,r){Oy(e.x,t,AO,n?n.x:void 0,r?r.x:void 0),Oy(e.y,t,MO,n?n.y:void 0,r?r.y:void 0)}function Iy(e){return e.translate===0&&e.scale===1}function $y(e){return Iy(e.x)&&Iy(e.y)}function Dy(e,t){return e.min===t.min&&e.max===t.max}function OO(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 _O=class{constructor(){this.members=[]}add(t){ou(this.members,t),t.scheduleRender()}remove(t){if(au(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function IO(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:p,skewX:y,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),y&&(r+=`skewX(${y}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const lf=["","X","Y","Z"],$O={visibility:"hidden"},jy=1e3;let DO=0;function cf(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Fy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Xg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ye,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Fy(r)}function Vy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=DO++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(LO),this.nodes.forEach(BO),this.nodes.forEach(WO),this.nodes.forEach(kO)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new xO)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new cu),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=vO(a),this.instance=a;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=wO(p,250),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()||HO,{onLayoutAnimationStart:T,onLayoutAnimationComplete:w}=h.getProps(),E=!this.targetLayout||!Ny(this.targetLayout,S),P=!p&&y;if(this.options.layoutRoot||this.resumeFrom||P||p&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,P);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 a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,br(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(UO),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Fy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(By);return}this.isUpdating||this.nodes.forEach(FO),this.isUpdating=!1,this.nodes.forEach(VO),this.nodes.forEach(RO),this.nodes.forEach(NO),this.clearAllSnapshots();const c=On.now();yt.delta=qn(0,1e3/60,c-yt.timestamp),yt.timestamp=c,yt.isProcessing=!0,pu.update.process(yt),pu.preRender.process(yt),pu.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,gu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(jO),this.sharedNodes.forEach(zO)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ye.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ye.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ot(this.snapshot.measuredBox.x)&&!Ot(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=at(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!$y(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||oi(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),qO(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return at();const u=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(KO))){const{scroll:h}=this.root;h&&(Ki(u.x,h.offset.x),Ki(u.y,h.offset.y))}return u}removeElementScroll(a){var c;const u=at();if(nn(u,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&nn(u,a),Ki(u.x,m.offset.x),Ki(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=at();nn(u,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Xi(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),oi(h.latestValues)&&Xi(u,h.latestValues)}return oi(this.latestValues)&&Xi(u,this.latestValues),u}removeTransform(a){const c=at();nn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!oi(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 oi(this.latestValues)&&_y(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==yt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=yt.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),co(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(),co(this.relativeTargetOrigin,this.target,y.target),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||nf(this.parent.latestValues)||ty(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===yt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;nn(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,y=this.treeScale.y;JM(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=at());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ay(this.prevProjectionDelta.x,this.projectionDelta.x),Ay(this.prevProjectionDelta.y,this.projectionDelta.y)),lo(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==y||!ky(this.projectionDelta.x,this.prevProjectionDelta.x)||!ky(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=qi(),this.projectionDelta=qi(),this.projectionDeltaWithTransform=qi()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=qi();(!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,E=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(YO));this.animationProgress=0;let P;this.mixTargetDelta=$=>{const A=$/1e3;Uy(m.x,a.x,A),Uy(m.y,a.y,A),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(co(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),GO(this.relativeTarget,this.relativeTargetOrigin,p,A),P&&OO(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=at()),nn(P,this.relativeTarget)),b&&(this.animationValues=h,TO(h,d,this.latestValues,A,E,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(br(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ye.update(()=>{Da.hasAnimatedSinceResize=!0,this.currentAnimation=yO(0,jy,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(jy),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&qy(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||at();const m=Ot(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+m;const p=Ot(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+p}nn(c,u),Xi(c,h),lo(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new _O),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&cf("z",a,d,this.animationValues);for(let h=0;h<lf.length;h++)cf(`rotate${lf[h]}`,a,d,this.animationValues),cf(`skew${lf[h]}`,a,d,this.animationValues);a.render();for(const h in d)a.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return $O;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Aa(a==null?void 0:a.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Aa(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!oi(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 Xs){if(p[b]===void 0)continue;const{correct:T,applyTo:w,isCSSVariable:E}=Xs[b],P=d.transform==="none"?p[b]:T(p[b],m);if(w){const $=w.length;for(let A=0;A<$;A++)d[w[A]]=P}else E?this.options.visualElement.renderState.vars[b]=P:d[b]=P}return this.options.layoutId&&(d.pointerEvents=m===this?Aa(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(By),this.root.sharedNodes.clear()}}}function RO(e){e.updateLayout()}function NO(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?tn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],y=Ot(p);p.min=r[m].min,p.max=p.min+y}):qy(o,n.layoutBox,r)&&tn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],y=Ot(r[m]);p.max=p.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+y)});const c=qi();lo(c,r,n.layoutBox);const u=qi();a?lo(u,e.applyTransform(i,!0),n.measuredBox):lo(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();co(S,n.layoutBox,p.layoutBox);const b=at();co(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)=>so(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),uf={current:void 0},Ky=Vy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!uf.current){const e=new XO({});e.mount(window),e.setOptions({layoutScroll:!0}),uf.current=e}return uf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ZO={pan:{Feature:hO},drag:{Feature:dO,ProjectionNode:Ky,MeasureLayout:xy}};function Xy(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Ye.postRender(()=>o(t,oo(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=ro(so(this.node.current,"focus",()=>this.onFocus()),so(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Zy(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Ye.postRender(()=>o(t,oo(t)))}let e_=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=hP(t,(n,r)=>(Zy(this.node,r,"Start"),(i,{success:o})=>Zy(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const ff=new WeakMap,df=new WeakMap,t_=e=>{const t=ff.get(e.target);t&&t(e)},n_=e=>{e.forEach(t_)};function r_({root:e,...t}){const n=e||document;df.has(n)||df.set(n,{});const r=df.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(n_,{root:e,...t})),r[i]}function i_(e,t,n){const r=r_(t);return ff.set(e,n),r.observe(e),()=>{ff.delete(e),r.unobserve(e)}}const s_={some:0,all:1};let o_=class extends Sr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:s_[i]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=d?h:m;p&&p(u)};return i_(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(a_(t,n))&&this.startObserver()}unmount(){}};function a_({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const l_={inView:{Feature:o_},tap:{Feature:e_},focus:{Feature:QO},hover:{Feature:JO}},c_={layout:{ProjectionNode:Ky,MeasureLayout:xy}},hf={current:null},Jy={current:!1};function u_(){if(Jy.current=!0,!!iu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>hf.current=e.matches;e.addListener(t),t()}else hf.current=!1}const f_=[...E0,Tt,wr],d_=e=>f_.find(T0(e)),h_=new WeakMap;function m_(e,t,n){for(const r in t){const i=t[r],o=n[r];if(St(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&va(i.version==="12.6.2",`Attempting to mix Motion versions ${i.version} with 12.6.2 may not work as expected.`);else if(St(o))e.addValue(r,qs(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,qs(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Qy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let p_=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Yu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=On.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,Ye.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Ca(n),this.isVariantNode=Mg(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in p){const S=p[y];u[y]!==void 0&&St(S)&&S.set(u[y],!1)}}mount(t){this.current=t,h_.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Jy.current||u_(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:hf.current,process.env.NODE_ENV!=="production"&&va(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),br(this.notifyUpdate),br(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ti.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Ye.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Wi){const n=Wi[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):at()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Qy.length;r++){const i=Qy[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=m_(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=qs(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(w0(i)||s0(i))?i=parseFloat(i):!d_(i)&&wr.test(n)&&(i=h0(t,n)),this.setBaseTarget(t,St(i)?i.get():i)),St(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=_u(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!St(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new cu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},ev=class extends p_{constructor(){super(...arguments),this.KeyframeResolver=P0}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;St(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function g_(e){return window.getComputedStyle(e)}let y_=class extends ev{constructor(){super(...arguments),this.type="html",this.renderInstance=zg}readValueFromInstance(t,n){if(ti.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 $u(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(ti.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!==_.Fragment}),x_=rA({...WM,...l_,...ZO,...c_},b_),mf=xP(x_),w_=500,pf=({id:e,content:t,type:n="info",duration:r=0,onClose:i})=>{const[o,a]=_.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}_.useEffect(()=>{if(r===0)return;const p=setTimeout(()=>{a(!1)},r);return()=>clearTimeout(p)},[r]),_.useEffect(()=>{if(!o){const p=setTimeout(i,w_);return()=>clearTimeout(p)}},[o,i]);const m={initial:{opacity:0,y:50,scale:.9},animate:{opacity:1,y:0,scale:1,transition:{duration:.3,type:"spring",stiffness:300,damping:20}},exit:{opacity:0,y:20,scale:.95,transition:{duration:.2,ease:"easeOut"}}};return v.jsx(ZC,{onExitComplete:i,children:o&&v.jsx(mf.div,{id:e,className:`toast w-[320px] rounded-xl border-[1.5px] p-8 shadow-md ${d} ${h}`,initial:"initial",animate:"animate",exit:"exit",variants:m,layout:!0,children:v.jsxs("div",{className:"flex justify-between items-center p-3",children:[v.jsxs("div",{className:"flex items-center gap-6",children:[v.jsx(Ie,{icon:c,className:`w-20 h-20 min-h-20 min-w-20 ${u}`}),v.jsx("span",{className:"text-gray-800 font-medium text-base",children:t})]}),v.jsx("button",{onClick:()=>a(!1),className:"text-gray-500 transition-all hover:text-gray-700 flex items-center",children:v.jsx(Ie,{icon:GC,className:"w-20 h-20 min-h-20 min-w-20"})})]})})})},tv=({promise:e,messages:t,options:n,onClose:r})=>{const[i,o]=_.useState("loading"),[a,c]=_.useState(t.loading);return _.useEffect(()=>{e.then(()=>{console.log("promise resolved"),o("success"),c(t.success)}).catch(()=>{console.log("promise rejected"),o("error"),c(t.error)}).finally(()=>{console.log("promise finally"),setTimeout(()=>{r()},(n==null?void 0:n.duration)||3e3)})},[e]),v.jsx(pf,{content:a,type:i,duration:n.duration,onClose:r})};/*!
621
+ `),()=>{document.head.removeChild(y)}},[t]),v.jsx(HC,{isPresent:t,childRef:i,sizeRef:o,children:ee.cloneElement(e,{ref:i})})}const KC=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=ru(XC),d=_.useId(),h=_.useCallback(p=>{u.set(p,!0);for(const y of u.values())if(!y)return;r&&r()},[u,r]),m=_.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),o?[Math.random(),h]:[n,h]);return _.useMemo(()=>{u.forEach((p,y)=>u.set(y,!1))},[n]),ee.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=v.jsx(qC,{isPresent:n,anchorX:c,children:e})),v.jsx(ga.Provider,{value:m,children:e})};function XC(){return new Map}function lg(e=!0){const t=_.useContext(ga);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=_.useId();_.useEffect(()=>{if(e)return i(o)},[e]);const a=_.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const ya=e=>e.key||"";function cg(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const ZC=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=lg(a),h=_.useMemo(()=>cg(e),[e]),m=a&&!u?[]:h.map(ya),p=_.useRef(!0),y=_.useRef(h),S=ru(()=>new Map),[b,T]=_.useState(h),[w,E]=_.useState(h);ag(()=>{p.current=!1,y.current=h;for(let A=0;A<w.length;A++){const D=ya(w[A]);m.includes(D)?S.delete(D):S.get(D)!==!0&&S.set(D,!1)}},[w,m.length,m.join("-")]);const P=[];if(h!==b){let A=[...h];for(let D=0;D<w.length;D++){const V=w[D],j=ya(V);m.includes(j)||(A.splice(D,0,V),P.push(V))}return o==="wait"&&P.length&&(A=P),E(cg(A)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:$}=_.useContext(nu);return v.jsx(v.Fragment,{children:w.map(A=>{const D=ya(A),V=a&&!u?!1:h===w||m.includes(D),j=()=>{if(S.has(D))S.set(D,!0);else return;let U=!0;S.forEach(X=>{X||(U=!1)}),U&&($==null||$(),E(y.current),a&&(d==null||d()),r&&r())};return v.jsx(KC,{isPresent:V,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:V?void 0:j,anchorX:c,children:A},D)})})};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 Vi=Rt,vr=Rt;process.env.NODE_ENV!=="production"&&(Vi=(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 Bi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let cu=class{constructor(){this.subscriptions=[]}add(t){return ou(this.subscriptions,t),()=>au(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const Mn=e=>e*1e3,Hn=e=>e/1e3;function ug(e,t){return t?e*(1e3/t):0}const fg=new Set;function va(e,t,n){e||fg.has(t)||(console.warn(t),fg.add(t))}const QC=lu(()=>window.ScrollTimeline!==void 0);let eP=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(QC()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},tP=class extends eP{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function uu(e,t){return e?e[t]||e.default||e:void 0}const fu=2e4;function dg(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 hg(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"),mg=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Bi(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function pg(e){return!!(typeof e=="function"&&ba()||!e||typeof e=="string"&&(e in mu||ba())||hu(e)||Array.isArray(e)&&e.every(pg))}const Hs=([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:Hs([0,.65,.55,1]),circOut:Hs([.55,0,1,.45]),backIn:Hs([.31,.01,.66,-.59]),backOut:Hs([.33,1.53,.69,.99])};function gg(e,t){if(e)return typeof e=="function"&&ba()?mg(e,t):hu(e)?Hs(e):Array.isArray(e)?e.map(n=>gg(n,t)||mu.easeOut):mu[e]}const xa=["read","resolveKeyframes","update","preRender","render","postRender"],yg={value:null};function iP(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,p=!1,y=!1)=>{const b=y&&i?n:r;return p&&a.add(m),b.has(m)||b.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&yg.value&&yg.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const sP=40;function vg(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=xa.reduce((w,E)=>(w[E]=iP(o,t?E:void 0),w),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:p}=a,y=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,sP),1),i.timestamp=w,i.isProcessing=!0,c.process(i),u.process(i),d.process(i),h.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},S=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:xa.reduce((w,E)=>{const P=a[E];return w[E]=($,A=!1,D=!1)=>(n||S(),P.schedule($,A,D)),w},{}),cancel:w=>{for(let E=0;E<xa.length;E++)a[xa[E]].cancel(w)},state:i,steps:a}}const{schedule:Ye,cancel:br,state:yt,steps:pu}=vg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Rt,!0),{schedule:gu}=vg(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 bg(){return yn.x||yn.y}function aP(e){return e==="x"||e==="y"?yn[e]?null:(yn[e]=!0,()=>{yn[e]=!1}):yn.x||yn.y?null:(yn.x=yn.y=!0,()=>{yn.x=yn.y=!1})}function lP(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function xg(e,t){const n=lP(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function wg(e){return!(e.pointerType==="touch"||bg())}function cP(e,t,n={}){const[r,i,o]=xg(e,n),a=c=>{if(!wg(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{wg(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}const Sg=(e,t)=>t?e===t?!0:Sg(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 qs=new WeakSet;function Tg(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=Tg(()=>{if(qs.has(n))return;vu(n,"down");const i=Tg(()=>{vu(n,"up")}),o=()=>vu(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Eg(e){return yu(e)&&!bg()}function hP(e,t,n={}){const[r,i,o]=xg(e,n),a=c=>{const u=c.currentTarget;if(!Eg(c)||qs.has(u))return;qs.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!Eg(y)||!qs.has(u))&&(qs.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||Sg(u,y.target))},p=y=>{h(y,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",p,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>dP(d,i)),!fP(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}const Cg=30,mP=e=>!isNaN(parseFloat(e));let pP=class{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=On.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=On.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=mP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&va(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new cu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ye.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=On.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Cg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Cg);return ug(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 Ks(e,t){return new pP(e,t)}const Pg=_.createContext({strict:!1}),Ag={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"]},Wi={};for(const e in Ag)Wi[e]={isEnabled:t=>Ag[e].some(n=>!!t[n])};function gP(e){for(const t in e)Wi[t]={...Wi[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 Mg=e=>!Sa(e);function vP(e){e&&(Mg=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"||(Mg(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=_.createContext({});function Ea(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Xs(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=>Xs(e[t]))}function Og(e){return!!(Ca(e)||e.variants)}function wP(e,t){if(Ca(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Xs(n)?n:void 0,animate:Xs(r)?r:void 0}}return e.inherit!==!1?t:{}}function SP(e){const{initial:t,animate:n}=wP(e,_.useContext(Ta));return _.useMemo(()=>({initial:t,animate:n}),[_g(t),_g(n)])}function _g(e){return Array.isArray(e)?e.join(" "):e}const TP=Symbol.for("motionComponentSymbol");function Ui(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function EP(e,t,n){return _.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ui(n)&&(n.current=r))},[t])}const wu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ig="data-"+wu("framerAppearId"),$g=_.createContext({});function CP(e,t,n,r,i){var o,a;const{visualElement:c}=_.useContext(Ta),u=_.useContext(Pg),d=_.useContext(ga),h=_.useContext(su).reducedMotion,m=_.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=_.useContext($g);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&PP(m.current,n,i,y);const S=_.useRef(!1);_.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const b=n[Ig],T=_.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,b)));return ag(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),gu.render(p.render),T.current&&p.animationState&&p.animationState.animateChanges())}),_.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:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Dg(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&Ui(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function Dg(e){if(e)return e.options.allowProjection!==!1?e.projection:Dg(e.parent)}function AP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&gP(e);function c(d,h){let m;const p={..._.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(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const u=_.forwardRef(c);return u[TP]=i,u}function MP({layoutId:e}){const t=_.useContext(nu).id;return t&&e!==void 0?t+"-"+e:e}function OP(e,t){const n=_.useContext(Pg).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?Vi(!1,r):vr(!1,r)}}function _P(e){const{drag:t,layout:n}=Wi;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 Rg=e=>t=>typeof t=="string"&&t.startsWith(e),Su=Rg("--"),IP=Rg("var(--"),Tu=e=>IP(e)?$P.test(e.split("/*")[0].trim()):!1,$P=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Zs={};function DP(e){for(const t in e)Zs[t]=e[t],Su(t)&&(Zs[t].isCSSVariable=!0)}const zi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ti=new Set(zi);function Ng(e,{layout:t,layoutId:n}){return ti.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Zs[e]||e==="opacity")}const St=e=>!!(e&&e.getVelocity),Lg=(e,t)=>t&&typeof e=="number"?t.transform(e):e,qn=(e,t,n)=>n>t?t:n<e?e:n,Gi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Js={...Gi,transform:e=>qn(0,1,e)},Pa={...Gi,default:1},Qs=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xr=Qs("deg"),_n=Qs("%"),we=Qs("px"),RP=Qs("vh"),NP=Qs("vw"),kg={..._n,parse:e=>_n.parse(e)/100,transform:e=>_n.transform(e*100)},LP={borderWidth:we,borderTopWidth:we,borderRightWidth:we,borderBottomWidth:we,borderLeftWidth:we,borderRadius:we,radius:we,borderTopLeftRadius:we,borderTopRightRadius:we,borderBottomRightRadius:we,borderBottomLeftRadius:we,width:we,maxWidth:we,height:we,maxHeight:we,top:we,right:we,bottom:we,left:we,padding:we,paddingTop:we,paddingRight:we,paddingBottom:we,paddingLeft:we,margin:we,marginTop:we,marginRight:we,marginBottom:we,marginLeft:we,backgroundPositionX:we,backgroundPositionY:we},kP={rotate:xr,rotateX:xr,rotateY:xr,rotateZ:xr,scale:Pa,scaleX:Pa,scaleY:Pa,scaleZ:Pa,skew:xr,skewX:xr,skewY:xr,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:Js,originX:kg,originY:kg,originZ:we},jg={...Gi,transform:Math.round},Eu={...LP,...kP,zIndex:jg,size:we,fillOpacity:Js,strokeOpacity:Js,numOctaves:jg},jP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},FP=zi.length;function VP(e,t,n){let r="",i=!0;for(let o=0;o<FP;o++){const a=zi[o],c=e[a];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(a.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Lg(c,Eu[a]);if(!u){i=!1;const h=jP[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Cu(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(ti.has(u)){a=!0;continue}else if(Su(u)){i[u]=d;continue}else{const h=Lg(d,Eu[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=VP(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${d} ${h}`}}const Pu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fg(e,t,n){for(const r in t)!St(t[r])&&!Ng(r,n)&&(e[r]=t[r])}function BP({transformTemplate:e},t){return _.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 Fg(r,n,e),Object.assign(r,BP(e,t)),r}function UP(e,t){const n={},r=WP(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const zP=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Au(e){return typeof e!="string"||e.includes("-")?!1:!!(zP.indexOf(e)>-1||/[A-Z]/u.test(e))}const GP={offset:"stroke-dashoffset",array:"stroke-dasharray"},YP={offset:"strokeDashoffset",array:"strokeDasharray"};function HP(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?GP:YP;e[o.offset]=we.transform(-r);const a=we.transform(t),c=we.transform(n);e[o.array]=`${a} ${c}`}function Vg(e,t,n){return typeof e=="string"?e:we.transform(t+n*e)}function qP(e,t,n){const r=Vg(t,e.x,e.width),i=Vg(n,e.y,e.height);return`${r} ${i}`}function Mu(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(Cu(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:y,dimensions:S}=e;p.transform&&(S&&(y.transform=p.transform),delete p.transform),S&&(i!==void 0||o!==void 0||y.transform)&&(y.transformOrigin=qP(S,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&HP(p,a,c,u,!1)}const Bg=()=>({...Pu(),attrs:{}}),Ou=e=>typeof e=="string"&&e.toLowerCase()==="svg";function KP(e,t,n,r){const i=_.useMemo(()=>{const o=Bg();return Mu(o,t,Ou(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Fg(o,e.style,e),i.style={...o,...i.style}}return i}function XP(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(Au(n)?KP:UP)(r,o,a,n),d=bP(r,typeof n=="string",e),h=n!==_.Fragment?{...d,...u,ref:i}:{},{children:m}=r,p=_.useMemo(()=>St(m)?m.get():m,[m]);return _.createElement(n,{...h,children:p})}}function Wg(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function _u(e,t,n,r){if(typeof t=="function"){const[i,o]=Wg(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Wg(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Iu=e=>Array.isArray(e),ZP=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),JP=e=>Iu(e)?e[e.length-1]||0:e;function Aa(e){const t=St(e)?e.get():e;return ZP(t)?t.toValue():t}function QP({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:eA(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Ug=e=>(t,n)=>{const r=_.useContext(Ta),i=_.useContext(ga),o=()=>QP(e,t,r,i);return n?o():ru(o)};function eA(e,t,n,r){const i={},o=r(e,{});for(const p in o)i[p]=Aa(o[p]);let{initial:a,animate:c}=e;const u=Ca(e),d=Og(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?c:a;if(m&&typeof m!="boolean"&&!Ea(m)){const p=Array.isArray(m)?m:[m];for(let y=0;y<p.length;y++){const S=_u(e,p[y]);if(S){const{transitionEnd:b,transition:T,...w}=S;for(const E in w){let P=w[E];if(Array.isArray(P)){const $=h?P.length-1:0;P=P[$]}P!==null&&(i[E]=P)}for(const E in b)i[E]=b[E]}}}return i}function $u(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(St(i[a])||t.style&&St(t.style[a])||Ng(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}const tA={useVisualState:Ug({scrapeMotionValuesFromProps:$u,createRenderState:Pu})};function zg(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 Gg(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Yg=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 Hg(e,t,n,r){Gg(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Yg.has(i)?i:wu(i),t.attrs[i])}function qg(e,t,n){const r=$u(e,t,n);for(const i in e)if(St(e[i])||St(t[i])){const o=zi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const Kg=["x","y","width","height","cx","cy","r"],nA={useVisualState:Ug({scrapeMotionValuesFromProps:qg,createRenderState:Bg,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in i)if(ti.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<Kg.length;c++){const u=Kg[c];e[u]!==t[u]&&(a=!0)}a&&Ye.read(()=>{zg(n,r),Ye.render(()=>{Mu(r,i,Ou(n.tagName),e.transformTemplate),Hg(n,r)})})}})};function rA(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Au(r)?nA:tA,preloadedFeatures:e,useRender:XP(i),createVisualElement:t,Component:r};return AP(a)}}function eo(e,t,n){const r=e.getProps();return _u(r,t,n!==void 0?n:r.custom,e)}const Xg=new Set(["width","height","top","left","right","bottom",...zi]);function iA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ks(n))}function sA(e,t){const n=eo(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=JP(o[a]);iA(e,a,c)}}function oA(e){return!!(St(e)&&e.add)}function Du(e,t){const n=e.getValue("willChange");if(oA(n))return n.add(t)}function Zg(e){return e.props[Ig]}const Jg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,aA=1e-7,lA=12;function cA(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=Jg(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>aA&&++c<lA);return a}function to(e,t,n,r){if(e===t&&n===r)return Rt;const i=o=>cA(o,0,1,e,n);return o=>o===0||o===1?o:Jg(i(o),t,r)}const Qg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,e0=e=>t=>1-e(1-t),t0=to(.33,1.53,.69,.99),Ru=e0(t0),n0=Qg(Ru),r0=e=>(e*=2)<1?.5*Ru(e):.5*(2-Math.pow(2,-10*(e-1))),Nu=e=>1-Math.sin(Math.acos(e)),i0=e0(Nu),s0=Qg(Nu),o0=e=>/^0[^.\s]+$/u.test(e);function uA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||o0(e):!0}const no=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)),a0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Lu);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},hA=e=>qn(0,255,e),ju={...Gi,transform:e=>Math.round(hA(e))},ni={test:ku("rgb","red"),parse:a0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ju.transform(e)+", "+ju.transform(t)+", "+ju.transform(n)+", "+no(Js.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:ni.transform},Yi={test:ku("hsl","hue"),parse:a0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+_n.transform(no(t))+", "+_n.transform(no(n))+", "+no(Js.transform(r))+")"},Tt={test:e=>ni.test(e)||Fu.test(e)||Yi.test(e),parse:e=>ni.test(e)?ni.parse(e):Yi.test(e)?Yi.parse(e):Fu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ni.transform(e):Yi.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 l0="number",c0="color",yA="var",vA="var(",u0="${}",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 ro(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(bA,u=>(Tt.test(u)?(r.color.push(o),i.push(c0),n.push(Tt.parse(u))):u.startsWith(vA)?(r.var.push(o),i.push(yA),n.push(u)):(r.number.push(o),i.push(l0),n.push(parseFloat(u))),++o,u0)).split(u0);return{values:n,split:c,indexes:r,types:i}}function f0(e){return ro(e).values}function d0(e){const{split:t,types:n}=ro(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const c=n[a];c===l0?o+=no(i[a]):c===c0?o+=Tt.transform(i[a]):o+=i[a]}return o}}const xA=e=>typeof e=="number"?0:e;function wA(e){const t=f0(e);return d0(e)(t.map(xA))}const wr={test:gA,parse:f0,createTransformer:d0,getAnimatableNone:wA},SA=new Set(["brightness","contrast","saturate","opacity"]);function TA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Lu)||[];if(!r)return e;const i=n.replace(r,"");let o=SA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const EA=/\b([a-z-]*)\(.*?\)/gu,Vu={...wr,getAnimatableNone:e=>{const t=e.match(EA);return t?t.map(TA).join(" "):e}},CA={...Eu,color:Tt,backgroundColor:Tt,outlineColor:Tt,fill:Tt,stroke:Tt,borderColor:Tt,borderTopColor:Tt,borderRightColor:Tt,borderBottomColor:Tt,borderLeftColor:Tt,filter:Vu,WebkitFilter:Vu},h0=e=>CA[e];function m0(e,t){let n=h0(e);return n!==Vu&&(n=wr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const PA=new Set(["auto","none","0"]);function AA(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!PA.has(o)&&ro(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=m0(n,i)}const ri=e=>e*180/Math.PI,Bu=e=>{const t=ri(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=>ri(Math.atan(e[1])),skewY:e=>ri(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),p0=Bu,g0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),y0=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:g0,scaleY:y0,scale:e=>(g0(e)+y0(e))/2,rotateX:e=>Wu(ri(Math.atan2(e[6],e[5]))),rotateY:e=>Wu(ri(Math.atan2(-e[2],e[0]))),rotateZ:p0,rotate:p0,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 v0(e){return e.includes("scale")?1:0}function Uu(e,t){if(!e||e==="none")return v0(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 v0(t);const o=r[t],a=i[1].split(",").map(IA);return typeof o=="function"?o(a):a[o]}const _A=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Uu(n,t)};function IA(e){return parseFloat(e.trim())}const b0=e=>e===Gi||e===we,$A=new Set(["x","y","z"]),DA=zi.filter(e=>!$A.has(e));function RA(e){const t=[];return DA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Hi={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")};Hi.translateX=Hi.x,Hi.translateY=Hi.y;const ii=new Set;let zu=!1,Gu=!1;function x0(){if(Gu){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=RA(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Gu=!1,zu=!1,ii.forEach(e=>e.complete()),ii.clear()}function w0(){ii.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Gu=!0)})}function NA(){w0(),x0()}let Yu=class{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ii.add(this),zu||(zu=!0,Ye.read(w0),Ye.resolveKeyframes(x0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ii.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ii.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const S0=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 T0(e,t,n=1){vr(n<=jA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=kA(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return S0(a)?parseFloat(a):a}return Tu(i)?T0(i,t,n+1):i}const E0=e=>t=>t.test(e),C0=[Gi,we,_n,xr,NP,RP,{test:e=>e==="auto",parse:e=>e}],P0=e=>C0.find(E0(e));let A0=class extends Yu{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Tu(d))){const h=T0(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Xg.has(r)||t.length!==2)return;const[i,o]=t,a=P0(i),c=P0(o);if(a!==c)if(b0(a)&&b0(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=Hi[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=Hi[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 M0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wr.test(e)||e==="0")&&!e.startsWith("url("));function FA(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function VA(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=M0(i,t),c=M0(o,t);return Vi(a===c,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:FA(e)||(n==="spring"||du(n))&&r}const BA=e=>e!==null;function Ma(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(BA),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const WA=40;let O0=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=On.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>WA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&NA(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=On.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!VA(t,r,i,o))if(a)this.options.duration=0;else{u&&u(Ma(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const tt=(e,t,n)=>e+(t-e)*n;function Hu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function UA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=Hu(u,c,e+1/3),o=Hu(u,c,e),a=Hu(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Oa(e,t){return n=>n>0?t:e}const qu=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},zA=[Fu,ni,Yi],GA=e=>zA.find(t=>t.test(e));function _0(e){const t=GA(e);if(Vi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Yi&&(n=UA(n)),n}const I0=(e,t)=>{const n=_0(e),r=_0(t);if(!n||!r)return Oa(e,t);const i={...n};return o=>(i.red=qu(n.red,r.red,o),i.green=qu(n.green,r.green,o),i.blue=qu(n.blue,r.blue,o),i.alpha=tt(n.alpha,r.alpha,o),ni.transform(i))},YA=(e,t)=>n=>t(e(n)),io=(...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)?I0:ZA:Array.isArray(e)?$0:typeof e=="object"?Tt.test(e)?I0:KA:Oa}function $0(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>Xu(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function KA(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Xu(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function XA(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][i[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,i[a]++}return r}const ZA=(e,t)=>{const n=wr.createTransformer(t),r=ro(e),i=ro(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):io($0(XA(r,i),i.values),n):(Vi(!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 R0(e,t,n){const r=Math.max(t-JA,0);return ug(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},N0=.001;function QA({duration:e=nt.duration,bounce:t=nt.bounce,velocity:n=nt.velocity,mass:r=nt.mass}){let i,o;Vi(e<=Mn(nt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=qn(nt.minDamping,nt.maxDamping,a),e=qn(nt.minDuration,nt.maxDuration,Hn(e)),a<1?(i=d=>{const h=d*a,m=h*e,p=h-n,y=Zu(d,a),S=Math.exp(-m);return N0-p/y*S},o=d=>{const m=d*a*e,p=m*n+n,y=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),b=Zu(Math.pow(d,2),a);return(-i(d)+N0>0?-1:1)*((p-y)*S)/b}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const c=5/e,u=tM(i,o,c);if(e=Mn(e),isNaN(u))return{stiffness:nt.stiffness,damping:nt.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const eM=12;function tM(e,t,n){let r=n;for(let i=1;i<eM;i++)r=r-e(r)/t(r);return r}function Zu(e,t){return e*Math.sqrt(1-t*t)}const nM=["duration","bounce"],rM=["stiffness","damping","mass"];function L0(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(!L0(e,rM)&&L0(e,nM))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*qn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:nt.mass,stiffness:i,damping:o}}else{const n=QA(e);t={...t,...n,mass:nt.mass},t.isResolvedFromDuration=!0}return t}function k0(e=nt.visualDuration,t=nt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:m,velocity:p,isResolvedFromDuration:y}=iM({...n,velocity:-Hn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=a-o,w=Hn(Math.sqrt(u/h)),E=Math.abs(T)<5;r||(r=E?nt.restSpeed.granular:nt.restSpeed.default),i||(i=E?nt.restDelta.granular:nt.restDelta.default);let P;if(b<1){const A=Zu(w,b);P=D=>{const V=Math.exp(-b*w*D);return a-V*((S+b*w*T)/A*Math.sin(A*D)+T*Math.cos(A*D))}}else if(b===1)P=A=>a-Math.exp(-w*A)*(T+(S+w*T)*A);else{const A=w*Math.sqrt(b*b-1);P=D=>{const V=Math.exp(-b*w*D),j=Math.min(A*D,300);return a-V*((S+b*w*T)*Math.sinh(j)+A*T*Math.cosh(j))/A}}const $={calculatedDuration:y&&m||null,next:A=>{const D=P(A);if(y)c.done=A>=m;else{let V=0;b<1&&(V=A===0?Mn(S):R0(P,A,D));const j=Math.abs(V)<=r,U=Math.abs(a-D)<=i;c.done=j&&U}return c.value=c.done?a:D,c},toString:()=>{const A=Math.min(dg($),fu),D=mg(V=>$.next(A*V).value,A,30);return A+"ms "+D}};return $}function j0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},y=j=>c!==void 0&&j<c||u!==void 0&&j>u,S=j=>c===void 0?u:u===void 0||Math.abs(c-j)<Math.abs(u-j)?c:u;let b=n*t;const T=m+b,w=a===void 0?T:a(T);w!==T&&(b=w-m);const E=j=>-b*Math.exp(-j/r),P=j=>w+E(j),$=j=>{const U=E(j),X=P(j);p.done=Math.abs(U)<=d,p.value=p.done?w:X};let A,D;const V=j=>{y(p.value)&&(A=j,D=k0({keyframes:[p.value,S(p.value)],velocity:R0(P,j,p.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return V(0),{calculatedDuration:null,next:j=>{let U=!1;return!D&&A===void 0&&(U=!0,$(j),V(j)),A!==void 0&&j>=A?D.next(j-A):(!U&&$(j),p)}}}const sM=to(.42,0,1,1),oM=to(0,0,.58,1),F0=to(.42,0,.58,1),aM=e=>Array.isArray(e)&&typeof e[0]!="number",V0={linear:Rt,easeIn:sM,easeInOut:F0,easeOut:oM,circIn:Nu,circInOut:s0,circOut:i0,backIn:Ru,backInOut:n0,backOut:t0,anticipate:r0},B0=e=>{if(hu(e)){vr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return to(t,n,r,i)}else if(typeof e=="string")return vr(V0[e]!==void 0,`Invalid easing type '${e}'`),V0[e];return e};function lM(e,t,n){const r=[],i=n||D0,o=e.length-1;for(let a=0;a<o;a++){let c=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Rt:t;c=io(u,c)}r.push(c)}return r}function cM(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(vr(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=lM(t,r,i),u=c.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const p=Bi(e[m],e[m+1],h);return c[m](p)};return n?h=>d(qn(e[0],e[o-1],h)):d}function uM(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Bi(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||F0).splice(0,e.length-1)}function so({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=aM(r)?r.map(B0):B0(r),o={done:!1,value:t[0]},a=dM(n&&n.length===t.length?n:fM(t),e),c=cM(a,t,{ease:Array.isArray(i)?i:hM(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const mM=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ye.update(t,!0),stop:()=>br(t),now:()=>yt.isProcessing?yt.timestamp:On.now()}},pM={decay:j0,inertia:j0,tween:so,keyframes:so,spring:k0},gM=e=>e/100;let Ju=class extends O0{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||Yu,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=du(n)?n:pM[n]||so;let u,d;process.env.NODE_ENV!=="production"&&c!==so&&vr(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==so&&typeof t[0]!="number"&&(u=io(gM,D0(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=dg(h));const{calculatedDuration:m}=h,p=m+i,y=p*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:j}=this.options;return{done:!0,value:j[j.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:y,repeatType:S,repeatDelay:b,onUpdate: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),E=this.speed>=0?w<0:w>h;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let P=this.currentTime,$=o;if(y){const j=Math.min(this.currentTime,h)/m;let U=Math.floor(j),X=j%1;!X&&j>=1&&(X=1),X===1&&U--,U=Math.min(U,y+1),!!(U%2)&&(S==="reverse"?(X=1-X,b&&(X-=b/m)):S==="mirror"&&($=a)),P=qn(0,1,X)*m}const A=E?{done:!1,value:u[0]}:$.next(P);c&&(A.value=c(A.value));let{done:D}=A;!E&&d!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return V&&i!==void 0&&(A.value=Ma(u,this.options,i)),T&&T(A.value),V&&this.finish(),A}get duration(){const{resolved:t}=this;return t?Hn(t.calculatedDuration):0}get time(){return Hn(this.currentTime)}set time(t){t=Mn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Hn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=mM,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};const yM=new Set(["opacity","clipPath","filter","transform"]);function vM(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=gg(c,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const bM=lu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_a=10,xM=2e4;function wM(e){return du(e.type)||e.type==="spring"||!pg(e.ease)}function SM(e,t){const n=new Ju({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<xM;)r=n.sample(o),i.push(r.value),o+=_a;return{times:void 0,keyframes:i,duration:o-_a,ease:"linear"}}const W0={anticipate:r0,backInOut:n0,circInOut:s0};function TM(e){return e in W0}let U0=class extends O0{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new A0(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&ba()&&TM(o)&&(o=W0[o]),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,o=T.ease,a="keyframes"}const h=vM(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(hg(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ma(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Hn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Hn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Mn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Rt;const{animation:r}=n;hg(r,t)}return Rt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:p,...y}=this.options,S=new Ju({...y,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),b=Mn(this.time);d.setWithVelocity(S.sample(b-_a).value,S.sample(b).value,_a)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return bM()&&r&&yM.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}};const EM={type:"spring",stiffness:500,damping:25,restSpeed:10},CM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),PM={type:"keyframes",duration:.8},AM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},MM=(e,{keyframes:t})=>t.length>2?PM:ti.has(e)?e.startsWith("scale")?CM(t[1]):EM:AM;function OM({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const Qu=(e,t,n,r={},i,o)=>a=>{const c=uu(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Mn(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};OM(c)||(h={...h,...MM(e,h)}),h.duration&&(h.duration=Mn(h.duration)),h.repeatDelay&&(h.repeatDelay=Mn(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const p=Ma(h.keyframes,c);if(p!==void 0)return Ye.update(()=>{h.onUpdate(p),h.onComplete()}),new tP([])}return!o&&U0.supports(h)?new U0(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 z0(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const p=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),y=u[m];if(y===void 0||h&&_M(h,m))continue;const S={delay:n,...uu(a||{},m)};let b=!1;if(window.MotionHandoffAnimation){const w=Zg(e);if(w){const E=window.MotionHandoffAnimation(w,m,Ye);E!==null&&(S.startTime=E,b=!0)}}Du(e,m),p.start(Qu(m,p,y,e.shouldReduceMotion&&Xg.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=eo(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(z0(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return IM(e,t,h+d,m,p,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[a,c]:[c,a];return d().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function IM(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort($M).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(ef(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function $M(e,t){return e.sortNodePosition(t)}function DM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>ef(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=ef(e,t,n);else{const i=typeof t=="function"?eo(e,t,n.custom):t;r=Promise.all(z0(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function G0(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 Y0(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Y0(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];(Xs(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})=>DM(e,n,r)))}function jM(e){let t=kM(e),n=H0(),r=!0;const i=u=>(d,h)=>{var m;const p=eo(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:y,transitionEnd:S,...b}=p;d={...d,...b,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=Y0(e.parent)||{},m=[],p=new Set;let y={},S=1/0;for(let T=0;T<LM;T++){const w=NM[T],E=n[w],P=d[w]!==void 0?d[w]:h[w],$=Xs(P),A=w===u?E.isActive:null;A===!1&&(S=T);let D=P===h[w]&&P!==d[w]&&$;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),E.protectedKeys={...y},!E.isActive&&A===null||!P&&!E.prevProp||Ea(P)||typeof P=="boolean")continue;const V=FM(E.prevProp,P);let j=V||w===u&&E.isActive&&!D&&$||T>S&&$,U=!1;const X=Array.isArray(P)?P:[P];let ne=X.reduce(i(w),{});A===!1&&(ne={});const{prevResolvedValues:oe={}}=E,ge={...oe,...ne},ue=F=>{j=!0,p.has(F)&&(U=!0,p.delete(F)),E.needsAnimating[F]=!0;const B=e.getValue(F);B&&(B.liveStyle=!1)};for(const F in ge){const B=ne[F],G=oe[F];if(y.hasOwnProperty(F))continue;let O=!1;Iu(B)&&Iu(G)?O=!G0(B,G):O=B!==G,O?B!=null?ue(F):p.add(F):B!==void 0&&p.has(F)?ue(F):E.protectedKeys[F]=!0}E.prevProp=P,E.prevResolvedValues=ne,E.isActive&&(y={...y,...ne}),r&&e.blockInitialAnimation&&(j=!1),j&&(!(D&&V)||U)&&m.push(...X.map(F=>({animation:F,options:{type:w}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const w=eo(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(T.transition=w.transition)}p.forEach(w=>{const E=e.getBaseTarget(w),P=e.getValue(w);P&&(P.liveStyle=!0),T[w]=E??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=a(u);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=H0(),r=!0}}}function FM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!G0(t,e):!1}function si(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function H0(){return{animate:si(!0),whileInView:si(),whileHover:si(),whileTap:si(),whileDrag:si(),whileFocus:si(),exit:si()}}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 oo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ao(e){return{point:{x:e.pageX,y:e.pageY}}}const UM=e=>t=>yu(t)&&e(t,ao(t));function lo(e,t,n,r){return oo(e,t,UM(n),r)}function q0({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 K0=1e-4,YM=1-K0,HM=1+K0,X0=.01,qM=0-X0,KM=0+X0;function Ot(e){return e.max-e.min}function XM(e,t,n){return Math.abs(e-t)<=n}function Z0(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 co(e,t,n,r){Z0(e.x,t.x,n.x,r?r.originX:void 0),Z0(e.y,t.y,n.y,r?r.originY:void 0)}function J0(e,t,n){e.min=n.min+t.min,e.max=e.min+Ot(t)}function ZM(e,t,n){J0(e.x,t.x,n.x),J0(e.y,t.y,n.y)}function Q0(e,t,n){e.min=t.min-n.min,e.max=e.min+Ot(t)}function uo(e,t,n){Q0(e.x,t.x,n.x),Q0(e.y,t.y,n.y)}const ey=()=>({translate:0,scale:1,origin:0,originPoint:0}),qi=()=>({x:ey(),y:ey()}),ty=()=>({min:0,max:0}),at=()=>({x:ty(),y:ty()});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 oi(e){return nf(e)||ny(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ny(e){return ry(e.x)||ry(e.y)}function ry(e){return e&&e!=="0%"}function Ia(e,t,n){const r=e-n,i=t*r;return n+i}function iy(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=iy(e.min,t,n,r,i),e.max=iy(e.max,t,n,r,i)}function sy(e,{x:t,y:n}){rf(e.x,t.translate,t.scale,t.originPoint),rf(e.y,n.translate,n.scale,n.originPoint)}const oy=.999999999999,ay=1.0000000000001;function JM(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Xi(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,sy(e,a)),r&&oi(o.latestValues)&&Xi(e,o.latestValues))}t.x<ay&&t.x>oy&&(t.x=1),t.y<ay&&t.y>oy&&(t.y=1)}function Ki(e,t){e.min=e.min+t,e.max=e.max+t}function ly(e,t,n,r,i=.5){const o=tt(e.min,e.max,i);rf(e,t,n,o,r)}function Xi(e,t){ly(e.x,t.x,t.scaleX,t.scale,t.originX),ly(e.y,t.y,t.scaleY,t.scale,t.originY)}function cy(e,t){return q0(GM(e.getBoundingClientRect(),t))}function QM(e,t,n){const r=cy(e,n),{scroll:i}=t;return i&&(Ki(r.x,i.offset.x),Ki(r.y,i.offset.y)),r}const uy=({current:e})=>e?e.ownerDocument.defaultView:null,fy=(e,t)=>Math.abs(e-t);function eO(e,t){const n=fy(e.x,t.x),r=fy(e.y,t.y);return Math.sqrt(n**2+r**2)}let dy=class{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=of(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=eO(m.offset,{x:0,y:0})>=3;if(!p&&!y)return;const{point:S}=m,{timestamp:b}=yt;this.history.push({...S,timestamp:b});const{onStart: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=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=ao(t),c=sf(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=yt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,of(c,this.history)),this.removeListeners=io(lo(this.contextWindow,"pointermove",this.handlePointerMove),lo(this.contextWindow,"pointerup",this.handlePointerUp),lo(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 hy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function of({point:e},t){return{point:e,delta:hy(e,my(t)),offset:hy(e,tO(t)),velocity:nO(t,.1)}}function tO(e){return e[0]}function my(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=my(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Mn(t)));)n--;if(!r)return{x:0,y:0};const o=Hn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function rO(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?tt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?tt(n,e,r.max):Math.min(e,n)),e}function py(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:py(e.x,n,i),y:py(e.y,t,r)}}function gy(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:gy(e.x,t.x),y:gy(e.y,t.y)}}function oO(e,t){let n=.5;const r=Ot(e),i=Ot(t);return i>r?n=Bi(t.min,t.max-r,e.min):r>i&&(n=Bi(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:yy(e,"left","right"),y:yy(e,"top","bottom")}}function yy(e,t,n){return{min:vy(e,t),max:vy(e,n)}}function vy(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(ao(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:y,onDragStart:S}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=aP(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tn(T=>{let w=this.getAxisMotionValue(T).get()||0;if(_n.test(w)){const{projection:E}=this.visualElement;if(E&&E.layout){const P=E.layout.layoutBox[T];P&&(w=Ot(P)*(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)},a=(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 dy(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:uy(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Ye.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!$a(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=rO(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Ui(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=iO(i.layoutBox,n):this.constraints=!1,this.elastic=lO(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=aO(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ui(t))return!1;const r=t.current;vr(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=QM(r,i.root,this.visualElement.getTransformPagePoint());let a=sO(i.layout.layoutBox,o);if(n){const c=n(zM(a));this.hasMutatedConstraints=!!c,c&&(a=q0(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=tn(h=>{if(!$a(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const p=i?200:1e6,y=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return 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,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(t[n]-tt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ui(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};tn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();i[a]=oO({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),tn(a=>{if(!$a(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(tt(u,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;cO.set(this.visualElement,this);const t=this.visualElement.current,n=lo(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Ui(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Ye.read(r);const a=oo(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(tn(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=u[h].translate,m.set(m.get()+u[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=af,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}};function $a(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 by=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 dy(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:uy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:by(t),onStart:by(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Ye.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=lo(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 xy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const fo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const n=xy(e,t.target.x),r=xy(e,t.target.y);return`${n}% ${r}%`}},mO={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=wr.parse(e);if(i.length>5)return r;const o=wr.createTransformer(e),a=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+a]/=c,i[1+a]/=u;const d=tt(c,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};let pO=class extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;DP(gO),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Da.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||Ye.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),gu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}};function wy(e){const[t,n]=lg(),r=_.useContext(nu);return v.jsx(pO,{...e,layoutGroup:r,switchLayoutGroup:_.useContext($g),isPresent:t,safeToRemove:n})}const gO={borderRadius:{...fo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fo,borderTopRightRadius:fo,borderBottomLeftRadius:fo,borderBottomRightRadius:fo,boxShadow:mO};function yO(e,t,n){const r=St(e)?e:Ks(e);return r.start(Qu("",r,t,n)),r.animation}function vO(e){return e instanceof SVGElement&&e.tagName!=="svg"}const bO=(e,t)=>e.depth-t.depth;let xO=class{constructor(){this.children=[],this.isDirty=!1}add(t){ou(this.children,t),this.isDirty=!0}remove(t){au(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(bO),this.isDirty=!1,this.children.forEach(t)}};function wO(e,t){const n=On.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(br(r),e(o-t))};return Ye.read(r,!0),()=>br(r)}const Sy=["TopLeft","TopRight","BottomLeft","BottomRight"],SO=Sy.length,Ty=e=>typeof e=="string"?parseFloat(e):e,Ey=e=>typeof e=="number"||we.test(e);function TO(e,t,n,r,i,o){i?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,EO(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,CO(r))):o&&(e.opacity=tt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<SO;a++){const c=`border${Sy[a]}Radius`;let u=Cy(t,c),d=Cy(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||Ey(u)===Ey(d)?(e[c]=Math.max(tt(Ty(u),Ty(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 Cy(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const EO=Py(0,.5,i0),CO=Py(.5,.95,Rt);function Py(e,t,n){return r=>r<e?0:r>t?1:n(Bi(e,t,r))}function Ay(e,t){e.min=t.min,e.max=t.max}function nn(e,t){Ay(e.x,t.x),Ay(e.y,t.y)}function My(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Oy(e,t,n,r,i){return e-=t,e=Ia(e,1/n,r),i!==void 0&&(e=Ia(e,1/i,r)),e}function PO(e,t=0,n=1,r=.5,i,o=e,a=e){if(_n.test(t)&&(t=parseFloat(t),t=tt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=tt(o.min,o.max,r);e===o&&(c-=t),e.min=Oy(e.min,t,n,c,i),e.max=Oy(e.max,t,n,c,i)}function _y(e,t,[n,r,i],o,a){PO(e,t[n],t[r],t[i],t.scale,o,a)}const AO=["x","scaleX","originX"],MO=["y","scaleY","originY"];function Iy(e,t,n,r){_y(e.x,t,AO,n?n.x:void 0,r?r.x:void 0),_y(e.y,t,MO,n?n.y:void 0,r?r.y:void 0)}function $y(e){return e.translate===0&&e.scale===1}function Dy(e){return $y(e.x)&&$y(e.y)}function Ry(e,t){return e.min===t.min&&e.max===t.max}function OO(e,t){return Ry(e.x,t.x)&&Ry(e.y,t.y)}function Ny(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ly(e,t){return Ny(e.x,t.x)&&Ny(e.y,t.y)}function ky(e){return Ot(e.x)/Ot(e.y)}function jy(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}let _O=class{constructor(){this.members=[]}add(t){ou(this.members,t),t.scheduleRender()}remove(t){if(au(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function IO(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:p,skewX:y,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),y&&(r+=`skewX(${y}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const lf=["","X","Y","Z"],$O={visibility:"hidden"},Fy=1e3;let DO=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 Vy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Zg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ye,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Vy(r)}function By({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=DO++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(LO),this.nodes.forEach(BO),this.nodes.forEach(WO),this.nodes.forEach(kO)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new xO)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new cu),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=vO(a),this.instance=a;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=wO(p,250),Da.hasAnimatedSinceResize&&(Da.hasAnimatedSinceResize=!1,this.nodes.forEach(Uy))})}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(),E=!this.targetLayout||!Ly(this.targetLayout,S),P=!p&&y;if(this.options.layoutRoot||this.resumeFrom||P||p&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,P);const $={...uu(b,"layout"),onPlay:T,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||Uy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,br(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(UO),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Vy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Wy);return}this.isUpdating||this.nodes.forEach(FO),this.isUpdating=!1,this.nodes.forEach(VO),this.nodes.forEach(RO),this.nodes.forEach(NO),this.clearAllSnapshots();const c=On.now();yt.delta=qn(0,1e3/60,c-yt.timestamp),yt.timestamp=c,yt.isProcessing=!0,pu.update.process(yt),pu.preRender.process(yt),pu.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,gu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(jO),this.sharedNodes.forEach(zO)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ye.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ye.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ot(this.snapshot.measuredBox.x)&&!Ot(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=at(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!Dy(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||oi(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),qO(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return at();const u=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(KO))){const{scroll:h}=this.root;h&&(Ki(u.x,h.offset.x),Ki(u.y,h.offset.y))}return u}removeElementScroll(a){var c;const u=at();if(nn(u,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&nn(u,a),Ki(u.x,m.offset.x),Ki(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=at();nn(u,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Xi(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),oi(h.latestValues)&&Xi(u,h.latestValues)}return oi(this.latestValues)&&Xi(u,this.latestValues),u}removeTransform(a){const c=at();nn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!oi(d.latestValues))continue;nf(d.latestValues)&&d.updateSnapshot();const h=at(),m=d.measurePageBox();nn(h,m),Iy(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return oi(this.latestValues)&&Iy(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==yt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=yt.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),uo(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),sy(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(),uo(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)||ny(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===yt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;nn(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,y=this.treeScale.y;JM(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=at());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(My(this.prevProjectionDelta.x,this.projectionDelta.x),My(this.prevProjectionDelta.y,this.projectionDelta.y)),co(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==y||!jy(this.projectionDelta.x,this.prevProjectionDelta.x)||!jy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=qi(),this.projectionDelta=qi(),this.projectionDeltaWithTransform=qi()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=qi();(!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,E=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(YO));this.animationProgress=0;let P;this.mixTargetDelta=$=>{const A=$/1e3;zy(m.x,a.x,A),zy(m.y,a.y,A),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(uo(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),GO(this.relativeTarget,this.relativeTargetOrigin,p,A),P&&OO(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=at()),nn(P,this.relativeTarget)),b&&(this.animationValues=h,TO(h,d,this.latestValues,A,E,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(br(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ye.update(()=>{Da.hasAnimatedSinceResize=!0,this.currentAnimation=yO(0,Fy,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Fy),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&Ky(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||at();const m=Ot(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+m;const p=Ot(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+p}nn(c,u),Xi(c,h),co(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new _O),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&cf("z",a,d,this.animationValues);for(let h=0;h<lf.length;h++)cf(`rotate${lf[h]}`,a,d,this.animationValues),cf(`skew${lf[h]}`,a,d,this.animationValues);a.render();for(const h in d)a.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return $O;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Aa(a==null?void 0:a.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Aa(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!oi(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 Zs){if(p[b]===void 0)continue;const{correct:T,applyTo:w,isCSSVariable:E}=Zs[b],P=d.transform==="none"?p[b]:T(p[b],m);if(w){const $=w.length;for(let A=0;A<$;A++)d[w[A]]=P}else E?this.options.visualElement.renderState.vars[b]=P:d[b]=P}return this.options.layoutId&&(d.pointerEvents=m===this?Aa(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(Wy),this.root.sharedNodes.clear()}}}function RO(e){e.updateLayout()}function NO(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?tn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],y=Ot(p);p.min=r[m].min,p.max=p.min+y}):Ky(o,n.layoutBox,r)&&tn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],y=Ot(r[m]);p.max=p.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+y)});const c=qi();co(c,r,n.layoutBox);const u=qi();a?co(u,e.applyTransform(i,!0),n.measuredBox):co(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();uo(S,n.layoutBox,p.layoutBox);const b=at();uo(b,r,y.layoutBox),Ly(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 Wy(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 Uy(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 zy(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 Gy(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){Gy(e.x,t.x,n.x,r),Gy(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]},Yy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Hy=Yy("applewebkit/")&&!Yy("chrome/")?Math.round:Rt;function qy(e){e.min=Hy(e.min),e.max=Hy(e.max)}function qO(e){qy(e.x),qy(e.y)}function Ky(e,t,n){return e==="position"||e==="preserve-aspect"&&!XM(ky(t),ky(n),.2)}function KO(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const XO=By({attachResizeListener:(e,t)=>oo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),uf={current:void 0},Xy=By({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:Xy,MeasureLayout:wy}};function Zy(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Ye.postRender(()=>o(t,ao(t)))}let JO=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=cP(t,(n,r)=>(Zy(this.node,r,"Start"),i=>Zy(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=io(oo(this.node.current,"focus",()=>this.onFocus()),oo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Jy(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Ye.postRender(()=>o(t,ao(t)))}let e_=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=hP(t,(n,r)=>(Jy(this.node,r,"Start"),(i,{success:o})=>Jy(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const ff=new WeakMap,df=new WeakMap,t_=e=>{const t=ff.get(e.target);t&&t(e)},n_=e=>{e.forEach(t_)};function r_({root:e,...t}){const n=e||document;df.has(n)||df.set(n,{});const r=df.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(n_,{root:e,...t})),r[i]}function i_(e,t,n){const r=r_(t);return ff.set(e,n),r.observe(e),()=>{ff.delete(e),r.unobserve(e)}}const s_={some:0,all:1};let o_=class extends Sr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:s_[i]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=d?h:m;p&&p(u)};return i_(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(a_(t,n))&&this.startObserver()}unmount(){}};function a_({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const l_={inView:{Feature:o_},tap:{Feature:e_},focus:{Feature:QO},hover:{Feature:JO}},c_={layout:{ProjectionNode:Xy,MeasureLayout:wy}},hf={current:null},Qy={current:!1};function u_(){if(Qy.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_=[...C0,Tt,wr],d_=e=>f_.find(E0(e)),h_=new WeakMap;function m_(e,t,n){for(const r in t){const i=t[r],o=n[r];if(St(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&va(i.version==="12.6.2",`Attempting to mix Motion versions ${i.version} with 12.6.2 may not work as expected.`);else if(St(o))e.addValue(r,Ks(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Ks(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ev=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let p_=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Yu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=On.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,Ye.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Ca(n),this.isVariantNode=Og(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in p){const S=p[y];u[y]!==void 0&&St(S)&&S.set(u[y],!1)}}mount(t){this.current=t,h_.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Qy.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=ti.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Ye.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Wi){const n=Wi[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):at()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<ev.length;r++){const i=ev[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=m_(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ks(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"&&(S0(i)||o0(i))?i=parseFloat(i):!d_(i)&&wr.test(n)&&(i=m0(t,n)),this.setBaseTarget(t,St(i)?i.get():i)),St(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=_u(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!St(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new cu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},tv=class extends p_{constructor(){super(...arguments),this.KeyframeResolver=A0}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 tv{constructor(){super(...arguments),this.type="html",this.renderInstance=Gg}readValueFromInstance(t,n){if(ti.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 cy(t,n)}build(t,n,r){Cu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return $u(t,n,r)}},v_=class extends tv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=at,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&zg(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ti.has(n)){const r=h0(n);return r&&r.default||0}return n=Yg.has(n)?n:wu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return qg(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){Hg(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!==_.Fragment}),x_=rA({...WM,...l_,...ZO,...c_},b_),mf=xP(x_),w_=500,pf=({id:e,content:t,type:n="info",duration:r=0,onClose:i})=>{const[o,a]=_.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}_.useEffect(()=>{if(r===0)return;const p=setTimeout(()=>{a(!1)},r);return()=>clearTimeout(p)},[r]),_.useEffect(()=>{if(!o){const p=setTimeout(i,w_);return()=>clearTimeout(p)}},[o,i]);const m={initial:{opacity:0,y:50,scale:.9},animate:{opacity:1,y:0,scale:1,transition:{duration:.3,type:"spring",stiffness:300,damping:20}},exit:{opacity:0,y:20,scale:.95,transition:{duration:.2,ease:"easeOut"}}};return v.jsx(ZC,{onExitComplete:i,children:o&&v.jsx(mf.div,{id:e,className:`toast w-[320px] rounded-xl border-[1.5px] p-8 shadow-md ${d} ${h}`,initial:"initial",animate:"animate",exit:"exit",variants:m,layout:!0,children:v.jsxs("div",{className:"flex justify-between items-center p-3",children:[v.jsxs("div",{className:"flex items-center gap-6",children:[v.jsx(_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:()=>a(!1),className:"text-gray-500 transition-all hover:text-gray-700 flex items-center",children:v.jsx(_e,{icon:GC,className:"w-20 h-20 min-h-20 min-w-20"})})]})})})},nv=({promise:e,messages:t,options:n,onClose:r})=>{const[i,o]=_.useState("loading"),[a,c]=_.useState(t.loading);return _.useEffect(()=>{e.then(()=>{console.log("promise resolved"),o("success"),c(t.success)}).catch(()=>{console.log("promise rejected"),o("error"),c(t.error)}).finally(()=>{console.log("promise finally"),setTimeout(()=>{r()},(n==null?void 0:n.duration)||3e3)})},[e]),v.jsx(pf,{content:a,type:i,duration:n.duration,onClose:r})};/*!
622
622
  * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
623
623
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
624
624
  * Copyright 2024 Fonticons, Inc.
625
- */const S_={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},T_={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},nv={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]},rv=6048e5,E_=864e5,iv=Symbol.for("constructDateFrom");function Gt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&iv in e?e[iv](t):e instanceof Date?new e.constructor(t):new Date(t)}function pt(e,t){return Gt(t||e,e)}function sv(e,t,n){const r=pt(e,n==null?void 0:n.in);if(isNaN(t))return Gt(e,NaN);if(!t)return r;const i=r.getDate(),o=Gt(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const a=o.getDate();return i>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}let C_={};function fo(){return C_}function Zi(e,t){var c,u,d,h;const n=fo(),r=(t==null?void 0:t.weekStartsOn)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??0,i=pt(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function Ra(e,t){return Zi(e,{...t,weekStartsOn:1})}function ov(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=Gt(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=Ra(i),a=Gt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const c=Ra(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function av(e){const t=pt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Na(e,...t){const n=Gt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function La(e,t){const n=pt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function P_(e,t,n){const[r,i]=Na(n==null?void 0:n.in,e,t),o=La(r),a=La(i),c=+o-av(o),u=+a-av(a);return Math.round((c-u)/E_)}function A_(e,t){const n=ov(e,t),r=Gt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ra(r)}function M_(e){return Gt(e,Date.now())}function lv(e,t,n){const[r,i]=Na(n==null?void 0:n.in,e,t);return+La(r)==+La(i)}function O_(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function __(e){return!(!O_(e)&&typeof e!="number"||isNaN(+pt(e)))}function I_(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function $_(e,t){const[n,r]=Na(e,t.start,t.end);return{start:n,end:r}}function D_(e,t){const{start:n,end:r}=$_(t==null?void 0:t.in,e);let i=+n>+r;const o=i?+n:+r,a=i?r:n;a.setHours(0,0,0,0);let c=1;const u=[];for(;+a<=o;)u.push(Gt(n,a)),a.setDate(a.getDate()+c),a.setHours(0,0,0,0);return i?u.reverse():u}function R_(e,t){const n=pt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function N_(e,t){const n=pt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function L_(e,t){var c,u;const n=fo(),r=n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,i=pt(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?-7:0)+6-(o-r);return i.setDate(i.getDate()+a),i.setHours(23,59,59,999),i}const k_={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},j_=(e,t,n)=>{let r;const i=k_[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ji(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:Ji({formats:F_,defaultWidth:"full"}),time:Ji({formats:V_,defaultWidth:"full"}),dateTime:Ji({formats:B_,defaultWidth:"full"})},U_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},z_=(e,t,n,r)=>U_[e];function In(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):a;i=e.formattingValues[c]||e.formattingValues[a]}else{const a=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const G_={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Y_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},H_={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},q_={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},K_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},X_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Z_={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:In({values:G_,defaultWidth:"wide"}),quarter:In({values:Y_,defaultWidth:"wide",argumentCallback:e=>e-1}),month:In({values:H_,defaultWidth:"wide"}),day:In({values:q_,defaultWidth:"wide"}),dayPeriod:In({values:K_,defaultWidth:"wide",formattingValues:X_,defaultFormattingWidth:"wide"})};function $n(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?Q_(c,m=>m.test(a)):J_(c,m=>m.test(a));let d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;const h=t.slice(a.length);return{value:d,rest:h}}}function J_(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Q_(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function cv(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const c=t.slice(i.length);return{value:a,rest:c}}}const eI=/^(\d+)(th|st|nd|rd)?/i,tI=/\d+/i,nI={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},rI={any:[/^b/i,/^(a|c)/i]},iI={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},sI={any:[/1/i,/2/i,/3/i,/4/i]},oI={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},aI={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},lI={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},cI={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},uI={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},fI={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},dI={ordinalNumber:cv({matchPattern:eI,parsePattern:tI,valueCallback:e=>parseInt(e,10)}),era:$n({matchPatterns:nI,defaultMatchWidth:"wide",parsePatterns:rI,defaultParseWidth:"any"}),quarter:$n({matchPatterns:iI,defaultMatchWidth:"wide",parsePatterns:sI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:oI,defaultMatchWidth:"wide",parsePatterns:aI,defaultParseWidth:"any"}),day:$n({matchPatterns:lI,defaultMatchWidth:"wide",parsePatterns:cI,defaultParseWidth:"any"}),dayPeriod:$n({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=fo(),o=(t==null?void 0:t.firstWeekContainsDate)??((m=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??i.firstWeekContainsDate??((y=(p=i.locale)==null?void 0:p.options)==null?void 0:y.firstWeekContainsDate)??1,a=Gt((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const c=Zi(a,t),u=Gt((t==null?void 0:t.in)||e,0);u.setFullYear(r,0,o),u.setHours(0,0,0,0);const d=Zi(u,t);return+n>=+c?r+1:+n>=+d?r:r-1}function pI(e,t){var c,u,d,h;const n=fo(),r=(t==null?void 0:t.firstWeekContainsDate)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,i=fv(e,t),o=Gt((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Zi(o,t)}function gI(e,t){const n=pt(e,t==null?void 0:t.in),r=+Zi(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)}},Qi={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dv={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Tr.y(e,t)},Y:function(e,t,n,r){const i=fv(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return We(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):We(o,t.length)},R:function(e,t){const n=ov(e);return We(n,t.length)},u:function(e,t){const n=e.getFullYear();return We(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return We(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return We(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Tr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return We(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=gI(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):We(i,t.length)},I:function(e,t,n){const r=mI(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):We(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Tr.d(e,t)},D:function(e,t,n){const r=hI(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):We(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return We(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return We(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return We(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Qi.noon:r===0?i=Qi.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=Qi.evening:r>=12?i=Qi.afternoon:r>=4?i=Qi.morning:i=Qi.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 ai(r);case"XXXXX":case"XXX":default:return ai(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return mv(r);case"xxxx":case"xx":return ai(r);case"xxxxx":case"xxx":default:return ai(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"+ai(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"+ai(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return We(r,t.length)},T:function(e,t,n){return We(+e,t.length)}};function hv(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+We(o,2)}function mv(e,t){return e%60===0?(e>0?"-":"+")+We(Math.abs(e)/60,2):ai(e,t)}function ai(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=We(Math.trunc(r/60),2),o=We(r%60,2);return n+i+t+o}const pv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},gv=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},yI={p:gv,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return pv(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",pv(r,t)).replace("{{time}}",gv(i,t))}},vI=/^D+$/,bI=/^Y+$/,xI=["D","DD","YY","YYYY"];function wI(e){return vI.test(e)}function SI(e){return bI.test(e)}function TI(e,t,n){const r=EI(e,t,n);if(console.warn(r),xI.includes(e))throw new RangeError(r)}function EI(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const CI=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,PI=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,AI=/^'([^]*?)'?$/,MI=/''/g,OI=/[a-zA-Z]/;function Dn(e,t,n){var h,m,p,y,S,b,T,w;const r=fo(),i=(n==null?void 0:n.locale)??r.locale??uv,o=(n==null?void 0:n.firstWeekContainsDate)??((m=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??r.firstWeekContainsDate??((y=(p=r.locale)==null?void 0:p.options)==null?void 0:y.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((b=(S=n==null?void 0:n.locale)==null?void 0:S.options)==null?void 0:b.weekStartsOn)??r.weekStartsOn??((w=(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(E=>{const P=E[0];if(P==="p"||P==="P"){const $=yI[P];return $(E,i.formatLong)}return E}).join("").match(CI).map(E=>{if(E==="''")return{isToken:!1,value:"'"};const P=E[0];if(P==="'")return{isToken:!1,value:_I(E)};if(dv[P])return{isToken:!0,value:E};if(P.match(OI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");return{isToken:!1,value:E}});i.localize.preprocessor&&(u=i.localize.preprocessor(c,u));const d={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return u.map(E=>{if(!E.isToken)return E.value;const P=E.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&SI(P)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&wI(P))&&TI(P,t,String(e));const $=dv[P[0]];return $(c,P,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 $I(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 DI(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:Ji({formats:LI,defaultWidth:"full"}),time:Ji({formats:kI,defaultWidth:"full"}),dateTime:Ji({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]},e$={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},t$={any:[/1/i,/2/i,/3/i,/4/i]},n$={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},r$={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]},i$={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},s$={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]},o$={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},a$={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}},l$={ordinalNumber:cv({matchPattern:XI,parsePattern:ZI,valueCallback:function(e){return parseInt(e,10)}}),era:$n({matchPatterns:JI,defaultMatchWidth:"wide",parsePatterns:QI,defaultParseWidth:"any"}),quarter:$n({matchPatterns:e$,defaultMatchWidth:"wide",parsePatterns:t$,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:n$,defaultMatchWidth:"wide",parsePatterns:r$,defaultParseWidth:"any"}),day:$n({matchPatterns:i$,defaultMatchWidth:"wide",parsePatterns:s$,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:o$,defaultMatchWidth:"any",parsePatterns:a$,defaultParseWidth:"any"})},es={code:"es",formatDistance:NI,formatLong:FI,formatRelative:WI,localize:KI,match:l$,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},c$=(e,t="PPPP",n="es")=>{const r=typeof e=="string"?new Date(e):e;return xv(Dn(r,t,{locale:{en:uv,es}[n]}))},u$=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 ho={exports:{}};/**
625
+ */const S_={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},T_={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},rv={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"]},iv=6048e5,E_=864e5,sv=Symbol.for("constructDateFrom");function Gt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&sv in e?e[sv](t):e instanceof Date?new e.constructor(t):new Date(t)}function pt(e,t){return Gt(t||e,e)}function ov(e,t,n){const r=pt(e,n==null?void 0:n.in);if(isNaN(t))return Gt(e,NaN);if(!t)return r;const i=r.getDate(),o=Gt(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const a=o.getDate();return i>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}let C_={};function ho(){return C_}function Zi(e,t){var c,u,d,h;const n=ho(),r=(t==null?void 0:t.weekStartsOn)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??0,i=pt(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function Ra(e,t){return Zi(e,{...t,weekStartsOn:1})}function av(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=Gt(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=Ra(i),a=Gt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const c=Ra(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function lv(e){const t=pt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Na(e,...t){const n=Gt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function La(e,t){const n=pt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function P_(e,t,n){const[r,i]=Na(n==null?void 0:n.in,e,t),o=La(r),a=La(i),c=+o-lv(o),u=+a-lv(a);return Math.round((c-u)/E_)}function A_(e,t){const n=av(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 cv(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 $_(e,t){const[n,r]=Na(e,t.start,t.end);return{start:n,end:r}}function D_(e,t){const{start:n,end:r}=$_(t==null?void 0:t.in,e);let i=+n>+r;const o=i?+n:+r,a=i?r:n;a.setHours(0,0,0,0);let c=1;const u=[];for(;+a<=o;)u.push(Gt(n,a)),a.setDate(a.getDate()+c),a.setHours(0,0,0,0);return i?u.reverse():u}function R_(e,t){const n=pt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function N_(e,t){const n=pt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function L_(e,t){var c,u;const n=ho(),r=n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,i=pt(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?-7:0)+6-(o-r);return i.setDate(i.getDate()+a),i.setHours(23,59,59,999),i}const k_={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},j_=(e,t,n)=>{let r;const i=k_[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ji(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:Ji({formats:F_,defaultWidth:"full"}),time:Ji({formats:V_,defaultWidth:"full"}),dateTime:Ji({formats:B_,defaultWidth:"full"})},U_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},z_=(e,t,n,r)=>U_[e];function In(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):a;i=e.formattingValues[c]||e.formattingValues[a]}else{const a=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const G_={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Y_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},H_={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},q_={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},K_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},X_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Z_={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:In({values:G_,defaultWidth:"wide"}),quarter:In({values:Y_,defaultWidth:"wide",argumentCallback:e=>e-1}),month:In({values:H_,defaultWidth:"wide"}),day:In({values:q_,defaultWidth:"wide"}),dayPeriod:In({values:K_,defaultWidth:"wide",formattingValues:X_,defaultFormattingWidth:"wide"})};function $n(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?Q_(c,m=>m.test(a)):J_(c,m=>m.test(a));let d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;const h=t.slice(a.length);return{value:d,rest:h}}}function J_(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Q_(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function uv(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const c=t.slice(i.length);return{value:a,rest:c}}}const eI=/^(\d+)(th|st|nd|rd)?/i,tI=/\d+/i,nI={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},rI={any:[/^b/i,/^(a|c)/i]},iI={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},sI={any:[/1/i,/2/i,/3/i,/4/i]},oI={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},aI={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},lI={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},cI={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},uI={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},fI={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},dI={ordinalNumber:uv({matchPattern:eI,parsePattern:tI,valueCallback:e=>parseInt(e,10)}),era:$n({matchPatterns:nI,defaultMatchWidth:"wide",parsePatterns:rI,defaultParseWidth:"any"}),quarter:$n({matchPatterns:iI,defaultMatchWidth:"wide",parsePatterns:sI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:oI,defaultMatchWidth:"wide",parsePatterns:aI,defaultParseWidth:"any"}),day:$n({matchPatterns:lI,defaultMatchWidth:"wide",parsePatterns:cI,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:uI,defaultMatchWidth:"any",parsePatterns:fI,defaultParseWidth:"any"})},fv={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/iv)+1}function dv(e,t){var h,m,p,y;const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=ho(),o=(t==null?void 0:t.firstWeekContainsDate)??((m=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??i.firstWeekContainsDate??((y=(p=i.locale)==null?void 0:p.options)==null?void 0:y.firstWeekContainsDate)??1,a=Gt((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const c=Zi(a,t),u=Gt((t==null?void 0:t.in)||e,0);u.setFullYear(r,0,o),u.setHours(0,0,0,0);const d=Zi(u,t);return+n>=+c?r+1:+n>=+d?r:r-1}function pI(e,t){var c,u,d,h;const n=ho(),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=dv(e,t),o=Gt((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Zi(o,t)}function gI(e,t){const n=pt(e,t==null?void 0:t.in),r=+Zi(n,t)-+pI(n,t);return Math.round(r/iv)+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)}},Qi={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},hv={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=dv(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return We(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):We(o,t.length)},R:function(e,t){const n=av(e);return We(n,t.length)},u:function(e,t){const n=e.getFullYear();return We(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return We(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return We(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Tr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return We(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=gI(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):We(i,t.length)},I:function(e,t,n){const r=mI(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):We(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Tr.d(e,t)},D:function(e,t,n){const r=hI(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):We(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return We(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return We(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return We(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Qi.noon:r===0?i=Qi.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=Qi.evening:r>=12?i=Qi.afternoon:r>=4?i=Qi.morning:i=Qi.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 pv(r);case"XXXX":case"XX":return ai(r);case"XXXXX":case"XXX":default:return ai(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return pv(r);case"xxxx":case"xx":return ai(r);case"xxxxx":case"xxx":default:return ai(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+mv(r,":");case"OOOO":default:return"GMT"+ai(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+mv(r,":");case"zzzz":default:return"GMT"+ai(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 mv(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+We(o,2)}function pv(e,t){return e%60===0?(e>0?"-":"+")+We(Math.abs(e)/60,2):ai(e,t)}function ai(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=We(Math.trunc(r/60),2),o=We(r%60,2);return n+i+t+o}const gv=(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"})}},yv=(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:yv,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return gv(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",gv(r,t)).replace("{{time}}",yv(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 Dn(e,t,n){var h,m,p,y,S,b,T,w;const r=ho(),i=(n==null?void 0:n.locale)??r.locale??fv,o=(n==null?void 0:n.firstWeekContainsDate)??((m=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??r.firstWeekContainsDate??((y=(p=r.locale)==null?void 0:p.options)==null?void 0:y.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((b=(S=n==null?void 0:n.locale)==null?void 0:S.options)==null?void 0:b.weekStartsOn)??r.weekStartsOn??((w=(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(E=>{const P=E[0];if(P==="p"||P==="P"){const $=yI[P];return $(E,i.formatLong)}return E}).join("").match(CI).map(E=>{if(E==="''")return{isToken:!1,value:"'"};const P=E[0];if(P==="'")return{isToken:!1,value:_I(E)};if(hv[P])return{isToken:!0,value:E};if(P.match(OI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");return{isToken:!1,value:E}});i.localize.preprocessor&&(u=i.localize.preprocessor(c,u));const d={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return u.map(E=>{if(!E.isToken)return E.value;const P=E.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&SI(P)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&wI(P))&&TI(P,t,String(e));const $=hv[P[0]];return $(c,P,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 $I(e,t){return cv(Gt(e,e),M_(e))}function vv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setHours(t),r}function bv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setMinutes(t),r}function xv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setSeconds(t),r}function DI(e,t,n){return ov(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:Ji({formats:LI,defaultWidth:"full"}),time:Ji({formats:kI,defaultWidth:"full"}),dateTime:Ji({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]},e$={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},t$={any:[/1/i,/2/i,/3/i,/4/i]},n$={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},r$={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]},i$={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},s$={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]},o$={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},a$={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}},l$={ordinalNumber:uv({matchPattern:XI,parsePattern:ZI,valueCallback:function(e){return parseInt(e,10)}}),era:$n({matchPatterns:JI,defaultMatchWidth:"wide",parsePatterns:QI,defaultParseWidth:"any"}),quarter:$n({matchPatterns:e$,defaultMatchWidth:"wide",parsePatterns:t$,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:n$,defaultMatchWidth:"wide",parsePatterns:r$,defaultParseWidth:"any"}),day:$n({matchPatterns:i$,defaultMatchWidth:"wide",parsePatterns:s$,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:o$,defaultMatchWidth:"any",parsePatterns:a$,defaultParseWidth:"any"})},es={code:"es",formatDistance:NI,formatLong:FI,formatRelative:WI,localize:KI,match:l$,options:{weekStartsOn:1,firstWeekContainsDate:1}},wv=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},c$=(e,t="PPPP",n="es")=>{const r=typeof e=="string"?new Date(e):e;return wv(Dn(r,t,{locale:{en:fv,es}[n]}))},u$=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=i=>n(i)});function Sv(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 Tv=e=>e;var mo={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 f$=ho.exports,Tv;function d$(){return Tv||(Tv=1,function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,p=2,y=4,S=1,b=2,T=1,w=2,E=4,P=8,$=16,A=32,D=64,k=128,F=256,z=512,J=30,ne="...",le=800,ye=16,de=1,ue=2,he=3,V=1/0,B=9007199254740991,G=17976931348623157e292,O=NaN,N=4294967295,K=N-1,oe=N>>>1,Z=[["ary",k],["bind",T],["bindKey",w],["curry",P],["curryRight",$],["flip",z],["partial",A],["partialRight",D],["rearg",F]],q="[object Arguments]",Q="[object Array]",ae="[object AsyncFunction]",re="[object Boolean]",fe="[object Date]",Ce="[object DOMException]",Ve="[object Error]",ie="[object Function]",pe="[object GeneratorFunction]",De="[object Map]",ft="[object Number]",Ti="[object Null]",dt="[object Object]",bl="[object Promise]",xl="[object Proxy]",Ei="[object RegExp]",qt="[object Set]",bn="[object String]",Ci="[object Symbol]",wl="[object Undefined]",Wr="[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]",Ek=/\b__p \+= '';/g,Ck=/\b(__p \+=) '' \+/g,Pk=/(__e\(.*?\)|\b__t\)) \+\n'';/g,kw=/&(?:amp|lt|gt|quot|#39);/g,jw=/[&<>"']/g,Ak=RegExp(kw.source),Mk=RegExp(jw.source),Ok=/<%-([\s\S]+?)%>/g,_k=/<%([\s\S]+?)%>/g,Fw=/<%=([\s\S]+?)%>/g,Ik=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$k=/^\w*$/,Dk=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yh=/[\\^$.*+?()[\]{}|]/g,Rk=RegExp(yh.source),vh=/^\s+/,Nk=/\s/,Lk=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kk=/\{\n\/\* \[wrapped with (.+)\] \*/,jk=/,? & /,Fk=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vk=/[()=,{}\[\]\/\s]/,Bk=/\\(\\)?/g,Wk=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vw=/\w*$/,Uk=/^[-+]0x[0-9a-f]+$/i,zk=/^0b[01]+$/i,Gk=/^\[object .+?Constructor\]$/,Yk=/^0o[0-7]+$/i,Hk=/^(?:0|[1-9]\d*)$/,qk=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tl=/($^)/,Kk=/['\n\r\u2028\u2029\\]/g,El="\\ud800-\\udfff",Xk="\\u0300-\\u036f",Zk="\\ufe20-\\ufe2f",Jk="\\u20d0-\\u20ff",Bw=Xk+Zk+Jk,Ww="\\u2700-\\u27bf",Uw="a-z\\xdf-\\xf6\\xf8-\\xff",Qk="\\xac\\xb1\\xd7\\xf7",e3="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",t3="\\u2000-\\u206f",n3=" \\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+e3+t3+n3,bh="['’]",r3="["+El+"]",Hw="["+Yw+"]",Cl="["+Bw+"]",qw="\\d+",i3="["+Ww+"]",Kw="["+Uw+"]",Xw="[^"+El+Yw+qw+Ww+Uw+zw+"]",xh="\\ud83c[\\udffb-\\udfff]",s3="(?:"+Cl+"|"+xh+")",Zw="[^"+El+"]",wh="(?:\\ud83c[\\udde6-\\uddff]){2}",Sh="[\\ud800-\\udbff][\\udc00-\\udfff]",Ts="["+zw+"]",Jw="\\u200d",Qw="(?:"+Kw+"|"+Xw+")",o3="(?:"+Ts+"|"+Xw+")",e2="(?:"+bh+"(?:d|ll|m|re|s|t|ve))?",t2="(?:"+bh+"(?:D|LL|M|RE|S|T|VE))?",n2=s3+"?",r2="["+Gw+"]?",a3="(?:"+Jw+"(?:"+[Zw,wh,Sh].join("|")+")"+r2+n2+")*",l3="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",c3="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",i2=r2+n2+a3,u3="(?:"+[i3,wh,Sh].join("|")+")"+i2,f3="(?:"+[Zw+Cl+"?",Cl,wh,Sh,r3].join("|")+")",d3=RegExp(bh,"g"),h3=RegExp(Cl,"g"),Th=RegExp(xh+"(?="+xh+")|"+f3+i2,"g"),m3=RegExp([Ts+"?"+Kw+"+"+e2+"(?="+[Hw,Ts,"$"].join("|")+")",o3+"+"+t2+"(?="+[Hw,Ts+Qw,"$"].join("|")+")",Ts+"?"+Qw+"+"+e2,Ts+"+"+t2,c3,l3,qw,u3].join("|"),"g"),p3=RegExp("["+Jw+El+Bw+Gw+"]"),g3=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,y3=["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"],v3=-1,Je={};Je[Pt]=Je[xn]=Je[rr]=Je[fh]=Je[dh]=Je[hh]=Je[mh]=Je[ph]=Je[gh]=!0,Je[q]=Je[Q]=Je[be]=Je[re]=Je[Qe]=Je[fe]=Je[Ve]=Je[ie]=Je[De]=Je[ft]=Je[dt]=Je[Ei]=Je[qt]=Je[bn]=Je[Wr]=!1;var Ke={};Ke[q]=Ke[Q]=Ke[be]=Ke[Qe]=Ke[re]=Ke[fe]=Ke[Pt]=Ke[xn]=Ke[rr]=Ke[fh]=Ke[dh]=Ke[De]=Ke[ft]=Ke[dt]=Ke[Ei]=Ke[qt]=Ke[bn]=Ke[Ci]=Ke[hh]=Ke[mh]=Ke[ph]=Ke[gh]=!0,Ke[Ve]=Ke[ie]=Ke[Wr]=!1;var b3={À:"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"},x3={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},w3={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},S3={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},T3=parseFloat,E3=parseInt,s2=typeof ea=="object"&&ea&&ea.Object===Object&&ea,C3=typeof self=="object"&&self&&self.Object===Object&&self,bt=s2||C3||Function("return this")(),Eh=t&&!t.nodeType&&t,Pi=Eh&&!0&&e&&!e.nodeType&&e,o2=Pi&&Pi.exports===Eh,Ch=o2&&s2.process,cn=function(){try{var L=Pi&&Pi.require&&Pi.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,W){switch(W.length){case 0:return L.call(U);case 1:return L.call(U,W[0]);case 2:return L.call(U,W[0],W[1]);case 3:return L.call(U,W[0],W[1],W[2])}return L.apply(U,W)}function P3(L,U,W,me){for(var Pe=-1,ke=L==null?0:L.length;++Pe<ke;){var ht=L[Pe];U(me,ht,W(ht),L)}return me}function un(L,U){for(var W=-1,me=L==null?0:L.length;++W<me&&U(L[W],W,L)!==!1;);return L}function A3(L,U){for(var W=L==null?0:L.length;W--&&U(L[W],W,L)!==!1;);return L}function h2(L,U){for(var W=-1,me=L==null?0:L.length;++W<me;)if(!U(L[W],W,L))return!1;return!0}function Ur(L,U){for(var W=-1,me=L==null?0:L.length,Pe=0,ke=[];++W<me;){var ht=L[W];U(ht,W,L)&&(ke[Pe++]=ht)}return ke}function Pl(L,U){var W=L==null?0:L.length;return!!W&&Es(L,U,0)>-1}function Ph(L,U,W){for(var me=-1,Pe=L==null?0:L.length;++me<Pe;)if(W(U,L[me]))return!0;return!1}function et(L,U){for(var W=-1,me=L==null?0:L.length,Pe=Array(me);++W<me;)Pe[W]=U(L[W],W,L);return Pe}function zr(L,U){for(var W=-1,me=U.length,Pe=L.length;++W<me;)L[Pe+W]=U[W];return L}function Ah(L,U,W,me){var Pe=-1,ke=L==null?0:L.length;for(me&&ke&&(W=L[++Pe]);++Pe<ke;)W=U(W,L[Pe],Pe,L);return W}function M3(L,U,W,me){var Pe=L==null?0:L.length;for(me&&Pe&&(W=L[--Pe]);Pe--;)W=U(W,L[Pe],Pe,L);return W}function Mh(L,U){for(var W=-1,me=L==null?0:L.length;++W<me;)if(U(L[W],W,L))return!0;return!1}var O3=Oh("length");function _3(L){return L.split("")}function I3(L){return L.match(Fk)||[]}function m2(L,U,W){var me;return W(L,function(Pe,ke,ht){if(U(Pe,ke,ht))return me=ke,!1}),me}function Al(L,U,W,me){for(var Pe=L.length,ke=W+(me?1:-1);me?ke--:++ke<Pe;)if(U(L[ke],ke,L))return ke;return-1}function Es(L,U,W){return U===U?U3(L,U,W):Al(L,p2,W)}function $3(L,U,W,me){for(var Pe=W-1,ke=L.length;++Pe<ke;)if(me(L[Pe],U))return Pe;return-1}function p2(L){return L!==L}function g2(L,U){var W=L==null?0:L.length;return W?Ih(L,U)/W: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,W,me,Pe){return Pe(L,function(ke,ht,Ge){W=me?(me=!1,ke):U(W,ke,ht,Ge)}),W}function D3(L,U){var W=L.length;for(L.sort(U);W--;)L[W]=L[W].value;return L}function Ih(L,U){for(var W,me=-1,Pe=L.length;++me<Pe;){var ke=U(L[me]);ke!==n&&(W=W===n?ke:W+ke)}return W}function $h(L,U){for(var W=-1,me=Array(L);++W<L;)me[W]=U(W);return me}function R3(L,U){return et(U,function(W){return[W,L[W]]})}function v2(L){return L&&L.slice(0,S2(L)+1).replace(vh,"")}function Xt(L){return function(U){return L(U)}}function Dh(L,U){return et(U,function(W){return L[W]})}function Fo(L,U){return L.has(U)}function b2(L,U){for(var W=-1,me=L.length;++W<me&&Es(U,L[W],0)>-1;);return W}function x2(L,U){for(var W=L.length;W--&&Es(U,L[W],0)>-1;);return W}function N3(L,U){for(var W=L.length,me=0;W--;)L[W]===U&&++me;return me}var L3=_h(b3),k3=_h(x3);function j3(L){return"\\"+S3[L]}function F3(L,U){return L==null?n:L[U]}function Cs(L){return p3.test(L)}function V3(L){return g3.test(L)}function B3(L){for(var U,W=[];!(U=L.next()).done;)W.push(U.value);return W}function Rh(L){var U=-1,W=Array(L.size);return L.forEach(function(me,Pe){W[++U]=[Pe,me]}),W}function w2(L,U){return function(W){return L(U(W))}}function Gr(L,U){for(var W=-1,me=L.length,Pe=0,ke=[];++W<me;){var ht=L[W];(ht===U||ht===h)&&(L[W]=h,ke[Pe++]=W)}return ke}function Ml(L){var U=-1,W=Array(L.size);return L.forEach(function(me){W[++U]=me}),W}function W3(L){var U=-1,W=Array(L.size);return L.forEach(function(me){W[++U]=[me,me]}),W}function U3(L,U,W){for(var me=W-1,Pe=L.length;++me<Pe;)if(L[me]===U)return me;return-1}function z3(L,U,W){for(var me=W+1;me--;)if(L[me]===U)return me;return me}function Ps(L){return Cs(L)?Y3(L):O3(L)}function wn(L){return Cs(L)?H3(L):_3(L)}function S2(L){for(var U=L.length;U--&&Nk.test(L.charAt(U)););return U}var G3=_h(w3);function Y3(L){for(var U=Th.lastIndex=0;Th.test(L);)++U;return U}function H3(L){return L.match(Th)||[]}function q3(L){return L.match(m3)||[]}var K3=function L(U){U=U==null?bt:As.defaults(bt.Object(),U,As.pick(bt,y3));var W=U.Array,me=U.Date,Pe=U.Error,ke=U.Function,ht=U.Math,Ge=U.Object,Nh=U.RegExp,X3=U.String,fn=U.TypeError,Ol=W.prototype,Z3=ke.prototype,Ms=Ge.prototype,_l=U["__core-js_shared__"],Il=Z3.toString,ze=Ms.hasOwnProperty,J3=0,T2=function(){var s=/[^.]+$/.exec(_l&&_l.keys&&_l.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),$l=Ms.toString,Q3=Il.call(Ge),ej=bt._,tj=Nh("^"+Il.call(ze).replace(yh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dl=o2?U.Buffer:n,Yr=U.Symbol,Rl=U.Uint8Array,E2=Dl?Dl.allocUnsafe:n,Nl=w2(Ge.getPrototypeOf,Ge),C2=Ge.create,P2=Ms.propertyIsEnumerable,Ll=Ol.splice,A2=Yr?Yr.isConcatSpreadable:n,Vo=Yr?Yr.iterator:n,Ai=Yr?Yr.toStringTag:n,kl=function(){try{var s=$i(Ge,"defineProperty");return s({},"",{}),s}catch{}}(),nj=U.clearTimeout!==bt.clearTimeout&&U.clearTimeout,rj=me&&me.now!==bt.Date.now&&me.now,ij=U.setTimeout!==bt.setTimeout&&U.setTimeout,jl=ht.ceil,Fl=ht.floor,Lh=Ge.getOwnPropertySymbols,sj=Dl?Dl.isBuffer:n,M2=U.isFinite,oj=Ol.join,aj=w2(Ge.keys,Ge),mt=ht.max,At=ht.min,lj=me.now,cj=U.parseInt,O2=ht.random,uj=Ol.reverse,kh=$i(U,"DataView"),Bo=$i(U,"Map"),jh=$i(U,"Promise"),Os=$i(U,"Set"),Wo=$i(U,"WeakMap"),Uo=$i(Ge,"create"),Vl=Wo&&new Wo,_s={},fj=Di(kh),dj=Di(Bo),hj=Di(jh),mj=Di(Os),pj=Di(Wo),Bl=Yr?Yr.prototype:n,zo=Bl?Bl.valueOf:n,_2=Bl?Bl.toString:n;function C(s){if(ot(s)&&!Ae(s)&&!(s instanceof Ne)){if(s instanceof dn)return s;if(ze.call(s,"__wrapped__"))return IS(s)}return new dn(s)}var Is=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}C.templateSettings={escape:Ok,evaluate:_k,interpolate:Fw,variable:"",imports:{_:C}},C.prototype=Wl.prototype,C.prototype.constructor=C,dn.prototype=Is(Wl.prototype),dn.prototype.constructor=dn;function Ne(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=N,this.__views__=[]}function gj(){var s=new Ne(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 yj(){if(this.__filtered__){var s=new Ne(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function vj(){var s=this.__wrapped__.value(),l=this.__dir__,f=Ae(s),g=l<0,x=f?s.length:0,M=_F(0,x,this.__views__),I=M.start,R=M.end,j=R-I,Y=g?R:I-1,H=this.__iteratees__,X=H.length,ce=0,ge=At(j,this.__takeCount__);if(!f||!g&&x==j&&ge==j)return eS(s,this.__actions__);var Te=[];e:for(;j--&&ce<ge;){Y+=l;for(var Oe=-1,Ee=s[Y];++Oe<X;){var Re=H[Oe],Le=Re.iteratee,Qt=Re.type,Dt=Le(Ee);if(Qt==ue)Ee=Dt;else if(!Dt){if(Qt==de)continue e;break e}}Te[ce++]=Ee}return Te}Ne.prototype=Is(Wl.prototype),Ne.prototype.constructor=Ne;function Mi(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__=Uo?Uo(null):{},this.size=0}function xj(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function wj(s){var l=this.__data__;if(Uo){var f=l[s];return f===u?n:f}return ze.call(l,s)?l[s]:n}function Sj(s){var l=this.__data__;return Uo?l[s]!==n:ze.call(l,s)}function Tj(s,l){var f=this.__data__;return this.size+=this.has(s)?0:1,f[s]=Uo&&l===n?u:l,this}Mi.prototype.clear=bj,Mi.prototype.delete=xj,Mi.prototype.get=wj,Mi.prototype.has=Sj,Mi.prototype.set=Tj;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 Ej(){this.__data__=[],this.size=0}function Cj(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 Pj(s){var l=this.__data__,f=Ul(l,s);return f<0?n:l[f][1]}function Aj(s){return Ul(this.__data__,s)>-1}function Mj(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=Ej,ir.prototype.delete=Cj,ir.prototype.get=Pj,ir.prototype.has=Aj,ir.prototype.set=Mj;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 Oj(){this.size=0,this.__data__={hash:new Mi,map:new(Bo||ir),string:new Mi}}function _j(s){var l=tc(this,s).delete(s);return this.size-=l?1:0,l}function Ij(s){return tc(this,s).get(s)}function $j(s){return tc(this,s).has(s)}function Dj(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=Oj,sr.prototype.delete=_j,sr.prototype.get=Ij,sr.prototype.has=$j,sr.prototype.set=Dj;function Oi(s){var l=-1,f=s==null?0:s.length;for(this.__data__=new sr;++l<f;)this.add(s[l])}function Rj(s){return this.__data__.set(s,u),this}function Nj(s){return this.__data__.has(s)}Oi.prototype.add=Oi.prototype.push=Rj,Oi.prototype.has=Nj;function Sn(s){var l=this.__data__=new ir(s);this.size=l.size}function Lj(){this.__data__=new ir,this.size=0}function kj(s){var l=this.__data__,f=l.delete(s);return this.size=l.size,f}function jj(s){return this.__data__.get(s)}function Fj(s){return this.__data__.has(s)}function Vj(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=Lj,Sn.prototype.delete=kj,Sn.prototype.get=jj,Sn.prototype.has=Fj,Sn.prototype.set=Vj;function I2(s,l){var f=Ae(s),g=!f&&Ri(s),x=!f&&!g&&Zr(s),M=!f&&!g&&!x&&Ns(s),I=f||g||x||M,R=I?$h(s.length,X3):[],j=R.length;for(var Y in s)(l||ze.call(s,Y))&&!(I&&(Y=="length"||x&&(Y=="offset"||Y=="parent")||M&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||cr(Y,j)))&&R.push(Y);return R}function $2(s){var l=s.length;return l?s[Kh(0,l-1)]:n}function Bj(s,l){return nc(Vt(s),_i(l,0,s.length))}function Wj(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];(!(ze.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 Uj(s,l,f,g){return Hr(s,function(x,M,I){l(g,x,f(x),I)}),g}function D2(s,l){return s&&Wn(l,gt(l),s)}function zj(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=W(g),M=s==null;++f<g;)x[f]=M?n:xm(s,l[f]);return x}function _i(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 I,R=l&m,j=l&p,Y=l&y;if(f&&(I=x?f(s,g,x,M):f(s)),I!==n)return I;if(!st(s))return s;var H=Ae(s);if(H){if(I=$F(s),!R)return Vt(s,I)}else{var X=Mt(s),ce=X==ie||X==pe;if(Zr(s))return rS(s,R);if(X==dt||X==q||ce&&!x){if(I=j||ce?{}:SS(s),!R)return j?wF(s,zj(I,s)):xF(s,D2(I,s))}else{if(!Ke[X])return x?s:{};I=DF(s,X,R)}}M||(M=new Sn);var ge=M.get(s);if(ge)return ge;M.set(s,I),ZS(s)?s.forEach(function(Ee){I.add(hn(Ee,l,f,Ee,s,M))}):KS(s)&&s.forEach(function(Ee,Re){I.set(Re,hn(Ee,l,f,Re,s,M))});var Te=Y?j?om:sm:j?Wt:gt,Oe=H?n:Te(s);return un(Oe||s,function(Ee,Re){Oe&&(Re=Ee,Ee=s[Re]),Go(I,Re,hn(Ee,l,f,Re,s,M))}),I}function Gj(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],I=s[x];if(I===n&&!(x in s)||!M(I))return!1}return!0}function N2(s,l,f){if(typeof s!="function")throw new fn(a);return Jo(function(){s.apply(n,f)},l)}function Yo(s,l,f,g){var x=-1,M=Pl,I=!0,R=s.length,j=[],Y=l.length;if(!R)return j;f&&(l=et(l,Xt(f))),g?(M=Ph,I=!1):l.length>=i&&(M=Fo,I=!1,l=new Oi(l));e:for(;++x<R;){var H=s[x],X=f==null?H:f(H);if(H=g||H!==0?H:0,I&&X===X){for(var ce=Y;ce--;)if(l[ce]===X)continue e;j.push(H)}else M(l,X,g)||j.push(H)}return j}var Hr=lS(Bn),L2=lS(Wh,!0);function Yj(s,l){var f=!0;return Hr(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],I=l(M);if(I!=null&&(R===n?I===I&&!Jt(I):f(I,R)))var R=I,j=M}return j}function Hj(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 Hr(s,function(g,x,M){l(g,x,M)&&f.push(g)}),f}function xt(s,l,f,g,x){var M=-1,I=s.length;for(f||(f=NF),x||(x=[]);++M<I;){var R=s[M];l>0&&f(R)?l>1?xt(R,l-1,f,g,x):zr(x,R):g||(x[x.length]=R)}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 Ur(l,function(f){return ur(s[f])})}function Ii(s,l){l=Kr(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:zr(g,f(s))}function It(s){return s==null?s===n?wl:Ti:Ai&&Ai in Ge(s)?OF(s):WF(s)}function Uh(s,l){return s>l}function qj(s,l){return s!=null&&ze.call(s,l)}function Kj(s,l){return s!=null&&l in Ge(s)}function Xj(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,I=M,R=W(M),j=1/0,Y=[];I--;){var H=s[I];I&&l&&(H=et(H,Xt(l))),j=At(H.length,j),R[I]=!f&&(l||x>=120&&H.length>=120)?new Oi(I&&H):n}H=s[0];var X=-1,ce=R[0];e:for(;++X<x&&Y.length<j;){var ge=H[X],Te=l?l(ge):ge;if(ge=f||ge!==0?ge:0,!(ce?Fo(ce,Te):g(Y,Te,f))){for(I=M;--I;){var Oe=R[I];if(!(Oe?Fo(Oe,Te):g(s[I],Te,f)))continue e}ce&&ce.push(Te),Y.push(ge)}}return Y}function Zj(s,l,f,g){return Bn(s,function(x,M,I){l(g,f(x),M,I)}),g}function Ho(s,l,f){l=Kr(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)==q}function Jj(s){return ot(s)&&It(s)==be}function Qj(s){return ot(s)&&It(s)==fe}function qo(s,l,f,g,x){return s===l?!0:s==null||l==null||!ot(s)&&!ot(l)?s!==s&&l!==l:eF(s,l,f,g,qo,x)}function eF(s,l,f,g,x,M){var I=Ae(s),R=Ae(l),j=I?Q:Mt(s),Y=R?Q:Mt(l);j=j==q?dt:j,Y=Y==q?dt:Y;var H=j==dt,X=Y==dt,ce=j==Y;if(ce&&Zr(s)){if(!Zr(l))return!1;I=!0,H=!1}if(ce&&!H)return M||(M=new Sn),I||Ns(s)?bS(s,l,f,g,x,M):AF(s,l,j,f,g,x,M);if(!(f&S)){var ge=H&&ze.call(s,"__wrapped__"),Te=X&&ze.call(l,"__wrapped__");if(ge||Te){var Oe=ge?s.value():s,Ee=Te?l.value():l;return M||(M=new Sn),x(Oe,Ee,f,g,M)}}return ce?(M||(M=new Sn),MF(s,l,f,g,x,M)):!1}function tF(s){return ot(s)&&Mt(s)==De}function Gh(s,l,f,g){var x=f.length,M=x,I=!g;if(s==null)return!M;for(s=Ge(s);x--;){var R=f[x];if(I&&R[2]?R[1]!==s[R[0]]:!(R[0]in s))return!1}for(;++x<M;){R=f[x];var j=R[0],Y=s[j],H=R[1];if(I&&R[2]){if(Y===n&&!(j in s))return!1}else{var X=new Sn;if(g)var ce=g(Y,H,j,s,l,X);if(!(ce===n?qo(H,Y,S|b,g,X):ce))return!1}}return!0}function B2(s){if(!st(s)||kF(s))return!1;var l=ur(s)?tj:Gk;return l.test(Di(s))}function nF(s){return ot(s)&&It(s)==Ei}function rF(s){return ot(s)&&Mt(s)==qt}function iF(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 aj(s);var l=[];for(var f in Ge(s))ze.call(s,f)&&f!="constructor"&&l.push(f);return l}function sF(s){if(!st(s))return BF(s);var l=Zo(s),f=[];for(var g in s)g=="constructor"&&(l||!ze.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)?W(s.length):[];return Hr(s,function(x,M,I){g[++f]=l(x,M,I)}),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,I){if(x||(x=new Sn),st(M))oF(s,l,I,f,Yl,g,x);else{var R=g?g(dm(s,I),M,I+"",s,l,x):n;R===n&&(R=M),Fh(s,I,R)}},Wt)}function oF(s,l,f,g,x,M,I){var R=dm(s,f),j=dm(l,f),Y=I.get(j);if(Y){Fh(s,f,Y);return}var H=M?M(R,j,f+"",s,l,I):n,X=H===n;if(X){var ce=Ae(j),ge=!ce&&Zr(j),Te=!ce&&!ge&&Ns(j);H=j,ce||ge||Te?Ae(R)?H=R:ct(R)?H=Vt(R):ge?(X=!1,H=rS(j,!0)):Te?(X=!1,H=iS(j,!0)):H=[]:Qo(j)||Ri(j)?(H=R,Ri(R)?H=eT(R):(!st(R)||ur(R))&&(H=SS(j))):X=!1}X&&(I.set(j,H),x(H,j,g,M,I),I.delete(j)),Fh(s,f,H)}function Y2(s,l){var f=s.length;if(f)return l+=l<0?f:0,cr(l,f)?s[l]:n}function H2(s,l,f){l.length?l=et(l,function(M){return Ae(M)?function(I){return Ii(I,M.length===1?M[0]:M)}:M}):l=[Ut];var g=-1;l=et(l,Xt(xe()));var x=U2(s,function(M,I,R){var j=et(l,function(Y){return Y(M)});return{criteria:j,index:++g,value:M}});return D3(x,function(M,I){return bF(M,I,f)})}function aF(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 I=l[g],R=Ii(s,I);f(R,I)&&Ko(M,Kr(I,s),R)}return M}function lF(s){return function(l){return Ii(l,s)}}function qh(s,l,f,g){var x=g?$3:Es,M=-1,I=l.length,R=s;for(s===l&&(l=Vt(l)),f&&(R=et(s,Xt(f)));++M<I;)for(var j=0,Y=l[M],H=f?f(Y):Y;(j=x(R,H,j,g))>-1;)R!==s&&Ll.call(R,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 cF(s,l,f,g){for(var x=-1,M=mt(jl((l-s)/(f||1)),0),I=W(M);M--;)I[g?M:++x]=s,s+=f;return I}function Xh(s,l){var f="";if(!s||l<1||l>B)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 uF(s){return $2(Ls(s))}function fF(s,l){var f=Ls(s);return nc(f,_i(l,0,f.length))}function Ko(s,l,f,g){if(!st(s))return s;l=Kr(l,s);for(var x=-1,M=l.length,I=M-1,R=s;R!=null&&++x<M;){var j=Un(l[x]),Y=f;if(j==="__proto__"||j==="constructor"||j==="prototype")return s;if(x!=I){var H=R[j];Y=g?g(H,j,R):n,Y===n&&(Y=st(H)?H:cr(l[x+1])?[]:{})}Go(R,j,Y),R=R[j]}return s}var X2=Vl?function(s,l){return Vl.set(s,l),s}:Ut,dF=kl?function(s,l){return kl(s,"toString",{configurable:!0,enumerable:!1,value:Tm(l),writable:!0})}:Ut;function hF(s){return nc(Ls(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=W(x);++g<x;)M[g]=s[g+l];return M}function mF(s,l){var f;return Hr(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<=oe){for(;g<x;){var M=g+x>>>1,I=s[M];I!==null&&!Jt(I)&&(f?I<=l:I<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 I=l!==l,R=l===null,j=Jt(l),Y=l===n;x<M;){var H=Fl((x+M)/2),X=f(s[H]),ce=X!==n,ge=X===null,Te=X===X,Oe=Jt(X);if(I)var Ee=g||Te;else Y?Ee=Te&&(g||ce):R?Ee=Te&&ce&&(g||!ge):j?Ee=Te&&ce&&!ge&&(g||!Oe):ge||Oe?Ee=!1:Ee=g?X<=l:X<l;Ee?x=H+1:M=H}return At(M,K)}function Z2(s,l){for(var f=-1,g=s.length,x=0,M=[];++f<g;){var I=s[f],R=l?l(I):I;if(!f||!Tn(R,j)){var j=R;M[x++]=I===0?0:I}}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 qr(s,l,f){var g=-1,x=Pl,M=s.length,I=!0,R=[],j=R;if(f)I=!1,x=Ph;else if(M>=i){var Y=l?null:CF(s);if(Y)return Ml(Y);I=!1,x=Fo,j=new Oi}else j=l?[]:R;e:for(;++g<M;){var H=s[g],X=l?l(H):H;if(H=f||H!==0?H:0,I&&X===X){for(var ce=j.length;ce--;)if(j[ce]===X)continue e;l&&j.push(X),R.push(H)}else x(j,X,f)||(j!==R&&j.push(X),R.push(H))}return R}function Jh(s,l){return l=Kr(l,s),s=PS(s,l),s==null||delete s[Un(pn(l))]}function Q2(s,l,f,g){return Ko(s,l,f(Ii(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 Ne&&(f=f.value()),Ah(l,function(g,x){return x.func.apply(x.thisArg,zr([g],x.args))},f)}function Qh(s,l,f){var g=s.length;if(g<2)return g?qr(s[0]):[];for(var x=-1,M=W(g);++x<g;)for(var I=s[x],R=-1;++R<g;)R!=x&&(M[x]=Yo(M[x]||I,s[R],l,f));return qr(xt(M,1),l,f)}function tS(s,l,f){for(var g=-1,x=s.length,M=l.length,I={};++g<x;){var R=g<M?l[g]:n;f(I,s[g],R)}return I}function em(s){return ct(s)?s:[]}function tm(s){return typeof s=="function"?s:Ut}function Kr(s,l){return Ae(s)?s:um(s,l)?[s]:_S(Be(s))}var pF=_e;function Xr(s,l,f){var g=s.length;return f=f===n?g:f,!l&&f>=g?s:mn(s,l,f)}var nS=nj||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 gF(s,l){var f=l?nm(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function yF(s){var l=new s.constructor(s.source,Vw.exec(s));return l.lastIndex=s.lastIndex,l}function vF(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),I=l!==n,R=l===null,j=l===l,Y=Jt(l);if(!R&&!Y&&!M&&s>l||M&&I&&j&&!R&&!Y||g&&I&&j||!f&&j||!x)return 1;if(!g&&!M&&!Y&&s<l||Y&&f&&x&&!g&&!M||R&&f&&x||!I&&x||!j)return-1}return 0}function bF(s,l,f){for(var g=-1,x=s.criteria,M=l.criteria,I=x.length,R=f.length;++g<I;){var j=sS(x[g],M[g]);if(j){if(g>=R)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,I=f.length,R=-1,j=l.length,Y=mt(M-I,0),H=W(j+Y),X=!g;++R<j;)H[R]=l[R];for(;++x<I;)(X||x<M)&&(H[f[x]]=s[x]);for(;Y--;)H[R++]=s[x++];return H}function aS(s,l,f,g){for(var x=-1,M=s.length,I=-1,R=f.length,j=-1,Y=l.length,H=mt(M-R,0),X=W(H+Y),ce=!g;++x<H;)X[x]=s[x];for(var ge=x;++j<Y;)X[ge+j]=l[j];for(;++I<R;)(ce||x<M)&&(X[ge+f[I]]=s[x++]);return X}function Vt(s,l){var f=-1,g=s.length;for(l||(l=W(g));++f<g;)l[f]=s[f];return l}function Wn(s,l,f,g){var x=!f;f||(f={});for(var M=-1,I=l.length;++M<I;){var R=l[M],j=g?g(f[R],s[R],R,f,s):n;j===n&&(j=s[R]),x?or(f,R,j):Go(f,R,j)}return f}function xF(s,l){return Wn(s,cm(s),l)}function wF(s,l){return Wn(s,xS(s),l)}function Kl(s,l){return function(f,g){var x=Ae(f)?P3:Uj,M=l?l():{};return x(f,s,xe(g,2),M)}}function $s(s){return _e(function(l,f){var g=-1,x=f.length,M=x>1?f[x-1]:n,I=x>2?f[2]:n;for(M=s.length>3&&typeof M=="function"?(x--,M):n,I&&$t(f[0],f[1],I)&&(M=x<3?n:M,x=1),l=Ge(l);++g<x;){var R=f[g];R&&s(l,R,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,I=Ge(f);(l?M--:++M<x)&&g(I[M],M,I)!==!1;);return f}}function cS(s){return function(l,f,g){for(var x=-1,M=Ge(l),I=g(l),R=I.length;R--;){var j=I[s?R:++x];if(f(M[j],j,M)===!1)break}return l}}function SF(s,l,f){var g=l&T,x=Xo(s);function M(){var I=this&&this!==bt&&this instanceof M?x:s;return I.apply(g?f:this,arguments)}return M}function uS(s){return function(l){l=Be(l);var f=Cs(l)?wn(l):n,g=f?f[0]:l.charAt(0),x=f?Xr(f,1).join(""):l.slice(1);return g[s]()+x}}function Ds(s){return function(l){return Ah(lT(aT(l).replace(d3,"")),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=Is(s.prototype),g=s.apply(f,l);return st(g)?g:f}}function TF(s,l,f){var g=Xo(s);function x(){for(var M=arguments.length,I=W(M),R=M,j=Rs(x);R--;)I[R]=arguments[R];var Y=M<3&&I[0]!==j&&I[M-1]!==j?[]:Gr(I,j);if(M-=Y.length,M<f)return pS(s,l,Xl,x.placeholder,n,I,Y,n,n,f-M);var H=this&&this!==bt&&this instanceof x?g:s;return Kt(H,this,I)}return x}function fS(s){return function(l,f,g){var x=Ge(l);if(!Bt(l)){var M=xe(f,3);l=gt(l),f=function(R){return M(x[R],R,x)}}var I=s(l,f,g);return I>-1?x[M?l[I]:I]: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(a);if(x&&!I&&ec(M)=="wrapper")var I=new dn([],!0)}for(g=I?g:f;++g<f;){M=l[g];var R=ec(M),j=R=="wrapper"?am(M):n;j&&fm(j[0])&&j[1]==(k|P|A|F)&&!j[4].length&&j[9]==1?I=I[ec(j[0])].apply(I,j[3]):I=M.length==1&&fm(M)?I[R]():I.thru(M)}return function(){var Y=arguments,H=Y[0];if(I&&Y.length==1&&Ae(H))return I.plant(H).value();for(var X=0,ce=f?l[X].apply(this,Y):H;++X<f;)ce=l[X].call(this,ce);return ce}})}function Xl(s,l,f,g,x,M,I,R,j,Y){var H=l&k,X=l&T,ce=l&w,ge=l&(P|$),Te=l&z,Oe=ce?n:Xo(s);function Ee(){for(var Re=arguments.length,Le=W(Re),Qt=Re;Qt--;)Le[Qt]=arguments[Qt];if(ge)var Dt=Rs(Ee),en=N3(Le,Dt);if(g&&(Le=oS(Le,g,x,ge)),M&&(Le=aS(Le,M,I,ge)),Re-=en,ge&&Re<Y){var ut=Gr(Le,Dt);return pS(s,l,Xl,Ee.placeholder,f,Le,ut,R,j,Y-Re)}var En=X?f:this,dr=ce?En[s]:s;return Re=Le.length,R?Le=UF(Le,R):Te&&Re>1&&Le.reverse(),H&&j<Re&&(Le.length=j),this&&this!==bt&&this instanceof Ee&&(dr=Oe||Xo(dr)),dr.apply(En,Le)}return Ee}function hS(s,l){return function(f,g){return Zj(f,s,l(g),{})}}function Zl(s,l){return function(f,g){var x;if(f===n&&g===n)return l;if(f!==n&&(x=f),g!==n){if(x===n)return g;typeof f=="string"||typeof g=="string"?(f=Zt(f),g=Zt(g)):(f=J2(f),g=J2(g)),x=s(f,g)}return x}}function rm(s){return lr(function(l){return l=et(l,Xt(xe())),_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/Ps(l)));return Cs(l)?Xr(wn(g),0,s).join(""):g.slice(0,s)}function EF(s,l,f,g){var x=l&T,M=Xo(s);function I(){for(var R=-1,j=arguments.length,Y=-1,H=g.length,X=W(H+j),ce=this&&this!==bt&&this instanceof I?M:s;++Y<H;)X[Y]=g[Y];for(;j--;)X[Y++]=arguments[++R];return Kt(ce,x?f:this,X)}return I}function mS(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),cF(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,I,R,j,Y){var H=l&P,X=H?I:n,ce=H?n:I,ge=H?M:n,Te=H?n:M;l|=H?A:D,l&=~(H?D:A),l&E||(l&=-4);var Oe=[s,l,x,ge,X,Te,ce,R,j,Y],Ee=f.apply(n,Oe);return fm(s)&&AS(Ee,Oe),Ee.placeholder=g,MS(Ee,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 CF=Os&&1/Ml(new Os([,-0]))[1]==V?function(s){return new Os(s)}:Pm;function gS(s){return function(l){var f=Mt(l);return f==De?Rh(l):f==qt?W3(l):R3(l,s(l))}}function ar(s,l,f,g,x,M,I,R){var j=l&w;if(!j&&typeof s!="function")throw new fn(a);var Y=g?g.length:0;if(Y||(l&=-97,g=x=n),I=I===n?I:mt(Me(I),0),R=R===n?R:Me(R),Y-=x?x.length:0,l&D){var H=g,X=x;g=x=n}var ce=j?n:am(s),ge=[s,l,f,g,x,H,X,M,I,R];if(ce&&VF(ge,ce),s=ge[0],l=ge[1],f=ge[2],g=ge[3],x=ge[4],R=ge[9]=ge[9]===n?j?0:s.length:mt(ge[9]-Y,0),!R&&l&(P|$)&&(l&=-25),!l||l==T)var Te=SF(s,l,f);else l==P||l==$?Te=TF(s,l,R):(l==A||l==(T|A))&&!x.length?Te=EF(s,l,f,g):Te=Xl.apply(n,ge);var Oe=ce?X2:AS;return MS(Oe(Te,ge),s,l)}function yS(s,l,f,g){return s===n||Tn(s,Ms[f])&&!ze.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 PF(s){return Qo(s)?n:s}function bS(s,l,f,g,x,M){var I=f&S,R=s.length,j=l.length;if(R!=j&&!(I&&j>R))return!1;var Y=M.get(s),H=M.get(l);if(Y&&H)return Y==l&&H==s;var X=-1,ce=!0,ge=f&b?new Oi:n;for(M.set(s,l),M.set(l,s);++X<R;){var Te=s[X],Oe=l[X];if(g)var Ee=I?g(Oe,Te,X,l,s,M):g(Te,Oe,X,s,l,M);if(Ee!==n){if(Ee)continue;ce=!1;break}if(ge){if(!Mh(l,function(Re,Le){if(!Fo(ge,Le)&&(Te===Re||x(Te,Re,f,g,M)))return ge.push(Le)})){ce=!1;break}}else if(!(Te===Oe||x(Te,Oe,f,g,M))){ce=!1;break}}return M.delete(s),M.delete(l),ce}function AF(s,l,f,g,x,M,I){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 re:case fe:case ft:return Tn(+s,+l);case Ve:return s.name==l.name&&s.message==l.message;case Ei:case bn:return s==l+"";case De:var R=Rh;case qt:var j=g&S;if(R||(R=Ml),s.size!=l.size&&!j)return!1;var Y=I.get(s);if(Y)return Y==l;g|=b,I.set(s,l);var H=bS(R(s),R(l),g,x,M,I);return I.delete(s),H;case Ci:if(zo)return zo.call(s)==zo.call(l)}return!1}function MF(s,l,f,g,x,M){var I=f&S,R=sm(s),j=R.length,Y=sm(l),H=Y.length;if(j!=H&&!I)return!1;for(var X=j;X--;){var ce=R[X];if(!(I?ce in l:ze.call(l,ce)))return!1}var ge=M.get(s),Te=M.get(l);if(ge&&Te)return ge==l&&Te==s;var Oe=!0;M.set(s,l),M.set(l,s);for(var Ee=I;++X<j;){ce=R[X];var Re=s[ce],Le=l[ce];if(g)var Qt=I?g(Le,Re,ce,l,s,M):g(Re,Le,ce,s,l,M);if(!(Qt===n?Re===Le||x(Re,Le,f,g,M):Qt)){Oe=!1;break}Ee||(Ee=ce=="constructor")}if(Oe&&!Ee){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(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=_s[l],g=ze.call(_s,l)?f.length:0;g--;){var x=f[g],M=x.func;if(M==null||M==s)return x.name}return l}function Rs(s){var l=ze.call(C,"placeholder")?C:s;return l.placeholder}function xe(){var s=C.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 LF(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=F3(s,l);return B2(f)?f:n}function OF(s){var l=ze.call(s,Ai),f=s[Ai];try{s[Ai]=n;var g=!0}catch{}var x=$l.call(s);return g&&(l?s[Ai]=f:delete s[Ai]),x}var cm=Lh?function(s){return s==null?[]:(s=Ge(s),Ur(Lh(s),function(l){return P2.call(s,l)}))}:Am,xS=Lh?function(s){for(var l=[];s;)zr(l,cm(s)),s=Nl(s);return l}:Am,Mt=It;(kh&&Mt(new kh(new ArrayBuffer(1)))!=Qe||Bo&&Mt(new Bo)!=De||jh&&Mt(jh.resolve())!=bl||Os&&Mt(new Os)!=qt||Wo&&Mt(new Wo)!=Wr)&&(Mt=function(s){var l=It(s),f=l==dt?s.constructor:n,g=f?Di(f):"";if(g)switch(g){case fj:return Qe;case dj:return De;case hj:return bl;case mj:return qt;case pj:return Wr}return l});function _F(s,l,f){for(var g=-1,x=f.length;++g<x;){var M=f[g],I=M.size;switch(M.type){case"drop":s+=I;break;case"dropRight":l-=I;break;case"take":l=At(l,s+I);break;case"takeRight":s=mt(s,l-I);break}}return{start:s,end:l}}function IF(s){var l=s.match(kk);return l?l[1].split(jk):[]}function wS(s,l,f){l=Kr(l,s);for(var g=-1,x=l.length,M=!1;++g<x;){var I=Un(l[g]);if(!(M=s!=null&&f(s,I)))break;s=s[I]}return M||++g!=x?M:(x=s==null?0:s.length,!!x&&lc(x)&&cr(I,x)&&(Ae(s)||Ri(s)))}function $F(s){var l=s.length,f=new s.constructor(l);return l&&typeof s[0]=="string"&&ze.call(s,"index")&&(f.index=s.index,f.input=s.input),f}function SS(s){return typeof s.constructor=="function"&&!Zo(s)?Is(Nl(s)):{}}function DF(s,l,f){var g=s.constructor;switch(l){case be:return nm(s);case re:case fe:return new g(+s);case Qe:return gF(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 De:return new g;case ft:case bn:return new g(s);case Ei:return yF(s);case qt:return new g;case Ci:return vF(s)}}function RF(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(Lk,`{
632
+ */var f$=mo.exports,Ev;function d$(){return Ev||(Ev=1,function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,p=2,y=4,S=1,b=2,T=1,w=2,E=4,P=8,$=16,A=32,D=64,V=128,j=256,U=512,X=30,ne="...",oe=800,ge=16,ue=1,fe=2,he=3,F=1/0,B=9007199254740991,G=17976931348623157e292,O=NaN,N=4294967295,K=N-1,ae=N>>>1,J=[["ary",V],["bind",T],["bindKey",w],["curry",P],["curryRight",$],["flip",U],["partial",A],["partialRight",D],["rearg",j]],q="[object Arguments]",Q="[object Array]",le="[object AsyncFunction]",re="[object Boolean]",de="[object Date]",Ce="[object DOMException]",Ve="[object Error]",ie="[object Function]",pe="[object GeneratorFunction]",De="[object Map]",ft="[object Number]",Ti="[object Null]",dt="[object Object]",bl="[object Promise]",xl="[object Proxy]",Ei="[object RegExp]",qt="[object Set]",bn="[object String]",Ci="[object Symbol]",wl="[object Undefined]",Wr="[object WeakMap]",Sl="[object WeakSet]",be="[object ArrayBuffer]",Qe="[object DataView]",Pt="[object Float32Array]",xn="[object Float64Array]",rr="[object Int8Array]",dh="[object Int16Array]",hh="[object Int32Array]",mh="[object Uint8Array]",ph="[object Uint8ClampedArray]",gh="[object Uint16Array]",yh="[object Uint32Array]",CL=/\b__p \+= '';/g,PL=/\b(__p \+=) '' \+/g,AL=/(__e\(.*?\)|\b__t\)) \+\n'';/g,k2=/&(?:amp|lt|gt|quot|#39);/g,j2=/[&<>"']/g,ML=RegExp(k2.source),OL=RegExp(j2.source),_L=/<%-([\s\S]+?)%>/g,IL=/<%([\s\S]+?)%>/g,F2=/<%=([\s\S]+?)%>/g,$L=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,DL=/^\w*$/,RL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vh=/[\\^$.*+?()[\]{}|]/g,NL=RegExp(vh.source),bh=/^\s+/,LL=/\s/,kL=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,jL=/\{\n\/\* \[wrapped with (.+)\] \*/,FL=/,? & /,VL=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,BL=/[()=,{}\[\]\/\s]/,WL=/\\(\\)?/g,UL=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,V2=/\w*$/,zL=/^[-+]0x[0-9a-f]+$/i,GL=/^0b[01]+$/i,YL=/^\[object .+?Constructor\]$/,HL=/^0o[0-7]+$/i,qL=/^(?:0|[1-9]\d*)$/,KL=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tl=/($^)/,XL=/['\n\r\u2028\u2029\\]/g,El="\\ud800-\\udfff",ZL="\\u0300-\\u036f",JL="\\ufe20-\\ufe2f",QL="\\u20d0-\\u20ff",B2=ZL+JL+QL,W2="\\u2700-\\u27bf",U2="a-z\\xdf-\\xf6\\xf8-\\xff",ek="\\xac\\xb1\\xd7\\xf7",tk="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",nk="\\u2000-\\u206f",rk=" \\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",z2="A-Z\\xc0-\\xd6\\xd8-\\xde",G2="\\ufe0e\\ufe0f",Y2=ek+tk+nk+rk,xh="['’]",ik="["+El+"]",H2="["+Y2+"]",Cl="["+B2+"]",q2="\\d+",sk="["+W2+"]",K2="["+U2+"]",X2="[^"+El+Y2+q2+W2+U2+z2+"]",wh="\\ud83c[\\udffb-\\udfff]",ok="(?:"+Cl+"|"+wh+")",Z2="[^"+El+"]",Sh="(?:\\ud83c[\\udde6-\\uddff]){2}",Th="[\\ud800-\\udbff][\\udc00-\\udfff]",Es="["+z2+"]",J2="\\u200d",Q2="(?:"+K2+"|"+X2+")",ak="(?:"+Es+"|"+X2+")",ew="(?:"+xh+"(?:d|ll|m|re|s|t|ve))?",tw="(?:"+xh+"(?:D|LL|M|RE|S|T|VE))?",nw=ok+"?",rw="["+G2+"]?",lk="(?:"+J2+"(?:"+[Z2,Sh,Th].join("|")+")"+rw+nw+")*",ck="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",uk="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",iw=rw+nw+lk,fk="(?:"+[sk,Sh,Th].join("|")+")"+iw,dk="(?:"+[Z2+Cl+"?",Cl,Sh,Th,ik].join("|")+")",hk=RegExp(xh,"g"),mk=RegExp(Cl,"g"),Eh=RegExp(wh+"(?="+wh+")|"+dk+iw,"g"),pk=RegExp([Es+"?"+K2+"+"+ew+"(?="+[H2,Es,"$"].join("|")+")",ak+"+"+tw+"(?="+[H2,Es+Q2,"$"].join("|")+")",Es+"?"+Q2+"+"+ew,Es+"+"+tw,uk,ck,q2,fk].join("|"),"g"),gk=RegExp("["+J2+El+B2+G2+"]"),yk=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,vk=["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"],bk=-1,Je={};Je[Pt]=Je[xn]=Je[rr]=Je[dh]=Je[hh]=Je[mh]=Je[ph]=Je[gh]=Je[yh]=!0,Je[q]=Je[Q]=Je[be]=Je[re]=Je[Qe]=Je[de]=Je[Ve]=Je[ie]=Je[De]=Je[ft]=Je[dt]=Je[Ei]=Je[qt]=Je[bn]=Je[Wr]=!1;var Ke={};Ke[q]=Ke[Q]=Ke[be]=Ke[Qe]=Ke[re]=Ke[de]=Ke[Pt]=Ke[xn]=Ke[rr]=Ke[dh]=Ke[hh]=Ke[De]=Ke[ft]=Ke[dt]=Ke[Ei]=Ke[qt]=Ke[bn]=Ke[Ci]=Ke[mh]=Ke[ph]=Ke[gh]=Ke[yh]=!0,Ke[Ve]=Ke[ie]=Ke[Wr]=!1;var xk={À:"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"},wk={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Sk={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Tk={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ek=parseFloat,Ck=parseInt,sw=typeof ea=="object"&&ea&&ea.Object===Object&&ea,Pk=typeof self=="object"&&self&&self.Object===Object&&self,bt=sw||Pk||Function("return this")(),Ch=t&&!t.nodeType&&t,Pi=Ch&&!0&&e&&!e.nodeType&&e,ow=Pi&&Pi.exports===Ch,Ph=ow&&sw.process,cn=function(){try{var L=Pi&&Pi.require&&Pi.require("util").types;return L||Ph&&Ph.binding&&Ph.binding("util")}catch{}}(),aw=cn&&cn.isArrayBuffer,lw=cn&&cn.isDate,cw=cn&&cn.isMap,uw=cn&&cn.isRegExp,fw=cn&&cn.isSet,dw=cn&&cn.isTypedArray;function Kt(L,z,W){switch(W.length){case 0:return L.call(z);case 1:return L.call(z,W[0]);case 2:return L.call(z,W[0],W[1]);case 3:return L.call(z,W[0],W[1],W[2])}return L.apply(z,W)}function Ak(L,z,W,me){for(var Pe=-1,ke=L==null?0:L.length;++Pe<ke;){var ht=L[Pe];z(me,ht,W(ht),L)}return me}function un(L,z){for(var W=-1,me=L==null?0:L.length;++W<me&&z(L[W],W,L)!==!1;);return L}function Mk(L,z){for(var W=L==null?0:L.length;W--&&z(L[W],W,L)!==!1;);return L}function hw(L,z){for(var W=-1,me=L==null?0:L.length;++W<me;)if(!z(L[W],W,L))return!1;return!0}function Ur(L,z){for(var W=-1,me=L==null?0:L.length,Pe=0,ke=[];++W<me;){var ht=L[W];z(ht,W,L)&&(ke[Pe++]=ht)}return ke}function Pl(L,z){var W=L==null?0:L.length;return!!W&&Cs(L,z,0)>-1}function Ah(L,z,W){for(var me=-1,Pe=L==null?0:L.length;++me<Pe;)if(W(z,L[me]))return!0;return!1}function et(L,z){for(var W=-1,me=L==null?0:L.length,Pe=Array(me);++W<me;)Pe[W]=z(L[W],W,L);return Pe}function zr(L,z){for(var W=-1,me=z.length,Pe=L.length;++W<me;)L[Pe+W]=z[W];return L}function Mh(L,z,W,me){var Pe=-1,ke=L==null?0:L.length;for(me&&ke&&(W=L[++Pe]);++Pe<ke;)W=z(W,L[Pe],Pe,L);return W}function Ok(L,z,W,me){var Pe=L==null?0:L.length;for(me&&Pe&&(W=L[--Pe]);Pe--;)W=z(W,L[Pe],Pe,L);return W}function Oh(L,z){for(var W=-1,me=L==null?0:L.length;++W<me;)if(z(L[W],W,L))return!0;return!1}var _k=_h("length");function Ik(L){return L.split("")}function $k(L){return L.match(VL)||[]}function mw(L,z,W){var me;return W(L,function(Pe,ke,ht){if(z(Pe,ke,ht))return me=ke,!1}),me}function Al(L,z,W,me){for(var Pe=L.length,ke=W+(me?1:-1);me?ke--:++ke<Pe;)if(z(L[ke],ke,L))return ke;return-1}function Cs(L,z,W){return z===z?zk(L,z,W):Al(L,pw,W)}function Dk(L,z,W,me){for(var Pe=W-1,ke=L.length;++Pe<ke;)if(me(L[Pe],z))return Pe;return-1}function pw(L){return L!==L}function gw(L,z){var W=L==null?0:L.length;return W?$h(L,z)/W:O}function _h(L){return function(z){return z==null?n:z[L]}}function Ih(L){return function(z){return L==null?n:L[z]}}function yw(L,z,W,me,Pe){return Pe(L,function(ke,ht,Ge){W=me?(me=!1,ke):z(W,ke,ht,Ge)}),W}function Rk(L,z){var W=L.length;for(L.sort(z);W--;)L[W]=L[W].value;return L}function $h(L,z){for(var W,me=-1,Pe=L.length;++me<Pe;){var ke=z(L[me]);ke!==n&&(W=W===n?ke:W+ke)}return W}function Dh(L,z){for(var W=-1,me=Array(L);++W<L;)me[W]=z(W);return me}function Nk(L,z){return et(z,function(W){return[W,L[W]]})}function vw(L){return L&&L.slice(0,Sw(L)+1).replace(bh,"")}function Xt(L){return function(z){return L(z)}}function Rh(L,z){return et(z,function(W){return L[W]})}function Fo(L,z){return L.has(z)}function bw(L,z){for(var W=-1,me=L.length;++W<me&&Cs(z,L[W],0)>-1;);return W}function xw(L,z){for(var W=L.length;W--&&Cs(z,L[W],0)>-1;);return W}function Lk(L,z){for(var W=L.length,me=0;W--;)L[W]===z&&++me;return me}var kk=Ih(xk),jk=Ih(wk);function Fk(L){return"\\"+Tk[L]}function Vk(L,z){return L==null?n:L[z]}function Ps(L){return gk.test(L)}function Bk(L){return yk.test(L)}function Wk(L){for(var z,W=[];!(z=L.next()).done;)W.push(z.value);return W}function Nh(L){var z=-1,W=Array(L.size);return L.forEach(function(me,Pe){W[++z]=[Pe,me]}),W}function ww(L,z){return function(W){return L(z(W))}}function Gr(L,z){for(var W=-1,me=L.length,Pe=0,ke=[];++W<me;){var ht=L[W];(ht===z||ht===h)&&(L[W]=h,ke[Pe++]=W)}return ke}function Ml(L){var z=-1,W=Array(L.size);return L.forEach(function(me){W[++z]=me}),W}function Uk(L){var z=-1,W=Array(L.size);return L.forEach(function(me){W[++z]=[me,me]}),W}function zk(L,z,W){for(var me=W-1,Pe=L.length;++me<Pe;)if(L[me]===z)return me;return-1}function Gk(L,z,W){for(var me=W+1;me--;)if(L[me]===z)return me;return me}function As(L){return Ps(L)?Hk(L):_k(L)}function wn(L){return Ps(L)?qk(L):Ik(L)}function Sw(L){for(var z=L.length;z--&&LL.test(L.charAt(z)););return z}var Yk=Ih(Sk);function Hk(L){for(var z=Eh.lastIndex=0;Eh.test(L);)++z;return z}function qk(L){return L.match(Eh)||[]}function Kk(L){return L.match(pk)||[]}var Xk=function L(z){z=z==null?bt:Ms.defaults(bt.Object(),z,Ms.pick(bt,vk));var W=z.Array,me=z.Date,Pe=z.Error,ke=z.Function,ht=z.Math,Ge=z.Object,Lh=z.RegExp,Zk=z.String,fn=z.TypeError,Ol=W.prototype,Jk=ke.prototype,Os=Ge.prototype,_l=z["__core-js_shared__"],Il=Jk.toString,ze=Os.hasOwnProperty,Qk=0,Tw=function(){var s=/[^.]+$/.exec(_l&&_l.keys&&_l.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),$l=Os.toString,ej=Il.call(Ge),tj=bt._,nj=Lh("^"+Il.call(ze).replace(vh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dl=ow?z.Buffer:n,Yr=z.Symbol,Rl=z.Uint8Array,Ew=Dl?Dl.allocUnsafe:n,Nl=ww(Ge.getPrototypeOf,Ge),Cw=Ge.create,Pw=Os.propertyIsEnumerable,Ll=Ol.splice,Aw=Yr?Yr.isConcatSpreadable:n,Vo=Yr?Yr.iterator:n,Ai=Yr?Yr.toStringTag:n,kl=function(){try{var s=$i(Ge,"defineProperty");return s({},"",{}),s}catch{}}(),rj=z.clearTimeout!==bt.clearTimeout&&z.clearTimeout,ij=me&&me.now!==bt.Date.now&&me.now,sj=z.setTimeout!==bt.setTimeout&&z.setTimeout,jl=ht.ceil,Fl=ht.floor,kh=Ge.getOwnPropertySymbols,oj=Dl?Dl.isBuffer:n,Mw=z.isFinite,aj=Ol.join,lj=ww(Ge.keys,Ge),mt=ht.max,At=ht.min,cj=me.now,uj=z.parseInt,Ow=ht.random,fj=Ol.reverse,jh=$i(z,"DataView"),Bo=$i(z,"Map"),Fh=$i(z,"Promise"),_s=$i(z,"Set"),Wo=$i(z,"WeakMap"),Uo=$i(Ge,"create"),Vl=Wo&&new Wo,Is={},dj=Di(jh),hj=Di(Bo),mj=Di(Fh),pj=Di(_s),gj=Di(Wo),Bl=Yr?Yr.prototype:n,zo=Bl?Bl.valueOf:n,_w=Bl?Bl.toString:n;function C(s){if(ot(s)&&!Ae(s)&&!(s instanceof Ne)){if(s instanceof dn)return s;if(ze.call(s,"__wrapped__"))return IS(s)}return new dn(s)}var $s=function(){function s(){}return function(l){if(!st(l))return{};if(Cw)return Cw(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}C.templateSettings={escape:_L,evaluate:IL,interpolate:F2,variable:"",imports:{_:C}},C.prototype=Wl.prototype,C.prototype.constructor=C,dn.prototype=$s(Wl.prototype),dn.prototype.constructor=dn;function Ne(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=N,this.__views__=[]}function yj(){var s=new Ne(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 vj(){if(this.__filtered__){var s=new Ne(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function bj(){var s=this.__wrapped__.value(),l=this.__dir__,f=Ae(s),g=l<0,x=f?s.length:0,M=IF(0,x,this.__views__),I=M.start,R=M.end,k=R-I,Y=g?R:I-1,H=this.__iteratees__,Z=H.length,ce=0,ye=At(k,this.__takeCount__);if(!f||!g&&x==k&&ye==k)return eS(s,this.__actions__);var Te=[];e:for(;k--&&ce<ye;){Y+=l;for(var Oe=-1,Ee=s[Y];++Oe<Z;){var Re=H[Oe],Le=Re.iteratee,Qt=Re.type,Dt=Le(Ee);if(Qt==fe)Ee=Dt;else if(!Dt){if(Qt==ue)continue e;break e}}Te[ce++]=Ee}return Te}Ne.prototype=$s(Wl.prototype),Ne.prototype.constructor=Ne;function Mi(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__=Uo?Uo(null):{},this.size=0}function wj(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function Sj(s){var l=this.__data__;if(Uo){var f=l[s];return f===u?n:f}return ze.call(l,s)?l[s]:n}function Tj(s){var l=this.__data__;return Uo?l[s]!==n:ze.call(l,s)}function Ej(s,l){var f=this.__data__;return this.size+=this.has(s)?0:1,f[s]=Uo&&l===n?u:l,this}Mi.prototype.clear=xj,Mi.prototype.delete=wj,Mi.prototype.get=Sj,Mi.prototype.has=Tj,Mi.prototype.set=Ej;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 Cj(){this.__data__=[],this.size=0}function Pj(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 Aj(s){var l=this.__data__,f=Ul(l,s);return f<0?n:l[f][1]}function Mj(s){return Ul(this.__data__,s)>-1}function Oj(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=Cj,ir.prototype.delete=Pj,ir.prototype.get=Aj,ir.prototype.has=Mj,ir.prototype.set=Oj;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 _j(){this.size=0,this.__data__={hash:new Mi,map:new(Bo||ir),string:new Mi}}function Ij(s){var l=tc(this,s).delete(s);return this.size-=l?1:0,l}function $j(s){return tc(this,s).get(s)}function Dj(s){return tc(this,s).has(s)}function Rj(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=_j,sr.prototype.delete=Ij,sr.prototype.get=$j,sr.prototype.has=Dj,sr.prototype.set=Rj;function Oi(s){var l=-1,f=s==null?0:s.length;for(this.__data__=new sr;++l<f;)this.add(s[l])}function Nj(s){return this.__data__.set(s,u),this}function Lj(s){return this.__data__.has(s)}Oi.prototype.add=Oi.prototype.push=Nj,Oi.prototype.has=Lj;function Sn(s){var l=this.__data__=new ir(s);this.size=l.size}function kj(){this.__data__=new ir,this.size=0}function jj(s){var l=this.__data__,f=l.delete(s);return this.size=l.size,f}function Fj(s){return this.__data__.get(s)}function Vj(s){return this.__data__.has(s)}function Bj(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=kj,Sn.prototype.delete=jj,Sn.prototype.get=Fj,Sn.prototype.has=Vj,Sn.prototype.set=Bj;function Iw(s,l){var f=Ae(s),g=!f&&Ri(s),x=!f&&!g&&Zr(s),M=!f&&!g&&!x&&Ls(s),I=f||g||x||M,R=I?Dh(s.length,Zk):[],k=R.length;for(var Y in s)(l||ze.call(s,Y))&&!(I&&(Y=="length"||x&&(Y=="offset"||Y=="parent")||M&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||cr(Y,k)))&&R.push(Y);return R}function $w(s){var l=s.length;return l?s[Xh(0,l-1)]:n}function Wj(s,l){return nc(Vt(s),_i(l,0,s.length))}function Uj(s){return nc(Vt(s))}function Vh(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];(!(ze.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 zj(s,l,f,g){return Hr(s,function(x,M,I){l(g,x,f(x),I)}),g}function Dw(s,l){return s&&Wn(l,gt(l),s)}function Gj(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 Bh(s,l){for(var f=-1,g=l.length,x=W(g),M=s==null;++f<g;)x[f]=M?n:wm(s,l[f]);return x}function _i(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 I,R=l&m,k=l&p,Y=l&y;if(f&&(I=x?f(s,g,x,M):f(s)),I!==n)return I;if(!st(s))return s;var H=Ae(s);if(H){if(I=DF(s),!R)return Vt(s,I)}else{var Z=Mt(s),ce=Z==ie||Z==pe;if(Zr(s))return rS(s,R);if(Z==dt||Z==q||ce&&!x){if(I=k||ce?{}:SS(s),!R)return k?SF(s,Gj(I,s)):wF(s,Dw(I,s))}else{if(!Ke[Z])return x?s:{};I=RF(s,Z,R)}}M||(M=new Sn);var ye=M.get(s);if(ye)return ye;M.set(s,I),ZS(s)?s.forEach(function(Ee){I.add(hn(Ee,l,f,Ee,s,M))}):KS(s)&&s.forEach(function(Ee,Re){I.set(Re,hn(Ee,l,f,Re,s,M))});var Te=Y?k?am:om:k?Wt:gt,Oe=H?n:Te(s);return un(Oe||s,function(Ee,Re){Oe&&(Re=Ee,Ee=s[Re]),Go(I,Re,hn(Ee,l,f,Re,s,M))}),I}function Yj(s){var l=gt(s);return function(f){return Rw(f,s,l)}}function Rw(s,l,f){var g=f.length;if(s==null)return!g;for(s=Ge(s);g--;){var x=f[g],M=l[x],I=s[x];if(I===n&&!(x in s)||!M(I))return!1}return!0}function Nw(s,l,f){if(typeof s!="function")throw new fn(a);return Jo(function(){s.apply(n,f)},l)}function Yo(s,l,f,g){var x=-1,M=Pl,I=!0,R=s.length,k=[],Y=l.length;if(!R)return k;f&&(l=et(l,Xt(f))),g?(M=Ah,I=!1):l.length>=i&&(M=Fo,I=!1,l=new Oi(l));e:for(;++x<R;){var H=s[x],Z=f==null?H:f(H);if(H=g||H!==0?H:0,I&&Z===Z){for(var ce=Y;ce--;)if(l[ce]===Z)continue e;k.push(H)}else M(l,Z,g)||k.push(H)}return k}var Hr=lS(Bn),Lw=lS(Uh,!0);function Hj(s,l){var f=!0;return Hr(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],I=l(M);if(I!=null&&(R===n?I===I&&!Jt(I):f(I,R)))var R=I,k=M}return k}function qj(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 kw(s,l){var f=[];return Hr(s,function(g,x,M){l(g,x,M)&&f.push(g)}),f}function xt(s,l,f,g,x){var M=-1,I=s.length;for(f||(f=LF),x||(x=[]);++M<I;){var R=s[M];l>0&&f(R)?l>1?xt(R,l-1,f,g,x):zr(x,R):g||(x[x.length]=R)}return x}var Wh=cS(),jw=cS(!0);function Bn(s,l){return s&&Wh(s,l,gt)}function Uh(s,l){return s&&jw(s,l,gt)}function Gl(s,l){return Ur(l,function(f){return ur(s[f])})}function Ii(s,l){l=Kr(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 Fw(s,l,f){var g=l(s);return Ae(s)?g:zr(g,f(s))}function It(s){return s==null?s===n?wl:Ti:Ai&&Ai in Ge(s)?_F(s):UF(s)}function zh(s,l){return s>l}function Kj(s,l){return s!=null&&ze.call(s,l)}function Xj(s,l){return s!=null&&l in Ge(s)}function Zj(s,l,f){return s>=At(l,f)&&s<mt(l,f)}function Gh(s,l,f){for(var g=f?Ah:Pl,x=s[0].length,M=s.length,I=M,R=W(M),k=1/0,Y=[];I--;){var H=s[I];I&&l&&(H=et(H,Xt(l))),k=At(H.length,k),R[I]=!f&&(l||x>=120&&H.length>=120)?new Oi(I&&H):n}H=s[0];var Z=-1,ce=R[0];e:for(;++Z<x&&Y.length<k;){var ye=H[Z],Te=l?l(ye):ye;if(ye=f||ye!==0?ye:0,!(ce?Fo(ce,Te):g(Y,Te,f))){for(I=M;--I;){var Oe=R[I];if(!(Oe?Fo(Oe,Te):g(s[I],Te,f)))continue e}ce&&ce.push(Te),Y.push(ye)}}return Y}function Jj(s,l,f,g){return Bn(s,function(x,M,I){l(g,f(x),M,I)}),g}function Ho(s,l,f){l=Kr(l,s),s=PS(s,l);var g=s==null?s:s[Un(pn(l))];return g==null?n:Kt(g,s,f)}function Vw(s){return ot(s)&&It(s)==q}function Qj(s){return ot(s)&&It(s)==be}function eF(s){return ot(s)&&It(s)==de}function qo(s,l,f,g,x){return s===l?!0:s==null||l==null||!ot(s)&&!ot(l)?s!==s&&l!==l:tF(s,l,f,g,qo,x)}function tF(s,l,f,g,x,M){var I=Ae(s),R=Ae(l),k=I?Q:Mt(s),Y=R?Q:Mt(l);k=k==q?dt:k,Y=Y==q?dt:Y;var H=k==dt,Z=Y==dt,ce=k==Y;if(ce&&Zr(s)){if(!Zr(l))return!1;I=!0,H=!1}if(ce&&!H)return M||(M=new Sn),I||Ls(s)?bS(s,l,f,g,x,M):MF(s,l,k,f,g,x,M);if(!(f&S)){var ye=H&&ze.call(s,"__wrapped__"),Te=Z&&ze.call(l,"__wrapped__");if(ye||Te){var Oe=ye?s.value():s,Ee=Te?l.value():l;return M||(M=new Sn),x(Oe,Ee,f,g,M)}}return ce?(M||(M=new Sn),OF(s,l,f,g,x,M)):!1}function nF(s){return ot(s)&&Mt(s)==De}function Yh(s,l,f,g){var x=f.length,M=x,I=!g;if(s==null)return!M;for(s=Ge(s);x--;){var R=f[x];if(I&&R[2]?R[1]!==s[R[0]]:!(R[0]in s))return!1}for(;++x<M;){R=f[x];var k=R[0],Y=s[k],H=R[1];if(I&&R[2]){if(Y===n&&!(k in s))return!1}else{var Z=new Sn;if(g)var ce=g(Y,H,k,s,l,Z);if(!(ce===n?qo(H,Y,S|b,g,Z):ce))return!1}}return!0}function Bw(s){if(!st(s)||jF(s))return!1;var l=ur(s)?nj:YL;return l.test(Di(s))}function rF(s){return ot(s)&&It(s)==Ei}function iF(s){return ot(s)&&Mt(s)==qt}function sF(s){return ot(s)&&lc(s.length)&&!!Je[It(s)]}function Ww(s){return typeof s=="function"?s:s==null?Ut:typeof s=="object"?Ae(s)?Gw(s[0],s[1]):zw(s):uT(s)}function Hh(s){if(!Zo(s))return lj(s);var l=[];for(var f in Ge(s))ze.call(s,f)&&f!="constructor"&&l.push(f);return l}function oF(s){if(!st(s))return WF(s);var l=Zo(s),f=[];for(var g in s)g=="constructor"&&(l||!ze.call(s,g))||f.push(g);return f}function qh(s,l){return s<l}function Uw(s,l){var f=-1,g=Bt(s)?W(s.length):[];return Hr(s,function(x,M,I){g[++f]=l(x,M,I)}),g}function zw(s){var l=cm(s);return l.length==1&&l[0][2]?ES(l[0][0],l[0][1]):function(f){return f===s||Yh(f,s,l)}}function Gw(s,l){return fm(s)&&TS(l)?ES(Un(s),l):function(f){var g=wm(f,s);return g===n&&g===l?Sm(f,s):qo(l,g,S|b)}}function Yl(s,l,f,g,x){s!==l&&Wh(l,function(M,I){if(x||(x=new Sn),st(M))aF(s,l,I,f,Yl,g,x);else{var R=g?g(hm(s,I),M,I+"",s,l,x):n;R===n&&(R=M),Vh(s,I,R)}},Wt)}function aF(s,l,f,g,x,M,I){var R=hm(s,f),k=hm(l,f),Y=I.get(k);if(Y){Vh(s,f,Y);return}var H=M?M(R,k,f+"",s,l,I):n,Z=H===n;if(Z){var ce=Ae(k),ye=!ce&&Zr(k),Te=!ce&&!ye&&Ls(k);H=k,ce||ye||Te?Ae(R)?H=R:ct(R)?H=Vt(R):ye?(Z=!1,H=rS(k,!0)):Te?(Z=!1,H=iS(k,!0)):H=[]:Qo(k)||Ri(k)?(H=R,Ri(R)?H=eT(R):(!st(R)||ur(R))&&(H=SS(k))):Z=!1}Z&&(I.set(k,H),x(H,k,g,M,I),I.delete(k)),Vh(s,f,H)}function Yw(s,l){var f=s.length;if(f)return l+=l<0?f:0,cr(l,f)?s[l]:n}function Hw(s,l,f){l.length?l=et(l,function(M){return Ae(M)?function(I){return Ii(I,M.length===1?M[0]:M)}:M}):l=[Ut];var g=-1;l=et(l,Xt(xe()));var x=Uw(s,function(M,I,R){var k=et(l,function(Y){return Y(M)});return{criteria:k,index:++g,value:M}});return Rk(x,function(M,I){return xF(M,I,f)})}function lF(s,l){return qw(s,l,function(f,g){return Sm(s,g)})}function qw(s,l,f){for(var g=-1,x=l.length,M={};++g<x;){var I=l[g],R=Ii(s,I);f(R,I)&&Ko(M,Kr(I,s),R)}return M}function cF(s){return function(l){return Ii(l,s)}}function Kh(s,l,f,g){var x=g?Dk:Cs,M=-1,I=l.length,R=s;for(s===l&&(l=Vt(l)),f&&(R=et(s,Xt(f)));++M<I;)for(var k=0,Y=l[M],H=f?f(Y):Y;(k=x(R,H,k,g))>-1;)R!==s&&Ll.call(R,k,1),Ll.call(s,k,1);return s}function Kw(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):Qh(s,x)}}return s}function Xh(s,l){return s+Fl(Ow()*(l-s+1))}function uF(s,l,f,g){for(var x=-1,M=mt(jl((l-s)/(f||1)),0),I=W(M);M--;)I[g?M:++x]=s,s+=f;return I}function Zh(s,l){var f="";if(!s||l<1||l>B)return f;do l%2&&(f+=s),l=Fl(l/2),l&&(s+=s);while(l);return f}function Ie(s,l){return mm(CS(s,l,Ut),s+"")}function fF(s){return $w(ks(s))}function dF(s,l){var f=ks(s);return nc(f,_i(l,0,f.length))}function Ko(s,l,f,g){if(!st(s))return s;l=Kr(l,s);for(var x=-1,M=l.length,I=M-1,R=s;R!=null&&++x<M;){var k=Un(l[x]),Y=f;if(k==="__proto__"||k==="constructor"||k==="prototype")return s;if(x!=I){var H=R[k];Y=g?g(H,k,R):n,Y===n&&(Y=st(H)?H:cr(l[x+1])?[]:{})}Go(R,k,Y),R=R[k]}return s}var Xw=Vl?function(s,l){return Vl.set(s,l),s}:Ut,hF=kl?function(s,l){return kl(s,"toString",{configurable:!0,enumerable:!1,value:Em(l),writable:!0})}:Ut;function mF(s){return nc(ks(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=W(x);++g<x;)M[g]=s[g+l];return M}function pF(s,l){var f;return Hr(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<=ae){for(;g<x;){var M=g+x>>>1,I=s[M];I!==null&&!Jt(I)&&(f?I<=l:I<l)?g=M+1:x=M}return x}return Jh(s,l,Ut,f)}function Jh(s,l,f,g){var x=0,M=s==null?0:s.length;if(M===0)return 0;l=f(l);for(var I=l!==l,R=l===null,k=Jt(l),Y=l===n;x<M;){var H=Fl((x+M)/2),Z=f(s[H]),ce=Z!==n,ye=Z===null,Te=Z===Z,Oe=Jt(Z);if(I)var Ee=g||Te;else Y?Ee=Te&&(g||ce):R?Ee=Te&&ce&&(g||!ye):k?Ee=Te&&ce&&!ye&&(g||!Oe):ye||Oe?Ee=!1:Ee=g?Z<=l:Z<l;Ee?x=H+1:M=H}return At(M,K)}function Zw(s,l){for(var f=-1,g=s.length,x=0,M=[];++f<g;){var I=s[f],R=l?l(I):I;if(!f||!Tn(R,k)){var k=R;M[x++]=I===0?0:I}}return M}function Jw(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 _w?_w.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function qr(s,l,f){var g=-1,x=Pl,M=s.length,I=!0,R=[],k=R;if(f)I=!1,x=Ah;else if(M>=i){var Y=l?null:PF(s);if(Y)return Ml(Y);I=!1,x=Fo,k=new Oi}else k=l?[]:R;e:for(;++g<M;){var H=s[g],Z=l?l(H):H;if(H=f||H!==0?H:0,I&&Z===Z){for(var ce=k.length;ce--;)if(k[ce]===Z)continue e;l&&k.push(Z),R.push(H)}else x(k,Z,f)||(k!==R&&k.push(Z),R.push(H))}return R}function Qh(s,l){return l=Kr(l,s),s=PS(s,l),s==null||delete s[Un(pn(l))]}function Qw(s,l,f,g){return Ko(s,l,f(Ii(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 Ne&&(f=f.value()),Mh(l,function(g,x){return x.func.apply(x.thisArg,zr([g],x.args))},f)}function em(s,l,f){var g=s.length;if(g<2)return g?qr(s[0]):[];for(var x=-1,M=W(g);++x<g;)for(var I=s[x],R=-1;++R<g;)R!=x&&(M[x]=Yo(M[x]||I,s[R],l,f));return qr(xt(M,1),l,f)}function tS(s,l,f){for(var g=-1,x=s.length,M=l.length,I={};++g<x;){var R=g<M?l[g]:n;f(I,s[g],R)}return I}function tm(s){return ct(s)?s:[]}function nm(s){return typeof s=="function"?s:Ut}function Kr(s,l){return Ae(s)?s:fm(s,l)?[s]:_S(Be(s))}var gF=Ie;function Xr(s,l,f){var g=s.length;return f=f===n?g:f,!l&&f>=g?s:mn(s,l,f)}var nS=rj||function(s){return bt.clearTimeout(s)};function rS(s,l){if(l)return s.slice();var f=s.length,g=Ew?Ew(f):new s.constructor(f);return s.copy(g),g}function rm(s){var l=new s.constructor(s.byteLength);return new Rl(l).set(new Rl(s)),l}function yF(s,l){var f=l?rm(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function vF(s){var l=new s.constructor(s.source,V2.exec(s));return l.lastIndex=s.lastIndex,l}function bF(s){return zo?Ge(zo.call(s)):{}}function iS(s,l){var f=l?rm(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),I=l!==n,R=l===null,k=l===l,Y=Jt(l);if(!R&&!Y&&!M&&s>l||M&&I&&k&&!R&&!Y||g&&I&&k||!f&&k||!x)return 1;if(!g&&!M&&!Y&&s<l||Y&&f&&x&&!g&&!M||R&&f&&x||!I&&x||!k)return-1}return 0}function xF(s,l,f){for(var g=-1,x=s.criteria,M=l.criteria,I=x.length,R=f.length;++g<I;){var k=sS(x[g],M[g]);if(k){if(g>=R)return k;var Y=f[g];return k*(Y=="desc"?-1:1)}}return s.index-l.index}function oS(s,l,f,g){for(var x=-1,M=s.length,I=f.length,R=-1,k=l.length,Y=mt(M-I,0),H=W(k+Y),Z=!g;++R<k;)H[R]=l[R];for(;++x<I;)(Z||x<M)&&(H[f[x]]=s[x]);for(;Y--;)H[R++]=s[x++];return H}function aS(s,l,f,g){for(var x=-1,M=s.length,I=-1,R=f.length,k=-1,Y=l.length,H=mt(M-R,0),Z=W(H+Y),ce=!g;++x<H;)Z[x]=s[x];for(var ye=x;++k<Y;)Z[ye+k]=l[k];for(;++I<R;)(ce||x<M)&&(Z[ye+f[I]]=s[x++]);return Z}function Vt(s,l){var f=-1,g=s.length;for(l||(l=W(g));++f<g;)l[f]=s[f];return l}function Wn(s,l,f,g){var x=!f;f||(f={});for(var M=-1,I=l.length;++M<I;){var R=l[M],k=g?g(f[R],s[R],R,f,s):n;k===n&&(k=s[R]),x?or(f,R,k):Go(f,R,k)}return f}function wF(s,l){return Wn(s,um(s),l)}function SF(s,l){return Wn(s,xS(s),l)}function Kl(s,l){return function(f,g){var x=Ae(f)?Ak:zj,M=l?l():{};return x(f,s,xe(g,2),M)}}function Ds(s){return Ie(function(l,f){var g=-1,x=f.length,M=x>1?f[x-1]:n,I=x>2?f[2]:n;for(M=s.length>3&&typeof M=="function"?(x--,M):n,I&&$t(f[0],f[1],I)&&(M=x<3?n:M,x=1),l=Ge(l);++g<x;){var R=f[g];R&&s(l,R,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,I=Ge(f);(l?M--:++M<x)&&g(I[M],M,I)!==!1;);return f}}function cS(s){return function(l,f,g){for(var x=-1,M=Ge(l),I=g(l),R=I.length;R--;){var k=I[s?R:++x];if(f(M[k],k,M)===!1)break}return l}}function TF(s,l,f){var g=l&T,x=Xo(s);function M(){var I=this&&this!==bt&&this instanceof M?x:s;return I.apply(g?f:this,arguments)}return M}function uS(s){return function(l){l=Be(l);var f=Ps(l)?wn(l):n,g=f?f[0]:l.charAt(0),x=f?Xr(f,1).join(""):l.slice(1);return g[s]()+x}}function Rs(s){return function(l){return Mh(lT(aT(l).replace(hk,"")),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 EF(s,l,f){var g=Xo(s);function x(){for(var M=arguments.length,I=W(M),R=M,k=Ns(x);R--;)I[R]=arguments[R];var Y=M<3&&I[0]!==k&&I[M-1]!==k?[]:Gr(I,k);if(M-=Y.length,M<f)return pS(s,l,Xl,x.placeholder,n,I,Y,n,n,f-M);var H=this&&this!==bt&&this instanceof x?g:s;return Kt(H,this,I)}return x}function fS(s){return function(l,f,g){var x=Ge(l);if(!Bt(l)){var M=xe(f,3);l=gt(l),f=function(R){return M(x[R],R,x)}}var I=s(l,f,g);return I>-1?x[M?l[I]:I]: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(a);if(x&&!I&&ec(M)=="wrapper")var I=new dn([],!0)}for(g=I?g:f;++g<f;){M=l[g];var R=ec(M),k=R=="wrapper"?lm(M):n;k&&dm(k[0])&&k[1]==(V|P|A|j)&&!k[4].length&&k[9]==1?I=I[ec(k[0])].apply(I,k[3]):I=M.length==1&&dm(M)?I[R]():I.thru(M)}return function(){var Y=arguments,H=Y[0];if(I&&Y.length==1&&Ae(H))return I.plant(H).value();for(var Z=0,ce=f?l[Z].apply(this,Y):H;++Z<f;)ce=l[Z].call(this,ce);return ce}})}function Xl(s,l,f,g,x,M,I,R,k,Y){var H=l&V,Z=l&T,ce=l&w,ye=l&(P|$),Te=l&U,Oe=ce?n:Xo(s);function Ee(){for(var Re=arguments.length,Le=W(Re),Qt=Re;Qt--;)Le[Qt]=arguments[Qt];if(ye)var Dt=Ns(Ee),en=Lk(Le,Dt);if(g&&(Le=oS(Le,g,x,ye)),M&&(Le=aS(Le,M,I,ye)),Re-=en,ye&&Re<Y){var ut=Gr(Le,Dt);return pS(s,l,Xl,Ee.placeholder,f,Le,ut,R,k,Y-Re)}var En=Z?f:this,dr=ce?En[s]:s;return Re=Le.length,R?Le=zF(Le,R):Te&&Re>1&&Le.reverse(),H&&k<Re&&(Le.length=k),this&&this!==bt&&this instanceof Ee&&(dr=Oe||Xo(dr)),dr.apply(En,Le)}return Ee}function hS(s,l){return function(f,g){return Jj(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=Jw(f),g=Jw(g)),x=s(f,g)}return x}}function im(s){return lr(function(l){return l=et(l,Xt(xe())),Ie(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?Zh(l,s):l;var g=Zh(l,jl(s/As(l)));return Ps(l)?Xr(wn(g),0,s).join(""):g.slice(0,s)}function CF(s,l,f,g){var x=l&T,M=Xo(s);function I(){for(var R=-1,k=arguments.length,Y=-1,H=g.length,Z=W(H+k),ce=this&&this!==bt&&this instanceof I?M:s;++Y<H;)Z[Y]=g[Y];for(;k--;)Z[Y++]=arguments[++R];return Kt(ce,x?f:this,Z)}return I}function mS(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),uF(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,I,R,k,Y){var H=l&P,Z=H?I:n,ce=H?n:I,ye=H?M:n,Te=H?n:M;l|=H?A:D,l&=~(H?D:A),l&E||(l&=-4);var Oe=[s,l,x,ye,Z,Te,ce,R,k,Y],Ee=f.apply(n,Oe);return dm(s)&&AS(Ee,Oe),Ee.placeholder=g,MS(Ee,s,l)}function sm(s){var l=ht[s];return function(f,g){if(f=gn(f),g=g==null?0:At(Me(g),292),g&&Mw(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 PF=_s&&1/Ml(new _s([,-0]))[1]==F?function(s){return new _s(s)}:Am;function gS(s){return function(l){var f=Mt(l);return f==De?Nh(l):f==qt?Uk(l):Nk(l,s(l))}}function ar(s,l,f,g,x,M,I,R){var k=l&w;if(!k&&typeof s!="function")throw new fn(a);var Y=g?g.length:0;if(Y||(l&=-97,g=x=n),I=I===n?I:mt(Me(I),0),R=R===n?R:Me(R),Y-=x?x.length:0,l&D){var H=g,Z=x;g=x=n}var ce=k?n:lm(s),ye=[s,l,f,g,x,H,Z,M,I,R];if(ce&&BF(ye,ce),s=ye[0],l=ye[1],f=ye[2],g=ye[3],x=ye[4],R=ye[9]=ye[9]===n?k?0:s.length:mt(ye[9]-Y,0),!R&&l&(P|$)&&(l&=-25),!l||l==T)var Te=TF(s,l,f);else l==P||l==$?Te=EF(s,l,R):(l==A||l==(T|A))&&!x.length?Te=CF(s,l,f,g):Te=Xl.apply(n,ye);var Oe=ce?Xw:AS;return MS(Oe(Te,ye),s,l)}function yS(s,l,f,g){return s===n||Tn(s,Os[f])&&!ze.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 AF(s){return Qo(s)?n:s}function bS(s,l,f,g,x,M){var I=f&S,R=s.length,k=l.length;if(R!=k&&!(I&&k>R))return!1;var Y=M.get(s),H=M.get(l);if(Y&&H)return Y==l&&H==s;var Z=-1,ce=!0,ye=f&b?new Oi:n;for(M.set(s,l),M.set(l,s);++Z<R;){var Te=s[Z],Oe=l[Z];if(g)var Ee=I?g(Oe,Te,Z,l,s,M):g(Te,Oe,Z,s,l,M);if(Ee!==n){if(Ee)continue;ce=!1;break}if(ye){if(!Oh(l,function(Re,Le){if(!Fo(ye,Le)&&(Te===Re||x(Te,Re,f,g,M)))return ye.push(Le)})){ce=!1;break}}else if(!(Te===Oe||x(Te,Oe,f,g,M))){ce=!1;break}}return M.delete(s),M.delete(l),ce}function MF(s,l,f,g,x,M,I){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 re:case de:case ft:return Tn(+s,+l);case Ve:return s.name==l.name&&s.message==l.message;case Ei:case bn:return s==l+"";case De:var R=Nh;case qt:var k=g&S;if(R||(R=Ml),s.size!=l.size&&!k)return!1;var Y=I.get(s);if(Y)return Y==l;g|=b,I.set(s,l);var H=bS(R(s),R(l),g,x,M,I);return I.delete(s),H;case Ci:if(zo)return zo.call(s)==zo.call(l)}return!1}function OF(s,l,f,g,x,M){var I=f&S,R=om(s),k=R.length,Y=om(l),H=Y.length;if(k!=H&&!I)return!1;for(var Z=k;Z--;){var ce=R[Z];if(!(I?ce in l:ze.call(l,ce)))return!1}var ye=M.get(s),Te=M.get(l);if(ye&&Te)return ye==l&&Te==s;var Oe=!0;M.set(s,l),M.set(l,s);for(var Ee=I;++Z<k;){ce=R[Z];var Re=s[ce],Le=l[ce];if(g)var Qt=I?g(Le,Re,ce,l,s,M):g(Re,Le,ce,s,l,M);if(!(Qt===n?Re===Le||x(Re,Le,f,g,M):Qt)){Oe=!1;break}Ee||(Ee=ce=="constructor")}if(Oe&&!Ee){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 mm(CS(s,n,RS),s+"")}function om(s){return Fw(s,gt,um)}function am(s){return Fw(s,Wt,xS)}var lm=Vl?function(s){return Vl.get(s)}:Am;function ec(s){for(var l=s.name+"",f=Is[l],g=ze.call(Is,l)?f.length:0;g--;){var x=f[g],M=x.func;if(M==null||M==s)return x.name}return l}function Ns(s){var l=ze.call(C,"placeholder")?C:s;return l.placeholder}function xe(){var s=C.iteratee||Cm;return s=s===Cm?Ww:s,arguments.length?s(arguments[0],arguments[1]):s}function tc(s,l){var f=s.__data__;return kF(l)?f[typeof l=="string"?"string":"hash"]:f.map}function cm(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=Vk(s,l);return Bw(f)?f:n}function _F(s){var l=ze.call(s,Ai),f=s[Ai];try{s[Ai]=n;var g=!0}catch{}var x=$l.call(s);return g&&(l?s[Ai]=f:delete s[Ai]),x}var um=kh?function(s){return s==null?[]:(s=Ge(s),Ur(kh(s),function(l){return Pw.call(s,l)}))}:Mm,xS=kh?function(s){for(var l=[];s;)zr(l,um(s)),s=Nl(s);return l}:Mm,Mt=It;(jh&&Mt(new jh(new ArrayBuffer(1)))!=Qe||Bo&&Mt(new Bo)!=De||Fh&&Mt(Fh.resolve())!=bl||_s&&Mt(new _s)!=qt||Wo&&Mt(new Wo)!=Wr)&&(Mt=function(s){var l=It(s),f=l==dt?s.constructor:n,g=f?Di(f):"";if(g)switch(g){case dj:return Qe;case hj:return De;case mj:return bl;case pj:return qt;case gj:return Wr}return l});function IF(s,l,f){for(var g=-1,x=f.length;++g<x;){var M=f[g],I=M.size;switch(M.type){case"drop":s+=I;break;case"dropRight":l-=I;break;case"take":l=At(l,s+I);break;case"takeRight":s=mt(s,l-I);break}}return{start:s,end:l}}function $F(s){var l=s.match(jL);return l?l[1].split(FL):[]}function wS(s,l,f){l=Kr(l,s);for(var g=-1,x=l.length,M=!1;++g<x;){var I=Un(l[g]);if(!(M=s!=null&&f(s,I)))break;s=s[I]}return M||++g!=x?M:(x=s==null?0:s.length,!!x&&lc(x)&&cr(I,x)&&(Ae(s)||Ri(s)))}function DF(s){var l=s.length,f=new s.constructor(l);return l&&typeof s[0]=="string"&&ze.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 RF(s,l,f){var g=s.constructor;switch(l){case be:return rm(s);case re:case de:return new g(+s);case Qe:return yF(s,f);case Pt:case xn:case rr:case dh:case hh:case mh:case ph:case gh:case yh:return iS(s,f);case De:return new g;case ft:case bn:return new g(s);case Ei:return vF(s);case qt:return new g;case Ci:return bF(s)}}function NF(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(kL,`{
633
633
  /* [wrapped with `+l+`] */
634
- `)}function NF(s){return Ae(s)||Ri(s)||!!(A2&&s&&s[A2])}function cr(s,l){var f=typeof s;return l=l??B,!!l&&(f=="number"||f!="symbol"&&Hk.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:$k.test(s)||!Ik.test(s)||l!=null&&s in Ge(l)}function LF(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=C[l];if(typeof f!="function"||!(l in Ne.prototype))return!1;if(s===f)return!0;var g=am(f);return!!g&&s===g[0]}function kF(s){return!!T2&&T2 in s}var jF=_l?ur:Mm;function Zo(s){var l=s&&s.constructor,f=typeof l=="function"&&l.prototype||Ms;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 FF(s){var l=oc(s,function(g){return f.size===d&&f.clear(),g}),f=l.cache;return l}function VF(s,l){var f=s[1],g=l[1],x=f|g,M=x<(T|w|k),I=g==k&&f==P||g==k&&f==F&&s[7].length<=l[8]||g==(k|F)&&l[7].length<=l[8]&&f==P;if(!(M||I))return s;g&T&&(s[2]=l[2],x|=f&T?0:E);var R=l[3];if(R){var j=s[3];s[3]=j?oS(j,R,l[4]):R,s[4]=j?Gr(s[3],h):l[4]}return R=l[5],R&&(j=s[5],s[5]=j?aS(j,R,l[6]):R,s[6]=j?Gr(s[5],h):l[6]),R=l[7],R&&(s[7]=R),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 BF(s){var l=[];if(s!=null)for(var f in Ge(s))l.push(f);return l}function WF(s){return $l.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),I=W(M);++x<M;)I[x]=g[l+x];x=-1;for(var R=W(l+1);++x<l;)R[x]=g[x];return R[l]=f(I),Kt(s,this,R)}}function PS(s,l){return l.length<2?s:Ii(s,mn(l,0,-1))}function UF(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=ij||function(s,l){return bt.setTimeout(s,l)},hm=OS(dF);function MS(s,l,f){var g=l+"";return hm(s,RF(g,zF(IF(g),f)))}function OS(s){var l=0,f=0;return function(){var g=lj(),x=ye-(g-f);if(f=g,x>0){if(++l>=le)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),I=s[M];s[M]=s[f],s[f]=I}return s.length=l,s}var _S=FF(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(Dk,function(f,g,x,M){l.push(x?M.replace(Bk,"$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 Di(s){if(s!=null){try{return Il.call(s)}catch{}try{return s+""}catch{}}return""}function zF(s,l){return un(Z,function(f){var g="_."+f[0];l&f[1]&&!Pl(s,g)&&s.push(g)}),s.sort()}function IS(s){if(s instanceof Ne)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 GF(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,I=W(jl(g/l));x<g;)I[M++]=mn(s,x,x+=l);return I}function YF(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 HF(){var s=arguments.length;if(!s)return[];for(var l=W(s-1),f=arguments[0],g=s;g--;)l[g-1]=arguments[g];return zr(Ae(f)?Vt(f):[f],xt(l,1))}var qF=_e(function(s,l){return ct(s)?Yo(s,xt(l,1,ct,!0)):[]}),KF=_e(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Yo(s,xt(l,1,ct,!0),xe(f,2)):[]}),XF=_e(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Yo(s,xt(l,1,ct,!0),n,f):[]});function ZF(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Me(l),mn(s,l<0?0:l,g)):[]}function JF(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,xe(l,3),!0,!0):[]}function eV(s,l){return s&&s.length?ql(s,xe(l,3),!0):[]}function tV(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),Hj(s,l,f,g)):[]}function $S(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,xe(l,3),x)}function DS(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,xe(l,3),x,!0)}function RS(s){var l=s==null?0:s.length;return l?xt(s,1):[]}function nV(s){var l=s==null?0:s.length;return l?xt(s,V):[]}function rV(s,l){var f=s==null?0:s.length;return f?(l=l===n?1:Me(l),xt(s,l)):[]}function iV(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 sV(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)),Es(s,l,x)}function oV(s){var l=s==null?0:s.length;return l?mn(s,0,-1):[]}var aV=_e(function(s){var l=et(s,em);return l.length&&l[0]===s[0]?zh(l):[]}),lV=_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,xe(l,2)):[]}),cV=_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 uV(s,l){return s==null?"":oj.call(s,l)}function pn(s){var l=s==null?0:s.length;return l?s[l-1]:n}function fV(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?z3(s,l,x):Al(s,p2,x,!0)}function dV(s,l){return s&&s.length?Y2(s,Me(l)):n}var hV=_e(LS);function LS(s,l){return s&&s.length&&l&&l.length?qh(s,l):s}function mV(s,l,f){return s&&s.length&&l&&l.length?qh(s,l,xe(f,2)):s}function pV(s,l,f){return s&&s.length&&l&&l.length?qh(s,l,n,f):s}var gV=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 yV(s,l){var f=[];if(!(s&&s.length))return f;var g=-1,x=[],M=s.length;for(l=xe(l,3);++g<M;){var I=s[g];l(I,g,s)&&(f.push(I),x.push(g))}return K2(s,x),f}function mm(s){return s==null?s:uj.call(s)}function vV(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 bV(s,l){return Hl(s,l)}function xV(s,l,f){return Zh(s,l,xe(f,2))}function wV(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 SV(s,l){return Hl(s,l,!0)}function TV(s,l,f){return Zh(s,l,xe(f,2),!0)}function EV(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 CV(s){return s&&s.length?Z2(s):[]}function PV(s,l){return s&&s.length?Z2(s,xe(l,2)):[]}function AV(s){var l=s==null?0:s.length;return l?mn(s,1,l):[]}function MV(s,l,f){return s&&s.length?(l=f||l===n?1:Me(l),mn(s,0,l<0?0:l)):[]}function OV(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 _V(s,l){return s&&s.length?ql(s,xe(l,3),!1,!0):[]}function IV(s,l){return s&&s.length?ql(s,xe(l,3)):[]}var $V=_e(function(s){return qr(xt(s,1,ct,!0))}),DV=_e(function(s){var l=pn(s);return ct(l)&&(l=n),qr(xt(s,1,ct,!0),xe(l,2))}),RV=_e(function(s){var l=pn(s);return l=typeof l=="function"?l:n,qr(xt(s,1,ct,!0),n,l)});function NV(s){return s&&s.length?qr(s):[]}function LV(s,l){return s&&s.length?qr(s,xe(l,2)):[]}function kV(s,l){return l=typeof l=="function"?l:n,s&&s.length?qr(s,n,l):[]}function pm(s){if(!(s&&s.length))return[];var l=0;return s=Ur(s,function(f){if(ct(f))return l=mt(f.length,l),!0}),$h(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 jV=_e(function(s,l){return ct(s)?Yo(s,l):[]}),FV=_e(function(s){return Qh(Ur(s,ct))}),VV=_e(function(s){var l=pn(s);return ct(l)&&(l=n),Qh(Ur(s,ct),xe(l,2))}),BV=_e(function(s){var l=pn(s);return l=typeof l=="function"?l:n,Qh(Ur(s,ct),n,l)}),WV=_e(pm);function UV(s,l){return tS(s||[],l||[],Go)}function zV(s,l){return tS(s||[],l||[],Ko)}var GV=_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=C(s);return l.__chain__=!0,l}function YV(s,l){return l(s),s}function rc(s,l){return l(s)}var HV=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 Ne)||!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 qV(){return jS(this)}function KV(){return new dn(this.value(),this.__chain__)}function XV(){this.__values__===n&&(this.__values__=JS(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function ZV(){return this}function JV(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 Ne){var l=s;return this.__actions__.length&&(l=new Ne(this)),l=l.reverse(),l.__actions__.push({func:rc,args:[mm],thisArg:n}),new dn(l,this.__chain__)}return this.thru(mm)}function e8(){return eS(this.__wrapped__,this.__actions__)}var t8=Kl(function(s,l,f){ze.call(s,f)?++s[f]:or(s,f,1)});function n8(s,l,f){var g=Ae(s)?h2:Yj;return f&&$t(s,l,f)&&(l=n),g(s,xe(l,3))}function r8(s,l){var f=Ae(s)?Ur:k2;return f(s,xe(l,3))}var i8=fS($S),s8=fS(DS);function o8(s,l){return xt(ic(s,l),1)}function a8(s,l){return xt(ic(s,l),V)}function l8(s,l,f){return f=f===n?1:Me(f),xt(ic(s,l),f)}function FS(s,l){var f=Ae(s)?un:Hr;return f(s,xe(l,3))}function VS(s,l){var f=Ae(s)?A3:L2;return f(s,xe(l,3))}var c8=Kl(function(s,l,f){ze.call(s,f)?s[f].push(l):or(s,f,[l])});function u8(s,l,f,g){s=Bt(s)?s:Ls(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&&Es(s,l,f)>-1}var f8=_e(function(s,l,f){var g=-1,x=typeof l=="function",M=Bt(s)?W(s.length):[];return Hr(s,function(I){M[++g]=x?Kt(l,I,f):Ho(I,l,f)}),M}),d8=Kl(function(s,l,f){or(s,f,l)});function ic(s,l){var f=Ae(s)?et:U2;return f(s,xe(l,3))}function h8(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 m8=Kl(function(s,l,f){s[f?0:1].push(l)},function(){return[[],[]]});function p8(s,l,f){var g=Ae(s)?Ah:y2,x=arguments.length<3;return g(s,xe(l,4),f,x,Hr)}function g8(s,l,f){var g=Ae(s)?M3:y2,x=arguments.length<3;return g(s,xe(l,4),f,x,L2)}function y8(s,l){var f=Ae(s)?Ur:k2;return f(s,ac(xe(l,3)))}function v8(s){var l=Ae(s)?$2:uF;return l(s)}function b8(s,l,f){(f?$t(s,l,f):l===n)?l=1:l=Me(l);var g=Ae(s)?Bj:fF;return g(s,l)}function x8(s){var l=Ae(s)?Wj:hF;return l(s)}function w8(s){if(s==null)return 0;if(Bt(s))return cc(s)?Ps(s):s.length;var l=Mt(s);return l==De||l==qt?s.size:Yh(s).length}function S8(s,l,f){var g=Ae(s)?Mh:mF;return f&&$t(s,l,f)&&(l=n),g(s,xe(l,3))}var T8=_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]]),H2(s,xt(l,1),[])}),sc=rj||function(){return bt.Date.now()};function E8(s,l){if(typeof l!="function")throw new fn(a);return s=Me(s),function(){if(--s<1)return l.apply(this,arguments)}}function BS(s,l,f){return l=f?n:l,l=s&&l==null?s.length:l,ar(s,k,n,n,n,n,l)}function WS(s,l){var f;if(typeof l!="function")throw new fn(a);return s=Me(s),function(){return--s>0&&(f=l.apply(this,arguments)),s<=1&&(l=n),f}}var gm=_e(function(s,l,f){var g=T;if(f.length){var x=Gr(f,Rs(gm));g|=A}return ar(s,g,l,f,x)}),US=_e(function(s,l,f){var g=T|w;if(f.length){var x=Gr(f,Rs(US));g|=A}return ar(l,g,s,f,x)});function zS(s,l,f){l=f?n:l;var g=ar(s,P,n,n,n,n,n,l);return g.placeholder=zS.placeholder,g}function GS(s,l,f){l=f?n:l;var g=ar(s,$,n,n,n,n,n,l);return g.placeholder=GS.placeholder,g}function YS(s,l,f){var g,x,M,I,R,j,Y=0,H=!1,X=!1,ce=!0;if(typeof s!="function")throw new fn(a);l=gn(l)||0,st(f)&&(H=!!f.leading,X="maxWait"in f,M=X?mt(gn(f.maxWait)||0,l):M,ce="trailing"in f?!!f.trailing:ce);function ge(ut){var En=g,dr=x;return g=x=n,Y=ut,I=s.apply(dr,En),I}function Te(ut){return Y=ut,R=Jo(Re,l),H?ge(ut):I}function Oe(ut){var En=ut-j,dr=ut-Y,fT=l-En;return X?At(fT,M-dr):fT}function Ee(ut){var En=ut-j,dr=ut-Y;return j===n||En>=l||En<0||X&&dr>=M}function Re(){var ut=sc();if(Ee(ut))return Le(ut);R=Jo(Re,Oe(ut))}function Le(ut){return R=n,ce&&g?ge(ut):(g=x=n,I)}function Qt(){R!==n&&nS(R),Y=0,g=j=x=R=n}function Dt(){return R===n?I:Le(sc())}function en(){var ut=sc(),En=Ee(ut);if(g=arguments,x=this,j=ut,En){if(R===n)return Te(j);if(X)return nS(R),R=Jo(Re,l),ge(j)}return R===n&&(R=Jo(Re,l)),I}return en.cancel=Qt,en.flush=Dt,en}var C8=_e(function(s,l){return N2(s,1,l)}),P8=_e(function(s,l,f){return N2(s,gn(l)||0,f)});function A8(s){return ar(s,z)}function oc(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new fn(a);var f=function(){var g=arguments,x=l?l.apply(this,g):g[0],M=f.cache;if(M.has(x))return M.get(x);var I=s.apply(this,g);return f.cache=M.set(x,I)||M,I};return f.cache=new(oc.Cache||sr),f}oc.Cache=sr;function ac(s){if(typeof s!="function")throw new fn(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function M8(s){return WS(2,s)}var O8=pF(function(s,l){l=l.length==1&&Ae(l[0])?et(l[0],Xt(xe())):et(xt(l,1),Xt(xe()));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=Gr(l,Rs(ym));return ar(s,A,n,l,f)}),HS=_e(function(s,l){var f=Gr(l,Rs(HS));return ar(s,D,n,l,f)}),_8=lr(function(s,l){return ar(s,F,n,n,n,l)});function I8(s,l){if(typeof s!="function")throw new fn(a);return l=l===n?l:Me(l),_e(s,l)}function $8(s,l){if(typeof s!="function")throw new fn(a);return l=l==null?0:mt(Me(l),0),_e(function(f){var g=f[l],x=Xr(f,0,l);return g&&zr(x,g),Kt(s,this,x)})}function D8(s,l,f){var g=!0,x=!0;if(typeof s!="function")throw new fn(a);return st(f)&&(g="leading"in f?!!f.leading:g,x="trailing"in f?!!f.trailing:x),YS(s,l,{leading:g,maxWait:l,trailing:x})}function R8(s){return BS(s,1)}function N8(s,l){return ym(tm(l),s)}function L8(){if(!arguments.length)return[];var s=arguments[0];return Ae(s)?s:[s]}function k8(s){return hn(s,y)}function j8(s,l){return l=typeof l=="function"?l:n,hn(s,y,l)}function F8(s){return hn(s,m|y)}function V8(s,l){return l=typeof l=="function"?l:n,hn(s,m|y,l)}function B8(s,l){return l==null||R2(s,l,gt(l))}function Tn(s,l){return s===l||s!==s&&l!==l}var W8=Ql(Uh),U8=Ql(function(s,l){return s>=l}),Ri=V2(function(){return arguments}())?V2:function(s){return ot(s)&&ze.call(s,"callee")&&!P2.call(s,"callee")},Ae=W.isArray,z8=a2?Xt(a2):Jj;function Bt(s){return s!=null&&lc(s.length)&&!ur(s)}function ct(s){return ot(s)&&Bt(s)}function G8(s){return s===!0||s===!1||ot(s)&&It(s)==re}var Zr=sj||Mm,Y8=l2?Xt(l2):Qj;function H8(s){return ot(s)&&s.nodeType===1&&!Qo(s)}function q8(s){if(s==null)return!0;if(Bt(s)&&(Ae(s)||typeof s=="string"||typeof s.splice=="function"||Zr(s)||Ns(s)||Ri(s)))return!s.length;var l=Mt(s);if(l==De||l==qt)return!s.size;if(Zo(s))return!Yh(s).length;for(var f in s)if(ze.call(s,f))return!1;return!0}function K8(s,l){return qo(s,l)}function X8(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==Ve||l==Ce||typeof s.message=="string"&&typeof s.name=="string"&&!Qo(s)}function Z8(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==ae||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<=B}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):tF;function J8(s,l){return s===l||Gh(s,l,lm(l))}function Q8(s,l,f){return f=typeof f=="function"?f:n,Gh(s,l,lm(l),f)}function eB(s){return XS(s)&&s!=+s}function tB(s){if(jF(s))throw new Pe(o);return B2(s)}function nB(s){return s===null}function rB(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=ze.call(l,"constructor")&&l.constructor;return typeof f=="function"&&f instanceof f&&Il.call(f)==Q3}var bm=u2?Xt(u2):nF;function iB(s){return qS(s)&&s>=-9007199254740991&&s<=B}var ZS=f2?Xt(f2):rF;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)==Ci}var Ns=d2?Xt(d2):iF;function sB(s){return s===n}function oB(s){return ot(s)&&Mt(s)==Wr}function aB(s){return ot(s)&&It(s)==Sl}var lB=Ql(Hh),cB=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 B3(s[Vo]());var l=Mt(s),f=l==De?Rh:l==qt?Ml:Ls;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*G}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?_i(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=zk.test(s);return f||Yk.test(s)?E3(s.slice(2),f?2:8):Uk.test(s)?O:+s}function eT(s){return Wn(s,Wt(s))}function uB(s){return s?_i(Me(s),-9007199254740991,B):s===0?s:0}function Be(s){return s==null?"":Zt(s)}var fB=$s(function(s,l){if(Zo(l)||Bt(l)){Wn(l,gt(l),s);return}for(var f in l)ze.call(l,f)&&Go(s,f,l[f])}),tT=$s(function(s,l){Wn(l,Wt(l),s)}),uc=$s(function(s,l,f,g){Wn(l,Wt(l),s,g)}),dB=$s(function(s,l,f,g){Wn(l,gt(l),s,g)}),hB=lr(Vh);function mB(s,l){var f=Is(s);return l==null?f:D2(f,l)}var pB=_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],I=Wt(M),R=-1,j=I.length;++R<j;){var Y=I[R],H=s[Y];(H===n||Tn(H,Ms[Y])&&!ze.call(s,Y))&&(s[Y]=M[Y])}return s}),gB=_e(function(s){return s.push(n,vS),Kt(nT,n,s)});function yB(s,l){return m2(s,xe(l,3),Bn)}function vB(s,l){return m2(s,xe(l,3),Wh)}function bB(s,l){return s==null?s:Bh(s,xe(l,3),Wt)}function xB(s,l){return s==null?s:j2(s,xe(l,3),Wt)}function wB(s,l){return s&&Bn(s,xe(l,3))}function SB(s,l){return s&&Wh(s,xe(l,3))}function TB(s){return s==null?[]:Gl(s,gt(s))}function EB(s){return s==null?[]:Gl(s,Wt(s))}function xm(s,l,f){var g=s==null?n:Ii(s,l);return g===n?f:g}function CB(s,l){return s!=null&&wS(s,l,qj)}function wm(s,l){return s!=null&&wS(s,l,Kj)}var PB=hS(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=$l.call(l)),s[l]=f},Tm(Ut)),AB=hS(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=$l.call(l)),ze.call(s,l)?s[l].push(f):s[l]=[f]},xe),MB=_e(Ho);function gt(s){return Bt(s)?I2(s):Yh(s)}function Wt(s){return Bt(s)?I2(s,!0):sF(s)}function OB(s,l){var f={};return l=xe(l,3),Bn(s,function(g,x,M){or(f,l(g,x,M),g)}),f}function _B(s,l){var f={};return l=xe(l,3),Bn(s,function(g,x,M){or(f,x,l(g,x,M))}),f}var IB=$s(function(s,l,f){Yl(s,l,f)}),nT=$s(function(s,l,f,g){Yl(s,l,f,g)}),$B=lr(function(s,l){var f={};if(s==null)return f;var g=!1;l=et(l,function(M){return M=Kr(M,s),g||(g=M.length>1),M}),Wn(s,om(s),f),g&&(f=hn(f,m|p|y,PF));for(var x=l.length;x--;)Jh(f,l[x]);return f});function DB(s,l){return rT(s,ac(xe(l)))}var RB=lr(function(s,l){return s==null?{}:aF(s,l)});function rT(s,l){if(s==null)return{};var f=et(om(s),function(g){return[g]});return l=xe(l),q2(s,f,function(g,x){return l(g,x[0])})}function NB(s,l,f){l=Kr(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 LB(s,l,f){return s==null?s:Ko(s,l,f)}function kB(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 jB(s,l,f){var g=Ae(s),x=g||Zr(s)||Ns(s);if(l=xe(l,4),f==null){var M=s&&s.constructor;x?f=g?new M:[]:st(s)?f=ur(M)?Is(Nl(s)):{}:f={}}return(x?un:Bn)(s,function(I,R,j){return l(f,I,R,j)}),f}function FB(s,l){return s==null?!0:Jh(s,l)}function VB(s,l,f){return s==null?s:Q2(s,l,tm(f))}function BB(s,l,f,g){return g=typeof g=="function"?g:n,s==null?s:Q2(s,l,tm(f),g)}function Ls(s){return s==null?[]:Dh(s,gt(s))}function WB(s){return s==null?[]:Dh(s,Wt(s))}function UB(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),_i(gn(s),l,f)}function zB(s,l,f){return l=fr(l),f===n?(f=l,l=0):f=fr(f),s=gn(s),Xj(s,l,f)}function GB(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=O2();return At(s+x*(l-s+T3("1e-"+((x+"").length-1))),l)}return Kh(s,l)}var YB=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(qk,L3).replace(h3,"")}function HB(s,l,f){s=Be(s),l=Zt(l);var g=s.length;f=f===n?g:_i(Me(f),0,g);var x=f;return f-=l.length,f>=0&&s.slice(f,x)==l}function qB(s){return s=Be(s),s&&Mk.test(s)?s.replace(jw,k3):s}function KB(s){return s=Be(s),s&&Rk.test(s)?s.replace(yh,"\\$&"):s}var XB=Ds(function(s,l,f){return s+(f?"-":"")+l.toLowerCase()}),ZB=Ds(function(s,l,f){return s+(f?" ":"")+l.toLowerCase()}),JB=uS("toLowerCase");function QB(s,l,f){s=Be(s),l=Me(l);var g=l?Ps(s):0;if(!l||g>=l)return s;var x=(l-g)/2;return Jl(Fl(x),f)+s+Jl(jl(x),f)}function e9(s,l,f){s=Be(s),l=Me(l);var g=l?Ps(s):0;return l&&g<l?s+Jl(l-g,f):s}function t9(s,l,f){s=Be(s),l=Me(l);var g=l?Ps(s):0;return l&&g<l?Jl(l-g,f)+s:s}function n9(s,l,f){return f||l==null?l=0:l&&(l=+l),cj(Be(s).replace(vh,""),l||0)}function r9(s,l,f){return(f?$t(s,l,f):l===n)?l=1:l=Me(l),Xh(Be(s),l)}function i9(){var s=arguments,l=Be(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var s9=Ds(function(s,l,f){return s+(f?"_":"")+l.toLowerCase()});function o9(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&&Cs(s))?Xr(wn(s),0,f):s.split(l,f)):[]}var a9=Ds(function(s,l,f){return s+(f?" ":"")+Sm(l)});function l9(s,l,f){return s=Be(s),f=f==null?0:_i(Me(f),0,s.length),l=Zt(l),s.slice(f,f+l.length)==l}function c9(s,l,f){var g=C.templateSettings;f&&$t(s,l,f)&&(l=n),s=Be(s),l=uc({},l,g,yS);var x=uc({},l.imports,g.imports,yS),M=gt(x),I=Dh(x,M),R,j,Y=0,H=l.interpolate||Tl,X="__p += '",ce=Nh((l.escape||Tl).source+"|"+H.source+"|"+(H===Fw?Wk:Tl).source+"|"+(l.evaluate||Tl).source+"|$","g"),ge="//# sourceURL="+(ze.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++v3+"]")+`
635
- `;s.replace(ce,function(Ee,Re,Le,Qt,Dt,en){return Le||(Le=Qt),X+=s.slice(Y,en).replace(Kk,j3),Re&&(R=!0,X+=`' +
634
+ `)}function LF(s){return Ae(s)||Ri(s)||!!(Aw&&s&&s[Aw])}function cr(s,l){var f=typeof s;return l=l??B,!!l&&(f=="number"||f!="symbol"&&qL.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 fm(s,l){if(Ae(s))return!1;var f=typeof s;return f=="number"||f=="symbol"||f=="boolean"||s==null||Jt(s)?!0:DL.test(s)||!$L.test(s)||l!=null&&s in Ge(l)}function kF(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function dm(s){var l=ec(s),f=C[l];if(typeof f!="function"||!(l in Ne.prototype))return!1;if(s===f)return!0;var g=lm(f);return!!g&&s===g[0]}function jF(s){return!!Tw&&Tw in s}var FF=_l?ur:Om;function Zo(s){var l=s&&s.constructor,f=typeof l=="function"&&l.prototype||Os;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 VF(s){var l=oc(s,function(g){return f.size===d&&f.clear(),g}),f=l.cache;return l}function BF(s,l){var f=s[1],g=l[1],x=f|g,M=x<(T|w|V),I=g==V&&f==P||g==V&&f==j&&s[7].length<=l[8]||g==(V|j)&&l[7].length<=l[8]&&f==P;if(!(M||I))return s;g&T&&(s[2]=l[2],x|=f&T?0:E);var R=l[3];if(R){var k=s[3];s[3]=k?oS(k,R,l[4]):R,s[4]=k?Gr(s[3],h):l[4]}return R=l[5],R&&(k=s[5],s[5]=k?aS(k,R,l[6]):R,s[6]=k?Gr(s[5],h):l[6]),R=l[7],R&&(s[7]=R),g&V&&(s[8]=s[8]==null?l[8]:At(s[8],l[8])),s[9]==null&&(s[9]=l[9]),s[0]=l[0],s[1]=x,s}function WF(s){var l=[];if(s!=null)for(var f in Ge(s))l.push(f);return l}function UF(s){return $l.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),I=W(M);++x<M;)I[x]=g[l+x];x=-1;for(var R=W(l+1);++x<l;)R[x]=g[x];return R[l]=f(I),Kt(s,this,R)}}function PS(s,l){return l.length<2?s:Ii(s,mn(l,0,-1))}function zF(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 hm(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var AS=OS(Xw),Jo=sj||function(s,l){return bt.setTimeout(s,l)},mm=OS(hF);function MS(s,l,f){var g=l+"";return mm(s,NF(g,GF($F(g),f)))}function OS(s){var l=0,f=0;return function(){var g=cj(),x=ge-(g-f);if(f=g,x>0){if(++l>=oe)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=Xh(f,x),I=s[M];s[M]=s[f],s[f]=I}return s.length=l,s}var _S=VF(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(RL,function(f,g,x,M){l.push(x?M.replace(WL,"$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 Di(s){if(s!=null){try{return Il.call(s)}catch{}try{return s+""}catch{}}return""}function GF(s,l){return un(J,function(f){var g="_."+f[0];l&f[1]&&!Pl(s,g)&&s.push(g)}),s.sort()}function IS(s){if(s instanceof Ne)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 YF(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,I=W(jl(g/l));x<g;)I[M++]=mn(s,x,x+=l);return I}function HF(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 qF(){var s=arguments.length;if(!s)return[];for(var l=W(s-1),f=arguments[0],g=s;g--;)l[g-1]=arguments[g];return zr(Ae(f)?Vt(f):[f],xt(l,1))}var KF=Ie(function(s,l){return ct(s)?Yo(s,xt(l,1,ct,!0)):[]}),XF=Ie(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Yo(s,xt(l,1,ct,!0),xe(f,2)):[]}),ZF=Ie(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Yo(s,xt(l,1,ct,!0),n,f):[]});function JF(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 eV(s,l){return s&&s.length?ql(s,xe(l,3),!0,!0):[]}function tV(s,l){return s&&s.length?ql(s,xe(l,3),!0):[]}function nV(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),qj(s,l,f,g)):[]}function $S(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,xe(l,3),x)}function DS(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,xe(l,3),x,!0)}function RS(s){var l=s==null?0:s.length;return l?xt(s,1):[]}function rV(s){var l=s==null?0:s.length;return l?xt(s,F):[]}function iV(s,l){var f=s==null?0:s.length;return f?(l=l===n?1:Me(l),xt(s,l)):[]}function sV(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 oV(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)),Cs(s,l,x)}function aV(s){var l=s==null?0:s.length;return l?mn(s,0,-1):[]}var lV=Ie(function(s){var l=et(s,tm);return l.length&&l[0]===s[0]?Gh(l):[]}),cV=Ie(function(s){var l=pn(s),f=et(s,tm);return l===pn(f)?l=n:f.pop(),f.length&&f[0]===s[0]?Gh(f,xe(l,2)):[]}),uV=Ie(function(s){var l=pn(s),f=et(s,tm);return l=typeof l=="function"?l:n,l&&f.pop(),f.length&&f[0]===s[0]?Gh(f,n,l):[]});function fV(s,l){return s==null?"":aj.call(s,l)}function pn(s){var l=s==null?0:s.length;return l?s[l-1]:n}function dV(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?Gk(s,l,x):Al(s,pw,x,!0)}function hV(s,l){return s&&s.length?Yw(s,Me(l)):n}var mV=Ie(LS);function LS(s,l){return s&&s.length&&l&&l.length?Kh(s,l):s}function pV(s,l,f){return s&&s.length&&l&&l.length?Kh(s,l,xe(f,2)):s}function gV(s,l,f){return s&&s.length&&l&&l.length?Kh(s,l,n,f):s}var yV=lr(function(s,l){var f=s==null?0:s.length,g=Bh(s,l);return Kw(s,et(l,function(x){return cr(x,f)?+x:x}).sort(sS)),g});function vV(s,l){var f=[];if(!(s&&s.length))return f;var g=-1,x=[],M=s.length;for(l=xe(l,3);++g<M;){var I=s[g];l(I,g,s)&&(f.push(I),x.push(g))}return Kw(s,x),f}function pm(s){return s==null?s:fj.call(s)}function bV(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 xV(s,l){return Hl(s,l)}function wV(s,l,f){return Jh(s,l,xe(f,2))}function SV(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 TV(s,l){return Hl(s,l,!0)}function EV(s,l,f){return Jh(s,l,xe(f,2),!0)}function CV(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 PV(s){return s&&s.length?Zw(s):[]}function AV(s,l){return s&&s.length?Zw(s,xe(l,2)):[]}function MV(s){var l=s==null?0:s.length;return l?mn(s,1,l):[]}function OV(s,l,f){return s&&s.length?(l=f||l===n?1:Me(l),mn(s,0,l<0?0:l)):[]}function _V(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 IV(s,l){return s&&s.length?ql(s,xe(l,3),!1,!0):[]}function $V(s,l){return s&&s.length?ql(s,xe(l,3)):[]}var DV=Ie(function(s){return qr(xt(s,1,ct,!0))}),RV=Ie(function(s){var l=pn(s);return ct(l)&&(l=n),qr(xt(s,1,ct,!0),xe(l,2))}),NV=Ie(function(s){var l=pn(s);return l=typeof l=="function"?l:n,qr(xt(s,1,ct,!0),n,l)});function LV(s){return s&&s.length?qr(s):[]}function kV(s,l){return s&&s.length?qr(s,xe(l,2)):[]}function jV(s,l){return l=typeof l=="function"?l:n,s&&s.length?qr(s,n,l):[]}function gm(s){if(!(s&&s.length))return[];var l=0;return s=Ur(s,function(f){if(ct(f))return l=mt(f.length,l),!0}),Dh(l,function(f){return et(s,_h(f))})}function kS(s,l){if(!(s&&s.length))return[];var f=gm(s);return l==null?f:et(f,function(g){return Kt(l,n,g)})}var FV=Ie(function(s,l){return ct(s)?Yo(s,l):[]}),VV=Ie(function(s){return em(Ur(s,ct))}),BV=Ie(function(s){var l=pn(s);return ct(l)&&(l=n),em(Ur(s,ct),xe(l,2))}),WV=Ie(function(s){var l=pn(s);return l=typeof l=="function"?l:n,em(Ur(s,ct),n,l)}),UV=Ie(gm);function zV(s,l){return tS(s||[],l||[],Go)}function GV(s,l){return tS(s||[],l||[],Ko)}var YV=Ie(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=C(s);return l.__chain__=!0,l}function HV(s,l){return l(s),s}function rc(s,l){return l(s)}var qV=lr(function(s){var l=s.length,f=l?s[0]:0,g=this.__wrapped__,x=function(M){return Bh(M,s)};return l>1||this.__actions__.length||!(g instanceof Ne)||!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 KV(){return jS(this)}function XV(){return new dn(this.value(),this.__chain__)}function ZV(){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 JV(){return this}function QV(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 e8(){var s=this.__wrapped__;if(s instanceof Ne){var l=s;return this.__actions__.length&&(l=new Ne(this)),l=l.reverse(),l.__actions__.push({func:rc,args:[pm],thisArg:n}),new dn(l,this.__chain__)}return this.thru(pm)}function t8(){return eS(this.__wrapped__,this.__actions__)}var n8=Kl(function(s,l,f){ze.call(s,f)?++s[f]:or(s,f,1)});function r8(s,l,f){var g=Ae(s)?hw:Hj;return f&&$t(s,l,f)&&(l=n),g(s,xe(l,3))}function i8(s,l){var f=Ae(s)?Ur:kw;return f(s,xe(l,3))}var s8=fS($S),o8=fS(DS);function a8(s,l){return xt(ic(s,l),1)}function l8(s,l){return xt(ic(s,l),F)}function c8(s,l,f){return f=f===n?1:Me(f),xt(ic(s,l),f)}function FS(s,l){var f=Ae(s)?un:Hr;return f(s,xe(l,3))}function VS(s,l){var f=Ae(s)?Mk:Lw;return f(s,xe(l,3))}var u8=Kl(function(s,l,f){ze.call(s,f)?s[f].push(l):or(s,f,[l])});function f8(s,l,f,g){s=Bt(s)?s:ks(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&&Cs(s,l,f)>-1}var d8=Ie(function(s,l,f){var g=-1,x=typeof l=="function",M=Bt(s)?W(s.length):[];return Hr(s,function(I){M[++g]=x?Kt(l,I,f):Ho(I,l,f)}),M}),h8=Kl(function(s,l,f){or(s,f,l)});function ic(s,l){var f=Ae(s)?et:Uw;return f(s,xe(l,3))}function m8(s,l,f,g){return s==null?[]:(Ae(l)||(l=l==null?[]:[l]),f=g?n:f,Ae(f)||(f=f==null?[]:[f]),Hw(s,l,f))}var p8=Kl(function(s,l,f){s[f?0:1].push(l)},function(){return[[],[]]});function g8(s,l,f){var g=Ae(s)?Mh:yw,x=arguments.length<3;return g(s,xe(l,4),f,x,Hr)}function y8(s,l,f){var g=Ae(s)?Ok:yw,x=arguments.length<3;return g(s,xe(l,4),f,x,Lw)}function v8(s,l){var f=Ae(s)?Ur:kw;return f(s,ac(xe(l,3)))}function b8(s){var l=Ae(s)?$w:fF;return l(s)}function x8(s,l,f){(f?$t(s,l,f):l===n)?l=1:l=Me(l);var g=Ae(s)?Wj:dF;return g(s,l)}function w8(s){var l=Ae(s)?Uj:mF;return l(s)}function S8(s){if(s==null)return 0;if(Bt(s))return cc(s)?As(s):s.length;var l=Mt(s);return l==De||l==qt?s.size:Hh(s).length}function T8(s,l,f){var g=Ae(s)?Oh:pF;return f&&$t(s,l,f)&&(l=n),g(s,xe(l,3))}var E8=Ie(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]]),Hw(s,xt(l,1),[])}),sc=ij||function(){return bt.Date.now()};function C8(s,l){if(typeof l!="function")throw new fn(a);return s=Me(s),function(){if(--s<1)return l.apply(this,arguments)}}function BS(s,l,f){return l=f?n:l,l=s&&l==null?s.length:l,ar(s,V,n,n,n,n,l)}function WS(s,l){var f;if(typeof l!="function")throw new fn(a);return s=Me(s),function(){return--s>0&&(f=l.apply(this,arguments)),s<=1&&(l=n),f}}var ym=Ie(function(s,l,f){var g=T;if(f.length){var x=Gr(f,Ns(ym));g|=A}return ar(s,g,l,f,x)}),US=Ie(function(s,l,f){var g=T|w;if(f.length){var x=Gr(f,Ns(US));g|=A}return ar(l,g,s,f,x)});function zS(s,l,f){l=f?n:l;var g=ar(s,P,n,n,n,n,n,l);return g.placeholder=zS.placeholder,g}function GS(s,l,f){l=f?n:l;var g=ar(s,$,n,n,n,n,n,l);return g.placeholder=GS.placeholder,g}function YS(s,l,f){var g,x,M,I,R,k,Y=0,H=!1,Z=!1,ce=!0;if(typeof s!="function")throw new fn(a);l=gn(l)||0,st(f)&&(H=!!f.leading,Z="maxWait"in f,M=Z?mt(gn(f.maxWait)||0,l):M,ce="trailing"in f?!!f.trailing:ce);function ye(ut){var En=g,dr=x;return g=x=n,Y=ut,I=s.apply(dr,En),I}function Te(ut){return Y=ut,R=Jo(Re,l),H?ye(ut):I}function Oe(ut){var En=ut-k,dr=ut-Y,fT=l-En;return Z?At(fT,M-dr):fT}function Ee(ut){var En=ut-k,dr=ut-Y;return k===n||En>=l||En<0||Z&&dr>=M}function Re(){var ut=sc();if(Ee(ut))return Le(ut);R=Jo(Re,Oe(ut))}function Le(ut){return R=n,ce&&g?ye(ut):(g=x=n,I)}function Qt(){R!==n&&nS(R),Y=0,g=k=x=R=n}function Dt(){return R===n?I:Le(sc())}function en(){var ut=sc(),En=Ee(ut);if(g=arguments,x=this,k=ut,En){if(R===n)return Te(k);if(Z)return nS(R),R=Jo(Re,l),ye(k)}return R===n&&(R=Jo(Re,l)),I}return en.cancel=Qt,en.flush=Dt,en}var P8=Ie(function(s,l){return Nw(s,1,l)}),A8=Ie(function(s,l,f){return Nw(s,gn(l)||0,f)});function M8(s){return ar(s,U)}function oc(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new fn(a);var f=function(){var g=arguments,x=l?l.apply(this,g):g[0],M=f.cache;if(M.has(x))return M.get(x);var I=s.apply(this,g);return f.cache=M.set(x,I)||M,I};return f.cache=new(oc.Cache||sr),f}oc.Cache=sr;function ac(s){if(typeof s!="function")throw new fn(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function O8(s){return WS(2,s)}var _8=gF(function(s,l){l=l.length==1&&Ae(l[0])?et(l[0],Xt(xe())):et(xt(l,1),Xt(xe()));var f=l.length;return Ie(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)})}),vm=Ie(function(s,l){var f=Gr(l,Ns(vm));return ar(s,A,n,l,f)}),HS=Ie(function(s,l){var f=Gr(l,Ns(HS));return ar(s,D,n,l,f)}),I8=lr(function(s,l){return ar(s,j,n,n,n,l)});function $8(s,l){if(typeof s!="function")throw new fn(a);return l=l===n?l:Me(l),Ie(s,l)}function D8(s,l){if(typeof s!="function")throw new fn(a);return l=l==null?0:mt(Me(l),0),Ie(function(f){var g=f[l],x=Xr(f,0,l);return g&&zr(x,g),Kt(s,this,x)})}function R8(s,l,f){var g=!0,x=!0;if(typeof s!="function")throw new fn(a);return st(f)&&(g="leading"in f?!!f.leading:g,x="trailing"in f?!!f.trailing:x),YS(s,l,{leading:g,maxWait:l,trailing:x})}function N8(s){return BS(s,1)}function L8(s,l){return vm(nm(l),s)}function k8(){if(!arguments.length)return[];var s=arguments[0];return Ae(s)?s:[s]}function j8(s){return hn(s,y)}function F8(s,l){return l=typeof l=="function"?l:n,hn(s,y,l)}function V8(s){return hn(s,m|y)}function B8(s,l){return l=typeof l=="function"?l:n,hn(s,m|y,l)}function W8(s,l){return l==null||Rw(s,l,gt(l))}function Tn(s,l){return s===l||s!==s&&l!==l}var U8=Ql(zh),z8=Ql(function(s,l){return s>=l}),Ri=Vw(function(){return arguments}())?Vw:function(s){return ot(s)&&ze.call(s,"callee")&&!Pw.call(s,"callee")},Ae=W.isArray,G8=aw?Xt(aw):Qj;function Bt(s){return s!=null&&lc(s.length)&&!ur(s)}function ct(s){return ot(s)&&Bt(s)}function Y8(s){return s===!0||s===!1||ot(s)&&It(s)==re}var Zr=oj||Om,H8=lw?Xt(lw):eF;function q8(s){return ot(s)&&s.nodeType===1&&!Qo(s)}function K8(s){if(s==null)return!0;if(Bt(s)&&(Ae(s)||typeof s=="string"||typeof s.splice=="function"||Zr(s)||Ls(s)||Ri(s)))return!s.length;var l=Mt(s);if(l==De||l==qt)return!s.size;if(Zo(s))return!Hh(s).length;for(var f in s)if(ze.call(s,f))return!1;return!0}function X8(s,l){return qo(s,l)}function Z8(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 bm(s){if(!ot(s))return!1;var l=It(s);return l==Ve||l==Ce||typeof s.message=="string"&&typeof s.name=="string"&&!Qo(s)}function J8(s){return typeof s=="number"&&Mw(s)}function ur(s){if(!st(s))return!1;var l=It(s);return l==ie||l==pe||l==le||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<=B}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=cw?Xt(cw):nF;function Q8(s,l){return s===l||Yh(s,l,cm(l))}function eB(s,l,f){return f=typeof f=="function"?f:n,Yh(s,l,cm(l),f)}function tB(s){return XS(s)&&s!=+s}function nB(s){if(FF(s))throw new Pe(o);return Bw(s)}function rB(s){return s===null}function iB(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=ze.call(l,"constructor")&&l.constructor;return typeof f=="function"&&f instanceof f&&Il.call(f)==ej}var xm=uw?Xt(uw):rF;function sB(s){return qS(s)&&s>=-9007199254740991&&s<=B}var ZS=fw?Xt(fw):iF;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)==Ci}var Ls=dw?Xt(dw):sF;function oB(s){return s===n}function aB(s){return ot(s)&&Mt(s)==Wr}function lB(s){return ot(s)&&It(s)==Sl}var cB=Ql(qh),uB=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 Wk(s[Vo]());var l=Mt(s),f=l==De?Nh:l==qt?Ml:ks;return f(s)}function fr(s){if(!s)return s===0?s:0;if(s=gn(s),s===F||s===-1/0){var l=s<0?-1:1;return l*G}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?_i(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=vw(s);var f=GL.test(s);return f||HL.test(s)?Ck(s.slice(2),f?2:8):zL.test(s)?O:+s}function eT(s){return Wn(s,Wt(s))}function fB(s){return s?_i(Me(s),-9007199254740991,B):s===0?s:0}function Be(s){return s==null?"":Zt(s)}var dB=Ds(function(s,l){if(Zo(l)||Bt(l)){Wn(l,gt(l),s);return}for(var f in l)ze.call(l,f)&&Go(s,f,l[f])}),tT=Ds(function(s,l){Wn(l,Wt(l),s)}),uc=Ds(function(s,l,f,g){Wn(l,Wt(l),s,g)}),hB=Ds(function(s,l,f,g){Wn(l,gt(l),s,g)}),mB=lr(Bh);function pB(s,l){var f=$s(s);return l==null?f:Dw(f,l)}var gB=Ie(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],I=Wt(M),R=-1,k=I.length;++R<k;){var Y=I[R],H=s[Y];(H===n||Tn(H,Os[Y])&&!ze.call(s,Y))&&(s[Y]=M[Y])}return s}),yB=Ie(function(s){return s.push(n,vS),Kt(nT,n,s)});function vB(s,l){return mw(s,xe(l,3),Bn)}function bB(s,l){return mw(s,xe(l,3),Uh)}function xB(s,l){return s==null?s:Wh(s,xe(l,3),Wt)}function wB(s,l){return s==null?s:jw(s,xe(l,3),Wt)}function SB(s,l){return s&&Bn(s,xe(l,3))}function TB(s,l){return s&&Uh(s,xe(l,3))}function EB(s){return s==null?[]:Gl(s,gt(s))}function CB(s){return s==null?[]:Gl(s,Wt(s))}function wm(s,l,f){var g=s==null?n:Ii(s,l);return g===n?f:g}function PB(s,l){return s!=null&&wS(s,l,Kj)}function Sm(s,l){return s!=null&&wS(s,l,Xj)}var AB=hS(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=$l.call(l)),s[l]=f},Em(Ut)),MB=hS(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=$l.call(l)),ze.call(s,l)?s[l].push(f):s[l]=[f]},xe),OB=Ie(Ho);function gt(s){return Bt(s)?Iw(s):Hh(s)}function Wt(s){return Bt(s)?Iw(s,!0):oF(s)}function _B(s,l){var f={};return l=xe(l,3),Bn(s,function(g,x,M){or(f,l(g,x,M),g)}),f}function IB(s,l){var f={};return l=xe(l,3),Bn(s,function(g,x,M){or(f,x,l(g,x,M))}),f}var $B=Ds(function(s,l,f){Yl(s,l,f)}),nT=Ds(function(s,l,f,g){Yl(s,l,f,g)}),DB=lr(function(s,l){var f={};if(s==null)return f;var g=!1;l=et(l,function(M){return M=Kr(M,s),g||(g=M.length>1),M}),Wn(s,am(s),f),g&&(f=hn(f,m|p|y,AF));for(var x=l.length;x--;)Qh(f,l[x]);return f});function RB(s,l){return rT(s,ac(xe(l)))}var NB=lr(function(s,l){return s==null?{}:lF(s,l)});function rT(s,l){if(s==null)return{};var f=et(am(s),function(g){return[g]});return l=xe(l),qw(s,f,function(g,x){return l(g,x[0])})}function LB(s,l,f){l=Kr(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 kB(s,l,f){return s==null?s:Ko(s,l,f)}function jB(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 FB(s,l,f){var g=Ae(s),x=g||Zr(s)||Ls(s);if(l=xe(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(I,R,k){return l(f,I,R,k)}),f}function VB(s,l){return s==null?!0:Qh(s,l)}function BB(s,l,f){return s==null?s:Qw(s,l,nm(f))}function WB(s,l,f,g){return g=typeof g=="function"?g:n,s==null?s:Qw(s,l,nm(f),g)}function ks(s){return s==null?[]:Rh(s,gt(s))}function UB(s){return s==null?[]:Rh(s,Wt(s))}function zB(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),_i(gn(s),l,f)}function GB(s,l,f){return l=fr(l),f===n?(f=l,l=0):f=fr(f),s=gn(s),Zj(s,l,f)}function YB(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=Ow();return At(s+x*(l-s+Ek("1e-"+((x+"").length-1))),l)}return Xh(s,l)}var HB=Rs(function(s,l,f){return l=l.toLowerCase(),s+(f?oT(l):l)});function oT(s){return Tm(Be(s).toLowerCase())}function aT(s){return s=Be(s),s&&s.replace(KL,kk).replace(mk,"")}function qB(s,l,f){s=Be(s),l=Zt(l);var g=s.length;f=f===n?g:_i(Me(f),0,g);var x=f;return f-=l.length,f>=0&&s.slice(f,x)==l}function KB(s){return s=Be(s),s&&OL.test(s)?s.replace(j2,jk):s}function XB(s){return s=Be(s),s&&NL.test(s)?s.replace(vh,"\\$&"):s}var ZB=Rs(function(s,l,f){return s+(f?"-":"")+l.toLowerCase()}),JB=Rs(function(s,l,f){return s+(f?" ":"")+l.toLowerCase()}),QB=uS("toLowerCase");function e9(s,l,f){s=Be(s),l=Me(l);var g=l?As(s):0;if(!l||g>=l)return s;var x=(l-g)/2;return Jl(Fl(x),f)+s+Jl(jl(x),f)}function t9(s,l,f){s=Be(s),l=Me(l);var g=l?As(s):0;return l&&g<l?s+Jl(l-g,f):s}function n9(s,l,f){s=Be(s),l=Me(l);var g=l?As(s):0;return l&&g<l?Jl(l-g,f)+s:s}function r9(s,l,f){return f||l==null?l=0:l&&(l=+l),uj(Be(s).replace(bh,""),l||0)}function i9(s,l,f){return(f?$t(s,l,f):l===n)?l=1:l=Me(l),Zh(Be(s),l)}function s9(){var s=arguments,l=Be(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var o9=Rs(function(s,l,f){return s+(f?"_":"")+l.toLowerCase()});function a9(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&&!xm(l))&&(l=Zt(l),!l&&Ps(s))?Xr(wn(s),0,f):s.split(l,f)):[]}var l9=Rs(function(s,l,f){return s+(f?" ":"")+Tm(l)});function c9(s,l,f){return s=Be(s),f=f==null?0:_i(Me(f),0,s.length),l=Zt(l),s.slice(f,f+l.length)==l}function u9(s,l,f){var g=C.templateSettings;f&&$t(s,l,f)&&(l=n),s=Be(s),l=uc({},l,g,yS);var x=uc({},l.imports,g.imports,yS),M=gt(x),I=Rh(x,M),R,k,Y=0,H=l.interpolate||Tl,Z="__p += '",ce=Lh((l.escape||Tl).source+"|"+H.source+"|"+(H===F2?UL:Tl).source+"|"+(l.evaluate||Tl).source+"|$","g"),ye="//# sourceURL="+(ze.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++bk+"]")+`
635
+ `;s.replace(ce,function(Ee,Re,Le,Qt,Dt,en){return Le||(Le=Qt),Z+=s.slice(Y,en).replace(XL,Fk),Re&&(R=!0,Z+=`' +
636
636
  __e(`+Re+`) +
637
- '`),Dt&&(j=!0,X+=`';
637
+ '`),Dt&&(k=!0,Z+=`';
638
638
  `+Dt+`;
639
- __p += '`),Le&&(X+=`' +
639
+ __p += '`),Le&&(Z+=`' +
640
640
  ((__t = (`+Le+`)) == null ? '' : __t) +
641
- '`),Y=en+Ee.length,Ee}),X+=`';
642
- `;var Te=ze.call(l,"variable")&&l.variable;if(!Te)X=`with (obj) {
643
- `+X+`
641
+ '`),Y=en+Ee.length,Ee}),Z+=`';
642
+ `;var Te=ze.call(l,"variable")&&l.variable;if(!Te)Z=`with (obj) {
643
+ `+Z+`
644
644
  }
645
- `;else if(Vk.test(Te))throw new Pe(c);X=(j?X.replace(Ek,""):X).replace(Ck,"$1").replace(Pk,"$1;"),X="function("+(Te||"obj")+`) {
645
+ `;else if(BL.test(Te))throw new Pe(c);Z=(k?Z.replace(CL,""):Z).replace(PL,"$1").replace(AL,"$1;"),Z="function("+(Te||"obj")+`) {
646
646
  `+(Te?"":`obj || (obj = {});
647
- `)+"var __t, __p = ''"+(R?", __e = _.escape":"")+(j?`, __j = Array.prototype.join;
647
+ `)+"var __t, __p = ''"+(R?", __e = _.escape":"")+(k?`, __j = Array.prototype.join;
648
648
  function print() { __p += __j.call(arguments, '') }
649
649
  `:`;
650
- `)+X+`return __p
651
- }`;var Oe=cT(function(){return ke(M,ge+"return "+X).apply(n,I)});if(Oe.source=X,vm(Oe))throw Oe;return Oe}function u9(s){return Be(s).toLowerCase()}function f9(s){return Be(s).toUpperCase()}function d9(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),I=x2(g,x)+1;return Xr(g,M,I).join("")}function h9(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 Xr(g,0,x).join("")}function m9(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 Xr(g,x).join("")}function p9(s,l){var f=J,g=ne;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(Cs(s)){var I=wn(s);M=I.length}if(f>=M)return s;var R=f-Ps(g);if(R<1)return g;var j=I?Xr(I,0,R).join(""):s.slice(0,R);if(x===n)return j+g;if(I&&(R+=j.length-R),bm(x)){if(s.slice(R).search(x)){var Y,H=j;for(x.global||(x=Nh(x.source,Be(Vw.exec(x))+"g")),x.lastIndex=0;Y=x.exec(H);)var X=Y.index;j=j.slice(0,X===n?R:X)}}else if(s.indexOf(Zt(x),R)!=R){var ce=j.lastIndexOf(x);ce>-1&&(j=j.slice(0,ce))}return j+g}function g9(s){return s=Be(s),s&&Ak.test(s)?s.replace(kw,G3):s}var y9=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?V3(s)?q3(s):I3(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)}}),v9=lr(function(s,l){return un(l,function(f){f=Un(f),or(s,f,gm(s[f],s))}),s});function b9(s){var l=s==null?0:s.length,f=xe();return s=l?et(s,function(g){if(typeof g[1]!="function")throw new fn(a);return[f(g[0]),g[1]]}):[],_e(function(g){for(var x=-1;++x<l;){var M=s[x];if(Kt(M[0],this,g))return Kt(M[1],this,g)}})}function x9(s){return Gj(hn(s,m))}function Tm(s){return function(){return s}}function w9(s,l){return s==null||s!==s?l:s}var S9=dS(),T9=dS(!0);function Ut(s){return s}function Em(s){return W2(typeof s=="function"?s:hn(s,m))}function E9(s){return z2(hn(s,m))}function C9(s,l){return G2(s,hn(l,m))}var P9=_e(function(s,l){return function(f){return Ho(f,s,l)}}),A9=_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,I=ur(s);return un(x,function(R){var j=l[R];s[R]=j,I&&(s.prototype[R]=function(){var Y=this.__chain__;if(M||Y){var H=s(this.__wrapped__),X=H.__actions__=Vt(this.__actions__);return X.push({func:j,args:arguments,thisArg:s}),H.__chain__=Y,H}return j.apply(s,zr([this.value()],arguments))})}),s}function M9(){return bt._===this&&(bt._=ej),this}function Pm(){}function O9(s){return s=Me(s),_e(function(l){return Y2(l,s)})}var _9=rm(et),I9=rm(h2),$9=rm(Mh);function uT(s){return um(s)?Oh(Un(s)):lF(s)}function D9(s){return function(l){return s==null?n:Ii(s,l)}}var R9=mS(),N9=mS(!0);function Am(){return[]}function Mm(){return!1}function L9(){return{}}function k9(){return""}function j9(){return!0}function F9(s,l){if(s=Me(s),s<1||s>B)return[];var f=N,g=At(s,N);l=xe(l),s-=N;for(var x=$h(g,l);++f<s;)l(f);return x}function V9(s){return Ae(s)?et(s,Un):Jt(s)?[s]:Vt(_S(Be(s)))}function B9(s){var l=++J3;return Be(s)+l}var W9=Zl(function(s,l){return s+l},0),U9=im("ceil"),z9=Zl(function(s,l){return s/l},1),G9=im("floor");function Y9(s){return s&&s.length?zl(s,Ut,Uh):n}function H9(s,l){return s&&s.length?zl(s,xe(l,2),Uh):n}function q9(s){return g2(s,Ut)}function K9(s,l){return g2(s,xe(l,2))}function X9(s){return s&&s.length?zl(s,Ut,Hh):n}function Z9(s,l){return s&&s.length?zl(s,xe(l,2),Hh):n}var J9=Zl(function(s,l){return s*l},1),Q9=im("round"),e7=Zl(function(s,l){return s-l},0);function t7(s){return s&&s.length?Ih(s,Ut):0}function n7(s,l){return s&&s.length?Ih(s,xe(l,2)):0}return C.after=E8,C.ary=BS,C.assign=fB,C.assignIn=tT,C.assignInWith=uc,C.assignWith=dB,C.at=hB,C.before=WS,C.bind=gm,C.bindAll=v9,C.bindKey=US,C.castArray=L8,C.chain=jS,C.chunk=GF,C.compact=YF,C.concat=HF,C.cond=b9,C.conforms=x9,C.constant=Tm,C.countBy=t8,C.create=mB,C.curry=zS,C.curryRight=GS,C.debounce=YS,C.defaults=pB,C.defaultsDeep=gB,C.defer=C8,C.delay=P8,C.difference=qF,C.differenceBy=KF,C.differenceWith=XF,C.drop=ZF,C.dropRight=JF,C.dropRightWhile=QF,C.dropWhile=eV,C.fill=tV,C.filter=r8,C.flatMap=o8,C.flatMapDeep=a8,C.flatMapDepth=l8,C.flatten=RS,C.flattenDeep=nV,C.flattenDepth=rV,C.flip=A8,C.flow=S9,C.flowRight=T9,C.fromPairs=iV,C.functions=TB,C.functionsIn=EB,C.groupBy=c8,C.initial=oV,C.intersection=aV,C.intersectionBy=lV,C.intersectionWith=cV,C.invert=PB,C.invertBy=AB,C.invokeMap=f8,C.iteratee=Em,C.keyBy=d8,C.keys=gt,C.keysIn=Wt,C.map=ic,C.mapKeys=OB,C.mapValues=_B,C.matches=E9,C.matchesProperty=C9,C.memoize=oc,C.merge=IB,C.mergeWith=nT,C.method=P9,C.methodOf=A9,C.mixin=Cm,C.negate=ac,C.nthArg=O9,C.omit=$B,C.omitBy=DB,C.once=M8,C.orderBy=h8,C.over=_9,C.overArgs=O8,C.overEvery=I9,C.overSome=$9,C.partial=ym,C.partialRight=HS,C.partition=m8,C.pick=RB,C.pickBy=rT,C.property=uT,C.propertyOf=D9,C.pull=hV,C.pullAll=LS,C.pullAllBy=mV,C.pullAllWith=pV,C.pullAt=gV,C.range=R9,C.rangeRight=N9,C.rearg=_8,C.reject=y8,C.remove=yV,C.rest=I8,C.reverse=mm,C.sampleSize=b8,C.set=LB,C.setWith=kB,C.shuffle=x8,C.slice=vV,C.sortBy=T8,C.sortedUniq=CV,C.sortedUniqBy=PV,C.split=o9,C.spread=$8,C.tail=AV,C.take=MV,C.takeRight=OV,C.takeRightWhile=_V,C.takeWhile=IV,C.tap=YV,C.throttle=D8,C.thru=rc,C.toArray=JS,C.toPairs=iT,C.toPairsIn=sT,C.toPath=V9,C.toPlainObject=eT,C.transform=jB,C.unary=R8,C.union=$V,C.unionBy=DV,C.unionWith=RV,C.uniq=NV,C.uniqBy=LV,C.uniqWith=kV,C.unset=FB,C.unzip=pm,C.unzipWith=kS,C.update=VB,C.updateWith=BB,C.values=Ls,C.valuesIn=WB,C.without=jV,C.words=lT,C.wrap=N8,C.xor=FV,C.xorBy=VV,C.xorWith=BV,C.zip=WV,C.zipObject=UV,C.zipObjectDeep=zV,C.zipWith=GV,C.entries=iT,C.entriesIn=sT,C.extend=tT,C.extendWith=uc,Cm(C,C),C.add=W9,C.attempt=cT,C.camelCase=YB,C.capitalize=oT,C.ceil=U9,C.clamp=UB,C.clone=k8,C.cloneDeep=F8,C.cloneDeepWith=V8,C.cloneWith=j8,C.conformsTo=B8,C.deburr=aT,C.defaultTo=w9,C.divide=z9,C.endsWith=HB,C.eq=Tn,C.escape=qB,C.escapeRegExp=KB,C.every=n8,C.find=i8,C.findIndex=$S,C.findKey=yB,C.findLast=s8,C.findLastIndex=DS,C.findLastKey=vB,C.floor=G9,C.forEach=FS,C.forEachRight=VS,C.forIn=bB,C.forInRight=xB,C.forOwn=wB,C.forOwnRight=SB,C.get=xm,C.gt=W8,C.gte=U8,C.has=CB,C.hasIn=wm,C.head=NS,C.identity=Ut,C.includes=u8,C.indexOf=sV,C.inRange=zB,C.invoke=MB,C.isArguments=Ri,C.isArray=Ae,C.isArrayBuffer=z8,C.isArrayLike=Bt,C.isArrayLikeObject=ct,C.isBoolean=G8,C.isBuffer=Zr,C.isDate=Y8,C.isElement=H8,C.isEmpty=q8,C.isEqual=K8,C.isEqualWith=X8,C.isError=vm,C.isFinite=Z8,C.isFunction=ur,C.isInteger=qS,C.isLength=lc,C.isMap=KS,C.isMatch=J8,C.isMatchWith=Q8,C.isNaN=eB,C.isNative=tB,C.isNil=rB,C.isNull=nB,C.isNumber=XS,C.isObject=st,C.isObjectLike=ot,C.isPlainObject=Qo,C.isRegExp=bm,C.isSafeInteger=iB,C.isSet=ZS,C.isString=cc,C.isSymbol=Jt,C.isTypedArray=Ns,C.isUndefined=sB,C.isWeakMap=oB,C.isWeakSet=aB,C.join=uV,C.kebabCase=XB,C.last=pn,C.lastIndexOf=fV,C.lowerCase=ZB,C.lowerFirst=JB,C.lt=lB,C.lte=cB,C.max=Y9,C.maxBy=H9,C.mean=q9,C.meanBy=K9,C.min=X9,C.minBy=Z9,C.stubArray=Am,C.stubFalse=Mm,C.stubObject=L9,C.stubString=k9,C.stubTrue=j9,C.multiply=J9,C.nth=dV,C.noConflict=M9,C.noop=Pm,C.now=sc,C.pad=QB,C.padEnd=e9,C.padStart=t9,C.parseInt=n9,C.random=GB,C.reduce=p8,C.reduceRight=g8,C.repeat=r9,C.replace=i9,C.result=NB,C.round=Q9,C.runInContext=L,C.sample=v8,C.size=w8,C.snakeCase=s9,C.some=S8,C.sortedIndex=bV,C.sortedIndexBy=xV,C.sortedIndexOf=wV,C.sortedLastIndex=SV,C.sortedLastIndexBy=TV,C.sortedLastIndexOf=EV,C.startCase=a9,C.startsWith=l9,C.subtract=e7,C.sum=t7,C.sumBy=n7,C.template=c9,C.times=F9,C.toFinite=fr,C.toInteger=Me,C.toLength=QS,C.toLower=u9,C.toNumber=gn,C.toSafeInteger=uB,C.toString=Be,C.toUpper=f9,C.trim=d9,C.trimEnd=h9,C.trimStart=m9,C.truncate=p9,C.unescape=g9,C.uniqueId=B9,C.upperCase=y9,C.upperFirst=Sm,C.each=FS,C.eachRight=VS,C.first=NS,Cm(C,function(){var s={};return Bn(C,function(l,f){ze.call(C.prototype,f)||(s[f]=l)}),s}(),{chain:!1}),C.VERSION=r,un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){C[s].placeholder=C}),un(["drop","take"],function(s,l){Ne.prototype[s]=function(f){f=f===n?1:mt(Me(f),0);var g=this.__filtered__&&!l?new Ne(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},Ne.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),un(["filter","map","takeWhile"],function(s,l){var f=l+1,g=f==de||f==he;Ne.prototype[s]=function(x){var M=this.clone();return M.__iteratees__.push({iteratee:xe(x,3),type:f}),M.__filtered__=M.__filtered__||g,M}}),un(["head","last"],function(s,l){var f="take"+(l?"Right":"");Ne.prototype[s]=function(){return this[f](1).value()[0]}}),un(["initial","tail"],function(s,l){var f="drop"+(l?"":"Right");Ne.prototype[s]=function(){return this.__filtered__?new Ne(this):this[f](1)}}),Ne.prototype.compact=function(){return this.filter(Ut)},Ne.prototype.find=function(s){return this.filter(s).head()},Ne.prototype.findLast=function(s){return this.reverse().find(s)},Ne.prototype.invokeMap=_e(function(s,l){return typeof s=="function"?new Ne(this):this.map(function(f){return Ho(f,s,l)})}),Ne.prototype.reject=function(s){return this.filter(ac(xe(s)))},Ne.prototype.slice=function(s,l){s=Me(s);var f=this;return f.__filtered__&&(s>0||l<0)?new Ne(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)},Ne.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Ne.prototype.toArray=function(){return this.take(N)},Bn(Ne.prototype,function(s,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),x=C[g?"take"+(l=="last"?"Right":""):l],M=g||/^find/.test(l);x&&(C.prototype[l]=function(){var I=this.__wrapped__,R=g?[1]:arguments,j=I instanceof Ne,Y=R[0],H=j||Ae(I),X=function(Re){var Le=x.apply(C,zr([Re],R));return g&&ce?Le[0]:Le};H&&f&&typeof Y=="function"&&Y.length!=1&&(j=H=!1);var ce=this.__chain__,ge=!!this.__actions__.length,Te=M&&!ce,Oe=j&&!ge;if(!M&&H){I=Oe?I:new Ne(this);var Ee=s.apply(I,R);return Ee.__actions__.push({func:rc,args:[X],thisArg:n}),new dn(Ee,ce)}return Te&&Oe?s.apply(this,R):(Ee=this.thru(X),Te?g?Ee.value()[0]:Ee.value():Ee)})}),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);C.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(I){return l.apply(Ae(I)?I:[],x)})}}),Bn(Ne.prototype,function(s,l){var f=C[l];if(f){var g=f.name+"";ze.call(_s,g)||(_s[g]=[]),_s[g].push({name:l,func:f})}}),_s[Xl(n,w).name]=[{name:"wrapper",func:n}],Ne.prototype.clone=gj,Ne.prototype.reverse=yj,Ne.prototype.value=vj,C.prototype.at=HV,C.prototype.chain=qV,C.prototype.commit=KV,C.prototype.next=XV,C.prototype.plant=JV,C.prototype.reverse=QV,C.prototype.toJSON=C.prototype.valueOf=C.prototype.value=e8,C.prototype.first=C.prototype.head,Vo&&(C.prototype[Vo]=ZV),C},As=K3();Pi?((Pi.exports=As)._=As,Eh._=As):bt._=As}).call(f$)}(ho,ho.exports)),ho.exports}var yf=d$();const vf=_.createContext({});function bf(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const xf=typeof window<"u",Ev=xf?_.useLayoutEffect:_.useEffect,ka=_.createContext(null),wf=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class h$ extends ee.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=r instanceof HTMLElement&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function m$({children:e,isPresent:t,anchorX:n}){const r=_.useId(),i=_.useRef(null),o=_.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=_.useContext(wf);return _.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:h,right:m}=o.current;if(t||!i.current||!c||!u)return;const p=n==="left"?`left: ${h}`:`right: ${m}`;i.current.dataset.motionPopId=r;const y=document.createElement("style");return a&&(y.nonce=a),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(`
650
+ `)+Z+`return __p
651
+ }`;var Oe=cT(function(){return ke(M,ye+"return "+Z).apply(n,I)});if(Oe.source=Z,bm(Oe))throw Oe;return Oe}function f9(s){return Be(s).toLowerCase()}function d9(s){return Be(s).toUpperCase()}function h9(s,l,f){if(s=Be(s),s&&(f||l===n))return vw(s);if(!s||!(l=Zt(l)))return s;var g=wn(s),x=wn(l),M=bw(g,x),I=xw(g,x)+1;return Xr(g,M,I).join("")}function m9(s,l,f){if(s=Be(s),s&&(f||l===n))return s.slice(0,Sw(s)+1);if(!s||!(l=Zt(l)))return s;var g=wn(s),x=xw(g,wn(l))+1;return Xr(g,0,x).join("")}function p9(s,l,f){if(s=Be(s),s&&(f||l===n))return s.replace(bh,"");if(!s||!(l=Zt(l)))return s;var g=wn(s),x=bw(g,wn(l));return Xr(g,x).join("")}function g9(s,l){var f=X,g=ne;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(Ps(s)){var I=wn(s);M=I.length}if(f>=M)return s;var R=f-As(g);if(R<1)return g;var k=I?Xr(I,0,R).join(""):s.slice(0,R);if(x===n)return k+g;if(I&&(R+=k.length-R),xm(x)){if(s.slice(R).search(x)){var Y,H=k;for(x.global||(x=Lh(x.source,Be(V2.exec(x))+"g")),x.lastIndex=0;Y=x.exec(H);)var Z=Y.index;k=k.slice(0,Z===n?R:Z)}}else if(s.indexOf(Zt(x),R)!=R){var ce=k.lastIndexOf(x);ce>-1&&(k=k.slice(0,ce))}return k+g}function y9(s){return s=Be(s),s&&ML.test(s)?s.replace(k2,Yk):s}var v9=Rs(function(s,l,f){return s+(f?" ":"")+l.toUpperCase()}),Tm=uS("toUpperCase");function lT(s,l,f){return s=Be(s),l=f?n:l,l===n?Bk(s)?Kk(s):$k(s):s.match(l)||[]}var cT=Ie(function(s,l){try{return Kt(s,n,l)}catch(f){return bm(f)?f:new Pe(f)}}),b9=lr(function(s,l){return un(l,function(f){f=Un(f),or(s,f,ym(s[f],s))}),s});function x9(s){var l=s==null?0:s.length,f=xe();return s=l?et(s,function(g){if(typeof g[1]!="function")throw new fn(a);return[f(g[0]),g[1]]}):[],Ie(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 w9(s){return Yj(hn(s,m))}function Em(s){return function(){return s}}function S9(s,l){return s==null||s!==s?l:s}var T9=dS(),E9=dS(!0);function Ut(s){return s}function Cm(s){return Ww(typeof s=="function"?s:hn(s,m))}function C9(s){return zw(hn(s,m))}function P9(s,l){return Gw(s,hn(l,m))}var A9=Ie(function(s,l){return function(f){return Ho(f,s,l)}}),M9=Ie(function(s,l){return function(f){return Ho(s,f,l)}});function Pm(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,I=ur(s);return un(x,function(R){var k=l[R];s[R]=k,I&&(s.prototype[R]=function(){var Y=this.__chain__;if(M||Y){var H=s(this.__wrapped__),Z=H.__actions__=Vt(this.__actions__);return Z.push({func:k,args:arguments,thisArg:s}),H.__chain__=Y,H}return k.apply(s,zr([this.value()],arguments))})}),s}function O9(){return bt._===this&&(bt._=tj),this}function Am(){}function _9(s){return s=Me(s),Ie(function(l){return Yw(l,s)})}var I9=im(et),$9=im(hw),D9=im(Oh);function uT(s){return fm(s)?_h(Un(s)):cF(s)}function R9(s){return function(l){return s==null?n:Ii(s,l)}}var N9=mS(),L9=mS(!0);function Mm(){return[]}function Om(){return!1}function k9(){return{}}function j9(){return""}function F9(){return!0}function V9(s,l){if(s=Me(s),s<1||s>B)return[];var f=N,g=At(s,N);l=xe(l),s-=N;for(var x=Dh(g,l);++f<s;)l(f);return x}function B9(s){return Ae(s)?et(s,Un):Jt(s)?[s]:Vt(_S(Be(s)))}function W9(s){var l=++Qk;return Be(s)+l}var U9=Zl(function(s,l){return s+l},0),z9=sm("ceil"),G9=Zl(function(s,l){return s/l},1),Y9=sm("floor");function H9(s){return s&&s.length?zl(s,Ut,zh):n}function q9(s,l){return s&&s.length?zl(s,xe(l,2),zh):n}function K9(s){return gw(s,Ut)}function X9(s,l){return gw(s,xe(l,2))}function Z9(s){return s&&s.length?zl(s,Ut,qh):n}function J9(s,l){return s&&s.length?zl(s,xe(l,2),qh):n}var Q9=Zl(function(s,l){return s*l},1),e7=sm("round"),t7=Zl(function(s,l){return s-l},0);function n7(s){return s&&s.length?$h(s,Ut):0}function r7(s,l){return s&&s.length?$h(s,xe(l,2)):0}return C.after=C8,C.ary=BS,C.assign=dB,C.assignIn=tT,C.assignInWith=uc,C.assignWith=hB,C.at=mB,C.before=WS,C.bind=ym,C.bindAll=b9,C.bindKey=US,C.castArray=k8,C.chain=jS,C.chunk=YF,C.compact=HF,C.concat=qF,C.cond=x9,C.conforms=w9,C.constant=Em,C.countBy=n8,C.create=pB,C.curry=zS,C.curryRight=GS,C.debounce=YS,C.defaults=gB,C.defaultsDeep=yB,C.defer=P8,C.delay=A8,C.difference=KF,C.differenceBy=XF,C.differenceWith=ZF,C.drop=JF,C.dropRight=QF,C.dropRightWhile=eV,C.dropWhile=tV,C.fill=nV,C.filter=i8,C.flatMap=a8,C.flatMapDeep=l8,C.flatMapDepth=c8,C.flatten=RS,C.flattenDeep=rV,C.flattenDepth=iV,C.flip=M8,C.flow=T9,C.flowRight=E9,C.fromPairs=sV,C.functions=EB,C.functionsIn=CB,C.groupBy=u8,C.initial=aV,C.intersection=lV,C.intersectionBy=cV,C.intersectionWith=uV,C.invert=AB,C.invertBy=MB,C.invokeMap=d8,C.iteratee=Cm,C.keyBy=h8,C.keys=gt,C.keysIn=Wt,C.map=ic,C.mapKeys=_B,C.mapValues=IB,C.matches=C9,C.matchesProperty=P9,C.memoize=oc,C.merge=$B,C.mergeWith=nT,C.method=A9,C.methodOf=M9,C.mixin=Pm,C.negate=ac,C.nthArg=_9,C.omit=DB,C.omitBy=RB,C.once=O8,C.orderBy=m8,C.over=I9,C.overArgs=_8,C.overEvery=$9,C.overSome=D9,C.partial=vm,C.partialRight=HS,C.partition=p8,C.pick=NB,C.pickBy=rT,C.property=uT,C.propertyOf=R9,C.pull=mV,C.pullAll=LS,C.pullAllBy=pV,C.pullAllWith=gV,C.pullAt=yV,C.range=N9,C.rangeRight=L9,C.rearg=I8,C.reject=v8,C.remove=vV,C.rest=$8,C.reverse=pm,C.sampleSize=x8,C.set=kB,C.setWith=jB,C.shuffle=w8,C.slice=bV,C.sortBy=E8,C.sortedUniq=PV,C.sortedUniqBy=AV,C.split=a9,C.spread=D8,C.tail=MV,C.take=OV,C.takeRight=_V,C.takeRightWhile=IV,C.takeWhile=$V,C.tap=HV,C.throttle=R8,C.thru=rc,C.toArray=JS,C.toPairs=iT,C.toPairsIn=sT,C.toPath=B9,C.toPlainObject=eT,C.transform=FB,C.unary=N8,C.union=DV,C.unionBy=RV,C.unionWith=NV,C.uniq=LV,C.uniqBy=kV,C.uniqWith=jV,C.unset=VB,C.unzip=gm,C.unzipWith=kS,C.update=BB,C.updateWith=WB,C.values=ks,C.valuesIn=UB,C.without=FV,C.words=lT,C.wrap=L8,C.xor=VV,C.xorBy=BV,C.xorWith=WV,C.zip=UV,C.zipObject=zV,C.zipObjectDeep=GV,C.zipWith=YV,C.entries=iT,C.entriesIn=sT,C.extend=tT,C.extendWith=uc,Pm(C,C),C.add=U9,C.attempt=cT,C.camelCase=HB,C.capitalize=oT,C.ceil=z9,C.clamp=zB,C.clone=j8,C.cloneDeep=V8,C.cloneDeepWith=B8,C.cloneWith=F8,C.conformsTo=W8,C.deburr=aT,C.defaultTo=S9,C.divide=G9,C.endsWith=qB,C.eq=Tn,C.escape=KB,C.escapeRegExp=XB,C.every=r8,C.find=s8,C.findIndex=$S,C.findKey=vB,C.findLast=o8,C.findLastIndex=DS,C.findLastKey=bB,C.floor=Y9,C.forEach=FS,C.forEachRight=VS,C.forIn=xB,C.forInRight=wB,C.forOwn=SB,C.forOwnRight=TB,C.get=wm,C.gt=U8,C.gte=z8,C.has=PB,C.hasIn=Sm,C.head=NS,C.identity=Ut,C.includes=f8,C.indexOf=oV,C.inRange=GB,C.invoke=OB,C.isArguments=Ri,C.isArray=Ae,C.isArrayBuffer=G8,C.isArrayLike=Bt,C.isArrayLikeObject=ct,C.isBoolean=Y8,C.isBuffer=Zr,C.isDate=H8,C.isElement=q8,C.isEmpty=K8,C.isEqual=X8,C.isEqualWith=Z8,C.isError=bm,C.isFinite=J8,C.isFunction=ur,C.isInteger=qS,C.isLength=lc,C.isMap=KS,C.isMatch=Q8,C.isMatchWith=eB,C.isNaN=tB,C.isNative=nB,C.isNil=iB,C.isNull=rB,C.isNumber=XS,C.isObject=st,C.isObjectLike=ot,C.isPlainObject=Qo,C.isRegExp=xm,C.isSafeInteger=sB,C.isSet=ZS,C.isString=cc,C.isSymbol=Jt,C.isTypedArray=Ls,C.isUndefined=oB,C.isWeakMap=aB,C.isWeakSet=lB,C.join=fV,C.kebabCase=ZB,C.last=pn,C.lastIndexOf=dV,C.lowerCase=JB,C.lowerFirst=QB,C.lt=cB,C.lte=uB,C.max=H9,C.maxBy=q9,C.mean=K9,C.meanBy=X9,C.min=Z9,C.minBy=J9,C.stubArray=Mm,C.stubFalse=Om,C.stubObject=k9,C.stubString=j9,C.stubTrue=F9,C.multiply=Q9,C.nth=hV,C.noConflict=O9,C.noop=Am,C.now=sc,C.pad=e9,C.padEnd=t9,C.padStart=n9,C.parseInt=r9,C.random=YB,C.reduce=g8,C.reduceRight=y8,C.repeat=i9,C.replace=s9,C.result=LB,C.round=e7,C.runInContext=L,C.sample=b8,C.size=S8,C.snakeCase=o9,C.some=T8,C.sortedIndex=xV,C.sortedIndexBy=wV,C.sortedIndexOf=SV,C.sortedLastIndex=TV,C.sortedLastIndexBy=EV,C.sortedLastIndexOf=CV,C.startCase=l9,C.startsWith=c9,C.subtract=t7,C.sum=n7,C.sumBy=r7,C.template=u9,C.times=V9,C.toFinite=fr,C.toInteger=Me,C.toLength=QS,C.toLower=f9,C.toNumber=gn,C.toSafeInteger=fB,C.toString=Be,C.toUpper=d9,C.trim=h9,C.trimEnd=m9,C.trimStart=p9,C.truncate=g9,C.unescape=y9,C.uniqueId=W9,C.upperCase=v9,C.upperFirst=Tm,C.each=FS,C.eachRight=VS,C.first=NS,Pm(C,function(){var s={};return Bn(C,function(l,f){ze.call(C.prototype,f)||(s[f]=l)}),s}(),{chain:!1}),C.VERSION=r,un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){C[s].placeholder=C}),un(["drop","take"],function(s,l){Ne.prototype[s]=function(f){f=f===n?1:mt(Me(f),0);var g=this.__filtered__&&!l?new Ne(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},Ne.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==he;Ne.prototype[s]=function(x){var M=this.clone();return M.__iteratees__.push({iteratee:xe(x,3),type:f}),M.__filtered__=M.__filtered__||g,M}}),un(["head","last"],function(s,l){var f="take"+(l?"Right":"");Ne.prototype[s]=function(){return this[f](1).value()[0]}}),un(["initial","tail"],function(s,l){var f="drop"+(l?"":"Right");Ne.prototype[s]=function(){return this.__filtered__?new Ne(this):this[f](1)}}),Ne.prototype.compact=function(){return this.filter(Ut)},Ne.prototype.find=function(s){return this.filter(s).head()},Ne.prototype.findLast=function(s){return this.reverse().find(s)},Ne.prototype.invokeMap=Ie(function(s,l){return typeof s=="function"?new Ne(this):this.map(function(f){return Ho(f,s,l)})}),Ne.prototype.reject=function(s){return this.filter(ac(xe(s)))},Ne.prototype.slice=function(s,l){s=Me(s);var f=this;return f.__filtered__&&(s>0||l<0)?new Ne(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)},Ne.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Ne.prototype.toArray=function(){return this.take(N)},Bn(Ne.prototype,function(s,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),x=C[g?"take"+(l=="last"?"Right":""):l],M=g||/^find/.test(l);x&&(C.prototype[l]=function(){var I=this.__wrapped__,R=g?[1]:arguments,k=I instanceof Ne,Y=R[0],H=k||Ae(I),Z=function(Re){var Le=x.apply(C,zr([Re],R));return g&&ce?Le[0]:Le};H&&f&&typeof Y=="function"&&Y.length!=1&&(k=H=!1);var ce=this.__chain__,ye=!!this.__actions__.length,Te=M&&!ce,Oe=k&&!ye;if(!M&&H){I=Oe?I:new Ne(this);var Ee=s.apply(I,R);return Ee.__actions__.push({func:rc,args:[Z],thisArg:n}),new dn(Ee,ce)}return Te&&Oe?s.apply(this,R):(Ee=this.thru(Z),Te?g?Ee.value()[0]:Ee.value():Ee)})}),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);C.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(I){return l.apply(Ae(I)?I:[],x)})}}),Bn(Ne.prototype,function(s,l){var f=C[l];if(f){var g=f.name+"";ze.call(Is,g)||(Is[g]=[]),Is[g].push({name:l,func:f})}}),Is[Xl(n,w).name]=[{name:"wrapper",func:n}],Ne.prototype.clone=yj,Ne.prototype.reverse=vj,Ne.prototype.value=bj,C.prototype.at=qV,C.prototype.chain=KV,C.prototype.commit=XV,C.prototype.next=ZV,C.prototype.plant=QV,C.prototype.reverse=e8,C.prototype.toJSON=C.prototype.valueOf=C.prototype.value=t8,C.prototype.first=C.prototype.head,Vo&&(C.prototype[Vo]=JV),C},Ms=Xk();Pi?((Pi.exports=Ms)._=Ms,Ch._=Ms):bt._=Ms}).call(f$)}(mo,mo.exports)),mo.exports}var yf=d$();const vf=_.createContext({});function bf(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const xf=typeof window<"u",Cv=xf?_.useLayoutEffect:_.useEffect,ka=_.createContext(null),wf=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class h$ extends ee.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=r instanceof HTMLElement&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function m$({children:e,isPresent:t,anchorX:n}){const r=_.useId(),i=_.useRef(null),o=_.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=_.useContext(wf);return _.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:h,right:m}=o.current;if(t||!i.current||!c||!u)return;const p=n==="left"?`left: ${h}`:`right: ${m}`;i.current.dataset.motionPopId=r;const y=document.createElement("style");return a&&(y.nonce=a),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(`
652
652
  [data-motion-pop-id="${r}"] {
653
653
  position: absolute !important;
654
654
  width: ${c}px !important;
@@ -656,19 +656,19 @@ function print() { __p += __j.call(arguments, '') }
656
656
  ${p}px !important;
657
657
  top: ${d}px !important;
658
658
  }
659
- `),()=>{document.head.removeChild(y)}},[t]),v.jsx(h$,{isPresent:t,childRef:i,sizeRef:o,children:ee.cloneElement(e,{ref:i})})}const p$=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=bf(g$),d=_.useId(),h=_.useCallback(p=>{u.set(p,!0);for(const y of u.values())if(!y)return;r&&r()},[u,r]),m=_.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),o?[Math.random(),h]:[n,h]);return _.useMemo(()=>{u.forEach((p,y)=>u.set(y,!1))},[n]),ee.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=v.jsx(m$,{isPresent:n,anchorX:c,children:e})),v.jsx(ka.Provider,{value:m,children:e})};function g$(){return new Map}function Cv(e=!0){const t=_.useContext(ka);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=_.useId();_.useEffect(()=>{if(e)return i(o)},[e]);const a=_.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const ja=e=>e.key||"";function Pv(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const Kn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=Cv(a),h=_.useMemo(()=>Pv(e),[e]),m=a&&!u?[]:h.map(ja),p=_.useRef(!0),y=_.useRef(h),S=bf(()=>new Map),[b,T]=_.useState(h),[w,E]=_.useState(h);Ev(()=>{p.current=!1,y.current=h;for(let A=0;A<w.length;A++){const D=ja(w[A]);m.includes(D)?S.delete(D):S.get(D)!==!0&&S.set(D,!1)}},[w,m.length,m.join("-")]);const P=[];if(h!==b){let A=[...h];for(let D=0;D<w.length;D++){const k=w[D],F=ja(k);m.includes(F)||(A.splice(D,0,k),P.push(k))}return o==="wait"&&P.length&&(A=P),E(Pv(A)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:$}=_.useContext(vf);return v.jsx(v.Fragment,{children:w.map(A=>{const D=ja(A),k=a&&!u?!1:h===w||m.includes(D),F=()=>{if(S.has(D))S.set(D,!0);else return;let z=!0;S.forEach(J=>{J||(z=!1)}),z&&($==null||$(),E(y.current),a&&(d==null||d()),r&&r())};return v.jsx(p$,{isPresent:k,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:k?void 0:F,anchorX:c,children:A},D)})})},Nt=e=>e;let ts=Nt,Er=Nt;process.env.NODE_ENV!=="production"&&(ts=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Er=(e,t)=>{if(!e)throw new Error(t)});const y$={useManualTiming:!1},Fa=["read","resolveKeyframes","update","preRender","render","postRender"],Av={value:null};function v$(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,p=!1,y=!1)=>{const b=y&&i?n:r;return p&&a.add(m),b.has(m)||b.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&Av.value&&Av.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const b$=40;function Mv(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Fa.reduce((w,E)=>(w[E]=v$(o,t?E:void 0),w),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:p}=a,y=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,b$),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,E)=>{const P=a[E];return w[E]=($,A=!1,D=!1)=>(n||S(),P.schedule($,A,D)),w},{}),cancel:w=>{for(let E=0;E<Fa.length;E++)a[Fa[E]].cancel(w)},state:i,steps:a}}const{schedule:He,cancel:Cr,state:vt,steps:Sf}=Mv(typeof requestAnimationFrame<"u"?requestAnimationFrame:Nt,!0),Ov=_.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"]},ns={};for(const e in _v)ns[e]={isEnabled:t=>_v[e].some(n=>!!t[n])};function x$(e){for(const t in e)ns[t]={...ns[t],...e[t]}}const w$=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")||w$.has(e)}let Iv=e=>!Va(e);function S$(e){e&&(Iv=t=>t.startsWith("on")?!Va(t):e(t))}try{S$(require("@emotion/is-prop-valid").default)}catch{}function T$(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 E$(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=_.createContext({});function Ua(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function mo(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=>mo(e[t]))}function Dv(e){return!!(za(e)||e.variants)}function C$(e,t){if(za(e)){const{initial:n,animate:r}=e;return{initial:n===!1||mo(n)?n:void 0,animate:mo(r)?r:void 0}}return e.inherit!==!1?t:{}}function P$(e){const{initial:t,animate:n}=C$(e,_.useContext(Wa));return _.useMemo(()=>({initial:t,animate:n}),[Rv(t),Rv(n)])}function Rv(e){return Array.isArray(e)?e.join(" "):e}const A$=Symbol.for("motionComponentSymbol");function rs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function M$(e,t,n){return _.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):rs(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=_.createContext({});function O$(e,t,n,r,i){var o,a;const{visualElement:c}=_.useContext(Wa),u=_.useContext(Ov),d=_.useContext(ka),h=_.useContext(wf).reducedMotion,m=_.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=_.useContext(Lv);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&_$(m.current,n,i,y);const S=_.useRef(!1);_.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const b=n[Nv],T=_.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,b)));return Ev(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Cf.render(p.render),T.current&&p.animationState&&p.animationState.animateChanges())}),_.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 _$(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:kv(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&rs(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function kv(e){if(e)return e.options.allowProjection!==!1?e.projection:kv(e.parent)}function I$({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&x$(e);function c(d,h){let m;const p={..._.useContext(wf),...d,layoutId:$$(d)},{isStatic:y}=p,S=P$(d),b=r(d,y);if(!y&&xf){D$(p,e);const T=R$(p);m=T.MeasureLayout,S.visualElement=O$(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,M$(b,S.visualElement,h),b,y,S.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const u=_.forwardRef(c);return u[A$]=i,u}function $$({layoutId:e}){const t=_.useContext(vf).id;return t&&e!==void 0?t+"-"+e:e}function D$(e,t){const n=_.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?ts(!1,r):Er(!1,r)}}function R$(e){const{drag:t,layout:n}=ns;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("--"),N$=jv("var(--"),Mf=e=>N$(e)?L$.test(e.split("/*")[0].trim()):!1,L$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,po={};function k$(e){for(const t in e)po[t]=e[t],Af(t)&&(po[t].isCSSVariable=!0)}const is=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],li=new Set(is);function Fv(e,{layout:t,layoutId:n}){return li.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!po[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,ss={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},go={...ss,transform:e=>Xn(0,1,e)},Ga={...ss,default:1},yo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pr=yo("deg"),Rn=yo("%"),Se=yo("px"),j$=yo("vh"),F$=yo("vw"),Bv={...Rn,parse:e=>Rn.parse(e)/100,transform:e=>Rn.transform(e*100)},V$={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},B$={rotate:Pr,rotateX:Pr,rotateY:Pr,rotateZ:Pr,scale:Ga,scaleX:Ga,scaleY:Ga,scaleZ:Ga,skew:Pr,skewX:Pr,skewY:Pr,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:go,originX:Bv,originY:Bv,originZ:Se},Wv={...ss,transform:Math.round},Of={...V$,...B$,zIndex:Wv,size:Se,fillOpacity:go,strokeOpacity:go,numOctaves:Wv},W$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},U$=is.length;function z$(e,t,n){let r="",i=!0;for(let o=0;o<U$;o++){const a=is[o],c=e[a];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(a.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Vv(c,Of[a]);if(!u){i=!1;const h=W$[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function _f(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(li.has(u)){a=!0;continue}else if(Af(u)){i[u]=d;continue}else{const h=Vv(d,Of[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=z$(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${d} ${h}`}}const If=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Uv(e,t,n){for(const r in t)!Et(t[r])&&!Fv(r,n)&&(e[r]=t[r])}function G$({transformTemplate:e},t){return _.useMemo(()=>{const n=If();return _f(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Y$(e,t){const n=e.style||{},r={};return Uv(r,n,e),Object.assign(r,G$(e,t)),r}function H$(e,t){const n={},r=Y$(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 q$=["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:!!(q$.indexOf(e)>-1||/[A-Z]/u.test(e))}const K$={offset:"stroke-dashoffset",array:"stroke-dasharray"},X$={offset:"strokeDashoffset",array:"strokeDasharray"};function Z$(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?K$:X$;e[o.offset]=Se.transform(-r);const a=Se.transform(t),c=Se.transform(n);e[o.array]=`${a} ${c}`}function zv(e,t,n){return typeof e=="string"?e:Se.transform(t+n*e)}function J$(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:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(_f(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:y,dimensions:S}=e;p.transform&&(S&&(y.transform=p.transform),delete p.transform),S&&(i!==void 0||o!==void 0||y.transform)&&(y.transformOrigin=J$(S,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&Z$(p,a,c,u,!1)}const Gv=()=>({...If(),attrs:{}}),Rf=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Q$(e,t,n,r){const i=_.useMemo(()=>{const o=Gv();return Df(o,t,Rf(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Uv(o,e.style,e),i.style={...o,...i.style}}return i}function eD(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=($f(n)?Q$:H$)(r,o,a,n),d=T$(r,typeof n=="string",e),h=n!==_.Fragment?{...d,...u,ref:i}:{},{children:m}=r,p=_.useMemo(()=>Et(m)?m.get():m,[m]);return _.createElement(n,{...h,children:p})}}function Yv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Nf(e,t,n,r){if(typeof t=="function"){const[i,o]=Yv(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Yv(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Lf=e=>Array.isArray(e),tD=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),nD=e=>Lf(e)?e[e.length-1]||0:e;function Ya(e){const t=Et(e)?e.get():e;return tD(t)?t.toValue():t}function rD({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:iD(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Hv=e=>(t,n)=>{const r=_.useContext(Wa),i=_.useContext(ka),o=()=>rD(e,t,r,i);return n?o():bf(o)};function iD(e,t,n,r){const i={},o=r(e,{});for(const p in o)i[p]=Ya(o[p]);let{initial:a,animate:c}=e;const u=za(e),d=Dv(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?c:a;if(m&&typeof m!="boolean"&&!Ua(m)){const p=Array.isArray(m)?m:[m];for(let y=0;y<p.length;y++){const S=Nf(e,p[y]);if(S){const{transitionEnd:b,transition:T,...w}=S;for(const E in w){let P=w[E];if(Array.isArray(P)){const $=h?P.length-1:0;P=P[$]}P!==null&&(i[E]=P)}for(const E in b)i[E]=b[E]}}}return i}function kf(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(Et(i[a])||t.style&&Et(t.style[a])||Fv(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}const sD={useVisualState:Hv({scrapeMotionValuesFromProps:kf,createRenderState:If})};function qv(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function Kv(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Xv=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Zv(e,t,n,r){Kv(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Xv.has(i)?i:Pf(i),t.attrs[i])}function Jv(e,t,n){const r=kf(e,t,n);for(const i in e)if(Et(e[i])||Et(t[i])){const o=is.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const Qv=["x","y","width","height","cx","cy","r"],oD={useVisualState:Hv({scrapeMotionValuesFromProps:Jv,createRenderState:Gv,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in i)if(li.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<Qv.length;c++){const u=Qv[c];e[u]!==t[u]&&(a=!0)}a&&He.read(()=>{qv(n,r),He.render(()=>{Df(r,i,Rf(n.tagName),e.transformTemplate),Zv(n,r)})})}})};function aD(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...$f(r)?oD:sD,preloadedFeatures:e,useRender:eD(i),createVisualElement:t,Component:r};return I$(a)}}function vo(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",...is]);function Ff(e,t){e.indexOf(t)===-1&&e.push(t)}function Vf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Bf{constructor(){this.subscriptions=[]}add(t){return Ff(this.subscriptions,t),()=>Vf(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tb(e,t){return t?e*(1e3/t):0}let Ha;function lD(){Ha=void 0}const Nn={now:()=>(Ha===void 0&&Nn.set(vt.isProcessing||y$.useManualTiming?vt.timestamp:performance.now()),Ha),set:e=>{Ha=e,queueMicrotask(lD)}},nb=30,cD=e=>!isNaN(parseFloat(e));class uD{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Nn.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Nn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=cD(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 bo(e,t){return new uD(e,t)}function fD(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,bo(n))}function dD(e,t){const n=vo(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=nD(o[a]);fD(e,a,c)}}function hD(e){return!!(Et(e)&&e.add)}function Wf(e,t){const n=e.getValue("willChange");if(hD(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 mD=Uf(()=>window.ScrollTimeline!==void 0);class pD{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(mD()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class gD extends pD{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",yD={linearEasing:void 0};function vD(e,t){const n=Uf(e);return()=>{var r;return(r=yD[t])!==null&&r!==void 0?r:n()}}const qa=vD(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),os=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},sb=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(os(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function ob(e){return!!(typeof e=="function"&&qa()||!e||typeof e=="string"&&(e in Yf||qa())||Gf(e)||Array.isArray(e)&&e.every(ob))}const xo=([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:xo([0,.65,.55,1]),circOut:xo([.55,0,1,.45]),backIn:xo([.31,.01,.66,-.59]),backOut:xo([.33,1.53,.69,.99])};function ab(e,t){if(e)return typeof e=="function"&&qa()?sb(e,t):Gf(e)?xo(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,bD=1e-7,xD=12;function wD(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=lb(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>bD&&++c<xD);return a}function wo(e,t,n,r){if(e===t&&n===r)return Nt;const i=o=>wD(o,0,1,e,n);return o=>o===0||o===1?o:lb(i(o),t,r)}const cb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ub=e=>t=>1-e(1-t),fb=wo(.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 SD(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||gb(e):!0}const So=e=>Math.round(e*1e5)/1e5,Kf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function TD(e){return e==null}const ED=/^(?:#[\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"&&ED.test(n)&&n.startsWith(e)||t&&!TD(n)&&Object.prototype.hasOwnProperty.call(n,t)),yb=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Kf);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},CD=e=>Xn(0,255,e),Zf={...ss,transform:e=>Math.round(CD(e))},ci={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)+", "+So(go.transform(r))+")"};function PD(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:PD,transform:ci.transform},as={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(So(t))+", "+Rn.transform(So(n))+", "+So(go.transform(r))+")"},Ct={test:e=>ci.test(e)||Jf.test(e)||as.test(e),parse:e=>ci.test(e)?ci.parse(e):as.test(e)?as.parse(e):Jf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ci.transform(e):as.transform(e)},AD=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function MD(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(AD))===null||n===void 0?void 0:n.length)||0)>0}const vb="number",bb="color",OD="var",_D="var(",xb="${}",ID=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function To(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(ID,u=>(Ct.test(u)?(r.color.push(o),i.push(bb),n.push(Ct.parse(u))):u.startsWith(_D)?(r.var.push(o),i.push(OD),n.push(u)):(r.number.push(o),i.push(vb),n.push(parseFloat(u))),++o,xb)).split(xb);return{values:n,split:c,indexes:r,types:i}}function wb(e){return To(e).values}function Sb(e){const{split:t,types:n}=To(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const c=n[a];c===vb?o+=So(i[a]):c===bb?o+=Ct.transform(i[a]):o+=i[a]}return o}}const $D=e=>typeof e=="number"?0:e;function DD(e){const t=wb(e);return Sb(e)(t.map($D))}const Ar={test:MD,parse:wb,createTransformer:Sb,getAnimatableNone:DD},RD=new Set(["brightness","contrast","saturate","opacity"]);function ND(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Kf)||[];if(!r)return e;const i=n.replace(r,"");let o=RD.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const LD=/\b([a-z-]*)\(.*?\)/gu,Qf={...Ar,getAnimatableNone:e=>{const t=e.match(LD);return t?t.map(ND).join(" "):e}},kD={...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=>kD[e];function Eb(e,t){let n=Tb(e);return n!==Qf&&(n=Ar),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const jD=new Set(["auto","none","0"]);function FD(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!jD.has(o)&&To(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Eb(n,i)}const ui=e=>e*180/Math.PI,ed=e=>{const t=ui(Math.atan2(e[1],e[0]));return td(t)},VD={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=>ui(Math.atan(e[1])),skewY:e=>ui(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]),BD={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(ui(Math.atan2(e[6],e[5]))),rotateY:e=>td(ui(Math.atan2(-e[2],e[0]))),rotateZ:Cb,rotate:Cb,skewX:e=>ui(Math.atan(e[4])),skewY:e=>ui(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=BD,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=VD,i=c}if(!i)return Mb(t);const o=r[t],a=i[1].split(",").map(UD);return typeof o=="function"?o(a):a[o]}const WD=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return nd(n,t)};function UD(e){return parseFloat(e.trim())}const Ob=e=>e===ss||e===Se,zD=new Set(["x","y","z"]),GD=is.filter(e=>!zD.has(e));function YD(e){const t=[];return GD.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ls={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")};ls.translateX=ls.x,ls.translateY=ls.y;const fi=new Set;let rd=!1,id=!1;function _b(){if(id){const e=Array.from(fi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=YD(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}id=!1,rd=!1,fi.forEach(e=>e.complete()),fi.clear()}function Ib(){fi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(id=!0)})}function HD(){Ib(),_b()}class sd{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(fi.add(this),rd||(rd=!0,He.read(Ib),He.resolveKeyframes(_b))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),fi.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,fi.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const $b=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),qD=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function KD(e){const t=qD.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const XD=4;function Db(e,t,n=1){Er(n<=XD,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=KD(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return $b(a)?parseFloat(a):a}return Mf(i)?Db(i,t,n+1):i}const Rb=e=>t=>t.test(e),Nb=[ss,Se,Rn,Pr,F$,j$,{test:e=>e==="auto",parse:e=>e}],Lb=e=>Nb.find(Rb(e));class kb extends sd{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Mf(d))){const h=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,o]=t,a=Lb(i),c=Lb(o);if(a!==c)if(Ob(a)&&Ob(c))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)SD(t[i])&&r.push(i);r.length&&FD(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=ls[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=ls[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 ZD(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 JD(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=jb(i,t),c=jb(o,t);return ts(a===c,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:ZD(e)||(n==="spring"||zf(n))&&r}const QD=e=>e!==null;function Ka(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(QD),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const e4=40;class Fb{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Nn.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>e4?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&HD(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Nn.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!JD(t,r,i,o))if(a)this.options.duration=0;else{u&&u(Ka(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const od=2e4;function Vb(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<od;)t+=n,r=e.next(t);return t>=od?1/0:t}const rt=(e,t,n)=>e+(t-e)*n;function ad(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function t4({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=ad(u,c,e+1/3),o=ad(u,c,e),a=ad(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Xa(e,t){return n=>n>0?t:e}const ld=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},n4=[Jf,ci,as],r4=e=>n4.find(t=>t.test(e));function Bb(e){const t=r4(e);if(ts(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===as&&(n=t4(n)),n}const Wb=(e,t)=>{const n=Bb(e),r=Bb(t);if(!n||!r)return Xa(e,t);const i={...n};return o=>(i.red=ld(n.red,r.red,o),i.green=ld(n.green,r.green,o),i.blue=ld(n.blue,r.blue,o),i.alpha=rt(n.alpha,r.alpha,o),ci.transform(i))},i4=(e,t)=>n=>t(e(n)),Eo=(...e)=>e.reduce(i4),cd=new Set(["none","hidden"]);function s4(e,t){return cd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function o4(e,t){return n=>rt(e,t,n)}function ud(e){return typeof e=="number"?o4:typeof e=="string"?Mf(e)?Xa:Ct.test(e)?Wb:c4:Array.isArray(e)?Ub:typeof e=="object"?Ct.test(e)?Wb:a4:Xa}function Ub(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>ud(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function a4(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=ud(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function l4(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][i[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,i[a]++}return r}const c4=(e,t)=>{const n=Ar.createTransformer(t),r=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?cd.has(e)&&!i.values.length||cd.has(t)&&!r.values.length?s4(e,t):Eo(Ub(l4(r,i),i.values),n):(ts(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Xa(e,t))};function zb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?rt(e,t,n):ud(e)(e,t)}const u4=5;function Gb(e,t,n){const r=Math.max(t-u4,0);return tb(n-e(r),t-r)}const it={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Yb=.001;function f4({duration:e=it.duration,bounce:t=it.bounce,velocity:n=it.velocity,mass:r=it.mass}){let i,o;ts(e<=Ln(it.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Xn(it.minDamping,it.maxDamping,a),e=Xn(it.minDuration,it.maxDuration,Zn(e)),a<1?(i=d=>{const h=d*a,m=h*e,p=h-n,y=fd(d,a),S=Math.exp(-m);return Yb-p/y*S},o=d=>{const m=d*a*e,p=m*n+n,y=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),b=fd(Math.pow(d,2),a);return(-i(d)+Yb>0?-1:1)*((p-y)*S)/b}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const c=5/e,u=h4(i,o,c);if(e=Ln(e),isNaN(u))return{stiffness:it.stiffness,damping:it.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const d4=12;function h4(e,t,n){let r=n;for(let i=1;i<d4;i++)r=r-e(r)/t(r);return r}function fd(e,t){return e*Math.sqrt(1-t*t)}const m4=["duration","bounce"],p4=["stiffness","damping","mass"];function Hb(e,t){return t.some(n=>e[n]!==void 0)}function g4(e){let t={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!Hb(e,p4)&&Hb(e,m4))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Xn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:it.mass,stiffness:i,damping:o}}else{const n=f4(e);t={...t,...n,mass:it.mass},t.isResolvedFromDuration=!0}return t}function qb(e=it.visualDuration,t=it.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:m,velocity:p,isResolvedFromDuration:y}=g4({...n,velocity:-Zn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=a-o,w=Zn(Math.sqrt(u/h)),E=Math.abs(T)<5;r||(r=E?it.restSpeed.granular:it.restSpeed.default),i||(i=E?it.restDelta.granular:it.restDelta.default);let P;if(b<1){const A=fd(w,b);P=D=>{const k=Math.exp(-b*w*D);return a-k*((S+b*w*T)/A*Math.sin(A*D)+T*Math.cos(A*D))}}else if(b===1)P=A=>a-Math.exp(-w*A)*(T+(S+w*T)*A);else{const A=w*Math.sqrt(b*b-1);P=D=>{const k=Math.exp(-b*w*D),F=Math.min(A*D,300);return a-k*((S+b*w*T)*Math.sinh(F)+A*T*Math.cosh(F))/A}}const $={calculatedDuration:y&&m||null,next:A=>{const D=P(A);if(y)c.done=A>=m;else{let k=0;b<1&&(k=A===0?Ln(S):Gb(P,A,D));const F=Math.abs(k)<=r,z=Math.abs(a-D)<=i;c.done=F&&z}return c.value=c.done?a:D,c},toString:()=>{const A=Math.min(Vb($),od),D=sb(k=>$.next(A*k).value,A,30);return A+"ms "+D}};return $}function Kb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},y=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=a===void 0?T:a(T);w!==T&&(b=w-m);const E=F=>-b*Math.exp(-F/r),P=F=>w+E(F),$=F=>{const z=E(F),J=P(F);p.done=Math.abs(z)<=d,p.value=p.done?w:J};let A,D;const k=F=>{y(p.value)&&(A=F,D=qb({keyframes:[p.value,S(p.value)],velocity:Gb(P,F,p.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return k(0),{calculatedDuration:null,next:F=>{let z=!1;return!D&&A===void 0&&(z=!0,$(F),k(F)),A!==void 0&&F>=A?D.next(F-A):(!z&&$(F),p)}}}const y4=wo(.42,0,1,1),v4=wo(0,0,.58,1),Xb=wo(.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 wo(t,n,r,i)}else if(typeof e=="string")return Er(Zb[e]!==void 0,`Invalid easing type '${e}'`),Zb[e];return e};function x4(e,t,n){const r=[],i=n||zb,o=e.length-1;for(let a=0;a<o;a++){let c=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Nt:t;c=Eo(u,c)}r.push(c)}return r}function w4(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Er(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=x4(t,r,i),u=c.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const p=os(e[m],e[m+1],h);return c[m](p)};return n?h=>d(Xn(e[0],e[o-1],h)):d}function S4(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=os(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 Co({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=b4(r)?r.map(Jb):Jb(r),o={done:!1,value:t[0]},a=E4(n&&n.length===t.length?n:T4(t),e),c=w4(a,t,{ease:Array.isArray(i)?i:C4(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const P4=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>Cr(t),now:()=>vt.isProcessing?vt.timestamp:Nn.now()}},A4={decay:Kb,inertia:Kb,tween:Co,keyframes:Co,spring:qb},M4=e=>e/100;class dd extends Fb{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||sd,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=zf(n)?n:A4[n]||Co;let u,d;process.env.NODE_ENV!=="production"&&c!==Co&&Er(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==Co&&typeof t[0]!="number"&&(u=Eo(M4,zb(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=Vb(h));const{calculatedDuration:m}=h,p=m+i,y=p*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:y,repeatType:S,repeatDelay:b,onUpdate: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),E=this.speed>=0?w<0:w>h;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let P=this.currentTime,$=o;if(y){const F=Math.min(this.currentTime,h)/m;let z=Math.floor(F),J=F%1;!J&&F>=1&&(J=1),J===1&&z--,z=Math.min(z,y+1),!!(z%2)&&(S==="reverse"?(J=1-J,b&&(J-=b/m)):S==="mirror"&&($=a)),P=Xn(0,1,J)*m}const A=E?{done:!1,value:u[0]}:$.next(P);c&&(A.value=c(A.value));let{done:D}=A;!E&&d!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return k&&i!==void 0&&(A.value=Ka(u,this.options,i)),T&&T(A.value),k&&this.finish(),A}get duration(){const{resolved:t}=this;return t?Zn(t.calculatedDuration):0}get time(){return Zn(this.currentTime)}set time(t){t=Ln(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Zn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=P4,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const O4=new Set(["opacity","clipPath","filter","transform"]);function _4(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=ab(c,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const I4=Uf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Za=10,$4=2e4;function D4(e){return zf(e.type)||e.type==="spring"||!ob(e.ease)}function R4(e,t){const n=new dd({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<$4;)r=n.sample(o),i.push(r.value),o+=Za;return{times:void 0,keyframes:i,duration:o-Za,ease:"linear"}}const Qb={anticipate:hb,backInOut:db,circInOut:pb};function N4(e){return e in Qb}class e1 extends Fb{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new kb(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&qa()&&N4(o)&&(o=Qb[o]),D4(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,o=T.ease,a="keyframes"}const h=_4(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(ib(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ka(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Zn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Zn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Ln(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Nt;const{animation:r}=n;ib(r,t)}return Nt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:p,...y}=this.options,S=new dd({...y,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),b=Ln(this.time);d.setWithVelocity(S.sample(b-Za).value,S.sample(b).value,Za)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return I4()&&r&&O4.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}}const L4={type:"spring",stiffness:500,damping:25,restSpeed:10},k4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),j4={type:"keyframes",duration:.8},F4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},V4=(e,{keyframes:t})=>t.length>2?j4:li.has(e)?e.startsWith("scale")?k4(t[1]):L4:F4;function B4({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const hd=(e,t,n,r={},i,o)=>a=>{const c=jf(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Ln(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};B4(c)||(h={...h,...V4(e,h)}),h.duration&&(h.duration=Ln(h.duration)),h.repeatDelay&&(h.repeatDelay=Ln(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const p=Ka(h.keyframes,c);if(p!==void 0)return He.update(()=>{h.onUpdate(p),h.onComplete()}),new gD([])}return!o&&e1.supports(h)?new e1(h):new dd(h)};function W4({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function t1(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const p=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),y=u[m];if(y===void 0||h&&W4(h,m))continue;const S={delay:n,...jf(a||{},m)};let b=!1;if(window.MotionHandoffAnimation){const w=rb(e);if(w){const E=window.MotionHandoffAnimation(w,m,He);E!==null&&(S.startTime=E,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&&dD(e,c)})}),d}function md(e,t,n={}){var r;const i=vo(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(t1(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return U4(e,t,h+d,m,p,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[a,c]:[c,a];return d().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function U4(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(z4).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(md(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function z4(e,t){return e.sortNodePosition(t)}function G4(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>md(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=md(e,t,n);else{const i=typeof t=="function"?vo(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];(mo(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=vo(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:y,transitionEnd:S,...b}=p;d={...d,...b,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=r1(e.parent)||{},m=[],p=new Set;let y={},S=1/0;for(let T=0;T<q4;T++){const w=H4[T],E=n[w],P=d[w]!==void 0?d[w]:h[w],$=mo(P),A=w===u?E.isActive:null;A===!1&&(S=T);let D=P===h[w]&&P!==d[w]&&$;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),E.protectedKeys={...y},!E.isActive&&A===null||!P&&!E.prevProp||Ua(P)||typeof P=="boolean")continue;const k=Z4(E.prevProp,P);let F=k||w===u&&E.isActive&&!D&&$||T>S&&$,z=!1;const J=Array.isArray(P)?P:[P];let ne=J.reduce(i(w),{});A===!1&&(ne={});const{prevResolvedValues:le={}}=E,ye={...le,...ne},de=V=>{F=!0,p.has(V)&&(z=!0,p.delete(V)),E.needsAnimating[V]=!0;const B=e.getValue(V);B&&(B.liveStyle=!1)};for(const V in ye){const B=ne[V],G=le[V];if(y.hasOwnProperty(V))continue;let O=!1;Lf(B)&&Lf(G)?O=!n1(B,G):O=B!==G,O?B!=null?de(V):p.add(V):B!==void 0&&p.has(V)?de(V):E.protectedKeys[V]=!0}E.prevProp=P,E.prevResolvedValues=ne,E.isActive&&(y={...y,...ne}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(D&&k)||z)&&m.push(...J.map(V=>({animation:V,options:{type:w}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const w=vo(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(T.transition=w.transition)}p.forEach(w=>{const E=e.getBaseTarget(w),P=e.getValue(w);P&&(P.liveStyle=!0),T[w]=E??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=a(u);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=i1(),r=!0}}}function Z4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!n1(t,e):!1}function di(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function i1(){return{animate:di(!0),whileInView:di(),whileHover:di(),whileTap:di(),whileDrag:di(),whileFocus:di(),exit:di()}}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 Po(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 Ao(e){return{point:{x:e.pageX,y:e.pageY}}}const r5=e=>t=>pd(t)&&e(t,Ao(t));function Mo(e,t,n,r){return Po(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 Oo(e,t,n,r){c1(e.x,t.x,n.x,r?r.originX:void 0),c1(e.y,t.y,n.y,r?r.originY:void 0)}function u1(e,t,n){e.min=n.min+t.min,e.max=e.min+_t(t)}function 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 _o(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}),cs=()=>({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 hi(e){return yd(e)||m1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function m1(e){return p1(e.x)||p1(e.y)}function p1(e){return e&&e!=="0%"}function Ja(e,t,n){const r=e-n,i=t*r;return n+i}function g1(e,t,n,r,i){return i!==void 0&&(e=Ja(e,i,r)),Ja(e,n,r)+t}function vd(e,t=0,n=1,r,i){e.min=g1(e.min,t,n,r,i),e.max=g1(e.max,t,n,r,i)}function y1(e,{x:t,y:n}){vd(e.x,t.translate,t.scale,t.originPoint),vd(e.y,n.translate,n.scale,n.originPoint)}const v1=.999999999999,b1=1.0000000000001;function d5(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&fs(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,y1(e,a)),r&&hi(o.latestValues)&&fs(e,o.latestValues))}t.x<b1&&t.x>v1&&(t.x=1),t.y<b1&&t.y>v1&&(t.y=1)}function us(e,t){e.min=e.min+t,e.max=e.max+t}function x1(e,t,n,r,i=.5){const o=rt(e.min,e.max,i);vd(e,t,n,o,r)}function fs(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&&(us(r.x,i.offset.x),us(r.y,i.offset.y)),r}const S1=({current:e})=>e?e.ownerDocument.defaultView:null,T1=(e,t)=>Math.abs(e-t);function m5(e,t){const n=T1(e.x,t.x),r=T1(e.y,t.y);return Math.sqrt(n**2+r**2)}class E1{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=xd(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=m5(m.offset,{x:0,y:0})>=3;if(!p&&!y)return;const{point:S}=m,{timestamp:b}=vt;this.history.push({...S,timestamp:b});const{onStart: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=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Ao(t),c=bd(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=vt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,xd(c,this.history)),this.removeListeners=Eo(Mo(this.contextWindow,"pointermove",this.handlePointerMove),Mo(this.contextWindow,"pointerup",this.handlePointerUp),Mo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Cr(this.updatePoint)}}function bd(e,t){return t?{point:t(e.point)}:e}function C1(e,t){return{x:e.x-t.x,y:e.y-t.y}}function xd({point:e},t){return{point:e,delta:C1(e,P1(t)),offset:C1(e,p5(t)),velocity:g5(t,.1)}}function p5(e){return e[0]}function P1(e){return e[e.length-1]}function g5(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=P1(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ln(t)));)n--;if(!r)return{x:0,y:0};const o=Zn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function y5(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?rt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?rt(n,e,r.max):Math.min(e,n)),e}function A1(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function v5(e,{top:t,left:n,bottom:r,right:i}){return{x:A1(e.x,n,i),y:A1(e.y,t,r)}}function M1(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function b5(e,t){return{x:M1(e.x,t.x),y:M1(e.y,t.y)}}function x5(e,t){let n=.5;const r=_t(e),i=_t(t);return i>r?n=os(t.min,t.max-r,e.min):r>i&&(n=os(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(Ao(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:y,onDragStart:S}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=n5(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rn(T=>{let w=this.getAxisMotionValue(T).get()||0;if(Rn.test(w)){const{projection:E}=this.visualElement;if(E&&E.layout){const P=E.layout.layoutBox[T];P&&(w=_t(P)*(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)},a=(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:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:S1(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&He.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Qa(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=y5(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&rs(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=v5(i.layoutBox,n):this.constraints=!1,this.elastic=S5(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=w5(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!rs(t))return!1;const r=t.current;Er(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=h5(r,i.root,this.visualElement.getTransformPagePoint());let a=b5(i.layout.layoutBox,o);if(n){const c=n(i5(a));this.hasMutatedConstraints=!!c,c&&(a=o1(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=rn(h=>{if(!Qa(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const p=i?200:1e6,y=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Wf(this.visualElement,t),r.start(hd(t,r,0,n,this.visualElement,!1))}stopAnimation(){rn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){rn(n=>{const{drag:r}=this.getProps();if(!Qa(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(t[n]-rt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!rs(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};rn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();i[a]=x5({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rn(a=>{if(!Qa(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(rt(u,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;T5.set(this.visualElement,this);const t=this.visualElement.current,n=Mo(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();rs(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),He.read(r);const a=Po(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(rn(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=u[h].translate,m.set(m.get()+u[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=wd,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function Qa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function C5(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class P5 extends Mr{constructor(t){super(t),this.removeGroupControls=Nt,this.removeListeners=Nt,this.controls=new E5(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Nt}unmount(){this.removeGroupControls(),this.removeListeners()}}const I1=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};class A5 extends Mr{constructor(){super(...arguments),this.removePointerDownListener=Nt}onPointerDown(t){this.session=new E1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:S1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:I1(t),onStart:I1(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&He.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=Mo(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 Io={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=$1(e,t.target.x),r=$1(e,t.target.y);return`${n}% ${r}%`}},M5={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ar.parse(e);if(i.length>5)return r;const o=Ar.createTransformer(e),a=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+a]/=c,i[1+a]/=u;const d=rt(c,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};class O5 extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;k$(_5),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),el.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||He.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Cf.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function D1(e){const[t,n]=Cv(),r=_.useContext(vf);return v.jsx(O5,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(Lv),isPresent:t,safeToRemove:n})}const _5={borderRadius:{...Io,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Io,borderTopRightRadius:Io,borderBottomLeftRadius:Io,borderBottomRightRadius:Io,boxShadow:M5};function I5(e,t,n){const r=Et(e)?e:bo(e);return r.start(hd("",r,t,n)),r.animation}function $5(e){return e instanceof SVGElement&&e.tagName!=="svg"}const D5=(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(D5),this.isDirty=!1,this.children.forEach(t)}}function N5(e,t){const n=Nn.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Cr(r),e(o-t))};return He.read(r,!0),()=>Cr(r)}const R1=["TopLeft","TopRight","BottomLeft","BottomRight"],L5=R1.length,N1=e=>typeof e=="string"?parseFloat(e):e,L1=e=>typeof e=="number"||Se.test(e);function k5(e,t,n,r,i,o){i?(e.opacity=rt(0,n.opacity!==void 0?n.opacity:1,j5(r)),e.opacityExit=rt(t.opacity!==void 0?t.opacity:1,0,F5(r))):o&&(e.opacity=rt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<L5;a++){const c=`border${R1[a]}Radius`;let u=k1(t,c),d=k1(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||L1(u)===L1(d)?(e[c]=Math.max(rt(N1(u),N1(d),r),0),(Rn.test(d)||Rn.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=rt(t.rotate||0,n.rotate||0,r))}function k1(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const j5=j1(0,.5,mb),F5=j1(.5,.95,Nt);function j1(e,t,n){return r=>r<e?0:r>t?1:n(os(e,t,r))}function F1(e,t){e.min=t.min,e.max=t.max}function sn(e,t){F1(e.x,t.x),F1(e.y,t.y)}function V1(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function B1(e,t,n,r,i){return e-=t,e=Ja(e,1/n,r),i!==void 0&&(e=Ja(e,1/i,r)),e}function V5(e,t=0,n=1,r=.5,i,o=e,a=e){if(Rn.test(t)&&(t=parseFloat(t),t=rt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=rt(o.min,o.max,r);e===o&&(c-=t),e.min=B1(e.min,t,n,c,i),e.max=B1(e.max,t,n,c,i)}function W1(e,t,[n,r,i],o,a){V5(e,t[n],t[r],t[i],t.scale,o,a)}const B5=["x","scaleX","originX"],W5=["y","scaleY","originY"];function U1(e,t,n,r){W1(e.x,t,B5,n?n.x:void 0,r?r.x:void 0),W1(e.y,t,W5,n?n.y:void 0,r?r.y:void 0)}function z1(e){return e.translate===0&&e.scale===1}function G1(e){return z1(e.x)&&z1(e.y)}function Y1(e,t){return e.min===t.min&&e.max===t.max}function U5(e,t){return Y1(e.x,t.x)&&Y1(e.y,t.y)}function H1(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function q1(e,t){return H1(e.x,t.x)&&H1(e.y,t.y)}function K1(e){return _t(e.x)/_t(e.y)}function X1(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class z5{constructor(){this.members=[]}add(t){Ff(this.members,t),t.scheduleRender()}remove(t){if(Vf(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function G5(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:p,skewX:y,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),y&&(r+=`skewX(${y}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const Sd=["","X","Y","Z"],Y5={visibility:"hidden"},Z1=1e3;let H5=0;function Td(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function J1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=rb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",He,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&J1(r)}function Q1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=H5++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(X5),this.nodes.forEach(t6),this.nodes.forEach(n6),this.nodes.forEach(Z5)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new R5)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Bf),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=$5(a),this.instance=a;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=N5(p,250),el.hasAnimatedSinceResize&&(el.hasAnimatedSinceResize=!1,this.nodes.forEach(tx))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:y,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||h.getDefaultTransition()||a6,{onLayoutAnimationStart:T,onLayoutAnimationComplete:w}=h.getProps(),E=!this.targetLayout||!q1(this.targetLayout,S),P=!p&&y;if(this.options.layoutRoot||this.resumeFrom||P||p&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,P);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 a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Cr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(r6),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&J1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ex);return}this.isUpdating||this.nodes.forEach(Q5),this.isUpdating=!1,this.nodes.forEach(e6),this.nodes.forEach(q5),this.nodes.forEach(K5),this.clearAllSnapshots();const c=Nn.now();vt.delta=Xn(0,1e3/60,c-vt.timestamp),vt.timestamp=c,vt.isProcessing=!0,Sf.update.process(vt),Sf.preRender.process(vt),Sf.render.process(vt),vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Cf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(J5),this.sharedNodes.forEach(i6)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,He.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){He.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!_t(this.snapshot.measuredBox.x)&&!_t(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=lt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!G1(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||hi(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),l6(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return lt();const u=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(c6))){const{scroll:h}=this.root;h&&(us(u.x,h.offset.x),us(u.y,h.offset.y))}return u}removeElementScroll(a){var c;const u=lt();if(sn(u,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&sn(u,a),us(u.x,m.offset.x),us(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=lt();sn(u,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&fs(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),hi(h.latestValues)&&fs(u,h.latestValues)}return hi(this.latestValues)&&fs(u,this.latestValues),u}removeTransform(a){const c=lt();sn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!hi(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 hi(this.latestValues)&&U1(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==vt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=vt.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),_o(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(),_o(this.relativeTargetOrigin,this.target,y.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||yd(this.parent.latestValues)||m1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===vt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;sn(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,y=this.treeScale.y;d5(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=lt());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(V1(this.prevProjectionDelta.x,this.projectionDelta.x),V1(this.prevProjectionDelta.y,this.projectionDelta.y)),Oo(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==y||!X1(this.projectionDelta.x,this.prevProjectionDelta.x)||!X1(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=cs(),this.projectionDelta=cs(),this.projectionDeltaWithTransform=cs()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=cs();(!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,E=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(o6));this.animationProgress=0;let P;this.mixTargetDelta=$=>{const A=$/1e3;nx(m.x,a.x,A),nx(m.y,a.y,A),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_o(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),s6(this.relativeTarget,this.relativeTargetOrigin,p,A),P&&U5(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=lt()),sn(P,this.relativeTarget)),b&&(this.animationValues=h,k5(h,d,this.latestValues,A,E,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{el.hasAnimatedSinceResize=!0,this.currentAnimation=I5(0,Z1,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Z1),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&ax(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||lt();const m=_t(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+m;const p=_t(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+p}sn(c,u),fs(c,h),Oo(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new z5),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&Td("z",a,d,this.animationValues);for(let h=0;h<Sd.length;h++)Td(`rotate${Sd[h]}`,a,d,this.animationValues),Td(`skew${Sd[h]}`,a,d,this.animationValues);a.render();for(const h in d)a.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Y5;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Ya(a==null?void 0:a.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Ya(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!hi(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 po){if(p[b]===void 0)continue;const{correct:T,applyTo:w,isCSSVariable:E}=po[b],P=d.transform==="none"?p[b]:T(p[b],m);if(w){const $=w.length;for(let A=0;A<$;A++)d[w[A]]=P}else E?this.options.visualElement.renderState.vars[b]=P:d[b]=P}return this.options.layoutId&&(d.pointerEvents=m===this?Ya(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(ex),this.root.sharedNodes.clear()}}}function q5(e){e.updateLayout()}function K5(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?rn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],y=_t(p);p.min=r[m].min,p.max=p.min+y}):ax(o,n.layoutBox,r)&&rn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],y=_t(r[m]);p.max=p.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+y)});const c=cs();Oo(c,r,n.layoutBox);const u=cs();a?Oo(u,e.applyTransform(i,!0),n.measuredBox):Oo(u,r,n.layoutBox);const d=!G1(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:y}=m;if(p&&y){const S=lt();_o(S,n.layoutBox,p.layoutBox);const b=lt();_o(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)=>Po(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:D1}};function d6(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function cx(e,t){const n=d6(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function ux(e){return!(e.pointerType==="touch"||s1())}function h6(e,t,n={}){const[r,i,o]=cx(e,n),a=c=>{if(!ux(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{ux(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}function fx(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&He.postRender(()=>o(t,Ao(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=Eo(Po(this.node.current,"focus",()=>this.onFocus()),Po(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 $o=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($o.has(n))return;Cd(n,"down");const i=hx(()=>{Cd(n,"up")}),o=()=>Cd(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function mx(e){return pd(e)&&!s1()}function b6(e,t,n={}){const[r,i,o]=cx(e,n),a=c=>{const u=c.currentTarget;if(!mx(c)||$o.has(u))return;$o.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!mx(y)||!$o.has(u))&&($o.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||dx(u,y.target))},p=y=>{h(y,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",p,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>v6(d,i)),!y6(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}function px(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&He.postRender(()=>o(t,Ao(t)))}class x6 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=b6(t,(n,r)=>(px(this.node,r,"Start"),(i,{success:o})=>px(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Pd=new WeakMap,Ad=new WeakMap,w6=e=>{const t=Pd.get(e.target);t&&t(e)},S6=e=>{e.forEach(w6)};function T6({root:e,...t}){const n=e||document;Ad.has(n)||Ad.set(n,{});const r=Ad.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(S6,{root:e,...t})),r[i]}function E6(e,t,n){const r=T6(t);return Pd.set(e,n),r.observe(e),()=>{Pd.delete(e),r.unobserve(e)}}const C6={some:0,all:1};class P6 extends Mr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:C6[i]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=d?h:m;p&&p(u)};return E6(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(A6(t,n))&&this.startObserver()}unmount(){}}function A6({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const M6={inView:{Feature:P6},tap:{Feature:x6},focus:{Feature:p6},hover:{Feature:m6}},O6={layout:{ProjectionNode:lx,MeasureLayout:D1}},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],$6=e=>I6.find(Rb(e)),D6=new WeakMap;function R6(e,t,n){for(const r in t){const i=t[r],o=n[r];if(Et(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&Ba(i.version==="12.6.2",`Attempting to mix Motion versions ${i.version} with 12.6.2 may not work as expected.`);else if(Et(o))e.addValue(r,bo(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,bo(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const yx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class N6{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=sd,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=Nn.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,He.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=za(n),this.isVariantNode=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,D6.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=li.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&He.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ns){const n=ns[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):lt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<yx.length;r++){const i=yx[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=R6(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=bo(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):!$6(i)&&Ar.test(n)&&(i=Eb(t,n)),this.setBaseTarget(t,Et(i)?i.get():i)),Et(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=Nf(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Et(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Bf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class vx extends N6{constructor(){super(...arguments),this.KeyframeResolver=kb}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Et(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function L6(e){return window.getComputedStyle(e)}class k6 extends vx{constructor(){super(...arguments),this.type="html",this.renderInstance=Kv}readValueFromInstance(t,n){if(li.has(n))return WD(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(li.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 F6=(e,t)=>$f(e)?new j6(t):new k6(t,{allowProjection:e!==_.Fragment}),V6=aD({...t5,...M6,...f6,...O6},F6),Ze=E$(V6),Od={defaultColorScheme:"aqua",t:e=>e},bx=_.createContext(Od),Ue=()=>_.useContext(bx),xx=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o,showCloseButton:a=!0})=>{const{t:c}=Ue(),u={hidden:{opacity:0},visible:{opacity:1}},d={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},h=()=>{i==null||i(),r()},m=()=>{o==null||o(),r()};return v.jsx(Kn,{children:n&&v.jsx(v.Fragment,{children:v.jsx(Ze.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:u,onClick:r,children:v.jsx(Ze.div,{className:"w-full max-w-4xl mx-16 z-50",variants:d,initial:"hidden",animate:"visible",exit:"exit",onClick:p=>p.stopPropagation(),children:v.jsxs(xs,{className:"flex flex-col gap-16 p-32",children:[v.jsxs("div",{className:"flex justify-between items-center gap-16",children:[v.jsx("h3",{className:"text-black font-700 text-3xl",children:e}),a&&v.jsx(Ie,{icon:tu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})]}),v.jsx("p",{className:"text-gray-500 text-xl font-600",children:t}),v.jsxs("div",{className:"flex justify-end w-full gap-16",children:[o&&v.jsx(jo,{onClick:m,variant:"transparent",className:"px-24 py-10! text-lg!",children:c("cancel")}),i&&v.jsx(jo,{onClick:h,className:"px-24 py-16 text-lg!",children:c("confirm")})]})]})})})})})};/*!
659
+ `),()=>{document.head.removeChild(y)}},[t]),v.jsx(h$,{isPresent:t,childRef:i,sizeRef:o,children:ee.cloneElement(e,{ref:i})})}const p$=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=bf(g$),d=_.useId(),h=_.useCallback(p=>{u.set(p,!0);for(const y of u.values())if(!y)return;r&&r()},[u,r]),m=_.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),o?[Math.random(),h]:[n,h]);return _.useMemo(()=>{u.forEach((p,y)=>u.set(y,!1))},[n]),ee.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=v.jsx(m$,{isPresent:n,anchorX:c,children:e})),v.jsx(ka.Provider,{value:m,children:e})};function g$(){return new Map}function Pv(e=!0){const t=_.useContext(ka);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=_.useId();_.useEffect(()=>{if(e)return i(o)},[e]);const a=_.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const ja=e=>e.key||"";function Av(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const Kn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=Pv(a),h=_.useMemo(()=>Av(e),[e]),m=a&&!u?[]:h.map(ja),p=_.useRef(!0),y=_.useRef(h),S=bf(()=>new Map),[b,T]=_.useState(h),[w,E]=_.useState(h);Cv(()=>{p.current=!1,y.current=h;for(let A=0;A<w.length;A++){const D=ja(w[A]);m.includes(D)?S.delete(D):S.get(D)!==!0&&S.set(D,!1)}},[w,m.length,m.join("-")]);const P=[];if(h!==b){let A=[...h];for(let D=0;D<w.length;D++){const V=w[D],j=ja(V);m.includes(j)||(A.splice(D,0,V),P.push(V))}return o==="wait"&&P.length&&(A=P),E(Av(A)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:$}=_.useContext(vf);return v.jsx(v.Fragment,{children:w.map(A=>{const D=ja(A),V=a&&!u?!1:h===w||m.includes(D),j=()=>{if(S.has(D))S.set(D,!0);else return;let U=!0;S.forEach(X=>{X||(U=!1)}),U&&($==null||$(),E(y.current),a&&(d==null||d()),r&&r())};return v.jsx(p$,{isPresent:V,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:V?void 0:j,anchorX:c,children:A},D)})})},Nt=e=>e;let ts=Nt,Er=Nt;process.env.NODE_ENV!=="production"&&(ts=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Er=(e,t)=>{if(!e)throw new Error(t)});const y$={useManualTiming:!1},Fa=["read","resolveKeyframes","update","preRender","render","postRender"],Mv={value:null};function v$(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,p=!1,y=!1)=>{const b=y&&i?n:r;return p&&a.add(m),b.has(m)||b.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&Mv.value&&Mv.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const b$=40;function Ov(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Fa.reduce((w,E)=>(w[E]=v$(o,t?E:void 0),w),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:p}=a,y=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,b$),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,E)=>{const P=a[E];return w[E]=($,A=!1,D=!1)=>(n||S(),P.schedule($,A,D)),w},{}),cancel:w=>{for(let E=0;E<Fa.length;E++)a[Fa[E]].cancel(w)},state:i,steps:a}}const{schedule:He,cancel:Cr,state:vt,steps:Sf}=Ov(typeof requestAnimationFrame<"u"?requestAnimationFrame:Nt,!0),_v=_.createContext({strict:!1}),Iv={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"]},ns={};for(const e in Iv)ns[e]={isEnabled:t=>Iv[e].some(n=>!!t[n])};function x$(e){for(const t in e)ns[t]={...ns[t],...e[t]}}const w$=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")||w$.has(e)}let $v=e=>!Va(e);function S$(e){e&&($v=t=>t.startsWith("on")?!Va(t):e(t))}try{S$(require("@emotion/is-prop-valid").default)}catch{}function T$(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||($v(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 E$(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=_.createContext({});function Ua(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function po(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=>po(e[t]))}function Rv(e){return!!(za(e)||e.variants)}function C$(e,t){if(za(e)){const{initial:n,animate:r}=e;return{initial:n===!1||po(n)?n:void 0,animate:po(r)?r:void 0}}return e.inherit!==!1?t:{}}function P$(e){const{initial:t,animate:n}=C$(e,_.useContext(Wa));return _.useMemo(()=>({initial:t,animate:n}),[Nv(t),Nv(n)])}function Nv(e){return Array.isArray(e)?e.join(" "):e}const A$=Symbol.for("motionComponentSymbol");function rs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function M$(e,t,n){return _.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):rs(n)&&(n.current=r))},[t])}const{schedule:Cf}=Ov(queueMicrotask,!1),Pf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Lv="data-"+Pf("framerAppearId"),kv=_.createContext({});function O$(e,t,n,r,i){var o,a;const{visualElement:c}=_.useContext(Wa),u=_.useContext(_v),d=_.useContext(ka),h=_.useContext(wf).reducedMotion,m=_.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=_.useContext(kv);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&_$(m.current,n,i,y);const S=_.useRef(!1);_.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const b=n[Lv],T=_.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,b)));return Cv(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Cf.render(p.render),T.current&&p.animationState&&p.animationState.animateChanges())}),_.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 _$(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:jv(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&rs(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function jv(e){if(e)return e.options.allowProjection!==!1?e.projection:jv(e.parent)}function I$({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&x$(e);function c(d,h){let m;const p={..._.useContext(wf),...d,layoutId:$$(d)},{isStatic:y}=p,S=P$(d),b=r(d,y);if(!y&&xf){D$(p,e);const T=R$(p);m=T.MeasureLayout,S.visualElement=O$(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,M$(b,S.visualElement,h),b,y,S.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const u=_.forwardRef(c);return u[A$]=i,u}function $$({layoutId:e}){const t=_.useContext(vf).id;return t&&e!==void 0?t+"-"+e:e}function D$(e,t){const n=_.useContext(_v).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?ts(!1,r):Er(!1,r)}}function R$(e){const{drag:t,layout:n}=ns;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 Fv=e=>t=>typeof t=="string"&&t.startsWith(e),Af=Fv("--"),N$=Fv("var(--"),Mf=e=>N$(e)?L$.test(e.split("/*")[0].trim()):!1,L$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,go={};function k$(e){for(const t in e)go[t]=e[t],Af(t)&&(go[t].isCSSVariable=!0)}const is=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],li=new Set(is);function Vv(e,{layout:t,layoutId:n}){return li.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!go[e]||e==="opacity")}const Et=e=>!!(e&&e.getVelocity),Bv=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xn=(e,t,n)=>n>t?t:n<e?e:n,ss={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},yo={...ss,transform:e=>Xn(0,1,e)},Ga={...ss,default:1},vo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pr=vo("deg"),Rn=vo("%"),Se=vo("px"),j$=vo("vh"),F$=vo("vw"),Wv={...Rn,parse:e=>Rn.parse(e)/100,transform:e=>Rn.transform(e*100)},V$={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},B$={rotate:Pr,rotateX:Pr,rotateY:Pr,rotateZ:Pr,scale:Ga,scaleX:Ga,scaleY:Ga,scaleZ:Ga,skew:Pr,skewX:Pr,skewY:Pr,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:yo,originX:Wv,originY:Wv,originZ:Se},Uv={...ss,transform:Math.round},Of={...V$,...B$,zIndex:Uv,size:Se,fillOpacity:yo,strokeOpacity:yo,numOctaves:Uv},W$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},U$=is.length;function z$(e,t,n){let r="",i=!0;for(let o=0;o<U$;o++){const a=is[o],c=e[a];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(a.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Bv(c,Of[a]);if(!u){i=!1;const h=W$[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function _f(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(li.has(u)){a=!0;continue}else if(Af(u)){i[u]=d;continue}else{const h=Bv(d,Of[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=z$(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${d} ${h}`}}const If=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function zv(e,t,n){for(const r in t)!Et(t[r])&&!Vv(r,n)&&(e[r]=t[r])}function G$({transformTemplate:e},t){return _.useMemo(()=>{const n=If();return _f(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Y$(e,t){const n=e.style||{},r={};return zv(r,n,e),Object.assign(r,G$(e,t)),r}function H$(e,t){const n={},r=Y$(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 q$=["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:!!(q$.indexOf(e)>-1||/[A-Z]/u.test(e))}const K$={offset:"stroke-dashoffset",array:"stroke-dasharray"},X$={offset:"strokeDashoffset",array:"strokeDasharray"};function Z$(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?K$:X$;e[o.offset]=Se.transform(-r);const a=Se.transform(t),c=Se.transform(n);e[o.array]=`${a} ${c}`}function Gv(e,t,n){return typeof e=="string"?e:Se.transform(t+n*e)}function J$(e,t,n){const r=Gv(t,e.x,e.width),i=Gv(n,e.y,e.height);return`${r} ${i}`}function Df(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(_f(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:y,dimensions:S}=e;p.transform&&(S&&(y.transform=p.transform),delete p.transform),S&&(i!==void 0||o!==void 0||y.transform)&&(y.transformOrigin=J$(S,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&Z$(p,a,c,u,!1)}const Yv=()=>({...If(),attrs:{}}),Rf=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Q$(e,t,n,r){const i=_.useMemo(()=>{const o=Yv();return Df(o,t,Rf(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};zv(o,e.style,e),i.style={...o,...i.style}}return i}function e4(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=($f(n)?Q$:H$)(r,o,a,n),d=T$(r,typeof n=="string",e),h=n!==_.Fragment?{...d,...u,ref:i}:{},{children:m}=r,p=_.useMemo(()=>Et(m)?m.get():m,[m]);return _.createElement(n,{...h,children:p})}}function Hv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Nf(e,t,n,r){if(typeof t=="function"){const[i,o]=Hv(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Hv(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Lf=e=>Array.isArray(e),t4=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),n4=e=>Lf(e)?e[e.length-1]||0:e;function Ya(e){const t=Et(e)?e.get():e;return t4(t)?t.toValue():t}function r4({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:i4(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const qv=e=>(t,n)=>{const r=_.useContext(Wa),i=_.useContext(ka),o=()=>r4(e,t,r,i);return n?o():bf(o)};function i4(e,t,n,r){const i={},o=r(e,{});for(const p in o)i[p]=Ya(o[p]);let{initial:a,animate:c}=e;const u=za(e),d=Rv(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?c:a;if(m&&typeof m!="boolean"&&!Ua(m)){const p=Array.isArray(m)?m:[m];for(let y=0;y<p.length;y++){const S=Nf(e,p[y]);if(S){const{transitionEnd:b,transition:T,...w}=S;for(const E in w){let P=w[E];if(Array.isArray(P)){const $=h?P.length-1:0;P=P[$]}P!==null&&(i[E]=P)}for(const E in b)i[E]=b[E]}}}return i}function kf(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(Et(i[a])||t.style&&Et(t.style[a])||Vv(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}const s4={useVisualState:qv({scrapeMotionValuesFromProps:kf,createRenderState:If})};function Kv(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 Xv(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Zv=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 Jv(e,t,n,r){Xv(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Zv.has(i)?i:Pf(i),t.attrs[i])}function Qv(e,t,n){const r=kf(e,t,n);for(const i in e)if(Et(e[i])||Et(t[i])){const o=is.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const e1=["x","y","width","height","cx","cy","r"],o4={useVisualState:qv({scrapeMotionValuesFromProps:Qv,createRenderState:Yv,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in i)if(li.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<e1.length;c++){const u=e1[c];e[u]!==t[u]&&(a=!0)}a&&He.read(()=>{Kv(n,r),He.render(()=>{Df(r,i,Rf(n.tagName),e.transformTemplate),Jv(n,r)})})}})};function a4(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...$f(r)?o4:s4,preloadedFeatures:e,useRender:e4(i),createVisualElement:t,Component:r};return I$(a)}}function bo(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 t1=new Set(["width","height","top","left","right","bottom",...is]);function Ff(e,t){e.indexOf(t)===-1&&e.push(t)}function Vf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Bf{constructor(){this.subscriptions=[]}add(t){return Ff(this.subscriptions,t),()=>Vf(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function n1(e,t){return t?e*(1e3/t):0}let Ha;function l4(){Ha=void 0}const Nn={now:()=>(Ha===void 0&&Nn.set(vt.isProcessing||y$.useManualTiming?vt.timestamp:performance.now()),Ha),set:e=>{Ha=e,queueMicrotask(l4)}},r1=30,c4=e=>!isNaN(parseFloat(e));class u4{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Nn.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Nn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=c4(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>r1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,r1);return n1(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 xo(e,t){return new u4(e,t)}function f4(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xo(n))}function d4(e,t){const n=bo(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=n4(o[a]);f4(e,a,c)}}function h4(e){return!!(Et(e)&&e.add)}function Wf(e,t){const n=e.getValue("willChange");if(h4(n))return n.add(t)}function i1(e){return e.props[Lv]}function Uf(e){let t;return()=>(t===void 0&&(t=e()),t)}const m4=Uf(()=>window.ScrollTimeline!==void 0);class p4{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(m4()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class g4 extends p4{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 s1(e,t){e.timeline=t,e.onfinish=null}const Gf=e=>Array.isArray(e)&&typeof e[0]=="number",y4={linearEasing:void 0};function v4(e,t){const n=Uf(e);return()=>{var r;return(r=y4[t])!==null&&r!==void 0?r:n()}}const qa=v4(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),os=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},o1=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(os(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function a1(e){return!!(typeof e=="function"&&qa()||!e||typeof e=="string"&&(e in Yf||qa())||Gf(e)||Array.isArray(e)&&e.every(a1))}const wo=([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:wo([0,.65,.55,1]),circOut:wo([.55,0,1,.45]),backIn:wo([.31,.01,.66,-.59]),backOut:wo([.33,1.53,.69,.99])};function l1(e,t){if(e)return typeof e=="function"&&qa()?o1(e,t):Gf(e)?wo(e):Array.isArray(e)?e.map(n=>l1(n,t)||Yf.easeOut):Yf[e]}const c1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,b4=1e-7,x4=12;function w4(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=c1(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>b4&&++c<x4);return a}function So(e,t,n,r){if(e===t&&n===r)return Nt;const i=o=>w4(o,0,1,e,n);return o=>o===0||o===1?o:c1(i(o),t,r)}const u1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,f1=e=>t=>1-e(1-t),d1=So(.33,1.53,.69,.99),Hf=f1(d1),h1=u1(Hf),m1=e=>(e*=2)<1?.5*Hf(e):.5*(2-Math.pow(2,-10*(e-1))),qf=e=>1-Math.sin(Math.acos(e)),p1=f1(qf),g1=u1(qf),y1=e=>/^0[^.\s]+$/u.test(e);function S4(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||y1(e):!0}const To=e=>Math.round(e*1e5)/1e5,Kf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function T4(e){return e==null}const E4=/^(?:#[\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"&&E4.test(n)&&n.startsWith(e)||t&&!T4(n)&&Object.prototype.hasOwnProperty.call(n,t)),v1=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Kf);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},C4=e=>Xn(0,255,e),Zf={...ss,transform:e=>Math.round(C4(e))},ci={test:Xf("rgb","red"),parse:v1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Zf.transform(e)+", "+Zf.transform(t)+", "+Zf.transform(n)+", "+To(yo.transform(r))+")"};function P4(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:P4,transform:ci.transform},as={test:Xf("hsl","hue"),parse:v1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Rn.transform(To(t))+", "+Rn.transform(To(n))+", "+To(yo.transform(r))+")"},Ct={test:e=>ci.test(e)||Jf.test(e)||as.test(e),parse:e=>ci.test(e)?ci.parse(e):as.test(e)?as.parse(e):Jf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ci.transform(e):as.transform(e)},A4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function M4(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(A4))===null||n===void 0?void 0:n.length)||0)>0}const b1="number",x1="color",O4="var",_4="var(",w1="${}",I4=/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 Eo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(I4,u=>(Ct.test(u)?(r.color.push(o),i.push(x1),n.push(Ct.parse(u))):u.startsWith(_4)?(r.var.push(o),i.push(O4),n.push(u)):(r.number.push(o),i.push(b1),n.push(parseFloat(u))),++o,w1)).split(w1);return{values:n,split:c,indexes:r,types:i}}function S1(e){return Eo(e).values}function T1(e){const{split:t,types:n}=Eo(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const c=n[a];c===b1?o+=To(i[a]):c===x1?o+=Ct.transform(i[a]):o+=i[a]}return o}}const $4=e=>typeof e=="number"?0:e;function D4(e){const t=S1(e);return T1(e)(t.map($4))}const Ar={test:M4,parse:S1,createTransformer:T1,getAnimatableNone:D4},R4=new Set(["brightness","contrast","saturate","opacity"]);function N4(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Kf)||[];if(!r)return e;const i=n.replace(r,"");let o=R4.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const L4=/\b([a-z-]*)\(.*?\)/gu,Qf={...Ar,getAnimatableNone:e=>{const t=e.match(L4);return t?t.map(N4).join(" "):e}},k4={...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},E1=e=>k4[e];function C1(e,t){let n=E1(e);return n!==Qf&&(n=Ar),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const j4=new Set(["auto","none","0"]);function F4(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!j4.has(o)&&Eo(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=C1(n,i)}const ui=e=>e*180/Math.PI,ed=e=>{const t=ui(Math.atan2(e[1],e[0]));return td(t)},V4={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=>ui(Math.atan(e[1])),skewY:e=>ui(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),P1=ed,A1=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),M1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),B4={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:A1,scaleY:M1,scale:e=>(A1(e)+M1(e))/2,rotateX:e=>td(ui(Math.atan2(e[6],e[5]))),rotateY:e=>td(ui(Math.atan2(-e[2],e[0]))),rotateZ:P1,rotate:P1,skewX:e=>ui(Math.atan(e[4])),skewY:e=>ui(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function O1(e){return e.includes("scale")?1:0}function nd(e,t){if(!e||e==="none")return O1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=B4,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=V4,i=c}if(!i)return O1(t);const o=r[t],a=i[1].split(",").map(U4);return typeof o=="function"?o(a):a[o]}const W4=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return nd(n,t)};function U4(e){return parseFloat(e.trim())}const _1=e=>e===ss||e===Se,z4=new Set(["x","y","z"]),G4=is.filter(e=>!z4.has(e));function Y4(e){const t=[];return G4.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ls={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")};ls.translateX=ls.x,ls.translateY=ls.y;const fi=new Set;let rd=!1,id=!1;function I1(){if(id){const e=Array.from(fi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Y4(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}id=!1,rd=!1,fi.forEach(e=>e.complete()),fi.clear()}function $1(){fi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(id=!0)})}function H4(){$1(),I1()}class sd{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(fi.add(this),rd||(rd=!0,He.read($1),He.resolveKeyframes(I1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),fi.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,fi.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const D1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),q4=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function K4(e){const t=q4.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const X4=4;function R1(e,t,n=1){Er(n<=X4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=K4(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return D1(a)?parseFloat(a):a}return Mf(i)?R1(i,t,n+1):i}const N1=e=>t=>t.test(e),L1=[ss,Se,Rn,Pr,F$,j$,{test:e=>e==="auto",parse:e=>e}],k1=e=>L1.find(N1(e));class j1 extends sd{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Mf(d))){const h=R1(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!t1.has(r)||t.length!==2)return;const[i,o]=t,a=k1(i),c=k1(o);if(a!==c)if(_1(a)&&_1(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++)S4(t[i])&&r.push(i);r.length&&F4(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=ls[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=ls[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 F1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ar.test(e)||e==="0")&&!e.startsWith("url("));function Z4(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 J4(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=F1(i,t),c=F1(o,t);return ts(a===c,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:Z4(e)||(n==="spring"||zf(n))&&r}const Q4=e=>e!==null;function Ka(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Q4),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const eD=40;class V1{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Nn.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>eD?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&H4(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Nn.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!J4(t,r,i,o))if(a)this.options.duration=0;else{u&&u(Ka(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const od=2e4;function B1(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 tD({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=ad(u,c,e+1/3),o=ad(u,c,e),a=ad(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Xa(e,t){return n=>n>0?t:e}const ld=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},nD=[Jf,ci,as],rD=e=>nD.find(t=>t.test(e));function W1(e){const t=rD(e);if(ts(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===as&&(n=tD(n)),n}const U1=(e,t)=>{const n=W1(e),r=W1(t);if(!n||!r)return Xa(e,t);const i={...n};return o=>(i.red=ld(n.red,r.red,o),i.green=ld(n.green,r.green,o),i.blue=ld(n.blue,r.blue,o),i.alpha=rt(n.alpha,r.alpha,o),ci.transform(i))},iD=(e,t)=>n=>t(e(n)),Co=(...e)=>e.reduce(iD),cd=new Set(["none","hidden"]);function sD(e,t){return cd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function oD(e,t){return n=>rt(e,t,n)}function ud(e){return typeof e=="number"?oD:typeof e=="string"?Mf(e)?Xa:Ct.test(e)?U1:cD:Array.isArray(e)?z1:typeof e=="object"?Ct.test(e)?U1:aD:Xa}function z1(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>ud(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function aD(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=ud(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function lD(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][i[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,i[a]++}return r}const cD=(e,t)=>{const n=Ar.createTransformer(t),r=Eo(e),i=Eo(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?sD(e,t):Co(z1(lD(r,i),i.values),n):(ts(!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 G1(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?rt(e,t,n):ud(e)(e,t)}const uD=5;function Y1(e,t,n){const r=Math.max(t-uD,0);return n1(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},H1=.001;function fD({duration:e=it.duration,bounce:t=it.bounce,velocity:n=it.velocity,mass:r=it.mass}){let i,o;ts(e<=Ln(it.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Xn(it.minDamping,it.maxDamping,a),e=Xn(it.minDuration,it.maxDuration,Zn(e)),a<1?(i=d=>{const h=d*a,m=h*e,p=h-n,y=fd(d,a),S=Math.exp(-m);return H1-p/y*S},o=d=>{const m=d*a*e,p=m*n+n,y=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),b=fd(Math.pow(d,2),a);return(-i(d)+H1>0?-1:1)*((p-y)*S)/b}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const c=5/e,u=hD(i,o,c);if(e=Ln(e),isNaN(u))return{stiffness:it.stiffness,damping:it.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const dD=12;function hD(e,t,n){let r=n;for(let i=1;i<dD;i++)r=r-e(r)/t(r);return r}function fd(e,t){return e*Math.sqrt(1-t*t)}const mD=["duration","bounce"],pD=["stiffness","damping","mass"];function q1(e,t){return t.some(n=>e[n]!==void 0)}function gD(e){let t={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!q1(e,pD)&&q1(e,mD))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Xn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:it.mass,stiffness:i,damping:o}}else{const n=fD(e);t={...t,...n,mass:it.mass},t.isResolvedFromDuration=!0}return t}function K1(e=it.visualDuration,t=it.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:m,velocity:p,isResolvedFromDuration:y}=gD({...n,velocity:-Zn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=a-o,w=Zn(Math.sqrt(u/h)),E=Math.abs(T)<5;r||(r=E?it.restSpeed.granular:it.restSpeed.default),i||(i=E?it.restDelta.granular:it.restDelta.default);let P;if(b<1){const A=fd(w,b);P=D=>{const V=Math.exp(-b*w*D);return a-V*((S+b*w*T)/A*Math.sin(A*D)+T*Math.cos(A*D))}}else if(b===1)P=A=>a-Math.exp(-w*A)*(T+(S+w*T)*A);else{const A=w*Math.sqrt(b*b-1);P=D=>{const V=Math.exp(-b*w*D),j=Math.min(A*D,300);return a-V*((S+b*w*T)*Math.sinh(j)+A*T*Math.cosh(j))/A}}const $={calculatedDuration:y&&m||null,next:A=>{const D=P(A);if(y)c.done=A>=m;else{let V=0;b<1&&(V=A===0?Ln(S):Y1(P,A,D));const j=Math.abs(V)<=r,U=Math.abs(a-D)<=i;c.done=j&&U}return c.value=c.done?a:D,c},toString:()=>{const A=Math.min(B1($),od),D=o1(V=>$.next(A*V).value,A,30);return A+"ms "+D}};return $}function X1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},y=j=>c!==void 0&&j<c||u!==void 0&&j>u,S=j=>c===void 0?u:u===void 0||Math.abs(c-j)<Math.abs(u-j)?c:u;let b=n*t;const T=m+b,w=a===void 0?T:a(T);w!==T&&(b=w-m);const E=j=>-b*Math.exp(-j/r),P=j=>w+E(j),$=j=>{const U=E(j),X=P(j);p.done=Math.abs(U)<=d,p.value=p.done?w:X};let A,D;const V=j=>{y(p.value)&&(A=j,D=K1({keyframes:[p.value,S(p.value)],velocity:Y1(P,j,p.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return V(0),{calculatedDuration:null,next:j=>{let U=!1;return!D&&A===void 0&&(U=!0,$(j),V(j)),A!==void 0&&j>=A?D.next(j-A):(!U&&$(j),p)}}}const yD=So(.42,0,1,1),vD=So(0,0,.58,1),Z1=So(.42,0,.58,1),bD=e=>Array.isArray(e)&&typeof e[0]!="number",J1={linear:Nt,easeIn:yD,easeInOut:Z1,easeOut:vD,circIn:qf,circInOut:g1,circOut:p1,backIn:Hf,backInOut:h1,backOut:d1,anticipate:m1},Q1=e=>{if(Gf(e)){Er(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return So(t,n,r,i)}else if(typeof e=="string")return Er(J1[e]!==void 0,`Invalid easing type '${e}'`),J1[e];return e};function xD(e,t,n){const r=[],i=n||G1,o=e.length-1;for(let a=0;a<o;a++){let c=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Nt:t;c=Co(u,c)}r.push(c)}return r}function wD(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Er(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=xD(t,r,i),u=c.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const p=os(e[m],e[m+1],h);return c[m](p)};return n?h=>d(Xn(e[0],e[o-1],h)):d}function SD(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=os(0,t,r);e.push(rt(n,1,i))}}function TD(e){const t=[0];return SD(t,e.length-1),t}function ED(e,t){return e.map(n=>n*t)}function CD(e,t){return e.map(()=>t||Z1).splice(0,e.length-1)}function Po({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=bD(r)?r.map(Q1):Q1(r),o={done:!1,value:t[0]},a=ED(n&&n.length===t.length?n:TD(t),e),c=wD(a,t,{ease:Array.isArray(i)?i:CD(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const PD=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>Cr(t),now:()=>vt.isProcessing?vt.timestamp:Nn.now()}},AD={decay:X1,inertia:X1,tween:Po,keyframes:Po,spring:K1},MD=e=>e/100;class dd extends V1{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||sd,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=zf(n)?n:AD[n]||Po;let u,d;process.env.NODE_ENV!=="production"&&c!==Po&&Er(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==Po&&typeof t[0]!="number"&&(u=Co(MD,G1(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=B1(h));const{calculatedDuration:m}=h,p=m+i,y=p*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:j}=this.options;return{done:!0,value:j[j.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:y,repeatType:S,repeatDelay:b,onUpdate: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),E=this.speed>=0?w<0:w>h;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let P=this.currentTime,$=o;if(y){const j=Math.min(this.currentTime,h)/m;let U=Math.floor(j),X=j%1;!X&&j>=1&&(X=1),X===1&&U--,U=Math.min(U,y+1),!!(U%2)&&(S==="reverse"?(X=1-X,b&&(X-=b/m)):S==="mirror"&&($=a)),P=Xn(0,1,X)*m}const A=E?{done:!1,value:u[0]}:$.next(P);c&&(A.value=c(A.value));let{done:D}=A;!E&&d!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return V&&i!==void 0&&(A.value=Ka(u,this.options,i)),T&&T(A.value),V&&this.finish(),A}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=PD,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const OD=new Set(["opacity","clipPath","filter","transform"]);function _D(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=l1(c,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const ID=Uf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Za=10,$D=2e4;function DD(e){return zf(e.type)||e.type==="spring"||!a1(e.ease)}function RD(e,t){const n=new dd({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<$D;)r=n.sample(o),i.push(r.value),o+=Za;return{times:void 0,keyframes:i,duration:o-Za,ease:"linear"}}const eb={anticipate:m1,backInOut:h1,circInOut:g1};function ND(e){return e in eb}class tb extends V1{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new j1(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&qa()&&ND(o)&&(o=eb[o]),DD(this.options)){const{onComplete:m,onUpdate:p,motionValue:y,element:S,...b}=this.options,T=RD(t,b);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,o=T.ease,a="keyframes"}const h=_D(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(s1(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ka(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Zn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Zn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Ln(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Nt;const{animation:r}=n;s1(r,t)}return Nt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:p,...y}=this.options,S=new dd({...y,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),b=Ln(this.time);d.setWithVelocity(S.sample(b-Za).value,S.sample(b).value,Za)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return ID()&&r&&OD.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}}const LD={type:"spring",stiffness:500,damping:25,restSpeed:10},kD=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),jD={type:"keyframes",duration:.8},FD={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},VD=(e,{keyframes:t})=>t.length>2?jD:li.has(e)?e.startsWith("scale")?kD(t[1]):LD:FD;function BD({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const hd=(e,t,n,r={},i,o)=>a=>{const c=jf(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Ln(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};BD(c)||(h={...h,...VD(e,h)}),h.duration&&(h.duration=Ln(h.duration)),h.repeatDelay&&(h.repeatDelay=Ln(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const p=Ka(h.keyframes,c);if(p!==void 0)return He.update(()=>{h.onUpdate(p),h.onComplete()}),new g4([])}return!o&&tb.supports(h)?new tb(h):new dd(h)};function WD({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function nb(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const p=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),y=u[m];if(y===void 0||h&&WD(h,m))continue;const S={delay:n,...jf(a||{},m)};let b=!1;if(window.MotionHandoffAnimation){const w=i1(e);if(w){const E=window.MotionHandoffAnimation(w,m,He);E!==null&&(S.startTime=E,b=!0)}}Wf(e,m),p.start(hd(m,p,y,e.shouldReduceMotion&&t1.has(m)?{type:!1}:S,e,b));const T=p.animation;T&&d.push(T)}return c&&Promise.all(d).then(()=>{He.update(()=>{c&&d4(e,c)})}),d}function md(e,t,n={}){var r;const i=bo(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(nb(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return UD(e,t,h+d,m,p,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[a,c]:[c,a];return d().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function UD(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(zD).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(md(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function zD(e,t){return e.sortNodePosition(t)}function GD(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>md(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=md(e,t,n);else{const i=typeof t=="function"?bo(e,t,n.custom):t;r=Promise.all(nb(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function rb(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 YD=Ef.length;function ib(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ib(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<YD;n++){const r=Ef[n],i=e.props[r];(po(i)||i===!1)&&(t[r]=i)}return t}const HD=[...Tf].reverse(),qD=Tf.length;function KD(e){return t=>Promise.all(t.map(({animation:n,options:r})=>GD(e,n,r)))}function XD(e){let t=KD(e),n=sb(),r=!0;const i=u=>(d,h)=>{var m;const p=bo(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:y,transitionEnd:S,...b}=p;d={...d,...b,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=ib(e.parent)||{},m=[],p=new Set;let y={},S=1/0;for(let T=0;T<qD;T++){const w=HD[T],E=n[w],P=d[w]!==void 0?d[w]:h[w],$=po(P),A=w===u?E.isActive:null;A===!1&&(S=T);let D=P===h[w]&&P!==d[w]&&$;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),E.protectedKeys={...y},!E.isActive&&A===null||!P&&!E.prevProp||Ua(P)||typeof P=="boolean")continue;const V=ZD(E.prevProp,P);let j=V||w===u&&E.isActive&&!D&&$||T>S&&$,U=!1;const X=Array.isArray(P)?P:[P];let ne=X.reduce(i(w),{});A===!1&&(ne={});const{prevResolvedValues:oe={}}=E,ge={...oe,...ne},ue=F=>{j=!0,p.has(F)&&(U=!0,p.delete(F)),E.needsAnimating[F]=!0;const B=e.getValue(F);B&&(B.liveStyle=!1)};for(const F in ge){const B=ne[F],G=oe[F];if(y.hasOwnProperty(F))continue;let O=!1;Lf(B)&&Lf(G)?O=!rb(B,G):O=B!==G,O?B!=null?ue(F):p.add(F):B!==void 0&&p.has(F)?ue(F):E.protectedKeys[F]=!0}E.prevProp=P,E.prevResolvedValues=ne,E.isActive&&(y={...y,...ne}),r&&e.blockInitialAnimation&&(j=!1),j&&(!(D&&V)||U)&&m.push(...X.map(F=>({animation:F,options:{type:w}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const w=bo(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(T.transition=w.transition)}p.forEach(w=>{const E=e.getBaseTarget(w),P=e.getValue(w);P&&(P.liveStyle=!0),T[w]=E??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=a(u);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=sb(),r=!0}}}function ZD(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!rb(t,e):!1}function di(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sb(){return{animate:di(!0),whileInView:di(),whileHover:di(),whileTap:di(),whileDrag:di(),whileFocus:di(),exit:di()}}class Mr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class JD extends Mr{constructor(t){super(t),t.animationState||(t.animationState=XD(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 QD=0;class e5 extends Mr{constructor(){super(...arguments),this.id=QD++}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:JD},exit:{Feature:e5}},vn={x:!1,y:!1};function ob(){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 Ao(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 Mo(e){return{point:{x:e.pageX,y:e.pageY}}}const r5=e=>t=>pd(t)&&e(t,Mo(t));function Oo(e,t,n,r){return Ao(e,t,r5(n),r)}function ab({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 lb=1e-4,o5=1-lb,a5=1+lb,cb=.01,l5=0-cb,c5=0+cb;function _t(e){return e.max-e.min}function u5(e,t,n){return Math.abs(e-t)<=n}function ub(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 _o(e,t,n,r){ub(e.x,t.x,n.x,r?r.originX:void 0),ub(e.y,t.y,n.y,r?r.originY:void 0)}function fb(e,t,n){e.min=n.min+t.min,e.max=e.min+_t(t)}function f5(e,t,n){fb(e.x,t.x,n.x),fb(e.y,t.y,n.y)}function db(e,t,n){e.min=t.min-n.min,e.max=e.min+_t(t)}function Io(e,t,n){db(e.x,t.x,n.x),db(e.y,t.y,n.y)}const hb=()=>({translate:0,scale:1,origin:0,originPoint:0}),cs=()=>({x:hb(),y:hb()}),mb=()=>({min:0,max:0}),lt=()=>({x:mb(),y:mb()});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 hi(e){return yd(e)||pb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function pb(e){return gb(e.x)||gb(e.y)}function gb(e){return e&&e!=="0%"}function Ja(e,t,n){const r=e-n,i=t*r;return n+i}function yb(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=yb(e.min,t,n,r,i),e.max=yb(e.max,t,n,r,i)}function vb(e,{x:t,y:n}){vd(e.x,t.translate,t.scale,t.originPoint),vd(e.y,n.translate,n.scale,n.originPoint)}const bb=.999999999999,xb=1.0000000000001;function d5(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&fs(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,vb(e,a)),r&&hi(o.latestValues)&&fs(e,o.latestValues))}t.x<xb&&t.x>bb&&(t.x=1),t.y<xb&&t.y>bb&&(t.y=1)}function us(e,t){e.min=e.min+t,e.max=e.max+t}function wb(e,t,n,r,i=.5){const o=rt(e.min,e.max,i);vd(e,t,n,o,r)}function fs(e,t){wb(e.x,t.x,t.scaleX,t.scale,t.originX),wb(e.y,t.y,t.scaleY,t.scale,t.originY)}function Sb(e,t){return ab(s5(e.getBoundingClientRect(),t))}function h5(e,t,n){const r=Sb(e,n),{scroll:i}=t;return i&&(us(r.x,i.offset.x),us(r.y,i.offset.y)),r}const Tb=({current:e})=>e?e.ownerDocument.defaultView:null,Eb=(e,t)=>Math.abs(e-t);function m5(e,t){const n=Eb(e.x,t.x),r=Eb(e.y,t.y);return Math.sqrt(n**2+r**2)}class Cb{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=xd(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=m5(m.offset,{x:0,y:0})>=3;if(!p&&!y)return;const{point:S}=m,{timestamp:b}=vt;this.history.push({...S,timestamp:b});const{onStart: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=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Mo(t),c=bd(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=vt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,xd(c,this.history)),this.removeListeners=Co(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(),Cr(this.updatePoint)}}function bd(e,t){return t?{point:t(e.point)}:e}function Pb(e,t){return{x:e.x-t.x,y:e.y-t.y}}function xd({point:e},t){return{point:e,delta:Pb(e,Ab(t)),offset:Pb(e,p5(t)),velocity:g5(t,.1)}}function p5(e){return e[0]}function Ab(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=Ab(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ln(t)));)n--;if(!r)return{x:0,y:0};const o=Zn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function y5(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?rt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?rt(n,e,r.max):Math.min(e,n)),e}function Mb(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:Mb(e.x,n,i),y:Mb(e.y,t,r)}}function Ob(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:Ob(e.x,t.x),y:Ob(e.y,t.y)}}function x5(e,t){let n=.5;const r=_t(e),i=_t(t);return i>r?n=os(t.min,t.max-r,e.min):r>i&&(n=os(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:_b(e,"left","right"),y:_b(e,"top","bottom")}}function _b(e,t,n){return{min:Ib(e,t),max:Ib(e,n)}}function Ib(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(Mo(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:y,onDragStart:S}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=n5(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rn(T=>{let w=this.getAxisMotionValue(T).get()||0;if(Rn.test(w)){const{projection:E}=this.visualElement;if(E&&E.layout){const P=E.layout.layoutBox[T];P&&(w=_t(P)*(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)},a=(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 Cb(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:Tb(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&He.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Qa(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=y5(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&rs(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=v5(i.layoutBox,n):this.constraints=!1,this.elastic=S5(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=w5(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!rs(t))return!1;const r=t.current;Er(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=h5(r,i.root,this.visualElement.getTransformPagePoint());let a=b5(i.layout.layoutBox,o);if(n){const c=n(i5(a));this.hasMutatedConstraints=!!c,c&&(a=ab(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=rn(h=>{if(!Qa(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const p=i?200:1e6,y=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Wf(this.visualElement,t),r.start(hd(t,r,0,n,this.visualElement,!1))}stopAnimation(){rn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){rn(n=>{const{drag:r}=this.getProps();if(!Qa(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(t[n]-rt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!rs(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};rn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();i[a]=x5({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rn(a=>{if(!Qa(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(rt(u,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;T5.set(this.visualElement,this);const t=this.visualElement.current,n=Oo(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();rs(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),He.read(r);const a=Ao(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(rn(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=u[h].translate,m.set(m.get()+u[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=wd,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function Qa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function C5(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class P5 extends Mr{constructor(t){super(t),this.removeGroupControls=Nt,this.removeListeners=Nt,this.controls=new E5(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Nt}unmount(){this.removeGroupControls(),this.removeListeners()}}const $b=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};class A5 extends Mr{constructor(){super(...arguments),this.removePointerDownListener=Nt}onPointerDown(t){this.session=new Cb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Tb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:$b(t),onStart:$b(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&He.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=Oo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const el={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Db(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(Se.test(e))e=parseFloat(e);else return e;const n=Db(e,t.target.x),r=Db(e,t.target.y);return`${n}% ${r}%`}},M5={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ar.parse(e);if(i.length>5)return r;const o=Ar.createTransformer(e),a=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+a]/=c,i[1+a]/=u;const d=rt(c,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};class O5 extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;k$(_5),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),el.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||He.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Cf.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Rb(e){const[t,n]=Pv(),r=_.useContext(vf);return v.jsx(O5,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(kv),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:xo(e);return r.start(hd("",r,t,n)),r.animation}function $5(e){return e instanceof SVGElement&&e.tagName!=="svg"}const D5=(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(D5),this.isDirty=!1,this.children.forEach(t)}}function N5(e,t){const n=Nn.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Cr(r),e(o-t))};return He.read(r,!0),()=>Cr(r)}const Nb=["TopLeft","TopRight","BottomLeft","BottomRight"],L5=Nb.length,Lb=e=>typeof e=="string"?parseFloat(e):e,kb=e=>typeof e=="number"||Se.test(e);function k5(e,t,n,r,i,o){i?(e.opacity=rt(0,n.opacity!==void 0?n.opacity:1,j5(r)),e.opacityExit=rt(t.opacity!==void 0?t.opacity:1,0,F5(r))):o&&(e.opacity=rt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<L5;a++){const c=`border${Nb[a]}Radius`;let u=jb(t,c),d=jb(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||kb(u)===kb(d)?(e[c]=Math.max(rt(Lb(u),Lb(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 jb(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const j5=Fb(0,.5,p1),F5=Fb(.5,.95,Nt);function Fb(e,t,n){return r=>r<e?0:r>t?1:n(os(e,t,r))}function Vb(e,t){e.min=t.min,e.max=t.max}function sn(e,t){Vb(e.x,t.x),Vb(e.y,t.y)}function Bb(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Wb(e,t,n,r,i){return e-=t,e=Ja(e,1/n,r),i!==void 0&&(e=Ja(e,1/i,r)),e}function V5(e,t=0,n=1,r=.5,i,o=e,a=e){if(Rn.test(t)&&(t=parseFloat(t),t=rt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=rt(o.min,o.max,r);e===o&&(c-=t),e.min=Wb(e.min,t,n,c,i),e.max=Wb(e.max,t,n,c,i)}function Ub(e,t,[n,r,i],o,a){V5(e,t[n],t[r],t[i],t.scale,o,a)}const B5=["x","scaleX","originX"],W5=["y","scaleY","originY"];function zb(e,t,n,r){Ub(e.x,t,B5,n?n.x:void 0,r?r.x:void 0),Ub(e.y,t,W5,n?n.y:void 0,r?r.y:void 0)}function Gb(e){return e.translate===0&&e.scale===1}function Yb(e){return Gb(e.x)&&Gb(e.y)}function Hb(e,t){return e.min===t.min&&e.max===t.max}function U5(e,t){return Hb(e.x,t.x)&&Hb(e.y,t.y)}function qb(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Kb(e,t){return qb(e.x,t.x)&&qb(e.y,t.y)}function Xb(e){return _t(e.x)/_t(e.y)}function Zb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class z5{constructor(){this.members=[]}add(t){Ff(this.members,t),t.scheduleRender()}remove(t){if(Vf(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function G5(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:p,skewX:y,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),y&&(r+=`skewX(${y}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const Sd=["","X","Y","Z"],Y5={visibility:"hidden"},Jb=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 Qb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=i1(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",He,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Qb(r)}function ex({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=H5++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(X5),this.nodes.forEach(t6),this.nodes.forEach(n6),this.nodes.forEach(Z5)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new R5)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Bf),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=$5(a),this.instance=a;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=N5(p,250),el.hasAnimatedSinceResize&&(el.hasAnimatedSinceResize=!1,this.nodes.forEach(nx))})}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(),E=!this.targetLayout||!Kb(this.targetLayout,S),P=!p&&y;if(this.options.layoutRoot||this.resumeFrom||P||p&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,P);const $={...jf(b,"layout"),onPlay:T,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||nx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Cr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(r6),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Qb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(tx);return}this.isUpdating||this.nodes.forEach(Q5),this.isUpdating=!1,this.nodes.forEach(e6),this.nodes.forEach(q5),this.nodes.forEach(K5),this.clearAllSnapshots();const c=Nn.now();vt.delta=Xn(0,1e3/60,c-vt.timestamp),vt.timestamp=c,vt.isProcessing=!0,Sf.update.process(vt),Sf.preRender.process(vt),Sf.render.process(vt),vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Cf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(J5),this.sharedNodes.forEach(i6)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,He.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){He.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!_t(this.snapshot.measuredBox.x)&&!_t(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=lt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!Yb(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||hi(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),l6(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return lt();const u=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(c6))){const{scroll:h}=this.root;h&&(us(u.x,h.offset.x),us(u.y,h.offset.y))}return u}removeElementScroll(a){var c;const u=lt();if(sn(u,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&sn(u,a),us(u.x,m.offset.x),us(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=lt();sn(u,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&fs(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),hi(h.latestValues)&&fs(u,h.latestValues)}return hi(this.latestValues)&&fs(u,this.latestValues),u}removeTransform(a){const c=lt();sn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!hi(d.latestValues))continue;yd(d.latestValues)&&d.updateSnapshot();const h=lt(),m=d.measurePageBox();sn(h,m),zb(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return hi(this.latestValues)&&zb(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==vt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=vt.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Io(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),vb(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(),Io(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)||pb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===vt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;sn(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,y=this.treeScale.y;d5(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=lt());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Bb(this.prevProjectionDelta.x,this.projectionDelta.x),Bb(this.prevProjectionDelta.y,this.projectionDelta.y)),_o(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==y||!Zb(this.projectionDelta.x,this.prevProjectionDelta.x)||!Zb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=cs(),this.projectionDelta=cs(),this.projectionDeltaWithTransform=cs()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=cs();(!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,E=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(o6));this.animationProgress=0;let P;this.mixTargetDelta=$=>{const A=$/1e3;rx(m.x,a.x,A),rx(m.y,a.y,A),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Io(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),s6(this.relativeTarget,this.relativeTargetOrigin,p,A),P&&U5(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=lt()),sn(P,this.relativeTarget)),b&&(this.animationValues=h,k5(h,d,this.latestValues,A,E,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{el.hasAnimatedSinceResize=!0,this.currentAnimation=I5(0,Jb,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Jb),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&lx(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||lt();const m=_t(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+m;const p=_t(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+p}sn(c,u),fs(c,h),_o(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new z5),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&Td("z",a,d,this.animationValues);for(let h=0;h<Sd.length;h++)Td(`rotate${Sd[h]}`,a,d,this.animationValues),Td(`skew${Sd[h]}`,a,d,this.animationValues);a.render();for(const h in d)a.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Y5;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Ya(a==null?void 0:a.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Ya(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!hi(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 go){if(p[b]===void 0)continue;const{correct:T,applyTo:w,isCSSVariable:E}=go[b],P=d.transform==="none"?p[b]:T(p[b],m);if(w){const $=w.length;for(let A=0;A<$;A++)d[w[A]]=P}else E?this.options.visualElement.renderState.vars[b]=P:d[b]=P}return this.options.layoutId&&(d.pointerEvents=m===this?Ya(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(tx),this.root.sharedNodes.clear()}}}function q5(e){e.updateLayout()}function K5(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?rn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],y=_t(p);p.min=r[m].min,p.max=p.min+y}):lx(o,n.layoutBox,r)&&rn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],y=_t(r[m]);p.max=p.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+y)});const c=cs();_o(c,r,n.layoutBox);const u=cs();a?_o(u,e.applyTransform(i,!0),n.measuredBox):_o(u,r,n.layoutBox);const d=!Yb(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();Io(S,n.layoutBox,p.layoutBox);const b=lt();Io(b,r,y.layoutBox),Kb(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 tx(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 nx(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 rx(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 ix(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){ix(e.x,t.x,n.x,r),ix(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]},sx=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ox=sx("applewebkit/")&&!sx("chrome/")?Math.round:Nt;function ax(e){e.min=ox(e.min),e.max=ox(e.max)}function l6(e){ax(e.x),ax(e.y)}function lx(e,t,n){return e==="position"||e==="preserve-aspect"&&!u5(Xb(t),Xb(n),.2)}function c6(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const u6=ex({attachResizeListener:(e,t)=>Ao(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ed={current:void 0},cx=ex({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:cx,MeasureLayout:Rb}};function d6(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function ux(e,t){const n=d6(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function fx(e){return!(e.pointerType==="touch"||ob())}function h6(e,t,n={}){const[r,i,o]=ux(e,n),a=c=>{if(!fx(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{fx(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}function dx(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&He.postRender(()=>o(t,Mo(t)))}class m6 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=h6(t,(n,r)=>(dx(this.node,r,"Start"),i=>dx(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=Co(Ao(this.node.current,"focus",()=>this.onFocus()),Ao(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const hx=(e,t)=>t?e===t?!0:hx(e,t.parentElement):!1,g6=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function y6(e){return g6.has(e.tagName)||e.tabIndex!==-1}const Do=new WeakSet;function mx(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=mx(()=>{if(Do.has(n))return;Cd(n,"down");const i=mx(()=>{Cd(n,"up")}),o=()=>Cd(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function px(e){return pd(e)&&!ob()}function b6(e,t,n={}){const[r,i,o]=ux(e,n),a=c=>{const u=c.currentTarget;if(!px(c)||Do.has(u))return;Do.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!px(y)||!Do.has(u))&&(Do.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||hx(u,y.target))},p=y=>{h(y,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",p,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>v6(d,i)),!y6(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}function gx(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&He.postRender(()=>o(t,Mo(t)))}class x6 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=b6(t,(n,r)=>(gx(this.node,r,"Start"),(i,{success:o})=>gx(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Pd=new WeakMap,Ad=new WeakMap,w6=e=>{const t=Pd.get(e.target);t&&t(e)},S6=e=>{e.forEach(w6)};function T6({root:e,...t}){const n=e||document;Ad.has(n)||Ad.set(n,{});const r=Ad.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(S6,{root:e,...t})),r[i]}function E6(e,t,n){const r=T6(t);return Pd.set(e,n),r.observe(e),()=>{Pd.delete(e),r.unobserve(e)}}const C6={some:0,all:1};class P6 extends Mr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:C6[i]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=d?h:m;p&&p(u)};return E6(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(A6(t,n))&&this.startObserver()}unmount(){}}function A6({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const M6={inView:{Feature:P6},tap:{Feature:x6},focus:{Feature:p6},hover:{Feature:m6}},O6={layout:{ProjectionNode:cx,MeasureLayout:Rb}},Md={current:null},yx={current:!1};function _6(){if(yx.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=[...L1,Ct,Ar],$6=e=>I6.find(N1(e)),D6=new WeakMap;function R6(e,t,n){for(const r in t){const i=t[r],o=n[r];if(Et(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&Ba(i.version==="12.6.2",`Attempting to mix Motion versions ${i.version} with 12.6.2 may not work as expected.`);else if(Et(o))e.addValue(r,xo(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,xo(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const vx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class N6{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=sd,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=Nn.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,He.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=za(n),this.isVariantNode=Rv(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,D6.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)),yx.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=li.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&He.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ns){const n=ns[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):lt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<vx.length;r++){const i=vx[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=R6(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=xo(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"&&(D1(i)||y1(i))?i=parseFloat(i):!$6(i)&&Ar.test(n)&&(i=C1(t,n)),this.setBaseTarget(t,Et(i)?i.get():i)),Et(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=Nf(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Et(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Bf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class bx extends N6{constructor(){super(...arguments),this.KeyframeResolver=j1}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 bx{constructor(){super(...arguments),this.type="html",this.renderInstance=Xv}readValueFromInstance(t,n){if(li.has(n))return W4(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 Sb(t,n)}build(t,n,r){_f(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return kf(t,n,r)}}class j6 extends bx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Kv(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(li.has(n)){const r=E1(n);return r&&r.default||0}return n=Zv.has(n)?n:Pf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Qv(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){Jv(t,n,r,i)}mount(t){this.isSVGTag=Rf(t.tagName),super.mount(t)}}const F6=(e,t)=>$f(e)?new j6(t):new k6(t,{allowProjection:e!==_.Fragment}),V6=a4({...t5,...M6,...f6,...O6},F6),Ze=E$(V6),Od={defaultColorScheme:"aqua",t:e=>e},xx=_.createContext(Od),Ue=()=>_.useContext(xx),wx=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o,showCloseButton:a=!0})=>{const{t:c}=Ue(),u={hidden:{opacity:0},visible:{opacity:1}},d={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},h=()=>{i==null||i(),r()},m=()=>{o==null||o(),r()};return v.jsx(Kn,{children:n&&v.jsx(v.Fragment,{children:v.jsx(Ze.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:u,onClick:r,children:v.jsx(Ze.div,{className:"w-full max-w-4xl mx-16 z-50",variants:d,initial:"hidden",animate:"visible",exit:"exit",onClick:p=>p.stopPropagation(),children:v.jsxs(xs,{className:"flex flex-col gap-16 p-32",children:[v.jsxs("div",{className:"flex justify-between items-center gap-16",children:[v.jsx("h3",{className:"text-black font-700 text-3xl",children:e}),a&&v.jsx(_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:[o&&v.jsx(ws,{onClick:m,variant:"transparent",className:"px-24 py-10! text-lg!",children:c("cancel")}),i&&v.jsx(ws,{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 ds(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(ds(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(ds(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(ds(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_d(e)&&e.host||kn(e);return _d(t)?t.host:t}function Sx(e){const t=Qn(e);return Jn(t)?e.ownerDocument?e.ownerDocument.body:e.body:kt(t)&&Do(t)?t:Sx(t)}function Or(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Sx(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Lt(i);if(o){const c=$d(a);return t.concat(a,a.visualViewport||[],Do(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 Ro(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 No(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 mi(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 hs(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 ms(e,t){return typeof e=="function"?e(t):e}function Ir(e){return e.split("-")[0]}function ps(e){return e.split("-")[1]}function Mx(e){return e==="x"?"y":"x"}function Nd(e){return e==="y"?"height":"width"}function pi(e){return["top","bottom"].includes(Ir(e))?"y":"x"}function Ld(e){return Mx(pi(e))}function rR(e,t,n){n===void 0&&(n=!1);const r=ps(e),i=Ld(e),o=Nd(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=al(a)),[a,al(a)]}function iR(e){const t=al(e);return[kd(e),t,kd(t)]}function kd(e){return e.replace(/start|end/g,t=>nR[t])}function sR(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function oR(e,t,n,r){const i=ps(e);let o=sR(Ir(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(kd)))),o}function al(e){return e.replace(/left|right|bottom|top/g,t=>tR[t])}function aR(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ox(e){return typeof e!="number"?aR(e):{top:e,right:e,bottom:e,left:e}}function ll(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function _x(e,t,n){let{reference:r,floating:i}=e;const o=pi(t),a=Ld(t),c=Nd(a),u=Ir(t),d=o==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,p=r[c]/2-i[c]/2;let y;switch(u){case"top":y={x:h,y:r.y-i.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:m};break;case"left":y={x:r.x-i.width,y:m};break;default:y={x:r.x,y:r.y}}switch(ps(t)){case"start":y[a]-=p*(n&&d?-1:1);break;case"end":y[a]+=p*(n&&d?-1:1);break}return y}const lR=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,c=o.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=_x(d,r,u),p=r,y={},S=0;for(let b=0;b<c.length;b++){const{name:T,fn:w}=c[b],{x:E,y:P,data:$,reset:A}=await w({x:h,y:m,initialPlacement:r,placement:p,strategy:i,middlewareData:y,rects:d,platform:a,elements:{reference:e,floating:t}});h=E??h,m=P??m,y={...y,[T]:{...y[T],...$}},A&&S<=50&&(S++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(d=A.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):A.rects),{x:h,y:m}=_x(d,p,u)),b=-1)}return{x:h,y:m,placement:p,strategy:i,middlewareData:y}};async function jd(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:c,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:p=!1,padding:y=0}=ms(t,e),S=Ox(y),T=c[p?m==="floating"?"reference":"floating":m],w=ll(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(T)))==null||n?T:T.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:u})),E=m==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,P=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),$=await(o.isElement==null?void 0:o.isElement(P))?await(o.getScale==null?void 0:o.getScale(P))||{x:1,y:1}:{x:1,y:1},A=ll(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:E,offsetParent:P,strategy:u}):E);return{top:(w.top-A.top+S.top)/$.y,bottom:(A.bottom-w.bottom+S.bottom)/$.y,left:(w.left-A.left+S.left)/$.x,right:(A.right-w.right+S.right)/$.x}}const cR=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:c,middlewareData:u}=t,{element:d,padding:h=0}=ms(e,t)||{};if(d==null)return{};const m=Ox(h),p={x:n,y:r},y=Ld(i),S=Nd(y),b=await a.getDimensions(d),T=y==="y",w=T?"top":"left",E=T?"bottom":"right",P=T?"clientHeight":"clientWidth",$=o.reference[S]+o.reference[y]-p[y]-o.floating[S],A=p[y]-o.reference[y],D=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let k=D?D[P]:0;(!k||!await(a.isElement==null?void 0:a.isElement(D)))&&(k=c.floating[P]||o.floating[S]);const F=$/2-A/2,z=k/2-b[S]/2-1,J=_r(m[w],z),ne=_r(m[E],z),le=J,ye=k-b[S]-ne,de=k/2-b[S]/2+F,ue=Rd(le,de,ye),he=!u.arrow&&ps(i)!=null&&de!==ue&&o.reference[S]/2-(de<le?J:ne)-b[S]/2<0,V=he?de<le?de-le:de-ye:0;return{[y]:p[y]+V,data:{[y]:ue,centerOffset:de-ue-V,...he&&{alignmentOffset:V}},reset:he}}}),uR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:b=!0,...T}=ms(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const w=Ir(i),E=pi(c),P=Ir(c)===c,$=await(u.isRTL==null?void 0:u.isRTL(d.floating)),A=p||(P||!b?[al(c)]:iR(c)),D=S!=="none";!p&&D&&A.push(...oR(c,b,S,$));const k=[c,...A],F=await jd(t,T),z=[];let J=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&z.push(F[w]),m){const de=rR(i,a,$);z.push(F[de[0]],F[de[1]])}if(J=[...J,{placement:i,overflows:z}],!z.every(de=>de<=0)){var ne,le;const de=(((ne=o.flip)==null?void 0:ne.index)||0)+1,ue=k[de];if(ue)return{data:{index:de,overflows:J},reset:{placement:ue}};let he=(le=J.filter(V=>V.overflows[0]<=0).sort((V,B)=>V.overflows[1]-B.overflows[1])[0])==null?void 0:le.placement;if(!he)switch(y){case"bestFit":{var ye;const V=(ye=J.filter(B=>{if(D){const G=pi(B.placement);return G===E||G==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(G=>G>0).reduce((G,O)=>G+O,0)]).sort((B,G)=>B[1]-G[1])[0])==null?void 0:ye[0];V&&(he=V);break}case"initialPlacement":he=c;break}if(i!==he)return{reset:{placement:he}}}return{}}}};async function fR(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Ir(n),c=ps(n),u=pi(n)==="y",d=["left","top"].includes(a)?-1:1,h=o&&u?-1:1,m=ms(t,e);let{mainAxis:p,crossAxis:y,alignmentAxis:S}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof S=="number"&&(y=c==="end"?S*-1:S),u?{x:y*h,y:p*d}:{x:p*d,y:y*h}}const dR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:c}=t,u=await fR(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:o+u.y,data:{...u,placement:a}}}}},hR=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:c={fn:T=>{let{x:w,y:E}=T;return{x:w,y:E}}},...u}=ms(e,t),d={x:n,y:r},h=await jd(t,u),m=pi(Ir(i)),p=Mx(m);let y=d[p],S=d[m];if(o){const T=p==="y"?"top":"left",w=p==="y"?"bottom":"right",E=y+h[T],P=y-h[w];y=Rd(E,y,P)}if(a){const T=m==="y"?"top":"left",w=m==="y"?"bottom":"right",E=S+h[T],P=S-h[w];S=Rd(E,S,P)}const b=c.fn({...t,[p]:y,[m]:S});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:o,[m]:a}}}}}},mR=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:c}=t,{apply:u=()=>{},...d}=ms(e,t),h=await jd(t,d),m=Ir(i),p=ps(i),y=pi(i)==="y",{width:S,height:b}=o.floating;let T,w;m==="top"||m==="bottom"?(T=m,w=p===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(w=m,T=p==="end"?"top":"bottom");const E=b-h.top-h.bottom,P=S-h.left-h.right,$=_r(b-h[T],E),A=_r(S-h[w],P),D=!t.middlewareData.shift;let k=$,F=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=P),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=E),D&&!p){const J=Yt(h.left,0),ne=Yt(h.right,0),le=Yt(h.top,0),ye=Yt(h.bottom,0);y?F=S-2*(J!==0||ne!==0?J+ne:Yt(h.left,h.right)):k=b-2*(le!==0||ye!==0?le+ye:Yt(h.top,h.bottom))}await u({...t,availableWidth:F,availableHeight:k});const z=await a.getDimensions(c.floating);return S!==z.width||b!==z.height?{reset:{rects:!0}}:{}}}};function Ix(e){const t=on(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=kt(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,c=sl(n)!==o||sl(r)!==a;return c&&(n=o,r=a),{width:n,height:r,$:c}}function Fd(e){return qe(e)?e:e.contextElement}function gs(e){const t=Fd(e);if(!kt(t))return jn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Ix(t);let a=(o?sl(n.width):n.width)/r,c=(o?sl(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const pR=jn(0);function $x(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 gi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Fd(e);let a=jn(1);t&&(r?qe(r)&&(a=gs(r)):a=gs(e));const c=gR(o,n,r)?$x(o):jn(0);let u=(i.left+c.x)/a.x,d=(i.top+c.y)/a.y,h=i.width/a.x,m=i.height/a.y;if(o){const p=Lt(o),y=r&&qe(r)?Lt(r):r;let S=p,b=$d(S);for(;b&&r&&y!==S;){const T=gs(b),w=b.getBoundingClientRect(),E=on(b),P=w.left+(b.clientLeft+parseFloat(E.paddingLeft))*T.x,$=w.top+(b.clientTop+parseFloat(E.paddingTop))*T.y;u*=T.x,d*=T.y,h*=T.x,m*=T.y,u+=P,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:gi(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)),o=r.top+t.scrollTop;return{x:i,y:o}}function yR(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=kn(r),c=t?nl(t.floating):!1;if(r===a||c&&o)return n;let u={scrollLeft:0,scrollTop:0},d=jn(1);const h=jn(0),m=kt(r);if((m||!m&&!o)&&((ds(r)!=="body"||Do(a))&&(u=il(r)),kt(r))){const y=gi(r);d=gs(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}const p=a&&!m&&!o?Dx(a,u,!0):jn(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+h.x+p.x,y:n.y*d.y-u.scrollTop*d.y+h.y+p.y}}function vR(e){return Array.from(e.getClientRects())}function bR(e){const t=kn(e),n=il(e),r=e.ownerDocument.body,i=Yt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Yt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Vd(e);const c=-n.scrollTop;return on(r).direction==="rtl"&&(a+=Yt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:c}}function xR(e,t){const n=Lt(e),r=kn(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,c=0,u=0;if(i){o=i.width,a=i.height;const d=rl();(!d||d&&t==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:c,y:u}}function wR(e,t){const n=gi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=kt(e)?gs(e):jn(1),a=e.clientWidth*o.x,c=e.clientHeight*o.y,u=i*o.x,d=r*o.y;return{width:a,height:c,x:u,y:d}}function Rx(e,t,n){let r;if(t==="viewport")r=xR(e,n);else if(t==="document")r=bR(kn(e));else if(qe(t))r=wR(t,n);else{const i=$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 SR(e,t){const n=t.get(e);if(n)return n;let r=Or(e,[],!1).filter(c=>qe(c)&&ds(c)!=="body"),i=null;const o=on(e).position==="fixed";let a=o?Qn(e):e;for(;qe(a)&&!Jn(a);){const c=on(a),u=Id(a);!u&&c.position==="fixed"&&(i=null),(o?!u&&!i:!u&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Do(a)&&!u&&Nx(e,a))?r=r.filter(h=>h!==a):i=c,a=Qn(a)}return t.set(e,r),r}function TR(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?nl(t)?[]:SR(t,this._c):[].concat(n),r],c=a[0],u=a.reduce((d,h)=>{const m=Rx(t,h,i);return d.top=Yt(m.top,d.top),d.right=_r(m.right,d.right),d.bottom=_r(m.bottom,d.bottom),d.left=Yt(m.left,d.left),d},Rx(t,c,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function ER(e){const{width:t,height:n}=Ix(e);return{width:t,height:n}}function CR(e,t,n){const r=kt(t),i=kn(t),o=n==="fixed",a=gi(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const u=jn(0);if(r||!r&&!o)if((ds(t)!=="body"||Do(i))&&(c=il(t)),r){const p=gi(t,!0,o,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else i&&(u.x=Vd(i));const d=i&&!r&&!o?Dx(i,c):jn(0),h=a.left+c.scrollLeft-u.x-d.x,m=a.top+c.scrollTop-u.y-d.y;return{x:h,y:m,width:a.width,height:a.height}}function Bd(e){return on(e).position==="static"}function Lx(e,t){if(!kt(e)||on(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return kn(e)===n&&(n=n.ownerDocument.body),n}function kx(e,t){const n=Lt(e);if(nl(e))return n;if(!kt(e)){let i=Qn(e);for(;i&&!Jn(i);){if(qe(i)&&!Bd(i))return i;i=Qn(i)}return n}let r=Lx(e,t);for(;r&&Y6(r)&&Bd(r);)r=Lx(r,t);return r&&Jn(r)&&Bd(r)&&!Id(r)?n:r||H6(e)||n}const PR=async function(e){const t=this.getOffsetParent||kx,n=this.getDimensions,r=await n(e.floating);return{reference:CR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function AR(e){return on(e).direction==="rtl"}const MR={convertOffsetParentRelativeRectToViewportRelativeRect:yR,getDocumentElement:kn,getClippingRect:TR,getOffsetParent:kx,getElementRects:PR,getClientRects:vR,getDimensions:ER,getScale:gs,isElement:qe,isRTL:AR};function jx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function OR(e,t){let n=null,r;const i=kn(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),o();const d=e.getBoundingClientRect(),{left:h,top:m,width:p,height:y}=d;if(c||t(),!p||!y)return;const S=ol(m),b=ol(i.clientWidth-(h+p)),T=ol(i.clientHeight-(m+y)),w=ol(h),P={rootMargin:-S+"px "+-b+"px "+-T+"px "+-w+"px",threshold:Yt(0,_r(1,u))||1};let $=!0;function A(D){const k=D[0].intersectionRatio;if(k!==u){if(!$)return a();k?a(!1,k):r=setTimeout(()=>{a(!1,1e-7)},1e3)}k===1&&!jx(d,e.getBoundingClientRect())&&a(),$=!1}try{n=new IntersectionObserver(A,{...P,root:i.ownerDocument})}catch{n=new IntersectionObserver(A,P)}n.observe(e)}return a(!0),o}function $r(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=Fd(e),h=i||o?[...d?Or(d):[],...Or(t)]:[];h.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),o&&w.addEventListener("resize",n)});const m=d&&c?OR(d,n):null;let p=-1,y=null;a&&(y=new ResizeObserver(w=>{let[E]=w;E&&E.target===d&&y&&(y.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var P;(P=y)==null||P.observe(t)})),n()}),d&&!u&&y.observe(d),y.observe(t));let S,b=u?gi(e):null;u&&T();function T(){const w=gi(e);b&&!jx(b,w)&&n(),b=w,S=requestAnimationFrame(T)}return n(),()=>{var w;h.forEach(E=>{i&&E.removeEventListener("scroll",n),o&&E.removeEventListener("resize",n)}),m==null||m(),(w=y)==null||w.disconnect(),y=null,u&&cancelAnimationFrame(S)}}const _R=dR,IR=hR,$R=uR,DR=mR,Fx=cR,RR=(e,t,n)=>{const r=new Map,i={platform:MR,...n},o={...i.platform,_c:r};return lR(e,t,{...i,platform:o})};var cl=typeof document<"u"?_.useLayoutEffect:_.useEffect;function ul(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ul(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!ul(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Vx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bx(e,t){const n=Vx(e);return Math.round(t*n)/n}function Wd(e){const t=ee.useRef(e);return cl(()=>{t.current=e}),t}function NR(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[h,m]=ee.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,y]=ee.useState(r);ul(p,r)||y(r);const[S,b]=ee.useState(null),[T,w]=ee.useState(null),E=ee.useCallback(B=>{B!==D.current&&(D.current=B,b(B))},[]),P=ee.useCallback(B=>{B!==k.current&&(k.current=B,w(B))},[]),$=o||S,A=a||T,D=ee.useRef(null),k=ee.useRef(null),F=ee.useRef(h),z=u!=null,J=Wd(u),ne=Wd(i),le=Wd(d),ye=ee.useCallback(()=>{if(!D.current||!k.current)return;const B={placement:t,strategy:n,middleware:p};ne.current&&(B.platform=ne.current),RR(D.current,k.current,B).then(G=>{const O={...G,isPositioned:le.current!==!1};de.current&&!ul(F.current,O)&&(F.current=O,mT.flushSync(()=>{m(O)}))})},[p,t,n,ne,le]);cl(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,m(B=>({...B,isPositioned:!1})))},[d]);const de=ee.useRef(!1);cl(()=>(de.current=!0,()=>{de.current=!1}),[]),cl(()=>{if($&&(D.current=$),A&&(k.current=A),$&&A){if(J.current)return J.current($,A,ye);ye()}},[$,A,ye,J,z]);const ue=ee.useMemo(()=>({reference:D,floating:k,setReference:E,setFloating:P}),[E,P]),he=ee.useMemo(()=>({reference:$,floating:A}),[$,A]),V=ee.useMemo(()=>{const B={position:n,left:0,top:0};if(!he.floating)return B;const G=Bx(he.floating,h.x),O=Bx(he.floating,h.y);return c?{...B,transform:"translate("+G+"px, "+O+"px)",...Vx(he.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:O}},[n,c,he.floating,h.x,h.y]);return ee.useMemo(()=>({...h,update:ye,refs:ue,elements:he,floatingStyles:V}),[h,ye,ue,he,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):{}}}},Dr=(e,t)=>({..._R(e),options:[e,t]}),Rr=(e,t)=>({...IR(e),options:[e,t]}),Nr=(e,t)=>({...$R(e),options:[e,t]}),ys=(e,t)=>({...DR(e),options:[e,t]}),vs=(e,t)=>({...LR(e),options:[e,t]}),Wx={...ee},kR=Wx.useInsertionEffect||(e=>e());function er(e){const t=ee.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return kR(()=>{t.current=e}),ee.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 Lr=typeof document<"u"?_.useLayoutEffect:_.useEffect;let Ux=!1,jR=0;const zx=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+jR++;function FR(){const[e,t]=ee.useState(()=>Ux?zx():void 0);return Lr(()=>{e==null&&t(zx())},[]),ee.useEffect(()=>{Ux=!0},[]),e}const Gx=Wx.useId||FR;let Ud;process.env.NODE_ENV!=="production"&&(Ud=new Set);function VR(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=Ud)!=null&&e.has(i))){var o;(o=Ud)==null||o.add(i),console.error(i)}}function BR(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const WR=ee.createContext(null),UR=ee.createContext(null),zd=()=>{var e;return((e=ee.useContext(WR))==null?void 0:e.id)||null},Gd=()=>ee.useContext(UR);function Yd(e){return"data-floating-ui-"+e}function an(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}function yi(e){const t=_.useRef(e);return Lr(()=>{t.current=e}),t}const Yx=Yd("safe-polygon");function Hd(e,t,n){return n&&!No(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function zR(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:o,elements:a}=e,{enabled:c=!0,delay:u=0,handleClose:d=null,mouseOnly:h=!1,restMs:m=0,move:p=!0}=t,y=Gd(),S=zd(),b=yi(d),T=yi(u),w=yi(n),E=ee.useRef(),P=ee.useRef(-1),$=ee.useRef(),A=ee.useRef(-1),D=ee.useRef(!0),k=ee.useRef(!1),F=ee.useRef(()=>{}),z=ee.useRef(!1),J=ee.useCallback(()=>{var V;const B=(V=i.current.openEvent)==null?void 0:V.type;return(B==null?void 0:B.includes("mouse"))&&B!=="mousedown"},[i]);ee.useEffect(()=>{if(!c)return;function V(B){let{open:G}=B;G||(an(P),an(A),D.current=!0,z.current=!1)}return o.on("openchange",V),()=>{o.off("openchange",V)}},[c,o]),ee.useEffect(()=>{if(!c||!b.current||!n)return;function V(G){J()&&r(!1,G,"hover")}const B=mi(a.floating).documentElement;return B.addEventListener("mouseleave",V),()=>{B.removeEventListener("mouseleave",V)}},[a.floating,n,r,c,b,J]);const ne=ee.useCallback(function(V,B,G){B===void 0&&(B=!0),G===void 0&&(G="hover");const O=Hd(T.current,"close",E.current);O&&!$.current?(an(P),P.current=window.setTimeout(()=>r(!1,V,G),O)):B&&(an(P),r(!1,V,G))},[T,r]),le=er(()=>{F.current(),$.current=void 0}),ye=er(()=>{if(k.current){const V=mi(a.floating).body;V.style.pointerEvents="",V.removeAttribute(Yx),k.current=!1}}),de=er(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);ee.useEffect(()=>{if(!c)return;function V(N){if(an(P),D.current=!1,h&&!No(E.current)||m>0&&!Hd(T.current,"open"))return;const K=Hd(T.current,"open",E.current);K?P.current=window.setTimeout(()=>{w.current||r(!0,N,"hover")},K):n||r(!0,N,"hover")}function B(N){if(de())return;F.current();const K=mi(a.floating);if(an(A),z.current=!1,b.current&&i.current.floatingContext){n||an(P),$.current=b.current({...i.current.floatingContext,tree:y,x:N.clientX,y:N.clientY,onClose(){ye(),le(),de()||ne(N,!0,"safe-polygon")}});const Z=$.current;K.addEventListener("mousemove",Z),F.current=()=>{K.removeEventListener("mousemove",Z)};return}(E.current==="touch"?!Ro(a.floating,N.relatedTarget):!0)&&ne(N)}function G(N){de()||i.current.floatingContext&&(b.current==null||b.current({...i.current.floatingContext,tree:y,x:N.clientX,y:N.clientY,onClose(){ye(),le(),de()||ne(N)}})(N))}if(qe(a.domReference)){var O;const N=a.domReference;return n&&N.addEventListener("mouseleave",G),(O=a.floating)==null||O.addEventListener("mouseleave",G),p&&N.addEventListener("mousemove",V,{once:!0}),N.addEventListener("mouseenter",V),N.addEventListener("mouseleave",B),()=>{var K;n&&N.removeEventListener("mouseleave",G),(K=a.floating)==null||K.removeEventListener("mouseleave",G),p&&N.removeEventListener("mousemove",V),N.removeEventListener("mouseenter",V),N.removeEventListener("mouseleave",B)}}},[a,c,e,h,m,p,ne,le,ye,r,n,w,y,T,b,i,de]),Lr(()=>{var V;if(c&&n&&(V=b.current)!=null&&V.__options.blockPointerEvents&&J()){k.current=!0;const G=a.floating;if(qe(a.domReference)&&G){var B;const O=mi(a.floating).body;O.setAttribute(Yx,"");const N=a.domReference,K=y==null||(B=y.nodesRef.current.find(oe=>oe.id===S))==null||(B=B.context)==null?void 0:B.elements.floating;return K&&(K.style.pointerEvents=""),O.style.pointerEvents="none",N.style.pointerEvents="auto",G.style.pointerEvents="auto",()=>{O.style.pointerEvents="",N.style.pointerEvents="",G.style.pointerEvents=""}}}},[c,n,S,a,y,b,J]),Lr(()=>{n||(E.current=void 0,z.current=!1,le(),ye())},[n,le,ye]),ee.useEffect(()=>()=>{le(),an(P),an(A),ye()},[c,a.domReference,le,ye]);const ue=ee.useMemo(()=>{function V(B){E.current=B.pointerType}return{onPointerDown:V,onPointerEnter:V,onMouseMove(B){const{nativeEvent:G}=B;function O(){!D.current&&!w.current&&r(!0,G,"hover")}h&&!No(E.current)||n||m===0||z.current&&B.movementX**2+B.movementY**2<2||(an(A),E.current==="touch"?O():(z.current=!0,A.current=window.setTimeout(O,m)))}}},[h,r,n,w,m]),he=ee.useMemo(()=>({onMouseEnter(){an(P)},onMouseLeave(V){de()||ne(V.nativeEvent,!1)}}),[ne,de]);return ee.useMemo(()=>c?{reference:ue,floating:he}:{},[c,ue,he])}function qd(e,t){let n=e.filter(i=>{var o;return i.parentId===t&&((o=i.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(i=>{var o;return(o=r)==null?void 0:o.some(a=>{var c;return i.parentId===a.id&&((c=i.context)==null?void 0:c.open)})}),n=n.concat(r);return n}const GR="data-floating-ui-focusable";function Hx(e){return kt(e.target)&&e.target.tagName==="BUTTON"}function qx(e){return Ax(e)}function vi(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:a=!0,event:c="click",toggle:u=!0,ignoreMouse:d=!1,keyboardHandlers:h=!0,stickIfOpen:m=!0}=t,p=ee.useRef(),y=ee.useRef(!1),S=ee.useMemo(()=>({onPointerDown(b){p.current=b.pointerType},onMouseDown(b){const T=p.current;b.button===0&&c!=="click"&&(No(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}No(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(o)&&(b.preventDefault(),y.current=!0),b.key==="Enter"&&r(!(n&&u),b.nativeEvent,"click"))},onKeyUp(b){b.defaultPrevented||!h||Hx(b)||qx(o)||b.key===" "&&y.current&&(y.current=!1,r(!(n&&u),b.nativeEvent,"click"))}}),[i,o,c,d,h,r,n,m,u]);return ee.useMemo(()=>a?{reference:S}:{},[a,S])}const YR={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},HR={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Kx=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function kr(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:a=!0,escapeKey:c=!0,outsidePress:u=!0,outsidePressEvent:d="pointerdown",referencePress:h=!1,referencePressEvent:m="pointerdown",ancestorScroll:p=!1,bubbles:y,capture:S}=t,b=Gd(),T=er(typeof u=="function"?u:()=>!1),w=typeof u=="function"?T:u,E=ee.useRef(!1),P=ee.useRef(!1),{escapeKey:$,outsidePress:A}=Kx(y),{escapeKey:D,outsidePress:k}=Kx(S),F=ee.useRef(!1),z=er(ue=>{var he;if(!n||!a||!c||ue.key!=="Escape"||F.current)return;const V=(he=o.current.floatingContext)==null?void 0:he.nodeId,B=b?qd(b.nodesRef.current,V):[];if(!$&&(ue.stopPropagation(),B.length>0)){let G=!0;if(B.forEach(O=>{var N;if((N=O.context)!=null&&N.open&&!O.context.dataRef.current.__escapeKeyBubbles){G=!1;return}}),!G)return}r(!1,J6(ue)?ue.nativeEvent:ue,"escape-key")}),J=er(ue=>{var he;const V=()=>{var B;z(ue),(B=hs(ue))==null||B.removeEventListener("keydown",V)};(he=hs(ue))==null||he.addEventListener("keydown",V)}),ne=er(ue=>{var he;const V=E.current;E.current=!1;const B=P.current;if(P.current=!1,d==="click"&&B||V||typeof w=="function"&&!w(ue))return;const G=hs(ue),O="["+Yd("inert")+"]",N=mi(i.floating).querySelectorAll(O);let K=qe(G)?G:null;for(;K&&!Jn(K);){const Q=Qn(K);if(Jn(Q)||!qe(Q))break;K=Q}if(N.length&&qe(G)&&!Q6(G)&&!Ro(G,i.floating)&&Array.from(N).every(Q=>!Ro(K,Q)))return;if(kt(G)&&de){const Q=Jn(G),ae=on(G),re=/auto|scroll/,fe=Q||re.test(ae.overflowX),Ce=Q||re.test(ae.overflowY),Ve=fe&&G.clientWidth>0&&G.scrollWidth>G.clientWidth,ie=Ce&&G.clientHeight>0&&G.scrollHeight>G.clientHeight,pe=ae.direction==="rtl",De=ie&&(pe?ue.offsetX<=G.offsetWidth-G.clientWidth:ue.offsetX>G.clientWidth),ft=Ve&&ue.offsetY>G.clientHeight;if(De||ft)return}const oe=(he=o.current.floatingContext)==null?void 0:he.nodeId,Z=b&&qd(b.nodesRef.current,oe).some(Q=>{var ae;return Dd(ue,(ae=Q.context)==null?void 0:ae.elements.floating)});if(Dd(ue,i.floating)||Dd(ue,i.domReference)||Z)return;const q=b?qd(b.nodesRef.current,oe):[];if(q.length>0){let Q=!0;if(q.forEach(ae=>{var re;if((re=ae.context)!=null&&re.open&&!ae.context.dataRef.current.__outsidePressBubbles){Q=!1;return}}),!Q)return}r(!1,ue,"outside-press")}),le=er(ue=>{var he;const V=()=>{var B;ne(ue),(B=hs(ue))==null||B.removeEventListener(d,V)};(he=hs(ue))==null||he.addEventListener(d,V)});ee.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=$,o.current.__outsidePressBubbles=A;let ue=-1;function he(N){r(!1,N,"ancestor-scroll")}function V(){window.clearTimeout(ue),F.current=!0}function B(){ue=window.setTimeout(()=>{F.current=!1},rl()?5:0)}const G=mi(i.floating);c&&(G.addEventListener("keydown",D?J:z,D),G.addEventListener("compositionstart",V),G.addEventListener("compositionend",B)),w&&G.addEventListener(d,k?le:ne,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 K;return N!==((K=G.defaultView)==null?void 0:K.visualViewport)}),O.forEach(N=>{N.addEventListener("scroll",he,{passive:!0})}),()=>{c&&(G.removeEventListener("keydown",D?J:z,D),G.removeEventListener("compositionstart",V),G.removeEventListener("compositionend",B)),w&&G.removeEventListener(d,k?le:ne,k),O.forEach(N=>{N.removeEventListener("scroll",he)}),window.clearTimeout(ue)}},[o,i,c,w,d,n,r,p,a,$,A,z,D,J,ne,k,le]),ee.useEffect(()=>{E.current=!1},[w,d]);const ye=ee.useMemo(()=>({onKeyDown:z,...h&&{[YR[m]]:ue=>{r(!1,ue.nativeEvent,"reference-press")},...m!=="click"&&{onClick(ue){r(!1,ue.nativeEvent,"reference-press")}}}}),[z,r,h,m]),de=ee.useMemo(()=>({onKeyDown:z,onMouseDown(){P.current=!0},onMouseUp(){P.current=!0},[HR[d]]:()=>{E.current=!0}}),[z,d]);return ee.useMemo(()=>a?{reference:ye,floating:de}:{},[a,ye,de])}function qR(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Gx(),o=ee.useRef({}),[a]=ee.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]=ee.useState(r.reference),h=er((y,S,b)=>{o.current.openEvent=y?S:void 0,a.emit("openchange",{open:y,event:S,reason:b,nested:c}),n==null||n(y,S,b)}),m=ee.useMemo(()=>({setPositionReference:d}),[]),p=ee.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return ee.useMemo(()=>({dataRef:o,open:t,onOpenChange:h,elements:p,events:a,floatingId:i,refs:m}),[t,h,p,a,i,m])}function jr(e){e===void 0&&(e={});const{nodeId:t}=e,n=qR({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=ee.useState(null),[c,u]=ee.useState(null),h=(i==null?void 0:i.domReference)||o,m=ee.useRef(null),p=Gd();Lr(()=>{h&&(m.current=h)},[h]);const y=NR({...e,elements:{...i,...c&&{reference:c}}}),S=ee.useCallback(P=>{const $=qe(P)?{getBoundingClientRect:()=>P.getBoundingClientRect(),contextElement:P}:P;u($),y.refs.setReference($)},[y.refs]),b=ee.useCallback(P=>{(qe(P)||P===null)&&(m.current=P,a(P)),(qe(y.refs.reference.current)||y.refs.reference.current===null||P!==null&&!qe(P))&&y.refs.setReference(P)},[y.refs]),T=ee.useMemo(()=>({...y.refs,setReference:b,setPositionReference:S,domReference:m}),[y.refs,b,S]),w=ee.useMemo(()=>({...y.elements,domReference:h}),[y.elements,h]),E=ee.useMemo(()=>({...y,...r,refs:T,elements:w,nodeId:t}),[y,T,w,t,r]);return Lr(()=>{r.dataRef.current.floatingContext=E;const P=p==null?void 0:p.nodesRef.current.find($=>$.id===t);P&&(P.context=E)}),ee.useMemo(()=>({...y,context:E,refs:T,elements:w}),[y,T,w,E])}function KR(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:o,elements:a}=e,{enabled:c=!0,visibleOnly:u=!0}=t,d=ee.useRef(!1),h=ee.useRef(-1),m=ee.useRef(!0);ee.useEffect(()=>{if(!c)return;const y=Lt(a.domReference);function S(){!n&&kt(a.domReference)&&a.domReference===Tx(mi(a.domReference))&&(d.current=!0)}function b(){m.current=!0}return y.addEventListener("blur",S),y.addEventListener("keydown",b,!0),()=>{y.removeEventListener("blur",S),y.removeEventListener("keydown",b,!0)}},[a.domReference,n,c]),ee.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]),ee.useEffect(()=>()=>{an(h)},[]);const p=ee.useMemo(()=>({onPointerDown(y){q6(y.nativeEvent)||(m.current=!1)},onMouseLeave(){d.current=!1},onFocus(y){if(d.current)return;const S=hs(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 E=Tx(a.domReference?a.domReference.ownerDocument:document);!S&&E===a.domReference||Ro((w=o.current.floatingContext)==null?void 0:w.refs.floating.current,E)||Ro(a.domReference,E)||T||r(!1,b,"focus")})}}),[o,a.domReference,r,u]);return ee.useMemo(()=>c?{reference:p}:{},[c,p])}const Xx="active",Zx="selected";function Kd(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[Xx]:a,[Zx]:c,...u}=e;o=u}return{...n==="floating"&&{tabIndex:-1,[GR]:""},...o,...t.map(a=>{const c=a?a[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((a,c)=>(c&&Object.entries(c).forEach(u=>{let[d,h]=u;if(!(i&&[Xx,Zx].includes(d)))if(d.indexOf("on")===0){if(r.has(d)||r.set(d,[]),typeof h=="function"){var m;(m=r.get(d))==null||m.push(h),a[d]=function(){for(var p,y=arguments.length,S=new Array(y),b=0;b<y;b++)S[b]=arguments[b];return(p=r.get(d))==null?void 0:p.map(T=>T(...S)).find(T=>T!==void 0)}}}else a[d]=h}),a),{})}}function Fr(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=ee.useCallback(c=>Kd(c,e,"reference"),t),o=ee.useCallback(c=>Kd(c,e,"floating"),n),a=ee.useCallback(c=>Kd(c,e,"item"),r);return ee.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const XR=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function ZR(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,c=(n=XR.get(a))!=null?n:a,u=Gx(),h=zd()!=null,m=ee.useMemo(()=>c==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":c==="alertdialog"?"dialog":c,"aria-controls":r?i:void 0,...c==="listbox"&&{role:"combobox"},...c==="menu"&&{id:u},...c==="menu"&&h&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[c,i,h,r,u,a]),p=ee.useMemo(()=>{const S={id:i,...c&&{role:c}};return c==="tooltip"||a==="label"?S:{...S,...c==="menu"&&{"aria-labelledby":u}}},[c,i,u,a]),y=ee.useCallback(S=>{let{active:b,selected:T}=S;const w={role:"option",...b&&{id:i+"-option"}};switch(a){case"select":return{...w,"aria-selected":b&&T};case"combobox":return{...w,...b&&{"aria-selected":!0}}}return{}},[i,a]);return ee.useMemo(()=>o?{reference:m,floating:p,item:y}:{},[o,m,p,y])}const Jx=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function bs(e,t){return typeof e=="function"?e(t):e}function JR(e,t){const[n,r]=ee.useState(e);return e&&!n&&r(!0),ee.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function QR(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,a=(typeof i=="number"?i:i.close)||0,[c,u]=ee.useState("unmounted"),d=JR(n,a);return!d&&c==="close"&&u("unmounted"),Lr(()=>{if(r){if(n){u("initial");const h=requestAnimationFrame(()=>{u("open")});return()=>{cancelAnimationFrame(h)}}u("close")}},[n,r]),{isMounted:d,status:c}}function bi(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:o,duration:a=250}=t,c=e.placement,u=c.split("-")[0],d=ee.useMemo(()=>({side:u,placement:c}),[u,c]),h=typeof a=="number",m=(h?a:a.open)||0,p=(h?a:a.close)||0,[y,S]=ee.useState(()=>({...bs(o,d),...bs(n,d)})),{isMounted:b,status:T}=QR(e,{duration:a}),w=yi(n),E=yi(r),P=yi(i),$=yi(o);return Lr(()=>{const A=bs(w.current,d),D=bs(P.current,d),k=bs($.current,d),F=bs(E.current,d)||Object.keys(A).reduce((z,J)=>(z[J]="",z),{});if(T==="initial"&&S(z=>({transitionProperty:z.transitionProperty,...k,...A})),T==="open"&&S({transitionProperty:Object.keys(F).map(Jx).join(","),transitionDuration:m+"ms",...k,...F}),T==="close"){const z=D||A;S({transitionProperty:Object.keys(z).map(Jx).join(","),transitionDuration:p+"ms",...k,...z})}},[p,P,w,E,$,m,T,d]),{isMounted:b,styles:y}}const Lo=({open:e,onClose:t,component:n,children:r,placement:i="bottom",className:o="",strategy:a="absolute",offset:c=8,padding:u=8})=>{const[d,h]=_.useState(e);_.useEffect(()=>{h(e)},[e]);const m=()=>{h(!1),t==null||t()},{x:p,y,strategy:S,refs:b,context:T}=jr({strategy:a,open:d,onOpenChange:k=>{k||m()},middleware:[Dr(c),Nr(),Rr({padding:u})],whileElementsMounted:$r,placement:i}),w=vi(T),E=kr(T),{getReferenceProps:P,getFloatingProps:$}=Fr([w,E]),{isMounted:A,styles:D}=bi(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,...P(),className:"reference-element",children:r}),A&&v.jsx("div",{ref:b.setFloating,style:{position:S,top:y??0,left:p??0,...D,zIndex:9999},...$(),className:"floating-element",children:v.jsx(xs,{className:o,children:typeof n=="function"?_.createElement(n):n})})]})},eN=({selectedPeriod:e,handlePeriodChange:t,colorVariants:n})=>{const r={initial:{backgroundColor:"#ffffff",color:"#57595f"},active:{backgroundColor:(n==null?void 0:n.hoverLight)||"#dee7fc",color:(n==null?void 0:n.text)||"#111827"},exit:{backgroundColor:"#ffffff",color:"#57595f"}};return v.jsxs("div",{className:"flex rounded-xl p-6 gap-2 border",style:{borderColor:(n==null?void 0:n.hoverLight)||"#dbeafe"},children:[v.jsx(Ze.button,{variants:r,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:r,initial:"initial",animate:e==="PM"?"active":"initial",exit:"exit",transition:{duration:.2},onClick:()=>t("PM"),disabled:e==="PM",className:"flex items-center justify-center font-500 px-10 py-2 rounded-lg",children:"PM"})]})},tN=({setHourMenuOpen:e,hourMenuOpen:t,selectedHour:n})=>v.jsx("button",{onClick:()=>e(!t),className:"flex justify-center items-center w-72 h-full border py-8 px-14 rounded-xl border-blue-100 text-gray-600 font-500",children:`${String(n).padStart(2,"0")}:00`});/*!
663
+ */const B6={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},W6={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},U6={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},z6={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},G6={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};function tl(){return typeof window<"u"}function ds(e){return Sx(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=(Sx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Sx(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 Ro(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(ds(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(ds(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(ds(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_d(e)&&e.host||kn(e);return _d(t)?t.host:t}function Tx(e){const t=Qn(e);return Jn(t)?e.ownerDocument?e.ownerDocument.body:e.body:kt(t)&&Ro(t)?t:Tx(t)}function Or(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Tx(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Lt(i);if(o){const c=$d(a);return t.concat(a,a.visualViewport||[],Ro(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 Ex(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 No(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 Cx(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Px(){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:!Ax()&&e.width===0&&e.height===0||Ax()&&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 Ax(){const e=/android/i;return e.test(Cx())||e.test(Px())}function X6(){return Cx().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Z6(){return Px().includes("jsdom/")}function Lo(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 mi(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 hs(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 Mx(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 ms(e,t){return typeof e=="function"?e(t):e}function Ir(e){return e.split("-")[0]}function ps(e){return e.split("-")[1]}function Ox(e){return e==="x"?"y":"x"}function Nd(e){return e==="y"?"height":"width"}function pi(e){return["top","bottom"].includes(Ir(e))?"y":"x"}function Ld(e){return Ox(pi(e))}function rR(e,t,n){n===void 0&&(n=!1);const r=ps(e),i=Ld(e),o=Nd(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=al(a)),[a,al(a)]}function iR(e){const t=al(e);return[kd(e),t,kd(t)]}function kd(e){return e.replace(/start|end/g,t=>nR[t])}function sR(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function oR(e,t,n,r){const i=ps(e);let o=sR(Ir(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(kd)))),o}function al(e){return e.replace(/left|right|bottom|top/g,t=>tR[t])}function aR(e){return{top:0,right:0,bottom:0,left:0,...e}}function _x(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 Ix(e,t,n){let{reference:r,floating:i}=e;const o=pi(t),a=Ld(t),c=Nd(a),u=Ir(t),d=o==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,p=r[c]/2-i[c]/2;let y;switch(u){case"top":y={x:h,y:r.y-i.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:m};break;case"left":y={x:r.x-i.width,y:m};break;default:y={x:r.x,y:r.y}}switch(ps(t)){case"start":y[a]-=p*(n&&d?-1:1);break;case"end":y[a]+=p*(n&&d?-1:1);break}return y}const lR=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,c=o.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=Ix(d,r,u),p=r,y={},S=0;for(let b=0;b<c.length;b++){const{name:T,fn:w}=c[b],{x:E,y:P,data:$,reset:A}=await w({x:h,y:m,initialPlacement:r,placement:p,strategy:i,middlewareData:y,rects:d,platform:a,elements:{reference:e,floating:t}});h=E??h,m=P??m,y={...y,[T]:{...y[T],...$}},A&&S<=50&&(S++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(d=A.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):A.rects),{x:h,y:m}=Ix(d,p,u)),b=-1)}return{x:h,y:m,placement:p,strategy:i,middlewareData:y}};async function jd(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:c,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:p=!1,padding:y=0}=ms(t,e),S=_x(y),T=c[p?m==="floating"?"reference":"floating":m],w=ll(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(T)))==null||n?T:T.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:u})),E=m==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,P=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),$=await(o.isElement==null?void 0:o.isElement(P))?await(o.getScale==null?void 0:o.getScale(P))||{x:1,y:1}:{x:1,y:1},A=ll(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:E,offsetParent:P,strategy:u}):E);return{top:(w.top-A.top+S.top)/$.y,bottom:(A.bottom-w.bottom+S.bottom)/$.y,left:(w.left-A.left+S.left)/$.x,right:(A.right-w.right+S.right)/$.x}}const cR=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:c,middlewareData:u}=t,{element:d,padding:h=0}=ms(e,t)||{};if(d==null)return{};const m=_x(h),p={x:n,y:r},y=Ld(i),S=Nd(y),b=await a.getDimensions(d),T=y==="y",w=T?"top":"left",E=T?"bottom":"right",P=T?"clientHeight":"clientWidth",$=o.reference[S]+o.reference[y]-p[y]-o.floating[S],A=p[y]-o.reference[y],D=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let V=D?D[P]:0;(!V||!await(a.isElement==null?void 0:a.isElement(D)))&&(V=c.floating[P]||o.floating[S]);const j=$/2-A/2,U=V/2-b[S]/2-1,X=_r(m[w],U),ne=_r(m[E],U),oe=X,ge=V-b[S]-ne,ue=V/2-b[S]/2+j,fe=Rd(oe,ue,ge),he=!u.arrow&&ps(i)!=null&&ue!==fe&&o.reference[S]/2-(ue<oe?X:ne)-b[S]/2<0,F=he?ue<oe?ue-oe:ue-ge:0;return{[y]:p[y]+F,data:{[y]:fe,centerOffset:ue-fe-F,...he&&{alignmentOffset:F}},reset:he}}}),uR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:b=!0,...T}=ms(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const w=Ir(i),E=pi(c),P=Ir(c)===c,$=await(u.isRTL==null?void 0:u.isRTL(d.floating)),A=p||(P||!b?[al(c)]:iR(c)),D=S!=="none";!p&&D&&A.push(...oR(c,b,S,$));const V=[c,...A],j=await jd(t,T),U=[];let X=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&U.push(j[w]),m){const ue=rR(i,a,$);U.push(j[ue[0]],j[ue[1]])}if(X=[...X,{placement:i,overflows:U}],!U.every(ue=>ue<=0)){var ne,oe;const ue=(((ne=o.flip)==null?void 0:ne.index)||0)+1,fe=V[ue];if(fe)return{data:{index:ue,overflows:X},reset:{placement:fe}};let he=(oe=X.filter(F=>F.overflows[0]<=0).sort((F,B)=>F.overflows[1]-B.overflows[1])[0])==null?void 0:oe.placement;if(!he)switch(y){case"bestFit":{var ge;const F=(ge=X.filter(B=>{if(D){const G=pi(B.placement);return G===E||G==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(G=>G>0).reduce((G,O)=>G+O,0)]).sort((B,G)=>B[1]-G[1])[0])==null?void 0:ge[0];F&&(he=F);break}case"initialPlacement":he=c;break}if(i!==he)return{reset:{placement:he}}}return{}}}};async function fR(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Ir(n),c=ps(n),u=pi(n)==="y",d=["left","top"].includes(a)?-1:1,h=o&&u?-1:1,m=ms(t,e);let{mainAxis:p,crossAxis:y,alignmentAxis:S}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof S=="number"&&(y=c==="end"?S*-1:S),u?{x:y*h,y:p*d}:{x:p*d,y:y*h}}const dR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:c}=t,u=await fR(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:o+u.y,data:{...u,placement:a}}}}},hR=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:c={fn:T=>{let{x:w,y:E}=T;return{x:w,y:E}}},...u}=ms(e,t),d={x:n,y:r},h=await jd(t,u),m=pi(Ir(i)),p=Ox(m);let y=d[p],S=d[m];if(o){const T=p==="y"?"top":"left",w=p==="y"?"bottom":"right",E=y+h[T],P=y-h[w];y=Rd(E,y,P)}if(a){const T=m==="y"?"top":"left",w=m==="y"?"bottom":"right",E=S+h[T],P=S-h[w];S=Rd(E,S,P)}const b=c.fn({...t,[p]:y,[m]:S});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:o,[m]:a}}}}}},mR=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:c}=t,{apply:u=()=>{},...d}=ms(e,t),h=await jd(t,d),m=Ir(i),p=ps(i),y=pi(i)==="y",{width:S,height:b}=o.floating;let T,w;m==="top"||m==="bottom"?(T=m,w=p===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(w=m,T=p==="end"?"top":"bottom");const E=b-h.top-h.bottom,P=S-h.left-h.right,$=_r(b-h[T],E),A=_r(S-h[w],P),D=!t.middlewareData.shift;let V=$,j=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=P),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(V=E),D&&!p){const X=Yt(h.left,0),ne=Yt(h.right,0),oe=Yt(h.top,0),ge=Yt(h.bottom,0);y?j=S-2*(X!==0||ne!==0?X+ne:Yt(h.left,h.right)):V=b-2*(oe!==0||ge!==0?oe+ge:Yt(h.top,h.bottom))}await u({...t,availableWidth:j,availableHeight:V});const U=await a.getDimensions(c.floating);return S!==U.width||b!==U.height?{reset:{rects:!0}}:{}}}};function $x(e){const t=on(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=kt(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,c=sl(n)!==o||sl(r)!==a;return c&&(n=o,r=a),{width:n,height:r,$:c}}function Fd(e){return qe(e)?e:e.contextElement}function gs(e){const t=Fd(e);if(!kt(t))return jn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=$x(t);let a=(o?sl(n.width):n.width)/r,c=(o?sl(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const pR=jn(0);function Dx(e){const t=Lt(e);return!rl()||!t.visualViewport?pR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gR(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Lt(e)?!1:t}function gi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Fd(e);let a=jn(1);t&&(r?qe(r)&&(a=gs(r)):a=gs(e));const c=gR(o,n,r)?Dx(o):jn(0);let u=(i.left+c.x)/a.x,d=(i.top+c.y)/a.y,h=i.width/a.x,m=i.height/a.y;if(o){const p=Lt(o),y=r&&qe(r)?Lt(r):r;let S=p,b=$d(S);for(;b&&r&&y!==S;){const T=gs(b),w=b.getBoundingClientRect(),E=on(b),P=w.left+(b.clientLeft+parseFloat(E.paddingLeft))*T.x,$=w.top+(b.clientTop+parseFloat(E.paddingTop))*T.y;u*=T.x,d*=T.y,h*=T.x,m*=T.y,u+=P,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:gi(kn(e)).left+n}function Rx(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Vd(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function yR(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=kn(r),c=t?nl(t.floating):!1;if(r===a||c&&o)return n;let u={scrollLeft:0,scrollTop:0},d=jn(1);const h=jn(0),m=kt(r);if((m||!m&&!o)&&((ds(r)!=="body"||Ro(a))&&(u=il(r)),kt(r))){const y=gi(r);d=gs(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}const p=a&&!m&&!o?Rx(a,u,!0):jn(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+h.x+p.x,y:n.y*d.y-u.scrollTop*d.y+h.y+p.y}}function vR(e){return Array.from(e.getClientRects())}function bR(e){const t=kn(e),n=il(e),r=e.ownerDocument.body,i=Yt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Yt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Vd(e);const c=-n.scrollTop;return on(r).direction==="rtl"&&(a+=Yt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:c}}function xR(e,t){const n=Lt(e),r=kn(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,c=0,u=0;if(i){o=i.width,a=i.height;const d=rl();(!d||d&&t==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:c,y:u}}function wR(e,t){const n=gi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=kt(e)?gs(e):jn(1),a=e.clientWidth*o.x,c=e.clientHeight*o.y,u=i*o.x,d=r*o.y;return{width:a,height:c,x:u,y:d}}function Nx(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 Lx(e,t){const n=Qn(e);return n===t||!qe(n)||Jn(n)?!1:on(n).position==="fixed"||Lx(n,t)}function SR(e,t){const n=t.get(e);if(n)return n;let r=Or(e,[],!1).filter(c=>qe(c)&&ds(c)!=="body"),i=null;const o=on(e).position==="fixed";let a=o?Qn(e):e;for(;qe(a)&&!Jn(a);){const c=on(a),u=Id(a);!u&&c.position==="fixed"&&(i=null),(o?!u&&!i:!u&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Ro(a)&&!u&&Lx(e,a))?r=r.filter(h=>h!==a):i=c,a=Qn(a)}return t.set(e,r),r}function TR(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?nl(t)?[]:SR(t,this._c):[].concat(n),r],c=a[0],u=a.reduce((d,h)=>{const m=Nx(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},Nx(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}=$x(e);return{width:t,height:n}}function CR(e,t,n){const r=kt(t),i=kn(t),o=n==="fixed",a=gi(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const u=jn(0);if(r||!r&&!o)if((ds(t)!=="body"||Ro(i))&&(c=il(t)),r){const p=gi(t,!0,o,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else i&&(u.x=Vd(i));const d=i&&!r&&!o?Rx(i,c):jn(0),h=a.left+c.scrollLeft-u.x-d.x,m=a.top+c.scrollTop-u.y-d.y;return{x:h,y:m,width:a.width,height:a.height}}function Bd(e){return on(e).position==="static"}function kx(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 jx(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=kx(e,t);for(;r&&Y6(r)&&Bd(r);)r=kx(r,t);return r&&Jn(r)&&Bd(r)&&!Id(r)?n:r||H6(e)||n}const PR=async function(e){const t=this.getOffsetParent||jx,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:jx,getElementRects:PR,getClientRects:vR,getDimensions:ER,getScale:gs,isElement:qe,isRTL:AR};function Fx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function OR(e,t){let n=null,r;const i=kn(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),o();const d=e.getBoundingClientRect(),{left:h,top:m,width:p,height:y}=d;if(c||t(),!p||!y)return;const S=ol(m),b=ol(i.clientWidth-(h+p)),T=ol(i.clientHeight-(m+y)),w=ol(h),P={rootMargin:-S+"px "+-b+"px "+-T+"px "+-w+"px",threshold:Yt(0,_r(1,u))||1};let $=!0;function A(D){const V=D[0].intersectionRatio;if(V!==u){if(!$)return a();V?a(!1,V):r=setTimeout(()=>{a(!1,1e-7)},1e3)}V===1&&!Fx(d,e.getBoundingClientRect())&&a(),$=!1}try{n=new IntersectionObserver(A,{...P,root:i.ownerDocument})}catch{n=new IntersectionObserver(A,P)}n.observe(e)}return a(!0),o}function $r(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=Fd(e),h=i||o?[...d?Or(d):[],...Or(t)]:[];h.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),o&&w.addEventListener("resize",n)});const m=d&&c?OR(d,n):null;let p=-1,y=null;a&&(y=new ResizeObserver(w=>{let[E]=w;E&&E.target===d&&y&&(y.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var P;(P=y)==null||P.observe(t)})),n()}),d&&!u&&y.observe(d),y.observe(t));let S,b=u?gi(e):null;u&&T();function T(){const w=gi(e);b&&!Fx(b,w)&&n(),b=w,S=requestAnimationFrame(T)}return n(),()=>{var w;h.forEach(E=>{i&&E.removeEventListener("scroll",n),o&&E.removeEventListener("resize",n)}),m==null||m(),(w=y)==null||w.disconnect(),y=null,u&&cancelAnimationFrame(S)}}const _R=dR,IR=hR,$R=uR,DR=mR,Vx=cR,RR=(e,t,n)=>{const r=new Map,i={platform:MR,...n},o={...i.platform,_c:r};return lR(e,t,{...i,platform:o})};var cl=typeof document<"u"?_.useLayoutEffect:_.useEffect;function ul(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ul(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!ul(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Bx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Wx(e,t){const n=Bx(e);return Math.round(t*n)/n}function Wd(e){const t=ee.useRef(e);return cl(()=>{t.current=e}),t}function NR(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[h,m]=ee.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,y]=ee.useState(r);ul(p,r)||y(r);const[S,b]=ee.useState(null),[T,w]=ee.useState(null),E=ee.useCallback(B=>{B!==D.current&&(D.current=B,b(B))},[]),P=ee.useCallback(B=>{B!==V.current&&(V.current=B,w(B))},[]),$=o||S,A=a||T,D=ee.useRef(null),V=ee.useRef(null),j=ee.useRef(h),U=u!=null,X=Wd(u),ne=Wd(i),oe=Wd(d),ge=ee.useCallback(()=>{if(!D.current||!V.current)return;const B={placement:t,strategy:n,middleware:p};ne.current&&(B.platform=ne.current),RR(D.current,V.current,B).then(G=>{const O={...G,isPositioned:oe.current!==!1};ue.current&&!ul(j.current,O)&&(j.current=O,mT.flushSync(()=>{m(O)}))})},[p,t,n,ne,oe]);cl(()=>{d===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,m(B=>({...B,isPositioned:!1})))},[d]);const ue=ee.useRef(!1);cl(()=>(ue.current=!0,()=>{ue.current=!1}),[]),cl(()=>{if($&&(D.current=$),A&&(V.current=A),$&&A){if(X.current)return X.current($,A,ge);ge()}},[$,A,ge,X,U]);const fe=ee.useMemo(()=>({reference:D,floating:V,setReference:E,setFloating:P}),[E,P]),he=ee.useMemo(()=>({reference:$,floating:A}),[$,A]),F=ee.useMemo(()=>{const B={position:n,left:0,top:0};if(!he.floating)return B;const G=Wx(he.floating,h.x),O=Wx(he.floating,h.y);return c?{...B,transform:"translate("+G+"px, "+O+"px)",...Bx(he.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:O}},[n,c,he.floating,h.x,h.y]);return ee.useMemo(()=>({...h,update:ge,refs:fe,elements:he,floatingStyles:F}),[h,ge,fe,he,F])}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?Vx({element:r.current,padding:i}).fn(n):{}:r?Vx({element:r,padding:i}).fn(n):{}}}},Dr=(e,t)=>({..._R(e),options:[e,t]}),Rr=(e,t)=>({...IR(e),options:[e,t]}),Nr=(e,t)=>({...$R(e),options:[e,t]}),ys=(e,t)=>({...DR(e),options:[e,t]}),vs=(e,t)=>({...LR(e),options:[e,t]}),Ux={...ee},kR=Ux.useInsertionEffect||(e=>e());function er(e){const t=ee.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return kR(()=>{t.current=e}),ee.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 Lr=typeof document<"u"?_.useLayoutEffect:_.useEffect;let zx=!1,jR=0;const Gx=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+jR++;function FR(){const[e,t]=ee.useState(()=>zx?Gx():void 0);return Lr(()=>{e==null&&t(Gx())},[]),ee.useEffect(()=>{zx=!0},[]),e}const Yx=Ux.useId||FR;let Ud;process.env.NODE_ENV!=="production"&&(Ud=new Set);function VR(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=Ud)!=null&&e.has(i))){var o;(o=Ud)==null||o.add(i),console.error(i)}}function BR(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const WR=ee.createContext(null),UR=ee.createContext(null),zd=()=>{var e;return((e=ee.useContext(WR))==null?void 0:e.id)||null},Gd=()=>ee.useContext(UR);function Yd(e){return"data-floating-ui-"+e}function an(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}function yi(e){const t=_.useRef(e);return Lr(()=>{t.current=e}),t}const Hx=Yd("safe-polygon");function Hd(e,t,n){return n&&!Lo(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function zR(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:o,elements:a}=e,{enabled:c=!0,delay:u=0,handleClose:d=null,mouseOnly:h=!1,restMs:m=0,move:p=!0}=t,y=Gd(),S=zd(),b=yi(d),T=yi(u),w=yi(n),E=ee.useRef(),P=ee.useRef(-1),$=ee.useRef(),A=ee.useRef(-1),D=ee.useRef(!0),V=ee.useRef(!1),j=ee.useRef(()=>{}),U=ee.useRef(!1),X=ee.useCallback(()=>{var F;const B=(F=i.current.openEvent)==null?void 0:F.type;return(B==null?void 0:B.includes("mouse"))&&B!=="mousedown"},[i]);ee.useEffect(()=>{if(!c)return;function F(B){let{open:G}=B;G||(an(P),an(A),D.current=!0,U.current=!1)}return o.on("openchange",F),()=>{o.off("openchange",F)}},[c,o]),ee.useEffect(()=>{if(!c||!b.current||!n)return;function F(G){X()&&r(!1,G,"hover")}const B=mi(a.floating).documentElement;return B.addEventListener("mouseleave",F),()=>{B.removeEventListener("mouseleave",F)}},[a.floating,n,r,c,b,X]);const ne=ee.useCallback(function(F,B,G){B===void 0&&(B=!0),G===void 0&&(G="hover");const O=Hd(T.current,"close",E.current);O&&!$.current?(an(P),P.current=window.setTimeout(()=>r(!1,F,G),O)):B&&(an(P),r(!1,F,G))},[T,r]),oe=er(()=>{j.current(),$.current=void 0}),ge=er(()=>{if(V.current){const F=mi(a.floating).body;F.style.pointerEvents="",F.removeAttribute(Hx),V.current=!1}}),ue=er(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);ee.useEffect(()=>{if(!c)return;function F(N){if(an(P),D.current=!1,h&&!Lo(E.current)||m>0&&!Hd(T.current,"open"))return;const K=Hd(T.current,"open",E.current);K?P.current=window.setTimeout(()=>{w.current||r(!0,N,"hover")},K):n||r(!0,N,"hover")}function B(N){if(ue())return;j.current();const K=mi(a.floating);if(an(A),U.current=!1,b.current&&i.current.floatingContext){n||an(P),$.current=b.current({...i.current.floatingContext,tree:y,x:N.clientX,y:N.clientY,onClose(){ge(),oe(),ue()||ne(N,!0,"safe-polygon")}});const J=$.current;K.addEventListener("mousemove",J),j.current=()=>{K.removeEventListener("mousemove",J)};return}(E.current==="touch"?!No(a.floating,N.relatedTarget):!0)&&ne(N)}function G(N){ue()||i.current.floatingContext&&(b.current==null||b.current({...i.current.floatingContext,tree:y,x:N.clientX,y:N.clientY,onClose(){ge(),oe(),ue()||ne(N)}})(N))}if(qe(a.domReference)){var O;const N=a.domReference;return n&&N.addEventListener("mouseleave",G),(O=a.floating)==null||O.addEventListener("mouseleave",G),p&&N.addEventListener("mousemove",F,{once:!0}),N.addEventListener("mouseenter",F),N.addEventListener("mouseleave",B),()=>{var K;n&&N.removeEventListener("mouseleave",G),(K=a.floating)==null||K.removeEventListener("mouseleave",G),p&&N.removeEventListener("mousemove",F),N.removeEventListener("mouseenter",F),N.removeEventListener("mouseleave",B)}}},[a,c,e,h,m,p,ne,oe,ge,r,n,w,y,T,b,i,ue]),Lr(()=>{var F;if(c&&n&&(F=b.current)!=null&&F.__options.blockPointerEvents&&X()){V.current=!0;const G=a.floating;if(qe(a.domReference)&&G){var B;const O=mi(a.floating).body;O.setAttribute(Hx,"");const N=a.domReference,K=y==null||(B=y.nodesRef.current.find(ae=>ae.id===S))==null||(B=B.context)==null?void 0:B.elements.floating;return K&&(K.style.pointerEvents=""),O.style.pointerEvents="none",N.style.pointerEvents="auto",G.style.pointerEvents="auto",()=>{O.style.pointerEvents="",N.style.pointerEvents="",G.style.pointerEvents=""}}}},[c,n,S,a,y,b,X]),Lr(()=>{n||(E.current=void 0,U.current=!1,oe(),ge())},[n,oe,ge]),ee.useEffect(()=>()=>{oe(),an(P),an(A),ge()},[c,a.domReference,oe,ge]);const fe=ee.useMemo(()=>{function F(B){E.current=B.pointerType}return{onPointerDown:F,onPointerEnter:F,onMouseMove(B){const{nativeEvent:G}=B;function O(){!D.current&&!w.current&&r(!0,G,"hover")}h&&!Lo(E.current)||n||m===0||U.current&&B.movementX**2+B.movementY**2<2||(an(A),E.current==="touch"?O():(U.current=!0,A.current=window.setTimeout(O,m)))}}},[h,r,n,w,m]),he=ee.useMemo(()=>({onMouseEnter(){an(P)},onMouseLeave(F){ue()||ne(F.nativeEvent,!1)}}),[ne,ue]);return ee.useMemo(()=>c?{reference:fe,floating:he}:{},[c,fe,he])}function qd(e,t){let n=e.filter(i=>{var o;return i.parentId===t&&((o=i.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(i=>{var o;return(o=r)==null?void 0:o.some(a=>{var c;return i.parentId===a.id&&((c=i.context)==null?void 0:c.open)})}),n=n.concat(r);return n}const GR="data-floating-ui-focusable";function qx(e){return kt(e.target)&&e.target.tagName==="BUTTON"}function Kx(e){return Mx(e)}function vi(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:a=!0,event:c="click",toggle:u=!0,ignoreMouse:d=!1,keyboardHandlers:h=!0,stickIfOpen:m=!0}=t,p=ee.useRef(),y=ee.useRef(!1),S=ee.useMemo(()=>({onPointerDown(b){p.current=b.pointerType},onMouseDown(b){const T=p.current;b.button===0&&c!=="click"&&(Lo(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}Lo(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||qx(b))&&(b.key===" "&&!Kx(o)&&(b.preventDefault(),y.current=!0),b.key==="Enter"&&r(!(n&&u),b.nativeEvent,"click"))},onKeyUp(b){b.defaultPrevented||!h||qx(b)||Kx(o)||b.key===" "&&y.current&&(y.current=!1,r(!(n&&u),b.nativeEvent,"click"))}}),[i,o,c,d,h,r,n,m,u]);return ee.useMemo(()=>a?{reference:S}:{},[a,S])}const YR={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},HR={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Xx=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 kr(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:a=!0,escapeKey:c=!0,outsidePress:u=!0,outsidePressEvent:d="pointerdown",referencePress:h=!1,referencePressEvent:m="pointerdown",ancestorScroll:p=!1,bubbles:y,capture:S}=t,b=Gd(),T=er(typeof u=="function"?u:()=>!1),w=typeof u=="function"?T:u,E=ee.useRef(!1),P=ee.useRef(!1),{escapeKey:$,outsidePress:A}=Xx(y),{escapeKey:D,outsidePress:V}=Xx(S),j=ee.useRef(!1),U=er(fe=>{var he;if(!n||!a||!c||fe.key!=="Escape"||j.current)return;const F=(he=o.current.floatingContext)==null?void 0:he.nodeId,B=b?qd(b.nodesRef.current,F):[];if(!$&&(fe.stopPropagation(),B.length>0)){let G=!0;if(B.forEach(O=>{var N;if((N=O.context)!=null&&N.open&&!O.context.dataRef.current.__escapeKeyBubbles){G=!1;return}}),!G)return}r(!1,J6(fe)?fe.nativeEvent:fe,"escape-key")}),X=er(fe=>{var he;const F=()=>{var B;U(fe),(B=hs(fe))==null||B.removeEventListener("keydown",F)};(he=hs(fe))==null||he.addEventListener("keydown",F)}),ne=er(fe=>{var he;const F=E.current;E.current=!1;const B=P.current;if(P.current=!1,d==="click"&&B||F||typeof w=="function"&&!w(fe))return;const G=hs(fe),O="["+Yd("inert")+"]",N=mi(i.floating).querySelectorAll(O);let K=qe(G)?G:null;for(;K&&!Jn(K);){const Q=Qn(K);if(Jn(Q)||!qe(Q))break;K=Q}if(N.length&&qe(G)&&!Q6(G)&&!No(G,i.floating)&&Array.from(N).every(Q=>!No(K,Q)))return;if(kt(G)&&ue){const Q=Jn(G),le=on(G),re=/auto|scroll/,de=Q||re.test(le.overflowX),Ce=Q||re.test(le.overflowY),Ve=de&&G.clientWidth>0&&G.scrollWidth>G.clientWidth,ie=Ce&&G.clientHeight>0&&G.scrollHeight>G.clientHeight,pe=le.direction==="rtl",De=ie&&(pe?fe.offsetX<=G.offsetWidth-G.clientWidth:fe.offsetX>G.clientWidth),ft=Ve&&fe.offsetY>G.clientHeight;if(De||ft)return}const ae=(he=o.current.floatingContext)==null?void 0:he.nodeId,J=b&&qd(b.nodesRef.current,ae).some(Q=>{var le;return Dd(fe,(le=Q.context)==null?void 0:le.elements.floating)});if(Dd(fe,i.floating)||Dd(fe,i.domReference)||J)return;const q=b?qd(b.nodesRef.current,ae):[];if(q.length>0){let Q=!0;if(q.forEach(le=>{var re;if((re=le.context)!=null&&re.open&&!le.context.dataRef.current.__outsidePressBubbles){Q=!1;return}}),!Q)return}r(!1,fe,"outside-press")}),oe=er(fe=>{var he;const F=()=>{var B;ne(fe),(B=hs(fe))==null||B.removeEventListener(d,F)};(he=hs(fe))==null||he.addEventListener(d,F)});ee.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=$,o.current.__outsidePressBubbles=A;let fe=-1;function he(N){r(!1,N,"ancestor-scroll")}function F(){window.clearTimeout(fe),j.current=!0}function B(){fe=window.setTimeout(()=>{j.current=!1},rl()?5:0)}const G=mi(i.floating);c&&(G.addEventListener("keydown",D?X:U,D),G.addEventListener("compositionstart",F),G.addEventListener("compositionend",B)),w&&G.addEventListener(d,V?oe:ne,V);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 K;return N!==((K=G.defaultView)==null?void 0:K.visualViewport)}),O.forEach(N=>{N.addEventListener("scroll",he,{passive:!0})}),()=>{c&&(G.removeEventListener("keydown",D?X:U,D),G.removeEventListener("compositionstart",F),G.removeEventListener("compositionend",B)),w&&G.removeEventListener(d,V?oe:ne,V),O.forEach(N=>{N.removeEventListener("scroll",he)}),window.clearTimeout(fe)}},[o,i,c,w,d,n,r,p,a,$,A,U,D,X,ne,V,oe]),ee.useEffect(()=>{E.current=!1},[w,d]);const ge=ee.useMemo(()=>({onKeyDown:U,...h&&{[YR[m]]:fe=>{r(!1,fe.nativeEvent,"reference-press")},...m!=="click"&&{onClick(fe){r(!1,fe.nativeEvent,"reference-press")}}}}),[U,r,h,m]),ue=ee.useMemo(()=>({onKeyDown:U,onMouseDown(){P.current=!0},onMouseUp(){P.current=!0},[HR[d]]:()=>{E.current=!0}}),[U,d]);return ee.useMemo(()=>a?{reference:ge,floating:ue}:{},[a,ge,ue])}function qR(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Yx(),o=ee.useRef({}),[a]=ee.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]=ee.useState(r.reference),h=er((y,S,b)=>{o.current.openEvent=y?S:void 0,a.emit("openchange",{open:y,event:S,reason:b,nested:c}),n==null||n(y,S,b)}),m=ee.useMemo(()=>({setPositionReference:d}),[]),p=ee.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return ee.useMemo(()=>({dataRef:o,open:t,onOpenChange:h,elements:p,events:a,floatingId:i,refs:m}),[t,h,p,a,i,m])}function jr(e){e===void 0&&(e={});const{nodeId:t}=e,n=qR({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=ee.useState(null),[c,u]=ee.useState(null),h=(i==null?void 0:i.domReference)||o,m=ee.useRef(null),p=Gd();Lr(()=>{h&&(m.current=h)},[h]);const y=NR({...e,elements:{...i,...c&&{reference:c}}}),S=ee.useCallback(P=>{const $=qe(P)?{getBoundingClientRect:()=>P.getBoundingClientRect(),contextElement:P}:P;u($),y.refs.setReference($)},[y.refs]),b=ee.useCallback(P=>{(qe(P)||P===null)&&(m.current=P,a(P)),(qe(y.refs.reference.current)||y.refs.reference.current===null||P!==null&&!qe(P))&&y.refs.setReference(P)},[y.refs]),T=ee.useMemo(()=>({...y.refs,setReference:b,setPositionReference:S,domReference:m}),[y.refs,b,S]),w=ee.useMemo(()=>({...y.elements,domReference:h}),[y.elements,h]),E=ee.useMemo(()=>({...y,...r,refs:T,elements:w,nodeId:t}),[y,T,w,t,r]);return Lr(()=>{r.dataRef.current.floatingContext=E;const P=p==null?void 0:p.nodesRef.current.find($=>$.id===t);P&&(P.context=E)}),ee.useMemo(()=>({...y,context:E,refs:T,elements:w}),[y,T,w,E])}function KR(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:o,elements:a}=e,{enabled:c=!0,visibleOnly:u=!0}=t,d=ee.useRef(!1),h=ee.useRef(-1),m=ee.useRef(!0);ee.useEffect(()=>{if(!c)return;const y=Lt(a.domReference);function S(){!n&&kt(a.domReference)&&a.domReference===Ex(mi(a.domReference))&&(d.current=!0)}function b(){m.current=!0}return y.addEventListener("blur",S),y.addEventListener("keydown",b,!0),()=>{y.removeEventListener("blur",S),y.removeEventListener("keydown",b,!0)}},[a.domReference,n,c]),ee.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]),ee.useEffect(()=>()=>{an(h)},[]);const p=ee.useMemo(()=>({onPointerDown(y){q6(y.nativeEvent)||(m.current=!1)},onMouseLeave(){d.current=!1},onFocus(y){if(d.current)return;const S=hs(y.nativeEvent);if(u&&qe(S))try{if(K6()&&X6())throw Error();if(!S.matches(":focus-visible"))return}catch{if(!m.current&&!Mx(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 E=Ex(a.domReference?a.domReference.ownerDocument:document);!S&&E===a.domReference||No((w=o.current.floatingContext)==null?void 0:w.refs.floating.current,E)||No(a.domReference,E)||T||r(!1,b,"focus")})}}),[o,a.domReference,r,u]);return ee.useMemo(()=>c?{reference:p}:{},[c,p])}const Zx="active",Jx="selected";function Kd(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[Zx]:a,[Jx]:c,...u}=e;o=u}return{...n==="floating"&&{tabIndex:-1,[GR]:""},...o,...t.map(a=>{const c=a?a[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((a,c)=>(c&&Object.entries(c).forEach(u=>{let[d,h]=u;if(!(i&&[Zx,Jx].includes(d)))if(d.indexOf("on")===0){if(r.has(d)||r.set(d,[]),typeof h=="function"){var m;(m=r.get(d))==null||m.push(h),a[d]=function(){for(var p,y=arguments.length,S=new Array(y),b=0;b<y;b++)S[b]=arguments[b];return(p=r.get(d))==null?void 0:p.map(T=>T(...S)).find(T=>T!==void 0)}}}else a[d]=h}),a),{})}}function Fr(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=ee.useCallback(c=>Kd(c,e,"reference"),t),o=ee.useCallback(c=>Kd(c,e,"floating"),n),a=ee.useCallback(c=>Kd(c,e,"item"),r);return ee.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const XR=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function ZR(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,c=(n=XR.get(a))!=null?n:a,u=Yx(),h=zd()!=null,m=ee.useMemo(()=>c==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":c==="alertdialog"?"dialog":c,"aria-controls":r?i:void 0,...c==="listbox"&&{role:"combobox"},...c==="menu"&&{id:u},...c==="menu"&&h&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[c,i,h,r,u,a]),p=ee.useMemo(()=>{const S={id:i,...c&&{role:c}};return c==="tooltip"||a==="label"?S:{...S,...c==="menu"&&{"aria-labelledby":u}}},[c,i,u,a]),y=ee.useCallback(S=>{let{active:b,selected:T}=S;const w={role:"option",...b&&{id:i+"-option"}};switch(a){case"select":return{...w,"aria-selected":b&&T};case"combobox":return{...w,...b&&{"aria-selected":!0}}}return{}},[i,a]);return ee.useMemo(()=>o?{reference:m,floating:p,item:y}:{},[o,m,p,y])}const Qx=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function bs(e,t){return typeof e=="function"?e(t):e}function JR(e,t){const[n,r]=ee.useState(e);return e&&!n&&r(!0),ee.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function QR(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,a=(typeof i=="number"?i:i.close)||0,[c,u]=ee.useState("unmounted"),d=JR(n,a);return!d&&c==="close"&&u("unmounted"),Lr(()=>{if(r){if(n){u("initial");const h=requestAnimationFrame(()=>{u("open")});return()=>{cancelAnimationFrame(h)}}u("close")}},[n,r]),{isMounted:d,status:c}}function bi(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:o,duration:a=250}=t,c=e.placement,u=c.split("-")[0],d=ee.useMemo(()=>({side:u,placement:c}),[u,c]),h=typeof a=="number",m=(h?a:a.open)||0,p=(h?a:a.close)||0,[y,S]=ee.useState(()=>({...bs(o,d),...bs(n,d)})),{isMounted:b,status:T}=QR(e,{duration:a}),w=yi(n),E=yi(r),P=yi(i),$=yi(o);return Lr(()=>{const A=bs(w.current,d),D=bs(P.current,d),V=bs($.current,d),j=bs(E.current,d)||Object.keys(A).reduce((U,X)=>(U[X]="",U),{});if(T==="initial"&&S(U=>({transitionProperty:U.transitionProperty,...V,...A})),T==="open"&&S({transitionProperty:Object.keys(j).map(Qx).join(","),transitionDuration:m+"ms",...V,...j}),T==="close"){const U=D||A;S({transitionProperty:Object.keys(U).map(Qx).join(","),transitionDuration:p+"ms",...V,...U})}},[p,P,w,E,$,m,T,d]),{isMounted:b,styles:y}}const ko=({open:e,onClose:t,component:n,children:r,placement:i="bottom",className:o="",strategy:a="absolute",offset:c=8,padding:u=8})=>{const[d,h]=_.useState(e);_.useEffect(()=>{h(e)},[e]);const m=()=>{h(!1),t==null||t()},{x:p,y,strategy:S,refs:b,context:T}=jr({strategy:a,open:d,onOpenChange:V=>{V||m()},middleware:[Dr(c),Nr(),Rr({padding:u})],whileElementsMounted:$r,placement:i}),w=vi(T),E=kr(T),{getReferenceProps:P,getFloatingProps:$}=Fr([w,E]),{isMounted:A,styles:D}=bi(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,...P(),className:"reference-element",children:r}),A&&v.jsx("div",{ref:b.setFloating,style:{position:S,top:y??0,left:p??0,...D,zIndex:9999},...$(),className:"floating-element",children:v.jsx(xs,{className:o,children:typeof n=="function"?_.createElement(n):n})})]})},eN=({selectedPeriod:e,handlePeriodChange:t,colorVariants:n})=>{const r={initial:{backgroundColor:"#ffffff",color:"#57595f"},active:{backgroundColor:(n==null?void 0:n.hoverLight)||"#dee7fc",color:(n==null?void 0:n.text)||"#111827"},exit:{backgroundColor:"#ffffff",color:"#57595f"}};return v.jsxs("div",{className:"flex rounded-xl p-6 gap-2 border",style:{borderColor:(n==null?void 0:n.hoverLight)||"#dbeafe"},children:[v.jsx(Ze.button,{variants:r,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:r,initial:"initial",animate:e==="PM"?"active":"initial",exit:"exit",transition:{duration:.2},onClick:()=>t("PM"),disabled:e==="PM",className:"flex items-center justify-center font-500 px-10 py-2 rounded-lg",children:"PM"})]})},tN=({setHourMenuOpen:e,hourMenuOpen:t,selectedHour:n})=>v.jsx("button",{onClick:()=>e(!t),className:"flex justify-center items-center w-72 h-full border py-8 px-14 rounded-xl border-blue-100 text-gray-600 font-500",children:`${String(n).padStart(2,"0")}:00`});/*!
664
664
  * Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
665
665
  * License - https://fontawesome.com/license (Commercial License)
666
666
  * Copyright 2024 Fonticons, Inc.
667
- */const nN={prefix:"far",iconName:"chevron-up",icon:[512,512,[],"f077","M239 111c9.4-9.4 24.6-9.4 33.9 0L465 303c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-175-175L81 337c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 111z"]},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"]},Qx={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"]},sN={primary:"#375ABC",primaryLight:"#8FA9F3",primaryDark:"#29438D",hover:"#4570EB",hoverLight:"#ECF1FD",text:"#375ABC",textLight:"#FFFFFF"},oN={primary:"#06B6D4",primaryLight:"#67E8F9",primaryDark:"#0891B2",hover:"#0891B2",hoverLight:"#CFFAFE",text:"#06B6D4",textLight:"#FFFFFF"},aN=e=>({blue:sN,aqua:oN})[e],Xd=({date:e,onDateChange:t,showTimeSelector:n=!0,minDate:r,maxDate:i,futureDates:o=!1,pastDates:a=!0,color:c="blue"})=>{const[u,d]=_.useState(e),[h,m]=_.useState(e),[p,y]=_.useState(e.getHours()%12||12),[S,b]=_.useState(e.getHours()>=12?"PM":"AM"),[T,w]=_.useState(0),{t:E}=Ue(),P=aN(c),[$,A]=_.useState(!1),[D,k]=_.useState(!1);_.useEffect(()=>{d(e),m(e),y(e.getHours()%12||12),b(e.getHours()>=12?"PM":"AM")},[e]);const F=()=>{w(-1),setTimeout(()=>{const B=DI(u);(!r||B>=r)&&d(B)},10)},z=()=>{w(1),setTimeout(()=>{d(sv(u,1))},10)},J=B=>{if(i&&B>i||r&&B<r)return;const G=yv(vv(bv(B,0),0),S==="AM"?p%12:p%12+12);m(G),t(G)},ne=B=>{y(B);const G=yv(vv(bv(h,0),0),S==="AM"?B%12:B%12+12);m(G),t(G),A(!1)},le=B=>{b(B)},ye=()=>{const B=new Date,G=20,O=5,[N,K]=_.useState(()=>Array.from({length:G+1},(Q,ae)=>{const re=new Date(B.getFullYear(),B.getMonth()-ae,1);return{name:Dn(re,"MMMM",{locale:es}).replace(/^./,fe=>fe.toUpperCase()),index:re.getMonth(),year:re.getFullYear(),displayName:`${Dn(re,"MMMM",{locale:es}).replace(/^./,fe=>fe.toUpperCase())} ${re.getFullYear()}`}})),oe=_.useRef(null),Z=_.useRef(null);_.useEffect(()=>{oe.current&&oe.current.disconnect(),oe.current=new IntersectionObserver(Q=>{Q[0].isIntersecting&&K(ae=>{const re=ae[ae.length-1],fe=new Date(re.year,re.index-1,1),Ce=Array.from({length:O},(Ve,ie)=>{const pe=new Date(fe.getFullYear(),fe.getMonth()-ie,1);return{name:Dn(pe,"MMMM",{locale:es}).replace(/^./,De=>De.toUpperCase()),index:pe.getMonth(),year:pe.getFullYear(),displayName:`${Dn(pe,"MMMM",{locale:es}).replace(/^./,De=>De.toUpperCase())} ${pe.getFullYear()}`}});return[...ae,...Ce]})}),Z.current&&oe.current.observe(Z.current)},[N]);const q=(Q,ae)=>{const re=new Date(u);re.setMonth(Q),re.setFullYear(ae),(!r||re>=r)&&d(re),k(!1)};return v.jsx("div",{className:"flex flex-col p-8 max-h-200 overflow-y-auto bg-light gap-4",children:N.map((Q,ae)=>{const re=ae===N.length-1;return v.jsx("button",{ref:re?Z:null,onClick:()=>q(Q.index,Q.year),className:"text-start p-6 font-600 transition-all duration-100 rounded-lg",style:{backgroundColor:u.getMonth()===Q.index&&u.getFullYear()===Q.year?P.hoverLight:"transparent",color:u.getMonth()===Q.index&&u.getFullYear()===Q.year?P.text:"inherit"},onMouseEnter:fe=>{u.getMonth()===Q.index&&u.getFullYear()===Q.year||(fe.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:fe=>{u.getMonth()===Q.index&&u.getFullYear()===Q.year||(fe.currentTarget.style.backgroundColor="transparent")},children:Q.displayName},`${Q.name}-${Q.year}-${ae}`)})})},de=()=>v.jsxs("div",{className:"flex justify-between items-center mb-8",children:[v.jsx(Lo,{open:D,onClose:()=>k(!1),component:ye,placement:"bottom",className:"!p-0 overflow-hidden bg-light",strategy:"fixed",children:v.jsxs("button",{onClick:()=>k(!D),className:"transition-colors duration-150 flex gap-6 items-center !text-black",children:[v.jsx("h4",{className:"text-header-4",children:Dn(u,"MMMM yyyy",{locale:es}).replace(/^./,B=>B.toUpperCase())}),v.jsx(Ie,{icon:Qx,className:"w-12 h-12"})]})}),v.jsxs("div",{className:"flex items-center gap-8",children:[v.jsx(uh,{variant:"transparent",color:c,icon:z6,onClick:F}),v.jsx(uh,{variant:"transparent",color:c,icon:T_,onClick:z})]})]}),ue=()=>{const B=Zi(R_(u)),G=L_(I_(u)),O=D_({start:B,end:G}),N=new Date;return N.setHours(0,0,0,0),v.jsx("div",{className:"grid grid-cols-7 gap-2",children:O.map((K,oe)=>{const Z=lv(K,h),q=II(K,u),Q=$I(K),ae=K<N,re=K>N,fe=!q||ae&&!a||re&&!o||r&&K<r||i&&K>i;return v.jsx(Ze.div,{className:`
667
+ */const nN={prefix:"far",iconName:"chevron-up",icon:[512,512,[],"f077","M239 111c9.4-9.4 24.6-9.4 33.9 0L465 303c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-175-175L81 337c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 111z"]},rN={prefix:"far",iconName:"cloud-arrow-up",icon:[640,512,[62338,"cloud-upload","cloud-upload-alt"],"f0ee","M354.9 121.7c13.8 16 36.5 21.1 55.9 12.5c8.9-3.9 18.7-6.2 29.2-6.2c39.8 0 72 32.2 72 72c0 4-.3 7.9-.9 11.7c-3.5 21.6 8.1 42.9 28.1 51.7C570.4 276.9 592 308 592 344c0 46.8-36.6 85.2-82.8 87.8c-.6 0-1.3 .1-1.9 .2l-3.3 0-360 0c-53 0-96-43-96-96c0-41.7 26.6-77.3 64-90.5c19.2-6.8 32-24.9 32-45.3l0-.2s0 0 0 0s0 0 0 0c0-66.3 53.7-120 120-120c36.3 0 68.8 16.1 90.9 41.7zM512 480l0-.2c71.4-4.1 128-63.3 128-135.8c0-55.7-33.5-103.7-81.5-124.7c1-6.3 1.5-12.8 1.5-19.3c0-66.3-53.7-120-120-120c-17.4 0-33.8 3.7-48.7 10.3C360.4 54.6 314.9 32 264 32C171.2 32 96 107.2 96 200l0 .2C40.1 220 0 273.3 0 336c0 79.5 64.5 144 144 144l320 0 40 0 8 0zM223 255c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l39-39L296 384c0 13.3 10.7 24 24 24s24-10.7 24-24l0-134.1 39 39c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-80-80c-9.4-9.4-24.6-9.4-33.9 0l-80 80z"]},iN={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"]},e2={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"]},sN={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"]},oN={primary:"#375ABC",primaryLight:"#8FA9F3",primaryDark:"#29438D",hover:"#4570EB",hoverLight:"#ECF1FD",text:"#375ABC",textLight:"#FFFFFF"},aN={primary:"#06B6D4",primaryLight:"#67E8F9",primaryDark:"#0891B2",hover:"#0891B2",hoverLight:"#CFFAFE",text:"#06B6D4",textLight:"#FFFFFF"},lN=e=>({blue:oN,aqua:aN})[e],Xd=({date:e,onDateChange:t,showTimeSelector:n=!0,minDate:r,maxDate:i,futureDates:o=!1,pastDates:a=!0,color:c="blue"})=>{const[u,d]=_.useState(e),[h,m]=_.useState(e),[p,y]=_.useState(e.getHours()%12||12),[S,b]=_.useState(e.getHours()>=12?"PM":"AM"),[T,w]=_.useState(0),{t:E}=Ue(),P=lN(c),[$,A]=_.useState(!1),[D,V]=_.useState(!1);_.useEffect(()=>{d(e),m(e),y(e.getHours()%12||12),b(e.getHours()>=12?"PM":"AM")},[e]);const j=()=>{w(-1),setTimeout(()=>{const B=DI(u);(!r||B>=r)&&d(B)},10)},U=()=>{w(1),setTimeout(()=>{d(ov(u,1))},10)},X=B=>{if(i&&B>i||r&&B<r)return;const G=vv(bv(xv(B,0),0),S==="AM"?p%12:p%12+12);m(G),t(G)},ne=B=>{y(B);const G=vv(bv(xv(h,0),0),S==="AM"?B%12:B%12+12);m(G),t(G),A(!1)},oe=B=>{b(B)},ge=()=>{const B=new Date,G=20,O=5,[N,K]=_.useState(()=>Array.from({length:G+1},(Q,le)=>{const re=new Date(B.getFullYear(),B.getMonth()-le,1);return{name:Dn(re,"MMMM",{locale:es}).replace(/^./,de=>de.toUpperCase()),index:re.getMonth(),year:re.getFullYear(),displayName:`${Dn(re,"MMMM",{locale:es}).replace(/^./,de=>de.toUpperCase())} ${re.getFullYear()}`}})),ae=_.useRef(null),J=_.useRef(null);_.useEffect(()=>{ae.current&&ae.current.disconnect(),ae.current=new IntersectionObserver(Q=>{Q[0].isIntersecting&&K(le=>{const re=le[le.length-1],de=new Date(re.year,re.index-1,1),Ce=Array.from({length:O},(Ve,ie)=>{const pe=new Date(de.getFullYear(),de.getMonth()-ie,1);return{name:Dn(pe,"MMMM",{locale:es}).replace(/^./,De=>De.toUpperCase()),index:pe.getMonth(),year:pe.getFullYear(),displayName:`${Dn(pe,"MMMM",{locale:es}).replace(/^./,De=>De.toUpperCase())} ${pe.getFullYear()}`}});return[...le,...Ce]})}),J.current&&ae.current.observe(J.current)},[N]);const q=(Q,le)=>{const re=new Date(u);re.setMonth(Q),re.setFullYear(le),(!r||re>=r)&&d(re),V(!1)};return v.jsx("div",{className:"flex flex-col p-8 max-h-200 overflow-y-auto bg-light gap-4",children:N.map((Q,le)=>{const re=le===N.length-1;return v.jsx("button",{ref:re?J:null,onClick:()=>q(Q.index,Q.year),className:"text-start p-6 font-600 transition-all duration-100 rounded-lg",style:{backgroundColor:u.getMonth()===Q.index&&u.getFullYear()===Q.year?P.hoverLight:"transparent",color:u.getMonth()===Q.index&&u.getFullYear()===Q.year?P.text:"inherit"},onMouseEnter:de=>{u.getMonth()===Q.index&&u.getFullYear()===Q.year||(de.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:de=>{u.getMonth()===Q.index&&u.getFullYear()===Q.year||(de.currentTarget.style.backgroundColor="transparent")},children:Q.displayName},`${Q.name}-${Q.year}-${le}`)})})},ue=()=>v.jsxs("div",{className:"flex justify-between items-center mb-8",children:[v.jsx(ko,{open:D,onClose:()=>V(!1),component:ge,placement:"bottom",className:"!p-0 overflow-hidden bg-light",strategy:"fixed",children:v.jsxs("button",{onClick:()=>V(!D),className:"transition-colors duration-150 flex gap-6 items-center !text-black",children:[v.jsx("h4",{className:"text-header-4",children:Dn(u,"MMMM yyyy",{locale:es}).replace(/^./,B=>B.toUpperCase())}),v.jsx(_e,{icon:e2,className:"w-12 h-12"})]})}),v.jsxs("div",{className:"flex items-center gap-8",children:[v.jsx(uh,{variant:"transparent",color:c,icon:z6,onClick:j}),v.jsx(uh,{variant:"transparent",color:c,icon:T_,onClick:U})]})]}),fe=()=>{const B=Zi(R_(u)),G=L_(I_(u)),O=D_({start:B,end:G}),N=new Date;return N.setHours(0,0,0,0),v.jsx("div",{className:"grid grid-cols-7 gap-2",children:O.map((K,ae)=>{const J=cv(K,h),q=II(K,u),Q=$I(K),le=K<N,re=K>N,de=!q||le&&!a||re&&!o||r&&K<r||i&&K>i;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
- ${fe?"text-gray-400 pointer-events-none":"cursor-pointer"}
670
- `,onClick:()=>!fe&&J(K),initial:!1,animate:{backgroundColor:Z?P.primaryLight:"transparent",color:Z?P.textLight:Q?P.text:fe?"#9CA3AF":"#000000"},transition:{duration:.2,ease:"easeInOut",backgroundColor:{duration:.2,ease:"easeOut"}},whileHover:!fe&&!Z?{backgroundColor:P.hoverLight}:{},whileTap:fe?{}:{backgroundColor:Z?P.primaryDark:P.hoverLight},children:Dn(K,"d")},oe)})})},he=()=>{const B=Array.from({length:12},(O,N)=>N+1),G=()=>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:B.map(O=>v.jsxs("button",{onClick:()=>ne(O),className:"w-full text-center py-2 transition-all duration-100 rounded-lg",style:{backgroundColor:O===p?P.hoverLight:"transparent",color:O===p?P.text:"inherit",fontWeight:O===p?"500":"normal"},onMouseEnter:N=>{O!==p&&(N.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:N=>{O!==p&&(N.currentTarget.style.backgroundColor="transparent")},children:[String(O).padStart(2,"0"),":00"]},O))});return v.jsxs("div",{className:"flex justify-between items-center mt-4 mb-4",children:[v.jsx("h4",{className:"text-body-m font-medium",children:E("time")}),v.jsxs("div",{className:"flex items-center gap-6",children:[v.jsx(Lo,{open:$,onClose:()=>A(!1),component:G,placement:"bottom",className:"!p-0 overflow-hidden",strategy:"fixed",children:v.jsx(tN,{setHourMenuOpen:A,hourMenuOpen:$,selectedHour:p})}),v.jsx(eN,{selectedPeriod:S,handlePeriodChange:le,colorVariants:P})]})]})},V={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:[de(),v.jsx(Kn,{initial:!1,mode:"popLayout",children:v.jsx(Ze.div,{variants:V,initial:T===1?"slideNextEnter":T===-1?"slidePrevEnter":!1,animate:"center",exit:T===1?"slideNextExit":"slidePrevExit",className:"w-full",children:ue()},Dn(u,"yyyy-MM"))}),n&&he()]})},Zd=({label:e,onChange:t,value:n,name:r,error:i,placeholder:o,className:a="",disabled:c=!1,disabledInput:u=!1,leftSide:d,rightSide:h,...m})=>{const{t:p}=Ue();return v.jsxs("label",{className:`flex flex-col group gap-8 select-none ${c&&"cursor-not-allowed"} ${a}`,htmlFor:r,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${i&&"!text-red-500"} text-label ${c&&"text-gray-300"}`,children:e}),v.jsxs("label",{htmlFor:r,className:`
671
- flex items-center justify-between gap-8 p-16
669
+ ${de?"text-gray-400 pointer-events-none":"cursor-pointer"}
670
+ `,onClick:()=>!de&&X(K),initial:!1,animate:{backgroundColor:J?P.primaryLight:"transparent",color:J?P.textLight:Q?P.text:de?"#9CA3AF":"#000000"},transition:{duration:.2,ease:"easeInOut",backgroundColor:{duration:.2,ease:"easeOut"}},whileHover:!de&&!J?{backgroundColor:P.hoverLight}:{},whileTap:de?{}:{backgroundColor:J?P.primaryDark:P.hoverLight},children:Dn(K,"d")},ae)})})},he=()=>{const B=Array.from({length:12},(O,N)=>N+1),G=()=>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:B.map(O=>v.jsxs("button",{onClick:()=>ne(O),className:"w-full text-center py-2 transition-all duration-100 rounded-lg",style:{backgroundColor:O===p?P.hoverLight:"transparent",color:O===p?P.text:"inherit",fontWeight:O===p?"500":"normal"},onMouseEnter:N=>{O!==p&&(N.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:N=>{O!==p&&(N.currentTarget.style.backgroundColor="transparent")},children:[String(O).padStart(2,"0"),":00"]},O))});return v.jsxs("div",{className:"flex justify-between items-center mt-4 mb-4",children:[v.jsx("h4",{className:"text-body-m font-medium",children:E("time")}),v.jsxs("div",{className:"flex items-center gap-6",children:[v.jsx(ko,{open:$,onClose:()=>A(!1),component:G,placement:"bottom",className:"!p-0 overflow-hidden",strategy:"fixed",children:v.jsx(tN,{setHourMenuOpen:A,hourMenuOpen:$,selectedHour:p})}),v.jsx(eN,{selectedPeriod:S,handlePeriodChange:oe,colorVariants:P})]})]})},F={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:[ue(),v.jsx(Kn,{initial:!1,mode:"popLayout",children:v.jsx(Ze.div,{variants:F,initial:T===1?"slideNextEnter":T===-1?"slidePrevEnter":!1,animate:"center",exit:T===1?"slideNextExit":"slidePrevExit",className:"w-full",children:fe()},Dn(u,"yyyy-MM"))}),n&&he()]})},Zd=({label:e,onChange:t,value:n,name:r,error:i,placeholder:o,className:a="",disabled:c=!1,disabledInput:u=!1,size:d="base",leftSide:h,rightSide:m,...p})=>{const{t:y}=Ue(),b={sm:{container:"p-8",text:"text-body-s",label:"text-xs",error:"text-xs",gap:"gap-6"},base:{container:"p-16",text:"text-body-m",label:"text-label",error:"text-label",gap:"gap-8"}}[d];return v.jsxs("label",{className:`flex flex-col group select-none ${b.gap} ${c&&"cursor-not-allowed"} ${a}`,htmlFor:r,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${i&&"!text-red-500"} ${b.label} ${c&&"text-gray-300"}`,children:e}),v.jsxs("label",{htmlFor:r,className:`
671
+ flex items-center justify-between gap-8 ${b.container}
672
672
 
673
673
  ${i&&"!border-red-500"}
674
674
 
@@ -683,14 +683,14 @@ function print() { __p += __j.call(arguments, '') }
683
683
  group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
684
684
  ${u&&"hover:!cursor-pointer"}
685
685
  group-disabled:bg-gray-500
686
- `,children:[d&&d,v.jsx("input",{...m,id:r,name:r,disabled:c,placeholder:o,value:n,onChange:y=>{t(y.target.value)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${u&&"pointer-events-none !select-none !caret-transparent"}`}),h&&h]}),v.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:i&&p(i||"",{x:p(r)})})]})},ew=e=>Dn(e,"dd/MM/yyyy"),tw=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},lN=({control:e,name:t,showTimeSelector:n=!1,label:r,translateKey:i="",placeholder:o,futureDates:a=!1,pastDates:c=!0})=>{const{field:{value:u,onChange:d,onBlur:h},fieldState:{error:m}}=hr.useController({name:t,control:e}),{t:p}=Ue(),y=p(t),S=p(i),[b,T]=_.useState(!1),[w,E]=_.useState("");_.useEffect(()=>{u instanceof Date&&!isNaN(u.getTime())?E(ew(u)):E("")},[u]);const P=tw(w),$=D=>{const k=D.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(E(z),T(!1),z.length===10){const J=tw(z);d(J)}},A=()=>{d(null),E("")};return v.jsx(Lo,{open:b,strategy:"fixed",padding:0,offset:0,onClose:()=>T(!1),className:"p-0!",component:v.jsx(Xd,{date:P||new Date,onDateChange:D=>{E(ew(D)),d(D),T(!1)},showTimeSelector:n,futureDates:a,pastDates:c}),children:v.jsx(Zd,{onBlur:h,name:S||y,label:r,value:w,onFocus:D=>{D.preventDefault(),T(!0)},disabledInput:!0,onChange:D=>$(D),placeholder:o,error:m==null?void 0:m.message,rightSide:!!P&&v.jsx(Ie,{icon:nv,className:"text-gray-500 cursor-pointer",onClick:A})})})},nw=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o,icon:a=G6,showCloseButton:c=!0})=>{const u={hidden:{opacity:0},visible:{opacity:1}},d={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},h=()=>{i==null||i(),r()},m=()=>{o==null||o(),r()},{t:p}=Ue();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(xs,{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(Ie,{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(Ie,{icon:a,className:"w-32 h-36 min-h-36 min-w-36 text-blue-500",onClick:r})})})]}),v.jsxs("div",{className:"flex flex-col gap-20 items-center justify-center",children:[v.jsxs("div",{className:"text-center w-full",children:[v.jsx("h3",{className:"text-black font-700 text-3xl w-full",children:e}),v.jsx("p",{className:"text-gray-500 text-xl font-600 w-full",children:t})]}),v.jsxs("div",{className:"flex justify-center w-full gap-16",children:[!!o&&v.jsx(jo,{size:"lg",onClick:m,variant:"transparent",children:p("cancel")}),!!i&&v.jsx(jo,{size:"lg",onClick:h,children:p("confirm")})]})]})]})})})})})},rw={duration:.3,ease:[.32,.72,0,1]},cN={initial:{opacity:0,height:0,y:-8},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-8}},uN=({isOpen:e})=>v.jsx(Ze.div,{animate:{rotate:e?180:0},transition:{duration:.5,ease:[.16,1,.3,1]},children:v.jsx(Ie,{icon:W6,className:"text-gray-500 w-12 h-12 max-w-12 max-h-12"})}),fN=({label:e,children:t,subtitle:n,open:r,onClick:i,className:o="",labelClassName:a=""})=>{const{t:c}=Ue(),[u,d]=_.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
686
+ `,children:[h&&h,v.jsx("input",{...p,id:r,name:r,disabled:c,placeholder:o,value:n,onChange:T=>{t(T.target.value)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 ${b.text} 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"}`}),m&&m]}),v.jsx("h4",{className:`font-500 text-red-500 leading-none ${b.error}`,children:i&&y(i||"",{x:y(r)})})]})},t2=e=>Dn(e,"dd/MM/yyyy"),n2=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},cN=({control:e,name:t,showTimeSelector:n=!1,label:r,translateKey:i="",placeholder:o,futureDates:a=!1,pastDates:c=!0})=>{const{field:{value:u,onChange:d,onBlur:h},fieldState:{error:m}}=hr.useController({name:t,control:e}),{t:p}=Ue(),y=p(t),S=p(i),[b,T]=_.useState(!1),[w,E]=_.useState("");_.useEffect(()=>{u instanceof Date&&!isNaN(u.getTime())?E(t2(u)):E("")},[u]);const P=n2(w),$=D=>{const V=D.replace(/\D/g,"").slice(0,8),j=[];V.length>0&&j.push(V.slice(0,2)),V.length>2&&j.push(V.slice(2,4)),V.length>4&&j.push(V.slice(4,8));const U=j.join("/");if(E(U),T(!1),U.length===10){const X=n2(U);d(X)}},A=()=>{d(null),E("")};return v.jsx(ko,{open:b,strategy:"fixed",padding:0,offset:0,onClose:()=>T(!1),className:"p-0!",component:v.jsx(Xd,{date:P||new Date,onDateChange:D=>{E(t2(D)),d(D),T(!1)},showTimeSelector:n,futureDates:a,pastDates:c}),children:v.jsx(Zd,{onBlur:h,name:S||y,label:r,value:w,onFocus:D=>{D.preventDefault(),T(!0)},disabledInput:!0,onChange:D=>$(D),placeholder:o,error:m==null?void 0:m.message,rightSide:!!P&&v.jsx(_e,{icon:rv,className:"text-gray-500 cursor-pointer",onClick:A})})})},r2=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o,icon:a=G6,showCloseButton:c=!0})=>{const u={hidden:{opacity:0},visible:{opacity:1}},d={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},h=()=>{i==null||i(),r()},m=()=>{o==null||o(),r()},{t:p}=Ue();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(xs,{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:a,className:"w-32 h-36 min-h-36 min-w-36 text-blue-500",onClick:r})})})]}),v.jsxs("div",{className:"flex flex-col gap-20 items-center justify-center",children:[v.jsxs("div",{className:"text-center w-full",children:[v.jsx("h3",{className:"text-black font-700 text-3xl w-full",children:e}),v.jsx("p",{className:"text-gray-500 text-xl font-600 w-full",children:t})]}),v.jsxs("div",{className:"flex justify-center w-full gap-16",children:[!!o&&v.jsx(ws,{size:"lg",onClick:m,variant:"transparent",children:p("cancel")}),!!i&&v.jsx(ws,{size:"lg",onClick:h,children:p("confirm")})]})]})]})})})})})},i2={duration:.3,ease:[.32,.72,0,1]},uN={initial:{opacity:0,height:0,y:-8},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-8}},fN=({isOpen:e})=>v.jsx(Ze.div,{animate:{rotate:e?180:0},transition:{duration:.5,ease:[.16,1,.3,1]},children:v.jsx(_e,{icon:W6,className:"text-gray-500 w-12 h-12 max-w-12 max-h-12"})}),dN=({label:e,children:t,subtitle:n,open:r,onClick:i,className:o="",labelClassName:a=""})=>{const{t:c}=Ue(),[u,d]=_.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
687
  ${h?"border-blue-100 bg-gray-50/50":"border-transparent"}
688
688
  transition-all duration-200 ease-in-out focus:outline-none hover:bg-gray-50/50
689
- flex items-center gap-2 group w-full justify-between`,children:[v.jsx("span",{className:`text-left text-lg md:text-xl font-700 ${a}`,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(uN,{isOpen:h})]})]}),v.jsx(Kn,{mode:"wait",children:h&&v.jsx(Ze.div,{...cN,transition:{height:{duration:rw.duration,ease:rw.ease},opacity:{duration:.15,ease:"easeOut"}},className:`w-full bg-white overflow-hidden ${o}`,children:t})})]})},Ht={LOADING:"loading",COMPLETE:"complete",ERROR:"error"},dN=({file:e,onDelete:t,onRetry:n,uploadDuration:r=4e3})=>{const{t:i}=Ue(),o=()=>e.error?Ht.ERROR:e.loading?Ht.LOADING:Ht.COMPLETE,[a,c]=_.useState(o()),[u,d]=_.useState(0),[h,m]=_.useState(10);_.useEffect(()=>{const b=o();c(b);let T;if(b===Ht.LOADING&&u<100){const P=100/(r/100);T=setInterval(()=>{d($=>{const A=Math.min($+P,99),D=Math.max(0,Math.round((100-A)/10));return m(D),A})},100)}else b===Ht.COMPLETE&&u<100&&d(100);return()=>{T&&clearInterval(T)}},[e.loading,e.error,r,o,u]);const p=()=>{switch(a){case Ht.LOADING:return`${Math.round(u)}% (${h} ${i("seconds_left")})`;case Ht.COMPLETE:return i("file_uploaded");case Ht.ERROR:return i("upload_error");default:return""}},y=()=>{switch(a){case Ht.COMPLETE:return"text-green-500 font-600";case Ht.ERROR:return"text-red-500 font-600";default:return"text-gray-300 font-400"}},S=()=>{if(!(e!=null&&e.file_size))return i("unknown");const b=e.file_size/1024;return b<1024?`${b.toFixed(1)} KB`:`${(b/1024).toFixed(1)} MB`};return v.jsxs("div",{className:"border border-gray-100 bg-white rounded-lg p-16 shadow-sm w-full",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx(Ie,{icon:zC,className:"w-12 h-12 min-w-12 min-h-12 text-gray-400"}),v.jsx("span",{className:"text-gray-500 text-sm",children:e.user_file_name})]}),a===Ht.COMPLETE&&v.jsx("button",{onClick:t,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:v.jsx(Ie,{icon:UC})}),a===Ht.ERROR&&v.jsx("button",{onClick:n,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:v.jsx(Ie,{icon:BC})})]}),v.jsx("div",{className:"flex items-center mt-2",children:e!=null&&e.analyzing?v.jsxs("div",{className:"flex items-center gap-6",children:[v.jsx(Ze.div,{className:"h-14 w-14 rounded-full border-2 border-t-blue-500 border-r-blue-300 border-b-blue-200 border-l-blue-400",animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}}),v.jsxs("span",{className:"text-sm text-gray-500",children:[i("analyzing_file_with_ai"),"..."]})]}):v.jsxs("div",{className:"text-sm",children:[v.jsxs("span",{className:"text-gray-500",children:[S()," |"]})," ",v.jsx("span",{className:y(),children:p()})]})}),a===Ht.LOADING&&v.jsx("div",{className:"mt-2 bg-gray-200 rounded-full h-2",children:v.jsx("div",{className:"h-2 rounded-full transition-all duration-100 ease-linear bg-blue-500",style:{width:`${u}%`}})})]})},iw=({index:e,label:t,active:n,completed:r})=>v.jsxs("div",{className:"flex items-center gap-8",children:[v.jsx("div",{className:`
689
+ flex items-center gap-2 group w-full justify-between`,children:[v.jsx("span",{className:`text-left text-lg md:text-xl font-700 ${a}`,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(fN,{isOpen:h})]})]}),v.jsx(Kn,{mode:"wait",children:h&&v.jsx(Ze.div,{...uN,transition:{height:{duration:i2.duration,ease:i2.ease},opacity:{duration:.15,ease:"easeOut"}},className:`w-full bg-white overflow-hidden ${o}`,children:t})})]})},Ht={LOADING:"loading",COMPLETE:"complete",ERROR:"error"},hN=({file:e,onDelete:t,onRetry:n,uploadDuration:r=4e3})=>{const{t:i}=Ue(),o=()=>e.error?Ht.ERROR:e.loading?Ht.LOADING:Ht.COMPLETE,[a,c]=_.useState(o()),[u,d]=_.useState(0),[h,m]=_.useState(10);_.useEffect(()=>{const b=o();c(b);let T;if(b===Ht.LOADING&&u<100){const P=100/(r/100);T=setInterval(()=>{d($=>{const A=Math.min($+P,99),D=Math.max(0,Math.round((100-A)/10));return m(D),A})},100)}else b===Ht.COMPLETE&&u<100&&d(100);return()=>{T&&clearInterval(T)}},[e.loading,e.error,r,o,u]);const p=()=>{switch(a){case Ht.LOADING:return`${Math.round(u)}% (${h} ${i("seconds_left")})`;case Ht.COMPLETE:return i("file_uploaded");case Ht.ERROR:return i("upload_error");default:return""}},y=()=>{switch(a){case Ht.COMPLETE:return"text-green-500 font-600";case Ht.ERROR:return"text-red-500 font-600";default:return"text-gray-300 font-400"}},S=()=>{if(!(e!=null&&e.file_size))return i("unknown");const b=e.file_size/1024;return b<1024?`${b.toFixed(1)} KB`:`${(b/1024).toFixed(1)} MB`};return v.jsxs("div",{className:"border border-gray-100 bg-white rounded-lg p-16 shadow-sm w-full",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx(_e,{icon:zC,className:"w-12 h-12 min-w-12 min-h-12 text-gray-400"}),v.jsx("span",{className:"text-gray-500 text-sm",children:e.user_file_name})]}),a===Ht.COMPLETE&&v.jsx("button",{onClick:t,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:v.jsx(_e,{icon:UC})}),a===Ht.ERROR&&v.jsx("button",{onClick:n,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:v.jsx(_e,{icon:BC})})]}),v.jsx("div",{className:"flex items-center mt-2",children:e!=null&&e.analyzing?v.jsxs("div",{className:"flex items-center gap-6",children:[v.jsx(Ze.div,{className:"h-14 w-14 rounded-full border-2 border-t-blue-500 border-r-blue-300 border-b-blue-200 border-l-blue-400",animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}}),v.jsxs("span",{className:"text-sm text-gray-500",children:[i("analyzing_file_with_ai"),"..."]})]}):v.jsxs("div",{className:"text-sm",children:[v.jsxs("span",{className:"text-gray-500",children:[S()," |"]})," ",v.jsx("span",{className:y(),children:p()})]})}),a===Ht.LOADING&&v.jsx("div",{className:"mt-2 bg-gray-200 rounded-full h-2",children:v.jsx("div",{className:"h-2 rounded-full transition-all duration-100 ease-linear bg-blue-500",style:{width:`${u}%`}})})]})},s2=({index:e,label:t,active:n,completed:r})=>v.jsxs("div",{className:"flex items-center gap-8",children:[v.jsx("div",{className:`
690
690
  size-24 rounded-full border-[1px] flex items-center justify-center text-center font-600 text-label transition-colors ease-in-out duration-200
691
691
  ${n&&"border-blue-500! text-blue-500!"}
692
692
  ${r?"text-blue-500 bg-blue-50 border-none!":"border-gray-300 text-gray-300"}
693
- `,children:r?v.jsx(Ie,{icon:iN,className:`
693
+ `,children:r?v.jsx(_e,{icon:sN,className:`
694
694
  text-blue-500
695
695
  size-16
696
696
  `}):e}),v.jsx("h6",{className:`
@@ -698,9 +698,9 @@ function print() { __p += __j.call(arguments, '') }
698
698
  ${n||r?"text-blue-500":"text-gray-300"}
699
699
  ${n&&"font-600"}
700
700
  ${r&&"font-500"}
701
- `,children:t})]}),hN=({currentStep:e,steps:t})=>v.jsx("div",{className:"flex flex-col gap-16",children:t.map((n,r)=>v.jsx(iw,{label:n,index:r+1,active:r+1===e,completed:r+1<e},r))}),mN=({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"||_.isValidElement(t)?t:null})]}),sw=({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})]});sw.Entry=mN;const xs=({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})},pN=({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(xs,{className:"flex flex-col gap-16 md:gap-24 !p-0",children:v.jsx(v.Fragment,{})})})})})})},gN={completedBgColor:"#dae2fb",focusBorderColor:"#4570EB",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-blue-500",lineActiveColor:"bg-blue-500",lineGradientFrom:"from-blue-500"},yN={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 yN;case"blue":default:return gN}},vN=({status:e,label:t,shouldAnimate:n,color:r,index:i})=>{const{t:o}=Ue(),a=e==="done",c=e==="focus",{focusBorderColor:u,pendingBorderColor:d,iconActiveColor:h}=Jd(r);return v.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[v.jsx(Ze.div,{initial:n?!1:{backgroundColor:a?"#E0F1ED":c?u:"white",borderWidth:c?"1px":"0px",borderColor:c?u:d},animate:{backgroundColor:a?"#E0F1ED":c?u:"white",borderWidth:c||!a?"1px":"0px",borderColor:c?u:d},transition:{duration:n?.3:0,ease:"easeOut"},className:"min-w-28 min-h-28 rounded-full flex items-center justify-center text-xl font-bold border-[1px]",children:v.jsx(Ze.div,{initial:n?!1:{color:a?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:a||c?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:n?.2:0},className:"flex items-center justify-center",children:v.jsx(Kn,{mode:"wait",children:a||c?v.jsx(Ze.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:a?v.jsx(Ie,{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(Ie,{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
701
+ `,children:t})]}),mN=({currentStep:e,steps:t})=>v.jsx("div",{className:"flex flex-col gap-16",children:t.map((n,r)=>v.jsx(s2,{label:n,index:r+1,active:r+1===e,completed:r+1<e},r))}),pN=({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"||_.isValidElement(t)?t:null})]}),o2=({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})]});o2.Entry=pN;const xs=({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})},gN=({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(xs,{className:"flex flex-col gap-16 md:gap-24 !p-0",children:v.jsx(v.Fragment,{})})})})})})},yN={completedBgColor:"#dae2fb",focusBorderColor:"#4570EB",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-blue-500",lineActiveColor:"bg-blue-500",lineGradientFrom:"from-blue-500"},vN={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 vN;case"blue":default:return yN}},bN=({status:e,label:t,shouldAnimate:n,color:r,index:i})=>{const{t:o}=Ue(),a=e==="done",c=e==="focus",{focusBorderColor:u,pendingBorderColor:d,iconActiveColor:h}=Jd(r);return v.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[v.jsx(Ze.div,{initial:n?!1:{backgroundColor:a?"#E0F1ED":c?u:"white",borderWidth:c?"1px":"0px",borderColor:c?u:d},animate:{backgroundColor:a?"#E0F1ED":c?u:"white",borderWidth:c||!a?"1px":"0px",borderColor:c?u:d},transition:{duration:n?.3:0,ease:"easeOut"},className:"min-w-28 min-h-28 rounded-full flex items-center justify-center text-xl font-bold border-[1px]",children:v.jsx(Ze.div,{initial:n?!1:{color:a?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:a||c?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:n?.2:0},className:"flex items-center justify-center",children:v.jsx(Kn,{mode:"wait",children:a||c?v.jsx(Ze.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:a?v.jsx(_e,{icon:og,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:sg,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
702
 
703
- `,style:{color:c?u:a?"#000":"#8F9095"},children:o(t)})]})},bN=({status:e,label:t,shouldAnimate:n,color:r})=>{const{t:i}=Ue(),o=e==="done",a=e==="focus",{completedBgColor:c,focusBorderColor:u,pendingBorderColor:d,iconActiveColor:h}=Jd(r);return v.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[v.jsx(Ze.div,{initial:n?!1:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:d},animate:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:d},transition:{duration:n?.3:0,ease:"easeOut"},className:"min-w-24 min-h-24 rounded-full flex items-center justify-center text-xs font-bold z-10",children:v.jsx(Ze.div,{initial:n?!1:{color:a||o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:a||o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:n?.2:0},className:"flex items-center justify-center",children:v.jsx(Kn,{mode:"wait",children:o||a?v.jsx(Ze.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:v.jsx(Ie,{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(Ie,{icon:ig,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),v.jsx("span",{className:`text-body-s font-medium transition-all duration-300 text-center w-full ${o||a?"text-black":"text-gray-400"}`,children:i(t)})]})},xN=({steps:e,direction:t="horizontal",color:n})=>{const{defaultColorScheme:r}=Ue(),i=n||r,{lineActiveColor:o,lineGradientFrom:a}=Jd(i),[c,u]=_.useState([]),[d,h]=_.useState(null),[m,p]=_.useState(!1),y=e.findIndex(w=>!w.completed),S=w=>y===w;_.useEffect(()=>{const w=e.map((E,P)=>S(P)?"focus":E.completed?"done":"pending");if(!m)u(w),p(!0),h(null);else{const E=w.findIndex((P,$)=>P!==c[$]);h(E!==-1?E:null),u(w)}},[e,y]);const b=()=>v.jsx("div",{className:"flex flex-col gap-16 relative",children:e.map((w,E)=>{var D;const P=S(E-1)?"focus":(D=e[E-1])!=null&&D.completed?"done":"pending",$=S(E)?"focus":w.completed?"done":"pending",A=m&&d===E;return v.jsxs("div",{className:"flex items-center gap-10 relative",children:[E!==0&&v.jsx("div",{className:`absolute left-[13px] bottom-[28px] w-[1.5px] h-16 ${$==="done"||$==="focus"?o:P==="done"||P==="focus"?`bg-gradient-to-b ${a} to-[rgb(243,244,246)]`:"bg-[rgb(243,244,246)]"}`}),v.jsx(vN,{index:E,status:$,shouldAnimate:A,label:w.label,color:i})]},E)})}),T=()=>v.jsx("div",{className:"w-full flex items-center gap-12",children:e.map((w,E)=>{const P=S(E)?"focus":w.completed?"done":"pending",$=m&&d===E;return v.jsx("div",{className:"flex flex-col items-center justify-evenly w-full gap-2 relative col-span-1",children:v.jsx(bN,{index:E,status:P,shouldAnimate:$,label:w.label,color:i})},E)})});return t==="horizontal"?v.jsx(T,{}):v.jsx(b,{})},wN=({variant:e="underline",color:t="blue",tabs:n,activeTab:r,onTabChange:i,className:o="",direction:a="row",showLabel:c=!0})=>{const u=_.useRef([]),[d,h]=_.useState({left:0,width:0}),m=_.useRef(null),{defaultColorScheme:p}=Ue(),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(),E=T.getBoundingClientRect();h({left:E.left-w.left,width:E.width})}}};return _.useEffect(()=>{S()},[r,n]),_.useEffect(()=>{const b=()=>{S()};return window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}},[r,n]),v.jsxs("div",{ref:m,className:`flex items-center relative ${o}`,children:[n.map((b,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:a,isSelected:r===b.id,onClick:()=>i(b.id),variant:e})},b.id)),v.jsx(mf.div,{className:`absolute bottom-0 h-2 bg-${y}-500`,initial:!1,animate:{left:d.left,width:d.width},transition:{type:"spring",stiffness:300,damping:30}})]})},Qd=e=>Dn(e,"dd/MM/yyyy"),SN=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 TN({currentDate:e,onDateChange:t,label:n,placeholder:r="dd/mm/yyyy",error:i,translatedKey:o,showTimeSelector:a=!1,futureDates:c=!1,pastDates:u=!0,minDate:d,maxDate:h,customDisplay:m}){const[p,y]=_.useState(!1),[S,b]=_.useState(e?Qd(e):"");_.useEffect(()=>{b(e?Qd(e):"")},[e]);const T=E=>{const P=E.replace(/\D/g,"").slice(0,8),$=[];P.length>0&&$.push(P.slice(0,2)),P.length>2&&$.push(P.slice(2,4)),P.length>4&&$.push(P.slice(4,8));const A=$.join("/");if(b(A),y(!1),A.length===10){const D=SN(A);D&&t(D)}},w=()=>{t(null),b("")};return v.jsx(Lo,{open:p,strategy:"fixed",padding:0,offset:0,onClose:()=>y(!1),className:"p-0!",component:v.jsx(Xd,{date:e||new Date,onDateChange:E=>{t(E),b(Qd(E)),y(!1)},showTimeSelector:a,futureDates:c,pastDates:u,minDate:d,maxDate:h}),children:m?v.jsx("div",{onClick:E=>{E.preventDefault(),y(!0)},children:m}):v.jsx(Zd,{name:o,label:n,value:S,onClick:E=>{E.preventDefault(),y(!0)},onChange:E=>T(E),placeholder:r,error:i,rightSide:e&&v.jsx(Ie,{icon:nv,className:"text-gray-500 cursor-pointer",onClick:w})})})}const EN=({name:e,error:t,value:n,onChange:r,onOptionClick:i,onKeyDown:o,onSelect:a,options:c,placeholder:u,label:d,disabled:h=!1,className:m="",showOptionsOnClick:p=!0,showChevron:y=!1,setValueOnOptionSelect:S=!0,leftSide:b,rightSide:T})=>{const{t:w}=Ue(),[E,P]=_.useState(n||""),[$,A]=_.useState(!1);_.useEffect(()=>{P(n||"")},[n]);const D=_.useRef(null),{x:k,y:F,strategy:z,refs:J,context:ne}=jr({open:$,onOpenChange:A,middleware:[Dr(8),Nr(),Rr({padding:8}),ys({apply({availableHeight:Z,elements:q}){Object.assign(q.floating.style,{maxHeight:`${Math.min(Z-10,300)}px`})},padding:8})],placement:"bottom-start",whileElementsMounted:$r}),le=vi(ne,{enabled:y}),ye=kr(ne),{getReferenceProps:de,getFloatingProps:ue}=Fr([le,ye]),{isMounted:he,styles:V}=bi(ne,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),B=(()=>{const Z=Array.isArray(c)?c:[];if(!E.trim())return Z;const q=E.toLowerCase();return Z.filter(Q=>Q.label.toLowerCase().includes(q))})(),G=Z=>{S&&P(Z.label),A(!1),i&&i(Z),a&&a(Z.value)},O=Z=>{P(Z),r&&r(Z)},N=Z=>{Z.stopPropagation(),y&&!h&&(A(!$),!$&&D.current&&setTimeout(()=>{var q;return(q=D.current)==null?void 0:q.focus()},100))},oe={...y?de():{},onKeyDown:void 0,onClick:void 0};return v.jsxs("div",{className:`flex flex-col gap-8 select-none ${h&&"cursor-not-allowed"} ${m}`,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${t&&"!text-red-500"} text-label ${h&&"text-gray-300"}`,children:d}),v.jsxs("div",{ref:J.setReference,className:`
703
+ `,style:{color:c?u:a?"#000":"#8F9095"},children:o(t)})]})},xN=({status:e,label:t,shouldAnimate:n,color:r})=>{const{t:i}=Ue(),o=e==="done",a=e==="focus",{completedBgColor:c,focusBorderColor:u,pendingBorderColor:d,iconActiveColor:h}=Jd(r);return v.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[v.jsx(Ze.div,{initial:n?!1:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:d},animate:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:d},transition:{duration:n?.3:0,ease:"easeOut"},className:"min-w-24 min-h-24 rounded-full flex items-center justify-center text-xs font-bold z-10",children:v.jsx(Ze.div,{initial:n?!1:{color:a||o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:a||o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:n?.2:0},className:"flex items-center justify-center",children:v.jsx(Kn,{mode:"wait",children:o||a?v.jsx(Ze.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:v.jsx(_e,{icon:og,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:sg,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),v.jsx("span",{className:`text-body-s font-medium transition-all duration-300 text-center w-full ${o||a?"text-black":"text-gray-400"}`,children:i(t)})]})},wN=({steps:e,direction:t="horizontal",color:n})=>{const{defaultColorScheme:r}=Ue(),i=n||r,{lineActiveColor:o,lineGradientFrom:a}=Jd(i),[c,u]=_.useState([]),[d,h]=_.useState(null),[m,p]=_.useState(!1),y=e.findIndex(w=>!w.completed),S=w=>y===w;_.useEffect(()=>{const w=e.map((E,P)=>S(P)?"focus":E.completed?"done":"pending");if(!m)u(w),p(!0),h(null);else{const E=w.findIndex((P,$)=>P!==c[$]);h(E!==-1?E:null),u(w)}},[e,y]);const b=()=>v.jsx("div",{className:"flex flex-col gap-16 relative",children:e.map((w,E)=>{var D;const P=S(E-1)?"focus":(D=e[E-1])!=null&&D.completed?"done":"pending",$=S(E)?"focus":w.completed?"done":"pending",A=m&&d===E;return v.jsxs("div",{className:"flex items-center gap-10 relative",children:[E!==0&&v.jsx("div",{className:`absolute left-[13px] bottom-[28px] w-[1.5px] h-16 ${$==="done"||$==="focus"?o:P==="done"||P==="focus"?`bg-gradient-to-b ${a} to-[rgb(243,244,246)]`:"bg-[rgb(243,244,246)]"}`}),v.jsx(bN,{index:E,status:$,shouldAnimate:A,label:w.label,color:i})]},E)})}),T=()=>v.jsx("div",{className:"w-full flex items-center gap-12",children:e.map((w,E)=>{const P=S(E)?"focus":w.completed?"done":"pending",$=m&&d===E;return v.jsx("div",{className:"flex flex-col items-center justify-evenly w-full gap-2 relative col-span-1",children:v.jsx(xN,{index:E,status:P,shouldAnimate:$,label:w.label,color:i})},E)})});return t==="horizontal"?v.jsx(T,{}):v.jsx(b,{})},SN=({variant:e="underline",color:t="blue",tabs:n,activeTab:r,onTabChange:i,className:o="",direction:a="row",showLabel:c=!0})=>{const u=_.useRef([]),[d,h]=_.useState({left:0,width:0}),m=_.useRef(null),{defaultColorScheme:p}=Ue(),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(),E=T.getBoundingClientRect();h({left:E.left-w.left,width:E.width})}}};return _.useEffect(()=>{S()},[r,n]),_.useEffect(()=>{const b=()=>{S()};return window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}},[r,n]),v.jsxs("div",{ref:m,className:`flex items-center relative ${o}`,children:[n.map((b,T)=>v.jsx(mf.div,{ref:w=>{u.current[T]=w},className:"w-full",children:v.jsx(N2,{href:b.href,label:c?b.label:"",icon:b.icon,direction:a,isSelected:r===b.id,onClick:()=>i(b.id),variant:e})},b.id)),v.jsx(mf.div,{className:`absolute bottom-0 h-2 bg-${y}-500`,initial:!1,animate:{left:d.left,width:d.width},transition:{type:"spring",stiffness:300,damping:30}})]})},Qd=e=>Dn(e,"dd/MM/yyyy"),TN=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 EN({currentDate:e,onDateChange:t,label:n,placeholder:r="dd/mm/yyyy",error:i,translatedKey:o,showTimeSelector:a=!1,futureDates:c=!1,pastDates:u=!0,minDate:d,maxDate:h,customDisplay:m}){const[p,y]=_.useState(!1),[S,b]=_.useState(e?Qd(e):"");_.useEffect(()=>{b(e?Qd(e):"")},[e]);const T=E=>{const P=E.replace(/\D/g,"").slice(0,8),$=[];P.length>0&&$.push(P.slice(0,2)),P.length>2&&$.push(P.slice(2,4)),P.length>4&&$.push(P.slice(4,8));const A=$.join("/");if(b(A),y(!1),A.length===10){const D=TN(A);D&&t(D)}},w=()=>{t(null),b("")};return v.jsx(ko,{open:p,strategy:"fixed",padding:0,offset:0,onClose:()=>y(!1),className:"p-0!",component:v.jsx(Xd,{date:e||new Date,onDateChange:E=>{t(E),b(Qd(E)),y(!1)},showTimeSelector:a,futureDates:c,pastDates:u,minDate:d,maxDate:h}),children:m?v.jsx("div",{onClick:E=>{E.preventDefault(),y(!0)},children:m}):v.jsx(Zd,{name:o,label:n,value:S,onClick:E=>{E.preventDefault(),y(!0)},onChange:E=>T(E),placeholder:r,error:i,rightSide:e&&v.jsx(_e,{icon:rv,className:"text-gray-500 cursor-pointer",onClick:w})})})}const CN=({name:e,error:t,value:n,onChange:r,onOptionClick:i,onKeyDown:o,onSelect:a,options:c,placeholder:u,label:d,disabled:h=!1,className:m="",showOptionsOnClick:p=!0,showChevron:y=!1,setValueOnOptionSelect:S=!0,leftSide:b,rightSide:T})=>{const{t:w}=Ue(),[E,P]=_.useState(n||""),[$,A]=_.useState(!1);_.useEffect(()=>{P(n||"")},[n]);const D=_.useRef(null),{x:V,y:j,strategy:U,refs:X,context:ne}=jr({open:$,onOpenChange:A,middleware:[Dr(8),Nr(),Rr({padding:8}),ys({apply({availableHeight:J,elements:q}){Object.assign(q.floating.style,{maxHeight:`${Math.min(J-10,300)}px`})},padding:8})],placement:"bottom-start",whileElementsMounted:$r}),oe=vi(ne,{enabled:y}),ge=kr(ne),{getReferenceProps:ue,getFloatingProps:fe}=Fr([oe,ge]),{isMounted:he,styles:F}=bi(ne,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),B=(()=>{const J=Array.isArray(c)?c:[];if(!E.trim())return J;const q=E.toLowerCase();return J.filter(Q=>Q.label.toLowerCase().includes(q))})(),G=J=>{S&&P(J.label),A(!1),i&&i(J),a&&a(J.value)},O=J=>{P(J),r&&r(J)},N=J=>{J.stopPropagation(),y&&!h&&(A(!$),!$&&D.current&&setTimeout(()=>{var q;return(q=D.current)==null?void 0:q.focus()},100))},ae={...y?ue():{},onKeyDown:void 0,onClick:void 0};return v.jsxs("div",{className:`flex flex-col gap-8 select-none ${h&&"cursor-not-allowed"} ${m}`,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${t&&"!text-red-500"} text-label ${h&&"text-gray-300"}`,children:d}),v.jsxs("div",{ref:X.setReference,className:`
704
704
  flex items-center justify-between gap-8 p-16
705
705
 
706
706
  ${t&&"!border-red-500"}
@@ -716,16 +716,16 @@ function print() { __p += __j.call(arguments, '') }
716
716
  focus-within:border-blue-500 transition-colors duration-200 ease-in-out
717
717
  ${h&&"hover:!cursor-pointer"}
718
718
  group-disabled:bg-gray-500
719
- `,...oe,children:[b&&b,v.jsx("input",{ref:D,id:e,name:e,disabled:h,placeholder:u,value:E,onClick:()=>{p&&!$&&!h&&A(!0)},onChange:Z=>O(Z.target.value),onKeyDown:Z=>{o&&o(Z),Z.key==="Enter"&&(Z.preventDefault(),B.length>0&&G(B[0])),Z.key==="Escape"&&A(!1)},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 ${h&&"pointer-events-none !select-none !caret-transparent"}`}),T&&!y?T:y&&v.jsx(Ie,{icon:nN,className:`text-xl text-gray-500 cursor-pointer ${$&&"rotate-180"} transition-transform duration-150 ease-in-out`,onClick:N})]}),v.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:t&&w(t||"",{x:w(e)})}),he&&v.jsx("div",{ref:J.setFloating,style:{position:z,top:F??0,left:k??0,...V,width:J.reference.current instanceof Element?J.reference.current.clientWidth:void 0,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...ue(),children:v.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:B.length>0?v.jsx("ul",{className:"py-4",children:B.map((Z,q)=>v.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${E===Z.label?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:Q=>{Q.stopPropagation(),G(Z)},children:v.jsx("span",{children:w(Z.label)})},`${Z.label}-${q}`))}):E.length>0?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 se encontraron resultados para "',E,'"']})]}):null})})]})},CN=()=>{const[e,t]=_.useState([]),n=_.useRef([]),r=_.useCallback(a=>{const c={...a,id:(a==null?void 0:a.id)||yf.uniqueId(),open:!0,type:(a==null?void 0:a.type)||"center",props:{...a.props,open:!0,onClose:()=>o(a.id||yf.uniqueId())}};n.current=[...n.current,c],t(n.current)},[]),i=_.useCallback(a=>{const c=yf.uniqueId(),u={id:c,open:!0,onClose:()=>{o(c)},type:"custom",component:a};n.current=[...n.current,u],t(n.current)},[]),o=_.useCallback(a=>{n.current=n.current.map(c=>c.id===a?{...c,open:!1}:c),t(n.current),setTimeout(()=>{n.current=n.current.filter(c=>c.id!==a),t(n.current)},150)},[]);return _.useEffect(()=>{window.openModal=r,window.closeModal=o,window.openCustomModal=i},[r,o,i]),v.jsx(v.Fragment,{children:e.map(a=>{if(a.type==="custom"&&(a!=null&&a.component)){const{open:u,onClose:d,component:h}=a;return h(u,d)}if(a.type==="dialog"){const{props:u}=a;return v.jsx(nw,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}if(a.type==="alert"){const{props:u}=a;return v.jsx(xx,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}const{props:c}=a;return v.jsx(pw,{...c,open:a.open,onClose:()=>o(a.id),children:typeof c.children=="function"?c.children(()=>o(a.id)):c.children},a.id)})})};function PN(e){var t;(t=window==null?void 0:window.openModal)==null||t.call(window,e)}function AN(e){var t;(t=window==null?void 0:window.openCustomModal)==null||t.call(window,e)}function MN(e){var t;(t=window==null?void 0:window.closeModal)==null||t.call(window,e)}function ON(e,t,n){const r=t[e];if(_.isValidElement(r)&&typeof r.type!="string")return _.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 ow(e="bottom-center"){var t;if(!eh.find(n=>n.id===e)){const n=document.createElement("div");switch(n.classList.add("fixed","z-[99999]","flex","flex-col","items-center","w-fit","min-w-[18rem]"),n.style.setProperty("z-index","99999"),e){case"top-left":n.classList.add("top-8","left-8");break;case"top-right":n.classList.add("top-8","right-8");break;case"bottom-left":n.classList.add("bottom-8","left-8");break;case"bottom-right":n.classList.add("bottom-8","right-8");break;case"top-center":n.classList.add("top-8","left-1/2","-translate-x-1/2");break;case"bottom-center":default:n.classList.add("bottom-8","left-1/2","-translate-x-1/2")}eh.push({id:e,element:n}),document.body.appendChild(n)}return(t=eh.find(n=>n.id===e))==null?void 0:t.element}function fl(e,t="success",{position:n="top-right",duration:r=3e3}={}){import("react-dom/client").then(({createRoot:i})=>{const o=ow(n);if(!o)return;const a=document.createElement("div"),c=i(a),u=()=>{c.unmount(),o.removeChild(a)};c.render(v.jsx(pf,{content:e,type:t,duration:r,onClose:u})),o.prepend(a),setTimeout(()=>{a.classList.add("mt-[0.5rem]")},10)})}const th=(e,t,n={})=>{import("react-dom/client").then(({createRoot:r})=>{const i=ow(n.position);if(!i)return;const o=document.createElement("div"),a=r(o),c=()=>{a.unmount(),i.removeChild(o)};a.render(v.jsx(tv,{promise:e,messages:t,options:n,onClose:c})),i.prepend(o),setTimeout(()=>{o.classList.add("mt-[0.5rem]")},10)})},aw=(e,t={})=>{let n=()=>{},r=()=>{};const i=new Promise((o,a)=>{n=o,r=a});return th(i,e,t),{resolve:n,reject:r}},_N={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={})=>aw(e,t)},lw=({containerProps:e={},imageProps:t={},src:n="",alt:r="",size:i=30,user:o=null})=>{const{className:a=" ",...c}=e,{className:u=" ",...d}=t,h=i+"px",m=i*.5+"px",p=i*.4+"px",[y,S]=_.useState(!1),b=()=>r?gf(r):o?gf(o!=null&&o.first_name||o!=null&&o.last_name?((o==null?void 0:o.first_name)||"")+" "+((o==null?void 0:o.last_name)||""):o==null?void 0:o.email):"#9CA1B6",T=A=>{try{return A?(new URL(A),!0):!1}catch(D){return console.log(D),!1}},w=()=>T(n)?n:o!=null&&o.image&&T(o.image)?o.image:o!=null&&o.image?Sv(o.image):"",E=()=>r?v.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:p},children:r}):o?v.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:p},children:o!=null&&o.first_name||o!=null&&o.last_name?((o==null?void 0:o.first_name)||" ")[0]+((o==null?void 0:o.last_name)||" ")[0]:((o==null?void 0:o.email)||" ")[0]}):v.jsx(Ie,{style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},icon:S_,className:"w-full text-white"}),P=()=>{S(!0)},$=w();return v.jsxs("div",{className:"flex items-center justify-center rounded-full overflow-hidden h-full relative "+a,style:{maxWidth:h,maxHeight:h,minWidth:h,minHeight:h,backgroundColor:b()},...c,children:[$&&!y&&v.jsx("img",{src:$,alt:r,className:`
719
+ `,...ae,children:[b&&b,v.jsx("input",{ref:D,id:e,name:e,disabled:h,placeholder:u,value:E,onClick:()=>{p&&!$&&!h&&A(!0)},onChange:J=>O(J.target.value),onKeyDown:J=>{o&&o(J),J.key==="Enter"&&(J.preventDefault(),B.length>0&&G(B[0])),J.key==="Escape"&&A(!1)},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 ${h&&"pointer-events-none !select-none !caret-transparent"}`}),T&&!y?T:y&&v.jsx(_e,{icon:nN,className:`text-xl text-gray-500 cursor-pointer ${$&&"rotate-180"} transition-transform duration-150 ease-in-out`,onClick:N})]}),v.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:t&&w(t||"",{x:w(e)})}),he&&v.jsx("div",{ref:X.setFloating,style:{position:U,top:j??0,left:V??0,...F,width:X.reference.current instanceof Element?X.reference.current.clientWidth:void 0,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...fe(),children:v.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:B.length>0?v.jsx("ul",{className:"py-4",children:B.map((J,q)=>v.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${E===J.label?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:Q=>{Q.stopPropagation(),G(J)},children:v.jsx("span",{children:w(J.label)})},`${J.label}-${q}`))}):E.length>0?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 se encontraron resultados para "',E,'"']})]}):null})})]})},PN=()=>{const[e,t]=_.useState([]),n=_.useRef([]),r=_.useCallback(a=>{const c={...a,id:(a==null?void 0:a.id)||yf.uniqueId(),open:!0,type:(a==null?void 0:a.type)||"center",props:{...a.props,open:!0,onClose:()=>o(a.id||yf.uniqueId())}};n.current=[...n.current,c],t(n.current)},[]),i=_.useCallback(a=>{const c=yf.uniqueId(),u={id:c,open:!0,onClose:()=>{o(c)},type:"custom",component:a};n.current=[...n.current,u],t(n.current)},[]),o=_.useCallback(a=>{n.current=n.current.map(c=>c.id===a?{...c,open:!1}:c),t(n.current),setTimeout(()=>{n.current=n.current.filter(c=>c.id!==a),t(n.current)},150)},[]);return _.useEffect(()=>{window.openModal=r,window.closeModal=o,window.openCustomModal=i},[r,o,i]),v.jsx(v.Fragment,{children:e.map(a=>{if(a.type==="custom"&&(a!=null&&a.component)){const{open:u,onClose:d,component:h}=a;return h(u,d)}if(a.type==="dialog"){const{props:u}=a;return v.jsx(r2,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}if(a.type==="alert"){const{props:u}=a;return v.jsx(wx,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}const{props:c}=a;return v.jsx(g2,{...c,open:a.open,onClose:()=>o(a.id),children:typeof c.children=="function"?c.children(()=>o(a.id)):c.children},a.id)})})};function AN(e){var t;(t=window==null?void 0:window.openModal)==null||t.call(window,e)}function MN(e){var t;(t=window==null?void 0:window.openCustomModal)==null||t.call(window,e)}function ON(e){var t;(t=window==null?void 0:window.closeModal)==null||t.call(window,e)}function _N(e,t,n){const r=t[e];if(_.isValidElement(r)&&typeof r.type!="string")return _.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 a2(e="bottom-center"){var t;if(!eh.find(n=>n.id===e)){const n=document.createElement("div");switch(n.classList.add("fixed","z-[99999]","flex","flex-col","items-center","w-fit","min-w-[18rem]"),n.style.setProperty("z-index","99999"),e){case"top-left":n.classList.add("top-8","left-8");break;case"top-right":n.classList.add("top-8","right-8");break;case"bottom-left":n.classList.add("bottom-8","left-8");break;case"bottom-right":n.classList.add("bottom-8","right-8");break;case"top-center":n.classList.add("top-8","left-1/2","-translate-x-1/2");break;case"bottom-center":default:n.classList.add("bottom-8","left-1/2","-translate-x-1/2")}eh.push({id:e,element:n}),document.body.appendChild(n)}return(t=eh.find(n=>n.id===e))==null?void 0:t.element}function fl(e,t="success",{position:n="top-right",duration:r=3e3}={}){import("react-dom/client").then(({createRoot:i})=>{const o=a2(n);if(!o)return;const a=document.createElement("div"),c=i(a),u=()=>{c.unmount(),o.removeChild(a)};c.render(v.jsx(pf,{content:e,type:t,duration:r,onClose:u})),o.prepend(a),setTimeout(()=>{a.classList.add("mt-[0.5rem]")},10)})}const th=(e,t,n={})=>{import("react-dom/client").then(({createRoot:r})=>{const i=a2(n.position);if(!i)return;const o=document.createElement("div"),a=r(o),c=()=>{a.unmount(),i.removeChild(o)};a.render(v.jsx(nv,{promise:e,messages:t,options:n,onClose:c})),i.prepend(o),setTimeout(()=>{o.classList.add("mt-[0.5rem]")},10)})},l2=(e,t={})=>{let n=()=>{},r=()=>{};const i=new Promise((o,a)=>{n=o,r=a});return th(i,e,t),{resolve:n,reject:r}},IN={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={})=>l2(e,t)},c2=({containerProps:e={},imageProps:t={},src:n="",alt:r="",size:i=30,user:o=null})=>{const{className:a=" ",...c}=e,{className:u=" ",...d}=t,h=i+"px",m=i*.5+"px",p=i*.4+"px",[y,S]=_.useState(!1),b=()=>r?gf(r):o?gf(o!=null&&o.first_name||o!=null&&o.last_name?((o==null?void 0:o.first_name)||"")+" "+((o==null?void 0:o.last_name)||""):o==null?void 0:o.email):"#9CA1B6",T=A=>{try{return A?(new URL(A),!0):!1}catch(D){return console.log(D),!1}},w=()=>T(n)?n:o!=null&&o.image&&T(o.image)?o.image:o!=null&&o.image?Tv(o.image):"",E=()=>r?v.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:p},children:r}):o?v.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:p},children:o!=null&&o.first_name||o!=null&&o.last_name?((o==null?void 0:o.first_name)||" ")[0]+((o==null?void 0:o.last_name)||" ")[0]:((o==null?void 0:o.email)||" ")[0]}):v.jsx(_e,{style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},icon:S_,className:"w-full text-white"}),P=()=>{S(!0)},$=w();return v.jsxs("div",{className:"flex items-center justify-center rounded-full overflow-hidden h-full relative "+a,style:{maxWidth:h,maxHeight:h,minWidth:h,minHeight:h,backgroundColor:b()},...c,children:[$&&!y&&v.jsx("img",{src:$,alt:r,className:`
720
720
  object-cover w-full h-full text-center indent-[10000px] absolute
721
721
  z-10
722
722
  ${u}
723
723
  `,onError:P,...d}),v.jsx("div",{className:`
724
724
  flex items-center justify-center leading-none text-center absolute
725
- `,style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},children:E()})]})};function cw(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=cw(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=cw(e))&&(r&&(r+=" "),r+=t);return r}const uw={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"},fw={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"},dw={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"},hw={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"},IN="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",$N={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"},DN=(e="filled",t="blue",n="base")=>{const r=tr(IN,$N[n]),i={blue:uw[e],aqua:fw[e],red:dw[e],gray:hw[e]}[t];return tr(r,i)},RN="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",NN={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]"},LN={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},kN=(e="filled",t="blue",n="base",r="none")=>{const i=tr(RN,NN[n],LN[r]),o={blue:uw[e],aqua:fw[e],red:dw[e],gray:hw[e]}[t];return tr(i,o)},jN={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")=>jN[e],jo=({icon:e,rightIcon:t,color:n,variant:r="filled",size:i="base",children:o,className:a,...c})=>{const{defaultColorScheme:u}=Ue(),d=n||u;return v.jsxs("button",{type:"button",className:DN(r,d,i)+" "+a,...c,children:[e&&v.jsx(Ie,{icon:e,className:ko(i)}),o,t&&v.jsx(Ie,{icon:t,className:ko(i)})]})},mw=({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}`}),pw=({open:e,onClose:t,title:n,children:r,className:i="",showCloseButton:o=!0})=>{const a={hidden:{opacity:0},visible:{opacity:1}},c={hidden:{opacity:0,scale:.9},visible:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.9,transition:{duration:.15}}};return v.jsx(Kn,{children:e&&v.jsx(v.Fragment,{children:v.jsx(Ze.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:a,onClick:t,children:v.jsx(Ze.div,{className:`w-full max-w-lg mx-16 z-50 ${i}`,variants:c,initial:"hidden",animate:"visible",exit:"exit",onClick:u=>u.stopPropagation(),children:v.jsxs(xs,{className:`flex flex-col ${n&&"gap-16 md:gap-24"} p-0!`,children:[v.jsxs("div",{className:"flex flex-col gap-16 md:gap-24 md:p-32 pb-0!",children:[v.jsxs("div",{className:"flex justify-between items-center px-16 pt-16 md:px-0 md:pt-0",children:[n&&v.jsx("h2",{className:"text-black font-700 text-2xl",children:n}),o&&v.jsx(Ie,{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(mw,{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})]})})})})})},FN=({active:e,color:t="blue",variant:n="rounded",className:r,size:i=16,...o})=>{const a={blue:"border-blue-500 bg-blue-500",aqua:"border-aqua-500 bg-aqua-500",red:"border-red-500 bg-red-500",gray:"border-gray-500 bg-gray-500"}[t],c={rounded:"rounded-full",square:"rounded-md"}[n],u=d=>({width:`${d}px`,height:`${d}px`,minWidth:`${d}px`,minHeight:`${d}px`});return v.jsx("div",{className:`relative transition-colors ease-in-out duration-150 flex items-center justify-center ${c} border-[1.5px] bg-white ${e?a:"border-gray-400"} ${r}`,style:u(i),...o,children:v.jsx("div",{className:`absolute transition-colors ease-in-out duration-150 ${c} size-12 ${e?a:""}`,style:u(i*.7)})})};var nh,gw;function VN(){if(gw)return nh;gw=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,E){return this._size>=this._maxSize&&this.clear(),w in this._values||this._size++,this._values[w]=E};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,a=512,c=new e(a),u=new e(a),d=new e(a);nh={Cache:e,split:m,normalizePath:h,setter:function(w){var E=h(w);return u.get(w)||u.set(w,function($,A){for(var D=0,k=E.length,F=$;D<k-1;){var z=E[D];if(z==="__proto__"||z==="constructor"||z==="prototype")return $;F=F[E[D++]]}F[E[D]]=A})},getter:function(w,E){var P=h(w);return d.get(w)||d.set(w,function(A){for(var D=0,k=P.length;D<k;)if(A!=null||!E)A=A[P[D++]];else return;return A})},join:function(w){return w.reduce(function(E,P){return E+(y(P)||n.test(P)?"["+P+"]":(E?".":"")+P)},"")},forEach:function(w,E,P){p(Array.isArray(w)?w:m(w),E,P)}};function h(w){return c.get(w)||c.set(w,m(w).map(function(E){return E.replace(o,"$2")}))}function m(w){return w.match(t)||[""]}function p(w,E,P){var $=w.length,A,D,k,F;for(D=0;D<$;D++)A=w[D],A&&(T(A)&&(A='"'+A+'"'),F=y(A),k=!F&&/^\d+$/.test(A),E.call(P,A,F,k,D,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 xi=VN(),rh,yw;function BN(){if(yw)return rh;yw=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=BN(),dl={exports:{}},vw;function WN(){if(vw)return dl.exports;vw=1,dl.exports=function(i){return e(t(i),i)},dl.exports.array=e;function e(i,o){var a=i.length,c=new Array(a),u={},d=a,h=n(o),m=r(i);for(o.forEach(function(y){if(!m.has(y[0])||!m.has(y[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)u[d]||p(i[d],d,new Set);return c;function p(y,S,b){if(b.has(y)){var 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 E=w[--S];p(E,m.get(E),b)}while(S);b.delete(y)}c[--a]=y}}}function t(i){for(var o=new Set,a=0,c=i.length;a<c;a++){var u=i[a];o.add(u[0]),o.add(u[1])}return Array.from(o)}function n(i){for(var o=new Map,a=0,c=i.length;a<c;a++){var u=i[a];o.has(u[0])||o.set(u[0],new Set),o.has(u[1])||o.set(u[1],new Set),o.get(u[0]).add(u[1])}return o}function r(i){for(var o=new Map,a=0,c=i.length;a<c;a++)o.set(i[a],a);return o}return dl.exports}var UN=WN();const zN=_m(UN),GN=Object.prototype.toString,YN=Error.prototype.toString,HN=RegExp.prototype.toString,qN=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",KN=/^Symbol\((.*)\)(.*)$/;function XN(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function bw(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return XN(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return qN.call(e).replace(KN,"Symbol($1)");const r=GN.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+YN.call(e)+"]":r==="RegExp"?HN.call(e):null}function Vr(e,t){let n=bw(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=bw(this[r],t);return o!==null?o:i},2)}function xw(e){return e==null?[]:[].concat(e)}let ww,Sw,Tw,ZN=/\$\{\s*(\w+)\s*\}/g;ww=Symbol.toStringTag;class Ew{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[ww]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],xw(t).forEach(o=>{if(jt.isError(o)){this.errors.push(...o.errors);const a=o.inner.length?o.inner:[o];this.inner.push(...a)}else this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}Sw=Symbol.hasInstance,Tw=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(ZN,(i,o)=>Vr(n[o])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i,o){const a=new Ew(t,n,r,i);if(o)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[Tw]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,jt)}static[Sw](t){return Ew[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 \`${Vr(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Vr(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${Vr(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"},JN={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:JN,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: \`${Vr(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: \`${Vr(n,!0)}\``}return jt.formatError(Fn.notType,e)}}});const oh=e=>e&&e.__isYupSchema__;class ml{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:o}=n,a=typeof r=="function"?r:(...c)=>c.every(u=>u===r);return new ml(t,(c,u)=>{var d;let h=a(...c)?i:o;return(d=h==null?void 0:h(u))!=null?d:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(o=>o.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!oh(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const pl={context:"$",value:"."};class wi{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&&xi.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}}wi.prototype.__isYupRef=!0;const Si=e=>e==null;function ws(e){function t({value:n,path:r="",options:i,originalValue:o,schema:a},c,u){const{name:d,test:h,params:m,message:p,skipAbsent:y}=e;let{parent:S,context:b,abortEarly:T=a.spec.abortEarly,disableStackTrace:w=a.spec.disableStackTrace}=i;function E(ne){return wi.isRef(ne)?ne.getValue(n,S,b):ne}function P(ne={}){const le=Object.assign({value:n,originalValue:o,label:a.spec.label,path:ne.path||r,spec:a.spec,disableStackTrace:ne.disableStackTrace||w},m,ne.params);for(const de of Object.keys(le))le[de]=E(le[de]);const ye=new jt(jt.formatError(ne.message||p,le),n,le.path,ne.type||d,le.disableStackTrace);return ye.params=le,ye}const $=T?c:u;let A={path:r,parent:S,type:d,from:i.from,createError:P,resolve:E,options:i,originalValue:o,schema:a};const D=ne=>{jt.isError(ne)?$(ne):ne?u(null):$(P())},k=ne=>{jt.isError(ne)?$(ne):c(ne)};if(y&&Si(n))return D(!0);let z;try{var J;if(z=h.call(A,n,A),typeof((J=z)==null?void 0:J.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${A.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(z).then(D,k)}}catch(ne){k(ne);return}D(z)}return t.OPTIONS=e,t}function eL(e,t,n,r=n){let i,o,a;return t?(xi.forEach(t,(c,u,d)=>{let h=u?c.slice(1,c.length-1):c;e=e.resolve({context:r,parent:i,value:n});let m=e.type==="tuple",p=d?parseInt(h,10):0;if(e.innerType||m){if(m&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[p],e=m?e.spec.types[p]:e.innerType}if(!d){if(!e.fields||!e.fields[h])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);i=n,n=n&&n[h],e=e.fields[h]}o=h,a=u?"["+c+"]":"."+c}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}class gl extends Set{describe(){const t=[];for(const n of this.values())t.push(wi.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 Ss(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]=Ss(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,Ss(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Ss(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=Ss(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=Ss(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(o=>{t.tests.forEach(a=>{o.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,o)=>o.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i,o;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(o=t.disableStackTrace)!=null?o:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",o=r._cast(t,n);if(n.assert!==!1&&!r.isType(o)){if(i&&Si(o))return o;let a=Vr(t),c=Vr(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
725
+ `,style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},children:E()})]})};function u2(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=u2(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=u2(e))&&(r&&(r+=" "),r+=t);return r}const f2={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"},d2={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"},h2={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"},m2={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"},$N="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",DN={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"},RN=(e="filled",t="blue",n="base")=>{const r=tr($N,DN[n]),i={blue:f2[e],aqua:d2[e],red:h2[e],gray:m2[e]}[t];return tr(r,i)},NN="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",LN={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]"},kN={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},jN=(e="filled",t="blue",n="base",r="none")=>{const i=tr(NN,LN[n],kN[r]),o={blue:f2[e],aqua:d2[e],red:h2[e],gray:m2[e]}[t];return tr(i,o)},FN={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]"},jo=(e="base")=>FN[e],ws=({icon:e,rightIcon:t,color:n,variant:r="filled",size:i="base",children:o,className:a,...c})=>{const{defaultColorScheme:u}=Ue(),d=n||u;return v.jsxs("button",{type:"button",className:RN(r,d,i)+" "+a,...c,children:[e&&v.jsx(_e,{icon:e,className:jo(i)}),o,t&&v.jsx(_e,{icon:t,className:jo(i)})]})},p2=({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}`}),g2=({open:e,onClose:t,title:n,children:r,className:i="",showCloseButton:o=!0})=>{const a={hidden:{opacity:0},visible:{opacity:1}},c={hidden:{opacity:0,scale:.9},visible:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.9,transition:{duration:.15}}};return v.jsx(Kn,{children:e&&v.jsx(v.Fragment,{children:v.jsx(Ze.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:a,onClick:t,children:v.jsx(Ze.div,{className:`w-full max-w-lg mx-16 z-50 ${i}`,variants:c,initial:"hidden",animate:"visible",exit:"exit",onClick:u=>u.stopPropagation(),children:v.jsxs(xs,{className:`flex flex-col ${n&&"gap-16 md:gap-24"} p-0!`,children:[v.jsxs("div",{className:"flex flex-col gap-16 md:gap-24 md:p-32 pb-0!",children:[v.jsxs("div",{className:"flex justify-between items-center px-16 pt-16 md:px-0 md:pt-0",children:[n&&v.jsx("h2",{className:"text-black font-700 text-2xl",children:n}),o&&v.jsx(_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(p2,{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})]})})})})})},VN=({active:e,color:t="blue",variant:n="rounded",className:r,size:i=16,...o})=>{const a={blue:"border-blue-500 bg-blue-500",aqua:"border-aqua-500 bg-aqua-500",red:"border-red-500 bg-red-500",gray:"border-gray-500 bg-gray-500"}[t],c={rounded:"rounded-full",square:"rounded-md"}[n],u=d=>({width:`${d}px`,height:`${d}px`,minWidth:`${d}px`,minHeight:`${d}px`});return v.jsx("div",{className:`relative transition-colors ease-in-out duration-150 flex items-center justify-center ${c} border-[1.5px] bg-white ${e?a:"border-gray-400"} ${r}`,style:u(i),...o,children:v.jsx("div",{className:`absolute transition-colors ease-in-out duration-150 ${c} size-12 ${e?a:""}`,style:u(i*.7)})})};var nh,y2;function BN(){if(y2)return nh;y2=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,E){return this._size>=this._maxSize&&this.clear(),w in this._values||this._size++,this._values[w]=E};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,a=512,c=new e(a),u=new e(a),d=new e(a);nh={Cache:e,split:m,normalizePath:h,setter:function(w){var E=h(w);return u.get(w)||u.set(w,function($,A){for(var D=0,V=E.length,j=$;D<V-1;){var U=E[D];if(U==="__proto__"||U==="constructor"||U==="prototype")return $;j=j[E[D++]]}j[E[D]]=A})},getter:function(w,E){var P=h(w);return d.get(w)||d.set(w,function(A){for(var D=0,V=P.length;D<V;)if(A!=null||!E)A=A[P[D++]];else return;return A})},join:function(w){return w.reduce(function(E,P){return E+(y(P)||n.test(P)?"["+P+"]":(E?".":"")+P)},"")},forEach:function(w,E,P){p(Array.isArray(w)?w:m(w),E,P)}};function h(w){return c.get(w)||c.set(w,m(w).map(function(E){return E.replace(o,"$2")}))}function m(w){return w.match(t)||[""]}function p(w,E,P){var $=w.length,A,D,V,j;for(D=0;D<$;D++)A=w[D],A&&(T(A)&&(A='"'+A+'"'),j=y(A),V=!j&&/^\d+$/.test(A),E.call(P,A,j,V,D,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 xi=BN(),rh,v2;function WN(){if(v2)return rh;v2=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=WN(),dl={exports:{}},b2;function UN(){if(b2)return dl.exports;b2=1,dl.exports=function(i){return e(t(i),i)},dl.exports.array=e;function e(i,o){var a=i.length,c=new Array(a),u={},d=a,h=n(o),m=r(i);for(o.forEach(function(y){if(!m.has(y[0])||!m.has(y[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)u[d]||p(i[d],d,new Set);return c;function p(y,S,b){if(b.has(y)){var 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 E=w[--S];p(E,m.get(E),b)}while(S);b.delete(y)}c[--a]=y}}}function t(i){for(var o=new Set,a=0,c=i.length;a<c;a++){var u=i[a];o.add(u[0]),o.add(u[1])}return Array.from(o)}function n(i){for(var o=new Map,a=0,c=i.length;a<c;a++){var u=i[a];o.has(u[0])||o.set(u[0],new Set),o.has(u[1])||o.set(u[1],new Set),o.get(u[0]).add(u[1])}return o}function r(i){for(var o=new Map,a=0,c=i.length;a<c;a++)o.set(i[a],a);return o}return dl.exports}var zN=UN();const GN=Im(zN),YN=Object.prototype.toString,HN=Error.prototype.toString,qN=RegExp.prototype.toString,KN=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",XN=/^Symbol\((.*)\)(.*)$/;function ZN(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function x2(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return ZN(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return KN.call(e).replace(XN,"Symbol($1)");const r=YN.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+HN.call(e)+"]":r==="RegExp"?qN.call(e):null}function Vr(e,t){let n=x2(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=x2(this[r],t);return o!==null?o:i},2)}function w2(e){return e==null?[]:[].concat(e)}let S2,T2,E2,JN=/\$\{\s*(\w+)\s*\}/g;S2=Symbol.toStringTag;class C2{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[S2]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],w2(t).forEach(o=>{if(jt.isError(o)){this.errors.push(...o.errors);const a=o.inner.length?o.inner:[o];this.inner.push(...a)}else this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}T2=Symbol.hasInstance,E2=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(JN,(i,o)=>Vr(n[o])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i,o){const a=new C2(t,n,r,i);if(o)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[E2]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,jt)}static[T2](t){return C2[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 \`${Vr(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Vr(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${Vr(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}"},e3={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:e3,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: \`${Vr(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: \`${Vr(n,!0)}\``}return jt.formatError(Fn.notType,e)}}});const oh=e=>e&&e.__isYupSchema__;class ml{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:o}=n,a=typeof r=="function"?r:(...c)=>c.every(u=>u===r);return new ml(t,(c,u)=>{var d;let h=a(...c)?i:o;return(d=h==null?void 0:h(u))!=null?d:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(o=>o.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!oh(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const pl={context:"$",value:"."};class wi{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&&xi.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}}wi.prototype.__isYupRef=!0;const Si=e=>e==null;function Ss(e){function t({value:n,path:r="",options:i,originalValue:o,schema:a},c,u){const{name:d,test:h,params:m,message:p,skipAbsent:y}=e;let{parent:S,context:b,abortEarly:T=a.spec.abortEarly,disableStackTrace:w=a.spec.disableStackTrace}=i;function E(ne){return wi.isRef(ne)?ne.getValue(n,S,b):ne}function P(ne={}){const oe=Object.assign({value:n,originalValue:o,label:a.spec.label,path:ne.path||r,spec:a.spec,disableStackTrace:ne.disableStackTrace||w},m,ne.params);for(const ue of Object.keys(oe))oe[ue]=E(oe[ue]);const ge=new jt(jt.formatError(ne.message||p,oe),n,oe.path,ne.type||d,oe.disableStackTrace);return ge.params=oe,ge}const $=T?c:u;let A={path:r,parent:S,type:d,from:i.from,createError:P,resolve:E,options:i,originalValue:o,schema:a};const D=ne=>{jt.isError(ne)?$(ne):ne?u(null):$(P())},V=ne=>{jt.isError(ne)?$(ne):c(ne)};if(y&&Si(n))return D(!0);let U;try{var X;if(U=h.call(A,n,A),typeof((X=U)==null?void 0:X.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${A.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(U).then(D,V)}}catch(ne){V(ne);return}D(U)}return t.OPTIONS=e,t}function t3(e,t,n,r=n){let i,o,a;return t?(xi.forEach(t,(c,u,d)=>{let h=u?c.slice(1,c.length-1):c;e=e.resolve({context:r,parent:i,value:n});let m=e.type==="tuple",p=d?parseInt(h,10):0;if(e.innerType||m){if(m&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[p],e=m?e.spec.types[p]:e.innerType}if(!d){if(!e.fields||!e.fields[h])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);i=n,n=n&&n[h],e=e.fields[h]}o=h,a=u?"["+c+"]":"."+c}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}class gl extends Set{describe(){const t=[];for(const n of this.values())t.push(wi.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 Ts(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]=Ts(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,Ts(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Ts(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=Ts(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=Ts(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(o=>{t.tests.forEach(a=>{o.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,o)=>o.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i,o;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(o=t.disableStackTrace)!=null?o:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",o=r._cast(t,n);if(n.assert!==!1&&!r.isType(o)){if(i&&Si(o))return o;let a=Vr(t),c=Vr(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
726
726
 
727
727
  attempted value: ${a}
728
- `+(c!==a?`result of cast: ${c}`:""))}return o}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,o)=>o.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,i){let{path:o,originalValue:a=t,strict:c=this.spec.strict}=n,u=t;c||(u=this._cast(u,Object.assign({assert:!1},n)));let d=[];for(let h of Object.values(this.internalTests))h&&d.push(h);this.runTests({path:o,value:u,originalValue:a,options:n,tests:d},r,h=>{if(h.length)return i(h,u);this.runTests({path:o,value:u,originalValue:a,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:o,value:a,originalValue:c,path:u,options:d}=t,h=b=>{i||(i=!0,n(b,a))},m=b=>{i||(i=!0,r(b,a))},p=o.length,y=[];if(!p)return m([]);let S={value:a,originalValue:c,path:u,options:d,schema:this};for(let b=0;b<o.length;b++){const T=o[b];T(S,h,function(E){E&&(Array.isArray(E)?y.push(...E):y.push(E)),--p<=0&&m(y)})}}asNestedTest({key:t,index:n,parent:r,parentPath:i,originalParent:o,options:a}){const c=t??n;if(c==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof c=="number";let d=r[c];const h=Object.assign({},a,{strict:!0,parent:r,value:d,originalValue:o[c],key:void 0,[u?"index":"key"]:c,path:u||c.includes(".")?`${i||""}[${u?c:`"${c}"`}]`:(i?`${i}.`:"")+t});return(m,p,y)=>this.resolve(h)._validate(d,h,p,y)}validate(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),o=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return new Promise((a,c)=>i._validate(t,n,(u,d)=>{jt.isError(u)&&(u.value=d),c(u)},(u,d)=>{u.length?c(new jt(u,d,void 0,void 0,o)):a(d)}))}validateSync(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),o,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return i._validate(t,Object.assign({},n,{sync:!0}),(c,u)=>{throw jt.isError(c)&&(c.value=u),c},(c,u)=>{if(c.length)throw new jt(c,t,void 0,void 0,a);o=u}),o}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(jt.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(jt.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Ss(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=ws({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=ws({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=ws(n),o=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(o||a.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=xw(t).map(o=>new wi(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new ml(i,n):ml.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=ws({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=ws({message:n,name:"oneOf",skipAbsent:!0,test(i){let o=this.schema._whitelist,a=o.resolveAll(this.resolve);return a.includes(i)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:a}})}}),r}notOneOf(t,n=Fn.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=ws({message:n,name:"notOneOf",test(i){let o=this.schema._blacklist,a=o.resolveAll(this.resolve);return a.includes(i)?this.createError({params:{values:Array.from(o).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:o,nullable:a}=n.spec;return{meta:i,label:r,optional:o,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,d,h)=>h.findIndex(m=>m.name===u.name)===d)}}}Vn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Vn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:a}=eL(this,t,n,r.context);return a[e](i&&i[o],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Vn.prototype[e]=Vn.prototype.oneOf;for(const e of["not","nope"])Vn.prototype[e]=Vn.prototype.notOneOf;const tL=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function nL(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=tL.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 rL=/^[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])?)*$/,iL=/^((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,sL=/^(?:[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,oL="^\\d{4}-\\d{2}-\\d{2}",aL="\\d{2}:\\d{2}:\\d{2}",lL="(([+-]\\d{2}(:?\\d{2})?)|Z)",cL=new RegExp(`${oL}T${aL}(\\.\\d+)?${lL}$`),uL=e=>Si(e)||e===e.trim(),fL={}.toString();function Br(){return new Cw}class Cw 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===fL?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Fn.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=Ft.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=Ft.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=Ft.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,o;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:o}=n:i=n),this.test({name:o||"matches",message:i||Ft.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=Ft.email){return this.matches(rL,{name:"email",message:t,excludeEmptyString:!0})}url(t=Ft.url){return this.matches(iL,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Ft.uuid){return this.matches(sL,{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(cL,{name:"datetime",message:n||Ft.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Ft.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:o=>{if(!o||r)return!0;const a=ah(o);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||Ft.datetime_precision,params:{precision:i},skipAbsent:!0,test:o=>{if(!o||i==null)return!0;const a=ah(o);return a?a.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Ft.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:uL})}lowercase(t=Ft.lowercase){return this.transform(n=>Si(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Si(n)||n===n.toLowerCase()})}uppercase(t=Ft.uppercase){return this.transform(n=>Si(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Si(n)||n===n.toUpperCase()})}}Br.prototype=Cw.prototype;let dL=new Date(""),hL=e=>Object.prototype.toString.call(e)==="[object Date]";class lh extends Vn{constructor(){super({type:"date",check(t){return hL(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=nL(t),isNaN(t)?lh.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(wi.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=dL;function mL(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([a,c])=>`${a}-${c}`));function o(a,c){let u=xi.split(a)[0];r.add(u),i.has(`${c}-${u}`)||n.push([c,u])}for(const a of Object.keys(e)){let c=e[a];r.add(a),wi.isRef(c)&&c.isSibling?o(c.path,a):oh(c)&&"deps"in c&&c.deps.forEach(u=>o(u,a))}return zN.array(Array.from(r),n).reverse()}function Pw(e,t){let n=1/0;return e.some((r,i)=>{var o;if((o=t.path)!=null&&o.includes(r))return n=i,!0}),n}function Aw(e){return(t,n)=>Pw(e,t)-Pw(e,n)}const pL=(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 gL=(e,t)=>{const n=[...xi.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=xi.getter(xi.join(n),!0)(e);return!!(i&&r in i)};let Mw=e=>Object.prototype.toString.call(e)==="[object Object]";function Ow(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const yL=Aw([]);function ch(e){return new _w(e)}class _w extends Vn{constructor(t){super({type:"object",check(n){return Mw(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=yL,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault(n);if(!this._typeCheck(i))return i;let o=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,c=[].concat(this._nodes,Object.keys(i).filter(m=>!this._nodes.includes(m))),u={},d=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),h=!1;for(const m of c){let p=o[m],y=m in i;if(p){let S,b=i[m];d.path=(n.path?`${n.path}.`:"")+m,p=p.resolve({value:b,context:n.context,parent:u});let 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&&!a&&(u[m]=i[m]);(y!==m in u||u[m]!==i[m])&&(h=!0)}return h?u:i}_validate(t,n={},r,i){let{from:o=[],originalValue:a=t,recursive:c=this.spec.recursive}=n;n.from=[{schema:this,value:a},...o],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(u,d)=>{if(!c||!Mw(d)){i(u,d);return}a=a||d;let h=[];for(let m of this._nodes){let p=this.fields[m];!p||wi.isRef(p)||h.push(p.asNestedTest({options:n,key:m,parent:d,parentPath:n.path,originalParent:a}))}this.runTests({tests:h,value:d,originalValue:a,options:n},r,m=>{i(m.sort(this._sortErrors).concat(u),d)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,o]of Object.entries(this.fields)){const a=r[i];r[i]=a===void 0?o:a}return n.withMutation(i=>i.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var i;const o=this.fields[r];let a=t;(i=a)!=null&&i.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=o&&"getDefault"in o?o.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=mL(t,n),r._sortErrors=Aw(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=xi.getter(t,!0);return this.transform(o=>{if(!o)return o;let a=o;return gL(o,t)&&(a=Object.assign({},o),r||delete a[t],a[n]=i(o)),a})}json(){return this.transform(pL)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||hl.exact,test(n){if(n==null)return!0;const r=Ow(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=hl.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const o=Ow(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=hl.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[t(i)]=n[i];return r})}camelCase(){return this.transformKeys(ih.camelCase)}snakeCase(){return this.transformKeys(ih.snakeCase)}constantCase(){return this.transformKeys(t=>ih.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[o,a]of Object.entries(n.fields)){var i;let c=t;(i=c)!=null&&i.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[o]})),r.fields[o]=a.describe(c)}return r}}ch.prototype=_w.prototype,ch().shape({labelES:Br().required(),label:Br().required(),code:Br().required(),codeISO2:Br().required(),phone:Br().required()});const Iw=[{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"}],vL=({countries:e=Iw,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:a="",translateKey:c})=>{var Ce,Ve,ie;const{t:u}=Ue(),{field:d,fieldState:h}=hr.useController({name:t,control:n,rules:{validate:{}},defaultValue:null}),[m,p]=_.useState(!1),[y,S]=_.useState(""),[b,T]=_.useState(d.value||null),w=_.useRef(null),E=_.useRef(null),P=_.useRef(null),{x:$,y:A,strategy:D,refs:k,context:F,placement:z,middlewareData:J}=jr({open:m,onOpenChange:p,middleware:[Dr(8),Nr(),Rr({padding:8}),ys({apply({availableHeight:pe,elements:De}){Object.assign(De.floating.style,{maxHeight:`${Math.min(pe-10,300)}px`})},padding:8}),vs({element:E})],placement:"bottom-start",whileElementsMounted:$r}),ne=vi(F),le=kr(F),{getReferenceProps:ye,getFloatingProps:de}=Fr([ne,le]),{isMounted:ue,styles:he}=bi(F,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),B=(Array.isArray(e)?e:[]).filter(pe=>{if(!y.trim())return!0;const De=o==="es"&&pe.labelES?pe.labelES.toLowerCase():pe.label.toLowerCase(),ft=pe.code?pe.code.toLowerCase():"";return De.includes(y.toLowerCase())||ft.includes(y.toLowerCase())}),G=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)};_.useEffect(()=>{T(d.value)},[d.value]),_.useEffect(()=>{const pe=De=>{P.current&&!P.current.contains(De.target)&&d.onBlur()};return document.addEventListener("mousedown",pe),()=>{document.removeEventListener("mousedown",pe)}},[d]);const K=pe=>{var De;return pe?pe.codeISO2?pe.codeISO2.toLowerCase():((De=pe.code)==null?void 0:De.toLowerCase())||"":""},oe=(Ce=J.arrow)==null?void 0:Ce.x,Z=(Ve=J.arrow)==null?void 0:Ve.y,q={top:"bottom",right:"left",bottom:"top",left:"right"}[z.split("-")[0]],Q=ye({onClick:O,onBlur:N}),ae=u(r),re=u(i),fe=(ie=h.error)==null?void 0:ie.message;return v.jsxs("div",{ref:P,className:`w-full relative flex flex-col gap-8 ${a}`,children:[v.jsx("label",{className:`text-gray-600 font-600 group ${fe&&"!text-red-500"} text-label`,children:ae}),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 ${fe&&"border-red-500 hover:border-red-600"} ${ue?"border-blue-400":"border-blue-100"}`,...Q,tabIndex:0,children:[b!=null&&b.code?v.jsxs("div",{className:"flex items-center w-full gap-10",children:[K(b)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${K(b)}.png`,srcSet:`https://flagcdn.com/w40/${K(b)}.png 2x`,alt:b.label,onError:pe=>{pe.currentTarget.style.display="none"}}),v.jsxs("span",{className:"flex-grow font-600 text-body-m",children:[o==="es"&&b.labelES?b.labelES:b.label,b.code?` (${b.code})`:u("select_country")]})]}):v.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:re}),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"})})]}),fe&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(fe,{x:u(c||"")||u(t)})}),ue&&v.jsxs("div",{ref:k.setFloating,style:{position:D,top:A??0,left:$??0,...he},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...de(),children:[v.jsx("div",{ref:E,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:oe!=null?`${oe}px`:"",top:Z!=null?`${Z}px`:"",right:"",bottom:"",[q]:"-2px",borderRight:q==="left"?"1px solid":"none",borderBottom:q==="top"?"1px solid":"none",borderLeft:q==="right"?"1px solid":"none",borderTop:q==="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:B.length>0?v.jsx("ul",{className:"flex flex-col",children:B.map((pe,De)=>{var Ti;const ft=pe.codeISO2?pe.codeISO2.toLowerCase():((Ti=pe.code)==null?void 0:Ti.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(),G(pe)},children:[ft&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${ft}.png`,srcSet:`https://flagcdn.com/w40/${ft}.png 2x`,alt:pe.label,onError:dt=>{dt.currentTarget.style.display="none"}}),v.jsxs("span",{children:[o==="es"&&pe.labelES?pe.labelES:pe.label,pe.code?` (${pe.code})`:"Country not found"]})]},`${pe.code}-${De}`)})}):v.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},bL=({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})]})},xL=({countries:e,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:a=""})=>{const{t:c}=Ue();return v.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:u,value:d},fieldState:{error:h}})=>v.jsx(wL,{countries:e,value:d,onChange:u,label:c(r),placeholder:c(i),language:o,error:h==null?void 0:h.message,className:a})})},wL=({countries:e,value:t,onChange:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",error:a,className:c=""})=>{var oe,Z;const{t:u}=Ue(),[d,h]=_.useState(!1),[m,p]=_.useState(""),[y,S]=_.useState(t||null),b=_.useRef(null),T=_.useRef(null),{x:w,y:E,strategy:P,refs:$,context:A,placement:D,middlewareData:k}=jr({open:d,onOpenChange:h,middleware:[Dr(8),Nr(),Rr({padding:8}),ys({apply({availableHeight:q,elements:Q}){Object.assign(Q.floating.style,{maxHeight:`${Math.min(q-10,300)}px`})},padding:8}),vs({element:T})],placement:"bottom-start",whileElementsMounted:$r}),F=vi(A),z=kr(A),{getReferenceProps:J,getFloatingProps:ne}=Fr([F,z]),{isMounted:le,styles:ye}=bi(A,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ue=(Array.isArray(e)?e:[]).filter(q=>{if(!m.trim())return!0;const Q=o==="es"&&q.labelES?q.labelES.toLowerCase():q.label.toLowerCase(),ae=q.code?q.code.toLowerCase():"";return Q.includes(m.toLowerCase())||ae.includes(m.toLowerCase())}),he=q=>{S(q),h(!1),p(""),n(q)},V=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var q;(q=b.current)==null||q.focus()},100)};_.useEffect(()=>{S(t)},[t]);const B=q=>{var Q;return q?q.codeISO2?q.codeISO2.toLowerCase():((Q=q.code)==null?void 0:Q.toLowerCase())||"":""},G=(oe=k.arrow)==null?void 0:oe.x,O=(Z=k.arrow)==null?void 0:Z.y,N={top:"bottom",right:"left",bottom:"top",left:"right"}[D.split("-")[0]],K=J({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 ${a&&"!text-red-500"} text-label`,children:r}),v.jsxs("div",{ref:$.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${a&&"border-red-500 hover:border-red-600"} ${le?"border-blue-400":"border-blue-100"}`,...K,children:[y!=null&&y.code?v.jsxs("div",{className:"flex items-center w-full",children:[B(y)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${B(y)}.png`,srcSet:`https://flagcdn.com/w40/${B(y)}.png 2x`,alt:y.label,onError:q=>{q.currentTarget.style.display="none"}}),v.jsxs("span",{className:"flex-grow",children:[o==="es"&&y.labelES?y.labelES:y.label,y.code?` (${y.code})`:u("select_country")]})]}):v.jsx("span",{className:"text-gray-500",children:i}),v.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),a&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:a}),le&&v.jsxs("div",{ref:$.setFloating,style:{position:P,top:E??0,left:w??0,...ye},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ne(),children:[v.jsx("div",{ref:T,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:G!=null?`${G}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:q=>p(q.target.value),onClick:q=>q.stopPropagation(),autoFocus:!0})}),v.jsx("div",{children:ue.length>0?v.jsx("ul",{className:"flex flex-col",children:ue.map((q,Q)=>{var re;const ae=q.codeISO2?q.codeISO2.toLowerCase():((re=q.code)==null?void 0:re.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:fe=>{fe.stopPropagation(),he(q)},children:[ae&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${ae}.png`,srcSet:`https://flagcdn.com/w40/${ae}.png 2x`,alt:q.label,onError:fe=>{fe.currentTarget.style.display="none"}}),v.jsxs("span",{children:[o==="es"&&q.labelES?q.labelES:q.label,q.code?` (${q.code})`:"Country not found"]})]},`${q.code}-${Q}`)})}):v.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No countries found"})})]})]})},uh=({variant:e="filled",color:t,size:n="base",shadow:r="none",icon:i,iconProps:o={},children:a,className:c,...u})=>{const{defaultColorScheme:d}=Ue(),h=t||d;return v.jsx("button",{...u,className:`${kN(e,h,n,r)} ${c}`,children:i?v.jsx(Ie,{...o,className:ko(n),icon:i}):a})};function SL(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 TL=({src:e,alt:t,isEditable:n=!1,onChange:r,className:i="",name:o,control:a,user:c})=>{const[u,d]=_.useState(e||null),[h,m]=_.useState(!!e),p=_.useRef(null),y=hr.useController({name:o,control:a}),S=!!a;_.useEffect(()=>{if(S){const E=y==null?void 0:y.field.value;if(SL(E)){const P=URL.createObjectURL(E);return d(P),m(!0),()=>URL.revokeObjectURL(P)}else typeof E=="string"&&E&&E!==e?(d(E),m(!0)):e?(d(e),m(!0)):(d(null),m(!1))}},[y==null?void 0:y.field.value,e]);const b=()=>{var E;n&&((E=p.current)==null||E.click())},T=E=>{var $;const P=($=E.target.files)==null?void 0:$[0];if(P){const A=URL.createObjectURL(P);d(A),m(!0),S&&(y==null||y.field.onChange(P)),r&&r(P)}},w=E=>{E.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(lw,{size:60,user:c}),n&&v.jsxs(v.Fragment,{children:[v.jsx("input",{type:"file",ref:E=>{p.current=E,y&&y.field.ref(E)},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(Ie,{icon:U6,className:"text-blue-500"})})]})]})]})},EL=ch({name:Br(),base64:Br()}),CL=({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})]}),PL=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"}},$w=e=>{switch(e){case"warning":return"text-yellow-500";case"error":return"text-red-500";default:return"text-blue-500"}},AL=({description:e,title:t,className:n,icon:r,type:i="informative",iconClassName:o=""})=>v.jsxs("div",{className:`flex items-center gap-12 p-12 w-full ${PL(i)} rounded-lg ${n}`,children:[r?v.jsx(Ie,{icon:r,className:`min-h-20 h-20 ${o} ${$w(i)}`}):v.jsx(Ie,{icon:rN,className:`min-h-20 h-20 ${o} ${$w(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})]})]}),ML=({size:e=16,strokeWidth:t=2,color:n="#1DA696",...r})=>{const i=(e-t)/2,o=2*Math.PI*i,{className:a="",...c}=r;return v.jsx("div",{...c,className:`relative flex items-center justify-center ${a}`,children:v.jsx("svg",{height:e,width:e,className:"animate-spin",children:v.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:o+" "+o,strokeDashoffset:o/4,r:i,cx:e/2,cy:e/2})})})},OL=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a})=>{const{field:{value:c="",onChange:u,ref:d,onBlur:h},fieldState:{error:m}}=hr.useController({name:n,control:t}),[p,y]=_.useState(!1),{t:S}=Ue();return v.jsxs("label",{className:`flex flex-col group gap-8 select-none ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${m&&"!text-red-500"} text-label ${o&&"text-gray-300"}`,children:e}),v.jsxs("label",{htmlFor:n,className:`
728
+ `+(c!==a?`result of cast: ${c}`:""))}return o}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,o)=>o.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,i){let{path:o,originalValue:a=t,strict:c=this.spec.strict}=n,u=t;c||(u=this._cast(u,Object.assign({assert:!1},n)));let d=[];for(let h of Object.values(this.internalTests))h&&d.push(h);this.runTests({path:o,value:u,originalValue:a,options:n,tests:d},r,h=>{if(h.length)return i(h,u);this.runTests({path:o,value:u,originalValue:a,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:o,value:a,originalValue:c,path:u,options:d}=t,h=b=>{i||(i=!0,n(b,a))},m=b=>{i||(i=!0,r(b,a))},p=o.length,y=[];if(!p)return m([]);let S={value:a,originalValue:c,path:u,options:d,schema:this};for(let b=0;b<o.length;b++){const T=o[b];T(S,h,function(E){E&&(Array.isArray(E)?y.push(...E):y.push(E)),--p<=0&&m(y)})}}asNestedTest({key:t,index:n,parent:r,parentPath:i,originalParent:o,options:a}){const c=t??n;if(c==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof c=="number";let d=r[c];const h=Object.assign({},a,{strict:!0,parent:r,value:d,originalValue:o[c],key:void 0,[u?"index":"key"]:c,path:u||c.includes(".")?`${i||""}[${u?c:`"${c}"`}]`:(i?`${i}.`:"")+t});return(m,p,y)=>this.resolve(h)._validate(d,h,p,y)}validate(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),o=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return new Promise((a,c)=>i._validate(t,n,(u,d)=>{jt.isError(u)&&(u.value=d),c(u)},(u,d)=>{u.length?c(new jt(u,d,void 0,void 0,o)):a(d)}))}validateSync(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),o,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return i._validate(t,Object.assign({},n,{sync:!0}),(c,u)=>{throw jt.isError(c)&&(c.value=u),c},(c,u)=>{if(c.length)throw new jt(c,t,void 0,void 0,a);o=u}),o}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(jt.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(jt.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Ts(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=Ss({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=Ss({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=Ss(n),o=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(o||a.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=w2(t).map(o=>new wi(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new ml(i,n):ml.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Ss({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=Ss({message:n,name:"oneOf",skipAbsent:!0,test(i){let o=this.schema._whitelist,a=o.resolveAll(this.resolve);return a.includes(i)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:a}})}}),r}notOneOf(t,n=Fn.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=Ss({message:n,name:"notOneOf",test(i){let o=this.schema._blacklist,a=o.resolveAll(this.resolve);return a.includes(i)?this.createError({params:{values:Array.from(o).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:o,nullable:a}=n.spec;return{meta:i,label:r,optional:o,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,d,h)=>h.findIndex(m=>m.name===u.name)===d)}}}Vn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Vn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:a}=t3(this,t,n,r.context);return a[e](i&&i[o],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Vn.prototype[e]=Vn.prototype.oneOf;for(const e of["not","nope"])Vn.prototype[e]=Vn.prototype.notOneOf;const n3=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function r3(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=n3.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 i3=/^[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])?)*$/,s3=/^((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,o3=/^(?:[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,a3="^\\d{4}-\\d{2}-\\d{2}",l3="\\d{2}:\\d{2}:\\d{2}",c3="(([+-]\\d{2}(:?\\d{2})?)|Z)",u3=new RegExp(`${a3}T${l3}(\\.\\d+)?${c3}$`),f3=e=>Si(e)||e===e.trim(),d3={}.toString();function Br(){return new P2}class P2 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===d3?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Fn.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=Ft.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=Ft.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=Ft.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,o;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:o}=n:i=n),this.test({name:o||"matches",message:i||Ft.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=Ft.email){return this.matches(i3,{name:"email",message:t,excludeEmptyString:!0})}url(t=Ft.url){return this.matches(s3,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Ft.uuid){return this.matches(o3,{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(u3,{name:"datetime",message:n||Ft.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Ft.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:o=>{if(!o||r)return!0;const a=ah(o);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||Ft.datetime_precision,params:{precision:i},skipAbsent:!0,test:o=>{if(!o||i==null)return!0;const a=ah(o);return a?a.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Ft.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:f3})}lowercase(t=Ft.lowercase){return this.transform(n=>Si(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Si(n)||n===n.toLowerCase()})}uppercase(t=Ft.uppercase){return this.transform(n=>Si(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Si(n)||n===n.toUpperCase()})}}Br.prototype=P2.prototype;let h3=new Date(""),m3=e=>Object.prototype.toString.call(e)==="[object Date]";class lh extends Vn{constructor(){super({type:"date",check(t){return m3(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=r3(t),isNaN(t)?lh.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(wi.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=h3;function p3(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([a,c])=>`${a}-${c}`));function o(a,c){let u=xi.split(a)[0];r.add(u),i.has(`${c}-${u}`)||n.push([c,u])}for(const a of Object.keys(e)){let c=e[a];r.add(a),wi.isRef(c)&&c.isSibling?o(c.path,a):oh(c)&&"deps"in c&&c.deps.forEach(u=>o(u,a))}return GN.array(Array.from(r),n).reverse()}function A2(e,t){let n=1/0;return e.some((r,i)=>{var o;if((o=t.path)!=null&&o.includes(r))return n=i,!0}),n}function M2(e){return(t,n)=>A2(e,t)-A2(e,n)}const g3=(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 y3=(e,t)=>{const n=[...xi.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=xi.getter(xi.join(n),!0)(e);return!!(i&&r in i)};let O2=e=>Object.prototype.toString.call(e)==="[object Object]";function _2(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const v3=M2([]);function ch(e){return new I2(e)}class I2 extends Vn{constructor(t){super({type:"object",check(n){return O2(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=v3,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault(n);if(!this._typeCheck(i))return i;let o=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,c=[].concat(this._nodes,Object.keys(i).filter(m=>!this._nodes.includes(m))),u={},d=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),h=!1;for(const m of c){let p=o[m],y=m in i;if(p){let S,b=i[m];d.path=(n.path?`${n.path}.`:"")+m,p=p.resolve({value:b,context:n.context,parent:u});let 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&&!a&&(u[m]=i[m]);(y!==m in u||u[m]!==i[m])&&(h=!0)}return h?u:i}_validate(t,n={},r,i){let{from:o=[],originalValue:a=t,recursive:c=this.spec.recursive}=n;n.from=[{schema:this,value:a},...o],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(u,d)=>{if(!c||!O2(d)){i(u,d);return}a=a||d;let h=[];for(let m of this._nodes){let p=this.fields[m];!p||wi.isRef(p)||h.push(p.asNestedTest({options:n,key:m,parent:d,parentPath:n.path,originalParent:a}))}this.runTests({tests:h,value:d,originalValue:a,options:n},r,m=>{i(m.sort(this._sortErrors).concat(u),d)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,o]of Object.entries(this.fields)){const a=r[i];r[i]=a===void 0?o:a}return n.withMutation(i=>i.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var i;const o=this.fields[r];let a=t;(i=a)!=null&&i.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=o&&"getDefault"in o?o.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=p3(t,n),r._sortErrors=M2(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=xi.getter(t,!0);return this.transform(o=>{if(!o)return o;let a=o;return y3(o,t)&&(a=Object.assign({},o),r||delete a[t],a[n]=i(o)),a})}json(){return this.transform(g3)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||hl.exact,test(n){if(n==null)return!0;const r=_2(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=hl.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const o=_2(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=hl.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[t(i)]=n[i];return r})}camelCase(){return this.transformKeys(ih.camelCase)}snakeCase(){return this.transformKeys(ih.snakeCase)}constantCase(){return this.transformKeys(t=>ih.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[o,a]of Object.entries(n.fields)){var i;let c=t;(i=c)!=null&&i.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[o]})),r.fields[o]=a.describe(c)}return r}}ch.prototype=I2.prototype,ch().shape({labelES:Br().required(),label:Br().required(),code:Br().required(),codeISO2:Br().required(),phone:Br().required()});const $2=[{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"}],b3=({countries:e=$2,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:a="",translateKey:c})=>{var Ce,Ve,ie;const{t:u}=Ue(),{field:d,fieldState:h}=hr.useController({name:t,control:n,rules:{validate:{}},defaultValue:null}),[m,p]=_.useState(!1),[y,S]=_.useState(""),[b,T]=_.useState(d.value||null),w=_.useRef(null),E=_.useRef(null),P=_.useRef(null),{x:$,y:A,strategy:D,refs:V,context:j,placement:U,middlewareData:X}=jr({open:m,onOpenChange:p,middleware:[Dr(8),Nr(),Rr({padding:8}),ys({apply({availableHeight:pe,elements:De}){Object.assign(De.floating.style,{maxHeight:`${Math.min(pe-10,300)}px`})},padding:8}),vs({element:E})],placement:"bottom-start",whileElementsMounted:$r}),ne=vi(j),oe=kr(j),{getReferenceProps:ge,getFloatingProps:ue}=Fr([ne,oe]),{isMounted:fe,styles:he}=bi(j,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),B=(Array.isArray(e)?e:[]).filter(pe=>{if(!y.trim())return!0;const De=o==="es"&&pe.labelES?pe.labelES.toLowerCase():pe.label.toLowerCase(),ft=pe.code?pe.code.toLowerCase():"";return De.includes(y.toLowerCase())||ft.includes(y.toLowerCase())}),G=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)};_.useEffect(()=>{T(d.value)},[d.value]),_.useEffect(()=>{const pe=De=>{P.current&&!P.current.contains(De.target)&&d.onBlur()};return document.addEventListener("mousedown",pe),()=>{document.removeEventListener("mousedown",pe)}},[d]);const K=pe=>{var De;return pe?pe.codeISO2?pe.codeISO2.toLowerCase():((De=pe.code)==null?void 0:De.toLowerCase())||"":""},ae=(Ce=X.arrow)==null?void 0:Ce.x,J=(Ve=X.arrow)==null?void 0:Ve.y,q={top:"bottom",right:"left",bottom:"top",left:"right"}[U.split("-")[0]],Q=ge({onClick:O,onBlur:N}),le=u(r),re=u(i),de=(ie=h.error)==null?void 0:ie.message;return v.jsxs("div",{ref:P,className:`w-full relative flex flex-col gap-8 ${a}`,children:[v.jsx("label",{className:`text-gray-600 font-600 group ${de&&"!text-red-500"} text-label`,children:le}),v.jsxs("div",{ref:V.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${de&&"border-red-500 hover:border-red-600"} ${fe?"border-blue-400":"border-blue-100"}`,...Q,tabIndex:0,children:[b!=null&&b.code?v.jsxs("div",{className:"flex items-center w-full gap-10",children:[K(b)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${K(b)}.png`,srcSet:`https://flagcdn.com/w40/${K(b)}.png 2x`,alt:b.label,onError:pe=>{pe.currentTarget.style.display="none"}}),v.jsxs("span",{className:"flex-grow font-600 text-body-m",children:[o==="es"&&b.labelES?b.labelES:b.label,b.code?` (${b.code})`:u("select_country")]})]}):v.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:re}),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"})})]}),de&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(de,{x:u(c||"")||u(t)})}),fe&&v.jsxs("div",{ref:V.setFloating,style:{position:D,top:A??0,left:$??0,...he},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ue(),children:[v.jsx("div",{ref:E,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ae!=null?`${ae}px`:"",top:J!=null?`${J}px`:"",right:"",bottom:"",[q]:"-2px",borderRight:q==="left"?"1px solid":"none",borderBottom:q==="top"?"1px solid":"none",borderLeft:q==="right"?"1px solid":"none",borderTop:q==="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:B.length>0?v.jsx("ul",{className:"flex flex-col",children:B.map((pe,De)=>{var Ti;const ft=pe.codeISO2?pe.codeISO2.toLowerCase():((Ti=pe.code)==null?void 0:Ti.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(),G(pe)},children:[ft&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${ft}.png`,srcSet:`https://flagcdn.com/w40/${ft}.png 2x`,alt:pe.label,onError:dt=>{dt.currentTarget.style.display="none"}}),v.jsxs("span",{children:[o==="es"&&pe.labelES?pe.labelES:pe.label,pe.code?` (${pe.code})`:"Country not found"]})]},`${pe.code}-${De}`)})}):v.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},x3=({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})]})},w3=({countries:e,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:a=""})=>{const{t:c}=Ue();return v.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:u,value:d},fieldState:{error:h}})=>v.jsx(S3,{countries:e,value:d,onChange:u,label:c(r),placeholder:c(i),language:o,error:h==null?void 0:h.message,className:a})})},S3=({countries:e,value:t,onChange:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",error:a,className:c=""})=>{var ae,J;const{t:u}=Ue(),[d,h]=_.useState(!1),[m,p]=_.useState(""),[y,S]=_.useState(t||null),b=_.useRef(null),T=_.useRef(null),{x:w,y:E,strategy:P,refs:$,context:A,placement:D,middlewareData:V}=jr({open:d,onOpenChange:h,middleware:[Dr(8),Nr(),Rr({padding:8}),ys({apply({availableHeight:q,elements:Q}){Object.assign(Q.floating.style,{maxHeight:`${Math.min(q-10,300)}px`})},padding:8}),vs({element:T})],placement:"bottom-start",whileElementsMounted:$r}),j=vi(A),U=kr(A),{getReferenceProps:X,getFloatingProps:ne}=Fr([j,U]),{isMounted:oe,styles:ge}=bi(A,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),fe=(Array.isArray(e)?e:[]).filter(q=>{if(!m.trim())return!0;const Q=o==="es"&&q.labelES?q.labelES.toLowerCase():q.label.toLowerCase(),le=q.code?q.code.toLowerCase():"";return Q.includes(m.toLowerCase())||le.includes(m.toLowerCase())}),he=q=>{S(q),h(!1),p(""),n(q)},F=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var q;(q=b.current)==null||q.focus()},100)};_.useEffect(()=>{S(t)},[t]);const B=q=>{var Q;return q?q.codeISO2?q.codeISO2.toLowerCase():((Q=q.code)==null?void 0:Q.toLowerCase())||"":""},G=(ae=V.arrow)==null?void 0:ae.x,O=(J=V.arrow)==null?void 0:J.y,N={top:"bottom",right:"left",bottom:"top",left:"right"}[D.split("-")[0]],K=X({onClick:F});return v.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[v.jsx("label",{className:`text-gray-600 font-600 group ${a&&"!text-red-500"} text-label`,children:r}),v.jsxs("div",{ref:$.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${a&&"border-red-500 hover:border-red-600"} ${oe?"border-blue-400":"border-blue-100"}`,...K,children:[y!=null&&y.code?v.jsxs("div",{className:"flex items-center w-full",children:[B(y)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${B(y)}.png`,srcSet:`https://flagcdn.com/w40/${B(y)}.png 2x`,alt:y.label,onError:q=>{q.currentTarget.style.display="none"}}),v.jsxs("span",{className:"flex-grow",children:[o==="es"&&y.labelES?y.labelES:y.label,y.code?` (${y.code})`:u("select_country")]})]}):v.jsx("span",{className:"text-gray-500",children:i}),v.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),a&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:a}),oe&&v.jsxs("div",{ref:$.setFloating,style:{position:P,top:E??0,left:w??0,...ge},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ne(),children:[v.jsx("div",{ref:T,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:G!=null?`${G}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:q=>p(q.target.value),onClick:q=>q.stopPropagation(),autoFocus:!0})}),v.jsx("div",{children:fe.length>0?v.jsx("ul",{className:"flex flex-col",children:fe.map((q,Q)=>{var re;const le=q.codeISO2?q.codeISO2.toLowerCase():((re=q.code)==null?void 0:re.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:de=>{de.stopPropagation(),he(q)},children:[le&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${le}.png`,srcSet:`https://flagcdn.com/w40/${le}.png 2x`,alt:q.label,onError:de=>{de.currentTarget.style.display="none"}}),v.jsxs("span",{children:[o==="es"&&q.labelES?q.labelES:q.label,q.code?` (${q.code})`:"Country not found"]})]},`${q.code}-${Q}`)})}):v.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No countries found"})})]})]})},uh=({variant:e="filled",color:t,size:n="base",shadow:r="none",icon:i,iconProps:o={},children:a,className:c,...u})=>{const{defaultColorScheme:d}=Ue(),h=t||d;return v.jsx("button",{...u,className:`${jN(e,h,n,r)} ${c}`,children:i?v.jsx(_e,{...o,className:jo(n),icon:i}):a})};function T3(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 E3=({src:e,alt:t,isEditable:n=!1,onChange:r,className:i="",name:o,control:a,user:c})=>{const[u,d]=_.useState(e||null),[h,m]=_.useState(!!e),p=_.useRef(null),y=hr.useController({name:o,control:a}),S=!!a;_.useEffect(()=>{if(S){const E=y==null?void 0:y.field.value;if(T3(E)){const P=URL.createObjectURL(E);return d(P),m(!0),()=>URL.revokeObjectURL(P)}else typeof E=="string"&&E&&E!==e?(d(E),m(!0)):e?(d(e),m(!0)):(d(null),m(!1))}},[y==null?void 0:y.field.value,e]);const b=()=>{var E;n&&((E=p.current)==null||E.click())},T=E=>{var $;const P=($=E.target.files)==null?void 0:$[0];if(P){const A=URL.createObjectURL(P);d(A),m(!0),S&&(y==null||y.field.onChange(P)),r&&r(P)}},w=E=>{E.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(c2,{size:60,user:c}),n&&v.jsxs(v.Fragment,{children:[v.jsx("input",{type:"file",ref:E=>{p.current=E,y&&y.field.ref(E)},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:U6,className:"text-blue-500"})})]})]})]})},C3=ch({name:Br(),base64:Br()}),P3=({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})]}),A3=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"}},D2=e=>{switch(e){case"warning":return"text-yellow-500";case"error":return"text-red-500";default:return"text-blue-500"}},M3=({description:e,title:t,className:n,icon:r,type:i="informative",iconClassName:o=""})=>v.jsxs("div",{className:`flex items-center gap-12 p-12 w-full ${A3(i)} rounded-lg ${n}`,children:[r?v.jsx(_e,{icon:r,className:`min-h-20 h-20 ${o} ${D2(i)}`}):v.jsx(_e,{icon:iN,className:`min-h-20 h-20 ${o} ${D2(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})]})]}),O3=({size:e=16,strokeWidth:t=2,color:n="#1DA696",...r})=>{const i=(e-t)/2,o=2*Math.PI*i,{className:a="",...c}=r;return v.jsx("div",{...c,className:`relative flex items-center justify-center ${a}`,children:v.jsx("svg",{height:e,width:e,className:"animate-spin",children:v.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:o+" "+o,strokeDashoffset:o/4,r:i,cx:e/2,cy:e/2})})})},_3=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a})=>{const{field:{value:c="",onChange:u,ref:d,onBlur:h},fieldState:{error:m}}=hr.useController({name:n,control:t}),[p,y]=_.useState(!1),{t:S}=Ue();return v.jsxs("label",{className:`flex flex-col group gap-8 select-none ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${m&&"!text-red-500"} text-label ${o&&"text-gray-300"}`,children:e}),v.jsxs("label",{htmlFor:n,className:`
729
729
  flex items-center justify-between gap-8 p-16
730
730
 
731
731
  ${m&&"!border-red-500"}
@@ -741,13 +741,13 @@ attempted value: ${a}
741
741
  group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
742
742
 
743
743
  group-disabled:bg-gray-500
744
- `,children:[a&&a,v.jsx("input",{id:n,type:p?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:n,disabled:o,placeholder:r,value:c,onChange:b=>u(b.target.value),onBlur:h,ref:d,className:"group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none"}),v.jsx(Ie,{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)})})]})},_L=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:i="en",className:o="",translateKey:a,countries:c=Iw})=>{var Ci,wl,Wr,Sl;const{t:u}=Ue(),{field:d,fieldState:h}=hr.useController({name:e,control:t,rules:{validate:{}}}),m=((Ci=d.value)==null?void 0:Ci.split(" "))||[],p=m[0]||null,y=m[1]||"",S=c.find(be=>p===be.phone),[b,T]=_.useState(!1),[w,E]=_.useState(""),[P,$]=_.useState(S||null),[A,D]=_.useState(y),[k,F]=_.useState(!1),z=_.useRef(null),J=_.useRef(null),ne=_.useRef(null),le=_.useRef(null),{x:ye,y:de,strategy:ue,refs:he,context:V,placement:B,middlewareData:G}=jr({open:b,onOpenChange:T,middleware:[Dr(8),Nr(),Rr({padding:8}),ys({apply({availableHeight:be,elements:Qe}){Object.assign(Qe.floating.style,{maxHeight:`${Math.min(be-10,300)}px`})},padding:8}),vs({element:J})],placement:"bottom-start",whileElementsMounted:$r}),O=vi(V),N=kr(V),{getReferenceProps:K,getFloatingProps:oe}=Fr([O,N]),{isMounted:Z,styles:q}=bi(V,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ae=(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())}),re=be=>{$(be),T(!1),E("");const Qe=`${be.phone} ${A}`;d.onChange(Qe),setTimeout(()=>{var Pt;(Pt=ne.current)==null||Pt.focus()},100)},fe=be=>{const Qe=be.target.value;if(D(Qe),P){const Pt=`${P.phone} ${Qe}`;d.onChange(Pt)}},Ce=()=>{T(!b),!b&&z.current&&setTimeout(()=>{var be;(be=z.current)==null||be.focus()},100)},Ve=()=>{setTimeout(()=>{b||d.onBlur()},200)},ie=()=>{F(!0)},pe=()=>{F(!1)};_.useEffect(()=>{if(d.value){const be=d.value.split(" "),Qe=be[0]||"",Pt=be[1]||"",xn=c.find(rr=>rr.phone===Qe);xn&&$(xn),D(Pt)}},[d.value,c]),_.useEffect(()=>{const be=Qe=>{le.current&&!le.current.contains(Qe.target)&&d.onBlur()};return document.addEventListener("mousedown",be),()=>{document.removeEventListener("mousedown",be)}},[d]);const De=be=>{var Qe;return be?be.codeISO2?be.codeISO2.toLowerCase():((Qe=be.code)==null?void 0:Qe.toLowerCase())||"":""},ft=(wl=G.arrow)==null?void 0:wl.x,Ti=(Wr=G.arrow)==null?void 0:Wr.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[B.split("-")[0]],bl=K({onClick:Ce,onBlur:Ve}),xl=()=>h.error?"border-red-500":k||b?"border-blue-400":"border-blue-100",Ei=u(n),qt=u(r),bn=(Sl=h.error)==null?void 0:Sl.message;return v.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${o}`,children:[v.jsx("label",{className:`text-gray-600 font-600 group ${bn&&"!text-red-500"} text-label`,children:Ei}),v.jsxs("div",{ref:le,className:"flex items-center w-full",onMouseEnter:ie,onMouseLeave:pe,children:[v.jsxs("div",{ref:he.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:[P!=null&&P.code?v.jsxs("div",{className:"flex items-center truncate",children:[De(P)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${De(P)}.png`,srcSet:`https://flagcdn.com/w40/${De(P)}.png 2x`,alt:P.label,onError:be=>{be.currentTarget.style.display="none"}}),v.jsxs("span",{children:["+",P.phone]})]}):v.jsx("span",{className:"text-gray-400 font-600 text-body-m truncate",children:u("select_country")}),v.jsx(Ie,{icon:Qx,className:"w-14 h-14 min-w-14 min-h-14"})]}),v.jsx("input",{ref:ne,type:"tel",className:`placeholder:text-gray-400 flex-grow bg-light rounded-r-full font-600 text-body-m p-16 border transition-all duration-200 ${bn?"border-red-500":xl()}`,placeholder:qt,value:A,onChange:fe,onBlur:Ve})]}),bn&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(bn,{x:u(a||"")||e})}),Z&&v.jsxs("div",{ref:he.setFloating,style:{position:ue,top:de??0,left:ye??0,...q},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...oe(),children:[v.jsx("div",{ref:J,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ft!=null?`${ft}px`:"",top:Ti!=null?`${Ti}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=>E(be.target.value),onClick:be=>be.stopPropagation(),onBlur:be=>{be.stopPropagation()},autoFocus:!0})}),v.jsx("div",{children:ae.length>0?v.jsx("ul",{className:"flex flex-col",children:ae.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(),re(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")})})]})]})},IL={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},$L={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},DL=e=>{switch(e){case"aqua":return $L;case"blue":default:return IL}},RL=({progress:e,showPercentage:t=!1,color:n,className:r="",...i})=>{const{defaultColorScheme:o}=Ue(),a=n||o,{bgColor:c,fillColor:u}=DL(a),d=Math.min(Math.max(e,0),100);return v.jsxs("div",{className:`flex items-center gap-12 ${r}`,...i,children:[v.jsx("div",{className:`w-full h-8 ${c} rounded-full`,children:v.jsx("div",{className:`h-full ${u} rounded-full transition-all duration-300 ease-in-out`,style:{width:`${d}%`}})}),t&&v.jsxs("span",{className:"text-sm text-gray-400 font-500",children:[d,"%"]})]})},NL=()=>{const[e,t]=_.useState(!1),n=_.useRef(null),r=()=>{t(!0),setTimeout(()=>{var o;return(o=n.current)==null?void 0:o.focus()},100)},i=()=>{t(!1)};return v.jsx("div",{className:"relative flex items-center",children:v.jsxs("div",{className:`flex items-center justify-center bg-white shadow-md rounded-full transition-all duration-300 ease-in-out ${e?"w-[200px] h-[40px]":"size-[40px]"}`,children:[v.jsx("button",{onClick:r,className:"size-[40px] flex items-center justify-center rounded-full hover:bg-gray-100 transition-all",children:v.jsx(Ie,{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"}})]})})},LL="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",kL={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"},jL={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"},FL=(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)},VL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ue(),d=c||u,h=p=>{if(i){p.preventDefault();return}n==null||n(p)},m=`${FL(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?v.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&v.jsx(Ie,{icon:a,className:ko()}),e]}):v.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&v.jsx(Ie,{icon:a,className:ko()}),e]})},BL="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",WL={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},UL={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},zL="flex h-32 w-32 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",GL={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"},YL={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"},Dw=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=GL[n];break;case"aqua":default:r=YL[n];break}return tr(zL,r)},HL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=UL[n];break;case"blue":default:r=WL[n];break}return tr(BL,r)},qL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ue(),d=c||u,h=p=>{if(i){p.preventDefault();return}n==null||n(p)},m=`${HL(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?v.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&v.jsx("div",{className:Dw(r,d),children:v.jsx(Ie,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]}):v.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&v.jsx("div",{className:Dw(r,d),children:v.jsx(Ie,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]})},KL=e=>{const{display:t,...n}=e;return t==="desktop"?v.jsx(VL,{...n}):t==="mobile"?v.jsx(qL,{...n}):null},XL=({options:e,name:t,control:n,label:r="Select an option",placeholder:i="Type to search...",className:o="",input:a=!0})=>v.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:c,value:u},fieldState:{error:d}})=>v.jsx(ZL,{options:e,value:u,onChange:c,label:r,placeholder:i,error:d==null?void 0:d.message,className:o,input:a})}),ZL=({options:e,value:t,onChange:n,label:r="Select an option",placeholder:i="Type to search...",error:o,className:a="",input:c=!0})=>{const{t:u}=Ue(),[d,h]=_.useState(!1),[m,p]=_.useState(""),[y,S]=_.useState(t||null),b=_.useRef(null),T=_.useRef(null),{x:w,y:E,strategy:P,refs:$,context:A}=jr({open:d,onOpenChange:h,middleware:[Dr(8),Nr(),Rr({padding:8}),ys({apply({availableHeight:V,elements:B}){Object.assign(B.floating.style,{maxHeight:`${Math.min(V-10,300)}px`})},padding:8}),vs({element:T})],placement:"bottom-start",whileElementsMounted:$r}),D=vi(A),k=kr(A),{getReferenceProps:F,getFloatingProps:z}=Fr([D,k]),{isMounted:J,styles:ne}=bi(A,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),le=(()=>{const V=Array.isArray(e)?e:[];if(!m.trim())return V;const B=m.toLowerCase();return V.filter(G=>{const O=G.label.toLowerCase(),N=G.key.toLowerCase();return O.includes(B)||N.includes(B)})})(),ye=V=>{S(V),h(!1),p(""),n(V)},de=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var V;return(V=b.current)==null?void 0:V.focus()},100)};_.useEffect(()=>{S(t)},[t]);const ue=F({onClick:de}),he=u(i);return v.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${a}`,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${o?"!text-red-500":""} text-label`,children:r}),v.jsxs("div",{ref:$.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
744
+ `,children:[a&&a,v.jsx("input",{id:n,type:p?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:n,disabled:o,placeholder:r,value:c,onChange:b=>u(b.target.value),onBlur:h,ref:d,className:"group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none"}),v.jsx(_e,{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)})})]})},I3=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:i="en",className:o="",translateKey:a,countries:c=$2})=>{var Ci,wl,Wr,Sl;const{t:u}=Ue(),{field:d,fieldState:h}=hr.useController({name:e,control:t,rules:{validate:{}}}),m=((Ci=d.value)==null?void 0:Ci.split(" "))||[],p=m[0]||null,y=m[1]||"",S=c.find(be=>p===be.phone),[b,T]=_.useState(!1),[w,E]=_.useState(""),[P,$]=_.useState(S||null),[A,D]=_.useState(y),[V,j]=_.useState(!1),U=_.useRef(null),X=_.useRef(null),ne=_.useRef(null),oe=_.useRef(null),{x:ge,y:ue,strategy:fe,refs:he,context:F,placement:B,middlewareData:G}=jr({open:b,onOpenChange:T,middleware:[Dr(8),Nr(),Rr({padding:8}),ys({apply({availableHeight:be,elements:Qe}){Object.assign(Qe.floating.style,{maxHeight:`${Math.min(be-10,300)}px`})},padding:8}),vs({element:X})],placement:"bottom-start",whileElementsMounted:$r}),O=vi(F),N=kr(F),{getReferenceProps:K,getFloatingProps:ae}=Fr([O,N]),{isMounted:J,styles:q}=bi(F,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),le=(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())}),re=be=>{$(be),T(!1),E("");const Qe=`${be.phone} ${A}`;d.onChange(Qe),setTimeout(()=>{var Pt;(Pt=ne.current)==null||Pt.focus()},100)},de=be=>{const Qe=be.target.value;if(D(Qe),P){const Pt=`${P.phone} ${Qe}`;d.onChange(Pt)}},Ce=()=>{T(!b),!b&&U.current&&setTimeout(()=>{var be;(be=U.current)==null||be.focus()},100)},Ve=()=>{setTimeout(()=>{b||d.onBlur()},200)},ie=()=>{j(!0)},pe=()=>{j(!1)};_.useEffect(()=>{if(d.value){const be=d.value.split(" "),Qe=be[0]||"",Pt=be[1]||"",xn=c.find(rr=>rr.phone===Qe);xn&&$(xn),D(Pt)}},[d.value,c]),_.useEffect(()=>{const be=Qe=>{oe.current&&!oe.current.contains(Qe.target)&&d.onBlur()};return document.addEventListener("mousedown",be),()=>{document.removeEventListener("mousedown",be)}},[d]);const De=be=>{var Qe;return be?be.codeISO2?be.codeISO2.toLowerCase():((Qe=be.code)==null?void 0:Qe.toLowerCase())||"":""},ft=(wl=G.arrow)==null?void 0:wl.x,Ti=(Wr=G.arrow)==null?void 0:Wr.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[B.split("-")[0]],bl=K({onClick:Ce,onBlur:Ve}),xl=()=>h.error?"border-red-500":V||b?"border-blue-400":"border-blue-100",Ei=u(n),qt=u(r),bn=(Sl=h.error)==null?void 0:Sl.message;return v.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${o}`,children:[v.jsx("label",{className:`text-gray-600 font-600 group ${bn&&"!text-red-500"} text-label`,children:Ei}),v.jsxs("div",{ref:oe,className:"flex items-center w-full",onMouseEnter:ie,onMouseLeave:pe,children:[v.jsxs("div",{ref:he.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:[P!=null&&P.code?v.jsxs("div",{className:"flex items-center truncate",children:[De(P)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${De(P)}.png`,srcSet:`https://flagcdn.com/w40/${De(P)}.png 2x`,alt:P.label,onError:be=>{be.currentTarget.style.display="none"}}),v.jsxs("span",{children:["+",P.phone]})]}):v.jsx("span",{className:"text-gray-400 font-600 text-body-m truncate",children:u("select_country")}),v.jsx(_e,{icon:e2,className:"w-14 h-14 min-w-14 min-h-14"})]}),v.jsx("input",{ref:ne,type:"tel",className:`placeholder:text-gray-400 flex-grow bg-light rounded-r-full font-600 text-body-m p-16 border transition-all duration-200 ${bn?"border-red-500":xl()}`,placeholder:qt,value:A,onChange:de,onBlur:Ve})]}),bn&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(bn,{x:u(a||"")||e})}),J&&v.jsxs("div",{ref:he.setFloating,style:{position:fe,top:ue??0,left:ge??0,...q},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...ae(),children:[v.jsx("div",{ref:X,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ft!=null?`${ft}px`:"",top:Ti!=null?`${Ti}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:U,type:"text",className:"w-fit p-16",placeholder:u("search")+"...",value:w,onChange:be=>E(be.target.value),onClick:be=>be.stopPropagation(),onBlur:be=>{be.stopPropagation()},autoFocus:!0})}),v.jsx("div",{children:le.length>0?v.jsx("ul",{className:"flex flex-col",children:le.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(),re(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")})})]})]})},$3={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},D3={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},R3=e=>{switch(e){case"aqua":return D3;case"blue":default:return $3}},N3=({progress:e,showPercentage:t=!1,color:n,className:r="",...i})=>{const{defaultColorScheme:o}=Ue(),a=n||o,{bgColor:c,fillColor:u}=R3(a),d=Math.min(Math.max(e,0),100);return v.jsxs("div",{className:`flex items-center gap-12 ${r}`,...i,children:[v.jsx("div",{className:`w-full h-8 ${c} rounded-full`,children:v.jsx("div",{className:`h-full ${u} rounded-full transition-all duration-300 ease-in-out`,style:{width:`${d}%`}})}),t&&v.jsxs("span",{className:"text-sm text-gray-400 font-500",children:[d,"%"]})]})},L3=()=>{const[e,t]=_.useState(!1),n=_.useRef(null),r=()=>{t(!0),setTimeout(()=>{var o;return(o=n.current)==null?void 0:o.focus()},100)},i=()=>{t(!1)};return v.jsx("div",{className:"relative flex items-center",children:v.jsxs("div",{className:`flex items-center justify-center bg-white shadow-md rounded-full transition-all duration-300 ease-in-out ${e?"w-[200px] h-[40px]":"size-[40px]"}`,children:[v.jsx("button",{onClick:r,className:"size-[40px] flex items-center justify-center rounded-full hover:bg-gray-100 transition-all",children:v.jsx(_e,{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"}})]})})},k3="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",j3={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"},F3={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"},V3=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=F3[n];break;case"blue":default:r=j3[n];break}return tr(k3,r)},B3=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ue(),d=c||u,h=p=>{if(i){p.preventDefault();return}n==null||n(p)},m=`${V3(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?v.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&v.jsx(_e,{icon:a,className:jo()}),e]}):v.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&v.jsx(_e,{icon:a,className:jo()}),e]})},W3="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",U3={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},z3={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},G3="flex h-32 w-32 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",Y3={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"},H3={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"},R2=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=Y3[n];break;case"aqua":default:r=H3[n];break}return tr(G3,r)},q3=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=z3[n];break;case"blue":default:r=U3[n];break}return tr(W3,r)},K3=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ue(),d=c||u,h=p=>{if(i){p.preventDefault();return}n==null||n(p)},m=`${q3(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?v.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&v.jsx("div",{className:R2(r,d),children:v.jsx(_e,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]}):v.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&v.jsx("div",{className:R2(r,d),children:v.jsx(_e,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]})},X3=e=>{const{display:t,...n}=e;return t==="desktop"?v.jsx(B3,{...n}):t==="mobile"?v.jsx(K3,{...n}):null},Z3=({options:e,name:t,control:n,label:r="Select an option",placeholder:i="Type to search...",className:o="",input:a=!0})=>v.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:c,value:u},fieldState:{error:d}})=>v.jsx(J3,{options:e,value:u,onChange:c,label:r,placeholder:i,error:d==null?void 0:d.message,className:o,input:a})}),J3=({options:e,value:t,onChange:n,label:r="Select an option",placeholder:i="Type to search...",error:o,className:a="",input:c=!0})=>{const{t:u}=Ue(),[d,h]=_.useState(!1),[m,p]=_.useState(""),[y,S]=_.useState(t||null),b=_.useRef(null),T=_.useRef(null),{x:w,y:E,strategy:P,refs:$,context:A}=jr({open:d,onOpenChange:h,middleware:[Dr(8),Nr(),Rr({padding:8}),ys({apply({availableHeight:F,elements:B}){Object.assign(B.floating.style,{maxHeight:`${Math.min(F-10,300)}px`})},padding:8}),vs({element:T})],placement:"bottom-start",whileElementsMounted:$r}),D=vi(A),V=kr(A),{getReferenceProps:j,getFloatingProps:U}=Fr([D,V]),{isMounted:X,styles:ne}=bi(A,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),oe=(()=>{const F=Array.isArray(e)?e:[];if(!m.trim())return F;const B=m.toLowerCase();return F.filter(G=>{const O=G.label.toLowerCase(),N=G.key.toLowerCase();return O.includes(B)||N.includes(B)})})(),ge=F=>{S(F),h(!1),p(""),n(F)},ue=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var F;return(F=b.current)==null?void 0:F.focus()},100)};_.useEffect(()=>{S(t)},[t]);const fe=j({onClick:ue}),he=u(i);return v.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${a}`,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${o?"!text-red-500":""} text-label`,children:r}),v.jsxs("div",{ref:$.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
745
745
  border transition-all duration-200 hover:border-blue-400
746
- ${o?"border-red-500 hover:border-red-600":""} ${d?"border-blue-400":"border-blue-100"}`,...ue,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:he}),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}),J&&v.jsxs("div",{ref:$.setFloating,style:{position:P,top:E??0,left:w??0,...ne,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:le.length>0?v.jsx("ul",{className:"py-4",children:le.map((V,B)=>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:G=>{G.stopPropagation(),ye(V)},children:v.jsx("span",{children:u(V.label)})},`${V.key}-${B}`))}):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,'"']})]})})]})]})},JL={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"},ek=e=>{switch(e){case"aqua":return QL;case"blue":default:return JL}},tk=({active:e,icon:t,label:n,onClick:r,expanded:i,disabled:o=!1,color:a})=>{const{defaultColorScheme:c}=Ue(),u=a||c,{activeTextColor:d,activeBgColor:h,hoverBgColor:m,activeIconColor:p}=ek(u);return v.jsxs("div",{onClick:()=>!o&&r(),className:`
746
+ ${o?"border-red-500 hover:border-red-600":""} ${d?"border-blue-400":"border-blue-100"}`,...fe,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:he}),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}),X&&v.jsxs("div",{ref:$.setFloating,style:{position:P,top:E??0,left:w??0,...ne,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",...U(),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:F=>p(F.target.value),onClick:F=>F.stopPropagation(),autoFocus:!0}),m&&v.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:F=>{F.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:oe.length>0?v.jsx("ul",{className:"py-4",children:oe.map((F,B)=>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)===F.key?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:G=>{G.stopPropagation(),ge(F)},children:v.jsx("span",{children:u(F.label)})},`${F.key}-${B}`))}):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,'"']})]})})]})]})},Q3={activeTextColor:"text-blue-500",activeBgColor:"bg-blue-100",hoverBgColor:"hover:bg-blue-100",activeIconColor:"text-blue-500"},eL={activeTextColor:"text-aqua-500",activeBgColor:"bg-aqua-100",hoverBgColor:"hover:bg-aqua-100",activeIconColor:"text-aqua-500"},tL=e=>{switch(e){case"aqua":return eL;case"blue":default:return Q3}},nL=({active:e,icon:t,label:n,onClick:r,expanded:i,disabled:o=!1,color:a})=>{const{defaultColorScheme:c}=Ue(),u=a||c,{activeTextColor:d,activeBgColor:h,hoverBgColor:m,activeIconColor:p}=tL(u);return v.jsxs("div",{onClick:()=>!o&&r(),className:`
747
747
  flex items-center rounded-full text-gray transition-all duration-150 h-[40px] w-full px-[12.3px]
748
748
  ${!i&&"w-fit"}
749
749
  ${o?"cursor-not-allowed opacity-50":`cursor-pointer ${m}`}
750
- ${e?`${d} ${h}`:"bg-transparent"}`,children:[v.jsx(Ie,{icon:t,className:e?p:"text-gray-900",style:{height:"16px"}}),v.jsx("h4",{className:`
750
+ ${e?`${d} ${h}`:"bg-transparent"}`,children:[v.jsx(_e,{icon:t,className:e?p:"text-gray-900",style:{height:"16px"}}),v.jsx("h4",{className:`
751
751
  text-md
752
752
  leading-none
753
753
  font-600
@@ -756,25 +756,25 @@ attempted value: ${a}
756
756
  transition-all duration-100 ease-in-out
757
757
  opacity-0 capitalize
758
758
  ${i&&"translate-x-0 opacity-100 !w-full !h-auto ml-8"}
759
- ${e&&d}`,children:n})]})},nk="flex w-full h-full gap-12 px-10 py-6 items-center justify-center",rk={default:"flex-row rounded-full text-blue-500",underline:"flex-col border-b-[1.3px] px-24 pb-16 text-gray-700"},ik={true:"text-blue-500 border-b-blue-500",false:"text-gray-700 border-b-gray-700"},sk=(e="underline",t=!1)=>tr(nk,rk[e],ik[String(t)]),Rw=({label:e,icon:t,isSelected:n,onClick:r,variant:i="default",direction:o="row"})=>v.jsxs("button",{className:`${sk(i,n)} w-full cursor-pointer transition-all duration-200 ${o==="row"&&"flex-row!"}`,onClick:r,children:[t&&v.jsx(Ie,{icon:t,className:`${n?"text-blue-500":"text-gray-500"} w-20 h-20`}),v.jsx("span",{className:"text-lg font-500",children:e})]}),ok="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",ak={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"},lk=(e="blue")=>tr(ok,ak[e]),Nw=({color:e,children:t,className:n,...r})=>{const{defaultColorScheme:i}=Ue(),o=e||i;return v.jsx("button",{type:"button",className:lk(o)+" "+n,...r,children:t})},ck=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a,rightSide:c,translateKey:u="",...d})=>{const{field:{value:h="",onChange:m,ref:p,onBlur:y},fieldState:{error:S}}=hr.useController({name:n,control:t}),{t:b}=Ue(),T=b(n),w=b(u);return v.jsxs("label",{className:`flex flex-col group gap-8 select-none ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${S&&"text-red-500!"} text-label ${o&&"text-gray-300"}`,children:e}),v.jsxs("label",{htmlFor:n,className:`
760
- flex items-center justify-between gap-8 p-16
759
+ ${e&&d}`,children:n})]})},rL="flex w-full h-full gap-12 px-10 py-6 items-center justify-center",iL={default:"flex-row rounded-full text-blue-500",underline:"flex-col border-b-[1.3px] px-24 pb-16 text-gray-700"},sL={true:"text-blue-500 border-b-blue-500",false:"text-gray-700 border-b-gray-700"},oL=(e="underline",t=!1)=>tr(rL,iL[e],sL[String(t)]),N2=({label:e,icon:t,isSelected:n,onClick:r,variant:i="default",direction:o="row"})=>v.jsxs("button",{className:`${oL(i,n)} w-full cursor-pointer transition-all duration-200 ${o==="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})]}),aL="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",lL={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"},cL=(e="blue")=>tr(aL,lL[e]),L2=({color:e,children:t,className:n,...r})=>{const{defaultColorScheme:i}=Ue(),o=e||i;return v.jsx("button",{type:"button",className:cL(o)+" "+n,...r,children:t})},uL=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a,rightSide:c,translateKey:u="",size:d="base",...h})=>{const{field:{value:m="",onChange:p,ref:y,onBlur:S},fieldState:{error:b}}=hr.useController({name:n,control:t}),{t:T}=Ue(),E={sm:{container:"p-8",text:"text-body-s",label:"text-xs",error:"text-xs",gap:"gap-6"},base:{container:"p-16",text:"text-body-m",label:"text-label",error:"text-label",gap:"gap-8"}}[d],P=T(n),$=T(u);return v.jsxs("label",{className:`flex flex-col group select-none ${E.gap} ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${b&&"text-red-500!"} ${E.label} ${o&&"text-gray-300"}`,children:e}),v.jsxs("label",{htmlFor:n,className:`
760
+ flex items-center justify-between gap-8 ${E.container}
761
761
 
762
- ${S&&"border-red-500!"}
762
+ ${b&&"border-red-500!"}
763
763
 
764
764
  !bg-blue-50
765
765
 
766
766
  w-full h-full rounded-full border
767
767
 
768
- ${h&&!o?"border-blue-200":"border-blue-100"}
768
+ ${m&&!o?"border-blue-200":"border-blue-100"}
769
769
  ${!o&&"group-hover:border-blue-300"}
770
770
  ${o&&"cursor-not-allowed"}
771
771
 
772
772
  group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
773
773
 
774
774
  group-disabled:bg-gray-500
775
- `,children:[a&&a,v.jsx("input",{id:n,name:n,disabled:o,placeholder:r,value:h,onChange:E=>m(E.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})})]})},uk=({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})]}),fk=({options:e,onChange:t,value:n,disabled:r,error:i,label:o="Select an option",placeholder:a="Select an option...",className:c="",allowSearch:u=!1})=>{const[d,h]=_.useState(!1),[m,p]=_.useState(""),y=_.useRef(null),S=_.useRef(null),b=e.find(V=>V.value===n),T=_.useMemo(()=>e.map(V=>({...V,searchableLabel:typeof V.label=="string"?V.label:_.isValidElement(V.label)?vl(V.label):String(V.label),searchableValue:String(V.value)})),[e]),w=_.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:E,y:P,strategy:$,refs:A,context:D}=jr({open:d,onOpenChange:h,middleware:[Dr(8),Nr(),Rr({padding:8}),ys({apply({availableHeight:V,elements:B}){Object.assign(B.floating.style,{maxHeight:`${Math.min(V-10,300)}px`})},padding:8}),vs({element:S})],placement:"bottom-start",whileElementsMounted:$r}),k=vi(D),F=kr(D),{getReferenceProps:z,getFloatingProps:J}=Fr([k,F]),{isMounted:ne,styles:le}=bi(D,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ye=_.useMemo(()=>m.trim()?w.search(m).map(B=>({...B.item,score:B.score,matches:B.matches})):e,[m,w,e]),de=V=>{t(V.value),h(!1),p("")},he=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:[o&&v.jsx("h6",{className:`text-gray-600 font-600 group ${i?"!text-red-500":""} text-label ${r?"text-gray-300":""}`,children:o}),v.jsxs("div",{ref:A.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
775
+ `,children:[a&&a,v.jsx("input",{id:n,name:n,disabled:o,placeholder:r,value:m,onChange:A=>p(A.target.value),onBlur:S,ref:y,className:`group bg-transparent w-full h-full font-600 placeholder:font-600 ${E.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-hidden`,...h}),c&&c]}),v.jsx("h4",{className:`font-500 text-red-500 leading-none ${E.error}`,children:(b==null?void 0:b.message)&&T(b.message,{x:$||P})})]})},fL=({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})]}),dL=({options:e,onChange:t,value:n,disabled:r,error:i,label:o="Select an option",placeholder:a="Select an option...",className:c="",allowSearch:u=!1})=>{const[d,h]=_.useState(!1),[m,p]=_.useState(""),y=_.useRef(null),S=_.useRef(null),b=e.find(F=>F.value===n),T=_.useMemo(()=>e.map(F=>({...F,searchableLabel:typeof F.label=="string"?F.label:_.isValidElement(F.label)?vl(F.label):String(F.label),searchableValue:String(F.value)})),[e]),w=_.useMemo(()=>{const F={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,F)},[T]),{x:E,y:P,strategy:$,refs:A,context:D}=jr({open:d,onOpenChange:h,middleware:[Dr(8),Nr(),Rr({padding:8}),ys({apply({availableHeight:F,elements:B}){Object.assign(B.floating.style,{maxHeight:`${Math.min(F-10,300)}px`})},padding:8}),vs({element:S})],placement:"bottom-start",whileElementsMounted:$r}),V=vi(D),j=kr(D),{getReferenceProps:U,getFloatingProps:X}=Fr([V,j]),{isMounted:ne,styles:oe}=bi(D,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ge=_.useMemo(()=>m.trim()?w.search(m).map(B=>({...B.item,score:B.score,matches:B.matches})):e,[m,w,e]),ue=F=>{t(F.value),h(!1),p("")},he=U({onClick:()=>{r||(h(!d),!d&&y.current&&u&&setTimeout(()=>{var F;return(F=y.current)==null?void 0:F.focus()},100))}});return v.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[o&&v.jsx("h6",{className:`text-gray-600 font-600 group ${i?"!text-red-500":""} text-label ${r?"text-gray-300":""}`,children:o}),v.jsxs("div",{ref:A.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
776
776
  border transition-all duration-200 ${r?"opacity-60 cursor-not-allowed":"hover:border-blue-400"}
777
- ${i?"border-red-500 hover:border-red-600":""} ${d?"border-blue-400":"border-blue-100"}`,...he,children:[b?v.jsx("div",{className:"flex items-center w-full",children:v.jsx("span",{className:"flex-grow font-600 text-body-m",children:b.label})}):v.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:a}),v.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),i&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:i}),ne&&v.jsxs("div",{ref:A.setFloating,style:{position:$,top:P??0,left:E??0,...le,width:A.reference.current instanceof Element?A.reference.current.clientWidth:void 0,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...J(),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,B)=>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:G=>{G.stopPropagation(),de(V)},children:v.jsx("span",{children:V.label})},`${V.value}-${B}`))}):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(_.isValidElement(e)){const n=e.props.children;return n?Array.isArray(n)?n.map(vl).join(" "):vl(n):""}return Array.isArray(e)?e.map(vl).join(" "):""},Lw=({size:e=100,strokeWidth:t=4,color:n="#1DA696",duration:r=3e3,label:i="",initialProgress:o=0,automaticProgress:a=!0,...c})=>{const[u,d]=_.useState(o),h=(e-t)/2,m=2*Math.PI*h,p=m*(1-u/100),{className:y="",...S}=c;return _.useEffect(()=>{if(!a)return;let b,T;const w=E=>{b||(b=E);const P=E-b,$=Math.min(100,P/r*100);d($),$<100&&(T=requestAnimationFrame(w))};return T=requestAnimationFrame(w),()=>{T&&cancelAnimationFrame(T)}},[r,a]),v.jsxs("div",{...S,className:`relative flex items-center justify-center ${y}`,children:[v.jsxs("svg",{height:e,width:e,className:"transform -rotate-90",children:[v.jsx("circle",{stroke:"#E5E7EB",fill:"transparent",strokeWidth:t,r:h,cx:e/2,cy:e/2}),v.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:m,strokeDashoffset:p,strokeLinecap:"round",r:h,cx:e/2,cy:e/2})]}),v.jsxs("div",{className:"absolute flex flex-col items-center justify-center",children:[i&&v.jsx("div",{className:"text-xs font-medium text-gray-500",children:i}),v.jsxs("div",{className:"text-lg font-semibold",style:{color:n},children:[Math.round(u),"%"]})]})]})},dk=({title:e="drag_and_drop_your_files_here",subtitle:t=null,buttonTitle:n="choose_files",onUpload:r=()=>{},acceptedExtensions:i=["pdf","png","jpg","jpeg","svg","docx","doc","xls","xlsx"],maxSize:o=1024,loading:a=!1,loadingDuration:c=1e4,className:u=""})=>{const{t:d}=Ue(),[h,m]=_.useState(!1),[p,y]=_.useState(""),S=_.useRef(null),b=i.map(k=>`.${k}`).join(","),T=k=>{const F=[];let z=!1;Array.from(k).forEach(J=>{var le;const ne=((le=J.name.split(".").pop())==null?void 0:le.toLowerCase())||"";if(!i.includes(ne)){y(`El archivo ${J.name} tiene una extensión no permitida.`),z=!0;return}if(J.size>o*1024){y(`El archivo ${J.name} excede el tamaño máximo de ${o}KB.`),z=!0;return}F.push(J)}),!z&&F.length>0&&(y(""),r(F))},w=()=>{S.current&&S.current.click()},E=k=>{const F=k.target.files;F&&F.length>0&&T(F),k.target.value=""},P=k=>{k.preventDefault(),k.stopPropagation(),m(!0)},$=k=>{k.preventDefault(),k.stopPropagation(),m(!1)},A=k=>{k.preventDefault(),k.stopPropagation(),h||m(!0)},D=k=>{k.preventDefault(),k.stopPropagation(),m(!1);const F=k.dataTransfer.files;F.length>0&&T(F)};return a?v.jsx("div",{className:`w-full mx-auto font-sans h-full ${u} flex flex-col grow`,children:v.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full flex flex-col grow",children:v.jsxs("div",{className:"h-full grow flex items-center justify-center gap-16 border-[1.4px] border-dashed rounded-2xl pt-28 p-32 text-center transition-all duration-300 border-blue-100 select-none",children:[v.jsx(Lw,{size:75,duration:c,strokeWidth:6,color:"#4570EB"}),v.jsxs("h4",{className:"text-body-s text-gray-400",children:[d("loading"),"..."]})]})})}):v.jsxs("div",{className:`w-full mx-auto font-sans h-full flex flex-col ${u}`,children:[v.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full grow",children:v.jsxs("div",{className:`flex flex-col border-[1.4px] h-full grow border-dashed items-center justify-center rounded-2xl pt-28 p-32 text-center cursor-pointer transition-all duration-300 ${h?"border-blue-400 bg-blue-100/50":"border-blue-100 hover:border-blue-400"}`,onDragEnter:P,onDragLeave:$,onDragOver:A,onDrop:D,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:E})]})]})}),p&&v.jsx("div",{className:"mt-3 text-sm text-red-500 shrink-0",children:p}),v.jsx("div",{className:"mt-10 w-full flex justify-center shrink-0",children:v.jsxs("span",{className:"text-gray-500 font-400 text-base",children:[i.join(", ").toUpperCase()," ",d("formats"),". ",d("maximum_size"),":"," ",wv(o,"mb")]})})]})},ln=8,hk=1e3,mk="300px",pk={top:"bottom",right:"left",bottom:"top",left:"right"},gk={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`}},yk=({children:e,message:t,className:n="",placement:r="top",offset:i=8,delay:o=0})=>{const[a,c]=_.useState(!1),u=_.useRef(null),{x:d,y:h,strategy:m,placement:p,refs:y,context:S,middlewareData:b}=jr({open:a,onOpenChange:c,placement:r,middleware:[Dr(i),Nr(),Rr({padding:8}),vs({element:u})],whileElementsMounted:$r}),T=zR(S,{delay:o}),w=KR(S),E=kr(S),P=ZR(S,{role:"tooltip"}),{getReferenceProps:$,getFloatingProps:A}=Fr([T,w,E,P]),D=p.split("-")[0],k=pk[D],{x:F,y:z}=b.arrow||{x:0,y:0},J=_.cloneElement(e,{ref:y.setReference,...$()});return v.jsxs(v.Fragment,{children:[J,v.jsx(Kn,{children:a&&v.jsx("div",{ref:y.setFloating,style:{position:m,top:h??0,left:d??0,zIndex:hk,width:"max-content",maxWidth:mk},...A(),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",...gk[D]}})]})})})]})},vk=({progress:e=0,showPercentage:t=!0,showPercentageLabel:n=!1,label:r,percentageLabel:i="progreso",percentageClassName:o="",percentageLabelClassName:a="",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:E="#eab308",highColor:P="#22c55e",singleColor:$,clockwise:A=!0,startAngle:D=-90})=>{const k=G=>{if($)return $;if(S&&S.length>0){const O=[...S].sort((N,K)=>N.threshold-K.threshold);for(let N=O.length-1;N>=0;N--)if(G>=O[N].threshold)return O[N].color;return O[0].color}return G<b?w:G<T?E:P},F=G=>{if(!S||S.length===0)return;const O=[...S].sort((N,K)=>N.threshold-K.threshold);for(let N=O.length-1;N>=0;N--)if(G>=O[N].threshold)return O[N].label;return O[0].label},z=Math.min(100,Math.max(0,e)),J=k(z),ne=F(z),le=d/2,ye=(d-h)/2,de=2*Math.PI*ye,ue=de,he=de-z/100*de,B=`rotate(${D} ${le} ${le}) scale(${A?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:le,cy:le,r:ye,fill:"transparent",stroke:m,strokeWidth:h,className:"opacity-20"}),v.jsx("circle",{cx:le,cy:le,r:ye,fill:"transparent",stroke:J,strokeWidth:h,strokeDasharray:ue,strokeDashoffset:he,strokeLinecap:"round",transform:B,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 ${o}`,children:[Math.round(z),"%"]}),(ne||i)&&n&&v.jsx("div",{className:`text-xs text-gray-500 mt-1 ${a}`,children:ne||i})]})})]}),r&&v.jsx("p",{className:`text-gray-500 text-label mt-6 ${c}`,children:r})]})},bk=({progress:e,showPercentage:t=!1,percentageLabel:n="",className:r="",height:i="h-5",backgroundColor:o="bg-gray-200",animated:a=!0,animationDuration:c="duration-300",colorThresholds:u,lowThreshold:d=30,mediumThreshold:h=70,lowColor:m="bg-red-500",mediumColor:p="bg-yellow-500",highColor:y="bg-green-500",singleColor:S})=>{const b=A=>{if(S)return S;if(u&&u.length>0){const D=[...u].sort((k,F)=>k.threshold-F.threshold);for(let k=D.length-1;k>=0;k--)if(A>=D[k].threshold)return D[k].color;return D[0].color}return A<d?m:A<h?p:y},T=A=>{if(!u||u.length===0)return;const D=[...u].sort((k,F)=>k.threshold-F.threshold);for(let k=D.length-1;k>=0;k--)if(A>=D[k].threshold)return D[k].label;return D[0].label},w=Math.min(100,Math.max(0,e)),E=b(w),P=T(w),$=a?`transition-all ${c} ease-in-out`:"";return v.jsxs("div",{className:`w-full flex gap-4 items-center ${r}`,children:[v.jsx("div",{className:`flex-1 ${o} rounded-full ${i} overflow-hidden`,children:v.jsx("div",{className:`h-full ${E} ${$} 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),"%"]}),P&&v.jsxs("span",{className:"text-xs text-gray-500",children:["(",P,")"]}),v.jsx("span",{className:"text-gray-600",children:n})]})]})},xk=({progress:e=0,showPercentage:t=!0,size:n=120,strokeWidth:r=8,color:i="#4570EB",backgroundColor:o="#E4E4E7",label:a,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,E=2*Math.PI*w,P=E,$=E-b/100*E,D=`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:o,strokeWidth:r,className:"opacity-20"}),v.jsx("circle",{cx:T,cy:T,r:w,fill:"transparent",stroke:i,strokeWidth:r,strokeDasharray:P,strokeDashoffset:$,strokeLinecap:"round",transform:D,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})]})})]}),a&&v.jsx("p",{className:`text-gray-500 text-label mt-6 ${u}`,children:a})]})},wk=({active:e,onClick:t})=>{const{defaultColorScheme:n}=Ue();return v.jsxs("button",{onClick:t,className:`
777
+ ${i?"border-red-500 hover:border-red-600":""} ${d?"border-blue-400":"border-blue-100"}`,...he,children:[b?v.jsx("div",{className:"flex items-center w-full",children:v.jsx("span",{className:"flex-grow font-600 text-body-m",children:b.label})}):v.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:a}),v.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),i&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:i}),ne&&v.jsxs("div",{ref:A.setFloating,style:{position:$,top:P??0,left:E??0,...oe,width:A.reference.current instanceof Element?A.reference.current.clientWidth:void 0,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...X(),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:F=>p(F.target.value),onClick:F=>F.stopPropagation(),autoFocus:!0}),m&&v.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:F=>{F.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:ge.length>0?v.jsx("ul",{className:"py-4",children:ge.map((F,B)=>v.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${n===F.value?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:G=>{G.stopPropagation(),ue(F)},children:v.jsx("span",{children:F.label})},`${F.value}-${B}`))}):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(_.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(" "):""},fh=({size:e=100,strokeWidth:t=4,color:n="#1DA696",duration:r=3e3,label:i="",initialProgress:o=0,automaticProgress:a=!0,showProgress:c=!0,...u})=>{const[d,h]=_.useState(o),m=(e-t)/2,p=2*Math.PI*m,y=p*(1-d/100),{className:S="",...b}=u;return _.useEffect(()=>{if(!a)return;let T,w;const E=P=>{T||(T=P);const $=P-T,A=Math.min(100,$/r*100);h(A),A<100&&(w=requestAnimationFrame(E))};return w=requestAnimationFrame(E),()=>{w&&cancelAnimationFrame(w)}},[r,a]),v.jsxs("div",{...b,className:`relative flex items-center justify-center ${S}`,children:[v.jsxs("svg",{height:e,width:e,className:"transform -rotate-90",children:[v.jsx("circle",{stroke:"#E5E7EB",fill:"transparent",strokeWidth:t,r:m,cx:e/2,cy:e/2}),v.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:p,strokeDashoffset:y,strokeLinecap:"round",r:m,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}),c&&v.jsxs("div",{className:"text-lg font-semibold",style:{color:n},children:[Math.round(d),"%"]})]})]})},hL=({title:e="drag_and_drop_your_files_here",subtitle:t=null,buttonTitle:n="choose_files",onUpload:r=()=>{},acceptedExtensions:i=["pdf","png","jpg","jpeg","svg","docx","doc","xls","xlsx"],maxSize:o=1024,loading:a=!1,loadingDuration:c=1e4,className:u="",disabled:d=!1,direction:h="column"})=>{const{t:m}=Ue(),[p,y]=_.useState(!1),[S,b]=_.useState(""),T=_.useRef(null),w=i.map(U=>`.${U}`).join(","),E=U=>{const X=[];let ne=!1;Array.from(U).forEach(oe=>{var ue;const ge=((ue=oe.name.split(".").pop())==null?void 0:ue.toLowerCase())||"";if(!i.includes(ge)){b(`El archivo ${oe.name} tiene una extensión no permitida.`),ne=!0;return}if(oe.size>o*1024){b(`El archivo ${oe.name} excede el tamaño máximo de ${o}KB.`),ne=!0;return}X.push(oe)}),!ne&&X.length>0&&(b(""),r(X))},P=()=>{T.current&&T.current.click()},$=U=>{const X=U.target.files;X&&X.length>0&&E(X),U.target.value=""},A=U=>{U.preventDefault(),U.stopPropagation(),y(!0)},D=U=>{U.preventDefault(),U.stopPropagation(),y(!1)},V=U=>{U.preventDefault(),U.stopPropagation(),p||y(!0)},j=U=>{U.preventDefault(),U.stopPropagation(),y(!1);const X=U.dataTransfer.files;X.length>0&&E(X)};return h==="row"?a?v.jsx("div",{className:`w-full mx-auto h-fit ${u} flex flex-col`,children:v.jsx("div",{className:"bg-blue-50 p-8 rounded-2xl h-full flex flex-col",children:v.jsxs("div",{className:"h-full flex items-center justify-center gap-8 border-[1.4px] border-dashed rounded-2xl px-12 py-10 text-center transition-all duration-300 border-blue-200 select-none",children:[v.jsx(fh,{size:28,showProgress:!1,duration:c,strokeWidth:3,color:"#4570EB"}),v.jsxs("h4",{className:"text-body-s text-gray-400",children:[m("loading"),"..."]})]})})}):v.jsxs("div",{className:`w-full h-fit flex flex-col ${u}`,children:[v.jsx("div",{className:"bg-blue-50 p-8 rounded-2xl h-full",children:v.jsxs("div",{className:`${d&&"hover:cursor-not-allowed! pointer-events-none! opacity-50!"} flex flex-row border-[1.4px] h-full border-dashed items-center justify-between rounded-2xl px-12 py-10 cursor-pointer transition-all duration-300 gap-8 ${p?"border-blue-400 bg-blue-100/50":"border-blue-200 hover:border-blue-400"}`,onDragEnter:A,onDragLeave:D,onDragOver:V,onDrop:j,onClick:P,children:[v.jsx("div",{className:"flex justify-center shrink-0",children:v.jsx(_e,{icon:rN,className:"text-blue-500 text-2xl"})}),v.jsx("div",{className:"flex flex-col items-start text-left grow",children:v.jsx("h3",{className:"font-600 text-lg text-dark",children:m(e)})}),v.jsx("div",{className:"shrink-0",children:v.jsx(ws,{color:"blue",variant:"transparent",children:m(n)})}),v.jsx("input",{type:"file",ref:T,className:"hidden",multiple:!0,accept:w,onChange:$})]})}),S&&v.jsx("div",{className:"mt-3 text-sm text-red-500",children:S})]}):a?v.jsx("div",{className:`w-full mx-auto 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-200 select-none",children:[v.jsx(fh,{size:75,duration:c,strokeWidth:6,color:"#4570EB"}),v.jsxs("h4",{className:"text-body-s text-gray-400",children:[m("loading"),"..."]})]})})}):v.jsxs("div",{className:`w-full mx-auto 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:`${d&&"hover:cursor-not-allowed! pointer-events-none! opacity-50!"} 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 ${p?"border-blue-400 bg-blue-100/50":"border-blue-200 hover:border-blue-400"}`,onDragEnter:A,onDragLeave:D,onDragOver:V,onDrop:j,onClick:P,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:m(e)}),t&&v.jsx("p",{className:"font-400 text-lg text-gray-500",children:m(t)}),v.jsx(L2,{color:"blue",children:m(n)}),v.jsx("input",{type:"file",ref:T,className:"hidden",multiple:!0,accept:w,onChange:$})]})]})}),S&&v.jsx("div",{className:"mt-3 text-sm text-red-500 shrink-0",children:S}),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()," ",m("formats"),". ",m("maximum_size"),":"," ",Sv(o,"mb")]})})]})},ln=8,mL=1e3,pL="300px",gL={top:"bottom",right:"left",bottom:"top",left:"right"},yL={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`}},vL=({children:e,message:t,className:n="",placement:r="top",offset:i=8,delay:o=0})=>{const[a,c]=_.useState(!1),u=_.useRef(null),{x:d,y:h,strategy:m,placement:p,refs:y,context:S,middlewareData:b}=jr({open:a,onOpenChange:c,placement:r,middleware:[Dr(i),Nr(),Rr({padding:8}),vs({element:u})],whileElementsMounted:$r}),T=zR(S,{delay:o}),w=KR(S),E=kr(S),P=ZR(S,{role:"tooltip"}),{getReferenceProps:$,getFloatingProps:A}=Fr([T,w,E,P]),D=p.split("-")[0],V=gL[D],{x:j,y:U}=b.arrow||{x:0,y:0},X=_.cloneElement(e,{ref:y.setReference,...$()});return v.jsxs(v.Fragment,{children:[X,v.jsx(Kn,{children:a&&v.jsx("div",{ref:y.setFloating,style:{position:m,top:h??0,left:d??0,zIndex:mL,width:"max-content",maxWidth:pL},...A(),children:v.jsxs(Ze.div,{className:`py-10 px-16 rounded-xl text-md bg-gray-200 text-gray-800 font-600 shadow-lg ${n} relative`,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.1,ease:"easeOut"},children:[t,v.jsx("div",{ref:u,className:"absolute w-0 h-0 tooltip-arrow-light",style:{position:"absolute",left:j!=null?`${j}px`:"",top:U!=null?`${U}px`:"",[V]:"-7px",...yL[D]}})]})})})]})},bL=({progress:e=0,showPercentage:t=!0,showPercentageLabel:n=!1,label:r,percentageLabel:i="progreso",percentageClassName:o="",percentageLabelClassName:a="",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:E="#eab308",highColor:P="#22c55e",singleColor:$,clockwise:A=!0,startAngle:D=-90})=>{const V=G=>{if($)return $;if(S&&S.length>0){const O=[...S].sort((N,K)=>N.threshold-K.threshold);for(let N=O.length-1;N>=0;N--)if(G>=O[N].threshold)return O[N].color;return O[0].color}return G<b?w:G<T?E:P},j=G=>{if(!S||S.length===0)return;const O=[...S].sort((N,K)=>N.threshold-K.threshold);for(let N=O.length-1;N>=0;N--)if(G>=O[N].threshold)return O[N].label;return O[0].label},U=Math.min(100,Math.max(0,e)),X=V(U),ne=j(U),oe=d/2,ge=(d-h)/2,ue=2*Math.PI*ge,fe=ue,he=ue-U/100*ue,B=`rotate(${D} ${oe} ${oe}) scale(${A?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:oe,cy:oe,r:ge,fill:"transparent",stroke:m,strokeWidth:h,className:"opacity-20"}),v.jsx("circle",{cx:oe,cy:oe,r:ge,fill:"transparent",stroke:X,strokeWidth:h,strokeDasharray:fe,strokeDashoffset:he,strokeLinecap:"round",transform:B,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 ${o}`,children:[Math.round(U),"%"]}),(ne||i)&&n&&v.jsx("div",{className:`text-xs text-gray-500 mt-1 ${a}`,children:ne||i})]})})]}),r&&v.jsx("p",{className:`text-gray-500 text-label mt-6 ${c}`,children:r})]})},xL=({progress:e,showPercentage:t=!1,percentageLabel:n="",className:r="",height:i="h-5",backgroundColor:o="bg-gray-200",animated:a=!0,animationDuration:c="duration-300",colorThresholds:u,lowThreshold:d=30,mediumThreshold:h=70,lowColor:m="bg-red-500",mediumColor:p="bg-yellow-500",highColor:y="bg-green-500",singleColor:S})=>{const b=A=>{if(S)return S;if(u&&u.length>0){const D=[...u].sort((V,j)=>V.threshold-j.threshold);for(let V=D.length-1;V>=0;V--)if(A>=D[V].threshold)return D[V].color;return D[0].color}return A<d?m:A<h?p:y},T=A=>{if(!u||u.length===0)return;const D=[...u].sort((V,j)=>V.threshold-j.threshold);for(let V=D.length-1;V>=0;V--)if(A>=D[V].threshold)return D[V].label;return D[0].label},w=Math.min(100,Math.max(0,e)),E=b(w),P=T(w),$=a?`transition-all ${c} ease-in-out`:"";return v.jsxs("div",{className:`w-full flex gap-4 items-center ${r}`,children:[v.jsx("div",{className:`flex-1 ${o} rounded-full ${i} overflow-hidden`,children:v.jsx("div",{className:`h-full ${E} ${$} 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),"%"]}),P&&v.jsxs("span",{className:"text-xs text-gray-500",children:["(",P,")"]}),v.jsx("span",{className:"text-gray-600",children:n})]})]})},wL=({progress:e=0,showPercentage:t=!0,size:n=120,strokeWidth:r=8,color:i="#4570EB",backgroundColor:o="#E4E4E7",label:a,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,E=2*Math.PI*w,P=E,$=E-b/100*E,D=`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:o,strokeWidth:r,className:"opacity-20"}),v.jsx("circle",{cx:T,cy:T,r:w,fill:"transparent",stroke:i,strokeWidth:r,strokeDasharray:P,strokeDashoffset:$,strokeLinecap:"round",transform:D,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})]})})]}),a&&v.jsx("p",{className:`text-gray-500 text-label mt-6 ${u}`,children:a})]})},SL=({active:e,onClick:t})=>{const{defaultColorScheme:n}=Ue();return v.jsxs("button",{onClick:t,className:`
778
778
  relative inline-flex min-h-24 min-w-48 items-center rounded-full
779
779
  transition-colors duration-200 ease-in-out focus:outline-none
780
780
  shadow-lg
@@ -783,4 +783,4 @@ attempted value: ${a}
783
783
  inline-block h-20 w-20 transform rounded-full bg-white
784
784
  transition-transform duration-200 ease-in-out drop-shadow-xl
785
785
  ${e?"translate-x-24":"translate-x-3"}
786
- `})]})},Sk="Alejo",Tk=({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.AutocompleteInput=EN,se.Avatar=lw,se.BoxContainer=xs,se.Button=jo,se.CalendarSelector=Xd,se.CenterModal=pw,se.Checkbox=FN,se.CircleProgress=xk,se.CountryDropdown=xL,se.CountryInput=vL,se.CountryLabel=bL,se.DateInput=lN,se.DialogModal=nw,se.Divider=mw,se.Dropdown=fN,se.FileUpload=dN,se.FloatingMenu=Lo,se.IconButton=uh,se.ImageProfileInput=TL,se.IndexedStep=iw,se.IndexedStepper=hN,se.InfoCard=CL,se.InformationContainer=sw,se.InformationDisclaimer=AL,se.LoadingProgress=Lw,se.LoadingSpinner=ML,se.ModalContainer=CN,se.Organism=Sk,se.PasswordInput=OL,se.PhoneInput=_L,se.ProgressBar=RL,se.SearchBar=NL,se.SearchModal=pN,se.SectionButton=KL,se.SelectInput=XL,se.SidebarButton=tk,se.Stepper=xN,se.Switch=wk,se.Tab=Rw,se.Tabs=wN,se.TextButton=Nw,se.TextInput=ck,se.TextStaticInput=uk,se.ThemeProvider=Tk,se.ThresholdCircleProgress=vk,se.ThresholdProgressBar=bk,se.Toast=pf,se.Tooltip=yk,se.UncontrolledDateInput=TN,se.UncontrolledSelector=fk,se.UncontrolledTextInput=Zd,se.UploadContainer=dk,se.capitalizeFirstLetter=xv,se.closeModal=MN,se.defaultTheme=Od,se.formatLocalizedDate=c$,se.getImageUrl=Sv,se.openCustomModal=AN,se.openModal=PN,se.renderTabContent=ON,se.showToastAsync=th,se.showToastLoading=aw,se.stringToColor=gf,se.toBase64=u$,se.toast=_N,se.translateBytes=wv,se.useTheme=Ue,se.yupImageProfileValidator=EL,Object.defineProperty(se,Symbol.toStringTag,{value:"Module"})});
786
+ `})]})},TL="Alejo",EL=({theme:e={},children:t})=>{const n={...Od,...e};return v.jsx(xx.Provider,{value:n,children:t})};se.ActionButton=kC,se.AlertModal=wx,se.AsyncToast=nv,se.AutocompleteInput=CN,se.Avatar=c2,se.BoxContainer=xs,se.Button=ws,se.CalendarSelector=Xd,se.CenterModal=g2,se.Checkbox=VN,se.CircleProgress=wL,se.CountryDropdown=w3,se.CountryInput=b3,se.CountryLabel=x3,se.DateInput=cN,se.DialogModal=r2,se.Divider=p2,se.Dropdown=dN,se.FileUpload=hN,se.FloatingMenu=ko,se.IconButton=uh,se.ImageProfileInput=E3,se.IndexedStep=s2,se.IndexedStepper=mN,se.InfoCard=P3,se.InformationContainer=o2,se.InformationDisclaimer=M3,se.LoadingProgress=fh,se.LoadingSpinner=O3,se.ModalContainer=PN,se.Organism=TL,se.PasswordInput=_3,se.PhoneInput=I3,se.ProgressBar=N3,se.SearchBar=L3,se.SearchModal=gN,se.SectionButton=X3,se.SelectInput=Z3,se.SidebarButton=nL,se.Stepper=wN,se.Switch=SL,se.Tab=N2,se.Tabs=SN,se.TextButton=L2,se.TextInput=uL,se.TextStaticInput=fL,se.ThemeProvider=EL,se.ThresholdCircleProgress=bL,se.ThresholdProgressBar=xL,se.Toast=pf,se.Tooltip=vL,se.UncontrolledDateInput=EN,se.UncontrolledSelector=dL,se.UncontrolledTextInput=Zd,se.UploadContainer=hL,se.capitalizeFirstLetter=wv,se.closeModal=ON,se.defaultTheme=Od,se.formatLocalizedDate=c$,se.getImageUrl=Tv,se.openCustomModal=MN,se.openModal=AN,se.renderTabContent=_N,se.showToastAsync=th,se.showToastLoading=l2,se.stringToColor=gf,se.toBase64=u$,se.toast=IN,se.translateBytes=Sv,se.useTheme=Ue,se.yupImageProfileValidator=C3,Object.defineProperty(se,Symbol.toStringTag,{value:"Module"})});