prometeo-design-system 1.0.1 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -22
- package/dist/components/Button/Button.d.ts +1 -3
- package/dist/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/components/Sidebar/components/badge.d.ts +1 -2
- package/dist/components/Sidebar/components/collapse-button.d.ts +1 -2
- package/dist/components/Sidebar/components/company-logo.d.ts +1 -2
- package/dist/components/Sidebar/components/nav-links.d.ts +3 -3
- package/dist/components/Sidebar/components/user-profile.d.ts +1 -2
- package/dist/components/Sidebar/hooks/useNavLinks.d.ts +8 -0
- package/dist/components/UserProfile/UserProfile.d.ts +2 -0
- package/dist/index.d.ts +9 -3
- package/dist/prometeo-design-system.es.js +529 -531
- package/dist/prometeo-design-system.umd.js +7 -7
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(M,B){typeof exports=="object"&&typeof module<"u"?B(exports,require("react"),require("clsx"),require("tailwind-merge"),require("framer-motion"),require("use-debounce"),require("boring-avatars"),require("
|
|
1
|
+
(function(M,B){typeof exports=="object"&&typeof module<"u"?B(exports,require("react"),require("clsx"),require("tailwind-merge"),require("framer-motion"),require("use-debounce"),require("boring-avatars"),require("react-router-dom"),require("@gsap/react")):typeof define=="function"&&define.amd?define(["exports","react","clsx","tailwind-merge","framer-motion","use-debounce","boring-avatars","react-router-dom","@gsap/react"],B):(M=typeof globalThis<"u"?globalThis:M||self,B(M.PrometeoDesignSystem={},M.React,M.clsx,M.tailwindMerge,M.FramerMotion,M.useDebounce,M.BoringAvatars,M.ReactRouterDOM,M.GSAPReact))})(this,(function(M,B,fn,cn,R,hn,dn,Oe,_n){"use strict";var je={exports:{}},ce={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Lr;function pn(){if(Lr)return ce;Lr=1;var a=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function e(r,i,n){var s=null;if(n!==void 0&&(s=""+n),i.key!==void 0&&(s=""+i.key),"key"in i){n={};for(var o in i)o!=="key"&&(n[o]=i[o])}else n=i;return i=n.ref,{$$typeof:a,type:r,key:s,ref:i!==void 0?i:null,props:n}}return ce.Fragment=t,ce.jsx=e,ce.jsxs=e,ce}var he={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,24 +14,24 @@
|
|
|
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
|
|
17
|
+
*/var Ir;function mn(){return Ir||(Ir=1,process.env.NODE_ENV!=="production"&&(function(){function a(w){if(w==null)return null;if(typeof w=="function")return w.$$typeof===k?null:w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case c:return"Fragment";case x:return"Profiler";case g:return"StrictMode";case v:return"Suspense";case S:return"SuspenseList";case q:return"Activity"}if(typeof w=="object")switch(typeof w.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),w.$$typeof){case m:return"Portal";case b:return(w.displayName||"Context")+".Provider";case y:return(w._context.displayName||"Context")+".Consumer";case T:var j=w.render;return w=w.displayName,w||(w=j.displayName||j.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case C:return j=w.displayName||null,j!==null?j:a(w.type)||"Memo";case O:j=w._payload,w=w._init;try{return a(w(j))}catch{}}return null}function t(w){return""+w}function e(w){try{t(w);var j=!1}catch{j=!0}if(j){j=console;var E=j.error,K=typeof Symbol=="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object";return E.call(j,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",K),t(w)}}function r(w){if(w===c)return"<>";if(typeof w=="object"&&w!==null&&w.$$typeof===O)return"<...>";try{var j=a(w);return j?"<"+j+">":"<...>"}catch{return"<...>"}}function i(){var w=N.A;return w===null?null:w.getOwner()}function n(){return Error("react-stack-top-frame")}function s(w){if(A.call(w,"key")){var j=Object.getOwnPropertyDescriptor(w,"key").get;if(j&&j.isReactWarning)return!1}return w.key!==void 0}function o(w,j){function E(){W||(W=!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)",j))}E.isReactWarning=!0,Object.defineProperty(w,"key",{get:E,configurable:!0})}function l(){var w=a(this.type);return H[w]||(H[w]=!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.")),w=this.props.ref,w!==void 0?w:null}function u(w,j,E,K,tt,et,Nr,Mr){return E=et.ref,w={$$typeof:p,type:w,key:j,props:et,_owner:tt},(E!==void 0?E:null)!==null?Object.defineProperty(w,"ref",{enumerable:!1,get:l}):Object.defineProperty(w,"ref",{enumerable:!1,value:null}),w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(w,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(w,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Nr}),Object.defineProperty(w,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Mr}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w}function f(w,j,E,K,tt,et,Nr,Mr){var st=j.children;if(st!==void 0)if(K)if(D(st)){for(K=0;K<st.length;K++)h(st[K]);Object.freeze&&Object.freeze(st)}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(st);if(A.call(j,"key")){st=a(w);var fe=Object.keys(j).filter(function(Us){return Us!=="key"});K=0<fe.length?"{key: someKey, "+fe.join(": ..., ")+": ...}":"{key: someKey}",Jt[st+K]||(fe=0<fe.length?"{"+fe.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} />`,K,st,fe,st),Jt[st+K]=!0)}if(st=null,E!==void 0&&(e(E),st=""+E),s(j)&&(e(j.key),st=""+j.key),"key"in j){E={};for(var Mr in j)Mr!=="key"&&(E[Mr]=j[Mr])}else E=j;return st&&o(E,typeof w=="function"?w.displayName||w.name||"Unknown":w),u(w,st,et,tt,i(),E,Er,Nr)}function h(w){typeof w=="object"&&w!==null&&w.$$typeof===p&&w._store&&(w._store.validated=1)}var _=B,p=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),T=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),k=Symbol.for("react.client.reference"),N=_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,D=Array.isArray,X=console.createTask?console.createTask:function(){return null};_={react_stack_bottom_frame:function(w){return w()}};var W,H={},G=_.react_stack_bottom_frame.bind(_,n)(),ht=X(r(n)),Jt={};he.Fragment=c,he.jsx=function(w,j,E,K,tt){var et=1e4>N.recentlyCreatedOwnerStacks++;return f(w,j,E,!1,K,tt,et?Error("react-stack-top-frame"):G,et?X(r(w)):ht)},he.jsxs=function(w,j,E,K,tt){var et=1e4>N.recentlyCreatedOwnerStacks++;return f(w,j,E,!0,K,tt,et?Error("react-stack-top-frame"):G,et?X(r(w)):ht)}})()),he}var Ir;function vn(){return Ir||(Ir=1,process.env.NODE_ENV==="production"?Se.exports=mn():Se.exports=gn()),Se.exports}var d=vn();function F(...a){return cn.twMerge(fn.clsx(a))}const xn={filled:{primary:F("bg-primary-default-default text-neutral-strong-default border-0 cursor-pointer flex items-center justify-center","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"),secondary:F("bg-neutral-strong-medium-default flex items-center justify-center 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")},outline:{primary:F("bg-transparent text-primary-medium-default border-1 border-primary-medium-default flex items-center justify-center","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 disabled:bg-transparent"),secondary:F("bg-transparent text-neutral-strong-default border-1 border-neutral-strong-default flex items-center justify-center","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 disabled:bg-transparent")},text:{primary:F("bg-transparent text-primary-medium-default border-0 flex items-center justify-center","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 disabled:bg-transparent"),secondary:F("bg-transparent text-neutral-strong-default border-0 flex items-center justify-center","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 disabled:bg-transparent")}},yn={small:"h-[40px] min-w-[123px] px-2 text-sm rounded-md text-sm font-semibold",medium:"h-[48px] min-w-[134px] px-2 font-semibold text-base rounded-md",large:"h-[56px] min-w-[145px] px-4 py-3 text-base rounded-md font-semibold"},wn={enabled:"",hovered:"scale-105",focused:"ring-2 ring-offset-2",pressed:"scale-95",disabled:"opacity-50 cursor-not-allowed pointer-events-none"};function Tn({label:a,onClick:t,icon:e,classButton:r,classButtonText:i,animate:n=!0,animateIcon:s=!0,isLoading:o=!1,disabled:l=!1,type:u="button",variant:f="filled",color:h="primary",size:_="medium",children:p,Spinner:m,forceState:c}){const g=R.useAnimationControls(),x=()=>{!n||l||o||c||!s||g.start({rotate:90})},y=()=>{!n||l||o||c||!s||g.start({rotate:0})},T=r||F(xn[f][h],yn[_],c&&wn[c],(l||o)&&"opacity-50 cursor-not-allowed","focus:outline-none");return d.jsx(R.motion.button,{onClick:t,className:T,whileHover:n&&!l&&!o?{scale:1.05}:{},whileTap:n&&!l&&!o?{scale:.98}:{},transition:{type:"spring",stiffness:400,damping:17},onHoverStart:x,onHoverEnd:y,disabled:l||o,type:u,children:o?d.jsxs("div",{className:"flex items-center gap-2",children:[m,_!=="small"&&d.jsx("span",{children:"Cargando..."})]}):p||d.jsxs("span",{className:F("flex items-center indent-1",i),children:[e&&d.jsx(R.motion.div,{animate:s?g:void 0,transition:{type:"spring",stiffness:400,damping:17},children:e}),a&&d.jsx("span",{children:a})]})})}const bn=({label:a,icon:t,onChange:e,value:r="",debounceMs:i=0,name:n,width:s="100%",height:o="56px",className:l,id:u,isFetching:f=!1,placeholder:h="",disabled:_=!1,required:p=!1,error:m,type:c="text"})=>{const g=B.useId(),x=u||g,[y,T]=B.useState(r),[b,v]=B.useState(!1),[O]=hn.useDebounce(y,i>0?i:0);B.useEffect(()=>{T(r)},[r]),B.useEffect(()=>{i>0&&O!==r&&e(O)},[O,i,e,r]);const C=N=>{const A=N.target.value;T(A),i===0&&e(A)},S=y.length>0,q=m&&!b,k=b||S;return d.jsxs("div",{className:F("relative w-72",l),style:{width:s,height:o},children:[d.jsxs("div",{className:F("relative w-72 h-full","border-2 rounded-lg transition-all duration-200","bg-white hover:bg-gray-50",!m&&!b&&"border-gray-300",!m&&b&&"border-blue-500 ring-2 ring-blue-200",q&&"border-red-500 ring-2 ring-red-200",_&&"bg-gray-100 border-gray-200 cursor-not-allowed",t?"pl-12":"pl-4","pr-4"),children:[t&&d.jsx(R.motion.div,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 z-10",animate:{y:k?[-2,0]:0,rotate:b?[0,-10,10,-10,10,0]:0},transition:{duration:.7},children:d.jsx("span",{className:F("text-lg transition-colors duration-200",!m&&!k&&"text-gray-400",!m&&k&&"text-blue-500",q&&"text-red-500",_&&"text-gray-300"),children:t})}),d.jsx("input",{id:x,type:c,className:F("w-full h-full bg-transparent border-none outline-none","text-gray-900 text-base transition-all duration-200","placeholder-transparent","pt-6 pb-2",_&&"cursor-not-allowed text-gray-400","focus:outline-none"),name:n,value:y,placeholder:b?h:"",disabled:_,required:p,onFocus:()=>v(!0),onBlur:()=>v(!1),onChange:C,"aria-invalid":!!m,"aria-describedby":m?`${x}-error`:void 0}),d.jsxs(R.motion.label,{htmlFor:x,className:F("absolute left-0 top-1/2 transform origin-left cursor-text","transition-all duration-200 pointer-events-none select-none","text-gray-500 font-medium",t?"ml-12":"ml-4",!m&&!k&&"text-gray-500",!m&&k&&"text-blue-600",q&&"text-red-500",_&&"text-gray-400"),animate:{y:k?-20:-8,scale:k?.85:1},transition:{duration:.2,ease:"easeOut"},children:[a,p&&d.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),f&&d.jsx(R.motion.div,{className:"absolute right-3 top-1/2 transform -translate-y-1/2",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:d.jsx("div",{className:F("w-5 h-5 border-2 border-gray-300 border-t-blue-500","rounded-full animate-spin")})})]}),m&&d.jsx(R.motion.span,{id:`${x}-error`,className:F("block mt-1 text-sm text-red-500 font-medium","px-1"),initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},role:"alert",children:m})]})},qn=B.memo(bn),Ft={Ticket:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className: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-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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M240-200h120v-240h240v240h120v-360L480-740 240-560v360Zm-80 80v-480l320-240 320 240v480H520v-240h-80v240H160Zm320-350Z"})}),Boards:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"})}),CrevronRight:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"})}),ArrowLeft:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M400-240 160-480l240-240 56 58-142 142h486v80H314l142 142-56 58Z"})}),Shared:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M480-345 240-585l56-56 184 183 184-183 56 56-240 240Z"})}),Collapse:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M440-440v240h-80v-160H200v-80h240Zm160-320v160h160v80H520v-240h80Z"})}),Calendar:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M400-240v-80h160v80H400ZM240-440v-80h480v80H240ZM120-640v-80h720v80H120Z"})}),Search:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z"})}),Edit:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsxs("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,className:t,children:[d.jsx("mask",{id:"mask0_977_20941",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:a,height:a,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"})})]})};function Cn({profileImage:a,size:t,sizeImage:e=5.5}){const[r,i]=B.useState(!1);return d.jsx(d.Fragment,{children:a&&!r?d.jsx("img",{onError:()=>{i(!0)},src:a,className:`w-${e} h-${e} rounded-full`}):d.jsx(dn,{size:t,name:a,variant:"beam",colors:["#92A1C6","#146A7C","#F0AB3D","#C271B4","#C20D90"]})})}const He=({user:a,isExpanded:t,onClick:e,onProfileClick:r,showOptions:i=!1,onClickLogout:n,sessions:s,handleTokenLogin:o})=>{const l=s?.filter(u=>u.email!==a?.email);return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"profile-container flex my-2 rounded-md text-white-prometeo overflow-hidden flex-shrink-0 ",children:[d.jsxs(R.motion.button,{onClick:r,className:F("flex flex-1 gap-1 rounded-l-md cursor-pointer justify-center relative overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",t&&"bg-neutral-medium-selected"),whileHover:{opacity:1,scale:[1,1.02,1]},whileTap:{scale:.98},transition:{duration:.2,ease:"easeInOut"},children:[d.jsx("div",{className:"profile-image-wrapper flex-shrink-0 h-10 w-10 flex items-center justify-center relative z-10",children:d.jsx(Cn,{profileImage:a?.profileImage||"",size:36})}),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:F("profile-name font-semibold leading-tight mb-0 text-left",t?"text-primary-default-default":"text-neutral-default-default"),children:a?.name?.length&&a?.name?.length>20?a?.name?.slice(0,10)+"..":a?.name}),d.jsx("div",{className:"flex items-center gap-1 mt-1",children:a&&a.company_id?d.jsxs(d.Fragment,{children:[d.jsx("p",{className:F("profile-options truncate text-xs mt-0",t?"text-primary-default-default":"text-neutral-default-default"),children:a?.company_id?.name?.length&&a?.company_id?.name?.length>20?a?.company_id?.name?.slice(0,10)+"..":a?.company_id?.name}),d.jsx("p",{className:F("profile-options truncate font-bold mt-0",t?"text-primary-default-default":"text-neutral-default-default"),children:"·"}),d.jsx("p",{className:F("profile-options truncate text-xs mt-0",t?"text-primary-default-default":"text-neutral-default-default"),children:a?.area?.name||a?.company_id?.name||"Sin asignar"})]}):d.jsx("span",{className:"font-semibold leading-tight ml-3 text-xs text-blue-300 text-center",children:"Sin asignar"})})]})]}),i&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"w-px bg-gray-500/30 my-1 border-separator-profile"}),d.jsx(R.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] \r
|
|
23
|
-
hover:bg-neutral-medium-selected button-content-chevron`,whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.2,ease:"easeOut"},title:t?"Ocultar opciones":"Mostrar opciones","aria-label":t?"Ocultar opciones":"Mostrar opciones",children:d.jsx(R.motion.div,{animate:{rotate:t?180:0},transition:{duration:.3,ease:"easeOut"},className:"relative button-select-crevron",children:d.jsx(R.motion.div,{transition:{duration:.2},children:d.jsx(Ft.ChevronDown,{size:20,className:"text-prometeo-neutral "})})})})]})]}),d.jsx(R.AnimatePresence,{mode:"wait",children:t&&d.jsxs(R.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(R.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"})}),l&&l?.length>0&&d.jsxs(d.Fragment,{children:[d.jsx(R.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(R.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(
|
|
22
|
+
<%s key={someKey} {...props} />`,K,st,fe,st),Jt[st+K]=!0)}if(st=null,E!==void 0&&(e(E),st=""+E),s(j)&&(e(j.key),st=""+j.key),"key"in j){E={};for(var Dr in j)Dr!=="key"&&(E[Dr]=j[Dr])}else E=j;return st&&o(E,typeof w=="function"?w.displayName||w.name||"Unknown":w),u(w,st,et,tt,i(),E,Nr,Mr)}function h(w){typeof w=="object"&&w!==null&&w.$$typeof===p&&w._store&&(w._store.validated=1)}var _=B,p=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),b=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),k=Symbol.for("react.client.reference"),N=_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,D=Array.isArray,X=console.createTask?console.createTask:function(){return null};_={react_stack_bottom_frame:function(w){return w()}};var W,H={},G=_.react_stack_bottom_frame.bind(_,n)(),ht=X(r(n)),Jt={};he.Fragment=c,he.jsx=function(w,j,E,K,tt){var et=1e4>N.recentlyCreatedOwnerStacks++;return f(w,j,E,!1,K,tt,et?Error("react-stack-top-frame"):G,et?X(r(w)):ht)},he.jsxs=function(w,j,E,K,tt){var et=1e4>N.recentlyCreatedOwnerStacks++;return f(w,j,E,!0,K,tt,et?Error("react-stack-top-frame"):G,et?X(r(w)):ht)}})()),he}var Fr;function gn(){return Fr||(Fr=1,process.env.NODE_ENV==="production"?je.exports=pn():je.exports=mn()),je.exports}var d=gn();function F(...a){return cn.twMerge(fn.clsx(a))}const vn={filled:{primary:F("bg-primary-default-default text-neutral-strong-default border-0 cursor-pointer flex items-center justify-center","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"),secondary:F("bg-neutral-strong-medium-default flex items-center justify-center 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")},outline:{primary:F("bg-transparent text-primary-medium-default border-1 border-primary-medium-default flex items-center justify-center","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 disabled:bg-transparent"),secondary:F("bg-transparent text-neutral-strong-default border-1 border-neutral-strong-default flex items-center justify-center","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 disabled:bg-transparent")},text:{primary:F("bg-transparent text-primary-medium-default border-0 flex items-center justify-center","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 disabled:bg-transparent"),secondary:F("bg-transparent text-neutral-strong-default border-0 flex items-center justify-center","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 disabled:bg-transparent")}},xn={small:"h-[40px] min-w-[123px] px-2 py-3 text-sm rounded-md text-sm font-semibold",medium:"h-[48px] min-w-[134px] px-2 py-3 font-semibold text-base rounded-md",large:"h-[56px] min-w-[145px] px-4 py-3 text-base rounded-md font-semibold"};function yn({label:a,onClick:t,icon:e,classButton:r,classButtonText:i,animate:n=!0,animateIcon:s=!0,isLoading:o=!1,disabled:l=!1,type:u="button",variant:f="filled",color:h="primary",size:_="medium",children:p,Spinner:m}){const c=R.useAnimationControls(),g=()=>{!n||l||o||!s||c.start({rotate:90})},x=()=>{!n||l||o||!s||c.start({rotate:0})},y=r||F(vn[f][h],xn[_],(l||o)&&"opacity-50 cursor-not-allowed","focus:outline-none");return d.jsx(R.motion.button,{onClick:t,className:y,whileHover:n&&!l&&!o?{scale:1.05}:{},whileTap:n&&!l&&!o?{scale:.98}:{},transition:{type:"spring",stiffness:400,damping:17},onHoverStart:g,onHoverEnd:x,disabled:l||o,type:u,children:o?d.jsxs("div",{className:"flex items-center gap-2",children:[m,_!=="small"&&d.jsx("span",{children:"Cargando..."})]}):p||d.jsxs("span",{className:F("flex items-center indent-1",i),children:[e&&d.jsx(R.motion.div,{animate:s?c:void 0,transition:{type:"spring",stiffness:400,damping:17},children:e}),a&&d.jsx("span",{children:a})]})})}const wn=({label:a,icon:t,onChange:e,value:r="",debounceMs:i=0,name:n,width:s="100%",height:o="56px",className:l,id:u,isFetching:f=!1,placeholder:h="",disabled:_=!1,required:p=!1,error:m,type:c="text"})=>{const g=B.useId(),x=u||g,[y,b]=B.useState(r),[T,v]=B.useState(!1),[S]=hn.useDebounce(y,i>0?i:0);B.useEffect(()=>{b(r)},[r]),B.useEffect(()=>{i>0&&S!==r&&e(S)},[S,i,e,r]);const C=N=>{const A=N.target.value;b(A),i===0&&e(A)},O=y.length>0,q=m&&!T,k=T||O;return d.jsxs("div",{className:F("relative w-72",l),style:{width:s,height:o},children:[d.jsxs("div",{className:F("relative w-72 h-full","border-2 rounded-lg transition-all duration-200","bg-white hover:bg-gray-50",!m&&!T&&"border-gray-300",!m&&T&&"border-blue-500 ring-2 ring-blue-200",q&&"border-red-500 ring-2 ring-red-200",_&&"bg-gray-100 border-gray-200 cursor-not-allowed",t?"pl-12":"pl-4","pr-4"),children:[t&&d.jsx(R.motion.div,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 z-10",animate:{y:k?[-2,0]:0,rotate:T?[0,-10,10,-10,10,0]:0},transition:{duration:.7},children:d.jsx("span",{className:F("text-lg transition-colors duration-200",!m&&!k&&"text-gray-400",!m&&k&&"text-blue-500",q&&"text-red-500",_&&"text-gray-300"),children:t})}),d.jsx("input",{id:x,type:c,className:F("w-full h-full bg-transparent border-none outline-none","text-gray-900 text-base transition-all duration-200","placeholder-transparent","pt-6 pb-2",_&&"cursor-not-allowed text-gray-400","focus:outline-none"),name:n,value:y,placeholder:T?h:"",disabled:_,required:p,onFocus:()=>v(!0),onBlur:()=>v(!1),onChange:C,"aria-invalid":!!m,"aria-describedby":m?`${x}-error`:void 0}),d.jsxs(R.motion.label,{htmlFor:x,className:F("absolute left-0 top-1/2 transform origin-left cursor-text","transition-all duration-200 pointer-events-none select-none","text-gray-500 font-medium",t?"ml-12":"ml-4",!m&&!k&&"text-gray-500",!m&&k&&"text-blue-600",q&&"text-red-500",_&&"text-gray-400"),animate:{y:k?-20:-8,scale:k?.85:1},transition:{duration:.2,ease:"easeOut"},children:[a,p&&d.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),f&&d.jsx(R.motion.div,{className:"absolute right-3 top-1/2 transform -translate-y-1/2",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:d.jsx("div",{className:F("w-5 h-5 border-2 border-gray-300 border-t-blue-500","rounded-full animate-spin")})})]}),m&&d.jsx(R.motion.span,{id:`${x}-error`,className:F("block mt-1 text-sm text-red-500 font-medium","px-1"),initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},role:"alert",children:m})]})},Tn=B.memo(wn),Ft={Ticket:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className: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-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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M240-200h120v-240h240v240h120v-360L480-740 240-560v360Zm-80 80v-480l320-240 320 240v480H520v-240h-80v240H160Zm320-350Z"})}),Boards:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"})}),CrevronRight:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"})}),ArrowLeft:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M400-240 160-480l240-240 56 58-142 142h486v80H314l142 142-56 58Z"})}),Shared:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M480-345 240-585l56-56 184 183 184-183 56 56-240 240Z"})}),Collapse:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M440-440v240h-80v-160H200v-80h240Zm160-320v160h160v80H520v-240h80Z"})}),Calendar:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M400-240v-80h160v80H400ZM240-440v-80h480v80H240ZM120-640v-80h720v80H120Z"})}),Search:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z"})}),Edit:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,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:a,className:t,...e})=>d.jsxs("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,className:t,children:[d.jsx("mask",{id:"mask0_977_20941",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:a,height:a,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"})})]})};function bn({profileImage:a,size:t,sizeImage:e=5.5}){const[r,i]=B.useState(!1);return d.jsx(d.Fragment,{children:a&&!r?d.jsx("img",{onError:()=>{i(!0)},src:a,className:`w-${e} h-${e} rounded-full`}):d.jsx(dn,{size:t,name:a,variant:"beam",colors:["#92A1C6","#146A7C","#F0AB3D","#C271B4","#C20D90"]})})}const He=({user:a,isExpanded:t,onClick:e,onProfileClick:r,showOptions:i=!1,onClickLogout:n,sessions:s,handleTokenLogin:o})=>{const l=s?.filter(u=>u.email!==a?.email);return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"profile-container flex my-2 rounded-md text-white-prometeo overflow-hidden flex-shrink-0 ",children:[d.jsxs(R.motion.button,{onClick:r,className:F("flex flex-1 gap-1 rounded-l-md cursor-pointer justify-center relative overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",t&&"bg-neutral-medium-selected"),whileHover:{opacity:1,scale:[1,1.02,1]},whileTap:{scale:.98},transition:{duration:.2,ease:"easeInOut"},children:[d.jsx("div",{className:"profile-image-wrapper flex-shrink-0 h-10 w-10 flex items-center justify-center relative z-10",children:d.jsx(bn,{profileImage:a?.profileImage||"",size:36})}),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:F("profile-name font-semibold leading-tight mb-0 text-left",t?"text-primary-default-default":"text-neutral-default-default"),children:a?.name?.length&&a?.name?.length>20?a?.name?.slice(0,10)+"..":a?.name}),d.jsx("div",{className:"flex items-center gap-1 mt-1",children:a&&a.company_id?d.jsxs(d.Fragment,{children:[d.jsx("p",{className:F("profile-options truncate text-xs mt-0",t?"text-primary-default-default":"text-neutral-default-default"),children:a?.company_id?.name?.length&&a?.company_id?.name?.length>20?a?.company_id?.name?.slice(0,10)+"..":a?.company_id?.name}),d.jsx("p",{className:F("profile-options truncate font-bold mt-0",t?"text-primary-default-default":"text-neutral-default-default"),children:"·"}),d.jsx("p",{className:F("profile-options truncate text-xs mt-0",t?"text-primary-default-default":"text-neutral-default-default"),children:a?.area?.name||a?.company_id?.name||"Sin asignar"})]}):d.jsx("span",{className:"font-semibold leading-tight ml-3 text-xs text-blue-300 text-center",children:"Sin asignar"})})]})]}),i&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"w-px bg-gray-500/30 my-1 border-separator-profile"}),d.jsx(R.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] \r
|
|
23
|
+
hover:bg-neutral-medium-selected button-content-chevron`,whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.2,ease:"easeOut"},title:t?"Ocultar opciones":"Mostrar opciones","aria-label":t?"Ocultar opciones":"Mostrar opciones",children:d.jsx(R.motion.div,{animate:{rotate:t?180:0},transition:{duration:.3,ease:"easeOut"},className:"relative button-select-crevron",children:d.jsx(R.motion.div,{transition:{duration:.2},children:d.jsx(Ft.ChevronDown,{size:20,className:"text-prometeo-neutral "})})})})]})]}),d.jsx(R.AnimatePresence,{mode:"wait",children:t&&d.jsxs(R.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(R.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"})}),l&&l?.length>0&&d.jsxs(d.Fragment,{children:[d.jsx(R.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(R.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(Zr,{sessions:l,handleTokenLogin:o})}),d.jsx(R.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(R.motion.button,{onClick:n,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(Ft.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 Zr({sessions:a,handleTokenLogin:t}){return d.jsx("div",{className:"profile-options-container",children:a?.map(e=>d.jsx("button",{onClick:()=>t?.(e.token),children:d.jsx(He,{user:e},e._id)},e._id))})}const Br=({sessionsShow:a,handleTokenLogin:t,onClickLogout:e,menuRef:r,onProfileClick:i})=>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(R.AnimatePresence,{mode:"wait",children:d.jsxs(R.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(R.motion.button,{onClick:i,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(Ft.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(R.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"}}}),a&&a?.length>0&&d.jsxs(d.Fragment,{children:[d.jsx(R.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(R.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(Zr,{sessions:a,handleTokenLogin:t})}),d.jsx(R.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(R.motion.button,{onClick:e,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(Ft.Logout,{size:24,className:"text-neutral-default-default"}),d.jsx("span",{className:"text-neutral-default-default font-semibold text-sm",children:"Cerrar sesión"})]})]})})}),Ve=({notificationsCount:a})=>d.jsx(d.Fragment,{children:a>0&&d.jsx("div",{className:"w-5 h-5 bg-primary rounded-full flex items-center justify-center",children:d.jsx("span",{className:"text-xs text-neutral-default-default font-medium",children:a})})}),zr=({isCollapsed:a,onToggle:t})=>d.jsx("div",{className:"p-4 flex justify-end",children:d.jsx("button",{onClick:t,title:a?"Expandir Navbar":"Contraer Navbar","aria-label":a?"Expandir Navbar":"Contraer Navbar",className:"cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",children:a?d.jsx(Ft.CloseNavBarDesktop,{size:24,className:"rotate-180 transition-transform duration-300"}):d.jsx(Ft.CloseNavBarDesktop,{size:24,className:"rotate-0 transition-transform duration-300"})})}),Ur=({logoUrl:a,companyName:t})=>d.jsx("div",{className:"w-full flex justify-center items-center p-2 h-20",children:d.jsx("img",{src:a,className:"h-2/3 rounded-full",alt:t??""})}),Ye=({links:a,isLinkActive:t,componentBadge:e,onClick:r,activeModal:i})=>d.jsx("nav",{className:"flex flex-col gap-1",children:a.map((n,s)=>{const o=t(n.path)||(n.relatedPaths?.some(l=>t(l))??!1);return n.isView&&d.jsxs(R.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.4,delay:s*.03,ease:"easeOut"},className:"relative flex justify-center w-full items-center px-3",children:[n.path==="/notifications"&&d.jsx("button",{onClick:r,className:F("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",i?"text-primary-default-default":"text-neutral-default-default"),children:d.jsxs(R.motion.div,{className:"nav-content-wrapper flex items-center gap-3 px-3 relative z-10 w-full",animate:{x:0},transition:{duration:.25,ease:"easeOut"},children:[d.jsx(R.motion.div,{className:"nav-icon-wrapper flex items-center justify-center flex-shrink-0",animate:{scale:i?1.05:1},transition:{duration:.25,ease:"easeOut"},children:typeof n.icon=="function"?n.icon({size:24,className:F("nav-icon transition-colors duration-250 ease-out",i?"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:n.title}),e&&n.count&&n.count>0&&e(n.count)]})}),n.path!=="/notifications"&&d.jsxs(Oe.Link,{to:n.path,onClick:r,className:F("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",o?"text-primary-default-default bg-neutral-medium-selected":"text-neutral-default-default"),children:[d.jsx(R.AnimatePresence,{mode:"wait",children:o&&d.jsx(R.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(R.motion.div,{className:"nav-content-wrapper flex items-center gap-3 px-3 relative z-10 w-full",animate:{x:0},transition:{duration:.25,ease:"easeOut"},children:[d.jsx(R.motion.div,{className:"nav-icon-wrapper flex items-center justify-center flex-shrink-0",animate:{scale:o?1.05:1},transition:{duration:.25,ease:"easeOut"},children:typeof n.icon=="function"?n.icon({size:24,className:F("nav-icon transition-colors duration-250 ease-out",o?"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:n.title}),e&&n.count&&n.count>0&&e(n.count)]})]})]},s)})}),Hr=a=>{const t=B.useRef(null);return{isCollapsed:a,navbarRef:t}},Vr=(a,t)=>{const e=Oe.useLocation().pathname,r=B.useMemo(()=>t.pages.filter(s=>s.roles.includes(a?.role)),[t.pages,a?.role]),i=B.useMemo(()=>t.utils.filter(s=>s.roles.includes(a?.role)),[t.utils,a?.role]);return{pageLinks:r,utilLinks:i,isLinkActive:s=>e===s,pathname:e}};function Ot(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function Yr(a,t){a.prototype=Object.create(t.prototype),a.prototype.constructor=a,a.__proto__=t}/*!
|
|
24
24
|
* GSAP 3.13.0
|
|
25
25
|
* https://gsap.com
|
|
26
26
|
*
|
|
27
27
|
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
|
28
28
|
* Subject to the terms at https://gsap.com/standard-license
|
|
29
29
|
* @author: Jack Doyle, jack@greensock.com
|
|
30
|
-
*/var dt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Qt={duration:.5,overwrite:!1,delay:0},Ye,rt,Z,xt=1e8,L=1/xt,Xe=Math.PI*2,On=Xe/4,Sn=0,Xr=Math.sqrt,jn=Math.cos,kn=Math.sin,$=function(t){return typeof t=="string"},V=function(t){return typeof t=="function"},jt=function(t){return typeof t=="number"},We=function(t){return typeof t>"u"},bt=function(t){return typeof t=="object"},ot=function(t){return t!==!1},Ge=function(){return typeof window<"u"},je=function(t){return V(t)||$(t)},Wr=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},it=Array.isArray,Je=/(?:-?\.?\d|\.)+/gi,Gr=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Kt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Qe=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Jr=/[+-]=-?[.\d]+/,Qr=/[^,'"\[\]\s]+/gi,Pn=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,z,qt,Ke,$e,_t={},ke={},Kr,$r=function(t){return(ke=te(t,_t))&&ft},tr=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},de=function(t,e){return!e&&console.warn(t)},ti=function(t,e){return t&&(_t[t]=e)&&ke&&(ke[t]=e)||_t},_e=function(){return 0},Rn={suppressEvents:!0,isStart:!0,kill:!1},Pe={suppressEvents:!0,kill:!1},An={suppressEvents:!0},er={},Rt=[],rr={},ei,pt={},ir={},ri=30,Re=[],nr="",sr=function(t){var e=t[0],r,i;if(bt(e)||V(e)||(t=[t]),!(r=(e._gsap||{}).harness)){for(i=Re.length;i--&&!Re[i].targetTest(e););r=Re[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new Ri(t[i],r)))||t.splice(i,1);return t},Zt=function(t){return t._gsap||sr(wt(t))[0]._gsap},ii=function(t,e,r){return(r=t[e])&&V(r)?t[e]():We(r)&&t.getAttribute&&t.getAttribute(e)||r},lt=function(t,e){return(t=t.split(",")).forEach(e)||t},Y=function(t){return Math.round(t*1e5)/1e5||0},J=function(t){return Math.round(t*1e7)/1e7||0},$t=function(t,e){var r=e.charAt(0),i=parseFloat(e.substr(2));return t=parseFloat(t),r==="+"?t+i:r==="-"?t-i:r==="*"?t*i:t/i},En=function(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i<r;);return i<r},Ae=function(){var t=Rt.length,e=Rt.slice(0),r,i;for(rr={},Rt.length=0,r=0;r<t;r++)i=e[r],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},ar=function(t){return!!(t._initted||t._startAt||t.add)},ni=function(t,e,r,i){Rt.length&&!rt&&Ae(),t.render(e,r,!!(rt&&e<0&&ar(t))),Rt.length&&!rt&&Ae()},si=function(t){var e=parseFloat(t);return(e||e===0)&&(t+"").match(Qr).length<2?e:$(t)?t.trim():t},ai=function(t){return t},mt=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},Nn=function(t){return function(e,r){for(var i in r)i in e||i==="duration"&&t||i==="ease"||(e[i]=r[i])}},te=function(t,e){for(var r in e)t[r]=e[r];return t},oi=function a(t,e){for(var r in e)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(t[r]=bt(e[r])?a(t[r]||(t[r]={}),e[r]):e[r]);return t},Ee=function(t,e){var r={},i;for(i in t)i in e||(r[i]=t[i]);return r},pe=function(t){var e=t.parent||z,r=t.keyframes?Nn(it(t.keyframes)):mt;if(ot(t.inherit))for(;e;)r(t,e.vars.defaults),e=e.parent||e._dp;return t},Mn=function(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0},li=function(t,e,r,i,n){var s=t[i],o;if(n)for(o=e[n];s&&s[n]>o;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=s,e.parent=e._dp=t,e},Ne=function(t,e,r,i){r===void 0&&(r="_first"),i===void 0&&(i="_last");var n=e._prev,s=e._next;n?n._next=s:t[r]===e&&(t[r]=s),s?s._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null},At=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Bt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t},Dn=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},or=function(t,e,r,i){return t._startAt&&(rt?t._startAt.revert(Pe):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))},Ln=function a(t){return!t||t._ts&&a(t.parent)},ui=function(t){return t._repeat?ee(t._tTime,t=t.duration()+t._rDelay)*t:0},ee=function(t,e){var r=Math.floor(t=J(t/e));return t&&r===t?r-1:r},Me=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},De=function(t){return t._end=J(t._start+(t._tDur/Math.abs(t._ts||t._rts||L)||0))},Le=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=J(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),De(t),r._dirty||Bt(r,t)),t},fi=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=Me(t.rawTime(),e),(!e._dur||ge(0,e.totalDuration(),r)-e._tTime>L)&&e.render(r,!0)),Bt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-L}},Ct=function(t,e,r,i){return e.parent&&At(e),e._start=J((jt(r)?r:r||t!==z?yt(t,r,e):t._time)+e._delay),e._end=J(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),li(t,e,"_first","_last",t._sort?"_start":0),lr(e)||(t._recent=e),i||fi(t,e),t._ts<0&&Le(t,t._tTime),t},ci=function(t,e){return(_t.ScrollTrigger||tr("scrollTrigger",e))&&_t.ScrollTrigger.create(e,t)},hi=function(t,e,r,i,n){if(gr(t,e,n),!t._initted)return 1;if(!r&&t._pt&&!rt&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&ei!==vt.frame)return Rt.push(t),t._lazy=[n,i],1},In=function a(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||a(e))},lr=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},Fn=function(t,e,r,i){var n=t.ratio,s=e<0||!e&&(!t._start&&In(t)&&!(!t._initted&&lr(t))||(t._ts<0||t._dp._ts<0)&&!lr(t))?0:1,o=t._rDelay,l=0,u,f,h;if(o&&t._repeat&&(l=ge(0,t._tDur,e),f=ee(l,o),t._yoyo&&f&1&&(s=1-s),f!==ee(t._tTime,o)&&(n=1-s,t.vars.repeatRefresh&&t._initted&&t.invalidate())),s!==n||rt||i||t._zTime===L||!e&&t._zTime){if(!t._initted&&hi(t,e,i,r,l))return;for(h=t._zTime,t._zTime=e||(r?L:0),r||(r=e&&!h),t.ratio=s,t._from&&(s=1-s),t._time=0,t._tTime=l,u=t._pt;u;)u.r(s,u.d),u=u._next;e<0&&or(t,e,r,!0),t._onUpdate&&!r&>(t,"onUpdate"),l&&t._repeat&&!r&&t.parent&>(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===s&&(s&&At(t,1),!r&&!rt&&(gt(t,s?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},Zn=function(t,e,r){var i;if(r>e)for(i=t._first;i&&i._start<=r;){if(i.data==="isPause"&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if(i.data==="isPause"&&i._start<e)return i;i=i._prev}},re=function(t,e,r,i){var n=t._repeat,s=J(e)||0,o=t._tTime/t._tDur;return o&&!i&&(t._time*=s/t._dur),t._dur=s,t._tDur=n?n<0?1e10:J(s*(n+1)+t._rDelay*n):s,o>0&&!i&&Le(t,t._tTime=t._tDur*o),t.parent&&De(t),r||Bt(t.parent,t),t},di=function(t){return t instanceof at?Bt(t):re(t,t._dur)},Bn={_start:0,endTime:_e,totalDuration:_e},yt=function a(t,e,r){var i=t.labels,n=t._recent||Bn,s=t.duration()>=xt?n.endTime(!1):t._dur,o,l,u;return $(e)&&(isNaN(e)||e in i)?(l=e.charAt(0),u=e.substr(-1)==="%",o=e.indexOf("="),l==="<"||l===">"?(o>=0&&(e=e.replace(/=/,"")),(l==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(e.substr(1))||0)*(u?(o<0?n:r).totalDuration()/100:1)):o<0?(e in i||(i[e]=s),i[e]):(l=parseFloat(e.charAt(o-1)+e.substr(o+1)),u&&r&&(l=l/100*(it(r)?r[0]:r).totalDuration()),o>1?a(t,e.substr(0,o-1),r)+l:s+l)):e==null?s:+e},me=function(t,e,r){var i=jt(e[1]),n=(i?2:1)+(t<2?0:1),s=e[n],o,l;if(i&&(s.duration=e[1]),s.parent=r,t){for(o=s,l=r;l&&!("immediateRender"in o);)o=l.vars.defaults||{},l=ot(l.vars.inherit)&&l.parent;s.immediateRender=ot(o.immediateRender),t<2?s.runBackwards=1:s.startAt=e[n-1]}return new Q(e[0],s,e[n+1])},Et=function(t,e){return t||t===0?e(t):e},ge=function(t,e,r){return r<t?t:r>e?e:r},nt=function(t,e){return!$(t)||!(e=Pn.exec(t))?"":e[1]},zn=function(t,e,r){return Et(r,function(i){return ge(t,e,i)})},ur=[].slice,_i=function(t,e){return t&&bt(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&bt(t[0]))&&!t.nodeType&&t!==qt},Un=function(t,e,r){return r===void 0&&(r=[]),t.forEach(function(i){var n;return $(i)&&!e||_i(i,1)?(n=r).push.apply(n,wt(i)):r.push(i)})||r},wt=function(t,e,r){return Z&&!e&&Z.selector?Z.selector(t):$(t)&&!r&&(Ke||!ne())?ur.call((e||$e).querySelectorAll(t),0):it(t)?Un(t,r):_i(t)?ur.call(t,0):t?[t]:[]},fr=function(t){return t=wt(t)[0]||de("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return wt(e,r.querySelectorAll?r:r===t?de("Invalid scope")||$e.createElement("div"):t)}},pi=function(t){return t.sort(function(){return .5-Math.random()})},mi=function(t){if(V(t))return t;var e=bt(t)?t:{each:t},r=zt(e.ease),i=e.from||0,n=parseFloat(e.base)||0,s={},o=i>0&&i<1,l=isNaN(i)||o,u=e.axis,f=i,h=i;return $(i)?f=h={center:.5,edges:.5,end:1}[i]||0:!o&&l&&(f=i[0],h=i[1]),function(_,p,m){var c=(m||e).length,g=s[c],x,y,T,b,v,O,C,S,q;if(!g){if(q=e.grid==="auto"?0:(e.grid||[1,xt])[1],!q){for(C=-xt;C<(C=m[q++].getBoundingClientRect().left)&&q<c;);q<c&&q--}for(g=s[c]=[],x=l?Math.min(q,c)*f-.5:i%q,y=q===xt?0:l?c*h/q-.5:i/q|0,C=0,S=xt,O=0;O<c;O++)T=O%q-x,b=y-(O/q|0),g[O]=v=u?Math.abs(u==="y"?b:T):Xr(T*T+b*b),v>C&&(C=v),v<S&&(S=v);i==="random"&&pi(g),g.max=C-S,g.min=S,g.v=c=(parseFloat(e.amount)||parseFloat(e.each)*(q>c?c-1:u?u==="y"?c/q:q:Math.max(q,c/q))||0)*(i==="edges"?-1:1),g.b=c<0?n-c:n,g.u=nt(e.amount||e.each)||0,r=r&&c<0?ji(r):r}return c=(g[_]-g.min)/g.max||0,J(g.b+(r?r(c):c)*g.v)+g.u}},cr=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var i=J(Math.round(parseFloat(r)/t)*t*e);return(i-i%1)/e+(jt(r)?0:nt(r))}},gi=function(t,e){var r=it(t),i,n;return!r&&bt(t)&&(i=r=t.radius||xt,t.values?(t=wt(t.values),(n=!jt(t[0]))&&(i*=i)):t=cr(t.increment)),Et(e,r?V(t)?function(s){return n=t(s),Math.abs(n-s)<=i?n:s}:function(s){for(var o=parseFloat(n?s.x:s),l=parseFloat(n?s.y:0),u=xt,f=0,h=t.length,_,p;h--;)n?(_=t[h].x-o,p=t[h].y-l,_=_*_+p*p):_=Math.abs(t[h]-o),_<u&&(u=_,f=h);return f=!i||u<=i?t[f]:s,n||f===s||jt(s)?f:f+nt(s)}:cr(t))},vi=function(t,e,r,i){return Et(it(t)?!e:r===!0?!!(r=0):!i,function(){return it(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+r*.99))/r)*r*i)/i})},Hn=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return e.reduce(function(n,s){return s(n)},i)}},Vn=function(t,e){return function(r){return t(parseFloat(r))+(e||nt(r))}},Yn=function(t,e,r){return yi(t,e,0,1,r)},xi=function(t,e,r){return Et(r,function(i){return t[~~e(i)]})},Xn=function a(t,e,r){var i=e-t;return it(t)?xi(t,a(0,t.length),e):Et(r,function(n){return(i+(n-t)%i)%i+t})},Wn=function a(t,e,r){var i=e-t,n=i*2;return it(t)?xi(t,a(0,t.length-1),e):Et(r,function(s){return s=(n+(s-t)%n)%n||0,t+(s>i?n-s:s)})},ve=function(t){for(var e=0,r="",i,n,s,o;~(i=t.indexOf("random(",e));)s=t.indexOf(")",i),o=t.charAt(i+7)==="[",n=t.substr(i+7,s-i-7).match(o?Qr:Je),r+=t.substr(e,i-e)+vi(o?n:+n[0],o?0:+n[1],+n[2]||1e-5),e=s+1;return r+t.substr(e,t.length-e)},yi=function(t,e,r,i,n){var s=e-t,o=i-r;return Et(n,function(l){return r+((l-t)/s*o||0)})},Gn=function a(t,e,r,i){var n=isNaN(t+e)?0:function(p){return(1-p)*t+p*e};if(!n){var s=$(t),o={},l,u,f,h,_;if(r===!0&&(i=1)&&(r=null),s)t={p:t},e={p:e};else if(it(t)&&!it(e)){for(f=[],h=t.length,_=h-2,u=1;u<h;u++)f.push(a(t[u-1],t[u]));h--,n=function(m){m*=h;var c=Math.min(_,~~m);return f[c](m-c)},r=e}else i||(t=te(it(t)?[]:{},t));if(!f){for(l in e)pr.call(o,t,l,"get",e[l]);n=function(m){return yr(m,o)||(s?t.p:t)}}}return Et(r,n)},wi=function(t,e,r){var i=t.labels,n=xt,s,o,l;for(s in i)o=i[s]-e,o<0==!!r&&o&&n>(o=Math.abs(o))&&(l=s,n=o);return l},gt=function(t,e,r){var i=t.vars,n=i[e],s=Z,o=t._ctx,l,u,f;if(n)return l=i[e+"Params"],u=i.callbackScope||t,r&&Rt.length&&Ae(),o&&(Z=o),f=l?n.apply(u,l):n.call(u),Z=s,f},xe=function(t){return At(t),t.scrollTrigger&&t.scrollTrigger.kill(!!rt),t.progress()<1&>(t,"onInterrupt"),t},ie,Ti=[],bi=function(t){if(t)if(t=!t.name&&t.default||t,Ge()||t.headless){var e=t.name,r=V(t),i=e&&!r&&t.init?function(){this._props=[]}:t,n={init:_e,render:yr,add:pr,kill:cs,modifier:fs,rawVars:0},s={targetTest:0,get:0,getSetter:xr,aliases:{},register:0};if(ne(),t!==i){if(pt[e])return;mt(i,mt(Ee(t,n),s)),te(i.prototype,te(n,Ee(t,s))),pt[i.prop=e]=i,t.targetTest&&(Re.push(i),er[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}ti(e,i),t.register&&t.register(ft,i,ut)}else Ti.push(t)},I=255,ye={aqua:[0,I,I],lime:[0,I,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,I],navy:[0,0,128],white:[I,I,I],olive:[128,128,0],yellow:[I,I,0],orange:[I,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[I,0,0],pink:[I,192,203],cyan:[0,I,I],transparent:[I,I,I,0]},hr=function(t,e,r){return t+=t<0?1:t>1?-1:0,(t*6<1?e+(r-e)*t*6:t<.5?r:t*3<2?e+(r-e)*(2/3-t)*6:e)*I+.5|0},qi=function(t,e,r){var i=t?jt(t)?[t>>16,t>>8&I,t&I]:0:ye.black,n,s,o,l,u,f,h,_,p,m;if(!i){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),ye[t])i=ye[t];else if(t.charAt(0)==="#"){if(t.length<6&&(n=t.charAt(1),s=t.charAt(2),o=t.charAt(3),t="#"+n+n+s+s+o+o+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return i=parseInt(t.substr(1,6),16),[i>>16,i>>8&I,i&I,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),i=[t>>16,t>>8&I,t&I]}else if(t.substr(0,3)==="hsl"){if(i=m=t.match(Je),!e)l=+i[0]%360/360,u=+i[1]/100,f=+i[2]/100,s=f<=.5?f*(u+1):f+u-f*u,n=f*2-s,i.length>3&&(i[3]*=1),i[0]=hr(l+1/3,n,s),i[1]=hr(l,n,s),i[2]=hr(l-1/3,n,s);else if(~t.indexOf("="))return i=t.match(Gr),r&&i.length<4&&(i[3]=1),i}else i=t.match(Je)||ye.transparent;i=i.map(Number)}return e&&!m&&(n=i[0]/I,s=i[1]/I,o=i[2]/I,h=Math.max(n,s,o),_=Math.min(n,s,o),f=(h+_)/2,h===_?l=u=0:(p=h-_,u=f>.5?p/(2-h-_):p/(h+_),l=h===n?(s-o)/p+(s<o?6:0):h===s?(o-n)/p+2:(n-s)/p+4,l*=60),i[0]=~~(l+.5),i[1]=~~(u*100+.5),i[2]=~~(f*100+.5)),r&&i.length<4&&(i[3]=1),i},Ci=function(t){var e=[],r=[],i=-1;return t.split(Nt).forEach(function(n){var s=n.match(Kt)||[];e.push.apply(e,s),r.push(i+=s.length+1)}),e.c=r,e},Oi=function(t,e,r){var i="",n=(t+i).match(Nt),s=e?"hsla(":"rgba(",o=0,l,u,f,h;if(!n)return t;if(n=n.map(function(_){return(_=qi(_,e,1))&&s+(e?_[0]+","+_[1]+"%,"+_[2]+"%,"+_[3]:_.join(","))+")"}),r&&(f=Ci(t),l=r.c,l.join(i)!==f.c.join(i)))for(u=t.replace(Nt,"1").split(Kt),h=u.length-1;o<h;o++)i+=u[o]+(~l.indexOf(o)?n.shift()||s+"0,0,0,0)":(f.length?f:n.length?n:r).shift());if(!u)for(u=t.split(Nt),h=u.length-1;o<h;o++)i+=u[o]+n[o];return i+u[h]},Nt=(function(){var a="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in ye)a+="|"+t+"\\b";return new RegExp(a+")","gi")})(),Jn=/hsl[a]?\(/,Si=function(t){var e=t.join(" "),r;if(Nt.lastIndex=0,Nt.test(e))return r=Jn.test(e),t[1]=Oi(t[1],r),t[0]=Oi(t[0],r,Ci(t[1])),!0},we,vt=(function(){var a=Date.now,t=500,e=33,r=a(),i=r,n=1e3/240,s=n,o=[],l,u,f,h,_,p,m=function c(g){var x=a()-i,y=g===!0,T,b,v,O;if((x>t||x<0)&&(r+=x-e),i+=x,v=i-r,T=v-s,(T>0||y)&&(O=++h.frame,_=v-h.time*1e3,h.time=v=v/1e3,s+=T+(T>=n?4:n-T),b=1),y||(l=u(c)),b)for(p=0;p<o.length;p++)o[p](v,_,O,g)};return h={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(g){return _/(1e3/(g||60))},wake:function(){Kr&&(!Ke&&Ge()&&(qt=Ke=window,$e=qt.document||{},_t.gsap=ft,(qt.gsapVersions||(qt.gsapVersions=[])).push(ft.version),$r(ke||qt.GreenSockGlobals||!qt.gsap&&qt||{}),Ti.forEach(bi)),f=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&h.sleep(),u=f||function(g){return setTimeout(g,s-h.time*1e3+1|0)},we=1,m(2))},sleep:function(){(f?cancelAnimationFrame:clearTimeout)(l),we=0,u=_e},lagSmoothing:function(g,x){t=g||1/0,e=Math.min(x||33,t)},fps:function(g){n=1e3/(g||240),s=h.time*1e3+n},add:function(g,x,y){var T=x?function(b,v,O,C){g(b,v,O,C),h.remove(T)}:g;return h.remove(g),o[y?"unshift":"push"](T),ne(),T},remove:function(g,x){~(x=o.indexOf(g))&&o.splice(x,1)&&p>=x&&p--},_listeners:o},h})(),ne=function(){return!we&&vt.wake()},P={},Qn=/^[\d.\-M][\d.\-,\s]/,Kn=/["']/g,$n=function(t){for(var e={},r=t.substr(1,t.length-3).split(":"),i=r[0],n=1,s=r.length,o,l,u;n<s;n++)l=r[n],o=n!==s-1?l.lastIndexOf(","):l.length,u=l.substr(0,o),e[i]=isNaN(u)?u.replace(Kn,"").trim():+u,i=l.substr(o+1).trim();return e},ts=function(t){var e=t.indexOf("(")+1,r=t.indexOf(")"),i=t.indexOf("(",e);return t.substring(e,~i&&i<r?t.indexOf(")",r+1):r)},es=function(t){var e=(t+"").split("("),r=P[e[0]];return r&&e.length>1&&r.config?r.config.apply(null,~t.indexOf("{")?[$n(e[1])]:ts(t).split(",").map(si)):P._CE&&Qn.test(t)?P._CE("",t):r},ji=function(t){return function(e){return 1-t(1-e)}},ki=function a(t,e){for(var r=t._first,i;r;)r instanceof at?a(r,e):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==e&&(r.timeline?a(r.timeline,e):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=e)),r=r._next},zt=function(t,e){return t&&(V(t)?t:P[t]||es(t))||e},Ut=function(t,e,r,i){r===void 0&&(r=function(l){return 1-e(1-l)}),i===void 0&&(i=function(l){return l<.5?e(l*2)/2:1-e((1-l)*2)/2});var n={easeIn:e,easeOut:r,easeInOut:i},s;return lt(t,function(o){P[o]=_t[o]=n,P[s=o.toLowerCase()]=r;for(var l in n)P[s+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=P[o+"."+l]=n[l]}),n},Pi=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},dr=function a(t,e,r){var i=e>=1?e:1,n=(r||(t?.3:.45))/(e<1?e:1),s=n/Xe*(Math.asin(1/i)||0),o=function(f){return f===1?1:i*Math.pow(2,-10*f)*kn((f-s)*n)+1},l=t==="out"?o:t==="in"?function(u){return 1-o(1-u)}:Pi(o);return n=Xe/n,l.config=function(u,f){return a(t,u,f)},l},_r=function a(t,e){e===void 0&&(e=1.70158);var r=function(s){return s?--s*s*((e+1)*s+e)+1:0},i=t==="out"?r:t==="in"?function(n){return 1-r(1-n)}:Pi(r);return i.config=function(n){return a(t,n)},i};lt("Linear,Quad,Cubic,Quart,Quint,Strong",function(a,t){var e=t<5?t+1:t;Ut(a+",Power"+(e-1),t?function(r){return Math.pow(r,e)}:function(r){return r},function(r){return 1-Math.pow(1-r,e)},function(r){return r<.5?Math.pow(r*2,e)/2:1-Math.pow((1-r)*2,e)/2})}),P.Linear.easeNone=P.none=P.Linear.easeIn,Ut("Elastic",dr("in"),dr("out"),dr()),(function(a,t){var e=1/t,r=2*e,i=2.5*e,n=function(o){return o<e?a*o*o:o<r?a*Math.pow(o-1.5/t,2)+.75:o<i?a*(o-=2.25/t)*o+.9375:a*Math.pow(o-2.625/t,2)+.984375};Ut("Bounce",function(s){return 1-n(1-s)},n)})(7.5625,2.75),Ut("Expo",function(a){return Math.pow(2,10*(a-1))*a+a*a*a*a*a*a*(1-a)}),Ut("Circ",function(a){return-(Xr(1-a*a)-1)}),Ut("Sine",function(a){return a===1?1:-jn(a*On)+1}),Ut("Back",_r("in"),_r("out"),_r()),P.SteppedEase=P.steps=_t.SteppedEase={config:function(t,e){t===void 0&&(t=1);var r=1/t,i=t+(e?0:1),n=e?1:0,s=1-L;return function(o){return((i*ge(0,s,o)|0)+n)*r}}},Qt.ease=P["quad.out"],lt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(a){return nr+=a+","+a+"Params,"});var Ri=function(t,e){this.id=Sn++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:ii,this.set=e?e.getSetter:xr},Te=(function(){function a(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,re(this,+e.duration,1,1),this.data=e.data,Z&&(this._ctx=Z,Z.data.push(this)),we||vt.wake()}var t=a.prototype;return t.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},t.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},t.totalDuration=function(r){return arguments.length?(this._dirty=0,re(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(r,i){if(ne(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Le(this,r),!n._dp||n.parent||fi(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&Ct(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===L||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),ni(this,r,i)),this},t.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+ui(this))%(this._dur+this._rDelay)||(r?this._dur:0),i):this._time},t.totalProgress=function(r,i){return arguments.length?this.totalTime(this.totalDuration()*r,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(r,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+ui(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(r,i){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*n,i):this._repeat?ee(this._tTime,n)+1:1},t.timeScale=function(r,i){if(!arguments.length)return this._rts===-L?0:this._rts;if(this._rts===r)return this;var n=this.parent&&this._ts?Me(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-L?0:this._rts,this.totalTime(ge(-Math.abs(this._delay),this.totalDuration(),n),i!==!1),De(this),Dn(this)},t.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):(ne(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==L&&(this._tTime-=L)))),this):this._ps},t.startTime=function(r){if(arguments.length){this._start=r;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&Ct(i,this,r-this._delay),this}return this._start},t.endTime=function(r){return this._start+(ot(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(r){var i=this.parent||this._dp;return i?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Me(i.rawTime(r),this):this._tTime:this._tTime},t.revert=function(r){r===void 0&&(r=An);var i=rt;return rt=r,ar(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),rt=i,this},t.globalTime=function(r){for(var i=this,n=arguments.length?r:i.rawTime();i;)n=i._start+n/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(r):n},t.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,di(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,di(this),i?this.time(i):this}return this._rDelay},t.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},t.seek=function(r,i){return this.totalTime(yt(this,r),ot(i))},t.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,ot(i)),this._dur||(this._zTime=-L),this},t.play=function(r,i){return r!=null&&this.seek(r,i),this.reversed(!1).paused(!1)},t.reverse=function(r,i){return r!=null&&this.seek(r||this.totalDuration(),i),this.reversed(!0).paused(!1)},t.pause=function(r,i){return r!=null&&this.seek(r,i),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-L:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-L,this},t.isActive=function(){var r=this.parent||this._dp,i=this._start,n;return!!(!r||this._ts&&this._initted&&r.isActive()&&(n=r.rawTime(!0))>=i&&n<this.endTime(!0)-L)},t.eventCallback=function(r,i,n){var s=this.vars;return arguments.length>1?(i?(s[r]=i,n&&(s[r+"Params"]=n),r==="onUpdate"&&(this._onUpdate=i)):delete s[r],this):s[r]},t.then=function(r){var i=this;return new Promise(function(n){var s=V(r)?r:ai,o=function(){var u=i.then;i.then=null,V(s)&&(s=s(i))&&(s.then||s===i)&&(i.then=u),n(s),i.then=u};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?o():i._prom=o})},t.kill=function(){xe(this)},a})();mt(Te.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:-L,_prom:0,_ps:!1,_rts:1});var at=(function(a){Yr(t,a);function t(r,i){var n;return r===void 0&&(r={}),n=a.call(this,r)||this,n.labels={},n.smoothChildTiming=!!r.smoothChildTiming,n.autoRemoveChildren=!!r.autoRemoveChildren,n._sort=ot(r.sortChildren),z&&Ct(r.parent||z,St(n),i),r.reversed&&n.reverse(),r.paused&&n.paused(!0),r.scrollTrigger&&ci(St(n),r.scrollTrigger),n}var e=t.prototype;return e.to=function(i,n,s){return me(0,arguments,this),this},e.from=function(i,n,s){return me(1,arguments,this),this},e.fromTo=function(i,n,s,o){return me(2,arguments,this),this},e.set=function(i,n,s){return n.duration=0,n.parent=this,pe(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new Q(i,n,yt(this,s),1),this},e.call=function(i,n,s){return Ct(this,Q.delayedCall(0,i,n),s)},e.staggerTo=function(i,n,s,o,l,u,f){return s.duration=n,s.stagger=s.stagger||o,s.onComplete=u,s.onCompleteParams=f,s.parent=this,new Q(i,s,yt(this,l)),this},e.staggerFrom=function(i,n,s,o,l,u,f){return s.runBackwards=1,pe(s).immediateRender=ot(s.immediateRender),this.staggerTo(i,n,s,o,l,u,f)},e.staggerFromTo=function(i,n,s,o,l,u,f,h){return o.startAt=s,pe(o).immediateRender=ot(o.immediateRender),this.staggerTo(i,n,o,l,u,f,h)},e.render=function(i,n,s){var o=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,f=i<=0?0:J(i),h=this._zTime<0!=i<0&&(this._initted||!u),_,p,m,c,g,x,y,T,b,v,O,C;if(this!==z&&f>l&&i>=0&&(f=l),f!==this._tTime||s||h){if(o!==this._time&&u&&(f+=this._time-o,i+=this._time-o),_=f,b=this._start,T=this._ts,x=!T,h&&(u||(o=this._zTime),(i||!n)&&(this._zTime=i)),this._repeat){if(O=this._yoyo,g=u+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(g*100+i,n,s);if(_=J(f%g),f===l?(c=this._repeat,_=u):(v=J(f/g),c=~~v,c&&c===v&&(_=u,c--),_>u&&(_=u)),v=ee(this._tTime,g),!o&&this._tTime&&v!==c&&this._tTime-v*g-this._dur<=0&&(v=c),O&&c&1&&(_=u-_,C=1),c!==v&&!this._lock){var S=O&&v&1,q=S===(O&&c&1);if(c<v&&(S=!S),o=S?0:f%u?u:f,this._lock=1,this.render(o||(C?0:J(c*g)),n,!u)._lock=0,this._tTime=f,!n&&this.parent&>(this,"onRepeat"),this.vars.repeatRefresh&&!C&&(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=S?u:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!C&&this.invalidate()),this._lock=0,!this._ts&&!x)return this;ki(this,C)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(y=Zn(this,J(o),J(_)),y&&(f-=_-(_=y._start))),this._tTime=f,this._time=_,this._act=!T,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,o=0),!o&&f&&!n&&!v&&(gt(this,"onStart"),this._tTime!==f))return this;if(_>=o&&i>=0)for(p=this._first;p;){if(m=p._next,(p._act||_>=p._start)&&p._ts&&y!==p){if(p.parent!==this)return this.render(i,n,s);if(p.render(p._ts>0?(_-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(_-p._start)*p._ts,n,s),_!==this._time||!this._ts&&!x){y=0,m&&(f+=this._zTime=-L);break}}p=m}else{p=this._last;for(var k=i<0?i:_;p;){if(m=p._prev,(p._act||k<=p._end)&&p._ts&&y!==p){if(p.parent!==this)return this.render(i,n,s);if(p.render(p._ts>0?(k-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(k-p._start)*p._ts,n,s||rt&&ar(p)),_!==this._time||!this._ts&&!x){y=0,m&&(f+=this._zTime=k?-L:L);break}}p=m}}if(y&&!n&&(this.pause(),y.render(_>=o?0:-L)._zTime=_>=o?1:-1,this._ts))return this._start=b,De(this),this.render(i,n,s);this._onUpdate&&!n&>(this,"onUpdate",!0),(f===l&&this._tTime>=this.totalDuration()||!f&&o)&&(b===this._start||Math.abs(T)!==Math.abs(this._ts))&&(this._lock||((i||!u)&&(f===l&&this._ts>0||!f&&this._ts<0)&&At(this,1),!n&&!(i<0&&!o)&&(f||o||!l)&&(gt(this,f===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(f<l&&this.timeScale()>0)&&this._prom())))}return this},e.add=function(i,n){var s=this;if(jt(n)||(n=yt(this,n,i)),!(i instanceof Te)){if(it(i))return i.forEach(function(o){return s.add(o,n)}),this;if($(i))return this.addLabel(i,n);if(V(i))i=Q.delayedCall(0,i);else return this}return this!==i?Ct(this,i,n):this},e.getChildren=function(i,n,s,o){i===void 0&&(i=!0),n===void 0&&(n=!0),s===void 0&&(s=!0),o===void 0&&(o=-xt);for(var l=[],u=this._first;u;)u._start>=o&&(u instanceof Q?n&&l.push(u):(s&&l.push(u),i&&l.push.apply(l,u.getChildren(!0,n,s)))),u=u._next;return l},e.getById=function(i){for(var n=this.getChildren(1,1,1),s=n.length;s--;)if(n[s].vars.id===i)return n[s]},e.remove=function(i){return $(i)?this.removeLabel(i):V(i)?this.killTweensOf(i):(i.parent===this&&Ne(this,i),i===this._recent&&(this._recent=this._last),Bt(this))},e.totalTime=function(i,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=J(vt.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),a.prototype.totalTime.call(this,i,n),this._forcing=0,this):this._tTime},e.addLabel=function(i,n){return this.labels[i]=yt(this,n),this},e.removeLabel=function(i){return delete this.labels[i],this},e.addPause=function(i,n,s){var o=Q.delayedCall(0,n||_e,s);return o.data="isPause",this._hasPause=1,Ct(this,o,yt(this,i))},e.removePause=function(i){var n=this._first;for(i=yt(this,i);n;)n._start===i&&n.data==="isPause"&&At(n),n=n._next},e.killTweensOf=function(i,n,s){for(var o=this.getTweensOf(i,s),l=o.length;l--;)Mt!==o[l]&&o[l].kill(i,n);return this},e.getTweensOf=function(i,n){for(var s=[],o=wt(i),l=this._first,u=jt(n),f;l;)l instanceof Q?En(l._targets,o)&&(u?(!Mt||l._initted&&l._ts)&&l.globalTime(0)<=n&&l.globalTime(l.totalDuration())>n:!n||l.isActive())&&s.push(l):(f=l.getTweensOf(o,n)).length&&s.push.apply(s,f),l=l._next;return s},e.tweenTo=function(i,n){n=n||{};var s=this,o=yt(s,i),l=n,u=l.startAt,f=l.onStart,h=l.onStartParams,_=l.immediateRender,p,m=Q.to(s,mt({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:n.duration||Math.abs((o-(u&&"time"in u?u.time:s._time))/s.timeScale())||L,onStart:function(){if(s.pause(),!p){var g=n.duration||Math.abs((o-(u&&"time"in u?u.time:s._time))/s.timeScale());m._dur!==g&&re(m,g,0,1).render(m._time,!0,!0),p=1}f&&f.apply(m,h||[])}},n));return _?m.render(0):m},e.tweenFromTo=function(i,n,s){return this.tweenTo(n,mt({startAt:{time:yt(this,i)}},s))},e.recent=function(){return this._recent},e.nextLabel=function(i){return i===void 0&&(i=this._time),wi(this,yt(this,i))},e.previousLabel=function(i){return i===void 0&&(i=this._time),wi(this,yt(this,i),1)},e.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+L)},e.shiftChildren=function(i,n,s){s===void 0&&(s=0);for(var o=this._first,l=this.labels,u;o;)o._start>=s&&(o._start+=i,o._end+=i),o=o._next;if(n)for(u in l)l[u]>=s&&(l[u]+=i);return Bt(this)},e.invalidate=function(i){var n=this._first;for(this._lock=0;n;)n.invalidate(i),n=n._next;return a.prototype.invalidate.call(this,i)},e.clear=function(i){i===void 0&&(i=!0);for(var n=this._first,s;n;)s=n._next,this.remove(n),n=s;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),Bt(this)},e.totalDuration=function(i){var n=0,s=this,o=s._last,l=xt,u,f,h;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-i:i));if(s._dirty){for(h=s.parent;o;)u=o._prev,o._dirty&&o.totalDuration(),f=o._start,f>l&&s._sort&&o._ts&&!s._lock?(s._lock=1,Ct(s,o,f-o._delay,1)._lock=0):l=f,f<0&&o._ts&&(n-=f,(!h&&!s._dp||h&&h.smoothChildTiming)&&(s._start+=f/s._ts,s._time-=f,s._tTime-=f),s.shiftChildren(-f,!1,-1/0),l=0),o._end>n&&o._ts&&(n=o._end),o=u;re(s,s===z&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},t.updateRoot=function(i){if(z._ts&&(ni(z,Me(i,z)),ei=vt.frame),vt.frame>=ri){ri+=dt.autoSleep||120;var n=z._first;if((!n||!n._ts)&&dt.autoSleep&&vt._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||vt.sleep()}}},t})(Te);mt(at.prototype,{_lock:0,_hasPause:0,_forcing:0});var rs=function(t,e,r,i,n,s,o){var l=new ut(this._pt,t,e,0,1,Li,null,n),u=0,f=0,h,_,p,m,c,g,x,y;for(l.b=r,l.e=i,r+="",i+="",(x=~i.indexOf("random("))&&(i=ve(i)),s&&(y=[r,i],s(y,t,e),r=y[0],i=y[1]),_=r.match(Qe)||[];h=Qe.exec(i);)m=h[0],c=i.substring(u,h.index),p?p=(p+1)%5:c.substr(-5)==="rgba("&&(p=1),m!==_[f++]&&(g=parseFloat(_[f-1])||0,l._pt={_next:l._pt,p:c||f===1?c:",",s:g,c:m.charAt(1)==="="?$t(g,m)-g:parseFloat(m)-g,m:p&&p<4?Math.round:0},u=Qe.lastIndex);return l.c=u<i.length?i.substring(u,i.length):"",l.fp=o,(Jr.test(i)||x)&&(l.e=0),this._pt=l,l},pr=function(t,e,r,i,n,s,o,l,u,f){V(i)&&(i=i(n||0,t,s));var h=t[e],_=r!=="get"?r:V(h)?u?t[e.indexOf("set")||!V(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():h,p=V(h)?u?os:Mi:vr,m;if($(i)&&(~i.indexOf("random(")&&(i=ve(i)),i.charAt(1)==="="&&(m=$t(_,i)+(nt(_)||0),(m||m===0)&&(i=m))),!f||_!==i||mr)return!isNaN(_*i)&&i!==""?(m=new ut(this._pt,t,e,+_||0,i-(_||0),typeof h=="boolean"?us:Di,0,p),u&&(m.fp=u),o&&m.modifier(o,this,t),this._pt=m):(!h&&!(e in t)&&tr(e,i),rs.call(this,t,e,_,i,p,l||dt.stringFilter,u))},is=function(t,e,r,i,n){if(V(t)&&(t=be(t,n,e,r,i)),!bt(t)||t.style&&t.nodeType||it(t)||Wr(t))return $(t)?be(t,n,e,r,i):t;var s={},o;for(o in t)s[o]=be(t[o],n,e,r,i);return s},Ai=function(t,e,r,i,n,s){var o,l,u,f;if(pt[t]&&(o=new pt[t]).init(n,o.rawVars?e[t]:is(e[t],i,n,s,r),r,i,s)!==!1&&(r._pt=l=new ut(r._pt,n,t,0,1,o.render,o,0,o.priority),r!==ie))for(u=r._ptLookup[r._targets.indexOf(n)],f=o._props.length;f--;)u[o._props[f]]=l;return o},Mt,mr,gr=function a(t,e,r){var i=t.vars,n=i.ease,s=i.startAt,o=i.immediateRender,l=i.lazy,u=i.onUpdate,f=i.runBackwards,h=i.yoyoEase,_=i.keyframes,p=i.autoRevert,m=t._dur,c=t._startAt,g=t._targets,x=t.parent,y=x&&x.data==="nested"?x.vars.targets:g,T=t._overwrite==="auto"&&!Ye,b=t.timeline,v,O,C,S,q,k,N,A,D,X,W,H,G;if(b&&(!_||!n)&&(n="none"),t._ease=zt(n,Qt.ease),t._yEase=h?ji(zt(h===!0?n:h,Qt.ease)):0,h&&t._yoyo&&!t._repeat&&(h=t._yEase,t._yEase=t._ease,t._ease=h),t._from=!b&&!!i.runBackwards,!b||_&&!i.stagger){if(A=g[0]?Zt(g[0]).harness:0,H=A&&i[A.prop],v=Ee(i,er),c&&(c._zTime<0&&c.progress(1),e<0&&f&&o&&!p?c.render(-1,!0):c.revert(f&&m?Pe:Rn),c._lazy=0),s){if(At(t._startAt=Q.set(g,mt({data:"isStart",overwrite:!1,parent:x,immediateRender:!0,lazy:!c&&ot(l),startAt:null,delay:0,onUpdate:u&&function(){return gt(t,"onUpdate")},stagger:0},s))),t._startAt._dp=0,t._startAt._sat=t,e<0&&(rt||!o&&!p)&&t._startAt.revert(Pe),o&&m&&e<=0&&r<=0){e&&(t._zTime=e);return}}else if(f&&m&&!c){if(e&&(o=!1),C=mt({overwrite:!1,data:"isFromStart",lazy:o&&!c&&ot(l),immediateRender:o,stagger:0,parent:x},v),H&&(C[A.prop]=H),At(t._startAt=Q.set(g,C)),t._startAt._dp=0,t._startAt._sat=t,e<0&&(rt?t._startAt.revert(Pe):t._startAt.render(-1,!0)),t._zTime=e,!o)a(t._startAt,L,L);else if(!e)return}for(t._pt=t._ptCache=0,l=m&&ot(l)||l&&!m,O=0;O<g.length;O++){if(q=g[O],N=q._gsap||sr(g)[O]._gsap,t._ptLookup[O]=X={},rr[N.id]&&Rt.length&&Ae(),W=y===g?O:y.indexOf(q),A&&(D=new A).init(q,H||v,t,W,y)!==!1&&(t._pt=S=new ut(t._pt,q,D.name,0,1,D.render,D,0,D.priority),D._props.forEach(function(ht){X[ht]=S}),D.priority&&(k=1)),!A||H)for(C in v)pt[C]&&(D=Ai(C,v,t,W,q,y))?D.priority&&(k=1):X[C]=S=pr.call(t,q,C,"get",v[C],W,y,0,i.stringFilter);t._op&&t._op[O]&&t.kill(q,t._op[O]),T&&t._pt&&(Mt=t,z.killTweensOf(q,X,t.globalTime(e)),G=!t.parent,Mt=0),t._pt&&l&&(rr[N.id]=1)}k&&Ii(t),t._onInit&&t._onInit(t)}t._onUpdate=u,t._initted=(!t._op||t._pt)&&!G,_&&e<=0&&b.render(xt,!0,!0)},ns=function(t,e,r,i,n,s,o,l){var u=(t._pt&&t._ptCache||(t._ptCache={}))[e],f,h,_,p;if(!u)for(u=t._ptCache[e]=[],_=t._ptLookup,p=t._targets.length;p--;){if(f=_[p][e],f&&f.d&&f.d._pt)for(f=f.d._pt;f&&f.p!==e&&f.fp!==e;)f=f._next;if(!f)return mr=1,t.vars[e]="+=0",gr(t,o),mr=0,l?de(e+" not eligible for reset"):1;u.push(f)}for(p=u.length;p--;)h=u[p],f=h._pt||h,f.s=(i||i===0)&&!n?i:f.s+(i||0)+s*f.c,f.c=r-f.s,h.e&&(h.e=Y(r)+nt(h.e)),h.b&&(h.b=f.s+nt(h.b))},ss=function(t,e){var r=t[0]?Zt(t[0]).harness:0,i=r&&r.aliases,n,s,o,l;if(!i)return e;n=te({},e);for(s in i)if(s in n)for(l=i[s].split(","),o=l.length;o--;)n[l[o]]=n[s];return n},as=function(t,e,r,i){var n=e.ease||i||"power1.inOut",s,o;if(it(e))o=r[t]||(r[t]=[]),e.forEach(function(l,u){return o.push({t:u/(e.length-1)*100,v:l,e:n})});else for(s in e)o=r[s]||(r[s]=[]),s==="ease"||o.push({t:parseFloat(t),v:e[s],e:n})},be=function(t,e,r,i,n){return V(t)?t.call(e,r,i,n):$(t)&&~t.indexOf("random(")?ve(t):t},Ei=nr+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Ni={};lt(Ei+",id,stagger,delay,duration,paused,scrollTrigger",function(a){return Ni[a]=1});var Q=(function(a){Yr(t,a);function t(r,i,n,s){var o;typeof i=="number"&&(n.duration=i,i=n,n=null),o=a.call(this,s?i:pe(i))||this;var l=o.vars,u=l.duration,f=l.delay,h=l.immediateRender,_=l.stagger,p=l.overwrite,m=l.keyframes,c=l.defaults,g=l.scrollTrigger,x=l.yoyoEase,y=i.parent||z,T=(it(r)||Wr(r)?jt(r[0]):"length"in i)?[r]:wt(r),b,v,O,C,S,q,k,N;if(o._targets=T.length?sr(T):de("GSAP target "+r+" not found. https://gsap.com",!dt.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=p,m||_||je(u)||je(f)){if(i=o.vars,b=o.timeline=new at({data:"nested",defaults:c||{},targets:y&&y.data==="nested"?y.vars.targets:T}),b.kill(),b.parent=b._dp=St(o),b._start=0,_||je(u)||je(f)){if(C=T.length,k=_&&mi(_),bt(_))for(S in _)~Ei.indexOf(S)&&(N||(N={}),N[S]=_[S]);for(v=0;v<C;v++)O=Ee(i,Ni),O.stagger=0,x&&(O.yoyoEase=x),N&&te(O,N),q=T[v],O.duration=+be(u,St(o),v,q,T),O.delay=(+be(f,St(o),v,q,T)||0)-o._delay,!_&&C===1&&O.delay&&(o._delay=f=O.delay,o._start+=f,O.delay=0),b.to(q,O,k?k(v,q,T):0),b._ease=P.none;b.duration()?u=f=0:o.timeline=0}else if(m){pe(mt(b.vars.defaults,{ease:"none"})),b._ease=zt(m.ease||i.ease||"none");var A=0,D,X,W;if(it(m))m.forEach(function(H){return b.to(T,H,">")}),b.duration();else{O={};for(S in m)S==="ease"||S==="easeEach"||as(S,m[S],O,m.easeEach);for(S in O)for(D=O[S].sort(function(H,G){return H.t-G.t}),A=0,v=0;v<D.length;v++)X=D[v],W={ease:X.e,duration:(X.t-(v?D[v-1].t:0))/100*u},W[S]=X.v,b.to(T,W,A),A+=W.duration;b.duration()<u&&b.to({},{duration:u-b.duration()})}}u||o.duration(u=b.duration())}else o.timeline=0;return p===!0&&!Ye&&(Mt=St(o),z.killTweensOf(T),Mt=0),Ct(y,St(o),n),i.reversed&&o.reverse(),i.paused&&o.paused(!0),(h||!u&&!m&&o._start===J(y._time)&&ot(h)&&Ln(St(o))&&y.data!=="nested")&&(o._tTime=-L,o.render(Math.max(0,-f)||0)),g&&ci(St(o),g),o}var e=t.prototype;return e.render=function(i,n,s){var o=this._time,l=this._tDur,u=this._dur,f=i<0,h=i>l-L&&!f?l:i<L?0:i,_,p,m,c,g,x,y,T,b;if(!u)Fn(this,i,n,s);else if(h!==this._tTime||!i||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==f||this._lazy){if(_=h,T=this.timeline,this._repeat){if(c=u+this._rDelay,this._repeat<-1&&f)return this.totalTime(c*100+i,n,s);if(_=J(h%c),h===l?(m=this._repeat,_=u):(g=J(h/c),m=~~g,m&&m===g?(_=u,m--):_>u&&(_=u)),x=this._yoyo&&m&1,x&&(b=this._yEase,_=u-_),g=ee(this._tTime,c),_===o&&!s&&this._initted&&m===g)return this._tTime=h,this;m!==g&&(T&&this._yEase&&ki(T,x),this.vars.repeatRefresh&&!x&&!this._lock&&_!==c&&this._initted&&(this._lock=s=1,this.render(J(c*m),!0).invalidate()._lock=0))}if(!this._initted){if(hi(this,f?i:_,s,n,h))return this._tTime=0,this;if(o!==this._time&&!(s&&this.vars.repeatRefresh&&m!==g))return this;if(u!==this._dur)return this.render(i,n,s)}if(this._tTime=h,this._time=_,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=y=(b||this._ease)(_/u),this._from&&(this.ratio=y=1-y),!o&&h&&!n&&!g&&(gt(this,"onStart"),this._tTime!==h))return this;for(p=this._pt;p;)p.r(y,p.d),p=p._next;T&&T.render(i<0?i:T._dur*T._ease(_/this._dur),n,s)||this._startAt&&(this._zTime=i),this._onUpdate&&!n&&(f&&or(this,i,n,s),gt(this,"onUpdate")),this._repeat&&m!==g&&this.vars.onRepeat&&!n&&this.parent&>(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(f&&!this._onUpdate&&or(this,i,!0,!0),(i||!u)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&At(this,1),!n&&!(f&&!o)&&(h||o||x)&&(gt(this,h===l?"onComplete":"onReverseComplete",!0),this._prom&&!(h<l&&this.timeScale()>0)&&this._prom()))}return this},e.targets=function(){return this._targets},e.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),a.prototype.invalidate.call(this,i)},e.resetTo=function(i,n,s,o,l){we||vt.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),f;return this._initted||gr(this,u),f=this._ease(u/this._dur),ns(this,i,n,s,o,f,u,l)?this.resetTo(i,n,s,o,1):(Le(this,0),this.parent||li(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(i,n){if(n===void 0&&(n="all"),!i&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?xe(this):this.scrollTrigger&&this.scrollTrigger.kill(!!rt),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(i,n,Mt&&Mt.vars.overwrite!==!0)._first||xe(this),this.parent&&s!==this.timeline.totalDuration()&&re(this,this._dur*this.timeline._tDur/s,0,1),this}var o=this._targets,l=i?wt(i):o,u=this._ptLookup,f=this._pt,h,_,p,m,c,g,x;if((!n||n==="all")&&Mn(o,l))return n==="all"&&(this._pt=0),xe(this);for(h=this._op=this._op||[],n!=="all"&&($(n)&&(c={},lt(n,function(y){return c[y]=1}),n=c),n=ss(o,n)),x=o.length;x--;)if(~l.indexOf(o[x])){_=u[x],n==="all"?(h[x]=n,m=_,p={}):(p=h[x]=h[x]||{},m=n);for(c in m)g=_&&_[c],g&&((!("kill"in g.d)||g.d.kill(c)===!0)&&Ne(this,g,"_pt"),delete _[c]),p!=="all"&&(p[c]=1)}return this._initted&&!this._pt&&f&&xe(this),this},t.to=function(i,n){return new t(i,n,arguments[2])},t.from=function(i,n){return me(1,arguments)},t.delayedCall=function(i,n,s,o){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:n,onReverseComplete:n,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:o})},t.fromTo=function(i,n,s){return me(2,arguments)},t.set=function(i,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(i,n)},t.killTweensOf=function(i,n,s){return z.killTweensOf(i,n,s)},t})(Te);mt(Q.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),lt("staggerTo,staggerFrom,staggerFromTo",function(a){Q[a]=function(){var t=new at,e=ur.call(arguments,0);return e.splice(a==="staggerFromTo"?5:4,0,0),t[a].apply(t,e)}});var vr=function(t,e,r){return t[e]=r},Mi=function(t,e,r){return t[e](r)},os=function(t,e,r,i){return t[e](i.fp,r)},ls=function(t,e,r){return t.setAttribute(e,r)},xr=function(t,e){return V(t[e])?Mi:We(t[e])&&t.setAttribute?ls:vr},Di=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},us=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Li=function(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(t===1&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round((r.s+r.c*t)*1e4)/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},yr=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},fs=function(t,e,r,i){for(var n=this._pt,s;n;)s=n._next,n.p===i&&n.modifier(t,e,r),n=s},cs=function(t){for(var e=this._pt,r,i;e;)i=e._next,e.p===t&&!e.op||e.op===t?Ne(this,e,"_pt"):e.dep||(r=1),e=i;return!r},hs=function(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)},Ii=function(t){for(var e=t._pt,r,i,n,s;e;){for(r=e._next,i=n;i&&i.pr>e.pr;)i=i._next;(e._prev=i?i._prev:s)?e._prev._next=e:n=e,(e._next=i)?i._prev=e:s=e,e=r}t._pt=n},ut=(function(){function a(e,r,i,n,s,o,l,u,f){this.t=r,this.s=n,this.c=s,this.p=i,this.r=o||Di,this.d=l||this,this.set=u||vr,this.pr=f||0,this._next=e,e&&(e._prev=this)}var t=a.prototype;return t.modifier=function(r,i,n){this.mSet=this.mSet||this.set,this.set=hs,this.m=r,this.mt=n,this.tween=i},a})();lt(nr+"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(a){return er[a]=1}),_t.TweenMax=_t.TweenLite=Q,_t.TimelineLite=_t.TimelineMax=at,z=new at({sortChildren:!1,defaults:Qt,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),dt.stringFilter=Si;var Ht=[],Ie={},ds=[],Fi=0,_s=0,wr=function(t){return(Ie[t]||ds).map(function(e){return e()})},Tr=function(){var t=Date.now(),e=[];t-Fi>2&&(wr("matchMediaInit"),Ht.forEach(function(r){var i=r.queries,n=r.conditions,s,o,l,u;for(o in i)s=qt.matchMedia(i[o]).matches,s&&(l=1),s!==n[o]&&(n[o]=s,u=1);u&&(r.revert(),l&&e.push(r))}),wr("matchMediaRevert"),e.forEach(function(r){return r.onMatch(r,function(i){return r.add(null,i)})}),Fi=t,wr("matchMedia"))},Zi=(function(){function a(e,r){this.selector=r&&fr(r),this.data=[],this._r=[],this.isReverted=!1,this.id=_s++,e&&this.add(e)}var t=a.prototype;return t.add=function(r,i,n){V(r)&&(n=i,i=r,r=V);var s=this,o=function(){var u=Z,f=s.selector,h;return u&&u!==s&&u.data.push(s),n&&(s.selector=fr(n)),Z=s,h=i.apply(s,arguments),V(h)&&s._r.push(h),Z=u,s.selector=f,s.isReverted=!1,h};return s.last=o,r===V?o(s,function(l){return s.add(null,l)}):r?s[r]=o:o},t.ignore=function(r){var i=Z;Z=null,r(this),Z=i},t.getTweens=function(){var r=[];return this.data.forEach(function(i){return i instanceof a?r.push.apply(r,i.getTweens()):i instanceof Q&&!(i.parent&&i.parent.data==="nested")&&r.push(i)}),r},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(r,i){var n=this;if(r?(function(){for(var o=n.getTweens(),l=n.data.length,u;l--;)u=n.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(f){return o.splice(o.indexOf(f),1)}));for(o.map(function(f){return{g:f._dur||f._delay||f._sat&&!f._sat.vars.immediateRender?f.globalTime(0):-1/0,t:f}}).sort(function(f,h){return h.g-f.g||-1/0}).forEach(function(f){return f.t.revert(r)}),l=n.data.length;l--;)u=n.data[l],u instanceof at?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof Q)&&u.revert&&u.revert(r);n._r.forEach(function(f){return f(r,n)}),n.isReverted=!0})():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),i)for(var s=Ht.length;s--;)Ht[s].id===this.id&&Ht.splice(s,1)},t.revert=function(r){this.kill(r||{})},a})(),ps=(function(){function a(e){this.contexts=[],this.scope=e,Z&&Z.data.push(this)}var t=a.prototype;return t.add=function(r,i,n){bt(r)||(r={matches:r});var s=new Zi(0,n||this.scope),o=s.conditions={},l,u,f;Z&&!s.selector&&(s.selector=Z.selector),this.contexts.push(s),i=s.add("onMatch",i),s.queries=r;for(u in r)u==="all"?f=1:(l=qt.matchMedia(r[u]),l&&(Ht.indexOf(s)<0&&Ht.push(s),(o[u]=l.matches)&&(f=1),l.addListener?l.addListener(Tr):l.addEventListener("change",Tr)));return f&&i(s,function(h){return s.add(null,h)}),this},t.revert=function(r){this.kill(r||{})},t.kill=function(r){this.contexts.forEach(function(i){return i.kill(r,!0)})},a})(),Fe={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(function(i){return bi(i)})},timeline:function(t){return new at(t)},getTweensOf:function(t,e){return z.getTweensOf(t,e)},getProperty:function(t,e,r,i){$(t)&&(t=wt(t)[0]);var n=Zt(t||{}).get,s=r?ai:si;return r==="native"&&(r=""),t&&(e?s((pt[e]&&pt[e].get||n)(t,e,r,i)):function(o,l,u){return s((pt[o]&&pt[o].get||n)(t,o,l,u))})},quickSetter:function(t,e,r){if(t=wt(t),t.length>1){var i=t.map(function(f){return ft.quickSetter(f,e,r)}),n=i.length;return function(f){for(var h=n;h--;)i[h](f)}}t=t[0]||{};var s=pt[e],o=Zt(t),l=o.harness&&(o.harness.aliases||{})[e]||e,u=s?function(f){var h=new s;ie._pt=0,h.init(t,r?f+r:f,ie,0,[t]),h.render(1,h),ie._pt&&yr(1,ie)}:o.set(t,l);return s?u:function(f){return u(t,l,r?f+r:f,o,1)}},quickTo:function(t,e,r){var i,n=ft.to(t,mt((i={},i[e]="+=0.1",i.paused=!0,i.stagger=0,i),r||{})),s=function(l,u,f){return n.resetTo(e,l,u,f)};return s.tween=n,s},isTweening:function(t){return z.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=zt(t.ease,Qt.ease)),oi(Qt,t||{})},config:function(t){return oi(dt,t||{})},registerEffect:function(t){var e=t.name,r=t.effect,i=t.plugins,n=t.defaults,s=t.extendTimeline;(i||"").split(",").forEach(function(o){return o&&!pt[o]&&!_t[o]&&de(e+" effect requires "+o+" plugin.")}),ir[e]=function(o,l,u){return r(wt(o),mt(l||{},n),u)},s&&(at.prototype[e]=function(o,l,u){return this.add(ir[e](o,bt(l)?l:(u=l)&&{},this),u)})},registerEase:function(t,e){P[t]=zt(e)},parseEase:function(t,e){return arguments.length?zt(t,e):P},getById:function(t){return z.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var r=new at(t),i,n;for(r.smoothChildTiming=ot(t.smoothChildTiming),z.remove(r),r._dp=0,r._time=r._tTime=z._time,i=z._first;i;)n=i._next,(e||!(!i._dur&&i instanceof Q&&i.vars.onComplete===i._targets[0]))&&Ct(r,i,i._start-i._delay),i=n;return Ct(z,r,0),r},context:function(t,e){return t?new Zi(t,e):Z},matchMedia:function(t){return new ps(t)},matchMediaRefresh:function(){return Ht.forEach(function(t){var e=t.conditions,r,i;for(i in e)e[i]&&(e[i]=!1,r=1);r&&t.revert()})||Tr()},addEventListener:function(t,e){var r=Ie[t]||(Ie[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=Ie[t],i=r&&r.indexOf(e);i>=0&&r.splice(i,1)},utils:{wrap:Xn,wrapYoyo:Wn,distribute:mi,random:vi,snap:gi,normalize:Yn,getUnit:nt,clamp:zn,splitColor:qi,toArray:wt,selector:fr,mapRange:yi,pipe:Hn,unitize:Vn,interpolate:Gn,shuffle:pi},install:$r,effects:ir,ticker:vt,updateRoot:at.updateRoot,plugins:pt,globalTimeline:z,core:{PropTween:ut,globals:ti,Tween:Q,Timeline:at,Animation:Te,getCache:Zt,_removeLinkedListItem:Ne,reverting:function(){return rt},context:function(t){return t&&Z&&(Z.data.push(t),t._ctx=Z),Z},suppressOverwrites:function(t){return Ye=t}}};lt("to,from,fromTo,delayedCall,set,killTweensOf",function(a){return Fe[a]=Q[a]}),vt.add(at.updateRoot),ie=Fe.to({},{duration:0});var ms=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},gs=function(t,e){var r=t._targets,i,n,s;for(i in e)for(n=r.length;n--;)s=t._ptLookup[n][i],s&&(s=s.d)&&(s._pt&&(s=ms(s,i)),s&&s.modifier&&s.modifier(e[i],t,r[n],i))},br=function(t,e){return{name:t,headless:1,rawVars:1,init:function(i,n,s){s._onInit=function(o){var l,u;if($(n)&&(l={},lt(n,function(f){return l[f]=1}),n=l),e){l={};for(u in n)l[u]=e(n[u]);n=l}gs(o,n)}}}},ft=Fe.registerPlugin({name:"attr",init:function(t,e,r,i,n){var s,o,l;this.tween=r;for(s in e)l=t.getAttribute(s)||"",o=this.add(t,"setAttribute",(l||0)+"",e[s],i,n,0,0,s),o.op=s,o.b=l,this._props.push(s)},render:function(t,e){for(var r=e._pt;r;)rt?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",headless:1,init:function(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r],0,0,0,0,0,1)}},br("roundProps",cr),br("modifiers"),br("snap",gi))||Fe;Q.version=at.version=ft.version="3.13.0",Kr=1,Ge()&&ne(),P.Power0,P.Power1,P.Power2,P.Power3,P.Power4,P.Linear,P.Quad,P.Cubic,P.Quart,P.Quint,P.Strong,P.Elastic,P.Back,P.SteppedEase,P.Bounce,P.Sine,P.Expo,P.Circ;/*!
|
|
30
|
+
*/var dt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Qt={duration:.5,overwrite:!1,delay:0},Xe,rt,Z,xt=1e8,L=1/xt,We=Math.PI*2,qn=We/4,Cn=0,Xr=Math.sqrt,Sn=Math.cos,On=Math.sin,$=function(t){return typeof t=="string"},V=function(t){return typeof t=="function"},jt=function(t){return typeof t=="number"},Ge=function(t){return typeof t>"u"},bt=function(t){return typeof t=="object"},ot=function(t){return t!==!1},Je=function(){return typeof window<"u"},ke=function(t){return V(t)||$(t)},Wr=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},it=Array.isArray,Qe=/(?:-?\.?\d|\.)+/gi,Gr=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Kt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Ke=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Jr=/[+-]=-?[.\d]+/,Qr=/[^,'"\[\]\s]+/gi,jn=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,z,qt,$e,tr,_t={},Pe={},Kr,$r=function(t){return(Pe=te(t,_t))&&ft},er=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},de=function(t,e){return!e&&console.warn(t)},ti=function(t,e){return t&&(_t[t]=e)&&Pe&&(Pe[t]=e)||_t},_e=function(){return 0},kn={suppressEvents:!0,isStart:!0,kill:!1},Re={suppressEvents:!0,kill:!1},Pn={suppressEvents:!0},rr={},Rt=[],ir={},ei,pt={},nr={},ri=30,Ae=[],sr="",ar=function(t){var e=t[0],r,i;if(bt(e)||V(e)||(t=[t]),!(r=(e._gsap||{}).harness)){for(i=Ae.length;i--&&!Ae[i].targetTest(e););r=Ae[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new Ri(t[i],r)))||t.splice(i,1);return t},Zt=function(t){return t._gsap||ar(wt(t))[0]._gsap},ii=function(t,e,r){return(r=t[e])&&V(r)?t[e]():Ge(r)&&t.getAttribute&&t.getAttribute(e)||r},lt=function(t,e){return(t=t.split(",")).forEach(e)||t},Y=function(t){return Math.round(t*1e5)/1e5||0},J=function(t){return Math.round(t*1e7)/1e7||0},$t=function(t,e){var r=e.charAt(0),i=parseFloat(e.substr(2));return t=parseFloat(t),r==="+"?t+i:r==="-"?t-i:r==="*"?t*i:t/i},Rn=function(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i<r;);return i<r},Ee=function(){var t=Rt.length,e=Rt.slice(0),r,i;for(ir={},Rt.length=0,r=0;r<t;r++)i=e[r],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},or=function(t){return!!(t._initted||t._startAt||t.add)},ni=function(t,e,r,i){Rt.length&&!rt&&Ee(),t.render(e,r,!!(rt&&e<0&&or(t))),Rt.length&&!rt&&Ee()},si=function(t){var e=parseFloat(t);return(e||e===0)&&(t+"").match(Qr).length<2?e:$(t)?t.trim():t},ai=function(t){return t},mt=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},An=function(t){return function(e,r){for(var i in r)i in e||i==="duration"&&t||i==="ease"||(e[i]=r[i])}},te=function(t,e){for(var r in e)t[r]=e[r];return t},oi=function a(t,e){for(var r in e)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(t[r]=bt(e[r])?a(t[r]||(t[r]={}),e[r]):e[r]);return t},Ne=function(t,e){var r={},i;for(i in t)i in e||(r[i]=t[i]);return r},pe=function(t){var e=t.parent||z,r=t.keyframes?An(it(t.keyframes)):mt;if(ot(t.inherit))for(;e;)r(t,e.vars.defaults),e=e.parent||e._dp;return t},En=function(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0},li=function(t,e,r,i,n){var s=t[i],o;if(n)for(o=e[n];s&&s[n]>o;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=s,e.parent=e._dp=t,e},Me=function(t,e,r,i){r===void 0&&(r="_first"),i===void 0&&(i="_last");var n=e._prev,s=e._next;n?n._next=s:t[r]===e&&(t[r]=s),s?s._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null},At=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Bt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t},Nn=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},lr=function(t,e,r,i){return t._startAt&&(rt?t._startAt.revert(Re):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))},Mn=function a(t){return!t||t._ts&&a(t.parent)},ui=function(t){return t._repeat?ee(t._tTime,t=t.duration()+t._rDelay)*t:0},ee=function(t,e){var r=Math.floor(t=J(t/e));return t&&r===t?r-1:r},De=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Le=function(t){return t._end=J(t._start+(t._tDur/Math.abs(t._ts||t._rts||L)||0))},Ie=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=J(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Le(t),r._dirty||Bt(r,t)),t},fi=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=De(t.rawTime(),e),(!e._dur||ge(0,e.totalDuration(),r)-e._tTime>L)&&e.render(r,!0)),Bt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-L}},Ct=function(t,e,r,i){return e.parent&&At(e),e._start=J((jt(r)?r:r||t!==z?yt(t,r,e):t._time)+e._delay),e._end=J(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),li(t,e,"_first","_last",t._sort?"_start":0),ur(e)||(t._recent=e),i||fi(t,e),t._ts<0&&Ie(t,t._tTime),t},ci=function(t,e){return(_t.ScrollTrigger||er("scrollTrigger",e))&&_t.ScrollTrigger.create(e,t)},hi=function(t,e,r,i,n){if(vr(t,e,n),!t._initted)return 1;if(!r&&t._pt&&!rt&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&ei!==vt.frame)return Rt.push(t),t._lazy=[n,i],1},Dn=function a(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||a(e))},ur=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},Ln=function(t,e,r,i){var n=t.ratio,s=e<0||!e&&(!t._start&&Dn(t)&&!(!t._initted&&ur(t))||(t._ts<0||t._dp._ts<0)&&!ur(t))?0:1,o=t._rDelay,l=0,u,f,h;if(o&&t._repeat&&(l=ge(0,t._tDur,e),f=ee(l,o),t._yoyo&&f&1&&(s=1-s),f!==ee(t._tTime,o)&&(n=1-s,t.vars.repeatRefresh&&t._initted&&t.invalidate())),s!==n||rt||i||t._zTime===L||!e&&t._zTime){if(!t._initted&&hi(t,e,i,r,l))return;for(h=t._zTime,t._zTime=e||(r?L:0),r||(r=e&&!h),t.ratio=s,t._from&&(s=1-s),t._time=0,t._tTime=l,u=t._pt;u;)u.r(s,u.d),u=u._next;e<0&&lr(t,e,r,!0),t._onUpdate&&!r&>(t,"onUpdate"),l&&t._repeat&&!r&&t.parent&>(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===s&&(s&&At(t,1),!r&&!rt&&(gt(t,s?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},In=function(t,e,r){var i;if(r>e)for(i=t._first;i&&i._start<=r;){if(i.data==="isPause"&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if(i.data==="isPause"&&i._start<e)return i;i=i._prev}},re=function(t,e,r,i){var n=t._repeat,s=J(e)||0,o=t._tTime/t._tDur;return o&&!i&&(t._time*=s/t._dur),t._dur=s,t._tDur=n?n<0?1e10:J(s*(n+1)+t._rDelay*n):s,o>0&&!i&&Ie(t,t._tTime=t._tDur*o),t.parent&&Le(t),r||Bt(t.parent,t),t},di=function(t){return t instanceof at?Bt(t):re(t,t._dur)},Fn={_start:0,endTime:_e,totalDuration:_e},yt=function a(t,e,r){var i=t.labels,n=t._recent||Fn,s=t.duration()>=xt?n.endTime(!1):t._dur,o,l,u;return $(e)&&(isNaN(e)||e in i)?(l=e.charAt(0),u=e.substr(-1)==="%",o=e.indexOf("="),l==="<"||l===">"?(o>=0&&(e=e.replace(/=/,"")),(l==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(e.substr(1))||0)*(u?(o<0?n:r).totalDuration()/100:1)):o<0?(e in i||(i[e]=s),i[e]):(l=parseFloat(e.charAt(o-1)+e.substr(o+1)),u&&r&&(l=l/100*(it(r)?r[0]:r).totalDuration()),o>1?a(t,e.substr(0,o-1),r)+l:s+l)):e==null?s:+e},me=function(t,e,r){var i=jt(e[1]),n=(i?2:1)+(t<2?0:1),s=e[n],o,l;if(i&&(s.duration=e[1]),s.parent=r,t){for(o=s,l=r;l&&!("immediateRender"in o);)o=l.vars.defaults||{},l=ot(l.vars.inherit)&&l.parent;s.immediateRender=ot(o.immediateRender),t<2?s.runBackwards=1:s.startAt=e[n-1]}return new Q(e[0],s,e[n+1])},Et=function(t,e){return t||t===0?e(t):e},ge=function(t,e,r){return r<t?t:r>e?e:r},nt=function(t,e){return!$(t)||!(e=jn.exec(t))?"":e[1]},Zn=function(t,e,r){return Et(r,function(i){return ge(t,e,i)})},fr=[].slice,_i=function(t,e){return t&&bt(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&bt(t[0]))&&!t.nodeType&&t!==qt},Bn=function(t,e,r){return r===void 0&&(r=[]),t.forEach(function(i){var n;return $(i)&&!e||_i(i,1)?(n=r).push.apply(n,wt(i)):r.push(i)})||r},wt=function(t,e,r){return Z&&!e&&Z.selector?Z.selector(t):$(t)&&!r&&($e||!ne())?fr.call((e||tr).querySelectorAll(t),0):it(t)?Bn(t,r):_i(t)?fr.call(t,0):t?[t]:[]},cr=function(t){return t=wt(t)[0]||de("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return wt(e,r.querySelectorAll?r:r===t?de("Invalid scope")||tr.createElement("div"):t)}},pi=function(t){return t.sort(function(){return .5-Math.random()})},mi=function(t){if(V(t))return t;var e=bt(t)?t:{each:t},r=zt(e.ease),i=e.from||0,n=parseFloat(e.base)||0,s={},o=i>0&&i<1,l=isNaN(i)||o,u=e.axis,f=i,h=i;return $(i)?f=h={center:.5,edges:.5,end:1}[i]||0:!o&&l&&(f=i[0],h=i[1]),function(_,p,m){var c=(m||e).length,g=s[c],x,y,b,T,v,S,C,O,q;if(!g){if(q=e.grid==="auto"?0:(e.grid||[1,xt])[1],!q){for(C=-xt;C<(C=m[q++].getBoundingClientRect().left)&&q<c;);q<c&&q--}for(g=s[c]=[],x=l?Math.min(q,c)*f-.5:i%q,y=q===xt?0:l?c*h/q-.5:i/q|0,C=0,O=xt,S=0;S<c;S++)b=S%q-x,T=y-(S/q|0),g[S]=v=u?Math.abs(u==="y"?T:b):Xr(b*b+T*T),v>C&&(C=v),v<O&&(O=v);i==="random"&&pi(g),g.max=C-O,g.min=O,g.v=c=(parseFloat(e.amount)||parseFloat(e.each)*(q>c?c-1:u?u==="y"?c/q:q:Math.max(q,c/q))||0)*(i==="edges"?-1:1),g.b=c<0?n-c:n,g.u=nt(e.amount||e.each)||0,r=r&&c<0?ji(r):r}return c=(g[_]-g.min)/g.max||0,J(g.b+(r?r(c):c)*g.v)+g.u}},hr=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var i=J(Math.round(parseFloat(r)/t)*t*e);return(i-i%1)/e+(jt(r)?0:nt(r))}},gi=function(t,e){var r=it(t),i,n;return!r&&bt(t)&&(i=r=t.radius||xt,t.values?(t=wt(t.values),(n=!jt(t[0]))&&(i*=i)):t=hr(t.increment)),Et(e,r?V(t)?function(s){return n=t(s),Math.abs(n-s)<=i?n:s}:function(s){for(var o=parseFloat(n?s.x:s),l=parseFloat(n?s.y:0),u=xt,f=0,h=t.length,_,p;h--;)n?(_=t[h].x-o,p=t[h].y-l,_=_*_+p*p):_=Math.abs(t[h]-o),_<u&&(u=_,f=h);return f=!i||u<=i?t[f]:s,n||f===s||jt(s)?f:f+nt(s)}:hr(t))},vi=function(t,e,r,i){return Et(it(t)?!e:r===!0?!!(r=0):!i,function(){return it(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+r*.99))/r)*r*i)/i})},zn=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return e.reduce(function(n,s){return s(n)},i)}},Un=function(t,e){return function(r){return t(parseFloat(r))+(e||nt(r))}},Hn=function(t,e,r){return yi(t,e,0,1,r)},xi=function(t,e,r){return Et(r,function(i){return t[~~e(i)]})},Vn=function a(t,e,r){var i=e-t;return it(t)?xi(t,a(0,t.length),e):Et(r,function(n){return(i+(n-t)%i)%i+t})},Yn=function a(t,e,r){var i=e-t,n=i*2;return it(t)?xi(t,a(0,t.length-1),e):Et(r,function(s){return s=(n+(s-t)%n)%n||0,t+(s>i?n-s:s)})},ve=function(t){for(var e=0,r="",i,n,s,o;~(i=t.indexOf("random(",e));)s=t.indexOf(")",i),o=t.charAt(i+7)==="[",n=t.substr(i+7,s-i-7).match(o?Qr:Qe),r+=t.substr(e,i-e)+vi(o?n:+n[0],o?0:+n[1],+n[2]||1e-5),e=s+1;return r+t.substr(e,t.length-e)},yi=function(t,e,r,i,n){var s=e-t,o=i-r;return Et(n,function(l){return r+((l-t)/s*o||0)})},Xn=function a(t,e,r,i){var n=isNaN(t+e)?0:function(p){return(1-p)*t+p*e};if(!n){var s=$(t),o={},l,u,f,h,_;if(r===!0&&(i=1)&&(r=null),s)t={p:t},e={p:e};else if(it(t)&&!it(e)){for(f=[],h=t.length,_=h-2,u=1;u<h;u++)f.push(a(t[u-1],t[u]));h--,n=function(m){m*=h;var c=Math.min(_,~~m);return f[c](m-c)},r=e}else i||(t=te(it(t)?[]:{},t));if(!f){for(l in e)mr.call(o,t,l,"get",e[l]);n=function(m){return wr(m,o)||(s?t.p:t)}}}return Et(r,n)},wi=function(t,e,r){var i=t.labels,n=xt,s,o,l;for(s in i)o=i[s]-e,o<0==!!r&&o&&n>(o=Math.abs(o))&&(l=s,n=o);return l},gt=function(t,e,r){var i=t.vars,n=i[e],s=Z,o=t._ctx,l,u,f;if(n)return l=i[e+"Params"],u=i.callbackScope||t,r&&Rt.length&&Ee(),o&&(Z=o),f=l?n.apply(u,l):n.call(u),Z=s,f},xe=function(t){return At(t),t.scrollTrigger&&t.scrollTrigger.kill(!!rt),t.progress()<1&>(t,"onInterrupt"),t},ie,Ti=[],bi=function(t){if(t)if(t=!t.name&&t.default||t,Je()||t.headless){var e=t.name,r=V(t),i=e&&!r&&t.init?function(){this._props=[]}:t,n={init:_e,render:wr,add:mr,kill:us,modifier:ls,rawVars:0},s={targetTest:0,get:0,getSetter:yr,aliases:{},register:0};if(ne(),t!==i){if(pt[e])return;mt(i,mt(Ne(t,n),s)),te(i.prototype,te(n,Ne(t,s))),pt[i.prop=e]=i,t.targetTest&&(Ae.push(i),rr[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}ti(e,i),t.register&&t.register(ft,i,ut)}else Ti.push(t)},I=255,ye={aqua:[0,I,I],lime:[0,I,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,I],navy:[0,0,128],white:[I,I,I],olive:[128,128,0],yellow:[I,I,0],orange:[I,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[I,0,0],pink:[I,192,203],cyan:[0,I,I],transparent:[I,I,I,0]},dr=function(t,e,r){return t+=t<0?1:t>1?-1:0,(t*6<1?e+(r-e)*t*6:t<.5?r:t*3<2?e+(r-e)*(2/3-t)*6:e)*I+.5|0},qi=function(t,e,r){var i=t?jt(t)?[t>>16,t>>8&I,t&I]:0:ye.black,n,s,o,l,u,f,h,_,p,m;if(!i){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),ye[t])i=ye[t];else if(t.charAt(0)==="#"){if(t.length<6&&(n=t.charAt(1),s=t.charAt(2),o=t.charAt(3),t="#"+n+n+s+s+o+o+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return i=parseInt(t.substr(1,6),16),[i>>16,i>>8&I,i&I,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),i=[t>>16,t>>8&I,t&I]}else if(t.substr(0,3)==="hsl"){if(i=m=t.match(Qe),!e)l=+i[0]%360/360,u=+i[1]/100,f=+i[2]/100,s=f<=.5?f*(u+1):f+u-f*u,n=f*2-s,i.length>3&&(i[3]*=1),i[0]=dr(l+1/3,n,s),i[1]=dr(l,n,s),i[2]=dr(l-1/3,n,s);else if(~t.indexOf("="))return i=t.match(Gr),r&&i.length<4&&(i[3]=1),i}else i=t.match(Qe)||ye.transparent;i=i.map(Number)}return e&&!m&&(n=i[0]/I,s=i[1]/I,o=i[2]/I,h=Math.max(n,s,o),_=Math.min(n,s,o),f=(h+_)/2,h===_?l=u=0:(p=h-_,u=f>.5?p/(2-h-_):p/(h+_),l=h===n?(s-o)/p+(s<o?6:0):h===s?(o-n)/p+2:(n-s)/p+4,l*=60),i[0]=~~(l+.5),i[1]=~~(u*100+.5),i[2]=~~(f*100+.5)),r&&i.length<4&&(i[3]=1),i},Ci=function(t){var e=[],r=[],i=-1;return t.split(Nt).forEach(function(n){var s=n.match(Kt)||[];e.push.apply(e,s),r.push(i+=s.length+1)}),e.c=r,e},Si=function(t,e,r){var i="",n=(t+i).match(Nt),s=e?"hsla(":"rgba(",o=0,l,u,f,h;if(!n)return t;if(n=n.map(function(_){return(_=qi(_,e,1))&&s+(e?_[0]+","+_[1]+"%,"+_[2]+"%,"+_[3]:_.join(","))+")"}),r&&(f=Ci(t),l=r.c,l.join(i)!==f.c.join(i)))for(u=t.replace(Nt,"1").split(Kt),h=u.length-1;o<h;o++)i+=u[o]+(~l.indexOf(o)?n.shift()||s+"0,0,0,0)":(f.length?f:n.length?n:r).shift());if(!u)for(u=t.split(Nt),h=u.length-1;o<h;o++)i+=u[o]+n[o];return i+u[h]},Nt=(function(){var a="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in ye)a+="|"+t+"\\b";return new RegExp(a+")","gi")})(),Wn=/hsl[a]?\(/,Oi=function(t){var e=t.join(" "),r;if(Nt.lastIndex=0,Nt.test(e))return r=Wn.test(e),t[1]=Si(t[1],r),t[0]=Si(t[0],r,Ci(t[1])),!0},we,vt=(function(){var a=Date.now,t=500,e=33,r=a(),i=r,n=1e3/240,s=n,o=[],l,u,f,h,_,p,m=function c(g){var x=a()-i,y=g===!0,b,T,v,S;if((x>t||x<0)&&(r+=x-e),i+=x,v=i-r,b=v-s,(b>0||y)&&(S=++h.frame,_=v-h.time*1e3,h.time=v=v/1e3,s+=b+(b>=n?4:n-b),T=1),y||(l=u(c)),T)for(p=0;p<o.length;p++)o[p](v,_,S,g)};return h={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(g){return _/(1e3/(g||60))},wake:function(){Kr&&(!$e&&Je()&&(qt=$e=window,tr=qt.document||{},_t.gsap=ft,(qt.gsapVersions||(qt.gsapVersions=[])).push(ft.version),$r(Pe||qt.GreenSockGlobals||!qt.gsap&&qt||{}),Ti.forEach(bi)),f=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&h.sleep(),u=f||function(g){return setTimeout(g,s-h.time*1e3+1|0)},we=1,m(2))},sleep:function(){(f?cancelAnimationFrame:clearTimeout)(l),we=0,u=_e},lagSmoothing:function(g,x){t=g||1/0,e=Math.min(x||33,t)},fps:function(g){n=1e3/(g||240),s=h.time*1e3+n},add:function(g,x,y){var b=x?function(T,v,S,C){g(T,v,S,C),h.remove(b)}:g;return h.remove(g),o[y?"unshift":"push"](b),ne(),b},remove:function(g,x){~(x=o.indexOf(g))&&o.splice(x,1)&&p>=x&&p--},_listeners:o},h})(),ne=function(){return!we&&vt.wake()},P={},Gn=/^[\d.\-M][\d.\-,\s]/,Jn=/["']/g,Qn=function(t){for(var e={},r=t.substr(1,t.length-3).split(":"),i=r[0],n=1,s=r.length,o,l,u;n<s;n++)l=r[n],o=n!==s-1?l.lastIndexOf(","):l.length,u=l.substr(0,o),e[i]=isNaN(u)?u.replace(Jn,"").trim():+u,i=l.substr(o+1).trim();return e},Kn=function(t){var e=t.indexOf("(")+1,r=t.indexOf(")"),i=t.indexOf("(",e);return t.substring(e,~i&&i<r?t.indexOf(")",r+1):r)},$n=function(t){var e=(t+"").split("("),r=P[e[0]];return r&&e.length>1&&r.config?r.config.apply(null,~t.indexOf("{")?[Qn(e[1])]:Kn(t).split(",").map(si)):P._CE&&Gn.test(t)?P._CE("",t):r},ji=function(t){return function(e){return 1-t(1-e)}},ki=function a(t,e){for(var r=t._first,i;r;)r instanceof at?a(r,e):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==e&&(r.timeline?a(r.timeline,e):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=e)),r=r._next},zt=function(t,e){return t&&(V(t)?t:P[t]||$n(t))||e},Ut=function(t,e,r,i){r===void 0&&(r=function(l){return 1-e(1-l)}),i===void 0&&(i=function(l){return l<.5?e(l*2)/2:1-e((1-l)*2)/2});var n={easeIn:e,easeOut:r,easeInOut:i},s;return lt(t,function(o){P[o]=_t[o]=n,P[s=o.toLowerCase()]=r;for(var l in n)P[s+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=P[o+"."+l]=n[l]}),n},Pi=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},_r=function a(t,e,r){var i=e>=1?e:1,n=(r||(t?.3:.45))/(e<1?e:1),s=n/We*(Math.asin(1/i)||0),o=function(f){return f===1?1:i*Math.pow(2,-10*f)*On((f-s)*n)+1},l=t==="out"?o:t==="in"?function(u){return 1-o(1-u)}:Pi(o);return n=We/n,l.config=function(u,f){return a(t,u,f)},l},pr=function a(t,e){e===void 0&&(e=1.70158);var r=function(s){return s?--s*s*((e+1)*s+e)+1:0},i=t==="out"?r:t==="in"?function(n){return 1-r(1-n)}:Pi(r);return i.config=function(n){return a(t,n)},i};lt("Linear,Quad,Cubic,Quart,Quint,Strong",function(a,t){var e=t<5?t+1:t;Ut(a+",Power"+(e-1),t?function(r){return Math.pow(r,e)}:function(r){return r},function(r){return 1-Math.pow(1-r,e)},function(r){return r<.5?Math.pow(r*2,e)/2:1-Math.pow((1-r)*2,e)/2})}),P.Linear.easeNone=P.none=P.Linear.easeIn,Ut("Elastic",_r("in"),_r("out"),_r()),(function(a,t){var e=1/t,r=2*e,i=2.5*e,n=function(o){return o<e?a*o*o:o<r?a*Math.pow(o-1.5/t,2)+.75:o<i?a*(o-=2.25/t)*o+.9375:a*Math.pow(o-2.625/t,2)+.984375};Ut("Bounce",function(s){return 1-n(1-s)},n)})(7.5625,2.75),Ut("Expo",function(a){return Math.pow(2,10*(a-1))*a+a*a*a*a*a*a*(1-a)}),Ut("Circ",function(a){return-(Xr(1-a*a)-1)}),Ut("Sine",function(a){return a===1?1:-Sn(a*qn)+1}),Ut("Back",pr("in"),pr("out"),pr()),P.SteppedEase=P.steps=_t.SteppedEase={config:function(t,e){t===void 0&&(t=1);var r=1/t,i=t+(e?0:1),n=e?1:0,s=1-L;return function(o){return((i*ge(0,s,o)|0)+n)*r}}},Qt.ease=P["quad.out"],lt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(a){return sr+=a+","+a+"Params,"});var Ri=function(t,e){this.id=Cn++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:ii,this.set=e?e.getSetter:yr},Te=(function(){function a(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,re(this,+e.duration,1,1),this.data=e.data,Z&&(this._ctx=Z,Z.data.push(this)),we||vt.wake()}var t=a.prototype;return t.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},t.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},t.totalDuration=function(r){return arguments.length?(this._dirty=0,re(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(r,i){if(ne(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Ie(this,r),!n._dp||n.parent||fi(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&Ct(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===L||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),ni(this,r,i)),this},t.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+ui(this))%(this._dur+this._rDelay)||(r?this._dur:0),i):this._time},t.totalProgress=function(r,i){return arguments.length?this.totalTime(this.totalDuration()*r,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(r,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+ui(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(r,i){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*n,i):this._repeat?ee(this._tTime,n)+1:1},t.timeScale=function(r,i){if(!arguments.length)return this._rts===-L?0:this._rts;if(this._rts===r)return this;var n=this.parent&&this._ts?De(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-L?0:this._rts,this.totalTime(ge(-Math.abs(this._delay),this.totalDuration(),n),i!==!1),Le(this),Nn(this)},t.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):(ne(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==L&&(this._tTime-=L)))),this):this._ps},t.startTime=function(r){if(arguments.length){this._start=r;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&Ct(i,this,r-this._delay),this}return this._start},t.endTime=function(r){return this._start+(ot(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(r){var i=this.parent||this._dp;return i?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?De(i.rawTime(r),this):this._tTime:this._tTime},t.revert=function(r){r===void 0&&(r=Pn);var i=rt;return rt=r,or(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),rt=i,this},t.globalTime=function(r){for(var i=this,n=arguments.length?r:i.rawTime();i;)n=i._start+n/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(r):n},t.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,di(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,di(this),i?this.time(i):this}return this._rDelay},t.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},t.seek=function(r,i){return this.totalTime(yt(this,r),ot(i))},t.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,ot(i)),this._dur||(this._zTime=-L),this},t.play=function(r,i){return r!=null&&this.seek(r,i),this.reversed(!1).paused(!1)},t.reverse=function(r,i){return r!=null&&this.seek(r||this.totalDuration(),i),this.reversed(!0).paused(!1)},t.pause=function(r,i){return r!=null&&this.seek(r,i),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-L:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-L,this},t.isActive=function(){var r=this.parent||this._dp,i=this._start,n;return!!(!r||this._ts&&this._initted&&r.isActive()&&(n=r.rawTime(!0))>=i&&n<this.endTime(!0)-L)},t.eventCallback=function(r,i,n){var s=this.vars;return arguments.length>1?(i?(s[r]=i,n&&(s[r+"Params"]=n),r==="onUpdate"&&(this._onUpdate=i)):delete s[r],this):s[r]},t.then=function(r){var i=this;return new Promise(function(n){var s=V(r)?r:ai,o=function(){var u=i.then;i.then=null,V(s)&&(s=s(i))&&(s.then||s===i)&&(i.then=u),n(s),i.then=u};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?o():i._prom=o})},t.kill=function(){xe(this)},a})();mt(Te.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:-L,_prom:0,_ps:!1,_rts:1});var at=(function(a){Yr(t,a);function t(r,i){var n;return r===void 0&&(r={}),n=a.call(this,r)||this,n.labels={},n.smoothChildTiming=!!r.smoothChildTiming,n.autoRemoveChildren=!!r.autoRemoveChildren,n._sort=ot(r.sortChildren),z&&Ct(r.parent||z,Ot(n),i),r.reversed&&n.reverse(),r.paused&&n.paused(!0),r.scrollTrigger&&ci(Ot(n),r.scrollTrigger),n}var e=t.prototype;return e.to=function(i,n,s){return me(0,arguments,this),this},e.from=function(i,n,s){return me(1,arguments,this),this},e.fromTo=function(i,n,s,o){return me(2,arguments,this),this},e.set=function(i,n,s){return n.duration=0,n.parent=this,pe(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new Q(i,n,yt(this,s),1),this},e.call=function(i,n,s){return Ct(this,Q.delayedCall(0,i,n),s)},e.staggerTo=function(i,n,s,o,l,u,f){return s.duration=n,s.stagger=s.stagger||o,s.onComplete=u,s.onCompleteParams=f,s.parent=this,new Q(i,s,yt(this,l)),this},e.staggerFrom=function(i,n,s,o,l,u,f){return s.runBackwards=1,pe(s).immediateRender=ot(s.immediateRender),this.staggerTo(i,n,s,o,l,u,f)},e.staggerFromTo=function(i,n,s,o,l,u,f,h){return o.startAt=s,pe(o).immediateRender=ot(o.immediateRender),this.staggerTo(i,n,o,l,u,f,h)},e.render=function(i,n,s){var o=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,f=i<=0?0:J(i),h=this._zTime<0!=i<0&&(this._initted||!u),_,p,m,c,g,x,y,b,T,v,S,C;if(this!==z&&f>l&&i>=0&&(f=l),f!==this._tTime||s||h){if(o!==this._time&&u&&(f+=this._time-o,i+=this._time-o),_=f,T=this._start,b=this._ts,x=!b,h&&(u||(o=this._zTime),(i||!n)&&(this._zTime=i)),this._repeat){if(S=this._yoyo,g=u+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(g*100+i,n,s);if(_=J(f%g),f===l?(c=this._repeat,_=u):(v=J(f/g),c=~~v,c&&c===v&&(_=u,c--),_>u&&(_=u)),v=ee(this._tTime,g),!o&&this._tTime&&v!==c&&this._tTime-v*g-this._dur<=0&&(v=c),S&&c&1&&(_=u-_,C=1),c!==v&&!this._lock){var O=S&&v&1,q=O===(S&&c&1);if(c<v&&(O=!O),o=O?0:f%u?u:f,this._lock=1,this.render(o||(C?0:J(c*g)),n,!u)._lock=0,this._tTime=f,!n&&this.parent&>(this,"onRepeat"),this.vars.repeatRefresh&&!C&&(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=O?u:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!C&&this.invalidate()),this._lock=0,!this._ts&&!x)return this;ki(this,C)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(y=In(this,J(o),J(_)),y&&(f-=_-(_=y._start))),this._tTime=f,this._time=_,this._act=!b,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,o=0),!o&&f&&!n&&!v&&(gt(this,"onStart"),this._tTime!==f))return this;if(_>=o&&i>=0)for(p=this._first;p;){if(m=p._next,(p._act||_>=p._start)&&p._ts&&y!==p){if(p.parent!==this)return this.render(i,n,s);if(p.render(p._ts>0?(_-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(_-p._start)*p._ts,n,s),_!==this._time||!this._ts&&!x){y=0,m&&(f+=this._zTime=-L);break}}p=m}else{p=this._last;for(var k=i<0?i:_;p;){if(m=p._prev,(p._act||k<=p._end)&&p._ts&&y!==p){if(p.parent!==this)return this.render(i,n,s);if(p.render(p._ts>0?(k-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(k-p._start)*p._ts,n,s||rt&&or(p)),_!==this._time||!this._ts&&!x){y=0,m&&(f+=this._zTime=k?-L:L);break}}p=m}}if(y&&!n&&(this.pause(),y.render(_>=o?0:-L)._zTime=_>=o?1:-1,this._ts))return this._start=T,Le(this),this.render(i,n,s);this._onUpdate&&!n&>(this,"onUpdate",!0),(f===l&&this._tTime>=this.totalDuration()||!f&&o)&&(T===this._start||Math.abs(b)!==Math.abs(this._ts))&&(this._lock||((i||!u)&&(f===l&&this._ts>0||!f&&this._ts<0)&&At(this,1),!n&&!(i<0&&!o)&&(f||o||!l)&&(gt(this,f===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(f<l&&this.timeScale()>0)&&this._prom())))}return this},e.add=function(i,n){var s=this;if(jt(n)||(n=yt(this,n,i)),!(i instanceof Te)){if(it(i))return i.forEach(function(o){return s.add(o,n)}),this;if($(i))return this.addLabel(i,n);if(V(i))i=Q.delayedCall(0,i);else return this}return this!==i?Ct(this,i,n):this},e.getChildren=function(i,n,s,o){i===void 0&&(i=!0),n===void 0&&(n=!0),s===void 0&&(s=!0),o===void 0&&(o=-xt);for(var l=[],u=this._first;u;)u._start>=o&&(u instanceof Q?n&&l.push(u):(s&&l.push(u),i&&l.push.apply(l,u.getChildren(!0,n,s)))),u=u._next;return l},e.getById=function(i){for(var n=this.getChildren(1,1,1),s=n.length;s--;)if(n[s].vars.id===i)return n[s]},e.remove=function(i){return $(i)?this.removeLabel(i):V(i)?this.killTweensOf(i):(i.parent===this&&Me(this,i),i===this._recent&&(this._recent=this._last),Bt(this))},e.totalTime=function(i,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=J(vt.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),a.prototype.totalTime.call(this,i,n),this._forcing=0,this):this._tTime},e.addLabel=function(i,n){return this.labels[i]=yt(this,n),this},e.removeLabel=function(i){return delete this.labels[i],this},e.addPause=function(i,n,s){var o=Q.delayedCall(0,n||_e,s);return o.data="isPause",this._hasPause=1,Ct(this,o,yt(this,i))},e.removePause=function(i){var n=this._first;for(i=yt(this,i);n;)n._start===i&&n.data==="isPause"&&At(n),n=n._next},e.killTweensOf=function(i,n,s){for(var o=this.getTweensOf(i,s),l=o.length;l--;)Mt!==o[l]&&o[l].kill(i,n);return this},e.getTweensOf=function(i,n){for(var s=[],o=wt(i),l=this._first,u=jt(n),f;l;)l instanceof Q?Rn(l._targets,o)&&(u?(!Mt||l._initted&&l._ts)&&l.globalTime(0)<=n&&l.globalTime(l.totalDuration())>n:!n||l.isActive())&&s.push(l):(f=l.getTweensOf(o,n)).length&&s.push.apply(s,f),l=l._next;return s},e.tweenTo=function(i,n){n=n||{};var s=this,o=yt(s,i),l=n,u=l.startAt,f=l.onStart,h=l.onStartParams,_=l.immediateRender,p,m=Q.to(s,mt({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:n.duration||Math.abs((o-(u&&"time"in u?u.time:s._time))/s.timeScale())||L,onStart:function(){if(s.pause(),!p){var g=n.duration||Math.abs((o-(u&&"time"in u?u.time:s._time))/s.timeScale());m._dur!==g&&re(m,g,0,1).render(m._time,!0,!0),p=1}f&&f.apply(m,h||[])}},n));return _?m.render(0):m},e.tweenFromTo=function(i,n,s){return this.tweenTo(n,mt({startAt:{time:yt(this,i)}},s))},e.recent=function(){return this._recent},e.nextLabel=function(i){return i===void 0&&(i=this._time),wi(this,yt(this,i))},e.previousLabel=function(i){return i===void 0&&(i=this._time),wi(this,yt(this,i),1)},e.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+L)},e.shiftChildren=function(i,n,s){s===void 0&&(s=0);for(var o=this._first,l=this.labels,u;o;)o._start>=s&&(o._start+=i,o._end+=i),o=o._next;if(n)for(u in l)l[u]>=s&&(l[u]+=i);return Bt(this)},e.invalidate=function(i){var n=this._first;for(this._lock=0;n;)n.invalidate(i),n=n._next;return a.prototype.invalidate.call(this,i)},e.clear=function(i){i===void 0&&(i=!0);for(var n=this._first,s;n;)s=n._next,this.remove(n),n=s;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),Bt(this)},e.totalDuration=function(i){var n=0,s=this,o=s._last,l=xt,u,f,h;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-i:i));if(s._dirty){for(h=s.parent;o;)u=o._prev,o._dirty&&o.totalDuration(),f=o._start,f>l&&s._sort&&o._ts&&!s._lock?(s._lock=1,Ct(s,o,f-o._delay,1)._lock=0):l=f,f<0&&o._ts&&(n-=f,(!h&&!s._dp||h&&h.smoothChildTiming)&&(s._start+=f/s._ts,s._time-=f,s._tTime-=f),s.shiftChildren(-f,!1,-1/0),l=0),o._end>n&&o._ts&&(n=o._end),o=u;re(s,s===z&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},t.updateRoot=function(i){if(z._ts&&(ni(z,De(i,z)),ei=vt.frame),vt.frame>=ri){ri+=dt.autoSleep||120;var n=z._first;if((!n||!n._ts)&&dt.autoSleep&&vt._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||vt.sleep()}}},t})(Te);mt(at.prototype,{_lock:0,_hasPause:0,_forcing:0});var ts=function(t,e,r,i,n,s,o){var l=new ut(this._pt,t,e,0,1,Li,null,n),u=0,f=0,h,_,p,m,c,g,x,y;for(l.b=r,l.e=i,r+="",i+="",(x=~i.indexOf("random("))&&(i=ve(i)),s&&(y=[r,i],s(y,t,e),r=y[0],i=y[1]),_=r.match(Ke)||[];h=Ke.exec(i);)m=h[0],c=i.substring(u,h.index),p?p=(p+1)%5:c.substr(-5)==="rgba("&&(p=1),m!==_[f++]&&(g=parseFloat(_[f-1])||0,l._pt={_next:l._pt,p:c||f===1?c:",",s:g,c:m.charAt(1)==="="?$t(g,m)-g:parseFloat(m)-g,m:p&&p<4?Math.round:0},u=Ke.lastIndex);return l.c=u<i.length?i.substring(u,i.length):"",l.fp=o,(Jr.test(i)||x)&&(l.e=0),this._pt=l,l},mr=function(t,e,r,i,n,s,o,l,u,f){V(i)&&(i=i(n||0,t,s));var h=t[e],_=r!=="get"?r:V(h)?u?t[e.indexOf("set")||!V(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():h,p=V(h)?u?ss:Mi:xr,m;if($(i)&&(~i.indexOf("random(")&&(i=ve(i)),i.charAt(1)==="="&&(m=$t(_,i)+(nt(_)||0),(m||m===0)&&(i=m))),!f||_!==i||gr)return!isNaN(_*i)&&i!==""?(m=new ut(this._pt,t,e,+_||0,i-(_||0),typeof h=="boolean"?os:Di,0,p),u&&(m.fp=u),o&&m.modifier(o,this,t),this._pt=m):(!h&&!(e in t)&&er(e,i),ts.call(this,t,e,_,i,p,l||dt.stringFilter,u))},es=function(t,e,r,i,n){if(V(t)&&(t=be(t,n,e,r,i)),!bt(t)||t.style&&t.nodeType||it(t)||Wr(t))return $(t)?be(t,n,e,r,i):t;var s={},o;for(o in t)s[o]=be(t[o],n,e,r,i);return s},Ai=function(t,e,r,i,n,s){var o,l,u,f;if(pt[t]&&(o=new pt[t]).init(n,o.rawVars?e[t]:es(e[t],i,n,s,r),r,i,s)!==!1&&(r._pt=l=new ut(r._pt,n,t,0,1,o.render,o,0,o.priority),r!==ie))for(u=r._ptLookup[r._targets.indexOf(n)],f=o._props.length;f--;)u[o._props[f]]=l;return o},Mt,gr,vr=function a(t,e,r){var i=t.vars,n=i.ease,s=i.startAt,o=i.immediateRender,l=i.lazy,u=i.onUpdate,f=i.runBackwards,h=i.yoyoEase,_=i.keyframes,p=i.autoRevert,m=t._dur,c=t._startAt,g=t._targets,x=t.parent,y=x&&x.data==="nested"?x.vars.targets:g,b=t._overwrite==="auto"&&!Xe,T=t.timeline,v,S,C,O,q,k,N,A,D,X,W,H,G;if(T&&(!_||!n)&&(n="none"),t._ease=zt(n,Qt.ease),t._yEase=h?ji(zt(h===!0?n:h,Qt.ease)):0,h&&t._yoyo&&!t._repeat&&(h=t._yEase,t._yEase=t._ease,t._ease=h),t._from=!T&&!!i.runBackwards,!T||_&&!i.stagger){if(A=g[0]?Zt(g[0]).harness:0,H=A&&i[A.prop],v=Ne(i,rr),c&&(c._zTime<0&&c.progress(1),e<0&&f&&o&&!p?c.render(-1,!0):c.revert(f&&m?Re:kn),c._lazy=0),s){if(At(t._startAt=Q.set(g,mt({data:"isStart",overwrite:!1,parent:x,immediateRender:!0,lazy:!c&&ot(l),startAt:null,delay:0,onUpdate:u&&function(){return gt(t,"onUpdate")},stagger:0},s))),t._startAt._dp=0,t._startAt._sat=t,e<0&&(rt||!o&&!p)&&t._startAt.revert(Re),o&&m&&e<=0&&r<=0){e&&(t._zTime=e);return}}else if(f&&m&&!c){if(e&&(o=!1),C=mt({overwrite:!1,data:"isFromStart",lazy:o&&!c&&ot(l),immediateRender:o,stagger:0,parent:x},v),H&&(C[A.prop]=H),At(t._startAt=Q.set(g,C)),t._startAt._dp=0,t._startAt._sat=t,e<0&&(rt?t._startAt.revert(Re):t._startAt.render(-1,!0)),t._zTime=e,!o)a(t._startAt,L,L);else if(!e)return}for(t._pt=t._ptCache=0,l=m&&ot(l)||l&&!m,S=0;S<g.length;S++){if(q=g[S],N=q._gsap||ar(g)[S]._gsap,t._ptLookup[S]=X={},ir[N.id]&&Rt.length&&Ee(),W=y===g?S:y.indexOf(q),A&&(D=new A).init(q,H||v,t,W,y)!==!1&&(t._pt=O=new ut(t._pt,q,D.name,0,1,D.render,D,0,D.priority),D._props.forEach(function(ht){X[ht]=O}),D.priority&&(k=1)),!A||H)for(C in v)pt[C]&&(D=Ai(C,v,t,W,q,y))?D.priority&&(k=1):X[C]=O=mr.call(t,q,C,"get",v[C],W,y,0,i.stringFilter);t._op&&t._op[S]&&t.kill(q,t._op[S]),b&&t._pt&&(Mt=t,z.killTweensOf(q,X,t.globalTime(e)),G=!t.parent,Mt=0),t._pt&&l&&(ir[N.id]=1)}k&&Ii(t),t._onInit&&t._onInit(t)}t._onUpdate=u,t._initted=(!t._op||t._pt)&&!G,_&&e<=0&&T.render(xt,!0,!0)},rs=function(t,e,r,i,n,s,o,l){var u=(t._pt&&t._ptCache||(t._ptCache={}))[e],f,h,_,p;if(!u)for(u=t._ptCache[e]=[],_=t._ptLookup,p=t._targets.length;p--;){if(f=_[p][e],f&&f.d&&f.d._pt)for(f=f.d._pt;f&&f.p!==e&&f.fp!==e;)f=f._next;if(!f)return gr=1,t.vars[e]="+=0",vr(t,o),gr=0,l?de(e+" not eligible for reset"):1;u.push(f)}for(p=u.length;p--;)h=u[p],f=h._pt||h,f.s=(i||i===0)&&!n?i:f.s+(i||0)+s*f.c,f.c=r-f.s,h.e&&(h.e=Y(r)+nt(h.e)),h.b&&(h.b=f.s+nt(h.b))},is=function(t,e){var r=t[0]?Zt(t[0]).harness:0,i=r&&r.aliases,n,s,o,l;if(!i)return e;n=te({},e);for(s in i)if(s in n)for(l=i[s].split(","),o=l.length;o--;)n[l[o]]=n[s];return n},ns=function(t,e,r,i){var n=e.ease||i||"power1.inOut",s,o;if(it(e))o=r[t]||(r[t]=[]),e.forEach(function(l,u){return o.push({t:u/(e.length-1)*100,v:l,e:n})});else for(s in e)o=r[s]||(r[s]=[]),s==="ease"||o.push({t:parseFloat(t),v:e[s],e:n})},be=function(t,e,r,i,n){return V(t)?t.call(e,r,i,n):$(t)&&~t.indexOf("random(")?ve(t):t},Ei=sr+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Ni={};lt(Ei+",id,stagger,delay,duration,paused,scrollTrigger",function(a){return Ni[a]=1});var Q=(function(a){Yr(t,a);function t(r,i,n,s){var o;typeof i=="number"&&(n.duration=i,i=n,n=null),o=a.call(this,s?i:pe(i))||this;var l=o.vars,u=l.duration,f=l.delay,h=l.immediateRender,_=l.stagger,p=l.overwrite,m=l.keyframes,c=l.defaults,g=l.scrollTrigger,x=l.yoyoEase,y=i.parent||z,b=(it(r)||Wr(r)?jt(r[0]):"length"in i)?[r]:wt(r),T,v,S,C,O,q,k,N;if(o._targets=b.length?ar(b):de("GSAP target "+r+" not found. https://gsap.com",!dt.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=p,m||_||ke(u)||ke(f)){if(i=o.vars,T=o.timeline=new at({data:"nested",defaults:c||{},targets:y&&y.data==="nested"?y.vars.targets:b}),T.kill(),T.parent=T._dp=Ot(o),T._start=0,_||ke(u)||ke(f)){if(C=b.length,k=_&&mi(_),bt(_))for(O in _)~Ei.indexOf(O)&&(N||(N={}),N[O]=_[O]);for(v=0;v<C;v++)S=Ne(i,Ni),S.stagger=0,x&&(S.yoyoEase=x),N&&te(S,N),q=b[v],S.duration=+be(u,Ot(o),v,q,b),S.delay=(+be(f,Ot(o),v,q,b)||0)-o._delay,!_&&C===1&&S.delay&&(o._delay=f=S.delay,o._start+=f,S.delay=0),T.to(q,S,k?k(v,q,b):0),T._ease=P.none;T.duration()?u=f=0:o.timeline=0}else if(m){pe(mt(T.vars.defaults,{ease:"none"})),T._ease=zt(m.ease||i.ease||"none");var A=0,D,X,W;if(it(m))m.forEach(function(H){return T.to(b,H,">")}),T.duration();else{S={};for(O in m)O==="ease"||O==="easeEach"||ns(O,m[O],S,m.easeEach);for(O in S)for(D=S[O].sort(function(H,G){return H.t-G.t}),A=0,v=0;v<D.length;v++)X=D[v],W={ease:X.e,duration:(X.t-(v?D[v-1].t:0))/100*u},W[O]=X.v,T.to(b,W,A),A+=W.duration;T.duration()<u&&T.to({},{duration:u-T.duration()})}}u||o.duration(u=T.duration())}else o.timeline=0;return p===!0&&!Xe&&(Mt=Ot(o),z.killTweensOf(b),Mt=0),Ct(y,Ot(o),n),i.reversed&&o.reverse(),i.paused&&o.paused(!0),(h||!u&&!m&&o._start===J(y._time)&&ot(h)&&Mn(Ot(o))&&y.data!=="nested")&&(o._tTime=-L,o.render(Math.max(0,-f)||0)),g&&ci(Ot(o),g),o}var e=t.prototype;return e.render=function(i,n,s){var o=this._time,l=this._tDur,u=this._dur,f=i<0,h=i>l-L&&!f?l:i<L?0:i,_,p,m,c,g,x,y,b,T;if(!u)Ln(this,i,n,s);else if(h!==this._tTime||!i||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==f||this._lazy){if(_=h,b=this.timeline,this._repeat){if(c=u+this._rDelay,this._repeat<-1&&f)return this.totalTime(c*100+i,n,s);if(_=J(h%c),h===l?(m=this._repeat,_=u):(g=J(h/c),m=~~g,m&&m===g?(_=u,m--):_>u&&(_=u)),x=this._yoyo&&m&1,x&&(T=this._yEase,_=u-_),g=ee(this._tTime,c),_===o&&!s&&this._initted&&m===g)return this._tTime=h,this;m!==g&&(b&&this._yEase&&ki(b,x),this.vars.repeatRefresh&&!x&&!this._lock&&_!==c&&this._initted&&(this._lock=s=1,this.render(J(c*m),!0).invalidate()._lock=0))}if(!this._initted){if(hi(this,f?i:_,s,n,h))return this._tTime=0,this;if(o!==this._time&&!(s&&this.vars.repeatRefresh&&m!==g))return this;if(u!==this._dur)return this.render(i,n,s)}if(this._tTime=h,this._time=_,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=y=(T||this._ease)(_/u),this._from&&(this.ratio=y=1-y),!o&&h&&!n&&!g&&(gt(this,"onStart"),this._tTime!==h))return this;for(p=this._pt;p;)p.r(y,p.d),p=p._next;b&&b.render(i<0?i:b._dur*b._ease(_/this._dur),n,s)||this._startAt&&(this._zTime=i),this._onUpdate&&!n&&(f&&lr(this,i,n,s),gt(this,"onUpdate")),this._repeat&&m!==g&&this.vars.onRepeat&&!n&&this.parent&>(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(f&&!this._onUpdate&&lr(this,i,!0,!0),(i||!u)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&At(this,1),!n&&!(f&&!o)&&(h||o||x)&&(gt(this,h===l?"onComplete":"onReverseComplete",!0),this._prom&&!(h<l&&this.timeScale()>0)&&this._prom()))}return this},e.targets=function(){return this._targets},e.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),a.prototype.invalidate.call(this,i)},e.resetTo=function(i,n,s,o,l){we||vt.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),f;return this._initted||vr(this,u),f=this._ease(u/this._dur),rs(this,i,n,s,o,f,u,l)?this.resetTo(i,n,s,o,1):(Ie(this,0),this.parent||li(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(i,n){if(n===void 0&&(n="all"),!i&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?xe(this):this.scrollTrigger&&this.scrollTrigger.kill(!!rt),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(i,n,Mt&&Mt.vars.overwrite!==!0)._first||xe(this),this.parent&&s!==this.timeline.totalDuration()&&re(this,this._dur*this.timeline._tDur/s,0,1),this}var o=this._targets,l=i?wt(i):o,u=this._ptLookup,f=this._pt,h,_,p,m,c,g,x;if((!n||n==="all")&&En(o,l))return n==="all"&&(this._pt=0),xe(this);for(h=this._op=this._op||[],n!=="all"&&($(n)&&(c={},lt(n,function(y){return c[y]=1}),n=c),n=is(o,n)),x=o.length;x--;)if(~l.indexOf(o[x])){_=u[x],n==="all"?(h[x]=n,m=_,p={}):(p=h[x]=h[x]||{},m=n);for(c in m)g=_&&_[c],g&&((!("kill"in g.d)||g.d.kill(c)===!0)&&Me(this,g,"_pt"),delete _[c]),p!=="all"&&(p[c]=1)}return this._initted&&!this._pt&&f&&xe(this),this},t.to=function(i,n){return new t(i,n,arguments[2])},t.from=function(i,n){return me(1,arguments)},t.delayedCall=function(i,n,s,o){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:n,onReverseComplete:n,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:o})},t.fromTo=function(i,n,s){return me(2,arguments)},t.set=function(i,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(i,n)},t.killTweensOf=function(i,n,s){return z.killTweensOf(i,n,s)},t})(Te);mt(Q.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),lt("staggerTo,staggerFrom,staggerFromTo",function(a){Q[a]=function(){var t=new at,e=fr.call(arguments,0);return e.splice(a==="staggerFromTo"?5:4,0,0),t[a].apply(t,e)}});var xr=function(t,e,r){return t[e]=r},Mi=function(t,e,r){return t[e](r)},ss=function(t,e,r,i){return t[e](i.fp,r)},as=function(t,e,r){return t.setAttribute(e,r)},yr=function(t,e){return V(t[e])?Mi:Ge(t[e])&&t.setAttribute?as:xr},Di=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},os=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Li=function(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(t===1&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round((r.s+r.c*t)*1e4)/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},wr=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},ls=function(t,e,r,i){for(var n=this._pt,s;n;)s=n._next,n.p===i&&n.modifier(t,e,r),n=s},us=function(t){for(var e=this._pt,r,i;e;)i=e._next,e.p===t&&!e.op||e.op===t?Me(this,e,"_pt"):e.dep||(r=1),e=i;return!r},fs=function(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)},Ii=function(t){for(var e=t._pt,r,i,n,s;e;){for(r=e._next,i=n;i&&i.pr>e.pr;)i=i._next;(e._prev=i?i._prev:s)?e._prev._next=e:n=e,(e._next=i)?i._prev=e:s=e,e=r}t._pt=n},ut=(function(){function a(e,r,i,n,s,o,l,u,f){this.t=r,this.s=n,this.c=s,this.p=i,this.r=o||Di,this.d=l||this,this.set=u||xr,this.pr=f||0,this._next=e,e&&(e._prev=this)}var t=a.prototype;return t.modifier=function(r,i,n){this.mSet=this.mSet||this.set,this.set=fs,this.m=r,this.mt=n,this.tween=i},a})();lt(sr+"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(a){return rr[a]=1}),_t.TweenMax=_t.TweenLite=Q,_t.TimelineLite=_t.TimelineMax=at,z=new at({sortChildren:!1,defaults:Qt,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),dt.stringFilter=Oi;var Ht=[],Fe={},cs=[],Fi=0,hs=0,Tr=function(t){return(Fe[t]||cs).map(function(e){return e()})},br=function(){var t=Date.now(),e=[];t-Fi>2&&(Tr("matchMediaInit"),Ht.forEach(function(r){var i=r.queries,n=r.conditions,s,o,l,u;for(o in i)s=qt.matchMedia(i[o]).matches,s&&(l=1),s!==n[o]&&(n[o]=s,u=1);u&&(r.revert(),l&&e.push(r))}),Tr("matchMediaRevert"),e.forEach(function(r){return r.onMatch(r,function(i){return r.add(null,i)})}),Fi=t,Tr("matchMedia"))},Zi=(function(){function a(e,r){this.selector=r&&cr(r),this.data=[],this._r=[],this.isReverted=!1,this.id=hs++,e&&this.add(e)}var t=a.prototype;return t.add=function(r,i,n){V(r)&&(n=i,i=r,r=V);var s=this,o=function(){var u=Z,f=s.selector,h;return u&&u!==s&&u.data.push(s),n&&(s.selector=cr(n)),Z=s,h=i.apply(s,arguments),V(h)&&s._r.push(h),Z=u,s.selector=f,s.isReverted=!1,h};return s.last=o,r===V?o(s,function(l){return s.add(null,l)}):r?s[r]=o:o},t.ignore=function(r){var i=Z;Z=null,r(this),Z=i},t.getTweens=function(){var r=[];return this.data.forEach(function(i){return i instanceof a?r.push.apply(r,i.getTweens()):i instanceof Q&&!(i.parent&&i.parent.data==="nested")&&r.push(i)}),r},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(r,i){var n=this;if(r?(function(){for(var o=n.getTweens(),l=n.data.length,u;l--;)u=n.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(f){return o.splice(o.indexOf(f),1)}));for(o.map(function(f){return{g:f._dur||f._delay||f._sat&&!f._sat.vars.immediateRender?f.globalTime(0):-1/0,t:f}}).sort(function(f,h){return h.g-f.g||-1/0}).forEach(function(f){return f.t.revert(r)}),l=n.data.length;l--;)u=n.data[l],u instanceof at?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof Q)&&u.revert&&u.revert(r);n._r.forEach(function(f){return f(r,n)}),n.isReverted=!0})():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),i)for(var s=Ht.length;s--;)Ht[s].id===this.id&&Ht.splice(s,1)},t.revert=function(r){this.kill(r||{})},a})(),ds=(function(){function a(e){this.contexts=[],this.scope=e,Z&&Z.data.push(this)}var t=a.prototype;return t.add=function(r,i,n){bt(r)||(r={matches:r});var s=new Zi(0,n||this.scope),o=s.conditions={},l,u,f;Z&&!s.selector&&(s.selector=Z.selector),this.contexts.push(s),i=s.add("onMatch",i),s.queries=r;for(u in r)u==="all"?f=1:(l=qt.matchMedia(r[u]),l&&(Ht.indexOf(s)<0&&Ht.push(s),(o[u]=l.matches)&&(f=1),l.addListener?l.addListener(br):l.addEventListener("change",br)));return f&&i(s,function(h){return s.add(null,h)}),this},t.revert=function(r){this.kill(r||{})},t.kill=function(r){this.contexts.forEach(function(i){return i.kill(r,!0)})},a})(),Ze={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(function(i){return bi(i)})},timeline:function(t){return new at(t)},getTweensOf:function(t,e){return z.getTweensOf(t,e)},getProperty:function(t,e,r,i){$(t)&&(t=wt(t)[0]);var n=Zt(t||{}).get,s=r?ai:si;return r==="native"&&(r=""),t&&(e?s((pt[e]&&pt[e].get||n)(t,e,r,i)):function(o,l,u){return s((pt[o]&&pt[o].get||n)(t,o,l,u))})},quickSetter:function(t,e,r){if(t=wt(t),t.length>1){var i=t.map(function(f){return ft.quickSetter(f,e,r)}),n=i.length;return function(f){for(var h=n;h--;)i[h](f)}}t=t[0]||{};var s=pt[e],o=Zt(t),l=o.harness&&(o.harness.aliases||{})[e]||e,u=s?function(f){var h=new s;ie._pt=0,h.init(t,r?f+r:f,ie,0,[t]),h.render(1,h),ie._pt&&wr(1,ie)}:o.set(t,l);return s?u:function(f){return u(t,l,r?f+r:f,o,1)}},quickTo:function(t,e,r){var i,n=ft.to(t,mt((i={},i[e]="+=0.1",i.paused=!0,i.stagger=0,i),r||{})),s=function(l,u,f){return n.resetTo(e,l,u,f)};return s.tween=n,s},isTweening:function(t){return z.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=zt(t.ease,Qt.ease)),oi(Qt,t||{})},config:function(t){return oi(dt,t||{})},registerEffect:function(t){var e=t.name,r=t.effect,i=t.plugins,n=t.defaults,s=t.extendTimeline;(i||"").split(",").forEach(function(o){return o&&!pt[o]&&!_t[o]&&de(e+" effect requires "+o+" plugin.")}),nr[e]=function(o,l,u){return r(wt(o),mt(l||{},n),u)},s&&(at.prototype[e]=function(o,l,u){return this.add(nr[e](o,bt(l)?l:(u=l)&&{},this),u)})},registerEase:function(t,e){P[t]=zt(e)},parseEase:function(t,e){return arguments.length?zt(t,e):P},getById:function(t){return z.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var r=new at(t),i,n;for(r.smoothChildTiming=ot(t.smoothChildTiming),z.remove(r),r._dp=0,r._time=r._tTime=z._time,i=z._first;i;)n=i._next,(e||!(!i._dur&&i instanceof Q&&i.vars.onComplete===i._targets[0]))&&Ct(r,i,i._start-i._delay),i=n;return Ct(z,r,0),r},context:function(t,e){return t?new Zi(t,e):Z},matchMedia:function(t){return new ds(t)},matchMediaRefresh:function(){return Ht.forEach(function(t){var e=t.conditions,r,i;for(i in e)e[i]&&(e[i]=!1,r=1);r&&t.revert()})||br()},addEventListener:function(t,e){var r=Fe[t]||(Fe[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=Fe[t],i=r&&r.indexOf(e);i>=0&&r.splice(i,1)},utils:{wrap:Vn,wrapYoyo:Yn,distribute:mi,random:vi,snap:gi,normalize:Hn,getUnit:nt,clamp:Zn,splitColor:qi,toArray:wt,selector:cr,mapRange:yi,pipe:zn,unitize:Un,interpolate:Xn,shuffle:pi},install:$r,effects:nr,ticker:vt,updateRoot:at.updateRoot,plugins:pt,globalTimeline:z,core:{PropTween:ut,globals:ti,Tween:Q,Timeline:at,Animation:Te,getCache:Zt,_removeLinkedListItem:Me,reverting:function(){return rt},context:function(t){return t&&Z&&(Z.data.push(t),t._ctx=Z),Z},suppressOverwrites:function(t){return Xe=t}}};lt("to,from,fromTo,delayedCall,set,killTweensOf",function(a){return Ze[a]=Q[a]}),vt.add(at.updateRoot),ie=Ze.to({},{duration:0});var _s=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},ps=function(t,e){var r=t._targets,i,n,s;for(i in e)for(n=r.length;n--;)s=t._ptLookup[n][i],s&&(s=s.d)&&(s._pt&&(s=_s(s,i)),s&&s.modifier&&s.modifier(e[i],t,r[n],i))},qr=function(t,e){return{name:t,headless:1,rawVars:1,init:function(i,n,s){s._onInit=function(o){var l,u;if($(n)&&(l={},lt(n,function(f){return l[f]=1}),n=l),e){l={};for(u in n)l[u]=e(n[u]);n=l}ps(o,n)}}}},ft=Ze.registerPlugin({name:"attr",init:function(t,e,r,i,n){var s,o,l;this.tween=r;for(s in e)l=t.getAttribute(s)||"",o=this.add(t,"setAttribute",(l||0)+"",e[s],i,n,0,0,s),o.op=s,o.b=l,this._props.push(s)},render:function(t,e){for(var r=e._pt;r;)rt?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",headless:1,init:function(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r],0,0,0,0,0,1)}},qr("roundProps",hr),qr("modifiers"),qr("snap",gi))||Ze;Q.version=at.version=ft.version="3.13.0",Kr=1,Je()&&ne(),P.Power0,P.Power1,P.Power2,P.Power3,P.Power4,P.Linear,P.Quad,P.Cubic,P.Quart,P.Quint,P.Strong,P.Elastic,P.Back,P.SteppedEase,P.Bounce,P.Sine,P.Expo,P.Circ;/*!
|
|
31
31
|
* CSSPlugin 3.13.0
|
|
32
32
|
* https://gsap.com
|
|
33
33
|
*
|
|
34
34
|
* Copyright 2008-2025, GreenSock. All rights reserved.
|
|
35
35
|
* Subject to the terms at https://gsap.com/standard-license
|
|
36
36
|
* @author: Jack Doyle, jack@greensock.com
|
|
37
|
-
*/var Bi,Dt,se,qr,Vt,zi,Cr,vs=function(){return typeof window<"u"},kt={},Yt=180/Math.PI,ae=Math.PI/180,oe=Math.atan2,Ui=1e8,Or=/([A-Z])/g,xs=/(left|right|width|margin|padding|x)/i,ys=/[\s,\(]\S/,Ot={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Sr=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},ws=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Ts=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},bs=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},Hi=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Vi=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},qs=function(t,e,r){return t.style[e]=r},Cs=function(t,e,r){return t.style.setProperty(e,r)},Os=function(t,e,r){return t._gsap[e]=r},Ss=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},js=function(t,e,r,i,n){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(n,s)},ks=function(t,e,r,i,n){var s=t._gsap;s[e]=r,s.renderTransform(n,s)},U="transform",ct=U+"Origin",Ps=function a(t,e){var r=this,i=this.target,n=i.style,s=i._gsap;if(t in kt&&n){if(this.tfm=this.tfm||{},t!=="transform")t=Ot[t]||t,~t.indexOf(",")?t.split(",").forEach(function(o){return r.tfm[o]=Pt(i,o)}):this.tfm[t]=s.x?s[t]:Pt(i,t),t===ct&&(this.tfm.zOrigin=s.zOrigin);else return Ot.transform.split(",").forEach(function(o){return a.call(r,o,e)});if(this.props.indexOf(U)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(ct,e,"")),t=U}(n||e)&&this.props.push(t,e,n[t])},Yi=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Rs=function(){var t=this.props,e=this.target,r=e.style,i=e._gsap,n,s;for(n=0;n<t.length;n+=3)t[n+1]?t[n+1]===2?e[t[n]](t[n+2]):e[t[n]]=t[n+2]:t[n+2]?r[t[n]]=t[n+2]:r.removeProperty(t[n].substr(0,2)==="--"?t[n]:t[n].replace(Or,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),e.setAttribute("data-svg-origin",this.svgo||"")),n=Cr(),(!n||!n.isStart)&&!r[U]&&(Yi(r),i.zOrigin&&r[ct]&&(r[ct]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Xi=function(t,e){var r={target:t,props:[],revert:Rs,save:Ps};return t._gsap||ft.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(i){return r.save(i)}),r},Wi,jr=function(t,e){var r=Dt.createElementNS?Dt.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Dt.createElement(t);return r&&r.style?r:Dt.createElement(t)},Tt=function a(t,e,r){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace(Or,"-$1").toLowerCase())||i.getPropertyValue(e)||!r&&a(t,le(e)||e,1)||""},Gi="O,Moz,ms,Ms,Webkit".split(","),le=function(t,e,r){var i=e||Vt,n=i.style,s=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);s--&&!(Gi[s]+t in n););return s<0?null:(s===3?"ms":s>=0?Gi[s]:"")+t},kr=function(){vs()&&window.document&&(Bi=window,Dt=Bi.document,se=Dt.documentElement,Vt=jr("div")||{style:{}},jr("div"),U=le(U),ct=U+"Origin",Vt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Wi=!!le("perspective"),Cr=ft.core.reverting,qr=1)},Ji=function(t){var e=t.ownerSVGElement,r=jr("svg",e&&e.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0),n;i.style.display="block",r.appendChild(i),se.appendChild(r);try{n=i.getBBox()}catch{}return r.removeChild(i),se.removeChild(r),n},Qi=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},Ki=function(t){var e,r;try{e=t.getBBox()}catch{e=Ji(t),r=1}return e&&(e.width||e.height)||r||(e=Ji(t)),e&&!e.width&&!e.x&&!e.y?{x:+Qi(t,["x","cx","x1"])||0,y:+Qi(t,["y","cy","y1"])||0,width:0,height:0}:e},$i=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&Ki(t))},Xt=function(t,e){if(e){var r=t.style,i;e in kt&&e!==ct&&(e=U),r.removeProperty?(i=e.substr(0,2),(i==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),r.removeProperty(i==="--"?e:e.replace(Or,"-$1").toLowerCase())):r.removeAttribute(e)}},Lt=function(t,e,r,i,n,s){var o=new ut(t._pt,e,r,0,1,s?Vi:Hi);return t._pt=o,o.b=i,o.e=n,t._props.push(r),o},tn={deg:1,rad:1,turn:1},As={grid:1,flex:1},It=function a(t,e,r,i){var n=parseFloat(r)||0,s=(r+"").trim().substr((n+"").length)||"px",o=Vt.style,l=xs.test(e),u=t.tagName.toLowerCase()==="svg",f=(u?"client":"offset")+(l?"Width":"Height"),h=100,_=i==="px",p=i==="%",m,c,g,x;if(i===s||!n||tn[i]||tn[s])return n;if(s!=="px"&&!_&&(n=a(t,e,r,"px")),x=t.getCTM&&$i(t),(p||s==="%")&&(kt[e]||~e.indexOf("adius")))return m=x?t.getBBox()[l?"width":"height"]:t[f],Y(p?n/m*h:n/100*m);if(o[l?"width":"height"]=h+(_?s:i),c=i!=="rem"&&~e.indexOf("adius")||i==="em"&&t.appendChild&&!u?t:t.parentNode,x&&(c=(t.ownerSVGElement||{}).parentNode),(!c||c===Dt||!c.appendChild)&&(c=Dt.body),g=c._gsap,g&&p&&g.width&&l&&g.time===vt.time&&!g.uncache)return Y(n/g.width*h);if(p&&(e==="height"||e==="width")){var y=t.style[e];t.style[e]=h+i,m=t[f],y?t.style[e]=y:Xt(t,e)}else(p||s==="%")&&!As[Tt(c,"display")]&&(o.position=Tt(t,"position")),c===t&&(o.position="static"),c.appendChild(Vt),m=Vt[f],c.removeChild(Vt),o.position="absolute";return l&&p&&(g=Zt(c),g.time=vt.time,g.width=c[f]),Y(_?m*n/h:m&&n?h/m*n:0)},Pt=function(t,e,r,i){var n;return qr||kr(),e in Ot&&e!=="transform"&&(e=Ot[e],~e.indexOf(",")&&(e=e.split(",")[0])),kt[e]&&e!=="transform"?(n=Ce(t,i),n=e!=="transformOrigin"?n[e]:n.svg?n.origin:Be(Tt(t,ct))+" "+n.zOrigin+"px"):(n=t.style[e],(!n||n==="auto"||i||~(n+"").indexOf("calc("))&&(n=Ze[e]&&Ze[e](t,e,r)||Tt(t,e)||ii(t,e)||(e==="opacity"?1:0))),r&&!~(n+"").trim().indexOf(" ")?It(t,e,n,r)+r:n},Es=function(t,e,r,i){if(!r||r==="none"){var n=le(e,t,1),s=n&&Tt(t,n,1);s&&s!==r?(e=n,r=s):e==="borderColor"&&(r=Tt(t,"borderTopColor"))}var o=new ut(this._pt,t.style,e,0,1,Li),l=0,u=0,f,h,_,p,m,c,g,x,y,T,b,v;if(o.b=r,o.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=Tt(t,i.substring(4,i.indexOf(")")))),i==="auto"&&(c=t.style[e],t.style[e]=i,i=Tt(t,e)||i,c?t.style[e]=c:Xt(t,e)),f=[r,i],Si(f),r=f[0],i=f[1],_=r.match(Kt)||[],v=i.match(Kt)||[],v.length){for(;h=Kt.exec(i);)g=h[0],y=i.substring(l,h.index),m?m=(m+1)%5:(y.substr(-5)==="rgba("||y.substr(-5)==="hsla(")&&(m=1),g!==(c=_[u++]||"")&&(p=parseFloat(c)||0,b=c.substr((p+"").length),g.charAt(1)==="="&&(g=$t(p,g)+b),x=parseFloat(g),T=g.substr((x+"").length),l=Kt.lastIndex-T.length,T||(T=T||dt.units[e]||b,l===i.length&&(i+=T,o.e+=T)),b!==T&&(p=It(t,e,c,T)||0),o._pt={_next:o._pt,p:y||u===1?y:",",s:p,c:x-p,m:m&&m<4||e==="zIndex"?Math.round:0});o.c=l<i.length?i.substring(l,i.length):""}else o.r=e==="display"&&i==="none"?Vi:Hi;return Jr.test(i)&&(o.e=0),this._pt=o,o},en={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Ns=function(t){var e=t.split(" "),r=e[0],i=e[1]||"50%";return(r==="top"||r==="bottom"||i==="left"||i==="right")&&(t=r,r=i,i=t),e[0]=en[r]||r,e[1]=en[i]||i,e.join(" ")},Ms=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r=e.t,i=r.style,n=e.u,s=r._gsap,o,l,u;if(n==="all"||n===!0)i.cssText="",l=1;else for(n=n.split(","),u=n.length;--u>-1;)o=n[u],kt[o]&&(l=1,o=o==="transformOrigin"?ct:U),Xt(r,o);l&&(Xt(r,U),s&&(s.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Ce(r,1),s.uncache=1,Yi(i)))}},Ze={clearProps:function(t,e,r,i,n){if(n.data!=="isFromStart"){var s=t._pt=new ut(t._pt,e,r,0,0,Ms);return s.u=i,s.pr=-10,s.tween=n,t._props.push(r),1}}},qe=[1,0,0,1,0,0],rn={},nn=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},sn=function(t){var e=Tt(t,U);return nn(e)?qe:e.substr(7).match(Gr).map(Y)},Pr=function(t,e){var r=t._gsap||Zt(t),i=t.style,n=sn(t),s,o,l,u;return r.svg&&t.getAttribute("transform")?(l=t.transform.baseVal.consolidate().matrix,n=[l.a,l.b,l.c,l.d,l.e,l.f],n.join(",")==="1,0,0,1,0,0"?qe:n):(n===qe&&!t.offsetParent&&t!==se&&!r.svg&&(l=i.display,i.display="block",s=t.parentNode,(!s||!t.offsetParent&&!t.getBoundingClientRect().width)&&(u=1,o=t.nextElementSibling,se.appendChild(t)),n=sn(t),l?i.display=l:Xt(t,"display"),u&&(o?s.insertBefore(t,o):s?s.appendChild(t):se.removeChild(t))),e&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},Rr=function(t,e,r,i,n,s){var o=t._gsap,l=n||Pr(t,!0),u=o.xOrigin||0,f=o.yOrigin||0,h=o.xOffset||0,_=o.yOffset||0,p=l[0],m=l[1],c=l[2],g=l[3],x=l[4],y=l[5],T=e.split(" "),b=parseFloat(T[0])||0,v=parseFloat(T[1])||0,O,C,S,q;r?l!==qe&&(C=p*g-m*c)&&(S=b*(g/C)+v*(-c/C)+(c*y-g*x)/C,q=b*(-m/C)+v*(p/C)-(p*y-m*x)/C,b=S,v=q):(O=Ki(t),b=O.x+(~T[0].indexOf("%")?b/100*O.width:b),v=O.y+(~(T[1]||T[0]).indexOf("%")?v/100*O.height:v)),i||i!==!1&&o.smooth?(x=b-u,y=v-f,o.xOffset=h+(x*p+y*c)-x,o.yOffset=_+(x*m+y*g)-y):o.xOffset=o.yOffset=0,o.xOrigin=b,o.yOrigin=v,o.smooth=!!i,o.origin=e,o.originIsAbsolute=!!r,t.style[ct]="0px 0px",s&&(Lt(s,o,"xOrigin",u,b),Lt(s,o,"yOrigin",f,v),Lt(s,o,"xOffset",h,o.xOffset),Lt(s,o,"yOffset",_,o.yOffset)),t.setAttribute("data-svg-origin",b+" "+v)},Ce=function(t,e){var r=t._gsap||new Ri(t);if("x"in r&&!e&&!r.uncache)return r;var i=t.style,n=r.scaleX<0,s="px",o="deg",l=getComputedStyle(t),u=Tt(t,ct)||"0",f,h,_,p,m,c,g,x,y,T,b,v,O,C,S,q,k,N,A,D,X,W,H,G,ht,Jt,w,j,E,K,tt,et;return f=h=_=c=g=x=y=T=b=0,p=m=1,r.svg=!!(t.getCTM&&$i(t)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[U]=(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[U]!=="none"?l[U]:"")),i.scale=i.rotate=i.translate="none"),C=Pr(t,r.svg),r.svg&&(r.uncache?(ht=t.getBBox(),u=r.xOrigin-ht.x+"px "+(r.yOrigin-ht.y)+"px",G=""):G=!e&&t.getAttribute("data-svg-origin"),Rr(t,G||u,!!G||r.originIsAbsolute,r.smooth!==!1,C)),v=r.xOrigin||0,O=r.yOrigin||0,C!==qe&&(N=C[0],A=C[1],D=C[2],X=C[3],f=W=C[4],h=H=C[5],C.length===6?(p=Math.sqrt(N*N+A*A),m=Math.sqrt(X*X+D*D),c=N||A?oe(A,N)*Yt:0,y=D||X?oe(D,X)*Yt+c:0,y&&(m*=Math.abs(Math.cos(y*ae))),r.svg&&(f-=v-(v*N+O*D),h-=O-(v*A+O*X))):(et=C[6],K=C[7],w=C[8],j=C[9],E=C[10],tt=C[11],f=C[12],h=C[13],_=C[14],S=oe(et,E),g=S*Yt,S&&(q=Math.cos(-S),k=Math.sin(-S),G=W*q+w*k,ht=H*q+j*k,Jt=et*q+E*k,w=W*-k+w*q,j=H*-k+j*q,E=et*-k+E*q,tt=K*-k+tt*q,W=G,H=ht,et=Jt),S=oe(-D,E),x=S*Yt,S&&(q=Math.cos(-S),k=Math.sin(-S),G=N*q-w*k,ht=A*q-j*k,Jt=D*q-E*k,tt=X*k+tt*q,N=G,A=ht,D=Jt),S=oe(A,N),c=S*Yt,S&&(q=Math.cos(S),k=Math.sin(S),G=N*q+A*k,ht=W*q+H*k,A=A*q-N*k,H=H*q-W*k,N=G,W=ht),g&&Math.abs(g)+Math.abs(c)>359.9&&(g=c=0,x=180-x),p=Y(Math.sqrt(N*N+A*A+D*D)),m=Y(Math.sqrt(H*H+et*et)),S=oe(W,H),y=Math.abs(S)>2e-4?S*Yt:0,b=tt?1/(tt<0?-tt:tt):0),r.svg&&(G=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!nn(Tt(t,U)),G&&t.setAttribute("transform",G))),Math.abs(y)>90&&Math.abs(y)<270&&(n?(p*=-1,y+=c<=0?180:-180,c+=c<=0?180:-180):(m*=-1,y+=y<=0?180:-180)),e=e||r.uncache,r.x=f-((r.xPercent=f&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-f)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+s,r.y=h-((r.yPercent=h&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-h)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+s,r.z=_+s,r.scaleX=Y(p),r.scaleY=Y(m),r.rotation=Y(c)+o,r.rotationX=Y(g)+o,r.rotationY=Y(x)+o,r.skewX=y+o,r.skewY=T+o,r.transformPerspective=b+s,(r.zOrigin=parseFloat(u.split(" ")[2])||!e&&r.zOrigin||0)&&(i[ct]=Be(u)),r.xOffset=r.yOffset=0,r.force3D=dt.force3D,r.renderTransform=r.svg?Ls:Wi?an:Ds,r.uncache=0,r},Be=function(t){return(t=t.split(" "))[0]+" "+t[1]},Ar=function(t,e,r){var i=nt(e);return Y(parseFloat(e)+parseFloat(It(t,"x",r+"px",i)))+i},Ds=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,an(t,e)},Wt="0deg",Oe="0px",Gt=") ",an=function(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,s=r.x,o=r.y,l=r.z,u=r.rotation,f=r.rotationY,h=r.rotationX,_=r.skewX,p=r.skewY,m=r.scaleX,c=r.scaleY,g=r.transformPerspective,x=r.force3D,y=r.target,T=r.zOrigin,b="",v=x==="auto"&&t&&t!==1||x===!0;if(T&&(h!==Wt||f!==Wt)){var O=parseFloat(f)*ae,C=Math.sin(O),S=Math.cos(O),q;O=parseFloat(h)*ae,q=Math.cos(O),s=Ar(y,s,C*q*-T),o=Ar(y,o,-Math.sin(O)*-T),l=Ar(y,l,S*q*-T+T)}g!==Oe&&(b+="perspective("+g+Gt),(i||n)&&(b+="translate("+i+"%, "+n+"%) "),(v||s!==Oe||o!==Oe||l!==Oe)&&(b+=l!==Oe||v?"translate3d("+s+", "+o+", "+l+") ":"translate("+s+", "+o+Gt),u!==Wt&&(b+="rotate("+u+Gt),f!==Wt&&(b+="rotateY("+f+Gt),h!==Wt&&(b+="rotateX("+h+Gt),(_!==Wt||p!==Wt)&&(b+="skew("+_+", "+p+Gt),(m!==1||c!==1)&&(b+="scale("+m+", "+c+Gt),y.style[U]=b||"translate(0, 0)"},Ls=function(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,s=r.x,o=r.y,l=r.rotation,u=r.skewX,f=r.skewY,h=r.scaleX,_=r.scaleY,p=r.target,m=r.xOrigin,c=r.yOrigin,g=r.xOffset,x=r.yOffset,y=r.forceCSS,T=parseFloat(s),b=parseFloat(o),v,O,C,S,q;l=parseFloat(l),u=parseFloat(u),f=parseFloat(f),f&&(f=parseFloat(f),u+=f,l+=f),l||u?(l*=ae,u*=ae,v=Math.cos(l)*h,O=Math.sin(l)*h,C=Math.sin(l-u)*-_,S=Math.cos(l-u)*_,u&&(f*=ae,q=Math.tan(u-f),q=Math.sqrt(1+q*q),C*=q,S*=q,f&&(q=Math.tan(f),q=Math.sqrt(1+q*q),v*=q,O*=q)),v=Y(v),O=Y(O),C=Y(C),S=Y(S)):(v=h,S=_,O=C=0),(T&&!~(s+"").indexOf("px")||b&&!~(o+"").indexOf("px"))&&(T=It(p,"x",s,"px"),b=It(p,"y",o,"px")),(m||c||g||x)&&(T=Y(T+m-(m*v+c*C)+g),b=Y(b+c-(m*O+c*S)+x)),(i||n)&&(q=p.getBBox(),T=Y(T+i/100*q.width),b=Y(b+n/100*q.height)),q="matrix("+v+","+O+","+C+","+S+","+T+","+b+")",p.setAttribute("transform",q),y&&(p.style[U]=q)},Is=function(t,e,r,i,n){var s=360,o=$(n),l=parseFloat(n)*(o&&~n.indexOf("rad")?Yt:1),u=l-i,f=i+u+"deg",h,_;return o&&(h=n.split("_")[1],h==="short"&&(u%=s,u!==u%(s/2)&&(u+=u<0?s:-s)),h==="cw"&&u<0?u=(u+s*Ui)%s-~~(u/s)*s:h==="ccw"&&u>0&&(u=(u-s*Ui)%s-~~(u/s)*s)),t._pt=_=new ut(t._pt,e,r,i,u,ws),_.e=f,_.u="deg",t._props.push(r),_},on=function(t,e){for(var r in e)t[r]=e[r];return t},Fs=function(t,e,r){var i=on({},r._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=r.style,o,l,u,f,h,_,p,m;i.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),s[U]=e,o=Ce(r,1),Xt(r,U),r.setAttribute("transform",u)):(u=getComputedStyle(r)[U],s[U]=e,o=Ce(r,1),s[U]=u);for(l in kt)u=i[l],f=o[l],u!==f&&n.indexOf(l)<0&&(p=nt(u),m=nt(f),h=p!==m?It(r,l,u,m):parseFloat(u),_=parseFloat(f),t._pt=new ut(t._pt,o,l,h,_-h,Sr),t._pt.u=m||0,t._props.push(l));on(o,i)};lt("padding,margin,Width,Radius",function(a,t){var e="Top",r="Right",i="Bottom",n="Left",s=(t<3?[e,r,i,n]:[e+n,e+r,i+r,i+n]).map(function(o){return t<2?a+o:"border"+o+a});Ze[t>1?"border"+a:a]=function(o,l,u,f,h){var _,p;if(arguments.length<4)return _=s.map(function(m){return Pt(o,m,u)}),p=_.join(" "),p.split(_[0]).length===5?_[0]:p;_=(f+"").split(" "),p={},s.forEach(function(m,c){return p[m]=_[c]=_[c]||_[(c-1)/2|0]}),o.init(l,p,h)}});var ln={name:"css",register:kr,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,i,n){var s=this._props,o=t.style,l=r.vars.startAt,u,f,h,_,p,m,c,g,x,y,T,b,v,O,C,S;qr||kr(),this.styles=this.styles||Xi(t),S=this.styles.props,this.tween=r;for(c in e)if(c!=="autoRound"&&(f=e[c],!(pt[c]&&Ai(c,e,r,i,t,n)))){if(p=typeof f,m=Ze[c],p==="function"&&(f=f.call(r,i,t,n),p=typeof f),p==="string"&&~f.indexOf("random(")&&(f=ve(f)),m)m(this,t,c,f,r)&&(C=1);else if(c.substr(0,2)==="--")u=(getComputedStyle(t).getPropertyValue(c)+"").trim(),f+="",Nt.lastIndex=0,Nt.test(u)||(g=nt(u),x=nt(f)),x?g!==x&&(u=It(t,c,u,x)+x):g&&(f+=g),this.add(o,"setProperty",u,f,i,n,0,0,c),s.push(c),S.push(c,0,o[c]);else if(p!=="undefined"){if(l&&c in l?(u=typeof l[c]=="function"?l[c].call(r,i,t,n):l[c],$(u)&&~u.indexOf("random(")&&(u=ve(u)),nt(u+"")||u==="auto"||(u+=dt.units[c]||nt(Pt(t,c))||""),(u+"").charAt(1)==="="&&(u=Pt(t,c))):u=Pt(t,c),_=parseFloat(u),y=p==="string"&&f.charAt(1)==="="&&f.substr(0,2),y&&(f=f.substr(2)),h=parseFloat(f),c in Ot&&(c==="autoAlpha"&&(_===1&&Pt(t,"visibility")==="hidden"&&h&&(_=0),S.push("visibility",0,o.visibility),Lt(this,o,"visibility",_?"inherit":"hidden",h?"inherit":"hidden",!h)),c!=="scale"&&c!=="transform"&&(c=Ot[c],~c.indexOf(",")&&(c=c.split(",")[0]))),T=c in kt,T){if(this.styles.save(c),p==="string"&&f.substring(0,6)==="var(--"&&(f=Tt(t,f.substring(4,f.indexOf(")"))),h=parseFloat(f)),b||(v=t._gsap,v.renderTransform&&!e.parseTransform||Ce(t,e.parseTransform),O=e.smoothOrigin!==!1&&v.smooth,b=this._pt=new ut(this._pt,o,U,0,1,v.renderTransform,v,0,-1),b.dep=1),c==="scale")this._pt=new ut(this._pt,v,"scaleY",v.scaleY,(y?$t(v.scaleY,y+h):h)-v.scaleY||0,Sr),this._pt.u=0,s.push("scaleY",c),c+="X";else if(c==="transformOrigin"){S.push(ct,0,o[ct]),f=Ns(f),v.svg?Rr(t,f,0,O,0,this):(x=parseFloat(f.split(" ")[2])||0,x!==v.zOrigin&&Lt(this,v,"zOrigin",v.zOrigin,x),Lt(this,o,c,Be(u),Be(f)));continue}else if(c==="svgOrigin"){Rr(t,f,1,O,0,this);continue}else if(c in rn){Is(this,v,c,_,y?$t(_,y+f):f);continue}else if(c==="smoothOrigin"){Lt(this,v,"smooth",v.smooth,f);continue}else if(c==="force3D"){v[c]=f;continue}else if(c==="transform"){Fs(this,f,t);continue}}else c in o||(c=le(c)||c);if(T||(h||h===0)&&(_||_===0)&&!ys.test(f)&&c in o)g=(u+"").substr((_+"").length),h||(h=0),x=nt(f)||(c in dt.units?dt.units[c]:g),g!==x&&(_=It(t,c,u,x)),this._pt=new ut(this._pt,T?v:o,c,_,(y?$t(_,y+h):h)-_,!T&&(x==="px"||c==="zIndex")&&e.autoRound!==!1?bs:Sr),this._pt.u=x||0,g!==x&&x!=="%"&&(this._pt.b=u,this._pt.r=Ts);else if(c in o)Es.call(this,t,c,u,y?y+f:f);else if(c in t)this.add(t,c,u||t[c],y?y+f:f,i,n);else if(c!=="parseTransform"){tr(c,f);continue}T||(c in o?S.push(c,0,o[c]):typeof t[c]=="function"?S.push(c,2,t[c]()):S.push(c,1,u||t[c])),s.push(c)}}C&&Ii(this)},render:function(t,e){if(e.tween._time||!Cr())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:Pt,aliases:Ot,getSetter:function(t,e,r){var i=Ot[e];return i&&i.indexOf(",")<0&&(e=i),e in kt&&e!==ct&&(t._gsap.x||Pt(t,"x"))?r&&zi===r?e==="scale"?Ss:Os:(zi=r||{})&&(e==="scale"?js:ks):t.style&&!We(t.style[e])?qs:~e.indexOf("-")?Cs:xr(t,e)},core:{_removeProperty:Xt,_getMatrix:Pr}};ft.utils.checkPrefix=le,ft.core.getStyleSaver=Xi,(function(a,t,e,r){var i=lt(a+","+t+","+e,function(n){kt[n]=1});lt(t,function(n){dt.units[n]="deg",rn[n]=1}),Ot[i[13]]=a+","+t,lt(r,function(n){var s=n.split(":");Ot[s[1]]=i[s[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"),lt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(a){dt.units[a]="px"}),ft.registerPlugin(ln);var ue=ft.registerPlugin(ln)||ft;ue.core.Tween;const ze=(a,t,e,r)=>t&&(Array.isArray(t)?t.length>0:t)?a.to(t,e,r):a,un=(a,t)=>{pn.useGSAP(()=>{const e=ue.timeline({defaults:{duration:.7,ease:"power1.out"}}),r={navbar:a.current,navLabels:ue.utils.toArray(".nav-label"),navIconWrappers:ue.utils.toArray(".nav-icon-wrapper"),navIcons:ue.utils.toArray(".nav-icon"),navLinkItems:ue.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")};t?Zs(e,r):Bs(e,r)},{scope:a,dependencies:[t]})},Zs=(a,t)=>{a.to(t.navbar,{width:"6rem"},.2).to(t.profileUserInfo,{display:"none"},0).to(t.navLinkItems,{justifyContent:"center",alignItems:"center",width:"3rem",height:"3rem",display:"flex"},.1).to(t.navLabels,{opacity:0,width:30,marginLeft:0},0).to(t.navIcons,{scale:.9},0).to(t.navContentWrapper,{backgroundColor:"transparent"},0),ze(a,t.buttonCrevron,{width:0,opacity:0,duration:.7,ease:"power1.out",onComplete:()=>{t.buttonCrevron.style.display="none"}},0),ze(a,t.buttonContentChevron,{display:"none"},0).to(t.separatorProfile,{display:"none"},0).to(t.navLinkItems,{borderRadius:"8px",duration:.7,ease:"power1.out"},.8).to(t.buttonProfile,{height:"3rem",width:"3rem",borderRadius:"50px",margin:0,padding:0,borderTopLeftRadius:"50px",borderTopRightRadius:"50px",borderBottomLeftRadius:"50px",borderBottomRightRadius:"50px",duration:.3,ease:"power2.out",display:"flex",justifyContent:"center",alignItems:"center"},0)},Bs=(a,t)=>{a.to(t.navLinkItems,{borderRadius:"10px",duration:.3},0).to(t.navbar,{width:"20rem"},-1),ze(a,t.buttonCrevron,{width:"auto",opacity:1,duration:0,ease:"power1.out",onComplete:()=>{t.buttonCrevron.style.display="flex"}},0),ze(a,t.buttonContentChevron,{display:"flex"},0).to(t.buttonContentChevron,{display:"flex"},0).to(t.separatorProfile,{display:"flex"},0).to(t.profileUserInfo,{display:"flex"},.3).to(t.buttonProfile,{borderTopLeftRadius:"0.375rem",borderBottomLeftRadius:"0.375rem",borderTopRightRadius:"0",borderBottomRightRadius:"0",duration:0},-1).to(t.navLinkItems,{width:"100%",justifyContent:"flex-start"},.2).to(t.separatorProfile,{display:"flex"},0).to(t.navLabels,{opacity:1,width:"auto",scaleX:1},0).to(t.navIcons,{scale:1},.3)},zs=({user:a,sessions:t,handleLogout:e,handleTokenLogin:r,links:i,isActiveModalNotification:n,handleNotificationClick:s,handleProfileClick:o})=>{const[l,u]=B.useState(!1),{navbarRef:f}=Hr(l);un(f,l);const[h,_]=B.useState(!1),[p,m]=B.useState(!1),{pageLinks:c,utilLinks:g,isLinkActive:x}=Vr(a,i),y=Ue.useNavigate(),T=B.useRef(null);B.useEffect(()=>{const C=S=>{T.current&&!T.current.contains(S.target)&&p&&m(!1)};return p&&document.addEventListener("mousedown",C),()=>{document.removeEventListener("mousedown",C)}},[p,m]),B.useEffect(()=>{l&&_(!1)},[l]);const b=()=>{m(!p)},v=()=>{m(!1),u(!l)},O=()=>{_(l?!1:!h)};return d.jsxs("div",{ref:f,className:`bg-neutral-default-default overflow-hidden h-full flex flex-col border-r border-neutral-strong-default transition-all duration-300 ${l?"w-16":"w-64"}`,children:[d.jsx(zr,{isCollapsed:l,onToggle:v}),d.jsx(Ur,{logoUrl:a?.company_id.logo||"",companyName:a?.company_id.name}),d.jsx("div",{className:"px-3 flex justify-center items-center w-full mb-4",children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),d.jsx(Ve,{links:c,isLinkActive:x}),d.jsx("div",{className:"flex-grow"}),d.jsx(Ve,{links:g,componentBadge:()=>d.jsx(Br,{notificationsCount:0}),onClick:s,isLinkActive:x,activeModal:n}),d.jsx("div",{className:"px-3 flex justify-center items-center w-full mt-4",children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),d.jsx("div",{className:"px-3 py-2",children:d.jsx(He,{sessions:t,user:a,isExpanded:h,showOptions:!0,onProfileClick:l?b:o,onClick:O,onClickLogout:()=>e(a),handleTokenLogin:C=>{r(C),_(!1)}})}),l&&!h&&p&&d.jsx(d.Fragment,{children:d.jsx(Zr,{sessionsShow:t,handleTokenLogin:r,onClickLogout:()=>e(a),menuRef:T,onProfileClick:()=>y("/profile")})})]})},Us=({children:a})=>d.jsxs("div",{className:"flex h-screen w-full",children:[a,d.jsx("main",{className:"w-full h-full overflow-y-auto",children:d.jsx(Ue.Outlet,{})})]}),Hs=(a,t=!0)=>{const e=B.useRef(null);return B.useEffect(()=>{if(!t)return;const r=i=>{e.current&&!e.current.contains(i.target)&&a()};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})}},[a,t]),e};M.Badge=Br,M.Button=Tn,M.CompanyLogo=Ur,M.Icons=Ft,M.Input=qn,M.LayoutGeneric=Us,M.Menu=Zr,M.NavbarCollapseButton=zr,M.NavbarLinks=Ve,M.Sidebar=zs,M.UserProfile=He,M.useClickOutside=Hs,M.useNavbarAnimations=un,M.useNavbarCollapse=Hr,M.useNavbarLinks=Vr,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
|
|
37
|
+
*/var Bi,Dt,se,Cr,Vt,zi,Sr,ms=function(){return typeof window<"u"},kt={},Yt=180/Math.PI,ae=Math.PI/180,oe=Math.atan2,Ui=1e8,Or=/([A-Z])/g,gs=/(left|right|width|margin|padding|x)/i,vs=/[\s,\(]\S/,St={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},jr=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},xs=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},ys=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},ws=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},Hi=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Vi=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},Ts=function(t,e,r){return t.style[e]=r},bs=function(t,e,r){return t.style.setProperty(e,r)},qs=function(t,e,r){return t._gsap[e]=r},Cs=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},Ss=function(t,e,r,i,n){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(n,s)},Os=function(t,e,r,i,n){var s=t._gsap;s[e]=r,s.renderTransform(n,s)},U="transform",ct=U+"Origin",js=function a(t,e){var r=this,i=this.target,n=i.style,s=i._gsap;if(t in kt&&n){if(this.tfm=this.tfm||{},t!=="transform")t=St[t]||t,~t.indexOf(",")?t.split(",").forEach(function(o){return r.tfm[o]=Pt(i,o)}):this.tfm[t]=s.x?s[t]:Pt(i,t),t===ct&&(this.tfm.zOrigin=s.zOrigin);else return St.transform.split(",").forEach(function(o){return a.call(r,o,e)});if(this.props.indexOf(U)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(ct,e,"")),t=U}(n||e)&&this.props.push(t,e,n[t])},Yi=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},ks=function(){var t=this.props,e=this.target,r=e.style,i=e._gsap,n,s;for(n=0;n<t.length;n+=3)t[n+1]?t[n+1]===2?e[t[n]](t[n+2]):e[t[n]]=t[n+2]:t[n+2]?r[t[n]]=t[n+2]:r.removeProperty(t[n].substr(0,2)==="--"?t[n]:t[n].replace(Or,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),e.setAttribute("data-svg-origin",this.svgo||"")),n=Sr(),(!n||!n.isStart)&&!r[U]&&(Yi(r),i.zOrigin&&r[ct]&&(r[ct]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Xi=function(t,e){var r={target:t,props:[],revert:ks,save:js};return t._gsap||ft.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(i){return r.save(i)}),r},Wi,kr=function(t,e){var r=Dt.createElementNS?Dt.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Dt.createElement(t);return r&&r.style?r:Dt.createElement(t)},Tt=function a(t,e,r){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace(Or,"-$1").toLowerCase())||i.getPropertyValue(e)||!r&&a(t,le(e)||e,1)||""},Gi="O,Moz,ms,Ms,Webkit".split(","),le=function(t,e,r){var i=e||Vt,n=i.style,s=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);s--&&!(Gi[s]+t in n););return s<0?null:(s===3?"ms":s>=0?Gi[s]:"")+t},Pr=function(){ms()&&window.document&&(Bi=window,Dt=Bi.document,se=Dt.documentElement,Vt=kr("div")||{style:{}},kr("div"),U=le(U),ct=U+"Origin",Vt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Wi=!!le("perspective"),Sr=ft.core.reverting,Cr=1)},Ji=function(t){var e=t.ownerSVGElement,r=kr("svg",e&&e.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0),n;i.style.display="block",r.appendChild(i),se.appendChild(r);try{n=i.getBBox()}catch{}return r.removeChild(i),se.removeChild(r),n},Qi=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},Ki=function(t){var e,r;try{e=t.getBBox()}catch{e=Ji(t),r=1}return e&&(e.width||e.height)||r||(e=Ji(t)),e&&!e.width&&!e.x&&!e.y?{x:+Qi(t,["x","cx","x1"])||0,y:+Qi(t,["y","cy","y1"])||0,width:0,height:0}:e},$i=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&Ki(t))},Xt=function(t,e){if(e){var r=t.style,i;e in kt&&e!==ct&&(e=U),r.removeProperty?(i=e.substr(0,2),(i==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),r.removeProperty(i==="--"?e:e.replace(Or,"-$1").toLowerCase())):r.removeAttribute(e)}},Lt=function(t,e,r,i,n,s){var o=new ut(t._pt,e,r,0,1,s?Vi:Hi);return t._pt=o,o.b=i,o.e=n,t._props.push(r),o},tn={deg:1,rad:1,turn:1},Ps={grid:1,flex:1},It=function a(t,e,r,i){var n=parseFloat(r)||0,s=(r+"").trim().substr((n+"").length)||"px",o=Vt.style,l=gs.test(e),u=t.tagName.toLowerCase()==="svg",f=(u?"client":"offset")+(l?"Width":"Height"),h=100,_=i==="px",p=i==="%",m,c,g,x;if(i===s||!n||tn[i]||tn[s])return n;if(s!=="px"&&!_&&(n=a(t,e,r,"px")),x=t.getCTM&&$i(t),(p||s==="%")&&(kt[e]||~e.indexOf("adius")))return m=x?t.getBBox()[l?"width":"height"]:t[f],Y(p?n/m*h:n/100*m);if(o[l?"width":"height"]=h+(_?s:i),c=i!=="rem"&&~e.indexOf("adius")||i==="em"&&t.appendChild&&!u?t:t.parentNode,x&&(c=(t.ownerSVGElement||{}).parentNode),(!c||c===Dt||!c.appendChild)&&(c=Dt.body),g=c._gsap,g&&p&&g.width&&l&&g.time===vt.time&&!g.uncache)return Y(n/g.width*h);if(p&&(e==="height"||e==="width")){var y=t.style[e];t.style[e]=h+i,m=t[f],y?t.style[e]=y:Xt(t,e)}else(p||s==="%")&&!Ps[Tt(c,"display")]&&(o.position=Tt(t,"position")),c===t&&(o.position="static"),c.appendChild(Vt),m=Vt[f],c.removeChild(Vt),o.position="absolute";return l&&p&&(g=Zt(c),g.time=vt.time,g.width=c[f]),Y(_?m*n/h:m&&n?h/m*n:0)},Pt=function(t,e,r,i){var n;return Cr||Pr(),e in St&&e!=="transform"&&(e=St[e],~e.indexOf(",")&&(e=e.split(",")[0])),kt[e]&&e!=="transform"?(n=Ce(t,i),n=e!=="transformOrigin"?n[e]:n.svg?n.origin:ze(Tt(t,ct))+" "+n.zOrigin+"px"):(n=t.style[e],(!n||n==="auto"||i||~(n+"").indexOf("calc("))&&(n=Be[e]&&Be[e](t,e,r)||Tt(t,e)||ii(t,e)||(e==="opacity"?1:0))),r&&!~(n+"").trim().indexOf(" ")?It(t,e,n,r)+r:n},Rs=function(t,e,r,i){if(!r||r==="none"){var n=le(e,t,1),s=n&&Tt(t,n,1);s&&s!==r?(e=n,r=s):e==="borderColor"&&(r=Tt(t,"borderTopColor"))}var o=new ut(this._pt,t.style,e,0,1,Li),l=0,u=0,f,h,_,p,m,c,g,x,y,b,T,v;if(o.b=r,o.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=Tt(t,i.substring(4,i.indexOf(")")))),i==="auto"&&(c=t.style[e],t.style[e]=i,i=Tt(t,e)||i,c?t.style[e]=c:Xt(t,e)),f=[r,i],Oi(f),r=f[0],i=f[1],_=r.match(Kt)||[],v=i.match(Kt)||[],v.length){for(;h=Kt.exec(i);)g=h[0],y=i.substring(l,h.index),m?m=(m+1)%5:(y.substr(-5)==="rgba("||y.substr(-5)==="hsla(")&&(m=1),g!==(c=_[u++]||"")&&(p=parseFloat(c)||0,T=c.substr((p+"").length),g.charAt(1)==="="&&(g=$t(p,g)+T),x=parseFloat(g),b=g.substr((x+"").length),l=Kt.lastIndex-b.length,b||(b=b||dt.units[e]||T,l===i.length&&(i+=b,o.e+=b)),T!==b&&(p=It(t,e,c,b)||0),o._pt={_next:o._pt,p:y||u===1?y:",",s:p,c:x-p,m:m&&m<4||e==="zIndex"?Math.round:0});o.c=l<i.length?i.substring(l,i.length):""}else o.r=e==="display"&&i==="none"?Vi:Hi;return Jr.test(i)&&(o.e=0),this._pt=o,o},en={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},As=function(t){var e=t.split(" "),r=e[0],i=e[1]||"50%";return(r==="top"||r==="bottom"||i==="left"||i==="right")&&(t=r,r=i,i=t),e[0]=en[r]||r,e[1]=en[i]||i,e.join(" ")},Es=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r=e.t,i=r.style,n=e.u,s=r._gsap,o,l,u;if(n==="all"||n===!0)i.cssText="",l=1;else for(n=n.split(","),u=n.length;--u>-1;)o=n[u],kt[o]&&(l=1,o=o==="transformOrigin"?ct:U),Xt(r,o);l&&(Xt(r,U),s&&(s.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Ce(r,1),s.uncache=1,Yi(i)))}},Be={clearProps:function(t,e,r,i,n){if(n.data!=="isFromStart"){var s=t._pt=new ut(t._pt,e,r,0,0,Es);return s.u=i,s.pr=-10,s.tween=n,t._props.push(r),1}}},qe=[1,0,0,1,0,0],rn={},nn=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},sn=function(t){var e=Tt(t,U);return nn(e)?qe:e.substr(7).match(Gr).map(Y)},Rr=function(t,e){var r=t._gsap||Zt(t),i=t.style,n=sn(t),s,o,l,u;return r.svg&&t.getAttribute("transform")?(l=t.transform.baseVal.consolidate().matrix,n=[l.a,l.b,l.c,l.d,l.e,l.f],n.join(",")==="1,0,0,1,0,0"?qe:n):(n===qe&&!t.offsetParent&&t!==se&&!r.svg&&(l=i.display,i.display="block",s=t.parentNode,(!s||!t.offsetParent&&!t.getBoundingClientRect().width)&&(u=1,o=t.nextElementSibling,se.appendChild(t)),n=sn(t),l?i.display=l:Xt(t,"display"),u&&(o?s.insertBefore(t,o):s?s.appendChild(t):se.removeChild(t))),e&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},Ar=function(t,e,r,i,n,s){var o=t._gsap,l=n||Rr(t,!0),u=o.xOrigin||0,f=o.yOrigin||0,h=o.xOffset||0,_=o.yOffset||0,p=l[0],m=l[1],c=l[2],g=l[3],x=l[4],y=l[5],b=e.split(" "),T=parseFloat(b[0])||0,v=parseFloat(b[1])||0,S,C,O,q;r?l!==qe&&(C=p*g-m*c)&&(O=T*(g/C)+v*(-c/C)+(c*y-g*x)/C,q=T*(-m/C)+v*(p/C)-(p*y-m*x)/C,T=O,v=q):(S=Ki(t),T=S.x+(~b[0].indexOf("%")?T/100*S.width:T),v=S.y+(~(b[1]||b[0]).indexOf("%")?v/100*S.height:v)),i||i!==!1&&o.smooth?(x=T-u,y=v-f,o.xOffset=h+(x*p+y*c)-x,o.yOffset=_+(x*m+y*g)-y):o.xOffset=o.yOffset=0,o.xOrigin=T,o.yOrigin=v,o.smooth=!!i,o.origin=e,o.originIsAbsolute=!!r,t.style[ct]="0px 0px",s&&(Lt(s,o,"xOrigin",u,T),Lt(s,o,"yOrigin",f,v),Lt(s,o,"xOffset",h,o.xOffset),Lt(s,o,"yOffset",_,o.yOffset)),t.setAttribute("data-svg-origin",T+" "+v)},Ce=function(t,e){var r=t._gsap||new Ri(t);if("x"in r&&!e&&!r.uncache)return r;var i=t.style,n=r.scaleX<0,s="px",o="deg",l=getComputedStyle(t),u=Tt(t,ct)||"0",f,h,_,p,m,c,g,x,y,b,T,v,S,C,O,q,k,N,A,D,X,W,H,G,ht,Jt,w,j,E,K,tt,et;return f=h=_=c=g=x=y=b=T=0,p=m=1,r.svg=!!(t.getCTM&&$i(t)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[U]=(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[U]!=="none"?l[U]:"")),i.scale=i.rotate=i.translate="none"),C=Rr(t,r.svg),r.svg&&(r.uncache?(ht=t.getBBox(),u=r.xOrigin-ht.x+"px "+(r.yOrigin-ht.y)+"px",G=""):G=!e&&t.getAttribute("data-svg-origin"),Ar(t,G||u,!!G||r.originIsAbsolute,r.smooth!==!1,C)),v=r.xOrigin||0,S=r.yOrigin||0,C!==qe&&(N=C[0],A=C[1],D=C[2],X=C[3],f=W=C[4],h=H=C[5],C.length===6?(p=Math.sqrt(N*N+A*A),m=Math.sqrt(X*X+D*D),c=N||A?oe(A,N)*Yt:0,y=D||X?oe(D,X)*Yt+c:0,y&&(m*=Math.abs(Math.cos(y*ae))),r.svg&&(f-=v-(v*N+S*D),h-=S-(v*A+S*X))):(et=C[6],K=C[7],w=C[8],j=C[9],E=C[10],tt=C[11],f=C[12],h=C[13],_=C[14],O=oe(et,E),g=O*Yt,O&&(q=Math.cos(-O),k=Math.sin(-O),G=W*q+w*k,ht=H*q+j*k,Jt=et*q+E*k,w=W*-k+w*q,j=H*-k+j*q,E=et*-k+E*q,tt=K*-k+tt*q,W=G,H=ht,et=Jt),O=oe(-D,E),x=O*Yt,O&&(q=Math.cos(-O),k=Math.sin(-O),G=N*q-w*k,ht=A*q-j*k,Jt=D*q-E*k,tt=X*k+tt*q,N=G,A=ht,D=Jt),O=oe(A,N),c=O*Yt,O&&(q=Math.cos(O),k=Math.sin(O),G=N*q+A*k,ht=W*q+H*k,A=A*q-N*k,H=H*q-W*k,N=G,W=ht),g&&Math.abs(g)+Math.abs(c)>359.9&&(g=c=0,x=180-x),p=Y(Math.sqrt(N*N+A*A+D*D)),m=Y(Math.sqrt(H*H+et*et)),O=oe(W,H),y=Math.abs(O)>2e-4?O*Yt:0,T=tt?1/(tt<0?-tt:tt):0),r.svg&&(G=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!nn(Tt(t,U)),G&&t.setAttribute("transform",G))),Math.abs(y)>90&&Math.abs(y)<270&&(n?(p*=-1,y+=c<=0?180:-180,c+=c<=0?180:-180):(m*=-1,y+=y<=0?180:-180)),e=e||r.uncache,r.x=f-((r.xPercent=f&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-f)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+s,r.y=h-((r.yPercent=h&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-h)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+s,r.z=_+s,r.scaleX=Y(p),r.scaleY=Y(m),r.rotation=Y(c)+o,r.rotationX=Y(g)+o,r.rotationY=Y(x)+o,r.skewX=y+o,r.skewY=b+o,r.transformPerspective=T+s,(r.zOrigin=parseFloat(u.split(" ")[2])||!e&&r.zOrigin||0)&&(i[ct]=ze(u)),r.xOffset=r.yOffset=0,r.force3D=dt.force3D,r.renderTransform=r.svg?Ms:Wi?an:Ns,r.uncache=0,r},ze=function(t){return(t=t.split(" "))[0]+" "+t[1]},Er=function(t,e,r){var i=nt(e);return Y(parseFloat(e)+parseFloat(It(t,"x",r+"px",i)))+i},Ns=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,an(t,e)},Wt="0deg",Se="0px",Gt=") ",an=function(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,s=r.x,o=r.y,l=r.z,u=r.rotation,f=r.rotationY,h=r.rotationX,_=r.skewX,p=r.skewY,m=r.scaleX,c=r.scaleY,g=r.transformPerspective,x=r.force3D,y=r.target,b=r.zOrigin,T="",v=x==="auto"&&t&&t!==1||x===!0;if(b&&(h!==Wt||f!==Wt)){var S=parseFloat(f)*ae,C=Math.sin(S),O=Math.cos(S),q;S=parseFloat(h)*ae,q=Math.cos(S),s=Er(y,s,C*q*-b),o=Er(y,o,-Math.sin(S)*-b),l=Er(y,l,O*q*-b+b)}g!==Se&&(T+="perspective("+g+Gt),(i||n)&&(T+="translate("+i+"%, "+n+"%) "),(v||s!==Se||o!==Se||l!==Se)&&(T+=l!==Se||v?"translate3d("+s+", "+o+", "+l+") ":"translate("+s+", "+o+Gt),u!==Wt&&(T+="rotate("+u+Gt),f!==Wt&&(T+="rotateY("+f+Gt),h!==Wt&&(T+="rotateX("+h+Gt),(_!==Wt||p!==Wt)&&(T+="skew("+_+", "+p+Gt),(m!==1||c!==1)&&(T+="scale("+m+", "+c+Gt),y.style[U]=T||"translate(0, 0)"},Ms=function(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,s=r.x,o=r.y,l=r.rotation,u=r.skewX,f=r.skewY,h=r.scaleX,_=r.scaleY,p=r.target,m=r.xOrigin,c=r.yOrigin,g=r.xOffset,x=r.yOffset,y=r.forceCSS,b=parseFloat(s),T=parseFloat(o),v,S,C,O,q;l=parseFloat(l),u=parseFloat(u),f=parseFloat(f),f&&(f=parseFloat(f),u+=f,l+=f),l||u?(l*=ae,u*=ae,v=Math.cos(l)*h,S=Math.sin(l)*h,C=Math.sin(l-u)*-_,O=Math.cos(l-u)*_,u&&(f*=ae,q=Math.tan(u-f),q=Math.sqrt(1+q*q),C*=q,O*=q,f&&(q=Math.tan(f),q=Math.sqrt(1+q*q),v*=q,S*=q)),v=Y(v),S=Y(S),C=Y(C),O=Y(O)):(v=h,O=_,S=C=0),(b&&!~(s+"").indexOf("px")||T&&!~(o+"").indexOf("px"))&&(b=It(p,"x",s,"px"),T=It(p,"y",o,"px")),(m||c||g||x)&&(b=Y(b+m-(m*v+c*C)+g),T=Y(T+c-(m*S+c*O)+x)),(i||n)&&(q=p.getBBox(),b=Y(b+i/100*q.width),T=Y(T+n/100*q.height)),q="matrix("+v+","+S+","+C+","+O+","+b+","+T+")",p.setAttribute("transform",q),y&&(p.style[U]=q)},Ds=function(t,e,r,i,n){var s=360,o=$(n),l=parseFloat(n)*(o&&~n.indexOf("rad")?Yt:1),u=l-i,f=i+u+"deg",h,_;return o&&(h=n.split("_")[1],h==="short"&&(u%=s,u!==u%(s/2)&&(u+=u<0?s:-s)),h==="cw"&&u<0?u=(u+s*Ui)%s-~~(u/s)*s:h==="ccw"&&u>0&&(u=(u-s*Ui)%s-~~(u/s)*s)),t._pt=_=new ut(t._pt,e,r,i,u,xs),_.e=f,_.u="deg",t._props.push(r),_},on=function(t,e){for(var r in e)t[r]=e[r];return t},Ls=function(t,e,r){var i=on({},r._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=r.style,o,l,u,f,h,_,p,m;i.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),s[U]=e,o=Ce(r,1),Xt(r,U),r.setAttribute("transform",u)):(u=getComputedStyle(r)[U],s[U]=e,o=Ce(r,1),s[U]=u);for(l in kt)u=i[l],f=o[l],u!==f&&n.indexOf(l)<0&&(p=nt(u),m=nt(f),h=p!==m?It(r,l,u,m):parseFloat(u),_=parseFloat(f),t._pt=new ut(t._pt,o,l,h,_-h,jr),t._pt.u=m||0,t._props.push(l));on(o,i)};lt("padding,margin,Width,Radius",function(a,t){var e="Top",r="Right",i="Bottom",n="Left",s=(t<3?[e,r,i,n]:[e+n,e+r,i+r,i+n]).map(function(o){return t<2?a+o:"border"+o+a});Be[t>1?"border"+a:a]=function(o,l,u,f,h){var _,p;if(arguments.length<4)return _=s.map(function(m){return Pt(o,m,u)}),p=_.join(" "),p.split(_[0]).length===5?_[0]:p;_=(f+"").split(" "),p={},s.forEach(function(m,c){return p[m]=_[c]=_[c]||_[(c-1)/2|0]}),o.init(l,p,h)}});var ln={name:"css",register:Pr,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,i,n){var s=this._props,o=t.style,l=r.vars.startAt,u,f,h,_,p,m,c,g,x,y,b,T,v,S,C,O;Cr||Pr(),this.styles=this.styles||Xi(t),O=this.styles.props,this.tween=r;for(c in e)if(c!=="autoRound"&&(f=e[c],!(pt[c]&&Ai(c,e,r,i,t,n)))){if(p=typeof f,m=Be[c],p==="function"&&(f=f.call(r,i,t,n),p=typeof f),p==="string"&&~f.indexOf("random(")&&(f=ve(f)),m)m(this,t,c,f,r)&&(C=1);else if(c.substr(0,2)==="--")u=(getComputedStyle(t).getPropertyValue(c)+"").trim(),f+="",Nt.lastIndex=0,Nt.test(u)||(g=nt(u),x=nt(f)),x?g!==x&&(u=It(t,c,u,x)+x):g&&(f+=g),this.add(o,"setProperty",u,f,i,n,0,0,c),s.push(c),O.push(c,0,o[c]);else if(p!=="undefined"){if(l&&c in l?(u=typeof l[c]=="function"?l[c].call(r,i,t,n):l[c],$(u)&&~u.indexOf("random(")&&(u=ve(u)),nt(u+"")||u==="auto"||(u+=dt.units[c]||nt(Pt(t,c))||""),(u+"").charAt(1)==="="&&(u=Pt(t,c))):u=Pt(t,c),_=parseFloat(u),y=p==="string"&&f.charAt(1)==="="&&f.substr(0,2),y&&(f=f.substr(2)),h=parseFloat(f),c in St&&(c==="autoAlpha"&&(_===1&&Pt(t,"visibility")==="hidden"&&h&&(_=0),O.push("visibility",0,o.visibility),Lt(this,o,"visibility",_?"inherit":"hidden",h?"inherit":"hidden",!h)),c!=="scale"&&c!=="transform"&&(c=St[c],~c.indexOf(",")&&(c=c.split(",")[0]))),b=c in kt,b){if(this.styles.save(c),p==="string"&&f.substring(0,6)==="var(--"&&(f=Tt(t,f.substring(4,f.indexOf(")"))),h=parseFloat(f)),T||(v=t._gsap,v.renderTransform&&!e.parseTransform||Ce(t,e.parseTransform),S=e.smoothOrigin!==!1&&v.smooth,T=this._pt=new ut(this._pt,o,U,0,1,v.renderTransform,v,0,-1),T.dep=1),c==="scale")this._pt=new ut(this._pt,v,"scaleY",v.scaleY,(y?$t(v.scaleY,y+h):h)-v.scaleY||0,jr),this._pt.u=0,s.push("scaleY",c),c+="X";else if(c==="transformOrigin"){O.push(ct,0,o[ct]),f=As(f),v.svg?Ar(t,f,0,S,0,this):(x=parseFloat(f.split(" ")[2])||0,x!==v.zOrigin&&Lt(this,v,"zOrigin",v.zOrigin,x),Lt(this,o,c,ze(u),ze(f)));continue}else if(c==="svgOrigin"){Ar(t,f,1,S,0,this);continue}else if(c in rn){Ds(this,v,c,_,y?$t(_,y+f):f);continue}else if(c==="smoothOrigin"){Lt(this,v,"smooth",v.smooth,f);continue}else if(c==="force3D"){v[c]=f;continue}else if(c==="transform"){Ls(this,f,t);continue}}else c in o||(c=le(c)||c);if(b||(h||h===0)&&(_||_===0)&&!vs.test(f)&&c in o)g=(u+"").substr((_+"").length),h||(h=0),x=nt(f)||(c in dt.units?dt.units[c]:g),g!==x&&(_=It(t,c,u,x)),this._pt=new ut(this._pt,b?v:o,c,_,(y?$t(_,y+h):h)-_,!b&&(x==="px"||c==="zIndex")&&e.autoRound!==!1?ws:jr),this._pt.u=x||0,g!==x&&x!=="%"&&(this._pt.b=u,this._pt.r=ys);else if(c in o)Rs.call(this,t,c,u,y?y+f:f);else if(c in t)this.add(t,c,u||t[c],y?y+f:f,i,n);else if(c!=="parseTransform"){er(c,f);continue}b||(c in o?O.push(c,0,o[c]):typeof t[c]=="function"?O.push(c,2,t[c]()):O.push(c,1,u||t[c])),s.push(c)}}C&&Ii(this)},render:function(t,e){if(e.tween._time||!Sr())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:Pt,aliases:St,getSetter:function(t,e,r){var i=St[e];return i&&i.indexOf(",")<0&&(e=i),e in kt&&e!==ct&&(t._gsap.x||Pt(t,"x"))?r&&zi===r?e==="scale"?Cs:qs:(zi=r||{})&&(e==="scale"?Ss:Os):t.style&&!Ge(t.style[e])?Ts:~e.indexOf("-")?bs:yr(t,e)},core:{_removeProperty:Xt,_getMatrix:Rr}};ft.utils.checkPrefix=le,ft.core.getStyleSaver=Xi,(function(a,t,e,r){var i=lt(a+","+t+","+e,function(n){kt[n]=1});lt(t,function(n){dt.units[n]="deg",rn[n]=1}),St[i[13]]=a+","+t,lt(r,function(n){var s=n.split(":");St[s[1]]=i[s[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"),lt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(a){dt.units[a]="px"}),ft.registerPlugin(ln);var ue=ft.registerPlugin(ln)||ft;ue.core.Tween;const Ue=(a,t,e,r)=>t&&(Array.isArray(t)?t.length>0:t)?a.to(t,e,r):a,un=(a,t)=>{_n.useGSAP(()=>{const e=ue.timeline({defaults:{duration:.7,ease:"power1.out"}}),r={navbar:a.current,navLabels:ue.utils.toArray(".nav-label"),navIconWrappers:ue.utils.toArray(".nav-icon-wrapper"),navIcons:ue.utils.toArray(".nav-icon"),navLinkItems:ue.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")};t?Is(e,r):Fs(e,r)},{scope:a,dependencies:[t]})},Is=(a,t)=>{a.to(t.navbar,{width:"6rem"},.2).to(t.profileUserInfo,{display:"none"},0).to(t.navLinkItems,{justifyContent:"center",alignItems:"center",width:"3rem",height:"3rem",display:"flex"},.1).to(t.navLabels,{opacity:0,width:30,marginLeft:0},0).to(t.navIcons,{scale:.9},0).to(t.navContentWrapper,{backgroundColor:"transparent"},0),Ue(a,t.buttonCrevron,{width:0,opacity:0,duration:.7,ease:"power1.out",onComplete:()=>{t.buttonCrevron.style.display="none"}},0),Ue(a,t.buttonContentChevron,{display:"none"},0).to(t.separatorProfile,{display:"none"},0).to(t.navLinkItems,{borderRadius:"8px",duration:.7,ease:"power1.out"},.8).to(t.buttonProfile,{height:"3rem",width:"3rem",borderRadius:"50px",margin:0,padding:0,borderTopLeftRadius:"50px",borderTopRightRadius:"50px",borderBottomLeftRadius:"50px",borderBottomRightRadius:"50px",duration:.3,ease:"power2.out",display:"flex",justifyContent:"center",alignItems:"center"},0)},Fs=(a,t)=>{a.to(t.navLinkItems,{borderRadius:"10px",duration:.3},0).to(t.navbar,{width:"20rem"},-1),Ue(a,t.buttonCrevron,{width:"auto",opacity:1,duration:0,ease:"power1.out",onComplete:()=>{t.buttonCrevron.style.display="flex"}},0),Ue(a,t.buttonContentChevron,{display:"flex"},0).to(t.buttonContentChevron,{display:"flex"},0).to(t.separatorProfile,{display:"flex"},0).to(t.profileUserInfo,{display:"flex"},.3).to(t.buttonProfile,{borderTopLeftRadius:"0.375rem",borderBottomLeftRadius:"0.375rem",borderTopRightRadius:"0",borderBottomRightRadius:"0",duration:0},-1).to(t.navLinkItems,{width:"100%",justifyContent:"flex-start"},.2).to(t.separatorProfile,{display:"flex"},0).to(t.navLabels,{opacity:1,width:"auto",scaleX:1},0).to(t.navIcons,{scale:1},.3)},Zs=({user:a,sessions:t,handleLogout:e,handleTokenLogin:r,links:i,isActiveModalNotification:n,handleNotificationClick:s,handleProfileClick:o})=>{const[l,u]=B.useState(!1),{navbarRef:f}=Hr(l);un(f,l);const[h,_]=B.useState(!1),[p,m]=B.useState(!1),{pageLinks:c,utilLinks:g,isLinkActive:x}=Vr(a,i),y=Oe.useNavigate(),b=B.useRef(null);B.useEffect(()=>{const C=O=>{b.current&&!b.current.contains(O.target)&&p&&m(!1)};return p&&document.addEventListener("mousedown",C),()=>{document.removeEventListener("mousedown",C)}},[p,m]),B.useEffect(()=>{l&&_(!1)},[l]);const T=()=>{m(!p)},v=()=>{m(!1),u(!l)},S=()=>{_(l?!1:!h)};return d.jsxs("div",{ref:f,className:`bg-neutral-default-default overflow-hidden h-full flex flex-col border-r border-neutral-strong-default transition-all duration-300 ${l?"w-16":"w-64"}`,children:[d.jsx(zr,{isCollapsed:l,onToggle:v}),d.jsx(Ur,{logoUrl:a?.company_id.logo||"",companyName:a?.company_id.name}),d.jsx("div",{className:"px-3 flex justify-center items-center w-full mb-4",children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),d.jsx(Ye,{links:c,isLinkActive:x,componentBadge:C=>d.jsx(Ve,{notificationsCount:C||0})}),d.jsx("div",{className:"flex-grow"}),d.jsx(Ye,{links:g,componentBadge:C=>d.jsx(Ve,{notificationsCount:C||0}),onClick:s,isLinkActive:x,activeModal:n}),d.jsx("div",{className:"px-3 flex justify-center items-center w-full mt-4",children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),d.jsx("div",{className:"px-3 py-2",children:d.jsx(He,{sessions:t,user:a,isExpanded:h,showOptions:!0,onProfileClick:l?T:o,onClick:S,onClickLogout:()=>e(a),handleTokenLogin:C=>{r(C),_(!1)}})}),l&&!h&&p&&d.jsx(d.Fragment,{children:d.jsx(Br,{sessionsShow:t,handleTokenLogin:r,onClickLogout:()=>e(a),menuRef:b,onProfileClick:()=>y("/profile")})})]})},Bs=({children:a})=>d.jsxs("div",{className:"flex h-screen w-full",children:[a,d.jsx("main",{className:"w-full h-full overflow-y-auto",children:d.jsx(Oe.Outlet,{})})]}),zs=(a,t=!0)=>{const e=B.useRef(null);return B.useEffect(()=>{if(!t)return;const r=i=>{e.current&&!e.current.contains(i.target)&&a()};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})}},[a,t]),e};M.Badge=Ve,M.Button=yn,M.CompanyLogo=Ur,M.Icons=Ft,M.Input=Tn,M.LayoutGeneric=Bs,M.Menu=Br,M.NavbarCollapseButton=zr,M.NavbarLinks=Ye,M.Sidebar=Zs,M.UserProfile=He,M.useClickOutside=zs,M.useNavbarAnimations=un,M.useNavbarCollapse=Hr,M.useNavbarLinks=Vr,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
|