prometeo-design-system 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Menu/Menu.d.ts +2 -2
- package/dist/components/Menu/MenuComposable.d.ts +13 -0
- package/dist/index.d.ts +4 -2
- package/dist/prometeo-design-system.css +1 -1
- package/dist/prometeo-design-system.es.js +741 -817
- package/dist/prometeo-design-system.umd.js +9 -9
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(N,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("react"),require("boring-avatars"),require("clsx"),require("tailwind-merge"),require("framer-motion"),require("formik"),require("use-debounce"),require("react-router-dom"),require("@gsap/react")):typeof define=="function"&&define.amd?define(["exports","react","boring-avatars","clsx","tailwind-merge","framer-motion","formik","use-debounce","react-router-dom","@gsap/react"],I):(N=typeof globalThis<"u"?globalThis:N||self,I(N.PrometeoDesignSystem={},N.React,N.BoringAvatars,N.clsx,N.tailwindMerge,N.FramerMotion,N.Formik,N.useDebounce,N.ReactRouterDOM,N.GSAPReact))})(this,(function(N,I,qi,Jr,ji,
|
|
1
|
+
(function(N,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("react"),require("boring-avatars"),require("clsx"),require("tailwind-merge"),require("framer-motion"),require("formik"),require("use-debounce"),require("react-router-dom"),require("@gsap/react")):typeof define=="function"&&define.amd?define(["exports","react","boring-avatars","clsx","tailwind-merge","framer-motion","formik","use-debounce","react-router-dom","@gsap/react"],I):(N=typeof globalThis<"u"?globalThis:N||self,I(N.PrometeoDesignSystem={},N.React,N.BoringAvatars,N.clsx,N.tailwindMerge,N.FramerMotion,N.Formik,N.useDebounce,N.ReactRouterDOM,N.GSAPReact))})(this,(function(N,I,qi,Jr,ji,F,Mt,Oi,Ci,Si){"use strict";function ki(i){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const t in i)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(i,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>i[t]})}}return e.default=i,Object.freeze(e)}const Y=ki(I);var At={exports:{}},mt={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -14,35 +14,35 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Kr;function Ni(){return Kr||(Kr=1,process.env.NODE_ENV!=="production"&&(function(){function i(T){if(T==null)return null;if(typeof T=="function")return T.$$typeof===E?null:T.displayName||T.name||null;if(typeof T=="string")return T;switch(T){case f:return"Fragment";case x:return"Profiler";case g:return"StrictMode";case y:return"Suspense";case j:return"SuspenseList";case q:return"Activity"}if(typeof T=="object")switch(typeof T.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),T.$$typeof){case _:return"Portal";case b:return(T.displayName||"Context")+".Provider";case v:return(T._context.displayName||"Context")+".Consumer";case w:var S=T.render;return T=T.displayName,T||(T=S.displayName||S.name||"",T=T!==""?"ForwardRef("+T+")":"ForwardRef"),T;case O:return S=T.displayName||null,S!==null?S:i(T.type)||"Memo";case C:S=T._payload,T=T._init;try{return i(T(S))}catch{}}return null}function e(T){return""+T}function t(T){try{e(T);var S=!1}catch{S=!0}if(S){S=console;var P=S.error,B=typeof Symbol=="function"&&Symbol.toStringTag&&T[Symbol.toStringTag]||T.constructor.name||"Object";return P.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",B),e(T)}}function r(T){if(T===f)return"<>";if(typeof T=="object"&&T!==null&&T.$$typeof===C)return"<...>";try{var S=i(T);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function n(){var T=
|
|
17
|
+
*/var Kr;function Ni(){return Kr||(Kr=1,process.env.NODE_ENV!=="production"&&(function(){function i(T){if(T==null)return null;if(typeof T=="function")return T.$$typeof===E?null:T.displayName||T.name||null;if(typeof T=="string")return T;switch(T){case f:return"Fragment";case x:return"Profiler";case g:return"StrictMode";case y:return"Suspense";case j:return"SuspenseList";case q:return"Activity"}if(typeof T=="object")switch(typeof T.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),T.$$typeof){case _:return"Portal";case b:return(T.displayName||"Context")+".Provider";case v:return(T._context.displayName||"Context")+".Consumer";case w:var S=T.render;return T=T.displayName,T||(T=S.displayName||S.name||"",T=T!==""?"ForwardRef("+T+")":"ForwardRef"),T;case O:return S=T.displayName||null,S!==null?S:i(T.type)||"Memo";case C:S=T._payload,T=T._init;try{return i(T(S))}catch{}}return null}function e(T){return""+T}function t(T){try{e(T);var S=!1}catch{S=!0}if(S){S=console;var P=S.error,B=typeof Symbol=="function"&&Symbol.toStringTag&&T[Symbol.toStringTag]||T.constructor.name||"Object";return P.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",B),e(T)}}function r(T){if(T===f)return"<>";if(typeof T=="object"&&T!==null&&T.$$typeof===C)return"<...>";try{var S=i(T);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function n(){var T=D.A;return T===null?null:T.getOwner()}function s(){return Error("react-stack-top-frame")}function a(T){if(R.call(T,"key")){var S=Object.getOwnPropertyDescriptor(T,"key").get;if(S&&S.isReactWarning)return!1}return T.key!==void 0}function o(T,S){function P(){V||(V=!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)",S))}P.isReactWarning=!0,Object.defineProperty(T,"key",{get:P,configurable:!0})}function l(){var T=i(this.type);return z[T]||(z[T]=!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.")),T=this.props.ref,T!==void 0?T:null}function u(T,S,P,B,ee,ie,Wr,Xr){return P=ie.ref,T={$$typeof:m,type:T,key:S,props:ie,_owner:ee},(P!==void 0?P:null)!==null?Object.defineProperty(T,"ref",{enumerable:!1,get:l}):Object.defineProperty(T,"ref",{enumerable:!1,value:null}),T._store={},Object.defineProperty(T._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(T,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(T,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Wr}),Object.defineProperty(T,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Xr}),Object.freeze&&(Object.freeze(T.props),Object.freeze(T)),T}function c(T,S,P,B,ee,ie,Wr,Xr){var ue=S.children;if(ue!==void 0)if(B)if(A(ue)){for(B=0;B<ue.length;B++)h(ue[B]);Object.freeze&&Object.freeze(ue)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else h(ue);if(R.call(S,"key")){ue=i(T);var pt=Object.keys(S).filter(function(za){return za!=="key"});B=0<pt.length?"{key: someKey, "+pt.join(": ..., ")+": ...}":"{key: someKey}",de[ue+B]||(pt=0<pt.length?"{"+pt.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,B,ue,pt,ue),de[ue+B]=!0)}if(ue=null,P!==void 0&&(t(P),ue=""+P),a(S)&&(t(S.key),ue=""+S.key),"key"in S){P={};for(var Gr in S)Gr!=="key"&&(P[Gr]=S[Gr])}else P=S;return ue&&o(P,typeof T=="function"?T.displayName||T.name||"Unknown":T),u(T,ue,se,ee,n(),P,Wr,Xr)}function h(T){typeof T=="object"&&T!==null&&T.$$typeof===m&&T._store&&(T._store.validated=1)}var p=I,m=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),b=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),E=Symbol.for("react.client.reference"),F=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=Object.prototype.hasOwnProperty,R=Array.isArray,H=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(T){return T()}};var V,z={},U=p.react_stack_bottom_frame.bind(p,s)(),ie=H(r(s)),de={};_t.Fragment=f,_t.jsx=function(T,S,P,B,ee){var se=1e4>F.recentlyCreatedOwnerStacks++;return c(T,S,P,!1,B,ee,se?Error("react-stack-top-frame"):U,se?H(r(T)):ie)},_t.jsxs=function(T,S,P,B,ee){var se=1e4>F.recentlyCreatedOwnerStacks++;return c(T,S,P,!0,B,ee,se?Error("react-stack-top-frame"):U,se?H(r(T)):ie)}})()),_t}var en;function Ei(){return en||(en=1,process.env.NODE_ENV==="production"?At.exports=Pi():At.exports=Ni()),At.exports}var d=Ei();function tn({profileImage:i,size:e,sizeImage:t=36}){const[r,n]=I.useState(!1),s=i&&i.trim()!==""&&!r;return d.jsx(d.Fragment,{children:s?d.jsx("img",{onError:()=>{n(!0)},src:i,style:{width:t,height:t},className:"rounded-full object-cover",alt:"Profile"}):d.jsx(qi,{size:e,name:i||"User",variant:"beam",colors:["#92A1C6","#146A7C","#F0AB3D","#C271B4","#C20D90"]})})}function k(...i){return ji.twMerge(Jr.clsx(i))}const rn=i=>typeof i=="boolean"?`${i}`:i===0?"0":i,nn=Jr.clsx,Mi=((i,e)=>t=>{var r;if(e?.variants==null)return nn(i,t?.class,t?.className);const{variants:n,defaultVariants:s}=e,a=Object.keys(n).map(u=>{const c=t?.[u],h=s?.[u];if(c===null)return null;const p=rn(c)||rn(h);return n[u][p]}),o=t&&Object.entries(t).reduce((u,c)=>{let[h,p]=c;return p===void 0||(u[h]=p),u},{}),l=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:h,className:p,...m}=c;return Object.entries(m).every(_=>{let[f,g]=_;return Array.isArray(g)?g.includes({...s,...o}[f]):{...s,...o}[f]===g})?[...u,h,p]:u},[]);return nn(i,a,l,t?.class,t?.className)})("flex items-center justify-center cursor-pointer focus:outline-none font-semibold rounded-md transition-colors",{variants:{variant:{filled:"",outline:"bg-transparent border-1",text:"bg-transparent border-0"},color:{primary:"",secondary:""},size:{small:"h-[40px] min-w-[123px] w-fit px-2 py-3 text-sm",medium:"h-[48px] min-w-[134px] w-fit px-2 py-3 text-base",large:"h-[56px] min-w-[145px] w-fit px-4 py-3 text-base"},disabled:{true:"opacity-50 cursor-not-allowed",false:""},loading:{true:"cursor-wait",false:""},customSize:{true:"px-4 py-2",false:""}},compoundVariants:[{variant:"filled",color:"primary",class:"bg-primary-default-default text-neutral-strong-default border-0 hover:bg-primary-default-hover hover:text-neutral-strong-hover focus:bg-primary-default-pressed focus:text-neutral-strong-focused active:bg-primary-pressed active:text-neutral-strong-pressed disabled:bg-primary-medium-disabled disabled:text-neutral-strong-disabled"},{variant:"filled",color:"secondary",class:"bg-neutral-strong-medium-default text-neutral-strong-default hover:bg-neutral-medium-hover hover:text-neutral-strong-hover focus:bg-neutral-medium-pressed focus:text-neutral-strong-pressed active:bg-neutral-medium-pressed disabled:bg-primary-default-disabled disabled:text-neutral-strong-disabled"},{variant:"outline",color:"primary",class:"text-primary-medium-default border-primary-medium-default hover:bg-neutral-default-hover hover:text-primary-medium-hover hover:border-primary-medium-hover focus:bg-neutral-default-pressed focus:text-primary-medium-pressed focus:border-primary-medium-pressed active:bg-neutral-default-pressed active:text-primary-medium-pressed active:border-primary-medium-pressed disabled:border-primary-disabled disabled:text-primary-disabled"},{variant:"outline",color:"secondary",class:"text-neutral-strong-default border-neutral-strong-default hover:bg-neutral-default-hover hover:text-neutral-strong-hover hover:border-neutral-strong-hover focus:bg-neutral-default-pressed focus:text-neutral-strong-pressed focus:border-neutral-strong-pressed active:bg-neutral-default-pressed active:text-neutral-strong-pressed active:border-neutral-strong-pressed disabled:border-neutral-disabled disabled:text-neutral-disabled"},{variant:"text",color:"primary",class:"text-primary-medium-default hover:bg-neutral-default-hover hover:text-primary-medium-hover focus:bg-neutral-default-pressed focus:text-primary-medium-pressed active:bg-neutral-default-pressed active:text-primary-medium-pressed disabled:text-primary-medium-disabled"},{variant:"text",color:"secondary",class:"text-neutral-strong-default hover:bg-neutral-default-hover hover:text-primary-default-hover focus:bg-neutral-default-pressed focus:text-primary-medium-pressed active:bg-neutral-default-pressed active:text-primary-medium-pressed disabled:text-primary-medium-disabled"}],defaultVariants:{variant:"filled",color:"primary",size:"medium",disabled:!1,loading:!1,customSize:!1}});function Ai({label:i="Selene",onClick:e,icon:t,contentClassName:r,loadingText:n="Cargando...",animate:s=!0,animateIcon:a=!0,isLoading:o=!1,disabled:l=!1,type:u="button",variant:c="filled",color:h="primary",size:p="medium",children:m,Spinner:_,className:f,...g}){const x=M.useAnimationControls(),v=()=>{!s||l||o||!a||x.start({rotate:90})},b=()=>{!s||l||o||!a||x.start({rotate:0})},w=k(Mi({variant:c,color:h,size:p,disabled:l||o,loading:o}),f);return d.jsx(M.motion.button,{onClick:e,className:w,whileHover:s&&!l&&!o?{scale:1.05}:{},whileTap:s&&!l&&!o?{scale:.98}:{},transition:{type:"spring",stiffness:400,damping:17},onHoverStart:v,onHoverEnd:b,disabled:l||o,type:u,...g,children:o?d.jsxs("div",{className:"flex items-center gap-2",children:[_,p!=="small"&&d.jsx("span",{children:n})]}):m||d.jsxs("span",{className:k("flex items-center gap-2",r),children:[t&&d.jsx(M.motion.div,{animate:a?x:void 0,transition:{type:"spring",stiffness:400,damping:17},children:t}),i&&d.jsx("span",{children:i})]})})}function sn({sessions:i,handleTokenLogin:e}){return d.jsx("div",{className:"profile-options-container w-full ",children:i?.map(t=>d.jsx("button",{className:"w-full ",onClick:()=>e?.(t.token),children:d.jsx(Rt,{children:d.jsx(Rt.Content,{onClick:()=>{console.log("hola")},isExpanded:!1,name:t.name,nameArea:t?.area?.name,nameCompany:t.company_id.name,cardProfile:d.jsx(Rt.Image,{isExpanded:!1})})})},t._id))})}const Rt=Object.assign(({children:i})=>d.jsx("div",{className:"profile-container flex my-2 rounded-md text-white-prometeo overflow-hidden flex-shrink-0 w-full min-w-0",children:i}),{Menu:({isExpanded:i,sessions:e,onClickLogout:t,handleTokenLogin:r})=>(console.log(e),d.jsx(M.AnimatePresence,{mode:"wait",children:i&&d.jsxs(M.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1,transition:{height:{duration:.6,ease:"easeOut"},opacity:{duration:.4,delay:.2}}},exit:{height:0,opacity:0,transition:{height:{duration:.8,delay:.2,ease:"easeIn"},opacity:{duration:.3,delay:.1}}},className:"overflow-hidden",children:[d.jsx(M.motion.div,{className:"flex justify-center items-center w-full mt-4",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.5,ease:"easeInOut"}},children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),e!==null&&d.jsxs(d.Fragment,{children:[d.jsx(M.motion.div,{className:"mt-4",exit:{opacity:0,y:-5,height:0,transition:{duration:.4,delay:.4,ease:"easeInOut"}},children:d.jsx("span",{className:"text-neutral-medium-default font-semibold text-xs",children:"Cambiar cuenta"})}),d.jsx(M.motion.div,{className:"mt-4 overflow-hidden w-full ",exit:{height:0,opacity:0,y:-10,scale:.98,transition:{height:{duration:.5,delay:.2},opacity:{duration:.3,delay:.3},y:{duration:.3,delay:.3},scale:{duration:.3,delay:.3},ease:"easeInOut"}},children:d.jsx(sn,{sessions:e,handleTokenLogin:r})}),d.jsx(M.motion.div,{className:"flex justify-center items-center w-full mt-4",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.15,ease:"easeInOut"}},children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})})]}),d.jsxs(M.motion.button,{onClick:t,className:"flex flex-1 h-12 w-full gap-1 rounded-md cursor-pointer mt-4 mb-4 px-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",exit:{opacity:0,y:-8,scale:.96,transition:{duration:.5,delay:0,ease:"easeInOut"}},whileHover:{opacity:1,scale:[1,1.02,1],transition:{duration:.2}},whileTap:{scale:.98},children:[d.jsx(te.Logout,{size:24,className:"text-neutral-default-default"}),d.jsx("span",{className:"text-neutral-default-default font-semibold text-sm",children:"Cerrar sesión"})]})]})})),Image:({imageUrl:i})=>d.jsx("div",{className:"profile-image-wrapper ml-1 flex-shrink-0 h-10 w-10 flex items-center justify-center relative z-10",children:d.jsx(tn,{profileImage:i,size:36,sizeImage:36})}),Content:({isExpanded:i,name:e,nameCompany:t,nameArea:r,cardProfile:n,onClick:s})=>d.jsxs(M.motion.button,{onClick:s,className:k("flex flex-1 gap-1 rounded-l-md cursor-pointer relative overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",i&&"bg-neutral-medium-selected"),whileHover:{opacity:1,scale:[1,1.02,1]},whileTap:{scale:.98},transition:{duration:.2,ease:"easeInOut"},children:[n,d.jsxs("div",{className:"flex flex-col justify-center overflow-hidden flex-1 relative z-10 profile-user-info mr-2",children:[d.jsx("p",{className:k("profile-name font-semibold leading-tight mb-0 text-left",i?"text-primary-default-default":"text-neutral-default-default"),children:e?.length&&e?.length>20?e?.slice(0,10)+"..":e}),d.jsx("div",{className:"flex items-center gap-1 mt-1 ",children:t&&t?d.jsxs(d.Fragment,{children:[d.jsx("p",{className:k("profile-options truncate text-xs mt-0",i?"text-primary-default-default":"text-neutral-default-default"),children:t.length>20?t?.slice(0,10)+"..":t}),d.jsx("p",{className:k("profile-options truncate font-bold mt-0",i?"text-primary-default-default":"text-neutral-default-default"),children:"·"}),d.jsx("p",{className:k("profile-options truncate text-xs mt-0",i?"text-primary-default-default":"text-neutral-default-default"),children:r||"Sin asignar"})]}):d.jsx("span",{className:"font-semibold leading-tight ml-3 text-xs text-blue-300 text-center",children:"Sin asignar"})})]})]}),Separator:()=>d.jsx("div",{className:"w-px bg-gray-500/30 my-1 border-separator-profile"}),Options:({isExpanded:i,onClick:e})=>d.jsx(M.motion.button,{onClick:e,className:"flex items-center justify-center p-3 rounded-r-md cursor-pointer relative overflow-hidden focus:outline-none min-w-[50px] hover:bg-neutral-medium-selected button-content-chevron",whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.2,ease:"easeOut"},title:i?"Ocultar opciones":"Mostrar opciones","aria-label":i?"Ocultar opciones":"Mostrar opciones",children:d.jsx(M.motion.div,{animate:{rotate:i?180:0},transition:{duration:.3,ease:"easeOut"},className:"relative button-select-crevron",children:d.jsx(M.motion.div,{transition:{duration:.2},children:d.jsx(te.ChevronDown,{size:20,className:"text-prometeo-neutral "})})})})}),te={Ticket:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm0-160q17 0 28.5-11.5T520-480q0-17-11.5-28.5T480-520q-17 0-28.5 11.5T440-480q0 17 11.5 28.5T480-440Zm0-160q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm320 440H160q-33 0-56.5-23.5T80-240v-160q33 0 56.5-23.5T160-480q0-33-23.5-56.5T80-560v-160q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v160q-33 0-56.5 23.5T800-480q0 33 23.5 56.5T880-400v160q0 33-23.5 56.5T800-160Zm0-80v-102q-37-22-58.5-58.5T720-480q0-43 21.5-79.5T800-618v-102H160v102q37 22 58.5 58.5T240-480q0 43-21.5 79.5T160-342v102h640ZM480-480Z"})}),Home:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M240-200h120v-240h240v240h120v-360L480-740 240-560v360Zm-80 80v-480l320-240 320 240v480H520v-240h-80v240H160Zm320-350Z"})}),Boards:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm360-80h100v-480H520v480Zm-180 0h100v-480H340v480Zm-180 0h100v-480H160v480Zm540 0h100v-480H700v480Z"})}),Notifications:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M160-200v-80h80v-280q0-83 50-147.5T420-792v-28q0-25 17.5-42.5T480-880q25 0 42.5 17.5T540-820v28q80 20 130 84.5T720-560v280h80v80H160Zm320-300Zm0 420q-33 0-56.5-23.5T400-160h160q0 33-23.5 56.5T480-80ZM320-280h320v-280q0-66-47-113t-113-47q-66 0-113 47t-47 113v280Z"})}),Help:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M478-240q21 0 35.5-14.5T528-290q0-21-14.5-35.5T478-340q-21 0-35.5 14.5T428-290q0 21 14.5 35.5T478-240Zm-36-154h74q0-33 7.5-52t42.5-52q26-26 41-49.5t15-56.5q0-56-41-86t-97-30q-57 0-92.5 30T342-618l66 26q5-18 22.5-39t53.5-21q32 0 48 17.5t16 38.5q0 20-12 37.5T506-526q-44 39-54 59t-10 73Zm38 314q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),Settings:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"m370-80-16-128q-13-5-24.5-12T307-235l-119 50L78-375l103-78q-1-7-1-13.5v-27q0-6.5 1-13.5L78-585l110-190 119 50q11-8 23-15t24-12l16-128h220l16 128q13 5 24.5 12t22.5 15l119-50 110 190-103 78q1 7 1 13.5v27q0 6.5-2 13.5l103 78-110 190-118-50q-11 8-23 15t-24 12L590-80H370Zm70-80h79l14-106q31-8 57.5-23.5T639-327l99 41 39-68-86-65q5-14 7-29.5t2-31.5q0-16-2-31.5t-7-29.5l86-65-39-68-99 42q-22-23-48.5-38.5T533-694l-13-106h-79l-14 106q-31 8-57.5 23.5T321-633l-99-41-39 68 86 64q-5 15-7 30t-2 32q0 16 2 31t7 30l-86 65 39 68 99-42q22 23 48.5 38.5T427-266l13 106Zm42-180q58 0 99-41t41-99q0-58-41-99t-99-41q-59 0-99.5 41T342-480q0 58 40.5 99t99.5 41Zm-2-140Z"})}),CrevronLeft:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"})}),CrevronRight:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"})}),ArrowLeft:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M400-240 160-480l240-240 56 58-142 142h486v80H314l142 142-56 58Z"})}),Shared:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M680-80q-50 0-85-35t-35-85q0-6 3-28L282-392q-16 15-37 23.5t-45 8.5q-50 0-85-35t-35-85q0-50 35-85t85-35q24 0 45 8.5t37 23.5l281-164q-2-7-2.5-13.5T560-760q0-50 35-85t85-35q50 0 85 35t35 85q0 50-35 85t-85 35q-24 0-45-8.5T598-672L317-508q2 7 2.5 13.5t.5 14.5q0 8-.5 14.5T317-452l281 164q16-15 37-23.5t45-8.5q50 0 85 35t35 85q0 50-35 85t-85 35Zm0-80q17 0 28.5-11.5T720-200q0-17-11.5-28.5T680-240q-17 0-28.5 11.5T640-200q0 17 11.5 28.5T680-160ZM200-440q17 0 28.5-11.5T240-480q0-17-11.5-28.5T200-520q-17 0-28.5 11.5T160-480q0 17 11.5 28.5T200-440Zm480-280q17 0 28.5-11.5T720-760q0-17-11.5-28.5T680-800q-17 0-28.5 11.5T640-760q0 17 11.5 28.5T680-720Zm0 520ZM200-480Zm480-280Z"})}),ChevronDown:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-345 240-585l56-56 184 183 184-183 56 56-240 240Z"})}),Collapse:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M440-440v240h-80v-160H200v-80h240Zm160-320v160h160v80H520v-240h80Z"})}),Calendar:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Zm280 240q-17 0-28.5-11.5T440-440q0-17 11.5-28.5T480-480q17 0 28.5 11.5T520-440q0 17-11.5 28.5T480-400Zm-160 0q-17 0-28.5-11.5T280-440q0-17 11.5-28.5T320-480q17 0 28.5 11.5T360-440q0 17-11.5 28.5T320-400Zm320 0q-17 0-28.5-11.5T600-440q0-17 11.5-28.5T640-480q17 0 28.5 11.5T680-440q0 17-11.5 28.5T640-400ZM480-240q-17 0-28.5-11.5T440-280q0-17 11.5-28.5T480-320q17 0 28.5 11.5T520-280q0 17-11.5 28.5T480-240Zm-160 0q-17 0-28.5-11.5T280-280q0-17 11.5-28.5T320-320q17 0 28.5 11.5T360-280q0 17-11.5 28.5T320-240Zm320 0q-17 0-28.5-11.5T600-280q0-17 11.5-28.5T640-320q17 0 28.5 11.5T680-280q0 17-11.5 28.5T640-240Z"})}),Close:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"})}),UserPerson:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM160-160v-112q0-34 17.5-62.5T224-378q62-31 126-46.5T480-440q66 0 130 15.5T736-378q29 15 46.5 43.5T800-272v112H160Zm80-80h480v-32q0-11-5.5-20T700-306q-54-27-109-40.5T480-360q-56 0-111 13.5T260-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T560-640q0-33-23.5-56.5T480-720q-33 0-56.5 23.5T400-640q0 33 23.5 56.5T480-560Zm0-80Zm0 400Z"})}),Logout:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h280v80H200Zm440-160-55-58 102-102H360v-80h327L585-622l55-58 200 200-200 200Z"})}),ArrowUpDown:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M320-440v-287L217-624l-57-56 200-200 200 200-57 56-103-103v287h-80ZM600-80 400-280l57-56 103 103v-287h80v287l103-103 57 56L600-80Z"})}),Filter:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M400-240v-80h160v80H400ZM240-440v-80h480v80H240ZM120-640v-80h720v80H120Z"})}),Search:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"})}),Stars:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"m668-380 152-130 120 10-176 153 52 227-102-62-46-198Zm-94-292-42-98 46-110 92 217-96-9ZM294-287l126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM173-120l65-281L20-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Zm247-340Z"})}),MoreVert:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z"})}),Add:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z"})}),Edit:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M200-200h57l391-391-57-57-391 391v57Zm-80 80v-170l528-527q12-11 26.5-17t30.5-6q16 0 31 6t26 18l55 56q12 11 17.5 26t5.5 30q0 16-5.5 30.5T817-647L290-120H120Zm640-584-56-56 56 56Zm-141 85-28-29 57 57-29-28Z"})}),Upload:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M440-320v-326L336-542l-56-58 200-200 200 200-56 58-104-104v326h-80ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z"})}),Copy:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z"})}),FaLock:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M80-200v-80h800v80H80Zm46-242-52-30 34-60H40v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Z"})}),AccountCircle:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M234-276q51-39 114-61.5T480-360q69 0 132 22.5T726-276q35-41 54.5-93T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 59 19.5 111t54.5 93Zm246-164q-59 0-99.5-40.5T340-580q0-59 40.5-99.5T480-720q59 0 99.5 40.5T620-580q0 59-40.5 99.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q53 0 100-15.5t86-44.5q-39-29-86-44.5T480-280q-53 0-100 15.5T294-220q39 29 86 44.5T480-160Zm0-360q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43q0 26 17 43t43 17Zm0 360Z"})}),UserAdd:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M720-400v-120H600v-80h120v-120h80v120h120v80H800v120h-80Zm-360-80q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM40-160v-112q0-34 17.5-62.5T104-378q62-31 126-46.5T360-440q66 0 130 15.5T616-378q29 15 46.5 43.5T680-272v112H40Zm80-80h480v-32q0-11-5.5-20T580-306q-54-27-109-40.5T360-360q-56 0-111 13.5T140-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T440-640q0-33-23.5-56.5T360-720q-33 0-56.5 23.5T280-640q0 33 23.5 56.5T360-560Zm0-80Zm0 400Z"})}),AttachFile:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M720-330q0 104-73 177T470-80q-104 0-177-73t-73-177v-370q0-75 52.5-127.5T400-880q75 0 127.5 52.5T580-700v350q0 46-32 78t-78 32q-46 0-78-32t-32-78v-370h80v370q0 13 8.5 21.5T470-320q13 0 21.5-8.5T500-350v-350q-1-42-29.5-71T400-800q-42 0-71 29t-29 71v370q-1 71 49 120.5T470-160q70 0 119-49.5T640-330v-390h80v390Z"})}),HistoryActivity:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-80q-155 0-269-103T82-440h81q15 121 105.5 200.5T480-160q134 0 227-93t93-227q0-134-93-227t-227-93q-86 0-159.5 42.5T204-640h116v80H88q29-140 139-230t253-90q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm112-232L440-464v-216h80v184l128 128-56 56Z"})}),MessageSquare:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z"})}),CloseNavBarDesktop:({size:i,className:e,...t})=>d.jsxs("svg",{width:i,height:i,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t,className:e,children:[d.jsx("mask",{id:"mask0_977_20941",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:i,height:i,children:d.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),d.jsx("g",{mask:"url(#mask0_977_20941)",children:d.jsx("path",{d:"M11 17V7L6 12L11 17ZM13 21H15V3H13V21Z",fill:"#E4E4E7"})})]}),EyeVisibility:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:i,height:i,...t,className:e,fill:"currentColor",children:d.jsx("path",{d:"M480-320q75 0 127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75 0-127.5 52.5T300-500q0 75 52.5 127.5T480-320Zm0-72q-45 0-76.5-31.5T372-500q0-45 31.5-76.5T480-608q45 0 76.5 31.5T588-500q0 45-31.5 76.5T480-392Zm0 192q-146 0-266-81.5T40-500q54-137 174-218.5T480-800q146 0 266 81.5T920-500q-54 137-174 218.5T480-200Zm0-300Zm0 220q113 0 207.5-59.5T832-500q-50-101-144.5-160.5T480-720q-113 0-207.5 59.5T128-500q50 101 144.5 160.5T480-280Z"})}),EyeVisibilityOff:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:i,height:i,...t,className:e,fill:"currentColor",children:d.jsx("path",{d:"m644-428-58-58q9-47-27-88t-93-32l-58-58q17-8 34.5-12t37.5-4q75 0 127.5 52.5T660-500q0 20-4 37.5T644-428Zm128 126-58-56q38-29 67.5-63.5T832-500q-50-101-143.5-160.5T480-720q-29 0-57 4t-55 12l-62-62q41-17 84-25.5t90-8.5q151 0 269 83.5T920-500q-23 59-60.5 109.5T772-302Zm20 246L624-222q-35 11-70.5 16.5T480-200q-151 0-269-83.5T40-500q21-53 53-98.5t73-81.5L56-792l56-56 736 736-56 56ZM222-624q-29 26-53 57t-41 67q50 101 143.5 160.5T480-280q20 0 39-2.5t39-5.5l-36-38q-11 3-21 4.5t-21 1.5q-75 0-127.5-52.5T300-500q0-11 1.5-21t4.5-21l-84-82Zm319 93Zm-151 75Z"})}),Check:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:i,...t,className:e,viewBox:"0 -960 960 960",fill:"currentColor",children:d.jsx("path",{d:"M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"})}),Info:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:i,height:i,...t,className:e,fill:"currentColor",children:d.jsx("path",{d:"M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),Error:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:i,...t,className:e,fill:"currentColor",viewBox:"0 -960 960 960",children:d.jsx("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm-40-160h80v-240h-80v240Zm40 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),TicketFilled:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,...t,children:d.jsx("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm0-160q17 0 28.5-11.5T520-480q0-17-11.5-28.5T480-520q-17 0-28.5 11.5T440-480q0 17 11.5 28.5T480-440Zm0-160q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm320 440H160q-33 0-56.5-23.5T80-240v-160q33 0 56.5-23.5T160-480q0-33-23.5-56.5T80-560v-160q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v160q-33 0-56.5 23.5T800-480q0 33 23.5 56.5T880-400v160q0 33-23.5 56.5T800-160Z"})})},Ri=({label:i,className:e,containerClassName:t,id:r,disabled:n=!1,...s})=>{const[a,o]=Mt.useField({...s,type:"checkbox"}),[l,u]=I.useState(!1),c=o.touched&&o.error;return d.jsxs("div",{className:k("relative w-full",t),children:[d.jsxs("label",{htmlFor:r||s.name,className:k("flex items-center gap-3 cursor-pointer transition-all duration-200 ease-in-out",n?"cursor-not-allowed opacity-60":"hover:opacity-80",e),children:[d.jsxs("div",{className:"relative",children:[d.jsx("input",{id:r||s.name,type:"checkbox",name:a.name,checked:a.value||!1,onChange:a.onChange,onFocus:()=>{u(!0),s.onFocus?.()},onBlur:h=>{u(!1),s.onBlur?.(),a.onBlur(h)},disabled:n,className:k("sr-only")}),d.jsx("div",{className:k("w-5 h-5 rounded border-2 transition-all duration-200 ease-in-out flex items-center justify-center",a.value?"bg-primary-default-default border-primary-default-default":l?"border-primary-default-default bg-transparent":c?"border-error-default-default bg-transparent":"border-neutral-default-default bg-transparent hover:border-neutral-strong-default",n&&"bg-neutral-medium-default border-neutral-medium-default"),children:a.value&&d.jsx(te.Check,{size:14,className:k("text-white transition-all duration-200 ease-in-out",n&&"text-neutral-strong-default")})})]}),d.jsx("span",{className:`${l}`,children:" "}),d.jsx("span",{className:k("text-sm transition-colors duration-200 ease-in-out select-none",c&&"text-error-default-default",n&&"text-neutral-medium-default"),children:i})]}),c&&d.jsx(Mt.ErrorMessage,{name:s.name,component:"span",className:"block text-error-default-default text-xs mt-1"})]})},Di=({title:i,children:e})=>d.jsxs(M.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.6,ease:"easeOut"},className:"flex justify-between items-center w-full ",children:[d.jsx("h1",{className:"text-[32px] font-bold text-neutral-strong-default",children:i}),e]}),Fi=I.memo(Di);var Ii={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function gt(i){if(typeof i=="number")return{value:i,unit:"px"};var e,t=(i.match(/^[0-9.]*/)||"").toString();t.includes(".")?e=parseFloat(t):e=parseInt(t,10);var r=(i.match(/[^0-9]*$/)||"").toString();return Ii[r]?{value:e,unit:r}:(console.warn("React Spinners: ".concat(i," is not a valid css value. Defaulting to ").concat(e,"px.")),{value:e,unit:"px"})}function re(i){var e=gt(i);return"".concat(e.value).concat(e.unit)}var De=function(i,e,t){var r="react-spinners-".concat(i,"-").concat(t);if(typeof window>"u"||!window.document)return r;var n=document.createElement("style");document.head.appendChild(n);var s=n.sheet,a=`
|
|
22
|
+
<%s key={someKey} {...props} />`,B,ue,pt,ue),de[ue+B]=!0)}if(ue=null,P!==void 0&&(t(P),ue=""+P),a(S)&&(t(S.key),ue=""+S.key),"key"in S){P={};for(var Gr in S)Gr!=="key"&&(P[Gr]=S[Gr])}else P=S;return ue&&o(P,typeof T=="function"?T.displayName||T.name||"Unknown":T),u(T,ue,ie,ee,n(),P,Wr,Xr)}function h(T){typeof T=="object"&&T!==null&&T.$$typeof===m&&T._store&&(T._store.validated=1)}var p=I,m=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),b=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),E=Symbol.for("react.client.reference"),D=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R=Object.prototype.hasOwnProperty,A=Array.isArray,H=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(T){return T()}};var V,z={},U=p.react_stack_bottom_frame.bind(p,s)(),ne=H(r(s)),de={};_t.Fragment=f,_t.jsx=function(T,S,P,B,ee){var ie=1e4>D.recentlyCreatedOwnerStacks++;return c(T,S,P,!1,B,ee,ie?Error("react-stack-top-frame"):U,ie?H(r(T)):ne)},_t.jsxs=function(T,S,P,B,ee){var ie=1e4>D.recentlyCreatedOwnerStacks++;return c(T,S,P,!0,B,ee,ie?Error("react-stack-top-frame"):U,ie?H(r(T)):ne)}})()),_t}var en;function Ei(){return en||(en=1,process.env.NODE_ENV==="production"?At.exports=Pi():At.exports=Ni()),At.exports}var d=Ei();function tn({profileImage:i,size:e,sizeImage:t=36}){const[r,n]=I.useState(!1),s=i&&i.trim()!==""&&!r;return d.jsx(d.Fragment,{children:s?d.jsx("img",{onError:()=>{n(!0)},src:i,style:{width:t,height:t},className:"rounded-full object-cover",alt:"Profile"}):d.jsx(qi,{size:e,name:i||"User",variant:"beam",colors:["#92A1C6","#146A7C","#F0AB3D","#C271B4","#C20D90"]})})}function k(...i){return ji.twMerge(Jr.clsx(i))}const rn=i=>typeof i=="boolean"?`${i}`:i===0?"0":i,nn=Jr.clsx,Mi=((i,e)=>t=>{var r;if(e?.variants==null)return nn(i,t?.class,t?.className);const{variants:n,defaultVariants:s}=e,a=Object.keys(n).map(u=>{const c=t?.[u],h=s?.[u];if(c===null)return null;const p=rn(c)||rn(h);return n[u][p]}),o=t&&Object.entries(t).reduce((u,c)=>{let[h,p]=c;return p===void 0||(u[h]=p),u},{}),l=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:h,className:p,...m}=c;return Object.entries(m).every(_=>{let[f,g]=_;return Array.isArray(g)?g.includes({...s,...o}[f]):{...s,...o}[f]===g})?[...u,h,p]:u},[]);return nn(i,a,l,t?.class,t?.className)})("flex items-center justify-center cursor-pointer focus:outline-none font-semibold rounded-md transition-colors",{variants:{variant:{filled:"",outline:"bg-transparent border-1",text:"bg-transparent border-0"},color:{primary:"",secondary:""},size:{small:"h-[40px] min-w-[123px] w-fit px-2 py-3 text-sm",medium:"h-[48px] min-w-[134px] w-fit px-2 py-3 text-base",large:"h-[56px] min-w-[145px] w-fit px-4 py-3 text-base"},disabled:{true:"opacity-50 cursor-not-allowed",false:""},loading:{true:"cursor-wait",false:""},customSize:{true:"px-4 py-2",false:""}},compoundVariants:[{variant:"filled",color:"primary",class:"bg-primary-default-default text-neutral-strong-default border-0 hover:bg-primary-default-hover hover:text-neutral-strong-hover focus:bg-primary-default-pressed focus:text-neutral-strong-focused active:bg-primary-pressed active:text-neutral-strong-pressed disabled:bg-primary-medium-disabled disabled:text-neutral-strong-disabled"},{variant:"filled",color:"secondary",class:"bg-neutral-strong-medium-default text-neutral-strong-default hover:bg-neutral-medium-hover hover:text-neutral-strong-hover focus:bg-neutral-medium-pressed focus:text-neutral-strong-pressed active:bg-neutral-medium-pressed disabled:bg-primary-default-disabled disabled:text-neutral-strong-disabled"},{variant:"outline",color:"primary",class:"text-primary-medium-default border-primary-medium-default hover:bg-neutral-default-hover hover:text-primary-medium-hover hover:border-primary-medium-hover focus:bg-neutral-default-pressed focus:text-primary-medium-pressed focus:border-primary-medium-pressed active:bg-neutral-default-pressed active:text-primary-medium-pressed active:border-primary-medium-pressed disabled:border-primary-disabled disabled:text-primary-disabled"},{variant:"outline",color:"secondary",class:"text-neutral-strong-default border-neutral-strong-default hover:bg-neutral-default-hover hover:text-neutral-strong-hover hover:border-neutral-strong-hover focus:bg-neutral-default-pressed focus:text-neutral-strong-pressed focus:border-neutral-strong-pressed active:bg-neutral-default-pressed active:text-neutral-strong-pressed active:border-neutral-strong-pressed disabled:border-neutral-disabled disabled:text-neutral-disabled"},{variant:"text",color:"primary",class:"text-primary-medium-default hover:bg-neutral-default-hover hover:text-primary-medium-hover focus:bg-neutral-default-pressed focus:text-primary-medium-pressed active:bg-neutral-default-pressed active:text-primary-medium-pressed disabled:text-primary-medium-disabled"},{variant:"text",color:"secondary",class:"text-neutral-strong-default hover:bg-neutral-default-hover hover:text-primary-default-hover focus:bg-neutral-default-pressed focus:text-primary-medium-pressed active:bg-neutral-default-pressed active:text-primary-medium-pressed disabled:text-primary-medium-disabled"}],defaultVariants:{variant:"filled",color:"primary",size:"medium",disabled:!1,loading:!1,customSize:!1}});function Ai({label:i="Selene",onClick:e,icon:t,contentClassName:r,loadingText:n="Cargando...",animate:s=!0,animateIcon:a=!0,isLoading:o=!1,disabled:l=!1,type:u="button",variant:c="filled",color:h="primary",size:p="medium",children:m,Spinner:_,className:f,...g}){const x=F.useAnimationControls(),v=()=>{!s||l||o||!a||x.start({rotate:90})},b=()=>{!s||l||o||!a||x.start({rotate:0})},w=k(Mi({variant:c,color:h,size:p,disabled:l||o,loading:o}),f);return d.jsx(F.motion.button,{onClick:e,className:w,whileHover:s&&!l&&!o?{scale:1.05}:{},whileTap:s&&!l&&!o?{scale:.98}:{},transition:{type:"spring",stiffness:400,damping:17},onHoverStart:v,onHoverEnd:b,disabled:l||o,type:u,...g,children:o?d.jsxs("div",{className:"flex items-center gap-2",children:[_,p!=="small"&&d.jsx("span",{children:n})]}):m||d.jsxs("span",{className:k("flex items-center gap-2",r),children:[t&&d.jsx(F.motion.div,{animate:a?x:void 0,transition:{type:"spring",stiffness:400,damping:17},children:t}),i&&d.jsx("span",{children:i})]})})}function sn({sessions:i,handleTokenLogin:e}){return d.jsx("div",{className:"profile-options-container w-full ",children:i?.map(t=>d.jsx("button",{className:"w-full ",onClick:()=>e?.(t.token),children:d.jsx(Rt,{children:d.jsx(Rt.Content,{onClick:()=>{console.log("hola")},isExpanded:!1,name:t.name,nameArea:t?.area?.name,nameCompany:t.company_id.name,cardProfile:d.jsx(Rt.Image,{isExpanded:!1})})})},t._id))})}const Rt=Object.assign(({children:i})=>d.jsx("div",{className:"profile-container flex my-2 rounded-md text-white-prometeo overflow-hidden flex-shrink-0 w-full min-w-0",children:i}),{Menu:({isExpanded:i,sessions:e,onClickLogout:t,handleTokenLogin:r})=>(console.log(e),d.jsx(F.AnimatePresence,{mode:"wait",children:i&&d.jsxs(F.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1,transition:{height:{duration:.6,ease:"easeOut"},opacity:{duration:.4,delay:.2}}},exit:{height:0,opacity:0,transition:{height:{duration:.8,delay:.2,ease:"easeIn"},opacity:{duration:.3,delay:.1}}},className:"overflow-hidden",children:[d.jsx(F.motion.div,{className:"flex justify-center items-center w-full mt-4",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.5,ease:"easeInOut"}},children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),e!==null&&d.jsxs(d.Fragment,{children:[d.jsx(F.motion.div,{className:"mt-4",exit:{opacity:0,y:-5,height:0,transition:{duration:.4,delay:.4,ease:"easeInOut"}},children:d.jsx("span",{className:"text-neutral-medium-default font-semibold text-xs",children:"Cambiar cuenta"})}),d.jsx(F.motion.div,{className:"mt-4 overflow-hidden w-full ",exit:{height:0,opacity:0,y:-10,scale:.98,transition:{height:{duration:.5,delay:.2},opacity:{duration:.3,delay:.3},y:{duration:.3,delay:.3},scale:{duration:.3,delay:.3},ease:"easeInOut"}},children:d.jsx(sn,{sessions:e,handleTokenLogin:r})}),d.jsx(F.motion.div,{className:"flex justify-center items-center w-full mt-4",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.15,ease:"easeInOut"}},children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})})]}),d.jsxs(F.motion.button,{onClick:t,className:"flex flex-1 h-12 w-full gap-1 rounded-md cursor-pointer mt-4 mb-4 px-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",exit:{opacity:0,y:-8,scale:.96,transition:{duration:.5,delay:0,ease:"easeInOut"}},whileHover:{opacity:1,scale:[1,1.02,1],transition:{duration:.2}},whileTap:{scale:.98},children:[d.jsx(ae.Logout,{size:24,className:"text-neutral-default-default"}),d.jsx("span",{className:"text-neutral-default-default font-semibold text-sm",children:"Cerrar sesión"})]})]})})),Image:({imageUrl:i})=>d.jsx("div",{className:"profile-image-wrapper ml-1 flex-shrink-0 h-10 w-10 flex items-center justify-center relative z-10",children:d.jsx(tn,{profileImage:i,size:36,sizeImage:36})}),Content:({isExpanded:i,name:e,nameCompany:t,nameArea:r,cardProfile:n,onClick:s})=>d.jsxs(F.motion.button,{onClick:s,className:k("flex flex-1 gap-1 rounded-l-md cursor-pointer relative overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",i&&"bg-neutral-medium-selected"),whileHover:{opacity:1,scale:[1,1.02,1]},whileTap:{scale:.98},transition:{duration:.2,ease:"easeInOut"},children:[n,d.jsxs("div",{className:"flex flex-col justify-center overflow-hidden flex-1 relative z-10 profile-user-info mr-2",children:[d.jsx("p",{className:k("profile-name font-semibold leading-tight mb-0 text-left",i?"text-primary-default-default":"text-neutral-default-default"),children:e?.length&&e?.length>20?e?.slice(0,10)+"..":e}),d.jsx("div",{className:"flex items-center gap-1 mt-1 ",children:t&&t?d.jsxs(d.Fragment,{children:[d.jsx("p",{className:k("profile-options truncate text-xs mt-0",i?"text-primary-default-default":"text-neutral-default-default"),children:t.length>20?t?.slice(0,10)+"..":t}),d.jsx("p",{className:k("profile-options truncate font-bold mt-0",i?"text-primary-default-default":"text-neutral-default-default"),children:"·"}),d.jsx("p",{className:k("profile-options truncate text-xs mt-0",i?"text-primary-default-default":"text-neutral-default-default"),children:r||"Sin asignar"})]}):d.jsx("span",{className:"font-semibold leading-tight ml-3 text-xs text-blue-300 text-center",children:"Sin asignar"})})]})]}),Separator:()=>d.jsx("div",{className:"w-px bg-gray-500/30 my-1 border-separator-profile"}),Options:({isExpanded:i,onClick:e})=>d.jsx(F.motion.button,{onClick:e,className:"flex items-center justify-center p-3 rounded-r-md cursor-pointer relative overflow-hidden focus:outline-none min-w-[50px] hover:bg-neutral-medium-selected button-content-chevron",whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.2,ease:"easeOut"},title:i?"Ocultar opciones":"Mostrar opciones","aria-label":i?"Ocultar opciones":"Mostrar opciones",children:d.jsx(F.motion.div,{animate:{rotate:i?180:0},transition:{duration:.3,ease:"easeOut"},className:"relative button-select-crevron",children:d.jsx(F.motion.div,{transition:{duration:.2},children:d.jsx(ae.ChevronDown,{size:20,className:"text-prometeo-neutral "})})})})}),ae={Ticket:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm0-160q17 0 28.5-11.5T520-480q0-17-11.5-28.5T480-520q-17 0-28.5 11.5T440-480q0 17 11.5 28.5T480-440Zm0-160q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm320 440H160q-33 0-56.5-23.5T80-240v-160q33 0 56.5-23.5T160-480q0-33-23.5-56.5T80-560v-160q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v160q-33 0-56.5 23.5T800-480q0 33 23.5 56.5T880-400v160q0 33-23.5 56.5T800-160Zm0-80v-102q-37-22-58.5-58.5T720-480q0-43 21.5-79.5T800-618v-102H160v102q37 22 58.5 58.5T240-480q0 43-21.5 79.5T160-342v102h640ZM480-480Z"})}),Home:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M240-200h120v-240h240v240h120v-360L480-740 240-560v360Zm-80 80v-480l320-240 320 240v480H520v-240h-80v240H160Zm320-350Z"})}),Boards:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm360-80h100v-480H520v480Zm-180 0h100v-480H340v480Zm-180 0h100v-480H160v480Zm540 0h100v-480H700v480Z"})}),Notifications:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M160-200v-80h80v-280q0-83 50-147.5T420-792v-28q0-25 17.5-42.5T480-880q25 0 42.5 17.5T540-820v28q80 20 130 84.5T720-560v280h80v80H160Zm320-300Zm0 420q-33 0-56.5-23.5T400-160h160q0 33-23.5 56.5T480-80ZM320-280h320v-280q0-66-47-113t-113-47q-66 0-113 47t-47 113v280Z"})}),Help:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M478-240q21 0 35.5-14.5T528-290q0-21-14.5-35.5T478-340q-21 0-35.5 14.5T428-290q0 21 14.5 35.5T478-240Zm-36-154h74q0-33 7.5-52t42.5-52q26-26 41-49.5t15-56.5q0-56-41-86t-97-30q-57 0-92.5 30T342-618l66 26q5-18 22.5-39t53.5-21q32 0 48 17.5t16 38.5q0 20-12 37.5T506-526q-44 39-54 59t-10 73Zm38 314q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),Settings:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"m370-80-16-128q-13-5-24.5-12T307-235l-119 50L78-375l103-78q-1-7-1-13.5v-27q0-6.5 1-13.5L78-585l110-190 119 50q11-8 23-15t24-12l16-128h220l16 128q13 5 24.5 12t22.5 15l119-50 110 190-103 78q1 7 1 13.5v27q0 6.5-2 13.5l103 78-110 190-118-50q-11 8-23 15t-24 12L590-80H370Zm70-80h79l14-106q31-8 57.5-23.5T639-327l99 41 39-68-86-65q5-14 7-29.5t2-31.5q0-16-2-31.5t-7-29.5l86-65-39-68-99 42q-22-23-48.5-38.5T533-694l-13-106h-79l-14 106q-31 8-57.5 23.5T321-633l-99-41-39 68 86 64q-5 15-7 30t-2 32q0 16 2 31t7 30l-86 65 39 68 99-42q22 23 48.5 38.5T427-266l13 106Zm42-180q58 0 99-41t41-99q0-58-41-99t-99-41q-59 0-99.5 41T342-480q0 58 40.5 99t99.5 41Zm-2-140Z"})}),CrevronLeft:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"})}),CrevronRight:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"})}),ArrowLeft:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M400-240 160-480l240-240 56 58-142 142h486v80H314l142 142-56 58Z"})}),Shared:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M680-80q-50 0-85-35t-35-85q0-6 3-28L282-392q-16 15-37 23.5t-45 8.5q-50 0-85-35t-35-85q0-50 35-85t85-35q24 0 45 8.5t37 23.5l281-164q-2-7-2.5-13.5T560-760q0-50 35-85t85-35q50 0 85 35t35 85q0 50-35 85t-85 35q-24 0-45-8.5T598-672L317-508q2 7 2.5 13.5t.5 14.5q0 8-.5 14.5T317-452l281 164q16-15 37-23.5t45-8.5q50 0 85 35t35 85q0 50-35 85t-85 35Zm0-80q17 0 28.5-11.5T720-200q0-17-11.5-28.5T680-240q-17 0-28.5 11.5T640-200q0 17 11.5 28.5T680-160ZM200-440q17 0 28.5-11.5T240-480q0-17-11.5-28.5T200-520q-17 0-28.5 11.5T160-480q0 17 11.5 28.5T200-440Zm480-280q17 0 28.5-11.5T720-760q0-17-11.5-28.5T680-800q-17 0-28.5 11.5T640-760q0 17 11.5 28.5T680-720Zm0 520ZM200-480Zm480-280Z"})}),ChevronDown:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-345 240-585l56-56 184 183 184-183 56 56-240 240Z"})}),Collapse:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M440-440v240h-80v-160H200v-80h240Zm160-320v160h160v80H520v-240h80Z"})}),Calendar:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Zm280 240q-17 0-28.5-11.5T440-440q0-17 11.5-28.5T480-480q17 0 28.5 11.5T520-440q0 17-11.5 28.5T480-400Zm-160 0q-17 0-28.5-11.5T280-440q0-17 11.5-28.5T320-480q17 0 28.5 11.5T360-440q0 17-11.5 28.5T320-400Zm320 0q-17 0-28.5-11.5T600-440q0-17 11.5-28.5T640-480q17 0 28.5 11.5T680-440q0 17-11.5 28.5T640-400ZM480-240q-17 0-28.5-11.5T440-280q0-17 11.5-28.5T480-320q17 0 28.5 11.5T520-280q0 17-11.5 28.5T480-240Zm-160 0q-17 0-28.5-11.5T280-280q0-17 11.5-28.5T320-320q17 0 28.5 11.5T360-280q0 17-11.5 28.5T320-240Zm320 0q-17 0-28.5-11.5T600-280q0-17 11.5-28.5T640-320q17 0 28.5 11.5T680-280q0 17-11.5 28.5T640-240Z"})}),Close:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"})}),UserPerson:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM160-160v-112q0-34 17.5-62.5T224-378q62-31 126-46.5T480-440q66 0 130 15.5T736-378q29 15 46.5 43.5T800-272v112H160Zm80-80h480v-32q0-11-5.5-20T700-306q-54-27-109-40.5T480-360q-56 0-111 13.5T260-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T560-640q0-33-23.5-56.5T480-720q-33 0-56.5 23.5T400-640q0 33 23.5 56.5T480-560Zm0-80Zm0 400Z"})}),Logout:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h280v80H200Zm440-160-55-58 102-102H360v-80h327L585-622l55-58 200 200-200 200Z"})}),ArrowUpDown:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M320-440v-287L217-624l-57-56 200-200 200 200-57 56-103-103v287h-80ZM600-80 400-280l57-56 103 103v-287h80v287l103-103 57 56L600-80Z"})}),Filter:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M400-240v-80h160v80H400ZM240-440v-80h480v80H240ZM120-640v-80h720v80H120Z"})}),Search:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"})}),Stars:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"m668-380 152-130 120 10-176 153 52 227-102-62-46-198Zm-94-292-42-98 46-110 92 217-96-9ZM294-287l126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM173-120l65-281L20-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Zm247-340Z"})}),MoreVert:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z"})}),Add:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z"})}),Edit:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M200-200h57l391-391-57-57-391 391v57Zm-80 80v-170l528-527q12-11 26.5-17t30.5-6q16 0 31 6t26 18l55 56q12 11 17.5 26t5.5 30q0 16-5.5 30.5T817-647L290-120H120Zm640-584-56-56 56 56Zm-141 85-28-29 57 57-29-28Z"})}),Upload:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M440-320v-326L336-542l-56-58 200-200 200 200-56 58-104-104v326h-80ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z"})}),Copy:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z"})}),FaLock:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M80-200v-80h800v80H80Zm46-242-52-30 34-60H40v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Z"})}),AccountCircle:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M234-276q51-39 114-61.5T480-360q69 0 132 22.5T726-276q35-41 54.5-93T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 59 19.5 111t54.5 93Zm246-164q-59 0-99.5-40.5T340-580q0-59 40.5-99.5T480-720q59 0 99.5 40.5T620-580q0 59-40.5 99.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q53 0 100-15.5t86-44.5q-39-29-86-44.5T480-280q-53 0-100 15.5T294-220q39 29 86 44.5T480-160Zm0-360q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43q0 26 17 43t43 17Zm0 360Z"})}),UserAdd:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M720-400v-120H600v-80h120v-120h80v120h120v80H800v120h-80Zm-360-80q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM40-160v-112q0-34 17.5-62.5T104-378q62-31 126-46.5T360-440q66 0 130 15.5T616-378q29 15 46.5 43.5T680-272v112H40Zm80-80h480v-32q0-11-5.5-20T580-306q-54-27-109-40.5T360-360q-56 0-111 13.5T140-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T440-640q0-33-23.5-56.5T360-720q-33 0-56.5 23.5T280-640q0 33 23.5 56.5T360-560Zm0-80Zm0 400Z"})}),AttachFile:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M720-330q0 104-73 177T470-80q-104 0-177-73t-73-177v-370q0-75 52.5-127.5T400-880q75 0 127.5 52.5T580-700v350q0 46-32 78t-78 32q-46 0-78-32t-32-78v-370h80v370q0 13 8.5 21.5T470-320q13 0 21.5-8.5T500-350v-350q-1-42-29.5-71T400-800q-42 0-71 29t-29 71v370q-1 71 49 120.5T470-160q70 0 119-49.5T640-330v-390h80v390Z"})}),HistoryActivity:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-80q-155 0-269-103T82-440h81q15 121 105.5 200.5T480-160q134 0 227-93t93-227q0-134-93-227t-227-93q-86 0-159.5 42.5T204-640h116v80H88q29-140 139-230t253-90q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm112-232L440-464v-216h80v184l128 128-56 56Z"})}),MessageSquare:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z"})}),CloseNavBarDesktop:({size:i,className:e,...t})=>d.jsxs("svg",{width:i,height:i,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t,className:e,children:[d.jsx("mask",{id:"mask0_977_20941",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:i,height:i,children:d.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),d.jsx("g",{mask:"url(#mask0_977_20941)",children:d.jsx("path",{d:"M11 17V7L6 12L11 17ZM13 21H15V3H13V21Z",fill:"#E4E4E7"})})]}),EyeVisibility:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:i,height:i,...t,className:e,fill:"currentColor",children:d.jsx("path",{d:"M480-320q75 0 127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75 0-127.5 52.5T300-500q0 75 52.5 127.5T480-320Zm0-72q-45 0-76.5-31.5T372-500q0-45 31.5-76.5T480-608q45 0 76.5 31.5T588-500q0 45-31.5 76.5T480-392Zm0 192q-146 0-266-81.5T40-500q54-137 174-218.5T480-800q146 0 266 81.5T920-500q-54 137-174 218.5T480-200Zm0-300Zm0 220q113 0 207.5-59.5T832-500q-50-101-144.5-160.5T480-720q-113 0-207.5 59.5T128-500q50 101 144.5 160.5T480-280Z"})}),EyeVisibilityOff:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:i,height:i,...t,className:e,fill:"currentColor",children:d.jsx("path",{d:"m644-428-58-58q9-47-27-88t-93-32l-58-58q17-8 34.5-12t37.5-4q75 0 127.5 52.5T660-500q0 20-4 37.5T644-428Zm128 126-58-56q38-29 67.5-63.5T832-500q-50-101-143.5-160.5T480-720q-29 0-57 4t-55 12l-62-62q41-17 84-25.5t90-8.5q151 0 269 83.5T920-500q-23 59-60.5 109.5T772-302Zm20 246L624-222q-35 11-70.5 16.5T480-200q-151 0-269-83.5T40-500q21-53 53-98.5t73-81.5L56-792l56-56 736 736-56 56ZM222-624q-29 26-53 57t-41 67q50 101 143.5 160.5T480-280q20 0 39-2.5t39-5.5l-36-38q-11 3-21 4.5t-21 1.5q-75 0-127.5-52.5T300-500q0-11 1.5-21t4.5-21l-84-82Zm319 93Zm-151 75Z"})}),Check:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:i,...t,className:e,viewBox:"0 -960 960 960",fill:"currentColor",children:d.jsx("path",{d:"M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"})}),Info:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:i,height:i,...t,className:e,fill:"currentColor",children:d.jsx("path",{d:"M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),Error:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:i,...t,className:e,fill:"currentColor",viewBox:"0 -960 960 960",children:d.jsx("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm-40-160h80v-240h-80v240Zm40 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),TicketFilled:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,...t,children:d.jsx("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm0-160q17 0 28.5-11.5T520-480q0-17-11.5-28.5T480-520q-17 0-28.5 11.5T440-480q0 17 11.5 28.5T480-440Zm0-160q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm320 440H160q-33 0-56.5-23.5T80-240v-160q33 0 56.5-23.5T160-480q0-33-23.5-56.5T80-560v-160q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v160q-33 0-56.5 23.5T800-480q0 33 23.5 56.5T880-400v160q0 33-23.5 56.5T800-160Z"})})},Ri=({label:i,className:e,containerClassName:t,id:r,disabled:n=!1,...s})=>{const[a,o]=Mt.useField({...s,type:"checkbox"}),[l,u]=I.useState(!1),c=o.touched&&o.error;return d.jsxs("div",{className:k("relative w-full",t),children:[d.jsxs("label",{htmlFor:r||s.name,className:k("flex items-center gap-3 cursor-pointer transition-all duration-200 ease-in-out",n?"cursor-not-allowed opacity-60":"hover:opacity-80",e),children:[d.jsxs("div",{className:"relative",children:[d.jsx("input",{id:r||s.name,type:"checkbox",name:a.name,checked:a.value||!1,onChange:a.onChange,onFocus:()=>{u(!0),s.onFocus?.()},onBlur:h=>{u(!1),s.onBlur?.(),a.onBlur(h)},disabled:n,className:k("sr-only")}),d.jsx("div",{className:k("w-5 h-5 rounded border-2 transition-all duration-200 ease-in-out flex items-center justify-center",a.value?"bg-primary-default-default border-primary-default-default":l?"border-primary-default-default bg-transparent":c?"border-error-default-default bg-transparent":"border-neutral-default-default bg-transparent hover:border-neutral-strong-default",n&&"bg-neutral-medium-default border-neutral-medium-default"),children:a.value&&d.jsx(ae.Check,{size:14,className:k("text-white transition-all duration-200 ease-in-out",n&&"text-neutral-strong-default")})})]}),d.jsx("span",{className:`${l}`,children:" "}),d.jsx("span",{className:k("text-sm transition-colors duration-200 ease-in-out select-none",c&&"text-error-default-default",n&&"text-neutral-medium-default"),children:i})]}),c&&d.jsx(Mt.ErrorMessage,{name:s.name,component:"span",className:"block text-error-default-default text-xs mt-1"})]})},Di=({title:i,children:e})=>d.jsxs(F.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.6,ease:"easeOut"},className:"flex justify-between items-center w-full ",children:[d.jsx("h1",{className:"text-[32px] font-bold text-neutral-strong-default",children:i}),e]}),Fi=I.memo(Di);var Ii={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function gt(i){if(typeof i=="number")return{value:i,unit:"px"};var e,t=(i.match(/^[0-9.]*/)||"").toString();t.includes(".")?e=parseFloat(t):e=parseInt(t,10);var r=(i.match(/[^0-9]*$/)||"").toString();return Ii[r]?{value:e,unit:r}:(console.warn("React Spinners: ".concat(i," is not a valid css value. Defaulting to ").concat(e,"px.")),{value:e,unit:"px"})}function te(i){var e=gt(i);return"".concat(e.value).concat(e.unit)}var De=function(i,e,t){var r="react-spinners-".concat(i,"-").concat(t);if(typeof window>"u"||!window.document)return r;var n=document.createElement("style");document.head.appendChild(n);var s=n.sheet,a=`
|
|
23
23
|
@keyframes `.concat(r,` {
|
|
24
24
|
`).concat(e,`
|
|
25
25
|
}
|
|
26
|
-
`);return s&&s.insertRule(a,0),r},Dt;(function(i){i.maroon="#800000",i.red="#FF0000",i.orange="#FFA500",i.yellow="#FFFF00",i.olive="#808000",i.green="#008000",i.purple="#800080",i.fuchsia="#FF00FF",i.lime="#00FF00",i.teal="#008080",i.aqua="#00FFFF",i.blue="#0000FF",i.navy="#000080",i.black="#000000",i.gray="#808080",i.silver="#C0C0C0",i.white="#FFFFFF"})(Dt||(Dt={}));var Zi=function(i,e){if(i.includes("/"))return i.replace("rgb(","rgba(");var t=i.substring(i.startsWith("rgba(")?5:4,i.length-1).trim(),r=t.split(",");return r.length===4?i.replace("rgb(","rgba("):r.length===3?"rgba(".concat(t,", ").concat(e,")"):"rgba(".concat(t," / ").concat(e,")")},Li=function(i,e){if(i.startsWith("rgb"))return Zi(i,e);if(Object.keys(Dt).includes(i)&&(i=Dt[i]),i[0]==="#"&&(i=i.slice(1)),i.length===3){var t="";i.split("").forEach(function(n){t+=n,t+=n}),i=t}var r=(i.match(/.{2}/g)||[]).map(function(n){return parseInt(n,16)}).join(", ");return"rgba(".concat(r,", ").concat(e,")")},Ft=function(){return Ft=Object.assign||function(i){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},Ft.apply(this,arguments)},zi=function(i,e){var t={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(i);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(i,r[n])&&(t[r[n]]=i[r[n]]);return t},Bi=De("BounceLoader","0% {transform: scale(0)} 50% {transform: scale(1.0)} 100% {transform: scale(0)}","bounce");function Vi(i){var e=i.loading,t=e===void 0?!0:e,r=i.color,n=r===void 0?"#000000":r,s=i.speedMultiplier,a=s===void 0?1:s,o=i.cssOverride,l=o===void 0?{}:o,u=i.size,c=u===void 0?60:u,h=zi(i,["loading","color","speedMultiplier","cssOverride","size"]),p=function(_){var f=_===1?"".concat(1/a,"s"):"0s";return{position:"absolute",height:
|
|
27
|
-
35% {width: `).concat(
|
|
26
|
+
`);return s&&s.insertRule(a,0),r},Dt;(function(i){i.maroon="#800000",i.red="#FF0000",i.orange="#FFA500",i.yellow="#FFFF00",i.olive="#808000",i.green="#008000",i.purple="#800080",i.fuchsia="#FF00FF",i.lime="#00FF00",i.teal="#008080",i.aqua="#00FFFF",i.blue="#0000FF",i.navy="#000080",i.black="#000000",i.gray="#808080",i.silver="#C0C0C0",i.white="#FFFFFF"})(Dt||(Dt={}));var Zi=function(i,e){if(i.includes("/"))return i.replace("rgb(","rgba(");var t=i.substring(i.startsWith("rgba(")?5:4,i.length-1).trim(),r=t.split(",");return r.length===4?i.replace("rgb(","rgba("):r.length===3?"rgba(".concat(t,", ").concat(e,")"):"rgba(".concat(t," / ").concat(e,")")},Li=function(i,e){if(i.startsWith("rgb"))return Zi(i,e);if(Object.keys(Dt).includes(i)&&(i=Dt[i]),i[0]==="#"&&(i=i.slice(1)),i.length===3){var t="";i.split("").forEach(function(n){t+=n,t+=n}),i=t}var r=(i.match(/.{2}/g)||[]).map(function(n){return parseInt(n,16)}).join(", ");return"rgba(".concat(r,", ").concat(e,")")},Ft=function(){return Ft=Object.assign||function(i){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},Ft.apply(this,arguments)},zi=function(i,e){var t={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(i);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(i,r[n])&&(t[r[n]]=i[r[n]]);return t},Bi=De("BounceLoader","0% {transform: scale(0)} 50% {transform: scale(1.0)} 100% {transform: scale(0)}","bounce");function Vi(i){var e=i.loading,t=e===void 0?!0:e,r=i.color,n=r===void 0?"#000000":r,s=i.speedMultiplier,a=s===void 0?1:s,o=i.cssOverride,l=o===void 0?{}:o,u=i.size,c=u===void 0?60:u,h=zi(i,["loading","color","speedMultiplier","cssOverride","size"]),p=function(_){var f=_===1?"".concat(1/a,"s"):"0s";return{position:"absolute",height:te(c),width:te(c),backgroundColor:n,borderRadius:"100%",opacity:.6,top:0,left:0,animationFillMode:"both",animation:"".concat(Bi," ").concat(2.1/a,"s ").concat(f," infinite ease-in-out")}},m=Ft({display:"inherit",position:"relative",width:te(c),height:te(c)},l);return t?Y.createElement("span",Ft({style:m},h),Y.createElement("span",{style:p(1)}),Y.createElement("span",{style:p(2)})):null}var It=function(){return It=Object.assign||function(i){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},It.apply(this,arguments)},Hi=function(i,e){var t={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(i);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(i,r[n])&&(t[r[n]]=i[r[n]]);return t},Ui=De("ClipLoader","0% {transform: rotate(0deg) scale(1)} 50% {transform: rotate(180deg) scale(0.8)} 100% {transform: rotate(360deg) scale(1)}","clip");function Yi(i){var e=i.loading,t=e===void 0?!0:e,r=i.color,n=r===void 0?"#000000":r,s=i.speedMultiplier,a=s===void 0?1:s,o=i.cssOverride,l=o===void 0?{}:o,u=i.size,c=u===void 0?35:u,h=Hi(i,["loading","color","speedMultiplier","cssOverride","size"]),p=It({background:"transparent !important",width:te(c),height:te(c),borderRadius:"100%",border:"2px solid",borderTopColor:n,borderBottomColor:"transparent",borderLeftColor:n,borderRightColor:n,display:"inline-block",animation:"".concat(Ui," ").concat(.75/a,"s 0s infinite linear"),animationFillMode:"both"},l);return t?Y.createElement("span",It({style:p},h)):null}var Zt=function(){return Zt=Object.assign||function(i){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},Zt.apply(this,arguments)},$i=function(i,e){var t={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(i);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(i,r[n])&&(t[r[n]]=i[r[n]]);return t},Wi=De("DotLoader","100% {transform: rotate(360deg)}","rotate"),Xi=De("DotLoader","0%, 100% {transform: scale(0)} 50% {transform: scale(1.0)}","bounce");function Gi(i){var e=i.loading,t=e===void 0?!0:e,r=i.color,n=r===void 0?"#000000":r,s=i.speedMultiplier,a=s===void 0?1:s,o=i.cssOverride,l=o===void 0?{}:o,u=i.size,c=u===void 0?60:u,h=$i(i,["loading","color","speedMultiplier","cssOverride","size"]),p=Zt({display:"inherit",position:"relative",width:te(c),height:te(c),animationFillMode:"forwards",animation:"".concat(Wi," ").concat(2/a,"s 0s infinite linear")},l),m=function(_){var f=gt(c),g=f.value,x=f.unit;return{position:"absolute",top:_%2?"0":"auto",bottom:_%2?"auto":"0",height:"".concat(g/2).concat(x),width:"".concat(g/2).concat(x),backgroundColor:n,borderRadius:"100%",animationFillMode:"forwards",animation:"".concat(Xi," ").concat(2/a,"s ").concat(_===2?"1s":"0s"," infinite linear")}};return t?Y.createElement("span",Zt({style:p},h),Y.createElement("span",{style:m(1)}),Y.createElement("span",{style:m(2)})):null}var Lt=function(){return Lt=Object.assign||function(i){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},Lt.apply(this,arguments)},Ji=function(i,e){var t={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(i);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(i,r[n])&&(t[r[n]]=i[r[n]]);return t},Qi=De("GridLoader","0% {transform: scale(1)} 50% {transform: scale(0.5); opacity: 0.7} 100% {transform: scale(1); opacity: 1}","grid"),Ne=function(i){return Math.random()*i};function Ki(i){var e=i.loading,t=e===void 0?!0:e,r=i.color,n=r===void 0?"#000000":r,s=i.speedMultiplier,a=s===void 0?1:s,o=i.cssOverride,l=o===void 0?{}:o,u=i.size,c=u===void 0?15:u,h=i.margin,p=h===void 0?2:h,m=Ji(i,["loading","color","speedMultiplier","cssOverride","size","margin"]),_=gt(c),f=gt(p),g=parseFloat(_.value.toString())*3+parseFloat(f.value.toString())*6,x=Lt({width:"".concat(g).concat(_.unit),fontSize:0,display:"inline-block"},l),v=function(b){return{display:"inline-block",backgroundColor:n,width:"".concat(te(c)),height:"".concat(te(c)),margin:te(p),borderRadius:"100%",animationFillMode:"both",animation:"".concat(Qi," ").concat((b/100+.6)/a,"s ").concat(b/100-.2,"s infinite ease")}};return t?Y.createElement("span",Lt({style:x},m,{ref:function(b){b&&b.style.setProperty("width","".concat(g).concat(_.unit),"important")}}),Y.createElement("span",{style:v(Ne(100))}),Y.createElement("span",{style:v(Ne(100))}),Y.createElement("span",{style:v(Ne(100))}),Y.createElement("span",{style:v(Ne(100))}),Y.createElement("span",{style:v(Ne(100))}),Y.createElement("span",{style:v(Ne(100))}),Y.createElement("span",{style:v(Ne(100))}),Y.createElement("span",{style:v(Ne(100))}),Y.createElement("span",{style:v(Ne(100))})):null}var zt=function(){return zt=Object.assign||function(i){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},zt.apply(this,arguments)},es=function(i,e){var t={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(i);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(i,r[n])&&(t[r[n]]=i[r[n]]);return t};function ts(i){var e=i.loading,t=e===void 0?!0:e,r=i.color,n=r===void 0?"#000000":r,s=i.speedMultiplier,a=s===void 0?1:s,o=i.cssOverride,l=o===void 0?{}:o,u=i.size,c=u===void 0?50:u,h=es(i,["loading","color","speedMultiplier","cssOverride","size"]),p=gt(c),m=p.value,_=p.unit,f=zt({display:"inherit",position:"relative",width:te(c),height:te(c),transform:"rotate(165deg)"},l),g=m/5,x=(m-g)/2,v=x-g,b=Li(n,.75),w=De("HashLoader","0% {width: ".concat(g,"px; box-shadow: ").concat(x,"px ").concat(-v,"px ").concat(b,", ").concat(-x,"px ").concat(v,"px ").concat(b,`}
|
|
27
|
+
35% {width: `).concat(te(c),"; box-shadow: 0 ").concat(-v,"px ").concat(b,", 0 ").concat(v,"px ").concat(b,`}
|
|
28
28
|
70% {width: `).concat(g,"px; box-shadow: ").concat(-x,"px ").concat(-v,"px ").concat(b,", ").concat(x,"px ").concat(v,"px ").concat(b,`}
|
|
29
29
|
100% {box-shadow: `).concat(x,"px ").concat(-v,"px ").concat(b,", ").concat(-x,"px ").concat(v,"px ").concat(b,"}"),"before"),y=De("HashLoader","0% {height: ".concat(g,"px; box-shadow: ").concat(v,"px ").concat(x,"px ").concat(n,", ").concat(-v,"px ").concat(-x,"px ").concat(n,`}
|
|
30
|
-
35% {height: `).concat(
|
|
30
|
+
35% {height: `).concat(te(c),"; box-shadow: ").concat(v,"px 0 ").concat(n,", ").concat(-v,"px 0 ").concat(n,`}
|
|
31
31
|
70% {height: `).concat(g,"px; box-shadow: ").concat(v,"px ").concat(-x,"px ").concat(n,", ").concat(-v,"px ").concat(x,"px ").concat(n,`}
|
|
32
32
|
100% {box-shadow: `).concat(v,"px ").concat(x,"px ").concat(n,", ").concat(-v,"px ").concat(-x,"px ").concat(n,"}"),"after"),j=function(O){return{position:"absolute",top:"50%",left:"50%",display:"block",width:"".concat(m/5).concat(_),height:"".concat(m/5).concat(_),borderRadius:"".concat(m/10).concat(_),transform:"translate(-50%, -50%)",animationFillMode:"none",animation:"".concat(O===1?w:y," ").concat(2/a,"s infinite")}};return t?Y.createElement("span",zt({style:f},h),Y.createElement("span",{style:j(1)}),Y.createElement("span",{style:j(2)})):null}var Bt=function(){return Bt=Object.assign||function(i){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},Bt.apply(this,arguments)},rs=function(i,e){var t={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(i);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(i,r[n])&&(t[r[n]]=i[r[n]]);return t},ns=De("SyncLoader",`33% {transform: translateY(10px)}
|
|
33
33
|
66% {transform: translateY(-10px)}
|
|
34
|
-
100% {transform: translateY(0)}`,"sync");function is(i){var e=i.loading,t=e===void 0?!0:e,r=i.color,n=r===void 0?"#000000":r,s=i.speedMultiplier,a=s===void 0?1:s,o=i.cssOverride,l=o===void 0?{}:o,u=i.size,c=u===void 0?15:u,h=i.margin,p=h===void 0?2:h,m=rs(i,["loading","color","speedMultiplier","cssOverride","size","margin"]),_=Bt({display:"inherit"},l),f=function(g){return{backgroundColor:n,width:re(c),height:re(c),margin:re(p),borderRadius:"100%",display:"inline-block",animation:"".concat(ns," ").concat(.6/a,"s ").concat(g*.07,"s infinite ease-in-out"),animationFillMode:"both"}};return t?Y.createElement("span",Bt({style:_},m),Y.createElement("span",{style:f(1)}),Y.createElement("span",{style:f(2)}),Y.createElement("span",{style:f(3)})):null}const sr=({variant:i="sync",color:e="#3B82F6",loading:t=!0,size:r="medium",className:n="",speedMultiplier:s=1})=>{const o=(()=>{if(typeof r=="number")return r;switch(r){case"small":return 20;case"medium":return 35;case"large":return 50;default:return 35}})(),l={color:e,loading:t,size:o,speedMultiplier:s,"aria-label":"Loading Spinner","data-testid":"spinner"},u=k("inline-block",n),c=()=>{switch(i){case"bounce":return d.jsx(Vi,{...l});case"dot":return d.jsx(Gi,{...l});case"grid":return d.jsx(Ki,{...l,size:o*.4});case"hash":return d.jsx(ts,{...l});case"sync":return d.jsx(is,{...l,size:o*.4});case"clip":default:return d.jsx(Yi,{...l})}};return d.jsx("div",{className:u,children:c()})},Vt={default:{container:"",input:k("border-neutral-default-default text-neutral-default-default","focus:border-primary-default-default focus:border-2","hover:border-neutral-strong-default"),label:k("text-neutral-medium-default","peer-focus:text-primary-default-default"),icon:k("text-neutral-medium-default","peer-focus:text-primary-default-default")},error:{container:"",input:k("border-error-default-default text-neutral-default-default","focus:border-error-default focus:border-2","focus:ring-0 focus:ring-error-default/20"),label:k("text-error-light","peer-focus:text-error-light"),icon:k("text-error-light","peer-focus:text-error-light")},success:{container:"",input:k("border-success-default-default text-neutral-default-default","focus:border-success-default focus:border-2","focus:ring-0 focus:ring-success-default/20"),label:k("text-success","peer-focus:text-success-light"),icon:k("text-success-light","peer-focus:text-success-light")}},vt={small:{container:"text-sm",input:"h-10 px-3 text-sm",label:"text-xs peer-focus:text-xs peer-placeholder-shown:text-sm",icon:"w-4 h-4 right-3"},medium:{container:"text-base",input:"h-12 px-3 text-base",label:"text-sm peer-focus:text-sm peer-placeholder-shown:text-base",icon:"w-5 h-5 right-3"},large:{container:"text-lg",input:"h-14 px-3 text-lg",label:"text-sm peer-focus:text-sm peer-placeholder-shown:text-lg",icon:"w-6 h-6 right-3"}},ss=({label:i,icon:e,onChange:t,value:r="",debounceMs:n=0,name:s,width:a="100%",height:o,variant:l="default",size:u="medium",disabled:c=!1,type:h="text",isFetching:p,errorMessage:m,helperText:_,required:f=!1,onFocus:g,onBlur:x})=>{const[v,b]=I.useState(r),[w]=Oi.useDebounce(v,n),[y,j]=I.useState(!1),[O,C]=I.useState(!1);I.useEffect(()=>{n&&w!==r&&t(w)},[w,n,t,r]),I.useEffect(()=>{b(r)},[r]);const q=()=>{j(!0),g?.()},E=()=>{j(!1),x?.()},F=de=>{const T=de.target.value;b(T),n||t(T)},D=()=>{C(!O)},R={};a&&a!=="100%"&&(R.width=a),o&&(R.height=o);const H=v.length>0,V=l==="error"&&m,z=!V&&_,U=()=>y||H?"-top-2 left-2 scale-90":"top-1/2 -translate-y-1/2 scale-100",ie=()=>o?{height:o}:{};return d.jsxs("div",{className:k("relative",vt[u].container,!a&&"w-full","bg-inherit"),style:R,children:[d.jsx("input",{id:s,name:s,type:h==="password"&&O?"text":h,value:v,className:k("peer w-full border-1 rounded-lg bg-transparent appearance-none transition-all duration-200 ease-in-out","placeholder:text-transparent focus:outline-none px-3",!o&&vt[u].input,o&&`px-3 ${vt[u].input.split(" ").filter(de=>de.startsWith("text-")).join(" ")}`,Vt[l].input,e&&"pr-10",c&&"bg-neutral-weak-default cursor-not-allowed opacity-60",Vt[l].container),style:ie(),onChange:F,onFocus:q,onBlur:E,disabled:c,required:f}),d.jsx("label",{htmlFor:s,className:k("absolute left-3 transition-all duration-200 ease-in-out pointer-events-none bg-inherit px-1 z-10",!o&&vt[u].label,o&&"text-sm",Vt[l].label,U(),f&&"after:content-['*'] after:text-error-default after:ml-1"),children:i}),(e||h==="password"||p)&&d.jsx("div",{className:k("absolute top-1/2 -translate-y-1/2 flex items-center justify-center z-10",!o&&vt[u].icon,o&&"w-5 h-5 right-3",Vt[l].icon,h==="password"&&!p?"cursor-pointer":"pointer-events-none"),onClick:h==="password"&&!p?D:void 0,onMouseDown:de=>h==="password"&&!p&&de.preventDefault(),children:d.jsx(M.motion.div,{animate:y?{y:[-2,0],rotate:[0,-10,10,-10,10,0]}:{},transition:{duration:.6,ease:"easeInOut"},children:p&&h!=="password"?d.jsx("div",{className:"animate-spin",children:d.jsx(sr,{size:24,color:"#7c86ff",loading:!0})}):h==="password"?O?d.jsx(te.EyeVisibility,{size:24,className:""}):d.jsx(te.EyeVisibilityOff,{size:24,className:""}):e})}),V&&d.jsx("p",{className:"mt-1 text-xs text-error-default",children:m}),z&&d.jsx("p",{className:"mt-1 text-xs text-neutral-medium-default",children:_})]})},as=I.memo(ss),os=({icon:i,iconPosition:e="left",label:t,className:r,containerClassName:n,id:s,type:a="text",...o})=>{const[l,u]=Mt.useField(o),[c,h]=I.useState(!1),[p,m]=I.useState(!1),_=u.touched&&u.error,f=l.value&&l.value.toString().length>0,g=a==="password",x=g?p?"text":"password":a,v=()=>c||f?"-top-3 left-2 scale-90":"top-1/2 -translate-y-1/2 scale-100",b=()=>g?i?e==="left"?"pl-10 pr-10":"pr-16":"pr-10":i?e==="left"?"pl-10":"pr-10":"",w=()=>i&&e==="left"?"left-10":"left-3",y=()=>{m(!p)};return d.jsxs("div",{className:k("relative w-full bg-inherit",n),children:[d.jsxs("div",{className:"relative bg-inherit",children:[d.jsx("input",{id:s||o.name,type:x,name:l.name,value:l.value||"",onChange:l.onChange,onFocus:()=>{h(!0),o.onFocus?.()},onBlur:j=>{h(!1),o.onBlur?.(),l.onBlur(j)},className:k("w-full px-3 h-12 text-left border-1 rounded-lg transition-all duration-200 ease-in-out text-neutral-default-default","bg-transparent focus:outline-none",c?"border-primary-default-default border-2":_?"border-error-default-default":"border-neutral-default-default hover:border-neutral-strong-default",b(),r)}),d.jsx("label",{htmlFor:s||o.name,className:k("absolute transition-all duration-200 ease-in-out pointer-events-none bg-inherit px-1 z-10","text-md",v(),f||c?"text-primary-default-default":_?"text-red-500":"text-neutral-medium-default",w()),children:t}),i&&d.jsx("div",{className:k("absolute top-1/2 -translate-y-1/2 text-neutral-medium-default",e==="left"?"left-3":"right-3"),children:i}),g&&d.jsx("button",{type:"button",onClick:y,className:k("absolute top-1/2 -translate-y-1/2 p-1 text-neutral-medium-default hover:text-neutral-strong-default","transition-colors duration-200 focus:outline-none focus:text-primary-default-default",i&&e==="right"?"right-8":"right-3"),tabIndex:-1,children:p?d.jsx(te.EyeVisibilityOff,{size:24,className:"text-neutral-default-default"}):d.jsx(te.EyeVisibility,{size:24,className:"text-neutral-default-default"})})]}),_&&d.jsx(Mt.ErrorMessage,{name:o.name,component:"span",className:"block text-error-default-default text-xs mt-1"})]})},ls=({sessionsShow:i,handleTokenLogin:e,onClickLogout:t,menuRef:r,onProfileClick:n})=>d.jsx("div",{ref:r,className:"flex bg-neutral-default-default gap-4 absolute bottom-10 left-30 border-1 border-neutral-strong-default h-72 w-60 rounded-md px-2",children:d.jsx(M.AnimatePresence,{mode:"wait",children:d.jsxs(M.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1,transition:{height:{duration:.6,ease:"easeOut"},opacity:{duration:.4,delay:.2}}},exit:{height:0,opacity:0,transition:{height:{duration:.8,delay:.2,ease:"easeIn"},opacity:{duration:.3,delay:.1}}},className:"overflow-hidden flex flex-col justify-between items-center w-full",children:[d.jsxs(M.motion.button,{onClick:n,className:"flex h-12 w-full px-2 gap-1 rounded-md cursor-pointer mt-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",exit:{opacity:0,y:-8,scale:.96,transition:{duration:.5,delay:0,ease:"easeInOut"}},whileHover:{opacity:1,scale:[1,1.02,1],transition:{duration:.2}},whileTap:{scale:.98},children:[d.jsx(te.UserPerson,{size:24,className:"text-neutral-default-default"}),d.jsx("span",{className:"text-neutral-default-default font-semibold text-sm",children:"Ver perfil"})]}),d.jsx(M.motion.div,{className:"flex justify-center items-center w-full mt-4",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.5,ease:"easeInOut"}}}),i&&i?.length>0&&d.jsxs(d.Fragment,{children:[d.jsx(M.motion.div,{className:"mt-4",exit:{opacity:0,y:-5,height:0,transition:{duration:.4,delay:.4,ease:"easeInOut"}},children:d.jsx("span",{className:"text-neutral-medium-default font-semibold text-xs",children:"Cambiar cuenta"})}),d.jsx(M.motion.div,{className:"mt-4 overflow-hidden",exit:{height:0,opacity:0,y:-10,scale:.98,transition:{height:{duration:.5,delay:.2},opacity:{duration:.3,delay:.3},y:{duration:.3,delay:.3},scale:{duration:.3,delay:.3},ease:"easeInOut"}},children:d.jsx(sn,{sessions:i,handleTokenLogin:e})}),d.jsx(M.motion.div,{className:"flex justify-center items-center w-full mt-4",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.15,ease:"easeInOut"}},children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})})]}),d.jsxs(M.motion.button,{onClick:t,className:"flex h-12 w-full gap-1 rounded-md cursor-pointer mt-4 mb-4 px-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",exit:{opacity:0,y:-8,scale:.96,transition:{duration:.5,delay:0,ease:"easeInOut"}},whileHover:{opacity:1,scale:[1,1.02,1],transition:{duration:.2}},whileTap:{scale:.98},children:[d.jsx(te.Logout,{size:24,className:"text-neutral-default-default"}),d.jsx("span",{className:"text-neutral-default-default font-semibold text-sm",children:"Cerrar sesión"})]})]})})});function us({currentPage:i=1,totalPages:e=0,onPageChange:t}){const r=a=>{a>=1&&a<=e&&a!==i&&t?.(a)},s=(()=>{const a=[];if(e>7)if(a.push(1),i<=4){for(let l=2;l<=5;l++)a.push(l);a.push("ellipsis"),a.push(e)}else if(i>=e-3){a.push("ellipsis");for(let l=e-4;l<=e;l++)a.push(l)}else{a.push("ellipsis");for(let l=i-1;l<=i+1;l++)a.push(l);a.push("ellipsis"),a.push(e)}else for(let l=1;l<=e;l++)a.push(l);return a})();return d.jsxs("div",{className:"flex items-center justify-center gap-2 p-4",children:[d.jsx(M.motion.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>r(i-1),disabled:i===1,className:"px-4 py-2 text-primary-medium-default hover:text-primary-default-default disabled:text-gray-600 disabled:cursor-not-allowed transition-colors cursor-pointer",children:"Anterior"}),d.jsx("div",{className:"flex items-center gap-1 select-none",children:s.map((a,o)=>{if(a==="ellipsis")return d.jsx("span",{className:"px-3 py-2 text-neutral-default-default",children:"..."},`ellipsis-${o}`);const l=a,u=l===i;return d.jsxs(M.motion.button,{whileHover:u?{}:{scale:1.1},whileTap:u?{}:{scale:.9},onClick:()=>r(l),className:`relative px-3 py-2 min-w-[40px] text-center transition-colors ${u?"text-primary-default-default":"text-neutral-default-default hover:text-white cursor-pointer "}`,children:[u&&d.jsx(M.motion.div,{layoutId:"activePage",className:"absolute inset-0 border-1 border-primary-default-default rounded-md",initial:!1,transition:{type:"spring",stiffness:500,damping:30}}),d.jsx("span",{className:"relative z-10",children:l})]},l)})}),d.jsx(M.motion.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>r(i+1),disabled:i===e,className:"px-4 py-2 text-primary-medium-default hover:text-primary-default-default disabled:text-gray-600 disabled:cursor-not-allowed transition-colors cursor-pointer",children:"Siguiente"})]})}const cs=({label:i,onOptionClick:e,value:t=[],isFetching:r=!1,options:n,multiple:s=!0,onClear:a,onClose:o,className:l,id:u,emptyMessage:c="No hay opciones disponibles",optionValue:h,optionLabel:p,renderOption:m,renderSelection:_,containerClassName:f,buttonClassName:g,dropdownClassName:x,displayMode:v="compact",onRemoveOption:b})=>{const[w,y]=I.useState(!1),[j,O]=I.useState(!1),C=I.useRef(null),q=t&&t.length>0,E=n.filter(S=>t.includes(h(S))),F=()=>w||q||j?"-top-2 left-2 scale-90":"top-1/2 -translate-y-1/2 scale-100";I.useEffect(()=>{const S=P=>{C.current&&!C.current.contains(P.target)&&y(!1)};return w&&document.addEventListener("mousedown",S),()=>{document.removeEventListener("mousedown",S)}},[w]);const D=()=>{y(!w)},R=S=>{const P=h(S);e(P,S),!s&&o&&o()},H=S=>{S.stopPropagation(),O(!1),S.target.blur(),a?.()},V=(S,P)=>{P?.stopPropagation();const B=h(S);b?.(B)},z=({option:S,onRemove:P})=>d.jsxs("div",{className:"inline-flex items-center gap-1 px-2 py-1 bg-primary-default-default text-white text-xs rounded-md",children:[d.jsx("span",{className:"truncate max-w-20",children:p(S)}),d.jsx("button",{onClick:B=>P(S,B),className:"flex-shrink-0 hover:bg-primary-strong-default rounded-sm p-0.5 transition-colors",type:"button",tabIndex:-1,children:d.jsx(te.Close,{size:12,className:""})})]}),U=({option:S,isSelected:P,onSelect:B,isMultiple:ee})=>d.jsxs("div",{onClick:B,className:k("px-3 py-2 cursor-pointer flex items-center transition-colors",P?"bg-primary-default-default text-white":"hover:bg-neutral-medium-selected text-neutral-default-default"),children:[ee&&d.jsx("input",{type:"checkbox",checked:P,onChange:()=>{},className:"mr-2 pointer-events-none"}),d.jsx("span",{children:p(S)})]}),ie=({selectedOptions:S})=>S.length===0?null:v==="chips"&&s?d.jsx("div",{className:"flex items-center gap-1 flex-wrap py-1",children:S.map(P=>d.jsx(z,{option:P,onRemove:V},h(P)))}):S.length===1?d.jsx("span",{children:p(S[0])}):d.jsxs("span",{children:[S.length," seleccionados"]}),de=m||U,T=_||ie;return d.jsx("div",{className:k("relative",f),ref:C,children:d.jsxs("div",{className:k("relative",l),children:[d.jsxs("button",{id:u,type:"button",onClick:D,onFocus:()=>O(!0),onBlur:()=>O(!1),className:k("w-full px-3 text-left border-1 rounded-lg transition-all duration-200 ease-in-out","flex items-center justify-between bg-transparent","focus:outline-none",v==="chips"&&s&&q?"min-h-12 py-2":"h-12",w||j?"border-primary-default-default border-2":"border-neutral-default-default hover:border-neutral-strong-default",g),children:[d.jsx("label",{htmlFor:u,className:k("absolute left-3 transition-all duration-200 ease-in-out pointer-events-none bg-inherit px-1 z-10","text-sm",F(),q||w||j?"text-primary-default-default":"text-neutral-medium-default"),children:i}),d.jsx("div",{className:"flex-1 min-w-0",children:d.jsx(T,{selectedOptions:E})}),d.jsxs("div",{className:"flex items-center gap-2 ml-2",children:[r&&d.jsx(sr,{size:"small"}),q&&a&&d.jsx("button",{onClick:H,className:"text-neutral-medium-default hover:text-neutral-default-default transition-colors",type:"button",tabIndex:-1,children:d.jsx(te.Close,{size:16,className:""})}),d.jsx(te.ChevronDown,{size:20,className:k("transition-transform text-neutral-default-default",w?"rotate-180":"")})]})]}),w&&d.jsx("div",{className:k("absolute z-50 w-full mt-1 bg-white border border-neutral-default-default rounded-md shadow-lg","max-h-60 overflow-auto",x),children:n.length===0?d.jsx("div",{className:"px-3 py-2 text-neutral-medium-default",children:c}):n.map(S=>{const P=h(S),B=t.includes(P);return d.jsx(de,{option:S,isSelected:B,onSelect:()=>R(S),isMultiple:s},P)})})]})})},ds=I.memo(cs),fs=()=>d.jsxs("div",{className:"container-logo w-[185px] h-[48px] flex items-center justify-center gap-1 bg-gradient-to-br from-[#312C85] to-[#1E1A4D] rounded-md",children:[d.jsx(te.TicketFilled,{size:28,className:"rotate-140 text-primary-medium-pressed icon-logo"}),d.jsx("span",{className:"font-bold text-[28px] text-primary-medium-pressed font-monserra -tracking-wide text-logo",children:"TICKETS"})]}),hs=({children:i})=>d.jsxs("div",{className:"w-full h-full bg-neutral-strong-default",children:[i,d.jsx("main",{className:"w-full h-full overflow-y-auto",children:d.jsx(Ci.Outlet,{})})]}),an=I.createContext(void 0),ar=()=>{const i=I.useContext(an);if(!i)throw new Error("useSidebar must be used within a Sidebar.Root");return i};function Ee(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function on(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,i.__proto__=e}/*!
|
|
34
|
+
100% {transform: translateY(0)}`,"sync");function is(i){var e=i.loading,t=e===void 0?!0:e,r=i.color,n=r===void 0?"#000000":r,s=i.speedMultiplier,a=s===void 0?1:s,o=i.cssOverride,l=o===void 0?{}:o,u=i.size,c=u===void 0?15:u,h=i.margin,p=h===void 0?2:h,m=rs(i,["loading","color","speedMultiplier","cssOverride","size","margin"]),_=Bt({display:"inherit"},l),f=function(g){return{backgroundColor:n,width:te(c),height:te(c),margin:te(p),borderRadius:"100%",display:"inline-block",animation:"".concat(ns," ").concat(.6/a,"s ").concat(g*.07,"s infinite ease-in-out"),animationFillMode:"both"}};return t?Y.createElement("span",Bt({style:_},m),Y.createElement("span",{style:f(1)}),Y.createElement("span",{style:f(2)}),Y.createElement("span",{style:f(3)})):null}const sr=({variant:i="sync",color:e="#3B82F6",loading:t=!0,size:r="medium",className:n="",speedMultiplier:s=1})=>{const o=(()=>{if(typeof r=="number")return r;switch(r){case"small":return 20;case"medium":return 35;case"large":return 50;default:return 35}})(),l={color:e,loading:t,size:o,speedMultiplier:s,"aria-label":"Loading Spinner","data-testid":"spinner"},u=k("inline-block",n),c=()=>{switch(i){case"bounce":return d.jsx(Vi,{...l});case"dot":return d.jsx(Gi,{...l});case"grid":return d.jsx(Ki,{...l,size:o*.4});case"hash":return d.jsx(ts,{...l});case"sync":return d.jsx(is,{...l,size:o*.4});case"clip":default:return d.jsx(Yi,{...l})}};return d.jsx("div",{className:u,children:c()})},Vt={default:{container:"",input:k("border-neutral-default-default text-neutral-default-default","focus:border-primary-default-default focus:border-2","hover:border-neutral-strong-default"),label:k("text-neutral-medium-default","peer-focus:text-primary-default-default"),icon:k("text-neutral-medium-default","peer-focus:text-primary-default-default")},error:{container:"",input:k("border-error-default-default text-neutral-default-default","focus:border-error-default focus:border-2","focus:ring-0 focus:ring-error-default/20"),label:k("text-error-light","peer-focus:text-error-light"),icon:k("text-error-light","peer-focus:text-error-light")},success:{container:"",input:k("border-success-default-default text-neutral-default-default","focus:border-success-default focus:border-2","focus:ring-0 focus:ring-success-default/20"),label:k("text-success","peer-focus:text-success-light"),icon:k("text-success-light","peer-focus:text-success-light")}},vt={small:{container:"text-sm",input:"h-10 px-3 text-sm",label:"text-xs peer-focus:text-xs peer-placeholder-shown:text-sm",icon:"w-4 h-4 right-3"},medium:{container:"text-base",input:"h-12 px-3 text-base",label:"text-sm peer-focus:text-sm peer-placeholder-shown:text-base",icon:"w-5 h-5 right-3"},large:{container:"text-lg",input:"h-14 px-3 text-lg",label:"text-sm peer-focus:text-sm peer-placeholder-shown:text-lg",icon:"w-6 h-6 right-3"}},ss=({label:i,icon:e,onChange:t,value:r="",debounceMs:n=0,name:s,width:a="100%",height:o,variant:l="default",size:u="medium",disabled:c=!1,type:h="text",isFetching:p,errorMessage:m,helperText:_,required:f=!1,onFocus:g,onBlur:x})=>{const[v,b]=I.useState(r),[w]=Oi.useDebounce(v,n),[y,j]=I.useState(!1),[O,C]=I.useState(!1);I.useEffect(()=>{n&&w!==r&&t(w)},[w,n,t,r]),I.useEffect(()=>{b(r)},[r]);const q=()=>{j(!0),g?.()},E=()=>{j(!1),x?.()},D=de=>{const T=de.target.value;b(T),n||t(T)},R=()=>{C(!O)},A={};a&&a!=="100%"&&(A.width=a),o&&(A.height=o);const H=v.length>0,V=l==="error"&&m,z=!V&&_,U=()=>y||H?"-top-2 left-2 scale-90":"top-1/2 -translate-y-1/2 scale-100",ne=()=>o?{height:o}:{};return d.jsxs("div",{className:k("relative",vt[u].container,!a&&"w-full","bg-inherit"),style:A,children:[d.jsx("input",{id:s,name:s,type:h==="password"&&O?"text":h,value:v,className:k("peer w-full border-1 rounded-lg bg-transparent appearance-none transition-all duration-200 ease-in-out","placeholder:text-transparent focus:outline-none px-3",!o&&vt[u].input,o&&`px-3 ${vt[u].input.split(" ").filter(de=>de.startsWith("text-")).join(" ")}`,Vt[l].input,e&&"pr-10",c&&"bg-neutral-weak-default cursor-not-allowed opacity-60",Vt[l].container),style:ne(),onChange:D,onFocus:q,onBlur:E,disabled:c,required:f}),d.jsx("label",{htmlFor:s,className:k("absolute left-3 transition-all duration-200 ease-in-out pointer-events-none bg-inherit px-1 z-10",!o&&vt[u].label,o&&"text-sm",Vt[l].label,U(),f&&"after:content-['*'] after:text-error-default after:ml-1"),children:i}),(e||h==="password"||p)&&d.jsx("div",{className:k("absolute top-1/2 -translate-y-1/2 flex items-center justify-center z-10",!o&&vt[u].icon,o&&"w-5 h-5 right-3",Vt[l].icon,h==="password"&&!p?"cursor-pointer":"pointer-events-none"),onClick:h==="password"&&!p?R:void 0,onMouseDown:de=>h==="password"&&!p&&de.preventDefault(),children:d.jsx(F.motion.div,{animate:y?{y:[-2,0],rotate:[0,-10,10,-10,10,0]}:{},transition:{duration:.6,ease:"easeInOut"},children:p&&h!=="password"?d.jsx("div",{className:"animate-spin",children:d.jsx(sr,{size:24,color:"#7c86ff",loading:!0})}):h==="password"?O?d.jsx(ae.EyeVisibility,{size:24,className:""}):d.jsx(ae.EyeVisibilityOff,{size:24,className:""}):e})}),V&&d.jsx("p",{className:"mt-1 text-xs text-error-default",children:m}),z&&d.jsx("p",{className:"mt-1 text-xs text-neutral-medium-default",children:_})]})},as=I.memo(ss),os=({icon:i,iconPosition:e="left",label:t,className:r,containerClassName:n,id:s,type:a="text",...o})=>{const[l,u]=Mt.useField(o),[c,h]=I.useState(!1),[p,m]=I.useState(!1),_=u.touched&&u.error,f=l.value&&l.value.toString().length>0,g=a==="password",x=g?p?"text":"password":a,v=()=>c||f?"-top-3 left-2 scale-90":"top-1/2 -translate-y-1/2 scale-100",b=()=>g?i?e==="left"?"pl-10 pr-10":"pr-16":"pr-10":i?e==="left"?"pl-10":"pr-10":"",w=()=>i&&e==="left"?"left-10":"left-3",y=()=>{m(!p)};return d.jsxs("div",{className:k("relative w-full bg-inherit",n),children:[d.jsxs("div",{className:"relative bg-inherit",children:[d.jsx("input",{id:s||o.name,type:x,name:l.name,value:l.value||"",onChange:l.onChange,onFocus:()=>{h(!0),o.onFocus?.()},onBlur:j=>{h(!1),o.onBlur?.(),l.onBlur(j)},className:k("w-full px-3 h-12 text-left border-1 rounded-lg transition-all duration-200 ease-in-out text-neutral-default-default","bg-transparent focus:outline-none",c?"border-primary-default-default border-2":_?"border-error-default-default":"border-neutral-default-default hover:border-neutral-strong-default",b(),r)}),d.jsx("label",{htmlFor:s||o.name,className:k("absolute transition-all duration-200 ease-in-out pointer-events-none bg-inherit px-1 z-10","text-md",v(),f||c?"text-primary-default-default":_?"text-red-500":"text-neutral-medium-default",w()),children:t}),i&&d.jsx("div",{className:k("absolute top-1/2 -translate-y-1/2 text-neutral-medium-default",e==="left"?"left-3":"right-3"),children:i}),g&&d.jsx("button",{type:"button",onClick:y,className:k("absolute top-1/2 -translate-y-1/2 p-1 text-neutral-medium-default hover:text-neutral-strong-default","transition-colors duration-200 focus:outline-none focus:text-primary-default-default",i&&e==="right"?"right-8":"right-3"),tabIndex:-1,children:p?d.jsx(ae.EyeVisibilityOff,{size:24,className:"text-neutral-default-default"}):d.jsx(ae.EyeVisibility,{size:24,className:"text-neutral-default-default"})})]}),_&&d.jsx(Mt.ErrorMessage,{name:o.name,component:"span",className:"block text-error-default-default text-xs mt-1"})]})},ls=()=>d.jsxs("div",{className:"container-logo w-[185px] h-[48px] flex items-center justify-center gap-1 bg-gradient-to-br from-[#312C85] to-[#1E1A4D] rounded-md",children:[d.jsx(ae.TicketFilled,{size:28,className:"rotate-140 text-primary-medium-pressed icon-logo"}),d.jsx("span",{className:"font-bold text-[28px] text-primary-medium-pressed font-monserra -tracking-wide text-logo",children:"TICKETS"})]}),us=Object.assign(({menuRef:i,children:e})=>d.jsx("div",{ref:i,className:"flex bg-neutral-default-default absolute bottom-10 left-30 border-1 border-neutral-strong-default h-auto w-60 rounded-md px-2",children:d.jsx(F.AnimatePresence,{mode:"wait",children:d.jsx(F.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1,transition:{height:{duration:.6,ease:"easeOut"},opacity:{duration:.4,delay:.2}}},exit:{height:0,opacity:0,transition:{height:{duration:.8,delay:.2,ease:"easeIn"},opacity:{duration:.3,delay:.1}}},className:"overflow-hidden flex flex-col justify-between items-center w-full",children:e})})}),{Divider:()=>d.jsx(F.motion.div,{className:"flex justify-center items-center w-full ",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.15,ease:"easeInOut"}},children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),Items:({onClick:i,children:e})=>d.jsx(F.motion.button,{onClick:i,className:"flex py-2 w-full px-2 gap-1 rounded-md cursor-pointer mt-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",exit:{opacity:0,y:-8,scale:.96,transition:{duration:.5,delay:0,ease:"easeInOut"}},whileHover:{opacity:1,scale:[1,1.02,1],transition:{duration:.2}},whileTap:{scale:.98},children:e})});function cs({currentPage:i=1,totalPages:e=0,onPageChange:t}){const r=a=>{a>=1&&a<=e&&a!==i&&t?.(a)},s=(()=>{const a=[];if(e>7)if(a.push(1),i<=4){for(let l=2;l<=5;l++)a.push(l);a.push("ellipsis"),a.push(e)}else if(i>=e-3){a.push("ellipsis");for(let l=e-4;l<=e;l++)a.push(l)}else{a.push("ellipsis");for(let l=i-1;l<=i+1;l++)a.push(l);a.push("ellipsis"),a.push(e)}else for(let l=1;l<=e;l++)a.push(l);return a})();return d.jsxs("div",{className:"flex items-center justify-center gap-2 p-4",children:[d.jsx(F.motion.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>r(i-1),disabled:i===1,className:"px-4 py-2 text-primary-medium-default hover:text-primary-default-default disabled:text-gray-600 disabled:cursor-not-allowed transition-colors cursor-pointer",children:"Anterior"}),d.jsx("div",{className:"flex items-center gap-1 select-none",children:s.map((a,o)=>{if(a==="ellipsis")return d.jsx("span",{className:"px-3 py-2 text-neutral-default-default",children:"..."},`ellipsis-${o}`);const l=a,u=l===i;return d.jsxs(F.motion.button,{whileHover:u?{}:{scale:1.1},whileTap:u?{}:{scale:.9},onClick:()=>r(l),className:`relative px-3 py-2 min-w-[40px] text-center transition-colors ${u?"text-primary-default-default":"text-neutral-default-default hover:text-white cursor-pointer "}`,children:[u&&d.jsx(F.motion.div,{layoutId:"activePage",className:"absolute inset-0 border-1 border-primary-default-default rounded-md",initial:!1,transition:{type:"spring",stiffness:500,damping:30}}),d.jsx("span",{className:"relative z-10",children:l})]},l)})}),d.jsx(F.motion.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>r(i+1),disabled:i===e,className:"px-4 py-2 text-primary-medium-default hover:text-primary-default-default disabled:text-gray-600 disabled:cursor-not-allowed transition-colors cursor-pointer",children:"Siguiente"})]})}const ds=({label:i,onOptionClick:e,value:t=[],isFetching:r=!1,options:n,multiple:s=!0,onClear:a,onClose:o,className:l,id:u,emptyMessage:c="No hay opciones disponibles",optionValue:h,optionLabel:p,renderOption:m,renderSelection:_,containerClassName:f,buttonClassName:g,dropdownClassName:x,displayMode:v="compact",onRemoveOption:b})=>{const[w,y]=I.useState(!1),[j,O]=I.useState(!1),C=I.useRef(null),q=t&&t.length>0,E=n.filter(S=>t.includes(h(S))),D=()=>w||q||j?"-top-2 left-2 scale-90":"top-1/2 -translate-y-1/2 scale-100";I.useEffect(()=>{const S=P=>{C.current&&!C.current.contains(P.target)&&y(!1)};return w&&document.addEventListener("mousedown",S),()=>{document.removeEventListener("mousedown",S)}},[w]);const R=()=>{y(!w)},A=S=>{const P=h(S);e(P,S),!s&&o&&o()},H=S=>{S.stopPropagation(),O(!1),S.target.blur(),a?.()},V=(S,P)=>{P?.stopPropagation();const B=h(S);b?.(B)},z=({option:S,onRemove:P})=>d.jsxs("div",{className:"inline-flex items-center gap-1 px-2 py-1 bg-primary-default-default text-white text-xs rounded-md",children:[d.jsx("span",{className:"truncate max-w-20",children:p(S)}),d.jsx("button",{onClick:B=>P(S,B),className:"flex-shrink-0 hover:bg-primary-strong-default rounded-sm p-0.5 transition-colors",type:"button",tabIndex:-1,children:d.jsx(ae.Close,{size:12,className:""})})]}),U=({option:S,isSelected:P,onSelect:B,isMultiple:ee})=>d.jsxs("div",{onClick:B,className:k("px-3 py-2 cursor-pointer flex items-center transition-colors",P?"bg-primary-default-default text-white":"hover:bg-neutral-medium-selected text-neutral-default-default"),children:[ee&&d.jsx("input",{type:"checkbox",checked:P,onChange:()=>{},className:"mr-2 pointer-events-none"}),d.jsx("span",{children:p(S)})]}),ne=({selectedOptions:S})=>S.length===0?null:v==="chips"&&s?d.jsx("div",{className:"flex items-center gap-1 flex-wrap py-1",children:S.map(P=>d.jsx(z,{option:P,onRemove:V},h(P)))}):S.length===1?d.jsx("span",{children:p(S[0])}):d.jsxs("span",{children:[S.length," seleccionados"]}),de=m||U,T=_||ne;return d.jsx("div",{className:k("relative",f),ref:C,children:d.jsxs("div",{className:k("relative",l),children:[d.jsxs("button",{id:u,type:"button",onClick:R,onFocus:()=>O(!0),onBlur:()=>O(!1),className:k("w-full px-3 text-left border-1 rounded-lg transition-all duration-200 ease-in-out","flex items-center justify-between bg-transparent","focus:outline-none",v==="chips"&&s&&q?"min-h-12 py-2":"h-12",w||j?"border-primary-default-default border-2":"border-neutral-default-default hover:border-neutral-strong-default",g),children:[d.jsx("label",{htmlFor:u,className:k("absolute left-3 transition-all duration-200 ease-in-out pointer-events-none bg-inherit px-1 z-10","text-sm",D(),q||w||j?"text-primary-default-default":"text-neutral-medium-default"),children:i}),d.jsx("div",{className:"flex-1 min-w-0",children:d.jsx(T,{selectedOptions:E})}),d.jsxs("div",{className:"flex items-center gap-2 ml-2",children:[r&&d.jsx(sr,{size:"small"}),q&&a&&d.jsx("button",{onClick:H,className:"text-neutral-medium-default hover:text-neutral-default-default transition-colors",type:"button",tabIndex:-1,children:d.jsx(ae.Close,{size:16,className:""})}),d.jsx(ae.ChevronDown,{size:20,className:k("transition-transform text-neutral-default-default",w?"rotate-180":"")})]})]}),w&&d.jsx("div",{className:k("absolute z-50 w-full mt-1 bg-white border border-neutral-default-default rounded-md shadow-lg","max-h-60 overflow-auto",x),children:n.length===0?d.jsx("div",{className:"px-3 py-2 text-neutral-medium-default",children:c}):n.map(S=>{const P=h(S),B=t.includes(P);return d.jsx(de,{option:S,isSelected:B,onSelect:()=>A(S),isMultiple:s},P)})})]})})},fs=I.memo(ds),hs=({children:i})=>d.jsxs("div",{className:"w-full h-full bg-neutral-strong-default",children:[i,d.jsx("main",{className:"w-full h-full overflow-y-auto",children:d.jsx(Ci.Outlet,{})})]}),an=I.createContext(void 0),ar=()=>{const i=I.useContext(an);if(!i)throw new Error("useSidebar must be used within a Sidebar.Root");return i};function Ee(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function on(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,i.__proto__=e}/*!
|
|
35
35
|
* GSAP 3.13.0
|
|
36
36
|
* https://gsap.com
|
|
37
37
|
*
|
|
38
38
|
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
|
39
39
|
* Subject to the terms at https://gsap.com/standard-license
|
|
40
40
|
* @author: Jack Doyle, jack@greensock.com
|
|
41
|
-
*/var ge={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},tt={duration:.5,overwrite:!1,delay:0},or,ae,$,Te=1e8,Z=1/Te,lr=Math.PI*2,ps=lr/4,ms=0,ln=Math.sqrt,_s=Math.cos,gs=Math.sin,ne=function(e){return typeof e=="string"},G=function(e){return typeof e=="function"},Me=function(e){return typeof e=="number"},ur=function(e){return typeof e>"u"},Ce=function(e){return typeof e=="object"},fe=function(e){return e!==!1},cr=function(){return typeof window<"u"},Ht=function(e){return G(e)||ne(e)},un=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},oe=Array.isArray,dr=/(?:-?\.?\d|\.)+/gi,cn=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,rt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,fr=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,dn=/[+-]=-?[.\d]+/,fn=/[^,'"\[\]\s]+/gi,vs=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,W,Se,hr,pr,ve={},Ut={},hn,pn=function(e){return(Ut=it(e,ve))&&me},mr=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},xt=function(e,t){return!t&&console.warn(e)},mn=function(e,t){return e&&(ve[e]=t)&&Ut&&(Ut[e]=t)||ve},yt=function(){return 0},xs={suppressEvents:!0,isStart:!0,kill:!1},Yt={suppressEvents:!0,kill:!1},ys={suppressEvents:!0},_r={},Fe=[],gr={},_n,xe={},vr={},gn=30,$t=[],xr="",yr=function(e){var t=e[0],r,n;if(Ce(t)||G(t)||(e=[e]),!(r=(t._gsap||{}).harness)){for(n=$t.length;n--&&!$t[n].targetTest(t););r=$t[n]}for(n=e.length;n--;)e[n]&&(e[n]._gsap||(e[n]._gsap=new Yn(e[n],r)))||e.splice(n,1);return e},Ue=function(e){return e._gsap||yr(je(e))[0]._gsap},vn=function(e,t,r){return(r=e[t])&&G(r)?e[t]():ur(r)&&e.getAttribute&&e.getAttribute(t)||r},he=function(e,t){return(e=e.split(",")).forEach(t)||e},J=function(e){return Math.round(e*1e5)/1e5||0},Q=function(e){return Math.round(e*1e7)/1e7||0},nt=function(e,t){var r=t.charAt(0),n=parseFloat(t.substr(2));return e=parseFloat(e),r==="+"?e+n:r==="-"?e-n:r==="*"?e*n:e/n},bs=function(e,t){for(var r=t.length,n=0;e.indexOf(t[n])<0&&++n<r;);return n<r},Wt=function(){var e=Fe.length,t=Fe.slice(0),r,n;for(gr={},Fe.length=0,r=0;r<e;r++)n=t[r],n&&n._lazy&&(n.render(n._lazy[0],n._lazy[1],!0)._lazy=0)},br=function(e){return!!(e._initted||e._startAt||e.add)},xn=function(e,t,r,n){Fe.length&&!ae&&Wt(),e.render(t,r,!!(ae&&t<0&&br(e))),Fe.length&&!ae&&Wt()},yn=function(e){var t=parseFloat(e);return(t||t===0)&&(e+"").match(fn).length<2?t:ne(e)?e.trim():e},bn=function(e){return e},ye=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},ws=function(e){return function(t,r){for(var n in r)n in t||n==="duration"&&e||n==="ease"||(t[n]=r[n])}},it=function(e,t){for(var r in t)e[r]=t[r];return e},wn=function i(e,t){for(var r in t)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(e[r]=Ce(t[r])?i(e[r]||(e[r]={}),t[r]):t[r]);return e},Xt=function(e,t){var r={},n;for(n in e)n in t||(r[n]=e[n]);return r},bt=function(e){var t=e.parent||W,r=e.keyframes?ws(oe(e.keyframes)):ye;if(fe(e.inherit))for(;t;)r(e,t.vars.defaults),t=t.parent||t._dp;return e},Ts=function(e,t){for(var r=e.length,n=r===t.length;n&&r--&&e[r]===t[r];);return r<0},Tn=function(e,t,r,n,s){var a=e[n],o;if(s)for(o=t[s];a&&a[s]>o;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[r],e[r]=t),t._next?t._next._prev=t:e[n]=t,t._prev=a,t.parent=t._dp=e,t},Gt=function(e,t,r,n){r===void 0&&(r="_first"),n===void 0&&(n="_last");var s=t._prev,a=t._next;s?s._next=a:e[r]===t&&(e[r]=a),a?a._prev=s:e[n]===t&&(e[n]=s),t._next=t._prev=t.parent=null},Ie=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Ye=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},qs=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},wr=function(e,t,r,n){return e._startAt&&(ae?e._startAt.revert(Yt):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,n))},js=function i(e){return!e||e._ts&&i(e.parent)},qn=function(e){return e._repeat?st(e._tTime,e=e.duration()+e._rDelay)*e:0},st=function(e,t){var r=Math.floor(e=Q(e/t));return e&&r===e?r-1:r},Jt=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Qt=function(e){return e._end=Q(e._start+(e._tDur/Math.abs(e._ts||e._rts||Z)||0))},Kt=function(e,t){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=Q(r._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Qt(e),r._dirty||Ye(r,e)),e},jn=function(e,t){var r;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(r=Jt(e.rawTime(),t),(!t._dur||Tt(0,t.totalDuration(),r)-t._tTime>Z)&&t.render(r,!0)),Ye(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-Z}},ke=function(e,t,r,n){return t.parent&&Ie(t),t._start=Q((Me(r)?r:r||e!==W?qe(e,r,t):e._time)+t._delay),t._end=Q(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Tn(e,t,"_first","_last",e._sort?"_start":0),Tr(t)||(e._recent=t),n||jn(e,t),e._ts<0&&Kt(e,e._tTime),e},On=function(e,t){return(ve.ScrollTrigger||mr("scrollTrigger",t))&&ve.ScrollTrigger.create(t,e)},Cn=function(e,t,r,n,s){if(Er(e,t,s),!e._initted)return 1;if(!r&&e._pt&&!ae&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&_n!==we.frame)return Fe.push(e),e._lazy=[s,n],1},Os=function i(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||i(t))},Tr=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},Cs=function(e,t,r,n){var s=e.ratio,a=t<0||!t&&(!e._start&&Os(e)&&!(!e._initted&&Tr(e))||(e._ts<0||e._dp._ts<0)&&!Tr(e))?0:1,o=e._rDelay,l=0,u,c,h;if(o&&e._repeat&&(l=Tt(0,e._tDur,t),c=st(l,o),e._yoyo&&c&1&&(a=1-a),c!==st(e._tTime,o)&&(s=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==s||ae||n||e._zTime===Z||!t&&e._zTime){if(!e._initted&&Cn(e,t,n,r,l))return;for(h=e._zTime,e._zTime=t||(r?Z:0),r||(r=t&&!h),e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=l,u=e._pt;u;)u.r(a,u.d),u=u._next;t<0&&wr(e,t,r,!0),e._onUpdate&&!r&&be(e,"onUpdate"),l&&e._repeat&&!r&&e.parent&&be(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&Ie(e,1),!r&&!ae&&(be(e,a?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},Ss=function(e,t,r){var n;if(r>t)for(n=e._first;n&&n._start<=r;){if(n.data==="isPause"&&n._start>t)return n;n=n._next}else for(n=e._last;n&&n._start>=r;){if(n.data==="isPause"&&n._start<t)return n;n=n._prev}},at=function(e,t,r,n){var s=e._repeat,a=Q(t)||0,o=e._tTime/e._tDur;return o&&!n&&(e._time*=a/e._dur),e._dur=a,e._tDur=s?s<0?1e10:Q(a*(s+1)+e._rDelay*s):a,o>0&&!n&&Kt(e,e._tTime=e._tDur*o),e.parent&&Qt(e),r||Ye(e.parent,e),e},Sn=function(e){return e instanceof ce?Ye(e):at(e,e._dur)},ks={_start:0,endTime:yt,totalDuration:yt},qe=function i(e,t,r){var n=e.labels,s=e._recent||ks,a=e.duration()>=Te?s.endTime(!1):e._dur,o,l,u;return ne(t)&&(isNaN(t)||t in n)?(l=t.charAt(0),u=t.substr(-1)==="%",o=t.indexOf("="),l==="<"||l===">"?(o>=0&&(t=t.replace(/=/,"")),(l==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(t.substr(1))||0)*(u?(o<0?s:r).totalDuration()/100:1)):o<0?(t in n||(n[t]=a),n[t]):(l=parseFloat(t.charAt(o-1)+t.substr(o+1)),u&&r&&(l=l/100*(oe(r)?r[0]:r).totalDuration()),o>1?i(e,t.substr(0,o-1),r)+l:a+l)):t==null?a:+t},wt=function(e,t,r){var n=Me(t[1]),s=(n?2:1)+(e<2?0:1),a=t[s],o,l;if(n&&(a.duration=t[1]),a.parent=r,e){for(o=a,l=r;l&&!("immediateRender"in o);)o=l.vars.defaults||{},l=fe(l.vars.inherit)&&l.parent;a.immediateRender=fe(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[s-1]}return new K(t[0],a,t[s+1])},Ze=function(e,t){return e||e===0?t(e):t},Tt=function(e,t,r){return r<e?e:r>t?t:r},le=function(e,t){return!ne(e)||!(t=vs.exec(e))?"":t[1]},Ps=function(e,t,r){return Ze(r,function(n){return Tt(e,t,n)})},qr=[].slice,kn=function(e,t){return e&&Ce(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&Ce(e[0]))&&!e.nodeType&&e!==Se},Ns=function(e,t,r){return r===void 0&&(r=[]),e.forEach(function(n){var s;return ne(n)&&!t||kn(n,1)?(s=r).push.apply(s,je(n)):r.push(n)})||r},je=function(e,t,r){return $&&!t&&$.selector?$.selector(e):ne(e)&&!r&&(hr||!lt())?qr.call((t||pr).querySelectorAll(e),0):oe(e)?Ns(e,r):kn(e)?qr.call(e,0):e?[e]:[]},jr=function(e){return e=je(e)[0]||xt("Invalid scope")||{},function(t){var r=e.current||e.nativeElement||e;return je(t,r.querySelectorAll?r:r===e?xt("Invalid scope")||pr.createElement("div"):e)}},Pn=function(e){return e.sort(function(){return .5-Math.random()})},Nn=function(e){if(G(e))return e;var t=Ce(e)?e:{each:e},r=$e(t.ease),n=t.from||0,s=parseFloat(t.base)||0,a={},o=n>0&&n<1,l=isNaN(n)||o,u=t.axis,c=n,h=n;return ne(n)?c=h={center:.5,edges:.5,end:1}[n]||0:!o&&l&&(c=n[0],h=n[1]),function(p,m,_){var f=(_||t).length,g=a[f],x,v,b,w,y,j,O,C,q;if(!g){if(q=t.grid==="auto"?0:(t.grid||[1,Te])[1],!q){for(O=-Te;O<(O=_[q++].getBoundingClientRect().left)&&q<f;);q<f&&q--}for(g=a[f]=[],x=l?Math.min(q,f)*c-.5:n%q,v=q===Te?0:l?f*h/q-.5:n/q|0,O=0,C=Te,j=0;j<f;j++)b=j%q-x,w=v-(j/q|0),g[j]=y=u?Math.abs(u==="y"?w:b):ln(b*b+w*w),y>O&&(O=y),y<C&&(C=y);n==="random"&&Pn(g),g.max=O-C,g.min=C,g.v=f=(parseFloat(t.amount)||parseFloat(t.each)*(q>f?f-1:u?u==="y"?f/q:q:Math.max(q,f/q))||0)*(n==="edges"?-1:1),g.b=f<0?s-f:s,g.u=le(t.amount||t.each)||0,r=r&&f<0?Vn(r):r}return f=(g[p]-g.min)/g.max||0,Q(g.b+(r?r(f):f)*g.v)+g.u}},Or=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var n=Q(Math.round(parseFloat(r)/e)*e*t);return(n-n%1)/t+(Me(r)?0:le(r))}},En=function(e,t){var r=oe(e),n,s;return!r&&Ce(e)&&(n=r=e.radius||Te,e.values?(e=je(e.values),(s=!Me(e[0]))&&(n*=n)):e=Or(e.increment)),Ze(t,r?G(e)?function(a){return s=e(a),Math.abs(s-a)<=n?s:a}:function(a){for(var o=parseFloat(s?a.x:a),l=parseFloat(s?a.y:0),u=Te,c=0,h=e.length,p,m;h--;)s?(p=e[h].x-o,m=e[h].y-l,p=p*p+m*m):p=Math.abs(e[h]-o),p<u&&(u=p,c=h);return c=!n||u<=n?e[c]:a,s||c===a||Me(a)?c:c+le(a)}:Or(e))},Mn=function(e,t,r,n){return Ze(oe(e)?!t:r===!0?!!(r=0):!n,function(){return oe(e)?e[~~(Math.random()*e.length)]:(r=r||1e-5)&&(n=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(t-e+r*.99))/r)*r*n)/n})},Es=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduce(function(s,a){return a(s)},n)}},Ms=function(e,t){return function(r){return e(parseFloat(r))+(t||le(r))}},As=function(e,t,r){return Rn(e,t,0,1,r)},An=function(e,t,r){return Ze(r,function(n){return e[~~t(n)]})},Rs=function i(e,t,r){var n=t-e;return oe(e)?An(e,i(0,e.length),t):Ze(r,function(s){return(n+(s-e)%n)%n+e})},Ds=function i(e,t,r){var n=t-e,s=n*2;return oe(e)?An(e,i(0,e.length-1),t):Ze(r,function(a){return a=(s+(a-e)%s)%s||0,e+(a>n?s-a:a)})},qt=function(e){for(var t=0,r="",n,s,a,o;~(n=e.indexOf("random(",t));)a=e.indexOf(")",n),o=e.charAt(n+7)==="[",s=e.substr(n+7,a-n-7).match(o?fn:dr),r+=e.substr(t,n-t)+Mn(o?s:+s[0],o?0:+s[1],+s[2]||1e-5),t=a+1;return r+e.substr(t,e.length-t)},Rn=function(e,t,r,n,s){var a=t-e,o=n-r;return Ze(s,function(l){return r+((l-e)/a*o||0)})},Fs=function i(e,t,r,n){var s=isNaN(e+t)?0:function(m){return(1-m)*e+m*t};if(!s){var a=ne(e),o={},l,u,c,h,p;if(r===!0&&(n=1)&&(r=null),a)e={p:e},t={p:t};else if(oe(e)&&!oe(t)){for(c=[],h=e.length,p=h-2,u=1;u<h;u++)c.push(i(e[u-1],e[u]));h--,s=function(_){_*=h;var f=Math.min(p,~~_);return c[f](_-f)},r=t}else n||(e=it(oe(e)?[]:{},e));if(!c){for(l in t)Pr.call(o,e,l,"get",t[l]);s=function(_){return Rr(_,o)||(a?e.p:e)}}}return Ze(r,s)},Dn=function(e,t,r){var n=e.labels,s=Te,a,o,l;for(a in n)o=n[a]-t,o<0==!!r&&o&&s>(o=Math.abs(o))&&(l=a,s=o);return l},be=function(e,t,r){var n=e.vars,s=n[t],a=$,o=e._ctx,l,u,c;if(s)return l=n[t+"Params"],u=n.callbackScope||e,r&&Fe.length&&Wt(),o&&($=o),c=l?s.apply(u,l):s.call(u),$=a,c},jt=function(e){return Ie(e),e.scrollTrigger&&e.scrollTrigger.kill(!!ae),e.progress()<1&&be(e,"onInterrupt"),e},ot,Fn=[],In=function(e){if(e)if(e=!e.name&&e.default||e,cr()||e.headless){var t=e.name,r=G(e),n=t&&!r&&e.init?function(){this._props=[]}:e,s={init:yt,render:Rr,add:Pr,kill:Ks,modifier:Qs,rawVars:0},a={targetTest:0,get:0,getSetter:Ar,aliases:{},register:0};if(lt(),e!==n){if(xe[t])return;ye(n,ye(Xt(e,s),a)),it(n.prototype,it(s,Xt(e,a))),xe[n.prop=t]=n,e.targetTest&&($t.push(n),_r[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}mn(t,n),e.register&&e.register(me,n,pe)}else Fn.push(e)},L=255,Ot={aqua:[0,L,L],lime:[0,L,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,L],navy:[0,0,128],white:[L,L,L],olive:[128,128,0],yellow:[L,L,0],orange:[L,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[L,0,0],pink:[L,192,203],cyan:[0,L,L],transparent:[L,L,L,0]},Cr=function(e,t,r){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(r-t)*e*6:e<.5?r:e*3<2?t+(r-t)*(2/3-e)*6:t)*L+.5|0},Zn=function(e,t,r){var n=e?Me(e)?[e>>16,e>>8&L,e&L]:0:Ot.black,s,a,o,l,u,c,h,p,m,_;if(!n){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Ot[e])n=Ot[e];else if(e.charAt(0)==="#"){if(e.length<6&&(s=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e="#"+s+s+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return n=parseInt(e.substr(1,6),16),[n>>16,n>>8&L,n&L,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),n=[e>>16,e>>8&L,e&L]}else if(e.substr(0,3)==="hsl"){if(n=_=e.match(dr),!t)l=+n[0]%360/360,u=+n[1]/100,c=+n[2]/100,a=c<=.5?c*(u+1):c+u-c*u,s=c*2-a,n.length>3&&(n[3]*=1),n[0]=Cr(l+1/3,s,a),n[1]=Cr(l,s,a),n[2]=Cr(l-1/3,s,a);else if(~e.indexOf("="))return n=e.match(cn),r&&n.length<4&&(n[3]=1),n}else n=e.match(dr)||Ot.transparent;n=n.map(Number)}return t&&!_&&(s=n[0]/L,a=n[1]/L,o=n[2]/L,h=Math.max(s,a,o),p=Math.min(s,a,o),c=(h+p)/2,h===p?l=u=0:(m=h-p,u=c>.5?m/(2-h-p):m/(h+p),l=h===s?(a-o)/m+(a<o?6:0):h===a?(o-s)/m+2:(s-a)/m+4,l*=60),n[0]=~~(l+.5),n[1]=~~(u*100+.5),n[2]=~~(c*100+.5)),r&&n.length<4&&(n[3]=1),n},Ln=function(e){var t=[],r=[],n=-1;return e.split(Le).forEach(function(s){var a=s.match(rt)||[];t.push.apply(t,a),r.push(n+=a.length+1)}),t.c=r,t},zn=function(e,t,r){var n="",s=(e+n).match(Le),a=t?"hsla(":"rgba(",o=0,l,u,c,h;if(!s)return e;if(s=s.map(function(p){return(p=Zn(p,t,1))&&a+(t?p[0]+","+p[1]+"%,"+p[2]+"%,"+p[3]:p.join(","))+")"}),r&&(c=Ln(e),l=r.c,l.join(n)!==c.c.join(n)))for(u=e.replace(Le,"1").split(rt),h=u.length-1;o<h;o++)n+=u[o]+(~l.indexOf(o)?s.shift()||a+"0,0,0,0)":(c.length?c:s.length?s:r).shift());if(!u)for(u=e.split(Le),h=u.length-1;o<h;o++)n+=u[o]+s[o];return n+u[h]},Le=(function(){var i="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in Ot)i+="|"+e+"\\b";return new RegExp(i+")","gi")})(),Is=/hsl[a]?\(/,Bn=function(e){var t=e.join(" "),r;if(Le.lastIndex=0,Le.test(t))return r=Is.test(t),e[1]=zn(e[1],r),e[0]=zn(e[0],r,Ln(e[1])),!0},Ct,we=(function(){var i=Date.now,e=500,t=33,r=i(),n=r,s=1e3/240,a=s,o=[],l,u,c,h,p,m,_=function f(g){var x=i()-n,v=g===!0,b,w,y,j;if((x>e||x<0)&&(r+=x-t),n+=x,y=n-r,b=y-a,(b>0||v)&&(j=++h.frame,p=y-h.time*1e3,h.time=y=y/1e3,a+=b+(b>=s?4:s-b),w=1),v||(l=u(f)),w)for(m=0;m<o.length;m++)o[m](y,p,j,g)};return h={time:0,frame:0,tick:function(){_(!0)},deltaRatio:function(g){return p/(1e3/(g||60))},wake:function(){hn&&(!hr&&cr()&&(Se=hr=window,pr=Se.document||{},ve.gsap=me,(Se.gsapVersions||(Se.gsapVersions=[])).push(me.version),pn(Ut||Se.GreenSockGlobals||!Se.gsap&&Se||{}),Fn.forEach(In)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&h.sleep(),u=c||function(g){return setTimeout(g,a-h.time*1e3+1|0)},Ct=1,_(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(l),Ct=0,u=yt},lagSmoothing:function(g,x){e=g||1/0,t=Math.min(x||33,e)},fps:function(g){s=1e3/(g||240),a=h.time*1e3+s},add:function(g,x,v){var b=x?function(w,y,j,O){g(w,y,j,O),h.remove(b)}:g;return h.remove(g),o[v?"unshift":"push"](b),lt(),b},remove:function(g,x){~(x=o.indexOf(g))&&o.splice(x,1)&&m>=x&&m--},_listeners:o},h})(),lt=function(){return!Ct&&we.wake()},A={},Zs=/^[\d.\-M][\d.\-,\s]/,Ls=/["']/g,zs=function(e){for(var t={},r=e.substr(1,e.length-3).split(":"),n=r[0],s=1,a=r.length,o,l,u;s<a;s++)l=r[s],o=s!==a-1?l.lastIndexOf(","):l.length,u=l.substr(0,o),t[n]=isNaN(u)?u.replace(Ls,"").trim():+u,n=l.substr(o+1).trim();return t},Bs=function(e){var t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.indexOf("(",t);return e.substring(t,~n&&n<r?e.indexOf(")",r+1):r)},Vs=function(e){var t=(e+"").split("("),r=A[t[0]];return r&&t.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[zs(t[1])]:Bs(e).split(",").map(yn)):A._CE&&Zs.test(e)?A._CE("",e):r},Vn=function(e){return function(t){return 1-e(1-t)}},Hn=function i(e,t){for(var r=e._first,n;r;)r instanceof ce?i(r,t):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==t&&(r.timeline?i(r.timeline,t):(n=r._ease,r._ease=r._yEase,r._yEase=n,r._yoyo=t)),r=r._next},$e=function(e,t){return e&&(G(e)?e:A[e]||Vs(e))||t},We=function(e,t,r,n){r===void 0&&(r=function(l){return 1-t(1-l)}),n===void 0&&(n=function(l){return l<.5?t(l*2)/2:1-t((1-l)*2)/2});var s={easeIn:t,easeOut:r,easeInOut:n},a;return he(e,function(o){A[o]=ve[o]=s,A[a=o.toLowerCase()]=r;for(var l in s)A[a+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=A[o+"."+l]=s[l]}),s},Un=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},Sr=function i(e,t,r){var n=t>=1?t:1,s=(r||(e?.3:.45))/(t<1?t:1),a=s/lr*(Math.asin(1/n)||0),o=function(c){return c===1?1:n*Math.pow(2,-10*c)*gs((c-a)*s)+1},l=e==="out"?o:e==="in"?function(u){return 1-o(1-u)}:Un(o);return s=lr/s,l.config=function(u,c){return i(e,u,c)},l},kr=function i(e,t){t===void 0&&(t=1.70158);var r=function(a){return a?--a*a*((t+1)*a+t)+1:0},n=e==="out"?r:e==="in"?function(s){return 1-r(1-s)}:Un(r);return n.config=function(s){return i(e,s)},n};he("Linear,Quad,Cubic,Quart,Quint,Strong",function(i,e){var t=e<5?e+1:e;We(i+",Power"+(t-1),e?function(r){return Math.pow(r,t)}:function(r){return r},function(r){return 1-Math.pow(1-r,t)},function(r){return r<.5?Math.pow(r*2,t)/2:1-Math.pow((1-r)*2,t)/2})}),A.Linear.easeNone=A.none=A.Linear.easeIn,We("Elastic",Sr("in"),Sr("out"),Sr()),(function(i,e){var t=1/e,r=2*t,n=2.5*t,s=function(o){return o<t?i*o*o:o<r?i*Math.pow(o-1.5/e,2)+.75:o<n?i*(o-=2.25/e)*o+.9375:i*Math.pow(o-2.625/e,2)+.984375};We("Bounce",function(a){return 1-s(1-a)},s)})(7.5625,2.75),We("Expo",function(i){return Math.pow(2,10*(i-1))*i+i*i*i*i*i*i*(1-i)}),We("Circ",function(i){return-(ln(1-i*i)-1)}),We("Sine",function(i){return i===1?1:-_s(i*ps)+1}),We("Back",kr("in"),kr("out"),kr()),A.SteppedEase=A.steps=ve.SteppedEase={config:function(e,t){e===void 0&&(e=1);var r=1/e,n=e+(t?0:1),s=t?1:0,a=1-Z;return function(o){return((n*Tt(0,a,o)|0)+s)*r}}},tt.ease=A["quad.out"],he("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(i){return xr+=i+","+i+"Params,"});var Yn=function(e,t){this.id=ms++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:vn,this.set=t?t.getSetter:Ar},St=(function(){function i(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,at(this,+t.duration,1,1),this.data=t.data,$&&(this._ctx=$,$.data.push(this)),Ct||we.wake()}var e=i.prototype;return e.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},e.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,at(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,n){if(lt(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(Kt(this,r),!s._dp||s.parent||jn(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&ke(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!n||this._initted&&Math.abs(this._zTime)===Z||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),xn(this,r,n)),this},e.time=function(r,n){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+qn(this))%(this._dur+this._rDelay)||(r?this._dur:0),n):this._time},e.totalProgress=function(r,n){return arguments.length?this.totalTime(this.totalDuration()*r,n):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(r,n){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+qn(this),n):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,n){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*s,n):this._repeat?st(this._tTime,s)+1:1},e.timeScale=function(r,n){if(!arguments.length)return this._rts===-Z?0:this._rts;if(this._rts===r)return this;var s=this.parent&&this._ts?Jt(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-Z?0:this._rts,this.totalTime(Tt(-Math.abs(this._delay),this.totalDuration(),s),n!==!1),Qt(this),qs(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(lt(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Z&&(this._tTime-=Z)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=r;var n=this.parent||this._dp;return n&&(n._sort||!this.parent)&&ke(n,this,r-this._delay),this}return this._start},e.endTime=function(r){return this._start+(fe(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var n=this.parent||this._dp;return n?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Jt(n.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=ys);var n=ae;return ae=r,br(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),ae=n,this},e.globalTime=function(r){for(var n=this,s=arguments.length?r:n.rawTime();n;)s=n._start+s/(Math.abs(n._ts)||1),n=n._dp;return!this.parent&&this._sat?this._sat.globalTime(r):s},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,Sn(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var n=this._time;return this._rDelay=r,Sn(this),n?this.time(n):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,n){return this.totalTime(qe(this,r),fe(n))},e.restart=function(r,n){return this.play().totalTime(r?-this._delay:0,fe(n)),this._dur||(this._zTime=-Z),this},e.play=function(r,n){return r!=null&&this.seek(r,n),this.reversed(!1).paused(!1)},e.reverse=function(r,n){return r!=null&&this.seek(r||this.totalDuration(),n),this.reversed(!0).paused(!1)},e.pause=function(r,n){return r!=null&&this.seek(r,n),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-Z:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Z,this},e.isActive=function(){var r=this.parent||this._dp,n=this._start,s;return!!(!r||this._ts&&this._initted&&r.isActive()&&(s=r.rawTime(!0))>=n&&s<this.endTime(!0)-Z)},e.eventCallback=function(r,n,s){var a=this.vars;return arguments.length>1?(n?(a[r]=n,s&&(a[r+"Params"]=s),r==="onUpdate"&&(this._onUpdate=n)):delete a[r],this):a[r]},e.then=function(r){var n=this;return new Promise(function(s){var a=G(r)?r:bn,o=function(){var u=n.then;n.then=null,G(a)&&(a=a(n))&&(a.then||a===n)&&(n.then=u),s(a),n.then=u};n._initted&&n.totalProgress()===1&&n._ts>=0||!n._tTime&&n._ts<0?o():n._prom=o})},e.kill=function(){jt(this)},i})();ye(St.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Z,_prom:0,_ps:!1,_rts:1});var ce=(function(i){on(e,i);function e(r,n){var s;return r===void 0&&(r={}),s=i.call(this,r)||this,s.labels={},s.smoothChildTiming=!!r.smoothChildTiming,s.autoRemoveChildren=!!r.autoRemoveChildren,s._sort=fe(r.sortChildren),W&&ke(r.parent||W,Ee(s),n),r.reversed&&s.reverse(),r.paused&&s.paused(!0),r.scrollTrigger&&On(Ee(s),r.scrollTrigger),s}var t=e.prototype;return t.to=function(n,s,a){return wt(0,arguments,this),this},t.from=function(n,s,a){return wt(1,arguments,this),this},t.fromTo=function(n,s,a,o){return wt(2,arguments,this),this},t.set=function(n,s,a){return s.duration=0,s.parent=this,bt(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new K(n,s,qe(this,a),1),this},t.call=function(n,s,a){return ke(this,K.delayedCall(0,n,s),a)},t.staggerTo=function(n,s,a,o,l,u,c){return a.duration=s,a.stagger=a.stagger||o,a.onComplete=u,a.onCompleteParams=c,a.parent=this,new K(n,a,qe(this,l)),this},t.staggerFrom=function(n,s,a,o,l,u,c){return a.runBackwards=1,bt(a).immediateRender=fe(a.immediateRender),this.staggerTo(n,s,a,o,l,u,c)},t.staggerFromTo=function(n,s,a,o,l,u,c,h){return o.startAt=a,bt(o).immediateRender=fe(o.immediateRender),this.staggerTo(n,s,o,l,u,c,h)},t.render=function(n,s,a){var o=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,c=n<=0?0:Q(n),h=this._zTime<0!=n<0&&(this._initted||!u),p,m,_,f,g,x,v,b,w,y,j,O;if(this!==W&&c>l&&n>=0&&(c=l),c!==this._tTime||a||h){if(o!==this._time&&u&&(c+=this._time-o,n+=this._time-o),p=c,w=this._start,b=this._ts,x=!b,h&&(u||(o=this._zTime),(n||!s)&&(this._zTime=n)),this._repeat){if(j=this._yoyo,g=u+this._rDelay,this._repeat<-1&&n<0)return this.totalTime(g*100+n,s,a);if(p=Q(c%g),c===l?(f=this._repeat,p=u):(y=Q(c/g),f=~~y,f&&f===y&&(p=u,f--),p>u&&(p=u)),y=st(this._tTime,g),!o&&this._tTime&&y!==f&&this._tTime-y*g-this._dur<=0&&(y=f),j&&f&1&&(p=u-p,O=1),f!==y&&!this._lock){var C=j&&y&1,q=C===(j&&f&1);if(f<y&&(C=!C),o=C?0:c%u?u:c,this._lock=1,this.render(o||(O?0:Q(f*g)),s,!u)._lock=0,this._tTime=c,!s&&this.parent&&be(this,"onRepeat"),this.vars.repeatRefresh&&!O&&(this.invalidate()._lock=1),o&&o!==this._time||x!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,l=this._tDur,q&&(this._lock=2,o=C?u:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!O&&this.invalidate()),this._lock=0,!this._ts&&!x)return this;Hn(this,O)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(v=Ss(this,Q(o),Q(p)),v&&(c-=p-(p=v._start))),this._tTime=c,this._time=p,this._act=!b,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=n,o=0),!o&&c&&!s&&!y&&(be(this,"onStart"),this._tTime!==c))return this;if(p>=o&&n>=0)for(m=this._first;m;){if(_=m._next,(m._act||p>=m._start)&&m._ts&&v!==m){if(m.parent!==this)return this.render(n,s,a);if(m.render(m._ts>0?(p-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(p-m._start)*m._ts,s,a),p!==this._time||!this._ts&&!x){v=0,_&&(c+=this._zTime=-Z);break}}m=_}else{m=this._last;for(var E=n<0?n:p;m;){if(_=m._prev,(m._act||E<=m._end)&&m._ts&&v!==m){if(m.parent!==this)return this.render(n,s,a);if(m.render(m._ts>0?(E-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(E-m._start)*m._ts,s,a||ae&&br(m)),p!==this._time||!this._ts&&!x){v=0,_&&(c+=this._zTime=E?-Z:Z);break}}m=_}}if(v&&!s&&(this.pause(),v.render(p>=o?0:-Z)._zTime=p>=o?1:-1,this._ts))return this._start=w,Qt(this),this.render(n,s,a);this._onUpdate&&!s&&be(this,"onUpdate",!0),(c===l&&this._tTime>=this.totalDuration()||!c&&o)&&(w===this._start||Math.abs(b)!==Math.abs(this._ts))&&(this._lock||((n||!u)&&(c===l&&this._ts>0||!c&&this._ts<0)&&Ie(this,1),!s&&!(n<0&&!o)&&(c||o||!l)&&(be(this,c===l&&n>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<l&&this.timeScale()>0)&&this._prom())))}return this},t.add=function(n,s){var a=this;if(Me(s)||(s=qe(this,s,n)),!(n instanceof St)){if(oe(n))return n.forEach(function(o){return a.add(o,s)}),this;if(ne(n))return this.addLabel(n,s);if(G(n))n=K.delayedCall(0,n);else return this}return this!==n?ke(this,n,s):this},t.getChildren=function(n,s,a,o){n===void 0&&(n=!0),s===void 0&&(s=!0),a===void 0&&(a=!0),o===void 0&&(o=-Te);for(var l=[],u=this._first;u;)u._start>=o&&(u instanceof K?s&&l.push(u):(a&&l.push(u),n&&l.push.apply(l,u.getChildren(!0,s,a)))),u=u._next;return l},t.getById=function(n){for(var s=this.getChildren(1,1,1),a=s.length;a--;)if(s[a].vars.id===n)return s[a]},t.remove=function(n){return ne(n)?this.removeLabel(n):G(n)?this.killTweensOf(n):(n.parent===this&&Gt(this,n),n===this._recent&&(this._recent=this._last),Ye(this))},t.totalTime=function(n,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Q(we.time-(this._ts>0?n/this._ts:(this.totalDuration()-n)/-this._ts))),i.prototype.totalTime.call(this,n,s),this._forcing=0,this):this._tTime},t.addLabel=function(n,s){return this.labels[n]=qe(this,s),this},t.removeLabel=function(n){return delete this.labels[n],this},t.addPause=function(n,s,a){var o=K.delayedCall(0,s||yt,a);return o.data="isPause",this._hasPause=1,ke(this,o,qe(this,n))},t.removePause=function(n){var s=this._first;for(n=qe(this,n);s;)s._start===n&&s.data==="isPause"&&Ie(s),s=s._next},t.killTweensOf=function(n,s,a){for(var o=this.getTweensOf(n,a),l=o.length;l--;)ze!==o[l]&&o[l].kill(n,s);return this},t.getTweensOf=function(n,s){for(var a=[],o=je(n),l=this._first,u=Me(s),c;l;)l instanceof K?bs(l._targets,o)&&(u?(!ze||l._initted&&l._ts)&&l.globalTime(0)<=s&&l.globalTime(l.totalDuration())>s:!s||l.isActive())&&a.push(l):(c=l.getTweensOf(o,s)).length&&a.push.apply(a,c),l=l._next;return a},t.tweenTo=function(n,s){s=s||{};var a=this,o=qe(a,n),l=s,u=l.startAt,c=l.onStart,h=l.onStartParams,p=l.immediateRender,m,_=K.to(a,ye({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:s.duration||Math.abs((o-(u&&"time"in u?u.time:a._time))/a.timeScale())||Z,onStart:function(){if(a.pause(),!m){var g=s.duration||Math.abs((o-(u&&"time"in u?u.time:a._time))/a.timeScale());_._dur!==g&&at(_,g,0,1).render(_._time,!0,!0),m=1}c&&c.apply(_,h||[])}},s));return p?_.render(0):_},t.tweenFromTo=function(n,s,a){return this.tweenTo(s,ye({startAt:{time:qe(this,n)}},a))},t.recent=function(){return this._recent},t.nextLabel=function(n){return n===void 0&&(n=this._time),Dn(this,qe(this,n))},t.previousLabel=function(n){return n===void 0&&(n=this._time),Dn(this,qe(this,n),1)},t.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.previousLabel(this._time+Z)},t.shiftChildren=function(n,s,a){a===void 0&&(a=0);for(var o=this._first,l=this.labels,u;o;)o._start>=a&&(o._start+=n,o._end+=n),o=o._next;if(s)for(u in l)l[u]>=a&&(l[u]+=n);return Ye(this)},t.invalidate=function(n){var s=this._first;for(this._lock=0;s;)s.invalidate(n),s=s._next;return i.prototype.invalidate.call(this,n)},t.clear=function(n){n===void 0&&(n=!0);for(var s=this._first,a;s;)a=s._next,this.remove(s),s=a;return this._dp&&(this._time=this._tTime=this._pTime=0),n&&(this.labels={}),Ye(this)},t.totalDuration=function(n){var s=0,a=this,o=a._last,l=Te,u,c,h;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-n:n));if(a._dirty){for(h=a.parent;o;)u=o._prev,o._dirty&&o.totalDuration(),c=o._start,c>l&&a._sort&&o._ts&&!a._lock?(a._lock=1,ke(a,o,c-o._delay,1)._lock=0):l=c,c<0&&o._ts&&(s-=c,(!h&&!a._dp||h&&h.smoothChildTiming)&&(a._start+=c/a._ts,a._time-=c,a._tTime-=c),a.shiftChildren(-c,!1,-1/0),l=0),o._end>s&&o._ts&&(s=o._end),o=u;at(a,a===W&&a._time>s?a._time:s,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(n){if(W._ts&&(xn(W,Jt(n,W)),_n=we.frame),we.frame>=gn){gn+=ge.autoSleep||120;var s=W._first;if((!s||!s._ts)&&ge.autoSleep&&we._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||we.sleep()}}},e})(St);ye(ce.prototype,{_lock:0,_hasPause:0,_forcing:0});var Hs=function(e,t,r,n,s,a,o){var l=new pe(this._pt,e,t,0,1,Qn,null,s),u=0,c=0,h,p,m,_,f,g,x,v;for(l.b=r,l.e=n,r+="",n+="",(x=~n.indexOf("random("))&&(n=qt(n)),a&&(v=[r,n],a(v,e,t),r=v[0],n=v[1]),p=r.match(fr)||[];h=fr.exec(n);)_=h[0],f=n.substring(u,h.index),m?m=(m+1)%5:f.substr(-5)==="rgba("&&(m=1),_!==p[c++]&&(g=parseFloat(p[c-1])||0,l._pt={_next:l._pt,p:f||c===1?f:",",s:g,c:_.charAt(1)==="="?nt(g,_)-g:parseFloat(_)-g,m:m&&m<4?Math.round:0},u=fr.lastIndex);return l.c=u<n.length?n.substring(u,n.length):"",l.fp=o,(dn.test(n)||x)&&(l.e=0),this._pt=l,l},Pr=function(e,t,r,n,s,a,o,l,u,c){G(n)&&(n=n(s||0,e,a));var h=e[t],p=r!=="get"?r:G(h)?u?e[t.indexOf("set")||!G(e["get"+t.substr(3)])?t:"get"+t.substr(3)](u):e[t]():h,m=G(h)?u?Xs:Gn:Mr,_;if(ne(n)&&(~n.indexOf("random(")&&(n=qt(n)),n.charAt(1)==="="&&(_=nt(p,n)+(le(p)||0),(_||_===0)&&(n=_))),!c||p!==n||Nr)return!isNaN(p*n)&&n!==""?(_=new pe(this._pt,e,t,+p||0,n-(p||0),typeof h=="boolean"?Js:Jn,0,m),u&&(_.fp=u),o&&_.modifier(o,this,e),this._pt=_):(!h&&!(t in e)&&mr(t,n),Hs.call(this,e,t,p,n,m,l||ge.stringFilter,u))},Us=function(e,t,r,n,s){if(G(e)&&(e=kt(e,s,t,r,n)),!Ce(e)||e.style&&e.nodeType||oe(e)||un(e))return ne(e)?kt(e,s,t,r,n):e;var a={},o;for(o in e)a[o]=kt(e[o],s,t,r,n);return a},$n=function(e,t,r,n,s,a){var o,l,u,c;if(xe[e]&&(o=new xe[e]).init(s,o.rawVars?t[e]:Us(t[e],n,s,a,r),r,n,a)!==!1&&(r._pt=l=new pe(r._pt,s,e,0,1,o.render,o,0,o.priority),r!==ot))for(u=r._ptLookup[r._targets.indexOf(s)],c=o._props.length;c--;)u[o._props[c]]=l;return o},ze,Nr,Er=function i(e,t,r){var n=e.vars,s=n.ease,a=n.startAt,o=n.immediateRender,l=n.lazy,u=n.onUpdate,c=n.runBackwards,h=n.yoyoEase,p=n.keyframes,m=n.autoRevert,_=e._dur,f=e._startAt,g=e._targets,x=e.parent,v=x&&x.data==="nested"?x.vars.targets:g,b=e._overwrite==="auto"&&!or,w=e.timeline,y,j,O,C,q,E,F,D,R,H,V,z,U;if(w&&(!p||!s)&&(s="none"),e._ease=$e(s,tt.ease),e._yEase=h?Vn($e(h===!0?s:h,tt.ease)):0,h&&e._yoyo&&!e._repeat&&(h=e._yEase,e._yEase=e._ease,e._ease=h),e._from=!w&&!!n.runBackwards,!w||p&&!n.stagger){if(D=g[0]?Ue(g[0]).harness:0,z=D&&n[D.prop],y=Xt(n,_r),f&&(f._zTime<0&&f.progress(1),t<0&&c&&o&&!m?f.render(-1,!0):f.revert(c&&_?Yt:xs),f._lazy=0),a){if(Ie(e._startAt=K.set(g,ye({data:"isStart",overwrite:!1,parent:x,immediateRender:!0,lazy:!f&&fe(l),startAt:null,delay:0,onUpdate:u&&function(){return be(e,"onUpdate")},stagger:0},a))),e._startAt._dp=0,e._startAt._sat=e,t<0&&(ae||!o&&!m)&&e._startAt.revert(Yt),o&&_&&t<=0&&r<=0){t&&(e._zTime=t);return}}else if(c&&_&&!f){if(t&&(o=!1),O=ye({overwrite:!1,data:"isFromStart",lazy:o&&!f&&fe(l),immediateRender:o,stagger:0,parent:x},y),z&&(O[D.prop]=z),Ie(e._startAt=K.set(g,O)),e._startAt._dp=0,e._startAt._sat=e,t<0&&(ae?e._startAt.revert(Yt):e._startAt.render(-1,!0)),e._zTime=t,!o)i(e._startAt,Z,Z);else if(!t)return}for(e._pt=e._ptCache=0,l=_&&fe(l)||l&&!_,j=0;j<g.length;j++){if(q=g[j],F=q._gsap||yr(g)[j]._gsap,e._ptLookup[j]=H={},gr[F.id]&&Fe.length&&Wt(),V=v===g?j:v.indexOf(q),D&&(R=new D).init(q,z||y,e,V,v)!==!1&&(e._pt=C=new pe(e._pt,q,R.name,0,1,R.render,R,0,R.priority),R._props.forEach(function(ie){H[ie]=C}),R.priority&&(E=1)),!D||z)for(O in y)xe[O]&&(R=$n(O,y,e,V,q,v))?R.priority&&(E=1):H[O]=C=Pr.call(e,q,O,"get",y[O],V,v,0,n.stringFilter);e._op&&e._op[j]&&e.kill(q,e._op[j]),b&&e._pt&&(ze=e,W.killTweensOf(q,H,e.globalTime(t)),U=!e.parent,ze=0),e._pt&&l&&(gr[F.id]=1)}E&&Kn(e),e._onInit&&e._onInit(e)}e._onUpdate=u,e._initted=(!e._op||e._pt)&&!U,p&&t<=0&&w.render(Te,!0,!0)},Ys=function(e,t,r,n,s,a,o,l){var u=(e._pt&&e._ptCache||(e._ptCache={}))[t],c,h,p,m;if(!u)for(u=e._ptCache[t]=[],p=e._ptLookup,m=e._targets.length;m--;){if(c=p[m][t],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==t&&c.fp!==t;)c=c._next;if(!c)return Nr=1,e.vars[t]="+=0",Er(e,o),Nr=0,l?xt(t+" not eligible for reset"):1;u.push(c)}for(m=u.length;m--;)h=u[m],c=h._pt||h,c.s=(n||n===0)&&!s?n:c.s+(n||0)+a*c.c,c.c=r-c.s,h.e&&(h.e=J(r)+le(h.e)),h.b&&(h.b=c.s+le(h.b))},$s=function(e,t){var r=e[0]?Ue(e[0]).harness:0,n=r&&r.aliases,s,a,o,l;if(!n)return t;s=it({},t);for(a in n)if(a in s)for(l=n[a].split(","),o=l.length;o--;)s[l[o]]=s[a];return s},Ws=function(e,t,r,n){var s=t.ease||n||"power1.inOut",a,o;if(oe(t))o=r[e]||(r[e]=[]),t.forEach(function(l,u){return o.push({t:u/(t.length-1)*100,v:l,e:s})});else for(a in t)o=r[a]||(r[a]=[]),a==="ease"||o.push({t:parseFloat(e),v:t[a],e:s})},kt=function(e,t,r,n,s){return G(e)?e.call(t,r,n,s):ne(e)&&~e.indexOf("random(")?qt(e):e},Wn=xr+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Xn={};he(Wn+",id,stagger,delay,duration,paused,scrollTrigger",function(i){return Xn[i]=1});var K=(function(i){on(e,i);function e(r,n,s,a){var o;typeof n=="number"&&(s.duration=n,n=s,s=null),o=i.call(this,a?n:bt(n))||this;var l=o.vars,u=l.duration,c=l.delay,h=l.immediateRender,p=l.stagger,m=l.overwrite,_=l.keyframes,f=l.defaults,g=l.scrollTrigger,x=l.yoyoEase,v=n.parent||W,b=(oe(r)||un(r)?Me(r[0]):"length"in n)?[r]:je(r),w,y,j,O,C,q,E,F;if(o._targets=b.length?yr(b):xt("GSAP target "+r+" not found. https://gsap.com",!ge.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=m,_||p||Ht(u)||Ht(c)){if(n=o.vars,w=o.timeline=new ce({data:"nested",defaults:f||{},targets:v&&v.data==="nested"?v.vars.targets:b}),w.kill(),w.parent=w._dp=Ee(o),w._start=0,p||Ht(u)||Ht(c)){if(O=b.length,E=p&&Nn(p),Ce(p))for(C in p)~Wn.indexOf(C)&&(F||(F={}),F[C]=p[C]);for(y=0;y<O;y++)j=Xt(n,Xn),j.stagger=0,x&&(j.yoyoEase=x),F&&it(j,F),q=b[y],j.duration=+kt(u,Ee(o),y,q,b),j.delay=(+kt(c,Ee(o),y,q,b)||0)-o._delay,!p&&O===1&&j.delay&&(o._delay=c=j.delay,o._start+=c,j.delay=0),w.to(q,j,E?E(y,q,b):0),w._ease=A.none;w.duration()?u=c=0:o.timeline=0}else if(_){bt(ye(w.vars.defaults,{ease:"none"})),w._ease=$e(_.ease||n.ease||"none");var D=0,R,H,V;if(oe(_))_.forEach(function(z){return w.to(b,z,">")}),w.duration();else{j={};for(C in _)C==="ease"||C==="easeEach"||Ws(C,_[C],j,_.easeEach);for(C in j)for(R=j[C].sort(function(z,U){return z.t-U.t}),D=0,y=0;y<R.length;y++)H=R[y],V={ease:H.e,duration:(H.t-(y?R[y-1].t:0))/100*u},V[C]=H.v,w.to(b,V,D),D+=V.duration;w.duration()<u&&w.to({},{duration:u-w.duration()})}}u||o.duration(u=w.duration())}else o.timeline=0;return m===!0&&!or&&(ze=Ee(o),W.killTweensOf(b),ze=0),ke(v,Ee(o),s),n.reversed&&o.reverse(),n.paused&&o.paused(!0),(h||!u&&!_&&o._start===Q(v._time)&&fe(h)&&js(Ee(o))&&v.data!=="nested")&&(o._tTime=-Z,o.render(Math.max(0,-c)||0)),g&&On(Ee(o),g),o}var t=e.prototype;return t.render=function(n,s,a){var o=this._time,l=this._tDur,u=this._dur,c=n<0,h=n>l-Z&&!c?l:n<Z?0:n,p,m,_,f,g,x,v,b,w;if(!u)Cs(this,n,s,a);else if(h!==this._tTime||!n||a||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c||this._lazy){if(p=h,b=this.timeline,this._repeat){if(f=u+this._rDelay,this._repeat<-1&&c)return this.totalTime(f*100+n,s,a);if(p=Q(h%f),h===l?(_=this._repeat,p=u):(g=Q(h/f),_=~~g,_&&_===g?(p=u,_--):p>u&&(p=u)),x=this._yoyo&&_&1,x&&(w=this._yEase,p=u-p),g=st(this._tTime,f),p===o&&!a&&this._initted&&_===g)return this._tTime=h,this;_!==g&&(b&&this._yEase&&Hn(b,x),this.vars.repeatRefresh&&!x&&!this._lock&&p!==f&&this._initted&&(this._lock=a=1,this.render(Q(f*_),!0).invalidate()._lock=0))}if(!this._initted){if(Cn(this,c?n:p,a,s,h))return this._tTime=0,this;if(o!==this._time&&!(a&&this.vars.repeatRefresh&&_!==g))return this;if(u!==this._dur)return this.render(n,s,a)}if(this._tTime=h,this._time=p,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=v=(w||this._ease)(p/u),this._from&&(this.ratio=v=1-v),!o&&h&&!s&&!g&&(be(this,"onStart"),this._tTime!==h))return this;for(m=this._pt;m;)m.r(v,m.d),m=m._next;b&&b.render(n<0?n:b._dur*b._ease(p/this._dur),s,a)||this._startAt&&(this._zTime=n),this._onUpdate&&!s&&(c&&wr(this,n,s,a),be(this,"onUpdate")),this._repeat&&_!==g&&this.vars.onRepeat&&!s&&this.parent&&be(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(c&&!this._onUpdate&&wr(this,n,!0,!0),(n||!u)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&Ie(this,1),!s&&!(c&&!o)&&(h||o||x)&&(be(this,h===l?"onComplete":"onReverseComplete",!0),this._prom&&!(h<l&&this.timeScale()>0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(n){return(!n||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(n),i.prototype.invalidate.call(this,n)},t.resetTo=function(n,s,a,o,l){Ct||we.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Er(this,u),c=this._ease(u/this._dur),Ys(this,n,s,a,o,c,u,l)?this.resetTo(n,s,a,o,1):(Kt(this,0),this.parent||Tn(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(n,s){if(s===void 0&&(s="all"),!n&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?jt(this):this.scrollTrigger&&this.scrollTrigger.kill(!!ae),this;if(this.timeline){var a=this.timeline.totalDuration();return this.timeline.killTweensOf(n,s,ze&&ze.vars.overwrite!==!0)._first||jt(this),this.parent&&a!==this.timeline.totalDuration()&&at(this,this._dur*this.timeline._tDur/a,0,1),this}var o=this._targets,l=n?je(n):o,u=this._ptLookup,c=this._pt,h,p,m,_,f,g,x;if((!s||s==="all")&&Ts(o,l))return s==="all"&&(this._pt=0),jt(this);for(h=this._op=this._op||[],s!=="all"&&(ne(s)&&(f={},he(s,function(v){return f[v]=1}),s=f),s=$s(o,s)),x=o.length;x--;)if(~l.indexOf(o[x])){p=u[x],s==="all"?(h[x]=s,_=p,m={}):(m=h[x]=h[x]||{},_=s);for(f in _)g=p&&p[f],g&&((!("kill"in g.d)||g.d.kill(f)===!0)&&Gt(this,g,"_pt"),delete p[f]),m!=="all"&&(m[f]=1)}return this._initted&&!this._pt&&c&&jt(this),this},e.to=function(n,s){return new e(n,s,arguments[2])},e.from=function(n,s){return wt(1,arguments)},e.delayedCall=function(n,s,a,o){return new e(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:n,onComplete:s,onReverseComplete:s,onCompleteParams:a,onReverseCompleteParams:a,callbackScope:o})},e.fromTo=function(n,s,a){return wt(2,arguments)},e.set=function(n,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new e(n,s)},e.killTweensOf=function(n,s,a){return W.killTweensOf(n,s,a)},e})(St);ye(K.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),he("staggerTo,staggerFrom,staggerFromTo",function(i){K[i]=function(){var e=new ce,t=qr.call(arguments,0);return t.splice(i==="staggerFromTo"?5:4,0,0),e[i].apply(e,t)}});var Mr=function(e,t,r){return e[t]=r},Gn=function(e,t,r){return e[t](r)},Xs=function(e,t,r,n){return e[t](n.fp,r)},Gs=function(e,t,r){return e.setAttribute(t,r)},Ar=function(e,t){return G(e[t])?Gn:ur(e[t])&&e.setAttribute?Gs:Mr},Jn=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Js=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},Qn=function(e,t){var r=t._pt,n="";if(!e&&t.b)n=t.b;else if(e===1&&t.e)n=t.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+n,r=r._next;n+=t.c}t.set(t.t,t.p,n,t)},Rr=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},Qs=function(e,t,r,n){for(var s=this._pt,a;s;)a=s._next,s.p===n&&s.modifier(e,t,r),s=a},Ks=function(e){for(var t=this._pt,r,n;t;)n=t._next,t.p===e&&!t.op||t.op===e?Gt(this,t,"_pt"):t.dep||(r=1),t=n;return!r},ea=function(e,t,r,n){n.mSet(e,t,n.m.call(n.tween,r,n.mt),n)},Kn=function(e){for(var t=e._pt,r,n,s,a;t;){for(r=t._next,n=s;n&&n.pr>t.pr;)n=n._next;(t._prev=n?n._prev:a)?t._prev._next=t:s=t,(t._next=n)?n._prev=t:a=t,t=r}e._pt=s},pe=(function(){function i(t,r,n,s,a,o,l,u,c){this.t=r,this.s=s,this.c=a,this.p=n,this.r=o||Jn,this.d=l||this,this.set=u||Mr,this.pr=c||0,this._next=t,t&&(t._prev=this)}var e=i.prototype;return e.modifier=function(r,n,s){this.mSet=this.mSet||this.set,this.set=ea,this.m=r,this.mt=s,this.tween=n},i})();he(xr+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(i){return _r[i]=1}),ve.TweenMax=ve.TweenLite=K,ve.TimelineLite=ve.TimelineMax=ce,W=new ce({sortChildren:!1,defaults:tt,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),ge.stringFilter=Bn;var Xe=[],er={},ta=[],ei=0,ra=0,Dr=function(e){return(er[e]||ta).map(function(t){return t()})},Fr=function(){var e=Date.now(),t=[];e-ei>2&&(Dr("matchMediaInit"),Xe.forEach(function(r){var n=r.queries,s=r.conditions,a,o,l,u;for(o in n)a=Se.matchMedia(n[o]).matches,a&&(l=1),a!==s[o]&&(s[o]=a,u=1);u&&(r.revert(),l&&t.push(r))}),Dr("matchMediaRevert"),t.forEach(function(r){return r.onMatch(r,function(n){return r.add(null,n)})}),ei=e,Dr("matchMedia"))},ti=(function(){function i(t,r){this.selector=r&&jr(r),this.data=[],this._r=[],this.isReverted=!1,this.id=ra++,t&&this.add(t)}var e=i.prototype;return e.add=function(r,n,s){G(r)&&(s=n,n=r,r=G);var a=this,o=function(){var u=$,c=a.selector,h;return u&&u!==a&&u.data.push(a),s&&(a.selector=jr(s)),$=a,h=n.apply(a,arguments),G(h)&&a._r.push(h),$=u,a.selector=c,a.isReverted=!1,h};return a.last=o,r===G?o(a,function(l){return a.add(null,l)}):r?a[r]=o:o},e.ignore=function(r){var n=$;$=null,r(this),$=n},e.getTweens=function(){var r=[];return this.data.forEach(function(n){return n instanceof i?r.push.apply(r,n.getTweens()):n instanceof K&&!(n.parent&&n.parent.data==="nested")&&r.push(n)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,n){var s=this;if(r?(function(){for(var o=s.getTweens(),l=s.data.length,u;l--;)u=s.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(c){return o.splice(o.indexOf(c),1)}));for(o.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,h){return h.g-c.g||-1/0}).forEach(function(c){return c.t.revert(r)}),l=s.data.length;l--;)u=s.data[l],u instanceof ce?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof K)&&u.revert&&u.revert(r);s._r.forEach(function(c){return c(r,s)}),s.isReverted=!0})():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),n)for(var a=Xe.length;a--;)Xe[a].id===this.id&&Xe.splice(a,1)},e.revert=function(r){this.kill(r||{})},i})(),na=(function(){function i(t){this.contexts=[],this.scope=t,$&&$.data.push(this)}var e=i.prototype;return e.add=function(r,n,s){Ce(r)||(r={matches:r});var a=new ti(0,s||this.scope),o=a.conditions={},l,u,c;$&&!a.selector&&(a.selector=$.selector),this.contexts.push(a),n=a.add("onMatch",n),a.queries=r;for(u in r)u==="all"?c=1:(l=Se.matchMedia(r[u]),l&&(Xe.indexOf(a)<0&&Xe.push(a),(o[u]=l.matches)&&(c=1),l.addListener?l.addListener(Fr):l.addEventListener("change",Fr)));return c&&n(a,function(h){return a.add(null,h)}),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(n){return n.kill(r,!0)})},i})(),tr={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach(function(n){return In(n)})},timeline:function(e){return new ce(e)},getTweensOf:function(e,t){return W.getTweensOf(e,t)},getProperty:function(e,t,r,n){ne(e)&&(e=je(e)[0]);var s=Ue(e||{}).get,a=r?bn:yn;return r==="native"&&(r=""),e&&(t?a((xe[t]&&xe[t].get||s)(e,t,r,n)):function(o,l,u){return a((xe[o]&&xe[o].get||s)(e,o,l,u))})},quickSetter:function(e,t,r){if(e=je(e),e.length>1){var n=e.map(function(c){return me.quickSetter(c,t,r)}),s=n.length;return function(c){for(var h=s;h--;)n[h](c)}}e=e[0]||{};var a=xe[t],o=Ue(e),l=o.harness&&(o.harness.aliases||{})[t]||t,u=a?function(c){var h=new a;ot._pt=0,h.init(e,r?c+r:c,ot,0,[e]),h.render(1,h),ot._pt&&Rr(1,ot)}:o.set(e,l);return a?u:function(c){return u(e,l,r?c+r:c,o,1)}},quickTo:function(e,t,r){var n,s=me.to(e,ye((n={},n[t]="+=0.1",n.paused=!0,n.stagger=0,n),r||{})),a=function(l,u,c){return s.resetTo(t,l,u,c)};return a.tween=s,a},isTweening:function(e){return W.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=$e(e.ease,tt.ease)),wn(tt,e||{})},config:function(e){return wn(ge,e||{})},registerEffect:function(e){var t=e.name,r=e.effect,n=e.plugins,s=e.defaults,a=e.extendTimeline;(n||"").split(",").forEach(function(o){return o&&!xe[o]&&!ve[o]&&xt(t+" effect requires "+o+" plugin.")}),vr[t]=function(o,l,u){return r(je(o),ye(l||{},s),u)},a&&(ce.prototype[t]=function(o,l,u){return this.add(vr[t](o,Ce(l)?l:(u=l)&&{},this),u)})},registerEase:function(e,t){A[e]=$e(t)},parseEase:function(e,t){return arguments.length?$e(e,t):A},getById:function(e){return W.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var r=new ce(e),n,s;for(r.smoothChildTiming=fe(e.smoothChildTiming),W.remove(r),r._dp=0,r._time=r._tTime=W._time,n=W._first;n;)s=n._next,(t||!(!n._dur&&n instanceof K&&n.vars.onComplete===n._targets[0]))&&ke(r,n,n._start-n._delay),n=s;return ke(W,r,0),r},context:function(e,t){return e?new ti(e,t):$},matchMedia:function(e){return new na(e)},matchMediaRefresh:function(){return Xe.forEach(function(e){var t=e.conditions,r,n;for(n in t)t[n]&&(t[n]=!1,r=1);r&&e.revert()})||Fr()},addEventListener:function(e,t){var r=er[e]||(er[e]=[]);~r.indexOf(t)||r.push(t)},removeEventListener:function(e,t){var r=er[e],n=r&&r.indexOf(t);n>=0&&r.splice(n,1)},utils:{wrap:Rs,wrapYoyo:Ds,distribute:Nn,random:Mn,snap:En,normalize:As,getUnit:le,clamp:Ps,splitColor:Zn,toArray:je,selector:jr,mapRange:Rn,pipe:Es,unitize:Ms,interpolate:Fs,shuffle:Pn},install:pn,effects:vr,ticker:we,updateRoot:ce.updateRoot,plugins:xe,globalTimeline:W,core:{PropTween:pe,globals:mn,Tween:K,Timeline:ce,Animation:St,getCache:Ue,_removeLinkedListItem:Gt,reverting:function(){return ae},context:function(e){return e&&$&&($.data.push(e),e._ctx=$),$},suppressOverwrites:function(e){return or=e}}};he("to,from,fromTo,delayedCall,set,killTweensOf",function(i){return tr[i]=K[i]}),we.add(ce.updateRoot),ot=tr.to({},{duration:0});var ia=function(e,t){for(var r=e._pt;r&&r.p!==t&&r.op!==t&&r.fp!==t;)r=r._next;return r},sa=function(e,t){var r=e._targets,n,s,a;for(n in t)for(s=r.length;s--;)a=e._ptLookup[s][n],a&&(a=a.d)&&(a._pt&&(a=ia(a,n)),a&&a.modifier&&a.modifier(t[n],e,r[s],n))},Ir=function(e,t){return{name:e,headless:1,rawVars:1,init:function(n,s,a){a._onInit=function(o){var l,u;if(ne(s)&&(l={},he(s,function(c){return l[c]=1}),s=l),t){l={};for(u in s)l[u]=t(s[u]);s=l}sa(o,s)}}}},me=tr.registerPlugin({name:"attr",init:function(e,t,r,n,s){var a,o,l;this.tween=r;for(a in t)l=e.getAttribute(a)||"",o=this.add(e,"setAttribute",(l||0)+"",t[a],n,s,0,0,a),o.op=a,o.b=l,this._props.push(a)},render:function(e,t){for(var r=t._pt;r;)ae?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,init:function(e,t){for(var r=t.length;r--;)this.add(e,r,e[r]||0,t[r],0,0,0,0,0,1)}},Ir("roundProps",Or),Ir("modifiers"),Ir("snap",En))||tr;K.version=ce.version=me.version="3.13.0",hn=1,cr()&<(),A.Power0,A.Power1,A.Power2,A.Power3,A.Power4,A.Linear,A.Quad,A.Cubic,A.Quart,A.Quint,A.Strong,A.Elastic,A.Back,A.SteppedEase,A.Bounce,A.Sine,A.Expo,A.Circ;/*!
|
|
41
|
+
*/var ge={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},tt={duration:.5,overwrite:!1,delay:0},or,se,$,Te=1e8,Z=1/Te,lr=Math.PI*2,ps=lr/4,ms=0,ln=Math.sqrt,_s=Math.cos,gs=Math.sin,re=function(e){return typeof e=="string"},G=function(e){return typeof e=="function"},Me=function(e){return typeof e=="number"},ur=function(e){return typeof e>"u"},Ce=function(e){return typeof e=="object"},fe=function(e){return e!==!1},cr=function(){return typeof window<"u"},Ht=function(e){return G(e)||re(e)},un=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},oe=Array.isArray,dr=/(?:-?\.?\d|\.)+/gi,cn=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,rt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,fr=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,dn=/[+-]=-?[.\d]+/,fn=/[^,'"\[\]\s]+/gi,vs=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,W,Se,hr,pr,ve={},Ut={},hn,pn=function(e){return(Ut=it(e,ve))&&me},mr=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},xt=function(e,t){return!t&&console.warn(e)},mn=function(e,t){return e&&(ve[e]=t)&&Ut&&(Ut[e]=t)||ve},yt=function(){return 0},xs={suppressEvents:!0,isStart:!0,kill:!1},Yt={suppressEvents:!0,kill:!1},ys={suppressEvents:!0},_r={},Fe=[],gr={},_n,xe={},vr={},gn=30,$t=[],xr="",yr=function(e){var t=e[0],r,n;if(Ce(t)||G(t)||(e=[e]),!(r=(t._gsap||{}).harness)){for(n=$t.length;n--&&!$t[n].targetTest(t););r=$t[n]}for(n=e.length;n--;)e[n]&&(e[n]._gsap||(e[n]._gsap=new Yn(e[n],r)))||e.splice(n,1);return e},Ue=function(e){return e._gsap||yr(je(e))[0]._gsap},vn=function(e,t,r){return(r=e[t])&&G(r)?e[t]():ur(r)&&e.getAttribute&&e.getAttribute(t)||r},he=function(e,t){return(e=e.split(",")).forEach(t)||e},J=function(e){return Math.round(e*1e5)/1e5||0},Q=function(e){return Math.round(e*1e7)/1e7||0},nt=function(e,t){var r=t.charAt(0),n=parseFloat(t.substr(2));return e=parseFloat(e),r==="+"?e+n:r==="-"?e-n:r==="*"?e*n:e/n},bs=function(e,t){for(var r=t.length,n=0;e.indexOf(t[n])<0&&++n<r;);return n<r},Wt=function(){var e=Fe.length,t=Fe.slice(0),r,n;for(gr={},Fe.length=0,r=0;r<e;r++)n=t[r],n&&n._lazy&&(n.render(n._lazy[0],n._lazy[1],!0)._lazy=0)},br=function(e){return!!(e._initted||e._startAt||e.add)},xn=function(e,t,r,n){Fe.length&&!se&&Wt(),e.render(t,r,!!(se&&t<0&&br(e))),Fe.length&&!se&&Wt()},yn=function(e){var t=parseFloat(e);return(t||t===0)&&(e+"").match(fn).length<2?t:re(e)?e.trim():e},bn=function(e){return e},ye=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},ws=function(e){return function(t,r){for(var n in r)n in t||n==="duration"&&e||n==="ease"||(t[n]=r[n])}},it=function(e,t){for(var r in t)e[r]=t[r];return e},wn=function i(e,t){for(var r in t)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(e[r]=Ce(t[r])?i(e[r]||(e[r]={}),t[r]):t[r]);return e},Xt=function(e,t){var r={},n;for(n in e)n in t||(r[n]=e[n]);return r},bt=function(e){var t=e.parent||W,r=e.keyframes?ws(oe(e.keyframes)):ye;if(fe(e.inherit))for(;t;)r(e,t.vars.defaults),t=t.parent||t._dp;return e},Ts=function(e,t){for(var r=e.length,n=r===t.length;n&&r--&&e[r]===t[r];);return r<0},Tn=function(e,t,r,n,s){var a=e[n],o;if(s)for(o=t[s];a&&a[s]>o;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[r],e[r]=t),t._next?t._next._prev=t:e[n]=t,t._prev=a,t.parent=t._dp=e,t},Gt=function(e,t,r,n){r===void 0&&(r="_first"),n===void 0&&(n="_last");var s=t._prev,a=t._next;s?s._next=a:e[r]===t&&(e[r]=a),a?a._prev=s:e[n]===t&&(e[n]=s),t._next=t._prev=t.parent=null},Ie=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Ye=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},qs=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},wr=function(e,t,r,n){return e._startAt&&(se?e._startAt.revert(Yt):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,n))},js=function i(e){return!e||e._ts&&i(e.parent)},qn=function(e){return e._repeat?st(e._tTime,e=e.duration()+e._rDelay)*e:0},st=function(e,t){var r=Math.floor(e=Q(e/t));return e&&r===e?r-1:r},Jt=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Qt=function(e){return e._end=Q(e._start+(e._tDur/Math.abs(e._ts||e._rts||Z)||0))},Kt=function(e,t){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=Q(r._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Qt(e),r._dirty||Ye(r,e)),e},jn=function(e,t){var r;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(r=Jt(e.rawTime(),t),(!t._dur||Tt(0,t.totalDuration(),r)-t._tTime>Z)&&t.render(r,!0)),Ye(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-Z}},ke=function(e,t,r,n){return t.parent&&Ie(t),t._start=Q((Me(r)?r:r||e!==W?qe(e,r,t):e._time)+t._delay),t._end=Q(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Tn(e,t,"_first","_last",e._sort?"_start":0),Tr(t)||(e._recent=t),n||jn(e,t),e._ts<0&&Kt(e,e._tTime),e},On=function(e,t){return(ve.ScrollTrigger||mr("scrollTrigger",t))&&ve.ScrollTrigger.create(t,e)},Cn=function(e,t,r,n,s){if(Er(e,t,s),!e._initted)return 1;if(!r&&e._pt&&!se&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&_n!==we.frame)return Fe.push(e),e._lazy=[s,n],1},Os=function i(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||i(t))},Tr=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},Cs=function(e,t,r,n){var s=e.ratio,a=t<0||!t&&(!e._start&&Os(e)&&!(!e._initted&&Tr(e))||(e._ts<0||e._dp._ts<0)&&!Tr(e))?0:1,o=e._rDelay,l=0,u,c,h;if(o&&e._repeat&&(l=Tt(0,e._tDur,t),c=st(l,o),e._yoyo&&c&1&&(a=1-a),c!==st(e._tTime,o)&&(s=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==s||se||n||e._zTime===Z||!t&&e._zTime){if(!e._initted&&Cn(e,t,n,r,l))return;for(h=e._zTime,e._zTime=t||(r?Z:0),r||(r=t&&!h),e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=l,u=e._pt;u;)u.r(a,u.d),u=u._next;t<0&&wr(e,t,r,!0),e._onUpdate&&!r&&be(e,"onUpdate"),l&&e._repeat&&!r&&e.parent&&be(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&Ie(e,1),!r&&!se&&(be(e,a?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},Ss=function(e,t,r){var n;if(r>t)for(n=e._first;n&&n._start<=r;){if(n.data==="isPause"&&n._start>t)return n;n=n._next}else for(n=e._last;n&&n._start>=r;){if(n.data==="isPause"&&n._start<t)return n;n=n._prev}},at=function(e,t,r,n){var s=e._repeat,a=Q(t)||0,o=e._tTime/e._tDur;return o&&!n&&(e._time*=a/e._dur),e._dur=a,e._tDur=s?s<0?1e10:Q(a*(s+1)+e._rDelay*s):a,o>0&&!n&&Kt(e,e._tTime=e._tDur*o),e.parent&&Qt(e),r||Ye(e.parent,e),e},Sn=function(e){return e instanceof ce?Ye(e):at(e,e._dur)},ks={_start:0,endTime:yt,totalDuration:yt},qe=function i(e,t,r){var n=e.labels,s=e._recent||ks,a=e.duration()>=Te?s.endTime(!1):e._dur,o,l,u;return re(t)&&(isNaN(t)||t in n)?(l=t.charAt(0),u=t.substr(-1)==="%",o=t.indexOf("="),l==="<"||l===">"?(o>=0&&(t=t.replace(/=/,"")),(l==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(t.substr(1))||0)*(u?(o<0?s:r).totalDuration()/100:1)):o<0?(t in n||(n[t]=a),n[t]):(l=parseFloat(t.charAt(o-1)+t.substr(o+1)),u&&r&&(l=l/100*(oe(r)?r[0]:r).totalDuration()),o>1?i(e,t.substr(0,o-1),r)+l:a+l)):t==null?a:+t},wt=function(e,t,r){var n=Me(t[1]),s=(n?2:1)+(e<2?0:1),a=t[s],o,l;if(n&&(a.duration=t[1]),a.parent=r,e){for(o=a,l=r;l&&!("immediateRender"in o);)o=l.vars.defaults||{},l=fe(l.vars.inherit)&&l.parent;a.immediateRender=fe(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[s-1]}return new K(t[0],a,t[s+1])},Ze=function(e,t){return e||e===0?t(e):t},Tt=function(e,t,r){return r<e?e:r>t?t:r},le=function(e,t){return!re(e)||!(t=vs.exec(e))?"":t[1]},Ps=function(e,t,r){return Ze(r,function(n){return Tt(e,t,n)})},qr=[].slice,kn=function(e,t){return e&&Ce(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&Ce(e[0]))&&!e.nodeType&&e!==Se},Ns=function(e,t,r){return r===void 0&&(r=[]),e.forEach(function(n){var s;return re(n)&&!t||kn(n,1)?(s=r).push.apply(s,je(n)):r.push(n)})||r},je=function(e,t,r){return $&&!t&&$.selector?$.selector(e):re(e)&&!r&&(hr||!lt())?qr.call((t||pr).querySelectorAll(e),0):oe(e)?Ns(e,r):kn(e)?qr.call(e,0):e?[e]:[]},jr=function(e){return e=je(e)[0]||xt("Invalid scope")||{},function(t){var r=e.current||e.nativeElement||e;return je(t,r.querySelectorAll?r:r===e?xt("Invalid scope")||pr.createElement("div"):e)}},Pn=function(e){return e.sort(function(){return .5-Math.random()})},Nn=function(e){if(G(e))return e;var t=Ce(e)?e:{each:e},r=$e(t.ease),n=t.from||0,s=parseFloat(t.base)||0,a={},o=n>0&&n<1,l=isNaN(n)||o,u=t.axis,c=n,h=n;return re(n)?c=h={center:.5,edges:.5,end:1}[n]||0:!o&&l&&(c=n[0],h=n[1]),function(p,m,_){var f=(_||t).length,g=a[f],x,v,b,w,y,j,O,C,q;if(!g){if(q=t.grid==="auto"?0:(t.grid||[1,Te])[1],!q){for(O=-Te;O<(O=_[q++].getBoundingClientRect().left)&&q<f;);q<f&&q--}for(g=a[f]=[],x=l?Math.min(q,f)*c-.5:n%q,v=q===Te?0:l?f*h/q-.5:n/q|0,O=0,C=Te,j=0;j<f;j++)b=j%q-x,w=v-(j/q|0),g[j]=y=u?Math.abs(u==="y"?w:b):ln(b*b+w*w),y>O&&(O=y),y<C&&(C=y);n==="random"&&Pn(g),g.max=O-C,g.min=C,g.v=f=(parseFloat(t.amount)||parseFloat(t.each)*(q>f?f-1:u?u==="y"?f/q:q:Math.max(q,f/q))||0)*(n==="edges"?-1:1),g.b=f<0?s-f:s,g.u=le(t.amount||t.each)||0,r=r&&f<0?Vn(r):r}return f=(g[p]-g.min)/g.max||0,Q(g.b+(r?r(f):f)*g.v)+g.u}},Or=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var n=Q(Math.round(parseFloat(r)/e)*e*t);return(n-n%1)/t+(Me(r)?0:le(r))}},En=function(e,t){var r=oe(e),n,s;return!r&&Ce(e)&&(n=r=e.radius||Te,e.values?(e=je(e.values),(s=!Me(e[0]))&&(n*=n)):e=Or(e.increment)),Ze(t,r?G(e)?function(a){return s=e(a),Math.abs(s-a)<=n?s:a}:function(a){for(var o=parseFloat(s?a.x:a),l=parseFloat(s?a.y:0),u=Te,c=0,h=e.length,p,m;h--;)s?(p=e[h].x-o,m=e[h].y-l,p=p*p+m*m):p=Math.abs(e[h]-o),p<u&&(u=p,c=h);return c=!n||u<=n?e[c]:a,s||c===a||Me(a)?c:c+le(a)}:Or(e))},Mn=function(e,t,r,n){return Ze(oe(e)?!t:r===!0?!!(r=0):!n,function(){return oe(e)?e[~~(Math.random()*e.length)]:(r=r||1e-5)&&(n=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(t-e+r*.99))/r)*r*n)/n})},Es=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduce(function(s,a){return a(s)},n)}},Ms=function(e,t){return function(r){return e(parseFloat(r))+(t||le(r))}},As=function(e,t,r){return Rn(e,t,0,1,r)},An=function(e,t,r){return Ze(r,function(n){return e[~~t(n)]})},Rs=function i(e,t,r){var n=t-e;return oe(e)?An(e,i(0,e.length),t):Ze(r,function(s){return(n+(s-e)%n)%n+e})},Ds=function i(e,t,r){var n=t-e,s=n*2;return oe(e)?An(e,i(0,e.length-1),t):Ze(r,function(a){return a=(s+(a-e)%s)%s||0,e+(a>n?s-a:a)})},qt=function(e){for(var t=0,r="",n,s,a,o;~(n=e.indexOf("random(",t));)a=e.indexOf(")",n),o=e.charAt(n+7)==="[",s=e.substr(n+7,a-n-7).match(o?fn:dr),r+=e.substr(t,n-t)+Mn(o?s:+s[0],o?0:+s[1],+s[2]||1e-5),t=a+1;return r+e.substr(t,e.length-t)},Rn=function(e,t,r,n,s){var a=t-e,o=n-r;return Ze(s,function(l){return r+((l-e)/a*o||0)})},Fs=function i(e,t,r,n){var s=isNaN(e+t)?0:function(m){return(1-m)*e+m*t};if(!s){var a=re(e),o={},l,u,c,h,p;if(r===!0&&(n=1)&&(r=null),a)e={p:e},t={p:t};else if(oe(e)&&!oe(t)){for(c=[],h=e.length,p=h-2,u=1;u<h;u++)c.push(i(e[u-1],e[u]));h--,s=function(_){_*=h;var f=Math.min(p,~~_);return c[f](_-f)},r=t}else n||(e=it(oe(e)?[]:{},e));if(!c){for(l in t)Pr.call(o,e,l,"get",t[l]);s=function(_){return Rr(_,o)||(a?e.p:e)}}}return Ze(r,s)},Dn=function(e,t,r){var n=e.labels,s=Te,a,o,l;for(a in n)o=n[a]-t,o<0==!!r&&o&&s>(o=Math.abs(o))&&(l=a,s=o);return l},be=function(e,t,r){var n=e.vars,s=n[t],a=$,o=e._ctx,l,u,c;if(s)return l=n[t+"Params"],u=n.callbackScope||e,r&&Fe.length&&Wt(),o&&($=o),c=l?s.apply(u,l):s.call(u),$=a,c},jt=function(e){return Ie(e),e.scrollTrigger&&e.scrollTrigger.kill(!!se),e.progress()<1&&be(e,"onInterrupt"),e},ot,Fn=[],In=function(e){if(e)if(e=!e.name&&e.default||e,cr()||e.headless){var t=e.name,r=G(e),n=t&&!r&&e.init?function(){this._props=[]}:e,s={init:yt,render:Rr,add:Pr,kill:Ks,modifier:Qs,rawVars:0},a={targetTest:0,get:0,getSetter:Ar,aliases:{},register:0};if(lt(),e!==n){if(xe[t])return;ye(n,ye(Xt(e,s),a)),it(n.prototype,it(s,Xt(e,a))),xe[n.prop=t]=n,e.targetTest&&($t.push(n),_r[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}mn(t,n),e.register&&e.register(me,n,pe)}else Fn.push(e)},L=255,Ot={aqua:[0,L,L],lime:[0,L,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,L],navy:[0,0,128],white:[L,L,L],olive:[128,128,0],yellow:[L,L,0],orange:[L,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[L,0,0],pink:[L,192,203],cyan:[0,L,L],transparent:[L,L,L,0]},Cr=function(e,t,r){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(r-t)*e*6:e<.5?r:e*3<2?t+(r-t)*(2/3-e)*6:t)*L+.5|0},Zn=function(e,t,r){var n=e?Me(e)?[e>>16,e>>8&L,e&L]:0:Ot.black,s,a,o,l,u,c,h,p,m,_;if(!n){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Ot[e])n=Ot[e];else if(e.charAt(0)==="#"){if(e.length<6&&(s=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e="#"+s+s+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return n=parseInt(e.substr(1,6),16),[n>>16,n>>8&L,n&L,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),n=[e>>16,e>>8&L,e&L]}else if(e.substr(0,3)==="hsl"){if(n=_=e.match(dr),!t)l=+n[0]%360/360,u=+n[1]/100,c=+n[2]/100,a=c<=.5?c*(u+1):c+u-c*u,s=c*2-a,n.length>3&&(n[3]*=1),n[0]=Cr(l+1/3,s,a),n[1]=Cr(l,s,a),n[2]=Cr(l-1/3,s,a);else if(~e.indexOf("="))return n=e.match(cn),r&&n.length<4&&(n[3]=1),n}else n=e.match(dr)||Ot.transparent;n=n.map(Number)}return t&&!_&&(s=n[0]/L,a=n[1]/L,o=n[2]/L,h=Math.max(s,a,o),p=Math.min(s,a,o),c=(h+p)/2,h===p?l=u=0:(m=h-p,u=c>.5?m/(2-h-p):m/(h+p),l=h===s?(a-o)/m+(a<o?6:0):h===a?(o-s)/m+2:(s-a)/m+4,l*=60),n[0]=~~(l+.5),n[1]=~~(u*100+.5),n[2]=~~(c*100+.5)),r&&n.length<4&&(n[3]=1),n},Ln=function(e){var t=[],r=[],n=-1;return e.split(Le).forEach(function(s){var a=s.match(rt)||[];t.push.apply(t,a),r.push(n+=a.length+1)}),t.c=r,t},zn=function(e,t,r){var n="",s=(e+n).match(Le),a=t?"hsla(":"rgba(",o=0,l,u,c,h;if(!s)return e;if(s=s.map(function(p){return(p=Zn(p,t,1))&&a+(t?p[0]+","+p[1]+"%,"+p[2]+"%,"+p[3]:p.join(","))+")"}),r&&(c=Ln(e),l=r.c,l.join(n)!==c.c.join(n)))for(u=e.replace(Le,"1").split(rt),h=u.length-1;o<h;o++)n+=u[o]+(~l.indexOf(o)?s.shift()||a+"0,0,0,0)":(c.length?c:s.length?s:r).shift());if(!u)for(u=e.split(Le),h=u.length-1;o<h;o++)n+=u[o]+s[o];return n+u[h]},Le=(function(){var i="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in Ot)i+="|"+e+"\\b";return new RegExp(i+")","gi")})(),Is=/hsl[a]?\(/,Bn=function(e){var t=e.join(" "),r;if(Le.lastIndex=0,Le.test(t))return r=Is.test(t),e[1]=zn(e[1],r),e[0]=zn(e[0],r,Ln(e[1])),!0},Ct,we=(function(){var i=Date.now,e=500,t=33,r=i(),n=r,s=1e3/240,a=s,o=[],l,u,c,h,p,m,_=function f(g){var x=i()-n,v=g===!0,b,w,y,j;if((x>e||x<0)&&(r+=x-t),n+=x,y=n-r,b=y-a,(b>0||v)&&(j=++h.frame,p=y-h.time*1e3,h.time=y=y/1e3,a+=b+(b>=s?4:s-b),w=1),v||(l=u(f)),w)for(m=0;m<o.length;m++)o[m](y,p,j,g)};return h={time:0,frame:0,tick:function(){_(!0)},deltaRatio:function(g){return p/(1e3/(g||60))},wake:function(){hn&&(!hr&&cr()&&(Se=hr=window,pr=Se.document||{},ve.gsap=me,(Se.gsapVersions||(Se.gsapVersions=[])).push(me.version),pn(Ut||Se.GreenSockGlobals||!Se.gsap&&Se||{}),Fn.forEach(In)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&h.sleep(),u=c||function(g){return setTimeout(g,a-h.time*1e3+1|0)},Ct=1,_(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(l),Ct=0,u=yt},lagSmoothing:function(g,x){e=g||1/0,t=Math.min(x||33,e)},fps:function(g){s=1e3/(g||240),a=h.time*1e3+s},add:function(g,x,v){var b=x?function(w,y,j,O){g(w,y,j,O),h.remove(b)}:g;return h.remove(g),o[v?"unshift":"push"](b),lt(),b},remove:function(g,x){~(x=o.indexOf(g))&&o.splice(x,1)&&m>=x&&m--},_listeners:o},h})(),lt=function(){return!Ct&&we.wake()},M={},Zs=/^[\d.\-M][\d.\-,\s]/,Ls=/["']/g,zs=function(e){for(var t={},r=e.substr(1,e.length-3).split(":"),n=r[0],s=1,a=r.length,o,l,u;s<a;s++)l=r[s],o=s!==a-1?l.lastIndexOf(","):l.length,u=l.substr(0,o),t[n]=isNaN(u)?u.replace(Ls,"").trim():+u,n=l.substr(o+1).trim();return t},Bs=function(e){var t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.indexOf("(",t);return e.substring(t,~n&&n<r?e.indexOf(")",r+1):r)},Vs=function(e){var t=(e+"").split("("),r=M[t[0]];return r&&t.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[zs(t[1])]:Bs(e).split(",").map(yn)):M._CE&&Zs.test(e)?M._CE("",e):r},Vn=function(e){return function(t){return 1-e(1-t)}},Hn=function i(e,t){for(var r=e._first,n;r;)r instanceof ce?i(r,t):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==t&&(r.timeline?i(r.timeline,t):(n=r._ease,r._ease=r._yEase,r._yEase=n,r._yoyo=t)),r=r._next},$e=function(e,t){return e&&(G(e)?e:M[e]||Vs(e))||t},We=function(e,t,r,n){r===void 0&&(r=function(l){return 1-t(1-l)}),n===void 0&&(n=function(l){return l<.5?t(l*2)/2:1-t((1-l)*2)/2});var s={easeIn:t,easeOut:r,easeInOut:n},a;return he(e,function(o){M[o]=ve[o]=s,M[a=o.toLowerCase()]=r;for(var l in s)M[a+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=M[o+"."+l]=s[l]}),s},Un=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},Sr=function i(e,t,r){var n=t>=1?t:1,s=(r||(e?.3:.45))/(t<1?t:1),a=s/lr*(Math.asin(1/n)||0),o=function(c){return c===1?1:n*Math.pow(2,-10*c)*gs((c-a)*s)+1},l=e==="out"?o:e==="in"?function(u){return 1-o(1-u)}:Un(o);return s=lr/s,l.config=function(u,c){return i(e,u,c)},l},kr=function i(e,t){t===void 0&&(t=1.70158);var r=function(a){return a?--a*a*((t+1)*a+t)+1:0},n=e==="out"?r:e==="in"?function(s){return 1-r(1-s)}:Un(r);return n.config=function(s){return i(e,s)},n};he("Linear,Quad,Cubic,Quart,Quint,Strong",function(i,e){var t=e<5?e+1:e;We(i+",Power"+(t-1),e?function(r){return Math.pow(r,t)}:function(r){return r},function(r){return 1-Math.pow(1-r,t)},function(r){return r<.5?Math.pow(r*2,t)/2:1-Math.pow((1-r)*2,t)/2})}),M.Linear.easeNone=M.none=M.Linear.easeIn,We("Elastic",Sr("in"),Sr("out"),Sr()),(function(i,e){var t=1/e,r=2*t,n=2.5*t,s=function(o){return o<t?i*o*o:o<r?i*Math.pow(o-1.5/e,2)+.75:o<n?i*(o-=2.25/e)*o+.9375:i*Math.pow(o-2.625/e,2)+.984375};We("Bounce",function(a){return 1-s(1-a)},s)})(7.5625,2.75),We("Expo",function(i){return Math.pow(2,10*(i-1))*i+i*i*i*i*i*i*(1-i)}),We("Circ",function(i){return-(ln(1-i*i)-1)}),We("Sine",function(i){return i===1?1:-_s(i*ps)+1}),We("Back",kr("in"),kr("out"),kr()),M.SteppedEase=M.steps=ve.SteppedEase={config:function(e,t){e===void 0&&(e=1);var r=1/e,n=e+(t?0:1),s=t?1:0,a=1-Z;return function(o){return((n*Tt(0,a,o)|0)+s)*r}}},tt.ease=M["quad.out"],he("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(i){return xr+=i+","+i+"Params,"});var Yn=function(e,t){this.id=ms++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:vn,this.set=t?t.getSetter:Ar},St=(function(){function i(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,at(this,+t.duration,1,1),this.data=t.data,$&&(this._ctx=$,$.data.push(this)),Ct||we.wake()}var e=i.prototype;return e.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},e.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,at(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,n){if(lt(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(Kt(this,r),!s._dp||s.parent||jn(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&ke(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!n||this._initted&&Math.abs(this._zTime)===Z||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),xn(this,r,n)),this},e.time=function(r,n){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+qn(this))%(this._dur+this._rDelay)||(r?this._dur:0),n):this._time},e.totalProgress=function(r,n){return arguments.length?this.totalTime(this.totalDuration()*r,n):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(r,n){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+qn(this),n):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,n){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*s,n):this._repeat?st(this._tTime,s)+1:1},e.timeScale=function(r,n){if(!arguments.length)return this._rts===-Z?0:this._rts;if(this._rts===r)return this;var s=this.parent&&this._ts?Jt(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-Z?0:this._rts,this.totalTime(Tt(-Math.abs(this._delay),this.totalDuration(),s),n!==!1),Qt(this),qs(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(lt(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Z&&(this._tTime-=Z)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=r;var n=this.parent||this._dp;return n&&(n._sort||!this.parent)&&ke(n,this,r-this._delay),this}return this._start},e.endTime=function(r){return this._start+(fe(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var n=this.parent||this._dp;return n?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Jt(n.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=ys);var n=se;return se=r,br(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),se=n,this},e.globalTime=function(r){for(var n=this,s=arguments.length?r:n.rawTime();n;)s=n._start+s/(Math.abs(n._ts)||1),n=n._dp;return!this.parent&&this._sat?this._sat.globalTime(r):s},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,Sn(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var n=this._time;return this._rDelay=r,Sn(this),n?this.time(n):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,n){return this.totalTime(qe(this,r),fe(n))},e.restart=function(r,n){return this.play().totalTime(r?-this._delay:0,fe(n)),this._dur||(this._zTime=-Z),this},e.play=function(r,n){return r!=null&&this.seek(r,n),this.reversed(!1).paused(!1)},e.reverse=function(r,n){return r!=null&&this.seek(r||this.totalDuration(),n),this.reversed(!0).paused(!1)},e.pause=function(r,n){return r!=null&&this.seek(r,n),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-Z:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Z,this},e.isActive=function(){var r=this.parent||this._dp,n=this._start,s;return!!(!r||this._ts&&this._initted&&r.isActive()&&(s=r.rawTime(!0))>=n&&s<this.endTime(!0)-Z)},e.eventCallback=function(r,n,s){var a=this.vars;return arguments.length>1?(n?(a[r]=n,s&&(a[r+"Params"]=s),r==="onUpdate"&&(this._onUpdate=n)):delete a[r],this):a[r]},e.then=function(r){var n=this;return new Promise(function(s){var a=G(r)?r:bn,o=function(){var u=n.then;n.then=null,G(a)&&(a=a(n))&&(a.then||a===n)&&(n.then=u),s(a),n.then=u};n._initted&&n.totalProgress()===1&&n._ts>=0||!n._tTime&&n._ts<0?o():n._prom=o})},e.kill=function(){jt(this)},i})();ye(St.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Z,_prom:0,_ps:!1,_rts:1});var ce=(function(i){on(e,i);function e(r,n){var s;return r===void 0&&(r={}),s=i.call(this,r)||this,s.labels={},s.smoothChildTiming=!!r.smoothChildTiming,s.autoRemoveChildren=!!r.autoRemoveChildren,s._sort=fe(r.sortChildren),W&&ke(r.parent||W,Ee(s),n),r.reversed&&s.reverse(),r.paused&&s.paused(!0),r.scrollTrigger&&On(Ee(s),r.scrollTrigger),s}var t=e.prototype;return t.to=function(n,s,a){return wt(0,arguments,this),this},t.from=function(n,s,a){return wt(1,arguments,this),this},t.fromTo=function(n,s,a,o){return wt(2,arguments,this),this},t.set=function(n,s,a){return s.duration=0,s.parent=this,bt(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new K(n,s,qe(this,a),1),this},t.call=function(n,s,a){return ke(this,K.delayedCall(0,n,s),a)},t.staggerTo=function(n,s,a,o,l,u,c){return a.duration=s,a.stagger=a.stagger||o,a.onComplete=u,a.onCompleteParams=c,a.parent=this,new K(n,a,qe(this,l)),this},t.staggerFrom=function(n,s,a,o,l,u,c){return a.runBackwards=1,bt(a).immediateRender=fe(a.immediateRender),this.staggerTo(n,s,a,o,l,u,c)},t.staggerFromTo=function(n,s,a,o,l,u,c,h){return o.startAt=a,bt(o).immediateRender=fe(o.immediateRender),this.staggerTo(n,s,o,l,u,c,h)},t.render=function(n,s,a){var o=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,c=n<=0?0:Q(n),h=this._zTime<0!=n<0&&(this._initted||!u),p,m,_,f,g,x,v,b,w,y,j,O;if(this!==W&&c>l&&n>=0&&(c=l),c!==this._tTime||a||h){if(o!==this._time&&u&&(c+=this._time-o,n+=this._time-o),p=c,w=this._start,b=this._ts,x=!b,h&&(u||(o=this._zTime),(n||!s)&&(this._zTime=n)),this._repeat){if(j=this._yoyo,g=u+this._rDelay,this._repeat<-1&&n<0)return this.totalTime(g*100+n,s,a);if(p=Q(c%g),c===l?(f=this._repeat,p=u):(y=Q(c/g),f=~~y,f&&f===y&&(p=u,f--),p>u&&(p=u)),y=st(this._tTime,g),!o&&this._tTime&&y!==f&&this._tTime-y*g-this._dur<=0&&(y=f),j&&f&1&&(p=u-p,O=1),f!==y&&!this._lock){var C=j&&y&1,q=C===(j&&f&1);if(f<y&&(C=!C),o=C?0:c%u?u:c,this._lock=1,this.render(o||(O?0:Q(f*g)),s,!u)._lock=0,this._tTime=c,!s&&this.parent&&be(this,"onRepeat"),this.vars.repeatRefresh&&!O&&(this.invalidate()._lock=1),o&&o!==this._time||x!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,l=this._tDur,q&&(this._lock=2,o=C?u:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!O&&this.invalidate()),this._lock=0,!this._ts&&!x)return this;Hn(this,O)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(v=Ss(this,Q(o),Q(p)),v&&(c-=p-(p=v._start))),this._tTime=c,this._time=p,this._act=!b,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=n,o=0),!o&&c&&!s&&!y&&(be(this,"onStart"),this._tTime!==c))return this;if(p>=o&&n>=0)for(m=this._first;m;){if(_=m._next,(m._act||p>=m._start)&&m._ts&&v!==m){if(m.parent!==this)return this.render(n,s,a);if(m.render(m._ts>0?(p-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(p-m._start)*m._ts,s,a),p!==this._time||!this._ts&&!x){v=0,_&&(c+=this._zTime=-Z);break}}m=_}else{m=this._last;for(var E=n<0?n:p;m;){if(_=m._prev,(m._act||E<=m._end)&&m._ts&&v!==m){if(m.parent!==this)return this.render(n,s,a);if(m.render(m._ts>0?(E-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(E-m._start)*m._ts,s,a||se&&br(m)),p!==this._time||!this._ts&&!x){v=0,_&&(c+=this._zTime=E?-Z:Z);break}}m=_}}if(v&&!s&&(this.pause(),v.render(p>=o?0:-Z)._zTime=p>=o?1:-1,this._ts))return this._start=w,Qt(this),this.render(n,s,a);this._onUpdate&&!s&&be(this,"onUpdate",!0),(c===l&&this._tTime>=this.totalDuration()||!c&&o)&&(w===this._start||Math.abs(b)!==Math.abs(this._ts))&&(this._lock||((n||!u)&&(c===l&&this._ts>0||!c&&this._ts<0)&&Ie(this,1),!s&&!(n<0&&!o)&&(c||o||!l)&&(be(this,c===l&&n>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<l&&this.timeScale()>0)&&this._prom())))}return this},t.add=function(n,s){var a=this;if(Me(s)||(s=qe(this,s,n)),!(n instanceof St)){if(oe(n))return n.forEach(function(o){return a.add(o,s)}),this;if(re(n))return this.addLabel(n,s);if(G(n))n=K.delayedCall(0,n);else return this}return this!==n?ke(this,n,s):this},t.getChildren=function(n,s,a,o){n===void 0&&(n=!0),s===void 0&&(s=!0),a===void 0&&(a=!0),o===void 0&&(o=-Te);for(var l=[],u=this._first;u;)u._start>=o&&(u instanceof K?s&&l.push(u):(a&&l.push(u),n&&l.push.apply(l,u.getChildren(!0,s,a)))),u=u._next;return l},t.getById=function(n){for(var s=this.getChildren(1,1,1),a=s.length;a--;)if(s[a].vars.id===n)return s[a]},t.remove=function(n){return re(n)?this.removeLabel(n):G(n)?this.killTweensOf(n):(n.parent===this&&Gt(this,n),n===this._recent&&(this._recent=this._last),Ye(this))},t.totalTime=function(n,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Q(we.time-(this._ts>0?n/this._ts:(this.totalDuration()-n)/-this._ts))),i.prototype.totalTime.call(this,n,s),this._forcing=0,this):this._tTime},t.addLabel=function(n,s){return this.labels[n]=qe(this,s),this},t.removeLabel=function(n){return delete this.labels[n],this},t.addPause=function(n,s,a){var o=K.delayedCall(0,s||yt,a);return o.data="isPause",this._hasPause=1,ke(this,o,qe(this,n))},t.removePause=function(n){var s=this._first;for(n=qe(this,n);s;)s._start===n&&s.data==="isPause"&&Ie(s),s=s._next},t.killTweensOf=function(n,s,a){for(var o=this.getTweensOf(n,a),l=o.length;l--;)ze!==o[l]&&o[l].kill(n,s);return this},t.getTweensOf=function(n,s){for(var a=[],o=je(n),l=this._first,u=Me(s),c;l;)l instanceof K?bs(l._targets,o)&&(u?(!ze||l._initted&&l._ts)&&l.globalTime(0)<=s&&l.globalTime(l.totalDuration())>s:!s||l.isActive())&&a.push(l):(c=l.getTweensOf(o,s)).length&&a.push.apply(a,c),l=l._next;return a},t.tweenTo=function(n,s){s=s||{};var a=this,o=qe(a,n),l=s,u=l.startAt,c=l.onStart,h=l.onStartParams,p=l.immediateRender,m,_=K.to(a,ye({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:s.duration||Math.abs((o-(u&&"time"in u?u.time:a._time))/a.timeScale())||Z,onStart:function(){if(a.pause(),!m){var g=s.duration||Math.abs((o-(u&&"time"in u?u.time:a._time))/a.timeScale());_._dur!==g&&at(_,g,0,1).render(_._time,!0,!0),m=1}c&&c.apply(_,h||[])}},s));return p?_.render(0):_},t.tweenFromTo=function(n,s,a){return this.tweenTo(s,ye({startAt:{time:qe(this,n)}},a))},t.recent=function(){return this._recent},t.nextLabel=function(n){return n===void 0&&(n=this._time),Dn(this,qe(this,n))},t.previousLabel=function(n){return n===void 0&&(n=this._time),Dn(this,qe(this,n),1)},t.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.previousLabel(this._time+Z)},t.shiftChildren=function(n,s,a){a===void 0&&(a=0);for(var o=this._first,l=this.labels,u;o;)o._start>=a&&(o._start+=n,o._end+=n),o=o._next;if(s)for(u in l)l[u]>=a&&(l[u]+=n);return Ye(this)},t.invalidate=function(n){var s=this._first;for(this._lock=0;s;)s.invalidate(n),s=s._next;return i.prototype.invalidate.call(this,n)},t.clear=function(n){n===void 0&&(n=!0);for(var s=this._first,a;s;)a=s._next,this.remove(s),s=a;return this._dp&&(this._time=this._tTime=this._pTime=0),n&&(this.labels={}),Ye(this)},t.totalDuration=function(n){var s=0,a=this,o=a._last,l=Te,u,c,h;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-n:n));if(a._dirty){for(h=a.parent;o;)u=o._prev,o._dirty&&o.totalDuration(),c=o._start,c>l&&a._sort&&o._ts&&!a._lock?(a._lock=1,ke(a,o,c-o._delay,1)._lock=0):l=c,c<0&&o._ts&&(s-=c,(!h&&!a._dp||h&&h.smoothChildTiming)&&(a._start+=c/a._ts,a._time-=c,a._tTime-=c),a.shiftChildren(-c,!1,-1/0),l=0),o._end>s&&o._ts&&(s=o._end),o=u;at(a,a===W&&a._time>s?a._time:s,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(n){if(W._ts&&(xn(W,Jt(n,W)),_n=we.frame),we.frame>=gn){gn+=ge.autoSleep||120;var s=W._first;if((!s||!s._ts)&&ge.autoSleep&&we._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||we.sleep()}}},e})(St);ye(ce.prototype,{_lock:0,_hasPause:0,_forcing:0});var Hs=function(e,t,r,n,s,a,o){var l=new pe(this._pt,e,t,0,1,Qn,null,s),u=0,c=0,h,p,m,_,f,g,x,v;for(l.b=r,l.e=n,r+="",n+="",(x=~n.indexOf("random("))&&(n=qt(n)),a&&(v=[r,n],a(v,e,t),r=v[0],n=v[1]),p=r.match(fr)||[];h=fr.exec(n);)_=h[0],f=n.substring(u,h.index),m?m=(m+1)%5:f.substr(-5)==="rgba("&&(m=1),_!==p[c++]&&(g=parseFloat(p[c-1])||0,l._pt={_next:l._pt,p:f||c===1?f:",",s:g,c:_.charAt(1)==="="?nt(g,_)-g:parseFloat(_)-g,m:m&&m<4?Math.round:0},u=fr.lastIndex);return l.c=u<n.length?n.substring(u,n.length):"",l.fp=o,(dn.test(n)||x)&&(l.e=0),this._pt=l,l},Pr=function(e,t,r,n,s,a,o,l,u,c){G(n)&&(n=n(s||0,e,a));var h=e[t],p=r!=="get"?r:G(h)?u?e[t.indexOf("set")||!G(e["get"+t.substr(3)])?t:"get"+t.substr(3)](u):e[t]():h,m=G(h)?u?Xs:Gn:Mr,_;if(re(n)&&(~n.indexOf("random(")&&(n=qt(n)),n.charAt(1)==="="&&(_=nt(p,n)+(le(p)||0),(_||_===0)&&(n=_))),!c||p!==n||Nr)return!isNaN(p*n)&&n!==""?(_=new pe(this._pt,e,t,+p||0,n-(p||0),typeof h=="boolean"?Js:Jn,0,m),u&&(_.fp=u),o&&_.modifier(o,this,e),this._pt=_):(!h&&!(t in e)&&mr(t,n),Hs.call(this,e,t,p,n,m,l||ge.stringFilter,u))},Us=function(e,t,r,n,s){if(G(e)&&(e=kt(e,s,t,r,n)),!Ce(e)||e.style&&e.nodeType||oe(e)||un(e))return re(e)?kt(e,s,t,r,n):e;var a={},o;for(o in e)a[o]=kt(e[o],s,t,r,n);return a},$n=function(e,t,r,n,s,a){var o,l,u,c;if(xe[e]&&(o=new xe[e]).init(s,o.rawVars?t[e]:Us(t[e],n,s,a,r),r,n,a)!==!1&&(r._pt=l=new pe(r._pt,s,e,0,1,o.render,o,0,o.priority),r!==ot))for(u=r._ptLookup[r._targets.indexOf(s)],c=o._props.length;c--;)u[o._props[c]]=l;return o},ze,Nr,Er=function i(e,t,r){var n=e.vars,s=n.ease,a=n.startAt,o=n.immediateRender,l=n.lazy,u=n.onUpdate,c=n.runBackwards,h=n.yoyoEase,p=n.keyframes,m=n.autoRevert,_=e._dur,f=e._startAt,g=e._targets,x=e.parent,v=x&&x.data==="nested"?x.vars.targets:g,b=e._overwrite==="auto"&&!or,w=e.timeline,y,j,O,C,q,E,D,R,A,H,V,z,U;if(w&&(!p||!s)&&(s="none"),e._ease=$e(s,tt.ease),e._yEase=h?Vn($e(h===!0?s:h,tt.ease)):0,h&&e._yoyo&&!e._repeat&&(h=e._yEase,e._yEase=e._ease,e._ease=h),e._from=!w&&!!n.runBackwards,!w||p&&!n.stagger){if(R=g[0]?Ue(g[0]).harness:0,z=R&&n[R.prop],y=Xt(n,_r),f&&(f._zTime<0&&f.progress(1),t<0&&c&&o&&!m?f.render(-1,!0):f.revert(c&&_?Yt:xs),f._lazy=0),a){if(Ie(e._startAt=K.set(g,ye({data:"isStart",overwrite:!1,parent:x,immediateRender:!0,lazy:!f&&fe(l),startAt:null,delay:0,onUpdate:u&&function(){return be(e,"onUpdate")},stagger:0},a))),e._startAt._dp=0,e._startAt._sat=e,t<0&&(se||!o&&!m)&&e._startAt.revert(Yt),o&&_&&t<=0&&r<=0){t&&(e._zTime=t);return}}else if(c&&_&&!f){if(t&&(o=!1),O=ye({overwrite:!1,data:"isFromStart",lazy:o&&!f&&fe(l),immediateRender:o,stagger:0,parent:x},y),z&&(O[R.prop]=z),Ie(e._startAt=K.set(g,O)),e._startAt._dp=0,e._startAt._sat=e,t<0&&(se?e._startAt.revert(Yt):e._startAt.render(-1,!0)),e._zTime=t,!o)i(e._startAt,Z,Z);else if(!t)return}for(e._pt=e._ptCache=0,l=_&&fe(l)||l&&!_,j=0;j<g.length;j++){if(q=g[j],D=q._gsap||yr(g)[j]._gsap,e._ptLookup[j]=H={},gr[D.id]&&Fe.length&&Wt(),V=v===g?j:v.indexOf(q),R&&(A=new R).init(q,z||y,e,V,v)!==!1&&(e._pt=C=new pe(e._pt,q,A.name,0,1,A.render,A,0,A.priority),A._props.forEach(function(ne){H[ne]=C}),A.priority&&(E=1)),!R||z)for(O in y)xe[O]&&(A=$n(O,y,e,V,q,v))?A.priority&&(E=1):H[O]=C=Pr.call(e,q,O,"get",y[O],V,v,0,n.stringFilter);e._op&&e._op[j]&&e.kill(q,e._op[j]),b&&e._pt&&(ze=e,W.killTweensOf(q,H,e.globalTime(t)),U=!e.parent,ze=0),e._pt&&l&&(gr[D.id]=1)}E&&Kn(e),e._onInit&&e._onInit(e)}e._onUpdate=u,e._initted=(!e._op||e._pt)&&!U,p&&t<=0&&w.render(Te,!0,!0)},Ys=function(e,t,r,n,s,a,o,l){var u=(e._pt&&e._ptCache||(e._ptCache={}))[t],c,h,p,m;if(!u)for(u=e._ptCache[t]=[],p=e._ptLookup,m=e._targets.length;m--;){if(c=p[m][t],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==t&&c.fp!==t;)c=c._next;if(!c)return Nr=1,e.vars[t]="+=0",Er(e,o),Nr=0,l?xt(t+" not eligible for reset"):1;u.push(c)}for(m=u.length;m--;)h=u[m],c=h._pt||h,c.s=(n||n===0)&&!s?n:c.s+(n||0)+a*c.c,c.c=r-c.s,h.e&&(h.e=J(r)+le(h.e)),h.b&&(h.b=c.s+le(h.b))},$s=function(e,t){var r=e[0]?Ue(e[0]).harness:0,n=r&&r.aliases,s,a,o,l;if(!n)return t;s=it({},t);for(a in n)if(a in s)for(l=n[a].split(","),o=l.length;o--;)s[l[o]]=s[a];return s},Ws=function(e,t,r,n){var s=t.ease||n||"power1.inOut",a,o;if(oe(t))o=r[e]||(r[e]=[]),t.forEach(function(l,u){return o.push({t:u/(t.length-1)*100,v:l,e:s})});else for(a in t)o=r[a]||(r[a]=[]),a==="ease"||o.push({t:parseFloat(e),v:t[a],e:s})},kt=function(e,t,r,n,s){return G(e)?e.call(t,r,n,s):re(e)&&~e.indexOf("random(")?qt(e):e},Wn=xr+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Xn={};he(Wn+",id,stagger,delay,duration,paused,scrollTrigger",function(i){return Xn[i]=1});var K=(function(i){on(e,i);function e(r,n,s,a){var o;typeof n=="number"&&(s.duration=n,n=s,s=null),o=i.call(this,a?n:bt(n))||this;var l=o.vars,u=l.duration,c=l.delay,h=l.immediateRender,p=l.stagger,m=l.overwrite,_=l.keyframes,f=l.defaults,g=l.scrollTrigger,x=l.yoyoEase,v=n.parent||W,b=(oe(r)||un(r)?Me(r[0]):"length"in n)?[r]:je(r),w,y,j,O,C,q,E,D;if(o._targets=b.length?yr(b):xt("GSAP target "+r+" not found. https://gsap.com",!ge.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=m,_||p||Ht(u)||Ht(c)){if(n=o.vars,w=o.timeline=new ce({data:"nested",defaults:f||{},targets:v&&v.data==="nested"?v.vars.targets:b}),w.kill(),w.parent=w._dp=Ee(o),w._start=0,p||Ht(u)||Ht(c)){if(O=b.length,E=p&&Nn(p),Ce(p))for(C in p)~Wn.indexOf(C)&&(D||(D={}),D[C]=p[C]);for(y=0;y<O;y++)j=Xt(n,Xn),j.stagger=0,x&&(j.yoyoEase=x),D&&it(j,D),q=b[y],j.duration=+kt(u,Ee(o),y,q,b),j.delay=(+kt(c,Ee(o),y,q,b)||0)-o._delay,!p&&O===1&&j.delay&&(o._delay=c=j.delay,o._start+=c,j.delay=0),w.to(q,j,E?E(y,q,b):0),w._ease=M.none;w.duration()?u=c=0:o.timeline=0}else if(_){bt(ye(w.vars.defaults,{ease:"none"})),w._ease=$e(_.ease||n.ease||"none");var R=0,A,H,V;if(oe(_))_.forEach(function(z){return w.to(b,z,">")}),w.duration();else{j={};for(C in _)C==="ease"||C==="easeEach"||Ws(C,_[C],j,_.easeEach);for(C in j)for(A=j[C].sort(function(z,U){return z.t-U.t}),R=0,y=0;y<A.length;y++)H=A[y],V={ease:H.e,duration:(H.t-(y?A[y-1].t:0))/100*u},V[C]=H.v,w.to(b,V,R),R+=V.duration;w.duration()<u&&w.to({},{duration:u-w.duration()})}}u||o.duration(u=w.duration())}else o.timeline=0;return m===!0&&!or&&(ze=Ee(o),W.killTweensOf(b),ze=0),ke(v,Ee(o),s),n.reversed&&o.reverse(),n.paused&&o.paused(!0),(h||!u&&!_&&o._start===Q(v._time)&&fe(h)&&js(Ee(o))&&v.data!=="nested")&&(o._tTime=-Z,o.render(Math.max(0,-c)||0)),g&&On(Ee(o),g),o}var t=e.prototype;return t.render=function(n,s,a){var o=this._time,l=this._tDur,u=this._dur,c=n<0,h=n>l-Z&&!c?l:n<Z?0:n,p,m,_,f,g,x,v,b,w;if(!u)Cs(this,n,s,a);else if(h!==this._tTime||!n||a||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c||this._lazy){if(p=h,b=this.timeline,this._repeat){if(f=u+this._rDelay,this._repeat<-1&&c)return this.totalTime(f*100+n,s,a);if(p=Q(h%f),h===l?(_=this._repeat,p=u):(g=Q(h/f),_=~~g,_&&_===g?(p=u,_--):p>u&&(p=u)),x=this._yoyo&&_&1,x&&(w=this._yEase,p=u-p),g=st(this._tTime,f),p===o&&!a&&this._initted&&_===g)return this._tTime=h,this;_!==g&&(b&&this._yEase&&Hn(b,x),this.vars.repeatRefresh&&!x&&!this._lock&&p!==f&&this._initted&&(this._lock=a=1,this.render(Q(f*_),!0).invalidate()._lock=0))}if(!this._initted){if(Cn(this,c?n:p,a,s,h))return this._tTime=0,this;if(o!==this._time&&!(a&&this.vars.repeatRefresh&&_!==g))return this;if(u!==this._dur)return this.render(n,s,a)}if(this._tTime=h,this._time=p,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=v=(w||this._ease)(p/u),this._from&&(this.ratio=v=1-v),!o&&h&&!s&&!g&&(be(this,"onStart"),this._tTime!==h))return this;for(m=this._pt;m;)m.r(v,m.d),m=m._next;b&&b.render(n<0?n:b._dur*b._ease(p/this._dur),s,a)||this._startAt&&(this._zTime=n),this._onUpdate&&!s&&(c&&wr(this,n,s,a),be(this,"onUpdate")),this._repeat&&_!==g&&this.vars.onRepeat&&!s&&this.parent&&be(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(c&&!this._onUpdate&&wr(this,n,!0,!0),(n||!u)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&Ie(this,1),!s&&!(c&&!o)&&(h||o||x)&&(be(this,h===l?"onComplete":"onReverseComplete",!0),this._prom&&!(h<l&&this.timeScale()>0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(n){return(!n||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(n),i.prototype.invalidate.call(this,n)},t.resetTo=function(n,s,a,o,l){Ct||we.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Er(this,u),c=this._ease(u/this._dur),Ys(this,n,s,a,o,c,u,l)?this.resetTo(n,s,a,o,1):(Kt(this,0),this.parent||Tn(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(n,s){if(s===void 0&&(s="all"),!n&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?jt(this):this.scrollTrigger&&this.scrollTrigger.kill(!!se),this;if(this.timeline){var a=this.timeline.totalDuration();return this.timeline.killTweensOf(n,s,ze&&ze.vars.overwrite!==!0)._first||jt(this),this.parent&&a!==this.timeline.totalDuration()&&at(this,this._dur*this.timeline._tDur/a,0,1),this}var o=this._targets,l=n?je(n):o,u=this._ptLookup,c=this._pt,h,p,m,_,f,g,x;if((!s||s==="all")&&Ts(o,l))return s==="all"&&(this._pt=0),jt(this);for(h=this._op=this._op||[],s!=="all"&&(re(s)&&(f={},he(s,function(v){return f[v]=1}),s=f),s=$s(o,s)),x=o.length;x--;)if(~l.indexOf(o[x])){p=u[x],s==="all"?(h[x]=s,_=p,m={}):(m=h[x]=h[x]||{},_=s);for(f in _)g=p&&p[f],g&&((!("kill"in g.d)||g.d.kill(f)===!0)&&Gt(this,g,"_pt"),delete p[f]),m!=="all"&&(m[f]=1)}return this._initted&&!this._pt&&c&&jt(this),this},e.to=function(n,s){return new e(n,s,arguments[2])},e.from=function(n,s){return wt(1,arguments)},e.delayedCall=function(n,s,a,o){return new e(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:n,onComplete:s,onReverseComplete:s,onCompleteParams:a,onReverseCompleteParams:a,callbackScope:o})},e.fromTo=function(n,s,a){return wt(2,arguments)},e.set=function(n,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new e(n,s)},e.killTweensOf=function(n,s,a){return W.killTweensOf(n,s,a)},e})(St);ye(K.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),he("staggerTo,staggerFrom,staggerFromTo",function(i){K[i]=function(){var e=new ce,t=qr.call(arguments,0);return t.splice(i==="staggerFromTo"?5:4,0,0),e[i].apply(e,t)}});var Mr=function(e,t,r){return e[t]=r},Gn=function(e,t,r){return e[t](r)},Xs=function(e,t,r,n){return e[t](n.fp,r)},Gs=function(e,t,r){return e.setAttribute(t,r)},Ar=function(e,t){return G(e[t])?Gn:ur(e[t])&&e.setAttribute?Gs:Mr},Jn=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Js=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},Qn=function(e,t){var r=t._pt,n="";if(!e&&t.b)n=t.b;else if(e===1&&t.e)n=t.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+n,r=r._next;n+=t.c}t.set(t.t,t.p,n,t)},Rr=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},Qs=function(e,t,r,n){for(var s=this._pt,a;s;)a=s._next,s.p===n&&s.modifier(e,t,r),s=a},Ks=function(e){for(var t=this._pt,r,n;t;)n=t._next,t.p===e&&!t.op||t.op===e?Gt(this,t,"_pt"):t.dep||(r=1),t=n;return!r},ea=function(e,t,r,n){n.mSet(e,t,n.m.call(n.tween,r,n.mt),n)},Kn=function(e){for(var t=e._pt,r,n,s,a;t;){for(r=t._next,n=s;n&&n.pr>t.pr;)n=n._next;(t._prev=n?n._prev:a)?t._prev._next=t:s=t,(t._next=n)?n._prev=t:a=t,t=r}e._pt=s},pe=(function(){function i(t,r,n,s,a,o,l,u,c){this.t=r,this.s=s,this.c=a,this.p=n,this.r=o||Jn,this.d=l||this,this.set=u||Mr,this.pr=c||0,this._next=t,t&&(t._prev=this)}var e=i.prototype;return e.modifier=function(r,n,s){this.mSet=this.mSet||this.set,this.set=ea,this.m=r,this.mt=s,this.tween=n},i})();he(xr+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(i){return _r[i]=1}),ve.TweenMax=ve.TweenLite=K,ve.TimelineLite=ve.TimelineMax=ce,W=new ce({sortChildren:!1,defaults:tt,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),ge.stringFilter=Bn;var Xe=[],er={},ta=[],ei=0,ra=0,Dr=function(e){return(er[e]||ta).map(function(t){return t()})},Fr=function(){var e=Date.now(),t=[];e-ei>2&&(Dr("matchMediaInit"),Xe.forEach(function(r){var n=r.queries,s=r.conditions,a,o,l,u;for(o in n)a=Se.matchMedia(n[o]).matches,a&&(l=1),a!==s[o]&&(s[o]=a,u=1);u&&(r.revert(),l&&t.push(r))}),Dr("matchMediaRevert"),t.forEach(function(r){return r.onMatch(r,function(n){return r.add(null,n)})}),ei=e,Dr("matchMedia"))},ti=(function(){function i(t,r){this.selector=r&&jr(r),this.data=[],this._r=[],this.isReverted=!1,this.id=ra++,t&&this.add(t)}var e=i.prototype;return e.add=function(r,n,s){G(r)&&(s=n,n=r,r=G);var a=this,o=function(){var u=$,c=a.selector,h;return u&&u!==a&&u.data.push(a),s&&(a.selector=jr(s)),$=a,h=n.apply(a,arguments),G(h)&&a._r.push(h),$=u,a.selector=c,a.isReverted=!1,h};return a.last=o,r===G?o(a,function(l){return a.add(null,l)}):r?a[r]=o:o},e.ignore=function(r){var n=$;$=null,r(this),$=n},e.getTweens=function(){var r=[];return this.data.forEach(function(n){return n instanceof i?r.push.apply(r,n.getTweens()):n instanceof K&&!(n.parent&&n.parent.data==="nested")&&r.push(n)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,n){var s=this;if(r?(function(){for(var o=s.getTweens(),l=s.data.length,u;l--;)u=s.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(c){return o.splice(o.indexOf(c),1)}));for(o.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,h){return h.g-c.g||-1/0}).forEach(function(c){return c.t.revert(r)}),l=s.data.length;l--;)u=s.data[l],u instanceof ce?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof K)&&u.revert&&u.revert(r);s._r.forEach(function(c){return c(r,s)}),s.isReverted=!0})():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),n)for(var a=Xe.length;a--;)Xe[a].id===this.id&&Xe.splice(a,1)},e.revert=function(r){this.kill(r||{})},i})(),na=(function(){function i(t){this.contexts=[],this.scope=t,$&&$.data.push(this)}var e=i.prototype;return e.add=function(r,n,s){Ce(r)||(r={matches:r});var a=new ti(0,s||this.scope),o=a.conditions={},l,u,c;$&&!a.selector&&(a.selector=$.selector),this.contexts.push(a),n=a.add("onMatch",n),a.queries=r;for(u in r)u==="all"?c=1:(l=Se.matchMedia(r[u]),l&&(Xe.indexOf(a)<0&&Xe.push(a),(o[u]=l.matches)&&(c=1),l.addListener?l.addListener(Fr):l.addEventListener("change",Fr)));return c&&n(a,function(h){return a.add(null,h)}),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(n){return n.kill(r,!0)})},i})(),tr={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach(function(n){return In(n)})},timeline:function(e){return new ce(e)},getTweensOf:function(e,t){return W.getTweensOf(e,t)},getProperty:function(e,t,r,n){re(e)&&(e=je(e)[0]);var s=Ue(e||{}).get,a=r?bn:yn;return r==="native"&&(r=""),e&&(t?a((xe[t]&&xe[t].get||s)(e,t,r,n)):function(o,l,u){return a((xe[o]&&xe[o].get||s)(e,o,l,u))})},quickSetter:function(e,t,r){if(e=je(e),e.length>1){var n=e.map(function(c){return me.quickSetter(c,t,r)}),s=n.length;return function(c){for(var h=s;h--;)n[h](c)}}e=e[0]||{};var a=xe[t],o=Ue(e),l=o.harness&&(o.harness.aliases||{})[t]||t,u=a?function(c){var h=new a;ot._pt=0,h.init(e,r?c+r:c,ot,0,[e]),h.render(1,h),ot._pt&&Rr(1,ot)}:o.set(e,l);return a?u:function(c){return u(e,l,r?c+r:c,o,1)}},quickTo:function(e,t,r){var n,s=me.to(e,ye((n={},n[t]="+=0.1",n.paused=!0,n.stagger=0,n),r||{})),a=function(l,u,c){return s.resetTo(t,l,u,c)};return a.tween=s,a},isTweening:function(e){return W.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=$e(e.ease,tt.ease)),wn(tt,e||{})},config:function(e){return wn(ge,e||{})},registerEffect:function(e){var t=e.name,r=e.effect,n=e.plugins,s=e.defaults,a=e.extendTimeline;(n||"").split(",").forEach(function(o){return o&&!xe[o]&&!ve[o]&&xt(t+" effect requires "+o+" plugin.")}),vr[t]=function(o,l,u){return r(je(o),ye(l||{},s),u)},a&&(ce.prototype[t]=function(o,l,u){return this.add(vr[t](o,Ce(l)?l:(u=l)&&{},this),u)})},registerEase:function(e,t){M[e]=$e(t)},parseEase:function(e,t){return arguments.length?$e(e,t):M},getById:function(e){return W.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var r=new ce(e),n,s;for(r.smoothChildTiming=fe(e.smoothChildTiming),W.remove(r),r._dp=0,r._time=r._tTime=W._time,n=W._first;n;)s=n._next,(t||!(!n._dur&&n instanceof K&&n.vars.onComplete===n._targets[0]))&&ke(r,n,n._start-n._delay),n=s;return ke(W,r,0),r},context:function(e,t){return e?new ti(e,t):$},matchMedia:function(e){return new na(e)},matchMediaRefresh:function(){return Xe.forEach(function(e){var t=e.conditions,r,n;for(n in t)t[n]&&(t[n]=!1,r=1);r&&e.revert()})||Fr()},addEventListener:function(e,t){var r=er[e]||(er[e]=[]);~r.indexOf(t)||r.push(t)},removeEventListener:function(e,t){var r=er[e],n=r&&r.indexOf(t);n>=0&&r.splice(n,1)},utils:{wrap:Rs,wrapYoyo:Ds,distribute:Nn,random:Mn,snap:En,normalize:As,getUnit:le,clamp:Ps,splitColor:Zn,toArray:je,selector:jr,mapRange:Rn,pipe:Es,unitize:Ms,interpolate:Fs,shuffle:Pn},install:pn,effects:vr,ticker:we,updateRoot:ce.updateRoot,plugins:xe,globalTimeline:W,core:{PropTween:pe,globals:mn,Tween:K,Timeline:ce,Animation:St,getCache:Ue,_removeLinkedListItem:Gt,reverting:function(){return se},context:function(e){return e&&$&&($.data.push(e),e._ctx=$),$},suppressOverwrites:function(e){return or=e}}};he("to,from,fromTo,delayedCall,set,killTweensOf",function(i){return tr[i]=K[i]}),we.add(ce.updateRoot),ot=tr.to({},{duration:0});var ia=function(e,t){for(var r=e._pt;r&&r.p!==t&&r.op!==t&&r.fp!==t;)r=r._next;return r},sa=function(e,t){var r=e._targets,n,s,a;for(n in t)for(s=r.length;s--;)a=e._ptLookup[s][n],a&&(a=a.d)&&(a._pt&&(a=ia(a,n)),a&&a.modifier&&a.modifier(t[n],e,r[s],n))},Ir=function(e,t){return{name:e,headless:1,rawVars:1,init:function(n,s,a){a._onInit=function(o){var l,u;if(re(s)&&(l={},he(s,function(c){return l[c]=1}),s=l),t){l={};for(u in s)l[u]=t(s[u]);s=l}sa(o,s)}}}},me=tr.registerPlugin({name:"attr",init:function(e,t,r,n,s){var a,o,l;this.tween=r;for(a in t)l=e.getAttribute(a)||"",o=this.add(e,"setAttribute",(l||0)+"",t[a],n,s,0,0,a),o.op=a,o.b=l,this._props.push(a)},render:function(e,t){for(var r=t._pt;r;)se?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,init:function(e,t){for(var r=t.length;r--;)this.add(e,r,e[r]||0,t[r],0,0,0,0,0,1)}},Ir("roundProps",Or),Ir("modifiers"),Ir("snap",En))||tr;K.version=ce.version=me.version="3.13.0",hn=1,cr()&<(),M.Power0,M.Power1,M.Power2,M.Power3,M.Power4,M.Linear,M.Quad,M.Cubic,M.Quart,M.Quint,M.Strong,M.Elastic,M.Back,M.SteppedEase,M.Bounce,M.Sine,M.Expo,M.Circ;/*!
|
|
42
42
|
* CSSPlugin 3.13.0
|
|
43
43
|
* https://gsap.com
|
|
44
44
|
*
|
|
45
45
|
* Copyright 2008-2025, GreenSock. All rights reserved.
|
|
46
46
|
* Subject to the terms at https://gsap.com/standard-license
|
|
47
47
|
* @author: Jack Doyle, jack@greensock.com
|
|
48
|
-
*/var ri,Be,ut,Zr,Ge,ni,Lr,aa=function(){return typeof window<"u"},Ae={},Je=180/Math.PI,ct=Math.PI/180,dt=Math.atan2,ii=1e8,zr=/([A-Z])/g,oa=/(left|right|width|margin|padding|x)/i,la=/[\s,\(]\S/,Pe={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Br=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},ua=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},ca=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},da=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},si=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},ai=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},fa=function(e,t,r){return e.style[t]=r},ha=function(e,t,r){return e.style.setProperty(t,r)},pa=function(e,t,r){return e._gsap[t]=r},ma=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},_a=function(e,t,r,n,s){var a=e._gsap;a.scaleX=a.scaleY=r,a.renderTransform(s,a)},ga=function(e,t,r,n,s){var a=e._gsap;a[t]=r,a.renderTransform(s,a)},X="transform",_e=X+"Origin",va=function i(e,t){var r=this,n=this.target,s=n.style,a=n._gsap;if(e in Ae&&s){if(this.tfm=this.tfm||{},e!=="transform")e=Pe[e]||e,~e.indexOf(",")?e.split(",").forEach(function(o){return r.tfm[o]=Re(n,o)}):this.tfm[e]=a.x?a[e]:Re(n,e),e===_e&&(this.tfm.zOrigin=a.zOrigin);else return Pe.transform.split(",").forEach(function(o){return i.call(r,o,t)});if(this.props.indexOf(X)>=0)return;a.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(_e,t,"")),e=X}(s||t)&&this.props.push(e,t,s[e])},oi=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},xa=function(){var e=this.props,t=this.target,r=t.style,n=t._gsap,s,a;for(s=0;s<e.length;s+=3)e[s+1]?e[s+1]===2?t[e[s]](e[s+2]):t[e[s]]=e[s+2]:e[s+2]?r[e[s]]=e[s+2]:r.removeProperty(e[s].substr(0,2)==="--"?e[s]:e[s].replace(zr,"-$1").toLowerCase());if(this.tfm){for(a in this.tfm)n[a]=this.tfm[a];n.svg&&(n.renderTransform(),t.setAttribute("data-svg-origin",this.svgo||"")),s=Lr(),(!s||!s.isStart)&&!r[X]&&(oi(r),n.zOrigin&&r[_e]&&(r[_e]+=" "+n.zOrigin+"px",n.zOrigin=0,n.renderTransform()),n.uncache=1)}},li=function(e,t){var r={target:e,props:[],revert:xa,save:va};return e._gsap||me.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(n){return r.save(n)}),r},ui,Vr=function(e,t){var r=Be.createElementNS?Be.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Be.createElement(e);return r&&r.style?r:Be.createElement(e)},Oe=function i(e,t,r){var n=getComputedStyle(e);return n[t]||n.getPropertyValue(t.replace(zr,"-$1").toLowerCase())||n.getPropertyValue(t)||!r&&i(e,ft(t)||t,1)||""},ci="O,Moz,ms,Ms,Webkit".split(","),ft=function(e,t,r){var n=t||Ge,s=n.style,a=5;if(e in s&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);a--&&!(ci[a]+e in s););return a<0?null:(a===3?"ms":a>=0?ci[a]:"")+e},Hr=function(){aa()&&window.document&&(ri=window,Be=ri.document,ut=Be.documentElement,Ge=Vr("div")||{style:{}},Vr("div"),X=ft(X),_e=X+"Origin",Ge.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ui=!!ft("perspective"),Lr=me.core.reverting,Zr=1)},di=function(e){var t=e.ownerSVGElement,r=Vr("svg",t&&t.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=e.cloneNode(!0),s;n.style.display="block",r.appendChild(n),ut.appendChild(r);try{s=n.getBBox()}catch{}return r.removeChild(n),ut.removeChild(r),s},fi=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},hi=function(e){var t,r;try{t=e.getBBox()}catch{t=di(e),r=1}return t&&(t.width||t.height)||r||(t=di(e)),t&&!t.width&&!t.x&&!t.y?{x:+fi(e,["x","cx","x1"])||0,y:+fi(e,["y","cy","y1"])||0,width:0,height:0}:t},pi=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&hi(e))},Qe=function(e,t){if(t){var r=e.style,n;t in Ae&&t!==_e&&(t=X),r.removeProperty?(n=t.substr(0,2),(n==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),r.removeProperty(n==="--"?t:t.replace(zr,"-$1").toLowerCase())):r.removeAttribute(t)}},Ve=function(e,t,r,n,s,a){var o=new pe(e._pt,t,r,0,1,a?ai:si);return e._pt=o,o.b=n,o.e=s,e._props.push(r),o},mi={deg:1,rad:1,turn:1},ya={grid:1,flex:1},He=function i(e,t,r,n){var s=parseFloat(r)||0,a=(r+"").trim().substr((s+"").length)||"px",o=Ge.style,l=oa.test(t),u=e.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),h=100,p=n==="px",m=n==="%",_,f,g,x;if(n===a||!s||mi[n]||mi[a])return s;if(a!=="px"&&!p&&(s=i(e,t,r,"px")),x=e.getCTM&&pi(e),(m||a==="%")&&(Ae[t]||~t.indexOf("adius")))return _=x?e.getBBox()[l?"width":"height"]:e[c],J(m?s/_*h:s/100*_);if(o[l?"width":"height"]=h+(p?a:n),f=n!=="rem"&&~t.indexOf("adius")||n==="em"&&e.appendChild&&!u?e:e.parentNode,x&&(f=(e.ownerSVGElement||{}).parentNode),(!f||f===Be||!f.appendChild)&&(f=Be.body),g=f._gsap,g&&m&&g.width&&l&&g.time===we.time&&!g.uncache)return J(s/g.width*h);if(m&&(t==="height"||t==="width")){var v=e.style[t];e.style[t]=h+n,_=e[c],v?e.style[t]=v:Qe(e,t)}else(m||a==="%")&&!ya[Oe(f,"display")]&&(o.position=Oe(e,"position")),f===e&&(o.position="static"),f.appendChild(Ge),_=Ge[c],f.removeChild(Ge),o.position="absolute";return l&&m&&(g=Ue(f),g.time=we.time,g.width=f[c]),J(p?_*s/h:_&&s?h/_*s:0)},Re=function(e,t,r,n){var s;return Zr||Hr(),t in Pe&&t!=="transform"&&(t=Pe[t],~t.indexOf(",")&&(t=t.split(",")[0])),Ae[t]&&t!=="transform"?(s=Nt(e,n),s=t!=="transformOrigin"?s[t]:s.svg?s.origin:nr(Oe(e,_e))+" "+s.zOrigin+"px"):(s=e.style[t],(!s||s==="auto"||n||~(s+"").indexOf("calc("))&&(s=rr[t]&&rr[t](e,t,r)||Oe(e,t)||vn(e,t)||(t==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?He(e,t,s,r)+r:s},ba=function(e,t,r,n){if(!r||r==="none"){var s=ft(t,e,1),a=s&&Oe(e,s,1);a&&a!==r?(t=s,r=a):t==="borderColor"&&(r=Oe(e,"borderTopColor"))}var o=new pe(this._pt,e.style,t,0,1,Qn),l=0,u=0,c,h,p,m,_,f,g,x,v,b,w,y;if(o.b=r,o.e=n,r+="",n+="",n.substring(0,6)==="var(--"&&(n=Oe(e,n.substring(4,n.indexOf(")")))),n==="auto"&&(f=e.style[t],e.style[t]=n,n=Oe(e,t)||n,f?e.style[t]=f:Qe(e,t)),c=[r,n],Bn(c),r=c[0],n=c[1],p=r.match(rt)||[],y=n.match(rt)||[],y.length){for(;h=rt.exec(n);)g=h[0],v=n.substring(l,h.index),_?_=(_+1)%5:(v.substr(-5)==="rgba("||v.substr(-5)==="hsla(")&&(_=1),g!==(f=p[u++]||"")&&(m=parseFloat(f)||0,w=f.substr((m+"").length),g.charAt(1)==="="&&(g=nt(m,g)+w),x=parseFloat(g),b=g.substr((x+"").length),l=rt.lastIndex-b.length,b||(b=b||ge.units[t]||w,l===n.length&&(n+=b,o.e+=b)),w!==b&&(m=He(e,t,f,b)||0),o._pt={_next:o._pt,p:v||u===1?v:",",s:m,c:x-m,m:_&&_<4||t==="zIndex"?Math.round:0});o.c=l<n.length?n.substring(l,n.length):""}else o.r=t==="display"&&n==="none"?ai:si;return dn.test(n)&&(o.e=0),this._pt=o,o},_i={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},wa=function(e){var t=e.split(" "),r=t[0],n=t[1]||"50%";return(r==="top"||r==="bottom"||n==="left"||n==="right")&&(e=r,r=n,n=e),t[0]=_i[r]||r,t[1]=_i[n]||n,t.join(" ")},Ta=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var r=t.t,n=r.style,s=t.u,a=r._gsap,o,l,u;if(s==="all"||s===!0)n.cssText="",l=1;else for(s=s.split(","),u=s.length;--u>-1;)o=s[u],Ae[o]&&(l=1,o=o==="transformOrigin"?_e:X),Qe(r,o);l&&(Qe(r,X),a&&(a.svg&&r.removeAttribute("transform"),n.scale=n.rotate=n.translate="none",Nt(r,1),a.uncache=1,oi(n)))}},rr={clearProps:function(e,t,r,n,s){if(s.data!=="isFromStart"){var a=e._pt=new pe(e._pt,t,r,0,0,Ta);return a.u=n,a.pr=-10,a.tween=s,e._props.push(r),1}}},Pt=[1,0,0,1,0,0],gi={},vi=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},xi=function(e){var t=Oe(e,X);return vi(t)?Pt:t.substr(7).match(cn).map(J)},Ur=function(e,t){var r=e._gsap||Ue(e),n=e.style,s=xi(e),a,o,l,u;return r.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,s=[l.a,l.b,l.c,l.d,l.e,l.f],s.join(",")==="1,0,0,1,0,0"?Pt:s):(s===Pt&&!e.offsetParent&&e!==ut&&!r.svg&&(l=n.display,n.display="block",a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,o=e.nextElementSibling,ut.appendChild(e)),s=xi(e),l?n.display=l:Qe(e,"display"),u&&(o?a.insertBefore(e,o):a?a.appendChild(e):ut.removeChild(e))),t&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},Yr=function(e,t,r,n,s,a){var o=e._gsap,l=s||Ur(e,!0),u=o.xOrigin||0,c=o.yOrigin||0,h=o.xOffset||0,p=o.yOffset||0,m=l[0],_=l[1],f=l[2],g=l[3],x=l[4],v=l[5],b=t.split(" "),w=parseFloat(b[0])||0,y=parseFloat(b[1])||0,j,O,C,q;r?l!==Pt&&(O=m*g-_*f)&&(C=w*(g/O)+y*(-f/O)+(f*v-g*x)/O,q=w*(-_/O)+y*(m/O)-(m*v-_*x)/O,w=C,y=q):(j=hi(e),w=j.x+(~b[0].indexOf("%")?w/100*j.width:w),y=j.y+(~(b[1]||b[0]).indexOf("%")?y/100*j.height:y)),n||n!==!1&&o.smooth?(x=w-u,v=y-c,o.xOffset=h+(x*m+v*f)-x,o.yOffset=p+(x*_+v*g)-v):o.xOffset=o.yOffset=0,o.xOrigin=w,o.yOrigin=y,o.smooth=!!n,o.origin=t,o.originIsAbsolute=!!r,e.style[_e]="0px 0px",a&&(Ve(a,o,"xOrigin",u,w),Ve(a,o,"yOrigin",c,y),Ve(a,o,"xOffset",h,o.xOffset),Ve(a,o,"yOffset",p,o.yOffset)),e.setAttribute("data-svg-origin",w+" "+y)},Nt=function(e,t){var r=e._gsap||new Yn(e);if("x"in r&&!t&&!r.uncache)return r;var n=e.style,s=r.scaleX<0,a="px",o="deg",l=getComputedStyle(e),u=Oe(e,_e)||"0",c,h,p,m,_,f,g,x,v,b,w,y,j,O,C,q,E,F,D,R,H,V,z,U,ie,de,T,S,P,B,ee,se;return c=h=p=f=g=x=v=b=w=0,m=_=1,r.svg=!!(e.getCTM&&pi(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(n[X]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[X]!=="none"?l[X]:"")),n.scale=n.rotate=n.translate="none"),O=Ur(e,r.svg),r.svg&&(r.uncache?(ie=e.getBBox(),u=r.xOrigin-ie.x+"px "+(r.yOrigin-ie.y)+"px",U=""):U=!t&&e.getAttribute("data-svg-origin"),Yr(e,U||u,!!U||r.originIsAbsolute,r.smooth!==!1,O)),y=r.xOrigin||0,j=r.yOrigin||0,O!==Pt&&(F=O[0],D=O[1],R=O[2],H=O[3],c=V=O[4],h=z=O[5],O.length===6?(m=Math.sqrt(F*F+D*D),_=Math.sqrt(H*H+R*R),f=F||D?dt(D,F)*Je:0,v=R||H?dt(R,H)*Je+f:0,v&&(_*=Math.abs(Math.cos(v*ct))),r.svg&&(c-=y-(y*F+j*R),h-=j-(y*D+j*H))):(se=O[6],B=O[7],T=O[8],S=O[9],P=O[10],ee=O[11],c=O[12],h=O[13],p=O[14],C=dt(se,P),g=C*Je,C&&(q=Math.cos(-C),E=Math.sin(-C),U=V*q+T*E,ie=z*q+S*E,de=se*q+P*E,T=V*-E+T*q,S=z*-E+S*q,P=se*-E+P*q,ee=B*-E+ee*q,V=U,z=ie,se=de),C=dt(-R,P),x=C*Je,C&&(q=Math.cos(-C),E=Math.sin(-C),U=F*q-T*E,ie=D*q-S*E,de=R*q-P*E,ee=H*E+ee*q,F=U,D=ie,R=de),C=dt(D,F),f=C*Je,C&&(q=Math.cos(C),E=Math.sin(C),U=F*q+D*E,ie=V*q+z*E,D=D*q-F*E,z=z*q-V*E,F=U,V=ie),g&&Math.abs(g)+Math.abs(f)>359.9&&(g=f=0,x=180-x),m=J(Math.sqrt(F*F+D*D+R*R)),_=J(Math.sqrt(z*z+se*se)),C=dt(V,z),v=Math.abs(C)>2e-4?C*Je:0,w=ee?1/(ee<0?-ee:ee):0),r.svg&&(U=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!vi(Oe(e,X)),U&&e.setAttribute("transform",U))),Math.abs(v)>90&&Math.abs(v)<270&&(s?(m*=-1,v+=f<=0?180:-180,f+=f<=0?180:-180):(_*=-1,v+=v<=0?180:-180)),t=t||r.uncache,r.x=c-((r.xPercent=c&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-c)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+a,r.y=h-((r.yPercent=h&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-h)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+a,r.z=p+a,r.scaleX=J(m),r.scaleY=J(_),r.rotation=J(f)+o,r.rotationX=J(g)+o,r.rotationY=J(x)+o,r.skewX=v+o,r.skewY=b+o,r.transformPerspective=w+a,(r.zOrigin=parseFloat(u.split(" ")[2])||!t&&r.zOrigin||0)&&(n[_e]=nr(u)),r.xOffset=r.yOffset=0,r.force3D=ge.force3D,r.renderTransform=r.svg?ja:ui?yi:qa,r.uncache=0,r},nr=function(e){return(e=e.split(" "))[0]+" "+e[1]},$r=function(e,t,r){var n=le(t);return J(parseFloat(t)+parseFloat(He(e,"x",r+"px",n)))+n},qa=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,yi(e,t)},Ke="0deg",Et="0px",et=") ",yi=function(e,t){var r=t||this,n=r.xPercent,s=r.yPercent,a=r.x,o=r.y,l=r.z,u=r.rotation,c=r.rotationY,h=r.rotationX,p=r.skewX,m=r.skewY,_=r.scaleX,f=r.scaleY,g=r.transformPerspective,x=r.force3D,v=r.target,b=r.zOrigin,w="",y=x==="auto"&&e&&e!==1||x===!0;if(b&&(h!==Ke||c!==Ke)){var j=parseFloat(c)*ct,O=Math.sin(j),C=Math.cos(j),q;j=parseFloat(h)*ct,q=Math.cos(j),a=$r(v,a,O*q*-b),o=$r(v,o,-Math.sin(j)*-b),l=$r(v,l,C*q*-b+b)}g!==Et&&(w+="perspective("+g+et),(n||s)&&(w+="translate("+n+"%, "+s+"%) "),(y||a!==Et||o!==Et||l!==Et)&&(w+=l!==Et||y?"translate3d("+a+", "+o+", "+l+") ":"translate("+a+", "+o+et),u!==Ke&&(w+="rotate("+u+et),c!==Ke&&(w+="rotateY("+c+et),h!==Ke&&(w+="rotateX("+h+et),(p!==Ke||m!==Ke)&&(w+="skew("+p+", "+m+et),(_!==1||f!==1)&&(w+="scale("+_+", "+f+et),v.style[X]=w||"translate(0, 0)"},ja=function(e,t){var r=t||this,n=r.xPercent,s=r.yPercent,a=r.x,o=r.y,l=r.rotation,u=r.skewX,c=r.skewY,h=r.scaleX,p=r.scaleY,m=r.target,_=r.xOrigin,f=r.yOrigin,g=r.xOffset,x=r.yOffset,v=r.forceCSS,b=parseFloat(a),w=parseFloat(o),y,j,O,C,q;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=ct,u*=ct,y=Math.cos(l)*h,j=Math.sin(l)*h,O=Math.sin(l-u)*-p,C=Math.cos(l-u)*p,u&&(c*=ct,q=Math.tan(u-c),q=Math.sqrt(1+q*q),O*=q,C*=q,c&&(q=Math.tan(c),q=Math.sqrt(1+q*q),y*=q,j*=q)),y=J(y),j=J(j),O=J(O),C=J(C)):(y=h,C=p,j=O=0),(b&&!~(a+"").indexOf("px")||w&&!~(o+"").indexOf("px"))&&(b=He(m,"x",a,"px"),w=He(m,"y",o,"px")),(_||f||g||x)&&(b=J(b+_-(_*y+f*O)+g),w=J(w+f-(_*j+f*C)+x)),(n||s)&&(q=m.getBBox(),b=J(b+n/100*q.width),w=J(w+s/100*q.height)),q="matrix("+y+","+j+","+O+","+C+","+b+","+w+")",m.setAttribute("transform",q),v&&(m.style[X]=q)},Oa=function(e,t,r,n,s){var a=360,o=ne(s),l=parseFloat(s)*(o&&~s.indexOf("rad")?Je:1),u=l-n,c=n+u+"deg",h,p;return o&&(h=s.split("_")[1],h==="short"&&(u%=a,u!==u%(a/2)&&(u+=u<0?a:-a)),h==="cw"&&u<0?u=(u+a*ii)%a-~~(u/a)*a:h==="ccw"&&u>0&&(u=(u-a*ii)%a-~~(u/a)*a)),e._pt=p=new pe(e._pt,t,r,n,u,ua),p.e=c,p.u="deg",e._props.push(r),p},bi=function(e,t){for(var r in t)e[r]=t[r];return e},Ca=function(e,t,r){var n=bi({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",a=r.style,o,l,u,c,h,p,m,_;n.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),a[X]=t,o=Nt(r,1),Qe(r,X),r.setAttribute("transform",u)):(u=getComputedStyle(r)[X],a[X]=t,o=Nt(r,1),a[X]=u);for(l in Ae)u=n[l],c=o[l],u!==c&&s.indexOf(l)<0&&(m=le(u),_=le(c),h=m!==_?He(r,l,u,_):parseFloat(u),p=parseFloat(c),e._pt=new pe(e._pt,o,l,h,p-h,Br),e._pt.u=_||0,e._props.push(l));bi(o,n)};he("padding,margin,Width,Radius",function(i,e){var t="Top",r="Right",n="Bottom",s="Left",a=(e<3?[t,r,n,s]:[t+s,t+r,n+r,n+s]).map(function(o){return e<2?i+o:"border"+o+i});rr[e>1?"border"+i:i]=function(o,l,u,c,h){var p,m;if(arguments.length<4)return p=a.map(function(_){return Re(o,_,u)}),m=p.join(" "),m.split(p[0]).length===5?p[0]:m;p=(c+"").split(" "),m={},a.forEach(function(_,f){return m[_]=p[f]=p[f]||p[(f-1)/2|0]}),o.init(l,m,h)}});var wi={name:"css",register:Hr,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,n,s){var a=this._props,o=e.style,l=r.vars.startAt,u,c,h,p,m,_,f,g,x,v,b,w,y,j,O,C;Zr||Hr(),this.styles=this.styles||li(e),C=this.styles.props,this.tween=r;for(f in t)if(f!=="autoRound"&&(c=t[f],!(xe[f]&&$n(f,t,r,n,e,s)))){if(m=typeof c,_=rr[f],m==="function"&&(c=c.call(r,n,e,s),m=typeof c),m==="string"&&~c.indexOf("random(")&&(c=qt(c)),_)_(this,e,f,c,r)&&(O=1);else if(f.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(f)+"").trim(),c+="",Le.lastIndex=0,Le.test(u)||(g=le(u),x=le(c)),x?g!==x&&(u=He(e,f,u,x)+x):g&&(c+=g),this.add(o,"setProperty",u,c,n,s,0,0,f),a.push(f),C.push(f,0,o[f]);else if(m!=="undefined"){if(l&&f in l?(u=typeof l[f]=="function"?l[f].call(r,n,e,s):l[f],ne(u)&&~u.indexOf("random(")&&(u=qt(u)),le(u+"")||u==="auto"||(u+=ge.units[f]||le(Re(e,f))||""),(u+"").charAt(1)==="="&&(u=Re(e,f))):u=Re(e,f),p=parseFloat(u),v=m==="string"&&c.charAt(1)==="="&&c.substr(0,2),v&&(c=c.substr(2)),h=parseFloat(c),f in Pe&&(f==="autoAlpha"&&(p===1&&Re(e,"visibility")==="hidden"&&h&&(p=0),C.push("visibility",0,o.visibility),Ve(this,o,"visibility",p?"inherit":"hidden",h?"inherit":"hidden",!h)),f!=="scale"&&f!=="transform"&&(f=Pe[f],~f.indexOf(",")&&(f=f.split(",")[0]))),b=f in Ae,b){if(this.styles.save(f),m==="string"&&c.substring(0,6)==="var(--"&&(c=Oe(e,c.substring(4,c.indexOf(")"))),h=parseFloat(c)),w||(y=e._gsap,y.renderTransform&&!t.parseTransform||Nt(e,t.parseTransform),j=t.smoothOrigin!==!1&&y.smooth,w=this._pt=new pe(this._pt,o,X,0,1,y.renderTransform,y,0,-1),w.dep=1),f==="scale")this._pt=new pe(this._pt,y,"scaleY",y.scaleY,(v?nt(y.scaleY,v+h):h)-y.scaleY||0,Br),this._pt.u=0,a.push("scaleY",f),f+="X";else if(f==="transformOrigin"){C.push(_e,0,o[_e]),c=wa(c),y.svg?Yr(e,c,0,j,0,this):(x=parseFloat(c.split(" ")[2])||0,x!==y.zOrigin&&Ve(this,y,"zOrigin",y.zOrigin,x),Ve(this,o,f,nr(u),nr(c)));continue}else if(f==="svgOrigin"){Yr(e,c,1,j,0,this);continue}else if(f in gi){Oa(this,y,f,p,v?nt(p,v+c):c);continue}else if(f==="smoothOrigin"){Ve(this,y,"smooth",y.smooth,c);continue}else if(f==="force3D"){y[f]=c;continue}else if(f==="transform"){Ca(this,c,e);continue}}else f in o||(f=ft(f)||f);if(b||(h||h===0)&&(p||p===0)&&!la.test(c)&&f in o)g=(u+"").substr((p+"").length),h||(h=0),x=le(c)||(f in ge.units?ge.units[f]:g),g!==x&&(p=He(e,f,u,x)),this._pt=new pe(this._pt,b?y:o,f,p,(v?nt(p,v+h):h)-p,!b&&(x==="px"||f==="zIndex")&&t.autoRound!==!1?da:Br),this._pt.u=x||0,g!==x&&x!=="%"&&(this._pt.b=u,this._pt.r=ca);else if(f in o)ba.call(this,e,f,u,v?v+c:c);else if(f in e)this.add(e,f,u||e[f],v?v+c:c,n,s);else if(f!=="parseTransform"){mr(f,c);continue}b||(f in o?C.push(f,0,o[f]):typeof e[f]=="function"?C.push(f,2,e[f]()):C.push(f,1,u||e[f])),a.push(f)}}O&&Kn(this)},render:function(e,t){if(t.tween._time||!Lr())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:Re,aliases:Pe,getSetter:function(e,t,r){var n=Pe[t];return n&&n.indexOf(",")<0&&(t=n),t in Ae&&t!==_e&&(e._gsap.x||Re(e,"x"))?r&&ni===r?t==="scale"?ma:pa:(ni=r||{})&&(t==="scale"?_a:ga):e.style&&!ur(e.style[t])?fa:~t.indexOf("-")?ha:Ar(e,t)},core:{_removeProperty:Qe,_getMatrix:Ur}};me.utils.checkPrefix=ft,me.core.getStyleSaver=li,(function(i,e,t,r){var n=he(i+","+e+","+t,function(s){Ae[s]=1});he(e,function(s){ge.units[s]="deg",gi[s]=1}),Pe[n[13]]=i+","+e,he(r,function(s){var a=s.split(":");Pe[a[1]]=n[a[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),he("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(i){ge.units[i]="px"}),me.registerPlugin(wi);var ht=me.registerPlugin(wi)||me;ht.core.Tween;const ir=(i,e,t,r)=>e&&(Array.isArray(e)?e.length>0:e)?i.to(e,t,r):i,Sa=(i,e)=>{Si.useGSAP(()=>{if(!i.current)return;const t=ht.timeline({defaults:{duration:.7,ease:"power1.out"}}),r={navbar:i.current,navLabels:ht.utils.toArray(".nav-label"),navIconWrappers:ht.utils.toArray(".nav-icon-wrapper"),navIcons:ht.utils.toArray(".nav-icon"),navLinkItems:ht.utils.toArray(".nav-link-item"),logoutButton:document.querySelector(".logout-button"),logoutLabel:document.querySelector(".logout-label"),logoutIcon:document.querySelector(".logout-icon"),profileContainer:document.querySelector(".profile-container"),profileName:document.querySelector(".profile-name"),profileOptions:document.querySelector(".profile-options"),profileImageWrapper:document.querySelector(".profile-image-wrapper"),coverImageProfile:document.querySelector(".cover-image-profile"),navContentWrapper:document.querySelector(".nav-content-wrapper-active"),buttonCrevron:document.querySelector(".button-select-crevron"),separatorProfile:document.querySelector(".border-separator-profile"),buttonProfile:document.querySelector(".button-profile"),profileUserInfo:document.querySelector(".profile-user-info"),buttonContentChevron:document.querySelector(".button-content-chevron"),logo:{contenedor:document.querySelector(".container-logo"),icon:document.querySelector(".icon-logo"),text:document.querySelector(".text-logo")},sidebarHeader:document.querySelector(".sidebar-header")};e?ka(t,r):Pa(t,r)},{scope:i,dependencies:[e]})},ka=(i,e)=>{i.to(e.navbar,{width:"6rem",duration:.2,ease:"bounce.out"}).to(e.logo.contenedor,{width:48,duration:.2}).to(e.logo.text,{opacity:0,scale:.8,duration:.5,ease:"back.in(1.2)"},-1).set(e.logo.text,{display:"none"}).to(e.sidebarHeader,{justifyContent:"center",display:"flex"},-1).to(e.logo.icon,{keyframes:{"0%":{scale:1},"33%":{scale:1.5},"66%":{scale:.5},"100%":{scale:1}},duration:.6,ease:"power1.inOut"}).to(e.navLinkItems,{justifyContent:"center",alignItems:"center",width:"3rem",height:"3rem",display:"flex"},-1).to(e.navLabels,{opacity:0,width:30,marginLeft:0},0).to(e.navIcons,{scale:.95,ease:"elastic.out(1, 0.3)"},0),ir(i,e.buttonCrevron,{width:0,opacity:0,duration:.7,ease:"power1.out",onComplete:()=>{e.buttonCrevron.style.display="none"}},0),ir(i,e.buttonContentChevron,{display:"none"},-1).to(e.separatorProfile,{display:"none"},-1).to(e.profileUserInfo,{display:"none"},-1).to(e.navLinkItems,{borderRadius:"8px",duration:.7,ease:"power1.out"},.8).to(e.buttonProfile,{height:"3rem",width:"3rem",margin:0,padding:0,duration:.3,ease:"power2.out",display:"flex",justifyContent:"center",alignItems:"center"},-1)},Pa=(i,e)=>{i.to(e.navbar,{width:"20rem"},-1).to(e.navLinkItems,{borderRadius:"10px",duration:.3,width:"100%",justifyContent:"flex-start"},-1),ir(i,e.buttonCrevron,{width:"auto",opacity:1,duration:0,ease:"power1.out",onComplete:()=>{e.buttonCrevron.style.display="flex"}},0),ir(i,e.buttonContentChevron,{display:"flex"},0).to(e.logo.contenedor,{width:185,duration:.2}).to(e.sidebarHeader,{justifyContent:"start",display:"flex"},-1).set(e.logo.text,{display:"flex"},-1).to(e.logo.text,{opacity:1,duration:.5,ease:"back.in(1.2)"}).to(e.logo.icon,{keyframes:{"0%":{scale:1},"33%":{scale:1.5},"66%":{scale:.5},"100%":{scale:1}},duration:.5,ease:"power1.inOut"}).to(e.separatorProfile,{display:"flex"},0).to(e.profileUserInfo,{display:"flex"},-1).to(e.buttonProfile,{borderTopLeftRadius:"0.375rem",borderBottomLeftRadius:"0.375rem",borderTopRightRadius:"0",borderBottomRightRadius:"0",duration:0},-1).to(e.separatorProfile,{display:"flex"},0).to(e.navLabels,{opacity:1,width:"auto",scaleX:1},0).to(e.navIcons,{scale:1},.3)},Ti=({children:i,defaultCollapsed:e=!1,className:t=""})=>{const[r,n]=I.useState(e),s=I.useRef(null);Sa(s,r);const o={isCollapsed:r,setIsCollapsed:n,navbarRef:s,toggleCollapse:()=>{n(!r)}};return d.jsx(an.Provider,{value:o,children:d.jsx("div",{ref:s,className:`bg-neutral-default-default overflow-hidden h-screen flex flex-col border-r border-neutral-strong-default transition-all duration-300 ${r?"w-16":"w-64"} ${t}`,children:i})})},Na=Object.assign(Ti,{Root:Ti,CollapseButton:()=>{const{isCollapsed:i,toggleCollapse:e}=ar();return d.jsx("div",{className:k("flex justify-end mt-5 mr-5",i&&""),children:d.jsx("div",{className:"",children:d.jsx("button",{onClick:e,title:i?"Expandir Navbar":"Contraer Navbar","aria-label":i?"Expandir Navbar":"Contraer Navbar",className:"cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",children:i?d.jsx(te.CloseNavBarDesktop,{size:24,className:"rotate-180 transition-transform duration-300"}):d.jsx(te.CloseNavBarDesktop,{size:24,className:"rotate-0 transition-transform duration-300"})})})})},Header:({children:i,className:e})=>d.jsx("div",{className:`${e} sidebar-header`,children:i}),Divider:({className:i})=>d.jsx("div",{className:k("px-3 flex justify-center items-center w-full mb-4",i),children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),Content:({children:i,className:e})=>d.jsx("div",{className:e,children:i}),Spacer:({className:i,size:e="auto"})=>{const t=()=>{switch(e){case"auto":return"flex-grow";case"small":return"h-2 w-2";case"medium":return"h-4 w-4";case"large":return"h-8 w-8"}};return d.jsx("div",{className:k(t(),i)})},Footer:({children:i,className:e})=>d.jsx("div",{className:e,children:i})}),Ea=({children:i,icon:e,label:t,href:r,onClick:n,isActive:s=!1,className:a})=>{const o=r?"a":"button";return d.jsxs(o,{href:r,onClick:n,className:k("nav-link-item","flex items-center w-full px-3 py-2 text-left","hover:bg-neutral-medium-default transition-colors rounded-lg","focus:outline-none focus:ring-2 focus:ring-primary-default-default",s&&"bg-neutral-medium-default",a),children:[e&&d.jsx("div",{className:"nav-icon-wrapper mr-3 flex-shrink-0",children:d.jsx("div",{className:"nav-icon flex items-center justify-center w-5 h-5",children:e})}),t&&d.jsx("span",{className:"nav-label text-sm text-neutral-strong-default",children:t}),i]})},Ma=({user:i,className:e,onProfileClick:t})=>{const{isCollapsed:r}=ar(),[n,s]=I.useState(!1),a=()=>{r?t?.():s(!n)};return d.jsxs("div",{className:k("profile-container",e),children:[d.jsxs("button",{onClick:a,className:k("button-profile","flex items-center w-full p-3 text-left","hover:bg-neutral-medium-default transition-colors rounded-lg","focus:outline-none focus:ring-2 focus:ring-primary-default-default"),children:[d.jsx("div",{className:"profile-image-wrapper flex-shrink-0 mr-3",children:d.jsx("div",{className:"cover-image-profile w-10 h-10 rounded-full bg-primary-default-default flex items-center justify-center text-white text-sm font-semibold",children:i.profileImage?d.jsx("img",{src:i.profileImage,alt:i.name,className:"w-full h-full rounded-full object-cover"}):i.name.charAt(0).toUpperCase()})}),d.jsxs("div",{className:"profile-user-info flex-1 min-w-0",children:[d.jsx("div",{className:"profile-name text-sm font-medium text-neutral-strong-default truncate",children:i.name}),d.jsx("div",{className:"text-xs text-neutral-medium-default truncate",children:i.email})]}),d.jsx("div",{className:"button-content-chevron ml-2 flex-shrink-0",children:d.jsx("div",{className:"button-select-crevron w-4 h-4 text-neutral-medium-default",children:n?"▲":"▼"})})]}),n&&!r&&d.jsx("div",{className:"profile-options mt-2 pl-3 space-y-1",children:d.jsxs("button",{className:"logout-button flex items-center w-full px-3 py-2 text-left text-sm text-neutral-strong-default hover:bg-neutral-medium-default rounded-lg",children:[d.jsx("span",{className:"logout-icon mr-2",children:"🚪"}),d.jsx("span",{className:"logout-label",children:"Cerrar sesión"})]})}),d.jsx("div",{className:"border-separator-profile mt-3 border-t border-neutral-strong-default"})]})},Aa=({links:i,isLinkActive:e,componentBadge:t,onClick:r,activeModal:n,onLinkClick:s})=>d.jsx("nav",{className:"flex flex-col gap-1",children:i?.map((a,o)=>{const l=e(a.path)||(a.relatedPaths?.some(u=>e(u))??!1);return a.isView&&a.viewAccess()&&d.jsxs(M.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.4,delay:o*.03,ease:"easeOut"},className:"relative flex justify-center w-full items-center px-3",children:[a.path==="/notifications"&&d.jsx("button",{onClick:r,className:k("nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ","transition-all duration-300 ease-out w-full","group hover:bg-neutral-medium-selected",n?"text-primary-default-default":"text-neutral-default-default"),children:d.jsxs(M.motion.div,{className:"nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",animate:{x:0},transition:{duration:.25,ease:"easeOut"},children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(M.motion.div,{className:"nav-icon-wrapper flex items-center justify-center flex-shrink-0",animate:{scale:n?1.05:1},transition:{duration:.25,ease:"easeOut"},children:typeof a.icon=="function"?a.icon({size:24,className:k("nav-icon transition-colors duration-250 ease-out",n?"text-primary-default-default":"text-neutral-default-default group-hover:text-white-prometeo")}):"text"}),d.jsx("span",{className:"nav-label whitespace-nowrap text-sm font-semibold ",children:a.title})]}),t&&a.count&&a.count>0&&t(a.count)]})}),a.path!=="/notifications"&&d.jsxs("button",{onClick:()=>{r?.(),s?.(a.path)},className:k("nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ","transition-all duration-300 ease-out w-full","group hover:bg-neutral-medium-selected",l?"text-primary-default-default bg-neutral-medium-selected":"text-neutral-default-default"),children:[d.jsx(M.AnimatePresence,{mode:"wait",children:l&&d.jsx(M.motion.div,{layoutId:"nav-active-bg",className:"absolute inset-0 bg-neutral-medium-selected rounded-lg",initial:!1,animate:{opacity:1},exit:{opacity:0},transition:{type:"tween",duration:.25,ease:"easeInOut"}})}),d.jsxs(M.motion.div,{className:"nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",animate:{x:0},transition:{duration:.25,ease:"easeOut"},children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(M.motion.div,{className:"nav-icon-wrapper flex items-center justify-center flex-shrink-0",animate:{scale:l?1.05:1},transition:{duration:.25,ease:"easeOut"},children:typeof a.icon=="function"?a.icon({size:24,className:k("nav-icon transition-colors duration-250 ease-out",l?"text-primary-default-default":"text-neutral-default-default group-hover:text-white-prometeo")}):null}),d.jsx("span",{className:"nav-label whitespace-nowrap text-sm font-semibold ",children:a.title})]}),t&&a.count&&a.count>0&&t(a.count)]})]})]},o)})}),Ra=({count:i,maxCount:e=9,className:t="",size:r="medium",variant:n="primary",showZero:s=!1})=>{const a=i,o=a>e?`+${e}`:a;if(a===0&&!s)return null;const l={small:"w-4 h-4 text-xs",medium:"w-5 h-5 text-xs",large:"w-6 h-6 text-sm"},u={primary:"bg-primary-default-default text-neutral-strong-default",secondary:"bg-neutral-medium-default text-neutral-strong-default",success:"bg-green-500 text-white",warning:"bg-yellow-500 text-black",danger:"bg-red-500 text-white"};return d.jsx("div",{className:k("rounded-full flex items-center justify-center font-medium",l[r],u[n],t),children:d.jsx("span",{children:o})})},Da=({isActiveModalNotification:i,setIsActiveModalNotification:e})=>({handleNotificationClick:()=>{e(!0)},isActiveModalNotification:i}),Fa=i=>{const e=I.useRef(null);return{isCollapsed:i,navbarRef:e}},Ia=({isCollapsed:i,onToggle:e})=>d.jsx("div",{className:"",children:d.jsx("button",{onClick:e,title:i?"Expandir Navbar":"Contraer Navbar","aria-label":i?"Expandir Navbar":"Contraer Navbar",className:"cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",children:i?d.jsx(te.CloseNavBarDesktop,{size:34,className:"rotate-180 transition-transform duration-300"}):d.jsx(te.CloseNavBarDesktop,{size:34,className:"rotate-0 transition-transform duration-300"})})}),Za=({logoUrl:i,companyName:e})=>d.jsx("div",{className:"w-full flex justify-center items-center p-2 h-20",children:d.jsx("img",{src:i,className:"h-2/3 rounded-full",alt:e??""})}),La=(i,e=!0)=>{const t=I.useRef(null);return I.useEffect(()=>{if(!e)return;const r=n=>{t.current&&!t.current.contains(n.target)&&i()};return document.addEventListener("mousedown",r,{capture:!0}),document.addEventListener("touchstart",r,{capture:!0}),()=>{document.removeEventListener("mousedown",r,{capture:!0}),document.removeEventListener("touchstart",r,{capture:!0})}},[i,e]),t};N.Avatar=tn,N.Badge=Ra,N.Button=Ai,N.CardProfile=Rt,N.CheckboxFormik=Ri,N.CompanyLogo=Za,N.Header=Fi,N.Icons=te,N.Input=as,N.InputFormik=os,N.LayoutGeneric=hs,N.Logo=fs,N.Menu=ls,N.NavbarCollapseButton=Ia,N.NavbarLinks=Aa,N.NavigationLink=Ea,N.Pagination=us,N.ProfileSection=Ma,N.Select=ds,N.Sidebar=Na,N.Spinner=sr,N.useActionsNavbar=Da,N.useClickOutside=La,N.useNavbarCollapse=Fa,N.useSidebar=ar,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})}));
|
|
48
|
+
*/var ri,Be,ut,Zr,Ge,ni,Lr,aa=function(){return typeof window<"u"},Ae={},Je=180/Math.PI,ct=Math.PI/180,dt=Math.atan2,ii=1e8,zr=/([A-Z])/g,oa=/(left|right|width|margin|padding|x)/i,la=/[\s,\(]\S/,Pe={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Br=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},ua=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},ca=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},da=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},si=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},ai=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},fa=function(e,t,r){return e.style[t]=r},ha=function(e,t,r){return e.style.setProperty(t,r)},pa=function(e,t,r){return e._gsap[t]=r},ma=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},_a=function(e,t,r,n,s){var a=e._gsap;a.scaleX=a.scaleY=r,a.renderTransform(s,a)},ga=function(e,t,r,n,s){var a=e._gsap;a[t]=r,a.renderTransform(s,a)},X="transform",_e=X+"Origin",va=function i(e,t){var r=this,n=this.target,s=n.style,a=n._gsap;if(e in Ae&&s){if(this.tfm=this.tfm||{},e!=="transform")e=Pe[e]||e,~e.indexOf(",")?e.split(",").forEach(function(o){return r.tfm[o]=Re(n,o)}):this.tfm[e]=a.x?a[e]:Re(n,e),e===_e&&(this.tfm.zOrigin=a.zOrigin);else return Pe.transform.split(",").forEach(function(o){return i.call(r,o,t)});if(this.props.indexOf(X)>=0)return;a.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(_e,t,"")),e=X}(s||t)&&this.props.push(e,t,s[e])},oi=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},xa=function(){var e=this.props,t=this.target,r=t.style,n=t._gsap,s,a;for(s=0;s<e.length;s+=3)e[s+1]?e[s+1]===2?t[e[s]](e[s+2]):t[e[s]]=e[s+2]:e[s+2]?r[e[s]]=e[s+2]:r.removeProperty(e[s].substr(0,2)==="--"?e[s]:e[s].replace(zr,"-$1").toLowerCase());if(this.tfm){for(a in this.tfm)n[a]=this.tfm[a];n.svg&&(n.renderTransform(),t.setAttribute("data-svg-origin",this.svgo||"")),s=Lr(),(!s||!s.isStart)&&!r[X]&&(oi(r),n.zOrigin&&r[_e]&&(r[_e]+=" "+n.zOrigin+"px",n.zOrigin=0,n.renderTransform()),n.uncache=1)}},li=function(e,t){var r={target:e,props:[],revert:xa,save:va};return e._gsap||me.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(n){return r.save(n)}),r},ui,Vr=function(e,t){var r=Be.createElementNS?Be.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Be.createElement(e);return r&&r.style?r:Be.createElement(e)},Oe=function i(e,t,r){var n=getComputedStyle(e);return n[t]||n.getPropertyValue(t.replace(zr,"-$1").toLowerCase())||n.getPropertyValue(t)||!r&&i(e,ft(t)||t,1)||""},ci="O,Moz,ms,Ms,Webkit".split(","),ft=function(e,t,r){var n=t||Ge,s=n.style,a=5;if(e in s&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);a--&&!(ci[a]+e in s););return a<0?null:(a===3?"ms":a>=0?ci[a]:"")+e},Hr=function(){aa()&&window.document&&(ri=window,Be=ri.document,ut=Be.documentElement,Ge=Vr("div")||{style:{}},Vr("div"),X=ft(X),_e=X+"Origin",Ge.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ui=!!ft("perspective"),Lr=me.core.reverting,Zr=1)},di=function(e){var t=e.ownerSVGElement,r=Vr("svg",t&&t.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=e.cloneNode(!0),s;n.style.display="block",r.appendChild(n),ut.appendChild(r);try{s=n.getBBox()}catch{}return r.removeChild(n),ut.removeChild(r),s},fi=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},hi=function(e){var t,r;try{t=e.getBBox()}catch{t=di(e),r=1}return t&&(t.width||t.height)||r||(t=di(e)),t&&!t.width&&!t.x&&!t.y?{x:+fi(e,["x","cx","x1"])||0,y:+fi(e,["y","cy","y1"])||0,width:0,height:0}:t},pi=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&hi(e))},Qe=function(e,t){if(t){var r=e.style,n;t in Ae&&t!==_e&&(t=X),r.removeProperty?(n=t.substr(0,2),(n==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),r.removeProperty(n==="--"?t:t.replace(zr,"-$1").toLowerCase())):r.removeAttribute(t)}},Ve=function(e,t,r,n,s,a){var o=new pe(e._pt,t,r,0,1,a?ai:si);return e._pt=o,o.b=n,o.e=s,e._props.push(r),o},mi={deg:1,rad:1,turn:1},ya={grid:1,flex:1},He=function i(e,t,r,n){var s=parseFloat(r)||0,a=(r+"").trim().substr((s+"").length)||"px",o=Ge.style,l=oa.test(t),u=e.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),h=100,p=n==="px",m=n==="%",_,f,g,x;if(n===a||!s||mi[n]||mi[a])return s;if(a!=="px"&&!p&&(s=i(e,t,r,"px")),x=e.getCTM&&pi(e),(m||a==="%")&&(Ae[t]||~t.indexOf("adius")))return _=x?e.getBBox()[l?"width":"height"]:e[c],J(m?s/_*h:s/100*_);if(o[l?"width":"height"]=h+(p?a:n),f=n!=="rem"&&~t.indexOf("adius")||n==="em"&&e.appendChild&&!u?e:e.parentNode,x&&(f=(e.ownerSVGElement||{}).parentNode),(!f||f===Be||!f.appendChild)&&(f=Be.body),g=f._gsap,g&&m&&g.width&&l&&g.time===we.time&&!g.uncache)return J(s/g.width*h);if(m&&(t==="height"||t==="width")){var v=e.style[t];e.style[t]=h+n,_=e[c],v?e.style[t]=v:Qe(e,t)}else(m||a==="%")&&!ya[Oe(f,"display")]&&(o.position=Oe(e,"position")),f===e&&(o.position="static"),f.appendChild(Ge),_=Ge[c],f.removeChild(Ge),o.position="absolute";return l&&m&&(g=Ue(f),g.time=we.time,g.width=f[c]),J(p?_*s/h:_&&s?h/_*s:0)},Re=function(e,t,r,n){var s;return Zr||Hr(),t in Pe&&t!=="transform"&&(t=Pe[t],~t.indexOf(",")&&(t=t.split(",")[0])),Ae[t]&&t!=="transform"?(s=Nt(e,n),s=t!=="transformOrigin"?s[t]:s.svg?s.origin:nr(Oe(e,_e))+" "+s.zOrigin+"px"):(s=e.style[t],(!s||s==="auto"||n||~(s+"").indexOf("calc("))&&(s=rr[t]&&rr[t](e,t,r)||Oe(e,t)||vn(e,t)||(t==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?He(e,t,s,r)+r:s},ba=function(e,t,r,n){if(!r||r==="none"){var s=ft(t,e,1),a=s&&Oe(e,s,1);a&&a!==r?(t=s,r=a):t==="borderColor"&&(r=Oe(e,"borderTopColor"))}var o=new pe(this._pt,e.style,t,0,1,Qn),l=0,u=0,c,h,p,m,_,f,g,x,v,b,w,y;if(o.b=r,o.e=n,r+="",n+="",n.substring(0,6)==="var(--"&&(n=Oe(e,n.substring(4,n.indexOf(")")))),n==="auto"&&(f=e.style[t],e.style[t]=n,n=Oe(e,t)||n,f?e.style[t]=f:Qe(e,t)),c=[r,n],Bn(c),r=c[0],n=c[1],p=r.match(rt)||[],y=n.match(rt)||[],y.length){for(;h=rt.exec(n);)g=h[0],v=n.substring(l,h.index),_?_=(_+1)%5:(v.substr(-5)==="rgba("||v.substr(-5)==="hsla(")&&(_=1),g!==(f=p[u++]||"")&&(m=parseFloat(f)||0,w=f.substr((m+"").length),g.charAt(1)==="="&&(g=nt(m,g)+w),x=parseFloat(g),b=g.substr((x+"").length),l=rt.lastIndex-b.length,b||(b=b||ge.units[t]||w,l===n.length&&(n+=b,o.e+=b)),w!==b&&(m=He(e,t,f,b)||0),o._pt={_next:o._pt,p:v||u===1?v:",",s:m,c:x-m,m:_&&_<4||t==="zIndex"?Math.round:0});o.c=l<n.length?n.substring(l,n.length):""}else o.r=t==="display"&&n==="none"?ai:si;return dn.test(n)&&(o.e=0),this._pt=o,o},_i={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},wa=function(e){var t=e.split(" "),r=t[0],n=t[1]||"50%";return(r==="top"||r==="bottom"||n==="left"||n==="right")&&(e=r,r=n,n=e),t[0]=_i[r]||r,t[1]=_i[n]||n,t.join(" ")},Ta=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var r=t.t,n=r.style,s=t.u,a=r._gsap,o,l,u;if(s==="all"||s===!0)n.cssText="",l=1;else for(s=s.split(","),u=s.length;--u>-1;)o=s[u],Ae[o]&&(l=1,o=o==="transformOrigin"?_e:X),Qe(r,o);l&&(Qe(r,X),a&&(a.svg&&r.removeAttribute("transform"),n.scale=n.rotate=n.translate="none",Nt(r,1),a.uncache=1,oi(n)))}},rr={clearProps:function(e,t,r,n,s){if(s.data!=="isFromStart"){var a=e._pt=new pe(e._pt,t,r,0,0,Ta);return a.u=n,a.pr=-10,a.tween=s,e._props.push(r),1}}},Pt=[1,0,0,1,0,0],gi={},vi=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},xi=function(e){var t=Oe(e,X);return vi(t)?Pt:t.substr(7).match(cn).map(J)},Ur=function(e,t){var r=e._gsap||Ue(e),n=e.style,s=xi(e),a,o,l,u;return r.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,s=[l.a,l.b,l.c,l.d,l.e,l.f],s.join(",")==="1,0,0,1,0,0"?Pt:s):(s===Pt&&!e.offsetParent&&e!==ut&&!r.svg&&(l=n.display,n.display="block",a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,o=e.nextElementSibling,ut.appendChild(e)),s=xi(e),l?n.display=l:Qe(e,"display"),u&&(o?a.insertBefore(e,o):a?a.appendChild(e):ut.removeChild(e))),t&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},Yr=function(e,t,r,n,s,a){var o=e._gsap,l=s||Ur(e,!0),u=o.xOrigin||0,c=o.yOrigin||0,h=o.xOffset||0,p=o.yOffset||0,m=l[0],_=l[1],f=l[2],g=l[3],x=l[4],v=l[5],b=t.split(" "),w=parseFloat(b[0])||0,y=parseFloat(b[1])||0,j,O,C,q;r?l!==Pt&&(O=m*g-_*f)&&(C=w*(g/O)+y*(-f/O)+(f*v-g*x)/O,q=w*(-_/O)+y*(m/O)-(m*v-_*x)/O,w=C,y=q):(j=hi(e),w=j.x+(~b[0].indexOf("%")?w/100*j.width:w),y=j.y+(~(b[1]||b[0]).indexOf("%")?y/100*j.height:y)),n||n!==!1&&o.smooth?(x=w-u,v=y-c,o.xOffset=h+(x*m+v*f)-x,o.yOffset=p+(x*_+v*g)-v):o.xOffset=o.yOffset=0,o.xOrigin=w,o.yOrigin=y,o.smooth=!!n,o.origin=t,o.originIsAbsolute=!!r,e.style[_e]="0px 0px",a&&(Ve(a,o,"xOrigin",u,w),Ve(a,o,"yOrigin",c,y),Ve(a,o,"xOffset",h,o.xOffset),Ve(a,o,"yOffset",p,o.yOffset)),e.setAttribute("data-svg-origin",w+" "+y)},Nt=function(e,t){var r=e._gsap||new Yn(e);if("x"in r&&!t&&!r.uncache)return r;var n=e.style,s=r.scaleX<0,a="px",o="deg",l=getComputedStyle(e),u=Oe(e,_e)||"0",c,h,p,m,_,f,g,x,v,b,w,y,j,O,C,q,E,D,R,A,H,V,z,U,ne,de,T,S,P,B,ee,ie;return c=h=p=f=g=x=v=b=w=0,m=_=1,r.svg=!!(e.getCTM&&pi(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(n[X]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[X]!=="none"?l[X]:"")),n.scale=n.rotate=n.translate="none"),O=Ur(e,r.svg),r.svg&&(r.uncache?(ne=e.getBBox(),u=r.xOrigin-ne.x+"px "+(r.yOrigin-ne.y)+"px",U=""):U=!t&&e.getAttribute("data-svg-origin"),Yr(e,U||u,!!U||r.originIsAbsolute,r.smooth!==!1,O)),y=r.xOrigin||0,j=r.yOrigin||0,O!==Pt&&(D=O[0],R=O[1],A=O[2],H=O[3],c=V=O[4],h=z=O[5],O.length===6?(m=Math.sqrt(D*D+R*R),_=Math.sqrt(H*H+A*A),f=D||R?dt(R,D)*Je:0,v=A||H?dt(A,H)*Je+f:0,v&&(_*=Math.abs(Math.cos(v*ct))),r.svg&&(c-=y-(y*D+j*A),h-=j-(y*R+j*H))):(ie=O[6],B=O[7],T=O[8],S=O[9],P=O[10],ee=O[11],c=O[12],h=O[13],p=O[14],C=dt(ie,P),g=C*Je,C&&(q=Math.cos(-C),E=Math.sin(-C),U=V*q+T*E,ne=z*q+S*E,de=ie*q+P*E,T=V*-E+T*q,S=z*-E+S*q,P=ie*-E+P*q,ee=B*-E+ee*q,V=U,z=ne,ie=de),C=dt(-A,P),x=C*Je,C&&(q=Math.cos(-C),E=Math.sin(-C),U=D*q-T*E,ne=R*q-S*E,de=A*q-P*E,ee=H*E+ee*q,D=U,R=ne,A=de),C=dt(R,D),f=C*Je,C&&(q=Math.cos(C),E=Math.sin(C),U=D*q+R*E,ne=V*q+z*E,R=R*q-D*E,z=z*q-V*E,D=U,V=ne),g&&Math.abs(g)+Math.abs(f)>359.9&&(g=f=0,x=180-x),m=J(Math.sqrt(D*D+R*R+A*A)),_=J(Math.sqrt(z*z+ie*ie)),C=dt(V,z),v=Math.abs(C)>2e-4?C*Je:0,w=ee?1/(ee<0?-ee:ee):0),r.svg&&(U=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!vi(Oe(e,X)),U&&e.setAttribute("transform",U))),Math.abs(v)>90&&Math.abs(v)<270&&(s?(m*=-1,v+=f<=0?180:-180,f+=f<=0?180:-180):(_*=-1,v+=v<=0?180:-180)),t=t||r.uncache,r.x=c-((r.xPercent=c&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-c)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+a,r.y=h-((r.yPercent=h&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-h)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+a,r.z=p+a,r.scaleX=J(m),r.scaleY=J(_),r.rotation=J(f)+o,r.rotationX=J(g)+o,r.rotationY=J(x)+o,r.skewX=v+o,r.skewY=b+o,r.transformPerspective=w+a,(r.zOrigin=parseFloat(u.split(" ")[2])||!t&&r.zOrigin||0)&&(n[_e]=nr(u)),r.xOffset=r.yOffset=0,r.force3D=ge.force3D,r.renderTransform=r.svg?ja:ui?yi:qa,r.uncache=0,r},nr=function(e){return(e=e.split(" "))[0]+" "+e[1]},$r=function(e,t,r){var n=le(t);return J(parseFloat(t)+parseFloat(He(e,"x",r+"px",n)))+n},qa=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,yi(e,t)},Ke="0deg",Et="0px",et=") ",yi=function(e,t){var r=t||this,n=r.xPercent,s=r.yPercent,a=r.x,o=r.y,l=r.z,u=r.rotation,c=r.rotationY,h=r.rotationX,p=r.skewX,m=r.skewY,_=r.scaleX,f=r.scaleY,g=r.transformPerspective,x=r.force3D,v=r.target,b=r.zOrigin,w="",y=x==="auto"&&e&&e!==1||x===!0;if(b&&(h!==Ke||c!==Ke)){var j=parseFloat(c)*ct,O=Math.sin(j),C=Math.cos(j),q;j=parseFloat(h)*ct,q=Math.cos(j),a=$r(v,a,O*q*-b),o=$r(v,o,-Math.sin(j)*-b),l=$r(v,l,C*q*-b+b)}g!==Et&&(w+="perspective("+g+et),(n||s)&&(w+="translate("+n+"%, "+s+"%) "),(y||a!==Et||o!==Et||l!==Et)&&(w+=l!==Et||y?"translate3d("+a+", "+o+", "+l+") ":"translate("+a+", "+o+et),u!==Ke&&(w+="rotate("+u+et),c!==Ke&&(w+="rotateY("+c+et),h!==Ke&&(w+="rotateX("+h+et),(p!==Ke||m!==Ke)&&(w+="skew("+p+", "+m+et),(_!==1||f!==1)&&(w+="scale("+_+", "+f+et),v.style[X]=w||"translate(0, 0)"},ja=function(e,t){var r=t||this,n=r.xPercent,s=r.yPercent,a=r.x,o=r.y,l=r.rotation,u=r.skewX,c=r.skewY,h=r.scaleX,p=r.scaleY,m=r.target,_=r.xOrigin,f=r.yOrigin,g=r.xOffset,x=r.yOffset,v=r.forceCSS,b=parseFloat(a),w=parseFloat(o),y,j,O,C,q;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=ct,u*=ct,y=Math.cos(l)*h,j=Math.sin(l)*h,O=Math.sin(l-u)*-p,C=Math.cos(l-u)*p,u&&(c*=ct,q=Math.tan(u-c),q=Math.sqrt(1+q*q),O*=q,C*=q,c&&(q=Math.tan(c),q=Math.sqrt(1+q*q),y*=q,j*=q)),y=J(y),j=J(j),O=J(O),C=J(C)):(y=h,C=p,j=O=0),(b&&!~(a+"").indexOf("px")||w&&!~(o+"").indexOf("px"))&&(b=He(m,"x",a,"px"),w=He(m,"y",o,"px")),(_||f||g||x)&&(b=J(b+_-(_*y+f*O)+g),w=J(w+f-(_*j+f*C)+x)),(n||s)&&(q=m.getBBox(),b=J(b+n/100*q.width),w=J(w+s/100*q.height)),q="matrix("+y+","+j+","+O+","+C+","+b+","+w+")",m.setAttribute("transform",q),v&&(m.style[X]=q)},Oa=function(e,t,r,n,s){var a=360,o=re(s),l=parseFloat(s)*(o&&~s.indexOf("rad")?Je:1),u=l-n,c=n+u+"deg",h,p;return o&&(h=s.split("_")[1],h==="short"&&(u%=a,u!==u%(a/2)&&(u+=u<0?a:-a)),h==="cw"&&u<0?u=(u+a*ii)%a-~~(u/a)*a:h==="ccw"&&u>0&&(u=(u-a*ii)%a-~~(u/a)*a)),e._pt=p=new pe(e._pt,t,r,n,u,ua),p.e=c,p.u="deg",e._props.push(r),p},bi=function(e,t){for(var r in t)e[r]=t[r];return e},Ca=function(e,t,r){var n=bi({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",a=r.style,o,l,u,c,h,p,m,_;n.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),a[X]=t,o=Nt(r,1),Qe(r,X),r.setAttribute("transform",u)):(u=getComputedStyle(r)[X],a[X]=t,o=Nt(r,1),a[X]=u);for(l in Ae)u=n[l],c=o[l],u!==c&&s.indexOf(l)<0&&(m=le(u),_=le(c),h=m!==_?He(r,l,u,_):parseFloat(u),p=parseFloat(c),e._pt=new pe(e._pt,o,l,h,p-h,Br),e._pt.u=_||0,e._props.push(l));bi(o,n)};he("padding,margin,Width,Radius",function(i,e){var t="Top",r="Right",n="Bottom",s="Left",a=(e<3?[t,r,n,s]:[t+s,t+r,n+r,n+s]).map(function(o){return e<2?i+o:"border"+o+i});rr[e>1?"border"+i:i]=function(o,l,u,c,h){var p,m;if(arguments.length<4)return p=a.map(function(_){return Re(o,_,u)}),m=p.join(" "),m.split(p[0]).length===5?p[0]:m;p=(c+"").split(" "),m={},a.forEach(function(_,f){return m[_]=p[f]=p[f]||p[(f-1)/2|0]}),o.init(l,m,h)}});var wi={name:"css",register:Hr,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,n,s){var a=this._props,o=e.style,l=r.vars.startAt,u,c,h,p,m,_,f,g,x,v,b,w,y,j,O,C;Zr||Hr(),this.styles=this.styles||li(e),C=this.styles.props,this.tween=r;for(f in t)if(f!=="autoRound"&&(c=t[f],!(xe[f]&&$n(f,t,r,n,e,s)))){if(m=typeof c,_=rr[f],m==="function"&&(c=c.call(r,n,e,s),m=typeof c),m==="string"&&~c.indexOf("random(")&&(c=qt(c)),_)_(this,e,f,c,r)&&(O=1);else if(f.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(f)+"").trim(),c+="",Le.lastIndex=0,Le.test(u)||(g=le(u),x=le(c)),x?g!==x&&(u=He(e,f,u,x)+x):g&&(c+=g),this.add(o,"setProperty",u,c,n,s,0,0,f),a.push(f),C.push(f,0,o[f]);else if(m!=="undefined"){if(l&&f in l?(u=typeof l[f]=="function"?l[f].call(r,n,e,s):l[f],re(u)&&~u.indexOf("random(")&&(u=qt(u)),le(u+"")||u==="auto"||(u+=ge.units[f]||le(Re(e,f))||""),(u+"").charAt(1)==="="&&(u=Re(e,f))):u=Re(e,f),p=parseFloat(u),v=m==="string"&&c.charAt(1)==="="&&c.substr(0,2),v&&(c=c.substr(2)),h=parseFloat(c),f in Pe&&(f==="autoAlpha"&&(p===1&&Re(e,"visibility")==="hidden"&&h&&(p=0),C.push("visibility",0,o.visibility),Ve(this,o,"visibility",p?"inherit":"hidden",h?"inherit":"hidden",!h)),f!=="scale"&&f!=="transform"&&(f=Pe[f],~f.indexOf(",")&&(f=f.split(",")[0]))),b=f in Ae,b){if(this.styles.save(f),m==="string"&&c.substring(0,6)==="var(--"&&(c=Oe(e,c.substring(4,c.indexOf(")"))),h=parseFloat(c)),w||(y=e._gsap,y.renderTransform&&!t.parseTransform||Nt(e,t.parseTransform),j=t.smoothOrigin!==!1&&y.smooth,w=this._pt=new pe(this._pt,o,X,0,1,y.renderTransform,y,0,-1),w.dep=1),f==="scale")this._pt=new pe(this._pt,y,"scaleY",y.scaleY,(v?nt(y.scaleY,v+h):h)-y.scaleY||0,Br),this._pt.u=0,a.push("scaleY",f),f+="X";else if(f==="transformOrigin"){C.push(_e,0,o[_e]),c=wa(c),y.svg?Yr(e,c,0,j,0,this):(x=parseFloat(c.split(" ")[2])||0,x!==y.zOrigin&&Ve(this,y,"zOrigin",y.zOrigin,x),Ve(this,o,f,nr(u),nr(c)));continue}else if(f==="svgOrigin"){Yr(e,c,1,j,0,this);continue}else if(f in gi){Oa(this,y,f,p,v?nt(p,v+c):c);continue}else if(f==="smoothOrigin"){Ve(this,y,"smooth",y.smooth,c);continue}else if(f==="force3D"){y[f]=c;continue}else if(f==="transform"){Ca(this,c,e);continue}}else f in o||(f=ft(f)||f);if(b||(h||h===0)&&(p||p===0)&&!la.test(c)&&f in o)g=(u+"").substr((p+"").length),h||(h=0),x=le(c)||(f in ge.units?ge.units[f]:g),g!==x&&(p=He(e,f,u,x)),this._pt=new pe(this._pt,b?y:o,f,p,(v?nt(p,v+h):h)-p,!b&&(x==="px"||f==="zIndex")&&t.autoRound!==!1?da:Br),this._pt.u=x||0,g!==x&&x!=="%"&&(this._pt.b=u,this._pt.r=ca);else if(f in o)ba.call(this,e,f,u,v?v+c:c);else if(f in e)this.add(e,f,u||e[f],v?v+c:c,n,s);else if(f!=="parseTransform"){mr(f,c);continue}b||(f in o?C.push(f,0,o[f]):typeof e[f]=="function"?C.push(f,2,e[f]()):C.push(f,1,u||e[f])),a.push(f)}}O&&Kn(this)},render:function(e,t){if(t.tween._time||!Lr())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:Re,aliases:Pe,getSetter:function(e,t,r){var n=Pe[t];return n&&n.indexOf(",")<0&&(t=n),t in Ae&&t!==_e&&(e._gsap.x||Re(e,"x"))?r&&ni===r?t==="scale"?ma:pa:(ni=r||{})&&(t==="scale"?_a:ga):e.style&&!ur(e.style[t])?fa:~t.indexOf("-")?ha:Ar(e,t)},core:{_removeProperty:Qe,_getMatrix:Ur}};me.utils.checkPrefix=ft,me.core.getStyleSaver=li,(function(i,e,t,r){var n=he(i+","+e+","+t,function(s){Ae[s]=1});he(e,function(s){ge.units[s]="deg",gi[s]=1}),Pe[n[13]]=i+","+e,he(r,function(s){var a=s.split(":");Pe[a[1]]=n[a[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),he("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(i){ge.units[i]="px"}),me.registerPlugin(wi);var ht=me.registerPlugin(wi)||me;ht.core.Tween;const ir=(i,e,t,r)=>e&&(Array.isArray(e)?e.length>0:e)?i.to(e,t,r):i,Sa=(i,e)=>{Si.useGSAP(()=>{if(!i.current)return;const t=ht.timeline({defaults:{duration:.7,ease:"power1.out"}}),r={navbar:i.current,navLabels:ht.utils.toArray(".nav-label"),navIconWrappers:ht.utils.toArray(".nav-icon-wrapper"),navIcons:ht.utils.toArray(".nav-icon"),navLinkItems:ht.utils.toArray(".nav-link-item"),logoutButton:document.querySelector(".logout-button"),logoutLabel:document.querySelector(".logout-label"),logoutIcon:document.querySelector(".logout-icon"),profileContainer:document.querySelector(".profile-container"),profileName:document.querySelector(".profile-name"),profileOptions:document.querySelector(".profile-options"),profileImageWrapper:document.querySelector(".profile-image-wrapper"),coverImageProfile:document.querySelector(".cover-image-profile"),navContentWrapper:document.querySelector(".nav-content-wrapper-active"),buttonCrevron:document.querySelector(".button-select-crevron"),separatorProfile:document.querySelector(".border-separator-profile"),buttonProfile:document.querySelector(".button-profile"),profileUserInfo:document.querySelector(".profile-user-info"),buttonContentChevron:document.querySelector(".button-content-chevron"),logo:{contenedor:document.querySelector(".container-logo"),icon:document.querySelector(".icon-logo"),text:document.querySelector(".text-logo")},sidebarHeader:document.querySelector(".sidebar-header"),containerIconcollapsade:document.querySelector(".container-icon-collapsade")};e?ka(t,r):Pa(t,r)},{scope:i,dependencies:[e]})},ka=(i,e)=>{i.to(e.navbar,{width:"6rem",duration:.2,ease:"bounce.out"}).to(e.logo.contenedor,{width:48,duration:.2}).to(e.logo.text,{opacity:0,scale:.8,duration:.5,ease:"back.in(1.2)"},-1).set(e.logo.text,{display:"none"}).to(e.sidebarHeader,{justifyContent:"center",display:"flex"},-1).to(e.logo.icon,{keyframes:{"0%":{scale:1},"33%":{scale:1.5},"66%":{scale:.5},"100%":{scale:1}},duration:.6,ease:"power1.inOut"}).to(e.navLinkItems,{justifyContent:"center",alignItems:"center",width:"3rem",height:"3rem",display:"flex"},-1).to(e.navLabels,{opacity:0,width:30,marginLeft:0},0).to(e.navIcons,{scale:.95,ease:"elastic.out(1, 0.3)"},0),ir(i,e.buttonCrevron,{width:0,opacity:0,duration:.7,ease:"power1.out",onComplete:()=>{e.buttonCrevron.style.display="none"}},0),ir(i,e.buttonContentChevron,{display:"none"},-1).to(e.separatorProfile,{display:"none"},-1).to(e.profileUserInfo,{display:"none"},-1).to(e.navLinkItems,{borderRadius:"8px",duration:.7,ease:"power1.out"},.8).to(e.buttonProfile,{height:"3rem",width:"3rem",margin:0,padding:0,duration:.3,ease:"power2.out",display:"flex",justifyContent:"center",alignItems:"center"},-1).to(e.containerIconcollapsade,{justifyContent:"center",marginRight:0},"=-1")},Pa=(i,e)=>{i.to(e.navbar,{width:"20rem"},-1).to(e.navLinkItems,{borderRadius:"10px",duration:.3,width:"100%",justifyContent:"flex-start"},-1),ir(i,e.buttonCrevron,{width:"auto",opacity:1,duration:0,ease:"power1.out",onComplete:()=>{e.buttonCrevron.style.display="flex"}},0),ir(i,e.buttonContentChevron,{display:"flex"},0).to(e.logo.contenedor,{width:185},-1).to(e.sidebarHeader,{justifyContent:"start",display:"flex"},-1).set(e.logo.text,{display:"flex"},-1).to(e.logo.text,{opacity:1,duration:0,ease:"back.in(1)"}).to(e.logo.icon,{keyframes:{"0%":{scale:1},"33%":{scale:1.5},"66%":{scale:.5},"100%":{scale:1}},duration:.3,ease:"power1.inOut"}).to(e.containerIconcollapsade,{justifyContent:"end",marginRight:20},-1).to(e.separatorProfile,{display:"flex"},0).to(e.profileUserInfo,{display:"flex"},-1).to(e.buttonProfile,{borderTopLeftRadius:"0.375rem",borderBottomLeftRadius:"0.375rem",borderTopRightRadius:"0",borderBottomRightRadius:"0",duration:0},-1).to(e.separatorProfile,{display:"flex"},0).to(e.navLabels,{opacity:1,width:"auto",scaleX:1},0).to(e.navIcons,{scale:1},.3)},Ti=({children:i,defaultCollapsed:e=!1,className:t=""})=>{const[r,n]=I.useState(e),s=I.useRef(null);Sa(s,r);const o={isCollapsed:r,setIsCollapsed:n,navbarRef:s,toggleCollapse:()=>{n(!r)}};return d.jsx(an.Provider,{value:o,children:d.jsx("div",{ref:s,className:`bg-neutral-default-default overflow-hidden h-screen flex flex-col border-r border-neutral-strong-default transition-all duration-300 ${r?"w-16":"w-64"} ${t}`,children:i})})},Na=Object.assign(Ti,{Root:Ti,CollapseButton:()=>{const{isCollapsed:i,toggleCollapse:e}=ar();return d.jsx("div",{className:k("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade",i&&""),children:d.jsx("button",{onClick:e,title:i?"Expandir Navbar":"Contraer Navbar","aria-label":i?"Expandir Navbar":"Contraer Navbar",className:"cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",children:i?d.jsx(ae.CloseNavBarDesktop,{size:24,className:"rotate-180 transition-transform duration-300"}):d.jsx(ae.CloseNavBarDesktop,{size:24,className:"rotate-0 transition-transform duration-300"})})})},Header:({children:i,className:e})=>d.jsx("div",{className:`${e} sidebar-header`,children:i}),Divider:({className:i})=>d.jsx("div",{className:k("px-3 flex justify-center items-center w-full mb-4",i),children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),Content:({children:i,className:e})=>d.jsx("div",{className:e,children:i}),Spacer:({className:i,size:e="auto"})=>{const t=()=>{switch(e){case"auto":return"flex-grow";case"small":return"h-2 w-2";case"medium":return"h-4 w-4";case"large":return"h-8 w-8"}};return d.jsx("div",{className:k(t(),i)})},Footer:({children:i,className:e})=>d.jsx("div",{className:e,children:i})}),Ea=({children:i,icon:e,label:t,href:r,onClick:n,isActive:s=!1,className:a})=>{const o=r?"a":"button";return d.jsxs(o,{href:r,onClick:n,className:k("nav-link-item","flex items-center w-full px-3 py-2 text-left","hover:bg-neutral-medium-default transition-colors rounded-lg","focus:outline-none focus:ring-2 focus:ring-primary-default-default",s&&"bg-neutral-medium-default",a),children:[e&&d.jsx("div",{className:"nav-icon-wrapper mr-3 flex-shrink-0",children:d.jsx("div",{className:"nav-icon flex items-center justify-center w-5 h-5",children:e})}),t&&d.jsx("span",{className:"nav-label text-sm text-neutral-strong-default",children:t}),i]})},Ma=({user:i,className:e,onProfileClick:t})=>{const{isCollapsed:r}=ar(),[n,s]=I.useState(!1),a=()=>{r?t?.():s(!n)};return d.jsxs("div",{className:k("profile-container",e),children:[d.jsxs("button",{onClick:a,className:k("button-profile","flex items-center w-full p-3 text-left","hover:bg-neutral-medium-default transition-colors rounded-lg","focus:outline-none focus:ring-2 focus:ring-primary-default-default"),children:[d.jsx("div",{className:"profile-image-wrapper flex-shrink-0 mr-3",children:d.jsx("div",{className:"cover-image-profile w-10 h-10 rounded-full bg-primary-default-default flex items-center justify-center text-white text-sm font-semibold",children:i.profileImage?d.jsx("img",{src:i.profileImage,alt:i.name,className:"w-full h-full rounded-full object-cover"}):i.name.charAt(0).toUpperCase()})}),d.jsxs("div",{className:"profile-user-info flex-1 min-w-0",children:[d.jsx("div",{className:"profile-name text-sm font-medium text-neutral-strong-default truncate",children:i.name}),d.jsx("div",{className:"text-xs text-neutral-medium-default truncate",children:i.email})]}),d.jsx("div",{className:"button-content-chevron ml-2 flex-shrink-0",children:d.jsx("div",{className:"button-select-crevron w-4 h-4 text-neutral-medium-default",children:n?"▲":"▼"})})]}),n&&!r&&d.jsx("div",{className:"profile-options mt-2 pl-3 space-y-1",children:d.jsxs("button",{className:"logout-button flex items-center w-full px-3 py-2 text-left text-sm text-neutral-strong-default hover:bg-neutral-medium-default rounded-lg",children:[d.jsx("span",{className:"logout-icon mr-2",children:"🚪"}),d.jsx("span",{className:"logout-label",children:"Cerrar sesión"})]})}),d.jsx("div",{className:"border-separator-profile mt-3 border-t border-neutral-strong-default"})]})},Aa=({links:i,isLinkActive:e,componentBadge:t,onClick:r,activeModal:n,onLinkClick:s})=>d.jsx("nav",{className:"flex flex-col gap-1",children:i?.map((a,o)=>{const l=e(a.path)||(a.relatedPaths?.some(u=>e(u))??!1);return a.isView&&a.viewAccess()&&d.jsxs(F.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.4,delay:o*.03,ease:"easeOut"},className:"relative flex justify-center w-full items-center px-3",children:[a.path==="/notifications"&&d.jsx("button",{onClick:r,className:k("nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ","transition-all duration-300 ease-out w-full","group hover:bg-neutral-medium-selected",n?"text-primary-default-default":"text-neutral-default-default"),children:d.jsxs(F.motion.div,{className:"nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",animate:{x:0},transition:{duration:.25,ease:"easeOut"},children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(F.motion.div,{className:"nav-icon-wrapper flex items-center justify-center flex-shrink-0",animate:{scale:n?1.05:1},transition:{duration:.25,ease:"easeOut"},children:typeof a.icon=="function"?a.icon({size:24,className:k("nav-icon transition-colors duration-250 ease-out",n?"text-primary-default-default":"text-neutral-default-default group-hover:text-white-prometeo")}):"text"}),d.jsx("span",{className:"nav-label whitespace-nowrap text-sm font-semibold ",children:a.title})]}),t&&a.count&&a.count>0&&t(a.count)]})}),a.path!=="/notifications"&&d.jsxs("button",{onClick:()=>{r?.(),s?.(a.path)},className:k("nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ","transition-all duration-300 ease-out w-full","group hover:bg-neutral-medium-selected",l?"text-primary-default-default bg-neutral-medium-selected":"text-neutral-default-default"),children:[d.jsx(F.AnimatePresence,{mode:"wait",children:l&&d.jsx(F.motion.div,{layoutId:"nav-active-bg",className:"absolute inset-0 bg-neutral-medium-selected rounded-lg",initial:!1,animate:{opacity:1},exit:{opacity:0},transition:{type:"tween",duration:.25,ease:"easeInOut"}})}),d.jsxs(F.motion.div,{className:"nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",animate:{x:0},transition:{duration:.25,ease:"easeOut"},children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(F.motion.div,{className:"nav-icon-wrapper flex items-center justify-center flex-shrink-0",animate:{scale:l?1.05:1},transition:{duration:.25,ease:"easeOut"},children:typeof a.icon=="function"?a.icon({size:24,className:k("nav-icon transition-colors duration-250 ease-out",l?"text-primary-default-default":"text-neutral-default-default group-hover:text-white-prometeo")}):null}),d.jsx("span",{className:"nav-label whitespace-nowrap text-sm font-semibold ",children:a.title})]}),t&&a.count&&a.count>0&&t(a.count)]})]})]},o)})}),Ra=({count:i,maxCount:e=9,className:t="",size:r="medium",variant:n="primary",showZero:s=!1})=>{const a=i,o=a>e?`+${e}`:a;if(a===0&&!s)return null;const l={small:"w-4 h-4 text-xs",medium:"w-5 h-5 text-xs",large:"w-6 h-6 text-sm"},u={primary:"bg-primary-default-default text-neutral-strong-default",secondary:"bg-neutral-medium-default text-neutral-strong-default",success:"bg-green-500 text-white",warning:"bg-yellow-500 text-black",danger:"bg-red-500 text-white"};return d.jsx("div",{className:k("rounded-full flex items-center justify-center font-medium",l[r],u[n],t),children:d.jsx("span",{children:o})})},Da=({isActiveModalNotification:i,setIsActiveModalNotification:e})=>({handleNotificationClick:()=>{e(!0)},isActiveModalNotification:i}),Fa=i=>{const e=I.useRef(null);return{isCollapsed:i,navbarRef:e}},Ia=({isCollapsed:i,onToggle:e})=>d.jsx("div",{className:"",children:d.jsx("button",{onClick:e,title:i?"Expandir Navbar":"Contraer Navbar","aria-label":i?"Expandir Navbar":"Contraer Navbar",className:"cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",children:i?d.jsx(ae.CloseNavBarDesktop,{size:34,className:"rotate-180 transition-transform duration-300"}):d.jsx(ae.CloseNavBarDesktop,{size:34,className:"rotate-0 transition-transform duration-300"})})}),Za=({logoUrl:i,companyName:e})=>d.jsx("div",{className:"w-full flex justify-center items-center p-2 h-20",children:d.jsx("img",{src:i,className:"h-2/3 rounded-full",alt:e??""})}),La=(i,e=!0)=>{const t=I.useRef(null);return I.useEffect(()=>{if(!e)return;const r=n=>{t.current&&!t.current.contains(n.target)&&i()};return document.addEventListener("mousedown",r,{capture:!0}),document.addEventListener("touchstart",r,{capture:!0}),()=>{document.removeEventListener("mousedown",r,{capture:!0}),document.removeEventListener("touchstart",r,{capture:!0})}},[i,e]),t};N.Avatar=tn,N.Badge=Ra,N.Button=Ai,N.CardProfile=Rt,N.ChangueAccount=sn,N.CheckboxFormik=Ri,N.CompanyLogo=Za,N.Header=Fi,N.Icons=ae,N.Input=as,N.InputFormik=os,N.LayoutGeneric=hs,N.Logo=ls,N.Menu=us,N.NavbarCollapseButton=Ia,N.NavbarLinks=Aa,N.NavigationLink=Ea,N.Pagination=cs,N.ProfileSection=Ma,N.Select=fs,N.Sidebar=Na,N.Spinner=sr,N.useActionsNavbar=Da,N.useClickOutside=La,N.useNavbarCollapse=Fa,N.useSidebar=ar,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})}));
|