prometeo-design-system 1.2.7 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Layout/LayoutGeneric.d.ts +2 -3
- package/dist/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/index.d.ts +10 -5
- package/dist/prometeo-design-system.css +1 -1
- package/dist/prometeo-design-system.es.js +5604 -2703
- package/dist/prometeo-design-system.umd.js +38 -15
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function($,A){typeof exports=="object"&&typeof module<"u"?A(exports,require("react"),require("boring-avatars"),require("clsx"),require("tailwind-merge"),require("framer-motion"),require("formik"),require("use-debounce"),require("react-router-dom"),require("@gsap/react")):typeof define=="function"&&define.amd?define(["exports","react","boring-avatars","clsx","tailwind-merge","framer-motion","formik","use-debounce","react-router-dom","@gsap/react"],A):($=typeof globalThis<"u"?globalThis:$||self,A($.PrometeoDesignSystem={},$.React,$.BoringAvatars,$.clsx,$.tailwindMerge,$.FramerMotion,$.Formik,$.useDebounce,$.ReactRouterDOM,$.GSAPReact))})(this,(function($,A,uo,Qn,fo,Q,ri,mo,ho,er){"use strict";function vo(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const se=vo(A);function tr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ai={exports:{}},Ft={};/**
|
|
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 ir;function xo(){if(ir)return Ft;ir=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(i,r,a){var o=null;if(a!==void 0&&(o=""+a),r.key!==void 0&&(o=""+r.key),"key"in r){a={};for(var s in r)s!=="key"&&(a[s]=r[s])}else a=r;return r=a.ref,{$$typeof:n,type:i,key:o,ref:r!==void 0?r:null,props:a}}return Ft.Fragment=e,Ft.jsx=t,Ft.jsxs=t,Ft}var zt={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,35 +14,58 @@
|
|
|
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 nr;function go(){return nr||(nr=1,process.env.NODE_ENV!=="production"&&(function(){function n(v){if(v==null)return null;if(typeof v=="function")return v.$$typeof===Z?null:v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case f:return"Fragment";case y:return"Profiler";case x:return"StrictMode";case g:return"Suspense";case k:return"SuspenseList";case O:return"Activity"}if(typeof v=="object")switch(typeof v.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),v.$$typeof){case _:return"Portal";case w:return(v.displayName||"Context")+".Provider";case b:return(v._context.displayName||"Context")+".Consumer";case T:var j=v.render;return v=v.displayName,v||(v=j.displayName||j.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case S:return j=v.displayName||null,j!==null?j:n(v.type)||"Memo";case C:j=v._payload,v=v._init;try{return n(v(j))}catch{}}return null}function e(v){return""+v}function t(v){try{e(v);var j=!1}catch{j=!0}if(j){j=console;var P=j.error,F=typeof Symbol=="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return P.call(j,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",F),e(v)}}function i(v){if(v===f)return"<>";if(typeof v=="object"&&v!==null&&v.$$typeof===C)return"<...>";try{var j=n(v);return j?"<"+j+">":"<...>"}catch{return"<...>"}}function r(){var v=H.A;return v===null?null:v.getOwner()}function a(){return Error("react-stack-top-frame")}function o(v){if(U.call(v,"key")){var j=Object.getOwnPropertyDescriptor(v,"key").get;if(j&&j.isReactWarning)return!1}return v.key!==void 0}function s(v,j){function P(){Y||(Y=!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))}P.isReactWarning=!0,Object.defineProperty(v,"key",{get:P,configurable:!0})}function l(){var v=n(this.type);return X[v]||(X[v]=!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.")),v=this.props.ref,v!==void 0?v:null}function c(v,j,P,F,N,q,R,I){return P=q.ref,v={$$typeof:h,type:v,key:j,props:q,_owner:N},(P!==void 0?P:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:l}):Object.defineProperty(v,"ref",{enumerable:!1,value:null}),v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(v,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(v,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:R}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:I}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function p(v,j,P,F,N,q,R,I){var z=j.children;if(z!==void 0)if(F)if(V(z)){for(F=0;F<z.length;F++)d(z[F]);Object.freeze&&Object.freeze(z)}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 d(z);if(U.call(j,"key")){z=n(v);var G=Object.keys(j).filter(function(me){return me!=="key"});F=0<G.length?"{key: someKey, "+G.join(": ..., ")+": ...}":"{key: someKey}",ee[z+F]||(G=0<G.length?"{"+G.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} />`,Q,ae,_t,ae),fe[ae+Q]=!0)}if(ae=null,Z!==void 0&&(t(Z),ae=""+Z),a(k)&&(t(k.key),ae=""+k.key),"key"in k){Z={};for(var Gr in k)Gr!=="key"&&(Z[Gr]=k[Gr])}else Z=k;return ae&&o(Z,typeof w=="function"?w.displayName||w.name||"Unknown":w),u(w,ae,P,te,n(),Z,re,ke)}function f(w){typeof w=="object"&&w!==null&&w.$$typeof===m&&w._store&&(w._store.validated=1)}var p=E,m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),b=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),M=Symbol.for("react.client.reference"),R=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.prototype.hasOwnProperty,F=Array.isArray,z=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(w){return w()}};var H,V={},U=p.react_stack_bottom_frame.bind(p,s)(),se=z(r(s)),fe={};vt.Fragment=h,vt.jsx=function(w,k,Z,Q,te){var P=1e4>R.recentlyCreatedOwnerStacks++;return c(w,k,Z,!1,Q,te,P?Error("react-stack-top-frame"):U,P?z(r(w)):se)},vt.jsxs=function(w,k,Z,Q,te){var P=1e4>R.recentlyCreatedOwnerStacks++;return c(w,k,Z,!0,Q,te,P?Error("react-stack-top-frame"):U,P?z(r(w)):se)}})()),vt}var tn;function Mi(){return tn||(tn=1,process.env.NODE_ENV==="production"?Dt.exports=Ni():Dt.exports=Ei()),Dt.exports}var d=Mi();function rn({profileImage:i,size:e,sizeImage:t=36}){const[r,n]=E.useState(!1),s=i&&i.trim()!==""&&!r;return d.jsx(d.Fragment,{children:s?d.jsx("img",{onError:()=>{n(!0)},src:i,style:{width:t,height:t},className:"rounded-full object-cover",alt:"Profile"}):d.jsx(Ci,{size:e,name:i||"User",variant:"beam",colors:["#92A1C6","#146A7C","#F0AB3D","#C271B4","#C20D90"]})})}function S(...i){return Oi.twMerge(Jr.clsx(i))}const nn=i=>typeof i=="boolean"?`${i}`:i===0?"0":i,sn=Jr.clsx,Ai=((i,e)=>t=>{var r;if(e?.variants==null)return sn(i,t?.class,t?.className);const{variants:n,defaultVariants:s}=e,a=Object.keys(n).map(u=>{const c=t?.[u],f=s?.[u];if(c===null)return null;const p=nn(c)||nn(f);return n[u][p]}),o=t&&Object.entries(t).reduce((u,c)=>{let[f,p]=c;return p===void 0||(u[f]=p),u},{}),l=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:p,...m}=c;return Object.entries(m).every(g=>{let[h,_]=g;return Array.isArray(_)?_.includes({...s,...o}[h]):{...s,...o}[h]===_})?[...u,f,p]:u},[]);return sn(i,a,l,t?.class,t?.className)})("flex items-center justify-center cursor-pointer focus:outline-none font-semibold rounded-md transition-colors",{variants:{variant:{filled:"",outline:"bg-transparent border-1",text:"bg-transparent border-0"},color:{primary:"",secondary:""},size:{small:"h-[40px] min-w-[123px] w-fit px-2 py-3 text-sm",medium:"h-[48px] min-w-[134px] w-fit px-2 py-3 text-base",large:"h-[56px] min-w-[145px] w-fit px-4 py-3 text-base"},disabled:{true:"opacity-50 cursor-not-allowed",false:""},loading:{true:"cursor-wait",false:""},customSize:{true:"px-4 py-2",false:""}},compoundVariants:[{variant:"filled",color:"primary",class:"bg-primary-default-default text-neutral-strong-default border-0 hover:bg-primary-default-hover hover:text-neutral-strong-hover focus:bg-primary-default-pressed focus:text-neutral-strong-focused active:bg-primary-pressed active:text-neutral-strong-pressed disabled:bg-primary-medium-disabled disabled:text-neutral-strong-disabled"},{variant:"filled",color:"secondary",class:"bg-neutral-strong-medium-default text-neutral-strong-default hover:bg-neutral-medium-hover hover:text-neutral-strong-hover focus:bg-neutral-medium-pressed focus:text-neutral-strong-pressed active:bg-neutral-medium-pressed disabled:bg-primary-default-disabled disabled:text-neutral-strong-disabled"},{variant:"outline",color:"primary",class:"text-primary-medium-default border-primary-medium-default hover:bg-neutral-default-hover hover:text-primary-medium-hover hover:border-primary-medium-hover focus:bg-neutral-default-pressed focus:text-primary-medium-pressed focus:border-primary-medium-pressed active:bg-neutral-default-pressed active:text-primary-medium-pressed active:border-primary-medium-pressed disabled:border-primary-disabled disabled:text-primary-disabled"},{variant:"outline",color:"secondary",class:"text-neutral-strong-default border-neutral-strong-default hover:bg-neutral-default-hover hover:text-neutral-strong-hover hover:border-neutral-strong-hover focus:bg-neutral-default-pressed focus:text-neutral-strong-pressed focus:border-neutral-strong-pressed active:bg-neutral-default-pressed active:text-neutral-strong-pressed active:border-neutral-strong-pressed disabled:border-neutral-disabled disabled:text-neutral-disabled"},{variant:"text",color:"primary",class:"text-primary-medium-default hover:bg-neutral-default-hover hover:text-primary-medium-hover focus:bg-neutral-default-pressed focus:text-primary-medium-pressed active:bg-neutral-default-pressed active:text-primary-medium-pressed disabled:text-primary-medium-disabled"},{variant:"text",color:"secondary",class:"text-neutral-strong-default hover:bg-neutral-default-hover hover:text-primary-default-hover focus:bg-neutral-default-pressed focus:text-primary-medium-pressed active:bg-neutral-default-pressed active:text-primary-medium-pressed disabled:text-primary-medium-disabled"}],defaultVariants:{variant:"filled",color:"primary",size:"medium",disabled:!1,loading:!1,customSize:!1}});function Ri({label:i="Selene",onClick:e,icon:t,contentClassName:r,loadingText:n="Cargando...",animate:s=!0,animateIcon:a=!0,isLoading:o=!1,disabled:l=!1,type:u="button",variant:c="filled",color:f="primary",size:p="medium",children:m,Spinner:g,className:h,..._}){const x=D.useAnimationControls(),v=()=>{!s||l||o||!a||x.start({rotate:90})},b=()=>{!s||l||o||!a||x.start({rotate:0})},T=S(Ai({variant:c,color:f,size:p,disabled:l||o,loading:o}),h);return d.jsx(D.motion.button,{onClick:e,className:T,whileHover:s&&!l&&!o?{scale:1.05}:{},whileTap:s&&!l&&!o?{scale:.98}:{},transition:{type:"spring",stiffness:400,damping:17},onHoverStart:v,onHoverEnd:b,disabled:l||o,type:u,..._,children:o?d.jsxs("div",{className:"flex items-center gap-2",children:[g,p!=="small"&&d.jsx("span",{children:n})]}):m||d.jsxs("span",{className:S("flex items-center gap-2",r),children:[t&&d.jsx(D.motion.div,{animate:a?x:void 0,transition:{type:"spring",stiffness:400,damping:17},children:t}),i&&d.jsx("span",{children:i})]})})}function an({sessions:i,handleTokenLogin:e}){return d.jsx("div",{className:"profile-options-container w-full ",children:i?.map(t=>d.jsx("button",{className:"w-full ",onClick:()=>e?.(t.token),children:d.jsx(Ft,{children:d.jsx(Ft.Content,{onClick:()=>{console.log("hola")},isExpanded:!1,name:t.name,nameArea:t?.area?.name,nameCompany:t.company_id.name,cardProfile:d.jsx(Ft.Image,{isExpanded:!1})})})},t._id))})}const Ft=Object.assign(({children:i})=>d.jsx("div",{className:"profile-container flex rounded-md text-white-prometeo overflow-hidden flex-shrink-0 w-full min-w-0",children:i}),{Menu:({isExpanded:i,sessions:e,onClickLogout:t,handleTokenLogin:r})=>d.jsx(D.AnimatePresence,{mode:"wait",children:i&&d.jsxs(D.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(D.motion.div,{className:"flex justify-center items-center w-full mt-4",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.5,ease:"easeInOut"}},children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),e!==null&&d.jsxs(d.Fragment,{children:[d.jsx(D.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(D.motion.div,{className:"mt-4 overflow-hidden w-full ",exit:{height:0,opacity:0,y:-10,scale:.98,transition:{height:{duration:.5,delay:.2},opacity:{duration:.3,delay:.3},y:{duration:.3,delay:.3},scale:{duration:.3,delay:.3},ease:"easeInOut"}},children:d.jsx(an,{sessions:e,handleTokenLogin:r})}),d.jsx(D.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(D.motion.button,{onClick:t,className:"flex flex-1 h-12 w-full gap-1 rounded-md cursor-pointer mt-4 mb-4 px-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",exit:{opacity:0,y:-8,scale:.96,transition:{duration:.5,delay:0,ease:"easeInOut"}},whileHover:{opacity:1,scale:[1,1.02,1],transition:{duration:.2}},whileTap:{scale:.98},children:[d.jsx(le.Logout,{size:24,className:"text-neutral-default-default"}),d.jsx("span",{className:"text-neutral-default-default font-semibold text-sm",children:"Cerrar sesión"})]})]})}),Image:({imageUrl:i})=>d.jsx("div",{className:"profile-image-wrapper ml-1 flex-shrink-0 h-10 w-10 flex items-center justify-center relative z-10",children:d.jsx(rn,{profileImage:i,size:36,sizeImage:36})}),Content:({isExpanded:i,name:e,nameCompany:t,nameArea:r,cardProfile:n,onClick:s})=>d.jsxs(D.motion.button,{onClick:s,className:S("flex flex-1 gap-1 rounded-l-md cursor-pointer relative overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",i&&"bg-neutral-medium-selected"),whileHover:{opacity:1,scale:[1,1.02,1]},whileTap:{scale:.98},transition:{duration:.2,ease:"easeInOut"},children:[n,d.jsxs("div",{className:"flex flex-col justify-center overflow-hidden flex-1 relative z-10 profile-user-info mr-2",children:[d.jsx("p",{className:S("profile-name font-semibold leading-tight mb-0 text-left",i?"text-primary-default-default":"text-neutral-default-default"),children:e?.length&&e?.length>20?e?.slice(0,10)+"..":e}),d.jsx("div",{className:"flex items-center gap-1 mt-1 ",children:t&&t?d.jsxs(d.Fragment,{children:[d.jsx("p",{className:S("profile-options truncate text-xs mt-0",i?"text-primary-default-default":"text-neutral-default-default"),children:t.length>20?t?.slice(0,10)+"..":t}),d.jsx("p",{className:S("profile-options truncate font-bold mt-0",i?"text-primary-default-default":"text-neutral-default-default"),children:"·"}),d.jsx("p",{className:S("profile-options truncate text-xs mt-0",i?"text-primary-default-default":"text-neutral-default-default"),children:r||"Sin asignar"})]}):d.jsx("span",{className:"font-semibold leading-tight ml-3 text-xs text-blue-300 text-center",children:"Sin asignar"})})]})]}),Separator:()=>d.jsx("div",{className:"w-px bg-gray-500/30 my-1 border-separator-profile"}),Options:({isExpanded:i,onClick:e})=>d.jsx(D.motion.button,{onClick:e,className:"flex items-center justify-center p-3 rounded-r-md cursor-pointer relative overflow-hidden focus:outline-none min-w-[50px] hover:bg-neutral-medium-selected button-content-chevron",whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.2,ease:"easeOut"},title:i?"Ocultar opciones":"Mostrar opciones","aria-label":i?"Ocultar opciones":"Mostrar opciones",children:d.jsx(D.motion.div,{animate:{rotate:i?180:0},transition:{duration:.3,ease:"easeOut"},className:"relative button-select-crevron",children:d.jsx(D.motion.div,{transition:{duration:.2},children:d.jsx(le.ChevronDown,{size:20,className:"text-prometeo-neutral "})})})})}),le={Ticket:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm0-160q17 0 28.5-11.5T520-480q0-17-11.5-28.5T480-520q-17 0-28.5 11.5T440-480q0 17 11.5 28.5T480-440Zm0-160q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm320 440H160q-33 0-56.5-23.5T80-240v-160q33 0 56.5-23.5T160-480q0-33-23.5-56.5T80-560v-160q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v160q-33 0-56.5 23.5T800-480q0 33 23.5 56.5T880-400v160q0 33-23.5 56.5T800-160Zm0-80v-102q-37-22-58.5-58.5T720-480q0-43 21.5-79.5T800-618v-102H160v102q37 22 58.5 58.5T240-480q0 43-21.5 79.5T160-342v102h640ZM480-480Z"})}),Home:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M240-200h120v-240h240v240h120v-360L480-740 240-560v360Zm-80 80v-480l320-240 320 240v480H520v-240h-80v240H160Zm320-350Z"})}),Boards:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm360-80h100v-480H520v480Zm-180 0h100v-480H340v480Zm-180 0h100v-480H160v480Zm540 0h100v-480H700v480Z"})}),Notifications:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M160-200v-80h80v-280q0-83 50-147.5T420-792v-28q0-25 17.5-42.5T480-880q25 0 42.5 17.5T540-820v28q80 20 130 84.5T720-560v280h80v80H160Zm320-300Zm0 420q-33 0-56.5-23.5T400-160h160q0 33-23.5 56.5T480-80ZM320-280h320v-280q0-66-47-113t-113-47q-66 0-113 47t-47 113v280Z"})}),Help:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M478-240q21 0 35.5-14.5T528-290q0-21-14.5-35.5T478-340q-21 0-35.5 14.5T428-290q0 21 14.5 35.5T478-240Zm-36-154h74q0-33 7.5-52t42.5-52q26-26 41-49.5t15-56.5q0-56-41-86t-97-30q-57 0-92.5 30T342-618l66 26q5-18 22.5-39t53.5-21q32 0 48 17.5t16 38.5q0 20-12 37.5T506-526q-44 39-54 59t-10 73Zm38 314q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),Settings:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"m370-80-16-128q-13-5-24.5-12T307-235l-119 50L78-375l103-78q-1-7-1-13.5v-27q0-6.5 1-13.5L78-585l110-190 119 50q11-8 23-15t24-12l16-128h220l16 128q13 5 24.5 12t22.5 15l119-50 110 190-103 78q1 7 1 13.5v27q0 6.5-2 13.5l103 78-110 190-118-50q-11 8-23 15t-24 12L590-80H370Zm70-80h79l14-106q31-8 57.5-23.5T639-327l99 41 39-68-86-65q5-14 7-29.5t2-31.5q0-16-2-31.5t-7-29.5l86-65-39-68-99 42q-22-23-48.5-38.5T533-694l-13-106h-79l-14 106q-31 8-57.5 23.5T321-633l-99-41-39 68 86 64q-5 15-7 30t-2 32q0 16 2 31t7 30l-86 65 39 68 99-42q22 23 48.5 38.5T427-266l13 106Zm42-180q58 0 99-41t41-99q0-58-41-99t-99-41q-59 0-99.5 41T342-480q0 58 40.5 99t99.5 41Zm-2-140Z"})}),CrevronLeft:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"})}),CrevronRight:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"})}),ArrowLeft:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M400-240 160-480l240-240 56 58-142 142h486v80H314l142 142-56 58Z"})}),Shared:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M680-80q-50 0-85-35t-35-85q0-6 3-28L282-392q-16 15-37 23.5t-45 8.5q-50 0-85-35t-35-85q0-50 35-85t85-35q24 0 45 8.5t37 23.5l281-164q-2-7-2.5-13.5T560-760q0-50 35-85t85-35q50 0 85 35t35 85q0 50-35 85t-85 35q-24 0-45-8.5T598-672L317-508q2 7 2.5 13.5t.5 14.5q0 8-.5 14.5T317-452l281 164q16-15 37-23.5t45-8.5q50 0 85 35t35 85q0 50-35 85t-85 35Zm0-80q17 0 28.5-11.5T720-200q0-17-11.5-28.5T680-240q-17 0-28.5 11.5T640-200q0 17 11.5 28.5T680-160ZM200-440q17 0 28.5-11.5T240-480q0-17-11.5-28.5T200-520q-17 0-28.5 11.5T160-480q0 17 11.5 28.5T200-440Zm480-280q17 0 28.5-11.5T720-760q0-17-11.5-28.5T680-800q-17 0-28.5 11.5T640-760q0 17 11.5 28.5T680-720Zm0 520ZM200-480Zm480-280Z"})}),ChevronDown:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-345 240-585l56-56 184 183 184-183 56 56-240 240Z"})}),Collapse:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M440-440v240h-80v-160H200v-80h240Zm160-320v160h160v80H520v-240h80Z"})}),Calendar:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Zm280 240q-17 0-28.5-11.5T440-440q0-17 11.5-28.5T480-480q17 0 28.5 11.5T520-440q0 17-11.5 28.5T480-400Zm-160 0q-17 0-28.5-11.5T280-440q0-17 11.5-28.5T320-480q17 0 28.5 11.5T360-440q0 17-11.5 28.5T320-400Zm320 0q-17 0-28.5-11.5T600-440q0-17 11.5-28.5T640-480q17 0 28.5 11.5T680-440q0 17-11.5 28.5T640-400ZM480-240q-17 0-28.5-11.5T440-280q0-17 11.5-28.5T480-320q17 0 28.5 11.5T520-280q0 17-11.5 28.5T480-240Zm-160 0q-17 0-28.5-11.5T280-280q0-17 11.5-28.5T320-320q17 0 28.5 11.5T360-280q0 17-11.5 28.5T320-240Zm320 0q-17 0-28.5-11.5T600-280q0-17 11.5-28.5T640-320q17 0 28.5 11.5T680-280q0 17-11.5 28.5T640-240Z"})}),Close:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"})}),UserPerson:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM160-160v-112q0-34 17.5-62.5T224-378q62-31 126-46.5T480-440q66 0 130 15.5T736-378q29 15 46.5 43.5T800-272v112H160Zm80-80h480v-32q0-11-5.5-20T700-306q-54-27-109-40.5T480-360q-56 0-111 13.5T260-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T560-640q0-33-23.5-56.5T480-720q-33 0-56.5 23.5T400-640q0 33 23.5 56.5T480-560Zm0-80Zm0 400Z"})}),Logout:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h280v80H200Zm440-160-55-58 102-102H360v-80h327L585-622l55-58 200 200-200 200Z"})}),ArrowUpDown:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M320-440v-287L217-624l-57-56 200-200 200 200-57 56-103-103v287h-80ZM600-80 400-280l57-56 103 103v-287h80v287l103-103 57 56L600-80Z"})}),Filter:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M400-240v-80h160v80H400ZM240-440v-80h480v80H240ZM120-640v-80h720v80H120Z"})}),Search:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"})}),Stars:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"m668-380 152-130 120 10-176 153 52 227-102-62-46-198Zm-94-292-42-98 46-110 92 217-96-9ZM294-287l126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM173-120l65-281L20-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Zm247-340Z"})}),MoreVert:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z"})}),Add:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z"})}),Edit:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M200-200h57l391-391-57-57-391 391v57Zm-80 80v-170l528-527q12-11 26.5-17t30.5-6q16 0 31 6t26 18l55 56q12 11 17.5 26t5.5 30q0 16-5.5 30.5T817-647L290-120H120Zm640-584-56-56 56 56Zm-141 85-28-29 57 57-29-28Z"})}),Upload:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M440-320v-326L336-542l-56-58 200-200 200 200-56 58-104-104v326h-80ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z"})}),Copy:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z"})}),FaLock:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M80-200v-80h800v80H80Zm46-242-52-30 34-60H40v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Z"})}),AccountCircle:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M234-276q51-39 114-61.5T480-360q69 0 132 22.5T726-276q35-41 54.5-93T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 59 19.5 111t54.5 93Zm246-164q-59 0-99.5-40.5T340-580q0-59 40.5-99.5T480-720q59 0 99.5 40.5T620-580q0 59-40.5 99.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q53 0 100-15.5t86-44.5q-39-29-86-44.5T480-280q-53 0-100 15.5T294-220q39 29 86 44.5T480-160Zm0-360q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43q0 26 17 43t43 17Zm0 360Z"})}),UserAdd:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M720-400v-120H600v-80h120v-120h80v120h120v80H800v120h-80Zm-360-80q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM40-160v-112q0-34 17.5-62.5T104-378q62-31 126-46.5T360-440q66 0 130 15.5T616-378q29 15 46.5 43.5T680-272v112H40Zm80-80h480v-32q0-11-5.5-20T580-306q-54-27-109-40.5T360-360q-56 0-111 13.5T140-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T440-640q0-33-23.5-56.5T360-720q-33 0-56.5 23.5T280-640q0 33 23.5 56.5T360-560Zm0-80Zm0 400Z"})}),AttachFile:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M720-330q0 104-73 177T470-80q-104 0-177-73t-73-177v-370q0-75 52.5-127.5T400-880q75 0 127.5 52.5T580-700v350q0 46-32 78t-78 32q-46 0-78-32t-32-78v-370h80v370q0 13 8.5 21.5T470-320q13 0 21.5-8.5T500-350v-350q-1-42-29.5-71T400-800q-42 0-71 29t-29 71v370q-1 71 49 120.5T470-160q70 0 119-49.5T640-330v-390h80v390Z"})}),HistoryActivity:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-80q-155 0-269-103T82-440h81q15 121 105.5 200.5T480-160q134 0 227-93t93-227q0-134-93-227t-227-93q-86 0-159.5 42.5T204-640h116v80H88q29-140 139-230t253-90q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm112-232L440-464v-216h80v184l128 128-56 56Z"})}),MessageSquare:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z"})}),CloseNavBarDesktop:({size:i,className:e,...t})=>d.jsxs("svg",{width:i,height:i,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t,className:e,children:[d.jsx("mask",{id:"mask0_977_20941",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:i,height:i,children:d.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),d.jsx("g",{mask:"url(#mask0_977_20941)",children:d.jsx("path",{d:"M11 17V7L6 12L11 17ZM13 21H15V3H13V21Z",fill:"#E4E4E7"})})]}),EyeVisibility:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:i,height:i,...t,className:e,fill:"currentColor",children:d.jsx("path",{d:"M480-320q75 0 127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75 0-127.5 52.5T300-500q0 75 52.5 127.5T480-320Zm0-72q-45 0-76.5-31.5T372-500q0-45 31.5-76.5T480-608q45 0 76.5 31.5T588-500q0 45-31.5 76.5T480-392Zm0 192q-146 0-266-81.5T40-500q54-137 174-218.5T480-800q146 0 266 81.5T920-500q-54 137-174 218.5T480-200Zm0-300Zm0 220q113 0 207.5-59.5T832-500q-50-101-144.5-160.5T480-720q-113 0-207.5 59.5T128-500q50 101 144.5 160.5T480-280Z"})}),EyeVisibilityOff:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:i,height:i,...t,className:e,fill:"currentColor",children:d.jsx("path",{d:"m644-428-58-58q9-47-27-88t-93-32l-58-58q17-8 34.5-12t37.5-4q75 0 127.5 52.5T660-500q0 20-4 37.5T644-428Zm128 126-58-56q38-29 67.5-63.5T832-500q-50-101-143.5-160.5T480-720q-29 0-57 4t-55 12l-62-62q41-17 84-25.5t90-8.5q151 0 269 83.5T920-500q-23 59-60.5 109.5T772-302Zm20 246L624-222q-35 11-70.5 16.5T480-200q-151 0-269-83.5T40-500q21-53 53-98.5t73-81.5L56-792l56-56 736 736-56 56ZM222-624q-29 26-53 57t-41 67q50 101 143.5 160.5T480-280q20 0 39-2.5t39-5.5l-36-38q-11 3-21 4.5t-21 1.5q-75 0-127.5-52.5T300-500q0-11 1.5-21t4.5-21l-84-82Zm319 93Zm-151 75Z"})}),Check:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:i,...t,className:e,viewBox:"0 -960 960 960",fill:"currentColor",children:d.jsx("path",{d:"M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"})}),Info:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:i,height:i,...t,className:e,fill:"currentColor",children:d.jsx("path",{d:"M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),Error:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:i,...t,className:e,fill:"currentColor",viewBox:"0 -960 960 960",children:d.jsx("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm-40-160h80v-240h-80v240Zm40 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),TicketFilled:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,...t,children:d.jsx("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm0-160q17 0 28.5-11.5T520-480q0-17-11.5-28.5T480-520q-17 0-28.5 11.5T440-480q0 17 11.5 28.5T480-440Zm0-160q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm320 440H160q-33 0-56.5-23.5T80-240v-160q33 0 56.5-23.5T160-480q0-33-23.5-56.5T80-560v-160q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v160q-33 0-56.5 23.5T800-480q0 33 23.5 56.5T880-400v160q0 33-23.5 56.5T800-160Z"})})},Di=({label:i,className:e,containerClassName:t,id:r,disabled:n=!1,...s})=>{const[a,o]=Rt.useField({...s,type:"checkbox"}),[l,u]=E.useState(!1),c=o.touched&&o.error;return d.jsxs("div",{className:S("relative w-full",t),children:[d.jsxs("label",{htmlFor:r||s.name,className:S("flex items-center gap-3 cursor-pointer transition-all duration-200 ease-in-out",n?"cursor-not-allowed opacity-60":"hover:opacity-80",e),children:[d.jsxs("div",{className:"relative",children:[d.jsx("input",{id:r||s.name,type:"checkbox",name:a.name,checked:a.value||!1,onChange:a.onChange,onFocus:()=>{u(!0),s.onFocus?.()},onBlur:f=>{u(!1),s.onBlur?.(),a.onBlur(f)},disabled:n,className:S("sr-only")}),d.jsx("div",{className:S("w-5 h-5 rounded border-2 transition-all duration-200 ease-in-out flex items-center justify-center",a.value?"bg-primary-default-default border-primary-default-default":l?"border-primary-default-default bg-transparent":c?"border-error-default-default bg-transparent":"border-neutral-default-default bg-transparent hover:border-neutral-strong-default",n&&"bg-neutral-medium-default border-neutral-medium-default"),children:a.value&&d.jsx(le.Check,{size:14,className:S("text-white transition-all duration-200 ease-in-out",n&&"text-neutral-strong-default")})})]}),d.jsx("span",{className:`${l}`,children:" "}),d.jsx("span",{className:S("text-sm transition-colors duration-200 ease-in-out select-none",c&&"text-error-default-default",n&&"text-neutral-medium-default"),children:i})]}),c&&d.jsx(Rt.ErrorMessage,{name:s.name,component:"span",className:"block text-error-default-default text-xs mt-1"})]})},Fi=({title:i,children:e})=>d.jsxs(D.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.6,ease:"easeOut"},className:"flex justify-between items-center w-full ",children:[d.jsx("h1",{className:"text-[32px] font-bold text-neutral-strong-default",children:i}),e]}),Ii=E.memo(Fi);var Zi={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function xt(i){if(typeof i=="number")return{value:i,unit:"px"};var e,t=(i.match(/^[0-9.]*/)||"").toString();t.includes(".")?e=parseFloat(t):e=parseInt(t,10);var r=(i.match(/[^0-9]*$/)||"").toString();return Zi[r]?{value:e,unit:r}:(console.warn("React Spinners: ".concat(i," is not a valid css value. Defaulting to ").concat(e,"px.")),{value:e,unit:"px"})}function ne(i){var e=xt(i);return"".concat(e.value).concat(e.unit)}var Ze=function(i,e,t){var r="react-spinners-".concat(i,"-").concat(t);if(typeof window>"u"||!window.document)return r;var n=document.createElement("style");document.head.appendChild(n);var s=n.sheet,a=`
|
|
23
|
-
@keyframes `.concat(
|
|
22
|
+
<%s key={someKey} {...props} />`,F,z,G,z),ee[z+F]=!0)}if(z=null,P!==void 0&&(t(P),z=""+P),o(j)&&(t(j.key),z=""+j.key),"key"in j){P={};for(var W in j)W!=="key"&&(P[W]=j[W])}else P=j;return z&&s(P,typeof v=="function"?v.displayName||v.name||"Unknown":v),c(v,z,q,N,r(),P,R,I)}function d(v){typeof v=="object"&&v!==null&&v.$$typeof===h&&v._store&&(v._store.validated=1)}var m=A,h=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),Z=Symbol.for("react.client.reference"),H=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=Object.prototype.hasOwnProperty,V=Array.isArray,L=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(v){return v()}};var Y,X={},K=m.react_stack_bottom_frame.bind(m,a)(),oe=L(i(a)),ee={};zt.Fragment=f,zt.jsx=function(v,j,P,F,N){var q=1e4>H.recentlyCreatedOwnerStacks++;return p(v,j,P,!1,F,N,q?Error("react-stack-top-frame"):K,q?L(i(v)):oe)},zt.jsxs=function(v,j,P,F,N){var q=1e4>H.recentlyCreatedOwnerStacks++;return p(v,j,P,!0,F,N,q?Error("react-stack-top-frame"):K,q?L(i(v)):oe)}})()),zt}var rr;function _o(){return rr||(rr=1,process.env.NODE_ENV==="production"?ai.exports=xo():ai.exports=go()),ai.exports}var u=_o();function ar({profileImage:n,size:e,sizeImage:t=36}){const[i,r]=A.useState(!1),a=n&&n.trim()!==""&&!i;return u.jsx(u.Fragment,{children:a?u.jsx("img",{onError:()=>{r(!0)},src:n,style:{width:t,height:t},className:"rounded-full object-cover",alt:"Profile"}):u.jsx(uo,{size:e,name:n||"User",variant:"beam",colors:["#92A1C6","#146A7C","#F0AB3D","#C271B4","#C20D90"]})})}function M(...n){return fo.twMerge(Qn.clsx(n))}const or=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,sr=Qn.clsx,yo=((n,e)=>t=>{var i;if(e?.variants==null)return sr(n,t?.class,t?.className);const{variants:r,defaultVariants:a}=e,o=Object.keys(r).map(c=>{const p=t?.[c],d=a?.[c];if(p===null)return null;const m=or(p)||or(d);return r[c][m]}),s=t&&Object.entries(t).reduce((c,p)=>{let[d,m]=p;return m===void 0||(c[d]=m),c},{}),l=e==null||(i=e.compoundVariants)===null||i===void 0?void 0:i.reduce((c,p)=>{let{class:d,className:m,...h}=p;return Object.entries(h).every(_=>{let[f,x]=_;return Array.isArray(x)?x.includes({...a,...s}[f]):{...a,...s}[f]===x})?[...c,d,m]:c},[]);return sr(n,o,l,t?.class,t?.className)})("flex items-center justify-center cursor-pointer focus:outline-none font-semibold rounded-md transition-colors",{variants:{variant:{filled:"",outline:"bg-transparent border-1",text:"bg-transparent border-0"},color:{primary:"",secondary:""},size:{small:"h-[40px] min-w-[123px] w-fit px-2 py-3 text-sm",medium:"h-[48px] min-w-[134px] w-fit px-2 py-3 text-base",large:"h-[56px] min-w-[145px] w-fit px-4 py-3 text-base"},disabled:{true:"opacity-50 cursor-not-allowed",false:""},loading:{true:"cursor-wait",false:""},customSize:{true:"px-4 py-2",false:""}},compoundVariants:[{variant:"filled",color:"primary",class:"bg-primary-default-default text-neutral-strong-default border-0 hover:bg-primary-default-hover hover:text-neutral-strong-hover focus:bg-primary-default-pressed focus:text-neutral-strong-focused active:bg-primary-pressed active:text-neutral-strong-pressed disabled:bg-primary-medium-disabled disabled:text-neutral-strong-disabled"},{variant:"filled",color:"secondary",class:"bg-neutral-strong-medium-default text-neutral-strong-default hover:bg-neutral-medium-hover hover:text-neutral-strong-hover focus:bg-neutral-medium-pressed focus:text-neutral-strong-pressed active:bg-neutral-medium-pressed disabled:bg-primary-default-disabled disabled:text-neutral-strong-disabled"},{variant:"outline",color:"primary",class:"text-primary-medium-default border-primary-medium-default hover:bg-neutral-default-hover hover:text-primary-medium-hover hover:border-primary-medium-hover focus:bg-neutral-default-pressed focus:text-primary-medium-pressed focus:border-primary-medium-pressed active:bg-neutral-default-pressed active:text-primary-medium-pressed active:border-primary-medium-pressed disabled:border-primary-disabled disabled:text-primary-disabled"},{variant:"outline",color:"secondary",class:"text-neutral-strong-default border-neutral-strong-default hover:bg-neutral-default-hover hover:text-neutral-strong-hover hover:border-neutral-strong-hover focus:bg-neutral-default-pressed focus:text-neutral-strong-pressed focus:border-neutral-strong-pressed active:bg-neutral-default-pressed active:text-neutral-strong-pressed active:border-neutral-strong-pressed disabled:border-neutral-disabled disabled:text-neutral-disabled"},{variant:"text",color:"primary",class:"text-primary-medium-default hover:bg-neutral-default-hover hover:text-primary-medium-hover focus:bg-neutral-default-pressed focus:text-primary-medium-pressed active:bg-neutral-default-pressed active:text-primary-medium-pressed disabled:text-primary-medium-disabled"},{variant:"text",color:"secondary",class:"text-neutral-strong-default hover:bg-neutral-default-hover hover:text-primary-default-hover focus:bg-neutral-default-pressed focus:text-primary-medium-pressed active:bg-neutral-default-pressed active:text-primary-medium-pressed disabled:text-primary-medium-disabled"}],defaultVariants:{variant:"filled",color:"primary",size:"medium",disabled:!1,loading:!1,customSize:!1}});function bo({label:n="Selene",onClick:e,icon:t,contentClassName:i,loadingText:r="Cargando...",animate:a=!0,animateIcon:o=!0,isLoading:s=!1,disabled:l=!1,type:c="button",variant:p="filled",color:d="primary",size:m="medium",children:h,Spinner:_,className:f,...x}){const y=Q.useAnimationControls(),b=()=>{!a||l||s||!o||y.start({rotate:90})},w=()=>{!a||l||s||!o||y.start({rotate:0})},T=M(yo({variant:p,color:d,size:m,disabled:l||s,loading:s}),f);return u.jsx(Q.motion.button,{onClick:e,className:T,whileHover:a&&!l&&!s?{scale:1.05}:{},whileTap:a&&!l&&!s?{scale:.98}:{},transition:{type:"spring",stiffness:400,damping:17},onHoverStart:b,onHoverEnd:w,disabled:l||s,type:c,...x,children:s?u.jsxs("div",{className:"flex items-center gap-2",children:[_,m!=="small"&&u.jsx("span",{children:r})]}):h||u.jsxs("span",{className:M("flex items-center gap-2",i),children:[t&&u.jsx(Q.motion.div,{animate:o?y:void 0,transition:{type:"spring",stiffness:400,damping:17},children:t}),n&&u.jsx("span",{children:n})]})})}function lr({sessions:n,handleTokenLogin:e}){return u.jsx("div",{className:"profile-options-container w-full ",children:n?.map(t=>u.jsx("button",{className:"w-full ",onClick:()=>e?.(t.token),children:u.jsx(oi,{children:u.jsx(oi.Content,{onClick:()=>{console.log("hola")},isExpanded:!1,name:t.name,nameArea:t?.area?.name,nameCompany:t.company_id.name,cardProfile:u.jsx(oi.Image,{isExpanded:!1})})})},t._id))})}const oi=Object.assign(({children:n})=>u.jsx("div",{className:"profile-container flex rounded-md text-white-prometeo overflow-hidden flex-shrink-0 w-full min-w-0",children:n}),{Menu:({isExpanded:n,sessions:e,onClickLogout:t,handleTokenLogin:i})=>u.jsx(Q.AnimatePresence,{mode:"wait",children:n&&u.jsxs(Q.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:[u.jsx(Q.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:u.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),e!==null&&u.jsxs(u.Fragment,{children:[u.jsx(Q.motion.div,{className:"mt-4",exit:{opacity:0,y:-5,height:0,transition:{duration:.4,delay:.4,ease:"easeInOut"}},children:u.jsx("span",{className:"text-neutral-medium-default font-semibold text-xs",children:"Cambiar cuenta"})}),u.jsx(Q.motion.div,{className:"mt-4 overflow-hidden w-full ",exit:{height:0,opacity:0,y:-10,scale:.98,transition:{height:{duration:.5,delay:.2},opacity:{duration:.3,delay:.3},y:{duration:.3,delay:.3},scale:{duration:.3,delay:.3},ease:"easeInOut"}},children:u.jsx(lr,{sessions:e,handleTokenLogin:i})}),u.jsx(Q.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:u.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})})]}),u.jsxs(Q.motion.button,{onClick:t,className:"flex flex-1 h-12 w-full gap-1 rounded-md cursor-pointer mt-4 mb-4 px-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",exit:{opacity:0,y:-8,scale:.96,transition:{duration:.5,delay:0,ease:"easeInOut"}},whileHover:{opacity:1,scale:[1,1.02,1],transition:{duration:.2}},whileTap:{scale:.98},children:[u.jsx(ge.Logout,{size:24,className:"text-neutral-default-default"}),u.jsx("span",{className:"text-neutral-default-default font-semibold text-sm",children:"Cerrar sesión"})]})]})}),Image:({imageUrl:n})=>u.jsx("div",{className:"profile-image-wrapper ml-1 flex-shrink-0 h-10 w-10 flex items-center justify-center relative z-10",children:u.jsx(ar,{profileImage:n,size:36,sizeImage:36})}),Content:({isExpanded:n,name:e,nameCompany:t,nameArea:i,cardProfile:r,onClick:a})=>u.jsxs(Q.motion.button,{onClick:a,className:M("flex flex-1 gap-1 rounded-l-md cursor-pointer relative overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",n&&"bg-neutral-medium-selected"),whileHover:{opacity:1,scale:[1,1.02,1]},whileTap:{scale:.98},transition:{duration:.2,ease:"easeInOut"},children:[r,u.jsxs("div",{className:"flex flex-col justify-center overflow-hidden flex-1 relative z-10 profile-user-info mr-2",children:[u.jsx("p",{className:M("profile-name font-semibold leading-tight mb-0 text-left",n?"text-primary-default-default":"text-neutral-default-default"),children:e?.length&&e?.length>20?e?.slice(0,10)+"..":e}),u.jsx("div",{className:"flex items-center gap-1 mt-1 ",children:t&&t?u.jsxs(u.Fragment,{children:[u.jsx("p",{className:M("profile-options truncate text-xs mt-0",n?"text-primary-default-default":"text-neutral-default-default"),children:t.length>20?t?.slice(0,10)+"..":t}),u.jsx("p",{className:M("profile-options truncate font-bold mt-0",n?"text-primary-default-default":"text-neutral-default-default"),children:"·"}),u.jsx("p",{className:M("profile-options truncate text-xs mt-0",n?"text-primary-default-default":"text-neutral-default-default"),children:i||"Sin asignar"})]}):u.jsx("span",{className:"font-semibold leading-tight ml-3 text-xs text-blue-300 text-center",children:"Sin asignar"})})]})]}),Separator:()=>u.jsx("div",{className:"w-px bg-gray-500/30 my-1 border-separator-profile"}),Options:({isExpanded:n,onClick:e})=>u.jsx(Q.motion.button,{onClick:e,className:"flex items-center justify-center p-3 rounded-r-md cursor-pointer relative overflow-hidden focus:outline-none min-w-[50px] hover:bg-neutral-medium-selected button-content-chevron",whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.2,ease:"easeOut"},title:n?"Ocultar opciones":"Mostrar opciones","aria-label":n?"Ocultar opciones":"Mostrar opciones",children:u.jsx(Q.motion.div,{animate:{rotate:n?180:0},transition:{duration:.3,ease:"easeOut"},className:"relative button-select-crevron",children:u.jsx(Q.motion.div,{transition:{duration:.2},children:u.jsx(ge.ChevronDown,{size:20,className:"text-prometeo-neutral "})})})})}),ge={Ticket:({size:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.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:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.jsx("path",{d:"M240-200h120v-240h240v240h120v-360L480-740 240-560v360Zm-80 80v-480l320-240 320 240v480H520v-240h-80v240H160Zm320-350Z"})}),Boards:({size:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.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:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.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:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.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:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.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:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.jsx("path",{d:"M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"})}),CrevronRight:({size:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.jsx("path",{d:"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"})}),ArrowLeft:({size:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.jsx("path",{d:"M400-240 160-480l240-240 56 58-142 142h486v80H314l142 142-56 58Z"})}),Shared:({size:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.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:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.jsx("path",{d:"M480-345 240-585l56-56 184 183 184-183 56 56-240 240Z"})}),Collapse:({size:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.jsx("path",{d:"M440-440v240h-80v-160H200v-80h240Zm160-320v160h160v80H520v-240h80Z"})}),Calendar:({size:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.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:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.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:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.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:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.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:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.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:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.jsx("path",{d:"M400-240v-80h160v80H400ZM240-440v-80h480v80H240ZM120-640v-80h720v80H120Z"})}),Search:({size:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.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:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.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:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.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:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.jsx("path",{d:"M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z"})}),Edit:({size:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.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:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.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:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.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:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.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:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.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:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.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:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.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:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.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:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:u.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:n,className:e,...t})=>u.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t,className:e,children:[u.jsx("mask",{id:"mask0_977_20941",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:n,height:n,children:u.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),u.jsx("g",{mask:"url(#mask0_977_20941)",children:u.jsx("path",{d:"M11 17V7L6 12L11 17ZM13 21H15V3H13V21Z",fill:"#E4E4E7"})})]}),EyeVisibility:({size:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:n,height:n,...t,className:e,fill:"currentColor",children:u.jsx("path",{d:"M480-320q75 0 127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75 0-127.5 52.5T300-500q0 75 52.5 127.5T480-320Zm0-72q-45 0-76.5-31.5T372-500q0-45 31.5-76.5T480-608q45 0 76.5 31.5T588-500q0 45-31.5 76.5T480-392Zm0 192q-146 0-266-81.5T40-500q54-137 174-218.5T480-800q146 0 266 81.5T920-500q-54 137-174 218.5T480-200Zm0-300Zm0 220q113 0 207.5-59.5T832-500q-50-101-144.5-160.5T480-720q-113 0-207.5 59.5T128-500q50 101 144.5 160.5T480-280Z"})}),EyeVisibilityOff:({size:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:n,height:n,...t,className:e,fill:"currentColor",children:u.jsx("path",{d:"m644-428-58-58q9-47-27-88t-93-32l-58-58q17-8 34.5-12t37.5-4q75 0 127.5 52.5T660-500q0 20-4 37.5T644-428Zm128 126-58-56q38-29 67.5-63.5T832-500q-50-101-143.5-160.5T480-720q-29 0-57 4t-55 12l-62-62q41-17 84-25.5t90-8.5q151 0 269 83.5T920-500q-23 59-60.5 109.5T772-302Zm20 246L624-222q-35 11-70.5 16.5T480-200q-151 0-269-83.5T40-500q21-53 53-98.5t73-81.5L56-792l56-56 736 736-56 56ZM222-624q-29 26-53 57t-41 67q50 101 143.5 160.5T480-280q20 0 39-2.5t39-5.5l-36-38q-11 3-21 4.5t-21 1.5q-75 0-127.5-52.5T300-500q0-11 1.5-21t4.5-21l-84-82Zm319 93Zm-151 75Z"})}),Check:({size:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,...t,className:e,viewBox:"0 -960 960 960",fill:"currentColor",children:u.jsx("path",{d:"M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"})}),Info:({size:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:n,height:n,...t,className:e,fill:"currentColor",children:u.jsx("path",{d:"M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),Error:({size:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,...t,className:e,fill:"currentColor",viewBox:"0 -960 960 960",children:u.jsx("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm-40-160h80v-240h-80v240Zm40 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),TicketFilled:({size:n,className:e,...t})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,...t,children:u.jsx("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm0-160q17 0 28.5-11.5T520-480q0-17-11.5-28.5T480-520q-17 0-28.5 11.5T440-480q0 17 11.5 28.5T480-440Zm0-160q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm320 440H160q-33 0-56.5-23.5T80-240v-160q33 0 56.5-23.5T160-480q0-33-23.5-56.5T80-560v-160q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v160q-33 0-56.5 23.5T800-480q0 33 23.5 56.5T880-400v160q0 33-23.5 56.5T800-160Z"})})},wo=({label:n,className:e,containerClassName:t,id:i,disabled:r=!1,...a})=>{const[o,s]=ri.useField({...a,type:"checkbox"}),[l,c]=A.useState(!1),p=s.touched&&s.error;return u.jsxs("div",{className:M("relative w-full",t),children:[u.jsxs("label",{htmlFor:i||a.name,className:M("flex items-center gap-3 cursor-pointer transition-all duration-200 ease-in-out",r?"cursor-not-allowed opacity-60":"hover:opacity-80",e),children:[u.jsxs("div",{className:"relative",children:[u.jsx("input",{id:i||a.name,type:"checkbox",name:o.name,checked:o.value||!1,onChange:o.onChange,onFocus:()=>{c(!0),a.onFocus?.()},onBlur:d=>{c(!1),a.onBlur?.(),o.onBlur(d)},disabled:r,className:M("sr-only")}),u.jsx("div",{className:M("w-5 h-5 rounded border-2 transition-all duration-200 ease-in-out flex items-center justify-center",o.value?"bg-primary-default-default border-primary-default-default":l?"border-primary-default-default bg-transparent":p?"border-error-default-default bg-transparent":"border-neutral-default-default bg-transparent hover:border-neutral-strong-default",r&&"bg-neutral-medium-default border-neutral-medium-default"),children:o.value&&u.jsx(ge.Check,{size:14,className:M("text-white transition-all duration-200 ease-in-out",r&&"text-neutral-strong-default")})})]}),u.jsx("span",{className:`${l}`,children:" "}),u.jsx("span",{className:M("text-sm transition-colors duration-200 ease-in-out select-none",p&&"text-error-default-default",r&&"text-neutral-medium-default"),children:n})]}),p&&u.jsx(ri.ErrorMessage,{name:a.name,component:"span",className:"block text-error-default-default text-xs mt-1"})]})},To=({title:n,children:e})=>u.jsxs(Q.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.6,ease:"easeOut"},className:"flex justify-between items-center w-full ",children:[u.jsx("h1",{className:"text-[32px] font-bold text-neutral-strong-default",children:n}),e]}),jo=A.memo(To);var ko={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function It(n){if(typeof n=="number")return{value:n,unit:"px"};var e,t=(n.match(/^[0-9.]*/)||"").toString();t.includes(".")?e=parseFloat(t):e=parseInt(t,10);var i=(n.match(/[^0-9]*$/)||"").toString();return ko[i]?{value:e,unit:i}:(console.warn("React Spinners: ".concat(n," is not a valid css value. Defaulting to ").concat(e,"px.")),{value:e,unit:"px"})}function _e(n){var e=It(n);return"".concat(e.value).concat(e.unit)}var et=function(n,e,t){var i="react-spinners-".concat(n,"-").concat(t);if(typeof window>"u"||!window.document)return i;var r=document.createElement("style");document.head.appendChild(r);var a=r.sheet,o=`
|
|
23
|
+
@keyframes `.concat(i,` {
|
|
24
24
|
`).concat(e,`
|
|
25
25
|
}
|
|
26
|
-
`);return
|
|
27
|
-
35% {width: `).concat(
|
|
28
|
-
70% {width: `).concat(
|
|
29
|
-
100% {box-shadow: `).concat(
|
|
30
|
-
35% {height: `).concat(
|
|
31
|
-
70% {height: `).concat(
|
|
32
|
-
100% {box-shadow: `).concat(
|
|
26
|
+
`);return a&&a.insertRule(o,0),i},si;(function(n){n.maroon="#800000",n.red="#FF0000",n.orange="#FFA500",n.yellow="#FFFF00",n.olive="#808000",n.green="#008000",n.purple="#800080",n.fuchsia="#FF00FF",n.lime="#00FF00",n.teal="#008080",n.aqua="#00FFFF",n.blue="#0000FF",n.navy="#000080",n.black="#000000",n.gray="#808080",n.silver="#C0C0C0",n.white="#FFFFFF"})(si||(si={}));var Oo=function(n,e){if(n.includes("/"))return n.replace("rgb(","rgba(");var t=n.substring(n.startsWith("rgba(")?5:4,n.length-1).trim(),i=t.split(",");return i.length===4?n.replace("rgb(","rgba("):i.length===3?"rgba(".concat(t,", ").concat(e,")"):"rgba(".concat(t," / ").concat(e,")")},So=function(n,e){if(n.startsWith("rgb"))return Oo(n,e);if(Object.keys(si).includes(n)&&(n=si[n]),n[0]==="#"&&(n=n.slice(1)),n.length===3){var t="";n.split("").forEach(function(r){t+=r,t+=r}),n=t}var i=(n.match(/.{2}/g)||[]).map(function(r){return parseInt(r,16)}).join(", ");return"rgba(".concat(i,", ").concat(e,")")},li=function(){return li=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},li.apply(this,arguments)},Co=function(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(n);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(n,i[r])&&(t[i[r]]=n[i[r]]);return t},qo=et("BounceLoader","0% {transform: scale(0)} 50% {transform: scale(1.0)} 100% {transform: scale(0)}","bounce");function Eo(n){var e=n.loading,t=e===void 0?!0:e,i=n.color,r=i===void 0?"#000000":i,a=n.speedMultiplier,o=a===void 0?1:a,s=n.cssOverride,l=s===void 0?{}:s,c=n.size,p=c===void 0?60:c,d=Co(n,["loading","color","speedMultiplier","cssOverride","size"]),m=function(_){var f=_===1?"".concat(1/o,"s"):"0s";return{position:"absolute",height:_e(p),width:_e(p),backgroundColor:r,borderRadius:"100%",opacity:.6,top:0,left:0,animationFillMode:"both",animation:"".concat(qo," ").concat(2.1/o,"s ").concat(f," infinite ease-in-out")}},h=li({display:"inherit",position:"relative",width:_e(p),height:_e(p)},l);return t?se.createElement("span",li({style:h},d),se.createElement("span",{style:m(1)}),se.createElement("span",{style:m(2)})):null}var ci=function(){return ci=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},ci.apply(this,arguments)},Po=function(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(n);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(n,i[r])&&(t[i[r]]=n[i[r]]);return t},Ao=et("ClipLoader","0% {transform: rotate(0deg) scale(1)} 50% {transform: rotate(180deg) scale(0.8)} 100% {transform: rotate(360deg) scale(1)}","clip");function Do(n){var e=n.loading,t=e===void 0?!0:e,i=n.color,r=i===void 0?"#000000":i,a=n.speedMultiplier,o=a===void 0?1:a,s=n.cssOverride,l=s===void 0?{}:s,c=n.size,p=c===void 0?35:c,d=Po(n,["loading","color","speedMultiplier","cssOverride","size"]),m=ci({background:"transparent !important",width:_e(p),height:_e(p),borderRadius:"100%",border:"2px solid",borderTopColor:r,borderBottomColor:"transparent",borderLeftColor:r,borderRightColor:r,display:"inline-block",animation:"".concat(Ao," ").concat(.75/o,"s 0s infinite linear"),animationFillMode:"both"},l);return t?se.createElement("span",ci({style:m},d)):null}var pi=function(){return pi=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},pi.apply(this,arguments)},No=function(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(n);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(n,i[r])&&(t[i[r]]=n[i[r]]);return t},Ro=et("DotLoader","100% {transform: rotate(360deg)}","rotate"),Mo=et("DotLoader","0%, 100% {transform: scale(0)} 50% {transform: scale(1.0)}","bounce");function Fo(n){var e=n.loading,t=e===void 0?!0:e,i=n.color,r=i===void 0?"#000000":i,a=n.speedMultiplier,o=a===void 0?1:a,s=n.cssOverride,l=s===void 0?{}:s,c=n.size,p=c===void 0?60:c,d=No(n,["loading","color","speedMultiplier","cssOverride","size"]),m=pi({display:"inherit",position:"relative",width:_e(p),height:_e(p),animationFillMode:"forwards",animation:"".concat(Ro," ").concat(2/o,"s 0s infinite linear")},l),h=function(_){var f=It(p),x=f.value,y=f.unit;return{position:"absolute",top:_%2?"0":"auto",bottom:_%2?"auto":"0",height:"".concat(x/2).concat(y),width:"".concat(x/2).concat(y),backgroundColor:r,borderRadius:"100%",animationFillMode:"forwards",animation:"".concat(Mo," ").concat(2/o,"s ").concat(_===2?"1s":"0s"," infinite linear")}};return t?se.createElement("span",pi({style:m},d),se.createElement("span",{style:h(1)}),se.createElement("span",{style:h(2)})):null}var ui=function(){return ui=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},ui.apply(this,arguments)},zo=function(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(n);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(n,i[r])&&(t[i[r]]=n[i[r]]);return t},Io=et("GridLoader","0% {transform: scale(1)} 50% {transform: scale(0.5); opacity: 0.7} 100% {transform: scale(1); opacity: 1}","grid"),Xe=function(n){return Math.random()*n};function Lo(n){var e=n.loading,t=e===void 0?!0:e,i=n.color,r=i===void 0?"#000000":i,a=n.speedMultiplier,o=a===void 0?1:a,s=n.cssOverride,l=s===void 0?{}:s,c=n.size,p=c===void 0?15:c,d=n.margin,m=d===void 0?2:d,h=zo(n,["loading","color","speedMultiplier","cssOverride","size","margin"]),_=It(p),f=It(m),x=parseFloat(_.value.toString())*3+parseFloat(f.value.toString())*6,y=ui({width:"".concat(x).concat(_.unit),fontSize:0,display:"inline-block"},l),b=function(w){return{display:"inline-block",backgroundColor:r,width:"".concat(_e(p)),height:"".concat(_e(p)),margin:_e(m),borderRadius:"100%",animationFillMode:"both",animation:"".concat(Io," ").concat((w/100+.6)/o,"s ").concat(w/100-.2,"s infinite ease")}};return t?se.createElement("span",ui({style:y},h,{ref:function(w){w&&w.style.setProperty("width","".concat(x).concat(_.unit),"important")}}),se.createElement("span",{style:b(Xe(100))}),se.createElement("span",{style:b(Xe(100))}),se.createElement("span",{style:b(Xe(100))}),se.createElement("span",{style:b(Xe(100))}),se.createElement("span",{style:b(Xe(100))}),se.createElement("span",{style:b(Xe(100))}),se.createElement("span",{style:b(Xe(100))}),se.createElement("span",{style:b(Xe(100))}),se.createElement("span",{style:b(Xe(100))})):null}var di=function(){return di=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},di.apply(this,arguments)},Zo=function(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(n);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(n,i[r])&&(t[i[r]]=n[i[r]]);return t};function Bo(n){var e=n.loading,t=e===void 0?!0:e,i=n.color,r=i===void 0?"#000000":i,a=n.speedMultiplier,o=a===void 0?1:a,s=n.cssOverride,l=s===void 0?{}:s,c=n.size,p=c===void 0?50:c,d=Zo(n,["loading","color","speedMultiplier","cssOverride","size"]),m=It(p),h=m.value,_=m.unit,f=di({display:"inherit",position:"relative",width:_e(p),height:_e(p),transform:"rotate(165deg)"},l),x=h/5,y=(h-x)/2,b=y-x,w=So(r,.75),T=et("HashLoader","0% {width: ".concat(x,"px; box-shadow: ").concat(y,"px ").concat(-b,"px ").concat(w,", ").concat(-y,"px ").concat(b,"px ").concat(w,`}
|
|
27
|
+
35% {width: `).concat(_e(p),"; box-shadow: 0 ").concat(-b,"px ").concat(w,", 0 ").concat(b,"px ").concat(w,`}
|
|
28
|
+
70% {width: `).concat(x,"px; box-shadow: ").concat(-y,"px ").concat(-b,"px ").concat(w,", ").concat(y,"px ").concat(b,"px ").concat(w,`}
|
|
29
|
+
100% {box-shadow: `).concat(y,"px ").concat(-b,"px ").concat(w,", ").concat(-y,"px ").concat(b,"px ").concat(w,"}"),"before"),g=et("HashLoader","0% {height: ".concat(x,"px; box-shadow: ").concat(b,"px ").concat(y,"px ").concat(r,", ").concat(-b,"px ").concat(-y,"px ").concat(r,`}
|
|
30
|
+
35% {height: `).concat(_e(p),"; box-shadow: ").concat(b,"px 0 ").concat(r,", ").concat(-b,"px 0 ").concat(r,`}
|
|
31
|
+
70% {height: `).concat(x,"px; box-shadow: ").concat(b,"px ").concat(-y,"px ").concat(r,", ").concat(-b,"px ").concat(y,"px ").concat(r,`}
|
|
32
|
+
100% {box-shadow: `).concat(b,"px ").concat(y,"px ").concat(r,", ").concat(-b,"px ").concat(-y,"px ").concat(r,"}"),"after"),k=function(S){return{position:"absolute",top:"50%",left:"50%",display:"block",width:"".concat(h/5).concat(_),height:"".concat(h/5).concat(_),borderRadius:"".concat(h/10).concat(_),transform:"translate(-50%, -50%)",animationFillMode:"none",animation:"".concat(S===1?T:g," ").concat(2/o,"s infinite")}};return t?se.createElement("span",di({style:f},d),se.createElement("span",{style:k(1)}),se.createElement("span",{style:k(2)})):null}var fi=function(){return fi=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},fi.apply(this,arguments)},$o=function(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(n);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(n,i[r])&&(t[i[r]]=n[i[r]]);return t},Ho=et("SyncLoader",`33% {transform: translateY(10px)}
|
|
33
33
|
66% {transform: translateY(-10px)}
|
|
34
|
-
100% {transform: translateY(0)}`,"sync");function ss(i){var e=i.loading,t=e===void 0?!0:e,r=i.color,n=r===void 0?"#000000":r,s=i.speedMultiplier,a=s===void 0?1:s,o=i.cssOverride,l=o===void 0?{}:o,u=i.size,c=u===void 0?15:u,f=i.margin,p=f===void 0?2:f,m=ns(i,["loading","color","speedMultiplier","cssOverride","size","margin"]),g=Ht({display:"inherit"},l),h=function(_){return{backgroundColor:n,width:ne(c),height:ne(c),margin:ne(p),borderRadius:"100%",display:"inline-block",animation:"".concat(is," ").concat(.6/a,"s ").concat(_*.07,"s infinite ease-in-out"),animationFillMode:"both"}};return t?$.createElement("span",Ht({style:g},m),$.createElement("span",{style:h(1)}),$.createElement("span",{style:h(2)}),$.createElement("span",{style:h(3)})):null}const or=({variant:i="sync",color:e="#3B82F6",loading:t=!0,size:r="medium",className:n="",speedMultiplier:s=1})=>{const o=(()=>{if(typeof r=="number")return r;switch(r){case"small":return 20;case"medium":return 35;case"large":return 50;default:return 35}})(),l={color:e,loading:t,size:o,speedMultiplier:s,"aria-label":"Loading Spinner","data-testid":"spinner"},u=S("inline-block",n),c=()=>{switch(i){case"bounce":return d.jsx(Hi,{...l});case"dot":return d.jsx(Ji,{...l});case"grid":return d.jsx(es,{...l,size:o*.4});case"hash":return d.jsx(rs,{...l});case"sync":return d.jsx(ss,{...l,size:o*.4});case"clip":default:return d.jsx(Yi,{...l})}};return d.jsx("div",{className:u,children:c()})},Ut={default:{container:"",input:S("border-neutral-default-default text-neutral-default-default","focus:border-primary-default-default focus:border-2","hover:border-neutral-strong-default"),label:S("text-neutral-medium-default","peer-focus:text-primary-default-default"),icon:S("text-neutral-medium-default","peer-focus:text-primary-default-default")},error:{container:"",input:S("border-error-default-default text-neutral-default-default","focus:border-error-default focus:border-2","focus:ring-0 focus:ring-error-default/20"),label:S("text-error-light","peer-focus:text-error-light"),icon:S("text-error-light","peer-focus:text-error-light")},success:{container:"",input:S("border-success-default-default text-neutral-default-default","focus:border-success-default focus:border-2","focus:ring-0 focus:ring-success-default/20"),label:S("text-success","peer-focus:text-success-light"),icon:S("text-success-light","peer-focus:text-success-light")}},yt={small:{container:"text-sm",input:"h-10 px-3 text-sm",label:"text-xs peer-focus:text-xs peer-placeholder-shown:text-sm",icon:"w-4 h-4 right-3"},medium:{container:"text-base",input:"h-12 px-3 text-base",label:"text-sm peer-focus:text-sm peer-placeholder-shown:text-base",icon:"w-5 h-5 right-3"},large:{container:"text-lg",input:"h-14 px-3 text-lg",label:"text-sm peer-focus:text-sm peer-placeholder-shown:text-lg",icon:"w-6 h-6 right-3"}},as=({label:i,icon:e,onChange:t,value:r="",debounceMs:n=0,name:s,width:a="100%",height:o,variant:l="default",size:u="medium",disabled:c=!1,type:f="text",isFetching:p,errorMessage:m,helperText:g,required:h=!1,onFocus:_,onBlur:x})=>{const[v,b]=E.useState(r),[T]=Si.useDebounce(v,n),[y,j]=E.useState(!1),[C,O]=E.useState(!1);E.useEffect(()=>{n&&T!==r&&t(T)},[T,n,t,r]),E.useEffect(()=>{b(r)},[r]);const q=()=>{j(!0),_?.()},M=()=>{j(!1),x?.()},R=fe=>{const w=fe.target.value;b(w),n||t(w)},I=()=>{O(!C)},F={};a&&a!=="100%"&&(F.width=a),o&&(F.height=o);const z=v.length>0,H=l==="error"&&m,V=!H&&g,U=()=>y||z?"-top-2 left-2 scale-90":"top-1/2 -translate-y-1/2 scale-100",se=()=>o?{height:o}:{};return d.jsxs("div",{className:S("relative",yt[u].container,!a&&"w-full","bg-inherit"),style:F,children:[d.jsx("input",{id:s,name:s,type:f==="password"&&C?"text":f,value:v,className:S("peer w-full border-1 rounded-lg bg-transparent appearance-none transition-all duration-200 ease-in-out","placeholder:text-transparent focus:outline-none px-3",!o&&yt[u].input,o&&`px-3 ${yt[u].input.split(" ").filter(fe=>fe.startsWith("text-")).join(" ")}`,Ut[l].input,e&&"pr-10",c&&"bg-neutral-weak-default cursor-not-allowed opacity-60",Ut[l].container),style:se(),onChange:R,onFocus:q,onBlur:M,disabled:c,required:h}),d.jsx("label",{htmlFor:s,className:S("absolute left-3 transition-all duration-200 ease-in-out pointer-events-none bg-inherit px-1 z-10",!o&&yt[u].label,o&&"text-sm",Ut[l].label,U(),h&&"after:content-['*'] after:text-error-default after:ml-1"),children:i}),(e||f==="password"||p)&&d.jsx("div",{className:S("absolute top-1/2 -translate-y-1/2 flex items-center justify-center z-10",!o&&yt[u].icon,o&&"w-5 h-5 right-3",Ut[l].icon,f==="password"&&!p?"cursor-pointer":"pointer-events-none"),onClick:f==="password"&&!p?I:void 0,onMouseDown:fe=>f==="password"&&!p&&fe.preventDefault(),children:d.jsx(D.motion.div,{animate:y?{y:[-2,0],rotate:[0,-10,10,-10,10,0]}:{},transition:{duration:.6,ease:"easeInOut"},children:p&&f!=="password"?d.jsx("div",{className:"animate-spin",children:d.jsx(or,{size:24,color:"#7c86ff",loading:!0})}):f==="password"?C?d.jsx(le.EyeVisibility,{size:24,className:""}):d.jsx(le.EyeVisibilityOff,{size:24,className:""}):e})}),H&&d.jsx("p",{className:"mt-1 text-xs text-error-default",children:m}),V&&d.jsx("p",{className:"mt-1 text-xs text-neutral-medium-default",children:g})]})},os=E.memo(as),ls=({icon:i,iconPosition:e="left",label:t,className:r,containerClassName:n,id:s,type:a="text",...o})=>{const[l,u]=Rt.useField(o),[c,f]=E.useState(!1),[p,m]=E.useState(!1),g=u.touched&&u.error,h=l.value&&l.value.toString().length>0,_=a==="password",x=_?p?"text":"password":a,v=()=>c||h?"-top-3 left-2 scale-90":"top-1/2 -translate-y-1/2 scale-100",b=()=>_?i?e==="left"?"pl-10 pr-10":"pr-16":"pr-10":i?e==="left"?"pl-10":"pr-10":"",T=()=>i&&e==="left"?"left-10":"left-3",y=()=>{m(!p)};return d.jsxs("div",{className:S("relative w-full bg-inherit",n),children:[d.jsxs("div",{className:"relative bg-inherit",children:[d.jsx("input",{id:s||o.name,type:x,name:l.name,value:l.value||"",onChange:l.onChange,onFocus:()=>{f(!0),o.onFocus?.()},onBlur:j=>{f(!1),o.onBlur?.(),l.onBlur(j)},className:S("w-full px-3 h-12 text-left border-1 rounded-lg transition-all duration-200 ease-in-out text-neutral-default-default","bg-transparent focus:outline-none",c?"border-primary-default-default border-2":g?"border-error-default-default":"border-neutral-default-default hover:border-neutral-strong-default",b(),r)}),d.jsx("label",{htmlFor:s||o.name,className:S("absolute transition-all duration-200 ease-in-out pointer-events-none bg-inherit px-1 z-10","text-md",v(),h||c?"text-primary-default-default":g?"text-red-500":"text-neutral-medium-default",T()),children:t}),i&&d.jsx("div",{className:S("absolute top-1/2 -translate-y-1/2 text-neutral-medium-default",e==="left"?"left-3":"right-3"),children:i}),_&&d.jsx("button",{type:"button",onClick:y,className:S("absolute top-1/2 -translate-y-1/2 p-1 text-neutral-medium-default hover:text-neutral-strong-default","transition-colors duration-200 focus:outline-none focus:text-primary-default-default",i&&e==="right"?"right-8":"right-3"),tabIndex:-1,children:p?d.jsx(le.EyeVisibilityOff,{size:24,className:"text-neutral-default-default"}):d.jsx(le.EyeVisibility,{size:24,className:"text-neutral-default-default"})})]}),g&&d.jsx(Rt.ErrorMessage,{name:o.name,component:"span",className:"block text-error-default-default text-xs mt-1"})]})},us=()=>d.jsxs("div",{className:"container-logo w-[185px] h-[48px] flex items-center justify-center gap-1 bg-gradient-to-br from-[#312C85] to-[#1E1A4D] rounded-md",children:[d.jsx(le.TicketFilled,{size:28,className:"rotate-140 text-primary-medium-pressed icon-logo"}),d.jsx("span",{className:"font-bold text-[28px] text-primary-medium-pressed font-monserra -tracking-wide text-logo",children:"TICKETS"})]}),cs=Object.assign(({menuRef:i,children:e})=>d.jsx("div",{ref:i,className:"flex bg-neutral-default-default absolute bottom-10 left-30 border-1 border-neutral-strong-default h-auto w-60 rounded-md px-2",children:d.jsx(D.AnimatePresence,{mode:"wait",children:d.jsx(D.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1,transition:{height:{duration:.6,ease:"easeOut"},opacity:{duration:.4,delay:.2}}},exit:{height:0,opacity:0,transition:{height:{duration:.8,delay:.2,ease:"easeIn"},opacity:{duration:.3,delay:.1}}},className:"overflow-hidden flex flex-col justify-between items-center w-full",children:e})})}),{Divider:()=>d.jsx(D.motion.div,{className:"flex justify-center items-center w-full ",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.15,ease:"easeInOut"}},children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),Items:({onClick:i,children:e,className:t})=>d.jsx(D.motion.button,{onClick:i,className:S("flex py-2 w-full px-2 gap-1 rounded-md cursor-pointer mt-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",t),exit:{opacity:0,y:-8,scale:.96,transition:{duration:.5,delay:0,ease:"easeInOut"}},whileHover:{opacity:1,scale:[1,1.02,1],transition:{duration:.2}},whileTap:{scale:.98},children:e})});function ds({currentPage:i=1,totalPages:e=0,onPageChange:t}){const r=a=>{a>=1&&a<=e&&a!==i&&t?.(a)},s=(()=>{const a=[];if(e>7)if(a.push(1),i<=4){for(let l=2;l<=5;l++)a.push(l);a.push("ellipsis"),a.push(e)}else if(i>=e-3){a.push("ellipsis");for(let l=e-4;l<=e;l++)a.push(l)}else{a.push("ellipsis");for(let l=i-1;l<=i+1;l++)a.push(l);a.push("ellipsis"),a.push(e)}else for(let l=1;l<=e;l++)a.push(l);return a})();return d.jsxs("div",{className:"flex items-center justify-center gap-2 p-4",children:[d.jsx(D.motion.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>r(i-1),disabled:i===1,className:"px-4 py-2 text-primary-medium-default hover:text-primary-default-default disabled:text-gray-600 disabled:cursor-not-allowed transition-colors cursor-pointer",children:"Anterior"}),d.jsx("div",{className:"flex items-center gap-1 select-none",children:s.map((a,o)=>{if(a==="ellipsis")return d.jsx("span",{className:"px-3 py-2 text-neutral-default-default",children:"..."},`ellipsis-${o}`);const l=a,u=l===i;return d.jsxs(D.motion.button,{whileHover:u?{}:{scale:1.1},whileTap:u?{}:{scale:.9},onClick:()=>r(l),className:`relative px-3 py-2 min-w-[40px] text-center transition-colors ${u?"text-primary-default-default":"text-neutral-default-default hover:text-white cursor-pointer "}`,children:[u&&d.jsx(D.motion.div,{layoutId:"activePage",className:"absolute inset-0 border-1 border-primary-default-default rounded-md",initial:!1,transition:{type:"spring",stiffness:500,damping:30}}),d.jsx("span",{className:"relative z-10",children:l})]},l)})}),d.jsx(D.motion.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>r(i+1),disabled:i===e,className:"px-4 py-2 text-primary-medium-default hover:text-primary-default-default disabled:text-gray-600 disabled:cursor-not-allowed transition-colors cursor-pointer",children:"Siguiente"})]})}const fs=({label:i,onOptionClick:e,value:t=[],isFetching:r=!1,options:n,multiple:s=!0,onClear:a,onClose:o,className:l,id:u,emptyMessage:c="No hay opciones disponibles",optionValue:f,optionLabel:p,renderOption:m,renderSelection:g,containerClassName:h,buttonClassName:_,dropdownClassName:x,displayMode:v="compact",onRemoveOption:b,width:T="100%",height:y})=>{const[j,C]=E.useState(!1),[O,q]=E.useState(!1),M=E.useRef(null),R=t&&t.length>0,I=n?.filter(P=>t.includes(f(P))),F=()=>j||R||O?"-top-2 left-2 scale-90":"top-1/2 -translate-y-1/2 scale-100",z={};T&&T!=="100%"&&(z.width=T),y&&(z.height=y);const H=()=>y?{height:y}:{};E.useEffect(()=>{const P=re=>{M.current&&!M.current.contains(re.target)&&C(!1)};return j&&document.addEventListener("mousedown",P),()=>{document.removeEventListener("mousedown",P)}},[j]);const V=()=>{C(!j)},U=P=>{const re=f(P);e(re,P),!s&&o&&o()},se=P=>{P.stopPropagation(),q(!1),P.target.blur(),a?.()},fe=(P,re)=>{re?.stopPropagation();const ke=f(P);b?.(ke)},w=({option:P,onRemove:re})=>d.jsxs("div",{className:"inline-flex items-center gap-1 px-2 py-1 bg-primary-default-default text-white text-xs rounded-md",children:[d.jsx("span",{className:"truncate max-w-20",children:p(P)}),d.jsx("button",{onClick:ke=>re(P,ke),className:"flex-shrink-0 hover:bg-primary-strong-default rounded-sm p-0.5 transition-colors",type:"button",tabIndex:-1,children:d.jsx(le.Close,{size:12,className:""})})]}),k=({option:P,isSelected:re,onSelect:ke,isMultiple:ae})=>d.jsxs("div",{onClick:ke,className:S("px-3 py-2 cursor-pointer flex items-center transition-colors",re?"bg-primary-default-default text-white":"hover:bg-neutral-medium-selected text-neutral-default-default"),children:[ae&&d.jsx("input",{type:"checkbox",checked:re,onChange:()=>{},className:"mr-2 pointer-events-none"}),d.jsx("span",{children:p(P)})]}),Z=({selectedOptions:P})=>P?.length===0?null:v==="chips"&&s?d.jsx("div",{className:"flex items-center gap-1 flex-wrap py-1",children:P.map(re=>d.jsx(w,{option:re,onRemove:fe},f(re)))}):P?.length===1?d.jsx("span",{children:p(P[0])}):d.jsxs("span",{children:[P?.length," seleccionados"]}),Q=m||k,te=g||Z;return d.jsx("div",{className:S("relative bg-inherit",h,!T&&"w-full "),ref:M,style:z,children:d.jsxs("div",{className:S("relative bg-inherit",l),children:[d.jsxs("button",{id:u,type:"button",onClick:V,onFocus:()=>q(!0),onBlur:()=>q(!1),className:S("w-full px-3 text-left border-1 rounded-lg transition-all duration-200 ease-in-out","flex items-center justify-between bg-inherit","focus:outline-none",v==="chips"&&s&&R?"min-h-12 py-2":!y&&"h-12",j||O?"border-primary-default-default border-2":"border-neutral-default-default hover:border-neutral-strong-default",_),style:H(),children:[d.jsx("label",{htmlFor:u,className:S("absolute left-3 transition-all duration-200 ease-in-out pointer-events-none bg-inherit px-1 z-10","text-sm",F(),R||j||O?"text-primary-default-default":"text-neutral-medium-default"),children:i}),d.jsx("div",{className:"flex-1 min-w-0",children:d.jsx(te,{selectedOptions:I})}),d.jsxs("div",{className:"flex items-center gap-2 ml-2",children:[r&&d.jsx(or,{size:"small"}),R&&a&&d.jsx("button",{onClick:se,className:"text-neutral-medium-default hover:text-neutral-default-default transition-colors",type:"button",tabIndex:-1,children:d.jsx(le.Close,{size:16,className:""})}),d.jsx(le.ChevronDown,{size:20,className:S("transition-transform text-neutral-default-default",j?"rotate-180":"")})]})]}),j&&d.jsx("div",{className:S("absolute z-50 w-full mt-1 bg-neutral-default-default border border-neutral-default-default rounded-md shadow-lg","max-h-60 overflow-auto",x),children:n.length===0?d.jsx("div",{className:"px-3 py-2 text-neutral-medium-default",children:c}):n.map(P=>{const re=f(P),ke=t.includes(re);return d.jsx(Q,{option:P,isSelected:ke,onSelect:()=>U(P),isMultiple:s},re)})})]})})},hs=E.memo(fs),ps=E.forwardRef(({className:i,startDate:e,endDate:t,label:r,...n},s)=>{const a=new Date(e),o=new Date(t),l=new Date,u=1440*60*1e3,c=Math.ceil((o.getTime()-a.getTime())/u),f=Math.max(0,Math.floor((l.getTime()-a.getTime())/u)),p=Math.max(0,Math.ceil((o.getTime()-l.getTime())/u)),m=Math.min(Math.max(f/c*100,0),100),g=l>o,h=l<a;let _=r;return r||(g?_=`Vencido hace ${Math.ceil((l.getTime()-o.getTime())/u)} días`:h?_=`Comienza en ${Math.ceil((a.getTime()-l.getTime())/u)} días`:_=`Faltan ${p} días`),d.jsxs("div",{ref:s,className:i,...n,children:[d.jsxs("div",{className:"flex justify-between items-center text-white mb-2",children:[d.jsxs("div",{className:"flex flex-col gap-2",children:[d.jsx("span",{className:"text-sm text-neutral-medium-default",children:"Tiempo restante"}),d.jsx("span",{className:"text-semibold text-md text-neutral-default-default",children:_})]}),d.jsxs("span",{className:"text-sm text-gray-400",children:[f," / ",c," días"]})]}),d.jsx("div",{className:"w-full border-neutral-strong-default border-1 rounded-sm h-[14px]",children:d.jsx("div",{className:S("h-[14px] rounded-sm transition-all duration-300",g?"bg-red-500":"bg-primary-default-default"),style:{width:`${m}%`}})})]})}),ms=({children:i})=>d.jsxs("div",{className:"w-full h-full bg-neutral-strong-default",children:[i,d.jsx("main",{className:"w-full h-full overflow-y-auto",children:d.jsx(ki.Outlet,{})})]}),on=E.createContext(null),_s=({children:i})=>{const e=E.useRef(null),t=r=>{r.current&&e&&(e.current=r.current)};return d.jsx(on.Provider,{value:{primarySidebarRef:e,registerPrimarySidebar:t},children:i})},ln=()=>{const i=E.useContext(on);if(!i)throw new Error("useSidebarContext must be used within a SidebarProvider");return i};function Re(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function un(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,i.__proto__=e}/*!
|
|
34
|
+
100% {transform: translateY(0)}`,"sync");function Vo(n){var e=n.loading,t=e===void 0?!0:e,i=n.color,r=i===void 0?"#000000":i,a=n.speedMultiplier,o=a===void 0?1:a,s=n.cssOverride,l=s===void 0?{}:s,c=n.size,p=c===void 0?15:c,d=n.margin,m=d===void 0?2:d,h=$o(n,["loading","color","speedMultiplier","cssOverride","size","margin"]),_=fi({display:"inherit"},l),f=function(x){return{backgroundColor:r,width:_e(p),height:_e(p),margin:_e(m),borderRadius:"100%",display:"inline-block",animation:"".concat(Ho," ").concat(.6/o,"s ").concat(x*.07,"s infinite ease-in-out"),animationFillMode:"both"}};return t?se.createElement("span",fi({style:_},h),se.createElement("span",{style:f(1)}),se.createElement("span",{style:f(2)}),se.createElement("span",{style:f(3)})):null}const Li=({variant:n="sync",color:e="#3B82F6",loading:t=!0,size:i="medium",className:r="",speedMultiplier:a=1})=>{const s=(()=>{if(typeof i=="number")return i;switch(i){case"small":return 20;case"medium":return 35;case"large":return 50;default:return 35}})(),l={color:e,loading:t,size:s,speedMultiplier:a,"aria-label":"Loading Spinner","data-testid":"spinner"},c=M("inline-block",r),p=()=>{switch(n){case"bounce":return u.jsx(Eo,{...l});case"dot":return u.jsx(Fo,{...l});case"grid":return u.jsx(Lo,{...l,size:s*.4});case"hash":return u.jsx(Bo,{...l});case"sync":return u.jsx(Vo,{...l,size:s*.4});case"clip":default:return u.jsx(Do,{...l})}};return u.jsx("div",{className:c,children:p()})},mi={default:{container:"",input:M("border-neutral-default-default text-neutral-default-default","focus:border-primary-default-default focus:border-2","hover:border-neutral-strong-default"),label:M("text-neutral-medium-default","peer-focus:text-primary-default-default"),icon:M("text-neutral-medium-default","peer-focus:text-primary-default-default")},error:{container:"",input:M("border-error-default-default text-neutral-default-default","focus:border-error-default focus:border-2","focus:ring-0 focus:ring-error-default/20"),label:M("text-error-light","peer-focus:text-error-light"),icon:M("text-error-light","peer-focus:text-error-light")},success:{container:"",input:M("border-success-default-default text-neutral-default-default","focus:border-success-default focus:border-2","focus:ring-0 focus:ring-success-default/20"),label:M("text-success","peer-focus:text-success-light"),icon:M("text-success-light","peer-focus:text-success-light")}},Lt={small:{container:"text-sm",input:"h-10 px-3 text-sm",label:"text-xs peer-focus:text-xs peer-placeholder-shown:text-sm",icon:"w-4 h-4 right-3"},medium:{container:"text-base",input:"h-12 px-3 text-base",label:"text-sm peer-focus:text-sm peer-placeholder-shown:text-base",icon:"w-5 h-5 right-3"},large:{container:"text-lg",input:"h-14 px-3 text-lg",label:"text-sm peer-focus:text-sm peer-placeholder-shown:text-lg",icon:"w-6 h-6 right-3"}},Yo=({label:n,icon:e,onChange:t,value:i="",debounceMs:r=0,name:a,width:o="100%",height:s,variant:l="default",size:c="medium",disabled:p=!1,type:d="text",isFetching:m,errorMessage:h,helperText:_,required:f=!1,onFocus:x,onBlur:y})=>{const[b,w]=A.useState(i),[T]=mo.useDebounce(b,r),[g,k]=A.useState(!1),[S,C]=A.useState(!1);A.useEffect(()=>{r&&T!==i&&t(T)},[T,r,t,i]),A.useEffect(()=>{w(i)},[i]);const O=()=>{k(!0),x?.()},Z=()=>{k(!1),y?.()},H=ee=>{const v=ee.target.value;w(v),r||t(v)},U=()=>{C(!S)},V={};o&&o!=="100%"&&(V.width=o),s&&(V.height=s);const L=b.length>0,Y=l==="error"&&h,X=!Y&&_,K=()=>g||L?"-top-2 left-2 scale-90":"top-1/2 -translate-y-1/2 scale-100",oe=()=>s?{height:s}:{};return u.jsxs("div",{className:M("relative",Lt[c].container,!o&&"w-full","bg-inherit"),style:V,children:[u.jsx("input",{id:a,name:a,type:d==="password"&&S?"text":d,value:b,className:M("peer w-full border-1 rounded-lg bg-transparent appearance-none transition-all duration-200 ease-in-out","placeholder:text-transparent focus:outline-none px-3",!s&&Lt[c].input,s&&`px-3 ${Lt[c].input.split(" ").filter(ee=>ee.startsWith("text-")).join(" ")}`,mi[l].input,e&&"pr-10",p&&"bg-neutral-weak-default cursor-not-allowed opacity-60",mi[l].container),style:oe(),onChange:H,onFocus:O,onBlur:Z,disabled:p,required:f}),u.jsx("label",{htmlFor:a,className:M("absolute left-3 transition-all duration-200 ease-in-out pointer-events-none bg-inherit px-1 z-10",!s&&Lt[c].label,s&&"text-sm",mi[l].label,K(),f&&"after:content-['*'] after:text-error-default after:ml-1"),children:n}),(e||d==="password"||m)&&u.jsx("div",{className:M("absolute top-1/2 -translate-y-1/2 flex items-center justify-center z-10",!s&&Lt[c].icon,s&&"w-5 h-5 right-3",mi[l].icon,d==="password"&&!m?"cursor-pointer":"pointer-events-none"),onClick:d==="password"&&!m?U:void 0,onMouseDown:ee=>d==="password"&&!m&&ee.preventDefault(),children:u.jsx(Q.motion.div,{animate:g?{y:[-2,0],rotate:[0,-10,10,-10,10,0]}:{},transition:{duration:.6,ease:"easeInOut"},children:m&&d!=="password"?u.jsx("div",{className:"animate-spin",children:u.jsx(Li,{size:24,color:"#7c86ff",loading:!0})}):d==="password"?S?u.jsx(ge.EyeVisibility,{size:24,className:""}):u.jsx(ge.EyeVisibilityOff,{size:24,className:""}):e})}),Y&&u.jsx("p",{className:"mt-1 text-xs text-error-default",children:h}),X&&u.jsx("p",{className:"mt-1 text-xs text-neutral-medium-default",children:_})]})},Uo=A.memo(Yo),Wo=({icon:n,iconPosition:e="left",label:t,className:i,containerClassName:r,id:a,type:o="text",...s})=>{const[l,c]=ri.useField(s),[p,d]=A.useState(!1),[m,h]=A.useState(!1),_=c.touched&&c.error,f=l.value&&l.value.toString().length>0,x=o==="password",y=x?m?"text":"password":o,b=()=>p||f?"-top-3 left-2 scale-90":"top-1/2 -translate-y-1/2 scale-100",w=()=>x?n?e==="left"?"pl-10 pr-10":"pr-16":"pr-10":n?e==="left"?"pl-10":"pr-10":"",T=()=>n&&e==="left"?"left-10":"left-3",g=()=>{h(!m)};return u.jsxs("div",{className:M("relative w-full bg-inherit",r),children:[u.jsxs("div",{className:"relative bg-inherit",children:[u.jsx("input",{id:a||s.name,type:y,name:l.name,value:l.value||"",onChange:l.onChange,onFocus:()=>{d(!0),s.onFocus?.()},onBlur:k=>{d(!1),s.onBlur?.(),l.onBlur(k)},className:M("w-full px-3 h-12 text-left border-1 rounded-lg transition-all duration-200 ease-in-out text-neutral-default-default","bg-transparent focus:outline-none",p?"border-primary-default-default border-2":_?"border-error-default-default":"border-neutral-default-default hover:border-neutral-strong-default",w(),i)}),u.jsx("label",{htmlFor:a||s.name,className:M("absolute transition-all duration-200 ease-in-out pointer-events-none bg-inherit px-1 z-10","text-md",b(),f||p?"text-primary-default-default":_?"text-red-500":"text-neutral-medium-default",T()),children:t}),n&&u.jsx("div",{className:M("absolute top-1/2 -translate-y-1/2 text-neutral-medium-default",e==="left"?"left-3":"right-3"),children:n}),x&&u.jsx("button",{type:"button",onClick:g,className:M("absolute top-1/2 -translate-y-1/2 p-1 text-neutral-medium-default hover:text-neutral-strong-default","transition-colors duration-200 focus:outline-none focus:text-primary-default-default",n&&e==="right"?"right-8":"right-3"),tabIndex:-1,children:m?u.jsx(ge.EyeVisibilityOff,{size:24,className:"text-neutral-default-default"}):u.jsx(ge.EyeVisibility,{size:24,className:"text-neutral-default-default"})})]}),_&&u.jsx(ri.ErrorMessage,{name:s.name,component:"span",className:"block text-error-default-default text-xs mt-1"})]})},Xo=()=>u.jsxs("div",{className:"container-logo w-[185px] h-[48px] flex items-center justify-center gap-1 bg-gradient-to-br from-[#312C85] to-[#1E1A4D] rounded-md",children:[u.jsx(ge.TicketFilled,{size:28,className:"rotate-140 text-primary-medium-pressed icon-logo"}),u.jsx("span",{className:"font-bold text-[28px] text-primary-medium-pressed font-monserra -tracking-wide text-logo",children:"TICKETS"})]}),Go=Object.assign(({menuRef:n,children:e})=>u.jsx("div",{ref:n,className:"flex bg-neutral-default-default absolute bottom-10 left-30 border-1 border-neutral-strong-default h-auto w-60 rounded-md px-2",children:u.jsx(Q.AnimatePresence,{mode:"wait",children:u.jsx(Q.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1,transition:{height:{duration:.6,ease:"easeOut"},opacity:{duration:.4,delay:.2}}},exit:{height:0,opacity:0,transition:{height:{duration:.8,delay:.2,ease:"easeIn"},opacity:{duration:.3,delay:.1}}},className:"overflow-hidden flex flex-col justify-between items-center w-full",children:e})})}),{Divider:()=>u.jsx(Q.motion.div,{className:"flex justify-center items-center w-full ",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.15,ease:"easeInOut"}},children:u.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),Items:({onClick:n,children:e,className:t})=>u.jsx(Q.motion.button,{onClick:n,className:M("flex py-2 w-full px-2 gap-1 rounded-md cursor-pointer mt-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",t),exit:{opacity:0,y:-8,scale:.96,transition:{duration:.5,delay:0,ease:"easeInOut"}},whileHover:{opacity:1,scale:[1,1.02,1],transition:{duration:.2}},whileTap:{scale:.98},children:e})});function Ko({currentPage:n=1,totalPages:e=0,onPageChange:t}){const i=o=>{o>=1&&o<=e&&o!==n&&t?.(o)},a=(()=>{const o=[];if(e>7)if(o.push(1),n<=4){for(let l=2;l<=5;l++)o.push(l);o.push("ellipsis"),o.push(e)}else if(n>=e-3){o.push("ellipsis");for(let l=e-4;l<=e;l++)o.push(l)}else{o.push("ellipsis");for(let l=n-1;l<=n+1;l++)o.push(l);o.push("ellipsis"),o.push(e)}else for(let l=1;l<=e;l++)o.push(l);return o})();return u.jsxs("div",{className:"flex items-center justify-center gap-2 p-4",children:[u.jsx(Q.motion.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>i(n-1),disabled:n===1,className:"px-4 py-2 text-primary-medium-default hover:text-primary-default-default disabled:text-gray-600 disabled:cursor-not-allowed transition-colors cursor-pointer",children:"Anterior"}),u.jsx("div",{className:"flex items-center gap-1 select-none",children:a.map((o,s)=>{if(o==="ellipsis")return u.jsx("span",{className:"px-3 py-2 text-neutral-default-default",children:"..."},`ellipsis-${s}`);const l=o,c=l===n;return u.jsxs(Q.motion.button,{whileHover:c?{}:{scale:1.1},whileTap:c?{}:{scale:.9},onClick:()=>i(l),className:`relative px-3 py-2 min-w-[40px] text-center transition-colors ${c?"text-primary-default-default":"text-neutral-default-default hover:text-white cursor-pointer "}`,children:[c&&u.jsx(Q.motion.div,{layoutId:"activePage",className:"absolute inset-0 border-1 border-primary-default-default rounded-md",initial:!1,transition:{type:"spring",stiffness:500,damping:30}}),u.jsx("span",{className:"relative z-10",children:l})]},l)})}),u.jsx(Q.motion.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>i(n+1),disabled:n===e,className:"px-4 py-2 text-primary-medium-default hover:text-primary-default-default disabled:text-gray-600 disabled:cursor-not-allowed transition-colors cursor-pointer",children:"Siguiente"})]})}const Jo=A.forwardRef(({className:n,startDate:e,endDate:t,label:i,...r},a)=>{const o=new Date(e),s=new Date(t),l=new Date,c=1440*60*1e3,p=Math.ceil((s.getTime()-o.getTime())/c),d=Math.max(0,Math.floor((l.getTime()-o.getTime())/c)),m=Math.max(0,Math.ceil((s.getTime()-l.getTime())/c)),h=Math.min(Math.max(d/p*100,0),100),_=l>s,f=l<o;let x=i;return i||(_?x=`Vencido hace ${Math.ceil((l.getTime()-s.getTime())/c)} días`:f?x=`Comienza en ${Math.ceil((o.getTime()-l.getTime())/c)} días`:x=`Faltan ${m} días`),u.jsxs("div",{ref:a,className:n,...r,children:[u.jsxs("div",{className:"flex justify-between items-center text-white mb-2",children:[u.jsxs("div",{className:"flex flex-col gap-2",children:[u.jsx("span",{className:"text-sm text-neutral-medium-default",children:"Tiempo restante"}),u.jsx("span",{className:"text-semibold text-md text-neutral-default-default",children:x})]}),u.jsxs("span",{className:"text-sm text-gray-400",children:[d," / ",p," días"]})]}),u.jsx("div",{className:"w-full border-neutral-strong-default border-1 rounded-sm h-[14px]",children:u.jsx("div",{className:M("h-[14px] rounded-sm transition-all duration-300",_?"bg-red-500":"bg-primary-default-default"),style:{width:`${h}%`}})})]})}),Qo=({label:n,onOptionClick:e,value:t=[],isFetching:i=!1,options:r,multiple:a=!0,onClear:o,onClose:s,className:l,id:c,emptyMessage:p="No hay opciones disponibles",optionValue:d,optionLabel:m,renderOption:h,renderSelection:_,containerClassName:f,buttonClassName:x,dropdownClassName:y,displayMode:b="compact",onRemoveOption:w,width:T="100%",height:g})=>{const[k,S]=A.useState(!1),[C,O]=A.useState(!1),Z=A.useRef(null),H=t&&t.length>0,U=r?.filter(q=>t.includes(d(q))),V=()=>k||H||C?"-top-2 left-2 scale-90":"top-1/2 -translate-y-1/2 scale-100",L={};T&&T!=="100%"&&(L.width=T),g&&(L.height=g);const Y=()=>g?{height:g}:{};A.useEffect(()=>{const q=R=>{Z.current&&!Z.current.contains(R.target)&&S(!1)};return k&&document.addEventListener("mousedown",q),()=>{document.removeEventListener("mousedown",q)}},[k]);const X=()=>{S(!k)},K=q=>{const R=d(q);e(R,q),!a&&s&&s()},oe=q=>{q.stopPropagation(),O(!1),q.target.blur(),o?.()},ee=(q,R)=>{R?.stopPropagation();const I=d(q);w?.(I)},v=({option:q,onRemove:R})=>u.jsxs("div",{className:"inline-flex items-center gap-1 px-2 py-1 bg-primary-default-default text-white text-xs rounded-md",children:[u.jsx("span",{className:"truncate max-w-20",children:m(q)}),u.jsx("button",{onClick:I=>R(q,I),className:"flex-shrink-0 hover:bg-primary-strong-default rounded-sm p-0.5 transition-colors",type:"button",tabIndex:-1,children:u.jsx(ge.Close,{size:12,className:""})})]}),j=({option:q,isSelected:R,onSelect:I,isMultiple:z})=>u.jsxs("div",{onClick:I,className:M("px-3 py-2 cursor-pointer flex items-center transition-colors",R?"bg-primary-default-default text-white":"hover:bg-neutral-medium-selected text-neutral-default-default"),children:[z&&u.jsx("input",{type:"checkbox",checked:R,onChange:()=>{},className:"mr-2 pointer-events-none"}),u.jsx("span",{children:m(q)})]}),P=({selectedOptions:q})=>q?.length===0?null:b==="chips"&&a?u.jsx("div",{className:"flex items-center gap-1 flex-wrap py-1",children:q.map(R=>u.jsx(v,{option:R,onRemove:ee},d(R)))}):q?.length===1?u.jsx("span",{children:m(q[0])}):u.jsxs("span",{children:[q?.length," seleccionados"]}),F=h||j,N=_||P;return u.jsx("div",{className:M("relative bg-inherit",f,!T&&"w-full "),ref:Z,style:L,children:u.jsxs("div",{className:M("relative bg-inherit",l),children:[u.jsxs("button",{id:c,type:"button",onClick:X,onFocus:()=>O(!0),onBlur:()=>O(!1),className:M("w-full px-3 text-left border-1 rounded-lg transition-all duration-200 ease-in-out","flex items-center justify-between bg-inherit","focus:outline-none",b==="chips"&&a&&H?"min-h-12 py-2":!g&&"h-12",k||C?"border-primary-default-default border-2":"border-neutral-default-default hover:border-neutral-strong-default",x),style:Y(),children:[u.jsx("label",{htmlFor:c,className:M("absolute left-3 transition-all duration-200 ease-in-out pointer-events-none bg-inherit px-1 z-10","text-sm",V(),H||k||C?"text-primary-default-default":"text-neutral-medium-default"),children:n}),u.jsx("div",{className:"flex-1 min-w-0",children:u.jsx(N,{selectedOptions:U})}),u.jsxs("div",{className:"flex items-center gap-2 ml-2",children:[i&&u.jsx(Li,{size:"small"}),H&&o&&u.jsx("button",{onClick:oe,className:"text-neutral-medium-default hover:text-neutral-default-default transition-colors",type:"button",tabIndex:-1,children:u.jsx(ge.Close,{size:16,className:""})}),u.jsx(ge.ChevronDown,{size:20,className:M("transition-transform text-neutral-default-default",k?"rotate-180":"")})]})]}),k&&u.jsx("div",{className:M("absolute z-50 w-full mt-1 bg-neutral-default-default border border-neutral-default-default rounded-md shadow-lg","max-h-60 overflow-auto",y),children:r.length===0?u.jsx("div",{className:"px-3 py-2 text-neutral-medium-default",children:p}):r.map(q=>{const R=d(q),I=t.includes(R);return u.jsx(F,{option:q,isSelected:I,onSelect:()=>K(q),isMultiple:a},R)})})]})})},es=A.memo(Qo),ts=({children:n})=>u.jsxs("div",{className:"w-full h-full bg-neutral-strong-default",children:[n,u.jsx("main",{className:"w-full h-full overflow-y-auto",children:u.jsx(ho.Outlet,{})})]}),cr=A.createContext(null),is=({children:n})=>{const e=A.useRef(null),t=i=>{i.current&&e&&(e.current=i.current)};return u.jsx(cr.Provider,{value:{primarySidebarRef:e,registerPrimarySidebar:t},children:n})},pr=()=>{const n=A.useContext(cr);if(!n)throw new Error("useSidebarContext must be used within a SidebarProvider");return n};function Ge(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function ur(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e}/*!
|
|
35
35
|
* GSAP 3.13.0
|
|
36
36
|
* https://gsap.com
|
|
37
37
|
*
|
|
38
38
|
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
|
39
39
|
* Subject to the terms at https://gsap.com/standard-license
|
|
40
40
|
* @author: Jack Doyle, jack@greensock.com
|
|
41
|
-
*/var ve={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},it={duration:.5,overwrite:!1,delay:0},lr,oe,Y,qe=1e8,L=1/qe,ur=Math.PI*2,gs=ur/4,vs=0,cn=Math.sqrt,xs=Math.cos,ys=Math.sin,ie=function(e){return typeof e=="string"},G=function(e){return typeof e=="function"},De=function(e){return typeof e=="number"},cr=function(e){return typeof e>"u"},Pe=function(e){return typeof e=="object"},he=function(e){return e!==!1},dr=function(){return typeof window<"u"},$t=function(e){return G(e)||ie(e)},dn=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},ue=Array.isArray,fr=/(?:-?\.?\d|\.)+/gi,fn=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,st=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,hr=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,hn=/[+-]=-?[.\d]+/,pn=/[^,'"\[\]\s]+/gi,bs=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,W,Ne,pr,mr,xe={},Yt={},mn,_n=function(e){return(Yt=ot(e,xe))&&_e},_r=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},bt=function(e,t){return!t&&console.warn(e)},gn=function(e,t){return e&&(xe[e]=t)&&Yt&&(Yt[e]=t)||xe},wt=function(){return 0},ws={suppressEvents:!0,isStart:!0,kill:!1},Wt={suppressEvents:!0,kill:!1},Ts={suppressEvents:!0},gr={},Le=[],vr={},vn,ye={},xr={},xn=30,Xt=[],yr="",br=function(e){var t=e[0],r,n;if(Pe(t)||G(t)||(e=[e]),!(r=(t._gsap||{}).harness)){for(n=Xt.length;n--&&!Xt[n].targetTest(t););r=Xt[n]}for(n=e.length;n--;)e[n]&&(e[n]._gsap||(e[n]._gsap=new Wn(e[n],r)))||e.splice(n,1);return e},We=function(e){return e._gsap||br(Oe(e))[0]._gsap},yn=function(e,t,r){return(r=e[t])&&G(r)?e[t]():cr(r)&&e.getAttribute&&e.getAttribute(t)||r},pe=function(e,t){return(e=e.split(",")).forEach(t)||e},J=function(e){return Math.round(e*1e5)/1e5||0},K=function(e){return Math.round(e*1e7)/1e7||0},at=function(e,t){var r=t.charAt(0),n=parseFloat(t.substr(2));return e=parseFloat(e),r==="+"?e+n:r==="-"?e-n:r==="*"?e*n:e/n},js=function(e,t){for(var r=t.length,n=0;e.indexOf(t[n])<0&&++n<r;);return n<r},Gt=function(){var e=Le.length,t=Le.slice(0),r,n;for(vr={},Le.length=0,r=0;r<e;r++)n=t[r],n&&n._lazy&&(n.render(n._lazy[0],n._lazy[1],!0)._lazy=0)},wr=function(e){return!!(e._initted||e._startAt||e.add)},bn=function(e,t,r,n){Le.length&&!oe&&Gt(),e.render(t,r,!!(oe&&t<0&&wr(e))),Le.length&&!oe&&Gt()},wn=function(e){var t=parseFloat(e);return(t||t===0)&&(e+"").match(pn).length<2?t:ie(e)?e.trim():e},Tn=function(e){return e},be=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},qs=function(e){return function(t,r){for(var n in r)n in t||n==="duration"&&e||n==="ease"||(t[n]=r[n])}},ot=function(e,t){for(var r in t)e[r]=t[r];return e},jn=function i(e,t){for(var r in t)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(e[r]=Pe(t[r])?i(e[r]||(e[r]={}),t[r]):t[r]);return e},Jt=function(e,t){var r={},n;for(n in e)n in t||(r[n]=e[n]);return r},Tt=function(e){var t=e.parent||W,r=e.keyframes?qs(ue(e.keyframes)):be;if(he(e.inherit))for(;t;)r(e,t.vars.defaults),t=t.parent||t._dp;return e},Cs=function(e,t){for(var r=e.length,n=r===t.length;n&&r--&&e[r]===t[r];);return r<0},qn=function(e,t,r,n,s){var a=e[n],o;if(s)for(o=t[s];a&&a[s]>o;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[r],e[r]=t),t._next?t._next._prev=t:e[n]=t,t._prev=a,t.parent=t._dp=e,t},Qt=function(e,t,r,n){r===void 0&&(r="_first"),n===void 0&&(n="_last");var s=t._prev,a=t._next;s?s._next=a:e[r]===t&&(e[r]=a),a?a._prev=s:e[n]===t&&(e[n]=s),t._next=t._prev=t.parent=null},Be=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Xe=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},Os=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Tr=function(e,t,r,n){return e._startAt&&(oe?e._startAt.revert(Wt):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,n))},Ss=function i(e){return!e||e._ts&&i(e.parent)},Cn=function(e){return e._repeat?lt(e._tTime,e=e.duration()+e._rDelay)*e:0},lt=function(e,t){var r=Math.floor(e=K(e/t));return e&&r===e?r-1:r},Kt=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},er=function(e){return e._end=K(e._start+(e._tDur/Math.abs(e._ts||e._rts||L)||0))},tr=function(e,t){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=K(r._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),er(e),r._dirty||Xe(r,e)),e},On=function(e,t){var r;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(r=Kt(e.rawTime(),t),(!t._dur||qt(0,t.totalDuration(),r)-t._tTime>L)&&t.render(r,!0)),Xe(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-L}},Ee=function(e,t,r,n){return t.parent&&Be(t),t._start=K((De(r)?r:r||e!==W?Ce(e,r,t):e._time)+t._delay),t._end=K(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),qn(e,t,"_first","_last",e._sort?"_start":0),jr(t)||(e._recent=t),n||On(e,t),e._ts<0&&tr(e,e._tTime),e},Sn=function(e,t){return(xe.ScrollTrigger||_r("scrollTrigger",t))&&xe.ScrollTrigger.create(t,e)},kn=function(e,t,r,n,s){if(Mr(e,t,s),!e._initted)return 1;if(!r&&e._pt&&!oe&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&vn!==Te.frame)return Le.push(e),e._lazy=[s,n],1},ks=function i(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||i(t))},jr=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},Ps=function(e,t,r,n){var s=e.ratio,a=t<0||!t&&(!e._start&&ks(e)&&!(!e._initted&&jr(e))||(e._ts<0||e._dp._ts<0)&&!jr(e))?0:1,o=e._rDelay,l=0,u,c,f;if(o&&e._repeat&&(l=qt(0,e._tDur,t),c=lt(l,o),e._yoyo&&c&1&&(a=1-a),c!==lt(e._tTime,o)&&(s=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==s||oe||n||e._zTime===L||!t&&e._zTime){if(!e._initted&&kn(e,t,n,r,l))return;for(f=e._zTime,e._zTime=t||(r?L:0),r||(r=t&&!f),e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=l,u=e._pt;u;)u.r(a,u.d),u=u._next;t<0&&Tr(e,t,r,!0),e._onUpdate&&!r&&we(e,"onUpdate"),l&&e._repeat&&!r&&e.parent&&we(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&Be(e,1),!r&&!oe&&(we(e,a?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},Ns=function(e,t,r){var n;if(r>t)for(n=e._first;n&&n._start<=r;){if(n.data==="isPause"&&n._start>t)return n;n=n._next}else for(n=e._last;n&&n._start>=r;){if(n.data==="isPause"&&n._start<t)return n;n=n._prev}},ut=function(e,t,r,n){var s=e._repeat,a=K(t)||0,o=e._tTime/e._tDur;return o&&!n&&(e._time*=a/e._dur),e._dur=a,e._tDur=s?s<0?1e10:K(a*(s+1)+e._rDelay*s):a,o>0&&!n&&tr(e,e._tTime=e._tDur*o),e.parent&&er(e),r||Xe(e.parent,e),e},Pn=function(e){return e instanceof de?Xe(e):ut(e,e._dur)},Es={_start:0,endTime:wt,totalDuration:wt},Ce=function i(e,t,r){var n=e.labels,s=e._recent||Es,a=e.duration()>=qe?s.endTime(!1):e._dur,o,l,u;return ie(t)&&(isNaN(t)||t in n)?(l=t.charAt(0),u=t.substr(-1)==="%",o=t.indexOf("="),l==="<"||l===">"?(o>=0&&(t=t.replace(/=/,"")),(l==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(t.substr(1))||0)*(u?(o<0?s:r).totalDuration()/100:1)):o<0?(t in n||(n[t]=a),n[t]):(l=parseFloat(t.charAt(o-1)+t.substr(o+1)),u&&r&&(l=l/100*(ue(r)?r[0]:r).totalDuration()),o>1?i(e,t.substr(0,o-1),r)+l:a+l)):t==null?a:+t},jt=function(e,t,r){var n=De(t[1]),s=(n?2:1)+(e<2?0:1),a=t[s],o,l;if(n&&(a.duration=t[1]),a.parent=r,e){for(o=a,l=r;l&&!("immediateRender"in o);)o=l.vars.defaults||{},l=he(l.vars.inherit)&&l.parent;a.immediateRender=he(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[s-1]}return new ee(t[0],a,t[s+1])},ze=function(e,t){return e||e===0?t(e):t},qt=function(e,t,r){return r<e?e:r>t?t:r},ce=function(e,t){return!ie(e)||!(t=bs.exec(e))?"":t[1]},Ms=function(e,t,r){return ze(r,function(n){return qt(e,t,n)})},qr=[].slice,Nn=function(e,t){return e&&Pe(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&Pe(e[0]))&&!e.nodeType&&e!==Ne},As=function(e,t,r){return r===void 0&&(r=[]),e.forEach(function(n){var s;return ie(n)&&!t||Nn(n,1)?(s=r).push.apply(s,Oe(n)):r.push(n)})||r},Oe=function(e,t,r){return Y&&!t&&Y.selector?Y.selector(e):ie(e)&&!r&&(pr||!dt())?qr.call((t||mr).querySelectorAll(e),0):ue(e)?As(e,r):Nn(e)?qr.call(e,0):e?[e]:[]},Cr=function(e){return e=Oe(e)[0]||bt("Invalid scope")||{},function(t){var r=e.current||e.nativeElement||e;return Oe(t,r.querySelectorAll?r:r===e?bt("Invalid scope")||mr.createElement("div"):e)}},En=function(e){return e.sort(function(){return .5-Math.random()})},Mn=function(e){if(G(e))return e;var t=Pe(e)?e:{each:e},r=Ge(t.ease),n=t.from||0,s=parseFloat(t.base)||0,a={},o=n>0&&n<1,l=isNaN(n)||o,u=t.axis,c=n,f=n;return ie(n)?c=f={center:.5,edges:.5,end:1}[n]||0:!o&&l&&(c=n[0],f=n[1]),function(p,m,g){var h=(g||t).length,_=a[h],x,v,b,T,y,j,C,O,q;if(!_){if(q=t.grid==="auto"?0:(t.grid||[1,qe])[1],!q){for(C=-qe;C<(C=g[q++].getBoundingClientRect().left)&&q<h;);q<h&&q--}for(_=a[h]=[],x=l?Math.min(q,h)*c-.5:n%q,v=q===qe?0:l?h*f/q-.5:n/q|0,C=0,O=qe,j=0;j<h;j++)b=j%q-x,T=v-(j/q|0),_[j]=y=u?Math.abs(u==="y"?T:b):cn(b*b+T*T),y>C&&(C=y),y<O&&(O=y);n==="random"&&En(_),_.max=C-O,_.min=O,_.v=h=(parseFloat(t.amount)||parseFloat(t.each)*(q>h?h-1:u?u==="y"?h/q:q:Math.max(q,h/q))||0)*(n==="edges"?-1:1),_.b=h<0?s-h:s,_.u=ce(t.amount||t.each)||0,r=r&&h<0?Un(r):r}return h=(_[p]-_.min)/_.max||0,K(_.b+(r?r(h):h)*_.v)+_.u}},Or=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var n=K(Math.round(parseFloat(r)/e)*e*t);return(n-n%1)/t+(De(r)?0:ce(r))}},An=function(e,t){var r=ue(e),n,s;return!r&&Pe(e)&&(n=r=e.radius||qe,e.values?(e=Oe(e.values),(s=!De(e[0]))&&(n*=n)):e=Or(e.increment)),ze(t,r?G(e)?function(a){return s=e(a),Math.abs(s-a)<=n?s:a}:function(a){for(var o=parseFloat(s?a.x:a),l=parseFloat(s?a.y:0),u=qe,c=0,f=e.length,p,m;f--;)s?(p=e[f].x-o,m=e[f].y-l,p=p*p+m*m):p=Math.abs(e[f]-o),p<u&&(u=p,c=f);return c=!n||u<=n?e[c]:a,s||c===a||De(a)?c:c+ce(a)}:Or(e))},Rn=function(e,t,r,n){return ze(ue(e)?!t:r===!0?!!(r=0):!n,function(){return ue(e)?e[~~(Math.random()*e.length)]:(r=r||1e-5)&&(n=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(t-e+r*.99))/r)*r*n)/n})},Rs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduce(function(s,a){return a(s)},n)}},Ds=function(e,t){return function(r){return e(parseFloat(r))+(t||ce(r))}},Fs=function(e,t,r){return Fn(e,t,0,1,r)},Dn=function(e,t,r){return ze(r,function(n){return e[~~t(n)]})},Is=function i(e,t,r){var n=t-e;return ue(e)?Dn(e,i(0,e.length),t):ze(r,function(s){return(n+(s-e)%n)%n+e})},Zs=function i(e,t,r){var n=t-e,s=n*2;return ue(e)?Dn(e,i(0,e.length-1),t):ze(r,function(a){return a=(s+(a-e)%s)%s||0,e+(a>n?s-a:a)})},Ct=function(e){for(var t=0,r="",n,s,a,o;~(n=e.indexOf("random(",t));)a=e.indexOf(")",n),o=e.charAt(n+7)==="[",s=e.substr(n+7,a-n-7).match(o?pn:fr),r+=e.substr(t,n-t)+Rn(o?s:+s[0],o?0:+s[1],+s[2]||1e-5),t=a+1;return r+e.substr(t,e.length-t)},Fn=function(e,t,r,n,s){var a=t-e,o=n-r;return ze(s,function(l){return r+((l-e)/a*o||0)})},Ls=function i(e,t,r,n){var s=isNaN(e+t)?0:function(m){return(1-m)*e+m*t};if(!s){var a=ie(e),o={},l,u,c,f,p;if(r===!0&&(n=1)&&(r=null),a)e={p:e},t={p:t};else if(ue(e)&&!ue(t)){for(c=[],f=e.length,p=f-2,u=1;u<f;u++)c.push(i(e[u-1],e[u]));f--,s=function(g){g*=f;var h=Math.min(p,~~g);return c[h](g-h)},r=t}else n||(e=ot(ue(e)?[]:{},e));if(!c){for(l in t)Nr.call(o,e,l,"get",t[l]);s=function(g){return Dr(g,o)||(a?e.p:e)}}}return ze(r,s)},In=function(e,t,r){var n=e.labels,s=qe,a,o,l;for(a in n)o=n[a]-t,o<0==!!r&&o&&s>(o=Math.abs(o))&&(l=a,s=o);return l},we=function(e,t,r){var n=e.vars,s=n[t],a=Y,o=e._ctx,l,u,c;if(s)return l=n[t+"Params"],u=n.callbackScope||e,r&&Le.length&&Gt(),o&&(Y=o),c=l?s.apply(u,l):s.call(u),Y=a,c},Ot=function(e){return Be(e),e.scrollTrigger&&e.scrollTrigger.kill(!!oe),e.progress()<1&&we(e,"onInterrupt"),e},ct,Zn=[],Ln=function(e){if(e)if(e=!e.name&&e.default||e,dr()||e.headless){var t=e.name,r=G(e),n=t&&!r&&e.init?function(){this._props=[]}:e,s={init:wt,render:Dr,add:Nr,kill:ra,modifier:ta,rawVars:0},a={targetTest:0,get:0,getSetter:Rr,aliases:{},register:0};if(dt(),e!==n){if(ye[t])return;be(n,be(Jt(e,s),a)),ot(n.prototype,ot(s,Jt(e,a))),ye[n.prop=t]=n,e.targetTest&&(Xt.push(n),gr[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}gn(t,n),e.register&&e.register(_e,n,me)}else Zn.push(e)},B=255,St={aqua:[0,B,B],lime:[0,B,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,B],navy:[0,0,128],white:[B,B,B],olive:[128,128,0],yellow:[B,B,0],orange:[B,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[B,0,0],pink:[B,192,203],cyan:[0,B,B],transparent:[B,B,B,0]},Sr=function(e,t,r){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(r-t)*e*6:e<.5?r:e*3<2?t+(r-t)*(2/3-e)*6:t)*B+.5|0},Bn=function(e,t,r){var n=e?De(e)?[e>>16,e>>8&B,e&B]:0:St.black,s,a,o,l,u,c,f,p,m,g;if(!n){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),St[e])n=St[e];else if(e.charAt(0)==="#"){if(e.length<6&&(s=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e="#"+s+s+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return n=parseInt(e.substr(1,6),16),[n>>16,n>>8&B,n&B,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),n=[e>>16,e>>8&B,e&B]}else if(e.substr(0,3)==="hsl"){if(n=g=e.match(fr),!t)l=+n[0]%360/360,u=+n[1]/100,c=+n[2]/100,a=c<=.5?c*(u+1):c+u-c*u,s=c*2-a,n.length>3&&(n[3]*=1),n[0]=Sr(l+1/3,s,a),n[1]=Sr(l,s,a),n[2]=Sr(l-1/3,s,a);else if(~e.indexOf("="))return n=e.match(fn),r&&n.length<4&&(n[3]=1),n}else n=e.match(fr)||St.transparent;n=n.map(Number)}return t&&!g&&(s=n[0]/B,a=n[1]/B,o=n[2]/B,f=Math.max(s,a,o),p=Math.min(s,a,o),c=(f+p)/2,f===p?l=u=0:(m=f-p,u=c>.5?m/(2-f-p):m/(f+p),l=f===s?(a-o)/m+(a<o?6:0):f===a?(o-s)/m+2:(s-a)/m+4,l*=60),n[0]=~~(l+.5),n[1]=~~(u*100+.5),n[2]=~~(c*100+.5)),r&&n.length<4&&(n[3]=1),n},zn=function(e){var t=[],r=[],n=-1;return e.split(Ve).forEach(function(s){var a=s.match(st)||[];t.push.apply(t,a),r.push(n+=a.length+1)}),t.c=r,t},Vn=function(e,t,r){var n="",s=(e+n).match(Ve),a=t?"hsla(":"rgba(",o=0,l,u,c,f;if(!s)return e;if(s=s.map(function(p){return(p=Bn(p,t,1))&&a+(t?p[0]+","+p[1]+"%,"+p[2]+"%,"+p[3]:p.join(","))+")"}),r&&(c=zn(e),l=r.c,l.join(n)!==c.c.join(n)))for(u=e.replace(Ve,"1").split(st),f=u.length-1;o<f;o++)n+=u[o]+(~l.indexOf(o)?s.shift()||a+"0,0,0,0)":(c.length?c:s.length?s:r).shift());if(!u)for(u=e.split(Ve),f=u.length-1;o<f;o++)n+=u[o]+s[o];return n+u[f]},Ve=(function(){var i="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in St)i+="|"+e+"\\b";return new RegExp(i+")","gi")})(),Bs=/hsl[a]?\(/,Hn=function(e){var t=e.join(" "),r;if(Ve.lastIndex=0,Ve.test(t))return r=Bs.test(t),e[1]=Vn(e[1],r),e[0]=Vn(e[0],r,zn(e[1])),!0},kt,Te=(function(){var i=Date.now,e=500,t=33,r=i(),n=r,s=1e3/240,a=s,o=[],l,u,c,f,p,m,g=function h(_){var x=i()-n,v=_===!0,b,T,y,j;if((x>e||x<0)&&(r+=x-t),n+=x,y=n-r,b=y-a,(b>0||v)&&(j=++f.frame,p=y-f.time*1e3,f.time=y=y/1e3,a+=b+(b>=s?4:s-b),T=1),v||(l=u(h)),T)for(m=0;m<o.length;m++)o[m](y,p,j,_)};return f={time:0,frame:0,tick:function(){g(!0)},deltaRatio:function(_){return p/(1e3/(_||60))},wake:function(){mn&&(!pr&&dr()&&(Ne=pr=window,mr=Ne.document||{},xe.gsap=_e,(Ne.gsapVersions||(Ne.gsapVersions=[])).push(_e.version),_n(Yt||Ne.GreenSockGlobals||!Ne.gsap&&Ne||{}),Zn.forEach(Ln)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&f.sleep(),u=c||function(_){return setTimeout(_,a-f.time*1e3+1|0)},kt=1,g(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(l),kt=0,u=wt},lagSmoothing:function(_,x){e=_||1/0,t=Math.min(x||33,e)},fps:function(_){s=1e3/(_||240),a=f.time*1e3+s},add:function(_,x,v){var b=x?function(T,y,j,C){_(T,y,j,C),f.remove(b)}:_;return f.remove(_),o[v?"unshift":"push"](b),dt(),b},remove:function(_,x){~(x=o.indexOf(_))&&o.splice(x,1)&&m>=x&&m--},_listeners:o},f})(),dt=function(){return!kt&&Te.wake()},A={},zs=/^[\d.\-M][\d.\-,\s]/,Vs=/["']/g,Hs=function(e){for(var t={},r=e.substr(1,e.length-3).split(":"),n=r[0],s=1,a=r.length,o,l,u;s<a;s++)l=r[s],o=s!==a-1?l.lastIndexOf(","):l.length,u=l.substr(0,o),t[n]=isNaN(u)?u.replace(Vs,"").trim():+u,n=l.substr(o+1).trim();return t},Us=function(e){var t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.indexOf("(",t);return e.substring(t,~n&&n<r?e.indexOf(")",r+1):r)},$s=function(e){var t=(e+"").split("("),r=A[t[0]];return r&&t.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[Hs(t[1])]:Us(e).split(",").map(wn)):A._CE&&zs.test(e)?A._CE("",e):r},Un=function(e){return function(t){return 1-e(1-t)}},$n=function i(e,t){for(var r=e._first,n;r;)r instanceof de?i(r,t):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==t&&(r.timeline?i(r.timeline,t):(n=r._ease,r._ease=r._yEase,r._yEase=n,r._yoyo=t)),r=r._next},Ge=function(e,t){return e&&(G(e)?e:A[e]||$s(e))||t},Je=function(e,t,r,n){r===void 0&&(r=function(l){return 1-t(1-l)}),n===void 0&&(n=function(l){return l<.5?t(l*2)/2:1-t((1-l)*2)/2});var s={easeIn:t,easeOut:r,easeInOut:n},a;return pe(e,function(o){A[o]=xe[o]=s,A[a=o.toLowerCase()]=r;for(var l in s)A[a+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=A[o+"."+l]=s[l]}),s},Yn=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},kr=function i(e,t,r){var n=t>=1?t:1,s=(r||(e?.3:.45))/(t<1?t:1),a=s/ur*(Math.asin(1/n)||0),o=function(c){return c===1?1:n*Math.pow(2,-10*c)*ys((c-a)*s)+1},l=e==="out"?o:e==="in"?function(u){return 1-o(1-u)}:Yn(o);return s=ur/s,l.config=function(u,c){return i(e,u,c)},l},Pr=function i(e,t){t===void 0&&(t=1.70158);var r=function(a){return a?--a*a*((t+1)*a+t)+1:0},n=e==="out"?r:e==="in"?function(s){return 1-r(1-s)}:Yn(r);return n.config=function(s){return i(e,s)},n};pe("Linear,Quad,Cubic,Quart,Quint,Strong",function(i,e){var t=e<5?e+1:e;Je(i+",Power"+(t-1),e?function(r){return Math.pow(r,t)}:function(r){return r},function(r){return 1-Math.pow(1-r,t)},function(r){return r<.5?Math.pow(r*2,t)/2:1-Math.pow((1-r)*2,t)/2})}),A.Linear.easeNone=A.none=A.Linear.easeIn,Je("Elastic",kr("in"),kr("out"),kr()),(function(i,e){var t=1/e,r=2*t,n=2.5*t,s=function(o){return o<t?i*o*o:o<r?i*Math.pow(o-1.5/e,2)+.75:o<n?i*(o-=2.25/e)*o+.9375:i*Math.pow(o-2.625/e,2)+.984375};Je("Bounce",function(a){return 1-s(1-a)},s)})(7.5625,2.75),Je("Expo",function(i){return Math.pow(2,10*(i-1))*i+i*i*i*i*i*i*(1-i)}),Je("Circ",function(i){return-(cn(1-i*i)-1)}),Je("Sine",function(i){return i===1?1:-xs(i*gs)+1}),Je("Back",Pr("in"),Pr("out"),Pr()),A.SteppedEase=A.steps=xe.SteppedEase={config:function(e,t){e===void 0&&(e=1);var r=1/e,n=e+(t?0:1),s=t?1:0,a=1-L;return function(o){return((n*qt(0,a,o)|0)+s)*r}}},it.ease=A["quad.out"],pe("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(i){return yr+=i+","+i+"Params,"});var Wn=function(e,t){this.id=vs++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:yn,this.set=t?t.getSetter:Rr},Pt=(function(){function i(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,ut(this,+t.duration,1,1),this.data=t.data,Y&&(this._ctx=Y,Y.data.push(this)),kt||Te.wake()}var e=i.prototype;return e.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},e.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,ut(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,n){if(dt(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(tr(this,r),!s._dp||s.parent||On(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&Ee(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!n||this._initted&&Math.abs(this._zTime)===L||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),bn(this,r,n)),this},e.time=function(r,n){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+Cn(this))%(this._dur+this._rDelay)||(r?this._dur:0),n):this._time},e.totalProgress=function(r,n){return arguments.length?this.totalTime(this.totalDuration()*r,n):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(r,n){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+Cn(this),n):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,n){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*s,n):this._repeat?lt(this._tTime,s)+1:1},e.timeScale=function(r,n){if(!arguments.length)return this._rts===-L?0:this._rts;if(this._rts===r)return this;var s=this.parent&&this._ts?Kt(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-L?0:this._rts,this.totalTime(qt(-Math.abs(this._delay),this.totalDuration(),s),n!==!1),er(this),Os(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(dt(),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},e.startTime=function(r){if(arguments.length){this._start=r;var n=this.parent||this._dp;return n&&(n._sort||!this.parent)&&Ee(n,this,r-this._delay),this}return this._start},e.endTime=function(r){return this._start+(he(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var n=this.parent||this._dp;return n?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Kt(n.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=Ts);var n=oe;return oe=r,wr(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),oe=n,this},e.globalTime=function(r){for(var n=this,s=arguments.length?r:n.rawTime();n;)s=n._start+s/(Math.abs(n._ts)||1),n=n._dp;return!this.parent&&this._sat?this._sat.globalTime(r):s},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,Pn(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var n=this._time;return this._rDelay=r,Pn(this),n?this.time(n):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,n){return this.totalTime(Ce(this,r),he(n))},e.restart=function(r,n){return this.play().totalTime(r?-this._delay:0,he(n)),this._dur||(this._zTime=-L),this},e.play=function(r,n){return r!=null&&this.seek(r,n),this.reversed(!1).paused(!1)},e.reverse=function(r,n){return r!=null&&this.seek(r||this.totalDuration(),n),this.reversed(!0).paused(!1)},e.pause=function(r,n){return r!=null&&this.seek(r,n),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-L:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-L,this},e.isActive=function(){var r=this.parent||this._dp,n=this._start,s;return!!(!r||this._ts&&this._initted&&r.isActive()&&(s=r.rawTime(!0))>=n&&s<this.endTime(!0)-L)},e.eventCallback=function(r,n,s){var a=this.vars;return arguments.length>1?(n?(a[r]=n,s&&(a[r+"Params"]=s),r==="onUpdate"&&(this._onUpdate=n)):delete a[r],this):a[r]},e.then=function(r){var n=this;return new Promise(function(s){var a=G(r)?r:Tn,o=function(){var u=n.then;n.then=null,G(a)&&(a=a(n))&&(a.then||a===n)&&(n.then=u),s(a),n.then=u};n._initted&&n.totalProgress()===1&&n._ts>=0||!n._tTime&&n._ts<0?o():n._prom=o})},e.kill=function(){Ot(this)},i})();be(Pt.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 de=(function(i){un(e,i);function e(r,n){var s;return r===void 0&&(r={}),s=i.call(this,r)||this,s.labels={},s.smoothChildTiming=!!r.smoothChildTiming,s.autoRemoveChildren=!!r.autoRemoveChildren,s._sort=he(r.sortChildren),W&&Ee(r.parent||W,Re(s),n),r.reversed&&s.reverse(),r.paused&&s.paused(!0),r.scrollTrigger&&Sn(Re(s),r.scrollTrigger),s}var t=e.prototype;return t.to=function(n,s,a){return jt(0,arguments,this),this},t.from=function(n,s,a){return jt(1,arguments,this),this},t.fromTo=function(n,s,a,o){return jt(2,arguments,this),this},t.set=function(n,s,a){return s.duration=0,s.parent=this,Tt(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new ee(n,s,Ce(this,a),1),this},t.call=function(n,s,a){return Ee(this,ee.delayedCall(0,n,s),a)},t.staggerTo=function(n,s,a,o,l,u,c){return a.duration=s,a.stagger=a.stagger||o,a.onComplete=u,a.onCompleteParams=c,a.parent=this,new ee(n,a,Ce(this,l)),this},t.staggerFrom=function(n,s,a,o,l,u,c){return a.runBackwards=1,Tt(a).immediateRender=he(a.immediateRender),this.staggerTo(n,s,a,o,l,u,c)},t.staggerFromTo=function(n,s,a,o,l,u,c,f){return o.startAt=a,Tt(o).immediateRender=he(o.immediateRender),this.staggerTo(n,s,o,l,u,c,f)},t.render=function(n,s,a){var o=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,c=n<=0?0:K(n),f=this._zTime<0!=n<0&&(this._initted||!u),p,m,g,h,_,x,v,b,T,y,j,C;if(this!==W&&c>l&&n>=0&&(c=l),c!==this._tTime||a||f){if(o!==this._time&&u&&(c+=this._time-o,n+=this._time-o),p=c,T=this._start,b=this._ts,x=!b,f&&(u||(o=this._zTime),(n||!s)&&(this._zTime=n)),this._repeat){if(j=this._yoyo,_=u+this._rDelay,this._repeat<-1&&n<0)return this.totalTime(_*100+n,s,a);if(p=K(c%_),c===l?(h=this._repeat,p=u):(y=K(c/_),h=~~y,h&&h===y&&(p=u,h--),p>u&&(p=u)),y=lt(this._tTime,_),!o&&this._tTime&&y!==h&&this._tTime-y*_-this._dur<=0&&(y=h),j&&h&1&&(p=u-p,C=1),h!==y&&!this._lock){var O=j&&y&1,q=O===(j&&h&1);if(h<y&&(O=!O),o=O?0:c%u?u:c,this._lock=1,this.render(o||(C?0:K(h*_)),s,!u)._lock=0,this._tTime=c,!s&&this.parent&&we(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;$n(this,C)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(v=Ns(this,K(o),K(p)),v&&(c-=p-(p=v._start))),this._tTime=c,this._time=p,this._act=!b,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=n,o=0),!o&&c&&!s&&!y&&(we(this,"onStart"),this._tTime!==c))return this;if(p>=o&&n>=0)for(m=this._first;m;){if(g=m._next,(m._act||p>=m._start)&&m._ts&&v!==m){if(m.parent!==this)return this.render(n,s,a);if(m.render(m._ts>0?(p-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(p-m._start)*m._ts,s,a),p!==this._time||!this._ts&&!x){v=0,g&&(c+=this._zTime=-L);break}}m=g}else{m=this._last;for(var M=n<0?n:p;m;){if(g=m._prev,(m._act||M<=m._end)&&m._ts&&v!==m){if(m.parent!==this)return this.render(n,s,a);if(m.render(m._ts>0?(M-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(M-m._start)*m._ts,s,a||oe&&wr(m)),p!==this._time||!this._ts&&!x){v=0,g&&(c+=this._zTime=M?-L:L);break}}m=g}}if(v&&!s&&(this.pause(),v.render(p>=o?0:-L)._zTime=p>=o?1:-1,this._ts))return this._start=T,er(this),this.render(n,s,a);this._onUpdate&&!s&&we(this,"onUpdate",!0),(c===l&&this._tTime>=this.totalDuration()||!c&&o)&&(T===this._start||Math.abs(b)!==Math.abs(this._ts))&&(this._lock||((n||!u)&&(c===l&&this._ts>0||!c&&this._ts<0)&&Be(this,1),!s&&!(n<0&&!o)&&(c||o||!l)&&(we(this,c===l&&n>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<l&&this.timeScale()>0)&&this._prom())))}return this},t.add=function(n,s){var a=this;if(De(s)||(s=Ce(this,s,n)),!(n instanceof Pt)){if(ue(n))return n.forEach(function(o){return a.add(o,s)}),this;if(ie(n))return this.addLabel(n,s);if(G(n))n=ee.delayedCall(0,n);else return this}return this!==n?Ee(this,n,s):this},t.getChildren=function(n,s,a,o){n===void 0&&(n=!0),s===void 0&&(s=!0),a===void 0&&(a=!0),o===void 0&&(o=-qe);for(var l=[],u=this._first;u;)u._start>=o&&(u instanceof ee?s&&l.push(u):(a&&l.push(u),n&&l.push.apply(l,u.getChildren(!0,s,a)))),u=u._next;return l},t.getById=function(n){for(var s=this.getChildren(1,1,1),a=s.length;a--;)if(s[a].vars.id===n)return s[a]},t.remove=function(n){return ie(n)?this.removeLabel(n):G(n)?this.killTweensOf(n):(n.parent===this&&Qt(this,n),n===this._recent&&(this._recent=this._last),Xe(this))},t.totalTime=function(n,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=K(Te.time-(this._ts>0?n/this._ts:(this.totalDuration()-n)/-this._ts))),i.prototype.totalTime.call(this,n,s),this._forcing=0,this):this._tTime},t.addLabel=function(n,s){return this.labels[n]=Ce(this,s),this},t.removeLabel=function(n){return delete this.labels[n],this},t.addPause=function(n,s,a){var o=ee.delayedCall(0,s||wt,a);return o.data="isPause",this._hasPause=1,Ee(this,o,Ce(this,n))},t.removePause=function(n){var s=this._first;for(n=Ce(this,n);s;)s._start===n&&s.data==="isPause"&&Be(s),s=s._next},t.killTweensOf=function(n,s,a){for(var o=this.getTweensOf(n,a),l=o.length;l--;)He!==o[l]&&o[l].kill(n,s);return this},t.getTweensOf=function(n,s){for(var a=[],o=Oe(n),l=this._first,u=De(s),c;l;)l instanceof ee?js(l._targets,o)&&(u?(!He||l._initted&&l._ts)&&l.globalTime(0)<=s&&l.globalTime(l.totalDuration())>s:!s||l.isActive())&&a.push(l):(c=l.getTweensOf(o,s)).length&&a.push.apply(a,c),l=l._next;return a},t.tweenTo=function(n,s){s=s||{};var a=this,o=Ce(a,n),l=s,u=l.startAt,c=l.onStart,f=l.onStartParams,p=l.immediateRender,m,g=ee.to(a,be({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:s.duration||Math.abs((o-(u&&"time"in u?u.time:a._time))/a.timeScale())||L,onStart:function(){if(a.pause(),!m){var _=s.duration||Math.abs((o-(u&&"time"in u?u.time:a._time))/a.timeScale());g._dur!==_&&ut(g,_,0,1).render(g._time,!0,!0),m=1}c&&c.apply(g,f||[])}},s));return p?g.render(0):g},t.tweenFromTo=function(n,s,a){return this.tweenTo(s,be({startAt:{time:Ce(this,n)}},a))},t.recent=function(){return this._recent},t.nextLabel=function(n){return n===void 0&&(n=this._time),In(this,Ce(this,n))},t.previousLabel=function(n){return n===void 0&&(n=this._time),In(this,Ce(this,n),1)},t.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.previousLabel(this._time+L)},t.shiftChildren=function(n,s,a){a===void 0&&(a=0);for(var o=this._first,l=this.labels,u;o;)o._start>=a&&(o._start+=n,o._end+=n),o=o._next;if(s)for(u in l)l[u]>=a&&(l[u]+=n);return Xe(this)},t.invalidate=function(n){var s=this._first;for(this._lock=0;s;)s.invalidate(n),s=s._next;return i.prototype.invalidate.call(this,n)},t.clear=function(n){n===void 0&&(n=!0);for(var s=this._first,a;s;)a=s._next,this.remove(s),s=a;return this._dp&&(this._time=this._tTime=this._pTime=0),n&&(this.labels={}),Xe(this)},t.totalDuration=function(n){var s=0,a=this,o=a._last,l=qe,u,c,f;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-n:n));if(a._dirty){for(f=a.parent;o;)u=o._prev,o._dirty&&o.totalDuration(),c=o._start,c>l&&a._sort&&o._ts&&!a._lock?(a._lock=1,Ee(a,o,c-o._delay,1)._lock=0):l=c,c<0&&o._ts&&(s-=c,(!f&&!a._dp||f&&f.smoothChildTiming)&&(a._start+=c/a._ts,a._time-=c,a._tTime-=c),a.shiftChildren(-c,!1,-1/0),l=0),o._end>s&&o._ts&&(s=o._end),o=u;ut(a,a===W&&a._time>s?a._time:s,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(n){if(W._ts&&(bn(W,Kt(n,W)),vn=Te.frame),Te.frame>=xn){xn+=ve.autoSleep||120;var s=W._first;if((!s||!s._ts)&&ve.autoSleep&&Te._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||Te.sleep()}}},e})(Pt);be(de.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ys=function(e,t,r,n,s,a,o){var l=new me(this._pt,e,t,0,1,ei,null,s),u=0,c=0,f,p,m,g,h,_,x,v;for(l.b=r,l.e=n,r+="",n+="",(x=~n.indexOf("random("))&&(n=Ct(n)),a&&(v=[r,n],a(v,e,t),r=v[0],n=v[1]),p=r.match(hr)||[];f=hr.exec(n);)g=f[0],h=n.substring(u,f.index),m?m=(m+1)%5:h.substr(-5)==="rgba("&&(m=1),g!==p[c++]&&(_=parseFloat(p[c-1])||0,l._pt={_next:l._pt,p:h||c===1?h:",",s:_,c:g.charAt(1)==="="?at(_,g)-_:parseFloat(g)-_,m:m&&m<4?Math.round:0},u=hr.lastIndex);return l.c=u<n.length?n.substring(u,n.length):"",l.fp=o,(hn.test(n)||x)&&(l.e=0),this._pt=l,l},Nr=function(e,t,r,n,s,a,o,l,u,c){G(n)&&(n=n(s||0,e,a));var f=e[t],p=r!=="get"?r:G(f)?u?e[t.indexOf("set")||!G(e["get"+t.substr(3)])?t:"get"+t.substr(3)](u):e[t]():f,m=G(f)?u?Qs:Qn:Ar,g;if(ie(n)&&(~n.indexOf("random(")&&(n=Ct(n)),n.charAt(1)==="="&&(g=at(p,n)+(ce(p)||0),(g||g===0)&&(n=g))),!c||p!==n||Er)return!isNaN(p*n)&&n!==""?(g=new me(this._pt,e,t,+p||0,n-(p||0),typeof f=="boolean"?ea:Kn,0,m),u&&(g.fp=u),o&&g.modifier(o,this,e),this._pt=g):(!f&&!(t in e)&&_r(t,n),Ys.call(this,e,t,p,n,m,l||ve.stringFilter,u))},Ws=function(e,t,r,n,s){if(G(e)&&(e=Nt(e,s,t,r,n)),!Pe(e)||e.style&&e.nodeType||ue(e)||dn(e))return ie(e)?Nt(e,s,t,r,n):e;var a={},o;for(o in e)a[o]=Nt(e[o],s,t,r,n);return a},Xn=function(e,t,r,n,s,a){var o,l,u,c;if(ye[e]&&(o=new ye[e]).init(s,o.rawVars?t[e]:Ws(t[e],n,s,a,r),r,n,a)!==!1&&(r._pt=l=new me(r._pt,s,e,0,1,o.render,o,0,o.priority),r!==ct))for(u=r._ptLookup[r._targets.indexOf(s)],c=o._props.length;c--;)u[o._props[c]]=l;return o},He,Er,Mr=function i(e,t,r){var n=e.vars,s=n.ease,a=n.startAt,o=n.immediateRender,l=n.lazy,u=n.onUpdate,c=n.runBackwards,f=n.yoyoEase,p=n.keyframes,m=n.autoRevert,g=e._dur,h=e._startAt,_=e._targets,x=e.parent,v=x&&x.data==="nested"?x.vars.targets:_,b=e._overwrite==="auto"&&!lr,T=e.timeline,y,j,C,O,q,M,R,I,F,z,H,V,U;if(T&&(!p||!s)&&(s="none"),e._ease=Ge(s,it.ease),e._yEase=f?Un(Ge(f===!0?s:f,it.ease)):0,f&&e._yoyo&&!e._repeat&&(f=e._yEase,e._yEase=e._ease,e._ease=f),e._from=!T&&!!n.runBackwards,!T||p&&!n.stagger){if(I=_[0]?We(_[0]).harness:0,V=I&&n[I.prop],y=Jt(n,gr),h&&(h._zTime<0&&h.progress(1),t<0&&c&&o&&!m?h.render(-1,!0):h.revert(c&&g?Wt:ws),h._lazy=0),a){if(Be(e._startAt=ee.set(_,be({data:"isStart",overwrite:!1,parent:x,immediateRender:!0,lazy:!h&&he(l),startAt:null,delay:0,onUpdate:u&&function(){return we(e,"onUpdate")},stagger:0},a))),e._startAt._dp=0,e._startAt._sat=e,t<0&&(oe||!o&&!m)&&e._startAt.revert(Wt),o&&g&&t<=0&&r<=0){t&&(e._zTime=t);return}}else if(c&&g&&!h){if(t&&(o=!1),C=be({overwrite:!1,data:"isFromStart",lazy:o&&!h&&he(l),immediateRender:o,stagger:0,parent:x},y),V&&(C[I.prop]=V),Be(e._startAt=ee.set(_,C)),e._startAt._dp=0,e._startAt._sat=e,t<0&&(oe?e._startAt.revert(Wt):e._startAt.render(-1,!0)),e._zTime=t,!o)i(e._startAt,L,L);else if(!t)return}for(e._pt=e._ptCache=0,l=g&&he(l)||l&&!g,j=0;j<_.length;j++){if(q=_[j],R=q._gsap||br(_)[j]._gsap,e._ptLookup[j]=z={},vr[R.id]&&Le.length&&Gt(),H=v===_?j:v.indexOf(q),I&&(F=new I).init(q,V||y,e,H,v)!==!1&&(e._pt=O=new me(e._pt,q,F.name,0,1,F.render,F,0,F.priority),F._props.forEach(function(se){z[se]=O}),F.priority&&(M=1)),!I||V)for(C in y)ye[C]&&(F=Xn(C,y,e,H,q,v))?F.priority&&(M=1):z[C]=O=Nr.call(e,q,C,"get",y[C],H,v,0,n.stringFilter);e._op&&e._op[j]&&e.kill(q,e._op[j]),b&&e._pt&&(He=e,W.killTweensOf(q,z,e.globalTime(t)),U=!e.parent,He=0),e._pt&&l&&(vr[R.id]=1)}M&&ti(e),e._onInit&&e._onInit(e)}e._onUpdate=u,e._initted=(!e._op||e._pt)&&!U,p&&t<=0&&T.render(qe,!0,!0)},Xs=function(e,t,r,n,s,a,o,l){var u=(e._pt&&e._ptCache||(e._ptCache={}))[t],c,f,p,m;if(!u)for(u=e._ptCache[t]=[],p=e._ptLookup,m=e._targets.length;m--;){if(c=p[m][t],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==t&&c.fp!==t;)c=c._next;if(!c)return Er=1,e.vars[t]="+=0",Mr(e,o),Er=0,l?bt(t+" not eligible for reset"):1;u.push(c)}for(m=u.length;m--;)f=u[m],c=f._pt||f,c.s=(n||n===0)&&!s?n:c.s+(n||0)+a*c.c,c.c=r-c.s,f.e&&(f.e=J(r)+ce(f.e)),f.b&&(f.b=c.s+ce(f.b))},Gs=function(e,t){var r=e[0]?We(e[0]).harness:0,n=r&&r.aliases,s,a,o,l;if(!n)return t;s=ot({},t);for(a in n)if(a in s)for(l=n[a].split(","),o=l.length;o--;)s[l[o]]=s[a];return s},Js=function(e,t,r,n){var s=t.ease||n||"power1.inOut",a,o;if(ue(t))o=r[e]||(r[e]=[]),t.forEach(function(l,u){return o.push({t:u/(t.length-1)*100,v:l,e:s})});else for(a in t)o=r[a]||(r[a]=[]),a==="ease"||o.push({t:parseFloat(e),v:t[a],e:s})},Nt=function(e,t,r,n,s){return G(e)?e.call(t,r,n,s):ie(e)&&~e.indexOf("random(")?Ct(e):e},Gn=yr+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Jn={};pe(Gn+",id,stagger,delay,duration,paused,scrollTrigger",function(i){return Jn[i]=1});var ee=(function(i){un(e,i);function e(r,n,s,a){var o;typeof n=="number"&&(s.duration=n,n=s,s=null),o=i.call(this,a?n:Tt(n))||this;var l=o.vars,u=l.duration,c=l.delay,f=l.immediateRender,p=l.stagger,m=l.overwrite,g=l.keyframes,h=l.defaults,_=l.scrollTrigger,x=l.yoyoEase,v=n.parent||W,b=(ue(r)||dn(r)?De(r[0]):"length"in n)?[r]:Oe(r),T,y,j,C,O,q,M,R;if(o._targets=b.length?br(b):bt("GSAP target "+r+" not found. https://gsap.com",!ve.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=m,g||p||$t(u)||$t(c)){if(n=o.vars,T=o.timeline=new de({data:"nested",defaults:h||{},targets:v&&v.data==="nested"?v.vars.targets:b}),T.kill(),T.parent=T._dp=Re(o),T._start=0,p||$t(u)||$t(c)){if(C=b.length,M=p&&Mn(p),Pe(p))for(O in p)~Gn.indexOf(O)&&(R||(R={}),R[O]=p[O]);for(y=0;y<C;y++)j=Jt(n,Jn),j.stagger=0,x&&(j.yoyoEase=x),R&&ot(j,R),q=b[y],j.duration=+Nt(u,Re(o),y,q,b),j.delay=(+Nt(c,Re(o),y,q,b)||0)-o._delay,!p&&C===1&&j.delay&&(o._delay=c=j.delay,o._start+=c,j.delay=0),T.to(q,j,M?M(y,q,b):0),T._ease=A.none;T.duration()?u=c=0:o.timeline=0}else if(g){Tt(be(T.vars.defaults,{ease:"none"})),T._ease=Ge(g.ease||n.ease||"none");var I=0,F,z,H;if(ue(g))g.forEach(function(V){return T.to(b,V,">")}),T.duration();else{j={};for(O in g)O==="ease"||O==="easeEach"||Js(O,g[O],j,g.easeEach);for(O in j)for(F=j[O].sort(function(V,U){return V.t-U.t}),I=0,y=0;y<F.length;y++)z=F[y],H={ease:z.e,duration:(z.t-(y?F[y-1].t:0))/100*u},H[O]=z.v,T.to(b,H,I),I+=H.duration;T.duration()<u&&T.to({},{duration:u-T.duration()})}}u||o.duration(u=T.duration())}else o.timeline=0;return m===!0&&!lr&&(He=Re(o),W.killTweensOf(b),He=0),Ee(v,Re(o),s),n.reversed&&o.reverse(),n.paused&&o.paused(!0),(f||!u&&!g&&o._start===K(v._time)&&he(f)&&Ss(Re(o))&&v.data!=="nested")&&(o._tTime=-L,o.render(Math.max(0,-c)||0)),_&&Sn(Re(o),_),o}var t=e.prototype;return t.render=function(n,s,a){var o=this._time,l=this._tDur,u=this._dur,c=n<0,f=n>l-L&&!c?l:n<L?0:n,p,m,g,h,_,x,v,b,T;if(!u)Ps(this,n,s,a);else if(f!==this._tTime||!n||a||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c||this._lazy){if(p=f,b=this.timeline,this._repeat){if(h=u+this._rDelay,this._repeat<-1&&c)return this.totalTime(h*100+n,s,a);if(p=K(f%h),f===l?(g=this._repeat,p=u):(_=K(f/h),g=~~_,g&&g===_?(p=u,g--):p>u&&(p=u)),x=this._yoyo&&g&1,x&&(T=this._yEase,p=u-p),_=lt(this._tTime,h),p===o&&!a&&this._initted&&g===_)return this._tTime=f,this;g!==_&&(b&&this._yEase&&$n(b,x),this.vars.repeatRefresh&&!x&&!this._lock&&p!==h&&this._initted&&(this._lock=a=1,this.render(K(h*g),!0).invalidate()._lock=0))}if(!this._initted){if(kn(this,c?n:p,a,s,f))return this._tTime=0,this;if(o!==this._time&&!(a&&this.vars.repeatRefresh&&g!==_))return this;if(u!==this._dur)return this.render(n,s,a)}if(this._tTime=f,this._time=p,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=v=(T||this._ease)(p/u),this._from&&(this.ratio=v=1-v),!o&&f&&!s&&!_&&(we(this,"onStart"),this._tTime!==f))return this;for(m=this._pt;m;)m.r(v,m.d),m=m._next;b&&b.render(n<0?n:b._dur*b._ease(p/this._dur),s,a)||this._startAt&&(this._zTime=n),this._onUpdate&&!s&&(c&&Tr(this,n,s,a),we(this,"onUpdate")),this._repeat&&g!==_&&this.vars.onRepeat&&!s&&this.parent&&we(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(c&&!this._onUpdate&&Tr(this,n,!0,!0),(n||!u)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&Be(this,1),!s&&!(c&&!o)&&(f||o||x)&&(we(this,f===l?"onComplete":"onReverseComplete",!0),this._prom&&!(f<l&&this.timeScale()>0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(n){return(!n||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(n),i.prototype.invalidate.call(this,n)},t.resetTo=function(n,s,a,o,l){kt||Te.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Mr(this,u),c=this._ease(u/this._dur),Xs(this,n,s,a,o,c,u,l)?this.resetTo(n,s,a,o,1):(tr(this,0),this.parent||qn(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(n,s){if(s===void 0&&(s="all"),!n&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?Ot(this):this.scrollTrigger&&this.scrollTrigger.kill(!!oe),this;if(this.timeline){var a=this.timeline.totalDuration();return this.timeline.killTweensOf(n,s,He&&He.vars.overwrite!==!0)._first||Ot(this),this.parent&&a!==this.timeline.totalDuration()&&ut(this,this._dur*this.timeline._tDur/a,0,1),this}var o=this._targets,l=n?Oe(n):o,u=this._ptLookup,c=this._pt,f,p,m,g,h,_,x;if((!s||s==="all")&&Cs(o,l))return s==="all"&&(this._pt=0),Ot(this);for(f=this._op=this._op||[],s!=="all"&&(ie(s)&&(h={},pe(s,function(v){return h[v]=1}),s=h),s=Gs(o,s)),x=o.length;x--;)if(~l.indexOf(o[x])){p=u[x],s==="all"?(f[x]=s,g=p,m={}):(m=f[x]=f[x]||{},g=s);for(h in g)_=p&&p[h],_&&((!("kill"in _.d)||_.d.kill(h)===!0)&&Qt(this,_,"_pt"),delete p[h]),m!=="all"&&(m[h]=1)}return this._initted&&!this._pt&&c&&Ot(this),this},e.to=function(n,s){return new e(n,s,arguments[2])},e.from=function(n,s){return jt(1,arguments)},e.delayedCall=function(n,s,a,o){return new e(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:n,onComplete:s,onReverseComplete:s,onCompleteParams:a,onReverseCompleteParams:a,callbackScope:o})},e.fromTo=function(n,s,a){return jt(2,arguments)},e.set=function(n,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new e(n,s)},e.killTweensOf=function(n,s,a){return W.killTweensOf(n,s,a)},e})(Pt);be(ee.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),pe("staggerTo,staggerFrom,staggerFromTo",function(i){ee[i]=function(){var e=new de,t=qr.call(arguments,0);return t.splice(i==="staggerFromTo"?5:4,0,0),e[i].apply(e,t)}});var Ar=function(e,t,r){return e[t]=r},Qn=function(e,t,r){return e[t](r)},Qs=function(e,t,r,n){return e[t](n.fp,r)},Ks=function(e,t,r){return e.setAttribute(t,r)},Rr=function(e,t){return G(e[t])?Qn:cr(e[t])&&e.setAttribute?Ks:Ar},Kn=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},ea=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},ei=function(e,t){var r=t._pt,n="";if(!e&&t.b)n=t.b;else if(e===1&&t.e)n=t.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+n,r=r._next;n+=t.c}t.set(t.t,t.p,n,t)},Dr=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},ta=function(e,t,r,n){for(var s=this._pt,a;s;)a=s._next,s.p===n&&s.modifier(e,t,r),s=a},ra=function(e){for(var t=this._pt,r,n;t;)n=t._next,t.p===e&&!t.op||t.op===e?Qt(this,t,"_pt"):t.dep||(r=1),t=n;return!r},na=function(e,t,r,n){n.mSet(e,t,n.m.call(n.tween,r,n.mt),n)},ti=function(e){for(var t=e._pt,r,n,s,a;t;){for(r=t._next,n=s;n&&n.pr>t.pr;)n=n._next;(t._prev=n?n._prev:a)?t._prev._next=t:s=t,(t._next=n)?n._prev=t:a=t,t=r}e._pt=s},me=(function(){function i(t,r,n,s,a,o,l,u,c){this.t=r,this.s=s,this.c=a,this.p=n,this.r=o||Kn,this.d=l||this,this.set=u||Ar,this.pr=c||0,this._next=t,t&&(t._prev=this)}var e=i.prototype;return e.modifier=function(r,n,s){this.mSet=this.mSet||this.set,this.set=na,this.m=r,this.mt=s,this.tween=n},i})();pe(yr+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(i){return gr[i]=1}),xe.TweenMax=xe.TweenLite=ee,xe.TimelineLite=xe.TimelineMax=de,W=new de({sortChildren:!1,defaults:it,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),ve.stringFilter=Hn;var Qe=[],rr={},ia=[],ri=0,sa=0,Fr=function(e){return(rr[e]||ia).map(function(t){return t()})},Ir=function(){var e=Date.now(),t=[];e-ri>2&&(Fr("matchMediaInit"),Qe.forEach(function(r){var n=r.queries,s=r.conditions,a,o,l,u;for(o in n)a=Ne.matchMedia(n[o]).matches,a&&(l=1),a!==s[o]&&(s[o]=a,u=1);u&&(r.revert(),l&&t.push(r))}),Fr("matchMediaRevert"),t.forEach(function(r){return r.onMatch(r,function(n){return r.add(null,n)})}),ri=e,Fr("matchMedia"))},ni=(function(){function i(t,r){this.selector=r&&Cr(r),this.data=[],this._r=[],this.isReverted=!1,this.id=sa++,t&&this.add(t)}var e=i.prototype;return e.add=function(r,n,s){G(r)&&(s=n,n=r,r=G);var a=this,o=function(){var u=Y,c=a.selector,f;return u&&u!==a&&u.data.push(a),s&&(a.selector=Cr(s)),Y=a,f=n.apply(a,arguments),G(f)&&a._r.push(f),Y=u,a.selector=c,a.isReverted=!1,f};return a.last=o,r===G?o(a,function(l){return a.add(null,l)}):r?a[r]=o:o},e.ignore=function(r){var n=Y;Y=null,r(this),Y=n},e.getTweens=function(){var r=[];return this.data.forEach(function(n){return n instanceof i?r.push.apply(r,n.getTweens()):n instanceof ee&&!(n.parent&&n.parent.data==="nested")&&r.push(n)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,n){var s=this;if(r?(function(){for(var o=s.getTweens(),l=s.data.length,u;l--;)u=s.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(c){return o.splice(o.indexOf(c),1)}));for(o.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,f){return f.g-c.g||-1/0}).forEach(function(c){return c.t.revert(r)}),l=s.data.length;l--;)u=s.data[l],u instanceof de?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof ee)&&u.revert&&u.revert(r);s._r.forEach(function(c){return c(r,s)}),s.isReverted=!0})():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),n)for(var a=Qe.length;a--;)Qe[a].id===this.id&&Qe.splice(a,1)},e.revert=function(r){this.kill(r||{})},i})(),aa=(function(){function i(t){this.contexts=[],this.scope=t,Y&&Y.data.push(this)}var e=i.prototype;return e.add=function(r,n,s){Pe(r)||(r={matches:r});var a=new ni(0,s||this.scope),o=a.conditions={},l,u,c;Y&&!a.selector&&(a.selector=Y.selector),this.contexts.push(a),n=a.add("onMatch",n),a.queries=r;for(u in r)u==="all"?c=1:(l=Ne.matchMedia(r[u]),l&&(Qe.indexOf(a)<0&&Qe.push(a),(o[u]=l.matches)&&(c=1),l.addListener?l.addListener(Ir):l.addEventListener("change",Ir)));return c&&n(a,function(f){return a.add(null,f)}),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(n){return n.kill(r,!0)})},i})(),nr={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach(function(n){return Ln(n)})},timeline:function(e){return new de(e)},getTweensOf:function(e,t){return W.getTweensOf(e,t)},getProperty:function(e,t,r,n){ie(e)&&(e=Oe(e)[0]);var s=We(e||{}).get,a=r?Tn:wn;return r==="native"&&(r=""),e&&(t?a((ye[t]&&ye[t].get||s)(e,t,r,n)):function(o,l,u){return a((ye[o]&&ye[o].get||s)(e,o,l,u))})},quickSetter:function(e,t,r){if(e=Oe(e),e.length>1){var n=e.map(function(c){return _e.quickSetter(c,t,r)}),s=n.length;return function(c){for(var f=s;f--;)n[f](c)}}e=e[0]||{};var a=ye[t],o=We(e),l=o.harness&&(o.harness.aliases||{})[t]||t,u=a?function(c){var f=new a;ct._pt=0,f.init(e,r?c+r:c,ct,0,[e]),f.render(1,f),ct._pt&&Dr(1,ct)}:o.set(e,l);return a?u:function(c){return u(e,l,r?c+r:c,o,1)}},quickTo:function(e,t,r){var n,s=_e.to(e,be((n={},n[t]="+=0.1",n.paused=!0,n.stagger=0,n),r||{})),a=function(l,u,c){return s.resetTo(t,l,u,c)};return a.tween=s,a},isTweening:function(e){return W.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Ge(e.ease,it.ease)),jn(it,e||{})},config:function(e){return jn(ve,e||{})},registerEffect:function(e){var t=e.name,r=e.effect,n=e.plugins,s=e.defaults,a=e.extendTimeline;(n||"").split(",").forEach(function(o){return o&&!ye[o]&&!xe[o]&&bt(t+" effect requires "+o+" plugin.")}),xr[t]=function(o,l,u){return r(Oe(o),be(l||{},s),u)},a&&(de.prototype[t]=function(o,l,u){return this.add(xr[t](o,Pe(l)?l:(u=l)&&{},this),u)})},registerEase:function(e,t){A[e]=Ge(t)},parseEase:function(e,t){return arguments.length?Ge(e,t):A},getById:function(e){return W.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var r=new de(e),n,s;for(r.smoothChildTiming=he(e.smoothChildTiming),W.remove(r),r._dp=0,r._time=r._tTime=W._time,n=W._first;n;)s=n._next,(t||!(!n._dur&&n instanceof ee&&n.vars.onComplete===n._targets[0]))&&Ee(r,n,n._start-n._delay),n=s;return Ee(W,r,0),r},context:function(e,t){return e?new ni(e,t):Y},matchMedia:function(e){return new aa(e)},matchMediaRefresh:function(){return Qe.forEach(function(e){var t=e.conditions,r,n;for(n in t)t[n]&&(t[n]=!1,r=1);r&&e.revert()})||Ir()},addEventListener:function(e,t){var r=rr[e]||(rr[e]=[]);~r.indexOf(t)||r.push(t)},removeEventListener:function(e,t){var r=rr[e],n=r&&r.indexOf(t);n>=0&&r.splice(n,1)},utils:{wrap:Is,wrapYoyo:Zs,distribute:Mn,random:Rn,snap:An,normalize:Fs,getUnit:ce,clamp:Ms,splitColor:Bn,toArray:Oe,selector:Cr,mapRange:Fn,pipe:Rs,unitize:Ds,interpolate:Ls,shuffle:En},install:_n,effects:xr,ticker:Te,updateRoot:de.updateRoot,plugins:ye,globalTimeline:W,core:{PropTween:me,globals:gn,Tween:ee,Timeline:de,Animation:Pt,getCache:We,_removeLinkedListItem:Qt,reverting:function(){return oe},context:function(e){return e&&Y&&(Y.data.push(e),e._ctx=Y),Y},suppressOverwrites:function(e){return lr=e}}};pe("to,from,fromTo,delayedCall,set,killTweensOf",function(i){return nr[i]=ee[i]}),Te.add(de.updateRoot),ct=nr.to({},{duration:0});var oa=function(e,t){for(var r=e._pt;r&&r.p!==t&&r.op!==t&&r.fp!==t;)r=r._next;return r},la=function(e,t){var r=e._targets,n,s,a;for(n in t)for(s=r.length;s--;)a=e._ptLookup[s][n],a&&(a=a.d)&&(a._pt&&(a=oa(a,n)),a&&a.modifier&&a.modifier(t[n],e,r[s],n))},Zr=function(e,t){return{name:e,headless:1,rawVars:1,init:function(n,s,a){a._onInit=function(o){var l,u;if(ie(s)&&(l={},pe(s,function(c){return l[c]=1}),s=l),t){l={};for(u in s)l[u]=t(s[u]);s=l}la(o,s)}}}},_e=nr.registerPlugin({name:"attr",init:function(e,t,r,n,s){var a,o,l;this.tween=r;for(a in t)l=e.getAttribute(a)||"",o=this.add(e,"setAttribute",(l||0)+"",t[a],n,s,0,0,a),o.op=a,o.b=l,this._props.push(a)},render:function(e,t){for(var r=t._pt;r;)oe?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,init:function(e,t){for(var r=t.length;r--;)this.add(e,r,e[r]||0,t[r],0,0,0,0,0,1)}},Zr("roundProps",Or),Zr("modifiers"),Zr("snap",An))||nr;ee.version=de.version=_e.version="3.13.0",mn=1,dr()&&dt(),A.Power0,A.Power1,A.Power2,A.Power3,A.Power4,A.Linear,A.Quad,A.Cubic,A.Quart,A.Quint,A.Strong,A.Elastic,A.Back,A.SteppedEase,A.Bounce,A.Sine,A.Expo,A.Circ;/*!
|
|
41
|
+
*/var Pe={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},wt={duration:.5,overwrite:!1,delay:0},Zi,we,le,Le=1e8,ne=1/Le,Bi=Math.PI*2,ns=Bi/4,rs=0,dr=Math.sqrt,as=Math.cos,os=Math.sin,ye=function(e){return typeof e=="string"},de=function(e){return typeof e=="function"},Ke=function(e){return typeof e=="number"},$i=function(e){return typeof e>"u"},He=function(e){return typeof e=="object"},Oe=function(e){return e!==!1},Hi=function(){return typeof window<"u"},hi=function(e){return de(e)||ye(e)},fr=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Te=Array.isArray,Vi=/(?:-?\.?\d|\.)+/gi,mr=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Tt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Yi=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,hr=/[+-]=-?[.\d]+/,vr=/[^,'"\[\]\s]+/gi,ss=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ce,Ve,Ui,Wi,Ae={},vi={},xr,gr=function(e){return(vi=kt(e,Ae))&&qe},Xi=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},Zt=function(e,t){return!t&&console.warn(e)},_r=function(e,t){return e&&(Ae[e]=t)&&vi&&(vi[e]=t)||Ae},Bt=function(){return 0},ls={suppressEvents:!0,isStart:!0,kill:!1},xi={suppressEvents:!0,kill:!1},cs={suppressEvents:!0},Gi={},tt=[],Ki={},yr,De={},Ji={},br=30,gi=[],Qi="",en=function(e){var t=e[0],i,r;if(He(t)||de(t)||(e=[e]),!(i=(t._gsap||{}).harness)){for(r=gi.length;r--&&!gi[r].targetTest(t););i=gi[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new Gr(e[r],i)))||e.splice(r,1);return e},ct=function(e){return e._gsap||en(Be(e))[0]._gsap},wr=function(e,t,i){return(i=e[t])&&de(i)?e[t]():$i(i)&&e.getAttribute&&e.getAttribute(t)||i},Se=function(e,t){return(e=e.split(",")).forEach(t)||e},fe=function(e){return Math.round(e*1e5)/1e5||0},he=function(e){return Math.round(e*1e7)/1e7||0},jt=function(e,t){var i=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),i==="+"?e+r:i==="-"?e-r:i==="*"?e*r:e/r},ps=function(e,t){for(var i=t.length,r=0;e.indexOf(t[r])<0&&++r<i;);return r<i},_i=function(){var e=tt.length,t=tt.slice(0),i,r;for(Ki={},tt.length=0,i=0;i<e;i++)r=t[i],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},tn=function(e){return!!(e._initted||e._startAt||e.add)},Tr=function(e,t,i,r){tt.length&&!we&&_i(),e.render(t,i,!!(we&&t<0&&tn(e))),tt.length&&!we&&_i()},jr=function(e){var t=parseFloat(e);return(t||t===0)&&(e+"").match(vr).length<2?t:ye(e)?e.trim():e},kr=function(e){return e},Ne=function(e,t){for(var i in t)i in e||(e[i]=t[i]);return e},us=function(e){return function(t,i){for(var r in i)r in t||r==="duration"&&e||r==="ease"||(t[r]=i[r])}},kt=function(e,t){for(var i in t)e[i]=t[i];return e},Or=function n(e,t){for(var i in t)i!=="__proto__"&&i!=="constructor"&&i!=="prototype"&&(e[i]=He(t[i])?n(e[i]||(e[i]={}),t[i]):t[i]);return e},yi=function(e,t){var i={},r;for(r in e)r in t||(i[r]=e[r]);return i},$t=function(e){var t=e.parent||ce,i=e.keyframes?us(Te(e.keyframes)):Ne;if(Oe(e.inherit))for(;t;)i(e,t.vars.defaults),t=t.parent||t._dp;return e},ds=function(e,t){for(var i=e.length,r=i===t.length;r&&i--&&e[i]===t[i];);return i<0},Sr=function(e,t,i,r,a){var o=e[r],s;if(a)for(s=t[a];o&&o[a]>s;)o=o._prev;return o?(t._next=o._next,o._next=t):(t._next=e[i],e[i]=t),t._next?t._next._prev=t:e[r]=t,t._prev=o,t.parent=t._dp=e,t},bi=function(e,t,i,r){i===void 0&&(i="_first"),r===void 0&&(r="_last");var a=t._prev,o=t._next;a?a._next=o:e[i]===t&&(e[i]=o),o?o._prev=a:e[r]===t&&(e[r]=a),t._next=t._prev=t.parent=null},it=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},pt=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var i=e;i;)i._dirty=1,i=i.parent;return e},fs=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},nn=function(e,t,i,r){return e._startAt&&(we?e._startAt.revert(xi):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},ms=function n(e){return!e||e._ts&&n(e.parent)},Cr=function(e){return e._repeat?Ot(e._tTime,e=e.duration()+e._rDelay)*e:0},Ot=function(e,t){var i=Math.floor(e=he(e/t));return e&&i===e?i-1:i},wi=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Ti=function(e){return e._end=he(e._start+(e._tDur/Math.abs(e._ts||e._rts||ne)||0))},ji=function(e,t){var i=e._dp;return i&&i.smoothChildTiming&&e._ts&&(e._start=he(i._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Ti(e),i._dirty||pt(i,e)),e},qr=function(e,t){var i;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(i=wi(e.rawTime(),t),(!t._dur||Vt(0,t.totalDuration(),i)-t._tTime>ne)&&t.render(i,!0)),pt(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(i=e;i._dp;)i.rawTime()>=0&&i.totalTime(i._tTime),i=i._dp;e._zTime=-ne}},Ye=function(e,t,i,r){return t.parent&&it(t),t._start=he((Ke(i)?i:i||e!==ce?Ze(e,i,t):e._time)+t._delay),t._end=he(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Sr(e,t,"_first","_last",e._sort?"_start":0),rn(t)||(e._recent=t),r||qr(e,t),e._ts<0&&ji(e,e._tTime),e},Er=function(e,t){return(Ae.ScrollTrigger||Xi("scrollTrigger",t))&&Ae.ScrollTrigger.create(t,e)},Pr=function(e,t,i,r,a){if(fn(e,t,a),!e._initted)return 1;if(!i&&e._pt&&!we&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&yr!==Me.frame)return tt.push(e),e._lazy=[a,r],1},hs=function n(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||n(t))},rn=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},vs=function(e,t,i,r){var a=e.ratio,o=t<0||!t&&(!e._start&&hs(e)&&!(!e._initted&&rn(e))||(e._ts<0||e._dp._ts<0)&&!rn(e))?0:1,s=e._rDelay,l=0,c,p,d;if(s&&e._repeat&&(l=Vt(0,e._tDur,t),p=Ot(l,s),e._yoyo&&p&1&&(o=1-o),p!==Ot(e._tTime,s)&&(a=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==a||we||r||e._zTime===ne||!t&&e._zTime){if(!e._initted&&Pr(e,t,r,i,l))return;for(d=e._zTime,e._zTime=t||(i?ne:0),i||(i=t&&!d),e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=l,c=e._pt;c;)c.r(o,c.d),c=c._next;t<0&&nn(e,t,i,!0),e._onUpdate&&!i&&Re(e,"onUpdate"),l&&e._repeat&&!i&&e.parent&&Re(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===o&&(o&&it(e,1),!i&&!we&&(Re(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},xs=function(e,t,i){var r;if(i>t)for(r=e._first;r&&r._start<=i;){if(r.data==="isPause"&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=i;){if(r.data==="isPause"&&r._start<t)return r;r=r._prev}},St=function(e,t,i,r){var a=e._repeat,o=he(t)||0,s=e._tTime/e._tDur;return s&&!r&&(e._time*=o/e._dur),e._dur=o,e._tDur=a?a<0?1e10:he(o*(a+1)+e._rDelay*a):o,s>0&&!r&&ji(e,e._tTime=e._tDur*s),e.parent&&Ti(e),i||pt(e.parent,e),e},Ar=function(e){return e instanceof ke?pt(e):St(e,e._dur)},gs={_start:0,endTime:Bt,totalDuration:Bt},Ze=function n(e,t,i){var r=e.labels,a=e._recent||gs,o=e.duration()>=Le?a.endTime(!1):e._dur,s,l,c;return ye(t)&&(isNaN(t)||t in r)?(l=t.charAt(0),c=t.substr(-1)==="%",s=t.indexOf("="),l==="<"||l===">"?(s>=0&&(t=t.replace(/=/,"")),(l==="<"?a._start:a.endTime(a._repeat>=0))+(parseFloat(t.substr(1))||0)*(c?(s<0?a:i).totalDuration()/100:1)):s<0?(t in r||(r[t]=o),r[t]):(l=parseFloat(t.charAt(s-1)+t.substr(s+1)),c&&i&&(l=l/100*(Te(i)?i[0]:i).totalDuration()),s>1?n(e,t.substr(0,s-1),i)+l:o+l)):t==null?o:+t},Ht=function(e,t,i){var r=Ke(t[1]),a=(r?2:1)+(e<2?0:1),o=t[a],s,l;if(r&&(o.duration=t[1]),o.parent=i,e){for(s=o,l=i;l&&!("immediateRender"in s);)s=l.vars.defaults||{},l=Oe(l.vars.inherit)&&l.parent;o.immediateRender=Oe(s.immediateRender),e<2?o.runBackwards=1:o.startAt=t[a-1]}return new ve(t[0],o,t[a+1])},nt=function(e,t){return e||e===0?t(e):t},Vt=function(e,t,i){return i<e?e:i>t?t:i},je=function(e,t){return!ye(e)||!(t=ss.exec(e))?"":t[1]},_s=function(e,t,i){return nt(i,function(r){return Vt(e,t,r)})},an=[].slice,Dr=function(e,t){return e&&He(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&He(e[0]))&&!e.nodeType&&e!==Ve},ys=function(e,t,i){return i===void 0&&(i=[]),e.forEach(function(r){var a;return ye(r)&&!t||Dr(r,1)?(a=i).push.apply(a,Be(r)):i.push(r)})||i},Be=function(e,t,i){return le&&!t&&le.selector?le.selector(e):ye(e)&&!i&&(Ui||!qt())?an.call((t||Wi).querySelectorAll(e),0):Te(e)?ys(e,i):Dr(e)?an.call(e,0):e?[e]:[]},on=function(e){return e=Be(e)[0]||Zt("Invalid scope")||{},function(t){var i=e.current||e.nativeElement||e;return Be(t,i.querySelectorAll?i:i===e?Zt("Invalid scope")||Wi.createElement("div"):e)}},Nr=function(e){return e.sort(function(){return .5-Math.random()})},Rr=function(e){if(de(e))return e;var t=He(e)?e:{each:e},i=ut(t.ease),r=t.from||0,a=parseFloat(t.base)||0,o={},s=r>0&&r<1,l=isNaN(r)||s,c=t.axis,p=r,d=r;return ye(r)?p=d={center:.5,edges:.5,end:1}[r]||0:!s&&l&&(p=r[0],d=r[1]),function(m,h,_){var f=(_||t).length,x=o[f],y,b,w,T,g,k,S,C,O;if(!x){if(O=t.grid==="auto"?0:(t.grid||[1,Le])[1],!O){for(S=-Le;S<(S=_[O++].getBoundingClientRect().left)&&O<f;);O<f&&O--}for(x=o[f]=[],y=l?Math.min(O,f)*p-.5:r%O,b=O===Le?0:l?f*d/O-.5:r/O|0,S=0,C=Le,k=0;k<f;k++)w=k%O-y,T=b-(k/O|0),x[k]=g=c?Math.abs(c==="y"?T:w):dr(w*w+T*T),g>S&&(S=g),g<C&&(C=g);r==="random"&&Nr(x),x.max=S-C,x.min=C,x.v=f=(parseFloat(t.amount)||parseFloat(t.each)*(O>f?f-1:c?c==="y"?f/O:O:Math.max(O,f/O))||0)*(r==="edges"?-1:1),x.b=f<0?a-f:a,x.u=je(t.amount||t.each)||0,i=i&&f<0?Ur(i):i}return f=(x[m]-x.min)/x.max||0,he(x.b+(i?i(f):f)*x.v)+x.u}},sn=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(i){var r=he(Math.round(parseFloat(i)/e)*e*t);return(r-r%1)/t+(Ke(i)?0:je(i))}},Mr=function(e,t){var i=Te(e),r,a;return!i&&He(e)&&(r=i=e.radius||Le,e.values?(e=Be(e.values),(a=!Ke(e[0]))&&(r*=r)):e=sn(e.increment)),nt(t,i?de(e)?function(o){return a=e(o),Math.abs(a-o)<=r?a:o}:function(o){for(var s=parseFloat(a?o.x:o),l=parseFloat(a?o.y:0),c=Le,p=0,d=e.length,m,h;d--;)a?(m=e[d].x-s,h=e[d].y-l,m=m*m+h*h):m=Math.abs(e[d]-s),m<c&&(c=m,p=d);return p=!r||c<=r?e[p]:o,a||p===o||Ke(o)?p:p+je(o)}:sn(e))},Fr=function(e,t,i,r){return nt(Te(e)?!t:i===!0?!!(i=0):!r,function(){return Te(e)?e[~~(Math.random()*e.length)]:(i=i||1e-5)&&(r=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((e-i/2+Math.random()*(t-e+i*.99))/i)*i*r)/r})},bs=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(r){return t.reduce(function(a,o){return o(a)},r)}},ws=function(e,t){return function(i){return e(parseFloat(i))+(t||je(i))}},Ts=function(e,t,i){return Ir(e,t,0,1,i)},zr=function(e,t,i){return nt(i,function(r){return e[~~t(r)]})},js=function n(e,t,i){var r=t-e;return Te(e)?zr(e,n(0,e.length),t):nt(i,function(a){return(r+(a-e)%r)%r+e})},ks=function n(e,t,i){var r=t-e,a=r*2;return Te(e)?zr(e,n(0,e.length-1),t):nt(i,function(o){return o=(a+(o-e)%a)%a||0,e+(o>r?a-o:o)})},Yt=function(e){for(var t=0,i="",r,a,o,s;~(r=e.indexOf("random(",t));)o=e.indexOf(")",r),s=e.charAt(r+7)==="[",a=e.substr(r+7,o-r-7).match(s?vr:Vi),i+=e.substr(t,r-t)+Fr(s?a:+a[0],s?0:+a[1],+a[2]||1e-5),t=o+1;return i+e.substr(t,e.length-t)},Ir=function(e,t,i,r,a){var o=t-e,s=r-i;return nt(a,function(l){return i+((l-e)/o*s||0)})},Os=function n(e,t,i,r){var a=isNaN(e+t)?0:function(h){return(1-h)*e+h*t};if(!a){var o=ye(e),s={},l,c,p,d,m;if(i===!0&&(r=1)&&(i=null),o)e={p:e},t={p:t};else if(Te(e)&&!Te(t)){for(p=[],d=e.length,m=d-2,c=1;c<d;c++)p.push(n(e[c-1],e[c]));d--,a=function(_){_*=d;var f=Math.min(m,~~_);return p[f](_-f)},i=t}else r||(e=kt(Te(e)?[]:{},e));if(!p){for(l in t)un.call(s,e,l,"get",t[l]);a=function(_){return vn(_,s)||(o?e.p:e)}}}return nt(i,a)},Lr=function(e,t,i){var r=e.labels,a=Le,o,s,l;for(o in r)s=r[o]-t,s<0==!!i&&s&&a>(s=Math.abs(s))&&(l=o,a=s);return l},Re=function(e,t,i){var r=e.vars,a=r[t],o=le,s=e._ctx,l,c,p;if(a)return l=r[t+"Params"],c=r.callbackScope||e,i&&tt.length&&_i(),s&&(le=s),p=l?a.apply(c,l):a.call(c),le=o,p},Ut=function(e){return it(e),e.scrollTrigger&&e.scrollTrigger.kill(!!we),e.progress()<1&&Re(e,"onInterrupt"),e},Ct,Zr=[],Br=function(e){if(e)if(e=!e.name&&e.default||e,Hi()||e.headless){var t=e.name,i=de(e),r=t&&!i&&e.init?function(){this._props=[]}:e,a={init:Bt,render:vn,add:un,kill:Bs,modifier:Zs,rawVars:0},o={targetTest:0,get:0,getSetter:hn,aliases:{},register:0};if(qt(),e!==r){if(De[t])return;Ne(r,Ne(yi(e,a),o)),kt(r.prototype,kt(a,yi(e,o))),De[r.prop=t]=r,e.targetTest&&(gi.push(r),Gi[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}_r(t,r),e.register&&e.register(qe,r,Ce)}else Zr.push(e)},re=255,Wt={aqua:[0,re,re],lime:[0,re,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,re],navy:[0,0,128],white:[re,re,re],olive:[128,128,0],yellow:[re,re,0],orange:[re,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[re,0,0],pink:[re,192,203],cyan:[0,re,re],transparent:[re,re,re,0]},ln=function(e,t,i){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(i-t)*e*6:e<.5?i:e*3<2?t+(i-t)*(2/3-e)*6:t)*re+.5|0},$r=function(e,t,i){var r=e?Ke(e)?[e>>16,e>>8&re,e&re]:0:Wt.black,a,o,s,l,c,p,d,m,h,_;if(!r){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Wt[e])r=Wt[e];else if(e.charAt(0)==="#"){if(e.length<6&&(a=e.charAt(1),o=e.charAt(2),s=e.charAt(3),e="#"+a+a+o+o+s+s+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&re,r&re,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&re,e&re]}else if(e.substr(0,3)==="hsl"){if(r=_=e.match(Vi),!t)l=+r[0]%360/360,c=+r[1]/100,p=+r[2]/100,o=p<=.5?p*(c+1):p+c-p*c,a=p*2-o,r.length>3&&(r[3]*=1),r[0]=ln(l+1/3,a,o),r[1]=ln(l,a,o),r[2]=ln(l-1/3,a,o);else if(~e.indexOf("="))return r=e.match(mr),i&&r.length<4&&(r[3]=1),r}else r=e.match(Vi)||Wt.transparent;r=r.map(Number)}return t&&!_&&(a=r[0]/re,o=r[1]/re,s=r[2]/re,d=Math.max(a,o,s),m=Math.min(a,o,s),p=(d+m)/2,d===m?l=c=0:(h=d-m,c=p>.5?h/(2-d-m):h/(d+m),l=d===a?(o-s)/h+(o<s?6:0):d===o?(s-a)/h+2:(a-o)/h+4,l*=60),r[0]=~~(l+.5),r[1]=~~(c*100+.5),r[2]=~~(p*100+.5)),i&&r.length<4&&(r[3]=1),r},Hr=function(e){var t=[],i=[],r=-1;return e.split(rt).forEach(function(a){var o=a.match(Tt)||[];t.push.apply(t,o),i.push(r+=o.length+1)}),t.c=i,t},Vr=function(e,t,i){var r="",a=(e+r).match(rt),o=t?"hsla(":"rgba(",s=0,l,c,p,d;if(!a)return e;if(a=a.map(function(m){return(m=$r(m,t,1))&&o+(t?m[0]+","+m[1]+"%,"+m[2]+"%,"+m[3]:m.join(","))+")"}),i&&(p=Hr(e),l=i.c,l.join(r)!==p.c.join(r)))for(c=e.replace(rt,"1").split(Tt),d=c.length-1;s<d;s++)r+=c[s]+(~l.indexOf(s)?a.shift()||o+"0,0,0,0)":(p.length?p:a.length?a:i).shift());if(!c)for(c=e.split(rt),d=c.length-1;s<d;s++)r+=c[s]+a[s];return r+c[d]},rt=(function(){var n="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in Wt)n+="|"+e+"\\b";return new RegExp(n+")","gi")})(),Ss=/hsl[a]?\(/,Yr=function(e){var t=e.join(" "),i;if(rt.lastIndex=0,rt.test(t))return i=Ss.test(t),e[1]=Vr(e[1],i),e[0]=Vr(e[0],i,Hr(e[1])),!0},Xt,Me=(function(){var n=Date.now,e=500,t=33,i=n(),r=i,a=1e3/240,o=a,s=[],l,c,p,d,m,h,_=function f(x){var y=n()-r,b=x===!0,w,T,g,k;if((y>e||y<0)&&(i+=y-t),r+=y,g=r-i,w=g-o,(w>0||b)&&(k=++d.frame,m=g-d.time*1e3,d.time=g=g/1e3,o+=w+(w>=a?4:a-w),T=1),b||(l=c(f)),T)for(h=0;h<s.length;h++)s[h](g,m,k,x)};return d={time:0,frame:0,tick:function(){_(!0)},deltaRatio:function(x){return m/(1e3/(x||60))},wake:function(){xr&&(!Ui&&Hi()&&(Ve=Ui=window,Wi=Ve.document||{},Ae.gsap=qe,(Ve.gsapVersions||(Ve.gsapVersions=[])).push(qe.version),gr(vi||Ve.GreenSockGlobals||!Ve.gsap&&Ve||{}),Zr.forEach(Br)),p=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&d.sleep(),c=p||function(x){return setTimeout(x,o-d.time*1e3+1|0)},Xt=1,_(2))},sleep:function(){(p?cancelAnimationFrame:clearTimeout)(l),Xt=0,c=Bt},lagSmoothing:function(x,y){e=x||1/0,t=Math.min(y||33,e)},fps:function(x){a=1e3/(x||240),o=d.time*1e3+a},add:function(x,y,b){var w=y?function(T,g,k,S){x(T,g,k,S),d.remove(w)}:x;return d.remove(x),s[b?"unshift":"push"](w),qt(),w},remove:function(x,y){~(y=s.indexOf(x))&&s.splice(y,1)&&h>=y&&h--},_listeners:s},d})(),qt=function(){return!Xt&&Me.wake()},J={},Cs=/^[\d.\-M][\d.\-,\s]/,qs=/["']/g,Es=function(e){for(var t={},i=e.substr(1,e.length-3).split(":"),r=i[0],a=1,o=i.length,s,l,c;a<o;a++)l=i[a],s=a!==o-1?l.lastIndexOf(","):l.length,c=l.substr(0,s),t[r]=isNaN(c)?c.replace(qs,"").trim():+c,r=l.substr(s+1).trim();return t},Ps=function(e){var t=e.indexOf("(")+1,i=e.indexOf(")"),r=e.indexOf("(",t);return e.substring(t,~r&&r<i?e.indexOf(")",i+1):i)},As=function(e){var t=(e+"").split("("),i=J[t[0]];return i&&t.length>1&&i.config?i.config.apply(null,~e.indexOf("{")?[Es(t[1])]:Ps(e).split(",").map(jr)):J._CE&&Cs.test(e)?J._CE("",e):i},Ur=function(e){return function(t){return 1-e(1-t)}},Wr=function n(e,t){for(var i=e._first,r;i;)i instanceof ke?n(i,t):i.vars.yoyoEase&&(!i._yoyo||!i._repeat)&&i._yoyo!==t&&(i.timeline?n(i.timeline,t):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=t)),i=i._next},ut=function(e,t){return e&&(de(e)?e:J[e]||As(e))||t},dt=function(e,t,i,r){i===void 0&&(i=function(l){return 1-t(1-l)}),r===void 0&&(r=function(l){return l<.5?t(l*2)/2:1-t((1-l)*2)/2});var a={easeIn:t,easeOut:i,easeInOut:r},o;return Se(e,function(s){J[s]=Ae[s]=a,J[o=s.toLowerCase()]=i;for(var l in a)J[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=J[s+"."+l]=a[l]}),a},Xr=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},cn=function n(e,t,i){var r=t>=1?t:1,a=(i||(e?.3:.45))/(t<1?t:1),o=a/Bi*(Math.asin(1/r)||0),s=function(p){return p===1?1:r*Math.pow(2,-10*p)*os((p-o)*a)+1},l=e==="out"?s:e==="in"?function(c){return 1-s(1-c)}:Xr(s);return a=Bi/a,l.config=function(c,p){return n(e,c,p)},l},pn=function n(e,t){t===void 0&&(t=1.70158);var i=function(o){return o?--o*o*((t+1)*o+t)+1:0},r=e==="out"?i:e==="in"?function(a){return 1-i(1-a)}:Xr(i);return r.config=function(a){return n(e,a)},r};Se("Linear,Quad,Cubic,Quart,Quint,Strong",function(n,e){var t=e<5?e+1:e;dt(n+",Power"+(t-1),e?function(i){return Math.pow(i,t)}:function(i){return i},function(i){return 1-Math.pow(1-i,t)},function(i){return i<.5?Math.pow(i*2,t)/2:1-Math.pow((1-i)*2,t)/2})}),J.Linear.easeNone=J.none=J.Linear.easeIn,dt("Elastic",cn("in"),cn("out"),cn()),(function(n,e){var t=1/e,i=2*t,r=2.5*t,a=function(s){return s<t?n*s*s:s<i?n*Math.pow(s-1.5/e,2)+.75:s<r?n*(s-=2.25/e)*s+.9375:n*Math.pow(s-2.625/e,2)+.984375};dt("Bounce",function(o){return 1-a(1-o)},a)})(7.5625,2.75),dt("Expo",function(n){return Math.pow(2,10*(n-1))*n+n*n*n*n*n*n*(1-n)}),dt("Circ",function(n){return-(dr(1-n*n)-1)}),dt("Sine",function(n){return n===1?1:-as(n*ns)+1}),dt("Back",pn("in"),pn("out"),pn()),J.SteppedEase=J.steps=Ae.SteppedEase={config:function(e,t){e===void 0&&(e=1);var i=1/e,r=e+(t?0:1),a=t?1:0,o=1-ne;return function(s){return((r*Vt(0,o,s)|0)+a)*i}}},wt.ease=J["quad.out"],Se("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(n){return Qi+=n+","+n+"Params,"});var Gr=function(e,t){this.id=rs++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:wr,this.set=t?t.getSetter:hn},Gt=(function(){function n(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,St(this,+t.duration,1,1),this.data=t.data,le&&(this._ctx=le,le.data.push(this)),Xt||Me.wake()}var e=n.prototype;return e.delay=function(i){return i||i===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+i-this._delay),this._delay=i,this):this._delay},e.duration=function(i){return arguments.length?this.totalDuration(this._repeat>0?i+(i+this._rDelay)*this._repeat:i):this.totalDuration()&&this._dur},e.totalDuration=function(i){return arguments.length?(this._dirty=0,St(this,this._repeat<0?i:(i-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(i,r){if(qt(),!arguments.length)return this._tTime;var a=this._dp;if(a&&a.smoothChildTiming&&this._ts){for(ji(this,i),!a._dp||a.parent||qr(a,this);a&&a.parent;)a.parent._time!==a._start+(a._ts>=0?a._tTime/a._ts:(a.totalDuration()-a._tTime)/-a._ts)&&a.totalTime(a._tTime,!0),a=a.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&i<this._tDur||this._ts<0&&i>0||!this._tDur&&!i)&&Ye(this._dp,this,this._start-this._delay)}return(this._tTime!==i||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===ne||!i&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=i),Tr(this,i,r)),this},e.time=function(i,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),i+Cr(this))%(this._dur+this._rDelay)||(i?this._dur:0),r):this._time},e.totalProgress=function(i,r){return arguments.length?this.totalTime(this.totalDuration()*i,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(i,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-i:i)+Cr(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(i,r){var a=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(i-1)*a,r):this._repeat?Ot(this._tTime,a)+1:1},e.timeScale=function(i,r){if(!arguments.length)return this._rts===-ne?0:this._rts;if(this._rts===i)return this;var a=this.parent&&this._ts?wi(this.parent._time,this):this._tTime;return this._rts=+i||0,this._ts=this._ps||i===-ne?0:this._rts,this.totalTime(Vt(-Math.abs(this._delay),this.totalDuration(),a),r!==!1),Ti(this),fs(this)},e.paused=function(i){return arguments.length?(this._ps!==i&&(this._ps=i,i?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(qt(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==ne&&(this._tTime-=ne)))),this):this._ps},e.startTime=function(i){if(arguments.length){this._start=i;var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&Ye(r,this,i-this._delay),this}return this._start},e.endTime=function(i){return this._start+(Oe(i)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(i){var r=this.parent||this._dp;return r?i&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?wi(r.rawTime(i),this):this._tTime:this._tTime},e.revert=function(i){i===void 0&&(i=cs);var r=we;return we=i,tn(this)&&(this.timeline&&this.timeline.revert(i),this.totalTime(-.01,i.suppressEvents)),this.data!=="nested"&&i.kill!==!1&&this.kill(),we=r,this},e.globalTime=function(i){for(var r=this,a=arguments.length?i:r.rawTime();r;)a=r._start+a/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(i):a},e.repeat=function(i){return arguments.length?(this._repeat=i===1/0?-2:i,Ar(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(i){if(arguments.length){var r=this._time;return this._rDelay=i,Ar(this),r?this.time(r):this}return this._rDelay},e.yoyo=function(i){return arguments.length?(this._yoyo=i,this):this._yoyo},e.seek=function(i,r){return this.totalTime(Ze(this,i),Oe(r))},e.restart=function(i,r){return this.play().totalTime(i?-this._delay:0,Oe(r)),this._dur||(this._zTime=-ne),this},e.play=function(i,r){return i!=null&&this.seek(i,r),this.reversed(!1).paused(!1)},e.reverse=function(i,r){return i!=null&&this.seek(i||this.totalDuration(),r),this.reversed(!0).paused(!1)},e.pause=function(i,r){return i!=null&&this.seek(i,r),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(i){return arguments.length?(!!i!==this.reversed()&&this.timeScale(-this._rts||(i?-ne:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-ne,this},e.isActive=function(){var i=this.parent||this._dp,r=this._start,a;return!!(!i||this._ts&&this._initted&&i.isActive()&&(a=i.rawTime(!0))>=r&&a<this.endTime(!0)-ne)},e.eventCallback=function(i,r,a){var o=this.vars;return arguments.length>1?(r?(o[i]=r,a&&(o[i+"Params"]=a),i==="onUpdate"&&(this._onUpdate=r)):delete o[i],this):o[i]},e.then=function(i){var r=this;return new Promise(function(a){var o=de(i)?i:kr,s=function(){var c=r.then;r.then=null,de(o)&&(o=o(r))&&(o.then||o===r)&&(r.then=c),a(o),r.then=c};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?s():r._prom=s})},e.kill=function(){Ut(this)},n})();Ne(Gt.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:-ne,_prom:0,_ps:!1,_rts:1});var ke=(function(n){ur(e,n);function e(i,r){var a;return i===void 0&&(i={}),a=n.call(this,i)||this,a.labels={},a.smoothChildTiming=!!i.smoothChildTiming,a.autoRemoveChildren=!!i.autoRemoveChildren,a._sort=Oe(i.sortChildren),ce&&Ye(i.parent||ce,Ge(a),r),i.reversed&&a.reverse(),i.paused&&a.paused(!0),i.scrollTrigger&&Er(Ge(a),i.scrollTrigger),a}var t=e.prototype;return t.to=function(r,a,o){return Ht(0,arguments,this),this},t.from=function(r,a,o){return Ht(1,arguments,this),this},t.fromTo=function(r,a,o,s){return Ht(2,arguments,this),this},t.set=function(r,a,o){return a.duration=0,a.parent=this,$t(a).repeatDelay||(a.repeat=0),a.immediateRender=!!a.immediateRender,new ve(r,a,Ze(this,o),1),this},t.call=function(r,a,o){return Ye(this,ve.delayedCall(0,r,a),o)},t.staggerTo=function(r,a,o,s,l,c,p){return o.duration=a,o.stagger=o.stagger||s,o.onComplete=c,o.onCompleteParams=p,o.parent=this,new ve(r,o,Ze(this,l)),this},t.staggerFrom=function(r,a,o,s,l,c,p){return o.runBackwards=1,$t(o).immediateRender=Oe(o.immediateRender),this.staggerTo(r,a,o,s,l,c,p)},t.staggerFromTo=function(r,a,o,s,l,c,p,d){return s.startAt=o,$t(s).immediateRender=Oe(s.immediateRender),this.staggerTo(r,a,s,l,c,p,d)},t.render=function(r,a,o){var s=this._time,l=this._dirty?this.totalDuration():this._tDur,c=this._dur,p=r<=0?0:he(r),d=this._zTime<0!=r<0&&(this._initted||!c),m,h,_,f,x,y,b,w,T,g,k,S;if(this!==ce&&p>l&&r>=0&&(p=l),p!==this._tTime||o||d){if(s!==this._time&&c&&(p+=this._time-s,r+=this._time-s),m=p,T=this._start,w=this._ts,y=!w,d&&(c||(s=this._zTime),(r||!a)&&(this._zTime=r)),this._repeat){if(k=this._yoyo,x=c+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(x*100+r,a,o);if(m=he(p%x),p===l?(f=this._repeat,m=c):(g=he(p/x),f=~~g,f&&f===g&&(m=c,f--),m>c&&(m=c)),g=Ot(this._tTime,x),!s&&this._tTime&&g!==f&&this._tTime-g*x-this._dur<=0&&(g=f),k&&f&1&&(m=c-m,S=1),f!==g&&!this._lock){var C=k&&g&1,O=C===(k&&f&1);if(f<g&&(C=!C),s=C?0:p%c?c:p,this._lock=1,this.render(s||(S?0:he(f*x)),a,!c)._lock=0,this._tTime=p,!a&&this.parent&&Re(this,"onRepeat"),this.vars.repeatRefresh&&!S&&(this.invalidate()._lock=1),s&&s!==this._time||y!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(c=this._dur,l=this._tDur,O&&(this._lock=2,s=C?c:-1e-4,this.render(s,!0),this.vars.repeatRefresh&&!S&&this.invalidate()),this._lock=0,!this._ts&&!y)return this;Wr(this,S)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(b=xs(this,he(s),he(m)),b&&(p-=m-(m=b._start))),this._tTime=p,this._time=m,this._act=!w,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=r,s=0),!s&&p&&!a&&!g&&(Re(this,"onStart"),this._tTime!==p))return this;if(m>=s&&r>=0)for(h=this._first;h;){if(_=h._next,(h._act||m>=h._start)&&h._ts&&b!==h){if(h.parent!==this)return this.render(r,a,o);if(h.render(h._ts>0?(m-h._start)*h._ts:(h._dirty?h.totalDuration():h._tDur)+(m-h._start)*h._ts,a,o),m!==this._time||!this._ts&&!y){b=0,_&&(p+=this._zTime=-ne);break}}h=_}else{h=this._last;for(var Z=r<0?r:m;h;){if(_=h._prev,(h._act||Z<=h._end)&&h._ts&&b!==h){if(h.parent!==this)return this.render(r,a,o);if(h.render(h._ts>0?(Z-h._start)*h._ts:(h._dirty?h.totalDuration():h._tDur)+(Z-h._start)*h._ts,a,o||we&&tn(h)),m!==this._time||!this._ts&&!y){b=0,_&&(p+=this._zTime=Z?-ne:ne);break}}h=_}}if(b&&!a&&(this.pause(),b.render(m>=s?0:-ne)._zTime=m>=s?1:-1,this._ts))return this._start=T,Ti(this),this.render(r,a,o);this._onUpdate&&!a&&Re(this,"onUpdate",!0),(p===l&&this._tTime>=this.totalDuration()||!p&&s)&&(T===this._start||Math.abs(w)!==Math.abs(this._ts))&&(this._lock||((r||!c)&&(p===l&&this._ts>0||!p&&this._ts<0)&&it(this,1),!a&&!(r<0&&!s)&&(p||s||!l)&&(Re(this,p===l&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(p<l&&this.timeScale()>0)&&this._prom())))}return this},t.add=function(r,a){var o=this;if(Ke(a)||(a=Ze(this,a,r)),!(r instanceof Gt)){if(Te(r))return r.forEach(function(s){return o.add(s,a)}),this;if(ye(r))return this.addLabel(r,a);if(de(r))r=ve.delayedCall(0,r);else return this}return this!==r?Ye(this,r,a):this},t.getChildren=function(r,a,o,s){r===void 0&&(r=!0),a===void 0&&(a=!0),o===void 0&&(o=!0),s===void 0&&(s=-Le);for(var l=[],c=this._first;c;)c._start>=s&&(c instanceof ve?a&&l.push(c):(o&&l.push(c),r&&l.push.apply(l,c.getChildren(!0,a,o)))),c=c._next;return l},t.getById=function(r){for(var a=this.getChildren(1,1,1),o=a.length;o--;)if(a[o].vars.id===r)return a[o]},t.remove=function(r){return ye(r)?this.removeLabel(r):de(r)?this.killTweensOf(r):(r.parent===this&&bi(this,r),r===this._recent&&(this._recent=this._last),pt(this))},t.totalTime=function(r,a){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=he(Me.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),n.prototype.totalTime.call(this,r,a),this._forcing=0,this):this._tTime},t.addLabel=function(r,a){return this.labels[r]=Ze(this,a),this},t.removeLabel=function(r){return delete this.labels[r],this},t.addPause=function(r,a,o){var s=ve.delayedCall(0,a||Bt,o);return s.data="isPause",this._hasPause=1,Ye(this,s,Ze(this,r))},t.removePause=function(r){var a=this._first;for(r=Ze(this,r);a;)a._start===r&&a.data==="isPause"&&it(a),a=a._next},t.killTweensOf=function(r,a,o){for(var s=this.getTweensOf(r,o),l=s.length;l--;)at!==s[l]&&s[l].kill(r,a);return this},t.getTweensOf=function(r,a){for(var o=[],s=Be(r),l=this._first,c=Ke(a),p;l;)l instanceof ve?ps(l._targets,s)&&(c?(!at||l._initted&&l._ts)&&l.globalTime(0)<=a&&l.globalTime(l.totalDuration())>a:!a||l.isActive())&&o.push(l):(p=l.getTweensOf(s,a)).length&&o.push.apply(o,p),l=l._next;return o},t.tweenTo=function(r,a){a=a||{};var o=this,s=Ze(o,r),l=a,c=l.startAt,p=l.onStart,d=l.onStartParams,m=l.immediateRender,h,_=ve.to(o,Ne({ease:a.ease||"none",lazy:!1,immediateRender:!1,time:s,overwrite:"auto",duration:a.duration||Math.abs((s-(c&&"time"in c?c.time:o._time))/o.timeScale())||ne,onStart:function(){if(o.pause(),!h){var x=a.duration||Math.abs((s-(c&&"time"in c?c.time:o._time))/o.timeScale());_._dur!==x&&St(_,x,0,1).render(_._time,!0,!0),h=1}p&&p.apply(_,d||[])}},a));return m?_.render(0):_},t.tweenFromTo=function(r,a,o){return this.tweenTo(a,Ne({startAt:{time:Ze(this,r)}},o))},t.recent=function(){return this._recent},t.nextLabel=function(r){return r===void 0&&(r=this._time),Lr(this,Ze(this,r))},t.previousLabel=function(r){return r===void 0&&(r=this._time),Lr(this,Ze(this,r),1)},t.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+ne)},t.shiftChildren=function(r,a,o){o===void 0&&(o=0);for(var s=this._first,l=this.labels,c;s;)s._start>=o&&(s._start+=r,s._end+=r),s=s._next;if(a)for(c in l)l[c]>=o&&(l[c]+=r);return pt(this)},t.invalidate=function(r){var a=this._first;for(this._lock=0;a;)a.invalidate(r),a=a._next;return n.prototype.invalidate.call(this,r)},t.clear=function(r){r===void 0&&(r=!0);for(var a=this._first,o;a;)o=a._next,this.remove(a),a=o;return this._dp&&(this._time=this._tTime=this._pTime=0),r&&(this.labels={}),pt(this)},t.totalDuration=function(r){var a=0,o=this,s=o._last,l=Le,c,p,d;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-r:r));if(o._dirty){for(d=o.parent;s;)c=s._prev,s._dirty&&s.totalDuration(),p=s._start,p>l&&o._sort&&s._ts&&!o._lock?(o._lock=1,Ye(o,s,p-s._delay,1)._lock=0):l=p,p<0&&s._ts&&(a-=p,(!d&&!o._dp||d&&d.smoothChildTiming)&&(o._start+=p/o._ts,o._time-=p,o._tTime-=p),o.shiftChildren(-p,!1,-1/0),l=0),s._end>a&&s._ts&&(a=s._end),s=c;St(o,o===ce&&o._time>a?o._time:a,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(r){if(ce._ts&&(Tr(ce,wi(r,ce)),yr=Me.frame),Me.frame>=br){br+=Pe.autoSleep||120;var a=ce._first;if((!a||!a._ts)&&Pe.autoSleep&&Me._listeners.length<2){for(;a&&!a._ts;)a=a._next;a||Me.sleep()}}},e})(Gt);Ne(ke.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ds=function(e,t,i,r,a,o,s){var l=new Ce(this._pt,e,t,0,1,ia,null,a),c=0,p=0,d,m,h,_,f,x,y,b;for(l.b=i,l.e=r,i+="",r+="",(y=~r.indexOf("random("))&&(r=Yt(r)),o&&(b=[i,r],o(b,e,t),i=b[0],r=b[1]),m=i.match(Yi)||[];d=Yi.exec(r);)_=d[0],f=r.substring(c,d.index),h?h=(h+1)%5:f.substr(-5)==="rgba("&&(h=1),_!==m[p++]&&(x=parseFloat(m[p-1])||0,l._pt={_next:l._pt,p:f||p===1?f:",",s:x,c:_.charAt(1)==="="?jt(x,_)-x:parseFloat(_)-x,m:h&&h<4?Math.round:0},c=Yi.lastIndex);return l.c=c<r.length?r.substring(c,r.length):"",l.fp=s,(hr.test(r)||y)&&(l.e=0),this._pt=l,l},un=function(e,t,i,r,a,o,s,l,c,p){de(r)&&(r=r(a||0,e,o));var d=e[t],m=i!=="get"?i:de(d)?c?e[t.indexOf("set")||!de(e["get"+t.substr(3)])?t:"get"+t.substr(3)](c):e[t]():d,h=de(d)?c?zs:ea:mn,_;if(ye(r)&&(~r.indexOf("random(")&&(r=Yt(r)),r.charAt(1)==="="&&(_=jt(m,r)+(je(m)||0),(_||_===0)&&(r=_))),!p||m!==r||dn)return!isNaN(m*r)&&r!==""?(_=new Ce(this._pt,e,t,+m||0,r-(m||0),typeof d=="boolean"?Ls:ta,0,h),c&&(_.fp=c),s&&_.modifier(s,this,e),this._pt=_):(!d&&!(t in e)&&Xi(t,r),Ds.call(this,e,t,m,r,h,l||Pe.stringFilter,c))},Ns=function(e,t,i,r,a){if(de(e)&&(e=Kt(e,a,t,i,r)),!He(e)||e.style&&e.nodeType||Te(e)||fr(e))return ye(e)?Kt(e,a,t,i,r):e;var o={},s;for(s in e)o[s]=Kt(e[s],a,t,i,r);return o},Kr=function(e,t,i,r,a,o){var s,l,c,p;if(De[e]&&(s=new De[e]).init(a,s.rawVars?t[e]:Ns(t[e],r,a,o,i),i,r,o)!==!1&&(i._pt=l=new Ce(i._pt,a,e,0,1,s.render,s,0,s.priority),i!==Ct))for(c=i._ptLookup[i._targets.indexOf(a)],p=s._props.length;p--;)c[s._props[p]]=l;return s},at,dn,fn=function n(e,t,i){var r=e.vars,a=r.ease,o=r.startAt,s=r.immediateRender,l=r.lazy,c=r.onUpdate,p=r.runBackwards,d=r.yoyoEase,m=r.keyframes,h=r.autoRevert,_=e._dur,f=e._startAt,x=e._targets,y=e.parent,b=y&&y.data==="nested"?y.vars.targets:x,w=e._overwrite==="auto"&&!Zi,T=e.timeline,g,k,S,C,O,Z,H,U,V,L,Y,X,K;if(T&&(!m||!a)&&(a="none"),e._ease=ut(a,wt.ease),e._yEase=d?Ur(ut(d===!0?a:d,wt.ease)):0,d&&e._yoyo&&!e._repeat&&(d=e._yEase,e._yEase=e._ease,e._ease=d),e._from=!T&&!!r.runBackwards,!T||m&&!r.stagger){if(U=x[0]?ct(x[0]).harness:0,X=U&&r[U.prop],g=yi(r,Gi),f&&(f._zTime<0&&f.progress(1),t<0&&p&&s&&!h?f.render(-1,!0):f.revert(p&&_?xi:ls),f._lazy=0),o){if(it(e._startAt=ve.set(x,Ne({data:"isStart",overwrite:!1,parent:y,immediateRender:!0,lazy:!f&&Oe(l),startAt:null,delay:0,onUpdate:c&&function(){return Re(e,"onUpdate")},stagger:0},o))),e._startAt._dp=0,e._startAt._sat=e,t<0&&(we||!s&&!h)&&e._startAt.revert(xi),s&&_&&t<=0&&i<=0){t&&(e._zTime=t);return}}else if(p&&_&&!f){if(t&&(s=!1),S=Ne({overwrite:!1,data:"isFromStart",lazy:s&&!f&&Oe(l),immediateRender:s,stagger:0,parent:y},g),X&&(S[U.prop]=X),it(e._startAt=ve.set(x,S)),e._startAt._dp=0,e._startAt._sat=e,t<0&&(we?e._startAt.revert(xi):e._startAt.render(-1,!0)),e._zTime=t,!s)n(e._startAt,ne,ne);else if(!t)return}for(e._pt=e._ptCache=0,l=_&&Oe(l)||l&&!_,k=0;k<x.length;k++){if(O=x[k],H=O._gsap||en(x)[k]._gsap,e._ptLookup[k]=L={},Ki[H.id]&&tt.length&&_i(),Y=b===x?k:b.indexOf(O),U&&(V=new U).init(O,X||g,e,Y,b)!==!1&&(e._pt=C=new Ce(e._pt,O,V.name,0,1,V.render,V,0,V.priority),V._props.forEach(function(oe){L[oe]=C}),V.priority&&(Z=1)),!U||X)for(S in g)De[S]&&(V=Kr(S,g,e,Y,O,b))?V.priority&&(Z=1):L[S]=C=un.call(e,O,S,"get",g[S],Y,b,0,r.stringFilter);e._op&&e._op[k]&&e.kill(O,e._op[k]),w&&e._pt&&(at=e,ce.killTweensOf(O,L,e.globalTime(t)),K=!e.parent,at=0),e._pt&&l&&(Ki[H.id]=1)}Z&&na(e),e._onInit&&e._onInit(e)}e._onUpdate=c,e._initted=(!e._op||e._pt)&&!K,m&&t<=0&&T.render(Le,!0,!0)},Rs=function(e,t,i,r,a,o,s,l){var c=(e._pt&&e._ptCache||(e._ptCache={}))[t],p,d,m,h;if(!c)for(c=e._ptCache[t]=[],m=e._ptLookup,h=e._targets.length;h--;){if(p=m[h][t],p&&p.d&&p.d._pt)for(p=p.d._pt;p&&p.p!==t&&p.fp!==t;)p=p._next;if(!p)return dn=1,e.vars[t]="+=0",fn(e,s),dn=0,l?Zt(t+" not eligible for reset"):1;c.push(p)}for(h=c.length;h--;)d=c[h],p=d._pt||d,p.s=(r||r===0)&&!a?r:p.s+(r||0)+o*p.c,p.c=i-p.s,d.e&&(d.e=fe(i)+je(d.e)),d.b&&(d.b=p.s+je(d.b))},Ms=function(e,t){var i=e[0]?ct(e[0]).harness:0,r=i&&i.aliases,a,o,s,l;if(!r)return t;a=kt({},t);for(o in r)if(o in a)for(l=r[o].split(","),s=l.length;s--;)a[l[s]]=a[o];return a},Fs=function(e,t,i,r){var a=t.ease||r||"power1.inOut",o,s;if(Te(t))s=i[e]||(i[e]=[]),t.forEach(function(l,c){return s.push({t:c/(t.length-1)*100,v:l,e:a})});else for(o in t)s=i[o]||(i[o]=[]),o==="ease"||s.push({t:parseFloat(e),v:t[o],e:a})},Kt=function(e,t,i,r,a){return de(e)?e.call(t,i,r,a):ye(e)&&~e.indexOf("random(")?Yt(e):e},Jr=Qi+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Qr={};Se(Jr+",id,stagger,delay,duration,paused,scrollTrigger",function(n){return Qr[n]=1});var ve=(function(n){ur(e,n);function e(i,r,a,o){var s;typeof r=="number"&&(a.duration=r,r=a,a=null),s=n.call(this,o?r:$t(r))||this;var l=s.vars,c=l.duration,p=l.delay,d=l.immediateRender,m=l.stagger,h=l.overwrite,_=l.keyframes,f=l.defaults,x=l.scrollTrigger,y=l.yoyoEase,b=r.parent||ce,w=(Te(i)||fr(i)?Ke(i[0]):"length"in r)?[i]:Be(i),T,g,k,S,C,O,Z,H;if(s._targets=w.length?en(w):Zt("GSAP target "+i+" not found. https://gsap.com",!Pe.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=h,_||m||hi(c)||hi(p)){if(r=s.vars,T=s.timeline=new ke({data:"nested",defaults:f||{},targets:b&&b.data==="nested"?b.vars.targets:w}),T.kill(),T.parent=T._dp=Ge(s),T._start=0,m||hi(c)||hi(p)){if(S=w.length,Z=m&&Rr(m),He(m))for(C in m)~Jr.indexOf(C)&&(H||(H={}),H[C]=m[C]);for(g=0;g<S;g++)k=yi(r,Qr),k.stagger=0,y&&(k.yoyoEase=y),H&&kt(k,H),O=w[g],k.duration=+Kt(c,Ge(s),g,O,w),k.delay=(+Kt(p,Ge(s),g,O,w)||0)-s._delay,!m&&S===1&&k.delay&&(s._delay=p=k.delay,s._start+=p,k.delay=0),T.to(O,k,Z?Z(g,O,w):0),T._ease=J.none;T.duration()?c=p=0:s.timeline=0}else if(_){$t(Ne(T.vars.defaults,{ease:"none"})),T._ease=ut(_.ease||r.ease||"none");var U=0,V,L,Y;if(Te(_))_.forEach(function(X){return T.to(w,X,">")}),T.duration();else{k={};for(C in _)C==="ease"||C==="easeEach"||Fs(C,_[C],k,_.easeEach);for(C in k)for(V=k[C].sort(function(X,K){return X.t-K.t}),U=0,g=0;g<V.length;g++)L=V[g],Y={ease:L.e,duration:(L.t-(g?V[g-1].t:0))/100*c},Y[C]=L.v,T.to(w,Y,U),U+=Y.duration;T.duration()<c&&T.to({},{duration:c-T.duration()})}}c||s.duration(c=T.duration())}else s.timeline=0;return h===!0&&!Zi&&(at=Ge(s),ce.killTweensOf(w),at=0),Ye(b,Ge(s),a),r.reversed&&s.reverse(),r.paused&&s.paused(!0),(d||!c&&!_&&s._start===he(b._time)&&Oe(d)&&ms(Ge(s))&&b.data!=="nested")&&(s._tTime=-ne,s.render(Math.max(0,-p)||0)),x&&Er(Ge(s),x),s}var t=e.prototype;return t.render=function(r,a,o){var s=this._time,l=this._tDur,c=this._dur,p=r<0,d=r>l-ne&&!p?l:r<ne?0:r,m,h,_,f,x,y,b,w,T;if(!c)vs(this,r,a,o);else if(d!==this._tTime||!r||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==p||this._lazy){if(m=d,w=this.timeline,this._repeat){if(f=c+this._rDelay,this._repeat<-1&&p)return this.totalTime(f*100+r,a,o);if(m=he(d%f),d===l?(_=this._repeat,m=c):(x=he(d/f),_=~~x,_&&_===x?(m=c,_--):m>c&&(m=c)),y=this._yoyo&&_&1,y&&(T=this._yEase,m=c-m),x=Ot(this._tTime,f),m===s&&!o&&this._initted&&_===x)return this._tTime=d,this;_!==x&&(w&&this._yEase&&Wr(w,y),this.vars.repeatRefresh&&!y&&!this._lock&&m!==f&&this._initted&&(this._lock=o=1,this.render(he(f*_),!0).invalidate()._lock=0))}if(!this._initted){if(Pr(this,p?r:m,o,a,d))return this._tTime=0,this;if(s!==this._time&&!(o&&this.vars.repeatRefresh&&_!==x))return this;if(c!==this._dur)return this.render(r,a,o)}if(this._tTime=d,this._time=m,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=b=(T||this._ease)(m/c),this._from&&(this.ratio=b=1-b),!s&&d&&!a&&!x&&(Re(this,"onStart"),this._tTime!==d))return this;for(h=this._pt;h;)h.r(b,h.d),h=h._next;w&&w.render(r<0?r:w._dur*w._ease(m/this._dur),a,o)||this._startAt&&(this._zTime=r),this._onUpdate&&!a&&(p&&nn(this,r,a,o),Re(this,"onUpdate")),this._repeat&&_!==x&&this.vars.onRepeat&&!a&&this.parent&&Re(this,"onRepeat"),(d===this._tDur||!d)&&this._tTime===d&&(p&&!this._onUpdate&&nn(this,r,!0,!0),(r||!c)&&(d===this._tDur&&this._ts>0||!d&&this._ts<0)&&it(this,1),!a&&!(p&&!s)&&(d||s||y)&&(Re(this,d===l?"onComplete":"onReverseComplete",!0),this._prom&&!(d<l&&this.timeScale()>0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(r){return(!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),n.prototype.invalidate.call(this,r)},t.resetTo=function(r,a,o,s,l){Xt||Me.wake(),this._ts||this.play();var c=Math.min(this._dur,(this._dp._time-this._start)*this._ts),p;return this._initted||fn(this,c),p=this._ease(c/this._dur),Rs(this,r,a,o,s,p,c,l)?this.resetTo(r,a,o,s,1):(ji(this,0),this.parent||Sr(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(r,a){if(a===void 0&&(a="all"),!r&&(!a||a==="all"))return this._lazy=this._pt=0,this.parent?Ut(this):this.scrollTrigger&&this.scrollTrigger.kill(!!we),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(r,a,at&&at.vars.overwrite!==!0)._first||Ut(this),this.parent&&o!==this.timeline.totalDuration()&&St(this,this._dur*this.timeline._tDur/o,0,1),this}var s=this._targets,l=r?Be(r):s,c=this._ptLookup,p=this._pt,d,m,h,_,f,x,y;if((!a||a==="all")&&ds(s,l))return a==="all"&&(this._pt=0),Ut(this);for(d=this._op=this._op||[],a!=="all"&&(ye(a)&&(f={},Se(a,function(b){return f[b]=1}),a=f),a=Ms(s,a)),y=s.length;y--;)if(~l.indexOf(s[y])){m=c[y],a==="all"?(d[y]=a,_=m,h={}):(h=d[y]=d[y]||{},_=a);for(f in _)x=m&&m[f],x&&((!("kill"in x.d)||x.d.kill(f)===!0)&&bi(this,x,"_pt"),delete m[f]),h!=="all"&&(h[f]=1)}return this._initted&&!this._pt&&p&&Ut(this),this},e.to=function(r,a){return new e(r,a,arguments[2])},e.from=function(r,a){return Ht(1,arguments)},e.delayedCall=function(r,a,o,s){return new e(a,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:r,onComplete:a,onReverseComplete:a,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:s})},e.fromTo=function(r,a,o){return Ht(2,arguments)},e.set=function(r,a){return a.duration=0,a.repeatDelay||(a.repeat=0),new e(r,a)},e.killTweensOf=function(r,a,o){return ce.killTweensOf(r,a,o)},e})(Gt);Ne(ve.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Se("staggerTo,staggerFrom,staggerFromTo",function(n){ve[n]=function(){var e=new ke,t=an.call(arguments,0);return t.splice(n==="staggerFromTo"?5:4,0,0),e[n].apply(e,t)}});var mn=function(e,t,i){return e[t]=i},ea=function(e,t,i){return e[t](i)},zs=function(e,t,i,r){return e[t](r.fp,i)},Is=function(e,t,i){return e.setAttribute(t,i)},hn=function(e,t){return de(e[t])?ea:$i(e[t])&&e.setAttribute?Is:mn},ta=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Ls=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},ia=function(e,t){var i=t._pt,r="";if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;i;)r=i.p+(i.m?i.m(i.s+i.c*e):Math.round((i.s+i.c*e)*1e4)/1e4)+r,i=i._next;r+=t.c}t.set(t.t,t.p,r,t)},vn=function(e,t){for(var i=t._pt;i;)i.r(e,i.d),i=i._next},Zs=function(e,t,i,r){for(var a=this._pt,o;a;)o=a._next,a.p===r&&a.modifier(e,t,i),a=o},Bs=function(e){for(var t=this._pt,i,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?bi(this,t,"_pt"):t.dep||(i=1),t=r;return!i},$s=function(e,t,i,r){r.mSet(e,t,r.m.call(r.tween,i,r.mt),r)},na=function(e){for(var t=e._pt,i,r,a,o;t;){for(i=t._next,r=a;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:o)?t._prev._next=t:a=t,(t._next=r)?r._prev=t:o=t,t=i}e._pt=a},Ce=(function(){function n(t,i,r,a,o,s,l,c,p){this.t=i,this.s=a,this.c=o,this.p=r,this.r=s||ta,this.d=l||this,this.set=c||mn,this.pr=p||0,this._next=t,t&&(t._prev=this)}var e=n.prototype;return e.modifier=function(i,r,a){this.mSet=this.mSet||this.set,this.set=$s,this.m=i,this.mt=a,this.tween=r},n})();Se(Qi+"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(n){return Gi[n]=1}),Ae.TweenMax=Ae.TweenLite=ve,Ae.TimelineLite=Ae.TimelineMax=ke,ce=new ke({sortChildren:!1,defaults:wt,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Pe.stringFilter=Yr;var ft=[],ki={},Hs=[],ra=0,Vs=0,xn=function(e){return(ki[e]||Hs).map(function(t){return t()})},gn=function(){var e=Date.now(),t=[];e-ra>2&&(xn("matchMediaInit"),ft.forEach(function(i){var r=i.queries,a=i.conditions,o,s,l,c;for(s in r)o=Ve.matchMedia(r[s]).matches,o&&(l=1),o!==a[s]&&(a[s]=o,c=1);c&&(i.revert(),l&&t.push(i))}),xn("matchMediaRevert"),t.forEach(function(i){return i.onMatch(i,function(r){return i.add(null,r)})}),ra=e,xn("matchMedia"))},aa=(function(){function n(t,i){this.selector=i&&on(i),this.data=[],this._r=[],this.isReverted=!1,this.id=Vs++,t&&this.add(t)}var e=n.prototype;return e.add=function(i,r,a){de(i)&&(a=r,r=i,i=de);var o=this,s=function(){var c=le,p=o.selector,d;return c&&c!==o&&c.data.push(o),a&&(o.selector=on(a)),le=o,d=r.apply(o,arguments),de(d)&&o._r.push(d),le=c,o.selector=p,o.isReverted=!1,d};return o.last=s,i===de?s(o,function(l){return o.add(null,l)}):i?o[i]=s:s},e.ignore=function(i){var r=le;le=null,i(this),le=r},e.getTweens=function(){var i=[];return this.data.forEach(function(r){return r instanceof n?i.push.apply(i,r.getTweens()):r instanceof ve&&!(r.parent&&r.parent.data==="nested")&&i.push(r)}),i},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(i,r){var a=this;if(i?(function(){for(var s=a.getTweens(),l=a.data.length,c;l--;)c=a.data[l],c.data==="isFlip"&&(c.revert(),c.getChildren(!0,!0,!1).forEach(function(p){return s.splice(s.indexOf(p),1)}));for(s.map(function(p){return{g:p._dur||p._delay||p._sat&&!p._sat.vars.immediateRender?p.globalTime(0):-1/0,t:p}}).sort(function(p,d){return d.g-p.g||-1/0}).forEach(function(p){return p.t.revert(i)}),l=a.data.length;l--;)c=a.data[l],c instanceof ke?c.data!=="nested"&&(c.scrollTrigger&&c.scrollTrigger.revert(),c.kill()):!(c instanceof ve)&&c.revert&&c.revert(i);a._r.forEach(function(p){return p(i,a)}),a.isReverted=!0})():this.data.forEach(function(s){return s.kill&&s.kill()}),this.clear(),r)for(var o=ft.length;o--;)ft[o].id===this.id&&ft.splice(o,1)},e.revert=function(i){this.kill(i||{})},n})(),Ys=(function(){function n(t){this.contexts=[],this.scope=t,le&&le.data.push(this)}var e=n.prototype;return e.add=function(i,r,a){He(i)||(i={matches:i});var o=new aa(0,a||this.scope),s=o.conditions={},l,c,p;le&&!o.selector&&(o.selector=le.selector),this.contexts.push(o),r=o.add("onMatch",r),o.queries=i;for(c in i)c==="all"?p=1:(l=Ve.matchMedia(i[c]),l&&(ft.indexOf(o)<0&&ft.push(o),(s[c]=l.matches)&&(p=1),l.addListener?l.addListener(gn):l.addEventListener("change",gn)));return p&&r(o,function(d){return o.add(null,d)}),this},e.revert=function(i){this.kill(i||{})},e.kill=function(i){this.contexts.forEach(function(r){return r.kill(i,!0)})},n})(),Oi={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];t.forEach(function(r){return Br(r)})},timeline:function(e){return new ke(e)},getTweensOf:function(e,t){return ce.getTweensOf(e,t)},getProperty:function(e,t,i,r){ye(e)&&(e=Be(e)[0]);var a=ct(e||{}).get,o=i?kr:jr;return i==="native"&&(i=""),e&&(t?o((De[t]&&De[t].get||a)(e,t,i,r)):function(s,l,c){return o((De[s]&&De[s].get||a)(e,s,l,c))})},quickSetter:function(e,t,i){if(e=Be(e),e.length>1){var r=e.map(function(p){return qe.quickSetter(p,t,i)}),a=r.length;return function(p){for(var d=a;d--;)r[d](p)}}e=e[0]||{};var o=De[t],s=ct(e),l=s.harness&&(s.harness.aliases||{})[t]||t,c=o?function(p){var d=new o;Ct._pt=0,d.init(e,i?p+i:p,Ct,0,[e]),d.render(1,d),Ct._pt&&vn(1,Ct)}:s.set(e,l);return o?c:function(p){return c(e,l,i?p+i:p,s,1)}},quickTo:function(e,t,i){var r,a=qe.to(e,Ne((r={},r[t]="+=0.1",r.paused=!0,r.stagger=0,r),i||{})),o=function(l,c,p){return a.resetTo(t,l,c,p)};return o.tween=a,o},isTweening:function(e){return ce.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=ut(e.ease,wt.ease)),Or(wt,e||{})},config:function(e){return Or(Pe,e||{})},registerEffect:function(e){var t=e.name,i=e.effect,r=e.plugins,a=e.defaults,o=e.extendTimeline;(r||"").split(",").forEach(function(s){return s&&!De[s]&&!Ae[s]&&Zt(t+" effect requires "+s+" plugin.")}),Ji[t]=function(s,l,c){return i(Be(s),Ne(l||{},a),c)},o&&(ke.prototype[t]=function(s,l,c){return this.add(Ji[t](s,He(l)?l:(c=l)&&{},this),c)})},registerEase:function(e,t){J[e]=ut(t)},parseEase:function(e,t){return arguments.length?ut(e,t):J},getById:function(e){return ce.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var i=new ke(e),r,a;for(i.smoothChildTiming=Oe(e.smoothChildTiming),ce.remove(i),i._dp=0,i._time=i._tTime=ce._time,r=ce._first;r;)a=r._next,(t||!(!r._dur&&r instanceof ve&&r.vars.onComplete===r._targets[0]))&&Ye(i,r,r._start-r._delay),r=a;return Ye(ce,i,0),i},context:function(e,t){return e?new aa(e,t):le},matchMedia:function(e){return new Ys(e)},matchMediaRefresh:function(){return ft.forEach(function(e){var t=e.conditions,i,r;for(r in t)t[r]&&(t[r]=!1,i=1);i&&e.revert()})||gn()},addEventListener:function(e,t){var i=ki[e]||(ki[e]=[]);~i.indexOf(t)||i.push(t)},removeEventListener:function(e,t){var i=ki[e],r=i&&i.indexOf(t);r>=0&&i.splice(r,1)},utils:{wrap:js,wrapYoyo:ks,distribute:Rr,random:Fr,snap:Mr,normalize:Ts,getUnit:je,clamp:_s,splitColor:$r,toArray:Be,selector:on,mapRange:Ir,pipe:bs,unitize:ws,interpolate:Os,shuffle:Nr},install:gr,effects:Ji,ticker:Me,updateRoot:ke.updateRoot,plugins:De,globalTimeline:ce,core:{PropTween:Ce,globals:_r,Tween:ve,Timeline:ke,Animation:Gt,getCache:ct,_removeLinkedListItem:bi,reverting:function(){return we},context:function(e){return e&&le&&(le.data.push(e),e._ctx=le),le},suppressOverwrites:function(e){return Zi=e}}};Se("to,from,fromTo,delayedCall,set,killTweensOf",function(n){return Oi[n]=ve[n]}),Me.add(ke.updateRoot),Ct=Oi.to({},{duration:0});var Us=function(e,t){for(var i=e._pt;i&&i.p!==t&&i.op!==t&&i.fp!==t;)i=i._next;return i},Ws=function(e,t){var i=e._targets,r,a,o;for(r in t)for(a=i.length;a--;)o=e._ptLookup[a][r],o&&(o=o.d)&&(o._pt&&(o=Us(o,r)),o&&o.modifier&&o.modifier(t[r],e,i[a],r))},_n=function(e,t){return{name:e,headless:1,rawVars:1,init:function(r,a,o){o._onInit=function(s){var l,c;if(ye(a)&&(l={},Se(a,function(p){return l[p]=1}),a=l),t){l={};for(c in a)l[c]=t(a[c]);a=l}Ws(s,a)}}}},qe=Oi.registerPlugin({name:"attr",init:function(e,t,i,r,a){var o,s,l;this.tween=i;for(o in t)l=e.getAttribute(o)||"",s=this.add(e,"setAttribute",(l||0)+"",t[o],r,a,0,0,o),s.op=o,s.b=l,this._props.push(o)},render:function(e,t){for(var i=t._pt;i;)we?i.set(i.t,i.p,i.b,i):i.r(e,i.d),i=i._next}},{name:"endArray",headless:1,init:function(e,t){for(var i=t.length;i--;)this.add(e,i,e[i]||0,t[i],0,0,0,0,0,1)}},_n("roundProps",sn),_n("modifiers"),_n("snap",Mr))||Oi;ve.version=ke.version=qe.version="3.13.0",xr=1,Hi()&&qt(),J.Power0,J.Power1,J.Power2,J.Power3,J.Power4,J.Linear,J.Quad,J.Cubic,J.Quart,J.Quint,J.Strong,J.Elastic,J.Back,J.SteppedEase,J.Bounce,J.Sine,J.Expo,J.Circ;/*!
|
|
42
42
|
* CSSPlugin 3.13.0
|
|
43
43
|
* https://gsap.com
|
|
44
44
|
*
|
|
45
45
|
* Copyright 2008-2025, GreenSock. All rights reserved.
|
|
46
46
|
* Subject to the terms at https://gsap.com/standard-license
|
|
47
47
|
* @author: Jack Doyle, jack@greensock.com
|
|
48
|
-
*/var ii,Ue,ft,Lr,Ke,si,Br,ua=function(){return typeof window<"u"},Fe={},et=180/Math.PI,ht=Math.PI/180,pt=Math.atan2,ai=1e8,zr=/([A-Z])/g,ca=/(left|right|width|margin|padding|x)/i,da=/[\s,\(]\S/,Me={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Vr=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},fa=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},ha=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},pa=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},oi=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},li=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},ma=function(e,t,r){return e.style[t]=r},_a=function(e,t,r){return e.style.setProperty(t,r)},ga=function(e,t,r){return e._gsap[t]=r},va=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},xa=function(e,t,r,n,s){var a=e._gsap;a.scaleX=a.scaleY=r,a.renderTransform(s,a)},ya=function(e,t,r,n,s){var a=e._gsap;a[t]=r,a.renderTransform(s,a)},X="transform",ge=X+"Origin",ba=function i(e,t){var r=this,n=this.target,s=n.style,a=n._gsap;if(e in Fe&&s){if(this.tfm=this.tfm||{},e!=="transform")e=Me[e]||e,~e.indexOf(",")?e.split(",").forEach(function(o){return r.tfm[o]=Ie(n,o)}):this.tfm[e]=a.x?a[e]:Ie(n,e),e===ge&&(this.tfm.zOrigin=a.zOrigin);else return Me.transform.split(",").forEach(function(o){return i.call(r,o,t)});if(this.props.indexOf(X)>=0)return;a.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(ge,t,"")),e=X}(s||t)&&this.props.push(e,t,s[e])},ui=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},wa=function(){var e=this.props,t=this.target,r=t.style,n=t._gsap,s,a;for(s=0;s<e.length;s+=3)e[s+1]?e[s+1]===2?t[e[s]](e[s+2]):t[e[s]]=e[s+2]:e[s+2]?r[e[s]]=e[s+2]:r.removeProperty(e[s].substr(0,2)==="--"?e[s]:e[s].replace(zr,"-$1").toLowerCase());if(this.tfm){for(a in this.tfm)n[a]=this.tfm[a];n.svg&&(n.renderTransform(),t.setAttribute("data-svg-origin",this.svgo||"")),s=Br(),(!s||!s.isStart)&&!r[X]&&(ui(r),n.zOrigin&&r[ge]&&(r[ge]+=" "+n.zOrigin+"px",n.zOrigin=0,n.renderTransform()),n.uncache=1)}},ci=function(e,t){var r={target:e,props:[],revert:wa,save:ba};return e._gsap||_e.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(n){return r.save(n)}),r},di,Hr=function(e,t){var r=Ue.createElementNS?Ue.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Ue.createElement(e);return r&&r.style?r:Ue.createElement(e)},Se=function i(e,t,r){var n=getComputedStyle(e);return n[t]||n.getPropertyValue(t.replace(zr,"-$1").toLowerCase())||n.getPropertyValue(t)||!r&&i(e,mt(t)||t,1)||""},fi="O,Moz,ms,Ms,Webkit".split(","),mt=function(e,t,r){var n=t||Ke,s=n.style,a=5;if(e in s&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);a--&&!(fi[a]+e in s););return a<0?null:(a===3?"ms":a>=0?fi[a]:"")+e},Ur=function(){ua()&&window.document&&(ii=window,Ue=ii.document,ft=Ue.documentElement,Ke=Hr("div")||{style:{}},Hr("div"),X=mt(X),ge=X+"Origin",Ke.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",di=!!mt("perspective"),Br=_e.core.reverting,Lr=1)},hi=function(e){var t=e.ownerSVGElement,r=Hr("svg",t&&t.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=e.cloneNode(!0),s;n.style.display="block",r.appendChild(n),ft.appendChild(r);try{s=n.getBBox()}catch{}return r.removeChild(n),ft.removeChild(r),s},pi=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},mi=function(e){var t,r;try{t=e.getBBox()}catch{t=hi(e),r=1}return t&&(t.width||t.height)||r||(t=hi(e)),t&&!t.width&&!t.x&&!t.y?{x:+pi(e,["x","cx","x1"])||0,y:+pi(e,["y","cy","y1"])||0,width:0,height:0}:t},_i=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&mi(e))},tt=function(e,t){if(t){var r=e.style,n;t in Fe&&t!==ge&&(t=X),r.removeProperty?(n=t.substr(0,2),(n==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),r.removeProperty(n==="--"?t:t.replace(zr,"-$1").toLowerCase())):r.removeAttribute(t)}},$e=function(e,t,r,n,s,a){var o=new me(e._pt,t,r,0,1,a?li:oi);return e._pt=o,o.b=n,o.e=s,e._props.push(r),o},gi={deg:1,rad:1,turn:1},Ta={grid:1,flex:1},Ye=function i(e,t,r,n){var s=parseFloat(r)||0,a=(r+"").trim().substr((s+"").length)||"px",o=Ke.style,l=ca.test(t),u=e.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),f=100,p=n==="px",m=n==="%",g,h,_,x;if(n===a||!s||gi[n]||gi[a])return s;if(a!=="px"&&!p&&(s=i(e,t,r,"px")),x=e.getCTM&&_i(e),(m||a==="%")&&(Fe[t]||~t.indexOf("adius")))return g=x?e.getBBox()[l?"width":"height"]:e[c],J(m?s/g*f:s/100*g);if(o[l?"width":"height"]=f+(p?a:n),h=n!=="rem"&&~t.indexOf("adius")||n==="em"&&e.appendChild&&!u?e:e.parentNode,x&&(h=(e.ownerSVGElement||{}).parentNode),(!h||h===Ue||!h.appendChild)&&(h=Ue.body),_=h._gsap,_&&m&&_.width&&l&&_.time===Te.time&&!_.uncache)return J(s/_.width*f);if(m&&(t==="height"||t==="width")){var v=e.style[t];e.style[t]=f+n,g=e[c],v?e.style[t]=v:tt(e,t)}else(m||a==="%")&&!Ta[Se(h,"display")]&&(o.position=Se(e,"position")),h===e&&(o.position="static"),h.appendChild(Ke),g=Ke[c],h.removeChild(Ke),o.position="absolute";return l&&m&&(_=We(h),_.time=Te.time,_.width=h[c]),J(p?g*s/f:g&&s?f/g*s:0)},Ie=function(e,t,r,n){var s;return Lr||Ur(),t in Me&&t!=="transform"&&(t=Me[t],~t.indexOf(",")&&(t=t.split(",")[0])),Fe[t]&&t!=="transform"?(s=Mt(e,n),s=t!=="transformOrigin"?s[t]:s.svg?s.origin:sr(Se(e,ge))+" "+s.zOrigin+"px"):(s=e.style[t],(!s||s==="auto"||n||~(s+"").indexOf("calc("))&&(s=ir[t]&&ir[t](e,t,r)||Se(e,t)||yn(e,t)||(t==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?Ye(e,t,s,r)+r:s},ja=function(e,t,r,n){if(!r||r==="none"){var s=mt(t,e,1),a=s&&Se(e,s,1);a&&a!==r?(t=s,r=a):t==="borderColor"&&(r=Se(e,"borderTopColor"))}var o=new me(this._pt,e.style,t,0,1,ei),l=0,u=0,c,f,p,m,g,h,_,x,v,b,T,y;if(o.b=r,o.e=n,r+="",n+="",n.substring(0,6)==="var(--"&&(n=Se(e,n.substring(4,n.indexOf(")")))),n==="auto"&&(h=e.style[t],e.style[t]=n,n=Se(e,t)||n,h?e.style[t]=h:tt(e,t)),c=[r,n],Hn(c),r=c[0],n=c[1],p=r.match(st)||[],y=n.match(st)||[],y.length){for(;f=st.exec(n);)_=f[0],v=n.substring(l,f.index),g?g=(g+1)%5:(v.substr(-5)==="rgba("||v.substr(-5)==="hsla(")&&(g=1),_!==(h=p[u++]||"")&&(m=parseFloat(h)||0,T=h.substr((m+"").length),_.charAt(1)==="="&&(_=at(m,_)+T),x=parseFloat(_),b=_.substr((x+"").length),l=st.lastIndex-b.length,b||(b=b||ve.units[t]||T,l===n.length&&(n+=b,o.e+=b)),T!==b&&(m=Ye(e,t,h,b)||0),o._pt={_next:o._pt,p:v||u===1?v:",",s:m,c:x-m,m:g&&g<4||t==="zIndex"?Math.round:0});o.c=l<n.length?n.substring(l,n.length):""}else o.r=t==="display"&&n==="none"?li:oi;return hn.test(n)&&(o.e=0),this._pt=o,o},vi={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},qa=function(e){var t=e.split(" "),r=t[0],n=t[1]||"50%";return(r==="top"||r==="bottom"||n==="left"||n==="right")&&(e=r,r=n,n=e),t[0]=vi[r]||r,t[1]=vi[n]||n,t.join(" ")},Ca=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var r=t.t,n=r.style,s=t.u,a=r._gsap,o,l,u;if(s==="all"||s===!0)n.cssText="",l=1;else for(s=s.split(","),u=s.length;--u>-1;)o=s[u],Fe[o]&&(l=1,o=o==="transformOrigin"?ge:X),tt(r,o);l&&(tt(r,X),a&&(a.svg&&r.removeAttribute("transform"),n.scale=n.rotate=n.translate="none",Mt(r,1),a.uncache=1,ui(n)))}},ir={clearProps:function(e,t,r,n,s){if(s.data!=="isFromStart"){var a=e._pt=new me(e._pt,t,r,0,0,Ca);return a.u=n,a.pr=-10,a.tween=s,e._props.push(r),1}}},Et=[1,0,0,1,0,0],xi={},yi=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},bi=function(e){var t=Se(e,X);return yi(t)?Et:t.substr(7).match(fn).map(J)},$r=function(e,t){var r=e._gsap||We(e),n=e.style,s=bi(e),a,o,l,u;return r.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,s=[l.a,l.b,l.c,l.d,l.e,l.f],s.join(",")==="1,0,0,1,0,0"?Et:s):(s===Et&&!e.offsetParent&&e!==ft&&!r.svg&&(l=n.display,n.display="block",a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,o=e.nextElementSibling,ft.appendChild(e)),s=bi(e),l?n.display=l:tt(e,"display"),u&&(o?a.insertBefore(e,o):a?a.appendChild(e):ft.removeChild(e))),t&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},Yr=function(e,t,r,n,s,a){var o=e._gsap,l=s||$r(e,!0),u=o.xOrigin||0,c=o.yOrigin||0,f=o.xOffset||0,p=o.yOffset||0,m=l[0],g=l[1],h=l[2],_=l[3],x=l[4],v=l[5],b=t.split(" "),T=parseFloat(b[0])||0,y=parseFloat(b[1])||0,j,C,O,q;r?l!==Et&&(C=m*_-g*h)&&(O=T*(_/C)+y*(-h/C)+(h*v-_*x)/C,q=T*(-g/C)+y*(m/C)-(m*v-g*x)/C,T=O,y=q):(j=mi(e),T=j.x+(~b[0].indexOf("%")?T/100*j.width:T),y=j.y+(~(b[1]||b[0]).indexOf("%")?y/100*j.height:y)),n||n!==!1&&o.smooth?(x=T-u,v=y-c,o.xOffset=f+(x*m+v*h)-x,o.yOffset=p+(x*g+v*_)-v):o.xOffset=o.yOffset=0,o.xOrigin=T,o.yOrigin=y,o.smooth=!!n,o.origin=t,o.originIsAbsolute=!!r,e.style[ge]="0px 0px",a&&($e(a,o,"xOrigin",u,T),$e(a,o,"yOrigin",c,y),$e(a,o,"xOffset",f,o.xOffset),$e(a,o,"yOffset",p,o.yOffset)),e.setAttribute("data-svg-origin",T+" "+y)},Mt=function(e,t){var r=e._gsap||new Wn(e);if("x"in r&&!t&&!r.uncache)return r;var n=e.style,s=r.scaleX<0,a="px",o="deg",l=getComputedStyle(e),u=Se(e,ge)||"0",c,f,p,m,g,h,_,x,v,b,T,y,j,C,O,q,M,R,I,F,z,H,V,U,se,fe,w,k,Z,Q,te,P;return c=f=p=h=_=x=v=b=T=0,m=g=1,r.svg=!!(e.getCTM&&_i(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(n[X]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[X]!=="none"?l[X]:"")),n.scale=n.rotate=n.translate="none"),C=$r(e,r.svg),r.svg&&(r.uncache?(se=e.getBBox(),u=r.xOrigin-se.x+"px "+(r.yOrigin-se.y)+"px",U=""):U=!t&&e.getAttribute("data-svg-origin"),Yr(e,U||u,!!U||r.originIsAbsolute,r.smooth!==!1,C)),y=r.xOrigin||0,j=r.yOrigin||0,C!==Et&&(R=C[0],I=C[1],F=C[2],z=C[3],c=H=C[4],f=V=C[5],C.length===6?(m=Math.sqrt(R*R+I*I),g=Math.sqrt(z*z+F*F),h=R||I?pt(I,R)*et:0,v=F||z?pt(F,z)*et+h:0,v&&(g*=Math.abs(Math.cos(v*ht))),r.svg&&(c-=y-(y*R+j*F),f-=j-(y*I+j*z))):(P=C[6],Q=C[7],w=C[8],k=C[9],Z=C[10],te=C[11],c=C[12],f=C[13],p=C[14],O=pt(P,Z),_=O*et,O&&(q=Math.cos(-O),M=Math.sin(-O),U=H*q+w*M,se=V*q+k*M,fe=P*q+Z*M,w=H*-M+w*q,k=V*-M+k*q,Z=P*-M+Z*q,te=Q*-M+te*q,H=U,V=se,P=fe),O=pt(-F,Z),x=O*et,O&&(q=Math.cos(-O),M=Math.sin(-O),U=R*q-w*M,se=I*q-k*M,fe=F*q-Z*M,te=z*M+te*q,R=U,I=se,F=fe),O=pt(I,R),h=O*et,O&&(q=Math.cos(O),M=Math.sin(O),U=R*q+I*M,se=H*q+V*M,I=I*q-R*M,V=V*q-H*M,R=U,H=se),_&&Math.abs(_)+Math.abs(h)>359.9&&(_=h=0,x=180-x),m=J(Math.sqrt(R*R+I*I+F*F)),g=J(Math.sqrt(V*V+P*P)),O=pt(H,V),v=Math.abs(O)>2e-4?O*et:0,T=te?1/(te<0?-te:te):0),r.svg&&(U=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!yi(Se(e,X)),U&&e.setAttribute("transform",U))),Math.abs(v)>90&&Math.abs(v)<270&&(s?(m*=-1,v+=h<=0?180:-180,h+=h<=0?180:-180):(g*=-1,v+=v<=0?180:-180)),t=t||r.uncache,r.x=c-((r.xPercent=c&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-c)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+a,r.y=f-((r.yPercent=f&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-f)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+a,r.z=p+a,r.scaleX=J(m),r.scaleY=J(g),r.rotation=J(h)+o,r.rotationX=J(_)+o,r.rotationY=J(x)+o,r.skewX=v+o,r.skewY=b+o,r.transformPerspective=T+a,(r.zOrigin=parseFloat(u.split(" ")[2])||!t&&r.zOrigin||0)&&(n[ge]=sr(u)),r.xOffset=r.yOffset=0,r.force3D=ve.force3D,r.renderTransform=r.svg?Sa:di?wi:Oa,r.uncache=0,r},sr=function(e){return(e=e.split(" "))[0]+" "+e[1]},Wr=function(e,t,r){var n=ce(t);return J(parseFloat(t)+parseFloat(Ye(e,"x",r+"px",n)))+n},Oa=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,wi(e,t)},rt="0deg",At="0px",nt=") ",wi=function(e,t){var r=t||this,n=r.xPercent,s=r.yPercent,a=r.x,o=r.y,l=r.z,u=r.rotation,c=r.rotationY,f=r.rotationX,p=r.skewX,m=r.skewY,g=r.scaleX,h=r.scaleY,_=r.transformPerspective,x=r.force3D,v=r.target,b=r.zOrigin,T="",y=x==="auto"&&e&&e!==1||x===!0;if(b&&(f!==rt||c!==rt)){var j=parseFloat(c)*ht,C=Math.sin(j),O=Math.cos(j),q;j=parseFloat(f)*ht,q=Math.cos(j),a=Wr(v,a,C*q*-b),o=Wr(v,o,-Math.sin(j)*-b),l=Wr(v,l,O*q*-b+b)}_!==At&&(T+="perspective("+_+nt),(n||s)&&(T+="translate("+n+"%, "+s+"%) "),(y||a!==At||o!==At||l!==At)&&(T+=l!==At||y?"translate3d("+a+", "+o+", "+l+") ":"translate("+a+", "+o+nt),u!==rt&&(T+="rotate("+u+nt),c!==rt&&(T+="rotateY("+c+nt),f!==rt&&(T+="rotateX("+f+nt),(p!==rt||m!==rt)&&(T+="skew("+p+", "+m+nt),(g!==1||h!==1)&&(T+="scale("+g+", "+h+nt),v.style[X]=T||"translate(0, 0)"},Sa=function(e,t){var r=t||this,n=r.xPercent,s=r.yPercent,a=r.x,o=r.y,l=r.rotation,u=r.skewX,c=r.skewY,f=r.scaleX,p=r.scaleY,m=r.target,g=r.xOrigin,h=r.yOrigin,_=r.xOffset,x=r.yOffset,v=r.forceCSS,b=parseFloat(a),T=parseFloat(o),y,j,C,O,q;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=ht,u*=ht,y=Math.cos(l)*f,j=Math.sin(l)*f,C=Math.sin(l-u)*-p,O=Math.cos(l-u)*p,u&&(c*=ht,q=Math.tan(u-c),q=Math.sqrt(1+q*q),C*=q,O*=q,c&&(q=Math.tan(c),q=Math.sqrt(1+q*q),y*=q,j*=q)),y=J(y),j=J(j),C=J(C),O=J(O)):(y=f,O=p,j=C=0),(b&&!~(a+"").indexOf("px")||T&&!~(o+"").indexOf("px"))&&(b=Ye(m,"x",a,"px"),T=Ye(m,"y",o,"px")),(g||h||_||x)&&(b=J(b+g-(g*y+h*C)+_),T=J(T+h-(g*j+h*O)+x)),(n||s)&&(q=m.getBBox(),b=J(b+n/100*q.width),T=J(T+s/100*q.height)),q="matrix("+y+","+j+","+C+","+O+","+b+","+T+")",m.setAttribute("transform",q),v&&(m.style[X]=q)},ka=function(e,t,r,n,s){var a=360,o=ie(s),l=parseFloat(s)*(o&&~s.indexOf("rad")?et:1),u=l-n,c=n+u+"deg",f,p;return o&&(f=s.split("_")[1],f==="short"&&(u%=a,u!==u%(a/2)&&(u+=u<0?a:-a)),f==="cw"&&u<0?u=(u+a*ai)%a-~~(u/a)*a:f==="ccw"&&u>0&&(u=(u-a*ai)%a-~~(u/a)*a)),e._pt=p=new me(e._pt,t,r,n,u,fa),p.e=c,p.u="deg",e._props.push(r),p},Ti=function(e,t){for(var r in t)e[r]=t[r];return e},Pa=function(e,t,r){var n=Ti({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",a=r.style,o,l,u,c,f,p,m,g;n.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),a[X]=t,o=Mt(r,1),tt(r,X),r.setAttribute("transform",u)):(u=getComputedStyle(r)[X],a[X]=t,o=Mt(r,1),a[X]=u);for(l in Fe)u=n[l],c=o[l],u!==c&&s.indexOf(l)<0&&(m=ce(u),g=ce(c),f=m!==g?Ye(r,l,u,g):parseFloat(u),p=parseFloat(c),e._pt=new me(e._pt,o,l,f,p-f,Vr),e._pt.u=g||0,e._props.push(l));Ti(o,n)};pe("padding,margin,Width,Radius",function(i,e){var t="Top",r="Right",n="Bottom",s="Left",a=(e<3?[t,r,n,s]:[t+s,t+r,n+r,n+s]).map(function(o){return e<2?i+o:"border"+o+i});ir[e>1?"border"+i:i]=function(o,l,u,c,f){var p,m;if(arguments.length<4)return p=a.map(function(g){return Ie(o,g,u)}),m=p.join(" "),m.split(p[0]).length===5?p[0]:m;p=(c+"").split(" "),m={},a.forEach(function(g,h){return m[g]=p[h]=p[h]||p[(h-1)/2|0]}),o.init(l,m,f)}});var ji={name:"css",register:Ur,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,n,s){var a=this._props,o=e.style,l=r.vars.startAt,u,c,f,p,m,g,h,_,x,v,b,T,y,j,C,O;Lr||Ur(),this.styles=this.styles||ci(e),O=this.styles.props,this.tween=r;for(h in t)if(h!=="autoRound"&&(c=t[h],!(ye[h]&&Xn(h,t,r,n,e,s)))){if(m=typeof c,g=ir[h],m==="function"&&(c=c.call(r,n,e,s),m=typeof c),m==="string"&&~c.indexOf("random(")&&(c=Ct(c)),g)g(this,e,h,c,r)&&(C=1);else if(h.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(h)+"").trim(),c+="",Ve.lastIndex=0,Ve.test(u)||(_=ce(u),x=ce(c)),x?_!==x&&(u=Ye(e,h,u,x)+x):_&&(c+=_),this.add(o,"setProperty",u,c,n,s,0,0,h),a.push(h),O.push(h,0,o[h]);else if(m!=="undefined"){if(l&&h in l?(u=typeof l[h]=="function"?l[h].call(r,n,e,s):l[h],ie(u)&&~u.indexOf("random(")&&(u=Ct(u)),ce(u+"")||u==="auto"||(u+=ve.units[h]||ce(Ie(e,h))||""),(u+"").charAt(1)==="="&&(u=Ie(e,h))):u=Ie(e,h),p=parseFloat(u),v=m==="string"&&c.charAt(1)==="="&&c.substr(0,2),v&&(c=c.substr(2)),f=parseFloat(c),h in Me&&(h==="autoAlpha"&&(p===1&&Ie(e,"visibility")==="hidden"&&f&&(p=0),O.push("visibility",0,o.visibility),$e(this,o,"visibility",p?"inherit":"hidden",f?"inherit":"hidden",!f)),h!=="scale"&&h!=="transform"&&(h=Me[h],~h.indexOf(",")&&(h=h.split(",")[0]))),b=h in Fe,b){if(this.styles.save(h),m==="string"&&c.substring(0,6)==="var(--"&&(c=Se(e,c.substring(4,c.indexOf(")"))),f=parseFloat(c)),T||(y=e._gsap,y.renderTransform&&!t.parseTransform||Mt(e,t.parseTransform),j=t.smoothOrigin!==!1&&y.smooth,T=this._pt=new me(this._pt,o,X,0,1,y.renderTransform,y,0,-1),T.dep=1),h==="scale")this._pt=new me(this._pt,y,"scaleY",y.scaleY,(v?at(y.scaleY,v+f):f)-y.scaleY||0,Vr),this._pt.u=0,a.push("scaleY",h),h+="X";else if(h==="transformOrigin"){O.push(ge,0,o[ge]),c=qa(c),y.svg?Yr(e,c,0,j,0,this):(x=parseFloat(c.split(" ")[2])||0,x!==y.zOrigin&&$e(this,y,"zOrigin",y.zOrigin,x),$e(this,o,h,sr(u),sr(c)));continue}else if(h==="svgOrigin"){Yr(e,c,1,j,0,this);continue}else if(h in xi){ka(this,y,h,p,v?at(p,v+c):c);continue}else if(h==="smoothOrigin"){$e(this,y,"smooth",y.smooth,c);continue}else if(h==="force3D"){y[h]=c;continue}else if(h==="transform"){Pa(this,c,e);continue}}else h in o||(h=mt(h)||h);if(b||(f||f===0)&&(p||p===0)&&!da.test(c)&&h in o)_=(u+"").substr((p+"").length),f||(f=0),x=ce(c)||(h in ve.units?ve.units[h]:_),_!==x&&(p=Ye(e,h,u,x)),this._pt=new me(this._pt,b?y:o,h,p,(v?at(p,v+f):f)-p,!b&&(x==="px"||h==="zIndex")&&t.autoRound!==!1?pa:Vr),this._pt.u=x||0,_!==x&&x!=="%"&&(this._pt.b=u,this._pt.r=ha);else if(h in o)ja.call(this,e,h,u,v?v+c:c);else if(h in e)this.add(e,h,u||e[h],v?v+c:c,n,s);else if(h!=="parseTransform"){_r(h,c);continue}b||(h in o?O.push(h,0,o[h]):typeof e[h]=="function"?O.push(h,2,e[h]()):O.push(h,1,u||e[h])),a.push(h)}}C&&ti(this)},render:function(e,t){if(t.tween._time||!Br())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:Ie,aliases:Me,getSetter:function(e,t,r){var n=Me[t];return n&&n.indexOf(",")<0&&(t=n),t in Fe&&t!==ge&&(e._gsap.x||Ie(e,"x"))?r&&si===r?t==="scale"?va:ga:(si=r||{})&&(t==="scale"?xa:ya):e.style&&!cr(e.style[t])?ma:~t.indexOf("-")?_a:Rr(e,t)},core:{_removeProperty:tt,_getMatrix:$r}};_e.utils.checkPrefix=mt,_e.core.getStyleSaver=ci,(function(i,e,t,r){var n=pe(i+","+e+","+t,function(s){Fe[s]=1});pe(e,function(s){ve.units[s]="deg",xi[s]=1}),Me[n[13]]=i+","+e,pe(r,function(s){var a=s.split(":");Me[a[1]]=n[a[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),pe("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(i){ve.units[i]="px"}),_e.registerPlugin(ji);var je=_e.registerPlugin(ji)||_e;je.core.Tween;const Na=(i,e)=>{Qr.useGSAP(()=>{if(!i.current)return;const t=i.current,r=document.querySelector('[data-main-content="true"]');if(e){je.fromTo(t,{width:"0rem",opacity:0},{width:"40rem",opacity:1,duration:.4,ease:"power2.out"}),r&&je.to(r,{marginLeft:t.offsetWidth+"px",duration:.4,ease:"power2.out"});const n=t.querySelectorAll(".secondary-bar-content > *");n.length>0&&je.fromTo(n,{y:20,opacity:0},{y:0,opacity:1,duration:.3,stagger:.05,delay:.1,ease:"power1.out"})}else je.to(t,{width:"0rem",opacity:0,duration:.3,ease:"power2.in"}),r&&je.to(r,{marginLeft:"0px",duration:.3,ease:"power2.in"})},{scope:i,dependencies:[e]})},qi=({children:i,isOpen:e=!1,className:t="",width:r="w-96",action:n,primarySidebarCollapsed:s,onClose:a})=>{const o=E.useRef(null),[l,u]=E.useState({left:0,width:0}),{primarySidebarRef:c}=ln();return E.useLayoutEffect(()=>{if(c?.current){const f=c.current.getBoundingClientRect();u({left:f.width,width:f.width})}},[c,e,s]),Na(o,e),d.jsx(d.Fragment,{children:e&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"fixed inset-0 bg-black/95 z-20",style:{left:l.left},onClick:a}),d.jsx("div",{ref:o,className:S("h-screen bg-neutral-default-default border-r-1 border-neutral-strong-default flex flex-col secondary-bar flex-shrink-0","absolute top-0 z-30",r,t),style:{left:l.left},"data-action":n,children:d.jsx("div",{className:"secondary-bar-content",children:i})})]})})},Ea=Object.assign(qi,{Root:qi,Header:({children:i,className:e})=>d.jsx("div",{className:S("h-16 flex justify-center items-center",e),children:i}),Content:({children:i,className:e})=>d.jsx("div",{className:S("flex-1 overflow-y-auto p-4",e),children:i}),Footer:({children:i,className:e})=>d.jsx("div",{className:S("p-4 border-t border-neutral-strong-default",e),children:i}),Spacer:({className:i})=>d.jsx("div",{className:S("flex-1",i)})}),ar=(i,e,t,r)=>e&&(Array.isArray(e)?e.length>0:e)?i.to(e,t,r):i,Ma=(i,e,t)=>{Qr.useGSAP(()=>{if(!i.current)return;const r=je.timeline({defaults:{duration:.7,ease:"power1.out"}}),n={navbar:i.current,navLabels:je.utils.toArray(".nav-label"),navIconWrappers:je.utils.toArray(".nav-icon-wrapper"),navIcons:je.utils.toArray(".nav-icon"),navLinkItems:je.utils.toArray(".nav-link-item"),logoutButton:document.querySelector(".logout-button"),logoutLabel:document.querySelector(".logout-label"),logoutIcon:document.querySelector(".logout-icon"),profileContainer:document.querySelector(".profile-container"),profileName:document.querySelector(".profile-name"),profileOptions:document.querySelector(".profile-options"),profileImageWrapper:document.querySelector(".profile-image-wrapper"),coverImageProfile:document.querySelector(".cover-image-profile"),navContentWrapper:document.querySelector(".nav-content-wrapper-active"),buttonCrevron:document.querySelector(".button-select-crevron"),separatorProfile:document.querySelector(".border-separator-profile"),buttonProfile:document.querySelector(".button-profile"),profileUserInfo:document.querySelector(".profile-user-info"),buttonContentChevron:document.querySelector(".button-content-chevron"),logo:{contenedor:document.querySelector(".container-logo"),icon:document.querySelector(".icon-logo"),text:document.querySelector(".text-logo")},sidebarHeader:document.querySelector(".sidebar-header"),containerIconcollapsade:document.querySelector(".container-icon-collapsade"),secondaryBar:document.querySelector(".secondary-bar"),secondaryBarContent:je.utils.toArray(".secondary-bar *")};e?Aa(r,n):Ra(r,n),n.secondaryBar&&Da(n.secondaryBar)},{scope:i,dependencies:[e,t]})},Aa=(i,e)=>{i.to(e.navbar,{width:"6rem",duration:.2,ease:"bounce.out"}).to(e.logo.contenedor,{width:48,duration:.2}).to(e.logo.text,{opacity:0,scale:.8,duration:.5,ease:"back.in(1.2)"},-1).set(e.logo.text,{display:"none"}).to(e.sidebarHeader,{justifyContent:"center",display:"flex"},-1).to(e.logo.icon,{keyframes:{"0%":{scale:1},"33%":{scale:1.5},"66%":{scale:.5},"100%":{scale:1}},duration:.6,ease:"power1.inOut"}).to(e.navLinkItems,{justifyContent:"center",alignItems:"center",width:"3rem",height:"3rem",display:"flex"},-1).to(e.navLabels,{opacity:0,width:30,marginLeft:0},0).to(e.navIcons,{scale:.95,ease:"elastic.out(1, 0.3)"},0),ar(i,e.buttonCrevron,{width:0,opacity:0,duration:.7,ease:"power1.out",onComplete:()=>{e.buttonCrevron.style.display="none"}},0),ar(i,e.buttonContentChevron,{display:"none"},-1).to(e.separatorProfile,{display:"none"},-1).to(e.profileUserInfo,{display:"none"},-1).to(e.navLinkItems,{borderRadius:"8px",duration:.7,ease:"power1.out"},.8).to(e.buttonProfile,{height:"3rem",width:"3rem",margin:0,padding:0,duration:.3,ease:"power2.out",display:"flex",justifyContent:"center",alignItems:"center"},-1).to(e.containerIconcollapsade,{justifyContent:"center",marginRight:0},"=-1")},Ra=(i,e)=>{i.to(e.navbar,{width:"20rem"},-1).to(e.navLinkItems,{borderRadius:"10px",duration:.3,width:"100%",justifyContent:"flex-start"},-1),ar(i,e.buttonCrevron,{width:"auto",opacity:1,duration:0,ease:"power1.out",onComplete:()=>{e.buttonCrevron.style.display="flex"}},0),ar(i,e.buttonContentChevron,{display:"flex"},0).to(e.logo.contenedor,{width:185},-1).set(e.logo.text,{display:"flex"},-1).to(e.logo.text,{opacity:1,duration:0,ease:"back.in(1)"}).to(e.logo.icon,{keyframes:{"0%":{scale:1},"33%":{scale:1.5},"66%":{scale:.5},"100%":{scale:1}},duration:.3,ease:"power1.inOut"}).to(e.sidebarHeader,{justifyContent:"start",display:"flex"},-1).to(e.containerIconcollapsade,{justifyContent:"end",marginRight:20},-1).to(e.separatorProfile,{display:"flex"},0).to(e.profileUserInfo,{display:"flex"},-1).to(e.buttonProfile,{borderTopLeftRadius:"0.375rem",borderBottomLeftRadius:"0.375rem",borderTopRightRadius:"0",borderBottomRightRadius:"0",duration:0},-1).to(e.separatorProfile,{display:"flex"},0).to(e.navLabels,{opacity:1,width:"auto",scaleX:1},0).to(e.navIcons,{scale:1},.3)},Da=(i,e)=>{je.to(i,{x:"-100%",opacity:0,duration:.3,ease:"power2.in"})},Xr=E.forwardRef(({children:i,isCollapsed:e=!1,className:t=""},r)=>{const n=E.useRef(null),{registerPrimarySidebar:s}=ln(),a=E.useCallback(o=>{n.current=o,typeof r=="function"?r(o):r&&(r.current=o)},[r]);return E.useEffect(()=>{n.current&&s(n)},[s]),Ma(n,e,!1),d.jsx("div",{ref:a,className:`bg-neutral-default-default overflow-hidden h-screen flex flex-col border-r border-neutral-strong-default transition-all duration-300 relative z-50 flex-shrink-0 ${e?"w-16":"w-64"} ${t}`,children:i})});Xr.displayName="SidebarRoot";const Fa=Object.assign(Xr,{Root:Xr,CollapseButton:({isCollapsed:i,onToggleCollapse:e})=>d.jsx("div",{className:S("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade",i&&""),children:d.jsx("button",{onClick:e,title:i?"Expandir Navbar":"Contraer Navbar","aria-label":i?"Expandir Navbar":"Contraer Navbar",className:"cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",children:i?d.jsx(le.CloseNavBarDesktop,{size:24,className:"rotate-180 transition-transform duration-300"}):d.jsx(le.CloseNavBarDesktop,{size:24,className:"rotate-0 transition-transform duration-300"})})}),Header:({children:i,className:e})=>d.jsx("div",{className:`${e} sidebar-header`,children:i}),Divider:({className:i})=>d.jsx("div",{className:S("px-3 flex justify-center items-center w-full mb-4",i),children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),Content:({children:i,className:e})=>d.jsx("div",{className:e,children:i}),Spacer:({className:i,size:e="auto"})=>{const t=()=>{switch(e){case"auto":return"flex-grow";case"small":return"h-2 w-2";case"medium":return"h-4 w-4";case"large":return"h-8 w-8"}};return d.jsx("div",{className:S(t(),i)})},Footer:({children:i,className:e})=>d.jsx("div",{className:e,children:i})}),Ia=()=>{const[i,e]=E.useState(!1),[t,r]=E.useState(!1),n=()=>{e(!1),o()},s=()=>{e(!0),r(!1)},a=()=>{r(!0)},o=()=>{r(!1)};return{isCollapsed:i,setIsCollapsed:e,toggleCollapse:()=>{i?n():s()},expandSidebar:n,collapseSidebar:s,activeSecondaryBar:t,openSecondaryBar:a,closeSecondaryBar:o,toggleSecondaryBar:()=>{r(c=>!c)}}},Za=({children:i,icon:e,label:t,href:r,onClick:n,isActive:s=!1,className:a})=>{const o=r?"a":"button";return d.jsxs(o,{href:r,onClick:n,className:S("nav-link-item","flex items-center w-full px-3 py-2 text-left","hover:bg-neutral-medium-default transition-colors rounded-lg","focus:outline-none focus:ring-2 focus:ring-primary-default-default",s&&"bg-neutral-medium-default",a),children:[e&&d.jsx("div",{className:"nav-icon-wrapper mr-3 flex-shrink-0",children:d.jsx("div",{className:"nav-icon flex items-center justify-center w-5 h-5",children:e})}),t&&d.jsx("span",{className:"nav-label text-sm text-neutral-strong-default",children:t}),i]})},La=E.createContext(void 0),Ba=()=>{const i=E.useContext(La);if(!i)throw new Error("useSidebar must be used within a Sidebar.Root");return i},za=({user:i,className:e,onProfileClick:t})=>{const{isCollapsed:r}=Ba(),[n,s]=E.useState(!1),a=()=>{r?t?.():s(!n)};return d.jsxs("div",{className:S("profile-container",e),children:[d.jsxs("button",{onClick:a,className:S("button-profile","flex items-center w-full p-3 text-left","hover:bg-neutral-medium-default transition-colors rounded-lg","focus:outline-none focus:ring-2 focus:ring-primary-default-default"),children:[d.jsx("div",{className:"profile-image-wrapper flex-shrink-0 mr-3",children:d.jsx("div",{className:"cover-image-profile w-10 h-10 rounded-full bg-primary-default-default flex items-center justify-center text-white text-sm font-semibold",children:i.profileImage?d.jsx("img",{src:i.profileImage,alt:i.name,className:"w-full h-full rounded-full object-cover"}):i.name.charAt(0).toUpperCase()})}),d.jsxs("div",{className:"profile-user-info flex-1 min-w-0",children:[d.jsx("div",{className:"profile-name text-sm font-medium text-neutral-strong-default truncate",children:i.name}),d.jsx("div",{className:"text-xs text-neutral-medium-default truncate",children:i.email})]}),d.jsx("div",{className:"button-content-chevron ml-2 flex-shrink-0",children:d.jsx("div",{className:"button-select-crevron w-4 h-4 text-neutral-medium-default",children:n?"▲":"▼"})})]}),n&&!r&&d.jsx("div",{className:"profile-options mt-2 pl-3 space-y-1",children:d.jsxs("button",{className:"logout-button flex items-center w-full px-3 py-2 text-left text-sm text-neutral-strong-default hover:bg-neutral-medium-default rounded-lg",children:[d.jsx("span",{className:"logout-icon mr-2",children:"🚪"}),d.jsx("span",{className:"logout-label",children:"Cerrar sesión"})]})}),d.jsx("div",{className:"border-separator-profile mt-3 border-t border-neutral-strong-default"})]})},Va=({count:i,maxCount:e=9,className:t="",size:r="medium",variant:n="primary",showZero:s=!1})=>{const a=i,o=a>e?`+${e}`:a;if(a===0&&!s)return null;const l={small:"w-4 h-4 text-xs",medium:"w-5 h-5 text-xs",large:"w-6 h-6 text-sm"},u={primary:"bg-primary-default-default text-neutral-strong-default",secondary:"bg-neutral-medium-default text-neutral-strong-default",success:"bg-green-500 text-white",warning:"bg-yellow-500 text-black",danger:"bg-red-500 text-white"};return d.jsx("div",{className:S("rounded-full flex items-center justify-center font-medium",l[r],u[n],t),children:d.jsx("span",{children:o})})},Ha=({linkActions:i,componentBadge:e,onClick:t,activeAction:r,counts:n={}})=>d.jsx("nav",{className:"flex flex-col gap-1",children:i?.map((s,a)=>s.viewAccess()&&d.jsx(D.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.4,delay:a*.03,ease:"easeOut"},className:"relative flex justify-center w-full items-center px-3",children:d.jsxs("button",{onClick:()=>{t?.(s.action)},className:S("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",r===s.action?"text-primary-default-default bg-neutral-medium-selected":"text-neutral-default-default"),children:[d.jsx(D.AnimatePresence,{mode:"wait",children:r===s.action&&d.jsx(D.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(D.motion.div,{className:"nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",animate:{x:(r===s.action,0)},transition:{duration:.25,ease:"easeOut"},children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(D.motion.div,{className:"nav-icon-wrapper flex items-center justify-center flex-shrink-0",animate:{scale:r===s.action?1.05:1},transition:{duration:.25,ease:"easeOut"},children:typeof s.icon=="function"?s.icon({size:24,className:S("nav-icon transition-colors duration-250 ease-out",r===s.action?"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:s.title})]}),e&&typeof e=="function"&&n[s.action]&&n[s.action]>0&&e(n[s.action])]})]})},a))}),Ua=({links:i,isLinkActive:e,componentBadge:t,onLinkClick:r})=>d.jsx("nav",{className:"flex flex-col gap-1",children:i?.map((n,s)=>{const a=e(n.path)||(n.relatedPaths?.some(o=>e(o))??!1);return n.isView&&n.viewAccess()&&d.jsx(D.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:d.jsxs("button",{onClick:()=>{r?.(n.path)},className:S("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",a?"text-primary-default-default bg-neutral-medium-selected":"text-neutral-default-default"),children:[d.jsx(D.AnimatePresence,{mode:"wait",children:a&&d.jsx(D.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(D.motion.div,{className:"nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",animate:{x:0},transition:{duration:.25,ease:"easeOut"},children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(D.motion.div,{className:"nav-icon-wrapper flex items-center justify-center flex-shrink-0",animate:{scale:a?1.05:1},transition:{duration:.25,ease:"easeOut"},children:typeof n.icon=="function"?n.icon({size:24,className:S("nav-icon transition-colors duration-250 ease-out",a?"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})]}),t&&n.count&&n.count>0&&t(n.count)]})]})},s)})}),$a=({isActiveModalNotification:i,setIsActiveModalNotification:e})=>({handleNotificationClick:()=>{e(!0)},isActiveModalNotification:i}),Ya=i=>{const e=E.useRef(null);return{isCollapsed:i,navbarRef:e}},Wa=({isCollapsed:i,onToggle:e})=>d.jsx("div",{className:"",children:d.jsx("button",{onClick:e,title:i?"Expandir Navbar":"Contraer Navbar","aria-label":i?"Expandir Navbar":"Contraer Navbar",className:"cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",children:i?d.jsx(le.CloseNavBarDesktop,{size:34,className:"rotate-180 transition-transform duration-300"}):d.jsx(le.CloseNavBarDesktop,{size:34,className:"rotate-0 transition-transform duration-300"})})}),Xa=({logoUrl:i,companyName:e})=>d.jsx("div",{className:"w-full flex justify-center items-center p-2 h-20",children:d.jsx("img",{src:i,className:"h-2/3 rounded-full",alt:e??""})}),Ga=(i,e=!0)=>{const t=E.useRef(null);return E.useEffect(()=>{if(!e)return;const r=n=>{t.current&&!t.current.contains(n.target)&&i()};return document.addEventListener("mousedown",r,{capture:!0}),document.addEventListener("touchstart",r,{capture:!0}),()=>{document.removeEventListener("mousedown",r,{capture:!0}),document.removeEventListener("touchstart",r,{capture:!0})}},[i,e]),t};N.Avatar=rn,N.Badge=Va,N.Button=Ri,N.CardProfile=Ft,N.ChangueAccount=an,N.CheckboxFormik=Di,N.CompanyLogo=Xa,N.Header=Ii,N.Icons=le,N.Input=os,N.InputFormik=ls,N.LayoutGeneric=ms,N.Logo=us,N.Menu=cs,N.NavBarActions=Ha,N.NavbarCollapseButton=Wa,N.NavbarLinks=Ua,N.NavigationLink=Za,N.Pagination=ds,N.ProfileSection=za,N.ProgressBar=ps,N.SecondaryBar=Ea,N.Select=hs,N.Sidebar=Fa,N.SidebarProvider=_s,N.Spinner=or,N.useActionsNavbar=$a,N.useClickOutside=Ga,N.useNavbarCollapse=Ya,N.useSidebarState=Ia,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})}));
|
|
48
|
+
*/var oa,ot,Et,yn,mt,sa,bn,Xs=function(){return typeof window<"u"},Je={},ht=180/Math.PI,Pt=Math.PI/180,At=Math.atan2,la=1e8,wn=/([A-Z])/g,Gs=/(left|right|width|margin|padding|x)/i,Ks=/[\s,\(]\S/,Ue={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Tn=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Js=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Qs=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},el=function(e,t){var i=t.s+t.c*e;t.set(t.t,t.p,~~(i+(i<0?-.5:.5))+t.u,t)},ca=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},pa=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},tl=function(e,t,i){return e.style[t]=i},il=function(e,t,i){return e.style.setProperty(t,i)},nl=function(e,t,i){return e._gsap[t]=i},rl=function(e,t,i){return e._gsap.scaleX=e._gsap.scaleY=i},al=function(e,t,i,r,a){var o=e._gsap;o.scaleX=o.scaleY=i,o.renderTransform(a,o)},ol=function(e,t,i,r,a){var o=e._gsap;o[t]=i,o.renderTransform(a,o)},pe="transform",Ee=pe+"Origin",sl=function n(e,t){var i=this,r=this.target,a=r.style,o=r._gsap;if(e in Je&&a){if(this.tfm=this.tfm||{},e!=="transform")e=Ue[e]||e,~e.indexOf(",")?e.split(",").forEach(function(s){return i.tfm[s]=Qe(r,s)}):this.tfm[e]=o.x?o[e]:Qe(r,e),e===Ee&&(this.tfm.zOrigin=o.zOrigin);else return Ue.transform.split(",").forEach(function(s){return n.call(i,s,t)});if(this.props.indexOf(pe)>=0)return;o.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(Ee,t,"")),e=pe}(a||t)&&this.props.push(e,t,a[e])},ua=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},ll=function(){var e=this.props,t=this.target,i=t.style,r=t._gsap,a,o;for(a=0;a<e.length;a+=3)e[a+1]?e[a+1]===2?t[e[a]](e[a+2]):t[e[a]]=e[a+2]:e[a+2]?i[e[a]]=e[a+2]:i.removeProperty(e[a].substr(0,2)==="--"?e[a]:e[a].replace(wn,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)r[o]=this.tfm[o];r.svg&&(r.renderTransform(),t.setAttribute("data-svg-origin",this.svgo||"")),a=bn(),(!a||!a.isStart)&&!i[pe]&&(ua(i),r.zOrigin&&i[Ee]&&(i[Ee]+=" "+r.zOrigin+"px",r.zOrigin=0,r.renderTransform()),r.uncache=1)}},da=function(e,t){var i={target:e,props:[],revert:ll,save:sl};return e._gsap||qe.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(r){return i.save(r)}),i},fa,jn=function(e,t){var i=ot.createElementNS?ot.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):ot.createElement(e);return i&&i.style?i:ot.createElement(e)},$e=function n(e,t,i){var r=getComputedStyle(e);return r[t]||r.getPropertyValue(t.replace(wn,"-$1").toLowerCase())||r.getPropertyValue(t)||!i&&n(e,Dt(t)||t,1)||""},ma="O,Moz,ms,Ms,Webkit".split(","),Dt=function(e,t,i){var r=t||mt,a=r.style,o=5;if(e in a&&!i)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);o--&&!(ma[o]+e in a););return o<0?null:(o===3?"ms":o>=0?ma[o]:"")+e},kn=function(){Xs()&&window.document&&(oa=window,ot=oa.document,Et=ot.documentElement,mt=jn("div")||{style:{}},jn("div"),pe=Dt(pe),Ee=pe+"Origin",mt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",fa=!!Dt("perspective"),bn=qe.core.reverting,yn=1)},ha=function(e){var t=e.ownerSVGElement,i=jn("svg",t&&t.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=e.cloneNode(!0),a;r.style.display="block",i.appendChild(r),Et.appendChild(i);try{a=r.getBBox()}catch{}return i.removeChild(r),Et.removeChild(i),a},va=function(e,t){for(var i=t.length;i--;)if(e.hasAttribute(t[i]))return e.getAttribute(t[i])},xa=function(e){var t,i;try{t=e.getBBox()}catch{t=ha(e),i=1}return t&&(t.width||t.height)||i||(t=ha(e)),t&&!t.width&&!t.x&&!t.y?{x:+va(e,["x","cx","x1"])||0,y:+va(e,["y","cy","y1"])||0,width:0,height:0}:t},ga=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&xa(e))},vt=function(e,t){if(t){var i=e.style,r;t in Je&&t!==Ee&&(t=pe),i.removeProperty?(r=t.substr(0,2),(r==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),i.removeProperty(r==="--"?t:t.replace(wn,"-$1").toLowerCase())):i.removeAttribute(t)}},st=function(e,t,i,r,a,o){var s=new Ce(e._pt,t,i,0,1,o?pa:ca);return e._pt=s,s.b=r,s.e=a,e._props.push(i),s},_a={deg:1,rad:1,turn:1},cl={grid:1,flex:1},lt=function n(e,t,i,r){var a=parseFloat(i)||0,o=(i+"").trim().substr((a+"").length)||"px",s=mt.style,l=Gs.test(t),c=e.tagName.toLowerCase()==="svg",p=(c?"client":"offset")+(l?"Width":"Height"),d=100,m=r==="px",h=r==="%",_,f,x,y;if(r===o||!a||_a[r]||_a[o])return a;if(o!=="px"&&!m&&(a=n(e,t,i,"px")),y=e.getCTM&&ga(e),(h||o==="%")&&(Je[t]||~t.indexOf("adius")))return _=y?e.getBBox()[l?"width":"height"]:e[p],fe(h?a/_*d:a/100*_);if(s[l?"width":"height"]=d+(m?o:r),f=r!=="rem"&&~t.indexOf("adius")||r==="em"&&e.appendChild&&!c?e:e.parentNode,y&&(f=(e.ownerSVGElement||{}).parentNode),(!f||f===ot||!f.appendChild)&&(f=ot.body),x=f._gsap,x&&h&&x.width&&l&&x.time===Me.time&&!x.uncache)return fe(a/x.width*d);if(h&&(t==="height"||t==="width")){var b=e.style[t];e.style[t]=d+r,_=e[p],b?e.style[t]=b:vt(e,t)}else(h||o==="%")&&!cl[$e(f,"display")]&&(s.position=$e(e,"position")),f===e&&(s.position="static"),f.appendChild(mt),_=mt[p],f.removeChild(mt),s.position="absolute";return l&&h&&(x=ct(f),x.time=Me.time,x.width=f[p]),fe(m?_*a/d:_&&a?d/_*a:0)},Qe=function(e,t,i,r){var a;return yn||kn(),t in Ue&&t!=="transform"&&(t=Ue[t],~t.indexOf(",")&&(t=t.split(",")[0])),Je[t]&&t!=="transform"?(a=Qt(e,r),a=t!=="transformOrigin"?a[t]:a.svg?a.origin:Ci($e(e,Ee))+" "+a.zOrigin+"px"):(a=e.style[t],(!a||a==="auto"||r||~(a+"").indexOf("calc("))&&(a=Si[t]&&Si[t](e,t,i)||$e(e,t)||wr(e,t)||(t==="opacity"?1:0))),i&&!~(a+"").trim().indexOf(" ")?lt(e,t,a,i)+i:a},pl=function(e,t,i,r){if(!i||i==="none"){var a=Dt(t,e,1),o=a&&$e(e,a,1);o&&o!==i?(t=a,i=o):t==="borderColor"&&(i=$e(e,"borderTopColor"))}var s=new Ce(this._pt,e.style,t,0,1,ia),l=0,c=0,p,d,m,h,_,f,x,y,b,w,T,g;if(s.b=i,s.e=r,i+="",r+="",r.substring(0,6)==="var(--"&&(r=$e(e,r.substring(4,r.indexOf(")")))),r==="auto"&&(f=e.style[t],e.style[t]=r,r=$e(e,t)||r,f?e.style[t]=f:vt(e,t)),p=[i,r],Yr(p),i=p[0],r=p[1],m=i.match(Tt)||[],g=r.match(Tt)||[],g.length){for(;d=Tt.exec(r);)x=d[0],b=r.substring(l,d.index),_?_=(_+1)%5:(b.substr(-5)==="rgba("||b.substr(-5)==="hsla(")&&(_=1),x!==(f=m[c++]||"")&&(h=parseFloat(f)||0,T=f.substr((h+"").length),x.charAt(1)==="="&&(x=jt(h,x)+T),y=parseFloat(x),w=x.substr((y+"").length),l=Tt.lastIndex-w.length,w||(w=w||Pe.units[t]||T,l===r.length&&(r+=w,s.e+=w)),T!==w&&(h=lt(e,t,f,w)||0),s._pt={_next:s._pt,p:b||c===1?b:",",s:h,c:y-h,m:_&&_<4||t==="zIndex"?Math.round:0});s.c=l<r.length?r.substring(l,r.length):""}else s.r=t==="display"&&r==="none"?pa:ca;return hr.test(r)&&(s.e=0),this._pt=s,s},ya={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},ul=function(e){var t=e.split(" "),i=t[0],r=t[1]||"50%";return(i==="top"||i==="bottom"||r==="left"||r==="right")&&(e=i,i=r,r=e),t[0]=ya[i]||i,t[1]=ya[r]||r,t.join(" ")},dl=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var i=t.t,r=i.style,a=t.u,o=i._gsap,s,l,c;if(a==="all"||a===!0)r.cssText="",l=1;else for(a=a.split(","),c=a.length;--c>-1;)s=a[c],Je[s]&&(l=1,s=s==="transformOrigin"?Ee:pe),vt(i,s);l&&(vt(i,pe),o&&(o.svg&&i.removeAttribute("transform"),r.scale=r.rotate=r.translate="none",Qt(i,1),o.uncache=1,ua(r)))}},Si={clearProps:function(e,t,i,r,a){if(a.data!=="isFromStart"){var o=e._pt=new Ce(e._pt,t,i,0,0,dl);return o.u=r,o.pr=-10,o.tween=a,e._props.push(i),1}}},Jt=[1,0,0,1,0,0],ba={},wa=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Ta=function(e){var t=$e(e,pe);return wa(t)?Jt:t.substr(7).match(mr).map(fe)},On=function(e,t){var i=e._gsap||ct(e),r=e.style,a=Ta(e),o,s,l,c;return i.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,a=[l.a,l.b,l.c,l.d,l.e,l.f],a.join(",")==="1,0,0,1,0,0"?Jt:a):(a===Jt&&!e.offsetParent&&e!==Et&&!i.svg&&(l=r.display,r.display="block",o=e.parentNode,(!o||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,s=e.nextElementSibling,Et.appendChild(e)),a=Ta(e),l?r.display=l:vt(e,"display"),c&&(s?o.insertBefore(e,s):o?o.appendChild(e):Et.removeChild(e))),t&&a.length>6?[a[0],a[1],a[4],a[5],a[12],a[13]]:a)},Sn=function(e,t,i,r,a,o){var s=e._gsap,l=a||On(e,!0),c=s.xOrigin||0,p=s.yOrigin||0,d=s.xOffset||0,m=s.yOffset||0,h=l[0],_=l[1],f=l[2],x=l[3],y=l[4],b=l[5],w=t.split(" "),T=parseFloat(w[0])||0,g=parseFloat(w[1])||0,k,S,C,O;i?l!==Jt&&(S=h*x-_*f)&&(C=T*(x/S)+g*(-f/S)+(f*b-x*y)/S,O=T*(-_/S)+g*(h/S)-(h*b-_*y)/S,T=C,g=O):(k=xa(e),T=k.x+(~w[0].indexOf("%")?T/100*k.width:T),g=k.y+(~(w[1]||w[0]).indexOf("%")?g/100*k.height:g)),r||r!==!1&&s.smooth?(y=T-c,b=g-p,s.xOffset=d+(y*h+b*f)-y,s.yOffset=m+(y*_+b*x)-b):s.xOffset=s.yOffset=0,s.xOrigin=T,s.yOrigin=g,s.smooth=!!r,s.origin=t,s.originIsAbsolute=!!i,e.style[Ee]="0px 0px",o&&(st(o,s,"xOrigin",c,T),st(o,s,"yOrigin",p,g),st(o,s,"xOffset",d,s.xOffset),st(o,s,"yOffset",m,s.yOffset)),e.setAttribute("data-svg-origin",T+" "+g)},Qt=function(e,t){var i=e._gsap||new Gr(e);if("x"in i&&!t&&!i.uncache)return i;var r=e.style,a=i.scaleX<0,o="px",s="deg",l=getComputedStyle(e),c=$e(e,Ee)||"0",p,d,m,h,_,f,x,y,b,w,T,g,k,S,C,O,Z,H,U,V,L,Y,X,K,oe,ee,v,j,P,F,N,q;return p=d=m=f=x=y=b=w=T=0,h=_=1,i.svg=!!(e.getCTM&&ga(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(r[pe]=(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[pe]!=="none"?l[pe]:"")),r.scale=r.rotate=r.translate="none"),S=On(e,i.svg),i.svg&&(i.uncache?(oe=e.getBBox(),c=i.xOrigin-oe.x+"px "+(i.yOrigin-oe.y)+"px",K=""):K=!t&&e.getAttribute("data-svg-origin"),Sn(e,K||c,!!K||i.originIsAbsolute,i.smooth!==!1,S)),g=i.xOrigin||0,k=i.yOrigin||0,S!==Jt&&(H=S[0],U=S[1],V=S[2],L=S[3],p=Y=S[4],d=X=S[5],S.length===6?(h=Math.sqrt(H*H+U*U),_=Math.sqrt(L*L+V*V),f=H||U?At(U,H)*ht:0,b=V||L?At(V,L)*ht+f:0,b&&(_*=Math.abs(Math.cos(b*Pt))),i.svg&&(p-=g-(g*H+k*V),d-=k-(g*U+k*L))):(q=S[6],F=S[7],v=S[8],j=S[9],P=S[10],N=S[11],p=S[12],d=S[13],m=S[14],C=At(q,P),x=C*ht,C&&(O=Math.cos(-C),Z=Math.sin(-C),K=Y*O+v*Z,oe=X*O+j*Z,ee=q*O+P*Z,v=Y*-Z+v*O,j=X*-Z+j*O,P=q*-Z+P*O,N=F*-Z+N*O,Y=K,X=oe,q=ee),C=At(-V,P),y=C*ht,C&&(O=Math.cos(-C),Z=Math.sin(-C),K=H*O-v*Z,oe=U*O-j*Z,ee=V*O-P*Z,N=L*Z+N*O,H=K,U=oe,V=ee),C=At(U,H),f=C*ht,C&&(O=Math.cos(C),Z=Math.sin(C),K=H*O+U*Z,oe=Y*O+X*Z,U=U*O-H*Z,X=X*O-Y*Z,H=K,Y=oe),x&&Math.abs(x)+Math.abs(f)>359.9&&(x=f=0,y=180-y),h=fe(Math.sqrt(H*H+U*U+V*V)),_=fe(Math.sqrt(X*X+q*q)),C=At(Y,X),b=Math.abs(C)>2e-4?C*ht:0,T=N?1/(N<0?-N:N):0),i.svg&&(K=e.getAttribute("transform"),i.forceCSS=e.setAttribute("transform","")||!wa($e(e,pe)),K&&e.setAttribute("transform",K))),Math.abs(b)>90&&Math.abs(b)<270&&(a?(h*=-1,b+=f<=0?180:-180,f+=f<=0?180:-180):(_*=-1,b+=b<=0?180:-180)),t=t||i.uncache,i.x=p-((i.xPercent=p&&(!t&&i.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-p)?-50:0)))?e.offsetWidth*i.xPercent/100:0)+o,i.y=d-((i.yPercent=d&&(!t&&i.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-d)?-50:0)))?e.offsetHeight*i.yPercent/100:0)+o,i.z=m+o,i.scaleX=fe(h),i.scaleY=fe(_),i.rotation=fe(f)+s,i.rotationX=fe(x)+s,i.rotationY=fe(y)+s,i.skewX=b+s,i.skewY=w+s,i.transformPerspective=T+o,(i.zOrigin=parseFloat(c.split(" ")[2])||!t&&i.zOrigin||0)&&(r[Ee]=Ci(c)),i.xOffset=i.yOffset=0,i.force3D=Pe.force3D,i.renderTransform=i.svg?ml:fa?ja:fl,i.uncache=0,i},Ci=function(e){return(e=e.split(" "))[0]+" "+e[1]},Cn=function(e,t,i){var r=je(t);return fe(parseFloat(t)+parseFloat(lt(e,"x",i+"px",r)))+r},fl=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,ja(e,t)},xt="0deg",ei="0px",gt=") ",ja=function(e,t){var i=t||this,r=i.xPercent,a=i.yPercent,o=i.x,s=i.y,l=i.z,c=i.rotation,p=i.rotationY,d=i.rotationX,m=i.skewX,h=i.skewY,_=i.scaleX,f=i.scaleY,x=i.transformPerspective,y=i.force3D,b=i.target,w=i.zOrigin,T="",g=y==="auto"&&e&&e!==1||y===!0;if(w&&(d!==xt||p!==xt)){var k=parseFloat(p)*Pt,S=Math.sin(k),C=Math.cos(k),O;k=parseFloat(d)*Pt,O=Math.cos(k),o=Cn(b,o,S*O*-w),s=Cn(b,s,-Math.sin(k)*-w),l=Cn(b,l,C*O*-w+w)}x!==ei&&(T+="perspective("+x+gt),(r||a)&&(T+="translate("+r+"%, "+a+"%) "),(g||o!==ei||s!==ei||l!==ei)&&(T+=l!==ei||g?"translate3d("+o+", "+s+", "+l+") ":"translate("+o+", "+s+gt),c!==xt&&(T+="rotate("+c+gt),p!==xt&&(T+="rotateY("+p+gt),d!==xt&&(T+="rotateX("+d+gt),(m!==xt||h!==xt)&&(T+="skew("+m+", "+h+gt),(_!==1||f!==1)&&(T+="scale("+_+", "+f+gt),b.style[pe]=T||"translate(0, 0)"},ml=function(e,t){var i=t||this,r=i.xPercent,a=i.yPercent,o=i.x,s=i.y,l=i.rotation,c=i.skewX,p=i.skewY,d=i.scaleX,m=i.scaleY,h=i.target,_=i.xOrigin,f=i.yOrigin,x=i.xOffset,y=i.yOffset,b=i.forceCSS,w=parseFloat(o),T=parseFloat(s),g,k,S,C,O;l=parseFloat(l),c=parseFloat(c),p=parseFloat(p),p&&(p=parseFloat(p),c+=p,l+=p),l||c?(l*=Pt,c*=Pt,g=Math.cos(l)*d,k=Math.sin(l)*d,S=Math.sin(l-c)*-m,C=Math.cos(l-c)*m,c&&(p*=Pt,O=Math.tan(c-p),O=Math.sqrt(1+O*O),S*=O,C*=O,p&&(O=Math.tan(p),O=Math.sqrt(1+O*O),g*=O,k*=O)),g=fe(g),k=fe(k),S=fe(S),C=fe(C)):(g=d,C=m,k=S=0),(w&&!~(o+"").indexOf("px")||T&&!~(s+"").indexOf("px"))&&(w=lt(h,"x",o,"px"),T=lt(h,"y",s,"px")),(_||f||x||y)&&(w=fe(w+_-(_*g+f*S)+x),T=fe(T+f-(_*k+f*C)+y)),(r||a)&&(O=h.getBBox(),w=fe(w+r/100*O.width),T=fe(T+a/100*O.height)),O="matrix("+g+","+k+","+S+","+C+","+w+","+T+")",h.setAttribute("transform",O),b&&(h.style[pe]=O)},hl=function(e,t,i,r,a){var o=360,s=ye(a),l=parseFloat(a)*(s&&~a.indexOf("rad")?ht:1),c=l-r,p=r+c+"deg",d,m;return s&&(d=a.split("_")[1],d==="short"&&(c%=o,c!==c%(o/2)&&(c+=c<0?o:-o)),d==="cw"&&c<0?c=(c+o*la)%o-~~(c/o)*o:d==="ccw"&&c>0&&(c=(c-o*la)%o-~~(c/o)*o)),e._pt=m=new Ce(e._pt,t,i,r,c,Js),m.e=p,m.u="deg",e._props.push(i),m},ka=function(e,t){for(var i in t)e[i]=t[i];return e},vl=function(e,t,i){var r=ka({},i._gsap),a="perspective,force3D,transformOrigin,svgOrigin",o=i.style,s,l,c,p,d,m,h,_;r.svg?(c=i.getAttribute("transform"),i.setAttribute("transform",""),o[pe]=t,s=Qt(i,1),vt(i,pe),i.setAttribute("transform",c)):(c=getComputedStyle(i)[pe],o[pe]=t,s=Qt(i,1),o[pe]=c);for(l in Je)c=r[l],p=s[l],c!==p&&a.indexOf(l)<0&&(h=je(c),_=je(p),d=h!==_?lt(i,l,c,_):parseFloat(c),m=parseFloat(p),e._pt=new Ce(e._pt,s,l,d,m-d,Tn),e._pt.u=_||0,e._props.push(l));ka(s,r)};Se("padding,margin,Width,Radius",function(n,e){var t="Top",i="Right",r="Bottom",a="Left",o=(e<3?[t,i,r,a]:[t+a,t+i,r+i,r+a]).map(function(s){return e<2?n+s:"border"+s+n});Si[e>1?"border"+n:n]=function(s,l,c,p,d){var m,h;if(arguments.length<4)return m=o.map(function(_){return Qe(s,_,c)}),h=m.join(" "),h.split(m[0]).length===5?m[0]:h;m=(p+"").split(" "),h={},o.forEach(function(_,f){return h[_]=m[f]=m[f]||m[(f-1)/2|0]}),s.init(l,h,d)}});var Oa={name:"css",register:kn,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,i,r,a){var o=this._props,s=e.style,l=i.vars.startAt,c,p,d,m,h,_,f,x,y,b,w,T,g,k,S,C;yn||kn(),this.styles=this.styles||da(e),C=this.styles.props,this.tween=i;for(f in t)if(f!=="autoRound"&&(p=t[f],!(De[f]&&Kr(f,t,i,r,e,a)))){if(h=typeof p,_=Si[f],h==="function"&&(p=p.call(i,r,e,a),h=typeof p),h==="string"&&~p.indexOf("random(")&&(p=Yt(p)),_)_(this,e,f,p,i)&&(S=1);else if(f.substr(0,2)==="--")c=(getComputedStyle(e).getPropertyValue(f)+"").trim(),p+="",rt.lastIndex=0,rt.test(c)||(x=je(c),y=je(p)),y?x!==y&&(c=lt(e,f,c,y)+y):x&&(p+=x),this.add(s,"setProperty",c,p,r,a,0,0,f),o.push(f),C.push(f,0,s[f]);else if(h!=="undefined"){if(l&&f in l?(c=typeof l[f]=="function"?l[f].call(i,r,e,a):l[f],ye(c)&&~c.indexOf("random(")&&(c=Yt(c)),je(c+"")||c==="auto"||(c+=Pe.units[f]||je(Qe(e,f))||""),(c+"").charAt(1)==="="&&(c=Qe(e,f))):c=Qe(e,f),m=parseFloat(c),b=h==="string"&&p.charAt(1)==="="&&p.substr(0,2),b&&(p=p.substr(2)),d=parseFloat(p),f in Ue&&(f==="autoAlpha"&&(m===1&&Qe(e,"visibility")==="hidden"&&d&&(m=0),C.push("visibility",0,s.visibility),st(this,s,"visibility",m?"inherit":"hidden",d?"inherit":"hidden",!d)),f!=="scale"&&f!=="transform"&&(f=Ue[f],~f.indexOf(",")&&(f=f.split(",")[0]))),w=f in Je,w){if(this.styles.save(f),h==="string"&&p.substring(0,6)==="var(--"&&(p=$e(e,p.substring(4,p.indexOf(")"))),d=parseFloat(p)),T||(g=e._gsap,g.renderTransform&&!t.parseTransform||Qt(e,t.parseTransform),k=t.smoothOrigin!==!1&&g.smooth,T=this._pt=new Ce(this._pt,s,pe,0,1,g.renderTransform,g,0,-1),T.dep=1),f==="scale")this._pt=new Ce(this._pt,g,"scaleY",g.scaleY,(b?jt(g.scaleY,b+d):d)-g.scaleY||0,Tn),this._pt.u=0,o.push("scaleY",f),f+="X";else if(f==="transformOrigin"){C.push(Ee,0,s[Ee]),p=ul(p),g.svg?Sn(e,p,0,k,0,this):(y=parseFloat(p.split(" ")[2])||0,y!==g.zOrigin&&st(this,g,"zOrigin",g.zOrigin,y),st(this,s,f,Ci(c),Ci(p)));continue}else if(f==="svgOrigin"){Sn(e,p,1,k,0,this);continue}else if(f in ba){hl(this,g,f,m,b?jt(m,b+p):p);continue}else if(f==="smoothOrigin"){st(this,g,"smooth",g.smooth,p);continue}else if(f==="force3D"){g[f]=p;continue}else if(f==="transform"){vl(this,p,e);continue}}else f in s||(f=Dt(f)||f);if(w||(d||d===0)&&(m||m===0)&&!Ks.test(p)&&f in s)x=(c+"").substr((m+"").length),d||(d=0),y=je(p)||(f in Pe.units?Pe.units[f]:x),x!==y&&(m=lt(e,f,c,y)),this._pt=new Ce(this._pt,w?g:s,f,m,(b?jt(m,b+d):d)-m,!w&&(y==="px"||f==="zIndex")&&t.autoRound!==!1?el:Tn),this._pt.u=y||0,x!==y&&y!=="%"&&(this._pt.b=c,this._pt.r=Qs);else if(f in s)pl.call(this,e,f,c,b?b+p:p);else if(f in e)this.add(e,f,c||e[f],b?b+p:p,r,a);else if(f!=="parseTransform"){Xi(f,p);continue}w||(f in s?C.push(f,0,s[f]):typeof e[f]=="function"?C.push(f,2,e[f]()):C.push(f,1,c||e[f])),o.push(f)}}S&&na(this)},render:function(e,t){if(t.tween._time||!bn())for(var i=t._pt;i;)i.r(e,i.d),i=i._next;else t.styles.revert()},get:Qe,aliases:Ue,getSetter:function(e,t,i){var r=Ue[t];return r&&r.indexOf(",")<0&&(t=r),t in Je&&t!==Ee&&(e._gsap.x||Qe(e,"x"))?i&&sa===i?t==="scale"?rl:nl:(sa=i||{})&&(t==="scale"?al:ol):e.style&&!$i(e.style[t])?tl:~t.indexOf("-")?il:hn(e,t)},core:{_removeProperty:vt,_getMatrix:On}};qe.utils.checkPrefix=Dt,qe.core.getStyleSaver=da,(function(n,e,t,i){var r=Se(n+","+e+","+t,function(a){Je[a]=1});Se(e,function(a){Pe.units[a]="deg",ba[a]=1}),Ue[r[13]]=n+","+e,Se(i,function(a){var o=a.split(":");Ue[o[1]]=r[o[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"),Se("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(n){Pe.units[n]="px"}),qe.registerPlugin(Oa);var Fe=qe.registerPlugin(Oa)||qe;Fe.core.Tween;const xl=(n,e)=>{er.useGSAP(()=>{if(!n.current)return;const t=n.current,i=document.querySelector('[data-main-content="true"]');if(e){Fe.fromTo(t,{width:"0rem",opacity:0},{width:"40rem",opacity:1,duration:.4,ease:"power2.out"}),i&&Fe.to(i,{marginLeft:t.offsetWidth+"px",duration:.4,ease:"power2.out"});const r=t.querySelectorAll(".secondary-bar-content > *");r.length>0&&Fe.fromTo(r,{y:20,opacity:0},{y:0,opacity:1,duration:.3,stagger:.05,delay:.1,ease:"power1.out"})}else Fe.to(t,{width:"0rem",opacity:0,duration:.3,ease:"power2.in"}),i&&Fe.to(i,{marginLeft:"0px",duration:.3,ease:"power2.in"})},{scope:n,dependencies:[e]})},Sa=({children:n,isOpen:e=!1,className:t="",width:i="w-96",action:r,primarySidebarCollapsed:a,onClose:o})=>{const s=A.useRef(null),[l,c]=A.useState({left:0,width:0}),{primarySidebarRef:p}=pr();return A.useLayoutEffect(()=>{if(p?.current){const d=p.current.getBoundingClientRect();c({left:d.width,width:d.width})}},[p,e,a]),xl(s,e),u.jsx(u.Fragment,{children:e&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"fixed inset-0 bg-black/95 z-20",style:{left:l.left},onClick:o}),u.jsx("div",{ref:s,className:M("h-screen bg-neutral-default-default border-r-1 border-neutral-strong-default flex flex-col secondary-bar flex-shrink-0","absolute top-0 z-30",i,t),style:{left:l.left},"data-action":r,children:u.jsx("div",{className:"secondary-bar-content",children:n})})]})})},gl=Object.assign(Sa,{Root:Sa,Header:({children:n,className:e})=>u.jsx("div",{className:M("h-16 ",e),children:n}),Content:({children:n,className:e})=>u.jsx("div",{className:M("flex-1 overflow-y-auto p-4",e),children:n}),Footer:({children:n,className:e})=>u.jsx("div",{className:M("p-4 border-t border-neutral-strong-default",e),children:n}),Spacer:({className:n})=>u.jsx("div",{className:M("flex-1",n)})}),qi=(n,e,t,i)=>e&&(Array.isArray(e)?e.length>0:e)?n.to(e,t,i):n,_l=(n,e,t)=>{er.useGSAP(()=>{if(!n.current)return;const i=Fe.timeline({defaults:{duration:.7,ease:"power1.out"}}),r={navbar:n.current,navLabels:Fe.utils.toArray(".nav-label"),navIconWrappers:Fe.utils.toArray(".nav-icon-wrapper"),navIcons:Fe.utils.toArray(".nav-icon"),navLinkItems:Fe.utils.toArray(".nav-link-item"),logoutButton:document.querySelector(".logout-button"),logoutLabel:document.querySelector(".logout-label"),logoutIcon:document.querySelector(".logout-icon"),profileContainer:document.querySelector(".profile-container"),profileName:document.querySelector(".profile-name"),profileOptions:document.querySelector(".profile-options"),profileImageWrapper:document.querySelector(".profile-image-wrapper"),coverImageProfile:document.querySelector(".cover-image-profile"),navContentWrapper:document.querySelector(".nav-content-wrapper-active"),buttonCrevron:document.querySelector(".button-select-crevron"),separatorProfile:document.querySelector(".border-separator-profile"),buttonProfile:document.querySelector(".button-profile"),profileUserInfo:document.querySelector(".profile-user-info"),buttonContentChevron:document.querySelector(".button-content-chevron"),logo:{contenedor:document.querySelector(".container-logo"),icon:document.querySelector(".icon-logo"),text:document.querySelector(".text-logo")},sidebarHeader:document.querySelector(".sidebar-header"),containerIconcollapsade:document.querySelector(".container-icon-collapsade"),secondaryBar:document.querySelector(".secondary-bar"),secondaryBarContent:Fe.utils.toArray(".secondary-bar *")};e?yl(i,r):bl(i,r),r.secondaryBar&&wl(r.secondaryBar)},{scope:n,dependencies:[e,t]})},yl=(n,e)=>{n.to(e.navbar,{width:"6rem",duration:.2,ease:"bounce.out"}).to(e.logo.contenedor,{width:48,duration:.2}).to(e.logo.text,{opacity:0,scale:.8,duration:.5,ease:"back.in(1.2)"},-1).set(e.logo.text,{display:"none"}).to(e.sidebarHeader,{justifyContent:"center",display:"flex"},-1).to(e.logo.icon,{keyframes:{"0%":{scale:1},"33%":{scale:1.5},"66%":{scale:.5},"100%":{scale:1}},duration:.6,ease:"power1.inOut"}).to(e.navLinkItems,{justifyContent:"center",alignItems:"center",width:"3rem",height:"3rem",display:"flex"},-1).to(e.navLabels,{opacity:0,width:30,marginLeft:0},0).to(e.navIcons,{scale:.95,ease:"elastic.out(1, 0.3)"},0),qi(n,e.buttonCrevron,{width:0,opacity:0,duration:.7,ease:"power1.out",onComplete:()=>{e.buttonCrevron.style.display="none"}},0),qi(n,e.buttonContentChevron,{display:"none"},-1).to(e.separatorProfile,{display:"none"},-1).to(e.profileUserInfo,{display:"none"},-1).to(e.navLinkItems,{borderRadius:"8px",duration:.7,ease:"power1.out"},.8).to(e.buttonProfile,{height:"3rem",width:"3rem",margin:0,padding:0,duration:.3,ease:"power2.out",display:"flex",justifyContent:"center",alignItems:"center"},-1).to(e.containerIconcollapsade,{justifyContent:"center",marginRight:0},"=-1")},bl=(n,e)=>{n.to(e.navbar,{width:"20rem"},-1).to(e.navLinkItems,{borderRadius:"10px",duration:.3,width:"100%",justifyContent:"flex-start"},-1),qi(n,e.buttonCrevron,{width:"auto",opacity:1,duration:0,ease:"power1.out",onComplete:()=>{e.buttonCrevron.style.display="flex"}},0),qi(n,e.buttonContentChevron,{display:"flex"},0).to(e.logo.contenedor,{width:185},-1).set(e.logo.text,{display:"flex"},-1).to(e.logo.text,{opacity:1,duration:0,ease:"back.in(1)"}).to(e.logo.icon,{keyframes:{"0%":{scale:1},"33%":{scale:1.5},"66%":{scale:.5},"100%":{scale:1}},duration:.3,ease:"power1.inOut"}).to(e.sidebarHeader,{justifyContent:"start",display:"flex"},-1).to(e.containerIconcollapsade,{justifyContent:"end",marginRight:20},-1).to(e.separatorProfile,{display:"flex"},0).to(e.profileUserInfo,{display:"flex"},-1).to(e.buttonProfile,{borderTopLeftRadius:"0.375rem",borderBottomLeftRadius:"0.375rem",borderTopRightRadius:"0",borderBottomRightRadius:"0",duration:0},-1).to(e.separatorProfile,{display:"flex"},0).to(e.navLabels,{opacity:1,width:"auto",scaleX:1},0).to(e.navIcons,{scale:1},.3)},wl=(n,e)=>{Fe.to(n,{x:"-100%",opacity:0,duration:.3,ease:"power2.in"})},qn=A.forwardRef(({children:n,isCollapsed:e=!1,className:t=""},i)=>{const r=A.useRef(null),{registerPrimarySidebar:a}=pr(),o=A.useCallback(s=>{r.current=s,typeof i=="function"?i(s):i&&(i.current=s)},[i]);return A.useEffect(()=>{r.current&&a(r)},[a]),_l(r,e,!1),u.jsx("div",{ref:o,className:`bg-neutral-default-default overflow-hidden h-screen flex flex-col border-r border-neutral-strong-default transition-all duration-300 relative z-50 flex-shrink-0 ${e?"w-16":"w-64"} ${t}`,children:n})});qn.displayName="SidebarRoot";const Tl=Object.assign(qn,{Root:qn,CollapseButton:({isCollapsed:n,onToggleCollapse:e})=>u.jsx("div",{className:M("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade",n&&""),children:u.jsx("button",{onClick:e,title:n?"Expandir Navbar":"Contraer Navbar","aria-label":n?"Expandir Navbar":"Contraer Navbar",className:"cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",children:n?u.jsx(ge.CloseNavBarDesktop,{size:24,className:"rotate-180 transition-transform duration-300"}):u.jsx(ge.CloseNavBarDesktop,{size:24,className:"rotate-0 transition-transform duration-300"})})}),Header:({children:n,className:e})=>u.jsx("div",{className:`${e} sidebar-header`,children:n}),Divider:({className:n})=>u.jsx("div",{className:M("px-3 flex justify-center items-center w-full mb-4",n),children:u.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),Content:({children:n,className:e})=>u.jsx("div",{className:e,children:n}),Spacer:({className:n,size:e="auto"})=>{const t=()=>{switch(e){case"auto":return"flex-grow";case"small":return"h-2 w-2";case"medium":return"h-4 w-4";case"large":return"h-8 w-8"}};return u.jsx("div",{className:M(t(),n)})},Footer:({children:n,className:e})=>u.jsx("div",{className:e,children:n})}),jl=()=>{const[n,e]=A.useState(!1),[t,i]=A.useState(!1),r=()=>{e(!1),s()},a=()=>{e(!0),i(!1)},o=()=>{i(!0)},s=()=>{i(!1)};return{isCollapsed:n,setIsCollapsed:e,toggleCollapse:()=>{n?r():a()},expandSidebar:r,collapseSidebar:a,activeSecondaryBar:t,openSecondaryBar:o,closeSecondaryBar:s,toggleSecondaryBar:()=>{i(p=>!p)}}},kl=({children:n,icon:e,label:t,href:i,onClick:r,isActive:a=!1,className:o})=>{const s=i?"a":"button";return u.jsxs(s,{href:i,onClick:r,className:M("nav-link-item","flex items-center w-full px-3 py-2 text-left","hover:bg-neutral-medium-default transition-colors rounded-lg","focus:outline-none focus:ring-2 focus:ring-primary-default-default",a&&"bg-neutral-medium-default",o),children:[e&&u.jsx("div",{className:"nav-icon-wrapper mr-3 flex-shrink-0",children:u.jsx("div",{className:"nav-icon flex items-center justify-center w-5 h-5",children:e})}),t&&u.jsx("span",{className:"nav-label text-sm text-neutral-strong-default",children:t}),n]})},Ol=A.createContext(void 0),Sl=()=>{const n=A.useContext(Ol);if(!n)throw new Error("useSidebar must be used within a Sidebar.Root");return n},Cl=({user:n,className:e,onProfileClick:t})=>{const{isCollapsed:i}=Sl(),[r,a]=A.useState(!1),o=()=>{i?t?.():a(!r)};return u.jsxs("div",{className:M("profile-container",e),children:[u.jsxs("button",{onClick:o,className:M("button-profile","flex items-center w-full p-3 text-left","hover:bg-neutral-medium-default transition-colors rounded-lg","focus:outline-none focus:ring-2 focus:ring-primary-default-default"),children:[u.jsx("div",{className:"profile-image-wrapper flex-shrink-0 mr-3",children:u.jsx("div",{className:"cover-image-profile w-10 h-10 rounded-full bg-primary-default-default flex items-center justify-center text-white text-sm font-semibold",children:n.profileImage?u.jsx("img",{src:n.profileImage,alt:n.name,className:"w-full h-full rounded-full object-cover"}):n.name.charAt(0).toUpperCase()})}),u.jsxs("div",{className:"profile-user-info flex-1 min-w-0",children:[u.jsx("div",{className:"profile-name text-sm font-medium text-neutral-strong-default truncate",children:n.name}),u.jsx("div",{className:"text-xs text-neutral-medium-default truncate",children:n.email})]}),u.jsx("div",{className:"button-content-chevron ml-2 flex-shrink-0",children:u.jsx("div",{className:"button-select-crevron w-4 h-4 text-neutral-medium-default",children:r?"▲":"▼"})})]}),r&&!i&&u.jsx("div",{className:"profile-options mt-2 pl-3 space-y-1",children:u.jsxs("button",{className:"logout-button flex items-center w-full px-3 py-2 text-left text-sm text-neutral-strong-default hover:bg-neutral-medium-default rounded-lg",children:[u.jsx("span",{className:"logout-icon mr-2",children:"🚪"}),u.jsx("span",{className:"logout-label",children:"Cerrar sesión"})]})}),u.jsx("div",{className:"border-separator-profile mt-3 border-t border-neutral-strong-default"})]})},ql=({count:n,maxCount:e=9,className:t="",size:i="medium",variant:r="primary",showZero:a=!1})=>{const o=n,s=o>e?`+${e}`:o;if(o===0&&!a)return null;const l={small:"w-4 h-4 text-xs",medium:"w-5 h-5 text-xs",large:"w-6 h-6 text-sm"},c={primary:"bg-primary-default-default text-neutral-strong-default",secondary:"bg-neutral-medium-default text-neutral-strong-default",success:"bg-green-500 text-white",warning:"bg-yellow-500 text-black",danger:"bg-red-500 text-white"};return u.jsx("div",{className:M("rounded-full flex items-center justify-center font-medium",l[i],c[r],t),children:u.jsx("span",{children:s})})},El=({linkActions:n,componentBadge:e,onClick:t,activeAction:i,counts:r={}})=>u.jsx("nav",{className:"flex flex-col gap-1",children:n?.map((a,o)=>a.viewAccess()&&u.jsx(Q.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.4,delay:o*.03,ease:"easeOut"},className:"relative flex justify-center w-full items-center px-3",children:u.jsxs("button",{onClick:()=>{t?.(a.action)},className:M("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===a.action?"text-primary-default-default bg-neutral-medium-selected":"text-neutral-default-default"),children:[u.jsx(Q.AnimatePresence,{mode:"wait",children:i===a.action&&u.jsx(Q.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"}})}),u.jsxs(Q.motion.div,{className:"nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",animate:{x:(i===a.action,0)},transition:{duration:.25,ease:"easeOut"},children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(Q.motion.div,{className:"nav-icon-wrapper flex items-center justify-center flex-shrink-0",animate:{scale:i===a.action?1.05:1},transition:{duration:.25,ease:"easeOut"},children:typeof a.icon=="function"?a.icon({size:24,className:M("nav-icon transition-colors duration-250 ease-out",i===a.action?"text-primary-default-default":"text-neutral-default-default group-hover:text-white-prometeo")}):null}),u.jsx("span",{className:"nav-label whitespace-nowrap text-sm font-semibold ",children:a.title})]}),e&&typeof e=="function"&&r[a.action]&&r[a.action]>0&&e(r[a.action])]})]})},o))}),Pl=({links:n,isLinkActive:e,componentBadge:t,onLinkClick:i})=>u.jsx("nav",{className:"flex flex-col gap-1",children:n?.map((r,a)=>{const o=e(r.path)||(r.relatedPaths?.some(s=>e(s))??!1);return r.isView&&r.viewAccess()&&u.jsx(Q.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.4,delay:a*.03,ease:"easeOut"},className:"relative flex justify-center w-full items-center px-3",children:u.jsxs("button",{onClick:()=>{i?.(r.path)},className:M("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:[u.jsx(Q.AnimatePresence,{mode:"wait",children:o&&u.jsx(Q.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"}})}),u.jsxs(Q.motion.div,{className:"nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",animate:{x:0},transition:{duration:.25,ease:"easeOut"},children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(Q.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 r.icon=="function"?r.icon({size:24,className:M("nav-icon transition-colors duration-250 ease-out",o?"text-primary-default-default":"text-neutral-default-default group-hover:text-white-prometeo")}):null}),u.jsx("span",{className:"nav-label whitespace-nowrap text-sm font-semibold ",children:r.title})]}),t&&r.count&&r.count>0&&t(r.count)]})]})},a)})}),Al=({isActiveModalNotification:n,setIsActiveModalNotification:e})=>({handleNotificationClick:()=>{e(!0)},isActiveModalNotification:n}),Dl=n=>{const e=A.useRef(null);return{isCollapsed:n,navbarRef:e}},Nl=({isCollapsed:n,onToggle:e})=>u.jsx("div",{className:"",children:u.jsx("button",{onClick:e,title:n?"Expandir Navbar":"Contraer Navbar","aria-label":n?"Expandir Navbar":"Contraer Navbar",className:"cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",children:n?u.jsx(ge.CloseNavBarDesktop,{size:34,className:"rotate-180 transition-transform duration-300"}):u.jsx(ge.CloseNavBarDesktop,{size:34,className:"rotate-0 transition-transform duration-300"})})}),Rl=({logoUrl:n,companyName:e})=>u.jsx("div",{className:"w-full flex justify-center items-center p-2 h-20",children:u.jsx("img",{src:n,className:"h-2/3 rounded-full",alt:e??""})}),Ml=(n,e=!0)=>{const t=A.useRef(null);return A.useEffect(()=>{if(!e)return;const i=r=>{t.current&&!t.current.contains(r.target)&&n()};return document.addEventListener("mousedown",i,{capture:!0}),document.addEventListener("touchstart",i,{capture:!0}),()=>{document.removeEventListener("mousedown",i,{capture:!0}),document.removeEventListener("touchstart",i,{capture:!0})}},[n,e]),t};var Ei={exports:{}},Pi={exports:{}},te={};/** @license React v16.13.1
|
|
49
|
+
* react-is.production.min.js
|
|
50
|
+
*
|
|
51
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
52
|
+
*
|
|
53
|
+
* This source code is licensed under the MIT license found in the
|
|
54
|
+
* LICENSE file in the root directory of this source tree.
|
|
55
|
+
*/var Ca;function Fl(){if(Ca)return te;Ca=1;var n=typeof Symbol=="function"&&Symbol.for,e=n?Symbol.for("react.element"):60103,t=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,r=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,o=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,c=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,_=n?Symbol.for("react.lazy"):60116,f=n?Symbol.for("react.block"):60121,x=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function w(g){if(typeof g=="object"&&g!==null){var k=g.$$typeof;switch(k){case e:switch(g=g.type,g){case l:case c:case i:case a:case r:case d:return g;default:switch(g=g&&g.$$typeof,g){case s:case p:case _:case h:case o:return g;default:return k}}case t:return k}}}function T(g){return w(g)===c}return te.AsyncMode=l,te.ConcurrentMode=c,te.ContextConsumer=s,te.ContextProvider=o,te.Element=e,te.ForwardRef=p,te.Fragment=i,te.Lazy=_,te.Memo=h,te.Portal=t,te.Profiler=a,te.StrictMode=r,te.Suspense=d,te.isAsyncMode=function(g){return T(g)||w(g)===l},te.isConcurrentMode=T,te.isContextConsumer=function(g){return w(g)===s},te.isContextProvider=function(g){return w(g)===o},te.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},te.isForwardRef=function(g){return w(g)===p},te.isFragment=function(g){return w(g)===i},te.isLazy=function(g){return w(g)===_},te.isMemo=function(g){return w(g)===h},te.isPortal=function(g){return w(g)===t},te.isProfiler=function(g){return w(g)===a},te.isStrictMode=function(g){return w(g)===r},te.isSuspense=function(g){return w(g)===d},te.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===i||g===c||g===a||g===r||g===d||g===m||typeof g=="object"&&g!==null&&(g.$$typeof===_||g.$$typeof===h||g.$$typeof===o||g.$$typeof===s||g.$$typeof===p||g.$$typeof===x||g.$$typeof===y||g.$$typeof===b||g.$$typeof===f)},te.typeOf=w,te}var ie={};/** @license React v16.13.1
|
|
56
|
+
* react-is.development.js
|
|
57
|
+
*
|
|
58
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
59
|
+
*
|
|
60
|
+
* This source code is licensed under the MIT license found in the
|
|
61
|
+
* LICENSE file in the root directory of this source tree.
|
|
62
|
+
*/var qa;function zl(){return qa||(qa=1,process.env.NODE_ENV!=="production"&&(function(){var n=typeof Symbol=="function"&&Symbol.for,e=n?Symbol.for("react.element"):60103,t=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,r=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,o=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,c=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,_=n?Symbol.for("react.lazy"):60116,f=n?Symbol.for("react.block"):60121,x=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function w(E){return typeof E=="string"||typeof E=="function"||E===i||E===c||E===a||E===r||E===d||E===m||typeof E=="object"&&E!==null&&(E.$$typeof===_||E.$$typeof===h||E.$$typeof===o||E.$$typeof===s||E.$$typeof===p||E.$$typeof===x||E.$$typeof===y||E.$$typeof===b||E.$$typeof===f)}function T(E){if(typeof E=="object"&&E!==null){var ze=E.$$typeof;switch(ze){case e:var bt=E.type;switch(bt){case l:case c:case i:case a:case r:case d:return bt;default:var ii=bt&&bt.$$typeof;switch(ii){case s:case p:case _:case h:case o:return ii;default:return ze}}case t:return ze}}}var g=l,k=c,S=s,C=o,O=e,Z=p,H=i,U=_,V=h,L=t,Y=a,X=r,K=d,oe=!1;function ee(E){return oe||(oe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),v(E)||T(E)===l}function v(E){return T(E)===c}function j(E){return T(E)===s}function P(E){return T(E)===o}function F(E){return typeof E=="object"&&E!==null&&E.$$typeof===e}function N(E){return T(E)===p}function q(E){return T(E)===i}function R(E){return T(E)===_}function I(E){return T(E)===h}function z(E){return T(E)===t}function G(E){return T(E)===a}function W(E){return T(E)===r}function me(E){return T(E)===d}ie.AsyncMode=g,ie.ConcurrentMode=k,ie.ContextConsumer=S,ie.ContextProvider=C,ie.Element=O,ie.ForwardRef=Z,ie.Fragment=H,ie.Lazy=U,ie.Memo=V,ie.Portal=L,ie.Profiler=Y,ie.StrictMode=X,ie.Suspense=K,ie.isAsyncMode=ee,ie.isConcurrentMode=v,ie.isContextConsumer=j,ie.isContextProvider=P,ie.isElement=F,ie.isForwardRef=N,ie.isFragment=q,ie.isLazy=R,ie.isMemo=I,ie.isPortal=z,ie.isProfiler=G,ie.isStrictMode=W,ie.isSuspense=me,ie.isValidElementType=w,ie.typeOf=T})()),ie}var Ea;function Pa(){return Ea||(Ea=1,process.env.NODE_ENV==="production"?Pi.exports=Fl():Pi.exports=zl()),Pi.exports}/*
|
|
63
|
+
object-assign
|
|
64
|
+
(c) Sindre Sorhus
|
|
65
|
+
@license MIT
|
|
66
|
+
*/var En,Aa;function Il(){if(Aa)return En;Aa=1;var n=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function i(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function r(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(p){return o[p]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(p){c[p]=p}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return En=r()?Object.assign:function(a,o){for(var s,l=i(a),c,p=1;p<arguments.length;p++){s=Object(arguments[p]);for(var d in s)e.call(s,d)&&(l[d]=s[d]);if(n){c=n(s);for(var m=0;m<c.length;m++)t.call(s,c[m])&&(l[c[m]]=s[c[m]])}}return l},En}var Pn,Da;function An(){if(Da)return Pn;Da=1;var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Pn=n,Pn}var Dn,Na;function Ra(){return Na||(Na=1,Dn=Function.call.bind(Object.prototype.hasOwnProperty)),Dn}var Nn,Ma;function Ll(){if(Ma)return Nn;Ma=1;var n=function(){};if(process.env.NODE_ENV!=="production"){var e=An(),t={},i=Ra();n=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function r(a,o,s,l,c){if(process.env.NODE_ENV!=="production"){for(var p in a)if(i(a,p)){var d;try{if(typeof a[p]!="function"){var m=Error((l||"React class")+": "+s+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}d=a[p](o,p,l,s,null,e)}catch(_){d=_}if(d&&!(d instanceof Error)&&n((l||"React class")+": type specification of "+s+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in t)){t[d.message]=!0;var h=c?c():"";n("Failed "+s+" type: "+d.message+(h??""))}}}}return r.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},Nn=r,Nn}var Rn,Fa;function Zl(){if(Fa)return Rn;Fa=1;var n=Pa(),e=Il(),t=An(),i=Ra(),r=Ll(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Rn=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function d(v){var j=v&&(c&&v[c]||v[p]);if(typeof j=="function")return j}var m="<<anonymous>>",h={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:b(),arrayOf:w,element:T(),elementType:g(),instanceOf:k,node:Z(),objectOf:C,oneOf:S,oneOfType:O,shape:U,exact:V};function _(v,j){return v===j?v!==0||1/v===1/j:v!==v&&j!==j}function f(v,j){this.message=v,this.data=j&&typeof j=="object"?j:{},this.stack=""}f.prototype=Error.prototype;function x(v){if(process.env.NODE_ENV!=="production")var j={},P=0;function F(q,R,I,z,G,W,me){if(z=z||m,W=W||I,me!==t){if(l){var E=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw E.name="Invariant Violation",E}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ze=z+":"+I;!j[ze]&&P<3&&(a("You are manually calling a React.PropTypes validation function for the `"+W+"` prop on `"+z+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),j[ze]=!0,P++)}}return R[I]==null?q?R[I]===null?new f("The "+G+" `"+W+"` is marked as required "+("in `"+z+"`, but its value is `null`.")):new f("The "+G+" `"+W+"` is marked as required in "+("`"+z+"`, but its value is `undefined`.")):null:v(R,I,z,G,W)}var N=F.bind(null,!1);return N.isRequired=F.bind(null,!0),N}function y(v){function j(P,F,N,q,R,I){var z=P[F],G=X(z);if(G!==v){var W=K(z);return new f("Invalid "+q+" `"+R+"` of type "+("`"+W+"` supplied to `"+N+"`, expected ")+("`"+v+"`."),{expectedType:v})}return null}return x(j)}function b(){return x(o)}function w(v){function j(P,F,N,q,R){if(typeof v!="function")return new f("Property `"+R+"` of component `"+N+"` has invalid PropType notation inside arrayOf.");var I=P[F];if(!Array.isArray(I)){var z=X(I);return new f("Invalid "+q+" `"+R+"` of type "+("`"+z+"` supplied to `"+N+"`, expected an array."))}for(var G=0;G<I.length;G++){var W=v(I,G,N,q,R+"["+G+"]",t);if(W instanceof Error)return W}return null}return x(j)}function T(){function v(j,P,F,N,q){var R=j[P];if(!s(R)){var I=X(R);return new f("Invalid "+N+" `"+q+"` of type "+("`"+I+"` supplied to `"+F+"`, expected a single ReactElement."))}return null}return x(v)}function g(){function v(j,P,F,N,q){var R=j[P];if(!n.isValidElementType(R)){var I=X(R);return new f("Invalid "+N+" `"+q+"` of type "+("`"+I+"` supplied to `"+F+"`, expected a single ReactElement type."))}return null}return x(v)}function k(v){function j(P,F,N,q,R){if(!(P[F]instanceof v)){var I=v.name||m,z=ee(P[F]);return new f("Invalid "+q+" `"+R+"` of type "+("`"+z+"` supplied to `"+N+"`, expected ")+("instance of `"+I+"`."))}return null}return x(j)}function S(v){if(!Array.isArray(v))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function j(P,F,N,q,R){for(var I=P[F],z=0;z<v.length;z++)if(_(I,v[z]))return null;var G=JSON.stringify(v,function(me,E){var ze=K(E);return ze==="symbol"?String(E):E});return new f("Invalid "+q+" `"+R+"` of value `"+String(I)+"` "+("supplied to `"+N+"`, expected one of "+G+"."))}return x(j)}function C(v){function j(P,F,N,q,R){if(typeof v!="function")return new f("Property `"+R+"` of component `"+N+"` has invalid PropType notation inside objectOf.");var I=P[F],z=X(I);if(z!=="object")return new f("Invalid "+q+" `"+R+"` of type "+("`"+z+"` supplied to `"+N+"`, expected an object."));for(var G in I)if(i(I,G)){var W=v(I,G,N,q,R+"."+G,t);if(W instanceof Error)return W}return null}return x(j)}function O(v){if(!Array.isArray(v))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var j=0;j<v.length;j++){var P=v[j];if(typeof P!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+oe(P)+" at index "+j+"."),o}function F(N,q,R,I,z){for(var G=[],W=0;W<v.length;W++){var me=v[W],E=me(N,q,R,I,z,t);if(E==null)return null;E.data&&i(E.data,"expectedType")&&G.push(E.data.expectedType)}var ze=G.length>0?", expected one of type ["+G.join(", ")+"]":"";return new f("Invalid "+I+" `"+z+"` supplied to "+("`"+R+"`"+ze+"."))}return x(F)}function Z(){function v(j,P,F,N,q){return L(j[P])?null:new f("Invalid "+N+" `"+q+"` supplied to "+("`"+F+"`, expected a ReactNode."))}return x(v)}function H(v,j,P,F,N){return new f((v||"React class")+": "+j+" type `"+P+"."+F+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+N+"`.")}function U(v){function j(P,F,N,q,R){var I=P[F],z=X(I);if(z!=="object")return new f("Invalid "+q+" `"+R+"` of type `"+z+"` "+("supplied to `"+N+"`, expected `object`."));for(var G in v){var W=v[G];if(typeof W!="function")return H(N,q,R,G,K(W));var me=W(I,G,N,q,R+"."+G,t);if(me)return me}return null}return x(j)}function V(v){function j(P,F,N,q,R){var I=P[F],z=X(I);if(z!=="object")return new f("Invalid "+q+" `"+R+"` of type `"+z+"` "+("supplied to `"+N+"`, expected `object`."));var G=e({},P[F],v);for(var W in G){var me=v[W];if(i(v,W)&&typeof me!="function")return H(N,q,R,W,K(me));if(!me)return new f("Invalid "+q+" `"+R+"` key `"+W+"` supplied to `"+N+"`.\nBad object: "+JSON.stringify(P[F],null," ")+`
|
|
67
|
+
Valid keys: `+JSON.stringify(Object.keys(v),null," "));var E=me(I,W,N,q,R+"."+W,t);if(E)return E}return null}return x(j)}function L(v){switch(typeof v){case"number":case"string":case"undefined":return!0;case"boolean":return!v;case"object":if(Array.isArray(v))return v.every(L);if(v===null||s(v))return!0;var j=d(v);if(j){var P=j.call(v),F;if(j!==v.entries){for(;!(F=P.next()).done;)if(!L(F.value))return!1}else for(;!(F=P.next()).done;){var N=F.value;if(N&&!L(N[1]))return!1}}else return!1;return!0;default:return!1}}function Y(v,j){return v==="symbol"?!0:j?j["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&j instanceof Symbol:!1}function X(v){var j=typeof v;return Array.isArray(v)?"array":v instanceof RegExp?"object":Y(j,v)?"symbol":j}function K(v){if(typeof v>"u"||v===null)return""+v;var j=X(v);if(j==="object"){if(v instanceof Date)return"date";if(v instanceof RegExp)return"regexp"}return j}function oe(v){var j=K(v);switch(j){case"array":case"object":return"an "+j;case"boolean":case"date":case"regexp":return"a "+j;default:return j}}function ee(v){return!v.constructor||!v.constructor.name?m:v.constructor.name}return h.checkPropTypes=r,h.resetWarningCache=r.resetWarningCache,h.PropTypes=h,h},Rn}var Mn,za;function Bl(){if(za)return Mn;za=1;var n=An();function e(){}function t(){}return t.resetWarningCache=e,Mn=function(){function i(o,s,l,c,p,d){if(d!==n){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}i.isRequired=i;function r(){return i}var a={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:r,element:i,elementType:i,instanceOf:r,node:i,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:t,resetWarningCache:e};return a.PropTypes=a,a},Mn}var Ia;function $l(){if(Ia)return Ei.exports;if(Ia=1,process.env.NODE_ENV!=="production"){var n=Pa(),e=!0;Ei.exports=Zl()(n.isElement,e)}else Ei.exports=Bl()();return Ei.exports}var Hl=$l();const ae=tr(Hl);function _t(n,e,t,i){function r(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(p){try{c(i.next(p))}catch(d){o(d)}}function l(p){try{c(i.throw(p))}catch(d){o(d)}}function c(p){p.done?a(p.value):r(p.value).then(s,l)}c((i=i.apply(n,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Vl=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function Nt(n,e,t){const i=Yl(n),{webkitRelativePath:r}=n,a=typeof e=="string"?e:typeof r=="string"&&r.length>0?r:`./${n.name}`;return typeof i.path!="string"&&La(i,"path",a),La(i,"relativePath",a),i}function Yl(n){const{name:e}=n;if(e&&e.lastIndexOf(".")!==-1&&!n.type){const i=e.split(".").pop().toLowerCase(),r=Vl.get(i);r&&Object.defineProperty(n,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return n}function La(n,e,t){Object.defineProperty(n,e,{value:t,writable:!1,configurable:!1,enumerable:!0})}const Ul=[".DS_Store","Thumbs.db"];function Wl(n){return _t(this,void 0,void 0,function*(){return Ai(n)&&Xl(n.dataTransfer)?Ql(n.dataTransfer,n.type):Gl(n)?Kl(n):Array.isArray(n)&&n.every(e=>"getFile"in e&&typeof e.getFile=="function")?Jl(n):[]})}function Xl(n){return Ai(n)}function Gl(n){return Ai(n)&&Ai(n.target)}function Ai(n){return typeof n=="object"&&n!==null}function Kl(n){return Fn(n.target.files).map(e=>Nt(e))}function Jl(n){return _t(this,void 0,void 0,function*(){return(yield Promise.all(n.map(t=>t.getFile()))).map(t=>Nt(t))})}function Ql(n,e){return _t(this,void 0,void 0,function*(){if(n.items){const t=Fn(n.items).filter(r=>r.kind==="file");if(e!=="drop")return t;const i=yield Promise.all(t.map(ec));return Za(Ba(i))}return Za(Fn(n.files).map(t=>Nt(t)))})}function Za(n){return n.filter(e=>Ul.indexOf(e.name)===-1)}function Fn(n){if(n===null)return[];const e=[];for(let t=0;t<n.length;t++){const i=n[t];e.push(i)}return e}function ec(n){if(typeof n.webkitGetAsEntry!="function")return $a(n);const e=n.webkitGetAsEntry();return e&&e.isDirectory?Ha(e):$a(n,e)}function Ba(n){return n.reduce((e,t)=>[...e,...Array.isArray(t)?Ba(t):[t]],[])}function $a(n,e){return _t(this,void 0,void 0,function*(){var t;if(globalThis.isSecureContext&&typeof n.getAsFileSystemHandle=="function"){const a=yield n.getAsFileSystemHandle();if(a===null)throw new Error(`${n} is not a File`);if(a!==void 0){const o=yield a.getFile();return o.handle=a,Nt(o)}}const i=n.getAsFile();if(!i)throw new Error(`${n} is not a File`);return Nt(i,(t=e?.fullPath)!==null&&t!==void 0?t:void 0)})}function tc(n){return _t(this,void 0,void 0,function*(){return n.isDirectory?Ha(n):ic(n)})}function Ha(n){const e=n.createReader();return new Promise((t,i)=>{const r=[];function a(){e.readEntries(o=>_t(this,void 0,void 0,function*(){if(o.length){const s=Promise.all(o.map(tc));r.push(s),a()}else try{const s=yield Promise.all(r);t(s)}catch(s){i(s)}}),o=>{i(o)})}a()})}function ic(n){return _t(this,void 0,void 0,function*(){return new Promise((e,t)=>{n.file(i=>{const r=Nt(i,n.fullPath);e(r)},i=>{t(i)})})})}var Di={},Va;function nc(){return Va||(Va=1,Di.__esModule=!0,Di.default=function(n,e){if(n&&e){var t=Array.isArray(e)?e:e.split(",");if(t.length===0)return!0;var i=n.name||"",r=(n.type||"").toLowerCase(),a=r.replace(/\/.*$/,"");return t.some(function(o){var s=o.trim().toLowerCase();return s.charAt(0)==="."?i.toLowerCase().endsWith(s):s.endsWith("/*")?a===s.replace(/\/.*$/,""):r===s})}return!0}),Di}var rc=nc();const zn=tr(rc);function Ya(n){return sc(n)||oc(n)||Ga(n)||ac()}function ac(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
68
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oc(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function sc(n){if(Array.isArray(n))return In(n)}function Ua(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function Wa(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ua(Object(t),!0).forEach(function(i){Xa(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Ua(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function Xa(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function ti(n,e){return pc(n)||cc(n,e)||Ga(n,e)||lc()}function lc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
69
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ga(n,e){if(n){if(typeof n=="string")return In(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return In(n,e)}}function In(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}function cc(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var i=[],r=!0,a=!1,o,s;try{for(t=t.call(n);!(r=(o=t.next()).done)&&(i.push(o.value),!(e&&i.length===e));r=!0);}catch(l){a=!0,s=l}finally{try{!r&&t.return!=null&&t.return()}finally{if(a)throw s}}return i}}function pc(n){if(Array.isArray(n))return n}var uc=typeof zn=="function"?zn:zn.default,dc="file-invalid-type",fc="file-too-large",mc="file-too-small",hc="too-many-files",vc=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=e.split(","),i=t.length>1?"one of ".concat(t.join(", ")):t[0];return{code:dc,message:"File type must be ".concat(i)}},Ka=function(e){return{code:fc,message:"File is larger than ".concat(e," ").concat(e===1?"byte":"bytes")}},Ja=function(e){return{code:mc,message:"File is smaller than ".concat(e," ").concat(e===1?"byte":"bytes")}},xc={code:hc,message:"Too many files"};function Qa(n,e){var t=n.type==="application/x-moz-file"||uc(n,e);return[t,t?null:vc(e)]}function eo(n,e,t){if(yt(n.size))if(yt(e)&&yt(t)){if(n.size>t)return[!1,Ka(t)];if(n.size<e)return[!1,Ja(e)]}else{if(yt(e)&&n.size<e)return[!1,Ja(e)];if(yt(t)&&n.size>t)return[!1,Ka(t)]}return[!0,null]}function yt(n){return n!=null}function gc(n){var e=n.files,t=n.accept,i=n.minSize,r=n.maxSize,a=n.multiple,o=n.maxFiles,s=n.validator;return!a&&e.length>1||a&&o>=1&&e.length>o?!1:e.every(function(l){var c=Qa(l,t),p=ti(c,1),d=p[0],m=eo(l,i,r),h=ti(m,1),_=h[0],f=s?s(l):null;return d&&_&&!f})}function Ni(n){return typeof n.isPropagationStopped=="function"?n.isPropagationStopped():typeof n.cancelBubble<"u"?n.cancelBubble:!1}function Ri(n){return n.dataTransfer?Array.prototype.some.call(n.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!n.target&&!!n.target.files}function to(n){n.preventDefault()}function _c(n){return n.indexOf("MSIE")!==-1||n.indexOf("Trident/")!==-1}function yc(n){return n.indexOf("Edge/")!==-1}function bc(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return _c(n)||yc(n)}function We(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return function(i){for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];return e.some(function(s){return!Ni(i)&&s&&s.apply(void 0,[i].concat(a)),Ni(i)})}}function wc(){return"showOpenFilePicker"in window}function Tc(n){if(yt(n)){var e=Object.entries(n).filter(function(t){var i=ti(t,2),r=i[0],a=i[1],o=!0;return io(r)||(console.warn('Skipped "'.concat(r,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),(!Array.isArray(a)||!a.every(no))&&(console.warn('Skipped "'.concat(r,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(t,i){var r=ti(i,2),a=r[0],o=r[1];return Wa(Wa({},t),{},Xa({},a,o))},{});return[{description:"Files",accept:e}]}return n}function jc(n){if(yt(n))return Object.entries(n).reduce(function(e,t){var i=ti(t,2),r=i[0],a=i[1];return[].concat(Ya(e),[r],Ya(a))},[]).filter(function(e){return io(e)||no(e)}).join(",")}function kc(n){return n instanceof DOMException&&(n.name==="AbortError"||n.code===n.ABORT_ERR)}function Oc(n){return n instanceof DOMException&&(n.name==="SecurityError"||n.code===n.SECURITY_ERR)}function io(n){return n==="audio/*"||n==="video/*"||n==="image/*"||n==="text/*"||n==="application/*"||/\w+\/[-+.\w]+/g.test(n)}function no(n){return/^.*\.[\w]+$/.test(n)}var Sc=["children"],Cc=["open"],qc=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Ec=["refKey","onChange","onClick"];function Pc(n){return Nc(n)||Dc(n)||ro(n)||Ac()}function Ac(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
70
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dc(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function Nc(n){if(Array.isArray(n))return Zn(n)}function Ln(n,e){return Fc(n)||Mc(n,e)||ro(n,e)||Rc()}function Rc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
71
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ro(n,e){if(n){if(typeof n=="string")return Zn(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Zn(n,e)}}function Zn(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}function Mc(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var i=[],r=!0,a=!1,o,s;try{for(t=t.call(n);!(r=(o=t.next()).done)&&(i.push(o.value),!(e&&i.length===e));r=!0);}catch(l){a=!0,s=l}finally{try{!r&&t.return!=null&&t.return()}finally{if(a)throw s}}return i}}function Fc(n){if(Array.isArray(n))return n}function ao(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function ue(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ao(Object(t),!0).forEach(function(i){Bn(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ao(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function Bn(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Mi(n,e){if(n==null)return{};var t=zc(n,e),i,r;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);for(r=0;r<a.length;r++)i=a[r],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function zc(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,a;for(a=0;a<i.length;a++)r=i[a],!(e.indexOf(r)>=0)&&(t[r]=n[r]);return t}var $n=A.forwardRef(function(n,e){var t=n.children,i=Mi(n,Sc),r=so(i),a=r.open,o=Mi(r,Cc);return A.useImperativeHandle(e,function(){return{open:a}},[a]),A.createElement(A.Fragment,null,t(ue(ue({},o),{},{open:a})))});$n.displayName="Dropzone";var oo={disabled:!1,getFilesFromEvent:Wl,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};$n.defaultProps=oo,$n.propTypes={children:ae.func,accept:ae.objectOf(ae.arrayOf(ae.string)),multiple:ae.bool,preventDropOnDocument:ae.bool,noClick:ae.bool,noKeyboard:ae.bool,noDrag:ae.bool,noDragEventsBubbling:ae.bool,minSize:ae.number,maxSize:ae.number,maxFiles:ae.number,disabled:ae.bool,getFilesFromEvent:ae.func,onFileDialogCancel:ae.func,onFileDialogOpen:ae.func,useFsAccessApi:ae.bool,autoFocus:ae.bool,onDragEnter:ae.func,onDragLeave:ae.func,onDragOver:ae.func,onDrop:ae.func,onDropAccepted:ae.func,onDropRejected:ae.func,onError:ae.func,validator:ae.func};var Hn={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function so(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=ue(ue({},oo),n),t=e.accept,i=e.disabled,r=e.getFilesFromEvent,a=e.maxSize,o=e.minSize,s=e.multiple,l=e.maxFiles,c=e.onDragEnter,p=e.onDragLeave,d=e.onDragOver,m=e.onDrop,h=e.onDropAccepted,_=e.onDropRejected,f=e.onFileDialogCancel,x=e.onFileDialogOpen,y=e.useFsAccessApi,b=e.autoFocus,w=e.preventDropOnDocument,T=e.noClick,g=e.noKeyboard,k=e.noDrag,S=e.noDragEventsBubbling,C=e.onError,O=e.validator,Z=A.useMemo(function(){return jc(t)},[t]),H=A.useMemo(function(){return Tc(t)},[t]),U=A.useMemo(function(){return typeof x=="function"?x:lo},[x]),V=A.useMemo(function(){return typeof f=="function"?f:lo},[f]),L=A.useRef(null),Y=A.useRef(null),X=A.useReducer(Ic,Hn),K=Ln(X,2),oe=K[0],ee=K[1],v=oe.isFocused,j=oe.isFileDialogActive,P=A.useRef(typeof window<"u"&&window.isSecureContext&&y&&wc()),F=function(){!P.current&&j&&setTimeout(function(){if(Y.current){var B=Y.current.files;B.length||(ee({type:"closeDialog"}),V())}},300)};A.useEffect(function(){return window.addEventListener("focus",F,!1),function(){window.removeEventListener("focus",F,!1)}},[Y,j,V,P]);var N=A.useRef([]),q=function(B){L.current&&L.current.contains(B.target)||(B.preventDefault(),N.current=[])};A.useEffect(function(){return w&&(document.addEventListener("dragover",to,!1),document.addEventListener("drop",q,!1)),function(){w&&(document.removeEventListener("dragover",to),document.removeEventListener("drop",q))}},[L,w]),A.useEffect(function(){return!i&&b&&L.current&&L.current.focus(),function(){}},[L,b,i]);var R=A.useCallback(function(D){C?C(D):console.error(D)},[C]),I=A.useCallback(function(D){D.preventDefault(),D.persist(),zi(D),N.current=[].concat(Pc(N.current),[D.target]),Ri(D)&&Promise.resolve(r(D)).then(function(B){if(!(Ni(D)&&!S)){var xe=B.length,be=xe>0&&gc({files:B,accept:Z,minSize:o,maxSize:a,multiple:s,maxFiles:l,validator:O}),Ie=xe>0&&!be;ee({isDragAccept:be,isDragReject:Ie,isDragActive:!0,type:"setDraggedFiles"}),c&&c(D)}}).catch(function(B){return R(B)})},[r,c,R,S,Z,o,a,s,l,O]),z=A.useCallback(function(D){D.preventDefault(),D.persist(),zi(D);var B=Ri(D);if(B&&D.dataTransfer)try{D.dataTransfer.dropEffect="copy"}catch{}return B&&d&&d(D),!1},[d,S]),G=A.useCallback(function(D){D.preventDefault(),D.persist(),zi(D);var B=N.current.filter(function(be){return L.current&&L.current.contains(be)}),xe=B.indexOf(D.target);xe!==-1&&B.splice(xe,1),N.current=B,!(B.length>0)&&(ee({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Ri(D)&&p&&p(D))},[L,p,S]),W=A.useCallback(function(D,B){var xe=[],be=[];D.forEach(function(Ie){var ni=Qa(Ie,Z),Mt=Ln(ni,2),Yn=Mt[0],Un=Mt[1],Wn=eo(Ie,o,a),Ii=Ln(Wn,2),Xn=Ii[0],Gn=Ii[1],Kn=O?O(Ie):null;if(Yn&&Xn&&!Kn)xe.push(Ie);else{var Jn=[Un,Gn];Kn&&(Jn=Jn.concat(Kn)),be.push({file:Ie,errors:Jn.filter(function($c){return $c})})}}),(!s&&xe.length>1||s&&l>=1&&xe.length>l)&&(xe.forEach(function(Ie){be.push({file:Ie,errors:[xc]})}),xe.splice(0)),ee({acceptedFiles:xe,fileRejections:be,isDragReject:be.length>0,type:"setFiles"}),m&&m(xe,be,B),be.length>0&&_&&_(be,B),xe.length>0&&h&&h(xe,B)},[ee,s,Z,o,a,l,m,h,_,O]),me=A.useCallback(function(D){D.preventDefault(),D.persist(),zi(D),N.current=[],Ri(D)&&Promise.resolve(r(D)).then(function(B){Ni(D)&&!S||W(B,D)}).catch(function(B){return R(B)}),ee({type:"reset"})},[r,W,R,S]),E=A.useCallback(function(){if(P.current){ee({type:"openDialog"}),U();var D={multiple:s,types:H};window.showOpenFilePicker(D).then(function(B){return r(B)}).then(function(B){W(B,null),ee({type:"closeDialog"})}).catch(function(B){kc(B)?(V(B),ee({type:"closeDialog"})):Oc(B)?(P.current=!1,Y.current?(Y.current.value=null,Y.current.click()):R(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):R(B)});return}Y.current&&(ee({type:"openDialog"}),U(),Y.current.value=null,Y.current.click())},[ee,U,V,y,W,R,H,s]),ze=A.useCallback(function(D){!L.current||!L.current.isEqualNode(D.target)||(D.key===" "||D.key==="Enter"||D.keyCode===32||D.keyCode===13)&&(D.preventDefault(),E())},[L,E]),bt=A.useCallback(function(){ee({type:"focus"})},[]),ii=A.useCallback(function(){ee({type:"blur"})},[]),po=A.useCallback(function(){T||(bc()?setTimeout(E,0):E())},[T,E]),Rt=function(B){return i?null:B},Vn=function(B){return g?null:Rt(B)},Fi=function(B){return k?null:Rt(B)},zi=function(B){S&&B.stopPropagation()},Lc=A.useMemo(function(){return function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=D.refKey,xe=B===void 0?"ref":B,be=D.role,Ie=D.onKeyDown,ni=D.onFocus,Mt=D.onBlur,Yn=D.onClick,Un=D.onDragEnter,Wn=D.onDragOver,Ii=D.onDragLeave,Xn=D.onDrop,Gn=Mi(D,qc);return ue(ue(Bn({onKeyDown:Vn(We(Ie,ze)),onFocus:Vn(We(ni,bt)),onBlur:Vn(We(Mt,ii)),onClick:Rt(We(Yn,po)),onDragEnter:Fi(We(Un,I)),onDragOver:Fi(We(Wn,z)),onDragLeave:Fi(We(Ii,G)),onDrop:Fi(We(Xn,me)),role:typeof be=="string"&&be!==""?be:"presentation"},xe,L),!i&&!g?{tabIndex:0}:{}),Gn)}},[L,ze,bt,ii,po,I,z,G,me,g,k,i]),Zc=A.useCallback(function(D){D.stopPropagation()},[]),Bc=A.useMemo(function(){return function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=D.refKey,xe=B===void 0?"ref":B,be=D.onChange,Ie=D.onClick,ni=Mi(D,Ec),Mt=Bn({accept:Z,multiple:s,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:Rt(We(be,me)),onClick:Rt(We(Ie,Zc)),tabIndex:-1},xe,Y);return ue(ue({},Mt),ni)}},[Y,t,s,me,i]);return ue(ue({},oe),{},{isFocused:v&&!i,getRootProps:Lc,getInputProps:Bc,rootRef:L,inputRef:Y,open:Rt(E)})}function Ic(n,e){switch(e.type){case"focus":return ue(ue({},n),{},{isFocused:!0});case"blur":return ue(ue({},n),{},{isFocused:!1});case"openDialog":return ue(ue({},Hn),{},{isFileDialogActive:!0});case"closeDialog":return ue(ue({},n),{},{isFileDialogActive:!1});case"setDraggedFiles":return ue(ue({},n),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return ue(ue({},n),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:e.isDragReject});case"reset":return ue({},Hn);default:return n}}function lo(){}const co=A.forwardRef(({onFilesAccepted:n,onFilesRejected:e,className:t,title:i="Archivos adjuntos",subtitle:r="Arrastra y suelta el archivo aquí o haz clic para cargarlo desde tu computadora",acceptedFormats:a=".PNG, .JPG, .TXT o .PDF. Máx 100 BM.",variant:o="default",disabled:s=!1,showIcon:l=!0,accept:c,maxFiles:p=1,...d},m)=>{const h=A.useCallback((T,g)=>{T.length>0&&n?.(T),g.length>0&&e?.(g)},[n,e]),{getRootProps:_,getInputProps:f,isDragActive:x,isDragReject:y,fileRejections:b}=so({onDrop:h,accept:c,maxFiles:p,disabled:s,...d}),w=b.length>0;return u.jsxs("div",{className:M("w-full",t),children:[o==="default"&&u.jsx("h3",{className:"text-lg font-medium text-foreground mb-4",children:i}),u.jsxs("div",{ref:m,..._(),className:M("relative w-full rounded-lg border-[3px] border-blue-500 border-dashed transition-all duration-200","flex flex-col items-center justify-center text-center",o==="default"?"p-8 min-h-[200px]":"p-6 min-h-[120px]",!x&&!w&&!s&&["border-muted-foreground/25 bg-background/50","hover:border-primary/50 hover:bg-primary/5"],x&&!y&&["border-primary bg-primary/10","ring-2 ring-primary/20"],(y||w)&&["border-destructive bg-destructive/10","ring-2 ring-destructive/20"],s&&["cursor-not-allowed opacity-60","border-muted-foreground/20 bg-muted/30"]),children:[u.jsx("input",{...f()}),l&&u.jsx("div",{className:"mb-4",children:w||y?u.jsx(ge.Error,{size:24,className:" text-destructive"}):u.jsx(ge.Upload,{size:24,className:M("w-12 h-12 transition-colors",x?"text-primary":"text-muted-foreground")})}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("p",{className:M("text-base font-medium text-neutral-default-default",w||y?"text-destructive":x?"text-primary ":"text-foreground"),children:x&&!y?"Suelta los archivos aquí...":y||w?"Archivo no válido":r}),!w&&u.jsx("p",{className:"text-sm text-muted-foreground",children:a})]}),w&&u.jsx("div",{className:"mt-4 space-y-1",children:b.map(({file:T,errors:g})=>u.jsxs("div",{className:"text-sm text-destructive",children:[u.jsx("p",{className:"font-medium",children:T.name}),g.map(k=>u.jsx("p",{className:"text-xs",children:k.message},k.code))]},T.name))})]})]})});co.displayName="DropZone",$.Avatar=ar,$.Badge=ql,$.Button=bo,$.CardProfile=oi,$.ChangueAccount=lr,$.CheckboxFormik=wo,$.CompanyLogo=Rl,$.DropZone=co,$.Header=jo,$.Icons=ge,$.Input=Uo,$.InputFormik=Wo,$.LayoutGeneric=ts,$.Logo=Xo,$.Menu=Go,$.NavBarActions=El,$.NavbarCollapseButton=Nl,$.NavbarLinks=Pl,$.NavigationLink=kl,$.Pagination=Ko,$.ProfileSection=Cl,$.ProgressBar=Jo,$.SecondaryBar=gl,$.Select=es,$.Sidebar=Tl,$.SidebarProvider=is,$.Spinner=Li,$.useActionsNavbar=Al,$.useClickOutside=Ml,$.useNavbarCollapse=Dl,$.useSidebarState=jl,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})}));
|