lawgic-dev-kit 0.20.0 → 0.20.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(ne,_){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"],_):(ne=typeof globalThis<"u"?globalThis:ne||self,_(ne.lawgicDevKit={},ne.React,ne.reactHookForm,ne.Fuse,ne.ReactDOM))})(this,function(ne,_,hr,gT,yT){"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 Q=$m(_),vT=$m(yT);var ea=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ta={exports:{}},Fs={};/**
1
+ (function(ne,_){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"],_):(ne=typeof globalThis<"u"?globalThis:ne||self,_(ne.lawgicDevKit={},ne.React,ne.reactHookForm,ne.Fuse,ne.ReactDOM))})(this,function(ne,_,hr,yT,$m){"use strict";function Dm(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 Q=Dm(_),vT=Dm($m);var ea=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ta={exports:{}},Fs={};/**
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 Nm;function xT(){if(Nm)return Fs;Nm=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 Fs.Fragment=t,Fs.jsx=n,Fs.jsxs=n,Fs}var Vs={};/**
9
+ */var km;function xT(){if(km)return Fs;km=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 Fs.Fragment=t,Fs.jsx=n,Fs.jsxs=n,Fs}var Vs={};/**
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 km;function bT(){return km||(km=1,process.env.NODE_ENV!=="production"&&function(){function e(O){if(O==null)return null;if(typeof O=="function")return O.$$typeof===Z?null:O.displayName||O.name||null;if(typeof O=="string")return O;switch(O){case x:return"Fragment";case b:return"Profiler";case T:return"StrictMode";case C: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 E:return(O.displayName||"Context")+".Provider";case A:return(O._context.displayName||"Context")+".Consumer";case $:var k=O.render;return O=O.displayName,O||(O=k.displayName||k.name||"",O=O!==""?"ForwardRef("+O+")":"ForwardRef"),O;case j:return k=O.displayName||null,k!==null?k:e(O.type)||"Memo";case F:k=O._payload,O=O._init;try{return e(O(k))}catch{}}return null}function t(O){return""+O}function n(O){try{t(O);var k=!1}catch{k=!0}if(k){k=console;var K=k.error,ae=typeof Symbol=="function"&&Symbol.toStringTag&&O[Symbol.toStringTag]||O.constructor.name||"Object";return K.call(k,"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===x)return"<>";if(typeof O=="object"&&O!==null&&O.$$typeof===F)return"<...>";try{var k=e(O);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function i(){var O=ee.A;return O===null?null:O.getOwner()}function o(){return Error("react-stack-top-frame")}function a(O){if(se.call(O,"key")){var k=Object.getOwnPropertyDescriptor(O,"key").get;if(k&&k.isReactWarning)return!1}return O.key!==void 0}function c(O,k){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)",k))}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 f(O,k,K,ae,le,z,J,oe){return K=z.ref,O={$$typeof:v,type:O,key:k,props:z,_owner:le},(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:J}),Object.defineProperty(O,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:oe}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O}function h(O,k,K,ae,le,z,J,oe){var re=k.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(se.call(k,"key")){re=e(O);var de=Object.keys(k).filter(function(Ve){return Ve!=="key"});ae=0<de.length?"{key: someKey, "+de.join(": ..., ")+": ...}":"{key: someKey}",Y[re+ae]||(de=0<de.length?"{"+de.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var Lm;function bT(){return Lm||(Lm=1,process.env.NODE_ENV!=="production"&&function(){function e(O){if(O==null)return null;if(typeof O=="function")return O.$$typeof===Z?null:O.displayName||O.name||null;if(typeof O=="string")return O;switch(O){case x:return"Fragment";case b:return"Profiler";case T:return"StrictMode";case C: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 E:return(O.displayName||"Context")+".Provider";case A:return(O._context.displayName||"Context")+".Consumer";case $:var k=O.render;return O=O.displayName,O||(O=k.displayName||k.name||"",O=O!==""?"ForwardRef("+O+")":"ForwardRef"),O;case j:return k=O.displayName||null,k!==null?k:e(O.type)||"Memo";case F:k=O._payload,O=O._init;try{return e(O(k))}catch{}}return null}function t(O){return""+O}function n(O){try{t(O);var k=!1}catch{k=!0}if(k){k=console;var K=k.error,ae=typeof Symbol=="function"&&Symbol.toStringTag&&O[Symbol.toStringTag]||O.constructor.name||"Object";return K.call(k,"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===x)return"<>";if(typeof O=="object"&&O!==null&&O.$$typeof===F)return"<...>";try{var k=e(O);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function i(){var O=ee.A;return O===null?null:O.getOwner()}function o(){return Error("react-stack-top-frame")}function a(O){if(se.call(O,"key")){var k=Object.getOwnPropertyDescriptor(O,"key").get;if(k&&k.isReactWarning)return!1}return O.key!==void 0}function c(O,k){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)",k))}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 f(O,k,K,ae,le,z,J,oe){return K=z.ref,O={$$typeof:v,type:O,key:k,props:z,_owner:le},(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:J}),Object.defineProperty(O,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:oe}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O}function h(O,k,K,ae,le,z,J,oe){var re=k.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(se.call(k,"key")){re=e(O);var de=Object.keys(k).filter(function(Ve){return Ve!=="key"});ae=0<de.length?"{key: someKey, "+de.join(": ..., ")+": ...}":"{key: someKey}",Y[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} />`,ae,re,de,re),Y[re+ae]=!0)}if(re=null,K!==void 0&&(n(K),re=""+K),a(k)&&(n(k.key),re=""+k.key),"key"in k){K={};for(var Ce in k)Ce!=="key"&&(K[Ce]=k[Ce])}else K=k;return re&&c(K,typeof O=="function"?O.displayName||O.name||"Unknown":O),f(O,re,z,le,i(),K,J,oe)}function m(O){typeof O=="object"&&O!==null&&O.$$typeof===v&&O._store&&(O._store.validated=1)}var p=_,v=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),E=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),Z=Symbol.for("react.client.reference"),ee=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se=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={},V=p["react-stack-bottom-frame"].bind(p,o)(),B=ue(r(o)),Y={};Vs.Fragment=x,Vs.jsx=function(O,k,K,ae,le){var z=1e4>ee.recentlyCreatedOwnerStacks++;return h(O,k,K,!1,ae,le,z?Error("react-stack-top-frame"):V,z?ue(r(O)):B)},Vs.jsxs=function(O,k,K,ae,le){var z=1e4>ee.recentlyCreatedOwnerStacks++;return h(O,k,K,!0,ae,le,z?Error("react-stack-top-frame"):V,z?ue(r(O)):B)}}()),Vs}var Lm;function wT(){return Lm||(Lm=1,process.env.NODE_ENV==="production"?ta.exports=xT():ta.exports=bT()),ta.exports}var y=wT();/*!
22
+ <%s key={someKey} {...props} />`,ae,re,de,re),Y[re+ae]=!0)}if(re=null,K!==void 0&&(n(K),re=""+K),a(k)&&(n(k.key),re=""+k.key),"key"in k){K={};for(var Ce in k)Ce!=="key"&&(K[Ce]=k[Ce])}else K=k;return re&&c(K,typeof O=="function"?O.displayName||O.name||"Unknown":O),f(O,re,z,le,i(),K,J,oe)}function m(O){typeof O=="object"&&O!==null&&O.$$typeof===v&&O._store&&(O._store.validated=1)}var p=_,v=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),E=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),Z=Symbol.for("react.client.reference"),ee=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se=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={},V=p["react-stack-bottom-frame"].bind(p,o)(),B=ue(r(o)),Y={};Vs.Fragment=x,Vs.jsx=function(O,k,K,ae,le){var z=1e4>ee.recentlyCreatedOwnerStacks++;return h(O,k,K,!1,ae,le,z?Error("react-stack-top-frame"):V,z?ue(r(O)):B)},Vs.jsxs=function(O,k,K,ae,le){var z=1e4>ee.recentlyCreatedOwnerStacks++;return h(O,k,K,!0,ae,le,z?Error("react-stack-top-frame"):V,z?ue(r(O)):B)}}()),Vs}var Rm;function wT(){return Rm||(Rm=1,process.env.NODE_ENV==="production"?ta.exports=xT():ta.exports=bT()),ta.exports}var y=wT();/*!
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 ST(e,t,n){return(t=ET(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){ST(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 TT(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 ET(e){var t=TT(e,"string");return typeof t=="symbol"?t:t+""}const jm=()=>{};let dc={},Fm={},Vm=null,Bm={mark:jm,measure:jm};try{typeof window<"u"&&(dc=window),typeof document<"u"&&(Fm=document),typeof MutationObserver<"u"&&(Vm=MutationObserver),typeof performance<"u"&&(Bm=performance)}catch{}const{userAgent:Wm=""}=dc.navigator||{},mr=dc,Ze=Fm,Um=Vm,na=Bm;mr.document;const Yn=!!Ze.documentElement&&!!Ze.head&&typeof Ze.addEventListener=="function"&&typeof Ze.createElement=="function",zm=~Wm.indexOf("MSIE")||~Wm.indexOf("Trident/");var CT=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,PT=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Gm={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"}},AT={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Ym=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",ra="duotone",MT="sharp",OT="sharp-duotone",Hm=[wt,ra,MT,OT],_T={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"}},IT={"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"}},$T=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}]]),DT={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"}},NT=["fak","fa-kit","fakd","fa-kit-duotone"],qm={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},kT=["kit"],LT={kit:{"fa-kit":"fak"}},RT=["fak","fakd"],jT={kit:{fak:"fa-kit"}},Km={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},ia={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},FT=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],VT=["fak","fa-kit","fakd","fa-kit-duotone"],BT={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},WT={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"}},UT={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},hc={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"}},zT=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],mc=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...FT,...zT],GT=["solid","regular","light","thin","duotone","brands"],Xm=[1,2,3,4,5,6,7,8,9,10],YT=Xm.concat([11,12,13,14,15,16,17,18,19,20]),HT=[...Object.keys(UT),...GT,"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(Xm.map(e=>"".concat(e,"x"))).concat(YT.map(e=>"w-".concat(e))),qT={"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 Hn="___FONT_AWESOME___",pc=16,Zm="fa",Jm="svg-inline--fa",Jr="data-fa-i2svg",gc="data-fa-pseudo-element",KT="data-fa-pseudo-element-pending",yc="data-prefix",vc="data-icon",Qm="fontawesome-i2svg",XT="async",ZT=["HTML","HEAD","STYLE","SCRIPT"],ep=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Bs(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const tp=te({},Gm);tp[wt]=te(te(te(te({},{"fa-duotone":"duotone"}),Gm[wt]),qm.kit),qm["kit-duotone"]);const JT=Bs(tp),xc=te({},DT);xc[wt]=te(te(te(te({},{duotone:"fad"}),xc[wt]),Km.kit),Km["kit-duotone"]);const np=Bs(xc),bc=te({},hc);bc[wt]=te(te({},bc[wt]),jT.kit);const wc=Bs(bc),Sc=te({},WT);Sc[wt]=te(te({},Sc[wt]),LT.kit),Bs(Sc);const QT=CT,rp="fa-layers-text",eE=PT,tE=te({},_T);Bs(tE);const nE=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Tc=AT,rE=[...kT,...HT],Ws=mr.FontAwesomeConfig||{};function iE(e){var t=Ze.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function sE(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Ze&&typeof Ze.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=sE(iE(n));i!=null&&(Ws[r]=i)});const ip={styleDefault:"solid",familyDefault:wt,cssPrefix:Zm,replacementClass:Jm,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ws.familyPrefix&&(Ws.cssPrefix=Ws.familyPrefix);const Ri=te(te({},ip),Ws);Ri.autoReplaceSvg||(Ri.observeMutations=!1);const ve={};Object.keys(ip).forEach(e=>{Object.defineProperty(ve,e,{enumerable:!0,set:function(t){Ri[e]=t,Us.forEach(n=>n(ve))},get:function(){return Ri[e]}})}),Object.defineProperty(ve,"familyPrefix",{enumerable:!0,set:function(e){Ri.cssPrefix=e,Us.forEach(t=>t(ve))},get:function(){return Ri.cssPrefix}}),mr.FontAwesomeConfig=ve;const Us=[];function oE(e){return Us.push(e),()=>{Us.splice(Us.indexOf(e),1)}}const pr=pc,Pn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function aE(e){if(!e||!Yn)return;const t=Ze.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Ze.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 Ze.head.insertBefore(t,r),e}const lE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function zs(){let e=12,t="";for(;e-- >0;)t+=lE[Math.random()*62|0];return t}function ji(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Ec(e){return e.classList?ji(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function sp(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function cE(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(sp(e[n]),'" '),"").trim()}function sa(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Cc(e){return e.size!==Pn.size||e.x!==Pn.x||e.y!==Pn.y||e.rotate!==Pn.rotate||e.flipX||e.flipY}function uE(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)},f={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:u,path:f}}function fE(e){let{transform:t,width:n=pc,height:r=pc,startCentered:i=!1}=e,o="";return i&&zm?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 dE=`:root, :host {
26
+ */function ST(e,t,n){return(t=ET(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jm(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?jm(Object(n),!0).forEach(function(r){ST(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TT(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 ET(e){var t=TT(e,"string");return typeof t=="symbol"?t:t+""}const Fm=()=>{};let dc={},Vm={},Bm=null,Wm={mark:Fm,measure:Fm};try{typeof window<"u"&&(dc=window),typeof document<"u"&&(Vm=document),typeof MutationObserver<"u"&&(Bm=MutationObserver),typeof performance<"u"&&(Wm=performance)}catch{}const{userAgent:Um=""}=dc.navigator||{},mr=dc,Ze=Vm,zm=Bm,na=Wm;mr.document;const Yn=!!Ze.documentElement&&!!Ze.head&&typeof Ze.addEventListener=="function"&&typeof Ze.createElement=="function",Gm=~Um.indexOf("MSIE")||~Um.indexOf("Trident/");var CT=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,PT=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Ym={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"}},AT={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Hm=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",ra="duotone",MT="sharp",OT="sharp-duotone",qm=[wt,ra,MT,OT],_T={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"}},IT={"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"}},$T=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}]]),DT={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"}},NT=["fak","fa-kit","fakd","fa-kit-duotone"],Km={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},kT=["kit"],LT={kit:{"fa-kit":"fak"}},RT=["fak","fakd"],jT={kit:{fak:"fa-kit"}},Xm={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},ia={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},FT=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],VT=["fak","fa-kit","fakd","fa-kit-duotone"],BT={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},WT={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"}},UT={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},hc={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"}},zT=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],mc=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...FT,...zT],GT=["solid","regular","light","thin","duotone","brands"],Zm=[1,2,3,4,5,6,7,8,9,10],YT=Zm.concat([11,12,13,14,15,16,17,18,19,20]),HT=[...Object.keys(UT),...GT,"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(Zm.map(e=>"".concat(e,"x"))).concat(YT.map(e=>"w-".concat(e))),qT={"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 Hn="___FONT_AWESOME___",pc=16,Jm="fa",Qm="svg-inline--fa",Jr="data-fa-i2svg",gc="data-fa-pseudo-element",KT="data-fa-pseudo-element-pending",yc="data-prefix",vc="data-icon",ep="fontawesome-i2svg",XT="async",ZT=["HTML","HEAD","STYLE","SCRIPT"],tp=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Bs(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const np=te({},Ym);np[wt]=te(te(te(te({},{"fa-duotone":"duotone"}),Ym[wt]),Km.kit),Km["kit-duotone"]);const JT=Bs(np),xc=te({},DT);xc[wt]=te(te(te(te({},{duotone:"fad"}),xc[wt]),Xm.kit),Xm["kit-duotone"]);const rp=Bs(xc),bc=te({},hc);bc[wt]=te(te({},bc[wt]),jT.kit);const wc=Bs(bc),Sc=te({},WT);Sc[wt]=te(te({},Sc[wt]),LT.kit),Bs(Sc);const QT=CT,ip="fa-layers-text",eE=PT,tE=te({},_T);Bs(tE);const nE=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Tc=AT,rE=[...kT,...HT],Ws=mr.FontAwesomeConfig||{};function iE(e){var t=Ze.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function sE(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Ze&&typeof Ze.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=sE(iE(n));i!=null&&(Ws[r]=i)});const sp={styleDefault:"solid",familyDefault:wt,cssPrefix:Jm,replacementClass:Qm,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ws.familyPrefix&&(Ws.cssPrefix=Ws.familyPrefix);const Ri=te(te({},sp),Ws);Ri.autoReplaceSvg||(Ri.observeMutations=!1);const ve={};Object.keys(sp).forEach(e=>{Object.defineProperty(ve,e,{enumerable:!0,set:function(t){Ri[e]=t,Us.forEach(n=>n(ve))},get:function(){return Ri[e]}})}),Object.defineProperty(ve,"familyPrefix",{enumerable:!0,set:function(e){Ri.cssPrefix=e,Us.forEach(t=>t(ve))},get:function(){return Ri.cssPrefix}}),mr.FontAwesomeConfig=ve;const Us=[];function oE(e){return Us.push(e),()=>{Us.splice(Us.indexOf(e),1)}}const pr=pc,Pn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function aE(e){if(!e||!Yn)return;const t=Ze.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Ze.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 Ze.head.insertBefore(t,r),e}const lE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function zs(){let e=12,t="";for(;e-- >0;)t+=lE[Math.random()*62|0];return t}function ji(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Ec(e){return e.classList?ji(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function op(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function cE(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(op(e[n]),'" '),"").trim()}function sa(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Cc(e){return e.size!==Pn.size||e.x!==Pn.x||e.y!==Pn.y||e.rotate!==Pn.rotate||e.flipX||e.flipY}function uE(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)},f={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:u,path:f}}function fE(e){let{transform:t,width:n=pc,height:r=pc,startCentered:i=!1}=e,o="";return i&&Gm?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 dE=`:root, :host {
27
27
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
28
28
  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
29
29
  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
@@ -576,29 +576,29 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
576
576
  .svg-inline--fa mask .fa-primary,
577
577
  .svg-inline--fa mask .fa-secondary {
578
578
  fill: black;
579
- }`;function op(){const e=Zm,t=Jm,n=ve.cssPrefix,r=ve.replacementClass;let i=dE;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 ap=!1;function Pc(){ve.autoAddCss&&!ap&&(aE(op()),ap=!0)}var hE={mixout(){return{dom:{css:op,insertCss:Pc}}},hooks(){return{beforeDOMElementCreation(){Pc()},beforeI2svg(){Pc()}}}};const qn=mr||{};qn[Hn]||(qn[Hn]={}),qn[Hn].styles||(qn[Hn].styles={}),qn[Hn].hooks||(qn[Hn].hooks={}),qn[Hn].shims||(qn[Hn].shims=[]);var An=qn[Hn];const lp=[],cp=function(){Ze.removeEventListener("DOMContentLoaded",cp),oa=1,lp.map(e=>e())};let oa=!1;Yn&&(oa=(Ze.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ze.readyState),oa||Ze.addEventListener("DOMContentLoaded",cp));function mE(e){Yn&&(oa?setTimeout(e,0):lp.push(e))}function Gs(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?sp(e):"<".concat(t," ").concat(cE(n),">").concat(r.map(Gs).join(""),"</").concat(t,">")}function up(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Ac=function(t,n,r,i){var o=Object.keys(t),a=o.length,c=n,u,f,h;for(r===void 0?(u=1,h=t[o[0]]):(u=0,h=r);u<a;u++)f=o[u],h=c(h,t[f],f,t);return h};function pE(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 Mc(e){const t=pE(e);return t.length===1?t[0].toString(16):null}function gE(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 fp(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function Oc(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=fp(t);typeof An.hooks.addPack=="function"&&!r?An.hooks.addPack(e,fp(t)):An.styles[e]=te(te({},An.styles[e]||{}),i),e==="fas"&&Oc("fa",t)}const{styles:Ys,shims:yE}=An,dp=Object.keys(wc),vE=dp.reduce((e,t)=>(e[t]=Object.keys(wc[t]),e),{});let _c=null,hp={},mp={},pp={},gp={},yp={};function xE(e){return~rE.indexOf(e)}function bE(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!xE(i)?i:null}const vp=()=>{const e=r=>Ac(Ys,(i,o,a)=>(i[a]=Ac(o,r,{}),i),{});hp=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)),mp=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(c=>typeof c=="string").forEach(c=>{r[c]=o}),r)),yp=e((r,i,o)=>{const a=i[2];return r[o]=o,a.forEach(c=>{r[c]=o}),r});const t="far"in Ys||ve.autoFetchSvg,n=Ac(yE,(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:{}});pp=n.names,gp=n.unicodes,_c=aa(ve.styleDefault,{family:ve.familyDefault})};oE(e=>{_c=aa(e.styleDefault,{family:ve.familyDefault})}),vp();function Ic(e,t){return(hp[e]||{})[t]}function wE(e,t){return(mp[e]||{})[t]}function Qr(e,t){return(yp[e]||{})[t]}function xp(e){return pp[e]||{prefix:null,iconName:null}}function SE(e){const t=gp[e],n=Ic("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function gr(){return _c}const bp=()=>({prefix:null,iconName:null,rest:[]});function TE(e){let t=wt;const n=dp.reduce((r,i)=>(r[i]="".concat(ve.cssPrefix,"-").concat(i),r),{});return Hm.forEach(r=>{(e.includes(n[r])||e.some(i=>vE[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=JT[n][e];if(n===ra&&!e)return"fad";const i=np[n][e]||np[n][r],o=e in An.styles?e:null;return i||o||null}function EE(e){let t=[],n=null;return e.forEach(r=>{const i=bE(ve.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function wp(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=mc.concat(VT),o=wp(e.filter(m=>i.includes(m))),a=wp(e.filter(m=>!mc.includes(m))),c=o.filter(m=>(r=m,!Ym.includes(m))),[u=null]=c,f=TE(o),h=te(te({},EE(a)),{},{prefix:aa(u,{family:f})});return te(te(te({},h),ME({values:e,family:f,styles:Ys,config:ve,canonical:h,givenPrefix:r})),CE(n,r,h))}function CE(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const o=t==="fa"?xp(i):{},a=Qr(r,i);return i=o.iconName||a||i,r=o.prefix||r,r==="far"&&!Ys.far&&Ys.fas&&!ve.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const PE=Hm.filter(e=>e!==wt||e!==ra),AE=Object.keys(hc).filter(e=>e!==wt).map(e=>Object.keys(hc[e])).flat();function ME(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"),f=a.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!c&&(u||f||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&PE.includes(n)&&(Object.keys(o).find(p=>AE.includes(p))||a.autoFetchSvg)){const p=$T.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 OE{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]),Oc(o,i[o]);const a=wc[wt][o];a&&Oc(a,i[o]),vp()})}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(f=>{typeof f=="string"&&(t[o][f]=c)}),t[o][a]=c}),t}}let Sp=[],Fi={};const Vi={},_E=Object.keys(Vi);function IE(e,t){let{mixoutsTo:n}=t;return Sp=e,Fi={},Object.keys(Vi).forEach(r=>{_E.indexOf(r)===-1&&delete Vi[r]}),Sp.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=>{Fi[a]||(Fi[a]=[]),Fi[a].push(o[a])})}r.provides&&r.provides(Vi)}),n}function $c(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(Fi[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];(Fi[e]||[]).forEach(o=>{o.apply(null,n)})}function yr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Vi[e]?Vi[e].apply(null,t):void 0}function Dc(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||gr();if(t)return t=Qr(n,t)||t,up(Tp.definitions,n,t)||up(An.styles,n,t)}const Tp=new OE,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 Yn?(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,mE(()=>{$E({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(QT))){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:Tp,findIconDefinition:Dc,toHtml:Gs},$E=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Ze}=e;(Object.keys(An.styles).length>0||ve.autoFetchSvg)&&Yn&&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=>Gs(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Yn)return;const n=Ze.createElement("div");return n.innerHTML=e.html,n.children}}),e}function DE(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(Cc(a)&&n.found&&!r.found){const{width:c,height:u}=n,f={x:c/u/2,y:.5};i.style=sa(te(te({},o),{},{"transform-origin":"".concat(f.x+a.x/16,"em ").concat(f.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function NE(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 Nc(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:a,title:c,maskId:u,titleId:f,extra:h,watchable:m=!1}=e,{width:p,height:v}=n.found?n:t,S=RT.includes(r),x=[ve.replacementClass,i?"".concat(ve.cssPrefix,"-").concat(i):""].filter(C=>h.classes.indexOf(C)===-1).filter(C=>C!==""||!!C).concat(h.classes).join(" ");let T={children:[],attributes:te(te({},h.attributes),{},{"data-prefix":r,"data-icon":i,class:x,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat(v)})};const b=S&&!~h.classes.indexOf("fa-fw")?{width:"".concat(p/v*16*.0625,"em")}:{};m&&(T.attributes[Jr]=""),c&&(T.children.push({tag:"title",attributes:{id:T.attributes["aria-labelledby"]||"title-".concat(f||zs())},children:[c]}),delete T.attributes.title);const A=te(te({},T),{},{prefix:r,iconName:i,main:t,mask:n,maskId:u,transform:o,symbol:a,styles:te(te({},b),h.styles)}),{children:E,attributes:$}=n.found&&t.found?yr("generateAbstractMask",A)||{children:[],attributes:{}}:yr("generateAbstractIcon",A)||{children:[],attributes:{}};return A.children=E,A.attributes=$,a?NE(A):DE(A)}function Ep(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 f=te({},a.styles);Cc(i)&&(f.transform=fE({transform:i,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);const h=sa(f);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 kE(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:kc}=An;function Lc(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(Tc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat(Tc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat(Tc.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const LE={found:!1,width:512,height:512};function RE(e,t){!ep&&!ve.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Rc(e,t){let n=t;return t==="fa"&&ve.styleDefault!==null&&(t=gr()),new Promise((r,i)=>{if(n==="fa"){const o=xp(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&kc[t]&&kc[t][e]){const o=kc[t][e];return r(Lc(o))}RE(e,t),r(te(te({},LE),{},{icon:ve.showMissingIcons&&e?yr("missingIconAbstract")||{}:{}}))})}const Cp=()=>{},jc=ve.measurePerformance&&na&&na.mark&&na.measure?na:{mark:Cp,measure:Cp},Hs='FA "6.7.2"',jE=e=>(jc.mark("".concat(Hs," ").concat(e," begins")),()=>Pp(e)),Pp=e=>{jc.mark("".concat(Hs," ").concat(e," ends")),jc.measure("".concat(Hs," ").concat(e),"".concat(Hs," ").concat(e," begins"),"".concat(Hs," ").concat(e," ends"))};var Fc={begin:jE,end:Pp};const ua=()=>{};function Ap(e){return typeof(e.getAttribute?e.getAttribute(Jr):null)=="string"}function FE(e){const t=e.getAttribute?e.getAttribute(yc):null,n=e.getAttribute?e.getAttribute(vc):null;return t&&n}function VE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ve.replacementClass)}function BE(){return ve.autoReplaceSvg===!0?fa.replace:fa[ve.autoReplaceSvg]||fa.replace}function WE(e){return Ze.createElementNS("http://www.w3.org/2000/svg",e)}function UE(e){return Ze.createElement(e)}function Mp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?WE:UE}=t;if(typeof e=="string")return Ze.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(Mp(o,{ceFn:n}))}),r}function zE(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(Mp(n),t)}),t.getAttribute(Jr)===null&&ve.keepOriginalSource){let n=Ze.createComment(zE(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Ec(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=>Gs(o)).join(`
580
- `);t.setAttribute(Jr,""),t.innerHTML=i}};function Op(e){e()}function _p(e,t){const n=typeof t=="function"?t:ua;if(e.length===0)n();else{let r=Op;ve.mutateApproach===XT&&(r=mr.requestAnimationFrame||Op),r(()=>{const i=BE(),o=Fc.begin("mutate");e.map(i),o(),n()})}}let Vc=!1;function Ip(){Vc=!0}function Bc(){Vc=!1}let da=null;function $p(e){if(!Um||!ve.observeMutations)return;const{treeCallback:t=ua,nodeCallback:n=ua,pseudoElementsCallback:r=ua,observeMutationsRoot:i=Ze}=e;da=new Um(o=>{if(Vc)return;const a=gr();ji(o).forEach(c=>{if(c.type==="childList"&&c.addedNodes.length>0&&!Ap(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"&&Ap(c.target)&&~nE.indexOf(c.attributeName))if(c.attributeName==="class"&&FE(c.target)){const{prefix:u,iconName:f}=la(Ec(c.target));c.target.setAttribute(yc,u||a),f&&c.target.setAttribute(vc,f)}else VE(c.target)&&n(c.target)})}),Yn&&da.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function GE(){da&&da.disconnect()}function YE(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 HE(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=la(Ec(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=wE(i.prefix,e.innerText)||Ic(i.prefix,Mc(e.innerText))),!i.iconName&&ve.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function qE(e){const t=ji(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||zs()):(t["aria-hidden"]="true",t.focusable="false")),t}function KE(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Pn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Dp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=HE(e),o=qE(e),a=$c("parseNodeAttributes",{},e);let c=t.styleParser?YE(e):[];return te({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Pn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:c,attributes:o}},a)}const{styles:XE}=An;function Np(e){const t=ve.autoReplaceSvg==="nest"?Dp(e,{styleParser:!1}):Dp(e);return~t.extra.classes.indexOf(rp)?yr("generateLayersText",e,t):yr("generateSvgReplacementMutation",e,t)}function ZE(){return[...NT,...mc]}function kp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Yn)return Promise.resolve();const n=Ze.documentElement.classList,r=h=>n.add("".concat(Qm,"-").concat(h)),i=h=>n.remove("".concat(Qm,"-").concat(h)),o=ve.autoFetchSvg?ZE():Ym.concat(Object.keys(XE));o.includes("fa")||o.push("fa");const a=[".".concat(rp,":not([").concat(Jr,"])")].concat(o.map(h=>".".concat(h,":not([").concat(Jr,"])"))).join(", ");if(a.length===0)return Promise.resolve();let c=[];try{c=ji(e.querySelectorAll(a))}catch{}if(c.length>0)r("pending"),i("complete");else return Promise.resolve();const u=Fc.begin("onTree"),f=c.reduce((h,m)=>{try{const p=Np(m);p&&h.push(p)}catch(p){ep||p.name==="MissingIcon"&&console.error(p)}return h},[]);return new Promise((h,m)=>{Promise.all(f).then(p=>{_p(p,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),u(),h()})}).catch(p=>{u(),m(p)})})}function JE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Np(e).then(n=>{n&&_p([n],t)})}function QE(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:Dc(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:Dc(i||{})),e(r,te(te({},n),{},{mask:i}))}}const eC=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Pn,symbol:r=!1,mask:i=null,maskId:o=null,title:a=null,titleId:c=null,classes:u=[],attributes:f={},styles:h={}}=t;if(!e)return;const{prefix:m,iconName:p,icon:v}=e;return ca(te({type:"icon"},e),()=>(ei("beforeDOMElementCreation",{iconDefinition:e,params:t}),ve.autoA11y&&(a?f["aria-labelledby"]="".concat(ve.replacementClass,"-title-").concat(c||zs()):(f["aria-hidden"]="true",f.focusable="false")),Nc({icons:{main:Lc(v),mask:i?Lc(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:m,iconName:p,transform:te(te({},Pn),n),symbol:r,title:a,maskId:o,titleId:c,extra:{attributes:f,styles:h,classes:u}})))};var tC={mixout(){return{icon:QE(eC)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=kp,e.nodeCallback=JE,e}}},provides(e){e.i2svg=function(t){const{node:n=Ze,callback:r=()=>{}}=t;return kp(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:i,titleId:o,prefix:a,transform:c,symbol:u,mask:f,maskId:h,extra:m}=n;return new Promise((p,v)=>{Promise.all([Rc(r,a),f.iconName?Rc(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(S=>{let[x,T]=S;p([t,Nc({icons:{main:x,mask:T},prefix:a,iconName:r,transform:c,symbol:u,maskId:h,title:i,titleId:o,extra:m,watchable:!0})])}).catch(v)})},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 Cc(o)&&(u=yr("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(u||i.icon),{children:n,attributes:r}}}},nC={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}]})}}}},rC={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}),kE({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(ve.cssPrefix,"-layers-counter"),...r]}})))}}}},iC={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Pn,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return ca({type:"text",content:e},()=>(ei("beforeDOMElementCreation",{content:e,params:t}),Ep({content:e,transform:te(te({},Pn),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(zm){const u=parseInt(getComputedStyle(t).fontSize,10),f=t.getBoundingClientRect();a=f.width/u,c=f.height/u}return ve.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,Ep({content:t.innerHTML,width:a,height:c,transform:i,title:r,extra:o,watchable:!0})])}}};const sC=new RegExp('"',"ug"),Lp=[1105920,1112319],Rp=te(te(te(te({},{FontAwesome:{normal:"fas",400:"fas"}}),IT),qT),BT),Wc=Object.keys(Rp).reduce((e,t)=>(e[t.toLowerCase()]=Rp[t],e),{}),oC=Object.keys(Wc).reduce((e,t)=>{const n=Wc[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function aC(e){const t=e.replace(sC,""),n=gE(t,0),r=n>=Lp[0]&&n<=Lp[1],i=t.length===2?t[0]===t[1]:!1;return{value:Mc(i?t[0]:t),isSecondary:r||i}}function lC(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Wc[n]||{})[i]||oC[n]}function jp(e,t){const n="".concat(KT).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const a=ji(e.children).filter(p=>p.getAttribute(gc)===t)[0],c=mr.getComputedStyle(e,t),u=c.getPropertyValue("font-family"),f=u.match(eE),h=c.getPropertyValue("font-weight"),m=c.getPropertyValue("content");if(a&&!f)return e.removeChild(a),r();if(f&&m!=="none"&&m!==""){const p=c.getPropertyValue("content");let v=lC(u,h);const{value:S,isSecondary:x}=aC(p),T=f[0].startsWith("FontAwesome");let b=Ic(v,S),A=b;if(T){const E=SE(S);E.iconName&&E.prefix&&(b=E.iconName,v=E.prefix)}if(b&&!x&&(!a||a.getAttribute(yc)!==v||a.getAttribute(vc)!==A)){e.setAttribute(n,A),a&&e.removeChild(a);const E=KE(),{extra:$}=E;$.attributes[gc]=t,Rc(b,v).then(C=>{const D=Nc(te(te({},E),{},{icons:{main:C,mask:bp()},prefix:v,iconName:A,extra:$,watchable:!0})),j=Ze.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(j,e.firstChild):e.appendChild(j),j.outerHTML=D.map(F=>Gs(F)).join(`
581
- `),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function cC(e){return Promise.all([jp(e,"::before"),jp(e,"::after")])}function uC(e){return e.parentNode!==document.head&&!~ZT.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(gc)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Fp(e){if(Yn)return new Promise((t,n)=>{const r=ji(e.querySelectorAll("*")).filter(uC).map(cC),i=Fc.begin("searchPseudoElements");Ip(),Promise.all(r).then(()=>{i(),Bc(),t()}).catch(()=>{i(),Bc(),n()})})}var fC={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Fp,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=Ze}=t;ve.searchPseudoElements&&Fp(n)}}};let Vp=!1;var dC={mixout(){return{dom:{unwatch(){Ip(),Vp=!0}}}},hooks(){return{bootstrap(){$p($c("mutationObserverCallbacks",{}))},noAuto(){GE()},watch(e){const{observeMutationsRoot:t}=e;Vp?Bc():$p($c("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const Bp=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 hC={mixout(){return{parse:{transform:e=>Bp(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Bp(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),") "),f="rotate(".concat(r.rotate," 0 0)"),h={transform:"".concat(c," ").concat(u," ").concat(f)},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 Uc={x:0,y:0,width:"100%",height:"100%"};function Wp(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 mC(e){return e.tag==="g"?e.children:[e]}var pC={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?la(n.split(" ").map(i=>i.trim())):bp();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:f}=i,{width:h,icon:m}=o,p=uE({transform:c,containerWidth:h,iconWidth:u}),v={tag:"rect",attributes:te(te({},Uc),{},{fill:"white"})},S=f.children?{children:f.children.map(Wp)}:{},x={tag:"g",attributes:te({},p.inner),children:[Wp(te({tag:f.tag,attributes:te(te({},f.attributes),p.path)},S))]},T={tag:"g",attributes:te({},p.outer),children:[x]},b="mask-".concat(a||zs()),A="clip-".concat(a||zs()),E={tag:"mask",attributes:te(te({},Uc),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,T]},$={tag:"defs",children:[{tag:"clipPath",attributes:{id:A},children:mC(m)},E]};return n.push($,{tag:"rect",attributes:te({fill:"currentColor","clip-path":"url(#".concat(A,")"),mask:"url(#".concat(b,")")},Uc)}),{children:n,attributes:r}}}},gC={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}}}},yC={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},vC=[hE,tC,nC,rC,iC,fC,dC,hC,pC,gC,yC];IE(vC,{mixoutsTo:zt}),zt.noAuto,zt.config,zt.library,zt.dom;const zc=zt.parse;zt.findIconDefinition,zt.toHtml;const xC=zt.icon;zt.layer,zt.text,zt.counter;var ha={exports:{}},ma={exports:{}},je={};/** @license React v16.13.1
579
+ }`;function ap(){const e=Jm,t=Qm,n=ve.cssPrefix,r=ve.replacementClass;let i=dE;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 lp=!1;function Pc(){ve.autoAddCss&&!lp&&(aE(ap()),lp=!0)}var hE={mixout(){return{dom:{css:ap,insertCss:Pc}}},hooks(){return{beforeDOMElementCreation(){Pc()},beforeI2svg(){Pc()}}}};const qn=mr||{};qn[Hn]||(qn[Hn]={}),qn[Hn].styles||(qn[Hn].styles={}),qn[Hn].hooks||(qn[Hn].hooks={}),qn[Hn].shims||(qn[Hn].shims=[]);var An=qn[Hn];const cp=[],up=function(){Ze.removeEventListener("DOMContentLoaded",up),oa=1,cp.map(e=>e())};let oa=!1;Yn&&(oa=(Ze.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ze.readyState),oa||Ze.addEventListener("DOMContentLoaded",up));function mE(e){Yn&&(oa?setTimeout(e,0):cp.push(e))}function Gs(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?op(e):"<".concat(t," ").concat(cE(n),">").concat(r.map(Gs).join(""),"</").concat(t,">")}function fp(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Ac=function(t,n,r,i){var o=Object.keys(t),a=o.length,c=n,u,f,h;for(r===void 0?(u=1,h=t[o[0]]):(u=0,h=r);u<a;u++)f=o[u],h=c(h,t[f],f,t);return h};function pE(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 Mc(e){const t=pE(e);return t.length===1?t[0].toString(16):null}function gE(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 dp(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function Oc(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=dp(t);typeof An.hooks.addPack=="function"&&!r?An.hooks.addPack(e,dp(t)):An.styles[e]=te(te({},An.styles[e]||{}),i),e==="fas"&&Oc("fa",t)}const{styles:Ys,shims:yE}=An,hp=Object.keys(wc),vE=hp.reduce((e,t)=>(e[t]=Object.keys(wc[t]),e),{});let _c=null,mp={},pp={},gp={},yp={},vp={};function xE(e){return~rE.indexOf(e)}function bE(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!xE(i)?i:null}const xp=()=>{const e=r=>Ac(Ys,(i,o,a)=>(i[a]=Ac(o,r,{}),i),{});mp=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)),pp=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(c=>typeof c=="string").forEach(c=>{r[c]=o}),r)),vp=e((r,i,o)=>{const a=i[2];return r[o]=o,a.forEach(c=>{r[c]=o}),r});const t="far"in Ys||ve.autoFetchSvg,n=Ac(yE,(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:{}});gp=n.names,yp=n.unicodes,_c=aa(ve.styleDefault,{family:ve.familyDefault})};oE(e=>{_c=aa(e.styleDefault,{family:ve.familyDefault})}),xp();function Ic(e,t){return(mp[e]||{})[t]}function wE(e,t){return(pp[e]||{})[t]}function Qr(e,t){return(vp[e]||{})[t]}function bp(e){return gp[e]||{prefix:null,iconName:null}}function SE(e){const t=yp[e],n=Ic("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function gr(){return _c}const wp=()=>({prefix:null,iconName:null,rest:[]});function TE(e){let t=wt;const n=hp.reduce((r,i)=>(r[i]="".concat(ve.cssPrefix,"-").concat(i),r),{});return qm.forEach(r=>{(e.includes(n[r])||e.some(i=>vE[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=JT[n][e];if(n===ra&&!e)return"fad";const i=rp[n][e]||rp[n][r],o=e in An.styles?e:null;return i||o||null}function EE(e){let t=[],n=null;return e.forEach(r=>{const i=bE(ve.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function Sp(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=mc.concat(VT),o=Sp(e.filter(m=>i.includes(m))),a=Sp(e.filter(m=>!mc.includes(m))),c=o.filter(m=>(r=m,!Hm.includes(m))),[u=null]=c,f=TE(o),h=te(te({},EE(a)),{},{prefix:aa(u,{family:f})});return te(te(te({},h),ME({values:e,family:f,styles:Ys,config:ve,canonical:h,givenPrefix:r})),CE(n,r,h))}function CE(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const o=t==="fa"?bp(i):{},a=Qr(r,i);return i=o.iconName||a||i,r=o.prefix||r,r==="far"&&!Ys.far&&Ys.fas&&!ve.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const PE=qm.filter(e=>e!==wt||e!==ra),AE=Object.keys(hc).filter(e=>e!==wt).map(e=>Object.keys(hc[e])).flat();function ME(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"),f=a.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!c&&(u||f||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&PE.includes(n)&&(Object.keys(o).find(p=>AE.includes(p))||a.autoFetchSvg)){const p=$T.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 OE{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]),Oc(o,i[o]);const a=wc[wt][o];a&&Oc(a,i[o]),xp()})}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(f=>{typeof f=="string"&&(t[o][f]=c)}),t[o][a]=c}),t}}let Tp=[],Fi={};const Vi={},_E=Object.keys(Vi);function IE(e,t){let{mixoutsTo:n}=t;return Tp=e,Fi={},Object.keys(Vi).forEach(r=>{_E.indexOf(r)===-1&&delete Vi[r]}),Tp.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=>{Fi[a]||(Fi[a]=[]),Fi[a].push(o[a])})}r.provides&&r.provides(Vi)}),n}function $c(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(Fi[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];(Fi[e]||[]).forEach(o=>{o.apply(null,n)})}function yr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Vi[e]?Vi[e].apply(null,t):void 0}function Dc(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||gr();if(t)return t=Qr(n,t)||t,fp(Ep.definitions,n,t)||fp(An.styles,n,t)}const Ep=new OE,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 Yn?(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,mE(()=>{$E({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(QT))){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:Ep,findIconDefinition:Dc,toHtml:Gs},$E=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Ze}=e;(Object.keys(An.styles).length>0||ve.autoFetchSvg)&&Yn&&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=>Gs(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Yn)return;const n=Ze.createElement("div");return n.innerHTML=e.html,n.children}}),e}function DE(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(Cc(a)&&n.found&&!r.found){const{width:c,height:u}=n,f={x:c/u/2,y:.5};i.style=sa(te(te({},o),{},{"transform-origin":"".concat(f.x+a.x/16,"em ").concat(f.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function NE(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 Nc(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:a,title:c,maskId:u,titleId:f,extra:h,watchable:m=!1}=e,{width:p,height:v}=n.found?n:t,S=RT.includes(r),x=[ve.replacementClass,i?"".concat(ve.cssPrefix,"-").concat(i):""].filter(C=>h.classes.indexOf(C)===-1).filter(C=>C!==""||!!C).concat(h.classes).join(" ");let T={children:[],attributes:te(te({},h.attributes),{},{"data-prefix":r,"data-icon":i,class:x,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat(v)})};const b=S&&!~h.classes.indexOf("fa-fw")?{width:"".concat(p/v*16*.0625,"em")}:{};m&&(T.attributes[Jr]=""),c&&(T.children.push({tag:"title",attributes:{id:T.attributes["aria-labelledby"]||"title-".concat(f||zs())},children:[c]}),delete T.attributes.title);const A=te(te({},T),{},{prefix:r,iconName:i,main:t,mask:n,maskId:u,transform:o,symbol:a,styles:te(te({},b),h.styles)}),{children:E,attributes:$}=n.found&&t.found?yr("generateAbstractMask",A)||{children:[],attributes:{}}:yr("generateAbstractIcon",A)||{children:[],attributes:{}};return A.children=E,A.attributes=$,a?NE(A):DE(A)}function Cp(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 f=te({},a.styles);Cc(i)&&(f.transform=fE({transform:i,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);const h=sa(f);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 kE(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:kc}=An;function Lc(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(Tc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat(Tc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat(Tc.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const LE={found:!1,width:512,height:512};function RE(e,t){!tp&&!ve.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Rc(e,t){let n=t;return t==="fa"&&ve.styleDefault!==null&&(t=gr()),new Promise((r,i)=>{if(n==="fa"){const o=bp(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&kc[t]&&kc[t][e]){const o=kc[t][e];return r(Lc(o))}RE(e,t),r(te(te({},LE),{},{icon:ve.showMissingIcons&&e?yr("missingIconAbstract")||{}:{}}))})}const Pp=()=>{},jc=ve.measurePerformance&&na&&na.mark&&na.measure?na:{mark:Pp,measure:Pp},Hs='FA "6.7.2"',jE=e=>(jc.mark("".concat(Hs," ").concat(e," begins")),()=>Ap(e)),Ap=e=>{jc.mark("".concat(Hs," ").concat(e," ends")),jc.measure("".concat(Hs," ").concat(e),"".concat(Hs," ").concat(e," begins"),"".concat(Hs," ").concat(e," ends"))};var Fc={begin:jE,end:Ap};const ua=()=>{};function Mp(e){return typeof(e.getAttribute?e.getAttribute(Jr):null)=="string"}function FE(e){const t=e.getAttribute?e.getAttribute(yc):null,n=e.getAttribute?e.getAttribute(vc):null;return t&&n}function VE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ve.replacementClass)}function BE(){return ve.autoReplaceSvg===!0?fa.replace:fa[ve.autoReplaceSvg]||fa.replace}function WE(e){return Ze.createElementNS("http://www.w3.org/2000/svg",e)}function UE(e){return Ze.createElement(e)}function Op(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?WE:UE}=t;if(typeof e=="string")return Ze.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(Op(o,{ceFn:n}))}),r}function zE(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(Op(n),t)}),t.getAttribute(Jr)===null&&ve.keepOriginalSource){let n=Ze.createComment(zE(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Ec(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=>Gs(o)).join(`
580
+ `);t.setAttribute(Jr,""),t.innerHTML=i}};function _p(e){e()}function Ip(e,t){const n=typeof t=="function"?t:ua;if(e.length===0)n();else{let r=_p;ve.mutateApproach===XT&&(r=mr.requestAnimationFrame||_p),r(()=>{const i=BE(),o=Fc.begin("mutate");e.map(i),o(),n()})}}let Vc=!1;function $p(){Vc=!0}function Bc(){Vc=!1}let da=null;function Dp(e){if(!zm||!ve.observeMutations)return;const{treeCallback:t=ua,nodeCallback:n=ua,pseudoElementsCallback:r=ua,observeMutationsRoot:i=Ze}=e;da=new zm(o=>{if(Vc)return;const a=gr();ji(o).forEach(c=>{if(c.type==="childList"&&c.addedNodes.length>0&&!Mp(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"&&Mp(c.target)&&~nE.indexOf(c.attributeName))if(c.attributeName==="class"&&FE(c.target)){const{prefix:u,iconName:f}=la(Ec(c.target));c.target.setAttribute(yc,u||a),f&&c.target.setAttribute(vc,f)}else VE(c.target)&&n(c.target)})}),Yn&&da.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function GE(){da&&da.disconnect()}function YE(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 HE(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=la(Ec(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=wE(i.prefix,e.innerText)||Ic(i.prefix,Mc(e.innerText))),!i.iconName&&ve.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function qE(e){const t=ji(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||zs()):(t["aria-hidden"]="true",t.focusable="false")),t}function KE(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Pn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Np(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=HE(e),o=qE(e),a=$c("parseNodeAttributes",{},e);let c=t.styleParser?YE(e):[];return te({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Pn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:c,attributes:o}},a)}const{styles:XE}=An;function kp(e){const t=ve.autoReplaceSvg==="nest"?Np(e,{styleParser:!1}):Np(e);return~t.extra.classes.indexOf(ip)?yr("generateLayersText",e,t):yr("generateSvgReplacementMutation",e,t)}function ZE(){return[...NT,...mc]}function Lp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Yn)return Promise.resolve();const n=Ze.documentElement.classList,r=h=>n.add("".concat(ep,"-").concat(h)),i=h=>n.remove("".concat(ep,"-").concat(h)),o=ve.autoFetchSvg?ZE():Hm.concat(Object.keys(XE));o.includes("fa")||o.push("fa");const a=[".".concat(ip,":not([").concat(Jr,"])")].concat(o.map(h=>".".concat(h,":not([").concat(Jr,"])"))).join(", ");if(a.length===0)return Promise.resolve();let c=[];try{c=ji(e.querySelectorAll(a))}catch{}if(c.length>0)r("pending"),i("complete");else return Promise.resolve();const u=Fc.begin("onTree"),f=c.reduce((h,m)=>{try{const p=kp(m);p&&h.push(p)}catch(p){tp||p.name==="MissingIcon"&&console.error(p)}return h},[]);return new Promise((h,m)=>{Promise.all(f).then(p=>{Ip(p,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),u(),h()})}).catch(p=>{u(),m(p)})})}function JE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;kp(e).then(n=>{n&&Ip([n],t)})}function QE(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:Dc(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:Dc(i||{})),e(r,te(te({},n),{},{mask:i}))}}const eC=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Pn,symbol:r=!1,mask:i=null,maskId:o=null,title:a=null,titleId:c=null,classes:u=[],attributes:f={},styles:h={}}=t;if(!e)return;const{prefix:m,iconName:p,icon:v}=e;return ca(te({type:"icon"},e),()=>(ei("beforeDOMElementCreation",{iconDefinition:e,params:t}),ve.autoA11y&&(a?f["aria-labelledby"]="".concat(ve.replacementClass,"-title-").concat(c||zs()):(f["aria-hidden"]="true",f.focusable="false")),Nc({icons:{main:Lc(v),mask:i?Lc(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:m,iconName:p,transform:te(te({},Pn),n),symbol:r,title:a,maskId:o,titleId:c,extra:{attributes:f,styles:h,classes:u}})))};var tC={mixout(){return{icon:QE(eC)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Lp,e.nodeCallback=JE,e}}},provides(e){e.i2svg=function(t){const{node:n=Ze,callback:r=()=>{}}=t;return Lp(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:i,titleId:o,prefix:a,transform:c,symbol:u,mask:f,maskId:h,extra:m}=n;return new Promise((p,v)=>{Promise.all([Rc(r,a),f.iconName?Rc(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(S=>{let[x,T]=S;p([t,Nc({icons:{main:x,mask:T},prefix:a,iconName:r,transform:c,symbol:u,maskId:h,title:i,titleId:o,extra:m,watchable:!0})])}).catch(v)})},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 Cc(o)&&(u=yr("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(u||i.icon),{children:n,attributes:r}}}},nC={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}]})}}}},rC={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}),kE({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(ve.cssPrefix,"-layers-counter"),...r]}})))}}}},iC={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Pn,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return ca({type:"text",content:e},()=>(ei("beforeDOMElementCreation",{content:e,params:t}),Cp({content:e,transform:te(te({},Pn),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(Gm){const u=parseInt(getComputedStyle(t).fontSize,10),f=t.getBoundingClientRect();a=f.width/u,c=f.height/u}return ve.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,Cp({content:t.innerHTML,width:a,height:c,transform:i,title:r,extra:o,watchable:!0})])}}};const sC=new RegExp('"',"ug"),Rp=[1105920,1112319],jp=te(te(te(te({},{FontAwesome:{normal:"fas",400:"fas"}}),IT),qT),BT),Wc=Object.keys(jp).reduce((e,t)=>(e[t.toLowerCase()]=jp[t],e),{}),oC=Object.keys(Wc).reduce((e,t)=>{const n=Wc[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function aC(e){const t=e.replace(sC,""),n=gE(t,0),r=n>=Rp[0]&&n<=Rp[1],i=t.length===2?t[0]===t[1]:!1;return{value:Mc(i?t[0]:t),isSecondary:r||i}}function lC(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Wc[n]||{})[i]||oC[n]}function Fp(e,t){const n="".concat(KT).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const a=ji(e.children).filter(p=>p.getAttribute(gc)===t)[0],c=mr.getComputedStyle(e,t),u=c.getPropertyValue("font-family"),f=u.match(eE),h=c.getPropertyValue("font-weight"),m=c.getPropertyValue("content");if(a&&!f)return e.removeChild(a),r();if(f&&m!=="none"&&m!==""){const p=c.getPropertyValue("content");let v=lC(u,h);const{value:S,isSecondary:x}=aC(p),T=f[0].startsWith("FontAwesome");let b=Ic(v,S),A=b;if(T){const E=SE(S);E.iconName&&E.prefix&&(b=E.iconName,v=E.prefix)}if(b&&!x&&(!a||a.getAttribute(yc)!==v||a.getAttribute(vc)!==A)){e.setAttribute(n,A),a&&e.removeChild(a);const E=KE(),{extra:$}=E;$.attributes[gc]=t,Rc(b,v).then(C=>{const D=Nc(te(te({},E),{},{icons:{main:C,mask:wp()},prefix:v,iconName:A,extra:$,watchable:!0})),j=Ze.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(j,e.firstChild):e.appendChild(j),j.outerHTML=D.map(F=>Gs(F)).join(`
581
+ `),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function cC(e){return Promise.all([Fp(e,"::before"),Fp(e,"::after")])}function uC(e){return e.parentNode!==document.head&&!~ZT.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(gc)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Vp(e){if(Yn)return new Promise((t,n)=>{const r=ji(e.querySelectorAll("*")).filter(uC).map(cC),i=Fc.begin("searchPseudoElements");$p(),Promise.all(r).then(()=>{i(),Bc(),t()}).catch(()=>{i(),Bc(),n()})})}var fC={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Vp,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=Ze}=t;ve.searchPseudoElements&&Vp(n)}}};let Bp=!1;var dC={mixout(){return{dom:{unwatch(){$p(),Bp=!0}}}},hooks(){return{bootstrap(){Dp($c("mutationObserverCallbacks",{}))},noAuto(){GE()},watch(e){const{observeMutationsRoot:t}=e;Bp?Bc():Dp($c("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const Wp=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 hC={mixout(){return{parse:{transform:e=>Wp(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Wp(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),") "),f="rotate(".concat(r.rotate," 0 0)"),h={transform:"".concat(c," ").concat(u," ").concat(f)},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 Uc={x:0,y:0,width:"100%",height:"100%"};function Up(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 mC(e){return e.tag==="g"?e.children:[e]}var pC={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?la(n.split(" ").map(i=>i.trim())):wp();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:f}=i,{width:h,icon:m}=o,p=uE({transform:c,containerWidth:h,iconWidth:u}),v={tag:"rect",attributes:te(te({},Uc),{},{fill:"white"})},S=f.children?{children:f.children.map(Up)}:{},x={tag:"g",attributes:te({},p.inner),children:[Up(te({tag:f.tag,attributes:te(te({},f.attributes),p.path)},S))]},T={tag:"g",attributes:te({},p.outer),children:[x]},b="mask-".concat(a||zs()),A="clip-".concat(a||zs()),E={tag:"mask",attributes:te(te({},Uc),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,T]},$={tag:"defs",children:[{tag:"clipPath",attributes:{id:A},children:mC(m)},E]};return n.push($,{tag:"rect",attributes:te({fill:"currentColor","clip-path":"url(#".concat(A,")"),mask:"url(#".concat(b,")")},Uc)}),{children:n,attributes:r}}}},gC={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}}}},yC={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},vC=[hE,tC,nC,rC,iC,fC,dC,hC,pC,gC,yC];IE(vC,{mixoutsTo:zt}),zt.noAuto,zt.config,zt.library,zt.dom;const zc=zt.parse;zt.findIconDefinition,zt.toHtml;const xC=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 Up;function bC(){if(Up)return je;Up=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,f=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,v=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function E(C){if(typeof C=="object"&&C!==null){var D=C.$$typeof;switch(D){case t:switch(C=C.type,C){case u:case f:case r:case o:case i:case m:return C;default:switch(C=C&&C.$$typeof,C){case c:case h:case S:case v:case a:return C;default:return D}}case n:return D}}}function $(C){return E(C)===f}return je.AsyncMode=u,je.ConcurrentMode=f,je.ContextConsumer=c,je.ContextProvider=a,je.Element=t,je.ForwardRef=h,je.Fragment=r,je.Lazy=S,je.Memo=v,je.Portal=n,je.Profiler=o,je.StrictMode=i,je.Suspense=m,je.isAsyncMode=function(C){return $(C)||E(C)===u},je.isConcurrentMode=$,je.isContextConsumer=function(C){return E(C)===c},je.isContextProvider=function(C){return E(C)===a},je.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},je.isForwardRef=function(C){return E(C)===h},je.isFragment=function(C){return E(C)===r},je.isLazy=function(C){return E(C)===S},je.isMemo=function(C){return E(C)===v},je.isPortal=function(C){return E(C)===n},je.isProfiler=function(C){return E(C)===o},je.isStrictMode=function(C){return E(C)===i},je.isSuspense=function(C){return E(C)===m},je.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===f||C===o||C===i||C===m||C===p||typeof C=="object"&&C!==null&&(C.$$typeof===S||C.$$typeof===v||C.$$typeof===a||C.$$typeof===c||C.$$typeof===h||C.$$typeof===T||C.$$typeof===b||C.$$typeof===A||C.$$typeof===x)},je.typeOf=E,je}var Fe={};/** @license React v16.13.1
588
+ */var zp;function bC(){if(zp)return je;zp=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,f=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,v=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function E(C){if(typeof C=="object"&&C!==null){var D=C.$$typeof;switch(D){case t:switch(C=C.type,C){case u:case f:case r:case o:case i:case m:return C;default:switch(C=C&&C.$$typeof,C){case c:case h:case S:case v:case a:return C;default:return D}}case n:return D}}}function $(C){return E(C)===f}return je.AsyncMode=u,je.ConcurrentMode=f,je.ContextConsumer=c,je.ContextProvider=a,je.Element=t,je.ForwardRef=h,je.Fragment=r,je.Lazy=S,je.Memo=v,je.Portal=n,je.Profiler=o,je.StrictMode=i,je.Suspense=m,je.isAsyncMode=function(C){return $(C)||E(C)===u},je.isConcurrentMode=$,je.isContextConsumer=function(C){return E(C)===c},je.isContextProvider=function(C){return E(C)===a},je.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},je.isForwardRef=function(C){return E(C)===h},je.isFragment=function(C){return E(C)===r},je.isLazy=function(C){return E(C)===S},je.isMemo=function(C){return E(C)===v},je.isPortal=function(C){return E(C)===n},je.isProfiler=function(C){return E(C)===o},je.isStrictMode=function(C){return E(C)===i},je.isSuspense=function(C){return E(C)===m},je.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===f||C===o||C===i||C===m||C===p||typeof C=="object"&&C!==null&&(C.$$typeof===S||C.$$typeof===v||C.$$typeof===a||C.$$typeof===c||C.$$typeof===h||C.$$typeof===T||C.$$typeof===b||C.$$typeof===A||C.$$typeof===x)},je.typeOf=E,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 zp;function wC(){return zp||(zp=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,f=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,v=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function E(ie){return typeof ie=="string"||typeof ie=="function"||ie===r||ie===f||ie===o||ie===i||ie===m||ie===p||typeof ie=="object"&&ie!==null&&(ie.$$typeof===S||ie.$$typeof===v||ie.$$typeof===a||ie.$$typeof===c||ie.$$typeof===h||ie.$$typeof===T||ie.$$typeof===b||ie.$$typeof===A||ie.$$typeof===x)}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 f: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 v:case a:return ft;default:return pe}}case n:return pe}}}var C=u,D=f,j=c,F=a,U=t,Z=h,ee=r,se=S,ge=v,ue=n,fe=o,he=i,V=m,B=!1;function Y(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)===f}function k(ie){return $(ie)===c}function K(ie){return $(ie)===a}function ae(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function le(ie){return $(ie)===h}function z(ie){return $(ie)===r}function J(ie){return $(ie)===S}function oe(ie){return $(ie)===v}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=C,Fe.ConcurrentMode=D,Fe.ContextConsumer=j,Fe.ContextProvider=F,Fe.Element=U,Fe.ForwardRef=Z,Fe.Fragment=ee,Fe.Lazy=se,Fe.Memo=ge,Fe.Portal=ue,Fe.Profiler=fe,Fe.StrictMode=he,Fe.Suspense=V,Fe.isAsyncMode=Y,Fe.isConcurrentMode=O,Fe.isContextConsumer=k,Fe.isContextProvider=K,Fe.isElement=ae,Fe.isForwardRef=le,Fe.isFragment=z,Fe.isLazy=J,Fe.isMemo=oe,Fe.isPortal=re,Fe.isProfiler=de,Fe.isStrictMode=Ce,Fe.isSuspense=Ve,Fe.isValidElementType=E,Fe.typeOf=$}()),Fe}var Gp;function Yp(){return Gp||(Gp=1,process.env.NODE_ENV==="production"?ma.exports=bC():ma.exports=wC()),ma.exports}/*
595
+ */var Gp;function wC(){return Gp||(Gp=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,f=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,v=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function E(ie){return typeof ie=="string"||typeof ie=="function"||ie===r||ie===f||ie===o||ie===i||ie===m||ie===p||typeof ie=="object"&&ie!==null&&(ie.$$typeof===S||ie.$$typeof===v||ie.$$typeof===a||ie.$$typeof===c||ie.$$typeof===h||ie.$$typeof===T||ie.$$typeof===b||ie.$$typeof===A||ie.$$typeof===x)}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 f: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 v:case a:return ft;default:return pe}}case n:return pe}}}var C=u,D=f,j=c,F=a,U=t,Z=h,ee=r,se=S,ge=v,ue=n,fe=o,he=i,V=m,B=!1;function Y(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)===f}function k(ie){return $(ie)===c}function K(ie){return $(ie)===a}function ae(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function le(ie){return $(ie)===h}function z(ie){return $(ie)===r}function J(ie){return $(ie)===S}function oe(ie){return $(ie)===v}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=C,Fe.ConcurrentMode=D,Fe.ContextConsumer=j,Fe.ContextProvider=F,Fe.Element=U,Fe.ForwardRef=Z,Fe.Fragment=ee,Fe.Lazy=se,Fe.Memo=ge,Fe.Portal=ue,Fe.Profiler=fe,Fe.StrictMode=he,Fe.Suspense=V,Fe.isAsyncMode=Y,Fe.isConcurrentMode=O,Fe.isContextConsumer=k,Fe.isContextProvider=K,Fe.isElement=ae,Fe.isForwardRef=le,Fe.isFragment=z,Fe.isLazy=J,Fe.isMemo=oe,Fe.isPortal=re,Fe.isProfiler=de,Fe.isStrictMode=Ce,Fe.isSuspense=Ve,Fe.isValidElementType=E,Fe.typeOf=$}()),Fe}var Yp;function Hp(){return Yp||(Yp=1,process.env.NODE_ENV==="production"?ma.exports=bC():ma.exports=wC()),ma.exports}/*
596
596
  object-assign
597
597
  (c) Sindre Sorhus
598
598
  @license MIT
599
- */var Gc,Hp;function SC(){if(Hp)return Gc;Hp=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 f={};return"abcdefghijklmnopqrst".split("").forEach(function(h){f[h]=h}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Gc=i()?Object.assign:function(o,a){for(var c,u=r(o),f,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){f=e(c);for(var p=0;p<f.length;p++)n.call(c,f[p])&&(u[f[p]]=c[f[p]])}}return u},Gc}var Yc,qp;function Hc(){if(qp)return Yc;qp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Yc=e,Yc}var qc,Kp;function Xp(){return Kp||(Kp=1,qc=Function.call.bind(Object.prototype.hasOwnProperty)),qc}var Kc,Zp;function TC(){if(Zp)return Kc;Zp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Hc(),n={},r=Xp();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,f){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 v=f?f():"";e("Failed "+c+" type: "+m.message+(v??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Kc=i,Kc}var Xc,Jp;function EC(){if(Jp)return Xc;Jp=1;var e=Yp(),t=SC(),n=Hc(),r=Xp(),i=TC(),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 Xc=function(c,u){var f=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(O){var k=O&&(f&&O[f]||O[h]);if(typeof k=="function")return k}var p="<<anonymous>>",v={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:A(),arrayOf:E,element:$(),elementType:C(),instanceOf:D,node:Z(),objectOf:F,oneOf:j,oneOfType:U,shape:se,exact:ge};function S(O,k){return O===k?O!==0||1/O===1/k:O!==O&&k!==k}function x(O,k){this.message=O,this.data=k&&typeof k=="object"?k:{},this.stack=""}x.prototype=Error.prototype;function T(O){if(process.env.NODE_ENV!=="production")var k={},K=0;function ae(z,J,oe,re,de,Ce,Ve){if(re=re||p,Ce=Ce||oe,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+":"+oe;!k[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."),k[pe]=!0,K++)}}return J[oe]==null?z?J[oe]===null?new x("The "+de+" `"+Ce+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new x("The "+de+" `"+Ce+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:O(J,oe,re,de,Ce)}var le=ae.bind(null,!1);return le.isRequired=ae.bind(null,!0),le}function b(O){function k(K,ae,le,z,J,oe){var re=K[ae],de=he(re);if(de!==O){var Ce=V(re);return new x("Invalid "+z+" `"+J+"` of type "+("`"+Ce+"` supplied to `"+le+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return T(k)}function A(){return T(a)}function E(O){function k(K,ae,le,z,J){if(typeof O!="function")return new x("Property `"+J+"` of component `"+le+"` has invalid PropType notation inside arrayOf.");var oe=K[ae];if(!Array.isArray(oe)){var re=he(oe);return new x("Invalid "+z+" `"+J+"` of type "+("`"+re+"` supplied to `"+le+"`, expected an array."))}for(var de=0;de<oe.length;de++){var Ce=O(oe,de,le,z,J+"["+de+"]",n);if(Ce instanceof Error)return Ce}return null}return T(k)}function $(){function O(k,K,ae,le,z){var J=k[K];if(!c(J)){var oe=he(J);return new x("Invalid "+le+" `"+z+"` of type "+("`"+oe+"` supplied to `"+ae+"`, expected a single ReactElement."))}return null}return T(O)}function C(){function O(k,K,ae,le,z){var J=k[K];if(!e.isValidElementType(J)){var oe=he(J);return new x("Invalid "+le+" `"+z+"` of type "+("`"+oe+"` supplied to `"+ae+"`, expected a single ReactElement type."))}return null}return T(O)}function D(O){function k(K,ae,le,z,J){if(!(K[ae]instanceof O)){var oe=O.name||p,re=Y(K[ae]);return new x("Invalid "+z+" `"+J+"` of type "+("`"+re+"` supplied to `"+le+"`, expected ")+("instance of `"+oe+"`."))}return null}return T(k)}function j(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 k(K,ae,le,z,J){for(var oe=K[ae],re=0;re<O.length;re++)if(S(oe,O[re]))return null;var de=JSON.stringify(O,function(Ve,ie){var pe=V(ie);return pe==="symbol"?String(ie):ie});return new x("Invalid "+z+" `"+J+"` of value `"+String(oe)+"` "+("supplied to `"+le+"`, expected one of "+de+"."))}return T(k)}function F(O){function k(K,ae,le,z,J){if(typeof O!="function")return new x("Property `"+J+"` of component `"+le+"` has invalid PropType notation inside objectOf.");var oe=K[ae],re=he(oe);if(re!=="object")return new x("Invalid "+z+" `"+J+"` of type "+("`"+re+"` supplied to `"+le+"`, expected an object."));for(var de in oe)if(r(oe,de)){var Ce=O(oe,de,le,z,J+"."+de,n);if(Ce instanceof Error)return Ce}return null}return T(k)}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 k=0;k<O.length;k++){var K=O[k];if(typeof K!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(K)+" at index "+k+"."),a}function ae(le,z,J,oe,re){for(var de=[],Ce=0;Ce<O.length;Ce++){var Ve=O[Ce],ie=Ve(le,z,J,oe,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 x("Invalid "+oe+" `"+re+"` supplied to "+("`"+J+"`"+pe+"."))}return T(ae)}function Z(){function O(k,K,ae,le,z){return ue(k[K])?null:new x("Invalid "+le+" `"+z+"` supplied to "+("`"+ae+"`, expected a ReactNode."))}return T(O)}function ee(O,k,K,ae,le){return new x((O||"React class")+": "+k+" type `"+K+"."+ae+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+le+"`.")}function se(O){function k(K,ae,le,z,J){var oe=K[ae],re=he(oe);if(re!=="object")return new x("Invalid "+z+" `"+J+"` of type `"+re+"` "+("supplied to `"+le+"`, expected `object`."));for(var de in O){var Ce=O[de];if(typeof Ce!="function")return ee(le,z,J,de,V(Ce));var Ve=Ce(oe,de,le,z,J+"."+de,n);if(Ve)return Ve}return null}return T(k)}function ge(O){function k(K,ae,le,z,J){var oe=K[ae],re=he(oe);if(re!=="object")return new x("Invalid "+z+" `"+J+"` of type `"+re+"` "+("supplied to `"+le+"`, 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 ee(le,z,J,Ce,V(Ve));if(!Ve)return new x("Invalid "+z+" `"+J+"` key `"+Ce+"` supplied to `"+le+"`.\nBad object: "+JSON.stringify(K[ae],null," ")+`
600
- Valid keys: `+JSON.stringify(Object.keys(O),null," "));var ie=Ve(oe,Ce,le,z,J+"."+Ce,n);if(ie)return ie}return null}return T(k)}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 k=m(O);if(k){var K=k.call(O),ae;if(k!==O.entries){for(;!(ae=K.next()).done;)if(!ue(ae.value))return!1}else for(;!(ae=K.next()).done;){var le=ae.value;if(le&&!ue(le[1]))return!1}}else return!1;return!0;default:return!1}}function fe(O,k){return O==="symbol"?!0:k?k["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&k instanceof Symbol:!1}function he(O){var k=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":fe(k,O)?"symbol":k}function V(O){if(typeof O>"u"||O===null)return""+O;var k=he(O);if(k==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return k}function B(O){var k=V(O);switch(k){case"array":case"object":return"an "+k;case"boolean":case"date":case"regexp":return"a "+k;default:return k}}function Y(O){return!O.constructor||!O.constructor.name?p:O.constructor.name}return v.checkPropTypes=i,v.resetWarningCache=i.resetWarningCache,v.PropTypes=v,v},Xc}var Zc,Qp;function CC(){if(Qp)return Zc;Qp=1;var e=Hc();function t(){}function n(){}return n.resetWarningCache=t,Zc=function(){function r(a,c,u,f,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},Zc}var e0;function PC(){if(e0)return ha.exports;if(e0=1,process.env.NODE_ENV!=="production"){var e=Yp(),t=!0;ha.exports=EC()(e.isElement,t)}else ha.exports=CC()();return ha.exports}var AC=PC();const $e=Dm(AC);function t0(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 Mn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t0(Object(n),!0).forEach(function(r){Bi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t0(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 Bi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MC(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 OC(e,t){if(e==null)return{};var n=MC(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 Jc(e){return _C(e)||IC(e)||$C(e)||DC()}function _C(e){if(Array.isArray(e))return Qc(e)}function IC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $C(e,t){if(e){if(typeof e=="string")return Qc(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 Qc(e,t)}}function Qc(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 DC(){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 NC(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,c=e.flash,u=e.spin,f=e.spinPulse,h=e.spinReverse,m=e.pulse,p=e.fixedWidth,v=e.inverse,S=e.border,x=e.listItem,T=e.flip,b=e.size,A=e.rotation,E=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":f,"fa-pulse":m,"fa-fw":p,"fa-inverse":v,"fa-border":S,"fa-li":x,"fa-flip":T===!0,"fa-flip-horizontal":T==="horizontal"||T==="both","fa-flip-vertical":T==="vertical"||T==="both"},Bi(t,"fa-".concat(b),typeof b<"u"&&b!==null),Bi(t,"fa-rotate-".concat(A),typeof A<"u"&&A!==null&&A!==0),Bi(t,"fa-pull-".concat(E),typeof E<"u"&&E!==null),Bi(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys($).map(function(C){return $[C]?C:null}).filter(function(C){return C})}function kC(e){return e=e-0,e===e}function n0(e){return kC(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var LC=["style"];function RC(e){return e.charAt(0).toUpperCase()+e.slice(1)}function jC(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=n0(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[RC(i)]=o:t[i]=o,t},{})}function r0(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 r0(e,u)}),i=Object.keys(t.attributes||{}).reduce(function(u,f){var h=t.attributes[f];switch(f){case"class":u.attrs.className=h,delete t.attributes.class;break;case"style":u.attrs.style=jC(h);break;default:f.indexOf("aria-")===0||f.indexOf("data-")===0?u.attrs[f.toLowerCase()]=h:u.attrs[n0(f)]=h}return u},{attrs:{}}),o=n.style,a=o===void 0?{}:o,c=OC(n,LC);return i.attrs.style=Mn(Mn({},i.attrs.style),a),e.apply(void 0,[t.tag,Mn(Mn({},i.attrs),c)].concat(Jc(r)))}var i0=!1;try{i0=process.env.NODE_ENV==="production"}catch{}function FC(){if(!i0&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function s0(e){if(e&&pa(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(zc.icon)return zc.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 eu(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Bi({},e,t):{}}var o0={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},Pe=_.forwardRef(function(e,t){var n=Mn(Mn({},o0),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,c=n.title,u=n.titleId,f=n.maskId,h=s0(r),m=eu("classes",[].concat(Jc(NC(n)),Jc((a||"").split(" ")))),p=eu("transform",typeof n.transform=="string"?zc.transform(n.transform):n.transform),v=eu("mask",s0(i)),S=xC(h,Mn(Mn(Mn(Mn({},m),p),v),{},{symbol:o,title:c,titleId:u,maskId:f}));if(!S)return FC("Could not find icon",h),null;var x=S.abstract,T={ref:t};return Object.keys(n).forEach(function(b){o0.hasOwnProperty(b)||(T[b]=n[b])}),VC(x[0],T)});Pe.displayName="FontAwesomeIcon",Pe.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 VC=r0.bind(null,_.createElement);const BC=({title:e,icon:t,imageUrl:n,onClick:r,isSelected:i=!1})=>y.jsxs("button",{onClick:r,className:`
599
+ */var Gc,qp;function SC(){if(qp)return Gc;qp=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 f={};return"abcdefghijklmnopqrst".split("").forEach(function(h){f[h]=h}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Gc=i()?Object.assign:function(o,a){for(var c,u=r(o),f,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){f=e(c);for(var p=0;p<f.length;p++)n.call(c,f[p])&&(u[f[p]]=c[f[p]])}}return u},Gc}var Yc,Kp;function Hc(){if(Kp)return Yc;Kp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Yc=e,Yc}var qc,Xp;function Zp(){return Xp||(Xp=1,qc=Function.call.bind(Object.prototype.hasOwnProperty)),qc}var Kc,Jp;function TC(){if(Jp)return Kc;Jp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Hc(),n={},r=Zp();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,f){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 v=f?f():"";e("Failed "+c+" type: "+m.message+(v??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Kc=i,Kc}var Xc,Qp;function EC(){if(Qp)return Xc;Qp=1;var e=Hp(),t=SC(),n=Hc(),r=Zp(),i=TC(),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 Xc=function(c,u){var f=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(O){var k=O&&(f&&O[f]||O[h]);if(typeof k=="function")return k}var p="<<anonymous>>",v={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:A(),arrayOf:E,element:$(),elementType:C(),instanceOf:D,node:Z(),objectOf:F,oneOf:j,oneOfType:U,shape:se,exact:ge};function S(O,k){return O===k?O!==0||1/O===1/k:O!==O&&k!==k}function x(O,k){this.message=O,this.data=k&&typeof k=="object"?k:{},this.stack=""}x.prototype=Error.prototype;function T(O){if(process.env.NODE_ENV!=="production")var k={},K=0;function ae(z,J,oe,re,de,Ce,Ve){if(re=re||p,Ce=Ce||oe,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+":"+oe;!k[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."),k[pe]=!0,K++)}}return J[oe]==null?z?J[oe]===null?new x("The "+de+" `"+Ce+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new x("The "+de+" `"+Ce+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:O(J,oe,re,de,Ce)}var le=ae.bind(null,!1);return le.isRequired=ae.bind(null,!0),le}function b(O){function k(K,ae,le,z,J,oe){var re=K[ae],de=he(re);if(de!==O){var Ce=V(re);return new x("Invalid "+z+" `"+J+"` of type "+("`"+Ce+"` supplied to `"+le+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return T(k)}function A(){return T(a)}function E(O){function k(K,ae,le,z,J){if(typeof O!="function")return new x("Property `"+J+"` of component `"+le+"` has invalid PropType notation inside arrayOf.");var oe=K[ae];if(!Array.isArray(oe)){var re=he(oe);return new x("Invalid "+z+" `"+J+"` of type "+("`"+re+"` supplied to `"+le+"`, expected an array."))}for(var de=0;de<oe.length;de++){var Ce=O(oe,de,le,z,J+"["+de+"]",n);if(Ce instanceof Error)return Ce}return null}return T(k)}function $(){function O(k,K,ae,le,z){var J=k[K];if(!c(J)){var oe=he(J);return new x("Invalid "+le+" `"+z+"` of type "+("`"+oe+"` supplied to `"+ae+"`, expected a single ReactElement."))}return null}return T(O)}function C(){function O(k,K,ae,le,z){var J=k[K];if(!e.isValidElementType(J)){var oe=he(J);return new x("Invalid "+le+" `"+z+"` of type "+("`"+oe+"` supplied to `"+ae+"`, expected a single ReactElement type."))}return null}return T(O)}function D(O){function k(K,ae,le,z,J){if(!(K[ae]instanceof O)){var oe=O.name||p,re=Y(K[ae]);return new x("Invalid "+z+" `"+J+"` of type "+("`"+re+"` supplied to `"+le+"`, expected ")+("instance of `"+oe+"`."))}return null}return T(k)}function j(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 k(K,ae,le,z,J){for(var oe=K[ae],re=0;re<O.length;re++)if(S(oe,O[re]))return null;var de=JSON.stringify(O,function(Ve,ie){var pe=V(ie);return pe==="symbol"?String(ie):ie});return new x("Invalid "+z+" `"+J+"` of value `"+String(oe)+"` "+("supplied to `"+le+"`, expected one of "+de+"."))}return T(k)}function F(O){function k(K,ae,le,z,J){if(typeof O!="function")return new x("Property `"+J+"` of component `"+le+"` has invalid PropType notation inside objectOf.");var oe=K[ae],re=he(oe);if(re!=="object")return new x("Invalid "+z+" `"+J+"` of type "+("`"+re+"` supplied to `"+le+"`, expected an object."));for(var de in oe)if(r(oe,de)){var Ce=O(oe,de,le,z,J+"."+de,n);if(Ce instanceof Error)return Ce}return null}return T(k)}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 k=0;k<O.length;k++){var K=O[k];if(typeof K!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(K)+" at index "+k+"."),a}function ae(le,z,J,oe,re){for(var de=[],Ce=0;Ce<O.length;Ce++){var Ve=O[Ce],ie=Ve(le,z,J,oe,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 x("Invalid "+oe+" `"+re+"` supplied to "+("`"+J+"`"+pe+"."))}return T(ae)}function Z(){function O(k,K,ae,le,z){return ue(k[K])?null:new x("Invalid "+le+" `"+z+"` supplied to "+("`"+ae+"`, expected a ReactNode."))}return T(O)}function ee(O,k,K,ae,le){return new x((O||"React class")+": "+k+" type `"+K+"."+ae+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+le+"`.")}function se(O){function k(K,ae,le,z,J){var oe=K[ae],re=he(oe);if(re!=="object")return new x("Invalid "+z+" `"+J+"` of type `"+re+"` "+("supplied to `"+le+"`, expected `object`."));for(var de in O){var Ce=O[de];if(typeof Ce!="function")return ee(le,z,J,de,V(Ce));var Ve=Ce(oe,de,le,z,J+"."+de,n);if(Ve)return Ve}return null}return T(k)}function ge(O){function k(K,ae,le,z,J){var oe=K[ae],re=he(oe);if(re!=="object")return new x("Invalid "+z+" `"+J+"` of type `"+re+"` "+("supplied to `"+le+"`, 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 ee(le,z,J,Ce,V(Ve));if(!Ve)return new x("Invalid "+z+" `"+J+"` key `"+Ce+"` supplied to `"+le+"`.\nBad object: "+JSON.stringify(K[ae],null," ")+`
600
+ Valid keys: `+JSON.stringify(Object.keys(O),null," "));var ie=Ve(oe,Ce,le,z,J+"."+Ce,n);if(ie)return ie}return null}return T(k)}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 k=m(O);if(k){var K=k.call(O),ae;if(k!==O.entries){for(;!(ae=K.next()).done;)if(!ue(ae.value))return!1}else for(;!(ae=K.next()).done;){var le=ae.value;if(le&&!ue(le[1]))return!1}}else return!1;return!0;default:return!1}}function fe(O,k){return O==="symbol"?!0:k?k["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&k instanceof Symbol:!1}function he(O){var k=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":fe(k,O)?"symbol":k}function V(O){if(typeof O>"u"||O===null)return""+O;var k=he(O);if(k==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return k}function B(O){var k=V(O);switch(k){case"array":case"object":return"an "+k;case"boolean":case"date":case"regexp":return"a "+k;default:return k}}function Y(O){return!O.constructor||!O.constructor.name?p:O.constructor.name}return v.checkPropTypes=i,v.resetWarningCache=i.resetWarningCache,v.PropTypes=v,v},Xc}var Zc,e0;function CC(){if(e0)return Zc;e0=1;var e=Hc();function t(){}function n(){}return n.resetWarningCache=t,Zc=function(){function r(a,c,u,f,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},Zc}var t0;function PC(){if(t0)return ha.exports;if(t0=1,process.env.NODE_ENV!=="production"){var e=Hp(),t=!0;ha.exports=EC()(e.isElement,t)}else ha.exports=CC()();return ha.exports}var AC=PC();const $e=Nm(AC);function n0(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 Mn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n0(Object(n),!0).forEach(function(r){Bi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n0(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 Bi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MC(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 OC(e,t){if(e==null)return{};var n=MC(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 Jc(e){return _C(e)||IC(e)||$C(e)||DC()}function _C(e){if(Array.isArray(e))return Qc(e)}function IC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $C(e,t){if(e){if(typeof e=="string")return Qc(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 Qc(e,t)}}function Qc(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 DC(){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 NC(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,c=e.flash,u=e.spin,f=e.spinPulse,h=e.spinReverse,m=e.pulse,p=e.fixedWidth,v=e.inverse,S=e.border,x=e.listItem,T=e.flip,b=e.size,A=e.rotation,E=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":f,"fa-pulse":m,"fa-fw":p,"fa-inverse":v,"fa-border":S,"fa-li":x,"fa-flip":T===!0,"fa-flip-horizontal":T==="horizontal"||T==="both","fa-flip-vertical":T==="vertical"||T==="both"},Bi(t,"fa-".concat(b),typeof b<"u"&&b!==null),Bi(t,"fa-rotate-".concat(A),typeof A<"u"&&A!==null&&A!==0),Bi(t,"fa-pull-".concat(E),typeof E<"u"&&E!==null),Bi(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys($).map(function(C){return $[C]?C:null}).filter(function(C){return C})}function kC(e){return e=e-0,e===e}function r0(e){return kC(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var LC=["style"];function RC(e){return e.charAt(0).toUpperCase()+e.slice(1)}function jC(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=r0(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[RC(i)]=o:t[i]=o,t},{})}function i0(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 i0(e,u)}),i=Object.keys(t.attributes||{}).reduce(function(u,f){var h=t.attributes[f];switch(f){case"class":u.attrs.className=h,delete t.attributes.class;break;case"style":u.attrs.style=jC(h);break;default:f.indexOf("aria-")===0||f.indexOf("data-")===0?u.attrs[f.toLowerCase()]=h:u.attrs[r0(f)]=h}return u},{attrs:{}}),o=n.style,a=o===void 0?{}:o,c=OC(n,LC);return i.attrs.style=Mn(Mn({},i.attrs.style),a),e.apply(void 0,[t.tag,Mn(Mn({},i.attrs),c)].concat(Jc(r)))}var s0=!1;try{s0=process.env.NODE_ENV==="production"}catch{}function FC(){if(!s0&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function o0(e){if(e&&pa(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(zc.icon)return zc.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 eu(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Bi({},e,t):{}}var a0={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},Pe=_.forwardRef(function(e,t){var n=Mn(Mn({},a0),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,c=n.title,u=n.titleId,f=n.maskId,h=o0(r),m=eu("classes",[].concat(Jc(NC(n)),Jc((a||"").split(" ")))),p=eu("transform",typeof n.transform=="string"?zc.transform(n.transform):n.transform),v=eu("mask",o0(i)),S=xC(h,Mn(Mn(Mn(Mn({},m),p),v),{},{symbol:o,title:c,titleId:u,maskId:f}));if(!S)return FC("Could not find icon",h),null;var x=S.abstract,T={ref:t};return Object.keys(n).forEach(function(b){a0.hasOwnProperty(b)||(T[b]=n[b])}),VC(x[0],T)});Pe.displayName="FontAwesomeIcon",Pe.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 VC=i0.bind(null,_.createElement);const BC=({title:e,icon:t,imageUrl:n,onClick:r,isSelected:i=!1})=>y.jsxs("button",{onClick:r,className:`
602
602
  flex flex-col items-center justify-center
603
603
  w-[180px] h-[87px] p-4 rounded-xl
604
604
  gap-2 transition-colors
@@ -610,7 +610,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
610
610
  * Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
611
611
  * License - https://fontawesome.com/license (Commercial License)
612
612
  * Copyright 2024 Fonticons, Inc.
613
- */const WC={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"]},UC={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"]},zC={prefix:"fal",iconName:"chevron-up",icon:[512,512,[],"f077","M244.7 116.7c6.2-6.2 16.4-6.2 22.6 0l192 192c6.2 6.2 6.2 16.4 0 22.6s-16.4 6.2-22.6 0L256 150.6 75.3 331.3c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l192-192z"]},GC={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"]},YC={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"]},HC={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"]},qC={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"]},a0={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"]},tu={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"]},KC={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"]},XC={prefix:"fal",iconName:"chevron-down",icon:[512,512,[],"f078","M267.3 395.3c-6.2 6.2-16.4 6.2-22.6 0l-192-192c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L256 361.4 436.7 180.7c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6l-192 192z"]},ZC={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"]},l0={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"]},JC={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"]},nu={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"]},ru=_.createContext({});function iu(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const su=typeof window<"u",c0=su?_.useLayoutEffect:_.useEffect,ga=_.createContext(null),ou=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});let QC=class extends Q.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 eP({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(ou);return _.useInsertionEffect(()=>{const{width:c,height:u,top:f,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 v=document.createElement("style");return a&&(v.nonce=a),document.head.appendChild(v),v.sheet&&v.sheet.insertRule(`
613
+ */const WC={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"]},UC={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"]},zC={prefix:"fal",iconName:"chevron-up",icon:[512,512,[],"f077","M244.7 116.7c6.2-6.2 16.4-6.2 22.6 0l192 192c6.2 6.2 6.2 16.4 0 22.6s-16.4 6.2-22.6 0L256 150.6 75.3 331.3c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l192-192z"]},GC={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"]},YC={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"]},HC={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"]},qC={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"]},l0={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"]},tu={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"]},KC={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"]},XC={prefix:"fal",iconName:"chevron-down",icon:[512,512,[],"f078","M267.3 395.3c-6.2 6.2-16.4 6.2-22.6 0l-192-192c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L256 361.4 436.7 180.7c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6l-192 192z"]},ZC={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"]},c0={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"]},JC={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"]},nu={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"]},ru=_.createContext({});function iu(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const su=typeof window<"u",u0=su?_.useLayoutEffect:_.useEffect,ga=_.createContext(null),ou=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});let QC=class extends Q.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 eP({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(ou);return _.useInsertionEffect(()=>{const{width:c,height:u,top:f,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 v=document.createElement("style");return a&&(v.nonce=a),document.head.appendChild(v),v.sheet&&v.sheet.insertRule(`
614
614
  [data-motion-pop-id="${r}"] {
615
615
  position: absolute !important;
616
616
  width: ${c}px !important;
@@ -618,20 +618,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
618
618
  ${p}px !important;
619
619
  top: ${f}px !important;
620
620
  }
621
- `),()=>{document.head.removeChild(v)}},[t]),y.jsx(QC,{isPresent:t,childRef:i,sizeRef:o,children:Q.cloneElement(e,{ref:i})})}const tP=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=iu(nP),f=_.useId(),h=_.useCallback(p=>{u.set(p,!0);for(const v of u.values())if(!v)return;r&&r()},[u,r]),m=_.useMemo(()=>({id:f,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,v)=>u.set(v,!1))},[n]),Q.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=y.jsx(eP,{isPresent:n,anchorX:c,children:e})),y.jsx(ga.Provider,{value:m,children:e})};function nP(){return new Map}function u0(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 f0(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const rP=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,f]=u0(a),h=_.useMemo(()=>f0(e),[e]),m=a&&!u?[]:h.map(ya),p=_.useRef(!0),v=_.useRef(h),S=iu(()=>new Map),[x,T]=_.useState(h),[b,A]=_.useState(h);c0(()=>{p.current=!1,v.current=h;for(let C=0;C<b.length;C++){const D=ya(b[C]);m.includes(D)?S.delete(D):S.get(D)!==!0&&S.set(D,!1)}},[b,m.length,m.join("-")]);const E=[];if(h!==x){let C=[...h];for(let D=0;D<b.length;D++){const j=b[D],F=ya(j);m.includes(F)||(C.splice(D,0,j),E.push(j))}return o==="wait"&&E.length&&(C=E),A(f0(C)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&b.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(ru);return y.jsx(y.Fragment,{children:b.map(C=>{const D=ya(C),j=a&&!u?!1:h===b||m.includes(D),F=()=>{if(S.has(D))S.set(D,!0);else return;let U=!0;S.forEach(Z=>{Z||(U=!1)}),U&&($==null||$(),A(v.current),a&&(f==null||f()),r&&r())};return y.jsx(tP,{isPresent:j,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:j?void 0:F,anchorX:c,children:C},D)})})};function au(e,t){e.indexOf(t)===-1&&e.push(t)}function lu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Nt=e=>e;let Wi=Nt,vr=Nt;process.env.NODE_ENV!=="production"&&(Wi=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},vr=(e,t)=>{if(!e)throw new Error(t)});const iP={useManualTiming:!1};function cu(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ui=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let uu=class{constructor(){this.subscriptions=[]}add(t){return au(this.subscriptions,t),()=>lu(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 On=e=>e*1e3,Kn=e=>e/1e3;function d0(e,t){return t?e*(1e3/t):0}const h0=new Set;function va(e,t,n){e||h0.has(t)||(console.warn(t),h0.add(t))}const sP=cu(()=>window.ScrollTimeline!==void 0);let oP=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(sP()&&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")}},aP=class extends oP{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function fu(e,t){return e?e[t]||e.default||e:void 0}const du=2e4;function m0(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<du;)t+=n,r=e.next(t);return t>=du?1/0:t}function hu(e){return typeof e=="function"}function p0(e,t){e.timeline=t,e.onfinish=null}const mu=e=>Array.isArray(e)&&typeof e[0]=="number",lP={linearEasing:void 0};function cP(e,t){const n=cu(e);return()=>{var r;return(r=lP[t])!==null&&r!==void 0?r:n()}}const xa=cP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),g0=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Ui(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function y0(e){return!!(typeof e=="function"&&xa()||!e||typeof e=="string"&&(e in pu||xa())||mu(e)||Array.isArray(e)&&e.every(y0))}const qs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,pu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qs([0,.65,.55,1]),circOut:qs([.55,0,1,.45]),backIn:qs([.31,.01,.66,-.59]),backOut:qs([.33,1.53,.69,.99])};function v0(e,t){if(e)return typeof e=="function"&&xa()?g0(e,t):mu(e)?qs(e):Array.isArray(e)?e.map(n=>v0(n,t)||pu.easeOut):pu[e]}const ba=["read","resolveKeyframes","update","preRender","render","postRender"],x0={value:null};function uP(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 f(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,p=!1,v=!1)=>{const x=v&&i?n:r;return p&&a.add(m),x.has(m)||x.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(f),t&&x0.value&&x0.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const fP=40;function b0(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=ba.reduce((b,A)=>(b[A]=uP(o,t?A:void 0),b),{}),{read:c,resolveKeyframes:u,update:f,preRender:h,render:m,postRender:p}=a,v=()=>{const b=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(b-i.timestamp,fP),1),i.timestamp=b,i.isProcessing=!0,c.process(i),u.process(i),f.process(i),h.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))},S=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:ba.reduce((b,A)=>{const E=a[A];return b[A]=($,C=!1,D=!1)=>(n||S(),E.schedule($,C,D)),b},{}),cancel:b=>{for(let A=0;A<ba.length;A++)a[ba[A]].cancel(b)},state:i,steps:a}}const{schedule:He,cancel:xr,state:yt,steps:gu}=b0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Nt,!0),{schedule:yu}=b0(queueMicrotask,!1);let wa;function dP(){wa=void 0}const _n={now:()=>(wa===void 0&&_n.set(yt.isProcessing||iP.useManualTiming?yt.timestamp:performance.now()),wa),set:e=>{wa=e,queueMicrotask(dP)}},yn={x:!1,y:!1};function w0(){return yn.x||yn.y}function hP(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 mP(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 S0(e,t){const n=mP(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function T0(e){return!(e.pointerType==="touch"||w0())}function pP(e,t,n={}){const[r,i,o]=S0(e,n),a=c=>{if(!T0(c))return;const{target:u}=c,f=t(u,c);if(typeof f!="function"||!u)return;const h=m=>{T0(m)&&(f(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}const E0=(e,t)=>t?e===t?!0:E0(e,t.parentElement):!1,vu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,gP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function yP(e){return gP.has(e.tagName)||e.tabIndex!==-1}const Ks=new WeakSet;function C0(e){return t=>{t.key==="Enter"&&e(t)}}function xu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const vP=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=C0(()=>{if(Ks.has(n))return;xu(n,"down");const i=C0(()=>{xu(n,"up")}),o=()=>xu(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 P0(e){return vu(e)&&!w0()}function xP(e,t,n={}){const[r,i,o]=S0(e,n),a=c=>{const u=c.currentTarget;if(!P0(c)||Ks.has(u))return;Ks.add(u);const f=t(u,c),h=(v,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!P0(v)||!Ks.has(u))&&(Ks.delete(u),typeof f=="function"&&f(v,{success:S}))},m=v=>{h(v,u===window||u===document||n.useGlobalTarget||E0(u,v.target))},p=v=>{h(v,!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",f=>vP(f,i)),!yP(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}const A0=30,bP=e=>!isNaN(parseFloat(e));let wP=class{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=_n.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=_n.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=bP(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 uu);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=_n.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>A0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,A0);return d0(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 Xs(e,t){return new wP(e,t)}const M0=_.createContext({strict:!1}),O0={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"]},zi={};for(const e in O0)zi[e]={isEnabled:t=>O0[e].some(n=>!!t[n])};function SP(e){for(const t in e)zi[t]={...zi[t],...e[t]}}const TP=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")||TP.has(e)}let _0=e=>!Sa(e);function EP(e){e&&(_0=t=>t.startsWith("on")?!Sa(t):e(t))}try{EP(require("@emotion/is-prop-valid").default)}catch{}function CP(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(_0(i)||n===!0&&Sa(i)||!t&&!Sa(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function PP(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 Zs(e){return typeof e=="string"||Array.isArray(e)}const bu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wu=["initial",...bu];function Ca(e){return Ea(e.animate)||wu.some(t=>Zs(e[t]))}function I0(e){return!!(Ca(e)||e.variants)}function AP(e,t){if(Ca(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Zs(n)?n:void 0,animate:Zs(r)?r:void 0}}return e.inherit!==!1?t:{}}function MP(e){const{initial:t,animate:n}=AP(e,_.useContext(Ta));return _.useMemo(()=>({initial:t,animate:n}),[$0(t),$0(n)])}function $0(e){return Array.isArray(e)?e.join(" "):e}const OP=Symbol.for("motionComponentSymbol");function Gi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function _P(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):Gi(n)&&(n.current=r))},[t])}const Su=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),D0="data-"+Su("framerAppearId"),N0=_.createContext({});function IP(e,t,n,r,i){var o,a;const{visualElement:c}=_.useContext(Ta),u=_.useContext(M0),f=_.useContext(ga),h=_.useContext(ou).reducedMotion,m=_.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:h}));const p=m.current,v=_.useContext(N0);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&$P(m.current,n,i,v);const S=_.useRef(!1);_.useInsertionEffect(()=>{p&&S.current&&p.update(n,f)});const x=n[D0],T=_.useRef(!!x&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,x))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,x)));return c0(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),yu.render(p.render),T.current&&p.animationState&&p.animationState.animateChanges())}),_.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,x)}),T.current=!1))}),p}function $P(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:k0(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&Gi(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:f})}function k0(e){if(e)return e.options.allowProjection!==!1?e.projection:k0(e.parent)}function DP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&SP(e);function c(f,h){let m;const p={..._.useContext(ou),...f,layoutId:NP(f)},{isStatic:v}=p,S=MP(f),x=r(f,v);if(!v&&su){kP(p,e);const T=LP(p);m=T.MeasureLayout,S.visualElement=IP(i,x,p,t,T.ProjectionNode)}return y.jsxs(Ta.Provider,{value:S,children:[m&&S.visualElement?y.jsx(m,{visualElement:S.visualElement,...p}):null,n(i,f,_P(x,S.visualElement,h),x,v,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[OP]=i,u}function NP({layoutId:e}){const t=_.useContext(ru).id;return t&&e!==void 0?t+"-"+e:e}function kP(e,t){const n=_.useContext(M0).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?Wi(!1,r):vr(!1,r)}}function LP(e){const{drag:t,layout:n}=zi;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 L0=e=>t=>typeof t=="string"&&t.startsWith(e),Tu=L0("--"),RP=L0("var(--"),Eu=e=>RP(e)?jP.test(e.split("/*")[0].trim()):!1,jP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Js={};function FP(e){for(const t in e)Js[t]=e[t],Tu(t)&&(Js[t].isCSSVariable=!0)}const Yi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ti=new Set(Yi);function R0(e,{layout:t,layoutId:n}){return ti.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Js[e]||e==="opacity")}const St=e=>!!(e&&e.getVelocity),j0=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xn=(e,t,n)=>n>t?t:n<e?e:n,Hi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Qs={...Hi,transform:e=>Xn(0,1,e)},Pa={...Hi,default:1},eo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),br=eo("deg"),In=eo("%"),we=eo("px"),VP=eo("vh"),BP=eo("vw"),F0={...In,parse:e=>In.parse(e)/100,transform:e=>In.transform(e*100)},WP={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},UP={rotate:br,rotateX:br,rotateY:br,rotateZ:br,scale:Pa,scaleX:Pa,scaleY:Pa,scaleZ:Pa,skew:br,skewX:br,skewY:br,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:Qs,originX:F0,originY:F0,originZ:we},V0={...Hi,transform:Math.round},Cu={...WP,...UP,zIndex:V0,size:we,fillOpacity:Qs,strokeOpacity:Qs,numOctaves:V0},zP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},GP=Yi.length;function YP(e,t,n){let r="",i=!0;for(let o=0;o<GP;o++){const a=Yi[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 f=j0(c,Cu[a]);if(!u){i=!1;const h=zP[a]||a;r+=`${h}(${f}) `}n&&(t[a]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Pu(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const f=t[u];if(ti.has(u)){a=!0;continue}else if(Tu(u)){i[u]=f;continue}else{const h=j0(f,Cu[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=YP(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:f="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${f} ${h}`}}const Au=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function B0(e,t,n){for(const r in t)!St(t[r])&&!R0(r,n)&&(e[r]=t[r])}function HP({transformTemplate:e},t){return _.useMemo(()=>{const n=Au();return Pu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function qP(e,t){const n=e.style||{},r={};return B0(r,n,e),Object.assign(r,HP(e,t)),r}function KP(e,t){const n={},r=qP(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 XP=["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 Mu(e){return typeof e!="string"||e.includes("-")?!1:!!(XP.indexOf(e)>-1||/[A-Z]/u.test(e))}const ZP={offset:"stroke-dashoffset",array:"stroke-dasharray"},JP={offset:"strokeDashoffset",array:"strokeDasharray"};function QP(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?ZP:JP;e[o.offset]=we.transform(-r);const a=we.transform(t),c=we.transform(n);e[o.array]=`${a} ${c}`}function W0(e,t,n){return typeof e=="string"?e:we.transform(t+n*e)}function eA(e,t,n){const r=W0(t,e.x,e.width),i=W0(n,e.y,e.height);return`${r} ${i}`}function Ou(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...f},h,m){if(Pu(e,f,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:v,dimensions:S}=e;p.transform&&(S&&(v.transform=p.transform),delete p.transform),S&&(i!==void 0||o!==void 0||v.transform)&&(v.transformOrigin=eA(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&&QP(p,a,c,u,!1)}const U0=()=>({...Au(),attrs:{}}),_u=e=>typeof e=="string"&&e.toLowerCase()==="svg";function tA(e,t,n,r){const i=_.useMemo(()=>{const o=U0();return Ou(o,t,_u(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};B0(o,e.style,e),i.style={...o,...i.style}}return i}function nA(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(Mu(n)?tA:KP)(r,o,a,n),f=CP(r,typeof n=="string",e),h=n!==_.Fragment?{...f,...u,ref:i}:{},{children:m}=r,p=_.useMemo(()=>St(m)?m.get():m,[m]);return _.createElement(n,{...h,children:p})}}function z0(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Iu(e,t,n,r){if(typeof t=="function"){const[i,o]=z0(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]=z0(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const $u=e=>Array.isArray(e),rA=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),iA=e=>$u(e)?e[e.length-1]||0:e;function Aa(e){const t=St(e)?e.get():e;return rA(t)?t.toValue():t}function sA({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:oA(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const G0=e=>(t,n)=>{const r=_.useContext(Ta),i=_.useContext(ga),o=()=>sA(e,t,r,i);return n?o():iu(o)};function oA(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),f=I0(e);t&&f&&!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 v=0;v<p.length;v++){const S=Iu(e,p[v]);if(S){const{transitionEnd:x,transition:T,...b}=S;for(const A in b){let E=b[A];if(Array.isArray(E)){const $=h?E.length-1:0;E=E[$]}E!==null&&(i[A]=E)}for(const A in x)i[A]=x[A]}}}return i}function Du(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(St(i[a])||t.style&&St(t.style[a])||R0(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 aA={useVisualState:G0({scrapeMotionValuesFromProps:Du,createRenderState:Au})};function Y0(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 H0(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 q0=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 K0(e,t,n,r){H0(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(q0.has(i)?i:Su(i),t.attrs[i])}function X0(e,t,n){const r=Du(e,t,n);for(const i in e)if(St(e[i])||St(t[i])){const o=Yi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const Z0=["x","y","width","height","cx","cy","r"],lA={useVisualState:G0({scrapeMotionValuesFromProps:X0,createRenderState:U0,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<Z0.length;c++){const u=Z0[c];e[u]!==t[u]&&(a=!0)}a&&He.read(()=>{Y0(n,r),He.render(()=>{Ou(r,i,_u(n.tagName),e.transformTemplate),K0(n,r)})})}})};function cA(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Mu(r)?lA:aA,preloadedFeatures:e,useRender:nA(i),createVisualElement:t,Component:r};return DP(a)}}function to(e,t,n){const r=e.getProps();return Iu(r,t,n!==void 0?n:r.custom,e)}const J0=new Set(["width","height","top","left","right","bottom",...Yi]);function uA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Xs(n))}function fA(e,t){const n=to(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=iA(o[a]);uA(e,a,c)}}function dA(e){return!!(St(e)&&e.add)}function Nu(e,t){const n=e.getValue("willChange");if(dA(n))return n.add(t)}function Q0(e){return e.props[D0]}const eg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,hA=1e-7,mA=12;function pA(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=eg(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>hA&&++c<mA);return a}function no(e,t,n,r){if(e===t&&n===r)return Nt;const i=o=>pA(o,0,1,e,n);return o=>o===0||o===1?o:eg(i(o),t,r)}const tg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ng=e=>t=>1-e(1-t),rg=no(.33,1.53,.69,.99),ku=ng(rg),ig=tg(ku),sg=e=>(e*=2)<1?.5*ku(e):.5*(2-Math.pow(2,-10*(e-1))),Lu=e=>1-Math.sin(Math.acos(e)),og=ng(Lu),ag=tg(Lu),lg=e=>/^0[^.\s]+$/u.test(e);function gA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||lg(e):!0}const ro=e=>Math.round(e*1e5)/1e5,Ru=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function yA(e){return e==null}const vA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ju=(e,t)=>n=>!!(typeof n=="string"&&vA.test(n)&&n.startsWith(e)||t&&!yA(n)&&Object.prototype.hasOwnProperty.call(n,t)),cg=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Ru);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},xA=e=>Xn(0,255,e),Fu={...Hi,transform:e=>Math.round(xA(e))},ni={test:ju("rgb","red"),parse:cg("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Fu.transform(e)+", "+Fu.transform(t)+", "+Fu.transform(n)+", "+ro(Qs.transform(r))+")"};function bA(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 Vu={test:ju("#"),parse:bA,transform:ni.transform},qi={test:ju("hsl","hue"),parse:cg("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+In.transform(ro(t))+", "+In.transform(ro(n))+", "+ro(Qs.transform(r))+")"},Tt={test:e=>ni.test(e)||Vu.test(e)||qi.test(e),parse:e=>ni.test(e)?ni.parse(e):qi.test(e)?qi.parse(e):Vu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ni.transform(e):qi.transform(e)},wA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function SA(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ru))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(wA))===null||n===void 0?void 0:n.length)||0)>0}const ug="number",fg="color",TA="var",EA="var(",dg="${}",CA=/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 io(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(CA,u=>(Tt.test(u)?(r.color.push(o),i.push(fg),n.push(Tt.parse(u))):u.startsWith(EA)?(r.var.push(o),i.push(TA),n.push(u)):(r.number.push(o),i.push(ug),n.push(parseFloat(u))),++o,dg)).split(dg);return{values:n,split:c,indexes:r,types:i}}function hg(e){return io(e).values}function mg(e){const{split:t,types:n}=io(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===ug?o+=ro(i[a]):c===fg?o+=Tt.transform(i[a]):o+=i[a]}return o}}const PA=e=>typeof e=="number"?0:e;function AA(e){const t=hg(e);return mg(e)(t.map(PA))}const wr={test:SA,parse:hg,createTransformer:mg,getAnimatableNone:AA},MA=new Set(["brightness","contrast","saturate","opacity"]);function OA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ru)||[];if(!r)return e;const i=n.replace(r,"");let o=MA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const _A=/\b([a-z-]*)\(.*?\)/gu,Bu={...wr,getAnimatableNone:e=>{const t=e.match(_A);return t?t.map(OA).join(" "):e}},IA={...Cu,color:Tt,backgroundColor:Tt,outlineColor:Tt,fill:Tt,stroke:Tt,borderColor:Tt,borderTopColor:Tt,borderRightColor:Tt,borderBottomColor:Tt,borderLeftColor:Tt,filter:Bu,WebkitFilter:Bu},pg=e=>IA[e];function gg(e,t){let n=pg(e);return n!==Bu&&(n=wr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const $A=new Set(["auto","none","0"]);function DA(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!$A.has(o)&&io(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=gg(n,i)}const ri=e=>e*180/Math.PI,Wu=e=>{const t=ri(Math.atan2(e[1],e[0]));return Uu(t)},NA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Wu,rotateZ:Wu,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},Uu=e=>(e=e%360,e<0&&(e+=360),e),yg=Wu,vg=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),xg=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),kA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:vg,scaleY:xg,scale:e=>(vg(e)+xg(e))/2,rotateX:e=>Uu(ri(Math.atan2(e[6],e[5]))),rotateY:e=>Uu(ri(Math.atan2(-e[2],e[0]))),rotateZ:yg,rotate:yg,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 bg(e){return e.includes("scale")?1:0}function zu(e,t){if(!e||e==="none")return bg(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=kA,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=NA,i=c}if(!i)return bg(t);const o=r[t],a=i[1].split(",").map(RA);return typeof o=="function"?o(a):a[o]}const LA=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return zu(n,t)};function RA(e){return parseFloat(e.trim())}const wg=e=>e===Hi||e===we,jA=new Set(["x","y","z"]),FA=Yi.filter(e=>!jA.has(e));function VA(e){const t=[];return FA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ki={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})=>zu(t,"x"),y:(e,{transform:t})=>zu(t,"y")};Ki.translateX=Ki.x,Ki.translateY=Ki.y;const ii=new Set;let Gu=!1,Yu=!1;function Sg(){if(Yu){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=VA(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)})}Yu=!1,Gu=!1,ii.forEach(e=>e.complete()),ii.clear()}function Tg(){ii.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Yu=!0)})}function BA(){Tg(),Sg()}let Hu=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),Gu||(Gu=!0,He.read(Tg),He.resolveKeyframes(Sg))):(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 Eg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),WA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function UA(e){const t=WA.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const zA=4;function Cg(e,t,n=1){vr(n<=zA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=UA(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return Eg(a)?parseFloat(a):a}return Eu(i)?Cg(i,t,n+1):i}const Pg=e=>t=>t.test(e),Ag=[Hi,we,In,br,BP,VP,{test:e=>e==="auto",parse:e=>e}],Mg=e=>Ag.find(Pg(e));let Og=class extends Hu{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 f=t[u];if(typeof f=="string"&&(f=f.trim(),Eu(f))){const h=Cg(f,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!J0.has(r)||t.length!==2)return;const[i,o]=t,a=Mg(i),c=Mg(o);if(a!==c)if(wg(a)&&wg(c))for(let u=0;u<t.length;u++){const f=t[u];typeof f=="string"&&(t[u]=parseFloat(f))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)gA(t[i])&&r.push(i);r.length&&DA(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=Ki[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]=Ki[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,f])=>{n.getValue(u).set(f)}),this.resolveNoneKeyframes()}};const _g=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wr.test(e)||e==="0")&&!e.startsWith("url("));function GA(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 YA(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=_g(i,t),c=_g(o,t);return Wi(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:GA(e)||(n==="spring"||hu(n))&&r}const HA=e=>e!==null;function Ma(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(HA),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const qA=40;let Ig=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=_n.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>qA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&BA(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=_n.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:f}=this.options;if(!f&&!YA(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 qu(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 KA({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=qu(u,c,e+1/3),o=qu(u,c,e),a=qu(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 Ku=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},XA=[Vu,ni,qi],ZA=e=>XA.find(t=>t.test(e));function $g(e){const t=ZA(e);if(Wi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===qi&&(n=KA(n)),n}const Dg=(e,t)=>{const n=$g(e),r=$g(t);if(!n||!r)return Oa(e,t);const i={...n};return o=>(i.red=Ku(n.red,r.red,o),i.green=Ku(n.green,r.green,o),i.blue=Ku(n.blue,r.blue,o),i.alpha=tt(n.alpha,r.alpha,o),ni.transform(i))},JA=(e,t)=>n=>t(e(n)),so=(...e)=>e.reduce(JA),Xu=new Set(["none","hidden"]);function QA(e,t){return Xu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function eM(e,t){return n=>tt(e,t,n)}function Zu(e){return typeof e=="number"?eM:typeof e=="string"?Eu(e)?Oa:Tt.test(e)?Dg:rM:Array.isArray(e)?Ng:typeof e=="object"?Tt.test(e)?Dg:tM:Oa}function Ng(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>Zu(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function tM(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Zu(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function nM(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 rM=(e,t)=>{const n=wr.createTransformer(t),r=io(e),i=io(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?Xu.has(e)&&!i.values.length||Xu.has(t)&&!r.values.length?QA(e,t):so(Ng(nM(r,i),i.values),n):(Wi(!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 kg(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tt(e,t,n):Zu(e)(e,t)}const iM=5;function Lg(e,t,n){const r=Math.max(t-iM,0);return d0(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},Rg=.001;function sM({duration:e=nt.duration,bounce:t=nt.bounce,velocity:n=nt.velocity,mass:r=nt.mass}){let i,o;Wi(e<=On(nt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Xn(nt.minDamping,nt.maxDamping,a),e=Xn(nt.minDuration,nt.maxDuration,Kn(e)),a<1?(i=f=>{const h=f*a,m=h*e,p=h-n,v=Ju(f,a),S=Math.exp(-m);return Rg-p/v*S},o=f=>{const m=f*a*e,p=m*n+n,v=Math.pow(a,2)*Math.pow(f,2)*e,S=Math.exp(-m),x=Ju(Math.pow(f,2),a);return(-i(f)+Rg>0?-1:1)*((p-v)*S)/x}):(i=f=>{const h=Math.exp(-f*e),m=(f-n)*e+1;return-.001+h*m},o=f=>{const h=Math.exp(-f*e),m=(n-f)*(e*e);return h*m});const c=5/e,u=aM(i,o,c);if(e=On(e),isNaN(u))return{stiffness:nt.stiffness,damping:nt.damping,duration:e};{const f=Math.pow(u,2)*r;return{stiffness:f,damping:a*2*Math.sqrt(r*f),duration:e}}}const oM=12;function aM(e,t,n){let r=n;for(let i=1;i<oM;i++)r=r-e(r)/t(r);return r}function Ju(e,t){return e*Math.sqrt(1-t*t)}const lM=["duration","bounce"],cM=["stiffness","damping","mass"];function jg(e,t){return t.some(n=>e[n]!==void 0)}function uM(e){let t={velocity:nt.velocity,stiffness:nt.stiffness,damping:nt.damping,mass:nt.mass,isResolvedFromDuration:!1,...e};if(!jg(e,cM)&&jg(e,lM))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:nt.mass,stiffness:i,damping:o}}else{const n=sM(e);t={...t,...n,mass:nt.mass},t.isResolvedFromDuration=!0}return t}function Fg(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:f,mass:h,duration:m,velocity:p,isResolvedFromDuration:v}=uM({...n,velocity:-Kn(n.velocity||0)}),S=p||0,x=f/(2*Math.sqrt(u*h)),T=a-o,b=Kn(Math.sqrt(u/h)),A=Math.abs(T)<5;r||(r=A?nt.restSpeed.granular:nt.restSpeed.default),i||(i=A?nt.restDelta.granular:nt.restDelta.default);let E;if(x<1){const C=Ju(b,x);E=D=>{const j=Math.exp(-x*b*D);return a-j*((S+x*b*T)/C*Math.sin(C*D)+T*Math.cos(C*D))}}else if(x===1)E=C=>a-Math.exp(-b*C)*(T+(S+b*T)*C);else{const C=b*Math.sqrt(x*x-1);E=D=>{const j=Math.exp(-x*b*D),F=Math.min(C*D,300);return a-j*((S+x*b*T)*Math.sinh(F)+C*T*Math.cosh(F))/C}}const $={calculatedDuration:v&&m||null,next:C=>{const D=E(C);if(v)c.done=C>=m;else{let j=0;x<1&&(j=C===0?On(S):Lg(E,C,D));const F=Math.abs(j)<=r,U=Math.abs(a-D)<=i;c.done=F&&U}return c.value=c.done?a:D,c},toString:()=>{const C=Math.min(m0($),du),D=g0(j=>$.next(C*j).value,C,30);return C+"ms "+D}};return $}function Vg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:f=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},v=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 x=n*t;const T=m+x,b=a===void 0?T:a(T);b!==T&&(x=b-m);const A=F=>-x*Math.exp(-F/r),E=F=>b+A(F),$=F=>{const U=A(F),Z=E(F);p.done=Math.abs(U)<=f,p.value=p.done?b:Z};let C,D;const j=F=>{v(p.value)&&(C=F,D=Fg({keyframes:[p.value,S(p.value)],velocity:Lg(E,F,p.value),damping:i,stiffness:o,restDelta:f,restSpeed:h}))};return j(0),{calculatedDuration:null,next:F=>{let U=!1;return!D&&C===void 0&&(U=!0,$(F),j(F)),C!==void 0&&F>=C?D.next(F-C):(!U&&$(F),p)}}}const fM=no(.42,0,1,1),dM=no(0,0,.58,1),Bg=no(.42,0,.58,1),hM=e=>Array.isArray(e)&&typeof e[0]!="number",Wg={linear:Nt,easeIn:fM,easeInOut:Bg,easeOut:dM,circIn:Lu,circInOut:ag,circOut:og,backIn:ku,backInOut:ig,backOut:rg,anticipate:sg},Ug=e=>{if(mu(e)){vr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return no(t,n,r,i)}else if(typeof e=="string")return vr(Wg[e]!==void 0,`Invalid easing type '${e}'`),Wg[e];return e};function mM(e,t,n){const r=[],i=n||kg,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=so(u,c)}r.push(c)}return r}function pM(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=mM(t,r,i),u=c.length,f=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=Ui(e[m],e[m+1],h);return c[m](p)};return n?h=>f(Xn(e[0],e[o-1],h)):f}function gM(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ui(0,t,r);e.push(tt(n,1,i))}}function yM(e){const t=[0];return gM(t,e.length-1),t}function vM(e,t){return e.map(n=>n*t)}function xM(e,t){return e.map(()=>t||Bg).splice(0,e.length-1)}function oo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=hM(r)?r.map(Ug):Ug(r),o={done:!1,value:t[0]},a=vM(n&&n.length===t.length?n:yM(t),e),c=pM(a,t,{ease:Array.isArray(i)?i:xM(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const bM=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>xr(t),now:()=>yt.isProcessing?yt.timestamp:_n.now()}},wM={decay:Vg,inertia:Vg,tween:oo,keyframes:oo,spring:Fg},SM=e=>e/100;let Qu=class extends Ig{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)||Hu,c=(u,f)=>this.onKeyframesResolved(u,f);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=hu(n)?n:wM[n]||oo;let u,f;process.env.NODE_ENV!=="production"&&c!==oo&&vr(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==oo&&typeof t[0]!="number"&&(u=so(SM,kg(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(f=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=m0(h));const{calculatedDuration:m}=h,p=m+i,v=p*(r+1)-i;return{generator:h,mirroredGenerator:f,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:v}}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:f,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:v,repeatType:S,repeatDelay:x,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 b=this.currentTime-p*(this.speed>=0?1:-1),A=this.speed>=0?b<0:b>h;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let E=this.currentTime,$=o;if(v){const F=Math.min(this.currentTime,h)/m;let U=Math.floor(F),Z=F%1;!Z&&F>=1&&(Z=1),Z===1&&U--,U=Math.min(U,v+1),!!(U%2)&&(S==="reverse"?(Z=1-Z,x&&(Z-=x/m)):S==="mirror"&&($=a)),E=Xn(0,1,Z)*m}const C=A?{done:!1,value:u[0]}:$.next(E);c&&(C.value=c(C.value));let{done:D}=C;!A&&f!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return j&&i!==void 0&&(C.value=Ma(u,this.options,i)),T&&T(C.value),j&&this.finish(),C}get duration(){const{resolved:t}=this;return t?Kn(t.calculatedDuration):0}get time(){return Kn(this.currentTime)}set time(t){t=On(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Kn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=bM,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 TM=new Set(["opacity","clipPath","filter","transform"]);function EM(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const f={[t]:n};u&&(f.offset=u);const h=v0(c,i);return Array.isArray(h)&&(f.easing=h),e.animate(f,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const CM=cu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_a=10,PM=2e4;function AM(e){return hu(e.type)||e.type==="spring"||!y0(e.ease)}function MM(e,t){const n=new Qu({...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<PM;)r=n.sample(o),i.push(r.value),o+=_a;return{times:void 0,keyframes:i,duration:o-_a,ease:"linear"}}const zg={anticipate:sg,backInOut:ig,circInOut:ag};function OM(e){return e in zg}let Gg=class extends Ig{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new Og(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:f}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&xa()&&OM(o)&&(o=zg[o]),AM(this.options)){const{onComplete:m,onUpdate:p,motionValue:v,element:S,...x}=this.options,T=MM(t,x);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,o=T.ease,a="keyframes"}const h=EM(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(p0(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 Kn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Kn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=On(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Nt;const{animation:r}=n;p0(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:f,onUpdate:h,onComplete:m,element:p,...v}=this.options,S=new Qu({...v,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),x=On(this.time);f.setWithVelocity(S.sample(x-_a).value,S.sample(x).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:f}=n.owner.getProps();return CM()&&r&&TM.has(r)&&(r!=="transform"||!f)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}};const _M={type:"spring",stiffness:500,damping:25,restSpeed:10},IM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$M={type:"keyframes",duration:.8},DM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},NM=(e,{keyframes:t})=>t.length>2?$M:ti.has(e)?e.startsWith("scale")?IM(t[1]):_M:DM;function kM({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:f,...h}){return!!Object.keys(h).length}const ef=(e,t,n,r={},i,o)=>a=>{const c=fu(r,e)||{},u=c.delay||r.delay||0;let{elapsed:f=0}=r;f=f-On(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-f,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};kM(c)||(h={...h,...NM(e,h)}),h.duration&&(h.duration=On(h.duration)),h.repeatDelay&&(h.repeatDelay=On(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const p=Ma(h.keyframes,c);if(p!==void 0)return He.update(()=>{h.onUpdate(p),h.onComplete()}),new aP([])}return!o&&Gg.supports(h)?new Gg(h):new Qu(h)};function LM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Yg(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const f=[],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),v=u[m];if(v===void 0||h&&LM(h,m))continue;const S={delay:n,...fu(a||{},m)};let x=!1;if(window.MotionHandoffAnimation){const b=Q0(e);if(b){const A=window.MotionHandoffAnimation(b,m,He);A!==null&&(S.startTime=A,x=!0)}}Nu(e,m),p.start(ef(m,p,v,e.shouldReduceMotion&&J0.has(m)?{type:!1}:S,e,x));const T=p.animation;T&&f.push(T)}return c&&Promise.all(f).then(()=>{He.update(()=>{c&&fA(e,c)})}),f}function tf(e,t,n={}){var r;const i=to(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(Yg(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return RM(e,t,h+f,m,p,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[f,h]=u==="beforeChildren"?[a,c]:[c,a];return f().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function RM(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(f=0)=>f*r:(f=0)=>c-f*r;return Array.from(e.variantChildren).sort(jM).forEach((f,h)=>{f.notify("AnimationStart",t),a.push(tf(f,t,{...o,delay:n+u(h)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(a)}function jM(e,t){return e.sortNodePosition(t)}function FM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>tf(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=tf(e,t,n);else{const i=typeof t=="function"?to(e,t,n.custom):t;r=Promise.all(Yg(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Hg(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 VM=wu.length;function qg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?qg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<VM;n++){const r=wu[n],i=e.props[r];(Zs(i)||i===!1)&&(t[r]=i)}return t}const BM=[...bu].reverse(),WM=bu.length;function UM(e){return t=>Promise.all(t.map(({animation:n,options:r})=>FM(e,n,r)))}function zM(e){let t=UM(e),n=Kg(),r=!0;const i=u=>(f,h)=>{var m;const p=to(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:v,transitionEnd:S,...x}=p;f={...f,...x,...S}}return f};function o(u){t=u(e)}function a(u){const{props:f}=e,h=qg(e.parent)||{},m=[],p=new Set;let v={},S=1/0;for(let T=0;T<WM;T++){const b=BM[T],A=n[b],E=f[b]!==void 0?f[b]:h[b],$=Zs(E),C=b===u?A.isActive:null;C===!1&&(S=T);let D=E===h[b]&&E!==f[b]&&$;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),A.protectedKeys={...v},!A.isActive&&C===null||!E&&!A.prevProp||Ea(E)||typeof E=="boolean")continue;const j=GM(A.prevProp,E);let F=j||b===u&&A.isActive&&!D&&$||T>S&&$,U=!1;const Z=Array.isArray(E)?E:[E];let ee=Z.reduce(i(b),{});C===!1&&(ee={});const{prevResolvedValues:se={}}=A,ge={...se,...ee},ue=V=>{F=!0,p.has(V)&&(U=!0,p.delete(V)),A.needsAnimating[V]=!0;const B=e.getValue(V);B&&(B.liveStyle=!1)};for(const V in ge){const B=ee[V],Y=se[V];if(v.hasOwnProperty(V))continue;let O=!1;$u(B)&&$u(Y)?O=!Hg(B,Y):O=B!==Y,O?B!=null?ue(V):p.add(V):B!==void 0&&p.has(V)?ue(V):A.protectedKeys[V]=!0}A.prevProp=E,A.prevResolvedValues=ee,A.isActive&&(v={...v,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(D&&j)||U)&&m.push(...Z.map(V=>({animation:V,options:{type:b}})))}if(p.size){const T={};if(typeof f.initial!="boolean"){const b=to(e,Array.isArray(f.initial)?f.initial[0]:f.initial);b&&b.transition&&(T.transition=b.transition)}p.forEach(b=>{const A=e.getBaseTarget(b),E=e.getValue(b);E&&(E.liveStyle=!0),T[b]=A??null}),m.push({animation:T})}let x=!!m.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(m):Promise.resolve()}function c(u,f){var h;if(n[u].isActive===f)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var v;return(v=p.animationState)===null||v===void 0?void 0:v.setActive(u,f)}),n[u].isActive=f;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=Kg(),r=!0}}}function GM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Hg(t,e):!1}function si(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Kg(){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(){}},YM=class extends Sr{constructor(t){super(t),t.animationState||(t.animationState=zM(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)}},HM=0;const qM={animation:{Feature:YM},exit:{Feature:class extends Sr{constructor(){super(...arguments),this.id=HM++}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 ao(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function lo(e){return{point:{x:e.pageX,y:e.pageY}}}const KM=e=>t=>vu(t)&&e(t,lo(t));function co(e,t,n,r){return ao(e,t,KM(n),r)}function Xg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function XM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ZM(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 Zg=1e-4,JM=1-Zg,QM=1+Zg,Jg=.01,eO=0-Jg,tO=0+Jg;function Ot(e){return e.max-e.min}function nO(e,t,n){return Math.abs(e-t)<=n}function Qg(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>=JM&&e.scale<=QM||isNaN(e.scale))&&(e.scale=1),(e.translate>=eO&&e.translate<=tO||isNaN(e.translate))&&(e.translate=0)}function uo(e,t,n,r){Qg(e.x,t.x,n.x,r?r.originX:void 0),Qg(e.y,t.y,n.y,r?r.originY:void 0)}function ey(e,t,n){e.min=n.min+t.min,e.max=e.min+Ot(t)}function rO(e,t,n){ey(e.x,t.x,n.x),ey(e.y,t.y,n.y)}function ty(e,t,n){e.min=t.min-n.min,e.max=e.min+Ot(t)}function fo(e,t,n){ty(e.x,t.x,n.x),ty(e.y,t.y,n.y)}const ny=()=>({translate:0,scale:1,origin:0,originPoint:0}),Xi=()=>({x:ny(),y:ny()}),ry=()=>({min:0,max:0}),at=()=>({x:ry(),y:ry()});function tn(e){return[e("x"),e("y")]}function nf(e){return e===void 0||e===1}function rf({scale:e,scaleX:t,scaleY:n}){return!nf(e)||!nf(t)||!nf(n)}function oi(e){return rf(e)||iy(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function iy(e){return sy(e.x)||sy(e.y)}function sy(e){return e&&e!=="0%"}function Ia(e,t,n){const r=e-n,i=t*r;return n+i}function oy(e,t,n,r,i){return i!==void 0&&(e=Ia(e,i,r)),Ia(e,n,r)+t}function sf(e,t=0,n=1,r,i){e.min=oy(e.min,t,n,r,i),e.max=oy(e.max,t,n,r,i)}function ay(e,{x:t,y:n}){sf(e.x,t.translate,t.scale,t.originPoint),sf(e.y,n.translate,n.scale,n.originPoint)}const ly=.999999999999,cy=1.0000000000001;function iO(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&&Ji(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,ay(e,a)),r&&oi(o.latestValues)&&Ji(e,o.latestValues))}t.x<cy&&t.x>ly&&(t.x=1),t.y<cy&&t.y>ly&&(t.y=1)}function Zi(e,t){e.min=e.min+t,e.max=e.max+t}function uy(e,t,n,r,i=.5){const o=tt(e.min,e.max,i);sf(e,t,n,o,r)}function Ji(e,t){uy(e.x,t.x,t.scaleX,t.scale,t.originX),uy(e.y,t.y,t.scaleY,t.scale,t.originY)}function fy(e,t){return Xg(ZM(e.getBoundingClientRect(),t))}function sO(e,t,n){const r=fy(e,n),{scroll:i}=t;return i&&(Zi(r.x,i.offset.x),Zi(r.y,i.offset.y)),r}const dy=({current:e})=>e?e.ownerDocument.defaultView:null,hy=(e,t)=>Math.abs(e-t);function oO(e,t){const n=hy(e.x,t.x),r=hy(e.y,t.y);return Math.sqrt(n**2+r**2)}let my=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=af(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,v=oO(m.offset,{x:0,y:0})>=3;if(!p&&!v)return;const{point:S}=m,{timestamp:x}=yt;this.history.push({...S,timestamp:x});const{onStart:T,onMove:b}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=of(p,this.transformPagePoint),He.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:v,onSessionEnd:S,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=af(m.type==="pointercancel"?this.lastMoveEventInfo:of(p,this.transformPagePoint),this.history);this.startEvent&&v&&v(m,T),S&&S(m,T)},!vu(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=lo(t),c=of(a,this.transformPagePoint),{point:u}=c,{timestamp:f}=yt;this.history=[{...u,timestamp:f}];const{onSessionStart:h}=n;h&&h(t,af(c,this.history)),this.removeListeners=so(co(this.contextWindow,"pointermove",this.handlePointerMove),co(this.contextWindow,"pointerup",this.handlePointerUp),co(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),xr(this.updatePoint)}};function of(e,t){return t?{point:t(e.point)}:e}function py(e,t){return{x:e.x-t.x,y:e.y-t.y}}function af({point:e},t){return{point:e,delta:py(e,gy(t)),offset:py(e,aO(t)),velocity:lO(t,.1)}}function aO(e){return e[0]}function gy(e){return e[e.length-1]}function lO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=gy(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>On(t)));)n--;if(!r)return{x:0,y:0};const o=Kn(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 cO(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 yy(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 uO(e,{top:t,left:n,bottom:r,right:i}){return{x:yy(e.x,n,i),y:yy(e.y,t,r)}}function vy(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 fO(e,t){return{x:vy(e.x,t.x),y:vy(e.y,t.y)}}function dO(e,t){let n=.5;const r=Ot(e),i=Ot(t);return i>r?n=Ui(t.min,t.max-r,e.min):r>i&&(n=Ui(e.min,e.max-i,t.min)),Xn(0,1,n)}function hO(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 lf=.35;function mO(e=lf){return e===!1?e=0:e===!0&&(e=lf),{x:xy(e,"left","right"),y:xy(e,"top","bottom")}}function xy(e,t,n){return{min:by(e,t),max:by(e,n)}}function by(e,t){return typeof e=="number"?e:e[t]||0}const pO=new WeakMap;let gO=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(lo(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:v,onDragStart:S}=this.getProps();if(p&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=hP(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 b=this.getAxisMotionValue(T).get()||0;if(In.test(b)){const{projection:A}=this.visualElement;if(A&&A.layout){const E=A.layout.layoutBox[T];E&&(b=Ot(E)*(parseFloat(b)/100))}}this.originPoint[T]=b}),S&&He.postRender(()=>S(h,m)),Nu(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:p,dragDirectionLock:v,onDirectionLock:S,onDrag:x}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(v&&this.currentDirection===null){this.currentDirection=yO(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),x&&x(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:f}=this.getProps();this.panSession=new my(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,contextWindow:dy(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||!$a(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=cO(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&&Gi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=uO(i.layoutBox,n):this.constraints=!1,this.elastic=mO(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=hO(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Gi(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=sO(r,i.root,this.visualElement.getTransformPagePoint());let a=fO(i.layout.layoutBox,o);if(n){const c=n(XM(a));this.hasMutatedConstraints=!!c,c&&(a=Xg(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},f=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,v=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(f).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Nu(this.visualElement,t),r.start(ef(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(!Gi(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]=dO({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:f}=this.constraints[a];c.set(tt(u,f,i[a]))})}addListeners(){if(!this.visualElement.current)return;pO.set(this.visualElement,this);const t=this.visualElement.current,n=co(t,"pointerdown",u=>{const{drag:f,dragListener:h=!0}=this.getProps();f&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Gi(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:f})=>{this.isDragging&&f&&(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=lf,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 yO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}let vO=class extends Sr{constructor(t){super(t),this.removeGroupControls=Nt,this.removeListeners=Nt,this.controls=new gO(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 wy=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};let xO=class extends Sr{constructor(){super(...arguments),this.removePointerDownListener=Nt}onPointerDown(t){this.session=new my(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:dy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:wy(t),onStart:wy(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&He.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=co(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 Sy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ho={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const n=Sy(e,t.target.x),r=Sy(e,t.target.y);return`${n}% ${r}%`}},bO={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 f=tt(c,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=f),typeof i[3+a]=="number"&&(i[3+a]/=f),o(i)}};let wO=class extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;FP(SO),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()||He.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),yu.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 Ty(e){const[t,n]=u0(),r=_.useContext(ru);return y.jsx(wO,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(N0),isPresent:t,safeToRemove:n})}const SO={borderRadius:{...ho,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ho,borderTopRightRadius:ho,borderBottomLeftRadius:ho,borderBottomRightRadius:ho,boxShadow:bO};function TO(e,t,n){const r=St(e)?e:Xs(e);return r.start(ef("",r,t,n)),r.animation}function EO(e){return e instanceof SVGElement&&e.tagName!=="svg"}const CO=(e,t)=>e.depth-t.depth;let PO=class{constructor(){this.children=[],this.isDirty=!1}add(t){au(this.children,t),this.isDirty=!0}remove(t){lu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(CO),this.isDirty=!1,this.children.forEach(t)}};function AO(e,t){const n=_n.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(xr(r),e(o-t))};return He.read(r,!0),()=>xr(r)}const Ey=["TopLeft","TopRight","BottomLeft","BottomRight"],MO=Ey.length,Cy=e=>typeof e=="string"?parseFloat(e):e,Py=e=>typeof e=="number"||we.test(e);function OO(e,t,n,r,i,o){i?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,_O(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,IO(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<MO;a++){const c=`border${Ey[a]}Radius`;let u=Ay(t,c),f=Ay(n,c);if(u===void 0&&f===void 0)continue;u||(u=0),f||(f=0),u===0||f===0||Py(u)===Py(f)?(e[c]=Math.max(tt(Cy(u),Cy(f),r),0),(In.test(f)||In.test(u))&&(e[c]+="%")):e[c]=f}(t.rotate||n.rotate)&&(e.rotate=tt(t.rotate||0,n.rotate||0,r))}function Ay(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const _O=My(0,.5,og),IO=My(.5,.95,Nt);function My(e,t,n){return r=>r<e?0:r>t?1:n(Ui(e,t,r))}function Oy(e,t){e.min=t.min,e.max=t.max}function nn(e,t){Oy(e.x,t.x),Oy(e.y,t.y)}function _y(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Iy(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 $O(e,t=0,n=1,r=.5,i,o=e,a=e){if(In.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=Iy(e.min,t,n,c,i),e.max=Iy(e.max,t,n,c,i)}function $y(e,t,[n,r,i],o,a){$O(e,t[n],t[r],t[i],t.scale,o,a)}const DO=["x","scaleX","originX"],NO=["y","scaleY","originY"];function Dy(e,t,n,r){$y(e.x,t,DO,n?n.x:void 0,r?r.x:void 0),$y(e.y,t,NO,n?n.y:void 0,r?r.y:void 0)}function Ny(e){return e.translate===0&&e.scale===1}function ky(e){return Ny(e.x)&&Ny(e.y)}function Ly(e,t){return e.min===t.min&&e.max===t.max}function kO(e,t){return Ly(e.x,t.x)&&Ly(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 jy(e,t){return Ry(e.x,t.x)&&Ry(e.y,t.y)}function Fy(e){return Ot(e.x)/Ot(e.y)}function Vy(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}let LO=class{constructor(){this.members=[]}add(t){au(this.members,t),t.scheduleRender()}remove(t){if(lu(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 RO(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:f,rotate:h,rotateX:m,rotateY:p,skewX:v,skewY:S}=n;f&&(r=`perspective(${f}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),v&&(r+=`skewX(${v}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 cf=["","X","Y","Z"],jO={visibility:"hidden"},By=1e3;let FO=0;function uf(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Wy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Q0(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&&Wy(r)}function Uy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=FO++,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(WO),this.nodes.forEach(HO),this.nodes.forEach(qO),this.nodes.forEach(UO)},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 PO)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new uu),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=EO(a),this.instance=a;const{layoutId:u,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(f||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=AO(p,250),Da.hasAnimatedSinceResize&&(Da.hasAnimatedSinceResize=!1,this.nodes.forEach(Gy))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||f)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:v,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||h.getDefaultTransition()||QO,{onLayoutAnimationStart:T,onLayoutAnimationComplete:b}=h.getProps(),A=!this.targetLayout||!jy(this.targetLayout,S),E=!p&&v;if(this.options.layoutRoot||this.resumeFrom||E||p&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,E);const $={...fu(x,"layout"),onPlay:T,onComplete:b};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||Gy(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,xr(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(KO),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&&Wy(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 f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(zy);return}this.isUpdating||this.nodes.forEach(GO),this.isUpdating=!1,this.nodes.forEach(YO),this.nodes.forEach(VO),this.nodes.forEach(BO),this.clearAllSnapshots();const c=_n.now();yt.delta=Xn(0,1e3/60,c-yt.timestamp),yt.timestamp=c,yt.isProcessing=!0,gu.update.process(yt),gu.preRender.process(yt),gu.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,yu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(zO),this.sharedNodes.forEach(XO)}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&&!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&&!ky(this.projectionDelta),u=this.getTransformTemplate(),f=u?u(this.latestValues,""):void 0,h=f!==this.prevTransformTemplateValue;a&&(c||oi(this.latestValues)||h)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),e4(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(t4))){const{scroll:h}=this.root;h&&(Zi(u.x,h.offset.x),Zi(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 f=0;f<this.path.length;f++){const h=this.path[f],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&nn(u,a),Zi(u.x,m.offset.x),Zi(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=at();nn(u,a);for(let f=0;f<this.path.length;f++){const h=this.path[f];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Ji(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),oi(h.latestValues)&&Ji(u,h.latestValues)}return oi(this.latestValues)&&Ji(u,this.latestValues),u}removeTransform(a){const c=at();nn(c,a);for(let u=0;u<this.path.length;u++){const f=this.path[u];if(!f.instance||!oi(f.latestValues))continue;rf(f.latestValues)&&f.updateSnapshot();const h=at(),m=f.measurePageBox();nn(h,m),Dy(c,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,h)}return oi(this.latestValues)&&Dy(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 f=!!this.resumingFrom||this!==u;if(!(a||f&&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 v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),fo(this.relativeTargetOrigin,this.layout.layoutBox,v.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(),rO(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),ay(this.target,this.targetDelta)):nn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),fo(this.relativeTargetOrigin,this.target,v.target),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||rf(this.parent.latestValues)||iy(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 f=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(f=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===yt.timestamp&&(f=!1),f)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,v=this.treeScale.y;iO(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():(_y(this.prevProjectionDelta.x,this.projectionDelta.x),_y(this.prevProjectionDelta.y,this.projectionDelta.y)),uo(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==v||!Vy(this.projectionDelta.x,this.prevProjectionDelta.x)||!Vy(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=Xi(),this.projectionDelta=Xi(),this.projectionDeltaWithTransform=Xi()}setAnimationOrigin(a,c=!1){const u=this.snapshot,f=u?u.latestValues:{},h={...this.latestValues},m=Xi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=at(),v=u?u.source:void 0,S=this.layout?this.layout.source:void 0,x=v!==S,T=this.getStack(),b=!T||T.members.length<=1,A=!!(x&&!b&&this.options.crossfade===!0&&!this.path.some(JO));this.animationProgress=0;let E;this.mixTargetDelta=$=>{const C=$/1e3;Yy(m.x,a.x,C),Yy(m.y,a.y,C),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fo(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ZO(this.relativeTarget,this.relativeTargetOrigin,p,C),E&&kO(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=at()),nn(E,this.relativeTarget)),x&&(this.animationValues=h,OO(h,f,this.latestValues,C,A,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},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&&(xr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{Da.hasAnimatedSinceResize=!0,this.currentAnimation=TO(0,By,{...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(By),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:f,latestValues:h}=a;if(!(!c||!u||!f)){if(this!==a&&this.layout&&f&&Zy(this.options.animationType,this.layout.layoutBox,f.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),Ji(c,h),uo(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new LO),this.sharedNodes.get(a).add(c);const f=c.options.initialPromotionConfig;c.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.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 f=this.getStack();f&&f.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 f={};u.z&&uf("z",a,f,this.animationValues);for(let h=0;h<cf.length;h++)uf(`rotate${cf[h]}`,a,f,this.animationValues),uf(`skew${cf[h]}`,a,f,this.animationValues);a.render();for(const h in f)a.setStaticValue(h,f[h]),this.animationValues&&(this.animationValues[h]=f[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return jO;const f={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=Aa(a==null?void 0:a.pointerEvents)||"",f.transform=h?h(this.latestValues,""):"none",f;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=Aa(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!oi(this.latestValues)&&(x.transform=h?h({},""):"none",this.hasProjected=!1),x}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),f.transform=RO(this.projectionDeltaWithTransform,this.treeScale,p),h&&(f.transform=h(p,f.transform));const{x:v,y:S}=this.projectionDelta;f.transformOrigin=`${v.origin*100}% ${S.origin*100}% 0`,m.animationValues?f.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:f.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const x in Js){if(p[x]===void 0)continue;const{correct:T,applyTo:b,isCSSVariable:A}=Js[x],E=f.transform==="none"?p[x]:T(p[x],m);if(b){const $=b.length;for(let C=0;C<$;C++)f[b[C]]=E}else A?this.options.visualElement.renderState.vars[x]=E:f[x]=E}return this.options.layoutId&&(f.pointerEvents=m===this?Aa(a==null?void 0:a.pointerEvents)||"":"none"),f}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(zy),this.root.sharedNodes.clear()}}}function VO(e){e.updateLayout()}function BO(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],v=Ot(p);p.min=r[m].min,p.max=p.min+v}):Zy(o,n.layoutBox,r)&&tn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],v=Ot(r[m]);p.max=p.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+v)});const c=Xi();uo(c,r,n.layoutBox);const u=Xi();a?uo(u,e.applyTransform(i,!0),n.measuredBox):uo(u,r,n.layoutBox);const f=!ky(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:v}=m;if(p&&v){const S=at();fo(S,n.layoutBox,p.layoutBox);const x=at();fo(x,r,v.layoutBox),jy(S,x)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function WO(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 UO(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function zO(e){e.clearSnapshot()}function zy(e){e.clearMeasurements()}function GO(e){e.isLayoutDirty=!1}function YO(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Gy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function HO(e){e.resolveTargetDelta()}function qO(e){e.calcProjection()}function KO(e){e.resetSkewAndRotation()}function XO(e){e.removeLeadSnapshot()}function Yy(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 Hy(e,t,n,r){e.min=tt(t.min,n.min,r),e.max=tt(t.max,n.max,r)}function ZO(e,t,n,r){Hy(e.x,t.x,n.x,r),Hy(e.y,t.y,n.y,r)}function JO(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const QO={duration:.45,ease:[.4,0,.1,1]},qy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ky=qy("applewebkit/")&&!qy("chrome/")?Math.round:Nt;function Xy(e){e.min=Ky(e.min),e.max=Ky(e.max)}function e4(e){Xy(e.x),Xy(e.y)}function Zy(e,t,n){return e==="position"||e==="preserve-aspect"&&!nO(Fy(t),Fy(n),.2)}function t4(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const n4=Uy({attachResizeListener:(e,t)=>ao(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ff={current:void 0},Jy=Uy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ff.current){const e=new n4({});e.mount(window),e.setOptions({layoutScroll:!0}),ff.current=e}return ff.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),r4={pan:{Feature:xO},drag:{Feature:vO,ProjectionNode:Jy,MeasureLayout:Ty}};function Qy(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,lo(t)))}let i4=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=pP(t,(n,r)=>(Qy(this.node,r,"Start"),i=>Qy(this.node,i,"End"))))}unmount(){}},s4=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=so(ao(this.node.current,"focus",()=>this.onFocus()),ao(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function ev(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,lo(t)))}let o4=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=xP(t,(n,r)=>(ev(this.node,r,"Start"),(i,{success:o})=>ev(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const df=new WeakMap,hf=new WeakMap,a4=e=>{const t=df.get(e.target);t&&t(e)},l4=e=>{e.forEach(a4)};function c4({root:e,...t}){const n=e||document;hf.has(n)||hf.set(n,{});const r=hf.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(l4,{root:e,...t})),r[i]}function u4(e,t,n){const r=c4(t);return df.set(e,n),r.observe(e),()=>{df.delete(e),r.unobserve(e)}}const f4={some:0,all:1};let d4=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:f4[i]},c=u=>{const{isIntersecting:f}=u;if(this.isInView===f||(this.isInView=f,o&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=f?h:m;p&&p(u)};return u4(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(h4(t,n))&&this.startObserver()}unmount(){}};function h4({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const m4={inView:{Feature:d4},tap:{Feature:o4},focus:{Feature:s4},hover:{Feature:i4}},p4={layout:{ProjectionNode:Jy,MeasureLayout:Ty}},mf={current:null},tv={current:!1};function g4(){if(tv.current=!0,!!su)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>mf.current=e.matches;e.addListener(t),t()}else mf.current=!1}const y4=[...Ag,Tt,wr],v4=e=>y4.find(Pg(e)),x4=new WeakMap;function b4(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,Xs(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,Xs(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const nv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let w4=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=Hu,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 v=_n.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,He.render(this.render,!1,!0))};const{latestValues:u,renderState:f,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=f,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=I0(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in p){const S=p[v];u[v]!==void 0&&St(S)&&S.set(u[v],!1)}}mount(t){this.current=t,x4.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)),tv.current||g4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:mf.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(),xr(this.notifyUpdate),xr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ti.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&He.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in zi){const n=zi[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<nv.length;r++){const i=nv[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=b4(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=Xs(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"&&(Eg(i)||lg(i))?i=parseFloat(i):!v4(i)&&wr.test(n)&&(i=gg(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=Iu(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 uu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},rv=class extends w4{constructor(){super(...arguments),this.KeyframeResolver=Og}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 S4(e){return window.getComputedStyle(e)}let T4=class extends rv{constructor(){super(...arguments),this.type="html",this.renderInstance=H0}readValueFromInstance(t,n){if(ti.has(n))return LA(t,n);{const r=S4(t),i=(Tu(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return fy(t,n)}build(t,n,r){Pu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Du(t,n,r)}},E4=class extends rv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=at,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Y0(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ti.has(n)){const r=pg(n);return r&&r.default||0}return n=q0.has(n)?n:Su(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return X0(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&He.postRender(this.updateDimensions)}build(t,n,r){Ou(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){K0(t,n,r,i)}mount(t){this.isSVGTag=_u(t.tagName),super.mount(t)}};const C4=(e,t)=>Mu(e)?new E4(t):new T4(t,{allowProjection:e!==_.Fragment}),P4=cA({...qM,...m4,...r4,...p4},C4),pf=PP(P4),A4=500,gf=({id:e,content:t,type:n="info",duration:r=0,onClose:i})=>{const[o,a]=_.useState(!0);let c=tu,u,f,h;switch(n){case"success":u="text-green-500",f="bg-green-50",h="border-green-500",c=GC;break;case"error":u="text-red-500",f="bg-red-50",h="border-red-500",c=JC;break;case"warning":u="text-yellow-500",f="bg-yellow-50",h="border-yellow-500",c=WC;break;case"loading":u="text-gray-500",f="bg-gray-50",h="border-gray-500",c=tu;break;case"info":default:u="text-blue-500",f="bg-blue-50",h="border-blue-500",c=tu}_.useEffect(()=>{if(r===0)return;const p=setTimeout(()=>{a(!1)},r);return()=>clearTimeout(p)},[r]),_.useEffect(()=>{if(!o){const p=setTimeout(i,A4);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 y.jsx(rP,{onExitComplete:i,children:o&&y.jsx(pf.div,{id:e,className:`toast w-[320px] rounded-xl border-[1.5px] p-8 shadow-md ${f} ${h}`,initial:"initial",animate:"animate",exit:"exit",variants:m,layout:!0,children:y.jsxs("div",{className:"flex justify-between items-center p-3",children:[y.jsxs("div",{className:"flex items-center gap-6",children:[y.jsx(Pe,{icon:c,className:`w-20 h-20 min-h-20 min-w-20 ${u}`}),y.jsx("span",{className:"text-gray-800 font-medium text-base",children:t})]}),y.jsx("button",{onClick:()=>a(!1),className:"text-gray-500 transition-all hover:text-gray-700 flex items-center",children:y.jsx(Pe,{icon:ZC,className:"w-20 h-20 min-h-20 min-w-20"})})]})})})},iv=({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]),y.jsx(gf,{content:a,type:i,duration:n.duration,onClose:r})};/*!
621
+ `),()=>{document.head.removeChild(v)}},[t]),y.jsx(QC,{isPresent:t,childRef:i,sizeRef:o,children:Q.cloneElement(e,{ref:i})})}const tP=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=iu(nP),f=_.useId(),h=_.useCallback(p=>{u.set(p,!0);for(const v of u.values())if(!v)return;r&&r()},[u,r]),m=_.useMemo(()=>({id:f,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,v)=>u.set(v,!1))},[n]),Q.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=y.jsx(eP,{isPresent:n,anchorX:c,children:e})),y.jsx(ga.Provider,{value:m,children:e})};function nP(){return new Map}function f0(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 d0(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const rP=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,f]=f0(a),h=_.useMemo(()=>d0(e),[e]),m=a&&!u?[]:h.map(ya),p=_.useRef(!0),v=_.useRef(h),S=iu(()=>new Map),[x,T]=_.useState(h),[b,A]=_.useState(h);u0(()=>{p.current=!1,v.current=h;for(let C=0;C<b.length;C++){const D=ya(b[C]);m.includes(D)?S.delete(D):S.get(D)!==!0&&S.set(D,!1)}},[b,m.length,m.join("-")]);const E=[];if(h!==x){let C=[...h];for(let D=0;D<b.length;D++){const j=b[D],F=ya(j);m.includes(F)||(C.splice(D,0,j),E.push(j))}return o==="wait"&&E.length&&(C=E),A(d0(C)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&b.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(ru);return y.jsx(y.Fragment,{children:b.map(C=>{const D=ya(C),j=a&&!u?!1:h===b||m.includes(D),F=()=>{if(S.has(D))S.set(D,!0);else return;let U=!0;S.forEach(Z=>{Z||(U=!1)}),U&&($==null||$(),A(v.current),a&&(f==null||f()),r&&r())};return y.jsx(tP,{isPresent:j,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:j?void 0:F,anchorX:c,children:C},D)})})};function au(e,t){e.indexOf(t)===-1&&e.push(t)}function lu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Nt=e=>e;let Wi=Nt,vr=Nt;process.env.NODE_ENV!=="production"&&(Wi=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},vr=(e,t)=>{if(!e)throw new Error(t)});const iP={useManualTiming:!1};function cu(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ui=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let uu=class{constructor(){this.subscriptions=[]}add(t){return au(this.subscriptions,t),()=>lu(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 On=e=>e*1e3,Kn=e=>e/1e3;function h0(e,t){return t?e*(1e3/t):0}const m0=new Set;function va(e,t,n){e||m0.has(t)||(console.warn(t),m0.add(t))}const sP=cu(()=>window.ScrollTimeline!==void 0);let oP=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(sP()&&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")}},aP=class extends oP{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function fu(e,t){return e?e[t]||e.default||e:void 0}const du=2e4;function p0(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<du;)t+=n,r=e.next(t);return t>=du?1/0:t}function hu(e){return typeof e=="function"}function g0(e,t){e.timeline=t,e.onfinish=null}const mu=e=>Array.isArray(e)&&typeof e[0]=="number",lP={linearEasing:void 0};function cP(e,t){const n=cu(e);return()=>{var r;return(r=lP[t])!==null&&r!==void 0?r:n()}}const xa=cP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),y0=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Ui(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function v0(e){return!!(typeof e=="function"&&xa()||!e||typeof e=="string"&&(e in pu||xa())||mu(e)||Array.isArray(e)&&e.every(v0))}const qs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,pu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qs([0,.65,.55,1]),circOut:qs([.55,0,1,.45]),backIn:qs([.31,.01,.66,-.59]),backOut:qs([.33,1.53,.69,.99])};function x0(e,t){if(e)return typeof e=="function"&&xa()?y0(e,t):mu(e)?qs(e):Array.isArray(e)?e.map(n=>x0(n,t)||pu.easeOut):pu[e]}const ba=["read","resolveKeyframes","update","preRender","render","postRender"],b0={value:null};function uP(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 f(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,p=!1,v=!1)=>{const x=v&&i?n:r;return p&&a.add(m),x.has(m)||x.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(f),t&&b0.value&&b0.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const fP=40;function w0(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=ba.reduce((b,A)=>(b[A]=uP(o,t?A:void 0),b),{}),{read:c,resolveKeyframes:u,update:f,preRender:h,render:m,postRender:p}=a,v=()=>{const b=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(b-i.timestamp,fP),1),i.timestamp=b,i.isProcessing=!0,c.process(i),u.process(i),f.process(i),h.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))},S=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:ba.reduce((b,A)=>{const E=a[A];return b[A]=($,C=!1,D=!1)=>(n||S(),E.schedule($,C,D)),b},{}),cancel:b=>{for(let A=0;A<ba.length;A++)a[ba[A]].cancel(b)},state:i,steps:a}}const{schedule:He,cancel:xr,state:yt,steps:gu}=w0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Nt,!0),{schedule:yu}=w0(queueMicrotask,!1);let wa;function dP(){wa=void 0}const _n={now:()=>(wa===void 0&&_n.set(yt.isProcessing||iP.useManualTiming?yt.timestamp:performance.now()),wa),set:e=>{wa=e,queueMicrotask(dP)}},yn={x:!1,y:!1};function S0(){return yn.x||yn.y}function hP(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 mP(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 T0(e,t){const n=mP(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function E0(e){return!(e.pointerType==="touch"||S0())}function pP(e,t,n={}){const[r,i,o]=T0(e,n),a=c=>{if(!E0(c))return;const{target:u}=c,f=t(u,c);if(typeof f!="function"||!u)return;const h=m=>{E0(m)&&(f(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}const C0=(e,t)=>t?e===t?!0:C0(e,t.parentElement):!1,vu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,gP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function yP(e){return gP.has(e.tagName)||e.tabIndex!==-1}const Ks=new WeakSet;function P0(e){return t=>{t.key==="Enter"&&e(t)}}function xu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const vP=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=P0(()=>{if(Ks.has(n))return;xu(n,"down");const i=P0(()=>{xu(n,"up")}),o=()=>xu(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 A0(e){return vu(e)&&!S0()}function xP(e,t,n={}){const[r,i,o]=T0(e,n),a=c=>{const u=c.currentTarget;if(!A0(c)||Ks.has(u))return;Ks.add(u);const f=t(u,c),h=(v,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!A0(v)||!Ks.has(u))&&(Ks.delete(u),typeof f=="function"&&f(v,{success:S}))},m=v=>{h(v,u===window||u===document||n.useGlobalTarget||C0(u,v.target))},p=v=>{h(v,!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",f=>vP(f,i)),!yP(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}const M0=30,bP=e=>!isNaN(parseFloat(e));let wP=class{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=_n.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=_n.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=bP(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 uu);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=_n.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>M0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,M0);return h0(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 Xs(e,t){return new wP(e,t)}const O0=_.createContext({strict:!1}),_0={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"]},zi={};for(const e in _0)zi[e]={isEnabled:t=>_0[e].some(n=>!!t[n])};function SP(e){for(const t in e)zi[t]={...zi[t],...e[t]}}const TP=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")||TP.has(e)}let I0=e=>!Sa(e);function EP(e){e&&(I0=t=>t.startsWith("on")?!Sa(t):e(t))}try{EP(require("@emotion/is-prop-valid").default)}catch{}function CP(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(I0(i)||n===!0&&Sa(i)||!t&&!Sa(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function PP(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 Zs(e){return typeof e=="string"||Array.isArray(e)}const bu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wu=["initial",...bu];function Ca(e){return Ea(e.animate)||wu.some(t=>Zs(e[t]))}function $0(e){return!!(Ca(e)||e.variants)}function AP(e,t){if(Ca(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Zs(n)?n:void 0,animate:Zs(r)?r:void 0}}return e.inherit!==!1?t:{}}function MP(e){const{initial:t,animate:n}=AP(e,_.useContext(Ta));return _.useMemo(()=>({initial:t,animate:n}),[D0(t),D0(n)])}function D0(e){return Array.isArray(e)?e.join(" "):e}const OP=Symbol.for("motionComponentSymbol");function Gi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function _P(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):Gi(n)&&(n.current=r))},[t])}const Su=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),N0="data-"+Su("framerAppearId"),k0=_.createContext({});function IP(e,t,n,r,i){var o,a;const{visualElement:c}=_.useContext(Ta),u=_.useContext(O0),f=_.useContext(ga),h=_.useContext(ou).reducedMotion,m=_.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:h}));const p=m.current,v=_.useContext(k0);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&$P(m.current,n,i,v);const S=_.useRef(!1);_.useInsertionEffect(()=>{p&&S.current&&p.update(n,f)});const x=n[N0],T=_.useRef(!!x&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,x))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,x)));return u0(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),yu.render(p.render),T.current&&p.animationState&&p.animationState.animateChanges())}),_.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,x)}),T.current=!1))}),p}function $P(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:L0(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&Gi(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:f})}function L0(e){if(e)return e.options.allowProjection!==!1?e.projection:L0(e.parent)}function DP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&SP(e);function c(f,h){let m;const p={..._.useContext(ou),...f,layoutId:NP(f)},{isStatic:v}=p,S=MP(f),x=r(f,v);if(!v&&su){kP(p,e);const T=LP(p);m=T.MeasureLayout,S.visualElement=IP(i,x,p,t,T.ProjectionNode)}return y.jsxs(Ta.Provider,{value:S,children:[m&&S.visualElement?y.jsx(m,{visualElement:S.visualElement,...p}):null,n(i,f,_P(x,S.visualElement,h),x,v,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[OP]=i,u}function NP({layoutId:e}){const t=_.useContext(ru).id;return t&&e!==void 0?t+"-"+e:e}function kP(e,t){const n=_.useContext(O0).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?Wi(!1,r):vr(!1,r)}}function LP(e){const{drag:t,layout:n}=zi;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 R0=e=>t=>typeof t=="string"&&t.startsWith(e),Tu=R0("--"),RP=R0("var(--"),Eu=e=>RP(e)?jP.test(e.split("/*")[0].trim()):!1,jP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Js={};function FP(e){for(const t in e)Js[t]=e[t],Tu(t)&&(Js[t].isCSSVariable=!0)}const Yi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ti=new Set(Yi);function j0(e,{layout:t,layoutId:n}){return ti.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Js[e]||e==="opacity")}const St=e=>!!(e&&e.getVelocity),F0=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xn=(e,t,n)=>n>t?t:n<e?e:n,Hi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Qs={...Hi,transform:e=>Xn(0,1,e)},Pa={...Hi,default:1},eo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),br=eo("deg"),In=eo("%"),we=eo("px"),VP=eo("vh"),BP=eo("vw"),V0={...In,parse:e=>In.parse(e)/100,transform:e=>In.transform(e*100)},WP={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},UP={rotate:br,rotateX:br,rotateY:br,rotateZ:br,scale:Pa,scaleX:Pa,scaleY:Pa,scaleZ:Pa,skew:br,skewX:br,skewY:br,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:Qs,originX:V0,originY:V0,originZ:we},B0={...Hi,transform:Math.round},Cu={...WP,...UP,zIndex:B0,size:we,fillOpacity:Qs,strokeOpacity:Qs,numOctaves:B0},zP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},GP=Yi.length;function YP(e,t,n){let r="",i=!0;for(let o=0;o<GP;o++){const a=Yi[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 f=F0(c,Cu[a]);if(!u){i=!1;const h=zP[a]||a;r+=`${h}(${f}) `}n&&(t[a]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Pu(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const f=t[u];if(ti.has(u)){a=!0;continue}else if(Tu(u)){i[u]=f;continue}else{const h=F0(f,Cu[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=YP(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:f="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${f} ${h}`}}const Au=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function W0(e,t,n){for(const r in t)!St(t[r])&&!j0(r,n)&&(e[r]=t[r])}function HP({transformTemplate:e},t){return _.useMemo(()=>{const n=Au();return Pu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function qP(e,t){const n=e.style||{},r={};return W0(r,n,e),Object.assign(r,HP(e,t)),r}function KP(e,t){const n={},r=qP(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 XP=["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 Mu(e){return typeof e!="string"||e.includes("-")?!1:!!(XP.indexOf(e)>-1||/[A-Z]/u.test(e))}const ZP={offset:"stroke-dashoffset",array:"stroke-dasharray"},JP={offset:"strokeDashoffset",array:"strokeDasharray"};function QP(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?ZP:JP;e[o.offset]=we.transform(-r);const a=we.transform(t),c=we.transform(n);e[o.array]=`${a} ${c}`}function U0(e,t,n){return typeof e=="string"?e:we.transform(t+n*e)}function eA(e,t,n){const r=U0(t,e.x,e.width),i=U0(n,e.y,e.height);return`${r} ${i}`}function Ou(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...f},h,m){if(Pu(e,f,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:v,dimensions:S}=e;p.transform&&(S&&(v.transform=p.transform),delete p.transform),S&&(i!==void 0||o!==void 0||v.transform)&&(v.transformOrigin=eA(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&&QP(p,a,c,u,!1)}const z0=()=>({...Au(),attrs:{}}),_u=e=>typeof e=="string"&&e.toLowerCase()==="svg";function tA(e,t,n,r){const i=_.useMemo(()=>{const o=z0();return Ou(o,t,_u(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};W0(o,e.style,e),i.style={...o,...i.style}}return i}function nA(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(Mu(n)?tA:KP)(r,o,a,n),f=CP(r,typeof n=="string",e),h=n!==_.Fragment?{...f,...u,ref:i}:{},{children:m}=r,p=_.useMemo(()=>St(m)?m.get():m,[m]);return _.createElement(n,{...h,children:p})}}function G0(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Iu(e,t,n,r){if(typeof t=="function"){const[i,o]=G0(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]=G0(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const $u=e=>Array.isArray(e),rA=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),iA=e=>$u(e)?e[e.length-1]||0:e;function Aa(e){const t=St(e)?e.get():e;return rA(t)?t.toValue():t}function sA({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:oA(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Y0=e=>(t,n)=>{const r=_.useContext(Ta),i=_.useContext(ga),o=()=>sA(e,t,r,i);return n?o():iu(o)};function oA(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),f=$0(e);t&&f&&!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 v=0;v<p.length;v++){const S=Iu(e,p[v]);if(S){const{transitionEnd:x,transition:T,...b}=S;for(const A in b){let E=b[A];if(Array.isArray(E)){const $=h?E.length-1:0;E=E[$]}E!==null&&(i[A]=E)}for(const A in x)i[A]=x[A]}}}return i}function Du(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(St(i[a])||t.style&&St(t.style[a])||j0(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 aA={useVisualState:Y0({scrapeMotionValuesFromProps:Du,createRenderState:Au})};function H0(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 q0(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 K0=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 X0(e,t,n,r){q0(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(K0.has(i)?i:Su(i),t.attrs[i])}function Z0(e,t,n){const r=Du(e,t,n);for(const i in e)if(St(e[i])||St(t[i])){const o=Yi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const J0=["x","y","width","height","cx","cy","r"],lA={useVisualState:Y0({scrapeMotionValuesFromProps:Z0,createRenderState:z0,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<J0.length;c++){const u=J0[c];e[u]!==t[u]&&(a=!0)}a&&He.read(()=>{H0(n,r),He.render(()=>{Ou(r,i,_u(n.tagName),e.transformTemplate),X0(n,r)})})}})};function cA(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Mu(r)?lA:aA,preloadedFeatures:e,useRender:nA(i),createVisualElement:t,Component:r};return DP(a)}}function to(e,t,n){const r=e.getProps();return Iu(r,t,n!==void 0?n:r.custom,e)}const Q0=new Set(["width","height","top","left","right","bottom",...Yi]);function uA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Xs(n))}function fA(e,t){const n=to(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=iA(o[a]);uA(e,a,c)}}function dA(e){return!!(St(e)&&e.add)}function Nu(e,t){const n=e.getValue("willChange");if(dA(n))return n.add(t)}function eg(e){return e.props[N0]}const tg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,hA=1e-7,mA=12;function pA(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=tg(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>hA&&++c<mA);return a}function no(e,t,n,r){if(e===t&&n===r)return Nt;const i=o=>pA(o,0,1,e,n);return o=>o===0||o===1?o:tg(i(o),t,r)}const ng=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,rg=e=>t=>1-e(1-t),ig=no(.33,1.53,.69,.99),ku=rg(ig),sg=ng(ku),og=e=>(e*=2)<1?.5*ku(e):.5*(2-Math.pow(2,-10*(e-1))),Lu=e=>1-Math.sin(Math.acos(e)),ag=rg(Lu),lg=ng(Lu),cg=e=>/^0[^.\s]+$/u.test(e);function gA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||cg(e):!0}const ro=e=>Math.round(e*1e5)/1e5,Ru=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function yA(e){return e==null}const vA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ju=(e,t)=>n=>!!(typeof n=="string"&&vA.test(n)&&n.startsWith(e)||t&&!yA(n)&&Object.prototype.hasOwnProperty.call(n,t)),ug=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Ru);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},xA=e=>Xn(0,255,e),Fu={...Hi,transform:e=>Math.round(xA(e))},ni={test:ju("rgb","red"),parse:ug("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Fu.transform(e)+", "+Fu.transform(t)+", "+Fu.transform(n)+", "+ro(Qs.transform(r))+")"};function bA(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 Vu={test:ju("#"),parse:bA,transform:ni.transform},qi={test:ju("hsl","hue"),parse:ug("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+In.transform(ro(t))+", "+In.transform(ro(n))+", "+ro(Qs.transform(r))+")"},Tt={test:e=>ni.test(e)||Vu.test(e)||qi.test(e),parse:e=>ni.test(e)?ni.parse(e):qi.test(e)?qi.parse(e):Vu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ni.transform(e):qi.transform(e)},wA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function SA(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ru))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(wA))===null||n===void 0?void 0:n.length)||0)>0}const fg="number",dg="color",TA="var",EA="var(",hg="${}",CA=/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 io(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(CA,u=>(Tt.test(u)?(r.color.push(o),i.push(dg),n.push(Tt.parse(u))):u.startsWith(EA)?(r.var.push(o),i.push(TA),n.push(u)):(r.number.push(o),i.push(fg),n.push(parseFloat(u))),++o,hg)).split(hg);return{values:n,split:c,indexes:r,types:i}}function mg(e){return io(e).values}function pg(e){const{split:t,types:n}=io(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===fg?o+=ro(i[a]):c===dg?o+=Tt.transform(i[a]):o+=i[a]}return o}}const PA=e=>typeof e=="number"?0:e;function AA(e){const t=mg(e);return pg(e)(t.map(PA))}const wr={test:SA,parse:mg,createTransformer:pg,getAnimatableNone:AA},MA=new Set(["brightness","contrast","saturate","opacity"]);function OA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ru)||[];if(!r)return e;const i=n.replace(r,"");let o=MA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const _A=/\b([a-z-]*)\(.*?\)/gu,Bu={...wr,getAnimatableNone:e=>{const t=e.match(_A);return t?t.map(OA).join(" "):e}},IA={...Cu,color:Tt,backgroundColor:Tt,outlineColor:Tt,fill:Tt,stroke:Tt,borderColor:Tt,borderTopColor:Tt,borderRightColor:Tt,borderBottomColor:Tt,borderLeftColor:Tt,filter:Bu,WebkitFilter:Bu},gg=e=>IA[e];function yg(e,t){let n=gg(e);return n!==Bu&&(n=wr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const $A=new Set(["auto","none","0"]);function DA(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!$A.has(o)&&io(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=yg(n,i)}const ri=e=>e*180/Math.PI,Wu=e=>{const t=ri(Math.atan2(e[1],e[0]));return Uu(t)},NA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Wu,rotateZ:Wu,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},Uu=e=>(e=e%360,e<0&&(e+=360),e),vg=Wu,xg=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),bg=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),kA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:xg,scaleY:bg,scale:e=>(xg(e)+bg(e))/2,rotateX:e=>Uu(ri(Math.atan2(e[6],e[5]))),rotateY:e=>Uu(ri(Math.atan2(-e[2],e[0]))),rotateZ:vg,rotate:vg,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 wg(e){return e.includes("scale")?1:0}function zu(e,t){if(!e||e==="none")return wg(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=kA,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=NA,i=c}if(!i)return wg(t);const o=r[t],a=i[1].split(",").map(RA);return typeof o=="function"?o(a):a[o]}const LA=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return zu(n,t)};function RA(e){return parseFloat(e.trim())}const Sg=e=>e===Hi||e===we,jA=new Set(["x","y","z"]),FA=Yi.filter(e=>!jA.has(e));function VA(e){const t=[];return FA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ki={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})=>zu(t,"x"),y:(e,{transform:t})=>zu(t,"y")};Ki.translateX=Ki.x,Ki.translateY=Ki.y;const ii=new Set;let Gu=!1,Yu=!1;function Tg(){if(Yu){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=VA(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)})}Yu=!1,Gu=!1,ii.forEach(e=>e.complete()),ii.clear()}function Eg(){ii.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Yu=!0)})}function BA(){Eg(),Tg()}let Hu=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),Gu||(Gu=!0,He.read(Eg),He.resolveKeyframes(Tg))):(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 Cg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),WA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function UA(e){const t=WA.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const zA=4;function Pg(e,t,n=1){vr(n<=zA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=UA(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return Cg(a)?parseFloat(a):a}return Eu(i)?Pg(i,t,n+1):i}const Ag=e=>t=>t.test(e),Mg=[Hi,we,In,br,BP,VP,{test:e=>e==="auto",parse:e=>e}],Og=e=>Mg.find(Ag(e));let _g=class extends Hu{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 f=t[u];if(typeof f=="string"&&(f=f.trim(),Eu(f))){const h=Pg(f,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!Q0.has(r)||t.length!==2)return;const[i,o]=t,a=Og(i),c=Og(o);if(a!==c)if(Sg(a)&&Sg(c))for(let u=0;u<t.length;u++){const f=t[u];typeof f=="string"&&(t[u]=parseFloat(f))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)gA(t[i])&&r.push(i);r.length&&DA(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=Ki[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]=Ki[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,f])=>{n.getValue(u).set(f)}),this.resolveNoneKeyframes()}};const Ig=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wr.test(e)||e==="0")&&!e.startsWith("url("));function GA(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 YA(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=Ig(i,t),c=Ig(o,t);return Wi(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:GA(e)||(n==="spring"||hu(n))&&r}const HA=e=>e!==null;function Ma(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(HA),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const qA=40;let $g=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=_n.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>qA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&BA(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=_n.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:f}=this.options;if(!f&&!YA(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 qu(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 KA({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=qu(u,c,e+1/3),o=qu(u,c,e),a=qu(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 Ku=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},XA=[Vu,ni,qi],ZA=e=>XA.find(t=>t.test(e));function Dg(e){const t=ZA(e);if(Wi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===qi&&(n=KA(n)),n}const Ng=(e,t)=>{const n=Dg(e),r=Dg(t);if(!n||!r)return Oa(e,t);const i={...n};return o=>(i.red=Ku(n.red,r.red,o),i.green=Ku(n.green,r.green,o),i.blue=Ku(n.blue,r.blue,o),i.alpha=tt(n.alpha,r.alpha,o),ni.transform(i))},JA=(e,t)=>n=>t(e(n)),so=(...e)=>e.reduce(JA),Xu=new Set(["none","hidden"]);function QA(e,t){return Xu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function eM(e,t){return n=>tt(e,t,n)}function Zu(e){return typeof e=="number"?eM:typeof e=="string"?Eu(e)?Oa:Tt.test(e)?Ng:rM:Array.isArray(e)?kg:typeof e=="object"?Tt.test(e)?Ng:tM:Oa}function kg(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>Zu(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function tM(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Zu(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function nM(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 rM=(e,t)=>{const n=wr.createTransformer(t),r=io(e),i=io(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?Xu.has(e)&&!i.values.length||Xu.has(t)&&!r.values.length?QA(e,t):so(kg(nM(r,i),i.values),n):(Wi(!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 Lg(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tt(e,t,n):Zu(e)(e,t)}const iM=5;function Rg(e,t,n){const r=Math.max(t-iM,0);return h0(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},jg=.001;function sM({duration:e=nt.duration,bounce:t=nt.bounce,velocity:n=nt.velocity,mass:r=nt.mass}){let i,o;Wi(e<=On(nt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Xn(nt.minDamping,nt.maxDamping,a),e=Xn(nt.minDuration,nt.maxDuration,Kn(e)),a<1?(i=f=>{const h=f*a,m=h*e,p=h-n,v=Ju(f,a),S=Math.exp(-m);return jg-p/v*S},o=f=>{const m=f*a*e,p=m*n+n,v=Math.pow(a,2)*Math.pow(f,2)*e,S=Math.exp(-m),x=Ju(Math.pow(f,2),a);return(-i(f)+jg>0?-1:1)*((p-v)*S)/x}):(i=f=>{const h=Math.exp(-f*e),m=(f-n)*e+1;return-.001+h*m},o=f=>{const h=Math.exp(-f*e),m=(n-f)*(e*e);return h*m});const c=5/e,u=aM(i,o,c);if(e=On(e),isNaN(u))return{stiffness:nt.stiffness,damping:nt.damping,duration:e};{const f=Math.pow(u,2)*r;return{stiffness:f,damping:a*2*Math.sqrt(r*f),duration:e}}}const oM=12;function aM(e,t,n){let r=n;for(let i=1;i<oM;i++)r=r-e(r)/t(r);return r}function Ju(e,t){return e*Math.sqrt(1-t*t)}const lM=["duration","bounce"],cM=["stiffness","damping","mass"];function Fg(e,t){return t.some(n=>e[n]!==void 0)}function uM(e){let t={velocity:nt.velocity,stiffness:nt.stiffness,damping:nt.damping,mass:nt.mass,isResolvedFromDuration:!1,...e};if(!Fg(e,cM)&&Fg(e,lM))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:nt.mass,stiffness:i,damping:o}}else{const n=sM(e);t={...t,...n,mass:nt.mass},t.isResolvedFromDuration=!0}return t}function Vg(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:f,mass:h,duration:m,velocity:p,isResolvedFromDuration:v}=uM({...n,velocity:-Kn(n.velocity||0)}),S=p||0,x=f/(2*Math.sqrt(u*h)),T=a-o,b=Kn(Math.sqrt(u/h)),A=Math.abs(T)<5;r||(r=A?nt.restSpeed.granular:nt.restSpeed.default),i||(i=A?nt.restDelta.granular:nt.restDelta.default);let E;if(x<1){const C=Ju(b,x);E=D=>{const j=Math.exp(-x*b*D);return a-j*((S+x*b*T)/C*Math.sin(C*D)+T*Math.cos(C*D))}}else if(x===1)E=C=>a-Math.exp(-b*C)*(T+(S+b*T)*C);else{const C=b*Math.sqrt(x*x-1);E=D=>{const j=Math.exp(-x*b*D),F=Math.min(C*D,300);return a-j*((S+x*b*T)*Math.sinh(F)+C*T*Math.cosh(F))/C}}const $={calculatedDuration:v&&m||null,next:C=>{const D=E(C);if(v)c.done=C>=m;else{let j=0;x<1&&(j=C===0?On(S):Rg(E,C,D));const F=Math.abs(j)<=r,U=Math.abs(a-D)<=i;c.done=F&&U}return c.value=c.done?a:D,c},toString:()=>{const C=Math.min(p0($),du),D=y0(j=>$.next(C*j).value,C,30);return C+"ms "+D}};return $}function Bg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:f=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},v=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 x=n*t;const T=m+x,b=a===void 0?T:a(T);b!==T&&(x=b-m);const A=F=>-x*Math.exp(-F/r),E=F=>b+A(F),$=F=>{const U=A(F),Z=E(F);p.done=Math.abs(U)<=f,p.value=p.done?b:Z};let C,D;const j=F=>{v(p.value)&&(C=F,D=Vg({keyframes:[p.value,S(p.value)],velocity:Rg(E,F,p.value),damping:i,stiffness:o,restDelta:f,restSpeed:h}))};return j(0),{calculatedDuration:null,next:F=>{let U=!1;return!D&&C===void 0&&(U=!0,$(F),j(F)),C!==void 0&&F>=C?D.next(F-C):(!U&&$(F),p)}}}const fM=no(.42,0,1,1),dM=no(0,0,.58,1),Wg=no(.42,0,.58,1),hM=e=>Array.isArray(e)&&typeof e[0]!="number",Ug={linear:Nt,easeIn:fM,easeInOut:Wg,easeOut:dM,circIn:Lu,circInOut:lg,circOut:ag,backIn:ku,backInOut:sg,backOut:ig,anticipate:og},zg=e=>{if(mu(e)){vr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return no(t,n,r,i)}else if(typeof e=="string")return vr(Ug[e]!==void 0,`Invalid easing type '${e}'`),Ug[e];return e};function mM(e,t,n){const r=[],i=n||Lg,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=so(u,c)}r.push(c)}return r}function pM(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=mM(t,r,i),u=c.length,f=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=Ui(e[m],e[m+1],h);return c[m](p)};return n?h=>f(Xn(e[0],e[o-1],h)):f}function gM(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ui(0,t,r);e.push(tt(n,1,i))}}function yM(e){const t=[0];return gM(t,e.length-1),t}function vM(e,t){return e.map(n=>n*t)}function xM(e,t){return e.map(()=>t||Wg).splice(0,e.length-1)}function oo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=hM(r)?r.map(zg):zg(r),o={done:!1,value:t[0]},a=vM(n&&n.length===t.length?n:yM(t),e),c=pM(a,t,{ease:Array.isArray(i)?i:xM(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const bM=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>xr(t),now:()=>yt.isProcessing?yt.timestamp:_n.now()}},wM={decay:Bg,inertia:Bg,tween:oo,keyframes:oo,spring:Vg},SM=e=>e/100;let Qu=class extends $g{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)||Hu,c=(u,f)=>this.onKeyframesResolved(u,f);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=hu(n)?n:wM[n]||oo;let u,f;process.env.NODE_ENV!=="production"&&c!==oo&&vr(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==oo&&typeof t[0]!="number"&&(u=so(SM,Lg(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(f=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=p0(h));const{calculatedDuration:m}=h,p=m+i,v=p*(r+1)-i;return{generator:h,mirroredGenerator:f,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:v}}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:f,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:v,repeatType:S,repeatDelay:x,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 b=this.currentTime-p*(this.speed>=0?1:-1),A=this.speed>=0?b<0:b>h;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let E=this.currentTime,$=o;if(v){const F=Math.min(this.currentTime,h)/m;let U=Math.floor(F),Z=F%1;!Z&&F>=1&&(Z=1),Z===1&&U--,U=Math.min(U,v+1),!!(U%2)&&(S==="reverse"?(Z=1-Z,x&&(Z-=x/m)):S==="mirror"&&($=a)),E=Xn(0,1,Z)*m}const C=A?{done:!1,value:u[0]}:$.next(E);c&&(C.value=c(C.value));let{done:D}=C;!A&&f!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return j&&i!==void 0&&(C.value=Ma(u,this.options,i)),T&&T(C.value),j&&this.finish(),C}get duration(){const{resolved:t}=this;return t?Kn(t.calculatedDuration):0}get time(){return Kn(this.currentTime)}set time(t){t=On(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Kn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=bM,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 TM=new Set(["opacity","clipPath","filter","transform"]);function EM(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const f={[t]:n};u&&(f.offset=u);const h=x0(c,i);return Array.isArray(h)&&(f.easing=h),e.animate(f,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const CM=cu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_a=10,PM=2e4;function AM(e){return hu(e.type)||e.type==="spring"||!v0(e.ease)}function MM(e,t){const n=new Qu({...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<PM;)r=n.sample(o),i.push(r.value),o+=_a;return{times:void 0,keyframes:i,duration:o-_a,ease:"linear"}}const Gg={anticipate:og,backInOut:sg,circInOut:lg};function OM(e){return e in Gg}let Yg=class extends $g{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new _g(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:f}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&xa()&&OM(o)&&(o=Gg[o]),AM(this.options)){const{onComplete:m,onUpdate:p,motionValue:v,element:S,...x}=this.options,T=MM(t,x);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,o=T.ease,a="keyframes"}const h=EM(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(g0(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 Kn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Kn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=On(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Nt;const{animation:r}=n;g0(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:f,onUpdate:h,onComplete:m,element:p,...v}=this.options,S=new Qu({...v,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),x=On(this.time);f.setWithVelocity(S.sample(x-_a).value,S.sample(x).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:f}=n.owner.getProps();return CM()&&r&&TM.has(r)&&(r!=="transform"||!f)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}};const _M={type:"spring",stiffness:500,damping:25,restSpeed:10},IM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$M={type:"keyframes",duration:.8},DM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},NM=(e,{keyframes:t})=>t.length>2?$M:ti.has(e)?e.startsWith("scale")?IM(t[1]):_M:DM;function kM({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:f,...h}){return!!Object.keys(h).length}const ef=(e,t,n,r={},i,o)=>a=>{const c=fu(r,e)||{},u=c.delay||r.delay||0;let{elapsed:f=0}=r;f=f-On(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-f,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};kM(c)||(h={...h,...NM(e,h)}),h.duration&&(h.duration=On(h.duration)),h.repeatDelay&&(h.repeatDelay=On(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const p=Ma(h.keyframes,c);if(p!==void 0)return He.update(()=>{h.onUpdate(p),h.onComplete()}),new aP([])}return!o&&Yg.supports(h)?new Yg(h):new Qu(h)};function LM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Hg(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const f=[],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),v=u[m];if(v===void 0||h&&LM(h,m))continue;const S={delay:n,...fu(a||{},m)};let x=!1;if(window.MotionHandoffAnimation){const b=eg(e);if(b){const A=window.MotionHandoffAnimation(b,m,He);A!==null&&(S.startTime=A,x=!0)}}Nu(e,m),p.start(ef(m,p,v,e.shouldReduceMotion&&Q0.has(m)?{type:!1}:S,e,x));const T=p.animation;T&&f.push(T)}return c&&Promise.all(f).then(()=>{He.update(()=>{c&&fA(e,c)})}),f}function tf(e,t,n={}){var r;const i=to(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(Hg(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return RM(e,t,h+f,m,p,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[f,h]=u==="beforeChildren"?[a,c]:[c,a];return f().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function RM(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(f=0)=>f*r:(f=0)=>c-f*r;return Array.from(e.variantChildren).sort(jM).forEach((f,h)=>{f.notify("AnimationStart",t),a.push(tf(f,t,{...o,delay:n+u(h)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(a)}function jM(e,t){return e.sortNodePosition(t)}function FM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>tf(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=tf(e,t,n);else{const i=typeof t=="function"?to(e,t,n.custom):t;r=Promise.all(Hg(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function qg(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 VM=wu.length;function Kg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Kg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<VM;n++){const r=wu[n],i=e.props[r];(Zs(i)||i===!1)&&(t[r]=i)}return t}const BM=[...bu].reverse(),WM=bu.length;function UM(e){return t=>Promise.all(t.map(({animation:n,options:r})=>FM(e,n,r)))}function zM(e){let t=UM(e),n=Xg(),r=!0;const i=u=>(f,h)=>{var m;const p=to(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:v,transitionEnd:S,...x}=p;f={...f,...x,...S}}return f};function o(u){t=u(e)}function a(u){const{props:f}=e,h=Kg(e.parent)||{},m=[],p=new Set;let v={},S=1/0;for(let T=0;T<WM;T++){const b=BM[T],A=n[b],E=f[b]!==void 0?f[b]:h[b],$=Zs(E),C=b===u?A.isActive:null;C===!1&&(S=T);let D=E===h[b]&&E!==f[b]&&$;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),A.protectedKeys={...v},!A.isActive&&C===null||!E&&!A.prevProp||Ea(E)||typeof E=="boolean")continue;const j=GM(A.prevProp,E);let F=j||b===u&&A.isActive&&!D&&$||T>S&&$,U=!1;const Z=Array.isArray(E)?E:[E];let ee=Z.reduce(i(b),{});C===!1&&(ee={});const{prevResolvedValues:se={}}=A,ge={...se,...ee},ue=V=>{F=!0,p.has(V)&&(U=!0,p.delete(V)),A.needsAnimating[V]=!0;const B=e.getValue(V);B&&(B.liveStyle=!1)};for(const V in ge){const B=ee[V],Y=se[V];if(v.hasOwnProperty(V))continue;let O=!1;$u(B)&&$u(Y)?O=!qg(B,Y):O=B!==Y,O?B!=null?ue(V):p.add(V):B!==void 0&&p.has(V)?ue(V):A.protectedKeys[V]=!0}A.prevProp=E,A.prevResolvedValues=ee,A.isActive&&(v={...v,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(D&&j)||U)&&m.push(...Z.map(V=>({animation:V,options:{type:b}})))}if(p.size){const T={};if(typeof f.initial!="boolean"){const b=to(e,Array.isArray(f.initial)?f.initial[0]:f.initial);b&&b.transition&&(T.transition=b.transition)}p.forEach(b=>{const A=e.getBaseTarget(b),E=e.getValue(b);E&&(E.liveStyle=!0),T[b]=A??null}),m.push({animation:T})}let x=!!m.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(m):Promise.resolve()}function c(u,f){var h;if(n[u].isActive===f)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var v;return(v=p.animationState)===null||v===void 0?void 0:v.setActive(u,f)}),n[u].isActive=f;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=Xg(),r=!0}}}function GM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!qg(t,e):!1}function si(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Xg(){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(){}},YM=class extends Sr{constructor(t){super(t),t.animationState||(t.animationState=zM(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)}},HM=0;const qM={animation:{Feature:YM},exit:{Feature:class extends Sr{constructor(){super(...arguments),this.id=HM++}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 ao(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function lo(e){return{point:{x:e.pageX,y:e.pageY}}}const KM=e=>t=>vu(t)&&e(t,lo(t));function co(e,t,n,r){return ao(e,t,KM(n),r)}function Zg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function XM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ZM(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 Jg=1e-4,JM=1-Jg,QM=1+Jg,Qg=.01,eO=0-Qg,tO=0+Qg;function Ot(e){return e.max-e.min}function nO(e,t,n){return Math.abs(e-t)<=n}function ey(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>=JM&&e.scale<=QM||isNaN(e.scale))&&(e.scale=1),(e.translate>=eO&&e.translate<=tO||isNaN(e.translate))&&(e.translate=0)}function uo(e,t,n,r){ey(e.x,t.x,n.x,r?r.originX:void 0),ey(e.y,t.y,n.y,r?r.originY:void 0)}function ty(e,t,n){e.min=n.min+t.min,e.max=e.min+Ot(t)}function rO(e,t,n){ty(e.x,t.x,n.x),ty(e.y,t.y,n.y)}function ny(e,t,n){e.min=t.min-n.min,e.max=e.min+Ot(t)}function fo(e,t,n){ny(e.x,t.x,n.x),ny(e.y,t.y,n.y)}const ry=()=>({translate:0,scale:1,origin:0,originPoint:0}),Xi=()=>({x:ry(),y:ry()}),iy=()=>({min:0,max:0}),at=()=>({x:iy(),y:iy()});function tn(e){return[e("x"),e("y")]}function nf(e){return e===void 0||e===1}function rf({scale:e,scaleX:t,scaleY:n}){return!nf(e)||!nf(t)||!nf(n)}function oi(e){return rf(e)||sy(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function sy(e){return oy(e.x)||oy(e.y)}function oy(e){return e&&e!=="0%"}function Ia(e,t,n){const r=e-n,i=t*r;return n+i}function ay(e,t,n,r,i){return i!==void 0&&(e=Ia(e,i,r)),Ia(e,n,r)+t}function sf(e,t=0,n=1,r,i){e.min=ay(e.min,t,n,r,i),e.max=ay(e.max,t,n,r,i)}function ly(e,{x:t,y:n}){sf(e.x,t.translate,t.scale,t.originPoint),sf(e.y,n.translate,n.scale,n.originPoint)}const cy=.999999999999,uy=1.0000000000001;function iO(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&&Ji(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,ly(e,a)),r&&oi(o.latestValues)&&Ji(e,o.latestValues))}t.x<uy&&t.x>cy&&(t.x=1),t.y<uy&&t.y>cy&&(t.y=1)}function Zi(e,t){e.min=e.min+t,e.max=e.max+t}function fy(e,t,n,r,i=.5){const o=tt(e.min,e.max,i);sf(e,t,n,o,r)}function Ji(e,t){fy(e.x,t.x,t.scaleX,t.scale,t.originX),fy(e.y,t.y,t.scaleY,t.scale,t.originY)}function dy(e,t){return Zg(ZM(e.getBoundingClientRect(),t))}function sO(e,t,n){const r=dy(e,n),{scroll:i}=t;return i&&(Zi(r.x,i.offset.x),Zi(r.y,i.offset.y)),r}const hy=({current:e})=>e?e.ownerDocument.defaultView:null,my=(e,t)=>Math.abs(e-t);function oO(e,t){const n=my(e.x,t.x),r=my(e.y,t.y);return Math.sqrt(n**2+r**2)}let py=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=af(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,v=oO(m.offset,{x:0,y:0})>=3;if(!p&&!v)return;const{point:S}=m,{timestamp:x}=yt;this.history.push({...S,timestamp:x});const{onStart:T,onMove:b}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=of(p,this.transformPagePoint),He.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:v,onSessionEnd:S,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=af(m.type==="pointercancel"?this.lastMoveEventInfo:of(p,this.transformPagePoint),this.history);this.startEvent&&v&&v(m,T),S&&S(m,T)},!vu(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=lo(t),c=of(a,this.transformPagePoint),{point:u}=c,{timestamp:f}=yt;this.history=[{...u,timestamp:f}];const{onSessionStart:h}=n;h&&h(t,af(c,this.history)),this.removeListeners=so(co(this.contextWindow,"pointermove",this.handlePointerMove),co(this.contextWindow,"pointerup",this.handlePointerUp),co(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),xr(this.updatePoint)}};function of(e,t){return t?{point:t(e.point)}:e}function gy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function af({point:e},t){return{point:e,delta:gy(e,yy(t)),offset:gy(e,aO(t)),velocity:lO(t,.1)}}function aO(e){return e[0]}function yy(e){return e[e.length-1]}function lO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=yy(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>On(t)));)n--;if(!r)return{x:0,y:0};const o=Kn(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 cO(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 vy(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 uO(e,{top:t,left:n,bottom:r,right:i}){return{x:vy(e.x,n,i),y:vy(e.y,t,r)}}function xy(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 fO(e,t){return{x:xy(e.x,t.x),y:xy(e.y,t.y)}}function dO(e,t){let n=.5;const r=Ot(e),i=Ot(t);return i>r?n=Ui(t.min,t.max-r,e.min):r>i&&(n=Ui(e.min,e.max-i,t.min)),Xn(0,1,n)}function hO(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 lf=.35;function mO(e=lf){return e===!1?e=0:e===!0&&(e=lf),{x:by(e,"left","right"),y:by(e,"top","bottom")}}function by(e,t,n){return{min:wy(e,t),max:wy(e,n)}}function wy(e,t){return typeof e=="number"?e:e[t]||0}const pO=new WeakMap;let gO=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(lo(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:v,onDragStart:S}=this.getProps();if(p&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=hP(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 b=this.getAxisMotionValue(T).get()||0;if(In.test(b)){const{projection:A}=this.visualElement;if(A&&A.layout){const E=A.layout.layoutBox[T];E&&(b=Ot(E)*(parseFloat(b)/100))}}this.originPoint[T]=b}),S&&He.postRender(()=>S(h,m)),Nu(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:p,dragDirectionLock:v,onDirectionLock:S,onDrag:x}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(v&&this.currentDirection===null){this.currentDirection=yO(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),x&&x(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:f}=this.getProps();this.panSession=new py(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,contextWindow:hy(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||!$a(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=cO(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&&Gi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=uO(i.layoutBox,n):this.constraints=!1,this.elastic=mO(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=hO(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Gi(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=sO(r,i.root,this.visualElement.getTransformPagePoint());let a=fO(i.layout.layoutBox,o);if(n){const c=n(XM(a));this.hasMutatedConstraints=!!c,c&&(a=Zg(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},f=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,v=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(f).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Nu(this.visualElement,t),r.start(ef(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(!Gi(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]=dO({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:f}=this.constraints[a];c.set(tt(u,f,i[a]))})}addListeners(){if(!this.visualElement.current)return;pO.set(this.visualElement,this);const t=this.visualElement.current,n=co(t,"pointerdown",u=>{const{drag:f,dragListener:h=!0}=this.getProps();f&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Gi(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:f})=>{this.isDragging&&f&&(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=lf,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 yO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}let vO=class extends Sr{constructor(t){super(t),this.removeGroupControls=Nt,this.removeListeners=Nt,this.controls=new gO(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 Sy=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};let xO=class extends Sr{constructor(){super(...arguments),this.removePointerDownListener=Nt}onPointerDown(t){this.session=new py(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:hy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Sy(t),onStart:Sy(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&He.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=co(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 Ty(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ho={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const n=Ty(e,t.target.x),r=Ty(e,t.target.y);return`${n}% ${r}%`}},bO={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 f=tt(c,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=f),typeof i[3+a]=="number"&&(i[3+a]/=f),o(i)}};let wO=class extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;FP(SO),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()||He.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),yu.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 Ey(e){const[t,n]=f0(),r=_.useContext(ru);return y.jsx(wO,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(k0),isPresent:t,safeToRemove:n})}const SO={borderRadius:{...ho,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ho,borderTopRightRadius:ho,borderBottomLeftRadius:ho,borderBottomRightRadius:ho,boxShadow:bO};function TO(e,t,n){const r=St(e)?e:Xs(e);return r.start(ef("",r,t,n)),r.animation}function EO(e){return e instanceof SVGElement&&e.tagName!=="svg"}const CO=(e,t)=>e.depth-t.depth;let PO=class{constructor(){this.children=[],this.isDirty=!1}add(t){au(this.children,t),this.isDirty=!0}remove(t){lu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(CO),this.isDirty=!1,this.children.forEach(t)}};function AO(e,t){const n=_n.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(xr(r),e(o-t))};return He.read(r,!0),()=>xr(r)}const Cy=["TopLeft","TopRight","BottomLeft","BottomRight"],MO=Cy.length,Py=e=>typeof e=="string"?parseFloat(e):e,Ay=e=>typeof e=="number"||we.test(e);function OO(e,t,n,r,i,o){i?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,_O(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,IO(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<MO;a++){const c=`border${Cy[a]}Radius`;let u=My(t,c),f=My(n,c);if(u===void 0&&f===void 0)continue;u||(u=0),f||(f=0),u===0||f===0||Ay(u)===Ay(f)?(e[c]=Math.max(tt(Py(u),Py(f),r),0),(In.test(f)||In.test(u))&&(e[c]+="%")):e[c]=f}(t.rotate||n.rotate)&&(e.rotate=tt(t.rotate||0,n.rotate||0,r))}function My(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const _O=Oy(0,.5,ag),IO=Oy(.5,.95,Nt);function Oy(e,t,n){return r=>r<e?0:r>t?1:n(Ui(e,t,r))}function _y(e,t){e.min=t.min,e.max=t.max}function nn(e,t){_y(e.x,t.x),_y(e.y,t.y)}function Iy(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function $y(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 $O(e,t=0,n=1,r=.5,i,o=e,a=e){if(In.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=$y(e.min,t,n,c,i),e.max=$y(e.max,t,n,c,i)}function Dy(e,t,[n,r,i],o,a){$O(e,t[n],t[r],t[i],t.scale,o,a)}const DO=["x","scaleX","originX"],NO=["y","scaleY","originY"];function Ny(e,t,n,r){Dy(e.x,t,DO,n?n.x:void 0,r?r.x:void 0),Dy(e.y,t,NO,n?n.y:void 0,r?r.y:void 0)}function ky(e){return e.translate===0&&e.scale===1}function Ly(e){return ky(e.x)&&ky(e.y)}function Ry(e,t){return e.min===t.min&&e.max===t.max}function kO(e,t){return Ry(e.x,t.x)&&Ry(e.y,t.y)}function jy(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Fy(e,t){return jy(e.x,t.x)&&jy(e.y,t.y)}function Vy(e){return Ot(e.x)/Ot(e.y)}function By(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}let LO=class{constructor(){this.members=[]}add(t){au(this.members,t),t.scheduleRender()}remove(t){if(lu(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 RO(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:f,rotate:h,rotateX:m,rotateY:p,skewX:v,skewY:S}=n;f&&(r=`perspective(${f}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),v&&(r+=`skewX(${v}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 cf=["","X","Y","Z"],jO={visibility:"hidden"},Wy=1e3;let FO=0;function uf(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Uy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=eg(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&&Uy(r)}function zy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=FO++,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(WO),this.nodes.forEach(HO),this.nodes.forEach(qO),this.nodes.forEach(UO)},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 PO)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new uu),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=EO(a),this.instance=a;const{layoutId:u,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(f||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=AO(p,250),Da.hasAnimatedSinceResize&&(Da.hasAnimatedSinceResize=!1,this.nodes.forEach(Yy))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||f)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:v,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||h.getDefaultTransition()||QO,{onLayoutAnimationStart:T,onLayoutAnimationComplete:b}=h.getProps(),A=!this.targetLayout||!Fy(this.targetLayout,S),E=!p&&v;if(this.options.layoutRoot||this.resumeFrom||E||p&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,E);const $={...fu(x,"layout"),onPlay:T,onComplete:b};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||Yy(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,xr(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(KO),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&&Uy(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 f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Gy);return}this.isUpdating||this.nodes.forEach(GO),this.isUpdating=!1,this.nodes.forEach(YO),this.nodes.forEach(VO),this.nodes.forEach(BO),this.clearAllSnapshots();const c=_n.now();yt.delta=Xn(0,1e3/60,c-yt.timestamp),yt.timestamp=c,yt.isProcessing=!0,gu.update.process(yt),gu.preRender.process(yt),gu.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,yu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(zO),this.sharedNodes.forEach(XO)}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&&!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&&!Ly(this.projectionDelta),u=this.getTransformTemplate(),f=u?u(this.latestValues,""):void 0,h=f!==this.prevTransformTemplateValue;a&&(c||oi(this.latestValues)||h)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),e4(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(t4))){const{scroll:h}=this.root;h&&(Zi(u.x,h.offset.x),Zi(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 f=0;f<this.path.length;f++){const h=this.path[f],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&nn(u,a),Zi(u.x,m.offset.x),Zi(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=at();nn(u,a);for(let f=0;f<this.path.length;f++){const h=this.path[f];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Ji(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),oi(h.latestValues)&&Ji(u,h.latestValues)}return oi(this.latestValues)&&Ji(u,this.latestValues),u}removeTransform(a){const c=at();nn(c,a);for(let u=0;u<this.path.length;u++){const f=this.path[u];if(!f.instance||!oi(f.latestValues))continue;rf(f.latestValues)&&f.updateSnapshot();const h=at(),m=f.measurePageBox();nn(h,m),Ny(c,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,h)}return oi(this.latestValues)&&Ny(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 f=!!this.resumingFrom||this!==u;if(!(a||f&&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 v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),fo(this.relativeTargetOrigin,this.layout.layoutBox,v.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(),rO(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),ly(this.target,this.targetDelta)):nn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),fo(this.relativeTargetOrigin,this.target,v.target),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||rf(this.parent.latestValues)||sy(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 f=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(f=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===yt.timestamp&&(f=!1),f)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,v=this.treeScale.y;iO(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():(Iy(this.prevProjectionDelta.x,this.projectionDelta.x),Iy(this.prevProjectionDelta.y,this.projectionDelta.y)),uo(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==v||!By(this.projectionDelta.x,this.prevProjectionDelta.x)||!By(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=Xi(),this.projectionDelta=Xi(),this.projectionDeltaWithTransform=Xi()}setAnimationOrigin(a,c=!1){const u=this.snapshot,f=u?u.latestValues:{},h={...this.latestValues},m=Xi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=at(),v=u?u.source:void 0,S=this.layout?this.layout.source:void 0,x=v!==S,T=this.getStack(),b=!T||T.members.length<=1,A=!!(x&&!b&&this.options.crossfade===!0&&!this.path.some(JO));this.animationProgress=0;let E;this.mixTargetDelta=$=>{const C=$/1e3;Hy(m.x,a.x,C),Hy(m.y,a.y,C),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fo(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ZO(this.relativeTarget,this.relativeTargetOrigin,p,C),E&&kO(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=at()),nn(E,this.relativeTarget)),x&&(this.animationValues=h,OO(h,f,this.latestValues,C,A,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},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&&(xr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{Da.hasAnimatedSinceResize=!0,this.currentAnimation=TO(0,Wy,{...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(Wy),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:f,latestValues:h}=a;if(!(!c||!u||!f)){if(this!==a&&this.layout&&f&&Jy(this.options.animationType,this.layout.layoutBox,f.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),Ji(c,h),uo(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new LO),this.sharedNodes.get(a).add(c);const f=c.options.initialPromotionConfig;c.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.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 f=this.getStack();f&&f.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 f={};u.z&&uf("z",a,f,this.animationValues);for(let h=0;h<cf.length;h++)uf(`rotate${cf[h]}`,a,f,this.animationValues),uf(`skew${cf[h]}`,a,f,this.animationValues);a.render();for(const h in f)a.setStaticValue(h,f[h]),this.animationValues&&(this.animationValues[h]=f[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return jO;const f={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=Aa(a==null?void 0:a.pointerEvents)||"",f.transform=h?h(this.latestValues,""):"none",f;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=Aa(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!oi(this.latestValues)&&(x.transform=h?h({},""):"none",this.hasProjected=!1),x}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),f.transform=RO(this.projectionDeltaWithTransform,this.treeScale,p),h&&(f.transform=h(p,f.transform));const{x:v,y:S}=this.projectionDelta;f.transformOrigin=`${v.origin*100}% ${S.origin*100}% 0`,m.animationValues?f.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:f.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const x in Js){if(p[x]===void 0)continue;const{correct:T,applyTo:b,isCSSVariable:A}=Js[x],E=f.transform==="none"?p[x]:T(p[x],m);if(b){const $=b.length;for(let C=0;C<$;C++)f[b[C]]=E}else A?this.options.visualElement.renderState.vars[x]=E:f[x]=E}return this.options.layoutId&&(f.pointerEvents=m===this?Aa(a==null?void 0:a.pointerEvents)||"":"none"),f}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(Gy),this.root.sharedNodes.clear()}}}function VO(e){e.updateLayout()}function BO(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],v=Ot(p);p.min=r[m].min,p.max=p.min+v}):Jy(o,n.layoutBox,r)&&tn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],v=Ot(r[m]);p.max=p.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+v)});const c=Xi();uo(c,r,n.layoutBox);const u=Xi();a?uo(u,e.applyTransform(i,!0),n.measuredBox):uo(u,r,n.layoutBox);const f=!Ly(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:v}=m;if(p&&v){const S=at();fo(S,n.layoutBox,p.layoutBox);const x=at();fo(x,r,v.layoutBox),Fy(S,x)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function WO(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 UO(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function zO(e){e.clearSnapshot()}function Gy(e){e.clearMeasurements()}function GO(e){e.isLayoutDirty=!1}function YO(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Yy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function HO(e){e.resolveTargetDelta()}function qO(e){e.calcProjection()}function KO(e){e.resetSkewAndRotation()}function XO(e){e.removeLeadSnapshot()}function Hy(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 qy(e,t,n,r){e.min=tt(t.min,n.min,r),e.max=tt(t.max,n.max,r)}function ZO(e,t,n,r){qy(e.x,t.x,n.x,r),qy(e.y,t.y,n.y,r)}function JO(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const QO={duration:.45,ease:[.4,0,.1,1]},Ky=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Xy=Ky("applewebkit/")&&!Ky("chrome/")?Math.round:Nt;function Zy(e){e.min=Xy(e.min),e.max=Xy(e.max)}function e4(e){Zy(e.x),Zy(e.y)}function Jy(e,t,n){return e==="position"||e==="preserve-aspect"&&!nO(Vy(t),Vy(n),.2)}function t4(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const n4=zy({attachResizeListener:(e,t)=>ao(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ff={current:void 0},Qy=zy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ff.current){const e=new n4({});e.mount(window),e.setOptions({layoutScroll:!0}),ff.current=e}return ff.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),r4={pan:{Feature:xO},drag:{Feature:vO,ProjectionNode:Qy,MeasureLayout:Ey}};function ev(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,lo(t)))}let i4=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=pP(t,(n,r)=>(ev(this.node,r,"Start"),i=>ev(this.node,i,"End"))))}unmount(){}},s4=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=so(ao(this.node.current,"focus",()=>this.onFocus()),ao(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function tv(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,lo(t)))}let o4=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=xP(t,(n,r)=>(tv(this.node,r,"Start"),(i,{success:o})=>tv(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const df=new WeakMap,hf=new WeakMap,a4=e=>{const t=df.get(e.target);t&&t(e)},l4=e=>{e.forEach(a4)};function c4({root:e,...t}){const n=e||document;hf.has(n)||hf.set(n,{});const r=hf.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(l4,{root:e,...t})),r[i]}function u4(e,t,n){const r=c4(t);return df.set(e,n),r.observe(e),()=>{df.delete(e),r.unobserve(e)}}const f4={some:0,all:1};let d4=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:f4[i]},c=u=>{const{isIntersecting:f}=u;if(this.isInView===f||(this.isInView=f,o&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=f?h:m;p&&p(u)};return u4(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(h4(t,n))&&this.startObserver()}unmount(){}};function h4({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const m4={inView:{Feature:d4},tap:{Feature:o4},focus:{Feature:s4},hover:{Feature:i4}},p4={layout:{ProjectionNode:Qy,MeasureLayout:Ey}},mf={current:null},nv={current:!1};function g4(){if(nv.current=!0,!!su)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>mf.current=e.matches;e.addListener(t),t()}else mf.current=!1}const y4=[...Mg,Tt,wr],v4=e=>y4.find(Ag(e)),x4=new WeakMap;function b4(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,Xs(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,Xs(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const rv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let w4=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=Hu,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 v=_n.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,He.render(this.render,!1,!0))};const{latestValues:u,renderState:f,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=f,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=$0(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in p){const S=p[v];u[v]!==void 0&&St(S)&&S.set(u[v],!1)}}mount(t){this.current=t,x4.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)),nv.current||g4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:mf.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(),xr(this.notifyUpdate),xr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ti.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&He.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in zi){const n=zi[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<rv.length;r++){const i=rv[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=b4(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=Xs(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"&&(Cg(i)||cg(i))?i=parseFloat(i):!v4(i)&&wr.test(n)&&(i=yg(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=Iu(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 uu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},iv=class extends w4{constructor(){super(...arguments),this.KeyframeResolver=_g}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 S4(e){return window.getComputedStyle(e)}let T4=class extends iv{constructor(){super(...arguments),this.type="html",this.renderInstance=q0}readValueFromInstance(t,n){if(ti.has(n))return LA(t,n);{const r=S4(t),i=(Tu(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return dy(t,n)}build(t,n,r){Pu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Du(t,n,r)}},E4=class extends iv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=at,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&H0(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ti.has(n)){const r=gg(n);return r&&r.default||0}return n=K0.has(n)?n:Su(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Z0(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&He.postRender(this.updateDimensions)}build(t,n,r){Ou(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){X0(t,n,r,i)}mount(t){this.isSVGTag=_u(t.tagName),super.mount(t)}};const C4=(e,t)=>Mu(e)?new E4(t):new T4(t,{allowProjection:e!==_.Fragment}),P4=cA({...qM,...m4,...r4,...p4},C4),pf=PP(P4),A4=500,gf=({id:e,content:t,type:n="info",duration:r=0,onClose:i})=>{const[o,a]=_.useState(!0);let c=tu,u,f,h;switch(n){case"success":u="text-green-500",f="bg-green-50",h="border-green-500",c=GC;break;case"error":u="text-red-500",f="bg-red-50",h="border-red-500",c=JC;break;case"warning":u="text-yellow-500",f="bg-yellow-50",h="border-yellow-500",c=WC;break;case"loading":u="text-gray-500",f="bg-gray-50",h="border-gray-500",c=tu;break;case"info":default:u="text-blue-500",f="bg-blue-50",h="border-blue-500",c=tu}_.useEffect(()=>{if(r===0)return;const p=setTimeout(()=>{a(!1)},r);return()=>clearTimeout(p)},[r]),_.useEffect(()=>{if(!o){const p=setTimeout(i,A4);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 y.jsx(rP,{onExitComplete:i,children:o&&y.jsx(pf.div,{id:e,className:`toast w-[320px] rounded-xl border-[1.5px] p-8 shadow-md ${f} ${h}`,initial:"initial",animate:"animate",exit:"exit",variants:m,layout:!0,children:y.jsxs("div",{className:"flex justify-between items-center p-3",children:[y.jsxs("div",{className:"flex items-center gap-6",children:[y.jsx(Pe,{icon:c,className:`w-20 h-20 min-h-20 min-w-20 ${u}`}),y.jsx("span",{className:"text-gray-800 font-medium text-base",children:t})]}),y.jsx("button",{onClick:()=>a(!1),className:"text-gray-500 transition-all hover:text-gray-700 flex items-center",children:y.jsx(Pe,{icon:ZC,className:"w-20 h-20 min-h-20 min-w-20"})})]})})})},sv=({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]),y.jsx(gf,{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 M4={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"]},O4={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"]},sv={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"]},ov=6048e5,_4=864e5,av=Symbol.for("constructDateFrom");function Gt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&av in e?e[av](t):e instanceof Date?new e.constructor(t):new Date(t)}function pt(e,t){return Gt(t||e,e)}function lv(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 I4={};function mo(){return I4}function Qi(e,t){var c,u,f,h;const n=mo(),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=(f=n.locale)==null?void 0:f.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 Na(e,t){return Qi(e,{...t,weekStartsOn:1})}function cv(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=Na(i),a=Gt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const c=Na(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function uv(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 ka(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 $4(e,t,n){const[r,i]=ka(n==null?void 0:n.in,e,t),o=La(r),a=La(i),c=+o-uv(o),u=+a-uv(a);return Math.round((c-u)/_4)}function D4(e,t){const n=cv(e,t),r=Gt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Na(r)}function N4(e){return Gt(e,Date.now())}function fv(e,t,n){const[r,i]=ka(n==null?void 0:n.in,e,t);return+La(r)==+La(i)}function k4(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function L4(e){return!(!k4(e)&&typeof e!="number"||isNaN(+pt(e)))}function R4(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 j4(e,t){const[n,r]=ka(e,t.start,t.end);return{start:n,end:r}}function F4(e,t){const{start:n,end:r}=j4(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 V4(e,t){const n=pt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function B4(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 W4(e,t){var c,u;const n=mo(),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 U4={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"}},z4=(e,t,n)=>{let r;const i=U4[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 es(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const G4={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Y4={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},H4={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},q4={date:es({formats:G4,defaultWidth:"full"}),time:es({formats:Y4,defaultWidth:"full"}),dateTime:es({formats:H4,defaultWidth:"full"})},K4={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},X4=(e,t,n,r)=>K4[e];function $n(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 Z4={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},J4={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Q4={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"]},e_={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"]},t_={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"}},n_={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"}},r_={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:$n({values:Z4,defaultWidth:"wide"}),quarter:$n({values:J4,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$n({values:Q4,defaultWidth:"wide"}),day:$n({values:e_,defaultWidth:"wide"}),dayPeriod:$n({values:t_,defaultWidth:"wide",formattingValues:n_,defaultFormattingWidth:"wide"})};function Dn(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?s_(c,m=>m.test(a)):i_(c,m=>m.test(a));let f;f=e.valueCallback?e.valueCallback(u):u,f=n.valueCallback?n.valueCallback(f):f;const h=t.slice(a.length);return{value:f,rest:h}}}function i_(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function s_(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function dv(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 o_=/^(\d+)(th|st|nd|rd)?/i,a_=/\d+/i,l_={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},c_={any:[/^b/i,/^(a|c)/i]},u_={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},f_={any:[/1/i,/2/i,/3/i,/4/i]},d_={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},h_={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]},m_={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},p_={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]},g_={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},y_={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}},v_={ordinalNumber:dv({matchPattern:o_,parsePattern:a_,valueCallback:e=>parseInt(e,10)}),era:Dn({matchPatterns:l_,defaultMatchWidth:"wide",parsePatterns:c_,defaultParseWidth:"any"}),quarter:Dn({matchPatterns:u_,defaultMatchWidth:"wide",parsePatterns:f_,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Dn({matchPatterns:d_,defaultMatchWidth:"wide",parsePatterns:h_,defaultParseWidth:"any"}),day:Dn({matchPatterns:m_,defaultMatchWidth:"wide",parsePatterns:p_,defaultParseWidth:"any"}),dayPeriod:Dn({matchPatterns:g_,defaultMatchWidth:"any",parsePatterns:y_,defaultParseWidth:"any"})},hv={code:"en-US",formatDistance:z4,formatLong:q4,formatRelative:X4,localize:r_,match:v_,options:{weekStartsOn:0,firstWeekContainsDate:1}};function x_(e,t){const n=pt(e,t==null?void 0:t.in);return $4(n,B4(n))+1}function b_(e,t){const n=pt(e,t==null?void 0:t.in),r=+Na(n)-+D4(n);return Math.round(r/ov)+1}function mv(e,t){var h,m,p,v;const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=mo(),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??((v=(p=i.locale)==null?void 0:p.options)==null?void 0:v.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=Qi(a,t),u=Gt((t==null?void 0:t.in)||e,0);u.setFullYear(r,0,o),u.setHours(0,0,0,0);const f=Qi(u,t);return+n>=+c?r+1:+n>=+f?r:r-1}function w_(e,t){var c,u,f,h;const n=mo(),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=(f=n.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,i=mv(e,t),o=Gt((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Qi(o,t)}function S_(e,t){const n=pt(e,t==null?void 0:t.in),r=+Qi(n,t)-+w_(n,t);return Math.round(r/ov)+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)}},ts={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},pv={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=mv(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=cv(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=S_(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):We(i,t.length)},I:function(e,t,n){const r=b_(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=x_(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=ts.noon:r===0?i=ts.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=ts.evening:r>=12?i=ts.afternoon:r>=4?i=ts.morning:i=ts.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 yv(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 yv(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"+gv(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"+gv(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 gv(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 yv(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 vv=(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"})}},xv=(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"})}},T_={p:xv,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return vv(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}}",vv(r,t)).replace("{{time}}",xv(i,t))}},E_=/^D+$/,C_=/^Y+$/,P_=["D","DD","YY","YYYY"];function A_(e){return E_.test(e)}function M_(e){return C_.test(e)}function O_(e,t,n){const r=__(e,t,n);if(console.warn(r),P_.includes(e))throw new RangeError(r)}function __(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 I_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,D_=/^'([^]*?)'?$/,N_=/''/g,k_=/[a-zA-Z]/;function Nn(e,t,n){var h,m,p,v,S,x,T,b;const r=mo(),i=(n==null?void 0:n.locale)??r.locale??hv,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??((v=(p=r.locale)==null?void 0:p.options)==null?void 0:v.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((x=(S=n==null?void 0:n.locale)==null?void 0:S.options)==null?void 0:x.weekStartsOn)??r.weekStartsOn??((b=(T=r.locale)==null?void 0:T.options)==null?void 0:b.weekStartsOn)??0,c=pt(e,n==null?void 0:n.in);if(!L4(c))throw new RangeError("Invalid time value");let u=t.match($_).map(A=>{const E=A[0];if(E==="p"||E==="P"){const $=T_[E];return $(A,i.formatLong)}return A}).join("").match(I_).map(A=>{if(A==="''")return{isToken:!1,value:"'"};const E=A[0];if(E==="'")return{isToken:!1,value:L_(A)};if(pv[E])return{isToken:!0,value:A};if(E.match(k_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return{isToken:!1,value:A}});i.localize.preprocessor&&(u=i.localize.preprocessor(c,u));const f={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return u.map(A=>{if(!A.isToken)return A.value;const E=A.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&M_(E)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&A_(E))&&O_(E,t,String(e));const $=pv[E[0]];return $(c,E,i.localize,f)}).join("")}function L_(e){const t=e.match(D_);return t?t[1].replace(N_,"'"):e}function R_(e,t,n){const[r,i]=ka(n==null?void 0:n.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function j_(e,t){return fv(Gt(e,e),N4(e))}function bv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setHours(t),r}function wv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setMinutes(t),r}function Sv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setSeconds(t),r}function F_(e,t,n){return lv(e,-1,n)}const V_={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"}},B_=(e,t,n)=>{let r;const i=V_[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},W_={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},U_={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},z_={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},G_={date:es({formats:W_,defaultWidth:"full"}),time:es({formats:U_,defaultWidth:"full"}),dateTime:es({formats:z_,defaultWidth:"full"})},Y_={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"},H_={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"},q_=(e,t,n,r)=>t.getHours()!==1?H_[e]:Y_[e],K_={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},X_={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},Z_={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"]},J_={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"]},Q_={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"}},eI={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"}},tI={ordinalNumber:(e,t)=>Number(e)+"º",era:$n({values:K_,defaultWidth:"wide"}),quarter:$n({values:X_,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:$n({values:Z_,defaultWidth:"wide"}),day:$n({values:J_,defaultWidth:"wide"}),dayPeriod:$n({values:Q_,defaultWidth:"wide",formattingValues:eI,defaultFormattingWidth:"wide"})},nI=/^(\d+)(º)?/i,rI=/\d+/i,iI={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},sI={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]},oI={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},aI={any:[/1/i,/2/i,/3/i,/4/i]},lI={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},cI={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]},uI={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},fI={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]},dI={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},hI={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}},mI={ordinalNumber:dv({matchPattern:nI,parsePattern:rI,valueCallback:function(e){return parseInt(e,10)}}),era:Dn({matchPatterns:iI,defaultMatchWidth:"wide",parsePatterns:sI,defaultParseWidth:"any"}),quarter:Dn({matchPatterns:oI,defaultMatchWidth:"wide",parsePatterns:aI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Dn({matchPatterns:lI,defaultMatchWidth:"wide",parsePatterns:cI,defaultParseWidth:"any"}),day:Dn({matchPatterns:uI,defaultMatchWidth:"wide",parsePatterns:fI,defaultParseWidth:"any"}),dayPeriod:Dn({matchPatterns:dI,defaultMatchWidth:"any",parsePatterns:hI,defaultParseWidth:"any"})},ns={code:"es",formatDistance:B_,formatLong:G_,formatRelative:q_,localize:tI,match:mI,options:{weekStartsOn:1,firstWeekContainsDate:1}},Tv=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),yf=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},pI=(e,t="PPPP",n="es")=>{const r=typeof e=="string"?new Date(e):e;return Tv(Nn(r,t,{locale:{en:hv,es:ns}[n]}))},gI=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=i=>n(i)});function Ev(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 Cv=e=>e;var po={exports:{}};/**
625
+ */const M4={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"]},O4={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"]},ov={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"]},av=6048e5,_4=864e5,lv=Symbol.for("constructDateFrom");function Gt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&lv in e?e[lv](t):e instanceof Date?new e.constructor(t):new Date(t)}function pt(e,t){return Gt(t||e,e)}function cv(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 I4={};function mo(){return I4}function Qi(e,t){var c,u,f,h;const n=mo(),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=(f=n.locale)==null?void 0:f.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 Na(e,t){return Qi(e,{...t,weekStartsOn:1})}function uv(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=Na(i),a=Gt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const c=Na(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function fv(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 ka(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 $4(e,t,n){const[r,i]=ka(n==null?void 0:n.in,e,t),o=La(r),a=La(i),c=+o-fv(o),u=+a-fv(a);return Math.round((c-u)/_4)}function D4(e,t){const n=uv(e,t),r=Gt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Na(r)}function N4(e){return Gt(e,Date.now())}function dv(e,t,n){const[r,i]=ka(n==null?void 0:n.in,e,t);return+La(r)==+La(i)}function k4(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function L4(e){return!(!k4(e)&&typeof e!="number"||isNaN(+pt(e)))}function R4(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 j4(e,t){const[n,r]=ka(e,t.start,t.end);return{start:n,end:r}}function F4(e,t){const{start:n,end:r}=j4(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 V4(e,t){const n=pt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function B4(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 W4(e,t){var c,u;const n=mo(),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 U4={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"}},z4=(e,t,n)=>{let r;const i=U4[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 es(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const G4={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Y4={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},H4={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},q4={date:es({formats:G4,defaultWidth:"full"}),time:es({formats:Y4,defaultWidth:"full"}),dateTime:es({formats:H4,defaultWidth:"full"})},K4={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},X4=(e,t,n,r)=>K4[e];function $n(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 Z4={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},J4={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Q4={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"]},e_={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"]},t_={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"}},n_={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"}},r_={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:$n({values:Z4,defaultWidth:"wide"}),quarter:$n({values:J4,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$n({values:Q4,defaultWidth:"wide"}),day:$n({values:e_,defaultWidth:"wide"}),dayPeriod:$n({values:t_,defaultWidth:"wide",formattingValues:n_,defaultFormattingWidth:"wide"})};function Dn(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?s_(c,m=>m.test(a)):i_(c,m=>m.test(a));let f;f=e.valueCallback?e.valueCallback(u):u,f=n.valueCallback?n.valueCallback(f):f;const h=t.slice(a.length);return{value:f,rest:h}}}function i_(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function s_(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function hv(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 o_=/^(\d+)(th|st|nd|rd)?/i,a_=/\d+/i,l_={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},c_={any:[/^b/i,/^(a|c)/i]},u_={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},f_={any:[/1/i,/2/i,/3/i,/4/i]},d_={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},h_={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]},m_={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},p_={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]},g_={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},y_={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}},v_={ordinalNumber:hv({matchPattern:o_,parsePattern:a_,valueCallback:e=>parseInt(e,10)}),era:Dn({matchPatterns:l_,defaultMatchWidth:"wide",parsePatterns:c_,defaultParseWidth:"any"}),quarter:Dn({matchPatterns:u_,defaultMatchWidth:"wide",parsePatterns:f_,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Dn({matchPatterns:d_,defaultMatchWidth:"wide",parsePatterns:h_,defaultParseWidth:"any"}),day:Dn({matchPatterns:m_,defaultMatchWidth:"wide",parsePatterns:p_,defaultParseWidth:"any"}),dayPeriod:Dn({matchPatterns:g_,defaultMatchWidth:"any",parsePatterns:y_,defaultParseWidth:"any"})},mv={code:"en-US",formatDistance:z4,formatLong:q4,formatRelative:X4,localize:r_,match:v_,options:{weekStartsOn:0,firstWeekContainsDate:1}};function x_(e,t){const n=pt(e,t==null?void 0:t.in);return $4(n,B4(n))+1}function b_(e,t){const n=pt(e,t==null?void 0:t.in),r=+Na(n)-+D4(n);return Math.round(r/av)+1}function pv(e,t){var h,m,p,v;const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=mo(),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??((v=(p=i.locale)==null?void 0:p.options)==null?void 0:v.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=Qi(a,t),u=Gt((t==null?void 0:t.in)||e,0);u.setFullYear(r,0,o),u.setHours(0,0,0,0);const f=Qi(u,t);return+n>=+c?r+1:+n>=+f?r:r-1}function w_(e,t){var c,u,f,h;const n=mo(),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=(f=n.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,i=pv(e,t),o=Gt((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Qi(o,t)}function S_(e,t){const n=pt(e,t==null?void 0:t.in),r=+Qi(n,t)-+w_(n,t);return Math.round(r/av)+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)}},ts={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},gv={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=pv(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=uv(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=S_(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):We(i,t.length)},I:function(e,t,n){const r=b_(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=x_(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=ts.noon:r===0?i=ts.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=ts.evening:r>=12?i=ts.afternoon:r>=4?i=ts.morning:i=ts.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 vv(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 vv(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"+yv(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"+yv(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 yv(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 vv(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 xv=(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"})}},bv=(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"})}},T_={p:bv,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return xv(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}}",xv(r,t)).replace("{{time}}",bv(i,t))}},E_=/^D+$/,C_=/^Y+$/,P_=["D","DD","YY","YYYY"];function A_(e){return E_.test(e)}function M_(e){return C_.test(e)}function O_(e,t,n){const r=__(e,t,n);if(console.warn(r),P_.includes(e))throw new RangeError(r)}function __(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 I_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,D_=/^'([^]*?)'?$/,N_=/''/g,k_=/[a-zA-Z]/;function Nn(e,t,n){var h,m,p,v,S,x,T,b;const r=mo(),i=(n==null?void 0:n.locale)??r.locale??mv,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??((v=(p=r.locale)==null?void 0:p.options)==null?void 0:v.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((x=(S=n==null?void 0:n.locale)==null?void 0:S.options)==null?void 0:x.weekStartsOn)??r.weekStartsOn??((b=(T=r.locale)==null?void 0:T.options)==null?void 0:b.weekStartsOn)??0,c=pt(e,n==null?void 0:n.in);if(!L4(c))throw new RangeError("Invalid time value");let u=t.match($_).map(A=>{const E=A[0];if(E==="p"||E==="P"){const $=T_[E];return $(A,i.formatLong)}return A}).join("").match(I_).map(A=>{if(A==="''")return{isToken:!1,value:"'"};const E=A[0];if(E==="'")return{isToken:!1,value:L_(A)};if(gv[E])return{isToken:!0,value:A};if(E.match(k_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return{isToken:!1,value:A}});i.localize.preprocessor&&(u=i.localize.preprocessor(c,u));const f={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return u.map(A=>{if(!A.isToken)return A.value;const E=A.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&M_(E)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&A_(E))&&O_(E,t,String(e));const $=gv[E[0]];return $(c,E,i.localize,f)}).join("")}function L_(e){const t=e.match(D_);return t?t[1].replace(N_,"'"):e}function R_(e,t,n){const[r,i]=ka(n==null?void 0:n.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function j_(e,t){return dv(Gt(e,e),N4(e))}function wv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setHours(t),r}function Sv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setMinutes(t),r}function Tv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setSeconds(t),r}function F_(e,t,n){return cv(e,-1,n)}const V_={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"}},B_=(e,t,n)=>{let r;const i=V_[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},W_={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},U_={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},z_={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},G_={date:es({formats:W_,defaultWidth:"full"}),time:es({formats:U_,defaultWidth:"full"}),dateTime:es({formats:z_,defaultWidth:"full"})},Y_={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"},H_={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"},q_=(e,t,n,r)=>t.getHours()!==1?H_[e]:Y_[e],K_={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},X_={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},Z_={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"]},J_={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"]},Q_={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"}},eI={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"}},tI={ordinalNumber:(e,t)=>Number(e)+"º",era:$n({values:K_,defaultWidth:"wide"}),quarter:$n({values:X_,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:$n({values:Z_,defaultWidth:"wide"}),day:$n({values:J_,defaultWidth:"wide"}),dayPeriod:$n({values:Q_,defaultWidth:"wide",formattingValues:eI,defaultFormattingWidth:"wide"})},nI=/^(\d+)(º)?/i,rI=/\d+/i,iI={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},sI={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]},oI={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},aI={any:[/1/i,/2/i,/3/i,/4/i]},lI={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},cI={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]},uI={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},fI={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]},dI={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},hI={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}},mI={ordinalNumber:hv({matchPattern:nI,parsePattern:rI,valueCallback:function(e){return parseInt(e,10)}}),era:Dn({matchPatterns:iI,defaultMatchWidth:"wide",parsePatterns:sI,defaultParseWidth:"any"}),quarter:Dn({matchPatterns:oI,defaultMatchWidth:"wide",parsePatterns:aI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Dn({matchPatterns:lI,defaultMatchWidth:"wide",parsePatterns:cI,defaultParseWidth:"any"}),day:Dn({matchPatterns:uI,defaultMatchWidth:"wide",parsePatterns:fI,defaultParseWidth:"any"}),dayPeriod:Dn({matchPatterns:dI,defaultMatchWidth:"any",parsePatterns:hI,defaultParseWidth:"any"})},ns={code:"es",formatDistance:B_,formatLong:G_,formatRelative:q_,localize:tI,match:mI,options:{weekStartsOn:1,firstWeekContainsDate:1}},Ev=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),yf=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},pI=(e,t="PPPP",n="es")=>{const r=typeof e=="string"?new Date(e):e;return Ev(Nn(r,t,{locale:{en:mv,es:ns}[n]}))},gI=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=i=>n(i)});function Cv(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 Pv=e=>e;var po={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 yI=po.exports,Pv;function vI(){return Pv||(Pv=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__",f=500,h="__lodash_placeholder__",m=1,p=2,v=4,S=1,x=2,T=1,b=2,A=4,E=8,$=16,C=32,D=64,j=128,F=256,U=512,Z=30,ee="...",se=800,ge=16,ue=1,fe=2,he=3,V=1/0,B=9007199254740991,Y=17976931348623157e292,O=NaN,k=4294967295,K=k-1,ae=k>>>1,le=[["ary",j],["bind",T],["bindKey",b],["curry",E],["curryRight",$],["flip",U],["partial",C],["partialRight",D],["rearg",F]],z="[object Arguments]",J="[object Array]",oe="[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]",Ci="[object Null]",dt="[object Object]",bl="[object Promise]",wl="[object Proxy]",Pi="[object RegExp]",qt="[object Set]",bn="[object String]",Ai="[object Symbol]",Sl="[object Undefined]",Wr="[object WeakMap]",Tl="[object WeakSet]",xe="[object ArrayBuffer]",Qe="[object DataView]",Pt="[object Float32Array]",wn="[object Float64Array]",rr="[object Int8Array]",mh="[object Int16Array]",ph="[object Int32Array]",gh="[object Uint8Array]",yh="[object Uint8ClampedArray]",vh="[object Uint16Array]",xh="[object Uint32Array]",jL=/\b__p \+= '';/g,FL=/\b(__p \+=) '' \+/g,VL=/(__e\(.*?\)|\b__t\)) \+\n'';/g,B2=/&(?:amp|lt|gt|quot|#39);/g,W2=/[&<>"']/g,BL=RegExp(B2.source),WL=RegExp(W2.source),UL=/<%-([\s\S]+?)%>/g,zL=/<%([\s\S]+?)%>/g,U2=/<%=([\s\S]+?)%>/g,GL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,YL=/^\w*$/,HL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bh=/[\\^$.*+?()[\]{}|]/g,qL=RegExp(bh.source),wh=/^\s+/,KL=/\s/,XL=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ZL=/\{\n\/\* \[wrapped with (.+)\] \*/,JL=/,? & /,QL=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,eR=/[()=,{}\[\]\/\s]/,tR=/\\(\\)?/g,nR=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,z2=/\w*$/,rR=/^[-+]0x[0-9a-f]+$/i,iR=/^0b[01]+$/i,sR=/^\[object .+?Constructor\]$/,oR=/^0o[0-7]+$/i,aR=/^(?:0|[1-9]\d*)$/,lR=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,El=/($^)/,cR=/['\n\r\u2028\u2029\\]/g,Cl="\\ud800-\\udfff",uR="\\u0300-\\u036f",fR="\\ufe20-\\ufe2f",dR="\\u20d0-\\u20ff",G2=uR+fR+dR,Y2="\\u2700-\\u27bf",H2="a-z\\xdf-\\xf6\\xf8-\\xff",hR="\\xac\\xb1\\xd7\\xf7",mR="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pR="\\u2000-\\u206f",gR=" \\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",q2="A-Z\\xc0-\\xd6\\xd8-\\xde",K2="\\ufe0e\\ufe0f",X2=hR+mR+pR+gR,Sh="['’]",yR="["+Cl+"]",Z2="["+X2+"]",Pl="["+G2+"]",J2="\\d+",vR="["+Y2+"]",Q2="["+H2+"]",ew="[^"+Cl+X2+J2+Y2+H2+q2+"]",Th="\\ud83c[\\udffb-\\udfff]",xR="(?:"+Pl+"|"+Th+")",tw="[^"+Cl+"]",Eh="(?:\\ud83c[\\udde6-\\uddff]){2}",Ch="[\\ud800-\\udbff][\\udc00-\\udfff]",Cs="["+q2+"]",nw="\\u200d",rw="(?:"+Q2+"|"+ew+")",bR="(?:"+Cs+"|"+ew+")",iw="(?:"+Sh+"(?:d|ll|m|re|s|t|ve))?",sw="(?:"+Sh+"(?:D|LL|M|RE|S|T|VE))?",ow=xR+"?",aw="["+K2+"]?",wR="(?:"+nw+"(?:"+[tw,Eh,Ch].join("|")+")"+aw+ow+")*",SR="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",TR="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",lw=aw+ow+wR,ER="(?:"+[vR,Eh,Ch].join("|")+")"+lw,CR="(?:"+[tw+Pl+"?",Pl,Eh,Ch,yR].join("|")+")",PR=RegExp(Sh,"g"),AR=RegExp(Pl,"g"),Ph=RegExp(Th+"(?="+Th+")|"+CR+lw,"g"),MR=RegExp([Cs+"?"+Q2+"+"+iw+"(?="+[Z2,Cs,"$"].join("|")+")",bR+"+"+sw+"(?="+[Z2,Cs+rw,"$"].join("|")+")",Cs+"?"+rw+"+"+iw,Cs+"+"+sw,TR,SR,J2,ER].join("|"),"g"),OR=RegExp("["+nw+Cl+G2+K2+"]"),_R=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,IR=["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"],$R=-1,Je={};Je[Pt]=Je[wn]=Je[rr]=Je[mh]=Je[ph]=Je[gh]=Je[yh]=Je[vh]=Je[xh]=!0,Je[z]=Je[J]=Je[xe]=Je[re]=Je[Qe]=Je[de]=Je[Ve]=Je[ie]=Je[De]=Je[ft]=Je[dt]=Je[Pi]=Je[qt]=Je[bn]=Je[Wr]=!1;var Xe={};Xe[z]=Xe[J]=Xe[xe]=Xe[Qe]=Xe[re]=Xe[de]=Xe[Pt]=Xe[wn]=Xe[rr]=Xe[mh]=Xe[ph]=Xe[De]=Xe[ft]=Xe[dt]=Xe[Pi]=Xe[qt]=Xe[bn]=Xe[Ai]=Xe[gh]=Xe[yh]=Xe[vh]=Xe[xh]=!0,Xe[Ve]=Xe[ie]=Xe[Wr]=!1;var DR={À:"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"},NR={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},kR={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},LR={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},RR=parseFloat,jR=parseInt,cw=typeof ea=="object"&&ea&&ea.Object===Object&&ea,FR=typeof self=="object"&&self&&self.Object===Object&&self,xt=cw||FR||Function("return this")(),Ah=t&&!t.nodeType&&t,Mi=Ah&&!0&&e&&!e.nodeType&&e,uw=Mi&&Mi.exports===Ah,Mh=uw&&cw.process,cn=function(){try{var L=Mi&&Mi.require&&Mi.require("util").types;return L||Mh&&Mh.binding&&Mh.binding("util")}catch{}}(),fw=cn&&cn.isArrayBuffer,dw=cn&&cn.isDate,hw=cn&&cn.isMap,mw=cn&&cn.isRegExp,pw=cn&&cn.isSet,gw=cn&&cn.isTypedArray;function Kt(L,G,W){switch(W.length){case 0:return L.call(G);case 1:return L.call(G,W[0]);case 2:return L.call(G,W[0],W[1]);case 3:return L.call(G,W[0],W[1],W[2])}return L.apply(G,W)}function VR(L,G,W,me){for(var Ae=-1,Re=L==null?0:L.length;++Ae<Re;){var ht=L[Ae];G(me,ht,W(ht),L)}return me}function un(L,G){for(var W=-1,me=L==null?0:L.length;++W<me&&G(L[W],W,L)!==!1;);return L}function BR(L,G){for(var W=L==null?0:L.length;W--&&G(L[W],W,L)!==!1;);return L}function yw(L,G){for(var W=-1,me=L==null?0:L.length;++W<me;)if(!G(L[W],W,L))return!1;return!0}function Ur(L,G){for(var W=-1,me=L==null?0:L.length,Ae=0,Re=[];++W<me;){var ht=L[W];G(ht,W,L)&&(Re[Ae++]=ht)}return Re}function Al(L,G){var W=L==null?0:L.length;return!!W&&Ps(L,G,0)>-1}function Oh(L,G,W){for(var me=-1,Ae=L==null?0:L.length;++me<Ae;)if(W(G,L[me]))return!0;return!1}function et(L,G){for(var W=-1,me=L==null?0:L.length,Ae=Array(me);++W<me;)Ae[W]=G(L[W],W,L);return Ae}function zr(L,G){for(var W=-1,me=G.length,Ae=L.length;++W<me;)L[Ae+W]=G[W];return L}function _h(L,G,W,me){var Ae=-1,Re=L==null?0:L.length;for(me&&Re&&(W=L[++Ae]);++Ae<Re;)W=G(W,L[Ae],Ae,L);return W}function WR(L,G,W,me){var Ae=L==null?0:L.length;for(me&&Ae&&(W=L[--Ae]);Ae--;)W=G(W,L[Ae],Ae,L);return W}function Ih(L,G){for(var W=-1,me=L==null?0:L.length;++W<me;)if(G(L[W],W,L))return!0;return!1}var UR=$h("length");function zR(L){return L.split("")}function GR(L){return L.match(QL)||[]}function vw(L,G,W){var me;return W(L,function(Ae,Re,ht){if(G(Ae,Re,ht))return me=Re,!1}),me}function Ml(L,G,W,me){for(var Ae=L.length,Re=W+(me?1:-1);me?Re--:++Re<Ae;)if(G(L[Re],Re,L))return Re;return-1}function Ps(L,G,W){return G===G?rj(L,G,W):Ml(L,xw,W)}function YR(L,G,W,me){for(var Ae=W-1,Re=L.length;++Ae<Re;)if(me(L[Ae],G))return Ae;return-1}function xw(L){return L!==L}function bw(L,G){var W=L==null?0:L.length;return W?Nh(L,G)/W:O}function $h(L){return function(G){return G==null?n:G[L]}}function Dh(L){return function(G){return L==null?n:L[G]}}function ww(L,G,W,me,Ae){return Ae(L,function(Re,ht,Ye){W=me?(me=!1,Re):G(W,Re,ht,Ye)}),W}function HR(L,G){var W=L.length;for(L.sort(G);W--;)L[W]=L[W].value;return L}function Nh(L,G){for(var W,me=-1,Ae=L.length;++me<Ae;){var Re=G(L[me]);Re!==n&&(W=W===n?Re:W+Re)}return W}function kh(L,G){for(var W=-1,me=Array(L);++W<L;)me[W]=G(W);return me}function qR(L,G){return et(G,function(W){return[W,L[W]]})}function Sw(L){return L&&L.slice(0,Pw(L)+1).replace(wh,"")}function Xt(L){return function(G){return L(G)}}function Lh(L,G){return et(G,function(W){return L[W]})}function Fo(L,G){return L.has(G)}function Tw(L,G){for(var W=-1,me=L.length;++W<me&&Ps(G,L[W],0)>-1;);return W}function Ew(L,G){for(var W=L.length;W--&&Ps(G,L[W],0)>-1;);return W}function KR(L,G){for(var W=L.length,me=0;W--;)L[W]===G&&++me;return me}var XR=Dh(DR),ZR=Dh(NR);function JR(L){return"\\"+LR[L]}function QR(L,G){return L==null?n:L[G]}function As(L){return OR.test(L)}function ej(L){return _R.test(L)}function tj(L){for(var G,W=[];!(G=L.next()).done;)W.push(G.value);return W}function Rh(L){var G=-1,W=Array(L.size);return L.forEach(function(me,Ae){W[++G]=[Ae,me]}),W}function Cw(L,G){return function(W){return L(G(W))}}function Gr(L,G){for(var W=-1,me=L.length,Ae=0,Re=[];++W<me;){var ht=L[W];(ht===G||ht===h)&&(L[W]=h,Re[Ae++]=W)}return Re}function Ol(L){var G=-1,W=Array(L.size);return L.forEach(function(me){W[++G]=me}),W}function nj(L){var G=-1,W=Array(L.size);return L.forEach(function(me){W[++G]=[me,me]}),W}function rj(L,G,W){for(var me=W-1,Ae=L.length;++me<Ae;)if(L[me]===G)return me;return-1}function ij(L,G,W){for(var me=W+1;me--;)if(L[me]===G)return me;return me}function Ms(L){return As(L)?oj(L):UR(L)}function Sn(L){return As(L)?aj(L):zR(L)}function Pw(L){for(var G=L.length;G--&&KL.test(L.charAt(G)););return G}var sj=Dh(kR);function oj(L){for(var G=Ph.lastIndex=0;Ph.test(L);)++G;return G}function aj(L){return L.match(Ph)||[]}function lj(L){return L.match(MR)||[]}var cj=function L(G){G=G==null?xt:Os.defaults(xt.Object(),G,Os.pick(xt,IR));var W=G.Array,me=G.Date,Ae=G.Error,Re=G.Function,ht=G.Math,Ye=G.Object,jh=G.RegExp,uj=G.String,fn=G.TypeError,_l=W.prototype,fj=Re.prototype,_s=Ye.prototype,Il=G["__core-js_shared__"],$l=fj.toString,ze=_s.hasOwnProperty,dj=0,Aw=function(){var s=/[^.]+$/.exec(Il&&Il.keys&&Il.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Dl=_s.toString,hj=$l.call(Ye),mj=xt._,pj=jh("^"+$l.call(ze).replace(bh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nl=uw?G.Buffer:n,Yr=G.Symbol,kl=G.Uint8Array,Mw=Nl?Nl.allocUnsafe:n,Ll=Cw(Ye.getPrototypeOf,Ye),Ow=Ye.create,_w=_s.propertyIsEnumerable,Rl=_l.splice,Iw=Yr?Yr.isConcatSpreadable:n,Vo=Yr?Yr.iterator:n,Oi=Yr?Yr.toStringTag:n,jl=function(){try{var s=Ni(Ye,"defineProperty");return s({},"",{}),s}catch{}}(),gj=G.clearTimeout!==xt.clearTimeout&&G.clearTimeout,yj=me&&me.now!==xt.Date.now&&me.now,vj=G.setTimeout!==xt.setTimeout&&G.setTimeout,Fl=ht.ceil,Vl=ht.floor,Fh=Ye.getOwnPropertySymbols,xj=Nl?Nl.isBuffer:n,$w=G.isFinite,bj=_l.join,wj=Cw(Ye.keys,Ye),mt=ht.max,At=ht.min,Sj=me.now,Tj=G.parseInt,Dw=ht.random,Ej=_l.reverse,Vh=Ni(G,"DataView"),Bo=Ni(G,"Map"),Bh=Ni(G,"Promise"),Is=Ni(G,"Set"),Wo=Ni(G,"WeakMap"),Uo=Ni(Ye,"create"),Bl=Wo&&new Wo,$s={},Cj=ki(Vh),Pj=ki(Bo),Aj=ki(Bh),Mj=ki(Is),Oj=ki(Wo),Wl=Yr?Yr.prototype:n,zo=Wl?Wl.valueOf:n,Nw=Wl?Wl.toString:n;function P(s){if(ot(s)&&!Me(s)&&!(s instanceof ke)){if(s instanceof dn)return s;if(ze.call(s,"__wrapped__"))return kS(s)}return new dn(s)}var Ds=function(){function s(){}return function(l){if(!st(l))return{};if(Ow)return Ow(l);s.prototype=l;var d=new s;return s.prototype=n,d}}();function Ul(){}function dn(s,l){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}P.templateSettings={escape:UL,evaluate:zL,interpolate:U2,variable:"",imports:{_:P}},P.prototype=Ul.prototype,P.prototype.constructor=P,dn.prototype=Ds(Ul.prototype),dn.prototype.constructor=dn;function ke(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=k,this.__views__=[]}function _j(){var s=new ke(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 Ij(){if(this.__filtered__){var s=new ke(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function $j(){var s=this.__wrapped__.value(),l=this.__dir__,d=Me(s),g=l<0,w=d?s.length:0,M=zF(0,w,this.__views__),I=M.start,N=M.end,R=N-I,H=g?N:I-1,q=this.__iteratees__,X=q.length,ce=0,ye=At(R,this.__takeCount__);if(!d||!g&&w==R&&ye==R)return iS(s,this.__actions__);var Te=[];e:for(;R--&&ce<ye;){H+=l;for(var _e=-1,Ee=s[H];++_e<X;){var Ne=q[_e],Le=Ne.iteratee,Qt=Ne.type,Dt=Le(Ee);if(Qt==fe)Ee=Dt;else if(!Dt){if(Qt==ue)continue e;break e}}Te[ce++]=Ee}return Te}ke.prototype=Ds(Ul.prototype),ke.prototype.constructor=ke;function _i(s){var l=-1,d=s==null?0:s.length;for(this.clear();++l<d;){var g=s[l];this.set(g[0],g[1])}}function Dj(){this.__data__=Uo?Uo(null):{},this.size=0}function Nj(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function kj(s){var l=this.__data__;if(Uo){var d=l[s];return d===u?n:d}return ze.call(l,s)?l[s]:n}function Lj(s){var l=this.__data__;return Uo?l[s]!==n:ze.call(l,s)}function Rj(s,l){var d=this.__data__;return this.size+=this.has(s)?0:1,d[s]=Uo&&l===n?u:l,this}_i.prototype.clear=Dj,_i.prototype.delete=Nj,_i.prototype.get=kj,_i.prototype.has=Lj,_i.prototype.set=Rj;function ir(s){var l=-1,d=s==null?0:s.length;for(this.clear();++l<d;){var g=s[l];this.set(g[0],g[1])}}function jj(){this.__data__=[],this.size=0}function Fj(s){var l=this.__data__,d=zl(l,s);if(d<0)return!1;var g=l.length-1;return d==g?l.pop():Rl.call(l,d,1),--this.size,!0}function Vj(s){var l=this.__data__,d=zl(l,s);return d<0?n:l[d][1]}function Bj(s){return zl(this.__data__,s)>-1}function Wj(s,l){var d=this.__data__,g=zl(d,s);return g<0?(++this.size,d.push([s,l])):d[g][1]=l,this}ir.prototype.clear=jj,ir.prototype.delete=Fj,ir.prototype.get=Vj,ir.prototype.has=Bj,ir.prototype.set=Wj;function sr(s){var l=-1,d=s==null?0:s.length;for(this.clear();++l<d;){var g=s[l];this.set(g[0],g[1])}}function Uj(){this.size=0,this.__data__={hash:new _i,map:new(Bo||ir),string:new _i}}function zj(s){var l=nc(this,s).delete(s);return this.size-=l?1:0,l}function Gj(s){return nc(this,s).get(s)}function Yj(s){return nc(this,s).has(s)}function Hj(s,l){var d=nc(this,s),g=d.size;return d.set(s,l),this.size+=d.size==g?0:1,this}sr.prototype.clear=Uj,sr.prototype.delete=zj,sr.prototype.get=Gj,sr.prototype.has=Yj,sr.prototype.set=Hj;function Ii(s){var l=-1,d=s==null?0:s.length;for(this.__data__=new sr;++l<d;)this.add(s[l])}function qj(s){return this.__data__.set(s,u),this}function Kj(s){return this.__data__.has(s)}Ii.prototype.add=Ii.prototype.push=qj,Ii.prototype.has=Kj;function Tn(s){var l=this.__data__=new ir(s);this.size=l.size}function Xj(){this.__data__=new ir,this.size=0}function Zj(s){var l=this.__data__,d=l.delete(s);return this.size=l.size,d}function Jj(s){return this.__data__.get(s)}function Qj(s){return this.__data__.has(s)}function eF(s,l){var d=this.__data__;if(d instanceof ir){var g=d.__data__;if(!Bo||g.length<i-1)return g.push([s,l]),this.size=++d.size,this;d=this.__data__=new sr(g)}return d.set(s,l),this.size=d.size,this}Tn.prototype.clear=Xj,Tn.prototype.delete=Zj,Tn.prototype.get=Jj,Tn.prototype.has=Qj,Tn.prototype.set=eF;function kw(s,l){var d=Me(s),g=!d&&Li(s),w=!d&&!g&&Zr(s),M=!d&&!g&&!w&&Rs(s),I=d||g||w||M,N=I?kh(s.length,uj):[],R=N.length;for(var H in s)(l||ze.call(s,H))&&!(I&&(H=="length"||w&&(H=="offset"||H=="parent")||M&&(H=="buffer"||H=="byteLength"||H=="byteOffset")||cr(H,R)))&&N.push(H);return N}function Lw(s){var l=s.length;return l?s[Jh(0,l-1)]:n}function tF(s,l){return rc(Vt(s),$i(l,0,s.length))}function nF(s){return rc(Vt(s))}function Wh(s,l,d){(d!==n&&!En(s[l],d)||d===n&&!(l in s))&&or(s,l,d)}function Go(s,l,d){var g=s[l];(!(ze.call(s,l)&&En(g,d))||d===n&&!(l in s))&&or(s,l,d)}function zl(s,l){for(var d=s.length;d--;)if(En(s[d][0],l))return d;return-1}function rF(s,l,d,g){return Hr(s,function(w,M,I){l(g,w,d(w),I)}),g}function Rw(s,l){return s&&zn(l,gt(l),s)}function iF(s,l){return s&&zn(l,Wt(l),s)}function or(s,l,d){l=="__proto__"&&jl?jl(s,l,{configurable:!0,enumerable:!0,value:d,writable:!0}):s[l]=d}function Uh(s,l){for(var d=-1,g=l.length,w=W(g),M=s==null;++d<g;)w[d]=M?n:Tm(s,l[d]);return w}function $i(s,l,d){return s===s&&(d!==n&&(s=s<=d?s:d),l!==n&&(s=s>=l?s:l)),s}function hn(s,l,d,g,w,M){var I,N=l&m,R=l&p,H=l&v;if(d&&(I=w?d(s,g,w,M):d(s)),I!==n)return I;if(!st(s))return s;var q=Me(s);if(q){if(I=YF(s),!N)return Vt(s,I)}else{var X=Mt(s),ce=X==ie||X==pe;if(Zr(s))return aS(s,N);if(X==dt||X==z||ce&&!w){if(I=R||ce?{}:PS(s),!N)return R?kF(s,iF(I,s)):NF(s,Rw(I,s))}else{if(!Xe[X])return w?s:{};I=HF(s,X,N)}}M||(M=new Tn);var ye=M.get(s);if(ye)return ye;M.set(s,I),tT(s)?s.forEach(function(Ee){I.add(hn(Ee,l,d,Ee,s,M))}):QS(s)&&s.forEach(function(Ee,Ne){I.set(Ne,hn(Ee,l,d,Ne,s,M))});var Te=H?R?cm:lm:R?Wt:gt,_e=q?n:Te(s);return un(_e||s,function(Ee,Ne){_e&&(Ne=Ee,Ee=s[Ne]),Go(I,Ne,hn(Ee,l,d,Ne,s,M))}),I}function sF(s){var l=gt(s);return function(d){return jw(d,s,l)}}function jw(s,l,d){var g=d.length;if(s==null)return!g;for(s=Ye(s);g--;){var w=d[g],M=l[w],I=s[w];if(I===n&&!(w in s)||!M(I))return!1}return!0}function Fw(s,l,d){if(typeof s!="function")throw new fn(a);return Jo(function(){s.apply(n,d)},l)}function Yo(s,l,d,g){var w=-1,M=Al,I=!0,N=s.length,R=[],H=l.length;if(!N)return R;d&&(l=et(l,Xt(d))),g?(M=Oh,I=!1):l.length>=i&&(M=Fo,I=!1,l=new Ii(l));e:for(;++w<N;){var q=s[w],X=d==null?q:d(q);if(q=g||q!==0?q:0,I&&X===X){for(var ce=H;ce--;)if(l[ce]===X)continue e;R.push(q)}else M(l,X,g)||R.push(q)}return R}var Hr=dS(Un),Vw=dS(Gh,!0);function oF(s,l){var d=!0;return Hr(s,function(g,w,M){return d=!!l(g,w,M),d}),d}function Gl(s,l,d){for(var g=-1,w=s.length;++g<w;){var M=s[g],I=l(M);if(I!=null&&(N===n?I===I&&!Jt(I):d(I,N)))var N=I,R=M}return R}function aF(s,l,d,g){var w=s.length;for(d=Oe(d),d<0&&(d=-d>w?0:w+d),g=g===n||g>w?w:Oe(g),g<0&&(g+=w),g=d>g?0:rT(g);d<g;)s[d++]=l;return s}function Bw(s,l){var d=[];return Hr(s,function(g,w,M){l(g,w,M)&&d.push(g)}),d}function bt(s,l,d,g,w){var M=-1,I=s.length;for(d||(d=KF),w||(w=[]);++M<I;){var N=s[M];l>0&&d(N)?l>1?bt(N,l-1,d,g,w):zr(w,N):g||(w[w.length]=N)}return w}var zh=hS(),Ww=hS(!0);function Un(s,l){return s&&zh(s,l,gt)}function Gh(s,l){return s&&Ww(s,l,gt)}function Yl(s,l){return Ur(l,function(d){return ur(s[d])})}function Di(s,l){l=Kr(l,s);for(var d=0,g=l.length;s!=null&&d<g;)s=s[Gn(l[d++])];return d&&d==g?s:n}function Uw(s,l,d){var g=l(s);return Me(s)?g:zr(g,d(s))}function It(s){return s==null?s===n?Sl:Ci:Oi&&Oi in Ye(s)?UF(s):nV(s)}function Yh(s,l){return s>l}function lF(s,l){return s!=null&&ze.call(s,l)}function cF(s,l){return s!=null&&l in Ye(s)}function uF(s,l,d){return s>=At(l,d)&&s<mt(l,d)}function Hh(s,l,d){for(var g=d?Oh:Al,w=s[0].length,M=s.length,I=M,N=W(M),R=1/0,H=[];I--;){var q=s[I];I&&l&&(q=et(q,Xt(l))),R=At(q.length,R),N[I]=!d&&(l||w>=120&&q.length>=120)?new Ii(I&&q):n}q=s[0];var X=-1,ce=N[0];e:for(;++X<w&&H.length<R;){var ye=q[X],Te=l?l(ye):ye;if(ye=d||ye!==0?ye:0,!(ce?Fo(ce,Te):g(H,Te,d))){for(I=M;--I;){var _e=N[I];if(!(_e?Fo(_e,Te):g(s[I],Te,d)))continue e}ce&&ce.push(Te),H.push(ye)}}return H}function fF(s,l,d,g){return Un(s,function(w,M,I){l(g,d(w),M,I)}),g}function Ho(s,l,d){l=Kr(l,s),s=_S(s,l);var g=s==null?s:s[Gn(pn(l))];return g==null?n:Kt(g,s,d)}function zw(s){return ot(s)&&It(s)==z}function dF(s){return ot(s)&&It(s)==xe}function hF(s){return ot(s)&&It(s)==de}function qo(s,l,d,g,w){return s===l?!0:s==null||l==null||!ot(s)&&!ot(l)?s!==s&&l!==l:mF(s,l,d,g,qo,w)}function mF(s,l,d,g,w,M){var I=Me(s),N=Me(l),R=I?J:Mt(s),H=N?J:Mt(l);R=R==z?dt:R,H=H==z?dt:H;var q=R==dt,X=H==dt,ce=R==H;if(ce&&Zr(s)){if(!Zr(l))return!1;I=!0,q=!1}if(ce&&!q)return M||(M=new Tn),I||Rs(s)?TS(s,l,d,g,w,M):BF(s,l,R,d,g,w,M);if(!(d&S)){var ye=q&&ze.call(s,"__wrapped__"),Te=X&&ze.call(l,"__wrapped__");if(ye||Te){var _e=ye?s.value():s,Ee=Te?l.value():l;return M||(M=new Tn),w(_e,Ee,d,g,M)}}return ce?(M||(M=new Tn),WF(s,l,d,g,w,M)):!1}function pF(s){return ot(s)&&Mt(s)==De}function qh(s,l,d,g){var w=d.length,M=w,I=!g;if(s==null)return!M;for(s=Ye(s);w--;){var N=d[w];if(I&&N[2]?N[1]!==s[N[0]]:!(N[0]in s))return!1}for(;++w<M;){N=d[w];var R=N[0],H=s[R],q=N[1];if(I&&N[2]){if(H===n&&!(R in s))return!1}else{var X=new Tn;if(g)var ce=g(H,q,R,s,l,X);if(!(ce===n?qo(q,H,S|x,g,X):ce))return!1}}return!0}function Gw(s){if(!st(s)||ZF(s))return!1;var l=ur(s)?pj:sR;return l.test(ki(s))}function gF(s){return ot(s)&&It(s)==Pi}function yF(s){return ot(s)&&Mt(s)==qt}function vF(s){return ot(s)&&cc(s.length)&&!!Je[It(s)]}function Yw(s){return typeof s=="function"?s:s==null?Ut:typeof s=="object"?Me(s)?Kw(s[0],s[1]):qw(s):mT(s)}function Kh(s){if(!Zo(s))return wj(s);var l=[];for(var d in Ye(s))ze.call(s,d)&&d!="constructor"&&l.push(d);return l}function xF(s){if(!st(s))return tV(s);var l=Zo(s),d=[];for(var g in s)g=="constructor"&&(l||!ze.call(s,g))||d.push(g);return d}function Xh(s,l){return s<l}function Hw(s,l){var d=-1,g=Bt(s)?W(s.length):[];return Hr(s,function(w,M,I){g[++d]=l(w,M,I)}),g}function qw(s){var l=fm(s);return l.length==1&&l[0][2]?MS(l[0][0],l[0][1]):function(d){return d===s||qh(d,s,l)}}function Kw(s,l){return hm(s)&&AS(l)?MS(Gn(s),l):function(d){var g=Tm(d,s);return g===n&&g===l?Em(d,s):qo(l,g,S|x)}}function Hl(s,l,d,g,w){s!==l&&zh(l,function(M,I){if(w||(w=new Tn),st(M))bF(s,l,I,d,Hl,g,w);else{var N=g?g(pm(s,I),M,I+"",s,l,w):n;N===n&&(N=M),Wh(s,I,N)}},Wt)}function bF(s,l,d,g,w,M,I){var N=pm(s,d),R=pm(l,d),H=I.get(R);if(H){Wh(s,d,H);return}var q=M?M(N,R,d+"",s,l,I):n,X=q===n;if(X){var ce=Me(R),ye=!ce&&Zr(R),Te=!ce&&!ye&&Rs(R);q=R,ce||ye||Te?Me(N)?q=N:ct(N)?q=Vt(N):ye?(X=!1,q=aS(R,!0)):Te?(X=!1,q=lS(R,!0)):q=[]:Qo(R)||Li(R)?(q=N,Li(N)?q=iT(N):(!st(N)||ur(N))&&(q=PS(R))):X=!1}X&&(I.set(R,q),w(q,R,g,M,I),I.delete(R)),Wh(s,d,q)}function Xw(s,l){var d=s.length;if(d)return l+=l<0?d:0,cr(l,d)?s[l]:n}function Zw(s,l,d){l.length?l=et(l,function(M){return Me(M)?function(I){return Di(I,M.length===1?M[0]:M)}:M}):l=[Ut];var g=-1;l=et(l,Xt(be()));var w=Hw(s,function(M,I,N){var R=et(l,function(H){return H(M)});return{criteria:R,index:++g,value:M}});return HR(w,function(M,I){return DF(M,I,d)})}function wF(s,l){return Jw(s,l,function(d,g){return Em(s,g)})}function Jw(s,l,d){for(var g=-1,w=l.length,M={};++g<w;){var I=l[g],N=Di(s,I);d(N,I)&&Ko(M,Kr(I,s),N)}return M}function SF(s){return function(l){return Di(l,s)}}function Zh(s,l,d,g){var w=g?YR:Ps,M=-1,I=l.length,N=s;for(s===l&&(l=Vt(l)),d&&(N=et(s,Xt(d)));++M<I;)for(var R=0,H=l[M],q=d?d(H):H;(R=w(N,q,R,g))>-1;)N!==s&&Rl.call(N,R,1),Rl.call(s,R,1);return s}function Qw(s,l){for(var d=s?l.length:0,g=d-1;d--;){var w=l[d];if(d==g||w!==M){var M=w;cr(w)?Rl.call(s,w,1):tm(s,w)}}return s}function Jh(s,l){return s+Vl(Dw()*(l-s+1))}function TF(s,l,d,g){for(var w=-1,M=mt(Fl((l-s)/(d||1)),0),I=W(M);M--;)I[g?M:++w]=s,s+=d;return I}function Qh(s,l){var d="";if(!s||l<1||l>B)return d;do l%2&&(d+=s),l=Vl(l/2),l&&(s+=s);while(l);return d}function Ie(s,l){return gm(OS(s,l,Ut),s+"")}function EF(s){return Lw(js(s))}function CF(s,l){var d=js(s);return rc(d,$i(l,0,d.length))}function Ko(s,l,d,g){if(!st(s))return s;l=Kr(l,s);for(var w=-1,M=l.length,I=M-1,N=s;N!=null&&++w<M;){var R=Gn(l[w]),H=d;if(R==="__proto__"||R==="constructor"||R==="prototype")return s;if(w!=I){var q=N[R];H=g?g(q,R,N):n,H===n&&(H=st(q)?q:cr(l[w+1])?[]:{})}Go(N,R,H),N=N[R]}return s}var eS=Bl?function(s,l){return Bl.set(s,l),s}:Ut,PF=jl?function(s,l){return jl(s,"toString",{configurable:!0,enumerable:!1,value:Pm(l),writable:!0})}:Ut;function AF(s){return rc(js(s))}function mn(s,l,d){var g=-1,w=s.length;l<0&&(l=-l>w?0:w+l),d=d>w?w:d,d<0&&(d+=w),w=l>d?0:d-l>>>0,l>>>=0;for(var M=W(w);++g<w;)M[g]=s[g+l];return M}function MF(s,l){var d;return Hr(s,function(g,w,M){return d=l(g,w,M),!d}),!!d}function ql(s,l,d){var g=0,w=s==null?g:s.length;if(typeof l=="number"&&l===l&&w<=ae){for(;g<w;){var M=g+w>>>1,I=s[M];I!==null&&!Jt(I)&&(d?I<=l:I<l)?g=M+1:w=M}return w}return em(s,l,Ut,d)}function em(s,l,d,g){var w=0,M=s==null?0:s.length;if(M===0)return 0;l=d(l);for(var I=l!==l,N=l===null,R=Jt(l),H=l===n;w<M;){var q=Vl((w+M)/2),X=d(s[q]),ce=X!==n,ye=X===null,Te=X===X,_e=Jt(X);if(I)var Ee=g||Te;else H?Ee=Te&&(g||ce):N?Ee=Te&&ce&&(g||!ye):R?Ee=Te&&ce&&!ye&&(g||!_e):ye||_e?Ee=!1:Ee=g?X<=l:X<l;Ee?w=q+1:M=q}return At(M,K)}function tS(s,l){for(var d=-1,g=s.length,w=0,M=[];++d<g;){var I=s[d],N=l?l(I):I;if(!d||!En(N,R)){var R=N;M[w++]=I===0?0:I}}return M}function nS(s){return typeof s=="number"?s:Jt(s)?O:+s}function Zt(s){if(typeof s=="string")return s;if(Me(s))return et(s,Zt)+"";if(Jt(s))return Nw?Nw.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function qr(s,l,d){var g=-1,w=Al,M=s.length,I=!0,N=[],R=N;if(d)I=!1,w=Oh;else if(M>=i){var H=l?null:FF(s);if(H)return Ol(H);I=!1,w=Fo,R=new Ii}else R=l?[]:N;e:for(;++g<M;){var q=s[g],X=l?l(q):q;if(q=d||q!==0?q:0,I&&X===X){for(var ce=R.length;ce--;)if(R[ce]===X)continue e;l&&R.push(X),N.push(q)}else w(R,X,d)||(R!==N&&R.push(X),N.push(q))}return N}function tm(s,l){return l=Kr(l,s),s=_S(s,l),s==null||delete s[Gn(pn(l))]}function rS(s,l,d,g){return Ko(s,l,d(Di(s,l)),g)}function Kl(s,l,d,g){for(var w=s.length,M=g?w:-1;(g?M--:++M<w)&&l(s[M],M,s););return d?mn(s,g?0:M,g?M+1:w):mn(s,g?M+1:0,g?w:M)}function iS(s,l){var d=s;return d instanceof ke&&(d=d.value()),_h(l,function(g,w){return w.func.apply(w.thisArg,zr([g],w.args))},d)}function nm(s,l,d){var g=s.length;if(g<2)return g?qr(s[0]):[];for(var w=-1,M=W(g);++w<g;)for(var I=s[w],N=-1;++N<g;)N!=w&&(M[w]=Yo(M[w]||I,s[N],l,d));return qr(bt(M,1),l,d)}function sS(s,l,d){for(var g=-1,w=s.length,M=l.length,I={};++g<w;){var N=g<M?l[g]:n;d(I,s[g],N)}return I}function rm(s){return ct(s)?s:[]}function im(s){return typeof s=="function"?s:Ut}function Kr(s,l){return Me(s)?s:hm(s,l)?[s]:NS(Be(s))}var OF=Ie;function Xr(s,l,d){var g=s.length;return d=d===n?g:d,!l&&d>=g?s:mn(s,l,d)}var oS=gj||function(s){return xt.clearTimeout(s)};function aS(s,l){if(l)return s.slice();var d=s.length,g=Mw?Mw(d):new s.constructor(d);return s.copy(g),g}function sm(s){var l=new s.constructor(s.byteLength);return new kl(l).set(new kl(s)),l}function _F(s,l){var d=l?sm(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.byteLength)}function IF(s){var l=new s.constructor(s.source,z2.exec(s));return l.lastIndex=s.lastIndex,l}function $F(s){return zo?Ye(zo.call(s)):{}}function lS(s,l){var d=l?sm(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.length)}function cS(s,l){if(s!==l){var d=s!==n,g=s===null,w=s===s,M=Jt(s),I=l!==n,N=l===null,R=l===l,H=Jt(l);if(!N&&!H&&!M&&s>l||M&&I&&R&&!N&&!H||g&&I&&R||!d&&R||!w)return 1;if(!g&&!M&&!H&&s<l||H&&d&&w&&!g&&!M||N&&d&&w||!I&&w||!R)return-1}return 0}function DF(s,l,d){for(var g=-1,w=s.criteria,M=l.criteria,I=w.length,N=d.length;++g<I;){var R=cS(w[g],M[g]);if(R){if(g>=N)return R;var H=d[g];return R*(H=="desc"?-1:1)}}return s.index-l.index}function uS(s,l,d,g){for(var w=-1,M=s.length,I=d.length,N=-1,R=l.length,H=mt(M-I,0),q=W(R+H),X=!g;++N<R;)q[N]=l[N];for(;++w<I;)(X||w<M)&&(q[d[w]]=s[w]);for(;H--;)q[N++]=s[w++];return q}function fS(s,l,d,g){for(var w=-1,M=s.length,I=-1,N=d.length,R=-1,H=l.length,q=mt(M-N,0),X=W(q+H),ce=!g;++w<q;)X[w]=s[w];for(var ye=w;++R<H;)X[ye+R]=l[R];for(;++I<N;)(ce||w<M)&&(X[ye+d[I]]=s[w++]);return X}function Vt(s,l){var d=-1,g=s.length;for(l||(l=W(g));++d<g;)l[d]=s[d];return l}function zn(s,l,d,g){var w=!d;d||(d={});for(var M=-1,I=l.length;++M<I;){var N=l[M],R=g?g(d[N],s[N],N,d,s):n;R===n&&(R=s[N]),w?or(d,N,R):Go(d,N,R)}return d}function NF(s,l){return zn(s,dm(s),l)}function kF(s,l){return zn(s,ES(s),l)}function Xl(s,l){return function(d,g){var w=Me(d)?VR:rF,M=l?l():{};return w(d,s,be(g,2),M)}}function Ns(s){return Ie(function(l,d){var g=-1,w=d.length,M=w>1?d[w-1]:n,I=w>2?d[2]:n;for(M=s.length>3&&typeof M=="function"?(w--,M):n,I&&$t(d[0],d[1],I)&&(M=w<3?n:M,w=1),l=Ye(l);++g<w;){var N=d[g];N&&s(l,N,g,M)}return l})}function dS(s,l){return function(d,g){if(d==null)return d;if(!Bt(d))return s(d,g);for(var w=d.length,M=l?w:-1,I=Ye(d);(l?M--:++M<w)&&g(I[M],M,I)!==!1;);return d}}function hS(s){return function(l,d,g){for(var w=-1,M=Ye(l),I=g(l),N=I.length;N--;){var R=I[s?N:++w];if(d(M[R],R,M)===!1)break}return l}}function LF(s,l,d){var g=l&T,w=Xo(s);function M(){var I=this&&this!==xt&&this instanceof M?w:s;return I.apply(g?d:this,arguments)}return M}function mS(s){return function(l){l=Be(l);var d=As(l)?Sn(l):n,g=d?d[0]:l.charAt(0),w=d?Xr(d,1).join(""):l.slice(1);return g[s]()+w}}function ks(s){return function(l){return _h(dT(fT(l).replace(PR,"")),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 d=Ds(s.prototype),g=s.apply(d,l);return st(g)?g:d}}function RF(s,l,d){var g=Xo(s);function w(){for(var M=arguments.length,I=W(M),N=M,R=Ls(w);N--;)I[N]=arguments[N];var H=M<3&&I[0]!==R&&I[M-1]!==R?[]:Gr(I,R);if(M-=H.length,M<d)return xS(s,l,Zl,w.placeholder,n,I,H,n,n,d-M);var q=this&&this!==xt&&this instanceof w?g:s;return Kt(q,this,I)}return w}function pS(s){return function(l,d,g){var w=Ye(l);if(!Bt(l)){var M=be(d,3);l=gt(l),d=function(N){return M(w[N],N,w)}}var I=s(l,d,g);return I>-1?w[M?l[I]:I]:n}}function gS(s){return lr(function(l){var d=l.length,g=d,w=dn.prototype.thru;for(s&&l.reverse();g--;){var M=l[g];if(typeof M!="function")throw new fn(a);if(w&&!I&&tc(M)=="wrapper")var I=new dn([],!0)}for(g=I?g:d;++g<d;){M=l[g];var N=tc(M),R=N=="wrapper"?um(M):n;R&&mm(R[0])&&R[1]==(j|E|C|F)&&!R[4].length&&R[9]==1?I=I[tc(R[0])].apply(I,R[3]):I=M.length==1&&mm(M)?I[N]():I.thru(M)}return function(){var H=arguments,q=H[0];if(I&&H.length==1&&Me(q))return I.plant(q).value();for(var X=0,ce=d?l[X].apply(this,H):q;++X<d;)ce=l[X].call(this,ce);return ce}})}function Zl(s,l,d,g,w,M,I,N,R,H){var q=l&j,X=l&T,ce=l&b,ye=l&(E|$),Te=l&U,_e=ce?n:Xo(s);function Ee(){for(var Ne=arguments.length,Le=W(Ne),Qt=Ne;Qt--;)Le[Qt]=arguments[Qt];if(ye)var Dt=Ls(Ee),en=KR(Le,Dt);if(g&&(Le=uS(Le,g,w,ye)),M&&(Le=fS(Le,M,I,ye)),Ne-=en,ye&&Ne<H){var ut=Gr(Le,Dt);return xS(s,l,Zl,Ee.placeholder,d,Le,ut,N,R,H-Ne)}var Cn=X?d:this,dr=ce?Cn[s]:s;return Ne=Le.length,N?Le=rV(Le,N):Te&&Ne>1&&Le.reverse(),q&&R<Ne&&(Le.length=R),this&&this!==xt&&this instanceof Ee&&(dr=_e||Xo(dr)),dr.apply(Cn,Le)}return Ee}function yS(s,l){return function(d,g){return fF(d,s,l(g),{})}}function Jl(s,l){return function(d,g){var w;if(d===n&&g===n)return l;if(d!==n&&(w=d),g!==n){if(w===n)return g;typeof d=="string"||typeof g=="string"?(d=Zt(d),g=Zt(g)):(d=nS(d),g=nS(g)),w=s(d,g)}return w}}function om(s){return lr(function(l){return l=et(l,Xt(be())),Ie(function(d){var g=this;return s(l,function(w){return Kt(w,g,d)})})})}function Ql(s,l){l=l===n?" ":Zt(l);var d=l.length;if(d<2)return d?Qh(l,s):l;var g=Qh(l,Fl(s/Ms(l)));return As(l)?Xr(Sn(g),0,s).join(""):g.slice(0,s)}function jF(s,l,d,g){var w=l&T,M=Xo(s);function I(){for(var N=-1,R=arguments.length,H=-1,q=g.length,X=W(q+R),ce=this&&this!==xt&&this instanceof I?M:s;++H<q;)X[H]=g[H];for(;R--;)X[H++]=arguments[++N];return Kt(ce,w?d:this,X)}return I}function vS(s){return function(l,d,g){return g&&typeof g!="number"&&$t(l,d,g)&&(d=g=n),l=fr(l),d===n?(d=l,l=0):d=fr(d),g=g===n?l<d?1:-1:fr(g),TF(l,d,g,s)}}function ec(s){return function(l,d){return typeof l=="string"&&typeof d=="string"||(l=gn(l),d=gn(d)),s(l,d)}}function xS(s,l,d,g,w,M,I,N,R,H){var q=l&E,X=q?I:n,ce=q?n:I,ye=q?M:n,Te=q?n:M;l|=q?C:D,l&=~(q?D:C),l&A||(l&=-4);var _e=[s,l,w,ye,X,Te,ce,N,R,H],Ee=d.apply(n,_e);return mm(s)&&IS(Ee,_e),Ee.placeholder=g,$S(Ee,s,l)}function am(s){var l=ht[s];return function(d,g){if(d=gn(d),g=g==null?0:At(Oe(g),292),g&&$w(d)){var w=(Be(d)+"e").split("e"),M=l(w[0]+"e"+(+w[1]+g));return w=(Be(M)+"e").split("e"),+(w[0]+"e"+(+w[1]-g))}return l(d)}}var FF=Is&&1/Ol(new Is([,-0]))[1]==V?function(s){return new Is(s)}:Om;function bS(s){return function(l){var d=Mt(l);return d==De?Rh(l):d==qt?nj(l):qR(l,s(l))}}function ar(s,l,d,g,w,M,I,N){var R=l&b;if(!R&&typeof s!="function")throw new fn(a);var H=g?g.length:0;if(H||(l&=-97,g=w=n),I=I===n?I:mt(Oe(I),0),N=N===n?N:Oe(N),H-=w?w.length:0,l&D){var q=g,X=w;g=w=n}var ce=R?n:um(s),ye=[s,l,d,g,w,q,X,M,I,N];if(ce&&eV(ye,ce),s=ye[0],l=ye[1],d=ye[2],g=ye[3],w=ye[4],N=ye[9]=ye[9]===n?R?0:s.length:mt(ye[9]-H,0),!N&&l&(E|$)&&(l&=-25),!l||l==T)var Te=LF(s,l,d);else l==E||l==$?Te=RF(s,l,N):(l==C||l==(T|C))&&!w.length?Te=jF(s,l,d,g):Te=Zl.apply(n,ye);var _e=ce?eS:IS;return $S(_e(Te,ye),s,l)}function wS(s,l,d,g){return s===n||En(s,_s[d])&&!ze.call(g,d)?l:s}function SS(s,l,d,g,w,M){return st(s)&&st(l)&&(M.set(l,s),Hl(s,l,n,SS,M),M.delete(l)),s}function VF(s){return Qo(s)?n:s}function TS(s,l,d,g,w,M){var I=d&S,N=s.length,R=l.length;if(N!=R&&!(I&&R>N))return!1;var H=M.get(s),q=M.get(l);if(H&&q)return H==l&&q==s;var X=-1,ce=!0,ye=d&x?new Ii:n;for(M.set(s,l),M.set(l,s);++X<N;){var Te=s[X],_e=l[X];if(g)var Ee=I?g(_e,Te,X,l,s,M):g(Te,_e,X,s,l,M);if(Ee!==n){if(Ee)continue;ce=!1;break}if(ye){if(!Ih(l,function(Ne,Le){if(!Fo(ye,Le)&&(Te===Ne||w(Te,Ne,d,g,M)))return ye.push(Le)})){ce=!1;break}}else if(!(Te===_e||w(Te,_e,d,g,M))){ce=!1;break}}return M.delete(s),M.delete(l),ce}function BF(s,l,d,g,w,M,I){switch(d){case Qe:if(s.byteLength!=l.byteLength||s.byteOffset!=l.byteOffset)return!1;s=s.buffer,l=l.buffer;case xe:return!(s.byteLength!=l.byteLength||!M(new kl(s),new kl(l)));case re:case de:case ft:return En(+s,+l);case Ve:return s.name==l.name&&s.message==l.message;case Pi:case bn:return s==l+"";case De:var N=Rh;case qt:var R=g&S;if(N||(N=Ol),s.size!=l.size&&!R)return!1;var H=I.get(s);if(H)return H==l;g|=x,I.set(s,l);var q=TS(N(s),N(l),g,w,M,I);return I.delete(s),q;case Ai:if(zo)return zo.call(s)==zo.call(l)}return!1}function WF(s,l,d,g,w,M){var I=d&S,N=lm(s),R=N.length,H=lm(l),q=H.length;if(R!=q&&!I)return!1;for(var X=R;X--;){var ce=N[X];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 _e=!0;M.set(s,l),M.set(l,s);for(var Ee=I;++X<R;){ce=N[X];var Ne=s[ce],Le=l[ce];if(g)var Qt=I?g(Le,Ne,ce,l,s,M):g(Ne,Le,ce,s,l,M);if(!(Qt===n?Ne===Le||w(Ne,Le,d,g,M):Qt)){_e=!1;break}Ee||(Ee=ce=="constructor")}if(_e&&!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)&&(_e=!1)}return M.delete(s),M.delete(l),_e}function lr(s){return gm(OS(s,n,jS),s+"")}function lm(s){return Uw(s,gt,dm)}function cm(s){return Uw(s,Wt,ES)}var um=Bl?function(s){return Bl.get(s)}:Om;function tc(s){for(var l=s.name+"",d=$s[l],g=ze.call($s,l)?d.length:0;g--;){var w=d[g],M=w.func;if(M==null||M==s)return w.name}return l}function Ls(s){var l=ze.call(P,"placeholder")?P:s;return l.placeholder}function be(){var s=P.iteratee||Am;return s=s===Am?Yw:s,arguments.length?s(arguments[0],arguments[1]):s}function nc(s,l){var d=s.__data__;return XF(l)?d[typeof l=="string"?"string":"hash"]:d.map}function fm(s){for(var l=gt(s),d=l.length;d--;){var g=l[d],w=s[g];l[d]=[g,w,AS(w)]}return l}function Ni(s,l){var d=QR(s,l);return Gw(d)?d:n}function UF(s){var l=ze.call(s,Oi),d=s[Oi];try{s[Oi]=n;var g=!0}catch{}var w=Dl.call(s);return g&&(l?s[Oi]=d:delete s[Oi]),w}var dm=Fh?function(s){return s==null?[]:(s=Ye(s),Ur(Fh(s),function(l){return _w.call(s,l)}))}:_m,ES=Fh?function(s){for(var l=[];s;)zr(l,dm(s)),s=Ll(s);return l}:_m,Mt=It;(Vh&&Mt(new Vh(new ArrayBuffer(1)))!=Qe||Bo&&Mt(new Bo)!=De||Bh&&Mt(Bh.resolve())!=bl||Is&&Mt(new Is)!=qt||Wo&&Mt(new Wo)!=Wr)&&(Mt=function(s){var l=It(s),d=l==dt?s.constructor:n,g=d?ki(d):"";if(g)switch(g){case Cj:return Qe;case Pj:return De;case Aj:return bl;case Mj:return qt;case Oj:return Wr}return l});function zF(s,l,d){for(var g=-1,w=d.length;++g<w;){var M=d[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 GF(s){var l=s.match(ZL);return l?l[1].split(JL):[]}function CS(s,l,d){l=Kr(l,s);for(var g=-1,w=l.length,M=!1;++g<w;){var I=Gn(l[g]);if(!(M=s!=null&&d(s,I)))break;s=s[I]}return M||++g!=w?M:(w=s==null?0:s.length,!!w&&cc(w)&&cr(I,w)&&(Me(s)||Li(s)))}function YF(s){var l=s.length,d=new s.constructor(l);return l&&typeof s[0]=="string"&&ze.call(s,"index")&&(d.index=s.index,d.input=s.input),d}function PS(s){return typeof s.constructor=="function"&&!Zo(s)?Ds(Ll(s)):{}}function HF(s,l,d){var g=s.constructor;switch(l){case xe:return sm(s);case re:case de:return new g(+s);case Qe:return _F(s,d);case Pt:case wn:case rr:case mh:case ph:case gh:case yh:case vh:case xh:return lS(s,d);case De:return new g;case ft:case bn:return new g(s);case Pi:return IF(s);case qt:return new g;case Ai:return $F(s)}}function qF(s,l){var d=l.length;if(!d)return s;var g=d-1;return l[g]=(d>1?"& ":"")+l[g],l=l.join(d>2?", ":" "),s.replace(XL,`{
632
+ */var yI=po.exports,Av;function vI(){return Av||(Av=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__",f=500,h="__lodash_placeholder__",m=1,p=2,v=4,S=1,x=2,T=1,b=2,A=4,E=8,$=16,C=32,D=64,j=128,F=256,U=512,Z=30,ee="...",se=800,ge=16,ue=1,fe=2,he=3,V=1/0,B=9007199254740991,Y=17976931348623157e292,O=NaN,k=4294967295,K=k-1,ae=k>>>1,le=[["ary",j],["bind",T],["bindKey",b],["curry",E],["curryRight",$],["flip",U],["partial",C],["partialRight",D],["rearg",F]],z="[object Arguments]",J="[object Array]",oe="[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]",Ci="[object Null]",dt="[object Object]",bl="[object Promise]",wl="[object Proxy]",Pi="[object RegExp]",qt="[object Set]",bn="[object String]",Ai="[object Symbol]",Sl="[object Undefined]",Wr="[object WeakMap]",Tl="[object WeakSet]",xe="[object ArrayBuffer]",Qe="[object DataView]",Pt="[object Float32Array]",wn="[object Float64Array]",rr="[object Int8Array]",mh="[object Int16Array]",ph="[object Int32Array]",gh="[object Uint8Array]",yh="[object Uint8ClampedArray]",vh="[object Uint16Array]",xh="[object Uint32Array]",jL=/\b__p \+= '';/g,FL=/\b(__p \+=) '' \+/g,VL=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W2=/&(?:amp|lt|gt|quot|#39);/g,U2=/[&<>"']/g,BL=RegExp(W2.source),WL=RegExp(U2.source),UL=/<%-([\s\S]+?)%>/g,zL=/<%([\s\S]+?)%>/g,z2=/<%=([\s\S]+?)%>/g,GL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,YL=/^\w*$/,HL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bh=/[\\^$.*+?()[\]{}|]/g,qL=RegExp(bh.source),wh=/^\s+/,KL=/\s/,XL=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ZL=/\{\n\/\* \[wrapped with (.+)\] \*/,JL=/,? & /,QL=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,eR=/[()=,{}\[\]\/\s]/,tR=/\\(\\)?/g,nR=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,G2=/\w*$/,rR=/^[-+]0x[0-9a-f]+$/i,iR=/^0b[01]+$/i,sR=/^\[object .+?Constructor\]$/,oR=/^0o[0-7]+$/i,aR=/^(?:0|[1-9]\d*)$/,lR=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,El=/($^)/,cR=/['\n\r\u2028\u2029\\]/g,Cl="\\ud800-\\udfff",uR="\\u0300-\\u036f",fR="\\ufe20-\\ufe2f",dR="\\u20d0-\\u20ff",Y2=uR+fR+dR,H2="\\u2700-\\u27bf",q2="a-z\\xdf-\\xf6\\xf8-\\xff",hR="\\xac\\xb1\\xd7\\xf7",mR="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pR="\\u2000-\\u206f",gR=" \\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",K2="A-Z\\xc0-\\xd6\\xd8-\\xde",X2="\\ufe0e\\ufe0f",Z2=hR+mR+pR+gR,Sh="['’]",yR="["+Cl+"]",J2="["+Z2+"]",Pl="["+Y2+"]",Q2="\\d+",vR="["+H2+"]",ew="["+q2+"]",tw="[^"+Cl+Z2+Q2+H2+q2+K2+"]",Th="\\ud83c[\\udffb-\\udfff]",xR="(?:"+Pl+"|"+Th+")",nw="[^"+Cl+"]",Eh="(?:\\ud83c[\\udde6-\\uddff]){2}",Ch="[\\ud800-\\udbff][\\udc00-\\udfff]",Cs="["+K2+"]",rw="\\u200d",iw="(?:"+ew+"|"+tw+")",bR="(?:"+Cs+"|"+tw+")",sw="(?:"+Sh+"(?:d|ll|m|re|s|t|ve))?",ow="(?:"+Sh+"(?:D|LL|M|RE|S|T|VE))?",aw=xR+"?",lw="["+X2+"]?",wR="(?:"+rw+"(?:"+[nw,Eh,Ch].join("|")+")"+lw+aw+")*",SR="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",TR="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",cw=lw+aw+wR,ER="(?:"+[vR,Eh,Ch].join("|")+")"+cw,CR="(?:"+[nw+Pl+"?",Pl,Eh,Ch,yR].join("|")+")",PR=RegExp(Sh,"g"),AR=RegExp(Pl,"g"),Ph=RegExp(Th+"(?="+Th+")|"+CR+cw,"g"),MR=RegExp([Cs+"?"+ew+"+"+sw+"(?="+[J2,Cs,"$"].join("|")+")",bR+"+"+ow+"(?="+[J2,Cs+iw,"$"].join("|")+")",Cs+"?"+iw+"+"+sw,Cs+"+"+ow,TR,SR,Q2,ER].join("|"),"g"),OR=RegExp("["+rw+Cl+Y2+X2+"]"),_R=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,IR=["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"],$R=-1,Je={};Je[Pt]=Je[wn]=Je[rr]=Je[mh]=Je[ph]=Je[gh]=Je[yh]=Je[vh]=Je[xh]=!0,Je[z]=Je[J]=Je[xe]=Je[re]=Je[Qe]=Je[de]=Je[Ve]=Je[ie]=Je[De]=Je[ft]=Je[dt]=Je[Pi]=Je[qt]=Je[bn]=Je[Wr]=!1;var Xe={};Xe[z]=Xe[J]=Xe[xe]=Xe[Qe]=Xe[re]=Xe[de]=Xe[Pt]=Xe[wn]=Xe[rr]=Xe[mh]=Xe[ph]=Xe[De]=Xe[ft]=Xe[dt]=Xe[Pi]=Xe[qt]=Xe[bn]=Xe[Ai]=Xe[gh]=Xe[yh]=Xe[vh]=Xe[xh]=!0,Xe[Ve]=Xe[ie]=Xe[Wr]=!1;var DR={À:"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"},NR={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},kR={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},LR={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},RR=parseFloat,jR=parseInt,uw=typeof ea=="object"&&ea&&ea.Object===Object&&ea,FR=typeof self=="object"&&self&&self.Object===Object&&self,xt=uw||FR||Function("return this")(),Ah=t&&!t.nodeType&&t,Mi=Ah&&!0&&e&&!e.nodeType&&e,fw=Mi&&Mi.exports===Ah,Mh=fw&&uw.process,cn=function(){try{var L=Mi&&Mi.require&&Mi.require("util").types;return L||Mh&&Mh.binding&&Mh.binding("util")}catch{}}(),dw=cn&&cn.isArrayBuffer,hw=cn&&cn.isDate,mw=cn&&cn.isMap,pw=cn&&cn.isRegExp,gw=cn&&cn.isSet,yw=cn&&cn.isTypedArray;function Kt(L,G,W){switch(W.length){case 0:return L.call(G);case 1:return L.call(G,W[0]);case 2:return L.call(G,W[0],W[1]);case 3:return L.call(G,W[0],W[1],W[2])}return L.apply(G,W)}function VR(L,G,W,me){for(var Ae=-1,Re=L==null?0:L.length;++Ae<Re;){var ht=L[Ae];G(me,ht,W(ht),L)}return me}function un(L,G){for(var W=-1,me=L==null?0:L.length;++W<me&&G(L[W],W,L)!==!1;);return L}function BR(L,G){for(var W=L==null?0:L.length;W--&&G(L[W],W,L)!==!1;);return L}function vw(L,G){for(var W=-1,me=L==null?0:L.length;++W<me;)if(!G(L[W],W,L))return!1;return!0}function Ur(L,G){for(var W=-1,me=L==null?0:L.length,Ae=0,Re=[];++W<me;){var ht=L[W];G(ht,W,L)&&(Re[Ae++]=ht)}return Re}function Al(L,G){var W=L==null?0:L.length;return!!W&&Ps(L,G,0)>-1}function Oh(L,G,W){for(var me=-1,Ae=L==null?0:L.length;++me<Ae;)if(W(G,L[me]))return!0;return!1}function et(L,G){for(var W=-1,me=L==null?0:L.length,Ae=Array(me);++W<me;)Ae[W]=G(L[W],W,L);return Ae}function zr(L,G){for(var W=-1,me=G.length,Ae=L.length;++W<me;)L[Ae+W]=G[W];return L}function _h(L,G,W,me){var Ae=-1,Re=L==null?0:L.length;for(me&&Re&&(W=L[++Ae]);++Ae<Re;)W=G(W,L[Ae],Ae,L);return W}function WR(L,G,W,me){var Ae=L==null?0:L.length;for(me&&Ae&&(W=L[--Ae]);Ae--;)W=G(W,L[Ae],Ae,L);return W}function Ih(L,G){for(var W=-1,me=L==null?0:L.length;++W<me;)if(G(L[W],W,L))return!0;return!1}var UR=$h("length");function zR(L){return L.split("")}function GR(L){return L.match(QL)||[]}function xw(L,G,W){var me;return W(L,function(Ae,Re,ht){if(G(Ae,Re,ht))return me=Re,!1}),me}function Ml(L,G,W,me){for(var Ae=L.length,Re=W+(me?1:-1);me?Re--:++Re<Ae;)if(G(L[Re],Re,L))return Re;return-1}function Ps(L,G,W){return G===G?rj(L,G,W):Ml(L,bw,W)}function YR(L,G,W,me){for(var Ae=W-1,Re=L.length;++Ae<Re;)if(me(L[Ae],G))return Ae;return-1}function bw(L){return L!==L}function ww(L,G){var W=L==null?0:L.length;return W?Nh(L,G)/W:O}function $h(L){return function(G){return G==null?n:G[L]}}function Dh(L){return function(G){return L==null?n:L[G]}}function Sw(L,G,W,me,Ae){return Ae(L,function(Re,ht,Ye){W=me?(me=!1,Re):G(W,Re,ht,Ye)}),W}function HR(L,G){var W=L.length;for(L.sort(G);W--;)L[W]=L[W].value;return L}function Nh(L,G){for(var W,me=-1,Ae=L.length;++me<Ae;){var Re=G(L[me]);Re!==n&&(W=W===n?Re:W+Re)}return W}function kh(L,G){for(var W=-1,me=Array(L);++W<L;)me[W]=G(W);return me}function qR(L,G){return et(G,function(W){return[W,L[W]]})}function Tw(L){return L&&L.slice(0,Aw(L)+1).replace(wh,"")}function Xt(L){return function(G){return L(G)}}function Lh(L,G){return et(G,function(W){return L[W]})}function Fo(L,G){return L.has(G)}function Ew(L,G){for(var W=-1,me=L.length;++W<me&&Ps(G,L[W],0)>-1;);return W}function Cw(L,G){for(var W=L.length;W--&&Ps(G,L[W],0)>-1;);return W}function KR(L,G){for(var W=L.length,me=0;W--;)L[W]===G&&++me;return me}var XR=Dh(DR),ZR=Dh(NR);function JR(L){return"\\"+LR[L]}function QR(L,G){return L==null?n:L[G]}function As(L){return OR.test(L)}function ej(L){return _R.test(L)}function tj(L){for(var G,W=[];!(G=L.next()).done;)W.push(G.value);return W}function Rh(L){var G=-1,W=Array(L.size);return L.forEach(function(me,Ae){W[++G]=[Ae,me]}),W}function Pw(L,G){return function(W){return L(G(W))}}function Gr(L,G){for(var W=-1,me=L.length,Ae=0,Re=[];++W<me;){var ht=L[W];(ht===G||ht===h)&&(L[W]=h,Re[Ae++]=W)}return Re}function Ol(L){var G=-1,W=Array(L.size);return L.forEach(function(me){W[++G]=me}),W}function nj(L){var G=-1,W=Array(L.size);return L.forEach(function(me){W[++G]=[me,me]}),W}function rj(L,G,W){for(var me=W-1,Ae=L.length;++me<Ae;)if(L[me]===G)return me;return-1}function ij(L,G,W){for(var me=W+1;me--;)if(L[me]===G)return me;return me}function Ms(L){return As(L)?oj(L):UR(L)}function Sn(L){return As(L)?aj(L):zR(L)}function Aw(L){for(var G=L.length;G--&&KL.test(L.charAt(G)););return G}var sj=Dh(kR);function oj(L){for(var G=Ph.lastIndex=0;Ph.test(L);)++G;return G}function aj(L){return L.match(Ph)||[]}function lj(L){return L.match(MR)||[]}var cj=function L(G){G=G==null?xt:Os.defaults(xt.Object(),G,Os.pick(xt,IR));var W=G.Array,me=G.Date,Ae=G.Error,Re=G.Function,ht=G.Math,Ye=G.Object,jh=G.RegExp,uj=G.String,fn=G.TypeError,_l=W.prototype,fj=Re.prototype,_s=Ye.prototype,Il=G["__core-js_shared__"],$l=fj.toString,ze=_s.hasOwnProperty,dj=0,Mw=function(){var s=/[^.]+$/.exec(Il&&Il.keys&&Il.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Dl=_s.toString,hj=$l.call(Ye),mj=xt._,pj=jh("^"+$l.call(ze).replace(bh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nl=fw?G.Buffer:n,Yr=G.Symbol,kl=G.Uint8Array,Ow=Nl?Nl.allocUnsafe:n,Ll=Pw(Ye.getPrototypeOf,Ye),_w=Ye.create,Iw=_s.propertyIsEnumerable,Rl=_l.splice,$w=Yr?Yr.isConcatSpreadable:n,Vo=Yr?Yr.iterator:n,Oi=Yr?Yr.toStringTag:n,jl=function(){try{var s=Ni(Ye,"defineProperty");return s({},"",{}),s}catch{}}(),gj=G.clearTimeout!==xt.clearTimeout&&G.clearTimeout,yj=me&&me.now!==xt.Date.now&&me.now,vj=G.setTimeout!==xt.setTimeout&&G.setTimeout,Fl=ht.ceil,Vl=ht.floor,Fh=Ye.getOwnPropertySymbols,xj=Nl?Nl.isBuffer:n,Dw=G.isFinite,bj=_l.join,wj=Pw(Ye.keys,Ye),mt=ht.max,At=ht.min,Sj=me.now,Tj=G.parseInt,Nw=ht.random,Ej=_l.reverse,Vh=Ni(G,"DataView"),Bo=Ni(G,"Map"),Bh=Ni(G,"Promise"),Is=Ni(G,"Set"),Wo=Ni(G,"WeakMap"),Uo=Ni(Ye,"create"),Bl=Wo&&new Wo,$s={},Cj=ki(Vh),Pj=ki(Bo),Aj=ki(Bh),Mj=ki(Is),Oj=ki(Wo),Wl=Yr?Yr.prototype:n,zo=Wl?Wl.valueOf:n,kw=Wl?Wl.toString:n;function P(s){if(ot(s)&&!Me(s)&&!(s instanceof ke)){if(s instanceof dn)return s;if(ze.call(s,"__wrapped__"))return LS(s)}return new dn(s)}var Ds=function(){function s(){}return function(l){if(!st(l))return{};if(_w)return _w(l);s.prototype=l;var d=new s;return s.prototype=n,d}}();function Ul(){}function dn(s,l){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}P.templateSettings={escape:UL,evaluate:zL,interpolate:z2,variable:"",imports:{_:P}},P.prototype=Ul.prototype,P.prototype.constructor=P,dn.prototype=Ds(Ul.prototype),dn.prototype.constructor=dn;function ke(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=k,this.__views__=[]}function _j(){var s=new ke(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 Ij(){if(this.__filtered__){var s=new ke(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function $j(){var s=this.__wrapped__.value(),l=this.__dir__,d=Me(s),g=l<0,w=d?s.length:0,M=zF(0,w,this.__views__),I=M.start,N=M.end,R=N-I,H=g?N:I-1,q=this.__iteratees__,X=q.length,ce=0,ye=At(R,this.__takeCount__);if(!d||!g&&w==R&&ye==R)return sS(s,this.__actions__);var Te=[];e:for(;R--&&ce<ye;){H+=l;for(var _e=-1,Ee=s[H];++_e<X;){var Ne=q[_e],Le=Ne.iteratee,Qt=Ne.type,Dt=Le(Ee);if(Qt==fe)Ee=Dt;else if(!Dt){if(Qt==ue)continue e;break e}}Te[ce++]=Ee}return Te}ke.prototype=Ds(Ul.prototype),ke.prototype.constructor=ke;function _i(s){var l=-1,d=s==null?0:s.length;for(this.clear();++l<d;){var g=s[l];this.set(g[0],g[1])}}function Dj(){this.__data__=Uo?Uo(null):{},this.size=0}function Nj(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function kj(s){var l=this.__data__;if(Uo){var d=l[s];return d===u?n:d}return ze.call(l,s)?l[s]:n}function Lj(s){var l=this.__data__;return Uo?l[s]!==n:ze.call(l,s)}function Rj(s,l){var d=this.__data__;return this.size+=this.has(s)?0:1,d[s]=Uo&&l===n?u:l,this}_i.prototype.clear=Dj,_i.prototype.delete=Nj,_i.prototype.get=kj,_i.prototype.has=Lj,_i.prototype.set=Rj;function ir(s){var l=-1,d=s==null?0:s.length;for(this.clear();++l<d;){var g=s[l];this.set(g[0],g[1])}}function jj(){this.__data__=[],this.size=0}function Fj(s){var l=this.__data__,d=zl(l,s);if(d<0)return!1;var g=l.length-1;return d==g?l.pop():Rl.call(l,d,1),--this.size,!0}function Vj(s){var l=this.__data__,d=zl(l,s);return d<0?n:l[d][1]}function Bj(s){return zl(this.__data__,s)>-1}function Wj(s,l){var d=this.__data__,g=zl(d,s);return g<0?(++this.size,d.push([s,l])):d[g][1]=l,this}ir.prototype.clear=jj,ir.prototype.delete=Fj,ir.prototype.get=Vj,ir.prototype.has=Bj,ir.prototype.set=Wj;function sr(s){var l=-1,d=s==null?0:s.length;for(this.clear();++l<d;){var g=s[l];this.set(g[0],g[1])}}function Uj(){this.size=0,this.__data__={hash:new _i,map:new(Bo||ir),string:new _i}}function zj(s){var l=nc(this,s).delete(s);return this.size-=l?1:0,l}function Gj(s){return nc(this,s).get(s)}function Yj(s){return nc(this,s).has(s)}function Hj(s,l){var d=nc(this,s),g=d.size;return d.set(s,l),this.size+=d.size==g?0:1,this}sr.prototype.clear=Uj,sr.prototype.delete=zj,sr.prototype.get=Gj,sr.prototype.has=Yj,sr.prototype.set=Hj;function Ii(s){var l=-1,d=s==null?0:s.length;for(this.__data__=new sr;++l<d;)this.add(s[l])}function qj(s){return this.__data__.set(s,u),this}function Kj(s){return this.__data__.has(s)}Ii.prototype.add=Ii.prototype.push=qj,Ii.prototype.has=Kj;function Tn(s){var l=this.__data__=new ir(s);this.size=l.size}function Xj(){this.__data__=new ir,this.size=0}function Zj(s){var l=this.__data__,d=l.delete(s);return this.size=l.size,d}function Jj(s){return this.__data__.get(s)}function Qj(s){return this.__data__.has(s)}function eF(s,l){var d=this.__data__;if(d instanceof ir){var g=d.__data__;if(!Bo||g.length<i-1)return g.push([s,l]),this.size=++d.size,this;d=this.__data__=new sr(g)}return d.set(s,l),this.size=d.size,this}Tn.prototype.clear=Xj,Tn.prototype.delete=Zj,Tn.prototype.get=Jj,Tn.prototype.has=Qj,Tn.prototype.set=eF;function Lw(s,l){var d=Me(s),g=!d&&Li(s),w=!d&&!g&&Zr(s),M=!d&&!g&&!w&&Rs(s),I=d||g||w||M,N=I?kh(s.length,uj):[],R=N.length;for(var H in s)(l||ze.call(s,H))&&!(I&&(H=="length"||w&&(H=="offset"||H=="parent")||M&&(H=="buffer"||H=="byteLength"||H=="byteOffset")||cr(H,R)))&&N.push(H);return N}function Rw(s){var l=s.length;return l?s[Jh(0,l-1)]:n}function tF(s,l){return rc(Vt(s),$i(l,0,s.length))}function nF(s){return rc(Vt(s))}function Wh(s,l,d){(d!==n&&!En(s[l],d)||d===n&&!(l in s))&&or(s,l,d)}function Go(s,l,d){var g=s[l];(!(ze.call(s,l)&&En(g,d))||d===n&&!(l in s))&&or(s,l,d)}function zl(s,l){for(var d=s.length;d--;)if(En(s[d][0],l))return d;return-1}function rF(s,l,d,g){return Hr(s,function(w,M,I){l(g,w,d(w),I)}),g}function jw(s,l){return s&&zn(l,gt(l),s)}function iF(s,l){return s&&zn(l,Wt(l),s)}function or(s,l,d){l=="__proto__"&&jl?jl(s,l,{configurable:!0,enumerable:!0,value:d,writable:!0}):s[l]=d}function Uh(s,l){for(var d=-1,g=l.length,w=W(g),M=s==null;++d<g;)w[d]=M?n:Tm(s,l[d]);return w}function $i(s,l,d){return s===s&&(d!==n&&(s=s<=d?s:d),l!==n&&(s=s>=l?s:l)),s}function hn(s,l,d,g,w,M){var I,N=l&m,R=l&p,H=l&v;if(d&&(I=w?d(s,g,w,M):d(s)),I!==n)return I;if(!st(s))return s;var q=Me(s);if(q){if(I=YF(s),!N)return Vt(s,I)}else{var X=Mt(s),ce=X==ie||X==pe;if(Zr(s))return lS(s,N);if(X==dt||X==z||ce&&!w){if(I=R||ce?{}:AS(s),!N)return R?kF(s,iF(I,s)):NF(s,jw(I,s))}else{if(!Xe[X])return w?s:{};I=HF(s,X,N)}}M||(M=new Tn);var ye=M.get(s);if(ye)return ye;M.set(s,I),nT(s)?s.forEach(function(Ee){I.add(hn(Ee,l,d,Ee,s,M))}):eT(s)&&s.forEach(function(Ee,Ne){I.set(Ne,hn(Ee,l,d,Ne,s,M))});var Te=H?R?cm:lm:R?Wt:gt,_e=q?n:Te(s);return un(_e||s,function(Ee,Ne){_e&&(Ne=Ee,Ee=s[Ne]),Go(I,Ne,hn(Ee,l,d,Ne,s,M))}),I}function sF(s){var l=gt(s);return function(d){return Fw(d,s,l)}}function Fw(s,l,d){var g=d.length;if(s==null)return!g;for(s=Ye(s);g--;){var w=d[g],M=l[w],I=s[w];if(I===n&&!(w in s)||!M(I))return!1}return!0}function Vw(s,l,d){if(typeof s!="function")throw new fn(a);return Jo(function(){s.apply(n,d)},l)}function Yo(s,l,d,g){var w=-1,M=Al,I=!0,N=s.length,R=[],H=l.length;if(!N)return R;d&&(l=et(l,Xt(d))),g?(M=Oh,I=!1):l.length>=i&&(M=Fo,I=!1,l=new Ii(l));e:for(;++w<N;){var q=s[w],X=d==null?q:d(q);if(q=g||q!==0?q:0,I&&X===X){for(var ce=H;ce--;)if(l[ce]===X)continue e;R.push(q)}else M(l,X,g)||R.push(q)}return R}var Hr=hS(Un),Bw=hS(Gh,!0);function oF(s,l){var d=!0;return Hr(s,function(g,w,M){return d=!!l(g,w,M),d}),d}function Gl(s,l,d){for(var g=-1,w=s.length;++g<w;){var M=s[g],I=l(M);if(I!=null&&(N===n?I===I&&!Jt(I):d(I,N)))var N=I,R=M}return R}function aF(s,l,d,g){var w=s.length;for(d=Oe(d),d<0&&(d=-d>w?0:w+d),g=g===n||g>w?w:Oe(g),g<0&&(g+=w),g=d>g?0:iT(g);d<g;)s[d++]=l;return s}function Ww(s,l){var d=[];return Hr(s,function(g,w,M){l(g,w,M)&&d.push(g)}),d}function bt(s,l,d,g,w){var M=-1,I=s.length;for(d||(d=KF),w||(w=[]);++M<I;){var N=s[M];l>0&&d(N)?l>1?bt(N,l-1,d,g,w):zr(w,N):g||(w[w.length]=N)}return w}var zh=mS(),Uw=mS(!0);function Un(s,l){return s&&zh(s,l,gt)}function Gh(s,l){return s&&Uw(s,l,gt)}function Yl(s,l){return Ur(l,function(d){return ur(s[d])})}function Di(s,l){l=Kr(l,s);for(var d=0,g=l.length;s!=null&&d<g;)s=s[Gn(l[d++])];return d&&d==g?s:n}function zw(s,l,d){var g=l(s);return Me(s)?g:zr(g,d(s))}function It(s){return s==null?s===n?Sl:Ci:Oi&&Oi in Ye(s)?UF(s):nV(s)}function Yh(s,l){return s>l}function lF(s,l){return s!=null&&ze.call(s,l)}function cF(s,l){return s!=null&&l in Ye(s)}function uF(s,l,d){return s>=At(l,d)&&s<mt(l,d)}function Hh(s,l,d){for(var g=d?Oh:Al,w=s[0].length,M=s.length,I=M,N=W(M),R=1/0,H=[];I--;){var q=s[I];I&&l&&(q=et(q,Xt(l))),R=At(q.length,R),N[I]=!d&&(l||w>=120&&q.length>=120)?new Ii(I&&q):n}q=s[0];var X=-1,ce=N[0];e:for(;++X<w&&H.length<R;){var ye=q[X],Te=l?l(ye):ye;if(ye=d||ye!==0?ye:0,!(ce?Fo(ce,Te):g(H,Te,d))){for(I=M;--I;){var _e=N[I];if(!(_e?Fo(_e,Te):g(s[I],Te,d)))continue e}ce&&ce.push(Te),H.push(ye)}}return H}function fF(s,l,d,g){return Un(s,function(w,M,I){l(g,d(w),M,I)}),g}function Ho(s,l,d){l=Kr(l,s),s=IS(s,l);var g=s==null?s:s[Gn(pn(l))];return g==null?n:Kt(g,s,d)}function Gw(s){return ot(s)&&It(s)==z}function dF(s){return ot(s)&&It(s)==xe}function hF(s){return ot(s)&&It(s)==de}function qo(s,l,d,g,w){return s===l?!0:s==null||l==null||!ot(s)&&!ot(l)?s!==s&&l!==l:mF(s,l,d,g,qo,w)}function mF(s,l,d,g,w,M){var I=Me(s),N=Me(l),R=I?J:Mt(s),H=N?J:Mt(l);R=R==z?dt:R,H=H==z?dt:H;var q=R==dt,X=H==dt,ce=R==H;if(ce&&Zr(s)){if(!Zr(l))return!1;I=!0,q=!1}if(ce&&!q)return M||(M=new Tn),I||Rs(s)?ES(s,l,d,g,w,M):BF(s,l,R,d,g,w,M);if(!(d&S)){var ye=q&&ze.call(s,"__wrapped__"),Te=X&&ze.call(l,"__wrapped__");if(ye||Te){var _e=ye?s.value():s,Ee=Te?l.value():l;return M||(M=new Tn),w(_e,Ee,d,g,M)}}return ce?(M||(M=new Tn),WF(s,l,d,g,w,M)):!1}function pF(s){return ot(s)&&Mt(s)==De}function qh(s,l,d,g){var w=d.length,M=w,I=!g;if(s==null)return!M;for(s=Ye(s);w--;){var N=d[w];if(I&&N[2]?N[1]!==s[N[0]]:!(N[0]in s))return!1}for(;++w<M;){N=d[w];var R=N[0],H=s[R],q=N[1];if(I&&N[2]){if(H===n&&!(R in s))return!1}else{var X=new Tn;if(g)var ce=g(H,q,R,s,l,X);if(!(ce===n?qo(q,H,S|x,g,X):ce))return!1}}return!0}function Yw(s){if(!st(s)||ZF(s))return!1;var l=ur(s)?pj:sR;return l.test(ki(s))}function gF(s){return ot(s)&&It(s)==Pi}function yF(s){return ot(s)&&Mt(s)==qt}function vF(s){return ot(s)&&cc(s.length)&&!!Je[It(s)]}function Hw(s){return typeof s=="function"?s:s==null?Ut:typeof s=="object"?Me(s)?Xw(s[0],s[1]):Kw(s):pT(s)}function Kh(s){if(!Zo(s))return wj(s);var l=[];for(var d in Ye(s))ze.call(s,d)&&d!="constructor"&&l.push(d);return l}function xF(s){if(!st(s))return tV(s);var l=Zo(s),d=[];for(var g in s)g=="constructor"&&(l||!ze.call(s,g))||d.push(g);return d}function Xh(s,l){return s<l}function qw(s,l){var d=-1,g=Bt(s)?W(s.length):[];return Hr(s,function(w,M,I){g[++d]=l(w,M,I)}),g}function Kw(s){var l=fm(s);return l.length==1&&l[0][2]?OS(l[0][0],l[0][1]):function(d){return d===s||qh(d,s,l)}}function Xw(s,l){return hm(s)&&MS(l)?OS(Gn(s),l):function(d){var g=Tm(d,s);return g===n&&g===l?Em(d,s):qo(l,g,S|x)}}function Hl(s,l,d,g,w){s!==l&&zh(l,function(M,I){if(w||(w=new Tn),st(M))bF(s,l,I,d,Hl,g,w);else{var N=g?g(pm(s,I),M,I+"",s,l,w):n;N===n&&(N=M),Wh(s,I,N)}},Wt)}function bF(s,l,d,g,w,M,I){var N=pm(s,d),R=pm(l,d),H=I.get(R);if(H){Wh(s,d,H);return}var q=M?M(N,R,d+"",s,l,I):n,X=q===n;if(X){var ce=Me(R),ye=!ce&&Zr(R),Te=!ce&&!ye&&Rs(R);q=R,ce||ye||Te?Me(N)?q=N:ct(N)?q=Vt(N):ye?(X=!1,q=lS(R,!0)):Te?(X=!1,q=cS(R,!0)):q=[]:Qo(R)||Li(R)?(q=N,Li(N)?q=sT(N):(!st(N)||ur(N))&&(q=AS(R))):X=!1}X&&(I.set(R,q),w(q,R,g,M,I),I.delete(R)),Wh(s,d,q)}function Zw(s,l){var d=s.length;if(d)return l+=l<0?d:0,cr(l,d)?s[l]:n}function Jw(s,l,d){l.length?l=et(l,function(M){return Me(M)?function(I){return Di(I,M.length===1?M[0]:M)}:M}):l=[Ut];var g=-1;l=et(l,Xt(be()));var w=qw(s,function(M,I,N){var R=et(l,function(H){return H(M)});return{criteria:R,index:++g,value:M}});return HR(w,function(M,I){return DF(M,I,d)})}function wF(s,l){return Qw(s,l,function(d,g){return Em(s,g)})}function Qw(s,l,d){for(var g=-1,w=l.length,M={};++g<w;){var I=l[g],N=Di(s,I);d(N,I)&&Ko(M,Kr(I,s),N)}return M}function SF(s){return function(l){return Di(l,s)}}function Zh(s,l,d,g){var w=g?YR:Ps,M=-1,I=l.length,N=s;for(s===l&&(l=Vt(l)),d&&(N=et(s,Xt(d)));++M<I;)for(var R=0,H=l[M],q=d?d(H):H;(R=w(N,q,R,g))>-1;)N!==s&&Rl.call(N,R,1),Rl.call(s,R,1);return s}function eS(s,l){for(var d=s?l.length:0,g=d-1;d--;){var w=l[d];if(d==g||w!==M){var M=w;cr(w)?Rl.call(s,w,1):tm(s,w)}}return s}function Jh(s,l){return s+Vl(Nw()*(l-s+1))}function TF(s,l,d,g){for(var w=-1,M=mt(Fl((l-s)/(d||1)),0),I=W(M);M--;)I[g?M:++w]=s,s+=d;return I}function Qh(s,l){var d="";if(!s||l<1||l>B)return d;do l%2&&(d+=s),l=Vl(l/2),l&&(s+=s);while(l);return d}function Ie(s,l){return gm(_S(s,l,Ut),s+"")}function EF(s){return Rw(js(s))}function CF(s,l){var d=js(s);return rc(d,$i(l,0,d.length))}function Ko(s,l,d,g){if(!st(s))return s;l=Kr(l,s);for(var w=-1,M=l.length,I=M-1,N=s;N!=null&&++w<M;){var R=Gn(l[w]),H=d;if(R==="__proto__"||R==="constructor"||R==="prototype")return s;if(w!=I){var q=N[R];H=g?g(q,R,N):n,H===n&&(H=st(q)?q:cr(l[w+1])?[]:{})}Go(N,R,H),N=N[R]}return s}var tS=Bl?function(s,l){return Bl.set(s,l),s}:Ut,PF=jl?function(s,l){return jl(s,"toString",{configurable:!0,enumerable:!1,value:Pm(l),writable:!0})}:Ut;function AF(s){return rc(js(s))}function mn(s,l,d){var g=-1,w=s.length;l<0&&(l=-l>w?0:w+l),d=d>w?w:d,d<0&&(d+=w),w=l>d?0:d-l>>>0,l>>>=0;for(var M=W(w);++g<w;)M[g]=s[g+l];return M}function MF(s,l){var d;return Hr(s,function(g,w,M){return d=l(g,w,M),!d}),!!d}function ql(s,l,d){var g=0,w=s==null?g:s.length;if(typeof l=="number"&&l===l&&w<=ae){for(;g<w;){var M=g+w>>>1,I=s[M];I!==null&&!Jt(I)&&(d?I<=l:I<l)?g=M+1:w=M}return w}return em(s,l,Ut,d)}function em(s,l,d,g){var w=0,M=s==null?0:s.length;if(M===0)return 0;l=d(l);for(var I=l!==l,N=l===null,R=Jt(l),H=l===n;w<M;){var q=Vl((w+M)/2),X=d(s[q]),ce=X!==n,ye=X===null,Te=X===X,_e=Jt(X);if(I)var Ee=g||Te;else H?Ee=Te&&(g||ce):N?Ee=Te&&ce&&(g||!ye):R?Ee=Te&&ce&&!ye&&(g||!_e):ye||_e?Ee=!1:Ee=g?X<=l:X<l;Ee?w=q+1:M=q}return At(M,K)}function nS(s,l){for(var d=-1,g=s.length,w=0,M=[];++d<g;){var I=s[d],N=l?l(I):I;if(!d||!En(N,R)){var R=N;M[w++]=I===0?0:I}}return M}function rS(s){return typeof s=="number"?s:Jt(s)?O:+s}function Zt(s){if(typeof s=="string")return s;if(Me(s))return et(s,Zt)+"";if(Jt(s))return kw?kw.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function qr(s,l,d){var g=-1,w=Al,M=s.length,I=!0,N=[],R=N;if(d)I=!1,w=Oh;else if(M>=i){var H=l?null:FF(s);if(H)return Ol(H);I=!1,w=Fo,R=new Ii}else R=l?[]:N;e:for(;++g<M;){var q=s[g],X=l?l(q):q;if(q=d||q!==0?q:0,I&&X===X){for(var ce=R.length;ce--;)if(R[ce]===X)continue e;l&&R.push(X),N.push(q)}else w(R,X,d)||(R!==N&&R.push(X),N.push(q))}return N}function tm(s,l){return l=Kr(l,s),s=IS(s,l),s==null||delete s[Gn(pn(l))]}function iS(s,l,d,g){return Ko(s,l,d(Di(s,l)),g)}function Kl(s,l,d,g){for(var w=s.length,M=g?w:-1;(g?M--:++M<w)&&l(s[M],M,s););return d?mn(s,g?0:M,g?M+1:w):mn(s,g?M+1:0,g?w:M)}function sS(s,l){var d=s;return d instanceof ke&&(d=d.value()),_h(l,function(g,w){return w.func.apply(w.thisArg,zr([g],w.args))},d)}function nm(s,l,d){var g=s.length;if(g<2)return g?qr(s[0]):[];for(var w=-1,M=W(g);++w<g;)for(var I=s[w],N=-1;++N<g;)N!=w&&(M[w]=Yo(M[w]||I,s[N],l,d));return qr(bt(M,1),l,d)}function oS(s,l,d){for(var g=-1,w=s.length,M=l.length,I={};++g<w;){var N=g<M?l[g]:n;d(I,s[g],N)}return I}function rm(s){return ct(s)?s:[]}function im(s){return typeof s=="function"?s:Ut}function Kr(s,l){return Me(s)?s:hm(s,l)?[s]:kS(Be(s))}var OF=Ie;function Xr(s,l,d){var g=s.length;return d=d===n?g:d,!l&&d>=g?s:mn(s,l,d)}var aS=gj||function(s){return xt.clearTimeout(s)};function lS(s,l){if(l)return s.slice();var d=s.length,g=Ow?Ow(d):new s.constructor(d);return s.copy(g),g}function sm(s){var l=new s.constructor(s.byteLength);return new kl(l).set(new kl(s)),l}function _F(s,l){var d=l?sm(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.byteLength)}function IF(s){var l=new s.constructor(s.source,G2.exec(s));return l.lastIndex=s.lastIndex,l}function $F(s){return zo?Ye(zo.call(s)):{}}function cS(s,l){var d=l?sm(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.length)}function uS(s,l){if(s!==l){var d=s!==n,g=s===null,w=s===s,M=Jt(s),I=l!==n,N=l===null,R=l===l,H=Jt(l);if(!N&&!H&&!M&&s>l||M&&I&&R&&!N&&!H||g&&I&&R||!d&&R||!w)return 1;if(!g&&!M&&!H&&s<l||H&&d&&w&&!g&&!M||N&&d&&w||!I&&w||!R)return-1}return 0}function DF(s,l,d){for(var g=-1,w=s.criteria,M=l.criteria,I=w.length,N=d.length;++g<I;){var R=uS(w[g],M[g]);if(R){if(g>=N)return R;var H=d[g];return R*(H=="desc"?-1:1)}}return s.index-l.index}function fS(s,l,d,g){for(var w=-1,M=s.length,I=d.length,N=-1,R=l.length,H=mt(M-I,0),q=W(R+H),X=!g;++N<R;)q[N]=l[N];for(;++w<I;)(X||w<M)&&(q[d[w]]=s[w]);for(;H--;)q[N++]=s[w++];return q}function dS(s,l,d,g){for(var w=-1,M=s.length,I=-1,N=d.length,R=-1,H=l.length,q=mt(M-N,0),X=W(q+H),ce=!g;++w<q;)X[w]=s[w];for(var ye=w;++R<H;)X[ye+R]=l[R];for(;++I<N;)(ce||w<M)&&(X[ye+d[I]]=s[w++]);return X}function Vt(s,l){var d=-1,g=s.length;for(l||(l=W(g));++d<g;)l[d]=s[d];return l}function zn(s,l,d,g){var w=!d;d||(d={});for(var M=-1,I=l.length;++M<I;){var N=l[M],R=g?g(d[N],s[N],N,d,s):n;R===n&&(R=s[N]),w?or(d,N,R):Go(d,N,R)}return d}function NF(s,l){return zn(s,dm(s),l)}function kF(s,l){return zn(s,CS(s),l)}function Xl(s,l){return function(d,g){var w=Me(d)?VR:rF,M=l?l():{};return w(d,s,be(g,2),M)}}function Ns(s){return Ie(function(l,d){var g=-1,w=d.length,M=w>1?d[w-1]:n,I=w>2?d[2]:n;for(M=s.length>3&&typeof M=="function"?(w--,M):n,I&&$t(d[0],d[1],I)&&(M=w<3?n:M,w=1),l=Ye(l);++g<w;){var N=d[g];N&&s(l,N,g,M)}return l})}function hS(s,l){return function(d,g){if(d==null)return d;if(!Bt(d))return s(d,g);for(var w=d.length,M=l?w:-1,I=Ye(d);(l?M--:++M<w)&&g(I[M],M,I)!==!1;);return d}}function mS(s){return function(l,d,g){for(var w=-1,M=Ye(l),I=g(l),N=I.length;N--;){var R=I[s?N:++w];if(d(M[R],R,M)===!1)break}return l}}function LF(s,l,d){var g=l&T,w=Xo(s);function M(){var I=this&&this!==xt&&this instanceof M?w:s;return I.apply(g?d:this,arguments)}return M}function pS(s){return function(l){l=Be(l);var d=As(l)?Sn(l):n,g=d?d[0]:l.charAt(0),w=d?Xr(d,1).join(""):l.slice(1);return g[s]()+w}}function ks(s){return function(l){return _h(hT(dT(l).replace(PR,"")),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 d=Ds(s.prototype),g=s.apply(d,l);return st(g)?g:d}}function RF(s,l,d){var g=Xo(s);function w(){for(var M=arguments.length,I=W(M),N=M,R=Ls(w);N--;)I[N]=arguments[N];var H=M<3&&I[0]!==R&&I[M-1]!==R?[]:Gr(I,R);if(M-=H.length,M<d)return bS(s,l,Zl,w.placeholder,n,I,H,n,n,d-M);var q=this&&this!==xt&&this instanceof w?g:s;return Kt(q,this,I)}return w}function gS(s){return function(l,d,g){var w=Ye(l);if(!Bt(l)){var M=be(d,3);l=gt(l),d=function(N){return M(w[N],N,w)}}var I=s(l,d,g);return I>-1?w[M?l[I]:I]:n}}function yS(s){return lr(function(l){var d=l.length,g=d,w=dn.prototype.thru;for(s&&l.reverse();g--;){var M=l[g];if(typeof M!="function")throw new fn(a);if(w&&!I&&tc(M)=="wrapper")var I=new dn([],!0)}for(g=I?g:d;++g<d;){M=l[g];var N=tc(M),R=N=="wrapper"?um(M):n;R&&mm(R[0])&&R[1]==(j|E|C|F)&&!R[4].length&&R[9]==1?I=I[tc(R[0])].apply(I,R[3]):I=M.length==1&&mm(M)?I[N]():I.thru(M)}return function(){var H=arguments,q=H[0];if(I&&H.length==1&&Me(q))return I.plant(q).value();for(var X=0,ce=d?l[X].apply(this,H):q;++X<d;)ce=l[X].call(this,ce);return ce}})}function Zl(s,l,d,g,w,M,I,N,R,H){var q=l&j,X=l&T,ce=l&b,ye=l&(E|$),Te=l&U,_e=ce?n:Xo(s);function Ee(){for(var Ne=arguments.length,Le=W(Ne),Qt=Ne;Qt--;)Le[Qt]=arguments[Qt];if(ye)var Dt=Ls(Ee),en=KR(Le,Dt);if(g&&(Le=fS(Le,g,w,ye)),M&&(Le=dS(Le,M,I,ye)),Ne-=en,ye&&Ne<H){var ut=Gr(Le,Dt);return bS(s,l,Zl,Ee.placeholder,d,Le,ut,N,R,H-Ne)}var Cn=X?d:this,dr=ce?Cn[s]:s;return Ne=Le.length,N?Le=rV(Le,N):Te&&Ne>1&&Le.reverse(),q&&R<Ne&&(Le.length=R),this&&this!==xt&&this instanceof Ee&&(dr=_e||Xo(dr)),dr.apply(Cn,Le)}return Ee}function vS(s,l){return function(d,g){return fF(d,s,l(g),{})}}function Jl(s,l){return function(d,g){var w;if(d===n&&g===n)return l;if(d!==n&&(w=d),g!==n){if(w===n)return g;typeof d=="string"||typeof g=="string"?(d=Zt(d),g=Zt(g)):(d=rS(d),g=rS(g)),w=s(d,g)}return w}}function om(s){return lr(function(l){return l=et(l,Xt(be())),Ie(function(d){var g=this;return s(l,function(w){return Kt(w,g,d)})})})}function Ql(s,l){l=l===n?" ":Zt(l);var d=l.length;if(d<2)return d?Qh(l,s):l;var g=Qh(l,Fl(s/Ms(l)));return As(l)?Xr(Sn(g),0,s).join(""):g.slice(0,s)}function jF(s,l,d,g){var w=l&T,M=Xo(s);function I(){for(var N=-1,R=arguments.length,H=-1,q=g.length,X=W(q+R),ce=this&&this!==xt&&this instanceof I?M:s;++H<q;)X[H]=g[H];for(;R--;)X[H++]=arguments[++N];return Kt(ce,w?d:this,X)}return I}function xS(s){return function(l,d,g){return g&&typeof g!="number"&&$t(l,d,g)&&(d=g=n),l=fr(l),d===n?(d=l,l=0):d=fr(d),g=g===n?l<d?1:-1:fr(g),TF(l,d,g,s)}}function ec(s){return function(l,d){return typeof l=="string"&&typeof d=="string"||(l=gn(l),d=gn(d)),s(l,d)}}function bS(s,l,d,g,w,M,I,N,R,H){var q=l&E,X=q?I:n,ce=q?n:I,ye=q?M:n,Te=q?n:M;l|=q?C:D,l&=~(q?D:C),l&A||(l&=-4);var _e=[s,l,w,ye,X,Te,ce,N,R,H],Ee=d.apply(n,_e);return mm(s)&&$S(Ee,_e),Ee.placeholder=g,DS(Ee,s,l)}function am(s){var l=ht[s];return function(d,g){if(d=gn(d),g=g==null?0:At(Oe(g),292),g&&Dw(d)){var w=(Be(d)+"e").split("e"),M=l(w[0]+"e"+(+w[1]+g));return w=(Be(M)+"e").split("e"),+(w[0]+"e"+(+w[1]-g))}return l(d)}}var FF=Is&&1/Ol(new Is([,-0]))[1]==V?function(s){return new Is(s)}:Om;function wS(s){return function(l){var d=Mt(l);return d==De?Rh(l):d==qt?nj(l):qR(l,s(l))}}function ar(s,l,d,g,w,M,I,N){var R=l&b;if(!R&&typeof s!="function")throw new fn(a);var H=g?g.length:0;if(H||(l&=-97,g=w=n),I=I===n?I:mt(Oe(I),0),N=N===n?N:Oe(N),H-=w?w.length:0,l&D){var q=g,X=w;g=w=n}var ce=R?n:um(s),ye=[s,l,d,g,w,q,X,M,I,N];if(ce&&eV(ye,ce),s=ye[0],l=ye[1],d=ye[2],g=ye[3],w=ye[4],N=ye[9]=ye[9]===n?R?0:s.length:mt(ye[9]-H,0),!N&&l&(E|$)&&(l&=-25),!l||l==T)var Te=LF(s,l,d);else l==E||l==$?Te=RF(s,l,N):(l==C||l==(T|C))&&!w.length?Te=jF(s,l,d,g):Te=Zl.apply(n,ye);var _e=ce?tS:$S;return DS(_e(Te,ye),s,l)}function SS(s,l,d,g){return s===n||En(s,_s[d])&&!ze.call(g,d)?l:s}function TS(s,l,d,g,w,M){return st(s)&&st(l)&&(M.set(l,s),Hl(s,l,n,TS,M),M.delete(l)),s}function VF(s){return Qo(s)?n:s}function ES(s,l,d,g,w,M){var I=d&S,N=s.length,R=l.length;if(N!=R&&!(I&&R>N))return!1;var H=M.get(s),q=M.get(l);if(H&&q)return H==l&&q==s;var X=-1,ce=!0,ye=d&x?new Ii:n;for(M.set(s,l),M.set(l,s);++X<N;){var Te=s[X],_e=l[X];if(g)var Ee=I?g(_e,Te,X,l,s,M):g(Te,_e,X,s,l,M);if(Ee!==n){if(Ee)continue;ce=!1;break}if(ye){if(!Ih(l,function(Ne,Le){if(!Fo(ye,Le)&&(Te===Ne||w(Te,Ne,d,g,M)))return ye.push(Le)})){ce=!1;break}}else if(!(Te===_e||w(Te,_e,d,g,M))){ce=!1;break}}return M.delete(s),M.delete(l),ce}function BF(s,l,d,g,w,M,I){switch(d){case Qe:if(s.byteLength!=l.byteLength||s.byteOffset!=l.byteOffset)return!1;s=s.buffer,l=l.buffer;case xe:return!(s.byteLength!=l.byteLength||!M(new kl(s),new kl(l)));case re:case de:case ft:return En(+s,+l);case Ve:return s.name==l.name&&s.message==l.message;case Pi:case bn:return s==l+"";case De:var N=Rh;case qt:var R=g&S;if(N||(N=Ol),s.size!=l.size&&!R)return!1;var H=I.get(s);if(H)return H==l;g|=x,I.set(s,l);var q=ES(N(s),N(l),g,w,M,I);return I.delete(s),q;case Ai:if(zo)return zo.call(s)==zo.call(l)}return!1}function WF(s,l,d,g,w,M){var I=d&S,N=lm(s),R=N.length,H=lm(l),q=H.length;if(R!=q&&!I)return!1;for(var X=R;X--;){var ce=N[X];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 _e=!0;M.set(s,l),M.set(l,s);for(var Ee=I;++X<R;){ce=N[X];var Ne=s[ce],Le=l[ce];if(g)var Qt=I?g(Le,Ne,ce,l,s,M):g(Ne,Le,ce,s,l,M);if(!(Qt===n?Ne===Le||w(Ne,Le,d,g,M):Qt)){_e=!1;break}Ee||(Ee=ce=="constructor")}if(_e&&!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)&&(_e=!1)}return M.delete(s),M.delete(l),_e}function lr(s){return gm(_S(s,n,FS),s+"")}function lm(s){return zw(s,gt,dm)}function cm(s){return zw(s,Wt,CS)}var um=Bl?function(s){return Bl.get(s)}:Om;function tc(s){for(var l=s.name+"",d=$s[l],g=ze.call($s,l)?d.length:0;g--;){var w=d[g],M=w.func;if(M==null||M==s)return w.name}return l}function Ls(s){var l=ze.call(P,"placeholder")?P:s;return l.placeholder}function be(){var s=P.iteratee||Am;return s=s===Am?Hw:s,arguments.length?s(arguments[0],arguments[1]):s}function nc(s,l){var d=s.__data__;return XF(l)?d[typeof l=="string"?"string":"hash"]:d.map}function fm(s){for(var l=gt(s),d=l.length;d--;){var g=l[d],w=s[g];l[d]=[g,w,MS(w)]}return l}function Ni(s,l){var d=QR(s,l);return Yw(d)?d:n}function UF(s){var l=ze.call(s,Oi),d=s[Oi];try{s[Oi]=n;var g=!0}catch{}var w=Dl.call(s);return g&&(l?s[Oi]=d:delete s[Oi]),w}var dm=Fh?function(s){return s==null?[]:(s=Ye(s),Ur(Fh(s),function(l){return Iw.call(s,l)}))}:_m,CS=Fh?function(s){for(var l=[];s;)zr(l,dm(s)),s=Ll(s);return l}:_m,Mt=It;(Vh&&Mt(new Vh(new ArrayBuffer(1)))!=Qe||Bo&&Mt(new Bo)!=De||Bh&&Mt(Bh.resolve())!=bl||Is&&Mt(new Is)!=qt||Wo&&Mt(new Wo)!=Wr)&&(Mt=function(s){var l=It(s),d=l==dt?s.constructor:n,g=d?ki(d):"";if(g)switch(g){case Cj:return Qe;case Pj:return De;case Aj:return bl;case Mj:return qt;case Oj:return Wr}return l});function zF(s,l,d){for(var g=-1,w=d.length;++g<w;){var M=d[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 GF(s){var l=s.match(ZL);return l?l[1].split(JL):[]}function PS(s,l,d){l=Kr(l,s);for(var g=-1,w=l.length,M=!1;++g<w;){var I=Gn(l[g]);if(!(M=s!=null&&d(s,I)))break;s=s[I]}return M||++g!=w?M:(w=s==null?0:s.length,!!w&&cc(w)&&cr(I,w)&&(Me(s)||Li(s)))}function YF(s){var l=s.length,d=new s.constructor(l);return l&&typeof s[0]=="string"&&ze.call(s,"index")&&(d.index=s.index,d.input=s.input),d}function AS(s){return typeof s.constructor=="function"&&!Zo(s)?Ds(Ll(s)):{}}function HF(s,l,d){var g=s.constructor;switch(l){case xe:return sm(s);case re:case de:return new g(+s);case Qe:return _F(s,d);case Pt:case wn:case rr:case mh:case ph:case gh:case yh:case vh:case xh:return cS(s,d);case De:return new g;case ft:case bn:return new g(s);case Pi:return IF(s);case qt:return new g;case Ai:return $F(s)}}function qF(s,l){var d=l.length;if(!d)return s;var g=d-1;return l[g]=(d>1?"& ":"")+l[g],l=l.join(d>2?", ":" "),s.replace(XL,`{
633
633
  /* [wrapped with `+l+`] */
634
- `)}function KF(s){return Me(s)||Li(s)||!!(Iw&&s&&s[Iw])}function cr(s,l){var d=typeof s;return l=l??B,!!l&&(d=="number"||d!="symbol"&&aR.test(s))&&s>-1&&s%1==0&&s<l}function $t(s,l,d){if(!st(d))return!1;var g=typeof l;return(g=="number"?Bt(d)&&cr(l,d.length):g=="string"&&l in d)?En(d[l],s):!1}function hm(s,l){if(Me(s))return!1;var d=typeof s;return d=="number"||d=="symbol"||d=="boolean"||s==null||Jt(s)?!0:YL.test(s)||!GL.test(s)||l!=null&&s in Ye(l)}function XF(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function mm(s){var l=tc(s),d=P[l];if(typeof d!="function"||!(l in ke.prototype))return!1;if(s===d)return!0;var g=um(d);return!!g&&s===g[0]}function ZF(s){return!!Aw&&Aw in s}var JF=Il?ur:Im;function Zo(s){var l=s&&s.constructor,d=typeof l=="function"&&l.prototype||_s;return s===d}function AS(s){return s===s&&!st(s)}function MS(s,l){return function(d){return d==null?!1:d[s]===l&&(l!==n||s in Ye(d))}}function QF(s){var l=ac(s,function(g){return d.size===f&&d.clear(),g}),d=l.cache;return l}function eV(s,l){var d=s[1],g=l[1],w=d|g,M=w<(T|b|j),I=g==j&&d==E||g==j&&d==F&&s[7].length<=l[8]||g==(j|F)&&l[7].length<=l[8]&&d==E;if(!(M||I))return s;g&T&&(s[2]=l[2],w|=d&T?0:A);var N=l[3];if(N){var R=s[3];s[3]=R?uS(R,N,l[4]):N,s[4]=R?Gr(s[3],h):l[4]}return N=l[5],N&&(R=s[5],s[5]=R?fS(R,N,l[6]):N,s[6]=R?Gr(s[5],h):l[6]),N=l[7],N&&(s[7]=N),g&j&&(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]=w,s}function tV(s){var l=[];if(s!=null)for(var d in Ye(s))l.push(d);return l}function nV(s){return Dl.call(s)}function OS(s,l,d){return l=mt(l===n?s.length-1:l,0),function(){for(var g=arguments,w=-1,M=mt(g.length-l,0),I=W(M);++w<M;)I[w]=g[l+w];w=-1;for(var N=W(l+1);++w<l;)N[w]=g[w];return N[l]=d(I),Kt(s,this,N)}}function _S(s,l){return l.length<2?s:Di(s,mn(l,0,-1))}function rV(s,l){for(var d=s.length,g=At(l.length,d),w=Vt(s);g--;){var M=l[g];s[g]=cr(M,d)?w[M]:n}return s}function pm(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var IS=DS(eS),Jo=vj||function(s,l){return xt.setTimeout(s,l)},gm=DS(PF);function $S(s,l,d){var g=l+"";return gm(s,qF(g,iV(GF(g),d)))}function DS(s){var l=0,d=0;return function(){var g=Sj(),w=ge-(g-d);if(d=g,w>0){if(++l>=se)return arguments[0]}else l=0;return s.apply(n,arguments)}}function rc(s,l){var d=-1,g=s.length,w=g-1;for(l=l===n?g:l;++d<l;){var M=Jh(d,w),I=s[M];s[M]=s[d],s[d]=I}return s.length=l,s}var NS=QF(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(HL,function(d,g,w,M){l.push(w?M.replace(tR,"$1"):g||d)}),l});function Gn(s){if(typeof s=="string"||Jt(s))return s;var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function ki(s){if(s!=null){try{return $l.call(s)}catch{}try{return s+""}catch{}}return""}function iV(s,l){return un(le,function(d){var g="_."+d[0];l&d[1]&&!Al(s,g)&&s.push(g)}),s.sort()}function kS(s){if(s instanceof ke)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 sV(s,l,d){(d?$t(s,l,d):l===n)?l=1:l=mt(Oe(l),0);var g=s==null?0:s.length;if(!g||l<1)return[];for(var w=0,M=0,I=W(Fl(g/l));w<g;)I[M++]=mn(s,w,w+=l);return I}function oV(s){for(var l=-1,d=s==null?0:s.length,g=0,w=[];++l<d;){var M=s[l];M&&(w[g++]=M)}return w}function aV(){var s=arguments.length;if(!s)return[];for(var l=W(s-1),d=arguments[0],g=s;g--;)l[g-1]=arguments[g];return zr(Me(d)?Vt(d):[d],bt(l,1))}var lV=Ie(function(s,l){return ct(s)?Yo(s,bt(l,1,ct,!0)):[]}),cV=Ie(function(s,l){var d=pn(l);return ct(d)&&(d=n),ct(s)?Yo(s,bt(l,1,ct,!0),be(d,2)):[]}),uV=Ie(function(s,l){var d=pn(l);return ct(d)&&(d=n),ct(s)?Yo(s,bt(l,1,ct,!0),n,d):[]});function fV(s,l,d){var g=s==null?0:s.length;return g?(l=d||l===n?1:Oe(l),mn(s,l<0?0:l,g)):[]}function dV(s,l,d){var g=s==null?0:s.length;return g?(l=d||l===n?1:Oe(l),l=g-l,mn(s,0,l<0?0:l)):[]}function hV(s,l){return s&&s.length?Kl(s,be(l,3),!0,!0):[]}function mV(s,l){return s&&s.length?Kl(s,be(l,3),!0):[]}function pV(s,l,d,g){var w=s==null?0:s.length;return w?(d&&typeof d!="number"&&$t(s,l,d)&&(d=0,g=w),aF(s,l,d,g)):[]}function LS(s,l,d){var g=s==null?0:s.length;if(!g)return-1;var w=d==null?0:Oe(d);return w<0&&(w=mt(g+w,0)),Ml(s,be(l,3),w)}function RS(s,l,d){var g=s==null?0:s.length;if(!g)return-1;var w=g-1;return d!==n&&(w=Oe(d),w=d<0?mt(g+w,0):At(w,g-1)),Ml(s,be(l,3),w,!0)}function jS(s){var l=s==null?0:s.length;return l?bt(s,1):[]}function gV(s){var l=s==null?0:s.length;return l?bt(s,V):[]}function yV(s,l){var d=s==null?0:s.length;return d?(l=l===n?1:Oe(l),bt(s,l)):[]}function vV(s){for(var l=-1,d=s==null?0:s.length,g={};++l<d;){var w=s[l];g[w[0]]=w[1]}return g}function FS(s){return s&&s.length?s[0]:n}function xV(s,l,d){var g=s==null?0:s.length;if(!g)return-1;var w=d==null?0:Oe(d);return w<0&&(w=mt(g+w,0)),Ps(s,l,w)}function bV(s){var l=s==null?0:s.length;return l?mn(s,0,-1):[]}var wV=Ie(function(s){var l=et(s,rm);return l.length&&l[0]===s[0]?Hh(l):[]}),SV=Ie(function(s){var l=pn(s),d=et(s,rm);return l===pn(d)?l=n:d.pop(),d.length&&d[0]===s[0]?Hh(d,be(l,2)):[]}),TV=Ie(function(s){var l=pn(s),d=et(s,rm);return l=typeof l=="function"?l:n,l&&d.pop(),d.length&&d[0]===s[0]?Hh(d,n,l):[]});function EV(s,l){return s==null?"":bj.call(s,l)}function pn(s){var l=s==null?0:s.length;return l?s[l-1]:n}function CV(s,l,d){var g=s==null?0:s.length;if(!g)return-1;var w=g;return d!==n&&(w=Oe(d),w=w<0?mt(g+w,0):At(w,g-1)),l===l?ij(s,l,w):Ml(s,xw,w,!0)}function PV(s,l){return s&&s.length?Xw(s,Oe(l)):n}var AV=Ie(VS);function VS(s,l){return s&&s.length&&l&&l.length?Zh(s,l):s}function MV(s,l,d){return s&&s.length&&l&&l.length?Zh(s,l,be(d,2)):s}function OV(s,l,d){return s&&s.length&&l&&l.length?Zh(s,l,n,d):s}var _V=lr(function(s,l){var d=s==null?0:s.length,g=Uh(s,l);return Qw(s,et(l,function(w){return cr(w,d)?+w:w}).sort(cS)),g});function IV(s,l){var d=[];if(!(s&&s.length))return d;var g=-1,w=[],M=s.length;for(l=be(l,3);++g<M;){var I=s[g];l(I,g,s)&&(d.push(I),w.push(g))}return Qw(s,w),d}function ym(s){return s==null?s:Ej.call(s)}function $V(s,l,d){var g=s==null?0:s.length;return g?(d&&typeof d!="number"&&$t(s,l,d)?(l=0,d=g):(l=l==null?0:Oe(l),d=d===n?g:Oe(d)),mn(s,l,d)):[]}function DV(s,l){return ql(s,l)}function NV(s,l,d){return em(s,l,be(d,2))}function kV(s,l){var d=s==null?0:s.length;if(d){var g=ql(s,l);if(g<d&&En(s[g],l))return g}return-1}function LV(s,l){return ql(s,l,!0)}function RV(s,l,d){return em(s,l,be(d,2),!0)}function jV(s,l){var d=s==null?0:s.length;if(d){var g=ql(s,l,!0)-1;if(En(s[g],l))return g}return-1}function FV(s){return s&&s.length?tS(s):[]}function VV(s,l){return s&&s.length?tS(s,be(l,2)):[]}function BV(s){var l=s==null?0:s.length;return l?mn(s,1,l):[]}function WV(s,l,d){return s&&s.length?(l=d||l===n?1:Oe(l),mn(s,0,l<0?0:l)):[]}function UV(s,l,d){var g=s==null?0:s.length;return g?(l=d||l===n?1:Oe(l),l=g-l,mn(s,l<0?0:l,g)):[]}function zV(s,l){return s&&s.length?Kl(s,be(l,3),!1,!0):[]}function GV(s,l){return s&&s.length?Kl(s,be(l,3)):[]}var YV=Ie(function(s){return qr(bt(s,1,ct,!0))}),HV=Ie(function(s){var l=pn(s);return ct(l)&&(l=n),qr(bt(s,1,ct,!0),be(l,2))}),qV=Ie(function(s){var l=pn(s);return l=typeof l=="function"?l:n,qr(bt(s,1,ct,!0),n,l)});function KV(s){return s&&s.length?qr(s):[]}function XV(s,l){return s&&s.length?qr(s,be(l,2)):[]}function ZV(s,l){return l=typeof l=="function"?l:n,s&&s.length?qr(s,n,l):[]}function vm(s){if(!(s&&s.length))return[];var l=0;return s=Ur(s,function(d){if(ct(d))return l=mt(d.length,l),!0}),kh(l,function(d){return et(s,$h(d))})}function BS(s,l){if(!(s&&s.length))return[];var d=vm(s);return l==null?d:et(d,function(g){return Kt(l,n,g)})}var JV=Ie(function(s,l){return ct(s)?Yo(s,l):[]}),QV=Ie(function(s){return nm(Ur(s,ct))}),e8=Ie(function(s){var l=pn(s);return ct(l)&&(l=n),nm(Ur(s,ct),be(l,2))}),t8=Ie(function(s){var l=pn(s);return l=typeof l=="function"?l:n,nm(Ur(s,ct),n,l)}),n8=Ie(vm);function r8(s,l){return sS(s||[],l||[],Go)}function i8(s,l){return sS(s||[],l||[],Ko)}var s8=Ie(function(s){var l=s.length,d=l>1?s[l-1]:n;return d=typeof d=="function"?(s.pop(),d):n,BS(s,d)});function WS(s){var l=P(s);return l.__chain__=!0,l}function o8(s,l){return l(s),s}function ic(s,l){return l(s)}var a8=lr(function(s){var l=s.length,d=l?s[0]:0,g=this.__wrapped__,w=function(M){return Uh(M,s)};return l>1||this.__actions__.length||!(g instanceof ke)||!cr(d)?this.thru(w):(g=g.slice(d,+d+(l?1:0)),g.__actions__.push({func:ic,args:[w],thisArg:n}),new dn(g,this.__chain__).thru(function(M){return l&&!M.length&&M.push(n),M}))});function l8(){return WS(this)}function c8(){return new dn(this.value(),this.__chain__)}function u8(){this.__values__===n&&(this.__values__=nT(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function f8(){return this}function d8(s){for(var l,d=this;d instanceof Ul;){var g=kS(d);g.__index__=0,g.__values__=n,l?w.__wrapped__=g:l=g;var w=g;d=d.__wrapped__}return w.__wrapped__=s,l}function h8(){var s=this.__wrapped__;if(s instanceof ke){var l=s;return this.__actions__.length&&(l=new ke(this)),l=l.reverse(),l.__actions__.push({func:ic,args:[ym],thisArg:n}),new dn(l,this.__chain__)}return this.thru(ym)}function m8(){return iS(this.__wrapped__,this.__actions__)}var p8=Xl(function(s,l,d){ze.call(s,d)?++s[d]:or(s,d,1)});function g8(s,l,d){var g=Me(s)?yw:oF;return d&&$t(s,l,d)&&(l=n),g(s,be(l,3))}function y8(s,l){var d=Me(s)?Ur:Bw;return d(s,be(l,3))}var v8=pS(LS),x8=pS(RS);function b8(s,l){return bt(sc(s,l),1)}function w8(s,l){return bt(sc(s,l),V)}function S8(s,l,d){return d=d===n?1:Oe(d),bt(sc(s,l),d)}function US(s,l){var d=Me(s)?un:Hr;return d(s,be(l,3))}function zS(s,l){var d=Me(s)?BR:Vw;return d(s,be(l,3))}var T8=Xl(function(s,l,d){ze.call(s,d)?s[d].push(l):or(s,d,[l])});function E8(s,l,d,g){s=Bt(s)?s:js(s),d=d&&!g?Oe(d):0;var w=s.length;return d<0&&(d=mt(w+d,0)),uc(s)?d<=w&&s.indexOf(l,d)>-1:!!w&&Ps(s,l,d)>-1}var C8=Ie(function(s,l,d){var g=-1,w=typeof l=="function",M=Bt(s)?W(s.length):[];return Hr(s,function(I){M[++g]=w?Kt(l,I,d):Ho(I,l,d)}),M}),P8=Xl(function(s,l,d){or(s,d,l)});function sc(s,l){var d=Me(s)?et:Hw;return d(s,be(l,3))}function A8(s,l,d,g){return s==null?[]:(Me(l)||(l=l==null?[]:[l]),d=g?n:d,Me(d)||(d=d==null?[]:[d]),Zw(s,l,d))}var M8=Xl(function(s,l,d){s[d?0:1].push(l)},function(){return[[],[]]});function O8(s,l,d){var g=Me(s)?_h:ww,w=arguments.length<3;return g(s,be(l,4),d,w,Hr)}function _8(s,l,d){var g=Me(s)?WR:ww,w=arguments.length<3;return g(s,be(l,4),d,w,Vw)}function I8(s,l){var d=Me(s)?Ur:Bw;return d(s,lc(be(l,3)))}function $8(s){var l=Me(s)?Lw:EF;return l(s)}function D8(s,l,d){(d?$t(s,l,d):l===n)?l=1:l=Oe(l);var g=Me(s)?tF:CF;return g(s,l)}function N8(s){var l=Me(s)?nF:AF;return l(s)}function k8(s){if(s==null)return 0;if(Bt(s))return uc(s)?Ms(s):s.length;var l=Mt(s);return l==De||l==qt?s.size:Kh(s).length}function L8(s,l,d){var g=Me(s)?Ih:MF;return d&&$t(s,l,d)&&(l=n),g(s,be(l,3))}var R8=Ie(function(s,l){if(s==null)return[];var d=l.length;return d>1&&$t(s,l[0],l[1])?l=[]:d>2&&$t(l[0],l[1],l[2])&&(l=[l[0]]),Zw(s,bt(l,1),[])}),oc=yj||function(){return xt.Date.now()};function j8(s,l){if(typeof l!="function")throw new fn(a);return s=Oe(s),function(){if(--s<1)return l.apply(this,arguments)}}function GS(s,l,d){return l=d?n:l,l=s&&l==null?s.length:l,ar(s,j,n,n,n,n,l)}function YS(s,l){var d;if(typeof l!="function")throw new fn(a);return s=Oe(s),function(){return--s>0&&(d=l.apply(this,arguments)),s<=1&&(l=n),d}}var xm=Ie(function(s,l,d){var g=T;if(d.length){var w=Gr(d,Ls(xm));g|=C}return ar(s,g,l,d,w)}),HS=Ie(function(s,l,d){var g=T|b;if(d.length){var w=Gr(d,Ls(HS));g|=C}return ar(l,g,s,d,w)});function qS(s,l,d){l=d?n:l;var g=ar(s,E,n,n,n,n,n,l);return g.placeholder=qS.placeholder,g}function KS(s,l,d){l=d?n:l;var g=ar(s,$,n,n,n,n,n,l);return g.placeholder=KS.placeholder,g}function XS(s,l,d){var g,w,M,I,N,R,H=0,q=!1,X=!1,ce=!0;if(typeof s!="function")throw new fn(a);l=gn(l)||0,st(d)&&(q=!!d.leading,X="maxWait"in d,M=X?mt(gn(d.maxWait)||0,l):M,ce="trailing"in d?!!d.trailing:ce);function ye(ut){var Cn=g,dr=w;return g=w=n,H=ut,I=s.apply(dr,Cn),I}function Te(ut){return H=ut,N=Jo(Ne,l),q?ye(ut):I}function _e(ut){var Cn=ut-R,dr=ut-H,pT=l-Cn;return X?At(pT,M-dr):pT}function Ee(ut){var Cn=ut-R,dr=ut-H;return R===n||Cn>=l||Cn<0||X&&dr>=M}function Ne(){var ut=oc();if(Ee(ut))return Le(ut);N=Jo(Ne,_e(ut))}function Le(ut){return N=n,ce&&g?ye(ut):(g=w=n,I)}function Qt(){N!==n&&oS(N),H=0,g=R=w=N=n}function Dt(){return N===n?I:Le(oc())}function en(){var ut=oc(),Cn=Ee(ut);if(g=arguments,w=this,R=ut,Cn){if(N===n)return Te(R);if(X)return oS(N),N=Jo(Ne,l),ye(R)}return N===n&&(N=Jo(Ne,l)),I}return en.cancel=Qt,en.flush=Dt,en}var F8=Ie(function(s,l){return Fw(s,1,l)}),V8=Ie(function(s,l,d){return Fw(s,gn(l)||0,d)});function B8(s){return ar(s,U)}function ac(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new fn(a);var d=function(){var g=arguments,w=l?l.apply(this,g):g[0],M=d.cache;if(M.has(w))return M.get(w);var I=s.apply(this,g);return d.cache=M.set(w,I)||M,I};return d.cache=new(ac.Cache||sr),d}ac.Cache=sr;function lc(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 W8(s){return YS(2,s)}var U8=OF(function(s,l){l=l.length==1&&Me(l[0])?et(l[0],Xt(be())):et(bt(l,1),Xt(be()));var d=l.length;return Ie(function(g){for(var w=-1,M=At(g.length,d);++w<M;)g[w]=l[w].call(this,g[w]);return Kt(s,this,g)})}),bm=Ie(function(s,l){var d=Gr(l,Ls(bm));return ar(s,C,n,l,d)}),ZS=Ie(function(s,l){var d=Gr(l,Ls(ZS));return ar(s,D,n,l,d)}),z8=lr(function(s,l){return ar(s,F,n,n,n,l)});function G8(s,l){if(typeof s!="function")throw new fn(a);return l=l===n?l:Oe(l),Ie(s,l)}function Y8(s,l){if(typeof s!="function")throw new fn(a);return l=l==null?0:mt(Oe(l),0),Ie(function(d){var g=d[l],w=Xr(d,0,l);return g&&zr(w,g),Kt(s,this,w)})}function H8(s,l,d){var g=!0,w=!0;if(typeof s!="function")throw new fn(a);return st(d)&&(g="leading"in d?!!d.leading:g,w="trailing"in d?!!d.trailing:w),XS(s,l,{leading:g,maxWait:l,trailing:w})}function q8(s){return GS(s,1)}function K8(s,l){return bm(im(l),s)}function X8(){if(!arguments.length)return[];var s=arguments[0];return Me(s)?s:[s]}function Z8(s){return hn(s,v)}function J8(s,l){return l=typeof l=="function"?l:n,hn(s,v,l)}function Q8(s){return hn(s,m|v)}function eB(s,l){return l=typeof l=="function"?l:n,hn(s,m|v,l)}function tB(s,l){return l==null||jw(s,l,gt(l))}function En(s,l){return s===l||s!==s&&l!==l}var nB=ec(Yh),rB=ec(function(s,l){return s>=l}),Li=zw(function(){return arguments}())?zw:function(s){return ot(s)&&ze.call(s,"callee")&&!_w.call(s,"callee")},Me=W.isArray,iB=fw?Xt(fw):dF;function Bt(s){return s!=null&&cc(s.length)&&!ur(s)}function ct(s){return ot(s)&&Bt(s)}function sB(s){return s===!0||s===!1||ot(s)&&It(s)==re}var Zr=xj||Im,oB=dw?Xt(dw):hF;function aB(s){return ot(s)&&s.nodeType===1&&!Qo(s)}function lB(s){if(s==null)return!0;if(Bt(s)&&(Me(s)||typeof s=="string"||typeof s.splice=="function"||Zr(s)||Rs(s)||Li(s)))return!s.length;var l=Mt(s);if(l==De||l==qt)return!s.size;if(Zo(s))return!Kh(s).length;for(var d in s)if(ze.call(s,d))return!1;return!0}function cB(s,l){return qo(s,l)}function uB(s,l,d){d=typeof d=="function"?d:n;var g=d?d(s,l):n;return g===n?qo(s,l,n,d):!!g}function wm(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 fB(s){return typeof s=="number"&&$w(s)}function ur(s){if(!st(s))return!1;var l=It(s);return l==ie||l==pe||l==oe||l==wl}function JS(s){return typeof s=="number"&&s==Oe(s)}function cc(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 QS=hw?Xt(hw):pF;function dB(s,l){return s===l||qh(s,l,fm(l))}function hB(s,l,d){return d=typeof d=="function"?d:n,qh(s,l,fm(l),d)}function mB(s){return eT(s)&&s!=+s}function pB(s){if(JF(s))throw new Ae(o);return Gw(s)}function gB(s){return s===null}function yB(s){return s==null}function eT(s){return typeof s=="number"||ot(s)&&It(s)==ft}function Qo(s){if(!ot(s)||It(s)!=dt)return!1;var l=Ll(s);if(l===null)return!0;var d=ze.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&$l.call(d)==hj}var Sm=mw?Xt(mw):gF;function vB(s){return JS(s)&&s>=-9007199254740991&&s<=B}var tT=pw?Xt(pw):yF;function uc(s){return typeof s=="string"||!Me(s)&&ot(s)&&It(s)==bn}function Jt(s){return typeof s=="symbol"||ot(s)&&It(s)==Ai}var Rs=gw?Xt(gw):vF;function xB(s){return s===n}function bB(s){return ot(s)&&Mt(s)==Wr}function wB(s){return ot(s)&&It(s)==Tl}var SB=ec(Xh),TB=ec(function(s,l){return s<=l});function nT(s){if(!s)return[];if(Bt(s))return uc(s)?Sn(s):Vt(s);if(Vo&&s[Vo])return tj(s[Vo]());var l=Mt(s),d=l==De?Rh:l==qt?Ol:js;return d(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*Y}return s===s?s:0}function Oe(s){var l=fr(s),d=l%1;return l===l?d?l-d:l:0}function rT(s){return s?$i(Oe(s),0,k):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=Sw(s);var d=iR.test(s);return d||oR.test(s)?jR(s.slice(2),d?2:8):rR.test(s)?O:+s}function iT(s){return zn(s,Wt(s))}function EB(s){return s?$i(Oe(s),-9007199254740991,B):s===0?s:0}function Be(s){return s==null?"":Zt(s)}var CB=Ns(function(s,l){if(Zo(l)||Bt(l)){zn(l,gt(l),s);return}for(var d in l)ze.call(l,d)&&Go(s,d,l[d])}),sT=Ns(function(s,l){zn(l,Wt(l),s)}),fc=Ns(function(s,l,d,g){zn(l,Wt(l),s,g)}),PB=Ns(function(s,l,d,g){zn(l,gt(l),s,g)}),AB=lr(Uh);function MB(s,l){var d=Ds(s);return l==null?d:Rw(d,l)}var OB=Ie(function(s,l){s=Ye(s);var d=-1,g=l.length,w=g>2?l[2]:n;for(w&&$t(l[0],l[1],w)&&(g=1);++d<g;)for(var M=l[d],I=Wt(M),N=-1,R=I.length;++N<R;){var H=I[N],q=s[H];(q===n||En(q,_s[H])&&!ze.call(s,H))&&(s[H]=M[H])}return s}),_B=Ie(function(s){return s.push(n,SS),Kt(oT,n,s)});function IB(s,l){return vw(s,be(l,3),Un)}function $B(s,l){return vw(s,be(l,3),Gh)}function DB(s,l){return s==null?s:zh(s,be(l,3),Wt)}function NB(s,l){return s==null?s:Ww(s,be(l,3),Wt)}function kB(s,l){return s&&Un(s,be(l,3))}function LB(s,l){return s&&Gh(s,be(l,3))}function RB(s){return s==null?[]:Yl(s,gt(s))}function jB(s){return s==null?[]:Yl(s,Wt(s))}function Tm(s,l,d){var g=s==null?n:Di(s,l);return g===n?d:g}function FB(s,l){return s!=null&&CS(s,l,lF)}function Em(s,l){return s!=null&&CS(s,l,cF)}var VB=yS(function(s,l,d){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),s[l]=d},Pm(Ut)),BB=yS(function(s,l,d){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),ze.call(s,l)?s[l].push(d):s[l]=[d]},be),WB=Ie(Ho);function gt(s){return Bt(s)?kw(s):Kh(s)}function Wt(s){return Bt(s)?kw(s,!0):xF(s)}function UB(s,l){var d={};return l=be(l,3),Un(s,function(g,w,M){or(d,l(g,w,M),g)}),d}function zB(s,l){var d={};return l=be(l,3),Un(s,function(g,w,M){or(d,w,l(g,w,M))}),d}var GB=Ns(function(s,l,d){Hl(s,l,d)}),oT=Ns(function(s,l,d,g){Hl(s,l,d,g)}),YB=lr(function(s,l){var d={};if(s==null)return d;var g=!1;l=et(l,function(M){return M=Kr(M,s),g||(g=M.length>1),M}),zn(s,cm(s),d),g&&(d=hn(d,m|p|v,VF));for(var w=l.length;w--;)tm(d,l[w]);return d});function HB(s,l){return aT(s,lc(be(l)))}var qB=lr(function(s,l){return s==null?{}:wF(s,l)});function aT(s,l){if(s==null)return{};var d=et(cm(s),function(g){return[g]});return l=be(l),Jw(s,d,function(g,w){return l(g,w[0])})}function KB(s,l,d){l=Kr(l,s);var g=-1,w=l.length;for(w||(w=1,s=n);++g<w;){var M=s==null?n:s[Gn(l[g])];M===n&&(g=w,M=d),s=ur(M)?M.call(s):M}return s}function XB(s,l,d){return s==null?s:Ko(s,l,d)}function ZB(s,l,d,g){return g=typeof g=="function"?g:n,s==null?s:Ko(s,l,d,g)}var lT=bS(gt),cT=bS(Wt);function JB(s,l,d){var g=Me(s),w=g||Zr(s)||Rs(s);if(l=be(l,4),d==null){var M=s&&s.constructor;w?d=g?new M:[]:st(s)?d=ur(M)?Ds(Ll(s)):{}:d={}}return(w?un:Un)(s,function(I,N,R){return l(d,I,N,R)}),d}function QB(s,l){return s==null?!0:tm(s,l)}function e9(s,l,d){return s==null?s:rS(s,l,im(d))}function t9(s,l,d,g){return g=typeof g=="function"?g:n,s==null?s:rS(s,l,im(d),g)}function js(s){return s==null?[]:Lh(s,gt(s))}function n9(s){return s==null?[]:Lh(s,Wt(s))}function r9(s,l,d){return d===n&&(d=l,l=n),d!==n&&(d=gn(d),d=d===d?d:0),l!==n&&(l=gn(l),l=l===l?l:0),$i(gn(s),l,d)}function i9(s,l,d){return l=fr(l),d===n?(d=l,l=0):d=fr(d),s=gn(s),uF(s,l,d)}function s9(s,l,d){if(d&&typeof d!="boolean"&&$t(s,l,d)&&(l=d=n),d===n&&(typeof l=="boolean"?(d=l,l=n):typeof s=="boolean"&&(d=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(d||s%1||l%1){var w=Dw();return At(s+w*(l-s+RR("1e-"+((w+"").length-1))),l)}return Jh(s,l)}var o9=ks(function(s,l,d){return l=l.toLowerCase(),s+(d?uT(l):l)});function uT(s){return Cm(Be(s).toLowerCase())}function fT(s){return s=Be(s),s&&s.replace(lR,XR).replace(AR,"")}function a9(s,l,d){s=Be(s),l=Zt(l);var g=s.length;d=d===n?g:$i(Oe(d),0,g);var w=d;return d-=l.length,d>=0&&s.slice(d,w)==l}function l9(s){return s=Be(s),s&&WL.test(s)?s.replace(W2,ZR):s}function c9(s){return s=Be(s),s&&qL.test(s)?s.replace(bh,"\\$&"):s}var u9=ks(function(s,l,d){return s+(d?"-":"")+l.toLowerCase()}),f9=ks(function(s,l,d){return s+(d?" ":"")+l.toLowerCase()}),d9=mS("toLowerCase");function h9(s,l,d){s=Be(s),l=Oe(l);var g=l?Ms(s):0;if(!l||g>=l)return s;var w=(l-g)/2;return Ql(Vl(w),d)+s+Ql(Fl(w),d)}function m9(s,l,d){s=Be(s),l=Oe(l);var g=l?Ms(s):0;return l&&g<l?s+Ql(l-g,d):s}function p9(s,l,d){s=Be(s),l=Oe(l);var g=l?Ms(s):0;return l&&g<l?Ql(l-g,d)+s:s}function g9(s,l,d){return d||l==null?l=0:l&&(l=+l),Tj(Be(s).replace(wh,""),l||0)}function y9(s,l,d){return(d?$t(s,l,d):l===n)?l=1:l=Oe(l),Qh(Be(s),l)}function v9(){var s=arguments,l=Be(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var x9=ks(function(s,l,d){return s+(d?"_":"")+l.toLowerCase()});function b9(s,l,d){return d&&typeof d!="number"&&$t(s,l,d)&&(l=d=n),d=d===n?k:d>>>0,d?(s=Be(s),s&&(typeof l=="string"||l!=null&&!Sm(l))&&(l=Zt(l),!l&&As(s))?Xr(Sn(s),0,d):s.split(l,d)):[]}var w9=ks(function(s,l,d){return s+(d?" ":"")+Cm(l)});function S9(s,l,d){return s=Be(s),d=d==null?0:$i(Oe(d),0,s.length),l=Zt(l),s.slice(d,d+l.length)==l}function T9(s,l,d){var g=P.templateSettings;d&&$t(s,l,d)&&(l=n),s=Be(s),l=fc({},l,g,wS);var w=fc({},l.imports,g.imports,wS),M=gt(w),I=Lh(w,M),N,R,H=0,q=l.interpolate||El,X="__p += '",ce=jh((l.escape||El).source+"|"+q.source+"|"+(q===U2?nR:El).source+"|"+(l.evaluate||El).source+"|$","g"),ye="//# sourceURL="+(ze.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$R+"]")+`
634
+ `)}function KF(s){return Me(s)||Li(s)||!!($w&&s&&s[$w])}function cr(s,l){var d=typeof s;return l=l??B,!!l&&(d=="number"||d!="symbol"&&aR.test(s))&&s>-1&&s%1==0&&s<l}function $t(s,l,d){if(!st(d))return!1;var g=typeof l;return(g=="number"?Bt(d)&&cr(l,d.length):g=="string"&&l in d)?En(d[l],s):!1}function hm(s,l){if(Me(s))return!1;var d=typeof s;return d=="number"||d=="symbol"||d=="boolean"||s==null||Jt(s)?!0:YL.test(s)||!GL.test(s)||l!=null&&s in Ye(l)}function XF(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function mm(s){var l=tc(s),d=P[l];if(typeof d!="function"||!(l in ke.prototype))return!1;if(s===d)return!0;var g=um(d);return!!g&&s===g[0]}function ZF(s){return!!Mw&&Mw in s}var JF=Il?ur:Im;function Zo(s){var l=s&&s.constructor,d=typeof l=="function"&&l.prototype||_s;return s===d}function MS(s){return s===s&&!st(s)}function OS(s,l){return function(d){return d==null?!1:d[s]===l&&(l!==n||s in Ye(d))}}function QF(s){var l=ac(s,function(g){return d.size===f&&d.clear(),g}),d=l.cache;return l}function eV(s,l){var d=s[1],g=l[1],w=d|g,M=w<(T|b|j),I=g==j&&d==E||g==j&&d==F&&s[7].length<=l[8]||g==(j|F)&&l[7].length<=l[8]&&d==E;if(!(M||I))return s;g&T&&(s[2]=l[2],w|=d&T?0:A);var N=l[3];if(N){var R=s[3];s[3]=R?fS(R,N,l[4]):N,s[4]=R?Gr(s[3],h):l[4]}return N=l[5],N&&(R=s[5],s[5]=R?dS(R,N,l[6]):N,s[6]=R?Gr(s[5],h):l[6]),N=l[7],N&&(s[7]=N),g&j&&(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]=w,s}function tV(s){var l=[];if(s!=null)for(var d in Ye(s))l.push(d);return l}function nV(s){return Dl.call(s)}function _S(s,l,d){return l=mt(l===n?s.length-1:l,0),function(){for(var g=arguments,w=-1,M=mt(g.length-l,0),I=W(M);++w<M;)I[w]=g[l+w];w=-1;for(var N=W(l+1);++w<l;)N[w]=g[w];return N[l]=d(I),Kt(s,this,N)}}function IS(s,l){return l.length<2?s:Di(s,mn(l,0,-1))}function rV(s,l){for(var d=s.length,g=At(l.length,d),w=Vt(s);g--;){var M=l[g];s[g]=cr(M,d)?w[M]:n}return s}function pm(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var $S=NS(tS),Jo=vj||function(s,l){return xt.setTimeout(s,l)},gm=NS(PF);function DS(s,l,d){var g=l+"";return gm(s,qF(g,iV(GF(g),d)))}function NS(s){var l=0,d=0;return function(){var g=Sj(),w=ge-(g-d);if(d=g,w>0){if(++l>=se)return arguments[0]}else l=0;return s.apply(n,arguments)}}function rc(s,l){var d=-1,g=s.length,w=g-1;for(l=l===n?g:l;++d<l;){var M=Jh(d,w),I=s[M];s[M]=s[d],s[d]=I}return s.length=l,s}var kS=QF(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(HL,function(d,g,w,M){l.push(w?M.replace(tR,"$1"):g||d)}),l});function Gn(s){if(typeof s=="string"||Jt(s))return s;var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function ki(s){if(s!=null){try{return $l.call(s)}catch{}try{return s+""}catch{}}return""}function iV(s,l){return un(le,function(d){var g="_."+d[0];l&d[1]&&!Al(s,g)&&s.push(g)}),s.sort()}function LS(s){if(s instanceof ke)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 sV(s,l,d){(d?$t(s,l,d):l===n)?l=1:l=mt(Oe(l),0);var g=s==null?0:s.length;if(!g||l<1)return[];for(var w=0,M=0,I=W(Fl(g/l));w<g;)I[M++]=mn(s,w,w+=l);return I}function oV(s){for(var l=-1,d=s==null?0:s.length,g=0,w=[];++l<d;){var M=s[l];M&&(w[g++]=M)}return w}function aV(){var s=arguments.length;if(!s)return[];for(var l=W(s-1),d=arguments[0],g=s;g--;)l[g-1]=arguments[g];return zr(Me(d)?Vt(d):[d],bt(l,1))}var lV=Ie(function(s,l){return ct(s)?Yo(s,bt(l,1,ct,!0)):[]}),cV=Ie(function(s,l){var d=pn(l);return ct(d)&&(d=n),ct(s)?Yo(s,bt(l,1,ct,!0),be(d,2)):[]}),uV=Ie(function(s,l){var d=pn(l);return ct(d)&&(d=n),ct(s)?Yo(s,bt(l,1,ct,!0),n,d):[]});function fV(s,l,d){var g=s==null?0:s.length;return g?(l=d||l===n?1:Oe(l),mn(s,l<0?0:l,g)):[]}function dV(s,l,d){var g=s==null?0:s.length;return g?(l=d||l===n?1:Oe(l),l=g-l,mn(s,0,l<0?0:l)):[]}function hV(s,l){return s&&s.length?Kl(s,be(l,3),!0,!0):[]}function mV(s,l){return s&&s.length?Kl(s,be(l,3),!0):[]}function pV(s,l,d,g){var w=s==null?0:s.length;return w?(d&&typeof d!="number"&&$t(s,l,d)&&(d=0,g=w),aF(s,l,d,g)):[]}function RS(s,l,d){var g=s==null?0:s.length;if(!g)return-1;var w=d==null?0:Oe(d);return w<0&&(w=mt(g+w,0)),Ml(s,be(l,3),w)}function jS(s,l,d){var g=s==null?0:s.length;if(!g)return-1;var w=g-1;return d!==n&&(w=Oe(d),w=d<0?mt(g+w,0):At(w,g-1)),Ml(s,be(l,3),w,!0)}function FS(s){var l=s==null?0:s.length;return l?bt(s,1):[]}function gV(s){var l=s==null?0:s.length;return l?bt(s,V):[]}function yV(s,l){var d=s==null?0:s.length;return d?(l=l===n?1:Oe(l),bt(s,l)):[]}function vV(s){for(var l=-1,d=s==null?0:s.length,g={};++l<d;){var w=s[l];g[w[0]]=w[1]}return g}function VS(s){return s&&s.length?s[0]:n}function xV(s,l,d){var g=s==null?0:s.length;if(!g)return-1;var w=d==null?0:Oe(d);return w<0&&(w=mt(g+w,0)),Ps(s,l,w)}function bV(s){var l=s==null?0:s.length;return l?mn(s,0,-1):[]}var wV=Ie(function(s){var l=et(s,rm);return l.length&&l[0]===s[0]?Hh(l):[]}),SV=Ie(function(s){var l=pn(s),d=et(s,rm);return l===pn(d)?l=n:d.pop(),d.length&&d[0]===s[0]?Hh(d,be(l,2)):[]}),TV=Ie(function(s){var l=pn(s),d=et(s,rm);return l=typeof l=="function"?l:n,l&&d.pop(),d.length&&d[0]===s[0]?Hh(d,n,l):[]});function EV(s,l){return s==null?"":bj.call(s,l)}function pn(s){var l=s==null?0:s.length;return l?s[l-1]:n}function CV(s,l,d){var g=s==null?0:s.length;if(!g)return-1;var w=g;return d!==n&&(w=Oe(d),w=w<0?mt(g+w,0):At(w,g-1)),l===l?ij(s,l,w):Ml(s,bw,w,!0)}function PV(s,l){return s&&s.length?Zw(s,Oe(l)):n}var AV=Ie(BS);function BS(s,l){return s&&s.length&&l&&l.length?Zh(s,l):s}function MV(s,l,d){return s&&s.length&&l&&l.length?Zh(s,l,be(d,2)):s}function OV(s,l,d){return s&&s.length&&l&&l.length?Zh(s,l,n,d):s}var _V=lr(function(s,l){var d=s==null?0:s.length,g=Uh(s,l);return eS(s,et(l,function(w){return cr(w,d)?+w:w}).sort(uS)),g});function IV(s,l){var d=[];if(!(s&&s.length))return d;var g=-1,w=[],M=s.length;for(l=be(l,3);++g<M;){var I=s[g];l(I,g,s)&&(d.push(I),w.push(g))}return eS(s,w),d}function ym(s){return s==null?s:Ej.call(s)}function $V(s,l,d){var g=s==null?0:s.length;return g?(d&&typeof d!="number"&&$t(s,l,d)?(l=0,d=g):(l=l==null?0:Oe(l),d=d===n?g:Oe(d)),mn(s,l,d)):[]}function DV(s,l){return ql(s,l)}function NV(s,l,d){return em(s,l,be(d,2))}function kV(s,l){var d=s==null?0:s.length;if(d){var g=ql(s,l);if(g<d&&En(s[g],l))return g}return-1}function LV(s,l){return ql(s,l,!0)}function RV(s,l,d){return em(s,l,be(d,2),!0)}function jV(s,l){var d=s==null?0:s.length;if(d){var g=ql(s,l,!0)-1;if(En(s[g],l))return g}return-1}function FV(s){return s&&s.length?nS(s):[]}function VV(s,l){return s&&s.length?nS(s,be(l,2)):[]}function BV(s){var l=s==null?0:s.length;return l?mn(s,1,l):[]}function WV(s,l,d){return s&&s.length?(l=d||l===n?1:Oe(l),mn(s,0,l<0?0:l)):[]}function UV(s,l,d){var g=s==null?0:s.length;return g?(l=d||l===n?1:Oe(l),l=g-l,mn(s,l<0?0:l,g)):[]}function zV(s,l){return s&&s.length?Kl(s,be(l,3),!1,!0):[]}function GV(s,l){return s&&s.length?Kl(s,be(l,3)):[]}var YV=Ie(function(s){return qr(bt(s,1,ct,!0))}),HV=Ie(function(s){var l=pn(s);return ct(l)&&(l=n),qr(bt(s,1,ct,!0),be(l,2))}),qV=Ie(function(s){var l=pn(s);return l=typeof l=="function"?l:n,qr(bt(s,1,ct,!0),n,l)});function KV(s){return s&&s.length?qr(s):[]}function XV(s,l){return s&&s.length?qr(s,be(l,2)):[]}function ZV(s,l){return l=typeof l=="function"?l:n,s&&s.length?qr(s,n,l):[]}function vm(s){if(!(s&&s.length))return[];var l=0;return s=Ur(s,function(d){if(ct(d))return l=mt(d.length,l),!0}),kh(l,function(d){return et(s,$h(d))})}function WS(s,l){if(!(s&&s.length))return[];var d=vm(s);return l==null?d:et(d,function(g){return Kt(l,n,g)})}var JV=Ie(function(s,l){return ct(s)?Yo(s,l):[]}),QV=Ie(function(s){return nm(Ur(s,ct))}),e8=Ie(function(s){var l=pn(s);return ct(l)&&(l=n),nm(Ur(s,ct),be(l,2))}),t8=Ie(function(s){var l=pn(s);return l=typeof l=="function"?l:n,nm(Ur(s,ct),n,l)}),n8=Ie(vm);function r8(s,l){return oS(s||[],l||[],Go)}function i8(s,l){return oS(s||[],l||[],Ko)}var s8=Ie(function(s){var l=s.length,d=l>1?s[l-1]:n;return d=typeof d=="function"?(s.pop(),d):n,WS(s,d)});function US(s){var l=P(s);return l.__chain__=!0,l}function o8(s,l){return l(s),s}function ic(s,l){return l(s)}var a8=lr(function(s){var l=s.length,d=l?s[0]:0,g=this.__wrapped__,w=function(M){return Uh(M,s)};return l>1||this.__actions__.length||!(g instanceof ke)||!cr(d)?this.thru(w):(g=g.slice(d,+d+(l?1:0)),g.__actions__.push({func:ic,args:[w],thisArg:n}),new dn(g,this.__chain__).thru(function(M){return l&&!M.length&&M.push(n),M}))});function l8(){return US(this)}function c8(){return new dn(this.value(),this.__chain__)}function u8(){this.__values__===n&&(this.__values__=rT(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function f8(){return this}function d8(s){for(var l,d=this;d instanceof Ul;){var g=LS(d);g.__index__=0,g.__values__=n,l?w.__wrapped__=g:l=g;var w=g;d=d.__wrapped__}return w.__wrapped__=s,l}function h8(){var s=this.__wrapped__;if(s instanceof ke){var l=s;return this.__actions__.length&&(l=new ke(this)),l=l.reverse(),l.__actions__.push({func:ic,args:[ym],thisArg:n}),new dn(l,this.__chain__)}return this.thru(ym)}function m8(){return sS(this.__wrapped__,this.__actions__)}var p8=Xl(function(s,l,d){ze.call(s,d)?++s[d]:or(s,d,1)});function g8(s,l,d){var g=Me(s)?vw:oF;return d&&$t(s,l,d)&&(l=n),g(s,be(l,3))}function y8(s,l){var d=Me(s)?Ur:Ww;return d(s,be(l,3))}var v8=gS(RS),x8=gS(jS);function b8(s,l){return bt(sc(s,l),1)}function w8(s,l){return bt(sc(s,l),V)}function S8(s,l,d){return d=d===n?1:Oe(d),bt(sc(s,l),d)}function zS(s,l){var d=Me(s)?un:Hr;return d(s,be(l,3))}function GS(s,l){var d=Me(s)?BR:Bw;return d(s,be(l,3))}var T8=Xl(function(s,l,d){ze.call(s,d)?s[d].push(l):or(s,d,[l])});function E8(s,l,d,g){s=Bt(s)?s:js(s),d=d&&!g?Oe(d):0;var w=s.length;return d<0&&(d=mt(w+d,0)),uc(s)?d<=w&&s.indexOf(l,d)>-1:!!w&&Ps(s,l,d)>-1}var C8=Ie(function(s,l,d){var g=-1,w=typeof l=="function",M=Bt(s)?W(s.length):[];return Hr(s,function(I){M[++g]=w?Kt(l,I,d):Ho(I,l,d)}),M}),P8=Xl(function(s,l,d){or(s,d,l)});function sc(s,l){var d=Me(s)?et:qw;return d(s,be(l,3))}function A8(s,l,d,g){return s==null?[]:(Me(l)||(l=l==null?[]:[l]),d=g?n:d,Me(d)||(d=d==null?[]:[d]),Jw(s,l,d))}var M8=Xl(function(s,l,d){s[d?0:1].push(l)},function(){return[[],[]]});function O8(s,l,d){var g=Me(s)?_h:Sw,w=arguments.length<3;return g(s,be(l,4),d,w,Hr)}function _8(s,l,d){var g=Me(s)?WR:Sw,w=arguments.length<3;return g(s,be(l,4),d,w,Bw)}function I8(s,l){var d=Me(s)?Ur:Ww;return d(s,lc(be(l,3)))}function $8(s){var l=Me(s)?Rw:EF;return l(s)}function D8(s,l,d){(d?$t(s,l,d):l===n)?l=1:l=Oe(l);var g=Me(s)?tF:CF;return g(s,l)}function N8(s){var l=Me(s)?nF:AF;return l(s)}function k8(s){if(s==null)return 0;if(Bt(s))return uc(s)?Ms(s):s.length;var l=Mt(s);return l==De||l==qt?s.size:Kh(s).length}function L8(s,l,d){var g=Me(s)?Ih:MF;return d&&$t(s,l,d)&&(l=n),g(s,be(l,3))}var R8=Ie(function(s,l){if(s==null)return[];var d=l.length;return d>1&&$t(s,l[0],l[1])?l=[]:d>2&&$t(l[0],l[1],l[2])&&(l=[l[0]]),Jw(s,bt(l,1),[])}),oc=yj||function(){return xt.Date.now()};function j8(s,l){if(typeof l!="function")throw new fn(a);return s=Oe(s),function(){if(--s<1)return l.apply(this,arguments)}}function YS(s,l,d){return l=d?n:l,l=s&&l==null?s.length:l,ar(s,j,n,n,n,n,l)}function HS(s,l){var d;if(typeof l!="function")throw new fn(a);return s=Oe(s),function(){return--s>0&&(d=l.apply(this,arguments)),s<=1&&(l=n),d}}var xm=Ie(function(s,l,d){var g=T;if(d.length){var w=Gr(d,Ls(xm));g|=C}return ar(s,g,l,d,w)}),qS=Ie(function(s,l,d){var g=T|b;if(d.length){var w=Gr(d,Ls(qS));g|=C}return ar(l,g,s,d,w)});function KS(s,l,d){l=d?n:l;var g=ar(s,E,n,n,n,n,n,l);return g.placeholder=KS.placeholder,g}function XS(s,l,d){l=d?n:l;var g=ar(s,$,n,n,n,n,n,l);return g.placeholder=XS.placeholder,g}function ZS(s,l,d){var g,w,M,I,N,R,H=0,q=!1,X=!1,ce=!0;if(typeof s!="function")throw new fn(a);l=gn(l)||0,st(d)&&(q=!!d.leading,X="maxWait"in d,M=X?mt(gn(d.maxWait)||0,l):M,ce="trailing"in d?!!d.trailing:ce);function ye(ut){var Cn=g,dr=w;return g=w=n,H=ut,I=s.apply(dr,Cn),I}function Te(ut){return H=ut,N=Jo(Ne,l),q?ye(ut):I}function _e(ut){var Cn=ut-R,dr=ut-H,gT=l-Cn;return X?At(gT,M-dr):gT}function Ee(ut){var Cn=ut-R,dr=ut-H;return R===n||Cn>=l||Cn<0||X&&dr>=M}function Ne(){var ut=oc();if(Ee(ut))return Le(ut);N=Jo(Ne,_e(ut))}function Le(ut){return N=n,ce&&g?ye(ut):(g=w=n,I)}function Qt(){N!==n&&aS(N),H=0,g=R=w=N=n}function Dt(){return N===n?I:Le(oc())}function en(){var ut=oc(),Cn=Ee(ut);if(g=arguments,w=this,R=ut,Cn){if(N===n)return Te(R);if(X)return aS(N),N=Jo(Ne,l),ye(R)}return N===n&&(N=Jo(Ne,l)),I}return en.cancel=Qt,en.flush=Dt,en}var F8=Ie(function(s,l){return Vw(s,1,l)}),V8=Ie(function(s,l,d){return Vw(s,gn(l)||0,d)});function B8(s){return ar(s,U)}function ac(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new fn(a);var d=function(){var g=arguments,w=l?l.apply(this,g):g[0],M=d.cache;if(M.has(w))return M.get(w);var I=s.apply(this,g);return d.cache=M.set(w,I)||M,I};return d.cache=new(ac.Cache||sr),d}ac.Cache=sr;function lc(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 W8(s){return HS(2,s)}var U8=OF(function(s,l){l=l.length==1&&Me(l[0])?et(l[0],Xt(be())):et(bt(l,1),Xt(be()));var d=l.length;return Ie(function(g){for(var w=-1,M=At(g.length,d);++w<M;)g[w]=l[w].call(this,g[w]);return Kt(s,this,g)})}),bm=Ie(function(s,l){var d=Gr(l,Ls(bm));return ar(s,C,n,l,d)}),JS=Ie(function(s,l){var d=Gr(l,Ls(JS));return ar(s,D,n,l,d)}),z8=lr(function(s,l){return ar(s,F,n,n,n,l)});function G8(s,l){if(typeof s!="function")throw new fn(a);return l=l===n?l:Oe(l),Ie(s,l)}function Y8(s,l){if(typeof s!="function")throw new fn(a);return l=l==null?0:mt(Oe(l),0),Ie(function(d){var g=d[l],w=Xr(d,0,l);return g&&zr(w,g),Kt(s,this,w)})}function H8(s,l,d){var g=!0,w=!0;if(typeof s!="function")throw new fn(a);return st(d)&&(g="leading"in d?!!d.leading:g,w="trailing"in d?!!d.trailing:w),ZS(s,l,{leading:g,maxWait:l,trailing:w})}function q8(s){return YS(s,1)}function K8(s,l){return bm(im(l),s)}function X8(){if(!arguments.length)return[];var s=arguments[0];return Me(s)?s:[s]}function Z8(s){return hn(s,v)}function J8(s,l){return l=typeof l=="function"?l:n,hn(s,v,l)}function Q8(s){return hn(s,m|v)}function eB(s,l){return l=typeof l=="function"?l:n,hn(s,m|v,l)}function tB(s,l){return l==null||Fw(s,l,gt(l))}function En(s,l){return s===l||s!==s&&l!==l}var nB=ec(Yh),rB=ec(function(s,l){return s>=l}),Li=Gw(function(){return arguments}())?Gw:function(s){return ot(s)&&ze.call(s,"callee")&&!Iw.call(s,"callee")},Me=W.isArray,iB=dw?Xt(dw):dF;function Bt(s){return s!=null&&cc(s.length)&&!ur(s)}function ct(s){return ot(s)&&Bt(s)}function sB(s){return s===!0||s===!1||ot(s)&&It(s)==re}var Zr=xj||Im,oB=hw?Xt(hw):hF;function aB(s){return ot(s)&&s.nodeType===1&&!Qo(s)}function lB(s){if(s==null)return!0;if(Bt(s)&&(Me(s)||typeof s=="string"||typeof s.splice=="function"||Zr(s)||Rs(s)||Li(s)))return!s.length;var l=Mt(s);if(l==De||l==qt)return!s.size;if(Zo(s))return!Kh(s).length;for(var d in s)if(ze.call(s,d))return!1;return!0}function cB(s,l){return qo(s,l)}function uB(s,l,d){d=typeof d=="function"?d:n;var g=d?d(s,l):n;return g===n?qo(s,l,n,d):!!g}function wm(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 fB(s){return typeof s=="number"&&Dw(s)}function ur(s){if(!st(s))return!1;var l=It(s);return l==ie||l==pe||l==oe||l==wl}function QS(s){return typeof s=="number"&&s==Oe(s)}function cc(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 eT=mw?Xt(mw):pF;function dB(s,l){return s===l||qh(s,l,fm(l))}function hB(s,l,d){return d=typeof d=="function"?d:n,qh(s,l,fm(l),d)}function mB(s){return tT(s)&&s!=+s}function pB(s){if(JF(s))throw new Ae(o);return Yw(s)}function gB(s){return s===null}function yB(s){return s==null}function tT(s){return typeof s=="number"||ot(s)&&It(s)==ft}function Qo(s){if(!ot(s)||It(s)!=dt)return!1;var l=Ll(s);if(l===null)return!0;var d=ze.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&$l.call(d)==hj}var Sm=pw?Xt(pw):gF;function vB(s){return QS(s)&&s>=-9007199254740991&&s<=B}var nT=gw?Xt(gw):yF;function uc(s){return typeof s=="string"||!Me(s)&&ot(s)&&It(s)==bn}function Jt(s){return typeof s=="symbol"||ot(s)&&It(s)==Ai}var Rs=yw?Xt(yw):vF;function xB(s){return s===n}function bB(s){return ot(s)&&Mt(s)==Wr}function wB(s){return ot(s)&&It(s)==Tl}var SB=ec(Xh),TB=ec(function(s,l){return s<=l});function rT(s){if(!s)return[];if(Bt(s))return uc(s)?Sn(s):Vt(s);if(Vo&&s[Vo])return tj(s[Vo]());var l=Mt(s),d=l==De?Rh:l==qt?Ol:js;return d(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*Y}return s===s?s:0}function Oe(s){var l=fr(s),d=l%1;return l===l?d?l-d:l:0}function iT(s){return s?$i(Oe(s),0,k):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=Tw(s);var d=iR.test(s);return d||oR.test(s)?jR(s.slice(2),d?2:8):rR.test(s)?O:+s}function sT(s){return zn(s,Wt(s))}function EB(s){return s?$i(Oe(s),-9007199254740991,B):s===0?s:0}function Be(s){return s==null?"":Zt(s)}var CB=Ns(function(s,l){if(Zo(l)||Bt(l)){zn(l,gt(l),s);return}for(var d in l)ze.call(l,d)&&Go(s,d,l[d])}),oT=Ns(function(s,l){zn(l,Wt(l),s)}),fc=Ns(function(s,l,d,g){zn(l,Wt(l),s,g)}),PB=Ns(function(s,l,d,g){zn(l,gt(l),s,g)}),AB=lr(Uh);function MB(s,l){var d=Ds(s);return l==null?d:jw(d,l)}var OB=Ie(function(s,l){s=Ye(s);var d=-1,g=l.length,w=g>2?l[2]:n;for(w&&$t(l[0],l[1],w)&&(g=1);++d<g;)for(var M=l[d],I=Wt(M),N=-1,R=I.length;++N<R;){var H=I[N],q=s[H];(q===n||En(q,_s[H])&&!ze.call(s,H))&&(s[H]=M[H])}return s}),_B=Ie(function(s){return s.push(n,TS),Kt(aT,n,s)});function IB(s,l){return xw(s,be(l,3),Un)}function $B(s,l){return xw(s,be(l,3),Gh)}function DB(s,l){return s==null?s:zh(s,be(l,3),Wt)}function NB(s,l){return s==null?s:Uw(s,be(l,3),Wt)}function kB(s,l){return s&&Un(s,be(l,3))}function LB(s,l){return s&&Gh(s,be(l,3))}function RB(s){return s==null?[]:Yl(s,gt(s))}function jB(s){return s==null?[]:Yl(s,Wt(s))}function Tm(s,l,d){var g=s==null?n:Di(s,l);return g===n?d:g}function FB(s,l){return s!=null&&PS(s,l,lF)}function Em(s,l){return s!=null&&PS(s,l,cF)}var VB=vS(function(s,l,d){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),s[l]=d},Pm(Ut)),BB=vS(function(s,l,d){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),ze.call(s,l)?s[l].push(d):s[l]=[d]},be),WB=Ie(Ho);function gt(s){return Bt(s)?Lw(s):Kh(s)}function Wt(s){return Bt(s)?Lw(s,!0):xF(s)}function UB(s,l){var d={};return l=be(l,3),Un(s,function(g,w,M){or(d,l(g,w,M),g)}),d}function zB(s,l){var d={};return l=be(l,3),Un(s,function(g,w,M){or(d,w,l(g,w,M))}),d}var GB=Ns(function(s,l,d){Hl(s,l,d)}),aT=Ns(function(s,l,d,g){Hl(s,l,d,g)}),YB=lr(function(s,l){var d={};if(s==null)return d;var g=!1;l=et(l,function(M){return M=Kr(M,s),g||(g=M.length>1),M}),zn(s,cm(s),d),g&&(d=hn(d,m|p|v,VF));for(var w=l.length;w--;)tm(d,l[w]);return d});function HB(s,l){return lT(s,lc(be(l)))}var qB=lr(function(s,l){return s==null?{}:wF(s,l)});function lT(s,l){if(s==null)return{};var d=et(cm(s),function(g){return[g]});return l=be(l),Qw(s,d,function(g,w){return l(g,w[0])})}function KB(s,l,d){l=Kr(l,s);var g=-1,w=l.length;for(w||(w=1,s=n);++g<w;){var M=s==null?n:s[Gn(l[g])];M===n&&(g=w,M=d),s=ur(M)?M.call(s):M}return s}function XB(s,l,d){return s==null?s:Ko(s,l,d)}function ZB(s,l,d,g){return g=typeof g=="function"?g:n,s==null?s:Ko(s,l,d,g)}var cT=wS(gt),uT=wS(Wt);function JB(s,l,d){var g=Me(s),w=g||Zr(s)||Rs(s);if(l=be(l,4),d==null){var M=s&&s.constructor;w?d=g?new M:[]:st(s)?d=ur(M)?Ds(Ll(s)):{}:d={}}return(w?un:Un)(s,function(I,N,R){return l(d,I,N,R)}),d}function QB(s,l){return s==null?!0:tm(s,l)}function e9(s,l,d){return s==null?s:iS(s,l,im(d))}function t9(s,l,d,g){return g=typeof g=="function"?g:n,s==null?s:iS(s,l,im(d),g)}function js(s){return s==null?[]:Lh(s,gt(s))}function n9(s){return s==null?[]:Lh(s,Wt(s))}function r9(s,l,d){return d===n&&(d=l,l=n),d!==n&&(d=gn(d),d=d===d?d:0),l!==n&&(l=gn(l),l=l===l?l:0),$i(gn(s),l,d)}function i9(s,l,d){return l=fr(l),d===n?(d=l,l=0):d=fr(d),s=gn(s),uF(s,l,d)}function s9(s,l,d){if(d&&typeof d!="boolean"&&$t(s,l,d)&&(l=d=n),d===n&&(typeof l=="boolean"?(d=l,l=n):typeof s=="boolean"&&(d=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(d||s%1||l%1){var w=Nw();return At(s+w*(l-s+RR("1e-"+((w+"").length-1))),l)}return Jh(s,l)}var o9=ks(function(s,l,d){return l=l.toLowerCase(),s+(d?fT(l):l)});function fT(s){return Cm(Be(s).toLowerCase())}function dT(s){return s=Be(s),s&&s.replace(lR,XR).replace(AR,"")}function a9(s,l,d){s=Be(s),l=Zt(l);var g=s.length;d=d===n?g:$i(Oe(d),0,g);var w=d;return d-=l.length,d>=0&&s.slice(d,w)==l}function l9(s){return s=Be(s),s&&WL.test(s)?s.replace(U2,ZR):s}function c9(s){return s=Be(s),s&&qL.test(s)?s.replace(bh,"\\$&"):s}var u9=ks(function(s,l,d){return s+(d?"-":"")+l.toLowerCase()}),f9=ks(function(s,l,d){return s+(d?" ":"")+l.toLowerCase()}),d9=pS("toLowerCase");function h9(s,l,d){s=Be(s),l=Oe(l);var g=l?Ms(s):0;if(!l||g>=l)return s;var w=(l-g)/2;return Ql(Vl(w),d)+s+Ql(Fl(w),d)}function m9(s,l,d){s=Be(s),l=Oe(l);var g=l?Ms(s):0;return l&&g<l?s+Ql(l-g,d):s}function p9(s,l,d){s=Be(s),l=Oe(l);var g=l?Ms(s):0;return l&&g<l?Ql(l-g,d)+s:s}function g9(s,l,d){return d||l==null?l=0:l&&(l=+l),Tj(Be(s).replace(wh,""),l||0)}function y9(s,l,d){return(d?$t(s,l,d):l===n)?l=1:l=Oe(l),Qh(Be(s),l)}function v9(){var s=arguments,l=Be(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var x9=ks(function(s,l,d){return s+(d?"_":"")+l.toLowerCase()});function b9(s,l,d){return d&&typeof d!="number"&&$t(s,l,d)&&(l=d=n),d=d===n?k:d>>>0,d?(s=Be(s),s&&(typeof l=="string"||l!=null&&!Sm(l))&&(l=Zt(l),!l&&As(s))?Xr(Sn(s),0,d):s.split(l,d)):[]}var w9=ks(function(s,l,d){return s+(d?" ":"")+Cm(l)});function S9(s,l,d){return s=Be(s),d=d==null?0:$i(Oe(d),0,s.length),l=Zt(l),s.slice(d,d+l.length)==l}function T9(s,l,d){var g=P.templateSettings;d&&$t(s,l,d)&&(l=n),s=Be(s),l=fc({},l,g,SS);var w=fc({},l.imports,g.imports,SS),M=gt(w),I=Lh(w,M),N,R,H=0,q=l.interpolate||El,X="__p += '",ce=jh((l.escape||El).source+"|"+q.source+"|"+(q===z2?nR:El).source+"|"+(l.evaluate||El).source+"|$","g"),ye="//# sourceURL="+(ze.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$R+"]")+`
635
635
  `;s.replace(ce,function(Ee,Ne,Le,Qt,Dt,en){return Le||(Le=Qt),X+=s.slice(H,en).replace(cR,JR),Ne&&(N=!0,X+=`' +
636
636
  __e(`+Ne+`) +
637
637
  '`),Dt&&(R=!0,X+=`';
@@ -648,7 +648,7 @@ __p += '`),Le&&(X+=`' +
648
648
  function print() { __p += __j.call(arguments, '') }
649
649
  `:`;
650
650
  `)+X+`return __p
651
- }`;var _e=hT(function(){return Re(M,ye+"return "+X).apply(n,I)});if(_e.source=X,wm(_e))throw _e;return _e}function E9(s){return Be(s).toLowerCase()}function C9(s){return Be(s).toUpperCase()}function P9(s,l,d){if(s=Be(s),s&&(d||l===n))return Sw(s);if(!s||!(l=Zt(l)))return s;var g=Sn(s),w=Sn(l),M=Tw(g,w),I=Ew(g,w)+1;return Xr(g,M,I).join("")}function A9(s,l,d){if(s=Be(s),s&&(d||l===n))return s.slice(0,Pw(s)+1);if(!s||!(l=Zt(l)))return s;var g=Sn(s),w=Ew(g,Sn(l))+1;return Xr(g,0,w).join("")}function M9(s,l,d){if(s=Be(s),s&&(d||l===n))return s.replace(wh,"");if(!s||!(l=Zt(l)))return s;var g=Sn(s),w=Tw(g,Sn(l));return Xr(g,w).join("")}function O9(s,l){var d=Z,g=ee;if(st(l)){var w="separator"in l?l.separator:w;d="length"in l?Oe(l.length):d,g="omission"in l?Zt(l.omission):g}s=Be(s);var M=s.length;if(As(s)){var I=Sn(s);M=I.length}if(d>=M)return s;var N=d-Ms(g);if(N<1)return g;var R=I?Xr(I,0,N).join(""):s.slice(0,N);if(w===n)return R+g;if(I&&(N+=R.length-N),Sm(w)){if(s.slice(N).search(w)){var H,q=R;for(w.global||(w=jh(w.source,Be(z2.exec(w))+"g")),w.lastIndex=0;H=w.exec(q);)var X=H.index;R=R.slice(0,X===n?N:X)}}else if(s.indexOf(Zt(w),N)!=N){var ce=R.lastIndexOf(w);ce>-1&&(R=R.slice(0,ce))}return R+g}function _9(s){return s=Be(s),s&&BL.test(s)?s.replace(B2,sj):s}var I9=ks(function(s,l,d){return s+(d?" ":"")+l.toUpperCase()}),Cm=mS("toUpperCase");function dT(s,l,d){return s=Be(s),l=d?n:l,l===n?ej(s)?lj(s):GR(s):s.match(l)||[]}var hT=Ie(function(s,l){try{return Kt(s,n,l)}catch(d){return wm(d)?d:new Ae(d)}}),$9=lr(function(s,l){return un(l,function(d){d=Gn(d),or(s,d,xm(s[d],s))}),s});function D9(s){var l=s==null?0:s.length,d=be();return s=l?et(s,function(g){if(typeof g[1]!="function")throw new fn(a);return[d(g[0]),g[1]]}):[],Ie(function(g){for(var w=-1;++w<l;){var M=s[w];if(Kt(M[0],this,g))return Kt(M[1],this,g)}})}function N9(s){return sF(hn(s,m))}function Pm(s){return function(){return s}}function k9(s,l){return s==null||s!==s?l:s}var L9=gS(),R9=gS(!0);function Ut(s){return s}function Am(s){return Yw(typeof s=="function"?s:hn(s,m))}function j9(s){return qw(hn(s,m))}function F9(s,l){return Kw(s,hn(l,m))}var V9=Ie(function(s,l){return function(d){return Ho(d,s,l)}}),B9=Ie(function(s,l){return function(d){return Ho(s,d,l)}});function Mm(s,l,d){var g=gt(l),w=Yl(l,g);d==null&&!(st(l)&&(w.length||!g.length))&&(d=l,l=s,s=this,w=Yl(l,gt(l)));var M=!(st(d)&&"chain"in d)||!!d.chain,I=ur(s);return un(w,function(N){var R=l[N];s[N]=R,I&&(s.prototype[N]=function(){var H=this.__chain__;if(M||H){var q=s(this.__wrapped__),X=q.__actions__=Vt(this.__actions__);return X.push({func:R,args:arguments,thisArg:s}),q.__chain__=H,q}return R.apply(s,zr([this.value()],arguments))})}),s}function W9(){return xt._===this&&(xt._=mj),this}function Om(){}function U9(s){return s=Oe(s),Ie(function(l){return Xw(l,s)})}var z9=om(et),G9=om(yw),Y9=om(Ih);function mT(s){return hm(s)?$h(Gn(s)):SF(s)}function H9(s){return function(l){return s==null?n:Di(s,l)}}var q9=vS(),K9=vS(!0);function _m(){return[]}function Im(){return!1}function X9(){return{}}function Z9(){return""}function J9(){return!0}function Q9(s,l){if(s=Oe(s),s<1||s>B)return[];var d=k,g=At(s,k);l=be(l),s-=k;for(var w=kh(g,l);++d<s;)l(d);return w}function e7(s){return Me(s)?et(s,Gn):Jt(s)?[s]:Vt(NS(Be(s)))}function t7(s){var l=++dj;return Be(s)+l}var n7=Jl(function(s,l){return s+l},0),r7=am("ceil"),i7=Jl(function(s,l){return s/l},1),s7=am("floor");function o7(s){return s&&s.length?Gl(s,Ut,Yh):n}function a7(s,l){return s&&s.length?Gl(s,be(l,2),Yh):n}function l7(s){return bw(s,Ut)}function c7(s,l){return bw(s,be(l,2))}function u7(s){return s&&s.length?Gl(s,Ut,Xh):n}function f7(s,l){return s&&s.length?Gl(s,be(l,2),Xh):n}var d7=Jl(function(s,l){return s*l},1),h7=am("round"),m7=Jl(function(s,l){return s-l},0);function p7(s){return s&&s.length?Nh(s,Ut):0}function g7(s,l){return s&&s.length?Nh(s,be(l,2)):0}return P.after=j8,P.ary=GS,P.assign=CB,P.assignIn=sT,P.assignInWith=fc,P.assignWith=PB,P.at=AB,P.before=YS,P.bind=xm,P.bindAll=$9,P.bindKey=HS,P.castArray=X8,P.chain=WS,P.chunk=sV,P.compact=oV,P.concat=aV,P.cond=D9,P.conforms=N9,P.constant=Pm,P.countBy=p8,P.create=MB,P.curry=qS,P.curryRight=KS,P.debounce=XS,P.defaults=OB,P.defaultsDeep=_B,P.defer=F8,P.delay=V8,P.difference=lV,P.differenceBy=cV,P.differenceWith=uV,P.drop=fV,P.dropRight=dV,P.dropRightWhile=hV,P.dropWhile=mV,P.fill=pV,P.filter=y8,P.flatMap=b8,P.flatMapDeep=w8,P.flatMapDepth=S8,P.flatten=jS,P.flattenDeep=gV,P.flattenDepth=yV,P.flip=B8,P.flow=L9,P.flowRight=R9,P.fromPairs=vV,P.functions=RB,P.functionsIn=jB,P.groupBy=T8,P.initial=bV,P.intersection=wV,P.intersectionBy=SV,P.intersectionWith=TV,P.invert=VB,P.invertBy=BB,P.invokeMap=C8,P.iteratee=Am,P.keyBy=P8,P.keys=gt,P.keysIn=Wt,P.map=sc,P.mapKeys=UB,P.mapValues=zB,P.matches=j9,P.matchesProperty=F9,P.memoize=ac,P.merge=GB,P.mergeWith=oT,P.method=V9,P.methodOf=B9,P.mixin=Mm,P.negate=lc,P.nthArg=U9,P.omit=YB,P.omitBy=HB,P.once=W8,P.orderBy=A8,P.over=z9,P.overArgs=U8,P.overEvery=G9,P.overSome=Y9,P.partial=bm,P.partialRight=ZS,P.partition=M8,P.pick=qB,P.pickBy=aT,P.property=mT,P.propertyOf=H9,P.pull=AV,P.pullAll=VS,P.pullAllBy=MV,P.pullAllWith=OV,P.pullAt=_V,P.range=q9,P.rangeRight=K9,P.rearg=z8,P.reject=I8,P.remove=IV,P.rest=G8,P.reverse=ym,P.sampleSize=D8,P.set=XB,P.setWith=ZB,P.shuffle=N8,P.slice=$V,P.sortBy=R8,P.sortedUniq=FV,P.sortedUniqBy=VV,P.split=b9,P.spread=Y8,P.tail=BV,P.take=WV,P.takeRight=UV,P.takeRightWhile=zV,P.takeWhile=GV,P.tap=o8,P.throttle=H8,P.thru=ic,P.toArray=nT,P.toPairs=lT,P.toPairsIn=cT,P.toPath=e7,P.toPlainObject=iT,P.transform=JB,P.unary=q8,P.union=YV,P.unionBy=HV,P.unionWith=qV,P.uniq=KV,P.uniqBy=XV,P.uniqWith=ZV,P.unset=QB,P.unzip=vm,P.unzipWith=BS,P.update=e9,P.updateWith=t9,P.values=js,P.valuesIn=n9,P.without=JV,P.words=dT,P.wrap=K8,P.xor=QV,P.xorBy=e8,P.xorWith=t8,P.zip=n8,P.zipObject=r8,P.zipObjectDeep=i8,P.zipWith=s8,P.entries=lT,P.entriesIn=cT,P.extend=sT,P.extendWith=fc,Mm(P,P),P.add=n7,P.attempt=hT,P.camelCase=o9,P.capitalize=uT,P.ceil=r7,P.clamp=r9,P.clone=Z8,P.cloneDeep=Q8,P.cloneDeepWith=eB,P.cloneWith=J8,P.conformsTo=tB,P.deburr=fT,P.defaultTo=k9,P.divide=i7,P.endsWith=a9,P.eq=En,P.escape=l9,P.escapeRegExp=c9,P.every=g8,P.find=v8,P.findIndex=LS,P.findKey=IB,P.findLast=x8,P.findLastIndex=RS,P.findLastKey=$B,P.floor=s7,P.forEach=US,P.forEachRight=zS,P.forIn=DB,P.forInRight=NB,P.forOwn=kB,P.forOwnRight=LB,P.get=Tm,P.gt=nB,P.gte=rB,P.has=FB,P.hasIn=Em,P.head=FS,P.identity=Ut,P.includes=E8,P.indexOf=xV,P.inRange=i9,P.invoke=WB,P.isArguments=Li,P.isArray=Me,P.isArrayBuffer=iB,P.isArrayLike=Bt,P.isArrayLikeObject=ct,P.isBoolean=sB,P.isBuffer=Zr,P.isDate=oB,P.isElement=aB,P.isEmpty=lB,P.isEqual=cB,P.isEqualWith=uB,P.isError=wm,P.isFinite=fB,P.isFunction=ur,P.isInteger=JS,P.isLength=cc,P.isMap=QS,P.isMatch=dB,P.isMatchWith=hB,P.isNaN=mB,P.isNative=pB,P.isNil=yB,P.isNull=gB,P.isNumber=eT,P.isObject=st,P.isObjectLike=ot,P.isPlainObject=Qo,P.isRegExp=Sm,P.isSafeInteger=vB,P.isSet=tT,P.isString=uc,P.isSymbol=Jt,P.isTypedArray=Rs,P.isUndefined=xB,P.isWeakMap=bB,P.isWeakSet=wB,P.join=EV,P.kebabCase=u9,P.last=pn,P.lastIndexOf=CV,P.lowerCase=f9,P.lowerFirst=d9,P.lt=SB,P.lte=TB,P.max=o7,P.maxBy=a7,P.mean=l7,P.meanBy=c7,P.min=u7,P.minBy=f7,P.stubArray=_m,P.stubFalse=Im,P.stubObject=X9,P.stubString=Z9,P.stubTrue=J9,P.multiply=d7,P.nth=PV,P.noConflict=W9,P.noop=Om,P.now=oc,P.pad=h9,P.padEnd=m9,P.padStart=p9,P.parseInt=g9,P.random=s9,P.reduce=O8,P.reduceRight=_8,P.repeat=y9,P.replace=v9,P.result=KB,P.round=h7,P.runInContext=L,P.sample=$8,P.size=k8,P.snakeCase=x9,P.some=L8,P.sortedIndex=DV,P.sortedIndexBy=NV,P.sortedIndexOf=kV,P.sortedLastIndex=LV,P.sortedLastIndexBy=RV,P.sortedLastIndexOf=jV,P.startCase=w9,P.startsWith=S9,P.subtract=m7,P.sum=p7,P.sumBy=g7,P.template=T9,P.times=Q9,P.toFinite=fr,P.toInteger=Oe,P.toLength=rT,P.toLower=E9,P.toNumber=gn,P.toSafeInteger=EB,P.toString=Be,P.toUpper=C9,P.trim=P9,P.trimEnd=A9,P.trimStart=M9,P.truncate=O9,P.unescape=_9,P.uniqueId=t7,P.upperCase=I9,P.upperFirst=Cm,P.each=US,P.eachRight=zS,P.first=FS,Mm(P,function(){var s={};return Un(P,function(l,d){ze.call(P.prototype,d)||(s[d]=l)}),s}(),{chain:!1}),P.VERSION=r,un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){P[s].placeholder=P}),un(["drop","take"],function(s,l){ke.prototype[s]=function(d){d=d===n?1:mt(Oe(d),0);var g=this.__filtered__&&!l?new ke(this):this.clone();return g.__filtered__?g.__takeCount__=At(d,g.__takeCount__):g.__views__.push({size:At(d,k),type:s+(g.__dir__<0?"Right":"")}),g},ke.prototype[s+"Right"]=function(d){return this.reverse()[s](d).reverse()}}),un(["filter","map","takeWhile"],function(s,l){var d=l+1,g=d==ue||d==he;ke.prototype[s]=function(w){var M=this.clone();return M.__iteratees__.push({iteratee:be(w,3),type:d}),M.__filtered__=M.__filtered__||g,M}}),un(["head","last"],function(s,l){var d="take"+(l?"Right":"");ke.prototype[s]=function(){return this[d](1).value()[0]}}),un(["initial","tail"],function(s,l){var d="drop"+(l?"":"Right");ke.prototype[s]=function(){return this.__filtered__?new ke(this):this[d](1)}}),ke.prototype.compact=function(){return this.filter(Ut)},ke.prototype.find=function(s){return this.filter(s).head()},ke.prototype.findLast=function(s){return this.reverse().find(s)},ke.prototype.invokeMap=Ie(function(s,l){return typeof s=="function"?new ke(this):this.map(function(d){return Ho(d,s,l)})}),ke.prototype.reject=function(s){return this.filter(lc(be(s)))},ke.prototype.slice=function(s,l){s=Oe(s);var d=this;return d.__filtered__&&(s>0||l<0)?new ke(d):(s<0?d=d.takeRight(-s):s&&(d=d.drop(s)),l!==n&&(l=Oe(l),d=l<0?d.dropRight(-l):d.take(l-s)),d)},ke.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},ke.prototype.toArray=function(){return this.take(k)},Un(ke.prototype,function(s,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),w=P[g?"take"+(l=="last"?"Right":""):l],M=g||/^find/.test(l);w&&(P.prototype[l]=function(){var I=this.__wrapped__,N=g?[1]:arguments,R=I instanceof ke,H=N[0],q=R||Me(I),X=function(Ne){var Le=w.apply(P,zr([Ne],N));return g&&ce?Le[0]:Le};q&&d&&typeof H=="function"&&H.length!=1&&(R=q=!1);var ce=this.__chain__,ye=!!this.__actions__.length,Te=M&&!ce,_e=R&&!ye;if(!M&&q){I=_e?I:new ke(this);var Ee=s.apply(I,N);return Ee.__actions__.push({func:ic,args:[X],thisArg:n}),new dn(Ee,ce)}return Te&&_e?s.apply(this,N):(Ee=this.thru(X),Te?g?Ee.value()[0]:Ee.value():Ee)})}),un(["pop","push","shift","sort","splice","unshift"],function(s){var l=_l[s],d=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",g=/^(?:pop|shift)$/.test(s);P.prototype[s]=function(){var w=arguments;if(g&&!this.__chain__){var M=this.value();return l.apply(Me(M)?M:[],w)}return this[d](function(I){return l.apply(Me(I)?I:[],w)})}}),Un(ke.prototype,function(s,l){var d=P[l];if(d){var g=d.name+"";ze.call($s,g)||($s[g]=[]),$s[g].push({name:l,func:d})}}),$s[Zl(n,b).name]=[{name:"wrapper",func:n}],ke.prototype.clone=_j,ke.prototype.reverse=Ij,ke.prototype.value=$j,P.prototype.at=a8,P.prototype.chain=l8,P.prototype.commit=c8,P.prototype.next=u8,P.prototype.plant=d8,P.prototype.reverse=h8,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=m8,P.prototype.first=P.prototype.head,Vo&&(P.prototype[Vo]=f8),P},Os=cj();Mi?((Mi.exports=Os)._=Os,Ah._=Os):xt._=Os}).call(yI)}(po,po.exports)),po.exports}var vf=vI();const xf=_.createContext({});function bf(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const wf=typeof window<"u",Av=wf?_.useLayoutEffect:_.useEffect,Ra=_.createContext(null),Sf=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class xI extends Q.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 bI({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(Sf);return _.useInsertionEffect(()=>{const{width:c,height:u,top:f,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 v=document.createElement("style");return a&&(v.nonce=a),document.head.appendChild(v),v.sheet&&v.sheet.insertRule(`
651
+ }`;var _e=mT(function(){return Re(M,ye+"return "+X).apply(n,I)});if(_e.source=X,wm(_e))throw _e;return _e}function E9(s){return Be(s).toLowerCase()}function C9(s){return Be(s).toUpperCase()}function P9(s,l,d){if(s=Be(s),s&&(d||l===n))return Tw(s);if(!s||!(l=Zt(l)))return s;var g=Sn(s),w=Sn(l),M=Ew(g,w),I=Cw(g,w)+1;return Xr(g,M,I).join("")}function A9(s,l,d){if(s=Be(s),s&&(d||l===n))return s.slice(0,Aw(s)+1);if(!s||!(l=Zt(l)))return s;var g=Sn(s),w=Cw(g,Sn(l))+1;return Xr(g,0,w).join("")}function M9(s,l,d){if(s=Be(s),s&&(d||l===n))return s.replace(wh,"");if(!s||!(l=Zt(l)))return s;var g=Sn(s),w=Ew(g,Sn(l));return Xr(g,w).join("")}function O9(s,l){var d=Z,g=ee;if(st(l)){var w="separator"in l?l.separator:w;d="length"in l?Oe(l.length):d,g="omission"in l?Zt(l.omission):g}s=Be(s);var M=s.length;if(As(s)){var I=Sn(s);M=I.length}if(d>=M)return s;var N=d-Ms(g);if(N<1)return g;var R=I?Xr(I,0,N).join(""):s.slice(0,N);if(w===n)return R+g;if(I&&(N+=R.length-N),Sm(w)){if(s.slice(N).search(w)){var H,q=R;for(w.global||(w=jh(w.source,Be(G2.exec(w))+"g")),w.lastIndex=0;H=w.exec(q);)var X=H.index;R=R.slice(0,X===n?N:X)}}else if(s.indexOf(Zt(w),N)!=N){var ce=R.lastIndexOf(w);ce>-1&&(R=R.slice(0,ce))}return R+g}function _9(s){return s=Be(s),s&&BL.test(s)?s.replace(W2,sj):s}var I9=ks(function(s,l,d){return s+(d?" ":"")+l.toUpperCase()}),Cm=pS("toUpperCase");function hT(s,l,d){return s=Be(s),l=d?n:l,l===n?ej(s)?lj(s):GR(s):s.match(l)||[]}var mT=Ie(function(s,l){try{return Kt(s,n,l)}catch(d){return wm(d)?d:new Ae(d)}}),$9=lr(function(s,l){return un(l,function(d){d=Gn(d),or(s,d,xm(s[d],s))}),s});function D9(s){var l=s==null?0:s.length,d=be();return s=l?et(s,function(g){if(typeof g[1]!="function")throw new fn(a);return[d(g[0]),g[1]]}):[],Ie(function(g){for(var w=-1;++w<l;){var M=s[w];if(Kt(M[0],this,g))return Kt(M[1],this,g)}})}function N9(s){return sF(hn(s,m))}function Pm(s){return function(){return s}}function k9(s,l){return s==null||s!==s?l:s}var L9=yS(),R9=yS(!0);function Ut(s){return s}function Am(s){return Hw(typeof s=="function"?s:hn(s,m))}function j9(s){return Kw(hn(s,m))}function F9(s,l){return Xw(s,hn(l,m))}var V9=Ie(function(s,l){return function(d){return Ho(d,s,l)}}),B9=Ie(function(s,l){return function(d){return Ho(s,d,l)}});function Mm(s,l,d){var g=gt(l),w=Yl(l,g);d==null&&!(st(l)&&(w.length||!g.length))&&(d=l,l=s,s=this,w=Yl(l,gt(l)));var M=!(st(d)&&"chain"in d)||!!d.chain,I=ur(s);return un(w,function(N){var R=l[N];s[N]=R,I&&(s.prototype[N]=function(){var H=this.__chain__;if(M||H){var q=s(this.__wrapped__),X=q.__actions__=Vt(this.__actions__);return X.push({func:R,args:arguments,thisArg:s}),q.__chain__=H,q}return R.apply(s,zr([this.value()],arguments))})}),s}function W9(){return xt._===this&&(xt._=mj),this}function Om(){}function U9(s){return s=Oe(s),Ie(function(l){return Zw(l,s)})}var z9=om(et),G9=om(vw),Y9=om(Ih);function pT(s){return hm(s)?$h(Gn(s)):SF(s)}function H9(s){return function(l){return s==null?n:Di(s,l)}}var q9=xS(),K9=xS(!0);function _m(){return[]}function Im(){return!1}function X9(){return{}}function Z9(){return""}function J9(){return!0}function Q9(s,l){if(s=Oe(s),s<1||s>B)return[];var d=k,g=At(s,k);l=be(l),s-=k;for(var w=kh(g,l);++d<s;)l(d);return w}function e7(s){return Me(s)?et(s,Gn):Jt(s)?[s]:Vt(kS(Be(s)))}function t7(s){var l=++dj;return Be(s)+l}var n7=Jl(function(s,l){return s+l},0),r7=am("ceil"),i7=Jl(function(s,l){return s/l},1),s7=am("floor");function o7(s){return s&&s.length?Gl(s,Ut,Yh):n}function a7(s,l){return s&&s.length?Gl(s,be(l,2),Yh):n}function l7(s){return ww(s,Ut)}function c7(s,l){return ww(s,be(l,2))}function u7(s){return s&&s.length?Gl(s,Ut,Xh):n}function f7(s,l){return s&&s.length?Gl(s,be(l,2),Xh):n}var d7=Jl(function(s,l){return s*l},1),h7=am("round"),m7=Jl(function(s,l){return s-l},0);function p7(s){return s&&s.length?Nh(s,Ut):0}function g7(s,l){return s&&s.length?Nh(s,be(l,2)):0}return P.after=j8,P.ary=YS,P.assign=CB,P.assignIn=oT,P.assignInWith=fc,P.assignWith=PB,P.at=AB,P.before=HS,P.bind=xm,P.bindAll=$9,P.bindKey=qS,P.castArray=X8,P.chain=US,P.chunk=sV,P.compact=oV,P.concat=aV,P.cond=D9,P.conforms=N9,P.constant=Pm,P.countBy=p8,P.create=MB,P.curry=KS,P.curryRight=XS,P.debounce=ZS,P.defaults=OB,P.defaultsDeep=_B,P.defer=F8,P.delay=V8,P.difference=lV,P.differenceBy=cV,P.differenceWith=uV,P.drop=fV,P.dropRight=dV,P.dropRightWhile=hV,P.dropWhile=mV,P.fill=pV,P.filter=y8,P.flatMap=b8,P.flatMapDeep=w8,P.flatMapDepth=S8,P.flatten=FS,P.flattenDeep=gV,P.flattenDepth=yV,P.flip=B8,P.flow=L9,P.flowRight=R9,P.fromPairs=vV,P.functions=RB,P.functionsIn=jB,P.groupBy=T8,P.initial=bV,P.intersection=wV,P.intersectionBy=SV,P.intersectionWith=TV,P.invert=VB,P.invertBy=BB,P.invokeMap=C8,P.iteratee=Am,P.keyBy=P8,P.keys=gt,P.keysIn=Wt,P.map=sc,P.mapKeys=UB,P.mapValues=zB,P.matches=j9,P.matchesProperty=F9,P.memoize=ac,P.merge=GB,P.mergeWith=aT,P.method=V9,P.methodOf=B9,P.mixin=Mm,P.negate=lc,P.nthArg=U9,P.omit=YB,P.omitBy=HB,P.once=W8,P.orderBy=A8,P.over=z9,P.overArgs=U8,P.overEvery=G9,P.overSome=Y9,P.partial=bm,P.partialRight=JS,P.partition=M8,P.pick=qB,P.pickBy=lT,P.property=pT,P.propertyOf=H9,P.pull=AV,P.pullAll=BS,P.pullAllBy=MV,P.pullAllWith=OV,P.pullAt=_V,P.range=q9,P.rangeRight=K9,P.rearg=z8,P.reject=I8,P.remove=IV,P.rest=G8,P.reverse=ym,P.sampleSize=D8,P.set=XB,P.setWith=ZB,P.shuffle=N8,P.slice=$V,P.sortBy=R8,P.sortedUniq=FV,P.sortedUniqBy=VV,P.split=b9,P.spread=Y8,P.tail=BV,P.take=WV,P.takeRight=UV,P.takeRightWhile=zV,P.takeWhile=GV,P.tap=o8,P.throttle=H8,P.thru=ic,P.toArray=rT,P.toPairs=cT,P.toPairsIn=uT,P.toPath=e7,P.toPlainObject=sT,P.transform=JB,P.unary=q8,P.union=YV,P.unionBy=HV,P.unionWith=qV,P.uniq=KV,P.uniqBy=XV,P.uniqWith=ZV,P.unset=QB,P.unzip=vm,P.unzipWith=WS,P.update=e9,P.updateWith=t9,P.values=js,P.valuesIn=n9,P.without=JV,P.words=hT,P.wrap=K8,P.xor=QV,P.xorBy=e8,P.xorWith=t8,P.zip=n8,P.zipObject=r8,P.zipObjectDeep=i8,P.zipWith=s8,P.entries=cT,P.entriesIn=uT,P.extend=oT,P.extendWith=fc,Mm(P,P),P.add=n7,P.attempt=mT,P.camelCase=o9,P.capitalize=fT,P.ceil=r7,P.clamp=r9,P.clone=Z8,P.cloneDeep=Q8,P.cloneDeepWith=eB,P.cloneWith=J8,P.conformsTo=tB,P.deburr=dT,P.defaultTo=k9,P.divide=i7,P.endsWith=a9,P.eq=En,P.escape=l9,P.escapeRegExp=c9,P.every=g8,P.find=v8,P.findIndex=RS,P.findKey=IB,P.findLast=x8,P.findLastIndex=jS,P.findLastKey=$B,P.floor=s7,P.forEach=zS,P.forEachRight=GS,P.forIn=DB,P.forInRight=NB,P.forOwn=kB,P.forOwnRight=LB,P.get=Tm,P.gt=nB,P.gte=rB,P.has=FB,P.hasIn=Em,P.head=VS,P.identity=Ut,P.includes=E8,P.indexOf=xV,P.inRange=i9,P.invoke=WB,P.isArguments=Li,P.isArray=Me,P.isArrayBuffer=iB,P.isArrayLike=Bt,P.isArrayLikeObject=ct,P.isBoolean=sB,P.isBuffer=Zr,P.isDate=oB,P.isElement=aB,P.isEmpty=lB,P.isEqual=cB,P.isEqualWith=uB,P.isError=wm,P.isFinite=fB,P.isFunction=ur,P.isInteger=QS,P.isLength=cc,P.isMap=eT,P.isMatch=dB,P.isMatchWith=hB,P.isNaN=mB,P.isNative=pB,P.isNil=yB,P.isNull=gB,P.isNumber=tT,P.isObject=st,P.isObjectLike=ot,P.isPlainObject=Qo,P.isRegExp=Sm,P.isSafeInteger=vB,P.isSet=nT,P.isString=uc,P.isSymbol=Jt,P.isTypedArray=Rs,P.isUndefined=xB,P.isWeakMap=bB,P.isWeakSet=wB,P.join=EV,P.kebabCase=u9,P.last=pn,P.lastIndexOf=CV,P.lowerCase=f9,P.lowerFirst=d9,P.lt=SB,P.lte=TB,P.max=o7,P.maxBy=a7,P.mean=l7,P.meanBy=c7,P.min=u7,P.minBy=f7,P.stubArray=_m,P.stubFalse=Im,P.stubObject=X9,P.stubString=Z9,P.stubTrue=J9,P.multiply=d7,P.nth=PV,P.noConflict=W9,P.noop=Om,P.now=oc,P.pad=h9,P.padEnd=m9,P.padStart=p9,P.parseInt=g9,P.random=s9,P.reduce=O8,P.reduceRight=_8,P.repeat=y9,P.replace=v9,P.result=KB,P.round=h7,P.runInContext=L,P.sample=$8,P.size=k8,P.snakeCase=x9,P.some=L8,P.sortedIndex=DV,P.sortedIndexBy=NV,P.sortedIndexOf=kV,P.sortedLastIndex=LV,P.sortedLastIndexBy=RV,P.sortedLastIndexOf=jV,P.startCase=w9,P.startsWith=S9,P.subtract=m7,P.sum=p7,P.sumBy=g7,P.template=T9,P.times=Q9,P.toFinite=fr,P.toInteger=Oe,P.toLength=iT,P.toLower=E9,P.toNumber=gn,P.toSafeInteger=EB,P.toString=Be,P.toUpper=C9,P.trim=P9,P.trimEnd=A9,P.trimStart=M9,P.truncate=O9,P.unescape=_9,P.uniqueId=t7,P.upperCase=I9,P.upperFirst=Cm,P.each=zS,P.eachRight=GS,P.first=VS,Mm(P,function(){var s={};return Un(P,function(l,d){ze.call(P.prototype,d)||(s[d]=l)}),s}(),{chain:!1}),P.VERSION=r,un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){P[s].placeholder=P}),un(["drop","take"],function(s,l){ke.prototype[s]=function(d){d=d===n?1:mt(Oe(d),0);var g=this.__filtered__&&!l?new ke(this):this.clone();return g.__filtered__?g.__takeCount__=At(d,g.__takeCount__):g.__views__.push({size:At(d,k),type:s+(g.__dir__<0?"Right":"")}),g},ke.prototype[s+"Right"]=function(d){return this.reverse()[s](d).reverse()}}),un(["filter","map","takeWhile"],function(s,l){var d=l+1,g=d==ue||d==he;ke.prototype[s]=function(w){var M=this.clone();return M.__iteratees__.push({iteratee:be(w,3),type:d}),M.__filtered__=M.__filtered__||g,M}}),un(["head","last"],function(s,l){var d="take"+(l?"Right":"");ke.prototype[s]=function(){return this[d](1).value()[0]}}),un(["initial","tail"],function(s,l){var d="drop"+(l?"":"Right");ke.prototype[s]=function(){return this.__filtered__?new ke(this):this[d](1)}}),ke.prototype.compact=function(){return this.filter(Ut)},ke.prototype.find=function(s){return this.filter(s).head()},ke.prototype.findLast=function(s){return this.reverse().find(s)},ke.prototype.invokeMap=Ie(function(s,l){return typeof s=="function"?new ke(this):this.map(function(d){return Ho(d,s,l)})}),ke.prototype.reject=function(s){return this.filter(lc(be(s)))},ke.prototype.slice=function(s,l){s=Oe(s);var d=this;return d.__filtered__&&(s>0||l<0)?new ke(d):(s<0?d=d.takeRight(-s):s&&(d=d.drop(s)),l!==n&&(l=Oe(l),d=l<0?d.dropRight(-l):d.take(l-s)),d)},ke.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},ke.prototype.toArray=function(){return this.take(k)},Un(ke.prototype,function(s,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),w=P[g?"take"+(l=="last"?"Right":""):l],M=g||/^find/.test(l);w&&(P.prototype[l]=function(){var I=this.__wrapped__,N=g?[1]:arguments,R=I instanceof ke,H=N[0],q=R||Me(I),X=function(Ne){var Le=w.apply(P,zr([Ne],N));return g&&ce?Le[0]:Le};q&&d&&typeof H=="function"&&H.length!=1&&(R=q=!1);var ce=this.__chain__,ye=!!this.__actions__.length,Te=M&&!ce,_e=R&&!ye;if(!M&&q){I=_e?I:new ke(this);var Ee=s.apply(I,N);return Ee.__actions__.push({func:ic,args:[X],thisArg:n}),new dn(Ee,ce)}return Te&&_e?s.apply(this,N):(Ee=this.thru(X),Te?g?Ee.value()[0]:Ee.value():Ee)})}),un(["pop","push","shift","sort","splice","unshift"],function(s){var l=_l[s],d=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",g=/^(?:pop|shift)$/.test(s);P.prototype[s]=function(){var w=arguments;if(g&&!this.__chain__){var M=this.value();return l.apply(Me(M)?M:[],w)}return this[d](function(I){return l.apply(Me(I)?I:[],w)})}}),Un(ke.prototype,function(s,l){var d=P[l];if(d){var g=d.name+"";ze.call($s,g)||($s[g]=[]),$s[g].push({name:l,func:d})}}),$s[Zl(n,b).name]=[{name:"wrapper",func:n}],ke.prototype.clone=_j,ke.prototype.reverse=Ij,ke.prototype.value=$j,P.prototype.at=a8,P.prototype.chain=l8,P.prototype.commit=c8,P.prototype.next=u8,P.prototype.plant=d8,P.prototype.reverse=h8,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=m8,P.prototype.first=P.prototype.head,Vo&&(P.prototype[Vo]=f8),P},Os=cj();Mi?((Mi.exports=Os)._=Os,Ah._=Os):xt._=Os}).call(yI)}(po,po.exports)),po.exports}var vf=vI();const xf=_.createContext({});function bf(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const wf=typeof window<"u",Mv=wf?_.useLayoutEffect:_.useEffect,Ra=_.createContext(null),Sf=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class xI extends Q.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 bI({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(Sf);return _.useInsertionEffect(()=>{const{width:c,height:u,top:f,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 v=document.createElement("style");return a&&(v.nonce=a),document.head.appendChild(v),v.sheet&&v.sheet.insertRule(`
652
652
  [data-motion-pop-id="${r}"] {
653
653
  position: absolute !important;
654
654
  width: ${c}px !important;
@@ -656,15 +656,15 @@ function print() { __p += __j.call(arguments, '') }
656
656
  ${p}px !important;
657
657
  top: ${f}px !important;
658
658
  }
659
- `),()=>{document.head.removeChild(v)}},[t]),y.jsx(xI,{isPresent:t,childRef:i,sizeRef:o,children:Q.cloneElement(e,{ref:i})})}const wI=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=bf(SI),f=_.useId(),h=_.useCallback(p=>{u.set(p,!0);for(const v of u.values())if(!v)return;r&&r()},[u,r]),m=_.useMemo(()=>({id:f,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,v)=>u.set(v,!1))},[n]),Q.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=y.jsx(bI,{isPresent:n,anchorX:c,children:e})),y.jsx(Ra.Provider,{value:m,children:e})};function SI(){return new Map}function Mv(e=!0){const t=_.useContext(Ra);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 Ov(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const vn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,f]=Mv(a),h=_.useMemo(()=>Ov(e),[e]),m=a&&!u?[]:h.map(ja),p=_.useRef(!0),v=_.useRef(h),S=bf(()=>new Map),[x,T]=_.useState(h),[b,A]=_.useState(h);Av(()=>{p.current=!1,v.current=h;for(let C=0;C<b.length;C++){const D=ja(b[C]);m.includes(D)?S.delete(D):S.get(D)!==!0&&S.set(D,!1)}},[b,m.length,m.join("-")]);const E=[];if(h!==x){let C=[...h];for(let D=0;D<b.length;D++){const j=b[D],F=ja(j);m.includes(F)||(C.splice(D,0,j),E.push(j))}return o==="wait"&&E.length&&(C=E),A(Ov(C)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&b.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(xf);return y.jsx(y.Fragment,{children:b.map(C=>{const D=ja(C),j=a&&!u?!1:h===b||m.includes(D),F=()=>{if(S.has(D))S.set(D,!0);else return;let U=!0;S.forEach(Z=>{Z||(U=!1)}),U&&($==null||$(),A(v.current),a&&(f==null||f()),r&&r())};return y.jsx(wI,{isPresent:j,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:j?void 0:F,anchorX:c,children:C},D)})})},kt=e=>e;let rs=kt,Er=kt;process.env.NODE_ENV!=="production"&&(rs=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Er=(e,t)=>{if(!e)throw new Error(t)});const TI={useManualTiming:!1},Fa=["read","resolveKeyframes","update","preRender","render","postRender"],_v={value:null};function EI(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 f(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,p=!1,v=!1)=>{const x=v&&i?n:r;return p&&a.add(m),x.has(m)||x.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(f),t&&_v.value&&_v.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const CI=40;function Iv(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Fa.reduce((b,A)=>(b[A]=EI(o,t?A:void 0),b),{}),{read:c,resolveKeyframes:u,update:f,preRender:h,render:m,postRender:p}=a,v=()=>{const b=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(b-i.timestamp,CI),1),i.timestamp=b,i.isProcessing=!0,c.process(i),u.process(i),f.process(i),h.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))},S=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:Fa.reduce((b,A)=>{const E=a[A];return b[A]=($,C=!1,D=!1)=>(n||S(),E.schedule($,C,D)),b},{}),cancel:b=>{for(let A=0;A<Fa.length;A++)a[Fa[A]].cancel(b)},state:i,steps:a}}const{schedule:qe,cancel:Cr,state:vt,steps:Tf}=Iv(typeof requestAnimationFrame<"u"?requestAnimationFrame:kt,!0),$v=_.createContext({strict:!1}),Dv={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"]},is={};for(const e in Dv)is[e]={isEnabled:t=>Dv[e].some(n=>!!t[n])};function PI(e){for(const t in e)is[t]={...is[t],...e[t]}}const AI=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")||AI.has(e)}let Nv=e=>!Va(e);function MI(e){e&&(Nv=t=>t.startsWith("on")?!Va(t):e(t))}try{MI(require("@emotion/is-prop-valid").default)}catch{}function OI(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Nv(i)||n===!0&&Va(i)||!t&&!Va(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const kv=new Set;function Ba(e,t,n){e||kv.has(t)||(console.warn(t),kv.add(t))}function _I(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 go(e){return typeof e=="string"||Array.isArray(e)}const Ef=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Cf=["initial",...Ef];function za(e){return Ua(e.animate)||Cf.some(t=>go(e[t]))}function Lv(e){return!!(za(e)||e.variants)}function II(e,t){if(za(e)){const{initial:n,animate:r}=e;return{initial:n===!1||go(n)?n:void 0,animate:go(r)?r:void 0}}return e.inherit!==!1?t:{}}function $I(e){const{initial:t,animate:n}=II(e,_.useContext(Wa));return _.useMemo(()=>({initial:t,animate:n}),[Rv(t),Rv(n)])}function Rv(e){return Array.isArray(e)?e.join(" "):e}const DI=Symbol.for("motionComponentSymbol");function ss(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function NI(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):ss(n)&&(n.current=r))},[t])}const{schedule:Pf}=Iv(queueMicrotask,!1),Af=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),jv="data-"+Af("framerAppearId"),Fv=_.createContext({});function kI(e,t,n,r,i){var o,a;const{visualElement:c}=_.useContext(Wa),u=_.useContext($v),f=_.useContext(Ra),h=_.useContext(Sf).reducedMotion,m=_.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:h}));const p=m.current,v=_.useContext(Fv);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&LI(m.current,n,i,v);const S=_.useRef(!1);_.useInsertionEffect(()=>{p&&S.current&&p.update(n,f)});const x=n[jv],T=_.useRef(!!x&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,x))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,x)));return Av(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Pf.render(p.render),T.current&&p.animationState&&p.animationState.animateChanges())}),_.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,x)}),T.current=!1))}),p}function LI(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Vv(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&ss(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:f})}function Vv(e){if(e)return e.options.allowProjection!==!1?e.projection:Vv(e.parent)}function RI({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&PI(e);function c(f,h){let m;const p={..._.useContext(Sf),...f,layoutId:jI(f)},{isStatic:v}=p,S=$I(f),x=r(f,v);if(!v&&wf){FI(p,e);const T=VI(p);m=T.MeasureLayout,S.visualElement=kI(i,x,p,t,T.ProjectionNode)}return y.jsxs(Wa.Provider,{value:S,children:[m&&S.visualElement?y.jsx(m,{visualElement:S.visualElement,...p}):null,n(i,f,NI(x,S.visualElement,h),x,v,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[DI]=i,u}function jI({layoutId:e}){const t=_.useContext(xf).id;return t&&e!==void 0?t+"-"+e:e}function FI(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?rs(!1,r):Er(!1,r)}}function VI(e){const{drag:t,layout:n}=is;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 Bv=e=>t=>typeof t=="string"&&t.startsWith(e),Mf=Bv("--"),BI=Bv("var(--"),Of=e=>BI(e)?WI.test(e.split("/*")[0].trim()):!1,WI=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,yo={};function UI(e){for(const t in e)yo[t]=e[t],Mf(t)&&(yo[t].isCSSVariable=!0)}const os=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],li=new Set(os);function Wv(e,{layout:t,layoutId:n}){return li.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!yo[e]||e==="opacity")}const Et=e=>!!(e&&e.getVelocity),Uv=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Zn=(e,t,n)=>n>t?t:n<e?e:n,as={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},vo={...as,transform:e=>Zn(0,1,e)},Ga={...as,default:1},xo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pr=xo("deg"),kn=xo("%"),Se=xo("px"),zI=xo("vh"),GI=xo("vw"),zv={...kn,parse:e=>kn.parse(e)/100,transform:e=>kn.transform(e*100)},YI={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},HI={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:vo,originX:zv,originY:zv,originZ:Se},Gv={...as,transform:Math.round},_f={...YI,...HI,zIndex:Gv,size:Se,fillOpacity:vo,strokeOpacity:vo,numOctaves:Gv},qI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},KI=os.length;function XI(e,t,n){let r="",i=!0;for(let o=0;o<KI;o++){const a=os[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 f=Uv(c,_f[a]);if(!u){i=!1;const h=qI[a]||a;r+=`${h}(${f}) `}n&&(t[a]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function If(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const f=t[u];if(li.has(u)){a=!0;continue}else if(Mf(u)){i[u]=f;continue}else{const h=Uv(f,_f[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=XI(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:f="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${f} ${h}`}}const $f=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Yv(e,t,n){for(const r in t)!Et(t[r])&&!Wv(r,n)&&(e[r]=t[r])}function ZI({transformTemplate:e},t){return _.useMemo(()=>{const n=$f();return If(n,t,e),Object.assign({},n.vars,n.style)},[t])}function JI(e,t){const n=e.style||{},r={};return Yv(r,n,e),Object.assign(r,ZI(e,t)),r}function QI(e,t){const n={},r=JI(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 e6=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Df(e){return typeof e!="string"||e.includes("-")?!1:!!(e6.indexOf(e)>-1||/[A-Z]/u.test(e))}const t6={offset:"stroke-dashoffset",array:"stroke-dasharray"},n6={offset:"strokeDashoffset",array:"strokeDasharray"};function r6(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?t6:n6;e[o.offset]=Se.transform(-r);const a=Se.transform(t),c=Se.transform(n);e[o.array]=`${a} ${c}`}function Hv(e,t,n){return typeof e=="string"?e:Se.transform(t+n*e)}function i6(e,t,n){const r=Hv(t,e.x,e.width),i=Hv(n,e.y,e.height);return`${r} ${i}`}function Nf(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...f},h,m){if(If(e,f,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:v,dimensions:S}=e;p.transform&&(S&&(v.transform=p.transform),delete p.transform),S&&(i!==void 0||o!==void 0||v.transform)&&(v.transformOrigin=i6(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&&r6(p,a,c,u,!1)}const qv=()=>({...$f(),attrs:{}}),kf=e=>typeof e=="string"&&e.toLowerCase()==="svg";function s6(e,t,n,r){const i=_.useMemo(()=>{const o=qv();return Nf(o,t,kf(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Yv(o,e.style,e),i.style={...o,...i.style}}return i}function o6(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(Df(n)?s6:QI)(r,o,a,n),f=OI(r,typeof n=="string",e),h=n!==_.Fragment?{...f,...u,ref:i}:{},{children:m}=r,p=_.useMemo(()=>Et(m)?m.get():m,[m]);return _.createElement(n,{...h,children:p})}}function Kv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Lf(e,t,n,r){if(typeof t=="function"){const[i,o]=Kv(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]=Kv(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Rf=e=>Array.isArray(e),a6=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),l6=e=>Rf(e)?e[e.length-1]||0:e;function Ya(e){const t=Et(e)?e.get():e;return a6(t)?t.toValue():t}function c6({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:u6(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Xv=e=>(t,n)=>{const r=_.useContext(Wa),i=_.useContext(Ra),o=()=>c6(e,t,r,i);return n?o():bf(o)};function u6(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),f=Lv(e);t&&f&&!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 v=0;v<p.length;v++){const S=Lf(e,p[v]);if(S){const{transitionEnd:x,transition:T,...b}=S;for(const A in b){let E=b[A];if(Array.isArray(E)){const $=h?E.length-1:0;E=E[$]}E!==null&&(i[A]=E)}for(const A in x)i[A]=x[A]}}}return i}function jf(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(Et(i[a])||t.style&&Et(t.style[a])||Wv(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 f6={useVisualState:Xv({scrapeMotionValuesFromProps:jf,createRenderState:$f})};function Zv(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 Jv(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 Qv=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 e1(e,t,n,r){Jv(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Qv.has(i)?i:Af(i),t.attrs[i])}function t1(e,t,n){const r=jf(e,t,n);for(const i in e)if(Et(e[i])||Et(t[i])){const o=os.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const n1=["x","y","width","height","cx","cy","r"],d6={useVisualState:Xv({scrapeMotionValuesFromProps:t1,createRenderState:qv,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<n1.length;c++){const u=n1[c];e[u]!==t[u]&&(a=!0)}a&&qe.read(()=>{Zv(n,r),qe.render(()=>{Nf(r,i,kf(n.tagName),e.transformTemplate),e1(n,r)})})}})};function h6(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Df(r)?d6:f6,preloadedFeatures:e,useRender:o6(i),createVisualElement:t,Component:r};return RI(a)}}function bo(e,t,n){const r=e.getProps();return Lf(r,t,n!==void 0?n:r.custom,e)}function Ff(e,t){return e?e[t]||e.default||e:void 0}const r1=new Set(["width","height","top","left","right","bottom",...os]);function Vf(e,t){e.indexOf(t)===-1&&e.push(t)}function Bf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Wf{constructor(){this.subscriptions=[]}add(t){return Vf(this.subscriptions,t),()=>Bf(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 i1(e,t){return t?e*(1e3/t):0}let Ha;function m6(){Ha=void 0}const Ln={now:()=>(Ha===void 0&&Ln.set(vt.isProcessing||TI.useManualTiming?vt.timestamp:performance.now()),Ha),set:e=>{Ha=e,queueMicrotask(m6)}},s1=30,p6=e=>!isNaN(parseFloat(e));class g6{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Ln.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=Ln.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=p6(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 Wf);const r=this.events[t].add(n);return t==="change"?()=>{r(),qe.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=Ln.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>s1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,s1);return i1(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 wo(e,t){return new g6(e,t)}function y6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,wo(n))}function v6(e,t){const n=bo(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=l6(o[a]);y6(e,a,c)}}function x6(e){return!!(Et(e)&&e.add)}function Uf(e,t){const n=e.getValue("willChange");if(x6(n))return n.add(t)}function o1(e){return e.props[jv]}function zf(e){let t;return()=>(t===void 0&&(t=e()),t)}const b6=zf(()=>window.ScrollTimeline!==void 0);class w6{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(b6()&&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 S6 extends w6{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const Rn=e=>e*1e3,Jn=e=>e/1e3;function Gf(e){return typeof e=="function"}function a1(e,t){e.timeline=t,e.onfinish=null}const Yf=e=>Array.isArray(e)&&typeof e[0]=="number",T6={linearEasing:void 0};function E6(e,t){const n=zf(e);return()=>{var r;return(r=T6[t])!==null&&r!==void 0?r:n()}}const qa=E6(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ls=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},l1=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(ls(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function c1(e){return!!(typeof e=="function"&&qa()||!e||typeof e=="string"&&(e in Hf||qa())||Yf(e)||Array.isArray(e)&&e.every(c1))}const So=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Hf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:So([0,.65,.55,1]),circOut:So([.55,0,1,.45]),backIn:So([.31,.01,.66,-.59]),backOut:So([.33,1.53,.69,.99])};function u1(e,t){if(e)return typeof e=="function"&&qa()?l1(e,t):Yf(e)?So(e):Array.isArray(e)?e.map(n=>u1(n,t)||Hf.easeOut):Hf[e]}const f1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,C6=1e-7,P6=12;function A6(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=f1(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>C6&&++c<P6);return a}function To(e,t,n,r){if(e===t&&n===r)return kt;const i=o=>A6(o,0,1,e,n);return o=>o===0||o===1?o:f1(i(o),t,r)}const d1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,h1=e=>t=>1-e(1-t),m1=To(.33,1.53,.69,.99),qf=h1(m1),p1=d1(qf),g1=e=>(e*=2)<1?.5*qf(e):.5*(2-Math.pow(2,-10*(e-1))),Kf=e=>1-Math.sin(Math.acos(e)),y1=h1(Kf),v1=d1(Kf),x1=e=>/^0[^.\s]+$/u.test(e);function M6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||x1(e):!0}const Eo=e=>Math.round(e*1e5)/1e5,Xf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function O6(e){return e==null}const _6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Zf=(e,t)=>n=>!!(typeof n=="string"&&_6.test(n)&&n.startsWith(e)||t&&!O6(n)&&Object.prototype.hasOwnProperty.call(n,t)),b1=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Xf);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},I6=e=>Zn(0,255,e),Jf={...as,transform:e=>Math.round(I6(e))},ci={test:Zf("rgb","red"),parse:b1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Jf.transform(e)+", "+Jf.transform(t)+", "+Jf.transform(n)+", "+Eo(vo.transform(r))+")"};function $6(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 Qf={test:Zf("#"),parse:$6,transform:ci.transform},cs={test:Zf("hsl","hue"),parse:b1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+kn.transform(Eo(t))+", "+kn.transform(Eo(n))+", "+Eo(vo.transform(r))+")"},Ct={test:e=>ci.test(e)||Qf.test(e)||cs.test(e),parse:e=>ci.test(e)?ci.parse(e):cs.test(e)?cs.parse(e):Qf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ci.transform(e):cs.transform(e)},D6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function N6(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Xf))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(D6))===null||n===void 0?void 0:n.length)||0)>0}const w1="number",S1="color",k6="var",L6="var(",T1="${}",R6=/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 Co(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(R6,u=>(Ct.test(u)?(r.color.push(o),i.push(S1),n.push(Ct.parse(u))):u.startsWith(L6)?(r.var.push(o),i.push(k6),n.push(u)):(r.number.push(o),i.push(w1),n.push(parseFloat(u))),++o,T1)).split(T1);return{values:n,split:c,indexes:r,types:i}}function E1(e){return Co(e).values}function C1(e){const{split:t,types:n}=Co(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===w1?o+=Eo(i[a]):c===S1?o+=Ct.transform(i[a]):o+=i[a]}return o}}const j6=e=>typeof e=="number"?0:e;function F6(e){const t=E1(e);return C1(e)(t.map(j6))}const Ar={test:N6,parse:E1,createTransformer:C1,getAnimatableNone:F6},V6=new Set(["brightness","contrast","saturate","opacity"]);function B6(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Xf)||[];if(!r)return e;const i=n.replace(r,"");let o=V6.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const W6=/\b([a-z-]*)\(.*?\)/gu,ed={...Ar,getAnimatableNone:e=>{const t=e.match(W6);return t?t.map(B6).join(" "):e}},U6={..._f,color:Ct,backgroundColor:Ct,outlineColor:Ct,fill:Ct,stroke:Ct,borderColor:Ct,borderTopColor:Ct,borderRightColor:Ct,borderBottomColor:Ct,borderLeftColor:Ct,filter:ed,WebkitFilter:ed},P1=e=>U6[e];function A1(e,t){let n=P1(e);return n!==ed&&(n=Ar),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const z6=new Set(["auto","none","0"]);function G6(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!z6.has(o)&&Co(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=A1(n,i)}const ui=e=>e*180/Math.PI,td=e=>{const t=ui(Math.atan2(e[1],e[0]));return nd(t)},Y6={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:td,rotateZ:td,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},nd=e=>(e=e%360,e<0&&(e+=360),e),M1=td,O1=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),_1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),H6={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:O1,scaleY:_1,scale:e=>(O1(e)+_1(e))/2,rotateX:e=>nd(ui(Math.atan2(e[6],e[5]))),rotateY:e=>nd(ui(Math.atan2(-e[2],e[0]))),rotateZ:M1,rotate:M1,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 I1(e){return e.includes("scale")?1:0}function rd(e,t){if(!e||e==="none")return I1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=H6,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Y6,i=c}if(!i)return I1(t);const o=r[t],a=i[1].split(",").map(K6);return typeof o=="function"?o(a):a[o]}const q6=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return rd(n,t)};function K6(e){return parseFloat(e.trim())}const $1=e=>e===as||e===Se,X6=new Set(["x","y","z"]),Z6=os.filter(e=>!X6.has(e));function J6(e){const t=[];return Z6.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const us={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})=>rd(t,"x"),y:(e,{transform:t})=>rd(t,"y")};us.translateX=us.x,us.translateY=us.y;const fi=new Set;let id=!1,sd=!1;function D1(){if(sd){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=J6(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)})}sd=!1,id=!1,fi.forEach(e=>e.complete()),fi.clear()}function N1(){fi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(sd=!0)})}function Q6(){N1(),D1()}class od{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),id||(id=!0,qe.read(N1),qe.resolveKeyframes(D1))):(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 k1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),e$=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function t$(e){const t=e$.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const n$=4;function L1(e,t,n=1){Er(n<=n$,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=t$(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return k1(a)?parseFloat(a):a}return Of(i)?L1(i,t,n+1):i}const R1=e=>t=>t.test(e),j1=[as,Se,kn,Pr,GI,zI,{test:e=>e==="auto",parse:e=>e}],F1=e=>j1.find(R1(e));class V1 extends od{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 f=t[u];if(typeof f=="string"&&(f=f.trim(),Of(f))){const h=L1(f,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!r1.has(r)||t.length!==2)return;const[i,o]=t,a=F1(i),c=F1(o);if(a!==c)if($1(a)&&$1(c))for(let u=0;u<t.length;u++){const f=t[u];typeof f=="string"&&(t[u]=parseFloat(f))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)M6(t[i])&&r.push(i);r.length&&G6(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=us[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]=us[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,f])=>{n.getValue(u).set(f)}),this.resolveNoneKeyframes()}}const B1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ar.test(e)||e==="0")&&!e.startsWith("url("));function r$(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 i$(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=B1(i,t),c=B1(o,t);return rs(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:r$(e)||(n==="spring"||Gf(n))&&r}const s$=e=>e!==null;function Ka(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(s$),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const o$=40;class W1{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=Ln.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>o$?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Q6(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Ln.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:f}=this.options;if(!f&&!i$(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 ad=2e4;function U1(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ad;)t+=n,r=e.next(t);return t>=ad?1/0:t}const rt=(e,t,n)=>e+(t-e)*n;function ld(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 a$({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=ld(u,c,e+1/3),o=ld(u,c,e),a=ld(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 cd=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},l$=[Qf,ci,cs],c$=e=>l$.find(t=>t.test(e));function z1(e){const t=c$(e);if(rs(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===cs&&(n=a$(n)),n}const G1=(e,t)=>{const n=z1(e),r=z1(t);if(!n||!r)return Xa(e,t);const i={...n};return o=>(i.red=cd(n.red,r.red,o),i.green=cd(n.green,r.green,o),i.blue=cd(n.blue,r.blue,o),i.alpha=rt(n.alpha,r.alpha,o),ci.transform(i))},u$=(e,t)=>n=>t(e(n)),Po=(...e)=>e.reduce(u$),ud=new Set(["none","hidden"]);function f$(e,t){return ud.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function d$(e,t){return n=>rt(e,t,n)}function fd(e){return typeof e=="number"?d$:typeof e=="string"?Of(e)?Xa:Ct.test(e)?G1:p$:Array.isArray(e)?Y1:typeof e=="object"?Ct.test(e)?G1:h$:Xa}function Y1(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>fd(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function h$(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=fd(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function m$(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 p$=(e,t)=>{const n=Ar.createTransformer(t),r=Co(e),i=Co(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?ud.has(e)&&!i.values.length||ud.has(t)&&!r.values.length?f$(e,t):Po(Y1(m$(r,i),i.values),n):(rs(!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 H1(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?rt(e,t,n):fd(e)(e,t)}const g$=5;function q1(e,t,n){const r=Math.max(t-g$,0);return i1(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},K1=.001;function y$({duration:e=it.duration,bounce:t=it.bounce,velocity:n=it.velocity,mass:r=it.mass}){let i,o;rs(e<=Rn(it.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Zn(it.minDamping,it.maxDamping,a),e=Zn(it.minDuration,it.maxDuration,Jn(e)),a<1?(i=f=>{const h=f*a,m=h*e,p=h-n,v=dd(f,a),S=Math.exp(-m);return K1-p/v*S},o=f=>{const m=f*a*e,p=m*n+n,v=Math.pow(a,2)*Math.pow(f,2)*e,S=Math.exp(-m),x=dd(Math.pow(f,2),a);return(-i(f)+K1>0?-1:1)*((p-v)*S)/x}):(i=f=>{const h=Math.exp(-f*e),m=(f-n)*e+1;return-.001+h*m},o=f=>{const h=Math.exp(-f*e),m=(n-f)*(e*e);return h*m});const c=5/e,u=x$(i,o,c);if(e=Rn(e),isNaN(u))return{stiffness:it.stiffness,damping:it.damping,duration:e};{const f=Math.pow(u,2)*r;return{stiffness:f,damping:a*2*Math.sqrt(r*f),duration:e}}}const v$=12;function x$(e,t,n){let r=n;for(let i=1;i<v$;i++)r=r-e(r)/t(r);return r}function dd(e,t){return e*Math.sqrt(1-t*t)}const b$=["duration","bounce"],w$=["stiffness","damping","mass"];function X1(e,t){return t.some(n=>e[n]!==void 0)}function S$(e){let t={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!X1(e,w$)&&X1(e,b$))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Zn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:it.mass,stiffness:i,damping:o}}else{const n=y$(e);t={...t,...n,mass:it.mass},t.isResolvedFromDuration=!0}return t}function Z1(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:f,mass:h,duration:m,velocity:p,isResolvedFromDuration:v}=S$({...n,velocity:-Jn(n.velocity||0)}),S=p||0,x=f/(2*Math.sqrt(u*h)),T=a-o,b=Jn(Math.sqrt(u/h)),A=Math.abs(T)<5;r||(r=A?it.restSpeed.granular:it.restSpeed.default),i||(i=A?it.restDelta.granular:it.restDelta.default);let E;if(x<1){const C=dd(b,x);E=D=>{const j=Math.exp(-x*b*D);return a-j*((S+x*b*T)/C*Math.sin(C*D)+T*Math.cos(C*D))}}else if(x===1)E=C=>a-Math.exp(-b*C)*(T+(S+b*T)*C);else{const C=b*Math.sqrt(x*x-1);E=D=>{const j=Math.exp(-x*b*D),F=Math.min(C*D,300);return a-j*((S+x*b*T)*Math.sinh(F)+C*T*Math.cosh(F))/C}}const $={calculatedDuration:v&&m||null,next:C=>{const D=E(C);if(v)c.done=C>=m;else{let j=0;x<1&&(j=C===0?Rn(S):q1(E,C,D));const F=Math.abs(j)<=r,U=Math.abs(a-D)<=i;c.done=F&&U}return c.value=c.done?a:D,c},toString:()=>{const C=Math.min(U1($),ad),D=l1(j=>$.next(C*j).value,C,30);return C+"ms "+D}};return $}function J1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:f=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},v=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 x=n*t;const T=m+x,b=a===void 0?T:a(T);b!==T&&(x=b-m);const A=F=>-x*Math.exp(-F/r),E=F=>b+A(F),$=F=>{const U=A(F),Z=E(F);p.done=Math.abs(U)<=f,p.value=p.done?b:Z};let C,D;const j=F=>{v(p.value)&&(C=F,D=Z1({keyframes:[p.value,S(p.value)],velocity:q1(E,F,p.value),damping:i,stiffness:o,restDelta:f,restSpeed:h}))};return j(0),{calculatedDuration:null,next:F=>{let U=!1;return!D&&C===void 0&&(U=!0,$(F),j(F)),C!==void 0&&F>=C?D.next(F-C):(!U&&$(F),p)}}}const T$=To(.42,0,1,1),E$=To(0,0,.58,1),Q1=To(.42,0,.58,1),C$=e=>Array.isArray(e)&&typeof e[0]!="number",ex={linear:kt,easeIn:T$,easeInOut:Q1,easeOut:E$,circIn:Kf,circInOut:v1,circOut:y1,backIn:qf,backInOut:p1,backOut:m1,anticipate:g1},tx=e=>{if(Yf(e)){Er(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 Er(ex[e]!==void 0,`Invalid easing type '${e}'`),ex[e];return e};function P$(e,t,n){const r=[],i=n||H1,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]||kt:t;c=Po(u,c)}r.push(c)}return r}function A$(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=P$(t,r,i),u=c.length,f=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=ls(e[m],e[m+1],h);return c[m](p)};return n?h=>f(Zn(e[0],e[o-1],h)):f}function M$(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ls(0,t,r);e.push(rt(n,1,i))}}function O$(e){const t=[0];return M$(t,e.length-1),t}function _$(e,t){return e.map(n=>n*t)}function I$(e,t){return e.map(()=>t||Q1).splice(0,e.length-1)}function Ao({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=C$(r)?r.map(tx):tx(r),o={done:!1,value:t[0]},a=_$(n&&n.length===t.length?n:O$(t),e),c=A$(a,t,{ease:Array.isArray(i)?i:I$(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const $$=e=>{const t=({timestamp:n})=>e(n);return{start:()=>qe.update(t,!0),stop:()=>Cr(t),now:()=>vt.isProcessing?vt.timestamp:Ln.now()}},D$={decay:J1,inertia:J1,tween:Ao,keyframes:Ao,spring:Z1},N$=e=>e/100;class hd extends W1{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)||od,c=(u,f)=>this.onKeyframesResolved(u,f);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=Gf(n)?n:D$[n]||Ao;let u,f;process.env.NODE_ENV!=="production"&&c!==Ao&&Er(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==Ao&&typeof t[0]!="number"&&(u=Po(N$,H1(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(f=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=U1(h));const{calculatedDuration:m}=h,p=m+i,v=p*(r+1)-i;return{generator:h,mirroredGenerator:f,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:v}}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:f,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:v,repeatType:S,repeatDelay:x,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 b=this.currentTime-p*(this.speed>=0?1:-1),A=this.speed>=0?b<0:b>h;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let E=this.currentTime,$=o;if(v){const F=Math.min(this.currentTime,h)/m;let U=Math.floor(F),Z=F%1;!Z&&F>=1&&(Z=1),Z===1&&U--,U=Math.min(U,v+1),!!(U%2)&&(S==="reverse"?(Z=1-Z,x&&(Z-=x/m)):S==="mirror"&&($=a)),E=Zn(0,1,Z)*m}const C=A?{done:!1,value:u[0]}:$.next(E);c&&(C.value=c(C.value));let{done:D}=C;!A&&f!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return j&&i!==void 0&&(C.value=Ka(u,this.options,i)),T&&T(C.value),j&&this.finish(),C}get duration(){const{resolved:t}=this;return t?Jn(t.calculatedDuration):0}get time(){return Jn(this.currentTime)}set time(t){t=Rn(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=Jn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=$$,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 k$=new Set(["opacity","clipPath","filter","transform"]);function L$(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const f={[t]:n};u&&(f.offset=u);const h=u1(c,i);return Array.isArray(h)&&(f.easing=h),e.animate(f,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const R$=zf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Za=10,j$=2e4;function F$(e){return Gf(e.type)||e.type==="spring"||!c1(e.ease)}function V$(e,t){const n=new hd({...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<j$;)r=n.sample(o),i.push(r.value),o+=Za;return{times:void 0,keyframes:i,duration:o-Za,ease:"linear"}}const nx={anticipate:g1,backInOut:p1,circInOut:v1};function B$(e){return e in nx}class rx extends W1{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new V1(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:f}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&qa()&&B$(o)&&(o=nx[o]),F$(this.options)){const{onComplete:m,onUpdate:p,motionValue:v,element:S,...x}=this.options,T=V$(t,x);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,o=T.ease,a="keyframes"}const h=L$(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(a1(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 Jn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Jn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Rn(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 kt;const{animation:r}=n;a1(r,t)}return kt}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:f,onUpdate:h,onComplete:m,element:p,...v}=this.options,S=new hd({...v,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),x=Rn(this.time);f.setWithVelocity(S.sample(x-Za).value,S.sample(x).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:f}=n.owner.getProps();return R$()&&r&&k$.has(r)&&(r!=="transform"||!f)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}}const W$={type:"spring",stiffness:500,damping:25,restSpeed:10},U$=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),z$={type:"keyframes",duration:.8},G$={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Y$=(e,{keyframes:t})=>t.length>2?z$:li.has(e)?e.startsWith("scale")?U$(t[1]):W$:G$;function H$({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:f,...h}){return!!Object.keys(h).length}const md=(e,t,n,r={},i,o)=>a=>{const c=Ff(r,e)||{},u=c.delay||r.delay||0;let{elapsed:f=0}=r;f=f-Rn(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-f,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};H$(c)||(h={...h,...Y$(e,h)}),h.duration&&(h.duration=Rn(h.duration)),h.repeatDelay&&(h.repeatDelay=Rn(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 qe.update(()=>{h.onUpdate(p),h.onComplete()}),new S6([])}return!o&&rx.supports(h)?new rx(h):new hd(h)};function q$({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ix(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const f=[],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),v=u[m];if(v===void 0||h&&q$(h,m))continue;const S={delay:n,...Ff(a||{},m)};let x=!1;if(window.MotionHandoffAnimation){const b=o1(e);if(b){const A=window.MotionHandoffAnimation(b,m,qe);A!==null&&(S.startTime=A,x=!0)}}Uf(e,m),p.start(md(m,p,v,e.shouldReduceMotion&&r1.has(m)?{type:!1}:S,e,x));const T=p.animation;T&&f.push(T)}return c&&Promise.all(f).then(()=>{qe.update(()=>{c&&v6(e,c)})}),f}function pd(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(ix(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return K$(e,t,h+f,m,p,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[f,h]=u==="beforeChildren"?[a,c]:[c,a];return f().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function K$(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(f=0)=>f*r:(f=0)=>c-f*r;return Array.from(e.variantChildren).sort(X$).forEach((f,h)=>{f.notify("AnimationStart",t),a.push(pd(f,t,{...o,delay:n+u(h)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(a)}function X$(e,t){return e.sortNodePosition(t)}function Z$(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>pd(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=pd(e,t,n);else{const i=typeof t=="function"?bo(e,t,n.custom):t;r=Promise.all(ix(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function sx(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 J$=Cf.length;function ox(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ox(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<J$;n++){const r=Cf[n],i=e.props[r];(go(i)||i===!1)&&(t[r]=i)}return t}const Q$=[...Ef].reverse(),eD=Ef.length;function tD(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Z$(e,n,r)))}function nD(e){let t=tD(e),n=ax(),r=!0;const i=u=>(f,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:v,transitionEnd:S,...x}=p;f={...f,...x,...S}}return f};function o(u){t=u(e)}function a(u){const{props:f}=e,h=ox(e.parent)||{},m=[],p=new Set;let v={},S=1/0;for(let T=0;T<eD;T++){const b=Q$[T],A=n[b],E=f[b]!==void 0?f[b]:h[b],$=go(E),C=b===u?A.isActive:null;C===!1&&(S=T);let D=E===h[b]&&E!==f[b]&&$;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),A.protectedKeys={...v},!A.isActive&&C===null||!E&&!A.prevProp||Ua(E)||typeof E=="boolean")continue;const j=rD(A.prevProp,E);let F=j||b===u&&A.isActive&&!D&&$||T>S&&$,U=!1;const Z=Array.isArray(E)?E:[E];let ee=Z.reduce(i(b),{});C===!1&&(ee={});const{prevResolvedValues:se={}}=A,ge={...se,...ee},ue=V=>{F=!0,p.has(V)&&(U=!0,p.delete(V)),A.needsAnimating[V]=!0;const B=e.getValue(V);B&&(B.liveStyle=!1)};for(const V in ge){const B=ee[V],Y=se[V];if(v.hasOwnProperty(V))continue;let O=!1;Rf(B)&&Rf(Y)?O=!sx(B,Y):O=B!==Y,O?B!=null?ue(V):p.add(V):B!==void 0&&p.has(V)?ue(V):A.protectedKeys[V]=!0}A.prevProp=E,A.prevResolvedValues=ee,A.isActive&&(v={...v,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(D&&j)||U)&&m.push(...Z.map(V=>({animation:V,options:{type:b}})))}if(p.size){const T={};if(typeof f.initial!="boolean"){const b=bo(e,Array.isArray(f.initial)?f.initial[0]:f.initial);b&&b.transition&&(T.transition=b.transition)}p.forEach(b=>{const A=e.getBaseTarget(b),E=e.getValue(b);E&&(E.liveStyle=!0),T[b]=A??null}),m.push({animation:T})}let x=!!m.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(m):Promise.resolve()}function c(u,f){var h;if(n[u].isActive===f)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var v;return(v=p.animationState)===null||v===void 0?void 0:v.setActive(u,f)}),n[u].isActive=f;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=ax(),r=!0}}}function rD(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!sx(t,e):!1}function di(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ax(){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 iD extends Mr{constructor(t){super(t),t.animationState||(t.animationState=nD(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 sD=0;class oD extends Mr{constructor(){super(...arguments),this.id=sD++}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 aD={animation:{Feature:iD},exit:{Feature:oD}},xn={x:!1,y:!1};function lx(){return xn.x||xn.y}function lD(e){return e==="x"||e==="y"?xn[e]?null:(xn[e]=!0,()=>{xn[e]=!1}):xn.x||xn.y?null:(xn.x=xn.y=!0,()=>{xn.x=xn.y=!1})}function Mo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const gd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Oo(e){return{point:{x:e.pageX,y:e.pageY}}}const cD=e=>t=>gd(t)&&e(t,Oo(t));function _o(e,t,n,r){return Mo(e,t,cD(n),r)}function cx({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function uD({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function fD(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 ux=1e-4,dD=1-ux,hD=1+ux,fx=.01,mD=0-fx,pD=0+fx;function _t(e){return e.max-e.min}function gD(e,t,n){return Math.abs(e-t)<=n}function dx(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>=dD&&e.scale<=hD||isNaN(e.scale))&&(e.scale=1),(e.translate>=mD&&e.translate<=pD||isNaN(e.translate))&&(e.translate=0)}function Io(e,t,n,r){dx(e.x,t.x,n.x,r?r.originX:void 0),dx(e.y,t.y,n.y,r?r.originY:void 0)}function hx(e,t,n){e.min=n.min+t.min,e.max=e.min+_t(t)}function yD(e,t,n){hx(e.x,t.x,n.x),hx(e.y,t.y,n.y)}function mx(e,t,n){e.min=t.min-n.min,e.max=e.min+_t(t)}function $o(e,t,n){mx(e.x,t.x,n.x),mx(e.y,t.y,n.y)}const px=()=>({translate:0,scale:1,origin:0,originPoint:0}),fs=()=>({x:px(),y:px()}),gx=()=>({min:0,max:0}),lt=()=>({x:gx(),y:gx()});function rn(e){return[e("x"),e("y")]}function yd(e){return e===void 0||e===1}function vd({scale:e,scaleX:t,scaleY:n}){return!yd(e)||!yd(t)||!yd(n)}function hi(e){return vd(e)||yx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function yx(e){return vx(e.x)||vx(e.y)}function vx(e){return e&&e!=="0%"}function Ja(e,t,n){const r=e-n,i=t*r;return n+i}function xx(e,t,n,r,i){return i!==void 0&&(e=Ja(e,i,r)),Ja(e,n,r)+t}function xd(e,t=0,n=1,r,i){e.min=xx(e.min,t,n,r,i),e.max=xx(e.max,t,n,r,i)}function bx(e,{x:t,y:n}){xd(e.x,t.translate,t.scale,t.originPoint),xd(e.y,n.translate,n.scale,n.originPoint)}const wx=.999999999999,Sx=1.0000000000001;function vD(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&&hs(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,bx(e,a)),r&&hi(o.latestValues)&&hs(e,o.latestValues))}t.x<Sx&&t.x>wx&&(t.x=1),t.y<Sx&&t.y>wx&&(t.y=1)}function ds(e,t){e.min=e.min+t,e.max=e.max+t}function Tx(e,t,n,r,i=.5){const o=rt(e.min,e.max,i);xd(e,t,n,o,r)}function hs(e,t){Tx(e.x,t.x,t.scaleX,t.scale,t.originX),Tx(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ex(e,t){return cx(fD(e.getBoundingClientRect(),t))}function xD(e,t,n){const r=Ex(e,n),{scroll:i}=t;return i&&(ds(r.x,i.offset.x),ds(r.y,i.offset.y)),r}const Cx=({current:e})=>e?e.ownerDocument.defaultView:null,Px=(e,t)=>Math.abs(e-t);function bD(e,t){const n=Px(e.x,t.x),r=Px(e.y,t.y);return Math.sqrt(n**2+r**2)}class Ax{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=wd(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,v=bD(m.offset,{x:0,y:0})>=3;if(!p&&!v)return;const{point:S}=m,{timestamp:x}=vt;this.history.push({...S,timestamp:x});const{onStart:T,onMove:b}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=bd(p,this.transformPagePoint),qe.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:v,onSessionEnd:S,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=wd(m.type==="pointercancel"?this.lastMoveEventInfo:bd(p,this.transformPagePoint),this.history);this.startEvent&&v&&v(m,T),S&&S(m,T)},!gd(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Oo(t),c=bd(a,this.transformPagePoint),{point:u}=c,{timestamp:f}=vt;this.history=[{...u,timestamp:f}];const{onSessionStart:h}=n;h&&h(t,wd(c,this.history)),this.removeListeners=Po(_o(this.contextWindow,"pointermove",this.handlePointerMove),_o(this.contextWindow,"pointerup",this.handlePointerUp),_o(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 Mx(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wd({point:e},t){return{point:e,delta:Mx(e,Ox(t)),offset:Mx(e,wD(t)),velocity:SD(t,.1)}}function wD(e){return e[0]}function Ox(e){return e[e.length-1]}function SD(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Ox(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Rn(t)));)n--;if(!r)return{x:0,y:0};const o=Jn(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 TD(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 _x(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 ED(e,{top:t,left:n,bottom:r,right:i}){return{x:_x(e.x,n,i),y:_x(e.y,t,r)}}function Ix(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 CD(e,t){return{x:Ix(e.x,t.x),y:Ix(e.y,t.y)}}function PD(e,t){let n=.5;const r=_t(e),i=_t(t);return i>r?n=ls(t.min,t.max-r,e.min):r>i&&(n=ls(e.min,e.max-i,t.min)),Zn(0,1,n)}function AD(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 Sd=.35;function MD(e=Sd){return e===!1?e=0:e===!0&&(e=Sd),{x:$x(e,"left","right"),y:$x(e,"top","bottom")}}function $x(e,t,n){return{min:Dx(e,t),max:Dx(e,n)}}function Dx(e,t){return typeof e=="number"?e:e[t]||0}const OD=new WeakMap;class _D{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(Oo(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:v,onDragStart:S}=this.getProps();if(p&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=lD(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 b=this.getAxisMotionValue(T).get()||0;if(kn.test(b)){const{projection:A}=this.visualElement;if(A&&A.layout){const E=A.layout.layoutBox[T];E&&(b=_t(E)*(parseFloat(b)/100))}}this.originPoint[T]=b}),S&&qe.postRender(()=>S(h,m)),Uf(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:p,dragDirectionLock:v,onDirectionLock:S,onDrag:x}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(v&&this.currentDirection===null){this.currentDirection=ID(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),x&&x(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:f}=this.getProps();this.panSession=new Ax(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,contextWindow:Cx(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&&qe.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=TD(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&&ss(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=ED(i.layoutBox,n):this.constraints=!1,this.elastic=MD(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=AD(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ss(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=xD(r,i.root,this.visualElement.getTransformPagePoint());let a=CD(i.layout.layoutBox,o);if(n){const c=n(uD(a));this.hasMutatedConstraints=!!c,c&&(a=cx(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},f=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,v=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(f).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Uf(this.visualElement,t),r.start(md(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(!ss(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]=PD({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:f}=this.constraints[a];c.set(rt(u,f,i[a]))})}addListeners(){if(!this.visualElement.current)return;OD.set(this.visualElement,this);const t=this.visualElement.current,n=_o(t,"pointerdown",u=>{const{drag:f,dragListener:h=!0}=this.getProps();f&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();ss(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()),qe.read(r);const a=Mo(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f})=>{this.isDragging&&f&&(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=Sd,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 ID(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class $D extends Mr{constructor(t){super(t),this.removeGroupControls=kt,this.removeListeners=kt,this.controls=new _D(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||kt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Nx=e=>(t,n)=>{e&&qe.postRender(()=>e(t,n))};class DD extends Mr{constructor(){super(...arguments),this.removePointerDownListener=kt}onPointerDown(t){this.session=new Ax(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Cx(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Nx(t),onStart:Nx(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&qe.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=_o(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 kx(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Do={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=kx(e,t.target.x),r=kx(e,t.target.y);return`${n}% ${r}%`}},ND={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 f=rt(c,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=f),typeof i[3+a]=="number"&&(i[3+a]/=f),o(i)}};class kD extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;UI(LD),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()||qe.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Pf.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 Lx(e){const[t,n]=Mv(),r=_.useContext(xf);return y.jsx(kD,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(Fv),isPresent:t,safeToRemove:n})}const LD={borderRadius:{...Do,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Do,borderTopRightRadius:Do,borderBottomLeftRadius:Do,borderBottomRightRadius:Do,boxShadow:ND};function RD(e,t,n){const r=Et(e)?e:wo(e);return r.start(md("",r,t,n)),r.animation}function jD(e){return e instanceof SVGElement&&e.tagName!=="svg"}const FD=(e,t)=>e.depth-t.depth;class VD{constructor(){this.children=[],this.isDirty=!1}add(t){Vf(this.children,t),this.isDirty=!0}remove(t){Bf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(FD),this.isDirty=!1,this.children.forEach(t)}}function BD(e,t){const n=Ln.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Cr(r),e(o-t))};return qe.read(r,!0),()=>Cr(r)}const Rx=["TopLeft","TopRight","BottomLeft","BottomRight"],WD=Rx.length,jx=e=>typeof e=="string"?parseFloat(e):e,Fx=e=>typeof e=="number"||Se.test(e);function UD(e,t,n,r,i,o){i?(e.opacity=rt(0,n.opacity!==void 0?n.opacity:1,zD(r)),e.opacityExit=rt(t.opacity!==void 0?t.opacity:1,0,GD(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<WD;a++){const c=`border${Rx[a]}Radius`;let u=Vx(t,c),f=Vx(n,c);if(u===void 0&&f===void 0)continue;u||(u=0),f||(f=0),u===0||f===0||Fx(u)===Fx(f)?(e[c]=Math.max(rt(jx(u),jx(f),r),0),(kn.test(f)||kn.test(u))&&(e[c]+="%")):e[c]=f}(t.rotate||n.rotate)&&(e.rotate=rt(t.rotate||0,n.rotate||0,r))}function Vx(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const zD=Bx(0,.5,y1),GD=Bx(.5,.95,kt);function Bx(e,t,n){return r=>r<e?0:r>t?1:n(ls(e,t,r))}function Wx(e,t){e.min=t.min,e.max=t.max}function sn(e,t){Wx(e.x,t.x),Wx(e.y,t.y)}function Ux(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function zx(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 YD(e,t=0,n=1,r=.5,i,o=e,a=e){if(kn.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=zx(e.min,t,n,c,i),e.max=zx(e.max,t,n,c,i)}function Gx(e,t,[n,r,i],o,a){YD(e,t[n],t[r],t[i],t.scale,o,a)}const HD=["x","scaleX","originX"],qD=["y","scaleY","originY"];function Yx(e,t,n,r){Gx(e.x,t,HD,n?n.x:void 0,r?r.x:void 0),Gx(e.y,t,qD,n?n.y:void 0,r?r.y:void 0)}function Hx(e){return e.translate===0&&e.scale===1}function qx(e){return Hx(e.x)&&Hx(e.y)}function Kx(e,t){return e.min===t.min&&e.max===t.max}function KD(e,t){return Kx(e.x,t.x)&&Kx(e.y,t.y)}function Xx(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Zx(e,t){return Xx(e.x,t.x)&&Xx(e.y,t.y)}function Jx(e){return _t(e.x)/_t(e.y)}function Qx(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class XD{constructor(){this.members=[]}add(t){Vf(this.members,t),t.scheduleRender()}remove(t){if(Bf(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 ZD(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:f,rotate:h,rotateX:m,rotateY:p,skewX:v,skewY:S}=n;f&&(r=`perspective(${f}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),v&&(r+=`skewX(${v}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 Td=["","X","Y","Z"],JD={visibility:"hidden"},eb=1e3;let QD=0;function Ed(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function tb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=o1(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",qe,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&tb(r)}function nb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=QD++,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(n5),this.nodes.forEach(a5),this.nodes.forEach(l5),this.nodes.forEach(r5)},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 VD)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Wf),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=jD(a),this.instance=a;const{layoutId:u,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(f||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=BD(p,250),el.hasAnimatedSinceResize&&(el.hasAnimatedSinceResize=!1,this.nodes.forEach(ib))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||f)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:v,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||h.getDefaultTransition()||h5,{onLayoutAnimationStart:T,onLayoutAnimationComplete:b}=h.getProps(),A=!this.targetLayout||!Zx(this.targetLayout,S),E=!p&&v;if(this.options.layoutRoot||this.resumeFrom||E||p&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,E);const $={...Ff(x,"layout"),onPlay:T,onComplete:b};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||ib(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(c5),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&&tb(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 f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rb);return}this.isUpdating||this.nodes.forEach(s5),this.isUpdating=!1,this.nodes.forEach(o5),this.nodes.forEach(e5),this.nodes.forEach(t5),this.clearAllSnapshots();const c=Ln.now();vt.delta=Zn(0,1e3/60,c-vt.timestamp),vt.timestamp=c,vt.isProcessing=!0,Tf.update.process(vt),Tf.preRender.process(vt),Tf.render.process(vt),vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Pf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(i5),this.sharedNodes.forEach(u5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,qe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){qe.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&&!qx(this.projectionDelta),u=this.getTransformTemplate(),f=u?u(this.latestValues,""):void 0,h=f!==this.prevTransformTemplateValue;a&&(c||hi(this.latestValues)||h)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),m5(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(p5))){const{scroll:h}=this.root;h&&(ds(u.x,h.offset.x),ds(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 f=0;f<this.path.length;f++){const h=this.path[f],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&sn(u,a),ds(u.x,m.offset.x),ds(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=lt();sn(u,a);for(let f=0;f<this.path.length;f++){const h=this.path[f];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&hs(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),hi(h.latestValues)&&hs(u,h.latestValues)}return hi(this.latestValues)&&hs(u,this.latestValues),u}removeTransform(a){const c=lt();sn(c,a);for(let u=0;u<this.path.length;u++){const f=this.path[u];if(!f.instance||!hi(f.latestValues))continue;vd(f.latestValues)&&f.updateSnapshot();const h=lt(),m=f.measurePageBox();sn(h,m),Yx(c,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,h)}return hi(this.latestValues)&&Yx(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 f=!!this.resumingFrom||this!==u;if(!(a||f&&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 v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),$o(this.relativeTargetOrigin,this.layout.layoutBox,v.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(),yD(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),bx(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),$o(this.relativeTargetOrigin,this.target,v.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||vd(this.parent.latestValues)||yx(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 f=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(f=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===vt.timestamp&&(f=!1),f)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,v=this.treeScale.y;vD(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():(Ux(this.prevProjectionDelta.x,this.projectionDelta.x),Ux(this.prevProjectionDelta.y,this.projectionDelta.y)),Io(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==v||!Qx(this.projectionDelta.x,this.prevProjectionDelta.x)||!Qx(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=fs(),this.projectionDelta=fs(),this.projectionDeltaWithTransform=fs()}setAnimationOrigin(a,c=!1){const u=this.snapshot,f=u?u.latestValues:{},h={...this.latestValues},m=fs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=lt(),v=u?u.source:void 0,S=this.layout?this.layout.source:void 0,x=v!==S,T=this.getStack(),b=!T||T.members.length<=1,A=!!(x&&!b&&this.options.crossfade===!0&&!this.path.some(d5));this.animationProgress=0;let E;this.mixTargetDelta=$=>{const C=$/1e3;sb(m.x,a.x,C),sb(m.y,a.y,C),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&($o(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f5(this.relativeTarget,this.relativeTargetOrigin,p,C),E&&KD(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=lt()),sn(E,this.relativeTarget)),x&&(this.animationValues=h,UD(h,f,this.latestValues,C,A,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},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=qe.update(()=>{el.hasAnimatedSinceResize=!0,this.currentAnimation=RD(0,eb,{...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(eb),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:f,latestValues:h}=a;if(!(!c||!u||!f)){if(this!==a&&this.layout&&f&&ub(this.options.animationType,this.layout.layoutBox,f.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),hs(c,h),Io(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new XD),this.sharedNodes.get(a).add(c);const f=c.options.initialPromotionConfig;c.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.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 f=this.getStack();f&&f.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 f={};u.z&&Ed("z",a,f,this.animationValues);for(let h=0;h<Td.length;h++)Ed(`rotate${Td[h]}`,a,f,this.animationValues),Ed(`skew${Td[h]}`,a,f,this.animationValues);a.render();for(const h in f)a.setStaticValue(h,f[h]),this.animationValues&&(this.animationValues[h]=f[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return JD;const f={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=Ya(a==null?void 0:a.pointerEvents)||"",f.transform=h?h(this.latestValues,""):"none",f;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=Ya(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!hi(this.latestValues)&&(x.transform=h?h({},""):"none",this.hasProjected=!1),x}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),f.transform=ZD(this.projectionDeltaWithTransform,this.treeScale,p),h&&(f.transform=h(p,f.transform));const{x:v,y:S}=this.projectionDelta;f.transformOrigin=`${v.origin*100}% ${S.origin*100}% 0`,m.animationValues?f.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:f.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const x in yo){if(p[x]===void 0)continue;const{correct:T,applyTo:b,isCSSVariable:A}=yo[x],E=f.transform==="none"?p[x]:T(p[x],m);if(b){const $=b.length;for(let C=0;C<$;C++)f[b[C]]=E}else A?this.options.visualElement.renderState.vars[x]=E:f[x]=E}return this.options.layoutId&&(f.pointerEvents=m===this?Ya(a==null?void 0:a.pointerEvents)||"":"none"),f}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(rb),this.root.sharedNodes.clear()}}}function e5(e){e.updateLayout()}function t5(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],v=_t(p);p.min=r[m].min,p.max=p.min+v}):ub(o,n.layoutBox,r)&&rn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],v=_t(r[m]);p.max=p.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+v)});const c=fs();Io(c,r,n.layoutBox);const u=fs();a?Io(u,e.applyTransform(i,!0),n.measuredBox):Io(u,r,n.layoutBox);const f=!qx(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:v}=m;if(p&&v){const S=lt();$o(S,n.layoutBox,p.layoutBox);const x=lt();$o(x,r,v.layoutBox),Zx(S,x)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function n5(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 r5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function i5(e){e.clearSnapshot()}function rb(e){e.clearMeasurements()}function s5(e){e.isLayoutDirty=!1}function o5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ib(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function a5(e){e.resolveTargetDelta()}function l5(e){e.calcProjection()}function c5(e){e.resetSkewAndRotation()}function u5(e){e.removeLeadSnapshot()}function sb(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 ob(e,t,n,r){e.min=rt(t.min,n.min,r),e.max=rt(t.max,n.max,r)}function f5(e,t,n,r){ob(e.x,t.x,n.x,r),ob(e.y,t.y,n.y,r)}function d5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const h5={duration:.45,ease:[.4,0,.1,1]},ab=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),lb=ab("applewebkit/")&&!ab("chrome/")?Math.round:kt;function cb(e){e.min=lb(e.min),e.max=lb(e.max)}function m5(e){cb(e.x),cb(e.y)}function ub(e,t,n){return e==="position"||e==="preserve-aspect"&&!gD(Jx(t),Jx(n),.2)}function p5(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const g5=nb({attachResizeListener:(e,t)=>Mo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Cd={current:void 0},fb=nb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Cd.current){const e=new g5({});e.mount(window),e.setOptions({layoutScroll:!0}),Cd.current=e}return Cd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),y5={pan:{Feature:DD},drag:{Feature:$D,ProjectionNode:fb,MeasureLayout:Lx}};function v5(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 db(e,t){const n=v5(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function hb(e){return!(e.pointerType==="touch"||lx())}function x5(e,t,n={}){const[r,i,o]=db(e,n),a=c=>{if(!hb(c))return;const{target:u}=c,f=t(u,c);if(typeof f!="function"||!u)return;const h=m=>{hb(m)&&(f(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}function mb(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&&qe.postRender(()=>o(t,Oo(t)))}class b5 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=x5(t,(n,r)=>(mb(this.node,r,"Start"),i=>mb(this.node,i,"End"))))}unmount(){}}class w5 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=Po(Mo(this.node.current,"focus",()=>this.onFocus()),Mo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const pb=(e,t)=>t?e===t?!0:pb(e,t.parentElement):!1,S5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function T5(e){return S5.has(e.tagName)||e.tabIndex!==-1}const No=new WeakSet;function gb(e){return t=>{t.key==="Enter"&&e(t)}}function Pd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const E5=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=gb(()=>{if(No.has(n))return;Pd(n,"down");const i=gb(()=>{Pd(n,"up")}),o=()=>Pd(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 yb(e){return gd(e)&&!lx()}function C5(e,t,n={}){const[r,i,o]=db(e,n),a=c=>{const u=c.currentTarget;if(!yb(c)||No.has(u))return;No.add(u);const f=t(u,c),h=(v,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!yb(v)||!No.has(u))&&(No.delete(u),typeof f=="function"&&f(v,{success:S}))},m=v=>{h(v,u===window||u===document||n.useGlobalTarget||pb(u,v.target))},p=v=>{h(v,!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",f=>E5(f,i)),!T5(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}function vb(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&&qe.postRender(()=>o(t,Oo(t)))}class P5 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=C5(t,(n,r)=>(vb(this.node,r,"Start"),(i,{success:o})=>vb(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ad=new WeakMap,Md=new WeakMap,A5=e=>{const t=Ad.get(e.target);t&&t(e)},M5=e=>{e.forEach(A5)};function O5({root:e,...t}){const n=e||document;Md.has(n)||Md.set(n,{});const r=Md.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(M5,{root:e,...t})),r[i]}function _5(e,t,n){const r=O5(t);return Ad.set(e,n),r.observe(e),()=>{Ad.delete(e),r.unobserve(e)}}const I5={some:0,all:1};class $5 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:I5[i]},c=u=>{const{isIntersecting:f}=u;if(this.isInView===f||(this.isInView=f,o&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=f?h:m;p&&p(u)};return _5(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(D5(t,n))&&this.startObserver()}unmount(){}}function D5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const N5={inView:{Feature:$5},tap:{Feature:P5},focus:{Feature:w5},hover:{Feature:b5}},k5={layout:{ProjectionNode:fb,MeasureLayout:Lx}},Od={current:null},xb={current:!1};function L5(){if(xb.current=!0,!!wf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Od.current=e.matches;e.addListener(t),t()}else Od.current=!1}const R5=[...j1,Ct,Ar],j5=e=>R5.find(R1(e)),F5=new WeakMap;function V5(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,wo(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,wo(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const bb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class B5{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=od,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 v=Ln.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,qe.render(this.render,!1,!0))};const{latestValues:u,renderState:f,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=f,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=Lv(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in p){const S=p[v];u[v]!==void 0&&Et(S)&&S.set(u[v],!1)}}mount(t){this.current=t,F5.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)),xb.current||L5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Od.current,process.env.NODE_ENV!=="production"&&Ba(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Cr(this.notifyUpdate),Cr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=li.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&qe.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 is){const n=is[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<bb.length;r++){const i=bb[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=V5(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=wo(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"&&(k1(i)||x1(i))?i=parseFloat(i):!j5(i)&&Ar.test(n)&&(i=A1(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=Lf(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 Wf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class wb extends B5{constructor(){super(...arguments),this.KeyframeResolver=V1}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 W5(e){return window.getComputedStyle(e)}class U5 extends wb{constructor(){super(...arguments),this.type="html",this.renderInstance=Jv}readValueFromInstance(t,n){if(li.has(n))return q6(t,n);{const r=W5(t),i=(Mf(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ex(t,n)}build(t,n,r){If(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return jf(t,n,r)}}class z5 extends wb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Zv(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(li.has(n)){const r=P1(n);return r&&r.default||0}return n=Qv.has(n)?n:Af(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return t1(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&qe.postRender(this.updateDimensions)}build(t,n,r){Nf(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){e1(t,n,r,i)}mount(t){this.isSVGTag=kf(t.tagName),super.mount(t)}}const G5=(e,t)=>Df(e)?new z5(t):new U5(t,{allowProjection:e!==_.Fragment}),Y5=h6({...aD,...N5,...y5,...k5},G5),Ge=_I(Y5),_d={defaultColorScheme:"aqua",t:e=>e},Sb=_.createContext(_d),Ue=()=>_.useContext(Sb),H5={date:(e,t)=>new Date(t.created_at??"").toDateString()===e.toDateString(),search:(e,t)=>JSON.stringify(t).toLowerCase().includes(e.toLowerCase())};function q5(e,t){const[n,r]=_.useState([]),i=_.useCallback(({key:h,value:m,label:p,type:v,icon:S,options:x})=>{if(n.find(A=>A.key===h)){console.warn(`El filtro con key "${String(h)}" ya existe, salteando la actualización...`);return}let b;typeof t=="string"?b=H5[t]:b=t[h]||t[h],r(A=>[...A,{key:h,value:m,label:p,type:v,icon:S,options:x,fn:b}])},[t,n]),o=_.useCallback(({key:h,value:m})=>{r(p=>p.map(v=>v.key===h?{...v,value:m}:v))},[]),a=_.useCallback(({key:h})=>{r(m=>m.filter(p=>p.key!==h))},[]),c=_.useCallback(()=>{r([])},[]),u=_.useMemo(()=>n.reduce((h,m)=>h.filter(p=>m.fn(m.value,p)),e),[e,n]),f=_.useMemo(()=>({addFilter:i,updateFilter:o,removeFilter:a,clearFilters:c,activeFilters:n.map(h=>({key:h.key,value:h.value,label:h.label,type:h.type,icon:h.icon,options:h.options}))}),[i,o,a,c,n]);return{data:u,filterControl:f}}const Tb=({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}},f={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 y.jsx(vn,{children:n&&y.jsx(y.Fragment,{children:y.jsx(Ge.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:y.jsx(Ge.div,{className:"w-full max-w-4xl mx-16 z-50",variants:f,initial:"hidden",animate:"visible",exit:"exit",onClick:p=>p.stopPropagation(),children:y.jsxs(Ss,{className:"flex flex-col gap-16 p-32",children:[y.jsxs("div",{className:"flex justify-between items-center gap-16",children:[y.jsx("h3",{className:"text-black font-700 text-3xl",children:e}),a&&y.jsx(Pe,{icon:nu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})]}),y.jsx("p",{className:"text-gray-500 text-xl font-600",children:t}),y.jsxs("div",{className:"flex justify-end w-full gap-16",children:[o&&y.jsx(wi,{onClick:m,variant:"transparent",className:"px-24 py-10! text-lg!",children:c("cancel")}),i&&y.jsx(wi,{onClick:h,className:"px-24 py-16 text-lg!",children:c("confirm")})]})]})})})})})};/*!
659
+ `),()=>{document.head.removeChild(v)}},[t]),y.jsx(xI,{isPresent:t,childRef:i,sizeRef:o,children:Q.cloneElement(e,{ref:i})})}const wI=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=bf(SI),f=_.useId(),h=_.useCallback(p=>{u.set(p,!0);for(const v of u.values())if(!v)return;r&&r()},[u,r]),m=_.useMemo(()=>({id:f,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,v)=>u.set(v,!1))},[n]),Q.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=y.jsx(bI,{isPresent:n,anchorX:c,children:e})),y.jsx(Ra.Provider,{value:m,children:e})};function SI(){return new Map}function Ov(e=!0){const t=_.useContext(Ra);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 _v(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const vn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,f]=Ov(a),h=_.useMemo(()=>_v(e),[e]),m=a&&!u?[]:h.map(ja),p=_.useRef(!0),v=_.useRef(h),S=bf(()=>new Map),[x,T]=_.useState(h),[b,A]=_.useState(h);Mv(()=>{p.current=!1,v.current=h;for(let C=0;C<b.length;C++){const D=ja(b[C]);m.includes(D)?S.delete(D):S.get(D)!==!0&&S.set(D,!1)}},[b,m.length,m.join("-")]);const E=[];if(h!==x){let C=[...h];for(let D=0;D<b.length;D++){const j=b[D],F=ja(j);m.includes(F)||(C.splice(D,0,j),E.push(j))}return o==="wait"&&E.length&&(C=E),A(_v(C)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&b.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(xf);return y.jsx(y.Fragment,{children:b.map(C=>{const D=ja(C),j=a&&!u?!1:h===b||m.includes(D),F=()=>{if(S.has(D))S.set(D,!0);else return;let U=!0;S.forEach(Z=>{Z||(U=!1)}),U&&($==null||$(),A(v.current),a&&(f==null||f()),r&&r())};return y.jsx(wI,{isPresent:j,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:j?void 0:F,anchorX:c,children:C},D)})})},kt=e=>e;let rs=kt,Er=kt;process.env.NODE_ENV!=="production"&&(rs=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Er=(e,t)=>{if(!e)throw new Error(t)});const TI={useManualTiming:!1},Fa=["read","resolveKeyframes","update","preRender","render","postRender"],Iv={value:null};function EI(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 f(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,p=!1,v=!1)=>{const x=v&&i?n:r;return p&&a.add(m),x.has(m)||x.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(f),t&&Iv.value&&Iv.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const CI=40;function $v(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Fa.reduce((b,A)=>(b[A]=EI(o,t?A:void 0),b),{}),{read:c,resolveKeyframes:u,update:f,preRender:h,render:m,postRender:p}=a,v=()=>{const b=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(b-i.timestamp,CI),1),i.timestamp=b,i.isProcessing=!0,c.process(i),u.process(i),f.process(i),h.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))},S=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:Fa.reduce((b,A)=>{const E=a[A];return b[A]=($,C=!1,D=!1)=>(n||S(),E.schedule($,C,D)),b},{}),cancel:b=>{for(let A=0;A<Fa.length;A++)a[Fa[A]].cancel(b)},state:i,steps:a}}const{schedule:qe,cancel:Cr,state:vt,steps:Tf}=$v(typeof requestAnimationFrame<"u"?requestAnimationFrame:kt,!0),Dv=_.createContext({strict:!1}),Nv={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"]},is={};for(const e in Nv)is[e]={isEnabled:t=>Nv[e].some(n=>!!t[n])};function PI(e){for(const t in e)is[t]={...is[t],...e[t]}}const AI=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")||AI.has(e)}let kv=e=>!Va(e);function MI(e){e&&(kv=t=>t.startsWith("on")?!Va(t):e(t))}try{MI(require("@emotion/is-prop-valid").default)}catch{}function OI(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(kv(i)||n===!0&&Va(i)||!t&&!Va(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Lv=new Set;function Ba(e,t,n){e||Lv.has(t)||(console.warn(t),Lv.add(t))}function _I(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 go(e){return typeof e=="string"||Array.isArray(e)}const Ef=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Cf=["initial",...Ef];function za(e){return Ua(e.animate)||Cf.some(t=>go(e[t]))}function Rv(e){return!!(za(e)||e.variants)}function II(e,t){if(za(e)){const{initial:n,animate:r}=e;return{initial:n===!1||go(n)?n:void 0,animate:go(r)?r:void 0}}return e.inherit!==!1?t:{}}function $I(e){const{initial:t,animate:n}=II(e,_.useContext(Wa));return _.useMemo(()=>({initial:t,animate:n}),[jv(t),jv(n)])}function jv(e){return Array.isArray(e)?e.join(" "):e}const DI=Symbol.for("motionComponentSymbol");function ss(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function NI(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):ss(n)&&(n.current=r))},[t])}const{schedule:Pf}=$v(queueMicrotask,!1),Af=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Fv="data-"+Af("framerAppearId"),Vv=_.createContext({});function kI(e,t,n,r,i){var o,a;const{visualElement:c}=_.useContext(Wa),u=_.useContext(Dv),f=_.useContext(Ra),h=_.useContext(Sf).reducedMotion,m=_.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:h}));const p=m.current,v=_.useContext(Vv);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&LI(m.current,n,i,v);const S=_.useRef(!1);_.useInsertionEffect(()=>{p&&S.current&&p.update(n,f)});const x=n[Fv],T=_.useRef(!!x&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,x))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,x)));return Mv(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Pf.render(p.render),T.current&&p.animationState&&p.animationState.animateChanges())}),_.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,x)}),T.current=!1))}),p}function LI(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Bv(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&ss(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:f})}function Bv(e){if(e)return e.options.allowProjection!==!1?e.projection:Bv(e.parent)}function RI({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&PI(e);function c(f,h){let m;const p={..._.useContext(Sf),...f,layoutId:jI(f)},{isStatic:v}=p,S=$I(f),x=r(f,v);if(!v&&wf){FI(p,e);const T=VI(p);m=T.MeasureLayout,S.visualElement=kI(i,x,p,t,T.ProjectionNode)}return y.jsxs(Wa.Provider,{value:S,children:[m&&S.visualElement?y.jsx(m,{visualElement:S.visualElement,...p}):null,n(i,f,NI(x,S.visualElement,h),x,v,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[DI]=i,u}function jI({layoutId:e}){const t=_.useContext(xf).id;return t&&e!==void 0?t+"-"+e:e}function FI(e,t){const n=_.useContext(Dv).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?rs(!1,r):Er(!1,r)}}function VI(e){const{drag:t,layout:n}=is;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 Wv=e=>t=>typeof t=="string"&&t.startsWith(e),Mf=Wv("--"),BI=Wv("var(--"),Of=e=>BI(e)?WI.test(e.split("/*")[0].trim()):!1,WI=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,yo={};function UI(e){for(const t in e)yo[t]=e[t],Mf(t)&&(yo[t].isCSSVariable=!0)}const os=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],li=new Set(os);function Uv(e,{layout:t,layoutId:n}){return li.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!yo[e]||e==="opacity")}const Et=e=>!!(e&&e.getVelocity),zv=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Zn=(e,t,n)=>n>t?t:n<e?e:n,as={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},vo={...as,transform:e=>Zn(0,1,e)},Ga={...as,default:1},xo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pr=xo("deg"),kn=xo("%"),Se=xo("px"),zI=xo("vh"),GI=xo("vw"),Gv={...kn,parse:e=>kn.parse(e)/100,transform:e=>kn.transform(e*100)},YI={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},HI={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:vo,originX:Gv,originY:Gv,originZ:Se},Yv={...as,transform:Math.round},_f={...YI,...HI,zIndex:Yv,size:Se,fillOpacity:vo,strokeOpacity:vo,numOctaves:Yv},qI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},KI=os.length;function XI(e,t,n){let r="",i=!0;for(let o=0;o<KI;o++){const a=os[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 f=zv(c,_f[a]);if(!u){i=!1;const h=qI[a]||a;r+=`${h}(${f}) `}n&&(t[a]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function If(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const f=t[u];if(li.has(u)){a=!0;continue}else if(Mf(u)){i[u]=f;continue}else{const h=zv(f,_f[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=XI(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:f="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${f} ${h}`}}const $f=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Hv(e,t,n){for(const r in t)!Et(t[r])&&!Uv(r,n)&&(e[r]=t[r])}function ZI({transformTemplate:e},t){return _.useMemo(()=>{const n=$f();return If(n,t,e),Object.assign({},n.vars,n.style)},[t])}function JI(e,t){const n=e.style||{},r={};return Hv(r,n,e),Object.assign(r,ZI(e,t)),r}function QI(e,t){const n={},r=JI(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 e6=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Df(e){return typeof e!="string"||e.includes("-")?!1:!!(e6.indexOf(e)>-1||/[A-Z]/u.test(e))}const t6={offset:"stroke-dashoffset",array:"stroke-dasharray"},n6={offset:"strokeDashoffset",array:"strokeDasharray"};function r6(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?t6:n6;e[o.offset]=Se.transform(-r);const a=Se.transform(t),c=Se.transform(n);e[o.array]=`${a} ${c}`}function qv(e,t,n){return typeof e=="string"?e:Se.transform(t+n*e)}function i6(e,t,n){const r=qv(t,e.x,e.width),i=qv(n,e.y,e.height);return`${r} ${i}`}function Nf(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...f},h,m){if(If(e,f,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:v,dimensions:S}=e;p.transform&&(S&&(v.transform=p.transform),delete p.transform),S&&(i!==void 0||o!==void 0||v.transform)&&(v.transformOrigin=i6(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&&r6(p,a,c,u,!1)}const Kv=()=>({...$f(),attrs:{}}),kf=e=>typeof e=="string"&&e.toLowerCase()==="svg";function s6(e,t,n,r){const i=_.useMemo(()=>{const o=Kv();return Nf(o,t,kf(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Hv(o,e.style,e),i.style={...o,...i.style}}return i}function o6(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(Df(n)?s6:QI)(r,o,a,n),f=OI(r,typeof n=="string",e),h=n!==_.Fragment?{...f,...u,ref:i}:{},{children:m}=r,p=_.useMemo(()=>Et(m)?m.get():m,[m]);return _.createElement(n,{...h,children:p})}}function Xv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Lf(e,t,n,r){if(typeof t=="function"){const[i,o]=Xv(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]=Xv(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Rf=e=>Array.isArray(e),a6=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),l6=e=>Rf(e)?e[e.length-1]||0:e;function Ya(e){const t=Et(e)?e.get():e;return a6(t)?t.toValue():t}function c6({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:u6(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Zv=e=>(t,n)=>{const r=_.useContext(Wa),i=_.useContext(Ra),o=()=>c6(e,t,r,i);return n?o():bf(o)};function u6(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),f=Rv(e);t&&f&&!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 v=0;v<p.length;v++){const S=Lf(e,p[v]);if(S){const{transitionEnd:x,transition:T,...b}=S;for(const A in b){let E=b[A];if(Array.isArray(E)){const $=h?E.length-1:0;E=E[$]}E!==null&&(i[A]=E)}for(const A in x)i[A]=x[A]}}}return i}function jf(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(Et(i[a])||t.style&&Et(t.style[a])||Uv(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 f6={useVisualState:Zv({scrapeMotionValuesFromProps:jf,createRenderState:$f})};function Jv(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 Qv(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 e1=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 t1(e,t,n,r){Qv(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(e1.has(i)?i:Af(i),t.attrs[i])}function n1(e,t,n){const r=jf(e,t,n);for(const i in e)if(Et(e[i])||Et(t[i])){const o=os.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const r1=["x","y","width","height","cx","cy","r"],d6={useVisualState:Zv({scrapeMotionValuesFromProps:n1,createRenderState:Kv,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<r1.length;c++){const u=r1[c];e[u]!==t[u]&&(a=!0)}a&&qe.read(()=>{Jv(n,r),qe.render(()=>{Nf(r,i,kf(n.tagName),e.transformTemplate),t1(n,r)})})}})};function h6(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Df(r)?d6:f6,preloadedFeatures:e,useRender:o6(i),createVisualElement:t,Component:r};return RI(a)}}function bo(e,t,n){const r=e.getProps();return Lf(r,t,n!==void 0?n:r.custom,e)}function Ff(e,t){return e?e[t]||e.default||e:void 0}const i1=new Set(["width","height","top","left","right","bottom",...os]);function Vf(e,t){e.indexOf(t)===-1&&e.push(t)}function Bf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Wf{constructor(){this.subscriptions=[]}add(t){return Vf(this.subscriptions,t),()=>Bf(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 s1(e,t){return t?e*(1e3/t):0}let Ha;function m6(){Ha=void 0}const Ln={now:()=>(Ha===void 0&&Ln.set(vt.isProcessing||TI.useManualTiming?vt.timestamp:performance.now()),Ha),set:e=>{Ha=e,queueMicrotask(m6)}},o1=30,p6=e=>!isNaN(parseFloat(e));class g6{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Ln.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=Ln.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=p6(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 Wf);const r=this.events[t].add(n);return t==="change"?()=>{r(),qe.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=Ln.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>o1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,o1);return s1(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 wo(e,t){return new g6(e,t)}function y6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,wo(n))}function v6(e,t){const n=bo(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=l6(o[a]);y6(e,a,c)}}function x6(e){return!!(Et(e)&&e.add)}function Uf(e,t){const n=e.getValue("willChange");if(x6(n))return n.add(t)}function a1(e){return e.props[Fv]}function zf(e){let t;return()=>(t===void 0&&(t=e()),t)}const b6=zf(()=>window.ScrollTimeline!==void 0);class w6{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(b6()&&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 S6 extends w6{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const Rn=e=>e*1e3,Jn=e=>e/1e3;function Gf(e){return typeof e=="function"}function l1(e,t){e.timeline=t,e.onfinish=null}const Yf=e=>Array.isArray(e)&&typeof e[0]=="number",T6={linearEasing:void 0};function E6(e,t){const n=zf(e);return()=>{var r;return(r=T6[t])!==null&&r!==void 0?r:n()}}const qa=E6(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ls=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},c1=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(ls(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function u1(e){return!!(typeof e=="function"&&qa()||!e||typeof e=="string"&&(e in Hf||qa())||Yf(e)||Array.isArray(e)&&e.every(u1))}const So=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Hf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:So([0,.65,.55,1]),circOut:So([.55,0,1,.45]),backIn:So([.31,.01,.66,-.59]),backOut:So([.33,1.53,.69,.99])};function f1(e,t){if(e)return typeof e=="function"&&qa()?c1(e,t):Yf(e)?So(e):Array.isArray(e)?e.map(n=>f1(n,t)||Hf.easeOut):Hf[e]}const d1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,C6=1e-7,P6=12;function A6(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=d1(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>C6&&++c<P6);return a}function To(e,t,n,r){if(e===t&&n===r)return kt;const i=o=>A6(o,0,1,e,n);return o=>o===0||o===1?o:d1(i(o),t,r)}const h1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,m1=e=>t=>1-e(1-t),p1=To(.33,1.53,.69,.99),qf=m1(p1),g1=h1(qf),y1=e=>(e*=2)<1?.5*qf(e):.5*(2-Math.pow(2,-10*(e-1))),Kf=e=>1-Math.sin(Math.acos(e)),v1=m1(Kf),x1=h1(Kf),b1=e=>/^0[^.\s]+$/u.test(e);function M6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||b1(e):!0}const Eo=e=>Math.round(e*1e5)/1e5,Xf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function O6(e){return e==null}const _6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Zf=(e,t)=>n=>!!(typeof n=="string"&&_6.test(n)&&n.startsWith(e)||t&&!O6(n)&&Object.prototype.hasOwnProperty.call(n,t)),w1=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Xf);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},I6=e=>Zn(0,255,e),Jf={...as,transform:e=>Math.round(I6(e))},ci={test:Zf("rgb","red"),parse:w1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Jf.transform(e)+", "+Jf.transform(t)+", "+Jf.transform(n)+", "+Eo(vo.transform(r))+")"};function $6(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 Qf={test:Zf("#"),parse:$6,transform:ci.transform},cs={test:Zf("hsl","hue"),parse:w1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+kn.transform(Eo(t))+", "+kn.transform(Eo(n))+", "+Eo(vo.transform(r))+")"},Ct={test:e=>ci.test(e)||Qf.test(e)||cs.test(e),parse:e=>ci.test(e)?ci.parse(e):cs.test(e)?cs.parse(e):Qf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ci.transform(e):cs.transform(e)},D6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function N6(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Xf))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(D6))===null||n===void 0?void 0:n.length)||0)>0}const S1="number",T1="color",k6="var",L6="var(",E1="${}",R6=/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 Co(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(R6,u=>(Ct.test(u)?(r.color.push(o),i.push(T1),n.push(Ct.parse(u))):u.startsWith(L6)?(r.var.push(o),i.push(k6),n.push(u)):(r.number.push(o),i.push(S1),n.push(parseFloat(u))),++o,E1)).split(E1);return{values:n,split:c,indexes:r,types:i}}function C1(e){return Co(e).values}function P1(e){const{split:t,types:n}=Co(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===S1?o+=Eo(i[a]):c===T1?o+=Ct.transform(i[a]):o+=i[a]}return o}}const j6=e=>typeof e=="number"?0:e;function F6(e){const t=C1(e);return P1(e)(t.map(j6))}const Ar={test:N6,parse:C1,createTransformer:P1,getAnimatableNone:F6},V6=new Set(["brightness","contrast","saturate","opacity"]);function B6(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Xf)||[];if(!r)return e;const i=n.replace(r,"");let o=V6.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const W6=/\b([a-z-]*)\(.*?\)/gu,ed={...Ar,getAnimatableNone:e=>{const t=e.match(W6);return t?t.map(B6).join(" "):e}},U6={..._f,color:Ct,backgroundColor:Ct,outlineColor:Ct,fill:Ct,stroke:Ct,borderColor:Ct,borderTopColor:Ct,borderRightColor:Ct,borderBottomColor:Ct,borderLeftColor:Ct,filter:ed,WebkitFilter:ed},A1=e=>U6[e];function M1(e,t){let n=A1(e);return n!==ed&&(n=Ar),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const z6=new Set(["auto","none","0"]);function G6(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!z6.has(o)&&Co(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=M1(n,i)}const ui=e=>e*180/Math.PI,td=e=>{const t=ui(Math.atan2(e[1],e[0]));return nd(t)},Y6={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:td,rotateZ:td,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},nd=e=>(e=e%360,e<0&&(e+=360),e),O1=td,_1=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),I1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),H6={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:_1,scaleY:I1,scale:e=>(_1(e)+I1(e))/2,rotateX:e=>nd(ui(Math.atan2(e[6],e[5]))),rotateY:e=>nd(ui(Math.atan2(-e[2],e[0]))),rotateZ:O1,rotate:O1,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 $1(e){return e.includes("scale")?1:0}function rd(e,t){if(!e||e==="none")return $1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=H6,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Y6,i=c}if(!i)return $1(t);const o=r[t],a=i[1].split(",").map(K6);return typeof o=="function"?o(a):a[o]}const q6=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return rd(n,t)};function K6(e){return parseFloat(e.trim())}const D1=e=>e===as||e===Se,X6=new Set(["x","y","z"]),Z6=os.filter(e=>!X6.has(e));function J6(e){const t=[];return Z6.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const us={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})=>rd(t,"x"),y:(e,{transform:t})=>rd(t,"y")};us.translateX=us.x,us.translateY=us.y;const fi=new Set;let id=!1,sd=!1;function N1(){if(sd){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=J6(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)})}sd=!1,id=!1,fi.forEach(e=>e.complete()),fi.clear()}function k1(){fi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(sd=!0)})}function Q6(){k1(),N1()}class od{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),id||(id=!0,qe.read(k1),qe.resolveKeyframes(N1))):(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 L1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),e$=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function t$(e){const t=e$.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const n$=4;function R1(e,t,n=1){Er(n<=n$,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=t$(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return L1(a)?parseFloat(a):a}return Of(i)?R1(i,t,n+1):i}const j1=e=>t=>t.test(e),F1=[as,Se,kn,Pr,GI,zI,{test:e=>e==="auto",parse:e=>e}],V1=e=>F1.find(j1(e));class B1 extends od{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 f=t[u];if(typeof f=="string"&&(f=f.trim(),Of(f))){const h=R1(f,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!i1.has(r)||t.length!==2)return;const[i,o]=t,a=V1(i),c=V1(o);if(a!==c)if(D1(a)&&D1(c))for(let u=0;u<t.length;u++){const f=t[u];typeof f=="string"&&(t[u]=parseFloat(f))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)M6(t[i])&&r.push(i);r.length&&G6(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=us[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]=us[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,f])=>{n.getValue(u).set(f)}),this.resolveNoneKeyframes()}}const W1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ar.test(e)||e==="0")&&!e.startsWith("url("));function r$(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 i$(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=W1(i,t),c=W1(o,t);return rs(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:r$(e)||(n==="spring"||Gf(n))&&r}const s$=e=>e!==null;function Ka(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(s$),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const o$=40;class U1{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=Ln.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>o$?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Q6(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Ln.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:f}=this.options;if(!f&&!i$(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 ad=2e4;function z1(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ad;)t+=n,r=e.next(t);return t>=ad?1/0:t}const rt=(e,t,n)=>e+(t-e)*n;function ld(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 a$({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=ld(u,c,e+1/3),o=ld(u,c,e),a=ld(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 cd=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},l$=[Qf,ci,cs],c$=e=>l$.find(t=>t.test(e));function G1(e){const t=c$(e);if(rs(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===cs&&(n=a$(n)),n}const Y1=(e,t)=>{const n=G1(e),r=G1(t);if(!n||!r)return Xa(e,t);const i={...n};return o=>(i.red=cd(n.red,r.red,o),i.green=cd(n.green,r.green,o),i.blue=cd(n.blue,r.blue,o),i.alpha=rt(n.alpha,r.alpha,o),ci.transform(i))},u$=(e,t)=>n=>t(e(n)),Po=(...e)=>e.reduce(u$),ud=new Set(["none","hidden"]);function f$(e,t){return ud.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function d$(e,t){return n=>rt(e,t,n)}function fd(e){return typeof e=="number"?d$:typeof e=="string"?Of(e)?Xa:Ct.test(e)?Y1:p$:Array.isArray(e)?H1:typeof e=="object"?Ct.test(e)?Y1:h$:Xa}function H1(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>fd(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function h$(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=fd(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function m$(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 p$=(e,t)=>{const n=Ar.createTransformer(t),r=Co(e),i=Co(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?ud.has(e)&&!i.values.length||ud.has(t)&&!r.values.length?f$(e,t):Po(H1(m$(r,i),i.values),n):(rs(!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 q1(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?rt(e,t,n):fd(e)(e,t)}const g$=5;function K1(e,t,n){const r=Math.max(t-g$,0);return s1(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},X1=.001;function y$({duration:e=it.duration,bounce:t=it.bounce,velocity:n=it.velocity,mass:r=it.mass}){let i,o;rs(e<=Rn(it.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Zn(it.minDamping,it.maxDamping,a),e=Zn(it.minDuration,it.maxDuration,Jn(e)),a<1?(i=f=>{const h=f*a,m=h*e,p=h-n,v=dd(f,a),S=Math.exp(-m);return X1-p/v*S},o=f=>{const m=f*a*e,p=m*n+n,v=Math.pow(a,2)*Math.pow(f,2)*e,S=Math.exp(-m),x=dd(Math.pow(f,2),a);return(-i(f)+X1>0?-1:1)*((p-v)*S)/x}):(i=f=>{const h=Math.exp(-f*e),m=(f-n)*e+1;return-.001+h*m},o=f=>{const h=Math.exp(-f*e),m=(n-f)*(e*e);return h*m});const c=5/e,u=x$(i,o,c);if(e=Rn(e),isNaN(u))return{stiffness:it.stiffness,damping:it.damping,duration:e};{const f=Math.pow(u,2)*r;return{stiffness:f,damping:a*2*Math.sqrt(r*f),duration:e}}}const v$=12;function x$(e,t,n){let r=n;for(let i=1;i<v$;i++)r=r-e(r)/t(r);return r}function dd(e,t){return e*Math.sqrt(1-t*t)}const b$=["duration","bounce"],w$=["stiffness","damping","mass"];function Z1(e,t){return t.some(n=>e[n]!==void 0)}function S$(e){let t={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!Z1(e,w$)&&Z1(e,b$))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Zn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:it.mass,stiffness:i,damping:o}}else{const n=y$(e);t={...t,...n,mass:it.mass},t.isResolvedFromDuration=!0}return t}function J1(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:f,mass:h,duration:m,velocity:p,isResolvedFromDuration:v}=S$({...n,velocity:-Jn(n.velocity||0)}),S=p||0,x=f/(2*Math.sqrt(u*h)),T=a-o,b=Jn(Math.sqrt(u/h)),A=Math.abs(T)<5;r||(r=A?it.restSpeed.granular:it.restSpeed.default),i||(i=A?it.restDelta.granular:it.restDelta.default);let E;if(x<1){const C=dd(b,x);E=D=>{const j=Math.exp(-x*b*D);return a-j*((S+x*b*T)/C*Math.sin(C*D)+T*Math.cos(C*D))}}else if(x===1)E=C=>a-Math.exp(-b*C)*(T+(S+b*T)*C);else{const C=b*Math.sqrt(x*x-1);E=D=>{const j=Math.exp(-x*b*D),F=Math.min(C*D,300);return a-j*((S+x*b*T)*Math.sinh(F)+C*T*Math.cosh(F))/C}}const $={calculatedDuration:v&&m||null,next:C=>{const D=E(C);if(v)c.done=C>=m;else{let j=0;x<1&&(j=C===0?Rn(S):K1(E,C,D));const F=Math.abs(j)<=r,U=Math.abs(a-D)<=i;c.done=F&&U}return c.value=c.done?a:D,c},toString:()=>{const C=Math.min(z1($),ad),D=c1(j=>$.next(C*j).value,C,30);return C+"ms "+D}};return $}function Q1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:f=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},v=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 x=n*t;const T=m+x,b=a===void 0?T:a(T);b!==T&&(x=b-m);const A=F=>-x*Math.exp(-F/r),E=F=>b+A(F),$=F=>{const U=A(F),Z=E(F);p.done=Math.abs(U)<=f,p.value=p.done?b:Z};let C,D;const j=F=>{v(p.value)&&(C=F,D=J1({keyframes:[p.value,S(p.value)],velocity:K1(E,F,p.value),damping:i,stiffness:o,restDelta:f,restSpeed:h}))};return j(0),{calculatedDuration:null,next:F=>{let U=!1;return!D&&C===void 0&&(U=!0,$(F),j(F)),C!==void 0&&F>=C?D.next(F-C):(!U&&$(F),p)}}}const T$=To(.42,0,1,1),E$=To(0,0,.58,1),ex=To(.42,0,.58,1),C$=e=>Array.isArray(e)&&typeof e[0]!="number",tx={linear:kt,easeIn:T$,easeInOut:ex,easeOut:E$,circIn:Kf,circInOut:x1,circOut:v1,backIn:qf,backInOut:g1,backOut:p1,anticipate:y1},nx=e=>{if(Yf(e)){Er(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 Er(tx[e]!==void 0,`Invalid easing type '${e}'`),tx[e];return e};function P$(e,t,n){const r=[],i=n||q1,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]||kt:t;c=Po(u,c)}r.push(c)}return r}function A$(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=P$(t,r,i),u=c.length,f=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=ls(e[m],e[m+1],h);return c[m](p)};return n?h=>f(Zn(e[0],e[o-1],h)):f}function M$(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ls(0,t,r);e.push(rt(n,1,i))}}function O$(e){const t=[0];return M$(t,e.length-1),t}function _$(e,t){return e.map(n=>n*t)}function I$(e,t){return e.map(()=>t||ex).splice(0,e.length-1)}function Ao({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=C$(r)?r.map(nx):nx(r),o={done:!1,value:t[0]},a=_$(n&&n.length===t.length?n:O$(t),e),c=A$(a,t,{ease:Array.isArray(i)?i:I$(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const $$=e=>{const t=({timestamp:n})=>e(n);return{start:()=>qe.update(t,!0),stop:()=>Cr(t),now:()=>vt.isProcessing?vt.timestamp:Ln.now()}},D$={decay:Q1,inertia:Q1,tween:Ao,keyframes:Ao,spring:J1},N$=e=>e/100;class hd extends U1{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)||od,c=(u,f)=>this.onKeyframesResolved(u,f);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=Gf(n)?n:D$[n]||Ao;let u,f;process.env.NODE_ENV!=="production"&&c!==Ao&&Er(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==Ao&&typeof t[0]!="number"&&(u=Po(N$,q1(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(f=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=z1(h));const{calculatedDuration:m}=h,p=m+i,v=p*(r+1)-i;return{generator:h,mirroredGenerator:f,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:v}}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:f,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:v,repeatType:S,repeatDelay:x,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 b=this.currentTime-p*(this.speed>=0?1:-1),A=this.speed>=0?b<0:b>h;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let E=this.currentTime,$=o;if(v){const F=Math.min(this.currentTime,h)/m;let U=Math.floor(F),Z=F%1;!Z&&F>=1&&(Z=1),Z===1&&U--,U=Math.min(U,v+1),!!(U%2)&&(S==="reverse"?(Z=1-Z,x&&(Z-=x/m)):S==="mirror"&&($=a)),E=Zn(0,1,Z)*m}const C=A?{done:!1,value:u[0]}:$.next(E);c&&(C.value=c(C.value));let{done:D}=C;!A&&f!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return j&&i!==void 0&&(C.value=Ka(u,this.options,i)),T&&T(C.value),j&&this.finish(),C}get duration(){const{resolved:t}=this;return t?Jn(t.calculatedDuration):0}get time(){return Jn(this.currentTime)}set time(t){t=Rn(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=Jn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=$$,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 k$=new Set(["opacity","clipPath","filter","transform"]);function L$(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const f={[t]:n};u&&(f.offset=u);const h=f1(c,i);return Array.isArray(h)&&(f.easing=h),e.animate(f,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const R$=zf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Za=10,j$=2e4;function F$(e){return Gf(e.type)||e.type==="spring"||!u1(e.ease)}function V$(e,t){const n=new hd({...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<j$;)r=n.sample(o),i.push(r.value),o+=Za;return{times:void 0,keyframes:i,duration:o-Za,ease:"linear"}}const rx={anticipate:y1,backInOut:g1,circInOut:x1};function B$(e){return e in rx}class ix extends U1{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new B1(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:f}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&qa()&&B$(o)&&(o=rx[o]),F$(this.options)){const{onComplete:m,onUpdate:p,motionValue:v,element:S,...x}=this.options,T=V$(t,x);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,o=T.ease,a="keyframes"}const h=L$(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(l1(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 Jn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Jn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Rn(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 kt;const{animation:r}=n;l1(r,t)}return kt}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:f,onUpdate:h,onComplete:m,element:p,...v}=this.options,S=new hd({...v,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),x=Rn(this.time);f.setWithVelocity(S.sample(x-Za).value,S.sample(x).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:f}=n.owner.getProps();return R$()&&r&&k$.has(r)&&(r!=="transform"||!f)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}}const W$={type:"spring",stiffness:500,damping:25,restSpeed:10},U$=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),z$={type:"keyframes",duration:.8},G$={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Y$=(e,{keyframes:t})=>t.length>2?z$:li.has(e)?e.startsWith("scale")?U$(t[1]):W$:G$;function H$({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:f,...h}){return!!Object.keys(h).length}const md=(e,t,n,r={},i,o)=>a=>{const c=Ff(r,e)||{},u=c.delay||r.delay||0;let{elapsed:f=0}=r;f=f-Rn(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-f,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};H$(c)||(h={...h,...Y$(e,h)}),h.duration&&(h.duration=Rn(h.duration)),h.repeatDelay&&(h.repeatDelay=Rn(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 qe.update(()=>{h.onUpdate(p),h.onComplete()}),new S6([])}return!o&&ix.supports(h)?new ix(h):new hd(h)};function q$({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function sx(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const f=[],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),v=u[m];if(v===void 0||h&&q$(h,m))continue;const S={delay:n,...Ff(a||{},m)};let x=!1;if(window.MotionHandoffAnimation){const b=a1(e);if(b){const A=window.MotionHandoffAnimation(b,m,qe);A!==null&&(S.startTime=A,x=!0)}}Uf(e,m),p.start(md(m,p,v,e.shouldReduceMotion&&i1.has(m)?{type:!1}:S,e,x));const T=p.animation;T&&f.push(T)}return c&&Promise.all(f).then(()=>{qe.update(()=>{c&&v6(e,c)})}),f}function pd(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(sx(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return K$(e,t,h+f,m,p,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[f,h]=u==="beforeChildren"?[a,c]:[c,a];return f().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function K$(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(f=0)=>f*r:(f=0)=>c-f*r;return Array.from(e.variantChildren).sort(X$).forEach((f,h)=>{f.notify("AnimationStart",t),a.push(pd(f,t,{...o,delay:n+u(h)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(a)}function X$(e,t){return e.sortNodePosition(t)}function Z$(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>pd(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=pd(e,t,n);else{const i=typeof t=="function"?bo(e,t,n.custom):t;r=Promise.all(sx(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function ox(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 J$=Cf.length;function ax(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ax(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<J$;n++){const r=Cf[n],i=e.props[r];(go(i)||i===!1)&&(t[r]=i)}return t}const Q$=[...Ef].reverse(),eD=Ef.length;function tD(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Z$(e,n,r)))}function nD(e){let t=tD(e),n=lx(),r=!0;const i=u=>(f,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:v,transitionEnd:S,...x}=p;f={...f,...x,...S}}return f};function o(u){t=u(e)}function a(u){const{props:f}=e,h=ax(e.parent)||{},m=[],p=new Set;let v={},S=1/0;for(let T=0;T<eD;T++){const b=Q$[T],A=n[b],E=f[b]!==void 0?f[b]:h[b],$=go(E),C=b===u?A.isActive:null;C===!1&&(S=T);let D=E===h[b]&&E!==f[b]&&$;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),A.protectedKeys={...v},!A.isActive&&C===null||!E&&!A.prevProp||Ua(E)||typeof E=="boolean")continue;const j=rD(A.prevProp,E);let F=j||b===u&&A.isActive&&!D&&$||T>S&&$,U=!1;const Z=Array.isArray(E)?E:[E];let ee=Z.reduce(i(b),{});C===!1&&(ee={});const{prevResolvedValues:se={}}=A,ge={...se,...ee},ue=V=>{F=!0,p.has(V)&&(U=!0,p.delete(V)),A.needsAnimating[V]=!0;const B=e.getValue(V);B&&(B.liveStyle=!1)};for(const V in ge){const B=ee[V],Y=se[V];if(v.hasOwnProperty(V))continue;let O=!1;Rf(B)&&Rf(Y)?O=!ox(B,Y):O=B!==Y,O?B!=null?ue(V):p.add(V):B!==void 0&&p.has(V)?ue(V):A.protectedKeys[V]=!0}A.prevProp=E,A.prevResolvedValues=ee,A.isActive&&(v={...v,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(D&&j)||U)&&m.push(...Z.map(V=>({animation:V,options:{type:b}})))}if(p.size){const T={};if(typeof f.initial!="boolean"){const b=bo(e,Array.isArray(f.initial)?f.initial[0]:f.initial);b&&b.transition&&(T.transition=b.transition)}p.forEach(b=>{const A=e.getBaseTarget(b),E=e.getValue(b);E&&(E.liveStyle=!0),T[b]=A??null}),m.push({animation:T})}let x=!!m.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(m):Promise.resolve()}function c(u,f){var h;if(n[u].isActive===f)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var v;return(v=p.animationState)===null||v===void 0?void 0:v.setActive(u,f)}),n[u].isActive=f;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=lx(),r=!0}}}function rD(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ox(t,e):!1}function di(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function lx(){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 iD extends Mr{constructor(t){super(t),t.animationState||(t.animationState=nD(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 sD=0;class oD extends Mr{constructor(){super(...arguments),this.id=sD++}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 aD={animation:{Feature:iD},exit:{Feature:oD}},xn={x:!1,y:!1};function cx(){return xn.x||xn.y}function lD(e){return e==="x"||e==="y"?xn[e]?null:(xn[e]=!0,()=>{xn[e]=!1}):xn.x||xn.y?null:(xn.x=xn.y=!0,()=>{xn.x=xn.y=!1})}function Mo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const gd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Oo(e){return{point:{x:e.pageX,y:e.pageY}}}const cD=e=>t=>gd(t)&&e(t,Oo(t));function _o(e,t,n,r){return Mo(e,t,cD(n),r)}function ux({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function uD({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function fD(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 fx=1e-4,dD=1-fx,hD=1+fx,dx=.01,mD=0-dx,pD=0+dx;function _t(e){return e.max-e.min}function gD(e,t,n){return Math.abs(e-t)<=n}function hx(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>=dD&&e.scale<=hD||isNaN(e.scale))&&(e.scale=1),(e.translate>=mD&&e.translate<=pD||isNaN(e.translate))&&(e.translate=0)}function Io(e,t,n,r){hx(e.x,t.x,n.x,r?r.originX:void 0),hx(e.y,t.y,n.y,r?r.originY:void 0)}function mx(e,t,n){e.min=n.min+t.min,e.max=e.min+_t(t)}function yD(e,t,n){mx(e.x,t.x,n.x),mx(e.y,t.y,n.y)}function px(e,t,n){e.min=t.min-n.min,e.max=e.min+_t(t)}function $o(e,t,n){px(e.x,t.x,n.x),px(e.y,t.y,n.y)}const gx=()=>({translate:0,scale:1,origin:0,originPoint:0}),fs=()=>({x:gx(),y:gx()}),yx=()=>({min:0,max:0}),lt=()=>({x:yx(),y:yx()});function rn(e){return[e("x"),e("y")]}function yd(e){return e===void 0||e===1}function vd({scale:e,scaleX:t,scaleY:n}){return!yd(e)||!yd(t)||!yd(n)}function hi(e){return vd(e)||vx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vx(e){return xx(e.x)||xx(e.y)}function xx(e){return e&&e!=="0%"}function Ja(e,t,n){const r=e-n,i=t*r;return n+i}function bx(e,t,n,r,i){return i!==void 0&&(e=Ja(e,i,r)),Ja(e,n,r)+t}function xd(e,t=0,n=1,r,i){e.min=bx(e.min,t,n,r,i),e.max=bx(e.max,t,n,r,i)}function wx(e,{x:t,y:n}){xd(e.x,t.translate,t.scale,t.originPoint),xd(e.y,n.translate,n.scale,n.originPoint)}const Sx=.999999999999,Tx=1.0000000000001;function vD(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&&hs(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,wx(e,a)),r&&hi(o.latestValues)&&hs(e,o.latestValues))}t.x<Tx&&t.x>Sx&&(t.x=1),t.y<Tx&&t.y>Sx&&(t.y=1)}function ds(e,t){e.min=e.min+t,e.max=e.max+t}function Ex(e,t,n,r,i=.5){const o=rt(e.min,e.max,i);xd(e,t,n,o,r)}function hs(e,t){Ex(e.x,t.x,t.scaleX,t.scale,t.originX),Ex(e.y,t.y,t.scaleY,t.scale,t.originY)}function Cx(e,t){return ux(fD(e.getBoundingClientRect(),t))}function xD(e,t,n){const r=Cx(e,n),{scroll:i}=t;return i&&(ds(r.x,i.offset.x),ds(r.y,i.offset.y)),r}const Px=({current:e})=>e?e.ownerDocument.defaultView:null,Ax=(e,t)=>Math.abs(e-t);function bD(e,t){const n=Ax(e.x,t.x),r=Ax(e.y,t.y);return Math.sqrt(n**2+r**2)}class Mx{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=wd(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,v=bD(m.offset,{x:0,y:0})>=3;if(!p&&!v)return;const{point:S}=m,{timestamp:x}=vt;this.history.push({...S,timestamp:x});const{onStart:T,onMove:b}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=bd(p,this.transformPagePoint),qe.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:v,onSessionEnd:S,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=wd(m.type==="pointercancel"?this.lastMoveEventInfo:bd(p,this.transformPagePoint),this.history);this.startEvent&&v&&v(m,T),S&&S(m,T)},!gd(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Oo(t),c=bd(a,this.transformPagePoint),{point:u}=c,{timestamp:f}=vt;this.history=[{...u,timestamp:f}];const{onSessionStart:h}=n;h&&h(t,wd(c,this.history)),this.removeListeners=Po(_o(this.contextWindow,"pointermove",this.handlePointerMove),_o(this.contextWindow,"pointerup",this.handlePointerUp),_o(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 Ox(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wd({point:e},t){return{point:e,delta:Ox(e,_x(t)),offset:Ox(e,wD(t)),velocity:SD(t,.1)}}function wD(e){return e[0]}function _x(e){return e[e.length-1]}function SD(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=_x(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Rn(t)));)n--;if(!r)return{x:0,y:0};const o=Jn(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 TD(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 Ix(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 ED(e,{top:t,left:n,bottom:r,right:i}){return{x:Ix(e.x,n,i),y:Ix(e.y,t,r)}}function $x(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 CD(e,t){return{x:$x(e.x,t.x),y:$x(e.y,t.y)}}function PD(e,t){let n=.5;const r=_t(e),i=_t(t);return i>r?n=ls(t.min,t.max-r,e.min):r>i&&(n=ls(e.min,e.max-i,t.min)),Zn(0,1,n)}function AD(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 Sd=.35;function MD(e=Sd){return e===!1?e=0:e===!0&&(e=Sd),{x:Dx(e,"left","right"),y:Dx(e,"top","bottom")}}function Dx(e,t,n){return{min:Nx(e,t),max:Nx(e,n)}}function Nx(e,t){return typeof e=="number"?e:e[t]||0}const OD=new WeakMap;class _D{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(Oo(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:v,onDragStart:S}=this.getProps();if(p&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=lD(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 b=this.getAxisMotionValue(T).get()||0;if(kn.test(b)){const{projection:A}=this.visualElement;if(A&&A.layout){const E=A.layout.layoutBox[T];E&&(b=_t(E)*(parseFloat(b)/100))}}this.originPoint[T]=b}),S&&qe.postRender(()=>S(h,m)),Uf(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:p,dragDirectionLock:v,onDirectionLock:S,onDrag:x}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(v&&this.currentDirection===null){this.currentDirection=ID(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),x&&x(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:f}=this.getProps();this.panSession=new Mx(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,contextWindow:Px(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&&qe.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=TD(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&&ss(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=ED(i.layoutBox,n):this.constraints=!1,this.elastic=MD(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=AD(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ss(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=xD(r,i.root,this.visualElement.getTransformPagePoint());let a=CD(i.layout.layoutBox,o);if(n){const c=n(uD(a));this.hasMutatedConstraints=!!c,c&&(a=ux(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},f=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,v=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(f).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Uf(this.visualElement,t),r.start(md(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(!ss(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]=PD({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:f}=this.constraints[a];c.set(rt(u,f,i[a]))})}addListeners(){if(!this.visualElement.current)return;OD.set(this.visualElement,this);const t=this.visualElement.current,n=_o(t,"pointerdown",u=>{const{drag:f,dragListener:h=!0}=this.getProps();f&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();ss(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()),qe.read(r);const a=Mo(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f})=>{this.isDragging&&f&&(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=Sd,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 ID(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class $D extends Mr{constructor(t){super(t),this.removeGroupControls=kt,this.removeListeners=kt,this.controls=new _D(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||kt}unmount(){this.removeGroupControls(),this.removeListeners()}}const kx=e=>(t,n)=>{e&&qe.postRender(()=>e(t,n))};class DD extends Mr{constructor(){super(...arguments),this.removePointerDownListener=kt}onPointerDown(t){this.session=new Mx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Px(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:kx(t),onStart:kx(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&qe.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=_o(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 Lx(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Do={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=Lx(e,t.target.x),r=Lx(e,t.target.y);return`${n}% ${r}%`}},ND={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 f=rt(c,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=f),typeof i[3+a]=="number"&&(i[3+a]/=f),o(i)}};class kD extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;UI(LD),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()||qe.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Pf.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 Rx(e){const[t,n]=Ov(),r=_.useContext(xf);return y.jsx(kD,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(Vv),isPresent:t,safeToRemove:n})}const LD={borderRadius:{...Do,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Do,borderTopRightRadius:Do,borderBottomLeftRadius:Do,borderBottomRightRadius:Do,boxShadow:ND};function RD(e,t,n){const r=Et(e)?e:wo(e);return r.start(md("",r,t,n)),r.animation}function jD(e){return e instanceof SVGElement&&e.tagName!=="svg"}const FD=(e,t)=>e.depth-t.depth;class VD{constructor(){this.children=[],this.isDirty=!1}add(t){Vf(this.children,t),this.isDirty=!0}remove(t){Bf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(FD),this.isDirty=!1,this.children.forEach(t)}}function BD(e,t){const n=Ln.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Cr(r),e(o-t))};return qe.read(r,!0),()=>Cr(r)}const jx=["TopLeft","TopRight","BottomLeft","BottomRight"],WD=jx.length,Fx=e=>typeof e=="string"?parseFloat(e):e,Vx=e=>typeof e=="number"||Se.test(e);function UD(e,t,n,r,i,o){i?(e.opacity=rt(0,n.opacity!==void 0?n.opacity:1,zD(r)),e.opacityExit=rt(t.opacity!==void 0?t.opacity:1,0,GD(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<WD;a++){const c=`border${jx[a]}Radius`;let u=Bx(t,c),f=Bx(n,c);if(u===void 0&&f===void 0)continue;u||(u=0),f||(f=0),u===0||f===0||Vx(u)===Vx(f)?(e[c]=Math.max(rt(Fx(u),Fx(f),r),0),(kn.test(f)||kn.test(u))&&(e[c]+="%")):e[c]=f}(t.rotate||n.rotate)&&(e.rotate=rt(t.rotate||0,n.rotate||0,r))}function Bx(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const zD=Wx(0,.5,v1),GD=Wx(.5,.95,kt);function Wx(e,t,n){return r=>r<e?0:r>t?1:n(ls(e,t,r))}function Ux(e,t){e.min=t.min,e.max=t.max}function sn(e,t){Ux(e.x,t.x),Ux(e.y,t.y)}function zx(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Gx(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 YD(e,t=0,n=1,r=.5,i,o=e,a=e){if(kn.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=Gx(e.min,t,n,c,i),e.max=Gx(e.max,t,n,c,i)}function Yx(e,t,[n,r,i],o,a){YD(e,t[n],t[r],t[i],t.scale,o,a)}const HD=["x","scaleX","originX"],qD=["y","scaleY","originY"];function Hx(e,t,n,r){Yx(e.x,t,HD,n?n.x:void 0,r?r.x:void 0),Yx(e.y,t,qD,n?n.y:void 0,r?r.y:void 0)}function qx(e){return e.translate===0&&e.scale===1}function Kx(e){return qx(e.x)&&qx(e.y)}function Xx(e,t){return e.min===t.min&&e.max===t.max}function KD(e,t){return Xx(e.x,t.x)&&Xx(e.y,t.y)}function Zx(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Jx(e,t){return Zx(e.x,t.x)&&Zx(e.y,t.y)}function Qx(e){return _t(e.x)/_t(e.y)}function eb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class XD{constructor(){this.members=[]}add(t){Vf(this.members,t),t.scheduleRender()}remove(t){if(Bf(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 ZD(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:f,rotate:h,rotateX:m,rotateY:p,skewX:v,skewY:S}=n;f&&(r=`perspective(${f}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),v&&(r+=`skewX(${v}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 Td=["","X","Y","Z"],JD={visibility:"hidden"},tb=1e3;let QD=0;function Ed(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function nb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=a1(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",qe,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&nb(r)}function rb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=QD++,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(n5),this.nodes.forEach(a5),this.nodes.forEach(l5),this.nodes.forEach(r5)},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 VD)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Wf),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=jD(a),this.instance=a;const{layoutId:u,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(f||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=BD(p,250),el.hasAnimatedSinceResize&&(el.hasAnimatedSinceResize=!1,this.nodes.forEach(sb))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||f)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:v,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||h.getDefaultTransition()||h5,{onLayoutAnimationStart:T,onLayoutAnimationComplete:b}=h.getProps(),A=!this.targetLayout||!Jx(this.targetLayout,S),E=!p&&v;if(this.options.layoutRoot||this.resumeFrom||E||p&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,E);const $={...Ff(x,"layout"),onPlay:T,onComplete:b};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||sb(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(c5),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&&nb(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 f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ib);return}this.isUpdating||this.nodes.forEach(s5),this.isUpdating=!1,this.nodes.forEach(o5),this.nodes.forEach(e5),this.nodes.forEach(t5),this.clearAllSnapshots();const c=Ln.now();vt.delta=Zn(0,1e3/60,c-vt.timestamp),vt.timestamp=c,vt.isProcessing=!0,Tf.update.process(vt),Tf.preRender.process(vt),Tf.render.process(vt),vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Pf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(i5),this.sharedNodes.forEach(u5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,qe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){qe.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&&!Kx(this.projectionDelta),u=this.getTransformTemplate(),f=u?u(this.latestValues,""):void 0,h=f!==this.prevTransformTemplateValue;a&&(c||hi(this.latestValues)||h)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),m5(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(p5))){const{scroll:h}=this.root;h&&(ds(u.x,h.offset.x),ds(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 f=0;f<this.path.length;f++){const h=this.path[f],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&sn(u,a),ds(u.x,m.offset.x),ds(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=lt();sn(u,a);for(let f=0;f<this.path.length;f++){const h=this.path[f];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&hs(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),hi(h.latestValues)&&hs(u,h.latestValues)}return hi(this.latestValues)&&hs(u,this.latestValues),u}removeTransform(a){const c=lt();sn(c,a);for(let u=0;u<this.path.length;u++){const f=this.path[u];if(!f.instance||!hi(f.latestValues))continue;vd(f.latestValues)&&f.updateSnapshot();const h=lt(),m=f.measurePageBox();sn(h,m),Hx(c,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,h)}return hi(this.latestValues)&&Hx(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 f=!!this.resumingFrom||this!==u;if(!(a||f&&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 v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),$o(this.relativeTargetOrigin,this.layout.layoutBox,v.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(),yD(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),wx(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),$o(this.relativeTargetOrigin,this.target,v.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||vd(this.parent.latestValues)||vx(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 f=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(f=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===vt.timestamp&&(f=!1),f)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,v=this.treeScale.y;vD(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():(zx(this.prevProjectionDelta.x,this.projectionDelta.x),zx(this.prevProjectionDelta.y,this.projectionDelta.y)),Io(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==v||!eb(this.projectionDelta.x,this.prevProjectionDelta.x)||!eb(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=fs(),this.projectionDelta=fs(),this.projectionDeltaWithTransform=fs()}setAnimationOrigin(a,c=!1){const u=this.snapshot,f=u?u.latestValues:{},h={...this.latestValues},m=fs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=lt(),v=u?u.source:void 0,S=this.layout?this.layout.source:void 0,x=v!==S,T=this.getStack(),b=!T||T.members.length<=1,A=!!(x&&!b&&this.options.crossfade===!0&&!this.path.some(d5));this.animationProgress=0;let E;this.mixTargetDelta=$=>{const C=$/1e3;ob(m.x,a.x,C),ob(m.y,a.y,C),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&($o(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f5(this.relativeTarget,this.relativeTargetOrigin,p,C),E&&KD(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=lt()),sn(E,this.relativeTarget)),x&&(this.animationValues=h,UD(h,f,this.latestValues,C,A,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},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=qe.update(()=>{el.hasAnimatedSinceResize=!0,this.currentAnimation=RD(0,tb,{...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(tb),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:f,latestValues:h}=a;if(!(!c||!u||!f)){if(this!==a&&this.layout&&f&&fb(this.options.animationType,this.layout.layoutBox,f.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),hs(c,h),Io(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new XD),this.sharedNodes.get(a).add(c);const f=c.options.initialPromotionConfig;c.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.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 f=this.getStack();f&&f.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 f={};u.z&&Ed("z",a,f,this.animationValues);for(let h=0;h<Td.length;h++)Ed(`rotate${Td[h]}`,a,f,this.animationValues),Ed(`skew${Td[h]}`,a,f,this.animationValues);a.render();for(const h in f)a.setStaticValue(h,f[h]),this.animationValues&&(this.animationValues[h]=f[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return JD;const f={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=Ya(a==null?void 0:a.pointerEvents)||"",f.transform=h?h(this.latestValues,""):"none",f;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=Ya(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!hi(this.latestValues)&&(x.transform=h?h({},""):"none",this.hasProjected=!1),x}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),f.transform=ZD(this.projectionDeltaWithTransform,this.treeScale,p),h&&(f.transform=h(p,f.transform));const{x:v,y:S}=this.projectionDelta;f.transformOrigin=`${v.origin*100}% ${S.origin*100}% 0`,m.animationValues?f.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:f.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const x in yo){if(p[x]===void 0)continue;const{correct:T,applyTo:b,isCSSVariable:A}=yo[x],E=f.transform==="none"?p[x]:T(p[x],m);if(b){const $=b.length;for(let C=0;C<$;C++)f[b[C]]=E}else A?this.options.visualElement.renderState.vars[x]=E:f[x]=E}return this.options.layoutId&&(f.pointerEvents=m===this?Ya(a==null?void 0:a.pointerEvents)||"":"none"),f}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(ib),this.root.sharedNodes.clear()}}}function e5(e){e.updateLayout()}function t5(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],v=_t(p);p.min=r[m].min,p.max=p.min+v}):fb(o,n.layoutBox,r)&&rn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],v=_t(r[m]);p.max=p.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+v)});const c=fs();Io(c,r,n.layoutBox);const u=fs();a?Io(u,e.applyTransform(i,!0),n.measuredBox):Io(u,r,n.layoutBox);const f=!Kx(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:v}=m;if(p&&v){const S=lt();$o(S,n.layoutBox,p.layoutBox);const x=lt();$o(x,r,v.layoutBox),Jx(S,x)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function n5(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 r5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function i5(e){e.clearSnapshot()}function ib(e){e.clearMeasurements()}function s5(e){e.isLayoutDirty=!1}function o5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function a5(e){e.resolveTargetDelta()}function l5(e){e.calcProjection()}function c5(e){e.resetSkewAndRotation()}function u5(e){e.removeLeadSnapshot()}function ob(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 ab(e,t,n,r){e.min=rt(t.min,n.min,r),e.max=rt(t.max,n.max,r)}function f5(e,t,n,r){ab(e.x,t.x,n.x,r),ab(e.y,t.y,n.y,r)}function d5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const h5={duration:.45,ease:[.4,0,.1,1]},lb=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),cb=lb("applewebkit/")&&!lb("chrome/")?Math.round:kt;function ub(e){e.min=cb(e.min),e.max=cb(e.max)}function m5(e){ub(e.x),ub(e.y)}function fb(e,t,n){return e==="position"||e==="preserve-aspect"&&!gD(Qx(t),Qx(n),.2)}function p5(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const g5=rb({attachResizeListener:(e,t)=>Mo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Cd={current:void 0},db=rb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Cd.current){const e=new g5({});e.mount(window),e.setOptions({layoutScroll:!0}),Cd.current=e}return Cd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),y5={pan:{Feature:DD},drag:{Feature:$D,ProjectionNode:db,MeasureLayout:Rx}};function v5(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 hb(e,t){const n=v5(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function mb(e){return!(e.pointerType==="touch"||cx())}function x5(e,t,n={}){const[r,i,o]=hb(e,n),a=c=>{if(!mb(c))return;const{target:u}=c,f=t(u,c);if(typeof f!="function"||!u)return;const h=m=>{mb(m)&&(f(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}function pb(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&&qe.postRender(()=>o(t,Oo(t)))}class b5 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=x5(t,(n,r)=>(pb(this.node,r,"Start"),i=>pb(this.node,i,"End"))))}unmount(){}}class w5 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=Po(Mo(this.node.current,"focus",()=>this.onFocus()),Mo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const gb=(e,t)=>t?e===t?!0:gb(e,t.parentElement):!1,S5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function T5(e){return S5.has(e.tagName)||e.tabIndex!==-1}const No=new WeakSet;function yb(e){return t=>{t.key==="Enter"&&e(t)}}function Pd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const E5=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=yb(()=>{if(No.has(n))return;Pd(n,"down");const i=yb(()=>{Pd(n,"up")}),o=()=>Pd(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 vb(e){return gd(e)&&!cx()}function C5(e,t,n={}){const[r,i,o]=hb(e,n),a=c=>{const u=c.currentTarget;if(!vb(c)||No.has(u))return;No.add(u);const f=t(u,c),h=(v,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!vb(v)||!No.has(u))&&(No.delete(u),typeof f=="function"&&f(v,{success:S}))},m=v=>{h(v,u===window||u===document||n.useGlobalTarget||gb(u,v.target))},p=v=>{h(v,!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",f=>E5(f,i)),!T5(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}function xb(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&&qe.postRender(()=>o(t,Oo(t)))}class P5 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=C5(t,(n,r)=>(xb(this.node,r,"Start"),(i,{success:o})=>xb(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ad=new WeakMap,Md=new WeakMap,A5=e=>{const t=Ad.get(e.target);t&&t(e)},M5=e=>{e.forEach(A5)};function O5({root:e,...t}){const n=e||document;Md.has(n)||Md.set(n,{});const r=Md.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(M5,{root:e,...t})),r[i]}function _5(e,t,n){const r=O5(t);return Ad.set(e,n),r.observe(e),()=>{Ad.delete(e),r.unobserve(e)}}const I5={some:0,all:1};class $5 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:I5[i]},c=u=>{const{isIntersecting:f}=u;if(this.isInView===f||(this.isInView=f,o&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=f?h:m;p&&p(u)};return _5(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(D5(t,n))&&this.startObserver()}unmount(){}}function D5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const N5={inView:{Feature:$5},tap:{Feature:P5},focus:{Feature:w5},hover:{Feature:b5}},k5={layout:{ProjectionNode:db,MeasureLayout:Rx}},Od={current:null},bb={current:!1};function L5(){if(bb.current=!0,!!wf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Od.current=e.matches;e.addListener(t),t()}else Od.current=!1}const R5=[...F1,Ct,Ar],j5=e=>R5.find(j1(e)),F5=new WeakMap;function V5(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,wo(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,wo(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const wb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class B5{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=od,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 v=Ln.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,qe.render(this.render,!1,!0))};const{latestValues:u,renderState:f,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=f,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 v in p){const S=p[v];u[v]!==void 0&&Et(S)&&S.set(u[v],!1)}}mount(t){this.current=t,F5.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)),bb.current||L5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Od.current,process.env.NODE_ENV!=="production"&&Ba(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Cr(this.notifyUpdate),Cr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=li.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&qe.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 is){const n=is[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<wb.length;r++){const i=wb[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=V5(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=wo(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"&&(L1(i)||b1(i))?i=parseFloat(i):!j5(i)&&Ar.test(n)&&(i=M1(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=Lf(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 Wf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Sb extends B5{constructor(){super(...arguments),this.KeyframeResolver=B1}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 W5(e){return window.getComputedStyle(e)}class U5 extends Sb{constructor(){super(...arguments),this.type="html",this.renderInstance=Qv}readValueFromInstance(t,n){if(li.has(n))return q6(t,n);{const r=W5(t),i=(Mf(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Cx(t,n)}build(t,n,r){If(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return jf(t,n,r)}}class z5 extends Sb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Jv(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(li.has(n)){const r=A1(n);return r&&r.default||0}return n=e1.has(n)?n:Af(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return n1(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&qe.postRender(this.updateDimensions)}build(t,n,r){Nf(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){t1(t,n,r,i)}mount(t){this.isSVGTag=kf(t.tagName),super.mount(t)}}const G5=(e,t)=>Df(e)?new z5(t):new U5(t,{allowProjection:e!==_.Fragment}),Y5=h6({...aD,...N5,...y5,...k5},G5),Ge=_I(Y5),_d={defaultColorScheme:"aqua",t:e=>e},Tb=_.createContext(_d),Ue=()=>_.useContext(Tb),H5={date:(e,t)=>new Date(t.created_at??"").toDateString()===e.toDateString(),search:(e,t)=>JSON.stringify(t).toLowerCase().includes(e.toLowerCase())};function q5(e,t){const[n,r]=_.useState([]),i=_.useCallback(({key:h,value:m,label:p,type:v,icon:S,options:x})=>{if(n.find(A=>A.key===h)){console.warn(`El filtro con key "${String(h)}" ya existe, salteando la actualización...`);return}let b;typeof t=="string"?b=H5[t]:b=t[h]||t[h],r(A=>[...A,{key:h,value:m,label:p,type:v,icon:S,options:x,fn:b}])},[t,n]),o=_.useCallback(({key:h,value:m})=>{r(p=>p.map(v=>v.key===h?{...v,value:m}:v))},[]),a=_.useCallback(({key:h})=>{r(m=>m.filter(p=>p.key!==h))},[]),c=_.useCallback(()=>{r([])},[]),u=_.useMemo(()=>n.reduce((h,m)=>h.filter(p=>m.fn(m.value,p)),e),[e,n]),f=_.useMemo(()=>({addFilter:i,updateFilter:o,removeFilter:a,clearFilters:c,activeFilters:n.map(h=>({key:h.key,value:h.value,label:h.label,type:h.type,icon:h.icon,options:h.options}))}),[i,o,a,c,n]);return{data:u,filterControl:f}}const Eb=({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}},f={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 y.jsx(vn,{children:n&&y.jsx(y.Fragment,{children:y.jsx(Ge.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:y.jsx(Ge.div,{className:"w-full max-w-4xl mx-16 z-50",variants:f,initial:"hidden",animate:"visible",exit:"exit",onClick:p=>p.stopPropagation(),children:y.jsxs(Ss,{className:"flex flex-col gap-16 p-32",children:[y.jsxs("div",{className:"flex justify-between items-center gap-16",children:[y.jsx("h3",{className:"text-black font-700 text-3xl",children:e}),a&&y.jsx(Pe,{icon:nu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})]}),y.jsx("p",{className:"text-gray-500 text-xl font-600",children:t}),y.jsxs("div",{className:"flex justify-end w-full gap-16",children:[o&&y.jsx(wi,{onClick:m,variant:"transparent",className:"px-24 py-10! text-lg!",children:c("cancel")}),i&&y.jsx(wi,{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 K5={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"]},X5={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"]},Z5={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"]},J5={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"]},Q5={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 ms(e){return Eb(e)?(e.nodeName||"").toLowerCase():"#document"}function Lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function jn(e){var t;return(t=(Eb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Eb(e){return tl()?e instanceof Node||e instanceof Lt(e).Node:!1}function Ke(e){return tl()?e instanceof Element||e instanceof Lt(e).Element:!1}function Rt(e){return tl()?e instanceof HTMLElement||e instanceof Lt(e).HTMLElement:!1}function Id(e){return!tl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Lt(e).ShadowRoot}function ko(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 e3(e){return["table","td","th"].includes(ms(e))}function nl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function $d(e){const t=rl(),n=Ke(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 t3(e){let t=er(e);for(;Rt(t)&&!Qn(t);){if($d(t))return t;if(nl(t))return null;t=er(t)}return null}function rl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qn(e){return["html","body","#document"].includes(ms(e))}function on(e){return Lt(e).getComputedStyle(e)}function il(e){return Ke(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function er(e){if(ms(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Id(e)&&e.host||jn(e);return Id(t)?t.host:t}function Cb(e){const t=er(e);return Qn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Rt(t)&&ko(t)?t:Cb(t)}function Or(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Cb(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Lt(i);if(o){const c=Dd(a);return t.concat(a,a.visualViewport||[],ko(i)?i:[],c&&n?Or(c):[])}return t.concat(i,Or(i,[],n))}function Dd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Pb(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 Lo(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Id(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Ab(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Mb(){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 n3(e){return s3()?!1:!Ob()&&e.width===0&&e.height===0||Ob()&&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 r3(){return/apple/i.test(navigator.vendor)}function Ob(){const e=/android/i;return e.test(Ab())||e.test(Mb())}function i3(){return Ab().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function s3(){return Mb().includes("jsdom/")}function Ro(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function o3(e){return"nativeEvent"in e}function a3(e){return e.matches("html,body")}function mi(e){return(e==null?void 0:e.ownerDocument)||document}function Nd(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 ps(e){return"composedPath"in e?e.composedPath()[0]:e.target}const l3="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function _b(e){return Rt(e)&&e.matches(l3)}const _r=Math.min,Yt=Math.max,sl=Math.round,ol=Math.floor,Fn=e=>({x:e,y:e}),c3={left:"right",right:"left",bottom:"top",top:"bottom"},u3={start:"end",end:"start"};function kd(e,t,n){return Yt(e,_r(t,n))}function gs(e,t){return typeof e=="function"?e(t):e}function Ir(e){return e.split("-")[0]}function ys(e){return e.split("-")[1]}function Ib(e){return e==="x"?"y":"x"}function Ld(e){return e==="y"?"height":"width"}function pi(e){return["top","bottom"].includes(Ir(e))?"y":"x"}function Rd(e){return Ib(pi(e))}function f3(e,t,n){n===void 0&&(n=!1);const r=ys(e),i=Rd(e),o=Ld(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 d3(e){const t=al(e);return[jd(e),t,jd(t)]}function jd(e){return e.replace(/start|end/g,t=>u3[t])}function h3(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 m3(e,t,n,r){const i=ys(e);let o=h3(Ir(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(jd)))),o}function al(e){return e.replace(/left|right|bottom|top/g,t=>c3[t])}function p3(e){return{top:0,right:0,bottom:0,left:0,...e}}function $b(e){return typeof e!="number"?p3(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 Db(e,t,n){let{reference:r,floating:i}=e;const o=pi(t),a=Rd(t),c=Ld(a),u=Ir(t),f=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 v;switch(u){case"top":v={x:h,y:r.y-i.height};break;case"bottom":v={x:h,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:m};break;case"left":v={x:r.x-i.width,y:m};break;default:v={x:r.x,y:r.y}}switch(ys(t)){case"start":v[a]-=p*(n&&f?-1:1);break;case"end":v[a]+=p*(n&&f?-1:1);break}return v}const g3=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 f=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=Db(f,r,u),p=r,v={},S=0;for(let x=0;x<c.length;x++){const{name:T,fn:b}=c[x],{x:A,y:E,data:$,reset:C}=await b({x:h,y:m,initialPlacement:r,placement:p,strategy:i,middlewareData:v,rects:f,platform:a,elements:{reference:e,floating:t}});h=A??h,m=E??m,v={...v,[T]:{...v[T],...$}},C&&S<=50&&(S++,typeof C=="object"&&(C.placement&&(p=C.placement),C.rects&&(f=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):C.rects),{x:h,y:m}=Db(f,p,u)),x=-1)}return{x:h,y:m,placement:p,strategy:i,middlewareData:v}};async function Fd(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:c,strategy:u}=e,{boundary:f="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:p=!1,padding:v=0}=gs(t,e),S=$b(v),T=c[p?m==="floating"?"reference":"floating":m],b=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:f,rootBoundary:h,strategy:u})),A=m==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),$=await(o.isElement==null?void 0:o.isElement(E))?await(o.getScale==null?void 0:o.getScale(E))||{x:1,y:1}:{x:1,y:1},C=ll(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:A,offsetParent:E,strategy:u}):A);return{top:(b.top-C.top+S.top)/$.y,bottom:(C.bottom-b.bottom+S.bottom)/$.y,left:(b.left-C.left+S.left)/$.x,right:(C.right-b.right+S.right)/$.x}}const y3=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:f,padding:h=0}=gs(e,t)||{};if(f==null)return{};const m=$b(h),p={x:n,y:r},v=Rd(i),S=Ld(v),x=await a.getDimensions(f),T=v==="y",b=T?"top":"left",A=T?"bottom":"right",E=T?"clientHeight":"clientWidth",$=o.reference[S]+o.reference[v]-p[v]-o.floating[S],C=p[v]-o.reference[v],D=await(a.getOffsetParent==null?void 0:a.getOffsetParent(f));let j=D?D[E]:0;(!j||!await(a.isElement==null?void 0:a.isElement(D)))&&(j=c.floating[E]||o.floating[S]);const F=$/2-C/2,U=j/2-x[S]/2-1,Z=_r(m[b],U),ee=_r(m[A],U),se=Z,ge=j-x[S]-ee,ue=j/2-x[S]/2+F,fe=kd(se,ue,ge),he=!u.arrow&&ys(i)!=null&&ue!==fe&&o.reference[S]/2-(ue<se?Z:ee)-x[S]/2<0,V=he?ue<se?ue-se:ue-ge:0;return{[v]:p[v]+V,data:{[v]:fe,centerOffset:ue-fe-V,...he&&{alignmentOffset:V}},reset:he}}}),v3=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:f}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:x=!0,...T}=gs(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const b=Ir(i),A=pi(c),E=Ir(c)===c,$=await(u.isRTL==null?void 0:u.isRTL(f.floating)),C=p||(E||!x?[al(c)]:d3(c)),D=S!=="none";!p&&D&&C.push(...m3(c,x,S,$));const j=[c,...C],F=await Fd(t,T),U=[];let Z=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&U.push(F[b]),m){const ue=f3(i,a,$);U.push(F[ue[0]],F[ue[1]])}if(Z=[...Z,{placement:i,overflows:U}],!U.every(ue=>ue<=0)){var ee,se;const ue=(((ee=o.flip)==null?void 0:ee.index)||0)+1,fe=j[ue];if(fe)return{data:{index:ue,overflows:Z},reset:{placement:fe}};let he=(se=Z.filter(V=>V.overflows[0]<=0).sort((V,B)=>V.overflows[1]-B.overflows[1])[0])==null?void 0:se.placement;if(!he)switch(v){case"bestFit":{var ge;const V=(ge=Z.filter(B=>{if(D){const Y=pi(B.placement);return Y===A||Y==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(Y=>Y>0).reduce((Y,O)=>Y+O,0)]).sort((B,Y)=>B[1]-Y[1])[0])==null?void 0:ge[0];V&&(he=V);break}case"initialPlacement":he=c;break}if(i!==he)return{reset:{placement:he}}}return{}}}};async function x3(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=ys(n),u=pi(n)==="y",f=["left","top"].includes(a)?-1:1,h=o&&u?-1:1,m=gs(t,e);let{mainAxis:p,crossAxis:v,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"&&(v=c==="end"?S*-1:S),u?{x:v*h,y:p*f}:{x:p*f,y:v*h}}const b3=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 x3(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}}}}},w3=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:b,y:A}=T;return{x:b,y:A}}},...u}=gs(e,t),f={x:n,y:r},h=await Fd(t,u),m=pi(Ir(i)),p=Ib(m);let v=f[p],S=f[m];if(o){const T=p==="y"?"top":"left",b=p==="y"?"bottom":"right",A=v+h[T],E=v-h[b];v=kd(A,v,E)}if(a){const T=m==="y"?"top":"left",b=m==="y"?"bottom":"right",A=S+h[T],E=S-h[b];S=kd(A,S,E)}const x=c.fn({...t,[p]:v,[m]:S});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[p]:o,[m]:a}}}}}},S3=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=()=>{},...f}=gs(e,t),h=await Fd(t,f),m=Ir(i),p=ys(i),v=pi(i)==="y",{width:S,height:x}=o.floating;let T,b;m==="top"||m==="bottom"?(T=m,b=p===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(b=m,T=p==="end"?"top":"bottom");const A=x-h.top-h.bottom,E=S-h.left-h.right,$=_r(x-h[T],A),C=_r(S-h[b],E),D=!t.middlewareData.shift;let j=$,F=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=A),D&&!p){const Z=Yt(h.left,0),ee=Yt(h.right,0),se=Yt(h.top,0),ge=Yt(h.bottom,0);v?F=S-2*(Z!==0||ee!==0?Z+ee:Yt(h.left,h.right)):j=x-2*(se!==0||ge!==0?se+ge:Yt(h.top,h.bottom))}await u({...t,availableWidth:F,availableHeight:j});const U=await a.getDimensions(c.floating);return S!==U.width||x!==U.height?{reset:{rects:!0}}:{}}}};function Nb(e){const t=on(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Rt(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 Vd(e){return Ke(e)?e:e.contextElement}function vs(e){const t=Vd(e);if(!Rt(t))return Fn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Nb(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 T3=Fn(0);function kb(e){const t=Lt(e);return!rl()||!t.visualViewport?T3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function E3(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=Vd(e);let a=Fn(1);t&&(r?Ke(r)&&(a=vs(r)):a=vs(e));const c=E3(o,n,r)?kb(o):Fn(0);let u=(i.left+c.x)/a.x,f=(i.top+c.y)/a.y,h=i.width/a.x,m=i.height/a.y;if(o){const p=Lt(o),v=r&&Ke(r)?Lt(r):r;let S=p,x=Dd(S);for(;x&&r&&v!==S;){const T=vs(x),b=x.getBoundingClientRect(),A=on(x),E=b.left+(x.clientLeft+parseFloat(A.paddingLeft))*T.x,$=b.top+(x.clientTop+parseFloat(A.paddingTop))*T.y;u*=T.x,f*=T.y,h*=T.x,m*=T.y,u+=E,f+=$,S=Lt(x),x=Dd(S)}}return ll({width:h,height:m,x:u,y:f})}function Bd(e,t){const n=il(e).scrollLeft;return t?t.left+n:gi(jn(e)).left+n}function Lb(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Bd(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function C3(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=jn(r),c=t?nl(t.floating):!1;if(r===a||c&&o)return n;let u={scrollLeft:0,scrollTop:0},f=Fn(1);const h=Fn(0),m=Rt(r);if((m||!m&&!o)&&((ms(r)!=="body"||ko(a))&&(u=il(r)),Rt(r))){const v=gi(r);f=vs(r),h.x=v.x+r.clientLeft,h.y=v.y+r.clientTop}const p=a&&!m&&!o?Lb(a,u,!0):Fn(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-u.scrollLeft*f.x+h.x+p.x,y:n.y*f.y-u.scrollTop*f.y+h.y+p.y}}function P3(e){return Array.from(e.getClientRects())}function A3(e){const t=jn(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+Bd(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 M3(e,t){const n=Lt(e),r=jn(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,c=0,u=0;if(i){o=i.width,a=i.height;const f=rl();(!f||f&&t==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:c,y:u}}function O3(e,t){const n=gi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Rt(e)?vs(e):Fn(1),a=e.clientWidth*o.x,c=e.clientHeight*o.y,u=i*o.x,f=r*o.y;return{width:a,height:c,x:u,y:f}}function Rb(e,t,n){let r;if(t==="viewport")r=M3(e,n);else if(t==="document")r=A3(jn(e));else if(Ke(t))r=O3(t,n);else{const i=kb(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ll(r)}function jb(e,t){const n=er(e);return n===t||!Ke(n)||Qn(n)?!1:on(n).position==="fixed"||jb(n,t)}function _3(e,t){const n=t.get(e);if(n)return n;let r=Or(e,[],!1).filter(c=>Ke(c)&&ms(c)!=="body"),i=null;const o=on(e).position==="fixed";let a=o?er(e):e;for(;Ke(a)&&!Qn(a);){const c=on(a),u=$d(a);!u&&c.position==="fixed"&&(i=null),(o?!u&&!i:!u&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ko(a)&&!u&&jb(e,a))?r=r.filter(h=>h!==a):i=c,a=er(a)}return t.set(e,r),r}function I3(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?nl(t)?[]:_3(t,this._c):[].concat(n),r],c=a[0],u=a.reduce((f,h)=>{const m=Rb(t,h,i);return f.top=Yt(m.top,f.top),f.right=_r(m.right,f.right),f.bottom=_r(m.bottom,f.bottom),f.left=Yt(m.left,f.left),f},Rb(t,c,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function $3(e){const{width:t,height:n}=Nb(e);return{width:t,height:n}}function D3(e,t,n){const r=Rt(t),i=jn(t),o=n==="fixed",a=gi(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const u=Fn(0);if(r||!r&&!o)if((ms(t)!=="body"||ko(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=Bd(i));const f=i&&!r&&!o?Lb(i,c):Fn(0),h=a.left+c.scrollLeft-u.x-f.x,m=a.top+c.scrollTop-u.y-f.y;return{x:h,y:m,width:a.width,height:a.height}}function Wd(e){return on(e).position==="static"}function Fb(e,t){if(!Rt(e)||on(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return jn(e)===n&&(n=n.ownerDocument.body),n}function Vb(e,t){const n=Lt(e);if(nl(e))return n;if(!Rt(e)){let i=er(e);for(;i&&!Qn(i);){if(Ke(i)&&!Wd(i))return i;i=er(i)}return n}let r=Fb(e,t);for(;r&&e3(r)&&Wd(r);)r=Fb(r,t);return r&&Qn(r)&&Wd(r)&&!$d(r)?n:r||t3(e)||n}const N3=async function(e){const t=this.getOffsetParent||Vb,n=this.getDimensions,r=await n(e.floating);return{reference:D3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function k3(e){return on(e).direction==="rtl"}const L3={convertOffsetParentRelativeRectToViewportRelativeRect:C3,getDocumentElement:jn,getClippingRect:I3,getOffsetParent:Vb,getElementRects:N3,getClientRects:P3,getDimensions:$3,getScale:vs,isElement:Ke,isRTL:k3};function Bb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function R3(e,t){let n=null,r;const i=jn(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 f=e.getBoundingClientRect(),{left:h,top:m,width:p,height:v}=f;if(c||t(),!p||!v)return;const S=ol(m),x=ol(i.clientWidth-(h+p)),T=ol(i.clientHeight-(m+v)),b=ol(h),E={rootMargin:-S+"px "+-x+"px "+-T+"px "+-b+"px",threshold:Yt(0,_r(1,u))||1};let $=!0;function C(D){const j=D[0].intersectionRatio;if(j!==u){if(!$)return a();j?a(!1,j):r=setTimeout(()=>{a(!1,1e-7)},1e3)}j===1&&!Bb(f,e.getBoundingClientRect())&&a(),$=!1}try{n=new IntersectionObserver(C,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,E)}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,f=Vd(e),h=i||o?[...f?Or(f):[],...Or(t)]:[];h.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),o&&b.addEventListener("resize",n)});const m=f&&c?R3(f,n):null;let p=-1,v=null;a&&(v=new ResizeObserver(b=>{let[A]=b;A&&A.target===f&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var E;(E=v)==null||E.observe(t)})),n()}),f&&!u&&v.observe(f),v.observe(t));let S,x=u?gi(e):null;u&&T();function T(){const b=gi(e);x&&!Bb(x,b)&&n(),x=b,S=requestAnimationFrame(T)}return n(),()=>{var b;h.forEach(A=>{i&&A.removeEventListener("scroll",n),o&&A.removeEventListener("resize",n)}),m==null||m(),(b=v)==null||b.disconnect(),v=null,u&&cancelAnimationFrame(S)}}const j3=b3,F3=w3,V3=v3,B3=S3,Wb=y3,W3=(e,t,n)=>{const r=new Map,i={platform:L3,...n},o={...i.platform,_c:r};return g3(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 Ub(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zb(e,t){const n=Ub(e);return Math.round(t*n)/n}function Ud(e){const t=Q.useRef(e);return cl(()=>{t.current=e}),t}function U3(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:f}=e,[h,m]=Q.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=Q.useState(r);ul(p,r)||v(r);const[S,x]=Q.useState(null),[T,b]=Q.useState(null),A=Q.useCallback(B=>{B!==D.current&&(D.current=B,x(B))},[]),E=Q.useCallback(B=>{B!==j.current&&(j.current=B,b(B))},[]),$=o||S,C=a||T,D=Q.useRef(null),j=Q.useRef(null),F=Q.useRef(h),U=u!=null,Z=Ud(u),ee=Ud(i),se=Ud(f),ge=Q.useCallback(()=>{if(!D.current||!j.current)return;const B={placement:t,strategy:n,middleware:p};ee.current&&(B.platform=ee.current),W3(D.current,j.current,B).then(Y=>{const O={...Y,isPositioned:se.current!==!1};ue.current&&!ul(F.current,O)&&(F.current=O,vT.flushSync(()=>{m(O)}))})},[p,t,n,ee,se]);cl(()=>{f===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,m(B=>({...B,isPositioned:!1})))},[f]);const ue=Q.useRef(!1);cl(()=>(ue.current=!0,()=>{ue.current=!1}),[]),cl(()=>{if($&&(D.current=$),C&&(j.current=C),$&&C){if(Z.current)return Z.current($,C,ge);ge()}},[$,C,ge,Z,U]);const fe=Q.useMemo(()=>({reference:D,floating:j,setReference:A,setFloating:E}),[A,E]),he=Q.useMemo(()=>({reference:$,floating:C}),[$,C]),V=Q.useMemo(()=>{const B={position:n,left:0,top:0};if(!he.floating)return B;const Y=zb(he.floating,h.x),O=zb(he.floating,h.y);return c?{...B,transform:"translate("+Y+"px, "+O+"px)",...Ub(he.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:O}},[n,c,he.floating,h.x,h.y]);return Q.useMemo(()=>({...h,update:ge,refs:fe,elements:he,floatingStyles:V}),[h,ge,fe,he,V])}const z3=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?Wb({element:r.current,padding:i}).fn(n):{}:r?Wb({element:r,padding:i}).fn(n):{}}}},Dr=(e,t)=>({...j3(e),options:[e,t]}),Nr=(e,t)=>({...F3(e),options:[e,t]}),kr=(e,t)=>({...V3(e),options:[e,t]}),xs=(e,t)=>({...B3(e),options:[e,t]}),bs=(e,t)=>({...z3(e),options:[e,t]}),Gb={...Q},G3=Gb.useInsertionEffect||(e=>e());function tr(e){const t=Q.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return G3(()=>{t.current=e}),Q.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 Yb=!1,Y3=0;const Hb=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Y3++;function H3(){const[e,t]=Q.useState(()=>Yb?Hb():void 0);return Lr(()=>{e==null&&t(Hb())},[]),Q.useEffect(()=>{Yb=!0},[]),e}const qb=Gb.useId||H3;let zd;process.env.NODE_ENV!=="production"&&(zd=new Set);function q3(){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=zd)!=null&&e.has(i))){var o;(o=zd)==null||o.add(i),console.error(i)}}function K3(){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 X3=Q.createContext(null),Z3=Q.createContext(null),Gd=()=>{var e;return((e=Q.useContext(X3))==null?void 0:e.id)||null},Yd=()=>Q.useContext(Z3);function Hd(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 Kb=Hd("safe-polygon");function qd(e,t,n){return n&&!Ro(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function J3(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:f=null,mouseOnly:h=!1,restMs:m=0,move:p=!0}=t,v=Yd(),S=Gd(),x=yi(f),T=yi(u),b=yi(n),A=Q.useRef(),E=Q.useRef(-1),$=Q.useRef(),C=Q.useRef(-1),D=Q.useRef(!0),j=Q.useRef(!1),F=Q.useRef(()=>{}),U=Q.useRef(!1),Z=Q.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]);Q.useEffect(()=>{if(!c)return;function V(B){let{open:Y}=B;Y||(an(E),an(C),D.current=!0,U.current=!1)}return o.on("openchange",V),()=>{o.off("openchange",V)}},[c,o]),Q.useEffect(()=>{if(!c||!x.current||!n)return;function V(Y){Z()&&r(!1,Y,"hover")}const B=mi(a.floating).documentElement;return B.addEventListener("mouseleave",V),()=>{B.removeEventListener("mouseleave",V)}},[a.floating,n,r,c,x,Z]);const ee=Q.useCallback(function(V,B,Y){B===void 0&&(B=!0),Y===void 0&&(Y="hover");const O=qd(T.current,"close",A.current);O&&!$.current?(an(E),E.current=window.setTimeout(()=>r(!1,V,Y),O)):B&&(an(E),r(!1,V,Y))},[T,r]),se=tr(()=>{F.current(),$.current=void 0}),ge=tr(()=>{if(j.current){const V=mi(a.floating).body;V.style.pointerEvents="",V.removeAttribute(Kb),j.current=!1}}),ue=tr(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);Q.useEffect(()=>{if(!c)return;function V(k){if(an(E),D.current=!1,h&&!Ro(A.current)||m>0&&!qd(T.current,"open"))return;const K=qd(T.current,"open",A.current);K?E.current=window.setTimeout(()=>{b.current||r(!0,k,"hover")},K):n||r(!0,k,"hover")}function B(k){if(ue())return;F.current();const K=mi(a.floating);if(an(C),U.current=!1,x.current&&i.current.floatingContext){n||an(E),$.current=x.current({...i.current.floatingContext,tree:v,x:k.clientX,y:k.clientY,onClose(){ge(),se(),ue()||ee(k,!0,"safe-polygon")}});const le=$.current;K.addEventListener("mousemove",le),F.current=()=>{K.removeEventListener("mousemove",le)};return}(A.current==="touch"?!Lo(a.floating,k.relatedTarget):!0)&&ee(k)}function Y(k){ue()||i.current.floatingContext&&(x.current==null||x.current({...i.current.floatingContext,tree:v,x:k.clientX,y:k.clientY,onClose(){ge(),se(),ue()||ee(k)}})(k))}if(Ke(a.domReference)){var O;const k=a.domReference;return n&&k.addEventListener("mouseleave",Y),(O=a.floating)==null||O.addEventListener("mouseleave",Y),p&&k.addEventListener("mousemove",V,{once:!0}),k.addEventListener("mouseenter",V),k.addEventListener("mouseleave",B),()=>{var K;n&&k.removeEventListener("mouseleave",Y),(K=a.floating)==null||K.removeEventListener("mouseleave",Y),p&&k.removeEventListener("mousemove",V),k.removeEventListener("mouseenter",V),k.removeEventListener("mouseleave",B)}}},[a,c,e,h,m,p,ee,se,ge,r,n,b,v,T,x,i,ue]),Lr(()=>{var V;if(c&&n&&(V=x.current)!=null&&V.__options.blockPointerEvents&&Z()){j.current=!0;const Y=a.floating;if(Ke(a.domReference)&&Y){var B;const O=mi(a.floating).body;O.setAttribute(Kb,"");const k=a.domReference,K=v==null||(B=v.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",k.style.pointerEvents="auto",Y.style.pointerEvents="auto",()=>{O.style.pointerEvents="",k.style.pointerEvents="",Y.style.pointerEvents=""}}}},[c,n,S,a,v,x,Z]),Lr(()=>{n||(A.current=void 0,U.current=!1,se(),ge())},[n,se,ge]),Q.useEffect(()=>()=>{se(),an(E),an(C),ge()},[c,a.domReference,se,ge]);const fe=Q.useMemo(()=>{function V(B){A.current=B.pointerType}return{onPointerDown:V,onPointerEnter:V,onMouseMove(B){const{nativeEvent:Y}=B;function O(){!D.current&&!b.current&&r(!0,Y,"hover")}h&&!Ro(A.current)||n||m===0||U.current&&B.movementX**2+B.movementY**2<2||(an(C),A.current==="touch"?O():(U.current=!0,C.current=window.setTimeout(O,m)))}}},[h,r,n,b,m]),he=Q.useMemo(()=>({onMouseEnter(){an(E)},onMouseLeave(V){ue()||ee(V.nativeEvent,!1)}}),[ee,ue]);return Q.useMemo(()=>c?{reference:fe,floating:he}:{},[c,fe,he])}function Kd(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 Q3="data-floating-ui-focusable";function Xb(e){return Rt(e.target)&&e.target.tagName==="BUTTON"}function Zb(e){return _b(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:f=!1,keyboardHandlers:h=!0,stickIfOpen:m=!0}=t,p=Q.useRef(),v=Q.useRef(!1),S=Q.useMemo(()=>({onPointerDown(x){p.current=x.pointerType},onMouseDown(x){const T=p.current;x.button===0&&c!=="click"&&(Ro(T,!0)&&f||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="mousedown")?r(!1,x.nativeEvent,"click"):(x.preventDefault(),r(!0,x.nativeEvent,"click"))))},onClick(x){const T=p.current;if(c==="mousedown"&&p.current){p.current=void 0;return}Ro(T,!0)&&f||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="click")?r(!1,x.nativeEvent,"click"):r(!0,x.nativeEvent,"click"))},onKeyDown(x){p.current=void 0,!(x.defaultPrevented||!h||Xb(x))&&(x.key===" "&&!Zb(o)&&(x.preventDefault(),v.current=!0),x.key==="Enter"&&r(!(n&&u),x.nativeEvent,"click"))},onKeyUp(x){x.defaultPrevented||!h||Xb(x)||Zb(o)||x.key===" "&&v.current&&(v.current=!1,r(!(n&&u),x.nativeEvent,"click"))}}),[i,o,c,f,h,r,n,m,u]);return Q.useMemo(()=>a?{reference:S}:{},[a,S])}const eN={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},tN={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Jb=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 Rr(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:f="pointerdown",referencePress:h=!1,referencePressEvent:m="pointerdown",ancestorScroll:p=!1,bubbles:v,capture:S}=t,x=Yd(),T=tr(typeof u=="function"?u:()=>!1),b=typeof u=="function"?T:u,A=Q.useRef(!1),E=Q.useRef(!1),{escapeKey:$,outsidePress:C}=Jb(v),{escapeKey:D,outsidePress:j}=Jb(S),F=Q.useRef(!1),U=tr(fe=>{var he;if(!n||!a||!c||fe.key!=="Escape"||F.current)return;const V=(he=o.current.floatingContext)==null?void 0:he.nodeId,B=x?Kd(x.nodesRef.current,V):[];if(!$&&(fe.stopPropagation(),B.length>0)){let Y=!0;if(B.forEach(O=>{var k;if((k=O.context)!=null&&k.open&&!O.context.dataRef.current.__escapeKeyBubbles){Y=!1;return}}),!Y)return}r(!1,o3(fe)?fe.nativeEvent:fe,"escape-key")}),Z=tr(fe=>{var he;const V=()=>{var B;U(fe),(B=ps(fe))==null||B.removeEventListener("keydown",V)};(he=ps(fe))==null||he.addEventListener("keydown",V)}),ee=tr(fe=>{var he;const V=A.current;A.current=!1;const B=E.current;if(E.current=!1,f==="click"&&B||V||typeof b=="function"&&!b(fe))return;const Y=ps(fe),O="["+Hd("inert")+"]",k=mi(i.floating).querySelectorAll(O);let K=Ke(Y)?Y:null;for(;K&&!Qn(K);){const J=er(K);if(Qn(J)||!Ke(J))break;K=J}if(k.length&&Ke(Y)&&!a3(Y)&&!Lo(Y,i.floating)&&Array.from(k).every(J=>!Lo(K,J)))return;if(Rt(Y)&&ue){const J=Qn(Y),oe=on(Y),re=/auto|scroll/,de=J||re.test(oe.overflowX),Ce=J||re.test(oe.overflowY),Ve=de&&Y.clientWidth>0&&Y.scrollWidth>Y.clientWidth,ie=Ce&&Y.clientHeight>0&&Y.scrollHeight>Y.clientHeight,pe=oe.direction==="rtl",De=ie&&(pe?fe.offsetX<=Y.offsetWidth-Y.clientWidth:fe.offsetX>Y.clientWidth),ft=Ve&&fe.offsetY>Y.clientHeight;if(De||ft)return}const ae=(he=o.current.floatingContext)==null?void 0:he.nodeId,le=x&&Kd(x.nodesRef.current,ae).some(J=>{var oe;return Nd(fe,(oe=J.context)==null?void 0:oe.elements.floating)});if(Nd(fe,i.floating)||Nd(fe,i.domReference)||le)return;const z=x?Kd(x.nodesRef.current,ae):[];if(z.length>0){let J=!0;if(z.forEach(oe=>{var re;if((re=oe.context)!=null&&re.open&&!oe.context.dataRef.current.__outsidePressBubbles){J=!1;return}}),!J)return}r(!1,fe,"outside-press")}),se=tr(fe=>{var he;const V=()=>{var B;ee(fe),(B=ps(fe))==null||B.removeEventListener(f,V)};(he=ps(fe))==null||he.addEventListener(f,V)});Q.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=$,o.current.__outsidePressBubbles=C;let fe=-1;function he(k){r(!1,k,"ancestor-scroll")}function V(){window.clearTimeout(fe),F.current=!0}function B(){fe=window.setTimeout(()=>{F.current=!1},rl()?5:0)}const Y=mi(i.floating);c&&(Y.addEventListener("keydown",D?Z:U,D),Y.addEventListener("compositionstart",V),Y.addEventListener("compositionend",B)),b&&Y.addEventListener(f,j?se:ee,j);let O=[];return p&&(Ke(i.domReference)&&(O=Or(i.domReference)),Ke(i.floating)&&(O=O.concat(Or(i.floating))),!Ke(i.reference)&&i.reference&&i.reference.contextElement&&(O=O.concat(Or(i.reference.contextElement)))),O=O.filter(k=>{var K;return k!==((K=Y.defaultView)==null?void 0:K.visualViewport)}),O.forEach(k=>{k.addEventListener("scroll",he,{passive:!0})}),()=>{c&&(Y.removeEventListener("keydown",D?Z:U,D),Y.removeEventListener("compositionstart",V),Y.removeEventListener("compositionend",B)),b&&Y.removeEventListener(f,j?se:ee,j),O.forEach(k=>{k.removeEventListener("scroll",he)}),window.clearTimeout(fe)}},[o,i,c,b,f,n,r,p,a,$,C,U,D,Z,ee,j,se]),Q.useEffect(()=>{A.current=!1},[b,f]);const ge=Q.useMemo(()=>({onKeyDown:U,...h&&{[eN[m]]:fe=>{r(!1,fe.nativeEvent,"reference-press")},...m!=="click"&&{onClick(fe){r(!1,fe.nativeEvent,"reference-press")}}}}),[U,r,h,m]),ue=Q.useMemo(()=>({onKeyDown:U,onMouseDown(){E.current=!0},onMouseUp(){E.current=!0},[tN[f]]:()=>{A.current=!0}}),[U,f]);return Q.useMemo(()=>a?{reference:ge,floating:ue}:{},[a,ge,ue])}function nN(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=qb(),o=Q.useRef({}),[a]=Q.useState(()=>K3()),c=Gd()!=null;if(process.env.NODE_ENV!=="production"){const v=r.reference;v&&!Ke(v)&&q3("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[u,f]=Q.useState(r.reference),h=tr((v,S,x)=>{o.current.openEvent=v?S:void 0,a.emit("openchange",{open:v,event:S,reason:x,nested:c}),n==null||n(v,S,x)}),m=Q.useMemo(()=>({setPositionReference:f}),[]),p=Q.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return Q.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=nN({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=Q.useState(null),[c,u]=Q.useState(null),h=(i==null?void 0:i.domReference)||o,m=Q.useRef(null),p=Yd();Lr(()=>{h&&(m.current=h)},[h]);const v=U3({...e,elements:{...i,...c&&{reference:c}}}),S=Q.useCallback(E=>{const $=Ke(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),contextElement:E}:E;u($),v.refs.setReference($)},[v.refs]),x=Q.useCallback(E=>{(Ke(E)||E===null)&&(m.current=E,a(E)),(Ke(v.refs.reference.current)||v.refs.reference.current===null||E!==null&&!Ke(E))&&v.refs.setReference(E)},[v.refs]),T=Q.useMemo(()=>({...v.refs,setReference:x,setPositionReference:S,domReference:m}),[v.refs,x,S]),b=Q.useMemo(()=>({...v.elements,domReference:h}),[v.elements,h]),A=Q.useMemo(()=>({...v,...r,refs:T,elements:b,nodeId:t}),[v,T,b,t,r]);return Lr(()=>{r.dataRef.current.floatingContext=A;const E=p==null?void 0:p.nodesRef.current.find($=>$.id===t);E&&(E.context=A)}),Q.useMemo(()=>({...v,context:A,refs:T,elements:b}),[v,T,b,A])}function rN(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,f=Q.useRef(!1),h=Q.useRef(-1),m=Q.useRef(!0);Q.useEffect(()=>{if(!c)return;const v=Lt(a.domReference);function S(){!n&&Rt(a.domReference)&&a.domReference===Pb(mi(a.domReference))&&(f.current=!0)}function x(){m.current=!0}return v.addEventListener("blur",S),v.addEventListener("keydown",x,!0),()=>{v.removeEventListener("blur",S),v.removeEventListener("keydown",x,!0)}},[a.domReference,n,c]),Q.useEffect(()=>{if(!c)return;function v(S){let{reason:x}=S;(x==="reference-press"||x==="escape-key")&&(f.current=!0)}return i.on("openchange",v),()=>{i.off("openchange",v)}},[i,c]),Q.useEffect(()=>()=>{an(h)},[]);const p=Q.useMemo(()=>({onPointerDown(v){n3(v.nativeEvent)||(m.current=!1)},onMouseLeave(){f.current=!1},onFocus(v){if(f.current)return;const S=ps(v.nativeEvent);if(u&&Ke(S))try{if(r3()&&i3())throw Error();if(!S.matches(":focus-visible"))return}catch{if(!m.current&&!_b(S))return}r(!0,v.nativeEvent,"focus")},onBlur(v){f.current=!1;const S=v.relatedTarget,x=v.nativeEvent,T=Ke(S)&&S.hasAttribute(Hd("focus-guard"))&&S.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var b;const A=Pb(a.domReference?a.domReference.ownerDocument:document);!S&&A===a.domReference||Lo((b=o.current.floatingContext)==null?void 0:b.refs.floating.current,A)||Lo(a.domReference,A)||T||r(!1,x,"focus")})}}),[o,a.domReference,r,u]);return Q.useMemo(()=>c?{reference:p}:{},[c,p])}const Qb="active",e2="selected";function Xd(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[Qb]:a,[e2]:c,...u}=e;o=u}return{...n==="floating"&&{tabIndex:-1,[Q3]:""},...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[f,h]=u;if(!(i&&[Qb,e2].includes(f)))if(f.indexOf("on")===0){if(r.has(f)||r.set(f,[]),typeof h=="function"){var m;(m=r.get(f))==null||m.push(h),a[f]=function(){for(var p,v=arguments.length,S=new Array(v),x=0;x<v;x++)S[x]=arguments[x];return(p=r.get(f))==null?void 0:p.map(T=>T(...S)).find(T=>T!==void 0)}}}else a[f]=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=Q.useCallback(c=>Xd(c,e,"reference"),t),o=Q.useCallback(c=>Xd(c,e,"floating"),n),a=Q.useCallback(c=>Xd(c,e,"item"),r);return Q.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const iN=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function sN(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,c=(n=iN.get(a))!=null?n:a,u=qb(),h=Gd()!=null,m=Q.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=Q.useMemo(()=>{const S={id:i,...c&&{role:c}};return c==="tooltip"||a==="label"?S:{...S,...c==="menu"&&{"aria-labelledby":u}}},[c,i,u,a]),v=Q.useCallback(S=>{let{active:x,selected:T}=S;const b={role:"option",...x&&{id:i+"-option"}};switch(a){case"select":return{...b,"aria-selected":x&&T};case"combobox":return{...b,...x&&{"aria-selected":!0}}}return{}},[i,a]);return Q.useMemo(()=>o?{reference:m,floating:p,item:v}:{},[o,m,p,v])}const t2=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function ws(e,t){return typeof e=="function"?e(t):e}function oN(e,t){const[n,r]=Q.useState(e);return e&&!n&&r(!0),Q.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function aN(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]=Q.useState("unmounted"),f=oN(n,a);return!f&&c==="close"&&u("unmounted"),Lr(()=>{if(r){if(n){u("initial");const h=requestAnimationFrame(()=>{u("open")});return()=>{cancelAnimationFrame(h)}}u("close")}},[n,r]),{isMounted:f,status:c}}function xi(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],f=Q.useMemo(()=>({side:u,placement:c}),[u,c]),h=typeof a=="number",m=(h?a:a.open)||0,p=(h?a:a.close)||0,[v,S]=Q.useState(()=>({...ws(o,f),...ws(n,f)})),{isMounted:x,status:T}=aN(e,{duration:a}),b=yi(n),A=yi(r),E=yi(i),$=yi(o);return Lr(()=>{const C=ws(b.current,f),D=ws(E.current,f),j=ws($.current,f),F=ws(A.current,f)||Object.keys(C).reduce((U,Z)=>(U[Z]="",U),{});if(T==="initial"&&S(U=>({transitionProperty:U.transitionProperty,...j,...C})),T==="open"&&S({transitionProperty:Object.keys(F).map(t2).join(","),transitionDuration:m+"ms",...j,...F}),T==="close"){const U=D||C;S({transitionProperty:Object.keys(U).map(t2).join(","),transitionDuration:p+"ms",...j,...U})}},[p,E,b,A,$,m,T,f]),{isMounted:x,styles:v}}const bi=({open:e,onClose:t,component:n,children:r,placement:i="bottom",className:o="",strategy:a="absolute",styles:c={},offset:u=8,padding:f=8})=>{const[h,m]=_.useState(e);_.useEffect(()=>{m(e)},[e]);const p=()=>{m(!1),t==null||t()},{x:v,y:S,strategy:x,refs:T,context:b}=jr({strategy:a,open:h,onOpenChange:F=>{!F&&!e&&p()},middleware:[Dr(u),kr(),Nr({padding:f})],whileElementsMounted:$r,placement:i}),A=vi(b,{enabled:!1}),E=Rr(b,{enabled:!1}),{getReferenceProps:$,getFloatingProps:C}=Fr([A,E]),{isMounted:D,styles:j}=xi(b,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px) scale(0.95)"}});return y.jsxs("div",{className:"relative",children:[y.jsx("div",{ref:T.setReference,...$(),className:"reference-element",children:r}),D&&y.jsx("div",{ref:T.setFloating,style:{position:x,top:S??0,left:v??0,...j,zIndex:999,...c},...C(),className:"floating-element",children:y.jsx(Ss,{className:o,children:typeof n=="function"?_.createElement(n):n})})]})},lN=({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 y.jsxs("div",{className:"flex rounded-xl p-6 gap-2 border",style:{borderColor:(n==null?void 0:n.hoverLight)||"#dbeafe"},children:[y.jsx(Ge.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"}),y.jsx(Ge.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"})]})},cN=({setHourMenuOpen:e,hourMenuOpen:t,selectedHour:n})=>y.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 K5={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"]},X5={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"]},Z5={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"]},J5={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"]},Q5={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 ms(e){return Cb(e)?(e.nodeName||"").toLowerCase():"#document"}function Lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function jn(e){var t;return(t=(Cb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Cb(e){return tl()?e instanceof Node||e instanceof Lt(e).Node:!1}function Ke(e){return tl()?e instanceof Element||e instanceof Lt(e).Element:!1}function Rt(e){return tl()?e instanceof HTMLElement||e instanceof Lt(e).HTMLElement:!1}function Id(e){return!tl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Lt(e).ShadowRoot}function ko(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 e3(e){return["table","td","th"].includes(ms(e))}function nl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function $d(e){const t=rl(),n=Ke(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 t3(e){let t=er(e);for(;Rt(t)&&!Qn(t);){if($d(t))return t;if(nl(t))return null;t=er(t)}return null}function rl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qn(e){return["html","body","#document"].includes(ms(e))}function on(e){return Lt(e).getComputedStyle(e)}function il(e){return Ke(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function er(e){if(ms(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Id(e)&&e.host||jn(e);return Id(t)?t.host:t}function Pb(e){const t=er(e);return Qn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Rt(t)&&ko(t)?t:Pb(t)}function Or(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Pb(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Lt(i);if(o){const c=Dd(a);return t.concat(a,a.visualViewport||[],ko(i)?i:[],c&&n?Or(c):[])}return t.concat(i,Or(i,[],n))}function Dd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ab(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 Lo(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Id(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Mb(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Ob(){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 n3(e){return s3()?!1:!_b()&&e.width===0&&e.height===0||_b()&&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 r3(){return/apple/i.test(navigator.vendor)}function _b(){const e=/android/i;return e.test(Mb())||e.test(Ob())}function i3(){return Mb().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function s3(){return Ob().includes("jsdom/")}function Ro(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function o3(e){return"nativeEvent"in e}function a3(e){return e.matches("html,body")}function mi(e){return(e==null?void 0:e.ownerDocument)||document}function Nd(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 ps(e){return"composedPath"in e?e.composedPath()[0]:e.target}const l3="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Ib(e){return Rt(e)&&e.matches(l3)}const _r=Math.min,Yt=Math.max,sl=Math.round,ol=Math.floor,Fn=e=>({x:e,y:e}),c3={left:"right",right:"left",bottom:"top",top:"bottom"},u3={start:"end",end:"start"};function kd(e,t,n){return Yt(e,_r(t,n))}function gs(e,t){return typeof e=="function"?e(t):e}function Ir(e){return e.split("-")[0]}function ys(e){return e.split("-")[1]}function $b(e){return e==="x"?"y":"x"}function Ld(e){return e==="y"?"height":"width"}function pi(e){return["top","bottom"].includes(Ir(e))?"y":"x"}function Rd(e){return $b(pi(e))}function f3(e,t,n){n===void 0&&(n=!1);const r=ys(e),i=Rd(e),o=Ld(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 d3(e){const t=al(e);return[jd(e),t,jd(t)]}function jd(e){return e.replace(/start|end/g,t=>u3[t])}function h3(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 m3(e,t,n,r){const i=ys(e);let o=h3(Ir(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(jd)))),o}function al(e){return e.replace(/left|right|bottom|top/g,t=>c3[t])}function p3(e){return{top:0,right:0,bottom:0,left:0,...e}}function Db(e){return typeof e!="number"?p3(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 Nb(e,t,n){let{reference:r,floating:i}=e;const o=pi(t),a=Rd(t),c=Ld(a),u=Ir(t),f=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 v;switch(u){case"top":v={x:h,y:r.y-i.height};break;case"bottom":v={x:h,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:m};break;case"left":v={x:r.x-i.width,y:m};break;default:v={x:r.x,y:r.y}}switch(ys(t)){case"start":v[a]-=p*(n&&f?-1:1);break;case"end":v[a]+=p*(n&&f?-1:1);break}return v}const g3=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 f=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=Nb(f,r,u),p=r,v={},S=0;for(let x=0;x<c.length;x++){const{name:T,fn:b}=c[x],{x:A,y:E,data:$,reset:C}=await b({x:h,y:m,initialPlacement:r,placement:p,strategy:i,middlewareData:v,rects:f,platform:a,elements:{reference:e,floating:t}});h=A??h,m=E??m,v={...v,[T]:{...v[T],...$}},C&&S<=50&&(S++,typeof C=="object"&&(C.placement&&(p=C.placement),C.rects&&(f=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):C.rects),{x:h,y:m}=Nb(f,p,u)),x=-1)}return{x:h,y:m,placement:p,strategy:i,middlewareData:v}};async function Fd(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:c,strategy:u}=e,{boundary:f="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:p=!1,padding:v=0}=gs(t,e),S=Db(v),T=c[p?m==="floating"?"reference":"floating":m],b=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:f,rootBoundary:h,strategy:u})),A=m==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),$=await(o.isElement==null?void 0:o.isElement(E))?await(o.getScale==null?void 0:o.getScale(E))||{x:1,y:1}:{x:1,y:1},C=ll(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:A,offsetParent:E,strategy:u}):A);return{top:(b.top-C.top+S.top)/$.y,bottom:(C.bottom-b.bottom+S.bottom)/$.y,left:(b.left-C.left+S.left)/$.x,right:(C.right-b.right+S.right)/$.x}}const y3=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:f,padding:h=0}=gs(e,t)||{};if(f==null)return{};const m=Db(h),p={x:n,y:r},v=Rd(i),S=Ld(v),x=await a.getDimensions(f),T=v==="y",b=T?"top":"left",A=T?"bottom":"right",E=T?"clientHeight":"clientWidth",$=o.reference[S]+o.reference[v]-p[v]-o.floating[S],C=p[v]-o.reference[v],D=await(a.getOffsetParent==null?void 0:a.getOffsetParent(f));let j=D?D[E]:0;(!j||!await(a.isElement==null?void 0:a.isElement(D)))&&(j=c.floating[E]||o.floating[S]);const F=$/2-C/2,U=j/2-x[S]/2-1,Z=_r(m[b],U),ee=_r(m[A],U),se=Z,ge=j-x[S]-ee,ue=j/2-x[S]/2+F,fe=kd(se,ue,ge),he=!u.arrow&&ys(i)!=null&&ue!==fe&&o.reference[S]/2-(ue<se?Z:ee)-x[S]/2<0,V=he?ue<se?ue-se:ue-ge:0;return{[v]:p[v]+V,data:{[v]:fe,centerOffset:ue-fe-V,...he&&{alignmentOffset:V}},reset:he}}}),v3=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:f}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:x=!0,...T}=gs(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const b=Ir(i),A=pi(c),E=Ir(c)===c,$=await(u.isRTL==null?void 0:u.isRTL(f.floating)),C=p||(E||!x?[al(c)]:d3(c)),D=S!=="none";!p&&D&&C.push(...m3(c,x,S,$));const j=[c,...C],F=await Fd(t,T),U=[];let Z=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&U.push(F[b]),m){const ue=f3(i,a,$);U.push(F[ue[0]],F[ue[1]])}if(Z=[...Z,{placement:i,overflows:U}],!U.every(ue=>ue<=0)){var ee,se;const ue=(((ee=o.flip)==null?void 0:ee.index)||0)+1,fe=j[ue];if(fe)return{data:{index:ue,overflows:Z},reset:{placement:fe}};let he=(se=Z.filter(V=>V.overflows[0]<=0).sort((V,B)=>V.overflows[1]-B.overflows[1])[0])==null?void 0:se.placement;if(!he)switch(v){case"bestFit":{var ge;const V=(ge=Z.filter(B=>{if(D){const Y=pi(B.placement);return Y===A||Y==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(Y=>Y>0).reduce((Y,O)=>Y+O,0)]).sort((B,Y)=>B[1]-Y[1])[0])==null?void 0:ge[0];V&&(he=V);break}case"initialPlacement":he=c;break}if(i!==he)return{reset:{placement:he}}}return{}}}};async function x3(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=ys(n),u=pi(n)==="y",f=["left","top"].includes(a)?-1:1,h=o&&u?-1:1,m=gs(t,e);let{mainAxis:p,crossAxis:v,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"&&(v=c==="end"?S*-1:S),u?{x:v*h,y:p*f}:{x:p*f,y:v*h}}const b3=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 x3(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}}}}},w3=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:b,y:A}=T;return{x:b,y:A}}},...u}=gs(e,t),f={x:n,y:r},h=await Fd(t,u),m=pi(Ir(i)),p=$b(m);let v=f[p],S=f[m];if(o){const T=p==="y"?"top":"left",b=p==="y"?"bottom":"right",A=v+h[T],E=v-h[b];v=kd(A,v,E)}if(a){const T=m==="y"?"top":"left",b=m==="y"?"bottom":"right",A=S+h[T],E=S-h[b];S=kd(A,S,E)}const x=c.fn({...t,[p]:v,[m]:S});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[p]:o,[m]:a}}}}}},S3=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=()=>{},...f}=gs(e,t),h=await Fd(t,f),m=Ir(i),p=ys(i),v=pi(i)==="y",{width:S,height:x}=o.floating;let T,b;m==="top"||m==="bottom"?(T=m,b=p===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(b=m,T=p==="end"?"top":"bottom");const A=x-h.top-h.bottom,E=S-h.left-h.right,$=_r(x-h[T],A),C=_r(S-h[b],E),D=!t.middlewareData.shift;let j=$,F=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=A),D&&!p){const Z=Yt(h.left,0),ee=Yt(h.right,0),se=Yt(h.top,0),ge=Yt(h.bottom,0);v?F=S-2*(Z!==0||ee!==0?Z+ee:Yt(h.left,h.right)):j=x-2*(se!==0||ge!==0?se+ge:Yt(h.top,h.bottom))}await u({...t,availableWidth:F,availableHeight:j});const U=await a.getDimensions(c.floating);return S!==U.width||x!==U.height?{reset:{rects:!0}}:{}}}};function kb(e){const t=on(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Rt(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 Vd(e){return Ke(e)?e:e.contextElement}function vs(e){const t=Vd(e);if(!Rt(t))return Fn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=kb(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 T3=Fn(0);function Lb(e){const t=Lt(e);return!rl()||!t.visualViewport?T3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function E3(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=Vd(e);let a=Fn(1);t&&(r?Ke(r)&&(a=vs(r)):a=vs(e));const c=E3(o,n,r)?Lb(o):Fn(0);let u=(i.left+c.x)/a.x,f=(i.top+c.y)/a.y,h=i.width/a.x,m=i.height/a.y;if(o){const p=Lt(o),v=r&&Ke(r)?Lt(r):r;let S=p,x=Dd(S);for(;x&&r&&v!==S;){const T=vs(x),b=x.getBoundingClientRect(),A=on(x),E=b.left+(x.clientLeft+parseFloat(A.paddingLeft))*T.x,$=b.top+(x.clientTop+parseFloat(A.paddingTop))*T.y;u*=T.x,f*=T.y,h*=T.x,m*=T.y,u+=E,f+=$,S=Lt(x),x=Dd(S)}}return ll({width:h,height:m,x:u,y:f})}function Bd(e,t){const n=il(e).scrollLeft;return t?t.left+n:gi(jn(e)).left+n}function Rb(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Bd(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function C3(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=jn(r),c=t?nl(t.floating):!1;if(r===a||c&&o)return n;let u={scrollLeft:0,scrollTop:0},f=Fn(1);const h=Fn(0),m=Rt(r);if((m||!m&&!o)&&((ms(r)!=="body"||ko(a))&&(u=il(r)),Rt(r))){const v=gi(r);f=vs(r),h.x=v.x+r.clientLeft,h.y=v.y+r.clientTop}const p=a&&!m&&!o?Rb(a,u,!0):Fn(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-u.scrollLeft*f.x+h.x+p.x,y:n.y*f.y-u.scrollTop*f.y+h.y+p.y}}function P3(e){return Array.from(e.getClientRects())}function A3(e){const t=jn(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+Bd(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 M3(e,t){const n=Lt(e),r=jn(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,c=0,u=0;if(i){o=i.width,a=i.height;const f=rl();(!f||f&&t==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:c,y:u}}function O3(e,t){const n=gi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Rt(e)?vs(e):Fn(1),a=e.clientWidth*o.x,c=e.clientHeight*o.y,u=i*o.x,f=r*o.y;return{width:a,height:c,x:u,y:f}}function jb(e,t,n){let r;if(t==="viewport")r=M3(e,n);else if(t==="document")r=A3(jn(e));else if(Ke(t))r=O3(t,n);else{const i=Lb(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ll(r)}function Fb(e,t){const n=er(e);return n===t||!Ke(n)||Qn(n)?!1:on(n).position==="fixed"||Fb(n,t)}function _3(e,t){const n=t.get(e);if(n)return n;let r=Or(e,[],!1).filter(c=>Ke(c)&&ms(c)!=="body"),i=null;const o=on(e).position==="fixed";let a=o?er(e):e;for(;Ke(a)&&!Qn(a);){const c=on(a),u=$d(a);!u&&c.position==="fixed"&&(i=null),(o?!u&&!i:!u&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ko(a)&&!u&&Fb(e,a))?r=r.filter(h=>h!==a):i=c,a=er(a)}return t.set(e,r),r}function I3(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?nl(t)?[]:_3(t,this._c):[].concat(n),r],c=a[0],u=a.reduce((f,h)=>{const m=jb(t,h,i);return f.top=Yt(m.top,f.top),f.right=_r(m.right,f.right),f.bottom=_r(m.bottom,f.bottom),f.left=Yt(m.left,f.left),f},jb(t,c,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function $3(e){const{width:t,height:n}=kb(e);return{width:t,height:n}}function D3(e,t,n){const r=Rt(t),i=jn(t),o=n==="fixed",a=gi(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const u=Fn(0);if(r||!r&&!o)if((ms(t)!=="body"||ko(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=Bd(i));const f=i&&!r&&!o?Rb(i,c):Fn(0),h=a.left+c.scrollLeft-u.x-f.x,m=a.top+c.scrollTop-u.y-f.y;return{x:h,y:m,width:a.width,height:a.height}}function Wd(e){return on(e).position==="static"}function Vb(e,t){if(!Rt(e)||on(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return jn(e)===n&&(n=n.ownerDocument.body),n}function Bb(e,t){const n=Lt(e);if(nl(e))return n;if(!Rt(e)){let i=er(e);for(;i&&!Qn(i);){if(Ke(i)&&!Wd(i))return i;i=er(i)}return n}let r=Vb(e,t);for(;r&&e3(r)&&Wd(r);)r=Vb(r,t);return r&&Qn(r)&&Wd(r)&&!$d(r)?n:r||t3(e)||n}const N3=async function(e){const t=this.getOffsetParent||Bb,n=this.getDimensions,r=await n(e.floating);return{reference:D3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function k3(e){return on(e).direction==="rtl"}const L3={convertOffsetParentRelativeRectToViewportRelativeRect:C3,getDocumentElement:jn,getClippingRect:I3,getOffsetParent:Bb,getElementRects:N3,getClientRects:P3,getDimensions:$3,getScale:vs,isElement:Ke,isRTL:k3};function Wb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function R3(e,t){let n=null,r;const i=jn(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 f=e.getBoundingClientRect(),{left:h,top:m,width:p,height:v}=f;if(c||t(),!p||!v)return;const S=ol(m),x=ol(i.clientWidth-(h+p)),T=ol(i.clientHeight-(m+v)),b=ol(h),E={rootMargin:-S+"px "+-x+"px "+-T+"px "+-b+"px",threshold:Yt(0,_r(1,u))||1};let $=!0;function C(D){const j=D[0].intersectionRatio;if(j!==u){if(!$)return a();j?a(!1,j):r=setTimeout(()=>{a(!1,1e-7)},1e3)}j===1&&!Wb(f,e.getBoundingClientRect())&&a(),$=!1}try{n=new IntersectionObserver(C,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,E)}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,f=Vd(e),h=i||o?[...f?Or(f):[],...Or(t)]:[];h.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),o&&b.addEventListener("resize",n)});const m=f&&c?R3(f,n):null;let p=-1,v=null;a&&(v=new ResizeObserver(b=>{let[A]=b;A&&A.target===f&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var E;(E=v)==null||E.observe(t)})),n()}),f&&!u&&v.observe(f),v.observe(t));let S,x=u?gi(e):null;u&&T();function T(){const b=gi(e);x&&!Wb(x,b)&&n(),x=b,S=requestAnimationFrame(T)}return n(),()=>{var b;h.forEach(A=>{i&&A.removeEventListener("scroll",n),o&&A.removeEventListener("resize",n)}),m==null||m(),(b=v)==null||b.disconnect(),v=null,u&&cancelAnimationFrame(S)}}const j3=b3,F3=w3,V3=v3,B3=S3,Ub=y3,W3=(e,t,n)=>{const r=new Map,i={platform:L3,...n},o={...i.platform,_c:r};return g3(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 zb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gb(e,t){const n=zb(e);return Math.round(t*n)/n}function Ud(e){const t=Q.useRef(e);return cl(()=>{t.current=e}),t}function U3(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:f}=e,[h,m]=Q.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=Q.useState(r);ul(p,r)||v(r);const[S,x]=Q.useState(null),[T,b]=Q.useState(null),A=Q.useCallback(B=>{B!==D.current&&(D.current=B,x(B))},[]),E=Q.useCallback(B=>{B!==j.current&&(j.current=B,b(B))},[]),$=o||S,C=a||T,D=Q.useRef(null),j=Q.useRef(null),F=Q.useRef(h),U=u!=null,Z=Ud(u),ee=Ud(i),se=Ud(f),ge=Q.useCallback(()=>{if(!D.current||!j.current)return;const B={placement:t,strategy:n,middleware:p};ee.current&&(B.platform=ee.current),W3(D.current,j.current,B).then(Y=>{const O={...Y,isPositioned:se.current!==!1};ue.current&&!ul(F.current,O)&&(F.current=O,vT.flushSync(()=>{m(O)}))})},[p,t,n,ee,se]);cl(()=>{f===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,m(B=>({...B,isPositioned:!1})))},[f]);const ue=Q.useRef(!1);cl(()=>(ue.current=!0,()=>{ue.current=!1}),[]),cl(()=>{if($&&(D.current=$),C&&(j.current=C),$&&C){if(Z.current)return Z.current($,C,ge);ge()}},[$,C,ge,Z,U]);const fe=Q.useMemo(()=>({reference:D,floating:j,setReference:A,setFloating:E}),[A,E]),he=Q.useMemo(()=>({reference:$,floating:C}),[$,C]),V=Q.useMemo(()=>{const B={position:n,left:0,top:0};if(!he.floating)return B;const Y=Gb(he.floating,h.x),O=Gb(he.floating,h.y);return c?{...B,transform:"translate("+Y+"px, "+O+"px)",...zb(he.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:O}},[n,c,he.floating,h.x,h.y]);return Q.useMemo(()=>({...h,update:ge,refs:fe,elements:he,floatingStyles:V}),[h,ge,fe,he,V])}const z3=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?Ub({element:r.current,padding:i}).fn(n):{}:r?Ub({element:r,padding:i}).fn(n):{}}}},Dr=(e,t)=>({...j3(e),options:[e,t]}),Nr=(e,t)=>({...F3(e),options:[e,t]}),kr=(e,t)=>({...V3(e),options:[e,t]}),xs=(e,t)=>({...B3(e),options:[e,t]}),bs=(e,t)=>({...z3(e),options:[e,t]}),Yb={...Q},G3=Yb.useInsertionEffect||(e=>e());function tr(e){const t=Q.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return G3(()=>{t.current=e}),Q.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 Hb=!1,Y3=0;const qb=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Y3++;function H3(){const[e,t]=Q.useState(()=>Hb?qb():void 0);return Lr(()=>{e==null&&t(qb())},[]),Q.useEffect(()=>{Hb=!0},[]),e}const Kb=Yb.useId||H3;let zd;process.env.NODE_ENV!=="production"&&(zd=new Set);function q3(){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=zd)!=null&&e.has(i))){var o;(o=zd)==null||o.add(i),console.error(i)}}function K3(){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 X3=Q.createContext(null),Z3=Q.createContext(null),Gd=()=>{var e;return((e=Q.useContext(X3))==null?void 0:e.id)||null},Yd=()=>Q.useContext(Z3);function Hd(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 Xb=Hd("safe-polygon");function qd(e,t,n){return n&&!Ro(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function J3(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:f=null,mouseOnly:h=!1,restMs:m=0,move:p=!0}=t,v=Yd(),S=Gd(),x=yi(f),T=yi(u),b=yi(n),A=Q.useRef(),E=Q.useRef(-1),$=Q.useRef(),C=Q.useRef(-1),D=Q.useRef(!0),j=Q.useRef(!1),F=Q.useRef(()=>{}),U=Q.useRef(!1),Z=Q.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]);Q.useEffect(()=>{if(!c)return;function V(B){let{open:Y}=B;Y||(an(E),an(C),D.current=!0,U.current=!1)}return o.on("openchange",V),()=>{o.off("openchange",V)}},[c,o]),Q.useEffect(()=>{if(!c||!x.current||!n)return;function V(Y){Z()&&r(!1,Y,"hover")}const B=mi(a.floating).documentElement;return B.addEventListener("mouseleave",V),()=>{B.removeEventListener("mouseleave",V)}},[a.floating,n,r,c,x,Z]);const ee=Q.useCallback(function(V,B,Y){B===void 0&&(B=!0),Y===void 0&&(Y="hover");const O=qd(T.current,"close",A.current);O&&!$.current?(an(E),E.current=window.setTimeout(()=>r(!1,V,Y),O)):B&&(an(E),r(!1,V,Y))},[T,r]),se=tr(()=>{F.current(),$.current=void 0}),ge=tr(()=>{if(j.current){const V=mi(a.floating).body;V.style.pointerEvents="",V.removeAttribute(Xb),j.current=!1}}),ue=tr(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);Q.useEffect(()=>{if(!c)return;function V(k){if(an(E),D.current=!1,h&&!Ro(A.current)||m>0&&!qd(T.current,"open"))return;const K=qd(T.current,"open",A.current);K?E.current=window.setTimeout(()=>{b.current||r(!0,k,"hover")},K):n||r(!0,k,"hover")}function B(k){if(ue())return;F.current();const K=mi(a.floating);if(an(C),U.current=!1,x.current&&i.current.floatingContext){n||an(E),$.current=x.current({...i.current.floatingContext,tree:v,x:k.clientX,y:k.clientY,onClose(){ge(),se(),ue()||ee(k,!0,"safe-polygon")}});const le=$.current;K.addEventListener("mousemove",le),F.current=()=>{K.removeEventListener("mousemove",le)};return}(A.current==="touch"?!Lo(a.floating,k.relatedTarget):!0)&&ee(k)}function Y(k){ue()||i.current.floatingContext&&(x.current==null||x.current({...i.current.floatingContext,tree:v,x:k.clientX,y:k.clientY,onClose(){ge(),se(),ue()||ee(k)}})(k))}if(Ke(a.domReference)){var O;const k=a.domReference;return n&&k.addEventListener("mouseleave",Y),(O=a.floating)==null||O.addEventListener("mouseleave",Y),p&&k.addEventListener("mousemove",V,{once:!0}),k.addEventListener("mouseenter",V),k.addEventListener("mouseleave",B),()=>{var K;n&&k.removeEventListener("mouseleave",Y),(K=a.floating)==null||K.removeEventListener("mouseleave",Y),p&&k.removeEventListener("mousemove",V),k.removeEventListener("mouseenter",V),k.removeEventListener("mouseleave",B)}}},[a,c,e,h,m,p,ee,se,ge,r,n,b,v,T,x,i,ue]),Lr(()=>{var V;if(c&&n&&(V=x.current)!=null&&V.__options.blockPointerEvents&&Z()){j.current=!0;const Y=a.floating;if(Ke(a.domReference)&&Y){var B;const O=mi(a.floating).body;O.setAttribute(Xb,"");const k=a.domReference,K=v==null||(B=v.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",k.style.pointerEvents="auto",Y.style.pointerEvents="auto",()=>{O.style.pointerEvents="",k.style.pointerEvents="",Y.style.pointerEvents=""}}}},[c,n,S,a,v,x,Z]),Lr(()=>{n||(A.current=void 0,U.current=!1,se(),ge())},[n,se,ge]),Q.useEffect(()=>()=>{se(),an(E),an(C),ge()},[c,a.domReference,se,ge]);const fe=Q.useMemo(()=>{function V(B){A.current=B.pointerType}return{onPointerDown:V,onPointerEnter:V,onMouseMove(B){const{nativeEvent:Y}=B;function O(){!D.current&&!b.current&&r(!0,Y,"hover")}h&&!Ro(A.current)||n||m===0||U.current&&B.movementX**2+B.movementY**2<2||(an(C),A.current==="touch"?O():(U.current=!0,C.current=window.setTimeout(O,m)))}}},[h,r,n,b,m]),he=Q.useMemo(()=>({onMouseEnter(){an(E)},onMouseLeave(V){ue()||ee(V.nativeEvent,!1)}}),[ee,ue]);return Q.useMemo(()=>c?{reference:fe,floating:he}:{},[c,fe,he])}function Kd(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 Q3="data-floating-ui-focusable";function Zb(e){return Rt(e.target)&&e.target.tagName==="BUTTON"}function Jb(e){return Ib(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:f=!1,keyboardHandlers:h=!0,stickIfOpen:m=!0}=t,p=Q.useRef(),v=Q.useRef(!1),S=Q.useMemo(()=>({onPointerDown(x){p.current=x.pointerType},onMouseDown(x){const T=p.current;x.button===0&&c!=="click"&&(Ro(T,!0)&&f||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="mousedown")?r(!1,x.nativeEvent,"click"):(x.preventDefault(),r(!0,x.nativeEvent,"click"))))},onClick(x){const T=p.current;if(c==="mousedown"&&p.current){p.current=void 0;return}Ro(T,!0)&&f||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="click")?r(!1,x.nativeEvent,"click"):r(!0,x.nativeEvent,"click"))},onKeyDown(x){p.current=void 0,!(x.defaultPrevented||!h||Zb(x))&&(x.key===" "&&!Jb(o)&&(x.preventDefault(),v.current=!0),x.key==="Enter"&&r(!(n&&u),x.nativeEvent,"click"))},onKeyUp(x){x.defaultPrevented||!h||Zb(x)||Jb(o)||x.key===" "&&v.current&&(v.current=!1,r(!(n&&u),x.nativeEvent,"click"))}}),[i,o,c,f,h,r,n,m,u]);return Q.useMemo(()=>a?{reference:S}:{},[a,S])}const eN={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},tN={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Qb=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 Rr(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:f="pointerdown",referencePress:h=!1,referencePressEvent:m="pointerdown",ancestorScroll:p=!1,bubbles:v,capture:S}=t,x=Yd(),T=tr(typeof u=="function"?u:()=>!1),b=typeof u=="function"?T:u,A=Q.useRef(!1),E=Q.useRef(!1),{escapeKey:$,outsidePress:C}=Qb(v),{escapeKey:D,outsidePress:j}=Qb(S),F=Q.useRef(!1),U=tr(fe=>{var he;if(!n||!a||!c||fe.key!=="Escape"||F.current)return;const V=(he=o.current.floatingContext)==null?void 0:he.nodeId,B=x?Kd(x.nodesRef.current,V):[];if(!$&&(fe.stopPropagation(),B.length>0)){let Y=!0;if(B.forEach(O=>{var k;if((k=O.context)!=null&&k.open&&!O.context.dataRef.current.__escapeKeyBubbles){Y=!1;return}}),!Y)return}r(!1,o3(fe)?fe.nativeEvent:fe,"escape-key")}),Z=tr(fe=>{var he;const V=()=>{var B;U(fe),(B=ps(fe))==null||B.removeEventListener("keydown",V)};(he=ps(fe))==null||he.addEventListener("keydown",V)}),ee=tr(fe=>{var he;const V=A.current;A.current=!1;const B=E.current;if(E.current=!1,f==="click"&&B||V||typeof b=="function"&&!b(fe))return;const Y=ps(fe),O="["+Hd("inert")+"]",k=mi(i.floating).querySelectorAll(O);let K=Ke(Y)?Y:null;for(;K&&!Qn(K);){const J=er(K);if(Qn(J)||!Ke(J))break;K=J}if(k.length&&Ke(Y)&&!a3(Y)&&!Lo(Y,i.floating)&&Array.from(k).every(J=>!Lo(K,J)))return;if(Rt(Y)&&ue){const J=Qn(Y),oe=on(Y),re=/auto|scroll/,de=J||re.test(oe.overflowX),Ce=J||re.test(oe.overflowY),Ve=de&&Y.clientWidth>0&&Y.scrollWidth>Y.clientWidth,ie=Ce&&Y.clientHeight>0&&Y.scrollHeight>Y.clientHeight,pe=oe.direction==="rtl",De=ie&&(pe?fe.offsetX<=Y.offsetWidth-Y.clientWidth:fe.offsetX>Y.clientWidth),ft=Ve&&fe.offsetY>Y.clientHeight;if(De||ft)return}const ae=(he=o.current.floatingContext)==null?void 0:he.nodeId,le=x&&Kd(x.nodesRef.current,ae).some(J=>{var oe;return Nd(fe,(oe=J.context)==null?void 0:oe.elements.floating)});if(Nd(fe,i.floating)||Nd(fe,i.domReference)||le)return;const z=x?Kd(x.nodesRef.current,ae):[];if(z.length>0){let J=!0;if(z.forEach(oe=>{var re;if((re=oe.context)!=null&&re.open&&!oe.context.dataRef.current.__outsidePressBubbles){J=!1;return}}),!J)return}r(!1,fe,"outside-press")}),se=tr(fe=>{var he;const V=()=>{var B;ee(fe),(B=ps(fe))==null||B.removeEventListener(f,V)};(he=ps(fe))==null||he.addEventListener(f,V)});Q.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=$,o.current.__outsidePressBubbles=C;let fe=-1;function he(k){r(!1,k,"ancestor-scroll")}function V(){window.clearTimeout(fe),F.current=!0}function B(){fe=window.setTimeout(()=>{F.current=!1},rl()?5:0)}const Y=mi(i.floating);c&&(Y.addEventListener("keydown",D?Z:U,D),Y.addEventListener("compositionstart",V),Y.addEventListener("compositionend",B)),b&&Y.addEventListener(f,j?se:ee,j);let O=[];return p&&(Ke(i.domReference)&&(O=Or(i.domReference)),Ke(i.floating)&&(O=O.concat(Or(i.floating))),!Ke(i.reference)&&i.reference&&i.reference.contextElement&&(O=O.concat(Or(i.reference.contextElement)))),O=O.filter(k=>{var K;return k!==((K=Y.defaultView)==null?void 0:K.visualViewport)}),O.forEach(k=>{k.addEventListener("scroll",he,{passive:!0})}),()=>{c&&(Y.removeEventListener("keydown",D?Z:U,D),Y.removeEventListener("compositionstart",V),Y.removeEventListener("compositionend",B)),b&&Y.removeEventListener(f,j?se:ee,j),O.forEach(k=>{k.removeEventListener("scroll",he)}),window.clearTimeout(fe)}},[o,i,c,b,f,n,r,p,a,$,C,U,D,Z,ee,j,se]),Q.useEffect(()=>{A.current=!1},[b,f]);const ge=Q.useMemo(()=>({onKeyDown:U,...h&&{[eN[m]]:fe=>{r(!1,fe.nativeEvent,"reference-press")},...m!=="click"&&{onClick(fe){r(!1,fe.nativeEvent,"reference-press")}}}}),[U,r,h,m]),ue=Q.useMemo(()=>({onKeyDown:U,onMouseDown(){E.current=!0},onMouseUp(){E.current=!0},[tN[f]]:()=>{A.current=!0}}),[U,f]);return Q.useMemo(()=>a?{reference:ge,floating:ue}:{},[a,ge,ue])}function nN(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Kb(),o=Q.useRef({}),[a]=Q.useState(()=>K3()),c=Gd()!=null;if(process.env.NODE_ENV!=="production"){const v=r.reference;v&&!Ke(v)&&q3("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[u,f]=Q.useState(r.reference),h=tr((v,S,x)=>{o.current.openEvent=v?S:void 0,a.emit("openchange",{open:v,event:S,reason:x,nested:c}),n==null||n(v,S,x)}),m=Q.useMemo(()=>({setPositionReference:f}),[]),p=Q.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return Q.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=nN({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=Q.useState(null),[c,u]=Q.useState(null),h=(i==null?void 0:i.domReference)||o,m=Q.useRef(null),p=Yd();Lr(()=>{h&&(m.current=h)},[h]);const v=U3({...e,elements:{...i,...c&&{reference:c}}}),S=Q.useCallback(E=>{const $=Ke(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),contextElement:E}:E;u($),v.refs.setReference($)},[v.refs]),x=Q.useCallback(E=>{(Ke(E)||E===null)&&(m.current=E,a(E)),(Ke(v.refs.reference.current)||v.refs.reference.current===null||E!==null&&!Ke(E))&&v.refs.setReference(E)},[v.refs]),T=Q.useMemo(()=>({...v.refs,setReference:x,setPositionReference:S,domReference:m}),[v.refs,x,S]),b=Q.useMemo(()=>({...v.elements,domReference:h}),[v.elements,h]),A=Q.useMemo(()=>({...v,...r,refs:T,elements:b,nodeId:t}),[v,T,b,t,r]);return Lr(()=>{r.dataRef.current.floatingContext=A;const E=p==null?void 0:p.nodesRef.current.find($=>$.id===t);E&&(E.context=A)}),Q.useMemo(()=>({...v,context:A,refs:T,elements:b}),[v,T,b,A])}function rN(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,f=Q.useRef(!1),h=Q.useRef(-1),m=Q.useRef(!0);Q.useEffect(()=>{if(!c)return;const v=Lt(a.domReference);function S(){!n&&Rt(a.domReference)&&a.domReference===Ab(mi(a.domReference))&&(f.current=!0)}function x(){m.current=!0}return v.addEventListener("blur",S),v.addEventListener("keydown",x,!0),()=>{v.removeEventListener("blur",S),v.removeEventListener("keydown",x,!0)}},[a.domReference,n,c]),Q.useEffect(()=>{if(!c)return;function v(S){let{reason:x}=S;(x==="reference-press"||x==="escape-key")&&(f.current=!0)}return i.on("openchange",v),()=>{i.off("openchange",v)}},[i,c]),Q.useEffect(()=>()=>{an(h)},[]);const p=Q.useMemo(()=>({onPointerDown(v){n3(v.nativeEvent)||(m.current=!1)},onMouseLeave(){f.current=!1},onFocus(v){if(f.current)return;const S=ps(v.nativeEvent);if(u&&Ke(S))try{if(r3()&&i3())throw Error();if(!S.matches(":focus-visible"))return}catch{if(!m.current&&!Ib(S))return}r(!0,v.nativeEvent,"focus")},onBlur(v){f.current=!1;const S=v.relatedTarget,x=v.nativeEvent,T=Ke(S)&&S.hasAttribute(Hd("focus-guard"))&&S.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var b;const A=Ab(a.domReference?a.domReference.ownerDocument:document);!S&&A===a.domReference||Lo((b=o.current.floatingContext)==null?void 0:b.refs.floating.current,A)||Lo(a.domReference,A)||T||r(!1,x,"focus")})}}),[o,a.domReference,r,u]);return Q.useMemo(()=>c?{reference:p}:{},[c,p])}const e2="active",t2="selected";function Xd(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[e2]:a,[t2]:c,...u}=e;o=u}return{...n==="floating"&&{tabIndex:-1,[Q3]:""},...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[f,h]=u;if(!(i&&[e2,t2].includes(f)))if(f.indexOf("on")===0){if(r.has(f)||r.set(f,[]),typeof h=="function"){var m;(m=r.get(f))==null||m.push(h),a[f]=function(){for(var p,v=arguments.length,S=new Array(v),x=0;x<v;x++)S[x]=arguments[x];return(p=r.get(f))==null?void 0:p.map(T=>T(...S)).find(T=>T!==void 0)}}}else a[f]=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=Q.useCallback(c=>Xd(c,e,"reference"),t),o=Q.useCallback(c=>Xd(c,e,"floating"),n),a=Q.useCallback(c=>Xd(c,e,"item"),r);return Q.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const iN=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function sN(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,c=(n=iN.get(a))!=null?n:a,u=Kb(),h=Gd()!=null,m=Q.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=Q.useMemo(()=>{const S={id:i,...c&&{role:c}};return c==="tooltip"||a==="label"?S:{...S,...c==="menu"&&{"aria-labelledby":u}}},[c,i,u,a]),v=Q.useCallback(S=>{let{active:x,selected:T}=S;const b={role:"option",...x&&{id:i+"-option"}};switch(a){case"select":return{...b,"aria-selected":x&&T};case"combobox":return{...b,...x&&{"aria-selected":!0}}}return{}},[i,a]);return Q.useMemo(()=>o?{reference:m,floating:p,item:v}:{},[o,m,p,v])}const n2=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function ws(e,t){return typeof e=="function"?e(t):e}function oN(e,t){const[n,r]=Q.useState(e);return e&&!n&&r(!0),Q.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function aN(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]=Q.useState("unmounted"),f=oN(n,a);return!f&&c==="close"&&u("unmounted"),Lr(()=>{if(r){if(n){u("initial");const h=requestAnimationFrame(()=>{u("open")});return()=>{cancelAnimationFrame(h)}}u("close")}},[n,r]),{isMounted:f,status:c}}function xi(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],f=Q.useMemo(()=>({side:u,placement:c}),[u,c]),h=typeof a=="number",m=(h?a:a.open)||0,p=(h?a:a.close)||0,[v,S]=Q.useState(()=>({...ws(o,f),...ws(n,f)})),{isMounted:x,status:T}=aN(e,{duration:a}),b=yi(n),A=yi(r),E=yi(i),$=yi(o);return Lr(()=>{const C=ws(b.current,f),D=ws(E.current,f),j=ws($.current,f),F=ws(A.current,f)||Object.keys(C).reduce((U,Z)=>(U[Z]="",U),{});if(T==="initial"&&S(U=>({transitionProperty:U.transitionProperty,...j,...C})),T==="open"&&S({transitionProperty:Object.keys(F).map(n2).join(","),transitionDuration:m+"ms",...j,...F}),T==="close"){const U=D||C;S({transitionProperty:Object.keys(U).map(n2).join(","),transitionDuration:p+"ms",...j,...U})}},[p,E,b,A,$,m,T,f]),{isMounted:x,styles:v}}const bi=({open:e,onClose:t,component:n,children:r,placement:i="bottom",className:o="",strategy:a="absolute",styles:c={},offset:u=8,padding:f=8})=>{const[h,m]=_.useState(e);_.useEffect(()=>{m(e)},[e]);const p=()=>{m(!1),t==null||t()},{x:v,y:S,strategy:x,refs:T,context:b}=jr({strategy:a,open:h,onOpenChange:F=>{!F&&!e&&p()},middleware:[Dr(u),kr(),Nr({padding:f})],whileElementsMounted:$r,placement:i}),A=vi(b,{enabled:!1}),E=Rr(b,{enabled:!1}),{getReferenceProps:$,getFloatingProps:C}=Fr([A,E]),{isMounted:D,styles:j}=xi(b,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px) scale(0.95)"}});return y.jsxs("div",{className:"relative",children:[y.jsx("div",{ref:T.setReference,...$(),className:"reference-element",children:r}),D&&y.jsx("div",{ref:T.setFloating,style:{position:x,top:S??0,left:v??0,...j,zIndex:999,...c},...C(),className:"floating-element",children:y.jsx(Ss,{className:o,children:typeof n=="function"?_.createElement(n):n})})]})},lN=({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 y.jsxs("div",{className:"flex rounded-xl p-6 gap-2 border",style:{borderColor:(n==null?void 0:n.hoverLight)||"#dbeafe"},children:[y.jsx(Ge.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"}),y.jsx(Ge.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"})]})},cN=({setHourMenuOpen:e,hourMenuOpen:t,selectedHour:n})=>y.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 uN={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"]},fN={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"]},dN={prefix:"far",iconName:"filter",icon:[512,512,[],"f0b0","M0 73.7C0 50.7 18.7 32 41.7 32l428.6 0c23 0 41.7 18.7 41.7 41.7c0 9.6-3.3 18.9-9.4 26.3L336 304.5l0 143.2c0 17.8-14.5 32.3-32.3 32.3c-7.3 0-14.4-2.5-20.1-7l-92.5-73.4c-9.6-7.6-15.1-19.1-15.1-31.3l0-63.7L9.4 100C3.3 92.6 0 83.3 0 73.7zM55 80L218.6 280.8c3.5 4.3 5.4 9.6 5.4 15.2l0 68.4 64 50.8L288 296c0-5.5 1.9-10.9 5.4-15.2L457 80 55 80z"]},hN={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"]},n2={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"]},mN={prefix:"far",iconName:"bars-filter",icon:[448,512,[],"e0ad","M0 88C0 74.7 10.7 64 24 64l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 112C10.7 112 0 101.3 0 88zM64 248c0-13.3 10.7-24 24-24l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L88 272c-13.3 0-24-10.7-24-24zM288 408c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l80 0c13.3 0 24 10.7 24 24z"]},pN={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"]},r2={prefix:"far",iconName:"x",icon:[384,512,[120],"58","M378.4 71.4c8.5-10.1 7.2-25.3-2.9-33.8s-25.3-7.2-33.8 2.9L192 218.7 42.4 40.6C33.9 30.4 18.7 29.1 8.6 37.6S-2.9 61.3 5.6 71.4L160.7 256 5.6 440.6c-8.5 10.2-7.2 25.3 2.9 33.8s25.3 7.2 33.8-2.9L192 293.3 341.6 471.4c8.5 10.2 23.7 11.5 33.8 2.9s11.5-23.7 2.9-33.8L223.3 256l155-184.6z"]},gN={primary:"#375ABC",primaryLight:"#8FA9F3",primaryDark:"#29438D",hover:"#4570EB",hoverLight:"#ECF1FD",text:"#375ABC",textLight:"#FFFFFF"},yN={primary:"#06B6D4",primaryLight:"#67E8F9",primaryDark:"#0891B2",hover:"#0891B2",hoverLight:"#CFFAFE",text:"#06B6D4",textLight:"#FFFFFF"},vN=e=>({blue:gN,aqua:yN})[e],Zd=({date:e,onDateChange:t,showTimeSelector:n=!0,minDate:r,maxDate:i,futureDates:o=!1,pastDates:a=!0,color:c="blue"})=>{const[u,f]=_.useState(e),[h,m]=_.useState(e),[p,v]=_.useState(e.getHours()%12||12),[S,x]=_.useState(e.getHours()>=12?"PM":"AM"),[T,b]=_.useState(0),{t:A}=Ue(),E=vN(c),[$,C]=_.useState(!1),[D,j]=_.useState(!1);_.useEffect(()=>{f(e),m(e),v(e.getHours()%12||12),x(e.getHours()>=12?"PM":"AM")},[e]);const F=()=>{b(-1),setTimeout(()=>{const B=F_(u);(!r||B>=r)&&f(B)},10)},U=()=>{b(1),setTimeout(()=>{f(lv(u,1))},10)},Z=B=>{if(i&&B>i||r&&B<r)return;const Y=bv(wv(Sv(B,0),0),S==="AM"?p%12:p%12+12);m(Y),t(Y)},ee=B=>{v(B);const Y=bv(wv(Sv(h,0),0),S==="AM"?B%12:B%12+12);m(Y),t(Y),C(!1)},se=B=>{x(B)},ge=()=>{const B=new Date,Y=20,O=5,[k,K]=_.useState(()=>Array.from({length:Y+1},(J,oe)=>{const re=new Date(B.getFullYear(),B.getMonth()-oe,1);return{name:Nn(re,"MMMM",{locale:ns}).replace(/^./,de=>de.toUpperCase()),index:re.getMonth(),year:re.getFullYear(),displayName:`${Nn(re,"MMMM",{locale:ns}).replace(/^./,de=>de.toUpperCase())} ${re.getFullYear()}`}})),ae=_.useRef(null),le=_.useRef(null);_.useEffect(()=>{ae.current&&ae.current.disconnect(),ae.current=new IntersectionObserver(J=>{J[0].isIntersecting&&K(oe=>{const re=oe[oe.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:Nn(pe,"MMMM",{locale:ns}).replace(/^./,De=>De.toUpperCase()),index:pe.getMonth(),year:pe.getFullYear(),displayName:`${Nn(pe,"MMMM",{locale:ns}).replace(/^./,De=>De.toUpperCase())} ${pe.getFullYear()}`}});return[...oe,...Ce]})}),le.current&&ae.current.observe(le.current)},[k]);const z=(J,oe)=>{const re=new Date(u);re.setMonth(J),re.setFullYear(oe),(!r||re>=r)&&f(re),j(!1)};return y.jsx("div",{className:"flex flex-col p-8 max-h-200 overflow-y-auto bg-light gap-4",children:k.map((J,oe)=>{const re=oe===k.length-1;return y.jsx("button",{ref:re?le:null,onClick:()=>z(J.index,J.year),className:"text-start p-6 font-600 transition-all duration-100 rounded-lg",style:{backgroundColor:u.getMonth()===J.index&&u.getFullYear()===J.year?E.hoverLight:"transparent",color:u.getMonth()===J.index&&u.getFullYear()===J.year?E.text:"inherit"},onMouseEnter:de=>{u.getMonth()===J.index&&u.getFullYear()===J.year||(de.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:de=>{u.getMonth()===J.index&&u.getFullYear()===J.year||(de.currentTarget.style.backgroundColor="transparent")},children:J.displayName},`${J.name}-${J.year}-${oe}`)})})},ue=()=>y.jsxs("div",{className:"flex justify-between items-center mb-8",children:[y.jsx(bi,{open:D,onClose:()=>j(!1),component:ge,placement:"bottom",className:"!p-0 overflow-hidden bg-light",strategy:"fixed",children:y.jsxs("button",{onClick:()=>j(!D),className:"transition-colors duration-150 flex gap-6 items-center !text-black",children:[y.jsx("h4",{className:"text-header-4",children:Nn(u,"MMMM yyyy",{locale:ns}).replace(/^./,B=>B.toUpperCase())}),y.jsx(Pe,{icon:n2,className:"w-12 h-12"})]})}),y.jsxs("div",{className:"flex items-center gap-8",children:[y.jsx(dh,{variant:"transparent",color:c,icon:J5,onClick:F}),y.jsx(dh,{variant:"transparent",color:c,icon:O4,onClick:U})]})]}),fe=()=>{const B=Qi(V4(u)),Y=W4(R4(u)),O=F4({start:B,end:Y}),k=new Date;return k.setHours(0,0,0,0),y.jsx("div",{className:"grid grid-cols-7 gap-2",children:O.map((K,ae)=>{const le=fv(K,h),z=R_(K,u),J=j_(K),oe=K<k,re=K>k,de=!z||oe&&!a||re&&!o||r&&K<r||i&&K>i;return y.jsx(Ge.div,{className:`
667
+ */const uN={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"]},fN={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"]},dN={prefix:"far",iconName:"filter",icon:[512,512,[],"f0b0","M0 73.7C0 50.7 18.7 32 41.7 32l428.6 0c23 0 41.7 18.7 41.7 41.7c0 9.6-3.3 18.9-9.4 26.3L336 304.5l0 143.2c0 17.8-14.5 32.3-32.3 32.3c-7.3 0-14.4-2.5-20.1-7l-92.5-73.4c-9.6-7.6-15.1-19.1-15.1-31.3l0-63.7L9.4 100C3.3 92.6 0 83.3 0 73.7zM55 80L218.6 280.8c3.5 4.3 5.4 9.6 5.4 15.2l0 68.4 64 50.8L288 296c0-5.5 1.9-10.9 5.4-15.2L457 80 55 80z"]},hN={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"]},r2={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"]},mN={prefix:"far",iconName:"bars-filter",icon:[448,512,[],"e0ad","M0 88C0 74.7 10.7 64 24 64l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 112C10.7 112 0 101.3 0 88zM64 248c0-13.3 10.7-24 24-24l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L88 272c-13.3 0-24-10.7-24-24zM288 408c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l80 0c13.3 0 24 10.7 24 24z"]},pN={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"]},i2={prefix:"far",iconName:"x",icon:[384,512,[120],"58","M378.4 71.4c8.5-10.1 7.2-25.3-2.9-33.8s-25.3-7.2-33.8 2.9L192 218.7 42.4 40.6C33.9 30.4 18.7 29.1 8.6 37.6S-2.9 61.3 5.6 71.4L160.7 256 5.6 440.6c-8.5 10.2-7.2 25.3 2.9 33.8s25.3 7.2 33.8-2.9L192 293.3 341.6 471.4c8.5 10.2 23.7 11.5 33.8 2.9s11.5-23.7 2.9-33.8L223.3 256l155-184.6z"]},gN={primary:"#375ABC",primaryLight:"#8FA9F3",primaryDark:"#29438D",hover:"#4570EB",hoverLight:"#ECF1FD",text:"#375ABC",textLight:"#FFFFFF"},yN={primary:"#06B6D4",primaryLight:"#67E8F9",primaryDark:"#0891B2",hover:"#0891B2",hoverLight:"#CFFAFE",text:"#06B6D4",textLight:"#FFFFFF"},vN=e=>({blue:gN,aqua:yN})[e],Zd=({date:e,onDateChange:t,showTimeSelector:n=!0,minDate:r,maxDate:i,futureDates:o=!1,pastDates:a=!0,color:c="blue"})=>{const[u,f]=_.useState(e),[h,m]=_.useState(e),[p,v]=_.useState(e.getHours()%12||12),[S,x]=_.useState(e.getHours()>=12?"PM":"AM"),[T,b]=_.useState(0),{t:A}=Ue(),E=vN(c),[$,C]=_.useState(!1),[D,j]=_.useState(!1);_.useEffect(()=>{f(e),m(e),v(e.getHours()%12||12),x(e.getHours()>=12?"PM":"AM")},[e]);const F=()=>{b(-1),setTimeout(()=>{const B=F_(u);(!r||B>=r)&&f(B)},10)},U=()=>{b(1),setTimeout(()=>{f(cv(u,1))},10)},Z=B=>{if(i&&B>i||r&&B<r)return;const Y=wv(Sv(Tv(B,0),0),S==="AM"?p%12:p%12+12);m(Y),t(Y)},ee=B=>{v(B);const Y=wv(Sv(Tv(h,0),0),S==="AM"?B%12:B%12+12);m(Y),t(Y),C(!1)},se=B=>{x(B)},ge=()=>{const B=new Date,Y=20,O=5,[k,K]=_.useState(()=>Array.from({length:Y+1},(J,oe)=>{const re=new Date(B.getFullYear(),B.getMonth()-oe,1);return{name:Nn(re,"MMMM",{locale:ns}).replace(/^./,de=>de.toUpperCase()),index:re.getMonth(),year:re.getFullYear(),displayName:`${Nn(re,"MMMM",{locale:ns}).replace(/^./,de=>de.toUpperCase())} ${re.getFullYear()}`}})),ae=_.useRef(null),le=_.useRef(null);_.useEffect(()=>{ae.current&&ae.current.disconnect(),ae.current=new IntersectionObserver(J=>{J[0].isIntersecting&&K(oe=>{const re=oe[oe.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:Nn(pe,"MMMM",{locale:ns}).replace(/^./,De=>De.toUpperCase()),index:pe.getMonth(),year:pe.getFullYear(),displayName:`${Nn(pe,"MMMM",{locale:ns}).replace(/^./,De=>De.toUpperCase())} ${pe.getFullYear()}`}});return[...oe,...Ce]})}),le.current&&ae.current.observe(le.current)},[k]);const z=(J,oe)=>{const re=new Date(u);re.setMonth(J),re.setFullYear(oe),(!r||re>=r)&&f(re),j(!1)};return y.jsx("div",{className:"flex flex-col p-8 max-h-200 overflow-y-auto bg-light gap-4",children:k.map((J,oe)=>{const re=oe===k.length-1;return y.jsx("button",{ref:re?le:null,onClick:()=>z(J.index,J.year),className:"text-start p-6 font-600 transition-all duration-100 rounded-lg",style:{backgroundColor:u.getMonth()===J.index&&u.getFullYear()===J.year?E.hoverLight:"transparent",color:u.getMonth()===J.index&&u.getFullYear()===J.year?E.text:"inherit"},onMouseEnter:de=>{u.getMonth()===J.index&&u.getFullYear()===J.year||(de.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:de=>{u.getMonth()===J.index&&u.getFullYear()===J.year||(de.currentTarget.style.backgroundColor="transparent")},children:J.displayName},`${J.name}-${J.year}-${oe}`)})})},ue=()=>y.jsxs("div",{className:"flex justify-between items-center mb-8",children:[y.jsx(bi,{open:D,onClose:()=>j(!1),component:ge,placement:"bottom",className:"!p-0 overflow-hidden bg-light",strategy:"fixed",children:y.jsxs("button",{onClick:()=>j(!D),className:"transition-colors duration-150 flex gap-6 items-center !text-black",children:[y.jsx("h4",{className:"text-header-4",children:Nn(u,"MMMM yyyy",{locale:ns}).replace(/^./,B=>B.toUpperCase())}),y.jsx(Pe,{icon:r2,className:"w-12 h-12"})]})}),y.jsxs("div",{className:"flex items-center gap-8",children:[y.jsx(dh,{variant:"transparent",color:c,icon:J5,onClick:F}),y.jsx(dh,{variant:"transparent",color:c,icon:O4,onClick:U})]})]}),fe=()=>{const B=Qi(V4(u)),Y=W4(R4(u)),O=F4({start:B,end:Y}),k=new Date;return k.setHours(0,0,0,0),y.jsx("div",{className:"grid grid-cols-7 gap-2",children:O.map((K,ae)=>{const le=dv(K,h),z=R_(K,u),J=j_(K),oe=K<k,re=K>k,de=!z||oe&&!a||re&&!o||r&&K<r||i&&K>i;return y.jsx(Ge.div,{className:`
668
668
  p-2 text-center w-[40px] h-[40px] rounded-full flex items-center justify-center font-600 select-none
669
669
  ${de?"text-gray-400 pointer-events-none":"cursor-pointer"}
670
670
  `,onClick:()=>!de&&Z(K),initial:!1,animate:{backgroundColor:le?E.primaryLight:"transparent",color:le?E.textLight:J?E.text:de?"#9CA3AF":"#000000"},transition:{duration:.2,ease:"easeInOut",backgroundColor:{duration:.2,ease:"easeOut"}},whileHover:!de&&!le?{backgroundColor:E.hoverLight}:{},whileTap:de?{}:{backgroundColor:le?E.primaryDark:E.hoverLight},children:Nn(K,"d")},ae)})})},he=()=>{const B=Array.from({length:12},(O,k)=>k+1),Y=()=>y.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=>y.jsxs("button",{onClick:()=>ee(O),className:"w-full text-center py-2 transition-all duration-100 rounded-lg",style:{backgroundColor:O===p?E.hoverLight:"transparent",color:O===p?E.text:"inherit",fontWeight:O===p?"500":"normal"},onMouseEnter:k=>{O!==p&&(k.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:k=>{O!==p&&(k.currentTarget.style.backgroundColor="transparent")},children:[String(O).padStart(2,"0"),":00"]},O))});return y.jsxs("div",{className:"flex justify-between items-center mt-4 mb-4",children:[y.jsx("h4",{className:"text-body-m font-medium",children:A("time")}),y.jsxs("div",{className:"flex items-center gap-6",children:[y.jsx(bi,{open:$,onClose:()=>C(!1),component:Y,placement:"bottom",className:"!p-0 overflow-hidden",strategy:"fixed",children:y.jsx(cN,{setHourMenuOpen:C,hourMenuOpen:$,selectedHour:p})}),y.jsx(lN,{selectedPeriod:S,handlePeriodChange:se,colorVariants:E})]})]})},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 y.jsxs("div",{className:"rounded-3xl max-w-[300px] mx-auto bg-white p-24 relative overflow-hidden",children:[ue(),y.jsx(vn,{initial:!1,mode:"popLayout",children:y.jsx(Ge.div,{variants:V,initial:T===1?"slideNextEnter":T===-1?"slidePrevEnter":!1,animate:"center",exit:T===1?"slideNextExit":"slidePrevExit",className:"w-full",children:fe()},Nn(u,"yyyy-MM"))}),n&&he()]})},fl=({label:e,onChange:t,value:n,name:r,error:i,placeholder:o,className:a="",disabled:c=!1,disabledInput:u=!1,size:f="base",leftSide:h,rightSide:m,...p})=>{const{t:v}=Ue(),x={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"}}[f];return y.jsxs("label",{className:`flex flex-col group select-none ${x.gap} ${c&&"cursor-not-allowed"} ${a}`,htmlFor:r,children:[y.jsx("h6",{className:`text-gray-600 font-600 group ${i&&"!text-red-500"} ${x.label} ${c&&"text-gray-300"}`,children:e}),y.jsxs("label",{htmlFor:r,className:`
@@ -683,10 +683,10 @@ 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:[h&&h,y.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 ${x.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]}),y.jsx("h4",{className:`font-500 text-red-500 leading-none ${x.error}`,children:i&&v(i||"",{x:v(r)})})]})},i2=e=>Nn(e,"dd/MM/yyyy"),s2=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},xN=({control:e,name:t,showTimeSelector:n=!1,label:r,translateKey:i="",placeholder:o,futureDates:a=!1,pastDates:c=!0,size:u})=>{const{field:{value:f,onChange:h,onBlur:m},fieldState:{error:p}}=hr.useController({name:t,control:e}),{t:v}=Ue(),S=v(t),x=v(i),[T,b]=_.useState(!1),[A,E]=_.useState("");_.useEffect(()=>{f instanceof Date&&!isNaN(f.getTime())?E(i2(f)):E("")},[f]);const $=s2(A),C=j=>{const F=j.replace(/\D/g,"").slice(0,8),U=[];F.length>0&&U.push(F.slice(0,2)),F.length>2&&U.push(F.slice(2,4)),F.length>4&&U.push(F.slice(4,8));const Z=U.join("/");if(E(Z),b(!1),Z.length===10){const ee=s2(Z);h(ee)}},D=()=>{h(null),E("")};return y.jsx(bi,{open:T,strategy:"fixed",padding:0,offset:0,onClose:()=>b(!1),className:"p-0!",component:y.jsx(Zd,{date:$||new Date,onDateChange:j=>{E(i2(j)),h(j),b(!1)},showTimeSelector:n,futureDates:a,pastDates:c}),children:y.jsx(fl,{size:u,onBlur:m,name:x||S,label:r,value:A,onFocus:j=>{j.preventDefault(),b(!0)},disabledInput:!0,onChange:j=>C(j),placeholder:o,error:p==null?void 0:p.message,rightSide:!!$&&y.jsx(Pe,{icon:sv,className:"text-gray-500 cursor-pointer",onClick:D})})})},o2=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o,icon:a=Q5,showCloseButton:c=!0})=>{const u={hidden:{opacity:0},visible:{opacity:1}},f={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 y.jsx(vn,{children:n&&y.jsx(y.Fragment,{children:y.jsx(Ge.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:y.jsx(Ge.div,{className:"w-full max-w-sm mx-16 z-50",variants:f,initial:"hidden",animate:"visible",exit:"exit",onClick:v=>v.stopPropagation(),children:y.jsxs(Ss,{className:"flex flex-col gap-20 p-32",children:[y.jsxs("div",{className:"flex flex-col",children:[y.jsx("div",{className:"flex justify-end",children:c&&y.jsx(Pe,{icon:nu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})}),y.jsx("div",{className:"flex justify-center",children:y.jsx("div",{className:"bg-blue-100 rounded-full w-76 h-76 flex justify-center items-center",children:y.jsx(Pe,{icon:a,className:"w-32 h-36 min-h-36 min-w-36 text-blue-500",onClick:r})})})]}),y.jsxs("div",{className:"flex flex-col gap-20 items-center justify-center",children:[y.jsxs("div",{className:"text-center w-full",children:[y.jsx("h3",{className:"text-black font-700 text-3xl w-full",children:e}),y.jsx("p",{className:"text-gray-500 text-xl font-600 w-full",children:t})]}),y.jsxs("div",{className:"flex justify-center w-full gap-16",children:[!!o&&y.jsx(wi,{size:"lg",onClick:m,variant:"transparent",children:p("cancel")}),!!i&&y.jsx(wi,{size:"lg",onClick:h,children:p("confirm")})]})]})]})})})})})},a2={duration:.3,ease:[.32,.72,0,1]},bN={initial:{opacity:0,height:0,y:-8},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-8}},wN=({isOpen:e})=>y.jsx(Ge.div,{animate:{rotate:e?180:0},transition:{duration:.5,ease:[.16,1,.3,1]},children:y.jsx(Pe,{icon:X5,className:"text-gray-500 w-12 h-12 max-w-12 max-h-12"})}),SN=({label:e,children:t,subtitle:n,open:r,onClick:i,className:o="",labelClassName:a=""})=>{const{t:c}=Ue(),[u,f]=_.useState(!1),h=r!==void 0?r:u,m=i||(()=>f(!u));return y.jsxs(Ge.div,{className:"relative w-full bg-white border border-blue-100 rounded-2xl overflow-hidden",children:[y.jsxs("button",{onClick:m,className:`py-24 px-32 text-black font-semibold border-b
686
+ `,children:[h&&h,y.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 ${x.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]}),y.jsx("h4",{className:`font-500 text-red-500 leading-none ${x.error}`,children:i&&v(i||"",{x:v(r)})})]})},s2=e=>Nn(e,"dd/MM/yyyy"),o2=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},xN=({control:e,name:t,showTimeSelector:n=!1,label:r,translateKey:i="",placeholder:o,futureDates:a=!1,pastDates:c=!0,size:u})=>{const{field:{value:f,onChange:h,onBlur:m},fieldState:{error:p}}=hr.useController({name:t,control:e}),{t:v}=Ue(),S=v(t),x=v(i),[T,b]=_.useState(!1),[A,E]=_.useState("");_.useEffect(()=>{f instanceof Date&&!isNaN(f.getTime())?E(s2(f)):E("")},[f]);const $=o2(A),C=j=>{const F=j.replace(/\D/g,"").slice(0,8),U=[];F.length>0&&U.push(F.slice(0,2)),F.length>2&&U.push(F.slice(2,4)),F.length>4&&U.push(F.slice(4,8));const Z=U.join("/");if(E(Z),b(!1),Z.length===10){const ee=o2(Z);h(ee)}},D=()=>{h(null),E("")};return y.jsx(bi,{open:T,strategy:"fixed",padding:0,offset:0,onClose:()=>b(!1),className:"p-0!",component:y.jsx(Zd,{date:$||new Date,onDateChange:j=>{E(s2(j)),h(j),b(!1)},showTimeSelector:n,futureDates:a,pastDates:c}),children:y.jsx(fl,{size:u,onBlur:m,name:x||S,label:r,value:A,onFocus:j=>{j.preventDefault(),b(!0)},disabledInput:!0,onChange:j=>C(j),placeholder:o,error:p==null?void 0:p.message,rightSide:!!$&&y.jsx(Pe,{icon:ov,className:"text-gray-500 cursor-pointer",onClick:D})})})},a2=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o,icon:a=Q5,showCloseButton:c=!0})=>{const u={hidden:{opacity:0},visible:{opacity:1}},f={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 y.jsx(vn,{children:n&&y.jsx(y.Fragment,{children:y.jsx(Ge.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:y.jsx(Ge.div,{className:"w-full max-w-sm mx-16 z-50",variants:f,initial:"hidden",animate:"visible",exit:"exit",onClick:v=>v.stopPropagation(),children:y.jsxs(Ss,{className:"flex flex-col gap-20 p-32",children:[y.jsxs("div",{className:"flex flex-col",children:[y.jsx("div",{className:"flex justify-end",children:c&&y.jsx(Pe,{icon:nu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})}),y.jsx("div",{className:"flex justify-center",children:y.jsx("div",{className:"bg-blue-100 rounded-full w-76 h-76 flex justify-center items-center",children:y.jsx(Pe,{icon:a,className:"w-32 h-36 min-h-36 min-w-36 text-blue-500",onClick:r})})})]}),y.jsxs("div",{className:"flex flex-col gap-20 items-center justify-center",children:[y.jsxs("div",{className:"text-center w-full",children:[y.jsx("h3",{className:"text-black font-700 text-3xl w-full",children:e}),y.jsx("p",{className:"text-gray-500 text-xl font-600 w-full",children:t})]}),y.jsxs("div",{className:"flex justify-center w-full gap-16",children:[!!o&&y.jsx(wi,{size:"lg",onClick:m,variant:"transparent",children:p("cancel")}),!!i&&y.jsx(wi,{size:"lg",onClick:h,children:p("confirm")})]})]})]})})})})})},l2={duration:.3,ease:[.32,.72,0,1]},bN={initial:{opacity:0,height:0,y:-8},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-8}},wN=({isOpen:e})=>y.jsx(Ge.div,{animate:{rotate:e?180:0},transition:{duration:.5,ease:[.16,1,.3,1]},children:y.jsx(Pe,{icon:X5,className:"text-gray-500 w-12 h-12 max-w-12 max-h-12"})}),SN=({label:e,children:t,subtitle:n,open:r,onClick:i,className:o="",labelClassName:a=""})=>{const{t:c}=Ue(),[u,f]=_.useState(!1),h=r!==void 0?r:u,m=i||(()=>f(!u));return y.jsxs(Ge.div,{className:"relative w-full bg-white border border-blue-100 rounded-2xl overflow-hidden",children:[y.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:[y.jsx("span",{className:`text-left text-lg md:text-xl font-700 ${a}`,children:c(e)}),y.jsxs("div",{className:"flex gap-10 items-center",children:[y.jsx("span",{className:"text-gray-500 font-normal text-base md:text-lg",children:n}),y.jsx(wN,{isOpen:h})]})]}),y.jsx(vn,{mode:"wait",children:h&&y.jsx(Ge.div,{...bN,transition:{height:{duration:a2.duration,ease:a2.ease},opacity:{duration:.15,ease:"easeOut"}},className:`w-full bg-white overflow-hidden ${o}`,children:t})})]})},Ht={LOADING:"loading",COMPLETE:"complete",ERROR:"error"},TN=({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,f]=_.useState(0),[h,m]=_.useState(10);_.useEffect(()=>{const x=o();c(x);let T;if(x===Ht.LOADING&&u<100){const E=100/(r/100);T=setInterval(()=>{f($=>{const C=Math.min($+E,99),D=Math.max(0,Math.round((100-C)/10));return m(D),C})},100)}else x===Ht.COMPLETE&&u<100&&f(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""}},v=()=>{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 x=e.file_size/1024;return x<1024?`${x.toFixed(1)} KB`:`${(x/1024).toFixed(1)} MB`};return y.jsxs("div",{className:"border border-gray-100 bg-white rounded-lg p-16 shadow-sm w-full",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{className:"flex items-center gap-4",children:[y.jsx(Pe,{icon:KC,className:"w-12 h-12 min-w-12 min-h-12 text-gray-400"}),y.jsx("span",{className:"text-gray-500 text-sm",children:e.user_file_name})]}),a===Ht.COMPLETE&&y.jsx("button",{onClick:t,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:y.jsx(Pe,{icon:qC})}),a===Ht.ERROR&&y.jsx("button",{onClick:n,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:y.jsx(Pe,{icon:YC})})]}),y.jsx("div",{className:"flex items-center mt-2",children:e!=null&&e.analyzing?y.jsxs("div",{className:"flex items-center gap-6",children:[y.jsx(Ge.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"}}),y.jsxs("span",{className:"text-sm text-gray-500",children:[i("analyzing_file_with_ai"),"..."]})]}):y.jsxs("div",{className:"text-sm",children:[y.jsxs("span",{className:"text-gray-500",children:[S()," |"]})," ",y.jsx("span",{className:v(),children:p()})]})}),a===Ht.LOADING&&y.jsx("div",{className:"mt-2 bg-gray-200 rounded-full h-2",children:y.jsx("div",{className:"h-2 rounded-full transition-all duration-100 ease-linear bg-blue-500",style:{width:`${u}%`}})})]})},l2=({index:e,label:t,active:n,completed:r})=>y.jsxs("div",{className:"flex items-center gap-8",children:[y.jsx("div",{className:`
689
+ flex items-center gap-2 group w-full justify-between`,children:[y.jsx("span",{className:`text-left text-lg md:text-xl font-700 ${a}`,children:c(e)}),y.jsxs("div",{className:"flex gap-10 items-center",children:[y.jsx("span",{className:"text-gray-500 font-normal text-base md:text-lg",children:n}),y.jsx(wN,{isOpen:h})]})]}),y.jsx(vn,{mode:"wait",children:h&&y.jsx(Ge.div,{...bN,transition:{height:{duration:l2.duration,ease:l2.ease},opacity:{duration:.15,ease:"easeOut"}},className:`w-full bg-white overflow-hidden ${o}`,children:t})})]})},Ht={LOADING:"loading",COMPLETE:"complete",ERROR:"error"},TN=({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,f]=_.useState(0),[h,m]=_.useState(10);_.useEffect(()=>{const x=o();c(x);let T;if(x===Ht.LOADING&&u<100){const E=100/(r/100);T=setInterval(()=>{f($=>{const C=Math.min($+E,99),D=Math.max(0,Math.round((100-C)/10));return m(D),C})},100)}else x===Ht.COMPLETE&&u<100&&f(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""}},v=()=>{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 x=e.file_size/1024;return x<1024?`${x.toFixed(1)} KB`:`${(x/1024).toFixed(1)} MB`};return y.jsxs("div",{className:"border border-gray-100 bg-white rounded-lg p-16 shadow-sm w-full",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{className:"flex items-center gap-4",children:[y.jsx(Pe,{icon:KC,className:"w-12 h-12 min-w-12 min-h-12 text-gray-400"}),y.jsx("span",{className:"text-gray-500 text-sm",children:e.user_file_name})]}),a===Ht.COMPLETE&&y.jsx("button",{onClick:t,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:y.jsx(Pe,{icon:qC})}),a===Ht.ERROR&&y.jsx("button",{onClick:n,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:y.jsx(Pe,{icon:YC})})]}),y.jsx("div",{className:"flex items-center mt-2",children:e!=null&&e.analyzing?y.jsxs("div",{className:"flex items-center gap-6",children:[y.jsx(Ge.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"}}),y.jsxs("span",{className:"text-sm text-gray-500",children:[i("analyzing_file_with_ai"),"..."]})]}):y.jsxs("div",{className:"text-sm",children:[y.jsxs("span",{className:"text-gray-500",children:[S()," |"]})," ",y.jsx("span",{className:v(),children:p()})]})}),a===Ht.LOADING&&y.jsx("div",{className:"mt-2 bg-gray-200 rounded-full h-2",children:y.jsx("div",{className:"h-2 rounded-full transition-all duration-100 ease-linear bg-blue-500",style:{width:`${u}%`}})})]})},c2=({index:e,label:t,active:n,completed:r})=>y.jsxs("div",{className:"flex items-center gap-8",children:[y.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"}
@@ -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})]}),EN=({currentStep:e,steps:t})=>y.jsx("div",{className:"flex flex-col gap-16",children:t.map((n,r)=>y.jsx(l2,{label:n,index:r+1,active:r+1===e,completed:r+1<e},r))}),CN=({label:e,value:t})=>y.jsxs("div",{className:"col-span-2 flex flex-col gap-6",children:[y.jsx("h4",{className:"text-body-m font-600",children:e}),y.jsx("div",{className:"text-body-s text-gray-600",children:typeof t=="string"||_.isValidElement(t)?t:null})]}),c2=({title:e,children:t,className:n=""})=>y.jsxs("div",{className:`w-full flex flex-col gap-16 ${n}`,children:[y.jsx("h4",{className:"text-body-m font-600",children:e}),y.jsx("div",{className:"w-full grid grid-cols-4 gap-8 bg-white p-16 rounded-2xl border-1 border-blue-100",children:t})]});c2.Entry=CN;const Ss=({children:e,className:t,element:n="div"})=>{const r=n;return y.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 y.jsx(vn,{children:e&&y.jsx(y.Fragment,{children:y.jsx(Ge.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:y.jsx(Ge.div,{className:"w-full max-w-4xl mx-16 z-50",variants:r,initial:"hidden",animate:"visible",exit:"exit",onClick:i=>i.stopPropagation(),children:y.jsx(Ss,{className:"flex flex-col gap-16 md:gap-24 !p-0",children:y.jsx(y.Fragment,{})})})})})})},AN={completedBgColor:"#dae2fb",focusBorderColor:"#4570EB",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-blue-500",lineActiveColor:"bg-blue-500",lineGradientFrom:"from-blue-500"},MN={completedBgColor:"#C7F9F5",focusBorderColor:"#1DA696",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-aqua-500",lineActiveColor:"bg-aqua-500",lineGradientFrom:"from-aqua-500"},Jd=e=>{switch(e){case"aqua":return MN;case"blue":default:return AN}},ON=({status:e,label:t,shouldAnimate:n,color:r,index:i})=>{const{t:o}=Ue(),a=e==="done",c=e==="focus",{focusBorderColor:u,pendingBorderColor:f,iconActiveColor:h}=Jd(r);return y.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[y.jsx(Ge.div,{initial:n?!1:{backgroundColor:a?"#E0F1ED":c?u:"white",borderWidth:c?"1px":"0px",borderColor:c?u:f},animate:{backgroundColor:a?"#E0F1ED":c?u:"white",borderWidth:c||!a?"1px":"0px",borderColor:c?u:f},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:y.jsx(Ge.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:y.jsx(vn,{mode:"wait",children:a||c?y.jsx(Ge.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?y.jsx(Pe,{icon:l0,className:`w-14 h-14 min-w-14 min-h-14 ${h}`}):y.jsx("div",{className:"text-white leading-none font-500 text-body-s flex items-center justify-center mb-1",children:i+1})},"check"):y.jsx(Ge.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:y.jsx(Pe,{icon:a0,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),y.jsx("span",{className:`text-body-s transition-all duration-300 text-center w-full font-500
701
+ `,children:t})]}),EN=({currentStep:e,steps:t})=>y.jsx("div",{className:"flex flex-col gap-16",children:t.map((n,r)=>y.jsx(c2,{label:n,index:r+1,active:r+1===e,completed:r+1<e},r))}),CN=({label:e,value:t})=>y.jsxs("div",{className:"col-span-2 flex flex-col gap-6",children:[y.jsx("h4",{className:"text-body-m font-600",children:e}),y.jsx("div",{className:"text-body-s text-gray-600",children:typeof t=="string"||_.isValidElement(t)?t:null})]}),u2=({title:e,children:t,className:n=""})=>y.jsxs("div",{className:`w-full flex flex-col gap-16 ${n}`,children:[y.jsx("h4",{className:"text-body-m font-600",children:e}),y.jsx("div",{className:"w-full grid grid-cols-4 gap-8 bg-white p-16 rounded-2xl border-1 border-blue-100",children:t})]});u2.Entry=CN;const Ss=({children:e,className:t,element:n="div"})=>{const r=n;return y.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 y.jsx(vn,{children:e&&y.jsx(y.Fragment,{children:y.jsx(Ge.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:y.jsx(Ge.div,{className:"w-full max-w-4xl mx-16 z-50",variants:r,initial:"hidden",animate:"visible",exit:"exit",onClick:i=>i.stopPropagation(),children:y.jsx(Ss,{className:"flex flex-col gap-16 md:gap-24 !p-0",children:y.jsx(y.Fragment,{})})})})})})},AN={completedBgColor:"#dae2fb",focusBorderColor:"#4570EB",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-blue-500",lineActiveColor:"bg-blue-500",lineGradientFrom:"from-blue-500"},MN={completedBgColor:"#C7F9F5",focusBorderColor:"#1DA696",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-aqua-500",lineActiveColor:"bg-aqua-500",lineGradientFrom:"from-aqua-500"},Jd=e=>{switch(e){case"aqua":return MN;case"blue":default:return AN}},ON=({status:e,label:t,shouldAnimate:n,color:r,index:i})=>{const{t:o}=Ue(),a=e==="done",c=e==="focus",{focusBorderColor:u,pendingBorderColor:f,iconActiveColor:h}=Jd(r);return y.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[y.jsx(Ge.div,{initial:n?!1:{backgroundColor:a?"#E0F1ED":c?u:"white",borderWidth:c?"1px":"0px",borderColor:c?u:f},animate:{backgroundColor:a?"#E0F1ED":c?u:"white",borderWidth:c||!a?"1px":"0px",borderColor:c?u:f},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:y.jsx(Ge.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:y.jsx(vn,{mode:"wait",children:a||c?y.jsx(Ge.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?y.jsx(Pe,{icon:c0,className:`w-14 h-14 min-w-14 min-h-14 ${h}`}):y.jsx("div",{className:"text-white leading-none font-500 text-body-s flex items-center justify-center mb-1",children:i+1})},"check"):y.jsx(Ge.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:y.jsx(Pe,{icon:l0,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),y.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)})]})},_N=({status:e,label:t,shouldAnimate:n,color:r})=>{const{t:i}=Ue(),o=e==="done",a=e==="focus",{completedBgColor:c,focusBorderColor:u,pendingBorderColor:f,iconActiveColor:h}=Jd(r);return y.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[y.jsx(Ge.div,{initial:n?!1:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:f},animate:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:f},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:y.jsx(Ge.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:y.jsx(vn,{mode:"wait",children:o||a?y.jsx(Ge.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:y.jsx(Pe,{icon:l0,className:`w-14 h-14 min-w-14 min-h-14 ${h}`})},"check"):y.jsx(Ge.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:y.jsx(Pe,{icon:a0,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),y.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)})]})},IN=({steps:e,direction:t="horizontal",color:n})=>{const{defaultColorScheme:r}=Ue(),i=n||r,{lineActiveColor:o,lineGradientFrom:a}=Jd(i),[c,u]=_.useState([]),[f,h]=_.useState(null),[m,p]=_.useState(!1),v=e.findIndex(b=>!b.completed),S=b=>v===b;_.useEffect(()=>{const b=e.map((A,E)=>S(E)?"focus":A.completed?"done":"pending");if(!m)u(b),p(!0),h(null);else{const A=b.findIndex((E,$)=>E!==c[$]);h(A!==-1?A:null),u(b)}},[e,v]);const x=()=>y.jsx("div",{className:"flex flex-col gap-16 relative",children:e.map((b,A)=>{var D;const E=S(A-1)?"focus":(D=e[A-1])!=null&&D.completed?"done":"pending",$=S(A)?"focus":b.completed?"done":"pending",C=m&&f===A;return y.jsxs("div",{className:"flex items-center gap-10 relative",children:[A!==0&&y.jsx("div",{className:`absolute left-[13px] bottom-[28px] w-[1.5px] h-16 ${$==="done"||$==="focus"?o:E==="done"||E==="focus"?`bg-gradient-to-b ${a} to-[rgb(243,244,246)]`:"bg-[rgb(243,244,246)]"}`}),y.jsx(ON,{index:A,status:$,shouldAnimate:C,label:b.label,color:i})]},A)})}),T=()=>y.jsx("div",{className:"w-full flex items-center gap-12",children:e.map((b,A)=>{const E=S(A)?"focus":b.completed?"done":"pending",$=m&&f===A;return y.jsx("div",{className:"flex flex-col items-center justify-evenly w-full gap-2 relative col-span-1",children:y.jsx(_N,{index:A,status:E,shouldAnimate:$,label:b.label,color:i})},A)})});return t==="horizontal"?y.jsx(T,{}):y.jsx(x,{})},$N=({variant:e="underline",color:t="blue",tabs:n,activeTab:r,onTabChange:i,className:o="",direction:a="row",showLabel:c=!0,labelClassName:u=""})=>{const f=_.useRef([]),[h,m]=_.useState({left:0,width:0}),p=_.useRef(null),{defaultColorScheme:v}=Ue(),S=t||v,x=()=>{const T=n.findIndex(b=>b.id===r);if(T>=0&&f.current[T]){const b=f.current[T];if(b&&p.current){const A=p.current.getBoundingClientRect(),E=b.getBoundingClientRect();m({left:E.left-A.left,width:E.width})}}};return _.useEffect(()=>{x()},[r,n]),_.useEffect(()=>{const T=()=>{x()};return window.addEventListener("resize",T),()=>{window.removeEventListener("resize",T)}},[r,n]),y.jsxs("div",{ref:p,className:`flex items-center relative ${o}`,children:[n.map((T,b)=>y.jsx(pf.div,{ref:A=>{f.current[b]=A},className:"w-full",children:y.jsx(j2,{href:T.href,label:c?T.label:"",labelClassName:u,icon:T.icon,direction:a,isSelected:r===T.id,onClick:()=>i(T.id),variant:e})},T.id)),y.jsx(pf.div,{className:`absolute bottom-0 h-2 bg-${S}-500`,initial:!1,animate:{left:h.left,width:h.width},transition:{type:"spring",stiffness:300,damping:30}})]})},Qd=e=>Nn(e,"dd/MM/yyyy"),DN=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 eh({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:f,maxDate:h,customDisplay:m,size:p}){const[v,S]=_.useState(!1),[x,T]=_.useState(e?Qd(e):"");_.useEffect(()=>{T(e?Qd(e):"")},[e]);const b=E=>{const $=E.replace(/\D/g,"").slice(0,8),C=[];$.length>0&&C.push($.slice(0,2)),$.length>2&&C.push($.slice(2,4)),$.length>4&&C.push($.slice(4,8));const D=C.join("/");if(T(D),S(!1),D.length===10){const j=DN(D);j&&t(j)}},A=()=>{t(null),T("")};return y.jsx(bi,{open:v,strategy:"fixed",padding:0,offset:0,onClose:()=>S(!1),className:"p-0!",component:y.jsx(Zd,{date:e||new Date,onDateChange:E=>{t(E),T(Qd(E)),S(!1)},showTimeSelector:a,futureDates:c,pastDates:u,minDate:f,maxDate:h}),children:m?y.jsx("div",{onClick:E=>{E.preventDefault(),S(!0)},children:m}):y.jsx(fl,{size:p,name:o,label:n,value:x,onClick:E=>{E.preventDefault(),S(!0)},onChange:E=>b(E),placeholder:r,error:i,rightSide:e&&y.jsx(Pe,{icon:sv,className:"text-gray-500 cursor-pointer",onClick:A})})})}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 Vn(){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"},NN="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",kN={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"},LN=(e="filled",t="blue",n="base")=>{const r=Vn(NN,kN[n]),i={blue:f2[e],aqua:d2[e],red:h2[e],gray:m2[e]}[t];return Vn(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",jN={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]"},FN={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},VN=(e="filled",t="blue",n="base",r="none")=>{const i=Vn(RN,jN[n],FN[r]),o={blue:f2[e],aqua:d2[e],red:h2[e],gray:m2[e]}[t];return Vn(i,o)},BN={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")=>BN[e],wi=({icon:e,rightIcon:t,color:n,variant:r="filled",size:i="base",children:o,className:a,...c})=>{const{defaultColorScheme:u}=Ue(),f=n||u;return y.jsxs("button",{type:"button",className:LN(r,f,i)+" "+a,...c,children:[e&&y.jsx(Pe,{icon:e,className:jo(i)}),o,t&&y.jsx(Pe,{icon:t,className:jo(i)})]})},WN=({name:e,error:t,value:n="",onChange:r,onOptionClick:i,onKeyDown:o,onSelect:a,onButtonClick:c,options:u,placeholder:f,label:h,disabled:m=!1,className:p="",buttonContent:v="Enviar",showOptionsOnClick:S=!0,showChevron:x=!1,showButton:T=!1,setValueOnOptionSelect:b=!0,leftSide:A,rightSide:E})=>{const{t:$}=Ue(),[C,D]=_.useState(!1),j=_.useRef(null),{x:F,y:U,strategy:Z,refs:ee,context:se}=jr({open:C,onOpenChange:D,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:z,elements:J}){Object.assign(J.floating.style,{maxHeight:`${Math.min(z-10,300)}px`})},padding:8})],placement:"bottom-start",whileElementsMounted:$r}),ge=vi(se,{enabled:x}),ue=Rr(se),{getReferenceProps:fe,getFloatingProps:he}=Fr([ge,ue]),{isMounted:V,styles:B}=xi(se,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),Y=(()=>{const z=Array.isArray(u)?u:[];if(!n||!n.trim())return z;const J=n.toLowerCase();return z.filter(oe=>oe.label.toLowerCase().includes(J))})(),O=z=>{b&&(r==null||r(z.label)),D(!1),i==null||i(z),a==null||a(z.value)},k=z=>{r==null||r(z)},K=z=>{z.stopPropagation(),x&&!m&&(D(!C),!C&&j.current&&setTimeout(()=>{var J;return(J=j.current)==null?void 0:J.focus()},100))},le={...x?fe():{},onKeyDown:void 0,onClick:void 0};return y.jsxs("div",{className:`flex flex-col gap-8 select-none ${m&&"cursor-not-allowed"} ${p}`,children:[y.jsx("h6",{className:`text-gray-600 font-600 group ${t&&"!text-red-500"} text-label ${m&&"text-gray-300"}`,children:h}),y.jsxs("div",{className:"flex gap-24",children:[y.jsxs("div",{ref:ee.setReference,className:`
703
+ `,style:{color:c?u:a?"#000":"#8F9095"},children:o(t)})]})},_N=({status:e,label:t,shouldAnimate:n,color:r})=>{const{t:i}=Ue(),o=e==="done",a=e==="focus",{completedBgColor:c,focusBorderColor:u,pendingBorderColor:f,iconActiveColor:h}=Jd(r);return y.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[y.jsx(Ge.div,{initial:n?!1:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:f},animate:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:f},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:y.jsx(Ge.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:y.jsx(vn,{mode:"wait",children:o||a?y.jsx(Ge.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:y.jsx(Pe,{icon:c0,className:`w-14 h-14 min-w-14 min-h-14 ${h}`})},"check"):y.jsx(Ge.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:y.jsx(Pe,{icon:l0,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),y.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)})]})},IN=({steps:e,direction:t="horizontal",color:n})=>{const{defaultColorScheme:r}=Ue(),i=n||r,{lineActiveColor:o,lineGradientFrom:a}=Jd(i),[c,u]=_.useState([]),[f,h]=_.useState(null),[m,p]=_.useState(!1),v=e.findIndex(b=>!b.completed),S=b=>v===b;_.useEffect(()=>{const b=e.map((A,E)=>S(E)?"focus":A.completed?"done":"pending");if(!m)u(b),p(!0),h(null);else{const A=b.findIndex((E,$)=>E!==c[$]);h(A!==-1?A:null),u(b)}},[e,v]);const x=()=>y.jsx("div",{className:"flex flex-col gap-16 relative",children:e.map((b,A)=>{var D;const E=S(A-1)?"focus":(D=e[A-1])!=null&&D.completed?"done":"pending",$=S(A)?"focus":b.completed?"done":"pending",C=m&&f===A;return y.jsxs("div",{className:"flex items-center gap-10 relative",children:[A!==0&&y.jsx("div",{className:`absolute left-[13px] bottom-[28px] w-[1.5px] h-16 ${$==="done"||$==="focus"?o:E==="done"||E==="focus"?`bg-gradient-to-b ${a} to-[rgb(243,244,246)]`:"bg-[rgb(243,244,246)]"}`}),y.jsx(ON,{index:A,status:$,shouldAnimate:C,label:b.label,color:i})]},A)})}),T=()=>y.jsx("div",{className:"w-full flex items-center gap-12",children:e.map((b,A)=>{const E=S(A)?"focus":b.completed?"done":"pending",$=m&&f===A;return y.jsx("div",{className:"flex flex-col items-center justify-evenly w-full gap-2 relative col-span-1",children:y.jsx(_N,{index:A,status:E,shouldAnimate:$,label:b.label,color:i})},A)})});return t==="horizontal"?y.jsx(T,{}):y.jsx(x,{})},$N=({variant:e="underline",color:t="blue",tabs:n,activeTab:r,onTabChange:i,className:o="",direction:a="row",showLabel:c=!0,labelClassName:u=""})=>{const f=_.useRef([]),[h,m]=_.useState({left:0,width:0}),p=_.useRef(null),{defaultColorScheme:v}=Ue(),S=t||v,x=()=>{const T=n.findIndex(b=>b.id===r);if(T>=0&&f.current[T]){const b=f.current[T];if(b&&p.current){const A=p.current.getBoundingClientRect(),E=b.getBoundingClientRect();m({left:E.left-A.left,width:E.width})}}};return _.useEffect(()=>{x()},[r,n]),_.useEffect(()=>{const T=()=>{x()};return window.addEventListener("resize",T),()=>{window.removeEventListener("resize",T)}},[r,n]),y.jsxs("div",{ref:p,className:`flex items-center relative ${o}`,children:[n.map((T,b)=>y.jsx(pf.div,{ref:A=>{f.current[b]=A},className:"w-full",children:y.jsx(F2,{href:T.href,label:c?T.label:"",labelClassName:u,icon:T.icon,direction:a,isSelected:r===T.id,onClick:()=>i(T.id),variant:e})},T.id)),y.jsx(pf.div,{className:`absolute bottom-0 h-2 bg-${S}-500`,initial:!1,animate:{left:h.left,width:h.width},transition:{type:"spring",stiffness:300,damping:30}})]})},Qd=e=>Nn(e,"dd/MM/yyyy"),DN=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 eh({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:f,maxDate:h,customDisplay:m,size:p}){const[v,S]=_.useState(!1),[x,T]=_.useState(e?Qd(e):"");_.useEffect(()=>{T(e?Qd(e):"")},[e]);const b=E=>{const $=E.replace(/\D/g,"").slice(0,8),C=[];$.length>0&&C.push($.slice(0,2)),$.length>2&&C.push($.slice(2,4)),$.length>4&&C.push($.slice(4,8));const D=C.join("/");if(T(D),S(!1),D.length===10){const j=DN(D);j&&t(j)}},A=()=>{t(null),T("")};return y.jsx(bi,{open:v,strategy:"fixed",padding:0,offset:0,onClose:()=>S(!1),className:"p-0!",component:y.jsx(Zd,{date:e||new Date,onDateChange:E=>{t(E),T(Qd(E)),S(!1)},showTimeSelector:a,futureDates:c,pastDates:u,minDate:f,maxDate:h}),children:m?y.jsx("div",{onClick:E=>{E.preventDefault(),S(!0)},children:m}):y.jsx(fl,{size:p,name:o,label:n,value:x,onClick:E=>{E.preventDefault(),S(!0)},onChange:E=>b(E),placeholder:r,error:i,rightSide:e&&y.jsx(Pe,{icon:ov,className:"text-gray-500 cursor-pointer",onClick:A})})})}function f2(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=f2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Vn(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=f2(e))&&(r&&(r+=" "),r+=t);return r}const d2={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"},h2={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"},m2={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"},p2={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"},NN="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",kN={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"},LN=(e="filled",t="blue",n="base")=>{const r=Vn(NN,kN[n]),i={blue:d2[e],aqua:h2[e],red:m2[e],gray:p2[e]}[t];return Vn(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",jN={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]"},FN={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},VN=(e="filled",t="blue",n="base",r="none")=>{const i=Vn(RN,jN[n],FN[r]),o={blue:d2[e],aqua:h2[e],red:m2[e],gray:p2[e]}[t];return Vn(i,o)},BN={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")=>BN[e],wi=({icon:e,rightIcon:t,color:n,variant:r="filled",size:i="base",children:o,className:a,...c})=>{const{defaultColorScheme:u}=Ue(),f=n||u;return y.jsxs("button",{type:"button",className:LN(r,f,i)+" "+a,...c,children:[e&&y.jsx(Pe,{icon:e,className:jo(i)}),o,t&&y.jsx(Pe,{icon:t,className:jo(i)})]})},WN=({name:e,error:t,value:n="",onChange:r,onOptionClick:i,onKeyDown:o,onSelect:a,onButtonClick:c,options:u,placeholder:f,label:h,disabled:m=!1,className:p="",buttonContent:v="Enviar",showOptionsOnClick:S=!0,showChevron:x=!1,showButton:T=!1,setValueOnOptionSelect:b=!0,leftSide:A,rightSide:E})=>{const{t:$}=Ue(),[C,D]=_.useState(!1),j=_.useRef(null),{x:F,y:U,strategy:Z,refs:ee,context:se}=jr({open:C,onOpenChange:D,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:z,elements:J}){Object.assign(J.floating.style,{maxHeight:`${Math.min(z-10,300)}px`})},padding:8})],placement:"bottom-start",whileElementsMounted:$r}),ge=vi(se,{enabled:x}),ue=Rr(se),{getReferenceProps:fe,getFloatingProps:he}=Fr([ge,ue]),{isMounted:V,styles:B}=xi(se,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),Y=(()=>{const z=Array.isArray(u)?u:[];if(!n||!n.trim())return z;const J=n.toLowerCase();return z.filter(oe=>oe.label.toLowerCase().includes(J))})(),O=z=>{b&&(r==null||r(z.label)),D(!1),i==null||i(z),a==null||a(z.value)},k=z=>{r==null||r(z)},K=z=>{z.stopPropagation(),x&&!m&&(D(!C),!C&&j.current&&setTimeout(()=>{var J;return(J=j.current)==null?void 0:J.focus()},100))},le={...x?fe():{},onKeyDown:void 0,onClick:void 0};return y.jsxs("div",{className:`flex flex-col gap-8 select-none ${m&&"cursor-not-allowed"} ${p}`,children:[y.jsx("h6",{className:`text-gray-600 font-600 group ${t&&"!text-red-500"} text-label ${m&&"text-gray-300"}`,children:h}),y.jsxs("div",{className:"flex gap-24",children:[y.jsxs("div",{ref:ee.setReference,className:`
704
704
  flex items-center justify-between gap-8 p-16
705
705
 
706
706
  ${t&&"!border-red-500"}
@@ -716,19 +716,19 @@ function print() { __p += __j.call(arguments, '') }
716
716
  focus-within:border-blue-500 transition-colors duration-200 ease-in-out
717
717
  ${m&&"hover:!cursor-pointer"}
718
718
  group-disabled:bg-gray-500
719
- `,...le,children:[A&&A,y.jsx("input",{ref:j,id:e,name:e,disabled:m,placeholder:f,value:n,onClick:()=>{S&&!C&&!m&&D(!0)},onChange:z=>k(z.target.value),onKeyDown:z=>{o&&o(z),z.key==="Enter"&&(z.preventDefault(),Y.length>0&&O(Y[0])),z.key==="Escape"&&D(!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 ${m&&"pointer-events-none !select-none !caret-transparent"}`}),E&&!x?E:x&&y.jsx(Pe,{icon:uN,className:`text-xl text-gray-500 cursor-pointer ${C&&"rotate-180"} transition-transform duration-150 ease-in-out`,onClick:K})]}),T&&y.jsx(wi,{variant:"filled",size:"lg",onClick:c,className:"h-[55px]!",children:v})]}),y.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:t&&$(t||"",{x:$(e)})}),V&&y.jsx("div",{ref:ee.setFloating,style:{position:Z,top:U??0,left:F??0,...B,width:ee.reference.current instanceof Element?ee.reference.current.clientWidth:void 0,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...he(),children:y.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:Y.length>0?y.jsx("ul",{className:"py-4",children:Y.map((z,J)=>y.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${n===z.label?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:oe=>{oe.stopPropagation(),O(z)},children:y.jsx("span",{children:$(z.label)})},`${z.label}-${J}`))}):n&&(n==null?void 0:n.length)>0?y.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[y.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.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"})}),y.jsxs("p",{className:"mt-8 text-body-s",children:['No se encontraron resultados para "',n,'"']})]}):null})})]})},th=({label:e,onClick:t,onRemove:n,readOnly:r})=>y.jsxs("div",{className:"flex justify-between items-center gap-10 bg-[#DEE6F7] rounded-[4px] p-8 text-14",onClick:t,children:[y.jsx("span",{className:"text-blue-500 font-semibold text-nowrap text-ellipsis overflow-hidden",children:e}),!r&&n&&y.jsx("button",{onClick:i=>{n(),i.stopPropagation()},className:"flex items-center text-blue-300 hover:text-red-500",children:y.jsx(Pe,{icon:r2})})]}),UN=({values:e,onPillRemove:t})=>{const[n,r]=_.useState(!1),i=e.slice(0,3),o=e.slice(3);return y.jsxs("div",{className:"flex justify-between items-start gap-20",children:[y.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[i.map(a=>y.jsx(th,{label:a.label,onRemove:()=>t(a.value)},a.value)),y.jsx(vn,{children:n&&o.map(a=>y.jsx(Ge.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},children:y.jsx(th,{label:a.label,onRemove:()=>t(a.value)})},a.value))})]}),o.length>0&&y.jsx("button",{type:"button",onClick:()=>r(!n),className:"flex items-center gap-8 w-fit text-blue-500 font-semibold text-14 transition hover:text-blue-700 text-nowrap shrink-0",children:n?y.jsxs(y.Fragment,{children:[y.jsx("p",{children:"Ocultar"})," ",y.jsx(Pe,{icon:zC})]}):y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:["Ver ",o.length," más"]})," ",y.jsx(Pe,{icon:XC})]})})]})},zN=({open:e,onClose:t,children:n,side:r="right",className:i="",backdropClassName:o="",width:a="650px",zIndex:c=9999})=>{_.useEffect(()=>{const h=m=>{m.key==="Escape"&&e&&t()};return e&&(document.addEventListener("keydown",h),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",h),document.body.style.overflow="unset"}},[e,t]);const u={initial:{x:r==="right"?"100%":"-100%"},animate:{x:0,transition:{type:"spring",stiffness:300,damping:30,opacity:{duration:.2}}},exit:{x:r==="right"?"100%":"-100%",transition:{type:"spring",stiffness:300,damping:30,opacity:{duration:.15}}}},f={initial:{opacity:0},animate:{opacity:1,transition:{duration:.2}},exit:{opacity:0,transition:{duration:.15}}};return y.jsx(vn,{children:e&&y.jsxs("div",{className:`fixed inset-0 z-[${c}] flex`,children:[y.jsx(Ge.div,{variants:f,initial:"initial",animate:"animate",exit:"exit",className:`absolute inset-0 bg-black/50 backdrop-blur-[0.60px] ${o}`,onClick:h=>{h.preventDefault(),h.stopPropagation(),t()}}),y.jsx("div",{className:`relative flex w-full pointer-events-none ${r==="left"?"justify-start":"justify-end"}`,children:y.jsx(Ge.div,{variants:u,initial:"initial",animate:"animate",exit:"exit",className:`
719
+ `,...le,children:[A&&A,y.jsx("input",{ref:j,id:e,name:e,disabled:m,placeholder:f,value:n,onClick:()=>{S&&!C&&!m&&D(!0)},onChange:z=>k(z.target.value),onKeyDown:z=>{o&&o(z),z.key==="Enter"&&(z.preventDefault(),Y.length>0&&O(Y[0])),z.key==="Escape"&&D(!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 ${m&&"pointer-events-none !select-none !caret-transparent"}`}),E&&!x?E:x&&y.jsx(Pe,{icon:uN,className:`text-xl text-gray-500 cursor-pointer ${C&&"rotate-180"} transition-transform duration-150 ease-in-out`,onClick:K})]}),T&&y.jsx(wi,{variant:"filled",size:"lg",onClick:c,className:"h-[55px]!",children:v})]}),y.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:t&&$(t||"",{x:$(e)})}),V&&y.jsx("div",{ref:ee.setFloating,style:{position:Z,top:U??0,left:F??0,...B,width:ee.reference.current instanceof Element?ee.reference.current.clientWidth:void 0,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...he(),children:y.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:Y.length>0?y.jsx("ul",{className:"py-4",children:Y.map((z,J)=>y.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${n===z.label?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:oe=>{oe.stopPropagation(),O(z)},children:y.jsx("span",{children:$(z.label)})},`${z.label}-${J}`))}):n&&(n==null?void 0:n.length)>0?y.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[y.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.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"})}),y.jsxs("p",{className:"mt-8 text-body-s",children:['No se encontraron resultados para "',n,'"']})]}):null})})]})},th=({label:e,onClick:t,onRemove:n,readOnly:r})=>y.jsxs("div",{className:"flex justify-between items-center gap-10 bg-[#DEE6F7] rounded-[4px] p-8 text-14",onClick:t,children:[y.jsx("span",{className:"text-blue-500 font-semibold text-nowrap text-ellipsis overflow-hidden",children:e}),!r&&n&&y.jsx("button",{onClick:i=>{n(),i.stopPropagation()},className:"flex items-center text-blue-300 hover:text-red-500",children:y.jsx(Pe,{icon:i2})})]}),UN=({values:e,onPillRemove:t})=>{const[n,r]=_.useState(!1),i=e.slice(0,3),o=e.slice(3);return y.jsxs("div",{className:"flex justify-between items-start gap-20",children:[y.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[i.map(a=>y.jsx(th,{label:a.label,onRemove:()=>t(a.value)},a.value)),y.jsx(vn,{children:n&&o.map(a=>y.jsx(Ge.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},children:y.jsx(th,{label:a.label,onRemove:()=>t(a.value)})},a.value))})]}),o.length>0&&y.jsx("button",{type:"button",onClick:()=>r(!n),className:"flex items-center gap-8 w-fit text-blue-500 font-semibold text-14 transition hover:text-blue-700 text-nowrap shrink-0",children:n?y.jsxs(y.Fragment,{children:[y.jsx("p",{children:"Ocultar"})," ",y.jsx(Pe,{icon:zC})]}):y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:["Ver ",o.length," más"]})," ",y.jsx(Pe,{icon:XC})]})})]})},zN=({open:e,onClose:t,children:n,side:r="right",className:i="",backdropClassName:o="",width:a="650px",zIndex:c=9999,usePortal:u=!0})=>{_.useEffect(()=>{const p=v=>{v.key==="Escape"&&e&&t()};return e&&(document.addEventListener("keydown",p),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",p),document.body.style.overflow="unset"}},[e,t]);const f={initial:{x:r==="right"?"100%":"-100%"},animate:{x:0,transition:{type:"spring",stiffness:300,damping:30,opacity:{duration:.2}}},exit:{x:r==="right"?"100%":"-100%",transition:{type:"spring",stiffness:300,damping:30,opacity:{duration:.15}}}},h={initial:{opacity:0},animate:{opacity:1,transition:{duration:.2}},exit:{opacity:0,transition:{duration:.15}}},m=y.jsx(vn,{children:e&&y.jsxs("div",{className:"fixed inset-0 flex",style:{zIndex:c},children:[y.jsx(Ge.div,{variants:h,initial:"initial",animate:"animate",exit:"exit",className:`absolute inset-0 bg-black/50 backdrop-blur-[0.60px] ${o}`,onClick:p=>{p.preventDefault(),p.stopPropagation(),t()}}),y.jsx("div",{className:`relative flex w-full pointer-events-none ${r==="left"?"justify-start":"justify-end"}`,children:y.jsx(Ge.div,{variants:f,initial:"initial",animate:"animate",exit:"exit",className:`
720
720
  relative bg-white shadow-2xl h-full overflow-hidden flex flex-col pointer-events-auto
721
721
  ${i}
722
- `,style:{width:typeof a=="number"?`${a}px`:a},onClick:h=>{h.preventDefault(),h.stopPropagation()},children:n})})]})})},GN=({filters:e})=>{const[t,n]=_.useState(!1),r=()=>n(!1),i=()=>n(!0);return y.jsx(bi,{open:t,onClose:r,placement:"bottom-start",className:"w-[326px] shadow-md px-0! text-base! py-12!",component:y.jsxs("div",{className:"relative flex flex-col gap-[10px]",children:[y.jsx("h4",{className:"px-24 text-lg font-semibold text-blue-900",children:"Filtros"}),y.jsx("div",{className:"flex flex-col",children:e.map((o,a)=>y.jsxs("div",{className:"group flex gap-[8px] items-center px-[24px] py-[8px] hover:bg-blue-100 cursor-pointer transition ease-in-out",onClick:o.onClick,children:[y.jsx(Pe,{icon:o.icon,className:"text-[14px] text-gray-600 group-hover:text-blue-500"}),y.jsx("p",{className:"text-[12px] text-gray-500 font-semibold group-hover:text-gray-800",children:o.label})]},a))})]}),children:y.jsx(Pe,{icon:mN,onClick:i,className:"transition text-[16px] ease-in-out duration-150 hover:text-gray-600 cursor-pointer"})})},YN=()=>{const[e,t]=_.useState([]),n=_.useRef([]),r=_.useCallback(a=>{const c={...a,id:(a==null?void 0:a.id)||vf.uniqueId(),open:!0,type:(a==null?void 0:a.type)||"center",props:{...a.props,open:!0,onClose:()=>o(a.id||vf.uniqueId())}};n.current=[...n.current,c],t(n.current)},[]),i=_.useCallback(a=>{const c=vf.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]),y.jsx(y.Fragment,{children:e.map(a=>{if(a.type==="custom"&&(a!=null&&a.component)){const{open:u,onClose:f,component:h}=a;return h(u,f)}if(a.type==="dialog"){const{props:u}=a;return y.jsx(o2,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}if(a.type==="alert"){const{props:u}=a;return y.jsx(Tb,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}const{props:c}=a;return y.jsx(x2,{...c,open:a.open,onClose:()=>o(a.id),children:typeof c.children=="function"?c.children(()=>o(a.id)):c.children},a.id)})})};function HN(e){var t;(t=window==null?void 0:window.openModal)==null||t.call(window,e)}function qN(e){var t;(t=window==null?void 0:window.openCustomModal)==null||t.call(window,e)}function KN(e){var t;(t=window==null?void 0:window.closeModal)==null||t.call(window,e)}function XN(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 y.jsx(i,{...n})}return r??y.jsx("div",{children:"no content"})}const nh=[];function p2(e="bottom-center"){var t;if(!nh.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")}nh.push({id:e,element:n}),document.body.appendChild(n)}return(t=nh.find(n=>n.id===e))==null?void 0:t.element}function dl(e,t="success",{position:n="top-right",duration:r=3e3}={}){import("react-dom/client").then(({createRoot:i})=>{const o=p2(n);if(!o)return;const a=document.createElement("div"),c=i(a),u=()=>{c.unmount(),o.removeChild(a)};c.render(y.jsx(gf,{content:e,type:t,duration:r,onClose:u})),o.prepend(a),setTimeout(()=>{a.classList.add("mt-[0.5rem]")},10)})}const rh=(e,t,n={})=>{import("react-dom/client").then(({createRoot:r})=>{const i=p2(n.position);if(!i)return;const o=document.createElement("div"),a=r(o),c=()=>{a.unmount(),i.removeChild(o)};a.render(y.jsx(iv,{promise:e,messages:t,options:n,onClose:c})),i.prepend(o),setTimeout(()=>{o.classList.add("mt-[0.5rem]")},10)})},g2=(e,t={})=>{let n=()=>{},r=()=>{};const i=new Promise((o,a)=>{n=o,r=a});return rh(i,e,t),{resolve:n,reject:r}},ZN={success:(e,t={})=>dl(e,"success",t),error:(e,t={})=>dl(e,"error",t),warning:(e,t={})=>dl(e,"warning",t),info:(e,t={})=>dl(e,"info",t),async:(e,t,n={})=>rh(e,t,n),loading:(e,t={})=>g2(e,t)},y2=({containerProps:e={},imageProps:t={},src:n="",alt:r="",size:i=30,user:o=null})=>{const{className:a=" ",...c}=e,{className:u=" ",...f}=t,h=i+"px",m=i*.5+"px",p=i*.4+"px",[v,S]=_.useState(!1),x=()=>r?yf(r):o?yf(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=C=>{try{return C?(new URL(C),!0):!1}catch(D){return console.log(D),!1}},b=()=>T(n)?n:o!=null&&o.image&&T(o.image)?o.image:o!=null&&o.image?Cv(o.image):"",A=()=>r?y.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:p},children:r}):o?y.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]}):y.jsx(Pe,{style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},icon:M4,className:"w-full text-white"}),E=()=>{S(!0)},$=b();return y.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:x()},...c,children:[$&&!v&&y.jsx("img",{src:$,alt:r,className:`
722
+ `,style:{width:typeof a=="number"?`${a}px`:a},onClick:p=>{p.preventDefault(),p.stopPropagation()},children:n})})]})});return u&&typeof document<"u"&&document.body?$m.createPortal(m,document.body):m},GN=({filters:e})=>{const[t,n]=_.useState(!1),r=()=>n(!1),i=()=>n(!0);return y.jsx(bi,{open:t,onClose:r,placement:"bottom-start",className:"w-[326px] shadow-md px-0! text-base! py-12!",component:y.jsxs("div",{className:"relative flex flex-col gap-[10px]",children:[y.jsx("h4",{className:"px-24 text-lg font-semibold text-blue-900",children:"Filtros"}),y.jsx("div",{className:"flex flex-col",children:e.map((o,a)=>y.jsxs("div",{className:"group flex gap-[8px] items-center px-[24px] py-[8px] hover:bg-blue-100 cursor-pointer transition ease-in-out",onClick:o.onClick,children:[y.jsx(Pe,{icon:o.icon,className:"text-[14px] text-gray-600 group-hover:text-blue-500"}),y.jsx("p",{className:"text-[12px] text-gray-500 font-semibold group-hover:text-gray-800",children:o.label})]},a))})]}),children:y.jsx(Pe,{icon:mN,onClick:i,className:"transition text-[16px] ease-in-out duration-150 hover:text-gray-600 cursor-pointer"})})},YN=()=>{const[e,t]=_.useState([]),n=_.useRef([]),r=_.useCallback(a=>{const c={...a,id:(a==null?void 0:a.id)||vf.uniqueId(),open:!0,type:(a==null?void 0:a.type)||"center",props:{...a.props,open:!0,onClose:()=>o(a.id||vf.uniqueId())}};n.current=[...n.current,c],t(n.current)},[]),i=_.useCallback(a=>{const c=vf.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]),y.jsx(y.Fragment,{children:e.map(a=>{if(a.type==="custom"&&(a!=null&&a.component)){const{open:u,onClose:f,component:h}=a;return h(u,f)}if(a.type==="dialog"){const{props:u}=a;return y.jsx(a2,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}if(a.type==="alert"){const{props:u}=a;return y.jsx(Eb,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}const{props:c}=a;return y.jsx(b2,{...c,open:a.open,onClose:()=>o(a.id),children:typeof c.children=="function"?c.children(()=>o(a.id)):c.children},a.id)})})};function HN(e){var t;(t=window==null?void 0:window.openModal)==null||t.call(window,e)}function qN(e){var t;(t=window==null?void 0:window.openCustomModal)==null||t.call(window,e)}function KN(e){var t;(t=window==null?void 0:window.closeModal)==null||t.call(window,e)}function XN(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 y.jsx(i,{...n})}return r??y.jsx("div",{children:"no content"})}const nh=[];function g2(e="bottom-center"){var t;if(!nh.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")}nh.push({id:e,element:n}),document.body.appendChild(n)}return(t=nh.find(n=>n.id===e))==null?void 0:t.element}function dl(e,t="success",{position:n="top-right",duration:r=3e3}={}){import("react-dom/client").then(({createRoot:i})=>{const o=g2(n);if(!o)return;const a=document.createElement("div"),c=i(a),u=()=>{c.unmount(),o.removeChild(a)};c.render(y.jsx(gf,{content:e,type:t,duration:r,onClose:u})),o.prepend(a),setTimeout(()=>{a.classList.add("mt-[0.5rem]")},10)})}const rh=(e,t,n={})=>{import("react-dom/client").then(({createRoot:r})=>{const i=g2(n.position);if(!i)return;const o=document.createElement("div"),a=r(o),c=()=>{a.unmount(),i.removeChild(o)};a.render(y.jsx(sv,{promise:e,messages:t,options:n,onClose:c})),i.prepend(o),setTimeout(()=>{o.classList.add("mt-[0.5rem]")},10)})},y2=(e,t={})=>{let n=()=>{},r=()=>{};const i=new Promise((o,a)=>{n=o,r=a});return rh(i,e,t),{resolve:n,reject:r}},ZN={success:(e,t={})=>dl(e,"success",t),error:(e,t={})=>dl(e,"error",t),warning:(e,t={})=>dl(e,"warning",t),info:(e,t={})=>dl(e,"info",t),async:(e,t,n={})=>rh(e,t,n),loading:(e,t={})=>y2(e,t)},v2=({containerProps:e={},imageProps:t={},src:n="",alt:r="",size:i=30,user:o=null})=>{const{className:a=" ",...c}=e,{className:u=" ",...f}=t,h=i+"px",m=i*.5+"px",p=i*.4+"px",[v,S]=_.useState(!1),x=()=>r?yf(r):o?yf(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=C=>{try{return C?(new URL(C),!0):!1}catch(D){return console.log(D),!1}},b=()=>T(n)?n:o!=null&&o.image&&T(o.image)?o.image:o!=null&&o.image?Pv(o.image):"",A=()=>r?y.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:p},children:r}):o?y.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]}):y.jsx(Pe,{style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},icon:M4,className:"w-full text-white"}),E=()=>{S(!0)},$=b();return y.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:x()},...c,children:[$&&!v&&y.jsx("img",{src:$,alt:r,className:`
723
723
  object-cover w-full h-full text-center indent-[10000px] absolute
724
724
  z-10
725
725
  ${u}
726
726
  `,onError:E,...f}),y.jsx("div",{className:`
727
727
  flex items-center justify-center leading-none text-center absolute
728
- `,style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},children:A()})]})},v2=({className:e="",direction:t="horizontal"})=>t==="horizontal"?y.jsx("hr",{className:`w-full min-h-1 max-h-1 bg-blue-100 border-blue-100 ${e}`}):y.jsx("hr",{className:`h-full min-w-1 max-w-1 bg-blue-100 border-blue-100 ${e}`}),x2=({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 y.jsx(vn,{children:e&&y.jsx(y.Fragment,{children:y.jsx(Ge.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:y.jsx(Ge.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:y.jsxs(Ss,{className:`flex flex-col ${n&&"gap-16 md:gap-24"} p-0!`,children:[y.jsxs("div",{className:"flex flex-col gap-16 md:gap-24 md:p-32 pb-0!",children:[y.jsxs("div",{className:"flex justify-between items-center px-16 pt-16 md:px-0 md:pt-0",children:[n&&y.jsx("h2",{className:"text-black font-700 text-2xl",children:n}),o&&y.jsx(Pe,{icon:nu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700 ml-auto",onClick:t})]}),n&&y.jsx(v2,{className:"bg-gray-100!"})]}),y.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})]})})})})})},JN=({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=f=>({width:`${f}px`,height:`${f}px`,minWidth:`${f}px`,minHeight:`${f}px`});return y.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:y.jsx("div",{className:`absolute transition-colors ease-in-out duration-150 ${c} size-12 ${e?a:""}`,style:u(i*.7)})})};var ih,b2;function QN(){if(b2)return ih;b2=1;function e(b){this._maxSize=b,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(b){return this._values[b]},e.prototype.set=function(b,A){return this._size>=this._maxSize&&this.clear(),b in this._values||this._size++,this._values[b]=A};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,a=512,c=new e(a),u=new e(a),f=new e(a);ih={Cache:e,split:m,normalizePath:h,setter:function(b){var A=h(b);return u.get(b)||u.set(b,function($,C){for(var D=0,j=A.length,F=$;D<j-1;){var U=A[D];if(U==="__proto__"||U==="constructor"||U==="prototype")return $;F=F[A[D++]]}F[A[D]]=C})},getter:function(b,A){var E=h(b);return f.get(b)||f.set(b,function(C){for(var D=0,j=E.length;D<j;)if(C!=null||!A)C=C[E[D++]];else return;return C})},join:function(b){return b.reduce(function(A,E){return A+(v(E)||n.test(E)?"["+E+"]":(A?".":"")+E)},"")},forEach:function(b,A,E){p(Array.isArray(b)?b:m(b),A,E)}};function h(b){return c.get(b)||c.set(b,m(b).map(function(A){return A.replace(o,"$2")}))}function m(b){return b.match(t)||[""]}function p(b,A,E){var $=b.length,C,D,j,F;for(D=0;D<$;D++)C=b[D],C&&(T(C)&&(C='"'+C+'"'),F=v(C),j=!F&&/^\d+$/.test(C),A.call(E,C,F,j,D,b))}function v(b){return typeof b=="string"&&b&&["'",'"'].indexOf(b.charAt(0))!==-1}function S(b){return b.match(r)&&!b.match(n)}function x(b){return i.test(b)}function T(b){return!v(b)&&(S(b)||x(b))}return ih}var Si=QN(),sh,w2;function ek(){if(w2)return sh;w2=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 sh={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(" ")},sh}var oh=ek(),hl={exports:{}},S2;function tk(){if(S2)return hl.exports;S2=1,hl.exports=function(i){return e(t(i),i)},hl.exports.array=e;function e(i,o){var a=i.length,c=new Array(a),u={},f=a,h=n(o),m=r(i);for(o.forEach(function(v){if(!m.has(v[0])||!m.has(v[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});f--;)u[f]||p(i[f],f,new Set);return c;function p(v,S,x){if(x.has(v)){var T;try{T=", node was:"+JSON.stringify(v)}catch{T=""}throw new Error("Cyclic dependency"+T)}if(!m.has(v))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(v));if(!u[S]){u[S]=!0;var b=h.get(v)||new Set;if(b=Array.from(b),S=b.length){x.add(v);do{var A=b[--S];p(A,m.get(A),x)}while(S);x.delete(v)}c[--a]=v}}}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 hl.exports}var nk=tk();const rk=Dm(nk),ik=Object.prototype.toString,sk=Error.prototype.toString,ok=RegExp.prototype.toString,ak=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",lk=/^Symbol\((.*)\)(.*)$/;function ck(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function T2(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return ck(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return ak.call(e).replace(lk,"Symbol($1)");const r=ik.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+sk.call(e)+"]":r==="RegExp"?ok.call(e):null}function Vr(e,t){let n=T2(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=T2(this[r],t);return o!==null?o:i},2)}function E2(e){return e==null?[]:[].concat(e)}let C2,P2,A2,uk=/\$\{\s*(\w+)\s*\}/g;C2=Symbol.toStringTag;class M2{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[C2]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],E2(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]}}P2=Symbol.hasInstance,A2=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(uk,(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 M2(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[A2]="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[P2](t){return M2[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Bn={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"},fk={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"},ah={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},dk={isValue:"${path} field must be ${value}"},ml={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:Bn,string:Ft,number:fk,date:ah,object:ml,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:dk,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(Bn.notType,e)}}});const lh=e=>e&&e.__isYupSchema__;class pl{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 pl(t,(c,u)=>{var f;let h=a(...c)?i:o;return(f=h==null?void 0:h(u))!=null?f: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(!lh(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const gl={context:"$",value:"."};class Ti{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]===gl.context,this.isValue=this.key[0]===gl.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?gl.context:this.isValue?gl.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Si.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}}Ti.prototype.__isYupRef=!0;const Ei=e=>e==null;function Ts(e){function t({value:n,path:r="",options:i,originalValue:o,schema:a},c,u){const{name:f,test:h,params:m,message:p,skipAbsent:v}=e;let{parent:S,context:x,abortEarly:T=a.spec.abortEarly,disableStackTrace:b=a.spec.disableStackTrace}=i;function A(ee){return Ti.isRef(ee)?ee.getValue(n,S,x):ee}function E(ee={}){const se=Object.assign({value:n,originalValue:o,label:a.spec.label,path:ee.path||r,spec:a.spec,disableStackTrace:ee.disableStackTrace||b},m,ee.params);for(const ue of Object.keys(se))se[ue]=A(se[ue]);const ge=new jt(jt.formatError(ee.message||p,se),n,se.path,ee.type||f,se.disableStackTrace);return ge.params=se,ge}const $=T?c:u;let C={path:r,parent:S,type:f,from:i.from,createError:E,resolve:A,options:i,originalValue:o,schema:a};const D=ee=>{jt.isError(ee)?$(ee):ee?u(null):$(E())},j=ee=>{jt.isError(ee)?$(ee):c(ee)};if(v&&Ei(n))return D(!0);let U;try{var Z;if(U=h.call(C,n,C),typeof((Z=U)==null?void 0:Z.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${C.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(U).then(D,j)}}catch(ee){j(ee);return}D(U)}return t.OPTIONS=e,t}function hk(e,t,n,r=n){let i,o,a;return t?(Si.forEach(t,(c,u,f)=>{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=f?parseInt(h,10):0;if(e.innerType||m){if(m&&!f)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(!f){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 yl extends Set{describe(){const t=[];for(const n of this.values())t.push(Ti.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 yl(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function Es(e,t=new Map){if(lh(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]=Es(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,Es(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Es(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=Es(i,t)}else throw Error(`Unable to clone ${e}`);return n}class Wn{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 yl,this._blacklist=new yl,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Bn.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=Es(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&&Ei(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}".
728
+ `,style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},children:A()})]})},x2=({className:e="",direction:t="horizontal"})=>t==="horizontal"?y.jsx("hr",{className:`w-full min-h-1 max-h-1 bg-blue-100 border-blue-100 ${e}`}):y.jsx("hr",{className:`h-full min-w-1 max-w-1 bg-blue-100 border-blue-100 ${e}`}),b2=({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 y.jsx(vn,{children:e&&y.jsx(y.Fragment,{children:y.jsx(Ge.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:y.jsx(Ge.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:y.jsxs(Ss,{className:`flex flex-col ${n&&"gap-16 md:gap-24"} p-0!`,children:[y.jsxs("div",{className:"flex flex-col gap-16 md:gap-24 md:p-32 pb-0!",children:[y.jsxs("div",{className:"flex justify-between items-center px-16 pt-16 md:px-0 md:pt-0",children:[n&&y.jsx("h2",{className:"text-black font-700 text-2xl",children:n}),o&&y.jsx(Pe,{icon:nu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700 ml-auto",onClick:t})]}),n&&y.jsx(x2,{className:"bg-gray-100!"})]}),y.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})]})})})})})},JN=({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=f=>({width:`${f}px`,height:`${f}px`,minWidth:`${f}px`,minHeight:`${f}px`});return y.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:y.jsx("div",{className:`absolute transition-colors ease-in-out duration-150 ${c} size-12 ${e?a:""}`,style:u(i*.7)})})};var ih,w2;function QN(){if(w2)return ih;w2=1;function e(b){this._maxSize=b,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(b){return this._values[b]},e.prototype.set=function(b,A){return this._size>=this._maxSize&&this.clear(),b in this._values||this._size++,this._values[b]=A};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,a=512,c=new e(a),u=new e(a),f=new e(a);ih={Cache:e,split:m,normalizePath:h,setter:function(b){var A=h(b);return u.get(b)||u.set(b,function($,C){for(var D=0,j=A.length,F=$;D<j-1;){var U=A[D];if(U==="__proto__"||U==="constructor"||U==="prototype")return $;F=F[A[D++]]}F[A[D]]=C})},getter:function(b,A){var E=h(b);return f.get(b)||f.set(b,function(C){for(var D=0,j=E.length;D<j;)if(C!=null||!A)C=C[E[D++]];else return;return C})},join:function(b){return b.reduce(function(A,E){return A+(v(E)||n.test(E)?"["+E+"]":(A?".":"")+E)},"")},forEach:function(b,A,E){p(Array.isArray(b)?b:m(b),A,E)}};function h(b){return c.get(b)||c.set(b,m(b).map(function(A){return A.replace(o,"$2")}))}function m(b){return b.match(t)||[""]}function p(b,A,E){var $=b.length,C,D,j,F;for(D=0;D<$;D++)C=b[D],C&&(T(C)&&(C='"'+C+'"'),F=v(C),j=!F&&/^\d+$/.test(C),A.call(E,C,F,j,D,b))}function v(b){return typeof b=="string"&&b&&["'",'"'].indexOf(b.charAt(0))!==-1}function S(b){return b.match(r)&&!b.match(n)}function x(b){return i.test(b)}function T(b){return!v(b)&&(S(b)||x(b))}return ih}var Si=QN(),sh,S2;function ek(){if(S2)return sh;S2=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 sh={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(" ")},sh}var oh=ek(),hl={exports:{}},T2;function tk(){if(T2)return hl.exports;T2=1,hl.exports=function(i){return e(t(i),i)},hl.exports.array=e;function e(i,o){var a=i.length,c=new Array(a),u={},f=a,h=n(o),m=r(i);for(o.forEach(function(v){if(!m.has(v[0])||!m.has(v[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});f--;)u[f]||p(i[f],f,new Set);return c;function p(v,S,x){if(x.has(v)){var T;try{T=", node was:"+JSON.stringify(v)}catch{T=""}throw new Error("Cyclic dependency"+T)}if(!m.has(v))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(v));if(!u[S]){u[S]=!0;var b=h.get(v)||new Set;if(b=Array.from(b),S=b.length){x.add(v);do{var A=b[--S];p(A,m.get(A),x)}while(S);x.delete(v)}c[--a]=v}}}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 hl.exports}var nk=tk();const rk=Nm(nk),ik=Object.prototype.toString,sk=Error.prototype.toString,ok=RegExp.prototype.toString,ak=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",lk=/^Symbol\((.*)\)(.*)$/;function ck(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function E2(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return ck(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return ak.call(e).replace(lk,"Symbol($1)");const r=ik.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+sk.call(e)+"]":r==="RegExp"?ok.call(e):null}function Vr(e,t){let n=E2(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=E2(this[r],t);return o!==null?o:i},2)}function C2(e){return e==null?[]:[].concat(e)}let P2,A2,M2,uk=/\$\{\s*(\w+)\s*\}/g;P2=Symbol.toStringTag;class O2{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[P2]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],C2(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]}}A2=Symbol.hasInstance,M2=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(uk,(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 O2(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[M2]="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[A2](t){return O2[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Bn={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"},fk={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"},ah={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},dk={isValue:"${path} field must be ${value}"},ml={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:Bn,string:Ft,number:fk,date:ah,object:ml,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:dk,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(Bn.notType,e)}}});const lh=e=>e&&e.__isYupSchema__;class pl{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 pl(t,(c,u)=>{var f;let h=a(...c)?i:o;return(f=h==null?void 0:h(u))!=null?f: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(!lh(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const gl={context:"$",value:"."};class Ti{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]===gl.context,this.isValue=this.key[0]===gl.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?gl.context:this.isValue?gl.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Si.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}}Ti.prototype.__isYupRef=!0;const Ei=e=>e==null;function Ts(e){function t({value:n,path:r="",options:i,originalValue:o,schema:a},c,u){const{name:f,test:h,params:m,message:p,skipAbsent:v}=e;let{parent:S,context:x,abortEarly:T=a.spec.abortEarly,disableStackTrace:b=a.spec.disableStackTrace}=i;function A(ee){return Ti.isRef(ee)?ee.getValue(n,S,x):ee}function E(ee={}){const se=Object.assign({value:n,originalValue:o,label:a.spec.label,path:ee.path||r,spec:a.spec,disableStackTrace:ee.disableStackTrace||b},m,ee.params);for(const ue of Object.keys(se))se[ue]=A(se[ue]);const ge=new jt(jt.formatError(ee.message||p,se),n,se.path,ee.type||f,se.disableStackTrace);return ge.params=se,ge}const $=T?c:u;let C={path:r,parent:S,type:f,from:i.from,createError:E,resolve:A,options:i,originalValue:o,schema:a};const D=ee=>{jt.isError(ee)?$(ee):ee?u(null):$(E())},j=ee=>{jt.isError(ee)?$(ee):c(ee)};if(v&&Ei(n))return D(!0);let U;try{var Z;if(U=h.call(C,n,C),typeof((Z=U)==null?void 0:Z.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${C.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(U).then(D,j)}}catch(ee){j(ee);return}D(U)}return t.OPTIONS=e,t}function hk(e,t,n,r=n){let i,o,a;return t?(Si.forEach(t,(c,u,f)=>{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=f?parseInt(h,10):0;if(e.innerType||m){if(m&&!f)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(!f){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 yl extends Set{describe(){const t=[];for(const n of this.values())t.push(Ti.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 yl(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function Es(e,t=new Map){if(lh(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]=Es(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,Es(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Es(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=Es(i,t)}else throw Error(`Unable to clone ${e}`);return n}class Wn{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 yl,this._blacklist=new yl,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Bn.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=Es(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&&Ei(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}".
729
729
 
730
730
  attempted value: ${a}
731
- `+(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 f=[];for(let h of Object.values(this.internalTests))h&&f.push(h);this.runTests({path:o,value:u,originalValue:a,options:n,tests:f},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:f}=t,h=x=>{i||(i=!0,n(x,a))},m=x=>{i||(i=!0,r(x,a))},p=o.length,v=[];if(!p)return m([]);let S={value:a,originalValue:c,path:u,options:f,schema:this};for(let x=0;x<o.length;x++){const T=o[x];T(S,h,function(A){A&&(Array.isArray(A)?v.push(...A):v.push(A)),--p<=0&&m(v)})}}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 f=r[c];const h=Object.assign({},a,{strict:!0,parent:r,value:f,originalValue:o[c],key:void 0,[u?"index":"key"]:c,path:u||c.includes(".")?`${i||""}[${u?c:`"${c}"`}]`:(i?`${i}.`:"")+t});return(m,p,v)=>this.resolve(h)._validate(f,h,p,v)}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,f)=>{jt.isError(u)&&(u.value=f),c(u)},(u,f)=>{u.length?c(new jt(u,f,void 0,void 0,o)):a(f)}))}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):Es(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=Ts({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=Ts({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Bn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Bn.notNull){return this.nullability(!1,t)}required(t=Bn.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=Bn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=Ts(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=E2(t).map(o=>new Ti(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new pl(i,n):pl.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Ts({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=Bn.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=Ts({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=Bn.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=Ts({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,f,h)=>h.findIndex(m=>m.name===u.name)===f)}}}Wn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Wn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:a}=hk(this,t,n,r.context);return a[e](i&&i[o],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Wn.prototype[e]=Wn.prototype.oneOf;for(const e of["not","nope"])Wn.prototype[e]=Wn.prototype.notOneOf;const mk=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function pk(e){const t=ch(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 ch(e){var t,n;const r=mk.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 gk=/^[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])?)*$/,yk=/^((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,vk=/^(?:[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,xk="^\\d{4}-\\d{2}-\\d{2}",bk="\\d{2}:\\d{2}:\\d{2}",wk="(([+-]\\d{2}(:?\\d{2})?)|Z)",Sk=new RegExp(`${xk}T${bk}(\\.\\d+)?${wk}$`),Tk=e=>Ei(e)||e===e.trim(),Ek={}.toString();function Br(){return new O2}class O2 extends Wn{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===Ek?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Bn.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(gk,{name:"email",message:t,excludeEmptyString:!0})}url(t=Ft.url){return this.matches(yk,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Ft.uuid){return this.matches(vk,{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(Sk,{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=ch(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=ch(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:Tk})}lowercase(t=Ft.lowercase){return this.transform(n=>Ei(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ei(n)||n===n.toLowerCase()})}uppercase(t=Ft.uppercase){return this.transform(n=>Ei(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ei(n)||n===n.toUpperCase()})}}Br.prototype=O2.prototype;let Ck=new Date(""),Pk=e=>Object.prototype.toString.call(e)==="[object Date]";class uh extends Wn{constructor(){super({type:"date",check(t){return Pk(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=pk(t),isNaN(t)?uh.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Ti.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=ah.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=ah.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)}})}}uh.INVALID_DATE=Ck;function Ak(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([a,c])=>`${a}-${c}`));function o(a,c){let u=Si.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),Ti.isRef(c)&&c.isSibling?o(c.path,a):lh(c)&&"deps"in c&&c.deps.forEach(u=>o(u,a))}return rk.array(Array.from(r),n).reverse()}function _2(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 I2(e){return(t,n)=>_2(e,t)-_2(e,n)}const Mk=(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 vl(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=vl(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=vl(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(vl)}):"optional"in e?e.optional():e}const Ok=(e,t)=>{const n=[...Si.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=Si.getter(Si.join(n),!0)(e);return!!(i&&r in i)};let $2=e=>Object.prototype.toString.call(e)==="[object Object]";function D2(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const _k=I2([]);function fh(e){return new N2(e)}class N2 extends Wn{constructor(t){super({type:"object",check(n){return $2(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=_k,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={},f=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),h=!1;for(const m of c){let p=o[m],v=m in i;if(p){let S,x=i[m];f.path=(n.path?`${n.path}.`:"")+m,p=p.resolve({value:x,context:n.context,parent:u});let T=p instanceof Wn?p.spec:void 0,b=T==null?void 0:T.strict;if(T!=null&&T.strip){h=h||m in i;continue}S=!n.__validating||!b?p.cast(i[m],f):i[m],S!==void 0&&(u[m]=S)}else v&&!a&&(u[m]=i[m]);(v!==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,f)=>{if(!c||!$2(f)){i(u,f);return}a=a||f;let h=[];for(let m of this._nodes){let p=this.fields[m];!p||Ti.isRef(p)||h.push(p.asNestedTest({options:n,key:m,parent:f,parentPath:n.path,originalParent:a}))}this.runTests({tests:h,value:f,originalValue:a,options:n},r,m=>{i(m.sort(this._sortErrors).concat(u),f)})})}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=Ak(t,n),r._sortErrors=I2(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 vl(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=Si.getter(t,!0);return this.transform(o=>{if(!o)return o;let a=o;return Ok(o,t)&&(a=Object.assign({},o),r||delete a[t],a[n]=i(o)),a})}json(){return this.transform(Mk)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||ml.exact,test(n){if(n==null)return!0;const r=D2(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=ml.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=D2(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=ml.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(oh.camelCase)}snakeCase(){return this.transformKeys(oh.snakeCase)}constantCase(){return this.transformKeys(t=>oh.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}}fh.prototype=N2.prototype,fh().shape({labelES:Br().required(),label:Br().required(),code:Br().required(),codeISO2:Br().required(),phone:Br().required()});const k2=[{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"}],Ik=({countries:e=k2,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:f,fieldState:h}=hr.useController({name:t,control:n,rules:{validate:{}},defaultValue:null}),[m,p]=_.useState(!1),[v,S]=_.useState(""),[x,T]=_.useState(f.value||null),b=_.useRef(null),A=_.useRef(null),E=_.useRef(null),{x:$,y:C,strategy:D,refs:j,context:F,placement:U,middlewareData:Z}=jr({open:m,onOpenChange:p,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:pe,elements:De}){Object.assign(De.floating.style,{maxHeight:`${Math.min(pe-10,300)}px`})},padding:8}),bs({element:A})],placement:"bottom-start",whileElementsMounted:$r}),ee=vi(F),se=Rr(F),{getReferenceProps:ge,getFloatingProps:ue}=Fr([ee,se]),{isMounted:fe,styles:he}=xi(F,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),B=(Array.isArray(e)?e:[]).filter(pe=>{if(!v.trim())return!0;const De=o==="es"&&pe.labelES?pe.labelES.toLowerCase():pe.label.toLowerCase(),ft=pe.code?pe.code.toLowerCase():"";return De.includes(v.toLowerCase())||ft.includes(v.toLowerCase())}),Y=pe=>{T(pe),p(!1),S(""),f.onChange(pe)},O=()=>{p(!m),!m&&b.current&&setTimeout(()=>{var pe;(pe=b.current)==null||pe.focus()},100)},k=()=>{setTimeout(()=>{m||f.onBlur()},200)};_.useEffect(()=>{T(f.value)},[f.value]),_.useEffect(()=>{const pe=De=>{E.current&&!E.current.contains(De.target)&&f.onBlur()};return document.addEventListener("mousedown",pe),()=>{document.removeEventListener("mousedown",pe)}},[f]);const K=pe=>{var De;return pe?pe.codeISO2?pe.codeISO2.toLowerCase():((De=pe.code)==null?void 0:De.toLowerCase())||"":""},ae=(Ce=Z.arrow)==null?void 0:Ce.x,le=(Ve=Z.arrow)==null?void 0:Ve.y,z={top:"bottom",right:"left",bottom:"top",left:"right"}[U.split("-")[0]],J=ge({onClick:O,onBlur:k}),oe=u(r),re=u(i),de=(ie=h.error)==null?void 0:ie.message;return y.jsxs("div",{ref:E,className:`w-full relative flex flex-col gap-8 ${a}`,children:[y.jsx("label",{className:`text-gray-600 font-600 group ${de&&"!text-red-500"} text-label`,children:oe}),y.jsxs("div",{ref:j.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"}`,...J,tabIndex:0,children:[x!=null&&x.code?y.jsxs("div",{className:"flex items-center w-full gap-10",children:[K(x)&&y.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${K(x)}.png`,srcSet:`https://flagcdn.com/w40/${K(x)}.png 2x`,alt:x.label,onError:pe=>{pe.currentTarget.style.display="none"}}),y.jsxs("span",{className:"flex-grow font-600 text-body-m",children:[o==="es"&&x.labelES?x.labelES:x.label,x.code?` (${x.code})`:u("select_country")]})]}):y.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:re}),y.jsx("svg",{className:`w-16 h-16 transition-transform ${m?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),de&&y.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(de,{x:u(c||"")||u(t)})}),fe&&y.jsxs("div",{ref:j.setFloating,style:{position:D,top:C??0,left:$??0,...he},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ue(),children:[y.jsx("div",{ref:A,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ae!=null?`${ae}px`:"",top:le!=null?`${le}px`:"",right:"",bottom:"",[z]:"-2px",borderRight:z==="left"?"1px solid":"none",borderBottom:z==="top"?"1px solid":"none",borderLeft:z==="right"?"1px solid":"none",borderTop:z==="bottom"?"1px solid":"none"}}),y.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:y.jsx("input",{ref:b,type:"text",className:"w-full p-16 text-body-s",placeholder:u("search")+"...",value:v,onChange:pe=>S(pe.target.value),onClick:pe=>pe.stopPropagation(),onBlur:pe=>{pe.stopPropagation()},autoFocus:!0})}),y.jsx("div",{children:B.length>0?y.jsx("ul",{className:"flex flex-col",children:B.map((pe,De)=>{var Ci;const ft=pe.codeISO2?pe.codeISO2.toLowerCase():((Ci=pe.code)==null?void 0:Ci.toLowerCase())||"";return y.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(),Y(pe)},children:[ft&&y.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"}}),y.jsxs("span",{children:[o==="es"&&pe.labelES?pe.labelES:pe.label,pe.code?` (${pe.code})`:"Country not found"]})]},`${pe.code}-${De}`)})}):y.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},$k=({country:e})=>{const t=n=>{var r;return n?n.codeISO2?n.codeISO2.toLowerCase():((r=n.code)==null?void 0:r.toLowerCase())||"":""};return y.jsxs("div",{className:"flex items-center gap-8",children:[y.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"}}),y.jsx("p",{className:"text-body-s text-gray-600",children:e.label})]})},Dk=({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 y.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:u,value:f},fieldState:{error:h}})=>y.jsx(Nk,{countries:e,value:f,onChange:u,label:c(r),placeholder:c(i),language:o,error:h==null?void 0:h.message,className:a})})},Nk=({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,le;const{t:u}=Ue(),[f,h]=_.useState(!1),[m,p]=_.useState(""),[v,S]=_.useState(t||null),x=_.useRef(null),T=_.useRef(null),{x:b,y:A,strategy:E,refs:$,context:C,placement:D,middlewareData:j}=jr({open:f,onOpenChange:h,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:z,elements:J}){Object.assign(J.floating.style,{maxHeight:`${Math.min(z-10,300)}px`})},padding:8}),bs({element:T})],placement:"bottom-start",whileElementsMounted:$r}),F=vi(C),U=Rr(C),{getReferenceProps:Z,getFloatingProps:ee}=Fr([F,U]),{isMounted:se,styles:ge}=xi(C,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),fe=(Array.isArray(e)?e:[]).filter(z=>{if(!m.trim())return!0;const J=o==="es"&&z.labelES?z.labelES.toLowerCase():z.label.toLowerCase(),oe=z.code?z.code.toLowerCase():"";return J.includes(m.toLowerCase())||oe.includes(m.toLowerCase())}),he=z=>{S(z),h(!1),p(""),n(z)},V=()=>{h(!f),!f&&x.current&&setTimeout(()=>{var z;(z=x.current)==null||z.focus()},100)};_.useEffect(()=>{S(t)},[t]);const B=z=>{var J;return z?z.codeISO2?z.codeISO2.toLowerCase():((J=z.code)==null?void 0:J.toLowerCase())||"":""},Y=(ae=j.arrow)==null?void 0:ae.x,O=(le=j.arrow)==null?void 0:le.y,k={top:"bottom",right:"left",bottom:"top",left:"right"}[D.split("-")[0]],K=Z({onClick:V});return y.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[y.jsx("label",{className:`text-gray-600 font-600 group ${a&&"!text-red-500"} text-label`,children:r}),y.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"} ${se?"border-blue-400":"border-blue-100"}`,...K,children:[v!=null&&v.code?y.jsxs("div",{className:"flex items-center w-full",children:[B(v)&&y.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${B(v)}.png`,srcSet:`https://flagcdn.com/w40/${B(v)}.png 2x`,alt:v.label,onError:z=>{z.currentTarget.style.display="none"}}),y.jsxs("span",{className:"flex-grow",children:[o==="es"&&v.labelES?v.labelES:v.label,v.code?` (${v.code})`:u("select_country")]})]}):y.jsx("span",{className:"text-gray-500",children:i}),y.jsx("svg",{className:`w-16 h-16 transition-transform ${f?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),a&&y.jsx("p",{className:"mt-1 text-sm text-red-600",children:a}),se&&y.jsxs("div",{ref:$.setFloating,style:{position:E,top:A??0,left:b??0,...ge},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ee(),children:[y.jsx("div",{ref:T,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:Y!=null?`${Y}px`:"",top:O!=null?`${O}px`:"",right:"",bottom:"",[k]:"-2px",borderRight:k==="left"?"1px solid":"none",borderBottom:k==="top"?"1px solid":"none",borderLeft:k==="right"?"1px solid":"none",borderTop:k==="bottom"?"1px solid":"none"}}),y.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:y.jsx("input",{ref:x,type:"text",className:"w-full p-16",placeholder:u("search")+"...",value:m,onChange:z=>p(z.target.value),onClick:z=>z.stopPropagation(),autoFocus:!0})}),y.jsx("div",{children:fe.length>0?y.jsx("ul",{className:"flex flex-col",children:fe.map((z,J)=>{var re;const oe=z.codeISO2?z.codeISO2.toLowerCase():((re=z.code)==null?void 0:re.toLowerCase())||"";return y.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(z)},children:[oe&&y.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${oe}.png`,srcSet:`https://flagcdn.com/w40/${oe}.png 2x`,alt:z.label,onError:de=>{de.currentTarget.style.display="none"}}),y.jsxs("span",{children:[o==="es"&&z.labelES?z.labelES:z.label,z.code?` (${z.code})`:"Country not found"]})]},`${z.code}-${J}`)})}):y.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No countries found"})})]})]})},dh=({variant:e="filled",color:t,size:n="base",shadow:r="none",icon:i,iconProps:o={},children:a,className:c,...u})=>{const{defaultColorScheme:f}=Ue(),h=t||f;return y.jsx("button",{...u,className:`${VN(e,h,n,r)} ${c}`,children:i?y.jsx(Pe,{...o,className:jo(n),icon:i}):a})};function kk(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 Lk=({src:e,alt:t,isEditable:n=!1,onChange:r,className:i="",name:o,control:a,user:c})=>{const[u,f]=_.useState(e||null),[h,m]=_.useState(!!e),p=_.useRef(null),v=hr.useController({name:o,control:a}),S=!!a;_.useEffect(()=>{if(S){const A=v==null?void 0:v.field.value;if(kk(A)){const E=URL.createObjectURL(A);return f(E),m(!0),()=>URL.revokeObjectURL(E)}else typeof A=="string"&&A&&A!==e?(f(A),m(!0)):e?(f(e),m(!0)):(f(null),m(!1))}},[v==null?void 0:v.field.value,e]);const x=()=>{var A;n&&((A=p.current)==null||A.click())},T=A=>{var $;const E=($=A.target.files)==null?void 0:$[0];if(E){const C=URL.createObjectURL(E);f(C),m(!0),S&&(v==null||v.field.onChange(E)),r&&r(E)}},b=A=>{A.stopPropagation(),f(null),m(!1),p.current&&(p.current.value=""),S&&(v==null||v.field.onChange(null)),r&&r(null)};return y.jsxs("div",{className:"relative flex items-center gap-10",children:[n&&h&&y.jsx("button",{type:"button",onClick:b,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:y.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:[y.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),y.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),y.jsxs("div",{className:`relative flex items-center justify-center h-40 w-40 ${n?"cursor-pointer hover:opacity-80":""} ${i}`,onClick:x,children:[u?y.jsx("img",{src:u,alt:t,className:"w-full h-full object-cover rounded-full"}):y.jsx(y2,{size:60,user:c}),n&&y.jsxs(y.Fragment,{children:[y.jsx("input",{type:"file",ref:A=>{p.current=A,v&&v.field.ref(A)},onChange:T,onBlur:v==null?void 0:v.field.onBlur,accept:"image/*",className:"hidden"}),!h&&y.jsx("div",{className:"absolute bottom-0 right-0 bg-blue-100 rounded-full h-20 w-20 flex items-center justify-center",children:y.jsx(Pe,{icon:Z5,className:"text-blue-500"})})]})]})]})},Rk=fh({name:Br(),base64:Br()}),jk=({imageUrl:e,title:t,subtitle:n})=>y.jsxs("section",{className:"gap-10 flex flex-col items-center justify-center",children:[y.jsx("img",{src:e,alt:t,width:100,height:100}),y.jsx("h1",{className:"font-bold text-2xl align-middle",children:t}),y.jsx("p",{className:"text-lg align-middle font-semibold text-gray-500",children:n})]}),Fk=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"}},L2=e=>{switch(e){case"warning":return"text-yellow-500";case"error":return"text-red-500";default:return"text-blue-500"}},Vk=({description:e,title:t,className:n,icon:r,type:i="informative",iconClassName:o=""})=>y.jsxs("div",{className:`flex items-center gap-12 p-12 w-full ${Fk(i)} rounded-lg ${n}`,children:[r?y.jsx(Pe,{icon:r,className:`min-h-20 h-20 ${o} ${L2(i)}`}):y.jsx(Pe,{icon:hN,className:`min-h-20 h-20 ${o} ${L2(i)}`}),y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsx("h4",{className:"text-body-s font-500 text-black leading-none",children:t}),y.jsx("p",{className:"text-gray-600 text-body-s leading-none",children:e})]})]}),Bk=({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 y.jsx("div",{...c,className:`relative flex items-center justify-center ${a}`,children:y.jsx("svg",{height:e,width:e,className:"animate-spin",children:y.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:o+" "+o,strokeDashoffset:o/4,r:i,cx:e/2,cy:e/2})})})},Wk=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a})=>{const{field:{value:c="",onChange:u,ref:f,onBlur:h},fieldState:{error:m}}=hr.useController({name:n,control:t}),[p,v]=_.useState(!1),{t:S}=Ue();return y.jsxs("label",{className:`flex flex-col group gap-8 select-none ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[y.jsx("h6",{className:`text-gray-600 font-600 group ${m&&"!text-red-500"} text-label ${o&&"text-gray-300"}`,children:e}),y.jsxs("label",{htmlFor:n,className:`
731
+ `+(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 f=[];for(let h of Object.values(this.internalTests))h&&f.push(h);this.runTests({path:o,value:u,originalValue:a,options:n,tests:f},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:f}=t,h=x=>{i||(i=!0,n(x,a))},m=x=>{i||(i=!0,r(x,a))},p=o.length,v=[];if(!p)return m([]);let S={value:a,originalValue:c,path:u,options:f,schema:this};for(let x=0;x<o.length;x++){const T=o[x];T(S,h,function(A){A&&(Array.isArray(A)?v.push(...A):v.push(A)),--p<=0&&m(v)})}}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 f=r[c];const h=Object.assign({},a,{strict:!0,parent:r,value:f,originalValue:o[c],key:void 0,[u?"index":"key"]:c,path:u||c.includes(".")?`${i||""}[${u?c:`"${c}"`}]`:(i?`${i}.`:"")+t});return(m,p,v)=>this.resolve(h)._validate(f,h,p,v)}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,f)=>{jt.isError(u)&&(u.value=f),c(u)},(u,f)=>{u.length?c(new jt(u,f,void 0,void 0,o)):a(f)}))}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):Es(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=Ts({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=Ts({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Bn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Bn.notNull){return this.nullability(!1,t)}required(t=Bn.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=Bn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=Ts(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=C2(t).map(o=>new Ti(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new pl(i,n):pl.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Ts({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=Bn.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=Ts({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=Bn.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=Ts({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,f,h)=>h.findIndex(m=>m.name===u.name)===f)}}}Wn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Wn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:a}=hk(this,t,n,r.context);return a[e](i&&i[o],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Wn.prototype[e]=Wn.prototype.oneOf;for(const e of["not","nope"])Wn.prototype[e]=Wn.prototype.notOneOf;const mk=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function pk(e){const t=ch(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 ch(e){var t,n;const r=mk.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 gk=/^[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])?)*$/,yk=/^((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,vk=/^(?:[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,xk="^\\d{4}-\\d{2}-\\d{2}",bk="\\d{2}:\\d{2}:\\d{2}",wk="(([+-]\\d{2}(:?\\d{2})?)|Z)",Sk=new RegExp(`${xk}T${bk}(\\.\\d+)?${wk}$`),Tk=e=>Ei(e)||e===e.trim(),Ek={}.toString();function Br(){return new _2}class _2 extends Wn{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===Ek?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Bn.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(gk,{name:"email",message:t,excludeEmptyString:!0})}url(t=Ft.url){return this.matches(yk,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Ft.uuid){return this.matches(vk,{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(Sk,{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=ch(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=ch(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:Tk})}lowercase(t=Ft.lowercase){return this.transform(n=>Ei(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ei(n)||n===n.toLowerCase()})}uppercase(t=Ft.uppercase){return this.transform(n=>Ei(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ei(n)||n===n.toUpperCase()})}}Br.prototype=_2.prototype;let Ck=new Date(""),Pk=e=>Object.prototype.toString.call(e)==="[object Date]";class uh extends Wn{constructor(){super({type:"date",check(t){return Pk(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=pk(t),isNaN(t)?uh.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Ti.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=ah.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=ah.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)}})}}uh.INVALID_DATE=Ck;function Ak(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([a,c])=>`${a}-${c}`));function o(a,c){let u=Si.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),Ti.isRef(c)&&c.isSibling?o(c.path,a):lh(c)&&"deps"in c&&c.deps.forEach(u=>o(u,a))}return rk.array(Array.from(r),n).reverse()}function I2(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 $2(e){return(t,n)=>I2(e,t)-I2(e,n)}const Mk=(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 vl(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=vl(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=vl(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(vl)}):"optional"in e?e.optional():e}const Ok=(e,t)=>{const n=[...Si.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=Si.getter(Si.join(n),!0)(e);return!!(i&&r in i)};let D2=e=>Object.prototype.toString.call(e)==="[object Object]";function N2(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const _k=$2([]);function fh(e){return new k2(e)}class k2 extends Wn{constructor(t){super({type:"object",check(n){return D2(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=_k,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={},f=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),h=!1;for(const m of c){let p=o[m],v=m in i;if(p){let S,x=i[m];f.path=(n.path?`${n.path}.`:"")+m,p=p.resolve({value:x,context:n.context,parent:u});let T=p instanceof Wn?p.spec:void 0,b=T==null?void 0:T.strict;if(T!=null&&T.strip){h=h||m in i;continue}S=!n.__validating||!b?p.cast(i[m],f):i[m],S!==void 0&&(u[m]=S)}else v&&!a&&(u[m]=i[m]);(v!==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,f)=>{if(!c||!D2(f)){i(u,f);return}a=a||f;let h=[];for(let m of this._nodes){let p=this.fields[m];!p||Ti.isRef(p)||h.push(p.asNestedTest({options:n,key:m,parent:f,parentPath:n.path,originalParent:a}))}this.runTests({tests:h,value:f,originalValue:a,options:n},r,m=>{i(m.sort(this._sortErrors).concat(u),f)})})}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=Ak(t,n),r._sortErrors=$2(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 vl(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=Si.getter(t,!0);return this.transform(o=>{if(!o)return o;let a=o;return Ok(o,t)&&(a=Object.assign({},o),r||delete a[t],a[n]=i(o)),a})}json(){return this.transform(Mk)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||ml.exact,test(n){if(n==null)return!0;const r=N2(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=ml.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=N2(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=ml.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(oh.camelCase)}snakeCase(){return this.transformKeys(oh.snakeCase)}constantCase(){return this.transformKeys(t=>oh.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}}fh.prototype=k2.prototype,fh().shape({labelES:Br().required(),label:Br().required(),code:Br().required(),codeISO2:Br().required(),phone:Br().required()});const L2=[{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"}],Ik=({countries:e=L2,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:f,fieldState:h}=hr.useController({name:t,control:n,rules:{validate:{}},defaultValue:null}),[m,p]=_.useState(!1),[v,S]=_.useState(""),[x,T]=_.useState(f.value||null),b=_.useRef(null),A=_.useRef(null),E=_.useRef(null),{x:$,y:C,strategy:D,refs:j,context:F,placement:U,middlewareData:Z}=jr({open:m,onOpenChange:p,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:pe,elements:De}){Object.assign(De.floating.style,{maxHeight:`${Math.min(pe-10,300)}px`})},padding:8}),bs({element:A})],placement:"bottom-start",whileElementsMounted:$r}),ee=vi(F),se=Rr(F),{getReferenceProps:ge,getFloatingProps:ue}=Fr([ee,se]),{isMounted:fe,styles:he}=xi(F,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),B=(Array.isArray(e)?e:[]).filter(pe=>{if(!v.trim())return!0;const De=o==="es"&&pe.labelES?pe.labelES.toLowerCase():pe.label.toLowerCase(),ft=pe.code?pe.code.toLowerCase():"";return De.includes(v.toLowerCase())||ft.includes(v.toLowerCase())}),Y=pe=>{T(pe),p(!1),S(""),f.onChange(pe)},O=()=>{p(!m),!m&&b.current&&setTimeout(()=>{var pe;(pe=b.current)==null||pe.focus()},100)},k=()=>{setTimeout(()=>{m||f.onBlur()},200)};_.useEffect(()=>{T(f.value)},[f.value]),_.useEffect(()=>{const pe=De=>{E.current&&!E.current.contains(De.target)&&f.onBlur()};return document.addEventListener("mousedown",pe),()=>{document.removeEventListener("mousedown",pe)}},[f]);const K=pe=>{var De;return pe?pe.codeISO2?pe.codeISO2.toLowerCase():((De=pe.code)==null?void 0:De.toLowerCase())||"":""},ae=(Ce=Z.arrow)==null?void 0:Ce.x,le=(Ve=Z.arrow)==null?void 0:Ve.y,z={top:"bottom",right:"left",bottom:"top",left:"right"}[U.split("-")[0]],J=ge({onClick:O,onBlur:k}),oe=u(r),re=u(i),de=(ie=h.error)==null?void 0:ie.message;return y.jsxs("div",{ref:E,className:`w-full relative flex flex-col gap-8 ${a}`,children:[y.jsx("label",{className:`text-gray-600 font-600 group ${de&&"!text-red-500"} text-label`,children:oe}),y.jsxs("div",{ref:j.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"}`,...J,tabIndex:0,children:[x!=null&&x.code?y.jsxs("div",{className:"flex items-center w-full gap-10",children:[K(x)&&y.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${K(x)}.png`,srcSet:`https://flagcdn.com/w40/${K(x)}.png 2x`,alt:x.label,onError:pe=>{pe.currentTarget.style.display="none"}}),y.jsxs("span",{className:"flex-grow font-600 text-body-m",children:[o==="es"&&x.labelES?x.labelES:x.label,x.code?` (${x.code})`:u("select_country")]})]}):y.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:re}),y.jsx("svg",{className:`w-16 h-16 transition-transform ${m?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),de&&y.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(de,{x:u(c||"")||u(t)})}),fe&&y.jsxs("div",{ref:j.setFloating,style:{position:D,top:C??0,left:$??0,...he},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ue(),children:[y.jsx("div",{ref:A,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ae!=null?`${ae}px`:"",top:le!=null?`${le}px`:"",right:"",bottom:"",[z]:"-2px",borderRight:z==="left"?"1px solid":"none",borderBottom:z==="top"?"1px solid":"none",borderLeft:z==="right"?"1px solid":"none",borderTop:z==="bottom"?"1px solid":"none"}}),y.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:y.jsx("input",{ref:b,type:"text",className:"w-full p-16 text-body-s",placeholder:u("search")+"...",value:v,onChange:pe=>S(pe.target.value),onClick:pe=>pe.stopPropagation(),onBlur:pe=>{pe.stopPropagation()},autoFocus:!0})}),y.jsx("div",{children:B.length>0?y.jsx("ul",{className:"flex flex-col",children:B.map((pe,De)=>{var Ci;const ft=pe.codeISO2?pe.codeISO2.toLowerCase():((Ci=pe.code)==null?void 0:Ci.toLowerCase())||"";return y.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(),Y(pe)},children:[ft&&y.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"}}),y.jsxs("span",{children:[o==="es"&&pe.labelES?pe.labelES:pe.label,pe.code?` (${pe.code})`:"Country not found"]})]},`${pe.code}-${De}`)})}):y.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},$k=({country:e})=>{const t=n=>{var r;return n?n.codeISO2?n.codeISO2.toLowerCase():((r=n.code)==null?void 0:r.toLowerCase())||"":""};return y.jsxs("div",{className:"flex items-center gap-8",children:[y.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"}}),y.jsx("p",{className:"text-body-s text-gray-600",children:e.label})]})},Dk=({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 y.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:u,value:f},fieldState:{error:h}})=>y.jsx(Nk,{countries:e,value:f,onChange:u,label:c(r),placeholder:c(i),language:o,error:h==null?void 0:h.message,className:a})})},Nk=({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,le;const{t:u}=Ue(),[f,h]=_.useState(!1),[m,p]=_.useState(""),[v,S]=_.useState(t||null),x=_.useRef(null),T=_.useRef(null),{x:b,y:A,strategy:E,refs:$,context:C,placement:D,middlewareData:j}=jr({open:f,onOpenChange:h,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:z,elements:J}){Object.assign(J.floating.style,{maxHeight:`${Math.min(z-10,300)}px`})},padding:8}),bs({element:T})],placement:"bottom-start",whileElementsMounted:$r}),F=vi(C),U=Rr(C),{getReferenceProps:Z,getFloatingProps:ee}=Fr([F,U]),{isMounted:se,styles:ge}=xi(C,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),fe=(Array.isArray(e)?e:[]).filter(z=>{if(!m.trim())return!0;const J=o==="es"&&z.labelES?z.labelES.toLowerCase():z.label.toLowerCase(),oe=z.code?z.code.toLowerCase():"";return J.includes(m.toLowerCase())||oe.includes(m.toLowerCase())}),he=z=>{S(z),h(!1),p(""),n(z)},V=()=>{h(!f),!f&&x.current&&setTimeout(()=>{var z;(z=x.current)==null||z.focus()},100)};_.useEffect(()=>{S(t)},[t]);const B=z=>{var J;return z?z.codeISO2?z.codeISO2.toLowerCase():((J=z.code)==null?void 0:J.toLowerCase())||"":""},Y=(ae=j.arrow)==null?void 0:ae.x,O=(le=j.arrow)==null?void 0:le.y,k={top:"bottom",right:"left",bottom:"top",left:"right"}[D.split("-")[0]],K=Z({onClick:V});return y.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[y.jsx("label",{className:`text-gray-600 font-600 group ${a&&"!text-red-500"} text-label`,children:r}),y.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"} ${se?"border-blue-400":"border-blue-100"}`,...K,children:[v!=null&&v.code?y.jsxs("div",{className:"flex items-center w-full",children:[B(v)&&y.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${B(v)}.png`,srcSet:`https://flagcdn.com/w40/${B(v)}.png 2x`,alt:v.label,onError:z=>{z.currentTarget.style.display="none"}}),y.jsxs("span",{className:"flex-grow",children:[o==="es"&&v.labelES?v.labelES:v.label,v.code?` (${v.code})`:u("select_country")]})]}):y.jsx("span",{className:"text-gray-500",children:i}),y.jsx("svg",{className:`w-16 h-16 transition-transform ${f?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),a&&y.jsx("p",{className:"mt-1 text-sm text-red-600",children:a}),se&&y.jsxs("div",{ref:$.setFloating,style:{position:E,top:A??0,left:b??0,...ge},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ee(),children:[y.jsx("div",{ref:T,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:Y!=null?`${Y}px`:"",top:O!=null?`${O}px`:"",right:"",bottom:"",[k]:"-2px",borderRight:k==="left"?"1px solid":"none",borderBottom:k==="top"?"1px solid":"none",borderLeft:k==="right"?"1px solid":"none",borderTop:k==="bottom"?"1px solid":"none"}}),y.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:y.jsx("input",{ref:x,type:"text",className:"w-full p-16",placeholder:u("search")+"...",value:m,onChange:z=>p(z.target.value),onClick:z=>z.stopPropagation(),autoFocus:!0})}),y.jsx("div",{children:fe.length>0?y.jsx("ul",{className:"flex flex-col",children:fe.map((z,J)=>{var re;const oe=z.codeISO2?z.codeISO2.toLowerCase():((re=z.code)==null?void 0:re.toLowerCase())||"";return y.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(z)},children:[oe&&y.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${oe}.png`,srcSet:`https://flagcdn.com/w40/${oe}.png 2x`,alt:z.label,onError:de=>{de.currentTarget.style.display="none"}}),y.jsxs("span",{children:[o==="es"&&z.labelES?z.labelES:z.label,z.code?` (${z.code})`:"Country not found"]})]},`${z.code}-${J}`)})}):y.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No countries found"})})]})]})},dh=({variant:e="filled",color:t,size:n="base",shadow:r="none",icon:i,iconProps:o={},children:a,className:c,...u})=>{const{defaultColorScheme:f}=Ue(),h=t||f;return y.jsx("button",{...u,className:`${VN(e,h,n,r)} ${c}`,children:i?y.jsx(Pe,{...o,className:jo(n),icon:i}):a})};function kk(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 Lk=({src:e,alt:t,isEditable:n=!1,onChange:r,className:i="",name:o,control:a,user:c})=>{const[u,f]=_.useState(e||null),[h,m]=_.useState(!!e),p=_.useRef(null),v=hr.useController({name:o,control:a}),S=!!a;_.useEffect(()=>{if(S){const A=v==null?void 0:v.field.value;if(kk(A)){const E=URL.createObjectURL(A);return f(E),m(!0),()=>URL.revokeObjectURL(E)}else typeof A=="string"&&A&&A!==e?(f(A),m(!0)):e?(f(e),m(!0)):(f(null),m(!1))}},[v==null?void 0:v.field.value,e]);const x=()=>{var A;n&&((A=p.current)==null||A.click())},T=A=>{var $;const E=($=A.target.files)==null?void 0:$[0];if(E){const C=URL.createObjectURL(E);f(C),m(!0),S&&(v==null||v.field.onChange(E)),r&&r(E)}},b=A=>{A.stopPropagation(),f(null),m(!1),p.current&&(p.current.value=""),S&&(v==null||v.field.onChange(null)),r&&r(null)};return y.jsxs("div",{className:"relative flex items-center gap-10",children:[n&&h&&y.jsx("button",{type:"button",onClick:b,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:y.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:[y.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),y.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),y.jsxs("div",{className:`relative flex items-center justify-center h-40 w-40 ${n?"cursor-pointer hover:opacity-80":""} ${i}`,onClick:x,children:[u?y.jsx("img",{src:u,alt:t,className:"w-full h-full object-cover rounded-full"}):y.jsx(v2,{size:60,user:c}),n&&y.jsxs(y.Fragment,{children:[y.jsx("input",{type:"file",ref:A=>{p.current=A,v&&v.field.ref(A)},onChange:T,onBlur:v==null?void 0:v.field.onBlur,accept:"image/*",className:"hidden"}),!h&&y.jsx("div",{className:"absolute bottom-0 right-0 bg-blue-100 rounded-full h-20 w-20 flex items-center justify-center",children:y.jsx(Pe,{icon:Z5,className:"text-blue-500"})})]})]})]})},Rk=fh({name:Br(),base64:Br()}),jk=({imageUrl:e,title:t,subtitle:n})=>y.jsxs("section",{className:"gap-10 flex flex-col items-center justify-center",children:[y.jsx("img",{src:e,alt:t,width:100,height:100}),y.jsx("h1",{className:"font-bold text-2xl align-middle",children:t}),y.jsx("p",{className:"text-lg align-middle font-semibold text-gray-500",children:n})]}),Fk=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"}},R2=e=>{switch(e){case"warning":return"text-yellow-500";case"error":return"text-red-500";default:return"text-blue-500"}},Vk=({description:e,title:t,className:n,icon:r,type:i="informative",iconClassName:o=""})=>y.jsxs("div",{className:`flex items-center gap-12 p-12 w-full ${Fk(i)} rounded-lg ${n}`,children:[r?y.jsx(Pe,{icon:r,className:`min-h-20 h-20 ${o} ${R2(i)}`}):y.jsx(Pe,{icon:hN,className:`min-h-20 h-20 ${o} ${R2(i)}`}),y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsx("h4",{className:"text-body-s font-500 text-black leading-none",children:t}),y.jsx("p",{className:"text-gray-600 text-body-s leading-none",children:e})]})]}),Bk=({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 y.jsx("div",{...c,className:`relative flex items-center justify-center ${a}`,children:y.jsx("svg",{height:e,width:e,className:"animate-spin",children:y.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:o+" "+o,strokeDashoffset:o/4,r:i,cx:e/2,cy:e/2})})})},Wk=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a})=>{const{field:{value:c="",onChange:u,ref:f,onBlur:h},fieldState:{error:m}}=hr.useController({name:n,control:t}),[p,v]=_.useState(!1),{t:S}=Ue();return y.jsxs("label",{className:`flex flex-col group gap-8 select-none ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[y.jsx("h6",{className:`text-gray-600 font-600 group ${m&&"!text-red-500"} text-label ${o&&"text-gray-300"}`,children:e}),y.jsxs("label",{htmlFor:n,className:`
732
732
  flex items-center justify-between gap-8 p-16
733
733
 
734
734
  ${m&&"!border-red-500"}
@@ -744,7 +744,7 @@ attempted value: ${a}
744
744
  group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
745
745
 
746
746
  group-disabled:bg-gray-500
747
- `,children:[a&&a,y.jsx("input",{id:n,type:p?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:n,disabled:o,placeholder:r,value:c,onChange:x=>u(x.target.value),onBlur:h,ref:f,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"}),y.jsx(Pe,{icon:p?HC:UC,className:"min-h-16 max-h-16 text-gray-400 hover:text-gray-500 transition-colors duration-150 cursor-pointer ease-in-out",onClick:()=>v(!p)})]}),y.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:m&&S(m.message||"",{x:S(n)})})]})},Uk=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:i="en",className:o="",translateKey:a,countries:c=k2})=>{var Ai,Sl,Wr,Tl;const{t:u}=Ue(),{field:f,fieldState:h}=hr.useController({name:e,control:t,rules:{validate:{}}}),m=((Ai=f.value)==null?void 0:Ai.split(" "))||[],p=m[0]||null,v=m[1]||"",S=c.find(xe=>p===xe.phone),[x,T]=_.useState(!1),[b,A]=_.useState(""),[E,$]=_.useState(S||null),[C,D]=_.useState(v),[j,F]=_.useState(!1),U=_.useRef(null),Z=_.useRef(null),ee=_.useRef(null),se=_.useRef(null),{x:ge,y:ue,strategy:fe,refs:he,context:V,placement:B,middlewareData:Y}=jr({open:x,onOpenChange:T,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:xe,elements:Qe}){Object.assign(Qe.floating.style,{maxHeight:`${Math.min(xe-10,300)}px`})},padding:8}),bs({element:Z})],placement:"bottom-start",whileElementsMounted:$r}),O=vi(V),k=Rr(V),{getReferenceProps:K,getFloatingProps:ae}=Fr([O,k]),{isMounted:le,styles:z}=xi(V,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),oe=(Array.isArray(c)?c:[]).filter(xe=>{if(!b.trim())return!0;const Qe=i==="es"&&xe.labelES?xe.labelES.toLowerCase():xe.label.toLowerCase(),Pt=xe.code?xe.code.toLowerCase():"",wn=xe.phone?xe.phone.toLowerCase():"";return Qe.includes(b.toLowerCase())||Pt.includes(b.toLowerCase())||wn.includes(b.toLowerCase())}),re=xe=>{$(xe),T(!1),A("");const Qe=`${xe.phone} ${C}`;f.onChange(Qe),setTimeout(()=>{var Pt;(Pt=ee.current)==null||Pt.focus()},100)},de=xe=>{const Qe=xe.target.value;if(D(Qe),E){const Pt=`${E.phone} ${Qe}`;f.onChange(Pt)}},Ce=()=>{T(!x),!x&&U.current&&setTimeout(()=>{var xe;(xe=U.current)==null||xe.focus()},100)},Ve=()=>{setTimeout(()=>{x||f.onBlur()},200)},ie=()=>{F(!0)},pe=()=>{F(!1)};_.useEffect(()=>{if(f.value){const xe=f.value.split(" "),Qe=xe[0]||"",Pt=xe[1]||"",wn=c.find(rr=>rr.phone===Qe);wn&&$(wn),D(Pt)}},[f.value,c]),_.useEffect(()=>{const xe=Qe=>{se.current&&!se.current.contains(Qe.target)&&f.onBlur()};return document.addEventListener("mousedown",xe),()=>{document.removeEventListener("mousedown",xe)}},[f]);const De=xe=>{var Qe;return xe?xe.codeISO2?xe.codeISO2.toLowerCase():((Qe=xe.code)==null?void 0:Qe.toLowerCase())||"":""},ft=(Sl=Y.arrow)==null?void 0:Sl.x,Ci=(Wr=Y.arrow)==null?void 0:Wr.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[B.split("-")[0]],bl=K({onClick:Ce,onBlur:Ve}),wl=()=>h.error?"border-red-500":j||x?"border-blue-400":"border-blue-100",Pi=u(n),qt=u(r),bn=(Tl=h.error)==null?void 0:Tl.message;return y.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${o}`,children:[y.jsx("label",{className:`text-gray-600 font-600 group ${bn&&"!text-red-500"} text-label`,children:Pi}),y.jsxs("div",{ref:se,className:"flex items-center w-full",onMouseEnter:ie,onMouseLeave:pe,children:[y.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":wl()}`,style:{minWidth:"140px"},...bl,tabIndex:0,children:[E!=null&&E.code?y.jsxs("div",{className:"flex items-center truncate",children:[De(E)&&y.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${De(E)}.png`,srcSet:`https://flagcdn.com/w40/${De(E)}.png 2x`,alt:E.label,onError:xe=>{xe.currentTarget.style.display="none"}}),y.jsxs("span",{children:["+",E.phone]})]}):y.jsx("span",{className:"text-gray-400 font-600 text-body-m truncate",children:u("select_country")}),y.jsx(Pe,{icon:n2,className:"w-14 h-14 min-w-14 min-h-14"})]}),y.jsx("input",{ref:ee,type:"tel",className:`placeholder:text-gray-400 flex-grow bg-light rounded-r-full font-600 text-body-m p-16 border transition-all duration-200 ${bn?"border-red-500":wl()}`,placeholder:qt,value:C,onChange:de,onBlur:Ve})]}),bn&&y.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(bn,{x:u(a||"")||e})}),le&&y.jsxs("div",{ref:he.setFloating,style:{position:fe,top:ue??0,left:ge??0,...z},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...ae(),children:[y.jsx("div",{ref:Z,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ft!=null?`${ft}px`:"",top:Ci!=null?`${Ci}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"}}),y.jsx("div",{className:"sticky top-0 bg-white p-2 z-20 w-fit",children:y.jsx("input",{ref:U,type:"text",className:"w-fit p-16",placeholder:u("search")+"...",value:b,onChange:xe=>A(xe.target.value),onClick:xe=>xe.stopPropagation(),onBlur:xe=>{xe.stopPropagation()},autoFocus:!0})}),y.jsx("div",{children:oe.length>0?y.jsx("ul",{className:"flex flex-col",children:oe.map((xe,Qe)=>{var wn;const Pt=xe.codeISO2?xe.codeISO2.toLowerCase():((wn=xe.code)==null?void 0:wn.toLowerCase())||"";return y.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(xe)},children:[Pt&&y.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:xe.label,onError:rr=>{rr.currentTarget.style.display="none"}}),y.jsxs("span",{className:"text-gray-500",children:["+",xe.phone]})]},`${xe.code}-${Qe}`)})}):y.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},zk={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},Gk={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},Yk=e=>{switch(e){case"aqua":return Gk;case"blue":default:return zk}},Hk=({progress:e,showPercentage:t=!1,color:n,className:r="",...i})=>{const{defaultColorScheme:o}=Ue(),a=n||o,{bgColor:c,fillColor:u}=Yk(a),f=Math.min(Math.max(e,0),100);return y.jsxs("div",{className:`flex items-center gap-12 ${r}`,...i,children:[y.jsx("div",{className:`w-full h-8 ${c} rounded-full`,children:y.jsx("div",{className:`h-full ${u} rounded-full transition-all duration-300 ease-in-out`,style:{width:`${f}%`}})}),t&&y.jsxs("span",{className:"text-sm text-gray-400 font-500",children:[f,"%"]})]})},qk=()=>{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 y.jsx("div",{className:"relative flex items-center",children:y.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:[y.jsx("button",{onClick:r,className:"size-[40px] flex items-center justify-center rounded-full hover:bg-gray-100 transition-all",children:y.jsx(Pe,{icon:K5})}),y.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"}})]})})},Kk="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",Xk={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"},Zk={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"},Jk=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=Zk[n];break;case"blue":default:r=Xk[n];break}return Vn(Kk,r)},Qk=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ue(),f=c||u,h=p=>{if(i){p.preventDefault();return}n==null||n(p)},m=`${Jk(r,f)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?y.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&y.jsx(Pe,{icon:a,className:jo()}),e]}):y.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&y.jsx(Pe,{icon:a,className:jo()}),e]})},eL="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",tL={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},nL={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},rL="flex h-32 w-32 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",iL={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"},sL={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=iL[n];break;case"aqua":default:r=sL[n];break}return Vn(rL,r)},oL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=nL[n];break;case"blue":default:r=tL[n];break}return Vn(eL,r)},aL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ue(),f=c||u,h=p=>{if(i){p.preventDefault();return}n==null||n(p)},m=`${oL(r,f)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?y.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&y.jsx("div",{className:R2(r,f),children:y.jsx(Pe,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]}):y.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&y.jsx("div",{className:R2(r,f),children:y.jsx(Pe,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]})},lL=e=>{const{display:t,...n}=e;return t==="desktop"?y.jsx(Qk,{...n}):t==="mobile"?y.jsx(aL,{...n}):null},cL=({options:e,name:t,control:n,label:r="Select an option",placeholder:i="Type to search...",className:o="",input:a=!0})=>y.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:c,value:u},fieldState:{error:f}})=>y.jsx(uL,{options:e,value:u,onChange:c,label:r,placeholder:i,error:f==null?void 0:f.message,className:o,input:a})}),uL=({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(),[f,h]=_.useState(!1),[m,p]=_.useState(""),[v,S]=_.useState(t||null),x=_.useRef(null),T=_.useRef(null),{x:b,y:A,strategy:E,refs:$,context:C}=jr({open:f,onOpenChange:h,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:V,elements:B}){Object.assign(B.floating.style,{maxHeight:`${Math.min(V-10,300)}px`})},padding:8}),bs({element:T})],placement:"bottom-start",whileElementsMounted:$r}),D=vi(C),j=Rr(C),{getReferenceProps:F,getFloatingProps:U}=Fr([D,j]),{isMounted:Z,styles:ee}=xi(C,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),se=(()=>{const V=Array.isArray(e)?e:[];if(!m.trim())return V;const B=m.toLowerCase();return V.filter(Y=>{const O=Y.label.toLowerCase(),k=Y.key.toLowerCase();return O.includes(B)||k.includes(B)})})(),ge=V=>{S(V),h(!1),p(""),n(V)},ue=()=>{h(!f),!f&&x.current&&setTimeout(()=>{var V;return(V=x.current)==null?void 0:V.focus()},100)};_.useEffect(()=>{S(t)},[t]);const fe=F({onClick:ue}),he=u(i);return y.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${a}`,children:[y.jsx("h6",{className:`text-gray-600 font-600 group ${o?"!text-red-500":""} text-label`,children:r}),y.jsxs("div",{ref:$.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
747
+ `,children:[a&&a,y.jsx("input",{id:n,type:p?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:n,disabled:o,placeholder:r,value:c,onChange:x=>u(x.target.value),onBlur:h,ref:f,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"}),y.jsx(Pe,{icon:p?HC:UC,className:"min-h-16 max-h-16 text-gray-400 hover:text-gray-500 transition-colors duration-150 cursor-pointer ease-in-out",onClick:()=>v(!p)})]}),y.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:m&&S(m.message||"",{x:S(n)})})]})},Uk=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:i="en",className:o="",translateKey:a,countries:c=L2})=>{var Ai,Sl,Wr,Tl;const{t:u}=Ue(),{field:f,fieldState:h}=hr.useController({name:e,control:t,rules:{validate:{}}}),m=((Ai=f.value)==null?void 0:Ai.split(" "))||[],p=m[0]||null,v=m[1]||"",S=c.find(xe=>p===xe.phone),[x,T]=_.useState(!1),[b,A]=_.useState(""),[E,$]=_.useState(S||null),[C,D]=_.useState(v),[j,F]=_.useState(!1),U=_.useRef(null),Z=_.useRef(null),ee=_.useRef(null),se=_.useRef(null),{x:ge,y:ue,strategy:fe,refs:he,context:V,placement:B,middlewareData:Y}=jr({open:x,onOpenChange:T,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:xe,elements:Qe}){Object.assign(Qe.floating.style,{maxHeight:`${Math.min(xe-10,300)}px`})},padding:8}),bs({element:Z})],placement:"bottom-start",whileElementsMounted:$r}),O=vi(V),k=Rr(V),{getReferenceProps:K,getFloatingProps:ae}=Fr([O,k]),{isMounted:le,styles:z}=xi(V,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),oe=(Array.isArray(c)?c:[]).filter(xe=>{if(!b.trim())return!0;const Qe=i==="es"&&xe.labelES?xe.labelES.toLowerCase():xe.label.toLowerCase(),Pt=xe.code?xe.code.toLowerCase():"",wn=xe.phone?xe.phone.toLowerCase():"";return Qe.includes(b.toLowerCase())||Pt.includes(b.toLowerCase())||wn.includes(b.toLowerCase())}),re=xe=>{$(xe),T(!1),A("");const Qe=`${xe.phone} ${C}`;f.onChange(Qe),setTimeout(()=>{var Pt;(Pt=ee.current)==null||Pt.focus()},100)},de=xe=>{const Qe=xe.target.value;if(D(Qe),E){const Pt=`${E.phone} ${Qe}`;f.onChange(Pt)}},Ce=()=>{T(!x),!x&&U.current&&setTimeout(()=>{var xe;(xe=U.current)==null||xe.focus()},100)},Ve=()=>{setTimeout(()=>{x||f.onBlur()},200)},ie=()=>{F(!0)},pe=()=>{F(!1)};_.useEffect(()=>{if(f.value){const xe=f.value.split(" "),Qe=xe[0]||"",Pt=xe[1]||"",wn=c.find(rr=>rr.phone===Qe);wn&&$(wn),D(Pt)}},[f.value,c]),_.useEffect(()=>{const xe=Qe=>{se.current&&!se.current.contains(Qe.target)&&f.onBlur()};return document.addEventListener("mousedown",xe),()=>{document.removeEventListener("mousedown",xe)}},[f]);const De=xe=>{var Qe;return xe?xe.codeISO2?xe.codeISO2.toLowerCase():((Qe=xe.code)==null?void 0:Qe.toLowerCase())||"":""},ft=(Sl=Y.arrow)==null?void 0:Sl.x,Ci=(Wr=Y.arrow)==null?void 0:Wr.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[B.split("-")[0]],bl=K({onClick:Ce,onBlur:Ve}),wl=()=>h.error?"border-red-500":j||x?"border-blue-400":"border-blue-100",Pi=u(n),qt=u(r),bn=(Tl=h.error)==null?void 0:Tl.message;return y.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${o}`,children:[y.jsx("label",{className:`text-gray-600 font-600 group ${bn&&"!text-red-500"} text-label`,children:Pi}),y.jsxs("div",{ref:se,className:"flex items-center w-full",onMouseEnter:ie,onMouseLeave:pe,children:[y.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":wl()}`,style:{minWidth:"140px"},...bl,tabIndex:0,children:[E!=null&&E.code?y.jsxs("div",{className:"flex items-center truncate",children:[De(E)&&y.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${De(E)}.png`,srcSet:`https://flagcdn.com/w40/${De(E)}.png 2x`,alt:E.label,onError:xe=>{xe.currentTarget.style.display="none"}}),y.jsxs("span",{children:["+",E.phone]})]}):y.jsx("span",{className:"text-gray-400 font-600 text-body-m truncate",children:u("select_country")}),y.jsx(Pe,{icon:r2,className:"w-14 h-14 min-w-14 min-h-14"})]}),y.jsx("input",{ref:ee,type:"tel",className:`placeholder:text-gray-400 flex-grow bg-light rounded-r-full font-600 text-body-m p-16 border transition-all duration-200 ${bn?"border-red-500":wl()}`,placeholder:qt,value:C,onChange:de,onBlur:Ve})]}),bn&&y.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(bn,{x:u(a||"")||e})}),le&&y.jsxs("div",{ref:he.setFloating,style:{position:fe,top:ue??0,left:ge??0,...z},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...ae(),children:[y.jsx("div",{ref:Z,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ft!=null?`${ft}px`:"",top:Ci!=null?`${Ci}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"}}),y.jsx("div",{className:"sticky top-0 bg-white p-2 z-20 w-fit",children:y.jsx("input",{ref:U,type:"text",className:"w-fit p-16",placeholder:u("search")+"...",value:b,onChange:xe=>A(xe.target.value),onClick:xe=>xe.stopPropagation(),onBlur:xe=>{xe.stopPropagation()},autoFocus:!0})}),y.jsx("div",{children:oe.length>0?y.jsx("ul",{className:"flex flex-col",children:oe.map((xe,Qe)=>{var wn;const Pt=xe.codeISO2?xe.codeISO2.toLowerCase():((wn=xe.code)==null?void 0:wn.toLowerCase())||"";return y.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(xe)},children:[Pt&&y.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:xe.label,onError:rr=>{rr.currentTarget.style.display="none"}}),y.jsxs("span",{className:"text-gray-500",children:["+",xe.phone]})]},`${xe.code}-${Qe}`)})}):y.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},zk={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},Gk={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},Yk=e=>{switch(e){case"aqua":return Gk;case"blue":default:return zk}},Hk=({progress:e,showPercentage:t=!1,color:n,className:r="",...i})=>{const{defaultColorScheme:o}=Ue(),a=n||o,{bgColor:c,fillColor:u}=Yk(a),f=Math.min(Math.max(e,0),100);return y.jsxs("div",{className:`flex items-center gap-12 ${r}`,...i,children:[y.jsx("div",{className:`w-full h-8 ${c} rounded-full`,children:y.jsx("div",{className:`h-full ${u} rounded-full transition-all duration-300 ease-in-out`,style:{width:`${f}%`}})}),t&&y.jsxs("span",{className:"text-sm text-gray-400 font-500",children:[f,"%"]})]})},qk=()=>{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 y.jsx("div",{className:"relative flex items-center",children:y.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:[y.jsx("button",{onClick:r,className:"size-[40px] flex items-center justify-center rounded-full hover:bg-gray-100 transition-all",children:y.jsx(Pe,{icon:K5})}),y.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"}})]})})},Kk="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",Xk={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"},Zk={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"},Jk=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=Zk[n];break;case"blue":default:r=Xk[n];break}return Vn(Kk,r)},Qk=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ue(),f=c||u,h=p=>{if(i){p.preventDefault();return}n==null||n(p)},m=`${Jk(r,f)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?y.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&y.jsx(Pe,{icon:a,className:jo()}),e]}):y.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&y.jsx(Pe,{icon:a,className:jo()}),e]})},eL="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",tL={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},nL={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},rL="flex h-32 w-32 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",iL={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"},sL={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"},j2=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=iL[n];break;case"aqua":default:r=sL[n];break}return Vn(rL,r)},oL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=nL[n];break;case"blue":default:r=tL[n];break}return Vn(eL,r)},aL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ue(),f=c||u,h=p=>{if(i){p.preventDefault();return}n==null||n(p)},m=`${oL(r,f)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?y.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&y.jsx("div",{className:j2(r,f),children:y.jsx(Pe,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]}):y.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&y.jsx("div",{className:j2(r,f),children:y.jsx(Pe,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]})},lL=e=>{const{display:t,...n}=e;return t==="desktop"?y.jsx(Qk,{...n}):t==="mobile"?y.jsx(aL,{...n}):null},cL=({options:e,name:t,control:n,label:r="Select an option",placeholder:i="Type to search...",className:o="",input:a=!0})=>y.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:c,value:u},fieldState:{error:f}})=>y.jsx(uL,{options:e,value:u,onChange:c,label:r,placeholder:i,error:f==null?void 0:f.message,className:o,input:a})}),uL=({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(),[f,h]=_.useState(!1),[m,p]=_.useState(""),[v,S]=_.useState(t||null),x=_.useRef(null),T=_.useRef(null),{x:b,y:A,strategy:E,refs:$,context:C}=jr({open:f,onOpenChange:h,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:V,elements:B}){Object.assign(B.floating.style,{maxHeight:`${Math.min(V-10,300)}px`})},padding:8}),bs({element:T})],placement:"bottom-start",whileElementsMounted:$r}),D=vi(C),j=Rr(C),{getReferenceProps:F,getFloatingProps:U}=Fr([D,j]),{isMounted:Z,styles:ee}=xi(C,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),se=(()=>{const V=Array.isArray(e)?e:[];if(!m.trim())return V;const B=m.toLowerCase();return V.filter(Y=>{const O=Y.label.toLowerCase(),k=Y.key.toLowerCase();return O.includes(B)||k.includes(B)})})(),ge=V=>{S(V),h(!1),p(""),n(V)},ue=()=>{h(!f),!f&&x.current&&setTimeout(()=>{var V;return(V=x.current)==null?void 0:V.focus()},100)};_.useEffect(()=>{S(t)},[t]);const fe=F({onClick:ue}),he=u(i);return y.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${a}`,children:[y.jsx("h6",{className:`text-gray-600 font-600 group ${o?"!text-red-500":""} text-label`,children:r}),y.jsxs("div",{ref:$.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
748
748
  border transition-all duration-200 hover:border-blue-400
749
749
  ${o?"border-red-500 hover:border-red-600":""} ${f?"border-blue-400":"border-blue-100"}`,...fe,children:[v?y.jsx("div",{className:"flex items-center w-full",children:y.jsx("span",{className:"flex-grow font-600 text-body-m",children:u(v.label)})}):y.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:he}),y.jsx("svg",{className:`w-16 h-16 transition-transform ${f?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),o&&y.jsx("p",{className:"mt-1 text-sm text-red-600",children:o}),Z&&y.jsxs("div",{ref:$.setFloating,style:{position:E,top:A??0,left:b??0,...ee,width:$.reference.current instanceof Element?$.reference.current.clientWidth:void 0,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...U(),children:[c&&y.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:y.jsxs("div",{className:"relative",children:[y.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:y.jsx("svg",{className:"h-16 w-16 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),y.jsx("input",{ref:x,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&&y.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:V=>{V.stopPropagation(),p("")},children:y.jsx("svg",{className:"h-16 w-16 text-gray-400 hover:text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]})}),y.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:se.length>0?y.jsx("ul",{className:"py-4",children:se.map((V,B)=>y.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${(v==null?void 0:v.key)===V.key?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:Y=>{Y.stopPropagation(),ge(V)},children:y.jsx("span",{children:u(V.label)})},`${V.key}-${B}`))}):y.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[y.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.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"})}),y.jsxs("p",{className:"mt-8 text-body-s",children:['No matches found for "',m,'"']})]})})]})]})},fL={activeTextColor:"text-blue-500",activeBgColor:"bg-blue-100",hoverBgColor:"hover:bg-blue-100",activeIconColor:"text-blue-500"},dL={activeTextColor:"text-aqua-500",activeBgColor:"bg-aqua-100",hoverBgColor:"hover:bg-aqua-100",activeIconColor:"text-aqua-500"},hL=e=>{switch(e){case"aqua":return dL;case"blue":default:return fL}},mL=({active:e,icon:t,label:n,onClick:r,expanded:i,disabled:o=!1,color:a})=>{const{defaultColorScheme:c}=Ue(),u=a||c,{activeTextColor:f,activeBgColor:h,hoverBgColor:m,activeIconColor:p}=hL(u);return y.jsxs("div",{onClick:()=>!o&&r(),className:`
750
750
  flex items-center rounded-full text-gray transition-all duration-150 h-[40px] w-full px-[12.3px]
@@ -759,7 +759,7 @@ attempted value: ${a}
759
759
  transition-all duration-100 ease-in-out
760
760
  opacity-0 capitalize
761
761
  ${i&&"translate-x-0 opacity-100 !w-full !h-auto ml-8"}
762
- ${e&&f}`,children:n})]})},pL="flex w-full h-full gap-12 px-10 py-6 items-center justify-center",gL={default:"flex-row rounded-full text-blue-500",underline:"flex-col border-b-[1.3px] px-24 pb-16 text-gray-700"},yL={true:"text-blue-500 border-b-blue-500",false:"text-gray-700 border-b-gray-700"},vL=(e="underline",t=!1)=>Vn(pL,gL[e],yL[String(t)]),j2=({label:e,icon:t,isSelected:n,onClick:r,variant:i="default",direction:o="row",labelClassName:a=""})=>y.jsxs("button",{className:`${vL(i,n)} w-full cursor-pointer transition-all duration-200 ${o==="row"&&"flex-row!"}`,onClick:r,children:[t&&y.jsx(Pe,{icon:t,className:`${n?"text-blue-500":"text-gray-500"} w-20 h-20`}),y.jsx("span",{className:Vn("text-lg font-500",a),children:e})]}),xL="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",bL={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"},wL=(e="blue")=>Vn(xL,bL[e]),F2=({color:e,children:t,className:n,...r})=>{const{defaultColorScheme:i}=Ue(),o=e||i;return y.jsx("button",{type:"button",className:wL(o)+" "+n,...r,children:t})},SL=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a,rightSide:c,translateKey:u="",size:f="base",...h})=>{const{field:{value:m="",onChange:p,ref:v,onBlur:S},fieldState:{error:x}}=hr.useController({name:n,control:t}),{t:T}=Ue(),A={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"}}[f],E=T(n),$=T(u);return y.jsxs("label",{className:`flex flex-col group select-none ${A.gap} ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[y.jsx("h6",{className:`text-gray-600 font-600 group ${x&&"text-red-500!"} ${A.label} ${o&&"text-gray-300"}`,children:e}),y.jsxs("label",{htmlFor:n,className:`
762
+ ${e&&f}`,children:n})]})},pL="flex w-full h-full gap-12 px-10 py-6 items-center justify-center",gL={default:"flex-row rounded-full text-blue-500",underline:"flex-col border-b-[1.3px] px-24 pb-16 text-gray-700"},yL={true:"text-blue-500 border-b-blue-500",false:"text-gray-700 border-b-gray-700"},vL=(e="underline",t=!1)=>Vn(pL,gL[e],yL[String(t)]),F2=({label:e,icon:t,isSelected:n,onClick:r,variant:i="default",direction:o="row",labelClassName:a=""})=>y.jsxs("button",{className:`${vL(i,n)} w-full cursor-pointer transition-all duration-200 ${o==="row"&&"flex-row!"}`,onClick:r,children:[t&&y.jsx(Pe,{icon:t,className:`${n?"text-blue-500":"text-gray-500"} w-20 h-20`}),y.jsx("span",{className:Vn("text-lg font-500",a),children:e})]}),xL="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",bL={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"},wL=(e="blue")=>Vn(xL,bL[e]),V2=({color:e,children:t,className:n,...r})=>{const{defaultColorScheme:i}=Ue(),o=e||i;return y.jsx("button",{type:"button",className:wL(o)+" "+n,...r,children:t})},SL=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a,rightSide:c,translateKey:u="",size:f="base",...h})=>{const{field:{value:m="",onChange:p,ref:v,onBlur:S},fieldState:{error:x}}=hr.useController({name:n,control:t}),{t:T}=Ue(),A={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"}}[f],E=T(n),$=T(u);return y.jsxs("label",{className:`flex flex-col group select-none ${A.gap} ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[y.jsx("h6",{className:`text-gray-600 font-600 group ${x&&"text-red-500!"} ${A.label} ${o&&"text-gray-300"}`,children:e}),y.jsxs("label",{htmlFor:n,className:`
763
763
  flex items-center justify-between gap-8 ${A.container}
764
764
 
765
765
  ${x&&"border-red-500!"}
@@ -775,9 +775,9 @@ attempted value: ${a}
775
775
  group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
776
776
 
777
777
  group-disabled:bg-gray-500
778
- `,children:[a&&a,y.jsx("input",{id:n,name:n,disabled:o,placeholder:r,value:m,onChange:C=>p(C.target.value),onBlur:S,ref:v,className:`group bg-transparent w-full h-full font-600 placeholder:font-600 ${A.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]}),y.jsx("h4",{className:`font-500 text-red-500 leading-none ${A.error}`,children:(x==null?void 0:x.message)&&T(x.message,{x:$||E})})]})},TL=({label:e,value:t,className:n})=>y.jsxs("div",{className:`flex flex-col gap-4 ${n||""}`,children:[y.jsx("p",{className:"text-lg font-600 text-gray-800",children:e}),y.jsx("p",{className:"text-base font-400 text-gray-600",children:t})]}),V2=({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[f,h]=_.useState(!1),[m,p]=_.useState(""),v=_.useRef(null),S=_.useRef(null),x=e.find(V=>V.value===n),T=_.useMemo(()=>e.map(V=>({...V,searchableLabel:typeof V.label=="string"?V.label:_.isValidElement(V.label)?xl(V.label):String(V.label),searchableValue:String(V.value)})),[e]),b=_.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 gT(T,V)},[T]),{x:A,y:E,strategy:$,refs:C,context:D}=jr({open:f,onOpenChange:h,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:V,elements:B}){Object.assign(B.floating.style,{maxHeight:`${Math.min(V-10,300)}px`})},padding:8}),bs({element:S})],placement:"bottom-start",whileElementsMounted:$r}),j=vi(D),F=Rr(D),{getReferenceProps:U,getFloatingProps:Z}=Fr([j,F]),{isMounted:ee,styles:se}=xi(D,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ge=_.useMemo(()=>m.trim()?b.search(m).map(B=>({...B.item,score:B.score,matches:B.matches})):e,[m,b,e]),ue=V=>{t(V.value),h(!1),p("")},he=U({onClick:()=>{r||(h(!f),!f&&v.current&&u&&setTimeout(()=>{var V;return(V=v.current)==null?void 0:V.focus()},100))}});return y.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[o&&y.jsx("h6",{className:`text-gray-600 font-600 group ${i?"!text-red-500":""} text-label ${r?"text-gray-300":""}`,children:o}),y.jsxs("div",{ref:C.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
778
+ `,children:[a&&a,y.jsx("input",{id:n,name:n,disabled:o,placeholder:r,value:m,onChange:C=>p(C.target.value),onBlur:S,ref:v,className:`group bg-transparent w-full h-full font-600 placeholder:font-600 ${A.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]}),y.jsx("h4",{className:`font-500 text-red-500 leading-none ${A.error}`,children:(x==null?void 0:x.message)&&T(x.message,{x:$||E})})]})},TL=({label:e,value:t,className:n})=>y.jsxs("div",{className:`flex flex-col gap-4 ${n||""}`,children:[y.jsx("p",{className:"text-lg font-600 text-gray-800",children:e}),y.jsx("p",{className:"text-base font-400 text-gray-600",children:t})]}),B2=({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[f,h]=_.useState(!1),[m,p]=_.useState(""),v=_.useRef(null),S=_.useRef(null),x=e.find(V=>V.value===n),T=_.useMemo(()=>e.map(V=>({...V,searchableLabel:typeof V.label=="string"?V.label:_.isValidElement(V.label)?xl(V.label):String(V.label),searchableValue:String(V.value)})),[e]),b=_.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 yT(T,V)},[T]),{x:A,y:E,strategy:$,refs:C,context:D}=jr({open:f,onOpenChange:h,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:V,elements:B}){Object.assign(B.floating.style,{maxHeight:`${Math.min(V-10,300)}px`})},padding:8}),bs({element:S})],placement:"bottom-start",whileElementsMounted:$r}),j=vi(D),F=Rr(D),{getReferenceProps:U,getFloatingProps:Z}=Fr([j,F]),{isMounted:ee,styles:se}=xi(D,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ge=_.useMemo(()=>m.trim()?b.search(m).map(B=>({...B.item,score:B.score,matches:B.matches})):e,[m,b,e]),ue=V=>{t(V.value),h(!1),p("")},he=U({onClick:()=>{r||(h(!f),!f&&v.current&&u&&setTimeout(()=>{var V;return(V=v.current)==null?void 0:V.focus()},100))}});return y.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[o&&y.jsx("h6",{className:`text-gray-600 font-600 group ${i?"!text-red-500":""} text-label ${r?"text-gray-300":""}`,children:o}),y.jsxs("div",{ref:C.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
779
779
  border transition-all duration-200 ${r?"opacity-60 cursor-not-allowed":"hover:border-blue-400"}
780
- ${i?"border-red-500 hover:border-red-600":""} ${f?"border-blue-400":"border-blue-100"}`,...he,children:[x?y.jsx("div",{className:"flex items-center w-full",children:y.jsx("span",{className:"flex-grow font-600 text-body-m",children:x.label})}):y.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:a}),y.jsx("svg",{className:`w-16 h-16 transition-transform ${f?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),i&&y.jsx("p",{className:"mt-1 text-sm text-red-600",children:i}),ee&&y.jsxs("div",{ref:C.setFloating,style:{position:$,top:E??0,left:A??0,...se,width:C.reference.current instanceof Element?C.reference.current.clientWidth:void 0,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...Z(),children:[u&&y.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:y.jsxs("div",{className:"relative",children:[y.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:y.jsx("svg",{className:"h-16 w-16 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),y.jsx("input",{ref:v,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&&y.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:V=>{V.stopPropagation(),p("")},children:y.jsx("svg",{className:"h-16 w-16 text-gray-400 hover:text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]})}),y.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:ge.length>0?y.jsx("ul",{className:"py-4",children:ge.map((V,B)=>y.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:Y=>{Y.stopPropagation(),ue(V)},children:y.jsx("span",{children:V.label})},`${V.value}-${B}`))}):y.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[y.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.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"})}),y.jsxs("p",{className:"mt-8 text-body-s",children:['No matches found for "',m,'"']})]})})]})]})},xl=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(xl).join(" "):xl(n):""}return Array.isArray(e)?e.map(xl).join(" "):""},hh=({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[f,h]=_.useState(o),m=(e-t)/2,p=2*Math.PI*m,v=p*(1-f/100),{className:S="",...x}=u;return _.useEffect(()=>{if(!a)return;let T,b;const A=E=>{T||(T=E);const $=E-T,C=Math.min(100,$/r*100);h(C),C<100&&(b=requestAnimationFrame(A))};return b=requestAnimationFrame(A),()=>{b&&cancelAnimationFrame(b)}},[r,a]),y.jsxs("div",{...x,className:`relative flex items-center justify-center ${S}`,children:[y.jsxs("svg",{height:e,width:e,className:"transform -rotate-90",children:[y.jsx("circle",{stroke:"#E5E7EB",fill:"transparent",strokeWidth:t,r:m,cx:e/2,cy:e/2}),y.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:p,strokeDashoffset:v,strokeLinecap:"round",r:m,cx:e/2,cy:e/2})]}),y.jsxs("div",{className:"absolute flex flex-col items-center justify-center",children:[i&&y.jsx("div",{className:"text-xs font-medium text-gray-500",children:i}),c&&y.jsxs("div",{className:"text-lg font-semibold",style:{color:n},children:[Math.round(f),"%"]})]})]})},EL=({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:f=!1,direction:h="column"})=>{const{t:m}=Ue(),[p,v]=_.useState(!1),[S,x]=_.useState(""),T=_.useRef(null),b=i.map(U=>`.${U}`).join(","),A=U=>{const Z=[];let ee=!1;Array.from(U).forEach(se=>{var ue;const ge=((ue=se.name.split(".").pop())==null?void 0:ue.toLowerCase())||"";if(!i.includes(ge)){x(`El archivo ${se.name} tiene una extensión no permitida.`),ee=!0;return}if(se.size>o*1024){x(`El archivo ${se.name} excede el tamaño máximo de ${o}KB.`),ee=!0;return}Z.push(se)}),!ee&&Z.length>0&&(x(""),r(Z))},E=()=>{T.current&&T.current.click()},$=U=>{const Z=U.target.files;Z&&Z.length>0&&A(Z),U.target.value=""},C=U=>{U.preventDefault(),U.stopPropagation(),v(!0)},D=U=>{U.preventDefault(),U.stopPropagation(),v(!1)},j=U=>{U.preventDefault(),U.stopPropagation(),p||v(!0)},F=U=>{U.preventDefault(),U.stopPropagation(),v(!1);const Z=U.dataTransfer.files;Z.length>0&&A(Z)};return h==="row"?a?y.jsx("div",{className:`w-full mx-auto h-fit ${u} flex flex-col`,children:y.jsx("div",{className:"bg-blue-50 p-8 rounded-2xl h-full flex flex-col",children:y.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:[y.jsx(hh,{size:28,showProgress:!1,duration:c,strokeWidth:3,color:"#4570EB"}),y.jsxs("h4",{className:"text-body-s text-gray-400",children:[m("loading"),"..."]})]})})}):y.jsxs("div",{className:`w-full h-fit flex flex-col ${u}`,children:[y.jsx("div",{className:"bg-blue-50 p-8 rounded-2xl h-full",children:y.jsxs("div",{className:`${f&&"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:C,onDragLeave:D,onDragOver:j,onDrop:F,onClick:E,children:[y.jsx("div",{className:"flex justify-center shrink-0",children:y.jsx(Pe,{icon:fN,className:"text-blue-500 text-2xl"})}),y.jsx("div",{className:"flex flex-col items-start text-left grow",children:y.jsx("h3",{className:"font-600 text-lg text-dark",children:m(e)})}),y.jsx("div",{className:"shrink-0",children:y.jsx(wi,{color:"blue",variant:"transparent",children:m(n)})}),y.jsx("input",{type:"file",ref:T,className:"hidden",multiple:!0,accept:b,onChange:$})]})}),S&&y.jsx("div",{className:"mt-3 text-sm text-red-500",children:S})]}):a?y.jsx("div",{className:`w-full mx-auto h-full ${u} flex flex-col grow`,children:y.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full flex flex-col grow",children:y.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:[y.jsx(hh,{size:75,duration:c,strokeWidth:6,color:"#4570EB"}),y.jsxs("h4",{className:"text-body-s text-gray-400",children:[m("loading"),"..."]})]})})}):y.jsxs("div",{className:`w-full mx-auto h-full flex flex-col ${u}`,children:[y.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full grow",children:y.jsxs("div",{className:`${f&&"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:C,onDragLeave:D,onDragOver:j,onDrop:F,onClick:E,children:[y.jsx("div",{className:"flex justify-center translate-y-4",children:y.jsx("img",{className:"w-full h-auto max-w-160",src:"/images/svg/empty-state/empty-state-upload.svg",alt:"empty-state"})}),y.jsxs("div",{className:"flex flex-col items-center",children:[y.jsx("h3",{className:"font-600 text-xl text-dark",children:m(e)}),t&&y.jsx("p",{className:"font-400 text-lg text-gray-500",children:m(t)}),y.jsx(F2,{color:"blue",children:m(n)}),y.jsx("input",{type:"file",ref:T,className:"hidden",multiple:!0,accept:b,onChange:$})]})]})}),S&&y.jsx("div",{className:"mt-3 text-sm text-red-500 shrink-0",children:S}),y.jsx("div",{className:"mt-10 w-full flex justify-center shrink-0",children:y.jsxs("span",{className:"text-gray-500 font-400 text-base",children:[i.join(", ").toUpperCase()," ",m("formats"),". ",m("maximum_size"),":"," ",Ev(o,"mb")]})})]})},ln=8,CL=1e3,PL="300px",AL={top:"bottom",right:"left",bottom:"top",left:"right"},ML={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`}},OL=({children:e,message:t,className:n="",placement:r="top",offset:i=8,delay:o=0})=>{const[a,c]=_.useState(!1),u=_.useRef(null),{x:f,y:h,strategy:m,placement:p,refs:v,context:S,middlewareData:x}=jr({open:a,onOpenChange:c,placement:r,middleware:[Dr(i),kr(),Nr({padding:8}),bs({element:u})],whileElementsMounted:$r}),T=J3(S,{delay:o}),b=rN(S),A=Rr(S),E=sN(S,{role:"tooltip"}),{getReferenceProps:$,getFloatingProps:C}=Fr([T,b,A,E]),D=p.split("-")[0],j=AL[D],{x:F,y:U}=x.arrow||{x:0,y:0},Z=_.cloneElement(e,{ref:v.setReference,...$()});return y.jsxs(y.Fragment,{children:[Z,y.jsx(vn,{children:a&&y.jsx("div",{ref:v.setFloating,style:{position:m,top:h??0,left:f??0,zIndex:CL,width:"max-content",maxWidth:PL},...C(),children:y.jsxs(Ge.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,y.jsx("div",{ref:u,className:"absolute w-0 h-0 tooltip-arrow-light",style:{position:"absolute",left:F!=null?`${F}px`:"",top:U!=null?`${U}px`:"",[j]:"-7px",...ML[D]}})]})})})]})},_L=({progress:e=0,showPercentage:t=!0,showPercentageLabel:n=!1,label:r,percentageLabel:i="progreso",percentageClassName:o="",percentageLabelClassName:a="",labelClassName:c="",className:u="",size:f=120,strokeWidth:h=8,backgroundColor:m="#e5e7eb",animated:p=!0,animationDuration:v="1.5s",colorThresholds:S,lowThreshold:x=30,mediumThreshold:T=70,lowColor:b="#ef4444",mediumColor:A="#eab308",highColor:E="#22c55e",singleColor:$,clockwise:C=!0,startAngle:D=-90})=>{const j=Y=>{if($)return $;if(S&&S.length>0){const O=[...S].sort((k,K)=>k.threshold-K.threshold);for(let k=O.length-1;k>=0;k--)if(Y>=O[k].threshold)return O[k].color;return O[0].color}return Y<x?b:Y<T?A:E},F=Y=>{if(!S||S.length===0)return;const O=[...S].sort((k,K)=>k.threshold-K.threshold);for(let k=O.length-1;k>=0;k--)if(Y>=O[k].threshold)return O[k].label;return O[0].label},U=Math.min(100,Math.max(0,e)),Z=j(U),ee=F(U),se=f/2,ge=(f-h)/2,ue=2*Math.PI*ge,fe=ue,he=ue-U/100*ue,B=`rotate(${D} ${se} ${se}) scale(${C?1:-1}, 1)`;return y.jsxs("div",{className:`flex flex-col items-center gap-2 ${u}`,children:[y.jsxs("div",{className:"relative",style:{width:f,height:f},children:[y.jsxs("svg",{width:f,height:f,className:"transform -rotate-90",viewBox:`0 0 ${f} ${f}`,children:[y.jsx("circle",{cx:se,cy:se,r:ge,fill:"transparent",stroke:m,strokeWidth:h,className:"opacity-20"}),y.jsx("circle",{cx:se,cy:se,r:ge,fill:"transparent",stroke:Z,strokeWidth:h,strokeDasharray:fe,strokeDashoffset:he,strokeLinecap:"round",transform:B,className:p?"transition-all ease-out":"",style:p?{transitionDuration:v,transitionProperty:"stroke-dashoffset, stroke"}:{}})]}),y.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:y.jsxs("div",{className:"text-center",children:[t&&y.jsxs("div",{className:`text-2xl font-bold text-gray-800 ${o}`,children:[Math.round(U),"%"]}),(ee||i)&&n&&y.jsx("div",{className:`text-xs text-gray-500 mt-1 ${a}`,children:ee||i})]})})]}),r&&y.jsx("p",{className:`text-gray-500 text-label mt-6 ${c}`,children:r})]})},IL=({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:f=30,mediumThreshold:h=70,lowColor:m="bg-red-500",mediumColor:p="bg-yellow-500",highColor:v="bg-green-500",singleColor:S})=>{const x=C=>{if(S)return S;if(u&&u.length>0){const D=[...u].sort((j,F)=>j.threshold-F.threshold);for(let j=D.length-1;j>=0;j--)if(C>=D[j].threshold)return D[j].color;return D[0].color}return C<f?m:C<h?p:v},T=C=>{if(!u||u.length===0)return;const D=[...u].sort((j,F)=>j.threshold-F.threshold);for(let j=D.length-1;j>=0;j--)if(C>=D[j].threshold)return D[j].label;return D[0].label},b=Math.min(100,Math.max(0,e)),A=x(b),E=T(b),$=a?`transition-all ${c} ease-in-out`:"";return y.jsxs("div",{className:`w-full flex gap-4 items-center ${r}`,children:[y.jsx("div",{className:`flex-1 ${o} rounded-full ${i} overflow-hidden`,children:y.jsx("div",{className:`h-full ${A} ${$} rounded-full`,style:{width:`${b}%`}})}),t&&y.jsxs("div",{className:"text-sm text-gray-700 font-medium text-nowrap flex items-center gap-1",children:[y.jsxs("span",{className:"font-bold",children:[Math.round(b),"%"]}),E&&y.jsxs("span",{className:"text-xs text-gray-500",children:["(",E,")"]}),y.jsx("span",{className:"text-gray-600",children:n})]})]})},$L=({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:f="",percentageClassName:h="",showPercentageLabel:m=!1,percentageLabelClassName:p="",clockwise:v=!0,startAngle:S=-90})=>{const x=Math.min(100,Math.max(0,e)),T=n/2,b=(n-r)/2,A=2*Math.PI*b,E=A,$=A-x/100*A,D=`rotate(${S} ${T} ${T}) scale(${v?1:-1}, 1)`;return y.jsxs("div",{className:`flex flex-col items-center gap-2 ${c}`,children:[y.jsxs("div",{className:"relative",style:{width:n,height:n},children:[y.jsxs("svg",{width:n,height:n,className:"transform -rotate-90",viewBox:`0 0 ${n} ${n}`,children:[y.jsx("circle",{cx:T,cy:T,r:b,fill:"transparent",stroke:o,strokeWidth:r,className:"opacity-20"}),y.jsx("circle",{cx:T,cy:T,r:b,fill:"transparent",stroke:i,strokeWidth:r,strokeDasharray:E,strokeDashoffset:$,strokeLinecap:"round",transform:D,className:"transition-all ease-out",style:{transitionDuration:"1.5s",transitionProperty:"stroke-dashoffset, stroke"}})]}),y.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:y.jsxs("div",{className:"text-center",children:[t&&y.jsxs("div",{className:`text-2xl font-bold text-gray-800 ${h}`,children:[Math.round(x),"%"]}),f&&m&&y.jsx("div",{className:`text-xs text-gray-500 mt-1 ${p}`,children:f})]})})]}),a&&y.jsx("p",{className:`text-gray-500 text-label mt-6 ${u}`,children:a})]})},DL=({active:e,onClick:t})=>{const{defaultColorScheme:n}=Ue();return y.jsxs("button",{onClick:t,className:`
780
+ ${i?"border-red-500 hover:border-red-600":""} ${f?"border-blue-400":"border-blue-100"}`,...he,children:[x?y.jsx("div",{className:"flex items-center w-full",children:y.jsx("span",{className:"flex-grow font-600 text-body-m",children:x.label})}):y.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:a}),y.jsx("svg",{className:`w-16 h-16 transition-transform ${f?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),i&&y.jsx("p",{className:"mt-1 text-sm text-red-600",children:i}),ee&&y.jsxs("div",{ref:C.setFloating,style:{position:$,top:E??0,left:A??0,...se,width:C.reference.current instanceof Element?C.reference.current.clientWidth:void 0,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...Z(),children:[u&&y.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:y.jsxs("div",{className:"relative",children:[y.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:y.jsx("svg",{className:"h-16 w-16 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),y.jsx("input",{ref:v,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&&y.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:V=>{V.stopPropagation(),p("")},children:y.jsx("svg",{className:"h-16 w-16 text-gray-400 hover:text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]})}),y.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:ge.length>0?y.jsx("ul",{className:"py-4",children:ge.map((V,B)=>y.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:Y=>{Y.stopPropagation(),ue(V)},children:y.jsx("span",{children:V.label})},`${V.value}-${B}`))}):y.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[y.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.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"})}),y.jsxs("p",{className:"mt-8 text-body-s",children:['No matches found for "',m,'"']})]})})]})]})},xl=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(xl).join(" "):xl(n):""}return Array.isArray(e)?e.map(xl).join(" "):""},hh=({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[f,h]=_.useState(o),m=(e-t)/2,p=2*Math.PI*m,v=p*(1-f/100),{className:S="",...x}=u;return _.useEffect(()=>{if(!a)return;let T,b;const A=E=>{T||(T=E);const $=E-T,C=Math.min(100,$/r*100);h(C),C<100&&(b=requestAnimationFrame(A))};return b=requestAnimationFrame(A),()=>{b&&cancelAnimationFrame(b)}},[r,a]),y.jsxs("div",{...x,className:`relative flex items-center justify-center ${S}`,children:[y.jsxs("svg",{height:e,width:e,className:"transform -rotate-90",children:[y.jsx("circle",{stroke:"#E5E7EB",fill:"transparent",strokeWidth:t,r:m,cx:e/2,cy:e/2}),y.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:p,strokeDashoffset:v,strokeLinecap:"round",r:m,cx:e/2,cy:e/2})]}),y.jsxs("div",{className:"absolute flex flex-col items-center justify-center",children:[i&&y.jsx("div",{className:"text-xs font-medium text-gray-500",children:i}),c&&y.jsxs("div",{className:"text-lg font-semibold",style:{color:n},children:[Math.round(f),"%"]})]})]})},EL=({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:f=!1,direction:h="column"})=>{const{t:m}=Ue(),[p,v]=_.useState(!1),[S,x]=_.useState(""),T=_.useRef(null),b=i.map(U=>`.${U}`).join(","),A=U=>{const Z=[];let ee=!1;Array.from(U).forEach(se=>{var ue;const ge=((ue=se.name.split(".").pop())==null?void 0:ue.toLowerCase())||"";if(!i.includes(ge)){x(`El archivo ${se.name} tiene una extensión no permitida.`),ee=!0;return}if(se.size>o*1024){x(`El archivo ${se.name} excede el tamaño máximo de ${o}KB.`),ee=!0;return}Z.push(se)}),!ee&&Z.length>0&&(x(""),r(Z))},E=()=>{T.current&&T.current.click()},$=U=>{const Z=U.target.files;Z&&Z.length>0&&A(Z),U.target.value=""},C=U=>{U.preventDefault(),U.stopPropagation(),v(!0)},D=U=>{U.preventDefault(),U.stopPropagation(),v(!1)},j=U=>{U.preventDefault(),U.stopPropagation(),p||v(!0)},F=U=>{U.preventDefault(),U.stopPropagation(),v(!1);const Z=U.dataTransfer.files;Z.length>0&&A(Z)};return h==="row"?a?y.jsx("div",{className:`w-full mx-auto h-fit ${u} flex flex-col`,children:y.jsx("div",{className:"bg-blue-50 p-8 rounded-2xl h-full flex flex-col",children:y.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:[y.jsx(hh,{size:28,showProgress:!1,duration:c,strokeWidth:3,color:"#4570EB"}),y.jsxs("h4",{className:"text-body-s text-gray-400",children:[m("loading"),"..."]})]})})}):y.jsxs("div",{className:`w-full h-fit flex flex-col ${u}`,children:[y.jsx("div",{className:"bg-blue-50 p-8 rounded-2xl h-full",children:y.jsxs("div",{className:`${f&&"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:C,onDragLeave:D,onDragOver:j,onDrop:F,onClick:E,children:[y.jsx("div",{className:"flex justify-center shrink-0",children:y.jsx(Pe,{icon:fN,className:"text-blue-500 text-2xl"})}),y.jsx("div",{className:"flex flex-col items-start text-left grow",children:y.jsx("h3",{className:"font-600 text-lg text-dark",children:m(e)})}),y.jsx("div",{className:"shrink-0",children:y.jsx(wi,{color:"blue",variant:"transparent",children:m(n)})}),y.jsx("input",{type:"file",ref:T,className:"hidden",multiple:!0,accept:b,onChange:$})]})}),S&&y.jsx("div",{className:"mt-3 text-sm text-red-500",children:S})]}):a?y.jsx("div",{className:`w-full mx-auto h-full ${u} flex flex-col grow`,children:y.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full flex flex-col grow",children:y.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:[y.jsx(hh,{size:75,duration:c,strokeWidth:6,color:"#4570EB"}),y.jsxs("h4",{className:"text-body-s text-gray-400",children:[m("loading"),"..."]})]})})}):y.jsxs("div",{className:`w-full mx-auto h-full flex flex-col ${u}`,children:[y.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full grow",children:y.jsxs("div",{className:`${f&&"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:C,onDragLeave:D,onDragOver:j,onDrop:F,onClick:E,children:[y.jsx("div",{className:"flex justify-center translate-y-4",children:y.jsx("img",{className:"w-full h-auto max-w-160",src:"/images/svg/empty-state/empty-state-upload.svg",alt:"empty-state"})}),y.jsxs("div",{className:"flex flex-col items-center",children:[y.jsx("h3",{className:"font-600 text-xl text-dark",children:m(e)}),t&&y.jsx("p",{className:"font-400 text-lg text-gray-500",children:m(t)}),y.jsx(V2,{color:"blue",children:m(n)}),y.jsx("input",{type:"file",ref:T,className:"hidden",multiple:!0,accept:b,onChange:$})]})]})}),S&&y.jsx("div",{className:"mt-3 text-sm text-red-500 shrink-0",children:S}),y.jsx("div",{className:"mt-10 w-full flex justify-center shrink-0",children:y.jsxs("span",{className:"text-gray-500 font-400 text-base",children:[i.join(", ").toUpperCase()," ",m("formats"),". ",m("maximum_size"),":"," ",Cv(o,"mb")]})})]})},ln=8,CL=1e3,PL="300px",AL={top:"bottom",right:"left",bottom:"top",left:"right"},ML={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`}},OL=({children:e,message:t,className:n="",placement:r="top",offset:i=8,delay:o=0})=>{const[a,c]=_.useState(!1),u=_.useRef(null),{x:f,y:h,strategy:m,placement:p,refs:v,context:S,middlewareData:x}=jr({open:a,onOpenChange:c,placement:r,middleware:[Dr(i),kr(),Nr({padding:8}),bs({element:u})],whileElementsMounted:$r}),T=J3(S,{delay:o}),b=rN(S),A=Rr(S),E=sN(S,{role:"tooltip"}),{getReferenceProps:$,getFloatingProps:C}=Fr([T,b,A,E]),D=p.split("-")[0],j=AL[D],{x:F,y:U}=x.arrow||{x:0,y:0},Z=_.cloneElement(e,{ref:v.setReference,...$()});return y.jsxs(y.Fragment,{children:[Z,y.jsx(vn,{children:a&&y.jsx("div",{ref:v.setFloating,style:{position:m,top:h??0,left:f??0,zIndex:CL,width:"max-content",maxWidth:PL},...C(),children:y.jsxs(Ge.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,y.jsx("div",{ref:u,className:"absolute w-0 h-0 tooltip-arrow-light",style:{position:"absolute",left:F!=null?`${F}px`:"",top:U!=null?`${U}px`:"",[j]:"-7px",...ML[D]}})]})})})]})},_L=({progress:e=0,showPercentage:t=!0,showPercentageLabel:n=!1,label:r,percentageLabel:i="progreso",percentageClassName:o="",percentageLabelClassName:a="",labelClassName:c="",className:u="",size:f=120,strokeWidth:h=8,backgroundColor:m="#e5e7eb",animated:p=!0,animationDuration:v="1.5s",colorThresholds:S,lowThreshold:x=30,mediumThreshold:T=70,lowColor:b="#ef4444",mediumColor:A="#eab308",highColor:E="#22c55e",singleColor:$,clockwise:C=!0,startAngle:D=-90})=>{const j=Y=>{if($)return $;if(S&&S.length>0){const O=[...S].sort((k,K)=>k.threshold-K.threshold);for(let k=O.length-1;k>=0;k--)if(Y>=O[k].threshold)return O[k].color;return O[0].color}return Y<x?b:Y<T?A:E},F=Y=>{if(!S||S.length===0)return;const O=[...S].sort((k,K)=>k.threshold-K.threshold);for(let k=O.length-1;k>=0;k--)if(Y>=O[k].threshold)return O[k].label;return O[0].label},U=Math.min(100,Math.max(0,e)),Z=j(U),ee=F(U),se=f/2,ge=(f-h)/2,ue=2*Math.PI*ge,fe=ue,he=ue-U/100*ue,B=`rotate(${D} ${se} ${se}) scale(${C?1:-1}, 1)`;return y.jsxs("div",{className:`flex flex-col items-center gap-2 ${u}`,children:[y.jsxs("div",{className:"relative",style:{width:f,height:f},children:[y.jsxs("svg",{width:f,height:f,className:"transform -rotate-90",viewBox:`0 0 ${f} ${f}`,children:[y.jsx("circle",{cx:se,cy:se,r:ge,fill:"transparent",stroke:m,strokeWidth:h,className:"opacity-20"}),y.jsx("circle",{cx:se,cy:se,r:ge,fill:"transparent",stroke:Z,strokeWidth:h,strokeDasharray:fe,strokeDashoffset:he,strokeLinecap:"round",transform:B,className:p?"transition-all ease-out":"",style:p?{transitionDuration:v,transitionProperty:"stroke-dashoffset, stroke"}:{}})]}),y.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:y.jsxs("div",{className:"text-center",children:[t&&y.jsxs("div",{className:`text-2xl font-bold text-gray-800 ${o}`,children:[Math.round(U),"%"]}),(ee||i)&&n&&y.jsx("div",{className:`text-xs text-gray-500 mt-1 ${a}`,children:ee||i})]})})]}),r&&y.jsx("p",{className:`text-gray-500 text-label mt-6 ${c}`,children:r})]})},IL=({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:f=30,mediumThreshold:h=70,lowColor:m="bg-red-500",mediumColor:p="bg-yellow-500",highColor:v="bg-green-500",singleColor:S})=>{const x=C=>{if(S)return S;if(u&&u.length>0){const D=[...u].sort((j,F)=>j.threshold-F.threshold);for(let j=D.length-1;j>=0;j--)if(C>=D[j].threshold)return D[j].color;return D[0].color}return C<f?m:C<h?p:v},T=C=>{if(!u||u.length===0)return;const D=[...u].sort((j,F)=>j.threshold-F.threshold);for(let j=D.length-1;j>=0;j--)if(C>=D[j].threshold)return D[j].label;return D[0].label},b=Math.min(100,Math.max(0,e)),A=x(b),E=T(b),$=a?`transition-all ${c} ease-in-out`:"";return y.jsxs("div",{className:`w-full flex gap-4 items-center ${r}`,children:[y.jsx("div",{className:`flex-1 ${o} rounded-full ${i} overflow-hidden`,children:y.jsx("div",{className:`h-full ${A} ${$} rounded-full`,style:{width:`${b}%`}})}),t&&y.jsxs("div",{className:"text-sm text-gray-700 font-medium text-nowrap flex items-center gap-1",children:[y.jsxs("span",{className:"font-bold",children:[Math.round(b),"%"]}),E&&y.jsxs("span",{className:"text-xs text-gray-500",children:["(",E,")"]}),y.jsx("span",{className:"text-gray-600",children:n})]})]})},$L=({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:f="",percentageClassName:h="",showPercentageLabel:m=!1,percentageLabelClassName:p="",clockwise:v=!0,startAngle:S=-90})=>{const x=Math.min(100,Math.max(0,e)),T=n/2,b=(n-r)/2,A=2*Math.PI*b,E=A,$=A-x/100*A,D=`rotate(${S} ${T} ${T}) scale(${v?1:-1}, 1)`;return y.jsxs("div",{className:`flex flex-col items-center gap-2 ${c}`,children:[y.jsxs("div",{className:"relative",style:{width:n,height:n},children:[y.jsxs("svg",{width:n,height:n,className:"transform -rotate-90",viewBox:`0 0 ${n} ${n}`,children:[y.jsx("circle",{cx:T,cy:T,r:b,fill:"transparent",stroke:o,strokeWidth:r,className:"opacity-20"}),y.jsx("circle",{cx:T,cy:T,r:b,fill:"transparent",stroke:i,strokeWidth:r,strokeDasharray:E,strokeDashoffset:$,strokeLinecap:"round",transform:D,className:"transition-all ease-out",style:{transitionDuration:"1.5s",transitionProperty:"stroke-dashoffset, stroke"}})]}),y.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:y.jsxs("div",{className:"text-center",children:[t&&y.jsxs("div",{className:`text-2xl font-bold text-gray-800 ${h}`,children:[Math.round(x),"%"]}),f&&m&&y.jsx("div",{className:`text-xs text-gray-500 mt-1 ${p}`,children:f})]})})]}),a&&y.jsx("p",{className:`text-gray-500 text-label mt-6 ${u}`,children:a})]})},DL=({active:e,onClick:t})=>{const{defaultColorScheme:n}=Ue();return y.jsxs("button",{onClick:t,className:`
781
781
  relative inline-flex min-h-24 min-w-48 items-center rounded-full
782
782
  transition-colors duration-200 ease-in-out focus:outline-none
783
783
  shadow-lg
@@ -786,4 +786,4 @@ attempted value: ${a}
786
786
  inline-block h-20 w-20 transform rounded-full bg-white
787
787
  transition-transform duration-200 ease-in-out drop-shadow-xl
788
788
  ${e?"translate-x-24":"translate-x-3"}
789
- `})]})},NL=({filter:e,filterControl:t,translations:n={}})=>{var h,m,p,v,S,x,T,b,A,E;const[r,i]=_.useState(!0),{updateFilter:o,removeFilter:a}=t,c=!!(e!=null&&e.value),u=($,C)=>n[$]||C,f=($,C=[])=>{const D=C.find(j=>j.value===$);return D?D.label:String($)};return y.jsx(bi,{open:r,onClose:()=>i(!1),placement:"bottom",className:"min-w-[400px]",component:y.jsxs("div",{children:[y.jsx("p",{children:u(e.key,e.label)}),e.type==="date"?y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx("div",{className:"scale-[0.8] origin-left -mr-[10%] w-[125%]! relative z-99",children:y.jsx(eh,{currentDate:(h=e.value)!=null&&h.startDate?new Date(e.value.startDate):null,maxDate:(m=e.value)!=null&&m.endDate?new Date(e.value.endDate):void 0,futureDates:!0,onDateChange:$=>o({key:e.key,value:{...e.value||{},startDate:($==null?void 0:$.toISOString())||""},label:e.label,type:e.type}),label:"Fecha de inicio",translatedKey:"start_date"})}),y.jsx("div",{className:"scale-[0.8] origin-left -mr-[10%] w-[125%]! ",children:y.jsx(eh,{currentDate:(p=e.value)!=null&&p.endDate?new Date(e.value.endDate):null,minDate:(v=e.value)!=null&&v.startDate?new Date(e.value.startDate):void 0,onDateChange:$=>o({key:e.key,value:{...e.value||{},endDate:($==null?void 0:$.toISOString())||""},label:e.label,type:e.type}),label:"Fecha de fin",futureDates:!0,translatedKey:"end_date"})})]}):e.type==="select"?y.jsx(V2,{className:"scale-[0.8] origin-left -mr-[10%] w-[125%]! p-0! m-0!",value:e.value||"",options:e.options||[],label:"",allowSearch:!0,onChange:$=>o({key:e.key,value:$,label:e.label,type:e.type}),placeholder:u(e.key,e.label)}):y.jsx(fl,{size:"sm",name:e.key,value:e.value,onChange:$=>o({key:e.key,value:$,label:e.label,type:e.type}),placeholder:u(e.key,e.label)})]}),children:y.jsxs("div",{className:`flex gap-[8px] items-center px-[12px] py-[8px] bg-blue-100 max-w-[400px] ${c&&"border-1! border-blue-500!"} cursor-pointer transition ease-in-out rounded-full border border-transparent hover:border-blue-500`,onClick:()=>i(!0),children:[y.jsxs("div",{className:"flex justify-between items-center gap-[6px] min-w-0",children:[y.jsx(Pe,{icon:e.icon||dN,className:"text-[14px] text-blue-500"}),y.jsx("p",{className:"flex-1 min-w-0 text-[12px] font-semibold text-gray-800 truncate overflow-hidden whitespace-nowrap",title:e.type==="date"?`${((S=e.value)==null?void 0:S.startDate)||"..."} - ${((x=e.value)==null?void 0:x.endDate)||"..."}`:String(e.value||u(e.key,e.label)),children:e.value&&(e.type==="date"?(T=e.value)!=null&&T.startDate||(b=e.value)!=null&&b.endDate:e.value)?y.jsxs(y.Fragment,{children:[u(e.key,e.label),":"," ",y.jsx("span",{className:"text-gray-600 truncate overflow-hidden whitespace-nowrap",children:e.type==="date"?`${(A=e.value)!=null&&A.startDate?new Date(e.value.startDate).toLocaleDateString():"..."} - ${(E=e.value)!=null&&E.endDate?new Date(e.value.endDate).toLocaleDateString():"..."}`:e.type==="select"?f(e.value,e.options):String(e.value)})]}):u(e.key,e.label)})]}),y.jsx("div",{className:"flex justify-center items-center",onClick:()=>a({key:e.key}),children:y.jsx(Pe,{icon:r2,className:"text-[10px] text-gray-400"})})]})})},kL=({children:e,onClickAway:t,enabled:n=!0,mouseEvent:r="onClick",touchEvent:i="onTouchEnd"})=>{const o=_.useRef(null);return _.useEffect(()=>{if(!n)return;const a=m=>{o.current&&(o.current.contains(m.target)||t())},c=m=>{switch(m){case"onClick":return"click";case"onMouseDown":return"mousedown";case"onMouseUp":return"mouseup";default:return"click"}},u=m=>{switch(m){case"onTouchStart":return"touchstart";case"onTouchEnd":return"touchend";default:return"touchend"}},f=c(r),h=u(i);return document.addEventListener(f,a,!0),document.addEventListener(h,a,!0),()=>{document.removeEventListener(f,a,!0),document.removeEventListener(h,a,!0)}},[n,t,r,i]),y.jsx("div",{ref:o,style:{display:"contents"},children:e})},LL="Alejo",RL=({theme:e={},children:t})=>{const n={..._d,...e};return y.jsx(Sb.Provider,{value:n,children:t})};ne.ActionButton=BC,ne.AlertModal=Tb,ne.AsyncToast=iv,ne.AutocompleteInput=WN,ne.Avatar=y2,ne.BoxContainer=Ss,ne.Button=wi,ne.CalendarSelector=Zd,ne.CenterModal=x2,ne.Checkbox=JN,ne.CircleProgress=$L,ne.ClickAwayListener=kL,ne.CountryDropdown=Dk,ne.CountryInput=Ik,ne.CountryLabel=$k,ne.DateInput=xN,ne.DialogModal=o2,ne.Divider=v2,ne.Dropdown=SN,ne.FileUpload=TN,ne.FilterPill=NL,ne.FiltersMenu=GN,ne.FloatingMenu=bi,ne.IconButton=dh,ne.ImageProfileInput=Lk,ne.IndexedStep=l2,ne.IndexedStepper=EN,ne.InfoCard=jk,ne.InformationContainer=c2,ne.InformationDisclaimer=Vk,ne.LoadingProgress=hh,ne.LoadingSpinner=Bk,ne.ModalContainer=YN,ne.Organism=LL,ne.PasswordInput=Wk,ne.PhoneInput=Uk,ne.Pill=th,ne.PillsContainer=UN,ne.ProgressBar=Hk,ne.SearchBar=qk,ne.SearchModal=PN,ne.SectionButton=lL,ne.SelectInput=cL,ne.SideModal=zN,ne.SidebarButton=mL,ne.Stepper=IN,ne.Switch=DL,ne.Tab=j2,ne.Tabs=$N,ne.TextButton=F2,ne.TextInput=SL,ne.TextStaticInput=TL,ne.ThemeProvider=RL,ne.ThresholdCircleProgress=_L,ne.ThresholdProgressBar=IL,ne.Toast=gf,ne.Tooltip=OL,ne.UncontrolledDateInput=eh,ne.UncontrolledSelector=V2,ne.UncontrolledTextInput=fl,ne.UploadContainer=EL,ne.capitalizeFirstLetter=Tv,ne.closeModal=KN,ne.defaultTheme=_d,ne.formatLocalizedDate=pI,ne.getImageUrl=Cv,ne.openCustomModal=qN,ne.openModal=HN,ne.renderTabContent=XN,ne.showToastAsync=rh,ne.showToastLoading=g2,ne.stringToColor=yf,ne.toBase64=gI,ne.toast=ZN,ne.translateBytes=Ev,ne.useFilterToggler=q5,ne.useTheme=Ue,ne.yupImageProfileValidator=Rk,Object.defineProperty(ne,Symbol.toStringTag,{value:"Module"})});
789
+ `})]})},NL=({filter:e,filterControl:t,translations:n={}})=>{var h,m,p,v,S,x,T,b,A,E;const[r,i]=_.useState(!0),{updateFilter:o,removeFilter:a}=t,c=!!(e!=null&&e.value),u=($,C)=>n[$]||C,f=($,C=[])=>{const D=C.find(j=>j.value===$);return D?D.label:String($)};return y.jsx(bi,{open:r,onClose:()=>i(!1),placement:"bottom",className:"min-w-[400px]",component:y.jsxs("div",{children:[y.jsx("p",{children:u(e.key,e.label)}),e.type==="date"?y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx("div",{className:"scale-[0.8] origin-left -mr-[10%] w-[125%]! relative z-99",children:y.jsx(eh,{currentDate:(h=e.value)!=null&&h.startDate?new Date(e.value.startDate):null,maxDate:(m=e.value)!=null&&m.endDate?new Date(e.value.endDate):void 0,futureDates:!0,onDateChange:$=>o({key:e.key,value:{...e.value||{},startDate:($==null?void 0:$.toISOString())||""},label:e.label,type:e.type}),label:"Fecha de inicio",translatedKey:"start_date"})}),y.jsx("div",{className:"scale-[0.8] origin-left -mr-[10%] w-[125%]! ",children:y.jsx(eh,{currentDate:(p=e.value)!=null&&p.endDate?new Date(e.value.endDate):null,minDate:(v=e.value)!=null&&v.startDate?new Date(e.value.startDate):void 0,onDateChange:$=>o({key:e.key,value:{...e.value||{},endDate:($==null?void 0:$.toISOString())||""},label:e.label,type:e.type}),label:"Fecha de fin",futureDates:!0,translatedKey:"end_date"})})]}):e.type==="select"?y.jsx(B2,{className:"scale-[0.8] origin-left -mr-[10%] w-[125%]! p-0! m-0!",value:e.value||"",options:e.options||[],label:"",allowSearch:!0,onChange:$=>o({key:e.key,value:$,label:e.label,type:e.type}),placeholder:u(e.key,e.label)}):y.jsx(fl,{size:"sm",name:e.key,value:e.value,onChange:$=>o({key:e.key,value:$,label:e.label,type:e.type}),placeholder:u(e.key,e.label)})]}),children:y.jsxs("div",{className:`flex gap-[8px] items-center px-[12px] py-[8px] bg-blue-100 max-w-[400px] ${c&&"border-1! border-blue-500!"} cursor-pointer transition ease-in-out rounded-full border border-transparent hover:border-blue-500`,onClick:()=>i(!0),children:[y.jsxs("div",{className:"flex justify-between items-center gap-[6px] min-w-0",children:[y.jsx(Pe,{icon:e.icon||dN,className:"text-[14px] text-blue-500"}),y.jsx("p",{className:"flex-1 min-w-0 text-[12px] font-semibold text-gray-800 truncate overflow-hidden whitespace-nowrap",title:e.type==="date"?`${((S=e.value)==null?void 0:S.startDate)||"..."} - ${((x=e.value)==null?void 0:x.endDate)||"..."}`:String(e.value||u(e.key,e.label)),children:e.value&&(e.type==="date"?(T=e.value)!=null&&T.startDate||(b=e.value)!=null&&b.endDate:e.value)?y.jsxs(y.Fragment,{children:[u(e.key,e.label),":"," ",y.jsx("span",{className:"text-gray-600 truncate overflow-hidden whitespace-nowrap",children:e.type==="date"?`${(A=e.value)!=null&&A.startDate?new Date(e.value.startDate).toLocaleDateString():"..."} - ${(E=e.value)!=null&&E.endDate?new Date(e.value.endDate).toLocaleDateString():"..."}`:e.type==="select"?f(e.value,e.options):String(e.value)})]}):u(e.key,e.label)})]}),y.jsx("div",{className:"flex justify-center items-center",onClick:()=>a({key:e.key}),children:y.jsx(Pe,{icon:i2,className:"text-[10px] text-gray-400"})})]})})},kL=({children:e,onClickAway:t,enabled:n=!0,mouseEvent:r="onClick",touchEvent:i="onTouchEnd"})=>{const o=_.useRef(null);return _.useEffect(()=>{if(!n)return;const a=m=>{o.current&&(o.current.contains(m.target)||t())},c=m=>{switch(m){case"onClick":return"click";case"onMouseDown":return"mousedown";case"onMouseUp":return"mouseup";default:return"click"}},u=m=>{switch(m){case"onTouchStart":return"touchstart";case"onTouchEnd":return"touchend";default:return"touchend"}},f=c(r),h=u(i);return document.addEventListener(f,a,!0),document.addEventListener(h,a,!0),()=>{document.removeEventListener(f,a,!0),document.removeEventListener(h,a,!0)}},[n,t,r,i]),y.jsx("div",{ref:o,style:{display:"contents"},children:e})},LL="Alejo",RL=({theme:e={},children:t})=>{const n={..._d,...e};return y.jsx(Tb.Provider,{value:n,children:t})};ne.ActionButton=BC,ne.AlertModal=Eb,ne.AsyncToast=sv,ne.AutocompleteInput=WN,ne.Avatar=v2,ne.BoxContainer=Ss,ne.Button=wi,ne.CalendarSelector=Zd,ne.CenterModal=b2,ne.Checkbox=JN,ne.CircleProgress=$L,ne.ClickAwayListener=kL,ne.CountryDropdown=Dk,ne.CountryInput=Ik,ne.CountryLabel=$k,ne.DateInput=xN,ne.DialogModal=a2,ne.Divider=x2,ne.Dropdown=SN,ne.FileUpload=TN,ne.FilterPill=NL,ne.FiltersMenu=GN,ne.FloatingMenu=bi,ne.IconButton=dh,ne.ImageProfileInput=Lk,ne.IndexedStep=c2,ne.IndexedStepper=EN,ne.InfoCard=jk,ne.InformationContainer=u2,ne.InformationDisclaimer=Vk,ne.LoadingProgress=hh,ne.LoadingSpinner=Bk,ne.ModalContainer=YN,ne.Organism=LL,ne.PasswordInput=Wk,ne.PhoneInput=Uk,ne.Pill=th,ne.PillsContainer=UN,ne.ProgressBar=Hk,ne.SearchBar=qk,ne.SearchModal=PN,ne.SectionButton=lL,ne.SelectInput=cL,ne.SideModal=zN,ne.SidebarButton=mL,ne.Stepper=IN,ne.Switch=DL,ne.Tab=F2,ne.Tabs=$N,ne.TextButton=V2,ne.TextInput=SL,ne.TextStaticInput=TL,ne.ThemeProvider=RL,ne.ThresholdCircleProgress=_L,ne.ThresholdProgressBar=IL,ne.Toast=gf,ne.Tooltip=OL,ne.UncontrolledDateInput=eh,ne.UncontrolledSelector=B2,ne.UncontrolledTextInput=fl,ne.UploadContainer=EL,ne.capitalizeFirstLetter=Ev,ne.closeModal=KN,ne.defaultTheme=_d,ne.formatLocalizedDate=pI,ne.getImageUrl=Pv,ne.openCustomModal=qN,ne.openModal=HN,ne.renderTabContent=XN,ne.showToastAsync=rh,ne.showToastLoading=y2,ne.stringToColor=yf,ne.toBase64=gI,ne.toast=ZN,ne.translateBytes=Cv,ne.useFilterToggler=q5,ne.useTheme=Ue,ne.yupImageProfileValidator=Rk,Object.defineProperty(ne,Symbol.toStringTag,{value:"Module"})});