turkmen-textile-front/dist/assets/ui-library-B3AuUXkV.js

117 lines
248 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{r as Tu,a as g,R as Au,b as Cu,c as Pu,L as Ae,d as Dn,e as J}from"./react-vendor-DnK_KZAP.js";var yr={exports:{}},Kt={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var gi;function Eu(){if(gi)return Kt;gi=1;var e=Tu(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,l,c){var u,d={},f=null,p=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(p=l.ref);for(u in l)r.call(l,u)&&!i.hasOwnProperty(u)&&(d[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:a,key:f,ref:p,props:d,_owner:s.current}}return Kt.Fragment=n,Kt.jsx=o,Kt.jsxs=o,Kt}var yi;function Du(){return yi||(yi=1,yr.exports=Eu()),yr.exports}var h=Du();function ct(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function vi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function pa(...e){return t=>{let n=!1;const r=e.map(s=>{const i=vi(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():vi(e[s],null)}}}}function At(...e){return g.useCallback(pa(...e),e)}function ju(e,t){const n=g.createContext(t),r=i=>{const{children:o,...a}=i,l=g.useMemo(()=>a,Object.values(a));return h.jsx(n.Provider,{value:l,children:o})};r.displayName=e+"Provider";function s(i){const o=g.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function Nu(e,t=[]){let n=[];function r(i,o){const a=g.createContext(o),l=n.length;n=[...n,o];const c=d=>{var v;const{scope:f,children:p,...y}=d,m=((v=f==null?void 0:f[e])==null?void 0:v[l])||a,x=g.useMemo(()=>y,Object.values(y));return h.jsx(m.Provider,{value:x,children:p})};c.displayName=i+"Provider";function u(d,f){var m;const p=((m=f==null?void 0:f[e])==null?void 0:m[l])||a,y=g.useContext(p);if(y)return y;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,Vu(s,...t)]}function Vu(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...a,...d}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var Gn=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},Mu=Au.useId||(()=>{}),Ru=0;function vr(e){const[t,n]=g.useState(Mu());return Gn(()=>{n(r=>r??String(Ru++))},[e]),t?`radix-${t}`:""}function wt(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function _u({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,s]=ku({defaultProp:t,onChange:n}),i=e!==void 0,o=i?e:r,a=wt(n),l=g.useCallback(c=>{if(i){const d=typeof c=="function"?c(e):c;d!==e&&a(d)}else s(c)},[i,e,s,a]);return[o,l]}function ku({defaultProp:e,onChange:t}){const n=g.useState(e),[r]=n,s=g.useRef(r),i=wt(t);return g.useEffect(()=>{s.current!==r&&(i(r),s.current=r)},[r,s,i]),n}var xn=g.forwardRef((e,t)=>{const{children:n,...r}=e,s=g.Children.toArray(n),i=s.find(Lu);if(i){const o=i.props.children,a=s.map(l=>l===i?g.Children.count(o)>1?g.Children.only(null):g.isValidElement(o)?o.props.children:null:l);return h.jsx(Wr,{...r,ref:t,children:g.isValidElement(o)?g.cloneElement(o,void 0,a):null})}return h.jsx(Wr,{...r,ref:t,children:n})});xn.displayName="Slot";var Wr=g.forwardRef((e,t)=>{const{children:n,...r}=e;if(g.isValidElement(n)){const s=Iu(n);return g.cloneElement(n,{...Ou(r,n.props),ref:t?pa(t,s):s})}return g.Children.count(n)>1?g.Children.only(null):null});Wr.displayName="SlotClone";var Fu=({children:e})=>h.jsx(h.Fragment,{children:e});function Lu(e){return g.isValidElement(e)&&e.type===Fu}function Ou(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{i(...a),s(...a)}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function Iu(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Bu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ze=Bu.reduce((e,t)=>{const n=g.forwardRef((r,s)=>{const{asChild:i,...o}=r,a=i?xn:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(a,{...o,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Uu(e,t){e&&Cu.flushSync(()=>e.dispatchEvent(t))}function zu(e,t=globalThis==null?void 0:globalThis.document){const n=wt(e);g.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Wu="DismissableLayer",$r="dismissableLayer.update",$u="dismissableLayer.pointerDownOutside",Gu="dismissableLayer.focusOutside",xi,ga=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ya=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,c=g.useContext(ga),[u,d]=g.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=g.useState({}),y=At(t,D=>d(D)),m=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(x),w=u?m.indexOf(u):-1,A=c.layersWithOutsidePointerEventsDisabled.size>0,E=w>=v,S=qu(D=>{const j=D.target,k=[...c.branches].some(F=>F.contains(j));!E||k||(s==null||s(D),o==null||o(D),D.defaultPrevented||a==null||a())},f),P=Xu(D=>{const j=D.target;[...c.branches].some(F=>F.contains(j))||(i==null||i(D),o==null||o(D),D.defaultPrevented||a==null||a())},f);return zu(D=>{w===c.layers.size-1&&(r==null||r(D),!D.defaultPrevented&&a&&(D.preventDefault(),a()))},f),g.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(xi=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),bi(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=xi)}},[u,f,n,c]),g.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),bi())},[u,c]),g.useEffect(()=>{const D=()=>p({});return document.addEventListener($r,D),()=>document.removeEventListener($r,D)},[]),h.jsx(Ze.div,{...l,ref:y,style:{pointerEvents:A?E?"auto":"none":void 0,...e.style},onFocusCapture:ct(e.onFocusCapture,P.onFocusCapture),onBlurCapture:ct(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:ct(e.onPointerDownCapture,S.onPointerDownCapture)})});ya.displayName=Wu;var Ku="DismissableLayerBranch",Hu=g.forwardRef((e,t)=>{const n=g.useContext(ga),r=g.useRef(null),s=At(t,r);return g.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),h.jsx(Ze.div,{...e,ref:s})});Hu.displayName=Ku;function qu(e,t=globalThis==null?void 0:globalThis.document){const n=wt(e),r=g.useRef(!1),s=g.useRef(()=>{});return g.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){va($u,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Xu(e,t=globalThis==null?void 0:globalThis.document){const n=wt(e),r=g.useRef(!1);return g.useEffect(()=>{const s=i=>{i.target&&!r.current&&va(Gu,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function bi(){const e=new CustomEvent($r);document.dispatchEvent(e)}function va(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Uu(s,i):s.dispatchEvent(i)}var xr="focusScope.autoFocusOnMount",br="focusScope.autoFocusOnUnmount",wi={bubbles:!1,cancelable:!0},Yu="FocusScope",xa=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[a,l]=g.useState(null),c=wt(s),u=wt(i),d=g.useRef(null),f=At(t,m=>l(m)),p=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let m=function(A){if(p.paused||!a)return;const E=A.target;a.contains(E)?d.current=E:ot(d.current,{select:!0})},x=function(A){if(p.paused||!a)return;const E=A.relatedTarget;E!==null&&(a.contains(E)||ot(d.current,{select:!0}))},v=function(A){if(document.activeElement===document.body)for(const S of A)S.removedNodes.length>0&&ot(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",x);const w=new MutationObserver(v);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",x),w.disconnect()}}},[r,a,p.paused]),g.useEffect(()=>{if(a){Ti.add(p);const m=document.activeElement;if(!a.contains(m)){const v=new CustomEvent(xr,wi);a.addEventListener(xr,c),a.dispatchEvent(v),v.defaultPrevented||(Zu(nd(ba(a)),{select:!0}),document.activeElement===m&&ot(a))}return()=>{a.removeEventListener(xr,c),setTimeout(()=>{const v=new CustomEvent(br,wi);a.addEventListener(br,u),a.dispatchEvent(v),v.defaultPrevented||ot(m??document.body,{select:!0}),a.removeEventListener(br,u),Ti.remove(p)},0)}}},[a,c,u,p]);const y=g.useCallback(m=>{if(!n&&!r||p.paused)return;const x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(x&&v){const w=m.currentTarget,[A,E]=Ju(w);A&&E?!m.shiftKey&&v===E?(m.preventDefault(),n&&ot(A,{select:!0})):m.shiftKey&&v===A&&(m.preventDefault(),n&&ot(E,{select:!0})):v===w&&m.preventDefault()}},[n,r,p.paused]);return h.jsx(Ze.div,{tabIndex:-1,...o,ref:f,onKeyDown:y})});xa.displayName=Yu;function Zu(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ot(r,{select:t}),document.activeElement!==n)return}function Ju(e){const t=ba(e),n=Si(t,e),r=Si(t.reverse(),e);return[n,r]}function ba(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Si(e,t){for(const n of e)if(!Qu(n,{upTo:t}))return n}function Qu(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ed(e){return e instanceof HTMLInputElement&&"select"in e}function ot(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ed(e)&&t&&e.select()}}var Ti=td();function td(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ai(e,t),e.unshift(t)},remove(t){var n;e=Ai(e,t),(n=e[0])==null||n.resume()}}}function Ai(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function nd(e){return e.filter(t=>t.tagName!=="A")}var rd="Portal",wa=g.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,i]=g.useState(!1);Gn(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?Pu.createPortal(h.jsx(Ze.div,{...r,ref:t}),o):null});wa.displayName=rd;function sd(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}var sr=e=>{const{present:t,children:n}=e,r=id(t),s=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=At(r.ref,od(s));return typeof n=="function"||r.isPresent?g.cloneElement(s,{ref:i}):null};sr.displayName="Presence";function id(e){const[t,n]=g.useState(),r=g.useRef({}),s=g.useRef(e),i=g.useRef("none"),o=e?"mounted":"unmounted",[a,l]=sd(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const c=jn(r.current);i.current=a==="mounted"?c:"none"},[a]),Gn(()=>{const c=r.current,u=s.current;if(u!==e){const f=i.current,p=jn(c);e?l("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&f!==p?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),Gn(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=p=>{const m=jn(r.current).includes(p.animationName);if(p.target===t&&m&&(l("ANIMATION_END"),!s.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},f=p=>{p.target===t&&(i.current=jn(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:g.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function jn(e){return(e==null?void 0:e.animationName)||"none"}function od(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var wr=0;function ad(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ci()),document.body.insertAdjacentElement("beforeend",e[1]??Ci()),wr++,()=>{wr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),wr--}},[])}function Ci(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ke=function(){return Ke=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Ke.apply(this,arguments)};function Sa(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function ld(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,i;r<s;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var On="right-scroll-bar-position",In="width-before-scroll-bar",cd="with-scroll-bars-hidden",ud="--removed-body-scroll-bar-size";function Sr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function dd(e,t){var n=g.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=t,n.facade}var fd=typeof window<"u"?g.useLayoutEffect:g.useEffect,Pi=new WeakMap;function hd(e,t){var n=dd(null,function(r){return e.forEach(function(s){return Sr(s,r)})});return fd(function(){var r=Pi.get(n);if(r){var s=new Set(r),i=new Set(e),o=n.current;s.forEach(function(a){i.has(a)||Sr(a,null)}),i.forEach(function(a){s.has(a)||Sr(a,o)})}Pi.set(n,e)},[e]),n}function md(e){return e}function pd(e,t){t===void 0&&(t=md);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var o=t(i,r);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(i){for(r=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(i),o=n}var l=function(){var u=o;o=[],u.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){o.push(u),c()},filter:function(u){return o=o.filter(u),n}}}};return s}function gd(e){e===void 0&&(e={});var t=pd(null);return t.options=Ke({async:!0,ssr:!1},e),t}var Ta=function(e){var t=e.sideCar,n=Sa(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return g.createElement(r,Ke({},n))};Ta.isSideCarExport=!0;function yd(e,t){return e.useMedium(t),Ta}var Aa=gd(),Tr=function(){},ir=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:Tr,onWheelCapture:Tr,onTouchMoveCapture:Tr}),s=r[0],i=r[1],o=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,y=e.inert,m=e.allowPinchZoom,x=e.as,v=x===void 0?"div":x,w=e.gapMode,A=Sa(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=f,S=hd([n,t]),P=Ke(Ke({},A),s);return g.createElement(g.Fragment,null,u&&g.createElement(E,{sideCar:Aa,removeScrollBar:c,shards:d,noIsolation:p,inert:y,setCallbacks:i,allowPinchZoom:!!m,lockRef:n,gapMode:w}),o?g.cloneElement(g.Children.only(a),Ke(Ke({},P),{ref:S})):g.createElement(v,Ke({},P,{className:l,ref:S}),a))});ir.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ir.classNames={fullWidth:In,zeroRight:On};var vd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function xd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=vd();return t&&e.setAttribute("nonce",t),e}function bd(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function wd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Sd=function(){var e=0,t=null;return{add:function(n){e==0&&(t=xd())&&(bd(t,n),wd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Td=function(){var e=Sd();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ca=function(){var e=Td(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},Ad={left:0,top:0,right:0,gap:0},Ar=function(e){return parseInt(e||"",10)||0},Cd=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Ar(n),Ar(r),Ar(s)]},Pd=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ad;var t=Cd(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Ed=Ca(),Ft="data-scroll-locked",Dd=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),`
.`.concat(cd,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(a,"px ").concat(r,`;
}
body[`).concat(Ft,`] {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(s,`px;
padding-top: `).concat(i,`px;
padding-right: `).concat(o,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(a,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(On,` {
right: `).concat(a,"px ").concat(r,`;
}
.`).concat(In,` {
margin-right: `).concat(a,"px ").concat(r,`;
}
.`).concat(On," .").concat(On,` {
right: 0 `).concat(r,`;
}
.`).concat(In," .").concat(In,` {
margin-right: 0 `).concat(r,`;
}
body[`).concat(Ft,`] {
`).concat(ud,": ").concat(a,`px;
}
`)},Ei=function(){var e=parseInt(document.body.getAttribute(Ft)||"0",10);return isFinite(e)?e:0},jd=function(){g.useEffect(function(){return document.body.setAttribute(Ft,(Ei()+1).toString()),function(){var e=Ei()-1;e<=0?document.body.removeAttribute(Ft):document.body.setAttribute(Ft,e.toString())}},[])},Nd=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;jd();var i=g.useMemo(function(){return Pd(s)},[s]);return g.createElement(Ed,{styles:Dd(i,!t,s,n?"":"!important")})},Gr=!1;if(typeof window<"u")try{var Nn=Object.defineProperty({},"passive",{get:function(){return Gr=!0,!0}});window.addEventListener("test",Nn,Nn),window.removeEventListener("test",Nn,Nn)}catch{Gr=!1}var Et=Gr?{passive:!1}:!1,Vd=function(e){return e.tagName==="TEXTAREA"},Pa=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Vd(e)&&n[t]==="visible")},Md=function(e){return Pa(e,"overflowY")},Rd=function(e){return Pa(e,"overflowX")},Di=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=Ea(e,r);if(s){var i=Da(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},_d=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},kd=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ea=function(e,t){return e==="v"?Md(t):Rd(t)},Da=function(e,t){return e==="v"?_d(t):kd(t)},Fd=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ld=function(e,t,n,r,s){var i=Fd(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,l=t.contains(a),c=!1,u=o>0,d=0,f=0;do{var p=Da(e,a),y=p[0],m=p[1],x=p[2],v=m-x-i*y;(y||v)&&Ea(e,a)&&(d+=v,f+=y),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(c=!0),c},Vn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ji=function(e){return[e.deltaX,e.deltaY]},Ni=function(e){return e&&"current"in e?e.current:e},Od=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Id=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},Bd=0,Dt=[];function Ud(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),s=g.useState(Bd++)[0],i=g.useState(Ca)[0],o=g.useRef(e);g.useEffect(function(){o.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var m=ld([e.lockRef.current],(e.shards||[]).map(Ni),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=g.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!o.current.allowPinchZoom;var v=Vn(m),w=n.current,A="deltaX"in m?m.deltaX:w[0]-v[0],E="deltaY"in m?m.deltaY:w[1]-v[1],S,P=m.target,D=Math.abs(A)>Math.abs(E)?"h":"v";if("touches"in m&&D==="h"&&P.type==="range")return!1;var j=Di(D,P);if(!j)return!0;if(j?S=D:(S=D==="v"?"h":"v",j=Di(D,P)),!j)return!1;if(!r.current&&"changedTouches"in m&&(A||E)&&(r.current=S),!S)return!0;var k=r.current||S;return Ld(k,x,m,k==="h"?A:E)},[]),l=g.useCallback(function(m){var x=m;if(!(!Dt.length||Dt[Dt.length-1]!==i)){var v="deltaY"in x?ji(x):Vn(x),w=t.current.filter(function(S){return S.name===x.type&&(S.target===x.target||x.target===S.shadowParent)&&Od(S.delta,v)})[0];if(w&&w.should){x.cancelable&&x.preventDefault();return}if(!w){var A=(o.current.shards||[]).map(Ni).filter(Boolean).filter(function(S){return S.contains(x.target)}),E=A.length>0?a(x,A[0]):!o.current.noIsolation;E&&x.cancelable&&x.preventDefault()}}},[]),c=g.useCallback(function(m,x,v,w){var A={name:m,delta:x,target:v,should:w,shadowParent:zd(v)};t.current.push(A),setTimeout(function(){t.current=t.current.filter(function(E){return E!==A})},1)},[]),u=g.useCallback(function(m){n.current=Vn(m),r.current=void 0},[]),d=g.useCallback(function(m){c(m.type,ji(m),m.target,a(m,e.lockRef.current))},[]),f=g.useCallback(function(m){c(m.type,Vn(m),m.target,a(m,e.lockRef.current))},[]);g.useEffect(function(){return Dt.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Et),document.addEventListener("touchmove",l,Et),document.addEventListener("touchstart",u,Et),function(){Dt=Dt.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,Et),document.removeEventListener("touchmove",l,Et),document.removeEventListener("touchstart",u,Et)}},[]);var p=e.removeScrollBar,y=e.inert;return g.createElement(g.Fragment,null,y?g.createElement(i,{styles:Id(s)}):null,p?g.createElement(Nd,{gapMode:e.gapMode}):null)}function zd(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Wd=yd(Aa,Ud);var ja=g.forwardRef(function(e,t){return g.createElement(ir,Ke({},e,{ref:t,sideCar:Wd}))});ja.classNames=ir.classNames;var $d=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},jt=new WeakMap,Mn=new WeakMap,Rn={},Cr=0,Na=function(e){return e&&(e.host||Na(e.parentNode))},Gd=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Na(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Kd=function(e,t,n,r){var s=Gd(t,Array.isArray(e)?e:[e]);Rn[n]||(Rn[n]=new WeakMap);var i=Rn[n],o=[],a=new Set,l=new Set(s),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};s.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var p=f.getAttribute(r),y=p!==null&&p!=="false",m=(jt.get(f)||0)+1,x=(i.get(f)||0)+1;jt.set(f,m),i.set(f,x),o.push(f),m===1&&y&&Mn.set(f,!0),x===1&&f.setAttribute(n,"true"),y||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(t),a.clear(),Cr++,function(){o.forEach(function(d){var f=jt.get(d)-1,p=i.get(d)-1;jt.set(d,f),i.set(d,p),f||(Mn.has(d)||d.removeAttribute(r),Mn.delete(d)),p||d.removeAttribute(n)}),Cr--,Cr||(jt=new WeakMap,jt=new WeakMap,Mn=new WeakMap,Rn={})}},Hd=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=$d(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),Kd(r,s,n,"aria-hidden")):function(){return null}},ps="Dialog",[Va,Gv]=Nu(ps),[qd,ze]=Va(ps),Ma=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!0}=e,a=g.useRef(null),l=g.useRef(null),[c=!1,u]=_u({prop:r,defaultProp:s,onChange:i});return h.jsx(qd,{scope:t,triggerRef:a,contentRef:l,contentId:vr(),titleId:vr(),descriptionId:vr(),open:c,onOpenChange:u,onOpenToggle:g.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};Ma.displayName=ps;var Ra="DialogTrigger",_a=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=ze(Ra,n),i=At(t,s.triggerRef);return h.jsx(Ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":vs(s.open),...r,ref:i,onClick:ct(e.onClick,s.onOpenToggle)})});_a.displayName=Ra;var gs="DialogPortal",[Xd,ka]=Va(gs,{forceMount:void 0}),Fa=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=ze(gs,t);return h.jsx(Xd,{scope:t,forceMount:n,children:g.Children.map(r,o=>h.jsx(sr,{present:n||i.open,children:h.jsx(wa,{asChild:!0,container:s,children:o})}))})};Fa.displayName=gs;var Kn="DialogOverlay",La=g.forwardRef((e,t)=>{const n=ka(Kn,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=ze(Kn,e.__scopeDialog);return i.modal?h.jsx(sr,{present:r||i.open,children:h.jsx(Yd,{...s,ref:t})}):null});La.displayName=Kn;var Yd=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=ze(Kn,n);return h.jsx(ja,{as:xn,allowPinchZoom:!0,shards:[s.contentRef],children:h.jsx(Ze.div,{"data-state":vs(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),St="DialogContent",Oa=g.forwardRef((e,t)=>{const n=ka(St,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=ze(St,e.__scopeDialog);return h.jsx(sr,{present:r||i.open,children:i.modal?h.jsx(Zd,{...s,ref:t}):h.jsx(Jd,{...s,ref:t})})});Oa.displayName=St;var Zd=g.forwardRef((e,t)=>{const n=ze(St,e.__scopeDialog),r=g.useRef(null),s=At(t,n.contentRef,r);return g.useEffect(()=>{const i=r.current;if(i)return Hd(i)},[]),h.jsx(Ia,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ct(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:ct(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:ct(e.onFocusOutside,i=>i.preventDefault())})}),Jd=g.forwardRef((e,t)=>{const n=ze(St,e.__scopeDialog),r=g.useRef(!1),s=g.useRef(!1);return h.jsx(Ia,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),Ia=g.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=e,a=ze(St,n),l=g.useRef(null),c=At(t,l);return ad(),h.jsxs(h.Fragment,{children:[h.jsx(xa,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:h.jsx(ya,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":vs(a.open),...o,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(Qd,{titleId:a.titleId}),h.jsx(tf,{contentRef:l,descriptionId:a.descriptionId})]})]})}),ys="DialogTitle",Ba=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=ze(ys,n);return h.jsx(Ze.h2,{id:s.titleId,...r,ref:t})});Ba.displayName=ys;var Ua="DialogDescription",za=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=ze(Ua,n);return h.jsx(Ze.p,{id:s.descriptionId,...r,ref:t})});za.displayName=Ua;var Wa="DialogClose",$a=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=ze(Wa,n);return h.jsx(Ze.button,{type:"button",...r,ref:t,onClick:ct(e.onClick,()=>s.onOpenChange(!1))})});$a.displayName=Wa;function vs(e){return e?"open":"closed"}var Ga="DialogTitleWarning",[Kv,Ka]=ju(Ga,{contentName:St,titleName:ys,docsSlug:"dialog"}),Qd=({titleId:e})=>{const t=Ka(Ga),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},ef="DialogDescriptionWarning",tf=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ka(ef).contentName}}.`;return g.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},nf=Ma,rf=_a,sf=Fa,Ha=La,qa=Oa,Xa=Ba,Ya=za,Za=$a;function Ja(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Ja(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Qa(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Ja(e))&&(r&&(r+=" "),r+=t);return r}const Vi=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Mi=Qa,xs=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Mi(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(c=>{const u=n==null?void 0:n[c],d=i==null?void 0:i[c];if(u===null)return null;const f=Vi(u)||Vi(d);return s[c][f]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:f,...p}=u;return Object.entries(p).every(y=>{let[m,x]=y;return Array.isArray(x)?x.includes({...i,...a}[m]):{...i,...a}[m]===x})?[...c,d,f]:c},[]);return Mi(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const of=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),el=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var af={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lf=g.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},l)=>g.createElement("svg",{ref:l,...af,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:el("lucide",s),...a},[...o.map(([c,u])=>g.createElement(c,u)),...Array.isArray(i)?i:[i]]));/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ct=(e,t)=>{const n=g.forwardRef(({className:r,...s},i)=>g.createElement(lf,{ref:i,iconNode:t,className:el(`lucide-${of(e)}`,r),...s}));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cf=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ri=Ct("ArrowUpRight",cf);/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const uf=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Hv=Ct("LoaderCircle",uf);/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const df=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],qv=Ct("Loader",df);/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ff=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],hf=Ct("MapPin",ff);/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mf=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],pf=Ct("Smartphone",mf);/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gf=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],yf=Ct("Upload",gf);/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vf=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],xf=Ct("X",vf),bs="-",bf=e=>{const t=Sf(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(bs);return a[0]===""&&a.length!==1&&a.shift(),tl(a,t)||wf(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},tl=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?tl(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(bs);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},_i=/^\[(.+)\]$/,wf=e=>{if(_i.test(e)){const t=_i.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Sf=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Af(Object.entries(e.classGroups),n).forEach(([i,o])=>{Kr(o,r,i,t)}),r},Kr=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:ki(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(Tf(s)){Kr(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{Kr(o,ki(t,i),n,r)})})},ki=(e,t)=>{let n=e;return t.split(bs).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Tf=e=>e.isThemeGetter,Af=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e,Cf=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},nl="!",Pf=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const l=[];let c=0,u=0,d;for(let x=0;x<a.length;x++){let v=a[x];if(c===0){if(v===s&&(r||a.slice(x,x+i)===t)){l.push(a.slice(u,x)),u=x+i;continue}if(v==="/"){d=x;continue}}v==="["?c++:v==="]"&&c--}const f=l.length===0?a:a.substring(u),p=f.startsWith(nl),y=p?f.substring(1):f,m=d&&d>u?d-u:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:m}};return n?a=>n({className:a,parseClassName:o}):o},Ef=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Df=e=>({cache:Cf(e.cacheSize),parseClassName:Pf(e),...bf(e)}),jf=/\s+/,Nf=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(jf);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(c);let y=!!p,m=r(y?f.substring(0,p):f);if(!m){if(!y){a=c+(a.length>0?" "+a:a);continue}if(m=r(f),!m){a=c+(a.length>0?" "+a:a);continue}y=!1}const x=Ef(u).join(":"),v=d?x+nl:x,w=v+m;if(i.includes(w))continue;i.push(w);const A=s(m,y);for(let E=0;E<A.length;++E){const S=A[E];i.push(v+S)}a=c+(a.length>0?" "+a:a)}return a};function Vf(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=rl(t))&&(r&&(r+=" "),r+=n);return r}const rl=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=rl(e[r]))&&(n&&(n+=" "),n+=t);return n};function Mf(e,...t){let n,r,s,i=o;function o(l){const c=t.reduce((u,d)=>d(u),e());return n=Df(c),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=Nf(l,n);return s(l,u),u}return function(){return i(Vf.apply(null,arguments))}}const se=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},sl=/^\[(?:([a-z-]+):)?(.+)\]$/i,Rf=/^\d+\/\d+$/,_f=new Set(["px","full","screen"]),kf=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ff=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Lf=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Of=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,If=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qe=e=>Lt(e)||_f.has(e)||Rf.test(e),st=e=>Ut(e,"length",Hf),Lt=e=>!!e&&!Number.isNaN(Number(e)),Pr=e=>Ut(e,"number",Lt),Ht=e=>!!e&&Number.isInteger(Number(e)),Bf=e=>e.endsWith("%")&&Lt(e.slice(0,-1)),K=e=>sl.test(e),it=e=>kf.test(e),Uf=new Set(["length","size","percentage"]),zf=e=>Ut(e,Uf,il),Wf=e=>Ut(e,"position",il),$f=new Set(["image","url"]),Gf=e=>Ut(e,$f,Xf),Kf=e=>Ut(e,"",qf),qt=()=>!0,Ut=(e,t,n)=>{const r=sl.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Hf=e=>Ff.test(e)&&!Lf.test(e),il=()=>!1,qf=e=>Of.test(e),Xf=e=>If.test(e),Yf=()=>{const e=se("colors"),t=se("spacing"),n=se("blur"),r=se("brightness"),s=se("borderColor"),i=se("borderRadius"),o=se("borderSpacing"),a=se("borderWidth"),l=se("contrast"),c=se("grayscale"),u=se("hueRotate"),d=se("invert"),f=se("gap"),p=se("gradientColorStops"),y=se("gradientColorStopPositions"),m=se("inset"),x=se("margin"),v=se("opacity"),w=se("padding"),A=se("saturate"),E=se("scale"),S=se("sepia"),P=se("skew"),D=se("space"),j=se("translate"),k=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",K,t],N=()=>[K,t],O=()=>["",Qe,st],z=()=>["auto",Lt,K],q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>["start","end","center","between","around","evenly","stretch"],ee=()=>["","0",K],me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ne=()=>[Lt,K];return{cacheSize:500,separator:":",theme:{colors:[qt],spacing:[Qe,st],blur:["none","",it,K],brightness:ne(),borderColor:[e],borderRadius:["none","","full",it,K],borderSpacing:N(),borderWidth:O(),contrast:ne(),grayscale:ee(),hueRotate:ne(),invert:ee(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[Bf,st],inset:U(),margin:U(),opacity:ne(),padding:N(),saturate:ne(),scale:ne(),sepia:ee(),skew:ne(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",K]}],container:["container"],columns:[{columns:[it]}],"break-after":[{"break-after":me()}],"break-before":[{"break-before":me()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...q(),K]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ht,K]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",K]}],grow:[{grow:ee()}],shrink:[{shrink:ee()}],order:[{order:["first","last","none",Ht,K]}],"grid-cols":[{"grid-cols":[qt]}],"col-start-end":[{col:["auto",{span:["full",Ht,K]},K]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[qt]}],"row-start-end":[{row:["auto",{span:[Ht,K]},K]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",K]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",K]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...X()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...X(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...X(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",K,t]}],"min-w":[{"min-w":[K,t,"min","max","fit"]}],"max-w":[{"max-w":[K,t,"none","full","min","max","fit","prose",{screen:[it]},it]}],h:[{h:[K,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[K,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[K,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[K,t,"auto","min","max","fit"]}],"font-size":[{text:["base",it,st]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Pr]}],"font-family":[{font:[qt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",K]}],"line-clamp":[{"line-clamp":["none",Lt,Pr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Qe,K]}],"list-image":[{"list-image":["none",K]}],"list-style-type":[{list:["none","disc","decimal",K]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Qe,st]}],"underline-offset":[{"underline-offset":["auto",Qe,K]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",K]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...q(),Wf]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zf]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Gf]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:Y()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[Qe,K]}],"outline-w":[{outline:[Qe,st]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Qe,st]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",it,Kf]}],"shadow-color":[{shadow:[qt]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",it,K]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[A]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",K]}],duration:[{duration:ne()}],ease:[{ease:["linear","in","out","in-out",K]}],delay:[{delay:ne()}],animate:[{animate:["none","spin","ping","pulse","bounce",K]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Ht,K]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",K]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",K]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",K]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Qe,st,Pr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Zf=Mf(Yf);function $(...e){return Zf(Qa(e))}const Jf=nf,Qf=rf,eh=Za,th=sf,ol=g.forwardRef(({className:e,...t},n)=>h.jsx(Ha,{className:$("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));ol.displayName=Ha.displayName;const nh=xs("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-full data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),al=g.forwardRef(({side:e="right",className:t,children:n,...r},s)=>h.jsxs(th,{children:[h.jsx(ol,{}),h.jsxs(qa,{ref:s,className:$(nh({side:e}),t),...r,children:[h.jsxs(Za,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-secondary",children:[h.jsx(xf,{className:"size-8"}),h.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));al.displayName=qa.displayName;const ll=({className:e,...t})=>h.jsx("div",{className:$("flex flex-col space-y-2 text-center sm:text-left",e),...t});ll.displayName="SheetHeader";const rh=g.forwardRef(({className:e,...t},n)=>h.jsx(Xa,{ref:n,className:$("text-lg font-semibold text-foreground",e),...t}));rh.displayName=Xa.displayName;const sh=g.forwardRef(({className:e,...t},n)=>h.jsx(Ya,{ref:n,className:$("text-sm text-muted-foreground",e),...t}));sh.displayName=Ya.displayName;const ih=xs("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-[18px] leading-[140%] font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-on_primary shadow hover:bg-primary/90",teritary:"bg-teritary hover:bg-teritary/90 text-on_surface",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-outline text-on_surface",secondary:"bg-secondary_container hover:bg-secondary_container/80 text-on_secondary_container",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-white h-8"},size:{default:"h-12 px-5 py-2 rounded-[2px]",sm:"h-10 text-base px-4 rounded-[2px]",lg:"lg:h-[88px] h-12 rounded-[2px] px-8 ",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Me=g.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?xn:"button";return h.jsx(o,{className:$(ih({variant:t,size:n,className:e})),ref:i,...s})});Me.displayName="Button";const cl=({className:e})=>h.jsx("div",{className:$("",e),children:h.jsx("img",{src:"/logo.svg",alt:"logo",className:"md:size-auto h-10"})}),ul=({className:e,img:t,title:n,iconClassName:r})=>h.jsxs("article",{className:$("bg-bg_surface_container relative hover:bg-teritary_surface_container transition-all md:px-6 px-2 md:h-[224px] h-[124px]",e),children:[h.jsx("div",{className:"bg-primary size-full -z-[10] absolute top-2.5 left-2.5"}),h.jsx("div",{className:$("md:size-[84px] size-12 bg-teritary p-3",r),children:h.jsx("img",{src:t,alt:"theme icon"})}),h.jsx("h3",{className:"md:mt-6 mt-2 md:text-xl text-sm",children:n})]}),oh=({className:e,nums:t,text:n})=>h.jsxs("article",{className:$("px-6 py-4 relative bg-surface_container h-[160px] w-full overflow-hidden",e),children:[h.jsx("img",{src:"/about-card-bg.svg",className:"absolute top-2 right-0"}),h.jsx("h2",{className:"text-primary text-[32px] semibold leading-[130%] mb-4",children:t}),h.jsx("h4",{className:"text-on_surface normal text-base",children:n})]}),Fi=({className:e,title:t,text:n,img:r,link:s})=>h.jsxs("article",{className:$("md:px-8 md:py-6 p-4 relative overflow-hidden h-[296px] md:w-full w-[300px] text-on_primary",e),children:[h.jsx("div",{className:"absolute size-full z-10 top-0 left-0 bg-gradient-to-r from-25% from-primary to-primary/20 "}),h.jsx("img",{src:r,className:"absolute size-full top-0 right-0 object-cover"}),h.jsxs("div",{className:"relative z-20",children:[h.jsx("h4",{className:"md:text-2xl text-lg mb-4 max-w-[444px] z-20 h-16",children:t}),h.jsx("p",{className:"md:text-base text-sm normal max-w-[360px] z-20",children:n}),s?h.jsx(Ae,{to:s,target:"_blank",children:h.jsxs(Me,{className:"text-sm px-0 mt-4 py-1.5 z-20",variant:"link",children:["Путеводитель ",h.jsx(Ri,{})]})}):h.jsxs(Me,{className:"text-sm px-0 mt-4 py-1.5 z-20",variant:"link",children:["Скачать PDF ",h.jsx(Ri,{})]})]})]}),dl=({className:e,name:t,date:n,bottomClassName:r})=>h.jsxs("div",{className:$("rounded-t-[4px] overflow-hidden",e),children:[h.jsx("div",{className:"bg-teritary text-white flex items-center h-11 px-4",children:t}),h.jsx("div",{className:$("h-14 bg-bg_surface_container semibold flex items-center text-lg px-4",r),children:n})]}),ah=({className:e,subtitle:t,title:n,img:r})=>h.jsxs("div",{className:$("flex items-center gap-4",e),children:[h.jsx("div",{className:"bg-secondary_container size-16 rounded-[2px] p-3",children:h.jsx("img",{src:r,alt:"contact icon",className:"size-full"})}),h.jsxs("div",{className:"flex flex-col gap-2",children:[h.jsx("h5",{className:"text-sm text-[#454545]",children:t}),h.jsx("h4",{className:"text-[#171717] semibold",children:n})]})]}),ws=g.createContext({});function Ss(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const or=g.createContext(null),Ts=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class lh extends g.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,s=r instanceof HTMLElement&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=s-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function ch({children:e,isPresent:t,anchorX:n}){const r=g.useId(),s=g.useRef(null),i=g.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=g.useContext(Ts);return g.useInsertionEffect(()=>{const{width:a,height:l,top:c,left:u,right:d}=i.current;if(t||!s.current||!a||!l)return;const f=n==="left"?`left: ${u}`:`right: ${d}`;s.current.dataset.motionPopId=r;const p=document.createElement("style");return o&&(p.nonce=o),document.head.appendChild(p),p.sheet&&p.sheet.insertRule(`
[data-motion-pop-id="${r}"] {
position: absolute !important;
width: ${a}px !important;
height: ${l}px !important;
${f}px !important;
top: ${c}px !important;
}
`),()=>{document.head.removeChild(p)}},[t]),h.jsx(lh,{isPresent:t,childRef:s,sizeRef:i,children:g.cloneElement(e,{ref:s})})}const uh=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a})=>{const l=Ss(dh),c=g.useId(),u=g.useCallback(f=>{l.set(f,!0);for(const p of l.values())if(!p)return;r&&r()},[l,r]),d=g.useMemo(()=>({id:c,initial:t,isPresent:n,custom:s,onExitComplete:u,register:f=>(l.set(f,!1),()=>l.delete(f))}),i?[Math.random(),u]:[n,u]);return g.useMemo(()=>{l.forEach((f,p)=>l.set(p,!1))},[n]),g.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(e=h.jsx(ch,{isPresent:n,anchorX:a,children:e})),h.jsx(or.Provider,{value:d,children:e})};function dh(){return new Map}function fl(e=!0){const t=g.useContext(or);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=g.useId();g.useEffect(()=>{e&&s(i)},[e]);const o=g.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const _n=e=>e.key||"";function Li(e){const t=[];return g.Children.forEach(e,n=>{g.isValidElement(n)&&t.push(n)}),t}const As=typeof window<"u",hl=As?g.useLayoutEffect:g.useEffect,Xv=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1,anchorX:a="left"})=>{const[l,c]=fl(o),u=g.useMemo(()=>Li(e),[e]),d=o&&!l?[]:u.map(_n),f=g.useRef(!0),p=g.useRef(u),y=Ss(()=>new Map),[m,x]=g.useState(u),[v,w]=g.useState(u);hl(()=>{f.current=!1,p.current=u;for(let S=0;S<v.length;S++){const P=_n(v[S]);d.includes(P)?y.delete(P):y.get(P)!==!0&&y.set(P,!1)}},[v,d.length,d.join("-")]);const A=[];if(u!==m){let S=[...u];for(let P=0;P<v.length;P++){const D=v[P],j=_n(D);d.includes(j)||(S.splice(P,0,D),A.push(D))}i==="wait"&&A.length&&(S=A),w(Li(S)),x(u);return}const{forceRender:E}=g.useContext(ws);return h.jsx(h.Fragment,{children:v.map(S=>{const P=_n(S),D=o&&!l?!1:u===v||d.includes(P),j=()=>{if(y.has(P))y.set(P,!0);else return;let k=!0;y.forEach(F=>{F||(k=!1)}),k&&(E==null||E(),w(p.current),o&&(c==null||c()),r&&r())};return h.jsx(uh,{isPresent:D,initial:!f.current||n?void 0:!1,custom:D?void 0:t,presenceAffectsLayout:s,mode:i,onExitComplete:D?void 0:j,anchorX:a,children:S},P)})})},Ve=e=>e;let Hr=Ve;const fh={skipAnimations:!1,useManualTiming:!1};function hh(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){i.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,u=!1,d=!1)=>{const p=d&&r?t:n;return u&&i.add(c),p.has(c)||p.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(o=c,r){s=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,s&&(s=!1,l.process(c))}};return l}const kn=["read","resolveKeyframes","update","preRender","render","postRender"],mh=40;function ml(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=kn.reduce((v,w)=>(v[w]=hh(i),v),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:f}=o,p=()=>{const v=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(v-s.timestamp,mh),1),s.timestamp=v,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),u.process(s),d.process(s),f.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(p))},y=()=>{n=!0,r=!0,s.isProcessing||e(p)};return{schedule:kn.reduce((v,w)=>{const A=o[w];return v[w]=(E,S=!1,P=!1)=>(n||y(),A.schedule(E,S,P)),v},{}),cancel:v=>{for(let w=0;w<kn.length;w++)o[kn[w]].cancel(v)},state:s,steps:o}}const{schedule:ie,cancel:ut,state:xe,steps:Er}=ml(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ve,!0),pl=g.createContext({strict:!1}),Oi={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"]},Ot={};for(const e in Oi)Ot[e]={isEnabled:t=>Oi[e].some(n=>!!t[n])};function ph(e){for(const t in e)Ot[t]={...Ot[t],...e[t]}}const gh=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Hn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||gh.has(e)}let gl=e=>!Hn(e);function yh(e){e&&(gl=t=>t.startsWith("on")?!Hn(t):e(t))}try{yh(require("@emotion/is-prop-valid").default)}catch{}function vh(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(gl(s)||n===!0&&Hn(s)||!t&&!Hn(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function xh(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const ar=g.createContext({});function un(e){return typeof e=="string"||Array.isArray(e)}function lr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Cs=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ps=["initial",...Cs];function cr(e){return lr(e.animate)||Ps.some(t=>un(e[t]))}function yl(e){return!!(cr(e)||e.variants)}function bh(e,t){if(cr(e)){const{initial:n,animate:r}=e;return{initial:n===!1||un(n)?n:void 0,animate:un(r)?r:void 0}}return e.inherit!==!1?t:{}}function wh(e){const{initial:t,animate:n}=bh(e,g.useContext(ar));return g.useMemo(()=>({initial:t,animate:n}),[Ii(t),Ii(n)])}function Ii(e){return Array.isArray(e)?e.join(" "):e}const Sh=Symbol.for("motionComponentSymbol");function Vt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Th(e,t,n){return g.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Vt(n)&&(n.current=r))},[t])}const Es=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ah="framerAppearId",vl="data-"+Es(Ah),{schedule:Ds,cancel:Yv}=ml(queueMicrotask,!1),xl=g.createContext({});function Ch(e,t,n,r,s){var i,o;const{visualElement:a}=g.useContext(ar),l=g.useContext(pl),c=g.useContext(or),u=g.useContext(Ts).reducedMotion,d=g.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,p=g.useContext(xl);f&&!f.projection&&s&&(f.type==="html"||f.type==="svg")&&Ph(d.current,n,s,p);const y=g.useRef(!1);g.useInsertionEffect(()=>{f&&y.current&&f.update(n,c)});const m=n[vl],x=g.useRef(!!m&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,m))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,m)));return hl(()=>{f&&(y.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Ds.render(f.render),x.current&&f.animationState&&f.animationState.animateChanges())}),g.useEffect(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,m)}),x.current=!1))}),f}function Ph(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:bl(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&Vt(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function bl(e){if(e)return e.options.allowProjection!==!1?e.projection:bl(e.parent)}function Eh({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var i,o;e&&ph(e);function a(c,u){let d;const f={...g.useContext(Ts),...c,layoutId:Dh(c)},{isStatic:p}=f,y=wh(c),m=r(c,p);if(!p&&As){jh();const x=Nh(f);d=x.MeasureLayout,y.visualElement=Ch(s,m,f,t,x.ProjectionNode)}return h.jsxs(ar.Provider,{value:y,children:[d&&y.visualElement?h.jsx(d,{visualElement:y.visualElement,...f}):null,n(s,c,Th(m,y.visualElement,u),m,p,y.visualElement)]})}a.displayName=`motion.${typeof s=="string"?s:`create(${(o=(i=s.displayName)!==null&&i!==void 0?i:s.name)!==null&&o!==void 0?o:""})`}`;const l=g.forwardRef(a);return l[Sh]=s,l}function Dh({layoutId:e}){const t=g.useContext(ws).id;return t&&e!==void 0?t+"-"+e:e}function jh(e,t){g.useContext(pl).strict}function Nh(e){const{drag:t,layout:n}=Ot;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Vh=["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 js(e){return typeof e!="string"||e.includes("-")?!1:!!(Vh.indexOf(e)>-1||/[A-Z]/u.test(e))}function Bi(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ns(e,t,n,r){if(typeof t=="function"){const[s,i]=Bi(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=Bi(r);t=t(n!==void 0?n:e.custom,s,i)}return t}const qr=e=>Array.isArray(e),Mh=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Rh=e=>qr(e)?e[e.length-1]||0:e,Se=e=>!!(e&&e.getVelocity);function Bn(e){const t=Se(e)?e.get():e;return Mh(t)?t.toValue():t}function _h({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,i){const o={latestValues:kh(r,s,i,e),renderState:t()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const wl=e=>(t,n)=>{const r=g.useContext(ar),s=g.useContext(or),i=()=>_h(e,t,r,s);return n?i():Ss(i)};function kh(e,t,n,r){const s={},i=r(e,{});for(const f in i)s[f]=Bn(i[f]);let{initial:o,animate:a}=e;const l=cr(e),c=yl(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!lr(d)){const f=Array.isArray(d)?d:[d];for(let p=0;p<f.length;p++){const y=Ns(e,f[p]);if(y){const{transitionEnd:m,transition:x,...v}=y;for(const w in v){let A=v[w];if(Array.isArray(A)){const E=u?A.length-1:0;A=A[E]}A!==null&&(s[w]=A)}for(const w in m)s[w]=m[w]}}}return s}const zt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Pt=new Set(zt),Sl=e=>t=>typeof t=="string"&&t.startsWith(e),Vs=Sl("--"),Fh=Sl("var(--"),Ms=e=>Fh(e)?Lh.test(e.split("/*")[0].trim()):!1,Lh=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Tl=(e,t)=>t&&typeof e=="number"?t.transform(e):e,rt=(e,t,n)=>n>t?t:n<e?e:n,Wt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},dn={...Wt,transform:e=>rt(0,1,e)},Fn={...Wt,default:1},bn=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),at=bn("deg"),Xe=bn("%"),B=bn("px"),Oh=bn("vh"),Ih=bn("vw"),Ui={...Xe,parse:e=>Xe.parse(e)/100,transform:e=>Xe.transform(e*100)},Bh={borderWidth:B,borderTopWidth:B,borderRightWidth:B,borderBottomWidth:B,borderLeftWidth:B,borderRadius:B,radius:B,borderTopLeftRadius:B,borderTopRightRadius:B,borderBottomRightRadius:B,borderBottomLeftRadius:B,width:B,maxWidth:B,height:B,maxHeight:B,top:B,right:B,bottom:B,left:B,padding:B,paddingTop:B,paddingRight:B,paddingBottom:B,paddingLeft:B,margin:B,marginTop:B,marginRight:B,marginBottom:B,marginLeft:B,backgroundPositionX:B,backgroundPositionY:B},Uh={rotate:at,rotateX:at,rotateY:at,rotateZ:at,scale:Fn,scaleX:Fn,scaleY:Fn,scaleZ:Fn,skew:at,skewX:at,skewY:at,distance:B,translateX:B,translateY:B,translateZ:B,x:B,y:B,z:B,perspective:B,transformPerspective:B,opacity:dn,originX:Ui,originY:Ui,originZ:B},zi={...Wt,transform:Math.round},Rs={...Bh,...Uh,zIndex:zi,size:B,fillOpacity:dn,strokeOpacity:dn,numOctaves:zi},zh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Wh=zt.length;function $h(e,t,n){let r="",s=!0;for(let i=0;i<Wh;i++){const o=zt[i],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=Tl(a,Rs[o]);if(!l){s=!1;const u=zh[o]||o;r+=`${u}(${c}) `}n&&(t[o]=c)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function _s(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let o=!1,a=!1;for(const l in t){const c=t[l];if(Pt.has(l)){o=!0;continue}else if(Vs(l)){s[l]=c;continue}else{const u=Tl(c,Rs[l]);l.startsWith("origin")?(a=!0,i[l]=u):r[l]=u}}if(t.transform||(o||n?r.transform=$h(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;r.transformOrigin=`${l} ${c} ${u}`}}const Gh={offset:"stroke-dashoffset",array:"stroke-dasharray"},Kh={offset:"strokeDashoffset",array:"strokeDasharray"};function Hh(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?Gh:Kh;e[i.offset]=B.transform(-r);const o=B.transform(t),a=B.transform(n);e[i.array]=`${o} ${a}`}function Wi(e,t,n){return typeof e=="string"?e:B.transform(t+n*e)}function qh(e,t,n){const r=Wi(t,e.x,e.width),s=Wi(n,e.y,e.height);return`${r} ${s}`}function ks(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...c},u,d){if(_s(e,c,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:y}=e;f.transform&&(y&&(p.transform=f.transform),delete f.transform),y&&(s!==void 0||i!==void 0||p.transform)&&(p.transformOrigin=qh(y,s!==void 0?s:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&Hh(f,o,a,l,!1)}const Fs=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Al=()=>({...Fs(),attrs:{}}),Ls=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Cl(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Pl=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 El(e,t,n,r){Cl(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(Pl.has(s)?s:Es(s),t.attrs[s])}const fn={};function Xh(e){for(const t in e)fn[t]=e[t],Vs(t)&&(fn[t].isCSSVariable=!0)}function Dl(e,{layout:t,layoutId:n}){return Pt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!fn[e]||e==="opacity")}function Os(e,t,n){var r;const{style:s}=e,i={};for(const o in s)(Se(s[o])||t.style&&Se(t.style[o])||Dl(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[o]=s[o]);return i}function jl(e,t,n){const r=Os(e,t,n);for(const s in e)if(Se(e[s])||Se(t[s])){const i=zt.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}function Yh(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const $i=["x","y","width","height","cx","cy","r"],Zh={useVisualState:wl({scrapeMotionValuesFromProps:jl,createRenderState:Al,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:s})=>{if(!n)return;let i=!!e.drag;if(!i){for(const a in s)if(Pt.has(a)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let a=0;a<$i.length;a++){const l=$i[a];e[l]!==t[l]&&(o=!0)}o&&ie.read(()=>{Yh(n,r),ie.render(()=>{ks(r,s,Ls(n.tagName),e.transformTemplate),El(n,r)})})}})},Jh={useVisualState:wl({scrapeMotionValuesFromProps:Os,createRenderState:Fs})};function Nl(e,t,n){for(const r in t)!Se(t[r])&&!Dl(r,n)&&(e[r]=t[r])}function Qh({transformTemplate:e},t){return g.useMemo(()=>{const n=Fs();return _s(n,t,e),Object.assign({},n.vars,n.style)},[t])}function em(e,t){const n=e.style||{},r={};return Nl(r,n,e),Object.assign(r,Qh(e,t)),r}function tm(e,t){const n={},r=em(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function nm(e,t,n,r){const s=g.useMemo(()=>{const i=Al();return ks(i,t,Ls(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Nl(i,e.style,e),s.style={...i,...s.style}}return s}function rm(e=!1){return(n,r,s,{latestValues:i},o)=>{const l=(js(n)?nm:tm)(r,i,o,n),c=vh(r,typeof n=="string",e),u=n!==g.Fragment?{...c,...l,ref:s}:{},{children:d}=r,f=g.useMemo(()=>Se(d)?d.get():d,[d]);return g.createElement(n,{...u,children:f})}}function sm(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const o={...js(r)?Zh:Jh,preloadedFeatures:e,useRender:rm(s),createVisualElement:t,Component:r};return Eh(o)}}function Vl(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function ur(e,t,n){const r=e.getProps();return Ns(r,t,n!==void 0?n:r.custom,e)}function Is(e,t){return e?e[t]||e.default||e:void 0}const Ml=new Set(["width","height","top","left","right","bottom",...zt]);let Un;function im(){Un=void 0}const Ye={now:()=>(Un===void 0&&Ye.set(xe.isProcessing||fh.useManualTiming?xe.timestamp:performance.now()),Un),set:e=>{Un=e,queueMicrotask(im)}};function Bs(e,t){e.indexOf(t)===-1&&e.push(t)}function Us(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class zs{constructor(){this.subscriptions=[]}add(t){return Bs(this.subscriptions,t),()=>Us(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Rl(e,t){return t?e*(1e3/t):0}const Gi=30,om=e=>!isNaN(parseFloat(e));class am{constructor(t,n={}){this.version="12.0.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const i=Ye.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ye.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=om(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new zs);const r=this.events[t].add(n);return t==="change"?()=>{r(),ie.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ye.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Gi)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Gi);return Rl(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function hn(e,t){return new am(e,t)}function lm(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,hn(n))}function cm(e,t){const n=ur(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=Rh(i[o]);lm(e,o,a)}}function um(e){return!!(Se(e)&&e.add)}function Xr(e,t){const n=e.getValue("willChange");if(um(n))return n.add(t)}function _l(e){return e.props[vl]}function Ws(e){let t;return()=>(t===void 0&&(t=e()),t)}const dm=Ws(()=>window.ScrollTimeline!==void 0);class fm{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(s=>{if(dm()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class hm extends fm{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const tt=e=>e*1e3,nt=e=>e/1e3;function $s(e){return typeof e=="function"}function Ki(e,t){e.timeline=t,e.onfinish=null}const Gs=e=>Array.isArray(e)&&typeof e[0]=="number",mm={linearEasing:void 0};function pm(e,t){const n=Ws(e);return()=>{var r;return(r=mm[t])!==null&&r!==void 0?r:n()}}const qn=pm(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),It=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},kl=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=e(It(0,s-1,i))+", ";return`linear(${r.substring(0,r.length-2)})`};function Fl(e){return!!(typeof e=="function"&&qn()||!e||typeof e=="string"&&(e in Yr||qn())||Gs(e)||Array.isArray(e)&&e.every(Fl))}const Jt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Yr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Jt([0,.65,.55,1]),circOut:Jt([.55,0,1,.45]),backIn:Jt([.31,.01,.66,-.59]),backOut:Jt([.33,1.53,.69,.99])};function Ll(e,t){if(e)return typeof e=="function"&&qn()?kl(e,t):Gs(e)?Jt(e):Array.isArray(e)?e.map(n=>Ll(n,t)||Yr.easeOut):Yr[e]}const Ol=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,gm=1e-7,ym=12;function vm(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=Ol(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>gm&&++a<ym);return o}function wn(e,t,n,r){if(e===t&&n===r)return Ve;const s=i=>vm(i,0,1,e,n);return i=>i===0||i===1?i:Ol(s(i),t,r)}const Il=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Bl=e=>t=>1-e(1-t),Ul=wn(.33,1.53,.69,.99),Ks=Bl(Ul),zl=Il(Ks),Wl=e=>(e*=2)<1?.5*Ks(e):.5*(2-Math.pow(2,-10*(e-1))),Hs=e=>1-Math.sin(Math.acos(e)),$l=Bl(Hs),Gl=Il(Hs),Kl=e=>/^0[^.\s]+$/u.test(e);function xm(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Kl(e):!0}const nn=e=>Math.round(e*1e5)/1e5,qs=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function bm(e){return e==null}const wm=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Xs=(e,t)=>n=>!!(typeof n=="string"&&wm.test(n)&&n.startsWith(e)||t&&!bm(n)&&Object.prototype.hasOwnProperty.call(n,t)),Hl=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(qs);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Sm=e=>rt(0,255,e),Dr={...Wt,transform:e=>Math.round(Sm(e))},vt={test:Xs("rgb","red"),parse:Hl("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Dr.transform(e)+", "+Dr.transform(t)+", "+Dr.transform(n)+", "+nn(dn.transform(r))+")"};function Tm(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Zr={test:Xs("#"),parse:Tm,transform:vt.transform},Mt={test:Xs("hsl","hue"),parse:Hl("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Xe.transform(nn(t))+", "+Xe.transform(nn(n))+", "+nn(dn.transform(r))+")"},we={test:e=>vt.test(e)||Zr.test(e)||Mt.test(e),parse:e=>vt.test(e)?vt.parse(e):Mt.test(e)?Mt.parse(e):Zr.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?vt.transform(e):Mt.transform(e)},Am=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Cm(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(qs))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Am))===null||n===void 0?void 0:n.length)||0)>0}const ql="number",Xl="color",Pm="var",Em="var(",Hi="${}",Dm=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function mn(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(Dm,l=>(we.test(l)?(r.color.push(i),s.push(Xl),n.push(we.parse(l))):l.startsWith(Em)?(r.var.push(i),s.push(Pm),n.push(l)):(r.number.push(i),s.push(ql),n.push(parseFloat(l))),++i,Hi)).split(Hi);return{values:n,split:a,indexes:r,types:s}}function Yl(e){return mn(e).values}function Zl(e){const{split:t,types:n}=mn(e),r=t.length;return s=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],s[o]!==void 0){const a=n[o];a===ql?i+=nn(s[o]):a===Xl?i+=we.transform(s[o]):i+=s[o]}return i}}const jm=e=>typeof e=="number"?0:e;function Nm(e){const t=Yl(e);return Zl(e)(t.map(jm))}const dt={test:Cm,parse:Yl,createTransformer:Zl,getAnimatableNone:Nm},Vm=new Set(["brightness","contrast","saturate","opacity"]);function Mm(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(qs)||[];if(!r)return e;const s=n.replace(r,"");let i=Vm.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const Rm=/\b([a-z-]*)\(.*?\)/gu,Jr={...dt,getAnimatableNone:e=>{const t=e.match(Rm);return t?t.map(Mm).join(" "):e}},_m={...Rs,color:we,backgroundColor:we,outlineColor:we,fill:we,stroke:we,borderColor:we,borderTopColor:we,borderRightColor:we,borderBottomColor:we,borderLeftColor:we,filter:Jr,WebkitFilter:Jr},Ys=e=>_m[e];function Jl(e,t){let n=Ys(e);return n!==Jr&&(n=dt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const km=new Set(["auto","none","0"]);function Fm(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!km.has(i)&&mn(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=Jl(n,s)}const qi=e=>e===Wt||e===B,Xi=(e,t)=>parseFloat(e.split(", ")[t]),Yi=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/u);if(s)return Xi(s[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Xi(i[1],e):0}},Lm=new Set(["x","y","z"]),Om=zt.filter(e=>!Lm.has(e));function Im(e){const t=[];return Om.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Bt={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Yi(4,13),y:Yi(5,14)};Bt.translateX=Bt.x;Bt.translateY=Bt.y;const bt=new Set;let Qr=!1,es=!1;function Ql(){if(es){const e=Array.from(bt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=Im(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}es=!1,Qr=!1,bt.forEach(e=>e.complete()),bt.clear()}function ec(){bt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(es=!0)})}function Bm(){ec(),Ql()}class Zs{constructor(t,n,r,s,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(bt.add(this),Qr||(Qr=!0,ie.read(ec),ie.resolveKeyframes(Ql))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const o=s==null?void 0:s.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),s&&o===void 0&&s.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),bt.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,bt.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const tc=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Um=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function zm(e){const t=Um.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function nc(e,t,n=1){const[r,s]=zm(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return tc(o)?parseFloat(o):o}return Ms(s)?nc(s,t,n+1):s}const rc=e=>t=>t.test(e),Wm={test:e=>e==="auto",parse:e=>e},sc=[Wt,B,Xe,at,Ih,Oh,Wm],Zi=e=>sc.find(rc(e));class ic extends Zs{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),Ms(c))){const u=nc(c,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Ml.has(r)||t.length!==2)return;const[s,i]=t,o=Zi(s),a=Zi(i);if(o!==a)if(qi(o)&&qi(a))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)xm(t[s])&&r.push(s);r.length&&Fm(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Bt[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,a=s[o];s[o]=Bt[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const Ji=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(dt.test(e)||e==="0")&&!e.startsWith("url("));function $m(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Gm(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=Ji(s,t),a=Ji(i,t);return!o||!a?!1:$m(e)||(n==="spring"||$s(n))&&r}const Km=e=>e!==null;function dr(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(Km),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}const Hm=40;class oc{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ye.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Hm?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Bm(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Ye.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:i,delay:o,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!Gm(t,r,s,i))if(o)this.options.duration=0;else{l&&l(dr(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(t,n);u!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const ts=2e4;function ac(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ts;)t+=n,r=e.next(t);return t>=ts?1/0:t}const ae=(e,t,n)=>e+(t-e)*n;function jr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function qm({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=jr(l,a,e+1/3),i=jr(l,a,e),o=jr(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function Xn(e,t){return n=>n>0?t:e}const Nr=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},Xm=[Zr,vt,Mt],Ym=e=>Xm.find(t=>t.test(e));function Qi(e){const t=Ym(e);if(!t)return!1;let n=t.parse(e);return t===Mt&&(n=qm(n)),n}const eo=(e,t)=>{const n=Qi(e),r=Qi(t);if(!n||!r)return Xn(e,t);const s={...n};return i=>(s.red=Nr(n.red,r.red,i),s.green=Nr(n.green,r.green,i),s.blue=Nr(n.blue,r.blue,i),s.alpha=ae(n.alpha,r.alpha,i),vt.transform(s))},Zm=(e,t)=>n=>t(e(n)),Sn=(...e)=>e.reduce(Zm),ns=new Set(["none","hidden"]);function Jm(e,t){return ns.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Qm(e,t){return n=>ae(e,t,n)}function Js(e){return typeof e=="number"?Qm:typeof e=="string"?Ms(e)?Xn:we.test(e)?eo:np:Array.isArray(e)?lc:typeof e=="object"?we.test(e)?eo:ep:Xn}function lc(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Js(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function ep(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Js(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function tp(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],a=e.indexes[o][s[o]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[i]=l,s[o]++}return r}const np=(e,t)=>{const n=dt.createTransformer(t),r=mn(e),s=mn(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?ns.has(e)&&!s.values.length||ns.has(t)&&!r.values.length?Jm(e,t):Sn(lc(tp(r,s),s.values),n):Xn(e,t)};function cc(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ae(e,t,n):Js(e)(e,t)}const rp=5;function uc(e,t,n){const r=Math.max(t-rp,0);return Rl(n-e(r),t-r)}const ce={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},to=.001;function sp({duration:e=ce.duration,bounce:t=ce.bounce,velocity:n=ce.velocity,mass:r=ce.mass}){let s,i,o=1-t;o=rt(ce.minDamping,ce.maxDamping,o),e=rt(ce.minDuration,ce.maxDuration,nt(e)),o<1?(s=c=>{const u=c*o,d=u*e,f=u-n,p=rs(c,o),y=Math.exp(-d);return to-f/p*y},i=c=>{const d=c*o*e,f=d*n+n,p=Math.pow(o,2)*Math.pow(c,2)*e,y=Math.exp(-d),m=rs(Math.pow(c,2),o);return(-s(c)+to>0?-1:1)*((f-p)*y)/m}):(s=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-.001+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=op(s,i,a);if(e=tt(e),isNaN(l))return{stiffness:ce.stiffness,damping:ce.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const ip=12;function op(e,t,n){let r=n;for(let s=1;s<ip;s++)r=r-e(r)/t(r);return r}function rs(e,t){return e*Math.sqrt(1-t*t)}const ap=["duration","bounce"],lp=["stiffness","damping","mass"];function no(e,t){return t.some(n=>e[n]!==void 0)}function cp(e){let t={velocity:ce.velocity,stiffness:ce.stiffness,damping:ce.damping,mass:ce.mass,isResolvedFromDuration:!1,...e};if(!no(e,lp)&&no(e,ap))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*rt(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:ce.mass,stiffness:s,damping:i}}else{const n=sp(e);t={...t,...n,mass:ce.mass},t.isResolvedFromDuration=!0}return t}function dc(e=ce.visualDuration,t=ce.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=cp({...n,velocity:-nt(n.velocity||0)}),y=f||0,m=c/(2*Math.sqrt(l*u)),x=o-i,v=nt(Math.sqrt(l/u)),w=Math.abs(x)<5;r||(r=w?ce.restSpeed.granular:ce.restSpeed.default),s||(s=w?ce.restDelta.granular:ce.restDelta.default);let A;if(m<1){const S=rs(v,m);A=P=>{const D=Math.exp(-m*v*P);return o-D*((y+m*v*x)/S*Math.sin(S*P)+x*Math.cos(S*P))}}else if(m===1)A=S=>o-Math.exp(-v*S)*(x+(y+v*x)*S);else{const S=v*Math.sqrt(m*m-1);A=P=>{const D=Math.exp(-m*v*P),j=Math.min(S*P,300);return o-D*((y+m*v*x)*Math.sinh(j)+S*x*Math.cosh(j))/S}}const E={calculatedDuration:p&&d||null,next:S=>{const P=A(S);if(p)a.done=S>=d;else{let D=0;m<1&&(D=S===0?tt(y):uc(A,S,P));const j=Math.abs(D)<=r,k=Math.abs(o-P)<=s;a.done=j&&k}return a.value=a.done?o:P,a},toString:()=>{const S=Math.min(ac(E),ts),P=kl(D=>E.next(S*D).value,S,30);return S+"ms "+P}};return E}function ro({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=j=>a!==void 0&&j<a||l!==void 0&&j>l,y=j=>a===void 0?l:l===void 0||Math.abs(a-j)<Math.abs(l-j)?a:l;let m=n*t;const x=d+m,v=o===void 0?x:o(x);v!==x&&(m=v-d);const w=j=>-m*Math.exp(-j/r),A=j=>v+w(j),E=j=>{const k=w(j),F=A(j);f.done=Math.abs(k)<=c,f.value=f.done?v:F};let S,P;const D=j=>{p(f.value)&&(S=j,P=dc({keyframes:[f.value,y(f.value)],velocity:uc(A,j,f.value),damping:s,stiffness:i,restDelta:c,restSpeed:u}))};return D(0),{calculatedDuration:null,next:j=>{let k=!1;return!P&&S===void 0&&(k=!0,E(j),D(j)),S!==void 0&&j>=S?P.next(j-S):(!k&&E(j),f)}}}const up=wn(.42,0,1,1),dp=wn(0,0,.58,1),fc=wn(.42,0,.58,1),fp=e=>Array.isArray(e)&&typeof e[0]!="number",so={linear:Ve,easeIn:up,easeInOut:fc,easeOut:dp,circIn:Hs,circInOut:Gl,circOut:$l,backIn:Ks,backInOut:zl,backOut:Ul,anticipate:Wl},io=e=>{if(Gs(e)){Hr(e.length===4);const[t,n,r,s]=e;return wn(t,n,r,s)}else if(typeof e=="string")return Hr(so[e]!==void 0),so[e];return e};function hp(e,t,n){const r=[],s=n||cc,i=e.length-1;for(let o=0;o<i;o++){let a=s(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Ve:t;a=Sn(l,a)}r.push(a)}return r}function mp(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(Hr(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=hp(t,r,s),l=a.length,c=u=>{if(o&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=It(e[d],e[d+1],u);return a[d](f)};return n?u=>c(rt(e[0],e[i-1],u)):c}function pp(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=It(0,t,r);e.push(ae(n,1,s))}}function gp(e){const t=[0];return pp(t,e.length-1),t}function yp(e,t){return e.map(n=>n*t)}function vp(e,t){return e.map(()=>t||fc).splice(0,e.length-1)}function Yn({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=fp(r)?r.map(io):io(r),i={done:!1,value:t[0]},o=yp(n&&n.length===t.length?n:gp(t),e),a=mp(o,t,{ease:Array.isArray(s)?s:vp(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const xp=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ie.update(t,!0),stop:()=>ut(t),now:()=>xe.isProcessing?xe.timestamp:Ye.now()}},bp={decay:ro,inertia:ro,tween:Yn,keyframes:Yn,spring:dc},wp=e=>e/100;class Qs extends oc{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:s,keyframes:i}=this.options,o=(s==null?void 0:s.KeyframeResolver)||Zs,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new o(i,a,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=this.options,a=$s(n)?n:bp[n]||Yn;let l,c;a!==Yn&&typeof t[0]!="number"&&(l=Sn(wp,cc(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});i==="mirror"&&(c=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=ac(u));const{calculatedDuration:d}=u,f=d+s,p=f*(r+1)-s;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:j}=this.options;return{done:!0,value:j[j.length-1]}}const{finalKeyframe:s,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:p,repeatType:y,repeatDelay:m,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-f*(this.speed>=0?1:-1),w=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let A=this.currentTime,E=i;if(p){const j=Math.min(this.currentTime,u)/d;let k=Math.floor(j),F=j%1;!F&&j>=1&&(F=1),F===1&&k--,k=Math.min(k,p+1),!!(k%2)&&(y==="reverse"?(F=1-F,m&&(F-=m/d)):y==="mirror"&&(E=o)),A=rt(0,1,F)*d}const S=w?{done:!1,value:l[0]}:E.next(A);a&&(S.value=a(S.value));let{done:P}=S;!w&&c!==null&&(P=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return D&&s!==void 0&&(S.value=dr(l,this.options,s)),x&&x(S.value),D&&this.finish(),S}get duration(){const{resolved:t}=this;return t?nt(t.calculatedDuration):0}get time(){return nt(this.currentTime)}set time(t){t=tt(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=nt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=xp,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Sp=new Set(["opacity","clipPath","filter","transform"]);function Tp(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Ll(a,s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const Ap=Ws(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Zn=10,Cp=2e4;function Pp(e){return $s(e.type)||e.type==="spring"||!Fl(e.ease)}function Ep(e,t){const n=new Qs({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let i=0;for(;!r.done&&i<Cp;)r=n.sample(i),s.push(r.value),i+=Zn;return{times:void 0,keyframes:s,duration:i-Zn,ease:"linear"}}const hc={anticipate:Wl,backInOut:zl,circInOut:Gl};function Dp(e){return e in hc}class oo extends oc{constructor(t){super(t);const{name:n,motionValue:r,element:s,keyframes:i}=this.options;this.resolver=new ic(i,(o,a)=>this.onKeyframesResolved(o,a),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:i,type:o,motionValue:a,name:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&qn()&&Dp(i)&&(i=hc[i]),Pp(this.options)){const{onComplete:d,onUpdate:f,motionValue:p,element:y,...m}=this.options,x=Ep(t,m);t=x.keyframes,t.length===1&&(t[1]=t[0]),r=x.duration,s=x.times,i=x.ease,o="keyframes"}const u=Tp(a.owner.current,l,t,{...this.options,duration:r,times:s,ease:i});return u.startTime=c??this.calcStartTime(),this.pendingTimeline?(Ki(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(dr(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:s,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return nt(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return nt(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=tt(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ve;const{animation:r}=n;Ki(r,t)}return Ve}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:s,type:i,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:d,element:f,...p}=this.options,y=new Qs({...p,keyframes:r,duration:s,type:i,ease:o,times:a,isGenerator:!0}),m=tt(this.time);c.setWithVelocity(y.sample(m-Zn).value,y.sample(m).value,Zn)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:s,repeatType:i,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return Ap()&&r&&Sp.has(r)&&!l&&!c&&!s&&i!=="mirror"&&o!==0&&a!=="inertia"}}const jp={type:"spring",stiffness:500,damping:25,restSpeed:10},Np=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Vp={type:"keyframes",duration:.8},Mp={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Rp=(e,{keyframes:t})=>t.length>2?Vp:Pt.has(e)?e.startsWith("scale")?Np(t[1]):jp:Mp;function _p({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const ei=(e,t,n,r={},s,i)=>o=>{const a=Is(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-tt(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};_p(a)||(u={...u,...Rp(e,u)}),u.duration&&(u.duration=tt(u.duration)),u.repeatDelay&&(u.repeatDelay=tt(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=dr(u.keyframes,a);if(f!==void 0)return ie.update(()=>{u.onUpdate(f),u.onComplete()}),new hm([])}return!i&&oo.supports(u)?new oo(u):new Qs(u)};function kp({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function mc(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(o=r);const c=[],u=s&&e.animationState&&e.animationState.getState()[s];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),p=l[d];if(p===void 0||u&&kp(u,d))continue;const y={delay:n,...Is(o||{},d)};let m=!1;if(window.MotionHandoffAnimation){const v=_l(e);if(v){const w=window.MotionHandoffAnimation(v,d,ie);w!==null&&(y.startTime=w,m=!0)}}Xr(e,d),f.start(ei(d,f,p,e.shouldReduceMotion&&Ml.has(d)?{type:!1}:y,e,m));const x=f.animation;x&&c.push(x)}return a&&Promise.all(c).then(()=>{ie.update(()=>{a&&cm(e,a)})}),c}function ss(e,t,n={}){var r;const s=ur(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(mc(e,s,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return Fp(e,t,u+c,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,u]=l==="beforeChildren"?[o,a]:[a,o];return c().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function Fp(e,t,n=0,r=0,s=1,i){const o=[],a=(e.variantChildren.size-1)*r,l=s===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(Lp).forEach((c,u)=>{c.notify("AnimationStart",t),o.push(ss(c,t,{...i,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(o)}function Lp(e,t){return e.sortNodePosition(t)}function Op(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>ss(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=ss(e,t,n);else{const s=typeof t=="function"?ur(e,t,n.custom):t;r=Promise.all(mc(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Ip=Ps.length;function pc(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?pc(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Ip;n++){const r=Ps[n],s=e.props[r];(un(s)||s===!1)&&(t[r]=s)}return t}const Bp=[...Cs].reverse(),Up=Cs.length;function zp(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Op(e,n,r)))}function Wp(e){let t=zp(e),n=ao(),r=!0;const s=l=>(c,u)=>{var d;const f=ur(e,u,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:y,...m}=f;c={...c,...m,...y}}return c};function i(l){t=l(e)}function o(l){const{props:c}=e,u=pc(e.parent)||{},d=[],f=new Set;let p={},y=1/0;for(let x=0;x<Up;x++){const v=Bp[x],w=n[v],A=c[v]!==void 0?c[v]:u[v],E=un(A),S=v===l?w.isActive:null;S===!1&&(y=x);let P=A===u[v]&&A!==c[v]&&E;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),w.protectedKeys={...p},!w.isActive&&S===null||!A&&!w.prevProp||lr(A)||typeof A=="boolean")continue;const D=$p(w.prevProp,A);let j=D||v===l&&w.isActive&&!P&&E||x>y&&E,k=!1;const F=Array.isArray(A)?A:[A];let U=F.reduce(s(v),{});S===!1&&(U={});const{prevResolvedValues:N={}}=w,O={...N,...U},z=W=>{j=!0,f.has(W)&&(k=!0,f.delete(W)),w.needsAnimating[W]=!0;const X=e.getValue(W);X&&(X.liveStyle=!1)};for(const W in O){const X=U[W],ee=N[W];if(p.hasOwnProperty(W))continue;let me=!1;qr(X)&&qr(ee)?me=!Vl(X,ee):me=X!==ee,me?X!=null?z(W):f.add(W):X!==void 0&&f.has(W)?z(W):w.protectedKeys[W]=!0}w.prevProp=A,w.prevResolvedValues=U,w.isActive&&(p={...p,...U}),r&&e.blockInitialAnimation&&(j=!1),j&&(!(P&&D)||k)&&d.push(...F.map(W=>({animation:W,options:{type:v}})))}if(f.size){const x={};f.forEach(v=>{const w=e.getBaseTarget(v),A=e.getValue(v);A&&(A.liveStyle=!0),x[v]=w??null}),d.push({animation:x})}let m=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(l,c)}),n[l].isActive=c;const d=o(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=ao(),r=!0}}}function $p(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Vl(t,e):!1}function pt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ao(){return{animate:pt(!0),whileInView:pt(),whileHover:pt(),whileTap:pt(),whileDrag:pt(),whileFocus:pt(),exit:pt()}}class ft{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Gp extends ft{constructor(t){super(t),t.animationState||(t.animationState=Wp(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();lr(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let Kp=0;class Hp extends ft{constructor(){super(...arguments),this.id=Kp++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const qp={animation:{Feature:Gp},exit:{Feature:Hp}},Ie={x:!1,y:!1};function gc(){return Ie.x||Ie.y}function Xp(e){return e==="x"||e==="y"?Ie[e]?null:(Ie[e]=!0,()=>{Ie[e]=!1}):Ie.x||Ie.y?null:(Ie.x=Ie.y=!0,()=>{Ie.x=Ie.y=!1})}const ti=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function pn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Tn(e){return{point:{x:e.pageX,y:e.pageY}}}const Yp=e=>t=>ti(t)&&e(t,Tn(t));function rn(e,t,n,r){return pn(e,t,Yp(n),r)}const lo=(e,t)=>Math.abs(e-t);function Zp(e,t){const n=lo(e.x,t.x),r=lo(e.y,t.y);return Math.sqrt(n**2+r**2)}class yc{constructor(t,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:i=!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 d=Mr(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=Zp(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:y}=d,{timestamp:m}=xe;this.history.push({...y,timestamp:m});const{onStart:x,onMove:v}=this.handlers;f||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Vr(f,this.transformPagePoint),ie.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:y,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Mr(d.type==="pointercancel"?this.lastMoveEventInfo:Vr(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,x),y&&y(d,x)},!ti(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const o=Tn(t),a=Vr(o,this.transformPagePoint),{point:l}=a,{timestamp:c}=xe;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,Mr(a,this.history)),this.removeListeners=Sn(rn(this.contextWindow,"pointermove",this.handlePointerMove),rn(this.contextWindow,"pointerup",this.handlePointerUp),rn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ut(this.updatePoint)}}function Vr(e,t){return t?{point:t(e.point)}:e}function co(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Mr({point:e},t){return{point:e,delta:co(e,vc(t)),offset:co(e,Jp(t)),velocity:Qp(t,.1)}}function Jp(e){return e[0]}function vc(e){return e[e.length-1]}function Qp(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=vc(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>tt(t)));)n--;if(!r)return{x:0,y:0};const i=nt(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const xc=1e-4,eg=1-xc,tg=1+xc,bc=.01,ng=0-bc,rg=0+bc;function Ce(e){return e.max-e.min}function sg(e,t,n){return Math.abs(e-t)<=n}function uo(e,t,n,r=.5){e.origin=r,e.originPoint=ae(t.min,t.max,e.origin),e.scale=Ce(n)/Ce(t),e.translate=ae(n.min,n.max,e.origin)-e.originPoint,(e.scale>=eg&&e.scale<=tg||isNaN(e.scale))&&(e.scale=1),(e.translate>=ng&&e.translate<=rg||isNaN(e.translate))&&(e.translate=0)}function sn(e,t,n,r){uo(e.x,t.x,n.x,r?r.originX:void 0),uo(e.y,t.y,n.y,r?r.originY:void 0)}function fo(e,t,n){e.min=n.min+t.min,e.max=e.min+Ce(t)}function ig(e,t,n){fo(e.x,t.x,n.x),fo(e.y,t.y,n.y)}function ho(e,t,n){e.min=t.min-n.min,e.max=e.min+Ce(t)}function on(e,t,n){ho(e.x,t.x,n.x),ho(e.y,t.y,n.y)}function og(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ae(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ae(n,e,r.max):Math.min(e,n)),e}function mo(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function ag(e,{top:t,left:n,bottom:r,right:s}){return{x:mo(e.x,n,s),y:mo(e.y,t,r)}}function po(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function lg(e,t){return{x:po(e.x,t.x),y:po(e.y,t.y)}}function cg(e,t){let n=.5;const r=Ce(e),s=Ce(t);return s>r?n=It(t.min,t.max-r,e.min):r>s&&(n=It(e.min,e.max-s,t.min)),rt(0,1,n)}function ug(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const is=.35;function dg(e=is){return e===!1?e=0:e===!0&&(e=is),{x:go(e,"left","right"),y:go(e,"top","bottom")}}function go(e,t,n){return{min:yo(e,t),max:yo(e,n)}}function yo(e,t){return typeof e=="number"?e:e[t]||0}const vo=()=>({translate:0,scale:1,origin:0,originPoint:0}),Rt=()=>({x:vo(),y:vo()}),xo=()=>({min:0,max:0}),de=()=>({x:xo(),y:xo()});function ke(e){return[e("x"),e("y")]}function wc({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function fg({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function hg(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Rr(e){return e===void 0||e===1}function os({scale:e,scaleX:t,scaleY:n}){return!Rr(e)||!Rr(t)||!Rr(n)}function gt(e){return os(e)||Sc(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Sc(e){return bo(e.x)||bo(e.y)}function bo(e){return e&&e!=="0%"}function Jn(e,t,n){const r=e-n,s=t*r;return n+s}function wo(e,t,n,r,s){return s!==void 0&&(e=Jn(e,s,r)),Jn(e,n,r)+t}function as(e,t=0,n=1,r,s){e.min=wo(e.min,t,n,r,s),e.max=wo(e.max,t,n,r,s)}function Tc(e,{x:t,y:n}){as(e.x,t.translate,t.scale,t.originPoint),as(e.y,n.translate,n.scale,n.originPoint)}const So=.999999999999,To=1.0000000000001;function mg(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let a=0;a<s;a++){i=n[a],o=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&kt(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Tc(e,o)),r&&gt(i.latestValues)&&kt(e,i.latestValues))}t.x<To&&t.x>So&&(t.x=1),t.y<To&&t.y>So&&(t.y=1)}function _t(e,t){e.min=e.min+t,e.max=e.max+t}function Ao(e,t,n,r,s=.5){const i=ae(e.min,e.max,s);as(e,t,n,i,r)}function kt(e,t){Ao(e.x,t.x,t.scaleX,t.scale,t.originX),Ao(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ac(e,t){return wc(hg(e.getBoundingClientRect(),t))}function pg(e,t,n){const r=Ac(e,n),{scroll:s}=t;return s&&(_t(r.x,s.offset.x),_t(r.y,s.offset.y)),r}const Cc=({current:e})=>e?e.ownerDocument.defaultView:null,gg=new WeakMap;class yg{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=de(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Tn(u).point)},i=(u,d)=>{const{drag:f,dragPropagation:p,onDragStart:y}=this.getProps();if(f&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Xp(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ke(x=>{let v=this.getAxisMotionValue(x).get()||0;if(Xe.test(v)){const{projection:w}=this.visualElement;if(w&&w.layout){const A=w.layout.layoutBox[x];A&&(v=Ce(A)*(parseFloat(v)/100))}}this.originPoint[x]=v}),y&&ie.postRender(()=>y(u,d)),Xr(this.visualElement,"transform");const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:y,onDrag:m}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:x}=d;if(p&&this.currentDirection===null){this.currentDirection=vg(x),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),m&&m(u,d)},a=(u,d)=>this.stop(u,d),l=()=>ke(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new yc(t,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Cc(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&ie.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!Ln(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=og(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Vt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=ag(s.layoutBox,n):this.constraints=!1,this.elastic=dg(r),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&ke(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=ug(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Vt(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=pg(r,s.root,this.visualElement.getTransformPagePoint());let o=lg(s.layout.layoutBox,i);if(n){const a=n(fg(o));this.hasMutatedConstraints=!!a,a&&(o=wc(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=ke(u=>{if(!Ln(u,n,this.currentDirection))return;let d=l[u]||{};o&&(d={min:0,max:0});const f=s?200:1e6,p=s?40:1e7,y={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,y)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Xr(this.visualElement,t),r.start(ei(t,r,0,n,this.visualElement,!1))}stopAnimation(){ke(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ke(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ke(n=>{const{drag:r}=this.getProps();if(!Ln(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n];i.set(t[n]-ae(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Vt(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};ke(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=cg({min:l,max:l},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ke(o=>{if(!Ln(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(ae(l,c,s[o]))})}addListeners(){if(!this.visualElement.current)return;gg.set(this.visualElement,this);const t=this.visualElement.current,n=rn(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Vt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),ie.read(r);const o=pn(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(ke(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=is,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Ln(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function vg(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class xg extends ft{constructor(t){super(t),this.removeGroupControls=Ve,this.removeListeners=Ve,this.controls=new yg(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ve}unmount(){this.removeGroupControls(),this.removeListeners()}}const Co=e=>(t,n)=>{e&&ie.postRender(()=>e(t,n))};class bg extends ft{constructor(){super(...arguments),this.removePointerDownListener=Ve}onPointerDown(t){this.session=new yc(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Cc(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Co(t),onStart:Co(n),onMove:r,onEnd:(i,o)=>{delete this.session,s&&ie.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=rn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const zn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Po(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Xt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(B.test(e))e=parseFloat(e);else return e;const n=Po(e,t.target.x),r=Po(e,t.target.y);return`${n}% ${r}%`}},wg={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=dt.parse(e);if(s.length>5)return r;const i=dt.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=l;const c=ae(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}};class Sg extends g.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;Xh(Tg),i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),zn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,s||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||ie.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ds.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Pc(e){const[t,n]=fl(),r=g.useContext(ws);return h.jsx(Sg,{...e,layoutGroup:r,switchLayoutGroup:g.useContext(xl),isPresent:t,safeToRemove:n})}const Tg={borderRadius:{...Xt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Xt,borderTopRightRadius:Xt,borderBottomLeftRadius:Xt,borderBottomRightRadius:Xt,boxShadow:wg};function Ag(e,t,n){const r=Se(e)?e:hn(e);return r.start(ei("",r,t,n)),r.animation}function Cg(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Pg=(e,t)=>e.depth-t.depth;class Eg{constructor(){this.children=[],this.isDirty=!1}add(t){Bs(this.children,t),this.isDirty=!0}remove(t){Us(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Pg),this.isDirty=!1,this.children.forEach(t)}}function Dg(e,t){const n=Ye.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(ut(r),e(i-t))};return ie.read(r,!0),()=>ut(r)}const Ec=["TopLeft","TopRight","BottomLeft","BottomRight"],jg=Ec.length,Eo=e=>typeof e=="string"?parseFloat(e):e,Do=e=>typeof e=="number"||B.test(e);function Ng(e,t,n,r,s,i){s?(e.opacity=ae(0,n.opacity!==void 0?n.opacity:1,Vg(r)),e.opacityExit=ae(t.opacity!==void 0?t.opacity:1,0,Mg(r))):i&&(e.opacity=ae(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<jg;o++){const a=`border${Ec[o]}Radius`;let l=jo(t,a),c=jo(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Do(l)===Do(c)?(e[a]=Math.max(ae(Eo(l),Eo(c),r),0),(Xe.test(c)||Xe.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=ae(t.rotate||0,n.rotate||0,r))}function jo(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Vg=Dc(0,.5,$l),Mg=Dc(.5,.95,Ve);function Dc(e,t,n){return r=>r<e?0:r>t?1:n(It(e,t,r))}function No(e,t){e.min=t.min,e.max=t.max}function _e(e,t){No(e.x,t.x),No(e.y,t.y)}function Vo(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Mo(e,t,n,r,s){return e-=t,e=Jn(e,1/n,r),s!==void 0&&(e=Jn(e,1/s,r)),e}function Rg(e,t=0,n=1,r=.5,s,i=e,o=e){if(Xe.test(t)&&(t=parseFloat(t),t=ae(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=ae(i.min,i.max,r);e===i&&(a-=t),e.min=Mo(e.min,t,n,a,s),e.max=Mo(e.max,t,n,a,s)}function Ro(e,t,[n,r,s],i,o){Rg(e,t[n],t[r],t[s],t.scale,i,o)}const _g=["x","scaleX","originX"],kg=["y","scaleY","originY"];function _o(e,t,n,r){Ro(e.x,t,_g,n?n.x:void 0,r?r.x:void 0),Ro(e.y,t,kg,n?n.y:void 0,r?r.y:void 0)}function ko(e){return e.translate===0&&e.scale===1}function jc(e){return ko(e.x)&&ko(e.y)}function Fo(e,t){return e.min===t.min&&e.max===t.max}function Fg(e,t){return Fo(e.x,t.x)&&Fo(e.y,t.y)}function Lo(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Nc(e,t){return Lo(e.x,t.x)&&Lo(e.y,t.y)}function Oo(e){return Ce(e.x)/Ce(e.y)}function Io(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Lg{constructor(){this.members=[]}add(t){Bs(this.members,t),t.scheduleRender()}remove(t){if(Us(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Og(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:f,skewX:p,skewY:y}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),y&&(r+=`skewY(${y}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const yt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Qt=typeof window<"u"&&window.MotionDebug!==void 0,_r=["","X","Y","Z"],Ig={visibility:"hidden"},Bo=1e3;let Bg=0;function kr(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Vc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=_l(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ie,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Vc(r)}function Mc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=Bg++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Qt&&(yt.totalNodes=yt.resolvedTargetDeltas=yt.recalculatedProjection=0),this.nodes.forEach(Wg),this.nodes.forEach(qg),this.nodes.forEach(Xg),this.nodes.forEach($g),Qt&&window.MotionDebug.record(yt)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,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 Eg)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new zs),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Cg(o),this.instance=o;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),e){let d;const f=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=Dg(f,250),zn.hasAnimatedSinceResize&&(zn.hasAnimatedSinceResize=!1,this.nodes.forEach(zo))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:p,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||ey,{onLayoutAnimationStart:x,onLayoutAnimationComplete:v}=u.getProps(),w=!this.targetLayout||!Nc(this.targetLayout,y),A=!f&&p;if(this.options.layoutRoot||this.resumeFrom||A||f&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,A);const E={...Is(m,"layout"),onPlay:x,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else f||zo(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ut(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(Yg),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Vc(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.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(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Uo);return}this.isUpdating||this.nodes.forEach(Kg),this.isUpdating=!1,this.nodes.forEach(Hg),this.nodes.forEach(Ug),this.nodes.forEach(zg),this.clearAllSnapshots();const a=Ye.now();xe.delta=rt(0,1e3/60,a-xe.timestamp),xe.timestamp=a,xe.isProcessing=!0,Er.update.process(xe),Er.preRender.process(xe),Er.render.process(xe),xe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ds.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Gg),this.sharedNodes.forEach(Zg)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ie.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ie.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ce(this.snapshot.measuredBox.x)&&!Ce(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}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 o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=de(),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,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!jc(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&(a||gt(this.latestValues)||u)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),ty(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return de();const l=a.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(ny))){const{scroll:u}=this.root;u&&(_t(l.x,u.offset.x),_t(l.y,u.offset.y))}return l}removeElementScroll(o){var a;const l=de();if(_e(l,o),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:f}=u;u!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&_e(l,o),_t(l.x,d.offset.x),_t(l.y,d.offset.y))}return l}applyTransform(o,a=!1){const l=de();_e(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&kt(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),gt(u.latestValues)&&kt(l,u.latestValues)}return gt(this.latestValues)&&kt(l,this.latestValues),l}removeTransform(o){const a=de();_e(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!gt(c.latestValues))continue;os(c.latestValues)&&c.updateSnapshot();const u=de(),d=c.measurePageBox();_e(u,d),_o(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return gt(this.latestValues)&&_o(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.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!==xe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!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(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=xe.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=de(),this.relativeTargetOrigin=de(),on(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),_e(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=de(),this.targetWithTransforms=de()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ig(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):_e(this.target,this.layout.layoutBox),Tc(this.target,this.targetDelta)):_e(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=de(),this.relativeTargetOrigin=de(),on(this.relativeTargetOrigin,this.target,p.target),_e(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Qt&&yt.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||os(this.parent.latestValues)||Sc(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 o;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===xe.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;_e(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;mg(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=de());const{target:y}=a;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Vo(this.prevProjectionDelta.x,this.projectionDelta.x),Vo(this.prevProjectionDelta.y,this.projectionDelta.y)),sn(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!Io(this.projectionDelta.x,this.prevProjectionDelta.x)||!Io(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),Qt&&yt.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Rt(),this.projectionDelta=Rt(),this.projectionDeltaWithTransform=Rt()}setAnimationOrigin(o,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=Rt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=de(),p=l?l.source:void 0,y=this.layout?this.layout.source:void 0,m=p!==y,x=this.getStack(),v=!x||x.members.length<=1,w=!!(m&&!v&&this.options.crossfade===!0&&!this.path.some(Qg));this.animationProgress=0;let A;this.mixTargetDelta=E=>{const S=E/1e3;Wo(d.x,o.x,S),Wo(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(on(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Jg(this.relativeTarget,this.relativeTargetOrigin,f,S),A&&Fg(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=de()),_e(A,this.relativeTarget)),m&&(this.animationValues=u,Ng(u,c,this.latestValues,S,w,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ut(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ie.update(()=>{zn.hasAnimatedSinceResize=!0,this.currentAnimation=Ag(0,Bo,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Bo),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&Rc(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||de();const d=Ce(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const f=Ce(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}_e(a,l),kt(a,u),sn(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Lg),this.sharedNodes.get(o).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 o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&kr("z",o,c,this.animationValues);for(let u=0;u<_r.length;u++)kr(`rotate${_r[u]}`,o,c,this.animationValues),kr(`skew${_r[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);o.scheduleRender()}getProjectionStyles(o){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Ig;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Bn(o==null?void 0:o.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=Bn(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!gt(this.latestValues)&&(m.transform=u?u({},""):"none",this.hasProjected=!1),m}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),c.transform=Og(this.projectionDeltaWithTransform,this.treeScale,f),u&&(c.transform=u(f,c.transform));const{x:p,y}=this.projectionDelta;c.transformOrigin=`${p.origin*100}% ${y.origin*100}% 0`,d.animationValues?c.opacity=d===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:c.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const m in fn){if(f[m]===void 0)continue;const{correct:x,applyTo:v,isCSSVariable:w}=fn[m],A=c.transform==="none"?f[m]:x(f[m],d);if(v){const E=v.length;for(let S=0;S<E;S++)c[v[S]]=A}else w?this.options.visualElement.renderState.vars[m]=A:c[m]=A}return this.options.layoutId&&(c.pointerEvents=d===this?Bn(o==null?void 0:o.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Uo),this.root.sharedNodes.clear()}}}function Ug(e){e.updateLayout()}function zg(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?ke(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],p=Ce(f);f.min=r[d].min,f.max=f.min+p}):Rc(i,n.layoutBox,r)&&ke(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],p=Ce(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=Rt();sn(a,r,n.layoutBox);const l=Rt();o?sn(l,e.applyTransform(s,!0),n.measuredBox):sn(l,r,n.layoutBox);const c=!jc(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const y=de();on(y,n.layoutBox,f.layoutBox);const m=de();on(m,r,p.layoutBox),Nc(y,m)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=y,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Wg(e){Qt&&yt.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function $g(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Gg(e){e.clearSnapshot()}function Uo(e){e.clearMeasurements()}function Kg(e){e.isLayoutDirty=!1}function Hg(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function zo(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function qg(e){e.resolveTargetDelta()}function Xg(e){e.calcProjection()}function Yg(e){e.resetSkewAndRotation()}function Zg(e){e.removeLeadSnapshot()}function Wo(e,t,n){e.translate=ae(t.translate,0,n),e.scale=ae(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function $o(e,t,n,r){e.min=ae(t.min,n.min,r),e.max=ae(t.max,n.max,r)}function Jg(e,t,n,r){$o(e.x,t.x,n.x,r),$o(e.y,t.y,n.y,r)}function Qg(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const ey={duration:.45,ease:[.4,0,.1,1]},Go=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ko=Go("applewebkit/")&&!Go("chrome/")?Math.round:Ve;function Ho(e){e.min=Ko(e.min),e.max=Ko(e.max)}function ty(e){Ho(e.x),Ho(e.y)}function Rc(e,t,n){return e==="position"||e==="preserve-aspect"&&!sg(Oo(t),Oo(n),.2)}function ny(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const ry=Mc({attachResizeListener:(e,t)=>pn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Fr={current:void 0},_c=Mc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Fr.current){const e=new ry({});e.mount(window),e.setOptions({layoutScroll:!0}),Fr.current=e}return Fr.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),sy={pan:{Feature:bg},drag:{Feature:xg,ProjectionNode:_c,MeasureLayout:Pc}};function iy(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;const i=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function kc(e,t){const n=iy(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function qo(e){return!(e.pointerType==="touch"||gc())}function oy(e,t,n={}){const[r,s,i]=kc(e,n),o=a=>{if(!qo(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const u=d=>{qo(d)&&(c(d),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,s)};return r.forEach(a=>{a.addEventListener("pointerenter",o,s)}),i}function Xo(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&ie.postRender(()=>i(t,Tn(t)))}class ay extends ft{mount(){const{current:t}=this.node;t&&(this.unmount=oy(t,(n,r)=>(Xo(this.node,r,"Start"),s=>Xo(this.node,s,"End"))))}unmount(){}}class ly extends ft{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Sn(pn(this.node.current,"focus",()=>this.onFocus()),pn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Fc=(e,t)=>t?e===t?!0:Fc(e,t.parentElement):!1,cy=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function uy(e){return cy.has(e.tagName)||e.tabIndex!==-1}const en=new WeakSet;function Yo(e){return t=>{t.key==="Enter"&&e(t)}}function Lr(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const dy=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Yo(()=>{if(en.has(n))return;Lr(n,"down");const s=Yo(()=>{Lr(n,"up")}),i=()=>Lr(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Zo(e){return ti(e)&&!gc()}function fy(e,t,n={}){const[r,s,i]=kc(e,n),o=a=>{const l=a.currentTarget;if(!Zo(a)||en.has(l))return;en.add(l);const c=t(l,a),u=(p,y)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!Zo(p)||!en.has(l))&&(en.delete(l),typeof c=="function"&&c(p,{success:y}))},d=p=>{u(p,n.useGlobalTarget||Fc(l,p.target))},f=p=>{u(p,!1)};window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",f,s)};return r.forEach(a=>{!uy(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),a.addEventListener("focus",c=>dy(c,s),s)}),i}function Jo(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&ie.postRender(()=>i(t,Tn(t)))}class hy extends ft{mount(){const{current:t}=this.node;t&&(this.unmount=fy(t,(n,r)=>(Jo(this.node,r,"Start"),(s,{success:i})=>Jo(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ls=new WeakMap,Or=new WeakMap,my=e=>{const t=ls.get(e.target);t&&t(e)},py=e=>{e.forEach(my)};function gy({root:e,...t}){const n=e||document;Or.has(n)||Or.set(n,{});const r=Or.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(py,{root:e,...t})),r[s]}function yy(e,t,n){const r=gy(t);return ls.set(e,n),r.observe(e),()=>{ls.delete(e),r.unobserve(e)}}const vy={some:0,all:1};class xy extends ft{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:vy[s]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return yy(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(by(t,n))&&this.startObserver()}unmount(){}}function by({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const wy={inView:{Feature:xy},tap:{Feature:hy},focus:{Feature:ly},hover:{Feature:ay}},Sy={layout:{ProjectionNode:_c,MeasureLayout:Pc}},cs={current:null},Lc={current:!1};function Ty(){if(Lc.current=!0,!!As)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>cs.current=e.matches;e.addListener(t),t()}else cs.current=!1}const Ay=[...sc,we,dt],Cy=e=>Ay.find(rc(e)),Qo=new WeakMap;function Py(e,t,n){for(const r in t){const s=t[r],i=n[r];if(Se(s))e.addValue(r,s);else if(Se(i))e.addValue(r,hn(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,hn(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ea=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ey{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Zs,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=Ye.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,ie.render(this.render,!1,!0))};const{latestValues:l,renderState:c,onUpdate:u}=o;this.onUpdate=u,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=cr(n),this.isVariantNode=yl(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const y=f[p];l[p]!==void 0&&Se(y)&&y.set(l[p],!1)}}mount(t){this.current=t,Qo.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Lc.current||Ty(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:cs.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Qo.delete(this.current),this.projection&&this.projection.unmount(),ut(this.notifyUpdate),ut(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Pt.has(t),s=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ie.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ot){const n=Ot[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):de()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<ea.length;r++){const s=ea[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=t[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=Py(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=hn(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(tc(s)||Kl(s))?s=parseFloat(s):!Cy(s)&&dt.test(n)&&(s=Jl(t,n)),this.setBaseTarget(t,Se(s)?s.get():s)),Se(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const o=Ns(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(s=o[t])}if(r&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Se(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new zs),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Oc extends Ey{constructor(){super(...arguments),this.KeyframeResolver=ic}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Se(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Dy(e){return window.getComputedStyle(e)}class jy extends Oc{constructor(){super(...arguments),this.type="html",this.renderInstance=Cl}readValueFromInstance(t,n){if(Pt.has(n)){const r=Ys(n);return r&&r.default||0}else{const r=Dy(t),s=(Vs(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ac(t,n)}build(t,n,r){_s(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Os(t,n,r)}}class Ny extends Oc{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=de}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Pt.has(n)){const r=Ys(n);return r&&r.default||0}return n=Pl.has(n)?n:Es(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return jl(t,n,r)}build(t,n,r){ks(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){El(t,n,r,s)}mount(t){this.isSVGTag=Ls(t.tagName),super.mount(t)}}const Vy=(e,t)=>js(e)?new Ny(t):new jy(t,{allowProjection:e!==g.Fragment}),My=sm({...qp,...wy,...sy,...Sy},Vy),Wn=xh(My);var Ir,ta;function Ry(){if(ta)return Ir;ta=1;var e="Expected a function",t=NaN,n="[object Symbol]",r=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,l=typeof Dn=="object"&&Dn&&Dn.Object===Object&&Dn,c=typeof self=="object"&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype,f=d.toString,p=Math.max,y=Math.min,m=function(){return u.Date.now()};function x(S,P,D){var j,k,F,U,N,O,z=0,q=!1,Y=!1,W=!0;if(typeof S!="function")throw new TypeError(e);P=E(P)||0,v(D)&&(q=!!D.leading,Y="maxWait"in D,F=Y?p(E(D.maxWait)||0,P):F,W="trailing"in D?!!D.trailing:W);function X(H){var Q=j,ye=k;return j=k=void 0,z=H,U=S.apply(ye,Q),U}function ee(H){return z=H,N=setTimeout(Pe,P),q?X(H):U}function me(H){var Q=H-O,ye=H-z,ve=P-Q;return Y?y(ve,F-ye):ve}function ne(H){var Q=H-O,ye=H-z;return O===void 0||Q>=P||Q<0||Y&&ye>=F}function Pe(){var H=m();if(ne(H))return Le(H);N=setTimeout(Pe,me(H))}function Le(H){return N=void 0,W&&j?X(H):(j=k=void 0,U)}function Ee(){N!==void 0&&clearTimeout(N),z=0,j=O=k=N=void 0}function Je(){return N===void 0?U:Le(m())}function Ne(){var H=m(),Q=ne(H);if(j=arguments,k=this,O=H,Q){if(N===void 0)return ee(O);if(Y)return N=setTimeout(Pe,P),X(O)}return N===void 0&&(N=setTimeout(Pe,P)),U}return Ne.cancel=Ee,Ne.flush=Je,Ne}function v(S){var P=typeof S;return!!S&&(P=="object"||P=="function")}function w(S){return!!S&&typeof S=="object"}function A(S){return typeof S=="symbol"||w(S)&&f.call(S)==n}function E(S){if(typeof S=="number")return S;if(A(S))return t;if(v(S)){var P=typeof S.valueOf=="function"?S.valueOf():S;S=v(P)?P+"":P}if(typeof S!="string")return S===0?S:+S;S=S.replace(r,"");var D=i.test(S);return D||o.test(S)?a(S.slice(2),D?2:8):s.test(S)?t:+S}return Ir=x,Ir}Ry();var _y=typeof window<"u"?g.useLayoutEffect:g.useEffect,ky=typeof window>"u";function us(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const r=a=>ky?t:window.matchMedia(a).matches,[s,i]=g.useState(()=>n?r(e):t);function o(){i(r(e))}return _y(()=>{const a=window.matchMedia(e);return o(),a.addListener?a.addListener(o):a.addEventListener("change",o),()=>{a.removeListener?a.removeListener(o):a.removeEventListener("change",o)}},[e]),s}const Jv=({className:e,stage:t})=>{const n=us("(min-width: 768px");return h.jsx("div",{className:e,children:h.jsx("div",{className:"max-w-[808px] md:mx-auto my-20 mx-5",children:h.jsxs("div",{className:"relative h-14 w-full",children:[h.jsx("div",{className:$("h-2 absolute bg-[#D0D3D8] rounded-[2px] w-full top-0 left-0")}),h.jsx(Wn.div,{initial:{width:0},animate:t===2?{width:"20%"}:t===3&&{width:"75%"},transition:{delay:.5,duration:.5},className:$("h-2 absolute bg-primary rounded-[2px] top-0 left-0 z-[5]",{"w-0 bg-opacity-0":t===1,"w-[20%]":t===2,"w-[75%]":t===3})}),h.jsx(Wn.div,{initial:{width:n?"50%":"35%"},animate:t===2?{width:"75%"}:t===3&&{width:"100%"},className:$("bg-reverse_primary w-1/2 absolute top-0 left-0 rounded-[2px] z-[3] h-2")}),h.jsx(Wn.div,{className:$("progress-circle absolute transition-all duration-500 -top-6 flex items-center justify-center",{"bg-reverse_primary md:left-1/2 left-1/3":t===1,"bg-primary left-[20%] !text-on_primary":t===2||t===3}),children:"1"}),h.jsx("div",{className:$("progress-circle absolute -top-6 right-[17%] transition-all -translate-x-1/2 flex items-center justify-center",{"bg-[#D0D3D8]":t===1,"bg-reverse_primary":t===2,"bg-primary !text-on_primary":t===3}),children:"2"}),h.jsx("div",{className:$("progress-circle absolute -top-6 right-0 transition-all duration-500 flex items-center justify-center",{"bg-[#D0D3D8]":t===1||t===2,"bg-reverse_primary":t===3}),children:"3"})]})})})};var An=e=>e.type==="checkbox",xt=e=>e instanceof Date,Te=e=>e==null;const Ic=e=>typeof e=="object";var he=e=>!Te(e)&&!Array.isArray(e)&&Ic(e)&&!xt(e),Bc=e=>he(e)&&e.target?An(e.target)?e.target.checked:e.target.value:e,Fy=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Uc=(e,t)=>e.has(Fy(t)),Ly=e=>{const t=e.constructor&&e.constructor.prototype;return he(t)&&t.hasOwnProperty("isPrototypeOf")},ni=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function De(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(ni&&(e instanceof Blob||r))&&(n||he(e)))if(t=n?[]:{},!n&&!Ly(e))t=e;else for(const s in e)e.hasOwnProperty(s)&&(t[s]=De(e[s]));else return e;return t}var fr=e=>Array.isArray(e)?e.filter(Boolean):[],fe=e=>e===void 0,_=(e,t,n)=>{if(!t||!he(e))return n;const r=fr(t.split(/[,[\].]+?/)).reduce((s,i)=>Te(s)?s:s[i],e);return fe(r)||r===e?fe(e[t])?n:e[t]:r},Fe=e=>typeof e=="boolean",ri=e=>/^\w*$/.test(e),zc=e=>fr(e.replace(/["|']|\]/g,"").split(/\.|\[/)),te=(e,t,n)=>{let r=-1;const s=ri(t)?[t]:zc(t),i=s.length,o=i-1;for(;++r<i;){const a=s[r];let l=n;if(r!==o){const c=e[a];l=he(c)||Array.isArray(c)?c:isNaN(+s[r+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;e[a]=l,e=e[a]}return e};const Qn={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Be={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},et={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Wc=J.createContext(null),hr=()=>J.useContext(Wc),Oy=e=>{const{children:t,...n}=e;return J.createElement(Wc.Provider,{value:n},t)};var $c=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const o=i;return t._proxyFormState[o]!==Be.all&&(t._proxyFormState[o]=!r||Be.all),n&&(n[o]=!0),e[o]}});return s},je=e=>he(e)&&!Object.keys(e).length,Gc=(e,t,n,r)=>{n(e);const{name:s,...i}=e;return je(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!r||Be.all))},an=e=>Array.isArray(e)?e:[e],Kc=(e,t,n)=>!e||!t||e===t||an(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function si(e){const t=J.useRef(e);t.current=e,J.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function Iy(e){const t=hr(),{control:n=t.control,disabled:r,name:s,exact:i}=e,[o,a]=J.useState(n._formState),l=J.useRef(!0),c=J.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=J.useRef(s);return u.current=s,si({disabled:r,next:d=>l.current&&Kc(u.current,d.name,i)&&Gc(d,c.current,n._updateFormState)&&a({...n._formState,...d}),subject:n._subjects.state}),J.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),J.useMemo(()=>$c(o,n,c.current,!1),[o,n])}var qe=e=>typeof e=="string",Hc=(e,t,n,r,s)=>qe(e)?(r&&t.watch.add(e),_(n,e,s)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),_(n,i))):(r&&(t.watchAll=!0),n);function By(e){const t=hr(),{control:n=t.control,name:r,defaultValue:s,disabled:i,exact:o}=e,a=J.useRef(r);a.current=r,si({disabled:i,subject:n._subjects.values,next:u=>{Kc(a.current,u.name,o)&&c(De(Hc(a.current,n._names,u.values||n._formValues,!1,s)))}});const[l,c]=J.useState(n._getWatch(r,s));return J.useEffect(()=>n._removeUnmounted()),l}function Uy(e){const t=hr(),{name:n,disabled:r,control:s=t.control,shouldUnregister:i}=e,o=Uc(s._names.array,n),a=By({control:s,name:n,defaultValue:_(s._formValues,n,_(s._defaultValues,n,e.defaultValue)),exact:!0}),l=Iy({control:s,name:n,exact:!0}),c=J.useRef(s.register(n,{...e.rules,value:a,...Fe(e.disabled)?{disabled:e.disabled}:{}})),u=J.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!_(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!_(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!_(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!_(l.validatingFields,n)},error:{enumerable:!0,get:()=>_(l.errors,n)}}),[l,n]),d=J.useMemo(()=>({name:n,value:a,...Fe(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:f=>c.current.onChange({target:{value:Bc(f),name:n},type:Qn.CHANGE}),onBlur:()=>c.current.onBlur({target:{value:_(s._formValues,n),name:n},type:Qn.BLUR}),ref:f=>{const p=_(s._fields,n);p&&f&&(p._f.ref={focus:()=>f.focus(),select:()=>f.select(),setCustomValidity:y=>f.setCustomValidity(y),reportValidity:()=>f.reportValidity()})}}),[n,s._formValues,r,l.disabled,a,s._fields]);return J.useEffect(()=>{const f=s._options.shouldUnregister||i,p=(y,m)=>{const x=_(s._fields,y);x&&x._f&&(x._f.mount=m)};if(p(n,!0),f){const y=De(_(s._options.defaultValues,n));te(s._defaultValues,n,y),fe(_(s._formValues,n))&&te(s._formValues,n,y)}return!o&&s.register(n),()=>{(o?f&&!s._state.action:f)?s.unregister(n):p(n,!1)}},[n,s,o,i]),J.useEffect(()=>{s._updateDisabledField({disabled:r,fields:s._fields,name:n})},[r,n,s]),J.useMemo(()=>({field:d,formState:l,fieldState:u}),[d,l,u])}const zy=e=>e.render(Uy(e));var Wy=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},na=e=>({isOnSubmit:!e||e===Be.onSubmit,isOnBlur:e===Be.onBlur,isOnChange:e===Be.onChange,isOnAll:e===Be.all,isOnTouch:e===Be.onTouched}),ra=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const ln=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const i=_(e,s);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],s)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(ln(a,t))break}else if(he(a)&&ln(a,t))break}}};var $y=(e,t,n)=>{const r=an(_(e,n));return te(r,"root",t[n]),te(e,n,r),e},ii=e=>e.type==="file",He=e=>typeof e=="function",er=e=>{if(!ni)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},$n=e=>qe(e),oi=e=>e.type==="radio",tr=e=>e instanceof RegExp;const sa={value:!1,isValid:!1},ia={value:!0,isValid:!0};var qc=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!fe(e[0].attributes.value)?fe(e[0].value)||e[0].value===""?ia:{value:e[0].value,isValid:!0}:ia:sa}return sa};const oa={isValid:!1,value:null};var Xc=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,oa):oa;function aa(e,t,n="validate"){if($n(e)||Array.isArray(e)&&e.every($n)||Fe(e)&&!e)return{type:n,message:$n(e)?e:"",ref:t}}var Nt=e=>he(e)&&!tr(e)?e:{value:e,message:""},la=async(e,t,n,r,s,i)=>{const{ref:o,refs:a,required:l,maxLength:c,minLength:u,min:d,max:f,pattern:p,validate:y,name:m,valueAsNumber:x,mount:v}=e._f,w=_(n,m);if(!v||t.has(m))return{};const A=a?a[0]:o,E=N=>{s&&A.reportValidity&&(A.setCustomValidity(Fe(N)?"":N||""),A.reportValidity())},S={},P=oi(o),D=An(o),j=P||D,k=(x||ii(o))&&fe(o.value)&&fe(w)||er(o)&&o.value===""||w===""||Array.isArray(w)&&!w.length,F=Wy.bind(null,m,r,S),U=(N,O,z,q=et.maxLength,Y=et.minLength)=>{const W=N?O:z;S[m]={type:N?q:Y,message:W,ref:o,...F(N?q:Y,W)}};if(i?!Array.isArray(w)||!w.length:l&&(!j&&(k||Te(w))||Fe(w)&&!w||D&&!qc(a).isValid||P&&!Xc(a).isValid)){const{value:N,message:O}=$n(l)?{value:!!l,message:l}:Nt(l);if(N&&(S[m]={type:et.required,message:O,ref:A,...F(et.required,O)},!r))return E(O),S}if(!k&&(!Te(d)||!Te(f))){let N,O;const z=Nt(f),q=Nt(d);if(!Te(w)&&!isNaN(w)){const Y=o.valueAsNumber||w&&+w;Te(z.value)||(N=Y>z.value),Te(q.value)||(O=Y<q.value)}else{const Y=o.valueAsDate||new Date(w),W=me=>new Date(new Date().toDateString()+" "+me),X=o.type=="time",ee=o.type=="week";qe(z.value)&&w&&(N=X?W(w)>W(z.value):ee?w>z.value:Y>new Date(z.value)),qe(q.value)&&w&&(O=X?W(w)<W(q.value):ee?w<q.value:Y<new Date(q.value))}if((N||O)&&(U(!!N,z.message,q.message,et.max,et.min),!r))return E(S[m].message),S}if((c||u)&&!k&&(qe(w)||i&&Array.isArray(w))){const N=Nt(c),O=Nt(u),z=!Te(N.value)&&w.length>+N.value,q=!Te(O.value)&&w.length<+O.value;if((z||q)&&(U(z,N.message,O.message),!r))return E(S[m].message),S}if(p&&!k&&qe(w)){const{value:N,message:O}=Nt(p);if(tr(N)&&!w.match(N)&&(S[m]={type:et.pattern,message:O,ref:o,...F(et.pattern,O)},!r))return E(O),S}if(y){if(He(y)){const N=await y(w,n),O=aa(N,A);if(O&&(S[m]={...O,...F(et.validate,O.message)},!r))return E(O.message),S}else if(he(y)){let N={};for(const O in y){if(!je(N)&&!r)break;const z=aa(await y[O](w,n),A,O);z&&(N={...z,...F(O,z.message)},E(z.message),r&&(S[m]=N))}if(!je(N)&&(S[m]={ref:A,...N},!r))return S}}return E(!0),S};function Gy(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=fe(e)?r++:e[t[r++]];return e}function Ky(e){for(const t in e)if(e.hasOwnProperty(t)&&!fe(e[t]))return!1;return!0}function ge(e,t){const n=Array.isArray(t)?t:ri(t)?[t]:zc(t),r=n.length===1?e:Gy(e,n),s=n.length-1,i=n[s];return r&&delete r[i],s!==0&&(he(r)&&je(r)||Array.isArray(r)&&Ky(r))&&ge(e,n.slice(0,-1)),e}var Br=()=>{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}},ds=e=>Te(e)||!Ic(e);function lt(e,t){if(ds(e)||ds(t))return e===t;if(xt(e)&&xt(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const s of n){const i=e[s];if(!r.includes(s))return!1;if(s!=="ref"){const o=t[s];if(xt(i)&&xt(o)||he(i)&&he(o)||Array.isArray(i)&&Array.isArray(o)?!lt(i,o):i!==o)return!1}}return!0}var Yc=e=>e.type==="select-multiple",Hy=e=>oi(e)||An(e),Ur=e=>er(e)&&e.isConnected,Zc=e=>{for(const t in e)if(He(e[t]))return!0;return!1};function nr(e,t={}){const n=Array.isArray(e);if(he(e)||n)for(const r in e)Array.isArray(e[r])||he(e[r])&&!Zc(e[r])?(t[r]=Array.isArray(e[r])?[]:{},nr(e[r],t[r])):Te(e[r])||(t[r]=!0);return t}function Jc(e,t,n){const r=Array.isArray(e);if(he(e)||r)for(const s in e)Array.isArray(e[s])||he(e[s])&&!Zc(e[s])?fe(t)||ds(n[s])?n[s]=Array.isArray(e[s])?nr(e[s],[]):{...nr(e[s])}:Jc(e[s],Te(t)?{}:t[s],n[s]):n[s]=!lt(e[s],t[s]);return n}var Yt=(e,t)=>Jc(e,t,nr(t)),Qc=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>fe(e)?e:t?e===""?NaN:e&&+e:n&&qe(e)?new Date(e):r?r(e):e;function zr(e){const t=e.ref;return ii(t)?t.files:oi(t)?Xc(e.refs).value:Yc(t)?[...t.selectedOptions].map(({value:n})=>n):An(t)?qc(e.refs).value:Qc(fe(t.value)?e.ref.value:t.value,e)}var qy=(e,t,n,r)=>{const s={};for(const i of e){const o=_(t,i);o&&te(s,i,o._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},Zt=e=>fe(e)?e:tr(e)?e.source:he(e)?tr(e.value)?e.value.source:e.value:e;const ca="AsyncFunction";var Xy=e=>!!e&&!!e.validate&&!!(He(e.validate)&&e.validate.constructor.name===ca||he(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===ca)),Yy=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ua(e,t,n){const r=_(e,n);if(r||ri(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const i=s.join("."),o=_(t,i),a=_(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};s.pop()}return{name:n}}var Zy=(e,t,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(t||e):(n?r.isOnBlur:s.isOnBlur)?!e:(n?r.isOnChange:s.isOnChange)?e:!0,Jy=(e,t)=>!fr(_(e,t)).length&&ge(e,t);const Qy={mode:Be.onSubmit,reValidateMode:Be.onChange,shouldFocusError:!0};function ev(e={}){let t={...Qy,...e},n={submitCount:0,isDirty:!1,isLoading:He(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},s=he(t.defaultValues)||he(t.values)?De(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:De(s),o={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:Br(),array:Br(),state:Br()},f=na(t.mode),p=na(t.reValidateMode),y=t.criteriaMode===Be.all,m=b=>T=>{clearTimeout(c),c=setTimeout(b,T)},x=async b=>{if(!t.disabled&&(u.isValid||b)){const T=t.resolver?je((await j()).errors):await F(r,!0);T!==n.isValid&&d.state.next({isValid:T})}},v=(b,T)=>{!t.disabled&&(u.isValidating||u.validatingFields)&&((b||Array.from(a.mount)).forEach(C=>{C&&(T?te(n.validatingFields,C,T):ge(n.validatingFields,C))}),d.state.next({validatingFields:n.validatingFields,isValidating:!je(n.validatingFields)}))},w=(b,T=[],C,R,M=!0,V=!0)=>{if(R&&C&&!t.disabled){if(o.action=!0,V&&Array.isArray(_(r,b))){const I=C(_(r,b),R.argA,R.argB);M&&te(r,b,I)}if(V&&Array.isArray(_(n.errors,b))){const I=C(_(n.errors,b),R.argA,R.argB);M&&te(n.errors,b,I),Jy(n.errors,b)}if(u.touchedFields&&V&&Array.isArray(_(n.touchedFields,b))){const I=C(_(n.touchedFields,b),R.argA,R.argB);M&&te(n.touchedFields,b,I)}u.dirtyFields&&(n.dirtyFields=Yt(s,i)),d.state.next({name:b,isDirty:N(b,T),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else te(i,b,T)},A=(b,T)=>{te(n.errors,b,T),d.state.next({errors:n.errors})},E=b=>{n.errors=b,d.state.next({errors:n.errors,isValid:!1})},S=(b,T,C,R)=>{const M=_(r,b);if(M){const V=_(i,b,fe(C)?_(s,b):C);fe(V)||R&&R.defaultChecked||T?te(i,b,T?V:zr(M._f)):q(b,V),o.mount&&x()}},P=(b,T,C,R,M)=>{let V=!1,I=!1;const G={name:b};if(!t.disabled){const pe=!!(_(r,b)&&_(r,b)._f&&_(r,b)._f.disabled);if(!C||R){u.isDirty&&(I=n.isDirty,n.isDirty=G.isDirty=N(),V=I!==G.isDirty);const ue=pe||lt(_(s,b),T);I=!!(!pe&&_(n.dirtyFields,b)),ue||pe?ge(n.dirtyFields,b):te(n.dirtyFields,b,!0),G.dirtyFields=n.dirtyFields,V=V||u.dirtyFields&&I!==!ue}if(C){const ue=_(n.touchedFields,b);ue||(te(n.touchedFields,b,C),G.touchedFields=n.touchedFields,V=V||u.touchedFields&&ue!==C)}V&&M&&d.state.next(G)}return V?G:{}},D=(b,T,C,R)=>{const M=_(n.errors,b),V=u.isValid&&Fe(T)&&n.isValid!==T;if(t.delayError&&C?(l=m(()=>A(b,C)),l(t.delayError)):(clearTimeout(c),l=null,C?te(n.errors,b,C):ge(n.errors,b)),(C?!lt(M,C):M)||!je(R)||V){const I={...R,...V&&Fe(T)?{isValid:T}:{},errors:n.errors,name:b};n={...n,...I},d.state.next(I)}},j=async b=>{v(b,!0);const T=await t.resolver(i,t.context,qy(b||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return v(b),T},k=async b=>{const{errors:T}=await j(b);if(b)for(const C of b){const R=_(T,C);R?te(n.errors,C,R):ge(n.errors,C)}else n.errors=T;return T},F=async(b,T,C={valid:!0})=>{for(const R in b){const M=b[R];if(M){const{_f:V,...I}=M;if(V){const G=a.array.has(V.name),pe=M._f&&Xy(M._f);pe&&u.validatingFields&&v([R],!0);const ue=await la(M,a.disabled,i,y,t.shouldUseNativeValidation&&!T,G);if(pe&&u.validatingFields&&v([R]),ue[V.name]&&(C.valid=!1,T))break;!T&&(_(ue,V.name)?G?$y(n.errors,ue,V.name):te(n.errors,V.name,ue[V.name]):ge(n.errors,V.name))}!je(I)&&await F(I,T,C)}}return C.valid},U=()=>{for(const b of a.unMount){const T=_(r,b);T&&(T._f.refs?T._f.refs.every(C=>!Ur(C)):!Ur(T._f.ref))&&Ne(b)}a.unMount=new Set},N=(b,T)=>!t.disabled&&(b&&T&&te(i,b,T),!lt(ne(),s)),O=(b,T,C)=>Hc(b,a,{...o.mount?i:fe(T)?s:qe(b)?{[b]:T}:T},C,T),z=b=>fr(_(o.mount?i:s,b,t.shouldUnregister?_(s,b,[]):[])),q=(b,T,C={})=>{const R=_(r,b);let M=T;if(R){const V=R._f;V&&(!V.disabled&&te(i,b,Qc(T,V)),M=er(V.ref)&&Te(T)?"":T,Yc(V.ref)?[...V.ref.options].forEach(I=>I.selected=M.includes(I.value)):V.refs?An(V.ref)?V.refs.length>1?V.refs.forEach(I=>(!I.defaultChecked||!I.disabled)&&(I.checked=Array.isArray(M)?!!M.find(G=>G===I.value):M===I.value)):V.refs[0]&&(V.refs[0].checked=!!M):V.refs.forEach(I=>I.checked=I.value===M):ii(V.ref)?V.ref.value="":(V.ref.value=M,V.ref.type||d.values.next({name:b,values:{...i}})))}(C.shouldDirty||C.shouldTouch)&&P(b,M,C.shouldTouch,C.shouldDirty,!0),C.shouldValidate&&me(b)},Y=(b,T,C)=>{for(const R in T){const M=T[R],V=`${b}.${R}`,I=_(r,V);(a.array.has(b)||he(M)||I&&!I._f)&&!xt(M)?Y(V,M,C):q(V,M,C)}},W=(b,T,C={})=>{const R=_(r,b),M=a.array.has(b),V=De(T);te(i,b,V),M?(d.array.next({name:b,values:{...i}}),(u.isDirty||u.dirtyFields)&&C.shouldDirty&&d.state.next({name:b,dirtyFields:Yt(s,i),isDirty:N(b,V)})):R&&!R._f&&!Te(V)?Y(b,V,C):q(b,V,C),ra(b,a)&&d.state.next({...n}),d.values.next({name:o.mount?b:void 0,values:{...i}})},X=async b=>{o.mount=!0;const T=b.target;let C=T.name,R=!0;const M=_(r,C),V=()=>T.type?zr(M._f):Bc(b),I=G=>{R=Number.isNaN(G)||xt(G)&&isNaN(G.getTime())||lt(G,_(i,C,G))};if(M){let G,pe;const ue=V(),$e=b.type===Qn.BLUR||b.type===Qn.FOCUS_OUT,$t=!Yy(M._f)&&!t.resolver&&!_(n.errors,C)&&!M._f.deps||Zy($e,_(n.touchedFields,C),n.isSubmitted,p,f),Ge=ra(C,a,$e);te(i,C,ue),$e?(M._f.onBlur&&M._f.onBlur(b),l&&l(0)):M._f.onChange&&M._f.onChange(b);const ht=P(C,ue,$e,!1),Gt=!je(ht)||Ge;if(!$e&&d.values.next({name:C,type:b.type,values:{...i}}),$t)return u.isValid&&(t.mode==="onBlur"&&$e?x():$e||x()),Gt&&d.state.next({name:C,...Ge?{}:ht});if(!$e&&Ge&&d.state.next({...n}),t.resolver){const{errors:mt}=await j([C]);if(I(ue),R){const gr=ua(n.errors,r,C),En=ua(mt,r,gr.name||C);G=En.error,C=En.name,pe=je(mt)}}else v([C],!0),G=(await la(M,a.disabled,i,y,t.shouldUseNativeValidation))[C],v([C]),I(ue),R&&(G?pe=!1:u.isValid&&(pe=await F(r,!0)));R&&(M._f.deps&&me(M._f.deps),D(C,pe,G,ht))}},ee=(b,T)=>{if(_(n.errors,T)&&b.focus)return b.focus(),1},me=async(b,T={})=>{let C,R;const M=an(b);if(t.resolver){const V=await k(fe(b)?b:M);C=je(V),R=b?!M.some(I=>_(V,I)):C}else b?(R=(await Promise.all(M.map(async V=>{const I=_(r,V);return await F(I&&I._f?{[V]:I}:I)}))).every(Boolean),!(!R&&!n.isValid)&&x()):R=C=await F(r);return d.state.next({...!qe(b)||u.isValid&&C!==n.isValid?{}:{name:b},...t.resolver||!b?{isValid:C}:{},errors:n.errors}),T.shouldFocus&&!R&&ln(r,ee,b?M:a.mount),R},ne=b=>{const T={...o.mount?i:s};return fe(b)?T:qe(b)?_(T,b):b.map(C=>_(T,C))},Pe=(b,T)=>({invalid:!!_((T||n).errors,b),isDirty:!!_((T||n).dirtyFields,b),error:_((T||n).errors,b),isValidating:!!_(n.validatingFields,b),isTouched:!!_((T||n).touchedFields,b)}),Le=b=>{b&&an(b).forEach(T=>ge(n.errors,T)),d.state.next({errors:b?n.errors:{}})},Ee=(b,T,C)=>{const R=(_(r,b,{_f:{}})._f||{}).ref,M=_(n.errors,b)||{},{ref:V,message:I,type:G,...pe}=M;te(n.errors,b,{...pe,...T,ref:R}),d.state.next({name:b,errors:n.errors,isValid:!1}),C&&C.shouldFocus&&R&&R.focus&&R.focus()},Je=(b,T)=>He(b)?d.values.subscribe({next:C=>b(O(void 0,T),C)}):O(b,T,!0),Ne=(b,T={})=>{for(const C of b?an(b):a.mount)a.mount.delete(C),a.array.delete(C),T.keepValue||(ge(r,C),ge(i,C)),!T.keepError&&ge(n.errors,C),!T.keepDirty&&ge(n.dirtyFields,C),!T.keepTouched&&ge(n.touchedFields,C),!T.keepIsValidating&&ge(n.validatingFields,C),!t.shouldUnregister&&!T.keepDefaultValue&&ge(s,C);d.values.next({values:{...i}}),d.state.next({...n,...T.keepDirty?{isDirty:N()}:{}}),!T.keepIsValid&&x()},H=({disabled:b,name:T,field:C,fields:R})=>{(Fe(b)&&o.mount||b||a.disabled.has(T))&&(b?a.disabled.add(T):a.disabled.delete(T),P(T,zr(C?C._f:_(R,T)._f),!1,!1,!0))},Q=(b,T={})=>{let C=_(r,b);const R=Fe(T.disabled)||Fe(t.disabled);return te(r,b,{...C||{},_f:{...C&&C._f?C._f:{ref:{name:b}},name:b,mount:!0,...T}}),a.mount.add(b),C?H({field:C,disabled:Fe(T.disabled)?T.disabled:t.disabled,name:b}):S(b,!0,T.value),{...R?{disabled:T.disabled||t.disabled}:{},...t.progressive?{required:!!T.required,min:Zt(T.min),max:Zt(T.max),minLength:Zt(T.minLength),maxLength:Zt(T.maxLength),pattern:Zt(T.pattern)}:{},name:b,onChange:X,onBlur:X,ref:M=>{if(M){Q(b,T),C=_(r,b);const V=fe(M.value)&&M.querySelectorAll&&M.querySelectorAll("input,select,textarea")[0]||M,I=Hy(V),G=C._f.refs||[];if(I?G.find(pe=>pe===V):V===C._f.ref)return;te(r,b,{_f:{...C._f,...I?{refs:[...G.filter(Ur),V,...Array.isArray(_(s,b))?[{}]:[]],ref:{type:V.type,name:b}}:{ref:V}}}),S(b,!1,void 0,V)}else C=_(r,b,{}),C._f&&(C._f.mount=!1),(t.shouldUnregister||T.shouldUnregister)&&!(Uc(a.array,b)&&o.action)&&a.unMount.add(b)}}},ye=()=>t.shouldFocusError&&ln(r,ee,a.mount),ve=b=>{Fe(b)&&(d.state.next({disabled:b}),ln(r,(T,C)=>{const R=_(r,C);R&&(T.disabled=R._f.disabled||b,Array.isArray(R._f.refs)&&R._f.refs.forEach(M=>{M.disabled=R._f.disabled||b}))},0,!1))},re=(b,T)=>async C=>{let R;C&&(C.preventDefault&&C.preventDefault(),C.persist&&C.persist());let M=De(i);if(a.disabled.size)for(const V of a.disabled)te(M,V,void 0);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:V,values:I}=await j();n.errors=V,M=I}else await F(r);if(ge(n.errors,"root"),je(n.errors)){d.state.next({errors:{}});try{await b(M,C)}catch(V){R=V}}else T&&await T({...n.errors},C),ye(),setTimeout(ye);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:je(n.errors)&&!R,submitCount:n.submitCount+1,errors:n.errors}),R)throw R},L=(b,T={})=>{_(r,b)&&(fe(T.defaultValue)?W(b,De(_(s,b))):(W(b,T.defaultValue),te(s,b,De(T.defaultValue))),T.keepTouched||ge(n.touchedFields,b),T.keepDirty||(ge(n.dirtyFields,b),n.isDirty=T.defaultValue?N(b,De(_(s,b))):N()),T.keepError||(ge(n.errors,b),u.isValid&&x()),d.state.next({...n}))},Z=(b,T={})=>{const C=b?De(b):s,R=De(C),M=je(b),V=M?s:R;if(T.keepDefaultValues||(s=C),!T.keepValues){if(T.keepDirtyValues){const I=new Set([...a.mount,...Object.keys(Yt(s,i))]);for(const G of Array.from(I))_(n.dirtyFields,G)?te(V,G,_(i,G)):W(G,_(V,G))}else{if(ni&&fe(b))for(const I of a.mount){const G=_(r,I);if(G&&G._f){const pe=Array.isArray(G._f.refs)?G._f.refs[0]:G._f.ref;if(er(pe)){const ue=pe.closest("form");if(ue){ue.reset();break}}}}r={}}i=t.shouldUnregister?T.keepDefaultValues?De(s):{}:De(V),d.array.next({values:{...V}}),d.values.next({values:{...V}})}a={mount:T.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!T.keepIsValid||!!T.keepDirtyValues,o.watch=!!t.shouldUnregister,d.state.next({submitCount:T.keepSubmitCount?n.submitCount:0,isDirty:M?!1:T.keepDirty?n.isDirty:!!(T.keepDefaultValues&&!lt(b,s)),isSubmitted:T.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:M?{}:T.keepDirtyValues?T.keepDefaultValues&&i?Yt(s,i):n.dirtyFields:T.keepDefaultValues&&b?Yt(s,b):T.keepDirty?n.dirtyFields:{},touchedFields:T.keepTouched?n.touchedFields:{},errors:T.keepErrors?n.errors:{},isSubmitSuccessful:T.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},oe=(b,T)=>Z(He(b)?b(i):b,T);return{control:{register:Q,unregister:Ne,getFieldState:Pe,handleSubmit:re,setError:Ee,_executeSchema:j,_getWatch:O,_getDirty:N,_updateValid:x,_removeUnmounted:U,_updateFieldArray:w,_updateDisabledField:H,_getFieldArray:z,_reset:Z,_resetDefaultValues:()=>He(t.defaultValues)&&t.defaultValues().then(b=>{oe(b,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:b=>{n={...n,...b}},_disableForm:ve,_subjects:d,_proxyFormState:u,_setErrors:E,get _fields(){return r},get _formValues(){return i},get _state(){return o},set _state(b){o=b},get _defaultValues(){return s},get _names(){return a},set _names(b){a=b},get _formState(){return n},set _formState(b){n=b},get _options(){return t},set _options(b){t={...t,...b}}},trigger:me,register:Q,handleSubmit:re,watch:Je,setValue:W,getValues:ne,reset:oe,resetField:L,clearErrors:Le,unregister:Ne,setError:Ee,setFocus:(b,T={})=>{const C=_(r,b),R=C&&C._f;if(R){const M=R.refs?R.refs[0]:R.ref;M.focus&&(M.focus(),T.shouldSelect&&He(M.select)&&M.select())}},getFieldState:Pe}}function Qv(e={}){const t=J.useRef(void 0),n=J.useRef(void 0),[r,s]=J.useState({isDirty:!1,isValidating:!1,isLoading:He(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:He(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...ev(e),formState:r});const i=t.current.control;return i._options=e,si({subject:i._subjects.state,next:o=>{Gc(o,i._proxyFormState,i._updateFormState,!0)&&s({...i._formState})}}),J.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),J.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==r.isDirty&&i._subjects.state.next({isDirty:o})}},[i,r.isDirty]),J.useEffect(()=>{e.values&&!lt(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,s(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),J.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),J.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),J.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=$c(r,i),t.current}var tv="Label",eu=g.forwardRef((e,t)=>h.jsx(Ze.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));eu.displayName=tv;var tu=eu;const nv=xs("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),nu=g.forwardRef(({className:e,...t},n)=>h.jsx(tu,{ref:n,className:$(nv(),e),...t}));nu.displayName=tu.displayName;const ex=Oy,ru=g.createContext({}),rv=({...e})=>h.jsx(ru.Provider,{value:{name:e.name},children:h.jsx(zy,{...e})}),mr=()=>{const e=g.useContext(ru),t=g.useContext(su),{getFieldState:n,formState:r}=hr(),s=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...s}},su=g.createContext({}),iu=g.forwardRef(({className:e,...t},n)=>{const r=g.useId();return h.jsx(su.Provider,{value:{id:r},children:h.jsx("div",{ref:n,className:$("space-y-2",e),...t})})});iu.displayName="FormItem";const ou=g.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:s}=mr();return h.jsx(nu,{ref:n,className:$(r&&"text-destructive",e),htmlFor:s,...t})});ou.displayName="FormLabel";const au=g.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:s,formMessageId:i}=mr();return h.jsx(xn,{ref:t,id:r,"aria-describedby":n?`${s} ${i}`:`${s}`,"aria-invalid":!!n,...e})});au.displayName="FormControl";const sv=g.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=mr();return h.jsx("p",{ref:n,id:r,className:$("text-[0.8rem] text-muted-foreground",e),...t})});sv.displayName="FormDescription";const lu=g.forwardRef(({className:e,children:t,...n},r)=>{const{error:s,formMessageId:i}=mr(),o=s?String(s==null?void 0:s.message):t;return o?h.jsx("p",{ref:r,id:i,className:$("text-[0.8rem] font-medium text-destructive",e),...n,children:o}):null});lu.displayName="FormMessage";const fs=g.forwardRef(({className:e,type:t,...n},r)=>t!=="file"?h.jsx("input",{type:t,className:$("flex h-14 rounded-[2px] border p-4 focus:border-[3px] focus:outline-none focus:border-primary transition-all hover:border-on_surface border-outline bg-transparent text-base w-regular file:border-0 file:bg-secondary_container file:outline-none file:text-sm file:w-fit file:text-on_secondary_container file:font-medium placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}):h.jsxs("div",{className:"relative w-[160px] h-9 overflow-hidden !cursor-pointer",children:[h.jsx("input",{ref:r,accept:".pdf, .png, .jpeg, .jpg",type:t,className:$("h-9 absolute top-0 left-0 !cursor-pointer opacity-0 z-20 size-full"),...n}),h.jsxs("div",{className:"absolute rounded-[2px] cursor-pointer size-full flex items-center gap-4 px-3 py-2.5 top-0 left-0 bg-secondary_container",children:[h.jsx(yf,{className:"cursor-pointer",size:16})," Upload file"]})]}));fs.displayName="Input";const cu=g.forwardRef(({className:e,...t},n)=>h.jsx("textarea",{className:$("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));cu.displayName="Textarea";const tx=({control:e,name:t,label:n,placeholder:r,error:s,type:i="text",className:o,disabled:a,textArea:l=!1,textDark:c,supporText:u,handleChange:d,onPrimary:f=!1})=>h.jsx(rv,{control:e,name:t,render:({field:p})=>h.jsxs(iu,{className:$(o,"flex flex-col w-full relative"),children:[h.jsx(ou,{className:$("text-xl",f&&"!text-on_primary",c?"text-on_surface":"text-on_surface_v"),children:n}),h.jsx(au,{children:h.jsx(h.Fragment,{children:l?h.jsx(cu,{rows:3,...p,placeholder:r,className:$(s&&"border-[#BA1A1A]",f&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):i!=="file"?h.jsx(fs,{...p,type:i,placeholder:r,disabled:a,className:$(s&&"border-[#BA1A1A]",f&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):h.jsxs("div",{className:"relative",children:[h.jsx(fs,{type:"file",placeholder:r,onChange:y=>{var x;const m=((x=y.target.files)==null?void 0:x[0])||null;console.log("Выбранный файл:",m),p.onChange(m),d&&d(y)},disabled:a}),p.value&&h.jsxs("div",{className:"text-sm mt-2 text-gray-500 absolute top-8",children:["Выбранный файл: ",p.value.name]})]})})}),h.jsx(lu,{className:$("absolute -bottom-5 left-0 text-sm font-medium leading-[130%]",s&&f?"text-teritary_04":"text-[#BA1A1A]"),children:s?s.message:u})]})}),nx=({className:e,delay:t=.15})=>h.jsxs(Wn.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0,transition:{delay:t}},className:$("flex flex-col gap-8 my-16",e),children:[h.jsx("h3",{className:"text-3xl text-center",children:"Форма успешно отправлена!"}),h.jsx(Ae,{className:"w-fit mx-auto",to:"/",children:h.jsx(Me,{variant:"outline",children:"Вернуться на главную"})})]}),iv=({className:e,slides:t,active:n,scrollTo:r})=>h.jsx("div",{className:$("flex items-center justify-center gap-2",e),children:Array.from({length:t}).map((s,i)=>h.jsx("span",{onClick:()=>r==null?void 0:r(i),className:$(n===i?"dot-active":"dot")},i))}),uu=[{title:"Текстильные машины и оборудование",img:"/theme/1.svg"},{title:"Одежда, обувь, кожаные изделия",img:"/theme/2.svg"},{title:"Переработка натуральных волокон",img:"/theme/3.svg"},{title:"Домашний текстиль и эко-текстиль",img:"/theme/4.svg"},{title:"Запасные части и вспомогательные материалы",img:"/theme/5.svg"},{title:"Химические средства и красители",img:"/theme/6.svg"},{title:"Аксессуары и швейная фурнитура",img:"/theme/7.svg"},{title:"Мода и дизайн",img:"/theme/8.svg"}],rx=()=>h.jsx("section",{className:"",children:h.jsxs(Re,{children:[h.jsx("h2",{className:"h2 mb-10 text-center",children:"Тематические направления выставки"}),h.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:uu.map(e=>h.jsx(ul,{...e,iconClassName:"bg-teritary_04"},e.title))})]})}),sx=({className:e})=>h.jsx("section",{className:$("relative w-full bg-[#FDEDEE] -z-10 py-10",e),children:h.jsxs(Re,{children:[h.jsx("h3",{className:"h2 mb-4",children:"Отрасли"}),h.jsx("p",{className:"text-lg text-primary_09 mb-6",children:"Мероприятие объединит ключевых игроков в таких отраслях, как:"}),h.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:uu.map(t=>h.jsx(ul,{className:"!bg-[#F5F4F4]",...t},t.title))}),h.jsxs("div",{className:"flex items-center gap-3 mt-8 text-on_surface_v text-lg",children:[h.jsx("div",{className:"md:w-1 w-4 md:h-[38px] h-40 bg-primary_09"}),h.jsx("p",{className:"text-18 !text-primary_09",children:"Участники смогут продемонстрировать свои инновационные решения, наладить взаимовыгодные партнерства и выйти на новые рынки."})]})]})}),du=[{name:"Монтаж выставки",date:"12 мая 10 июня 2025 года"},{name:"Работа",date:"1113 июня 2025 года"},{name:"Демонтаж",date:"1314 июня 2025 года"}],ov=[{title:"contact@turkmenexpo.com",subtitle:"Адрес электронной почты",img:"/contacts/home/mail.svg"},{title:"здание ТПП Туркменистана",subtitle:"Адрес выставки",img:"/contacts/home/location.svg"},{title:"+99371871812; 99363719588",subtitle:"Контактный номер",img:"/contacts/home/mobile.svg"}],ix=({className:e})=>h.jsx("section",{className:$("bg-surface_high pt-10 pb-20",e),children:h.jsxs(Re,{children:[h.jsx("h2",{className:"h2 mb-10",children:"Время выставки"}),h.jsxs("div",{className:"flex flex-col gap-6",children:[h.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:du.map(t=>g.createElement(dl,{...t,key:t.name,className:"w-full"}))}),h.jsx("div",{className:"md:p-10 pt-16 flex flex-col md:flex-row items-center gap-6",children:ov.map(t=>g.createElement(ah,{...t,key:t.title,className:"w-full"}))}),h.jsx(Ae,{to:"/stend-form",className:"md:w-fit w-full mx-auto",children:h.jsx(Me,{className:"w-full",children:"Забронируйте стенд "})})]})]})}),ox=({className:e})=>h.jsx("section",{className:$("bg-bg_surface_container py-10 md:py-[160px]",e),children:h.jsxs(Re,{children:[h.jsx("h3",{className:"h2 mb-6",children:"Время выставки"}),h.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:du.map(t=>g.createElement(dl,{bottomClassName:"!bg-white rounded-b-[2px]",...t,key:t.name,className:"w-full"}))})]})}),ax=({className:e})=>h.jsxs("section",{className:$(" gap-6 relative overflow-hidden",e),children:[h.jsxs(Re,{className:"md:py-20 py-10 ",children:[h.jsx("h3",{className:"h2 mb-6 xl:max-w-[496px]",children:"Место проведения"}),h.jsx("p",{className:"text-lg text-on_surface_v normal xl:max-w-[496px] mb-10",children:"Торгово-промышленная палата Туркменистана создана в целях содействия развитию экономики Туркменистана, ее интегрированию в мировую хозяйственную систему, формированию современной промышленной, финансовой и торговой инфраструктуры, создания благоприятных условий для предпринимательской деятельности, оказания содействия в установлении торгово-экономических, научных и технических связей с зарубежными партнерами."}),h.jsx("div",{className:"size-full xl:hidden",children:h.jsx("img",{src:"/map.png",alt:"map",className:"size-full object-cover"})})]}),h.jsx("div",{className:"h-full 2xl:w-[850px] xl:w-[650px] xl:block hidden absolute top-0 right-0",children:h.jsx("img",{src:"/map.png",alt:"",className:"size-full object-cover"})})]}),lx=({className:e})=>h.jsxs("section",{className:$("md:py-20 py-10 relative overflow-hidden",e),children:[h.jsx("img",{src:"/CTA.png",className:"absolute top-0 left-0 size-full -z-10 object-cover"}),h.jsxs(Re,{children:[h.jsx("h3",{className:"h2 text-center !text-on_primary mb-6",children:"Приглашение к участию"}),h.jsx("p",{className:"text-center md:text-lg text-sm text-primary_03 max-w-[828px] px-5 mx-auto mb-10",children:"Торгово-промышленная палата Туркменистана приглашает бизнес-сообщество со всего мира присоединиться к этому уникальному событию, которое станет важным шагом к укреплению позиций Туркменистана на глобальной экономической арене."}),h.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[h.jsx(Ae,{to:"/stend-form",className:"w-full",children:h.jsx(Me,{className:"bg-reverse_primary w-full text-primary hover:bg-reverse_primary/90",children:"Забронировать стенд"})}),h.jsx(Ae,{to:"/B2B-B2G",className:"w-full",children:h.jsx(Me,{className:"bg-reverse_primary w-full hover:bg-reverse_primary/90 text-primary",children:"B2B | B2G встречи"})})]})]})]}),cx=()=>h.jsxs(Re,{className:"flex flex-col md:my-20 my-10 gap-16",children:[h.jsxs("div",{className:"flex flex-col gap-6",children:[h.jsx("h3",{className:"h2",children:"Выставка-ярмарка «TurkmenTextile Expo 2025» "}),h.jsxs("p",{className:"p",children:["Глобальная выставка и ярмарка текстиля и моды, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров. Наша миссия — укрепить позиции Туркменистана как ключевого центра текстильной и модной индустрии. Выставка станет платформой для изучения устойчивых практик, современных технологий и новых дизайнерских решений, вдохновляя на развитие индустрии."," "]})]}),h.jsxs("div",{className:"flex flex-col gap-6",children:[h.jsx("h3",{className:"h2",children:"Перспективы"}),h.jsx("h4",{className:"p",children:"TurkmenTextile Expo-2025 открывает широкие перспективы для участников:"}),h.jsxs("ol",{type:"1",className:"list-decimal pl-8 flex flex-col gap-3 p",children:[h.jsx("li",{children:"Расширение деловых связей — уникальная возможность для B2B и B2G-встреч, заключения торговых соглашений и установления стратегических партнёрств."}),h.jsx("li",{children:"Доступ к инновациям — знакомство с передовыми технологиями текстильного производства, экологичными материалами и трендами устойчивого дизайна."}),h.jsx("li",{children:"Повышение экспортного потенциала — участие в форумах и семинарах, посвящённых продвижению продукции на новые рынки."}),h.jsx("li",{children:"Обучение и развитие — мастер-классы и лекции от ведущих мировых экспертов помогут участникам углубить знания и освоить современные подходы в области текстильной индустрии."}),h.jsx("li",{children:"Культурный обмен — возможность продемонстрировать богатое текстильное наследие Туркменистана и вдохновиться культурными традициями других стран."})]})]}),h.jsxs("div",{className:"flex flex-col gap-6",children:[h.jsx("h3",{className:"h2",children:"Направления"}),h.jsx("h4",{className:"p",children:"Выставка охватывает ключевые аспекты текстильной и модной индустрии, включая:"}),h.jsxs("ul",{className:"list-disc pl-8 flex flex-col gap-3 p",children:[h.jsx("li",{children:"Традиционный текстиль: экспозиции, шёлковым изделиям и ремесленным техникам Туркменистана."}),h.jsx("li",{children:"Инновационные материалы и технологии: зоны, где демонстрируются устойчивые материалы, 3D-ткацкие технологии и экологически чистые красители."}),h.jsx("li",{children:"Модные показы: ежедневные подиумные шоу с участием местных и международных дизайнеров, включая зарубежных модельеров."}),h.jsx("li",{children:"Маркетплейс для переговоров: пространство для встреч между экспортёрами и импортёрами."}),h.jsx("li",{children:"Оборудование для текстильной промышленности: современные технологии и машины для повышения эффективности и конкурентоспособности."}),h.jsx("li",{children:"Образовательные зоны: интерактивные экспозиции и семинары на тему устойчивости, дизайна и переработки."})]}),h.jsx("p",{className:"text-18",children:"Участники смогут обсудить современные технологии, лучшие практики и эффективные стратегии для устойчивого бизнеса."})]}),h.jsxs("div",{className:"flex flex-col gap-6",children:[h.jsx("h3",{className:"h2",children:"Партнёрство и спонсорство"}),h.jsx("h4",{className:"p",children:"TurkmenTextile Expo-2025 приглашает к сотрудничеству международные организации, ассоциации и бренды для продвижения своих продуктов и услуг. Партнёры получат:"}),h.jsxs("ul",{className:"list-disc pl-8 flex flex-col gap-3 p",children:[h.jsx("li",{children:"Признание на международной арене — участие в масштабном событии, привлекающем ведущих игроков текстильной и модной индустрий."}),h.jsx("li",{children:"Рекламные возможности — интеграция бренда в маркетинговую кампанию выставки, включая digital и офлайн-каналы."}),h.jsx("li",{children:"Вклад в развитие индустрии — поддержка инноваций, устойчивых практик и культурного наследия."})]})]})]});function av(e){return Object.prototype.toString.call(e)==="[object Object]"}function da(e){return av(e)||Array.isArray(e)}function lv(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ai(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const s=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return s!==i?!1:n.every(o=>{const a=e[o],l=t[o];return typeof a=="function"?`${a}`==`${l}`:!da(a)||!da(l)?a===l:ai(a,l)})}function fa(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function cv(e,t){if(e.length!==t.length)return!1;const n=fa(e),r=fa(t);return n.every((s,i)=>{const o=r[i];return ai(s,o)})}function li(e){return typeof e=="number"}function hs(e){return typeof e=="string"}function pr(e){return typeof e=="boolean"}function ha(e){return Object.prototype.toString.call(e)==="[object Object]"}function le(e){return Math.abs(e)}function ci(e){return Math.sign(e)}function cn(e,t){return le(e-t)}function uv(e,t){if(e===0||t===0||le(e)<=le(t))return 0;const n=cn(le(e),le(t));return le(n/e)}function dv(e){return Math.round(e*100)/100}function gn(e){return yn(e).map(Number)}function Ue(e){return e[Cn(e)]}function Cn(e){return Math.max(0,e.length-1)}function ui(e,t){return t===Cn(e)}function ma(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function yn(e){return Object.keys(e)}function fu(e,t){return[e,t].reduce((n,r)=>(yn(r).forEach(s=>{const i=n[s],o=r[s],a=ha(i)&&ha(o);n[s]=a?fu(i,o):o}),n),{})}function ms(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function fv(e,t){const n={start:r,center:s,end:i};function r(){return 0}function s(l){return i(l)/2}function i(l){return t-l}function o(l,c){return hs(e)?n[e](l):e(t,l,c)}return{measure:o}}function vn(){let e=[];function t(s,i,o,a={passive:!0}){let l;if("addEventListener"in s)s.addEventListener(i,o,a),l=()=>s.removeEventListener(i,o,a);else{const c=s;c.addListener(o),l=()=>c.removeListener(o)}return e.push(l),r}function n(){e=e.filter(s=>s())}const r={add:t,clear:n};return r}function hv(e,t,n,r){const s=vn(),i=1e3/60;let o=null,a=0,l=0;function c(){s.add(e,"visibilitychange",()=>{e.hidden&&y()})}function u(){p(),s.clear()}function d(x){if(!l)return;o||(o=x,n(),n());const v=x-o;for(o=x,a+=v;a>=i;)n(),a-=i;const w=a/i;r(w),l&&(l=t.requestAnimationFrame(d))}function f(){l||(l=t.requestAnimationFrame(d))}function p(){t.cancelAnimationFrame(l),o=null,a=0,l=0}function y(){o=null,a=0}return{init:c,destroy:u,start:f,stop:p,update:n,render:r}}function mv(e,t){const n=t==="rtl",r=e==="y",s=r?"y":"x",i=r?"x":"y",o=!r&&n?-1:1,a=u(),l=d();function c(y){const{height:m,width:x}=y;return r?m:x}function u(){return r?"top":n?"right":"left"}function d(){return r?"bottom":n?"left":"right"}function f(y){return y*o}return{scroll:s,cross:i,startEdge:a,endEdge:l,measureSize:c,direction:f}}function Tt(e=0,t=0){const n=le(e-t);function r(c){return c<e}function s(c){return c>t}function i(c){return r(c)||s(c)}function o(c){return i(c)?r(c)?e:t:c}function a(c){return n?c-n*Math.ceil((c-t)/n):c}return{length:n,max:t,min:e,constrain:o,reachedAny:i,reachedMax:s,reachedMin:r,removeOffset:a}}function hu(e,t,n){const{constrain:r}=Tt(0,e),s=e+1;let i=o(t);function o(f){return n?le((s+f)%s):r(f)}function a(){return i}function l(f){return i=o(f),d}function c(f){return u().set(a()+f)}function u(){return hu(e,a(),n)}const d={get:a,set:l,add:c,clone:u};return d}function pv(e,t,n,r,s,i,o,a,l,c,u,d,f,p,y,m,x,v,w){const{cross:A,direction:E}=e,S=["INPUT","SELECT","TEXTAREA"],P={passive:!1},D=vn(),j=vn(),k=Tt(50,225).constrain(p.measure(20)),F={mouse:300,touch:400},U={mouse:500,touch:600},N=y?43:25;let O=!1,z=0,q=0,Y=!1,W=!1,X=!1,ee=!1;function me(L){if(!w)return;function Z(be){(pr(w)||w(L,be))&&Ne(be)}const oe=t;D.add(oe,"dragstart",be=>be.preventDefault(),P).add(oe,"touchmove",()=>{},P).add(oe,"touchend",()=>{}).add(oe,"touchstart",Z).add(oe,"mousedown",Z).add(oe,"touchcancel",Q).add(oe,"contextmenu",Q).add(oe,"click",ye,!0)}function ne(){D.clear(),j.clear()}function Pe(){const L=ee?n:t;j.add(L,"touchmove",H,P).add(L,"touchend",Q).add(L,"mousemove",H,P).add(L,"mouseup",Q)}function Le(L){const Z=L.nodeName||"";return S.includes(Z)}function Ee(){return(y?U:F)[ee?"mouse":"touch"]}function Je(L,Z){const oe=d.add(ci(L)*-1),be=u.byDistance(L,!y).distance;return y||le(L)<k?be:x&&Z?be*.5:u.byIndex(oe.get(),0).distance}function Ne(L){const Z=ms(L,r);ee=Z,X=y&&Z&&!L.buttons&&O,O=cn(s.get(),o.get())>=2,!(Z&&L.button!==0)&&(Le(L.target)||(Y=!0,i.pointerDown(L),c.useFriction(0).useDuration(0),s.set(o),Pe(),z=i.readPoint(L),q=i.readPoint(L,A),f.emit("pointerDown")))}function H(L){if(!ms(L,r)&&L.touches.length>=2)return Q(L);const oe=i.readPoint(L),be=i.readPoint(L,A),Oe=cn(oe,z),We=cn(be,q);if(!W&&!ee&&(!L.cancelable||(W=Oe>We,!W)))return Q(L);const b=i.pointerMove(L);Oe>m&&(X=!0),c.useFriction(.3).useDuration(.75),a.start(),s.add(E(b)),L.preventDefault()}function Q(L){const oe=u.byDistance(0,!1).index!==d.get(),be=i.pointerUp(L)*Ee(),Oe=Je(E(be),oe),We=uv(be,Oe),b=N-10*We,T=v+We/50;W=!1,Y=!1,j.clear(),c.useDuration(b).useFriction(T),l.distance(Oe,!y),ee=!1,f.emit("pointerUp")}function ye(L){X&&(L.stopPropagation(),L.preventDefault(),X=!1)}function ve(){return Y}return{init:me,destroy:ne,pointerDown:ve}}function gv(e,t){let r,s;function i(d){return d.timeStamp}function o(d,f){const y=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(ms(d,t)?d:d.touches[0])[y]}function a(d){return r=d,s=d,o(d)}function l(d){const f=o(d)-o(s),p=i(d)-i(r)>170;return s=d,p&&(r=d),f}function c(d){if(!r||!s)return 0;const f=o(s)-o(r),p=i(d)-i(r),y=i(d)-i(s)>170,m=f/p;return p&&!y&&le(m)>.1?m:0}return{pointerDown:a,pointerMove:l,pointerUp:c,readPoint:o}}function yv(){function e(n){const{offsetTop:r,offsetLeft:s,offsetWidth:i,offsetHeight:o}=n;return{top:r,right:s+i,bottom:r+o,left:s,width:i,height:o}}return{measure:e}}function vv(e){function t(r){return e*(r/100)}return{measure:t}}function xv(e,t,n,r,s,i,o){const a=[e].concat(r);let l,c,u=[],d=!1;function f(x){return s.measureSize(o.measure(x))}function p(x){if(!i)return;c=f(e),u=r.map(f);function v(w){for(const A of w){if(d)return;const E=A.target===e,S=r.indexOf(A.target),P=E?c:u[S],D=f(E?e:r[S]);if(le(D-P)>=.5){x.reInit(),t.emit("resize");break}}}l=new ResizeObserver(w=>{(pr(i)||i(x,w))&&v(w)}),n.requestAnimationFrame(()=>{a.forEach(w=>l.observe(w))})}function y(){d=!0,l&&l.disconnect()}return{init:p,destroy:y}}function bv(e,t,n,r,s,i){let o=0,a=0,l=s,c=i,u=e.get(),d=0;function f(){const P=r.get()-e.get(),D=!l;let j=0;return D?(o=0,n.set(r),e.set(r),j=P):(n.set(e),o+=P/l,o*=c,u+=o,e.add(o),j=u-d),a=ci(j),d=u,S}function p(){const P=r.get()-t.get();return le(P)<.001}function y(){return l}function m(){return a}function x(){return o}function v(){return A(s)}function w(){return E(i)}function A(P){return l=P,S}function E(P){return c=P,S}const S={direction:m,duration:y,velocity:x,seek:f,settled:p,useBaseFriction:w,useBaseDuration:v,useFriction:E,useDuration:A};return S}function wv(e,t,n,r,s){const i=s.measure(10),o=s.measure(50),a=Tt(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(p){if(!c())return;const y=e.reachedMin(t.get())?"min":"max",m=le(e[y]-t.get()),x=n.get()-t.get(),v=a.constrain(m/o);n.subtract(x*v),!p&&le(x)<i&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function d(p){l=!p}return{shouldConstrain:c,constrain:u,toggleActive:d}}function Sv(e,t,n,r,s){const i=Tt(-t+e,0),o=d(),a=u(),l=f();function c(y,m){return cn(y,m)<=1}function u(){const y=o[0],m=Ue(o),x=o.lastIndexOf(y),v=o.indexOf(m)+1;return Tt(x,v)}function d(){return n.map((y,m)=>{const{min:x,max:v}=i,w=i.constrain(y),A=!m,E=ui(n,m);return A?v:E||c(x,w)?x:c(v,w)?v:w}).map(y=>parseFloat(y.toFixed(3)))}function f(){if(t<=e+s)return[i.max];if(r==="keepSnaps")return o;const{min:y,max:m}=a;return o.slice(y,m)}return{snapsContained:l,scrollContainLimit:a}}function Tv(e,t,n){const r=t[0],s=n?r-e:Ue(t);return{limit:Tt(s,r)}}function Av(e,t,n,r){const i=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:l}=Tt(i,o);function c(f){return f===1?l(n.get()):f===-1?a(n.get()):!1}function u(f){if(!c(f))return;const p=e*(f*-1);r.forEach(y=>y.add(p))}return{loop:u}}function Cv(e){const{max:t,length:n}=e;function r(i){const o=i-t;return n?o/-n:0}return{get:r}}function Pv(e,t,n,r,s){const{startEdge:i,endEdge:o}=e,{groupSlides:a}=s,l=d().map(t.measure),c=f(),u=p();function d(){return a(r).map(m=>Ue(m)[o]-m[0][i]).map(le)}function f(){return r.map(m=>n[i]-m[i]).map(m=>-le(m))}function p(){return a(c).map(m=>m[0]).map((m,x)=>m+l[x])}return{snaps:c,snapsAligned:u}}function Ev(e,t,n,r,s,i){const{groupSlides:o}=s,{min:a,max:l}=r,c=u();function u(){const f=o(i),p=!e||t==="keepSnaps";return n.length===1?[i]:p?f:f.slice(a,l).map((y,m,x)=>{const v=!m,w=ui(x,m);if(v){const A=Ue(x[0])+1;return ma(A)}if(w){const A=Cn(i)-Ue(x)[0]+1;return ma(A,Ue(x)[0])}return y})}return{slideRegistry:c}}function Dv(e,t,n,r,s){const{reachedAny:i,removeOffset:o,constrain:a}=r;function l(y){return y.concat().sort((m,x)=>le(m)-le(x))[0]}function c(y){const m=e?o(y):a(y),x=t.map((w,A)=>({diff:u(w-m,0),index:A})).sort((w,A)=>le(w.diff)-le(A.diff)),{index:v}=x[0];return{index:v,distance:m}}function u(y,m){const x=[y,y+n,y-n];if(!e)return y;if(!m)return l(x);const v=x.filter(w=>ci(w)===m);return v.length?l(v):Ue(x)-n}function d(y,m){const x=t[y]-s.get(),v=u(x,m);return{index:y,distance:v}}function f(y,m){const x=s.get()+y,{index:v,distance:w}=c(x),A=!e&&i(x);if(!m||A)return{index:v,distance:y};const E=t[v]-w,S=y+u(E,0);return{index:v,distance:S}}return{byDistance:f,byIndex:d,shortcut:u}}function jv(e,t,n,r,s,i,o){function a(d){const f=d.distance,p=d.index!==t.get();i.add(f),f&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),p&&(n.set(t.get()),t.set(d.index),o.emit("select"))}function l(d,f){const p=s.byDistance(d,f);a(p)}function c(d,f){const p=t.clone().set(d),y=s.byIndex(p.get(),f);a(y)}return{distance:l,index:c}}function Nv(e,t,n,r,s,i,o,a){const l={passive:!0,capture:!0};let c=0;function u(p){if(!a)return;function y(m){if(new Date().getTime()-c>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const w=n.findIndex(A=>A.includes(m));li(w)&&(s.useDuration(0),r.index(w,0),o.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((m,x)=>{i.add(m,"focus",v=>{(pr(a)||a(p,v))&&y(x)},l)})}function d(p){p.code==="Tab"&&(c=new Date().getTime())}return{init:u}}function tn(e){let t=e;function n(){return t}function r(l){t=o(l)}function s(l){t+=o(l)}function i(l){t-=o(l)}function o(l){return li(l)?l:l.get()}return{get:n,set:r,add:s,subtract:i}}function mu(e,t){const n=e.scroll==="x"?o:a,r=t.style;let s=null,i=!1;function o(f){return`translate3d(${f}px,0px,0px)`}function a(f){return`translate3d(0px,${f}px,0px)`}function l(f){if(i)return;const p=dv(e.direction(f));p!==s&&(r.transform=n(p),s=p)}function c(f){i=!f}function u(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:l,toggleActive:c}}function Vv(e,t,n,r,s,i,o,a,l){const u=gn(s),d=gn(s).reverse(),f=v().concat(w());function p(D,j){return D.reduce((k,F)=>k-s[F],j)}function y(D,j){return D.reduce((k,F)=>p(k,j)>0?k.concat([F]):k,[])}function m(D){return i.map((j,k)=>({start:j-r[k]+.5+D,end:j+t-.5+D}))}function x(D,j,k){const F=m(j);return D.map(U=>{const N=k?0:-n,O=k?n:0,z=k?"end":"start",q=F[U][z];return{index:U,loopPoint:q,slideLocation:tn(-1),translate:mu(e,l[U]),target:()=>a.get()>q?N:O}})}function v(){const D=o[0],j=y(d,D);return x(j,n,!1)}function w(){const D=t-o[0]-1,j=y(u,D);return x(j,-n,!0)}function A(){return f.every(({index:D})=>{const j=u.filter(k=>k!==D);return p(j,t)<=.1})}function E(){f.forEach(D=>{const{target:j,translate:k,slideLocation:F}=D,U=j();U!==F.get()&&(k.to(U),F.set(U))})}function S(){f.forEach(D=>D.translate.clear())}return{canLoop:A,clear:S,loop:E,loopPoints:f}}function Mv(e,t,n){let r,s=!1;function i(l){if(!n)return;function c(u){for(const d of u)if(d.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(u=>{s||(pr(n)||n(l,u))&&c(u)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),s=!0}return{init:i,destroy:o}}function Rv(e,t,n,r){const s={};let i=null,o=null,a,l=!1;function c(){a=new IntersectionObserver(y=>{l||(y.forEach(m=>{const x=t.indexOf(m.target);s[x]=m}),i=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(y=>a.observe(y))}function u(){a&&a.disconnect(),l=!0}function d(y){return yn(s).reduce((m,x)=>{const v=parseInt(x),{isIntersecting:w}=s[v];return(y&&w||!y&&!w)&&m.push(v),m},[])}function f(y=!0){if(y&&i)return i;if(!y&&o)return o;const m=d(y);return y&&(i=m),y||(o=m),m}return{init:c,destroy:u,get:f}}function _v(e,t,n,r,s,i){const{measureSize:o,startEdge:a,endEdge:l}=e,c=n[0]&&s,u=y(),d=m(),f=n.map(o),p=x();function y(){if(!c)return 0;const w=n[0];return le(t[a]-w[a])}function m(){if(!c)return 0;const w=i.getComputedStyle(Ue(r));return parseFloat(w.getPropertyValue(`margin-${l}`))}function x(){return n.map((w,A,E)=>{const S=!A,P=ui(E,A);return S?f[A]+u:P?f[A]+d:E[A+1][a]-w[a]}).map(le)}return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:d}}function kv(e,t,n,r,s,i,o,a,l){const{startEdge:c,endEdge:u,direction:d}=e,f=li(n);function p(v,w){return gn(v).filter(A=>A%w===0).map(A=>v.slice(A,A+w))}function y(v){return v.length?gn(v).reduce((w,A,E)=>{const S=Ue(w)||0,P=S===0,D=A===Cn(v),j=s[c]-i[S][c],k=s[c]-i[A][u],F=!r&&P?d(o):0,U=!r&&D?d(a):0,N=le(k-U-(j+F));return E&&N>t+l&&w.push(A),D&&w.push(v.length),w},[]).map((w,A,E)=>{const S=Math.max(E[A-1]||0);return v.slice(S,w)}):[]}function m(v){return f?p(v,n):y(v)}return{groupSlides:m}}function Fv(e,t,n,r,s,i,o){const{align:a,axis:l,direction:c,startIndex:u,loop:d,duration:f,dragFree:p,dragThreshold:y,inViewThreshold:m,slidesToScroll:x,skipSnaps:v,containScroll:w,watchResize:A,watchSlides:E,watchDrag:S,watchFocus:P}=i,D=2,j=yv(),k=j.measure(t),F=n.map(j.measure),U=mv(l,c),N=U.measureSize(k),O=vv(N),z=fv(a,N),q=!d&&!!w,Y=d||!!w,{slideSizes:W,slideSizesWithGaps:X,startGap:ee,endGap:me}=_v(U,k,F,n,Y,s),ne=kv(U,N,x,d,k,F,ee,me,D),{snaps:Pe,snapsAligned:Le}=Pv(U,z,k,F,ne),Ee=-Ue(Pe)+Ue(X),{snapsContained:Je,scrollContainLimit:Ne}=Sv(N,Ee,Le,w,D),H=q?Je:Le,{limit:Q}=Tv(Ee,H,d),ye=hu(Cn(H),u,d),ve=ye.clone(),re=gn(n),L=({dragHandler:Ge,scrollBody:ht,scrollBounds:Gt,options:{loop:mt}})=>{mt||Gt.constrain(Ge.pointerDown()),ht.seek()},Z=({scrollBody:Ge,translate:ht,location:Gt,offsetLocation:mt,previousLocation:gr,scrollLooper:En,slideLooper:yu,dragHandler:vu,animation:xu,eventHandler:di,scrollBounds:bu,options:{loop:fi}},hi)=>{const mi=Ge.settled(),wu=!bu.shouldConstrain(),pi=fi?mi:mi&&wu;pi&&!vu.pointerDown()&&(xu.stop(),di.emit("settle")),pi||di.emit("scroll");const Su=Gt.get()*hi+gr.get()*(1-hi);mt.set(Su),fi&&(En.loop(Ge.direction()),yu.loop()),ht.to(mt.get())},oe=hv(r,s,()=>L($t),Ge=>Z($t,Ge)),be=.68,Oe=H[ye.get()],We=tn(Oe),b=tn(Oe),T=tn(Oe),C=tn(Oe),R=bv(We,T,b,C,f,be),M=Dv(d,H,Ee,Q,C),V=jv(oe,ye,ve,R,M,C,o),I=Cv(Q),G=vn(),pe=Rv(t,n,o,m),{slideRegistry:ue}=Ev(q,w,H,Ne,ne,re),$e=Nv(e,n,ue,V,R,G,o,P),$t={ownerDocument:r,ownerWindow:s,eventHandler:o,containerRect:k,slideRects:F,animation:oe,axis:U,dragHandler:pv(U,e,r,s,C,gv(U,s),We,oe,V,R,M,ye,o,O,p,y,v,be,S),eventStore:G,percentOfView:O,index:ye,indexPrevious:ve,limit:Q,location:We,offsetLocation:T,previousLocation:b,options:i,resizeHandler:xv(t,o,s,n,U,A,j),scrollBody:R,scrollBounds:wv(Q,T,C,R,O),scrollLooper:Av(Ee,Q,T,[We,T,b,C]),scrollProgress:I,scrollSnapList:H.map(I.get),scrollSnaps:H,scrollTarget:M,scrollTo:V,slideLooper:Vv(U,N,Ee,W,X,Pe,H,T,n),slideFocus:$e,slidesHandler:Mv(t,o,E),slidesInView:pe,slideIndexes:re,slideRegistry:ue,slidesToScroll:ne,target:C,translate:mu(U,t)};return $t}function Lv(){let e={},t;function n(c){t=c}function r(c){return e[c]||[]}function s(c){return r(c).forEach(u=>u(t,c)),l}function i(c,u){return e[c]=r(c).concat([u]),l}function o(c,u){return e[c]=r(c).filter(d=>d!==u),l}function a(){e={}}const l={init:n,emit:s,off:o,on:i,clear:a};return l}const Ov={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Iv(e){function t(i,o){return fu(i,o||{})}function n(i){const o=i.breakpoints||{},a=yn(o).filter(l=>e.matchMedia(l).matches).map(l=>o[l]).reduce((l,c)=>t(l,c),{});return t(i,a)}function r(i){return i.map(o=>yn(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function Bv(e){let t=[];function n(i,o){return t=o.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(i,e)),o.reduce((a,l)=>Object.assign(a,{[l.name]:l}),{})}function r(){t=t.filter(i=>i.destroy())}return{init:n,destroy:r}}function rr(e,t,n){const r=e.ownerDocument,s=r.defaultView,i=Iv(s),o=Bv(i),a=vn(),l=Lv(),{mergeOptions:c,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:f,off:p,emit:y}=l,m=U;let x=!1,v,w=c(Ov,rr.globalOptions),A=c(w),E=[],S,P,D;function j(){const{container:re,slides:L}=A;P=(hs(re)?e.querySelector(re):re)||e.children[0];const oe=hs(L)?P.querySelectorAll(L):L;D=[].slice.call(oe||P.children)}function k(re){const L=Fv(e,P,D,r,s,re,l);if(re.loop&&!L.slideLooper.canLoop()){const Z=Object.assign({},re,{loop:!1});return k(Z)}return L}function F(re,L){x||(w=c(w,re),A=u(w),E=L||E,j(),v=k(A),d([w,...E.map(({options:Z})=>Z)]).forEach(Z=>a.add(Z,"change",U)),A.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(ve),v.eventHandler.init(ve),v.resizeHandler.init(ve),v.slidesHandler.init(ve),v.options.loop&&v.slideLooper.loop(),P.offsetParent&&D.length&&v.dragHandler.init(ve),S=o.init(ve,E)))}function U(re,L){const Z=ne();N(),F(c({startIndex:Z},re),L),l.emit("reInit")}function N(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),o.destroy(),a.clear()}function O(){x||(x=!0,a.clear(),N(),l.emit("destroy"),l.clear())}function z(re,L,Z){!A.active||x||(v.scrollBody.useBaseFriction().useDuration(L===!0?0:A.duration),v.scrollTo.index(re,Z||0))}function q(re){const L=v.index.add(1).get();z(L,re,-1)}function Y(re){const L=v.index.add(-1).get();z(L,re,1)}function W(){return v.index.add(1).get()!==ne()}function X(){return v.index.add(-1).get()!==ne()}function ee(){return v.scrollSnapList}function me(){return v.scrollProgress.get(v.location.get())}function ne(){return v.index.get()}function Pe(){return v.indexPrevious.get()}function Le(){return v.slidesInView.get()}function Ee(){return v.slidesInView.get(!1)}function Je(){return S}function Ne(){return v}function H(){return e}function Q(){return P}function ye(){return D}const ve={canScrollNext:W,canScrollPrev:X,containerNode:Q,internalEngine:Ne,destroy:O,off:p,on:f,emit:y,plugins:Je,previousScrollSnap:Pe,reInit:m,rootNode:H,scrollNext:q,scrollPrev:Y,scrollProgress:me,scrollSnapList:ee,scrollTo:z,selectedScrollSnap:ne,slideNodes:ye,slidesInView:Le,slidesNotInView:Ee};return F(t,n),setTimeout(()=>l.emit("init"),0),ve}rr.globalOptions=void 0;function Pn(e={},t=[]){const n=g.useRef(e),r=g.useRef(t),[s,i]=g.useState(),[o,a]=g.useState(),l=g.useCallback(()=>{s&&s.reInit(n.current,r.current)},[s]);return g.useEffect(()=>{ai(n.current,e)||(n.current=e,l())},[e,l]),g.useEffect(()=>{cv(r.current,t)||(r.current=t,l())},[t,l]),g.useEffect(()=>{if(lv()&&o){rr.globalOptions=Pn.globalOptions;const c=rr(o,n.current,r.current);return i(c),()=>c.destroy()}else i(void 0)},[o,i]),[a,s]}Pn.globalOptions=void 0;const Uv=[{title:"План выставки",link:""},{title:"Забронировать стенд",link:"/stend-form"},{title:"Список участников ",link:""},{title:"B2B | B2G встречи",link:"/B2B-B2G"}],ux=()=>{const[e]=Pn(),t=us("(min-width: 1024px)"),n=us("(min-width: 768px)");function r(){return t?"/banners/ru/l.jpg":n?"/banners/ru/m.jpg":"/banners/ru/s.jpg"}return h.jsxs("section",{className:"flex flex-col gap-5",children:[h.jsx("div",{ref:e,className:"embla",children:h.jsx("div",{className:"embla__container",children:h.jsx("div",{className:"embla__slide",children:h.jsx("img",{src:r(),alt:"",className:"size-full object-cover lg:max-h-[600px] lg:min-h-[320px]"})})})}),h.jsx(Re,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 items-center gap-6 text-2xl",children:Uv.map(({title:s,link:i})=>h.jsx(Ae,{to:i,className:"w-full",children:h.jsx(Me,{size:"lg",variant:"teritary",className:"w-full drop-shadow-sm shadow-md text-xl bg-teritary text-on_teritary hover:bg-teritary/90",children:s})},s))})]})},zv=[{nums:"8,400 m²",text:"выставочной площади"},{nums:"10000+",text:"Посетители посетят выставку"},{nums:"100+",text:"Экспоненты из более чем 30 стран"},{nums:"80%",text:"Участники принимают участие в принятии решений о закупках"}],dx=()=>{const[e]=Pn();return h.jsx("section",{children:h.jsxs(Re,{className:"flex flex-col gap-6",children:[h.jsxs("div",{className:"text-center",children:[h.jsxs("h2",{className:"h2 md:mb-3 mb-6 text-left sm:text-center",children:["Выставка-ярмарка «TurkmenTextile Expo 2025» в Ашхабаде"," "]}),h.jsxs("p",{className:"md:text-base text-sm normal text-left sm:text-center text-[#454545]",children:["Глобальная выставка и ярмарка текстиля и моды, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров. Наша миссия — укрепить позиции Туркменистана как ключевого центра текстильной и модной индустрии. Выставка станет платформой для изучения устойчивых практик, современных технологий и новых дизайнерских решений, вдохновляя на развитие индустрии."," "]})]}),h.jsx("div",{ref:e,className:"embla overflow-hidden",children:h.jsx("div",{className:"flex embla__container items-center gap-6",children:zv.map(t=>h.jsx(oh,{...t,className:"embla__slide flex-[0_0_288px]"},t.text))})}),h.jsx(Ae,{to:"/about",className:"mx-auto",children:h.jsx(Me,{variant:"outline",children:"Подробнее о выставке"})})]})})},fx=()=>{const[e,t]=Pn({align:"start"}),[n,r]=g.useState(0),s=g.useCallback(i=>{t&&t.scrollTo(i)},[t]);return g.useEffect(()=>{if(!t)return;const i=()=>{r(t.selectedScrollSnap())};return t.on("select",i),()=>{t.off("select",i)}},[t]),h.jsx("section",{className:"bg-surface_high py-10 relative overflow-hidden",children:h.jsx(Re,{children:h.jsxs("div",{ref:e,className:"embla ",children:[h.jsxs("div",{className:"mb-2 flex gap-6 embla__container",children:[h.jsx(Fi,{img:"/offer-1.png",className:"embla__slide flex-[0_0_300px] md:flex-[0_0_600px]",title:"Гостиницы, трансфер, визы",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_ru.pdf",text:"По вопросам размещения в гостиницах, визовой поддержки, транспортного и экскурсионного обслуживания Вы можете обращаться к официальным туроператорам выставки"}),h.jsx(Fi,{img:"/offer-2.png",className:"embla__slide flex-[0_0_300px] md:flex-[0_0_600px]",title:"Ознакомьтесь с планом выставки TurkmenTextile Expo 2025",text:"Как выбрать лучшее место на выставке? Вы всегда должны помнить, что удачное расположение выставочной экспозиции повышает Ваши шансы привлечь внимание Ваших потенциальных клиентов"})]}),h.jsx(iv,{className:"xl:hidden",scrollTo:s,active:n,slides:2})]})})})},pu=[{title:"Медиа",link:""},{title:"Контакты",link:"/contacts"}],gu=[{title:"О выставке",link:"/about"},{title:"Посетителям",link:""},{title:"Экспонентам",link:""}],hx=()=>h.jsxs("header",{children:[h.jsx("div",{className:"h-12 hidden lg:flex bg-sur text-surface-bg items-center overflow-hidden",children:h.jsxs(Re,{className:"flex items-center justify-between",children:[h.jsxs("div",{className:"gap-8 flex items-center justify-between",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(hf,{}),h.jsx("h4",{className:"text-sm",children:"Ашхабад, Туркменистан"})]}),h.jsx("nav",{className:"flex items-center gap-6",children:pu.map(({title:e,link:t})=>h.jsx(Ae,{className:"py-2",to:t,children:e},e))})]}),h.jsx("div",{className:"flex items-center gap-6",children:h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(pf,{size:16,strokeWidth:"3px"}),h.jsx("h4",{className:"text-sm ",children:"+99371871812"})]})})]})}),h.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:h.jsxs(Re,{className:"flex items-center justify-between ",children:[h.jsxs("div",{className:"flex items-center gap-8",children:[h.jsx(Ae,{to:"/",children:h.jsx(cl,{})}),h.jsx("nav",{className:"lg:flex hidden items-center gap-6 text-white",children:gu.map(({title:e,link:t})=>h.jsxs(Ae,{to:t,className:"flex items-center gap-2",children:[e," ",h.jsx("img",{src:"/chevron.svg"})]},e))})]}),h.jsx("div",{className:"flex items-center",children:h.jsx(Wv,{})}),h.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[h.jsx(Ae,{to:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_ru.pdf",target:"_blank",children:h.jsx(Me,{variant:"secondary",size:"sm",className:"bg-white text-primary hover:bg-white/90",children:"Официальная поддержка"})}),h.jsx(Ae,{to:"/become-sponsor",children:h.jsxs(Me,{variant:"secondary",size:"sm",className:"bg-teritary text-white hover:bg-teritary/90",children:["Стать спонсором"," "]})})]})]})})]}),Wv=()=>{const[e,t]=g.useState(!1);return h.jsxs(Jf,{onOpenChange:()=>t(!e),open:e,children:[h.jsx(Qf,{children:h.jsxs("div",{className:"flex flex-col gap-1 lg:hidden items-center justify-center size-10",children:[h.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),h.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),h.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"})]})}),h.jsxs(al,{className:"overflow-y-auto",children:[h.jsx(eh,{}),h.jsxs(ll,{className:"mt-16 flex flex-col gap-2",children:[h.jsx(Ae,{to:"",children:h.jsx(Me,{variant:"secondary",size:"sm",className:"bg-teritary w-full text-on_teritary hover:bg-teritary/90",children:"Официальная поддержка"})}),h.jsx(Ae,{to:"/B2B-B2G",onClick:()=>t(!1),children:h.jsx(Me,{className:"text-base w-full",size:"sm",children:"B2B | B2G встречи"})})]}),h.jsx("hr",{className:"border-slate-500/20 my-8"}),h.jsx("div",{className:"flex flex-col gap-6",children:pu.concat(gu).map(n=>h.jsx(Ae,{onClick:()=>t(!1),className:"h-10 text-on_surface",to:n.link,children:n.title},n.title))})]})]})},mx=()=>h.jsx("footer",{className:"py-5 bg-primary",children:h.jsxs(Re,{className:"flex flex-col gap-6",children:[h.jsxs("div",{className:"flex flex-col md:flex-row gap-6 md:items-end md:justify-between items-center",children:[h.jsx(cl,{}),h.jsxs("div",{className:"flex items-center gap-6",children:[h.jsx("img",{src:"/inst.svg"}),h.jsx("img",{src:"/in.svg"}),h.jsx("img",{src:"/x.svg"})]})]}),h.jsx("hr",{className:"border-white/50"}),h.jsx("h5",{className:"text-base text-center normal text-white",children:"©2025 Все права защищены"})]})}),Re=({className:e,children:t})=>h.jsx("div",{className:$("w-full mx-auto max-w-[1240px] px-4",e),children:t}),px=({title:e})=>h.jsxs("div",{className:"relative flex items-center h-[216px] w-full justify-center",children:[h.jsx("img",{src:"/cover.png",className:"-z-10 absolute size-full object-cover top-0 left-0"}),h.jsx("h1",{className:"text-on_primary md:text-5xl text-3xl",children:e})]});export{cx as A,Me as B,px as C,wt as D,ct as E,mx as F,vr as G,hx as H,Gn as I,sr as J,Hv as K,qv as L,Re as M,_ as N,te as O,Ze as P,Wy as Q,xn as S,ux as a,dx as b,fx as c,rx as d,ix as e,$ as f,sx as g,ox as h,ax as i,h as j,lx as k,rv as l,Wn as m,iu as n,ou as o,au as p,tx as q,Qv as r,ex as s,Xv as t,hr as u,nx as v,Jv as w,Nu as x,At as y,_u as z};