@ukpc-lib/react 0.0.8 → 0.0.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.
@@ -1,4 +1,4 @@
1
- "use strict";const g=require("../index-927d1a5d.cjs");/**
1
+ "use strict";const p=require("../index-47f64f27.cjs");/**
2
2
  * @remix-run/router v1.14.2
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
@@ -7,7 +7,7 @@
7
7
  * LICENSE.md file in the root directory of this source tree.
8
8
  *
9
9
  * @license MIT
10
- */function Jt(){return Jt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Jt.apply(this,arguments)}var wt;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(wt||(wt={}));const ms="popstate";function ea(t){t===void 0&&(t={});function e(s,r){let{pathname:o,search:i,hash:a}=s.location;return gn("",{pathname:o,search:i,hash:a},r.state&&r.state.usr||null,r.state&&r.state.key||"default")}function n(s,r){return typeof r=="string"?r:be(r)}return sa(e,n,null,t)}function K(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function na(){return Math.random().toString(36).substr(2,8)}function gs(t,e){return{usr:t.state,key:t.key,idx:e}}function gn(t,e,n,s){return n===void 0&&(n=null),Jt({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Le(e):e,{state:n,key:e&&e.key||s||na()})}function be(t){let{pathname:e="/",search:n="",hash:s=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),s&&s!=="#"&&(e+=s.charAt(0)==="#"?s:"#"+s),e}function Le(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let s=t.indexOf("?");s>=0&&(e.search=t.substr(s),t=t.substr(0,s)),t&&(e.pathname=t)}return e}function sa(t,e,n,s){s===void 0&&(s={});let{window:r=document.defaultView,v5Compat:o=!1}=s,i=r.history,a=wt.Pop,l=null,c=f();c==null&&(c=0,i.replaceState(Jt({},i.state,{idx:c}),""));function f(){return(i.state||{idx:null}).idx}function u(){a=wt.Pop;let y=f(),w=y==null?null:y-c;c=y,l&&l({action:a,location:m.location,delta:w})}function h(y,w){a=wt.Push;let b=gn(m.location,y,w);n&&n(b,y),c=f()+1;let x=gs(b,c),E=m.createHref(b);try{i.pushState(x,"",E)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;r.location.assign(E)}o&&l&&l({action:a,location:m.location,delta:1})}function d(y,w){a=wt.Replace;let b=gn(m.location,y,w);n&&n(b,y),c=f();let x=gs(b,c),E=m.createHref(b);i.replaceState(x,"",E),o&&l&&l({action:a,location:m.location,delta:0})}function p(y){let w=r.location.origin!=="null"?r.location.origin:r.location.href,b=typeof y=="string"?y:be(y);return K(w,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,w)}let m={get action(){return a},get location(){return t(r,i)},listen(y){if(l)throw new Error("A history only accepts one active listener");return r.addEventListener(ms,u),l=y,()=>{r.removeEventListener(ms,u),l=null}},createHref(y){return e(r,y)},createURL:p,encodeLocation(y){let w=p(y);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:h,replace:d,go(y){return i.go(y)}};return m}var ys;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(ys||(ys={}));function Wr(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,s=t.charAt(n);return s&&s!=="/"?null:t.slice(n)||"/"}function ra(t,e){e===void 0&&(e="/");let{pathname:n,search:s="",hash:r=""}=typeof t=="string"?Le(t):t;return{pathname:n?n.startsWith("/")?n:ia(n,e):e,search:aa(s),hash:la(r)}}function ia(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function Ye(t,e,n,s){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function oa(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function zr(t,e){let n=oa(t);return e?n.map((s,r)=>r===t.length-1?s.pathname:s.pathnameBase):n.map(s=>s.pathnameBase)}function Hr(t,e,n,s){s===void 0&&(s=!1);let r;typeof t=="string"?r=Le(t):(r=Jt({},t),K(!r.pathname||!r.pathname.includes("?"),Ye("?","pathname","search",r)),K(!r.pathname||!r.pathname.includes("#"),Ye("#","pathname","hash",r)),K(!r.search||!r.search.includes("#"),Ye("#","search","hash",r)));let o=t===""||r.pathname==="",i=o?"/":r.pathname,a;if(i==null)a=n;else{let u=e.length-1;if(!s&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),u-=1;r.pathname=h.join("/")}a=u>=0?e[u]:"/"}let l=ra(r,a),c=i&&i!=="/"&&i.endsWith("/"),f=(o||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const $r=t=>t.join("/").replace(/\/\/+/g,"/"),aa=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,la=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,qr=["post","put","patch","delete"];new Set(qr);const ca=["get",...qr];new Set(ca);/**
10
+ */function ae(){return ae=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ae.apply(this,arguments)}var Vt;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Vt||(Vt={}));const Or="popstate";function Sa(t){t===void 0&&(t={});function e(r,s){let{pathname:o,search:i,hash:a}=r.location;return Mn("",{pathname:o,search:i,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Me(s)}return Pa(e,n,null,t)}function Q(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Ta(){return Math.random().toString(36).substr(2,8)}function Vr(t,e){return{usr:t.state,key:t.key,idx:e}}function Mn(t,e,n,r){return n===void 0&&(n=null),ae({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?$e(e):e,{state:n,key:e&&e.key||r||Ta()})}function Me(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function $e(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function Pa(t,e,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:o=!1}=r,i=s.history,a=Vt.Pop,l=null,u=f();u==null&&(u=0,i.replaceState(ae({},i.state,{idx:u}),""));function f(){return(i.state||{idx:null}).idx}function c(){a=Vt.Pop;let y=f(),b=y==null?null:y-u;u=y,l&&l({action:a,location:g.location,delta:b})}function h(y,b){a=Vt.Push;let w=Mn(g.location,y,b);n&&n(w,y),u=f()+1;let v=Vr(w,u),E=g.createHref(w);try{i.pushState(v,"",E)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;s.location.assign(E)}o&&l&&l({action:a,location:g.location,delta:1})}function d(y,b){a=Vt.Replace;let w=Mn(g.location,y,b);n&&n(w,y),u=f();let v=Vr(w,u),E=g.createHref(w);i.replaceState(v,"",E),o&&l&&l({action:a,location:g.location,delta:0})}function m(y){let b=s.location.origin!=="null"?s.location.origin:s.location.href,w=typeof y=="string"?y:Me(y);return Q(b,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,b)}let g={get action(){return a},get location(){return t(s,i)},listen(y){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(Or,c),l=y,()=>{s.removeEventListener(Or,c),l=null}},createHref(y){return e(s,y)},createURL:m,encodeLocation(y){let b=m(y);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:h,replace:d,go(y){return i.go(y)}};return g}var Mr;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Mr||(Mr={}));function li(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function Aa(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:s=""}=typeof t=="string"?$e(t):t;return{pathname:n?n.startsWith("/")?n:Ca(n,e):e,search:Oa(r),hash:Va(s)}}function Ca(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function un(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Ra(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function ci(t,e){let n=Ra(t);return e?n.map((r,s)=>s===t.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ui(t,e,n,r){r===void 0&&(r=!1);let s;typeof t=="string"?s=$e(t):(s=ae({},t),Q(!s.pathname||!s.pathname.includes("?"),un("?","pathname","search",s)),Q(!s.pathname||!s.pathname.includes("#"),un("#","pathname","hash",s)),Q(!s.search||!s.search.includes("#"),un("#","search","hash",s)));let o=t===""||s.pathname==="",i=o?"/":s.pathname,a;if(i==null)a=n;else{let c=e.length-1;if(!r&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),c-=1;s.pathname=h.join("/")}a=c>=0?e[c]:"/"}let l=Aa(s,a),u=i&&i!=="/"&&i.endsWith("/"),f=(o||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const fi=t=>t.join("/").replace(/\/\/+/g,"/"),Oa=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Va=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,hi=["post","put","patch","delete"];new Set(hi);const Ma=["get",...hi];new Set(Ma);/**
11
11
  * React Router v6.21.3
12
12
  *
13
13
  * Copyright (c) Remix Software Inc.
@@ -16,7 +16,7 @@
16
16
  * LICENSE.md file in the root directory of this source tree.
17
17
  *
18
18
  * @license MIT
19
- */function we(){return we=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},we.apply(this,arguments)}const Gr=g.reactExports.createContext(null),Nt=g.reactExports.createContext(null),_n=g.reactExports.createContext(null),De=g.reactExports.createContext({outlet:null,matches:[],isDataRoute:!1});function ua(t,e){let{relative:n}=e===void 0?{}:e;je()||K(!1);let{basename:s,navigator:r}=g.reactExports.useContext(Nt),{hash:o,pathname:i,search:a}=Xr(t,{relative:n}),l=i;return s!=="/"&&(l=i==="/"?s:$r([s,i])),r.createHref({pathname:l,search:a,hash:o})}function je(){return g.reactExports.useContext(_n)!=null}function _e(){return je()||K(!1),g.reactExports.useContext(_n).location}function Kr(t){g.reactExports.useContext(Nt).static||g.reactExports.useLayoutEffect(t)}function fa(){let{isDataRoute:t}=g.reactExports.useContext(De);return t?ga():ha()}function ha(){je()||K(!1);let t=g.reactExports.useContext(Gr),{basename:e,future:n,navigator:s}=g.reactExports.useContext(Nt),{matches:r}=g.reactExports.useContext(De),{pathname:o}=_e(),i=JSON.stringify(zr(r,n.v7_relativeSplatPath)),a=g.reactExports.useRef(!1);return Kr(()=>{a.current=!0}),g.reactExports.useCallback(function(c,f){if(f===void 0&&(f={}),!a.current)return;if(typeof c=="number"){s.go(c);return}let u=Hr(c,JSON.parse(i),o,f.relative==="path");t==null&&e!=="/"&&(u.pathname=u.pathname==="/"?e:$r([e,u.pathname])),(f.replace?s.replace:s.push)(u,f.state,f)},[e,s,i,o,t])}function Xr(t,e){let{relative:n}=e===void 0?{}:e,{future:s}=g.reactExports.useContext(Nt),{matches:r}=g.reactExports.useContext(De),{pathname:o}=_e(),i=JSON.stringify(zr(r,s.v7_relativeSplatPath));return g.reactExports.useMemo(()=>Hr(t,JSON.parse(i),o,n==="path"),[t,i,o,n])}var Yr=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Yr||{}),Jr=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Jr||{});function da(t){let e=g.reactExports.useContext(Gr);return e||K(!1),e}function pa(t){let e=g.reactExports.useContext(De);return e||K(!1),e}function ma(t){let e=pa(),n=e.matches[e.matches.length-1];return n.route.id||K(!1),n.route.id}function ga(){let{router:t}=da(Yr.UseNavigateStable),e=ma(Jr.UseNavigateStable),n=g.reactExports.useRef(!1);return Kr(()=>{n.current=!0}),g.reactExports.useCallback(function(r,o){o===void 0&&(o={}),n.current&&(typeof r=="number"?t.navigate(r):t.navigate(r,we({fromRouteId:e},o)))},[t,e])}function ya(t){let{basename:e="/",children:n=null,location:s,navigationType:r=wt.Pop,navigator:o,static:i=!1,future:a}=t;je()&&K(!1);let l=e.replace(/^\/*/,"/"),c=g.reactExports.useMemo(()=>({basename:l,navigator:o,static:i,future:we({v7_relativeSplatPath:!1},a)}),[l,a,o,i]);typeof s=="string"&&(s=Le(s));let{pathname:f="/",search:u="",hash:h="",state:d=null,key:p="default"}=s,m=g.reactExports.useMemo(()=>{let y=Wr(f,l);return y==null?null:{location:{pathname:y,search:u,hash:h,state:d,key:p},navigationType:r}},[l,f,u,h,d,p,r]);return m==null?null:g.reactExports.createElement(Nt.Provider,{value:c},g.reactExports.createElement(_n.Provider,{children:n,value:m}))}new Promise(()=>{});/**
19
+ */function je(){return je=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},je.apply(this,arguments)}const di=p.reactExports.createContext(null),Kt=p.reactExports.createContext(null),Zn=p.reactExports.createContext(null),qe=p.reactExports.createContext({outlet:null,matches:[],isDataRoute:!1});function ja(t,e){let{relative:n}=e===void 0?{}:e;Ge()||Q(!1);let{basename:r,navigator:s}=p.reactExports.useContext(Kt),{hash:o,pathname:i,search:a}=mi(t,{relative:n}),l=i;return r!=="/"&&(l=i==="/"?r:fi([r,i])),s.createHref({pathname:l,search:a,hash:o})}function Ge(){return p.reactExports.useContext(Zn)!=null}function Xe(){return Ge()||Q(!1),p.reactExports.useContext(Zn).location}function pi(t){p.reactExports.useContext(Kt).static||p.reactExports.useLayoutEffect(t)}function La(){let{isDataRoute:t}=p.reactExports.useContext(qe);return t?Ba():ka()}function ka(){Ge()||Q(!1);let t=p.reactExports.useContext(di),{basename:e,future:n,navigator:r}=p.reactExports.useContext(Kt),{matches:s}=p.reactExports.useContext(qe),{pathname:o}=Xe(),i=JSON.stringify(ci(s,n.v7_relativeSplatPath)),a=p.reactExports.useRef(!1);return pi(()=>{a.current=!0}),p.reactExports.useCallback(function(u,f){if(f===void 0&&(f={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let c=ui(u,JSON.parse(i),o,f.relative==="path");t==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:fi([e,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[e,r,i,o,t])}function mi(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=p.reactExports.useContext(Kt),{matches:s}=p.reactExports.useContext(qe),{pathname:o}=Xe(),i=JSON.stringify(ci(s,r.v7_relativeSplatPath));return p.reactExports.useMemo(()=>ui(t,JSON.parse(i),o,n==="path"),[t,i,o,n])}var gi=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(gi||{}),yi=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(yi||{});function Da(t){let e=p.reactExports.useContext(di);return e||Q(!1),e}function _a(t){let e=p.reactExports.useContext(qe);return e||Q(!1),e}function Na(t){let e=_a(),n=e.matches[e.matches.length-1];return n.route.id||Q(!1),n.route.id}function Ba(){let{router:t}=Da(gi.UseNavigateStable),e=Na(yi.UseNavigateStable),n=p.reactExports.useRef(!1);return pi(()=>{n.current=!0}),p.reactExports.useCallback(function(s,o){o===void 0&&(o={}),n.current&&(typeof s=="number"?t.navigate(s):t.navigate(s,je({fromRouteId:e},o)))},[t,e])}function Fa(t){let{basename:e="/",children:n=null,location:r,navigationType:s=Vt.Pop,navigator:o,static:i=!1,future:a}=t;Ge()&&Q(!1);let l=e.replace(/^\/*/,"/"),u=p.reactExports.useMemo(()=>({basename:l,navigator:o,static:i,future:je({v7_relativeSplatPath:!1},a)}),[l,a,o,i]);typeof r=="string"&&(r=$e(r));let{pathname:f="/",search:c="",hash:h="",state:d=null,key:m="default"}=r,g=p.reactExports.useMemo(()=>{let y=li(f,l);return y==null?null:{location:{pathname:y,search:c,hash:h,state:d,key:m},navigationType:s}},[l,f,c,h,d,m,s]);return g==null?null:p.reactExports.createElement(Kt.Provider,{value:u},p.reactExports.createElement(Zn.Provider,{children:n,value:g}))}new Promise(()=>{});/**
20
20
  * React Router DOM v6.21.3
21
21
  *
22
22
  * Copyright (c) Remix Software Inc.
@@ -25,10 +25,14 @@
25
25
  * LICENSE.md file in the root directory of this source tree.
26
26
  *
27
27
  * @license MIT
28
- */function yn(){return yn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},yn.apply(this,arguments)}function va(t,e){if(t==null)return{};var n={},s=Object.keys(t),r,o;for(o=0;o<s.length;o++)r=s[o],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}function xa(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function ba(t,e){return t.button===0&&(!e||e==="_self")&&!xa(t)}const wa=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Ea="startTransition",vs=g.React[Ea];function Sa(t){let{basename:e,children:n,future:s,window:r}=t,o=g.reactExports.useRef();o.current==null&&(o.current=ea({window:r,v5Compat:!0}));let i=o.current,[a,l]=g.reactExports.useState({action:i.action,location:i.location}),{v7_startTransition:c}=s||{},f=g.reactExports.useCallback(u=>{c&&vs?vs(()=>l(u)):l(u)},[l,c]);return g.reactExports.useLayoutEffect(()=>i.listen(f),[i,f]),g.reactExports.createElement(ya,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:i,future:s})}const Ta=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Pa=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Aa=g.reactExports.forwardRef(function(e,n){let{onClick:s,relative:r,reloadDocument:o,replace:i,state:a,target:l,to:c,preventScrollReset:f,unstable_viewTransition:u}=e,h=va(e,wa),{basename:d}=g.reactExports.useContext(Nt),p,m=!1;if(typeof c=="string"&&Pa.test(c)&&(p=c,Ta))try{let x=new URL(window.location.href),E=c.startsWith("//")?new URL(x.protocol+c):new URL(c),S=Wr(E.pathname,d);E.origin===x.origin&&S!=null?c=S+E.search+E.hash:m=!0}catch{}let y=ua(c,{relative:r}),w=Ca(c,{replace:i,state:a,target:l,preventScrollReset:f,relative:r,unstable_viewTransition:u});function b(x){s&&s(x),x.defaultPrevented||w(x)}return g.reactExports.createElement("a",yn({},h,{href:p||y,onClick:m||o?s:b,ref:n,target:l}))});var xs;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(xs||(xs={}));var bs;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(bs||(bs={}));function Ca(t,e){let{target:n,replace:s,state:r,preventScrollReset:o,relative:i,unstable_viewTransition:a}=e===void 0?{}:e,l=fa(),c=_e(),f=Xr(t,{relative:i});return g.reactExports.useCallback(u=>{if(ba(u,n)){u.preventDefault();let h=s!==void 0?s:be(c)===be(f);l(t,{replace:h,state:r,preventScrollReset:o,relative:i,unstable_viewTransition:a})}},[c,l,f,s,r,n,t,o,i,a])}var Ra=typeof global=="object"&&global&&global.Object===Object&&global;const Oa=Ra;var Va=typeof self=="object"&&self&&self.Object===Object&&self,Ma=Oa||Va||Function("return this")();const Zr=Ma;var ka=Zr.Symbol;const Ee=ka;var Qr=Object.prototype,La=Qr.hasOwnProperty,Da=Qr.toString,Wt=Ee?Ee.toStringTag:void 0;function ja(t){var e=La.call(t,Wt),n=t[Wt];try{t[Wt]=void 0;var s=!0}catch{}var r=Da.call(t);return s&&(e?t[Wt]=n:delete t[Wt]),r}var _a=Object.prototype,Na=_a.toString;function Ba(t){return Na.call(t)}var Fa="[object Null]",Ia="[object Undefined]",ws=Ee?Ee.toStringTag:void 0;function Ua(t){return t==null?t===void 0?Ia:Fa:ws&&ws in Object(t)?ja(t):Ba(t)}function Wa(t){return t!=null&&typeof t=="object"}var za="[object Symbol]";function Ha(t){return typeof t=="symbol"||Wa(t)&&Ua(t)==za}var $a=/\s/;function qa(t){for(var e=t.length;e--&&$a.test(t.charAt(e)););return e}var Ga=/^\s+/;function Ka(t){return t&&t.slice(0,qa(t)+1).replace(Ga,"")}function Se(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Es=0/0,Xa=/^[-+]0x[0-9a-f]+$/i,Ya=/^0b[01]+$/i,Ja=/^0o[0-7]+$/i,Za=parseInt;function Ss(t){if(typeof t=="number")return t;if(Ha(t))return Es;if(Se(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Se(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Ka(t);var n=Ya.test(t);return n||Ja.test(t)?Za(t.slice(2),n?2:8):Xa.test(t)?Es:+t}var Qa=function(){return Zr.Date.now()};const Je=Qa;var tl="Expected a function",el=Math.max,nl=Math.min;function pe(t,e,n){var s,r,o,i,a,l,c=0,f=!1,u=!1,h=!0;if(typeof t!="function")throw new TypeError(tl);e=Ss(e)||0,Se(n)&&(f=!!n.leading,u="maxWait"in n,o=u?el(Ss(n.maxWait)||0,e):o,h="trailing"in n?!!n.trailing:h);function d(T){var C=s,A=r;return s=r=void 0,c=T,i=t.apply(A,C),i}function p(T){return c=T,a=setTimeout(w,e),f?d(T):i}function m(T){var C=T-l,A=T-c,O=e-C;return u?nl(O,o-A):O}function y(T){var C=T-l,A=T-c;return l===void 0||C>=e||C<0||u&&A>=o}function w(){var T=Je();if(y(T))return b(T);a=setTimeout(w,m(T))}function b(T){return a=void 0,h&&s?d(T):(s=r=void 0,i)}function x(){a!==void 0&&clearTimeout(a),c=0,s=l=r=a=void 0}function E(){return a===void 0?i:b(Je())}function S(){var T=Je(),C=y(T);if(s=arguments,r=this,l=T,C){if(a===void 0)return p(l);if(u)return clearTimeout(a),a=setTimeout(w,e),d(l)}return a===void 0&&(a=setTimeout(w,e)),i}return S.cancel=x,S.flush=E,S}var sl="Expected a function";function rl(t,e,n){var s=!0,r=!0;if(typeof t!="function")throw new TypeError(sl);return Se(n)&&(s="leading"in n?!!n.leading:s,r="trailing"in n?!!n.trailing:r),pe(t,e,{leading:s,maxWait:e,trailing:r})}var il=!!(typeof window<"u"&&window.document&&window.document.createElement),ol=il;const ti=g.getDefaultExportFromCjs(ol);var Ot=function(){return Ot=Object.assign||function(e){for(var n,s=1,r=arguments.length;s<r;s++){n=arguments[s];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ot.apply(this,arguments)},Rt=null,Ts=null;ti&&window.addEventListener("resize",function(){Ts!==window.devicePixelRatio&&(Ts=window.devicePixelRatio,Rt=null)});function Ps(){if(Rt===null){if(typeof document>"u")return Rt=0,Rt;var t=document.body,e=document.createElement("div");e.classList.add("simplebar-hide-scrollbar"),t.appendChild(e);var n=e.getBoundingClientRect().right;t.removeChild(e),Rt=n}return Rt}function ei(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function ni(t){return!t||!t.ownerDocument?document:t.ownerDocument}var si=function(t){var e={},n=Array.prototype.reduce.call(t,function(s,r){var o=r.name.match(/data-simplebar-(.+)/);if(o){var i=o[1].replace(/\W+(.)/g,function(a,l){return l.toUpperCase()});switch(r.value){case"true":s[i]=!0;break;case"false":s[i]=!1;break;case void 0:s[i]=!0;break;default:s[i]=r.value}}return s},e);return n};function ri(t,e){var n;t&&(n=t.classList).add.apply(n,e.split(" "))}function ii(t,e){t&&e.split(" ").forEach(function(n){t.classList.remove(n)})}function oi(t){return".".concat(t.split(" ").join("."))}var al=Object.freeze({__proto__:null,getElementWindow:ei,getElementDocument:ni,getOptions:si,addClasses:ri,removeClasses:ii,classNamesToQuery:oi}),ot=ei,Ze=ni,ll=si,at=ri,lt=ii,I=oi,ce=function(){function t(e,n){n===void 0&&(n={});var s=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var r=ot(s.el);s.scrollXTicking||(r.requestAnimationFrame(s.scrollX),s.scrollXTicking=!0),s.scrollYTicking||(r.requestAnimationFrame(s.scrollY),s.scrollYTicking=!0),s.isScrolling||(s.isScrolling=!0,at(s.el,s.classNames.scrolling)),s.showScrollbar("x"),s.showScrollbar("y"),s.onStopScrolling()},this.scrollX=function(){s.axis.x.isOverflowing&&s.positionScrollbar("x"),s.scrollXTicking=!1},this.scrollY=function(){s.axis.y.isOverflowing&&s.positionScrollbar("y"),s.scrollYTicking=!1},this._onStopScrolling=function(){lt(s.el,s.classNames.scrolling),s.options.autoHide&&(s.hideScrollbar("x"),s.hideScrollbar("y")),s.isScrolling=!1},this.onMouseEnter=function(){s.isMouseEntering||(at(s.el,s.classNames.mouseEntered),s.showScrollbar("x"),s.showScrollbar("y"),s.isMouseEntering=!0),s.onMouseEntered()},this._onMouseEntered=function(){lt(s.el,s.classNames.mouseEntered),s.options.autoHide&&(s.hideScrollbar("x"),s.hideScrollbar("y")),s.isMouseEntering=!1},this._onMouseMove=function(r){s.mouseX=r.clientX,s.mouseY=r.clientY,(s.axis.x.isOverflowing||s.axis.x.forceVisible)&&s.onMouseMoveForAxis("x"),(s.axis.y.isOverflowing||s.axis.y.forceVisible)&&s.onMouseMoveForAxis("y")},this.onMouseLeave=function(){s.onMouseMove.cancel(),(s.axis.x.isOverflowing||s.axis.x.forceVisible)&&s.onMouseLeaveForAxis("x"),(s.axis.y.isOverflowing||s.axis.y.forceVisible)&&s.onMouseLeaveForAxis("y"),s.mouseX=-1,s.mouseY=-1},this._onWindowResize=function(){s.scrollbarWidth=s.getScrollbarWidth(),s.hideNativeScrollbar()},this.onPointerEvent=function(r){if(!(!s.axis.x.track.el||!s.axis.y.track.el||!s.axis.x.scrollbar.el||!s.axis.y.scrollbar.el)){var o,i;s.axis.x.track.rect=s.axis.x.track.el.getBoundingClientRect(),s.axis.y.track.rect=s.axis.y.track.el.getBoundingClientRect(),(s.axis.x.isOverflowing||s.axis.x.forceVisible)&&(o=s.isWithinBounds(s.axis.x.track.rect)),(s.axis.y.isOverflowing||s.axis.y.forceVisible)&&(i=s.isWithinBounds(s.axis.y.track.rect)),(o||i)&&(r.stopPropagation(),r.type==="pointerdown"&&r.pointerType!=="touch"&&(o&&(s.axis.x.scrollbar.rect=s.axis.x.scrollbar.el.getBoundingClientRect(),s.isWithinBounds(s.axis.x.scrollbar.rect)?s.onDragStart(r,"x"):s.onTrackClick(r,"x")),i&&(s.axis.y.scrollbar.rect=s.axis.y.scrollbar.el.getBoundingClientRect(),s.isWithinBounds(s.axis.y.scrollbar.rect)?s.onDragStart(r,"y"):s.onTrackClick(r,"y"))))}},this.drag=function(r){var o,i,a,l,c,f,u,h,d,p,m;if(!(!s.draggedAxis||!s.contentWrapperEl)){var y,w=s.axis[s.draggedAxis].track,b=(i=(o=w.rect)===null||o===void 0?void 0:o[s.axis[s.draggedAxis].sizeAttr])!==null&&i!==void 0?i:0,x=s.axis[s.draggedAxis].scrollbar,E=(l=(a=s.contentWrapperEl)===null||a===void 0?void 0:a[s.axis[s.draggedAxis].scrollSizeAttr])!==null&&l!==void 0?l:0,S=parseInt((f=(c=s.elStyles)===null||c===void 0?void 0:c[s.axis[s.draggedAxis].sizeAttr])!==null&&f!==void 0?f:"0px",10);r.preventDefault(),r.stopPropagation(),s.draggedAxis==="y"?y=r.pageY:y=r.pageX;var T=y-((h=(u=w.rect)===null||u===void 0?void 0:u[s.axis[s.draggedAxis].offsetAttr])!==null&&h!==void 0?h:0)-s.axis[s.draggedAxis].dragOffset;T=s.draggedAxis==="x"&&s.isRtl?((p=(d=w.rect)===null||d===void 0?void 0:d[s.axis[s.draggedAxis].sizeAttr])!==null&&p!==void 0?p:0)-x.size-T:T;var C=T/(b-x.size),A=C*(E-S);s.draggedAxis==="x"&&s.isRtl&&(A=!((m=t.getRtlHelpers())===null||m===void 0)&&m.isScrollingToNegative?-A:A),s.contentWrapperEl[s.axis[s.draggedAxis].scrollOffsetAttr]=A}},this.onEndDrag=function(r){var o=Ze(s.el),i=ot(s.el);r.preventDefault(),r.stopPropagation(),lt(s.el,s.classNames.dragging),o.removeEventListener("mousemove",s.drag,!0),o.removeEventListener("mouseup",s.onEndDrag,!0),s.removePreventClickId=i.setTimeout(function(){o.removeEventListener("click",s.preventClick,!0),o.removeEventListener("dblclick",s.preventClick,!0),s.removePreventClickId=null})},this.preventClick=function(r){r.preventDefault(),r.stopPropagation()},this.el=e,this.options=Ot(Ot({},t.defaultOptions),n),this.classNames=Ot(Ot({},t.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=rl(this._onMouseMove,64),this.onWindowResize=pe(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=pe(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=pe(this._onMouseEntered,this.stopScrollDelay),this.init()}return t.getRtlHelpers=function(){if(t.rtlHelpers)return t.rtlHelpers;var e=document.createElement("div");e.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=e.firstElementChild,s=n==null?void 0:n.firstElementChild;if(!s)return null;document.body.appendChild(n),n.scrollLeft=0;var r=t.getOffset(n),o=t.getOffset(s);n.scrollLeft=-999;var i=t.getOffset(s);return document.body.removeChild(n),t.rtlHelpers={isScrollOriginAtZero:r.left!==o.left,isScrollingToNegative:o.left!==i.left},t.rtlHelpers},t.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Ps()}catch{return Ps()}},t.getOffset=function(e){var n=e.getBoundingClientRect(),s=Ze(e),r=ot(e);return{top:n.top+(r.pageYOffset||s.documentElement.scrollTop),left:n.left+(r.pageXOffset||s.documentElement.scrollLeft)}},t.prototype.init=function(){ti&&(this.initDOM(),this.rtlHelpers=t.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.prototype.initDOM=function(){var e,n;this.wrapperEl=this.el.querySelector(I(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(I(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(I(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(I(this.classNames.offset)),this.maskEl=this.el.querySelector(I(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,I(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(I(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(I(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(I(this.classNames.track)).concat(I(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(I(this.classNames.track)).concat(I(this.classNames.vertical))),this.axis.x.scrollbar.el=((e=this.axis.x.track.el)===null||e===void 0?void 0:e.querySelector(I(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(I(this.classNames.scrollbar)))||null,this.options.autoHide||(at(this.axis.x.scrollbar.el,this.classNames.visible),at(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var e=this,n,s=ot(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),s.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var r=!1,o=s.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){r&&s.requestAnimationFrame(function(){e.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),s.requestAnimationFrame(function(){r=!0})}this.mutationObserver=new s.MutationObserver(function(){s.requestAnimationFrame(function(){e.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},t.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var e=ot(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,s=this.heightAutoObserverEl.offsetHeight<=1,r=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,i=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var l=this.contentEl.scrollHeight,c=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=s?"auto":"100%",this.placeholderEl.style.width=r?"".concat(n||c,"px"):"auto",this.placeholderEl.style.height="".concat(l,"px");var f=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&c>n,this.axis.y.isOverflowing=l>f,this.axis.x.isOverflowing=i==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=a==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var u=this.axis.x.isOverflowing?this.scrollbarWidth:0,h=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&c>o-h,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>f-u,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},t.prototype.getScrollbarSize=function(e){var n,s;if(e===void 0&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var r=this.contentEl[this.axis[e].scrollSizeAttr],o=(s=(n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])!==null&&s!==void 0?s:0,i=o/r,a;return a=Math.max(~~(i*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(a=Math.min(a,this.options.scrollbarMaxSize)),a},t.prototype.positionScrollbar=function(e){var n,s,r;e===void 0&&(e="y");var o=this.axis[e].scrollbar;if(!(!this.axis[e].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var i=this.contentWrapperEl[this.axis[e].scrollSizeAttr],a=((n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])||0,l=parseInt(this.elStyles[this.axis[e].sizeAttr],10),c=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];c=e==="x"&&this.isRtl&&(!((s=t.getRtlHelpers())===null||s===void 0)&&s.isScrollOriginAtZero)?-c:c,e==="x"&&this.isRtl&&(c=!((r=t.getRtlHelpers())===null||r===void 0)&&r.isScrollingToNegative?c:-c);var f=c/(i-l),u=~~((a-o.size)*f);u=e==="x"&&this.isRtl?-u+(a-o.size):u,o.el.style.transform=e==="x"?"translate3d(".concat(u,"px, 0, 0)"):"translate3d(0, ".concat(u,"px, 0)")}},t.prototype.toggleTrackVisibility=function(e){e===void 0&&(e="y");var n=this.axis[e].track.el,s=this.axis[e].scrollbar.el;!n||!s||!this.contentWrapperEl||(this.axis[e].isOverflowing||this.axis[e].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?s.style.display="block":s.style.display="none")},t.prototype.showScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(at(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},t.prototype.hideScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(lt(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},t.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},t.prototype.onMouseMoveForAxis=function(e){e===void 0&&(e="y");var n=this.axis[e];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(e),at(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?at(n.scrollbar.el,this.classNames.hover):lt(n.scrollbar.el,this.classNames.hover)):(lt(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},t.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),lt(this.axis[e].track.el,this.classNames.hover),lt(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},t.prototype.onDragStart=function(e,n){var s;n===void 0&&(n="y");var r=Ze(this.el),o=ot(this.el),i=this.axis[n].scrollbar,a=n==="y"?e.pageY:e.pageX;this.axis[n].dragOffset=a-(((s=i.rect)===null||s===void 0?void 0:s[this.axis[n].offsetAttr])||0),this.draggedAxis=n,at(this.el,this.classNames.dragging),r.addEventListener("mousemove",this.drag,!0),r.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(r.addEventListener("click",this.preventClick,!0),r.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(e,n){var s=this,r,o,i,a;n===void 0&&(n="y");var l=this.axis[n];if(!(!this.options.clickOnTrack||!l.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var c=ot(this.el);this.axis[n].scrollbar.rect=l.scrollbar.el.getBoundingClientRect();var f=this.axis[n].scrollbar,u=(o=(r=f.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,h=parseInt((a=(i=this.elStyles)===null||i===void 0?void 0:i[this.axis[n].sizeAttr])!==null&&a!==void 0?a:"0px",10),d=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],p=n==="y"?this.mouseY-u:this.mouseX-u,m=p<0?-1:1,y=m===-1?d-h:d+h,w=40,b=function(){s.contentWrapperEl&&(m===-1?d>y&&(d-=w,s.contentWrapperEl[s.axis[n].scrollOffsetAttr]=d,c.requestAnimationFrame(b)):d<y&&(d+=w,s.contentWrapperEl[s.axis[n].scrollOffsetAttr]=d,c.requestAnimationFrame(b)))};b()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var e=ot(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},t.prototype.unMount=function(){this.removeListeners()},t.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.prototype.findChild=function(e,n){var s=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(r){return s.call(r,n)})[0]},t.rtlHelpers=null,t.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},t.getOptions=ll,t.helpers=al,t}(),W=function(){return W=Object.assign||function(e){for(var n,s=1,r=arguments.length;s<r;s++){n=arguments[s];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},W.apply(this,arguments)};function cl(t,e){var n={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r<s.length;r++)e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(t,s[r])&&(n[s[r]]=t[s[r]]);return n}var ai=g.reactExports.forwardRef(function(t,e){var n=t.children,s=t.scrollableNodeProps,r=s===void 0?{}:s,o=cl(t,["children","scrollableNodeProps"]),i=g.reactExports.useRef(),a=g.reactExports.useRef(),l=g.reactExports.useRef(),c={},f={};Object.keys(o).forEach(function(d){Object.prototype.hasOwnProperty.call(ce.defaultOptions,d)?c[d]=o[d]:f[d]=o[d]});var u=W(W({},ce.defaultOptions.classNames),c.classNames),h=W(W({},r),{className:"".concat(u.contentWrapper).concat(r.className?" ".concat(r.className):""),tabIndex:0,role:"region","aria-label":c.ariaLabel||ce.defaultOptions.ariaLabel});return g.reactExports.useEffect(function(){var d;return a.current=h.ref?h.ref.current:a.current,i.current&&(d=new ce(i.current,W(W(W({},c),a.current&&{scrollableNode:a.current}),l.current&&{contentNode:l.current})),typeof e=="function"?e(d):e&&(e.current=d)),function(){d==null||d.unMount(),d=null,typeof e=="function"&&e(null)}},[]),g.reactExports.createElement("div",W({"data-simplebar":"init",ref:i},f),g.reactExports.createElement("div",{className:u.wrapper},g.reactExports.createElement("div",{className:u.heightAutoObserverWrapperEl},g.reactExports.createElement("div",{className:u.heightAutoObserverEl})),g.reactExports.createElement("div",{className:u.mask},g.reactExports.createElement("div",{className:u.offset},typeof n=="function"?n({scrollableNodeRef:a,scrollableNodeProps:W(W({},h),{ref:a}),contentNodeRef:l,contentNodeProps:{className:u.contentEl,ref:l}}):g.reactExports.createElement("div",W({},h),g.reactExports.createElement("div",{className:u.contentEl},n)))),g.reactExports.createElement("div",{className:u.placeholder})),g.reactExports.createElement("div",{className:"".concat(u.track," simplebar-horizontal")},g.reactExports.createElement("div",{className:u.scrollbar})),g.reactExports.createElement("div",{className:"".concat(u.track," simplebar-vertical")},g.reactExports.createElement("div",{className:u.scrollbar})))});ai.displayName="SimpleBar";const li=g.reactExports.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Ne=g.reactExports.createContext({}),Nn=g.reactExports.createContext(null),Be=typeof document<"u",ul=Be?g.reactExports.useLayoutEffect:g.reactExports.useEffect,ci=g.reactExports.createContext({strict:!1}),Bn=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),fl="framerAppearId",ui="data-"+Bn(fl);function hl(t,e,n,s){const{visualElement:r}=g.reactExports.useContext(Ne),o=g.reactExports.useContext(ci),i=g.reactExports.useContext(Nn),a=g.reactExports.useContext(li).reducedMotion,l=g.reactExports.useRef();s=s||o.renderer,!l.current&&s&&(l.current=s(t,{visualState:e,parent:r,props:n,presenceContext:i,blockInitialAnimation:i?i.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;g.reactExports.useInsertionEffect(()=>{c&&c.update(n,i)});const f=g.reactExports.useRef(!!(n[ui]&&!window.HandoffComplete));return ul(()=>{c&&(c.render(),f.current&&c.animationState&&c.animationState.animateChanges())}),g.reactExports.useEffect(()=>{c&&(c.updateFeatures(),!f.current&&c.animationState&&c.animationState.animateChanges(),f.current&&(f.current=!1,window.HandoffComplete=!0))}),c}function Vt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function dl(t,e,n){return g.reactExports.useCallback(s=>{s&&t.mount&&t.mount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):Vt(n)&&(n.current=s))},[e])}function Zt(t){return typeof t=="string"||Array.isArray(t)}function Fe(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Fn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],In=["initial",...Fn];function Ie(t){return Fe(t.animate)||In.some(e=>Zt(t[e]))}function fi(t){return!!(Ie(t)||t.variants)}function pl(t,e){if(Ie(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Zt(n)?n:void 0,animate:Zt(s)?s:void 0}}return t.inherit!==!1?e:{}}function ml(t){const{initial:e,animate:n}=pl(t,g.reactExports.useContext(Ne));return g.reactExports.useMemo(()=>({initial:e,animate:n}),[As(e),As(n)])}function As(t){return Array.isArray(t)?t.join(" "):t}const Cs={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Qt={};for(const t in Cs)Qt[t]={isEnabled:e=>Cs[t].some(n=>!!e[n])};function gl(t){for(const e in t)Qt[e]={...Qt[e],...t[e]}}const hi=g.reactExports.createContext({}),di=g.reactExports.createContext({}),yl=Symbol.for("motionComponentSymbol");function vl({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:r}){t&&gl(t);function o(a,l){let c;const f={...g.reactExports.useContext(li),...a,layoutId:xl(a)},{isStatic:u}=f,h=ml(a),d=s(a,u);if(!u&&Be){h.visualElement=hl(r,d,f,e);const p=g.reactExports.useContext(di),m=g.reactExports.useContext(ci).strict;h.visualElement&&(c=h.visualElement.loadFeatures(f,m,t,p))}return g.reactExports.createElement(Ne.Provider,{value:h},c&&h.visualElement?g.reactExports.createElement(c,{visualElement:h.visualElement,...f}):null,n(r,a,dl(d,h.visualElement,l),d,u,h.visualElement))}const i=g.reactExports.forwardRef(o);return i[yl]=r,i}function xl({layoutId:t}){const e=g.reactExports.useContext(hi).id;return e&&t!==void 0?e+"-"+t:t}function bl(t){function e(s,r={}){return vl(t(s,r))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(s,r)=>(n.has(r)||n.set(r,e(r)),n.get(r))})}const wl=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Un(t){return typeof t!="string"||t.includes("-")?!1:!!(wl.indexOf(t)>-1||/[A-Z]/.test(t))}const Te={};function El(t){Object.assign(Te,t)}const ne=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],St=new Set(ne);function pi(t,{layout:e,layoutId:n}){return St.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Te[t]||t==="opacity")}const U=t=>!!(t&&t.getVelocity),Sl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Tl=ne.length;function Pl(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},s,r){let o="";for(let i=0;i<Tl;i++){const a=ne[i];if(t[a]!==void 0){const l=Sl[a]||a;o+=`${l}(${t[a]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),r?o=r(t,s?"":o):n&&s&&(o="none"),o}const mi=t=>e=>typeof e=="string"&&e.startsWith(t),gi=mi("--"),vn=mi("var(--"),Al=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Cl=(t,e)=>e&&typeof t=="number"?e.transform(t):t,pt=(t,e,n)=>Math.min(Math.max(n,t),e),Tt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Gt={...Tt,transform:t=>pt(0,1,t)},ue={...Tt,default:1},Kt=t=>Math.round(t*1e5)/1e5,Ue=/(-)?([\d]*\.?[\d])+/g,yi=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Rl=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function se(t){return typeof t=="string"}const re=t=>({test:e=>se(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),ut=re("deg"),Y=re("%"),P=re("px"),Ol=re("vh"),Vl=re("vw"),Rs={...Y,parse:t=>Y.parse(t)/100,transform:t=>Y.transform(t*100)},Os={...Tt,transform:Math.round},vi={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,radius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,size:P,top:P,right:P,bottom:P,left:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,rotate:ut,rotateX:ut,rotateY:ut,rotateZ:ut,scale:ue,scaleX:ue,scaleY:ue,scaleZ:ue,skew:ut,skewX:ut,skewY:ut,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:Gt,originX:Rs,originY:Rs,originZ:P,zIndex:Os,fillOpacity:Gt,strokeOpacity:Gt,numOctaves:Os};function Wn(t,e,n,s){const{style:r,vars:o,transform:i,transformOrigin:a}=t;let l=!1,c=!1,f=!0;for(const u in e){const h=e[u];if(gi(u)){o[u]=h;continue}const d=vi[u],p=Cl(h,d);if(St.has(u)){if(l=!0,i[u]=p,!f)continue;h!==(d.default||0)&&(f=!1)}else u.startsWith("origin")?(c=!0,a[u]=p):r[u]=p}if(e.transform||(l||s?r.transform=Pl(t.transform,n,f,s):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:h="50%",originZ:d=0}=a;r.transformOrigin=`${u} ${h} ${d}`}}const zn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function xi(t,e,n){for(const s in e)!U(e[s])&&!pi(s,n)&&(t[s]=e[s])}function Ml({transformTemplate:t},e,n){return g.reactExports.useMemo(()=>{const s=zn();return Wn(s,e,{enableHardwareAcceleration:!n},t),Object.assign({},s.vars,s.style)},[e])}function kl(t,e,n){const s=t.style||{},r={};return xi(r,s,t),Object.assign(r,Ml(t,e,n)),t.transformValues?t.transformValues(r):r}function Ll(t,e,n){const s={},r=kl(t,e,n);return t.drag&&t.dragListener!==!1&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=r,s}const Dl=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Pe(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Dl.has(t)}let bi=t=>!Pe(t);function jl(t){t&&(bi=e=>e.startsWith("on")?!Pe(e):t(e))}try{jl(require("@emotion/is-prop-valid").default)}catch{}function _l(t,e,n){const s={};for(const r in t)r==="values"&&typeof t.values=="object"||(bi(r)||n===!0&&Pe(r)||!e&&!Pe(r)||t.draggable&&r.startsWith("onDrag"))&&(s[r]=t[r]);return s}function Vs(t,e,n){return typeof t=="string"?t:P.transform(e+n*t)}function Nl(t,e,n){const s=Vs(e,t.x,t.width),r=Vs(n,t.y,t.height);return`${s} ${r}`}const Bl={offset:"stroke-dashoffset",array:"stroke-dasharray"},Fl={offset:"strokeDashoffset",array:"strokeDasharray"};function Il(t,e,n=1,s=0,r=!0){t.pathLength=1;const o=r?Bl:Fl;t[o.offset]=P.transform(-s);const i=P.transform(e),a=P.transform(n);t[o.array]=`${i} ${a}`}function Hn(t,{attrX:e,attrY:n,attrScale:s,originX:r,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:l=0,...c},f,u,h){if(Wn(t,c,f,h),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:p,dimensions:m}=t;d.transform&&(m&&(p.transform=d.transform),delete d.transform),m&&(r!==void 0||o!==void 0||p.transform)&&(p.transformOrigin=Nl(m,r!==void 0?r:.5,o!==void 0?o:.5)),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),s!==void 0&&(d.scale=s),i!==void 0&&Il(d,i,a,l,!1)}const wi=()=>({...zn(),attrs:{}}),$n=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Ul(t,e,n,s){const r=g.reactExports.useMemo(()=>{const o=wi();return Hn(o,e,{enableHardwareAcceleration:!1},$n(s),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};xi(o,t.style,t),r.style={...o,...r.style}}return r}function Wl(t=!1){return(n,s,r,{latestValues:o},i)=>{const l=(Un(n)?Ul:Ll)(s,o,i,n),f={..._l(s,typeof n=="string",t),...l,ref:r},{children:u}=s,h=g.reactExports.useMemo(()=>U(u)?u.get():u,[u]);return g.reactExports.createElement(n,{...f,children:h})}}function Ei(t,{style:e,vars:n},s,r){Object.assign(t.style,e,r&&r.getProjectionStyles(s));for(const o in n)t.style.setProperty(o,n[o])}const Si=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ti(t,e,n,s){Ei(t,e,void 0,s);for(const r in e.attrs)t.setAttribute(Si.has(r)?r:Bn(r),e.attrs[r])}function qn(t,e){const{style:n}=t,s={};for(const r in n)(U(n[r])||e.style&&U(e.style[r])||pi(r,t))&&(s[r]=n[r]);return s}function Pi(t,e){const n=qn(t,e);for(const s in t)if(U(t[s])||U(e[s])){const r=ne.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;n[r]=t[s]}return n}function Gn(t,e,n,s={},r={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,s,r)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,s,r)),e}function zl(t){const e=g.reactExports.useRef(null);return e.current===null&&(e.current=t()),e.current}const Ae=t=>Array.isArray(t),Hl=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),$l=t=>Ae(t)?t[t.length-1]||0:t;function me(t){const e=U(t)?t.get():t;return Hl(e)?e.toValue():e}function ql({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},s,r,o){const i={latestValues:Gl(s,r,o,t),renderState:e()};return n&&(i.mount=a=>n(s,a,i)),i}const Ai=t=>(e,n)=>{const s=g.reactExports.useContext(Ne),r=g.reactExports.useContext(Nn),o=()=>ql(t,e,s,r);return n?o():zl(o)};function Gl(t,e,n,s){const r={},o=s(t,{});for(const h in o)r[h]=me(o[h]);let{initial:i,animate:a}=t;const l=Ie(t),c=fi(t);e&&c&&!l&&t.inherit!==!1&&(i===void 0&&(i=e.initial),a===void 0&&(a=e.animate));let f=n?n.initial===!1:!1;f=f||i===!1;const u=f?a:i;return u&&typeof u!="boolean"&&!Fe(u)&&(Array.isArray(u)?u:[u]).forEach(d=>{const p=Gn(t,d);if(!p)return;const{transitionEnd:m,transition:y,...w}=p;for(const b in w){let x=w[b];if(Array.isArray(x)){const E=f?x.length-1:0;x=x[E]}x!==null&&(r[b]=x)}for(const b in m)r[b]=m[b]}),r}const L=t=>t;class Ms{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function Kl(t){let e=new Ms,n=new Ms,s=0,r=!1,o=!1;const i=new WeakSet,a={schedule:(l,c=!1,f=!1)=>{const u=f&&r,h=u?e:n;return c&&i.add(l),h.add(l)&&u&&r&&(s=e.order.length),l},cancel:l=>{n.remove(l),i.delete(l)},process:l=>{if(r){o=!0;return}if(r=!0,[e,n]=[n,e],n.clear(),s=e.order.length,s)for(let c=0;c<s;c++){const f=e.order[c];f(l),i.has(f)&&(a.schedule(f),t())}r=!1,o&&(o=!1,a.process(l))}};return a}const fe=["prepare","read","update","preRender","render","postRender"],Xl=40;function Yl(t,e){let n=!1,s=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=fe.reduce((u,h)=>(u[h]=Kl(()=>n=!0),u),{}),i=u=>o[u].process(r),a=()=>{const u=performance.now();n=!1,r.delta=s?1e3/60:Math.max(Math.min(u-r.timestamp,Xl),1),r.timestamp=u,r.isProcessing=!0,fe.forEach(i),r.isProcessing=!1,n&&e&&(s=!1,t(a))},l=()=>{n=!0,s=!0,r.isProcessing||t(a)};return{schedule:fe.reduce((u,h)=>{const d=o[h];return u[h]=(p,m=!1,y=!1)=>(n||l(),d.schedule(p,m,y)),u},{}),cancel:u=>fe.forEach(h=>o[h].cancel(u)),state:r,steps:o}}const{schedule:V,cancel:rt,state:N,steps:Qe}=Yl(typeof requestAnimationFrame<"u"?requestAnimationFrame:L,!0),Jl={useVisualState:Ai({scrapeMotionValuesFromProps:Pi,createRenderState:wi,onMount:(t,e,{renderState:n,latestValues:s})=>{V.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),V.render(()=>{Hn(n,s,{enableHardwareAcceleration:!1},$n(e.tagName),t.transformTemplate),Ti(e,n)})}})},Zl={useVisualState:Ai({scrapeMotionValuesFromProps:qn,createRenderState:zn})};function Ql(t,{forwardMotionProps:e=!1},n,s){return{...Un(t)?Jl:Zl,preloadedFeatures:n,useRender:Wl(e),createVisualElement:s,Component:t}}function tt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const Ci=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function We(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const tc=t=>e=>Ci(e)&&t(e,We(e));function et(t,e,n,s){return tt(t,e,tc(n),s)}const ec=(t,e)=>n=>e(t(n)),ht=(...t)=>t.reduce(ec);function Ri(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const ks=Ri("dragHorizontal"),Ls=Ri("dragVertical");function Oi(t){let e=!1;if(t==="y")e=Ls();else if(t==="x")e=ks();else{const n=ks(),s=Ls();n&&s?e=()=>{n(),s()}:(n&&n(),s&&s())}return e}function Vi(){const t=Oi(!0);return t?(t(),!1):!0}class gt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Ds(t,e){const n="pointer"+(e?"enter":"leave"),s="onHover"+(e?"Start":"End"),r=(o,i)=>{if(o.pointerType==="touch"||Vi())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[s]&&V.update(()=>a[s](o,i))};return et(t.current,n,r,{passive:!t.getProps()[s]})}class nc extends gt{mount(){this.unmount=ht(Ds(this.node,!0),Ds(this.node,!1))}unmount(){}}class sc extends gt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ht(tt(this.node.current,"focus",()=>this.onFocus()),tt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Mi=(t,e)=>e?t===e?!0:Mi(t,e.parentElement):!1;function tn(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,We(n))}class rc extends gt{constructor(){super(...arguments),this.removeStartListeners=L,this.removeEndListeners=L,this.removeAccessibleListeners=L,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const s=this.node.getProps(),o=et(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:f,globalTapTarget:u}=this.node.getProps();V.update(()=>{!u&&!Mi(this.node.current,a.target)?f&&f(a,l):c&&c(a,l)})},{passive:!(s.onTap||s.onPointerUp)}),i=et(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(s.onTapCancel||s.onPointerCancel)});this.removeEndListeners=ht(o,i),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const i=a=>{a.key!=="Enter"||!this.checkPressEnd()||tn("up",(l,c)=>{const{onTap:f}=this.node.getProps();f&&V.update(()=>f(l,c))})};this.removeEndListeners(),this.removeEndListeners=tt(this.node.current,"keyup",i),tn("down",(a,l)=>{this.startPress(a,l)})},n=tt(this.node.current,"keydown",e),s=()=>{this.isPressing&&tn("cancel",(o,i)=>this.cancelPress(o,i))},r=tt(this.node.current,"blur",s);this.removeAccessibleListeners=ht(n,r)}}startPress(e,n){this.isPressing=!0;const{onTapStart:s,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),s&&V.update(()=>s(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Vi()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:s}=this.node.getProps();s&&V.update(()=>s(e,n))}mount(){const e=this.node.getProps(),n=et(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),s=tt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ht(n,s)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const xn=new WeakMap,en=new WeakMap,ic=t=>{const e=xn.get(t.target);e&&e(t)},oc=t=>{t.forEach(ic)};function ac({root:t,...e}){const n=t||document;en.has(n)||en.set(n,{});const s=en.get(n),r=JSON.stringify(e);return s[r]||(s[r]=new IntersectionObserver(oc,{root:t,...e})),s[r]}function lc(t,e,n){const s=ac(e);return xn.set(t,n),s.observe(t),()=>{xn.delete(t),s.unobserve(t)}}const cc={some:0,all:1};class uc extends gt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:o}=e,i={root:n?n.current:void 0,rootMargin:s,threshold:typeof r=="number"?r:cc[r]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:f,onViewportLeave:u}=this.node.getProps(),h=c?f:u;h&&h(l)};return lc(this.node.current,i,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(fc(e,n))&&this.startObserver()}unmount(){}}function fc({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const hc={inView:{Feature:uc},tap:{Feature:rc},focus:{Feature:sc},hover:{Feature:nc}};function ki(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}function dc(t){const e={};return t.values.forEach((n,s)=>e[s]=n.get()),e}function pc(t){const e={};return t.values.forEach((n,s)=>e[s]=n.getVelocity()),e}function ze(t,e,n){const s=t.getProps();return Gn(s,e,n!==void 0?n:s.custom,dc(t),pc(t))}let mc=L,Kn=L;const dt=t=>t*1e3,nt=t=>t/1e3,gc={current:!1},Li=t=>Array.isArray(t)&&typeof t[0]=="number";function Di(t){return!!(!t||typeof t=="string"&&ji[t]||Li(t)||Array.isArray(t)&&t.every(Di))}const qt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,ji={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qt([0,.65,.55,1]),circOut:qt([.55,0,1,.45]),backIn:qt([.31,.01,.66,-.59]),backOut:qt([.33,1.53,.69,.99])};function _i(t){if(t)return Li(t)?qt(t):Array.isArray(t)?t.map(_i):ji[t]}function yc(t,e,n,{delay:s=0,duration:r,repeat:o=0,repeatType:i="loop",ease:a,times:l}={}){const c={[e]:n};l&&(c.offset=l);const f=_i(a);return Array.isArray(f)&&(c.easing=f),t.animate(c,{delay:s,duration:r,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:i==="reverse"?"alternate":"normal"})}function vc(t,{repeat:e,repeatType:n="loop"}){const s=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[s]}const Ni=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,xc=1e-7,bc=12;function wc(t,e,n,s,r){let o,i,a=0;do i=e+(n-e)/2,o=Ni(i,s,r)-t,o>0?n=i:e=i;while(Math.abs(o)>xc&&++a<bc);return i}function ie(t,e,n,s){if(t===e&&n===s)return L;const r=o=>wc(o,0,1,t,n);return o=>o===0||o===1?o:Ni(r(o),e,s)}const Ec=ie(.42,0,1,1),Sc=ie(0,0,.58,1),Bi=ie(.42,0,.58,1),Tc=t=>Array.isArray(t)&&typeof t[0]!="number",Fi=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ii=t=>e=>1-t(1-e),Xn=t=>1-Math.sin(Math.acos(t)),Ui=Ii(Xn),Pc=Fi(Xn),Wi=ie(.33,1.53,.69,.99),Yn=Ii(Wi),Ac=Fi(Yn),Cc=t=>(t*=2)<1?.5*Yn(t):.5*(2-Math.pow(2,-10*(t-1))),Rc={linear:L,easeIn:Ec,easeInOut:Bi,easeOut:Sc,circIn:Xn,circInOut:Pc,circOut:Ui,backIn:Yn,backInOut:Ac,backOut:Wi,anticipate:Cc},js=t=>{if(Array.isArray(t)){Kn(t.length===4);const[e,n,s,r]=t;return ie(e,n,s,r)}else if(typeof t=="string")return Rc[t];return t},Jn=(t,e)=>n=>!!(se(n)&&Rl.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),zi=(t,e,n)=>s=>{if(!se(s))return s;const[r,o,i,a]=s.match(Ue);return{[t]:parseFloat(r),[e]:parseFloat(o),[n]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},Oc=t=>pt(0,255,t),nn={...Tt,transform:t=>Math.round(Oc(t))},Et={test:Jn("rgb","red"),parse:zi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+nn.transform(t)+", "+nn.transform(e)+", "+nn.transform(n)+", "+Kt(Gt.transform(s))+")"};function Vc(t){let e="",n="",s="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,s+=s,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}}const bn={test:Jn("#"),parse:Vc,transform:Et.transform},Mt={test:Jn("hsl","hue"),parse:zi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+Y.transform(Kt(e))+", "+Y.transform(Kt(n))+", "+Kt(Gt.transform(s))+")"},F={test:t=>Et.test(t)||bn.test(t)||Mt.test(t),parse:t=>Et.test(t)?Et.parse(t):Mt.test(t)?Mt.parse(t):bn.parse(t),transform:t=>se(t)?t:t.hasOwnProperty("red")?Et.transform(t):Mt.transform(t)},k=(t,e,n)=>-n*t+n*e+t;function sn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Mc({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let r=0,o=0,i=0;if(!e)r=o=i=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;r=sn(l,a,t+1/3),o=sn(l,a,t),i=sn(l,a,t-1/3)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(i*255),alpha:s}}const rn=(t,e,n)=>{const s=t*t;return Math.sqrt(Math.max(0,n*(e*e-s)+s))},kc=[bn,Et,Mt],Lc=t=>kc.find(e=>e.test(t));function _s(t){const e=Lc(t);let n=e.parse(t);return e===Mt&&(n=Mc(n)),n}const Hi=(t,e)=>{const n=_s(t),s=_s(e),r={...n};return o=>(r.red=rn(n.red,s.red,o),r.green=rn(n.green,s.green,o),r.blue=rn(n.blue,s.blue,o),r.alpha=k(n.alpha,s.alpha,o),Et.transform(r))};function Dc(t){var e,n;return isNaN(t)&&se(t)&&(((e=t.match(Ue))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(yi))===null||n===void 0?void 0:n.length)||0)>0}const $i={regex:Al,countKey:"Vars",token:"${v}",parse:L},qi={regex:yi,countKey:"Colors",token:"${c}",parse:F.parse},Gi={regex:Ue,countKey:"Numbers",token:"${n}",parse:Tt.parse};function on(t,{regex:e,countKey:n,token:s,parse:r}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,s),t.values.push(...o.map(r)))}function Ce(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&on(n,$i),on(n,qi),on(n,Gi),n}function Ki(t){return Ce(t).values}function Xi(t){const{values:e,numColors:n,numVars:s,tokenised:r}=Ce(t),o=e.length;return i=>{let a=r;for(let l=0;l<o;l++)l<s?a=a.replace($i.token,i[l]):l<s+n?a=a.replace(qi.token,F.transform(i[l])):a=a.replace(Gi.token,Kt(i[l]));return a}}const jc=t=>typeof t=="number"?0:t;function _c(t){const e=Ki(t);return Xi(t)(e.map(jc))}const mt={test:Dc,parse:Ki,createTransformer:Xi,getAnimatableNone:_c},Yi=(t,e)=>n=>`${n>0?e:t}`;function Ji(t,e){return typeof t=="number"?n=>k(t,e,n):F.test(t)?Hi(t,e):t.startsWith("var(")?Yi(t,e):Qi(t,e)}const Zi=(t,e)=>{const n=[...t],s=n.length,r=t.map((o,i)=>Ji(o,e[i]));return o=>{for(let i=0;i<s;i++)n[i]=r[i](o);return n}},Nc=(t,e)=>{const n={...t,...e},s={};for(const r in n)t[r]!==void 0&&e[r]!==void 0&&(s[r]=Ji(t[r],e[r]));return r=>{for(const o in s)n[o]=s[o](r);return n}},Qi=(t,e)=>{const n=mt.createTransformer(e),s=Ce(t),r=Ce(e);return s.numVars===r.numVars&&s.numColors===r.numColors&&s.numNumbers>=r.numNumbers?ht(Zi(s.values,r.values),n):Yi(t,e)},te=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},Ns=(t,e)=>n=>k(t,e,n);function Bc(t){return typeof t=="number"?Ns:typeof t=="string"?F.test(t)?Hi:Qi:Array.isArray(t)?Zi:typeof t=="object"?Nc:Ns}function Fc(t,e,n){const s=[],r=n||Bc(t[0]),o=t.length-1;for(let i=0;i<o;i++){let a=r(t[i],t[i+1]);if(e){const l=Array.isArray(e)?e[i]||L:e;a=ht(l,a)}s.push(a)}return s}function to(t,e,{clamp:n=!0,ease:s,mixer:r}={}){const o=t.length;if(Kn(o===e.length),o===1)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const i=Fc(e,s,r),a=i.length,l=c=>{let f=0;if(a>1)for(;f<t.length-2&&!(c<t[f+1]);f++);const u=te(t[f],t[f+1],c);return i[f](u)};return n?c=>l(pt(t[0],t[o-1],c)):l}function Ic(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const r=te(0,e,s);t.push(k(n,1,r))}}function Uc(t){const e=[0];return Ic(e,t.length-1),e}function Wc(t,e){return t.map(n=>n*e)}function zc(t,e){return t.map(()=>e||Bi).splice(0,t.length-1)}function Re({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const r=Tc(s)?s.map(js):js(s),o={done:!1,value:e[0]},i=Wc(n&&n.length===e.length?n:Uc(e),t),a=to(i,e,{ease:Array.isArray(r)?r:zc(e,r)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}function eo(t,e){return e?t*(1e3/e):0}const Hc=5;function no(t,e,n){const s=Math.max(e-Hc,0);return eo(n-t(s),e-s)}const an=.001,$c=.01,Bs=10,qc=.05,Gc=1;function Kc({duration:t=800,bounce:e=.25,velocity:n=0,mass:s=1}){let r,o;mc(t<=dt(Bs));let i=1-e;i=pt(qc,Gc,i),t=pt($c,Bs,nt(t)),i<1?(r=c=>{const f=c*i,u=f*t,h=f-n,d=wn(c,i),p=Math.exp(-u);return an-h/d*p},o=c=>{const u=c*i*t,h=u*n+n,d=Math.pow(i,2)*Math.pow(c,2)*t,p=Math.exp(-u),m=wn(Math.pow(c,2),i);return(-r(c)+an>0?-1:1)*((h-d)*p)/m}):(r=c=>{const f=Math.exp(-c*t),u=(c-n)*t+1;return-an+f*u},o=c=>{const f=Math.exp(-c*t),u=(n-c)*(t*t);return f*u});const a=5/t,l=Yc(r,o,a);if(t=dt(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:i*2*Math.sqrt(s*c),duration:t}}}const Xc=12;function Yc(t,e,n){let s=n;for(let r=1;r<Xc;r++)s=s-t(s)/e(s);return s}function wn(t,e){return t*Math.sqrt(1-e*e)}const Jc=["duration","bounce"],Zc=["stiffness","damping","mass"];function Fs(t,e){return e.some(n=>t[n]!==void 0)}function Qc(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Fs(t,Zc)&&Fs(t,Jc)){const n=Kc(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function so({keyframes:t,restDelta:e,restSpeed:n,...s}){const r=t[0],o=t[t.length-1],i={done:!1,value:r},{stiffness:a,damping:l,mass:c,duration:f,velocity:u,isResolvedFromDuration:h}=Qc({...s,velocity:-nt(s.velocity||0)}),d=u||0,p=l/(2*Math.sqrt(a*c)),m=o-r,y=nt(Math.sqrt(a/c)),w=Math.abs(m)<5;n||(n=w?.01:2),e||(e=w?.005:.5);let b;if(p<1){const x=wn(y,p);b=E=>{const S=Math.exp(-p*y*E);return o-S*((d+p*y*m)/x*Math.sin(x*E)+m*Math.cos(x*E))}}else if(p===1)b=x=>o-Math.exp(-y*x)*(m+(d+y*m)*x);else{const x=y*Math.sqrt(p*p-1);b=E=>{const S=Math.exp(-p*y*E),T=Math.min(x*E,300);return o-S*((d+p*y*m)*Math.sinh(T)+x*m*Math.cosh(T))/x}}return{calculatedDuration:h&&f||null,next:x=>{const E=b(x);if(h)i.done=x>=f;else{let S=d;x!==0&&(p<1?S=no(b,x,E):S=0);const T=Math.abs(S)<=n,C=Math.abs(o-E)<=e;i.done=T&&C}return i.value=i.done?o:E,i}}}function Is({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:i,min:a,max:l,restDelta:c=.5,restSpeed:f}){const u=t[0],h={done:!1,value:u},d=A=>a!==void 0&&A<a||l!==void 0&&A>l,p=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let m=n*e;const y=u+m,w=i===void 0?y:i(y);w!==y&&(m=w-u);const b=A=>-m*Math.exp(-A/s),x=A=>w+b(A),E=A=>{const O=b(A),Z=x(A);h.done=Math.abs(O)<=c,h.value=h.done?w:Z};let S,T;const C=A=>{d(h.value)&&(S=A,T=so({keyframes:[h.value,p(h.value)],velocity:no(x,A,h.value),damping:r,stiffness:o,restDelta:c,restSpeed:f}))};return C(0),{calculatedDuration:null,next:A=>{let O=!1;return!T&&S===void 0&&(O=!0,E(A),C(A)),S!==void 0&&A>S?T.next(A-S):(!O&&E(A),h)}}}const tu=t=>{const e=({timestamp:n})=>t(n);return{start:()=>V.update(e,!0),stop:()=>rt(e),now:()=>N.isProcessing?N.timestamp:performance.now()}},Us=2e4;function Ws(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<Us;)e+=n,s=t.next(e);return e>=Us?1/0:e}const eu={decay:Is,inertia:Is,tween:Re,keyframes:Re,spring:so};function Oe({autoplay:t=!0,delay:e=0,driver:n=tu,keyframes:s,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:f,onUpdate:u,...h}){let d=1,p=!1,m,y;const w=()=>{y=new Promise(M=>{m=M})};w();let b;const x=eu[r]||Re;let E;x!==Re&&typeof s[0]!="number"&&(E=to([0,100],s,{clamp:!1}),s=[0,100]);const S=x({...h,keyframes:s});let T;a==="mirror"&&(T=x({...h,keyframes:[...s].reverse(),velocity:-(h.velocity||0)}));let C="idle",A=null,O=null,Z=null;S.calculatedDuration===null&&o&&(S.calculatedDuration=Ws(S));const{calculatedDuration:Pt}=S;let G=1/0,Q=1/0;Pt!==null&&(G=Pt+i,Q=G*(o+1)-i);let B=0;const At=M=>{if(O===null)return;d>0&&(O=Math.min(O,M)),d<0&&(O=Math.min(M-Q/d,O)),A!==null?B=A:B=Math.round(M-O)*d;const It=B-e*(d>=0?1:-1),fs=d>=0?It<0:It>Q;B=Math.max(It,0),C==="finished"&&A===null&&(B=Q);let hs=B,ds=S;if(o){const Xe=Math.min(B,Q)/G;let le=Math.floor(Xe),yt=Xe%1;!yt&&Xe>=1&&(yt=1),yt===1&&le--,le=Math.min(le,o+1),!!(le%2)&&(a==="reverse"?(yt=1-yt,i&&(yt-=i/G)):a==="mirror"&&(ds=T)),hs=pt(0,1,yt)*G}const Ut=fs?{done:!1,value:s[0]}:ds.next(hs);E&&(Ut.value=E(Ut.value));let{done:ps}=Ut;!fs&&Pt!==null&&(ps=d>=0?B>=Q:B<=0);const ta=A===null&&(C==="finished"||C==="running"&&ps);return u&&u(Ut.value),ta&&Ft(),Ut},_=()=>{b&&b.stop(),b=void 0},it=()=>{C="idle",_(),m(),w(),O=Z=null},Ft=()=>{C="finished",f&&f(),_(),m()},Ct=()=>{if(p)return;b||(b=n(At));const M=b.now();l&&l(),A!==null?O=M-A:(!O||C==="finished")&&(O=M),C==="finished"&&w(),Z=O,A=null,C="running",b.start()};t&&Ct();const us={then(M,It){return y.then(M,It)},get time(){return nt(B)},set time(M){M=dt(M),B=M,A!==null||!b||d===0?A=M:O=b.now()-M/d},get duration(){const M=S.calculatedDuration===null?Ws(S):S.calculatedDuration;return nt(M)},get speed(){return d},set speed(M){M===d||!b||(d=M,us.time=nt(B))},get state(){return C},play:Ct,pause:()=>{C="paused",A=B},stop:()=>{p=!0,C!=="idle"&&(C="idle",c&&c(),it())},cancel:()=>{Z!==null&&At(Z),it()},complete:()=>{C="finished"},sample:M=>(O=0,At(M))};return us}function nu(t){let e;return()=>(e===void 0&&(e=t()),e)}const su=nu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ru=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),he=10,iu=2e4,ou=(t,e)=>e.type==="spring"||t==="backgroundColor"||!Di(e.ease);function au(t,e,{onUpdate:n,onComplete:s,...r}){if(!(su()&&ru.has(e)&&!r.repeatDelay&&r.repeatType!=="mirror"&&r.damping!==0&&r.type!=="inertia"))return!1;let i=!1,a,l,c=!1;const f=()=>{l=new Promise(x=>{a=x})};f();let{keyframes:u,duration:h=300,ease:d,times:p}=r;if(ou(e,r)){const x=Oe({...r,repeat:0,delay:0});let E={done:!1,value:u[0]};const S=[];let T=0;for(;!E.done&&T<iu;)E=x.sample(T),S.push(E.value),T+=he;p=void 0,u=S,h=T-he,d="linear"}const m=yc(t.owner.current,e,u,{...r,duration:h,ease:d,times:p}),y=()=>{c=!1,m.cancel()},w=()=>{c=!0,V.update(y),a(),f()};return m.onfinish=()=>{c||(t.set(vc(u,r)),s&&s(),w())},{then(x,E){return l.then(x,E)},attachTimeline(x){return m.timeline=x,m.onfinish=null,L},get time(){return nt(m.currentTime||0)},set time(x){m.currentTime=dt(x)},get speed(){return m.playbackRate},set speed(x){m.playbackRate=x},get duration(){return nt(h)},play:()=>{i||(m.play(),rt(y))},pause:()=>m.pause(),stop:()=>{if(i=!0,m.playState==="idle")return;const{currentTime:x}=m;if(x){const E=Oe({...r,autoplay:!1});t.setWithVelocity(E.sample(x-he).value,E.sample(x).value,he)}w()},complete:()=>{c||m.finish()},cancel:w}}function lu({keyframes:t,delay:e,onUpdate:n,onComplete:s}){const r=()=>(n&&n(t[t.length-1]),s&&s(),{time:0,speed:1,duration:0,play:L,pause:L,stop:L,then:o=>(o(),Promise.resolve()),cancel:L,complete:L});return e?Oe({keyframes:[0,1],duration:0,delay:e,onComplete:r}):r()}const cu={type:"spring",stiffness:500,damping:25,restSpeed:10},uu=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),fu={type:"keyframes",duration:.8},hu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},du=(t,{keyframes:e})=>e.length>2?fu:St.has(t)?t.startsWith("scale")?uu(e[1]):cu:hu,En=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(mt.test(e)||e==="0")&&!e.startsWith("url(")),pu=new Set(["brightness","contrast","saturate","opacity"]);function mu(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Ue)||[];if(!s)return t;const r=n.replace(s,"");let o=pu.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+r+")"}const gu=/([a-z-]*)\(.*?\)/g,Sn={...mt,getAnimatableNone:t=>{const e=t.match(gu);return e?e.map(mu).join(" "):t}},yu={...vi,color:F,backgroundColor:F,outlineColor:F,fill:F,stroke:F,borderColor:F,borderTopColor:F,borderRightColor:F,borderBottomColor:F,borderLeftColor:F,filter:Sn,WebkitFilter:Sn},Zn=t=>yu[t];function ro(t,e){let n=Zn(t);return n!==Sn&&(n=mt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const io=t=>/^0[^.\s]+$/.test(t);function vu(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||io(t)}function xu(t,e,n,s){const r=En(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const i=s.from!==void 0?s.from:t.get();let a;const l=[];for(let c=0;c<o.length;c++)o[c]===null&&(o[c]=c===0?i:o[c-1]),vu(o[c])&&l.push(c),typeof o[c]=="string"&&o[c]!=="none"&&o[c]!=="0"&&(a=o[c]);if(r&&l.length&&a)for(let c=0;c<l.length;c++){const f=l[c];o[f]=ro(e,a)}return o}function bu({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:r,repeat:o,repeatType:i,repeatDelay:a,from:l,elapsed:c,...f}){return!!Object.keys(f).length}function Qn(t,e){return t[e]||t.default||t}const wu={skipAnimations:!1},ts=(t,e,n,s={})=>r=>{const o=Qn(s,t)||{},i=o.delay||s.delay||0;let{elapsed:a=0}=s;a=a-dt(i);const l=xu(e,t,n,o),c=l[0],f=l[l.length-1],u=En(t,c),h=En(t,f);let d={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:p=>{e.set(p),o.onUpdate&&o.onUpdate(p)},onComplete:()=>{r(),o.onComplete&&o.onComplete()}};if(bu(o)||(d={...d,...du(t,d)}),d.duration&&(d.duration=dt(d.duration)),d.repeatDelay&&(d.repeatDelay=dt(d.repeatDelay)),!u||!h||gc.current||o.type===!1||wu.skipAnimations)return lu(d);if(!s.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const p=au(e,t,d);if(p)return p}return Oe(d)};function Ve(t){return!!(U(t)&&t.add)}const oo=t=>/^\-?\d*\.?\d+$/.test(t);function es(t,e){t.indexOf(e)===-1&&t.push(e)}function ns(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ss{constructor(){this.subscriptions=[]}add(e){return es(this.subscriptions,e),()=>ns(this.subscriptions,e)}notify(e,n,s){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,n,s);else for(let o=0;o<r;o++){const i=this.subscriptions[o];i&&i(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Eu=t=>!isNaN(parseFloat(t));class Su{constructor(e,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(s,r=!0)=>{this.prev=this.current,this.current=s;const{delta:o,timestamp:i}=N;this.lastUpdated!==i&&(this.timeDelta=o,this.lastUpdated=i,V.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>V.postRender(this.velocityCheck),this.velocityCheck=({timestamp:s})=>{s!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=Eu(this.current),this.owner=n.owner}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new ss);const s=this.events[e].add(n);return e==="change"?()=>{s(),V.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=e,this.timeDelta=s}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?eo(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Dt(t,e){return new Su(t,e)}const ao=t=>e=>e.test(t),Tu={test:t=>t==="auto",parse:t=>t},lo=[Tt,P,Y,ut,Vl,Ol,Tu],zt=t=>lo.find(ao(t)),Pu=[...lo,F,mt],Au=t=>Pu.find(ao(t));function Cu(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Dt(n))}function Ru(t,e){const n=ze(t,e);let{transitionEnd:s={},transition:r={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...s};for(const i in o){const a=$l(o[i]);Cu(t,i,a)}}function Ou(t,e,n){var s,r;const o=Object.keys(e).filter(a=>!t.hasValue(a)),i=o.length;if(i)for(let a=0;a<i;a++){const l=o[a],c=e[l];let f=null;Array.isArray(c)&&(f=c[0]),f===null&&(f=(r=(s=n[l])!==null&&s!==void 0?s:t.readValue(l))!==null&&r!==void 0?r:e[l]),f!=null&&(typeof f=="string"&&(oo(f)||io(f))?f=parseFloat(f):!Au(f)&&mt.test(c)&&(f=ro(l,c)),t.addValue(l,Dt(f,{owner:t})),n[l]===void 0&&(n[l]=f),f!==null&&t.setBaseTarget(l,f))}}function Vu(t,e){return e?(e[t]||e.default||e).from:void 0}function Mu(t,e,n){const s={};for(const r in t){const o=Vu(r,e);if(o!==void 0)s[r]=o;else{const i=n.getValue(r);i&&(s[r]=i.get())}}return s}function ku({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Lu(t,e){const n=t.get();if(Array.isArray(e)){for(let s=0;s<e.length;s++)if(e[s]!==n)return!0}else return n!==e}function co(t,e,{delay:n=0,transitionOverride:s,type:r}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:i,...a}=t.makeTargetAnimatable(e);const l=t.getValue("willChange");s&&(o=s);const c=[],f=r&&t.animationState&&t.animationState.getState()[r];for(const u in a){const h=t.getValue(u),d=a[u];if(!h||d===void 0||f&&ku(f,u))continue;const p={delay:n,elapsed:0,...Qn(o||{},u)};if(window.HandoffAppearAnimations){const w=t.getProps()[ui];if(w){const b=window.HandoffAppearAnimations(w,u,h,V);b!==null&&(p.elapsed=b,p.isHandoff=!0)}}let m=!p.isHandoff&&!Lu(h,d);if(p.type==="spring"&&(h.getVelocity()||p.velocity)&&(m=!1),h.animation&&(m=!1),m)continue;h.start(ts(u,h,d,t.shouldReduceMotion&&St.has(u)?{type:!1}:p));const y=h.animation;Ve(l)&&(l.add(u),y.then(()=>l.remove(u))),c.push(y)}return i&&Promise.all(c).then(()=>{i&&Ru(t,i)}),c}function Tn(t,e,n={}){const s=ze(t,e,n.custom);let{transition:r=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(r=n.transitionOverride);const o=s?()=>Promise.all(co(t,s,n)):()=>Promise.resolve(),i=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:u}=r;return Du(t,e,c+l,f,u,n)}:()=>Promise.resolve(),{when:a}=r;if(a){const[l,c]=a==="beforeChildren"?[o,i]:[i,o];return l().then(()=>c())}else return Promise.all([o(),i(n.delay)])}function Du(t,e,n=0,s=0,r=1,o){const i=[],a=(t.variantChildren.size-1)*s,l=r===1?(c=0)=>c*s:(c=0)=>a-c*s;return Array.from(t.variantChildren).sort(ju).forEach((c,f)=>{c.notify("AnimationStart",e),i.push(Tn(c,e,{...o,delay:n+l(f)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(i)}function ju(t,e){return t.sortNodePosition(e)}function _u(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const r=e.map(o=>Tn(t,o,n));s=Promise.all(r)}else if(typeof e=="string")s=Tn(t,e,n);else{const r=typeof e=="function"?ze(t,e,n.custom):e;s=Promise.all(co(t,r,n))}return s.then(()=>t.notify("AnimationComplete",e))}const Nu=[...Fn].reverse(),Bu=Fn.length;function Fu(t){return e=>Promise.all(e.map(({animation:n,options:s})=>_u(t,n,s)))}function Iu(t){let e=Fu(t);const n=Wu();let s=!0;const r=(l,c)=>{const f=ze(t,c);if(f){const{transition:u,transitionEnd:h,...d}=f;l={...l,...d,...h}}return l};function o(l){e=l(t)}function i(l,c){const f=t.getProps(),u=t.getVariantContext(!0)||{},h=[],d=new Set;let p={},m=1/0;for(let w=0;w<Bu;w++){const b=Nu[w],x=n[b],E=f[b]!==void 0?f[b]:u[b],S=Zt(E),T=b===c?x.isActive:null;T===!1&&(m=w);let C=E===u[b]&&E!==f[b]&&S;if(C&&s&&t.manuallyAnimateOnMount&&(C=!1),x.protectedKeys={...p},!x.isActive&&T===null||!E&&!x.prevProp||Fe(E)||typeof E=="boolean")continue;let O=Uu(x.prevProp,E)||b===c&&x.isActive&&!C&&S||w>m&&S,Z=!1;const Pt=Array.isArray(E)?E:[E];let G=Pt.reduce(r,{});T===!1&&(G={});const{prevResolvedValues:Q={}}=x,B={...Q,...G},At=_=>{O=!0,d.has(_)&&(Z=!0,d.delete(_)),x.needsAnimating[_]=!0};for(const _ in B){const it=G[_],Ft=Q[_];if(p.hasOwnProperty(_))continue;let Ct=!1;Ae(it)&&Ae(Ft)?Ct=!ki(it,Ft):Ct=it!==Ft,Ct?it!==void 0?At(_):d.add(_):it!==void 0&&d.has(_)?At(_):x.protectedKeys[_]=!0}x.prevProp=E,x.prevResolvedValues=G,x.isActive&&(p={...p,...G}),s&&t.blockInitialAnimation&&(O=!1),O&&(!C||Z)&&h.push(...Pt.map(_=>({animation:_,options:{type:b,...l}})))}if(d.size){const w={};d.forEach(b=>{const x=t.getBaseTarget(b);x!==void 0&&(w[b]=x)}),h.push({animation:w})}let y=!!h.length;return s&&(f.initial===!1||f.initial===f.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,y?e(h):Promise.resolve()}function a(l,c,f){var u;if(n[l].isActive===c)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(d=>{var p;return(p=d.animationState)===null||p===void 0?void 0:p.setActive(l,c)}),n[l].isActive=c;const h=i(f,l);for(const d in n)n[d].protectedKeys={};return h}return{animateChanges:i,setActive:a,setAnimateFunction:o,getState:()=>n}}function Uu(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!ki(e,t):!1}function vt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Wu(){return{animate:vt(!0),whileInView:vt(),whileHover:vt(),whileTap:vt(),whileDrag:vt(),whileFocus:vt(),exit:vt()}}class zu extends gt{constructor(e){super(e),e.animationState||(e.animationState=Iu(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Fe(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let Hu=0;class $u extends gt{constructor(){super(...arguments),this.id=Hu++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:s}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e,{custom:s??this.node.getProps().custom});n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const qu={animation:{Feature:zu},exit:{Feature:$u}},zs=(t,e)=>Math.abs(t-e);function Gu(t,e){const n=zs(t.x,e.x),s=zs(t.y,e.y);return Math.sqrt(n**2+s**2)}class uo{constructor(e,n,{transformPagePoint:s,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=cn(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,d=Gu(u.offset,{x:0,y:0})>=3;if(!h&&!d)return;const{point:p}=u,{timestamp:m}=N;this.history.push({...p,timestamp:m});const{onStart:y,onMove:w}=this.handlers;h||(y&&y(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,u)},this.handlePointerMove=(u,h)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=ln(h,this.transformPagePoint),V.update(this.updatePoint,!0)},this.handlePointerUp=(u,h)=>{this.end();const{onEnd:d,onSessionEnd:p,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=cn(u.type==="pointercancel"?this.lastMoveEventInfo:ln(h,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,y),p&&p(u,y)},!Ci(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.contextWindow=r||window;const i=We(e),a=ln(i,this.transformPagePoint),{point:l}=a,{timestamp:c}=N;this.history=[{...l,timestamp:c}];const{onSessionStart:f}=n;f&&f(e,cn(a,this.history)),this.removeListeners=ht(et(this.contextWindow,"pointermove",this.handlePointerMove),et(this.contextWindow,"pointerup",this.handlePointerUp),et(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),rt(this.updatePoint)}}function ln(t,e){return e?{point:e(t.point)}:t}function Hs(t,e){return{x:t.x-e.x,y:t.y-e.y}}function cn({point:t},e){return{point:t,delta:Hs(t,fo(e)),offset:Hs(t,Ku(e)),velocity:Xu(e,.1)}}function Ku(t){return t[0]}function fo(t){return t[t.length-1]}function Xu(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const r=fo(t);for(;n>=0&&(s=t[n],!(r.timestamp-s.timestamp>dt(e)));)n--;if(!s)return{x:0,y:0};const o=nt(r.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const i={x:(r.x-s.x)/o,y:(r.y-s.y)/o};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function z(t){return t.max-t.min}function Pn(t,e=0,n=.01){return Math.abs(t-e)<=n}function $s(t,e,n,s=.5){t.origin=s,t.originPoint=k(e.min,e.max,t.origin),t.scale=z(n)/z(e),(Pn(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=k(n.min,n.max,t.origin)-t.originPoint,(Pn(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Xt(t,e,n,s){$s(t.x,e.x,n.x,s?s.originX:void 0),$s(t.y,e.y,n.y,s?s.originY:void 0)}function qs(t,e,n){t.min=n.min+e.min,t.max=t.min+z(e)}function Yu(t,e,n){qs(t.x,e.x,n.x),qs(t.y,e.y,n.y)}function Gs(t,e,n){t.min=e.min-n.min,t.max=t.min+z(e)}function Yt(t,e,n){Gs(t.x,e.x,n.x),Gs(t.y,e.y,n.y)}function Ju(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?k(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?k(n,t,s.max):Math.min(t,n)),t}function Ks(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Zu(t,{top:e,left:n,bottom:s,right:r}){return{x:Ks(t.x,n,r),y:Ks(t.y,e,s)}}function Xs(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function Qu(t,e){return{x:Xs(t.x,e.x),y:Xs(t.y,e.y)}}function tf(t,e){let n=.5;const s=z(t),r=z(e);return r>s?n=te(e.min,e.max-s,t.min):s>r&&(n=te(t.min,t.max-r,e.min)),pt(0,1,n)}function ef(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const An=.35;function nf(t=An){return t===!1?t=0:t===!0&&(t=An),{x:Ys(t,"left","right"),y:Ys(t,"top","bottom")}}function Ys(t,e,n){return{min:Js(t,e),max:Js(t,n)}}function Js(t,e){return typeof t=="number"?t:t[e]||0}const Zs=()=>({translate:0,scale:1,origin:0,originPoint:0}),kt=()=>({x:Zs(),y:Zs()}),Qs=()=>({min:0,max:0}),D=()=>({x:Qs(),y:Qs()});function $(t){return[t("x"),t("y")]}function ho({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function sf({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function rf(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function un(t){return t===void 0||t===1}function Cn({scale:t,scaleX:e,scaleY:n}){return!un(t)||!un(e)||!un(n)}function xt(t){return Cn(t)||po(t)||t.z||t.rotate||t.rotateX||t.rotateY}function po(t){return tr(t.x)||tr(t.y)}function tr(t){return t&&t!=="0%"}function Me(t,e,n){const s=t-n,r=e*s;return n+r}function er(t,e,n,s,r){return r!==void 0&&(t=Me(t,r,s)),Me(t,n,s)+e}function Rn(t,e=0,n=1,s,r){t.min=er(t.min,e,n,s,r),t.max=er(t.max,e,n,s,r)}function mo(t,{x:e,y:n}){Rn(t.x,e.translate,e.scale,e.originPoint),Rn(t.y,n.translate,n.scale,n.originPoint)}function of(t,e,n,s=!1){const r=n.length;if(!r)return;e.x=e.y=1;let o,i;for(let a=0;a<r;a++){o=n[a],i=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Lt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),i&&(e.x*=i.x.scale,e.y*=i.y.scale,mo(t,i)),s&&xt(o.latestValues)&&Lt(t,o.latestValues))}e.x=nr(e.x),e.y=nr(e.y)}function nr(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function ft(t,e){t.min=t.min+e,t.max=t.max+e}function sr(t,e,[n,s,r]){const o=e[r]!==void 0?e[r]:.5,i=k(t.min,t.max,o);Rn(t,e[n],e[s],i,e.scale)}const af=["x","scaleX","originX"],lf=["y","scaleY","originY"];function Lt(t,e){sr(t.x,e,af),sr(t.y,e,lf)}function go(t,e){return ho(rf(t.getBoundingClientRect(),e))}function cf(t,e,n){const s=go(t,n),{scroll:r}=e;return r&&(ft(s.x,r.offset.x),ft(s.y,r.offset.y)),s}const yo=({current:t})=>t?t.ownerDocument.defaultView:null,uf=new WeakMap;class ff{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=D(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const r=f=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(We(f,"page").point)},o=(f,u)=>{const{drag:h,dragPropagation:d,onDragStart:p}=this.getProps();if(h&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Oi(h),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$(y=>{let w=this.getAxisMotionValue(y).get()||0;if(Y.test(w)){const{projection:b}=this.visualElement;if(b&&b.layout){const x=b.layout.layoutBox[y];x&&(w=z(x)*(parseFloat(w)/100))}}this.originPoint[y]=w}),p&&V.update(()=>p(f,u),!1,!0);const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},i=(f,u)=>{const{dragPropagation:h,dragDirectionLock:d,onDirectionLock:p,onDrag:m}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:y}=u;if(d&&this.currentDirection===null){this.currentDirection=hf(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",u.point,y),this.updateAxis("y",u.point,y),this.visualElement.render(),m&&m(f,u)},a=(f,u)=>this.stop(f,u),l=()=>$(f=>{var u;return this.getAnimationState(f)==="paused"&&((u=this.getAxisMotionValue(f).animation)===null||u===void 0?void 0:u.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new uo(e,{onSessionStart:r,onStart:o,onMove:i,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:yo(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&V.update(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:r}=this.getProps();if(!s||!de(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(i=Ju(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&Vt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=Zu(r.layoutBox,n):this.constraints=!1,this.elastic=nf(s),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&$(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=ef(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Vt(e))return!1;const s=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=cf(s,r.root,this.visualElement.getTransformPagePoint());let i=Qu(r.layout.layoutBox,o);if(n){const a=n(sf(i));this.hasMutatedConstraints=!!a,a&&(i=ho(a))}return i}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=$(f=>{if(!de(f,n,this.currentDirection))return;let u=l&&l[f]||{};i&&(u={min:0,max:0});const h=r?200:1e6,d=r?40:1e7,p={type:"inertia",velocity:s?e[f]:0,bounceStiffness:h,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...u};return this.startAxisValueAnimation(f,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return s.start(ts(e,s,0,n))}stopAnimation(){$(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){$(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),s=this.visualElement.getProps(),r=s[n];return r||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){$(n=>{const{drag:s}=this.getProps();if(!de(n,s,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(n);if(r&&r.layout){const{min:i,max:a}=r.layout.layoutBox[n];o.set(e[n]-k(i,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Vt(n)||!s||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};$(i=>{const a=this.getAxisMotionValue(i);if(a){const l=a.get();r[i]=tf({min:l,max:l},this.constraints[i])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),$(i=>{if(!de(i,e,null))return;const a=this.getAxisMotionValue(i),{min:l,max:c}=this.constraints[i];a.set(k(l,c,r[i]))})}addListeners(){if(!this.visualElement.current)return;uf.set(this.visualElement,this);const e=this.visualElement.current,n=et(e,"pointerdown",l=>{const{drag:c,dragListener:f=!0}=this.getProps();c&&f&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();Vt(l)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,o=r.addEventListener("measure",s);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),s();const i=tt(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&($(f=>{const u=this.getAxisMotionValue(f);u&&(this.originPoint[f]+=l[f].translate,u.set(u.get()+l[f].translate))}),this.visualElement.render())});return()=>{i(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=An,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function de(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function hf(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class df extends gt{constructor(e){super(e),this.removeGroupControls=L,this.removeListeners=L,this.controls=new ff(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||L}unmount(){this.removeGroupControls(),this.removeListeners()}}const rr=t=>(e,n)=>{t&&V.update(()=>t(e,n))};class pf extends gt{constructor(){super(...arguments),this.removePointerDownListener=L}onPointerDown(e){this.session=new uo(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:yo(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:r}=this.node.getProps();return{onSessionStart:rr(e),onStart:rr(n),onMove:s,onEnd:(o,i)=>{delete this.session,r&&V.update(()=>r(o,i))}}}mount(){this.removePointerDownListener=et(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function mf(){const t=g.reactExports.useContext(Nn);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,r=g.reactExports.useId();return g.reactExports.useEffect(()=>s(r),[]),!e&&n?[!1,()=>n&&n(r)]:[!0]}const ge={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ir(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ht={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(P.test(t))t=parseFloat(t);else return t;const n=ir(t,e.target.x),s=ir(t,e.target.y);return`${n}% ${s}%`}},gf={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,r=mt.parse(t);if(r.length>5)return s;const o=mt.createTransformer(t),i=typeof r[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;r[0+i]/=a,r[1+i]/=l;const c=k(a,l,.5);return typeof r[2+i]=="number"&&(r[2+i]/=c),typeof r[3+i]=="number"&&(r[3+i]/=c),o(r)}};class yf extends g.React__default.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:r}=this.props,{projection:o}=e;El(vf),o&&(n.group&&n.group.add(o),s&&s.register&&r&&s.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),ge.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:r,isPresent:o}=this.props,i=s.projection;return i&&(i.isPresent=o,r||e.layoutDependency!==n||n===void 0?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||V.postRender(()=>{const a=i.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),s&&s.deregister&&s.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function vo(t){const[e,n]=mf(),s=g.reactExports.useContext(hi);return g.React__default.createElement(yf,{...t,layoutGroup:s,switchLayoutGroup:g.reactExports.useContext(di),isPresent:e,safeToRemove:n})}const vf={borderRadius:{...Ht,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ht,borderTopRightRadius:Ht,borderBottomLeftRadius:Ht,borderBottomRightRadius:Ht,boxShadow:gf},xo=["TopLeft","TopRight","BottomLeft","BottomRight"],xf=xo.length,or=t=>typeof t=="string"?parseFloat(t):t,ar=t=>typeof t=="number"||P.test(t);function bf(t,e,n,s,r,o){r?(t.opacity=k(0,n.opacity!==void 0?n.opacity:1,wf(s)),t.opacityExit=k(e.opacity!==void 0?e.opacity:1,0,Ef(s))):o&&(t.opacity=k(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let i=0;i<xf;i++){const a=`border${xo[i]}Radius`;let l=lr(e,a),c=lr(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||ar(l)===ar(c)?(t[a]=Math.max(k(or(l),or(c),s),0),(Y.test(c)||Y.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=k(e.rotate||0,n.rotate||0,s))}function lr(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const wf=bo(0,.5,Ui),Ef=bo(.5,.95,L);function bo(t,e,n){return s=>s<t?0:s>e?1:n(te(t,e,s))}function cr(t,e){t.min=e.min,t.max=e.max}function H(t,e){cr(t.x,e.x),cr(t.y,e.y)}function ur(t,e,n,s,r){return t-=e,t=Me(t,1/n,s),r!==void 0&&(t=Me(t,1/r,s)),t}function Sf(t,e=0,n=1,s=.5,r,o=t,i=t){if(Y.test(e)&&(e=parseFloat(e),e=k(i.min,i.max,e/100)-i.min),typeof e!="number")return;let a=k(o.min,o.max,s);t===o&&(a-=e),t.min=ur(t.min,e,n,a,r),t.max=ur(t.max,e,n,a,r)}function fr(t,e,[n,s,r],o,i){Sf(t,e[n],e[s],e[r],e.scale,o,i)}const Tf=["x","scaleX","originX"],Pf=["y","scaleY","originY"];function hr(t,e,n,s){fr(t.x,e,Tf,n?n.x:void 0,s?s.x:void 0),fr(t.y,e,Pf,n?n.y:void 0,s?s.y:void 0)}function dr(t){return t.translate===0&&t.scale===1}function wo(t){return dr(t.x)&&dr(t.y)}function Af(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function Eo(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function pr(t){return z(t.x)/z(t.y)}class Cf{constructor(){this.members=[]}add(e){es(this.members,e),e.scheduleRender()}remove(e){if(ns(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(r=>e===r);if(n===0)return!1;let s;for(let r=n;r>=0;r--){const o=this.members[r];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;r===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function mr(t,e,n){let s="";const r=t.x.translate/e.x,o=t.y.translate/e.y;if((r||o)&&(s=`translate3d(${r}px, ${o}px, 0) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:l,rotateX:c,rotateY:f}=n;l&&(s+=`rotate(${l}deg) `),c&&(s+=`rotateX(${c}deg) `),f&&(s+=`rotateY(${f}deg) `)}const i=t.x.scale*e.x,a=t.y.scale*e.y;return(i!==1||a!==1)&&(s+=`scale(${i}, ${a})`),s||"none"}const Rf=(t,e)=>t.depth-e.depth;class Of{constructor(){this.children=[],this.isDirty=!1}add(e){es(this.children,e),this.isDirty=!0}remove(e){ns(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Rf),this.isDirty=!1,this.children.forEach(e)}}function Vf(t,e){const n=performance.now(),s=({timestamp:r})=>{const o=r-n;o>=e&&(rt(s),t(o-e))};return V.read(s,!0),()=>rt(s)}function Mf(t){window.MotionDebug&&window.MotionDebug.record(t)}function kf(t){return t instanceof SVGElement&&t.tagName!=="svg"}function Lf(t,e,n){const s=U(t)?t:Dt(t);return s.start(ts("",s,e,n)),s.animation}const gr=["","X","Y","Z"],Df={visibility:"hidden"},yr=1e3;let jf=0;const bt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function So({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(i={},a=e==null?void 0:e()){this.id=jf++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,bt.totalNodes=bt.resolvedTargetDeltas=bt.recalculatedProjection=0,this.nodes.forEach(Bf),this.nodes.forEach(zf),this.nodes.forEach(Hf),this.nodes.forEach(Ff),Mf(bt)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Of)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new ss),this.eventHandlers.get(i).add(a)}notifyListeners(i,...a){const l=this.eventHandlers.get(i);l&&l.notify(...a)}hasListeners(i){return this.eventHandlers.has(i)}mount(i,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=kf(i),this.instance=i;const{layoutId:l,layout:c,visualElement:f}=this.options;if(f&&!f.current&&f.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),t){let u;const h=()=>this.root.updateBlockedByResize=!1;t(i,()=>{this.root.updateBlockedByResize=!0,u&&u(),u=Vf(h,250),ge.hasAnimatedSinceResize&&(ge.hasAnimatedSinceResize=!1,this.nodes.forEach(xr))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&f&&(l||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeTargetChanged:d,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||f.getDefaultTransition()||Xf,{onLayoutAnimationStart:y,onLayoutAnimationComplete:w}=f.getProps(),b=!this.targetLayout||!Eo(this.targetLayout,p)||d,x=!h&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||h&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(u,x);const E={...Qn(m,"layout"),onPlay:y,onComplete:w};(f.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else h||xr(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,rt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach($f),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const u=this.path[f];u.shouldResetTransform=!0,u.updateScroll("snapshot"),u.options.layoutRoot&&u.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(vr);return}this.isUpdating||this.nodes.forEach(Uf),this.isUpdating=!1,this.nodes.forEach(Wf),this.nodes.forEach(_f),this.nodes.forEach(Nf),this.clearAllSnapshots();const a=performance.now();N.delta=pt(0,1e3/60,a-N.timestamp),N.timestamp=a,N.isProcessing=!0,Qe.update.process(N),Qe.preRender.process(N),Qe.render.process(N),N.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(If),this.sharedNodes.forEach(qf)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,V.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){V.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=D(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:i,isRoot:s(this.instance),offset:n(this.instance)})}resetTransform(){if(!r)return;const i=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!wo(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,f=c!==this.prevTransformTemplateValue;i&&(a||xt(this.latestValues)||f)&&(r(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return i&&(l=this.removeTransform(l)),Yf(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return D();const a=i.measureViewportBox(),{scroll:l}=this.root;return l&&(ft(a.x,l.offset.x),ft(a.y,l.offset.y)),a}removeElementScroll(i){const a=D();H(a,i);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:f,options:u}=c;if(c!==this.root&&f&&u.layoutScroll){if(f.isRoot){H(a,i);const{scroll:h}=this.root;h&&(ft(a.x,-h.offset.x),ft(a.y,-h.offset.y))}ft(a.x,f.offset.x),ft(a.y,f.offset.y)}}return a}applyTransform(i,a=!1){const l=D();H(l,i);for(let c=0;c<this.path.length;c++){const f=this.path[c];!a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Lt(l,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),xt(f.latestValues)&&Lt(l,f.latestValues)}return xt(this.latestValues)&&Lt(l,this.latestValues),l}removeTransform(i){const a=D();H(a,i);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!xt(c.latestValues))continue;Cn(c.latestValues)&&c.updateSnapshot();const f=D(),u=c.measurePageBox();H(f,u),hr(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,f)}return xt(this.latestValues)&&hr(a,this.latestValues),a}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==N.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(i||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:u,layoutId:h}=this.options;if(!(!this.layout||!(u||h))){if(this.resolvedRelativeTargetAt=N.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=D(),this.relativeTargetOrigin=D(),Yt(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),H(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=D(),this.targetWithTransforms=D()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Yu(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):H(this.target,this.layout.layoutBox),mo(this.target,this.targetDelta)):H(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const d=this.getClosestProjectingParent();d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=D(),this.relativeTargetOrigin=D(),Yt(this.relativeTargetOrigin,this.target,d.target),H(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}bt.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Cn(this.parent.latestValues)||po(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var i;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((i=this.parent)===null||i===void 0)&&i.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===N.timestamp&&(c=!1),c)return;const{layout:f,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||u))return;H(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,d=this.treeScale.y;of(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox);const{target:p}=a;if(!p){this.projectionTransform&&(this.projectionDelta=kt(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=kt(),this.projectionDeltaWithTransform=kt());const m=this.projectionTransform;Xt(this.projectionDelta,this.layoutCorrected,p,this.latestValues),this.projectionTransform=mr(this.projectionDelta,this.treeScale),(this.projectionTransform!==m||this.treeScale.x!==h||this.treeScale.y!==d)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),bt.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),i){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(i,a=!1){const l=this.snapshot,c=l?l.latestValues:{},f={...this.latestValues},u=kt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=D(),d=l?l.source:void 0,p=this.layout?this.layout.source:void 0,m=d!==p,y=this.getStack(),w=!y||y.members.length<=1,b=!!(m&&!w&&this.options.crossfade===!0&&!this.path.some(Kf));this.animationProgress=0;let x;this.mixTargetDelta=E=>{const S=E/1e3;br(u.x,i.x,S),br(u.y,i.y,S),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Yt(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Gf(this.relativeTarget,this.relativeTargetOrigin,h,S),x&&Af(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=D()),H(x,this.relativeTarget)),m&&(this.animationValues=f,bf(f,c,this.latestValues,S,b,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(rt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=V.update(()=>{ge.hasAnimatedSinceResize=!0,this.currentAnimation=Lf(0,yr,{...i,onUpdate:a=>{this.mixTargetDelta(a),i.onUpdate&&i.onUpdate(a)},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(yr),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:f}=i;if(!(!a||!l||!c)){if(this!==i&&this.layout&&c&&To(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||D();const u=z(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+u;const h=z(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+h}H(a,l),Lt(a,f),Xt(this.projectionDeltaWithTransform,this.layoutCorrected,a,f)}}registerSharedNode(i,a){this.sharedNodes.has(i)||this.sharedNodes.set(i,new Cf),this.sharedNodes.get(i).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){var i;const{layoutId:a}=this.options;return a?((i=this.getStack())===null||i===void 0?void 0:i.lead)||this:this}getPrevLead(){var i;const{layoutId:a}=this.options;return a?(i=this.getStack())===null||i===void 0?void 0:i.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetRotation(){const{visualElement:i}=this.options;if(!i)return;let a=!1;const{latestValues:l}=i;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const c={};for(let f=0;f<gr.length;f++){const u="rotate"+gr[f];l[u]&&(c[u]=l[u],i.setStaticValue(u,0))}i.render();for(const f in c)i.setStaticValue(f,c[f]);i.scheduleRender()}getProjectionStyles(i){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Df;const c={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=me(i==null?void 0:i.pointerEvents)||"",c.transform=f?f(this.latestValues,""):"none",c;const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=me(i==null?void 0:i.pointerEvents)||""),this.hasProjected&&!xt(this.latestValues)&&(m.transform=f?f({},""):"none",this.hasProjected=!1),m}const h=u.animationValues||u.latestValues;this.applyTransformsToTarget(),c.transform=mr(this.projectionDeltaWithTransform,this.treeScale,h),f&&(c.transform=f(h,c.transform));const{x:d,y:p}=this.projectionDelta;c.transformOrigin=`${d.origin*100}% ${p.origin*100}% 0`,u.animationValues?c.opacity=u===this?(l=(a=h.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:c.opacity=u===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const m in Te){if(h[m]===void 0)continue;const{correct:y,applyTo:w}=Te[m],b=c.transform==="none"?h[m]:y(h[m],u);if(w){const x=w.length;for(let E=0;E<x;E++)c[w[E]]=b}else c[m]=b}return this.options.layoutId&&(c.pointerEvents=u===this?me(i==null?void 0:i.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>{var a;return(a=i.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(vr),this.root.sharedNodes.clear()}}}function _f(t){t.updateLayout()}function Nf(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:r}=t.layout,{animationType:o}=t.options,i=n.source!==t.layout.source;o==="size"?$(u=>{const h=i?n.measuredBox[u]:n.layoutBox[u],d=z(h);h.min=s[u].min,h.max=h.min+d}):To(o,n.layoutBox,s)&&$(u=>{const h=i?n.measuredBox[u]:n.layoutBox[u],d=z(s[u]);h.max=h.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+d)});const a=kt();Xt(a,s,n.layoutBox);const l=kt();i?Xt(l,t.applyTransform(r,!0),n.measuredBox):Xt(l,s,n.layoutBox);const c=!wo(a);let f=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:d}=u;if(h&&d){const p=D();Yt(p,n.layoutBox,h.layoutBox);const m=D();Yt(m,s,d.layoutBox),Eo(p,m)||(f=!0),u.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:f})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function Bf(t){bt.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Ff(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function If(t){t.clearSnapshot()}function vr(t){t.clearMeasurements()}function Uf(t){t.isLayoutDirty=!1}function Wf(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function xr(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function zf(t){t.resolveTargetDelta()}function Hf(t){t.calcProjection()}function $f(t){t.resetRotation()}function qf(t){t.removeLeadSnapshot()}function br(t,e,n){t.translate=k(e.translate,0,n),t.scale=k(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function wr(t,e,n,s){t.min=k(e.min,n.min,s),t.max=k(e.max,n.max,s)}function Gf(t,e,n,s){wr(t.x,e.x,n.x,s),wr(t.y,e.y,n.y,s)}function Kf(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Xf={duration:.45,ease:[.4,0,.1,1]},Er=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),Sr=Er("applewebkit/")&&!Er("chrome/")?Math.round:L;function Tr(t){t.min=Sr(t.min),t.max=Sr(t.max)}function Yf(t){Tr(t.x),Tr(t.y)}function To(t,e,n){return t==="position"||t==="preserve-aspect"&&!Pn(pr(e),pr(n),.2)}const Jf=So({attachResizeListener:(t,e)=>tt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),fn={current:void 0},Po=So({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!fn.current){const t=new Jf({});t.mount(window),t.setOptions({layoutScroll:!0}),fn.current=t}return fn.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Zf={pan:{Feature:pf},drag:{Feature:df,ProjectionNode:Po,MeasureLayout:vo}},Qf=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function th(t){const e=Qf.exec(t);if(!e)return[,];const[,n,s]=e;return[n,s]}function On(t,e,n=1){const[s,r]=th(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const i=o.trim();return oo(i)?parseFloat(i):i}else return vn(r)?On(r,e,n+1):r}function eh(t,{...e},n){const s=t.current;if(!(s instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(r=>{const o=r.get();if(!vn(o))return;const i=On(o,s);i&&r.set(i)});for(const r in e){const o=e[r];if(!vn(o))continue;const i=On(o,s);i&&(e[r]=i,n||(n={}),n[r]===void 0&&(n[r]=o))}return{target:e,transitionEnd:n}}const nh=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Ao=t=>nh.has(t),sh=t=>Object.keys(t).some(Ao),Pr=t=>t===Tt||t===P,Ar=(t,e)=>parseFloat(t.split(", ")[e]),Cr=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const r=s.match(/^matrix3d\((.+)\)$/);if(r)return Ar(r[1],e);{const o=s.match(/^matrix\((.+)\)$/);return o?Ar(o[1],t):0}},rh=new Set(["x","y","z"]),ih=ne.filter(t=>!rh.has(t));function oh(t){const e=[];return ih.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const jt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Cr(4,13),y:Cr(5,14)};jt.translateX=jt.x;jt.translateY=jt.y;const ah=(t,e,n)=>{const s=e.measureViewportBox(),r=e.current,o=getComputedStyle(r),{display:i}=o,a={};i==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(c=>{a[c]=jt[c](s,o)}),e.render();const l=e.measureViewportBox();return n.forEach(c=>{const f=e.getValue(c);f&&f.jump(a[c]),t[c]=jt[c](l,o)}),t},lh=(t,e,n={},s={})=>{e={...e},s={...s};const r=Object.keys(e).filter(Ao);let o=[],i=!1;const a=[];if(r.forEach(l=>{const c=t.getValue(l);if(!t.hasValue(l))return;let f=n[l],u=zt(f);const h=e[l];let d;if(Ae(h)){const p=h.length,m=h[0]===null?1:0;f=h[m],u=zt(f);for(let y=m;y<p&&h[y]!==null;y++)d?Kn(zt(h[y])===d):d=zt(h[y])}else d=zt(h);if(u!==d)if(Pr(u)&&Pr(d)){const p=c.get();typeof p=="string"&&c.set(parseFloat(p)),typeof h=="string"?e[l]=parseFloat(h):Array.isArray(h)&&d===P&&(e[l]=h.map(parseFloat))}else u!=null&&u.transform&&(d!=null&&d.transform)&&(f===0||h===0)?f===0?c.set(d.transform(f)):e[l]=u.transform(h):(i||(o=oh(t),i=!0),a.push(l),s[l]=s[l]!==void 0?s[l]:e[l],c.jump(h))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,c=ah(e,t,a);return o.length&&o.forEach(([f,u])=>{t.getValue(f).set(u)}),t.render(),Be&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:s}}else return{target:e,transitionEnd:s}};function ch(t,e,n,s){return sh(e)?lh(t,e,n,s):{target:e,transitionEnd:s}}const uh=(t,e,n,s)=>{const r=eh(t,e,s);return e=r.target,s=r.transitionEnd,ch(t,e,n,s)},Vn={current:null},Co={current:!1};function fh(){if(Co.current=!0,!!Be)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Vn.current=t.matches;t.addListener(e),e()}else Vn.current=!1}function hh(t,e,n){const{willChange:s}=e;for(const r in e){const o=e[r],i=n[r];if(U(o))t.addValue(r,o),Ve(s)&&s.add(r);else if(U(i))t.addValue(r,Dt(o,{owner:t})),Ve(s)&&s.remove(r);else if(i!==o)if(t.hasValue(r)){const a=t.getValue(r);!a.hasAnimated&&a.set(o)}else{const a=t.getStaticValue(r);t.addValue(r,Dt(a!==void 0?a:o,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const Rr=new WeakMap,Ro=Object.keys(Qt),dh=Ro.length,Or=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ph=In.length;class mh{constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>V.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=Ie(n),this.isVariantNode=fi(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{});for(const u in f){const h=f[u];a[u]!==void 0&&U(h)&&(h.set(a[u],!1),Ve(c)&&c.add(u))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,Rr.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),Co.current||fh(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Vn.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Rr.delete(this.current),this.projection&&this.projection.unmount(),rt(this.notifyUpdate),rt(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const s=St.has(e),r=n.on("change",i=>{this.latestValues[e]=i,this.props.onUpdate&&V.update(this.notifyUpdate,!1,!0),s&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},s,r,o){let i,a;for(let l=0;l<dh;l++){const c=Ro[l],{isEnabled:f,Feature:u,ProjectionNode:h,MeasureLayout:d}=Qt[c];h&&(i=h),f(n)&&(!this.features[c]&&u&&(this.features[c]=new u(this)),d&&(a=d))}if((this.type==="html"||this.type==="svg")&&!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:f,dragConstraints:u,layoutScroll:h,layoutRoot:d}=n;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!f||u&&Vt(u),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:o,layoutScroll:h,layoutRoot:d})}return a}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):D()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,this.props,n)}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<Or.length;s++){const r=Or[s];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const o=e["on"+r];o&&(this.propEventSubscriptions[r]=this.on(r,o))}this.prevMotionValues=hh(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const s=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(s.initial=this.props.initial),s}const n={};for(let s=0;s<ph;s++){const r=In[s],o=this.props[r];(Zt(o)||o===!1)&&(n[r]=o)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=Dt(n,{owner:this}),this.addValue(e,s)),s}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props,r=typeof s=="string"||typeof s=="object"?(n=Gn(this.props,s))===null||n===void 0?void 0:n[e]:void 0;if(s&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!U(o)?o:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new ss),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Oo extends mh{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...s},{transformValues:r},o){let i=Mu(s,e||{},this);if(r&&(n&&(n=r(n)),s&&(s=r(s)),i&&(i=r(i))),o){Ou(this,s,i);const a=uh(this,s,i,n);n=a.transitionEnd,s=a.target}return{transition:e,transitionEnd:n,...s}}}function gh(t){return window.getComputedStyle(t)}class yh extends Oo{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(St.has(n)){const s=Zn(n);return s&&s.default||0}else{const s=gh(e),r=(gi(n)?s.getPropertyValue(n):s[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:n}){return go(e,n)}build(e,n,s,r){Wn(e,n,s,r.transformTemplate)}scrapeMotionValuesFromProps(e,n){return qn(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;U(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,s,r){Ei(e,n,s,r)}}class vh extends Oo{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(St.has(n)){const s=Zn(n);return s&&s.default||0}return n=Si.has(n)?n:Bn(n),e.getAttribute(n)}measureInstanceViewportBox(){return D()}scrapeMotionValuesFromProps(e,n){return Pi(e,n)}build(e,n,s,r){Hn(e,n,s,this.isSVGTag,r.transformTemplate)}renderInstance(e,n,s,r){Ti(e,n,s,r)}mount(e){this.isSVGTag=$n(e.tagName),super.mount(e)}}const xh=(t,e)=>Un(t)?new vh(e,{enableHardwareAcceleration:!1}):new yh(e,{enableHardwareAcceleration:!0}),bh={layout:{ProjectionNode:Po,MeasureLayout:vo}},wh={...qu,...hc,...Zf,...bh},Vo=bl((t,e)=>Ql(t,e,wh,xh));function Eh(t){const{children:e,parentRef:n,onlyChild:s}=t,[r,o]=g.reactExports.useState({top:0,left:0});return g.reactExports.useLayoutEffect(()=>{if(n.current){const i=n.current.getBoundingClientRect();o({top:i.top,left:i.left+i.width})}},[n]),s?e:g.reactDomExports.createPortal(g.jsxRuntimeExports.jsx(Vo.div,{style:{position:"fixed",top:r.top,left:r.left,zIndex:1200},children:e}),n.current)}function Sh(t){return g.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:g.jsxRuntimeExports.jsx("path",{fill:"currenColor",d:"M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"})})}function Mo({item:t,level:e=0,...n}){var w;const{isActive:s,isCollapsed:r,expanded:o,toggleExpand:i}=n,a=`level-${e}`,l=r?"collapsed":"expanded",c=s(t.id)?"active":"",f=(b,x=a)=>`${b} ${x} ${l} ${c}`,u=!!((w=t.children)!=null&&w.length),[h,d]=g.reactExports.useState(!1),p=g.reactExports.useRef();function m(b){var T;const{level:x,hovered:E,parentRef:S}=b;return!u||r&&x>=2&&!E?null:g.jsxRuntimeExports.jsx(Eh,{parentRef:S,onlyChild:!r||r&&x<2,children:g.jsxRuntimeExports.jsx(Vo.div,{className:f("menu-item__dropdown",`level-${x}`),initial:{height:r?"auto":0},animate:{height:r||o(t.id)?"auto":0},transition:{duration:.2},children:(T=t.children)==null?void 0:T.map(C=>g.reactExports.createElement(Mo,{...n,key:C.id,item:C,level:x}))},+r)})}const y=u?"div":Aa;return g.jsxRuntimeExports.jsxs("div",{ref:p,className:f("menu-item__wrapper"),onMouseEnter:()=>r&&d(!0),onMouseLeave:()=>r&&d(!1),children:[g.jsxRuntimeExports.jsxs(y,{to:u?"#":t.path||"#",style:{paddingLeft:`${r?"0.5rem":`${e*1}rem`}`},className:f("menu-item__link"),onClick:b=>{u&&(b.preventDefault(),r||i(t.id))},children:[e!==0&&g.jsxRuntimeExports.jsx(Th,{cls:f,item:t}),g.jsxRuntimeExports.jsx("span",{className:f("menu-item__label"),children:t.name}),u&&g.jsxRuntimeExports.jsx("div",{className:f("menu-item__icon-arrow__wrapper"),children:g.jsxRuntimeExports.jsx(Sh,{className:f(`menu-item__icon-arrow__icon ${o(t.id)?"open":"close"}`)})})]}),m({level:e+1,hovered:h,parentRef:p})]},t.id)}function Th({item:t,cls:e}){var o;const[n,s]=g.reactExports.useState(!1),r=()=>{s(!0)};return g.jsxRuntimeExports.jsx("div",{className:e("menu-item__icon"),children:n?g.jsxRuntimeExports.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center"},children:(o=t.name.trim().at(0))==null?void 0:o.toUpperCase()}):g.jsxRuntimeExports.jsx("img",{src:t.icon||"/",alt:" ",style:{height:24,maxHeight:24},onError:r})})}function Vr(t){for(;t.startsWith("/");)t=t.slice(1);return t}function ko(t,e,n=[]){for(const s of t){if(console.log(s.path,e,s.path===e),Vr(s.path||"")===Vr(e))return[...n,s];if(s.children){const r=ko(s.children,e,[...n,s]);if(r)return r}}return null}function Ph(t){return g.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:g.jsxRuntimeExports.jsx("path",{fill:"#E01B00",fillRule:"evenodd",d:"M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",clipRule:"evenodd"})})}function Lo(t,e){return function(){return t.apply(e,arguments)}}const{toString:Ah}=Object.prototype,{getPrototypeOf:rs}=Object,He=(t=>e=>{const n=Ah.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),J=t=>(t=t.toLowerCase(),e=>He(e)===t),$e=t=>e=>typeof e===t,{isArray:Bt}=Array,ee=$e("undefined");function Ch(t){return t!==null&&!ee(t)&&t.constructor!==null&&!ee(t.constructor)&&q(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Do=J("ArrayBuffer");function Rh(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Do(t.buffer),e}const Oh=$e("string"),q=$e("function"),jo=$e("number"),qe=t=>t!==null&&typeof t=="object",Vh=t=>t===!0||t===!1,ye=t=>{if(He(t)!=="object")return!1;const e=rs(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Mh=J("Date"),kh=J("File"),Lh=J("Blob"),Dh=J("FileList"),jh=t=>qe(t)&&q(t.pipe),_h=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||q(t.append)&&((e=He(t))==="formdata"||e==="object"&&q(t.toString)&&t.toString()==="[object FormData]"))},Nh=J("URLSearchParams"),Bh=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function oe(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let s,r;if(typeof t!="object"&&(t=[t]),Bt(t))for(s=0,r=t.length;s<r;s++)e.call(null,t[s],s,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let a;for(s=0;s<i;s++)a=o[s],e.call(null,t[a],a,t)}}function _o(t,e){e=e.toLowerCase();const n=Object.keys(t);let s=n.length,r;for(;s-- >0;)if(r=n[s],e===r.toLowerCase())return r;return null}const No=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Bo=t=>!ee(t)&&t!==No;function Mn(){const{caseless:t}=Bo(this)&&this||{},e={},n=(s,r)=>{const o=t&&_o(e,r)||r;ye(e[o])&&ye(s)?e[o]=Mn(e[o],s):ye(s)?e[o]=Mn({},s):Bt(s)?e[o]=s.slice():e[o]=s};for(let s=0,r=arguments.length;s<r;s++)arguments[s]&&oe(arguments[s],n);return e}const Fh=(t,e,n,{allOwnKeys:s}={})=>(oe(e,(r,o)=>{n&&q(r)?t[o]=Lo(r,n):t[o]=r},{allOwnKeys:s}),t),Ih=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Uh=(t,e,n,s)=>{t.prototype=Object.create(e.prototype,s),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Wh=(t,e,n,s)=>{let r,o,i;const a={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),o=r.length;o-- >0;)i=r[o],(!s||s(i,t,e))&&!a[i]&&(e[i]=t[i],a[i]=!0);t=n!==!1&&rs(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},zh=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const s=t.indexOf(e,n);return s!==-1&&s===n},Hh=t=>{if(!t)return null;if(Bt(t))return t;let e=t.length;if(!jo(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},$h=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&rs(Uint8Array)),qh=(t,e)=>{const s=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=s.next())&&!r.done;){const o=r.value;e.call(t,o[0],o[1])}},Gh=(t,e)=>{let n;const s=[];for(;(n=t.exec(e))!==null;)s.push(n);return s},Kh=J("HTMLFormElement"),Xh=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),Mr=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Yh=J("RegExp"),Fo=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),s={};oe(n,(r,o)=>{let i;(i=e(r,o,t))!==!1&&(s[o]=i||r)}),Object.defineProperties(t,s)},Jh=t=>{Fo(t,(e,n)=>{if(q(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=t[n];if(q(s)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Zh=(t,e)=>{const n={},s=r=>{r.forEach(o=>{n[o]=!0})};return Bt(t)?s(t):s(String(t).split(e)),n},Qh=()=>{},td=(t,e)=>(t=+t,Number.isFinite(t)?t:e),hn="abcdefghijklmnopqrstuvwxyz",kr="0123456789",Io={DIGIT:kr,ALPHA:hn,ALPHA_DIGIT:hn+hn.toUpperCase()+kr},ed=(t=16,e=Io.ALPHA_DIGIT)=>{let n="";const{length:s}=e;for(;t--;)n+=e[Math.random()*s|0];return n};function nd(t){return!!(t&&q(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const sd=t=>{const e=new Array(10),n=(s,r)=>{if(qe(s)){if(e.indexOf(s)>=0)return;if(!("toJSON"in s)){e[r]=s;const o=Bt(s)?[]:{};return oe(s,(i,a)=>{const l=n(i,r+1);!ee(l)&&(o[a]=l)}),e[r]=void 0,o}}return s};return n(t,0)},rd=J("AsyncFunction"),id=t=>t&&(qe(t)||q(t))&&q(t.then)&&q(t.catch),v={isArray:Bt,isArrayBuffer:Do,isBuffer:Ch,isFormData:_h,isArrayBufferView:Rh,isString:Oh,isNumber:jo,isBoolean:Vh,isObject:qe,isPlainObject:ye,isUndefined:ee,isDate:Mh,isFile:kh,isBlob:Lh,isRegExp:Yh,isFunction:q,isStream:jh,isURLSearchParams:Nh,isTypedArray:$h,isFileList:Dh,forEach:oe,merge:Mn,extend:Fh,trim:Bh,stripBOM:Ih,inherits:Uh,toFlatObject:Wh,kindOf:He,kindOfTest:J,endsWith:zh,toArray:Hh,forEachEntry:qh,matchAll:Gh,isHTMLForm:Kh,hasOwnProperty:Mr,hasOwnProp:Mr,reduceDescriptors:Fo,freezeMethods:Jh,toObjectSet:Zh,toCamelCase:Xh,noop:Qh,toFiniteNumber:td,findKey:_o,global:No,isContextDefined:Bo,ALPHABET:Io,generateString:ed,isSpecCompliantForm:nd,toJSONObject:sd,isAsyncFn:rd,isThenable:id};function R(t,e,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r)}v.inherits(R,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:v.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Uo=R.prototype,Wo={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Wo[t]={value:t}});Object.defineProperties(R,Wo);Object.defineProperty(Uo,"isAxiosError",{value:!0});R.from=(t,e,n,s,r,o)=>{const i=Object.create(Uo);return v.toFlatObject(t,i,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),R.call(i,t.message,e,n,s,r),i.cause=t,i.name=t.name,o&&Object.assign(i,o),i};const od=null;function kn(t){return v.isPlainObject(t)||v.isArray(t)}function zo(t){return v.endsWith(t,"[]")?t.slice(0,-2):t}function Lr(t,e,n){return t?t.concat(e).map(function(r,o){return r=zo(r),!n&&o?"["+r+"]":r}).join(n?".":""):e}function ad(t){return v.isArray(t)&&!t.some(kn)}const ld=v.toFlatObject(v,{},null,function(e){return/^is[A-Z]/.test(e)});function Ge(t,e,n){if(!v.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=v.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,y){return!v.isUndefined(y[m])});const s=n.metaTokens,r=n.visitor||f,o=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(e);if(!v.isFunction(r))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(v.isDate(p))return p.toISOString();if(!l&&v.isBlob(p))throw new R("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(p)||v.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,m,y){let w=p;if(p&&!y&&typeof p=="object"){if(v.endsWith(m,"{}"))m=s?m:m.slice(0,-2),p=JSON.stringify(p);else if(v.isArray(p)&&ad(p)||(v.isFileList(p)||v.endsWith(m,"[]"))&&(w=v.toArray(p)))return m=zo(m),w.forEach(function(x,E){!(v.isUndefined(x)||x===null)&&e.append(i===!0?Lr([m],E,o):i===null?m:m+"[]",c(x))}),!1}return kn(p)?!0:(e.append(Lr(y,m,o),c(p)),!1)}const u=[],h=Object.assign(ld,{defaultVisitor:f,convertValue:c,isVisitable:kn});function d(p,m){if(!v.isUndefined(p)){if(u.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));u.push(p),v.forEach(p,function(w,b){(!(v.isUndefined(w)||w===null)&&r.call(e,w,v.isString(b)?b.trim():b,m,h))===!0&&d(w,m?m.concat(b):[b])}),u.pop()}}if(!v.isObject(t))throw new TypeError("data must be an object");return d(t),e}function Dr(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(s){return e[s]})}function is(t,e){this._pairs=[],t&&Ge(t,this,e)}const Ho=is.prototype;Ho.append=function(e,n){this._pairs.push([e,n])};Ho.toString=function(e){const n=e?function(s){return e.call(this,s,Dr)}:Dr;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function cd(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $o(t,e,n){if(!e)return t;const s=n&&n.encode||cd,r=n&&n.serialize;let o;if(r?o=r(e,n):o=v.isURLSearchParams(e)?e.toString():new is(e,n).toString(s),o){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class ud{constructor(){this.handlers=[]}use(e,n,s){return this.handlers.push({fulfilled:e,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){v.forEach(this.handlers,function(s){s!==null&&e(s)})}}const jr=ud,qo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fd=typeof URLSearchParams<"u"?URLSearchParams:is,hd=typeof FormData<"u"?FormData:null,dd=typeof Blob<"u"?Blob:null,pd={isBrowser:!0,classes:{URLSearchParams:fd,FormData:hd,Blob:dd},protocols:["http","https","file","blob","url","data"]},Go=typeof window<"u"&&typeof document<"u",md=(t=>Go&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),gd=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),yd=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Go,hasStandardBrowserEnv:md,hasStandardBrowserWebWorkerEnv:gd},Symbol.toStringTag,{value:"Module"})),X={...yd,...pd};function vd(t,e){return Ge(t,new X.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,o){return X.isNode&&v.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function xd(t){return v.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function bd(t){const e={},n=Object.keys(t);let s;const r=n.length;let o;for(s=0;s<r;s++)o=n[s],e[o]=t[o];return e}function Ko(t){function e(n,s,r,o){let i=n[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),l=o>=n.length;return i=!i&&v.isArray(r)?r.length:i,l?(v.hasOwnProp(r,i)?r[i]=[r[i],s]:r[i]=s,!a):((!r[i]||!v.isObject(r[i]))&&(r[i]=[]),e(n,s,r[i],o)&&v.isArray(r[i])&&(r[i]=bd(r[i])),!a)}if(v.isFormData(t)&&v.isFunction(t.entries)){const n={};return v.forEachEntry(t,(s,r)=>{e(xd(s),r,n,0)}),n}return null}function wd(t,e,n){if(v.isString(t))try{return(e||JSON.parse)(t),v.trim(t)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(t)}const os={transitional:qo,adapter:["xhr","http"],transformRequest:[function(e,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,o=v.isObject(e);if(o&&v.isHTMLForm(e)&&(e=new FormData(e)),v.isFormData(e))return r&&r?JSON.stringify(Ko(e)):e;if(v.isArrayBuffer(e)||v.isBuffer(e)||v.isStream(e)||v.isFile(e)||v.isBlob(e))return e;if(v.isArrayBufferView(e))return e.buffer;if(v.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return vd(e,this.formSerializer).toString();if((a=v.isFileList(e))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ge(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return o||r?(n.setContentType("application/json",!1),wd(e)):e}],transformResponse:[function(e){const n=this.transitional||os.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(e&&v.isString(e)&&(s&&!this.responseType||r)){const i=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(a){if(i)throw a.name==="SyntaxError"?R.from(a,R.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:X.classes.FormData,Blob:X.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],t=>{os.headers[t]={}});const as=os,Ed=v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Sd=t=>{const e={};let n,s,r;return t&&t.split(`
29
- `).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),s=i.substring(r+1).trim(),!(!n||e[n]&&Ed[n])&&(n==="set-cookie"?e[n]?e[n].push(s):e[n]=[s]:e[n]=e[n]?e[n]+", "+s:s)}),e},_r=Symbol("internals");function $t(t){return t&&String(t).trim().toLowerCase()}function ve(t){return t===!1||t==null?t:v.isArray(t)?t.map(ve):String(t)}function Td(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(t);)e[s[1]]=s[2];return e}const Pd=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function dn(t,e,n,s,r){if(v.isFunction(s))return s.call(this,e,n);if(r&&(e=n),!!v.isString(e)){if(v.isString(s))return e.indexOf(s)!==-1;if(v.isRegExp(s))return s.test(e)}}function Ad(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,s)=>n.toUpperCase()+s)}function Cd(t,e){const n=v.toCamelCase(" "+e);["get","set","has"].forEach(s=>{Object.defineProperty(t,s+n,{value:function(r,o,i){return this[s].call(this,e,r,o,i)},configurable:!0})})}class Ke{constructor(e){e&&this.set(e)}set(e,n,s){const r=this;function o(a,l,c){const f=$t(l);if(!f)throw new Error("header name must be a non-empty string");const u=v.findKey(r,f);(!u||r[u]===void 0||c===!0||c===void 0&&r[u]!==!1)&&(r[u||l]=ve(a))}const i=(a,l)=>v.forEach(a,(c,f)=>o(c,f,l));return v.isPlainObject(e)||e instanceof this.constructor?i(e,n):v.isString(e)&&(e=e.trim())&&!Pd(e)?i(Sd(e),n):e!=null&&o(n,e,s),this}get(e,n){if(e=$t(e),e){const s=v.findKey(this,e);if(s){const r=this[s];if(!n)return r;if(n===!0)return Td(r);if(v.isFunction(n))return n.call(this,r,s);if(v.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=$t(e),e){const s=v.findKey(this,e);return!!(s&&this[s]!==void 0&&(!n||dn(this,this[s],s,n)))}return!1}delete(e,n){const s=this;let r=!1;function o(i){if(i=$t(i),i){const a=v.findKey(s,i);a&&(!n||dn(s,s[a],a,n))&&(delete s[a],r=!0)}}return v.isArray(e)?e.forEach(o):o(e),r}clear(e){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const o=n[s];(!e||dn(this,this[o],o,e,!0))&&(delete this[o],r=!0)}return r}normalize(e){const n=this,s={};return v.forEach(this,(r,o)=>{const i=v.findKey(s,o);if(i){n[i]=ve(r),delete n[o];return}const a=e?Ad(o):String(o).trim();a!==o&&delete n[o],n[a]=ve(r),s[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return v.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=e&&v.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
30
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const s=new this(e);return n.forEach(r=>s.set(r)),s}static accessor(e){const s=(this[_r]=this[_r]={accessors:{}}).accessors,r=this.prototype;function o(i){const a=$t(i);s[a]||(Cd(r,i),s[a]=!0)}return v.isArray(e)?e.forEach(o):o(e),this}}Ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);v.reduceDescriptors(Ke.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(s){this[n]=s}}});v.freezeMethods(Ke);const st=Ke;function pn(t,e){const n=this||as,s=e||n,r=st.from(s.headers);let o=s.data;return v.forEach(t,function(a){o=a.call(n,o,r.normalize(),e?e.status:void 0)}),r.normalize(),o}function Xo(t){return!!(t&&t.__CANCEL__)}function ae(t,e,n){R.call(this,t??"canceled",R.ERR_CANCELED,e,n),this.name="CanceledError"}v.inherits(ae,R,{__CANCEL__:!0});function Rd(t,e,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?t(n):e(new R("Request failed with status code "+n.status,[R.ERR_BAD_REQUEST,R.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Od=X.hasStandardBrowserEnv?{write(t,e,n,s,r,o){const i=[t+"="+encodeURIComponent(e)];v.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),v.isString(s)&&i.push("path="+s),v.isString(r)&&i.push("domain="+r),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Vd(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Md(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Yo(t,e){return t&&!Vd(e)?Md(t,e):e}const kd=X.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function r(o){let i=o;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=r(window.location.href),function(i){const a=v.isString(i)?r(i):i;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return!0}}();function Ld(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Dd(t,e){t=t||10;const n=new Array(t),s=new Array(t);let r=0,o=0,i;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),f=s[o];i||(i=c),n[r]=l,s[r]=c;let u=o,h=0;for(;u!==r;)h+=n[u++],u=u%t;if(r=(r+1)%t,r===o&&(o=(o+1)%t),c-i<e)return;const d=f&&c-f;return d?Math.round(h*1e3/d):void 0}}function Nr(t,e){let n=0;const s=Dd(50,250);return r=>{const o=r.loaded,i=r.lengthComputable?r.total:void 0,a=o-n,l=s(a),c=o<=i;n=o;const f={loaded:o,total:i,progress:i?o/i:void 0,bytes:a,rate:l||void 0,estimated:l&&i&&c?(i-o)/l:void 0,event:r};f[e?"download":"upload"]=!0,t(f)}}const jd=typeof XMLHttpRequest<"u",_d=jd&&function(t){return new Promise(function(n,s){let r=t.data;const o=st.from(t.headers).normalize();let{responseType:i,withXSRFToken:a}=t,l;function c(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}let f;if(v.isFormData(r)){if(X.hasStandardBrowserEnv||X.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((f=o.getContentType())!==!1){const[m,...y]=f?f.split(";").map(w=>w.trim()).filter(Boolean):[];o.setContentType([m||"multipart/form-data",...y].join("; "))}}let u=new XMLHttpRequest;if(t.auth){const m=t.auth.username||"",y=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(m+":"+y))}const h=Yo(t.baseURL,t.url);u.open(t.method.toUpperCase(),$o(h,t.params,t.paramsSerializer),!0),u.timeout=t.timeout;function d(){if(!u)return;const m=st.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),w={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:m,config:t,request:u};Rd(function(x){n(x),c()},function(x){s(x),c()},w),u=null}if("onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){u&&(s(new R("Request aborted",R.ECONNABORTED,t,u)),u=null)},u.onerror=function(){s(new R("Network Error",R.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let y=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const w=t.transitional||qo;t.timeoutErrorMessage&&(y=t.timeoutErrorMessage),s(new R(y,w.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,t,u)),u=null},X.hasStandardBrowserEnv&&(a&&v.isFunction(a)&&(a=a(t)),a||a!==!1&&kd(h))){const m=t.xsrfHeaderName&&t.xsrfCookieName&&Od.read(t.xsrfCookieName);m&&o.set(t.xsrfHeaderName,m)}r===void 0&&o.setContentType(null),"setRequestHeader"in u&&v.forEach(o.toJSON(),function(y,w){u.setRequestHeader(w,y)}),v.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),i&&i!=="json"&&(u.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&u.addEventListener("progress",Nr(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Nr(t.onUploadProgress)),(t.cancelToken||t.signal)&&(l=m=>{u&&(s(!m||m.type?new ae(null,t,u):m),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l)));const p=Ld(h);if(p&&X.protocols.indexOf(p)===-1){s(new R("Unsupported protocol "+p+":",R.ERR_BAD_REQUEST,t));return}u.send(r||null)})},Ln={http:od,xhr:_d};v.forEach(Ln,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Br=t=>`- ${t}`,Nd=t=>v.isFunction(t)||t===null||t===!1,Jo={getAdapter:t=>{t=v.isArray(t)?t:[t];const{length:e}=t;let n,s;const r={};for(let o=0;o<e;o++){n=t[o];let i;if(s=n,!Nd(n)&&(s=Ln[(i=String(n)).toLowerCase()],s===void 0))throw new R(`Unknown adapter '${i}'`);if(s)break;r[i||"#"+o]=s}if(!s){const o=Object.entries(r).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=e?o.length>1?`since :
31
- `+o.map(Br).join(`
32
- `):" "+Br(o[0]):"as no adapter specified";throw new R("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return s},adapters:Ln};function mn(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ae(null,t)}function Fr(t){return mn(t),t.headers=st.from(t.headers),t.data=pn.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Jo.getAdapter(t.adapter||as.adapter)(t).then(function(s){return mn(t),s.data=pn.call(t,t.transformResponse,s),s.headers=st.from(s.headers),s},function(s){return Xo(s)||(mn(t),s&&s.response&&(s.response.data=pn.call(t,t.transformResponse,s.response),s.response.headers=st.from(s.response.headers))),Promise.reject(s)})}const Ir=t=>t instanceof st?t.toJSON():t;function _t(t,e){e=e||{};const n={};function s(c,f,u){return v.isPlainObject(c)&&v.isPlainObject(f)?v.merge.call({caseless:u},c,f):v.isPlainObject(f)?v.merge({},f):v.isArray(f)?f.slice():f}function r(c,f,u){if(v.isUndefined(f)){if(!v.isUndefined(c))return s(void 0,c,u)}else return s(c,f,u)}function o(c,f){if(!v.isUndefined(f))return s(void 0,f)}function i(c,f){if(v.isUndefined(f)){if(!v.isUndefined(c))return s(void 0,c)}else return s(void 0,f)}function a(c,f,u){if(u in e)return s(c,f);if(u in t)return s(void 0,c)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(c,f)=>r(Ir(c),Ir(f),!0)};return v.forEach(Object.keys(Object.assign({},t,e)),function(f){const u=l[f]||r,h=u(t[f],e[f],f);v.isUndefined(h)&&u!==a||(n[f]=h)}),n}const Zo="1.6.5",ls={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ls[t]=function(s){return typeof s===t||"a"+(e<1?"n ":" ")+t}});const Ur={};ls.transitional=function(e,n,s){function r(o,i){return"[Axios v"+Zo+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,a)=>{if(e===!1)throw new R(r(i," has been removed"+(n?" in "+n:"")),R.ERR_DEPRECATED);return n&&!Ur[i]&&(Ur[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,i,a):!0}};function Bd(t,e,n){if(typeof t!="object")throw new R("options must be an object",R.ERR_BAD_OPTION_VALUE);const s=Object.keys(t);let r=s.length;for(;r-- >0;){const o=s[r],i=e[o];if(i){const a=t[o],l=a===void 0||i(a,o,t);if(l!==!0)throw new R("option "+o+" must be "+l,R.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new R("Unknown option "+o,R.ERR_BAD_OPTION)}}const Dn={assertOptions:Bd,validators:ls},ct=Dn.validators;class ke{constructor(e){this.defaults=e,this.interceptors={request:new jr,response:new jr}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=_t(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&Dn.assertOptions(s,{silentJSONParsing:ct.transitional(ct.boolean),forcedJSONParsing:ct.transitional(ct.boolean),clarifyTimeoutError:ct.transitional(ct.boolean)},!1),r!=null&&(v.isFunction(r)?n.paramsSerializer={serialize:r}:Dn.assertOptions(r,{encode:ct.function,serialize:ct.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&v.merge(o.common,o[n.method]);o&&v.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=st.concat(i,o);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let f,u=0,h;if(!l){const p=[Fr.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,c),h=p.length,f=Promise.resolve(n);u<h;)f=f.then(p[u++],p[u++]);return f}h=a.length;let d=n;for(u=0;u<h;){const p=a[u++],m=a[u++];try{d=p(d)}catch(y){m.call(this,y);break}}try{f=Fr.call(this,d)}catch(p){return Promise.reject(p)}for(u=0,h=c.length;u<h;)f=f.then(c[u++],c[u++]);return f}getUri(e){e=_t(this.defaults,e);const n=Yo(e.baseURL,e.url);return $o(n,e.params,e.paramsSerializer)}}v.forEach(["delete","get","head","options"],function(e){ke.prototype[e]=function(n,s){return this.request(_t(s||{},{method:e,url:n,data:(s||{}).data}))}});v.forEach(["post","put","patch"],function(e){function n(s){return function(o,i,a){return this.request(_t(a||{},{method:e,headers:s?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}ke.prototype[e]=n(),ke.prototype[e+"Form"]=n(!0)});const xe=ke;class cs{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const s=this;this.promise.then(r=>{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(a=>{s.subscribe(a),o=a}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},e(function(o,i,a){s.reason||(s.reason=new ae(o,i,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new cs(function(r){e=r}),cancel:e}}}const Fd=cs;function Id(t){return function(n){return t.apply(null,n)}}function Ud(t){return v.isObject(t)&&t.isAxiosError===!0}const jn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(jn).forEach(([t,e])=>{jn[e]=t});const Wd=jn;function Qo(t){const e=new xe(t),n=Lo(xe.prototype.request,e);return v.extend(n,xe.prototype,e,{allOwnKeys:!0}),v.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return Qo(_t(t,r))},n}const j=Qo(as);j.Axios=xe;j.CanceledError=ae;j.CancelToken=Fd;j.isCancel=Xo;j.VERSION=Zo;j.toFormData=Ge;j.AxiosError=R;j.Cancel=j.CanceledError;j.all=function(e){return Promise.all(e)};j.spread=Id;j.isAxiosError=Ud;j.mergeConfig=_t;j.AxiosHeaders=st;j.formToJSON=t=>Ko(v.isHTMLForm(t)?new FormData(t):t);j.getAdapter=Jo.getAdapter;j.HttpStatusCode=Wd;j.default=j;const zd=j,Hd=`[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
33
- `;function $d(){return g.jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:[g.jsxRuntimeExports.jsx("path",{stroke:"#85858A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M22 8.27V4.23C22 2.64 21.36 2 19.77 2h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23zM10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97zM10.5 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23H4.23c-1.59 0-2.23.64-2.23 2.23v4.04C2 21.36 2.64 22 4.23 22h4.04c1.59 0 2.23-.64 2.23-2.23z"}),g.jsxRuntimeExports.jsx("path",{stroke:"#85858A",strokeLinecap:"round",strokeWidth:"1.5",d:"M15 15.5h6M15 19.5h6"})]})}function qd(){return g.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:g.jsxRuntimeExports.jsx("path",{stroke:"#85858A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M22 8.52V3.98C22 2.57 21.36 2 19.77 2h-4.04c-1.59 0-2.23.57-2.23 1.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97zM22 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23zM10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97zM10.5 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23H4.23c-1.59 0-2.23.64-2.23 2.23v4.04C2 21.36 2.64 22 4.23 22h4.04c1.59 0 2.23-.64 2.23-2.23z"})})}const Gd=`.side-bar{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s;padding:0 8px}.side-bar.expanded{width:18rem}.side-bar.collapsed{width:64px;padding-left:4px;padding-right:4px}.side-bar__menu{margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px}.side-bar__menu.collapsed{margin-left:-4px;margin-right:-4px;padding-left:4px;padding-right:4px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px}.side-bar__logout-btn__text.collapsed{display:none}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:0 16px;min-height:48px;border-radius:.375rem}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__logout-btn.collapsed{justify-content:center}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;margin-top:4px}.menu-item__wrapper:first-child,.menu-item__wrapper.collapsed{margin-top:0}.menu-item__wrapper.collapsed.level-1{margin-top:4px}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a!important;color:#009d4f!important}.menu-item__link.level-0{height:auto}.menu-item__link.menu-item__link.collapsed.level-0{display:none}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0}.menu-item__icon.collapsed.level-1{width:100%}.menu-item__icon.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:.5rem;padding-right:12px;color:#000}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-1{text-align:center;margin-left:0;display:none}.menu-item__label.level-0{color:#85858a}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:-3px}.menu-item__icon-arrow__wrapper.expanded{right:0}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{margin-top:4px;overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}
34
- `;function Kd(t){return g.jsxRuntimeExports.jsx(g.ShadowDomWrapper,{styles:[Hd,Gd],style:{zIndex:1200},children:g.jsxRuntimeExports.jsx(Xd,{...t})})}function Xd(t){const{baseUrl:e,menuPath:n,logout:s}=t,r=_e(),[o,i]=g.reactExports.useState([]),[a,l]=g.reactExports.useState(!1),c=(ko(o,r.pathname)||[]).filter(b=>b.parentKey!==0),[f,u]=g.reactExports.useState({}),h=b=>{u({...f,[b]:!f[b]})},d=()=>{l(!a)};g.reactExports.useEffect(()=>{(async()=>{const x=e+(n||"/global-menu-config/api/v1/menu-items/user"),E=await zd.get(x,{withCredentials:!0}).then(T=>T.data),S={};E.forEach(T=>{T.children&&(S[T.id]=!0)}),u(S),i(E.map(T=>({...T,parentKey:0})))})()},[e,n]);const[p,m]=g.reactExports.useState(!1),y=a?"collapsed":"expanded",w=b=>`${b} ${y}`;return g.jsxRuntimeExports.jsxs("div",{className:w("side-bar"),children:[g.jsxRuntimeExports.jsx("div",{className:w("side-bar__wrapper-toggle-btn"),children:g.jsxRuntimeExports.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:d,children:a?g.jsxRuntimeExports.jsx($d,{}):g.jsxRuntimeExports.jsx(qd,{})})}),g.jsxRuntimeExports.jsx(ai,{className:w("side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:o.map(b=>{const x=E=>c.some(S=>S.id===E);return g.jsxRuntimeExports.jsx(Mo,{item:b,isActive:x,isCollapsed:a,expanded:E=>f[E],toggleExpand:h},b.id)})}),g.jsxRuntimeExports.jsxs("div",{className:w("side-bar__wrap-btn-logout"),children:[g.jsxRuntimeExports.jsxs("button",{className:w("side-bar__logout-btn"),onClick:()=>m(!0),children:[g.jsxRuntimeExports.jsx(Ph,{}),g.jsxRuntimeExports.jsx("span",{className:w("side-bar__logout-btn__text"),children:"Logout"})]}),g.jsxRuntimeExports.jsx(g.LogoutConfirmModal,{isOpen:p,onClose:()=>m(!1),onConfirm:s})]})]})}function Yd(t){return g.jsxRuntimeExports.jsx(Sa,{children:g.jsxRuntimeExports.jsx(Kd,{...t})})}const Jd=g.s(Yd,{props:{baseUrl:"string",menuPath:"string",logout:"function"}});customElements.define("global-menu",Jd);
28
+ */function jn(){return jn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},jn.apply(this,arguments)}function Ia(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,o;for(o=0;o<r.length;o++)s=r[o],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function Wa(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Ua(t,e){return t.button===0&&(!e||e==="_self")&&!Wa(t)}const za=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Ha="startTransition",jr=p.React[Ha];function $a(t){let{basename:e,children:n,future:r,window:s}=t,o=p.reactExports.useRef();o.current==null&&(o.current=Sa({window:s,v5Compat:!0}));let i=o.current,[a,l]=p.reactExports.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},f=p.reactExports.useCallback(c=>{u&&jr?jr(()=>l(c)):l(c)},[l,u]);return p.reactExports.useLayoutEffect(()=>i.listen(f),[i,f]),p.reactExports.createElement(Fa,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}const qa=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ga=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xa=p.reactExports.forwardRef(function(e,n){let{onClick:r,relative:s,reloadDocument:o,replace:i,state:a,target:l,to:u,preventScrollReset:f,unstable_viewTransition:c}=e,h=Ia(e,za),{basename:d}=p.reactExports.useContext(Kt),m,g=!1;if(typeof u=="string"&&Ga.test(u)&&(m=u,qa))try{let v=new URL(window.location.href),E=u.startsWith("//")?new URL(v.protocol+u):new URL(u),S=li(E.pathname,d);E.origin===v.origin&&S!=null?u=S+E.search+E.hash:g=!0}catch{}let y=ja(u,{relative:s}),b=Ka(u,{replace:i,state:a,target:l,preventScrollReset:f,relative:s,unstable_viewTransition:c});function w(v){r&&r(v),v.defaultPrevented||b(v)}return p.reactExports.createElement("a",jn({},h,{href:m||y,onClick:g||o?r:w,ref:n,target:l}))});var Lr;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Lr||(Lr={}));var kr;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(kr||(kr={}));function Ka(t,e){let{target:n,replace:r,state:s,preventScrollReset:o,relative:i,unstable_viewTransition:a}=e===void 0?{}:e,l=La(),u=Xe(),f=mi(t,{relative:i});return p.reactExports.useCallback(c=>{if(Ua(c,n)){c.preventDefault();let h=r!==void 0?r:Me(u)===Me(f);l(t,{replace:h,state:s,preventScrollReset:o,relative:i,unstable_viewTransition:a})}},[u,l,f,r,s,n,t,o,i,a])}var Ya=typeof global=="object"&&global&&global.Object===Object&&global;const Ja=Ya;var Za=typeof self=="object"&&self&&self.Object===Object&&self,Qa=Ja||Za||Function("return this")();const vi=Qa;var tl=vi.Symbol;const Le=tl;var xi=Object.prototype,el=xi.hasOwnProperty,nl=xi.toString,Zt=Le?Le.toStringTag:void 0;function rl(t){var e=el.call(t,Zt),n=t[Zt];try{t[Zt]=void 0;var r=!0}catch{}var s=nl.call(t);return r&&(e?t[Zt]=n:delete t[Zt]),s}var sl=Object.prototype,il=sl.toString;function ol(t){return il.call(t)}var al="[object Null]",ll="[object Undefined]",Dr=Le?Le.toStringTag:void 0;function cl(t){return t==null?t===void 0?ll:al:Dr&&Dr in Object(t)?rl(t):ol(t)}function ul(t){return t!=null&&typeof t=="object"}var fl="[object Symbol]";function hl(t){return typeof t=="symbol"||ul(t)&&cl(t)==fl}var dl=/\s/;function pl(t){for(var e=t.length;e--&&dl.test(t.charAt(e)););return e}var ml=/^\s+/;function gl(t){return t&&t.slice(0,pl(t)+1).replace(ml,"")}function ke(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var _r=0/0,yl=/^[-+]0x[0-9a-f]+$/i,vl=/^0b[01]+$/i,xl=/^0o[0-7]+$/i,bl=parseInt;function Nr(t){if(typeof t=="number")return t;if(hl(t))return _r;if(ke(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=ke(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=gl(t);var n=vl.test(t);return n||xl.test(t)?bl(t.slice(2),n?2:8):yl.test(t)?_r:+t}var wl=function(){return vi.Date.now()};const fn=wl;var El="Expected a function",Sl=Math.max,Tl=Math.min;function Pe(t,e,n){var r,s,o,i,a,l,u=0,f=!1,c=!1,h=!0;if(typeof t!="function")throw new TypeError(El);e=Nr(e)||0,ke(n)&&(f=!!n.leading,c="maxWait"in n,o=c?Sl(Nr(n.maxWait)||0,e):o,h="trailing"in n?!!n.trailing:h);function d(T){var P=r,A=s;return r=s=void 0,u=T,i=t.apply(A,P),i}function m(T){return u=T,a=setTimeout(b,e),f?d(T):i}function g(T){var P=T-l,A=T-u,R=e-P;return c?Tl(R,o-A):R}function y(T){var P=T-l,A=T-u;return l===void 0||P>=e||P<0||c&&A>=o}function b(){var T=fn();if(y(T))return w(T);a=setTimeout(b,g(T))}function w(T){return a=void 0,h&&r?d(T):(r=s=void 0,i)}function v(){a!==void 0&&clearTimeout(a),u=0,r=l=s=a=void 0}function E(){return a===void 0?i:w(fn())}function S(){var T=fn(),P=y(T);if(r=arguments,s=this,l=T,P){if(a===void 0)return m(l);if(c)return clearTimeout(a),a=setTimeout(b,e),d(l)}return a===void 0&&(a=setTimeout(b,e)),i}return S.cancel=v,S.flush=E,S}var Pl="Expected a function";function Al(t,e,n){var r=!0,s=!0;if(typeof t!="function")throw new TypeError(Pl);return ke(n)&&(r="leading"in n?!!n.leading:r,s="trailing"in n?!!n.trailing:s),Pe(t,e,{leading:r,maxWait:e,trailing:s})}var Cl=!!(typeof window<"u"&&window.document&&window.document.createElement),Rl=Cl;const bi=p.getDefaultExportFromCjs(Rl);var Wt=function(){return Wt=Object.assign||function(e){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Wt.apply(this,arguments)},Ft=null,Br=null;bi&&window.addEventListener("resize",function(){Br!==window.devicePixelRatio&&(Br=window.devicePixelRatio,Ft=null)});function Fr(){if(Ft===null){if(typeof document>"u")return Ft=0,Ft;var t=document.body,e=document.createElement("div");e.classList.add("simplebar-hide-scrollbar"),t.appendChild(e);var n=e.getBoundingClientRect().right;t.removeChild(e),Ft=n}return Ft}function wi(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function Ei(t){return!t||!t.ownerDocument?document:t.ownerDocument}var Si=function(t){var e={},n=Array.prototype.reduce.call(t,function(r,s){var o=s.name.match(/data-simplebar-(.+)/);if(o){var i=o[1].replace(/\W+(.)/g,function(a,l){return l.toUpperCase()});switch(s.value){case"true":r[i]=!0;break;case"false":r[i]=!1;break;case void 0:r[i]=!0;break;default:r[i]=s.value}}return r},e);return n};function Ti(t,e){var n;t&&(n=t.classList).add.apply(n,e.split(" "))}function Pi(t,e){t&&e.split(" ").forEach(function(n){t.classList.remove(n)})}function Ai(t){return".".concat(t.split(" ").join("."))}var Ol=Object.freeze({__proto__:null,getElementWindow:wi,getElementDocument:Ei,getOptions:Si,addClasses:Ti,removeClasses:Pi,classNamesToQuery:Ai}),dt=wi,hn=Ei,Vl=Si,pt=Ti,mt=Pi,H=Ai,xe=function(){function t(e,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var s=dt(r.el);r.scrollXTicking||(s.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(s.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,pt(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){mt(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(pt(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){mt(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(s){r.mouseX=s.clientX,r.mouseY=s.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(s){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,i;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(o=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(i=r.isWithinBounds(r.axis.y.track.rect)),(o||i)&&(s.stopPropagation(),s.type==="pointerdown"&&s.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(s,"x"):r.onTrackClick(s,"x")),i&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(s,"y"):r.onTrackClick(s,"y"))))}},this.drag=function(s){var o,i,a,l,u,f,c,h,d,m,g;if(!(!r.draggedAxis||!r.contentWrapperEl)){var y,b=r.axis[r.draggedAxis].track,w=(i=(o=b.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&i!==void 0?i:0,v=r.axis[r.draggedAxis].scrollbar,E=(l=(a=r.contentWrapperEl)===null||a===void 0?void 0:a[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&l!==void 0?l:0,S=parseInt((f=(u=r.elStyles)===null||u===void 0?void 0:u[r.axis[r.draggedAxis].sizeAttr])!==null&&f!==void 0?f:"0px",10);s.preventDefault(),s.stopPropagation(),r.draggedAxis==="y"?y=s.pageY:y=s.pageX;var T=y-((h=(c=b.rect)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].offsetAttr])!==null&&h!==void 0?h:0)-r.axis[r.draggedAxis].dragOffset;T=r.draggedAxis==="x"&&r.isRtl?((m=(d=b.rect)===null||d===void 0?void 0:d[r.axis[r.draggedAxis].sizeAttr])!==null&&m!==void 0?m:0)-v.size-T:T;var P=T/(w-v.size),A=P*(E-S);r.draggedAxis==="x"&&r.isRtl&&(A=!((g=t.getRtlHelpers())===null||g===void 0)&&g.isScrollingToNegative?-A:A),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=A}},this.onEndDrag=function(s){var o=hn(r.el),i=dt(r.el);s.preventDefault(),s.stopPropagation(),mt(r.el,r.classNames.dragging),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=i.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(s){s.preventDefault(),s.stopPropagation()},this.el=e,this.options=Wt(Wt({},t.defaultOptions),n),this.classNames=Wt(Wt({},t.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Al(this._onMouseMove,64),this.onWindowResize=Pe(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Pe(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Pe(this._onMouseEntered,this.stopScrollDelay),this.init()}return t.getRtlHelpers=function(){if(t.rtlHelpers)return t.rtlHelpers;var e=document.createElement("div");e.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=e.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var s=t.getOffset(n),o=t.getOffset(r);n.scrollLeft=-999;var i=t.getOffset(r);return document.body.removeChild(n),t.rtlHelpers={isScrollOriginAtZero:s.left!==o.left,isScrollingToNegative:o.left!==i.left},t.rtlHelpers},t.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Fr()}catch{return Fr()}},t.getOffset=function(e){var n=e.getBoundingClientRect(),r=hn(e),s=dt(e);return{top:n.top+(s.pageYOffset||r.documentElement.scrollTop),left:n.left+(s.pageXOffset||r.documentElement.scrollLeft)}},t.prototype.init=function(){bi&&(this.initDOM(),this.rtlHelpers=t.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.prototype.initDOM=function(){var e,n;this.wrapperEl=this.el.querySelector(H(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(H(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(H(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(H(this.classNames.offset)),this.maskEl=this.el.querySelector(H(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,H(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(H(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(H(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(H(this.classNames.track)).concat(H(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(H(this.classNames.track)).concat(H(this.classNames.vertical))),this.axis.x.scrollbar.el=((e=this.axis.x.track.el)===null||e===void 0?void 0:e.querySelector(H(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(H(this.classNames.scrollbar)))||null,this.options.autoHide||(pt(this.axis.x.scrollbar.el,this.classNames.visible),pt(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var e=this,n,r=dt(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var s=!1,o=r.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){s&&r.requestAnimationFrame(function(){e.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){s=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){e.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},t.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var e=dt(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,s=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,i=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var l=this.contentEl.scrollHeight,u=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=s?"".concat(n||u,"px"):"auto",this.placeholderEl.style.height="".concat(l,"px");var f=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&u>n,this.axis.y.isOverflowing=l>f,this.axis.x.isOverflowing=i==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=a==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var c=this.axis.x.isOverflowing?this.scrollbarWidth:0,h=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&u>o-h,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>f-c,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},t.prototype.getScrollbarSize=function(e){var n,r;if(e===void 0&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var s=this.contentEl[this.axis[e].scrollSizeAttr],o=(r=(n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])!==null&&r!==void 0?r:0,i=o/s,a;return a=Math.max(~~(i*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(a=Math.min(a,this.options.scrollbarMaxSize)),a},t.prototype.positionScrollbar=function(e){var n,r,s;e===void 0&&(e="y");var o=this.axis[e].scrollbar;if(!(!this.axis[e].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var i=this.contentWrapperEl[this.axis[e].scrollSizeAttr],a=((n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])||0,l=parseInt(this.elStyles[this.axis[e].sizeAttr],10),u=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];u=e==="x"&&this.isRtl&&(!((r=t.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-u:u,e==="x"&&this.isRtl&&(u=!((s=t.getRtlHelpers())===null||s===void 0)&&s.isScrollingToNegative?u:-u);var f=u/(i-l),c=~~((a-o.size)*f);c=e==="x"&&this.isRtl?-c+(a-o.size):c,o.el.style.transform=e==="x"?"translate3d(".concat(c,"px, 0, 0)"):"translate3d(0, ".concat(c,"px, 0)")}},t.prototype.toggleTrackVisibility=function(e){e===void 0&&(e="y");var n=this.axis[e].track.el,r=this.axis[e].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[e].isOverflowing||this.axis[e].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?r.style.display="block":r.style.display="none")},t.prototype.showScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(pt(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},t.prototype.hideScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(mt(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},t.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},t.prototype.onMouseMoveForAxis=function(e){e===void 0&&(e="y");var n=this.axis[e];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(e),pt(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?pt(n.scrollbar.el,this.classNames.hover):mt(n.scrollbar.el,this.classNames.hover)):(mt(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},t.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),mt(this.axis[e].track.el,this.classNames.hover),mt(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},t.prototype.onDragStart=function(e,n){var r;n===void 0&&(n="y");var s=hn(this.el),o=dt(this.el),i=this.axis[n].scrollbar,a=n==="y"?e.pageY:e.pageX;this.axis[n].dragOffset=a-(((r=i.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,pt(this.el,this.classNames.dragging),s.addEventListener("mousemove",this.drag,!0),s.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(s.addEventListener("click",this.preventClick,!0),s.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(e,n){var r=this,s,o,i,a;n===void 0&&(n="y");var l=this.axis[n];if(!(!this.options.clickOnTrack||!l.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var u=dt(this.el);this.axis[n].scrollbar.rect=l.scrollbar.el.getBoundingClientRect();var f=this.axis[n].scrollbar,c=(o=(s=f.rect)===null||s===void 0?void 0:s[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,h=parseInt((a=(i=this.elStyles)===null||i===void 0?void 0:i[this.axis[n].sizeAttr])!==null&&a!==void 0?a:"0px",10),d=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],m=n==="y"?this.mouseY-c:this.mouseX-c,g=m<0?-1:1,y=g===-1?d-h:d+h,b=40,w=function(){r.contentWrapperEl&&(g===-1?d>y&&(d-=b,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=d,u.requestAnimationFrame(w)):d<y&&(d+=b,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=d,u.requestAnimationFrame(w)))};w()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var e=dt(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},t.prototype.unMount=function(){this.removeListeners()},t.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.prototype.findChild=function(e,n){var r=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(s){return r.call(s,n)})[0]},t.rtlHelpers=null,t.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},t.getOptions=Vl,t.helpers=Ol,t}(),G=function(){return G=Object.assign||function(e){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},G.apply(this,arguments)};function Ml(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n}var Ci=p.reactExports.forwardRef(function(t,e){var n=t.children,r=t.scrollableNodeProps,s=r===void 0?{}:r,o=Ml(t,["children","scrollableNodeProps"]),i=p.reactExports.useRef(),a=p.reactExports.useRef(),l=p.reactExports.useRef(),u={},f={};Object.keys(o).forEach(function(d){Object.prototype.hasOwnProperty.call(xe.defaultOptions,d)?u[d]=o[d]:f[d]=o[d]});var c=G(G({},xe.defaultOptions.classNames),u.classNames),h=G(G({},s),{className:"".concat(c.contentWrapper).concat(s.className?" ".concat(s.className):""),tabIndex:0,role:"region","aria-label":u.ariaLabel||xe.defaultOptions.ariaLabel});return p.reactExports.useEffect(function(){var d;return a.current=h.ref?h.ref.current:a.current,i.current&&(d=new xe(i.current,G(G(G({},u),a.current&&{scrollableNode:a.current}),l.current&&{contentNode:l.current})),typeof e=="function"?e(d):e&&(e.current=d)),function(){d==null||d.unMount(),d=null,typeof e=="function"&&e(null)}},[]),p.reactExports.createElement("div",G({"data-simplebar":"init",ref:i},f),p.reactExports.createElement("div",{className:c.wrapper},p.reactExports.createElement("div",{className:c.heightAutoObserverWrapperEl},p.reactExports.createElement("div",{className:c.heightAutoObserverEl})),p.reactExports.createElement("div",{className:c.mask},p.reactExports.createElement("div",{className:c.offset},typeof n=="function"?n({scrollableNodeRef:a,scrollableNodeProps:G(G({},h),{ref:a}),contentNodeRef:l,contentNodeProps:{className:c.contentEl,ref:l}}):p.reactExports.createElement("div",G({},h),p.reactExports.createElement("div",{className:c.contentEl},n)))),p.reactExports.createElement("div",{className:c.placeholder})),p.reactExports.createElement("div",{className:"".concat(c.track," simplebar-horizontal")},p.reactExports.createElement("div",{className:c.scrollbar})),p.reactExports.createElement("div",{className:"".concat(c.track," simplebar-vertical")},p.reactExports.createElement("div",{className:c.scrollbar})))});Ci.displayName="SimpleBar";const Ri=p.reactExports.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Ke=p.reactExports.createContext({}),Qn=p.reactExports.createContext(null),Ye=typeof document<"u",jl=Ye?p.reactExports.useLayoutEffect:p.reactExports.useEffect,Oi=p.reactExports.createContext({strict:!1}),tr=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Ll="framerAppearId",Vi="data-"+tr(Ll);function kl(t,e,n,r){const{visualElement:s}=p.reactExports.useContext(Ke),o=p.reactExports.useContext(Oi),i=p.reactExports.useContext(Qn),a=p.reactExports.useContext(Ri).reducedMotion,l=p.reactExports.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(t,{visualState:e,parent:s,props:n,presenceContext:i,blockInitialAnimation:i?i.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;p.reactExports.useInsertionEffect(()=>{u&&u.update(n,i)});const f=p.reactExports.useRef(!!(n[Vi]&&!window.HandoffComplete));return jl(()=>{u&&(u.render(),f.current&&u.animationState&&u.animationState.animateChanges())}),p.reactExports.useEffect(()=>{u&&(u.updateFeatures(),!f.current&&u.animationState&&u.animationState.animateChanges(),f.current&&(f.current=!1,window.HandoffComplete=!0))}),u}function Ut(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Dl(t,e,n){return p.reactExports.useCallback(r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):Ut(n)&&(n.current=r))},[e])}function le(t){return typeof t=="string"||Array.isArray(t)}function Je(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const er=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],nr=["initial",...er];function Ze(t){return Je(t.animate)||nr.some(e=>le(t[e]))}function Mi(t){return!!(Ze(t)||t.variants)}function _l(t,e){if(Ze(t)){const{initial:n,animate:r}=t;return{initial:n===!1||le(n)?n:void 0,animate:le(r)?r:void 0}}return t.inherit!==!1?e:{}}function Nl(t){const{initial:e,animate:n}=_l(t,p.reactExports.useContext(Ke));return p.reactExports.useMemo(()=>({initial:e,animate:n}),[Ir(e),Ir(n)])}function Ir(t){return Array.isArray(t)?t.join(" "):t}const Wr={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ce={};for(const t in Wr)ce[t]={isEnabled:e=>Wr[t].some(n=>!!e[n])};function Bl(t){for(const e in t)ce[e]={...ce[e],...t[e]}}const ji=p.reactExports.createContext({}),Li=p.reactExports.createContext({}),Fl=Symbol.for("motionComponentSymbol");function Il({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:s}){t&&Bl(t);function o(a,l){let u;const f={...p.reactExports.useContext(Ri),...a,layoutId:Wl(a)},{isStatic:c}=f,h=Nl(a),d=r(a,c);if(!c&&Ye){h.visualElement=kl(s,d,f,e);const m=p.reactExports.useContext(Li),g=p.reactExports.useContext(Oi).strict;h.visualElement&&(u=h.visualElement.loadFeatures(f,g,t,m))}return p.reactExports.createElement(Ke.Provider,{value:h},u&&h.visualElement?p.reactExports.createElement(u,{visualElement:h.visualElement,...f}):null,n(s,a,Dl(d,h.visualElement,l),d,c,h.visualElement))}const i=p.reactExports.forwardRef(o);return i[Fl]=s,i}function Wl({layoutId:t}){const e=p.reactExports.useContext(ji).id;return e&&t!==void 0?e+"-"+t:t}function Ul(t){function e(r,s={}){return Il(t(r,s))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(r,s)=>(n.has(s)||n.set(s,e(s)),n.get(s))})}const zl=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function rr(t){return typeof t!="string"||t.includes("-")?!1:!!(zl.indexOf(t)>-1||/[A-Z]/.test(t))}const De={};function Hl(t){Object.assign(De,t)}const he=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],jt=new Set(he);function ki(t,{layout:e,layoutId:n}){return jt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!De[t]||t==="opacity")}const $=t=>!!(t&&t.getVelocity),$l={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ql=he.length;function Gl(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,s){let o="";for(let i=0;i<ql;i++){const a=he[i];if(t[a]!==void 0){const l=$l[a]||a;o+=`${l}(${t[a]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),s?o=s(t,r?"":o):n&&r&&(o="none"),o}const Di=t=>e=>typeof e=="string"&&e.startsWith(t),_i=Di("--"),Ln=Di("var(--"),Xl=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Kl=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Et=(t,e,n)=>Math.min(Math.max(n,t),e),Lt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},re={...Lt,transform:t=>Et(0,1,t)},be={...Lt,default:1},se=t=>Math.round(t*1e5)/1e5,Qe=/(-)?([\d]*\.?[\d])+/g,Ni=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Yl=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function de(t){return typeof t=="string"}const pe=t=>({test:e=>de(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),yt=pe("deg"),st=pe("%"),C=pe("px"),Jl=pe("vh"),Zl=pe("vw"),Ur={...st,parse:t=>st.parse(t)/100,transform:t=>st.transform(t*100)},zr={...Lt,transform:Math.round},Bi={borderWidth:C,borderTopWidth:C,borderRightWidth:C,borderBottomWidth:C,borderLeftWidth:C,borderRadius:C,radius:C,borderTopLeftRadius:C,borderTopRightRadius:C,borderBottomRightRadius:C,borderBottomLeftRadius:C,width:C,maxWidth:C,height:C,maxHeight:C,size:C,top:C,right:C,bottom:C,left:C,padding:C,paddingTop:C,paddingRight:C,paddingBottom:C,paddingLeft:C,margin:C,marginTop:C,marginRight:C,marginBottom:C,marginLeft:C,rotate:yt,rotateX:yt,rotateY:yt,rotateZ:yt,scale:be,scaleX:be,scaleY:be,scaleZ:be,skew:yt,skewX:yt,skewY:yt,distance:C,translateX:C,translateY:C,translateZ:C,x:C,y:C,z:C,perspective:C,transformPerspective:C,opacity:re,originX:Ur,originY:Ur,originZ:C,zIndex:zr,fillOpacity:re,strokeOpacity:re,numOctaves:zr};function sr(t,e,n,r){const{style:s,vars:o,transform:i,transformOrigin:a}=t;let l=!1,u=!1,f=!0;for(const c in e){const h=e[c];if(_i(c)){o[c]=h;continue}const d=Bi[c],m=Kl(h,d);if(jt.has(c)){if(l=!0,i[c]=m,!f)continue;h!==(d.default||0)&&(f=!1)}else c.startsWith("origin")?(u=!0,a[c]=m):s[c]=m}if(e.transform||(l||r?s.transform=Gl(t.transform,n,f,r):s.transform&&(s.transform="none")),u){const{originX:c="50%",originY:h="50%",originZ:d=0}=a;s.transformOrigin=`${c} ${h} ${d}`}}const ir=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fi(t,e,n){for(const r in e)!$(e[r])&&!ki(r,n)&&(t[r]=e[r])}function Ql({transformTemplate:t},e,n){return p.reactExports.useMemo(()=>{const r=ir();return sr(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function tc(t,e,n){const r=t.style||{},s={};return Fi(s,r,t),Object.assign(s,Ql(t,e,n)),t.transformValues?t.transformValues(s):s}function ec(t,e,n){const r={},s=tc(t,e,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=s,r}const nc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function _e(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||nc.has(t)}let Ii=t=>!_e(t);function rc(t){t&&(Ii=e=>e.startsWith("on")?!_e(e):t(e))}try{rc(require("@emotion/is-prop-valid").default)}catch{}function sc(t,e,n){const r={};for(const s in t)s==="values"&&typeof t.values=="object"||(Ii(s)||n===!0&&_e(s)||!e&&!_e(s)||t.draggable&&s.startsWith("onDrag"))&&(r[s]=t[s]);return r}function Hr(t,e,n){return typeof t=="string"?t:C.transform(e+n*t)}function ic(t,e,n){const r=Hr(e,t.x,t.width),s=Hr(n,t.y,t.height);return`${r} ${s}`}const oc={offset:"stroke-dashoffset",array:"stroke-dasharray"},ac={offset:"strokeDashoffset",array:"strokeDasharray"};function lc(t,e,n=1,r=0,s=!0){t.pathLength=1;const o=s?oc:ac;t[o.offset]=C.transform(-r);const i=C.transform(e),a=C.transform(n);t[o.array]=`${i} ${a}`}function or(t,{attrX:e,attrY:n,attrScale:r,originX:s,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:l=0,...u},f,c,h){if(sr(t,u,f,h),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:m,dimensions:g}=t;d.transform&&(g&&(m.transform=d.transform),delete d.transform),g&&(s!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=ic(g,s!==void 0?s:.5,o!==void 0?o:.5)),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&lc(d,i,a,l,!1)}const Wi=()=>({...ir(),attrs:{}}),ar=t=>typeof t=="string"&&t.toLowerCase()==="svg";function cc(t,e,n,r){const s=p.reactExports.useMemo(()=>{const o=Wi();return or(o,e,{enableHardwareAcceleration:!1},ar(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Fi(o,t.style,t),s.style={...o,...s.style}}return s}function uc(t=!1){return(n,r,s,{latestValues:o},i)=>{const l=(rr(n)?cc:ec)(r,o,i,n),f={...sc(r,typeof n=="string",t),...l,ref:s},{children:c}=r,h=p.reactExports.useMemo(()=>$(c)?c.get():c,[c]);return p.reactExports.createElement(n,{...f,children:h})}}function Ui(t,{style:e,vars:n},r,s){Object.assign(t.style,e,s&&s.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const zi=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Hi(t,e,n,r){Ui(t,e,void 0,r);for(const s in e.attrs)t.setAttribute(zi.has(s)?s:tr(s),e.attrs[s])}function lr(t,e){const{style:n}=t,r={};for(const s in n)($(n[s])||e.style&&$(e.style[s])||ki(s,t))&&(r[s]=n[s]);return r}function $i(t,e){const n=lr(t,e);for(const r in t)if($(t[r])||$(e[r])){const s=he.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[s]=t[r]}return n}function cr(t,e,n,r={},s={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,s)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,s)),e}function fc(t){const e=p.reactExports.useRef(null);return e.current===null&&(e.current=t()),e.current}const Ne=t=>Array.isArray(t),hc=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),dc=t=>Ne(t)?t[t.length-1]||0:t;function Ae(t){const e=$(t)?t.get():t;return hc(e)?e.toValue():e}function pc({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,s,o){const i={latestValues:mc(r,s,o,t),renderState:e()};return n&&(i.mount=a=>n(r,a,i)),i}const qi=t=>(e,n)=>{const r=p.reactExports.useContext(Ke),s=p.reactExports.useContext(Qn),o=()=>pc(t,e,r,s);return n?o():fc(o)};function mc(t,e,n,r){const s={},o=r(t,{});for(const h in o)s[h]=Ae(o[h]);let{initial:i,animate:a}=t;const l=Ze(t),u=Mi(t);e&&u&&!l&&t.inherit!==!1&&(i===void 0&&(i=e.initial),a===void 0&&(a=e.animate));let f=n?n.initial===!1:!1;f=f||i===!1;const c=f?a:i;return c&&typeof c!="boolean"&&!Je(c)&&(Array.isArray(c)?c:[c]).forEach(d=>{const m=cr(t,d);if(!m)return;const{transitionEnd:g,transition:y,...b}=m;for(const w in b){let v=b[w];if(Array.isArray(v)){const E=f?v.length-1:0;v=v[E]}v!==null&&(s[w]=v)}for(const w in g)s[w]=g[w]}),s}const L=t=>t;class $r{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function gc(t){let e=new $r,n=new $r,r=0,s=!1,o=!1;const i=new WeakSet,a={schedule:(l,u=!1,f=!1)=>{const c=f&&s,h=c?e:n;return u&&i.add(l),h.add(l)&&c&&s&&(r=e.order.length),l},cancel:l=>{n.remove(l),i.delete(l)},process:l=>{if(s){o=!0;return}if(s=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let u=0;u<r;u++){const f=e.order[u];f(l),i.has(f)&&(a.schedule(f),t())}s=!1,o&&(o=!1,a.process(l))}};return a}const we=["prepare","read","update","preRender","render","postRender"],yc=40;function vc(t,e){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=we.reduce((c,h)=>(c[h]=gc(()=>n=!0),c),{}),i=c=>o[c].process(s),a=()=>{const c=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(c-s.timestamp,yc),1),s.timestamp=c,s.isProcessing=!0,we.forEach(i),s.isProcessing=!1,n&&e&&(r=!1,t(a))},l=()=>{n=!0,r=!0,s.isProcessing||t(a)};return{schedule:we.reduce((c,h)=>{const d=o[h];return c[h]=(m,g=!1,y=!1)=>(n||l(),d.schedule(m,g,y)),c},{}),cancel:c=>we.forEach(h=>o[h].cancel(c)),state:s,steps:o}}const{schedule:M,cancel:ft,state:U,steps:dn}=vc(typeof requestAnimationFrame<"u"?requestAnimationFrame:L,!0),xc={useVisualState:qi({scrapeMotionValuesFromProps:$i,createRenderState:Wi,onMount:(t,e,{renderState:n,latestValues:r})=>{M.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),M.render(()=>{or(n,r,{enableHardwareAcceleration:!1},ar(e.tagName),t.transformTemplate),Hi(e,n)})}})},bc={useVisualState:qi({scrapeMotionValuesFromProps:lr,createRenderState:ir})};function wc(t,{forwardMotionProps:e=!1},n,r){return{...rr(t)?xc:bc,preloadedFeatures:n,useRender:uc(e),createVisualElement:r,Component:t}}function at(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const Gi=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function tn(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const Ec=t=>e=>Gi(e)&&t(e,tn(e));function lt(t,e,n,r){return at(t,e,Ec(n),r)}const Sc=(t,e)=>n=>e(t(n)),bt=(...t)=>t.reduce(Sc);function Xi(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const qr=Xi("dragHorizontal"),Gr=Xi("dragVertical");function Ki(t){let e=!1;if(t==="y")e=Gr();else if(t==="x")e=qr();else{const n=qr(),r=Gr();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function Yi(){const t=Ki(!0);return t?(t(),!1):!0}class Tt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Xr(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End"),s=(o,i)=>{if(o.pointerType==="touch"||Yi())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[r]&&M.update(()=>a[r](o,i))};return lt(t.current,n,s,{passive:!t.getProps()[r]})}class Tc extends Tt{mount(){this.unmount=bt(Xr(this.node,!0),Xr(this.node,!1))}unmount(){}}class Pc extends Tt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=bt(at(this.node.current,"focus",()=>this.onFocus()),at(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Ji=(t,e)=>e?t===e?!0:Ji(t,e.parentElement):!1;function pn(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,tn(n))}class Ac extends Tt{constructor(){super(...arguments),this.removeStartListeners=L,this.removeEndListeners=L,this.removeAccessibleListeners=L,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=lt(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:f,globalTapTarget:c}=this.node.getProps();M.update(()=>{!c&&!Ji(this.node.current,a.target)?f&&f(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),i=lt(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=bt(o,i),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const i=a=>{a.key!=="Enter"||!this.checkPressEnd()||pn("up",(l,u)=>{const{onTap:f}=this.node.getProps();f&&M.update(()=>f(l,u))})};this.removeEndListeners(),this.removeEndListeners=at(this.node.current,"keyup",i),pn("down",(a,l)=>{this.startPress(a,l)})},n=at(this.node.current,"keydown",e),r=()=>{this.isPressing&&pn("cancel",(o,i)=>this.cancelPress(o,i))},s=at(this.node.current,"blur",r);this.removeAccessibleListeners=bt(n,s)}}startPress(e,n){this.isPressing=!0;const{onTapStart:r,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&M.update(()=>r(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Yi()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&M.update(()=>r(e,n))}mount(){const e=this.node.getProps(),n=lt(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=at(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=bt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const kn=new WeakMap,mn=new WeakMap,Cc=t=>{const e=kn.get(t.target);e&&e(t)},Rc=t=>{t.forEach(Cc)};function Oc({root:t,...e}){const n=t||document;mn.has(n)||mn.set(n,{});const r=mn.get(n),s=JSON.stringify(e);return r[s]||(r[s]=new IntersectionObserver(Rc,{root:t,...e})),r[s]}function Vc(t,e,n){const r=Oc(e);return kn.set(t,n),r.observe(t),()=>{kn.delete(t),r.unobserve(t)}}const Mc={some:0,all:1};class jc extends Tt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:o}=e,i={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:Mc[s]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:f,onViewportLeave:c}=this.node.getProps(),h=u?f:c;h&&h(l)};return Vc(this.node.current,i,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Lc(e,n))&&this.startObserver()}unmount(){}}function Lc({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const kc={inView:{Feature:jc},tap:{Feature:Ac},focus:{Feature:Pc},hover:{Feature:Tc}};function Zi(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Dc(t){const e={};return t.values.forEach((n,r)=>e[r]=n.get()),e}function _c(t){const e={};return t.values.forEach((n,r)=>e[r]=n.getVelocity()),e}function en(t,e,n){const r=t.getProps();return cr(r,e,n!==void 0?n:r.custom,Dc(t),_c(t))}let Nc=L,ur=L;const wt=t=>t*1e3,ct=t=>t/1e3,Bc={current:!1},Qi=t=>Array.isArray(t)&&typeof t[0]=="number";function to(t){return!!(!t||typeof t=="string"&&eo[t]||Qi(t)||Array.isArray(t)&&t.every(to))}const ne=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,eo={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ne([0,.65,.55,1]),circOut:ne([.55,0,1,.45]),backIn:ne([.31,.01,.66,-.59]),backOut:ne([.33,1.53,.69,.99])};function no(t){if(t)return Qi(t)?ne(t):Array.isArray(t)?t.map(no):eo[t]}function Fc(t,e,n,{delay:r=0,duration:s,repeat:o=0,repeatType:i="loop",ease:a,times:l}={}){const u={[e]:n};l&&(u.offset=l);const f=no(a);return Array.isArray(f)&&(u.easing=f),t.animate(u,{delay:r,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:i==="reverse"?"alternate":"normal"})}function Ic(t,{repeat:e,repeatType:n="loop"}){const r=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[r]}const ro=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Wc=1e-7,Uc=12;function zc(t,e,n,r,s){let o,i,a=0;do i=e+(n-e)/2,o=ro(i,r,s)-t,o>0?n=i:e=i;while(Math.abs(o)>Wc&&++a<Uc);return i}function me(t,e,n,r){if(t===e&&n===r)return L;const s=o=>zc(o,0,1,t,n);return o=>o===0||o===1?o:ro(s(o),e,r)}const Hc=me(.42,0,1,1),$c=me(0,0,.58,1),so=me(.42,0,.58,1),qc=t=>Array.isArray(t)&&typeof t[0]!="number",io=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,oo=t=>e=>1-t(1-e),fr=t=>1-Math.sin(Math.acos(t)),ao=oo(fr),Gc=io(fr),lo=me(.33,1.53,.69,.99),hr=oo(lo),Xc=io(hr),Kc=t=>(t*=2)<1?.5*hr(t):.5*(2-Math.pow(2,-10*(t-1))),Yc={linear:L,easeIn:Hc,easeInOut:so,easeOut:$c,circIn:fr,circInOut:Gc,circOut:ao,backIn:hr,backInOut:Xc,backOut:lo,anticipate:Kc},Kr=t=>{if(Array.isArray(t)){ur(t.length===4);const[e,n,r,s]=t;return me(e,n,r,s)}else if(typeof t=="string")return Yc[t];return t},dr=(t,e)=>n=>!!(de(n)&&Yl.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),co=(t,e,n)=>r=>{if(!de(r))return r;const[s,o,i,a]=r.match(Qe);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},Jc=t=>Et(0,255,t),gn={...Lt,transform:t=>Math.round(Jc(t))},Mt={test:dr("rgb","red"),parse:co("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+gn.transform(t)+", "+gn.transform(e)+", "+gn.transform(n)+", "+se(re.transform(r))+")"};function Zc(t){let e="",n="",r="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,r+=r,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Dn={test:dr("#"),parse:Zc,transform:Mt.transform},zt={test:dr("hsl","hue"),parse:co("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+st.transform(se(e))+", "+st.transform(se(n))+", "+se(re.transform(r))+")"},z={test:t=>Mt.test(t)||Dn.test(t)||zt.test(t),parse:t=>Mt.test(t)?Mt.parse(t):zt.test(t)?zt.parse(t):Dn.parse(t),transform:t=>de(t)?t:t.hasOwnProperty("red")?Mt.transform(t):zt.transform(t)},j=(t,e,n)=>-n*t+n*e+t;function yn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Qc({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let s=0,o=0,i=0;if(!e)s=o=i=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;s=yn(l,a,t+1/3),o=yn(l,a,t),i=yn(l,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(i*255),alpha:r}}const vn=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},tu=[Dn,Mt,zt],eu=t=>tu.find(e=>e.test(t));function Yr(t){const e=eu(t);let n=e.parse(t);return e===zt&&(n=Qc(n)),n}const uo=(t,e)=>{const n=Yr(t),r=Yr(e),s={...n};return o=>(s.red=vn(n.red,r.red,o),s.green=vn(n.green,r.green,o),s.blue=vn(n.blue,r.blue,o),s.alpha=j(n.alpha,r.alpha,o),Mt.transform(s))};function nu(t){var e,n;return isNaN(t)&&de(t)&&(((e=t.match(Qe))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Ni))===null||n===void 0?void 0:n.length)||0)>0}const fo={regex:Xl,countKey:"Vars",token:"${v}",parse:L},ho={regex:Ni,countKey:"Colors",token:"${c}",parse:z.parse},po={regex:Qe,countKey:"Numbers",token:"${n}",parse:Lt.parse};function xn(t,{regex:e,countKey:n,token:r,parse:s}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(s)))}function Be(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&xn(n,fo),xn(n,ho),xn(n,po),n}function mo(t){return Be(t).values}function go(t){const{values:e,numColors:n,numVars:r,tokenised:s}=Be(t),o=e.length;return i=>{let a=s;for(let l=0;l<o;l++)l<r?a=a.replace(fo.token,i[l]):l<r+n?a=a.replace(ho.token,z.transform(i[l])):a=a.replace(po.token,se(i[l]));return a}}const ru=t=>typeof t=="number"?0:t;function su(t){const e=mo(t);return go(t)(e.map(ru))}const St={test:nu,parse:mo,createTransformer:go,getAnimatableNone:su},yo=(t,e)=>n=>`${n>0?e:t}`;function vo(t,e){return typeof t=="number"?n=>j(t,e,n):z.test(t)?uo(t,e):t.startsWith("var(")?yo(t,e):bo(t,e)}const xo=(t,e)=>{const n=[...t],r=n.length,s=t.map((o,i)=>vo(o,e[i]));return o=>{for(let i=0;i<r;i++)n[i]=s[i](o);return n}},iu=(t,e)=>{const n={...t,...e},r={};for(const s in n)t[s]!==void 0&&e[s]!==void 0&&(r[s]=vo(t[s],e[s]));return s=>{for(const o in r)n[o]=r[o](s);return n}},bo=(t,e)=>{const n=St.createTransformer(e),r=Be(t),s=Be(e);return r.numVars===s.numVars&&r.numColors===s.numColors&&r.numNumbers>=s.numNumbers?bt(xo(r.values,s.values),n):yo(t,e)},ue=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},Jr=(t,e)=>n=>j(t,e,n);function ou(t){return typeof t=="number"?Jr:typeof t=="string"?z.test(t)?uo:bo:Array.isArray(t)?xo:typeof t=="object"?iu:Jr}function au(t,e,n){const r=[],s=n||ou(t[0]),o=t.length-1;for(let i=0;i<o;i++){let a=s(t[i],t[i+1]);if(e){const l=Array.isArray(e)?e[i]||L:e;a=bt(l,a)}r.push(a)}return r}function wo(t,e,{clamp:n=!0,ease:r,mixer:s}={}){const o=t.length;if(ur(o===e.length),o===1)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const i=au(e,r,s),a=i.length,l=u=>{let f=0;if(a>1)for(;f<t.length-2&&!(u<t[f+1]);f++);const c=ue(t[f],t[f+1],u);return i[f](c)};return n?u=>l(Et(t[0],t[o-1],u)):l}function lu(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const s=ue(0,e,r);t.push(j(n,1,s))}}function cu(t){const e=[0];return lu(e,t.length-1),e}function uu(t,e){return t.map(n=>n*e)}function fu(t,e){return t.map(()=>e||so).splice(0,t.length-1)}function Fe({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const s=qc(r)?r.map(Kr):Kr(r),o={done:!1,value:e[0]},i=uu(n&&n.length===e.length?n:cu(e),t),a=wo(i,e,{ease:Array.isArray(s)?s:fu(e,s)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}function Eo(t,e){return e?t*(1e3/e):0}const hu=5;function So(t,e,n){const r=Math.max(e-hu,0);return Eo(n-t(r),e-r)}const bn=.001,du=.01,Zr=10,pu=.05,mu=1;function gu({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let s,o;Nc(t<=wt(Zr));let i=1-e;i=Et(pu,mu,i),t=Et(du,Zr,ct(t)),i<1?(s=u=>{const f=u*i,c=f*t,h=f-n,d=_n(u,i),m=Math.exp(-c);return bn-h/d*m},o=u=>{const c=u*i*t,h=c*n+n,d=Math.pow(i,2)*Math.pow(u,2)*t,m=Math.exp(-c),g=_n(Math.pow(u,2),i);return(-s(u)+bn>0?-1:1)*((h-d)*m)/g}):(s=u=>{const f=Math.exp(-u*t),c=(u-n)*t+1;return-bn+f*c},o=u=>{const f=Math.exp(-u*t),c=(n-u)*(t*t);return f*c});const a=5/t,l=vu(s,o,a);if(t=wt(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:i*2*Math.sqrt(r*u),duration:t}}}const yu=12;function vu(t,e,n){let r=n;for(let s=1;s<yu;s++)r=r-t(r)/e(r);return r}function _n(t,e){return t*Math.sqrt(1-e*e)}const xu=["duration","bounce"],bu=["stiffness","damping","mass"];function Qr(t,e){return e.some(n=>t[n]!==void 0)}function wu(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Qr(t,bu)&&Qr(t,xu)){const n=gu(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function To({keyframes:t,restDelta:e,restSpeed:n,...r}){const s=t[0],o=t[t.length-1],i={done:!1,value:s},{stiffness:a,damping:l,mass:u,duration:f,velocity:c,isResolvedFromDuration:h}=wu({...r,velocity:-ct(r.velocity||0)}),d=c||0,m=l/(2*Math.sqrt(a*u)),g=o-s,y=ct(Math.sqrt(a/u)),b=Math.abs(g)<5;n||(n=b?.01:2),e||(e=b?.005:.5);let w;if(m<1){const v=_n(y,m);w=E=>{const S=Math.exp(-m*y*E);return o-S*((d+m*y*g)/v*Math.sin(v*E)+g*Math.cos(v*E))}}else if(m===1)w=v=>o-Math.exp(-y*v)*(g+(d+y*g)*v);else{const v=y*Math.sqrt(m*m-1);w=E=>{const S=Math.exp(-m*y*E),T=Math.min(v*E,300);return o-S*((d+m*y*g)*Math.sinh(T)+v*g*Math.cosh(T))/v}}return{calculatedDuration:h&&f||null,next:v=>{const E=w(v);if(h)i.done=v>=f;else{let S=d;v!==0&&(m<1?S=So(w,v,E):S=0);const T=Math.abs(S)<=n,P=Math.abs(o-E)<=e;i.done=T&&P}return i.value=i.done?o:E,i}}}function ts({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:i,min:a,max:l,restDelta:u=.5,restSpeed:f}){const c=t[0],h={done:!1,value:c},d=A=>a!==void 0&&A<a||l!==void 0&&A>l,m=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let g=n*e;const y=c+g,b=i===void 0?y:i(y);b!==y&&(g=b-c);const w=A=>-g*Math.exp(-A/r),v=A=>b+w(A),E=A=>{const R=w(A),B=v(A);h.done=Math.abs(R)<=u,h.value=h.done?b:B};let S,T;const P=A=>{d(h.value)&&(S=A,T=To({keyframes:[h.value,m(h.value)],velocity:So(v,A,h.value),damping:s,stiffness:o,restDelta:u,restSpeed:f}))};return P(0),{calculatedDuration:null,next:A=>{let R=!1;return!T&&S===void 0&&(R=!0,E(A),P(A)),S!==void 0&&A>S?T.next(A-S):(!R&&E(A),h)}}}const Eu=t=>{const e=({timestamp:n})=>t(n);return{start:()=>M.update(e,!0),stop:()=>ft(e),now:()=>U.isProcessing?U.timestamp:performance.now()}},es=2e4;function ns(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<es;)e+=n,r=t.next(e);return e>=es?1/0:e}const Su={decay:ts,inertia:ts,tween:Fe,keyframes:Fe,spring:To};function Ie({autoplay:t=!0,delay:e=0,driver:n=Eu,keyframes:r,type:s="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:f,onUpdate:c,...h}){let d=1,m=!1,g,y;const b=()=>{y=new Promise(V=>{g=V})};b();let w;const v=Su[s]||Fe;let E;v!==Fe&&typeof r[0]!="number"&&(E=wo([0,100],r,{clamp:!1}),r=[0,100]);const S=v({...h,keyframes:r});let T;a==="mirror"&&(T=v({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}));let P="idle",A=null,R=null,B=null;S.calculatedDuration===null&&o&&(S.calculatedDuration=ns(S));const{calculatedDuration:q}=S;let _=1/0,W=1/0;q!==null&&(_=q+i,W=_*(o+1)-i);let F=0;const tt=V=>{if(R===null)return;d>0&&(R=Math.min(R,V)),d<0&&(R=Math.min(V-W/d,R)),A!==null?F=A:F=Math.round(V-R)*d;const Dt=F-e*(d>=0?1:-1),_t=d>=0?Dt<0:Dt>W;F=Math.max(Dt,0),P==="finished"&&A===null&&(F=W);let ln=F,Pt=S;if(o){const Jt=Math.min(F,W)/_;let At=Math.floor(Jt),Z=Jt%1;!Z&&Jt>=1&&(Z=1),Z===1&&At--,At=Math.min(At,o+1),!!(At%2)&&(a==="reverse"?(Z=1-Z,i&&(Z-=i/_)):a==="mirror"&&(Pt=T)),ln=Et(0,1,Z)*_}const ot=_t?{done:!1,value:r[0]}:Pt.next(ln);E&&(ot.value=E(ot.value));let{done:Nt}=ot;!_t&&q!==null&&(Nt=d>=0?F>=W:F<=0);const Bt=A===null&&(P==="finished"||P==="running"&&Nt);return c&&c(ot.value),Bt&&I(),ot},N=()=>{w&&w.stop(),w=void 0},et=()=>{P="idle",N(),g(),b(),R=B=null},I=()=>{P="finished",f&&f(),N(),g()},ht=()=>{if(m)return;w||(w=n(tt));const V=w.now();l&&l(),A!==null?R=V-A:(!R||P==="finished")&&(R=V),P==="finished"&&b(),B=R,A=null,P="running",w.start()};t&&ht();const kt={then(V,Dt){return y.then(V,Dt)},get time(){return ct(F)},set time(V){V=wt(V),F=V,A!==null||!w||d===0?A=V:R=w.now()-V/d},get duration(){const V=S.calculatedDuration===null?ns(S):S.calculatedDuration;return ct(V)},get speed(){return d},set speed(V){V===d||!w||(d=V,kt.time=ct(F))},get state(){return P},play:ht,pause:()=>{P="paused",A=F},stop:()=>{m=!0,P!=="idle"&&(P="idle",u&&u(),et())},cancel:()=>{B!==null&&tt(B),et()},complete:()=>{P="finished"},sample:V=>(R=0,tt(V))};return kt}function Tu(t){let e;return()=>(e===void 0&&(e=t()),e)}const Pu=Tu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Au=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Ee=10,Cu=2e4,Ru=(t,e)=>e.type==="spring"||t==="backgroundColor"||!to(e.ease);function Ou(t,e,{onUpdate:n,onComplete:r,...s}){if(!(Pu()&&Au.has(e)&&!s.repeatDelay&&s.repeatType!=="mirror"&&s.damping!==0&&s.type!=="inertia"))return!1;let i=!1,a,l,u=!1;const f=()=>{l=new Promise(v=>{a=v})};f();let{keyframes:c,duration:h=300,ease:d,times:m}=s;if(Ru(e,s)){const v=Ie({...s,repeat:0,delay:0});let E={done:!1,value:c[0]};const S=[];let T=0;for(;!E.done&&T<Cu;)E=v.sample(T),S.push(E.value),T+=Ee;m=void 0,c=S,h=T-Ee,d="linear"}const g=Fc(t.owner.current,e,c,{...s,duration:h,ease:d,times:m}),y=()=>{u=!1,g.cancel()},b=()=>{u=!0,M.update(y),a(),f()};return g.onfinish=()=>{u||(t.set(Ic(c,s)),r&&r(),b())},{then(v,E){return l.then(v,E)},attachTimeline(v){return g.timeline=v,g.onfinish=null,L},get time(){return ct(g.currentTime||0)},set time(v){g.currentTime=wt(v)},get speed(){return g.playbackRate},set speed(v){g.playbackRate=v},get duration(){return ct(h)},play:()=>{i||(g.play(),ft(y))},pause:()=>g.pause(),stop:()=>{if(i=!0,g.playState==="idle")return;const{currentTime:v}=g;if(v){const E=Ie({...s,autoplay:!1});t.setWithVelocity(E.sample(v-Ee).value,E.sample(v).value,Ee)}b()},complete:()=>{u||g.finish()},cancel:b}}function Vu({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const s=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:L,pause:L,stop:L,then:o=>(o(),Promise.resolve()),cancel:L,complete:L});return e?Ie({keyframes:[0,1],duration:0,delay:e,onComplete:s}):s()}const Mu={type:"spring",stiffness:500,damping:25,restSpeed:10},ju=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Lu={type:"keyframes",duration:.8},ku={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Du=(t,{keyframes:e})=>e.length>2?Lu:jt.has(t)?t.startsWith("scale")?ju(e[1]):Mu:ku,Nn=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(St.test(e)||e==="0")&&!e.startsWith("url(")),_u=new Set(["brightness","contrast","saturate","opacity"]);function Nu(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Qe)||[];if(!r)return t;const s=n.replace(r,"");let o=_u.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+s+")"}const Bu=/([a-z-]*)\(.*?\)/g,Bn={...St,getAnimatableNone:t=>{const e=t.match(Bu);return e?e.map(Nu).join(" "):t}},Fu={...Bi,color:z,backgroundColor:z,outlineColor:z,fill:z,stroke:z,borderColor:z,borderTopColor:z,borderRightColor:z,borderBottomColor:z,borderLeftColor:z,filter:Bn,WebkitFilter:Bn},pr=t=>Fu[t];function Po(t,e){let n=pr(t);return n!==Bn&&(n=St),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Ao=t=>/^0[^.\s]+$/.test(t);function Iu(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||Ao(t)}function Wu(t,e,n,r){const s=Nn(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const i=r.from!==void 0?r.from:t.get();let a;const l=[];for(let u=0;u<o.length;u++)o[u]===null&&(o[u]=u===0?i:o[u-1]),Iu(o[u])&&l.push(u),typeof o[u]=="string"&&o[u]!=="none"&&o[u]!=="0"&&(a=o[u]);if(s&&l.length&&a)for(let u=0;u<l.length;u++){const f=l[u];o[f]=Po(e,a)}return o}function Uu({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:i,repeatDelay:a,from:l,elapsed:u,...f}){return!!Object.keys(f).length}function mr(t,e){return t[e]||t.default||t}const zu={skipAnimations:!1},gr=(t,e,n,r={})=>s=>{const o=mr(r,t)||{},i=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-wt(i);const l=Wu(e,t,n,o),u=l[0],f=l[l.length-1],c=Nn(t,u),h=Nn(t,f);let d={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:m=>{e.set(m),o.onUpdate&&o.onUpdate(m)},onComplete:()=>{s(),o.onComplete&&o.onComplete()}};if(Uu(o)||(d={...d,...Du(t,d)}),d.duration&&(d.duration=wt(d.duration)),d.repeatDelay&&(d.repeatDelay=wt(d.repeatDelay)),!c||!h||Bc.current||o.type===!1||zu.skipAnimations)return Vu(d);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const m=Ou(e,t,d);if(m)return m}return Ie(d)};function We(t){return!!($(t)&&t.add)}const Co=t=>/^\-?\d*\.?\d+$/.test(t);function yr(t,e){t.indexOf(e)===-1&&t.push(e)}function vr(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class xr{constructor(){this.subscriptions=[]}add(e){return yr(this.subscriptions,e),()=>vr(this.subscriptions,e)}notify(e,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,n,r);else for(let o=0;o<s;o++){const i=this.subscriptions[o];i&&i(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Hu=t=>!isNaN(parseFloat(t));class $u{constructor(e,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,s=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:i}=U;this.lastUpdated!==i&&(this.timeDelta=o,this.lastUpdated=i,M.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>M.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=Hu(this.current),this.owner=n.owner}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new xr);const r=this.events[e].add(n);return e==="change"?()=>{r(),M.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Eo(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function qt(t,e){return new $u(t,e)}const Ro=t=>e=>e.test(t),qu={test:t=>t==="auto",parse:t=>t},Oo=[Lt,C,st,yt,Zl,Jl,qu],Qt=t=>Oo.find(Ro(t)),Gu=[...Oo,z,St],Xu=t=>Gu.find(Ro(t));function Ku(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,qt(n))}function Yu(t,e){const n=en(t,e);let{transitionEnd:r={},transition:s={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const i in o){const a=dc(o[i]);Ku(t,i,a)}}function Ju(t,e,n){var r,s;const o=Object.keys(e).filter(a=>!t.hasValue(a)),i=o.length;if(i)for(let a=0;a<i;a++){const l=o[a],u=e[l];let f=null;Array.isArray(u)&&(f=u[0]),f===null&&(f=(s=(r=n[l])!==null&&r!==void 0?r:t.readValue(l))!==null&&s!==void 0?s:e[l]),f!=null&&(typeof f=="string"&&(Co(f)||Ao(f))?f=parseFloat(f):!Xu(f)&&St.test(u)&&(f=Po(l,u)),t.addValue(l,qt(f,{owner:t})),n[l]===void 0&&(n[l]=f),f!==null&&t.setBaseTarget(l,f))}}function Zu(t,e){return e?(e[t]||e.default||e).from:void 0}function Qu(t,e,n){const r={};for(const s in t){const o=Zu(s,e);if(o!==void 0)r[s]=o;else{const i=n.getValue(s);i&&(r[s]=i.get())}}return r}function tf({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function ef(t,e){const n=t.get();if(Array.isArray(e)){for(let r=0;r<e.length;r++)if(e[r]!==n)return!0}else return n!==e}function Vo(t,e,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:i,...a}=t.makeTargetAnimatable(e);const l=t.getValue("willChange");r&&(o=r);const u=[],f=s&&t.animationState&&t.animationState.getState()[s];for(const c in a){const h=t.getValue(c),d=a[c];if(!h||d===void 0||f&&tf(f,c))continue;const m={delay:n,elapsed:0,...mr(o||{},c)};if(window.HandoffAppearAnimations){const b=t.getProps()[Vi];if(b){const w=window.HandoffAppearAnimations(b,c,h,M);w!==null&&(m.elapsed=w,m.isHandoff=!0)}}let g=!m.isHandoff&&!ef(h,d);if(m.type==="spring"&&(h.getVelocity()||m.velocity)&&(g=!1),h.animation&&(g=!1),g)continue;h.start(gr(c,h,d,t.shouldReduceMotion&&jt.has(c)?{type:!1}:m));const y=h.animation;We(l)&&(l.add(c),y.then(()=>l.remove(c))),u.push(y)}return i&&Promise.all(u).then(()=>{i&&Yu(t,i)}),u}function Fn(t,e,n={}){const r=en(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const o=r?()=>Promise.all(Vo(t,r,n)):()=>Promise.resolve(),i=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:c}=s;return nf(t,e,u+l,f,c,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[l,u]=a==="beforeChildren"?[o,i]:[i,o];return l().then(()=>u())}else return Promise.all([o(),i(n.delay)])}function nf(t,e,n=0,r=0,s=1,o){const i=[],a=(t.variantChildren.size-1)*r,l=s===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(t.variantChildren).sort(rf).forEach((u,f)=>{u.notify("AnimationStart",e),i.push(Fn(u,e,{...o,delay:n+l(f)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(i)}function rf(t,e){return t.sortNodePosition(e)}function sf(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const s=e.map(o=>Fn(t,o,n));r=Promise.all(s)}else if(typeof e=="string")r=Fn(t,e,n);else{const s=typeof e=="function"?en(t,e,n.custom):e;r=Promise.all(Vo(t,s,n))}return r.then(()=>t.notify("AnimationComplete",e))}const of=[...er].reverse(),af=er.length;function lf(t){return e=>Promise.all(e.map(({animation:n,options:r})=>sf(t,n,r)))}function cf(t){let e=lf(t);const n=ff();let r=!0;const s=(l,u)=>{const f=en(t,u);if(f){const{transition:c,transitionEnd:h,...d}=f;l={...l,...d,...h}}return l};function o(l){e=l(t)}function i(l,u){const f=t.getProps(),c=t.getVariantContext(!0)||{},h=[],d=new Set;let m={},g=1/0;for(let b=0;b<af;b++){const w=of[b],v=n[w],E=f[w]!==void 0?f[w]:c[w],S=le(E),T=w===u?v.isActive:null;T===!1&&(g=b);let P=E===c[w]&&E!==f[w]&&S;if(P&&r&&t.manuallyAnimateOnMount&&(P=!1),v.protectedKeys={...m},!v.isActive&&T===null||!E&&!v.prevProp||Je(E)||typeof E=="boolean")continue;let R=uf(v.prevProp,E)||w===u&&v.isActive&&!P&&S||b>g&&S,B=!1;const q=Array.isArray(E)?E:[E];let _=q.reduce(s,{});T===!1&&(_={});const{prevResolvedValues:W={}}=v,F={...W,..._},tt=N=>{R=!0,d.has(N)&&(B=!0,d.delete(N)),v.needsAnimating[N]=!0};for(const N in F){const et=_[N],I=W[N];if(m.hasOwnProperty(N))continue;let ht=!1;Ne(et)&&Ne(I)?ht=!Zi(et,I):ht=et!==I,ht?et!==void 0?tt(N):d.add(N):et!==void 0&&d.has(N)?tt(N):v.protectedKeys[N]=!0}v.prevProp=E,v.prevResolvedValues=_,v.isActive&&(m={...m,..._}),r&&t.blockInitialAnimation&&(R=!1),R&&(!P||B)&&h.push(...q.map(N=>({animation:N,options:{type:w,...l}})))}if(d.size){const b={};d.forEach(w=>{const v=t.getBaseTarget(w);v!==void 0&&(b[w]=v)}),h.push({animation:b})}let y=!!h.length;return r&&(f.initial===!1||f.initial===f.animate)&&!t.manuallyAnimateOnMount&&(y=!1),r=!1,y?e(h):Promise.resolve()}function a(l,u,f){var c;if(n[l].isActive===u)return Promise.resolve();(c=t.variantChildren)===null||c===void 0||c.forEach(d=>{var m;return(m=d.animationState)===null||m===void 0?void 0:m.setActive(l,u)}),n[l].isActive=u;const h=i(f,l);for(const d in n)n[d].protectedKeys={};return h}return{animateChanges:i,setActive:a,setAnimateFunction:o,getState:()=>n}}function uf(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Zi(e,t):!1}function Ct(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ff(){return{animate:Ct(!0),whileInView:Ct(),whileHover:Ct(),whileTap:Ct(),whileDrag:Ct(),whileFocus:Ct(),exit:Ct()}}class hf extends Tt{constructor(e){super(e),e.animationState||(e.animationState=cf(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Je(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let df=0;class pf extends Tt{constructor(){super(...arguments),this.id=df++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const o=this.node.animationState.setActive("exit",!e,{custom:r??this.node.getProps().custom});n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const mf={animation:{Feature:hf},exit:{Feature:pf}},rs=(t,e)=>Math.abs(t-e);function gf(t,e){const n=rs(t.x,e.x),r=rs(t.y,e.y);return Math.sqrt(n**2+r**2)}class Mo{constructor(e,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=En(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,d=gf(c.offset,{x:0,y:0})>=3;if(!h&&!d)return;const{point:m}=c,{timestamp:g}=U;this.history.push({...m,timestamp:g});const{onStart:y,onMove:b}=this.handlers;h||(y&&y(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,c)},this.handlePointerMove=(c,h)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=wn(h,this.transformPagePoint),M.update(this.updatePoint,!0)},this.handlePointerUp=(c,h)=>{this.end();const{onEnd:d,onSessionEnd:m,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=En(c.type==="pointercancel"?this.lastMoveEventInfo:wn(h,this.transformPagePoint),this.history);this.startEvent&&d&&d(c,y),m&&m(c,y)},!Gi(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const i=tn(e),a=wn(i,this.transformPagePoint),{point:l}=a,{timestamp:u}=U;this.history=[{...l,timestamp:u}];const{onSessionStart:f}=n;f&&f(e,En(a,this.history)),this.removeListeners=bt(lt(this.contextWindow,"pointermove",this.handlePointerMove),lt(this.contextWindow,"pointerup",this.handlePointerUp),lt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ft(this.updatePoint)}}function wn(t,e){return e?{point:e(t.point)}:t}function ss(t,e){return{x:t.x-e.x,y:t.y-e.y}}function En({point:t},e){return{point:t,delta:ss(t,jo(e)),offset:ss(t,yf(e)),velocity:vf(e,.1)}}function yf(t){return t[0]}function jo(t){return t[t.length-1]}function vf(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const s=jo(t);for(;n>=0&&(r=t[n],!(s.timestamp-r.timestamp>wt(e)));)n--;if(!r)return{x:0,y:0};const o=ct(s.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const i={x:(s.x-r.x)/o,y:(s.y-r.y)/o};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function X(t){return t.max-t.min}function In(t,e=0,n=.01){return Math.abs(t-e)<=n}function is(t,e,n,r=.5){t.origin=r,t.originPoint=j(e.min,e.max,t.origin),t.scale=X(n)/X(e),(In(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=j(n.min,n.max,t.origin)-t.originPoint,(In(t.translate)||isNaN(t.translate))&&(t.translate=0)}function ie(t,e,n,r){is(t.x,e.x,n.x,r?r.originX:void 0),is(t.y,e.y,n.y,r?r.originY:void 0)}function os(t,e,n){t.min=n.min+e.min,t.max=t.min+X(e)}function xf(t,e,n){os(t.x,e.x,n.x),os(t.y,e.y,n.y)}function as(t,e,n){t.min=e.min-n.min,t.max=t.min+X(e)}function oe(t,e,n){as(t.x,e.x,n.x),as(t.y,e.y,n.y)}function bf(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?j(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?j(n,t,r.max):Math.min(t,n)),t}function ls(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function wf(t,{top:e,left:n,bottom:r,right:s}){return{x:ls(t.x,n,s),y:ls(t.y,e,r)}}function cs(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function Ef(t,e){return{x:cs(t.x,e.x),y:cs(t.y,e.y)}}function Sf(t,e){let n=.5;const r=X(t),s=X(e);return s>r?n=ue(e.min,e.max-r,t.min):r>s&&(n=ue(t.min,t.max-s,e.min)),Et(0,1,n)}function Tf(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Wn=.35;function Pf(t=Wn){return t===!1?t=0:t===!0&&(t=Wn),{x:us(t,"left","right"),y:us(t,"top","bottom")}}function us(t,e,n){return{min:fs(t,e),max:fs(t,n)}}function fs(t,e){return typeof t=="number"?t:t[e]||0}const hs=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ht=()=>({x:hs(),y:hs()}),ds=()=>({min:0,max:0}),k=()=>({x:ds(),y:ds()});function Y(t){return[t("x"),t("y")]}function Lo({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function Af({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Cf(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Sn(t){return t===void 0||t===1}function Un({scale:t,scaleX:e,scaleY:n}){return!Sn(t)||!Sn(e)||!Sn(n)}function Rt(t){return Un(t)||ko(t)||t.z||t.rotate||t.rotateX||t.rotateY}function ko(t){return ps(t.x)||ps(t.y)}function ps(t){return t&&t!=="0%"}function Ue(t,e,n){const r=t-n,s=e*r;return n+s}function ms(t,e,n,r,s){return s!==void 0&&(t=Ue(t,s,r)),Ue(t,n,r)+e}function zn(t,e=0,n=1,r,s){t.min=ms(t.min,e,n,r,s),t.max=ms(t.max,e,n,r,s)}function Do(t,{x:e,y:n}){zn(t.x,e.translate,e.scale,e.originPoint),zn(t.y,n.translate,n.scale,n.originPoint)}function Rf(t,e,n,r=!1){const s=n.length;if(!s)return;e.x=e.y=1;let o,i;for(let a=0;a<s;a++){o=n[a],i=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&$t(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),i&&(e.x*=i.x.scale,e.y*=i.y.scale,Do(t,i)),r&&Rt(o.latestValues)&&$t(t,o.latestValues))}e.x=gs(e.x),e.y=gs(e.y)}function gs(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function vt(t,e){t.min=t.min+e,t.max=t.max+e}function ys(t,e,[n,r,s]){const o=e[s]!==void 0?e[s]:.5,i=j(t.min,t.max,o);zn(t,e[n],e[r],i,e.scale)}const Of=["x","scaleX","originX"],Vf=["y","scaleY","originY"];function $t(t,e){ys(t.x,e,Of),ys(t.y,e,Vf)}function _o(t,e){return Lo(Cf(t.getBoundingClientRect(),e))}function Mf(t,e,n){const r=_o(t,n),{scroll:s}=e;return s&&(vt(r.x,s.offset.x),vt(r.y,s.offset.y)),r}const No=({current:t})=>t?t.ownerDocument.defaultView:null,jf=new WeakMap;class Lf{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=k(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=f=>{const{dragSnapToOrigin:c}=this.getProps();c?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(tn(f,"page").point)},o=(f,c)=>{const{drag:h,dragPropagation:d,onDragStart:m}=this.getProps();if(h&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Ki(h),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Y(y=>{let b=this.getAxisMotionValue(y).get()||0;if(st.test(b)){const{projection:w}=this.visualElement;if(w&&w.layout){const v=w.layout.layoutBox[y];v&&(b=X(v)*(parseFloat(b)/100))}}this.originPoint[y]=b}),m&&M.update(()=>m(f,c),!1,!0);const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},i=(f,c)=>{const{dragPropagation:h,dragDirectionLock:d,onDirectionLock:m,onDrag:g}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:y}=c;if(d&&this.currentDirection===null){this.currentDirection=kf(y),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",c.point,y),this.updateAxis("y",c.point,y),this.visualElement.render(),g&&g(f,c)},a=(f,c)=>this.stop(f,c),l=()=>Y(f=>{var c;return this.getAnimationState(f)==="paused"&&((c=this.getAxisMotionValue(f).animation)===null||c===void 0?void 0:c.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Mo(e,{onSessionStart:s,onStart:o,onMove:i,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:No(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&M.update(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:s}=this.getProps();if(!r||!Se(e,s,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=bf(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&Ut(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=wf(s.layoutBox,n):this.constraints=!1,this.elastic=Pf(r),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&Y(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=Tf(s.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Ut(e))return!1;const r=e.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=Mf(r,s.root,this.visualElement.getTransformPagePoint());let i=Ef(s.layout.layoutBox,o);if(n){const a=n(Af(i));this.hasMutatedConstraints=!!a,a&&(i=Lo(a))}return i}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Y(f=>{if(!Se(f,n,this.currentDirection))return;let c=l&&l[f]||{};i&&(c={min:0,max:0});const h=s?200:1e6,d=s?40:1e7,m={type:"inertia",velocity:r?e[f]:0,bounceStiffness:h,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...c};return this.startAxisValueAnimation(f,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return r.start(gr(e,r,0,n))}stopAnimation(){Y(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Y(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Y(n=>{const{drag:r}=this.getProps();if(!Se(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(n);if(s&&s.layout){const{min:i,max:a}=s.layout.layoutBox[n];o.set(e[n]-j(i,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ut(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Y(i=>{const a=this.getAxisMotionValue(i);if(a){const l=a.get();s[i]=Sf({min:l,max:l},this.constraints[i])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Y(i=>{if(!Se(i,e,null))return;const a=this.getAxisMotionValue(i),{min:l,max:u}=this.constraints[i];a.set(j(l,u,s[i]))})}addListeners(){if(!this.visualElement.current)return;jf.set(this.visualElement,this);const e=this.visualElement.current,n=lt(e,"pointerdown",l=>{const{drag:u,dragListener:f=!0}=this.getProps();u&&f&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Ut(l)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),r();const i=at(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Y(f=>{const c=this.getAxisMotionValue(f);c&&(this.originPoint[f]+=l[f].translate,c.set(c.get()+l[f].translate))}),this.visualElement.render())});return()=>{i(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:i=Wn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function Se(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function kf(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Df extends Tt{constructor(e){super(e),this.removeGroupControls=L,this.removeListeners=L,this.controls=new Lf(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||L}unmount(){this.removeGroupControls(),this.removeListeners()}}const vs=t=>(e,n)=>{t&&M.update(()=>t(e,n))};class _f extends Tt{constructor(){super(...arguments),this.removePointerDownListener=L}onPointerDown(e){this.session=new Mo(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:No(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:vs(e),onStart:vs(n),onMove:r,onEnd:(o,i)=>{delete this.session,s&&M.update(()=>s(o,i))}}}mount(){this.removePointerDownListener=lt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Nf(){const t=p.reactExports.useContext(Qn);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,s=p.reactExports.useId();return p.reactExports.useEffect(()=>r(s),[]),!e&&n?[!1,()=>n&&n(s)]:[!0]}const Ce={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function xs(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const te={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(C.test(t))t=parseFloat(t);else return t;const n=xs(t,e.target.x),r=xs(t,e.target.y);return`${n}% ${r}%`}},Bf={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,s=St.parse(t);if(s.length>5)return r;const o=St.createTransformer(t),i=typeof s[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+i]/=a,s[1+i]/=l;const u=j(a,l,.5);return typeof s[2+i]=="number"&&(s[2+i]/=u),typeof s[3+i]=="number"&&(s[3+i]/=u),o(s)}};class Ff extends p.React__default.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:o}=e;Hl(If),o&&(n.group&&n.group.add(o),r&&r.register&&s&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ce.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:s,isPresent:o}=this.props,i=r.projection;return i&&(i.isPresent=o,s||e.layoutDependency!==n||n===void 0?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||M.postRender(()=>{const a=i.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=e;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Bo(t){const[e,n]=Nf(),r=p.reactExports.useContext(ji);return p.React__default.createElement(Ff,{...t,layoutGroup:r,switchLayoutGroup:p.reactExports.useContext(Li),isPresent:e,safeToRemove:n})}const If={borderRadius:{...te,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:te,borderTopRightRadius:te,borderBottomLeftRadius:te,borderBottomRightRadius:te,boxShadow:Bf},Fo=["TopLeft","TopRight","BottomLeft","BottomRight"],Wf=Fo.length,bs=t=>typeof t=="string"?parseFloat(t):t,ws=t=>typeof t=="number"||C.test(t);function Uf(t,e,n,r,s,o){s?(t.opacity=j(0,n.opacity!==void 0?n.opacity:1,zf(r)),t.opacityExit=j(e.opacity!==void 0?e.opacity:1,0,Hf(r))):o&&(t.opacity=j(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let i=0;i<Wf;i++){const a=`border${Fo[i]}Radius`;let l=Es(e,a),u=Es(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||ws(l)===ws(u)?(t[a]=Math.max(j(bs(l),bs(u),r),0),(st.test(u)||st.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=j(e.rotate||0,n.rotate||0,r))}function Es(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const zf=Io(0,.5,ao),Hf=Io(.5,.95,L);function Io(t,e,n){return r=>r<t?0:r>e?1:n(ue(t,e,r))}function Ss(t,e){t.min=e.min,t.max=e.max}function K(t,e){Ss(t.x,e.x),Ss(t.y,e.y)}function Ts(t,e,n,r,s){return t-=e,t=Ue(t,1/n,r),s!==void 0&&(t=Ue(t,1/s,r)),t}function $f(t,e=0,n=1,r=.5,s,o=t,i=t){if(st.test(e)&&(e=parseFloat(e),e=j(i.min,i.max,e/100)-i.min),typeof e!="number")return;let a=j(o.min,o.max,r);t===o&&(a-=e),t.min=Ts(t.min,e,n,a,s),t.max=Ts(t.max,e,n,a,s)}function Ps(t,e,[n,r,s],o,i){$f(t,e[n],e[r],e[s],e.scale,o,i)}const qf=["x","scaleX","originX"],Gf=["y","scaleY","originY"];function As(t,e,n,r){Ps(t.x,e,qf,n?n.x:void 0,r?r.x:void 0),Ps(t.y,e,Gf,n?n.y:void 0,r?r.y:void 0)}function Cs(t){return t.translate===0&&t.scale===1}function Wo(t){return Cs(t.x)&&Cs(t.y)}function Xf(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function Uo(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function Rs(t){return X(t.x)/X(t.y)}class Kf{constructor(){this.members=[]}add(e){yr(this.members,e),e.scheduleRender()}remove(e){if(vr(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(s=>e===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const o=this.members[s];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:s}=e.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Os(t,e,n){let r="";const s=t.x.translate/e.x,o=t.y.translate/e.y;if((s||o)&&(r=`translate3d(${s}px, ${o}px, 0) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:l,rotateX:u,rotateY:f}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),f&&(r+=`rotateY(${f}deg) `)}const i=t.x.scale*e.x,a=t.y.scale*e.y;return(i!==1||a!==1)&&(r+=`scale(${i}, ${a})`),r||"none"}const Yf=(t,e)=>t.depth-e.depth;class Jf{constructor(){this.children=[],this.isDirty=!1}add(e){yr(this.children,e),this.isDirty=!0}remove(e){vr(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Yf),this.isDirty=!1,this.children.forEach(e)}}function Zf(t,e){const n=performance.now(),r=({timestamp:s})=>{const o=s-n;o>=e&&(ft(r),t(o-e))};return M.read(r,!0),()=>ft(r)}function Qf(t){window.MotionDebug&&window.MotionDebug.record(t)}function th(t){return t instanceof SVGElement&&t.tagName!=="svg"}function eh(t,e,n){const r=$(t)?t:qt(t);return r.start(gr("",r,e,n)),r.animation}const Vs=["","X","Y","Z"],nh={visibility:"hidden"},Ms=1e3;let rh=0;const Ot={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function zo({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(i={},a=e==null?void 0:e()){this.id=rh++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ot.totalNodes=Ot.resolvedTargetDeltas=Ot.recalculatedProjection=0,this.nodes.forEach(oh),this.nodes.forEach(fh),this.nodes.forEach(hh),this.nodes.forEach(ah),Qf(Ot)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Jf)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new xr),this.eventHandlers.get(i).add(a)}notifyListeners(i,...a){const l=this.eventHandlers.get(i);l&&l.notify(...a)}hasListeners(i){return this.eventHandlers.has(i)}mount(i,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=th(i),this.instance=i;const{layoutId:l,layout:u,visualElement:f}=this.options;if(f&&!f.current&&f.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),t){let c;const h=()=>this.root.updateBlockedByResize=!1;t(i,()=>{this.root.updateBlockedByResize=!0,c&&c(),c=Zf(h,250),Ce.hasAnimatedSinceResize&&(Ce.hasAnimatedSinceResize=!1,this.nodes.forEach(Ls))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&f&&(l||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:h,hasRelativeTargetChanged:d,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||f.getDefaultTransition()||yh,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=f.getProps(),w=!this.targetLayout||!Uo(this.targetLayout,m)||d,v=!h&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||h&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(c,v);const E={...mr(g,"layout"),onPlay:y,onComplete:b};(f.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else h||Ls(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ft(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(dh),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const c=this.path[f];c.shouldResetTransform=!0,c.updateScroll("snapshot"),c.options.layoutRoot&&c.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(js);return}this.isUpdating||this.nodes.forEach(ch),this.isUpdating=!1,this.nodes.forEach(uh),this.nodes.forEach(sh),this.nodes.forEach(ih),this.clearAllSnapshots();const a=performance.now();U.delta=Et(0,1e3/60,a-U.timestamp),U.timestamp=a,U.isProcessing=!0,dn.update.process(U),dn.preRender.process(U),dn.render.process(U),U.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(lh),this.sharedNodes.forEach(ph)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,M.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){M.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=k(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:i,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!s)return;const i=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!Wo(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,f=u!==this.prevTransformTemplateValue;i&&(a||Rt(this.latestValues)||f)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return i&&(l=this.removeTransform(l)),vh(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return k();const a=i.measureViewportBox(),{scroll:l}=this.root;return l&&(vt(a.x,l.offset.x),vt(a.y,l.offset.y)),a}removeElementScroll(i){const a=k();K(a,i);for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:f,options:c}=u;if(u!==this.root&&f&&c.layoutScroll){if(f.isRoot){K(a,i);const{scroll:h}=this.root;h&&(vt(a.x,-h.offset.x),vt(a.y,-h.offset.y))}vt(a.x,f.offset.x),vt(a.y,f.offset.y)}}return a}applyTransform(i,a=!1){const l=k();K(l,i);for(let u=0;u<this.path.length;u++){const f=this.path[u];!a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&$t(l,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),Rt(f.latestValues)&&$t(l,f.latestValues)}return Rt(this.latestValues)&&$t(l,this.latestValues),l}removeTransform(i){const a=k();K(a,i);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Rt(u.latestValues))continue;Un(u.latestValues)&&u.updateSnapshot();const f=k(),c=u.measurePageBox();K(f,c),As(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,f)}return Rt(this.latestValues)&&As(a,this.latestValues),a}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==U.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(i||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:c,layoutId:h}=this.options;if(!(!this.layout||!(c||h))){if(this.resolvedRelativeTargetAt=U.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=k(),this.relativeTargetOrigin=k(),oe(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),K(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=k(),this.targetWithTransforms=k()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),xf(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):K(this.target,this.layout.layoutBox),Do(this.target,this.targetDelta)):K(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const d=this.getClosestProjectingParent();d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=k(),this.relativeTargetOrigin=k(),oe(this.relativeTargetOrigin,this.target,d.target),K(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ot.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Un(this.parent.latestValues)||ko(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var i;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((i=this.parent)===null||i===void 0)&&i.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===U.timestamp&&(u=!1),u)return;const{layout:f,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||c))return;K(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,d=this.treeScale.y;Rf(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox);const{target:m}=a;if(!m){this.projectionTransform&&(this.projectionDelta=Ht(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Ht(),this.projectionDeltaWithTransform=Ht());const g=this.projectionTransform;ie(this.projectionDelta,this.layoutCorrected,m,this.latestValues),this.projectionTransform=Os(this.projectionDelta,this.treeScale),(this.projectionTransform!==g||this.treeScale.x!==h||this.treeScale.y!==d)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Ot.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),i){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(i,a=!1){const l=this.snapshot,u=l?l.latestValues:{},f={...this.latestValues},c=Ht();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=k(),d=l?l.source:void 0,m=this.layout?this.layout.source:void 0,g=d!==m,y=this.getStack(),b=!y||y.members.length<=1,w=!!(g&&!b&&this.options.crossfade===!0&&!this.path.some(gh));this.animationProgress=0;let v;this.mixTargetDelta=E=>{const S=E/1e3;ks(c.x,i.x,S),ks(c.y,i.y,S),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(oe(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mh(this.relativeTarget,this.relativeTargetOrigin,h,S),v&&Xf(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=k()),K(v,this.relativeTarget)),g&&(this.animationValues=f,Uf(f,u,this.latestValues,S,w,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ft(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=M.update(()=>{Ce.hasAnimatedSinceResize=!0,this.currentAnimation=eh(0,Ms,{...i,onUpdate:a=>{this.mixTargetDelta(a),i.onUpdate&&i.onUpdate(a)},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ms),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:f}=i;if(!(!a||!l||!u)){if(this!==i&&this.layout&&u&&Ho(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||k();const c=X(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+c;const h=X(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+h}K(a,l),$t(a,f),ie(this.projectionDeltaWithTransform,this.layoutCorrected,a,f)}}registerSharedNode(i,a){this.sharedNodes.has(i)||this.sharedNodes.set(i,new Kf),this.sharedNodes.get(i).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){var i;const{layoutId:a}=this.options;return a?((i=this.getStack())===null||i===void 0?void 0:i.lead)||this:this}getPrevLead(){var i;const{layoutId:a}=this.options;return a?(i=this.getStack())===null||i===void 0?void 0:i.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetRotation(){const{visualElement:i}=this.options;if(!i)return;let a=!1;const{latestValues:l}=i;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let f=0;f<Vs.length;f++){const c="rotate"+Vs[f];l[c]&&(u[c]=l[c],i.setStaticValue(c,0))}i.render();for(const f in u)i.setStaticValue(f,u[f]);i.scheduleRender()}getProjectionStyles(i){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return nh;const u={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Ae(i==null?void 0:i.pointerEvents)||"",u.transform=f?f(this.latestValues,""):"none",u;const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=Ae(i==null?void 0:i.pointerEvents)||""),this.hasProjected&&!Rt(this.latestValues)&&(g.transform=f?f({},""):"none",this.hasProjected=!1),g}const h=c.animationValues||c.latestValues;this.applyTransformsToTarget(),u.transform=Os(this.projectionDeltaWithTransform,this.treeScale,h),f&&(u.transform=f(h,u.transform));const{x:d,y:m}=this.projectionDelta;u.transformOrigin=`${d.origin*100}% ${m.origin*100}% 0`,c.animationValues?u.opacity=c===this?(l=(a=h.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:u.opacity=c===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const g in De){if(h[g]===void 0)continue;const{correct:y,applyTo:b}=De[g],w=u.transform==="none"?h[g]:y(h[g],c);if(b){const v=b.length;for(let E=0;E<v;E++)u[b[E]]=w}else u[g]=w}return this.options.layoutId&&(u.pointerEvents=c===this?Ae(i==null?void 0:i.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>{var a;return(a=i.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(js),this.root.sharedNodes.clear()}}}function sh(t){t.updateLayout()}function ih(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=t.layout,{animationType:o}=t.options,i=n.source!==t.layout.source;o==="size"?Y(c=>{const h=i?n.measuredBox[c]:n.layoutBox[c],d=X(h);h.min=r[c].min,h.max=h.min+d}):Ho(o,n.layoutBox,r)&&Y(c=>{const h=i?n.measuredBox[c]:n.layoutBox[c],d=X(r[c]);h.max=h.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[c].max=t.relativeTarget[c].min+d)});const a=Ht();ie(a,r,n.layoutBox);const l=Ht();i?ie(l,t.applyTransform(s,!0),n.measuredBox):ie(l,r,n.layoutBox);const u=!Wo(a);let f=!1;if(!t.resumeFrom){const c=t.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:h,layout:d}=c;if(h&&d){const m=k();oe(m,n.layoutBox,h.layoutBox);const g=k();oe(g,r,d.layoutBox),Uo(m,g)||(f=!0),c.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=m,t.relativeParent=c)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:f})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function oh(t){Ot.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ah(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function lh(t){t.clearSnapshot()}function js(t){t.clearMeasurements()}function ch(t){t.isLayoutDirty=!1}function uh(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ls(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function fh(t){t.resolveTargetDelta()}function hh(t){t.calcProjection()}function dh(t){t.resetRotation()}function ph(t){t.removeLeadSnapshot()}function ks(t,e,n){t.translate=j(e.translate,0,n),t.scale=j(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ds(t,e,n,r){t.min=j(e.min,n.min,r),t.max=j(e.max,n.max,r)}function mh(t,e,n,r){Ds(t.x,e.x,n.x,r),Ds(t.y,e.y,n.y,r)}function gh(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const yh={duration:.45,ease:[.4,0,.1,1]},_s=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),Ns=_s("applewebkit/")&&!_s("chrome/")?Math.round:L;function Bs(t){t.min=Ns(t.min),t.max=Ns(t.max)}function vh(t){Bs(t.x),Bs(t.y)}function Ho(t,e,n){return t==="position"||t==="preserve-aspect"&&!In(Rs(e),Rs(n),.2)}const xh=zo({attachResizeListener:(t,e)=>at(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Tn={current:void 0},$o=zo({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Tn.current){const t=new xh({});t.mount(window),t.setOptions({layoutScroll:!0}),Tn.current=t}return Tn.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),bh={pan:{Feature:_f},drag:{Feature:Df,ProjectionNode:$o,MeasureLayout:Bo}},wh=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Eh(t){const e=wh.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}function Hn(t,e,n=1){const[r,s]=Eh(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const i=o.trim();return Co(i)?parseFloat(i):i}else return Ln(s)?Hn(s,e,n+1):s}function Sh(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(s=>{const o=s.get();if(!Ln(o))return;const i=Hn(o,r);i&&s.set(i)});for(const s in e){const o=e[s];if(!Ln(o))continue;const i=Hn(o,r);i&&(e[s]=i,n||(n={}),n[s]===void 0&&(n[s]=o))}return{target:e,transitionEnd:n}}const Th=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),qo=t=>Th.has(t),Ph=t=>Object.keys(t).some(qo),Fs=t=>t===Lt||t===C,Is=(t,e)=>parseFloat(t.split(", ")[e]),Ws=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/);if(s)return Is(s[1],e);{const o=r.match(/^matrix\((.+)\)$/);return o?Is(o[1],t):0}},Ah=new Set(["x","y","z"]),Ch=he.filter(t=>!Ah.has(t));function Rh(t){const e=[];return Ch.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const Gt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Ws(4,13),y:Ws(5,14)};Gt.translateX=Gt.x;Gt.translateY=Gt.y;const Oh=(t,e,n)=>{const r=e.measureViewportBox(),s=e.current,o=getComputedStyle(s),{display:i}=o,a={};i==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(u=>{a[u]=Gt[u](r,o)}),e.render();const l=e.measureViewportBox();return n.forEach(u=>{const f=e.getValue(u);f&&f.jump(a[u]),t[u]=Gt[u](l,o)}),t},Vh=(t,e,n={},r={})=>{e={...e},r={...r};const s=Object.keys(e).filter(qo);let o=[],i=!1;const a=[];if(s.forEach(l=>{const u=t.getValue(l);if(!t.hasValue(l))return;let f=n[l],c=Qt(f);const h=e[l];let d;if(Ne(h)){const m=h.length,g=h[0]===null?1:0;f=h[g],c=Qt(f);for(let y=g;y<m&&h[y]!==null;y++)d?ur(Qt(h[y])===d):d=Qt(h[y])}else d=Qt(h);if(c!==d)if(Fs(c)&&Fs(d)){const m=u.get();typeof m=="string"&&u.set(parseFloat(m)),typeof h=="string"?e[l]=parseFloat(h):Array.isArray(h)&&d===C&&(e[l]=h.map(parseFloat))}else c!=null&&c.transform&&(d!=null&&d.transform)&&(f===0||h===0)?f===0?u.set(d.transform(f)):e[l]=c.transform(h):(i||(o=Rh(t),i=!0),a.push(l),r[l]=r[l]!==void 0?r[l]:e[l],u.jump(h))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,u=Oh(e,t,a);return o.length&&o.forEach(([f,c])=>{t.getValue(f).set(c)}),t.render(),Ye&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:e,transitionEnd:r}};function Mh(t,e,n,r){return Ph(e)?Vh(t,e,n,r):{target:e,transitionEnd:r}}const jh=(t,e,n,r)=>{const s=Sh(t,e,r);return e=s.target,r=s.transitionEnd,Mh(t,e,n,r)},$n={current:null},Go={current:!1};function Lh(){if(Go.current=!0,!!Ye)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>$n.current=t.matches;t.addListener(e),e()}else $n.current=!1}function kh(t,e,n){const{willChange:r}=e;for(const s in e){const o=e[s],i=n[s];if($(o))t.addValue(s,o),We(r)&&r.add(s);else if($(i))t.addValue(s,qt(o,{owner:t})),We(r)&&r.remove(s);else if(i!==o)if(t.hasValue(s)){const a=t.getValue(s);!a.hasAnimated&&a.set(o)}else{const a=t.getStaticValue(s);t.addValue(s,qt(a!==void 0?a:o,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Us=new WeakMap,Xo=Object.keys(ce),Dh=Xo.length,zs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],_h=nr.length;class Nh{constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:s,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>M.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=i,this.isControllingVariants=Ze(n),this.isVariantNode=Mi(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{});for(const c in f){const h=f[c];a[c]!==void 0&&$(h)&&(h.set(a[c],!1),We(u)&&u.add(c))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,Us.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Go.current||Lh(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:$n.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Us.delete(this.current),this.projection&&this.projection.unmount(),ft(this.notifyUpdate),ft(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const r=jt.has(e),s=n.on("change",i=>{this.latestValues[e]=i,this.props.onUpdate&&M.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{s(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},r,s,o){let i,a;for(let l=0;l<Dh;l++){const u=Xo[l],{isEnabled:f,Feature:c,ProjectionNode:h,MeasureLayout:d}=ce[u];h&&(i=h),f(n)&&(!this.features[u]&&c&&(this.features[u]=new c(this)),d&&(a=d))}if((this.type==="html"||this.type==="svg")&&!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:u,drag:f,dragConstraints:c,layoutScroll:h,layoutRoot:d}=n;this.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:!!f||c&&Ut(c),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:h,layoutRoot:d})}return a}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):k()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,this.props,n)}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<zs.length;r++){const s=zs[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o=e["on"+s];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=kh(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<_h;r++){const s=nr[r],o=this.props[s];(le(o)||o===!1)&&(n[s]=o)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=qt(n,{owner:this}),this.addValue(e,r)),r}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props,s=typeof r=="string"||typeof r=="object"?(n=cr(this.props,r))===null||n===void 0?void 0:n[e]:void 0;if(r&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!$(o)?o:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new xr),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Ko extends Nh{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...r},{transformValues:s},o){let i=Qu(r,e||{},this);if(s&&(n&&(n=s(n)),r&&(r=s(r)),i&&(i=s(i))),o){Ju(this,r,i);const a=jh(this,r,i,n);n=a.transitionEnd,r=a.target}return{transition:e,transitionEnd:n,...r}}}function Bh(t){return window.getComputedStyle(t)}class Fh extends Ko{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(jt.has(n)){const r=pr(n);return r&&r.default||0}else{const r=Bh(e),s=(_i(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:n}){return _o(e,n)}build(e,n,r,s){sr(e,n,r,s.transformTemplate)}scrapeMotionValuesFromProps(e,n){return lr(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;$(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,r,s){Ui(e,n,r,s)}}class Ih extends Ko{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(jt.has(n)){const r=pr(n);return r&&r.default||0}return n=zi.has(n)?n:tr(n),e.getAttribute(n)}measureInstanceViewportBox(){return k()}scrapeMotionValuesFromProps(e,n){return $i(e,n)}build(e,n,r,s){or(e,n,r,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,r,s){Hi(e,n,r,s)}mount(e){this.isSVGTag=ar(e.tagName),super.mount(e)}}const Wh=(t,e)=>rr(t)?new Ih(e,{enableHardwareAcceleration:!1}):new Fh(e,{enableHardwareAcceleration:!0}),Uh={layout:{ProjectionNode:$o,MeasureLayout:Bo}},zh={...mf,...kc,...bh,...Uh},Yo=Ul((t,e)=>wc(t,e,zh,Wh));function Hh(t){const{children:e,parentRef:n,onlyChild:r}=t,[s,o]=p.reactExports.useState({top:0,left:0});return p.reactExports.useLayoutEffect(()=>{if(n.current){const i=n.current.getBoundingClientRect();o({top:i.top,left:i.left+i.width})}},[n]),r?e:p.reactDomExports.createPortal(p.jsxRuntimeExports.jsx(Yo.div,{style:{position:"fixed",top:s.top,left:s.left,zIndex:1200},children:e}),n.current)}function $h(t){return p.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:p.jsxRuntimeExports.jsx("path",{fill:"currenColor",d:"M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"})})}function qh(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,o;for(o=0;o<r.length;o++)s=r[o],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function ze(){return ze=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ze.apply(this,arguments)}function qn(t,e){return qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,s){return r.__proto__=s,r},qn(t,e)}function Gh(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,qn(t,e)}function Pn(t,e,n){if(n||arguments.length===2)for(var r=0,s=e.length,o;r<s;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}/*!
29
+ * content-type
30
+ * Copyright(c) 2015 Douglas Christopher Wilson
31
+ * MIT Licensed
32
+ */var Hs=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,Xh=/\\([\u000b\u0020-\u00ff])/g,Kh=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,Yh=Jh;function Jh(t){if(!t)throw new TypeError("argument string is required");var e=typeof t=="object"?Zh(t):t;if(typeof e!="string")throw new TypeError("argument string is required to be a string");var n=e.indexOf(";"),r=n!==-1?e.slice(0,n).trim():e.trim();if(!Kh.test(r))throw new TypeError("invalid media type");var s=new Qh(r.toLowerCase());if(n!==-1){var o,i,a;for(Hs.lastIndex=n;i=Hs.exec(e);){if(i.index!==n)throw new TypeError("invalid parameter format");n+=i[0].length,o=i[1].toLowerCase(),a=i[2],a.charCodeAt(0)===34&&(a=a.slice(1,-1),a.indexOf("\\")!==-1&&(a=a.replace(Xh,"$1"))),s.parameters[o]=a}if(n!==e.length)throw new TypeError("invalid parameter format")}return s}function Zh(t){var e;if(typeof t.getHeader=="function"?e=t.getHeader("content-type"):typeof t.headers=="object"&&(e=t.headers&&t.headers["content-type"]),typeof e!="string")throw new TypeError("content-type header is missing from object");return e}function Qh(t){this.parameters=Object.create(null),this.type=t}var It=new Map,Jo=function(e){return e.cloneNode(!0)},$s=function(){return window.location.protocol==="file:"},Zo=function(e,n,r){var s=new XMLHttpRequest;s.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&s.readyState===2){var o=s.getResponseHeader("Content-Type");if(!o)throw new Error("Content type not found");var i=Yh(o).type;if(!(i==="image/svg+xml"||i==="text/plain"))throw new Error("Invalid content type: ".concat(i))}if(s.readyState===4){if(s.status===404||s.responseXML===null)throw new Error($s()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(s.status===200||$s()&&s.status===0)r(null,s);else throw new Error("There was a problem injecting the SVG: "+s.status+" "+s.statusText)}}catch(a){if(s.abort(),a instanceof Error)r(a,s);else throw a}},s.open("GET",e),s.withCredentials=n,s.overrideMimeType&&s.overrideMimeType("text/xml"),s.send()},xt={},qs=function(e,n){xt[e]=xt[e]||[],xt[e].push(n)},td=function(e){for(var n=function(i,a){setTimeout(function(){if(Array.isArray(xt[e])){var l=It.get(e),u=xt[e][i];l instanceof SVGSVGElement&&u(null,Jo(l)),l instanceof Error&&u(l),i===xt[e].length-1&&delete xt[e]}},0)},r=0,s=xt[e].length;r<s;r++)n(r)},ed=function(e,n,r){if(It.has(e)){var s=It.get(e);if(s===void 0){qs(e,r);return}if(s instanceof SVGSVGElement){r(null,Jo(s));return}}It.set(e,void 0),qs(e,r),Zo(e,n,function(o,i){var a;o?It.set(e,o):((a=i.responseXML)===null||a===void 0?void 0:a.documentElement)instanceof SVGSVGElement&&It.set(e,i.responseXML.documentElement),td(e)})},nd=function(e,n,r){Zo(e,n,function(s,o){var i;s?r(s):((i=o.responseXML)===null||i===void 0?void 0:i.documentElement)instanceof SVGSVGElement&&r(null,o.responseXML.documentElement)})},rd=0,sd=function(){return++rd},nt=[],Gs={},id="http://www.w3.org/2000/svg",An="http://www.w3.org/1999/xlink",Xs=function(e,n,r,s,o,i,a){var l=e.getAttribute("data-src")||e.getAttribute("src");if(!l){a(new Error("Invalid data-src or src attribute"));return}if(nt.indexOf(e)!==-1){nt.splice(nt.indexOf(e),1),e=null;return}nt.push(e),e.setAttribute("src","");var u=s?ed:nd;u(l,o,function(f,c){if(!c){nt.splice(nt.indexOf(e),1),e=null,a(f);return}var h=e.getAttribute("id");h&&c.setAttribute("id",h);var d=e.getAttribute("title");d&&c.setAttribute("title",d);var m=e.getAttribute("width");m&&c.setAttribute("width",m);var g=e.getAttribute("height");g&&c.setAttribute("height",g);var y=Array.from(new Set(Pn(Pn(Pn([],(c.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();c.setAttribute("class",y);var b=e.getAttribute("style");b&&c.setAttribute("style",b),c.setAttribute("data-src",l);var w=[].filter.call(e.attributes,function(I){return/^data-\w[\w-]*$/.test(I.name)});if(Array.prototype.forEach.call(w,function(I){I.name&&I.value&&c.setAttribute(I.name,I.value)}),r){var v={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]},E,S,T,P,A;Object.keys(v).forEach(function(I){E=I,T=v[I],S=c.querySelectorAll(E+"[id]");for(var ht=function(_t,ln){P=S[_t].id,A=P+"-"+sd();var Pt;Array.prototype.forEach.call(T,function(cn){Pt=c.querySelectorAll("["+cn+'*="'+P+'"]');for(var ve=0,Ea=Pt.length;ve<Ea;ve++){var Rr=Pt[ve].getAttribute(cn);Rr&&!Rr.match(new RegExp('url\\("?#'+P+'"?\\)'))||Pt[ve].setAttribute(cn,"url(#"+A+")")}});for(var ot=c.querySelectorAll("[*|href]"),Nt=[],Bt=0,Jt=ot.length;Bt<Jt;Bt++){var At=ot[Bt].getAttributeNS(An,"href");At&&At.toString()==="#"+S[_t].id&&Nt.push(ot[Bt])}for(var Z=0,Cr=Nt.length;Z<Cr;Z++)Nt[Z].setAttributeNS(An,"href","#"+A);S[_t].id=A},kt=0,V=S.length;kt<V;kt++)ht(kt)})}c.removeAttribute("xmlns:a");for(var R=c.querySelectorAll("script"),B=[],q,_,W=0,F=R.length;W<F;W++)_=R[W].getAttribute("type"),(!_||_==="application/ecmascript"||_==="application/javascript"||_==="text/javascript")&&(q=R[W].innerText||R[W].textContent,q&&B.push(q),c.removeChild(R[W]));if(B.length>0&&(n==="always"||n==="once"&&!Gs[l])){for(var tt=0,N=B.length;tt<N;tt++)new Function(B[tt])(window);Gs[l]=!0}var et=c.querySelectorAll("style");if(Array.prototype.forEach.call(et,function(I){I.textContent+=""}),c.setAttribute("xmlns",id),c.setAttribute("xmlns:xlink",An),i(c),!e.parentNode){nt.splice(nt.indexOf(e),1),e=null,a(new Error("Parent node is null"));return}e.parentNode.replaceChild(c,e),nt.splice(nt.indexOf(e),1),e=null,a(null,c)})},od=function(e,n){var r=n===void 0?{}:n,s=r.afterAll,o=s===void 0?function(){}:s,i=r.afterEach,a=i===void 0?function(){}:i,l=r.beforeEach,u=l===void 0?function(){}:l,f=r.cacheRequests,c=f===void 0?!0:f,h=r.evalScripts,d=h===void 0?"never":h,m=r.httpRequestWithCredentials,g=m===void 0?!1:m,y=r.renumerateIRIElements,b=y===void 0?!0:y;if(e&&"length"in e)for(var w=0,v=0,E=e.length;v<E;v++)Xs(e[v],d,b,c,g,u,function(S,T){a(S,T),e&&"length"in e&&e.length===++w&&o(w)});else e?Xs(e,d,b,c,g,u,function(S,T){a(S,T),o(1),e=null}):o(0)},ad=function(e){var n=(e==null?void 0:e.ownerDocument)||document;return n.defaultView||window},ld=function(e,n){for(var r in e)if(!(r in n))return!0;for(var s in n)if(e[s]!==n[s])return!0;return!1},cd=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Te="http://www.w3.org/2000/svg",Ks="http://www.w3.org/1999/xlink",br=function(t){Gh(e,t);function e(){for(var r,s=arguments.length,o=new Array(s),i=0;i<s;i++)o[i]=arguments[i];return r=t.call.apply(t,[this].concat(o))||this,r.initialState={hasError:!1,isLoading:!0},r.state=r.initialState,r._isMounted=!1,r.reactWrapper=void 0,r.nonReactWrapper=void 0,r.refCallback=function(a){r.reactWrapper=a},r}var n=e.prototype;return n.renderSVG=function(){var s=this;if(this.reactWrapper instanceof ad(this.reactWrapper).Node){var o=this.props,i=o.desc,a=o.evalScripts,l=o.httpRequestWithCredentials,u=o.renumerateIRIElements,f=o.src,c=o.title,h=o.useRequestCache,d=this.props.onError,m=this.props.beforeInjection,g=this.props.afterInjection,y=this.props.wrapper,b,w;y==="svg"?(b=document.createElementNS(Te,y),b.setAttribute("xmlns",Te),b.setAttribute("xmlns:xlink",Ks),w=document.createElementNS(Te,y)):(b=document.createElement(y),w=document.createElement(y)),b.appendChild(w),w.dataset.src=f,this.nonReactWrapper=this.reactWrapper.appendChild(b);var v=function(P){if(s.removeSVG(),!s._isMounted){d(P);return}s.setState(function(){return{hasError:!0,isLoading:!1}},function(){d(P)})},E=function(P,A){if(P){v(P);return}s._isMounted&&s.setState(function(){return{isLoading:!1}},function(){try{g(A)}catch(R){v(R)}})},S=function(P){if(P.setAttribute("role","img"),i){var A=P.querySelector(":scope > desc");A&&P.removeChild(A);var R=document.createElement("desc");R.innerHTML=i,P.prepend(R)}if(c){var B=P.querySelector(":scope > title");B&&P.removeChild(B);var q=document.createElement("title");q.innerHTML=c,P.prepend(q)}try{m(P)}catch(_){v(_)}};od(w,{afterEach:E,beforeEach:S,cacheRequests:h,evalScripts:a,httpRequestWithCredentials:l,renumerateIRIElements:u})}},n.removeSVG=function(){var s;(s=this.nonReactWrapper)!=null&&s.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(s){var o=this;ld(ze({},s),this.props)&&this.setState(function(){return o.initialState},function(){o.removeSVG(),o.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var s=this.props;s.afterInjection,s.beforeInjection,s.desc,s.evalScripts;var o=s.fallback;s.httpRequestWithCredentials;var i=s.loading;s.renumerateIRIElements,s.src,s.title,s.useRequestCache;var a=s.wrapper,l=qh(s,cd),u=a;return p.reactExports.createElement(u,ze({},l,{ref:this.refCallback},a==="svg"?{xmlns:Te,xmlnsXlink:Ks}:{}),this.state.isLoading&&i&&p.reactExports.createElement(i,null),this.state.hasError&&o&&p.reactExports.createElement(o,null))},e}(p.reactExports.Component);br.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};br.propTypes={afterInjection:p.propTypesExports.func,beforeInjection:p.propTypesExports.func,desc:p.propTypesExports.string,evalScripts:p.propTypesExports.oneOf(["always","once","never"]),fallback:p.propTypesExports.oneOfType([p.propTypesExports.func,p.propTypesExports.object,p.propTypesExports.string]),httpRequestWithCredentials:p.propTypesExports.bool,loading:p.propTypesExports.oneOfType([p.propTypesExports.func,p.propTypesExports.object,p.propTypesExports.string]),onError:p.propTypesExports.func,renumerateIRIElements:p.propTypesExports.bool,src:p.propTypesExports.string.isRequired,title:p.propTypesExports.string,useRequestCache:p.propTypesExports.bool,wrapper:p.propTypesExports.oneOf(["div","span","svg"])};function Qo({item:t,level:e=0,...n}){var b;const{isActive:r,isCollapsed:s,expanded:o,toggleExpand:i}=n,a=`level-${e}`,l=s?"collapsed":"expanded",u=r(t.id)?"active":"",f=(w,v=a)=>`${w} ${v} ${l} ${u}`,c=!!((b=t.children)!=null&&b.length),[h,d]=p.reactExports.useState(!1),m=p.reactExports.useRef();function g(w){var T;const{level:v,hovered:E,parentRef:S}=w;return!c||s&&v>=2&&!E?null:p.jsxRuntimeExports.jsx(Hh,{parentRef:S,onlyChild:!s||s&&v<2,children:p.jsxRuntimeExports.jsx(Yo.div,{className:f("menu-item__dropdown",`level-${v}`),initial:{height:s?"auto":0},animate:{height:s||o(t.id)?"auto":0},transition:{duration:.2},children:(T=t.children)==null?void 0:T.map(P=>p.reactExports.createElement(Qo,{...n,key:P.id,item:P,level:v}))},+s)})}const y=c?"div":Xa;return p.jsxRuntimeExports.jsxs("div",{ref:m,className:f("menu-item__wrapper"),onMouseEnter:()=>s&&d(!0),onMouseLeave:()=>s&&d(!1),children:[p.jsxRuntimeExports.jsxs(y,{to:c?"#":t.path||"#",style:{paddingLeft:`${s?"0.5rem":`${e*1}rem`}`},className:f("menu-item__link"),onClick:w=>{c&&(w.preventDefault(),s||i(t.id))},children:[e!==0&&p.jsxRuntimeExports.jsx(ud,{cls:f,item:t}),p.jsxRuntimeExports.jsx("span",{className:f("menu-item__label"),children:t.name}),c&&p.jsxRuntimeExports.jsx("div",{className:f("menu-item__icon-arrow__wrapper"),children:p.jsxRuntimeExports.jsx($h,{className:f(`menu-item__icon-arrow__icon ${o(t.id)?"open":"close"}`)})})]}),g({level:e+1,hovered:h,parentRef:m})]},t.id)}function ud({item:t,cls:e}){var i,a;const[n,r]=p.reactExports.useState(!1),s=()=>{r(!0)},o=(i=t.icon)==null?void 0:i.endsWith(".svg");return p.jsxRuntimeExports.jsx("div",{className:e("menu-item__icon"),children:n?p.jsxRuntimeExports.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center"},children:(a=t.name.trim().at(0))==null?void 0:a.toUpperCase()}):o?p.jsxRuntimeExports.jsx(br,{src:t.icon,beforeInjection:l=>{l.setAttribute("style","margin: 0 auto;"),l.querySelectorAll("path").forEach(f=>{f.setAttribute("stroke","currentColor")})}}):p.jsxRuntimeExports.jsx("img",{src:t.icon||"/",alt:" ",style:{height:24,maxHeight:24},onError:s})})}function Ys(t){for(;t.startsWith("/");)t=t.slice(1);return t}function ta(t,e,n=[]){for(const r of t){if(console.log(r.path,e,r.path===e),Ys(r.path||"")===Ys(e))return[...n,r];if(r.children){const s=ta(r.children,e,[...n,r]);if(s)return s}}return null}function fd(t){return p.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:p.jsxRuntimeExports.jsx("path",{fill:"#E01B00",fillRule:"evenodd",d:"M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",clipRule:"evenodd"})})}function ea(t,e){return function(){return t.apply(e,arguments)}}const{toString:hd}=Object.prototype,{getPrototypeOf:wr}=Object,nn=(t=>e=>{const n=hd.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),it=t=>(t=t.toLowerCase(),e=>nn(e)===t),rn=t=>e=>typeof e===t,{isArray:Yt}=Array,fe=rn("undefined");function dd(t){return t!==null&&!fe(t)&&t.constructor!==null&&!fe(t.constructor)&&J(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const na=it("ArrayBuffer");function pd(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&na(t.buffer),e}const md=rn("string"),J=rn("function"),ra=rn("number"),sn=t=>t!==null&&typeof t=="object",gd=t=>t===!0||t===!1,Re=t=>{if(nn(t)!=="object")return!1;const e=wr(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},yd=it("Date"),vd=it("File"),xd=it("Blob"),bd=it("FileList"),wd=t=>sn(t)&&J(t.pipe),Ed=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||J(t.append)&&((e=nn(t))==="formdata"||e==="object"&&J(t.toString)&&t.toString()==="[object FormData]"))},Sd=it("URLSearchParams"),Td=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ge(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),Yt(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let a;for(r=0;r<i;r++)a=o[r],e.call(null,t[a],a,t)}}function sa(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const ia=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),oa=t=>!fe(t)&&t!==ia;function Gn(){const{caseless:t}=oa(this)&&this||{},e={},n=(r,s)=>{const o=t&&sa(e,s)||s;Re(e[o])&&Re(r)?e[o]=Gn(e[o],r):Re(r)?e[o]=Gn({},r):Yt(r)?e[o]=r.slice():e[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&ge(arguments[r],n);return e}const Pd=(t,e,n,{allOwnKeys:r}={})=>(ge(e,(s,o)=>{n&&J(s)?t[o]=ea(s,n):t[o]=s},{allOwnKeys:r}),t),Ad=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Cd=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Rd=(t,e,n,r)=>{let s,o,i;const a={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)i=s[o],(!r||r(i,t,e))&&!a[i]&&(e[i]=t[i],a[i]=!0);t=n!==!1&&wr(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Od=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Vd=t=>{if(!t)return null;if(Yt(t))return t;let e=t.length;if(!ra(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Md=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&wr(Uint8Array)),jd=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const o=s.value;e.call(t,o[0],o[1])}},Ld=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},kd=it("HTMLFormElement"),Dd=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Js=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),_d=it("RegExp"),aa=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};ge(n,(s,o)=>{let i;(i=e(s,o,t))!==!1&&(r[o]=i||s)}),Object.defineProperties(t,r)},Nd=t=>{aa(t,(e,n)=>{if(J(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(J(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Bd=(t,e)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return Yt(t)?r(t):r(String(t).split(e)),n},Fd=()=>{},Id=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Cn="abcdefghijklmnopqrstuvwxyz",Zs="0123456789",la={DIGIT:Zs,ALPHA:Cn,ALPHA_DIGIT:Cn+Cn.toUpperCase()+Zs},Wd=(t=16,e=la.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Ud(t){return!!(t&&J(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const zd=t=>{const e=new Array(10),n=(r,s)=>{if(sn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const o=Yt(r)?[]:{};return ge(r,(i,a)=>{const l=n(i,s+1);!fe(l)&&(o[a]=l)}),e[s]=void 0,o}}return r};return n(t,0)},Hd=it("AsyncFunction"),$d=t=>t&&(sn(t)||J(t))&&J(t.then)&&J(t.catch),x={isArray:Yt,isArrayBuffer:na,isBuffer:dd,isFormData:Ed,isArrayBufferView:pd,isString:md,isNumber:ra,isBoolean:gd,isObject:sn,isPlainObject:Re,isUndefined:fe,isDate:yd,isFile:vd,isBlob:xd,isRegExp:_d,isFunction:J,isStream:wd,isURLSearchParams:Sd,isTypedArray:Md,isFileList:bd,forEach:ge,merge:Gn,extend:Pd,trim:Td,stripBOM:Ad,inherits:Cd,toFlatObject:Rd,kindOf:nn,kindOfTest:it,endsWith:Od,toArray:Vd,forEachEntry:jd,matchAll:Ld,isHTMLForm:kd,hasOwnProperty:Js,hasOwnProp:Js,reduceDescriptors:aa,freezeMethods:Nd,toObjectSet:Bd,toCamelCase:Dd,noop:Fd,toFiniteNumber:Id,findKey:sa,global:ia,isContextDefined:oa,ALPHABET:la,generateString:Wd,isSpecCompliantForm:Ud,toJSONObject:zd,isAsyncFn:Hd,isThenable:$d};function O(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}x.inherits(O,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:x.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ca=O.prototype,ua={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{ua[t]={value:t}});Object.defineProperties(O,ua);Object.defineProperty(ca,"isAxiosError",{value:!0});O.from=(t,e,n,r,s,o)=>{const i=Object.create(ca);return x.toFlatObject(t,i,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),O.call(i,t.message,e,n,r,s),i.cause=t,i.name=t.name,o&&Object.assign(i,o),i};const qd=null;function Xn(t){return x.isPlainObject(t)||x.isArray(t)}function fa(t){return x.endsWith(t,"[]")?t.slice(0,-2):t}function Qs(t,e,n){return t?t.concat(e).map(function(s,o){return s=fa(s),!n&&o?"["+s+"]":s}).join(n?".":""):e}function Gd(t){return x.isArray(t)&&!t.some(Xn)}const Xd=x.toFlatObject(x,{},null,function(e){return/^is[A-Z]/.test(e)});function on(t,e,n){if(!x.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=x.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,y){return!x.isUndefined(y[g])});const r=n.metaTokens,s=n.visitor||f,o=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(e);if(!x.isFunction(s))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(x.isDate(m))return m.toISOString();if(!l&&x.isBlob(m))throw new O("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(m)||x.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function f(m,g,y){let b=m;if(m&&!y&&typeof m=="object"){if(x.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(x.isArray(m)&&Gd(m)||(x.isFileList(m)||x.endsWith(g,"[]"))&&(b=x.toArray(m)))return g=fa(g),b.forEach(function(v,E){!(x.isUndefined(v)||v===null)&&e.append(i===!0?Qs([g],E,o):i===null?g:g+"[]",u(v))}),!1}return Xn(m)?!0:(e.append(Qs(y,g,o),u(m)),!1)}const c=[],h=Object.assign(Xd,{defaultVisitor:f,convertValue:u,isVisitable:Xn});function d(m,g){if(!x.isUndefined(m)){if(c.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));c.push(m),x.forEach(m,function(b,w){(!(x.isUndefined(b)||b===null)&&s.call(e,b,x.isString(w)?w.trim():w,g,h))===!0&&d(b,g?g.concat(w):[w])}),c.pop()}}if(!x.isObject(t))throw new TypeError("data must be an object");return d(t),e}function ti(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Er(t,e){this._pairs=[],t&&on(t,this,e)}const ha=Er.prototype;ha.append=function(e,n){this._pairs.push([e,n])};ha.toString=function(e){const n=e?function(r){return e.call(this,r,ti)}:ti;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Kd(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function da(t,e,n){if(!e)return t;const r=n&&n.encode||Kd,s=n&&n.serialize;let o;if(s?o=s(e,n):o=x.isURLSearchParams(e)?e.toString():new Er(e,n).toString(r),o){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Yd{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){x.forEach(this.handlers,function(r){r!==null&&e(r)})}}const ei=Yd,pa={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jd=typeof URLSearchParams<"u"?URLSearchParams:Er,Zd=typeof FormData<"u"?FormData:null,Qd=typeof Blob<"u"?Blob:null,tp={isBrowser:!0,classes:{URLSearchParams:Jd,FormData:Zd,Blob:Qd},protocols:["http","https","file","blob","url","data"]},ma=typeof window<"u"&&typeof document<"u",ep=(t=>ma&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),np=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),rp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ma,hasStandardBrowserEnv:ep,hasStandardBrowserWebWorkerEnv:np},Symbol.toStringTag,{value:"Module"})),rt={...rp,...tp};function sp(t,e){return on(t,new rt.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return rt.isNode&&x.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function ip(t){return x.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function op(t){const e={},n=Object.keys(t);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],e[o]=t[o];return e}function ga(t){function e(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),l=o>=n.length;return i=!i&&x.isArray(s)?s.length:i,l?(x.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!a):((!s[i]||!x.isObject(s[i]))&&(s[i]=[]),e(n,r,s[i],o)&&x.isArray(s[i])&&(s[i]=op(s[i])),!a)}if(x.isFormData(t)&&x.isFunction(t.entries)){const n={};return x.forEachEntry(t,(r,s)=>{e(ip(r),s,n,0)}),n}return null}function ap(t,e,n){if(x.isString(t))try{return(e||JSON.parse)(t),x.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const Sr={transitional:pa,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=x.isObject(e);if(o&&x.isHTMLForm(e)&&(e=new FormData(e)),x.isFormData(e))return s&&s?JSON.stringify(ga(e)):e;if(x.isArrayBuffer(e)||x.isBuffer(e)||x.isStream(e)||x.isFile(e)||x.isBlob(e))return e;if(x.isArrayBufferView(e))return e.buffer;if(x.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return sp(e,this.formSerializer).toString();if((a=x.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return on(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),ap(e)):e}],transformResponse:[function(e){const n=this.transitional||Sr.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(e&&x.isString(e)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(a){if(i)throw a.name==="SyntaxError"?O.from(a,O.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rt.classes.FormData,Blob:rt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],t=>{Sr.headers[t]={}});const Tr=Sr,lp=x.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),cp=t=>{const e={};let n,r,s;return t&&t.split(`
33
+ `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||e[n]&&lp[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},ni=Symbol("internals");function ee(t){return t&&String(t).trim().toLowerCase()}function Oe(t){return t===!1||t==null?t:x.isArray(t)?t.map(Oe):String(t)}function up(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const fp=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Rn(t,e,n,r,s){if(x.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!x.isString(e)){if(x.isString(r))return e.indexOf(r)!==-1;if(x.isRegExp(r))return r.test(e)}}function hp(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function dp(t,e){const n=x.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,o,i){return this[r].call(this,e,s,o,i)},configurable:!0})})}class an{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function o(a,l,u){const f=ee(l);if(!f)throw new Error("header name must be a non-empty string");const c=x.findKey(s,f);(!c||s[c]===void 0||u===!0||u===void 0&&s[c]!==!1)&&(s[c||l]=Oe(a))}const i=(a,l)=>x.forEach(a,(u,f)=>o(u,f,l));return x.isPlainObject(e)||e instanceof this.constructor?i(e,n):x.isString(e)&&(e=e.trim())&&!fp(e)?i(cp(e),n):e!=null&&o(n,e,r),this}get(e,n){if(e=ee(e),e){const r=x.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return up(s);if(x.isFunction(n))return n.call(this,s,r);if(x.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=ee(e),e){const r=x.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Rn(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function o(i){if(i=ee(i),i){const a=x.findKey(r,i);a&&(!n||Rn(r,r[a],a,n))&&(delete r[a],s=!0)}}return x.isArray(e)?e.forEach(o):o(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!e||Rn(this,this[o],o,e,!0))&&(delete this[o],s=!0)}return s}normalize(e){const n=this,r={};return x.forEach(this,(s,o)=>{const i=x.findKey(r,o);if(i){n[i]=Oe(s),delete n[o];return}const a=e?hp(o):String(o).trim();a!==o&&delete n[o],n[a]=Oe(s),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return x.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&x.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
34
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[ni]=this[ni]={accessors:{}}).accessors,s=this.prototype;function o(i){const a=ee(i);r[a]||(dp(s,i),r[a]=!0)}return x.isArray(e)?e.forEach(o):o(e),this}}an.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(an.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});x.freezeMethods(an);const ut=an;function On(t,e){const n=this||Tr,r=e||n,s=ut.from(r.headers);let o=r.data;return x.forEach(t,function(a){o=a.call(n,o,s.normalize(),e?e.status:void 0)}),s.normalize(),o}function ya(t){return!!(t&&t.__CANCEL__)}function ye(t,e,n){O.call(this,t??"canceled",O.ERR_CANCELED,e,n),this.name="CanceledError"}x.inherits(ye,O,{__CANCEL__:!0});function pp(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new O("Request failed with status code "+n.status,[O.ERR_BAD_REQUEST,O.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const mp=rt.hasStandardBrowserEnv?{write(t,e,n,r,s,o){const i=[t+"="+encodeURIComponent(e)];x.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),x.isString(r)&&i.push("path="+r),x.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function gp(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function yp(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function va(t,e){return t&&!gp(e)?yp(t,e):e}const vp=rt.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const a=x.isString(i)?s(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function xp(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function bp(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,o=0,i;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),f=r[o];i||(i=u),n[s]=l,r[s]=u;let c=o,h=0;for(;c!==s;)h+=n[c++],c=c%t;if(s=(s+1)%t,s===o&&(o=(o+1)%t),u-i<e)return;const d=f&&u-f;return d?Math.round(h*1e3/d):void 0}}function ri(t,e){let n=0;const r=bp(50,250);return s=>{const o=s.loaded,i=s.lengthComputable?s.total:void 0,a=o-n,l=r(a),u=o<=i;n=o;const f={loaded:o,total:i,progress:i?o/i:void 0,bytes:a,rate:l||void 0,estimated:l&&i&&u?(i-o)/l:void 0,event:s};f[e?"download":"upload"]=!0,t(f)}}const wp=typeof XMLHttpRequest<"u",Ep=wp&&function(t){return new Promise(function(n,r){let s=t.data;const o=ut.from(t.headers).normalize();let{responseType:i,withXSRFToken:a}=t,l;function u(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}let f;if(x.isFormData(s)){if(rt.hasStandardBrowserEnv||rt.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((f=o.getContentType())!==!1){const[g,...y]=f?f.split(";").map(b=>b.trim()).filter(Boolean):[];o.setContentType([g||"multipart/form-data",...y].join("; "))}}let c=new XMLHttpRequest;if(t.auth){const g=t.auth.username||"",y=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(g+":"+y))}const h=va(t.baseURL,t.url);c.open(t.method.toUpperCase(),da(h,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function d(){if(!c)return;const g=ut.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),b={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:g,config:t,request:c};pp(function(v){n(v),u()},function(v){r(v),u()},b),c=null}if("onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(d)},c.onabort=function(){c&&(r(new O("Request aborted",O.ECONNABORTED,t,c)),c=null)},c.onerror=function(){r(new O("Network Error",O.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let y=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const b=t.transitional||pa;t.timeoutErrorMessage&&(y=t.timeoutErrorMessage),r(new O(y,b.clarifyTimeoutError?O.ETIMEDOUT:O.ECONNABORTED,t,c)),c=null},rt.hasStandardBrowserEnv&&(a&&x.isFunction(a)&&(a=a(t)),a||a!==!1&&vp(h))){const g=t.xsrfHeaderName&&t.xsrfCookieName&&mp.read(t.xsrfCookieName);g&&o.set(t.xsrfHeaderName,g)}s===void 0&&o.setContentType(null),"setRequestHeader"in c&&x.forEach(o.toJSON(),function(y,b){c.setRequestHeader(b,y)}),x.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),i&&i!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",ri(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",ri(t.onUploadProgress)),(t.cancelToken||t.signal)&&(l=g=>{c&&(r(!g||g.type?new ye(null,t,c):g),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l)));const m=xp(h);if(m&&rt.protocols.indexOf(m)===-1){r(new O("Unsupported protocol "+m+":",O.ERR_BAD_REQUEST,t));return}c.send(s||null)})},Kn={http:qd,xhr:Ep};x.forEach(Kn,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const si=t=>`- ${t}`,Sp=t=>x.isFunction(t)||t===null||t===!1,xa={getAdapter:t=>{t=x.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let o=0;o<e;o++){n=t[o];let i;if(r=n,!Sp(n)&&(r=Kn[(i=String(n)).toLowerCase()],r===void 0))throw new O(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=e?o.length>1?`since :
35
+ `+o.map(si).join(`
36
+ `):" "+si(o[0]):"as no adapter specified";throw new O("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Kn};function Vn(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ye(null,t)}function ii(t){return Vn(t),t.headers=ut.from(t.headers),t.data=On.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),xa.getAdapter(t.adapter||Tr.adapter)(t).then(function(r){return Vn(t),r.data=On.call(t,t.transformResponse,r),r.headers=ut.from(r.headers),r},function(r){return ya(r)||(Vn(t),r&&r.response&&(r.response.data=On.call(t,t.transformResponse,r.response),r.response.headers=ut.from(r.response.headers))),Promise.reject(r)})}const oi=t=>t instanceof ut?t.toJSON():t;function Xt(t,e){e=e||{};const n={};function r(u,f,c){return x.isPlainObject(u)&&x.isPlainObject(f)?x.merge.call({caseless:c},u,f):x.isPlainObject(f)?x.merge({},f):x.isArray(f)?f.slice():f}function s(u,f,c){if(x.isUndefined(f)){if(!x.isUndefined(u))return r(void 0,u,c)}else return r(u,f,c)}function o(u,f){if(!x.isUndefined(f))return r(void 0,f)}function i(u,f){if(x.isUndefined(f)){if(!x.isUndefined(u))return r(void 0,u)}else return r(void 0,f)}function a(u,f,c){if(c in e)return r(u,f);if(c in t)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(u,f)=>s(oi(u),oi(f),!0)};return x.forEach(Object.keys(Object.assign({},t,e)),function(f){const c=l[f]||s,h=c(t[f],e[f],f);x.isUndefined(h)&&c!==a||(n[f]=h)}),n}const ba="1.6.5",Pr={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Pr[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const ai={};Pr.transitional=function(e,n,r){function s(o,i){return"[Axios v"+ba+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,a)=>{if(e===!1)throw new O(s(i," has been removed"+(n?" in "+n:"")),O.ERR_DEPRECATED);return n&&!ai[i]&&(ai[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,i,a):!0}};function Tp(t,e,n){if(typeof t!="object")throw new O("options must be an object",O.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const o=r[s],i=e[o];if(i){const a=t[o],l=a===void 0||i(a,o,t);if(l!==!0)throw new O("option "+o+" must be "+l,O.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new O("Unknown option "+o,O.ERR_BAD_OPTION)}}const Yn={assertOptions:Tp,validators:Pr},gt=Yn.validators;class He{constructor(e){this.defaults=e,this.interceptors={request:new ei,response:new ei}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Xt(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&Yn.assertOptions(r,{silentJSONParsing:gt.transitional(gt.boolean),forcedJSONParsing:gt.transitional(gt.boolean),clarifyTimeoutError:gt.transitional(gt.boolean)},!1),s!=null&&(x.isFunction(s)?n.paramsSerializer={serialize:s}:Yn.assertOptions(s,{encode:gt.function,serialize:gt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&x.merge(o.common,o[n.method]);o&&x.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=ut.concat(i,o);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let f,c=0,h;if(!l){const m=[ii.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),h=m.length,f=Promise.resolve(n);c<h;)f=f.then(m[c++],m[c++]);return f}h=a.length;let d=n;for(c=0;c<h;){const m=a[c++],g=a[c++];try{d=m(d)}catch(y){g.call(this,y);break}}try{f=ii.call(this,d)}catch(m){return Promise.reject(m)}for(c=0,h=u.length;c<h;)f=f.then(u[c++],u[c++]);return f}getUri(e){e=Xt(this.defaults,e);const n=va(e.baseURL,e.url);return da(n,e.params,e.paramsSerializer)}}x.forEach(["delete","get","head","options"],function(e){He.prototype[e]=function(n,r){return this.request(Xt(r||{},{method:e,url:n,data:(r||{}).data}))}});x.forEach(["post","put","patch"],function(e){function n(r){return function(o,i,a){return this.request(Xt(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}He.prototype[e]=n(),He.prototype[e+"Form"]=n(!0)});const Ve=He;class Ar{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(a=>{r.subscribe(a),o=a}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},e(function(o,i,a){r.reason||(r.reason=new ye(o,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new Ar(function(s){e=s}),cancel:e}}}const Pp=Ar;function Ap(t){return function(n){return t.apply(null,n)}}function Cp(t){return x.isObject(t)&&t.isAxiosError===!0}const Jn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Jn).forEach(([t,e])=>{Jn[e]=t});const Rp=Jn;function wa(t){const e=new Ve(t),n=ea(Ve.prototype.request,e);return x.extend(n,Ve.prototype,e,{allOwnKeys:!0}),x.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return wa(Xt(t,s))},n}const D=wa(Tr);D.Axios=Ve;D.CanceledError=ye;D.CancelToken=Pp;D.isCancel=ya;D.VERSION=ba;D.toFormData=on;D.AxiosError=O;D.Cancel=D.CanceledError;D.all=function(e){return Promise.all(e)};D.spread=Ap;D.isAxiosError=Cp;D.mergeConfig=Xt;D.AxiosHeaders=ut;D.formToJSON=t=>ga(x.isHTMLForm(t)?new FormData(t):t);D.getAdapter=xa.getAdapter;D.HttpStatusCode=Rp;D.default=D;const Op=D,Vp=`[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
37
+ `;function Mp(){return p.jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:[p.jsxRuntimeExports.jsx("path",{stroke:"#85858A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M22 8.27V4.23C22 2.64 21.36 2 19.77 2h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23zM10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97zM10.5 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23H4.23c-1.59 0-2.23.64-2.23 2.23v4.04C2 21.36 2.64 22 4.23 22h4.04c1.59 0 2.23-.64 2.23-2.23z"}),p.jsxRuntimeExports.jsx("path",{stroke:"#85858A",strokeLinecap:"round",strokeWidth:"1.5",d:"M15 15.5h6M15 19.5h6"})]})}function jp(){return p.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:p.jsxRuntimeExports.jsx("path",{stroke:"#85858A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M22 8.52V3.98C22 2.57 21.36 2 19.77 2h-4.04c-1.59 0-2.23.57-2.23 1.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97zM22 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23zM10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97zM10.5 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23H4.23c-1.59 0-2.23.64-2.23 2.23v4.04C2 21.36 2.64 22 4.23 22h4.04c1.59 0 2.23-.64 2.23-2.23z"})})}const Lp=`.side-bar{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s;padding:0 8px}.side-bar.expanded{width:18rem}.side-bar.collapsed{width:64px;padding-left:4px;padding-right:4px}.side-bar__menu{margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px}.side-bar__menu.collapsed{margin-left:-4px;margin-right:-4px;padding-left:4px;padding-right:4px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px}.side-bar__logout-btn__text.collapsed{display:none}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:0 16px;min-height:48px;border-radius:.375rem}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__logout-btn.collapsed{justify-content:center}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;margin-top:4px}.menu-item__wrapper:first-child,.menu-item__wrapper.collapsed{margin-top:0}.menu-item__wrapper.collapsed.level-1{margin-top:4px}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a!important;color:#009d4f!important}.menu-item__link.level-0{height:auto}.menu-item__link.menu-item__link.collapsed.level-0{display:none}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0}.menu-item__icon.collapsed.level-1{width:100%}.menu-item__icon.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-1{text-align:center;margin-left:0;display:none}.menu-item__label.level-0{color:#85858a}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:-3px}.menu-item__icon-arrow__wrapper.expanded{right:0}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{margin-top:4px;overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}
38
+ `;function kp(t){return p.jsxRuntimeExports.jsx(p.ShadowDomWrapper,{styles:[Vp,Lp],style:{zIndex:1200},children:p.jsxRuntimeExports.jsx(Dp,{...t})})}function Dp(t){const{baseUrl:e,menuPath:n,logout:r}=t,s=Xe(),[o,i]=p.reactExports.useState([]),[a,l]=p.reactExports.useState(!1),u=(ta(o,s.pathname)||[]).filter(w=>w.parentKey!==0),[f,c]=p.reactExports.useState({}),h=w=>{c({...f,[w]:!f[w]})},d=()=>{l(!a)};p.reactExports.useEffect(()=>{(async()=>{const v=e+(n||"/global-menu-config/api/v1/menu-items/user"),E=await Op.get(v,{withCredentials:!0}).then(T=>T.data),S={};E.forEach(T=>{T.children&&(S[T.id]=!0)}),c(S),i(E.map(T=>({...T,parentKey:0})))})()},[e,n]);const[m,g]=p.reactExports.useState(!1),y=a?"collapsed":"expanded",b=w=>`${w} ${y}`;return p.jsxRuntimeExports.jsxs("div",{className:b("side-bar"),children:[p.jsxRuntimeExports.jsx("div",{className:b("side-bar__wrapper-toggle-btn"),children:p.jsxRuntimeExports.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:d,children:a?p.jsxRuntimeExports.jsx(Mp,{}):p.jsxRuntimeExports.jsx(jp,{})})}),p.jsxRuntimeExports.jsx(Ci,{className:b("side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:o.map(w=>{const v=E=>u.some(S=>S.id===E);return p.jsxRuntimeExports.jsx(Qo,{item:w,isActive:v,isCollapsed:a,expanded:E=>f[E],toggleExpand:h},w.id)})}),p.jsxRuntimeExports.jsxs("div",{className:b("side-bar__wrap-btn-logout"),children:[p.jsxRuntimeExports.jsxs("button",{className:b("side-bar__logout-btn"),onClick:()=>g(!0),children:[p.jsxRuntimeExports.jsx(fd,{}),p.jsxRuntimeExports.jsx("span",{className:b("side-bar__logout-btn__text"),children:"Logout"})]}),p.jsxRuntimeExports.jsx(p.LogoutConfirmModal,{isOpen:m,onClose:()=>g(!1),onConfirm:r})]})]})}function _p(t){return p.jsxRuntimeExports.jsx($a,{children:p.jsxRuntimeExports.jsx(kp,{...t})})}const Np=p.s(_p,{props:{baseUrl:"string",menuPath:"string",logout:"function"}});customElements.define("global-menu",Np);