var Hu=e=>{throw TypeError(e)};var va=(e,t,n)=>t.has(e)||Hu("Cannot "+n);var E=(e,t,n)=>(va(e,t,"read from private field"),n?n.call(e):t.get(e)),ee=(e,t,n)=>t.has(e)?Hu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),q=(e,t,n,r)=>(va(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),pe=(e,t,n)=>(va(e,t,"access private method"),n);var Bi=(e,t,n,r)=>({set _(s){q(e,t,s,n)},get _(){return E(e,t,r)}});import{r as jx,a as m,R as ll,b as ul,c as Yh,L as Se,d as $i,e as de}from"./react-vendor-CJoWVsUG.js";var xa={exports:{}},Ts={};/** * @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 qu;function Ox(){if(qu)return Ts;qu=1;var e=jx(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,c,l){var u,d={},h=null,y=null;l!==void 0&&(h=""+l),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(y=c.ref);for(u in c)r.call(c,u)&&!i.hasOwnProperty(u)&&(d[u]=c[u]);if(a&&a.defaultProps)for(u in c=a.defaultProps,c)d[u]===void 0&&(d[u]=c[u]);return{$$typeof:t,type:a,key:h,ref:y,props:d,_owner:s.current}}return Ts.Fragment=n,Ts.jsx=o,Ts.jsxs=o,Ts}var Zu;function Mx(){return Zu||(Zu=1,xa.exports=Ox()),xa.exports}var f=Mx(),Ti=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(){}},Dx={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},On,cl,Uh,Ix=(Uh=class{constructor(){ee(this,On,Dx);ee(this,cl,!1)}setTimeoutProvider(e){q(this,On,e)}setTimeout(e,t){return E(this,On).setTimeout(e,t)}clearTimeout(e){E(this,On).clearTimeout(e)}setInterval(e,t){return E(this,On).setInterval(e,t)}clearInterval(e){E(this,On).clearInterval(e)}},On=new WeakMap,cl=new WeakMap,Uh),sr=new Ix;function Lx(e){setTimeout(e,0)}var wr=typeof window>"u"||"Deno"in globalThis;function ht(){}function Fx(e,t){return typeof e=="function"?e(t):e}function Ya(e){return typeof e=="number"&&e>=0&&e!==1/0}function Jh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function $n(e,t){return typeof e=="function"?e(t):e}function Pt(e,t){return typeof e=="function"?e(t):e}function Ku(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==dl(o,t.options))return!1}else if(!Ks(t.queryKey,o))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||i&&!i(t))}function Gu(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Zs(t.options.mutationKey)!==Zs(i))return!1}else if(!Ks(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function dl(e,t){return((t==null?void 0:t.queryKeyHashFn)||Zs)(e)}function Zs(e){return JSON.stringify(e,(t,n)=>ec(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Ks(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ks(e[n],t[n])):!1}var Vx=Object.prototype.hasOwnProperty;function ep(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Qu(e)&&Qu(t);if(!r&&!(ec(e)&&ec(t)))return t;const i=(r?e:Object.keys(e)).length,o=r?t:Object.keys(t),a=o.length,c=r?new Array(a):{};let l=0;for(let u=0;u{sr.setTimeout(t,e)})}function tc(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?ep(e,t):t}function $x(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ux(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var fl=Symbol();function tp(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===fl?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function np(e,t){return typeof e=="function"?e(...t):!!e}function zx(e,t,n){let r=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??(s=t()),r||(r=!0,s.aborted?n():s.addEventListener("abort",n,{once:!0})),s)}),e}var cr,Mn,Kr,zh,Wx=(zh=class extends Ti{constructor(){super();ee(this,cr);ee(this,Mn);ee(this,Kr);q(this,Kr,t=>{if(!wr&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){E(this,Mn)||this.setEventListener(E(this,Kr))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,Mn))==null||t.call(this),q(this,Mn,void 0))}setEventListener(t){var n;q(this,Kr,t),(n=E(this,Mn))==null||n.call(this),q(this,Mn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){E(this,cr)!==t&&(q(this,cr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof E(this,cr)=="boolean"?E(this,cr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},cr=new WeakMap,Mn=new WeakMap,Kr=new WeakMap,zh),hl=new Wx;function nc(){let e,t;const n=new Promise((s,i)=>{e=s,t=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}var Hx=Lx;function qx(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=Hx;const i=a=>{t?e.push(a):s(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||o()}return c},batchCalls:a=>(...c)=>{i(()=>{a(...c)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var qe=qx(),Gr,Dn,Qr,Wh,Zx=(Wh=class extends Ti{constructor(){super();ee(this,Gr,!0);ee(this,Dn);ee(this,Qr);q(this,Qr,t=>{if(!wr&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){E(this,Dn)||this.setEventListener(E(this,Qr))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,Dn))==null||t.call(this),q(this,Dn,void 0))}setEventListener(t){var n;q(this,Qr,t),(n=E(this,Dn))==null||n.call(this),q(this,Dn,t(this.setOnline.bind(this)))}setOnline(t){E(this,Gr)!==t&&(q(this,Gr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return E(this,Gr)}},Gr=new WeakMap,Dn=new WeakMap,Qr=new WeakMap,Wh),po=new Zx;function Kx(e){return Math.min(1e3*2**e,3e4)}function rp(e){return(e??"online")==="online"?po.isOnline():!0}var rc=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function sp(e){let t=!1,n=0,r;const s=nc(),i=()=>s.status!=="pending",o=p=>{var v;if(!i()){const x=new rc(p);h(x),(v=e.onCancel)==null||v.call(e,x)}},a=()=>{t=!0},c=()=>{t=!1},l=()=>hl.isFocused()&&(e.networkMode==="always"||po.isOnline())&&e.canRun(),u=()=>rp(e.networkMode)&&e.canRun(),d=p=>{i()||(r==null||r(),s.resolve(p))},h=p=>{i()||(r==null||r(),s.reject(p))},y=()=>new Promise(p=>{var v;r=x=>{(i()||l())&&p(x)},(v=e.onPause)==null||v.call(e)}).then(()=>{var p;r=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??(wr?0:3),w=e.retryDelay??Kx,_=typeof w=="function"?w(n,x):w,S=b===!0||typeof b=="number"&&nl()?void 0:y()).then(()=>{t?h(x):g()})})};return{promise:s,status:()=>s.status,cancel:o,continue:()=>(r==null||r(),s),cancelRetry:a,continueRetry:c,canStart:u,start:()=>(u()?g():y().then(g),s)}}var lr,Hh,ip=(Hh=class{constructor(){ee(this,lr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ya(this.gcTime)&&q(this,lr,sr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(wr?1/0:5*60*1e3))}clearGcTimeout(){E(this,lr)&&(sr.clearTimeout(E(this,lr)),q(this,lr,void 0))}},lr=new WeakMap,Hh),ur,Xr,Rt,dr,ze,wi,fr,Mt,pn,qh,Gx=(qh=class extends ip{constructor(t){super();ee(this,Mt);ee(this,ur);ee(this,Xr);ee(this,Rt);ee(this,dr);ee(this,ze);ee(this,wi);ee(this,fr);q(this,fr,!1),q(this,wi,t.defaultOptions),this.setOptions(t.options),this.observers=[],q(this,dr,t.client),q(this,Rt,E(this,dr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,q(this,ur,Ju(this.options)),this.state=t.state??E(this,ur),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=E(this,ze))==null?void 0:t.promise}setOptions(t){if(this.options={...E(this,wi),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Ju(this.options);n.data!==void 0&&(this.setState(Yu(n.data,n.dataUpdatedAt)),q(this,ur,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,Rt).remove(this)}setData(t,n){const r=tc(this.state.data,t,this.options);return pe(this,Mt,pn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){pe(this,Mt,pn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=E(this,ze))==null?void 0:r.promise;return(s=E(this,ze))==null||s.cancel(t),n?n.then(ht).catch(ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(E(this,ur))}isActive(){return this.observers.some(t=>Pt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fl||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>$n(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:!Jh(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=E(this,ze))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=E(this,ze))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),E(this,Rt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(E(this,ze)&&(E(this,fr)?E(this,ze).cancel({revert:!0}):E(this,ze).cancelRetry()),this.scheduleGc()),E(this,Rt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pe(this,Mt,pn).call(this,{type:"invalidate"})}async fetch(t,n){var c,l,u,d,h,y,g,p,v,x,b,w;if(this.state.fetchStatus!=="idle"&&((c=E(this,ze))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(E(this,ze))return E(this,ze).continueRetry(),E(this,ze).promise}if(t&&this.setOptions(t),!this.options.queryFn){const _=this.observers.find(S=>S.options.queryFn);_&&this.setOptions(_.options)}const r=new AbortController,s=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(q(this,fr,!0),r.signal)})},i=()=>{const _=tp(this.options,n),T=(()=>{const A={client:E(this,dr),queryKey:this.queryKey,meta:this.meta};return s(A),A})();return q(this,fr,!1),this.options.persister?this.options.persister(_,T,this):_(T)},a=(()=>{const _={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:E(this,dr),state:this.state,fetchFn:i};return s(_),_})();(l=this.options.behavior)==null||l.onFetch(a,this),q(this,Xr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&pe(this,Mt,pn).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta}),q(this,ze,sp({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:_=>{_ instanceof rc&&_.revert&&this.setState({...E(this,Xr),fetchStatus:"idle"}),r.abort()},onFail:(_,S)=>{pe(this,Mt,pn).call(this,{type:"failed",failureCount:_,error:S})},onPause:()=>{pe(this,Mt,pn).call(this,{type:"pause"})},onContinue:()=>{pe(this,Mt,pn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const _=await E(this,ze).start();if(_===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(_),(y=(h=E(this,Rt).config).onSuccess)==null||y.call(h,_,this),(p=(g=E(this,Rt).config).onSettled)==null||p.call(g,_,this.state.error,this),_}catch(_){if(_ instanceof rc){if(_.silent)return E(this,ze).promise;if(_.revert){if(this.state.data===void 0)throw _;return this.state.data}}throw pe(this,Mt,pn).call(this,{type:"error",error:_}),(x=(v=E(this,Rt).config).onError)==null||x.call(v,_,this),(w=(b=E(this,Rt).config).onSettled)==null||w.call(b,this.state.data,_,this),_}finally{this.scheduleGc()}}},ur=new WeakMap,Xr=new WeakMap,Rt=new WeakMap,dr=new WeakMap,ze=new WeakMap,wi=new WeakMap,fr=new WeakMap,Mt=new WeakSet,pn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...op(r.data,this.options),fetchMeta:t.meta??null};case"success":const s={...r,...Yu(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return q(this,Xr,t.manual?s:void 0),s;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),qe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),E(this,Rt).notify({query:this,type:"updated",action:t})})},qh);function op(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:rp(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Yu(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Ju(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var dt,me,Si,it,hr,Yr,yn,In,_i,Jr,es,pr,mr,Ln,ts,be,Os,sc,ic,oc,ac,cc,lc,uc,ap,Zh,Qx=(Zh=class extends Ti{constructor(t,n){super();ee(this,be);ee(this,dt);ee(this,me);ee(this,Si);ee(this,it);ee(this,hr);ee(this,Yr);ee(this,yn);ee(this,In);ee(this,_i);ee(this,Jr);ee(this,es);ee(this,pr);ee(this,mr);ee(this,Ln);ee(this,ts,new Set);this.options=n,q(this,dt,t),q(this,In,null),q(this,yn,nc()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,me).addObserver(this),ed(E(this,me),this.options)?pe(this,be,Os).call(this):this.updateResult(),pe(this,be,ac).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return dc(E(this,me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return dc(E(this,me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pe(this,be,cc).call(this),pe(this,be,lc).call(this),E(this,me).removeObserver(this)}setOptions(t){const n=this.options,r=E(this,me);if(this.options=E(this,dt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Pt(this.options.enabled,E(this,me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pe(this,be,uc).call(this),E(this,me).setOptions(this.options),n._defaulted&&!Ja(this.options,n)&&E(this,dt).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,me),observer:this});const s=this.hasListeners();s&&td(E(this,me),r,this.options,n)&&pe(this,be,Os).call(this),this.updateResult(),s&&(E(this,me)!==r||Pt(this.options.enabled,E(this,me))!==Pt(n.enabled,E(this,me))||$n(this.options.staleTime,E(this,me))!==$n(n.staleTime,E(this,me)))&&pe(this,be,sc).call(this);const i=pe(this,be,ic).call(this);s&&(E(this,me)!==r||Pt(this.options.enabled,E(this,me))!==Pt(n.enabled,E(this,me))||i!==E(this,Ln))&&pe(this,be,oc).call(this,i)}getOptimisticResult(t){const n=E(this,dt).getQueryCache().build(E(this,dt),t),r=this.createResult(n,t);return Yx(this,r)&&(q(this,it,r),q(this,Yr,this.options),q(this,hr,E(this,me).state)),r}getCurrentResult(){return E(this,it)}trackResult(t,n){return new Proxy(t,{get:(r,s)=>(this.trackProp(s),n==null||n(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&E(this,yn).status==="pending"&&E(this,yn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,s))})}trackProp(t){E(this,ts).add(t)}getCurrentQuery(){return E(this,me)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=E(this,dt).defaultQueryOptions(t),r=E(this,dt).getQueryCache().build(E(this,dt),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return pe(this,be,Os).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),E(this,it)))}createResult(t,n){var N;const r=E(this,me),s=this.options,i=E(this,it),o=E(this,hr),a=E(this,Yr),l=t!==r?t.state:E(this,Si),{state:u}=t;let d={...u},h=!1,y;if(n._optimisticResults){const O=this.hasListeners(),I=!O&&ed(t,n),M=O&&td(t,r,n,s);(I||M)&&(d={...d,...op(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((N=E(this,es))==null?void 0:N.state.data,E(this,es)):n.placeholderData,O!==void 0&&(v="success",y=tc(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===E(this,_i))y=E(this,Jr);else try{q(this,_i,n.select),y=n.select(y),y=tc(i==null?void 0:i.data,y,n),q(this,Jr,y),q(this,In,null)}catch(O){q(this,In,O)}E(this,In)&&(g=E(this,In),y=E(this,Jr),p=Date.now(),v="error");const b=d.fetchStatus==="fetching",w=v==="pending",_=v==="error",S=w&&b,T=y!==void 0,R={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>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:b,isRefetching:b&&!w,isLoadingError:_&&!T,isPaused:d.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:_&&T,isStale:pl(t,n),refetch:this.refetch,promise:E(this,yn),isEnabled:Pt(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const O=R.data!==void 0,I=R.status==="error"&&!O,M=X=>{I?X.reject(R.error):O&&X.resolve(R.data)},U=()=>{const X=q(this,yn,R.promise=nc());M(X)},F=E(this,yn);switch(F.status){case"pending":t.queryHash===r.queryHash&&M(F);break;case"fulfilled":(I||R.data!==F.value)&&U();break;case"rejected":(!I||R.error!==F.reason)&&U();break}}return R}updateResult(){const t=E(this,it),n=this.createResult(E(this,me),this.options);if(q(this,hr,E(this,me).state),q(this,Yr,this.options),E(this,hr).data!==void 0&&q(this,es,E(this,me)),Ja(n,t))return;q(this,it,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,i=typeof s=="function"?s():s;if(i==="all"||!i&&!E(this,ts).size)return!0;const o=new Set(i??E(this,ts));return this.options.throwOnError&&o.add("error"),Object.keys(E(this,it)).some(a=>{const c=a;return E(this,it)[c]!==t[c]&&o.has(c)})};pe(this,be,ap).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pe(this,be,ac).call(this)}},dt=new WeakMap,me=new WeakMap,Si=new WeakMap,it=new WeakMap,hr=new WeakMap,Yr=new WeakMap,yn=new WeakMap,In=new WeakMap,_i=new WeakMap,Jr=new WeakMap,es=new WeakMap,pr=new WeakMap,mr=new WeakMap,Ln=new WeakMap,ts=new WeakMap,be=new WeakSet,Os=function(t){pe(this,be,uc).call(this);let n=E(this,me).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ht)),n},sc=function(){pe(this,be,cc).call(this);const t=$n(this.options.staleTime,E(this,me));if(wr||E(this,it).isStale||!Ya(t))return;const r=Jh(E(this,it).dataUpdatedAt,t)+1;q(this,pr,sr.setTimeout(()=>{E(this,it).isStale||this.updateResult()},r))},ic=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,me)):this.options.refetchInterval)??!1},oc=function(t){pe(this,be,lc).call(this),q(this,Ln,t),!(wr||Pt(this.options.enabled,E(this,me))===!1||!Ya(E(this,Ln))||E(this,Ln)===0)&&q(this,mr,sr.setInterval(()=>{(this.options.refetchIntervalInBackground||hl.isFocused())&&pe(this,be,Os).call(this)},E(this,Ln)))},ac=function(){pe(this,be,sc).call(this),pe(this,be,oc).call(this,pe(this,be,ic).call(this))},cc=function(){E(this,pr)&&(sr.clearTimeout(E(this,pr)),q(this,pr,void 0))},lc=function(){E(this,mr)&&(sr.clearInterval(E(this,mr)),q(this,mr,void 0))},uc=function(){const t=E(this,dt).getQueryCache().build(E(this,dt),this.options);if(t===E(this,me))return;const n=E(this,me);q(this,me,t),q(this,Si,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},ap=function(t){qe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(E(this,it))}),E(this,dt).getQueryCache().notify({query:E(this,me),type:"observerResultsUpdated"})})},Zh);function Xx(e,t){return Pt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ed(e,t){return Xx(e,t)||e.state.data!==void 0&&dc(e,t,t.refetchOnMount)}function dc(e,t,n){if(Pt(t.enabled,e)!==!1&&$n(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&pl(e,t)}return!1}function td(e,t,n,r){return(e!==t||Pt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&pl(e,n)}function pl(e,t){return Pt(t.enabled,e)!==!1&&e.isStaleByTime($n(t.staleTime,e))}function Yx(e,t){return!Ja(e.getCurrentResult(),t)}function nd(e){return{onFetch:(t,n)=>{var u,d,h,y,g;const r=t.options,s=(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:[]},c=0;const l=async()=>{let p=!1;const v=w=>{zx(w,()=>t.signal,()=>p=!0)},x=tp(t.options,t.fetchOptions),b=async(w,_,S)=>{if(p)return Promise.reject();if(_==null&&w.pages.length)return Promise.resolve(w);const A=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:_,direction:S?"backward":"forward",meta:t.options.meta};return v(I),I})(),R=await x(A),{maxPages:N}=t.options,O=S?Ux:$x;return{pages:O(w.pages,R,N),pageParams:O(w.pageParams,_,N)}};if(s&&i.length){const w=s==="backward",_=w?Jx:rd,S={pages:i,pageParams:o},T=_(r,S);a=await b(S,T,w)}else{const w=e??i.length;do{const _=c===0?o[0]??r.initialPageParam:rd(r,a);if(c>0&&_==null)break;a=await b(a,_),c++}while(c{var p,v;return(v=(p=t.options).persister)==null?void 0:v.call(p,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function rd(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Jx(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ci,Gt,Xe,gr,Qt,Pn,Kh,eb=(Kh=class extends ip{constructor(t){super();ee(this,Qt);ee(this,Ci);ee(this,Gt);ee(this,Xe);ee(this,gr);q(this,Ci,t.client),this.mutationId=t.mutationId,q(this,Xe,t.mutationCache),q(this,Gt,[]),this.state=t.state||tb(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){E(this,Gt).includes(t)||(E(this,Gt).push(t),this.clearGcTimeout(),E(this,Xe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){q(this,Gt,E(this,Gt).filter(n=>n!==t)),this.scheduleGc(),E(this,Xe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){E(this,Gt).length||(this.state.status==="pending"?this.scheduleGc():E(this,Xe).remove(this))}continue(){var t;return((t=E(this,gr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,a,c,l,u,d,h,y,g,p,v,x,b,w,_,S,T,A;const n=()=>{pe(this,Qt,Pn).call(this,{type:"continue"})},r={client:E(this,Ci),meta:this.options.meta,mutationKey:this.options.mutationKey};q(this,gr,sp({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(R,N)=>{pe(this,Qt,Pn).call(this,{type:"failed",failureCount:R,error:N})},onPause:()=>{pe(this,Qt,Pn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,Xe).canRun(this)}));const s=this.state.status==="pending",i=!E(this,gr).canStart();try{if(s)n();else{pe(this,Qt,Pn).call(this,{type:"pending",variables:t,isPaused:i}),E(this,Xe).config.onMutate&&await E(this,Xe).config.onMutate(t,this,r);const N=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t,r));N!==this.state.context&&pe(this,Qt,Pn).call(this,{type:"pending",context:N,variables:t,isPaused:i})}const R=await E(this,gr).start();return await((l=(c=E(this,Xe).config).onSuccess)==null?void 0:l.call(c,R,t,this.state.context,this,r)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,R,t,this.state.context,r)),await((y=(h=E(this,Xe).config).onSettled)==null?void 0:y.call(h,R,null,this.state.variables,this.state.context,this,r)),await((p=(g=this.options).onSettled)==null?void 0:p.call(g,R,null,t,this.state.context,r)),pe(this,Qt,Pn).call(this,{type:"success",data:R}),R}catch(R){try{await((x=(v=E(this,Xe).config).onError)==null?void 0:x.call(v,R,t,this.state.context,this,r))}catch(N){Promise.reject(N)}try{await((w=(b=this.options).onError)==null?void 0:w.call(b,R,t,this.state.context,r))}catch(N){Promise.reject(N)}try{await((S=(_=E(this,Xe).config).onSettled)==null?void 0:S.call(_,void 0,R,this.state.variables,this.state.context,this,r))}catch(N){Promise.reject(N)}try{await((A=(T=this.options).onSettled)==null?void 0:A.call(T,void 0,R,t,this.state.context,r))}catch(N){Promise.reject(N)}throw pe(this,Qt,Pn).call(this,{type:"error",error:R}),R}finally{E(this,Xe).runNext(this)}}},Ci=new WeakMap,Gt=new WeakMap,Xe=new WeakMap,gr=new WeakMap,Qt=new WeakSet,Pn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,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{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),qe.batch(()=>{E(this,Gt).forEach(r=>{r.onMutationUpdate(t)}),E(this,Xe).notify({mutation:this,type:"updated",action:t})})},Kh);function tb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var vn,Dt,Ei,Gh,nb=(Gh=class extends Ti{constructor(t={}){super();ee(this,vn);ee(this,Dt);ee(this,Ei);this.config=t,q(this,vn,new Set),q(this,Dt,new Map),q(this,Ei,0)}build(t,n,r){const s=new eb({client:t,mutationCache:this,mutationId:++Bi(this,Ei)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){E(this,vn).add(t);const n=Ui(t);if(typeof n=="string"){const r=E(this,Dt).get(n);r?r.push(t):E(this,Dt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(E(this,vn).delete(t)){const n=Ui(t);if(typeof n=="string"){const r=E(this,Dt).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&E(this,Dt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Ui(t);if(typeof n=="string"){const r=E(this,Dt).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=Ui(t);if(typeof n=="string"){const s=(r=E(this,Dt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){qe.batch(()=>{E(this,vn).forEach(t=>{this.notify({type:"removed",mutation:t})}),E(this,vn).clear(),E(this,Dt).clear()})}getAll(){return Array.from(E(this,vn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Gu(n,r))}findAll(t={}){return this.getAll().filter(n=>Gu(t,n))}notify(t){qe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return qe.batch(()=>Promise.all(t.map(n=>n.continue().catch(ht))))}},vn=new WeakMap,Dt=new WeakMap,Ei=new WeakMap,Gh);function Ui(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Xt,Qh,rb=(Qh=class extends Ti{constructor(t={}){super();ee(this,Xt);this.config=t,q(this,Xt,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??dl(s,n);let o=this.get(i);return o||(o=new Gx({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){E(this,Xt).has(t.queryHash)||(E(this,Xt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=E(this,Xt).get(t.queryHash);n&&(t.destroy(),n===t&&E(this,Xt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){qe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return E(this,Xt).get(t)}getAll(){return[...E(this,Xt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ku(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ku(t,r)):n}notify(t){qe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){qe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){qe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Xt=new WeakMap,Qh),Ne,Fn,Vn,ns,rs,Bn,ss,is,Xh,sO=(Xh=class{constructor(e={}){ee(this,Ne);ee(this,Fn);ee(this,Vn);ee(this,ns);ee(this,rs);ee(this,Bn);ee(this,ss);ee(this,is);q(this,Ne,e.queryCache||new rb),q(this,Fn,e.mutationCache||new nb),q(this,Vn,e.defaultOptions||{}),q(this,ns,new Map),q(this,rs,new Map),q(this,Bn,0)}mount(){Bi(this,Bn)._++,E(this,Bn)===1&&(q(this,ss,hl.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,Ne).onFocus())})),q(this,is,po.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,Ne).onOnline())})))}unmount(){var e,t;Bi(this,Bn)._--,E(this,Bn)===0&&((e=E(this,ss))==null||e.call(this),q(this,ss,void 0),(t=E(this,is))==null||t.call(this),q(this,is,void 0))}isFetching(e){return E(this,Ne).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return E(this,Fn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=E(this,Ne).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=E(this,Ne).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime($n(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return E(this,Ne).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=E(this,Ne).get(r.queryHash),i=s==null?void 0:s.state.data,o=Fx(t,i);if(o!==void 0)return E(this,Ne).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return qe.batch(()=>E(this,Ne).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=E(this,Ne).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=E(this,Ne);qe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=E(this,Ne);return qe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=qe.batch(()=>E(this,Ne).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(ht).catch(ht)}invalidateQueries(e,t={}){return qe.batch(()=>(E(this,Ne).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},r=qe.batch(()=>E(this,Ne).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(ht)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(ht)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=E(this,Ne).build(this,t);return n.isStaleByTime($n(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ht).catch(ht)}fetchInfiniteQuery(e){return e.behavior=nd(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ht).catch(ht)}ensureInfiniteQueryData(e){return e.behavior=nd(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return po.isOnline()?E(this,Fn).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,Ne)}getMutationCache(){return E(this,Fn)}getDefaultOptions(){return E(this,Vn)}setDefaultOptions(e){q(this,Vn,e)}setQueryDefaults(e,t){E(this,ns).set(Zs(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...E(this,ns).values()],n={};return t.forEach(r=>{Ks(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){E(this,rs).set(Zs(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...E(this,rs).values()],n={};return t.forEach(r=>{Ks(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...E(this,Vn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=dl(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===fl&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...E(this,Vn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){E(this,Ne).clear(),E(this,Fn).clear()}},Ne=new WeakMap,Fn=new WeakMap,Vn=new WeakMap,ns=new WeakMap,rs=new WeakMap,Bn=new WeakMap,ss=new WeakMap,is=new WeakMap,Xh),cp=m.createContext(void 0),sb=e=>{const t=m.useContext(cp);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},iO=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(cp.Provider,{value:e,children:t})),lp=m.createContext(!1),ib=()=>m.useContext(lp);lp.Provider;function ob(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ab=m.createContext(ob()),cb=()=>m.useContext(ab),lb=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?np(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},ub=e=>{m.useEffect(()=>{e.clearReset()},[e])},db=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(s&&e.data===void 0||np(n,[e.error,r])),fb=e=>{if(e.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...s)=>n(r(...s)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},hb=(e,t)=>e.isLoading&&e.isFetching&&!t,pb=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,sd=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function mb(e,t,n){var h,y,g,p;const r=ib(),s=cb(),i=sb(),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=r?"isRestoring":"optimistic",fb(o),lb(o,s,a),ub(s);const c=!i.getQueryCache().get(o.queryHash),[l]=m.useState(()=>new t(i,o)),u=l.getOptimisticResult(o),d=!r&&e.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(v=>{const x=d?l.subscribe(qe.batchCalls(v)):ht;return l.updateResult(),x},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),m.useEffect(()=>{l.setOptions(o)},[o,l]),pb(o,u))throw sd(o,l,s);if(db({result:u,errorResetBoundary:s,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&&!wr&&hb(u,r)){const v=c?sd(o,l,s):a==null?void 0:a.promise;v==null||v.catch(ht).finally(()=>{l.updateResult()})}return o.notifyOnChangeProps?u:l.trackResult(u)}function En(e,t){return mb(e,Qx)}function vt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function id(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function up(...e){return t=>{let n=!1;const r=e.map(s=>{const i=id(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s{const{children:o,...a}=i,c=m.useMemo(()=>a,Object.values(a));return f.jsx(n.Provider,{value:c,children:o})};r.displayName=e+"Provider";function s(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[r,s]}function ml(e,t=[]){let n=[];function r(i,o){const a=m.createContext(o),c=n.length;n=[...n,o];const l=d=>{var x;const{scope:h,children:y,...g}=d,p=((x=h==null?void 0:h[e])==null?void 0:x[c])||a,v=m.useMemo(()=>g,Object.values(g));return f.jsx(p.Provider,{value:v,children:y})};l.displayName=i+"Provider";function u(d,h){var p;const y=((p=h==null?void 0:h[e])==null?void 0:p[c])||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[l,u]}const s=()=>{const i=n.map(o=>m.createContext(o));return function(a){const c=(a==null?void 0:a[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return s.scopeName=e,[r,yb(s,...t)]}function yb(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var vb=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},xb=ll.useId||(()=>{}),bb=0;function to(e){const[t,n]=m.useState(xb());return vb(()=>{n(r=>r??String(bb++))},[e]),t?`radix-${t}`:""}function dp(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function fp({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,s]=wb({defaultProp:t,onChange:n}),i=e!==void 0,o=i?e:r,a=dp(n),c=m.useCallback(l=>{if(i){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else s(l)},[i,e,s,a]);return[o,c]}function wb({defaultProp:e,onChange:t}){const n=m.useState(e),[r]=n,s=m.useRef(r),i=dp(t);return m.useEffect(()=>{s.current!==r&&(i(r),s.current=r)},[r,s,i]),n}var ms=m.forwardRef((e,t)=>{const{children:n,...r}=e,s=m.Children.toArray(n),i=s.find(_b);if(i){const o=i.props.children,a=s.map(c=>c===i?m.Children.count(o)>1?m.Children.only(null):m.isValidElement(o)?o.props.children:null:c);return f.jsx(fc,{...r,ref:t,children:m.isValidElement(o)?m.cloneElement(o,void 0,a):null})}return f.jsx(fc,{...r,ref:t,children:n})});ms.displayName="Slot";var fc=m.forwardRef((e,t)=>{const{children:n,...r}=e;if(m.isValidElement(n)){const s=Eb(n),i=Cb(r,n.props);return n.type!==m.Fragment&&(i.ref=t?up(t,s):s),m.cloneElement(n,i)}return m.Children.count(n)>1?m.Children.only(null):null});fc.displayName="SlotClone";var Sb=({children:e})=>f.jsx(f.Fragment,{children:e});function _b(e){return m.isValidElement(e)&&e.type===Sb}function Cb(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{i(...a),s(...a)}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function Eb(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Tb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],lt=Tb.reduce((e,t)=>{const n=m.forwardRef((r,s)=>{const{asChild:i,...o}=r,a=i?ms:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(a,{...o,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ab(e,t){e&&ul.flushSync(()=>e.dispatchEvent(t))}function hp(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Rb(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Pb(e,t=globalThis==null?void 0:globalThis.document){const n=Rb(e);m.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Nb="DismissableLayer",hc="dismissableLayer.update",kb="dismissableLayer.pointerDownOutside",jb="dismissableLayer.focusOutside",od,pp=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),gl=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=e,l=m.useContext(pp),[u,d]=m.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=m.useState({}),g=zt(t,A=>d(A)),p=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),x=p.indexOf(v),b=u?p.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,_=b>=x,S=Db(A=>{const R=A.target,N=[...l.branches].some(O=>O.contains(R));!_||N||(s==null||s(A),o==null||o(A),A.defaultPrevented||a==null||a())},h),T=Ib(A=>{const R=A.target;[...l.branches].some(O=>O.contains(R))||(i==null||i(A),o==null||o(A),A.defaultPrevented||a==null||a())},h);return Pb(A=>{b===l.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},h),m.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(od=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),ad(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=od)}},[u,h,n,l]),m.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),ad())},[u,l]),m.useEffect(()=>{const A=()=>y({});return document.addEventListener(hc,A),()=>document.removeEventListener(hc,A)},[]),f.jsx(lt.div,{...c,ref:g,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:vt(e.onFocusCapture,T.onFocusCapture),onBlurCapture:vt(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:vt(e.onPointerDownCapture,S.onPointerDownCapture)})});gl.displayName=Nb;var Ob="DismissableLayerBranch",Mb=m.forwardRef((e,t)=>{const n=m.useContext(pp),r=m.useRef(null),s=zt(t,r);return m.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),f.jsx(lt.div,{...e,ref:s})});Mb.displayName=Ob;function Db(e,t=globalThis==null?void 0:globalThis.document){const n=hp(e),r=m.useRef(!1),s=m.useRef(()=>{});return m.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){mp(kb,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=c,t.addEventListener("click",s.current,{once:!0})):c()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ib(e,t=globalThis==null?void 0:globalThis.document){const n=hp(e),r=m.useRef(!1);return m.useEffect(()=>{const s=i=>{i.target&&!r.current&&mp(jb,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ad(){const e=new CustomEvent(hc);document.dispatchEvent(e)}function mp(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Ab(s,i):s.dispatchEvent(i)}function cd(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var ba="focusScope.autoFocusOnMount",wa="focusScope.autoFocusOnUnmount",ld={bubbles:!1,cancelable:!0},Lb="FocusScope",yl=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[a,c]=m.useState(null),l=cd(s),u=cd(i),d=m.useRef(null),h=zt(t,p=>c(p)),y=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let p=function(w){if(y.paused||!a)return;const _=w.target;a.contains(_)?d.current=_:Nn(d.current,{select:!0})},v=function(w){if(y.paused||!a)return;const _=w.relatedTarget;_!==null&&(a.contains(_)||Nn(d.current,{select:!0}))},x=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&Nn(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()}}},[r,a,y.paused]),m.useEffect(()=>{if(a){dd.add(y);const p=document.activeElement;if(!a.contains(p)){const x=new CustomEvent(ba,ld);a.addEventListener(ba,l),a.dispatchEvent(x),x.defaultPrevented||(Fb(zb(gp(a)),{select:!0}),document.activeElement===p&&Nn(a))}return()=>{a.removeEventListener(ba,l),setTimeout(()=>{const x=new CustomEvent(wa,ld);a.addEventListener(wa,u),a.dispatchEvent(x),x.defaultPrevented||Nn(p??document.body,{select:!0}),a.removeEventListener(wa,u),dd.remove(y)},0)}}},[a,l,u,y]);const g=m.useCallback(p=>{if(!n&&!r||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,_]=Vb(b);w&&_?!p.shiftKey&&x===_?(p.preventDefault(),n&&Nn(w,{select:!0})):p.shiftKey&&x===w&&(p.preventDefault(),n&&Nn(_,{select:!0})):x===b&&p.preventDefault()}},[n,r,y.paused]);return f.jsx(lt.div,{tabIndex:-1,...o,ref:h,onKeyDown:g})});yl.displayName=Lb;function Fb(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Nn(r,{select:t}),document.activeElement!==n)return}function Vb(e){const t=gp(e),n=ud(t,e),r=ud(t.reverse(),e);return[n,r]}function gp(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ud(e,t){for(const n of e)if(!Bb(n,{upTo:t}))return n}function Bb(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 $b(e){return e instanceof HTMLInputElement&&"select"in e}function Nn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&$b(e)&&t&&e.select()}}var dd=Ub();function Ub(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=fd(e,t),e.unshift(t)},remove(t){var n;e=fd(e,t),(n=e[0])==null||n.resume()}}}function fd(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function zb(e){return e.filter(t=>t.tagName!=="A")}var Wb=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},Hb="Portal",vl=m.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,i]=m.useState(!1);Wb(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?Yh.createPortal(f.jsx(lt.div,{...r,ref:t}),o):null});vl.displayName=Hb;var hd=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{};function qb(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var gs=e=>{const{present:t,children:n}=e,r=Zb(t),s=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),i=zt(r.ref,Kb(s));return typeof n=="function"||r.isPresent?m.cloneElement(s,{ref:i}):null};gs.displayName="Presence";function Zb(e){const[t,n]=m.useState(),r=m.useRef({}),s=m.useRef(e),i=m.useRef("none"),o=e?"mounted":"unmounted",[a,c]=qb(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const l=zi(r.current);i.current=a==="mounted"?l:"none"},[a]),hd(()=>{const l=r.current,u=s.current;if(u!==e){const h=i.current,y=zi(l);e?c("MOUNT"):y==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&h!==y?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),hd(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=y=>{const p=zi(r.current).includes(y.animationName);if(y.target===t&&p&&(c("ANIMATION_END"),!s.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=y=>{y.target===t&&(i.current=zi(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function zi(e){return(e==null?void 0:e.animationName)||"none"}function Kb(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Sa=0;function yp(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??pd()),document.body.insertAdjacentElement("beforeend",e[1]??pd()),Sa++,()=>{Sa===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sa--}},[])}function pd(){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 Jt=function(){return Jt=Object.assign||function(t){for(var n,r=1,s=arguments.length;r"u")return dw;var t=fw(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},pw=wp(),Wr="data-scroll-locked",mw=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),` .`.concat(Qb,` { overflow: hidden `).concat(r,`; padding-right: `).concat(a,"px ").concat(r,`; } body[`).concat(Wr,`] { overflow: hidden `).concat(r,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` padding-left: `.concat(s,`px; padding-top: `).concat(i,`px; padding-right: `).concat(o,`px; margin-left:0; margin-top:0; margin-right: `).concat(a,"px ").concat(r,`; `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` } .`).concat(no,` { right: `).concat(a,"px ").concat(r,`; } .`).concat(ro,` { margin-right: `).concat(a,"px ").concat(r,`; } .`).concat(no," .").concat(no,` { right: 0 `).concat(r,`; } .`).concat(ro," .").concat(ro,` { margin-right: 0 `).concat(r,`; } body[`).concat(Wr,`] { `).concat(Xb,": ").concat(a,`px; } `)},gd=function(){var e=parseInt(document.body.getAttribute(Wr)||"0",10);return isFinite(e)?e:0},gw=function(){m.useEffect(function(){return document.body.setAttribute(Wr,(gd()+1).toString()),function(){var e=gd()-1;e<=0?document.body.removeAttribute(Wr):document.body.setAttribute(Wr,e.toString())}},[])},yw=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;gw();var i=m.useMemo(function(){return hw(s)},[s]);return m.createElement(pw,{styles:mw(i,!t,s,n?"":"!important")})},pc=!1;if(typeof window<"u")try{var Wi=Object.defineProperty({},"passive",{get:function(){return pc=!0,!0}});window.addEventListener("test",Wi,Wi),window.removeEventListener("test",Wi,Wi)}catch{pc=!1}var Or=pc?{passive:!1}:!1,vw=function(e){return e.tagName==="TEXTAREA"},Sp=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!vw(e)&&n[t]==="visible")},xw=function(e){return Sp(e,"overflowY")},bw=function(e){return Sp(e,"overflowX")},yd=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=_p(e,r);if(s){var i=Cp(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ww=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Sw=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},_p=function(e,t){return e==="v"?xw(t):bw(t)},Cp=function(e,t){return e==="v"?ww(t):Sw(t)},_w=function(e,t){return e==="h"&&t==="rtl"?-1:1},Cw=function(e,t,n,r,s){var i=_w(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,c=t.contains(a),l=!1,u=o>0,d=0,h=0;do{var y=Cp(e,a),g=y[0],p=y[1],v=y[2],x=p-v-i*g;(g||x)&&_p(e,a)&&(d+=x,h+=g),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(h)<1)&&(l=!0),l},Hi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},vd=function(e){return[e.deltaX,e.deltaY]},xd=function(e){return e&&"current"in e?e.current:e},Ew=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Tw=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},Aw=0,Mr=[];function Rw(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),s=m.useState(Aw++)[0],i=m.useState(wp)[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(s));var p=Gb([e.lockRef.current],(e.shards||[]).map(xd),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(s))})}}},[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=Hi(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,A=Math.abs(w)>Math.abs(_)?"h":"v";if("touches"in p&&A==="h"&&T.type==="range")return!1;var R=yd(A,T);if(!R)return!0;if(R?S=A:(S=A==="v"?"h":"v",R=yd(A,T)),!R)return!1;if(!r.current&&"changedTouches"in p&&(w||_)&&(r.current=S),!S)return!0;var N=r.current||S;return Cw(N,v,p,N==="h"?w:_)},[]),c=m.useCallback(function(p){var v=p;if(!(!Mr.length||Mr[Mr.length-1]!==i)){var x="deltaY"in v?vd(v):Hi(v),b=t.current.filter(function(S){return S.name===v.type&&(S.target===v.target||v.target===S.shadowParent)&&Ew(S.delta,x)})[0];if(b&&b.should){v.cancelable&&v.preventDefault();return}if(!b){var w=(o.current.shards||[]).map(xd).filter(Boolean).filter(function(S){return S.contains(v.target)}),_=w.length>0?a(v,w[0]):!o.current.noIsolation;_&&v.cancelable&&v.preventDefault()}}},[]),l=m.useCallback(function(p,v,x,b){var w={name:p,delta:v,target:x,should:b,shadowParent:Pw(x)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(_){return _!==w})},1)},[]),u=m.useCallback(function(p){n.current=Hi(p),r.current=void 0},[]),d=m.useCallback(function(p){l(p.type,vd(p),p.target,a(p,e.lockRef.current))},[]),h=m.useCallback(function(p){l(p.type,Hi(p),p.target,a(p,e.lockRef.current))},[]);m.useEffect(function(){return Mr.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Or),document.addEventListener("touchmove",c,Or),document.addEventListener("touchstart",u,Or),function(){Mr=Mr.filter(function(p){return p!==i}),document.removeEventListener("wheel",c,Or),document.removeEventListener("touchmove",c,Or),document.removeEventListener("touchstart",u,Or)}},[]);var y=e.removeScrollBar,g=e.inert;return m.createElement(m.Fragment,null,g?m.createElement(i,{styles:Tw(s)}):null,y?m.createElement(yw,{gapMode:e.gapMode}):null)}function Pw(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Nw=sw(bp,Rw);var xl=m.forwardRef(function(e,t){return m.createElement(Wo,Jt({},e,{ref:t,sideCar:Nw}))});xl.classNames=Wo.classNames;var kw=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Dr=new WeakMap,qi=new WeakMap,Zi={},Ta=0,Ep=function(e){return e&&(e.host||Ep(e.parentNode))},jw=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ep(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Ow=function(e,t,n,r){var s=jw(t,Array.isArray(e)?e:[e]);Zi[n]||(Zi[n]=new WeakMap);var i=Zi[n],o=[],a=new Set,c=new Set(s),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};s.forEach(l);var u=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))u(h);else try{var y=h.getAttribute(r),g=y!==null&&y!=="false",p=(Dr.get(h)||0)+1,v=(i.get(h)||0)+1;Dr.set(h,p),i.set(h,v),o.push(h),p===1&&g&&qi.set(h,!0),v===1&&h.setAttribute(n,"true"),g||h.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",h,x)}})};return u(t),a.clear(),Ta++,function(){o.forEach(function(d){var h=Dr.get(d)-1,y=i.get(d)-1;Dr.set(d,h),i.set(d,y),h||(qi.has(d)||d.removeAttribute(r),qi.delete(d)),y||d.removeAttribute(n)}),Ta--,Ta||(Dr=new WeakMap,Dr=new WeakMap,qi=new WeakMap,Zi={})}},Tp=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=kw(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),Ow(r,s,n,"aria-hidden")):function(){return null}},bl="Dialog",[Ap,oO]=ml(bl),[Mw,Wt]=Ap(bl),Rp=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!0}=e,a=m.useRef(null),c=m.useRef(null),[l=!1,u]=fp({prop:r,defaultProp:s,onChange:i});return f.jsx(Mw,{scope:t,triggerRef:a,contentRef:c,contentId:to(),titleId:to(),descriptionId:to(),open:l,onOpenChange:u,onOpenToggle:m.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};Rp.displayName=bl;var Pp="DialogTrigger",Np=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Wt(Pp,n),i=zt(t,s.triggerRef);return f.jsx(lt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":_l(s.open),...r,ref:i,onClick:vt(e.onClick,s.onOpenToggle)})});Np.displayName=Pp;var wl="DialogPortal",[Dw,kp]=Ap(wl,{forceMount:void 0}),jp=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=Wt(wl,t);return f.jsx(Dw,{scope:t,forceMount:n,children:m.Children.map(r,o=>f.jsx(gs,{present:n||i.open,children:f.jsx(vl,{asChild:!0,container:s,children:o})}))})};jp.displayName=wl;var mo="DialogOverlay",Op=m.forwardRef((e,t)=>{const n=kp(mo,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=Wt(mo,e.__scopeDialog);return i.modal?f.jsx(gs,{present:r||i.open,children:f.jsx(Iw,{...s,ref:t})}):null});Op.displayName=mo;var Iw=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Wt(mo,n);return f.jsx(xl,{as:ms,allowPinchZoom:!0,shards:[s.contentRef],children:f.jsx(lt.div,{"data-state":_l(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Sr="DialogContent",Mp=m.forwardRef((e,t)=>{const n=kp(Sr,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=Wt(Sr,e.__scopeDialog);return f.jsx(gs,{present:r||i.open,children:i.modal?f.jsx(Lw,{...s,ref:t}):f.jsx(Fw,{...s,ref:t})})});Mp.displayName=Sr;var Lw=m.forwardRef((e,t)=>{const n=Wt(Sr,e.__scopeDialog),r=m.useRef(null),s=zt(t,n.contentRef,r);return m.useEffect(()=>{const i=r.current;if(i)return Tp(i)},[]),f.jsx(Dp,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:vt(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:vt(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:vt(e.onFocusOutside,i=>i.preventDefault())})}),Fw=m.forwardRef((e,t)=>{const n=Wt(Sr,e.__scopeDialog),r=m.useRef(!1),s=m.useRef(!1);return f.jsx(Dp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),Dp=m.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=e,a=Wt(Sr,n),c=m.useRef(null),l=zt(t,c);return yp(),f.jsxs(f.Fragment,{children:[f.jsx(yl,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:f.jsx(gl,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":_l(a.open),...o,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(Vw,{titleId:a.titleId}),f.jsx($w,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Sl="DialogTitle",Ip=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Wt(Sl,n);return f.jsx(lt.h2,{id:s.titleId,...r,ref:t})});Ip.displayName=Sl;var Lp="DialogDescription",Fp=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Wt(Lp,n);return f.jsx(lt.p,{id:s.descriptionId,...r,ref:t})});Fp.displayName=Lp;var Vp="DialogClose",Bp=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Wt(Vp,n);return f.jsx(lt.button,{type:"button",...r,ref:t,onClick:vt(e.onClick,()=>s.onOpenChange(!1))})});Bp.displayName=Vp;function _l(e){return e?"open":"closed"}var $p="DialogTitleWarning",[aO,Up]=gb($p,{contentName:Sr,titleName:Sl,docsSlug:"dialog"}),Vw=({titleId:e})=>{const t=Up($p),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},Bw="DialogDescriptionWarning",$w=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Up(Bw).contentName}}.`;return m.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},zp=Rp,Wp=Np,Hp=jp,Ho=Op,qo=Mp,Zo=Ip,Ko=Fp,Cl=Bp;function qp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,wd=Zp,Go=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return wd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(l=>{const u=n==null?void 0:n[l],d=i==null?void 0:i[l];if(u===null)return null;const h=bd(u)||bd(d);return s[l][h]}),a=n&&Object.entries(n).reduce((l,u)=>{let[d,h]=u;return h===void 0||(l[d]=h),l},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,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})?[...l,d,h]:l},[]);return wd(e,o,c,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 Uw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Kp=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.473.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var zw={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 Ww=m.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},c)=>m.createElement("svg",{ref:c,...zw,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Kp("lucide",s),...a},[...o.map(([l,u])=>m.createElement(l,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:r,...s},i)=>m.createElement(Ww,{ref:i,iconNode:t,className:Kp(`lucide-${Uw(e)}`,r),...s}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.473.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Hw=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],qw=Ct("ArrowRight",Hw);/** * @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 Zw=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Kw=Ct("ArrowUpRight",Zw);/** * @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 Gw=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Qw=Ct("ChevronDown",Gw);/** * @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 Xw=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],mc=Ct("ChevronLeft",Xw);/** * @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 Yw=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Gp=Ct("ChevronRight",Yw);/** * @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=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],e0=Ct("Facebook",Jw);/** * @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=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Qp=Ct("LoaderCircle",t0);/** * @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:"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"}]],cO=Ct("Loader",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:"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"}]],s0=Ct("MapPin",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 i0=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],lO=Ct("Play",i0);/** * @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=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],a0=Ct("Smartphone",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 c0=[["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"}]],l0=Ct("Upload",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 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],El=Ct("X",u0),Tl="-",d0=e=>{const t=h0(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(Tl);return a[0]===""&&a.length!==1&&a.shift(),Xp(a,t)||f0(o)},getConflictingClassGroupIds:(o,a)=>{const c=n[o]||[];return a&&r[o]?[...c,...r[o]]:c}}},Xp=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?Xp(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(Tl);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},Sd=/^\[(.+)\]$/,f0=e=>{if(Sd.test(e)){const t=Sd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},h0=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return m0(Object.entries(e.classGroups),n).forEach(([i,o])=>{gc(o,r,i,t)}),r},gc=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:_d(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(p0(s)){gc(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{gc(o,_d(t,i),n,r)})})},_d=(e,t)=>{let n=e;return t.split(Tl).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},p0=e=>e.isThemeGetter,m0=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e,g0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},Yp="!",y0=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const c=[];let l=0,u=0,d;for(let v=0;vu?d-u:void 0;return{modifiers:c,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:p}};return n?a=>n({className:a,parseClassName:o}):o},v0=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},x0=e=>({cache:g0(e.cacheSize),parseClassName:y0(e),...d0(e)}),b0=/\s+/,w0=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(b0);let a="";for(let c=o.length-1;c>=0;c-=1){const l=o[c],{modifiers:u,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:y}=n(l);let g=!!y,p=r(g?h.substring(0,y):h);if(!p){if(!g){a=l+(a.length>0?" "+a:a);continue}if(p=r(h),!p){a=l+(a.length>0?" "+a:a);continue}g=!1}const v=v0(u).join(":"),x=d?v+Yp:v,b=x+p;if(i.includes(b))continue;i.push(b);const w=s(p,g);for(let _=0;_0?" "+a:a)}return a};function S0(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rd(u),e());return n=x0(l),r=n.cache.get,s=n.cache.set,i=a,a(c)}function a(c){const l=r(c);if(l)return l;const u=w0(c,n);return s(c,u),u}return function(){return i(S0.apply(null,arguments))}}const Te=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},em=/^\[(?:([a-z-]+):)?(.+)\]$/i,C0=/^\d+\/\d+$/,E0=new Set(["px","full","screen"]),T0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,A0=/\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$/,R0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,P0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,N0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fn=e=>Hr(e)||E0.has(e)||C0.test(e),An=e=>ys(e,"length",F0),Hr=e=>!!e&&!Number.isNaN(Number(e)),Aa=e=>ys(e,"number",Hr),As=e=>!!e&&Number.isInteger(Number(e)),k0=e=>e.endsWith("%")&&Hr(e.slice(0,-1)),ce=e=>em.test(e),Rn=e=>T0.test(e),j0=new Set(["length","size","percentage"]),O0=e=>ys(e,j0,tm),M0=e=>ys(e,"position",tm),D0=new Set(["image","url"]),I0=e=>ys(e,D0,B0),L0=e=>ys(e,"",V0),Rs=()=>!0,ys=(e,t,n)=>{const r=em.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},F0=e=>A0.test(e)&&!R0.test(e),tm=()=>!1,V0=e=>P0.test(e),B0=e=>N0.test(e),$0=()=>{const e=Te("colors"),t=Te("spacing"),n=Te("blur"),r=Te("brightness"),s=Te("borderColor"),i=Te("borderRadius"),o=Te("borderSpacing"),a=Te("borderWidth"),c=Te("contrast"),l=Te("grayscale"),u=Te("hueRotate"),d=Te("invert"),h=Te("gap"),y=Te("gradientColorStops"),g=Te("gradientColorStopPositions"),p=Te("inset"),v=Te("margin"),x=Te("opacity"),b=Te("padding"),w=Te("saturate"),_=Te("scale"),S=Te("sepia"),T=Te("skew"),A=Te("space"),R=Te("translate"),N=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",ce,t],M=()=>[ce,t],U=()=>["",fn,An],F=()=>["auto",Hr,ce],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["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"],se=()=>["","0",ce],fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ye=()=>[Hr,ce];return{cacheSize:500,separator:":",theme:{colors:[Rs],spacing:[fn,An],blur:["none","",Rn,ce],brightness:ye(),borderColor:[e],borderRadius:["none","","full",Rn,ce],borderSpacing:M(),borderWidth:U(),contrast:ye(),grayscale:se(),hueRotate:ye(),invert:se(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[k0,An],inset:I(),margin:I(),opacity:ye(),padding:M(),saturate:ye(),scale:ye(),sepia:se(),skew:ye(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",ce]}],container:["container"],columns:[{columns:[Rn]}],"break-after":[{"break-after":fe()}],"break-before":[{"break-before":fe()}],"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:[...X(),ce]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],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",As,ce]}],basis:[{basis:I()}],"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:se()}],shrink:[{shrink:se()}],order:[{order:["first","last","none",As,ce]}],"grid-cols":[{"grid-cols":[Rs]}],"col-start-end":[{col:["auto",{span:["full",As,ce]},ce]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[Rs]}],"row-start-end":[{row:["auto",{span:[As,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":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"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:[Rn]},Rn]}],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",Rn,An]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Aa]}],"font-family":[{font:[Rs]}],"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",Hr,Aa]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",fn,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:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",fn,An]}],"underline-offset":[{"underline-offset":["auto",fn,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:[...X(),M0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",O0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},I0]}],"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:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:Y()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[fn,ce]}],"outline-w":[{outline:[fn,An]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[fn,An]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Rn,L0]}],"shadow-color":[{shadow:[Rs]}],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:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Rn,ce]}],grayscale:[{grayscale:[l]}],"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":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"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:ye()}],ease:[{ease:["linear","in","out","in-out",ce]}],delay:[{delay:ye()}],animate:[{animate:["none","spin","ping","pulse","bounce",ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[As,ce]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"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:[fn,An,Aa]}],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"]}}},U0=_0($0);function V(...e){return U0(Zp(e))}const z0=zp,W0=Wp,H0=Cl,q0=Hp,nm=m.forwardRef(({className:e,...t},n)=>f.jsx(Ho,{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}));nm.displayName=Ho.displayName;const Z0=Go("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"}}),rm=m.forwardRef(({side:e="right",className:t,children:n,...r},s)=>f.jsxs(q0,{children:[f.jsx(nm,{}),f.jsxs(qo,{ref:s,className:V(Z0({side:e}),t),...r,children:[f.jsxs(Cl,{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(El,{className:"size-8"}),f.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));rm.displayName=qo.displayName;const sm=({className:e,...t})=>f.jsx("div",{className:V("flex flex-col space-y-2 text-center sm:text-left",e),...t});sm.displayName="SheetHeader";const K0=m.forwardRef(({className:e,...t},n)=>f.jsx(Zo,{ref:n,className:V("text-lg font-semibold text-foreground",e),...t}));K0.displayName=Zo.displayName;const G0=m.forwardRef(({className:e,...t},n)=>f.jsx(Ko,{ref:n,className:V("text-sm text-muted-foreground",e),...t}));G0.displayName=Ko.displayName;const Q0=Go("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"}}),tt=m.forwardRef(({className:e,variant:t,size:n,loading:r,children:s,asChild:i=!1,...o},a)=>{const c=i?ms:"button";return f.jsx(c,{className:V(Q0({variant:t,size:n,className:e})),ref:a,...o,children:r?f.jsx(Qp,{className:"w-5 h-5 animate-spin"}):s})});tt.displayName="Button";const X0=(e,t,n,r)=>{var i,o,a,c;const s=[n,{code:t,...r||{}}];if((o=(i=e==null?void 0:e.services)==null?void 0:i.logger)!=null&&o.forward)return e.services.logger.forward(s,"warn","react-i18next::",!0);yr(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),(c=(a=e==null?void 0:e.services)==null?void 0:a.logger)!=null&&c.warn?e.services.logger.warn(...s):console!=null&&console.warn&&console.warn(...s)},Cd={},yc=(e,t,n,r)=>{yr(n)&&Cd[n]||(yr(n)&&(Cd[n]=new Date),X0(e,t,n,r))},im=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},vc=(e,t,n)=>{e.loadNamespaces(t,im(e,n))},Ed=(e,t,n,r)=>{if(yr(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return vc(e,n,r);n.forEach(s=>{e.options.ns.indexOf(s)<0&&e.options.ns.push(s)}),e.loadLanguages(t,im(e,r))},Y0=(e,t,n={})=>!t.languages||!t.languages.length?(yc(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,s)=>{var i;if(((i=n.bindI18n)==null?void 0:i.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!s(r.isLanguageChangingTo,e))return!1}}),yr=e=>typeof e=="string",J0=e=>typeof e=="object"&&e!==null,eS=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,tS={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},nS=e=>tS[e],rS=e=>e.replace(eS,nS);let xc={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:rS};const sS=(e={})=>{xc={...xc,...e}},iS=()=>xc;let om;const oS=e=>{om=e},aS=()=>om,uO={type:"3rdParty",init(e){sS(e.options.react),oS(e)}},cS=m.createContext();class lS{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const uS=(e,t)=>{const n=m.useRef();return m.useEffect(()=>{n.current=e},[e,t]),n.current},am=(e,t,n,r)=>e.getFixedT(t,n,r),dS=(e,t,n,r)=>m.useCallback(am(e,t,n,r),[e,t,n,r]),Nr=(e,t={})=>{var _,S,T,A;const{i18n:n}=t,{i18n:r,defaultNS:s}=m.useContext(cS)||{},i=n||r||aS();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new lS),!i){yc(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const R=(O,I)=>yr(I)?I:J0(I)&&yr(I.defaultValue)?I.defaultValue:Array.isArray(O)?O[O.length-1]:O,N=[R,{},!1];return N.t=R,N.i18n={},N.ready=!1,N}(_=i.options.react)!=null&&_.wait&&yc(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...iS(),...i.options.react,...t},{useSuspense:a,keyPrefix:c}=o;let l=e||s||((S=i.options)==null?void 0:S.defaultNS);l=yr(l)?[l]:l||["translation"],(A=(T=i.reportNamespaces).addUsedNamespaces)==null||A.call(T,l);const u=(i.isInitialized||i.initializedStoreOnce)&&l.every(R=>Y0(R,i,o)),d=dS(i,t.lng||null,o.nsMode==="fallback"?l:l[0],c),h=()=>d,y=()=>am(i,t.lng||null,o.nsMode==="fallback"?l:l[0],c),[g,p]=m.useState(h);let v=l.join();t.lng&&(v=`${t.lng}${v}`);const x=uS(v),b=m.useRef(!0);m.useEffect(()=>{const{bindI18n:R,bindI18nStore:N}=o;b.current=!0,!u&&!a&&(t.lng?Ed(i,t.lng,l,()=>{b.current&&p(y)}):vc(i,l,()=>{b.current&&p(y)})),u&&x&&x!==v&&b.current&&p(y);const O=()=>{b.current&&p(y)};return R&&(i==null||i.on(R,O)),N&&(i==null||i.store.on(N,O)),()=>{b.current=!1,i&&(R==null||R.split(" ").forEach(I=>i.off(I,O))),N&&i&&N.split(" ").forEach(I=>i.store.off(I,O))}},[i,v]),m.useEffect(()=>{b.current&&u&&p(h)},[i,c,u]);const w=[g,i,u];if(w.t=g,w.i18n=i,w.ready=u,u||!u&&!a)return w;throw new Promise(R=>{t.lng?Ed(i,t.lng,l,()=>R()):vc(i,l,()=>R())})},cm=({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"})}),lm=({className:e,image:t,title:n,iconClassName:r})=>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",r),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})]}),fS=({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})]}),hS=({className:e,title:t,text:n,img:r,link:s,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:r,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(Se,{className:"absolute bottom-0 left-0",target:"_blank",to:s,children:f.jsxs(tt,{className:"text-sm px-0 h-fit py-0 z-20",variant:"link",children:[i," ",f.jsx(Kw,{})]})})]})]}),um=({className:e,title:t,text:n,bottomClassName:r})=>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",r),children:n})]}),pS=({className:e,text:t,title:n,image:r})=>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:r.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})]})]}),Al=m.createContext({});function Rl(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const Qo=m.createContext(null),Pl=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class mS extends m.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,s=r instanceof HTMLElement&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=s-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function gS({children:e,isPresent:t,anchorX:n}){const r=m.useId(),s=m.useRef(null),i=m.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=m.useContext(Pl);return m.useInsertionEffect(()=>{const{width:a,height:c,top:l,left:u,right:d}=i.current;if(t||!s.current||!a||!c)return;const h=n==="left"?`left: ${u}`:`right: ${d}`;s.current.dataset.motionPopId=r;const y=document.createElement("style");return o&&(y.nonce=o),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(` [data-motion-pop-id="${r}"] { position: absolute !important; width: ${a}px !important; height: ${c}px !important; ${h}px !important; top: ${l}px !important; } `),()=>{document.head.removeChild(y)}},[t]),f.jsx(mS,{isPresent:t,childRef:s,sizeRef:i,children:m.cloneElement(e,{ref:s})})}const yS=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a})=>{const c=Rl(vS),l=m.useId(),u=m.useCallback(h=>{c.set(h,!0);for(const y of c.values())if(!y)return;r&&r()},[c,r]),d=m.useMemo(()=>({id:l,initial:t,isPresent:n,custom:s,onExitComplete:u,register:h=>(c.set(h,!1),()=>c.delete(h))}),i?[Math.random(),u]:[n,u]);return m.useMemo(()=>{c.forEach((h,y)=>c.set(y,!1))},[n]),m.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),o==="popLayout"&&(e=f.jsx(gS,{isPresent:n,anchorX:a,children:e})),f.jsx(Qo.Provider,{value:d,children:e})};function vS(){return new Map}function dm(e=!0){const t=m.useContext(Qo);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=m.useId();m.useEffect(()=>{e&&s(i)},[e]);const o=m.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const Ki=e=>e.key||"";function Td(e){const t=[];return m.Children.forEach(e,n=>{m.isValidElement(n)&&t.push(n)}),t}const Nl=typeof window<"u",fm=Nl?m.useLayoutEffect:m.useEffect,dO=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1,anchorX:a="left"})=>{const[c,l]=dm(o),u=m.useMemo(()=>Td(e),[e]),d=o&&!c?[]:u.map(Ki),h=m.useRef(!0),y=m.useRef(u),g=Rl(()=>new Map),[p,v]=m.useState(u),[x,b]=m.useState(u);fm(()=>{h.current=!1,y.current=u;for(let S=0;S{const T=Ki(S),A=o&&!c?!1:u===x||d.includes(T),R=()=>{if(g.has(T))g.set(T,!0);else return;let N=!0;g.forEach(O=>{O||(N=!1)}),N&&(_==null||_(),b(y.current),o&&(l==null||l()),r&&r())};return f.jsx(yS,{isPresent:A,initial:!h.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:i,onExitComplete:A?void 0:R,anchorX:a,children:S},T)})})},xt=e=>e;let hm=xt;const xS={useManualTiming:!1},Gi=["read","resolveKeyframes","update","preRender","render","postRender"],Ad={value:null};function bS(e,t){let n=new Set,r=new Set,s=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},c=0;function l(d){o.has(d)&&(u.schedule(d),e()),c++,d(a)}const u={schedule:(d,h=!1,y=!1)=>{const p=y&&s?n:r;return h&&o.add(d),p.has(d)||p.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(a=d,s){i=!0;return}s=!0,[n,r]=[r,n],n.forEach(l),t&&Ad.value&&Ad.value.frameloop[t].push(c),c=0,n.clear(),s=!1,i&&(i=!1,u.process(d))}};return u}const wS=40;function pm(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Gi.reduce((x,b)=>(x[b]=bS(i,t?b:void 0),x),{}),{read:a,resolveKeyframes:c,update:l,preRender:u,render:d,postRender:h}=o,y=()=>{const x=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(x-s.timestamp,wS),1),s.timestamp=x,s.isProcessing=!0,a.process(s),c.process(s),l.process(s),u.process(s),d.process(s),h.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(y))},g=()=>{n=!0,r=!0,s.isProcessing||e(y)};return{schedule:Gi.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;bRd[e].some(n=>!!t[n])};function SS(e){for(const t in e)os[t]={...os[t],...e[t]}}const _S=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 go(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||_S.has(e)}let gm=e=>!go(e);function CS(e){e&&(gm=t=>t.startsWith("on")?!go(t):e(t))}try{CS(require("@emotion/is-prop-valid").default)}catch{}function ES(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(gm(s)||n===!0&&go(s)||!t&&!go(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function TS(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const Xo=m.createContext({});function Yo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Gs(e){return typeof e=="string"||Array.isArray(e)}const kl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],jl=["initial",...kl];function Jo(e){return Yo(e.animate)||jl.some(t=>Gs(e[t]))}function ym(e){return!!(Jo(e)||e.variants)}function AS(e,t){if(Jo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Gs(n)?n:void 0,animate:Gs(r)?r:void 0}}return e.inherit!==!1?t:{}}function RS(e){const{initial:t,animate:n}=AS(e,m.useContext(Xo));return m.useMemo(()=>({initial:t,animate:n}),[Pd(t),Pd(n)])}function Pd(e){return Array.isArray(e)?e.join(" "):e}const PS=Symbol.for("motionComponentSymbol");function Fr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function NS(e,t,n){return m.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Fr(n)&&(n.current=r))},[t])}const Ol=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),kS="framerAppearId",vm="data-"+Ol(kS),{schedule:Ml}=pm(queueMicrotask,!1),xm=m.createContext({});function jS(e,t,n,r,s){var i,o;const{visualElement:a}=m.useContext(Xo),c=m.useContext(mm),l=m.useContext(Qo),u=m.useContext(Pl).reducedMotion,d=m.useRef(null);r=r||c.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const h=d.current,y=m.useContext(xm);h&&!h.projection&&s&&(h.type==="html"||h.type==="svg")&&OS(d.current,n,s,y);const g=m.useRef(!1);m.useInsertionEffect(()=>{h&&g.current&&h.update(n,l)});const p=n[vm],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 fm(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Ml.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 OS(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:bm(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&Fr(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:l})}function bm(e){if(e)return e.options.allowProjection!==!1?e.projection:bm(e.parent)}function MS({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var i,o;e&&SS(e);function a(l,u){let d;const h={...m.useContext(Pl),...l,layoutId:DS(l)},{isStatic:y}=h,g=RS(l),p=r(l,y);if(!y&&Nl){IS();const v=LS(h);d=v.MeasureLayout,g.visualElement=jS(s,p,h,t,v.ProjectionNode)}return f.jsxs(Xo.Provider,{value:g,children:[d&&g.visualElement?f.jsx(d,{visualElement:g.visualElement,...h}):null,n(s,l,NS(p,g.visualElement,u),p,y,g.visualElement)]})}a.displayName=`motion.${typeof s=="string"?s:`create(${(o=(i=s.displayName)!==null&&i!==void 0?i:s.name)!==null&&o!==void 0?o:""})`}`;const c=m.forwardRef(a);return c[PS]=s,c}function DS({layoutId:e}){const t=m.useContext(Al).id;return t&&e!==void 0?t+"-"+e:e}function IS(e,t){m.useContext(mm).strict}function LS(e){const{drag:t,layout:n}=os;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const wm=e=>t=>typeof t=="string"&&t.startsWith(e),Dl=wm("--"),FS=wm("var(--"),Il=e=>FS(e)?VS.test(e.split("/*")[0].trim()):!1,VS=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Qs={};function BS(e){for(const t in e)Qs[t]=e[t],Dl(t)&&(Qs[t].isCSSVariable=!0)}const vs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],kr=new Set(vs);function Sm(e,{layout:t,layoutId:n}){return kr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Qs[e]||e==="opacity")}const et=e=>!!(e&&e.getVelocity),_m=(e,t)=>t&&typeof e=="number"?t.transform(e):e,wn=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Xs={...xs,transform:e=>wn(0,1,e)},Qi={...xs,default:1},Ai=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),kn=Ai("deg"),nn=Ai("%"),te=Ai("px"),$S=Ai("vh"),US=Ai("vw"),Nd={...nn,parse:e=>nn.parse(e)/100,transform:e=>nn.transform(e*100)},zS={borderWidth:te,borderTopWidth:te,borderRightWidth:te,borderBottomWidth:te,borderLeftWidth:te,borderRadius:te,radius:te,borderTopLeftRadius:te,borderTopRightRadius:te,borderBottomRightRadius:te,borderBottomLeftRadius:te,width:te,maxWidth:te,height:te,maxHeight:te,top:te,right:te,bottom:te,left:te,padding:te,paddingTop:te,paddingRight:te,paddingBottom:te,paddingLeft:te,margin:te,marginTop:te,marginRight:te,marginBottom:te,marginLeft:te,backgroundPositionX:te,backgroundPositionY:te},WS={rotate:kn,rotateX:kn,rotateY:kn,rotateZ:kn,scale:Qi,scaleX:Qi,scaleY:Qi,scaleZ:Qi,skew:kn,skewX:kn,skewY:kn,distance:te,translateX:te,translateY:te,translateZ:te,x:te,y:te,z:te,perspective:te,transformPerspective:te,opacity:Xs,originX:Nd,originY:Nd,originZ:te},kd={...xs,transform:Math.round},Ll={...zS,...WS,zIndex:kd,size:te,fillOpacity:Xs,strokeOpacity:Xs,numOctaves:kd},HS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},qS=vs.length;function ZS(e,t,n){let r="",s=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}});function Cm(e,t,n){for(const r in t)!et(t[r])&&!Sm(r,n)&&(e[r]=t[r])}function KS({transformTemplate:e},t){return m.useMemo(()=>{const n=Vl();return Fl(n,t,e),Object.assign({},n.vars,n.style)},[t])}function GS(e,t){const n=e.style||{},r={};return Cm(r,n,e),Object.assign(r,KS(e,t)),r}function QS(e,t){const n={},r=GS(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const XS=["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 Bl(e){return typeof e!="string"||e.includes("-")?!1:!!(XS.indexOf(e)>-1||/[A-Z]/u.test(e))}const YS={offset:"stroke-dashoffset",array:"stroke-dasharray"},JS={offset:"strokeDashoffset",array:"strokeDasharray"};function e_(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?YS:JS;e[i.offset]=te.transform(-r);const o=te.transform(t),a=te.transform(n);e[i.array]=`${o} ${a}`}function jd(e,t,n){return typeof e=="string"?e:te.transform(t+n*e)}function t_(e,t,n){const r=jd(t,e.x,e.width),s=jd(n,e.y,e.height);return`${r} ${s}`}function $l(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:c=0,...l},u,d){if(Fl(e,l,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&&(s!==void 0||i!==void 0||y.transform)&&(y.transformOrigin=t_(g,s!==void 0?s:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),o!==void 0&&e_(h,o,a,c,!1)}const Em=()=>({...Vl(),attrs:{}}),Ul=e=>typeof e=="string"&&e.toLowerCase()==="svg";function n_(e,t,n,r){const s=m.useMemo(()=>{const i=Em();return $l(i,t,Ul(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Cm(i,e.style,e),s.style={...i,...s.style}}return s}function r_(e=!1){return(n,r,s,{latestValues:i},o)=>{const c=(Bl(n)?n_:QS)(r,i,o,n),l=ES(r,typeof n=="string",e),u=n!==m.Fragment?{...l,...c,ref:s}:{},{children:d}=r,h=m.useMemo(()=>et(d)?d.get():d,[d]);return m.createElement(n,{...u,children:h})}}function Od(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function zl(e,t,n,r){if(typeof t=="function"){const[s,i]=Od(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=Od(r);t=t(n!==void 0?n:e.custom,s,i)}return t}const bc=e=>Array.isArray(e),s_=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),i_=e=>bc(e)?e[e.length-1]||0:e;function so(e){const t=et(e)?e.get():e;return s_(t)?t.toValue():t}function o_({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,i){const o={latestValues:a_(r,s,i,e),renderState:t()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const Tm=e=>(t,n)=>{const r=m.useContext(Xo),s=m.useContext(Qo),i=()=>o_(e,t,r,s);return n?i():Rl(i)};function a_(e,t,n,r){const s={},i=r(e,{});for(const h in i)s[h]=so(i[h]);let{initial:o,animate:a}=e;const c=Jo(e),l=ym(e);t&&l&&!c&&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"&&!Yo(d)){const h=Array.isArray(d)?d:[d];for(let y=0;y{if(!n)return;let i=!!e.drag;if(!i){for(const a in s)if(kr.has(a)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let a=0;a{Am(n,r),Ee.render(()=>{$l(r,s,Ul(n.tagName),e.transformTemplate),Nm(n,r)})})}})};function u_(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const o={...Bl(r)?l_:c_,preloadedFeatures:e,useRender:r_(s),createVisualElement:t,Component:r};return MS(o)}}function Ys(e,t,n){const r=e.getProps();return zl(r,t,n!==void 0?n:r.custom,e)}function Hl(e,t){return e?e[t]||e.default||e:void 0}const jm=new Set(["width","height","top","left","right","bottom",...vs]);let io;function d_(){io=void 0}const rn={now:()=>(io===void 0&&rn.set(He.isProcessing||xS.useManualTiming?He.timestamp:performance.now()),io),set:e=>{io=e,queueMicrotask(d_)}};function ql(e,t){e.indexOf(t)===-1&&e.push(t)}function Zl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Kl{constructor(){this.subscriptions=[]}add(t){return ql(this.subscriptions,t),()=>Zl(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class h_{constructor(t,n={}){this.version="12.4.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const i=rn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=rn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=f_(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 Kl);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ee.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=rn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Dd)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Dd);return Om(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 Js(e,t){return new h_(e,t)}function p_(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Js(n))}function m_(e,t){const n=Ys(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=i_(i[o]);p_(e,o,a)}}function g_(e){return!!(et(e)&&e.add)}function wc(e,t){const n=e.getValue("willChange");if(g_(n))return n.add(t)}function Mm(e){return e.props[vm]}function Gl(e){let t;return()=>(t===void 0&&(t=e()),t)}const y_=Gl(()=>window.ScrollTimeline!==void 0);class v_{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(y_()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class x_ extends v_{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const xn=e=>e*1e3,bn=e=>e/1e3;function Ql(e){return typeof e=="function"}function Id(e,t){e.timeline=t,e.onfinish=null}const Xl=e=>Array.isArray(e)&&typeof e[0]=="number",b_={linearEasing:void 0};function w_(e,t){const n=Gl(e);return()=>{var r;return(r=b_[t])!==null&&r!==void 0?r:n()}}const yo=w_(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),as=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Dm=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Sc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ms([0,.65,.55,1]),circOut:Ms([.55,0,1,.45]),backIn:Ms([.31,.01,.66,-.59]),backOut:Ms([.33,1.53,.69,.99])};function Lm(e,t){if(e)return typeof e=="function"&&yo()?Dm(e,t):Xl(e)?Ms(e):Array.isArray(e)?e.map(n=>Lm(n,t)||Sc.easeOut):Sc[e]}const Fm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,S_=1e-7,__=12;function C_(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=Fm(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>S_&&++a<__);return o}function Ri(e,t,n,r){if(e===t&&n===r)return xt;const s=i=>C_(i,0,1,e,n);return i=>i===0||i===1?i:Fm(s(i),t,r)}const Vm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Bm=e=>t=>1-e(1-t),$m=Ri(.33,1.53,.69,.99),Yl=Bm($m),Um=Vm(Yl),zm=e=>(e*=2)<1?.5*Yl(e):.5*(2-Math.pow(2,-10*(e-1))),Jl=e=>1-Math.sin(Math.acos(e)),Wm=Bm(Jl),Hm=Vm(Jl),qm=e=>/^0[^.\s]+$/u.test(e);function E_(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||qm(e):!0}const Vs=e=>Math.round(e*1e5)/1e5,eu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function T_(e){return e==null}const A_=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tu=(e,t)=>n=>!!(typeof n=="string"&&A_.test(n)&&n.startsWith(e)||t&&!T_(n)&&Object.prototype.hasOwnProperty.call(n,t)),Zm=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(eu);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},R_=e=>wn(0,255,e),Pa={...xs,transform:e=>Math.round(R_(e))},ir={test:tu("rgb","red"),parse:Zm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Pa.transform(e)+", "+Pa.transform(t)+", "+Pa.transform(n)+", "+Vs(Xs.transform(r))+")"};function P_(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const _c={test:tu("#"),parse:P_,transform:ir.transform},Vr={test:tu("hsl","hue"),parse:Zm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+nn.transform(Vs(t))+", "+nn.transform(Vs(n))+", "+Vs(Xs.transform(r))+")"},Ye={test:e=>ir.test(e)||_c.test(e)||Vr.test(e),parse:e=>ir.test(e)?ir.parse(e):Vr.test(e)?Vr.parse(e):_c.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ir.transform(e):Vr.transform(e)},N_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function k_(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(eu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(N_))===null||n===void 0?void 0:n.length)||0)>0}const Km="number",Gm="color",j_="var",O_="var(",Ld="${}",M_=/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 ei(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(M_,c=>(Ye.test(c)?(r.color.push(i),s.push(Gm),n.push(Ye.parse(c))):c.startsWith(O_)?(r.var.push(i),s.push(j_),n.push(c)):(r.number.push(i),s.push(Km),n.push(parseFloat(c))),++i,Ld)).split(Ld);return{values:n,split:a,indexes:r,types:s}}function Qm(e){return ei(e).values}function Xm(e){const{split:t,types:n}=ei(e),r=t.length;return s=>{let i="";for(let o=0;otypeof e=="number"?0:e;function I_(e){const t=Qm(e);return Xm(e)(t.map(D_))}const zn={test:k_,parse:Qm,createTransformer:Xm,getAnimatableNone:I_},L_=new Set(["brightness","contrast","saturate","opacity"]);function F_(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(eu)||[];if(!r)return e;const s=n.replace(r,"");let i=L_.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const V_=/\b([a-z-]*)\(.*?\)/gu,Cc={...zn,getAnimatableNone:e=>{const t=e.match(V_);return t?t.map(F_).join(" "):e}},B_={...Ll,color:Ye,backgroundColor:Ye,outlineColor:Ye,fill:Ye,stroke:Ye,borderColor:Ye,borderTopColor:Ye,borderRightColor:Ye,borderBottomColor:Ye,borderLeftColor:Ye,filter:Cc,WebkitFilter:Cc},nu=e=>B_[e];function Ym(e,t){let n=nu(e);return n!==Cc&&(n=zn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const $_=new Set(["auto","none","0"]);function U_(e,t,n){let r=0,s;for(;re===xs||e===te,Vd=(e,t)=>parseFloat(e.split(", ")[t]),Bd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/u);if(s)return Vd(s[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Vd(i[1],e):0}},z_=new Set(["x","y","z"]),W_=vs.filter(e=>!z_.has(e));function H_(e){const t=[];return W_.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const cs={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:Bd(4,13),y:Bd(5,14)};cs.translateX=cs.x;cs.translateY=cs.y;const vr=new Set;let Ec=!1,Tc=!1;function Jm(){if(Tc){const e=Array.from(vr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=H_(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Tc=!1,Ec=!1,vr.forEach(e=>e.complete()),vr.clear()}function eg(){vr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Tc=!0)})}function q_(){eg(),Jm()}class ru{constructor(t,n,r,s,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(vr.add(this),Ec||(Ec=!0,Ee.read(eg),Ee.resolveKeyframes(Jm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let i=0;i/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Z_=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function K_(e){const t=Z_.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function ng(e,t,n=1){const[r,s]=K_(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return tg(o)?parseFloat(o):o}return Il(s)?ng(s,t,n+1):s}const rg=e=>t=>t.test(e),G_={test:e=>e==="auto",parse:e=>e},sg=[xs,te,nn,kn,US,$S,G_],$d=e=>sg.find(rg(e));class ig extends ru{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c{n.getValue(c).set(l)}),this.resolveNoneKeyframes()}}const Ud=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(zn.test(e)||e==="0")&&!e.startsWith("url("));function Q_(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function ea(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(Y_),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}const J_=40;class og{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=rn.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>J_?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&q_(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=rn.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:i,delay:o,onComplete:a,onUpdate:c,isGenerator:l}=this.options;if(!l&&!X_(t,r,s,i))if(o)this.options.duration=0;else{c&&c(ea(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 Ac=2e4;function ag(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Ac?1/0:t}const Re=(e,t,n)=>e+(t-e)*n;function Na(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 eC({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;s=Na(c,a,e+1/3),i=Na(c,a,e),o=Na(c,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function vo(e,t){return n=>n>0?t:e}const ka=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},tC=[_c,ir,Vr],nC=e=>tC.find(t=>t.test(e));function zd(e){const t=nC(e);if(!t)return!1;let n=t.parse(e);return t===Vr&&(n=eC(n)),n}const Wd=(e,t)=>{const n=zd(e),r=zd(t);if(!n||!r)return vo(e,t);const s={...n};return i=>(s.red=ka(n.red,r.red,i),s.green=ka(n.green,r.green,i),s.blue=ka(n.blue,r.blue,i),s.alpha=Re(n.alpha,r.alpha,i),ir.transform(s))},rC=(e,t)=>n=>t(e(n)),Pi=(...e)=>e.reduce(rC),Rc=new Set(["none","hidden"]);function sC(e,t){return Rc.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function iC(e,t){return n=>Re(e,t,n)}function su(e){return typeof e=="number"?iC:typeof e=="string"?Il(e)?vo:Ye.test(e)?Wd:cC:Array.isArray(e)?cg:typeof e=="object"?Ye.test(e)?Wd:oC:vo}function cg(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>su(i)(i,t[o]));return i=>{for(let o=0;o{for(const i in r)n[i]=r[i](s);return n}}function aC(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let i=0;i{const n=zn.createTransformer(t),r=ei(e),s=ei(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Rc.has(e)&&!s.values.length||Rc.has(t)&&!r.values.length?sC(e,t):Pi(cg(aC(r,s),s.values),n):vo(e,t)};function lg(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Re(e,t,n):su(e)(e,t)}const lC=5;function ug(e,t,n){const r=Math.max(t-lC,0);return Om(n-e(r),t-r)}const ke={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},Hd=.001;function uC({duration:e=ke.duration,bounce:t=ke.bounce,velocity:n=ke.velocity,mass:r=ke.mass}){let s,i,o=1-t;o=wn(ke.minDamping,ke.maxDamping,o),e=wn(ke.minDuration,ke.maxDuration,bn(e)),o<1?(s=l=>{const u=l*o,d=u*e,h=u-n,y=Pc(l,o),g=Math.exp(-d);return Hd-h/y*g},i=l=>{const d=l*o*e,h=d*n+n,y=Math.pow(o,2)*Math.pow(l,2)*e,g=Math.exp(-d),p=Pc(Math.pow(l,2),o);return(-s(l)+Hd>0?-1:1)*((h-y)*g)/p}):(s=l=>{const u=Math.exp(-l*e),d=(l-n)*e+1;return-.001+u*d},i=l=>{const u=Math.exp(-l*e),d=(n-l)*(e*e);return u*d});const a=5/e,c=fC(s,i,a);if(e=xn(e),isNaN(c))return{stiffness:ke.stiffness,damping:ke.damping,duration:e};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:o*2*Math.sqrt(r*l),duration:e}}}const dC=12;function fC(e,t,n){let r=n;for(let s=1;se[n]!==void 0)}function mC(e){let t={velocity:ke.velocity,stiffness:ke.stiffness,damping:ke.damping,mass:ke.mass,isResolvedFromDuration:!1,...e};if(!qd(e,pC)&&qd(e,hC))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*wn(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:ke.mass,stiffness:s,damping:i}}else{const n=uC(e);t={...t,...n,mass:ke.mass},t.isResolvedFromDuration=!0}return t}function dg(e=ke.visualDuration,t=ke.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:c,damping:l,mass:u,duration:d,velocity:h,isResolvedFromDuration:y}=mC({...n,velocity:-bn(n.velocity||0)}),g=h||0,p=l/(2*Math.sqrt(c*u)),v=o-i,x=bn(Math.sqrt(c/u)),b=Math.abs(v)<5;r||(r=b?ke.restSpeed.granular:ke.restSpeed.default),s||(s=b?ke.restDelta.granular:ke.restDelta.default);let w;if(p<1){const S=Pc(x,p);w=T=>{const A=Math.exp(-p*x*T);return o-A*((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 A=Math.exp(-p*x*T),R=Math.min(S*T,300);return o-A*((g+p*x*v)*Math.sinh(R)+S*v*Math.cosh(R))/S}}const _={calculatedDuration:y&&d||null,next:S=>{const T=w(S);if(y)a.done=S>=d;else{let A=0;p<1&&(A=S===0?xn(g):ug(w,S,T));const R=Math.abs(A)<=r,N=Math.abs(o-T)<=s;a.done=R&&N}return a.value=a.done?o:T,a},toString:()=>{const S=Math.min(ag(_),Ac),T=Dm(A=>_.next(S*A).value,S,30);return S+"ms "+T}};return _}function Zd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},y=R=>a!==void 0&&Rc,g=R=>a===void 0?c:c===void 0||Math.abs(a-R)-p*Math.exp(-R/r),w=R=>x+b(R),_=R=>{const N=b(R),O=w(R);h.done=Math.abs(N)<=l,h.value=h.done?x:O};let S,T;const A=R=>{y(h.value)&&(S=R,T=dg({keyframes:[h.value,g(h.value)],velocity:ug(w,R,h.value),damping:s,stiffness:i,restDelta:l,restSpeed:u}))};return A(0),{calculatedDuration:null,next:R=>{let N=!1;return!T&&S===void 0&&(N=!0,_(R),A(R)),S!==void 0&&R>=S?T.next(R-S):(!N&&_(R),h)}}}const gC=Ri(.42,0,1,1),yC=Ri(0,0,.58,1),fg=Ri(.42,0,.58,1),vC=e=>Array.isArray(e)&&typeof e[0]!="number",xC={linear:xt,easeIn:gC,easeInOut:fg,easeOut:yC,circIn:Jl,circInOut:Hm,circOut:Wm,backIn:Yl,backInOut:Um,backOut:$m,anticipate:zm},Kd=e=>{if(Xl(e)){hm(e.length===4);const[t,n,r,s]=e;return Ri(t,n,r,s)}else if(typeof e=="string")return xC[e];return e};function bC(e,t,n){const r=[],s=n||lg,i=e.length-1;for(let o=0;ot[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=bC(t,r,s),c=a.length,l=u=>{if(o&&u1)for(;dl(wn(e[0],e[i-1],u)):l}function SC(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=as(0,t,r);e.push(Re(n,1,s))}}function _C(e){const t=[0];return SC(t,e.length-1),t}function CC(e,t){return e.map(n=>n*t)}function EC(e,t){return e.map(()=>t||fg).splice(0,e.length-1)}function xo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=vC(r)?r.map(Kd):Kd(r),i={done:!1,value:t[0]},o=CC(n&&n.length===t.length?n:_C(t),e),a=wC(o,t,{ease:Array.isArray(s)?s:EC(t,s)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const TC=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ee.update(t,!0),stop:()=>Un(t),now:()=>He.isProcessing?He.timestamp:rn.now()}},AC={decay:Zd,inertia:Zd,tween:xo,keyframes:xo,spring:dg},RC=e=>e/100;class iu extends og{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:c}=this.options;c&&c()};const{name:n,motionValue:r,element:s,keyframes:i}=this.options,o=(s==null?void 0:s.KeyframeResolver)||ru,a=(c,l)=>this.onKeyframesResolved(c,l);this.resolver=new o(i,a,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=this.options,a=Ql(n)?n:AC[n]||xo;let c,l;a!==xo&&typeof t[0]!="number"&&(c=Pi(RC,lg(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});i==="mirror"&&(l=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=ag(u));const{calculatedDuration:d}=u,h=d+s,y=h*(r+1)-s;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:c,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:r}=this;if(!r){const{keyframes:R}=this.options;return{done:!0,value:R[R.length-1]}}const{finalKeyframe:s,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:c,calculatedDuration:l,totalDuration:u,resolvedDuration:d}=r;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 R=Math.min(this.currentTime,u)/d;let N=Math.floor(R),O=R%1;!O&&R>=1&&(O=1),O===1&&N--,N=Math.min(N,y+1),!!(N%2)&&(g==="reverse"?(O=1-O,p&&(O-=p/d)):g==="mirror"&&(_=o)),w=wn(0,1,O)*d}const S=b?{done:!1,value:c[0]}:_.next(w);a&&(S.value=a(S.value));let{done:T}=S;!b&&l!==null&&(T=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return A&&s!==void 0&&(S.value=ea(c,this.options,s)),v&&v(S.value),A&&this.finish(),S}get duration(){const{resolved:t}=this;return t?bn(t.calculatedDuration):0}get time(){return bn(this.currentTime)}set time(t){t=xn(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=bn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=TC,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const PC=new Set(["opacity","clipPath","filter","transform"]);function NC(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeInOut",times:c}={}){const l={[t]:n};c&&(l.offset=c);const u=Lm(a,s);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:r,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const kC=Gl(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),bo=10,jC=2e4;function OC(e){return Ql(e.type)||e.type==="spring"||!Im(e.ease)}function MC(e,t){const n=new iu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(o,a),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:i,type:o,motionValue:a,name:c,startTime:l}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&yo()&&DC(i)&&(i=hg[i]),OC(this.options)){const{onComplete:d,onUpdate:h,motionValue:y,element:g,...p}=this.options,v=MC(t,p);t=v.keyframes,t.length===1&&(t[1]=t[0]),r=v.duration,s=v.times,i=v.ease,o="keyframes"}const u=NC(a.owner.current,c,t,{...this.options,duration:r,times:s,ease:i});return u.startTime=l??this.calcStartTime(),this.pendingTimeline?(Id(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(ea(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:s,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return bn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return bn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=xn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return xt;const{animation:r}=n;Id(r,t)}return xt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:s,type:i,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:u,onComplete:d,element:h,...y}=this.options,g=new iu({...y,keyframes:r,duration:s,type:i,ease:o,times:a,isGenerator:!0}),p=xn(this.time);l.setWithVelocity(g.sample(p-bo).value,g.sample(p).value,bo)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:s,repeatType:i,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=n.owner.getProps();return kC()&&r&&PC.has(r)&&!c&&!l&&!s&&i!=="mirror"&&o!==0&&a!=="inertia"}}const IC={type:"spring",stiffness:500,damping:25,restSpeed:10},LC=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),FC={type:"keyframes",duration:.8},VC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},BC=(e,{keyframes:t})=>t.length>2?FC:kr.has(e)?e.startsWith("scale")?LC(t[1]):IC:VC;function $C({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const ou=(e,t,n,r={},s,i)=>o=>{const a=Hl(r,e)||{},c=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-xn(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};$C(a)||(u={...u,...BC(e,u)}),u.duration&&(u.duration=xn(u.duration)),u.repeatDelay&&(u.repeatDelay=xn(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=ea(u.keyframes,a);if(h!==void 0)return Ee.update(()=>{u.onUpdate(h),u.onComplete()}),new x_([])}return!i&&Gd.supports(u)?new Gd(u):new iu(u)};function UC({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function pg(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...c}=t;r&&(o=r);const l=[],u=s&&e.animationState&&e.animationState.getState()[s];for(const d in c){const h=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),y=c[d];if(y===void 0||u&&UC(u,d))continue;const g={delay:n,...Hl(o||{},d)};let p=!1;if(window.MotionHandoffAnimation){const x=Mm(e);if(x){const b=window.MotionHandoffAnimation(x,d,Ee);b!==null&&(g.startTime=b,p=!0)}}wc(e,d),h.start(ou(d,h,y,e.shouldReduceMotion&&jm.has(d)?{type:!1}:g,e,p));const v=h.animation;v&&l.push(v)}return a&&Promise.all(l).then(()=>{Ee.update(()=>{a&&m_(e,a)})}),l}function Nc(e,t,n={}){var r;const s=Ys(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(pg(e,s,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:h}=i;return zC(e,t,u+l,d,h,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[l,u]=c==="beforeChildren"?[o,a]:[a,o];return l().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function zC(e,t,n=0,r=0,s=1,i){const o=[],a=(e.variantChildren.size-1)*r,c=s===1?(l=0)=>l*r:(l=0)=>a-l*r;return Array.from(e.variantChildren).sort(WC).forEach((l,u)=>{l.notify("AnimationStart",t),o.push(Nc(l,t,{...i,delay:n+c(u)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(o)}function WC(e,t){return e.sortNodePosition(t)}function HC(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>Nc(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=Nc(e,t,n);else{const s=typeof t=="function"?Ys(e,t,n.custom):t;r=Promise.all(pg(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function mg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>HC(e,n,r)))}function QC(e){let t=GC(e),n=Qd(),r=!0;const s=c=>(l,u)=>{var d;const h=Ys(e,u,c==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(h){const{transition:y,transitionEnd:g,...p}=h;l={...l,...p,...g}}return l};function i(c){t=c(e)}function o(c){const{props:l}=e,u=gg(e.parent)||{},d=[],h=new Set;let y={},g=1/0;for(let v=0;vg&&_,N=!1;const O=Array.isArray(w)?w:[w];let I=O.reduce(s(x),{});S===!1&&(I={});const{prevResolvedValues:M={}}=b,U={...M,...I},F=Z=>{R=!0,h.has(Z)&&(N=!0,h.delete(Z)),b.needsAnimating[Z]=!0;const K=e.getValue(Z);K&&(K.liveStyle=!1)};for(const Z in U){const K=I[Z],se=M[Z];if(y.hasOwnProperty(Z))continue;let fe=!1;bc(K)&&bc(se)?fe=!mg(K,se):fe=K!==se,fe?K!=null?F(Z):h.add(Z):K!==void 0&&h.has(Z)?F(Z):b.protectedKeys[Z]=!0}b.prevProp=w,b.prevResolvedValues=I,b.isActive&&(y={...y,...I}),r&&e.blockInitialAnimation&&(R=!1),R&&(!(T&&A)||N)&&d.push(...O.map(Z=>({animation:Z,options:{type:x}})))}if(h.size){const v={};if(typeof l.initial!="boolean"){const x=Ys(e,Array.isArray(l.initial)?l.initial[0]:l.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 r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(d):Promise.resolve()}function a(c,l){var u;if(n[c].isActive===l)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(c,l)}),n[c].isActive=l;const d=o(c);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Qd(),r=!0}}}function XC(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!mg(t,e):!1}function nr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Qd(){return{animate:nr(!0),whileInView:nr(),whileHover:nr(),whileTap:nr(),whileDrag:nr(),whileFocus:nr(),exit:nr()}}class Xn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class YC extends Xn{constructor(t){super(t),t.animationState||(t.animationState=QC(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Yo(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 JC=0;class eE extends Xn{constructor(){super(...arguments),this.id=JC++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const tE={animation:{Feature:YC},exit:{Feature:eE}},Ot={x:!1,y:!1};function yg(){return Ot.x||Ot.y}function nE(e){return e==="x"||e==="y"?Ot[e]?null:(Ot[e]=!0,()=>{Ot[e]=!1}):Ot.x||Ot.y?null:(Ot.x=Ot.y=!0,()=>{Ot.x=Ot.y=!1})}const au=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ti(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ni(e){return{point:{x:e.pageX,y:e.pageY}}}const rE=e=>t=>au(t)&&e(t,Ni(t));function Bs(e,t,n,r){return ti(e,t,rE(n),r)}const Xd=(e,t)=>Math.abs(e-t);function sE(e,t){const n=Xd(e.x,t.x),r=Xd(e.y,t.y);return Math.sqrt(n**2+r**2)}class vg{constructor(t,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Oa(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,y=sE(d.offset,{x:0,y:0})>=3;if(!h&&!y)return;const{point:g}=d,{timestamp:p}=He;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=ja(h,this.transformPagePoint),Ee.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=Oa(d.type==="pointercancel"?this.lastMoveEventInfo:ja(h,this.transformPagePoint),this.history);this.startEvent&&y&&y(d,v),g&&g(d,v)},!au(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const o=Ni(t),a=ja(o,this.transformPagePoint),{point:c}=a,{timestamp:l}=He;this.history=[{...c,timestamp:l}];const{onSessionStart:u}=n;u&&u(t,Oa(a,this.history)),this.removeListeners=Pi(Bs(this.contextWindow,"pointermove",this.handlePointerMove),Bs(this.contextWindow,"pointerup",this.handlePointerUp),Bs(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Un(this.updatePoint)}}function ja(e,t){return t?{point:t(e.point)}:e}function Yd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Oa({point:e},t){return{point:e,delta:Yd(e,xg(t)),offset:Yd(e,iE(t)),velocity:oE(t,.1)}}function iE(e){return e[0]}function xg(e){return e[e.length-1]}function oE(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=xg(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>xn(t)));)n--;if(!r)return{x:0,y:0};const i=bn(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const bg=1e-4,aE=1-bg,cE=1+bg,wg=.01,lE=0-wg,uE=0+wg;function at(e){return e.max-e.min}function dE(e,t,n){return Math.abs(e-t)<=n}function Jd(e,t,n,r=.5){e.origin=r,e.originPoint=Re(t.min,t.max,e.origin),e.scale=at(n)/at(t),e.translate=Re(n.min,n.max,e.origin)-e.originPoint,(e.scale>=aE&&e.scale<=cE||isNaN(e.scale))&&(e.scale=1),(e.translate>=lE&&e.translate<=uE||isNaN(e.translate))&&(e.translate=0)}function $s(e,t,n,r){Jd(e.x,t.x,n.x,r?r.originX:void 0),Jd(e.y,t.y,n.y,r?r.originY:void 0)}function ef(e,t,n){e.min=n.min+t.min,e.max=e.min+at(t)}function fE(e,t,n){ef(e.x,t.x,n.x),ef(e.y,t.y,n.y)}function tf(e,t,n){e.min=t.min-n.min,e.max=e.min+at(t)}function Us(e,t,n){tf(e.x,t.x,n.x),tf(e.y,t.y,n.y)}function hE(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Re(n,e,r.max):Math.min(e,n)),e}function nf(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 pE(e,{top:t,left:n,bottom:r,right:s}){return{x:nf(e.x,n,s),y:nf(e.y,t,r)}}function rf(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=as(t.min,t.max-r,e.min):r>s&&(n=as(e.min,e.max-s,t.min)),wn(0,1,n)}function yE(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 kc=.35;function vE(e=kc){return e===!1?e=0:e===!0&&(e=kc),{x:sf(e,"left","right"),y:sf(e,"top","bottom")}}function sf(e,t,n){return{min:of(e,t),max:of(e,n)}}function of(e,t){return typeof e=="number"?e:e[t]||0}const af=()=>({translate:0,scale:1,origin:0,originPoint:0}),Br=()=>({x:af(),y:af()}),cf=()=>({min:0,max:0}),Me=()=>({x:cf(),y:cf()});function At(e){return[e("x"),e("y")]}function Sg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function xE({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function bE(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ma(e){return e===void 0||e===1}function jc({scale:e,scaleX:t,scaleY:n}){return!Ma(e)||!Ma(t)||!Ma(n)}function rr(e){return jc(e)||_g(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function _g(e){return lf(e.x)||lf(e.y)}function lf(e){return e&&e!=="0%"}function wo(e,t,n){const r=e-n,s=t*r;return n+s}function uf(e,t,n,r,s){return s!==void 0&&(e=wo(e,s,r)),wo(e,n,r)+t}function Oc(e,t=0,n=1,r,s){e.min=uf(e.min,t,n,r,s),e.max=uf(e.max,t,n,r,s)}function Cg(e,{x:t,y:n}){Oc(e.x,t.translate,t.scale,t.originPoint),Oc(e.y,n.translate,n.scale,n.originPoint)}const df=.999999999999,ff=1.0000000000001;function wE(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let a=0;adf&&(t.x=1),t.ydf&&(t.y=1)}function $r(e,t){e.min=e.min+t,e.max=e.max+t}function hf(e,t,n,r,s=.5){const i=Re(e.min,e.max,s);Oc(e,t,n,i,r)}function Ur(e,t){hf(e.x,t.x,t.scaleX,t.scale,t.originX),hf(e.y,t.y,t.scaleY,t.scale,t.originY)}function Eg(e,t){return Sg(bE(e.getBoundingClientRect(),t))}function SE(e,t,n){const r=Eg(e,n),{scroll:s}=t;return s&&($r(r.x,s.offset.x),$r(r.y,s.offset.y)),r}const Tg=({current:e})=>e?e.ownerDocument.defaultView:null,_E=new WeakMap;class CE{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=Me(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ni(u).point)},i=(u,d)=>{const{drag:h,dragPropagation:y,onDragStart:g}=this.getProps();if(h&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=nE(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(nn.test(x)){const{projection:b}=this.visualElement;if(b&&b.layout){const w=b.layout.layoutBox[v];w&&(x=at(w)*(parseFloat(x)/100))}}this.originPoint[v]=x}),g&&Ee.postRender(()=>g(u,d)),wc(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=EE(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),c=()=>At(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new vg(t,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:Tg(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&Ee.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!Xi(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=hE(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Fr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=pE(s.layoutBox,n):this.constraints=!1,this.elastic=vE(r),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&At(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=yE(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Fr(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=SE(r,s.root,this.visualElement.getTransformPagePoint());let o=mE(s.layout.layoutBox,i);if(n){const a=n(xE(o));this.hasMutatedConstraints=!!a,a&&(o=Sg(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=At(u=>{if(!Xi(u,n,this.currentDirection))return;let d=c&&c[u]||{};o&&(d={min:0,max:0});const h=s?200:1e6,y=s?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,g)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return wc(this.visualElement,t),r.start(ou(t,r,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()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){At(n=>{const{drag:r}=this.getProps();if(!Xi(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n];i.set(t[n]-Re(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Fr(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};At(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const c=a.get();s[o]=gE({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),At(o=>{if(!Xi(o,t,null))return;const a=this.getAxisMotionValue(o),{min:c,max:l}=this.constraints[o];a.set(Re(c,l,s[o]))})}addListeners(){if(!this.visualElement.current)return;_E.set(this.visualElement,this);const t=this.visualElement.current,n=Bs(t,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Fr(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Ee.read(r);const o=ti(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(At(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=c[u].translate,d.set(d.get()+c[u].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=kc,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Xi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function EE(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class TE extends Xn{constructor(t){super(t),this.removeGroupControls=xt,this.removeListeners=xt,this.controls=new CE(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||xt}unmount(){this.removeGroupControls(),this.removeListeners()}}const pf=e=>(t,n)=>{e&&Ee.postRender(()=>e(t,n))};class AE extends Xn{constructor(){super(...arguments),this.removePointerDownListener=xt}onPointerDown(t){this.session=new vg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Tg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:pf(t),onStart:pf(n),onMove:r,onEnd:(i,o)=>{delete this.session,s&&Ee.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=Bs(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 oo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function mf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ps={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(te.test(e))e=parseFloat(e);else return e;const n=mf(e,t.target.x),r=mf(e,t.target.y);return`${n}% ${r}%`}},RE={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=zn.parse(e);if(s.length>5)return r;const i=zn.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=c;const l=Re(a,c,.5);return typeof s[2+o]=="number"&&(s[2+o]/=l),typeof s[3+o]=="number"&&(s[3+o]/=l),i(s)}};class PE extends m.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;BS(NE),i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),oo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,s||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||Ee.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ml.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ag(e){const[t,n]=dm(),r=m.useContext(Al);return f.jsx(PE,{...e,layoutGroup:r,switchLayoutGroup:m.useContext(xm),isPresent:t,safeToRemove:n})}const NE={borderRadius:{...Ps,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ps,borderTopRightRadius:Ps,borderBottomLeftRadius:Ps,borderBottomRightRadius:Ps,boxShadow:RE};function kE(e,t,n){const r=et(e)?e:Js(e);return r.start(ou("",r,t,n)),r.animation}function jE(e){return e instanceof SVGElement&&e.tagName!=="svg"}const OE=(e,t)=>e.depth-t.depth;class ME{constructor(){this.children=[],this.isDirty=!1}add(t){ql(this.children,t),this.isDirty=!0}remove(t){Zl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(OE),this.isDirty=!1,this.children.forEach(t)}}function DE(e,t){const n=rn.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Un(r),e(i-t))};return Ee.read(r,!0),()=>Un(r)}const Rg=["TopLeft","TopRight","BottomLeft","BottomRight"],IE=Rg.length,gf=e=>typeof e=="string"?parseFloat(e):e,yf=e=>typeof e=="number"||te.test(e);function LE(e,t,n,r,s,i){s?(e.opacity=Re(0,n.opacity!==void 0?n.opacity:1,FE(r)),e.opacityExit=Re(t.opacity!==void 0?t.opacity:1,0,VE(r))):i&&(e.opacity=Re(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;ort?1:n(as(e,t,r))}function xf(e,t){e.min=t.min,e.max=t.max}function Tt(e,t){xf(e.x,t.x),xf(e.y,t.y)}function bf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function wf(e,t,n,r,s){return e-=t,e=wo(e,1/n,r),s!==void 0&&(e=wo(e,1/s,r)),e}function BE(e,t=0,n=1,r=.5,s,i=e,o=e){if(nn.test(t)&&(t=parseFloat(t),t=Re(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Re(i.min,i.max,r);e===i&&(a-=t),e.min=wf(e.min,t,n,a,s),e.max=wf(e.max,t,n,a,s)}function Sf(e,t,[n,r,s],i,o){BE(e,t[n],t[r],t[s],t.scale,i,o)}const $E=["x","scaleX","originX"],UE=["y","scaleY","originY"];function _f(e,t,n,r){Sf(e.x,t,$E,n?n.x:void 0,r?r.x:void 0),Sf(e.y,t,UE,n?n.y:void 0,r?r.y:void 0)}function Cf(e){return e.translate===0&&e.scale===1}function Ng(e){return Cf(e.x)&&Cf(e.y)}function Ef(e,t){return e.min===t.min&&e.max===t.max}function zE(e,t){return Ef(e.x,t.x)&&Ef(e.y,t.y)}function Tf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function kg(e,t){return Tf(e.x,t.x)&&Tf(e.y,t.y)}function Af(e){return at(e.x)/at(e.y)}function Rf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class WE{constructor(){this.members=[]}add(t){ql(this.members,t),t.scheduleRender()}remove(t){if(Zl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function HE(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:d,rotateY:h,skewX:y,skewY:g}=n;l&&(r=`perspective(${l}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),h&&(r+=`rotateY(${h}deg) `),y&&(r+=`skewX(${y}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const Da=["","X","Y","Z"],qE={visibility:"hidden"},Pf=1e3;let ZE=0;function Ia(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function jg(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Mm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ee,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&jg(r)}function Og({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=ZE++,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(QE),this.nodes.forEach(tT),this.nodes.forEach(nT),this.nodes.forEach(XE)},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 c=0;cthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=DE(h,250),oo.hasAnimatedSinceResize&&(oo.hasAnimatedSinceResize=!1,this.nodes.forEach(kf))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||l)&&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()||aT,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=u.getProps(),b=!this.targetLayout||!kg(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 _={...Hl(p,"layout"),onPlay:v,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_)}else h||kf(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,Un(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(rT),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&&jg(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!at(this.snapshot.measuredBox.x)&&!at(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 c=0;c{const S=_/1e3;jf(d.x,o.x,S),jf(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Us(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),iT(this.relativeTarget,this.relativeTargetOrigin,h,S),w&&zE(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Me()),Tt(w,this.relativeTarget)),p&&(this.animationValues=u,LE(u,l,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&&(Un(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ee.update(()=>{oo.hasAnimatedSinceResize=!0,this.currentAnimation=kE(0,Pf,{...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(Pf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=o;if(!(!a||!c||!l)){if(this!==o&&this.layout&&l&&Mg(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||Me();const d=at(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+d;const h=at(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+h}Tt(a,c),Ur(a,u),$s(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new WE),this.sharedNodes.get(o).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.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:c}={}){const l=this.getStack();l&&l.promote(this,c),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:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&Ia("z",o,l,this.animationValues);for(let u=0;u{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Nf),this.root.sharedNodes.clear()}}}function KE(e){e.updateLayout()}function GE(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?At(d=>{const h=o?n.measuredBox[d]:n.layoutBox[d],y=at(h);h.min=r[d].min,h.max=h.min+y}):Mg(i,n.layoutBox,r)&&At(d=>{const h=o?n.measuredBox[d]:n.layoutBox[d],y=at(r[d]);h.max=h.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+y)});const a=Br();$s(a,r,n.layoutBox);const c=Br();o?$s(c,e.applyTransform(s,!0),n.measuredBox):$s(c,r,n.layoutBox);const l=!Ng(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=Me();Us(g,n.layoutBox,h.layoutBox);const p=Me();Us(p,r,y.layoutBox),kg(g,p)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function QE(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 XE(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function YE(e){e.clearSnapshot()}function Nf(e){e.clearMeasurements()}function JE(e){e.isLayoutDirty=!1}function eT(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function kf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function tT(e){e.resolveTargetDelta()}function nT(e){e.calcProjection()}function rT(e){e.resetSkewAndRotation()}function sT(e){e.removeLeadSnapshot()}function jf(e,t,n){e.translate=Re(t.translate,0,n),e.scale=Re(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Of(e,t,n,r){e.min=Re(t.min,n.min,r),e.max=Re(t.max,n.max,r)}function iT(e,t,n,r){Of(e.x,t.x,n.x,r),Of(e.y,t.y,n.y,r)}function oT(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const aT={duration:.45,ease:[.4,0,.1,1]},Mf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Df=Mf("applewebkit/")&&!Mf("chrome/")?Math.round:xt;function If(e){e.min=Df(e.min),e.max=Df(e.max)}function cT(e){If(e.x),If(e.y)}function Mg(e,t,n){return e==="position"||e==="preserve-aspect"&&!dE(Af(t),Af(n),.2)}function lT(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const uT=Og({attachResizeListener:(e,t)=>ti(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),La={current:void 0},Dg=Og({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!La.current){const e=new uT({});e.mount(window),e.setOptions({layoutScroll:!0}),La.current=e}return La.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),dT={pan:{Feature:AE},drag:{Feature:TE,ProjectionNode:Dg,MeasureLayout:Ag}};function fT(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;const i=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Ig(e,t){const n=fT(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function Lf(e){return!(e.pointerType==="touch"||yg())}function hT(e,t,n={}){const[r,s,i]=Ig(e,n),o=a=>{if(!Lf(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const u=d=>{Lf(d)&&(l(d),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,s)};return r.forEach(a=>{a.addEventListener("pointerenter",o,s)}),i}function Ff(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&Ee.postRender(()=>i(t,Ni(t)))}class pT extends Xn{mount(){const{current:t}=this.node;t&&(this.unmount=hT(t,(n,r)=>(Ff(this.node,r,"Start"),s=>Ff(this.node,s,"End"))))}unmount(){}}class mT extends Xn{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=Pi(ti(this.node.current,"focus",()=>this.onFocus()),ti(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Lg=(e,t)=>t?e===t?!0:Lg(e,t.parentElement):!1,gT=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function yT(e){return gT.has(e.tagName)||e.tabIndex!==-1}const Ds=new WeakSet;function Vf(e){return t=>{t.key==="Enter"&&e(t)}}function Fa(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const vT=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Vf(()=>{if(Ds.has(n))return;Fa(n,"down");const s=Vf(()=>{Fa(n,"up")}),i=()=>Fa(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Bf(e){return au(e)&&!yg()}function xT(e,t,n={}){const[r,s,i]=Ig(e,n),o=a=>{const c=a.currentTarget;if(!Bf(a)||Ds.has(c))return;Ds.add(c);const l=t(c,a),u=(y,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),!(!Bf(y)||!Ds.has(c))&&(Ds.delete(c),typeof l=="function"&&l(y,{success:g}))},d=y=>{u(y,n.useGlobalTarget||Lg(c,y.target))},h=y=>{u(y,!1)};window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",h,s)};return r.forEach(a=>{!yT(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),a.addEventListener("focus",l=>vT(l,s),s)}),i}function $f(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&Ee.postRender(()=>i(t,Ni(t)))}class bT extends Xn{mount(){const{current:t}=this.node;t&&(this.unmount=xT(t,(n,r)=>($f(this.node,r,"Start"),(s,{success:i})=>$f(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Mc=new WeakMap,Va=new WeakMap,wT=e=>{const t=Mc.get(e.target);t&&t(e)},ST=e=>{e.forEach(wT)};function _T({root:e,...t}){const n=e||document;Va.has(n)||Va.set(n,{});const r=Va.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(ST,{root:e,...t})),r[s]}function CT(e,t,n){const r=_T(t);return Mc.set(e,n),r.observe(e),()=>{Mc.delete(e),r.unobserve(e)}}const ET={some:0,all:1};class TT extends Xn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:ET[s]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,i&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),h=l?u:d;h&&h(c)};return CT(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(AT(t,n))&&this.startObserver()}unmount(){}}function AT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const RT={inView:{Feature:TT},tap:{Feature:bT},focus:{Feature:mT},hover:{Feature:pT}},PT={layout:{ProjectionNode:Dg,MeasureLayout:Ag}},Dc={current:null},Fg={current:!1};function NT(){if(Fg.current=!0,!!Nl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Dc.current=e.matches;e.addListener(t),t()}else Dc.current=!1}const kT=[...sg,Ye,zn],jT=e=>kT.find(rg(e)),OT=new WeakMap;function MT(e,t,n){for(const r in t){const s=t[r],i=n[r];if(et(s))e.addValue(r,s);else if(et(i))e.addValue(r,Js(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,Js(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Uf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class DT{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ru,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.renderScheduledAtthis.bindToMotionValue(r,n)),Fg.current||NT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Dc.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Un(this.notifyUpdate),Un(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=kr.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Ee.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in os){const n=os[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Me()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Js(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(tg(s)||qm(s))?s=parseFloat(s):!jT(s)&&zn.test(n)&&(s=Ym(t,n)),this.setBaseTarget(t,et(s)?s.get():s)),et(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const o=zl(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(s=o[t])}if(r&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!et(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Kl),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Vg extends DT{constructor(){super(...arguments),this.KeyframeResolver=ig}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;et(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function IT(e){return window.getComputedStyle(e)}class LT extends Vg{constructor(){super(...arguments),this.type="html",this.renderInstance=Rm}readValueFromInstance(t,n){if(kr.has(n)){const r=nu(n);return r&&r.default||0}else{const r=IT(t),s=(Dl(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Eg(t,n)}build(t,n,r){Fl(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Wl(t,n,r)}}class FT extends Vg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Me,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Am(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(kr.has(n)){const r=nu(n);return r&&r.default||0}return n=Pm.has(n)?n:Ol(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return km(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Ee.postRender(this.updateDimensions)}build(t,n,r){$l(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){Nm(t,n,r,s)}mount(t){this.isSVGTag=Ul(t.tagName),super.mount(t)}}const VT=(e,t)=>Bl(e)?new FT(t):new LT(t,{allowProjection:e!==m.Fragment}),BT=u_({...tE,...RT,...dT,...PT},VT),zs=TS(BT);var Ba,zf;function $T(){if(zf)return Ba;zf=1;var e="Expected a function",t=NaN,n="[object Symbol]",r=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,c=typeof $i=="object"&&$i&&$i.Object===Object&&$i,l=typeof self=="object"&&self&&self.Object===Object&&self,u=c||l||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,A){var R,N,O,I,M,U,F=0,X=!1,Y=!1,Z=!0;if(typeof S!="function")throw new TypeError(e);T=_(T)||0,x(A)&&(X=!!A.leading,Y="maxWait"in A,O=Y?y(_(A.maxWait)||0,T):O,Z="trailing"in A?!!A.trailing:Z);function K(ue){var ve=R,je=N;return R=N=void 0,F=ue,I=S.apply(je,ve),I}function se(ue){return F=ue,M=setTimeout(Be,T),X?K(ue):I}function fe(ue){var ve=ue-U,je=ue-F,Fe=T-ve;return Y?g(Fe,O-je):Fe}function ye(ue){var ve=ue-U,je=ue-F;return U===void 0||ve>=T||ve<0||Y&&je>=O}function Be(){var ue=p();if(ye(ue))return Ge(ue);M=setTimeout(Be,fe(ue))}function Ge(ue){return M=void 0,Z&&R?K(ue):(R=N=void 0,I)}function Qe(){M!==void 0&&clearTimeout(M),F=0,R=U=N=M=void 0}function jt(){return M===void 0?I:Ge(p())}function st(){var ue=p(),ve=ye(ue);if(R=arguments,N=this,U=ue,ve){if(M===void 0)return se(U);if(Y)return M=setTimeout(Be,T),K(U)}return M===void 0&&(M=setTimeout(Be,T)),I}return st.cancel=Qe,st.flush=jt,st}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(r,"");var A=i.test(S);return A||o.test(S)?a(S.slice(2),A?2:8):s.test(S)?t:+S}return Ba=v,Ba}$T();var Bg=typeof window<"u"?m.useLayoutEffect:m.useEffect,UT=typeof window>"u";function So(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const r=a=>UT?t:window.matchMedia(a).matches,[s,i]=m.useState(()=>n?r(e):t);function o(){i(r(e))}return Bg(()=>{const a=window.matchMedia(e);return o(),a.addListener?a.addListener(o):a.addEventListener("change",o),()=>{a.removeListener?a.removeListener(o):a.removeEventListener("change",o)}},[e]),s}var zT=typeof window>"u";function WT(e={}){const{autoLock:t=!0,lockTarget:n,widthReflow:r=!0}=e,[s,i]=m.useState(!1),o=m.useRef(null),a=m.useRef(null),c=()=>{if(o.current){const{overflow:u,paddingRight:d}=o.current.style;if(a.current={overflow:u,paddingRight:d},r){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)}},l=()=>{o.current&&a.current&&(o.current.style.overflow=a.current.overflow,r&&(o.current.style.paddingRight=a.current.paddingRight)),i(!1)};return Bg(()=>{if(!zT)return n&&(o.current=typeof n=="string"?document.querySelector(n):n),o.current||(o.current=document.body),t&&c(),()=>{l()}},[t,n,r]),{isLocked:s,lock:c,unlock:l}}const hO=({className:e,stage:t})=>{const n=So("(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(zs.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(zs.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(zs.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 ki=e=>e.type==="checkbox",or=e=>e instanceof Date,ot=e=>e==null;const $g=e=>typeof e=="object";var Ie=e=>!ot(e)&&!Array.isArray(e)&&$g(e)&&!or(e),Ug=e=>Ie(e)&&e.target?ki(e.target)?e.target.checked:e.target.value:e,HT=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,zg=(e,t)=>e.has(HT(t)),qT=e=>{const t=e.constructor&&e.constructor.prototype;return Ie(t)&&t.hasOwnProperty("isPrototypeOf")},cu=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ut(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(cu&&(e instanceof Blob||r))&&(n||Ie(e)))if(t=n?[]:{},!n&&!qT(e))t=e;else for(const s in e)e.hasOwnProperty(s)&&(t[s]=ut(e[s]));else return e;return t}var ta=e=>Array.isArray(e)?e.filter(Boolean):[],De=e=>e===void 0,$=(e,t,n)=>{if(!t||!Ie(e))return n;const r=ta(t.split(/[,[\].]+?/)).reduce((s,i)=>ot(s)?s:s[i],e);return De(r)||r===e?De(e[t])?n:e[t]:r},Nt=e=>typeof e=="boolean",lu=e=>/^\w*$/.test(e),Wg=e=>ta(e.replace(/["|']|\]/g,"").split(/\.|\[/)),xe=(e,t,n)=>{let r=-1;const s=lu(t)?[t]:Wg(t),i=s.length,o=i-1;for(;++rde.useContext(Hg),ZT=e=>{const{children:t,...n}=e;return de.createElement(Hg.Provider,{value:n},t)};var qg=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const o=i;return t._proxyFormState[o]!==It.all&&(t._proxyFormState[o]=!r||It.all),n&&(n[o]=!0),e[o]}});return s},ft=e=>Ie(e)&&!Object.keys(e).length,Zg=(e,t,n,r)=>{n(e);const{name:s,...i}=e;return ft(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!r||It.all))},Ws=e=>Array.isArray(e)?e:[e],Kg=(e,t,n)=>!e||!t||e===t||Ws(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function uu(e){const t=de.useRef(e);t.current=e,de.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function KT(e){const t=na(),{control:n=t.control,disabled:r,name:s,exact:i}=e||{},[o,a]=de.useState(n._formState),c=de.useRef(!0),l=de.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=de.useRef(s);return u.current=s,uu({disabled:r,next:d=>c.current&&Kg(u.current,d.name,i)&&Zg(d,l.current,n._updateFormState)&&a({...n._formState,...d}),subject:n._subjects.state}),de.useEffect(()=>(c.current=!0,l.current.isValid&&n._updateValid(!0),()=>{c.current=!1}),[n]),de.useMemo(()=>qg(o,n,l.current,!1),[o,n])}var tn=e=>typeof e=="string",Gg=(e,t,n,r,s)=>tn(e)?(r&&t.watch.add(e),$(n,e,s)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),$(n,i))):(r&&(t.watchAll=!0),n);function GT(e){const t=na(),{control:n=t.control,name:r,defaultValue:s,disabled:i,exact:o}=e||{},a=de.useRef(r);a.current=r,uu({disabled:i,subject:n._subjects.values,next:u=>{Kg(a.current,u.name,o)&&l(ut(Gg(a.current,n._names,u.values||n._formValues,!1,s)))}});const[c,l]=de.useState(n._getWatch(r,s));return de.useEffect(()=>n._removeUnmounted()),c}function QT(e){const t=na(),{name:n,disabled:r,control:s=t.control,shouldUnregister:i}=e,o=zg(s._names.array,n),a=GT({control:s,name:n,defaultValue:$(s._formValues,n,$(s._defaultValues,n,e.defaultValue)),exact:!0}),c=KT({control:s,name:n,exact:!0}),l=de.useRef(s.register(n,{...e.rules,value:a,...Nt(e.disabled)?{disabled:e.disabled}:{}})),u=de.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!$(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!$(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!$(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!$(c.validatingFields,n)},error:{enumerable:!0,get:()=>$(c.errors,n)}}),[c,n]),d=de.useMemo(()=>({name:n,value:a,...Nt(r)||c.disabled?{disabled:c.disabled||r}:{},onChange:h=>l.current.onChange({target:{value:Ug(h),name:n},type:_o.CHANGE}),onBlur:()=>l.current.onBlur({target:{value:$(s._formValues,n),name:n},type:_o.BLUR}),ref:h=>{const y=$(s._fields,n);y&&h&&(y._f.ref={focus:()=>h.focus(),select:()=>h.select(),setCustomValidity:g=>h.setCustomValidity(g),reportValidity:()=>h.reportValidity()})}}),[n,s._formValues,r,c.disabled,a,s._fields]);return de.useEffect(()=>{const h=s._options.shouldUnregister||i,y=(g,p)=>{const v=$(s._fields,g);v&&v._f&&(v._f.mount=p)};if(y(n,!0),h){const g=ut($(s._options.defaultValues,n));xe(s._defaultValues,n,g),De($(s._formValues,n))&&xe(s._formValues,n,g)}return!o&&s.register(n),()=>{(o?h&&!s._state.action:h)?s.unregister(n):y(n,!1)}},[n,s,o,i]),de.useEffect(()=>{s._updateDisabledField({disabled:r,fields:s._fields,name:n})},[r,n,s]),de.useMemo(()=>({field:d,formState:c,fieldState:u}),[d,c,u])}const XT=e=>e.render(QT(e));var Qg=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},Wf=e=>({isOnSubmit:!e||e===It.onSubmit,isOnBlur:e===It.onBlur,isOnChange:e===It.onChange,isOnAll:e===It.all,isOnTouch:e===It.onTouched}),Hf=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Hs=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const i=$(e,s);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],s)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(Hs(a,t))break}else if(Ie(a)&&Hs(a,t))break}}};var YT=(e,t,n)=>{const r=Ws($(e,n));return xe(r,"root",t[n]),xe(e,n,r),e},du=e=>e.type==="file",en=e=>typeof e=="function",Co=e=>{if(!cu)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ao=e=>tn(e),fu=e=>e.type==="radio",Eo=e=>e instanceof RegExp;const qf={value:!1,isValid:!1},Zf={value:!0,isValid:!0};var Xg=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&&!De(e[0].attributes.value)?De(e[0].value)||e[0].value===""?Zf:{value:e[0].value,isValid:!0}:Zf:qf}return qf};const Kf={isValid:!1,value:null};var Yg=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Kf):Kf;function Gf(e,t,n="validate"){if(ao(e)||Array.isArray(e)&&e.every(ao)||Nt(e)&&!e)return{type:n,message:ao(e)?e:"",ref:t}}var Ir=e=>Ie(e)&&!Eo(e)?e:{value:e,message:""},Qf=async(e,t,n,r,s,i)=>{const{ref:o,refs:a,required:c,maxLength:l,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=>{s&&w.reportValidity&&(w.setCustomValidity(Nt(M)?"":M||""),w.reportValidity())},S={},T=fu(o),A=ki(o),R=T||A,N=(v||du(o))&&De(o.value)&&De(b)||Co(o)&&o.value===""||b===""||Array.isArray(b)&&!b.length,O=Qg.bind(null,p,r,S),I=(M,U,F,X=hn.maxLength,Y=hn.minLength)=>{const Z=M?U:F;S[p]={type:M?X:Y,message:Z,ref:o,...O(M?X:Y,Z)}};if(i?!Array.isArray(b)||!b.length:c&&(!R&&(N||ot(b))||Nt(b)&&!b||A&&!Xg(a).isValid||T&&!Yg(a).isValid)){const{value:M,message:U}=ao(c)?{value:!!c,message:c}:Ir(c);if(M&&(S[p]={type:hn.required,message:U,ref:w,...O(hn.required,U)},!r))return _(U),S}if(!N&&(!ot(d)||!ot(h))){let M,U;const F=Ir(h),X=Ir(d);if(!ot(b)&&!isNaN(b)){const Y=o.valueAsNumber||b&&+b;ot(F.value)||(M=Y>F.value),ot(X.value)||(U=Ynew Date(new Date().toDateString()+" "+fe),K=o.type=="time",se=o.type=="week";tn(F.value)&&b&&(M=K?Z(b)>Z(F.value):se?b>F.value:Y>new Date(F.value)),tn(X.value)&&b&&(U=K?Z(b)+M.value,X=!ot(U.value)&&b.length<+U.value;if((F||X)&&(I(F,M.message,U.message),!r))return _(S[p].message),S}if(y&&!N&&tn(b)){const{value:M,message:U}=Ir(y);if(Eo(M)&&!b.match(M)&&(S[p]={type:hn.pattern,message:U,ref:o,...O(hn.pattern,U)},!r))return _(U),S}if(g){if(en(g)){const M=await g(b,n),U=Gf(M,w);if(U&&(S[p]={...U,...O(hn.validate,U.message)},!r))return _(U.message),S}else if(Ie(g)){let M={};for(const U in g){if(!ft(M)&&!r)break;const F=Gf(await g[U](b,n),w,U);F&&(M={...F,...O(U,F.message)},_(F.message),r&&(S[p]=M))}if(!ft(M)&&(S[p]={ref:w,...M},!r))return S}}return _(!0),S};function JT(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}},Ic=e=>ot(e)||!$g(e);function jn(e,t){if(Ic(e)||Ic(t))return e===t;if(or(e)&&or(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const s of n){const i=e[s];if(!r.includes(s))return!1;if(s!=="ref"){const o=t[s];if(or(i)&&or(o)||Ie(i)&&Ie(o)||Array.isArray(i)&&Array.isArray(o)?!jn(i,o):i!==o)return!1}}return!0}var Jg=e=>e.type==="select-multiple",tA=e=>fu(e)||ki(e),Ua=e=>Co(e)&&e.isConnected,ey=e=>{for(const t in e)if(en(e[t]))return!0;return!1};function To(e,t={}){const n=Array.isArray(e);if(Ie(e)||n)for(const r in e)Array.isArray(e[r])||Ie(e[r])&&!ey(e[r])?(t[r]=Array.isArray(e[r])?[]:{},To(e[r],t[r])):ot(e[r])||(t[r]=!0);return t}function ty(e,t,n){const r=Array.isArray(e);if(Ie(e)||r)for(const s in e)Array.isArray(e[s])||Ie(e[s])&&!ey(e[s])?De(t)||Ic(n[s])?n[s]=Array.isArray(e[s])?To(e[s],[]):{...To(e[s])}:ty(e[s],ot(t)?{}:t[s],n[s]):n[s]=!jn(e[s],t[s]);return n}var Ns=(e,t)=>ty(e,t,To(t)),ny=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>De(e)?e:t?e===""?NaN:e&&+e:n&&tn(e)?new Date(e):r?r(e):e;function za(e){const t=e.ref;return du(t)?t.files:fu(t)?Yg(e.refs).value:Jg(t)?[...t.selectedOptions].map(({value:n})=>n):ki(t)?Xg(e.refs).value:ny(De(t.value)?e.ref.value:t.value,e)}var nA=(e,t,n,r)=>{const s={};for(const i of e){const o=$(t,i);o&&xe(s,i,o._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},ks=e=>De(e)?e:Eo(e)?e.source:Ie(e)?Eo(e.value)?e.value.source:e.value:e;const Xf="AsyncFunction";var rA=e=>!!e&&!!e.validate&&!!(en(e.validate)&&e.validate.constructor.name===Xf||Ie(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Xf)),sA=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Yf(e,t,n){const r=$(e,n);if(r||lu(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const i=s.join("."),o=$(t,i),a=$(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};s.pop()}return{name:n}}var iA=(e,t,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(t||e):(n?r.isOnBlur:s.isOnBlur)?!e:(n?r.isOnChange:s.isOnChange)?e:!0,oA=(e,t)=>!ta($(e,t)).length&&$e(e,t);const aA={mode:It.onSubmit,reValidateMode:It.onChange,shouldFocusError:!0};function cA(e={}){let t={...aA,...e},n={submitCount:0,isDirty:!1,isLoading:en(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},s=Ie(t.defaultValues)||Ie(t.values)?ut(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:ut(s),o={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,l=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:$a(),array:$a(),state:$a()},h=Wf(t.mode),y=Wf(t.reValidateMode),g=t.criteriaMode===It.all,p=C=>P=>{clearTimeout(l),l=setTimeout(C,P)},v=async C=>{if(!t.disabled&&(u.isValid||C)){const P=t.resolver?ft((await R()).errors):await O(r,!0);P!==n.isValid&&d.state.next({isValid:P})}},x=(C,P)=>{!t.disabled&&(u.isValidating||u.validatingFields)&&((C||Array.from(a.mount)).forEach(j=>{j&&(P?xe(n.validatingFields,j,P):$e(n.validatingFields,j))}),d.state.next({validatingFields:n.validatingFields,isValidating:!ft(n.validatingFields)}))},b=(C,P=[],j,z,B=!0,L=!0)=>{if(z&&j&&!t.disabled){if(o.action=!0,L&&Array.isArray($(r,C))){const J=j($(r,C),z.argA,z.argB);B&&xe(r,C,J)}if(L&&Array.isArray($(n.errors,C))){const J=j($(n.errors,C),z.argA,z.argB);B&&xe(n.errors,C,J),oA(n.errors,C)}if(u.touchedFields&&L&&Array.isArray($(n.touchedFields,C))){const J=j($(n.touchedFields,C),z.argA,z.argB);B&&xe(n.touchedFields,C,J)}u.dirtyFields&&(n.dirtyFields=Ns(s,i)),d.state.next({name:C,isDirty:M(C,P),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else xe(i,C,P)},w=(C,P)=>{xe(n.errors,C,P),d.state.next({errors:n.errors})},_=C=>{n.errors=C,d.state.next({errors:n.errors,isValid:!1})},S=(C,P,j,z)=>{const B=$(r,C);if(B){const L=$(i,C,De(j)?$(s,C):j);De(L)||z&&z.defaultChecked||P?xe(i,C,P?L:za(B._f)):X(C,L),o.mount&&v()}},T=(C,P,j,z,B)=>{let L=!1,J=!1;const ae={name:C};if(!t.disabled){const Ve=!!($(r,C)&&$(r,C)._f&&$(r,C)._f.disabled);if(!j||z){u.isDirty&&(J=n.isDirty,n.isDirty=ae.isDirty=M(),L=J!==ae.isDirty);const Oe=Ve||jn($(s,C),P);J=!!(!Ve&&$(n.dirtyFields,C)),Oe||Ve?$e(n.dirtyFields,C):xe(n.dirtyFields,C,!0),ae.dirtyFields=n.dirtyFields,L=L||u.dirtyFields&&J!==!Oe}if(j){const Oe=$(n.touchedFields,C);Oe||(xe(n.touchedFields,C,j),ae.touchedFields=n.touchedFields,L=L||u.touchedFields&&Oe!==j)}L&&B&&d.state.next(ae)}return L?ae:{}},A=(C,P,j,z)=>{const B=$(n.errors,C),L=u.isValid&&Nt(P)&&n.isValid!==P;if(t.delayError&&j?(c=p(()=>w(C,j)),c(t.delayError)):(clearTimeout(l),c=null,j?xe(n.errors,C,j):$e(n.errors,C)),(j?!jn(B,j):B)||!ft(z)||L){const J={...z,...L&&Nt(P)?{isValid:P}:{},errors:n.errors,name:C};n={...n,...J},d.state.next(J)}},R=async C=>{x(C,!0);const P=await t.resolver(i,t.context,nA(C||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return x(C),P},N=async C=>{const{errors:P}=await R(C);if(C)for(const j of C){const z=$(P,j);z?xe(n.errors,j,z):$e(n.errors,j)}else n.errors=P;return P},O=async(C,P,j={valid:!0})=>{for(const z in C){const B=C[z];if(B){const{_f:L,...J}=B;if(L){const ae=a.array.has(L.name),Ve=B._f&&rA(B._f);Ve&&u.validatingFields&&x([z],!0);const Oe=await Qf(B,a.disabled,i,g,t.shouldUseNativeValidation&&!P,ae);if(Ve&&u.validatingFields&&x([z]),Oe[L.name]&&(j.valid=!1,P))break;!P&&($(Oe,L.name)?ae?YT(n.errors,Oe,L.name):xe(n.errors,L.name,Oe[L.name]):$e(n.errors,L.name))}!ft(J)&&await O(J,P,j)}}return j.valid},I=()=>{for(const C of a.unMount){const P=$(r,C);P&&(P._f.refs?P._f.refs.every(j=>!Ua(j)):!Ua(P._f.ref))&&st(C)}a.unMount=new Set},M=(C,P)=>!t.disabled&&(C&&P&&xe(i,C,P),!jn(ye(),s)),U=(C,P,j)=>Gg(C,a,{...o.mount?i:De(P)?s:tn(C)?{[C]:P}:P},j,P),F=C=>ta($(o.mount?i:s,C,t.shouldUnregister?$(s,C,[]):[])),X=(C,P,j={})=>{const z=$(r,C);let B=P;if(z){const L=z._f;L&&(!L.disabled&&xe(i,C,ny(P,L)),B=Co(L.ref)&&ot(P)?"":P,Jg(L.ref)?[...L.ref.options].forEach(J=>J.selected=B.includes(J.value)):L.refs?ki(L.ref)?L.refs.length>1?L.refs.forEach(J=>(!J.defaultChecked||!J.disabled)&&(J.checked=Array.isArray(B)?!!B.find(ae=>ae===J.value):B===J.value)):L.refs[0]&&(L.refs[0].checked=!!B):L.refs.forEach(J=>J.checked=J.value===B):du(L.ref)?L.ref.value="":(L.ref.value=B,L.ref.type||d.values.next({name:C,values:{...i}})))}(j.shouldDirty||j.shouldTouch)&&T(C,B,j.shouldTouch,j.shouldDirty,!0),j.shouldValidate&&fe(C)},Y=(C,P,j)=>{for(const z in P){const B=P[z],L=`${C}.${z}`,J=$(r,L);(a.array.has(C)||Ie(B)||J&&!J._f)&&!or(B)?Y(L,B,j):X(L,B,j)}},Z=(C,P,j={})=>{const z=$(r,C),B=a.array.has(C),L=ut(P);xe(i,C,L),B?(d.array.next({name:C,values:{...i}}),(u.isDirty||u.dirtyFields)&&j.shouldDirty&&d.state.next({name:C,dirtyFields:Ns(s,i),isDirty:M(C,L)})):z&&!z._f&&!ot(L)?Y(C,L,j):X(C,L,j),Hf(C,a)&&d.state.next({...n}),d.values.next({name:o.mount?C:void 0,values:{...i}})},K=async C=>{o.mount=!0;const P=C.target;let j=P.name,z=!0;const B=$(r,j),L=()=>P.type?za(B._f):Ug(C),J=ae=>{z=Number.isNaN(ae)||or(ae)&&isNaN(ae.getTime())||jn(ae,$(i,j,ae))};if(B){let ae,Ve;const Oe=L(),qt=C.type===_o.BLUR||C.type===_o.FOCUS_OUT,Cs=!sA(B._f)&&!t.resolver&&!$(n.errors,j)&&!B._f.deps||iA(qt,$(n.touchedFields,j),n.isSubmitted,y,h),Zt=Hf(j,a,qt);xe(i,j,Oe),qt?(B._f.onBlur&&B._f.onBlur(C),c&&c(0)):B._f.onChange&&B._f.onChange(C);const er=T(j,Oe,qt,!1),Es=!ft(er)||Zt;if(!qt&&d.values.next({name:j,type:C.type,values:{...i}}),Cs)return u.isValid&&(t.mode==="onBlur"&&qt?v():qt||v()),Es&&d.state.next({name:j,...Zt?{}:er});if(!qt&&Zt&&d.state.next({...n}),t.resolver){const{errors:tr}=await R([j]);if(J(Oe),z){const ya=Yf(n.errors,r,j),Vi=Yf(tr,r,ya.name||j);ae=Vi.error,j=Vi.name,Ve=ft(tr)}}else x([j],!0),ae=(await Qf(B,a.disabled,i,g,t.shouldUseNativeValidation))[j],x([j]),J(Oe),z&&(ae?Ve=!1:u.isValid&&(Ve=await O(r,!0)));z&&(B._f.deps&&fe(B._f.deps),A(j,Ve,ae,er))}},se=(C,P)=>{if($(n.errors,P)&&C.focus)return C.focus(),1},fe=async(C,P={})=>{let j,z;const B=Ws(C);if(t.resolver){const L=await N(De(C)?C:B);j=ft(L),z=C?!B.some(J=>$(L,J)):j}else C?(z=(await Promise.all(B.map(async L=>{const J=$(r,L);return await O(J&&J._f?{[L]:J}:J)}))).every(Boolean),!(!z&&!n.isValid)&&v()):z=j=await O(r);return d.state.next({...!tn(C)||u.isValid&&j!==n.isValid?{}:{name:C},...t.resolver||!C?{isValid:j}:{},errors:n.errors}),P.shouldFocus&&!z&&Hs(r,se,C?B:a.mount),z},ye=C=>{const P={...o.mount?i:s};return De(C)?P:tn(C)?$(P,C):C.map(j=>$(P,j))},Be=(C,P)=>({invalid:!!$((P||n).errors,C),isDirty:!!$((P||n).dirtyFields,C),error:$((P||n).errors,C),isValidating:!!$(n.validatingFields,C),isTouched:!!$((P||n).touchedFields,C)}),Ge=C=>{C&&Ws(C).forEach(P=>$e(n.errors,P)),d.state.next({errors:C?n.errors:{}})},Qe=(C,P,j)=>{const z=($(r,C,{_f:{}})._f||{}).ref,B=$(n.errors,C)||{},{ref:L,message:J,type:ae,...Ve}=B;xe(n.errors,C,{...Ve,...P,ref:z}),d.state.next({name:C,errors:n.errors,isValid:!1}),j&&j.shouldFocus&&z&&z.focus&&z.focus()},jt=(C,P)=>en(C)?d.values.subscribe({next:j=>C(U(void 0,P),j)}):U(C,P,!0),st=(C,P={})=>{for(const j of C?Ws(C):a.mount)a.mount.delete(j),a.array.delete(j),P.keepValue||($e(r,j),$e(i,j)),!P.keepError&&$e(n.errors,j),!P.keepDirty&&$e(n.dirtyFields,j),!P.keepTouched&&$e(n.touchedFields,j),!P.keepIsValidating&&$e(n.validatingFields,j),!t.shouldUnregister&&!P.keepDefaultValue&&$e(s,j);d.values.next({values:{...i}}),d.state.next({...n,...P.keepDirty?{isDirty:M()}:{}}),!P.keepIsValid&&v()},ue=({disabled:C,name:P,field:j,fields:z})=>{(Nt(C)&&o.mount||C||a.disabled.has(P))&&(C?a.disabled.add(P):a.disabled.delete(P),T(P,za(j?j._f:$(z,P)._f),!1,!1,!0))},ve=(C,P={})=>{let j=$(r,C);const z=Nt(P.disabled)||Nt(t.disabled);return xe(r,C,{...j||{},_f:{...j&&j._f?j._f:{ref:{name:C}},name:C,mount:!0,...P}}),a.mount.add(C),j?ue({field:j,disabled:Nt(P.disabled)?P.disabled:t.disabled,name:C}):S(C,!0,P.value),{...z?{disabled:P.disabled||t.disabled}:{},...t.progressive?{required:!!P.required,min:ks(P.min),max:ks(P.max),minLength:ks(P.minLength),maxLength:ks(P.maxLength),pattern:ks(P.pattern)}:{},name:C,onChange:K,onBlur:K,ref:B=>{if(B){ve(C,P),j=$(r,C);const L=De(B.value)&&B.querySelectorAll&&B.querySelectorAll("input,select,textarea")[0]||B,J=tA(L),ae=j._f.refs||[];if(J?ae.find(Ve=>Ve===L):L===j._f.ref)return;xe(r,C,{_f:{...j._f,...J?{refs:[...ae.filter(Ua),L,...Array.isArray($(s,C))?[{}]:[]],ref:{type:L.type,name:C}}:{ref:L}}}),S(C,!1,void 0,L)}else j=$(r,C,{}),j._f&&(j._f.mount=!1),(t.shouldUnregister||P.shouldUnregister)&&!(zg(a.array,C)&&o.action)&&a.unMount.add(C)}}},je=()=>t.shouldFocusError&&Hs(r,se,a.mount),Fe=C=>{Nt(C)&&(d.state.next({disabled:C}),Hs(r,(P,j)=>{const z=$(r,j);z&&(P.disabled=z._f.disabled||C,Array.isArray(z._f.refs)&&z._f.refs.forEach(B=>{B.disabled=z._f.disabled||C}))},0,!1))},we=(C,P)=>async j=>{let z;j&&(j.preventDefault&&j.preventDefault(),j.persist&&j.persist());let B=ut(i);if(a.disabled.size)for(const L of a.disabled)xe(B,L,void 0);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:L,values:J}=await R();n.errors=L,B=J}else await O(r);if($e(n.errors,"root"),ft(n.errors)){d.state.next({errors:{}});try{await C(B,j)}catch(L){z=L}}else P&&await P({...n.errors},j),je(),setTimeout(je);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ft(n.errors)&&!z,submitCount:n.submitCount+1,errors:n.errors}),z)throw z},G=(C,P={})=>{$(r,C)&&(De(P.defaultValue)?Z(C,ut($(s,C))):(Z(C,P.defaultValue),xe(s,C,ut(P.defaultValue))),P.keepTouched||$e(n.touchedFields,C),P.keepDirty||($e(n.dirtyFields,C),n.isDirty=P.defaultValue?M(C,ut($(s,C))):M()),P.keepError||($e(n.errors,C),u.isValid&&v()),d.state.next({...n}))},he=(C,P={})=>{const j=C?ut(C):s,z=ut(j),B=ft(C),L=B?s:z;if(P.keepDefaultValues||(s=j),!P.keepValues){if(P.keepDirtyValues){const J=new Set([...a.mount,...Object.keys(Ns(s,i))]);for(const ae of Array.from(J))$(n.dirtyFields,ae)?xe(L,ae,$(i,ae)):Z(ae,$(L,ae))}else{if(cu&&De(C))for(const J of a.mount){const ae=$(r,J);if(ae&&ae._f){const Ve=Array.isArray(ae._f.refs)?ae._f.refs[0]:ae._f.ref;if(Co(Ve)){const Oe=Ve.closest("form");if(Oe){Oe.reset();break}}}}r={}}i=t.shouldUnregister?P.keepDefaultValues?ut(s):{}:ut(L),d.array.next({values:{...L}}),d.values.next({values:{...L}})}a={mount:P.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!P.keepIsValid||!!P.keepDirtyValues,o.watch=!!t.shouldUnregister,d.state.next({submitCount:P.keepSubmitCount?n.submitCount:0,isDirty:B?!1:P.keepDirty?n.isDirty:!!(P.keepDefaultValues&&!jn(C,s)),isSubmitted:P.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:B?{}:P.keepDirtyValues?P.keepDefaultValues&&i?Ns(s,i):n.dirtyFields:P.keepDefaultValues&&C?Ns(s,C):P.keepDirty?n.dirtyFields:{},touchedFields:P.keepTouched?n.touchedFields:{},errors:P.keepErrors?n.errors:{},isSubmitSuccessful:P.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Ce=(C,P)=>he(en(C)?C(i):C,P);return{control:{register:ve,unregister:st,getFieldState:Be,handleSubmit:we,setError:Qe,_executeSchema:R,_getWatch:U,_getDirty:M,_updateValid:v,_removeUnmounted:I,_updateFieldArray:b,_updateDisabledField:ue,_getFieldArray:F,_reset:he,_resetDefaultValues:()=>en(t.defaultValues)&&t.defaultValues().then(C=>{Ce(C,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:C=>{n={...n,...C}},_disableForm:Fe,_subjects:d,_proxyFormState:u,_setErrors:_,get _fields(){return r},get _formValues(){return i},get _state(){return o},set _state(C){o=C},get _defaultValues(){return s},get _names(){return a},set _names(C){a=C},get _formState(){return n},set _formState(C){n=C},get _options(){return t},set _options(C){t={...t,...C}}},trigger:fe,register:ve,handleSubmit:we,watch:jt,setValue:Z,getValues:ye,reset:Ce,resetField:G,clearErrors:Ge,unregister:st,setError:Qe,setFocus:(C,P={})=>{const j=$(r,C),z=j&&j._f;if(z){const B=z.refs?z.refs[0]:z.ref;B.focus&&(B.focus(),P.shouldSelect&&en(B.select)&&B.select())}},getFieldState:Be}}function lA(e={}){const t=de.useRef(void 0),n=de.useRef(void 0),[r,s]=de.useState({isDirty:!1,isValidating:!1,isLoading:en(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:en(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...cA(e),formState:r});const i=t.current.control;return i._options=e,uu({subject:i._subjects.state,next:o=>{Zg(o,i._proxyFormState,i._updateFormState,!0)&&s({...i._formState})}}),de.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),de.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==r.isDirty&&i._subjects.state.next({isDirty:o})}},[i,r.isDirty]),de.useEffect(()=>{e.values&&!jn(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,s(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),de.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),de.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()}),de.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=qg(r,i),t.current}var uA="Label",ry=m.forwardRef((e,t)=>f.jsx(lt.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));ry.displayName=uA;var sy=ry;const dA=Go("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),iy=m.forwardRef(({className:e,...t},n)=>f.jsx(sy,{ref:n,className:V(dA(),e),...t}));iy.displayName=sy.displayName;const pO=ZT,oy=m.createContext({}),fA=({...e})=>f.jsx(oy.Provider,{value:{name:e.name},children:f.jsx(XT,{...e})}),ra=()=>{const e=m.useContext(oy),t=m.useContext(ay),{getFieldState:n,formState:r}=na(),s=n(e.name,r);if(!e)throw new Error("useFormField should be used within ");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...s}},ay=m.createContext({}),cy=m.forwardRef(({className:e,...t},n)=>{const r=m.useId();return f.jsx(ay.Provider,{value:{id:r},children:f.jsx("div",{ref:n,className:V("space-y-2",e),...t})})});cy.displayName="FormItem";const ly=m.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:s}=ra();return f.jsx(iy,{ref:n,className:V(r&&"text-destructive",e),htmlFor:s,...t})});ly.displayName="FormLabel";const uy=m.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:s,formMessageId:i}=ra();return f.jsx(ms,{ref:t,id:r,"aria-describedby":n?`${s} ${i}`:`${s}`,"aria-invalid":!!n,...e})});uy.displayName="FormControl";const hA=m.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=ra();return f.jsx("p",{ref:n,id:r,className:V("text-[0.8rem] text-muted-foreground",e),...t})});hA.displayName="FormDescription";const dy=m.forwardRef(({className:e,children:t,...n},r)=>{const{error:s,formMessageId:i}=ra(),o=s?String(s==null?void 0:s.message):t;return o?f.jsx("p",{ref:r,id:i,className:V("text-[0.8rem] font-medium text-destructive",e),...n,children:o}):null});dy.displayName="FormMessage";const Lc=m.forwardRef(({className:e,type:t,...n},r)=>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:r,...n}):f.jsxs("div",{className:"relative w-[160px] h-9 overflow-hidden !cursor-pointer",children:[f.jsx("input",{ref:r,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(l0,{className:"cursor-pointer",size:16})," Upload file"]})]}));Lc.displayName="Input";const fy=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}));fy.displayName="Textarea";const Jf=e=>{let t;const n=new Set,r=(l,u)=>{const d=typeof l=="function"?l(t):l;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))}},s=()=>t,a={setState:r,getState:s,getInitialState:()=>c,subscribe:l=>(n.add(l),()=>n.delete(l))},c=t=e(r,s,a);return a},pA=e=>e?Jf(e):Jf,mA=e=>e;function gA(e,t=mA){const n=de.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return de.useDebugValue(n),n}const yA=e=>{const t=pA(e),n=r=>gA(t,r);return Object.assign(n,t),n},hy=e=>yA;function vA(e,t){let n;try{n=e()}catch{return}return{getItem:s=>{var i;const o=c=>c===null?null:JSON.parse(c,void 0),a=(i=n.getItem(s))!=null?i:null;return a instanceof Promise?a.then(o):o(a)},setItem:(s,i)=>n.setItem(s,JSON.stringify(i,void 0)),removeItem:s=>n.removeItem(s)}}const Fc=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Fc(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Fc(r)(n)}}}},xA=(e,t)=>(n,r,s)=>{let i={storage:vA(()=>localStorage),partialize:p=>p,version:0,merge:(p,v)=>({...v,...p}),...t},o=!1;const a=new Set,c=new Set;let l=i.storage;if(!l)return e((...p)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...p)},r,s);const u=()=>{const p=i.partialize({...r()});return l.setItem(i.name,{state:p,version:i.version})},d=s.setState;s.setState=(p,v)=>{d(p,v),u()};const h=e((...p)=>{n(...p),u()},r,s);s.getInitialState=()=>h;let y;const g=()=>{var p,v;if(!l)return;o=!1,a.forEach(b=>{var w;return b((w=r())!=null?w:h)});const x=((v=i.onRehydrateStorage)==null?void 0:v.call(i,(p=r())!=null?p:h))||void 0;return Fc(l.getItem.bind(l))(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=r())!=null?w:h),n(y,!0),_)return u()}).then(()=>{x==null||x(y,void 0),y=r(),o=!0,c.forEach(b=>b(y))}).catch(b=>{x==null||x(void 0,b)})};return s.persist={setOptions:p=>{i={...i,...p},p.storage&&(l=p.storage)},clearStorage:()=>{l==null||l.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:p=>(a.add(p),()=>{a.delete(p)}),onFinishHydration:p=>(c.add(p),()=>{c.delete(p)})},i.skipHydration||g(),y||h},bA=xA;var Ze=(e=>(e.EN="en",e.RU="ru",e.TM="tm",e))(Ze||{});const _e=hy()(bA(e=>({lang:"en",setLang:t=>e({lang:t})}),{name:"lang-storage"})),mO=({control:e,name:t,label:n,placeholder:r,error:s,type:i="text",className:o,disabled:a,textArea:c=!1,textDark:l,supporText:u,handleChange:d,onPrimary:h=!1})=>{const y=_e(g=>g.lang);return f.jsx(fA,{control:e,name:t,render:({field:g})=>f.jsxs(cy,{className:V(o,"flex flex-col w-full relative"),children:[f.jsx(ly,{className:V("text-xl",h&&"!text-on_primary",l?"text-on_surface":"text-on_surface_v"),children:n}),f.jsx(uy,{children:f.jsx(f.Fragment,{children:c?f.jsx(fy,{rows:3,...g,placeholder:r,className:V(s&&"border-[#BA1A1A]",h&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):i!=="file"?f.jsx(Lc,{...g,type:i,placeholder:r,disabled:a,className:V(s&&"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(Lc,{type:"file",placeholder:r,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(dy,{className:V("absolute -bottom-5 left-0 text-sm font-medium leading-[130%]",s&&h?"text-teritary_04":"text-[#BA1A1A]"),children:s?s.message:u})]})})},gO=({className:e,delay:t=.15})=>{const n=_e(r=>r.lang);return f.jsxs(zs.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(Se,{className:"w-fit mx-auto",to:"/",children:f.jsx(tt,{variant:"outline",children:{ru:"Вернуться на главную",en:"Back to home",tm:"Baş sahypa gaýdyp barmak"}[n]})})]})},wA=({className:e,slides:t,active:n,scrollTo:r})=>f.jsx("div",{className:V("flex items-center justify-center gap-2",e),children:Array.from({length:t}).map((s,i)=>f.jsx("span",{onClick:()=>r==null?void 0:r(i),className:V(n===i?"dot-active":"dot")},i))}),SA=["top","right","bottom","left"],Wn=Math.min,gt=Math.max,Ao=Math.round,Yi=Math.floor,sn=e=>({x:e,y:e}),_A={left:"right",right:"left",bottom:"top",top:"bottom"},CA={start:"end",end:"start"};function Vc(e,t,n){return gt(e,Wn(t,n))}function Sn(e,t){return typeof e=="function"?e(t):e}function _n(e){return e.split("-")[0]}function bs(e){return e.split("-")[1]}function hu(e){return e==="x"?"y":"x"}function pu(e){return e==="y"?"height":"width"}function Hn(e){return["top","bottom"].includes(_n(e))?"y":"x"}function mu(e){return hu(Hn(e))}function EA(e,t,n){n===void 0&&(n=!1);const r=bs(e),s=mu(e),i=pu(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Ro(o)),[o,Ro(o)]}function TA(e){const t=Ro(e);return[Bc(e),t,Bc(t)]}function Bc(e){return e.replace(/start|end/g,t=>CA[t])}function AA(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:o;default:return[]}}function RA(e,t,n,r){const s=bs(e);let i=AA(_n(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(Bc)))),i}function Ro(e){return e.replace(/left|right|bottom|top/g,t=>_A[t])}function PA(e){return{top:0,right:0,bottom:0,left:0,...e}}function py(e){return typeof e!="number"?PA(e):{top:e,right:e,bottom:e,left:e}}function Po(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function eh(e,t,n){let{reference:r,floating:s}=e;const i=Hn(t),o=mu(t),a=pu(o),c=_n(t),l=i==="y",u=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let y;switch(c){case"top":y={x:u,y:r.y-s.height};break;case"bottom":y={x:u,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:d};break;case"left":y={x:r.x-s.width,y:d};break;default:y={x:r.x,y:r.y}}switch(bs(t)){case"start":y[o]-=h*(n&&l?-1:1);break;case"end":y[o]+=h*(n&&l?-1:1);break}return y}const NA=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let l=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=eh(l,r,c),h=r,y={},g=0;for(let p=0;p({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=Sn(e,t)||{};if(l==null)return{};const d=py(u),h={x:n,y:r},y=mu(s),g=pu(y),p=await o.getDimensions(l),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(l));let A=T?T[w]:0;(!A||!await(o.isElement==null?void 0:o.isElement(T)))&&(A=a.floating[w]||i.floating[g]);const R=_/2-S/2,N=A/2-p[g]/2-1,O=Wn(d[x],N),I=Wn(d[b],N),M=O,U=A-p[g]-I,F=A/2-p[g]/2+R,X=Vc(M,F,U),Y=!c.arrow&&bs(s)!=null&&F!==X&&i.reference[g]/2-(FF<=0)){var I,M;const F=(((I=i.flip)==null?void 0:I.index)||0)+1,X=A[F];if(X)return{data:{index:F,overflows:O},reset:{placement:X}};let Y=(M=O.filter(Z=>Z.overflows[0]<=0).sort((Z,K)=>Z.overflows[1]-K.overflows[1])[0])==null?void 0:M.placement;if(!Y)switch(y){case"bestFit":{var U;const Z=(U=O.filter(K=>{if(T){const se=Hn(K.placement);return se===b||se==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(se=>se>0).reduce((se,fe)=>se+fe,0)]).sort((K,se)=>K[1]-se[1])[0])==null?void 0:U[0];Z&&(Y=Z);break}case"initialPlacement":Y=a;break}if(s!==Y)return{reset:{placement:Y}}}return{}}}};function th(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function nh(e){return SA.some(t=>e[t]>=0)}const OA=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=Sn(e,t);switch(r){case"referenceHidden":{const i=await ni(t,{...s,elementContext:"reference"}),o=th(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:nh(o)}}}case"escaped":{const i=await ni(t,{...s,altBoundary:!0}),o=th(i,n.floating);return{data:{escapedOffsets:o,escaped:nh(o)}}}default:return{}}}}};async function MA(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=_n(n),a=bs(n),c=Hn(n)==="y",l=["left","top"].includes(o)?-1:1,u=i&&c?-1:1,d=Sn(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),c?{x:y*u,y:h*l}:{x:h*l,y:y*u}}const DA=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=t,c=await MA(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+c.x,y:i+c.y,data:{...c,placement:o}}}}},IA=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:v=>{let{x,y:b}=v;return{x,y:b}}},...c}=Sn(e,t),l={x:n,y:r},u=await ni(t,c),d=Hn(_n(s)),h=hu(d);let y=l[h],g=l[d];if(i){const v=h==="y"?"top":"left",x=h==="y"?"bottom":"right",b=y+u[v],w=y-u[x];y=Vc(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=Vc(b,g,w)}const p=a.fn({...t,[h]:y,[d]:g});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[h]:i,[d]:o}}}}}},LA=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Sn(e,t),u={x:n,y:r},d=Hn(s),h=hu(d);let y=u[h],g=u[d];const p=Sn(a,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){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(l){var x,b;const w=h==="y"?"width":"height",_=["top","left"].includes(_n(s)),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);gT&&(g=T)}return{[h]:y,[d]:g}}}},FA=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:c=()=>{},...l}=Sn(e,t),u=await ni(t,l),d=_n(s),h=bs(s),y=Hn(s)==="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,_=Wn(p-u[v],b),S=Wn(g-u[x],w),T=!t.middlewareData.shift;let A=_,R=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=b),T&&!h){const O=gt(u.left,0),I=gt(u.right,0),M=gt(u.top,0),U=gt(u.bottom,0);y?R=g-2*(O!==0||I!==0?O+I:gt(u.left,u.right)):A=p-2*(M!==0||U!==0?M+U:gt(u.top,u.bottom))}await c({...t,availableWidth:R,availableHeight:A});const N=await o.getDimensions(a.floating);return g!==N.width||p!==N.height?{reset:{rects:!0}}:{}}}};function sa(){return typeof window<"u"}function ws(e){return my(e)?(e.nodeName||"").toLowerCase():"#document"}function bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function dn(e){var t;return(t=(my(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function my(e){return sa()?e instanceof Node||e instanceof bt(e).Node:!1}function Bt(e){return sa()?e instanceof Element||e instanceof bt(e).Element:!1}function an(e){return sa()?e instanceof HTMLElement||e instanceof bt(e).HTMLElement:!1}function rh(e){return!sa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof bt(e).ShadowRoot}function ji(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=$t(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function VA(e){return["table","td","th"].includes(ws(e))}function ia(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function gu(e){const t=yu(),n=Bt(e)?$t(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="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(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function BA(e){let t=qn(e);for(;an(t)&&!ls(t);){if(gu(t))return t;if(ia(t))return null;t=qn(t)}return null}function yu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ls(e){return["html","body","#document"].includes(ws(e))}function $t(e){return bt(e).getComputedStyle(e)}function oa(e){return Bt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qn(e){if(ws(e)==="html")return e;const t=e.assignedSlot||e.parentNode||rh(e)&&e.host||dn(e);return rh(t)?t.host:t}function gy(e){const t=qn(e);return ls(t)?e.ownerDocument?e.ownerDocument.body:e.body:an(t)&&ji(t)?t:gy(t)}function ri(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=gy(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=bt(s);if(i){const a=$c(o);return t.concat(o,o.visualViewport||[],ji(s)?s:[],a&&n?ri(a):[])}return t.concat(s,ri(s,[],n))}function $c(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yy(e){const t=$t(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=an(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=Ao(n)!==i||Ao(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function vu(e){return Bt(e)?e:e.contextElement}function qr(e){const t=vu(e);if(!an(t))return sn(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=yy(t);let o=(i?Ao(n.width):n.width)/r,a=(i?Ao(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const $A=sn(0);function vy(e){const t=bt(e);return!yu()||!t.visualViewport?$A:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function UA(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==bt(e)?!1:t}function _r(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=vu(e);let o=sn(1);t&&(r?Bt(r)&&(o=qr(r)):o=qr(e));const a=UA(i,n,r)?vy(i):sn(0);let c=(s.left+a.x)/o.x,l=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i){const h=bt(i),y=r&&Bt(r)?bt(r):r;let g=h,p=$c(g);for(;p&&r&&y!==g;){const v=qr(p),x=p.getBoundingClientRect(),b=$t(p),w=x.left+(p.clientLeft+parseFloat(b.paddingLeft))*v.x,_=x.top+(p.clientTop+parseFloat(b.paddingTop))*v.y;c*=v.x,l*=v.y,u*=v.x,d*=v.y,c+=w,l+=_,g=bt(p),p=$c(g)}}return Po({width:u,height:d,x:c,y:l})}function xu(e,t){const n=oa(e).scrollLeft;return t?t.left+n:_r(dn(e)).left+n}function xy(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:xu(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function zA(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=dn(r),a=t?ia(t.floating):!1;if(r===o||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=sn(1);const u=sn(0),d=an(r);if((d||!d&&!i)&&((ws(r)!=="body"||ji(o))&&(c=oa(r)),an(r))){const y=_r(r);l=qr(r),u.x=y.x+r.clientLeft,u.y=y.y+r.clientTop}const h=o&&!d&&!i?xy(o,c,!0):sn(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+h.x,y:n.y*l.y-c.scrollTop*l.y+u.y+h.y}}function WA(e){return Array.from(e.getClientRects())}function HA(e){const t=dn(e),n=oa(e),r=e.ownerDocument.body,s=gt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=gt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+xu(e);const a=-n.scrollTop;return $t(r).direction==="rtl"&&(o+=gt(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function qA(e,t){const n=bt(e),r=dn(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,c=0;if(s){i=s.width,o=s.height;const l=yu();(!l||l&&t==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:i,height:o,x:a,y:c}}function ZA(e,t){const n=_r(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=an(e)?qr(e):sn(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,c=s*i.x,l=r*i.y;return{width:o,height:a,x:c,y:l}}function sh(e,t,n){let r;if(t==="viewport")r=qA(e,n);else if(t==="document")r=HA(dn(e));else if(Bt(t))r=ZA(t,n);else{const s=vy(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Po(r)}function by(e,t){const n=qn(e);return n===t||!Bt(n)||ls(n)?!1:$t(n).position==="fixed"||by(n,t)}function KA(e,t){const n=t.get(e);if(n)return n;let r=ri(e,[],!1).filter(a=>Bt(a)&&ws(a)!=="body"),s=null;const i=$t(e).position==="fixed";let o=i?qn(e):e;for(;Bt(o)&&!ls(o);){const a=$t(o),c=gu(o);!c&&a.position==="fixed"&&(s=null),(i?!c&&!s:!c&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||ji(o)&&!c&&by(e,o))?r=r.filter(u=>u!==o):s=a,o=qn(o)}return t.set(e,r),r}function GA(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?ia(t)?[]:KA(t,this._c):[].concat(n),r],a=o[0],c=o.reduce((l,u)=>{const d=sh(t,u,s);return l.top=gt(d.top,l.top),l.right=Wn(d.right,l.right),l.bottom=Wn(d.bottom,l.bottom),l.left=gt(d.left,l.left),l},sh(t,a,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function QA(e){const{width:t,height:n}=yy(e);return{width:t,height:n}}function XA(e,t,n){const r=an(t),s=dn(t),i=n==="fixed",o=_r(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=sn(0);if(r||!r&&!i)if((ws(t)!=="body"||ji(s))&&(a=oa(t)),r){const h=_r(t,!0,i,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else s&&(c.x=xu(s));const l=s&&!r&&!i?xy(s,a):sn(0),u=o.left+a.scrollLeft-c.x-l.x,d=o.top+a.scrollTop-c.y-l.y;return{x:u,y:d,width:o.width,height:o.height}}function Wa(e){return $t(e).position==="static"}function ih(e,t){if(!an(e)||$t(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return dn(e)===n&&(n=n.ownerDocument.body),n}function wy(e,t){const n=bt(e);if(ia(e))return n;if(!an(e)){let s=qn(e);for(;s&&!ls(s);){if(Bt(s)&&!Wa(s))return s;s=qn(s)}return n}let r=ih(e,t);for(;r&&VA(r)&&Wa(r);)r=ih(r,t);return r&&ls(r)&&Wa(r)&&!gu(r)?n:r||BA(e)||n}const YA=async function(e){const t=this.getOffsetParent||wy,n=this.getDimensions,r=await n(e.floating);return{reference:XA(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function JA(e){return $t(e).direction==="rtl"}const eR={convertOffsetParentRelativeRectToViewportRelativeRect:zA,getDocumentElement:dn,getClippingRect:GA,getOffsetParent:wy,getElementRects:YA,getClientRects:WA,getDimensions:QA,getScale:qr,isElement:Bt,isRTL:JA};function Sy(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tR(e,t){let n=null,r;const s=dn(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:d,width:h,height:y}=l;if(a||t(),!h||!y)return;const g=Yi(d),p=Yi(s.clientWidth-(u+h)),v=Yi(s.clientHeight-(d+y)),x=Yi(u),w={rootMargin:-g+"px "+-p+"px "+-v+"px "+-x+"px",threshold:gt(0,Wn(1,c))||1};let _=!0;function S(T){const A=T[0].intersectionRatio;if(A!==c){if(!_)return o();A?o(!1,A):r=setTimeout(()=>{o(!1,1e-7)},1e3)}A===1&&!Sy(l,e.getBoundingClientRect())&&o(),_=!1}try{n=new IntersectionObserver(S,{...w,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return o(!0),i}function nR(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=vu(e),u=s||i?[...l?ri(l):[],...ri(t)]:[];u.forEach(x=>{s&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const d=l&&a?tR(l,n):null;let h=-1,y=null;o&&(y=new ResizeObserver(x=>{let[b]=x;b&&b.target===l&&y&&(y.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=y)==null||w.observe(t)})),n()}),l&&!c&&y.observe(l),y.observe(t));let g,p=c?_r(e):null;c&&v();function v(){const x=_r(e);p&&!Sy(p,x)&&n(),p=x,g=requestAnimationFrame(v)}return n(),()=>{var x;u.forEach(b=>{s&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),d==null||d(),(x=y)==null||x.disconnect(),y=null,c&&cancelAnimationFrame(g)}}const rR=DA,sR=IA,iR=jA,oR=FA,aR=OA,oh=kA,cR=LA,lR=(e,t,n)=>{const r=new Map,s={platform:eR,...n},i={...s.platform,_c:r};return NA(e,t,{...s,platform:i})};var co=typeof document<"u"?m.useLayoutEffect:m.useEffect;function No(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,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!No(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!No(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function _y(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ah(e,t){const n=_y(e);return Math.round(t*n)/n}function Ha(e){const t=m.useRef(e);return co(()=>{t.current=e}),t}function uR(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,y]=m.useState(r);No(h,r)||y(r);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!==A.current&&(A.current=K,x(K))},[]),_=i||g,S=o||v,T=m.useRef(null),A=m.useRef(null),R=m.useRef(u),N=c!=null,O=Ha(c),I=Ha(s),M=Ha(l),U=m.useCallback(()=>{if(!T.current||!A.current)return;const K={placement:t,strategy:n,middleware:h};I.current&&(K.platform=I.current),lR(T.current,A.current,K).then(se=>{const fe={...se,isPositioned:M.current!==!1};F.current&&!No(R.current,fe)&&(R.current=fe,ul.flushSync(()=>{d(fe)}))})},[h,t,n,I,M]);co(()=>{l===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,d(K=>({...K,isPositioned:!1})))},[l]);const F=m.useRef(!1);co(()=>(F.current=!0,()=>{F.current=!1}),[]),co(()=>{if(_&&(T.current=_),S&&(A.current=S),_&&S){if(O.current)return O.current(_,S,U);U()}},[_,S,U,O,N]);const X=m.useMemo(()=>({reference:T,floating:A,setReference:b,setFloating:w}),[b,w]),Y=m.useMemo(()=>({reference:_,floating:S}),[_,S]),Z=m.useMemo(()=>{const K={position:n,left:0,top:0};if(!Y.floating)return K;const se=ah(Y.floating,u.x),fe=ah(Y.floating,u.y);return a?{...K,transform:"translate("+se+"px, "+fe+"px)",..._y(Y.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:se,top:fe}},[n,a,Y.floating,u.x,u.y]);return m.useMemo(()=>({...u,update:U,refs:X,elements:Y,floatingStyles:Z}),[u,U,X,Y,Z])}const dR=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?oh({element:r.current,padding:s}).fn(n):{}:r?oh({element:r,padding:s}).fn(n):{}}}},fR=(e,t)=>({...rR(e),options:[e,t]}),hR=(e,t)=>({...sR(e),options:[e,t]}),pR=(e,t)=>({...cR(e),options:[e,t]}),mR=(e,t)=>({...iR(e),options:[e,t]}),gR=(e,t)=>({...oR(e),options:[e,t]}),yR=(e,t)=>({...aR(e),options:[e,t]}),vR=(e,t)=>({...dR(e),options:[e,t]});var xR="Arrow",Cy=m.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return f.jsx(lt.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});Cy.displayName=xR;var bR=Cy;function wR(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var ch=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},SR=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{};function _R(e){const[t,n]=m.useState(void 0);return SR(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;o=l.inlineSize,a=l.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var bu="Popper",[Ey,Ty]=ml(bu),[CR,Ay]=Ey(bu),Ry=e=>{const{__scopePopper:t,children:n}=e,[r,s]=m.useState(null);return f.jsx(CR,{scope:t,anchor:r,onAnchorChange:s,children:n})};Ry.displayName=bu;var Py="PopperAnchor",Ny=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=Ay(Py,n),o=m.useRef(null),a=zt(t,o);return m.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:f.jsx(lt.div,{...s,ref:a})});Ny.displayName=Py;var wu="PopperContent",[ER,TR]=Ey(wu),ky=m.forwardRef((e,t)=>{var ue,ve,je,Fe,we,G;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:y="optimized",onPlaced:g,...p}=e,v=Ay(wu,n),[x,b]=m.useState(null),w=zt(t,he=>b(he)),[_,S]=m.useState(null),T=_R(_),A=(T==null?void 0:T.width)??0,R=(T==null?void 0:T.height)??0,N=r+(i!=="center"?"-"+i:""),O=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},I=Array.isArray(l)?l:[l],M=I.length>0,U={padding:O,boundary:I.filter(RR),altBoundary:M},{refs:F,floatingStyles:X,placement:Y,isPositioned:Z,middlewareData:K}=uR({strategy:"fixed",placement:N,whileElementsMounted:(...he)=>nR(...he,{animationFrame:y==="always"}),elements:{reference:v.anchor},middleware:[fR({mainAxis:s+R,alignmentAxis:o}),c&&hR({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?pR():void 0,...U}),c&&mR({...U}),gR({...U,apply:({elements:he,rects:Ce,availableWidth:Ue,availableHeight:mt})=>{const{width:Et,height:C}=Ce.reference,P=he.floating.style;P.setProperty("--radix-popper-available-width",`${Ue}px`),P.setProperty("--radix-popper-available-height",`${mt}px`),P.setProperty("--radix-popper-anchor-width",`${Et}px`),P.setProperty("--radix-popper-anchor-height",`${C}px`)}}),_&&vR({element:_,padding:a}),PR({arrowWidth:A,arrowHeight:R}),h&&yR({strategy:"referenceHidden",...U})]}),[se,fe]=My(Y),ye=wR(g);ch(()=>{Z&&(ye==null||ye())},[Z,ye]);const Be=(ue=K.arrow)==null?void 0:ue.x,Ge=(ve=K.arrow)==null?void 0:ve.y,Qe=((je=K.arrow)==null?void 0:je.centerOffset)!==0,[jt,st]=m.useState();return ch(()=>{x&&st(window.getComputedStyle(x).zIndex)},[x]),f.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:Z?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:jt,"--radix-popper-transform-origin":[(Fe=K.transformOrigin)==null?void 0:Fe.x,(we=K.transformOrigin)==null?void 0:we.y].join(" "),...((G=K.hide)==null?void 0:G.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(ER,{scope:n,placedSide:se,onArrowChange:S,arrowX:Be,arrowY:Ge,shouldHideArrow:Qe,children:f.jsx(lt.div,{"data-side":se,"data-align":fe,...p,ref:w,style:{...p.style,animation:Z?void 0:"none"}})})})});ky.displayName=wu;var jy="PopperArrow",AR={top:"bottom",right:"left",bottom:"top",left:"right"},Oy=m.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=TR(jy,r),o=AR[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(bR,{...s,ref:n,style:{...s.style,display:"block"}})})});Oy.displayName=jy;function RR(e){return e!==null}var PR=e=>({name:"transformOrigin",options:e,fn(t){var v,x,b;const{placement:n,rects:r,middlewareData:s}=t,o=((v=s.arrow)==null?void 0:v.centerOffset)!==0,a=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[l,u]=My(n),d={start:"0%",center:"50%",end:"100%"}[u],h=(((x=s.arrow)==null?void 0:x.x)??0)+a/2,y=(((b=s.arrow)==null?void 0:b.y)??0)+c/2;let g="",p="";return l==="bottom"?(g=o?d:`${h}px`,p=`${-c}px`):l==="top"?(g=o?d:`${h}px`,p=`${r.floating.height+c}px`):l==="right"?(g=`${-c}px`,p=o?d:`${y}px`):l==="left"&&(g=`${r.floating.width+c}px`,p=o?d:`${y}px`),{data:{x:g,y:p}}}});function My(e){const[t,n="center"]=e.split("-");return[t,n]}var NR=Ry,Dy=Ny,kR=ky,jR=Oy,Su="Popover",[Iy,yO]=ml(Su,[Ty]),Oi=Ty(),[OR,Yn]=Iy(Su),Ly=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!1}=e,a=Oi(t),c=m.useRef(null),[l,u]=m.useState(!1),[d=!1,h]=fp({prop:r,defaultProp:s,onChange:i});return f.jsx(NR,{...a,children:f.jsx(OR,{scope:t,contentId:to(),triggerRef:c,open:d,onOpenChange:h,onOpenToggle:m.useCallback(()=>h(y=>!y),[h]),hasCustomAnchor:l,onCustomAnchorAdd:m.useCallback(()=>u(!0),[]),onCustomAnchorRemove:m.useCallback(()=>u(!1),[]),modal:o,children:n})})};Ly.displayName=Su;var Fy="PopoverAnchor",MR=m.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=Yn(Fy,n),i=Oi(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=s;return m.useEffect(()=>(o(),()=>a()),[o,a]),f.jsx(Dy,{...i,...r,ref:t})});MR.displayName=Fy;var Vy="PopoverTrigger",By=m.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=Yn(Vy,n),i=Oi(n),o=zt(t,s.triggerRef),a=f.jsx(lt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Hy(s.open),...r,ref:o,onClick:vt(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?a:f.jsx(Dy,{asChild:!0,...i,children:a})});By.displayName=Vy;var _u="PopoverPortal",[DR,IR]=Iy(_u,{forceMount:void 0}),$y=e=>{const{__scopePopover:t,forceMount:n,children:r,container:s}=e,i=Yn(_u,t);return f.jsx(DR,{scope:t,forceMount:n,children:f.jsx(gs,{present:n||i.open,children:f.jsx(vl,{asChild:!0,container:s,children:r})})})};$y.displayName=_u;var us="PopoverContent",Uy=m.forwardRef((e,t)=>{const n=IR(us,e.__scopePopover),{forceMount:r=n.forceMount,...s}=e,i=Yn(us,e.__scopePopover);return f.jsx(gs,{present:r||i.open,children:i.modal?f.jsx(LR,{...s,ref:t}):f.jsx(FR,{...s,ref:t})})});Uy.displayName=us;var LR=m.forwardRef((e,t)=>{const n=Yn(us,e.__scopePopover),r=m.useRef(null),s=zt(t,r),i=m.useRef(!1);return m.useEffect(()=>{const o=r.current;if(o)return Tp(o)},[]),f.jsx(xl,{as:ms,allowPinchZoom:!0,children:f.jsx(zy,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:vt(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:vt(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0,l=a.button===2||c;i.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:vt(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),FR=m.forwardRef((e,t)=>{const n=Yn(us,e.__scopePopover),r=m.useRef(!1),s=m.useRef(!1);return f.jsx(zy,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),zy=m.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,h=Yn(us,n),y=Oi(n);return yp(),f.jsx(yl,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:f.jsx(gl,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>h.onOpenChange(!1),children:f.jsx(kR,{"data-state":Hy(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)"}})})})}),Wy="PopoverClose",VR=m.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=Yn(Wy,n);return f.jsx(lt.button,{type:"button",...r,ref:t,onClick:vt(e.onClick,()=>s.onOpenChange(!1))})});VR.displayName=Wy;var BR="PopoverArrow",$R=m.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=Oi(n);return f.jsx(jR,{...s,...r,ref:t})});$R.displayName=BR;function Hy(e){return e?"open":"closed"}var UR=Ly,zR=By,WR=$y,qy=Uy;const Zy=UR,Ky=zR,Cu=m.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},s)=>f.jsx(WR,{children:f.jsx(qy,{ref:s,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),...r})}));Cu.displayName=qy.displayName;const HR=[{lang:Ze.RU},{lang:Ze.EN},{lang:Ze.TM}],lh={[Ze.RU]:"/ru.svg",[Ze.EN]:"/english.svg",[Ze.TM]:"/tm.svg"},qR={[Ze.RU]:"Ру",[Ze.EN]:"En",[Ze.TM]:"Tm"},ZR={[Ze.RU]:"Русский",[Ze.EN]:"English",[Ze.TM]:"Türkmen"},uh=({className:e,light:t=!1})=>{const n=_e(o=>o.lang),r=_e(o=>o.setLang),[s,i]=m.useState(!1);return f.jsxs(Zy,{open:s,onOpenChange:()=>i(!s),children:[f.jsxs(Ky,{className:V("flex text-white items-center gap-2",t?"text-white":"text-black",e),children:[f.jsx("img",{src:lh[n],alt:""}),qR[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(Cu,{className:"flex flex-col gap-6 w-fit relative z-[200] py-2 px-4 bg-surface_container",children:HR.filter(o=>o.lang!==n).map((o,a)=>f.jsxs("div",{onClick:()=>{r(o.lang),i(!1)},className:"flex gap-3 py-2 items-center cursor-pointer",children:[f.jsx("img",{src:lh[o.lang],alt:"flag"}),f.jsx("h5",{children:ZR[o.lang]})]},a))})]})},Gy=zp,Qy=Wp,KR=Hp,Xy=m.forwardRef(({className:e,...t},n)=>f.jsx(Ho,{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}));Xy.displayName=Ho.displayName;const Eu=m.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(KR,{children:[f.jsx(Xy,{}),f.jsxs(qo,{ref:r,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(Cl,{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(El,{className:"size-6"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Eu.displayName=qo.displayName;const GR=m.forwardRef(({className:e,...t},n)=>f.jsx(Zo,{ref:n,className:V("text-lg font-semibold leading-none tracking-tight",e),...t}));GR.displayName=Zo.displayName;const QR=m.forwardRef(({className:e,...t},n)=>f.jsx(Ko,{ref:n,className:V("text-sm text-muted-foreground",e),...t}));QR.displayName=Ko.displayName;const dh=(e,t,n)=>{if(e&&"reportValidity"in e){const r=$(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Yy=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?dh(r.ref,n,e):r.refs&&r.refs.forEach(s=>dh(s,n,e))}},XR=(e,t)=>{t.shouldUseNativeValidation&&Yy(e,t);const n={};for(const r in e){const s=$(t.fields,r),i=Object.assign(e[r]||{},{ref:s&&s.ref});if(YR(t.names||Object.keys(e),r)){const o=Object.assign({},$(n,r));xe(o,"root",i),xe(n,r,o)}else xe(n,r,i)}return n},YR=(e,t)=>e.some(n=>n.startsWith(t+"."));var JR=function(e,t){for(var n={};e.length;){var r=e[0],s=r.code,i=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var a=r.unionErrors[0].errors[0];n[o]={message:a.message,type:a.code}}else n[o]={message:i,type:s};if("unionErrors"in r&&r.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=Qg(o,t,n,s,l?[].concat(l,r.message):r.message)}e.shift()}return n},eP=function(e,t,n){return n===void 0&&(n={}),function(r,s,i){try{return Promise.resolve(function(o,a){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(l){return i.shouldUseNativeValidation&&Yy({},i),{errors:{},values:n.raw?r:l}})}catch(l){return a(l)}return c&&c.then?c.then(void 0,a):c}(0,function(o){if(function(a){return Array.isArray(a==null?void 0:a.errors)}(o))return{values:{},errors:XR(JR(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}},ge;(function(e){e.assertEqual=s=>s;function t(s){}e.assertIs=t;function n(s){throw new Error}e.assertNever=n,e.arrayToEnum=s=>{const i={};for(const o of s)i[o]=o;return i},e.getValidEnumValues=s=>{const i=e.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),o={};for(const a of i)o[a]=s[a];return e.objectValues(o)},e.objectValues=s=>e.objectKeys(s).map(function(i){return s[i]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},e.find=(s,i)=>{for(const o of s)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function r(s,i=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(ge||(ge={}));var Uc;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Uc||(Uc={}));const H=ge.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),gn=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=ge.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"]),tP=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class wt extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};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},r={_errors:[]},s=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let a=r,c=0;for(;cn.message){const n={},r=[];for(const s of this.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(t(s))):r.push(t(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}wt.create=e=>new wt(e);const ds=(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,ge.jsonStringifyReplacer)}`;break;case D.unrecognized_keys:n=`Unrecognized key(s) in object: ${ge.joinValues(e.keys,", ")}`;break;case D.invalid_union:n="Invalid input";break;case D.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ge.joinValues(e.options)}`;break;case D.invalid_enum_value:n=`Invalid enum value. Expected ${ge.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}"`:ge.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,ge.assertNever(e)}return{message:n}};let Jy=ds;function nP(e){Jy=e}function ko(){return Jy}const jo=e=>{const{data:t,path:n,errorMaps:r,issueData:s}=e,i=[...n,...s.path||[]],o={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let a="";const c=r.filter(l=>!!l).slice().reverse();for(const l of c)a=l(o,{data:t,defaultError:a}).message;return{...s,path:i,message:a}},rP=[];function W(e,t){const n=ko(),r=jo({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===ds?void 0:ds].filter(s=>!!s)});e.common.issues.push(r)}class nt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const s of n){if(s.status==="aborted")return re;s.status==="dirty"&&t.dirty(),r.push(s.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const s of n){const i=await s.key,o=await s.value;r.push({key:i,value:o})}return nt.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const s of n){const{key:i,value:o}=s;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"||s.alwaysSet)&&(r[i.value]=o.value)}return{status:t.value,value:r}}}const re=Object.freeze({status:"aborted"}),zr=e=>({status:"dirty",value:e}),ct=e=>({status:"valid",value:e}),zc=e=>e.status==="aborted",Wc=e=>e.status==="dirty",Cr=e=>e.status==="valid",si=e=>typeof Promise<"u"&&e instanceof Promise;function Oo(e,t,n,r){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 ev(e,t,n,r,s){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 Q;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Q||(Q={}));var Is,Ls;class cn{constructor(t,n,r,s){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=s}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 fh=(e,t)=>{if(Cr(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 wt(e.common.issues);return this._error=n,this._error}}};function oe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:s}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(o,a)=>{var c,l;const{message:u}=e;return o.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(c=u??r)!==null&&c!==void 0?c:a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:(l=u??n)!==null&&l!==void 0?l:a.defaultError}},description:s}}class le{get description(){return this._def.description}_getType(t){return gn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:gn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new nt,ctx:{common:t.parent.common,data:t.data,parsedType:gn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(si(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 r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const s={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:gn(t)},i=this._parseSync({data:t,path:s.path,parent:s});return fh(s,i)}"~validate"(t){var n,r;const s={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:gn(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:s});return Cr(i)?{value:i.value}:{issues:s.common.issues}}catch(i){!((r=(n=i==null?void 0:i.message)===null||n===void 0?void 0:n.toLowerCase())===null||r===void 0)&&r.includes("encountered")&&(this["~standard"].async=!0),s.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:s}).then(i=>Cr(i)?{value:i.value}:{issues:s.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={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:gn(t)},s=this._parse({data:t,path:r.path,parent:r}),i=await(si(s)?s:Promise.resolve(s));return fh(r,i)}refine(t,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,i)=>{const o=t(s),a=()=>i.addIssue({code:D.custom,...r(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,s)=>t(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(t){return new Ut({schema:this,typeName:ne.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 on.create(this,this._def)}nullable(){return Qn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ft.create(this)}promise(){return hs.create(this,this._def)}or(t){return ci.create([this,t],this._def)}and(t){return li.create(this,t,this._def)}transform(t){return new Ut({...oe(this._def),schema:this,typeName:ne.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new pi({...oe(this._def),innerType:this,defaultValue:n,typeName:ne.ZodDefault})}brand(){return new Tu({typeName:ne.ZodBranded,type:this,...oe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new mi({...oe(this._def),innerType:this,catchValue:n,typeName:ne.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Mi.create(this,t)}readonly(){return gi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const sP=/^c[^\s-]{8,}$/i,iP=/^[0-9a-z]+$/,oP=/^[0-9A-HJKMNP-TV-Z]{26}$/i,aP=/^[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,cP=/^[a-z0-9_-]{21}$/i,lP=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,uP=/^[-+]?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)?)??$/,dP=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,fP="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let qa;const hP=/^(?:(?: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])$/,pP=/^(?:(?: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])$/,mP=/^(([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]))$/,gP=/^(([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])$/,yP=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,vP=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,tv="((\\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])))",xP=new RegExp(`^${tv}$`);function nv(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 bP(e){return new RegExp(`^${nv(e)}$`)}function rv(e){let t=`${tv}T${nv(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 wP(e,t){return!!((t==="v4"||!t)&&hP.test(e)||(t==="v6"||!t)&&mP.test(e))}function SP(e,t){if(!lP.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||!s.typ||!s.alg||t&&s.alg!==t)}catch{return!1}}function _P(e,t){return!!((t==="v4"||!t)&&pP.test(e)||(t==="v6"||!t)&&gP.test(e))}class Lt extends le{_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 r=new nt;let s;for(const i of this._def.checks)if(i.kind==="min")t.data.lengthi.value&&(s=this._getOrReturnCtx(t,s),W(s,{code:D.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,a=t.data.lengtht.test(s),{validation:n,code:D.invalid_string,...Q.errToObj(r)})}_addCheck(t){return new Lt({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Q.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Q.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Q.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Q.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Q.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Q.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Q.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Q.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Q.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Q.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Q.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Q.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Q.errToObj(t)})}datetime(t){var n,r;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:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...Q.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,...Q.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Q.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Q.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Q.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Q.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Q.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Q.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Q.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Q.errToObj(n)})}nonempty(t){return this.min(1,Q.errToObj(t))}trim(){return new Lt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Lt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Lt({...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{var t;return new Lt({checks:[],typeName:ne.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...oe(e)})};function CP(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,s=n>r?n:r,i=parseInt(e.toFixed(s).replace(".","")),o=parseInt(t.toFixed(s).replace(".",""));return i%o/Math.pow(10,s)}class Zn extends le{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 r;const s=new nt;for(const i of this._def.checks)i.kind==="int"?ge.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:D.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),W(r,{code:D.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?CP(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),W(r,{code:D.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:D.not_finite,message:i.message}),s.dirty()):ge.assertNever(i);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Q.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Q.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Q.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Q.toString(n))}setLimit(t,n,r,s){return new Zn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Q.toString(s)}]})}_addCheck(t){return new Zn({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Q.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Q.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Q.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Q.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Q.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Q.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Q.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Q.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Q.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.valuet.kind==="int"||t.kind==="multipleOf"&&ge.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.valuenew Zn({checks:[],typeName:ne.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...oe(e)});class Kn extends le{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 r;const s=new nt;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),W(r,{code:D.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),W(r,{code:D.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):ge.assertNever(i);return{status:s.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,Q.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Q.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Q.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Q.toString(n))}setLimit(t,n,r,s){return new Kn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Q.toString(s)}]})}_addCheck(t){return new Kn({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Q.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Q.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Q.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Q.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Q.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{var t;return new Kn({checks:[],typeName:ne.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...oe(e)})};class ii extends le{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==H.boolean){const r=this._getOrReturnCtx(t);return W(r,{code:D.invalid_type,expected:H.boolean,received:r.parsedType}),re}return ct(t.data)}}ii.create=e=>new ii({typeName:ne.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...oe(e)});class Er extends le{_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 r=new nt;let s;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()i.value&&(s=this._getOrReturnCtx(t,s),W(s,{code:D.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):ge.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Er({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Q.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Q.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.valuenew Er({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:ne.ZodDate,...oe(e)});class Mo extends le{_parse(t){if(this._getType(t)!==H.symbol){const r=this._getOrReturnCtx(t);return W(r,{code:D.invalid_type,expected:H.symbol,received:r.parsedType}),re}return ct(t.data)}}Mo.create=e=>new Mo({typeName:ne.ZodSymbol,...oe(e)});class oi extends le{_parse(t){if(this._getType(t)!==H.undefined){const r=this._getOrReturnCtx(t);return W(r,{code:D.invalid_type,expected:H.undefined,received:r.parsedType}),re}return ct(t.data)}}oi.create=e=>new oi({typeName:ne.ZodUndefined,...oe(e)});class ai extends le{_parse(t){if(this._getType(t)!==H.null){const r=this._getOrReturnCtx(t);return W(r,{code:D.invalid_type,expected:H.null,received:r.parsedType}),re}return ct(t.data)}}ai.create=e=>new ai({typeName:ne.ZodNull,...oe(e)});class fs extends le{constructor(){super(...arguments),this._any=!0}_parse(t){return ct(t.data)}}fs.create=e=>new fs({typeName:ne.ZodAny,...oe(e)});class xr extends le{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ct(t.data)}}xr.create=e=>new xr({typeName:ne.ZodUnknown,...oe(e)});class Cn extends le{_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:ne.ZodNever,...oe(e)});class Do extends le{_parse(t){if(this._getType(t)!==H.undefined){const r=this._getOrReturnCtx(t);return W(r,{code:D.invalid_type,expected:H.void,received:r.parsedType}),re}return ct(t.data)}}Do.create=e=>new Do({typeName:ne.ZodVoid,...oe(e)});class Ft extends le{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),s=this._def;if(n.parsedType!==H.array)return W(n,{code:D.invalid_type,expected:H.array,received:n.parsedType}),re;if(s.exactLength!==null){const o=n.data.length>s.exactLength.value,a=n.data.lengths.maxLength.value&&(W(n,{code:D.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>s.type._parseAsync(new cn(n,o,n.path,a)))).then(o=>nt.mergeArray(r,o));const i=[...n.data].map((o,a)=>s.type._parseSync(new cn(n,o,n.path,a)));return nt.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new Ft({...this._def,minLength:{value:t,message:Q.toString(n)}})}max(t,n){return new Ft({...this._def,maxLength:{value:t,message:Q.toString(n)}})}length(t,n){return new Ft({...this._def,exactLength:{value:t,message:Q.toString(n)}})}nonempty(t){return this.min(1,t)}}Ft.create=(e,t)=>new Ft({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ne.ZodArray,...oe(t)});function Lr(e){if(e instanceof Ae){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=on.create(Lr(r))}return new Ae({...e._def,shape:()=>t})}else return e instanceof Ft?new Ft({...e._def,type:Lr(e.element)}):e instanceof on?on.create(Lr(e.unwrap())):e instanceof Qn?Qn.create(Lr(e.unwrap())):e instanceof ln?ln.create(e.items.map(t=>Lr(t))):e}class Ae extends le{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=ge.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==H.object){const l=this._getOrReturnCtx(t);return W(l,{code:D.invalid_type,expected:H.object,received:l.parsedType}),re}const{status:r,ctx:s}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Cn&&this._def.unknownKeys==="strip"))for(const l in s.data)o.includes(l)||a.push(l);const c=[];for(const l of o){const u=i[l],d=s.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new cn(s,d,s.path,l)),alwaysSet:l in s.data})}if(this._def.catchall instanceof Cn){const l=this._def.unknownKeys;if(l==="passthrough")for(const u of a)c.push({key:{status:"valid",value:u},value:{status:"valid",value:s.data[u]}});else if(l==="strict")a.length>0&&(W(s,{code:D.unrecognized_keys,keys:a}),r.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const u of a){const d=s.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new cn(s,d,s.path,u)),alwaysSet:u in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const l=[];for(const u of c){const d=await u.key,h=await u.value;l.push({key:d,value:h,alwaysSet:u.alwaysSet})}return l}).then(l=>nt.mergeObjectSync(r,l)):nt.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return Q.errToObj,new Ae({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var s,i,o,a;const c=(o=(i=(s=this._def).errorMap)===null||i===void 0?void 0:i.call(s,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=Q.errToObj(t).message)!==null&&a!==void 0?a:c}:{message:c}}}:{}})}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:ne.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Ae({...this._def,catchall:t})}pick(t){const n={};return ge.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Ae({...this._def,shape:()=>n})}omit(t){const n={};return ge.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Ae({...this._def,shape:()=>n})}deepPartial(){return Lr(this)}partial(t){const n={};return ge.objectKeys(this.shape).forEach(r=>{const s=this.shape[r];t&&!t[r]?n[r]=s:n[r]=s.optional()}),new Ae({...this._def,shape:()=>n})}required(t){const n={};return ge.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof on;)i=i._def.innerType;n[r]=i}}),new Ae({...this._def,shape:()=>n})}keyof(){return sv(ge.objectKeys(this.shape))}}Ae.create=(e,t)=>new Ae({shape:()=>e,unknownKeys:"strip",catchall:Cn.create(),typeName:ne.ZodObject,...oe(t)});Ae.strictCreate=(e,t)=>new Ae({shape:()=>e,unknownKeys:"strict",catchall:Cn.create(),typeName:ne.ZodObject,...oe(t)});Ae.lazycreate=(e,t)=>new Ae({shape:e,unknownKeys:"strip",catchall:Cn.create(),typeName:ne.ZodObject,...oe(t)});class ci extends le{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function s(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 wt(a.ctx.common.issues));return W(n,{code:D.invalid_union,unionErrors:o}),re}if(n.common.async)return Promise.all(r.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(s);{let i;const o=[];for(const c of r){const l={...n,common:{...n.common,issues:[]},parent:null},u=c._parseSync({data:n.data,path:n.path,parent:l});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:l}),l.common.issues.length&&o.push(l.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const a=o.map(c=>new wt(c));return W(n,{code:D.invalid_union,unionErrors:a}),re}}get options(){return this._def.options}}ci.create=(e,t)=>new ci({options:e,typeName:ne.ZodUnion,...oe(t)});const mn=e=>e instanceof di?mn(e.schema):e instanceof Ut?mn(e.innerType()):e instanceof fi?[e.value]:e instanceof Gn?e.options:e instanceof hi?ge.objectValues(e.enum):e instanceof pi?mn(e._def.innerType):e instanceof oi?[void 0]:e instanceof ai?[null]:e instanceof on?[void 0,...mn(e.unwrap())]:e instanceof Qn?[null,...mn(e.unwrap())]:e instanceof Tu||e instanceof gi?mn(e.unwrap()):e instanceof mi?mn(e._def.innerType):[];class aa extends le{_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 r=this.discriminator,s=n.data[r],i=this.optionsMap.get(s);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:[r]}),re)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const s=new Map;for(const i of n){const o=mn(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(s.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);s.set(a,i)}}return new aa({typeName:ne.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:s,...oe(r)})}}function Hc(e,t){const n=gn(e),r=gn(t);if(e===t)return{valid:!0,data:e};if(n===H.object&&r===H.object){const s=ge.objectKeys(t),i=ge.objectKeys(e).filter(a=>s.indexOf(a)!==-1),o={...e,...t};for(const a of i){const c=Hc(e[a],t[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(n===H.array&&r===H.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let i=0;i{if(zc(i)||zc(o))return re;const a=Hc(i.value,o.value);return a.valid?((Wc(i)||Wc(o))&&n.dirty(),{status:n.value,value:a.data}):(W(r,{code:D.invalid_intersection_types}),re)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,o])=>s(i,o)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}li.create=(e,t,n)=>new li({left:e,right:t,typeName:ne.ZodIntersection,...oe(n)});class ln extends le{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==H.array)return W(r,{code:D.invalid_type,expected:H.array,received:r.parsedType}),re;if(r.data.lengththis._def.items.length&&(W(r,{code:D.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,a)=>{const c=this._def.items[a]||this._def.rest;return c?c._parse(new cn(r,o,r.path,a)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>nt.mergeArray(n,o)):nt.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new ln({...this._def,rest:t})}}ln.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ln({items:e,typeName:ne.ZodTuple,rest:null,...oe(t)})};class ui extends le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==H.object)return W(r,{code:D.invalid_type,expected:H.object,received:r.parsedType}),re;const s=[],i=this._def.keyType,o=this._def.valueType;for(const a in r.data)s.push({key:i._parse(new cn(r,a,r.path,a)),value:o._parse(new cn(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?nt.mergeObjectAsync(n,s):nt.mergeObjectSync(n,s)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof le?new ui({keyType:t,valueType:n,typeName:ne.ZodRecord,...oe(r)}):new ui({keyType:Lt.create(),valueType:t,typeName:ne.ZodRecord,...oe(n)})}}class Io extends le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==H.map)return W(r,{code:D.invalid_type,expected:H.map,received:r.parsedType}),re;const s=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([a,c],l)=>({key:s._parse(new cn(r,a,r.path,[l,"key"])),value:i._parse(new cn(r,c,r.path,[l,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const c of o){const l=await c.key,u=await c.value;if(l.status==="aborted"||u.status==="aborted")return re;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(l.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const c of o){const l=c.key,u=c.value;if(l.status==="aborted"||u.status==="aborted")return re;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(l.value,u.value)}return{status:n.value,value:a}}}}Io.create=(e,t,n)=>new Io({valueType:t,keyType:e,typeName:ne.ZodMap,...oe(n)});class Tr extends le{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==H.set)return W(r,{code:D.invalid_type,expected:H.set,received:r.parsedType}),re;const s=this._def;s.minSize!==null&&r.data.sizes.maxSize.value&&(W(r,{code:D.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const i=this._def.valueType;function o(c){const l=new Set;for(const u of c){if(u.status==="aborted")return re;u.status==="dirty"&&n.dirty(),l.add(u.value)}return{status:n.value,value:l}}const a=[...r.data.values()].map((c,l)=>i._parse(new cn(r,c,r.path,l)));return r.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(t,n){return new Tr({...this._def,minSize:{value:t,message:Q.toString(n)}})}max(t,n){return new Tr({...this._def,maxSize:{value:t,message:Q.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Tr.create=(e,t)=>new Tr({valueType:e,minSize:null,maxSize:null,typeName:ne.ZodSet,...oe(t)});class Zr extends le{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 r(a,c){return jo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ko(),ds].filter(l=>!!l),issueData:{code:D.invalid_arguments,argumentsError:c}})}function s(a,c){return jo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ko(),ds].filter(l=>!!l),issueData:{code:D.invalid_return_type,returnTypeError:c}})}const i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof hs){const a=this;return ct(async function(...c){const l=new wt([]),u=await a._def.args.parseAsync(c,i).catch(y=>{throw l.addIssue(r(c,y)),l}),d=await Reflect.apply(o,this,u);return await a._def.returns._def.type.parseAsync(d,i).catch(y=>{throw l.addIssue(s(d,y)),l})})}else{const a=this;return ct(function(...c){const l=a._def.args.safeParse(c,i);if(!l.success)throw new wt([r(c,l.error)]);const u=Reflect.apply(o,this,l.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new wt([s(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Zr({...this._def,args:ln.create(t).rest(xr.create())})}returns(t){return new Zr({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Zr({args:t||ln.create([]).rest(xr.create()),returns:n||xr.create(),typeName:ne.ZodFunction,...oe(r)})}}class di extends le{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})}}di.create=(e,t)=>new di({getter:e,typeName:ne.ZodLazy,...oe(t)});class fi extends le{_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}}fi.create=(e,t)=>new fi({value:e,typeName:ne.ZodLiteral,...oe(t)});function sv(e,t){return new Gn({values:e,typeName:ne.ZodEnum,...oe(t)})}class Gn extends le{constructor(){super(...arguments),Is.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return W(n,{expected:ge.joinValues(r),received:n.parsedType,code:D.invalid_type}),re}if(Oo(this,Is)||ev(this,Is,new Set(this._def.values)),!Oo(this,Is).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return W(n,{received:n.data,code:D.invalid_enum_value,options:r}),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 Gn.create(t,{...this._def,...n})}exclude(t,n=this._def){return Gn.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Is=new WeakMap;Gn.create=sv;class hi extends le{constructor(){super(...arguments),Ls.set(this,void 0)}_parse(t){const n=ge.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==H.string&&r.parsedType!==H.number){const s=ge.objectValues(n);return W(r,{expected:ge.joinValues(s),received:r.parsedType,code:D.invalid_type}),re}if(Oo(this,Ls)||ev(this,Ls,new Set(ge.getValidEnumValues(this._def.values))),!Oo(this,Ls).has(t.data)){const s=ge.objectValues(n);return W(r,{received:r.data,code:D.invalid_enum_value,options:s}),re}return ct(t.data)}get enum(){return this._def.values}}Ls=new WeakMap;hi.create=(e,t)=>new hi({values:e,typeName:ne.ZodNativeEnum,...oe(t)});class hs extends le{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 r=n.parsedType===H.promise?n.data:Promise.resolve(n.data);return ct(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}hs.create=(e,t)=>new hs({type:e,typeName:ne.ZodPromise,...oe(t)});class Ut extends le{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ne.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=this._def.effect||null,i={addIssue:o=>{W(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const o=s.transform(r.data,i);if(r.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return re;const c=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return c.status==="aborted"?re:c.status==="dirty"||n.value==="dirty"?zr(c.value):c});{if(n.value==="aborted")return re;const a=this._def.schema._parseSync({data:o,path:r.path,parent:r});return a.status==="aborted"?re:a.status==="dirty"||n.value==="dirty"?zr(a.value):a}}if(s.type==="refinement"){const o=a=>{const c=s.refinement(a,i);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});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:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?re:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Cr(o))return o;const a=s.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:r.data,path:r.path,parent:r}).then(o=>Cr(o)?Promise.resolve(s.transform(o.value,i)).then(a=>({status:n.value,value:a})):o);ge.assertNever(s)}}Ut.create=(e,t,n)=>new Ut({schema:e,typeName:ne.ZodEffects,effect:t,...oe(n)});Ut.createWithPreprocess=(e,t,n)=>new Ut({schema:t,effect:{type:"preprocess",transform:e},typeName:ne.ZodEffects,...oe(n)});class on extends le{_parse(t){return this._getType(t)===H.undefined?ct(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}on.create=(e,t)=>new on({innerType:e,typeName:ne.ZodOptional,...oe(t)});class Qn extends le{_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:ne.ZodNullable,...oe(t)});class pi extends le{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===H.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}pi.create=(e,t)=>new pi({innerType:e,typeName:ne.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...oe(t)});class mi extends le{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return si(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new wt(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new wt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}mi.create=(e,t)=>new mi({innerType:e,typeName:ne.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...oe(t)});class Lo extends le{_parse(t){if(this._getType(t)!==H.nan){const r=this._getOrReturnCtx(t);return W(r,{code:D.invalid_type,expected:H.nan,received:r.parsedType}),re}return{status:"valid",value:t.data}}}Lo.create=e=>new Lo({typeName:ne.ZodNaN,...oe(e)});const EP=Symbol("zod_brand");class Tu extends le{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Mi extends le{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?re:i.status==="dirty"?(n.dirty(),zr(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?re:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(t,n){return new Mi({in:t,out:n,typeName:ne.ZodPipeline})}}class gi extends le{_parse(t){const n=this._def.innerType._parse(t),r=s=>(Cr(s)&&(s.value=Object.freeze(s.value)),s);return si(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}gi.create=(e,t)=>new gi({innerType:e,typeName:ne.ZodReadonly,...oe(t)});function iv(e,t={},n){return e?fs.create().superRefine((r,s)=>{var i,o;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,c=(o=(i=a.fatal)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:!0,l=typeof a=="string"?{message:a}:a;s.addIssue({code:"custom",...l,fatal:c})}}):fs.create()}const TP={object:Ae.lazycreate};var ne;(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"})(ne||(ne={}));const AP=(e,t={message:`Input not instance of ${e.name}`})=>iv(n=>n instanceof e,t),ov=Lt.create,av=Zn.create,RP=Lo.create,PP=Kn.create,cv=ii.create,NP=Er.create,kP=Mo.create,jP=oi.create,OP=ai.create,MP=fs.create,DP=xr.create,IP=Cn.create,LP=Do.create,FP=Ft.create,VP=Ae.create,BP=Ae.strictCreate,$P=ci.create,UP=aa.create,zP=li.create,WP=ln.create,HP=ui.create,qP=Io.create,ZP=Tr.create,KP=Zr.create,GP=di.create,QP=fi.create,XP=Gn.create,YP=hi.create,JP=hs.create,hh=Ut.create,eN=on.create,tN=Qn.create,nN=Ut.createWithPreprocess,rN=Mi.create,sN=()=>ov().optional(),iN=()=>av().optional(),oN=()=>cv().optional(),aN={string:e=>Lt.create({...e,coerce:!0}),number:e=>Zn.create({...e,coerce:!0}),boolean:e=>ii.create({...e,coerce:!0}),bigint:e=>Kn.create({...e,coerce:!0}),date:e=>Er.create({...e,coerce:!0})},cN=re;var ph=Object.freeze({__proto__:null,defaultErrorMap:ds,setErrorMap:nP,getErrorMap:ko,makeIssue:jo,EMPTY_PATH:rP,addIssueToContext:W,ParseStatus:nt,INVALID:re,DIRTY:zr,OK:ct,isAborted:zc,isDirty:Wc,isValid:Cr,isAsync:si,get util(){return ge},get objectUtil(){return Uc},ZodParsedType:H,getParsedType:gn,ZodType:le,datetimeRegex:rv,ZodString:Lt,ZodNumber:Zn,ZodBigInt:Kn,ZodBoolean:ii,ZodDate:Er,ZodSymbol:Mo,ZodUndefined:oi,ZodNull:ai,ZodAny:fs,ZodUnknown:xr,ZodNever:Cn,ZodVoid:Do,ZodArray:Ft,ZodObject:Ae,ZodUnion:ci,ZodDiscriminatedUnion:aa,ZodIntersection:li,ZodTuple:ln,ZodRecord:ui,ZodMap:Io,ZodSet:Tr,ZodFunction:Zr,ZodLazy:di,ZodLiteral:fi,ZodEnum:Gn,ZodNativeEnum:hi,ZodPromise:hs,ZodEffects:Ut,ZodTransformer:Ut,ZodOptional:on,ZodNullable:Qn,ZodDefault:pi,ZodCatch:mi,ZodNaN:Lo,BRAND:EP,ZodBranded:Tu,ZodPipeline:Mi,ZodReadonly:gi,custom:iv,Schema:le,ZodSchema:le,late:TP,get ZodFirstPartyTypeKind(){return ne},coerce:aN,any:MP,array:FP,bigint:PP,boolean:cv,date:NP,discriminatedUnion:UP,effect:hh,enum:XP,function:KP,instanceof:AP,intersection:zP,lazy:GP,literal:QP,map:qP,nan:RP,nativeEnum:YP,never:IP,null:OP,nullable:tN,number:av,object:VP,oboolean:oN,onumber:iN,optional:eN,ostring:sN,pipeline:rN,preprocess:nN,promise:JP,record:HP,set:ZP,strictObject:BP,string:ov,symbol:kP,transformer:hh,tuple:WP,undefined:jP,union:$P,unknown:DP,void:LP,NEVER:cN,ZodIssueCode:D,quotelessJson:tP,ZodError:wt});const Za=(e,t,n)=>{const r=_e(s=>s.lang);return r==="ru"?e:r==="tm"?n??t:t};function lv(e,t){return function(){return e.apply(t,arguments)}}const{toString:lN}=Object.prototype,{getPrototypeOf:Au}=Object,ca=(e=>t=>{const n=lN.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ht=e=>(e=e.toLowerCase(),t=>ca(t)===e),la=e=>t=>typeof t===e,{isArray:Ss}=Array,yi=la("undefined");function uN(e){return e!==null&&!yi(e)&&e.constructor!==null&&!yi(e.constructor)&&St(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const uv=Ht("ArrayBuffer");function dN(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&uv(e.buffer),t}const fN=la("string"),St=la("function"),dv=la("number"),ua=e=>e!==null&&typeof e=="object",hN=e=>e===!0||e===!1,lo=e=>{if(ca(e)!=="object")return!1;const t=Au(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},pN=Ht("Date"),mN=Ht("File"),gN=Ht("Blob"),yN=Ht("FileList"),vN=e=>ua(e)&&St(e.pipe),xN=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||St(e.append)&&((t=ca(e))==="formdata"||t==="object"&&St(e.toString)&&e.toString()==="[object FormData]"))},bN=Ht("URLSearchParams"),[wN,SN,_N,CN]=["ReadableStream","Request","Response","Headers"].map(Ht),EN=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Di(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),Ss(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const ar=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,hv=e=>!yi(e)&&e!==ar;function qc(){const{caseless:e}=hv(this)&&this||{},t={},n=(r,s)=>{const i=e&&fv(t,s)||s;lo(t[i])&&lo(r)?t[i]=qc(t[i],r):lo(r)?t[i]=qc({},r):Ss(r)?t[i]=r.slice():t[i]=r};for(let r=0,s=arguments.length;r(Di(t,(s,i)=>{n&&St(s)?e[i]=lv(s,n):e[i]=s},{allOwnKeys:r}),e),AN=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),RN=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},PN=(e,t,n,r)=>{let s,i,o;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Au(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},NN=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},kN=e=>{if(!e)return null;if(Ss(e))return e;let t=e.length;if(!dv(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},jN=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Au(Uint8Array)),ON=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},MN=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},DN=Ht("HTMLFormElement"),IN=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),mh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),LN=Ht("RegExp"),pv=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Di(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},FN=e=>{pv(e,(t,n)=>{if(St(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(St(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},VN=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return Ss(e)?r(e):r(String(e).split(t)),n},BN=()=>{},$N=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ka="abcdefghijklmnopqrstuvwxyz",gh="0123456789",mv={DIGIT:gh,ALPHA:Ka,ALPHA_DIGIT:Ka+Ka.toUpperCase()+gh},UN=(e=16,t=mv.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function zN(e){return!!(e&&St(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const WN=e=>{const t=new Array(10),n=(r,s)=>{if(ua(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const i=Ss(r)?[]:{};return Di(r,(o,a)=>{const c=n(o,s+1);!yi(c)&&(i[a]=c)}),t[s]=void 0,i}}return r};return n(e,0)},HN=Ht("AsyncFunction"),qN=e=>e&&(ua(e)||St(e))&&St(e.then)&&St(e.catch),gv=((e,t)=>e?setImmediate:t?((n,r)=>(ar.addEventListener("message",({source:s,data:i})=>{s===ar&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),ar.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",St(ar.postMessage)),ZN=typeof queueMicrotask<"u"?queueMicrotask.bind(ar):typeof process<"u"&&process.nextTick||gv,k={isArray:Ss,isArrayBuffer:uv,isBuffer:uN,isFormData:xN,isArrayBufferView:dN,isString:fN,isNumber:dv,isBoolean:hN,isObject:ua,isPlainObject:lo,isReadableStream:wN,isRequest:SN,isResponse:_N,isHeaders:CN,isUndefined:yi,isDate:pN,isFile:mN,isBlob:gN,isRegExp:LN,isFunction:St,isStream:vN,isURLSearchParams:bN,isTypedArray:jN,isFileList:yN,forEach:Di,merge:qc,extend:TN,trim:EN,stripBOM:AN,inherits:RN,toFlatObject:PN,kindOf:ca,kindOfTest:Ht,endsWith:NN,toArray:kN,forEachEntry:ON,matchAll:MN,isHTMLForm:DN,hasOwnProperty:mh,hasOwnProp:mh,reduceDescriptors:pv,freezeMethods:FN,toObjectSet:VN,toCamelCase:IN,noop:BN,toFiniteNumber:$N,findKey:fv,global:ar,isContextDefined:hv,ALPHABET:mv,generateString:UN,isSpecCompliantForm:zN,toJSONObject:WN,isAsyncFn:HN,isThenable:qN,setImmediate:gv,asap:ZN};function ie(e,t,n,r,s){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),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}k.inherits(ie,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 yv=ie.prototype,vv={};["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=>{vv[e]={value:e}});Object.defineProperties(ie,vv);Object.defineProperty(yv,"isAxiosError",{value:!0});ie.from=(e,t,n,r,s,i)=>{const o=Object.create(yv);return k.toFlatObject(e,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),ie.call(o,e.message,t,n,r,s),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const KN=null;function Zc(e){return k.isPlainObject(e)||k.isArray(e)}function xv(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function yh(e,t,n){return e?e.concat(t).map(function(s,i){return s=xv(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function GN(e){return k.isArray(e)&&!e.some(Zc)}const QN=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function da(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 r=n.metaTokens,s=n.visitor||u,i=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(s))throw new TypeError("visitor must be a function");function l(g){if(g===null)return"";if(k.isDate(g))return g.toISOString();if(!c&&k.isBlob(g))throw new ie("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(g)||k.isTypedArray(g)?c&&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=r?p:p.slice(0,-2),g=JSON.stringify(g);else if(k.isArray(g)&&GN(g)||(k.isFileList(g)||k.endsWith(p,"[]"))&&(x=k.toArray(g)))return p=xv(p),x.forEach(function(w,_){!(k.isUndefined(w)||w===null)&&t.append(o===!0?yh([p],_,i):o===null?p:p+"[]",l(w))}),!1}return Zc(g)?!0:(t.append(yh(v,p,i),l(g)),!1)}const d=[],h=Object.assign(QN,{defaultVisitor:u,convertValue:l,isVisitable:Zc});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)&&s.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 vh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ru(e,t){this._pairs=[],e&&da(e,this,t)}const bv=Ru.prototype;bv.append=function(t,n){this._pairs.push([t,n])};bv.toString=function(t){const n=t?function(r){return t.call(this,r,vh)}:vh;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function XN(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wv(e,t,n){if(!t)return e;const r=n&&n.encode||XN;k.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(t,n):i=k.isURLSearchParams(t)?t.toString():new Ru(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class xh{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.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(r){r!==null&&t(r)})}}const Sv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},YN=typeof URLSearchParams<"u"?URLSearchParams:Ru,JN=typeof FormData<"u"?FormData:null,ek=typeof Blob<"u"?Blob:null,tk={isBrowser:!0,classes:{URLSearchParams:YN,FormData:JN,Blob:ek},protocols:["http","https","file","blob","url","data"]},Pu=typeof window<"u"&&typeof document<"u",Kc=typeof navigator=="object"&&navigator||void 0,nk=Pu&&(!Kc||["ReactNative","NativeScript","NS"].indexOf(Kc.product)<0),rk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",sk=Pu&&window.location.href||"http://localhost",ik=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Pu,hasStandardBrowserEnv:nk,hasStandardBrowserWebWorkerEnv:rk,navigator:Kc,origin:sk},Symbol.toStringTag,{value:"Module"})),Je={...ik,...tk};function ok(e,t){return da(e,new Je.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,i){return Je.isNode&&k.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function ak(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ck(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r=n.length;return o=!o&&k.isArray(s)?s.length:o,c?(k.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!a):((!s[o]||!k.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&k.isArray(s[o])&&(s[o]=ck(s[o])),!a)}if(k.isFormData(e)&&k.isFunction(e.entries)){const n={};return k.forEachEntry(e,(r,s)=>{t(ak(r),s,n,0)}),n}return null}function lk(e,t,n){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ii={transitional:Sv,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=k.isObject(t);if(i&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return s?JSON.stringify(_v(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(r.indexOf("application/x-www-form-urlencoded")>-1)return ok(t,this.formSerializer).toString();if((a=k.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return da(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),lk(t)):t}],transformResponse:[function(t){const n=this.transitional||Ii.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(k.isResponse(t)||k.isReadableStream(t))return t;if(t&&k.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?ie.from(a,ie.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:Je.classes.FormData,Blob:Je.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=>{Ii.headers[e]={}});const uk=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"]),dk=e=>{const t={};let n,r,s;return e&&e.split(` `).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&uk[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},bh=Symbol("internals");function js(e){return e&&String(e).trim().toLowerCase()}function uo(e){return e===!1||e==null?e:k.isArray(e)?e.map(uo):String(e)}function fk(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const hk=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ga(e,t,n,r,s){if(k.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!k.isString(t)){if(k.isString(r))return t.indexOf(r)!==-1;if(k.isRegExp(r))return r.test(t)}}function pk(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function mk(e,t){const n=k.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}let pt=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(a,c,l){const u=js(c);if(!u)throw new Error("header name must be a non-empty string");const d=k.findKey(s,u);(!d||s[d]===void 0||l===!0||l===void 0&&s[d]!==!1)&&(s[d||c]=uo(a))}const o=(a,c)=>k.forEach(a,(l,u)=>i(l,u,c));if(k.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(k.isString(t)&&(t=t.trim())&&!hk(t))o(dk(t),n);else if(k.isHeaders(t))for(const[a,c]of t.entries())i(c,a,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=js(t),t){const r=k.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return fk(s);if(k.isFunction(n))return n.call(this,s,r);if(k.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=js(t),t){const r=k.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ga(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=js(o),o){const a=k.findKey(r,o);a&&(!n||Ga(r,r[a],a,n))&&(delete r[a],s=!0)}}return k.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||Ga(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return k.forEach(this,(s,i)=>{const o=k.findKey(r,i);if(o){n[o]=uo(s),delete n[i];return}const a=t?pk(i):String(i).trim();a!==i&&delete n[i],n[a]=uo(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return k.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&k.isArray(r)?r.join(", "):r)}),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 r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[bh]=this[bh]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=js(o);r[a]||(mk(s,o),r[a]=!0)}return k.isArray(t)?t.forEach(i):i(t),this}};pt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);k.reduceDescriptors(pt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});k.freezeMethods(pt);function Qa(e,t){const n=this||Ii,r=t||n,s=pt.from(r.headers);let i=r.data;return k.forEach(e,function(a){i=a.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function Cv(e){return!!(e&&e.__CANCEL__)}function _s(e,t,n){ie.call(this,e??"canceled",ie.ERR_CANCELED,t,n),this.name="CanceledError"}k.inherits(_s,ie,{__CANCEL__:!0});function Ev(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ie("Request failed with status code "+n.status,[ie.ERR_BAD_REQUEST,ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function gk(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function yk(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=r[i];o||(o=l),n[s]=c,r[s]=l;let d=i,h=0;for(;d!==s;)h+=n[d++],d=d%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),l-o{n=u,s=null,i&&(clearTimeout(i),i=null),e.apply(null,l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=r?o(l,u):(s=l,i||(i=setTimeout(()=>{i=null,o(s)},r-d)))},()=>s&&o(s)]}const Fo=(e,t,n=3)=>{let r=0;const s=yk(50,250);return vk(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,c=o-r,l=s(c),u=o<=a;r=o;const d={loaded:o,total:a,progress:a?o/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a&&u?(a-o)/l:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},wh=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Sh=e=>(...t)=>k.asap(()=>e(...t)),xk=Je.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Je.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Je.origin),Je.navigator&&/(msie|trident)/i.test(Je.navigator.userAgent)):()=>!0,bk=Je.hasStandardBrowserEnv?{write(e,t,n,r,s,i){const o=[e+"="+encodeURIComponent(t)];k.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),k.isString(r)&&o.push("path="+r),k.isString(s)&&o.push("domain="+s),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 wk(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Sk(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Tv(e,t){return e&&!wk(t)?Sk(e,t):t}const _h=e=>e instanceof pt?{...e}:e;function Ar(e,t){t=t||{};const n={};function r(l,u,d,h){return k.isPlainObject(l)&&k.isPlainObject(u)?k.merge.call({caseless:h},l,u):k.isPlainObject(u)?k.merge({},u):k.isArray(u)?u.slice():u}function s(l,u,d,h){if(k.isUndefined(u)){if(!k.isUndefined(l))return r(void 0,l,d,h)}else return r(l,u,d,h)}function i(l,u){if(!k.isUndefined(u))return r(void 0,u)}function o(l,u){if(k.isUndefined(u)){if(!k.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function a(l,u,d){if(d in t)return r(l,u);if(d in e)return r(void 0,l)}const c={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:(l,u,d)=>s(_h(l),_h(u),d,!0)};return k.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=c[u]||s,h=d(e[u],t[u],u);k.isUndefined(h)&&d!==a||(n[u]=h)}),n}const Av=e=>{const t=Ar({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:a}=t;t.headers=o=pt.from(o),t.url=wv(Tv(t.baseURL,t.url),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(k.isFormData(n)){if(Je.hasStandardBrowserEnv||Je.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[l,...u]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([l||"multipart/form-data",...u].join("; "))}}if(Je.hasStandardBrowserEnv&&(r&&k.isFunction(r)&&(r=r(t)),r||r!==!1&&xk(t.url))){const l=s&&i&&bk.read(i);l&&o.set(s,l)}return t},_k=typeof XMLHttpRequest<"u",Ck=_k&&function(e){return new Promise(function(n,r){const s=Av(e);let i=s.data;const o=pt.from(s.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=s,u,d,h,y,g;function p(){y&&y(),g&&g(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(s.method.toUpperCase(),s.url,!0),v.timeout=s.timeout;function x(){if(!v)return;const w=pt.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};Ev(function(A){n(A),p()},function(A){r(A),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&&(r(new ie("Request aborted",ie.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new ie("Network Error",ie.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let _=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const S=s.transitional||Sv;s.timeoutErrorMessage&&(_=s.timeoutErrorMessage),r(new ie(_,S.clarifyTimeoutError?ie.ETIMEDOUT:ie.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(s.withCredentials)||(v.withCredentials=!!s.withCredentials),a&&a!=="json"&&(v.responseType=s.responseType),l&&([h,g]=Fo(l,!0),v.addEventListener("progress",h)),c&&v.upload&&([d,y]=Fo(c),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",y)),(s.cancelToken||s.signal)&&(u=w=>{v&&(r(!w||w.type?new _s(null,e,v):w),v.abort(),v=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const b=gk(s.url);if(b&&Je.protocols.indexOf(b)===-1){r(new ie("Unsupported protocol "+b+":",ie.ERR_BAD_REQUEST,e));return}v.send(i||null)})},Ek=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const i=function(l){if(!s){s=!0,a();const u=l instanceof Error?l:this.reason;r.abort(u instanceof ie?u:new _s(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,i(new ie(`timeout ${t} of ms exceeded`,ie.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>k.asap(a),c}},Tk=function*(e,t){let n=e.byteLength;if(n{const s=Ak(e,t);let i=0,o,a=c=>{o||(o=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await s.next();if(l){a(),c.close();return}let d=u.byteLength;if(n){let h=i+=d;n(h)}c.enqueue(new Uint8Array(u))}catch(l){throw a(l),l}},cancel(c){return a(c),s.return()}},{highWaterMark:2})},fa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Rv=fa&&typeof ReadableStream=="function",Pk=fa&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Pv=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Nk=Rv&&Pv(()=>{let e=!1;const t=new Request(Je.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Eh=64*1024,Gc=Rv&&Pv(()=>k.isReadableStream(new Response("").body)),Vo={stream:Gc&&(e=>e.body)};fa&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Vo[t]&&(Vo[t]=k.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ie(`Response type '${t}' is not supported`,ie.ERR_NOT_SUPPORT,r)})})})(new Response);const kk=async e=>{if(e==null)return 0;if(k.isBlob(e))return e.size;if(k.isSpecCompliantForm(e))return(await new Request(Je.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 Pk(e)).byteLength},jk=async(e,t)=>{const n=k.toFiniteNumber(e.getContentLength());return n??kk(t)},Ok=fa&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:h}=Av(e);l=l?(l+"").toLowerCase():"text";let y=Ek([s,i&&i.toAbortSignal()],o),g;const p=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let v;try{if(c&&Nk&&n!=="get"&&n!=="head"&&(v=await jk(u,r))!==0){let S=new Request(t,{method:"POST",body:r,duplex:"half"}),T;if(k.isFormData(r)&&(T=S.headers.get("content-type"))&&u.setContentType(T),S.body){const[A,R]=wh(v,Fo(Sh(c)));r=Ch(S.body,Eh,A,R)}}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:r,duplex:"half",credentials:x?d:void 0});let b=await fetch(g);const w=Gc&&(l==="stream"||l==="response");if(Gc&&(a||w&&p)){const S={};["status","statusText","headers"].forEach(N=>{S[N]=b[N]});const T=k.toFiniteNumber(b.headers.get("content-length")),[A,R]=a&&wh(T,Fo(Sh(a),!0))||[];b=new Response(Ch(b.body,Eh,A,()=>{R&&R(),p&&p()}),S)}l=l||"text";let _=await Vo[k.findKey(Vo,l)||"text"](b,e);return!w&&p&&p(),await new Promise((S,T)=>{Ev(S,T,{data:_,headers:pt.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 ie("Network Error",ie.ERR_NETWORK,e,g),{cause:x.cause||x}):ie.from(x,x&&x.code,e,g)}}),Qc={http:KN,xhr:Ck,fetch:Ok};k.forEach(Qc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Th=e=>`- ${e}`,Mk=e=>k.isFunction(e)||e===null||e===!1,Nv={getAdapter:e=>{e=k.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let i=0;i`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since : `+i.map(Th).join(` `):" "+Th(i[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Qc};function Xa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new _s(null,e)}function Ah(e){return Xa(e),e.headers=pt.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),Nv.getAdapter(e.adapter||Ii.adapter)(e).then(function(r){return Xa(e),r.data=Qa.call(e,e.transformResponse,r),r.headers=pt.from(r.headers),r},function(r){return Cv(r)||(Xa(e),r&&r.response&&(r.response.data=Qa.call(e,e.transformResponse,r.response),r.response.headers=pt.from(r.response.headers))),Promise.reject(r)})}const kv="1.7.9",ha={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ha[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Rh={};ha.transitional=function(t,n,r){function s(i,o){return"[Axios v"+kv+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,a)=>{if(t===!1)throw new ie(s(o," has been removed"+(n?" in "+n:"")),ie.ERR_DEPRECATED);return n&&!Rh[o]&&(Rh[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}};ha.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Dk(e,t,n){if(typeof e!="object")throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const a=e[i],c=a===void 0||o(a,i,e);if(c!==!0)throw new ie("option "+i+" must be "+c,ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ie("Unknown option "+i,ie.ERR_BAD_OPTION)}}const fo={assertOptions:Dk,validators:ha},Kt=fo.validators;let br=class{constructor(t){this.defaults=t,this.interceptors={request:new xh,response:new xh}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ar(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&fo.assertOptions(r,{silentJSONParsing:Kt.transitional(Kt.boolean),forcedJSONParsing:Kt.transitional(Kt.boolean),clarifyTimeoutError:Kt.transitional(Kt.boolean)},!1),s!=null&&(k.isFunction(s)?n.paramsSerializer={serialize:s}:fo.assertOptions(s,{encode:Kt.function,serialize:Kt.function},!0)),fo.assertOptions(n,{baseUrl:Kt.spelling("baseURL"),withXsrfToken:Kt.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=pt.concat(o,i);const a=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(c=c&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,d=0,h;if(!c){const g=[Ah.bind(this),void 0];for(g.unshift.apply(g,a),g.push.apply(g,l),h=g.length,u=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{r.subscribe(a),i=a}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,a){r.reason||(r.reason=new _s(i,o,a),n(r.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=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new jv(function(s){t=s}),cancel:t}}};function Lk(e){return function(n){return e.apply(null,n)}}function Fk(e){return k.isObject(e)&&e.isAxiosError===!0}const Xc={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(Xc).forEach(([e,t])=>{Xc[t]=e});function Ov(e){const t=new br(e),n=lv(br.prototype.request,t);return k.extend(n,br.prototype,t,{allOwnKeys:!0}),k.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Ov(Ar(e,s))},n}const Le=Ov(Ii);Le.Axios=br;Le.CanceledError=_s;Le.CancelToken=Ik;Le.isCancel=Cv;Le.VERSION=kv;Le.toFormData=da;Le.AxiosError=ie;Le.Cancel=Le.CanceledError;Le.all=function(t){return Promise.all(t)};Le.spread=Lk;Le.isAxiosError=Fk;Le.mergeConfig=Ar;Le.AxiosHeaders=pt;Le.formToJSON=e=>_v(k.isHTMLForm(e)?new FormData(e):e);Le.getAdapter=Nv.getAdapter;Le.HttpStatusCode=Xc;Le.default=Le;const{Axios:bO,AxiosError:wO,CanceledError:SO,isCancel:_O,CancelToken:CO,VERSION:EO,all:TO,Cancel:AO,isAxiosError:RO,spread:PO,toFormData:NO,AxiosHeaders:kO,HttpStatusCode:jO,formToJSON:OO,getAdapter:MO,mergeConfig:DO}=Le,rt=Le.create({baseURL:"https://turkmentextile.turkmenexpo.com/app/api/v1/"}),IO=async e=>(await rt.post("book_stand_form",e)).status===201,LO=async e=>(await rt.post("become_sponsor_form",e)).status===201,FO=async e=>(await rt.post("contact_form",e)).status===201,Vk=async e=>(await rt.post("subscribe_news_form",e)).status===201,Bk=async(e,t)=>rt.get(`pages/${t}`,{headers:{"Accept-Language":e}}),$k=async e=>rt.get("stats",{headers:{"Accept-Language":e}}),Uk=async e=>rt.get("contact_data",{headers:{"Accept-Language":e}}),zk=async e=>rt.get("industries",{headers:{"Accept-Language":e}}),Wk=async e=>rt.get("exhibition_time",{headers:{"Accept-Language":e}}),Hk=async e=>rt.get("news?per_page=100",{headers:{"Accept-Language":e}}),VO=async(e,t)=>rt.get(`news/${e}`,{headers:{"Accept-Language":t}}),BO=async e=>rt("participants",{headers:{"Accept-Language":e}}),qk=async e=>rt("photos/category/"+e),Zk=async e=>rt("videos/category/"+e),Kk=async e=>rt("sponsors_and_partners",{headers:{"Accept-Language":e}}),$O=async(e,t)=>rt("designers/category/"+t,{headers:{"Accept-Language":e}}),Gk=ph.object({email:ph.string().email()}),Mv=({modal:e=!1})=>{var i,o;const[t,n]=m.useState(!1),r=lA({resolver:eP(Gk),defaultValues:{email:""}});async function s(a){try{const c=await Vk(a);r.reset(),n(c)}catch(c){console.error("POST subscribe",c)}}return f.jsx("form",{onSubmit:r.handleSubmit(s),className:V("py-8",e?"max-w-[392px] mx-auto":"bg-surface_container"),children:f.jsxs(Ke,{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:Za("Подпишитесь на новости:","Subscribe to the news:","Täzeliklere ýazylyşyň:")}),f.jsxs("div",{className:"relative",children:[f.jsx("input",{...r.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=r.formState.errors)==null?void 0:i.email)==null?void 0:o.message})]}),f.jsx(tt,{loading:r.formState.isSubmitting,disabled:t,className:V({"xl:w-[288px] lg:w-[220px] w-full":!e,"w-full":e}),children:t?Za("Отправлено","Submitted","Ugradyldy"):Za("Подписаться","Subscribe","Ýazylmak")})]})})},Qk=({className:e,title:t})=>f.jsxs(Gy,{children:[f.jsx(Qy,{className:V("h-14 px-3 flex gap-3 items-center hover:bg-slate-300/50 transition-all",e),children:t}),f.jsx(Eu,{children:f.jsx(Mv,{className:"",modal:!0})})]}),Bo=hy()(e=>({sheet:!1,popover:!1,modal:!1,setModal:t=>e({modal:t}),setSheet:t=>e({sheet:t}),setPopover:t=>e({popover:t})})),$o=({title:e,dropDownContent:t,color:n,triggerClassName:r,children:s})=>{const[i,o]=m.useState(!1),a=Bo(c=>c.setSheet);return f.jsxs(Zy,{open:i,onOpenChange:()=>o(!i),children:[f.jsxs(Ky,{className:V("flex items-center gap-2",r),children:[e,s,!s&&f.jsx(Dv,{color:n,className:V("transition-all",i&&"rotate-180")})]}),f.jsx(Cu,{className:"w-fit relative z-[200] px-0 bg-surface_container",children:t&&t.map((c,l)=>c.hover?f.jsx(H1,{setIsOpen:o,...c},l):c.link?f.jsxs(Se,{to:c.link??"",onClick:()=>{o(!1),a(!1)},className:"h-14 px-3 flex gap-3 relative justify-between cursor-pointer items-center hover:bg-slate-300/50 transition-all",target:c.blank?"_blank":void 0,rel:c.blank?"noopener noreferrer":void 0,children:[c.text,c.blank&&f.jsx("img",{src:"/pdf.svg"})]},l):c.modal?f.jsx(Qk,{title:c.text},c.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:c.text})},l))})]})},Dv=({color:e="white",w:t="20",h:n="20",className:r})=>f.jsx("div",{className:r,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})})}),Jn=({className:e})=>f.jsx(Ke,{className:V("w-full py-20 h-full flex items-center justify-between",e),children:f.jsx(Qp,{className:"animate-spin mx-auto text-primary size-16"})});function Xk(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ph(e){return Xk(e)||Array.isArray(e)}function Yk(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Nu(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const s=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return s!==i?!1:n.every(o=>{const a=e[o],c=t[o];return typeof a=="function"?`${a}`==`${c}`:!Ph(a)||!Ph(c)?a===c:Nu(a,c)})}function Nh(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function Jk(e,t){if(e.length!==t.length)return!1;const n=Nh(e),r=Nh(t);return n.every((s,i)=>{const o=r[i];return Nu(s,o)})}function ku(e){return typeof e=="number"}function Yc(e){return typeof e=="string"}function pa(e){return typeof e=="boolean"}function kh(e){return Object.prototype.toString.call(e)==="[object Object]"}function Pe(e){return Math.abs(e)}function ju(e){return Math.sign(e)}function qs(e,t){return Pe(e-t)}function ej(e,t){if(e===0||t===0||Pe(e)<=Pe(t))return 0;const n=qs(Pe(e),Pe(t));return Pe(n/e)}function tj(e){return Math.round(e*100)/100}function vi(e){return xi(e).map(Number)}function Vt(e){return e[Li(e)]}function Li(e){return Math.max(0,e.length-1)}function Ou(e,t){return t===Li(e)}function jh(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function xi(e){return Object.keys(e)}function Iv(e,t){return[e,t].reduce((n,r)=>(xi(r).forEach(s=>{const i=n[s],o=r[s],a=kh(i)&&kh(o);n[s]=a?Iv(i,o):o}),n),{})}function Jc(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function nj(e,t){const n={start:r,center:s,end:i};function r(){return 0}function s(c){return i(c)/2}function i(c){return t-c}function o(c,l){return Yc(e)?n[e](c):e(t,c,l)}return{measure:o}}function bi(){let e=[];function t(s,i,o,a={passive:!0}){let c;if("addEventListener"in s)s.addEventListener(i,o,a),c=()=>s.removeEventListener(i,o,a);else{const l=s;l.addListener(o),c=()=>l.removeListener(o)}return e.push(c),r}function n(){e=e.filter(s=>s())}const r={add:t,clear:n};return r}function rj(e,t,n,r){const s=bi(),i=1e3/60;let o=null,a=0,c=0;function l(){s.add(e,"visibilitychange",()=>{e.hidden&&g()})}function u(){y(),s.clear()}function d(v){if(!c)return;o||(o=v,n(),n());const x=v-o;for(o=v,a+=x;a>=i;)n(),a-=i;const b=a/i;r(b),c&&(c=t.requestAnimationFrame(d))}function h(){c||(c=t.requestAnimationFrame(d))}function y(){t.cancelAnimationFrame(c),o=null,a=0,c=0}function g(){o=null,a=0}return{init:l,destroy:u,start:h,stop:y,update:n,render:r}}function sj(e,t){const n=t==="rtl",r=e==="y",s=r?"y":"x",i=r?"x":"y",o=!r&&n?-1:1,a=u(),c=d();function l(g){const{height:p,width:v}=g;return r?p:v}function u(){return r?"top":n?"right":"left"}function d(){return r?"bottom":n?"left":"right"}function h(g){return g*o}return{scroll:s,cross:i,startEdge:a,endEdge:c,measureSize:l,direction:h}}function Rr(e=0,t=0){const n=Pe(e-t);function r(l){return lt}function i(l){return r(l)||s(l)}function o(l){return i(l)?r(l)?e:t:l}function a(l){return n?l-n*Math.ceil((l-t)/n):l}return{length:n,max:t,min:e,constrain:o,reachedAny:i,reachedMax:s,reachedMin:r,removeOffset:a}}function Lv(e,t,n){const{constrain:r}=Rr(0,e),s=e+1;let i=o(t);function o(h){return n?Pe((s+h)%s):r(h)}function a(){return i}function c(h){return i=o(h),d}function l(h){return u().set(a()+h)}function u(){return Lv(e,a(),n)}const d={get:a,set:c,add:l,clone:u};return d}function ij(e,t,n,r,s,i,o,a,c,l,u,d,h,y,g,p,v,x,b){const{cross:w,direction:_}=e,S=["INPUT","SELECT","TEXTAREA"],T={passive:!1},A=bi(),R=bi(),N=Rr(50,225).constrain(y.measure(20)),O={mouse:300,touch:400},I={mouse:500,touch:600},M=g?43:25;let U=!1,F=0,X=0,Y=!1,Z=!1,K=!1,se=!1;function fe(G){if(!b)return;function he(Ue){(pa(b)||b(G,Ue))&&st(Ue)}const Ce=t;A.add(Ce,"dragstart",Ue=>Ue.preventDefault(),T).add(Ce,"touchmove",()=>{},T).add(Ce,"touchend",()=>{}).add(Ce,"touchstart",he).add(Ce,"mousedown",he).add(Ce,"touchcancel",ve).add(Ce,"contextmenu",ve).add(Ce,"click",je,!0)}function ye(){A.clear(),R.clear()}function Be(){const G=se?n:t;R.add(G,"touchmove",ue,T).add(G,"touchend",ve).add(G,"mousemove",ue,T).add(G,"mouseup",ve)}function Ge(G){const he=G.nodeName||"";return S.includes(he)}function Qe(){return(g?I:O)[se?"mouse":"touch"]}function jt(G,he){const Ce=d.add(ju(G)*-1),Ue=u.byDistance(G,!g).distance;return g||Pe(G)=2,!(he&&G.button!==0)&&(Ge(G.target)||(Y=!0,i.pointerDown(G),l.useFriction(0).useDuration(0),s.set(o),Be(),F=i.readPoint(G),X=i.readPoint(G,w),h.emit("pointerDown")))}function ue(G){if(!Jc(G,r)&&G.touches.length>=2)return ve(G);const Ce=i.readPoint(G),Ue=i.readPoint(G,w),mt=qs(Ce,F),Et=qs(Ue,X);if(!Z&&!se&&(!G.cancelable||(Z=mt>Et,!Z)))return ve(G);const C=i.pointerMove(G);mt>p&&(K=!0),l.useFriction(.3).useDuration(.75),a.start(),s.add(_(C)),G.preventDefault()}function ve(G){const Ce=u.byDistance(0,!1).index!==d.get(),Ue=i.pointerUp(G)*Qe(),mt=jt(_(Ue),Ce),Et=ej(Ue,mt),C=M-10*Et,P=x+Et/50;Z=!1,Y=!1,R.clear(),l.useDuration(C).useFriction(P),c.distance(mt,!g),se=!1,h.emit("pointerUp")}function je(G){K&&(G.stopPropagation(),G.preventDefault(),K=!1)}function Fe(){return Y}return{init:fe,destroy:ye,pointerDown:Fe}}function oj(e,t){let r,s;function i(d){return d.timeStamp}function o(d,h){const g=`client${(h||e.scroll)==="x"?"X":"Y"}`;return(Jc(d,t)?d:d.touches[0])[g]}function a(d){return r=d,s=d,o(d)}function c(d){const h=o(d)-o(s),y=i(d)-i(r)>170;return s=d,y&&(r=d),h}function l(d){if(!r||!s)return 0;const h=o(s)-o(r),y=i(d)-i(r),g=i(d)-i(s)>170,p=h/y;return y&&!g&&Pe(p)>.1?p:0}return{pointerDown:a,pointerMove:c,pointerUp:l,readPoint:o}}function aj(){function e(n){const{offsetTop:r,offsetLeft:s,offsetWidth:i,offsetHeight:o}=n;return{top:r,right:s+i,bottom:r+o,left:s,width:i,height:o}}return{measure:e}}function cj(e){function t(r){return e*(r/100)}return{measure:t}}function lj(e,t,n,r,s,i,o){const a=[e].concat(r);let c,l,u=[],d=!1;function h(v){return s.measureSize(o.measure(v))}function y(v){if(!i)return;l=h(e),u=r.map(h);function x(b){for(const w of b){if(d)return;const _=w.target===e,S=r.indexOf(w.target),T=_?l:u[S],A=h(_?e:r[S]);if(Pe(A-T)>=.5){v.reInit(),t.emit("resize");break}}}c=new ResizeObserver(b=>{(pa(i)||i(v,b))&&x(b)}),n.requestAnimationFrame(()=>{a.forEach(b=>c.observe(b))})}function g(){d=!0,c&&c.disconnect()}return{init:y,destroy:g}}function uj(e,t,n,r,s,i){let o=0,a=0,c=s,l=i,u=e.get(),d=0;function h(){const T=r.get()-e.get(),A=!c;let R=0;return A?(o=0,n.set(r),e.set(r),R=T):(n.set(e),o+=T/c,o*=l,u+=o,e.add(o),R=u-d),a=ju(R),d=u,S}function y(){const T=r.get()-t.get();return Pe(T)<.001}function g(){return c}function p(){return a}function v(){return o}function x(){return w(s)}function b(){return _(i)}function w(T){return c=T,S}function _(T){return l=T,S}const S={direction:p,duration:g,velocity:v,seek:h,settled:y,useBaseFriction:b,useBaseDuration:x,useFriction:_,useDuration:w};return S}function dj(e,t,n,r,s){const i=s.measure(10),o=s.measure(50),a=Rr(.1,.99);let c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(y){if(!l())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){const{min:v,max:x}=i,b=i.constrain(g),w=!p,_=Ou(n,p);return w?x:_||l(v,b)?v:l(x,b)?x:b}).map(g=>parseFloat(g.toFixed(3)))}function h(){if(t<=e+s)return[i.max];if(r==="keepSnaps")return o;const{min:g,max:p}=a;return o.slice(g,p)}return{snapsContained:c,scrollContainLimit:a}}function hj(e,t,n){const r=t[0],s=n?r-e:Vt(t);return{limit:Rr(s,r)}}function pj(e,t,n,r){const i=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:c}=Rr(i,o);function l(h){return h===1?c(n.get()):h===-1?a(n.get()):!1}function u(h){if(!l(h))return;const y=e*(h*-1);r.forEach(g=>g.add(y))}return{loop:u}}function mj(e){const{max:t,length:n}=e;function r(i){const o=i-t;return n?o/-n:0}return{get:r}}function gj(e,t,n,r,s){const{startEdge:i,endEdge:o}=e,{groupSlides:a}=s,c=d().map(t.measure),l=h(),u=y();function d(){return a(r).map(p=>Vt(p)[o]-p[0][i]).map(Pe)}function h(){return r.map(p=>n[i]-p[i]).map(p=>-Pe(p))}function y(){return a(l).map(p=>p[0]).map((p,v)=>p+c[v])}return{snaps:l,snapsAligned:u}}function yj(e,t,n,r,s,i){const{groupSlides:o}=s,{min:a,max:c}=r,l=u();function u(){const h=o(i),y=!e||t==="keepSnaps";return n.length===1?[i]:y?h:h.slice(a,c).map((g,p,v)=>{const x=!p,b=Ou(v,p);if(x){const w=Vt(v[0])+1;return jh(w)}if(b){const w=Li(i)-Vt(v)[0]+1;return jh(w,Vt(v)[0])}return g})}return{slideRegistry:l}}function vj(e,t,n,r,s){const{reachedAny:i,removeOffset:o,constrain:a}=r;function c(g){return g.concat().sort((p,v)=>Pe(p)-Pe(v))[0]}function l(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 c(v);const x=v.filter(b=>ju(b)===p);return x.length?c(x):Vt(v)-n}function d(g,p){const v=t[g]-s.get(),x=u(v,p);return{index:g,distance:x}}function h(g,p){const v=s.get()+g,{index:x,distance:b}=l(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 xj(e,t,n,r,s,i,o){function a(d){const h=d.distance,y=d.index!==t.get();i.add(h),h&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),y&&(n.set(t.get()),t.set(d.index),o.emit("select"))}function c(d,h){const y=s.byDistance(d,h);a(y)}function l(d,h){const y=t.clone().set(d),g=s.byIndex(y.get(),h);a(g)}return{distance:c,index:l}}function bj(e,t,n,r,s,i,o,a){const c={passive:!0,capture:!0};let l=0;function u(y){if(!a)return;function g(p){if(new Date().getTime()-l>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(w=>w.includes(p));ku(b)&&(s.useDuration(0),r.index(b,0),o.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((p,v)=>{i.add(p,"focus",x=>{(pa(a)||a(y,x))&&g(v)},c)})}function d(y){y.code==="Tab"&&(l=new Date().getTime())}return{init:u}}function Fs(e){let t=e;function n(){return t}function r(c){t=o(c)}function s(c){t+=o(c)}function i(c){t-=o(c)}function o(c){return ku(c)?c:c.get()}return{get:n,set:r,add:s,subtract:i}}function Fv(e,t){const n=e.scroll==="x"?o:a,r=t.style;let s=null,i=!1;function o(h){return`translate3d(${h}px,0px,0px)`}function a(h){return`translate3d(0px,${h}px,0px)`}function c(h){if(i)return;const y=tj(e.direction(h));y!==s&&(r.transform=n(y),s=y)}function l(h){i=!h}function u(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:c,toggleActive:l}}function wj(e,t,n,r,s,i,o,a,c){const u=vi(s),d=vi(s).reverse(),h=x().concat(b());function y(A,R){return A.reduce((N,O)=>N-s[O],R)}function g(A,R){return A.reduce((N,O)=>y(N,R)>0?N.concat([O]):N,[])}function p(A){return i.map((R,N)=>({start:R-r[N]+.5+A,end:R+t-.5+A}))}function v(A,R,N){const O=p(R);return A.map(I=>{const M=N?0:-n,U=N?n:0,F=N?"end":"start",X=O[I][F];return{index:I,loopPoint:X,slideLocation:Fs(-1),translate:Fv(e,c[I]),target:()=>a.get()>X?M:U}})}function x(){const A=o[0],R=g(d,A);return v(R,n,!1)}function b(){const A=t-o[0]-1,R=g(u,A);return v(R,-n,!0)}function w(){return h.every(({index:A})=>{const R=u.filter(N=>N!==A);return y(R,t)<=.1})}function _(){h.forEach(A=>{const{target:R,translate:N,slideLocation:O}=A,I=R();I!==O.get()&&(N.to(I),O.set(I))})}function S(){h.forEach(A=>A.translate.clear())}return{canLoop:w,clear:S,loop:_,loopPoints:h}}function Sj(e,t,n){let r,s=!1;function i(c){if(!n)return;function l(u){for(const d of u)if(d.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(u=>{s||(pa(n)||n(c,u))&&l(u)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),s=!0}return{init:i,destroy:o}}function _j(e,t,n,r){const s={};let i=null,o=null,a,c=!1;function l(){a=new IntersectionObserver(g=>{c||(g.forEach(p=>{const v=t.indexOf(p.target);s[v]=p}),i=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(g=>a.observe(g))}function u(){a&&a.disconnect(),c=!0}function d(g){return xi(s).reduce((p,v)=>{const x=parseInt(v),{isIntersecting:b}=s[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:l,destroy:u,get:h}}function Cj(e,t,n,r,s,i){const{measureSize:o,startEdge:a,endEdge:c}=e,l=n[0]&&s,u=g(),d=p(),h=n.map(o),y=v();function g(){if(!l)return 0;const b=n[0];return Pe(t[a]-b[a])}function p(){if(!l)return 0;const b=i.getComputedStyle(Vt(r));return parseFloat(b.getPropertyValue(`margin-${c}`))}function v(){return n.map((b,w,_)=>{const S=!w,T=Ou(_,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 Ej(e,t,n,r,s,i,o,a,c){const{startEdge:l,endEdge:u,direction:d}=e,h=ku(n);function y(x,b){return vi(x).filter(w=>w%b===0).map(w=>x.slice(w,w+b))}function g(x){return x.length?vi(x).reduce((b,w,_)=>{const S=Vt(b)||0,T=S===0,A=w===Li(x),R=s[l]-i[S][l],N=s[l]-i[w][u],O=!r&&T?d(o):0,I=!r&&A?d(a):0,M=Pe(N-I-(R+O));return _&&M>t+c&&b.push(w),A&&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 Tj(e,t,n,r,s,i,o){const{align:a,axis:c,direction:l,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,A=2,R=aj(),N=R.measure(t),O=n.map(R.measure),I=sj(c,l),M=I.measureSize(N),U=cj(M),F=nj(a,M),X=!d&&!!b,Y=d||!!b,{slideSizes:Z,slideSizesWithGaps:K,startGap:se,endGap:fe}=Cj(I,N,O,n,Y,s),ye=Ej(I,M,v,d,N,O,se,fe,A),{snaps:Be,snapsAligned:Ge}=gj(I,F,N,O,ye),Qe=-Vt(Be)+Vt(K),{snapsContained:jt,scrollContainLimit:st}=fj(M,Qe,Ge,b,A),ue=X?jt:Ge,{limit:ve}=hj(Qe,ue,d),je=Lv(Li(ue),u,d),Fe=je.clone(),we=vi(n),G=({dragHandler:Zt,scrollBody:er,scrollBounds:Es,options:{loop:tr}})=>{tr||Es.constrain(Zt.pointerDown()),er.seek()},he=({scrollBody:Zt,translate:er,location:Es,offsetLocation:tr,previousLocation:ya,scrollLooper:Vi,slideLooper:Tx,dragHandler:Ax,animation:Rx,eventHandler:Bu,scrollBounds:Px,options:{loop:$u}},Uu)=>{const zu=Zt.settled(),Nx=!Px.shouldConstrain(),Wu=$u?zu:zu&&Nx;Wu&&!Ax.pointerDown()&&(Rx.stop(),Bu.emit("settle")),Wu||Bu.emit("scroll");const kx=Es.get()*Uu+ya.get()*(1-Uu);tr.set(kx),$u&&(Vi.loop(Zt.direction()),Tx.loop()),er.to(tr.get())},Ce=rj(r,s,()=>G(Cs),Zt=>he(Cs,Zt)),Ue=.68,mt=ue[je.get()],Et=Fs(mt),C=Fs(mt),P=Fs(mt),j=Fs(mt),z=uj(Et,P,C,j,h,Ue),B=vj(d,ue,Qe,ve,j),L=xj(Ce,je,Fe,z,B,j,o),J=mj(ve),ae=bi(),Ve=_j(t,n,o,p),{slideRegistry:Oe}=yj(X,b,ue,st,ye,we),qt=bj(e,n,Oe,L,z,ae,o,T),Cs={ownerDocument:r,ownerWindow:s,eventHandler:o,containerRect:N,slideRects:O,animation:Ce,axis:I,dragHandler:ij(I,e,r,s,j,oj(I,s),Et,Ce,L,z,B,je,o,U,y,g,x,Ue,S),eventStore:ae,percentOfView:U,index:je,indexPrevious:Fe,limit:ve,location:Et,offsetLocation:P,previousLocation:C,options:i,resizeHandler:lj(t,o,s,n,I,w,R),scrollBody:z,scrollBounds:dj(ve,P,j,z,U),scrollLooper:pj(Qe,ve,P,[Et,P,C,j]),scrollProgress:J,scrollSnapList:ue.map(J.get),scrollSnaps:ue,scrollTarget:B,scrollTo:L,slideLooper:wj(I,M,Qe,Z,K,Be,ue,P,n),slideFocus:qt,slidesHandler:Sj(t,o,_),slidesInView:Ve,slideIndexes:we,slideRegistry:Oe,slidesToScroll:ye,target:j,translate:Fv(I,t)};return Cs}function Aj(){let e={},t;function n(l){t=l}function r(l){return e[l]||[]}function s(l){return r(l).forEach(u=>u(t,l)),c}function i(l,u){return e[l]=r(l).concat([u]),c}function o(l,u){return e[l]=r(l).filter(d=>d!==u),c}function a(){e={}}const c={init:n,emit:s,off:o,on:i,clear:a};return c}const Rj={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 Pj(e){function t(i,o){return Iv(i,o||{})}function n(i){const o=i.breakpoints||{},a=xi(o).filter(c=>e.matchMedia(c).matches).map(c=>o[c]).reduce((c,l)=>t(c,l),{});return t(i,a)}function r(i){return i.map(o=>xi(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function Nj(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,c)=>Object.assign(a,{[c.name]:c}),{})}function r(){t=t.filter(i=>i.destroy())}return{init:n,destroy:r}}function Uo(e,t,n){const r=e.ownerDocument,s=r.defaultView,i=Pj(s),o=Nj(i),a=bi(),c=Aj(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:h,off:y,emit:g}=c,p=I;let v=!1,x,b=l(Rj,Uo.globalOptions),w=l(b),_=[],S,T,A;function R(){const{container:we,slides:G}=w;T=(Yc(we)?e.querySelector(we):we)||e.children[0];const Ce=Yc(G)?T.querySelectorAll(G):G;A=[].slice.call(Ce||T.children)}function N(we){const G=Tj(e,T,A,r,s,we,c);if(we.loop&&!G.slideLooper.canLoop()){const he=Object.assign({},we,{loop:!1});return N(he)}return G}function O(we,G){v||(b=l(b,we),w=u(b),_=G||_,R(),x=N(w),d([b,..._.map(({options:he})=>he)]).forEach(he=>a.add(he,"change",I)),w.active&&(x.translate.to(x.location.get()),x.animation.init(),x.slidesInView.init(),x.slideFocus.init(Fe),x.eventHandler.init(Fe),x.resizeHandler.init(Fe),x.slidesHandler.init(Fe),x.options.loop&&x.slideLooper.loop(),T.offsetParent&&A.length&&x.dragHandler.init(Fe),S=o.init(Fe,_)))}function I(we,G){const he=ye();M(),O(l({startIndex:he},we),G),c.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 U(){v||(v=!0,a.clear(),M(),c.emit("destroy"),c.clear())}function F(we,G,he){!w.active||v||(x.scrollBody.useBaseFriction().useDuration(G===!0?0:w.duration),x.scrollTo.index(we,he||0))}function X(we){const G=x.index.add(1).get();F(G,we,-1)}function Y(we){const G=x.index.add(-1).get();F(G,we,1)}function Z(){return x.index.add(1).get()!==ye()}function K(){return x.index.add(-1).get()!==ye()}function se(){return x.scrollSnapList}function fe(){return x.scrollProgress.get(x.location.get())}function ye(){return x.index.get()}function Be(){return x.indexPrevious.get()}function Ge(){return x.slidesInView.get()}function Qe(){return x.slidesInView.get(!1)}function jt(){return S}function st(){return x}function ue(){return e}function ve(){return T}function je(){return A}const Fe={canScrollNext:Z,canScrollPrev:K,containerNode:ve,internalEngine:st,destroy:U,off:y,on:h,emit:g,plugins:jt,previousScrollSnap:Be,reInit:p,rootNode:ue,scrollNext:X,scrollPrev:Y,scrollProgress:fe,scrollSnapList:se,scrollTo:F,selectedScrollSnap:ye,slideNodes:je,slidesInView:Ge,slidesNotInView:Qe};return O(t,n),setTimeout(()=>c.emit("init"),0),Fe}Uo.globalOptions=void 0;function Tn(e={},t=[]){const n=m.useRef(e),r=m.useRef(t),[s,i]=m.useState(),[o,a]=m.useState(),c=m.useCallback(()=>{s&&s.reInit(n.current,r.current)},[s]);return m.useEffect(()=>{Nu(n.current,e)||(n.current=e,c())},[e,c]),m.useEffect(()=>{Jk(r.current,t)||(r.current=t,c())},[t,c]),m.useEffect(()=>{if(Yk()&&o){Uo.globalOptions=Tn.globalOptions;const l=Uo(o,n.current,r.current);return i(l),()=>l.destroy()}else i(void 0)},[o,i]),[a,s]}Tn.globalOptions=void 0;const kj=[{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"}],UO=({className:e,setState:t,state:n,data:r=kj})=>{const s=_e(g=>g.lang),i=So("(min-width: 768px)"),[o,a]=m.useState({left:0,width:0}),[c,l]=Tn({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(l){const p=l.rootNode(),v=l.containerNode();if(!p||!v)return;const x=v.scrollLeft,b=g.offsetLeft;a({left:b-x,width:g.offsetWidth})}}},[n,i,l]);m.useEffect(()=>{!i&&l||(l==null||l.scrollTo(n),h())},[l,n,h,i]),m.useEffect(()=>{if(l)return h(),l.on("scroll",h),l.on("resize",h),()=>{l.off("scroll",h),l.off("resize",h)}},[l,h]);const y=m.useCallback(g=>{t(g),!i&&l&&l.scrollTo(g)},[l,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:r==null?void 0:r.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:s==="ru"?g.title:s==="tm"?g.titleTm??g.titleEn:g.titleEn},g.id))}):f.jsx("div",{ref:c,className:"",role:"tablist",children:f.jsx("div",{className:"flex",children:r==null?void 0:r.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:s==="ru"?g.title:s==="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})]})},zO=({className:e,index:t,name:n,image:r,image_country:s,country:i,about:o,arr:a})=>{const c=_e(l=>l.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"}[c],":"]}),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"}[c],":"]}),f.jsxs("div",{className:"flex items-center flex-[0_0_50%] gap-2",children:[f.jsx("img",{src:s==null?void 0:s.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"}[c],":"]}),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:r==null?void 0:r.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:r==null?void 0:r.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:s==null?void 0:s.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})]})]})},jj=e=>{const{data:t,isPending:n,status:r}=En({queryKey:["photos",e],queryFn:()=>qk(e),select:({data:s})=>s.data});return{data:t,isPending:n,status:r}},Oj=e=>{const{data:t,isPending:n,isError:r}=En({queryKey:["videos",e],queryFn:()=>Zk(e),select:({data:s})=>s.data});return{data:t,isPending:n,isError:r}},WO=({className:e,setIsOpen:t,activeItem:n})=>{var h,y;const[r,s]=Tn({align:"center",loop:!1,dragFree:!1,slidesToScroll:1}),{data:i}=jj(1),{data:o}=Oj(1);WT();const[a,c]=m.useState(!1),[l,u]=m.useState(!1);m.useEffect(()=>{if(!s)return;const g=()=>{c(s.canScrollPrev()),u(s.canScrollNext())};return s.on("select",g),g(),()=>{s.off("select",g)}},[s]),m.useEffect(()=>{!s||!i||s.scrollTo(n.id,!0)},[s,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(zs.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(El,{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(mc,{onClick:()=>a&&(s==null?void 0:s.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(Gp,{onClick:()=>l&&(s==null?void 0:s.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",!l&&"opacity-20 pointer-events-none")})]}),f.jsx("div",{ref:r,className:"embla overflow-hidden",children:f.jsx("div",{className:"embla__container flex",children:d})})]})},HO=({className:e,name:t,achievements:n,biography:r,image:s,images:i})=>{var g;const[o,a]=m.useState(!1),[c,l]=m.useState(!1),u=_e(p=>p.lang),[d,h]=m.useState(100),y=({className:p})=>{const[v,x]=Tn({});return m.useEffect(()=>{if(!x)return;const b=()=>{a(x.canScrollPrev()),l(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(mc,{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)}))}),c&&f.jsx(Gp,{onClick:()=>o&&(x==null?void 0:x.scrollNext()),className:V("cursor-pointer",!c&&"opacity-20")})]})})]})};return f.jsxs(Gy,{children:[f.jsxs(Qy,{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:s==null?void 0:s.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(Eu,{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:s==null?void 0:s.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:r??""}})]})]}),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:s==null?void 0:s.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:r??""}})]})]}):f.jsxs("div",{className:"",children:[f.jsxs("button",{onClick:()=>h(100),className:"flex items-center gap-2 mb-4",children:[f.jsx(mc,{}),{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 Vv(e,t=[]){let n=[];function r(i,o){const a=m.createContext(o),c=n.length;n=[...n,o];const l=d=>{var x;const{scope:h,children:y,...g}=d,p=((x=h==null?void 0:h[e])==null?void 0:x[c])||a,v=m.useMemo(()=>g,Object.values(g));return f.jsx(p.Provider,{value:v,children:y})};l.displayName=i+"Provider";function u(d,h){var p;const y=((p=h==null?void 0:h[e])==null?void 0:p[c])||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[l,u]}const s=()=>{const i=n.map(o=>m.createContext(o));return function(a){const c=(a==null?void 0:a[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return s.scopeName=e,[r,Mj(s,...t)]}function Mj(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function We(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Oh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ma(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Oh(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s{const{children:i,...o}=r,a=m.Children.toArray(i),c=a.find(Fj);if(c){const l=c.props.children,u=a.map(d=>d===c?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:d);return f.jsx(t,{...o,ref:s,children:m.isValidElement(l)?m.cloneElement(l,void 0,u):null})}return f.jsx(t,{...o,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}function Ij(e){const t=m.forwardRef((n,r)=>{const{children:s,...i}=n;if(m.isValidElement(s)){const o=Bj(s),a=Vj(i,s.props);return s.type!==m.Fragment&&(a.ref=r?ma(r,o):o),m.cloneElement(s,a)}return m.Children.count(s)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Lj=Symbol("radix.slottable");function Fj(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Lj}function Vj(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{const c=i(...a);return s(...a),c}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function Bj(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $j=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_t=$j.reduce((e,t)=>{const n=Dj(`Primitive.${t}`),r=m.forwardRef((s,i)=>{const{asChild:o,...a}=s,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(c,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function el(e,t){e&&ul.flushSync(()=>e.dispatchEvent(t))}var Pr=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},Uj=ll[" useInsertionEffect ".trim().toString()]||Pr;function Bv({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,i,o]=zj({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:s;{const u=m.useRef(e!==void 0);m.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${r} 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,r])}const l=m.useCallback(u=>{var d;if(a){const h=Wj(u)?u(e):u;h!==e&&((d=o.current)==null||d.call(o,h))}else i(u)},[a,e,i,o]);return[c,l]}function zj({defaultProp:e,onChange:t}){const[n,r]=m.useState(e),s=m.useRef(n),i=m.useRef(t);return Uj(()=>{i.current=t},[t]),m.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function Wj(e){return typeof e=="function"}var Hj=m.createContext(void 0);function qj(e){const t=m.useContext(Hj);return e||t||"ltr"}function Zj(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var Fi=e=>{const{present:t,children:n}=e,r=Kj(t),s=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),i=un(r.ref,Gj(s));return typeof n=="function"||r.isPresent?m.cloneElement(s,{ref:i}):null};Fi.displayName="Presence";function Kj(e){const[t,n]=m.useState(),r=m.useRef(null),s=m.useRef(e),i=m.useRef("none"),o=e?"mounted":"unmounted",[a,c]=Zj(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const l=Ji(r.current);i.current=a==="mounted"?l:"none"},[a]),Pr(()=>{const l=r.current,u=s.current;if(u!==e){const h=i.current,y=Ji(l);e?c("MOUNT"):y==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&h!==y?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),Pr(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=y=>{const p=Ji(r.current).includes(CSS.escape(y.animationName));if(y.target===t&&p&&(c("ANIMATION_END"),!s.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=y=>{y.target===t&&(i.current=Ji(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Ji(e){return(e==null?void 0:e.animationName)||"none"}function Gj(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Qj=ll[" useId ".trim().toString()]||(()=>{}),Xj=0;function $v(e){const[t,n]=m.useState(Qj());return Pr(()=>{n(r=>r??String(Xj++))},[e]),e||(t?`radix-${t}`:"")}function Mh(e){const t=Yj(e),n=m.forwardRef((r,s)=>{const{children:i,...o}=r,a=m.Children.toArray(i),c=a.find(e1);if(c){const l=c.props.children,u=a.map(d=>d===c?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:d);return f.jsx(t,{...o,ref:s,children:m.isValidElement(l)?m.cloneElement(l,void 0,u):null})}return f.jsx(t,{...o,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}function Yj(e){const t=m.forwardRef((n,r)=>{const{children:s,...i}=n;if(m.isValidElement(s)){const o=n1(s),a=t1(i,s.props);return s.type!==m.Fragment&&(a.ref=r?ma(r,o):o),m.cloneElement(s,a)}return m.Children.count(s)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Jj=Symbol("radix.slottable");function e1(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Jj}function t1(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{const c=i(...a);return s(...a),c}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function n1(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Uv(e){const t=e+"CollectionProvider",[n,r]=Vv(t),[s,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:v,children:x}=p,b=de.useRef(null),w=de.useRef(new Map).current;return f.jsx(s,{scope:v,itemMap:w,collectionRef:b,children:x})};o.displayName=t;const a=e+"CollectionSlot",c=Mh(a),l=de.forwardRef((p,v)=>{const{scope:x,children:b}=p,w=i(a,x),_=un(v,w.collectionRef);return f.jsx(c,{ref:_,children:b})});l.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=Mh(u),y=de.forwardRef((p,v)=>{const{scope:x,children:b,...w}=p,_=de.useRef(null),S=un(v,_),T=i(u,x);return de.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 de.useCallback(()=>{const b=v.collectionRef.current;if(!b)return[];const w=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((T,A)=>w.indexOf(T.ref.current)-w.indexOf(A.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:o,Slot:l,ItemSlot:y},g,r]}function Yt(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function r1(e,t=globalThis==null?void 0:globalThis.document){const n=Yt(e);m.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var s1="DismissableLayer",tl="dismissableLayer.update",i1="dismissableLayer.pointerDownOutside",o1="dismissableLayer.focusOutside",Dh,zv=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Wv=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=e,l=m.useContext(zv),[u,d]=m.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=m.useState({}),g=un(t,A=>d(A)),p=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),x=p.indexOf(v),b=u?p.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,_=b>=x,S=l1(A=>{const R=A.target,N=[...l.branches].some(O=>O.contains(R));!_||N||(s==null||s(A),o==null||o(A),A.defaultPrevented||a==null||a())},h),T=u1(A=>{const R=A.target;[...l.branches].some(O=>O.contains(R))||(i==null||i(A),o==null||o(A),A.defaultPrevented||a==null||a())},h);return r1(A=>{b===l.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},h),m.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Dh=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Ih(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Dh)}},[u,h,n,l]),m.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Ih())},[u,l]),m.useEffect(()=>{const A=()=>y({});return document.addEventListener(tl,A),()=>document.removeEventListener(tl,A)},[]),f.jsx(_t.div,{...c,ref:g,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:We(e.onFocusCapture,T.onFocusCapture),onBlurCapture:We(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:We(e.onPointerDownCapture,S.onPointerDownCapture)})});Wv.displayName=s1;var a1="DismissableLayerBranch",c1=m.forwardRef((e,t)=>{const n=m.useContext(zv),r=m.useRef(null),s=un(t,r);return m.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),f.jsx(_t.div,{...e,ref:s})});c1.displayName=a1;function l1(e,t=globalThis==null?void 0:globalThis.document){const n=Yt(e),r=m.useRef(!1),s=m.useRef(()=>{});return m.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){Hv(i1,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=c,t.addEventListener("click",s.current,{once:!0})):c()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function u1(e,t=globalThis==null?void 0:globalThis.document){const n=Yt(e),r=m.useRef(!1);return m.useEffect(()=>{const s=i=>{i.target&&!r.current&&Hv(o1,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ih(){const e=new CustomEvent(tl);document.dispatchEvent(e)}function Hv(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?el(s,i):s.dispatchEvent(i)}function d1(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 Lh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function f1(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Lh(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s{const{children:i,...o}=r,a=m.Children.toArray(i),c=a.find(g1);if(c){const l=c.props.children,u=a.map(d=>d===c?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:d);return f.jsx(t,{...o,ref:s,children:m.isValidElement(l)?m.cloneElement(l,void 0,u):null})}return f.jsx(t,{...o,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}function p1(e){const t=m.forwardRef((n,r)=>{const{children:s,...i}=n;if(m.isValidElement(s)){const o=v1(s),a=y1(i,s.props);return s.type!==m.Fragment&&(a.ref=r?f1(r,o):o),m.cloneElement(s,a)}return m.Children.count(s)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var m1=Symbol("radix.slottable");function g1(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===m1}function y1(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{const c=i(...a);return s(...a),c}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function v1(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var x1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],b1=x1.reduce((e,t)=>{const n=h1(`Primitive.${t}`),r=m.forwardRef((s,i)=>{const{asChild:o,...a}=s,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(c,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),w1=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"}),S1="VisuallyHidden",qv=m.forwardRef((e,t)=>f.jsx(b1.span,{...e,ref:t,style:{...w1,...e.style}}));qv.displayName=S1;var _1=qv,jr="NavigationMenu",[Mu,Zv,C1]=Uv(jr),[nl,E1,T1]=Uv(jr),[Du,qO]=Vv(jr,[C1,T1]),[A1,kt]=Du(jr),[R1,P1]=Du(jr),Kv=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:s,defaultValue:i,delayDuration:o=200,skipDelayDuration:a=300,orientation:c="horizontal",dir:l,...u}=e,[d,h]=m.useState(null),y=un(t,N=>h(N)),g=qj(l),p=m.useRef(0),v=m.useRef(0),x=m.useRef(0),[b,w]=m.useState(!0),[_,S]=Bv({prop:r,onChange:N=>{const O=N!=="",I=a>0;O?(window.clearTimeout(x.current),I&&w(!1)):(window.clearTimeout(x.current),x.current=window.setTimeout(()=>w(!0),a)),s==null||s(N)},defaultProp:i??"",caller:jr}),T=m.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>S(""),150)},[S]),A=m.useCallback(N=>{window.clearTimeout(v.current),S(N)},[S]),R=m.useCallback(N=>{_===N?window.clearTimeout(v.current):p.current=window.setTimeout(()=>{window.clearTimeout(v.current),S(N)},o)},[_,S,o]);return m.useEffect(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(v.current),window.clearTimeout(x.current)},[]),f.jsx(Gv,{scope:n,isRootMenu:!0,value:_,dir:g,orientation:c,rootNavigationMenu:d,onTriggerEnter:N=>{window.clearTimeout(p.current),b?R(N):A(N)},onTriggerLeave:()=>{window.clearTimeout(p.current),T()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:T,onItemSelect:N=>{S(O=>O===N?"":N)},onItemDismiss:()=>S(""),children:f.jsx(_t.nav,{"aria-label":"Main","data-orientation":c,dir:g,...u,ref:y})})});Kv.displayName=jr;var rl="NavigationMenuSub",N1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:s,defaultValue:i,orientation:o="horizontal",...a}=e,c=kt(rl,n),[l,u]=Bv({prop:r,onChange:s,defaultProp:i??"",caller:rl});return f.jsx(Gv,{scope:n,isRootMenu:!1,value:l,dir:c.dir,orientation:o,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:d=>u(d),onItemSelect:d=>u(d),onItemDismiss:()=>u(""),children:f.jsx(_t.div,{"data-orientation":o,...a,ref:t})})});N1.displayName=rl;var Gv=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:s,orientation:i,children:o,value:a,onItemSelect:c,onItemDismiss:l,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(A1,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:a,previousValue:d1(a),baseId:$v(),dir:s,orientation:i,viewport:g,onViewportChange:p,indicatorTrack:b,onIndicatorTrackChange:w,onTriggerEnter:Yt(u),onTriggerLeave:Yt(d),onContentEnter:Yt(h),onContentLeave:Yt(y),onItemSelect:Yt(c),onItemDismiss:Yt(l),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(Mu.Provider,{scope:t,children:f.jsx(R1,{scope:t,items:v,children:o})})})},Qv="NavigationMenuList",Xv=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,s=kt(Qv,n),i=f.jsx(_t.ul,{"data-orientation":s.orientation,...r,ref:t});return f.jsx(_t.div,{style:{position:"relative"},ref:s.onIndicatorTrackChange,children:f.jsx(Mu.Slot,{scope:n,children:s.isRootMenu?f.jsx(ax,{asChild:!0,children:i}):i})})});Xv.displayName=Qv;var Yv="NavigationMenuItem",[k1,Jv]=Du(Yv),ex=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...s}=e,i=$v(),o=r||i||"LEGACY_REACT_AUTO_VALUE",a=m.useRef(null),c=m.useRef(null),l=m.useRef(null),u=m.useRef(()=>{}),d=m.useRef(!1),h=m.useCallback((g="start")=>{if(a.current){u.current();const p=il(a.current);p.length&&Fu(g==="start"?p:p.reverse())}},[]),y=m.useCallback(()=>{if(a.current){const g=il(a.current);g.length&&(u.current=F1(g))}},[]);return f.jsx(k1,{scope:n,value:o,triggerRef:c,contentRef:a,focusProxyRef:l,wasEscapeCloseRef:d,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:y,onContentFocusOutside:y,children:f.jsx(_t.li,{...s,ref:t})})});ex.displayName=Yv;var sl="NavigationMenuTrigger",tx=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...s}=e,i=kt(sl,e.__scopeNavigationMenu),o=Jv(sl,e.__scopeNavigationMenu),a=m.useRef(null),c=un(a,o.triggerRef,t),l=lx(i.baseId,o.value),u=ux(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(Mu.ItemSlot,{scope:n,value:o.value,children:f.jsx(cx,{asChild:!0,children:f.jsx(_t.button,{id:l,disabled:r,"data-disabled":r?"":void 0,"data-state":Vu(y),"aria-expanded":y,"aria-controls":u,...s,ref:c,onPointerEnter:We(e.onPointerEnter,()=>{h.current=!1,o.wasEscapeCloseRef.current=!1}),onPointerMove:We(e.onPointerMove,zo(()=>{r||h.current||o.wasEscapeCloseRef.current||d.current||(i.onTriggerEnter(o.value),d.current=!0)})),onPointerLeave:We(e.onPointerLeave,zo(()=>{r||(i.onTriggerLeave(),d.current=!1)})),onClick:We(e.onClick,()=>{i.onItemSelect(o.value),h.current=y}),onKeyDown:We(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(_1,{"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})]})]})});tx.displayName=sl;var j1="NavigationMenuLink",Fh="navigationMenu.linkSelect",nx=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:s,...i}=e;return f.jsx(cx,{asChild:!0,children:f.jsx(_t.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...i,ref:t,onClick:We(e.onClick,o=>{const a=o.target,c=new CustomEvent(Fh,{bubbles:!0,cancelable:!0});if(a.addEventListener(Fh,l=>s==null?void 0:s(l),{once:!0}),el(a,c),!c.defaultPrevented&&!o.metaKey){const l=new CustomEvent(ho,{bubbles:!0,cancelable:!0});el(a,l)}},{checkForDefaultPrevented:!1})})})});nx.displayName=j1;var Iu="NavigationMenuIndicator",rx=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=kt(Iu,e.__scopeNavigationMenu),i=!!s.value;return s.indicatorTrack?Yh.createPortal(f.jsx(Fi,{present:n||i,children:f.jsx(O1,{...r,ref:t})}),s.indicatorTrack):null});rx.displayName=Iu;var O1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,s=kt(Iu,n),i=Zv(n),[o,a]=m.useState(null),[c,l]=m.useState(null),u=s.orientation==="horizontal",d=!!s.value;m.useEffect(()=>{var p;const g=(p=i().find(v=>v.value===s.value))==null?void 0:p.ref.current;g&&a(g)},[i,s.value]);const h=()=>{o&&l({size:u?o.offsetWidth:o.offsetHeight,offset:u?o.offsetLeft:o.offsetTop})};return ol(o,h),ol(s.indicatorTrack,h),c?f.jsx(_t.div,{"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":s.orientation,...r,ref:t,style:{position:"absolute",...u?{left:0,width:c.size+"px",transform:`translateX(${c.offset}px)`}:{top:0,height:c.size+"px",transform:`translateY(${c.offset}px)`},...r.style}}):null}),ps="NavigationMenuContent",sx=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=kt(ps,e.__scopeNavigationMenu),i=Jv(ps,e.__scopeNavigationMenu),o=un(i.contentRef,t),a=i.value===s.value,c={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return s.viewport?f.jsx(M1,{forceMount:n,...c,ref:o}):f.jsx(Fi,{present:n||a,children:f.jsx(ix,{"data-state":Vu(a),...c,ref:o,onPointerEnter:We(e.onPointerEnter,s.onContentEnter),onPointerLeave:We(e.onPointerLeave,zo(s.onContentLeave)),style:{pointerEvents:!a&&s.isRootMenu?"none":void 0,...c.style}})})});sx.displayName=ps;var M1=m.forwardRef((e,t)=>{const n=kt(ps,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:s}=n;return Pr(()=>{r(e.value,{ref:t,...e})},[e,t,r]),Pr(()=>()=>s(e.value),[e.value,s]),null}),ho="navigationMenu.rootContentDismiss",ix=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:s,focusProxyRef:i,wasEscapeCloseRef:o,onRootContentClose:a,onContentFocusOutside:c,...l}=e,u=kt(ps,n),d=m.useRef(null),h=un(d,t),y=lx(u.baseId,r),g=ux(u.baseId,r),p=Zv(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=s.current)==null||S.focus())};return w.addEventListener(ho,_),()=>w.removeEventListener(ho,_)}},[u.isRootMenu,e.value,s,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),A=r===u.value,R=T===_.indexOf(r);if(!A&&!R)return v.current;const N=(()=>{if(S!==T){if(A&&T!==-1)return S>T?"from-end":"from-start";if(R&&S!==-1)return S>T?"to-start":"to-end"}return null})();return v.current=N,N},[u.previousValue,u.value,u.dir,p,r]);return f.jsx(ax,{asChild:!0,children:f.jsx(Wv,{id:g,"aria-labelledby":y,"data-motion":b,"data-orientation":u.orientation,...l,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{var _;const w=new Event(ho,{bubbles:!0,cancelable:!0});(_=d.current)==null||_.dispatchEvent(w)},onFocusOutside:We(e.onFocusOutside,w=>{var S;c();const _=w.target;(S=u.rootNavigationMenu)!=null&&S.contains(_)&&w.preventDefault()}),onPointerDownOutside:We(e.onPointerDownOutside,w=>{var A;const _=w.target,S=p().some(R=>{var N;return(N=R.ref.current)==null?void 0:N.contains(_)}),T=u.isRootMenu&&((A=u.viewport)==null?void 0:A.contains(_));(S||T||!u.isRootMenu)&&w.preventDefault()}),onKeyDown:We(e.onKeyDown,w=>{var T;const _=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!_){const A=il(w.currentTarget),R=document.activeElement,N=A.findIndex(M=>M===R),I=w.shiftKey?A.slice(0,N).reverse():A.slice(N+1,A.length);Fu(I)?w.preventDefault():(T=i.current)==null||T.focus()}}),onEscapeKeyDown:We(e.onEscapeKeyDown,w=>{o.current=!0})})})}),Lu="NavigationMenuViewport",ox=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=!!kt(Lu,e.__scopeNavigationMenu).value;return f.jsx(Fi,{present:n||i,children:f.jsx(D1,{...r,ref:t})})});ox.displayName=Lu;var D1=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...s}=e,i=kt(Lu,n),o=un(t,i.onViewportChange),a=P1(ps,e.__scopeNavigationMenu),[c,l]=m.useState(null),[u,d]=m.useState(null),h=c?(c==null?void 0:c.width)+"px":void 0,y=c?(c==null?void 0:c.height)+"px":void 0,g=!!i.value,p=g?i.value:i.previousValue;return ol(u,()=>{u&&l({width:u.offsetWidth,height:u.offsetHeight})}),f.jsx(_t.div,{"data-state":Vu(g),"data-orientation":i.orientation,...s,ref:o,style:{pointerEvents:!g&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":y,...s.style},onPointerEnter:We(e.onPointerEnter,i.onContentEnter),onPointerLeave:We(e.onPointerLeave,zo(i.onContentLeave)),children:Array.from(a.items).map(([x,{ref:b,forceMount:w,..._}])=>{const S=p===x;return f.jsx(Fi,{present:w||S,children:f.jsx(ix,{..._,ref:ma(b,T=>{S&&T&&d(T)})})},x)})})}),I1="FocusGroup",ax=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,s=kt(I1,n);return f.jsx(nl.Provider,{scope:n,children:f.jsx(nl.Slot,{scope:n,children:f.jsx(_t.div,{dir:s.dir,...r,ref:t})})})}),Vh=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],L1="FocusGroupItem",cx=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,s=E1(n),i=kt(L1,n);return f.jsx(nl.ItemSlot,{scope:n,children:f.jsx(_t.button,{...r,ref:t,onKeyDown:We(e.onKeyDown,o=>{if(["Home","End",...Vh].includes(o.key)){let c=s().map(d=>d.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(o.key)&&c.reverse(),Vh.includes(o.key)){const d=c.indexOf(o.currentTarget);c=c.slice(d+1)}setTimeout(()=>Fu(c)),o.preventDefault()}})})})});function il(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Fu(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function F1(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 ol(e,t){const n=Yt(t);Pr(()=>{let r=0;if(e){const s=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return s.observe(e),()=>{window.cancelAnimationFrame(r),s.unobserve(e)}}},[e,n])}function Vu(e){return e?"open":"closed"}function lx(e,t){return`${e}-trigger-${t}`}function ux(e,t){return`${e}-content-${t}`}function zo(e){return t=>t.pointerType==="mouse"?e(t):void 0}var dx=Kv,fx=Xv,V1=ex,hx=tx,B1=nx,px=rx,mx=sx,gx=ox;const yx=m.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(dx,{ref:r,className:V("relative z-10 flex w-full flex-1 items-center justify-center",e),...n,children:[t,f.jsx(wx,{})]}));yx.displayName=dx.displayName;const vx=m.forwardRef(({className:e,...t},n)=>f.jsx(fx,{ref:n,className:V("group flex flex-1 list-none w-full items-center justify-center space-x-1",e),...t}));vx.displayName=fx.displayName;const $1=V1,U1=Go("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"),xx=m.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(hx,{ref:r,className:V(U1(),"group",e),...n,children:[t,f.jsx("div",{className:"h-full w-4"}),f.jsx(Qw,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));xx.displayName=hx.displayName;const bx=m.forwardRef(({className:e,...t},n)=>f.jsx(mx,{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}));bx.displayName=mx.displayName;const z1=B1,wx=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(gx,{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})}));wx.displayName=gx.displayName;const W1=m.forwardRef(({className:e,...t},n)=>f.jsx(px,{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"})}));W1.displayName=px.displayName;const H1=({className:e,text:t,hoverItems:n,setIsOpen:r})=>{const s=Bo(i=>i.setSheet);return f.jsx(yx,{children:f.jsx(vx,{children:f.jsxs($1,{className:"w-full",children:[f.jsx(xx,{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(bx,{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(z1,{onClick:()=>{r(!1),s(!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(Se,{target:i.blank?"_blank":"",to:i.link??"",children:i.text})},o))})]})})})},yt=e=>e===Ze.RU?0:e===Ze.TM?2:1,al=[{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"}]}],Sx=()=>{const e=_e(r=>r.lang),{data:t,isPending:n}=En({queryKey:["industries",e],queryFn:()=>zk(e),select:({data:r})=>r.data});return{data:t,isPending:n}},ZO=({className:e})=>{const t=_e(s=>s.lang),{data:n,isPending:r}=Sx();return f.jsx("section",{className:V("relative w-full bg-[#FDEDEE] -z-10 py-10",e),children:f.jsx(Ke,{children:r?f.jsx(Jn,{}):f.jsxs(f.Fragment,{children:[f.jsx("h3",{className:"h2 mb-4",children:al[yt(t)].title}),f.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:n==null?void 0:n.map((s,i)=>f.jsx(lm,{...s},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:al[yt(t)].bottom_text})]})]})})})},_x=[{title:"Время выставки",data:[{name:"Монтаж выставки",date:"12 Мая – 10 Июня 2025 года"},{name:"Работа",date:"11–13 Июня 2025 года"},{name:"Демонтаж",date:"13–14 Июня 2025 года"}]},{title:"Exhibition time",data:[{name:"Exhibition assembly",date:"12 May — 10 June 2025"},{name:"Exhibition days",date:"11–13 June 2025"},{name:"Exhibition dismantling",date:"13–14 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"}]}],Cx=()=>{const e=_e(r=>r.lang),{data:t,isPending:n}=En({queryKey:["exhibiton-time",e],queryFn:()=>Wk(e),select:({data:r})=>r.data});return{data:t,isPending:n}},KO=({className:e})=>{const t=_e(s=>s.lang),{data:n,isPending:r}=Cx();return f.jsx("section",{className:V("bg-surface_container py-10 md:py-20",e),children:f.jsx(Ke,{children:r?f.jsx(Jn,{}):f.jsxs(f.Fragment,{children:[f.jsx("h2",{className:"h2 mb-6",children:_x[yt(t)].title}),f.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:n==null?void 0:n.map((s,i)=>m.createElement(um,{bottomClassName:"!bg-white rounded-b-[2px]",...s,key:i,className:"w-full"}))})]})})})},Bh=[{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."]}],GO=({className:e})=>{const t=_e(n=>n.lang);return f.jsx("section",{className:V("gap-6 relative overflow-hidden",e),children:f.jsxs(Ke,{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:Bh[yt(t)].title}),f.jsx("div",{className:"text-lg flex flex-col gap-6 text-on_surface_v normal mb-10",children:Bh[yt(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"})})]})})},eo=[{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"}],QO=({className:e})=>{const t=_e(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(Ke,{children:[f.jsx("h3",{className:"h2 text-center !text-on_primary mb-6",children:eo[yt(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:eo[yt(t)].p}),f.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[f.jsx(Se,{to:"/stend-form",className:"w-full",children:f.jsx(tt,{className:"bg-reverse_primary w-full text-primary hover:bg-reverse_primary/90",children:eo[yt(t)].button1})}),f.jsx(Se,{to:"/B2B-B2GS",className:"w-full",children:f.jsx(tt,{className:"bg-reverse_primary w-full hover:bg-reverse_primary/90 text-primary",children:eo[yt(t)].button2})})]})]})]})},Ex=e=>{const t=_e(s=>s.lang),{data:n,isPending:r}=En({queryKey:["static-words",t,e],queryFn:()=>Bk(t,e),select:({data:s})=>s.data});return{data:n,isPending:r}},XO=()=>{var h,y,g,p,v,x,b,w;const e=_e(_=>_.lang),{t}=Nr("about"),{data:n,isPending:r}=Ex("2"),s=(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,c=(v=n==null?void 0:n.find(_=>_.key==="about_5"))==null?void 0:v.list,l=(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 r?f.jsx(Jn,{}):f.jsxs(Ke,{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:s}),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:c==null?void 0:c.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:l}),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(Se,{className:"w-fit mx-auto",to:"/become-sponsor",children:f.jsx(tt,{children:t("main.button")})})]})},q1={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function Z1(e,t){const n=e.scrollSnapList();return typeof t=="number"?n.map(()=>t):t(n,e)}function K1(e,t){const n=e.rootNode();return t&&t(n)||n}function ga(e={}){let t,n,r,s,i=null,o=0,a=!1,c=!1,l=!1,u=!1;function d(F,X){n=F;const{mergeOptions:Y,optionsAtMedia:Z}=X,K=Y(q1,ga.globalOptions),se=Y(K,e);if(t=Z(se),n.scrollSnapList().length<=1)return;u=t.jump,r=!1,s=Z1(n,t.delay);const{eventStore:fe,ownerDocument:ye}=n.internalEngine(),Be=!!n.internalEngine().options.watchDrag,Ge=K1(n,t.rootNode);fe.add(ye,"visibilitychange",x),Be&&n.on("pointerDown",w),Be&&!t.stopOnInteraction&&n.on("pointerUp",_),t.stopOnMouseEnter&&fe.add(Ge,"mouseenter",S),t.stopOnMouseEnter&&!t.stopOnInteraction&&fe.add(Ge,"mouseleave",T),t.stopOnFocusIn&&n.on("slideFocusStart",v),t.stopOnFocusIn&&!t.stopOnInteraction&&fe.add(n.containerNode(),"focusout",p),t.playOnInit&&p()}function h(){n.off("pointerDown",w).off("pointerUp",_).off("slideFocusStart",v),v(),r=!0,a=!1}function y(){const{ownerWindow:F}=n.internalEngine();F.clearTimeout(o),o=F.setTimeout(I,s[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(!r){if(b()){l=!0;return}a||n.emit("autoplay:play"),y(),a=!0}}function v(){r||(a&&n.emit("autoplay:stop"),g(),a=!1)}function x(){if(b())return l=a,v();l&&p()}function b(){const{ownerDocument:F}=n.internalEngine();return F.visibilityState==="hidden"}function w(){c||v()}function _(){c||p()}function S(){c=!0,v()}function T(){c=!1,p()}function A(F){typeof F<"u"&&(u=F),p()}function R(){a&&v()}function N(){a&&p()}function O(){return a}function I(){const{index:F}=n.internalEngine(),X=F.clone().add(1).get(),Y=n.scrollSnapList().length-1,Z=t.stopOnLastSnap&&X===Y;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=s[n.selectedScrollSnap()],X=new Date().getTime()-i;return F-X}return{name:"autoplay",options:e,init:d,destroy:h,play:A,stop:R,reset:N,isPlaying:O,timeUntilNext:M}}ga.globalOptions=void 0;const YO=()=>{const{t:e}=Nr("home"),[t]=Tn({loop:!0},[ga({delay:5e3,stopOnInteraction:!1})]),n=So("(min-width: 1024px)"),r=So("(min-width: 768px)");function s(){return n?e("banners.lg",{returnObjects:!0}):r?e("banners.md",{returnObjects:!0}):e("banners.sm",{returnObjects:!0})}const i=s();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(Se,{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(Se,{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))})})})})},G1=()=>{const e=_e(r=>r.lang),{data:t,isPending:n}=En({queryKey:["home-contacts",e],queryFn:()=>Uk(e),select:({data:r})=>r.data});return{data:t,isPending:n}},JO=({className:e})=>{const t=_e(o=>o.lang),{data:n,isPending:r}=Cx(),{data:s}=G1(),i=yt(t);return r?f.jsx(Jn,{}):f.jsx("section",{className:V("bg-surface_high my-20 pt-10 pb-20",e),children:f.jsxs(Ke,{children:[f.jsx("h2",{className:"h2 mb-6",children:_x[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(um,{...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:s==null?void 0:s.map((o,a)=>m.createElement(pS,{...o,key:a,className:"w-full"}))}),f.jsx(Se,{to:"/stend-form",className:"md:w-fit w-full mx-auto",children:f.jsx(tt,{className:"w-full",children:{ru:"Забронируйте стенд",en:"Book a stand",tm:"Stend bronlaň"}[t]})})]})]})})},$h=[{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"}],Q1=()=>{const e=_e(r=>r.lang),{data:t,isPending:n}=En({queryKey:["stats",e],queryFn:()=>$k(e),select:({data:r})=>r.data});return{data:t,isPending:n}},eM=()=>{var l,u;const[e]=Tn(),t=_e(d=>d.lang),{t:n}=Nr("home"),{data:r,isPending:s}=Ex("1"),{data:i}=Q1(),o=(l=r==null?void 0:r.find(d=>d.key==="index_1"))==null?void 0:l.text,a=(u=r==null?void 0:r.find(d=>d.key==="index_2"))==null?void 0:u.text,c=yt(t);return s?f.jsx(Jn,{}):f.jsx("section",{className:"py-20",children:f.jsxs(Ke,{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(Se,{to:n("reportLink"),target:"_blank",className:"w-fit",children:f.jsx(tt,{variant:"outline",children:$h[c].button})}),f.jsx(Se,{target:"_blank",to:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Catalogue/catalogue.pdf",children:f.jsx(tt,{variant:"outline",className:"px-16",children:$h[c].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(fS,{...d,className:"embla__slide flex-[0_0_288px]"},d.text))})})]})})},tM=()=>{const e=_e(r=>r.lang),{data:t,isPending:n}=Sx();return n?f.jsx(Jn,{}):f.jsx("section",{className:"",children:f.jsxs(Ke,{children:[f.jsx("h2",{className:"h2 mb-10 text-center",children:al[yt(e)].title}),f.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:t==null?void 0:t.map((r,s)=>f.jsx(lm,{...r},s))})]})})},X1=[{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"}]}],nM=()=>{const[e,t]=Tn({align:"start"}),[n,r]=m.useState(0),s=_e(o=>o.lang),i=m.useCallback(o=>{t&&t.scrollTo(o)},[t]);return m.useEffect(()=>{if(!t)return;const o=()=>{r(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(Ke,{children:f.jsxs("div",{ref:e,className:"embla ",children:[f.jsx("div",{className:"mb-2 flex gap-6 embla__container",children:X1[yt(s)].data.map(o=>m.createElement(hS,{...o,key:o.title,className:"embla__slide flex-[0_0_300px] sm:flex-[0_0_600px]"}))}),f.jsx(wA,{className:"xl:hidden",scrollTo:i,active:n,slides:2})]})})})},Y1=()=>{const e=_e(r=>r.lang),{data:t,isPending:n}=En({queryKey:["sponsors",e],queryFn:()=>Kk(e),select:({data:r})=>r.data});return{data:t,isPending:n}},rM=({className:e})=>{const[t]=Tn({loop:!0,align:"start",skipSnaps:!0,duration:75},[ga({stopOnInteraction:!1,delay:3e3})]),{data:n,isPending:r}=Y1(),{t:s}=Nr("home",{keyPrefix:"sponsors"});return r?f.jsx(Jn,{}):f.jsx("section",{className:V("md:py-20",e),children:f.jsxs(Ke,{className:"flex flex-col gap-6",children:[f.jsx("h2",{className:"h2",children:s("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,c;return i.link?f.jsxs(Se,{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:(c=i==null?void 0:i.image)==null?void 0:c.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)})})})]})})},J1=e=>{const{data:t,isPending:n}=En({queryKey:["news",e],queryFn:()=>Hk(e),select:({data:r})=>r.data});return{data:t,isPending:n}},eO=({className:e,featured_images:t,title:n,id:r,published_at:s})=>{var i;return f.jsx(Se,{to:`/news/${r}`,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:s.slice(0,10).split("-").reverse().join(".")}),f.jsx(qw,{})]}),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"})]})})},sM=()=>{const e=_e(r=>r.lang),{data:t,isPending:n}=J1(e);return n?f.jsx(Jn,{}):f.jsx("section",{className:V("md:mb-[120px] mb-20"),children:f.jsxs(Ke,{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(r=>m.createElement(eO,{...r,key:r.title}))})]})})},iM=({className:e})=>{const{t}=Nr("home"),{items:n}=t("buttons",{returnObjects:!0});return f.jsx("section",{className:V("",e),children:f.jsx(Ke,{children:f.jsx("div",{className:"grid lg:grid-cols-6 sm:grid-cols-2 grid-cols-1 gap-6",children:n.map((r,s)=>r.dropdown?f.jsx($o,{dropDownContent:r.items,triggerClassName:"w-full",className:"!w-full",children:f.jsxs(tt,{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:[r.text,f.jsx(Dv,{w:"40",h:"40",color:"white"})]})},s):f.jsx(Se,{to:r.link??"",target:r.blank?"_blank":"",children:f.jsx(tt,{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:r.text})},s))})})})},tO=()=>{const{t:e}=Nr("nav"),t=_e(i=>i.lang),n=Bo(i=>i.sheet),r=Bo(i=>i.setSheet),s=e("navigation",{returnObjects:!0});return f.jsxs(z0,{onOpenChange:()=>r(!n),open:n,children:[f.jsx(W0,{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(rm,{className:"overflow-y-auto z-[100]",children:[f.jsx(H0,{}),f.jsxs(sm,{className:"mt-16 flex flex-col gap-2",children:[f.jsx(Se,{to:t===Ze.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(tt,{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(Se,{to:"/become-sponsor",children:f.jsx(tt,{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:s.map(i=>i.drop?f.jsx($o,{className:"w-full",triggerClassName:"justify-between py-2",color:"black",dropDownContent:i.dropDownContent,title:i.title},i.title):f.jsx(Se,{target:i.blank??"",className:"py-2",to:i.link||"",onClick:()=>r(!1),children:i.title},i.title))})]})]})},oM=()=>{const e=_e(r=>r.lang),{t}=Nr("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(Ke,{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(s0,{}),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(r=>r.drop?f.jsx($o,{color:"black",dropDownContent:r.dropDownContent,title:r.title},r.title):f.jsx(Se,{target:r.blank?"_blank":"",className:"py-2",to:r.link||"",children:r.title},r.title))})]}),f.jsxs("div",{className:"flex items-center gap-6",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(a0,{size:16,strokeWidth:"3px"}),f.jsx("h4",{className:"text-sm",children:"+99371871812"})]}),f.jsx(uh,{className:"!text-on_surface"})]})]})}),f.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:f.jsxs(Ke,{className:"flex items-center justify-between ",children:[f.jsxs("div",{className:"flex items-center gap-8",children:[f.jsx(Se,{to:"/",children:f.jsx(cm,{className:""})}),f.jsx("nav",{className:"lg:flex hidden items-center gap-3 xl:gap-6 text-white",children:n.slice(3,6).map(r=>r.drop?f.jsx($o,{dropDownContent:r.dropDownContent,title:r.title,color:"white"},r.title):f.jsx(Se,{className:"py-2",to:r.link||"",children:r.title},r.title))})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(uh,{className:"lg:hidden",light:!0}),f.jsx(tO,{})]}),f.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[f.jsx(Se,{to:e===Ze.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(tt,{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(Se,{to:"/become-sponsor",children:f.jsx(tt,{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]})})]})]})})]})})},aM=()=>{const e=_e(t=>t.lang);return f.jsxs("footer",{children:[f.jsx(Mv,{}),f.jsx("div",{className:"py-5 bg-primary",children:f.jsxs(Ke,{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(cm,{}),f.jsxs("div",{className:"flex items-center gap-6",children:[f.jsx(Se,{target:"_blank",to:"https://www.facebook.com/profile.php?id=61567254728028",children:f.jsx(e0,{className:"text-white"})}),f.jsx(Se,{target:"_blank",to:"https://www.instagram.com/turkmenexpo_tm?igsh=bnhkOWpmNWcwcHBq",children:f.jsx("img",{src:"/inst.svg"})}),f.jsx(Se,{target:"_blank",to:"https://www.linkedin.com/company/turkmen-expo",children:f.jsx("img",{src:"/in.svg"})}),f.jsx(Se,{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]})]})})]})},Ke=({className:e,children:t})=>f.jsx("div",{className:V("w-full mx-auto max-w-[1240px] px-4",e),children:t}),cM=({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{Oj as $,uy as A,mO as B,tt as C,lA as D,pO as E,aM as F,dO as G,oM as H,gO as I,eP as J,Le as K,cO as L,cM as M,hO as N,XO as O,lt as P,ZO as Q,KO as R,ms as S,GO as T,QO as U,LO as V,Nr as W,Qp as X,FO as Y,Ke as Z,jj as _,YO as a,WO as a0,UO as a1,lO as a2,Jn as a3,En as a4,VO as a5,J1 as a6,eO as a7,BO as a8,zO as a9,IO as aa,Tn as ab,ga as ac,$O as ad,HO as ae,mc as af,Gp as ag,sO as ah,iO as ai,iM as b,V as c,eM as d,rM as e,nM as f,tM as g,JO as h,uO as i,f as j,sM as k,ml as l,zt as m,to as n,vt as o,fp as p,_R as q,gs as r,na as s,zs as t,_e as u,yt as v,fA as w,cy as x,ly as y,ph as z};