@sportflow/ui 0.0.5 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.es.js +5969 -359
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +13 -3
- package/package.json +4 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(re,$){typeof exports=="object"&&typeof module<"u"?$(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],$):(re=typeof globalThis<"u"?globalThis:re||self,$(re["sportflow-design-system"]={},re.React))})(this,(function(re,$){"use strict";function os(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 h=os($);var Ye={exports:{}},Pe={};var Ht;function is(){if(Ht)return Pe;Ht=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,s,o){var i=null;if(o!==void 0&&(i=""+o),s.key!==void 0&&(i=""+s.key),"key"in s){o={};for(var a in s)a!=="key"&&(o[a]=s[a])}else o=s;return s=o.ref,{$$typeof:e,type:r,key:i,ref:s!==void 0?s:null,props:o}}return Pe.Fragment=t,Pe.jsx=n,Pe.jsxs=n,Pe}var Oe={};var Jt;function as(){return Jt||(Jt=1,process.env.NODE_ENV!=="production"&&(function(){function e(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===G?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case v:return"Fragment";case D:return"Profiler";case M:return"StrictMode";case F:return"Suspense";case I:return"SuspenseList";case B:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case T:return"Portal";case O:return d.displayName||"Context";case S:return(d._context.displayName||"Context")+".Consumer";case x:var E=d.render;return d=d.displayName,d||(d=E.displayName||E.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case p:return E=d.displayName||null,E!==null?E:e(d.type)||"Memo";case C:E=d._payload,d=d._init;try{return e(d(E))}catch{}}return null}function t(d){return""+d}function n(d){try{t(d);var E=!1}catch{E=!0}if(E){E=console;var R=E.error,N=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return R.call(E,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",N),t(d)}}function r(d){if(d===v)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===C)return"<...>";try{var E=e(d);return E?"<"+E+">":"<...>"}catch{return"<...>"}}function s(){var d=H.A;return d===null?null:d.getOwner()}function o(){return Error("react-stack-top-frame")}function i(d){if(ee.call(d,"key")){var E=Object.getOwnPropertyDescriptor(d,"key").get;if(E&&E.isReactWarning)return!1}return d.key!==void 0}function a(d,E){function R(){U||(U=!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)",E))}R.isReactWarning=!0,Object.defineProperty(d,"key",{get:R,configurable:!0})}function l(){var d=e(this.type);return L[d]||(L[d]=!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.")),d=this.props.ref,d!==void 0?d:null}function u(d,E,R,N,W,ne){var V=R.ref;return d={$$typeof:A,type:d,key:E,props:R,_owner:N},(V!==void 0?V:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:l}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:W}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ne}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function c(d,E,R,N,W,ne){var V=E.children;if(V!==void 0)if(N)if(Re(V)){for(N=0;N<V.length;N++)f(V[N]);Object.freeze&&Object.freeze(V)}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 f(V);if(ee.call(E,"key")){V=e(d);var Y=Object.keys(E).filter(function(Fe){return Fe!=="key"});N=0<Y.length?"{key: someKey, "+Y.join(": ..., ")+": ...}":"{key: someKey}",fe[V+N]||(Y=0<Y.length?"{"+Y.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
2
|
let props = %s;
|
|
3
3
|
<%s {...props} />
|
|
4
4
|
React keys must be passed directly to JSX without using spread:
|
|
5
5
|
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,u,m,x,m),Q[m+u]=!0)}if(m=null,s!==void 0&&(l(s),m=""+s),d(r)&&(l(r.key),m=""+r.key),"key"in r){s={};for(var Y in r)Y!=="key"&&(s[Y]=r[Y])}else s=r;return m&&i(s,typeof e=="function"?e.displayName||e.name||"Unknown":e),E(e,m,s,o(),C,I)}function R(e){b(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===P&&(e._payload.status==="fulfilled"?b(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function b(e){return typeof e=="object"&&e!==null&&e.$$typeof===g}var v=h,g=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),fe=Symbol.for("react.consumer"),de=Symbol.for("react.context"),pe=Symbol.for("react.forward_ref"),Ee=Symbol.for("react.suspense"),he=Symbol.for("react.suspense_list"),be=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),ge=Symbol.for("react.activity"),Ae=Symbol.for("react.client.reference"),F=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,we=Array.isArray,L=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var G,H={},J=v.react_stack_bottom_frame.bind(v,c)(),X=L(f(c)),Q={};j.Fragment=y,j.jsx=function(e,r,s){var u=1e4>F.recentlyCreatedOwnerStacks++;return _(e,r,s,!1,u?Error("react-stack-top-frame"):J,u?L(f(e)):X)},j.jsxs=function(e,r,s){var u=1e4>F.recentlyCreatedOwnerStacks++;return _(e,r,s,!0,u?Error("react-stack-top-frame"):J,u?L(f(e)):X)}})()),j}var D;function re(){return D||(D=1,process.env.NODE_ENV==="production"?Z.exports=ee():Z.exports=te()),Z.exports}var p=re();function ae({text:a,icon:n,iconPosition:l="left",href:f,disabled:o=!1,handleOnClick:c,btnColor:d,textColor:i="text-black",fullWidth:w=!1,border:E,rounded:_="rounded-none",extraClassName:R}){const b=S=>S?.includes("[")&&S?.includes("]")||!1,v=["flex","h-12","px-4","py-2","text-xl","font-semibold","uppercase","duration-300","items-center","justify-center","transition-colors",w?"w-full":"w-fit",o?"!bg-gray-300 !opacity-40 !cursor-not-allowed shadow-inner":"cursor-pointer"],g={backgroundColor:d||"bg-white",borderColor:E,textColor:i,borderWidth:E?"border-2":"",rounded:_},N=[...v,g.backgroundColor,g.borderWidth,g.borderColor,g.textColor,g.rounded,R].filter(Boolean).join(" ").replace(/\s+/g," ").trim(),y={...d&&b(d)&&{backgroundColor:d.match(/\[(.*?)\]/)?.[1]},...E&&b(E)&&{borderColor:E.match(/\[(.*?)\]/)?.[1]},...i&&b(i)&&{color:i.match(/\[(.*?)\]/)?.[1]}},O=p.jsxs("span",{className:`flex gap-2 justify-center items-center ${b(i)?"":i}`,style:i&&b(i)?{color:i.match(/\[(.*?)\]/)?.[1]}:{},children:[n&&l==="left"&&p.jsx("span",{"data-testid":"icon-left",children:h.createElement(n,{size:24,weight:"bold"})}),a,n&&l==="right"&&p.jsx("span",{"data-testid":"icon-right",children:h.createElement(n,{size:24,weight:"bold"})})]});return f&&!o?p.jsx("a",{className:N,style:y,href:f,target:"_blank",rel:"noopener noreferrer",onClick:c,children:O}):p.jsx("button",{className:N,style:y,disabled:o,type:"button",onClick:c,children:O})}const ne=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),t.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]),le=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),t.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),oe=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),t.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),se=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M180,128a12,12,0,0,1-12,12H88a12,12,0,0,1,0-24h80A12,12,0,0,1,180,128Zm56,0A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),t.createElement("path",{d:"M176,128a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,128Zm56,0A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm40,112H88a8,8,0,0,1,0-16h80a8,8,0,0,1,0,16Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M174,128a6,6,0,0,1-6,6H88a6,6,0,0,1,0-12h80A6,6,0,0,1,174,128Zm56,0A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M176,128a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,128Zm56,0A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M172,128a4,4,0,0,1-4,4H88a4,4,0,0,1,0-8h80A4,4,0,0,1,172,128Zm56,0A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),ce=h.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),k=t.forwardRef((a,n)=>{const{alt:l,color:f,size:o,weight:c,mirrored:d,children:i,weights:w,...E}=a,{color:_="currentColor",size:R,weight:b="regular",mirrored:v=!1,...g}=t.useContext(ce);return t.createElement("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:o??R,height:o??R,fill:f??_,viewBox:"0 0 256 256",transform:d||v?"scale(-1, 1)":void 0,...g,...E},!!l&&t.createElement("title",null,l),i,w.get(c??b))});k.displayName="IconBase";const V=t.forwardRef((a,n)=>t.createElement(k,{ref:n,...a,weights:ne}));V.displayName="CaretLeftIcon";const W=t.forwardRef((a,n)=>t.createElement(k,{ref:n,...a,weights:le}));W.displayName="CaretRightIcon";const U=t.forwardRef((a,n)=>t.createElement(k,{ref:n,...a,weights:oe}));U.displayName="CheckCircleIcon";const q=t.forwardRef((a,n)=>t.createElement(k,{ref:n,...a,weights:se}));q.displayName="MinusCircleIcon";const M={number:/\d/,lowercase:/[a-z]/,uppercase:/[A-Z]/,specialChar:/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?~`]/},ie={length:"Contiene 8 caracteres",number:"Contiene un número",lowercase:"Contiene una letra minúscula",uppercase:"Contiene una letra mayúscula",specialChar:"Contiene un carácter especial"};function ue({password:a,color:n="text-gray-600"}){const l=String(a),f=h.useMemo(()=>({length:l.length>=8,number:M.number.test(l),lowercase:M.lowercase.test(l),uppercase:M.uppercase.test(l),specialChar:M.specialChar.test(l)}),[l]),o=Object.entries(f);return p.jsx("div",{className:"absolute bottom-full z-10 mb-2 w-full border border-gray-600 bg-white p-2",role:"password-tooltip","aria-label":"Requisitos de contraseña",children:o.map(([c,d])=>p.jsxs("div",{className:"mt-1 flex items-center gap-2",children:[d?p.jsx(U,{className:"text-green-500",size:20}):p.jsx(q,{className:n,size:20}),p.jsx("p",{className:`text-sm ${d?"text-green-500":n}`,children:ie[c]})]},c))})}function me({currentPage:a,totalPages:n,onPageChange:l,className:f="",disabled:o=!1}){const c=a===0,d=a===n-1,i=!c&&!o,w=!d&&!o,E=()=>{i&&l(a-1)},_=()=>{w&&l(a+1)};return p.jsxs("div",{className:`flex items-center justify-center ${f}`,children:[p.jsx("button",{type:"button",onClick:E,disabled:!i,"aria-label":"Previous",className:`
|
|
6
|
+
<%s key={someKey} {...props} />`,N,V,Y,V),fe[V+N]=!0)}if(V=null,R!==void 0&&(n(R),V=""+R),i(E)&&(n(E.key),V=""+E.key),"key"in E){R={};for(var X in E)X!=="key"&&(R[X]=E[X])}else R=E;return V&&a(R,typeof d=="function"?d.displayName||d.name||"Unknown":d),u(d,V,R,s(),W,ne)}function f(d){m(d)?d._store&&(d._store.validated=1):typeof d=="object"&&d!==null&&d.$$typeof===C&&(d._payload.status==="fulfilled"?m(d._payload.value)&&d._payload.value._store&&(d._payload.value._store.validated=1):d._store&&(d._store.validated=1))}function m(d){return typeof d=="object"&&d!==null&&d.$$typeof===A}var w=$,A=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),O=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),G=Symbol.for("react.client.reference"),H=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=Object.prototype.hasOwnProperty,Re=Array.isArray,te=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function(d){return d()}};var U,L={},y=w.react_stack_bottom_frame.bind(w,o)(),de=te(r(o)),fe={};Oe.Fragment=v,Oe.jsx=function(d,E,R){var N=1e4>H.recentlyCreatedOwnerStacks++;return c(d,E,R,!1,N?Error("react-stack-top-frame"):y,N?te(r(d)):de)},Oe.jsxs=function(d,E,R){var N=1e4>H.recentlyCreatedOwnerStacks++;return c(d,E,R,!0,N?Error("react-stack-top-frame"):y,N?te(r(d)):de)}})()),Oe}var Qt;function ls(){return Qt||(Qt=1,process.env.NODE_ENV==="production"?Ye.exports=is():Ye.exports=as()),Ye.exports}var K=ls();function en(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=en(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ue(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=en(e))&&(r&&(r+=" "),r+=t);return r}const cs=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},us=(e,t)=>({classGroupId:e,validator:t}),tn=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Xe="-",nn=[],ds="arbitrary..",fs=e=>{const t=hs(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return ms(i);const a=i.split(Xe),l=a[0]===""&&a.length>1?1:0;return rn(a,l,t)},getConflictingClassGroupIds:(i,a)=>{if(a){const l=r[i],u=n[i];return l?u?cs(u,l):l:u||nn}return n[i]||nn}}},rn=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],o=n.nextPart.get(s);if(o){const u=rn(e,t+1,o);if(u)return u}const i=n.validators;if(i===null)return;const a=t===0?e.join(Xe):e.slice(t).join(Xe),l=i.length;for(let u=0;u<l;u++){const c=i[u];if(c.validator(a))return c.classGroupId}},ms=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?ds+r:void 0})(),hs=e=>{const{theme:t,classGroups:n}=e;return ps(n,t)},ps=(e,t)=>{const n=tn();for(const r in e){const s=e[r];it(s,n,r,t)}return n},it=(e,t,n,r)=>{const s=e.length;for(let o=0;o<s;o++){const i=e[o];gs(i,t,n,r)}},gs=(e,t,n,r)=>{if(typeof e=="string"){bs(e,t,n);return}if(typeof e=="function"){ys(e,t,n,r);return}ws(e,t,n,r)},bs=(e,t,n)=>{const r=e===""?t:sn(t,e);r.classGroupId=n},ys=(e,t,n,r)=>{if(xs(e)){it(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(us(n,e))},ws=(e,t,n,r)=>{const s=Object.entries(e),o=s.length;for(let i=0;i<o;i++){const[a,l]=s[i];it(l,sn(t,a),n,r)}},sn=(e,t)=>{let n=e;const r=t.split(Xe),s=r.length;for(let o=0;o<s;o++){const i=r[o];let a=n.nextPart.get(i);a||(a=tn(),n.nextPart.set(i,a)),n=a}return n},xs=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,vs=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const s=(o,i)=>{n[o]=i,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let i=n[o];if(i!==void 0)return i;if((i=r[o])!==void 0)return s(o,i),i},set(o,i){o in n?n[o]=i:s(o,i)}}},at="!",on=":",Ts=[],an=(e,t,n,r,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:s}),As=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=s=>{const o=[];let i=0,a=0,l=0,u;const c=s.length;for(let T=0;T<c;T++){const v=s[T];if(i===0&&a===0){if(v===on){o.push(s.slice(l,T)),l=T+1;continue}if(v==="/"){u=T;continue}}v==="["?i++:v==="]"?i--:v==="("?a++:v===")"&&a--}const f=o.length===0?s:s.slice(l);let m=f,w=!1;f.endsWith(at)?(m=f.slice(0,-1),w=!0):f.startsWith(at)&&(m=f.slice(1),w=!0);const A=u&&u>l?u-l:void 0;return an(o,w,m,A)};if(t){const s=t+on,o=r;r=i=>i.startsWith(s)?o(i.slice(s.length)):an(Ts,!1,i,void 0,!0)}if(n){const s=r;r=o=>n({className:o,parseClassName:s})}return r},ks=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let s=[];for(let o=0;o<n.length;o++){const i=n[o],a=i[0]==="[",l=t.has(i);a||l?(s.length>0&&(s.sort(),r.push(...s),s=[]),r.push(i)):s.push(i)}return s.length>0&&(s.sort(),r.push(...s)),r}},Ss=e=>({cache:vs(e.cacheSize),parseClassName:As(e),sortModifiers:ks(e),...fs(e)}),Ms=/\s+/,Es=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:o}=t,i=[],a=e.trim().split(Ms);let l="";for(let u=a.length-1;u>=0;u-=1){const c=a[u],{isExternal:f,modifiers:m,hasImportantModifier:w,baseClassName:A,maybePostfixModifierPosition:T}=n(c);if(f){l=c+(l.length>0?" "+l:l);continue}let v=!!T,M=r(v?A.substring(0,T):A);if(!M){if(!v){l=c+(l.length>0?" "+l:l);continue}if(M=r(A),!M){l=c+(l.length>0?" "+l:l);continue}v=!1}const D=m.length===0?"":m.length===1?m[0]:o(m).join(":"),S=w?D+at:D,O=S+M;if(i.indexOf(O)>-1)continue;i.push(O);const x=s(M,v);for(let F=0;F<x.length;++F){const I=x[F];i.push(S+I)}l=c+(l.length>0?" "+l:l)}return l},Vs=(...e)=>{let t=0,n,r,s="";for(;t<e.length;)(n=e[t++])&&(r=ln(n))&&(s&&(s+=" "),s+=r);return s},ln=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ln(e[r]))&&(n&&(n+=" "),n+=t);return n},Cs=(e,...t)=>{let n,r,s,o;const i=l=>{const u=t.reduce((c,f)=>f(c),e());return n=Ss(u),r=n.cache.get,s=n.cache.set,o=a,a(l)},a=l=>{const u=r(l);if(u)return u;const c=Es(l,n);return s(l,c),c};return o=i,(...l)=>o(Vs(...l))},Rs=[],z=e=>{const t=n=>n[e]||Rs;return t.isThemeGetter=!0,t},cn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,un=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Fs=/^\d+\/\d+$/,Ps=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Os=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ns=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ds=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Is=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,we=e=>Fs.test(e),P=e=>!!e&&!Number.isNaN(Number(e)),le=e=>!!e&&Number.isInteger(Number(e)),lt=e=>e.endsWith("%")&&P(e.slice(0,-1)),oe=e=>Ps.test(e),_s=()=>!0,js=e=>Os.test(e)&&!Ns.test(e),dn=()=>!1,zs=e=>Ds.test(e),Ls=e=>Is.test(e),Bs=e=>!g(e)&&!b(e),$s=e=>xe(e,gn,dn),g=e=>cn.test(e),me=e=>xe(e,bn,js),ct=e=>xe(e,Ys,P),fn=e=>xe(e,hn,dn),Ks=e=>xe(e,pn,Ls),qe=e=>xe(e,yn,zs),b=e=>un.test(e),Ne=e=>ve(e,bn),Zs=e=>ve(e,Us),mn=e=>ve(e,hn),Gs=e=>ve(e,gn),Ws=e=>ve(e,pn),He=e=>ve(e,yn,!0),xe=(e,t,n)=>{const r=cn.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ve=(e,t,n=!1)=>{const r=un.exec(e);return r?r[1]?t(r[1]):n:!1},hn=e=>e==="position"||e==="percentage",pn=e=>e==="image"||e==="url",gn=e=>e==="length"||e==="size"||e==="bg-size",bn=e=>e==="length",Ys=e=>e==="number",Us=e=>e==="family-name",yn=e=>e==="shadow",wn=Cs(()=>{const e=z("color"),t=z("font"),n=z("text"),r=z("font-weight"),s=z("tracking"),o=z("leading"),i=z("breakpoint"),a=z("container"),l=z("spacing"),u=z("radius"),c=z("shadow"),f=z("inset-shadow"),m=z("text-shadow"),w=z("drop-shadow"),A=z("blur"),T=z("perspective"),v=z("aspect"),M=z("ease"),D=z("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],x=()=>[...O(),b,g],F=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],p=()=>[b,g,l],C=()=>[we,"full","auto",...p()],B=()=>[le,"none","subgrid",b,g],G=()=>["auto",{span:["full",le,b,g]},le,b,g],H=()=>[le,"auto",b,g],ee=()=>["auto","min","max","fr",b,g],Re=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],te=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...p()],L=()=>[we,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...p()],y=()=>[e,b,g],de=()=>[...O(),mn,fn,{position:[b,g]}],fe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],d=()=>["auto","cover","contain",Gs,$s,{size:[b,g]}],E=()=>[lt,Ne,me],R=()=>["","none","full",u,b,g],N=()=>["",P,Ne,me],W=()=>["solid","dashed","dotted","double"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>[P,lt,mn,fn],Y=()=>["","none",A,b,g],X=()=>["none",P,b,g],Fe=()=>["none",P,b,g],qt=()=>[P,b,g],ot=()=>[we,"full",...p()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[oe],breakpoint:[oe],color:[_s],container:[oe],"drop-shadow":[oe],ease:["in","out","in-out"],font:[Bs],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[oe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[oe],shadow:[oe],spacing:["px",P],text:[oe],"text-shadow":[oe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",we,g,b,v]}],container:["container"],columns:[{columns:[P,g,b,a]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{start:C()}],end:[{end:C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:["visible","invisible","collapse"],z:[{z:[le,"auto",b,g]}],basis:[{basis:[we,"full","auto",a,...p()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[P,we,"auto","initial","none",g]}],grow:[{grow:["",P,b,g]}],shrink:[{shrink:["",P,b,g]}],order:[{order:[le,"first","last","none",b,g]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:p()}],"gap-x":[{"gap-x":p()}],"gap-y":[{"gap-y":p()}],"justify-content":[{justify:[...Re(),"normal"]}],"justify-items":[{"justify-items":[...te(),"normal"]}],"justify-self":[{"justify-self":["auto",...te()]}],"align-content":[{content:["normal",...Re()]}],"align-items":[{items:[...te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...te(),{baseline:["","last"]}]}],"place-content":[{"place-content":Re()}],"place-items":[{"place-items":[...te(),"baseline"]}],"place-self":[{"place-self":["auto",...te()]}],p:[{p:p()}],px:[{px:p()}],py:[{py:p()}],ps:[{ps:p()}],pe:[{pe:p()}],pt:[{pt:p()}],pr:[{pr:p()}],pb:[{pb:p()}],pl:[{pl:p()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":p()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":p()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],w:[{w:[a,"screen",...L()]}],"min-w":[{"min-w":[a,"screen","none",...L()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",n,Ne,me]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,b,ct]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",lt,g]}],"font-family":[{font:[Zs,g,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,b,g]}],"line-clamp":[{"line-clamp":[P,"none",b,ct]}],leading:[{leading:[o,...p()]}],"list-image":[{"list-image":["none",b,g]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",b,g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:y()}],"text-color":[{text:y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[P,"from-font","auto",b,me]}],"text-decoration-color":[{decoration:y()}],"underline-offset":[{"underline-offset":[P,"auto",b,g]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:p()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",b,g]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",b,g]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:fe()}],"bg-size":[{bg:d()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},le,b,g],radial:["",b,g],conic:[le,b,g]},Ws,Ks]}],"bg-color":[{bg:y()}],"gradient-from-pos":[{from:E()}],"gradient-via-pos":[{via:E()}],"gradient-to-pos":[{to:E()}],"gradient-from":[{from:y()}],"gradient-via":[{via:y()}],"gradient-to":[{to:y()}],rounded:[{rounded:R()}],"rounded-s":[{"rounded-s":R()}],"rounded-e":[{"rounded-e":R()}],"rounded-t":[{"rounded-t":R()}],"rounded-r":[{"rounded-r":R()}],"rounded-b":[{"rounded-b":R()}],"rounded-l":[{"rounded-l":R()}],"rounded-ss":[{"rounded-ss":R()}],"rounded-se":[{"rounded-se":R()}],"rounded-ee":[{"rounded-ee":R()}],"rounded-es":[{"rounded-es":R()}],"rounded-tl":[{"rounded-tl":R()}],"rounded-tr":[{"rounded-tr":R()}],"rounded-br":[{"rounded-br":R()}],"rounded-bl":[{"rounded-bl":R()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":N()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:y()}],"border-color-x":[{"border-x":y()}],"border-color-y":[{"border-y":y()}],"border-color-s":[{"border-s":y()}],"border-color-e":[{"border-e":y()}],"border-color-t":[{"border-t":y()}],"border-color-r":[{"border-r":y()}],"border-color-b":[{"border-b":y()}],"border-color-l":[{"border-l":y()}],"divide-color":[{divide:y()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[P,b,g]}],"outline-w":[{outline:["",P,Ne,me]}],"outline-color":[{outline:y()}],shadow:[{shadow:["","none",c,He,qe]}],"shadow-color":[{shadow:y()}],"inset-shadow":[{"inset-shadow":["none",f,He,qe]}],"inset-shadow-color":[{"inset-shadow":y()}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:y()}],"ring-offset-w":[{"ring-offset":[P,me]}],"ring-offset-color":[{"ring-offset":y()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":y()}],"text-shadow":[{"text-shadow":["none",m,He,qe]}],"text-shadow-color":[{"text-shadow":y()}],opacity:[{opacity:[P,b,g]}],"mix-blend":[{"mix-blend":[...ne(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ne()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[P]}],"mask-image-linear-from-pos":[{"mask-linear-from":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"mask-image-linear-from-color":[{"mask-linear-from":y()}],"mask-image-linear-to-color":[{"mask-linear-to":y()}],"mask-image-t-from-pos":[{"mask-t-from":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"mask-image-t-from-color":[{"mask-t-from":y()}],"mask-image-t-to-color":[{"mask-t-to":y()}],"mask-image-r-from-pos":[{"mask-r-from":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"mask-image-r-from-color":[{"mask-r-from":y()}],"mask-image-r-to-color":[{"mask-r-to":y()}],"mask-image-b-from-pos":[{"mask-b-from":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"mask-image-b-from-color":[{"mask-b-from":y()}],"mask-image-b-to-color":[{"mask-b-to":y()}],"mask-image-l-from-pos":[{"mask-l-from":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"mask-image-l-from-color":[{"mask-l-from":y()}],"mask-image-l-to-color":[{"mask-l-to":y()}],"mask-image-x-from-pos":[{"mask-x-from":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"mask-image-x-from-color":[{"mask-x-from":y()}],"mask-image-x-to-color":[{"mask-x-to":y()}],"mask-image-y-from-pos":[{"mask-y-from":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":y()}],"mask-image-y-to-color":[{"mask-y-to":y()}],"mask-image-radial":[{"mask-radial":[b,g]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"mask-image-radial-from-color":[{"mask-radial-from":y()}],"mask-image-radial-to-color":[{"mask-radial-to":y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[P]}],"mask-image-conic-from-pos":[{"mask-conic-from":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"mask-image-conic-from-color":[{"mask-conic-from":y()}],"mask-image-conic-to-color":[{"mask-conic-to":y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:fe()}],"mask-size":[{mask:d()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",b,g]}],filter:[{filter:["","none",b,g]}],blur:[{blur:Y()}],brightness:[{brightness:[P,b,g]}],contrast:[{contrast:[P,b,g]}],"drop-shadow":[{"drop-shadow":["","none",w,He,qe]}],"drop-shadow-color":[{"drop-shadow":y()}],grayscale:[{grayscale:["",P,b,g]}],"hue-rotate":[{"hue-rotate":[P,b,g]}],invert:[{invert:["",P,b,g]}],saturate:[{saturate:[P,b,g]}],sepia:[{sepia:["",P,b,g]}],"backdrop-filter":[{"backdrop-filter":["","none",b,g]}],"backdrop-blur":[{"backdrop-blur":Y()}],"backdrop-brightness":[{"backdrop-brightness":[P,b,g]}],"backdrop-contrast":[{"backdrop-contrast":[P,b,g]}],"backdrop-grayscale":[{"backdrop-grayscale":["",P,b,g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[P,b,g]}],"backdrop-invert":[{"backdrop-invert":["",P,b,g]}],"backdrop-opacity":[{"backdrop-opacity":[P,b,g]}],"backdrop-saturate":[{"backdrop-saturate":[P,b,g]}],"backdrop-sepia":[{"backdrop-sepia":["",P,b,g]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":p()}],"border-spacing-x":[{"border-spacing-x":p()}],"border-spacing-y":[{"border-spacing-y":p()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",b,g]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[P,"initial",b,g]}],ease:[{ease:["linear","initial",M,b,g]}],delay:[{delay:[P,b,g]}],animate:[{animate:["none",D,b,g]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[T,b,g]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:X()}],"rotate-x":[{"rotate-x":X()}],"rotate-y":[{"rotate-y":X()}],"rotate-z":[{"rotate-z":X()}],scale:[{scale:Fe()}],"scale-x":[{"scale-x":Fe()}],"scale-y":[{"scale-y":Fe()}],"scale-z":[{"scale-z":Fe()}],"scale-3d":["scale-3d"],skew:[{skew:qt()}],"skew-x":[{"skew-x":qt()}],"skew-y":[{"skew-y":qt()}],transform:[{transform:[b,g,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ot()}],"translate-x":[{"translate-x":ot()}],"translate-y":[{"translate-y":ot()}],"translate-z":[{"translate-z":ot()}],"translate-none":["translate-none"],accent:[{accent:y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",b,g]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":p()}],"scroll-mx":[{"scroll-mx":p()}],"scroll-my":[{"scroll-my":p()}],"scroll-ms":[{"scroll-ms":p()}],"scroll-me":[{"scroll-me":p()}],"scroll-mt":[{"scroll-mt":p()}],"scroll-mr":[{"scroll-mr":p()}],"scroll-mb":[{"scroll-mb":p()}],"scroll-ml":[{"scroll-ml":p()}],"scroll-p":[{"scroll-p":p()}],"scroll-px":[{"scroll-px":p()}],"scroll-py":[{"scroll-py":p()}],"scroll-ps":[{"scroll-ps":p()}],"scroll-pe":[{"scroll-pe":p()}],"scroll-pt":[{"scroll-pt":p()}],"scroll-pr":[{"scroll-pr":p()}],"scroll-pb":[{"scroll-pb":p()}],"scroll-pl":[{"scroll-pl":p()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",b,g]}],fill:[{fill:["none",...y()]}],"stroke-w":[{stroke:[P,Ne,me,ct]}],stroke:[{stroke:["none",...y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Xs({text:e,icon:t,iconPosition:n="left",disabled:r=!1,onClick:s,btnColor:o="bg-white",textColor:i="text-black",fullWidth:a=!1,border:l,rounded:u="rounded-none",extraClassName:c,type:f="button"}){const m=S=>(S?.includes("[")&&S?.includes("]"))??!1,w=S=>S.match(/\[(.*?)\]/)?.[1],A=Ue("flex h-12 px-4 py-2 text-xl font-semibold uppercase","duration-300 items-center justify-center transition-colors",a?"w-full":"w-fit",{"bg-gray-400 opacity-40 cursor-not-allowed shadow-inner":r,"cursor-pointer":!r}),T=Ue(!r&&o,l&&"border-2",l,i,u,c),v=wn(A,T),M=$.useMemo(()=>{const S={};return o&&m(o)&&!r&&(S.backgroundColor=w(o)),l&&m(l)&&(S.borderColor=w(l)),i&&m(i)&&(S.color=w(i)),S},[o,l,i,r]),D=K.jsxs("span",{className:Ue("flex gap-2 justify-center items-center",i&&!m(i)&&i),style:i&&m(i)?{color:w(i)}:{},children:[t&&n==="left"&&K.jsx("span",{"data-testid":"icon-left",children:$.createElement(t,{size:24,weight:"bold"})}),e,t&&n==="right"&&K.jsx("span",{"data-testid":"icon-right",children:$.createElement(t,{size:24,weight:"bold"})})]});return K.jsx("button",{type:f,className:v,style:M,disabled:r,onClick:s,children:D})}const qs=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),h.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]),Hs=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),h.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),Js=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),h.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),Qs=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M180,128a12,12,0,0,1-12,12H88a12,12,0,0,1,0-24h80A12,12,0,0,1,180,128Zm56,0A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),h.createElement("path",{d:"M176,128a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,128Zm56,0A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm40,112H88a8,8,0,0,1,0-16h80a8,8,0,0,1,0,16Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M174,128a6,6,0,0,1-6,6H88a6,6,0,0,1,0-12h80A6,6,0,0,1,174,128Zm56,0A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M176,128a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,128Zm56,0A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M172,128a4,4,0,0,1-4,4H88a4,4,0,0,1,0-8h80A4,4,0,0,1,172,128Zm56,0A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),eo=$.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),De=h.forwardRef((e,t)=>{const{alt:n,color:r,size:s,weight:o,mirrored:i,children:a,weights:l,...u}=e,{color:c="currentColor",size:f,weight:m="regular",mirrored:w=!1,...A}=h.useContext(eo);return h.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:s??f,height:s??f,fill:r??c,viewBox:"0 0 256 256",transform:i||w?"scale(-1, 1)":void 0,...A,...u},!!n&&h.createElement("title",null,n),a,l.get(o??m))});De.displayName="IconBase";const xn=h.forwardRef((e,t)=>h.createElement(De,{ref:t,...e,weights:qs}));xn.displayName="CaretLeftIcon";const vn=h.forwardRef((e,t)=>h.createElement(De,{ref:t,...e,weights:Hs}));vn.displayName="CaretRightIcon";const Tn=h.forwardRef((e,t)=>h.createElement(De,{ref:t,...e,weights:Js}));Tn.displayName="CheckCircleIcon";const An=h.forwardRef((e,t)=>h.createElement(De,{ref:t,...e,weights:Qs}));An.displayName="MinusCircleIcon";const Je={number:/\d/,lowercase:/[a-z]/,uppercase:/[A-Z]/,specialChar:/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?~`]/},to={length:"Contiene 8 caracteres",number:"Contiene un número",lowercase:"Contiene una letra minúscula",uppercase:"Contiene una letra mayúscula",specialChar:"Contiene un carácter especial"};function no({password:e,color:t="text-gray-600"}){const n=String(e),r=$.useMemo(()=>({length:n.length>=8,number:Je.number.test(n),lowercase:Je.lowercase.test(n),uppercase:Je.uppercase.test(n),specialChar:Je.specialChar.test(n)}),[n]),s=Object.entries(r);return K.jsx("div",{className:"absolute bottom-full z-10 mb-2 w-full border border-gray-600 bg-white p-2",role:"password-tooltip","aria-label":"Requisitos de contraseña",children:s.map(([o,i])=>K.jsxs("div",{className:"mt-1 flex items-center gap-2",children:[i?K.jsx(Tn,{className:"text-green-500",size:20}):K.jsx(An,{className:t,size:20}),K.jsx("p",{className:`text-sm ${i?"text-green-500":t}`,children:to[o]})]},o))})}function ro({currentPage:e,totalPages:t,onPageChange:n,className:r="",disabled:s=!1}){const o=e===0,i=e===t-1,a=!o&&!s,l=!i&&!s,u=()=>{a&&n(e-1)},c=()=>{l&&n(e+1)};return K.jsxs("div",{className:`flex items-center justify-center ${r}`,children:[K.jsx("button",{type:"button",onClick:u,disabled:!a,"aria-label":"Previous",className:`
|
|
7
7
|
transition-colors rounded-full
|
|
8
|
-
${
|
|
9
|
-
`,children:
|
|
8
|
+
${a?"text-black cursor-pointer":"text-gray-300 cursor-not-allowed"}
|
|
9
|
+
`,children:K.jsx(xn,{size:16,weight:"bold"})}),t>1&&K.jsxs("span",{className:"text-sm font-bold text-black min-w-12 text-center",children:[e+1," / ",t]}),K.jsx("button",{type:"button",onClick:c,disabled:!l,"aria-label":"Next",className:`
|
|
10
10
|
transition-colors rounded-full
|
|
11
|
-
${
|
|
12
|
-
`,children:p.jsx(W,{size:16,weight:"bold"})})]})}A.Button=ae,A.Navigation=me,A.PasswordTooltip=ue,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));
|
|
11
|
+
${l?"text-black cursor-pointer":"text-gray-300 cursor-not-allowed"}
|
|
12
|
+
`,children:K.jsx(vn,{size:16,weight:"bold"})})]})}const kn=typeof window<"u",so=kn?$.useLayoutEffect:$.useEffect;function oo(e,t){e.indexOf(t)===-1&&e.push(t)}function Sn(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const he=(e,t,n)=>n>t?t:n<e?e:n;function ut(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Ie=()=>{},se=()=>{};process.env.NODE_ENV!=="production"&&(Ie=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(ut(t,n))},se=(e,t,n)=>{if(!e)throw new Error(ut(t,n))});const ie={},Mn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function io(e){return typeof e=="object"&&e!==null}const En=e=>/^0[^.\s]+$/u.test(e);function dt(e){let t;return()=>(t===void 0&&(t=e()),t)}const Te=e=>e,ao=(e,t)=>n=>t(e(n)),ft=(...e)=>e.reduce(ao),mt=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Vn{constructor(){this.subscriptions=[]}add(t){return oo(this.subscriptions,t),()=>Sn(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let o=0;o<s;o++){const i=this.subscriptions[o];i&&i(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const J=e=>e*1e3,Q=e=>e/1e3;function Cn(e,t){return t?e*(1e3/t):0}const Rn=new Set;function Fn(e,t,n){e||Rn.has(t)||(console.warn(ut(t,n)),Rn.add(t))}const lo=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e},Pn=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,co=1e-7,uo=12;function fo(e,t,n,r,s){let o,i,a=0;do i=t+(n-t)/2,o=Pn(i,r,s)-e,o>0?n=i:t=i;while(Math.abs(o)>co&&++a<uo);return i}function _e(e,t,n,r){if(e===t&&n===r)return Te;const s=o=>fo(o,0,1,e,n);return o=>o===0||o===1?o:Pn(s(o),t,r)}const On=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Nn=e=>t=>1-e(1-t),Dn=_e(.33,1.53,.69,.99),ht=Nn(Dn),In=On(ht),_n=e=>(e*=2)<1?.5*ht(e):.5*(2-Math.pow(2,-10*(e-1))),pt=e=>1-Math.sin(Math.acos(e)),mo=Nn(pt),jn=On(pt),ho=_e(.42,0,1,1),po=_e(0,0,.58,1),zn=_e(.42,0,.58,1),Ln=e=>Array.isArray(e)&&typeof e[0]!="number";function Bn(e,t){return Ln(e)?e[lo(0,e.length,t)]:e}const $n=e=>Array.isArray(e)&&typeof e[0]=="number",Kn={linear:Te,easeIn:ho,easeInOut:zn,easeOut:po,circIn:pt,circInOut:jn,circOut:mo,backIn:ht,backInOut:In,backOut:Dn,anticipate:_n},go=e=>typeof e=="string",Zn=e=>{if($n(e)){se(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,s]=e;return _e(t,n,r,s)}else if(go(e))return se(Kn[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Kn[e];return e},Qe=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function bo(e,t){let n=new Set,r=new Set,s=!1,o=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){i.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,f=!1,m=!1)=>{const A=m&&s?n:r;return f&&i.add(c),A.has(c)||A.add(c),c},cancel:c=>{r.delete(c),i.delete(c)},process:c=>{if(a=c,s){o=!0;return}s=!0,[n,r]=[r,n],n.forEach(l),n.clear(),s=!1,o&&(o=!1,u.process(c))}};return u}const yo=40;function Gn(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,i=Qe.reduce((S,O)=>(S[O]=bo(o),S),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:f,preRender:m,render:w,postRender:A}=i,T=()=>{const S=ie.useManualTiming?s.timestamp:performance.now();n=!1,ie.useManualTiming||(s.delta=r?1e3/60:Math.max(Math.min(S-s.timestamp,yo),1)),s.timestamp=S,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),c.process(s),f.process(s),m.process(s),w.process(s),A.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(T))},v=()=>{n=!0,r=!0,s.isProcessing||e(T)};return{schedule:Qe.reduce((S,O)=>{const x=i[O];return S[O]=(F,I=!1,p=!1)=>(n||v(),x.schedule(F,I,p)),S},{}),cancel:S=>{for(let O=0;O<Qe.length;O++)i[Qe[O]].cancel(S)},state:s,steps:i}}const{schedule:ae,cancel:gt,state:et}=Gn(typeof requestAnimationFrame<"u"?requestAnimationFrame:Te,!0);let tt;function wo(){tt=void 0}const q={now:()=>(tt===void 0&&q.set(et.isProcessing||ie.useManualTiming?et.timestamp:performance.now()),tt),set:e=>{tt=e,queueMicrotask(wo)}},Wn=e=>t=>typeof t=="string"&&t.startsWith(e),Yn=Wn("--"),xo=Wn("var(--"),bt=e=>xo(e)?vo.test(e.split("/*")[0].trim()):!1,vo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ae={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},je={...Ae,transform:e=>he(0,1,e)},nt={...Ae,default:1},ze=e=>Math.round(e*1e5)/1e5,yt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function To(e){return e==null}const Ao=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,wt=(e,t)=>n=>!!(typeof n=="string"&&Ao.test(n)&&n.startsWith(e)||t&&!To(n)&&Object.prototype.hasOwnProperty.call(n,t)),Un=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,o,i,a]=r.match(yt);return{[e]:parseFloat(s),[t]:parseFloat(o),[n]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},ko=e=>he(0,255,e),xt={...Ae,transform:e=>Math.round(ko(e))},pe={test:wt("rgb","red"),parse:Un("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+xt.transform(e)+", "+xt.transform(t)+", "+xt.transform(n)+", "+ze(je.transform(r))+")"};function So(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const vt={test:wt("#"),parse:So,transform:pe.transform},Le=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ce=Le("deg"),ke=Le("%"),k=Le("px"),Mo=Le("vh"),Eo=Le("vw"),Xn={...ke,parse:e=>ke.parse(e)/100,transform:e=>ke.transform(e*100)},Se={test:wt("hsl","hue"),parse:Un("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ke.transform(ze(t))+", "+ke.transform(ze(n))+", "+ze(je.transform(r))+")"},j={test:e=>pe.test(e)||vt.test(e)||Se.test(e),parse:e=>pe.test(e)?pe.parse(e):Se.test(e)?Se.parse(e):vt.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?pe.transform(e):Se.transform(e),getAnimatableNone:e=>{const t=j.parse(e);return t.alpha=0,j.transform(t)}},Vo=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Co(e){return isNaN(e)&&typeof e=="string"&&(e.match(yt)?.length||0)+(e.match(Vo)?.length||0)>0}const qn="number",Hn="color",Ro="var",Fo="var(",Jn="${}",Po=/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 Be(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let o=0;const a=t.replace(Po,l=>(j.test(l)?(r.color.push(o),s.push(Hn),n.push(j.parse(l))):l.startsWith(Fo)?(r.var.push(o),s.push(Ro),n.push(l)):(r.number.push(o),s.push(qn),n.push(parseFloat(l))),++o,Jn)).split(Jn);return{values:n,split:a,indexes:r,types:s}}function Qn(e){return Be(e).values}function er(e){const{split:t,types:n}=Be(e),r=t.length;return s=>{let o="";for(let i=0;i<r;i++)if(o+=t[i],s[i]!==void 0){const a=n[i];a===qn?o+=ze(s[i]):a===Hn?o+=j.transform(s[i]):o+=s[i]}return o}}const Oo=e=>typeof e=="number"?0:j.test(e)?j.getAnimatableNone(e):e;function No(e){const t=Qn(e);return er(e)(t.map(Oo))}const ue={test:Co,parse:Qn,createTransformer:er,getAnimatableNone:No};function Tt(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 Do({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,o=0,i=0;if(!t)s=o=i=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=Tt(l,a,e+1/3),o=Tt(l,a,e),i=Tt(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(i*255),alpha:r}}function rt(e,t){return n=>n>0?t:e}const Me=(e,t,n)=>e+(t-e)*n,At=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},Io=[vt,pe,Se],_o=e=>Io.find(t=>t.test(e));function tr(e){const t=_o(e);if(Ie(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Se&&(n=Do(n)),n}const nr=(e,t)=>{const n=tr(e),r=tr(t);if(!n||!r)return rt(e,t);const s={...n};return o=>(s.red=At(n.red,r.red,o),s.green=At(n.green,r.green,o),s.blue=At(n.blue,r.blue,o),s.alpha=Me(n.alpha,r.alpha,o),pe.transform(s))},kt=new Set(["none","hidden"]);function jo(e,t){return kt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function zo(e,t){return n=>Me(e,t,n)}function St(e){return typeof e=="number"?zo:typeof e=="string"?bt(e)?rt:j.test(e)?nr:$o:Array.isArray(e)?rr:typeof e=="object"?j.test(e)?nr:Lo:rt}function rr(e,t){const n=[...e],r=n.length,s=e.map((o,i)=>St(o)(o,t[i]));return o=>{for(let i=0;i<r;i++)n[i]=s[i](o);return n}}function Lo(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=St(e[s])(e[s],t[s]));return s=>{for(const o in r)n[o]=r[o](s);return n}}function Bo(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],i=e.indexes[o][r[o]],a=e.values[i]??0;n[s]=a,r[o]++}return n}const $o=(e,t)=>{const n=ue.createTransformer(t),r=Be(e),s=Be(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?kt.has(e)&&!s.values.length||kt.has(t)&&!r.values.length?jo(e,t):ft(rr(Bo(r,s),s.values),n):(Ie(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),rt(e,t))};function sr(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Me(e,t,n):St(e)(e,t)}const Ko=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ae.update(t,n),stop:()=>gt(t),now:()=>et.isProcessing?et.timestamp:q.now()}},or=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let o=0;o<s;o++)r+=Math.round(e(o/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},st=2e4;function Mt(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<st;)t+=n,r=e.next(t);return t>=st?1/0:t}function ir(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(Mt(r),st);return{type:"keyframes",ease:o=>r.next(s*o).value/t,duration:Q(s)}}const Zo=5;function ar(e,t,n){const r=Math.max(t-Zo,0);return Cn(n-e(r),t-r)}const _={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},Et=.001;function Go({duration:e=_.duration,bounce:t=_.bounce,velocity:n=_.velocity,mass:r=_.mass}){let s,o;Ie(e<=J(_.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-t;i=he(_.minDamping,_.maxDamping,i),e=he(_.minDuration,_.maxDuration,Q(e)),i<1?(s=u=>{const c=u*i,f=c*e,m=c-n,w=Vt(u,i),A=Math.exp(-f);return Et-m/w*A},o=u=>{const f=u*i*e,m=f*n+n,w=Math.pow(i,2)*Math.pow(u,2)*e,A=Math.exp(-f),T=Vt(Math.pow(u,2),i);return(-s(u)+Et>0?-1:1)*((m-w)*A)/T}):(s=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Et+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=Yo(s,o,a);if(e=J(e),isNaN(l))return{stiffness:_.stiffness,damping:_.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:i*2*Math.sqrt(r*u),duration:e}}}const Wo=12;function Yo(e,t,n){let r=n;for(let s=1;s<Wo;s++)r=r-e(r)/t(r);return r}function Vt(e,t){return e*Math.sqrt(1-t*t)}const Uo=["duration","bounce"],Xo=["stiffness","damping","mass"];function lr(e,t){return t.some(n=>e[n]!==void 0)}function qo(e){let t={velocity:_.velocity,stiffness:_.stiffness,damping:_.damping,mass:_.mass,isResolvedFromDuration:!1,...e};if(!lr(e,Xo)&&lr(e,Uo))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,o=2*he(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:_.mass,stiffness:s,damping:o}}else{const n=Go(e);t={...t,...n,mass:_.mass},t.isResolvedFromDuration=!0}return t}function $e(e=_.visualDuration,t=_.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const o=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:f,velocity:m,isResolvedFromDuration:w}=qo({...n,velocity:-Q(n.velocity||0)}),A=m||0,T=u/(2*Math.sqrt(l*c)),v=i-o,M=Q(Math.sqrt(l/c)),D=Math.abs(v)<5;r||(r=D?_.restSpeed.granular:_.restSpeed.default),s||(s=D?_.restDelta.granular:_.restDelta.default);let S;if(T<1){const x=Vt(M,T);S=F=>{const I=Math.exp(-T*M*F);return i-I*((A+T*M*v)/x*Math.sin(x*F)+v*Math.cos(x*F))}}else if(T===1)S=x=>i-Math.exp(-M*x)*(v+(A+M*v)*x);else{const x=M*Math.sqrt(T*T-1);S=F=>{const I=Math.exp(-T*M*F),p=Math.min(x*F,300);return i-I*((A+T*M*v)*Math.sinh(p)+x*v*Math.cosh(p))/x}}const O={calculatedDuration:w&&f||null,next:x=>{const F=S(x);if(w)a.done=x>=f;else{let I=x===0?A:0;T<1&&(I=x===0?J(A):ar(S,x,F));const p=Math.abs(I)<=r,C=Math.abs(i-F)<=s;a.done=p&&C}return a.value=a.done?i:F,a},toString:()=>{const x=Math.min(Mt(O),st),F=or(I=>O.next(x*I).value,x,30);return x+"ms "+F},toTransition:()=>{}};return O}$e.applyToOptions=e=>{const t=ir(e,100,$e);return e.ease=t.ease,e.duration=J(t.duration),e.type="keyframes",e};function Ct({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:i,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],m={done:!1,value:f},w=p=>a!==void 0&&p<a||l!==void 0&&p>l,A=p=>a===void 0?l:l===void 0||Math.abs(a-p)<Math.abs(l-p)?a:l;let T=n*t;const v=f+T,M=i===void 0?v:i(v);M!==v&&(T=M-f);const D=p=>-T*Math.exp(-p/r),S=p=>M+D(p),O=p=>{const C=D(p),B=S(p);m.done=Math.abs(C)<=u,m.value=m.done?M:B};let x,F;const I=p=>{w(m.value)&&(x=p,F=$e({keyframes:[m.value,A(m.value)],velocity:ar(S,p,m.value),damping:s,stiffness:o,restDelta:u,restSpeed:c}))};return I(0),{calculatedDuration:null,next:p=>{let C=!1;return!F&&x===void 0&&(C=!0,O(p),I(p)),x!==void 0&&p>=x?F.next(p-x):(!C&&O(p),m)}}}function Ho(e,t,n){const r=[],s=n||ie.mix||sr,o=e.length-1;for(let i=0;i<o;i++){let a=s(e[i],e[i+1]);if(t){const l=Array.isArray(t)?t[i]||Te:t;a=ft(l,a)}r.push(a)}return r}function Jo(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const o=e.length;if(se(o===t.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Ho(t,r,s),l=a.length,u=c=>{if(i&&c<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const m=mt(e[f],e[f+1],c);return a[f](m)};return n?c=>u(he(e[0],e[o-1],c)):u}function cr(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=mt(0,t,r);e.push(Me(n,1,s))}}function ur(e){const t=[0];return cr(t,e.length-1),t}function Qo(e,t){return e.map(n=>n*t)}function ei(e,t){return e.map(()=>t||zn).splice(0,e.length-1)}function Ee({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=Ln(r)?r.map(Zn):Zn(r),o={done:!1,value:t[0]},i=Qo(n&&n.length===t.length?n:ur(t),e),a=Jo(i,t,{ease:Array.isArray(s)?s:ei(t,s)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const ti=e=>e!==null;function Rt(e,{repeat:t,repeatType:n="loop"},r,s=1){const o=e.filter(ti),a=s<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}const ni={decay:Ct,inertia:Ct,tween:Ee,keyframes:Ee,spring:$e};function dr(e){typeof e.type=="string"&&(e.type=ni[e.type])}class Ft{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const ri=e=>e/100;class Pt extends Ft{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==q.now()&&this.tick(q.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;dr(t);const{type:n=Ee,repeat:r=0,repeatDelay:s=0,repeatType:o,velocity:i=0}=t;let{keyframes:a}=t;const l=n||Ee;process.env.NODE_ENV!=="production"&&l!==Ee&&se(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==Ee&&typeof a[0]!="number"&&(this.mixKeyframes=ft(ri,sr(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-i})),u.calculatedDuration===null&&(u.calculatedDuration=Mt(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:s,mixKeyframes:o,mirroredGenerator:i,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:f,repeatType:m,repeatDelay:w,type:A,onUpdate:T,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const M=this.currentTime-u*(this.playbackSpeed>=0?1:-1),D=this.playbackSpeed>=0?M<0:M>s;this.currentTime=Math.max(M,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let S=this.currentTime,O=r;if(f){const p=Math.min(this.currentTime,s)/a;let C=Math.floor(p),B=p%1;!B&&p>=1&&(B=1),B===1&&C--,C=Math.min(C,f+1),!!(C%2)&&(m==="reverse"?(B=1-B,w&&(B-=w/a)):m==="mirror"&&(O=i)),S=he(0,1,B)*a}const x=D?{done:!1,value:c[0]}:O.next(S);o&&(x.value=o(x.value));let{done:F}=x;!D&&l!==null&&(F=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return I&&A!==Ct&&(x.value=Rt(c,this.options,v,this.speed)),T&&T(x.value),I&&this.finish(),x}then(t,n){return this.finished.then(t,n)}get duration(){return Q(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Q(t)}get time(){return Q(this.currentTime)}set time(t){t=J(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(q.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Q(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Ko,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(q.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function si(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ge=e=>e*180/Math.PI,Ot=e=>{const t=ge(Math.atan2(e[1],e[0]));return Nt(t)},oi={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ot,rotateZ:Ot,skewX:e=>ge(Math.atan(e[1])),skewY:e=>ge(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Nt=e=>(e=e%360,e<0&&(e+=360),e),fr=Ot,mr=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),hr=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ii={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:mr,scaleY:hr,scale:e=>(mr(e)+hr(e))/2,rotateX:e=>Nt(ge(Math.atan2(e[6],e[5]))),rotateY:e=>Nt(ge(Math.atan2(-e[2],e[0]))),rotateZ:fr,rotate:fr,skewX:e=>ge(Math.atan(e[4])),skewY:e=>ge(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Dt(e){return e.includes("scale")?1:0}function It(e,t){if(!e||e==="none")return Dt(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=ii,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=oi,s=a}if(!s)return Dt(t);const o=r[t],i=s[1].split(",").map(li);return typeof o=="function"?o(i):i[o]}const ai=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return It(n,t)};function li(e){return parseFloat(e.trim())}const Ve=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ce=new Set(Ve),pr=e=>e===Ae||e===k,ci=new Set(["x","y","z"]),ui=Ve.filter(e=>!ci.has(e));function di(e){const t=[];return ui.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const be={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})=>It(t,"x"),y:(e,{transform:t})=>It(t,"y")};be.translateX=be.x,be.translateY=be.y;const ye=new Set;let _t=!1,jt=!1,zt=!1;function gr(){if(jt){const e=Array.from(ye).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=di(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([o,i])=>{r.getValue(o)?.set(i)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}jt=!1,_t=!1,ye.forEach(e=>e.complete(zt)),ye.clear()}function br(){ye.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(jt=!0)})}function fi(){zt=!0,br(),gr(),zt=!1}class Lt{constructor(t,n,r,s,o,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=o,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(ye.add(this),_t||(_t=!0,ae.read(br),ae.resolveKeyframes(gr))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;if(t[0]===null){const o=s?.get(),i=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const a=r.readValue(n,i);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=i),s&&o===void 0&&s.set(t[0])}si(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ye.delete(this)}cancel(){this.state==="scheduled"&&(ye.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const mi=e=>e.startsWith("--");function hi(e,t,n){mi(t)?e.style.setProperty(t,n):e.style[t]=n}const pi=dt(()=>window.ScrollTimeline!==void 0),gi={};function bi(e,t){const n=dt(e);return()=>gi[t]??n()}const yr=bi(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ke=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,wr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ke([0,.65,.55,1]),circOut:Ke([.55,0,1,.45]),backIn:Ke([.31,.01,.66,-.59]),backOut:Ke([.33,1.53,.69,.99])};function xr(e,t){if(e)return typeof e=="function"?yr()?or(e,t):"ease-out":$n(e)?Ke(e):Array.isArray(e)?e.map(n=>xr(n,t)||wr.easeOut):wr[e]}function yi(e,t,n,{delay:r=0,duration:s=300,repeat:o=0,repeatType:i="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const f=xr(a,s);Array.isArray(f)&&(c.easing=f);const m={delay:r,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:i==="reverse"?"alternate":"normal"};return u&&(m.pseudoElement=u),e.animate(c,m)}function Bt(e){return typeof e=="function"&&"applyToOptions"in e}function wi({type:e,...t}){return Bt(e)&&yr()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class xi extends Ft{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:o,allowFlatten:i=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!o,this.allowFlatten=i,this.options=t,se(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=wi(t);this.animation=yi(n,r,s,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const c=Rt(s,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):hi(n,r,c),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Q(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Q(t)}get time(){return Q(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=J(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&pi()?(this.animation.timeline=t,Te):n(this)}}const vr={anticipate:_n,backInOut:In,circInOut:jn};function vi(e){return e in vr}function Ti(e){typeof e.ease=="string"&&vi(e.ease)&&(e.ease=vr[e.ease])}const Tr=10;class Ai extends xi{constructor(t){Ti(t),dr(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:s,element:o,...i}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Pt({...i,autoplay:!1}),l=J(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Tr).value,a.sample(l).value,Tr),a.stop()}}const Ar=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ue.test(e)||e==="0")&&!e.startsWith("url("));function ki(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 Si(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],i=Ar(s,t),a=Ar(o,t);return Ie(i===a,`You are trying to animate ${t} from "${s}" to "${o}". "${i?o:s}" is not an animatable value.`,"value-not-animatable"),!i||!a?!1:ki(e)||(n==="spring"||Bt(n))&&r}function $t(e){e.duration=0,e.type="keyframes"}const Mi=new Set(["opacity","clipPath","filter","transform"]),Ei=dt(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Vi(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:o,type:i}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Ei()&&n&&Mi.has(n)&&(n!=="transform"||!u)&&!l&&!r&&s!=="mirror"&&o!==0&&i!=="inertia"}const Ci=40;class Ri extends Ft{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:i="loop",keyframes:a,name:l,motionValue:u,element:c,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=q.now();const m={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:o,repeatType:i,name:l,motionValue:u,element:c,...f},w=c?.KeyframeResolver||Lt;this.keyframeResolver=new w(a,(A,T,v)=>this.onKeyframesResolved(A,T,m,!v),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,s){this.keyframeResolver=void 0;const{name:o,type:i,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=q.now(),Si(t,o,i,a)||((ie.instantAnimations||!l)&&c?.(Rt(t,r,n)),t[0]=t[t.length-1],$t(r),r.repeat=0);const m={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>Ci?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},w=!u&&Vi(m)?new Ai({...m,element:m.motionValue.owner.current}):new Pt(m);w.finished.then(()=>this.notifyFinished()).catch(Te),this.pendingTimeline&&(this.stopTimeline=w.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=w}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),fi()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}class Fi{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}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){const n=this.animations.map(r=>r.attachTimeline(t));return()=>{n.forEach((r,s)=>{r&&r(),this.animations[s].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 state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return kr(this.animations,"duration")}get iterationDuration(){return kr(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function kr(e,t){let n=0;for(let r=0;r<e.length;r++){const s=e[r][t];s!==null&&s>n&&(n=s)}return n}class Pi extends Fi{then(t,n){return this.finished.finally(t).then(()=>{})}}const Oi=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ni(e){const t=Oi.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const Di=4;function Sr(e,t,n=1){se(n<=Di,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,s]=Ni(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const i=o.trim();return Mn(i)?parseFloat(i):i}return bt(s)?Sr(s,t,n+1):s}function Mr(e,t){return e?.[t]??e?.default??e}const Er=new Set(["width","height","top","left","right","bottom",...Ve]),Ii={test:e=>e==="auto",parse:e=>e},Vr=e=>t=>t.test(e),Cr=[Ae,k,ke,ce,Eo,Mo,Ii],Rr=e=>Cr.find(Vr(e));function _i(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||En(e):!0}const ji=new Set(["brightness","contrast","saturate","opacity"]);function zi(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(yt)||[];if(!r)return e;const s=n.replace(r,"");let o=ji.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+s+")"}const Li=/\b([a-z-]*)\(.*?\)/gu,Kt={...ue,getAnimatableNone:e=>{const t=e.match(Li);return t?t.map(zi).join(" "):e}},Fr={...Ae,transform:Math.round},Zt={borderWidth:k,borderTopWidth:k,borderRightWidth:k,borderBottomWidth:k,borderLeftWidth:k,borderRadius:k,radius:k,borderTopLeftRadius:k,borderTopRightRadius:k,borderBottomRightRadius:k,borderBottomLeftRadius:k,width:k,maxWidth:k,height:k,maxHeight:k,top:k,right:k,bottom:k,left:k,padding:k,paddingTop:k,paddingRight:k,paddingBottom:k,paddingLeft:k,margin:k,marginTop:k,marginRight:k,marginBottom:k,marginLeft:k,backgroundPositionX:k,backgroundPositionY:k,...{rotate:ce,rotateX:ce,rotateY:ce,rotateZ:ce,scale:nt,scaleX:nt,scaleY:nt,scaleZ:nt,skew:ce,skewX:ce,skewY:ce,distance:k,translateX:k,translateY:k,translateZ:k,x:k,y:k,z:k,perspective:k,transformPerspective:k,opacity:je,originX:Xn,originY:Xn,originZ:k},zIndex:Fr,fillOpacity:je,strokeOpacity:je,numOctaves:Fr},Bi={...Zt,color:j,backgroundColor:j,outlineColor:j,fill:j,stroke:j,borderColor:j,borderTopColor:j,borderRightColor:j,borderBottomColor:j,borderLeftColor:j,filter:Kt,WebkitFilter:Kt},Pr=e=>Bi[e];function Or(e,t){let n=Pr(e);return n!==Kt&&(n=ue),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const $i=new Set(["auto","none","0"]);function Ki(e,t,n){let r=0,s;for(;r<e.length&&!s;){const o=e[r];typeof o=="string"&&!$i.has(o)&&Be(o).values.length&&(s=e[r]),r++}if(s&&n)for(const o of t)e[o]=Or(n,s)}class Zi extends Lt{constructor(t,n,r,s,o){super(t,n,r,s,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),bt(u))){const c=Sr(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Er.has(r)||t.length!==2)return;const[s,o]=t,i=Rr(s),a=Rr(o);if(i!==a)if(pr(i)&&pr(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else be[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||_i(t[s]))&&r.push(s);r.length&&Ki(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=be[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const o=r.length-1,i=r[o];r[o]=be[n](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function Nr(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const s=n?.[e]??r.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}const Dr=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ir=30,Gi=e=>!isNaN(parseFloat(e));class Wi{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const s=q.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=q.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Gi(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Fn(!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 Vn);const r=this.events[t].add(n);return t==="change"?()=>{r(),ae.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=q.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ir)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ir);return Cn(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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ze(e,t){return new Wi(e,t)}const{schedule:Yi}=Gn(queueMicrotask,!1);function _r(e){return io(e)&&"ownerSVGElement"in e}function Ui(e){return _r(e)&&e.tagName==="svg"}const Z=e=>!!(e&&e.getVelocity),Xi=[...Cr,j,ue],qi=e=>Xi.find(Vr(e)),jr={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"]},Gt={};for(const e in jr)Gt[e]={isEnabled:t=>jr[e].some(n=>!!t[n])};function Hi(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ji(e){return typeof e=="string"||Array.isArray(e)}const Qi=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function zr(e){return Hi(e.animate)||Qi.some(t=>Ji(e[t]))}function ea(e){return!!(zr(e)||e.variants)}function Lr(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ge={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(k.test(e))e=parseFloat(e);else return e;const n=Lr(e,t.target.x),r=Lr(e,t.target.y);return`${n}% ${r}%`}},ta={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=ue.parse(e);if(s.length>5)return r;const o=ue.createTransformer(e),i=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+i]/=a,s[1+i]/=l;const u=Me(a,l,.5);return typeof s[2+i]=="number"&&(s[2+i]/=u),typeof s[3+i]=="number"&&(s[3+i]/=u),o(s)}},na={borderRadius:{...Ge,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ge,borderTopRightRadius:Ge,borderBottomLeftRadius:Ge,borderBottomRightRadius:Ge,boxShadow:ta};function ra(e,{layout:t,layoutId:n}){return Ce.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!na[e]||e==="opacity")}const sa={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},oa=Ve.length;function ia(e,t,n){let r="",s=!0;for(let o=0;o<oa;o++){const i=Ve[o],a=e[i];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(i.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=Dr(a,Zt[i]);if(!l){s=!1;const c=sa[i]||i;r+=`${c}(${u}) `}n&&(t[i]=u)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Br(e,t,n){const{style:r,vars:s,transformOrigin:o}=e;let i=!1,a=!1;for(const l in t){const u=t[l];if(Ce.has(l)){i=!0;continue}else if(Yn(l)){s[l]=u;continue}else{const c=Dr(u,Zt[l]);l.startsWith("origin")?(a=!0,o[l]=c):r[l]=c}}if(t.transform||(i||n?r.transform=ia(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=o;r.transformOrigin=`${l} ${u} ${c}`}}const aa={offset:"stroke-dashoffset",array:"stroke-dasharray"},la={offset:"strokeDashoffset",array:"strokeDasharray"};function ca(e,t,n=1,r=0,s=!0){e.pathLength=1;const o=s?aa:la;e[o.offset]=k.transform(-r);const i=k.transform(t),a=k.transform(n);e[o.array]=`${i} ${a}`}function ua(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:o=1,pathOffset:i=0,...a},l,u,c){if(Br(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:m}=e;f.transform&&(m.transform=f.transform,delete f.transform),(m.transform||f.transformOrigin)&&(m.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),m.transform&&(m.transformBox=c?.transformBox??"fill-box",delete f.transformBox),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&ca(f,s,o,i,!1)}const da=e=>typeof e=="string"&&e.toLowerCase()==="svg";function $r(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Kr(e,t,n,r){if(typeof t=="function"){const[s,o]=$r(r);t=t(n!==void 0?n:e.custom,s,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,o]=$r(r);t=t(n!==void 0?n:e.custom,s,o)}return t}function Zr(e,t,n){const{style:r}=e,s={};for(const o in r)(Z(r[o])||t.style&&Z(t.style[o])||ra(o,e)||n?.getValue(o)?.liveStyle!==void 0)&&(s[o]=r[o]);return s}function fa(e,t,n){const r=Zr(e,t,n);for(const s in e)if(Z(e[s])||Z(t[s])){const o=Ve.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[o]=e[s]}return r}const Wt=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ma="data-"+Wt("framerAppearId");function ha({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function pa(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ga(e,t){return ha(pa(e.getBoundingClientRect(),t))}const Gr=()=>({min:0,max:0}),Yt=()=>({x:Gr(),y:Gr()}),Ut={current:null},Wr={current:!1};function ba(){if(Wr.current=!0,!!kn)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ut.current=e.matches;e.addEventListener("change",t),t()}else Ut.current=!1}const We=new WeakMap;function ya(e,t,n){for(const r in t){const s=t[r],o=n[r];if(Z(s))e.addValue(r,s);else if(Z(o))e.addValue(r,Ze(s,{owner:e}));else if(o!==s)if(e.hasValue(r)){const i=e.getValue(r);i.liveStyle===!0?i.jump(s):i.hasAnimated||i.set(s)}else{const i=e.getStaticValue(r);e.addValue(r,Ze(i!==void 0?i:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Yr=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ur{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Lt,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 m=q.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,ae.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=i;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=zr(n),this.isVariantNode=ea(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in f){const w=f[m];l[m]!==void 0&&Z(w)&&w.set(l[m])}}mount(t){this.current=t,We.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)),Wr.current||ba(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ut.current,process.env.NODE_ENV!=="production"&&Fn(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),gt(this.notifyUpdate),gt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(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}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Ce.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&ae.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Gt){const n=Gt[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(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):Yt()}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<Yr.length;r++){const s=Yr[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o="on"+s,i=t[o];i&&(this.propEventSubscriptions[s]=this.on(s,i))}this.prevMotionValues=ya(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ze(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Mn(r)||En(r))?r=parseFloat(r):!qi(r)&&ue.test(n)&&(r=Or(t,n)),this.setBaseTarget(t,Z(r)?r.get():r)),Z(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Kr(this.props,n,this.presenceContext?.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Z(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Vn),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Yi.render(this.render)}}class Xr extends Ur{constructor(){super(...arguments),this.KeyframeResolver=Zi}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;Z(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function qr(e,{style:t,vars:n},r,s){const o=e.style;let i;for(i in t)o[i]=t[i];s?.applyProjectionStyles(o,r);for(i in n)o.setProperty(i,n[i])}function wa(e){return window.getComputedStyle(e)}class xa extends Xr{constructor(){super(...arguments),this.type="html",this.renderInstance=qr}readValueFromInstance(t,n){if(Ce.has(n))return this.projection?.isProjecting?Dt(n):ai(t,n);{const r=wa(t),s=(Yn(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ga(t,n)}build(t,n,r){Br(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Zr(t,n,r)}}const Hr=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 va(e,t,n,r){qr(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(Hr.has(s)?s:Wt(s),t.attrs[s])}class Ta extends Xr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Yt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ce.has(n)){const r=Pr(n);return r&&r.default||0}return n=Hr.has(n)?n:Wt(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return fa(t,n,r)}build(t,n,r){ua(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){va(t,n,r,s)}mount(t){this.isSVGTag=da(t.tagName),super.mount(t)}}function Aa(e,t,n){const r=e.getProps();return Kr(r,t,r.custom,e)}const ka=e=>Array.isArray(e);function Sa(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ze(n))}function Ma(e){return ka(e)?e[e.length-1]||0:e}function Ea(e,t){const n=Aa(e,t);let{transitionEnd:r={},transition:s={},...o}=n||{};o={...o,...r};for(const i in o){const a=Ma(o[i]);Sa(e,i,a)}}function Va(e){return!!(Z(e)&&e.add)}function Ca(e,t){const n=e.getValue("willChange");if(Va(n))return n.add(t);if(!n&&ie.WillChange){const r=new ie.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ra(e){return e.props[ma]}const Fa=e=>e!==null;function Pa(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(Fa),o=t&&n!=="loop"&&t%2===1?0:s.length-1;return s[o]}const Oa={type:"spring",stiffness:500,damping:25,restSpeed:10},Na=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Da={type:"keyframes",duration:.8},Ia={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_a=(e,{keyframes:t})=>t.length>2?Da:Ce.has(e)?e.startsWith("scale")?Na(t[1]):Oa:Ia;function ja({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:i,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Jr=(e,t,n,r={},s,o)=>i=>{const a=Mr(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-J(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:m=>{t.set(m),a.onUpdate&&a.onUpdate(m)},onComplete:()=>{i(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:s};ja(a)||Object.assign(c,_a(e,c)),c.duration&&(c.duration=J(c.duration)),c.repeatDelay&&(c.repeatDelay=J(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&($t(c),c.delay===0&&(f=!0)),(ie.instantAnimations||ie.skipAnimations)&&(f=!0,$t(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!o&&t.get()!==void 0){const m=Pa(c.keyframes,a);if(m!==void 0){ae.update(()=>{c.onUpdate(m),c.onComplete()});return}}return a.isSync?new Pt(c):new Ri(c)};function za({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function La(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:i,...a}=t;r&&(o=r);const l=[],u=s&&e.animationState&&e.animationState.getState()[s];for(const c in a){const f=e.getValue(c,e.latestValues[c]??null),m=a[c];if(m===void 0||u&&za(u,c))continue;const w={delay:n,...Mr(o||{},c)},A=f.get();if(A!==void 0&&!f.isAnimating&&!Array.isArray(m)&&m===A&&!w.velocity)continue;let T=!1;if(window.MotionHandoffAnimation){const M=Ra(e);if(M){const D=window.MotionHandoffAnimation(M,c,ae);D!==null&&(w.startTime=D,T=!0)}}Ca(e,c),f.start(Jr(c,f,m,e.shouldReduceMotion&&Er.has(c)?{type:!1}:w,e,T));const v=f.animation;v&&l.push(v)}return i&&Promise.all(l).then(()=>{ae.update(()=>{i&&Ea(e,i)})}),l}function Ba(e,t,n){const r=Z(e)?e:Ze(e);return r.start(Jr("",r,t,n)),r.animation}function Xt(e){return typeof e=="object"&&!Array.isArray(e)}function Qr(e,t,n,r){return typeof e=="string"&&Xt(t)?Nr(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function $a(e,t,n){return e*(t+1)}function es(e,t,n,r){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:t.startsWith("<")?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function Ka(e,t,n){for(let r=0;r<e.length;r++){const s=e[r];s.at>t&&s.at<n&&(Sn(e,s),r--)}}function Za(e,t,n,r,s,o){Ka(e,s,o);for(let i=0;i<t.length;i++)e.push({value:t[i],at:Me(s,o,r[i]),easing:Bn(n,i)})}function Ga(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function Wa(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const Ya="easeInOut",Ua=20;function Xa(e,{defaultTransition:t={},...n}={},r,s){const o=t.duration||.3,i=new Map,a=new Map,l={},u=new Map;let c=0,f=0,m=0;for(let w=0;w<e.length;w++){const A=e[w];if(typeof A=="string"){u.set(A,f);continue}else if(!Array.isArray(A)){u.set(A.name,es(f,A.at,c,u));continue}let[T,v,M={}]=A;M.at!==void 0&&(f=es(f,M.at,c,u));let D=0;const S=(O,x,F,I=0,p=0)=>{const C=qa(O),{delay:B=0,times:G=ur(C),type:H="keyframes",repeat:ee,repeatType:Re,repeatDelay:te=0,...U}=x;let{ease:L=t.ease||"easeOut",duration:y}=x;const de=typeof B=="function"?B(I,p):B,fe=C.length,d=Bt(H)?H:s?.[H||"keyframes"];if(fe<=2&&d){let W=100;if(fe===2&&Qa(C)){const Y=C[1]-C[0];W=Math.abs(Y)}const ne={...U};y!==void 0&&(ne.duration=J(y));const V=ir(ne,W,d);L=V.ease,y=V.duration}y??(y=o);const E=f+de;G.length===1&&G[0]===0&&(G[1]=1);const R=G.length-C.length;if(R>0&&cr(G,R),C.length===1&&C.unshift(null),ee){se(ee<Ua,"Repeat count too high, must be less than 20","repeat-count-high"),y=$a(y,ee);const W=[...C],ne=[...G];L=Array.isArray(L)?[...L]:[L];const V=[...L];for(let Y=0;Y<ee;Y++){C.push(...W);for(let X=0;X<W.length;X++)G.push(ne[X]+(Y+1)),L.push(X===0?"linear":Bn(V,X-1))}Ga(G,ee)}const N=E+y;Za(F,C,L,G,E,N),D=Math.max(de+y,D),m=Math.max(N,m)};if(Z(T)){const O=ts(T,a);S(v,M,ns("default",O))}else{const O=Qr(T,v,r,l),x=O.length;for(let F=0;F<x;F++){v=v,M=M;const I=O[F],p=ts(I,a);for(const C in v)S(v[C],Ha(M,C),ns(C,p),F,x)}}c=f,f+=D}return a.forEach((w,A)=>{for(const T in w){const v=w[T];v.sort(Wa);const M=[],D=[],S=[];for(let x=0;x<v.length;x++){const{at:F,value:I,easing:p}=v[x];M.push(I),D.push(mt(0,m,F)),S.push(p||"easeOut")}D[0]!==0&&(D.unshift(0),M.unshift(M[0]),S.unshift(Ya)),D[D.length-1]!==1&&(D.push(1),M.push(null)),i.has(A)||i.set(A,{keyframes:{},transition:{}});const O=i.get(A);O.keyframes[T]=M,O.transition[T]={...t,duration:m,ease:S,times:D,...n}}}),i}function ts(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function ns(e,t){return t[e]||(t[e]=[]),t[e]}function qa(e){return Array.isArray(e)?e:[e]}function Ha(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const Ja=e=>typeof e=="number",Qa=e=>e.every(Ja);function el(e,t){return e in t}class tl extends Ur{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(el(n,t)){const r=t[n];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return Yt()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}function nl(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=_r(e)&&!Ui(e)?new Ta(t):new xa(t);n.mount(e),We.set(e,n)}function rl(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new tl(t);n.mount(e),We.set(e,n)}function sl(e,t){return Z(e)||typeof e=="number"||typeof e=="string"&&!Xt(t)}function rs(e,t,n,r){const s=[];if(sl(e,t))s.push(Ba(e,Xt(t)&&t.default||t,n&&(n.default||n)));else{const o=Qr(e,t,r),i=o.length;se(!!i,"No valid elements provided.","no-valid-elements");for(let a=0;a<i;a++){const l=o[a];se(l!==null,"You're trying to perform an animation on null. Ensure that selectors are correctly finding elements and refs are correctly hydrated.","animate-null");const u=l instanceof Element?nl:rl;We.has(l)||u(l);const c=We.get(l),f={...n};"delay"in f&&typeof f.delay=="function"&&(f.delay=f.delay(a,i)),s.push(...La(c,{...t,transition:f},{}))}}return s}function ol(e,t,n){const r=[];return Xa(e,t,n,{spring:$e}).forEach(({keyframes:o,transition:i},a)=>{r.push(...rs(a,o,i))}),r}function il(e){return Array.isArray(e)&&e.some(Array.isArray)}function al(e){function t(n,r,s){let o=[],i;if(il(n))o=ol(n,r,e);else{const{onComplete:l,...u}=s||{};typeof l=="function"&&(i=l),o=rs(n,r,u,e)}const a=new Pi(o);return i&&a.finished.then(i),a}return t}const ll=al(),cl={some:0,all:1};function ul(e,t,{root:n,margin:r,amount:s="some"}={}){const o=Nr(e),i=new WeakMap,a=u=>{u.forEach(c=>{const f=i.get(c.target);if(c.isIntersecting!==!!f)if(c.isIntersecting){const m=t(c.target,c);typeof m=="function"?i.set(c.target,m):l.unobserve(c.target)}else typeof f=="function"&&(f(c),i.delete(c.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:r,threshold:typeof s=="number"?s:cl[s]});return o.forEach(u=>l.observe(u)),()=>l.disconnect()}function dl(e,{root:t,margin:n,amount:r,once:s=!1,initial:o=!1}={}){const[i,a]=$.useState(o);return $.useEffect(()=>{if(!e.current||s&&i)return;const l=()=>(a(!0),s?void 0:()=>a(!1)),u={root:t&&t.current||void 0,margin:n,amount:r};return ul(e.current,l,u)},[t,e,n,s,r]),i}const fl={small:"text-xl md:text-2xl",medium:"text-3xl md:text-4xl",large:"text-4xl md:text-5xl"},ss={primary:{textColor:"text-white",suffixPosition:"left"},secondary:{textColor:"text-black",suffixPosition:"right"}};function ml({value:e,suffix:t="",variant:n="primary",size:r="small",className:s}){const o=$.useRef(null),i=dl(o,{once:!0});so(()=>{const l=o.current;if(!l)return;const{suffixPosition:u}=ss[n],c=u==="left"?`${t}0`:`0${t}`;if(l.textContent=c,!i)return;if(window.matchMedia("(prefers-reduced-motion)").matches){const m=u==="left"?`${t}${e}`:`${e}${t}`;l.textContent=m;return}const f=ll(0,e,{duration:2,ease:"easeOut",onUpdate:m=>{const w=Math.floor(m);l.textContent=u==="left"?`${t}${w}`:`${w}${t}`}});return()=>f.stop()},[e,t,n,i]);const a=wn(Ue("font-bold",fl[r],ss[n].textColor,s));return K.jsx("span",{ref:o,className:a,"data-testid":"counter"})}re.Button=Xs,re.Counter=ml,re.Navigation=ro,re.PasswordTooltip=no,Object.defineProperty(re,Symbol.toStringTag,{value:"Module"})}));
|
|
13
13
|
//# sourceMappingURL=index.umd.js.map
|