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

164 lines
503 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.

var Bx=Object.defineProperty;var Ku=e=>{throw TypeError(e)};var $x=(e,t,n)=>t in e?Bx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Q=(e,t,n)=>$x(e,typeof t!="symbol"?t+"":t,n),ba=(e,t,n)=>t.has(e)||Ku("Cannot "+n);var C=(e,t,n)=>(ba(e,t,"read from private field"),n?n.call(e):t.get(e)),te=(e,t,n)=>t.has(e)?Ku("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),q=(e,t,n,s)=>(ba(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n),me=(e,t,n)=>(ba(e,t,"access private method"),n);var zi=(e,t,n,s)=>({set _(r){q(e,t,r,n)},get _(){return C(e,t,s)}});import{r as zx,a as m,R as fc,b as hc,c as sp,L as _e,d as Ui,e as fe,u as Ux}from"./react-vendor-B--yIoPF.js";var wa={exports:{}},Ar={};/**
* @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 Gu;function Wx(){if(Gu)return Ar;Gu=1;var e=zx(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,r=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={},h=null,y=null;c!==void 0&&(h=""+c),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(y=l.ref);for(u in l)s.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:h,ref:y,props:d,_owner:r.current}}return Ar.Fragment=n,Ar.jsx=o,Ar.jsxs=o,Ar}var Xu;function Hx(){return Xu||(Xu=1,wa.exports=Wx()),wa.exports}var f=Hx(),Ai=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},qx={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Dn,dc,Zh,Zx=(Zh=class{constructor(){te(this,Dn,qx);te(this,dc,!1)}setTimeoutProvider(e){q(this,Dn,e)}setTimeout(e,t){return C(this,Dn).setTimeout(e,t)}clearTimeout(e){C(this,Dn).clearTimeout(e)}setInterval(e,t){return C(this,Dn).setInterval(e,t)}clearInterval(e){C(this,Dn).clearInterval(e)}},Dn=new WeakMap,dc=new WeakMap,Zh),os=new Zx;function Kx(e){setTimeout(e,0)}var _s=typeof window>"u"||"Deno"in globalThis;function pt(){}function Gx(e,t){return typeof e=="function"?e(t):e}function el(e){return typeof e=="number"&&e>=0&&e!==1/0}function rp(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Un(e,t){return typeof e=="function"?e(t):e}function Pt(e,t){return typeof e=="function"?e(t):e}function Yu(e,t){const{type:n="all",exact:s,fetchStatus:r,predicate:i,queryKey:o,stale:a}=e;if(o){if(s){if(t.queryHash!==pc(o,t.options))return!1}else if(!Xr(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||r&&r!==t.state.fetchStatus||i&&!i(t))}function Qu(e,t){const{exact:n,status:s,predicate:r,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Gr(t.options.mutationKey)!==Gr(i))return!1}else if(!Xr(t.options.mutationKey,i))return!1}return!(s&&t.state.status!==s||r&&!r(t))}function pc(e,t){return((t==null?void 0:t.queryKeyHashFn)||Gr)(e)}function Gr(e){return JSON.stringify(e,(t,n)=>nl(n)?Object.keys(n).sort().reduce((s,r)=>(s[r]=n[r],s),{}):n)}function Xr(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Xr(e[n],t[n])):!1}var Xx=Object.prototype.hasOwnProperty;function ip(e,t,n=0){if(e===t)return e;if(n>500)return t;const s=Ju(e)&&Ju(t);if(!s&&!(nl(e)&&nl(t)))return t;const i=(s?e:Object.keys(e)).length,o=s?t:Object.keys(t),a=o.length,l=s?new Array(a):{};let c=0;for(let u=0;u<a;u++){const d=s?u:o[u],h=e[d],y=t[d];if(h===y){l[d]=h,(s?u<i:Xx.call(e,d))&&c++;continue}if(h===null||y===null||typeof h!="object"||typeof y!="object"){l[d]=y;continue}const g=ip(h,y,n+1);l[d]=g,g===h&&c++}return i===a&&c===i?e:l}function tl(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ju(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function nl(e){if(!ed(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!ed(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ed(e){return Object.prototype.toString.call(e)==="[object Object]"}function Yx(e){return new Promise(t=>{os.setTimeout(t,e)})}function sl(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?ip(e,t):t}function Qx(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function Jx(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var mc=Symbol();function op(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===mc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ap(e,t){return typeof e=="function"?e(...t):!!e}function eb(e,t,n){let s=!1,r;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(r??(r=t()),s||(s=!0,r.aborted?n():r.addEventListener("abort",n,{once:!0})),r)}),e}var us,Ln,Xs,Kh,tb=(Kh=class extends Ai{constructor(){super();te(this,us);te(this,Ln);te(this,Xs);q(this,Xs,t=>{if(!_s&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,Ln)||this.setEventListener(C(this,Xs))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,Ln))==null||t.call(this),q(this,Ln,void 0))}setEventListener(t){var n;q(this,Xs,t),(n=C(this,Ln))==null||n.call(this),q(this,Ln,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){C(this,us)!==t&&(q(this,us,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,us)=="boolean"?C(this,us):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},us=new WeakMap,Ln=new WeakMap,Xs=new WeakMap,Kh),gc=new tb;function rl(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});n.status="pending",n.catch(()=>{});function s(r){Object.assign(n,r),delete n.resolve,delete n.reject}return n.resolve=r=>{s({status:"fulfilled",value:r}),e(r)},n.reject=r=>{s({status:"rejected",reason:r}),t(r)},n}var nb=Kx;function sb(){let e=[],t=0,n=a=>{a()},s=a=>{a()},r=nb;const i=a=>{t?e.push(a):r(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&r(()=>{s(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{s=a},setScheduler:a=>{r=a}}}var Ze=sb(),Ys,In,Qs,Gh,rb=(Gh=class extends Ai{constructor(){super();te(this,Ys,!0);te(this,In);te(this,Qs);q(this,Qs,t=>{if(!_s&&window.addEventListener){const n=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",s)}}})}onSubscribe(){C(this,In)||this.setEventListener(C(this,Qs))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,In))==null||t.call(this),q(this,In,void 0))}setEventListener(t){var n;q(this,Qs,t),(n=C(this,In))==null||n.call(this),q(this,In,t(this.setOnline.bind(this)))}setOnline(t){C(this,Ys)!==t&&(q(this,Ys,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return C(this,Ys)}},Ys=new WeakMap,In=new WeakMap,Qs=new WeakMap,Gh),go=new rb;function ib(e){return Math.min(1e3*2**e,3e4)}function lp(e){return(e??"online")==="online"?go.isOnline():!0}var il=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function cp(e){let t=!1,n=0,s;const r=rl(),i=()=>r.status!=="pending",o=p=>{var v;if(!i()){const x=new il(p);h(x),(v=e.onCancel)==null||v.call(e,x)}},a=()=>{t=!0},l=()=>{t=!1},c=()=>gc.isFocused()&&(e.networkMode==="always"||go.isOnline())&&e.canRun(),u=()=>lp(e.networkMode)&&e.canRun(),d=p=>{i()||(s==null||s(),r.resolve(p))},h=p=>{i()||(s==null||s(),r.reject(p))},y=()=>new Promise(p=>{var v;s=x=>{(i()||c())&&p(x)},(v=e.onPause)==null||v.call(e)}).then(()=>{var p;s=void 0,i()||(p=e.onContinue)==null||p.call(e)}),g=()=>{if(i())return;let p;const v=n===0?e.initialPromise:void 0;try{p=v??e.fn()}catch(x){p=Promise.reject(x)}Promise.resolve(p).then(d).catch(x=>{var T;if(i())return;const b=e.retry??(_s?0:3),w=e.retryDelay??ib,_=typeof w=="function"?w(n,x):w,S=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,x);if(t||!S){h(x);return}n++,(T=e.onFail)==null||T.call(e,n,x),Yx(_).then(()=>c()?void 0:y()).then(()=>{t?h(x):g()})})};return{promise:r,status:()=>r.status,cancel:o,continue:()=>(s==null||s(),r),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?g():y().then(g),r)}}var ds,Xh,up=(Xh=class{constructor(){te(this,ds)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),el(this.gcTime)&&q(this,ds,os.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(_s?1/0:5*60*1e3))}clearGcTimeout(){C(this,ds)&&(os.clearTimeout(C(this,ds)),q(this,ds,void 0))}},ds=new WeakMap,Xh),fs,Js,Nt,hs,We,_i,ps,Dt,mn,Yh,ob=(Yh=class extends up{constructor(t){super();te(this,Dt);te(this,fs);te(this,Js);te(this,Nt);te(this,hs);te(this,We);te(this,_i);te(this,ps);q(this,ps,!1),q(this,_i,t.defaultOptions),this.setOptions(t.options),this.observers=[],q(this,hs,t.client),q(this,Nt,C(this,hs).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,q(this,fs,nd(this.options)),this.state=t.state??C(this,fs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,We))==null?void 0:t.promise}setOptions(t){if(this.options={...C(this,_i),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=nd(this.options);n.data!==void 0&&(this.setState(td(n.data,n.dataUpdatedAt)),q(this,fs,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,Nt).remove(this)}setData(t,n){const s=sl(this.state.data,t,this.options);return me(this,Dt,mn).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(t,n){me(this,Dt,mn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s,r;const n=(s=C(this,We))==null?void 0:s.promise;return(r=C(this,We))==null||r.cancel(t),n?n.then(pt).catch(pt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,fs))}isActive(){return this.observers.some(t=>Pt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===mc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Un(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!rp(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,We))==null||n.continue()}onOnline(){var n;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,We))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,Nt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,We)&&(C(this,ps)?C(this,We).cancel({revert:!0}):C(this,We).cancelRetry()),this.scheduleGc()),C(this,Nt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||me(this,Dt,mn).call(this,{type:"invalidate"})}async fetch(t,n){var l,c,u,d,h,y,g,p,v,x,b,w;if(this.state.fetchStatus!=="idle"&&((l=C(this,We))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,We))return C(this,We).continueRetry(),C(this,We).promise}if(t&&this.setOptions(t),!this.options.queryFn){const _=this.observers.find(S=>S.options.queryFn);_&&this.setOptions(_.options)}const s=new AbortController,r=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(q(this,ps,!0),s.signal)})},i=()=>{const _=op(this.options,n),T=(()=>{const R={client:C(this,hs),queryKey:this.queryKey,meta:this.meta};return r(R),R})();return q(this,ps,!1),this.options.persister?this.options.persister(_,T,this):_(T)},a=(()=>{const _={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,hs),state:this.state,fetchFn:i};return r(_),_})();(c=this.options.behavior)==null||c.onFetch(a,this),q(this,Js,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&me(this,Dt,mn).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta}),q(this,We,cp({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:_=>{_ instanceof il&&_.revert&&this.setState({...C(this,Js),fetchStatus:"idle"}),s.abort()},onFail:(_,S)=>{me(this,Dt,mn).call(this,{type:"failed",failureCount:_,error:S})},onPause:()=>{me(this,Dt,mn).call(this,{type:"pause"})},onContinue:()=>{me(this,Dt,mn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const _=await C(this,We).start();if(_===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(_),(y=(h=C(this,Nt).config).onSuccess)==null||y.call(h,_,this),(p=(g=C(this,Nt).config).onSettled)==null||p.call(g,_,this.state.error,this),_}catch(_){if(_ instanceof il){if(_.silent)return C(this,We).promise;if(_.revert){if(this.state.data===void 0)throw _;return this.state.data}}throw me(this,Dt,mn).call(this,{type:"error",error:_}),(x=(v=C(this,Nt).config).onError)==null||x.call(v,_,this),(w=(b=C(this,Nt).config).onSettled)==null||w.call(b,this.state.data,_,this),_}finally{this.scheduleGc()}}},fs=new WeakMap,Js=new WeakMap,Nt=new WeakMap,hs=new WeakMap,We=new WeakMap,_i=new WeakMap,ps=new WeakMap,Dt=new WeakSet,mn=function(t){const n=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...dp(s.data,this.options),fetchMeta:t.meta??null};case"success":const r={...s,...td(t.data,t.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return q(this,Js,t.manual?r:void 0),r;case"error":const i=t.error;return{...s,error:i,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=n(this.state),Ze.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),C(this,Nt).notify({query:this,type:"updated",action:t})})},Yh);function dp(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:lp(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function td(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function nd(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ft,ge,Ei,ot,ms,er,vn,Fn,Ci,tr,nr,gs,ys,Vn,sr,we,Dr,ol,al,ll,cl,ul,dl,fl,fp,Qh,ab=(Qh=class extends Ai{constructor(t,n){super();te(this,we);te(this,ft);te(this,ge);te(this,Ei);te(this,ot);te(this,ms);te(this,er);te(this,vn);te(this,Fn);te(this,Ci);te(this,tr);te(this,nr);te(this,gs);te(this,ys);te(this,Vn);te(this,sr,new Set);this.options=n,q(this,ft,t),q(this,Fn,null),q(this,vn,rl()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,ge).addObserver(this),sd(C(this,ge),this.options)?me(this,we,Dr).call(this):this.updateResult(),me(this,we,cl).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return hl(C(this,ge),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return hl(C(this,ge),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,me(this,we,ul).call(this),me(this,we,dl).call(this),C(this,ge).removeObserver(this)}setOptions(t){const n=this.options,s=C(this,ge);if(this.options=C(this,ft).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Pt(this.options.enabled,C(this,ge))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");me(this,we,fl).call(this),C(this,ge).setOptions(this.options),n._defaulted&&!tl(this.options,n)&&C(this,ft).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,ge),observer:this});const r=this.hasListeners();r&&rd(C(this,ge),s,this.options,n)&&me(this,we,Dr).call(this),this.updateResult(),r&&(C(this,ge)!==s||Pt(this.options.enabled,C(this,ge))!==Pt(n.enabled,C(this,ge))||Un(this.options.staleTime,C(this,ge))!==Un(n.staleTime,C(this,ge)))&&me(this,we,ol).call(this);const i=me(this,we,al).call(this);r&&(C(this,ge)!==s||Pt(this.options.enabled,C(this,ge))!==Pt(n.enabled,C(this,ge))||i!==C(this,Vn))&&me(this,we,ll).call(this,i)}getOptimisticResult(t){const n=C(this,ft).getQueryCache().build(C(this,ft),t),s=this.createResult(n,t);return cb(this,s)&&(q(this,ot,s),q(this,er,this.options),q(this,ms,C(this,ge).state)),s}getCurrentResult(){return C(this,ot)}trackResult(t,n){return new Proxy(t,{get:(s,r)=>(this.trackProp(r),n==null||n(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&C(this,vn).status==="pending"&&C(this,vn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,r))})}trackProp(t){C(this,sr).add(t)}getCurrentQuery(){return C(this,ge)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,ft).defaultQueryOptions(t),s=C(this,ft).getQueryCache().build(C(this,ft),n);return s.fetch().then(()=>this.createResult(s,n))}fetch(t){return me(this,we,Dr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,ot)))}createResult(t,n){var P;const s=C(this,ge),r=this.options,i=C(this,ot),o=C(this,ms),a=C(this,er),c=t!==s?t.state:C(this,Ei),{state:u}=t;let d={...u},h=!1,y;if(n._optimisticResults){const O=this.hasListeners(),L=!O&&sd(t,n),M=O&&rd(t,s,n,r);(L||M)&&(d={...d,...dp(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:g,errorUpdatedAt:p,status:v}=d;y=d.data;let x=!1;if(n.placeholderData!==void 0&&y===void 0&&v==="pending"){let O;i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(O=i.data,x=!0):O=typeof n.placeholderData=="function"?n.placeholderData((P=C(this,nr))==null?void 0:P.state.data,C(this,nr)):n.placeholderData,O!==void 0&&(v="success",y=sl(i==null?void 0:i.data,O,n),h=!0)}if(n.select&&y!==void 0&&!x)if(i&&y===(o==null?void 0:o.data)&&n.select===C(this,Ci))y=C(this,tr);else try{q(this,Ci,n.select),y=n.select(y),y=sl(i==null?void 0:i.data,y,n),q(this,tr,y),q(this,Fn,null)}catch(O){q(this,Fn,O)}C(this,Fn)&&(g=C(this,Fn),y=C(this,tr),p=Date.now(),v="error");const b=d.fetchStatus==="fetching",w=v==="pending",_=v==="error",S=w&&b,T=y!==void 0,A={status:v,fetchStatus:d.fetchStatus,isPending:w,isSuccess:v==="success",isError:_,isInitialLoading:S,isLoading:S,data:y,dataUpdatedAt:d.dataUpdatedAt,error:g,errorUpdatedAt:p,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!w,isLoadingError:_&&!T,isPaused:d.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:_&&T,isStale:yc(t,n),refetch:this.refetch,promise:C(this,vn),isEnabled:Pt(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const O=A.data!==void 0,L=A.status==="error"&&!O,M=Y=>{L?Y.reject(A.error):O&&Y.resolve(A.data)},z=()=>{const Y=q(this,vn,A.promise=rl());M(Y)},F=C(this,vn);switch(F.status){case"pending":t.queryHash===s.queryHash&&M(F);break;case"fulfilled":(L||A.data!==F.value)&&z();break;case"rejected":(!L||A.error!==F.reason)&&z();break}}return A}updateResult(){const t=C(this,ot),n=this.createResult(C(this,ge),this.options);if(q(this,ms,C(this,ge).state),q(this,er,this.options),C(this,ms).data!==void 0&&q(this,nr,C(this,ge)),tl(n,t))return;q(this,ot,n);const s=()=>{if(!t)return!0;const{notifyOnChangeProps:r}=this.options,i=typeof r=="function"?r():r;if(i==="all"||!i&&!C(this,sr).size)return!0;const o=new Set(i??C(this,sr));return this.options.throwOnError&&o.add("error"),Object.keys(C(this,ot)).some(a=>{const l=a;return C(this,ot)[l]!==t[l]&&o.has(l)})};me(this,we,fp).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&me(this,we,cl).call(this)}},ft=new WeakMap,ge=new WeakMap,Ei=new WeakMap,ot=new WeakMap,ms=new WeakMap,er=new WeakMap,vn=new WeakMap,Fn=new WeakMap,Ci=new WeakMap,tr=new WeakMap,nr=new WeakMap,gs=new WeakMap,ys=new WeakMap,Vn=new WeakMap,sr=new WeakMap,we=new WeakSet,Dr=function(t){me(this,we,fl).call(this);let n=C(this,ge).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(pt)),n},ol=function(){me(this,we,ul).call(this);const t=Un(this.options.staleTime,C(this,ge));if(_s||C(this,ot).isStale||!el(t))return;const s=rp(C(this,ot).dataUpdatedAt,t)+1;q(this,gs,os.setTimeout(()=>{C(this,ot).isStale||this.updateResult()},s))},al=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,ge)):this.options.refetchInterval)??!1},ll=function(t){me(this,we,dl).call(this),q(this,Vn,t),!(_s||Pt(this.options.enabled,C(this,ge))===!1||!el(C(this,Vn))||C(this,Vn)===0)&&q(this,ys,os.setInterval(()=>{(this.options.refetchIntervalInBackground||gc.isFocused())&&me(this,we,Dr).call(this)},C(this,Vn)))},cl=function(){me(this,we,ol).call(this),me(this,we,ll).call(this,me(this,we,al).call(this))},ul=function(){C(this,gs)&&(os.clearTimeout(C(this,gs)),q(this,gs,void 0))},dl=function(){C(this,ys)&&(os.clearInterval(C(this,ys)),q(this,ys,void 0))},fl=function(){const t=C(this,ft).getQueryCache().build(C(this,ft),this.options);if(t===C(this,ge))return;const n=C(this,ge);q(this,ge,t),q(this,Ei,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},fp=function(t){Ze.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,ot))}),C(this,ft).getQueryCache().notify({query:C(this,ge),type:"observerResultsUpdated"})})},Qh);function lb(e,t){return Pt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function sd(e,t){return lb(e,t)||e.state.data!==void 0&&hl(e,t,t.refetchOnMount)}function hl(e,t,n){if(Pt(t.enabled,e)!==!1&&Un(t.staleTime,e)!=="static"){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&yc(e,t)}return!1}function rd(e,t,n,s){return(e!==t||Pt(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&yc(e,n)}function yc(e,t){return Pt(t.enabled,e)!==!1&&e.isStaleByTime(Un(t.staleTime,e))}function cb(e,t){return!tl(e.getCurrentResult(),t)}function id(e){return{onFetch:(t,n)=>{var u,d,h,y,g;const s=t.options,r=(h=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,i=((y=t.state.data)==null?void 0:y.pages)||[],o=((g=t.state.data)==null?void 0:g.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let p=!1;const v=w=>{eb(w,()=>t.signal,()=>p=!0)},x=op(t.options,t.fetchOptions),b=async(w,_,S)=>{if(p)return Promise.reject();if(_==null&&w.pages.length)return Promise.resolve(w);const R=(()=>{const L={client:t.client,queryKey:t.queryKey,pageParam:_,direction:S?"backward":"forward",meta:t.options.meta};return v(L),L})(),A=await x(R),{maxPages:P}=t.options,O=S?Jx:Qx;return{pages:O(w.pages,A,P),pageParams:O(w.pageParams,_,P)}};if(r&&i.length){const w=r==="backward",_=w?ub:od,S={pages:i,pageParams:o},T=_(s,S);a=await b(S,T,w)}else{const w=e??i.length;do{const _=l===0?o[0]??s.initialPageParam:od(s,a);if(l>0&&_==null)break;a=await b(a,_),l++}while(l<w)}return a};t.options.persister?t.fetchFn=()=>{var p,v;return(v=(p=t.options).persister)==null?void 0:v.call(p,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function od(e,{pages:t,pageParams:n}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,n[s],n):void 0}function ub(e,{pages:t,pageParams:n}){var s;return t.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,t[0],t,n[0],n):void 0}var Ti,Xt,Qe,vs,Yt,kn,Jh,db=(Jh=class extends up{constructor(t){super();te(this,Yt);te(this,Ti);te(this,Xt);te(this,Qe);te(this,vs);q(this,Ti,t.client),this.mutationId=t.mutationId,q(this,Qe,t.mutationCache),q(this,Xt,[]),this.state=t.state||fb(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,Xt).includes(t)||(C(this,Xt).push(t),this.clearGcTimeout(),C(this,Qe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){q(this,Xt,C(this,Xt).filter(n=>n!==t)),this.scheduleGc(),C(this,Qe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,Xt).length||(this.state.status==="pending"?this.scheduleGc():C(this,Qe).remove(this))}continue(){var t;return((t=C(this,vs))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,a,l,c,u,d,h,y,g,p,v,x,b,w,_,S,T,R;const n=()=>{me(this,Yt,kn).call(this,{type:"continue"})},s={client:C(this,Ti),meta:this.options.meta,mutationKey:this.options.mutationKey};q(this,vs,cp({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(A,P)=>{me(this,Yt,kn).call(this,{type:"failed",failureCount:A,error:P})},onPause:()=>{me(this,Yt,kn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Qe).canRun(this)}));const r=this.state.status==="pending",i=!C(this,vs).canStart();try{if(r)n();else{me(this,Yt,kn).call(this,{type:"pending",variables:t,isPaused:i}),C(this,Qe).config.onMutate&&await C(this,Qe).config.onMutate(t,this,s);const P=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t,s));P!==this.state.context&&me(this,Yt,kn).call(this,{type:"pending",context:P,variables:t,isPaused:i})}const A=await C(this,vs).start();return await((c=(l=C(this,Qe).config).onSuccess)==null?void 0:c.call(l,A,t,this.state.context,this,s)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,A,t,this.state.context,s)),await((y=(h=C(this,Qe).config).onSettled)==null?void 0:y.call(h,A,null,this.state.variables,this.state.context,this,s)),await((p=(g=this.options).onSettled)==null?void 0:p.call(g,A,null,t,this.state.context,s)),me(this,Yt,kn).call(this,{type:"success",data:A}),A}catch(A){try{await((x=(v=C(this,Qe).config).onError)==null?void 0:x.call(v,A,t,this.state.context,this,s))}catch(P){Promise.reject(P)}try{await((w=(b=this.options).onError)==null?void 0:w.call(b,A,t,this.state.context,s))}catch(P){Promise.reject(P)}try{await((S=(_=C(this,Qe).config).onSettled)==null?void 0:S.call(_,void 0,A,this.state.variables,this.state.context,this,s))}catch(P){Promise.reject(P)}try{await((R=(T=this.options).onSettled)==null?void 0:R.call(T,void 0,A,t,this.state.context,s))}catch(P){Promise.reject(P)}throw me(this,Yt,kn).call(this,{type:"error",error:A}),A}finally{C(this,Qe).runNext(this)}}},Ti=new WeakMap,Xt=new WeakMap,Qe=new WeakMap,vs=new WeakMap,Yt=new WeakSet,kn=function(t){const n=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ze.batch(()=>{C(this,Xt).forEach(s=>{s.onMutationUpdate(t)}),C(this,Qe).notify({mutation:this,type:"updated",action:t})})},Jh);function fb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var xn,Lt,Ri,ep,hb=(ep=class extends Ai{constructor(t={}){super();te(this,xn);te(this,Lt);te(this,Ri);this.config=t,q(this,xn,new Set),q(this,Lt,new Map),q(this,Ri,0)}build(t,n,s){const r=new db({client:t,mutationCache:this,mutationId:++zi(this,Ri)._,options:t.defaultMutationOptions(n),state:s});return this.add(r),r}add(t){C(this,xn).add(t);const n=Wi(t);if(typeof n=="string"){const s=C(this,Lt).get(n);s?s.push(t):C(this,Lt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(C(this,xn).delete(t)){const n=Wi(t);if(typeof n=="string"){const s=C(this,Lt).get(n);if(s)if(s.length>1){const r=s.indexOf(t);r!==-1&&s.splice(r,1)}else s[0]===t&&C(this,Lt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Wi(t);if(typeof n=="string"){const s=C(this,Lt).get(n),r=s==null?void 0:s.find(i=>i.state.status==="pending");return!r||r===t}else return!0}runNext(t){var s;const n=Wi(t);if(typeof n=="string"){const r=(s=C(this,Lt).get(n))==null?void 0:s.find(i=>i!==t&&i.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ze.batch(()=>{C(this,xn).forEach(t=>{this.notify({type:"removed",mutation:t})}),C(this,xn).clear(),C(this,Lt).clear()})}getAll(){return Array.from(C(this,xn))}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Qu(n,s))}findAll(t={}){return this.getAll().filter(n=>Qu(t,n))}notify(t){Ze.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ze.batch(()=>Promise.all(t.map(n=>n.continue().catch(pt))))}},xn=new WeakMap,Lt=new WeakMap,Ri=new WeakMap,ep);function Wi(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Qt,tp,pb=(tp=class extends Ai{constructor(t={}){super();te(this,Qt);this.config=t,q(this,Qt,new Map)}build(t,n,s){const r=n.queryKey,i=n.queryHash??pc(r,n);let o=this.get(i);return o||(o=new ob({client:t,queryKey:r,queryHash:i,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(r)}),this.add(o)),o}add(t){C(this,Qt).has(t.queryHash)||(C(this,Qt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,Qt).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,Qt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ze.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,Qt).get(t)}getAll(){return[...C(this,Qt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Yu(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>Yu(t,s)):n}notify(t){Ze.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ze.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ze.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Qt=new WeakMap,tp),ke,Bn,$n,rr,ir,zn,or,ar,np,AO=(np=class{constructor(e={}){te(this,ke);te(this,Bn);te(this,$n);te(this,rr);te(this,ir);te(this,zn);te(this,or);te(this,ar);q(this,ke,e.queryCache||new pb),q(this,Bn,e.mutationCache||new hb),q(this,$n,e.defaultOptions||{}),q(this,rr,new Map),q(this,ir,new Map),q(this,zn,0)}mount(){zi(this,zn)._++,C(this,zn)===1&&(q(this,or,gc.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,ke).onFocus())})),q(this,ar,go.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,ke).onOnline())})))}unmount(){var e,t;zi(this,zn)._--,C(this,zn)===0&&((e=C(this,or))==null||e.call(this),q(this,or,void 0),(t=C(this,ar))==null||t.call(this),q(this,ar,void 0))}isFetching(e){return C(this,ke).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Bn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,ke).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=C(this,ke).build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Un(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return C(this,ke).findAll(e).map(({queryKey:t,state:n})=>{const s=n.data;return[t,s]})}setQueryData(e,t,n){const s=this.defaultQueryOptions({queryKey:e}),r=C(this,ke).get(s.queryHash),i=r==null?void 0:r.state.data,o=Gx(t,i);if(o!==void 0)return C(this,ke).build(this,s).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Ze.batch(()=>C(this,ke).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,ke).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,ke);Ze.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,ke);return Ze.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=Ze.batch(()=>C(this,ke).findAll(e).map(r=>r.cancel(n)));return Promise.all(s).then(pt).catch(pt)}invalidateQueries(e,t={}){return Ze.batch(()=>(C(this,ke).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},s=Ze.batch(()=>C(this,ke).findAll(e).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let i=r.fetch(void 0,n);return n.throwOnError||(i=i.catch(pt)),r.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(s).then(pt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,ke).build(this,t);return n.isStaleByTime(Un(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(pt).catch(pt)}fetchInfiniteQuery(e){return e.behavior=id(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(pt).catch(pt)}ensureInfiniteQueryData(e){return e.behavior=id(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return go.isOnline()?C(this,Bn).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,ke)}getMutationCache(){return C(this,Bn)}getDefaultOptions(){return C(this,$n)}setDefaultOptions(e){q(this,$n,e)}setQueryDefaults(e,t){C(this,rr).set(Gr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,rr).values()],n={};return t.forEach(s=>{Xr(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){C(this,ir).set(Gr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,ir).values()],n={};return t.forEach(s=>{Xr(e,s.mutationKey)&&Object.assign(n,s.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,$n).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=pc(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===mc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,$n).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,ke).clear(),C(this,Bn).clear()}},ke=new WeakMap,Bn=new WeakMap,$n=new WeakMap,rr=new WeakMap,ir=new WeakMap,zn=new WeakMap,or=new WeakMap,ar=new WeakMap,np),hp=m.createContext(void 0),mb=e=>{const t=m.useContext(hp);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},NO=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(hp.Provider,{value:e,children:t})),pp=m.createContext(!1),gb=()=>m.useContext(pp);pp.Provider;function yb(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var vb=m.createContext(yb()),xb=()=>m.useContext(vb),bb=(e,t,n)=>{const s=n!=null&&n.state.error&&typeof e.throwOnError=="function"?ap(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||s)&&(t.isReset()||(e.retryOnMount=!1))},wb=e=>{m.useEffect(()=>{e.clearReset()},[e])},Sb=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(r&&e.data===void 0||ap(n,[e.error,s])),_b=e=>{if(e.suspense){const n=r=>r==="static"?r:Math.max(r??1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...r)=>n(s(...r)):n(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Eb=(e,t)=>e.isLoading&&e.isFetching&&!t,Cb=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,ad=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Tb(e,t,n){var h,y,g,p;const s=gb(),r=xb(),i=mb(),o=i.defaultQueryOptions(e);(y=(h=i.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||y.call(h,o);const a=i.getQueryCache().get(o.queryHash);o._optimisticResults=s?"isRestoring":"optimistic",_b(o),bb(o,r,a),wb(r);const l=!i.getQueryCache().get(o.queryHash),[c]=m.useState(()=>new t(i,o)),u=c.getOptimisticResult(o),d=!s&&e.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(v=>{const x=d?c.subscribe(Ze.batchCalls(v)):pt;return c.updateResult(),x},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),m.useEffect(()=>{c.setOptions(o)},[o,c]),Cb(o,u))throw ad(o,c,r);if(Sb({result:u,errorResetBoundary:r,throwOnError:o.throwOnError,query:a,suspense:o.suspense}))throw u.error;if((p=(g=i.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||p.call(g,o,u),o.experimental_prefetchInRender&&!_s&&Eb(u,s)){const v=l?ad(o,c,r):a==null?void 0:a.promise;v==null||v.catch(pt).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?u:c.trackResult(u)}function Tn(e,t){return Tb(e,ab)}function xt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function ld(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function mp(...e){return t=>{let n=!1;const s=e.map(r=>{const i=ld(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<s.length;r++){const i=s[r];typeof i=="function"?i():ld(e[r],null)}}}}function Wt(...e){return m.useCallback(mp(...e),e)}function Rb(e,t){const n=m.createContext(t),s=i=>{const{children:o,...a}=i,l=m.useMemo(()=>a,Object.values(a));return f.jsx(n.Provider,{value:l,children:o})};s.displayName=e+"Provider";function r(i){const o=m.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[s,r]}function vc(e,t=[]){let n=[];function s(i,o){const a=m.createContext(o),l=n.length;n=[...n,o];const c=d=>{var x;const{scope:h,children:y,...g}=d,p=((x=h==null?void 0:h[e])==null?void 0:x[l])||a,v=m.useMemo(()=>g,Object.values(g));return f.jsx(p.Provider,{value:v,children:y})};c.displayName=i+"Provider";function u(d,h){var p;const y=((p=h==null?void 0:h[e])==null?void 0:p[l])||a,g=m.useContext(y);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const r=()=>{const i=n.map(o=>m.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return r.scopeName=e,[s,Ab(r,...t)]}function Ab(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const o=s.reduce((a,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...a,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var Nb=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},Pb=fc.useId||(()=>{}),kb=0;function so(e){const[t,n]=m.useState(Pb());return Nb(()=>{n(s=>s??String(kb++))},[e]),t?`radix-${t}`:""}function gp(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function yp({prop:e,defaultProp:t,onChange:n=()=>{}}){const[s,r]=jb({defaultProp:t,onChange:n}),i=e!==void 0,o=i?e:s,a=gp(n),l=m.useCallback(c=>{if(i){const d=typeof c=="function"?c(e):c;d!==e&&a(d)}else r(c)},[i,e,r,a]);return[o,l]}function jb({defaultProp:e,onChange:t}){const n=m.useState(e),[s]=n,r=m.useRef(s),i=gp(t);return m.useEffect(()=>{r.current!==s&&(i(s),r.current=s)},[s,r,i]),n}var yr=m.forwardRef((e,t)=>{const{children:n,...s}=e,r=m.Children.toArray(n),i=r.find(Mb);if(i){const o=i.props.children,a=r.map(l=>l===i?m.Children.count(o)>1?m.Children.only(null):m.isValidElement(o)?o.props.children:null:l);return f.jsx(pl,{...s,ref:t,children:m.isValidElement(o)?m.cloneElement(o,void 0,a):null})}return f.jsx(pl,{...s,ref:t,children:n})});yr.displayName="Slot";var pl=m.forwardRef((e,t)=>{const{children:n,...s}=e;if(m.isValidElement(n)){const r=Lb(n),i=Db(s,n.props);return n.type!==m.Fragment&&(i.ref=t?mp(t,r):r),m.cloneElement(n,i)}return m.Children.count(n)>1?m.Children.only(null):null});pl.displayName="SlotClone";var Ob=({children:e})=>f.jsx(f.Fragment,{children:e});function Mb(e){return m.isValidElement(e)&&e.type===Ob}function Db(e,t){const n={...t};for(const s in t){const r=e[s],i=t[s];/^on[A-Z]/.test(s)?r&&i?n[s]=(...a)=>{i(...a),r(...a)}:r&&(n[s]=r):s==="style"?n[s]={...r,...i}:s==="className"&&(n[s]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function Lb(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ib=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ut=Ib.reduce((e,t)=>{const n=m.forwardRef((s,r)=>{const{asChild:i,...o}=s,a=i?yr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(a,{...o,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Fb(e,t){e&&hc.flushSync(()=>e.dispatchEvent(t))}function vp(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function Vb(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function Bb(e,t=globalThis==null?void 0:globalThis.document){const n=Vb(e);m.useEffect(()=>{const s=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[n,t])}var $b="DismissableLayer",ml="dismissableLayer.update",zb="dismissableLayer.pointerDownOutside",Ub="dismissableLayer.focusOutside",cd,xp=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xc=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,c=m.useContext(xp),[u,d]=m.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=m.useState({}),g=Wt(t,R=>d(R)),p=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),x=p.indexOf(v),b=u?p.indexOf(u):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,_=b>=x,S=qb(R=>{const A=R.target,P=[...c.branches].some(O=>O.contains(A));!_||P||(r==null||r(R),o==null||o(R),R.defaultPrevented||a==null||a())},h),T=Zb(R=>{const A=R.target;[...c.branches].some(O=>O.contains(A))||(i==null||i(R),o==null||o(R),R.defaultPrevented||a==null||a())},h);return Bb(R=>{b===c.layers.size-1&&(s==null||s(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},h),m.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(cd=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),ud(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=cd)}},[u,h,n,c]),m.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),ud())},[u,c]),m.useEffect(()=>{const R=()=>y({});return document.addEventListener(ml,R),()=>document.removeEventListener(ml,R)},[]),f.jsx(ut.div,{...l,ref:g,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:xt(e.onFocusCapture,T.onFocusCapture),onBlurCapture:xt(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:xt(e.onPointerDownCapture,S.onPointerDownCapture)})});xc.displayName=$b;var Wb="DismissableLayerBranch",Hb=m.forwardRef((e,t)=>{const n=m.useContext(xp),s=m.useRef(null),r=Wt(t,s);return m.useEffect(()=>{const i=s.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),f.jsx(ut.div,{...e,ref:r})});Hb.displayName=Wb;function qb(e,t=globalThis==null?void 0:globalThis.document){const n=vp(e),s=m.useRef(!1),r=m.useRef(()=>{});return m.useEffect(()=>{const i=a=>{if(a.target&&!s.current){let l=function(){bp(zb,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=l,t.addEventListener("click",r.current,{once:!0})):l()}else t.removeEventListener("click",r.current);s.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function Zb(e,t=globalThis==null?void 0:globalThis.document){const n=vp(e),s=m.useRef(!1);return m.useEffect(()=>{const r=i=>{i.target&&!s.current&&bp(Ub,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function ud(){const e=new CustomEvent(ml);document.dispatchEvent(e)}function bp(e,t,n,{discrete:s}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),s?Fb(r,i):r.dispatchEvent(i)}function dd(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}var Sa="focusScope.autoFocusOnMount",_a="focusScope.autoFocusOnUnmount",fd={bubbles:!1,cancelable:!0},Kb="FocusScope",bc=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...o}=e,[a,l]=m.useState(null),c=dd(r),u=dd(i),d=m.useRef(null),h=Wt(t,p=>l(p)),y=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(s){let p=function(w){if(y.paused||!a)return;const _=w.target;a.contains(_)?d.current=_:jn(d.current,{select:!0})},v=function(w){if(y.paused||!a)return;const _=w.relatedTarget;_!==null&&(a.contains(_)||jn(d.current,{select:!0}))},x=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&jn(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const b=new MutationObserver(x);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),b.disconnect()}}},[s,a,y.paused]),m.useEffect(()=>{if(a){pd.add(y);const p=document.activeElement;if(!a.contains(p)){const x=new CustomEvent(Sa,fd);a.addEventListener(Sa,c),a.dispatchEvent(x),x.defaultPrevented||(Gb(ew(wp(a)),{select:!0}),document.activeElement===p&&jn(a))}return()=>{a.removeEventListener(Sa,c),setTimeout(()=>{const x=new CustomEvent(_a,fd);a.addEventListener(_a,u),a.dispatchEvent(x),x.defaultPrevented||jn(p??document.body,{select:!0}),a.removeEventListener(_a,u),pd.remove(y)},0)}}},[a,c,u,y]);const g=m.useCallback(p=>{if(!n&&!s||y.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,x=document.activeElement;if(v&&x){const b=p.currentTarget,[w,_]=Xb(b);w&&_?!p.shiftKey&&x===_?(p.preventDefault(),n&&jn(w,{select:!0})):p.shiftKey&&x===w&&(p.preventDefault(),n&&jn(_,{select:!0})):x===b&&p.preventDefault()}},[n,s,y.paused]);return f.jsx(ut.div,{tabIndex:-1,...o,ref:h,onKeyDown:g})});bc.displayName=Kb;function Gb(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(jn(s,{select:t}),document.activeElement!==n)return}function Xb(e){const t=wp(e),n=hd(t,e),s=hd(t.reverse(),e);return[n,s]}function wp(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const r=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||r?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function hd(e,t){for(const n of e)if(!Yb(n,{upTo:t}))return n}function Yb(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 Qb(e){return e instanceof HTMLInputElement&&"select"in e}function jn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Qb(e)&&t&&e.select()}}var pd=Jb();function Jb(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=md(e,t),e.unshift(t)},remove(t){var n;e=md(e,t),(n=e[0])==null||n.resume()}}}function md(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function ew(e){return e.filter(t=>t.tagName!=="A")}var tw=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},nw="Portal",wc=m.forwardRef((e,t)=>{var a;const{container:n,...s}=e,[r,i]=m.useState(!1);tw(()=>i(!0),[]);const o=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?sp.createPortal(f.jsx(ut.div,{...s,ref:t}),o):null});wc.displayName=nw;var gd=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{};function sw(e,t){return m.useReducer((n,s)=>t[n][s]??n,e)}var vr=e=>{const{present:t,children:n}=e,s=rw(t),r=typeof n=="function"?n({present:s.isPresent}):m.Children.only(n),i=Wt(s.ref,iw(r));return typeof n=="function"||s.isPresent?m.cloneElement(r,{ref:i}):null};vr.displayName="Presence";function rw(e){const[t,n]=m.useState(),s=m.useRef({}),r=m.useRef(e),i=m.useRef("none"),o=e?"mounted":"unmounted",[a,l]=sw(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const c=Hi(s.current);i.current=a==="mounted"?c:"none"},[a]),gd(()=>{const c=s.current,u=r.current;if(u!==e){const h=i.current,y=Hi(c);e?l("MOUNT"):y==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==y?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),gd(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=y=>{const p=Hi(s.current).includes(y.animationName);if(y.target===t&&p&&(l("ANIMATION_END"),!r.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=y=>{y.target===t&&(i.current=Hi(s.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(c=>{c&&(s.current=getComputedStyle(c)),n(c)},[])}}function Hi(e){return(e==null?void 0:e.animationName)||"none"}function iw(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ea=0;function Sp(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??yd()),document.body.insertAdjacentElement("beforeend",e[1]??yd()),Ea++,()=>{Ea===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ea--}},[])}function yd(){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 en=function(){return en=Object.assign||function(t){for(var n,s=1,r=arguments.length;s<r;s++){n=arguments[s];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},en.apply(this,arguments)};function _p(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(e);r<s.length;r++)t.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(e,s[r])&&(n[s[r]]=e[s[r]]);return n}function ow(e,t,n){if(n||arguments.length===2)for(var s=0,r=t.length,i;s<r;s++)(i||!(s in t))&&(i||(i=Array.prototype.slice.call(t,0,s)),i[s]=t[s]);return e.concat(i||Array.prototype.slice.call(t))}var ro="right-scroll-bar-position",io="width-before-scroll-bar",aw="with-scroll-bars-hidden",lw="--removed-body-scroll-bar-size";function Ca(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function cw(e,t){var n=m.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(s){var r=n.value;r!==s&&(n.value=s,n.callback(s,r))}}}})[0];return n.callback=t,n.facade}var uw=typeof window<"u"?m.useLayoutEffect:m.useEffect,vd=new WeakMap;function dw(e,t){var n=cw(null,function(s){return e.forEach(function(r){return Ca(r,s)})});return uw(function(){var s=vd.get(n);if(s){var r=new Set(s),i=new Set(e),o=n.current;r.forEach(function(a){i.has(a)||Ca(a,null)}),i.forEach(function(a){r.has(a)||Ca(a,o)})}vd.set(n,e)},[e]),n}function fw(e){return e}function hw(e,t){t===void 0&&(t=fw);var n=[],s=!1,r={read:function(){if(s)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,s);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(i){for(s=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){s=!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 r}function pw(e){e===void 0&&(e={});var t=hw(null);return t.options=en({async:!0,ssr:!1},e),t}var Ep=function(e){var t=e.sideCar,n=_p(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return m.createElement(s,en({},n))};Ep.isSideCarExport=!0;function mw(e,t){return e.useMedium(t),Ep}var Cp=pw(),Ta=function(){},qo=m.forwardRef(function(e,t){var n=m.useRef(null),s=m.useState({onScrollCapture:Ta,onWheelCapture:Ta,onTouchMoveCapture:Ta}),r=s[0],i=s[1],o=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,y=e.noIsolation,g=e.inert,p=e.allowPinchZoom,v=e.as,x=v===void 0?"div":v,b=e.gapMode,w=_p(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=h,S=dw([n,t]),T=en(en({},w),r);return m.createElement(m.Fragment,null,u&&m.createElement(_,{sideCar:Cp,removeScrollBar:c,shards:d,noIsolation:y,inert:g,setCallbacks:i,allowPinchZoom:!!p,lockRef:n,gapMode:b}),o?m.cloneElement(m.Children.only(a),en(en({},T),{ref:S})):m.createElement(x,en({},T,{className:l,ref:S}),a))});qo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};qo.classNames={fullWidth:io,zeroRight:ro};var gw=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function yw(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=gw();return t&&e.setAttribute("nonce",t),e}function vw(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function xw(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var bw=function(){var e=0,t=null;return{add:function(n){e==0&&(t=yw())&&(vw(t,n),xw(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ww=function(){var e=bw();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Tp=function(){var e=ww(),t=function(n){var s=n.styles,r=n.dynamic;return e(s,r),null};return t},Sw={left:0,top:0,right:0,gap:0},Ra=function(e){return parseInt(e||"",10)||0},_w=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Ra(n),Ra(s),Ra(r)]},Ew=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Sw;var t=_w(e),n=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-n+t[2]-t[0])}},Cw=Tp(),qs="data-scroll-locked",Tw=function(e,t,n,s){var r=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),`
.`.concat(aw,` {
overflow: hidden `).concat(s,`;
padding-right: `).concat(a,"px ").concat(s,`;
}
body[`).concat(qs,`] {
overflow: hidden `).concat(s,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(s,";"),n==="margin"&&`
padding-left: `.concat(r,`px;
padding-top: `).concat(i,`px;
padding-right: `).concat(o,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(a,"px ").concat(s,`;
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(s,";")].filter(Boolean).join(""),`
}
.`).concat(ro,` {
right: `).concat(a,"px ").concat(s,`;
}
.`).concat(io,` {
margin-right: `).concat(a,"px ").concat(s,`;
}
.`).concat(ro," .").concat(ro,` {
right: 0 `).concat(s,`;
}
.`).concat(io," .").concat(io,` {
margin-right: 0 `).concat(s,`;
}
body[`).concat(qs,`] {
`).concat(lw,": ").concat(a,`px;
}
`)},xd=function(){var e=parseInt(document.body.getAttribute(qs)||"0",10);return isFinite(e)?e:0},Rw=function(){m.useEffect(function(){return document.body.setAttribute(qs,(xd()+1).toString()),function(){var e=xd()-1;e<=0?document.body.removeAttribute(qs):document.body.setAttribute(qs,e.toString())}},[])},Aw=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,r=s===void 0?"margin":s;Rw();var i=m.useMemo(function(){return Ew(r)},[r]);return m.createElement(Cw,{styles:Tw(i,!t,r,n?"":"!important")})},gl=!1;if(typeof window<"u")try{var qi=Object.defineProperty({},"passive",{get:function(){return gl=!0,!0}});window.addEventListener("test",qi,qi),window.removeEventListener("test",qi,qi)}catch{gl=!1}var Ds=gl?{passive:!1}:!1,Nw=function(e){return e.tagName==="TEXTAREA"},Rp=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Nw(e)&&n[t]==="visible")},Pw=function(e){return Rp(e,"overflowY")},kw=function(e){return Rp(e,"overflowX")},bd=function(e,t){var n=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var r=Ap(e,s);if(r){var i=Np(e,s),o=i[1],a=i[2];if(o>a)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},jw=function(e){var t=e.scrollTop,n=e.scrollHeight,s=e.clientHeight;return[t,n,s]},Ow=function(e){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;return[t,n,s]},Ap=function(e,t){return e==="v"?Pw(t):kw(t)},Np=function(e,t){return e==="v"?jw(t):Ow(t)},Mw=function(e,t){return e==="h"&&t==="rtl"?-1:1},Dw=function(e,t,n,s,r){var i=Mw(e,window.getComputedStyle(t).direction),o=i*s,a=n.target,l=t.contains(a),c=!1,u=o>0,d=0,h=0;do{var y=Np(e,a),g=y[0],p=y[1],v=y[2],x=p-v-i*g;(g||x)&&Ap(e,a)&&(d+=x,h+=g),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(h)<1)&&(c=!0),c},Zi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},wd=function(e){return[e.deltaX,e.deltaY]},Sd=function(e){return e&&"current"in e?e.current:e},Lw=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Iw=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},Fw=0,Ls=[];function Vw(e){var t=m.useRef([]),n=m.useRef([0,0]),s=m.useRef(),r=m.useState(Fw++)[0],i=m.useState(Tp)[0],o=m.useRef(e);m.useEffect(function(){o.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var p=ow([e.lockRef.current],(e.shards||[]).map(Sd),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=m.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!o.current.allowPinchZoom;var x=Zi(p),b=n.current,w="deltaX"in p?p.deltaX:b[0]-x[0],_="deltaY"in p?p.deltaY:b[1]-x[1],S,T=p.target,R=Math.abs(w)>Math.abs(_)?"h":"v";if("touches"in p&&R==="h"&&T.type==="range")return!1;var A=bd(R,T);if(!A)return!0;if(A?S=R:(S=R==="v"?"h":"v",A=bd(R,T)),!A)return!1;if(!s.current&&"changedTouches"in p&&(w||_)&&(s.current=S),!S)return!0;var P=s.current||S;return Dw(P,v,p,P==="h"?w:_)},[]),l=m.useCallback(function(p){var v=p;if(!(!Ls.length||Ls[Ls.length-1]!==i)){var x="deltaY"in v?wd(v):Zi(v),b=t.current.filter(function(S){return S.name===v.type&&(S.target===v.target||v.target===S.shadowParent)&&Lw(S.delta,x)})[0];if(b&&b.should){v.cancelable&&v.preventDefault();return}if(!b){var w=(o.current.shards||[]).map(Sd).filter(Boolean).filter(function(S){return S.contains(v.target)}),_=w.length>0?a(v,w[0]):!o.current.noIsolation;_&&v.cancelable&&v.preventDefault()}}},[]),c=m.useCallback(function(p,v,x,b){var w={name:p,delta:v,target:x,should:b,shadowParent:Bw(x)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(_){return _!==w})},1)},[]),u=m.useCallback(function(p){n.current=Zi(p),s.current=void 0},[]),d=m.useCallback(function(p){c(p.type,wd(p),p.target,a(p,e.lockRef.current))},[]),h=m.useCallback(function(p){c(p.type,Zi(p),p.target,a(p,e.lockRef.current))},[]);m.useEffect(function(){return Ls.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Ds),document.addEventListener("touchmove",l,Ds),document.addEventListener("touchstart",u,Ds),function(){Ls=Ls.filter(function(p){return p!==i}),document.removeEventListener("wheel",l,Ds),document.removeEventListener("touchmove",l,Ds),document.removeEventListener("touchstart",u,Ds)}},[]);var y=e.removeScrollBar,g=e.inert;return m.createElement(m.Fragment,null,g?m.createElement(i,{styles:Iw(r)}):null,y?m.createElement(Aw,{gapMode:e.gapMode}):null)}function Bw(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const $w=mw(Cp,Vw);var Sc=m.forwardRef(function(e,t){return m.createElement(qo,en({},e,{ref:t,sideCar:$w}))});Sc.classNames=qo.classNames;var zw=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Is=new WeakMap,Ki=new WeakMap,Gi={},Aa=0,Pp=function(e){return e&&(e.host||Pp(e.parentNode))},Uw=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=Pp(n);return s&&e.contains(s)?s:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Ww=function(e,t,n,s){var r=Uw(t,Array.isArray(e)?e:[e]);Gi[n]||(Gi[n]=new WeakMap);var i=Gi[n],o=[],a=new Set,l=new Set(r),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};r.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))u(h);else try{var y=h.getAttribute(s),g=y!==null&&y!=="false",p=(Is.get(h)||0)+1,v=(i.get(h)||0)+1;Is.set(h,p),i.set(h,v),o.push(h),p===1&&g&&Ki.set(h,!0),v===1&&h.setAttribute(n,"true"),g||h.setAttribute(s,"true")}catch(x){console.error("aria-hidden: cannot operate on ",h,x)}})};return u(t),a.clear(),Aa++,function(){o.forEach(function(d){var h=Is.get(d)-1,y=i.get(d)-1;Is.set(d,h),i.set(d,y),h||(Ki.has(d)||d.removeAttribute(s),Ki.delete(d)),y||d.removeAttribute(n)}),Aa--,Aa||(Is=new WeakMap,Is=new WeakMap,Ki=new WeakMap,Gi={})}},kp=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),r=zw(e);return r?(s.push.apply(s,Array.from(r.querySelectorAll("[aria-live]"))),Ww(s,r,n,"aria-hidden")):function(){return null}},_c="Dialog",[jp,PO]=vc(_c),[Hw,Ht]=jp(_c),Op=e=>{const{__scopeDialog:t,children:n,open:s,defaultOpen:r,onOpenChange:i,modal:o=!0}=e,a=m.useRef(null),l=m.useRef(null),[c=!1,u]=yp({prop:s,defaultProp:r,onChange:i});return f.jsx(Hw,{scope:t,triggerRef:a,contentRef:l,contentId:so(),titleId:so(),descriptionId:so(),open:c,onOpenChange:u,onOpenToggle:m.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};Op.displayName=_c;var Mp="DialogTrigger",Dp=m.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ht(Mp,n),i=Wt(t,r.triggerRef);return f.jsx(ut.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Tc(r.open),...s,ref:i,onClick:xt(e.onClick,r.onOpenToggle)})});Dp.displayName=Mp;var Ec="DialogPortal",[qw,Lp]=jp(Ec,{forceMount:void 0}),Ip=e=>{const{__scopeDialog:t,forceMount:n,children:s,container:r}=e,i=Ht(Ec,t);return f.jsx(qw,{scope:t,forceMount:n,children:m.Children.map(s,o=>f.jsx(vr,{present:n||i.open,children:f.jsx(wc,{asChild:!0,container:r,children:o})}))})};Ip.displayName=Ec;var yo="DialogOverlay",Fp=m.forwardRef((e,t)=>{const n=Lp(yo,e.__scopeDialog),{forceMount:s=n.forceMount,...r}=e,i=Ht(yo,e.__scopeDialog);return i.modal?f.jsx(vr,{present:s||i.open,children:f.jsx(Zw,{...r,ref:t})}):null});Fp.displayName=yo;var Zw=m.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ht(yo,n);return f.jsx(Sc,{as:yr,allowPinchZoom:!0,shards:[r.contentRef],children:f.jsx(ut.div,{"data-state":Tc(r.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),Es="DialogContent",Vp=m.forwardRef((e,t)=>{const n=Lp(Es,e.__scopeDialog),{forceMount:s=n.forceMount,...r}=e,i=Ht(Es,e.__scopeDialog);return f.jsx(vr,{present:s||i.open,children:i.modal?f.jsx(Kw,{...r,ref:t}):f.jsx(Gw,{...r,ref:t})})});Vp.displayName=Es;var Kw=m.forwardRef((e,t)=>{const n=Ht(Es,e.__scopeDialog),s=m.useRef(null),r=Wt(t,n.contentRef,s);return m.useEffect(()=>{const i=s.current;if(i)return kp(i)},[]),f.jsx(Bp,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:xt(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:xt(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:xt(e.onFocusOutside,i=>i.preventDefault())})}),Gw=m.forwardRef((e,t)=>{const n=Ht(Es,e.__scopeDialog),s=m.useRef(!1),r=m.useRef(!1);return f.jsx(Bp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(s.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),s.current=!1,r.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(s.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const o=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),Bp=m.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:s,onOpenAutoFocus:r,onCloseAutoFocus:i,...o}=e,a=Ht(Es,n),l=m.useRef(null),c=Wt(t,l);return Sp(),f.jsxs(f.Fragment,{children:[f.jsx(bc,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:r,onUnmountAutoFocus:i,children:f.jsx(xc,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Tc(a.open),...o,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(Xw,{titleId:a.titleId}),f.jsx(Qw,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Cc="DialogTitle",$p=m.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ht(Cc,n);return f.jsx(ut.h2,{id:r.titleId,...s,ref:t})});$p.displayName=Cc;var zp="DialogDescription",Up=m.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ht(zp,n);return f.jsx(ut.p,{id:r.descriptionId,...s,ref:t})});Up.displayName=zp;var Wp="DialogClose",Hp=m.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ht(Wp,n);return f.jsx(ut.button,{type:"button",...s,ref:t,onClick:xt(e.onClick,()=>r.onOpenChange(!1))})});Hp.displayName=Wp;function Tc(e){return e?"open":"closed"}var qp="DialogTitleWarning",[kO,Zp]=Rb(qp,{contentName:Es,titleName:Cc,docsSlug:"dialog"}),Xw=({titleId:e})=>{const t=Zp(qp),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 m.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Yw="DialogDescriptionWarning",Qw=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Zp(Yw).contentName}}.`;return m.useEffect(()=>{var i;const r=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},Kp=Op,Gp=Dp,Xp=Ip,Zo=Fp,Ko=Vp,Go=$p,Xo=Up,Rc=Hp;function Yp(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Yp(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function Qp(){for(var e,t,n=0,s="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Yp(e))&&(s&&(s+=" "),s+=t);return s}const _d=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ed=Qp,Yo=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return Ed(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:i}=t,o=Object.keys(r).map(c=>{const u=n==null?void 0:n[c],d=i==null?void 0:i[c];if(u===null)return null;const h=_d(u)||_d(d);return r[c][h]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,h]=u;return h===void 0||(c[d]=h),c},{}),l=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((c,u)=>{let{class:d,className:h,...y}=u;return Object.entries(y).every(g=>{let[p,v]=g;return Array.isArray(v)?v.includes({...i,...a}[p]):{...i,...a}[p]===v})?[...c,d,h]:c},[]);return Ed(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 Jw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Jp=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.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 e0={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 t0=m.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:r="",children:i,iconNode:o,...a},l)=>m.createElement("svg",{ref:l,...e0,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:Jp("lucide",r),...a},[...o.map(([c,u])=>m.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=m.forwardRef(({className:s,...r},i)=>m.createElement(t0,{ref:i,iconNode:t,className:Jp(`lucide-${Jw(e)}`,s),...r}));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 n0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],s0=Ct("ArrowRight",n0);/**
* @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 r0=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],i0=Ct("ArrowUpRight",r0);/**
* @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 o0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],a0=Ct("ChevronDown",o0);/**
* @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 l0=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],yl=Ct("ChevronLeft",l0);/**
* @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 c0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],em=Ct("ChevronRight",c0);/**
* @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 u0=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],d0=Ct("Facebook",u0);/**
* @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 f0=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],tm=Ct("LoaderCircle",f0);/**
* @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 h0=[["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"}]],jO=Ct("Loader",h0);/**
* @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 p0=[["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"}]],m0=Ct("MapPin",p0);/**
* @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 g0=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],OO=Ct("Play",g0);/**
* @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 y0=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],v0=Ct("Smartphone",y0);/**
* @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 x0=[["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"}]],b0=Ct("Upload",x0);/**
* @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 w0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ac=Ct("X",w0),Nc="-",S0=e=>{const t=E0(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:o=>{const a=o.split(Nc);return a[0]===""&&a.length!==1&&a.shift(),nm(a,t)||_0(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&s[o]?[...l,...s[o]]:l}}},nm=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],s=t.nextPart.get(n),r=s?nm(e.slice(1),s):void 0;if(r)return r;if(t.validators.length===0)return;const i=e.join(Nc);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},Cd=/^\[(.+)\]$/,_0=e=>{if(Cd.test(e)){const t=Cd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},E0=e=>{const{theme:t,prefix:n}=e,s={nextPart:new Map,validators:[]};return T0(Object.entries(e.classGroups),n).forEach(([i,o])=>{vl(o,s,i,t)}),s},vl=(e,t,n,s)=>{e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:Td(t,r);i.classGroupId=n;return}if(typeof r=="function"){if(C0(r)){vl(r(s),t,n,s);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([i,o])=>{vl(o,Td(t,i),n,s)})})},Td=(e,t)=>{let n=e;return t.split(Nc).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},C0=e=>e.isThemeGetter,T0=(e,t)=>t?e.map(([n,s])=>{const r=s.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,r]}):e,R0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,s=new Map;const r=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,s=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=s.get(i))!==void 0)return r(i,o),o},set(i,o){n.has(i)?n.set(i,o):r(i,o)}}},sm="!",A0=e=>{const{separator:t,experimentalParseClassName:n}=e,s=t.length===1,r=t[0],i=t.length,o=a=>{const l=[];let c=0,u=0,d;for(let v=0;v<a.length;v++){let x=a[v];if(c===0){if(x===r&&(s||a.slice(v,v+i)===t)){l.push(a.slice(u,v)),u=v+i;continue}if(x==="/"){d=v;continue}}x==="["?c++:x==="]"&&c--}const h=l.length===0?a:a.substring(u),y=h.startsWith(sm),g=y?h.substring(1):h,p=d&&d>u?d-u:void 0;return{modifiers:l,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:p}};return n?a=>n({className:a,parseClassName:o}):o},N0=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(s=>{s[0]==="["?(t.push(...n.sort(),s),n=[]):n.push(s)}),t.push(...n.sort()),t},P0=e=>({cache:R0(e.cacheSize),parseClassName:A0(e),...S0(e)}),k0=/\s+/,j0=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:r}=t,i=[],o=e.trim().split(k0);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:u,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:y}=n(c);let g=!!y,p=s(g?h.substring(0,y):h);if(!p){if(!g){a=c+(a.length>0?" "+a:a);continue}if(p=s(h),!p){a=c+(a.length>0?" "+a:a);continue}g=!1}const v=N0(u).join(":"),x=d?v+sm:v,b=x+p;if(i.includes(b))continue;i.push(b);const w=r(p,g);for(let _=0;_<w.length;++_){const S=w[_];i.push(x+S)}a=c+(a.length>0?" "+a:a)}return a};function O0(){let e=0,t,n,s="";for(;e<arguments.length;)(t=arguments[e++])&&(n=rm(t))&&(s&&(s+=" "),s+=n);return s}const rm=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=rm(e[s]))&&(n&&(n+=" "),n+=t);return n};function M0(e,...t){let n,s,r,i=o;function o(l){const c=t.reduce((u,d)=>d(u),e());return n=P0(c),s=n.cache.get,r=n.cache.set,i=a,a(l)}function a(l){const c=s(l);if(c)return c;const u=j0(l,n);return r(l,u),u}return function(){return i(O0.apply(null,arguments))}}const Re=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},im=/^\[(?:([a-z-]+):)?(.+)\]$/i,D0=/^\d+\/\d+$/,L0=new Set(["px","full","screen"]),I0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,F0=/\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$/,V0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,B0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,hn=e=>Zs(e)||L0.has(e)||D0.test(e),An=e=>xr(e,"length",G0),Zs=e=>!!e&&!Number.isNaN(Number(e)),Na=e=>xr(e,"number",Zs),Nr=e=>!!e&&Number.isInteger(Number(e)),z0=e=>e.endsWith("%")&&Zs(e.slice(0,-1)),ce=e=>im.test(e),Nn=e=>I0.test(e),U0=new Set(["length","size","percentage"]),W0=e=>xr(e,U0,om),H0=e=>xr(e,"position",om),q0=new Set(["image","url"]),Z0=e=>xr(e,q0,Y0),K0=e=>xr(e,"",X0),Pr=()=>!0,xr=(e,t,n)=>{const s=im.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):n(s[2]):!1},G0=e=>F0.test(e)&&!V0.test(e),om=()=>!1,X0=e=>B0.test(e),Y0=e=>$0.test(e),Q0=()=>{const e=Re("colors"),t=Re("spacing"),n=Re("blur"),s=Re("brightness"),r=Re("borderColor"),i=Re("borderRadius"),o=Re("borderSpacing"),a=Re("borderWidth"),l=Re("contrast"),c=Re("grayscale"),u=Re("hueRotate"),d=Re("invert"),h=Re("gap"),y=Re("gradientColorStops"),g=Re("gradientColorStopPositions"),p=Re("inset"),v=Re("margin"),x=Re("opacity"),b=Re("padding"),w=Re("saturate"),_=Re("scale"),S=Re("sepia"),T=Re("skew"),R=Re("space"),A=Re("translate"),P=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",ce,t],M=()=>[ce,t],z=()=>["",hn,An],F=()=>["auto",Zs,ce],Y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],J=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>["start","end","center","between","around","evenly","stretch"],ie=()=>["","0",ce],he=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ve=()=>[Zs,ce];return{cacheSize:500,separator:":",theme:{colors:[Pr],spacing:[hn,An],blur:["none","",Nn,ce],brightness:ve(),borderColor:[e],borderRadius:["none","","full",Nn,ce],borderSpacing:M(),borderWidth:z(),contrast:ve(),grayscale:ie(),hueRotate:ve(),invert:ie(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[z0,An],inset:L(),margin:L(),opacity:ve(),padding:M(),saturate:ve(),scale:ve(),sepia:ie(),skew:ve(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",ce]}],container:["container"],columns:[{columns:[Nn]}],"break-after":[{"break-after":he()}],"break-before":[{"break-before":he()}],"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:[...Y(),ce]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Nr,ce]}],basis:[{basis:L()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ce]}],grow:[{grow:ie()}],shrink:[{shrink:ie()}],order:[{order:["first","last","none",Nr,ce]}],"grid-cols":[{"grid-cols":[Pr]}],"col-start-end":[{col:["auto",{span:["full",Nr,ce]},ce]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[Pr]}],"row-start-end":[{row:["auto",{span:[Nr,ce]},ce]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ce]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[R]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[R]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ce,t]}],"min-w":[{"min-w":[ce,t,"min","max","fit"]}],"max-w":[{"max-w":[ce,t,"none","full","min","max","fit","prose",{screen:[Nn]},Nn]}],h:[{h:[ce,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ce,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ce,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ce,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Nn,An]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Na]}],"font-family":[{font:[Pr]}],"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",ce]}],"line-clamp":[{"line-clamp":["none",Zs,Na]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",hn,ce]}],"list-image":[{"list-image":["none",ce]}],"list-style-type":[{list:["none","disc","decimal",ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",hn,An]}],"underline-offset":[{"underline-offset":["auto",hn,ce]}],"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:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce]}],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",ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Y(),H0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",W0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Z0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],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":[x]}],"border-style":[{border:[...J(),"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":[x]}],"divide-style":[{divide:J()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...J()]}],"outline-offset":[{"outline-offset":[hn,ce]}],"outline-w":[{outline:[hn,An]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[hn,An]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Nn,K0]}],"shadow-color":[{shadow:[Pr]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[s]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Nn,ce]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"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":[x]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"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",ce]}],duration:[{duration:ve()}],ease:[{ease:["linear","in","out","in-out",ce]}],delay:[{delay:ve()}],animate:[{animate:["none","spin","ping","pulse","bounce",ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[Nr,ce]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ce]}],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",ce]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[hn,An,Na]}],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"]}}},J0=M0(Q0);function V(...e){return J0(Qp(e))}const eS=Kp,tS=Gp,nS=Rc,sS=Xp,am=m.forwardRef(({className:e,...t},n)=>f.jsx(Zo,{className:V("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}));am.displayName=Zo.displayName;const rS=Yo("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"}}),lm=m.forwardRef(({side:e="right",className:t,children:n,...s},r)=>f.jsxs(sS,{children:[f.jsx(am,{}),f.jsxs(Ko,{ref:r,className:V(rS({side:e}),t),...s,children:[f.jsxs(Rc,{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:[f.jsx(Ac,{className:"size-8"}),f.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));lm.displayName=Ko.displayName;const cm=({className:e,...t})=>f.jsx("div",{className:V("flex flex-col space-y-2 text-center sm:text-left",e),...t});cm.displayName="SheetHeader";const iS=m.forwardRef(({className:e,...t},n)=>f.jsx(Go,{ref:n,className:V("text-lg font-semibold text-foreground",e),...t}));iS.displayName=Go.displayName;const oS=m.forwardRef(({className:e,...t},n)=>f.jsx(Xo,{ref:n,className:V("text-sm text-muted-foreground",e),...t}));oS.displayName=Xo.displayName;const aS=Yo("inline-flex items-center justify-center gap-2 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 hover:bg-primary hover:text-white duration-300",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"}}),nt=m.forwardRef(({className:e,variant:t,size:n,loading:s,children:r,asChild:i=!1,...o},a)=>{const l=i?yr:"button";return f.jsx(l,{className:V(aS({variant:t,size:n,className:e})),ref:a,...o,children:s?f.jsx(tm,{className:"w-5 h-5 animate-spin"}):r})});nt.displayName="Button";const lS=(e,t,n,s)=>{var i,o,a,l;const r=[n,{code:t,...s||{}}];if((o=(i=e==null?void 0:e.services)==null?void 0:i.logger)!=null&&o.forward)return e.services.logger.forward(r,"warn","react-i18next::",!0);xs(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),(l=(a=e==null?void 0:e.services)==null?void 0:a.logger)!=null&&l.warn?e.services.logger.warn(...r):console!=null&&console.warn&&console.warn(...r)},Rd={},xl=(e,t,n,s)=>{xs(n)&&Rd[n]||(xs(n)&&(Rd[n]=new Date),lS(e,t,n,s))},um=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},bl=(e,t,n)=>{e.loadNamespaces(t,um(e,n))},Ad=(e,t,n,s)=>{if(xs(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return bl(e,n,s);n.forEach(r=>{e.options.ns.indexOf(r)<0&&e.options.ns.push(r)}),e.loadLanguages(t,um(e,s))},cS=(e,t,n={})=>!t.languages||!t.languages.length?(xl(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(s,r)=>{var i;if(((i=n.bindI18n)==null?void 0:i.indexOf("languageChanging"))>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!r(s.isLanguageChangingTo,e))return!1}}),xs=e=>typeof e=="string",uS=e=>typeof e=="object"&&e!==null,dS=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,fS={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},hS=e=>fS[e],pS=e=>e.replace(dS,hS);let wl={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:pS};const mS=(e={})=>{wl={...wl,...e}},gS=()=>wl;let dm;const yS=e=>{dm=e},vS=()=>dm,MO={type:"3rdParty",init(e){mS(e.options.react),yS(e)}},xS=m.createContext();class bS{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const wS=(e,t)=>{const n=m.useRef();return m.useEffect(()=>{n.current=e},[e,t]),n.current},fm=(e,t,n,s)=>e.getFixedT(t,n,s),SS=(e,t,n,s)=>m.useCallback(fm(e,t,n,s),[e,t,n,s]),js=(e,t={})=>{var _,S,T,R;const{i18n:n}=t,{i18n:s,defaultNS:r}=m.useContext(xS)||{},i=n||s||vS();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new bS),!i){xl(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const A=(O,L)=>xs(L)?L:uS(L)&&xs(L.defaultValue)?L.defaultValue:Array.isArray(O)?O[O.length-1]:O,P=[A,{},!1];return P.t=A,P.i18n={},P.ready=!1,P}(_=i.options.react)!=null&&_.wait&&xl(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...gS(),...i.options.react,...t},{useSuspense:a,keyPrefix:l}=o;let c=e||r||((S=i.options)==null?void 0:S.defaultNS);c=xs(c)?[c]:c||["translation"],(R=(T=i.reportNamespaces).addUsedNamespaces)==null||R.call(T,c);const u=(i.isInitialized||i.initializedStoreOnce)&&c.every(A=>cS(A,i,o)),d=SS(i,t.lng||null,o.nsMode==="fallback"?c:c[0],l),h=()=>d,y=()=>fm(i,t.lng||null,o.nsMode==="fallback"?c:c[0],l),[g,p]=m.useState(h);let v=c.join();t.lng&&(v=`${t.lng}${v}`);const x=wS(v),b=m.useRef(!0);m.useEffect(()=>{const{bindI18n:A,bindI18nStore:P}=o;b.current=!0,!u&&!a&&(t.lng?Ad(i,t.lng,c,()=>{b.current&&p(y)}):bl(i,c,()=>{b.current&&p(y)})),u&&x&&x!==v&&b.current&&p(y);const O=()=>{b.current&&p(y)};return A&&(i==null||i.on(A,O)),P&&(i==null||i.store.on(P,O)),()=>{b.current=!1,i&&(A==null||A.split(" ").forEach(L=>i.off(L,O))),P&&i&&P.split(" ").forEach(L=>i.store.off(L,O))}},[i,v]),m.useEffect(()=>{b.current&&u&&p(h)},[i,l,u]);const w=[g,i,u];if(w.t=g,w.i18n=i,w.ready=u,u||!u&&!a)return w;throw new Promise(A=>{t.lng?Ad(i,t.lng,c,()=>A()):bl(i,c,()=>A())})},hm=({className:e})=>f.jsx("div",{className:V("xl:h-14 h-10 w-auto",e),children:f.jsx("img",{src:"/logo.svg",alt:"logo",className:"size-full object-contain"})}),pm=({className:e,image:t,title:n,iconClassName:s})=>f.jsxs("article",{className:V("bg-surface_container relative hover:bg-teritary_surface_container transition-all md:px-6 px-2 md:h-[224px] h-[124px]",e),children:[f.jsx("div",{className:"bg-primary size-full -z-[10] absolute top-2.5 left-2.5"}),f.jsx("div",{className:V("md:size-[84px] size-12 bg-teritary p-3",s),children:f.jsx("img",{src:t.path,alt:"theme icon"})}),f.jsx("h3",{className:"md:mt-6 mt-2 md:text-xl text-sm",children:n})]}),_S=({className:e,title:t,text:n})=>f.jsxs("article",{className:V("px-6 py-4 relative bg-surface_container h-[160px] w-full overflow-hidden",e),children:[f.jsx("img",{src:"/about-card-bg.svg",className:"absolute top-2 right-0"}),f.jsx("h2",{className:"text-primary text-[32px] semibold leading-[130%] mb-4",children:n}),f.jsx("h4",{className:"text-on_surface normal text-base",children:t})]}),ES=({className:e,title:t,text:n,img:s,link:r,btnText:i})=>f.jsxs("article",{className:V("md:px-8 md:py-6 p-4 relative overflow-hidden h-[296px] md:w-full w-[300px] text-on_primary",e),children:[f.jsx("div",{className:"absolute size-full z-10 top-0 left-0 bg-gradient-to-r from-25% from-primary to-primary/20 "}),f.jsx("img",{src:s,className:"absolute size-full top-0 right-0 object-cover"}),f.jsxs("div",{className:"relative z-20 h-full",children:[f.jsxs("div",{className:"",children:[f.jsx("h4",{className:"md:text-2xl text-lg mb-4 max-w-[444px] z-20 h-16",children:t}),f.jsx("p",{className:"md:text-base text-sm normal max-w-[360px] z-20",children:n})]}),f.jsx(_e,{className:"absolute bottom-0 left-0",target:"_blank",to:r,children:f.jsxs(nt,{className:"text-sm px-0 h-fit py-0 z-20",variant:"link",children:[i," ",f.jsx(i0,{})]})})]})]}),mm=({className:e,title:t,text:n,bottomClassName:s})=>f.jsxs("div",{className:V("rounded-t-[4px] overflow-hidden",e),children:[f.jsx("div",{className:"bg-teritary text-white flex items-center h-11 px-4",children:t}),f.jsx("div",{className:V("h-14 bg-surface_container semibold flex items-center text-lg px-4",s),children:n})]}),CS=({className:e,text:t,title:n,image:s})=>f.jsxs("div",{className:V("flex items-center gap-4",e),children:[f.jsx("div",{className:"bg-secondary_container size-16 rounded-[2px] p-3",children:f.jsx("img",{src:s.path,alt:"contact icon",className:"size-full"})}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx("h5",{className:"text-sm text-[#454545]",children:n}),f.jsx("h4",{className:"text-[#171717] semibold",children:t})]})]}),Pc=m.createContext({});function kc(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const Qo=m.createContext(null),jc=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class TS extends m.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const s=n.offsetParent,r=s instanceof HTMLElement&&s.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=r-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function RS({children:e,isPresent:t,anchorX:n}){const s=m.useId(),r=m.useRef(null),i=m.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=m.useContext(jc);return m.useInsertionEffect(()=>{const{width:a,height:l,top:c,left:u,right:d}=i.current;if(t||!r.current||!a||!l)return;const h=n==="left"?`left: ${u}`:`right: ${d}`;r.current.dataset.motionPopId=s;const y=document.createElement("style");return o&&(y.nonce=o),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(`
[data-motion-pop-id="${s}"] {
position: absolute !important;
width: ${a}px !important;
height: ${l}px !important;
${h}px !important;
top: ${c}px !important;
}
`),()=>{document.head.removeChild(y)}},[t]),f.jsx(TS,{isPresent:t,childRef:r,sizeRef:i,children:m.cloneElement(e,{ref:r})})}const AS=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:r,presenceAffectsLayout:i,mode:o,anchorX:a})=>{const l=kc(NS),c=m.useId(),u=m.useCallback(h=>{l.set(h,!0);for(const y of l.values())if(!y)return;s&&s()},[l,s]),d=m.useMemo(()=>({id:c,initial:t,isPresent:n,custom:r,onExitComplete:u,register:h=>(l.set(h,!1),()=>l.delete(h))}),i?[Math.random(),u]:[n,u]);return m.useMemo(()=>{l.forEach((h,y)=>l.set(y,!1))},[n]),m.useEffect(()=>{!n&&!l.size&&s&&s()},[n]),o==="popLayout"&&(e=f.jsx(RS,{isPresent:n,anchorX:a,children:e})),f.jsx(Qo.Provider,{value:d,children:e})};function NS(){return new Map}function gm(e=!0){const t=m.useContext(Qo);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:r}=t,i=m.useId();m.useEffect(()=>{e&&r(i)},[e]);const o=m.useCallback(()=>e&&s&&s(i),[i,s,e]);return!n&&s?[!1,o]:[!0]}const Xi=e=>e.key||"";function Nd(e){const t=[];return m.Children.forEach(e,n=>{m.isValidElement(n)&&t.push(n)}),t}const Oc=typeof window<"u",ym=Oc?m.useLayoutEffect:m.useEffect,DO=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:r=!0,mode:i="sync",propagate:o=!1,anchorX:a="left"})=>{const[l,c]=gm(o),u=m.useMemo(()=>Nd(e),[e]),d=o&&!l?[]:u.map(Xi),h=m.useRef(!0),y=m.useRef(u),g=kc(()=>new Map),[p,v]=m.useState(u),[x,b]=m.useState(u);ym(()=>{h.current=!1,y.current=u;for(let S=0;S<x.length;S++){const T=Xi(x[S]);d.includes(T)?g.delete(T):g.get(T)!==!0&&g.set(T,!1)}},[x,d.length,d.join("-")]);const w=[];if(u!==p){let S=[...u];for(let T=0;T<x.length;T++){const R=x[T],A=Xi(R);d.includes(A)||(S.splice(T,0,R),w.push(R))}return i==="wait"&&w.length&&(S=w),b(Nd(S)),v(u),null}const{forceRender:_}=m.useContext(Pc);return f.jsx(f.Fragment,{children:x.map(S=>{const T=Xi(S),R=o&&!l?!1:u===x||d.includes(T),A=()=>{if(g.has(T))g.set(T,!0);else return;let P=!0;g.forEach(O=>{O||(P=!1)}),P&&(_==null||_(),b(y.current),o&&(c==null||c()),s&&s())};return f.jsx(AS,{isPresent:R,initial:!h.current||n?void 0:!1,custom:t,presenceAffectsLayout:r,mode:i,onExitComplete:R?void 0:A,anchorX:a,children:S},T)})})},bt=e=>e;let vm=bt;const PS={useManualTiming:!1},Yi=["read","resolveKeyframes","update","preRender","render","postRender"],Pd={value:null};function kS(e,t){let n=new Set,s=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function c(d){o.has(d)&&(u.schedule(d),e()),l++,d(a)}const u={schedule:(d,h=!1,y=!1)=>{const p=y&&r?n:s;return h&&o.add(d),p.has(d)||p.add(d),d},cancel:d=>{s.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[n,s]=[s,n],n.forEach(c),t&&Pd.value&&Pd.value.frameloop[t].push(l),l=0,n.clear(),r=!1,i&&(i=!1,u.process(d))}};return u}const jS=40;function xm(e,t){let n=!1,s=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Yi.reduce((x,b)=>(x[b]=kS(i,t?b:void 0),x),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:h}=o,y=()=>{const x=performance.now();n=!1,r.delta=s?1e3/60:Math.max(Math.min(x-r.timestamp,jS),1),r.timestamp=x,r.isProcessing=!0,a.process(r),l.process(r),c.process(r),u.process(r),d.process(r),h.process(r),r.isProcessing=!1,n&&t&&(s=!1,e(y))},g=()=>{n=!0,s=!0,r.isProcessing||e(y)};return{schedule:Yi.reduce((x,b)=>{const w=o[b];return x[b]=(_,S=!1,T=!1)=>(n||g(),w.schedule(_,S,T)),x},{}),cancel:x=>{for(let b=0;b<Yi.length;b++)o[Yi[b]].cancel(x)},state:r,steps:o}}const{schedule:Te,cancel:Wn,state:qe,steps:Pa}=xm(typeof requestAnimationFrame<"u"?requestAnimationFrame:bt,!0),bm=m.createContext({strict:!1}),kd={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"]},lr={};for(const e in kd)lr[e]={isEnabled:t=>kd[e].some(n=>!!t[n])};function OS(e){for(const t in e)lr[t]={...lr[t],...e[t]}}const MS=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 vo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||MS.has(e)}let wm=e=>!vo(e);function DS(e){e&&(wm=t=>t.startsWith("on")?!vo(t):e(t))}try{DS(require("@emotion/is-prop-valid").default)}catch{}function LS(e,t,n){const s={};for(const r in e)r==="values"&&typeof e.values=="object"||(wm(r)||n===!0&&vo(r)||!t&&!vo(r)||e.draggable&&r.startsWith("onDrag"))&&(s[r]=e[r]);return s}function IS(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...s)=>e(...s);return new Proxy(n,{get:(s,r)=>r==="create"?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const Jo=m.createContext({});function ea(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Yr(e){return typeof e=="string"||Array.isArray(e)}const Mc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Dc=["initial",...Mc];function ta(e){return ea(e.animate)||Dc.some(t=>Yr(e[t]))}function Sm(e){return!!(ta(e)||e.variants)}function FS(e,t){if(ta(e)){const{initial:n,animate:s}=e;return{initial:n===!1||Yr(n)?n:void 0,animate:Yr(s)?s:void 0}}return e.inherit!==!1?t:{}}function VS(e){const{initial:t,animate:n}=FS(e,m.useContext(Jo));return m.useMemo(()=>({initial:t,animate:n}),[jd(t),jd(n)])}function jd(e){return Array.isArray(e)?e.join(" "):e}const BS=Symbol.for("motionComponentSymbol");function Bs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function $S(e,t,n){return m.useCallback(s=>{s&&e.onMount&&e.onMount(s),t&&(s?t.mount(s):t.unmount()),n&&(typeof n=="function"?n(s):Bs(n)&&(n.current=s))},[t])}const Lc=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),zS="framerAppearId",_m="data-"+Lc(zS),{schedule:Ic}=xm(queueMicrotask,!1),Em=m.createContext({});function US(e,t,n,s,r){var i,o;const{visualElement:a}=m.useContext(Jo),l=m.useContext(bm),c=m.useContext(Qo),u=m.useContext(jc).reducedMotion,d=m.useRef(null);s=s||l.renderer,!d.current&&s&&(d.current=s(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const h=d.current,y=m.useContext(Em);h&&!h.projection&&r&&(h.type==="html"||h.type==="svg")&&WS(d.current,n,r,y);const g=m.useRef(!1);m.useInsertionEffect(()=>{h&&g.current&&h.update(n,c)});const p=n[_m],v=m.useRef(!!p&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,p))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,p)));return ym(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Ic.render(h.render),v.current&&h.animationState&&h.animationState.animateChanges())}),m.useEffect(()=>{h&&(!v.current&&h.animationState&&h.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,p)}),v.current=!1))}),h}function WS(e,t,n,s){const{layoutId:r,layout:i,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Cm(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!o||a&&Bs(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:c})}function Cm(e){if(e)return e.options.allowProjection!==!1?e.projection:Cm(e.parent)}function HS({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:s,Component:r}){var i,o;e&&OS(e);function a(c,u){let d;const h={...m.useContext(jc),...c,layoutId:qS(c)},{isStatic:y}=h,g=VS(c),p=s(c,y);if(!y&&Oc){ZS();const v=KS(h);d=v.MeasureLayout,g.visualElement=US(r,p,h,t,v.ProjectionNode)}return f.jsxs(Jo.Provider,{value:g,children:[d&&g.visualElement?f.jsx(d,{visualElement:g.visualElement,...h}):null,n(r,c,$S(p,g.visualElement,u),p,y,g.visualElement)]})}a.displayName=`motion.${typeof r=="string"?r:`create(${(o=(i=r.displayName)!==null&&i!==void 0?i:r.name)!==null&&o!==void 0?o:""})`}`;const l=m.forwardRef(a);return l[BS]=r,l}function qS({layoutId:e}){const t=m.useContext(Pc).id;return t&&e!==void 0?t+"-"+e:e}function ZS(e,t){m.useContext(bm).strict}function KS(e){const{drag:t,layout:n}=lr;if(!t&&!n)return{};const s={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const Tm=e=>t=>typeof t=="string"&&t.startsWith(e),Fc=Tm("--"),GS=Tm("var(--"),Vc=e=>GS(e)?XS.test(e.split("/*")[0].trim()):!1,XS=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Qr={};function YS(e){for(const t in e)Qr[t]=e[t],Fc(t)&&(Qr[t].isCSSVariable=!0)}const br=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Os=new Set(br);function Rm(e,{layout:t,layoutId:n}){return Os.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Qr[e]||e==="opacity")}const tt=e=>!!(e&&e.getVelocity),Am=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Sn=(e,t,n)=>n>t?t:n<e?e:n,wr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Jr={...wr,transform:e=>Sn(0,1,e)},Qi={...wr,default:1},Ni=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),On=Ni("deg"),sn=Ni("%"),ne=Ni("px"),QS=Ni("vh"),JS=Ni("vw"),Od={...sn,parse:e=>sn.parse(e)/100,transform:e=>sn.transform(e*100)},e_={borderWidth:ne,borderTopWidth:ne,borderRightWidth:ne,borderBottomWidth:ne,borderLeftWidth:ne,borderRadius:ne,radius:ne,borderTopLeftRadius:ne,borderTopRightRadius:ne,borderBottomRightRadius:ne,borderBottomLeftRadius:ne,width:ne,maxWidth:ne,height:ne,maxHeight:ne,top:ne,right:ne,bottom:ne,left:ne,padding:ne,paddingTop:ne,paddingRight:ne,paddingBottom:ne,paddingLeft:ne,margin:ne,marginTop:ne,marginRight:ne,marginBottom:ne,marginLeft:ne,backgroundPositionX:ne,backgroundPositionY:ne},t_={rotate:On,rotateX:On,rotateY:On,rotateZ:On,scale:Qi,scaleX:Qi,scaleY:Qi,scaleZ:Qi,skew:On,skewX:On,skewY:On,distance:ne,translateX:ne,translateY:ne,translateZ:ne,x:ne,y:ne,z:ne,perspective:ne,transformPerspective:ne,opacity:Jr,originX:Od,originY:Od,originZ:ne},Md={...wr,transform:Math.round},Bc={...e_,...t_,zIndex:Md,size:ne,fillOpacity:Jr,strokeOpacity:Jr,numOctaves:Md},n_={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},s_=br.length;function r_(e,t,n){let s="",r=!0;for(let i=0;i<s_;i++){const o=br[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=Am(a,Bc[o]);if(!l){r=!1;const u=n_[o]||o;s+=`${u}(${c}) `}n&&(t[o]=c)}}return s=s.trim(),n?s=n(t,r?"":s):r&&(s="none"),s}function $c(e,t,n){const{style:s,vars:r,transformOrigin:i}=e;let o=!1,a=!1;for(const l in t){const c=t[l];if(Os.has(l)){o=!0;continue}else if(Fc(l)){r[l]=c;continue}else{const u=Am(c,Bc[l]);l.startsWith("origin")?(a=!0,i[l]=u):s[l]=u}}if(t.transform||(o||n?s.transform=r_(t,e.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;s.transformOrigin=`${l} ${c} ${u}`}}const zc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Nm(e,t,n){for(const s in t)!tt(t[s])&&!Rm(s,n)&&(e[s]=t[s])}function i_({transformTemplate:e},t){return m.useMemo(()=>{const n=zc();return $c(n,t,e),Object.assign({},n.vars,n.style)},[t])}function o_(e,t){const n=e.style||{},s={};return Nm(s,n,e),Object.assign(s,i_(e,t)),s}function a_(e,t){const n={},s=o_(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.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=s,n}const l_=["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 Uc(e){return typeof e!="string"||e.includes("-")?!1:!!(l_.indexOf(e)>-1||/[A-Z]/u.test(e))}const c_={offset:"stroke-dashoffset",array:"stroke-dasharray"},u_={offset:"strokeDashoffset",array:"strokeDasharray"};function d_(e,t,n=1,s=0,r=!0){e.pathLength=1;const i=r?c_:u_;e[i.offset]=ne.transform(-s);const o=ne.transform(t),a=ne.transform(n);e[i.array]=`${o} ${a}`}function Dd(e,t,n){return typeof e=="string"?e:ne.transform(t+n*e)}function f_(e,t,n){const s=Dd(t,e.x,e.width),r=Dd(n,e.y,e.height);return`${s} ${r}`}function Wc(e,{attrX:t,attrY:n,attrScale:s,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...c},u,d){if($c(e,c,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:y,dimensions:g}=e;h.transform&&(g&&(y.transform=h.transform),delete h.transform),g&&(r!==void 0||i!==void 0||y.transform)&&(y.transformOrigin=f_(g,r!==void 0?r:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),o!==void 0&&d_(h,o,a,l,!1)}const Pm=()=>({...zc(),attrs:{}}),Hc=e=>typeof e=="string"&&e.toLowerCase()==="svg";function h_(e,t,n,s){const r=m.useMemo(()=>{const i=Pm();return Wc(i,t,Hc(s),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Nm(i,e.style,e),r.style={...i,...r.style}}return r}function p_(e=!1){return(n,s,r,{latestValues:i},o)=>{const l=(Uc(n)?h_:a_)(s,i,o,n),c=LS(s,typeof n=="string",e),u=n!==m.Fragment?{...c,...l,ref:r}:{},{children:d}=s,h=m.useMemo(()=>tt(d)?d.get():d,[d]);return m.createElement(n,{...u,children:h})}}function Ld(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function qc(e,t,n,s){if(typeof t=="function"){const[r,i]=Ld(s);t=t(n!==void 0?n:e.custom,r,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,i]=Ld(s);t=t(n!==void 0?n:e.custom,r,i)}return t}const Sl=e=>Array.isArray(e),m_=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),g_=e=>Sl(e)?e[e.length-1]||0:e;function oo(e){const t=tt(e)?e.get():e;return m_(t)?t.toValue():t}function y_({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},s,r,i){const o={latestValues:v_(s,r,i,e),renderState:t()};return n&&(o.onMount=a=>n({props:s,current:a,...o}),o.onUpdate=a=>n(a)),o}const km=e=>(t,n)=>{const s=m.useContext(Jo),r=m.useContext(Qo),i=()=>y_(e,t,s,r);return n?i():kc(i)};function v_(e,t,n,s){const r={},i=s(e,{});for(const h in i)r[h]=oo(i[h]);let{initial:o,animate:a}=e;const l=ta(e),c=Sm(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"&&!ea(d)){const h=Array.isArray(d)?d:[d];for(let y=0;y<h.length;y++){const g=qc(e,h[y]);if(g){const{transitionEnd:p,transition:v,...x}=g;for(const b in x){let w=x[b];if(Array.isArray(w)){const _=u?w.length-1:0;w=w[_]}w!==null&&(r[b]=w)}for(const b in p)r[b]=p[b]}}}return r}function Zc(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(tt(r[o])||t.style&&tt(t.style[o])||Rm(o,e)||((s=n==null?void 0:n.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const x_={useVisualState:km({scrapeMotionValuesFromProps:Zc,createRenderState:zc})};function jm(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function Om(e,{style:t,vars:n},s,r){Object.assign(e.style,t,r&&r.getProjectionStyles(s));for(const i in n)e.style.setProperty(i,n[i])}const Mm=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 Dm(e,t,n,s){Om(e,t,void 0,s);for(const r in t.attrs)e.setAttribute(Mm.has(r)?r:Lc(r),t.attrs[r])}function Lm(e,t,n){const s=Zc(e,t,n);for(const r in e)if(tt(e[r])||tt(t[r])){const i=br.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;s[i]=e[r]}return s}const Id=["x","y","width","height","cx","cy","r"],b_={useVisualState:km({scrapeMotionValuesFromProps:Lm,createRenderState:Pm,onUpdate:({props:e,prevProps:t,current:n,renderState:s,latestValues:r})=>{if(!n)return;let i=!!e.drag;if(!i){for(const a in r)if(Os.has(a)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let a=0;a<Id.length;a++){const l=Id[a];e[l]!==t[l]&&(o=!0)}o&&Te.read(()=>{jm(n,s),Te.render(()=>{Wc(s,r,Hc(n.tagName),e.transformTemplate),Dm(n,s)})})}})};function w_(e,t){return function(s,{forwardMotionProps:r}={forwardMotionProps:!1}){const o={...Uc(s)?b_:x_,preloadedFeatures:e,useRender:p_(r),createVisualElement:t,Component:s};return HS(o)}}function ei(e,t,n){const s=e.getProps();return qc(s,t,n!==void 0?n:s.custom,e)}function Kc(e,t){return e?e[t]||e.default||e:void 0}const Im=new Set(["width","height","top","left","right","bottom",...br]);let ao;function S_(){ao=void 0}const rn={now:()=>(ao===void 0&&rn.set(qe.isProcessing||PS.useManualTiming?qe.timestamp:performance.now()),ao),set:e=>{ao=e,queueMicrotask(S_)}};function Gc(e,t){e.indexOf(t)===-1&&e.push(t)}function Xc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Yc{constructor(){this.subscriptions=[]}add(t){return Gc(this.subscriptions,t),()=>Xc(this.subscriptions,t)}notify(t,n,s){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,s);else for(let i=0;i<r;i++){const o=this.subscriptions[i];o&&o(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Fm(e,t){return t?e*(1e3/t):0}const Fd=30,__=e=>!isNaN(parseFloat(e));class E_{constructor(t,n={}){this.version="12.4.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,r=!0)=>{const i=rn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&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=rn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=__(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 Yc);const s=this.events[t].add(n);return t==="change"?()=>{s(),Te.read(()=>{this.events.change.getSize()||this.stop()})}:s}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,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}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=rn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Fd)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Fd);return Fm(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 ti(e,t){return new E_(e,t)}function C_(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ti(n))}function T_(e,t){const n=ei(e,t);let{transitionEnd:s={},transition:r={},...i}=n||{};i={...i,...s};for(const o in i){const a=g_(i[o]);C_(e,o,a)}}function R_(e){return!!(tt(e)&&e.add)}function _l(e,t){const n=e.getValue("willChange");if(R_(n))return n.add(t)}function Vm(e){return e.props[_m]}function Qc(e){let t;return()=>(t===void 0&&(t=e()),t)}const A_=Qc(()=>window.ScrollTimeline!==void 0);class N_{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 s=0;s<this.animations.length;s++)this.animations[s][t]=n}attachTimeline(t,n){const s=this.animations.map(r=>{if(A_()&&r.attachTimeline)return r.attachTimeline(t);if(typeof n=="function")return n(r)});return()=>{s.forEach((r,i)=>{r&&r(),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 P_ extends N_{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const bn=e=>e*1e3,wn=e=>e/1e3;function Jc(e){return typeof e=="function"}function Vd(e,t){e.timeline=t,e.onfinish=null}const eu=e=>Array.isArray(e)&&typeof e[0]=="number",k_={linearEasing:void 0};function j_(e,t){const n=Qc(e);return()=>{var s;return(s=k_[t])!==null&&s!==void 0?s:n()}}const xo=j_(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),cr=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s},Bm=(e,t,n=10)=>{let s="";const r=Math.max(Math.round(t/n),2);for(let i=0;i<r;i++)s+=e(cr(0,r-1,i))+", ";return`linear(${s.substring(0,s.length-2)})`};function $m(e){return!!(typeof e=="function"&&xo()||!e||typeof e=="string"&&(e in El||xo())||eu(e)||Array.isArray(e)&&e.every($m))}const Lr=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,El={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Lr([0,.65,.55,1]),circOut:Lr([.55,0,1,.45]),backIn:Lr([.31,.01,.66,-.59]),backOut:Lr([.33,1.53,.69,.99])};function zm(e,t){if(e)return typeof e=="function"&&xo()?Bm(e,t):eu(e)?Lr(e):Array.isArray(e)?e.map(n=>zm(n,t)||El.easeOut):El[e]}const Um=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,O_=1e-7,M_=12;function D_(e,t,n,s,r){let i,o,a=0;do o=t+(n-t)/2,i=Um(o,s,r)-e,i>0?n=o:t=o;while(Math.abs(i)>O_&&++a<M_);return o}function Pi(e,t,n,s){if(e===t&&n===s)return bt;const r=i=>D_(i,0,1,e,n);return i=>i===0||i===1?i:Um(r(i),t,s)}const Wm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Hm=e=>t=>1-e(1-t),qm=Pi(.33,1.53,.69,.99),tu=Hm(qm),Zm=Wm(tu),Km=e=>(e*=2)<1?.5*tu(e):.5*(2-Math.pow(2,-10*(e-1))),nu=e=>1-Math.sin(Math.acos(e)),Gm=Hm(nu),Xm=Wm(nu),Ym=e=>/^0[^.\s]+$/u.test(e);function L_(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ym(e):!0}const $r=e=>Math.round(e*1e5)/1e5,su=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function I_(e){return e==null}const F_=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ru=(e,t)=>n=>!!(typeof n=="string"&&F_.test(n)&&n.startsWith(e)||t&&!I_(n)&&Object.prototype.hasOwnProperty.call(n,t)),Qm=(e,t,n)=>s=>{if(typeof s!="string")return s;const[r,i,o,a]=s.match(su);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},V_=e=>Sn(0,255,e),ka={...wr,transform:e=>Math.round(V_(e))},as={test:ru("rgb","red"),parse:Qm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+ka.transform(e)+", "+ka.transform(t)+", "+ka.transform(n)+", "+$r(Jr.transform(s))+")"};function B_(e){let t="",n="",s="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,s+=s,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}}const Cl={test:ru("#"),parse:B_,transform:as.transform},$s={test:ru("hsl","hue"),parse:Qm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+sn.transform($r(t))+", "+sn.transform($r(n))+", "+$r(Jr.transform(s))+")"},Je={test:e=>as.test(e)||Cl.test(e)||$s.test(e),parse:e=>as.test(e)?as.parse(e):$s.test(e)?$s.parse(e):Cl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?as.transform(e):$s.transform(e)},$_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function z_(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(su))===null||t===void 0?void 0:t.length)||0)+(((n=e.match($_))===null||n===void 0?void 0:n.length)||0)>0}const Jm="number",eg="color",U_="var",W_="var(",Bd="${}",H_=/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 ni(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},r=[];let i=0;const a=t.replace(H_,l=>(Je.test(l)?(s.color.push(i),r.push(eg),n.push(Je.parse(l))):l.startsWith(W_)?(s.var.push(i),r.push(U_),n.push(l)):(s.number.push(i),r.push(Jm),n.push(parseFloat(l))),++i,Bd)).split(Bd);return{values:n,split:a,indexes:s,types:r}}function tg(e){return ni(e).values}function ng(e){const{split:t,types:n}=ni(e),s=t.length;return r=>{let i="";for(let o=0;o<s;o++)if(i+=t[o],r[o]!==void 0){const a=n[o];a===Jm?i+=$r(r[o]):a===eg?i+=Je.transform(r[o]):i+=r[o]}return i}}const q_=e=>typeof e=="number"?0:e;function Z_(e){const t=tg(e);return ng(e)(t.map(q_))}const Hn={test:z_,parse:tg,createTransformer:ng,getAnimatableNone:Z_},K_=new Set(["brightness","contrast","saturate","opacity"]);function G_(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(su)||[];if(!s)return e;const r=n.replace(s,"");let i=K_.has(t)?1:0;return s!==n&&(i*=100),t+"("+i+r+")"}const X_=/\b([a-z-]*)\(.*?\)/gu,Tl={...Hn,getAnimatableNone:e=>{const t=e.match(X_);return t?t.map(G_).join(" "):e}},Y_={...Bc,color:Je,backgroundColor:Je,outlineColor:Je,fill:Je,stroke:Je,borderColor:Je,borderTopColor:Je,borderRightColor:Je,borderBottomColor:Je,borderLeftColor:Je,filter:Tl,WebkitFilter:Tl},iu=e=>Y_[e];function sg(e,t){let n=iu(e);return n!==Tl&&(n=Hn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Q_=new Set(["auto","none","0"]);function J_(e,t,n){let s=0,r;for(;s<e.length&&!r;){const i=e[s];typeof i=="string"&&!Q_.has(i)&&ni(i).values.length&&(r=e[s]),s++}if(r&&n)for(const i of t)e[i]=sg(n,r)}const $d=e=>e===wr||e===ne,zd=(e,t)=>parseFloat(e.split(", ")[t]),Ud=(e,t)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const r=s.match(/^matrix3d\((.+)\)$/u);if(r)return zd(r[1],t);{const i=s.match(/^matrix\((.+)\)$/u);return i?zd(i[1],e):0}},eE=new Set(["x","y","z"]),tE=br.filter(e=>!eE.has(e));function nE(e){const t=[];return tE.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const ur={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:Ud(4,13),y:Ud(5,14)};ur.translateX=ur.x;ur.translateY=ur.y;const bs=new Set;let Rl=!1,Al=!1;function rg(){if(Al){const e=Array.from(bs).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const r=nE(s);r.length&&(n.set(s,r),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const r=n.get(s);r&&r.forEach(([i,o])=>{var a;(a=s.getValue(i))===null||a===void 0||a.set(o)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Al=!1,Rl=!1,bs.forEach(e=>e.complete()),bs.clear()}function ig(){bs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Al=!0)})}function sE(){ig(),rg()}class ou{constructor(t,n,s,r,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(bs.add(this),Rl||(Rl=!0,Te.read(ig),Te.resolveKeyframes(rg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:r}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const o=r==null?void 0:r.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(s&&n){const l=s.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),r&&o===void 0&&r.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),bs.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,bs.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const og=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),rE=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function iE(e){const t=rE.exec(e);if(!t)return[,];const[,n,s,r]=t;return[`--${n??s}`,r]}function ag(e,t,n=1){const[s,r]=iE(e);if(!s)return;const i=window.getComputedStyle(t).getPropertyValue(s);if(i){const o=i.trim();return og(o)?parseFloat(o):o}return Vc(r)?ag(r,t,n+1):r}const lg=e=>t=>t.test(e),oE={test:e=>e==="auto",parse:e=>e},cg=[wr,ne,sn,On,JS,QS,oE],Wd=e=>cg.find(lg(e));class ug extends ou{constructor(t,n,s,r,i){super(t,n,s,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=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(),Vc(c))){const u=ag(c,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Im.has(s)||t.length!==2)return;const[r,i]=t,o=Wd(r),a=Wd(i);if(o!==a)if($d(o)&&$d(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,s=[];for(let r=0;r<t.length;r++)L_(t[r])&&s.push(r);s.length&&J_(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ur[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(s,r).jump(r,!1)}measureEndState(){var t;const{element:n,name:s,unresolvedKeyframes:r}=this;if(!n||!n.current)return;const i=n.getValue(s);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,a=r[o];r[o]=ur[s](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 Hd=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Hn.test(e)||e==="0")&&!e.startsWith("url("));function aE(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 lE(e,t,n,s){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=Hd(r,t),a=Hd(i,t);return!o||!a?!1:aE(e)||(n==="spring"||Jc(n))&&s}const cE=e=>e!==null;function na(e,{repeat:t,repeatType:n="loop"},s){const r=e.filter(cE),i=t&&n!=="loop"&&t%2===1?0:r.length-1;return!i||s===void 0?r[i]:s}const uE=40;class dg{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=rn.now(),this.options={autoplay:t,delay:n,type:s,repeat:r,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>uE?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&sE(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=rn.now(),this.hasAttemptedResolve=!0;const{name:s,type:r,velocity:i,delay:o,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!lE(t,s,r,i))if(o)this.options.duration=0;else{l&&l(na(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 Nl=2e4;function fg(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<Nl;)t+=n,s=e.next(t);return t>=Nl?1/0:t}const Ne=(e,t,n)=>e+(t-e)*n;function ja(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 dE({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let r=0,i=0,o=0;if(!t)r=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=ja(l,a,e+1/3),i=ja(l,a,e),o=ja(l,a,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:s}}function bo(e,t){return n=>n>0?t:e}const Oa=(e,t,n)=>{const s=e*e,r=n*(t*t-s)+s;return r<0?0:Math.sqrt(r)},fE=[Cl,as,$s],hE=e=>fE.find(t=>t.test(e));function qd(e){const t=hE(e);if(!t)return!1;let n=t.parse(e);return t===$s&&(n=dE(n)),n}const Zd=(e,t)=>{const n=qd(e),s=qd(t);if(!n||!s)return bo(e,t);const r={...n};return i=>(r.red=Oa(n.red,s.red,i),r.green=Oa(n.green,s.green,i),r.blue=Oa(n.blue,s.blue,i),r.alpha=Ne(n.alpha,s.alpha,i),as.transform(r))},pE=(e,t)=>n=>t(e(n)),ki=(...e)=>e.reduce(pE),Pl=new Set(["none","hidden"]);function mE(e,t){return Pl.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function gE(e,t){return n=>Ne(e,t,n)}function au(e){return typeof e=="number"?gE:typeof e=="string"?Vc(e)?bo:Je.test(e)?Zd:xE:Array.isArray(e)?hg:typeof e=="object"?Je.test(e)?Zd:yE:bo}function hg(e,t){const n=[...e],s=n.length,r=e.map((i,o)=>au(i)(i,t[o]));return i=>{for(let o=0;o<s;o++)n[o]=r[o](i);return n}}function yE(e,t){const n={...e,...t},s={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(s[r]=au(e[r])(e[r],t[r]));return r=>{for(const i in s)n[i]=s[i](r);return n}}function vE(e,t){var n;const s=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],a=e.indexes[o][r[o]],l=(n=e.values[a])!==null&&n!==void 0?n:0;s[i]=l,r[o]++}return s}const xE=(e,t)=>{const n=Hn.createTransformer(t),s=ni(e),r=ni(t);return s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length?Pl.has(e)&&!r.values.length||Pl.has(t)&&!s.values.length?mE(e,t):ki(hg(vE(s,r),r.values),n):bo(e,t)};function pg(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ne(e,t,n):au(e)(e,t)}const bE=5;function mg(e,t,n){const s=Math.max(t-bE,0);return Fm(n-e(s),t-s)}const je={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},Kd=.001;function wE({duration:e=je.duration,bounce:t=je.bounce,velocity:n=je.velocity,mass:s=je.mass}){let r,i,o=1-t;o=Sn(je.minDamping,je.maxDamping,o),e=Sn(je.minDuration,je.maxDuration,wn(e)),o<1?(r=c=>{const u=c*o,d=u*e,h=u-n,y=kl(c,o),g=Math.exp(-d);return Kd-h/y*g},i=c=>{const d=c*o*e,h=d*n+n,y=Math.pow(o,2)*Math.pow(c,2)*e,g=Math.exp(-d),p=kl(Math.pow(c,2),o);return(-r(c)+Kd>0?-1:1)*((h-y)*g)/p}):(r=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=_E(r,i,a);if(e=bn(e),isNaN(l))return{stiffness:je.stiffness,damping:je.damping,duration:e};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:o*2*Math.sqrt(s*c),duration:e}}}const SE=12;function _E(e,t,n){let s=n;for(let r=1;r<SE;r++)s=s-e(s)/t(s);return s}function kl(e,t){return e*Math.sqrt(1-t*t)}const EE=["duration","bounce"],CE=["stiffness","damping","mass"];function Gd(e,t){return t.some(n=>e[n]!==void 0)}function TE(e){let t={velocity:je.velocity,stiffness:je.stiffness,damping:je.damping,mass:je.mass,isResolvedFromDuration:!1,...e};if(!Gd(e,CE)&&Gd(e,EE))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),r=s*s,i=2*Sn(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:je.mass,stiffness:r,damping:i}}else{const n=wE(e);t={...t,...n,mass:je.mass},t.isResolvedFromDuration=!0}return t}function gg(e=je.visualDuration,t=je.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:r}=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:h,isResolvedFromDuration:y}=TE({...n,velocity:-wn(n.velocity||0)}),g=h||0,p=c/(2*Math.sqrt(l*u)),v=o-i,x=wn(Math.sqrt(l/u)),b=Math.abs(v)<5;s||(s=b?je.restSpeed.granular:je.restSpeed.default),r||(r=b?je.restDelta.granular:je.restDelta.default);let w;if(p<1){const S=kl(x,p);w=T=>{const R=Math.exp(-p*x*T);return o-R*((g+p*x*v)/S*Math.sin(S*T)+v*Math.cos(S*T))}}else if(p===1)w=S=>o-Math.exp(-x*S)*(v+(g+x*v)*S);else{const S=x*Math.sqrt(p*p-1);w=T=>{const R=Math.exp(-p*x*T),A=Math.min(S*T,300);return o-R*((g+p*x*v)*Math.sinh(A)+S*v*Math.cosh(A))/S}}const _={calculatedDuration:y&&d||null,next:S=>{const T=w(S);if(y)a.done=S>=d;else{let R=0;p<1&&(R=S===0?bn(g):mg(w,S,T));const A=Math.abs(R)<=s,P=Math.abs(o-T)<=r;a.done=A&&P}return a.value=a.done?o:T,a},toString:()=>{const S=Math.min(fg(_),Nl),T=Bm(R=>_.next(S*R).value,S,30);return S+"ms "+T}};return _}function Xd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},y=A=>a!==void 0&&A<a||l!==void 0&&A>l,g=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let p=n*t;const v=d+p,x=o===void 0?v:o(v);x!==v&&(p=x-d);const b=A=>-p*Math.exp(-A/s),w=A=>x+b(A),_=A=>{const P=b(A),O=w(A);h.done=Math.abs(P)<=c,h.value=h.done?x:O};let S,T;const R=A=>{y(h.value)&&(S=A,T=gg({keyframes:[h.value,g(h.value)],velocity:mg(w,A,h.value),damping:r,stiffness:i,restDelta:c,restSpeed:u}))};return R(0),{calculatedDuration:null,next:A=>{let P=!1;return!T&&S===void 0&&(P=!0,_(A),R(A)),S!==void 0&&A>=S?T.next(A-S):(!P&&_(A),h)}}}const RE=Pi(.42,0,1,1),AE=Pi(0,0,.58,1),yg=Pi(.42,0,.58,1),NE=e=>Array.isArray(e)&&typeof e[0]!="number",PE={linear:bt,easeIn:RE,easeInOut:yg,easeOut:AE,circIn:nu,circInOut:Xm,circOut:Gm,backIn:tu,backInOut:Zm,backOut:qm,anticipate:Km},Yd=e=>{if(eu(e)){vm(e.length===4);const[t,n,s,r]=e;return Pi(t,n,s,r)}else if(typeof e=="string")return PE[e];return e};function kE(e,t,n){const s=[],r=n||pg,i=e.length-1;for(let o=0;o<i;o++){let a=r(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||bt:t;a=ki(l,a)}s.push(a)}return s}function jE(e,t,{clamp:n=!0,ease:s,mixer:r}={}){const i=e.length;if(vm(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=kE(t,s,r),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 h=cr(e[d],e[d+1],u);return a[d](h)};return n?u=>c(Sn(e[0],e[i-1],u)):c}function OE(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const r=cr(0,t,s);e.push(Ne(n,1,r))}}function ME(e){const t=[0];return OE(t,e.length-1),t}function DE(e,t){return e.map(n=>n*t)}function LE(e,t){return e.map(()=>t||yg).splice(0,e.length-1)}function wo({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const r=NE(s)?s.map(Yd):Yd(s),i={done:!1,value:t[0]},o=DE(n&&n.length===t.length?n:ME(t),e),a=jE(o,t,{ease:Array.isArray(r)?r:LE(t,r)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const IE=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Te.update(t,!0),stop:()=>Wn(t),now:()=>qe.isProcessing?qe.timestamp:rn.now()}},FE={decay:Xd,inertia:Xd,tween:wo,keyframes:wo,spring:gg},VE=e=>e/100;class lu extends dg{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:s,element:r,keyframes:i}=this.options,o=(r==null?void 0:r.KeyframeResolver)||ou,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new o(i,a,n,s,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=this.options,a=Jc(n)?n:FE[n]||wo;let l,c;a!==wo&&typeof t[0]!="number"&&(l=ki(VE,pg(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=fg(u));const{calculatedDuration:d}=u,h=d+r,y=h*(s+1)-r;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:h,totalDuration:y}}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:s}=this;if(!s){const{keyframes:A}=this.options;return{done:!0,value:A[A.length-1]}}const{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:d}=s;if(this.startTime===null)return i.next(0);const{delay:h,repeat:y,repeatType:g,repeatDelay:p,onUpdate:v}=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 x=this.currentTime-h*(this.speed>=0?1:-1),b=this.speed>=0?x<0:x>u;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let w=this.currentTime,_=i;if(y){const A=Math.min(this.currentTime,u)/d;let P=Math.floor(A),O=A%1;!O&&A>=1&&(O=1),O===1&&P--,P=Math.min(P,y+1),!!(P%2)&&(g==="reverse"?(O=1-O,p&&(O-=p/d)):g==="mirror"&&(_=o)),w=Sn(0,1,O)*d}const S=b?{done:!1,value:l[0]}:_.next(w);a&&(S.value=a(S.value));let{done:T}=S;!b&&c!==null&&(T=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return R&&r!==void 0&&(S.value=na(l,this.options,r)),v&&v(S.value),R&&this.finish(),S}get duration(){const{resolved:t}=this;return t?wn(t.calculatedDuration):0}get time(){return wn(this.currentTime)}set time(t){t=bn(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=wn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=IE,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=s??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 BE=new Set(["opacity","clipPath","filter","transform"]);function $E(e,t,n,{delay:s=0,duration:r=300,repeat:i=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=zm(a,r);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:s,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const zE=Qc(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),So=10,UE=2e4;function WE(e){return Jc(e.type)||e.type==="spring"||!$m(e.ease)}function HE(e,t){const n=new lu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:e[0]};const r=[];let i=0;for(;!s.done&&i<UE;)s=n.sample(i),r.push(s.value),i+=So;return{times:void 0,keyframes:r,duration:i-So,ease:"linear"}}const vg={anticipate:Km,backInOut:Zm,circInOut:Xm};function qE(e){return e in vg}class Qd extends dg{constructor(t){super(t);const{name:n,motionValue:s,element:r,keyframes:i}=this.options;this.resolver=new ug(i,(o,a)=>this.onKeyframesResolved(o,a),n,s,r),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:s=300,times:r,ease:i,type:o,motionValue:a,name:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&xo()&&qE(i)&&(i=vg[i]),WE(this.options)){const{onComplete:d,onUpdate:h,motionValue:y,element:g,...p}=this.options,v=HE(t,p);t=v.keyframes,t.length===1&&(t[1]=t[0]),s=v.duration,r=v.times,i=v.ease,o="keyframes"}const u=$E(a.owner.current,l,t,{...this.options,duration:s,times:r,ease:i});return u.startTime=c??this.calcStartTime(),this.pendingTimeline?(Vd(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(na(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:s,times:r,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return wn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return wn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=bn(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:s}=n;s.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 bt;const{animation:s}=n;Vd(s,t)}return bt}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:s,duration:r,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:h,...y}=this.options,g=new lu({...y,keyframes:s,duration:r,type:i,ease:o,times:a,isGenerator:!0}),p=bn(this.time);c.setWithVelocity(g.sample(p-So).value,g.sample(p).value,So)}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:s,repeatDelay:r,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 zE()&&s&&BE.has(s)&&!l&&!c&&!r&&i!=="mirror"&&o!==0&&a!=="inertia"}}const ZE={type:"spring",stiffness:500,damping:25,restSpeed:10},KE=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),GE={type:"keyframes",duration:.8},XE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},YE=(e,{keyframes:t})=>t.length>2?GE:Os.has(e)?e.startsWith("scale")?KE(t[1]):ZE:XE;function QE({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:r,repeat:i,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const cu=(e,t,n,s={},r,i)=>o=>{const a=Kc(s,e)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-bn(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:r};QE(a)||(u={...u,...YE(e,u)}),u.duration&&(u.duration=bn(u.duration)),u.repeatDelay&&(u.repeatDelay=bn(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 h=na(u.keyframes,a);if(h!==void 0)return Te.update(()=>{u.onUpdate(h),u.onComplete()}),new P_([])}return!i&&Qd.supports(u)?new Qd(u):new lu(u)};function JE({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function xg(e,t,{delay:n=0,transitionOverride:s,type:r}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;s&&(o=s);const c=[],u=r&&e.animationState&&e.animationState.getState()[r];for(const d in l){const h=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),y=l[d];if(y===void 0||u&&JE(u,d))continue;const g={delay:n,...Kc(o||{},d)};let p=!1;if(window.MotionHandoffAnimation){const x=Vm(e);if(x){const b=window.MotionHandoffAnimation(x,d,Te);b!==null&&(g.startTime=b,p=!0)}}_l(e,d),h.start(cu(d,h,y,e.shouldReduceMotion&&Im.has(d)?{type:!1}:g,e,p));const v=h.animation;v&&c.push(v)}return a&&Promise.all(c).then(()=>{Te.update(()=>{a&&T_(e,a)})}),c}function jl(e,t,n={}){var s;const r=ei(e,t,n.type==="exit"?(s=e.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(xg(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:h}=i;return eC(e,t,u+c,d,h,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 eC(e,t,n=0,s=0,r=1,i){const o=[],a=(e.variantChildren.size-1)*s,l=r===1?(c=0)=>c*s:(c=0)=>a-c*s;return Array.from(e.variantChildren).sort(tC).forEach((c,u)=>{c.notify("AnimationStart",t),o.push(jl(c,t,{...i,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(o)}function tC(e,t){return e.sortNodePosition(t)}function nC(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const r=t.map(i=>jl(e,i,n));s=Promise.all(r)}else if(typeof t=="string")s=jl(e,t,n);else{const r=typeof t=="function"?ei(e,t,n.custom):t;s=Promise.all(xg(e,r,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}function bg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}const sC=Dc.length;function wg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?wg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<sC;n++){const s=Dc[n],r=e.props[s];(Yr(r)||r===!1)&&(t[s]=r)}return t}const rC=[...Mc].reverse(),iC=Mc.length;function oC(e){return t=>Promise.all(t.map(({animation:n,options:s})=>nC(e,n,s)))}function aC(e){let t=oC(e),n=Jd(),s=!0;const r=l=>(c,u)=>{var d;const h=ei(e,u,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(h){const{transition:y,transitionEnd:g,...p}=h;c={...c,...p,...g}}return c};function i(l){t=l(e)}function o(l){const{props:c}=e,u=wg(e.parent)||{},d=[],h=new Set;let y={},g=1/0;for(let v=0;v<iC;v++){const x=rC[v],b=n[x],w=c[x]!==void 0?c[x]:u[x],_=Yr(w),S=x===l?b.isActive:null;S===!1&&(g=v);let T=w===u[x]&&w!==c[x]&&_;if(T&&s&&e.manuallyAnimateOnMount&&(T=!1),b.protectedKeys={...y},!b.isActive&&S===null||!w&&!b.prevProp||ea(w)||typeof w=="boolean")continue;const R=lC(b.prevProp,w);let A=R||x===l&&b.isActive&&!T&&_||v>g&&_,P=!1;const O=Array.isArray(w)?w:[w];let L=O.reduce(r(x),{});S===!1&&(L={});const{prevResolvedValues:M={}}=b,z={...M,...L},F=Z=>{A=!0,h.has(Z)&&(P=!0,h.delete(Z)),b.needsAnimating[Z]=!0;const K=e.getValue(Z);K&&(K.liveStyle=!1)};for(const Z in z){const K=L[Z],ie=M[Z];if(y.hasOwnProperty(Z))continue;let he=!1;Sl(K)&&Sl(ie)?he=!bg(K,ie):he=K!==ie,he?K!=null?F(Z):h.add(Z):K!==void 0&&h.has(Z)?F(Z):b.protectedKeys[Z]=!0}b.prevProp=w,b.prevResolvedValues=L,b.isActive&&(y={...y,...L}),s&&e.blockInitialAnimation&&(A=!1),A&&(!(T&&R)||P)&&d.push(...O.map(Z=>({animation:Z,options:{type:x}})))}if(h.size){const v={};if(typeof c.initial!="boolean"){const x=ei(e,Array.isArray(c.initial)?c.initial[0]:c.initial);x&&x.transition&&(v.transition=x.transition)}h.forEach(x=>{const b=e.getBaseTarget(x),w=e.getValue(x);w&&(w.liveStyle=!0),v[x]=b??null}),d.push({animation:v})}let p=!!d.length;return s&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(p=!1),s=!1,p?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(h=>{var y;return(y=h.animationState)===null||y===void 0?void 0:y.setActive(l,c)}),n[l].isActive=c;const d=o(l);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Jd(),s=!0}}}function lC(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!bg(t,e):!1}function rs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Jd(){return{animate:rs(!0),whileInView:rs(),whileHover:rs(),whileTap:rs(),whileDrag:rs(),whileFocus:rs(),exit:rs()}}class Jn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class cC extends Jn{constructor(t){super(t),t.animationState||(t.animationState=aC(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ea(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 uC=0;class dC extends Jn{constructor(){super(...arguments),this.id=uC++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const fC={animation:{Feature:cC},exit:{Feature:dC}},Mt={x:!1,y:!1};function Sg(){return Mt.x||Mt.y}function hC(e){return e==="x"||e==="y"?Mt[e]?null:(Mt[e]=!0,()=>{Mt[e]=!1}):Mt.x||Mt.y?null:(Mt.x=Mt.y=!0,()=>{Mt.x=Mt.y=!1})}const uu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function si(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function ji(e){return{point:{x:e.pageX,y:e.pageY}}}const pC=e=>t=>uu(t)&&e(t,ji(t));function zr(e,t,n,s){return si(e,t,pC(n),s)}const ef=(e,t)=>Math.abs(e-t);function mC(e,t){const n=ef(e.x,t.x),s=ef(e.y,t.y);return Math.sqrt(n**2+s**2)}class _g{constructor(t,n,{transformPagePoint:s,contextWindow:r,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=Da(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,y=mC(d.offset,{x:0,y:0})>=3;if(!h&&!y)return;const{point:g}=d,{timestamp:p}=qe;this.history.push({...g,timestamp:p});const{onStart:v,onMove:x}=this.handlers;h||(v&&v(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Ma(h,this.transformPagePoint),Te.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:y,onSessionEnd:g,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Da(d.type==="pointercancel"?this.lastMoveEventInfo:Ma(h,this.transformPagePoint),this.history);this.startEvent&&y&&y(d,v),g&&g(d,v)},!uu(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=s,this.contextWindow=r||window;const o=ji(t),a=Ma(o,this.transformPagePoint),{point:l}=a,{timestamp:c}=qe;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,Da(a,this.history)),this.removeListeners=ki(zr(this.contextWindow,"pointermove",this.handlePointerMove),zr(this.contextWindow,"pointerup",this.handlePointerUp),zr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Wn(this.updatePoint)}}function Ma(e,t){return t?{point:t(e.point)}:e}function tf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Da({point:e},t){return{point:e,delta:tf(e,Eg(t)),offset:tf(e,gC(t)),velocity:yC(t,.1)}}function gC(e){return e[0]}function Eg(e){return e[e.length-1]}function yC(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const r=Eg(e);for(;n>=0&&(s=e[n],!(r.timestamp-s.timestamp>bn(t)));)n--;if(!s)return{x:0,y:0};const i=wn(r.timestamp-s.timestamp);if(i===0)return{x:0,y:0};const o={x:(r.x-s.x)/i,y:(r.y-s.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const Cg=1e-4,vC=1-Cg,xC=1+Cg,Tg=.01,bC=0-Tg,wC=0+Tg;function lt(e){return e.max-e.min}function SC(e,t,n){return Math.abs(e-t)<=n}function nf(e,t,n,s=.5){e.origin=s,e.originPoint=Ne(t.min,t.max,e.origin),e.scale=lt(n)/lt(t),e.translate=Ne(n.min,n.max,e.origin)-e.originPoint,(e.scale>=vC&&e.scale<=xC||isNaN(e.scale))&&(e.scale=1),(e.translate>=bC&&e.translate<=wC||isNaN(e.translate))&&(e.translate=0)}function Ur(e,t,n,s){nf(e.x,t.x,n.x,s?s.originX:void 0),nf(e.y,t.y,n.y,s?s.originY:void 0)}function sf(e,t,n){e.min=n.min+t.min,e.max=e.min+lt(t)}function _C(e,t,n){sf(e.x,t.x,n.x),sf(e.y,t.y,n.y)}function rf(e,t,n){e.min=t.min-n.min,e.max=e.min+lt(t)}function Wr(e,t,n){rf(e.x,t.x,n.x),rf(e.y,t.y,n.y)}function EC(e,{min:t,max:n},s){return t!==void 0&&e<t?e=s?Ne(t,e,s.min):Math.max(e,t):n!==void 0&&e>n&&(e=s?Ne(n,e,s.max):Math.min(e,n)),e}function of(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 CC(e,{top:t,left:n,bottom:s,right:r}){return{x:of(e.x,n,r),y:of(e.y,t,s)}}function af(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,s]=[s,n]),{min:n,max:s}}function TC(e,t){return{x:af(e.x,t.x),y:af(e.y,t.y)}}function RC(e,t){let n=.5;const s=lt(e),r=lt(t);return r>s?n=cr(t.min,t.max-s,e.min):s>r&&(n=cr(e.min,e.max-r,t.min)),Sn(0,1,n)}function AC(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 Ol=.35;function NC(e=Ol){return e===!1?e=0:e===!0&&(e=Ol),{x:lf(e,"left","right"),y:lf(e,"top","bottom")}}function lf(e,t,n){return{min:cf(e,t),max:cf(e,n)}}function cf(e,t){return typeof e=="number"?e:e[t]||0}const uf=()=>({translate:0,scale:1,origin:0,originPoint:0}),zs=()=>({x:uf(),y:uf()}),df=()=>({min:0,max:0}),De=()=>({x:df(),y:df()});function At(e){return[e("x"),e("y")]}function Rg({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function PC({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function kC(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function La(e){return e===void 0||e===1}function Ml({scale:e,scaleX:t,scaleY:n}){return!La(e)||!La(t)||!La(n)}function is(e){return Ml(e)||Ag(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ag(e){return ff(e.x)||ff(e.y)}function ff(e){return e&&e!=="0%"}function _o(e,t,n){const s=e-n,r=t*s;return n+r}function hf(e,t,n,s,r){return r!==void 0&&(e=_o(e,r,s)),_o(e,n,s)+t}function Dl(e,t=0,n=1,s,r){e.min=hf(e.min,t,n,s,r),e.max=hf(e.max,t,n,s,r)}function Ng(e,{x:t,y:n}){Dl(e.x,t.translate,t.scale,t.originPoint),Dl(e.y,n.translate,n.scale,n.originPoint)}const pf=.999999999999,mf=1.0000000000001;function jC(e,t,n,s=!1){const r=n.length;if(!r)return;t.x=t.y=1;let i,o;for(let a=0;a<r;a++){i=n[a],o=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Ws(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Ng(e,o)),s&&is(i.latestValues)&&Ws(e,i.latestValues))}t.x<mf&&t.x>pf&&(t.x=1),t.y<mf&&t.y>pf&&(t.y=1)}function Us(e,t){e.min=e.min+t,e.max=e.max+t}function gf(e,t,n,s,r=.5){const i=Ne(e.min,e.max,r);Dl(e,t,n,i,s)}function Ws(e,t){gf(e.x,t.x,t.scaleX,t.scale,t.originX),gf(e.y,t.y,t.scaleY,t.scale,t.originY)}function Pg(e,t){return Rg(kC(e.getBoundingClientRect(),t))}function OC(e,t,n){const s=Pg(e,n),{scroll:r}=t;return r&&(Us(s.x,r.offset.x),Us(s.y,r.offset.y)),s}const kg=({current:e})=>e?e.ownerDocument.defaultView:null,MC=new WeakMap;class DC{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:s}=this.visualElement;if(s&&s.isPresent===!1)return;const r=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ji(u).point)},i=(u,d)=>{const{drag:h,dragPropagation:y,onDragStart:g}=this.getProps();if(h&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=hC(h),!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),At(v=>{let x=this.getAxisMotionValue(v).get()||0;if(sn.test(x)){const{projection:b}=this.visualElement;if(b&&b.layout){const w=b.layout.layoutBox[v];w&&(x=lt(w)*(parseFloat(x)/100))}}this.originPoint[v]=x}),g&&Te.postRender(()=>g(u,d)),_l(this.visualElement,"transform");const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:h,dragDirectionLock:y,onDirectionLock:g,onDrag:p}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=d;if(y&&this.currentDirection===null){this.currentDirection=LC(v),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,v),this.updateAxis("y",d.point,v),this.visualElement.render(),p&&p(u,d)},a=(u,d)=>this.stop(u,d),l=()=>At(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 _g(t,{onSessionStart:r,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:kg(this.visualElement)})}stop(t,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:i}=this.getProps();i&&Te.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:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,s){const{drag:r}=this.getProps();if(!s||!Ji(t,r,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(o=EC(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:s}=this.getProps(),r=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&&Bs(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=CC(r.layoutBox,n):this.constraints=!1,this.elastic=NC(s),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&At(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=AC(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Bs(t))return!1;const s=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=OC(s,r.root,this.visualElement.getTransformPagePoint());let o=TC(r.layout.layoutBox,i);if(n){const a=n(PC(o));this.hasMutatedConstraints=!!a,a&&(o=Rg(a))}return o}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=At(u=>{if(!Ji(u,n,this.currentDirection))return;let d=l&&l[u]||{};o&&(d={min:0,max:0});const h=r?200:1e6,y=r?40:1e7,g={type:"inertia",velocity:s?t[u]:0,bounceStiffness:h,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,g)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return _l(this.visualElement,t),s.start(cu(t,s,0,n,this.visualElement,!1))}stopAnimation(){At(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){At(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()}`,s=this.visualElement.getProps(),r=s[n];return r||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){At(n=>{const{drag:s}=this.getProps();if(!Ji(n,s,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(n);if(r&&r.layout){const{min:o,max:a}=r.layout.layoutBox[n];i.set(t[n]-Ne(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Bs(n)||!s||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};At(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();r[o]=RC({min:l,max:l},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),At(o=>{if(!Ji(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(Ne(l,c,r[o]))})}addListeners(){if(!this.visualElement.current)return;MC.set(this.visualElement,this);const t=this.visualElement.current,n=zr(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();Bs(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",s);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Te.read(s);const o=si(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(At(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:s=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=Ol,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Ji(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function LC(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class IC extends Jn{constructor(t){super(t),this.removeGroupControls=bt,this.removeListeners=bt,this.controls=new DC(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bt}unmount(){this.removeGroupControls(),this.removeListeners()}}const yf=e=>(t,n)=>{e&&Te.postRender(()=>e(t,n))};class FC extends Jn{constructor(){super(...arguments),this.removePointerDownListener=bt}onPointerDown(t){this.session=new _g(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:kg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:r}=this.node.getProps();return{onSessionStart:yf(t),onStart:yf(n),onMove:s,onEnd:(i,o)=>{delete this.session,r&&Te.postRender(()=>r(i,o))}}}mount(){this.removePointerDownListener=zr(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 lo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function vf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const kr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ne.test(e))e=parseFloat(e);else return e;const n=vf(e,t.target.x),s=vf(e,t.target.y);return`${n}% ${s}%`}},VC={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,r=Hn.parse(e);if(r.length>5)return s;const i=Hn.createTransformer(e),o=typeof r[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;r[0+o]/=a,r[1+o]/=l;const c=Ne(a,l,.5);return typeof r[2+o]=="number"&&(r[2+o]/=c),typeof r[3+o]=="number"&&(r[3+o]/=c),i(r)}};class BC extends m.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:r}=this.props,{projection:i}=t;YS($C),i&&(n.group&&n.group.add(i),s&&s.register&&r&&s.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),lo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:s,drag:r,isPresent:i}=this.props,o=s.projection;return o&&(o.isPresent=i,r||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||Te.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ic.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),s&&s.deregister&&s.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function jg(e){const[t,n]=gm(),s=m.useContext(Pc);return f.jsx(BC,{...e,layoutGroup:s,switchLayoutGroup:m.useContext(Em),isPresent:t,safeToRemove:n})}const $C={borderRadius:{...kr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:kr,borderTopRightRadius:kr,borderBottomLeftRadius:kr,borderBottomRightRadius:kr,boxShadow:VC};function zC(e,t,n){const s=tt(e)?e:ti(e);return s.start(cu("",s,t,n)),s.animation}function UC(e){return e instanceof SVGElement&&e.tagName!=="svg"}const WC=(e,t)=>e.depth-t.depth;class HC{constructor(){this.children=[],this.isDirty=!1}add(t){Gc(this.children,t),this.isDirty=!0}remove(t){Xc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(WC),this.isDirty=!1,this.children.forEach(t)}}function qC(e,t){const n=rn.now(),s=({timestamp:r})=>{const i=r-n;i>=t&&(Wn(s),e(i-t))};return Te.read(s,!0),()=>Wn(s)}const Og=["TopLeft","TopRight","BottomLeft","BottomRight"],ZC=Og.length,xf=e=>typeof e=="string"?parseFloat(e):e,bf=e=>typeof e=="number"||ne.test(e);function KC(e,t,n,s,r,i){r?(e.opacity=Ne(0,n.opacity!==void 0?n.opacity:1,GC(s)),e.opacityExit=Ne(t.opacity!==void 0?t.opacity:1,0,XC(s))):i&&(e.opacity=Ne(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let o=0;o<ZC;o++){const a=`border${Og[o]}Radius`;let l=wf(t,a),c=wf(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||bf(l)===bf(c)?(e[a]=Math.max(Ne(xf(l),xf(c),s),0),(sn.test(c)||sn.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=Ne(t.rotate||0,n.rotate||0,s))}function wf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const GC=Mg(0,.5,Gm),XC=Mg(.5,.95,bt);function Mg(e,t,n){return s=>s<e?0:s>t?1:n(cr(e,t,s))}function Sf(e,t){e.min=t.min,e.max=t.max}function Rt(e,t){Sf(e.x,t.x),Sf(e.y,t.y)}function _f(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ef(e,t,n,s,r){return e-=t,e=_o(e,1/n,s),r!==void 0&&(e=_o(e,1/r,s)),e}function YC(e,t=0,n=1,s=.5,r,i=e,o=e){if(sn.test(t)&&(t=parseFloat(t),t=Ne(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Ne(i.min,i.max,s);e===i&&(a-=t),e.min=Ef(e.min,t,n,a,r),e.max=Ef(e.max,t,n,a,r)}function Cf(e,t,[n,s,r],i,o){YC(e,t[n],t[s],t[r],t.scale,i,o)}const QC=["x","scaleX","originX"],JC=["y","scaleY","originY"];function Tf(e,t,n,s){Cf(e.x,t,QC,n?n.x:void 0,s?s.x:void 0),Cf(e.y,t,JC,n?n.y:void 0,s?s.y:void 0)}function Rf(e){return e.translate===0&&e.scale===1}function Dg(e){return Rf(e.x)&&Rf(e.y)}function Af(e,t){return e.min===t.min&&e.max===t.max}function eT(e,t){return Af(e.x,t.x)&&Af(e.y,t.y)}function Nf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Lg(e,t){return Nf(e.x,t.x)&&Nf(e.y,t.y)}function Pf(e){return lt(e.x)/lt(e.y)}function kf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class tT{constructor(){this.members=[]}add(t){Gc(this.members,t),t.scheduleRender()}remove(t){if(Xc(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(r=>t===r);if(n===0)return!1;let s;for(let r=n;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1){s=i;break}}return s?(this.promote(s),!0):!1}promote(t,n){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,n&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:s}=t;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function nT(e,t,n){let s="";const r=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((r||i||o)&&(s=`translate3d(${r}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:h,skewX:y,skewY:g}=n;c&&(s=`perspective(${c}px) ${s}`),u&&(s+=`rotate(${u}deg) `),d&&(s+=`rotateX(${d}deg) `),h&&(s+=`rotateY(${h}deg) `),y&&(s+=`skewX(${y}deg) `),g&&(s+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const Ia=["","X","Y","Z"],sT={visibility:"hidden"},jf=1e3;let rT=0;function Fa(e,t,n,s){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),s&&(s[e]=0))}function Ig(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Vm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Te,!(r||i))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&Ig(s)}function Fg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(o={},a=t==null?void 0:t()){this.id=rT++,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,this.nodes.forEach(aT),this.nodes.forEach(fT),this.nodes.forEach(hT),this.nodes.forEach(lT)},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 HC)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Yc),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=UC(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 h=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=qC(h,250),lo.hasAnimatedSinceResize&&(lo.hasAnimatedSinceResize=!1,this.nodes.forEach(Mf))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:y,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||vT,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=u.getProps(),b=!this.targetLayout||!Lg(this.targetLayout,g),w=!h&&y;if(this.options.layoutRoot||this.resumeFrom||w||h&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,w);const _={...Kc(p,"layout"),onPlay:v,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_)}else h||Mf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}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,Wn(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(pT),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&&Ig(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(Of);return}this.isUpdating||this.nodes.forEach(uT),this.isUpdating=!1,this.nodes.forEach(dT),this.nodes.forEach(iT),this.nodes.forEach(oT),this.clearAllSnapshots();const a=rn.now();qe.delta=Sn(0,1e3/60,a-qe.timestamp),qe.timestamp=a,qe.isProcessing=!0,Pa.update.process(qe),Pa.preRender.process(qe),Pa.render.process(qe),qe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ic.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(cT),this.sharedNodes.forEach(mT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Te.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Te.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!lt(this.snapshot.measuredBox.x)&&!lt(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=s(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(!r)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Dg(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&(a||is(this.latestValues)||u)&&(r(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)),xT(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(bT))){const{scroll:u}=this.root;u&&(Us(l.x,u.offset.x),Us(l.y,u.offset.y))}return l}removeElementScroll(o){var a;const l=De();if(Rt(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:h}=u;u!==this.root&&d&&h.layoutScroll&&(d.wasRoot&&Rt(l,o),Us(l.x,d.offset.x),Us(l.y,d.offset.y))}return l}applyTransform(o,a=!1){const l=De();Rt(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&&Ws(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),is(u.latestValues)&&Ws(l,u.latestValues)}return is(this.latestValues)&&Ws(l,this.latestValues),l}removeTransform(o){const a=De();Rt(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!is(c.latestValues))continue;Ml(c.latestValues)&&c.updateSnapshot();const u=De(),d=c.measurePageBox();Rt(u,d),Tf(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return is(this.latestValues)&&Tf(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!==qe.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:h}=this.options;if(!(!this.layout||!(d||h))){if(this.resolvedRelativeTargetAt=qe.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=De(),this.relativeTargetOrigin=De(),Wr(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),Rt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=De(),this.targetWithTransforms=De()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),_C(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Rt(this.target,this.layout.layoutBox),Ng(this.target,this.targetDelta)):Rt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=De(),this.relativeTargetOrigin=De(),Wr(this.relativeTargetOrigin,this.target,y.target),Rt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Ml(this.parent.latestValues)||Ag(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===qe.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;Rt(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,y=this.treeScale.y;jC(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:g}=a;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(_f(this.prevProjectionDelta.x,this.projectionDelta.x),_f(this.prevProjectionDelta.y,this.projectionDelta.y)),Ur(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==y||!kf(this.projectionDelta.x,this.prevProjectionDelta.x)||!kf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}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=zs(),this.projectionDelta=zs(),this.projectionDeltaWithTransform=zs()}setAnimationOrigin(o,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=zs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=De(),y=l?l.source:void 0,g=this.layout?this.layout.source:void 0,p=y!==g,v=this.getStack(),x=!v||v.members.length<=1,b=!!(p&&!x&&this.options.crossfade===!0&&!this.path.some(yT));this.animationProgress=0;let w;this.mixTargetDelta=_=>{const S=_/1e3;Df(d.x,o.x,S),Df(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wr(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),gT(this.relativeTarget,this.relativeTargetOrigin,h,S),w&&eT(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=De()),Rt(w,this.relativeTarget)),p&&(this.animationValues=u,KC(u,c,this.latestValues,S,b,x)),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&&(Wn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Te.update(()=>{lo.hasAnimatedSinceResize=!0,this.currentAnimation=zC(0,jf,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},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(jf),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&&Vg(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||De();const d=lt(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const h=lt(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}Rt(a,l),Ws(a,u),Ur(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new tT),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&&Fa("z",o,c,this.animationValues);for(let u=0;u<Ia.length;u++)Fa(`rotate${Ia[u]}`,o,c,this.animationValues),Fa(`skew${Ia[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 sT;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=oo(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 p={};return this.options.layoutId&&(p.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,p.pointerEvents=oo(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!is(this.latestValues)&&(p.transform=u?u({},""):"none",this.hasProjected=!1),p}const h=d.animationValues||d.latestValues;this.applyTransformsToTarget(),c.transform=nT(this.projectionDeltaWithTransform,this.treeScale,h),u&&(c.transform=u(h,c.transform));const{x:y,y:g}=this.projectionDelta;c.transformOrigin=`${y.origin*100}% ${g.origin*100}% 0`,d.animationValues?c.opacity=d===this?(l=(a=h.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:c.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const p in Qr){if(h[p]===void 0)continue;const{correct:v,applyTo:x,isCSSVariable:b}=Qr[p],w=c.transform==="none"?h[p]:v(h[p],d);if(x){const _=x.length;for(let S=0;S<_;S++)c[x[S]]=w}else b?this.options.visualElement.renderState.vars[p]=w:c[p]=w}return this.options.layoutId&&(c.pointerEvents=d===this?oo(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(Of),this.root.sharedNodes.clear()}}}function iT(e){e.updateLayout()}function oT(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:s,measuredBox:r}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?At(d=>{const h=o?n.measuredBox[d]:n.layoutBox[d],y=lt(h);h.min=s[d].min,h.max=h.min+y}):Vg(i,n.layoutBox,s)&&At(d=>{const h=o?n.measuredBox[d]:n.layoutBox[d],y=lt(s[d]);h.max=h.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+y)});const a=zs();Ur(a,s,n.layoutBox);const l=zs();o?Ur(l,e.applyTransform(r,!0),n.measuredBox):Ur(l,s,n.layoutBox);const c=!Dg(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:y}=d;if(h&&y){const g=De();Wr(g,n.layoutBox,h.layoutBox);const p=De();Wr(p,s,y.layoutBox),Lg(g,p)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function aT(e){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 lT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function cT(e){e.clearSnapshot()}function Of(e){e.clearMeasurements()}function uT(e){e.isLayoutDirty=!1}function dT(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Mf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function fT(e){e.resolveTargetDelta()}function hT(e){e.calcProjection()}function pT(e){e.resetSkewAndRotation()}function mT(e){e.removeLeadSnapshot()}function Df(e,t,n){e.translate=Ne(t.translate,0,n),e.scale=Ne(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Lf(e,t,n,s){e.min=Ne(t.min,n.min,s),e.max=Ne(t.max,n.max,s)}function gT(e,t,n,s){Lf(e.x,t.x,n.x,s),Lf(e.y,t.y,n.y,s)}function yT(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const vT={duration:.45,ease:[.4,0,.1,1]},If=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ff=If("applewebkit/")&&!If("chrome/")?Math.round:bt;function Vf(e){e.min=Ff(e.min),e.max=Ff(e.max)}function xT(e){Vf(e.x),Vf(e.y)}function Vg(e,t,n){return e==="position"||e==="preserve-aspect"&&!SC(Pf(t),Pf(n),.2)}function bT(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const wT=Fg({attachResizeListener:(e,t)=>si(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Va={current:void 0},Bg=Fg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Va.current){const e=new wT({});e.mount(window),e.setOptions({layoutScroll:!0}),Va.current=e}return Va.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ST={pan:{Feature:FC},drag:{Feature:IC,ProjectionNode:Bg,MeasureLayout:jg}};function _T(e,t,n){var s;if(e instanceof Element)return[e];if(typeof e=="string"){let r=document;const i=(s=void 0)!==null&&s!==void 0?s:r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function $g(e,t){const n=_T(e),s=new AbortController,r={passive:!0,...t,signal:s.signal};return[n,r,()=>s.abort()]}function Bf(e){return!(e.pointerType==="touch"||Sg())}function ET(e,t,n={}){const[s,r,i]=$g(e,n),o=a=>{if(!Bf(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const u=d=>{Bf(d)&&(c(d),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,r)};return s.forEach(a=>{a.addEventListener("pointerenter",o,r)}),i}function $f(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,i=s[r];i&&Te.postRender(()=>i(t,ji(t)))}class CT extends Jn{mount(){const{current:t}=this.node;t&&(this.unmount=ET(t,(n,s)=>($f(this.node,s,"Start"),r=>$f(this.node,r,"End"))))}unmount(){}}class TT extends Jn{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=ki(si(this.node.current,"focus",()=>this.onFocus()),si(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const zg=(e,t)=>t?e===t?!0:zg(e,t.parentElement):!1,RT=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function AT(e){return RT.has(e.tagName)||e.tabIndex!==-1}const Ir=new WeakSet;function zf(e){return t=>{t.key==="Enter"&&e(t)}}function Ba(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const NT=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=zf(()=>{if(Ir.has(n))return;Ba(n,"down");const r=zf(()=>{Ba(n,"up")}),i=()=>Ba(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function Uf(e){return uu(e)&&!Sg()}function PT(e,t,n={}){const[s,r,i]=$g(e,n),o=a=>{const l=a.currentTarget;if(!Uf(a)||Ir.has(l))return;Ir.add(l);const c=t(l,a),u=(y,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),!(!Uf(y)||!Ir.has(l))&&(Ir.delete(l),typeof c=="function"&&c(y,{success:g}))},d=y=>{u(y,n.useGlobalTarget||zg(l,y.target))},h=y=>{u(y,!1)};window.addEventListener("pointerup",d,r),window.addEventListener("pointercancel",h,r)};return s.forEach(a=>{!AT(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,r),a.addEventListener("focus",c=>NT(c,r),r)}),i}function Wf(e,t,n){const{props:s}=e;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),i=s[r];i&&Te.postRender(()=>i(t,ji(t)))}class kT extends Jn{mount(){const{current:t}=this.node;t&&(this.unmount=PT(t,(n,s)=>(Wf(this.node,s,"Start"),(r,{success:i})=>Wf(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ll=new WeakMap,$a=new WeakMap,jT=e=>{const t=Ll.get(e.target);t&&t(e)},OT=e=>{e.forEach(jT)};function MT({root:e,...t}){const n=e||document;$a.has(n)||$a.set(n,{});const s=$a.get(n),r=JSON.stringify(t);return s[r]||(s[r]=new IntersectionObserver(OT,{root:e,...t})),s[r]}function DT(e,t,n){const s=MT(t);return Ll.set(e,n),s.observe(e),()=>{Ll.delete(e),s.unobserve(e)}}const LT={some:0,all:1};class IT extends Jn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof r=="number"?r:LT[r]},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(),h=c?u:d;h&&h(l)};return DT(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(FT(t,n))&&this.startObserver()}unmount(){}}function FT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const VT={inView:{Feature:IT},tap:{Feature:kT},focus:{Feature:TT},hover:{Feature:CT}},BT={layout:{ProjectionNode:Bg,MeasureLayout:jg}},Il={current:null},Ug={current:!1};function $T(){if(Ug.current=!0,!!Oc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Il.current=e.matches;e.addListener(t),t()}else Il.current=!1}const zT=[...cg,Je,Hn],UT=e=>zT.find(lg(e)),WT=new WeakMap;function HT(e,t,n){for(const s in t){const r=t[s],i=n[s];if(tt(r))e.addValue(s,r);else if(tt(i))e.addValue(s,ti(r,{owner:e}));else if(i!==r)if(e.hasValue(s)){const o=e.getValue(s);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=e.getStaticValue(s);e.addValue(s,ti(o!==void 0?o:r,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const Hf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class qT{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:r,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=ou,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 y=rn.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,Te.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=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=ta(n),this.isVariantNode=Sm(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in h){const g=h[y];l[y]!==void 0&&tt(g)&&g.set(l[y],!1)}}mount(t){this.current=t,WT.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,s)=>this.bindToMotionValue(s,n)),Ug.current||$T(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Il.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Wn(this.notifyUpdate),Wn(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 s=Os.has(t);s&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Te.preRender(this.notifyUpdate),s&&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,()=>{r(),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 lr){const n=lr[t];if(!n)continue;const{isEnabled:s,Feature:r}=n;if(!this.features[t]&&r&&s(this.props)&&(this.features[t]=new r(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 s=0;s<Hf.length;s++){const r=Hf[s];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const i="on"+r,o=t[i];o&&(this.propEventSubscriptions[r]=this.on(r,o))}this.prevMotionValues=HT(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 s=this.values.get(t);n!==s&&(s&&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 s=this.values.get(t);return s===void 0&&n!==void 0&&(s=ti(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){var s;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(s=this.getBaseTargetFromProps(this.props,t))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(og(r)||Ym(r))?r=parseFloat(r):!UT(r)&&Hn.test(n)&&(r=sg(t,n)),this.setBaseTarget(t,tt(r)?r.get():r)),tt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:s}=this.props;let r;if(typeof s=="string"||typeof s=="object"){const o=qc(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(r=o[t])}if(s&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!tt(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Yc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Wg extends qT{constructor(){super(...arguments),this.KeyframeResolver=ug}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:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;tt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function ZT(e){return window.getComputedStyle(e)}class KT extends Wg{constructor(){super(...arguments),this.type="html",this.renderInstance=Om}readValueFromInstance(t,n){if(Os.has(n)){const s=iu(n);return s&&s.default||0}else{const s=ZT(t),r=(Fc(n)?s.getPropertyValue(n):s[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Pg(t,n)}build(t,n,s){$c(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return Zc(t,n,s)}}class GT extends Wg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=De,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&jm(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Os.has(n)){const s=iu(n);return s&&s.default||0}return n=Mm.has(n)?n:Lc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return Lm(t,n,s)}onBindTransform(){this.current&&!this.renderState.dimensions&&Te.postRender(this.updateDimensions)}build(t,n,s){Wc(t,n,this.isSVGTag,s.transformTemplate)}renderInstance(t,n,s,r){Dm(t,n,s,r)}mount(t){this.isSVGTag=Hc(t.tagName),super.mount(t)}}const XT=(e,t)=>Uc(e)?new GT(t):new KT(t,{allowProjection:e!==m.Fragment}),YT=w_({...fC,...VT,...ST,...BT},XT),Hr=IS(YT);var za,qf;function QT(){if(qf)return za;qf=1;var e="Expected a function",t=NaN,n="[object Symbol]",s=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,l=typeof Ui=="object"&&Ui&&Ui.Object===Object&&Ui,c=typeof self=="object"&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype,h=d.toString,y=Math.max,g=Math.min,p=function(){return u.Date.now()};function v(S,T,R){var A,P,O,L,M,z,F=0,Y=!1,J=!1,Z=!0;if(typeof S!="function")throw new TypeError(e);T=_(T)||0,x(R)&&(Y=!!R.leading,J="maxWait"in R,O=J?y(_(R.maxWait)||0,T):O,Z="trailing"in R?!!R.trailing:Z);function K(de){var xe=A,Oe=P;return A=P=void 0,F=de,L=S.apply(Oe,xe),L}function ie(de){return F=de,M=setTimeout($e,T),Y?K(de):L}function he(de){var xe=de-z,Oe=de-F,Ve=T-xe;return J?g(Ve,O-Oe):Ve}function ve(de){var xe=de-z,Oe=de-F;return z===void 0||xe>=T||xe<0||J&&Oe>=O}function $e(){var de=p();if(ve(de))return Xe(de);M=setTimeout($e,he(de))}function Xe(de){return M=void 0,Z&&A?K(de):(A=P=void 0,L)}function Ye(){M!==void 0&&clearTimeout(M),F=0,A=z=P=M=void 0}function Ot(){return M===void 0?L:Xe(p())}function it(){var de=p(),xe=ve(de);if(A=arguments,P=this,z=de,xe){if(M===void 0)return ie(z);if(J)return M=setTimeout($e,T),K(z)}return M===void 0&&(M=setTimeout($e,T)),L}return it.cancel=Ye,it.flush=Ot,it}function x(S){var T=typeof S;return!!S&&(T=="object"||T=="function")}function b(S){return!!S&&typeof S=="object"}function w(S){return typeof S=="symbol"||b(S)&&h.call(S)==n}function _(S){if(typeof S=="number")return S;if(w(S))return t;if(x(S)){var T=typeof S.valueOf=="function"?S.valueOf():S;S=x(T)?T+"":T}if(typeof S!="string")return S===0?S:+S;S=S.replace(s,"");var R=i.test(S);return R||o.test(S)?a(S.slice(2),R?2:8):r.test(S)?t:+S}return za=v,za}QT();var Hg=typeof window<"u"?m.useLayoutEffect:m.useEffect,JT=typeof window>"u";function Eo(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const s=a=>JT?t:window.matchMedia(a).matches,[r,i]=m.useState(()=>n?s(e):t);function o(){i(s(e))}return Hg(()=>{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]),r}var eR=typeof window>"u";function tR(e={}){const{autoLock:t=!0,lockTarget:n,widthReflow:s=!0}=e,[r,i]=m.useState(!1),o=m.useRef(null),a=m.useRef(null),l=()=>{if(o.current){const{overflow:u,paddingRight:d}=o.current.style;if(a.current={overflow:u,paddingRight:d},s){const h=o.current===document.body?window.innerWidth:o.current.offsetWidth,y=parseInt(window.getComputedStyle(o.current).paddingRight,10)||0,g=h-o.current.scrollWidth;o.current.style.paddingRight=`${g+y}px`}o.current.style.overflow="hidden",i(!0)}},c=()=>{o.current&&a.current&&(o.current.style.overflow=a.current.overflow,s&&(o.current.style.paddingRight=a.current.paddingRight)),i(!1)};return Hg(()=>{if(!eR)return n&&(o.current=typeof n=="string"?document.querySelector(n):n),o.current||(o.current=document.body),t&&l(),()=>{c()}},[t,n,s]),{isLocked:r,lock:l,unlock:c}}const IO=({className:e,stage:t})=>{const n=Eo("(min-width: 768px");return f.jsx("div",{className:e,children:f.jsx("div",{className:"max-w-[808px] md:mx-auto my-20 mx-5",children:f.jsxs("div",{className:"relative h-14 w-full",children:[f.jsx("div",{className:V("h-2 absolute bg-[#D0D3D8] rounded-[2px] w-full top-0 left-0")}),f.jsx(Hr.div,{initial:{width:0},animate:t===2?{width:"20%"}:t===3&&{width:"75%"},transition:{delay:.5,duration:.5},className:V("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})}),f.jsx(Hr.div,{initial:{width:n?"50%":"35%"},animate:t===2?{width:"75%"}:t===3&&{width:"100%"},className:V("bg-reverse_primary w-1/2 absolute top-0 left-0 rounded-[2px] z-[3] h-2")}),f.jsx(Hr.div,{className:V("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"}),f.jsx("div",{className:V("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"}),f.jsx("div",{className:V("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 Oi=e=>e.type==="checkbox",ls=e=>e instanceof Date,at=e=>e==null;const qg=e=>typeof e=="object";var Ie=e=>!at(e)&&!Array.isArray(e)&&qg(e)&&!ls(e),Zg=e=>Ie(e)&&e.target?Oi(e.target)?e.target.checked:e.target.value:e,nR=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Kg=(e,t)=>e.has(nR(t)),sR=e=>{const t=e.constructor&&e.constructor.prototype;return Ie(t)&&t.hasOwnProperty("isPrototypeOf")},du=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function dt(e){let t;const n=Array.isArray(e),s=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(!(du&&(e instanceof Blob||s))&&(n||Ie(e)))if(t=n?[]:{},!n&&!sR(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=dt(e[r]));else return e;return t}var sa=e=>Array.isArray(e)?e.filter(Boolean):[],Le=e=>e===void 0,$=(e,t,n)=>{if(!t||!Ie(e))return n;const s=sa(t.split(/[,[\].]+?/)).reduce((r,i)=>at(r)?r:r[i],e);return Le(s)||s===e?Le(e[t])?n:e[t]:s},kt=e=>typeof e=="boolean",fu=e=>/^\w*$/.test(e),Gg=e=>sa(e.replace(/["|']|\]/g,"").split(/\.|\[/)),be=(e,t,n)=>{let s=-1;const r=fu(t)?[t]:Gg(t),i=r.length,o=i-1;for(;++s<i;){const a=r[s];let l=n;if(s!==o){const c=e[a];l=Ie(c)||Array.isArray(c)?c:isNaN(+r[s+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;e[a]=l,e=e[a]}return e};const Co={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},It={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},pn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Xg=fe.createContext(null),ra=()=>fe.useContext(Xg),rR=e=>{const{children:t,...n}=e;return fe.createElement(Xg.Provider,{value:n},t)};var Yg=(e,t,n,s=!0)=>{const r={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(r,i,{get:()=>{const o=i;return t._proxyFormState[o]!==It.all&&(t._proxyFormState[o]=!s||It.all),n&&(n[o]=!0),e[o]}});return r},ht=e=>Ie(e)&&!Object.keys(e).length,Qg=(e,t,n,s)=>{n(e);const{name:r,...i}=e;return ht(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!s||It.all))},qr=e=>Array.isArray(e)?e:[e],Jg=(e,t,n)=>!e||!t||e===t||qr(e).some(s=>s&&(n?s===t:s.startsWith(t)||t.startsWith(s)));function hu(e){const t=fe.useRef(e);t.current=e,fe.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function iR(e){const t=ra(),{control:n=t.control,disabled:s,name:r,exact:i}=e||{},[o,a]=fe.useState(n._formState),l=fe.useRef(!0),c=fe.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=fe.useRef(r);return u.current=r,hu({disabled:s,next:d=>l.current&&Jg(u.current,d.name,i)&&Qg(d,c.current,n._updateFormState)&&a({...n._formState,...d}),subject:n._subjects.state}),fe.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),fe.useMemo(()=>Yg(o,n,c.current,!1),[o,n])}var nn=e=>typeof e=="string",ey=(e,t,n,s,r)=>nn(e)?(s&&t.watch.add(e),$(n,e,r)):Array.isArray(e)?e.map(i=>(s&&t.watch.add(i),$(n,i))):(s&&(t.watchAll=!0),n);function oR(e){const t=ra(),{control:n=t.control,name:s,defaultValue:r,disabled:i,exact:o}=e||{},a=fe.useRef(s);a.current=s,hu({disabled:i,subject:n._subjects.values,next:u=>{Jg(a.current,u.name,o)&&c(dt(ey(a.current,n._names,u.values||n._formValues,!1,r)))}});const[l,c]=fe.useState(n._getWatch(s,r));return fe.useEffect(()=>n._removeUnmounted()),l}function aR(e){const t=ra(),{name:n,disabled:s,control:r=t.control,shouldUnregister:i}=e,o=Kg(r._names.array,n),a=oR({control:r,name:n,defaultValue:$(r._formValues,n,$(r._defaultValues,n,e.defaultValue)),exact:!0}),l=iR({control:r,name:n,exact:!0}),c=fe.useRef(r.register(n,{...e.rules,value:a,...kt(e.disabled)?{disabled:e.disabled}:{}})),u=fe.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=fe.useMemo(()=>({name:n,value:a,...kt(s)||l.disabled?{disabled:l.disabled||s}:{},onChange:h=>c.current.onChange({target:{value:Zg(h),name:n},type:Co.CHANGE}),onBlur:()=>c.current.onBlur({target:{value:$(r._formValues,n),name:n},type:Co.BLUR}),ref:h=>{const y=$(r._fields,n);y&&h&&(y._f.ref={focus:()=>h.focus(),select:()=>h.select(),setCustomValidity:g=>h.setCustomValidity(g),reportValidity:()=>h.reportValidity()})}}),[n,r._formValues,s,l.disabled,a,r._fields]);return fe.useEffect(()=>{const h=r._options.shouldUnregister||i,y=(g,p)=>{const v=$(r._fields,g);v&&v._f&&(v._f.mount=p)};if(y(n,!0),h){const g=dt($(r._options.defaultValues,n));be(r._defaultValues,n,g),Le($(r._formValues,n))&&be(r._formValues,n,g)}return!o&&r.register(n),()=>{(o?h&&!r._state.action:h)?r.unregister(n):y(n,!1)}},[n,r,o,i]),fe.useEffect(()=>{r._updateDisabledField({disabled:s,fields:r._fields,name:n})},[s,n,r]),fe.useMemo(()=>({field:d,formState:l,fieldState:u}),[d,l,u])}const lR=e=>e.render(aR(e));var ty=(e,t,n,s,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[s]:r||!0}}:{},Zf=e=>({isOnSubmit:!e||e===It.onSubmit,isOnBlur:e===It.onBlur,isOnChange:e===It.onChange,isOnAll:e===It.all,isOnTouch:e===It.onTouched}),Kf=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const Zr=(e,t,n,s)=>{for(const r of n||Object.keys(e)){const i=$(e,r);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],r)&&!s)return!0;if(o.ref&&t(o.ref,o.name)&&!s)return!0;if(Zr(a,t))break}else if(Ie(a)&&Zr(a,t))break}}};var cR=(e,t,n)=>{const s=qr($(e,n));return be(s,"root",t[n]),be(e,n,s),e},pu=e=>e.type==="file",tn=e=>typeof e=="function",To=e=>{if(!du)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},co=e=>nn(e),mu=e=>e.type==="radio",Ro=e=>e instanceof RegExp;const Gf={value:!1,isValid:!1},Xf={value:!0,isValid:!0};var ny=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&&!Le(e[0].attributes.value)?Le(e[0].value)||e[0].value===""?Xf:{value:e[0].value,isValid:!0}:Xf:Gf}return Gf};const Yf={isValid:!1,value:null};var sy=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Yf):Yf;function Qf(e,t,n="validate"){if(co(e)||Array.isArray(e)&&e.every(co)||kt(e)&&!e)return{type:n,message:co(e)?e:"",ref:t}}var Fs=e=>Ie(e)&&!Ro(e)?e:{value:e,message:""},Jf=async(e,t,n,s,r,i)=>{const{ref:o,refs:a,required:l,maxLength:c,minLength:u,min:d,max:h,pattern:y,validate:g,name:p,valueAsNumber:v,mount:x}=e._f,b=$(n,p);if(!x||t.has(p))return{};const w=a?a[0]:o,_=M=>{r&&w.reportValidity&&(w.setCustomValidity(kt(M)?"":M||""),w.reportValidity())},S={},T=mu(o),R=Oi(o),A=T||R,P=(v||pu(o))&&Le(o.value)&&Le(b)||To(o)&&o.value===""||b===""||Array.isArray(b)&&!b.length,O=ty.bind(null,p,s,S),L=(M,z,F,Y=pn.maxLength,J=pn.minLength)=>{const Z=M?z:F;S[p]={type:M?Y:J,message:Z,ref:o,...O(M?Y:J,Z)}};if(i?!Array.isArray(b)||!b.length:l&&(!A&&(P||at(b))||kt(b)&&!b||R&&!ny(a).isValid||T&&!sy(a).isValid)){const{value:M,message:z}=co(l)?{value:!!l,message:l}:Fs(l);if(M&&(S[p]={type:pn.required,message:z,ref:w,...O(pn.required,z)},!s))return _(z),S}if(!P&&(!at(d)||!at(h))){let M,z;const F=Fs(h),Y=Fs(d);if(!at(b)&&!isNaN(b)){const J=o.valueAsNumber||b&&+b;at(F.value)||(M=J>F.value),at(Y.value)||(z=J<Y.value)}else{const J=o.valueAsDate||new Date(b),Z=he=>new Date(new Date().toDateString()+" "+he),K=o.type=="time",ie=o.type=="week";nn(F.value)&&b&&(M=K?Z(b)>Z(F.value):ie?b>F.value:J>new Date(F.value)),nn(Y.value)&&b&&(z=K?Z(b)<Z(Y.value):ie?b<Y.value:J<new Date(Y.value))}if((M||z)&&(L(!!M,F.message,Y.message,pn.max,pn.min),!s))return _(S[p].message),S}if((c||u)&&!P&&(nn(b)||i&&Array.isArray(b))){const M=Fs(c),z=Fs(u),F=!at(M.value)&&b.length>+M.value,Y=!at(z.value)&&b.length<+z.value;if((F||Y)&&(L(F,M.message,z.message),!s))return _(S[p].message),S}if(y&&!P&&nn(b)){const{value:M,message:z}=Fs(y);if(Ro(M)&&!b.match(M)&&(S[p]={type:pn.pattern,message:z,ref:o,...O(pn.pattern,z)},!s))return _(z),S}if(g){if(tn(g)){const M=await g(b,n),z=Qf(M,w);if(z&&(S[p]={...z,...O(pn.validate,z.message)},!s))return _(z.message),S}else if(Ie(g)){let M={};for(const z in g){if(!ht(M)&&!s)break;const F=Qf(await g[z](b,n),w,z);F&&(M={...F,...O(z,F.message)},_(F.message),s&&(S[p]=M))}if(!ht(M)&&(S[p]={ref:w,...M},!s))return S}}return _(!0),S};function uR(e,t){const n=t.slice(0,-1).length;let s=0;for(;s<n;)e=Le(e)?s++:e[t[s++]];return e}function dR(e){for(const t in e)if(e.hasOwnProperty(t)&&!Le(e[t]))return!1;return!0}function ze(e,t){const n=Array.isArray(t)?t:fu(t)?[t]:Gg(t),s=n.length===1?e:uR(e,n),r=n.length-1,i=n[r];return s&&delete s[i],r!==0&&(Ie(s)&&ht(s)||Array.isArray(s)&&dR(s))&&ze(e,n.slice(0,-1)),e}var Ua=()=>{let e=[];return{get observers(){return e},next:r=>{for(const i of e)i.next&&i.next(r)},subscribe:r=>(e.push(r),{unsubscribe:()=>{e=e.filter(i=>i!==r)}}),unsubscribe:()=>{e=[]}}},Fl=e=>at(e)||!qg(e);function Mn(e,t){if(Fl(e)||Fl(t))return e===t;if(ls(e)&&ls(t))return e.getTime()===t.getTime();const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(const r of n){const i=e[r];if(!s.includes(r))return!1;if(r!=="ref"){const o=t[r];if(ls(i)&&ls(o)||Ie(i)&&Ie(o)||Array.isArray(i)&&Array.isArray(o)?!Mn(i,o):i!==o)return!1}}return!0}var ry=e=>e.type==="select-multiple",fR=e=>mu(e)||Oi(e),Wa=e=>To(e)&&e.isConnected,iy=e=>{for(const t in e)if(tn(e[t]))return!0;return!1};function Ao(e,t={}){const n=Array.isArray(e);if(Ie(e)||n)for(const s in e)Array.isArray(e[s])||Ie(e[s])&&!iy(e[s])?(t[s]=Array.isArray(e[s])?[]:{},Ao(e[s],t[s])):at(e[s])||(t[s]=!0);return t}function oy(e,t,n){const s=Array.isArray(e);if(Ie(e)||s)for(const r in e)Array.isArray(e[r])||Ie(e[r])&&!iy(e[r])?Le(t)||Fl(n[r])?n[r]=Array.isArray(e[r])?Ao(e[r],[]):{...Ao(e[r])}:oy(e[r],at(t)?{}:t[r],n[r]):n[r]=!Mn(e[r],t[r]);return n}var jr=(e,t)=>oy(e,t,Ao(t)),ay=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:s})=>Le(e)?e:t?e===""?NaN:e&&+e:n&&nn(e)?new Date(e):s?s(e):e;function Ha(e){const t=e.ref;return pu(t)?t.files:mu(t)?sy(e.refs).value:ry(t)?[...t.selectedOptions].map(({value:n})=>n):Oi(t)?ny(e.refs).value:ay(Le(t.value)?e.ref.value:t.value,e)}var hR=(e,t,n,s)=>{const r={};for(const i of e){const o=$(t,i);o&&be(r,i,o._f)}return{criteriaMode:n,names:[...e],fields:r,shouldUseNativeValidation:s}},Or=e=>Le(e)?e:Ro(e)?e.source:Ie(e)?Ro(e.value)?e.value.source:e.value:e;const eh="AsyncFunction";var pR=e=>!!e&&!!e.validate&&!!(tn(e.validate)&&e.validate.constructor.name===eh||Ie(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===eh)),mR=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function th(e,t,n){const s=$(e,n);if(s||fu(n))return{error:s,name:n};const r=n.split(".");for(;r.length;){const i=r.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};r.pop()}return{name:n}}var gR=(e,t,n,s,r)=>r.isOnAll?!1:!n&&r.isOnTouch?!(t||e):(n?s.isOnBlur:r.isOnBlur)?!e:(n?s.isOnChange:r.isOnChange)?e:!0,yR=(e,t)=>!sa($(e,t)).length&&ze(e,t);const vR={mode:It.onSubmit,reValidateMode:It.onChange,shouldFocusError:!0};function xR(e={}){let t={...vR,...e},n={submitCount:0,isDirty:!1,isLoading:tn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},s={},r=Ie(t.defaultValues)||Ie(t.values)?dt(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:dt(r),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:Ua(),array:Ua(),state:Ua()},h=Zf(t.mode),y=Zf(t.reValidateMode),g=t.criteriaMode===It.all,p=E=>N=>{clearTimeout(c),c=setTimeout(E,N)},v=async E=>{if(!t.disabled&&(u.isValid||E)){const N=t.resolver?ht((await A()).errors):await O(s,!0);N!==n.isValid&&d.state.next({isValid:N})}},x=(E,N)=>{!t.disabled&&(u.isValidating||u.validatingFields)&&((E||Array.from(a.mount)).forEach(j=>{j&&(N?be(n.validatingFields,j,N):ze(n.validatingFields,j))}),d.state.next({validatingFields:n.validatingFields,isValidating:!ht(n.validatingFields)}))},b=(E,N=[],j,U,B=!0,I=!0)=>{if(U&&j&&!t.disabled){if(o.action=!0,I&&Array.isArray($(s,E))){const ee=j($(s,E),U.argA,U.argB);B&&be(s,E,ee)}if(I&&Array.isArray($(n.errors,E))){const ee=j($(n.errors,E),U.argA,U.argB);B&&be(n.errors,E,ee),yR(n.errors,E)}if(u.touchedFields&&I&&Array.isArray($(n.touchedFields,E))){const ee=j($(n.touchedFields,E),U.argA,U.argB);B&&be(n.touchedFields,E,ee)}u.dirtyFields&&(n.dirtyFields=jr(r,i)),d.state.next({name:E,isDirty:M(E,N),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else be(i,E,N)},w=(E,N)=>{be(n.errors,E,N),d.state.next({errors:n.errors})},_=E=>{n.errors=E,d.state.next({errors:n.errors,isValid:!1})},S=(E,N,j,U)=>{const B=$(s,E);if(B){const I=$(i,E,Le(j)?$(r,E):j);Le(I)||U&&U.defaultChecked||N?be(i,E,N?I:Ha(B._f)):Y(E,I),o.mount&&v()}},T=(E,N,j,U,B)=>{let I=!1,ee=!1;const le={name:E};if(!t.disabled){const Be=!!($(s,E)&&$(s,E)._f&&$(s,E)._f.disabled);if(!j||U){u.isDirty&&(ee=n.isDirty,n.isDirty=le.isDirty=M(),I=ee!==le.isDirty);const Me=Be||Mn($(r,E),N);ee=!!(!Be&&$(n.dirtyFields,E)),Me||Be?ze(n.dirtyFields,E):be(n.dirtyFields,E,!0),le.dirtyFields=n.dirtyFields,I=I||u.dirtyFields&&ee!==!Me}if(j){const Me=$(n.touchedFields,E);Me||(be(n.touchedFields,E,j),le.touchedFields=n.touchedFields,I=I||u.touchedFields&&Me!==j)}I&&B&&d.state.next(le)}return I?le:{}},R=(E,N,j,U)=>{const B=$(n.errors,E),I=u.isValid&&kt(N)&&n.isValid!==N;if(t.delayError&&j?(l=p(()=>w(E,j)),l(t.delayError)):(clearTimeout(c),l=null,j?be(n.errors,E,j):ze(n.errors,E)),(j?!Mn(B,j):B)||!ht(U)||I){const ee={...U,...I&&kt(N)?{isValid:N}:{},errors:n.errors,name:E};n={...n,...ee},d.state.next(ee)}},A=async E=>{x(E,!0);const N=await t.resolver(i,t.context,hR(E||a.mount,s,t.criteriaMode,t.shouldUseNativeValidation));return x(E),N},P=async E=>{const{errors:N}=await A(E);if(E)for(const j of E){const U=$(N,j);U?be(n.errors,j,U):ze(n.errors,j)}else n.errors=N;return N},O=async(E,N,j={valid:!0})=>{for(const U in E){const B=E[U];if(B){const{_f:I,...ee}=B;if(I){const le=a.array.has(I.name),Be=B._f&&pR(B._f);Be&&u.validatingFields&&x([U],!0);const Me=await Jf(B,a.disabled,i,g,t.shouldUseNativeValidation&&!N,le);if(Be&&u.validatingFields&&x([U]),Me[I.name]&&(j.valid=!1,N))break;!N&&($(Me,I.name)?le?cR(n.errors,Me,I.name):be(n.errors,I.name,Me[I.name]):ze(n.errors,I.name))}!ht(ee)&&await O(ee,N,j)}}return j.valid},L=()=>{for(const E of a.unMount){const N=$(s,E);N&&(N._f.refs?N._f.refs.every(j=>!Wa(j)):!Wa(N._f.ref))&&it(E)}a.unMount=new Set},M=(E,N)=>!t.disabled&&(E&&N&&be(i,E,N),!Mn(ve(),r)),z=(E,N,j)=>ey(E,a,{...o.mount?i:Le(N)?r:nn(E)?{[E]:N}:N},j,N),F=E=>sa($(o.mount?i:r,E,t.shouldUnregister?$(r,E,[]):[])),Y=(E,N,j={})=>{const U=$(s,E);let B=N;if(U){const I=U._f;I&&(!I.disabled&&be(i,E,ay(N,I)),B=To(I.ref)&&at(N)?"":N,ry(I.ref)?[...I.ref.options].forEach(ee=>ee.selected=B.includes(ee.value)):I.refs?Oi(I.ref)?I.refs.length>1?I.refs.forEach(ee=>(!ee.defaultChecked||!ee.disabled)&&(ee.checked=Array.isArray(B)?!!B.find(le=>le===ee.value):B===ee.value)):I.refs[0]&&(I.refs[0].checked=!!B):I.refs.forEach(ee=>ee.checked=ee.value===B):pu(I.ref)?I.ref.value="":(I.ref.value=B,I.ref.type||d.values.next({name:E,values:{...i}})))}(j.shouldDirty||j.shouldTouch)&&T(E,B,j.shouldTouch,j.shouldDirty,!0),j.shouldValidate&&he(E)},J=(E,N,j)=>{for(const U in N){const B=N[U],I=`${E}.${U}`,ee=$(s,I);(a.array.has(E)||Ie(B)||ee&&!ee._f)&&!ls(B)?J(I,B,j):Y(I,B,j)}},Z=(E,N,j={})=>{const U=$(s,E),B=a.array.has(E),I=dt(N);be(i,E,I),B?(d.array.next({name:E,values:{...i}}),(u.isDirty||u.dirtyFields)&&j.shouldDirty&&d.state.next({name:E,dirtyFields:jr(r,i),isDirty:M(E,I)})):U&&!U._f&&!at(I)?J(E,I,j):Y(E,I,j),Kf(E,a)&&d.state.next({...n}),d.values.next({name:o.mount?E:void 0,values:{...i}})},K=async E=>{o.mount=!0;const N=E.target;let j=N.name,U=!0;const B=$(s,j),I=()=>N.type?Ha(B._f):Zg(E),ee=le=>{U=Number.isNaN(le)||ls(le)&&isNaN(le.getTime())||Mn(le,$(i,j,le))};if(B){let le,Be;const Me=I(),Zt=E.type===Co.BLUR||E.type===Co.FOCUS_OUT,Tr=!mR(B._f)&&!t.resolver&&!$(n.errors,j)&&!B._f.deps||gR(Zt,$(n.touchedFields,j),n.isSubmitted,y,h),Kt=Kf(j,a,Zt);be(i,j,Me),Zt?(B._f.onBlur&&B._f.onBlur(E),l&&l(0)):B._f.onChange&&B._f.onChange(E);const ns=T(j,Me,Zt,!1),Rr=!ht(ns)||Kt;if(!Zt&&d.values.next({name:j,type:E.type,values:{...i}}),Tr)return u.isValid&&(t.mode==="onBlur"&&Zt?v():Zt||v()),Rr&&d.state.next({name:j,...Kt?{}:ns});if(!Zt&&Kt&&d.state.next({...n}),t.resolver){const{errors:ss}=await A([j]);if(ee(Me),U){const xa=th(n.errors,s,j),$i=th(ss,s,xa.name||j);le=$i.error,j=$i.name,Be=ht(ss)}}else x([j],!0),le=(await Jf(B,a.disabled,i,g,t.shouldUseNativeValidation))[j],x([j]),ee(Me),U&&(le?Be=!1:u.isValid&&(Be=await O(s,!0)));U&&(B._f.deps&&he(B._f.deps),R(j,Be,le,ns))}},ie=(E,N)=>{if($(n.errors,N)&&E.focus)return E.focus(),1},he=async(E,N={})=>{let j,U;const B=qr(E);if(t.resolver){const I=await P(Le(E)?E:B);j=ht(I),U=E?!B.some(ee=>$(I,ee)):j}else E?(U=(await Promise.all(B.map(async I=>{const ee=$(s,I);return await O(ee&&ee._f?{[I]:ee}:ee)}))).every(Boolean),!(!U&&!n.isValid)&&v()):U=j=await O(s);return d.state.next({...!nn(E)||u.isValid&&j!==n.isValid?{}:{name:E},...t.resolver||!E?{isValid:j}:{},errors:n.errors}),N.shouldFocus&&!U&&Zr(s,ie,E?B:a.mount),U},ve=E=>{const N={...o.mount?i:r};return Le(E)?N:nn(E)?$(N,E):E.map(j=>$(N,j))},$e=(E,N)=>({invalid:!!$((N||n).errors,E),isDirty:!!$((N||n).dirtyFields,E),error:$((N||n).errors,E),isValidating:!!$(n.validatingFields,E),isTouched:!!$((N||n).touchedFields,E)}),Xe=E=>{E&&qr(E).forEach(N=>ze(n.errors,N)),d.state.next({errors:E?n.errors:{}})},Ye=(E,N,j)=>{const U=($(s,E,{_f:{}})._f||{}).ref,B=$(n.errors,E)||{},{ref:I,message:ee,type:le,...Be}=B;be(n.errors,E,{...Be,...N,ref:U}),d.state.next({name:E,errors:n.errors,isValid:!1}),j&&j.shouldFocus&&U&&U.focus&&U.focus()},Ot=(E,N)=>tn(E)?d.values.subscribe({next:j=>E(z(void 0,N),j)}):z(E,N,!0),it=(E,N={})=>{for(const j of E?qr(E):a.mount)a.mount.delete(j),a.array.delete(j),N.keepValue||(ze(s,j),ze(i,j)),!N.keepError&&ze(n.errors,j),!N.keepDirty&&ze(n.dirtyFields,j),!N.keepTouched&&ze(n.touchedFields,j),!N.keepIsValidating&&ze(n.validatingFields,j),!t.shouldUnregister&&!N.keepDefaultValue&&ze(r,j);d.values.next({values:{...i}}),d.state.next({...n,...N.keepDirty?{isDirty:M()}:{}}),!N.keepIsValid&&v()},de=({disabled:E,name:N,field:j,fields:U})=>{(kt(E)&&o.mount||E||a.disabled.has(N))&&(E?a.disabled.add(N):a.disabled.delete(N),T(N,Ha(j?j._f:$(U,N)._f),!1,!1,!0))},xe=(E,N={})=>{let j=$(s,E);const U=kt(N.disabled)||kt(t.disabled);return be(s,E,{...j||{},_f:{...j&&j._f?j._f:{ref:{name:E}},name:E,mount:!0,...N}}),a.mount.add(E),j?de({field:j,disabled:kt(N.disabled)?N.disabled:t.disabled,name:E}):S(E,!0,N.value),{...U?{disabled:N.disabled||t.disabled}:{},...t.progressive?{required:!!N.required,min:Or(N.min),max:Or(N.max),minLength:Or(N.minLength),maxLength:Or(N.maxLength),pattern:Or(N.pattern)}:{},name:E,onChange:K,onBlur:K,ref:B=>{if(B){xe(E,N),j=$(s,E);const I=Le(B.value)&&B.querySelectorAll&&B.querySelectorAll("input,select,textarea")[0]||B,ee=fR(I),le=j._f.refs||[];if(ee?le.find(Be=>Be===I):I===j._f.ref)return;be(s,E,{_f:{...j._f,...ee?{refs:[...le.filter(Wa),I,...Array.isArray($(r,E))?[{}]:[]],ref:{type:I.type,name:E}}:{ref:I}}}),S(E,!1,void 0,I)}else j=$(s,E,{}),j._f&&(j._f.mount=!1),(t.shouldUnregister||N.shouldUnregister)&&!(Kg(a.array,E)&&o.action)&&a.unMount.add(E)}}},Oe=()=>t.shouldFocusError&&Zr(s,ie,a.mount),Ve=E=>{kt(E)&&(d.state.next({disabled:E}),Zr(s,(N,j)=>{const U=$(s,j);U&&(N.disabled=U._f.disabled||E,Array.isArray(U._f.refs)&&U._f.refs.forEach(B=>{B.disabled=U._f.disabled||E}))},0,!1))},Se=(E,N)=>async j=>{let U;j&&(j.preventDefault&&j.preventDefault(),j.persist&&j.persist());let B=dt(i);if(a.disabled.size)for(const I of a.disabled)be(B,I,void 0);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:I,values:ee}=await A();n.errors=I,B=ee}else await O(s);if(ze(n.errors,"root"),ht(n.errors)){d.state.next({errors:{}});try{await E(B,j)}catch(I){U=I}}else N&&await N({...n.errors},j),Oe(),setTimeout(Oe);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ht(n.errors)&&!U,submitCount:n.submitCount+1,errors:n.errors}),U)throw U},G=(E,N={})=>{$(s,E)&&(Le(N.defaultValue)?Z(E,dt($(r,E))):(Z(E,N.defaultValue),be(r,E,dt(N.defaultValue))),N.keepTouched||ze(n.touchedFields,E),N.keepDirty||(ze(n.dirtyFields,E),n.isDirty=N.defaultValue?M(E,dt($(r,E))):M()),N.keepError||(ze(n.errors,E),u.isValid&&v()),d.state.next({...n}))},pe=(E,N={})=>{const j=E?dt(E):r,U=dt(j),B=ht(E),I=B?r:U;if(N.keepDefaultValues||(r=j),!N.keepValues){if(N.keepDirtyValues){const ee=new Set([...a.mount,...Object.keys(jr(r,i))]);for(const le of Array.from(ee))$(n.dirtyFields,le)?be(I,le,$(i,le)):Z(le,$(I,le))}else{if(du&&Le(E))for(const ee of a.mount){const le=$(s,ee);if(le&&le._f){const Be=Array.isArray(le._f.refs)?le._f.refs[0]:le._f.ref;if(To(Be)){const Me=Be.closest("form");if(Me){Me.reset();break}}}}s={}}i=t.shouldUnregister?N.keepDefaultValues?dt(r):{}:dt(I),d.array.next({values:{...I}}),d.values.next({values:{...I}})}a={mount:N.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!N.keepIsValid||!!N.keepDirtyValues,o.watch=!!t.shouldUnregister,d.state.next({submitCount:N.keepSubmitCount?n.submitCount:0,isDirty:B?!1:N.keepDirty?n.isDirty:!!(N.keepDefaultValues&&!Mn(E,r)),isSubmitted:N.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:B?{}:N.keepDirtyValues?N.keepDefaultValues&&i?jr(r,i):n.dirtyFields:N.keepDefaultValues&&E?jr(r,E):N.keepDirty?n.dirtyFields:{},touchedFields:N.keepTouched?n.touchedFields:{},errors:N.keepErrors?n.errors:{},isSubmitSuccessful:N.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Ce=(E,N)=>pe(tn(E)?E(i):E,N);return{control:{register:xe,unregister:it,getFieldState:$e,handleSubmit:Se,setError:Ye,_executeSchema:A,_getWatch:z,_getDirty:M,_updateValid:v,_removeUnmounted:L,_updateFieldArray:b,_updateDisabledField:de,_getFieldArray:F,_reset:pe,_resetDefaultValues:()=>tn(t.defaultValues)&&t.defaultValues().then(E=>{Ce(E,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:E=>{n={...n,...E}},_disableForm:Ve,_subjects:d,_proxyFormState:u,_setErrors:_,get _fields(){return s},get _formValues(){return i},get _state(){return o},set _state(E){o=E},get _defaultValues(){return r},get _names(){return a},set _names(E){a=E},get _formState(){return n},set _formState(E){n=E},get _options(){return t},set _options(E){t={...t,...E}}},trigger:he,register:xe,handleSubmit:Se,watch:Ot,setValue:Z,getValues:ve,reset:Ce,resetField:G,clearErrors:Xe,unregister:it,setError:Ye,setFocus:(E,N={})=>{const j=$(s,E),U=j&&j._f;if(U){const B=U.refs?U.refs[0]:U.ref;B.focus&&(B.focus(),N.shouldSelect&&tn(B.select)&&B.select())}},getFieldState:$e}}function bR(e={}){const t=fe.useRef(void 0),n=fe.useRef(void 0),[s,r]=fe.useState({isDirty:!1,isValidating:!1,isLoading:tn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:tn(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...xR(e),formState:s});const i=t.current.control;return i._options=e,hu({subject:i._subjects.state,next:o=>{Qg(o,i._proxyFormState,i._updateFormState,!0)&&r({...i._formState})}}),fe.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),fe.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==s.isDirty&&i._subjects.state.next({isDirty:o})}},[i,s.isDirty]),fe.useEffect(()=>{e.values&&!Mn(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,r(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),fe.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),fe.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()}),fe.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=Yg(s,i),t.current}var wR="Label",ly=m.forwardRef((e,t)=>f.jsx(ut.label,{...e,ref:t,onMouseDown:n=>{var r;n.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));ly.displayName=wR;var cy=ly;const SR=Yo("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),uy=m.forwardRef(({className:e,...t},n)=>f.jsx(cy,{ref:n,className:V(SR(),e),...t}));uy.displayName=cy.displayName;const FO=rR,dy=m.createContext({}),_R=({...e})=>f.jsx(dy.Provider,{value:{name:e.name},children:f.jsx(lR,{...e})}),ia=()=>{const e=m.useContext(dy),t=m.useContext(fy),{getFieldState:n,formState:s}=ra(),r=n(e.name,s);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`,...r}},fy=m.createContext({}),hy=m.forwardRef(({className:e,...t},n)=>{const s=m.useId();return f.jsx(fy.Provider,{value:{id:s},children:f.jsx("div",{ref:n,className:V("space-y-2",e),...t})})});hy.displayName="FormItem";const py=m.forwardRef(({className:e,...t},n)=>{const{error:s,formItemId:r}=ia();return f.jsx(uy,{ref:n,className:V(s&&"text-destructive",e),htmlFor:r,...t})});py.displayName="FormLabel";const my=m.forwardRef(({...e},t)=>{const{error:n,formItemId:s,formDescriptionId:r,formMessageId:i}=ia();return f.jsx(yr,{ref:t,id:s,"aria-describedby":n?`${r} ${i}`:`${r}`,"aria-invalid":!!n,...e})});my.displayName="FormControl";const ER=m.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:s}=ia();return f.jsx("p",{ref:n,id:s,className:V("text-[0.8rem] text-muted-foreground",e),...t})});ER.displayName="FormDescription";const gy=m.forwardRef(({className:e,children:t,...n},s)=>{const{error:r,formMessageId:i}=ia(),o=r?String(r==null?void 0:r.message):t;return o?f.jsx("p",{ref:s,id:i,className:V("text-[0.8rem] font-medium text-destructive",e),...n,children:o}):null});gy.displayName="FormMessage";const Vl=m.forwardRef(({className:e,type:t,...n},s)=>t!=="file"?f.jsx("input",{type:t,className:V("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:s,...n}):f.jsxs("div",{className:"relative w-[160px] h-9 overflow-hidden !cursor-pointer",children:[f.jsx("input",{ref:s,accept:".pdf, .png, .jpeg, .jpg",type:t,className:V("h-9 absolute top-0 left-0 !cursor-pointer opacity-0 z-20 size-full"),...n}),f.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:[f.jsx(b0,{className:"cursor-pointer",size:16})," Upload file"]})]}));Vl.displayName="Input";const yy=m.forwardRef(({className:e,...t},n)=>f.jsx("textarea",{className:V("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}));yy.displayName="Textarea";const nh=e=>{let t;const n=new Set,s=(c,u)=>{const d=typeof c=="function"?c(t):c;if(!Object.is(d,t)){const h=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(y=>y(t,h))}},r=()=>t,a={setState:s,getState:r,getInitialState:()=>l,subscribe:c=>(n.add(c),()=>n.delete(c))},l=t=e(s,r,a);return a},CR=e=>e?nh(e):nh,TR=e=>e;function RR(e,t=TR){const n=fe.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return fe.useDebugValue(n),n}const AR=e=>{const t=CR(e),n=s=>RR(t,s);return Object.assign(n,t),n},vy=e=>AR;function NR(e,t){let n;try{n=e()}catch{return}return{getItem:r=>{var i;const o=l=>l===null?null:JSON.parse(l,void 0),a=(i=n.getItem(r))!=null?i:null;return a instanceof Promise?a.then(o):o(a)},setItem:(r,i)=>n.setItem(r,JSON.stringify(i,void 0)),removeItem:r=>n.removeItem(r)}}const Bl=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(s){return Bl(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return Bl(s)(n)}}}},PR=(e,t)=>(n,s,r)=>{let i={storage:NR(()=>localStorage),partialize:p=>p,version:0,merge:(p,v)=>({...v,...p}),...t},o=!1;const a=new Set,l=new Set;let c=i.storage;if(!c)return e((...p)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...p)},s,r);const u=()=>{const p=i.partialize({...s()});return c.setItem(i.name,{state:p,version:i.version})},d=r.setState;r.setState=(p,v)=>{d(p,v),u()};const h=e((...p)=>{n(...p),u()},s,r);r.getInitialState=()=>h;let y;const g=()=>{var p,v;if(!c)return;o=!1,a.forEach(b=>{var w;return b((w=s())!=null?w:h)});const x=((v=i.onRehydrateStorage)==null?void 0:v.call(i,(p=s())!=null?p:h))||void 0;return Bl(c.getItem.bind(c))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate){const w=i.migrate(b.state,b.version);return w instanceof Promise?w.then(_=>[!0,_]):[!0,w]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,b.state];return[!1,void 0]}).then(b=>{var w;const[_,S]=b;if(y=i.merge(S,(w=s())!=null?w:h),n(y,!0),_)return u()}).then(()=>{x==null||x(y,void 0),y=s(),o=!0,l.forEach(b=>b(y))}).catch(b=>{x==null||x(void 0,b)})};return r.persist={setOptions:p=>{i={...i,...p},p.storage&&(c=p.storage)},clearStorage:()=>{c==null||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:p=>(a.add(p),()=>{a.delete(p)}),onFinishHydration:p=>(l.add(p),()=>{l.delete(p)})},i.skipHydration||g(),y||h},kR=PR;var Ke=(e=>(e.EN="en",e.RU="ru",e.TM="tm",e))(Ke||{});const Ee=vy()(kR(e=>({lang:"en",setLang:t=>e({lang:t})}),{name:"lang-storage"})),VO=({control:e,name:t,label:n,placeholder:s,error:r,type:i="text",className:o,disabled:a,textArea:l=!1,textDark:c,supporText:u,handleChange:d,onPrimary:h=!1})=>{const y=Ee(g=>g.lang);return f.jsx(_R,{control:e,name:t,render:({field:g})=>f.jsxs(hy,{className:V(o,"flex flex-col w-full relative"),children:[f.jsx(py,{className:V("text-xl",h&&"!text-on_primary",c?"text-on_surface":"text-on_surface_v"),children:n}),f.jsx(my,{children:f.jsx(f.Fragment,{children:l?f.jsx(yy,{rows:3,...g,placeholder:s,className:V(r&&"border-[#BA1A1A]",h&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):i!=="file"?f.jsx(Vl,{...g,type:i,placeholder:s,disabled:a,className:V(r&&"border-[#BA1A1A]",h&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):f.jsxs("div",{className:"relative",children:[f.jsx(Vl,{type:"file",placeholder:s,onChange:p=>{var x;const v=((x=p.target.files)==null?void 0:x[0])||null;console.log("Выбранный файл:",v),g.onChange(v),d&&d(p)},disabled:a}),g.value&&f.jsxs("div",{className:"text-sm mt-2 text-gray-500 absolute top-8",children:[{ru:"Выбранный файл:",en:"Selected file:",tm:"Saýlanan faýl:"}[y]," ",g.value.name]})]})})}),f.jsx(gy,{className:V("absolute -bottom-5 left-0 text-sm font-medium leading-[130%]",r&&h?"text-teritary_04":"text-[#BA1A1A]"),children:r?r.message:u})]})})},BO=({className:e,delay:t=.15})=>{const n=Ee(s=>s.lang);return f.jsxs(Hr.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0,transition:{delay:t}},className:V("flex flex-col gap-8 my-16",e),children:[f.jsx("h3",{className:"text-3xl text-center",children:{ru:"Форма успешно отправлена!",en:"Form submitted successfully!",tm:"Forma üstünlikli ugradyldy!"}[n]}),f.jsx(_e,{className:"w-fit mx-auto",to:"/",children:f.jsx(nt,{variant:"outline",children:{ru:"Вернуться на главную",en:"Back to home",tm:"Baş sahypa gaýdyp barmak"}[n]})})]})},jR=({className:e,slides:t,active:n,scrollTo:s})=>f.jsx("div",{className:V("flex items-center justify-center gap-2",e),children:Array.from({length:t}).map((r,i)=>f.jsx("span",{onClick:()=>s==null?void 0:s(i),className:V(n===i?"dot-active":"dot")},i))}),OR=["top","right","bottom","left"],qn=Math.min,yt=Math.max,No=Math.round,eo=Math.floor,on=e=>({x:e,y:e}),MR={left:"right",right:"left",bottom:"top",top:"bottom"},DR={start:"end",end:"start"};function $l(e,t,n){return yt(e,qn(t,n))}function _n(e,t){return typeof e=="function"?e(t):e}function En(e){return e.split("-")[0]}function Sr(e){return e.split("-")[1]}function gu(e){return e==="x"?"y":"x"}function yu(e){return e==="y"?"height":"width"}function Zn(e){return["top","bottom"].includes(En(e))?"y":"x"}function vu(e){return gu(Zn(e))}function LR(e,t,n){n===void 0&&(n=!1);const s=Sr(e),r=vu(e),i=yu(r);let o=r==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Po(o)),[o,Po(o)]}function IR(e){const t=Po(e);return[zl(e),t,zl(t)]}function zl(e){return e.replace(/start|end/g,t=>DR[t])}function FR(e,t,n){const s=["left","right"],r=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:s:t?s:r;case"left":case"right":return t?i:o;default:return[]}}function VR(e,t,n,s){const r=Sr(e);let i=FR(En(e),n==="start",s);return r&&(i=i.map(o=>o+"-"+r),t&&(i=i.concat(i.map(zl)))),i}function Po(e){return e.replace(/left|right|bottom|top/g,t=>MR[t])}function BR(e){return{top:0,right:0,bottom:0,left:0,...e}}function xy(e){return typeof e!="number"?BR(e):{top:e,right:e,bottom:e,left:e}}function ko(e){const{x:t,y:n,width:s,height:r}=e;return{width:s,height:r,top:n,left:t,right:t+s,bottom:n+r,x:t,y:n}}function sh(e,t,n){let{reference:s,floating:r}=e;const i=Zn(t),o=vu(t),a=yu(o),l=En(t),c=i==="y",u=s.x+s.width/2-r.width/2,d=s.y+s.height/2-r.height/2,h=s[a]/2-r[a]/2;let y;switch(l){case"top":y={x:u,y:s.y-r.height};break;case"bottom":y={x:u,y:s.y+s.height};break;case"right":y={x:s.x+s.width,y:d};break;case"left":y={x:s.x-r.width,y:d};break;default:y={x:s.x,y:s.y}}switch(Sr(t)){case"start":y[o]-=h*(n&&c?-1:1);break;case"end":y[o]+=h*(n&&c?-1:1);break}return y}const $R=async(e,t,n)=>{const{placement:s="bottom",strategy:r="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=sh(c,s,l),h=s,y={},g=0;for(let p=0;p<a.length;p++){const{name:v,fn:x}=a[p],{x:b,y:w,data:_,reset:S}=await x({x:u,y:d,initialPlacement:s,placement:h,strategy:r,middlewareData:y,rects:c,platform:o,elements:{reference:e,floating:t}});u=b??u,d=w??d,y={...y,[v]:{...y[v],..._}},S&&g<=50&&(g++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:u,y:d}=sh(c,h,l)),p=-1)}return{x:u,y:d,placement:h,strategy:r,middlewareData:y}};async function ri(e,t){var n;t===void 0&&(t={});const{x:s,y:r,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:y=0}=_n(t,e),g=xy(y),v=a[h?d==="floating"?"reference":"floating":d],x=ko(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),b=d==="floating"?{x:s,y:r,width:o.floating.width,height:o.floating.height}:o.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),_=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},S=ko(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:w,strategy:l}):b);return{top:(x.top-S.top+g.top)/_.y,bottom:(S.bottom-x.bottom+g.bottom)/_.y,left:(x.left-S.left+g.left)/_.x,right:(S.right-x.right+g.right)/_.x}}const zR=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:r,rects:i,platform:o,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=_n(e,t)||{};if(c==null)return{};const d=xy(u),h={x:n,y:s},y=vu(r),g=yu(y),p=await o.getDimensions(c),v=y==="y",x=v?"top":"left",b=v?"bottom":"right",w=v?"clientHeight":"clientWidth",_=i.reference[g]+i.reference[y]-h[y]-i.floating[g],S=h[y]-i.reference[y],T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let R=T?T[w]:0;(!R||!await(o.isElement==null?void 0:o.isElement(T)))&&(R=a.floating[w]||i.floating[g]);const A=_/2-S/2,P=R/2-p[g]/2-1,O=qn(d[x],P),L=qn(d[b],P),M=O,z=R-p[g]-L,F=R/2-p[g]/2+A,Y=$l(M,F,z),J=!l.arrow&&Sr(r)!=null&&F!==Y&&i.reference[g]/2-(F<M?O:L)-p[g]/2<0,Z=J?F<M?F-M:F-z:0;return{[y]:h[y]+Z,data:{[y]:Y,centerOffset:F-Y-Z,...J&&{alignmentOffset:Z}},reset:J}}}),UR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:r,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...v}=_n(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=En(r),b=Zn(a),w=En(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=h||(w||!p?[Po(a)]:IR(a)),T=g!=="none";!h&&T&&S.push(...VR(a,p,g,_));const R=[a,...S],A=await ri(t,v),P=[];let O=((s=i.flip)==null?void 0:s.overflows)||[];if(u&&P.push(A[x]),d){const F=LR(r,o,_);P.push(A[F[0]],A[F[1]])}if(O=[...O,{placement:r,overflows:P}],!P.every(F=>F<=0)){var L,M;const F=(((L=i.flip)==null?void 0:L.index)||0)+1,Y=R[F];if(Y)return{data:{index:F,overflows:O},reset:{placement:Y}};let J=(M=O.filter(Z=>Z.overflows[0]<=0).sort((Z,K)=>Z.overflows[1]-K.overflows[1])[0])==null?void 0:M.placement;if(!J)switch(y){case"bestFit":{var z;const Z=(z=O.filter(K=>{if(T){const ie=Zn(K.placement);return ie===b||ie==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(ie=>ie>0).reduce((ie,he)=>ie+he,0)]).sort((K,ie)=>K[1]-ie[1])[0])==null?void 0:z[0];Z&&(J=Z);break}case"initialPlacement":J=a;break}if(r!==J)return{reset:{placement:J}}}return{}}}};function rh(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ih(e){return OR.some(t=>e[t]>=0)}const WR=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:s="referenceHidden",...r}=_n(e,t);switch(s){case"referenceHidden":{const i=await ri(t,{...r,elementContext:"reference"}),o=rh(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:ih(o)}}}case"escaped":{const i=await ri(t,{...r,altBoundary:!0}),o=rh(i,n.floating);return{data:{escapedOffsets:o,escaped:ih(o)}}}default:return{}}}}};async function HR(e,t){const{placement:n,platform:s,elements:r}=e,i=await(s.isRTL==null?void 0:s.isRTL(r.floating)),o=En(n),a=Sr(n),l=Zn(n)==="y",c=["left","top"].includes(o)?-1:1,u=i&&l?-1:1,d=_n(t,e);let{mainAxis:h,crossAxis:y,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(y=a==="end"?g*-1:g),l?{x:y*u,y:h*c}:{x:h*c,y:y*u}}const qR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:r,y:i,placement:o,middlewareData:a}=t,l=await HR(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(s=a.arrow)!=null&&s.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:o}}}}},ZR=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:r}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:v=>{let{x,y:b}=v;return{x,y:b}}},...l}=_n(e,t),c={x:n,y:s},u=await ri(t,l),d=Zn(En(r)),h=gu(d);let y=c[h],g=c[d];if(i){const v=h==="y"?"top":"left",x=h==="y"?"bottom":"right",b=y+u[v],w=y-u[x];y=$l(b,y,w)}if(o){const v=d==="y"?"top":"left",x=d==="y"?"bottom":"right",b=g+u[v],w=g-u[x];g=$l(b,g,w)}const p=a.fn({...t,[h]:y,[d]:g});return{...p,data:{x:p.x-n,y:p.y-s,enabled:{[h]:i,[d]:o}}}}}},KR=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:s,placement:r,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=_n(e,t),u={x:n,y:s},d=Zn(r),h=gu(d);let y=u[h],g=u[d];const p=_n(a,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const w=h==="y"?"height":"width",_=i.reference[h]-i.floating[w]+v.mainAxis,S=i.reference[h]+i.reference[w]-v.mainAxis;y<_?y=_:y>S&&(y=S)}if(c){var x,b;const w=h==="y"?"width":"height",_=["top","left"].includes(En(r)),S=i.reference[d]-i.floating[w]+(_&&((x=o.offset)==null?void 0:x[d])||0)+(_?0:v.crossAxis),T=i.reference[d]+i.reference[w]+(_?0:((b=o.offset)==null?void 0:b[d])||0)-(_?v.crossAxis:0);g<S?g=S:g>T&&(g=T)}return{[h]:y,[d]:g}}}},GR=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:r,rects:i,platform:o,elements:a}=t,{apply:l=()=>{},...c}=_n(e,t),u=await ri(t,c),d=En(r),h=Sr(r),y=Zn(r)==="y",{width:g,height:p}=i.floating;let v,x;d==="top"||d==="bottom"?(v=d,x=h===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(x=d,v=h==="end"?"top":"bottom");const b=p-u.top-u.bottom,w=g-u.left-u.right,_=qn(p-u[v],b),S=qn(g-u[x],w),T=!t.middlewareData.shift;let R=_,A=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=w),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(R=b),T&&!h){const O=yt(u.left,0),L=yt(u.right,0),M=yt(u.top,0),z=yt(u.bottom,0);y?A=g-2*(O!==0||L!==0?O+L:yt(u.left,u.right)):R=p-2*(M!==0||z!==0?M+z:yt(u.top,u.bottom))}await l({...t,availableWidth:A,availableHeight:R});const P=await o.getDimensions(a.floating);return g!==P.width||p!==P.height?{reset:{rects:!0}}:{}}}};function oa(){return typeof window<"u"}function _r(e){return by(e)?(e.nodeName||"").toLowerCase():"#document"}function wt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fn(e){var t;return(t=(by(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function by(e){return oa()?e instanceof Node||e instanceof wt(e).Node:!1}function $t(e){return oa()?e instanceof Element||e instanceof wt(e).Element:!1}function ln(e){return oa()?e instanceof HTMLElement||e instanceof wt(e).HTMLElement:!1}function oh(e){return!oa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof wt(e).ShadowRoot}function Mi(e){const{overflow:t,overflowX:n,overflowY:s,display:r}=zt(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!["inline","contents"].includes(r)}function XR(e){return["table","td","th"].includes(_r(e))}function aa(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function xu(e){const t=bu(),n=$t(e)?zt(e):e;return["transform","translate","scale","rotate","perspective"].some(s=>n[s]?n[s]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(s=>(n.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(n.contain||"").includes(s))}function YR(e){let t=Kn(e);for(;ln(t)&&!dr(t);){if(xu(t))return t;if(aa(t))return null;t=Kn(t)}return null}function bu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function dr(e){return["html","body","#document"].includes(_r(e))}function zt(e){return wt(e).getComputedStyle(e)}function la(e){return $t(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kn(e){if(_r(e)==="html")return e;const t=e.assignedSlot||e.parentNode||oh(e)&&e.host||fn(e);return oh(t)?t.host:t}function wy(e){const t=Kn(e);return dr(t)?e.ownerDocument?e.ownerDocument.body:e.body:ln(t)&&Mi(t)?t:wy(t)}function ii(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=wy(e),i=r===((s=e.ownerDocument)==null?void 0:s.body),o=wt(r);if(i){const a=Ul(o);return t.concat(o,o.visualViewport||[],Mi(r)?r:[],a&&n?ii(a):[])}return t.concat(r,ii(r,[],n))}function Ul(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Sy(e){const t=zt(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const r=ln(e),i=r?e.offsetWidth:n,o=r?e.offsetHeight:s,a=No(n)!==i||No(s)!==o;return a&&(n=i,s=o),{width:n,height:s,$:a}}function wu(e){return $t(e)?e:e.contextElement}function Ks(e){const t=wu(e);if(!ln(t))return on(1);const n=t.getBoundingClientRect(),{width:s,height:r,$:i}=Sy(t);let o=(i?No(n.width):n.width)/s,a=(i?No(n.height):n.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const QR=on(0);function _y(e){const t=wt(e);return!bu()||!t.visualViewport?QR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function JR(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==wt(e)?!1:t}function Cs(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=wu(e);let o=on(1);t&&(s?$t(s)&&(o=Ks(s)):o=Ks(e));const a=JR(i,n,s)?_y(i):on(0);let l=(r.left+a.x)/o.x,c=(r.top+a.y)/o.y,u=r.width/o.x,d=r.height/o.y;if(i){const h=wt(i),y=s&&$t(s)?wt(s):s;let g=h,p=Ul(g);for(;p&&s&&y!==g;){const v=Ks(p),x=p.getBoundingClientRect(),b=zt(p),w=x.left+(p.clientLeft+parseFloat(b.paddingLeft))*v.x,_=x.top+(p.clientTop+parseFloat(b.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=w,c+=_,g=wt(p),p=Ul(g)}}return ko({width:u,height:d,x:l,y:c})}function Su(e,t){const n=la(e).scrollLeft;return t?t.left+n:Cs(fn(e)).left+n}function Ey(e,t,n){n===void 0&&(n=!1);const s=e.getBoundingClientRect(),r=s.left+t.scrollLeft-(n?0:Su(e,s)),i=s.top+t.scrollTop;return{x:r,y:i}}function eA(e){let{elements:t,rect:n,offsetParent:s,strategy:r}=e;const i=r==="fixed",o=fn(s),a=t?aa(t.floating):!1;if(s===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=on(1);const u=on(0),d=ln(s);if((d||!d&&!i)&&((_r(s)!=="body"||Mi(o))&&(l=la(s)),ln(s))){const y=Cs(s);c=Ks(s),u.x=y.x+s.clientLeft,u.y=y.y+s.clientTop}const h=o&&!d&&!i?Ey(o,l,!0):on(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function tA(e){return Array.from(e.getClientRects())}function nA(e){const t=fn(e),n=la(e),s=e.ownerDocument.body,r=yt(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),i=yt(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let o=-n.scrollLeft+Su(e);const a=-n.scrollTop;return zt(s).direction==="rtl"&&(o+=yt(t.clientWidth,s.clientWidth)-r),{width:r,height:i,x:o,y:a}}function sA(e,t){const n=wt(e),s=fn(e),r=n.visualViewport;let i=s.clientWidth,o=s.clientHeight,a=0,l=0;if(r){i=r.width,o=r.height;const c=bu();(!c||c&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:o,x:a,y:l}}function rA(e,t){const n=Cs(e,!0,t==="fixed"),s=n.top+e.clientTop,r=n.left+e.clientLeft,i=ln(e)?Ks(e):on(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=r*i.x,c=s*i.y;return{width:o,height:a,x:l,y:c}}function ah(e,t,n){let s;if(t==="viewport")s=sA(e,n);else if(t==="document")s=nA(fn(e));else if($t(t))s=rA(t,n);else{const r=_y(e);s={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ko(s)}function Cy(e,t){const n=Kn(e);return n===t||!$t(n)||dr(n)?!1:zt(n).position==="fixed"||Cy(n,t)}function iA(e,t){const n=t.get(e);if(n)return n;let s=ii(e,[],!1).filter(a=>$t(a)&&_r(a)!=="body"),r=null;const i=zt(e).position==="fixed";let o=i?Kn(e):e;for(;$t(o)&&!dr(o);){const a=zt(o),l=xu(o);!l&&a.position==="fixed"&&(r=null),(i?!l&&!r:!l&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Mi(o)&&!l&&Cy(e,o))?s=s.filter(u=>u!==o):r=a,o=Kn(o)}return t.set(e,s),s}function oA(e){let{element:t,boundary:n,rootBoundary:s,strategy:r}=e;const o=[...n==="clippingAncestors"?aa(t)?[]:iA(t,this._c):[].concat(n),s],a=o[0],l=o.reduce((c,u)=>{const d=ah(t,u,r);return c.top=yt(d.top,c.top),c.right=qn(d.right,c.right),c.bottom=qn(d.bottom,c.bottom),c.left=yt(d.left,c.left),c},ah(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function aA(e){const{width:t,height:n}=Sy(e);return{width:t,height:n}}function lA(e,t,n){const s=ln(t),r=fn(t),i=n==="fixed",o=Cs(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=on(0);if(s||!s&&!i)if((_r(t)!=="body"||Mi(r))&&(a=la(t)),s){const h=Cs(t,!0,i,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else r&&(l.x=Su(r));const c=r&&!s&&!i?Ey(r,a):on(0),u=o.left+a.scrollLeft-l.x-c.x,d=o.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:o.width,height:o.height}}function qa(e){return zt(e).position==="static"}function lh(e,t){if(!ln(e)||zt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return fn(e)===n&&(n=n.ownerDocument.body),n}function Ty(e,t){const n=wt(e);if(aa(e))return n;if(!ln(e)){let r=Kn(e);for(;r&&!dr(r);){if($t(r)&&!qa(r))return r;r=Kn(r)}return n}let s=lh(e,t);for(;s&&XR(s)&&qa(s);)s=lh(s,t);return s&&dr(s)&&qa(s)&&!xu(s)?n:s||YR(e)||n}const cA=async function(e){const t=this.getOffsetParent||Ty,n=this.getDimensions,s=await n(e.floating);return{reference:lA(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function uA(e){return zt(e).direction==="rtl"}const dA={convertOffsetParentRelativeRectToViewportRelativeRect:eA,getDocumentElement:fn,getClippingRect:oA,getOffsetParent:Ty,getElementRects:cA,getClientRects:tA,getDimensions:aA,getScale:Ks,isElement:$t,isRTL:uA};function Ry(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fA(e,t){let n=null,s;const r=fn(e);function i(){var a;clearTimeout(s),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:y}=c;if(a||t(),!h||!y)return;const g=eo(d),p=eo(r.clientWidth-(u+h)),v=eo(r.clientHeight-(d+y)),x=eo(u),w={rootMargin:-g+"px "+-p+"px "+-v+"px "+-x+"px",threshold:yt(0,qn(1,l))||1};let _=!0;function S(T){const R=T[0].intersectionRatio;if(R!==l){if(!_)return o();R?o(!1,R):s=setTimeout(()=>{o(!1,1e-7)},1e3)}R===1&&!Ry(c,e.getBoundingClientRect())&&o(),_=!1}try{n=new IntersectionObserver(S,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return o(!0),i}function hA(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=s,c=wu(e),u=r||i?[...c?ii(c):[],...ii(t)]:[];u.forEach(x=>{r&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const d=c&&a?fA(c,n):null;let h=-1,y=null;o&&(y=new ResizeObserver(x=>{let[b]=x;b&&b.target===c&&y&&(y.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=y)==null||w.observe(t)})),n()}),c&&!l&&y.observe(c),y.observe(t));let g,p=l?Cs(e):null;l&&v();function v(){const x=Cs(e);p&&!Ry(p,x)&&n(),p=x,g=requestAnimationFrame(v)}return n(),()=>{var x;u.forEach(b=>{r&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),d==null||d(),(x=y)==null||x.disconnect(),y=null,l&&cancelAnimationFrame(g)}}const pA=qR,mA=ZR,gA=UR,yA=GR,vA=WR,ch=zR,xA=KR,bA=(e,t,n)=>{const s=new Map,r={platform:dA,...n},i={...r.platform,_c:s};return $R(e,t,{...r,platform:i})};var uo=typeof document<"u"?m.useLayoutEffect:m.useEffect;function jo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,s,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(s=n;s--!==0;)if(!jo(e[s],t[s]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(s=n;s--!==0;)if(!{}.hasOwnProperty.call(t,r[s]))return!1;for(s=n;s--!==0;){const i=r[s];if(!(i==="_owner"&&e.$$typeof)&&!jo(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ay(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function uh(e,t){const n=Ay(e);return Math.round(t*n)/n}function Za(e){const t=m.useRef(e);return uo(()=>{t.current=e}),t}function wA(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:r,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,y]=m.useState(s);jo(h,s)||y(s);const[g,p]=m.useState(null),[v,x]=m.useState(null),b=m.useCallback(K=>{K!==T.current&&(T.current=K,p(K))},[]),w=m.useCallback(K=>{K!==R.current&&(R.current=K,x(K))},[]),_=i||g,S=o||v,T=m.useRef(null),R=m.useRef(null),A=m.useRef(u),P=l!=null,O=Za(l),L=Za(r),M=Za(c),z=m.useCallback(()=>{if(!T.current||!R.current)return;const K={placement:t,strategy:n,middleware:h};L.current&&(K.platform=L.current),bA(T.current,R.current,K).then(ie=>{const he={...ie,isPositioned:M.current!==!1};F.current&&!jo(A.current,he)&&(A.current=he,hc.flushSync(()=>{d(he)}))})},[h,t,n,L,M]);uo(()=>{c===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,d(K=>({...K,isPositioned:!1})))},[c]);const F=m.useRef(!1);uo(()=>(F.current=!0,()=>{F.current=!1}),[]),uo(()=>{if(_&&(T.current=_),S&&(R.current=S),_&&S){if(O.current)return O.current(_,S,z);z()}},[_,S,z,O,P]);const Y=m.useMemo(()=>({reference:T,floating:R,setReference:b,setFloating:w}),[b,w]),J=m.useMemo(()=>({reference:_,floating:S}),[_,S]),Z=m.useMemo(()=>{const K={position:n,left:0,top:0};if(!J.floating)return K;const ie=uh(J.floating,u.x),he=uh(J.floating,u.y);return a?{...K,transform:"translate("+ie+"px, "+he+"px)",...Ay(J.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ie,top:he}},[n,a,J.floating,u.x,u.y]);return m.useMemo(()=>({...u,update:z,refs:Y,elements:J,floatingStyles:Z}),[u,z,Y,J,Z])}const SA=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:s,padding:r}=typeof e=="function"?e(n):e;return s&&t(s)?s.current!=null?ch({element:s.current,padding:r}).fn(n):{}:s?ch({element:s,padding:r}).fn(n):{}}}},_A=(e,t)=>({...pA(e),options:[e,t]}),EA=(e,t)=>({...mA(e),options:[e,t]}),CA=(e,t)=>({...xA(e),options:[e,t]}),TA=(e,t)=>({...gA(e),options:[e,t]}),RA=(e,t)=>({...yA(e),options:[e,t]}),AA=(e,t)=>({...vA(e),options:[e,t]}),NA=(e,t)=>({...SA(e),options:[e,t]});var PA="Arrow",Ny=m.forwardRef((e,t)=>{const{children:n,width:s=10,height:r=5,...i}=e;return f.jsx(ut.svg,{...i,ref:t,width:s,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ny.displayName=PA;var kA=Ny;function jA(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}var dh=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},OA=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{};function MA(e){const[t,n]=m.useState(void 0);return OA(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let o,a;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}var _u="Popper",[Py,ky]=vc(_u),[DA,jy]=Py(_u),Oy=e=>{const{__scopePopper:t,children:n}=e,[s,r]=m.useState(null);return f.jsx(DA,{scope:t,anchor:s,onAnchorChange:r,children:n})};Oy.displayName=_u;var My="PopperAnchor",Dy=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:s,...r}=e,i=jy(My,n),o=m.useRef(null),a=Wt(t,o);return m.useEffect(()=>{i.onAnchorChange((s==null?void 0:s.current)||o.current)}),s?null:f.jsx(ut.div,{...r,ref:a})});Dy.displayName=My;var Eu="PopperContent",[LA,IA]=Py(Eu),Ly=m.forwardRef((e,t)=>{var de,xe,Oe,Ve,Se,G;const{__scopePopper:n,side:s="bottom",sideOffset:r=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:y="optimized",onPlaced:g,...p}=e,v=jy(Eu,n),[x,b]=m.useState(null),w=Wt(t,pe=>b(pe)),[_,S]=m.useState(null),T=MA(_),R=(T==null?void 0:T.width)??0,A=(T==null?void 0:T.height)??0,P=s+(i!=="center"?"-"+i:""),O=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},L=Array.isArray(c)?c:[c],M=L.length>0,z={padding:O,boundary:L.filter(VA),altBoundary:M},{refs:F,floatingStyles:Y,placement:J,isPositioned:Z,middlewareData:K}=wA({strategy:"fixed",placement:P,whileElementsMounted:(...pe)=>hA(...pe,{animationFrame:y==="always"}),elements:{reference:v.anchor},middleware:[_A({mainAxis:r+A,alignmentAxis:o}),l&&EA({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?CA():void 0,...z}),l&&TA({...z}),RA({...z,apply:({elements:pe,rects:Ce,availableWidth:Ue,availableHeight:gt})=>{const{width:Tt,height:E}=Ce.reference,N=pe.floating.style;N.setProperty("--radix-popper-available-width",`${Ue}px`),N.setProperty("--radix-popper-available-height",`${gt}px`),N.setProperty("--radix-popper-anchor-width",`${Tt}px`),N.setProperty("--radix-popper-anchor-height",`${E}px`)}}),_&&NA({element:_,padding:a}),BA({arrowWidth:R,arrowHeight:A}),h&&AA({strategy:"referenceHidden",...z})]}),[ie,he]=Vy(J),ve=jA(g);dh(()=>{Z&&(ve==null||ve())},[Z,ve]);const $e=(de=K.arrow)==null?void 0:de.x,Xe=(xe=K.arrow)==null?void 0:xe.y,Ye=((Oe=K.arrow)==null?void 0:Oe.centerOffset)!==0,[Ot,it]=m.useState();return dh(()=>{x&&it(window.getComputedStyle(x).zIndex)},[x]),f.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:Z?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ot,"--radix-popper-transform-origin":[(Ve=K.transformOrigin)==null?void 0:Ve.x,(Se=K.transformOrigin)==null?void 0:Se.y].join(" "),...((G=K.hide)==null?void 0:G.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(LA,{scope:n,placedSide:ie,onArrowChange:S,arrowX:$e,arrowY:Xe,shouldHideArrow:Ye,children:f.jsx(ut.div,{"data-side":ie,"data-align":he,...p,ref:w,style:{...p.style,animation:Z?void 0:"none"}})})})});Ly.displayName=Eu;var Iy="PopperArrow",FA={top:"bottom",right:"left",bottom:"top",left:"right"},Fy=m.forwardRef(function(t,n){const{__scopePopper:s,...r}=t,i=IA(Iy,s),o=FA[i.placedSide];return f.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:f.jsx(kA,{...r,ref:n,style:{...r.style,display:"block"}})})});Fy.displayName=Iy;function VA(e){return e!==null}var BA=e=>({name:"transformOrigin",options:e,fn(t){var v,x,b;const{placement:n,rects:s,middlewareData:r}=t,o=((v=r.arrow)==null?void 0:v.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,u]=Vy(n),d={start:"0%",center:"50%",end:"100%"}[u],h=(((x=r.arrow)==null?void 0:x.x)??0)+a/2,y=(((b=r.arrow)==null?void 0:b.y)??0)+l/2;let g="",p="";return c==="bottom"?(g=o?d:`${h}px`,p=`${-l}px`):c==="top"?(g=o?d:`${h}px`,p=`${s.floating.height+l}px`):c==="right"?(g=`${-l}px`,p=o?d:`${y}px`):c==="left"&&(g=`${s.floating.width+l}px`,p=o?d:`${y}px`),{data:{x:g,y:p}}}});function Vy(e){const[t,n="center"]=e.split("-");return[t,n]}var $A=Oy,By=Dy,zA=Ly,UA=Fy,Cu="Popover",[$y,$O]=vc(Cu,[ky]),Di=ky(),[WA,es]=$y(Cu),zy=e=>{const{__scopePopover:t,children:n,open:s,defaultOpen:r,onOpenChange:i,modal:o=!1}=e,a=Di(t),l=m.useRef(null),[c,u]=m.useState(!1),[d=!1,h]=yp({prop:s,defaultProp:r,onChange:i});return f.jsx($A,{...a,children:f.jsx(WA,{scope:t,contentId:so(),triggerRef:l,open:d,onOpenChange:h,onOpenToggle:m.useCallback(()=>h(y=>!y),[h]),hasCustomAnchor:c,onCustomAnchorAdd:m.useCallback(()=>u(!0),[]),onCustomAnchorRemove:m.useCallback(()=>u(!1),[]),modal:o,children:n})})};zy.displayName=Cu;var Uy="PopoverAnchor",HA=m.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=es(Uy,n),i=Di(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=r;return m.useEffect(()=>(o(),()=>a()),[o,a]),f.jsx(By,{...i,...s,ref:t})});HA.displayName=Uy;var Wy="PopoverTrigger",Hy=m.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=es(Wy,n),i=Di(n),o=Wt(t,r.triggerRef),a=f.jsx(ut.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Xy(r.open),...s,ref:o,onClick:xt(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?a:f.jsx(By,{asChild:!0,...i,children:a})});Hy.displayName=Wy;var Tu="PopoverPortal",[qA,ZA]=$y(Tu,{forceMount:void 0}),qy=e=>{const{__scopePopover:t,forceMount:n,children:s,container:r}=e,i=es(Tu,t);return f.jsx(qA,{scope:t,forceMount:n,children:f.jsx(vr,{present:n||i.open,children:f.jsx(wc,{asChild:!0,container:r,children:s})})})};qy.displayName=Tu;var fr="PopoverContent",Zy=m.forwardRef((e,t)=>{const n=ZA(fr,e.__scopePopover),{forceMount:s=n.forceMount,...r}=e,i=es(fr,e.__scopePopover);return f.jsx(vr,{present:s||i.open,children:i.modal?f.jsx(KA,{...r,ref:t}):f.jsx(GA,{...r,ref:t})})});Zy.displayName=fr;var KA=m.forwardRef((e,t)=>{const n=es(fr,e.__scopePopover),s=m.useRef(null),r=Wt(t,s),i=m.useRef(!1);return m.useEffect(()=>{const o=s.current;if(o)return kp(o)},[]),f.jsx(Sc,{as:yr,allowPinchZoom:!0,children:f.jsx(Ky,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:xt(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:xt(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,c=a.button===2||l;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:xt(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),GA=m.forwardRef((e,t)=>{const n=es(fr,e.__scopePopover),s=m.useRef(!1),r=m.useRef(!1);return f.jsx(Ky,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(s.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),s.current=!1,r.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(s.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const o=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),Ky=m.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:s,onOpenAutoFocus:r,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,h=es(fr,n),y=Di(n);return Sp(),f.jsx(bc,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:r,onUnmountAutoFocus:i,children:f.jsx(xc,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:f.jsx(zA,{"data-state":Xy(h.open),role:"dialog",id:h.contentId,...y,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Gy="PopoverClose",XA=m.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=es(Gy,n);return f.jsx(ut.button,{type:"button",...s,ref:t,onClick:xt(e.onClick,()=>r.onOpenChange(!1))})});XA.displayName=Gy;var YA="PopoverArrow",QA=m.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Di(n);return f.jsx(UA,{...r,...s,ref:t})});QA.displayName=YA;function Xy(e){return e?"open":"closed"}var JA=zy,eN=Hy,tN=qy,Yy=Zy;const Qy=JA,Jy=eN,Ru=m.forwardRef(({className:e,align:t="center",sideOffset:n=4,...s},r)=>f.jsx(tN,{children:f.jsx(Yy,{ref:r,align:t,sideOffset:n,className:V("z-50 w-32 rounded-[2px] bg-white p-4 text-popover-foreground drop-shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...s})}));Ru.displayName=Yy.displayName;const nN=[{lang:Ke.RU},{lang:Ke.EN},{lang:Ke.TM}],fh={[Ke.RU]:"/ru.svg",[Ke.EN]:"/english.svg",[Ke.TM]:"/tm.png"},sN={[Ke.RU]:"Ру",[Ke.EN]:"En",[Ke.TM]:"Tm"},rN={[Ke.RU]:"Русский",[Ke.EN]:"English",[Ke.TM]:"Türkmen"},hh=({className:e,light:t=!1})=>{const n=Ee(o=>o.lang),s=Ee(o=>o.setLang),[r,i]=m.useState(!1);return f.jsxs(Qy,{open:r,onOpenChange:()=>i(!r),children:[f.jsxs(Jy,{className:V("flex text-white items-center gap-2",t?"text-white":"text-black",e),children:[f.jsx("img",{src:fh[n],alt:""}),sN[n],f.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.23021 8.01443C4.35919 7.70304 4.66305 7.5 5.00011 7.5H15.0001C15.3372 7.5 15.641 7.70304 15.77 8.01443C15.899 8.32583 15.8277 8.68426 15.5894 8.92259L10.5894 13.9226C10.2639 14.248 9.73629 14.248 9.41085 13.9226L4.41085 8.92259C4.17252 8.68426 4.10122 8.32583 4.23021 8.01443ZM7.01195 9.16667L10.0001 12.1548L12.9883 9.16667H7.01195Z",fill:t?"#fff":"#000"})})]}),f.jsx(Ru,{className:"flex flex-col gap-6 w-fit relative z-[200] py-2 px-4 bg-surface_container",children:nN.filter(o=>o.lang!==n).map((o,a)=>f.jsxs("div",{onClick:()=>{s(o.lang),i(!1)},className:"flex gap-3 py-2 items-center cursor-pointer",children:[f.jsx("img",{src:fh[o.lang],alt:"flag"}),f.jsx("h5",{children:rN[o.lang]})]},a))})]})},ev=Kp,tv=Gp,iN=Xp,nv=m.forwardRef(({className:e,...t},n)=>f.jsx(Zo,{ref:n,className:V("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}));nv.displayName=Zo.displayName;const Au=m.forwardRef(({className:e,children:t,...n},s)=>f.jsxs(iN,{children:[f.jsx(nv,{}),f.jsxs(Ko,{ref:s,className:V("fixed left-[50%] top-[50%] z-50 grid 2xl:w-[40%] lg:w-1/2 w-[70%] translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background md:p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,f.jsxs(Rc,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[f.jsx(Ac,{className:"size-6"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Au.displayName=Ko.displayName;const oN=m.forwardRef(({className:e,...t},n)=>f.jsx(Go,{ref:n,className:V("text-lg font-semibold leading-none tracking-tight",e),...t}));oN.displayName=Go.displayName;const aN=m.forwardRef(({className:e,...t},n)=>f.jsx(Xo,{ref:n,className:V("text-sm text-muted-foreground",e),...t}));aN.displayName=Xo.displayName;const ph=(e,t,n)=>{if(e&&"reportValidity"in e){const s=$(n,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},sv=(e,t)=>{for(const n in t.fields){const s=t.fields[n];s&&s.ref&&"reportValidity"in s.ref?ph(s.ref,n,e):s.refs&&s.refs.forEach(r=>ph(r,n,e))}},lN=(e,t)=>{t.shouldUseNativeValidation&&sv(e,t);const n={};for(const s in e){const r=$(t.fields,s),i=Object.assign(e[s]||{},{ref:r&&r.ref});if(cN(t.names||Object.keys(e),s)){const o=Object.assign({},$(n,s));be(o,"root",i),be(n,s,o)}else be(n,s,i)}return n},cN=(e,t)=>e.some(n=>n.startsWith(t+"."));var uN=function(e,t){for(var n={};e.length;){var s=e[0],r=s.code,i=s.message,o=s.path.join(".");if(!n[o])if("unionErrors"in s){var a=s.unionErrors[0].errors[0];n[o]={message:a.message,type:a.code}}else n[o]={message:i,type:r};if("unionErrors"in s&&s.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var l=n[o].types,c=l&&l[s.code];n[o]=ty(o,t,n,r,c?[].concat(c,s.message):s.message)}e.shift()}return n},dN=function(e,t,n){return n===void 0&&(n={}),function(s,r,i){try{return Promise.resolve(function(o,a){try{var l=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](s,t)).then(function(c){return i.shouldUseNativeValidation&&sv({},i),{errors:{},values:n.raw?s:c}})}catch(c){return a(c)}return l&&l.then?l.then(void 0,a):l}(0,function(o){if(function(a){return Array.isArray(a==null?void 0:a.errors)}(o))return{values:{},errors:lN(uN(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}},ye;(function(e){e.assertEqual=r=>r;function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{const i={};for(const o of r)i[o]=o;return i},e.getValidEnumValues=r=>{const i=e.objectKeys(r).filter(a=>typeof r[r[a]]!="number"),o={};for(const a of i)o[a]=r[a];return e.objectValues(o)},e.objectValues=r=>e.objectKeys(r).map(function(i){return r[i]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{const i=[];for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&i.push(o);return i},e.find=(r,i)=>{for(const o of r)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&isFinite(r)&&Math.floor(r)===r;function s(r,i=" | "){return r.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=s,e.jsonStringifyReplacer=(r,i)=>typeof i=="bigint"?i.toString():i})(ye||(ye={}));var Wl;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Wl||(Wl={}));const H=ye.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),yn=e=>{switch(typeof e){case"undefined":return H.undefined;case"string":return H.string;case"number":return isNaN(e)?H.nan:H.number;case"boolean":return H.boolean;case"function":return H.function;case"bigint":return H.bigint;case"symbol":return H.symbol;case"object":return Array.isArray(e)?H.array:e===null?H.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?H.promise:typeof Map<"u"&&e instanceof Map?H.map:typeof Set<"u"&&e instanceof Set?H.set:typeof Date<"u"&&e instanceof Date?H.date:H.object;default:return H.unknown}},D=ye.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),fN=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class St extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},s={_errors:[]},r=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(r);else if(o.code==="invalid_return_type")r(o.returnTypeError);else if(o.code==="invalid_arguments")r(o.argumentsError);else if(o.path.length===0)s._errors.push(n(o));else{let a=s,l=0;for(;l<o.path.length;){const c=o.path[l];l===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(n(o))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return r(this),s}static assert(t){if(!(t instanceof St))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ye.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},s=[];for(const r of this.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):s.push(t(r));return{formErrors:s,fieldErrors:n}}get formErrors(){return this.flatten()}}St.create=e=>new St(e);const hr=(e,t)=>{let n;switch(e.code){case D.invalid_type:e.received===H.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case D.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ye.jsonStringifyReplacer)}`;break;case D.unrecognized_keys:n=`Unrecognized key(s) in object: ${ye.joinValues(e.keys,", ")}`;break;case D.invalid_union:n="Invalid input";break;case D.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ye.joinValues(e.options)}`;break;case D.invalid_enum_value:n=`Invalid enum value. Expected ${ye.joinValues(e.options)}, received '${e.received}'`;break;case D.invalid_arguments:n="Invalid function arguments";break;case D.invalid_return_type:n="Invalid function return type";break;case D.invalid_date:n="Invalid date";break;case D.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ye.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case D.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case D.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case D.custom:n="Invalid input";break;case D.invalid_intersection_types:n="Intersection results could not be merged";break;case D.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case D.not_finite:n="Number must be finite";break;default:n=t.defaultError,ye.assertNever(e)}return{message:n}};let rv=hr;function hN(e){rv=e}function Oo(){return rv}const Mo=e=>{const{data:t,path:n,errorMaps:s,issueData:r}=e,i=[...n,...r.path||[]],o={...r,path:i};if(r.message!==void 0)return{...r,path:i,message:r.message};let a="";const l=s.filter(c=>!!c).slice().reverse();for(const c of l)a=c(o,{data:t,defaultError:a}).message;return{...r,path:i,message:a}},pN=[];function W(e,t){const n=Oo(),s=Mo({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===hr?void 0:hr].filter(r=>!!r)});e.common.issues.push(s)}class st{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const s=[];for(const r of n){if(r.status==="aborted")return re;r.status==="dirty"&&t.dirty(),s.push(r.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,n){const s=[];for(const r of n){const i=await r.key,o=await r.value;s.push({key:i,value:o})}return st.mergeObjectSync(t,s)}static mergeObjectSync(t,n){const s={};for(const r of n){const{key:i,value:o}=r;if(i.status==="aborted"||o.status==="aborted")return re;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||r.alwaysSet)&&(s[i.value]=o.value)}return{status:t.value,value:s}}}const re=Object.freeze({status:"aborted"}),Hs=e=>({status:"dirty",value:e}),ct=e=>({status:"valid",value:e}),Hl=e=>e.status==="aborted",ql=e=>e.status==="dirty",Ts=e=>e.status==="valid",oi=e=>typeof Promise<"u"&&e instanceof Promise;function Do(e,t,n,s){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function iv(e,t,n,s,r){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var X;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(X||(X={}));var Fr,Vr;class cn{constructor(t,n,s,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=s,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const mh=(e,t)=>{if(Ts(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new St(e.common.issues);return this._error=n,this._error}}};function ae(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:s,description:r}=e;if(t&&(n||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(o,a)=>{var l,c;const{message:u}=e;return o.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(l=u??s)!==null&&l!==void 0?l:a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:(c=u??n)!==null&&c!==void 0?c:a.defaultError}},description:r}}class ue{get description(){return this._def.description}_getType(t){return yn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:yn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new st,ctx:{common:t.parent.common,data:t.data,parsedType:yn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(oi(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const s=this.safeParse(t,n);if(s.success)return s.data;throw s.error}safeParse(t,n){var s;const r={common:{issues:[],async:(s=n==null?void 0:n.async)!==null&&s!==void 0?s:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:yn(t)},i=this._parseSync({data:t,path:r.path,parent:r});return mh(r,i)}"~validate"(t){var n,s;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:yn(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:r});return Ts(i)?{value:i.value}:{issues:r.common.issues}}catch(i){!((s=(n=i==null?void 0:i.message)===null||n===void 0?void 0:n.toLowerCase())===null||s===void 0)&&s.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(i=>Ts(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(t,n){const s=await this.safeParseAsync(t,n);if(s.success)return s.data;throw s.error}async safeParseAsync(t,n){const s={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:yn(t)},r=this._parse({data:t,path:s.path,parent:s}),i=await(oi(r)?r:Promise.resolve(r));return mh(s,i)}refine(t,n){const s=r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n;return this._refinement((r,i)=>{const o=t(r),a=()=>i.addIssue({code:D.custom,...s(r)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,n){return this._refinement((s,r)=>t(s)?!0:(r.addIssue(typeof n=="function"?n(s,r):n),!1))}_refinement(t){return new Ut({schema:this,typeName:se.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return an.create(this,this._def)}nullable(){return Qn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Vt.create(this)}promise(){return mr.create(this,this._def)}or(t){return ui.create([this,t],this._def)}and(t){return di.create(this,t,this._def)}transform(t){return new Ut({...ae(this._def),schema:this,typeName:se.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new gi({...ae(this._def),innerType:this,defaultValue:n,typeName:se.ZodDefault})}brand(){return new Nu({typeName:se.ZodBranded,type:this,...ae(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new yi({...ae(this._def),innerType:this,catchValue:n,typeName:se.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Li.create(this,t)}readonly(){return vi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const mN=/^c[^\s-]{8,}$/i,gN=/^[0-9a-z]+$/,yN=/^[0-9A-HJKMNP-TV-Z]{26}$/i,vN=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,xN=/^[a-z0-9_-]{21}$/i,bN=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,wN=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,SN=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,_N="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Ka;const EN=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,CN=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,TN=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,RN=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,AN=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,NN=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,ov="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",PN=new RegExp(`^${ov}$`);function av(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function kN(e){return new RegExp(`^${av(e)}$`)}function lv(e){let t=`${ov}T${av(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function jN(e,t){return!!((t==="v4"||!t)&&EN.test(e)||(t==="v6"||!t)&&TN.test(e))}function ON(e,t){if(!bN.test(e))return!1;try{const[n]=e.split("."),s=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(s));return!(typeof r!="object"||r===null||!r.typ||!r.alg||t&&r.alg!==t)}catch{return!1}}function MN(e,t){return!!((t==="v4"||!t)&&CN.test(e)||(t==="v6"||!t)&&RN.test(e))}class Ft extends ue{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==H.string){const i=this._getOrReturnCtx(t);return W(i,{code:D.invalid_type,expected:H.string,received:i.parsedType}),re}const s=new st;let r;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(r=this._getOrReturnCtx(t,r),W(r,{code:D.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="max")t.data.length>i.value&&(r=this._getOrReturnCtx(t,r),W(r,{code:D.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,a=t.data.length<i.value;(o||a)&&(r=this._getOrReturnCtx(t,r),o?W(r,{code:D.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&W(r,{code:D.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),s.dirty())}else if(i.kind==="email")SN.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"email",code:D.invalid_string,message:i.message}),s.dirty());else if(i.kind==="emoji")Ka||(Ka=new RegExp(_N,"u")),Ka.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"emoji",code:D.invalid_string,message:i.message}),s.dirty());else if(i.kind==="uuid")vN.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"uuid",code:D.invalid_string,message:i.message}),s.dirty());else if(i.kind==="nanoid")xN.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"nanoid",code:D.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid")mN.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"cuid",code:D.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid2")gN.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"cuid2",code:D.invalid_string,message:i.message}),s.dirty());else if(i.kind==="ulid")yN.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"ulid",code:D.invalid_string,message:i.message}),s.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),W(r,{validation:"url",code:D.invalid_string,message:i.message}),s.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"regex",code:D.invalid_string,message:i.message}),s.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(r=this._getOrReturnCtx(t,r),W(r,{code:D.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),s.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(r=this._getOrReturnCtx(t,r),W(r,{code:D.invalid_string,validation:{startsWith:i.value},message:i.message}),s.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(r=this._getOrReturnCtx(t,r),W(r,{code:D.invalid_string,validation:{endsWith:i.value},message:i.message}),s.dirty()):i.kind==="datetime"?lv(i).test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:D.invalid_string,validation:"datetime",message:i.message}),s.dirty()):i.kind==="date"?PN.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:D.invalid_string,validation:"date",message:i.message}),s.dirty()):i.kind==="time"?kN(i).test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:D.invalid_string,validation:"time",message:i.message}),s.dirty()):i.kind==="duration"?wN.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"duration",code:D.invalid_string,message:i.message}),s.dirty()):i.kind==="ip"?jN(t.data,i.version)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"ip",code:D.invalid_string,message:i.message}),s.dirty()):i.kind==="jwt"?ON(t.data,i.alg)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"jwt",code:D.invalid_string,message:i.message}),s.dirty()):i.kind==="cidr"?MN(t.data,i.version)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"cidr",code:D.invalid_string,message:i.message}),s.dirty()):i.kind==="base64"?AN.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"base64",code:D.invalid_string,message:i.message}),s.dirty()):i.kind==="base64url"?NN.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"base64url",code:D.invalid_string,message:i.message}),s.dirty()):ye.assertNever(i);return{status:s.value,value:t.data}}_regex(t,n,s){return this.refinement(r=>t.test(r),{validation:n,code:D.invalid_string,...X.errToObj(s)})}_addCheck(t){return new Ft({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...X.errToObj(t)})}url(t){return this._addCheck({kind:"url",...X.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...X.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...X.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...X.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...X.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...X.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...X.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...X.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...X.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...X.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...X.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...X.errToObj(t)})}datetime(t){var n,s;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(s=t==null?void 0:t.local)!==null&&s!==void 0?s:!1,...X.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...X.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...X.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...X.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...X.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...X.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...X.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...X.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...X.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...X.errToObj(n)})}nonempty(t){return this.min(1,X.errToObj(t))}trim(){return new Ft({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ft({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ft({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Ft.create=e=>{var t;return new Ft({checks:[],typeName:se.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ae(e)})};function DN(e,t){const n=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,r=n>s?n:s,i=parseInt(e.toFixed(r).replace(".","")),o=parseInt(t.toFixed(r).replace(".",""));return i%o/Math.pow(10,r)}class Gn extends ue{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==H.number){const i=this._getOrReturnCtx(t);return W(i,{code:D.invalid_type,expected:H.number,received:i.parsedType}),re}let s;const r=new st;for(const i of this._def.checks)i.kind==="int"?ye.isInteger(t.data)||(s=this._getOrReturnCtx(t,s),W(s,{code:D.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(s=this._getOrReturnCtx(t,s),W(s,{code:D.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),W(s,{code:D.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="multipleOf"?DN(t.data,i.value)!==0&&(s=this._getOrReturnCtx(t,s),W(s,{code:D.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(s=this._getOrReturnCtx(t,s),W(s,{code:D.not_finite,message:i.message}),r.dirty()):ye.assertNever(i);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,X.toString(n))}gt(t,n){return this.setLimit("min",t,!1,X.toString(n))}lte(t,n){return this.setLimit("max",t,!0,X.toString(n))}lt(t,n){return this.setLimit("max",t,!1,X.toString(n))}setLimit(t,n,s,r){return new Gn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:X.toString(r)}]})}_addCheck(t){return new Gn({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:X.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:X.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:X.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:X.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:X.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:X.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:X.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:X.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:X.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ye.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(n===null||s.value>n)&&(n=s.value):s.kind==="max"&&(t===null||s.value<t)&&(t=s.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Gn.create=e=>new Gn({checks:[],typeName:se.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ae(e)});class Xn extends ue{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==H.bigint)return this._getInvalidInput(t);let s;const r=new st;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(s=this._getOrReturnCtx(t,s),W(s,{code:D.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),W(s,{code:D.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(s=this._getOrReturnCtx(t,s),W(s,{code:D.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):ye.assertNever(i);return{status:r.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return W(n,{code:D.invalid_type,expected:H.bigint,received:n.parsedType}),re}gte(t,n){return this.setLimit("min",t,!0,X.toString(n))}gt(t,n){return this.setLimit("min",t,!1,X.toString(n))}lte(t,n){return this.setLimit("max",t,!0,X.toString(n))}lt(t,n){return this.setLimit("max",t,!1,X.toString(n))}setLimit(t,n,s,r){return new Xn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:X.toString(r)}]})}_addCheck(t){return new Xn({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:X.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:X.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:X.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:X.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:X.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Xn.create=e=>{var t;return new Xn({checks:[],typeName:se.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ae(e)})};class ai extends ue{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==H.boolean){const s=this._getOrReturnCtx(t);return W(s,{code:D.invalid_type,expected:H.boolean,received:s.parsedType}),re}return ct(t.data)}}ai.create=e=>new ai({typeName:se.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ae(e)});class Rs extends ue{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==H.date){const i=this._getOrReturnCtx(t);return W(i,{code:D.invalid_type,expected:H.date,received:i.parsedType}),re}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return W(i,{code:D.invalid_date}),re}const s=new st;let r;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(r=this._getOrReturnCtx(t,r),W(r,{code:D.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),s.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(r=this._getOrReturnCtx(t,r),W(r,{code:D.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),s.dirty()):ye.assertNever(i);return{status:s.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Rs({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:X.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:X.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Rs.create=e=>new Rs({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:se.ZodDate,...ae(e)});class Lo extends ue{_parse(t){if(this._getType(t)!==H.symbol){const s=this._getOrReturnCtx(t);return W(s,{code:D.invalid_type,expected:H.symbol,received:s.parsedType}),re}return ct(t.data)}}Lo.create=e=>new Lo({typeName:se.ZodSymbol,...ae(e)});class li extends ue{_parse(t){if(this._getType(t)!==H.undefined){const s=this._getOrReturnCtx(t);return W(s,{code:D.invalid_type,expected:H.undefined,received:s.parsedType}),re}return ct(t.data)}}li.create=e=>new li({typeName:se.ZodUndefined,...ae(e)});class ci extends ue{_parse(t){if(this._getType(t)!==H.null){const s=this._getOrReturnCtx(t);return W(s,{code:D.invalid_type,expected:H.null,received:s.parsedType}),re}return ct(t.data)}}ci.create=e=>new ci({typeName:se.ZodNull,...ae(e)});class pr extends ue{constructor(){super(...arguments),this._any=!0}_parse(t){return ct(t.data)}}pr.create=e=>new pr({typeName:se.ZodAny,...ae(e)});class ws extends ue{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ct(t.data)}}ws.create=e=>new ws({typeName:se.ZodUnknown,...ae(e)});class Cn extends ue{_parse(t){const n=this._getOrReturnCtx(t);return W(n,{code:D.invalid_type,expected:H.never,received:n.parsedType}),re}}Cn.create=e=>new Cn({typeName:se.ZodNever,...ae(e)});class Io extends ue{_parse(t){if(this._getType(t)!==H.undefined){const s=this._getOrReturnCtx(t);return W(s,{code:D.invalid_type,expected:H.void,received:s.parsedType}),re}return ct(t.data)}}Io.create=e=>new Io({typeName:se.ZodVoid,...ae(e)});class Vt extends ue{_parse(t){const{ctx:n,status:s}=this._processInputParams(t),r=this._def;if(n.parsedType!==H.array)return W(n,{code:D.invalid_type,expected:H.array,received:n.parsedType}),re;if(r.exactLength!==null){const o=n.data.length>r.exactLength.value,a=n.data.length<r.exactLength.value;(o||a)&&(W(n,{code:o?D.too_big:D.too_small,minimum:a?r.exactLength.value:void 0,maximum:o?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),s.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(W(n,{code:D.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),s.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(W(n,{code:D.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),s.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>r.type._parseAsync(new cn(n,o,n.path,a)))).then(o=>st.mergeArray(s,o));const i=[...n.data].map((o,a)=>r.type._parseSync(new cn(n,o,n.path,a)));return st.mergeArray(s,i)}get element(){return this._def.type}min(t,n){return new Vt({...this._def,minLength:{value:t,message:X.toString(n)}})}max(t,n){return new Vt({...this._def,maxLength:{value:t,message:X.toString(n)}})}length(t,n){return new Vt({...this._def,exactLength:{value:t,message:X.toString(n)}})}nonempty(t){return this.min(1,t)}}Vt.create=(e,t)=>new Vt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:se.ZodArray,...ae(t)});function Vs(e){if(e instanceof Ae){const t={};for(const n in e.shape){const s=e.shape[n];t[n]=an.create(Vs(s))}return new Ae({...e._def,shape:()=>t})}else return e instanceof Vt?new Vt({...e._def,type:Vs(e.element)}):e instanceof an?an.create(Vs(e.unwrap())):e instanceof Qn?Qn.create(Vs(e.unwrap())):e instanceof un?un.create(e.items.map(t=>Vs(t))):e}class Ae extends ue{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=ye.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==H.object){const c=this._getOrReturnCtx(t);return W(c,{code:D.invalid_type,expected:H.object,received:c.parsedType}),re}const{status:s,ctx:r}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Cn&&this._def.unknownKeys==="strip"))for(const c in r.data)o.includes(c)||a.push(c);const l=[];for(const c of o){const u=i[c],d=r.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new cn(r,d,r.path,c)),alwaysSet:c in r.data})}if(this._def.catchall instanceof Cn){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:r.data[u]}});else if(c==="strict")a.length>0&&(W(r,{code:D.unrecognized_keys,keys:a}),s.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of a){const d=r.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new cn(r,d,r.path,u)),alwaysSet:u in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key,h=await u.value;c.push({key:d,value:h,alwaysSet:u.alwaysSet})}return c}).then(c=>st.mergeObjectSync(s,c)):st.mergeObjectSync(s,l)}get shape(){return this._def.shape()}strict(t){return X.errToObj,new Ae({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,s)=>{var r,i,o,a;const l=(o=(i=(r=this._def).errorMap)===null||i===void 0?void 0:i.call(r,n,s).message)!==null&&o!==void 0?o:s.defaultError;return n.code==="unrecognized_keys"?{message:(a=X.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new Ae({...this._def,unknownKeys:"strip"})}passthrough(){return new Ae({...this._def,unknownKeys:"passthrough"})}extend(t){return new Ae({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Ae({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:se.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Ae({...this._def,catchall:t})}pick(t){const n={};return ye.objectKeys(t).forEach(s=>{t[s]&&this.shape[s]&&(n[s]=this.shape[s])}),new Ae({...this._def,shape:()=>n})}omit(t){const n={};return ye.objectKeys(this.shape).forEach(s=>{t[s]||(n[s]=this.shape[s])}),new Ae({...this._def,shape:()=>n})}deepPartial(){return Vs(this)}partial(t){const n={};return ye.objectKeys(this.shape).forEach(s=>{const r=this.shape[s];t&&!t[s]?n[s]=r:n[s]=r.optional()}),new Ae({...this._def,shape:()=>n})}required(t){const n={};return ye.objectKeys(this.shape).forEach(s=>{if(t&&!t[s])n[s]=this.shape[s];else{let i=this.shape[s];for(;i instanceof an;)i=i._def.innerType;n[s]=i}}),new Ae({...this._def,shape:()=>n})}keyof(){return cv(ye.objectKeys(this.shape))}}Ae.create=(e,t)=>new Ae({shape:()=>e,unknownKeys:"strip",catchall:Cn.create(),typeName:se.ZodObject,...ae(t)});Ae.strictCreate=(e,t)=>new Ae({shape:()=>e,unknownKeys:"strict",catchall:Cn.create(),typeName:se.ZodObject,...ae(t)});Ae.lazycreate=(e,t)=>new Ae({shape:e,unknownKeys:"strip",catchall:Cn.create(),typeName:se.ZodObject,...ae(t)});class ui extends ue{_parse(t){const{ctx:n}=this._processInputParams(t),s=this._def.options;function r(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new St(a.ctx.common.issues));return W(n,{code:D.invalid_union,unionErrors:o}),re}if(n.common.async)return Promise.all(s.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(r);{let i;const o=[];for(const l of s){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const a=o.map(l=>new St(l));return W(n,{code:D.invalid_union,unionErrors:a}),re}}get options(){return this._def.options}}ui.create=(e,t)=>new ui({options:e,typeName:se.ZodUnion,...ae(t)});const gn=e=>e instanceof hi?gn(e.schema):e instanceof Ut?gn(e.innerType()):e instanceof pi?[e.value]:e instanceof Yn?e.options:e instanceof mi?ye.objectValues(e.enum):e instanceof gi?gn(e._def.innerType):e instanceof li?[void 0]:e instanceof ci?[null]:e instanceof an?[void 0,...gn(e.unwrap())]:e instanceof Qn?[null,...gn(e.unwrap())]:e instanceof Nu||e instanceof vi?gn(e.unwrap()):e instanceof yi?gn(e._def.innerType):[];class ca extends ue{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==H.object)return W(n,{code:D.invalid_type,expected:H.object,received:n.parsedType}),re;const s=this.discriminator,r=n.data[s],i=this.optionsMap.get(r);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(W(n,{code:D.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),re)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,s){const r=new Map;for(const i of n){const o=gn(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of o){if(r.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);r.set(a,i)}}return new ca({typeName:se.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...ae(s)})}}function Zl(e,t){const n=yn(e),s=yn(t);if(e===t)return{valid:!0,data:e};if(n===H.object&&s===H.object){const r=ye.objectKeys(t),i=ye.objectKeys(e).filter(a=>r.indexOf(a)!==-1),o={...e,...t};for(const a of i){const l=Zl(e[a],t[a]);if(!l.valid)return{valid:!1};o[a]=l.data}return{valid:!0,data:o}}else if(n===H.array&&s===H.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let i=0;i<e.length;i++){const o=e[i],a=t[i],l=Zl(o,a);if(!l.valid)return{valid:!1};r.push(l.data)}return{valid:!0,data:r}}else return n===H.date&&s===H.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class di extends ue{_parse(t){const{status:n,ctx:s}=this._processInputParams(t),r=(i,o)=>{if(Hl(i)||Hl(o))return re;const a=Zl(i.value,o.value);return a.valid?((ql(i)||ql(o))&&n.dirty(),{status:n.value,value:a.data}):(W(s,{code:D.invalid_intersection_types}),re)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([i,o])=>r(i,o)):r(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}di.create=(e,t,n)=>new di({left:e,right:t,typeName:se.ZodIntersection,...ae(n)});class un extends ue{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==H.array)return W(s,{code:D.invalid_type,expected:H.array,received:s.parsedType}),re;if(s.data.length<this._def.items.length)return W(s,{code:D.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),re;!this._def.rest&&s.data.length>this._def.items.length&&(W(s,{code:D.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...s.data].map((o,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new cn(s,o,s.path,a)):null}).filter(o=>!!o);return s.common.async?Promise.all(i).then(o=>st.mergeArray(n,o)):st.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new un({...this._def,rest:t})}}un.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new un({items:e,typeName:se.ZodTuple,rest:null,...ae(t)})};class fi extends ue{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==H.object)return W(s,{code:D.invalid_type,expected:H.object,received:s.parsedType}),re;const r=[],i=this._def.keyType,o=this._def.valueType;for(const a in s.data)r.push({key:i._parse(new cn(s,a,s.path,a)),value:o._parse(new cn(s,s.data[a],s.path,a)),alwaysSet:a in s.data});return s.common.async?st.mergeObjectAsync(n,r):st.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,s){return n instanceof ue?new fi({keyType:t,valueType:n,typeName:se.ZodRecord,...ae(s)}):new fi({keyType:Ft.create(),valueType:t,typeName:se.ZodRecord,...ae(n)})}}class Fo extends ue{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==H.map)return W(s,{code:D.invalid_type,expected:H.map,received:s.parsedType}),re;const r=this._def.keyType,i=this._def.valueType,o=[...s.data.entries()].map(([a,l],c)=>({key:r._parse(new cn(s,a,s.path,[c,"key"])),value:i._parse(new cn(s,l,s.path,[c,"value"]))}));if(s.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of o){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return re;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of o){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return re;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}}}}Fo.create=(e,t,n)=>new Fo({valueType:t,keyType:e,typeName:se.ZodMap,...ae(n)});class As extends ue{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==H.set)return W(s,{code:D.invalid_type,expected:H.set,received:s.parsedType}),re;const r=this._def;r.minSize!==null&&s.data.size<r.minSize.value&&(W(s,{code:D.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&s.data.size>r.maxSize.value&&(W(s,{code:D.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());const i=this._def.valueType;function o(l){const c=new Set;for(const u of l){if(u.status==="aborted")return re;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const a=[...s.data.values()].map((l,c)=>i._parse(new cn(s,l,s.path,c)));return s.common.async?Promise.all(a).then(l=>o(l)):o(a)}min(t,n){return new As({...this._def,minSize:{value:t,message:X.toString(n)}})}max(t,n){return new As({...this._def,maxSize:{value:t,message:X.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}As.create=(e,t)=>new As({valueType:e,minSize:null,maxSize:null,typeName:se.ZodSet,...ae(t)});class Gs extends ue{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==H.function)return W(n,{code:D.invalid_type,expected:H.function,received:n.parsedType}),re;function s(a,l){return Mo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Oo(),hr].filter(c=>!!c),issueData:{code:D.invalid_arguments,argumentsError:l}})}function r(a,l){return Mo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Oo(),hr].filter(c=>!!c),issueData:{code:D.invalid_return_type,returnTypeError:l}})}const i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof mr){const a=this;return ct(async function(...l){const c=new St([]),u=await a._def.args.parseAsync(l,i).catch(y=>{throw c.addIssue(s(l,y)),c}),d=await Reflect.apply(o,this,u);return await a._def.returns._def.type.parseAsync(d,i).catch(y=>{throw c.addIssue(r(d,y)),c})})}else{const a=this;return ct(function(...l){const c=a._def.args.safeParse(l,i);if(!c.success)throw new St([s(l,c.error)]);const u=Reflect.apply(o,this,c.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new St([r(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Gs({...this._def,args:un.create(t).rest(ws.create())})}returns(t){return new Gs({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,s){return new Gs({args:t||un.create([]).rest(ws.create()),returns:n||ws.create(),typeName:se.ZodFunction,...ae(s)})}}class hi extends ue{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}hi.create=(e,t)=>new hi({getter:e,typeName:se.ZodLazy,...ae(t)});class pi extends ue{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return W(n,{received:n.data,code:D.invalid_literal,expected:this._def.value}),re}return{status:"valid",value:t.data}}get value(){return this._def.value}}pi.create=(e,t)=>new pi({value:e,typeName:se.ZodLiteral,...ae(t)});function cv(e,t){return new Yn({values:e,typeName:se.ZodEnum,...ae(t)})}class Yn extends ue{constructor(){super(...arguments),Fr.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),s=this._def.values;return W(n,{expected:ye.joinValues(s),received:n.parsedType,code:D.invalid_type}),re}if(Do(this,Fr)||iv(this,Fr,new Set(this._def.values)),!Do(this,Fr).has(t.data)){const n=this._getOrReturnCtx(t),s=this._def.values;return W(n,{received:n.data,code:D.invalid_enum_value,options:s}),re}return ct(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Yn.create(t,{...this._def,...n})}exclude(t,n=this._def){return Yn.create(this.options.filter(s=>!t.includes(s)),{...this._def,...n})}}Fr=new WeakMap;Yn.create=cv;class mi extends ue{constructor(){super(...arguments),Vr.set(this,void 0)}_parse(t){const n=ye.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==H.string&&s.parsedType!==H.number){const r=ye.objectValues(n);return W(s,{expected:ye.joinValues(r),received:s.parsedType,code:D.invalid_type}),re}if(Do(this,Vr)||iv(this,Vr,new Set(ye.getValidEnumValues(this._def.values))),!Do(this,Vr).has(t.data)){const r=ye.objectValues(n);return W(s,{received:s.data,code:D.invalid_enum_value,options:r}),re}return ct(t.data)}get enum(){return this._def.values}}Vr=new WeakMap;mi.create=(e,t)=>new mi({values:e,typeName:se.ZodNativeEnum,...ae(t)});class mr extends ue{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==H.promise&&n.common.async===!1)return W(n,{code:D.invalid_type,expected:H.promise,received:n.parsedType}),re;const s=n.parsedType===H.promise?n.data:Promise.resolve(n.data);return ct(s.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}}mr.create=(e,t)=>new mr({type:e,typeName:se.ZodPromise,...ae(t)});class Ut extends ue{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===se.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:s}=this._processInputParams(t),r=this._def.effect||null,i={addIssue:o=>{W(s,o),o.fatal?n.abort():n.dirty()},get path(){return s.path}};if(i.addIssue=i.addIssue.bind(i),r.type==="preprocess"){const o=r.transform(s.data,i);if(s.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return re;const l=await this._def.schema._parseAsync({data:a,path:s.path,parent:s});return l.status==="aborted"?re:l.status==="dirty"||n.value==="dirty"?Hs(l.value):l});{if(n.value==="aborted")return re;const a=this._def.schema._parseSync({data:o,path:s.path,parent:s});return a.status==="aborted"?re:a.status==="dirty"||n.value==="dirty"?Hs(a.value):a}}if(r.type==="refinement"){const o=a=>{const l=r.refinement(a,i);if(s.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(s.common.async===!1){const a=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?re:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(a=>a.status==="aborted"?re:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(r.type==="transform")if(s.common.async===!1){const o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Ts(o))return o;const a=r.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>Ts(o)?Promise.resolve(r.transform(o.value,i)).then(a=>({status:n.value,value:a})):o);ye.assertNever(r)}}Ut.create=(e,t,n)=>new Ut({schema:e,typeName:se.ZodEffects,effect:t,...ae(n)});Ut.createWithPreprocess=(e,t,n)=>new Ut({schema:t,effect:{type:"preprocess",transform:e},typeName:se.ZodEffects,...ae(n)});class an extends ue{_parse(t){return this._getType(t)===H.undefined?ct(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}an.create=(e,t)=>new an({innerType:e,typeName:se.ZodOptional,...ae(t)});class Qn extends ue{_parse(t){return this._getType(t)===H.null?ct(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Qn.create=(e,t)=>new Qn({innerType:e,typeName:se.ZodNullable,...ae(t)});class gi extends ue{_parse(t){const{ctx:n}=this._processInputParams(t);let s=n.data;return n.parsedType===H.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}gi.create=(e,t)=>new gi({innerType:e,typeName:se.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ae(t)});class yi extends ue{_parse(t){const{ctx:n}=this._processInputParams(t),s={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return oi(r)?r.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new St(s.common.issues)},input:s.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new St(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}yi.create=(e,t)=>new yi({innerType:e,typeName:se.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ae(t)});class Vo extends ue{_parse(t){if(this._getType(t)!==H.nan){const s=this._getOrReturnCtx(t);return W(s,{code:D.invalid_type,expected:H.nan,received:s.parsedType}),re}return{status:"valid",value:t.data}}}Vo.create=e=>new Vo({typeName:se.ZodNaN,...ae(e)});const LN=Symbol("zod_brand");class Nu extends ue{_parse(t){const{ctx:n}=this._processInputParams(t),s=n.data;return this._def.type._parse({data:s,path:n.path,parent:n})}unwrap(){return this._def.type}}class Li extends ue{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return i.status==="aborted"?re:i.status==="dirty"?(n.dirty(),Hs(i.value)):this._def.out._parseAsync({data:i.value,path:s.path,parent:s})})();{const r=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return r.status==="aborted"?re:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:s.path,parent:s})}}static create(t,n){return new Li({in:t,out:n,typeName:se.ZodPipeline})}}class vi extends ue{_parse(t){const n=this._def.innerType._parse(t),s=r=>(Ts(r)&&(r.value=Object.freeze(r.value)),r);return oi(n)?n.then(r=>s(r)):s(n)}unwrap(){return this._def.innerType}}vi.create=(e,t)=>new vi({innerType:e,typeName:se.ZodReadonly,...ae(t)});function uv(e,t={},n){return e?pr.create().superRefine((s,r)=>{var i,o;if(!e(s)){const a=typeof t=="function"?t(s):typeof t=="string"?{message:t}:t,l=(o=(i=a.fatal)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:!0,c=typeof a=="string"?{message:a}:a;r.addIssue({code:"custom",...c,fatal:l})}}):pr.create()}const IN={object:Ae.lazycreate};var se;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(se||(se={}));const FN=(e,t={message:`Input not instance of ${e.name}`})=>uv(n=>n instanceof e,t),dv=Ft.create,fv=Gn.create,VN=Vo.create,BN=Xn.create,hv=ai.create,$N=Rs.create,zN=Lo.create,UN=li.create,WN=ci.create,HN=pr.create,qN=ws.create,ZN=Cn.create,KN=Io.create,GN=Vt.create,XN=Ae.create,YN=Ae.strictCreate,QN=ui.create,JN=ca.create,eP=di.create,tP=un.create,nP=fi.create,sP=Fo.create,rP=As.create,iP=Gs.create,oP=hi.create,aP=pi.create,lP=Yn.create,cP=mi.create,uP=mr.create,gh=Ut.create,dP=an.create,fP=Qn.create,hP=Ut.createWithPreprocess,pP=Li.create,mP=()=>dv().optional(),gP=()=>fv().optional(),yP=()=>hv().optional(),vP={string:e=>Ft.create({...e,coerce:!0}),number:e=>Gn.create({...e,coerce:!0}),boolean:e=>ai.create({...e,coerce:!0}),bigint:e=>Xn.create({...e,coerce:!0}),date:e=>Rs.create({...e,coerce:!0})},xP=re;var yh=Object.freeze({__proto__:null,defaultErrorMap:hr,setErrorMap:hN,getErrorMap:Oo,makeIssue:Mo,EMPTY_PATH:pN,addIssueToContext:W,ParseStatus:st,INVALID:re,DIRTY:Hs,OK:ct,isAborted:Hl,isDirty:ql,isValid:Ts,isAsync:oi,get util(){return ye},get objectUtil(){return Wl},ZodParsedType:H,getParsedType:yn,ZodType:ue,datetimeRegex:lv,ZodString:Ft,ZodNumber:Gn,ZodBigInt:Xn,ZodBoolean:ai,ZodDate:Rs,ZodSymbol:Lo,ZodUndefined:li,ZodNull:ci,ZodAny:pr,ZodUnknown:ws,ZodNever:Cn,ZodVoid:Io,ZodArray:Vt,ZodObject:Ae,ZodUnion:ui,ZodDiscriminatedUnion:ca,ZodIntersection:di,ZodTuple:un,ZodRecord:fi,ZodMap:Fo,ZodSet:As,ZodFunction:Gs,ZodLazy:hi,ZodLiteral:pi,ZodEnum:Yn,ZodNativeEnum:mi,ZodPromise:mr,ZodEffects:Ut,ZodTransformer:Ut,ZodOptional:an,ZodNullable:Qn,ZodDefault:gi,ZodCatch:yi,ZodNaN:Vo,BRAND:LN,ZodBranded:Nu,ZodPipeline:Li,ZodReadonly:vi,custom:uv,Schema:ue,ZodSchema:ue,late:IN,get ZodFirstPartyTypeKind(){return se},coerce:vP,any:HN,array:GN,bigint:BN,boolean:hv,date:$N,discriminatedUnion:JN,effect:gh,enum:lP,function:iP,instanceof:FN,intersection:eP,lazy:oP,literal:aP,map:sP,nan:VN,nativeEnum:cP,never:ZN,null:WN,nullable:fP,number:fv,object:XN,oboolean:yP,onumber:gP,optional:dP,ostring:mP,pipeline:pP,preprocess:hP,promise:uP,record:nP,set:rP,strictObject:YN,string:dv,symbol:zN,transformer:gh,tuple:tP,undefined:UN,union:QN,unknown:qN,void:KN,NEVER:xP,ZodIssueCode:D,quotelessJson:fN,ZodError:St});const Ga=(e,t,n)=>{const s=Ee(r=>r.lang);return s==="ru"?e:s==="tm"?n??t:t};function pv(e,t){return function(){return e.apply(t,arguments)}}const{toString:bP}=Object.prototype,{getPrototypeOf:Pu}=Object,ua=(e=>t=>{const n=bP.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),qt=e=>(e=e.toLowerCase(),t=>ua(t)===e),da=e=>t=>typeof t===e,{isArray:Er}=Array,xi=da("undefined");function wP(e){return e!==null&&!xi(e)&&e.constructor!==null&&!xi(e.constructor)&&_t(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const mv=qt("ArrayBuffer");function SP(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&mv(e.buffer),t}const _P=da("string"),_t=da("function"),gv=da("number"),fa=e=>e!==null&&typeof e=="object",EP=e=>e===!0||e===!1,fo=e=>{if(ua(e)!=="object")return!1;const t=Pu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},CP=qt("Date"),TP=qt("File"),RP=qt("Blob"),AP=qt("FileList"),NP=e=>fa(e)&&_t(e.pipe),PP=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||_t(e.append)&&((t=ua(e))==="formdata"||t==="object"&&_t(e.toString)&&e.toString()==="[object FormData]"))},kP=qt("URLSearchParams"),[jP,OP,MP,DP]=["ReadableStream","Request","Response","Headers"].map(qt),LP=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ii(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),Er(e))for(s=0,r=e.length;s<r;s++)t.call(null,e[s],s,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(s=0;s<o;s++)a=i[s],t.call(null,e[a],a,e)}}function yv(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length,r;for(;s-- >0;)if(r=n[s],t===r.toLowerCase())return r;return null}const cs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,vv=e=>!xi(e)&&e!==cs;function Kl(){const{caseless:e}=vv(this)&&this||{},t={},n=(s,r)=>{const i=e&&yv(t,r)||r;fo(t[i])&&fo(s)?t[i]=Kl(t[i],s):fo(s)?t[i]=Kl({},s):Er(s)?t[i]=s.slice():t[i]=s};for(let s=0,r=arguments.length;s<r;s++)arguments[s]&&Ii(arguments[s],n);return t}const IP=(e,t,n,{allOwnKeys:s}={})=>(Ii(t,(r,i)=>{n&&_t(r)?e[i]=pv(r,n):e[i]=r},{allOwnKeys:s}),e),FP=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),VP=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},BP=(e,t,n,s)=>{let r,i,o;const a={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)o=r[i],(!s||s(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Pu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},$P=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},zP=e=>{if(!e)return null;if(Er(e))return e;let t=e.length;if(!gv(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},UP=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pu(Uint8Array)),WP=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},HP=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},qP=qt("HTMLFormElement"),ZP=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),vh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),KP=qt("RegExp"),xv=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Ii(n,(r,i)=>{let o;(o=t(r,i,e))!==!1&&(s[i]=o||r)}),Object.defineProperties(e,s)},GP=e=>{xv(e,(t,n)=>{if(_t(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(_t(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},XP=(e,t)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return Er(e)?s(e):s(String(e).split(t)),n},YP=()=>{},QP=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Xa="abcdefghijklmnopqrstuvwxyz",xh="0123456789",bv={DIGIT:xh,ALPHA:Xa,ALPHA_DIGIT:Xa+Xa.toUpperCase()+xh},JP=(e=16,t=bv.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function ek(e){return!!(e&&_t(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const tk=e=>{const t=new Array(10),n=(s,r)=>{if(fa(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const i=Er(s)?[]:{};return Ii(s,(o,a)=>{const l=n(o,r+1);!xi(l)&&(i[a]=l)}),t[r]=void 0,i}}return s};return n(e,0)},nk=qt("AsyncFunction"),sk=e=>e&&(fa(e)||_t(e))&&_t(e.then)&&_t(e.catch),wv=((e,t)=>e?setImmediate:t?((n,s)=>(cs.addEventListener("message",({source:r,data:i})=>{r===cs&&i===n&&s.length&&s.shift()()},!1),r=>{s.push(r),cs.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",_t(cs.postMessage)),rk=typeof queueMicrotask<"u"?queueMicrotask.bind(cs):typeof process<"u"&&process.nextTick||wv,k={isArray:Er,isArrayBuffer:mv,isBuffer:wP,isFormData:PP,isArrayBufferView:SP,isString:_P,isNumber:gv,isBoolean:EP,isObject:fa,isPlainObject:fo,isReadableStream:jP,isRequest:OP,isResponse:MP,isHeaders:DP,isUndefined:xi,isDate:CP,isFile:TP,isBlob:RP,isRegExp:KP,isFunction:_t,isStream:NP,isURLSearchParams:kP,isTypedArray:UP,isFileList:AP,forEach:Ii,merge:Kl,extend:IP,trim:LP,stripBOM:FP,inherits:VP,toFlatObject:BP,kindOf:ua,kindOfTest:qt,endsWith:$P,toArray:zP,forEachEntry:WP,matchAll:HP,isHTMLForm:qP,hasOwnProperty:vh,hasOwnProp:vh,reduceDescriptors:xv,freezeMethods:GP,toObjectSet:XP,toCamelCase:ZP,noop:YP,toFiniteNumber:QP,findKey:yv,global:cs,isContextDefined:vv,ALPHABET:bv,generateString:JP,isSpecCompliantForm:ek,toJSONObject:tk,isAsyncFn:nk,isThenable:sk,setImmediate:wv,asap:rk};function oe(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r,this.status=r.status?r.status:null)}k.inherits(oe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.status}}});const Sv=oe.prototype,_v={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{_v[e]={value:e}});Object.defineProperties(oe,_v);Object.defineProperty(Sv,"isAxiosError",{value:!0});oe.from=(e,t,n,s,r,i)=>{const o=Object.create(Sv);return k.toFlatObject(e,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),oe.call(o,e.message,t,n,s,r),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const ik=null;function Gl(e){return k.isPlainObject(e)||k.isArray(e)}function Ev(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function bh(e,t,n){return e?e.concat(t).map(function(r,i){return r=Ev(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function ok(e){return k.isArray(e)&&!e.some(Gl)}const ak=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function ha(e,t,n){if(!k.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,v){return!k.isUndefined(v[p])});const s=n.metaTokens,r=n.visitor||u,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(r))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(k.isDate(g))return g.toISOString();if(!l&&k.isBlob(g))throw new oe("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(g)||k.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,p,v){let x=g;if(g&&!v&&typeof g=="object"){if(k.endsWith(p,"{}"))p=s?p:p.slice(0,-2),g=JSON.stringify(g);else if(k.isArray(g)&&ok(g)||(k.isFileList(g)||k.endsWith(p,"[]"))&&(x=k.toArray(g)))return p=Ev(p),x.forEach(function(w,_){!(k.isUndefined(w)||w===null)&&t.append(o===!0?bh([p],_,i):o===null?p:p+"[]",c(w))}),!1}return Gl(g)?!0:(t.append(bh(v,p,i),c(g)),!1)}const d=[],h=Object.assign(ak,{defaultVisitor:u,convertValue:c,isVisitable:Gl});function y(g,p){if(!k.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(g),k.forEach(g,function(x,b){(!(k.isUndefined(x)||x===null)&&r.call(t,x,k.isString(b)?b.trim():b,p,h))===!0&&y(x,p?p.concat(b):[b])}),d.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return y(e),t}function wh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function ku(e,t){this._pairs=[],e&&ha(e,this,t)}const Cv=ku.prototype;Cv.append=function(t,n){this._pairs.push([t,n])};Cv.toString=function(t){const n=t?function(s){return t.call(this,s,wh)}:wh;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function lk(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Tv(e,t,n){if(!t)return e;const s=n&&n.encode||lk;k.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let i;if(r?i=r(t,n):i=k.isURLSearchParams(t)?t.toString():new ku(t,n).toString(s),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Sh{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){k.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Rv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ck=typeof URLSearchParams<"u"?URLSearchParams:ku,uk=typeof FormData<"u"?FormData:null,dk=typeof Blob<"u"?Blob:null,fk={isBrowser:!0,classes:{URLSearchParams:ck,FormData:uk,Blob:dk},protocols:["http","https","file","blob","url","data"]},ju=typeof window<"u"&&typeof document<"u",Xl=typeof navigator=="object"&&navigator||void 0,hk=ju&&(!Xl||["ReactNative","NativeScript","NS"].indexOf(Xl.product)<0),pk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",mk=ju&&window.location.href||"http://localhost",gk=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ju,hasStandardBrowserEnv:hk,hasStandardBrowserWebWorkerEnv:pk,navigator:Xl,origin:mk},Symbol.toStringTag,{value:"Module"})),et={...gk,...fk};function yk(e,t){return ha(e,new et.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,i){return et.isNode&&k.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function vk(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function xk(e){const t={},n=Object.keys(e);let s;const r=n.length;let i;for(s=0;s<r;s++)i=n[s],t[i]=e[i];return t}function Av(e){function t(n,s,r,i){let o=n[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),l=i>=n.length;return o=!o&&k.isArray(r)?r.length:o,l?(k.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!k.isObject(r[o]))&&(r[o]=[]),t(n,s,r[o],i)&&k.isArray(r[o])&&(r[o]=xk(r[o])),!a)}if(k.isFormData(e)&&k.isFunction(e.entries)){const n={};return k.forEachEntry(e,(s,r)=>{t(vk(s),r,n,0)}),n}return null}function bk(e,t,n){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Fi={transitional:Rv,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=k.isObject(t);if(i&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return r?JSON.stringify(Av(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t)||k.isReadableStream(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return yk(t,this.formSerializer).toString();if((a=k.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ha(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),bk(t)):t}],transformResponse:[function(t){const n=this.transitional||Fi.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(k.isResponse(t)||k.isReadableStream(t))return t;if(t&&k.isString(t)&&(s&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?oe.from(a,oe.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:et.classes.FormData,Blob:et.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{Fi.headers[e]={}});const wk=k.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Sk=e=>{const t={};let n,s,r;return e&&e.split(`
`).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),s=o.substring(r+1).trim(),!(!n||t[n]&&wk[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},_h=Symbol("internals");function Mr(e){return e&&String(e).trim().toLowerCase()}function ho(e){return e===!1||e==null?e:k.isArray(e)?e.map(ho):String(e)}function _k(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const Ek=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ya(e,t,n,s,r){if(k.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!k.isString(t)){if(k.isString(s))return t.indexOf(s)!==-1;if(k.isRegExp(s))return s.test(t)}}function Ck(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Tk(e,t){const n=k.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,i,o){return this[s].call(this,t,r,i,o)},configurable:!0})})}let mt=class{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function i(a,l,c){const u=Mr(l);if(!u)throw new Error("header name must be a non-empty string");const d=k.findKey(r,u);(!d||r[d]===void 0||c===!0||c===void 0&&r[d]!==!1)&&(r[d||l]=ho(a))}const o=(a,l)=>k.forEach(a,(c,u)=>i(c,u,l));if(k.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(k.isString(t)&&(t=t.trim())&&!Ek(t))o(Sk(t),n);else if(k.isHeaders(t))for(const[a,l]of t.entries())i(l,a,s);else t!=null&&i(n,t,s);return this}get(t,n){if(t=Mr(t),t){const s=k.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return _k(r);if(k.isFunction(n))return n.call(this,r,s);if(k.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Mr(t),t){const s=k.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Ya(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function i(o){if(o=Mr(o),o){const a=k.findKey(s,o);a&&(!n||Ya(s,s[a],a,n))&&(delete s[a],r=!0)}}return k.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const i=n[s];(!t||Ya(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,s={};return k.forEach(this,(r,i)=>{const o=k.findKey(s,i);if(o){n[o]=ho(r),delete n[i];return}const a=t?Ck(i):String(i).trim();a!==i&&delete n[i],n[a]=ho(r),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return k.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&k.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[_h]=this[_h]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=Mr(o);s[a]||(Tk(r,o),s[a]=!0)}return k.isArray(t)?t.forEach(i):i(t),this}};mt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);k.reduceDescriptors(mt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});k.freezeMethods(mt);function Qa(e,t){const n=this||Fi,s=t||n,r=mt.from(s.headers);let i=s.data;return k.forEach(e,function(a){i=a.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function Nv(e){return!!(e&&e.__CANCEL__)}function Cr(e,t,n){oe.call(this,e??"canceled",oe.ERR_CANCELED,t,n),this.name="CanceledError"}k.inherits(Cr,oe,{__CANCEL__:!0});function Pv(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new oe("Request failed with status code "+n.status,[oe.ERR_BAD_REQUEST,oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Rk(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ak(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=s[i];o||(o=c),n[r]=l,s[r]=c;let d=i,h=0;for(;d!==r;)h+=n[d++],d=d%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),c-o<t)return;const y=u&&c-u;return y?Math.round(h*1e3/y):void 0}}function Nk(e,t){let n=0,s=1e3/t,r,i;const o=(c,u=Date.now())=>{n=u,r=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=s?o(c,u):(r=c,i||(i=setTimeout(()=>{i=null,o(r)},s-d)))},()=>r&&o(r)]}const Bo=(e,t,n=3)=>{let s=0;const r=Ak(50,250);return Nk(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,l=o-s,c=r(l),u=o<=a;s=o;const d={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-o)/c:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},Eh=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},Ch=e=>(...t)=>k.asap(()=>e(...t)),Pk=et.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,et.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(et.origin),et.navigator&&/(msie|trident)/i.test(et.navigator.userAgent)):()=>!0,kk=et.hasStandardBrowserEnv?{write(e,t,n,s,r,i){const o=[e+"="+encodeURIComponent(t)];k.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),k.isString(s)&&o.push("path="+s),k.isString(r)&&o.push("domain="+r),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function jk(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ok(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function kv(e,t){return e&&!jk(t)?Ok(e,t):t}const Th=e=>e instanceof mt?{...e}:e;function Ns(e,t){t=t||{};const n={};function s(c,u,d,h){return k.isPlainObject(c)&&k.isPlainObject(u)?k.merge.call({caseless:h},c,u):k.isPlainObject(u)?k.merge({},u):k.isArray(u)?u.slice():u}function r(c,u,d,h){if(k.isUndefined(u)){if(!k.isUndefined(c))return s(void 0,c,d,h)}else return s(c,u,d,h)}function i(c,u){if(!k.isUndefined(u))return s(void 0,u)}function o(c,u){if(k.isUndefined(u)){if(!k.isUndefined(c))return s(void 0,c)}else return s(void 0,u)}function a(c,u,d){if(d in t)return s(c,u);if(d in e)return s(void 0,c)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(c,u,d)=>r(Th(c),Th(u),d,!0)};return k.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||r,h=d(e[u],t[u],u);k.isUndefined(h)&&d!==a||(n[u]=h)}),n}const jv=e=>{const t=Ns({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:i,headers:o,auth:a}=t;t.headers=o=mt.from(o),t.url=Tv(kv(t.baseURL,t.url),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(k.isFormData(n)){if(et.hasStandardBrowserEnv||et.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...u].join("; "))}}if(et.hasStandardBrowserEnv&&(s&&k.isFunction(s)&&(s=s(t)),s||s!==!1&&Pk(t.url))){const c=r&&i&&kk.read(i);c&&o.set(r,c)}return t},Mk=typeof XMLHttpRequest<"u",Dk=Mk&&function(e){return new Promise(function(n,s){const r=jv(e);let i=r.data;const o=mt.from(r.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=r,u,d,h,y,g;function p(){y&&y(),g&&g(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(r.method.toUpperCase(),r.url,!0),v.timeout=r.timeout;function x(){if(!v)return;const w=mt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),S={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:w,config:e,request:v};Pv(function(R){n(R),p()},function(R){s(R),p()},S),v=null}"onloadend"in v?v.onloadend=x:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(x)},v.onabort=function(){v&&(s(new oe("Request aborted",oe.ECONNABORTED,e,v)),v=null)},v.onerror=function(){s(new oe("Network Error",oe.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let _=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const S=r.transitional||Rv;r.timeoutErrorMessage&&(_=r.timeoutErrorMessage),s(new oe(_,S.clarifyTimeoutError?oe.ETIMEDOUT:oe.ECONNABORTED,e,v)),v=null},i===void 0&&o.setContentType(null),"setRequestHeader"in v&&k.forEach(o.toJSON(),function(_,S){v.setRequestHeader(S,_)}),k.isUndefined(r.withCredentials)||(v.withCredentials=!!r.withCredentials),a&&a!=="json"&&(v.responseType=r.responseType),c&&([h,g]=Bo(c,!0),v.addEventListener("progress",h)),l&&v.upload&&([d,y]=Bo(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",y)),(r.cancelToken||r.signal)&&(u=w=>{v&&(s(!w||w.type?new Cr(null,e,v):w),v.abort(),v=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const b=Rk(r.url);if(b&&et.protocols.indexOf(b)===-1){s(new oe("Unsupported protocol "+b+":",oe.ERR_BAD_REQUEST,e));return}v.send(i||null)})},Lk=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const i=function(c){if(!r){r=!0,a();const u=c instanceof Error?c:this.reason;s.abort(u instanceof oe?u:new Cr(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,i(new oe(`timeout ${t} of ms exceeded`,oe.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=s;return l.unsubscribe=()=>k.asap(a),l}},Ik=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,r;for(;s<n;)r=s+t,yield e.slice(s,r),s=r},Fk=async function*(e,t){for await(const n of Vk(e))yield*Ik(n,t)},Vk=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},Rh=(e,t,n,s)=>{const r=Fk(e,t);let i=0,o,a=l=>{o||(o=!0,s&&s(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await r.next();if(c){a(),l.close();return}let d=u.byteLength;if(n){let h=i+=d;n(h)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),r.return()}},{highWaterMark:2})},pa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ov=pa&&typeof ReadableStream=="function",Bk=pa&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Mv=(e,...t)=>{try{return!!e(...t)}catch{return!1}},$k=Ov&&Mv(()=>{let e=!1;const t=new Request(et.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ah=64*1024,Yl=Ov&&Mv(()=>k.isReadableStream(new Response("").body)),$o={stream:Yl&&(e=>e.body)};pa&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!$o[t]&&($o[t]=k.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new oe(`Response type '${t}' is not supported`,oe.ERR_NOT_SUPPORT,s)})})})(new Response);const zk=async e=>{if(e==null)return 0;if(k.isBlob(e))return e.size;if(k.isSpecCompliantForm(e))return(await new Request(et.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(k.isArrayBufferView(e)||k.isArrayBuffer(e))return e.byteLength;if(k.isURLSearchParams(e)&&(e=e+""),k.isString(e))return(await Bk(e)).byteLength},Uk=async(e,t)=>{const n=k.toFiniteNumber(e.getContentLength());return n??zk(t)},Wk=pa&&(async e=>{let{url:t,method:n,data:s,signal:r,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:h}=jv(e);c=c?(c+"").toLowerCase():"text";let y=Lk([r,i&&i.toAbortSignal()],o),g;const p=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let v;try{if(l&&$k&&n!=="get"&&n!=="head"&&(v=await Uk(u,s))!==0){let S=new Request(t,{method:"POST",body:s,duplex:"half"}),T;if(k.isFormData(s)&&(T=S.headers.get("content-type"))&&u.setContentType(T),S.body){const[R,A]=Eh(v,Bo(Ch(l)));s=Rh(S.body,Ah,R,A)}}k.isString(d)||(d=d?"include":"omit");const x="credentials"in Request.prototype;g=new Request(t,{...h,signal:y,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:s,duplex:"half",credentials:x?d:void 0});let b=await fetch(g);const w=Yl&&(c==="stream"||c==="response");if(Yl&&(a||w&&p)){const S={};["status","statusText","headers"].forEach(P=>{S[P]=b[P]});const T=k.toFiniteNumber(b.headers.get("content-length")),[R,A]=a&&Eh(T,Bo(Ch(a),!0))||[];b=new Response(Rh(b.body,Ah,R,()=>{A&&A(),p&&p()}),S)}c=c||"text";let _=await $o[k.findKey($o,c)||"text"](b,e);return!w&&p&&p(),await new Promise((S,T)=>{Pv(S,T,{data:_,headers:mt.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:g})})}catch(x){throw p&&p(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new oe("Network Error",oe.ERR_NETWORK,e,g),{cause:x.cause||x}):oe.from(x,x&&x.code,e,g)}}),Ql={http:ik,xhr:Dk,fetch:Wk};k.forEach(Ql,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Nh=e=>`- ${e}`,Hk=e=>k.isFunction(e)||e===null||e===!1,Dv={getAdapter:e=>{e=k.isArray(e)?e:[e];const{length:t}=e;let n,s;const r={};for(let i=0;i<t;i++){n=e[i];let o;if(s=n,!Hk(n)&&(s=Ql[(o=String(n)).toLowerCase()],s===void 0))throw new oe(`Unknown adapter '${o}'`);if(s)break;r[o||"#"+i]=s}if(!s){const i=Object.entries(r).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since :
`+i.map(Nh).join(`
`):" "+Nh(i[0]):"as no adapter specified";throw new oe("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return s},adapters:Ql};function Ja(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cr(null,e)}function Ph(e){return Ja(e),e.headers=mt.from(e.headers),e.data=Qa.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Dv.getAdapter(e.adapter||Fi.adapter)(e).then(function(s){return Ja(e),s.data=Qa.call(e,e.transformResponse,s),s.headers=mt.from(s.headers),s},function(s){return Nv(s)||(Ja(e),s&&s.response&&(s.response.data=Qa.call(e,e.transformResponse,s.response),s.response.headers=mt.from(s.response.headers))),Promise.reject(s)})}const Lv="1.7.9",ma={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ma[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const kh={};ma.transitional=function(t,n,s){function r(i,o){return"[Axios v"+Lv+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,a)=>{if(t===!1)throw new oe(r(o," has been removed"+(n?" in "+n:"")),oe.ERR_DEPRECATED);return n&&!kh[o]&&(kh[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}};ma.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function qk(e,t,n){if(typeof e!="object")throw new oe("options must be an object",oe.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const i=s[r],o=t[i];if(o){const a=e[i],l=a===void 0||o(a,i,e);if(l!==!0)throw new oe("option "+i+" must be "+l,oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new oe("Unknown option "+i,oe.ERR_BAD_OPTION)}}const po={assertOptions:qk,validators:ma},Gt=po.validators;let Ss=class{constructor(t){this.defaults=t,this.interceptors={request:new Sh,response:new Sh}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=`
`+i):s.stack=i}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ns(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&po.assertOptions(s,{silentJSONParsing:Gt.transitional(Gt.boolean),forcedJSONParsing:Gt.transitional(Gt.boolean),clarifyTimeoutError:Gt.transitional(Gt.boolean)},!1),r!=null&&(k.isFunction(r)?n.paramsSerializer={serialize:r}:po.assertOptions(r,{encode:Gt.function,serialize:Gt.function},!0)),po.assertOptions(n,{baseUrl:Gt.spelling("baseURL"),withXsrfToken:Gt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&k.merge(i.common,i[n.method]);i&&k.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=mt.concat(o,i);const a=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let u,d=0,h;if(!l){const g=[Ph.bind(this),void 0];for(g.unshift.apply(g,a),g.push.apply(g,c),h=g.length,u=Promise.resolve(n);d<h;)u=u.then(g[d++],g[d++]);return u}h=a.length;let y=n;for(d=0;d<h;){const g=a[d++],p=a[d++];try{y=g(y)}catch(v){p.call(this,v);break}}try{u=Ph.call(this,y)}catch(g){return Promise.reject(g)}for(d=0,h=c.length;d<h;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Ns(this.defaults,t);const n=kv(t.baseURL,t.url);return Tv(n,t.params,t.paramsSerializer)}};k.forEach(["delete","get","head","options"],function(t){Ss.prototype[t]=function(n,s){return this.request(Ns(s||{},{method:t,url:n,data:(s||{}).data}))}});k.forEach(["post","put","patch"],function(t){function n(s){return function(i,o,a){return this.request(Ns(a||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Ss.prototype[t]=n(),Ss.prototype[t+"Form"]=n(!0)});let Zk=class Iv{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const s=this;this.promise.then(r=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(a=>{s.subscribe(a),i=a}).then(r);return o.cancel=function(){s.unsubscribe(i)},o},t(function(i,o,a){s.reason||(s.reason=new Cr(i,o,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Iv(function(r){t=r}),cancel:t}}};function Kk(e){return function(n){return e.apply(null,n)}}function Gk(e){return k.isObject(e)&&e.isAxiosError===!0}const Jl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Jl).forEach(([e,t])=>{Jl[t]=e});function Fv(e){const t=new Ss(e),n=pv(Ss.prototype.request,t);return k.extend(n,Ss.prototype,t,{allOwnKeys:!0}),k.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Fv(Ns(e,r))},n}const Fe=Fv(Fi);Fe.Axios=Ss;Fe.CanceledError=Cr;Fe.CancelToken=Zk;Fe.isCancel=Nv;Fe.VERSION=Lv;Fe.toFormData=ha;Fe.AxiosError=oe;Fe.Cancel=Fe.CanceledError;Fe.all=function(t){return Promise.all(t)};Fe.spread=Kk;Fe.isAxiosError=Gk;Fe.mergeConfig=Ns;Fe.AxiosHeaders=mt;Fe.formToJSON=e=>Av(k.isHTMLForm(e)?new FormData(e):e);Fe.getAdapter=Dv.getAdapter;Fe.HttpStatusCode=Jl;Fe.default=Fe;const{Axios:WO,AxiosError:HO,CanceledError:qO,isCancel:ZO,CancelToken:KO,VERSION:GO,all:XO,Cancel:YO,isAxiosError:QO,spread:JO,toFormData:eM,AxiosHeaders:tM,HttpStatusCode:nM,formToJSON:sM,getAdapter:rM,mergeConfig:iM}=Fe,rt=Fe.create({baseURL:"https://turkmentextile.turkmenexpo.com/app/api/v1/"}),oM=async e=>(await rt.post("book_stand_form",e)).status===201,aM=async e=>(await rt.post("become_sponsor_form",e)).status===201,lM=async e=>(await rt.post("contact_form",e)).status===201,Xk=async e=>(await rt.post("subscribe_news_form",e)).status===201,Yk=async(e,t)=>rt.get(`pages/${t}`,{headers:{"Accept-Language":e}}),Qk=async e=>rt.get("stats",{headers:{"Accept-Language":e}}),Jk=async e=>rt.get("contact_data",{headers:{"Accept-Language":e}}),e1=async e=>rt.get("industries",{headers:{"Accept-Language":e}}),t1=async e=>rt.get("exhibition_time",{headers:{"Accept-Language":e}}),n1=async e=>rt.get("news?per_page=100",{headers:{"Accept-Language":e}}),cM=async(e,t)=>rt.get(`news/${e}`,{headers:{"Accept-Language":t}}),uM=async e=>rt("participants",{headers:{"Accept-Language":e}}),s1=async e=>rt("photos/category/"+e),r1=async e=>rt("videos/category/"+e),i1=async e=>rt("sponsors_and_partners",{headers:{"Accept-Language":e}}),dM=async(e,t)=>rt("designers/category/"+t,{headers:{"Accept-Language":e}}),o1=yh.object({email:yh.string().email()}),Vv=({modal:e=!1})=>{var i,o;const[t,n]=m.useState(!1),s=bR({resolver:dN(o1),defaultValues:{email:""}});async function r(a){try{const l=await Xk(a);s.reset(),n(l)}catch(l){console.error("POST subscribe",l)}}return f.jsx("form",{onSubmit:s.handleSubmit(r),className:V("py-8",e?"max-w-[392px] mx-auto":"bg-surface_container"),children:f.jsxs(Ge,{className:V("flex gap-8 justify-between",e?"flex-col w-full":"lg:flex-row flex-col lg:items-center"),children:[f.jsx("h2",{className:"h2 !text-left",children:Ga("Подпишитесь на новости:","Subscribe to the news:","Täzeliklere ýazylyşyň:")}),f.jsxs("div",{className:"relative",children:[f.jsx("input",{...s.register("email"),placeholder:"Email",className:V("input",{"w-full":e,"xl:w-[392px] lg:w-[320px] w-full":!e})}),f.jsx("span",{className:"text-error absolute text-red-600 -bottom-6 text-sm left-0",children:(o=(i=s.formState.errors)==null?void 0:i.email)==null?void 0:o.message})]}),f.jsx(nt,{loading:s.formState.isSubmitting,disabled:t,className:V({"xl:w-[288px] lg:w-[220px] w-full":!e,"w-full":e}),children:t?Ga("Отправлено","Submitted","Ugradyldy"):Ga("Подписаться","Subscribe","Ýazylmak")})]})})},a1=({className:e,title:t})=>f.jsxs(ev,{children:[f.jsx(tv,{className:V("h-14 px-3 flex gap-3 items-center hover:bg-slate-300/50 transition-all",e),children:t}),f.jsx(Au,{children:f.jsx(Vv,{className:"",modal:!0})})]}),zo=vy()(e=>({sheet:!1,popover:!1,modal:!1,setModal:t=>e({modal:t}),setSheet:t=>e({sheet:t}),setPopover:t=>e({popover:t})}));var l1="1.3.17";function Bv(e,t,n){return Math.max(e,Math.min(t,n))}function c1(e,t,n){return(1-n)*e+n*t}function u1(e,t,n,s){return c1(e,t,1-Math.exp(-n*s))}function d1(e,t){return(e%t+t)%t}var f1=class{constructor(){Q(this,"isRunning",!1);Q(this,"value",0);Q(this,"from",0);Q(this,"to",0);Q(this,"currentTime",0);Q(this,"lerp");Q(this,"duration");Q(this,"easing");Q(this,"onUpdate")}advance(e){var n;if(!this.isRunning)return;let t=!1;if(this.duration&&this.easing){this.currentTime+=e;const s=Bv(0,this.currentTime/this.duration,1);t=s>=1;const r=t?1:this.easing(s);this.value=this.from+(this.to-this.from)*r}else this.lerp?(this.value=u1(this.value,this.to,this.lerp*60,e),Math.round(this.value)===this.to&&(this.value=this.to,t=!0)):(this.value=this.to,t=!0);t&&this.stop(),(n=this.onUpdate)==null||n.call(this,this.value,t)}stop(){this.isRunning=!1}fromTo(e,t,{lerp:n,duration:s,easing:r,onStart:i,onUpdate:o}){this.from=this.value=e,this.to=t,this.lerp=n,this.duration=s,this.easing=r,this.currentTime=0,this.isRunning=!0,i==null||i(),this.onUpdate=o}};function h1(e,t){let n;return function(...s){let r=this;clearTimeout(n),n=setTimeout(()=>{n=void 0,e.apply(r,s)},t)}}var p1=class{constructor(e,t,{autoResize:n=!0,debounce:s=250}={}){Q(this,"width",0);Q(this,"height",0);Q(this,"scrollHeight",0);Q(this,"scrollWidth",0);Q(this,"debouncedResize");Q(this,"wrapperResizeObserver");Q(this,"contentResizeObserver");Q(this,"resize",()=>{this.onWrapperResize(),this.onContentResize()});Q(this,"onWrapperResize",()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)});Q(this,"onContentResize",()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)});this.wrapper=e,this.content=t,n&&(this.debouncedResize=h1(this.resize,s),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){var e,t;(e=this.wrapperResizeObserver)==null||e.disconnect(),(t=this.contentResizeObserver)==null||t.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},$v=class{constructor(){Q(this,"events",{})}emit(e,...t){var s;let n=this.events[e]||[];for(let r=0,i=n.length;r<i;r++)(s=n[r])==null||s.call(n,...t)}on(e,t){var n;return(n=this.events[e])!=null&&n.push(t)||(this.events[e]=[t]),()=>{var s;this.events[e]=(s=this.events[e])==null?void 0:s.filter(r=>t!==r)}}off(e,t){var n;this.events[e]=(n=this.events[e])==null?void 0:n.filter(s=>t!==s)}destroy(){this.events={}}},jh=100/6,Pn={passive:!1},m1=class{constructor(e,t={wheelMultiplier:1,touchMultiplier:1}){Q(this,"touchStart",{x:0,y:0});Q(this,"lastDelta",{x:0,y:0});Q(this,"window",{width:0,height:0});Q(this,"emitter",new $v);Q(this,"onTouchStart",e=>{const{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:e})});Q(this,"onTouchMove",e=>{const{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e,s=-(t-this.touchStart.x)*this.options.touchMultiplier,r=-(n-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:s,y:r},this.emitter.emit("scroll",{deltaX:s,deltaY:r,event:e})});Q(this,"onTouchEnd",e=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})});Q(this,"onWheel",e=>{let{deltaX:t,deltaY:n,deltaMode:s}=e;const r=s===1?jh:s===2?this.window.width:1,i=s===1?jh:s===2?this.window.height:1;t*=r,n*=i,t*=this.options.wheelMultiplier,n*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:t,deltaY:n,event:e})});Q(this,"onWindowResize",()=>{this.window={width:window.innerWidth,height:window.innerHeight}});this.element=e,this.options=t,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,Pn),this.element.addEventListener("touchstart",this.onTouchStart,Pn),this.element.addEventListener("touchmove",this.onTouchMove,Pn),this.element.addEventListener("touchend",this.onTouchEnd,Pn)}on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,Pn),this.element.removeEventListener("touchstart",this.onTouchStart,Pn),this.element.removeEventListener("touchmove",this.onTouchMove,Pn),this.element.removeEventListener("touchend",this.onTouchEnd,Pn)}},Oh=e=>Math.min(1,1.001-Math.pow(2,-10*e)),g1=class{constructor({wrapper:e=window,content:t=document.documentElement,eventsTarget:n=e,smoothWheel:s=!0,syncTouch:r=!1,syncTouchLerp:i=.075,touchInertiaExponent:o=1.7,duration:a,easing:l,lerp:c=.1,infinite:u=!1,orientation:d="vertical",gestureOrientation:h=d==="horizontal"?"both":"vertical",touchMultiplier:y=1,wheelMultiplier:g=1,autoResize:p=!0,prevent:v,virtualScroll:x,overscroll:b=!0,autoRaf:w=!1,anchors:_=!1,autoToggle:S=!1,allowNestedScroll:T=!1,__experimental__naiveDimensions:R=!1,naiveDimensions:A=R,stopInertiaOnNavigate:P=!1}={}){Q(this,"_isScrolling",!1);Q(this,"_isStopped",!1);Q(this,"_isLocked",!1);Q(this,"_preventNextNativeScrollEvent",!1);Q(this,"_resetVelocityTimeout",null);Q(this,"_rafId",null);Q(this,"isTouching");Q(this,"time",0);Q(this,"userData",{});Q(this,"lastVelocity",0);Q(this,"velocity",0);Q(this,"direction",0);Q(this,"options");Q(this,"targetScroll");Q(this,"animatedScroll");Q(this,"animate",new f1);Q(this,"emitter",new $v);Q(this,"dimensions");Q(this,"virtualScroll");Q(this,"onScrollEnd",e=>{e instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&e.stopPropagation()});Q(this,"dispatchScrollendEvent",()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))});Q(this,"onTransitionEnd",e=>{e.propertyName.includes("overflow")&&this.checkOverflow()});Q(this,"onClick",e=>{const n=e.composedPath().filter(s=>s instanceof HTMLAnchorElement&&s.getAttribute("href"));if(this.options.anchors){const s=n.find(r=>{var i;return(i=r.getAttribute("href"))==null?void 0:i.includes("#")});if(s){const r=s.getAttribute("href");if(r){const i=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0,o=`#${r.split("#")[1]}`;this.scrollTo(o,i)}}}this.options.stopInertiaOnNavigate&&n.find(r=>r.host===window.location.host)&&this.reset()});Q(this,"onPointerDown",e=>{e.button===1&&this.reset()});Q(this,"onVirtualScroll",e=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(e)===!1)return;const{deltaX:t,deltaY:n,event:s}=e;if(this.emitter.emit("virtual-scroll",{deltaX:t,deltaY:n,event:s}),s.ctrlKey||s.lenisStopPropagation)return;const r=s.type.includes("touch"),i=s.type.includes("wheel");this.isTouching=s.type==="touchstart"||s.type==="touchmove";const o=t===0&&n===0;if(this.options.syncTouch&&r&&s.type==="touchstart"&&o&&!this.isStopped&&!this.isLocked){this.reset();return}const l=this.options.gestureOrientation==="vertical"&&n===0||this.options.gestureOrientation==="horizontal"&&t===0;if(o||l)return;let c=s.composedPath();c=c.slice(0,c.indexOf(this.rootElement));const u=this.options.prevent;if(c.find(v=>{var x,b,w;return v instanceof HTMLElement&&(typeof u=="function"&&(u==null?void 0:u(v))||((x=v.hasAttribute)==null?void 0:x.call(v,"data-lenis-prevent"))||r&&((b=v.hasAttribute)==null?void 0:b.call(v,"data-lenis-prevent-touch"))||i&&((w=v.hasAttribute)==null?void 0:w.call(v,"data-lenis-prevent-wheel"))||this.options.allowNestedScroll&&this.checkNestedScroll(v,{deltaX:t,deltaY:n}))}))return;if(this.isStopped||this.isLocked){s.cancelable&&s.preventDefault();return}if(!(this.options.syncTouch&&r||this.options.smoothWheel&&i)){this.isScrolling="native",this.animate.stop(),s.lenisStopPropagation=!0;return}let h=n;this.options.gestureOrientation==="both"?h=Math.abs(n)>Math.abs(t)?n:t:this.options.gestureOrientation==="horizontal"&&(h=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&n>0||this.animatedScroll===this.limit&&n<0))&&(s.lenisStopPropagation=!0),s.cancelable&&s.preventDefault();const y=r&&this.options.syncTouch,p=r&&s.type==="touchend";p&&(h=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent)),this.scrollTo(this.targetScroll+h,{programmatic:!1,...y?{lerp:p?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})});Q(this,"onNativeScroll",()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){const e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-e,this.direction=Math.sign(this.animatedScroll-e),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}});Q(this,"raf",e=>{const t=e-(this.time||e);this.time=e,this.animate.advance(t*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))});window.lenisVersion=l1,(!e||e===document.documentElement)&&(e=window),typeof a=="number"&&typeof l!="function"?l=Oh:typeof l=="function"&&typeof a!="number"&&(a=1),this.options={wrapper:e,content:t,eventsTarget:n,smoothWheel:s,syncTouch:r,syncTouchLerp:i,touchInertiaExponent:o,duration:a,easing:l,lerp:c,infinite:u,gestureOrientation:h,orientation:d,touchMultiplier:y,wheelMultiplier:g,autoResize:p,prevent:v,virtualScroll:x,overscroll:b,autoRaf:w,anchors:_,autoToggle:S,allowNestedScroll:T,naiveDimensions:A,stopInertiaOnNavigate:P},this.dimensions=new p1(e,t,{autoResize:p}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new m1(n,{touchMultiplier:y,wheelMultiplier:g}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0})),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}get overflow(){const e=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[e]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}setScroll(e){this.isHorizontal?this.options.wrapper.scrollTo({left:e,behavior:"instant"}):this.options.wrapper.scrollTo({top:e,behavior:"instant"})}resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}scrollTo(e,{offset:t=0,immediate:n=!1,lock:s=!1,programmatic:r=!0,lerp:i=r?this.options.lerp:void 0,duration:o=r?this.options.duration:void 0,easing:a=r?this.options.easing:void 0,onStart:l,onComplete:c,force:u=!1,userData:d}={}){if(!((this.isStopped||this.isLocked)&&!u)){if(typeof e=="string"&&["top","left","start","#"].includes(e))e=0;else if(typeof e=="string"&&["bottom","right","end"].includes(e))e=this.limit;else{let h;if(typeof e=="string"?(h=document.querySelector(e),h||(e==="#top"?e=0:console.warn("Lenis: Target not found",e))):e instanceof HTMLElement&&(e!=null&&e.nodeType)&&(h=e),h){if(this.options.wrapper!==window){const g=this.rootElement.getBoundingClientRect();t-=this.isHorizontal?g.left:g.top}const y=h.getBoundingClientRect();e=(this.isHorizontal?y.left:y.top)+this.animatedScroll}}if(typeof e=="number"){if(e+=t,e=Math.round(e),this.options.infinite){if(r){this.targetScroll=this.animatedScroll=this.scroll;const h=e-this.animatedScroll;h>this.limit/2?e=e-this.limit:h<-this.limit/2&&(e=e+this.limit)}}else e=Bv(0,e,this.limit);if(e===this.targetScroll){l==null||l(this),c==null||c(this);return}if(this.userData=d??{},n){this.animatedScroll=this.targetScroll=e,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),c==null||c(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}r||(this.targetScroll=e),typeof o=="number"&&typeof a!="function"?a=Oh:typeof a=="function"&&typeof o!="number"&&(o=1),this.animate.fromTo(this.animatedScroll,e,{duration:o,easing:a,lerp:i,onStart:()=>{s&&(this.isLocked=!0),this.isScrolling="smooth",l==null||l(this)},onUpdate:(h,y)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=h-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=h,this.setScroll(this.scroll),r&&(this.targetScroll=h),y||this.emit(),y&&(this.reset(),this.emit(),c==null||c(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(e,{deltaX:t,deltaY:n}){const s=Date.now(),r=e._lenis??(e._lenis={});let i,o,a,l,c,u,d,h;const y=this.options.gestureOrientation;if(s-(r.time??0)>2e3){r.time=Date.now();const S=window.getComputedStyle(e);r.computedStyle=S;const T=S.overflowX,R=S.overflowY;if(i=["auto","overlay","scroll"].includes(T),o=["auto","overlay","scroll"].includes(R),r.hasOverflowX=i,r.hasOverflowY=o,!i&&!o||y==="vertical"&&!o||y==="horizontal"&&!i)return!1;c=e.scrollWidth,u=e.scrollHeight,d=e.clientWidth,h=e.clientHeight,a=c>d,l=u>h,r.isScrollableX=a,r.isScrollableY=l,r.scrollWidth=c,r.scrollHeight=u,r.clientWidth=d,r.clientHeight=h}else a=r.isScrollableX,l=r.isScrollableY,i=r.hasOverflowX,o=r.hasOverflowY,c=r.scrollWidth,u=r.scrollHeight,d=r.clientWidth,h=r.clientHeight;if(!i&&!o||!a&&!l||y==="vertical"&&(!o||!l)||y==="horizontal"&&(!i||!a))return!1;let g;if(y==="horizontal")g="x";else if(y==="vertical")g="y";else{const S=t!==0,T=n!==0;S&&i&&a&&(g="x"),T&&o&&l&&(g="y")}if(!g)return!1;let p,v,x,b,w;if(g==="x")p=e.scrollLeft,v=c-d,x=t,b=i,w=a;else if(g==="y")p=e.scrollTop,v=u-h,x=n,b=o,w=l;else return!1;return(x>0?p<v:p>0)&&b&&w}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){const e=this.options.wrapper;return this.isHorizontal?e.scrollX??e.scrollLeft:e.scrollY??e.scrollTop}get scroll(){return this.options.infinite?d1(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(e){this._isStopped!==e&&(this._isStopped=e,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let e="lenis";return this.options.autoToggle&&(e+=" lenis-autoToggle"),this.isStopped&&(e+=" lenis-stopped"),this.isLocked&&(e+=" lenis-locked"),this.isScrolling&&(e+=" lenis-scrolling"),this.isScrolling==="smooth"&&(e+=" lenis-smooth"),e}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}},y1=class{constructor(e){Q(this,"listeners",[]);this.state=e}set(e){this.state=e;for(let t of this.listeners)t(this.state)}subscribe(e){return this.listeners=[...this.listeners,e],()=>{this.listeners=this.listeners.filter(t=>t!==e)}}get(){return this.state}};function v1(e){const[t,n]=m.useState(e.get());return m.useEffect(()=>e.subscribe(s=>n(s)),[e]),t}var zv=m.createContext(null),ec=new y1(null),fM=m.forwardRef(({children:e,root:t=!1,options:n={},autoRaf:s=!0,...r},i)=>{const o=m.useRef(null),a=m.useRef(null),[l,c]=m.useState(void 0);m.useImperativeHandle(i,()=>({wrapper:o.current,content:a.current,lenis:l}),[l]),m.useEffect(()=>{const y=new g1({...n,...o.current&&a.current&&{wrapper:o.current,content:a.current},autoRaf:(n==null?void 0:n.autoRaf)??s});return c(y),()=>{y.destroy(),c(void 0)}},[t,JSON.stringify({...n,wrapper:null,content:null})]);const u=m.useRef([]),d=m.useCallback((y,g)=>{u.current.push({callback:y,priority:g}),u.current.sort((p,v)=>p.priority-v.priority)},[]),h=m.useCallback(y=>{u.current=u.current.filter(g=>g.callback!==y)},[]);return m.useEffect(()=>{if(t&&l)return ec.set({lenis:l,addCallback:d,removeCallback:h}),()=>ec.set(null)},[t,l,d,h]),m.useEffect(()=>{if(!l)return;const y=g=>{var p;for(let v=0;v<u.current.length;v++)(p=u.current[v])==null||p.callback(g)};return l.on("scroll",y),()=>{l.off("scroll",y)}},[l]),e?f.jsx(zv.Provider,{value:{lenis:l,addCallback:d,removeCallback:h},children:t&&t!=="asChild"?e:f.jsx("div",{ref:o,...r,children:f.jsx("div",{ref:a,children:e})})}):null}),x1={};function b1(e,t=[],n=0){const s=m.useContext(zv),r=v1(ec),i=s??r??x1,{lenis:o,addCallback:a,removeCallback:l}=i;return m.useEffect(()=>{},[o,a,l,n,...t]),o}const Uo=({title:e,dropDownContent:t,color:n,triggerClassName:s,children:r})=>{const[i,o]=m.useState(!1),a=zo(u=>u.setSheet),l=b1(),c=Ux();return f.jsxs(Qy,{open:i,onOpenChange:()=>o(!i),children:[f.jsxs(Jy,{className:V("flex items-center gap-2",s),children:[e,r,!r&&f.jsx(Uv,{color:n,className:V("transition-all",i&&"rotate-180")})]}),f.jsx(Ru,{className:"w-fit relative z-[200] px-0 bg-surface_container",children:t&&t.map((u,d)=>u.hover?f.jsx(mO,{setIsOpen:o,...u},d):u.link?f.jsxs(_e,{to:u.link??"",onClick:()=>{var g,p;o(!1),a(!1);const h=(g=u.link)==null?void 0:g.split("#")[1],y=((p=u.link)==null?void 0:p.split("#")[0])||"/";if(h&&c.pathname===y){const v=document.getElementById(h);v&&l&&l.scrollTo(v,{offset:-140,duration:.8})}},className:"h-14 px-3 flex gap-3 relative justify-between cursor-pointer items-center hover:bg-slate-300/50 transition-all",target:u.blank?"_blank":void 0,rel:u.blank?"noopener noreferrer":void 0,children:[u.text,u.blank&&f.jsx("img",{src:"/pdf.svg"})]},d):u.modal?f.jsx(a1,{title:u.text},u.text):f.jsx("div",{className:"relative",children:f.jsx("div",{className:"h-14 px-3 py-2 flex items-center cursor-pointer hover:bg-slate-300/50 transition-all",onClick:()=>{o(!1),a(!1)},children:u.text})},d))})]})},Uv=({color:e="white",w:t="20",h:n="20",className:s})=>f.jsx("div",{className:s,children:f.jsx("svg",{width:t,height:n,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.23021 8.01443C4.35919 7.70304 4.66305 7.5 5.00011 7.5H15.0001C15.3372 7.5 15.641 7.70304 15.77 8.01443C15.899 8.32583 15.8277 8.68426 15.5894 8.92259L10.5894 13.9226C10.2639 14.248 9.73629 14.248 9.41085 13.9226L4.41085 8.92259C4.17252 8.68426 4.10122 8.32583 4.23021 8.01443ZM7.01195 9.16667L10.0001 12.1548L12.9883 9.16667H7.01195Z",fill:e})})}),ts=({className:e})=>f.jsx(Ge,{className:V("w-full py-20 h-full flex items-center justify-between",e),children:f.jsx(tm,{className:"animate-spin mx-auto text-primary size-16"})});function w1(e){return Object.prototype.toString.call(e)==="[object Object]"}function Mh(e){return w1(e)||Array.isArray(e)}function S1(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ou(e,t){const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;const r=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return r!==i?!1:n.every(o=>{const a=e[o],l=t[o];return typeof a=="function"?`${a}`==`${l}`:!Mh(a)||!Mh(l)?a===l:Ou(a,l)})}function Dh(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function _1(e,t){if(e.length!==t.length)return!1;const n=Dh(e),s=Dh(t);return n.every((r,i)=>{const o=s[i];return Ou(r,o)})}function Mu(e){return typeof e=="number"}function tc(e){return typeof e=="string"}function ga(e){return typeof e=="boolean"}function Lh(e){return Object.prototype.toString.call(e)==="[object Object]"}function Pe(e){return Math.abs(e)}function Du(e){return Math.sign(e)}function Kr(e,t){return Pe(e-t)}function E1(e,t){if(e===0||t===0||Pe(e)<=Pe(t))return 0;const n=Kr(Pe(e),Pe(t));return Pe(n/e)}function C1(e){return Math.round(e*100)/100}function bi(e){return wi(e).map(Number)}function Bt(e){return e[Vi(e)]}function Vi(e){return Math.max(0,e.length-1)}function Lu(e,t){return t===Vi(e)}function Ih(e,t=0){return Array.from(Array(e),(n,s)=>t+s)}function wi(e){return Object.keys(e)}function Wv(e,t){return[e,t].reduce((n,s)=>(wi(s).forEach(r=>{const i=n[r],o=s[r],a=Lh(i)&&Lh(o);n[r]=a?Wv(i,o):o}),n),{})}function nc(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function T1(e,t){const n={start:s,center:r,end:i};function s(){return 0}function r(l){return i(l)/2}function i(l){return t-l}function o(l,c){return tc(e)?n[e](l):e(t,l,c)}return{measure:o}}function Si(){let e=[];function t(r,i,o,a={passive:!0}){let l;if("addEventListener"in r)r.addEventListener(i,o,a),l=()=>r.removeEventListener(i,o,a);else{const c=r;c.addListener(o),l=()=>c.removeListener(o)}return e.push(l),s}function n(){e=e.filter(r=>r())}const s={add:t,clear:n};return s}function R1(e,t,n,s){const r=Si(),i=1e3/60;let o=null,a=0,l=0;function c(){r.add(e,"visibilitychange",()=>{e.hidden&&g()})}function u(){y(),r.clear()}function d(v){if(!l)return;o||(o=v,n(),n());const x=v-o;for(o=v,a+=x;a>=i;)n(),a-=i;const b=a/i;s(b),l&&(l=t.requestAnimationFrame(d))}function h(){l||(l=t.requestAnimationFrame(d))}function y(){t.cancelAnimationFrame(l),o=null,a=0,l=0}function g(){o=null,a=0}return{init:c,destroy:u,start:h,stop:y,update:n,render:s}}function A1(e,t){const n=t==="rtl",s=e==="y",r=s?"y":"x",i=s?"x":"y",o=!s&&n?-1:1,a=u(),l=d();function c(g){const{height:p,width:v}=g;return s?p:v}function u(){return s?"top":n?"right":"left"}function d(){return s?"bottom":n?"left":"right"}function h(g){return g*o}return{scroll:r,cross:i,startEdge:a,endEdge:l,measureSize:c,direction:h}}function Ps(e=0,t=0){const n=Pe(e-t);function s(c){return c<e}function r(c){return c>t}function i(c){return s(c)||r(c)}function o(c){return i(c)?s(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:r,reachedMin:s,removeOffset:a}}function Hv(e,t,n){const{constrain:s}=Ps(0,e),r=e+1;let i=o(t);function o(h){return n?Pe((r+h)%r):s(h)}function a(){return i}function l(h){return i=o(h),d}function c(h){return u().set(a()+h)}function u(){return Hv(e,a(),n)}const d={get:a,set:l,add:c,clone:u};return d}function N1(e,t,n,s,r,i,o,a,l,c,u,d,h,y,g,p,v,x,b){const{cross:w,direction:_}=e,S=["INPUT","SELECT","TEXTAREA"],T={passive:!1},R=Si(),A=Si(),P=Ps(50,225).constrain(y.measure(20)),O={mouse:300,touch:400},L={mouse:500,touch:600},M=g?43:25;let z=!1,F=0,Y=0,J=!1,Z=!1,K=!1,ie=!1;function he(G){if(!b)return;function pe(Ue){(ga(b)||b(G,Ue))&&it(Ue)}const Ce=t;R.add(Ce,"dragstart",Ue=>Ue.preventDefault(),T).add(Ce,"touchmove",()=>{},T).add(Ce,"touchend",()=>{}).add(Ce,"touchstart",pe).add(Ce,"mousedown",pe).add(Ce,"touchcancel",xe).add(Ce,"contextmenu",xe).add(Ce,"click",Oe,!0)}function ve(){R.clear(),A.clear()}function $e(){const G=ie?n:t;A.add(G,"touchmove",de,T).add(G,"touchend",xe).add(G,"mousemove",de,T).add(G,"mouseup",xe)}function Xe(G){const pe=G.nodeName||"";return S.includes(pe)}function Ye(){return(g?L:O)[ie?"mouse":"touch"]}function Ot(G,pe){const Ce=d.add(Du(G)*-1),Ue=u.byDistance(G,!g).distance;return g||Pe(G)<P?Ue:v&&pe?Ue*.5:u.byIndex(Ce.get(),0).distance}function it(G){const pe=nc(G,s);ie=pe,K=g&&pe&&!G.buttons&&z,z=Kr(r.get(),o.get())>=2,!(pe&&G.button!==0)&&(Xe(G.target)||(J=!0,i.pointerDown(G),c.useFriction(0).useDuration(0),r.set(o),$e(),F=i.readPoint(G),Y=i.readPoint(G,w),h.emit("pointerDown")))}function de(G){if(!nc(G,s)&&G.touches.length>=2)return xe(G);const Ce=i.readPoint(G),Ue=i.readPoint(G,w),gt=Kr(Ce,F),Tt=Kr(Ue,Y);if(!Z&&!ie&&(!G.cancelable||(Z=gt>Tt,!Z)))return xe(G);const E=i.pointerMove(G);gt>p&&(K=!0),c.useFriction(.3).useDuration(.75),a.start(),r.add(_(E)),G.preventDefault()}function xe(G){const Ce=u.byDistance(0,!1).index!==d.get(),Ue=i.pointerUp(G)*Ye(),gt=Ot(_(Ue),Ce),Tt=E1(Ue,gt),E=M-10*Tt,N=x+Tt/50;Z=!1,J=!1,A.clear(),c.useDuration(E).useFriction(N),l.distance(gt,!g),ie=!1,h.emit("pointerUp")}function Oe(G){K&&(G.stopPropagation(),G.preventDefault(),K=!1)}function Ve(){return J}return{init:he,destroy:ve,pointerDown:Ve}}function P1(e,t){let s,r;function i(d){return d.timeStamp}function o(d,h){const g=`client${(h||e.scroll)==="x"?"X":"Y"}`;return(nc(d,t)?d:d.touches[0])[g]}function a(d){return s=d,r=d,o(d)}function l(d){const h=o(d)-o(r),y=i(d)-i(s)>170;return r=d,y&&(s=d),h}function c(d){if(!s||!r)return 0;const h=o(r)-o(s),y=i(d)-i(s),g=i(d)-i(r)>170,p=h/y;return y&&!g&&Pe(p)>.1?p:0}return{pointerDown:a,pointerMove:l,pointerUp:c,readPoint:o}}function k1(){function e(n){const{offsetTop:s,offsetLeft:r,offsetWidth:i,offsetHeight:o}=n;return{top:s,right:r+i,bottom:s+o,left:r,width:i,height:o}}return{measure:e}}function j1(e){function t(s){return e*(s/100)}return{measure:t}}function O1(e,t,n,s,r,i,o){const a=[e].concat(s);let l,c,u=[],d=!1;function h(v){return r.measureSize(o.measure(v))}function y(v){if(!i)return;c=h(e),u=s.map(h);function x(b){for(const w of b){if(d)return;const _=w.target===e,S=s.indexOf(w.target),T=_?c:u[S],R=h(_?e:s[S]);if(Pe(R-T)>=.5){v.reInit(),t.emit("resize");break}}}l=new ResizeObserver(b=>{(ga(i)||i(v,b))&&x(b)}),n.requestAnimationFrame(()=>{a.forEach(b=>l.observe(b))})}function g(){d=!0,l&&l.disconnect()}return{init:y,destroy:g}}function M1(e,t,n,s,r,i){let o=0,a=0,l=r,c=i,u=e.get(),d=0;function h(){const T=s.get()-e.get(),R=!l;let A=0;return R?(o=0,n.set(s),e.set(s),A=T):(n.set(e),o+=T/l,o*=c,u+=o,e.add(o),A=u-d),a=Du(A),d=u,S}function y(){const T=s.get()-t.get();return Pe(T)<.001}function g(){return l}function p(){return a}function v(){return o}function x(){return w(r)}function b(){return _(i)}function w(T){return l=T,S}function _(T){return c=T,S}const S={direction:p,duration:g,velocity:v,seek:h,settled:y,useBaseFriction:b,useBaseDuration:x,useFriction:_,useDuration:w};return S}function D1(e,t,n,s,r){const i=r.measure(10),o=r.measure(50),a=Ps(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(y){if(!c())return;const g=e.reachedMin(t.get())?"min":"max",p=Pe(e[g]-t.get()),v=n.get()-t.get(),x=a.constrain(p/o);n.subtract(v*x),!y&&Pe(v)<i&&(n.set(e.constrain(n.get())),s.useDuration(25).useBaseFriction())}function d(y){l=!y}return{shouldConstrain:c,constrain:u,toggleActive:d}}function L1(e,t,n,s,r){const i=Ps(-t+e,0),o=d(),a=u(),l=h();function c(g,p){return Kr(g,p)<=1}function u(){const g=o[0],p=Bt(o),v=o.lastIndexOf(g),x=o.indexOf(p)+1;return Ps(v,x)}function d(){return n.map((g,p)=>{const{min:v,max:x}=i,b=i.constrain(g),w=!p,_=Lu(n,p);return w?x:_||c(v,b)?v:c(x,b)?x:b}).map(g=>parseFloat(g.toFixed(3)))}function h(){if(t<=e+r)return[i.max];if(s==="keepSnaps")return o;const{min:g,max:p}=a;return o.slice(g,p)}return{snapsContained:l,scrollContainLimit:a}}function I1(e,t,n){const s=t[0],r=n?s-e:Bt(t);return{limit:Ps(r,s)}}function F1(e,t,n,s){const i=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:l}=Ps(i,o);function c(h){return h===1?l(n.get()):h===-1?a(n.get()):!1}function u(h){if(!c(h))return;const y=e*(h*-1);s.forEach(g=>g.add(y))}return{loop:u}}function V1(e){const{max:t,length:n}=e;function s(i){const o=i-t;return n?o/-n:0}return{get:s}}function B1(e,t,n,s,r){const{startEdge:i,endEdge:o}=e,{groupSlides:a}=r,l=d().map(t.measure),c=h(),u=y();function d(){return a(s).map(p=>Bt(p)[o]-p[0][i]).map(Pe)}function h(){return s.map(p=>n[i]-p[i]).map(p=>-Pe(p))}function y(){return a(c).map(p=>p[0]).map((p,v)=>p+l[v])}return{snaps:c,snapsAligned:u}}function $1(e,t,n,s,r,i){const{groupSlides:o}=r,{min:a,max:l}=s,c=u();function u(){const h=o(i),y=!e||t==="keepSnaps";return n.length===1?[i]:y?h:h.slice(a,l).map((g,p,v)=>{const x=!p,b=Lu(v,p);if(x){const w=Bt(v[0])+1;return Ih(w)}if(b){const w=Vi(i)-Bt(v)[0]+1;return Ih(w,Bt(v)[0])}return g})}return{slideRegistry:c}}function z1(e,t,n,s,r){const{reachedAny:i,removeOffset:o,constrain:a}=s;function l(g){return g.concat().sort((p,v)=>Pe(p)-Pe(v))[0]}function c(g){const p=e?o(g):a(g),v=t.map((b,w)=>({diff:u(b-p,0),index:w})).sort((b,w)=>Pe(b.diff)-Pe(w.diff)),{index:x}=v[0];return{index:x,distance:p}}function u(g,p){const v=[g,g+n,g-n];if(!e)return g;if(!p)return l(v);const x=v.filter(b=>Du(b)===p);return x.length?l(x):Bt(v)-n}function d(g,p){const v=t[g]-r.get(),x=u(v,p);return{index:g,distance:x}}function h(g,p){const v=r.get()+g,{index:x,distance:b}=c(v),w=!e&&i(v);if(!p||w)return{index:x,distance:g};const _=t[x]-b,S=g+u(_,0);return{index:x,distance:S}}return{byDistance:h,byIndex:d,shortcut:u}}function U1(e,t,n,s,r,i,o){function a(d){const h=d.distance,y=d.index!==t.get();i.add(h),h&&(s.duration()?e.start():(e.update(),e.render(1),e.update())),y&&(n.set(t.get()),t.set(d.index),o.emit("select"))}function l(d,h){const y=r.byDistance(d,h);a(y)}function c(d,h){const y=t.clone().set(d),g=r.byIndex(y.get(),h);a(g)}return{distance:l,index:c}}function W1(e,t,n,s,r,i,o,a){const l={passive:!0,capture:!0};let c=0;function u(y){if(!a)return;function g(p){if(new Date().getTime()-c>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(w=>w.includes(p));Mu(b)&&(r.useDuration(0),s.index(b,0),o.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((p,v)=>{i.add(p,"focus",x=>{(ga(a)||a(y,x))&&g(v)},l)})}function d(y){y.code==="Tab"&&(c=new Date().getTime())}return{init:u}}function Br(e){let t=e;function n(){return t}function s(l){t=o(l)}function r(l){t+=o(l)}function i(l){t-=o(l)}function o(l){return Mu(l)?l:l.get()}return{get:n,set:s,add:r,subtract:i}}function qv(e,t){const n=e.scroll==="x"?o:a,s=t.style;let r=null,i=!1;function o(h){return`translate3d(${h}px,0px,0px)`}function a(h){return`translate3d(0px,${h}px,0px)`}function l(h){if(i)return;const y=C1(e.direction(h));y!==r&&(s.transform=n(y),r=y)}function c(h){i=!h}function u(){i||(s.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:l,toggleActive:c}}function H1(e,t,n,s,r,i,o,a,l){const u=bi(r),d=bi(r).reverse(),h=x().concat(b());function y(R,A){return R.reduce((P,O)=>P-r[O],A)}function g(R,A){return R.reduce((P,O)=>y(P,A)>0?P.concat([O]):P,[])}function p(R){return i.map((A,P)=>({start:A-s[P]+.5+R,end:A+t-.5+R}))}function v(R,A,P){const O=p(A);return R.map(L=>{const M=P?0:-n,z=P?n:0,F=P?"end":"start",Y=O[L][F];return{index:L,loopPoint:Y,slideLocation:Br(-1),translate:qv(e,l[L]),target:()=>a.get()>Y?M:z}})}function x(){const R=o[0],A=g(d,R);return v(A,n,!1)}function b(){const R=t-o[0]-1,A=g(u,R);return v(A,-n,!0)}function w(){return h.every(({index:R})=>{const A=u.filter(P=>P!==R);return y(A,t)<=.1})}function _(){h.forEach(R=>{const{target:A,translate:P,slideLocation:O}=R,L=A();L!==O.get()&&(P.to(L),O.set(L))})}function S(){h.forEach(R=>R.translate.clear())}return{canLoop:w,clear:S,loop:_,loopPoints:h}}function q1(e,t,n){let s,r=!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}}s=new MutationObserver(u=>{r||(ga(n)||n(l,u))&&c(u)}),s.observe(e,{childList:!0})}function o(){s&&s.disconnect(),r=!0}return{init:i,destroy:o}}function Z1(e,t,n,s){const r={};let i=null,o=null,a,l=!1;function c(){a=new IntersectionObserver(g=>{l||(g.forEach(p=>{const v=t.indexOf(p.target);r[v]=p}),i=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:s}),t.forEach(g=>a.observe(g))}function u(){a&&a.disconnect(),l=!0}function d(g){return wi(r).reduce((p,v)=>{const x=parseInt(v),{isIntersecting:b}=r[x];return(g&&b||!g&&!b)&&p.push(x),p},[])}function h(g=!0){if(g&&i)return i;if(!g&&o)return o;const p=d(g);return g&&(i=p),g||(o=p),p}return{init:c,destroy:u,get:h}}function K1(e,t,n,s,r,i){const{measureSize:o,startEdge:a,endEdge:l}=e,c=n[0]&&r,u=g(),d=p(),h=n.map(o),y=v();function g(){if(!c)return 0;const b=n[0];return Pe(t[a]-b[a])}function p(){if(!c)return 0;const b=i.getComputedStyle(Bt(s));return parseFloat(b.getPropertyValue(`margin-${l}`))}function v(){return n.map((b,w,_)=>{const S=!w,T=Lu(_,w);return S?h[w]+u:T?h[w]+d:_[w+1][a]-b[a]}).map(Pe)}return{slideSizes:h,slideSizesWithGaps:y,startGap:u,endGap:d}}function G1(e,t,n,s,r,i,o,a,l){const{startEdge:c,endEdge:u,direction:d}=e,h=Mu(n);function y(x,b){return bi(x).filter(w=>w%b===0).map(w=>x.slice(w,w+b))}function g(x){return x.length?bi(x).reduce((b,w,_)=>{const S=Bt(b)||0,T=S===0,R=w===Vi(x),A=r[c]-i[S][c],P=r[c]-i[w][u],O=!s&&T?d(o):0,L=!s&&R?d(a):0,M=Pe(P-L-(A+O));return _&&M>t+l&&b.push(w),R&&b.push(x.length),b},[]).map((b,w,_)=>{const S=Math.max(_[w-1]||0);return x.slice(S,b)}):[]}function p(x){return h?y(x,n):g(x)}return{groupSlides:p}}function X1(e,t,n,s,r,i,o){const{align:a,axis:l,direction:c,startIndex:u,loop:d,duration:h,dragFree:y,dragThreshold:g,inViewThreshold:p,slidesToScroll:v,skipSnaps:x,containScroll:b,watchResize:w,watchSlides:_,watchDrag:S,watchFocus:T}=i,R=2,A=k1(),P=A.measure(t),O=n.map(A.measure),L=A1(l,c),M=L.measureSize(P),z=j1(M),F=T1(a,M),Y=!d&&!!b,J=d||!!b,{slideSizes:Z,slideSizesWithGaps:K,startGap:ie,endGap:he}=K1(L,P,O,n,J,r),ve=G1(L,M,v,d,P,O,ie,he,R),{snaps:$e,snapsAligned:Xe}=B1(L,F,P,O,ve),Ye=-Bt($e)+Bt(K),{snapsContained:Ot,scrollContainLimit:it}=L1(M,Ye,Xe,b,R),de=Y?Ot:Xe,{limit:xe}=I1(Ye,de,d),Oe=Hv(Vi(de),u,d),Ve=Oe.clone(),Se=bi(n),G=({dragHandler:Kt,scrollBody:ns,scrollBounds:Rr,options:{loop:ss}})=>{ss||Rr.constrain(Kt.pointerDown()),ns.seek()},pe=({scrollBody:Kt,translate:ns,location:Rr,offsetLocation:ss,previousLocation:xa,scrollLooper:$i,slideLooper:Mx,dragHandler:Dx,animation:Lx,eventHandler:Uu,scrollBounds:Ix,options:{loop:Wu}},Hu)=>{const qu=Kt.settled(),Fx=!Ix.shouldConstrain(),Zu=Wu?qu:qu&&Fx;Zu&&!Dx.pointerDown()&&(Lx.stop(),Uu.emit("settle")),Zu||Uu.emit("scroll");const Vx=Rr.get()*Hu+xa.get()*(1-Hu);ss.set(Vx),Wu&&($i.loop(Kt.direction()),Mx.loop()),ns.to(ss.get())},Ce=R1(s,r,()=>G(Tr),Kt=>pe(Tr,Kt)),Ue=.68,gt=de[Oe.get()],Tt=Br(gt),E=Br(gt),N=Br(gt),j=Br(gt),U=M1(Tt,N,E,j,h,Ue),B=z1(d,de,Ye,xe,j),I=U1(Ce,Oe,Ve,U,B,j,o),ee=V1(xe),le=Si(),Be=Z1(t,n,o,p),{slideRegistry:Me}=$1(Y,b,de,it,ve,Se),Zt=W1(e,n,Me,I,U,le,o,T),Tr={ownerDocument:s,ownerWindow:r,eventHandler:o,containerRect:P,slideRects:O,animation:Ce,axis:L,dragHandler:N1(L,e,s,r,j,P1(L,r),Tt,Ce,I,U,B,Oe,o,z,y,g,x,Ue,S),eventStore:le,percentOfView:z,index:Oe,indexPrevious:Ve,limit:xe,location:Tt,offsetLocation:N,previousLocation:E,options:i,resizeHandler:O1(t,o,r,n,L,w,A),scrollBody:U,scrollBounds:D1(xe,N,j,U,z),scrollLooper:F1(Ye,xe,N,[Tt,N,E,j]),scrollProgress:ee,scrollSnapList:de.map(ee.get),scrollSnaps:de,scrollTarget:B,scrollTo:I,slideLooper:H1(L,M,Ye,Z,K,$e,de,N,n),slideFocus:Zt,slidesHandler:q1(t,o,_),slidesInView:Be,slideIndexes:Se,slideRegistry:Me,slidesToScroll:ve,target:j,translate:qv(L,t)};return Tr}function Y1(){let e={},t;function n(c){t=c}function s(c){return e[c]||[]}function r(c){return s(c).forEach(u=>u(t,c)),l}function i(c,u){return e[c]=s(c).concat([u]),l}function o(c,u){return e[c]=s(c).filter(d=>d!==u),l}function a(){e={}}const l={init:n,emit:r,off:o,on:i,clear:a};return l}const Q1={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 J1(e){function t(i,o){return Wv(i,o||{})}function n(i){const o=i.breakpoints||{},a=wi(o).filter(l=>e.matchMedia(l).matches).map(l=>o[l]).reduce((l,c)=>t(l,c),{});return t(i,a)}function s(i){return i.map(o=>wi(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:s}}function ej(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 s(){t=t.filter(i=>i.destroy())}return{init:n,destroy:s}}function Wo(e,t,n){const s=e.ownerDocument,r=s.defaultView,i=J1(r),o=ej(i),a=Si(),l=Y1(),{mergeOptions:c,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:h,off:y,emit:g}=l,p=L;let v=!1,x,b=c(Q1,Wo.globalOptions),w=c(b),_=[],S,T,R;function A(){const{container:Se,slides:G}=w;T=(tc(Se)?e.querySelector(Se):Se)||e.children[0];const Ce=tc(G)?T.querySelectorAll(G):G;R=[].slice.call(Ce||T.children)}function P(Se){const G=X1(e,T,R,s,r,Se,l);if(Se.loop&&!G.slideLooper.canLoop()){const pe=Object.assign({},Se,{loop:!1});return P(pe)}return G}function O(Se,G){v||(b=c(b,Se),w=u(b),_=G||_,A(),x=P(w),d([b,..._.map(({options:pe})=>pe)]).forEach(pe=>a.add(pe,"change",L)),w.active&&(x.translate.to(x.location.get()),x.animation.init(),x.slidesInView.init(),x.slideFocus.init(Ve),x.eventHandler.init(Ve),x.resizeHandler.init(Ve),x.slidesHandler.init(Ve),x.options.loop&&x.slideLooper.loop(),T.offsetParent&&R.length&&x.dragHandler.init(Ve),S=o.init(Ve,_)))}function L(Se,G){const pe=ve();M(),O(c({startIndex:pe},Se),G),l.emit("reInit")}function M(){x.dragHandler.destroy(),x.eventStore.clear(),x.translate.clear(),x.slideLooper.clear(),x.resizeHandler.destroy(),x.slidesHandler.destroy(),x.slidesInView.destroy(),x.animation.destroy(),o.destroy(),a.clear()}function z(){v||(v=!0,a.clear(),M(),l.emit("destroy"),l.clear())}function F(Se,G,pe){!w.active||v||(x.scrollBody.useBaseFriction().useDuration(G===!0?0:w.duration),x.scrollTo.index(Se,pe||0))}function Y(Se){const G=x.index.add(1).get();F(G,Se,-1)}function J(Se){const G=x.index.add(-1).get();F(G,Se,1)}function Z(){return x.index.add(1).get()!==ve()}function K(){return x.index.add(-1).get()!==ve()}function ie(){return x.scrollSnapList}function he(){return x.scrollProgress.get(x.location.get())}function ve(){return x.index.get()}function $e(){return x.indexPrevious.get()}function Xe(){return x.slidesInView.get()}function Ye(){return x.slidesInView.get(!1)}function Ot(){return S}function it(){return x}function de(){return e}function xe(){return T}function Oe(){return R}const Ve={canScrollNext:Z,canScrollPrev:K,containerNode:xe,internalEngine:it,destroy:z,off:y,on:h,emit:g,plugins:Ot,previousScrollSnap:$e,reInit:p,rootNode:de,scrollNext:Y,scrollPrev:J,scrollProgress:he,scrollSnapList:ie,scrollTo:F,selectedScrollSnap:ve,slideNodes:Oe,slidesInView:Xe,slidesNotInView:Ye};return O(t,n),setTimeout(()=>l.emit("init"),0),Ve}Wo.globalOptions=void 0;function Rn(e={},t=[]){const n=m.useRef(e),s=m.useRef(t),[r,i]=m.useState(),[o,a]=m.useState(),l=m.useCallback(()=>{r&&r.reInit(n.current,s.current)},[r]);return m.useEffect(()=>{Ou(n.current,e)||(n.current=e,l())},[e,l]),m.useEffect(()=>{_1(s.current,t)||(s.current=t,l())},[t,l]),m.useEffect(()=>{if(S1()&&o){Wo.globalOptions=Rn.globalOptions;const c=Wo(o,n.current,s.current);return i(c),()=>c.destroy()}else i(void 0)},[o,i]),[a,r]}Rn.globalOptions=void 0;const tj=[{id:0,title:"Все компании",titleEn:"All companies",titleTm:"Ähli kompaniýalar"},{id:3,title:"Государственные учреждения ",titleEn:"Government Institutions",titleTm:"Döwlet edaralary"},{id:1,title:"Местные компании",titleEn:"Local companies",titleTm:"Ýerli kompaniýalar"},{id:2,title:"Иностранные компании",titleEn:"Foreign companies",titleTm:"Daşary ýurt kompaniýalary"}],hM=({className:e,setState:t,state:n,data:s=tj})=>{const r=Ee(g=>g.lang),i=Eo("(min-width: 768px)"),[o,a]=m.useState({left:0,width:0}),[l,c]=Rn({axis:"x",align:"start",containScroll:"trimSnaps"},[]),u=m.useRef([]),d=m.useRef(null),h=m.useCallback(()=>{const g=u.current[n];if(g){if(i)a({left:g.offsetLeft,width:g.offsetWidth});else if(c){const p=c.rootNode(),v=c.containerNode();if(!p||!v)return;const x=v.scrollLeft,b=g.offsetLeft;a({left:b-x,width:g.offsetWidth})}}},[n,i,c]);m.useEffect(()=>{!i&&c||(c==null||c.scrollTo(n),h())},[c,n,h,i]),m.useEffect(()=>{if(c)return h(),c.on("scroll",h),c.on("resize",h),()=>{c.off("scroll",h),c.off("resize",h)}},[c,h]);const y=m.useCallback(g=>{t(g),!i&&c&&c.scrollTo(g)},[c,t,i]);return f.jsxs("div",{ref:d,className:V("relative mx-auto",e),style:{width:"fit-content",maxWidth:"100%"},children:[i?f.jsx("div",{className:"flex",role:"tablist",children:s==null?void 0:s.map((g,p)=>f.jsx("button",{ref:v=>u.current[p]=v,role:"tab","aria-selected":n===p,className:V("shrink-0 text-center relative h-12 mx-4 py-2 text-sm md:text-base whitespace-nowrap transition-all",n===p?"text-primary":"text-on_surface_v"),onClick:()=>y(p),children:r==="ru"?g.title:r==="tm"?g.titleTm??g.titleEn:g.titleEn},g.id))}):f.jsx("div",{ref:l,className:"",role:"tablist",children:f.jsx("div",{className:"flex",children:s==null?void 0:s.map((g,p)=>f.jsx("button",{ref:v=>u.current[p]=v,role:"tab","aria-selected":n===p,className:V("shrink-0 text-center relative after:transition-all after:rounded after:w-full after:h-0.5 after:bg-primary after:opacity-0 after:absolute after:bottom-0 after:left-0 h-12 mx-4 py-2 text-sm md:text-base whitespace-nowrap transition-all",n===p?"text-primary after:opacity-100":"text-on_surface_v"),onClick:()=>y(p),children:r==="ru"?g.title:r==="tm"?g.titleTm??g.titleEn:g.titleEn},g.id))})}),f.jsx("div",{className:"absolute md:block hidden bottom-0 h-[3px] rounded-t-[2px] bg-primary transition-all duration-200",style:o})]})},pM=({className:e,index:t,name:n,image:s,image_country:r,country:i,about:o,arr:a})=>{const l=Ee(c=>c.lang);return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:V("flex border-b md:hidden py-2 border-outline_v",e),children:[f.jsxs("div",{className:"flex flex-1 flex-col items-start gap-4",children:[f.jsx("div",{className:"flex items-center w-full",children:f.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[f.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[{ru:"Название",en:"Company",tm:"Kompaniýa"}[l],":"]}),f.jsx("h4",{className:"text-xs flex-[0_0_70%]",children:n})]})}),f.jsx("div",{className:"flex items-center gap-3",children:f.jsx("div",{className:"flex items-center w-full",children:f.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[f.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[{ru:"Страна",en:"Country",tm:"Ýurt"}[l],":"]}),f.jsxs("div",{className:"flex items-center flex-[0_0_50%] gap-2",children:[f.jsx("img",{src:r==null?void 0:r.path,alt:"flag",className:"size-4 flex-[0_0_16px] object-contain"}),f.jsx("h4",{className:"text-xs flex-1",children:i})]})]})})}),f.jsx("div",{className:"flex items-center ",children:f.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[f.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[{ru:"Сфера",en:"Industry",tm:"Pudak"}[l],":"]}),f.jsx("h4",{className:"text-xs flex-1",children:o})]})})]}),f.jsx("div",{className:"flex-[0_0_88px] size-[88px] bg-white ",children:f.jsx("img",{src:s==null?void 0:s.path,alt:"company",className:"size-full object-contain"})})]},t),f.jsxs("div",{className:V("md:flex hidden p-4 ",a!==t+1&&"border-b border-outline_v"),children:[f.jsxs("div",{className:"flex-[0_0_45.54%] flex gap-8",children:[f.jsx("div",{className:"flex-[0_0_88px] sm:flex-[0_0_128px] size-[88px] bg-white sm:size-[128px]",children:f.jsx("img",{src:s==null?void 0:s.path,alt:"company",className:"size-full object-contain"})}),f.jsx("h3",{className:"text-lg xl:mr-20 mr-10",children:n})]}),f.jsxs("div",{className:"flex-[0_0_19.80%] flex gap-2.5",children:[f.jsx("img",{src:r==null?void 0:r.path,alt:"flag",className:"size-4"}),f.jsx("h4",{className:"text-sm normal",children:i})]}),f.jsx("h3",{className:"text-sm normal md:ml-1 flex-[0_0_34.65%]",children:o})]})]})},nj=e=>{const{data:t,isPending:n,status:s}=Tn({queryKey:["photos",e],queryFn:()=>s1(e),select:({data:r})=>r.data});return{data:t,isPending:n,status:s}},sj=e=>{const{data:t,isPending:n,isError:s}=Tn({queryKey:["videos",e],queryFn:()=>r1(e),select:({data:r})=>r.data});return{data:t,isPending:n,isError:s}},mM=({className:e,setIsOpen:t,activeItem:n})=>{var h,y;const[s,r]=Rn({align:"center",loop:!1,dragFree:!1,slidesToScroll:1}),{data:i}=nj(1),{data:o}=sj(1);tR();const[a,l]=m.useState(!1),[c,u]=m.useState(!1);m.useEffect(()=>{if(!r)return;const g=()=>{l(r.canScrollPrev()),u(r.canScrollNext())};return r.on("select",g),g(),()=>{r.off("select",g)}},[r]),m.useEffect(()=>{!r||!i||r.scrollTo(n.id,!0)},[r,i,n.id]);const d=n.type==="photo"?(h=i==null?void 0:i.photos)==null?void 0:h.map(g=>{var p;return f.jsx("div",{className:"embla__slide flex-[0_0_100%] h-[350px] md:h-[500px] lg:h-[700px] lg:px-[20%] flex items-center justify-center",children:f.jsx("img",{src:(p=g==null?void 0:g.photo)==null?void 0:p.path,alt:g.photo.file_name,className:"max-h-full max-w-full object-contain"})},g.id)}):(y=o==null?void 0:o.videos)==null?void 0:y.map(g=>{var p;return f.jsx("div",{className:"embla__slide flex-[0_0_100%] h-[80vh] lg:px-[20%] flex items-center justify-center",children:f.jsx("video",{src:((p=g==null?void 0:g.video)==null?void 0:p.path)??"",controls:!0,autoPlay:!0,muted:!0,className:"max-h-full max-w-full object-contain"})},g.id)});return f.jsxs(Hr.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:V("fixed z-[100] top-0 left-0 pb-40 pt-20 lg:px-28 px-6 overflow-hidden min-h-screen w-full bg-black/90",e),children:[f.jsx(Ac,{onClick:()=>t(!1),className:"absolute top-6 right-6 p-3 md:size-20 size-16 cursor-pointer z-50 text-white hover:scale-110 transition-all duration-300"}),f.jsxs("div",{className:"hidden md:block",children:[f.jsx(yl,{onClick:()=>a&&(r==null?void 0:r.scrollPrev()),className:V("absolute left-10 top-1/2 -translate-y-1/2 text-white size-20 cursor-pointer hover:scale-110 transition-all duration-300 z-40",!a&&"opacity-20 pointer-events-none")}),f.jsx(em,{onClick:()=>c&&(r==null?void 0:r.scrollNext()),className:V("absolute right-10 top-1/2 -translate-y-1/2 text-white size-20 cursor-pointer hover:scale-110 transition-all duration-300 z-40",!c&&"opacity-20 pointer-events-none")})]}),f.jsx("div",{ref:s,className:"embla overflow-hidden",children:f.jsx("div",{className:"embla__container flex",children:d})})]})},gM=({className:e,name:t,achievements:n,biography:s,image:r,images:i})=>{var g;const[o,a]=m.useState(!1),[l,c]=m.useState(!1),u=Ee(p=>p.lang),[d,h]=m.useState(100),y=({className:p})=>{const[v,x]=Rn({});return m.useEffect(()=>{if(!x)return;const b=()=>{a(x.canScrollPrev()),c(x.canScrollNext())};return b(),x.on("select",b),()=>{x.off("select",b)}},[x]),f.jsxs("div",{className:V("",p),children:[f.jsx("h3",{className:"text-xl mb-2.5",children:{ru:"Работы дизайнера",en:"Designer works",tm:"Dizaýneriň işleri"}[u]}),f.jsx("div",{ref:v,className:"embla overflow-hidden",children:f.jsxs("div",{className:"embla__container items-center flex gap-4",children:[o&&f.jsx(yl,{onClick:()=>o&&(x==null?void 0:x.scrollPrev()),className:V("cursor-pointer",!o&&"opacity-20")}),f.jsx("div",{className:"flex items-center gap-4",children:i==null?void 0:i.map((b,w)=>f.jsx("div",{className:"lg:size-[140px] size-[70px] overflow-hidden",children:f.jsx("img",{onClick:()=>h(w),src:b==null?void 0:b.path,className:"size-full hover:scale-105 transition-all cursor-pointer overflow-hidden object-cover object-top"},w)}))}),l&&f.jsx(em,{onClick:()=>o&&(x==null?void 0:x.scrollNext()),className:V("cursor-pointer",!l&&"opacity-20")})]})})]})};return f.jsxs(ev,{children:[f.jsxs(tv,{className:V("relative group h-[326px] overflow-hidden",e),children:[f.jsx("article",{className:"z-50 size-full bg-[url('/impressions/card-bg.png')] bg-no-repeat overflow-hidden",children:f.jsxs("div",{className:"flex gap-4 h-[316px] overflow-hidden",children:[f.jsx("img",{src:r==null?void 0:r.path,alt:t,className:"flex-[0_0_44%] object-contain overflow-hidden"}),f.jsxs("div",{className:"flex-auto text-left text-white z-20 pt-6 pl-4 pr-4",children:[f.jsx("h3",{className:"text-xl mb-6",children:t}),f.jsx("ul",{className:"text-sm list-disc pl-4 flex flex-col gap-2",children:n.slice(0,7).map((p,v)=>f.jsx("li",{children:u==="ru"?p==null?void 0:p.ru:p==null?void 0:p.en},v))})]})]})}),f.jsx("img",{src:"/impressions/card-bg-bg.png",className:"absolute top-2.5 left-2.5 -z-10 size-full"})]}),f.jsxs(Au,{className:V("p-6 flex flex-col gap-4 xl:!w-[1224px] md:!w-[688px] w-[336px] max-h-[100vh] overflow-hidden"),children:[d===100?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"gap-4 md:!flex !hidden",children:[f.jsx("div",{className:"flex-1 h-[345px]",children:f.jsx("img",{src:r==null?void 0:r.path,alt:"",className:"size-full float-left object-cover"})}),f.jsxs("div",{className:"flex-[0_0_70%]",children:[f.jsx("div",{className:"text-2xl mb-4",children:t}),f.jsx("hr",{}),f.jsx("div",{className:"mt-4 flex flex-col gap-3 normal overflow-y-auto max-h-[40vh]",dangerouslySetInnerHTML:{__html:s??""}})]})]}),f.jsx("hr",{className:"hidden md:block"}),f.jsxs("div",{className:"flex flex-col gap-4 md:hidden overflow-auto h-full",children:[f.jsx("h3",{className:"text-xl",children:t}),f.jsx("img",{src:r==null?void 0:r.path,alt:t}),f.jsx("hr",{}),f.jsx(y,{}),f.jsx("hr",{}),f.jsx("div",{className:"mt-4 flex flex-col gap-3 normal",dangerouslySetInnerHTML:{__html:s??""}})]})]}):f.jsxs("div",{className:"",children:[f.jsxs("button",{onClick:()=>h(100),className:"flex items-center gap-2 mb-4",children:[f.jsx(yl,{}),{ru:"Вернуться назад",en:"Go back",tm:"Yza gaýdyň"}[u]]}),f.jsx("div",{className:"2xl:h-[50vh] h-[40vh] bg-[#f4f4f4]",children:f.jsx("img",{src:(g=i==null?void 0:i[d])==null?void 0:g.path,className:"size-full object-contain"})})]}),f.jsx(y,{className:"hidden md:block"})]})]})};function Zv(e,t=[]){let n=[];function s(i,o){const a=m.createContext(o),l=n.length;n=[...n,o];const c=d=>{var x;const{scope:h,children:y,...g}=d,p=((x=h==null?void 0:h[e])==null?void 0:x[l])||a,v=m.useMemo(()=>g,Object.values(g));return f.jsx(p.Provider,{value:v,children:y})};c.displayName=i+"Provider";function u(d,h){var p;const y=((p=h==null?void 0:h[e])==null?void 0:p[l])||a,g=m.useContext(y);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const r=()=>{const i=n.map(o=>m.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return r.scopeName=e,[s,rj(r,...t)]}function rj(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const o=s.reduce((a,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...a,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function He(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Fh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ya(...e){return t=>{let n=!1;const s=e.map(r=>{const i=Fh(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<s.length;r++){const i=s[r];typeof i=="function"?i():Fh(e[r],null)}}}}function dn(...e){return m.useCallback(ya(...e),e)}function ij(e){const t=oj(e),n=m.forwardRef((s,r)=>{const{children:i,...o}=s,a=m.Children.toArray(i),l=a.find(lj);if(l){const c=l.props.children,u=a.map(d=>d===l?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:d);return f.jsx(t,{...o,ref:r,children:m.isValidElement(c)?m.cloneElement(c,void 0,u):null})}return f.jsx(t,{...o,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function oj(e){const t=m.forwardRef((n,s)=>{const{children:r,...i}=n;if(m.isValidElement(r)){const o=uj(r),a=cj(i,r.props);return r.type!==m.Fragment&&(a.ref=s?ya(s,o):o),m.cloneElement(r,a)}return m.Children.count(r)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var aj=Symbol("radix.slottable");function lj(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===aj}function cj(e,t){const n={...t};for(const s in t){const r=e[s],i=t[s];/^on[A-Z]/.test(s)?r&&i?n[s]=(...a)=>{const l=i(...a);return r(...a),l}:r&&(n[s]=r):s==="style"?n[s]={...r,...i}:s==="className"&&(n[s]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function uj(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var dj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Et=dj.reduce((e,t)=>{const n=ij(`Primitive.${t}`),s=m.forwardRef((r,i)=>{const{asChild:o,...a}=r,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(l,{...a,ref:i})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function sc(e,t){e&&hc.flushSync(()=>e.dispatchEvent(t))}var ks=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},fj=fc[" useInsertionEffect ".trim().toString()]||ks;function Kv({prop:e,defaultProp:t,onChange:n=()=>{},caller:s}){const[r,i,o]=hj({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:r;{const u=m.useRef(e!==void 0);m.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${s} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,s])}const c=m.useCallback(u=>{var d;if(a){const h=pj(u)?u(e):u;h!==e&&((d=o.current)==null||d.call(o,h))}else i(u)},[a,e,i,o]);return[l,c]}function hj({defaultProp:e,onChange:t}){const[n,s]=m.useState(e),r=m.useRef(n),i=m.useRef(t);return fj(()=>{i.current=t},[t]),m.useEffect(()=>{var o;r.current!==n&&((o=i.current)==null||o.call(i,n),r.current=n)},[n,r]),[n,s,i]}function pj(e){return typeof e=="function"}var mj=m.createContext(void 0);function gj(e){const t=m.useContext(mj);return e||t||"ltr"}function yj(e,t){return m.useReducer((n,s)=>t[n][s]??n,e)}var Bi=e=>{const{present:t,children:n}=e,s=vj(t),r=typeof n=="function"?n({present:s.isPresent}):m.Children.only(n),i=dn(s.ref,xj(r));return typeof n=="function"||s.isPresent?m.cloneElement(r,{ref:i}):null};Bi.displayName="Presence";function vj(e){const[t,n]=m.useState(),s=m.useRef(null),r=m.useRef(e),i=m.useRef("none"),o=e?"mounted":"unmounted",[a,l]=yj(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const c=to(s.current);i.current=a==="mounted"?c:"none"},[a]),ks(()=>{const c=s.current,u=r.current;if(u!==e){const h=i.current,y=to(c);e?l("MOUNT"):y==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==y?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),ks(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=y=>{const p=to(s.current).includes(CSS.escape(y.animationName));if(y.target===t&&p&&(l("ANIMATION_END"),!r.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=y=>{y.target===t&&(i.current=to(s.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(c=>{s.current=c?getComputedStyle(c):null,n(c)},[])}}function to(e){return(e==null?void 0:e.animationName)||"none"}function xj(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bj=fc[" useId ".trim().toString()]||(()=>{}),wj=0;function Gv(e){const[t,n]=m.useState(bj());return ks(()=>{n(s=>s??String(wj++))},[e]),e||(t?`radix-${t}`:"")}function Vh(e){const t=Sj(e),n=m.forwardRef((s,r)=>{const{children:i,...o}=s,a=m.Children.toArray(i),l=a.find(Ej);if(l){const c=l.props.children,u=a.map(d=>d===l?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:d);return f.jsx(t,{...o,ref:r,children:m.isValidElement(c)?m.cloneElement(c,void 0,u):null})}return f.jsx(t,{...o,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function Sj(e){const t=m.forwardRef((n,s)=>{const{children:r,...i}=n;if(m.isValidElement(r)){const o=Tj(r),a=Cj(i,r.props);return r.type!==m.Fragment&&(a.ref=s?ya(s,o):o),m.cloneElement(r,a)}return m.Children.count(r)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _j=Symbol("radix.slottable");function Ej(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_j}function Cj(e,t){const n={...t};for(const s in t){const r=e[s],i=t[s];/^on[A-Z]/.test(s)?r&&i?n[s]=(...a)=>{const l=i(...a);return r(...a),l}:r&&(n[s]=r):s==="style"?n[s]={...r,...i}:s==="className"&&(n[s]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function Tj(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Xv(e){const t=e+"CollectionProvider",[n,s]=Zv(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:v,children:x}=p,b=fe.useRef(null),w=fe.useRef(new Map).current;return f.jsx(r,{scope:v,itemMap:w,collectionRef:b,children:x})};o.displayName=t;const a=e+"CollectionSlot",l=Vh(a),c=fe.forwardRef((p,v)=>{const{scope:x,children:b}=p,w=i(a,x),_=dn(v,w.collectionRef);return f.jsx(l,{ref:_,children:b})});c.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=Vh(u),y=fe.forwardRef((p,v)=>{const{scope:x,children:b,...w}=p,_=fe.useRef(null),S=dn(v,_),T=i(u,x);return fe.useEffect(()=>(T.itemMap.set(_,{ref:_,...w}),()=>void T.itemMap.delete(_))),f.jsx(h,{[d]:"",ref:S,children:b})});y.displayName=u;function g(p){const v=i(e+"CollectionConsumer",p);return fe.useCallback(()=>{const b=v.collectionRef.current;if(!b)return[];const w=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((T,R)=>w.indexOf(T.ref.current)-w.indexOf(R.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:o,Slot:c,ItemSlot:y},g,s]}function Jt(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function Rj(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e);m.useEffect(()=>{const s=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[n,t])}var Aj="DismissableLayer",rc="dismissableLayer.update",Nj="dismissableLayer.pointerDownOutside",Pj="dismissableLayer.focusOutside",Bh,Yv=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qv=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,c=m.useContext(Yv),[u,d]=m.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=m.useState({}),g=dn(t,R=>d(R)),p=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),x=p.indexOf(v),b=u?p.indexOf(u):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,_=b>=x,S=Oj(R=>{const A=R.target,P=[...c.branches].some(O=>O.contains(A));!_||P||(r==null||r(R),o==null||o(R),R.defaultPrevented||a==null||a())},h),T=Mj(R=>{const A=R.target;[...c.branches].some(O=>O.contains(A))||(i==null||i(R),o==null||o(R),R.defaultPrevented||a==null||a())},h);return Rj(R=>{b===c.layers.size-1&&(s==null||s(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},h),m.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Bh=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),$h(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Bh)}},[u,h,n,c]),m.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),$h())},[u,c]),m.useEffect(()=>{const R=()=>y({});return document.addEventListener(rc,R),()=>document.removeEventListener(rc,R)},[]),f.jsx(Et.div,{...l,ref:g,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:He(e.onFocusCapture,T.onFocusCapture),onBlurCapture:He(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:He(e.onPointerDownCapture,S.onPointerDownCapture)})});Qv.displayName=Aj;var kj="DismissableLayerBranch",jj=m.forwardRef((e,t)=>{const n=m.useContext(Yv),s=m.useRef(null),r=dn(t,s);return m.useEffect(()=>{const i=s.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),f.jsx(Et.div,{...e,ref:r})});jj.displayName=kj;function Oj(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e),s=m.useRef(!1),r=m.useRef(()=>{});return m.useEffect(()=>{const i=a=>{if(a.target&&!s.current){let l=function(){Jv(Nj,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=l,t.addEventListener("click",r.current,{once:!0})):l()}else t.removeEventListener("click",r.current);s.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function Mj(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e),s=m.useRef(!1);return m.useEffect(()=>{const r=i=>{i.target&&!s.current&&Jv(Pj,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function $h(){const e=new CustomEvent(rc);document.dispatchEvent(e)}function Jv(e,t,n,{discrete:s}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),s?sc(r,i):r.dispatchEvent(i)}function Dj(e){const t=m.useRef({value:e,previous:e});return m.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function zh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Lj(...e){return t=>{let n=!1;const s=e.map(r=>{const i=zh(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<s.length;r++){const i=s[r];typeof i=="function"?i():zh(e[r],null)}}}}function Ij(e){const t=Fj(e),n=m.forwardRef((s,r)=>{const{children:i,...o}=s,a=m.Children.toArray(i),l=a.find(Bj);if(l){const c=l.props.children,u=a.map(d=>d===l?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:d);return f.jsx(t,{...o,ref:r,children:m.isValidElement(c)?m.cloneElement(c,void 0,u):null})}return f.jsx(t,{...o,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function Fj(e){const t=m.forwardRef((n,s)=>{const{children:r,...i}=n;if(m.isValidElement(r)){const o=zj(r),a=$j(i,r.props);return r.type!==m.Fragment&&(a.ref=s?Lj(s,o):o),m.cloneElement(r,a)}return m.Children.count(r)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Vj=Symbol("radix.slottable");function Bj(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Vj}function $j(e,t){const n={...t};for(const s in t){const r=e[s],i=t[s];/^on[A-Z]/.test(s)?r&&i?n[s]=(...a)=>{const l=i(...a);return r(...a),l}:r&&(n[s]=r):s==="style"?n[s]={...r,...i}:s==="className"&&(n[s]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function zj(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Uj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Wj=Uj.reduce((e,t)=>{const n=Ij(`Primitive.${t}`),s=m.forwardRef((r,i)=>{const{asChild:o,...a}=r,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(l,{...a,ref:i})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),Hj=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),qj="VisuallyHidden",ex=m.forwardRef((e,t)=>f.jsx(Wj.span,{...e,ref:t,style:{...Hj,...e.style}}));ex.displayName=qj;var Zj=ex,Ms="NavigationMenu",[Iu,tx,Kj]=Xv(Ms),[ic,Gj,Xj]=Xv(Ms),[Fu,yM]=Zv(Ms,[Kj,Xj]),[Yj,jt]=Fu(Ms),[Qj,Jj]=Fu(Ms),nx=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,onValueChange:r,defaultValue:i,delayDuration:o=200,skipDelayDuration:a=300,orientation:l="horizontal",dir:c,...u}=e,[d,h]=m.useState(null),y=dn(t,P=>h(P)),g=gj(c),p=m.useRef(0),v=m.useRef(0),x=m.useRef(0),[b,w]=m.useState(!0),[_,S]=Kv({prop:s,onChange:P=>{const O=P!=="",L=a>0;O?(window.clearTimeout(x.current),L&&w(!1)):(window.clearTimeout(x.current),x.current=window.setTimeout(()=>w(!0),a)),r==null||r(P)},defaultProp:i??"",caller:Ms}),T=m.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>S(""),150)},[S]),R=m.useCallback(P=>{window.clearTimeout(v.current),S(P)},[S]),A=m.useCallback(P=>{_===P?window.clearTimeout(v.current):p.current=window.setTimeout(()=>{window.clearTimeout(v.current),S(P)},o)},[_,S,o]);return m.useEffect(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(v.current),window.clearTimeout(x.current)},[]),f.jsx(sx,{scope:n,isRootMenu:!0,value:_,dir:g,orientation:l,rootNavigationMenu:d,onTriggerEnter:P=>{window.clearTimeout(p.current),b?A(P):R(P)},onTriggerLeave:()=>{window.clearTimeout(p.current),T()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:T,onItemSelect:P=>{S(O=>O===P?"":P)},onItemDismiss:()=>S(""),children:f.jsx(Et.nav,{"aria-label":"Main","data-orientation":l,dir:g,...u,ref:y})})});nx.displayName=Ms;var oc="NavigationMenuSub",eO=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,onValueChange:r,defaultValue:i,orientation:o="horizontal",...a}=e,l=jt(oc,n),[c,u]=Kv({prop:s,onChange:r,defaultProp:i??"",caller:oc});return f.jsx(sx,{scope:n,isRootMenu:!1,value:c,dir:l.dir,orientation:o,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:d=>u(d),onItemSelect:d=>u(d),onItemDismiss:()=>u(""),children:f.jsx(Et.div,{"data-orientation":o,...a,ref:t})})});eO.displayName=oc;var sx=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:s,dir:r,orientation:i,children:o,value:a,onItemSelect:l,onItemDismiss:c,onTriggerEnter:u,onTriggerLeave:d,onContentEnter:h,onContentLeave:y}=e,[g,p]=m.useState(null),[v,x]=m.useState(new Map),[b,w]=m.useState(null);return f.jsx(Yj,{scope:t,isRootMenu:n,rootNavigationMenu:s,value:a,previousValue:Dj(a),baseId:Gv(),dir:r,orientation:i,viewport:g,onViewportChange:p,indicatorTrack:b,onIndicatorTrackChange:w,onTriggerEnter:Jt(u),onTriggerLeave:Jt(d),onContentEnter:Jt(h),onContentLeave:Jt(y),onItemSelect:Jt(l),onItemDismiss:Jt(c),onViewportContentChange:m.useCallback((_,S)=>{x(T=>(T.set(_,S),new Map(T)))},[]),onViewportContentRemove:m.useCallback(_=>{x(S=>S.has(_)?(S.delete(_),new Map(S)):S)},[]),children:f.jsx(Iu.Provider,{scope:t,children:f.jsx(Qj,{scope:t,items:v,children:o})})})},rx="NavigationMenuList",ix=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=jt(rx,n),i=f.jsx(Et.ul,{"data-orientation":r.orientation,...s,ref:t});return f.jsx(Et.div,{style:{position:"relative"},ref:r.onIndicatorTrackChange,children:f.jsx(Iu.Slot,{scope:n,children:r.isRootMenu?f.jsx(mx,{asChild:!0,children:i}):i})})});ix.displayName=rx;var ox="NavigationMenuItem",[tO,ax]=Fu(ox),lx=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,...r}=e,i=Gv(),o=s||i||"LEGACY_REACT_AUTO_VALUE",a=m.useRef(null),l=m.useRef(null),c=m.useRef(null),u=m.useRef(()=>{}),d=m.useRef(!1),h=m.useCallback((g="start")=>{if(a.current){u.current();const p=lc(a.current);p.length&&$u(g==="start"?p:p.reverse())}},[]),y=m.useCallback(()=>{if(a.current){const g=lc(a.current);g.length&&(u.current=lO(g))}},[]);return f.jsx(tO,{scope:n,value:o,triggerRef:l,contentRef:a,focusProxyRef:c,wasEscapeCloseRef:d,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:y,onContentFocusOutside:y,children:f.jsx(Et.li,{...r,ref:t})})});lx.displayName=ox;var ac="NavigationMenuTrigger",cx=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:s,...r}=e,i=jt(ac,e.__scopeNavigationMenu),o=ax(ac,e.__scopeNavigationMenu),a=m.useRef(null),l=dn(a,o.triggerRef,t),c=yx(i.baseId,o.value),u=vx(i.baseId,o.value),d=m.useRef(!1),h=m.useRef(!1),y=o.value===i.value;return f.jsxs(f.Fragment,{children:[f.jsx(Iu.ItemSlot,{scope:n,value:o.value,children:f.jsx(gx,{asChild:!0,children:f.jsx(Et.button,{id:c,disabled:s,"data-disabled":s?"":void 0,"data-state":zu(y),"aria-expanded":y,"aria-controls":u,...r,ref:l,onPointerEnter:He(e.onPointerEnter,()=>{h.current=!1,o.wasEscapeCloseRef.current=!1}),onPointerMove:He(e.onPointerMove,Ho(()=>{s||h.current||o.wasEscapeCloseRef.current||d.current||(i.onTriggerEnter(o.value),d.current=!0)})),onPointerLeave:He(e.onPointerLeave,Ho(()=>{s||(i.onTriggerLeave(),d.current=!1)})),onClick:He(e.onClick,()=>{i.onItemSelect(o.value),h.current=y}),onKeyDown:He(e.onKeyDown,g=>{const v={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];y&&g.key===v&&(o.onEntryKeyDown(),g.preventDefault())})})})}),y&&f.jsxs(f.Fragment,{children:[f.jsx(Zj,{"aria-hidden":!0,tabIndex:0,ref:o.focusProxyRef,onFocus:g=>{const p=o.contentRef.current,v=g.relatedTarget,x=v===a.current,b=p==null?void 0:p.contains(v);(x||!b)&&o.onFocusProxyEnter(x?"start":"end")}}),i.viewport&&f.jsx("span",{"aria-owns":u})]})]})});cx.displayName=ac;var nO="NavigationMenuLink",Uh="navigationMenu.linkSelect",ux=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:s,onSelect:r,...i}=e;return f.jsx(gx,{asChild:!0,children:f.jsx(Et.a,{"data-active":s?"":void 0,"aria-current":s?"page":void 0,...i,ref:t,onClick:He(e.onClick,o=>{const a=o.target,l=new CustomEvent(Uh,{bubbles:!0,cancelable:!0});if(a.addEventListener(Uh,c=>r==null?void 0:r(c),{once:!0}),sc(a,l),!l.defaultPrevented&&!o.metaKey){const c=new CustomEvent(mo,{bubbles:!0,cancelable:!0});sc(a,c)}},{checkForDefaultPrevented:!1})})})});ux.displayName=nO;var Vu="NavigationMenuIndicator",dx=m.forwardRef((e,t)=>{const{forceMount:n,...s}=e,r=jt(Vu,e.__scopeNavigationMenu),i=!!r.value;return r.indicatorTrack?sp.createPortal(f.jsx(Bi,{present:n||i,children:f.jsx(sO,{...s,ref:t})}),r.indicatorTrack):null});dx.displayName=Vu;var sO=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=jt(Vu,n),i=tx(n),[o,a]=m.useState(null),[l,c]=m.useState(null),u=r.orientation==="horizontal",d=!!r.value;m.useEffect(()=>{var p;const g=(p=i().find(v=>v.value===r.value))==null?void 0:p.ref.current;g&&a(g)},[i,r.value]);const h=()=>{o&&c({size:u?o.offsetWidth:o.offsetHeight,offset:u?o.offsetLeft:o.offsetTop})};return cc(o,h),cc(r.indicatorTrack,h),l?f.jsx(Et.div,{"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":r.orientation,...s,ref:t,style:{position:"absolute",...u?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...s.style}}):null}),gr="NavigationMenuContent",fx=m.forwardRef((e,t)=>{const{forceMount:n,...s}=e,r=jt(gr,e.__scopeNavigationMenu),i=ax(gr,e.__scopeNavigationMenu),o=dn(i.contentRef,t),a=i.value===r.value,l={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...s};return r.viewport?f.jsx(rO,{forceMount:n,...l,ref:o}):f.jsx(Bi,{present:n||a,children:f.jsx(hx,{"data-state":zu(a),...l,ref:o,onPointerEnter:He(e.onPointerEnter,r.onContentEnter),onPointerLeave:He(e.onPointerLeave,Ho(r.onContentLeave)),style:{pointerEvents:!a&&r.isRootMenu?"none":void 0,...l.style}})})});fx.displayName=gr;var rO=m.forwardRef((e,t)=>{const n=jt(gr,e.__scopeNavigationMenu),{onViewportContentChange:s,onViewportContentRemove:r}=n;return ks(()=>{s(e.value,{ref:t,...e})},[e,t,s]),ks(()=>()=>r(e.value),[e.value,r]),null}),mo="navigationMenu.rootContentDismiss",hx=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,triggerRef:r,focusProxyRef:i,wasEscapeCloseRef:o,onRootContentClose:a,onContentFocusOutside:l,...c}=e,u=jt(gr,n),d=m.useRef(null),h=dn(d,t),y=yx(u.baseId,s),g=vx(u.baseId,s),p=tx(n),v=m.useRef(null),{onItemDismiss:x}=u;m.useEffect(()=>{const w=d.current;if(u.isRootMenu&&w){const _=()=>{var S;x(),a(),w.contains(document.activeElement)&&((S=r.current)==null||S.focus())};return w.addEventListener(mo,_),()=>w.removeEventListener(mo,_)}},[u.isRootMenu,e.value,r,x,a]);const b=m.useMemo(()=>{const _=p().map(O=>O.value);u.dir==="rtl"&&_.reverse();const S=_.indexOf(u.value),T=_.indexOf(u.previousValue),R=s===u.value,A=T===_.indexOf(s);if(!R&&!A)return v.current;const P=(()=>{if(S!==T){if(R&&T!==-1)return S>T?"from-end":"from-start";if(A&&S!==-1)return S>T?"to-start":"to-end"}return null})();return v.current=P,P},[u.previousValue,u.value,u.dir,p,s]);return f.jsx(mx,{asChild:!0,children:f.jsx(Qv,{id:g,"aria-labelledby":y,"data-motion":b,"data-orientation":u.orientation,...c,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{var _;const w=new Event(mo,{bubbles:!0,cancelable:!0});(_=d.current)==null||_.dispatchEvent(w)},onFocusOutside:He(e.onFocusOutside,w=>{var S;l();const _=w.target;(S=u.rootNavigationMenu)!=null&&S.contains(_)&&w.preventDefault()}),onPointerDownOutside:He(e.onPointerDownOutside,w=>{var R;const _=w.target,S=p().some(A=>{var P;return(P=A.ref.current)==null?void 0:P.contains(_)}),T=u.isRootMenu&&((R=u.viewport)==null?void 0:R.contains(_));(S||T||!u.isRootMenu)&&w.preventDefault()}),onKeyDown:He(e.onKeyDown,w=>{var T;const _=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!_){const R=lc(w.currentTarget),A=document.activeElement,P=R.findIndex(M=>M===A),L=w.shiftKey?R.slice(0,P).reverse():R.slice(P+1,R.length);$u(L)?w.preventDefault():(T=i.current)==null||T.focus()}}),onEscapeKeyDown:He(e.onEscapeKeyDown,w=>{o.current=!0})})})}),Bu="NavigationMenuViewport",px=m.forwardRef((e,t)=>{const{forceMount:n,...s}=e,i=!!jt(Bu,e.__scopeNavigationMenu).value;return f.jsx(Bi,{present:n||i,children:f.jsx(iO,{...s,ref:t})})});px.displayName=Bu;var iO=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:s,...r}=e,i=jt(Bu,n),o=dn(t,i.onViewportChange),a=Jj(gr,e.__scopeNavigationMenu),[l,c]=m.useState(null),[u,d]=m.useState(null),h=l?(l==null?void 0:l.width)+"px":void 0,y=l?(l==null?void 0:l.height)+"px":void 0,g=!!i.value,p=g?i.value:i.previousValue;return cc(u,()=>{u&&c({width:u.offsetWidth,height:u.offsetHeight})}),f.jsx(Et.div,{"data-state":zu(g),"data-orientation":i.orientation,...r,ref:o,style:{pointerEvents:!g&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":y,...r.style},onPointerEnter:He(e.onPointerEnter,i.onContentEnter),onPointerLeave:He(e.onPointerLeave,Ho(i.onContentLeave)),children:Array.from(a.items).map(([x,{ref:b,forceMount:w,..._}])=>{const S=p===x;return f.jsx(Bi,{present:w||S,children:f.jsx(hx,{..._,ref:ya(b,T=>{S&&T&&d(T)})})},x)})})}),oO="FocusGroup",mx=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=jt(oO,n);return f.jsx(ic.Provider,{scope:n,children:f.jsx(ic.Slot,{scope:n,children:f.jsx(Et.div,{dir:r.dir,...s,ref:t})})})}),Wh=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],aO="FocusGroupItem",gx=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=Gj(n),i=jt(aO,n);return f.jsx(ic.ItemSlot,{scope:n,children:f.jsx(Et.button,{...s,ref:t,onKeyDown:He(e.onKeyDown,o=>{if(["Home","End",...Wh].includes(o.key)){let l=r().map(d=>d.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(o.key)&&l.reverse(),Wh.includes(o.key)){const d=l.indexOf(o.currentTarget);l=l.slice(d+1)}setTimeout(()=>$u(l)),o.preventDefault()}})})})});function lc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const r=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||r?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function $u(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function lO(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function cc(e,t){const n=Jt(t);ks(()=>{let s=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(s),s=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(s),r.unobserve(e)}}},[e,n])}function zu(e){return e?"open":"closed"}function yx(e,t){return`${e}-trigger-${t}`}function vx(e,t){return`${e}-content-${t}`}function Ho(e){return t=>t.pointerType==="mouse"?e(t):void 0}var xx=nx,bx=ix,cO=lx,wx=cx,uO=ux,Sx=dx,_x=fx,Ex=px;const Cx=m.forwardRef(({className:e,children:t,...n},s)=>f.jsxs(xx,{ref:s,className:V("relative z-10 flex w-full flex-1 items-center justify-center",e),...n,children:[t,f.jsx(Nx,{})]}));Cx.displayName=xx.displayName;const Tx=m.forwardRef(({className:e,...t},n)=>f.jsx(bx,{ref:n,className:V("group flex flex-1 list-none w-full items-center justify-center space-x-1",e),...t}));Tx.displayName=bx.displayName;const dO=cO,fO=Yo("group inline-flex h-14 w-full items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"),Rx=m.forwardRef(({className:e,children:t,...n},s)=>f.jsxs(wx,{ref:s,className:V(fO(),"group",e),...n,children:[t,f.jsx("div",{className:"h-full w-4"}),f.jsx(a0,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Rx.displayName=wx.displayName;const Ax=m.forwardRef(({className:e,...t},n)=>f.jsx(_x,{ref:n,className:V("left-0 top-0 w-40 data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute",e),...t}));Ax.displayName=_x.displayName;const hO=uO,Nx=m.forwardRef(({className:e,...t},n)=>f.jsx("div",{className:V("absolute xl:left-full xl:top-0 -top-36 flex justify-center w-40"),children:f.jsx(Ex,{className:V("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-40 rounded-md text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90",e),ref:n,...t})}));Nx.displayName=Ex.displayName;const pO=m.forwardRef(({className:e,...t},n)=>f.jsx(Sx,{ref:n,className:V("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:f.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));pO.displayName=Sx.displayName;const mO=({className:e,text:t,hoverItems:n,setIsOpen:s})=>{const r=zo(i=>i.setSheet);return f.jsx(Cx,{children:f.jsx(Tx,{children:f.jsxs(dO,{className:"w-full",children:[f.jsx(Rx,{className:V("bg-transparent h-14 flex gap-3 justify-between min-w-full text-base cursor-pointer items-center hover:bg-slate-300/50 transition-all",e),children:t}),f.jsx(Ax,{className:"bg-surface_container shadow flex flex-col pb-2 rounded-[2px] w-40 items-center justify-center pt-2",children:n==null?void 0:n.map((i,o)=>f.jsx(hO,{onClick:()=>{s(!1),r(!1)},className:"h-14 py-2 flex items-center w-40 cursor-pointer px-4 hover:bg-slate-300/50 transition-all",children:f.jsx(_e,{target:i.blank?"_blank":"",to:i.link??"",children:i.text})},o))})]})})})},vt=e=>e===Ke.RU?0:e===Ke.TM?2:1,uc=[{title:"Тематические направления выставки",bottom_text:`
Участники смогут продемонстрировать свои инновационные решения, наладить взаимовыгодные партнерства и выйти на новые рынки.`,data:[{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"}]},{title:"Thematic areas of the exhibition",bottom_text:`
Participants will be able to showcase innovative solutions, establish mutually beneficial partnerships, and enter new markets.`,data:[{title:"Textile machinery and equipment",img:"/theme/1.svg"},{title:"Clothing, footwear, leather goods",img:"/theme/2.svg"},{title:"Natural fibre processing",img:"/theme/3.svg"},{title:"Home textiles and eco-textiles",img:"/theme/4.svg"},{title:"Spare parts and auxiliary materials",img:"/theme/5.svg"},{title:"Chemicals and dyes",img:"/theme/6.svg"},{title:"Accessories and sewing supplies",img:"/theme/7.svg"},{title:"Fashion and design",img:"/theme/8.svg"}]},{title:"Serginiň tematiki ugurlary",bottom_text:`
Gatnaşyjylar innowasion çözgütleri görkezip, özara peýdaly hyzmatdaşlyklary ýola goýup we täze bazarlara çykyp bilerler.`,data:[{title:"Dokma maşynlary we enjamlary",img:"/theme/1.svg"},{title:"Eşik, aýakgap, deri önümleri",img:"/theme/2.svg"},{title:"Tebigy süýümleri gaýtadan işlemek",img:"/theme/3.svg"},{title:"Öý dokmasy we eko-dokma",img:"/theme/4.svg"},{title:"Ätiýaçlyk şaýlar we kömekçi materiallar",img:"/theme/5.svg"},{title:"Himiki serişdeler we boýaglar",img:"/theme/6.svg"},{title:"Aksessuarlar we tikin furniturasy",img:"/theme/7.svg"},{title:"Moda we bezeg (dizaýn)",img:"/theme/8.svg"}]}],Px=()=>{const e=Ee(s=>s.lang),{data:t,isPending:n}=Tn({queryKey:["industries",e],queryFn:()=>e1(e),select:({data:s})=>s.data});return{data:t,isPending:n}},vM=({className:e})=>{const t=Ee(r=>r.lang),{data:n,isPending:s}=Px();return f.jsx("section",{className:V("relative w-full bg-[#FDEDEE] -z-10 py-10",e),children:f.jsx(Ge,{children:s?f.jsx(ts,{}):f.jsxs(f.Fragment,{children:[f.jsx("h3",{className:"h2 mb-4",children:uc[vt(t)].title}),f.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:n==null?void 0:n.map((r,i)=>f.jsx(pm,{...r},i))}),f.jsxs("div",{className:"flex items-center gap-3 mt-8 text-on_surface_v text-lg",children:[f.jsx("div",{className:"md:w-1 w-4 md:h-[38px] h-40 bg-teritary_08"}),f.jsx("p",{className:"text-18",children:uc[vt(t)].bottom_text})]})]})})})},kx=[{title:"Время выставки",data:[{name:"Монтаж выставки",date:"12 Мая 10 Июня 2025 года"},{name:"Работа",date:"1113 Июня 2025 года"},{name:"Демонтаж",date:"1314 Июня 2025 года"}]},{title:"Exhibition time",data:[{name:"Exhibition assembly",date:"12 May — 10 June 2025"},{name:"Exhibition days",date:"1113 June 2025"},{name:"Exhibition dismantling",date:"1314 June 2025"}]},{title:"Serginiň wagty",data:[{name:"Sergini gurnamaklyk",date:"2026-njy ýylyň 30 Maýy 3 iýuny"},{name:"Işi",date:"4-6 iýun 2026-njy ýyl"},{name:"Sökmek",date:"7 iýun 2026 ýyl"}]}],jx=()=>{const e=Ee(s=>s.lang),{data:t,isPending:n}=Tn({queryKey:["exhibiton-time",e],queryFn:()=>t1(e),select:({data:s})=>s.data});return{data:t,isPending:n}},xM=({className:e})=>{const t=Ee(r=>r.lang),{data:n,isPending:s}=jx();return f.jsx("section",{className:V("bg-surface_container py-10 md:py-20",e),children:f.jsx(Ge,{children:s?f.jsx(ts,{}):f.jsxs(f.Fragment,{children:[f.jsx("h2",{className:"h2 mb-6",children:kx[vt(t)].title}),f.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:n==null?void 0:n.map((r,i)=>m.createElement(mm,{bottomClassName:"!bg-white rounded-b-[2px]",...r,key:i,className:"w-full"}))})]})})})},Hh=[{title:"Место проведения",data:["Выставочный центр Торгово-промышленной палаты Туркменистана это современная площадка для проведения международных выставок, конференций, форумов и деловых встреч","Центр оснащен передовыми техническими решениями, включая мультимедийное оборудование, системы звукоусиления и освещения, конференц-залы с синхронным переводом, а также удобные зоны для переговоров. Просторные выставочные павильоны обеспечивают комфортные условия для демонстрации продукции и услуг. "]},{title:"Venue",data:["The Exhibition Centre of the Chamber of Commerce and Industry of Turkmenistan is a modern venue designed for international exhibitions, conferences, forums, and business meetings.","The centre is equipped with cutting-edge technical solutions, including multimedia equipment, sound and lighting systems, conference rooms with simultaneous translation, and comfortable areas for negotiations. Spacious exhibition pavilions provide ideal conditions for showcasing products and services."]},{title:"Geçirilýän ýeri",data:["Türkmenistanyň Söwda-senagat edarasynyň Sergi merkezi bu halkara sergileri, konferensiýalary, forumlary we işewür duşuşyklary geçirmek üçin häzirkizaman meýdançasydyr.","Merkez öňdebaryjy tehniki çözgütler, şol sanda multimedia enjamlary, sesgüýçlendiriji we yşyklandyryjy sistemalar, sinhron terjimeli konferens-zallary, şeýle hem gepleşikler üçin oňaýly zonalar bilen abzallaşdyrylandyr. Giň sergi pawilýonlary önümleri görkezmek we hyzmatlar üçin rahat şertleri üpjün edýärler."]}],bM=({className:e})=>{const t=Ee(n=>n.lang);return f.jsx("section",{className:V("gap-6 relative overflow-hidden",e),children:f.jsxs(Ge,{className:"md:py-20 py-10 grid-cols-1 lg:grid-cols-2 lg:gap-12 gap-0 grid",children:[f.jsxs("div",{className:"flex-[0_0_50%]",children:[f.jsx("h3",{className:"h2 mb-6",children:Hh[vt(t)].title}),f.jsx("div",{className:"text-lg flex flex-col gap-6 text-on_surface_v normal mb-10",children:Hh[vt(t)].data.map(n=>f.jsx("p",{children:n},n))})]}),f.jsx("div",{className:"h-full max-size-[600px] flex-[0_0_50%]",children:f.jsx("img",{src:"/about-place.jpg",alt:"",className:"size-full object-contain"})})]})})},no=[{title:"Приглашение к участию",p:"Министерство текстильной промышленности Туркменистана приглашает бизнес-сообщество со всего мира присоединиться к этому уникальному событию, которое станет важным шагом к укреплению позиций Туркменистана в международной экономической арене.",button1:"Забронировать стенд",button2:"B2B | B2G встречи"},{title:"Invitation to Participate",p:"Ministry of Textile Industry of Turkmenistan invites the global business community to join this unique event, which will be a significant step toward strengthening Turkmenistan's position on the global economic stage",button1:"Book a stand",button2:"B2B | B2G meetings"},{title:"Gatnaşmaga çakylyk",p:"Türkmenistanyň dokma senagaty Ministrligi Türkmenistanyň halkara ykdysady arenada orunlaryny berkitmekde wajyp ädim boljak bu uly waka gatnaşmaga bütin dünýäniň biznes-bileleşiklerini çagyrýar.",button1:"Stend bronlamak",button2:"B2B | B2G duşuşyklar"}],wM=({className:e})=>{const t=Ee(n=>n.lang);return f.jsxs("section",{className:V("md:py-20 py-10 relative overflow-hidden",e),children:[f.jsx("img",{src:"/CTA.png",className:"absolute top-0 left-0 size-full -z-10 object-cover"}),f.jsxs(Ge,{children:[f.jsx("h3",{className:"h2 text-center !text-on_primary mb-6",children:no[vt(t)].title}),f.jsx("p",{className:"text-center md:text-lg text-sm text-primary_03 max-w-[828px] px-5 mx-auto mb-10",children:no[vt(t)].p}),f.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[f.jsx(_e,{to:"/stend-form",className:"w-full",children:f.jsx(nt,{className:"bg-reverse_primary w-full text-primary hover:bg-reverse_primary/90",children:no[vt(t)].button1})}),f.jsx(_e,{to:"/B2B-B2GS",className:"w-full",children:f.jsx(nt,{className:"bg-reverse_primary w-full hover:bg-reverse_primary/90 text-primary",children:no[vt(t)].button2})})]})]})]})},Ox=e=>{const t=Ee(r=>r.lang),{data:n,isPending:s}=Tn({queryKey:["static-words",t,e],queryFn:()=>Yk(t,e),select:({data:r})=>r.data});return{data:n,isPending:s}},SM=()=>{var h,y,g,p,v,x,b,w;const e=Ee(_=>_.lang),{t}=js("about"),{data:n,isPending:s}=Ox("2"),r=(h=n==null?void 0:n.find(_=>_.key==="about_1"))==null?void 0:h.text,i=(y=n==null?void 0:n.find(_=>_.key==="about_2"))==null?void 0:y.text,o=(g=n==null?void 0:n.find(_=>_.key==="about_3"))==null?void 0:g.text,a=(p=n==null?void 0:n.find(_=>_.key==="about_4"))==null?void 0:p.text,l=(v=n==null?void 0:n.find(_=>_.key==="about_5"))==null?void 0:v.list,c=(x=n==null?void 0:n.find(_=>_.key==="about_6"))==null?void 0:x.text,u=(b=n==null?void 0:n.find(_=>_.key==="about_7"))==null?void 0:b.text,d=(w=n==null?void 0:n.find(_=>_.key==="about_8"))==null?void 0:w.list;return s?f.jsx(ts,{}):f.jsxs(Ge,{className:"flex flex-col md:my-20 my-10 gap-16",children:[f.jsxs("div",{className:"flex flex-col gap-6",children:[f.jsx("h2",{className:"h2",children:r}),f.jsx("div",{className:"flex flex-col p gap-3",dangerouslySetInnerHTML:{__html:i??""}})]}),f.jsxs("div",{className:"flex flex-col gap-6",children:[f.jsx("h3",{className:"h2",children:o}),f.jsx("h4",{className:"p",children:a}),f.jsx("ol",{type:"1",className:"list-decimal pl-8 flex flex-col gap-3 ",children:l==null?void 0:l.map((_,S)=>f.jsx("li",{className:"p",children:e==="ru"?_.text_ru:_.text_en},S))})]}),f.jsxs("div",{className:"flex flex-col gap-6",children:[f.jsx("h2",{className:"h2",children:c}),f.jsx("h3",{className:"p",children:u}),f.jsx("ul",{className:"list-disc pl-8 flex flex-col gap-3 p",children:d==null?void 0:d.map((_,S)=>f.jsxs("li",{children:[" ",e==="ru"?_.text_ru:_.text_en]},S))})]}),f.jsx(_e,{className:"w-fit mx-auto",to:"/become-sponsor",children:f.jsx(nt,{children:t("main.button")})})]})},gO={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function yO(e,t){const n=e.scrollSnapList();return typeof t=="number"?n.map(()=>t):t(n,e)}function vO(e,t){const n=e.rootNode();return t&&t(n)||n}function va(e={}){let t,n,s,r,i=null,o=0,a=!1,l=!1,c=!1,u=!1;function d(F,Y){n=F;const{mergeOptions:J,optionsAtMedia:Z}=Y,K=J(gO,va.globalOptions),ie=J(K,e);if(t=Z(ie),n.scrollSnapList().length<=1)return;u=t.jump,s=!1,r=yO(n,t.delay);const{eventStore:he,ownerDocument:ve}=n.internalEngine(),$e=!!n.internalEngine().options.watchDrag,Xe=vO(n,t.rootNode);he.add(ve,"visibilitychange",x),$e&&n.on("pointerDown",w),$e&&!t.stopOnInteraction&&n.on("pointerUp",_),t.stopOnMouseEnter&&he.add(Xe,"mouseenter",S),t.stopOnMouseEnter&&!t.stopOnInteraction&&he.add(Xe,"mouseleave",T),t.stopOnFocusIn&&n.on("slideFocusStart",v),t.stopOnFocusIn&&!t.stopOnInteraction&&he.add(n.containerNode(),"focusout",p),t.playOnInit&&p()}function h(){n.off("pointerDown",w).off("pointerUp",_).off("slideFocusStart",v),v(),s=!0,a=!1}function y(){const{ownerWindow:F}=n.internalEngine();F.clearTimeout(o),o=F.setTimeout(L,r[n.selectedScrollSnap()]),i=new Date().getTime(),n.emit("autoplay:timerset")}function g(){const{ownerWindow:F}=n.internalEngine();F.clearTimeout(o),o=0,i=null,n.emit("autoplay:timerstopped")}function p(){if(!s){if(b()){c=!0;return}a||n.emit("autoplay:play"),y(),a=!0}}function v(){s||(a&&n.emit("autoplay:stop"),g(),a=!1)}function x(){if(b())return c=a,v();c&&p()}function b(){const{ownerDocument:F}=n.internalEngine();return F.visibilityState==="hidden"}function w(){l||v()}function _(){l||p()}function S(){l=!0,v()}function T(){l=!1,p()}function R(F){typeof F<"u"&&(u=F),p()}function A(){a&&v()}function P(){a&&p()}function O(){return a}function L(){const{index:F}=n.internalEngine(),Y=F.clone().add(1).get(),J=n.scrollSnapList().length-1,Z=t.stopOnLastSnap&&Y===J;if(n.canScrollNext()?n.scrollNext(u):n.scrollTo(0,u),n.emit("autoplay:select"),Z)return v();p()}function M(){if(!i)return null;const F=r[n.selectedScrollSnap()],Y=new Date().getTime()-i;return F-Y}return{name:"autoplay",options:e,init:d,destroy:h,play:R,stop:A,reset:P,isPlaying:O,timeUntilNext:M}}va.globalOptions=void 0;const _M=()=>{const{t:e}=js("home"),[t]=Rn({loop:!0},[va({delay:5e3,stopOnInteraction:!1})]),n=Eo("(min-width: 1024px)"),s=Eo("(min-width: 768px)");function r(){return n?e("banners.lg",{returnObjects:!0}):s?e("banners.md",{returnObjects:!0}):e("banners.sm",{returnObjects:!0})}const i=r();return f.jsx("div",{className:"mb-6",children:f.jsx("section",{className:"flex flex-col gap-5",children:f.jsx("div",{ref:t,className:"embla overflow-hidden",children:f.jsx("div",{className:"embla__container flex lg:max-h-[600px] lg:min-h-[320px]",children:i==null?void 0:i.map((o,a)=>o.path.includes(".mp4")?f.jsx(_e,{to:(o==null?void 0:o.link)??"",className:"embla__slide flex-[0_0_100%]",children:f.jsx("video",{autoPlay:!0,controls:!1,muted:!0,loop:!0,src:o.path,className:"size-full object-cover"})},a):o.link?f.jsx(_e,{to:o.link,className:"embla__slide flex-[0_0_100%]",children:f.jsx("img",{src:o.path,className:"size-full object-cover"})},a):f.jsx("div",{className:"embla__slide flex-[0_0_100%]",children:f.jsx("img",{src:o.path,className:"size-full object-cover"})},a))})})})})},xO=()=>{const e=Ee(s=>s.lang),{data:t,isPending:n}=Tn({queryKey:["home-contacts",e],queryFn:()=>Jk(e),select:({data:s})=>s.data});return{data:t,isPending:n}},EM=({className:e})=>{const t=Ee(o=>o.lang),{data:n,isPending:s}=jx(),{data:r}=xO(),i=vt(t);return s?f.jsx(ts,{}):f.jsx("section",{className:V("bg-surface_high my-20 pt-10 pb-20",e),children:f.jsxs(Ge,{children:[f.jsx("h2",{className:"h2 mb-6",children:kx[i].title}),f.jsxs("div",{className:"flex flex-col gap-6",children:[f.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:n==null?void 0:n.map((o,a)=>m.createElement(mm,{...o,key:a,className:"w-full"}))}),f.jsx("div",{className:"md:p-10 pt-16 flex flex-col md:flex-row items-center gap-6",children:r==null?void 0:r.map((o,a)=>m.createElement(CS,{...o,key:a,className:"w-full"}))}),f.jsx(_e,{to:"/stend-form",className:"md:w-fit w-full mx-auto",children:f.jsx(nt,{className:"w-full",children:{ru:"Забронируйте стенд",en:"Book a stand",tm:"Stend bronlaň"}[t]})})]})]})})},qh=[{h2:"Выставка-ярмарка «TurkmenTextile Expo-2025» в Ашхабаде",p:`Международная выставка-ярмарка, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров.
Наша миссия укрепить позиции Туркменистана как ключевого центра текстильной и модной индустрии.
`,p_2:`Выставка станет платформой для изучения устойчивых практик, современных технологий и дизайнерских решений, вдохновляя на развитие индустрии.
«Turkmentextile Expo-2025» это платформа, соединяющий традиции и инновации, производителей и потребителей, Туркменистан и весь мир!`,data:[{nums:"10,000 m²",text:"Выставочной площади"},{nums:"10000+",text:"Ожидаемых посетителей "},{nums:"100+",text:"Экспонентов из более чем 30 стран"},{nums:"80%",text:"Участников топ-менеджмента"}],button:"Отчет",button2:"Каталог"},{h2:"TurkmenTextile Expo-2025 in Ashgabat",p:`An international exhibition will unite global industry leaders, innovative manufacturers, and creative designers.
Our mission is to strengthen Turkmenistan's position as a key hub for the textile and fashion industry.
`,p_2:"The exhibition will serve as a platform to explore sustainable practices, modern technologies, and design solutions, inspiring the development of the industry.",data:[{nums:"10,000 m²",text:"Exhibition area"},{nums:"10000+",text:"Expected visitors "},{nums:"100+",text:"Exhibitors from over 30 countries"},{nums:"80%",text:"Participants are top-management"}],button:"Report",button2:"Catalog"},{h2:"Aşgabatda «TurkmenTextile Expo-2025» sergi-ýarmarkasy",p:`Pudagyň dünýä liderlerini, innowasion önümçileri we döredijilikli dizaýnerleri birleşdirjek halkara sergi-ýarmarka.
Biziň maksadymyz Türkmenistany dokma we moda senagatynyň esasy merkezi hökmünde berkitmek.
`,p_2:`Sergi durnukly praktikalary, häzirkizaman tilsimatlary we dizaýn çözgütlerini öwrenmek üçin platforma bolar.
«TurkmenTextile Expo-2025» bu däp-dessurlary we innowasiýalary, önüm öndürijileri we sarp edijileri, Türkmenistany we dünýäni birleşdirýän platformadyr!`,data:[{nums:"10,000 m²",text:"Sergi meýdanyňky"},{nums:"10000+",text:"Geljek adamlaryň garaşylýan sany"},{nums:"100+",text:"30 ýurtdan gowurak eksponentler"},{nums:"80%",text:"Top-menejmentden gatnaşyjylar"}],button:"Hasabat",button2:"Katalog"}],bO=()=>{const e=Ee(s=>s.lang),{data:t,isPending:n}=Tn({queryKey:["stats",e],queryFn:()=>Qk(e),select:({data:s})=>s.data});return{data:t,isPending:n}},CM=()=>{var c,u;const[e]=Rn(),t=Ee(d=>d.lang),{t:n}=js("home"),{data:s,isPending:r}=Ox("1"),{data:i}=bO(),o=(c=s==null?void 0:s.find(d=>d.key==="index_1"))==null?void 0:c.text,a=(u=s==null?void 0:s.find(d=>d.key==="index_2"))==null?void 0:u.text,l=vt(t);return r?f.jsx(ts,{}):f.jsx("section",{className:"py-20",children:f.jsxs(Ge,{className:"flex flex-col gap-6",children:[f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 items-center",children:[f.jsxs("div",{className:"flex flex-col gap-6",children:[f.jsx("h2",{className:"h2 text-left",children:o}),f.jsx("div",{dangerouslySetInnerHTML:{__html:a||""},className:"md:text-base flex flex-col gap-6 text-sm normal text-left text-[#454545]"}),f.jsxs("div",{className:"flex w-full gap-8",children:[f.jsx(_e,{to:n("reportLink"),target:"_blank",className:"w-fit",children:f.jsx(nt,{children:qh[l].button})}),f.jsx(_e,{target:"_blank",to:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Catalogue/catalogue.pdf",children:f.jsx(nt,{className:"px-16",children:qh[l].button2})})]})]}),f.jsx("video",{src:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/video/Textile2025.mp4",muted:!0,controls:!0,autoPlay:!0,loop:!0,className:"w-full h-auto"})]}),f.jsx("div",{ref:e,className:"embla overflow-hidden",children:f.jsx("div",{className:"flex embla__container items-center gap-6",children:i==null?void 0:i.map(d=>f.jsx(_S,{...d,className:"embla__slide flex-[0_0_288px]"},d.text))})})]})})},TM=()=>{const e=Ee(s=>s.lang),{data:t,isPending:n}=Px();return n?f.jsx(ts,{}):f.jsx("section",{id:"themes",className:"",children:f.jsxs(Ge,{children:[f.jsx("h2",{className:"h2 mb-10 text-center",children:uc[vt(e)].title}),f.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:t==null?void 0:t.map((s,r)=>f.jsx(pm,{...s},r))})]})})},wO=[{data:[{img:"/offer-1.png",title:"Гостиницы, трансфер, визы",btnText:"Скачать путеводитель",text:"По вопросам размещения в гостиницах, визовой поддержки, транспортного и экскурсионного обслуживания Вы можете ознакомиться с путеводителем",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_ru.pdf"},{img:"/offer-2.png",title:"Ознакомьтесь с планом выставки TurkmenTextile Expo 2025",btnText:"Скачать план выставки",text:"Как выбрать лучшее место на выставке? Вы всегда должны помнить, что удачное расположение выставочной экспозиции повышает Ваши шансы привлечь внимание Ваших потенциальных клиентов",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]},{data:[{img:"/offer-2.png",title:"Hotels, transfer, visas;",btnText:"Download Travel Guide",text:"For inquiries regarding hotel accommodations, visa support, transportation, and tour services, please refer to the travel guide;",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_eng.pdf"},{img:"/offer-2.png",title:"Explore “TurkmenTextile Expo-2025” plan;",btnText:"Download exhibition plan.",text:"How to choose the best location at the exhibition? A prime spot increases your chances to attract potential clients;",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]},{data:[{img:"/offer-1.png",title:"Myhmanhanalar, transfer, wizalar",btnText:"Ýol görkezijini ýüklemek",text:"Myhmanhanalara ýerleşmek, wiza goldawy, ulag we ekskursiýa meseleleri boýunça Siz ýol görkezijiden tanyşyp bilersiňiz",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_eng.pdf"},{img:"/offer-2.png",title:"TurkmenTextile Expo 2026 serginiň meýilnamasy bilen tanyşmak",btnText:"Serginiň meýilnamasyny ýüklemeli",text:"Sergide oňat ýeri nädip saýlamaly? Sergi ekspozisiýasyny şowly ýerleşdirmegiň Siziň potensial müşderileriňizi çekmek boýunça mümkinçilikleriňizi has-da artdyrýandygyny Siz hemişe ýatda saklamalysyňyz.",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]}],RM=()=>{const[e,t]=Rn({align:"start"}),[n,s]=m.useState(0),r=Ee(o=>o.lang),i=m.useCallback(o=>{t&&t.scrollTo(o)},[t]);return m.useEffect(()=>{if(!t)return;const o=()=>{s(t.selectedScrollSnap())};return t.on("select",o),()=>{t.off("select",o)}},[t]),f.jsx("section",{className:"bg-surface_high py-10 my-20 relative overflow-hidden",children:f.jsx(Ge,{children:f.jsxs("div",{ref:e,className:"embla ",children:[f.jsx("div",{className:"mb-2 flex gap-6 embla__container",children:wO[vt(r)].data.map(o=>m.createElement(ES,{...o,key:o.title,className:"embla__slide flex-[0_0_300px] sm:flex-[0_0_600px]"}))}),f.jsx(jR,{className:"xl:hidden",scrollTo:i,active:n,slides:2})]})})})},SO=()=>{const e=Ee(s=>s.lang),{data:t,isPending:n}=Tn({queryKey:["sponsors",e],queryFn:()=>i1(e),select:({data:s})=>s.data});return{data:t,isPending:n}},AM=({className:e})=>{const[t]=Rn({loop:!0,align:"start",skipSnaps:!0,duration:75},[va({stopOnInteraction:!1,delay:3e3})]),{data:n,isPending:s}=SO(),{t:r}=js("home",{keyPrefix:"sponsors"});return s?f.jsx(ts,{}):f.jsx("section",{className:V("md:py-20",e),children:f.jsxs(Ge,{className:"flex flex-col gap-6",children:[f.jsx("h2",{className:"h2",children:r("title")}),f.jsx("div",{ref:t,className:"embla overflow-hidden",children:f.jsx("div",{className:"embla__container flex",children:n==null?void 0:n.map((i,o)=>{var a,l;return i.link?f.jsxs(_e,{target:"_blank",to:i.link,className:"bg-surface_container flex flex-col embla__slide mr-6 min-w-0 flex-[0_0_288px] items-center justify-center min-h-[128px] w-full",children:[f.jsx("img",{src:(a=i==null?void 0:i.image)==null?void 0:a.path,alt:"logo",className:"object-contain flex-auto"}),f.jsx("div",{className:"bg-secondary_container text-xs text-center py-1 px-2 w-full",children:i.name})]},o):f.jsxs("div",{className:"bg-surface_container embla__slide mr-6 min-w-0 flex-[0_0_288px] items-center justify-center minh-[128px] w-full",children:[f.jsx("div",{className:"h-[128px] w-full",children:f.jsx("img",{src:(l=i==null?void 0:i.image)==null?void 0:l.path,alt:"logo",className:"object-contain size-full"})}),f.jsx("div",{className:"bg-secondary_container text-xs text-center py-1 px-2",children:i.name})]},o)})})})]})})},_O=e=>{const{data:t,isPending:n}=Tn({queryKey:["news",e],queryFn:()=>n1(e),select:({data:s})=>s.data});return{data:t,isPending:n}},EO=({className:e,featured_images:t,title:n,id:s,published_at:r})=>{var i;return f.jsx(_e,{to:`/news/${s}`,children:f.jsxs("article",{className:V("bg-surface_container justify-between h-[400px] flex flex-col gap-6",e),children:[f.jsxs("div",{className:"flex flex-col gap-4 px-6 pt-6",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("h4",{children:r.slice(0,10).split("-").reverse().join(".")}),f.jsx(s0,{})]}),f.jsx("hr",{}),f.jsx("h3",{className:"text-[20px] leading-[130%] line-clamp-3",children:n})]}),f.jsx("img",{src:((i=t==null?void 0:t[0])==null?void 0:i.path)||"",alt:"news image",className:"w-full h-[220px] object-cover"})]})})},NM=()=>{const e=Ee(s=>s.lang),{data:t,isPending:n}=_O(e);return n?f.jsx(ts,{}):f.jsx("section",{className:V("md:mb-[120px] mb-20"),children:f.jsxs(Ge,{children:[f.jsx("h2",{className:"h2 text-center md:mb-8 mb-6",children:{ru:"Новости",en:"News",tm:"Täzelikler"}[e]}),f.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:t==null?void 0:t.slice(0,3).map(s=>m.createElement(EO,{...s,key:s.title}))})]})})},PM=({className:e})=>{const{t}=js("home"),{items:n}=t("buttons",{returnObjects:!0});return f.jsx("section",{className:V("",e),children:f.jsx(Ge,{children:f.jsx("div",{className:"grid lg:grid-cols-6 sm:grid-cols-2 grid-cols-1 gap-6",children:n.map((s,r)=>s.dropdown?f.jsx(Uo,{dropDownContent:s.items,triggerClassName:"w-full",className:"!w-full",children:f.jsxs(nt,{size:"lg",variant:"teritary",className:"w-full drop-shadow-sm shadow-md md:text-xl text-lg bg-teritary text-on_teritary hover:bg-teritary/90",children:[s.text,f.jsx(Uv,{w:"40",h:"40",color:"white"})]})},r):f.jsx(_e,{to:s.link??"",target:s.blank?"_blank":"",children:f.jsx(nt,{variant:"teritary",size:"lg",className:"w-full !flex drop-shadow-sm px-2 shadow-md md:text-lg bg-teritary text-on_teritary hover:bg-teritary/90",children:s.text})},r))})})})},CO=()=>{const{t:e}=js("nav"),t=Ee(i=>i.lang),n=zo(i=>i.sheet),s=zo(i=>i.setSheet),r=e("navigation",{returnObjects:!0});return f.jsxs(eS,{onOpenChange:()=>s(!n),open:n,children:[f.jsx(tS,{children:f.jsxs("div",{className:"flex flex-col gap-1 lg:hidden items-center justify-center size-10",children:[f.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),f.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),f.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"})]})}),f.jsxs(lm,{className:"overflow-y-auto z-[100]",children:[f.jsx(nS,{}),f.jsxs(cm,{className:"mt-16 flex flex-col gap-2",children:[f.jsx(_e,{to:t===Ke.RU?"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_ru.pdf":"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_eng.pdf",children:f.jsx(nt,{variant:"secondary",size:"sm",className:"bg-teritary w-full text-on_teritary hover:bg-teritary/90",children:{ru:"Официальная поддержка",en:"Official Support",tm:"Resmi goldaw"}[t]})}),f.jsx(_e,{to:"/become-sponsor",children:f.jsx(nt,{variant:"secondary",size:"sm",className:"bg-primary w-full text-white hover:bg-primary/90",children:{ru:"Стать спонсором",en:"Become a sponsor",tm:"Hemaýatkär bolmak"}[t]})})]}),f.jsx("hr",{className:"border-slate-500/20 my-8"}),f.jsx("div",{className:"flex flex-col gap-6",children:r.map(i=>i.drop?f.jsx(Uo,{className:"w-full",triggerClassName:"justify-between py-2",color:"black",dropDownContent:i.dropDownContent,title:i.title},i.title):f.jsx(_e,{target:i.blank??"",className:"py-2",to:i.link||"",onClick:()=>s(!1),children:i.title},i.title))})]})]})},kM=()=>{const e=Ee(s=>s.lang),{t}=js("nav"),n=t("navigation",{returnObjects:!0});return f.jsx("div",{className:"lg:h-[128px] h-20",children:f.jsxs("header",{className:"fixed top-0 left-0 right-0 z-[100]",children:[f.jsx("div",{className:"h-12 hidden lg:flex bg-sur text-surface-bg items-center overflow-hidden bg-background",children:f.jsxs(Ge,{className:"flex items-center justify-between",children:[f.jsxs("div",{className:"gap-8 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(m0,{}),f.jsx("h4",{className:"text-sm",children:{ru:"Ашхабад, Туркменистан",en:"Ashgabat, Turkmenistan",tm:"Aşgabat, Türkmenistan"}[e]})]}),f.jsx("nav",{className:"flex items-center gap-6",children:n.slice(0,3).map(s=>s.drop?f.jsx(Uo,{color:"black",dropDownContent:s.dropDownContent,title:s.title},s.title):f.jsx(_e,{target:s.blank?"_blank":"",className:"py-2",to:s.link||"",children:s.title},s.title))})]}),f.jsxs("div",{className:"flex items-center gap-6",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(v0,{size:16,strokeWidth:"3px"}),f.jsx("h4",{className:"text-sm",children:"+99371871812"})]}),f.jsx(hh,{className:"!text-on_surface"})]})]})}),f.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:f.jsxs(Ge,{className:"flex items-center justify-between ",children:[f.jsxs("div",{className:"flex items-center gap-8",children:[f.jsx(_e,{to:"/",children:f.jsx(hm,{className:""})}),f.jsx("nav",{className:"lg:flex hidden items-center gap-3 xl:gap-6 text-white",children:n.slice(3,6).map(s=>s.drop?f.jsx(Uo,{dropDownContent:s.dropDownContent,title:s.title,color:"white"},s.title):f.jsx(_e,{className:"py-2",to:s.link||"",children:s.title},s.title))})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(hh,{className:"lg:hidden",light:!0}),f.jsx(CO,{})]}),f.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[f.jsx(_e,{to:e===Ke.RU?"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_ru.pdf":"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_eng.pdf",target:"_blank",children:f.jsx(nt,{variant:"secondary",size:"sm",className:"bg-white text-primary hover:bg-white/90 h-12 w-fit",children:{ru:"Официальная поддержка",en:"Official Support",tm:"Resmi goldaw"}[e]})}),f.jsx(_e,{to:"/become-sponsor",children:f.jsx(nt,{variant:"secondary",size:"sm",className:"bg-teritary text-white hover:bg-teritary/90 h-12 w-fit",children:{ru:"Стать спонсором",en:"Become a sponsor",tm:"Hemaýatkär bolmak"}[e]})})]})]})})]})})},jM=()=>{const e=Ee(t=>t.lang);return f.jsxs("footer",{children:[f.jsx(Vv,{}),f.jsx("div",{className:"py-5 bg-primary",children:f.jsxs(Ge,{className:"flex flex-col gap-6",children:[f.jsxs("div",{className:"flex flex-col md:flex-row gap-6 md:items-end md:justify-between items-center",children:[f.jsx(hm,{}),f.jsxs("div",{className:"flex items-center gap-6",children:[f.jsx(_e,{target:"_blank",to:"https://www.facebook.com/profile.php?id=61567254728028",children:f.jsx(d0,{className:"text-white"})}),f.jsx(_e,{target:"_blank",to:"https://www.instagram.com/turkmenexpo_tm?igsh=bnhkOWpmNWcwcHBq",children:f.jsx("img",{src:"/inst.svg"})}),f.jsx(_e,{target:"_blank",to:"https://www.linkedin.com/company/turkmen-expo",children:f.jsx("img",{src:"/in.svg"})}),f.jsx(_e,{target:"_blank",to:"https://x.com/turkmenexpo?t=D-XSa8d0AC8GAv5peAzteA&s=09",children:f.jsx("img",{src:"/x.svg"})})]})]}),f.jsx("hr",{className:"border-white/50"}),f.jsx("h5",{className:"text-base text-center normal text-white",children:{ru:"©2025 Все права защищены",en:"All rights reserved",tm:"Ähli hukuklar goralan"}[e]})]})})]})},Ge=({className:e,children:t})=>f.jsx("div",{className:V("w-full mx-auto max-w-[1240px] px-4",e),children:t}),OM=({title:e})=>f.jsxs("div",{className:"relative flex items-center h-[116px] md:h-[216px] w-full justify-center",children:[f.jsx("img",{src:"/cover.png",className:"-z-10 absolute size-full object-cover top-0 left-0"}),f.jsx("h1",{className:"text-on_primary md:text-5xl text-3xl",children:e})]});export{Ge as $,py as A,my as B,VO as C,nt as D,bR as E,jM as F,FO as G,kM as H,DO as I,BO as J,dN as K,jO as L,Fe as M,OM as N,IO as O,ut as P,SM as Q,fM as R,yr as S,vM as T,xM as U,bM as V,wM as W,aM as X,js as Y,tm as Z,lM as _,b1 as a,nj as a0,sj as a1,mM as a2,hM as a3,OO as a4,ts as a5,Tn as a6,cM as a7,_O as a8,EO as a9,uM as aa,pM as ab,oM as ac,Rn as ad,va as ae,dM as af,gM as ag,yl as ah,em as ai,AO as aj,NO as ak,_M as b,V as c,PM as d,CM as e,AM as f,RM as g,TM as h,MO as i,f as j,EM as k,NM as l,vc as m,Wt as n,so as o,xt as p,yp as q,MA as r,vr as s,ra as t,Ee as u,Hr as v,vt as w,_R as x,hy as y,yh as z};