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

160 lines
473 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

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

var Ku=e=>{throw TypeError(e)};var va=(e,t,n)=>t.has(e)||Ku("Cannot "+n);var T=(e,t,n)=>(va(e,t,"read from private field"),n?n.call(e):t.get(e)),ne=(e,t,n)=>t.has(e)?Ku("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),K=(e,t,n,s)=>(va(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n),pe=(e,t,n)=>(va(e,t,"access private method"),n);var Bi=(e,t,n,s)=>({set _(r){K(e,t,r,n)},get _(){return T(e,t,s)}});import{r as _x,a as g,R as ul,b as dl,c as Kh,L as Se,d as $i,e as de}from"./react-vendor-CE_Ks92h.js";var xa={exports:{}},Ar={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Gu;function Cx(){if(Gu)return Ar;Gu=1;var e=_x(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,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)s.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:r.current}}return Ar.Fragment=n,Ar.jsx=o,Ar.jsxs=o,Ar}var Qu;function Ex(){return Qu||(Qu=1,xa.exports=Cx()),xa.exports}var f=Ex(),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(){}},xs=typeof window>"u"||"Deno"in globalThis;function At(){}function Tx(e,t){return typeof e=="function"?e(t):e}function Ja(e){return typeof e=="number"&&e>=0&&e!==1/0}function Gh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Us(e,t){return typeof e=="function"?e(t):e}function Dt(e,t){return typeof e=="function"?e(t):e}function Xu(e,t){const{type:n="all",exact:s,fetchStatus:r,predicate:i,queryKey:o,stale:a}=e;if(o){if(s){if(t.queryHash!==fl(o,t.options))return!1}else if(!Qr(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||r&&r!==t.state.fetchStatus||i&&!i(t))}function Yu(e,t){const{exact:n,status:s,predicate:r,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Gr(t.options.mutationKey)!==Gr(i))return!1}else if(!Qr(t.options.mutationKey,i))return!1}return!(s&&t.state.status!==s||r&&!r(t))}function fl(e,t){return((t==null?void 0:t.queryKeyHashFn)||Gr)(e)}function Gr(e){return JSON.stringify(e,(t,n)=>tc(n)?Object.keys(n).sort().reduce((s,r)=>(s[r]=n[r],s),{}):n)}function Qr(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Qr(e[n],t[n])):!1}function Qh(e,t){if(e===t)return e;const n=Ju(e)&&Ju(t);if(n||tc(e)&&tc(t)){const s=n?e:Object.keys(e),r=s.length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{};let c=0;for(let l=0;l<o;l++){const u=n?l:i[l];(!n&&s.includes(u)||n)&&e[u]===void 0&&t[u]===void 0?(a[u]=void 0,c++):(a[u]=Qh(e[u],t[u]),a[u]===e[u]&&e[u]!==void 0&&c++)}return r===o&&c===r?e:a}return t}function ec(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ju(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function tc(e){if(!ed(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!ed(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ed(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ax(e){return new Promise(t=>{setTimeout(t,e)})}function nc(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Qh(e,t):t}function Rx(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function Px(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var hl=Symbol();function Xh(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===hl?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var as,On,Zs,Vh,Nx=(Vh=class extends Ti{constructor(){super();ne(this,as);ne(this,On);ne(this,Zs);K(this,Zs,t=>{if(!xs&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,On)||this.setEventListener(T(this,Zs))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,On))==null||t.call(this),K(this,On,void 0))}setEventListener(t){var n;K(this,Zs,t),(n=T(this,On))==null||n.call(this),K(this,On,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){T(this,as)!==t&&(K(this,as,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof T(this,as)=="boolean"?T(this,as):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},as=new WeakMap,On=new WeakMap,Zs=new WeakMap,Vh),pl=new Nx,Ks,Mn,Gs,Bh,jx=(Bh=class extends Ti{constructor(){super();ne(this,Ks,!0);ne(this,Mn);ne(this,Gs);K(this,Gs,t=>{if(!xs&&window.addEventListener){const n=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",s)}}})}onSubscribe(){T(this,Mn)||this.setEventListener(T(this,Gs))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Mn))==null||t.call(this),K(this,Mn,void 0))}setEventListener(t){var n;K(this,Gs,t),(n=T(this,Mn))==null||n.call(this),K(this,Mn,t(this.setOnline.bind(this)))}setOnline(t){T(this,Ks)!==t&&(K(this,Ks,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return T(this,Ks)}},Ks=new WeakMap,Mn=new WeakMap,Gs=new WeakMap,Bh),po=new jx;function sc(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});n.status="pending",n.catch(()=>{});function s(r){Object.assign(n,r),delete n.resolve,delete n.reject}return n.resolve=r=>{s({status:"fulfilled",value:r}),e(r)},n.reject=r=>{s({status:"rejected",reason:r}),t(r)},n}function kx(e){return Math.min(1e3*2**e,3e4)}function Yh(e){return(e??"online")==="online"?po.isOnline():!0}var Jh=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ba(e){return e instanceof Jh}function ep(e){let t=!1,n=0,s=!1,r;const i=sc(),o=p=>{var v;s||(h(new Jh(p)),(v=e.abort)==null||v.call(e))},a=()=>{t=!0},c=()=>{t=!1},l=()=>pl.isFocused()&&(e.networkMode==="always"||po.isOnline())&&e.canRun(),u=()=>Yh(e.networkMode)&&e.canRun(),d=p=>{var v;s||(s=!0,(v=e.onSuccess)==null||v.call(e,p),r==null||r(),i.resolve(p))},h=p=>{var v;s||(s=!0,(v=e.onError)==null||v.call(e,p),r==null||r(),i.reject(p))},y=()=>new Promise(p=>{var v;r=x=>{(s||l())&&p(x)},(v=e.onPause)==null||v.call(e)}).then(()=>{var p;r=void 0,s||(p=e.onContinue)==null||p.call(e)}),m=()=>{if(s)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 A;if(s)return;const b=e.retry??(xs?0:3),w=e.retryDelay??kx,_=typeof w=="function"?w(n,x):w,S=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,x);if(t||!S){h(x);return}n++,(A=e.onFail)==null||A.call(e,n,x),Ax(_).then(()=>l()?void 0:y()).then(()=>{t?h(x):m()})})};return{promise:i,cancel:o,continue:()=>(r==null||r(),i),cancelRetry:a,continueRetry:c,canStart:u,start:()=>(u()?m():y().then(m),i)}}function Ox(){let e=[],t=0,n=a=>{a()},s=a=>{a()},r=a=>setTimeout(a,0);const i=a=>{t?e.push(a):r(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&r(()=>{s(()=>{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=>{s=a},setScheduler:a=>{r=a}}}var He=Ox(),cs,$h,tp=($h=class{constructor(){ne(this,cs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ja(this.gcTime)&&K(this,cs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(xs?1/0:5*60*1e3))}clearGcTimeout(){T(this,cs)&&(clearTimeout(T(this,cs)),K(this,cs,void 0))}},cs=new WeakMap,$h),Qs,Xs,Tt,ls,Ge,Si,us,Ot,mn,Uh,Mx=(Uh=class extends tp{constructor(t){super();ne(this,Ot);ne(this,Qs);ne(this,Xs);ne(this,Tt);ne(this,ls);ne(this,Ge);ne(this,Si);ne(this,us);K(this,us,!1),K(this,Si,t.defaultOptions),this.setOptions(t.options),this.observers=[],K(this,ls,t.client),K(this,Tt,T(this,ls).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,K(this,Qs,Dx(this.options)),this.state=t.state??T(this,Qs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,Ge))==null?void 0:t.promise}setOptions(t){this.options={...T(this,Si),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,Tt).remove(this)}setData(t,n){const s=nc(this.state.data,t,this.options);return pe(this,Ot,mn).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(t,n){pe(this,Ot,mn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s,r;const n=(s=T(this,Ge))==null?void 0:s.promise;return(r=T(this,Ge))==null||r.cancel(t),n?n.then(At).catch(At):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,Qs))}isActive(){return this.observers.some(t=>Dt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===hl||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Gh(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Ge))==null||n.continue()}onOnline(){var n;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Ge))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,Tt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(T(this,Ge)&&(T(this,us)?T(this,Ge).cancel({revert:!0}):T(this,Ge).cancelRetry()),this.scheduleGc()),T(this,Tt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pe(this,Ot,mn).call(this,{type:"invalidate"})}fetch(t,n){var c,l,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,Ge))return T(this,Ge).continueRetry(),T(this,Ge).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const s=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(K(this,us,!0),s.signal)})},i=()=>{const d=Xh(this.options,n),h={client:T(this,ls),queryKey:this.queryKey,meta:this.meta};return r(h),K(this,us,!1),this.options.persister?this.options.persister(d,h,this):d(h)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,ls),state:this.state,fetchFn:i};r(o),(c=this.options.behavior)==null||c.onFetch(o,this),K(this,Xs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=o.fetchOptions)==null?void 0:l.meta))&&pe(this,Ot,mn).call(this,{type:"fetch",meta:(u=o.fetchOptions)==null?void 0:u.meta});const a=d=>{var h,y,m,p;ba(d)&&d.silent||pe(this,Ot,mn).call(this,{type:"error",error:d}),ba(d)||((y=(h=T(this,Tt).config).onError)==null||y.call(h,d,this),(p=(m=T(this,Tt).config).onSettled)==null||p.call(m,this.state.data,d,this)),this.scheduleGc()};return K(this,Ge,ep({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:s.abort.bind(s),onSuccess:d=>{var h,y,m,p;if(d===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(v){a(v);return}(y=(h=T(this,Tt).config).onSuccess)==null||y.call(h,d,this),(p=(m=T(this,Tt).config).onSettled)==null||p.call(m,d,this.state.error,this),this.scheduleGc()},onError:a,onFail:(d,h)=>{pe(this,Ot,mn).call(this,{type:"failed",failureCount:d,error:h})},onPause:()=>{pe(this,Ot,mn).call(this,{type:"pause"})},onContinue:()=>{pe(this,Ot,mn).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),T(this,Ge).start()}},Qs=new WeakMap,Xs=new WeakMap,Tt=new WeakMap,ls=new WeakMap,Ge=new WeakMap,Si=new WeakMap,us=new WeakMap,Ot=new WeakSet,mn=function(t){const n=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...np(s.data,this.options),fetchMeta:t.meta??null};case"success":return{...s,data:t.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=t.error;return ba(r)&&r.revert&&T(this,Xs)?{...T(this,Xs),fetchStatus:"idle"}:{...s,error:r,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=n(this.state),He.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),T(this,Tt).notify({query:this,type:"updated",action:t})})},Uh);function np(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Yh(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Dx(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Gt,zh,Ix=(zh=class extends Ti{constructor(t={}){super();ne(this,Gt);this.config=t,K(this,Gt,new Map)}build(t,n,s){const r=n.queryKey,i=n.queryHash??fl(r,n);let o=this.get(i);return o||(o=new Mx({client:t,queryKey:r,queryHash:i,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(r)}),this.add(o)),o}add(t){T(this,Gt).has(t.queryHash)||(T(this,Gt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=T(this,Gt).get(t.queryHash);n&&(t.destroy(),n===t&&T(this,Gt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){He.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,Gt).get(t)}getAll(){return[...T(this,Gt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Xu(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>Xu(t,s)):n}notify(t){He.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){He.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){He.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Gt=new WeakMap,zh),Qt,st,ds,Xt,Pn,Wh,Lx=(Wh=class extends tp{constructor(t){super();ne(this,Xt);ne(this,Qt);ne(this,st);ne(this,ds);this.mutationId=t.mutationId,K(this,st,t.mutationCache),K(this,Qt,[]),this.state=t.state||Fx(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,Qt).includes(t)||(T(this,Qt).push(t),this.clearGcTimeout(),T(this,st).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){K(this,Qt,T(this,Qt).filter(n=>n!==t)),this.scheduleGc(),T(this,st).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,Qt).length||(this.state.status==="pending"?this.scheduleGc():T(this,st).remove(this))}continue(){var t;return((t=T(this,ds))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var r,i,o,a,c,l,u,d,h,y,m,p,v,x,b,w,_,S,A,E;K(this,ds,ep({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,N)=>{pe(this,Xt,Pn).call(this,{type:"failed",failureCount:R,error:N})},onPause:()=>{pe(this,Xt,Pn).call(this,{type:"pause"})},onContinue:()=>{pe(this,Xt,Pn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,st).canRun(this)}));const n=this.state.status==="pending",s=!T(this,ds).canStart();try{if(!n){pe(this,Xt,Pn).call(this,{type:"pending",variables:t,isPaused:s}),await((i=(r=T(this,st).config).onMutate)==null?void 0:i.call(r,t,this));const N=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t));N!==this.state.context&&pe(this,Xt,Pn).call(this,{type:"pending",context:N,variables:t,isPaused:s})}const R=await T(this,ds).start();return await((l=(c=T(this,st).config).onSuccess)==null?void 0:l.call(c,R,t,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,R,t,this.state.context)),await((y=(h=T(this,st).config).onSettled)==null?void 0:y.call(h,R,null,this.state.variables,this.state.context,this)),await((p=(m=this.options).onSettled)==null?void 0:p.call(m,R,null,t,this.state.context)),pe(this,Xt,Pn).call(this,{type:"success",data:R}),R}catch(R){try{throw await((x=(v=T(this,st).config).onError)==null?void 0:x.call(v,R,t,this.state.context,this)),await((w=(b=this.options).onError)==null?void 0:w.call(b,R,t,this.state.context)),await((S=(_=T(this,st).config).onSettled)==null?void 0:S.call(_,void 0,R,this.state.variables,this.state.context,this)),await((E=(A=this.options).onSettled)==null?void 0:E.call(A,void 0,R,t,this.state.context)),R}finally{pe(this,Xt,Pn).call(this,{type:"error",error:R})}}finally{T(this,st).runNext(this)}}},Qt=new WeakMap,st=new WeakMap,ds=new WeakMap,Xt=new WeakSet,Pn=function(t){const n=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),He.batch(()=>{T(this,Qt).forEach(s=>{s.onMutationUpdate(t)}),T(this,st).notify({mutation:this,type:"updated",action:t})})},Wh);function Fx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var vn,Mt,_i,Hh,Vx=(Hh=class extends Ti{constructor(t={}){super();ne(this,vn);ne(this,Mt);ne(this,_i);this.config=t,K(this,vn,new Set),K(this,Mt,new Map),K(this,_i,0)}build(t,n,s){const r=new Lx({mutationCache:this,mutationId:++Bi(this,_i)._,options:t.defaultMutationOptions(n),state:s});return this.add(r),r}add(t){T(this,vn).add(t);const n=Ui(t);if(typeof n=="string"){const s=T(this,Mt).get(n);s?s.push(t):T(this,Mt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,vn).delete(t)){const n=Ui(t);if(typeof n=="string"){const s=T(this,Mt).get(n);if(s)if(s.length>1){const r=s.indexOf(t);r!==-1&&s.splice(r,1)}else s[0]===t&&T(this,Mt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Ui(t);if(typeof n=="string"){const s=T(this,Mt).get(n),r=s==null?void 0:s.find(i=>i.state.status==="pending");return!r||r===t}else return!0}runNext(t){var s;const n=Ui(t);if(typeof n=="string"){const r=(s=T(this,Mt).get(n))==null?void 0:s.find(i=>i!==t&&i.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}else return Promise.resolve()}clear(){He.batch(()=>{T(this,vn).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,vn).clear(),T(this,Mt).clear()})}getAll(){return Array.from(T(this,vn))}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Yu(n,s))}findAll(t={}){return this.getAll().filter(n=>Yu(t,n))}notify(t){He.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return He.batch(()=>Promise.all(t.map(n=>n.continue().catch(At))))}},vn=new WeakMap,Mt=new WeakMap,_i=new WeakMap,Hh);function Ui(e){var t;return(t=e.options.scope)==null?void 0:t.id}function td(e){return{onFetch:(t,n)=>{var u,d,h,y,m;const s=t.options,r=(h=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,i=((y=t.state.data)==null?void 0:y.pages)||[],o=((m=t.state.data)==null?void 0:m.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let p=!1;const v=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},x=Xh(t.options,t.fetchOptions),b=async(w,_,S)=>{if(p)return Promise.reject();if(_==null&&w.pages.length)return Promise.resolve(w);const A={client:t.client,queryKey:t.queryKey,pageParam:_,direction:S?"backward":"forward",meta:t.options.meta};v(A);const E=await x(A),{maxPages:R}=t.options,N=S?Px:Rx;return{pages:N(w.pages,E,R),pageParams:N(w.pageParams,_,R)}};if(r&&i.length){const w=r==="backward",_=w?Bx:nd,S={pages:i,pageParams:o},A=_(s,S);a=await b(S,A,w)}else{const w=e??i.length;do{const _=c===0?o[0]??s.initialPageParam:nd(s,a);if(c>0&&_==null)break;a=await b(a,_),c++}while(c<w)}return a};t.options.persister?t.fetchFn=()=>{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 nd(e,{pages:t,pageParams:n}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,n[s],n):void 0}function Bx(e,{pages:t,pageParams:n}){var s;return t.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,t[0],t,n[0],n):void 0}var Ne,Dn,In,Ys,Js,Ln,er,tr,qh,wk=(qh=class{constructor(e={}){ne(this,Ne);ne(this,Dn);ne(this,In);ne(this,Ys);ne(this,Js);ne(this,Ln);ne(this,er);ne(this,tr);K(this,Ne,e.queryCache||new Ix),K(this,Dn,e.mutationCache||new Vx),K(this,In,e.defaultOptions||{}),K(this,Ys,new Map),K(this,Js,new Map),K(this,Ln,0)}mount(){Bi(this,Ln)._++,T(this,Ln)===1&&(K(this,er,pl.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Ne).onFocus())})),K(this,tr,po.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Ne).onOnline())})))}unmount(){var e,t;Bi(this,Ln)._--,T(this,Ln)===0&&((e=T(this,er))==null||e.call(this),K(this,er,void 0),(t=T(this,tr))==null||t.call(this),K(this,tr,void 0))}isFetching(e){return T(this,Ne).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,Dn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,Ne).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=T(this,Ne).build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Us(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return T(this,Ne).findAll(e).map(({queryKey:t,state:n})=>{const s=n.data;return[t,s]})}setQueryData(e,t,n){const s=this.defaultQueryOptions({queryKey:e}),r=T(this,Ne).get(s.queryHash),i=r==null?void 0:r.state.data,o=Tx(t,i);if(o!==void 0)return T(this,Ne).build(this,s).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return He.batch(()=>T(this,Ne).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,Ne).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=T(this,Ne);He.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=T(this,Ne),s={type:"active",...e};return He.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries(s,t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=He.batch(()=>T(this,Ne).findAll(e).map(r=>r.cancel(n)));return Promise.all(s).then(At).catch(At)}invalidateQueries(e,t={}){return He.batch(()=>{if(T(this,Ne).findAll(e).forEach(s=>{s.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const n={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},s=He.batch(()=>T(this,Ne).findAll(e).filter(r=>!r.isDisabled()).map(r=>{let i=r.fetch(void 0,n);return n.throwOnError||(i=i.catch(At)),r.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(s).then(At)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=T(this,Ne).build(this,t);return n.isStaleByTime(Us(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(At).catch(At)}fetchInfiniteQuery(e){return e.behavior=td(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(At).catch(At)}ensureInfiniteQueryData(e){return e.behavior=td(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return po.isOnline()?T(this,Dn).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,Ne)}getMutationCache(){return T(this,Dn)}getDefaultOptions(){return T(this,In)}setDefaultOptions(e){K(this,In,e)}setQueryDefaults(e,t){T(this,Ys).set(Gr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,Ys).values()],n={};return t.forEach(s=>{Qr(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){T(this,Js).set(Gr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,Js).values()];let n={};return t.forEach(s=>{Qr(e,s.mutationKey)&&(n={...n,...s.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,In).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=fl(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===hl&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,In).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,Ne).clear(),T(this,Dn).clear()}},Ne=new WeakMap,Dn=new WeakMap,In=new WeakMap,Ys=new WeakMap,Js=new WeakMap,Ln=new WeakMap,er=new WeakMap,tr=new WeakMap,qh),ut,me,Ci,rt,fs,nr,Fn,Yt,Ei,sr,rr,hs,ps,Vn,ir,be,Mr,rc,ic,oc,ac,cc,lc,uc,sp,Zh,$x=(Zh=class extends Ti{constructor(t,n){super();ne(this,be);ne(this,ut);ne(this,me);ne(this,Ci);ne(this,rt);ne(this,fs);ne(this,nr);ne(this,Fn);ne(this,Yt);ne(this,Ei);ne(this,sr);ne(this,rr);ne(this,hs);ne(this,ps);ne(this,Vn);ne(this,ir,new Set);this.options=n,K(this,ut,t),K(this,Yt,null),K(this,Fn,sc()),this.options.experimental_prefetchInRender||T(this,Fn).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,me).addObserver(this),sd(T(this,me),this.options)?pe(this,be,Mr).call(this):this.updateResult(),pe(this,be,ac).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return dc(T(this,me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return dc(T(this,me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pe(this,be,cc).call(this),pe(this,be,lc).call(this),T(this,me).removeObserver(this)}setOptions(t,n){const s=this.options,r=T(this,me);if(this.options=T(this,ut).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dt(this.options.enabled,T(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),T(this,me).setOptions(this.options),s._defaulted&&!ec(this.options,s)&&T(this,ut).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,me),observer:this});const i=this.hasListeners();i&&rd(T(this,me),r,this.options,s)&&pe(this,be,Mr).call(this),this.updateResult(n),i&&(T(this,me)!==r||Dt(this.options.enabled,T(this,me))!==Dt(s.enabled,T(this,me))||Us(this.options.staleTime,T(this,me))!==Us(s.staleTime,T(this,me)))&&pe(this,be,rc).call(this);const o=pe(this,be,ic).call(this);i&&(T(this,me)!==r||Dt(this.options.enabled,T(this,me))!==Dt(s.enabled,T(this,me))||o!==T(this,Vn))&&pe(this,be,oc).call(this,o)}getOptimisticResult(t){const n=T(this,ut).getQueryCache().build(T(this,ut),t),s=this.createResult(n,t);return zx(this,s)&&(K(this,rt,s),K(this,nr,this.options),K(this,fs,T(this,me).state)),s}getCurrentResult(){return T(this,rt)}trackResult(t,n){const s={};return Object.keys(t).forEach(r=>{Object.defineProperty(s,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),n==null||n(r),t[r])})}),s}trackProp(t){T(this,ir).add(t)}getCurrentQuery(){return T(this,me)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=T(this,ut).defaultQueryOptions(t),s=T(this,ut).getQueryCache().build(T(this,ut),n);return s.fetch().then(()=>this.createResult(s,n))}fetch(t){return pe(this,be,Mr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,rt)))}createResult(t,n){var R;const s=T(this,me),r=this.options,i=T(this,rt),o=T(this,fs),a=T(this,nr),l=t!==s?t.state:T(this,Ci),{state:u}=t;let d={...u},h=!1,y;if(n._optimisticResults){const N=this.hasListeners(),M=!N&&sd(t,n),I=N&&rd(t,s,n,r);(M||I)&&(d={...d,...np(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:p,status:v}=d;if(n.select&&d.data!==void 0)if(i&&d.data===(o==null?void 0:o.data)&&n.select===T(this,Ei))y=T(this,sr);else try{K(this,Ei,n.select),y=n.select(d.data),y=nc(i==null?void 0:i.data,y,n),K(this,sr,y),K(this,Yt,null)}catch(N){K(this,Yt,N)}else y=d.data;if(n.placeholderData!==void 0&&y===void 0&&v==="pending"){let N;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))N=i.data;else if(N=typeof n.placeholderData=="function"?n.placeholderData((R=T(this,rr))==null?void 0:R.state.data,T(this,rr)):n.placeholderData,n.select&&N!==void 0)try{N=n.select(N),K(this,Yt,null)}catch(M){K(this,Yt,M)}N!==void 0&&(v="success",y=nc(i==null?void 0:i.data,N,n),h=!0)}T(this,Yt)&&(m=T(this,Yt),y=T(this,sr),p=Date.now(),v="error");const x=d.fetchStatus==="fetching",b=v==="pending",w=v==="error",_=b&&x,S=y!==void 0,E={status:v,fetchStatus:d.fetchStatus,isPending:b,isSuccess:v==="success",isError:w,isInitialLoading:_,isLoading:_,data:y,dataUpdatedAt:d.dataUpdatedAt,error:m,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:x,isRefetching:x&&!b,isLoadingError:w&&!S,isPaused:d.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:w&&S,isStale:ml(t,n),refetch:this.refetch,promise:T(this,Fn)};if(this.options.experimental_prefetchInRender){const N=O=>{E.status==="error"?O.reject(E.error):E.data!==void 0&&O.resolve(E.data)},M=()=>{const O=K(this,Fn,E.promise=sc());N(O)},I=T(this,Fn);switch(I.status){case"pending":t.queryHash===s.queryHash&&N(I);break;case"fulfilled":(E.status==="error"||E.data!==I.value)&&M();break;case"rejected":(E.status!=="error"||E.error!==I.reason)&&M();break}}return E}updateResult(t){const n=T(this,rt),s=this.createResult(T(this,me),this.options);if(K(this,fs,T(this,me).state),K(this,nr,this.options),T(this,fs).data!==void 0&&K(this,rr,T(this,me)),ec(s,n))return;K(this,rt,s);const r={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!T(this,ir).size)return!0;const c=new Set(a??T(this,ir));return this.options.throwOnError&&c.add("error"),Object.keys(T(this,rt)).some(l=>{const u=l;return T(this,rt)[u]!==n[u]&&c.has(u)})};(t==null?void 0:t.listeners)!==!1&&i()&&(r.listeners=!0),pe(this,be,sp).call(this,{...r,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pe(this,be,ac).call(this)}},ut=new WeakMap,me=new WeakMap,Ci=new WeakMap,rt=new WeakMap,fs=new WeakMap,nr=new WeakMap,Fn=new WeakMap,Yt=new WeakMap,Ei=new WeakMap,sr=new WeakMap,rr=new WeakMap,hs=new WeakMap,ps=new WeakMap,Vn=new WeakMap,ir=new WeakMap,be=new WeakSet,Mr=function(t){pe(this,be,uc).call(this);let n=T(this,me).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(At)),n},rc=function(){pe(this,be,cc).call(this);const t=Us(this.options.staleTime,T(this,me));if(xs||T(this,rt).isStale||!Ja(t))return;const s=Gh(T(this,rt).dataUpdatedAt,t)+1;K(this,hs,setTimeout(()=>{T(this,rt).isStale||this.updateResult()},s))},ic=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,me)):this.options.refetchInterval)??!1},oc=function(t){pe(this,be,lc).call(this),K(this,Vn,t),!(xs||Dt(this.options.enabled,T(this,me))===!1||!Ja(T(this,Vn))||T(this,Vn)===0)&&K(this,ps,setInterval(()=>{(this.options.refetchIntervalInBackground||pl.isFocused())&&pe(this,be,Mr).call(this)},T(this,Vn)))},ac=function(){pe(this,be,rc).call(this),pe(this,be,oc).call(this,pe(this,be,ic).call(this))},cc=function(){T(this,hs)&&(clearTimeout(T(this,hs)),K(this,hs,void 0))},lc=function(){T(this,ps)&&(clearInterval(T(this,ps)),K(this,ps,void 0))},uc=function(){const t=T(this,ut).getQueryCache().build(T(this,ut),this.options);if(t===T(this,me))return;const n=T(this,me);K(this,me,t),K(this,Ci,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},sp=function(t){He.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(T(this,rt))}),T(this,ut).getQueryCache().notify({query:T(this,me),type:"observerResultsUpdated"})})},Zh);function Ux(e,t){return Dt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function sd(e,t){return Ux(e,t)||e.state.data!==void 0&&dc(e,t,t.refetchOnMount)}function dc(e,t,n){if(Dt(t.enabled,e)!==!1){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&ml(e,t)}return!1}function rd(e,t,n,s){return(e!==t||Dt(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ml(e,n)}function ml(e,t){return Dt(t.enabled,e)!==!1&&e.isStaleByTime(Us(t.staleTime,e))}function zx(e,t){return!ec(e.getCurrentResult(),t)}var rp=g.createContext(void 0),Wx=e=>{const t=g.useContext(rp);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Sk=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(rp.Provider,{value:e,children:t})),ip=g.createContext(!1),Hx=()=>g.useContext(ip);ip.Provider;function qx(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Zx=g.createContext(qx()),Kx=()=>g.useContext(Zx);function Gx(e,t){return typeof e=="function"?e(...t):!!e}function id(){}var Qx=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Xx=e=>{g.useEffect(()=>{e.clearReset()},[e])},Yx=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(r&&e.data===void 0||Gx(n,[e.error,s])),Jx=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...n)=>Math.max(t(...n),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},eb=(e,t)=>e.isLoading&&e.isFetching&&!t,tb=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,od=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function nb(e,t,n){var d,h,y,m,p;const s=Wx(),r=Hx(),i=Kx(),o=s.defaultQueryOptions(e);(h=(d=s.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||h.call(d,o),o._optimisticResults=r?"isRestoring":"optimistic",Jx(o),Qx(o,i),Xx(i);const a=!s.getQueryCache().get(o.queryHash),[c]=g.useState(()=>new t(s,o)),l=c.getOptimisticResult(o),u=!r&&e.subscribed!==!1;if(g.useSyncExternalStore(g.useCallback(v=>{const x=u?c.subscribe(He.batchCalls(v)):id;return c.updateResult(),x},[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),g.useEffect(()=>{c.setOptions(o,{listeners:!1})},[o,c]),tb(o,l))throw od(o,c,i);if(Yx({result:l,errorResetBoundary:i,throwOnError:o.throwOnError,query:s.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw l.error;if((m=(y=s.getDefaultOptions().queries)==null?void 0:y._experimental_afterQuery)==null||m.call(y,o,l),o.experimental_prefetchInRender&&!xs&&eb(l,r)){const v=a?od(o,c,i):(p=s.getQueryCache().get(o.queryHash))==null?void 0:p.promise;v==null||v.catch(id).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?l:c.trackResult(l)}function En(e,t){return nb(e,$x)}function yt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function ad(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function op(...e){return t=>{let n=!1;const s=e.map(r=>{const i=ad(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<s.length;r++){const i=s[r];typeof i=="function"?i():ad(e[r],null)}}}}function zt(...e){return g.useCallback(op(...e),e)}function sb(e,t){const n=g.createContext(t),s=i=>{const{children:o,...a}=i,c=g.useMemo(()=>a,Object.values(a));return f.jsx(n.Provider,{value:c,children:o})};s.displayName=e+"Provider";function r(i){const o=g.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[s,r]}function gl(e,t=[]){let n=[];function s(i,o){const a=g.createContext(o),c=n.length;n=[...n,o];const l=d=>{var x;const{scope:h,children:y,...m}=d,p=((x=h==null?void 0:h[e])==null?void 0:x[c])||a,v=g.useMemo(()=>m,Object.values(m));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,m=g.useContext(y);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const r=()=>{const i=n.map(o=>g.createContext(o));return function(a){const c=(a==null?void 0:a[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return r.scopeName=e,[s,rb(r,...t)]}function rb(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const o=s.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var bs=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},ib=ul.useId||(()=>{}),ob=0;function to(e){const[t,n]=g.useState(ib());return bs(()=>{n(s=>s??String(ob++))},[e]),t?`radix-${t}`:""}function Bn(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function ap({prop:e,defaultProp:t,onChange:n=()=>{}}){const[s,r]=ab({defaultProp:t,onChange:n}),i=e!==void 0,o=i?e:s,a=Bn(n),c=g.useCallback(l=>{if(i){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else r(l)},[i,e,r,a]);return[o,c]}function ab({defaultProp:e,onChange:t}){const n=g.useState(e),[s]=n,r=g.useRef(s),i=Bn(t);return g.useEffect(()=>{r.current!==s&&(i(s),r.current=s)},[s,r,i]),n}var mr=g.forwardRef((e,t)=>{const{children:n,...s}=e,r=g.Children.toArray(n),i=r.find(lb);if(i){const o=i.props.children,a=r.map(c=>c===i?g.Children.count(o)>1?g.Children.only(null):g.isValidElement(o)?o.props.children:null:c);return f.jsx(fc,{...s,ref:t,children:g.isValidElement(o)?g.cloneElement(o,void 0,a):null})}return f.jsx(fc,{...s,ref:t,children:n})});mr.displayName="Slot";var fc=g.forwardRef((e,t)=>{const{children:n,...s}=e;if(g.isValidElement(n)){const r=db(n);return g.cloneElement(n,{...ub(s,n.props),ref:t?op(t,r):r})}return g.Children.count(n)>1?g.Children.only(null):null});fc.displayName="SlotClone";var cb=({children:e})=>f.jsx(f.Fragment,{children:e});function lb(e){return g.isValidElement(e)&&e.type===cb}function ub(e,t){const n={...t};for(const s in t){const r=e[s],i=t[s];/^on[A-Z]/.test(s)?r&&i?n[s]=(...a)=>{i(...a),r(...a)}:r&&(n[s]=r):s==="style"?n[s]={...r,...i}:s==="className"&&(n[s]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function db(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var fb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ct=fb.reduce((e,t)=>{const n=g.forwardRef((s,r)=>{const{asChild:i,...o}=s,a=i?mr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(a,{...o,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function hb(e,t){e&&dl.flushSync(()=>e.dispatchEvent(t))}function pb(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e);g.useEffect(()=>{const s=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[n,t])}var mb="DismissableLayer",hc="dismissableLayer.update",gb="dismissableLayer.pointerDownOutside",yb="dismissableLayer.focusOutside",cd,cp=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yl=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=e,l=g.useContext(cp),[u,d]=g.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=g.useState({}),m=zt(t,E=>d(E)),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=bb(E=>{const R=E.target,N=[...l.branches].some(M=>M.contains(R));!_||N||(r==null||r(E),o==null||o(E),E.defaultPrevented||a==null||a())},h),A=wb(E=>{const R=E.target;[...l.branches].some(M=>M.contains(R))||(i==null||i(E),o==null||o(E),E.defaultPrevented||a==null||a())},h);return pb(E=>{b===l.layers.size-1&&(s==null||s(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},h),g.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(cd=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),ld(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=cd)}},[u,h,n,l]),g.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),ld())},[u,l]),g.useEffect(()=>{const E=()=>y({});return document.addEventListener(hc,E),()=>document.removeEventListener(hc,E)},[]),f.jsx(ct.div,{...c,ref:m,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:yt(e.onFocusCapture,A.onFocusCapture),onBlurCapture:yt(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:yt(e.onPointerDownCapture,S.onPointerDownCapture)})});yl.displayName=mb;var vb="DismissableLayerBranch",xb=g.forwardRef((e,t)=>{const n=g.useContext(cp),s=g.useRef(null),r=zt(t,s);return g.useEffect(()=>{const i=s.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),f.jsx(ct.div,{...e,ref:r})});xb.displayName=vb;function bb(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e),s=g.useRef(!1),r=g.useRef(()=>{});return g.useEffect(()=>{const i=a=>{if(a.target&&!s.current){let c=function(){lp(gb,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);s.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function wb(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e),s=g.useRef(!1);return g.useEffect(()=>{const r=i=>{i.target&&!s.current&&lp(yb,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function ld(){const e=new CustomEvent(hc);document.dispatchEvent(e)}function lp(e,t,n,{discrete:s}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),s?hb(r,i):r.dispatchEvent(i)}var wa="focusScope.autoFocusOnMount",Sa="focusScope.autoFocusOnUnmount",ud={bubbles:!1,cancelable:!0},Sb="FocusScope",vl=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...o}=e,[a,c]=g.useState(null),l=Bn(r),u=Bn(i),d=g.useRef(null),h=zt(t,p=>c(p)),y=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(s){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()}}},[s,a,y.paused]),g.useEffect(()=>{if(a){fd.add(y);const p=document.activeElement;if(!a.contains(p)){const x=new CustomEvent(wa,ud);a.addEventListener(wa,l),a.dispatchEvent(x),x.defaultPrevented||(_b(Rb(up(a)),{select:!0}),document.activeElement===p&&Nn(a))}return()=>{a.removeEventListener(wa,l),setTimeout(()=>{const x=new CustomEvent(Sa,ud);a.addEventListener(Sa,u),a.dispatchEvent(x),x.defaultPrevented||Nn(p??document.body,{select:!0}),a.removeEventListener(Sa,u),fd.remove(y)},0)}}},[a,l,u,y]);const m=g.useCallback(p=>{if(!n&&!s||y.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,x=document.activeElement;if(v&&x){const b=p.currentTarget,[w,_]=Cb(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,s,y.paused]);return f.jsx(ct.div,{tabIndex:-1,...o,ref:h,onKeyDown:m})});vl.displayName=Sb;function _b(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(Nn(s,{select:t}),document.activeElement!==n)return}function Cb(e){const t=up(e),n=dd(t,e),s=dd(t.reverse(),e);return[n,s]}function up(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const r=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||r?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function dd(e,t){for(const n of e)if(!Eb(n,{upTo:t}))return n}function Eb(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 Tb(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&&Tb(e)&&t&&e.select()}}var fd=Ab();function Ab(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=hd(e,t),e.unshift(t)},remove(t){var n;e=hd(e,t),(n=e[0])==null||n.resume()}}}function hd(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function Rb(e){return e.filter(t=>t.tagName!=="A")}var Pb="Portal",xl=g.forwardRef((e,t)=>{var a;const{container:n,...s}=e,[r,i]=g.useState(!1);bs(()=>i(!0),[]);const o=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?Kh.createPortal(f.jsx(ct.div,{...s,ref:t}),o):null});xl.displayName=Pb;function Nb(e,t){return g.useReducer((n,s)=>t[n][s]??n,e)}var gr=e=>{const{present:t,children:n}=e,s=jb(t),r=typeof n=="function"?n({present:s.isPresent}):g.Children.only(n),i=zt(s.ref,kb(r));return typeof n=="function"||s.isPresent?g.cloneElement(r,{ref:i}):null};gr.displayName="Presence";function jb(e){const[t,n]=g.useState(),s=g.useRef({}),r=g.useRef(e),i=g.useRef("none"),o=e?"mounted":"unmounted",[a,c]=Nb(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const l=zi(s.current);i.current=a==="mounted"?l:"none"},[a]),bs(()=>{const l=s.current,u=r.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"),r.current=e}},[e,c]),bs(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=y=>{const p=zi(s.current).includes(y.animationName);if(y.target===t&&p&&(c("ANIMATION_END"),!r.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(s.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:g.useCallback(l=>{l&&(s.current=getComputedStyle(l)),n(l)},[])}}function zi(e){return(e==null?void 0:e.animationName)||"none"}function kb(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var _a=0;function dp(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??pd()),document.body.insertAdjacentElement("beforeend",e[1]??pd()),_a++,()=>{_a===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),_a--}},[])}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 en=function(){return en=Object.assign||function(t){for(var n,s=1,r=arguments.length;s<r;s++){n=arguments[s];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},en.apply(this,arguments)};function fp(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(e);r<s.length;r++)t.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(e,s[r])&&(n[s[r]]=e[s[r]]);return n}function Ob(e,t,n){if(n||arguments.length===2)for(var s=0,r=t.length,i;s<r;s++)(i||!(s in t))&&(i||(i=Array.prototype.slice.call(t,0,s)),i[s]=t[s]);return e.concat(i||Array.prototype.slice.call(t))}var no="right-scroll-bar-position",so="width-before-scroll-bar",Mb="with-scroll-bars-hidden",Db="--removed-body-scroll-bar-size";function Ca(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ib(e,t){var n=g.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(s){var r=n.value;r!==s&&(n.value=s,n.callback(s,r))}}}})[0];return n.callback=t,n.facade}var Lb=typeof window<"u"?g.useLayoutEffect:g.useEffect,md=new WeakMap;function Fb(e,t){var n=Ib(null,function(s){return e.forEach(function(r){return Ca(r,s)})});return Lb(function(){var s=md.get(n);if(s){var r=new Set(s),i=new Set(e),o=n.current;r.forEach(function(a){i.has(a)||Ca(a,null)}),i.forEach(function(a){r.has(a)||Ca(a,o)})}md.set(n,e)},[e]),n}function Vb(e){return e}function Bb(e,t){t===void 0&&(t=Vb);var n=[],s=!1,r={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var o=t(i,s);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(i){for(s=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){s=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(i),o=n}var c=function(){var u=o;o=[],u.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(u){o.push(u),l()},filter:function(u){return o=o.filter(u),n}}}};return r}function $b(e){e===void 0&&(e={});var t=Bb(null);return t.options=en({async:!0,ssr:!1},e),t}var hp=function(e){var t=e.sideCar,n=fp(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return g.createElement(s,en({},n))};hp.isSideCarExport=!0;function Ub(e,t){return e.useMedium(t),hp}var pp=$b(),Ea=function(){},Wo=g.forwardRef(function(e,t){var n=g.useRef(null),s=g.useState({onScrollCapture:Ea,onWheelCapture:Ea,onTouchMoveCapture:Ea}),r=s[0],i=s[1],o=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,y=e.noIsolation,m=e.inert,p=e.allowPinchZoom,v=e.as,x=v===void 0?"div":v,b=e.gapMode,w=fp(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=h,S=Fb([n,t]),A=en(en({},w),r);return g.createElement(g.Fragment,null,u&&g.createElement(_,{sideCar:pp,removeScrollBar:l,shards:d,noIsolation:y,inert:m,setCallbacks:i,allowPinchZoom:!!p,lockRef:n,gapMode:b}),o?g.cloneElement(g.Children.only(a),en(en({},A),{ref:S})):g.createElement(x,en({},A,{className:c,ref:S}),a))});Wo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Wo.classNames={fullWidth:so,zeroRight:no};var zb=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Wb(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=zb();return t&&e.setAttribute("nonce",t),e}function Hb(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function qb(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Zb=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Wb())&&(Hb(t,n),qb(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Kb=function(){var e=Zb();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},mp=function(){var e=Kb(),t=function(n){var s=n.styles,r=n.dynamic;return e(s,r),null};return t},Gb={left:0,top:0,right:0,gap:0},Ta=function(e){return parseInt(e||"",10)||0},Qb=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Ta(n),Ta(s),Ta(r)]},Xb=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Gb;var t=Qb(e),n=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-n+t[2]-t[0])}},Yb=mp(),zs="data-scroll-locked",Jb=function(e,t,n,s){var r=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),`
.`.concat(Mb,` {
overflow: hidden `).concat(s,`;
padding-right: `).concat(a,"px ").concat(s,`;
}
body[`).concat(zs,`] {
overflow: hidden `).concat(s,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(s,";"),n==="margin"&&`
padding-left: `.concat(r,`px;
padding-top: `).concat(i,`px;
padding-right: `).concat(o,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(a,"px ").concat(s,`;
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(s,";")].filter(Boolean).join(""),`
}
.`).concat(no,` {
right: `).concat(a,"px ").concat(s,`;
}
.`).concat(so,` {
margin-right: `).concat(a,"px ").concat(s,`;
}
.`).concat(no," .").concat(no,` {
right: 0 `).concat(s,`;
}
.`).concat(so," .").concat(so,` {
margin-right: 0 `).concat(s,`;
}
body[`).concat(zs,`] {
`).concat(Db,": ").concat(a,`px;
}
`)},gd=function(){var e=parseInt(document.body.getAttribute(zs)||"0",10);return isFinite(e)?e:0},ew=function(){g.useEffect(function(){return document.body.setAttribute(zs,(gd()+1).toString()),function(){var e=gd()-1;e<=0?document.body.removeAttribute(zs):document.body.setAttribute(zs,e.toString())}},[])},tw=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,r=s===void 0?"margin":s;ew();var i=g.useMemo(function(){return Xb(r)},[r]);return g.createElement(Yb,{styles:Jb(i,!t,r,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 js=pc?{passive:!1}:!1,nw=function(e){return e.tagName==="TEXTAREA"},gp=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!nw(e)&&n[t]==="visible")},sw=function(e){return gp(e,"overflowY")},rw=function(e){return gp(e,"overflowX")},yd=function(e,t){var n=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var r=yp(e,s);if(r){var i=vp(e,s),o=i[1],a=i[2];if(o>a)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},iw=function(e){var t=e.scrollTop,n=e.scrollHeight,s=e.clientHeight;return[t,n,s]},ow=function(e){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;return[t,n,s]},yp=function(e,t){return e==="v"?sw(t):rw(t)},vp=function(e,t){return e==="v"?iw(t):ow(t)},aw=function(e,t){return e==="h"&&t==="rtl"?-1:1},cw=function(e,t,n,s,r){var i=aw(e,window.getComputedStyle(t).direction),o=i*s,a=n.target,c=t.contains(a),l=!1,u=o>0,d=0,h=0;do{var y=vp(e,a),m=y[0],p=y[1],v=y[2],x=p-v-i*m;(m||x)&&yp(e,a)&&(d+=x,h+=m),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},lw=function(e,t){return e[0]===t[0]&&e[1]===t[1]},uw=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},dw=0,ks=[];function fw(e){var t=g.useRef([]),n=g.useRef([0,0]),s=g.useRef(),r=g.useState(dw++)[0],i=g.useState(mp)[0],o=g.useRef(e);g.useEffect(function(){o.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var p=Ob([e.lockRef.current],(e.shards||[]).map(xd),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=g.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,A=p.target,E=Math.abs(w)>Math.abs(_)?"h":"v";if("touches"in p&&E==="h"&&A.type==="range")return!1;var R=yd(E,A);if(!R)return!0;if(R?S=E:(S=E==="v"?"h":"v",R=yd(E,A)),!R)return!1;if(!s.current&&"changedTouches"in p&&(w||_)&&(s.current=S),!S)return!0;var N=s.current||S;return cw(N,v,p,N==="h"?w:_)},[]),c=g.useCallback(function(p){var v=p;if(!(!ks.length||ks[ks.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)&&lw(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=g.useCallback(function(p,v,x,b){var w={name:p,delta:v,target:x,should:b,shadowParent:hw(x)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(_){return _!==w})},1)},[]),u=g.useCallback(function(p){n.current=Hi(p),s.current=void 0},[]),d=g.useCallback(function(p){l(p.type,vd(p),p.target,a(p,e.lockRef.current))},[]),h=g.useCallback(function(p){l(p.type,Hi(p),p.target,a(p,e.lockRef.current))},[]);g.useEffect(function(){return ks.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",c,js),document.addEventListener("touchmove",c,js),document.addEventListener("touchstart",u,js),function(){ks=ks.filter(function(p){return p!==i}),document.removeEventListener("wheel",c,js),document.removeEventListener("touchmove",c,js),document.removeEventListener("touchstart",u,js)}},[]);var y=e.removeScrollBar,m=e.inert;return g.createElement(g.Fragment,null,m?g.createElement(i,{styles:uw(r)}):null,y?g.createElement(tw,{gapMode:e.gapMode}):null)}function hw(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const pw=Ub(pp,fw);var bl=g.forwardRef(function(e,t){return g.createElement(Wo,en({},e,{ref:t,sideCar:pw}))});bl.classNames=Wo.classNames;var mw=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Os=new WeakMap,qi=new WeakMap,Zi={},Aa=0,xp=function(e){return e&&(e.host||xp(e.parentNode))},gw=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=xp(n);return s&&e.contains(s)?s:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},yw=function(e,t,n,s){var r=gw(t,Array.isArray(e)?e:[e]);Zi[n]||(Zi[n]=new WeakMap);var i=Zi[n],o=[],a=new Set,c=new Set(r),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};r.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(s),m=y!==null&&y!=="false",p=(Os.get(h)||0)+1,v=(i.get(h)||0)+1;Os.set(h,p),i.set(h,v),o.push(h),p===1&&m&&qi.set(h,!0),v===1&&h.setAttribute(n,"true"),m||h.setAttribute(s,"true")}catch(x){console.error("aria-hidden: cannot operate on ",h,x)}})};return u(t),a.clear(),Aa++,function(){o.forEach(function(d){var h=Os.get(d)-1,y=i.get(d)-1;Os.set(d,h),i.set(d,y),h||(qi.has(d)||d.removeAttribute(s),qi.delete(d)),y||d.removeAttribute(n)}),Aa--,Aa||(Os=new WeakMap,Os=new WeakMap,qi=new WeakMap,Zi={})}},bp=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),r=mw(e);return r?(s.push.apply(s,Array.from(r.querySelectorAll("[aria-live]"))),yw(s,r,n,"aria-hidden")):function(){return null}},wl="Dialog",[wp,_k]=gl(wl),[vw,Wt]=wp(wl),Sp=e=>{const{__scopeDialog:t,children:n,open:s,defaultOpen:r,onOpenChange:i,modal:o=!0}=e,a=g.useRef(null),c=g.useRef(null),[l=!1,u]=ap({prop:s,defaultProp:r,onChange:i});return f.jsx(vw,{scope:t,triggerRef:a,contentRef:c,contentId:to(),titleId:to(),descriptionId:to(),open:l,onOpenChange:u,onOpenToggle:g.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};Sp.displayName=wl;var _p="DialogTrigger",Cp=g.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Wt(_p,n),i=zt(t,r.triggerRef);return f.jsx(ct.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Cl(r.open),...s,ref:i,onClick:yt(e.onClick,r.onOpenToggle)})});Cp.displayName=_p;var Sl="DialogPortal",[xw,Ep]=wp(Sl,{forceMount:void 0}),Tp=e=>{const{__scopeDialog:t,forceMount:n,children:s,container:r}=e,i=Wt(Sl,t);return f.jsx(xw,{scope:t,forceMount:n,children:g.Children.map(s,o=>f.jsx(gr,{present:n||i.open,children:f.jsx(xl,{asChild:!0,container:r,children:o})}))})};Tp.displayName=Sl;var mo="DialogOverlay",Ap=g.forwardRef((e,t)=>{const n=Ep(mo,e.__scopeDialog),{forceMount:s=n.forceMount,...r}=e,i=Wt(mo,e.__scopeDialog);return i.modal?f.jsx(gr,{present:s||i.open,children:f.jsx(bw,{...r,ref:t})}):null});Ap.displayName=mo;var bw=g.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Wt(mo,n);return f.jsx(bl,{as:mr,allowPinchZoom:!0,shards:[r.contentRef],children:f.jsx(ct.div,{"data-state":Cl(r.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),ws="DialogContent",Rp=g.forwardRef((e,t)=>{const n=Ep(ws,e.__scopeDialog),{forceMount:s=n.forceMount,...r}=e,i=Wt(ws,e.__scopeDialog);return f.jsx(gr,{present:s||i.open,children:i.modal?f.jsx(ww,{...r,ref:t}):f.jsx(Sw,{...r,ref:t})})});Rp.displayName=ws;var ww=g.forwardRef((e,t)=>{const n=Wt(ws,e.__scopeDialog),s=g.useRef(null),r=zt(t,n.contentRef,s);return g.useEffect(()=>{const i=s.current;if(i)return bp(i)},[]),f.jsx(Pp,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:yt(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:yt(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:yt(e.onFocusOutside,i=>i.preventDefault())})}),Sw=g.forwardRef((e,t)=>{const n=Wt(ws,e.__scopeDialog),s=g.useRef(!1),r=g.useRef(!1);return f.jsx(Pp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(s.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),s.current=!1,r.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(s.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),Pp=g.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:s,onOpenAutoFocus:r,onCloseAutoFocus:i,...o}=e,a=Wt(ws,n),c=g.useRef(null),l=zt(t,c);return dp(),f.jsxs(f.Fragment,{children:[f.jsx(vl,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:r,onUnmountAutoFocus:i,children:f.jsx(yl,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Cl(a.open),...o,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(_w,{titleId:a.titleId}),f.jsx(Ew,{contentRef:c,descriptionId:a.descriptionId})]})]})}),_l="DialogTitle",Np=g.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Wt(_l,n);return f.jsx(ct.h2,{id:r.titleId,...s,ref:t})});Np.displayName=_l;var jp="DialogDescription",kp=g.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Wt(jp,n);return f.jsx(ct.p,{id:r.descriptionId,...s,ref:t})});kp.displayName=jp;var Op="DialogClose",Mp=g.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Wt(Op,n);return f.jsx(ct.button,{type:"button",...s,ref:t,onClick:yt(e.onClick,()=>r.onOpenChange(!1))})});Mp.displayName=Op;function Cl(e){return e?"open":"closed"}var Dp="DialogTitleWarning",[Ck,Ip]=sb(Dp,{contentName:ws,titleName:_l,docsSlug:"dialog"}),_w=({titleId:e})=>{const t=Ip(Dp),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Cw="DialogDescriptionWarning",Ew=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ip(Cw).contentName}}.`;return g.useEffect(()=>{var i;const r=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},Lp=Sp,Fp=Cp,Vp=Tp,Ho=Ap,qo=Rp,Zo=Np,Ko=kp,El=Mp;function Bp(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Bp(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function $p(){for(var e,t,n=0,s="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Bp(e))&&(s&&(s+=" "),s+=t);return s}const bd=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,wd=$p,Go=(e,t)=>n=>{var s;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:r,defaultVariants:i}=t,o=Object.keys(r).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 r[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||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((l,u)=>{let{class:d,className:h,...y}=u;return Object.entries(y).every(m=>{let[p,v]=m;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 Tw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Up=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Aw={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 Rw=g.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:r="",children:i,iconNode:o,...a},c)=>g.createElement("svg",{ref:c,...Aw,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:Up("lucide",r),...a},[...o.map(([l,u])=>g.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 St=(e,t)=>{const n=g.forwardRef(({className:s,...r},i)=>g.createElement(Rw,{ref:i,iconNode:t,className:Up(`lucide-${Tw(e)}`,s),...r}));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Pw=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Nw=St("ArrowRight",Pw);/**
* @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:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],kw=St("ArrowUpRight",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 Ow=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Mw=St("ChevronDown",Ow);/**
* @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 Dw=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],mc=St("ChevronLeft",Dw);/**
* @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 Iw=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],zp=St("ChevronRight",Iw);/**
* @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 Lw=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],Fw=St("Facebook",Lw);/**
* @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 Vw=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Wp=St("LoaderCircle",Vw);/**
* @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 Bw=[["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"}]],Ek=St("Loader",Bw);/**
* @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 $w=[["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"}]],Uw=St("MapPin",$w);/**
* @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=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Tk=St("Play",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 Ww=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],Hw=St("Smartphone",Ww);/**
* @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 qw=[["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"}]],Zw=St("Upload",qw);/**
* @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 Kw=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Tl=St("X",Kw),Al="-",Gw=e=>{const t=Xw(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:o=>{const a=o.split(Al);return a[0]===""&&a.length!==1&&a.shift(),Hp(a,t)||Qw(o)},getConflictingClassGroupIds:(o,a)=>{const c=n[o]||[];return a&&s[o]?[...c,...s[o]]:c}}},Hp=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],s=t.nextPart.get(n),r=s?Hp(e.slice(1),s):void 0;if(r)return r;if(t.validators.length===0)return;const i=e.join(Al);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},Sd=/^\[(.+)\]$/,Qw=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}},Xw=e=>{const{theme:t,prefix:n}=e,s={nextPart:new Map,validators:[]};return Jw(Object.entries(e.classGroups),n).forEach(([i,o])=>{gc(o,s,i,t)}),s},gc=(e,t,n,s)=>{e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:_d(t,r);i.classGroupId=n;return}if(typeof r=="function"){if(Yw(r)){gc(r(s),t,n,s);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([i,o])=>{gc(o,_d(t,i),n,s)})})},_d=(e,t)=>{let n=e;return t.split(Al).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},Yw=e=>e.isThemeGetter,Jw=(e,t)=>t?e.map(([n,s])=>{const r=s.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,r]}):e,e0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,s=new Map;const r=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,s=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=s.get(i))!==void 0)return r(i,o),o},set(i,o){n.has(i)?n.set(i,o):r(i,o)}}},qp="!",t0=e=>{const{separator:t,experimentalParseClassName:n}=e,s=t.length===1,r=t[0],i=t.length,o=a=>{const c=[];let l=0,u=0,d;for(let v=0;v<a.length;v++){let x=a[v];if(l===0){if(x===r&&(s||a.slice(v,v+i)===t)){c.push(a.slice(u,v)),u=v+i;continue}if(x==="/"){d=v;continue}}x==="["?l++:x==="]"&&l--}const h=c.length===0?a:a.substring(u),y=h.startsWith(qp),m=y?h.substring(1):h,p=d&&d>u?d-u:void 0;return{modifiers:c,hasImportantModifier:y,baseClassName:m,maybePostfixModifierPosition:p}};return n?a=>n({className:a,parseClassName:o}):o},n0=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(s=>{s[0]==="["?(t.push(...n.sort(),s),n=[]):n.push(s)}),t.push(...n.sort()),t},s0=e=>({cache:e0(e.cacheSize),parseClassName:t0(e),...Gw(e)}),r0=/\s+/,i0=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:r}=t,i=[],o=e.trim().split(r0);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 m=!!y,p=s(m?h.substring(0,y):h);if(!p){if(!m){a=l+(a.length>0?" "+a:a);continue}if(p=s(h),!p){a=l+(a.length>0?" "+a:a);continue}m=!1}const v=n0(u).join(":"),x=d?v+qp:v,b=x+p;if(i.includes(b))continue;i.push(b);const w=r(p,m);for(let _=0;_<w.length;++_){const S=w[_];i.push(x+S)}a=l+(a.length>0?" "+a:a)}return a};function o0(){let e=0,t,n,s="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Zp(t))&&(s&&(s+=" "),s+=n);return s}const Zp=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=Zp(e[s]))&&(n&&(n+=" "),n+=t);return n};function a0(e,...t){let n,s,r,i=o;function o(c){const l=t.reduce((u,d)=>d(u),e());return n=s0(l),s=n.cache.get,r=n.cache.set,i=a,a(c)}function a(c){const l=s(c);if(l)return l;const u=i0(c,n);return r(c,u),u}return function(){return i(o0.apply(null,arguments))}}const Ce=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Kp=/^\[(?:([a-z-]+):)?(.+)\]$/i,c0=/^\d+\/\d+$/,l0=new Set(["px","full","screen"]),u0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,d0=/\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$/,f0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,h0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,p0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,hn=e=>Ws(e)||l0.has(e)||c0.test(e),An=e=>yr(e,"length",S0),Ws=e=>!!e&&!Number.isNaN(Number(e)),Ra=e=>yr(e,"number",Ws),Rr=e=>!!e&&Number.isInteger(Number(e)),m0=e=>e.endsWith("%")&&Ws(e.slice(0,-1)),ce=e=>Kp.test(e),Rn=e=>u0.test(e),g0=new Set(["length","size","percentage"]),y0=e=>yr(e,g0,Gp),v0=e=>yr(e,"position",Gp),x0=new Set(["image","url"]),b0=e=>yr(e,x0,C0),w0=e=>yr(e,"",_0),Pr=()=>!0,yr=(e,t,n)=>{const s=Kp.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):n(s[2]):!1},S0=e=>d0.test(e)&&!f0.test(e),Gp=()=>!1,_0=e=>h0.test(e),C0=e=>p0.test(e),E0=()=>{const e=Ce("colors"),t=Ce("spacing"),n=Ce("blur"),s=Ce("brightness"),r=Ce("borderColor"),i=Ce("borderRadius"),o=Ce("borderSpacing"),a=Ce("borderWidth"),c=Ce("contrast"),l=Ce("grayscale"),u=Ce("hueRotate"),d=Ce("invert"),h=Ce("gap"),y=Ce("gradientColorStops"),m=Ce("gradientColorStopPositions"),p=Ce("inset"),v=Ce("margin"),x=Ce("opacity"),b=Ce("padding"),w=Ce("saturate"),_=Ce("scale"),S=Ce("sepia"),A=Ce("skew"),E=Ce("space"),R=Ce("translate"),N=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",ce,t],O=()=>[ce,t],z=()=>["",hn,An],F=()=>["auto",Ws,ce],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],X=()=>["solid","dashed","dotted","double","none"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>["start","end","center","between","around","evenly","stretch"],re=()=>["","0",ce],fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ye=()=>[Ws,ce];return{cacheSize:500,separator:":",theme:{colors:[Pr],spacing:[hn,An],blur:["none","",Rn,ce],brightness:ye(),borderColor:[e],borderRadius:["none","","full",Rn,ce],borderSpacing:O(),borderWidth:z(),contrast:ye(),grayscale:re(),hueRotate:ye(),invert:re(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[m0,An],inset:I(),margin:I(),opacity:ye(),padding:O(),saturate:ye(),scale:ye(),sepia:re(),skew:ye(),space:O(),translate:O()},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:[...J(),ce]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],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",Rr,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:re()}],shrink:[{shrink:re()}],order:[{order:["first","last","none",Rr,ce]}],"grid-cols":[{"grid-cols":[Pr]}],"col-start-end":[{col:["auto",{span:["full",Rr,ce]},ce]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[Pr]}],"row-start-end":[{row:["auto",{span:[Rr,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",...Z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Z(),"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":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"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",Ra]}],"font-family":[{font:[Pr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ce]}],"line-clamp":[{"line-clamp":["none",Ws,Ra]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",hn,ce]}],"list-image":[{"list-image":["none",ce]}],"list-style-type":[{list:["none","disc","decimal",ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",hn,An]}],"underline-offset":[{"underline-offset":["auto",hn,ce]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"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:[...J(),v0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",y0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},b0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"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:[...X(),"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:X()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...X()]}],"outline-offset":[{"outline-offset":[hn,ce]}],"outline-w":[{outline:[hn,An]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[hn,An]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Rn,w0]}],"shadow-color":[{shadow:[Pr]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[s]}],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":[s]}],"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:[Rr,ce]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"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":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[hn,An,Ra]}],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"]}}},T0=a0(E0);function V(...e){return T0($p(e))}const A0=Lp,R0=Fp,P0=El,N0=Vp,Qp=g.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}));Qp.displayName=Ho.displayName;const j0=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"}}),Xp=g.forwardRef(({side:e="right",className:t,children:n,...s},r)=>f.jsxs(N0,{children:[f.jsx(Qp,{}),f.jsxs(qo,{ref:r,className:V(j0({side:e}),t),...s,children:[f.jsxs(El,{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(Tl,{className:"size-8"}),f.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));Xp.displayName=qo.displayName;const Yp=({className:e,...t})=>f.jsx("div",{className:V("flex flex-col space-y-2 text-center sm:text-left",e),...t});Yp.displayName="SheetHeader";const k0=g.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 O0=g.forwardRef(({className:e,...t},n)=>f.jsx(Ko,{ref:n,className:V("text-sm text-muted-foreground",e),...t}));O0.displayName=Ko.displayName;const M0=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",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"}}),Je=g.forwardRef(({className:e,variant:t,size:n,loading:s,children:r,asChild:i=!1,...o},a)=>{const c=i?mr:"button";return f.jsx(c,{className:V(M0({variant:t,size:n,className:e})),ref:a,...o,children:s?f.jsx(Wp,{className:"w-5 h-5 animate-spin"}):r})});Je.displayName="Button";const D0=(e,t,n,s)=>{var i,o,a,c;const r=[n,{code:t,...s||{}}];if((o=(i=e==null?void 0:e.services)==null?void 0:i.logger)!=null&&o.forward)return e.services.logger.forward(r,"warn","react-i18next::",!0);ms(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),(c=(a=e==null?void 0:e.services)==null?void 0:a.logger)!=null&&c.warn?e.services.logger.warn(...r):console!=null&&console.warn&&console.warn(...r)},Cd={},yc=(e,t,n,s)=>{ms(n)&&Cd[n]||(ms(n)&&(Cd[n]=new Date),D0(e,t,n,s))},Jp=(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,Jp(e,n))},Ed=(e,t,n,s)=>{if(ms(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return vc(e,n,s);n.forEach(r=>{e.options.ns.indexOf(r)<0&&e.options.ns.push(r)}),e.loadLanguages(t,Jp(e,s))},I0=(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:(s,r)=>{var i;if(((i=n.bindI18n)==null?void 0:i.indexOf("languageChanging"))>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!r(s.isLanguageChangingTo,e))return!1}}),ms=e=>typeof e=="string",L0=e=>typeof e=="object"&&e!==null,F0=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,V0={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},B0=e=>V0[e],$0=e=>e.replace(F0,B0);let xc={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:$0};const U0=(e={})=>{xc={...xc,...e}},z0=()=>xc;let em;const W0=e=>{em=e},H0=()=>em,Ak={type:"3rdParty",init(e){U0(e.options.react),W0(e)}},q0=g.createContext();class Z0{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const K0=(e,t)=>{const n=g.useRef();return g.useEffect(()=>{n.current=e},[e,t]),n.current},tm=(e,t,n,s)=>e.getFixedT(t,n,s),G0=(e,t,n,s)=>g.useCallback(tm(e,t,n,s),[e,t,n,s]),vr=(e,t={})=>{var _,S,A,E;const{i18n:n}=t,{i18n:s,defaultNS:r}=g.useContext(q0)||{},i=n||s||H0();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new Z0),!i){yc(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const R=(M,I)=>ms(I)?I:L0(I)&&ms(I.defaultValue)?I.defaultValue:Array.isArray(M)?M[M.length-1]:M,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={...z0(),...i.options.react,...t},{useSuspense:a,keyPrefix:c}=o;let l=e||r||((S=i.options)==null?void 0:S.defaultNS);l=ms(l)?[l]:l||["translation"],(E=(A=i.reportNamespaces).addUsedNamespaces)==null||E.call(A,l);const u=(i.isInitialized||i.initializedStoreOnce)&&l.every(R=>I0(R,i,o)),d=G0(i,t.lng||null,o.nsMode==="fallback"?l:l[0],c),h=()=>d,y=()=>tm(i,t.lng||null,o.nsMode==="fallback"?l:l[0],c),[m,p]=g.useState(h);let v=l.join();t.lng&&(v=`${t.lng}${v}`);const x=K0(v),b=g.useRef(!0);g.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 M=()=>{b.current&&p(y)};return R&&(i==null||i.on(R,M)),N&&(i==null||i.store.on(N,M)),()=>{b.current=!1,i&&(R==null||R.split(" ").forEach(I=>i.off(I,M))),N&&i&&N.split(" ").forEach(I=>i.store.off(I,M))}},[i,v]),g.useEffect(()=>{b.current&&u&&p(h)},[i,c,u]);const w=[m,i,u];if(w.t=m,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())})},nm=({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"})}),sm=({className:e,image:t,title:n,iconClassName:s})=>f.jsxs("article",{className:V("bg-surface_container relative hover:bg-teritary_surface_container transition-all md:px-6 px-2 md:h-[224px] h-[124px]",e),children:[f.jsx("div",{className:"bg-primary size-full -z-[10] absolute top-2.5 left-2.5"}),f.jsx("div",{className:V("md:size-[84px] size-12 bg-teritary p-3",s),children:f.jsx("img",{src:t.path,alt:"theme icon"})}),f.jsx("h3",{className:"md:mt-6 mt-2 md:text-xl text-sm",children:n})]}),Q0=({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})]}),X0=({className:e,title:t,text:n,img:s,link:r,btnText:i})=>f.jsxs("article",{className:V("md:px-8 md:py-6 p-4 relative overflow-hidden h-[296px] md:w-full w-[300px] text-on_primary",e),children:[f.jsx("div",{className:"absolute size-full z-10 top-0 left-0 bg-gradient-to-r from-25% from-primary to-primary/20 "}),f.jsx("img",{src:s,className:"absolute size-full top-0 right-0 object-cover"}),f.jsxs("div",{className:"relative z-20 h-full",children:[f.jsxs("div",{className:"",children:[f.jsx("h4",{className:"md:text-2xl text-lg mb-4 max-w-[444px] z-20 h-16",children:t}),f.jsx("p",{className:"md:text-base text-sm normal max-w-[360px] z-20",children:n})]}),f.jsx(Se,{className:"absolute bottom-0 left-0",target:"_blank",to:r,children:f.jsxs(Je,{className:"text-sm px-0 h-fit py-0 z-20",variant:"link",children:[i," ",f.jsx(kw,{})]})})]})]}),rm=({className:e,title:t,text:n,bottomClassName:s})=>f.jsxs("div",{className:V("rounded-t-[4px] overflow-hidden",e),children:[f.jsx("div",{className:"bg-teritary text-white flex items-center h-11 px-4",children:t}),f.jsx("div",{className:V("h-14 bg-surface_container semibold flex items-center text-lg px-4",s),children:n})]}),Y0=({className:e,text:t,title:n,image:s})=>f.jsxs("div",{className:V("flex items-center gap-4",e),children:[f.jsx("div",{className:"bg-secondary_container size-16 rounded-[2px] p-3",children:f.jsx("img",{src:s.path,alt:"contact icon",className:"size-full"})}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx("h5",{className:"text-sm text-[#454545]",children:n}),f.jsx("h4",{className:"text-[#171717] semibold",children:t})]})]}),Rl=g.createContext({});function Pl(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const Qo=g.createContext(null),Nl=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class J0 extends g.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const s=n.offsetParent,r=s instanceof HTMLElement&&s.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=r-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function eS({children:e,isPresent:t,anchorX:n}){const s=g.useId(),r=g.useRef(null),i=g.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=g.useContext(Nl);return g.useInsertionEffect(()=>{const{width:a,height:c,top:l,left:u,right:d}=i.current;if(t||!r.current||!a||!c)return;const h=n==="left"?`left: ${u}`:`right: ${d}`;r.current.dataset.motionPopId=s;const y=document.createElement("style");return o&&(y.nonce=o),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(`
[data-motion-pop-id="${s}"] {
position: absolute !important;
width: ${a}px !important;
height: ${c}px !important;
${h}px !important;
top: ${l}px !important;
}
`),()=>{document.head.removeChild(y)}},[t]),f.jsx(J0,{isPresent:t,childRef:r,sizeRef:i,children:g.cloneElement(e,{ref:r})})}const tS=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:r,presenceAffectsLayout:i,mode:o,anchorX:a})=>{const c=Pl(nS),l=g.useId(),u=g.useCallback(h=>{c.set(h,!0);for(const y of c.values())if(!y)return;s&&s()},[c,s]),d=g.useMemo(()=>({id:l,initial:t,isPresent:n,custom:r,onExitComplete:u,register:h=>(c.set(h,!1),()=>c.delete(h))}),i?[Math.random(),u]:[n,u]);return g.useMemo(()=>{c.forEach((h,y)=>c.set(y,!1))},[n]),g.useEffect(()=>{!n&&!c.size&&s&&s()},[n]),o==="popLayout"&&(e=f.jsx(eS,{isPresent:n,anchorX:a,children:e})),f.jsx(Qo.Provider,{value:d,children:e})};function nS(){return new Map}function im(e=!0){const t=g.useContext(Qo);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:r}=t,i=g.useId();g.useEffect(()=>{e&&r(i)},[e]);const o=g.useCallback(()=>e&&s&&s(i),[i,s,e]);return!n&&s?[!1,o]:[!0]}const Ki=e=>e.key||"";function Td(e){const t=[];return g.Children.forEach(e,n=>{g.isValidElement(n)&&t.push(n)}),t}const jl=typeof window<"u",om=jl?g.useLayoutEffect:g.useEffect,Rk=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:r=!0,mode:i="sync",propagate:o=!1,anchorX:a="left"})=>{const[c,l]=im(o),u=g.useMemo(()=>Td(e),[e]),d=o&&!c?[]:u.map(Ki),h=g.useRef(!0),y=g.useRef(u),m=Pl(()=>new Map),[p,v]=g.useState(u),[x,b]=g.useState(u);om(()=>{h.current=!1,y.current=u;for(let S=0;S<x.length;S++){const A=Ki(x[S]);d.includes(A)?m.delete(A):m.get(A)!==!0&&m.set(A,!1)}},[x,d.length,d.join("-")]);const w=[];if(u!==p){let S=[...u];for(let A=0;A<x.length;A++){const E=x[A],R=Ki(E);d.includes(R)||(S.splice(A,0,E),w.push(E))}i==="wait"&&w.length&&(S=w),b(Td(S)),v(u);return}const{forceRender:_}=g.useContext(Rl);return f.jsx(f.Fragment,{children:x.map(S=>{const A=Ki(S),E=o&&!c?!1:u===x||d.includes(A),R=()=>{if(m.has(A))m.set(A,!0);else return;let N=!0;m.forEach(M=>{M||(N=!1)}),N&&(_==null||_(),b(y.current),o&&(l==null||l()),s&&s())};return f.jsx(tS,{isPresent:E,initial:!h.current||n?void 0:!1,custom:E?void 0:t,presenceAffectsLayout:r,mode:i,onExitComplete:E?void 0:R,anchorX:a,children:S},A)})})},vt=e=>e;let bc=vt;const sS={skipAnimations:!1,useManualTiming:!1};function rS(e){let t=new Set,n=new Set,s=!1,r=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(l){i.has(l)&&(c.schedule(l),e()),l(o)}const c={schedule:(l,u=!1,d=!1)=>{const y=d&&s?t:n;return u&&i.add(l),y.has(l)||y.add(l),l},cancel:l=>{n.delete(l),i.delete(l)},process:l=>{if(o=l,s){r=!0;return}s=!0,[t,n]=[n,t],t.forEach(a),t.clear(),s=!1,r&&(r=!1,c.process(l))}};return c}const Gi=["read","resolveKeyframes","update","preRender","render","postRender"],iS=40;function am(e,t){let n=!1,s=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Gi.reduce((x,b)=>(x[b]=rS(i),x),{}),{read:a,resolveKeyframes:c,update:l,preRender:u,render:d,postRender:h}=o,y=()=>{const x=performance.now();n=!1,r.delta=s?1e3/60:Math.max(Math.min(x-r.timestamp,iS),1),r.timestamp=x,r.isProcessing=!0,a.process(r),c.process(r),l.process(r),u.process(r),d.process(r),h.process(r),r.isProcessing=!1,n&&t&&(s=!1,e(y))},m=()=>{n=!0,s=!0,r.isProcessing||e(y)};return{schedule:Gi.reduce((x,b)=>{const w=o[b];return x[b]=(_,S=!1,A=!1)=>(n||m(),w.schedule(_,S,A)),x},{}),cancel:x=>{for(let b=0;b<Gi.length;b++)o[Gi[b]].cancel(x)},state:r,steps:o}}const{schedule:Ee,cancel:$n,state:We,steps:Pa}=am(typeof requestAnimationFrame<"u"?requestAnimationFrame:vt,!0),cm=g.createContext({strict:!1}),Ad={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},or={};for(const e in Ad)or[e]={isEnabled:t=>Ad[e].some(n=>!!t[n])};function oS(e){for(const t in e)or[t]={...or[t],...e[t]}}const aS=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")||aS.has(e)}let lm=e=>!go(e);function cS(e){e&&(lm=t=>t.startsWith("on")?!go(t):e(t))}try{cS(require("@emotion/is-prop-valid").default)}catch{}function lS(e,t,n){const s={};for(const r in e)r==="values"&&typeof e.values=="object"||(lm(r)||n===!0&&go(r)||!t&&!go(r)||e.draggable&&r.startsWith("onDrag"))&&(s[r]=e[r]);return s}function uS(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...s)=>e(...s);return new Proxy(n,{get:(s,r)=>r==="create"?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const Xo=g.createContext({});function Xr(e){return typeof e=="string"||Array.isArray(e)}function Yo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const kl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ol=["initial",...kl];function Jo(e){return Yo(e.animate)||Ol.some(t=>Xr(e[t]))}function um(e){return!!(Jo(e)||e.variants)}function dS(e,t){if(Jo(e)){const{initial:n,animate:s}=e;return{initial:n===!1||Xr(n)?n:void 0,animate:Xr(s)?s:void 0}}return e.inherit!==!1?t:{}}function fS(e){const{initial:t,animate:n}=dS(e,g.useContext(Xo));return g.useMemo(()=>({initial:t,animate:n}),[Rd(t),Rd(n)])}function Rd(e){return Array.isArray(e)?e.join(" "):e}const hS=Symbol.for("motionComponentSymbol");function Is(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function pS(e,t,n){return g.useCallback(s=>{s&&e.onMount&&e.onMount(s),t&&(s?t.mount(s):t.unmount()),n&&(typeof n=="function"?n(s):Is(n)&&(n.current=s))},[t])}const Ml=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),mS="framerAppearId",dm="data-"+Ml(mS),{schedule:Dl,cancel:Pk}=am(queueMicrotask,!1),fm=g.createContext({});function gS(e,t,n,s,r){var i,o;const{visualElement:a}=g.useContext(Xo),c=g.useContext(cm),l=g.useContext(Qo),u=g.useContext(Nl).reducedMotion,d=g.useRef(null);s=s||c.renderer,!d.current&&s&&(d.current=s(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const h=d.current,y=g.useContext(fm);h&&!h.projection&&r&&(h.type==="html"||h.type==="svg")&&yS(d.current,n,r,y);const m=g.useRef(!1);g.useInsertionEffect(()=>{h&&m.current&&h.update(n,l)});const p=n[dm],v=g.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 om(()=>{h&&(m.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Dl.render(h.render),v.current&&h.animationState&&h.animationState.animateChanges())}),g.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 yS(e,t,n,s){const{layoutId:r,layout:i,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:hm(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!o||a&&Is(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:s,layoutScroll:c,layoutRoot:l})}function hm(e){if(e)return e.options.allowProjection!==!1?e.projection:hm(e.parent)}function vS({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:s,Component:r}){var i,o;e&&oS(e);function a(l,u){let d;const h={...g.useContext(Nl),...l,layoutId:xS(l)},{isStatic:y}=h,m=fS(l),p=s(l,y);if(!y&&jl){bS();const v=wS(h);d=v.MeasureLayout,m.visualElement=gS(r,p,h,t,v.ProjectionNode)}return f.jsxs(Xo.Provider,{value:m,children:[d&&m.visualElement?f.jsx(d,{visualElement:m.visualElement,...h}):null,n(r,l,pS(p,m.visualElement,u),p,y,m.visualElement)]})}a.displayName=`motion.${typeof r=="string"?r:`create(${(o=(i=r.displayName)!==null&&i!==void 0?i:r.name)!==null&&o!==void 0?o:""})`}`;const c=g.forwardRef(a);return c[hS]=r,c}function xS({layoutId:e}){const t=g.useContext(Rl).id;return t&&e!==void 0?t+"-"+e:e}function bS(e,t){g.useContext(cm).strict}function wS(e){const{drag:t,layout:n}=or;if(!t&&!n)return{};const s={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const SS=["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 Il(e){return typeof e!="string"||e.includes("-")?!1:!!(SS.indexOf(e)>-1||/[A-Z]/u.test(e))}function Pd(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function Ll(e,t,n,s){if(typeof t=="function"){const[r,i]=Pd(s);t=t(n!==void 0?n:e.custom,r,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,i]=Pd(s);t=t(n!==void 0?n:e.custom,r,i)}return t}const wc=e=>Array.isArray(e),_S=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),CS=e=>wc(e)?e[e.length-1]||0:e,Ye=e=>!!(e&&e.getVelocity);function ro(e){const t=Ye(e)?e.get():e;return _S(t)?t.toValue():t}function ES({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},s,r,i){const o={latestValues:TS(s,r,i,e),renderState:t()};return n&&(o.onMount=a=>n({props:s,current:a,...o}),o.onUpdate=a=>n(a)),o}const pm=e=>(t,n)=>{const s=g.useContext(Xo),r=g.useContext(Qo),i=()=>ES(e,t,s,r);return n?i():Pl(i)};function TS(e,t,n,s){const r={},i=s(e,{});for(const h in i)r[h]=ro(i[h]);let{initial:o,animate:a}=e;const c=Jo(e),l=um(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<h.length;y++){const m=Ll(e,h[y]);if(m){const{transitionEnd:p,transition:v,...x}=m;for(const b in x){let w=x[b];if(Array.isArray(w)){const _=u?w.length-1:0;w=w[_]}w!==null&&(r[b]=w)}for(const b in p)r[b]=p[b]}}}return r}const xr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ps=new Set(xr),mm=e=>t=>typeof t=="string"&&t.startsWith(e),Fl=mm("--"),AS=mm("var(--"),Vl=e=>AS(e)?RS.test(e.split("/*")[0].trim()):!1,RS=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,gm=(e,t)=>t&&typeof e=="number"?t.transform(e):e,wn=(e,t,n)=>n>t?t:n<e?e:n,br={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Yr={...br,transform:e=>wn(0,1,e)},Qi={...br,default:1},Ai=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),jn=Ai("deg"),sn=Ai("%"),ee=Ai("px"),PS=Ai("vh"),NS=Ai("vw"),Nd={...sn,parse:e=>sn.parse(e)/100,transform:e=>sn.transform(e*100)},jS={borderWidth:ee,borderTopWidth:ee,borderRightWidth:ee,borderBottomWidth:ee,borderLeftWidth:ee,borderRadius:ee,radius:ee,borderTopLeftRadius:ee,borderTopRightRadius:ee,borderBottomRightRadius:ee,borderBottomLeftRadius:ee,width:ee,maxWidth:ee,height:ee,maxHeight:ee,top:ee,right:ee,bottom:ee,left:ee,padding:ee,paddingTop:ee,paddingRight:ee,paddingBottom:ee,paddingLeft:ee,margin:ee,marginTop:ee,marginRight:ee,marginBottom:ee,marginLeft:ee,backgroundPositionX:ee,backgroundPositionY:ee},kS={rotate:jn,rotateX:jn,rotateY:jn,rotateZ:jn,scale:Qi,scaleX:Qi,scaleY:Qi,scaleZ:Qi,skew:jn,skewX:jn,skewY:jn,distance:ee,translateX:ee,translateY:ee,translateZ:ee,x:ee,y:ee,z:ee,perspective:ee,transformPerspective:ee,opacity:Yr,originX:Nd,originY:Nd,originZ:ee},jd={...br,transform:Math.round},Bl={...jS,...kS,zIndex:jd,size:ee,fillOpacity:Yr,strokeOpacity:Yr,numOctaves:jd},OS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},MS=xr.length;function DS(e,t,n){let s="",r=!0;for(let i=0;i<MS;i++){const o=xr[i],a=e[o];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(o.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const l=gm(a,Bl[o]);if(!c){r=!1;const u=OS[o]||o;s+=`${u}(${l}) `}n&&(t[o]=l)}}return s=s.trim(),n?s=n(t,r?"":s):r&&(s="none"),s}function $l(e,t,n){const{style:s,vars:r,transformOrigin:i}=e;let o=!1,a=!1;for(const c in t){const l=t[c];if(Ps.has(c)){o=!0;continue}else if(Fl(c)){r[c]=l;continue}else{const u=gm(l,Bl[c]);c.startsWith("origin")?(a=!0,i[c]=u):s[c]=u}}if(t.transform||(o||n?s.transform=DS(t,e.transform,n):s.transform&&(s.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=i;s.transformOrigin=`${c} ${l} ${u}`}}const IS={offset:"stroke-dashoffset",array:"stroke-dasharray"},LS={offset:"strokeDashoffset",array:"strokeDasharray"};function FS(e,t,n=1,s=0,r=!0){e.pathLength=1;const i=r?IS:LS;e[i.offset]=ee.transform(-s);const o=ee.transform(t),a=ee.transform(n);e[i.array]=`${o} ${a}`}function kd(e,t,n){return typeof e=="string"?e:ee.transform(t+n*e)}function VS(e,t,n){const s=kd(t,e.x,e.width),r=kd(n,e.y,e.height);return`${s} ${r}`}function Ul(e,{attrX:t,attrY:n,attrScale:s,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:c=0,...l},u,d){if($l(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:m}=e;h.transform&&(m&&(y.transform=h.transform),delete h.transform),m&&(r!==void 0||i!==void 0||y.transform)&&(y.transformOrigin=VS(m,r!==void 0?r:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),o!==void 0&&FS(h,o,a,c,!1)}const zl=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),ym=()=>({...zl(),attrs:{}}),Wl=e=>typeof e=="string"&&e.toLowerCase()==="svg";function vm(e,{style:t,vars:n},s,r){Object.assign(e.style,t,r&&r.getProjectionStyles(s));for(const i in n)e.style.setProperty(i,n[i])}const xm=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function bm(e,t,n,s){vm(e,t,void 0,s);for(const r in t.attrs)e.setAttribute(xm.has(r)?r:Ml(r),t.attrs[r])}const Jr={};function BS(e){for(const t in e)Jr[t]=e[t],Fl(t)&&(Jr[t].isCSSVariable=!0)}function wm(e,{layout:t,layoutId:n}){return Ps.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Jr[e]||e==="opacity")}function Hl(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(Ye(r[o])||t.style&&Ye(t.style[o])||wm(o,e)||((s=n==null?void 0:n.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}function Sm(e,t,n){const s=Hl(e,t,n);for(const r in e)if(Ye(e[r])||Ye(t[r])){const i=xr.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;s[i]=e[r]}return s}function $S(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Od=["x","y","width","height","cx","cy","r"],US={useVisualState:pm({scrapeMotionValuesFromProps:Sm,createRenderState:ym,onUpdate:({props:e,prevProps:t,current:n,renderState:s,latestValues:r})=>{if(!n)return;let i=!!e.drag;if(!i){for(const a in r)if(Ps.has(a)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let a=0;a<Od.length;a++){const c=Od[a];e[c]!==t[c]&&(o=!0)}o&&Ee.read(()=>{$S(n,s),Ee.render(()=>{Ul(s,r,Wl(n.tagName),e.transformTemplate),bm(n,s)})})}})},zS={useVisualState:pm({scrapeMotionValuesFromProps:Hl,createRenderState:zl})};function _m(e,t,n){for(const s in t)!Ye(t[s])&&!wm(s,n)&&(e[s]=t[s])}function WS({transformTemplate:e},t){return g.useMemo(()=>{const n=zl();return $l(n,t,e),Object.assign({},n.vars,n.style)},[t])}function HS(e,t){const n=e.style||{},s={};return _m(s,n,e),Object.assign(s,WS(e,t)),s}function qS(e,t){const n={},s=HS(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n}function ZS(e,t,n,s){const r=g.useMemo(()=>{const i=ym();return Ul(i,t,Wl(s),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};_m(i,e.style,e),r.style={...i,...r.style}}return r}function KS(e=!1){return(n,s,r,{latestValues:i},o)=>{const c=(Il(n)?ZS:qS)(s,i,o,n),l=lS(s,typeof n=="string",e),u=n!==g.Fragment?{...l,...c,ref:r}:{},{children:d}=s,h=g.useMemo(()=>Ye(d)?d.get():d,[d]);return g.createElement(n,{...u,children:h})}}function GS(e,t){return function(s,{forwardMotionProps:r}={forwardMotionProps:!1}){const o={...Il(s)?US:zS,preloadedFeatures:e,useRender:KS(r),createVisualElement:t,Component:s};return vS(o)}}function Cm(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}function ea(e,t,n){const s=e.getProps();return Ll(s,t,n!==void 0?n:s.custom,e)}function ql(e,t){return e?e[t]||e.default||e:void 0}const Em=new Set(["width","height","top","left","right","bottom",...xr]);let io;function QS(){io=void 0}const rn={now:()=>(io===void 0&&rn.set(We.isProcessing||sS.useManualTiming?We.timestamp:performance.now()),io),set:e=>{io=e,queueMicrotask(QS)}};function Zl(e,t){e.indexOf(t)===-1&&e.push(t)}function Kl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Gl{constructor(){this.subscriptions=[]}add(t){return Zl(this.subscriptions,t),()=>Kl(this.subscriptions,t)}notify(t,n,s){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,s);else for(let i=0;i<r;i++){const o=this.subscriptions[i];o&&o(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Tm(e,t){return t?e*(1e3/t):0}const Md=30,XS=e=>!isNaN(parseFloat(e));class YS{constructor(t,n={}){this.version="12.0.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,r=!0)=>{const i=rn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=rn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=XS(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 Gl);const s=this.events[t].add(n);return t==="change"?()=>{s(),Ee.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=rn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Md)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Md);return Tm(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 ei(e,t){return new YS(e,t)}function JS(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ei(n))}function e_(e,t){const n=ea(e,t);let{transitionEnd:s={},transition:r={},...i}=n||{};i={...i,...s};for(const o in i){const a=CS(i[o]);JS(e,o,a)}}function t_(e){return!!(Ye(e)&&e.add)}function Sc(e,t){const n=e.getValue("willChange");if(t_(n))return n.add(t)}function Am(e){return e.props[dm]}function Ql(e){let t;return()=>(t===void 0&&(t=e()),t)}const n_=Ql(()=>window.ScrollTimeline!==void 0);class s_{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let s=0;s<this.animations.length;s++)this.animations[s][t]=n}attachTimeline(t,n){const s=this.animations.map(r=>{if(n_()&&r.attachTimeline)return r.attachTimeline(t);if(typeof n=="function")return n(r)});return()=>{s.forEach((r,i)=>{r&&r(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class r_ extends s_{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const xn=e=>e*1e3,bn=e=>e/1e3;function Xl(e){return typeof e=="function"}function Dd(e,t){e.timeline=t,e.onfinish=null}const Yl=e=>Array.isArray(e)&&typeof e[0]=="number",i_={linearEasing:void 0};function o_(e,t){const n=Ql(e);return()=>{var s;return(s=i_[t])!==null&&s!==void 0?s:n()}}const yo=o_(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ar=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s},Rm=(e,t,n=10)=>{let s="";const r=Math.max(Math.round(t/n),2);for(let i=0;i<r;i++)s+=e(ar(0,r-1,i))+", ";return`linear(${s.substring(0,s.length-2)})`};function Pm(e){return!!(typeof e=="function"&&yo()||!e||typeof e=="string"&&(e in _c||yo())||Yl(e)||Array.isArray(e)&&e.every(Pm))}const Dr=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,_c={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Dr([0,.65,.55,1]),circOut:Dr([.55,0,1,.45]),backIn:Dr([.31,.01,.66,-.59]),backOut:Dr([.33,1.53,.69,.99])};function Nm(e,t){if(e)return typeof e=="function"&&yo()?Rm(e,t):Yl(e)?Dr(e):Array.isArray(e)?e.map(n=>Nm(n,t)||_c.easeOut):_c[e]}const jm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,a_=1e-7,c_=12;function l_(e,t,n,s,r){let i,o,a=0;do o=t+(n-t)/2,i=jm(o,s,r)-e,i>0?n=o:t=o;while(Math.abs(i)>a_&&++a<c_);return o}function Ri(e,t,n,s){if(e===t&&n===s)return vt;const r=i=>l_(i,0,1,e,n);return i=>i===0||i===1?i:jm(r(i),t,s)}const km=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Om=e=>t=>1-e(1-t),Mm=Ri(.33,1.53,.69,.99),Jl=Om(Mm),Dm=km(Jl),Im=e=>(e*=2)<1?.5*Jl(e):.5*(2-Math.pow(2,-10*(e-1))),eu=e=>1-Math.sin(Math.acos(e)),Lm=Om(eu),Fm=km(eu),Vm=e=>/^0[^.\s]+$/u.test(e);function u_(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Vm(e):!0}const $r=e=>Math.round(e*1e5)/1e5,tu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function d_(e){return e==null}const f_=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,nu=(e,t)=>n=>!!(typeof n=="string"&&f_.test(n)&&n.startsWith(e)||t&&!d_(n)&&Object.prototype.hasOwnProperty.call(n,t)),Bm=(e,t,n)=>s=>{if(typeof s!="string")return s;const[r,i,o,a]=s.match(tu);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},h_=e=>wn(0,255,e),Na={...br,transform:e=>Math.round(h_(e))},rs={test:nu("rgb","red"),parse:Bm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+Na.transform(e)+", "+Na.transform(t)+", "+Na.transform(n)+", "+$r(Yr.transform(s))+")"};function p_(e){let t="",n="",s="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,s+=s,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}}const Cc={test:nu("#"),parse:p_,transform:rs.transform},Ls={test:nu("hsl","hue"),parse:Bm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+sn.transform($r(t))+", "+sn.transform($r(n))+", "+$r(Yr.transform(s))+")"},Qe={test:e=>rs.test(e)||Cc.test(e)||Ls.test(e),parse:e=>rs.test(e)?rs.parse(e):Ls.test(e)?Ls.parse(e):Cc.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?rs.transform(e):Ls.transform(e)},m_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function g_(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(tu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(m_))===null||n===void 0?void 0:n.length)||0)>0}const $m="number",Um="color",y_="var",v_="var(",Id="${}",x_=/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 ti(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},r=[];let i=0;const a=t.replace(x_,c=>(Qe.test(c)?(s.color.push(i),r.push(Um),n.push(Qe.parse(c))):c.startsWith(v_)?(s.var.push(i),r.push(y_),n.push(c)):(s.number.push(i),r.push($m),n.push(parseFloat(c))),++i,Id)).split(Id);return{values:n,split:a,indexes:s,types:r}}function zm(e){return ti(e).values}function Wm(e){const{split:t,types:n}=ti(e),s=t.length;return r=>{let i="";for(let o=0;o<s;o++)if(i+=t[o],r[o]!==void 0){const a=n[o];a===$m?i+=$r(r[o]):a===Um?i+=Qe.transform(r[o]):i+=r[o]}return i}}const b_=e=>typeof e=="number"?0:e;function w_(e){const t=zm(e);return Wm(e)(t.map(b_))}const Un={test:g_,parse:zm,createTransformer:Wm,getAnimatableNone:w_},S_=new Set(["brightness","contrast","saturate","opacity"]);function __(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(tu)||[];if(!s)return e;const r=n.replace(s,"");let i=S_.has(t)?1:0;return s!==n&&(i*=100),t+"("+i+r+")"}const C_=/\b([a-z-]*)\(.*?\)/gu,Ec={...Un,getAnimatableNone:e=>{const t=e.match(C_);return t?t.map(__).join(" "):e}},E_={...Bl,color:Qe,backgroundColor:Qe,outlineColor:Qe,fill:Qe,stroke:Qe,borderColor:Qe,borderTopColor:Qe,borderRightColor:Qe,borderBottomColor:Qe,borderLeftColor:Qe,filter:Ec,WebkitFilter:Ec},su=e=>E_[e];function Hm(e,t){let n=su(e);return n!==Ec&&(n=Un),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const T_=new Set(["auto","none","0"]);function A_(e,t,n){let s=0,r;for(;s<e.length&&!r;){const i=e[s];typeof i=="string"&&!T_.has(i)&&ti(i).values.length&&(r=e[s]),s++}if(r&&n)for(const i of t)e[i]=Hm(n,r)}const Ld=e=>e===br||e===ee,Fd=(e,t)=>parseFloat(e.split(", ")[t]),Vd=(e,t)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const r=s.match(/^matrix3d\((.+)\)$/u);if(r)return Fd(r[1],t);{const i=s.match(/^matrix\((.+)\)$/u);return i?Fd(i[1],e):0}},R_=new Set(["x","y","z"]),P_=xr.filter(e=>!R_.has(e));function N_(e){const t=[];return P_.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const cr={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:Vd(4,13),y:Vd(5,14)};cr.translateX=cr.x;cr.translateY=cr.y;const gs=new Set;let Tc=!1,Ac=!1;function qm(){if(Ac){const e=Array.from(gs).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const r=N_(s);r.length&&(n.set(s,r),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const r=n.get(s);r&&r.forEach(([i,o])=>{var a;(a=s.getValue(i))===null||a===void 0||a.set(o)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Ac=!1,Tc=!1,gs.forEach(e=>e.complete()),gs.clear()}function Zm(){gs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ac=!0)})}function j_(){Zm(),qm()}class ru{constructor(t,n,s,r,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(gs.add(this),Tc||(Tc=!0,Ee.read(Zm),Ee.resolveKeyframes(qm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:r}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const o=r==null?void 0:r.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(s&&n){const c=s.readValue(n,a);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=a),r&&o===void 0&&r.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),gs.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,gs.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Km=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),k_=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function O_(e){const t=k_.exec(e);if(!t)return[,];const[,n,s,r]=t;return[`--${n??s}`,r]}function Gm(e,t,n=1){const[s,r]=O_(e);if(!s)return;const i=window.getComputedStyle(t).getPropertyValue(s);if(i){const o=i.trim();return Km(o)?parseFloat(o):o}return Vl(r)?Gm(r,t,n+1):r}const Qm=e=>t=>t.test(e),M_={test:e=>e==="auto",parse:e=>e},Xm=[br,ee,sn,jn,NS,PS,M_],Bd=e=>Xm.find(Qm(e));class Ym extends ru{constructor(t,n,s,r,i){super(t,n,s,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let l=t[c];if(typeof l=="string"&&(l=l.trim(),Vl(l))){const u=Gm(l,n.current);u!==void 0&&(t[c]=u),c===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Em.has(s)||t.length!==2)return;const[r,i]=t,o=Bd(r),a=Bd(i);if(o!==a)if(Ld(o)&&Ld(a))for(let c=0;c<t.length;c++){const l=t[c];typeof l=="string"&&(t[c]=parseFloat(l))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let r=0;r<t.length;r++)u_(t[r])&&s.push(r);s.length&&A_(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=cr[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(s,r).jump(r,!1)}measureEndState(){var t;const{element:n,name:s,unresolvedKeyframes:r}=this;if(!n||!n.current)return;const i=n.getValue(s);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,a=r[o];r[o]=cr[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,l])=>{n.getValue(c).set(l)}),this.resolveNoneKeyframes()}}const $d=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Un.test(e)||e==="0")&&!e.startsWith("url("));function D_(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function I_(e,t,n,s){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=$d(r,t),a=$d(i,t);return!o||!a?!1:D_(e)||(n==="spring"||Xl(n))&&s}const L_=e=>e!==null;function ta(e,{repeat:t,repeatType:n="loop"},s){const r=e.filter(L_),i=t&&n!=="loop"&&t%2===1?0:r.length-1;return!i||s===void 0?r[i]:s}const F_=40;class Jm{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=rn.now(),this.options={autoplay:t,delay:n,type:s,repeat:r,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>F_?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&j_(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=rn.now(),this.hasAttemptedResolve=!0;const{name:s,type:r,velocity:i,delay:o,onComplete:a,onUpdate:c,isGenerator:l}=this.options;if(!l&&!I_(t,s,r,i))if(o)this.options.duration=0;else{c&&c(ta(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 Rc=2e4;function eg(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<Rc;)t+=n,s=e.next(t);return t>=Rc?1/0:t}const Re=(e,t,n)=>e+(t-e)*n;function ja(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function V_({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let r=0,i=0,o=0;if(!t)r=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;r=ja(c,a,e+1/3),i=ja(c,a,e),o=ja(c,a,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:s}}function vo(e,t){return n=>n>0?t:e}const ka=(e,t,n)=>{const s=e*e,r=n*(t*t-s)+s;return r<0?0:Math.sqrt(r)},B_=[Cc,rs,Ls],$_=e=>B_.find(t=>t.test(e));function Ud(e){const t=$_(e);if(!t)return!1;let n=t.parse(e);return t===Ls&&(n=V_(n)),n}const zd=(e,t)=>{const n=Ud(e),s=Ud(t);if(!n||!s)return vo(e,t);const r={...n};return i=>(r.red=ka(n.red,s.red,i),r.green=ka(n.green,s.green,i),r.blue=ka(n.blue,s.blue,i),r.alpha=Re(n.alpha,s.alpha,i),rs.transform(r))},U_=(e,t)=>n=>t(e(n)),Pi=(...e)=>e.reduce(U_),Pc=new Set(["none","hidden"]);function z_(e,t){return Pc.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function W_(e,t){return n=>Re(e,t,n)}function iu(e){return typeof e=="number"?W_:typeof e=="string"?Vl(e)?vo:Qe.test(e)?zd:Z_:Array.isArray(e)?tg:typeof e=="object"?Qe.test(e)?zd:H_:vo}function tg(e,t){const n=[...e],s=n.length,r=e.map((i,o)=>iu(i)(i,t[o]));return i=>{for(let o=0;o<s;o++)n[o]=r[o](i);return n}}function H_(e,t){const n={...e,...t},s={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(s[r]=iu(e[r])(e[r],t[r]));return r=>{for(const i in s)n[i]=s[i](r);return n}}function q_(e,t){var n;const s=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],a=e.indexes[o][r[o]],c=(n=e.values[a])!==null&&n!==void 0?n:0;s[i]=c,r[o]++}return s}const Z_=(e,t)=>{const n=Un.createTransformer(t),s=ti(e),r=ti(t);return s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length?Pc.has(e)&&!r.values.length||Pc.has(t)&&!s.values.length?z_(e,t):Pi(tg(q_(s,r),r.values),n):vo(e,t)};function ng(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Re(e,t,n):iu(e)(e,t)}const K_=5;function sg(e,t,n){const s=Math.max(t-K_,0);return Tm(n-e(s),t-s)}const je={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Wd=.001;function G_({duration:e=je.duration,bounce:t=je.bounce,velocity:n=je.velocity,mass:s=je.mass}){let r,i,o=1-t;o=wn(je.minDamping,je.maxDamping,o),e=wn(je.minDuration,je.maxDuration,bn(e)),o<1?(r=l=>{const u=l*o,d=u*e,h=u-n,y=Nc(l,o),m=Math.exp(-d);return Wd-h/y*m},i=l=>{const d=l*o*e,h=d*n+n,y=Math.pow(o,2)*Math.pow(l,2)*e,m=Math.exp(-d),p=Nc(Math.pow(l,2),o);return(-r(l)+Wd>0?-1:1)*((h-y)*m)/p}):(r=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=X_(r,i,a);if(e=xn(e),isNaN(c))return{stiffness:je.stiffness,damping:je.damping,duration:e};{const l=Math.pow(c,2)*s;return{stiffness:l,damping:o*2*Math.sqrt(s*l),duration:e}}}const Q_=12;function X_(e,t,n){let s=n;for(let r=1;r<Q_;r++)s=s-e(s)/t(s);return s}function Nc(e,t){return e*Math.sqrt(1-t*t)}const Y_=["duration","bounce"],J_=["stiffness","damping","mass"];function Hd(e,t){return t.some(n=>e[n]!==void 0)}function eC(e){let t={velocity:je.velocity,stiffness:je.stiffness,damping:je.damping,mass:je.mass,isResolvedFromDuration:!1,...e};if(!Hd(e,J_)&&Hd(e,Y_))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),r=s*s,i=2*wn(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:je.mass,stiffness:r,damping:i}}else{const n=G_(e);t={...t,...n,mass:je.mass},t.isResolvedFromDuration=!0}return t}function rg(e=je.visualDuration,t=je.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:r}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:c,damping:l,mass:u,duration:d,velocity:h,isResolvedFromDuration:y}=eC({...n,velocity:-bn(n.velocity||0)}),m=h||0,p=l/(2*Math.sqrt(c*u)),v=o-i,x=bn(Math.sqrt(c/u)),b=Math.abs(v)<5;s||(s=b?je.restSpeed.granular:je.restSpeed.default),r||(r=b?je.restDelta.granular:je.restDelta.default);let w;if(p<1){const S=Nc(x,p);w=A=>{const E=Math.exp(-p*x*A);return o-E*((m+p*x*v)/S*Math.sin(S*A)+v*Math.cos(S*A))}}else if(p===1)w=S=>o-Math.exp(-x*S)*(v+(m+x*v)*S);else{const S=x*Math.sqrt(p*p-1);w=A=>{const E=Math.exp(-p*x*A),R=Math.min(S*A,300);return o-E*((m+p*x*v)*Math.sinh(R)+S*v*Math.cosh(R))/S}}const _={calculatedDuration:y&&d||null,next:S=>{const A=w(S);if(y)a.done=S>=d;else{let E=0;p<1&&(E=S===0?xn(m):sg(w,S,A));const R=Math.abs(E)<=s,N=Math.abs(o-A)<=r;a.done=R&&N}return a.value=a.done?o:A,a},toString:()=>{const S=Math.min(eg(_),Rc),A=Rm(E=>_.next(S*E).value,S,30);return S+"ms "+A}};return _}function qd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:r=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&&R<a||c!==void 0&&R>c,m=R=>a===void 0?c:c===void 0||Math.abs(a-R)<Math.abs(c-R)?a:c;let p=n*t;const v=d+p,x=o===void 0?v:o(v);x!==v&&(p=x-d);const b=R=>-p*Math.exp(-R/s),w=R=>x+b(R),_=R=>{const N=b(R),M=w(R);h.done=Math.abs(N)<=l,h.value=h.done?x:M};let S,A;const E=R=>{y(h.value)&&(S=R,A=rg({keyframes:[h.value,m(h.value)],velocity:sg(w,R,h.value),damping:r,stiffness:i,restDelta:l,restSpeed:u}))};return E(0),{calculatedDuration:null,next:R=>{let N=!1;return!A&&S===void 0&&(N=!0,_(R),E(R)),S!==void 0&&R>=S?A.next(R-S):(!N&&_(R),h)}}}const tC=Ri(.42,0,1,1),nC=Ri(0,0,.58,1),ig=Ri(.42,0,.58,1),sC=e=>Array.isArray(e)&&typeof e[0]!="number",Zd={linear:vt,easeIn:tC,easeInOut:ig,easeOut:nC,circIn:eu,circInOut:Fm,circOut:Lm,backIn:Jl,backInOut:Dm,backOut:Mm,anticipate:Im},Kd=e=>{if(Yl(e)){bc(e.length===4);const[t,n,s,r]=e;return Ri(t,n,s,r)}else if(typeof e=="string")return bc(Zd[e]!==void 0),Zd[e];return e};function rC(e,t,n){const s=[],r=n||ng,i=e.length-1;for(let o=0;o<i;o++){let a=r(e[o],e[o+1]);if(t){const c=Array.isArray(t)?t[o]||vt:t;a=Pi(c,a)}s.push(a)}return s}function iC(e,t,{clamp:n=!0,ease:s,mixer:r}={}){const i=e.length;if(bc(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=rC(t,s,r),c=a.length,l=u=>{if(o&&u<e[0])return t[0];let d=0;if(c>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const h=ar(e[d],e[d+1],u);return a[d](h)};return n?u=>l(wn(e[0],e[i-1],u)):l}function oC(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const r=ar(0,t,s);e.push(Re(n,1,r))}}function aC(e){const t=[0];return oC(t,e.length-1),t}function cC(e,t){return e.map(n=>n*t)}function lC(e,t){return e.map(()=>t||ig).splice(0,e.length-1)}function xo({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const r=sC(s)?s.map(Kd):Kd(s),i={done:!1,value:t[0]},o=cC(n&&n.length===t.length?n:aC(t),e),a=iC(o,t,{ease:Array.isArray(r)?r:lC(t,r)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const uC=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ee.update(t,!0),stop:()=>$n(t),now:()=>We.isProcessing?We.timestamp:rn.now()}},dC={decay:qd,inertia:qd,tween:xo,keyframes:xo,spring:rg},fC=e=>e/100;class ou extends Jm{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:s,element:r,keyframes:i}=this.options,o=(r==null?void 0:r.KeyframeResolver)||ru,a=(c,l)=>this.onKeyframesResolved(c,l);this.resolver=new o(i,a,n,s,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=this.options,a=Xl(n)?n:dC[n]||xo;let c,l;a!==xo&&typeof t[0]!="number"&&(c=Pi(fC,ng(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=eg(u));const{calculatedDuration:d}=u,h=d+r,y=h*(s+1)-r;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:s}=this;if(!s){const{keyframes:R}=this.options;return{done:!0,value:R[R.length-1]}}const{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:c,calculatedDuration:l,totalDuration:u,resolvedDuration:d}=s;if(this.startTime===null)return i.next(0);const{delay:h,repeat:y,repeatType:m,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),M=R%1;!M&&R>=1&&(M=1),M===1&&N--,N=Math.min(N,y+1),!!(N%2)&&(m==="reverse"?(M=1-M,p&&(M-=p/d)):m==="mirror"&&(_=o)),w=wn(0,1,M)*d}const S=b?{done:!1,value:c[0]}:_.next(w);a&&(S.value=a(S.value));let{done:A}=S;!b&&l!==null&&(A=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return E&&r!==void 0&&(S.value=ta(c,this.options,r)),v&&v(S.value),E&&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=uC,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const hC=new Set(["opacity","clipPath","filter","transform"]);function pC(e,t,n,{delay:s=0,duration:r=300,repeat:i=0,repeatType:o="loop",ease:a="easeInOut",times:c}={}){const l={[t]:n};c&&(l.offset=c);const u=Nm(a,r);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:s,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const mC=Ql(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),bo=10,gC=2e4;function yC(e){return Xl(e.type)||e.type==="spring"||!Pm(e.ease)}function vC(e,t){const n=new ou({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:e[0]};const r=[];let i=0;for(;!s.done&&i<gC;)s=n.sample(i),r.push(s.value),i+=bo;return{times:void 0,keyframes:r,duration:i-bo,ease:"linear"}}const og={anticipate:Im,backInOut:Dm,circInOut:Fm};function xC(e){return e in og}class Gd extends Jm{constructor(t){super(t);const{name:n,motionValue:s,element:r,keyframes:i}=this.options;this.resolver=new Ym(i,(o,a)=>this.onKeyframesResolved(o,a),n,s,r),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:s=300,times:r,ease:i,type:o,motionValue:a,name:c,startTime:l}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&yo()&&xC(i)&&(i=og[i]),yC(this.options)){const{onComplete:d,onUpdate:h,motionValue:y,element:m,...p}=this.options,v=vC(t,p);t=v.keyframes,t.length===1&&(t[1]=t[0]),s=v.duration,r=v.times,i=v.ease,o="keyframes"}const u=pC(a.owner.current,c,t,{...this.options,duration:s,times:r,ease:i});return u.startTime=l??this.calcStartTime(),this.pendingTimeline?(Dd(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(ta(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:s,times:r,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return 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:s}=n;s.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:s}=n;s.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return vt;const{animation:s}=n;Dd(s,t)}return vt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:s,duration:r,type:i,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:u,onComplete:d,element:h,...y}=this.options,m=new ou({...y,keyframes:s,duration:r,type:i,ease:o,times:a,isGenerator:!0}),p=xn(this.time);l.setWithVelocity(m.sample(p-bo).value,m.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:s,repeatDelay:r,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 mC()&&s&&hC.has(s)&&!c&&!l&&!r&&i!=="mirror"&&o!==0&&a!=="inertia"}}const bC={type:"spring",stiffness:500,damping:25,restSpeed:10},wC=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),SC={type:"keyframes",duration:.8},_C={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},CC=(e,{keyframes:t})=>t.length>2?SC:Ps.has(e)?e.startsWith("scale")?wC(t[1]):bC:_C;function EC({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:r,repeat:i,repeatType:o,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const au=(e,t,n,s={},r,i)=>o=>{const a=ql(s,e)||{},c=a.delay||s.delay||0;let{elapsed:l=0}=s;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:r};EC(a)||(u={...u,...CC(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=ta(u.keyframes,a);if(h!==void 0)return Ee.update(()=>{u.onUpdate(h),u.onComplete()}),new r_([])}return!i&&Gd.supports(u)?new Gd(u):new ou(u)};function TC({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function ag(e,t,{delay:n=0,transitionOverride:s,type:r}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...c}=t;s&&(o=s);const l=[],u=r&&e.animationState&&e.animationState.getState()[r];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&&TC(u,d))continue;const m={delay:n,...ql(o||{},d)};let p=!1;if(window.MotionHandoffAnimation){const x=Am(e);if(x){const b=window.MotionHandoffAnimation(x,d,Ee);b!==null&&(m.startTime=b,p=!0)}}Sc(e,d),h.start(au(d,h,y,e.shouldReduceMotion&&Em.has(d)?{type:!1}:m,e,p));const v=h.animation;v&&l.push(v)}return a&&Promise.all(l).then(()=>{Ee.update(()=>{a&&e_(e,a)})}),l}function jc(e,t,n={}){var s;const r=ea(e,t,n.type==="exit"?(s=e.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(ag(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:h}=i;return AC(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 AC(e,t,n=0,s=0,r=1,i){const o=[],a=(e.variantChildren.size-1)*s,c=r===1?(l=0)=>l*s:(l=0)=>a-l*s;return Array.from(e.variantChildren).sort(RC).forEach((l,u)=>{l.notify("AnimationStart",t),o.push(jc(l,t,{...i,delay:n+c(u)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(o)}function RC(e,t){return e.sortNodePosition(t)}function PC(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const r=t.map(i=>jc(e,i,n));s=Promise.all(r)}else if(typeof t=="string")s=jc(e,t,n);else{const r=typeof t=="function"?ea(e,t,n.custom):t;s=Promise.all(ag(e,r,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const NC=Ol.length;function cg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?cg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<NC;n++){const s=Ol[n],r=e.props[s];(Xr(r)||r===!1)&&(t[s]=r)}return t}const jC=[...kl].reverse(),kC=kl.length;function OC(e){return t=>Promise.all(t.map(({animation:n,options:s})=>PC(e,n,s)))}function MC(e){let t=OC(e),n=Qd(),s=!0;const r=c=>(l,u)=>{var d;const h=ea(e,u,c==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(h){const{transition:y,transitionEnd:m,...p}=h;l={...l,...p,...m}}return l};function i(c){t=c(e)}function o(c){const{props:l}=e,u=cg(e.parent)||{},d=[],h=new Set;let y={},m=1/0;for(let v=0;v<kC;v++){const x=jC[v],b=n[x],w=l[x]!==void 0?l[x]:u[x],_=Xr(w),S=x===c?b.isActive:null;S===!1&&(m=v);let A=w===u[x]&&w!==l[x]&&_;if(A&&s&&e.manuallyAnimateOnMount&&(A=!1),b.protectedKeys={...y},!b.isActive&&S===null||!w&&!b.prevProp||Yo(w)||typeof w=="boolean")continue;const E=DC(b.prevProp,w);let R=E||x===c&&b.isActive&&!A&&_||v>m&&_,N=!1;const M=Array.isArray(w)?w:[w];let I=M.reduce(r(x),{});S===!1&&(I={});const{prevResolvedValues:O={}}=b,z={...O,...I},F=q=>{R=!0,h.has(q)&&(N=!0,h.delete(q)),b.needsAnimating[q]=!0;const Z=e.getValue(q);Z&&(Z.liveStyle=!1)};for(const q in z){const Z=I[q],re=O[q];if(y.hasOwnProperty(q))continue;let fe=!1;wc(Z)&&wc(re)?fe=!Cm(Z,re):fe=Z!==re,fe?Z!=null?F(q):h.add(q):Z!==void 0&&h.has(q)?F(q):b.protectedKeys[q]=!0}b.prevProp=w,b.prevResolvedValues=I,b.isActive&&(y={...y,...I}),s&&e.blockInitialAnimation&&(R=!1),R&&(!(A&&E)||N)&&d.push(...M.map(q=>({animation:q,options:{type:x}})))}if(h.size){const v={};h.forEach(x=>{const b=e.getBaseTarget(x),w=e.getValue(x);w&&(w.liveStyle=!0),v[x]=b??null}),d.push({animation:v})}let p=!!d.length;return s&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(p=!1),s=!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(),s=!0}}}function DC(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Cm(t,e):!1}function ts(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Qd(){return{animate:ts(!0),whileInView:ts(),whileHover:ts(),whileTap:ts(),whileDrag:ts(),whileFocus:ts(),exit:ts()}}class Qn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class IC extends Qn{constructor(t){super(t),t.animationState||(t.animationState=MC(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 LC=0;class FC extends Qn{constructor(){super(...arguments),this.id=LC++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const VC={animation:{Feature:IC},exit:{Feature:FC}},kt={x:!1,y:!1};function lg(){return kt.x||kt.y}function BC(e){return e==="x"||e==="y"?kt[e]?null:(kt[e]=!0,()=>{kt[e]=!1}):kt.x||kt.y?null:(kt.x=kt.y=!0,()=>{kt.x=kt.y=!1})}const cu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ni(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function Ni(e){return{point:{x:e.pageX,y:e.pageY}}}const $C=e=>t=>cu(t)&&e(t,Ni(t));function Ur(e,t,n,s){return ni(e,t,$C(n),s)}const Xd=(e,t)=>Math.abs(e-t);function UC(e,t){const n=Xd(e.x,t.x),s=Xd(e.y,t.y);return Math.sqrt(n**2+s**2)}class ug{constructor(t,n,{transformPagePoint:s,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Ma(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,y=UC(d.offset,{x:0,y:0})>=3;if(!h&&!y)return;const{point:m}=d,{timestamp:p}=We;this.history.push({...m,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=Oa(h,this.transformPagePoint),Ee.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:y,onSessionEnd:m,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Ma(d.type==="pointercancel"?this.lastMoveEventInfo:Oa(h,this.transformPagePoint),this.history);this.startEvent&&y&&y(d,v),m&&m(d,v)},!cu(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=s,this.contextWindow=r||window;const o=Ni(t),a=Oa(o,this.transformPagePoint),{point:c}=a,{timestamp:l}=We;this.history=[{...c,timestamp:l}];const{onSessionStart:u}=n;u&&u(t,Ma(a,this.history)),this.removeListeners=Pi(Ur(this.contextWindow,"pointermove",this.handlePointerMove),Ur(this.contextWindow,"pointerup",this.handlePointerUp),Ur(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),$n(this.updatePoint)}}function Oa(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 Ma({point:e},t){return{point:e,delta:Yd(e,dg(t)),offset:Yd(e,zC(t)),velocity:WC(t,.1)}}function zC(e){return e[0]}function dg(e){return e[e.length-1]}function WC(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const r=dg(e);for(;n>=0&&(s=e[n],!(r.timestamp-s.timestamp>xn(t)));)n--;if(!s)return{x:0,y:0};const i=bn(r.timestamp-s.timestamp);if(i===0)return{x:0,y:0};const o={x:(r.x-s.x)/i,y:(r.y-s.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const fg=1e-4,HC=1-fg,qC=1+fg,hg=.01,ZC=0-hg,KC=0+hg;function ot(e){return e.max-e.min}function GC(e,t,n){return Math.abs(e-t)<=n}function Jd(e,t,n,s=.5){e.origin=s,e.originPoint=Re(t.min,t.max,e.origin),e.scale=ot(n)/ot(t),e.translate=Re(n.min,n.max,e.origin)-e.originPoint,(e.scale>=HC&&e.scale<=qC||isNaN(e.scale))&&(e.scale=1),(e.translate>=ZC&&e.translate<=KC||isNaN(e.translate))&&(e.translate=0)}function zr(e,t,n,s){Jd(e.x,t.x,n.x,s?s.originX:void 0),Jd(e.y,t.y,n.y,s?s.originY:void 0)}function ef(e,t,n){e.min=n.min+t.min,e.max=e.min+ot(t)}function QC(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+ot(t)}function Wr(e,t,n){tf(e.x,t.x,n.x),tf(e.y,t.y,n.y)}function XC(e,{min:t,max:n},s){return t!==void 0&&e<t?e=s?Re(t,e,s.min):Math.max(e,t):n!==void 0&&e>n&&(e=s?Re(n,e,s.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 YC(e,{top:t,left:n,bottom:s,right:r}){return{x:nf(e.x,n,r),y:nf(e.y,t,s)}}function sf(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,s]=[s,n]),{min:n,max:s}}function JC(e,t){return{x:sf(e.x,t.x),y:sf(e.y,t.y)}}function eE(e,t){let n=.5;const s=ot(e),r=ot(t);return r>s?n=ar(t.min,t.max-s,e.min):s>r&&(n=ar(e.min,e.max-r,t.min)),wn(0,1,n)}function tE(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 nE(e=kc){return e===!1?e=0:e===!0&&(e=kc),{x:rf(e,"left","right"),y:rf(e,"top","bottom")}}function rf(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}),Fs=()=>({x:af(),y:af()}),cf=()=>({min:0,max:0}),Me=()=>({x:cf(),y:cf()});function Et(e){return[e("x"),e("y")]}function pg({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function sE({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function rE(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Da(e){return e===void 0||e===1}function Oc({scale:e,scaleX:t,scaleY:n}){return!Da(e)||!Da(t)||!Da(n)}function ns(e){return Oc(e)||mg(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function mg(e){return lf(e.x)||lf(e.y)}function lf(e){return e&&e!=="0%"}function wo(e,t,n){const s=e-n,r=t*s;return n+r}function uf(e,t,n,s,r){return r!==void 0&&(e=wo(e,r,s)),wo(e,n,s)+t}function Mc(e,t=0,n=1,s,r){e.min=uf(e.min,t,n,s,r),e.max=uf(e.max,t,n,s,r)}function gg(e,{x:t,y:n}){Mc(e.x,t.translate,t.scale,t.originPoint),Mc(e.y,n.translate,n.scale,n.originPoint)}const df=.999999999999,ff=1.0000000000001;function iE(e,t,n,s=!1){const r=n.length;if(!r)return;t.x=t.y=1;let i,o;for(let a=0;a<r;a++){i=n[a],o=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(s&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Bs(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,gg(e,o)),s&&ns(i.latestValues)&&Bs(e,i.latestValues))}t.x<ff&&t.x>df&&(t.x=1),t.y<ff&&t.y>df&&(t.y=1)}function Vs(e,t){e.min=e.min+t,e.max=e.max+t}function hf(e,t,n,s,r=.5){const i=Re(e.min,e.max,r);Mc(e,t,n,i,s)}function Bs(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 yg(e,t){return pg(rE(e.getBoundingClientRect(),t))}function oE(e,t,n){const s=yg(e,n),{scroll:r}=t;return r&&(Vs(s.x,r.offset.x),Vs(s.y,r.offset.y)),s}const vg=({current:e})=>e?e.ownerDocument.defaultView:null,aE=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:s}=this.visualElement;if(s&&s.isPresent===!1)return;const r=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ni(u).point)},i=(u,d)=>{const{drag:h,dragPropagation:y,onDragStart:m}=this.getProps();if(h&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=BC(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),Et(v=>{let x=this.getAxisMotionValue(v).get()||0;if(sn.test(x)){const{projection:b}=this.visualElement;if(b&&b.layout){const w=b.layout.layoutBox[v];w&&(x=ot(w)*(parseFloat(x)/100))}}this.originPoint[v]=x}),m&&Ee.postRender(()=>m(u,d)),Sc(this.visualElement,"transform");const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:h,dragDirectionLock:y,onDirectionLock:m,onDrag:p}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=d;if(y&&this.currentDirection===null){this.currentDirection=lE(v),this.currentDirection!==null&&m&&m(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=()=>Et(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 ug(t,{onSessionStart:r,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:vg(this.visualElement)})}stop(t,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:i}=this.getProps();i&&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:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,s){const{drag:r}=this.getProps();if(!s||!Xi(t,r,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(o=XC(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:s}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Is(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=YC(r.layoutBox,n):this.constraints=!1,this.elastic=nE(s),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Et(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=tE(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Is(t))return!1;const s=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=oE(s,r.root,this.visualElement.getTransformPagePoint());let o=JC(r.layout.layoutBox,i);if(n){const a=n(sE(o));this.hasMutatedConstraints=!!a,a&&(o=pg(a))}return o}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=Et(u=>{if(!Xi(u,n,this.currentDirection))return;let d=c[u]||{};o&&(d={min:0,max:0});const h=r?200:1e6,y=r?40:1e7,m={type:"inertia",velocity:s?t[u]:0,bounceStiffness:h,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,m)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return Sc(this.visualElement,t),s.start(au(t,s,0,n,this.visualElement,!1))}stopAnimation(){Et(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Et(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),r=s[n];return r||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){Et(n=>{const{drag:s}=this.getProps();if(!Xi(n,s,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(n);if(r&&r.layout){const{min:o,max:a}=r.layout.layoutBox[n];i.set(t[n]-Re(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Is(n)||!s||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Et(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const c=a.get();r[o]=eE({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),Et(o=>{if(!Xi(o,t,null))return;const a=this.getAxisMotionValue(o),{min:c,max:l}=this.constraints[o];a.set(Re(c,l,r[o]))})}addListeners(){if(!this.visualElement.current)return;aE.set(this.visualElement,this);const t=this.visualElement.current,n=Ur(t,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),s=()=>{const{dragConstraints:c}=this.getProps();Is(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",s);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Ee.read(s);const o=ni(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(Et(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:s=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=kc,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Xi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function lE(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class uE extends Qn{constructor(t){super(t),this.removeGroupControls=vt,this.removeListeners=vt,this.controls=new cE(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||vt}unmount(){this.removeGroupControls(),this.removeListeners()}}const pf=e=>(t,n)=>{e&&Ee.postRender(()=>e(t,n))};class dE extends Qn{constructor(){super(...arguments),this.removePointerDownListener=vt}onPointerDown(t){this.session=new ug(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:vg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:r}=this.node.getProps();return{onSessionStart:pf(t),onStart:pf(n),onMove:s,onEnd:(i,o)=>{delete this.session,r&&Ee.postRender(()=>r(i,o))}}}mount(){this.removePointerDownListener=Ur(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 Nr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ee.test(e))e=parseFloat(e);else return e;const n=mf(e,t.target.x),s=mf(e,t.target.y);return`${n}% ${s}%`}},fE={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,r=Un.parse(e);if(r.length>5)return s;const i=Un.createTransformer(e),o=typeof r[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;r[0+o]/=a,r[1+o]/=c;const l=Re(a,c,.5);return typeof r[2+o]=="number"&&(r[2+o]/=l),typeof r[3+o]=="number"&&(r[3+o]/=l),i(r)}};class hE extends g.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:r}=this.props,{projection:i}=t;BS(pE),i&&(n.group&&n.group.add(i),s&&s.register&&r&&s.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),oo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:s,drag:r,isPresent:i}=this.props,o=s.projection;return o&&(o.isPresent=i,r||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||Ee.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Dl.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),s&&s.deregister&&s.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function xg(e){const[t,n]=im(),s=g.useContext(Rl);return f.jsx(hE,{...e,layoutGroup:s,switchLayoutGroup:g.useContext(fm),isPresent:t,safeToRemove:n})}const pE={borderRadius:{...Nr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Nr,borderTopRightRadius:Nr,borderBottomLeftRadius:Nr,borderBottomRightRadius:Nr,boxShadow:fE};function mE(e,t,n){const s=Ye(e)?e:ei(e);return s.start(au("",s,t,n)),s.animation}function gE(e){return e instanceof SVGElement&&e.tagName!=="svg"}const yE=(e,t)=>e.depth-t.depth;class vE{constructor(){this.children=[],this.isDirty=!1}add(t){Zl(this.children,t),this.isDirty=!0}remove(t){Kl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(yE),this.isDirty=!1,this.children.forEach(t)}}function xE(e,t){const n=rn.now(),s=({timestamp:r})=>{const i=r-n;i>=t&&($n(s),e(i-t))};return Ee.read(s,!0),()=>$n(s)}const bg=["TopLeft","TopRight","BottomLeft","BottomRight"],bE=bg.length,gf=e=>typeof e=="string"?parseFloat(e):e,yf=e=>typeof e=="number"||ee.test(e);function wE(e,t,n,s,r,i){r?(e.opacity=Re(0,n.opacity!==void 0?n.opacity:1,SE(s)),e.opacityExit=Re(t.opacity!==void 0?t.opacity:1,0,_E(s))):i&&(e.opacity=Re(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let o=0;o<bE;o++){const a=`border${bg[o]}Radius`;let c=vf(t,a),l=vf(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||yf(c)===yf(l)?(e[a]=Math.max(Re(gf(c),gf(l),s),0),(sn.test(l)||sn.test(c))&&(e[a]+="%")):e[a]=l}(t.rotate||n.rotate)&&(e.rotate=Re(t.rotate||0,n.rotate||0,s))}function vf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const SE=wg(0,.5,Lm),_E=wg(.5,.95,vt);function wg(e,t,n){return s=>s<e?0:s>t?1:n(ar(e,t,s))}function xf(e,t){e.min=t.min,e.max=t.max}function Ct(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,s,r){return e-=t,e=wo(e,1/n,s),r!==void 0&&(e=wo(e,1/r,s)),e}function CE(e,t=0,n=1,s=.5,r,i=e,o=e){if(sn.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,s);e===i&&(a-=t),e.min=wf(e.min,t,n,a,r),e.max=wf(e.max,t,n,a,r)}function Sf(e,t,[n,s,r],i,o){CE(e,t[n],t[s],t[r],t.scale,i,o)}const EE=["x","scaleX","originX"],TE=["y","scaleY","originY"];function _f(e,t,n,s){Sf(e.x,t,EE,n?n.x:void 0,s?s.x:void 0),Sf(e.y,t,TE,n?n.y:void 0,s?s.y:void 0)}function Cf(e){return e.translate===0&&e.scale===1}function Sg(e){return Cf(e.x)&&Cf(e.y)}function Ef(e,t){return e.min===t.min&&e.max===t.max}function AE(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 _g(e,t){return Tf(e.x,t.x)&&Tf(e.y,t.y)}function Af(e){return ot(e.x)/ot(e.y)}function Rf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class RE{constructor(){this.members=[]}add(t){Zl(this.members,t),t.scheduleRender()}remove(t){if(Kl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(r=>t===r);if(n===0)return!1;let s;for(let r=n;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1){s=i;break}}return s?(this.promote(s),!0):!1}promote(t,n){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,n&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:s}=t;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function PE(e,t,n){let s="";const r=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((r||i||o)&&(s=`translate3d(${r}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:d,rotateY:h,skewX:y,skewY:m}=n;l&&(s=`perspective(${l}px) ${s}`),u&&(s+=`rotate(${u}deg) `),d&&(s+=`rotateX(${d}deg) `),h&&(s+=`rotateY(${h}deg) `),y&&(s+=`skewX(${y}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(s+=`scale(${a}, ${c})`),s||"none"}const ss={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ir=typeof window<"u"&&window.MotionDebug!==void 0,Ia=["","X","Y","Z"],NE={visibility:"hidden"},Pf=1e3;let jE=0;function La(e,t,n,s){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),s&&(s[e]=0))}function Cg(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Am(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ee,!(r||i))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&Cg(s)}function Eg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(o={},a=t==null?void 0:t()){this.id=jE++,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,Ir&&(ss.totalNodes=ss.resolvedTargetDeltas=ss.recalculatedProjection=0),this.nodes.forEach(ME),this.nodes.forEach(VE),this.nodes.forEach(BE),this.nodes.forEach(DE),Ir&&window.MotionDebug.record(ss)},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;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new vE)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Gl),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const c=this.eventHandlers.get(o);c&&c.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=gE(o),this.instance=o;const{layoutId:c,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(l||c)&&(this.isLayoutDirty=!0),e){let d;const h=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=xE(h,250),oo.hasAnimatedSinceResize&&(oo.hasAnimatedSinceResize=!1,this.nodes.forEach(jf))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:y,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||HE,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=u.getProps(),b=!this.targetLayout||!_g(this.targetLayout,m),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 _={...ql(p,"layout"),onPlay:v,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_)}else h||jf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}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,$n(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($E),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&&Cg(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Nf);return}this.isUpdating||this.nodes.forEach(LE),this.isUpdating=!1,this.nodes.forEach(FE),this.nodes.forEach(kE),this.nodes.forEach(OE),this.clearAllSnapshots();const a=rn.now();We.delta=wn(0,1e3/60,a-We.timestamp),We.timestamp=a,We.isProcessing=!0,Pa.update.process(We),Pa.preRender.process(We),Pa.render.process(We),We.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Dl.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(IE),this.sharedNodes.forEach(UE)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ee.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ee.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ot(this.snapshot.measuredBox.x)&&!ot(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<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Me(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const c=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!r)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Sg(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;o&&(a||ns(this.latestValues)||u)&&(r(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return o&&(c=this.removeTransform(c)),qE(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return Me();const c=a.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(ZE))){const{scroll:u}=this.root;u&&(Vs(c.x,u.offset.x),Vs(c.y,u.offset.y))}return c}removeElementScroll(o){var a;const c=Me();if(Ct(c,o),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return c;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:d,options:h}=u;u!==this.root&&d&&h.layoutScroll&&(d.wasRoot&&Ct(c,o),Vs(c.x,d.offset.x),Vs(c.y,d.offset.y))}return c}applyTransform(o,a=!1){const c=Me();Ct(c,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Bs(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),ns(u.latestValues)&&Bs(c,u.latestValues)}return ns(this.latestValues)&&Bs(c,this.latestValues),c}removeTransform(o){const a=Me();Ct(a,o);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!ns(l.latestValues))continue;Oc(l.latestValues)&&l.updateSnapshot();const u=Me(),d=l.measurePageBox();Ct(u,d),_f(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,u)}return ns(this.latestValues)&&_f(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==We.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==c;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:h}=this.options;if(!(!this.layout||!(d||h))){if(this.resolvedRelativeTargetAt=We.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Me(),this.relativeTargetOrigin=Me(),Wr(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),Ct(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Me(),this.targetWithTransforms=Me()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),QC(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ct(this.target,this.layout.layoutBox),gg(this.target,this.targetDelta)):Ct(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Me(),this.relativeTargetOrigin=Me(),Wr(this.relativeTargetOrigin,this.target,y.target),Ct(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ir&&ss.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Oc(this.parent.latestValues)||mg(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const a=this.getLead(),c=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(l=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===We.timestamp&&(l=!1),l)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;Ct(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,y=this.treeScale.y;iE(this.layoutCorrected,this.treeScale,this.path,c),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Me());const{target:m}=a;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(bf(this.prevProjectionDelta.x,this.projectionDelta.x),bf(this.prevProjectionDelta.y,this.projectionDelta.y)),zr(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==y||!Rf(this.projectionDelta.x,this.prevProjectionDelta.x)||!Rf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Ir&&ss.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),o){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Fs(),this.projectionDelta=Fs(),this.projectionDeltaWithTransform=Fs()}setAnimationOrigin(o,a=!1){const c=this.snapshot,l=c?c.latestValues:{},u={...this.latestValues},d=Fs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=Me(),y=c?c.source:void 0,m=this.layout?this.layout.source:void 0,p=y!==m,v=this.getStack(),x=!v||v.members.length<=1,b=!!(p&&!x&&this.options.crossfade===!0&&!this.path.some(WE));this.animationProgress=0;let w;this.mixTargetDelta=_=>{const S=_/1e3;kf(d.x,o.x,S),kf(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wr(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),zE(this.relativeTarget,this.relativeTargetOrigin,h,S),w&&AE(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Me()),Ct(w,this.relativeTarget)),p&&(this.animationValues=u,wE(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&&($n(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ee.update(()=>{oo.hasAnimatedSinceResize=!0,this.currentAnimation=mE(0,Pf,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(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&&Tg(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||Me();const d=ot(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+d;const h=ot(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+h}Ct(a,c),Bs(a,u),zr(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new RE),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&&La("z",o,l,this.animationValues);for(let u=0;u<Ia.length;u++)La(`rotate${Ia[u]}`,o,l,this.animationValues),La(`skew${Ia[u]}`,o,l,this.animationValues);o.render();for(const u in l)o.setStaticValue(u,l[u]),this.animationValues&&(this.animationValues[u]=l[u]);o.scheduleRender()}getProjectionStyles(o){var a,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return NE;const l={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=ro(o==null?void 0:o.pointerEvents)||"",l.transform=u?u(this.latestValues,""):"none",l;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const p={};return this.options.layoutId&&(p.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,p.pointerEvents=ro(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!ns(this.latestValues)&&(p.transform=u?u({},""):"none",this.hasProjected=!1),p}const h=d.animationValues||d.latestValues;this.applyTransformsToTarget(),l.transform=PE(this.projectionDeltaWithTransform,this.treeScale,h),u&&(l.transform=u(h,l.transform));const{x:y,y:m}=this.projectionDelta;l.transformOrigin=`${y.origin*100}% ${m.origin*100}% 0`,d.animationValues?l.opacity=d===this?(c=(a=h.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:l.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const p in Jr){if(h[p]===void 0)continue;const{correct:v,applyTo:x,isCSSVariable:b}=Jr[p],w=l.transform==="none"?h[p]:v(h[p],d);if(x){const _=x.length;for(let S=0;S<_;S++)l[x[S]]=w}else b?this.options.visualElement.renderState.vars[p]=w:l[p]=w}return this.options.layoutId&&(l.pointerEvents=d===this?ro(o==null?void 0:o.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Nf),this.root.sharedNodes.clear()}}}function kE(e){e.updateLayout()}function OE(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:r}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?Et(d=>{const h=o?n.measuredBox[d]:n.layoutBox[d],y=ot(h);h.min=s[d].min,h.max=h.min+y}):Tg(i,n.layoutBox,s)&&Et(d=>{const h=o?n.measuredBox[d]:n.layoutBox[d],y=ot(s[d]);h.max=h.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+y)});const a=Fs();zr(a,s,n.layoutBox);const c=Fs();o?zr(c,e.applyTransform(r,!0),n.measuredBox):zr(c,s,n.layoutBox);const l=!Sg(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 m=Me();Wr(m,n.layoutBox,h.layoutBox);const p=Me();Wr(p,s,y.layoutBox),_g(m,p)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function ME(e){Ir&&ss.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function DE(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function IE(e){e.clearSnapshot()}function Nf(e){e.clearMeasurements()}function LE(e){e.isLayoutDirty=!1}function FE(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function jf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function VE(e){e.resolveTargetDelta()}function BE(e){e.calcProjection()}function $E(e){e.resetSkewAndRotation()}function UE(e){e.removeLeadSnapshot()}function kf(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,s){e.min=Re(t.min,n.min,s),e.max=Re(t.max,n.max,s)}function zE(e,t,n,s){Of(e.x,t.x,n.x,s),Of(e.y,t.y,n.y,s)}function WE(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const HE={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:vt;function If(e){e.min=Df(e.min),e.max=Df(e.max)}function qE(e){If(e.x),If(e.y)}function Tg(e,t,n){return e==="position"||e==="preserve-aspect"&&!GC(Af(t),Af(n),.2)}function ZE(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const KE=Eg({attachResizeListener:(e,t)=>ni(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Fa={current:void 0},Ag=Eg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Fa.current){const e=new KE({});e.mount(window),e.setOptions({layoutScroll:!0}),Fa.current=e}return Fa.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),GE={pan:{Feature:dE},drag:{Feature:uE,ProjectionNode:Ag,MeasureLayout:xg}};function QE(e,t,n){var s;if(e instanceof Element)return[e];if(typeof e=="string"){let r=document;const i=(s=void 0)!==null&&s!==void 0?s:r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Rg(e,t){const n=QE(e),s=new AbortController,r={passive:!0,...t,signal:s.signal};return[n,r,()=>s.abort()]}function Lf(e){return!(e.pointerType==="touch"||lg())}function XE(e,t,n={}){const[s,r,i]=Rg(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,r)};return s.forEach(a=>{a.addEventListener("pointerenter",o,r)}),i}function Ff(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,i=s[r];i&&Ee.postRender(()=>i(t,Ni(t)))}class YE extends Qn{mount(){const{current:t}=this.node;t&&(this.unmount=XE(t,(n,s)=>(Ff(this.node,s,"Start"),r=>Ff(this.node,r,"End"))))}unmount(){}}class JE extends Qn{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(ni(this.node.current,"focus",()=>this.onFocus()),ni(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Pg=(e,t)=>t?e===t?!0:Pg(e,t.parentElement):!1,eT=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function tT(e){return eT.has(e.tagName)||e.tabIndex!==-1}const Lr=new WeakSet;function Vf(e){return t=>{t.key==="Enter"&&e(t)}}function Va(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const nT=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=Vf(()=>{if(Lr.has(n))return;Va(n,"down");const r=Vf(()=>{Va(n,"up")}),i=()=>Va(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function Bf(e){return cu(e)&&!lg()}function sT(e,t,n={}){const[s,r,i]=Rg(e,n),o=a=>{const c=a.currentTarget;if(!Bf(a)||Lr.has(c))return;Lr.add(c);const l=t(c,a),u=(y,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),!(!Bf(y)||!Lr.has(c))&&(Lr.delete(c),typeof l=="function"&&l(y,{success:m}))},d=y=>{u(y,n.useGlobalTarget||Pg(c,y.target))},h=y=>{u(y,!1)};window.addEventListener("pointerup",d,r),window.addEventListener("pointercancel",h,r)};return s.forEach(a=>{!tT(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,r),a.addEventListener("focus",l=>nT(l,r),r)}),i}function $f(e,t,n){const{props:s}=e;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),i=s[r];i&&Ee.postRender(()=>i(t,Ni(t)))}class rT extends Qn{mount(){const{current:t}=this.node;t&&(this.unmount=sT(t,(n,s)=>($f(this.node,s,"Start"),(r,{success:i})=>$f(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Dc=new WeakMap,Ba=new WeakMap,iT=e=>{const t=Dc.get(e.target);t&&t(e)},oT=e=>{e.forEach(iT)};function aT({root:e,...t}){const n=e||document;Ba.has(n)||Ba.set(n,{});const s=Ba.get(n),r=JSON.stringify(t);return s[r]||(s[r]=new IntersectionObserver(oT,{root:e,...t})),s[r]}function cT(e,t,n){const s=aT(t);return Dc.set(e,n),s.observe(e),()=>{Dc.delete(e),s.unobserve(e)}}const lT={some:0,all:1};class uT extends Qn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof r=="number"?r:lT[r]},a=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(dT(t,n))&&this.startObserver()}unmount(){}}function dT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const fT={inView:{Feature:uT},tap:{Feature:rT},focus:{Feature:JE},hover:{Feature:YE}},hT={layout:{ProjectionNode:Ag,MeasureLayout:xg}},Ic={current:null},Ng={current:!1};function pT(){if(Ng.current=!0,!!jl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ic.current=e.matches;e.addListener(t),t()}else Ic.current=!1}const mT=[...Xm,Qe,Un],gT=e=>mT.find(Qm(e)),Uf=new WeakMap;function yT(e,t,n){for(const s in t){const r=t[s],i=n[s];if(Ye(r))e.addValue(s,r);else if(Ye(i))e.addValue(s,ei(r,{owner:e}));else if(i!==r)if(e.hasValue(s)){const o=e.getValue(s);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=e.getStaticValue(s);e.addValue(s,ei(o!==void 0?o:r,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const zf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class vT{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=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.renderScheduledAt<y&&(this.renderScheduledAt=y,Ee.render(this.render,!1,!0))};const{latestValues:c,renderState:l,onUpdate:u}=o;this.onUpdate=u,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=Jo(n),this.isVariantNode=um(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in h){const m=h[y];c[y]!==void 0&&Ye(m)&&m.set(c[y],!1)}}mount(t){this.current=t,Uf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),Ng.current||pT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ic.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Uf.delete(this.current),this.projection&&this.projection.unmount(),$n(this.notifyUpdate),$n(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=Ps.has(t),r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Ee.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in or){const n=or[t];if(!n)continue;const{isEnabled:s,Feature:r}=n;if(!this.features[t]&&r&&s(this.props)&&(this.features[t]=new r(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):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 s=0;s<zf.length;s++){const r=zf[s];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const i="on"+r,o=t[i];o&&(this.propEventSubscriptions[r]=this.on(r,o))}this.prevMotionValues=yT(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=ei(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){var s;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(s=this.getBaseTargetFromProps(this.props,t))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Km(r)||Vm(r))?r=parseFloat(r):!gT(r)&&Un.test(n)&&(r=Hm(t,n)),this.setBaseTarget(t,Ye(r)?r.get():r)),Ye(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:s}=this.props;let r;if(typeof s=="string"||typeof s=="object"){const o=Ll(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(r=o[t])}if(s&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Ye(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Gl),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class jg extends vT{constructor(){super(...arguments),this.KeyframeResolver=Ym}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ye(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function xT(e){return window.getComputedStyle(e)}class bT extends jg{constructor(){super(...arguments),this.type="html",this.renderInstance=vm}readValueFromInstance(t,n){if(Ps.has(n)){const s=su(n);return s&&s.default||0}else{const s=xT(t),r=(Fl(n)?s.getPropertyValue(n):s[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return yg(t,n)}build(t,n,s){$l(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return Hl(t,n,s)}}class wT extends jg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Me}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ps.has(n)){const s=su(n);return s&&s.default||0}return n=xm.has(n)?n:Ml(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return Sm(t,n,s)}build(t,n,s){Ul(t,n,this.isSVGTag,s.transformTemplate)}renderInstance(t,n,s,r){bm(t,n,s,r)}mount(t){this.isSVGTag=Wl(t.tagName),super.mount(t)}}const ST=(e,t)=>Il(e)?new wT(t):new bT(t,{allowProjection:e!==g.Fragment}),_T=GS({...VC,...fT,...GE,...hT},ST),Hr=uS(_T);var $a,Wf;function CT(){if(Wf)return $a;Wf=1;var e="Expected a function",t=NaN,n="[object Symbol]",s=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,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,m=Math.min,p=function(){return u.Date.now()};function v(S,A,E){var R,N,M,I,O,z,F=0,J=!1,X=!1,q=!0;if(typeof S!="function")throw new TypeError(e);A=_(A)||0,x(E)&&(J=!!E.leading,X="maxWait"in E,M=X?y(_(E.maxWait)||0,A):M,q="trailing"in E?!!E.trailing:q);function Z(ue){var ve=R,ke=N;return R=N=void 0,F=ue,I=S.apply(ke,ve),I}function re(ue){return F=ue,O=setTimeout(Be,A),J?Z(ue):I}function fe(ue){var ve=ue-z,ke=ue-F,Le=A-ve;return X?m(Le,M-ke):Le}function ye(ue){var ve=ue-z,ke=ue-F;return z===void 0||ve>=A||ve<0||X&&ke>=M}function Be(){var ue=p();if(ye(ue))return Ze(ue);O=setTimeout(Be,fe(ue))}function Ze(ue){return O=void 0,q&&R?Z(ue):(R=N=void 0,I)}function Ke(){O!==void 0&&clearTimeout(O),F=0,R=z=N=O=void 0}function jt(){return O===void 0?I:Ze(p())}function nt(){var ue=p(),ve=ye(ue);if(R=arguments,N=this,z=ue,ve){if(O===void 0)return re(z);if(X)return O=setTimeout(Be,A),Z(z)}return O===void 0&&(O=setTimeout(Be,A)),I}return nt.cancel=Ke,nt.flush=jt,nt}function x(S){var A=typeof S;return!!S&&(A=="object"||A=="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 A=typeof S.valueOf=="function"?S.valueOf():S;S=x(A)?A+"":A}if(typeof S!="string")return S===0?S:+S;S=S.replace(s,"");var E=i.test(S);return E||o.test(S)?a(S.slice(2),E?2:8):r.test(S)?t:+S}return $a=v,$a}CT();var kg=typeof window<"u"?g.useLayoutEffect:g.useEffect,ET=typeof window>"u";function So(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const s=a=>ET?t:window.matchMedia(a).matches,[r,i]=g.useState(()=>n?s(e):t);function o(){i(s(e))}return kg(()=>{const a=window.matchMedia(e);return o(),a.addListener?a.addListener(o):a.addEventListener("change",o),()=>{a.removeListener?a.removeListener(o):a.removeEventListener("change",o)}},[e]),r}var TT=typeof window>"u";function AT(e={}){const{autoLock:t=!0,lockTarget:n,widthReflow:s=!0}=e,[r,i]=g.useState(!1),o=g.useRef(null),a=g.useRef(null),c=()=>{if(o.current){const{overflow:u,paddingRight:d}=o.current.style;if(a.current={overflow:u,paddingRight:d},s){const h=o.current===document.body?window.innerWidth:o.current.offsetWidth,y=parseInt(window.getComputedStyle(o.current).paddingRight,10)||0,m=h-o.current.scrollWidth;o.current.style.paddingRight=`${m+y}px`}o.current.style.overflow="hidden",i(!0)}},l=()=>{o.current&&a.current&&(o.current.style.overflow=a.current.overflow,s&&(o.current.style.paddingRight=a.current.paddingRight)),i(!1)};return kg(()=>{if(!TT)return n&&(o.current=typeof n=="string"?document.querySelector(n):n),o.current||(o.current=document.body),t&&c(),()=>{l()}},[t,n,s]),{isLocked:r,lock:c,unlock:l}}const jk=({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(Hr.div,{initial:{width:0},animate:t===2?{width:"20%"}:t===3&&{width:"75%"},transition:{delay:.5,duration:.5},className:V("h-2 absolute bg-primary rounded-[2px] top-0 left-0 z-[5]",{"w-0 bg-opacity-0":t===1,"w-[20%]":t===2,"w-[75%]":t===3})}),f.jsx(Hr.div,{initial:{width:n?"50%":"35%"},animate:t===2?{width:"75%"}:t===3&&{width:"100%"},className:V("bg-reverse_primary w-1/2 absolute top-0 left-0 rounded-[2px] z-[3] h-2")}),f.jsx(Hr.div,{className:V("progress-circle absolute transition-all duration-500 -top-6 flex items-center justify-center",{"bg-reverse_primary md:left-1/2 left-1/3":t===1,"bg-primary left-[20%] !text-on_primary":t===2||t===3}),children:"1"}),f.jsx("div",{className:V("progress-circle absolute -top-6 right-[17%] transition-all -translate-x-1/2 flex items-center justify-center",{"bg-[#D0D3D8]":t===1,"bg-reverse_primary":t===2,"bg-primary !text-on_primary":t===3}),children:"2"}),f.jsx("div",{className:V("progress-circle absolute -top-6 right-0 transition-all duration-500 flex items-center justify-center",{"bg-[#D0D3D8]":t===1||t===2,"bg-reverse_primary":t===3}),children:"3"})]})})})};var ji=e=>e.type==="checkbox",is=e=>e instanceof Date,it=e=>e==null;const Og=e=>typeof e=="object";var Ie=e=>!it(e)&&!Array.isArray(e)&&Og(e)&&!is(e),Mg=e=>Ie(e)&&e.target?ji(e.target)?e.target.checked:e.target.value:e,RT=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Dg=(e,t)=>e.has(RT(t)),PT=e=>{const t=e.constructor&&e.constructor.prototype;return Ie(t)&&t.hasOwnProperty("isPrototypeOf")},lu=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function lt(e){let t;const n=Array.isArray(e),s=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(lu&&(e instanceof Blob||s))&&(n||Ie(e)))if(t=n?[]:{},!n&&!PT(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=lt(e[r]));else return e;return t}var na=e=>Array.isArray(e)?e.filter(Boolean):[],De=e=>e===void 0,$=(e,t,n)=>{if(!t||!Ie(e))return n;const s=na(t.split(/[,[\].]+?/)).reduce((r,i)=>it(r)?r:r[i],e);return De(s)||s===e?De(e[t])?n:e[t]:s},Rt=e=>typeof e=="boolean",uu=e=>/^\w*$/.test(e),Ig=e=>na(e.replace(/["|']|\]/g,"").split(/\.|\[/)),xe=(e,t,n)=>{let s=-1;const r=uu(t)?[t]:Ig(t),i=r.length,o=i-1;for(;++s<i;){const a=r[s];let c=n;if(s!==o){const l=e[a];c=Ie(l)||Array.isArray(l)?l:isNaN(+r[s+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;e[a]=c,e=e[a]}return e};const _o={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},It={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},pn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Lg=de.createContext(null),sa=()=>de.useContext(Lg),NT=e=>{const{children:t,...n}=e;return de.createElement(Lg.Provider,{value:n},t)};var Fg=(e,t,n,s=!0)=>{const r={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(r,i,{get:()=>{const o=i;return t._proxyFormState[o]!==It.all&&(t._proxyFormState[o]=!s||It.all),n&&(n[o]=!0),e[o]}});return r},dt=e=>Ie(e)&&!Object.keys(e).length,Vg=(e,t,n,s)=>{n(e);const{name:r,...i}=e;return dt(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!s||It.all))},qr=e=>Array.isArray(e)?e:[e],Bg=(e,t,n)=>!e||!t||e===t||qr(e).some(s=>s&&(n?s===t:s.startsWith(t)||t.startsWith(s)));function du(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 jT(e){const t=sa(),{control:n=t.control,disabled:s,name:r,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(r);return u.current=r,du({disabled:s,next:d=>c.current&&Bg(u.current,d.name,i)&&Vg(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(()=>Fg(o,n,l.current,!1),[o,n])}var nn=e=>typeof e=="string",$g=(e,t,n,s,r)=>nn(e)?(s&&t.watch.add(e),$(n,e,r)):Array.isArray(e)?e.map(i=>(s&&t.watch.add(i),$(n,i))):(s&&(t.watchAll=!0),n);function kT(e){const t=sa(),{control:n=t.control,name:s,defaultValue:r,disabled:i,exact:o}=e,a=de.useRef(s);a.current=s,du({disabled:i,subject:n._subjects.values,next:u=>{Bg(a.current,u.name,o)&&l(lt($g(a.current,n._names,u.values||n._formValues,!1,r)))}});const[c,l]=de.useState(n._getWatch(s,r));return de.useEffect(()=>n._removeUnmounted()),c}function OT(e){const t=sa(),{name:n,disabled:s,control:r=t.control,shouldUnregister:i}=e,o=Dg(r._names.array,n),a=kT({control:r,name:n,defaultValue:$(r._formValues,n,$(r._defaultValues,n,e.defaultValue)),exact:!0}),c=jT({control:r,name:n,exact:!0}),l=de.useRef(r.register(n,{...e.rules,value:a,...Rt(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,...Rt(s)||c.disabled?{disabled:c.disabled||s}:{},onChange:h=>l.current.onChange({target:{value:Mg(h),name:n},type:_o.CHANGE}),onBlur:()=>l.current.onBlur({target:{value:$(r._formValues,n),name:n},type:_o.BLUR}),ref:h=>{const y=$(r._fields,n);y&&h&&(y._f.ref={focus:()=>h.focus(),select:()=>h.select(),setCustomValidity:m=>h.setCustomValidity(m),reportValidity:()=>h.reportValidity()})}}),[n,r._formValues,s,c.disabled,a,r._fields]);return de.useEffect(()=>{const h=r._options.shouldUnregister||i,y=(m,p)=>{const v=$(r._fields,m);v&&v._f&&(v._f.mount=p)};if(y(n,!0),h){const m=lt($(r._options.defaultValues,n));xe(r._defaultValues,n,m),De($(r._formValues,n))&&xe(r._formValues,n,m)}return!o&&r.register(n),()=>{(o?h&&!r._state.action:h)?r.unregister(n):y(n,!1)}},[n,r,o,i]),de.useEffect(()=>{r._updateDisabledField({disabled:s,fields:r._fields,name:n})},[s,n,r]),de.useMemo(()=>({field:d,formState:c,fieldState:u}),[d,c,u])}const MT=e=>e.render(OT(e));var Ug=(e,t,n,s,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[s]:r||!0}}:{},Hf=e=>({isOnSubmit:!e||e===It.onSubmit,isOnBlur:e===It.onBlur,isOnChange:e===It.onChange,isOnAll:e===It.all,isOnTouch:e===It.onTouched}),qf=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const Zr=(e,t,n,s)=>{for(const r of n||Object.keys(e)){const i=$(e,r);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],r)&&!s)return!0;if(o.ref&&t(o.ref,o.name)&&!s)return!0;if(Zr(a,t))break}else if(Ie(a)&&Zr(a,t))break}}};var DT=(e,t,n)=>{const s=qr($(e,n));return xe(s,"root",t[n]),xe(e,n,s),e},fu=e=>e.type==="file",tn=e=>typeof e=="function",Co=e=>{if(!lu)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ao=e=>nn(e),hu=e=>e.type==="radio",Eo=e=>e instanceof RegExp;const Zf={value:!1,isValid:!1},Kf={value:!0,isValid:!0};var zg=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===""?Kf:{value:e[0].value,isValid:!0}:Kf:Zf}return Zf};const Gf={isValid:!1,value:null};var Wg=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Gf):Gf;function Qf(e,t,n="validate"){if(ao(e)||Array.isArray(e)&&e.every(ao)||Rt(e)&&!e)return{type:n,message:ao(e)?e:"",ref:t}}var Ms=e=>Ie(e)&&!Eo(e)?e:{value:e,message:""},Xf=async(e,t,n,s,r,i)=>{const{ref:o,refs:a,required:c,maxLength:l,minLength:u,min:d,max:h,pattern:y,validate:m,name:p,valueAsNumber:v,mount:x}=e._f,b=$(n,p);if(!x||t.has(p))return{};const w=a?a[0]:o,_=O=>{r&&w.reportValidity&&(w.setCustomValidity(Rt(O)?"":O||""),w.reportValidity())},S={},A=hu(o),E=ji(o),R=A||E,N=(v||fu(o))&&De(o.value)&&De(b)||Co(o)&&o.value===""||b===""||Array.isArray(b)&&!b.length,M=Ug.bind(null,p,s,S),I=(O,z,F,J=pn.maxLength,X=pn.minLength)=>{const q=O?z:F;S[p]={type:O?J:X,message:q,ref:o,...M(O?J:X,q)}};if(i?!Array.isArray(b)||!b.length:c&&(!R&&(N||it(b))||Rt(b)&&!b||E&&!zg(a).isValid||A&&!Wg(a).isValid)){const{value:O,message:z}=ao(c)?{value:!!c,message:c}:Ms(c);if(O&&(S[p]={type:pn.required,message:z,ref:w,...M(pn.required,z)},!s))return _(z),S}if(!N&&(!it(d)||!it(h))){let O,z;const F=Ms(h),J=Ms(d);if(!it(b)&&!isNaN(b)){const X=o.valueAsNumber||b&&+b;it(F.value)||(O=X>F.value),it(J.value)||(z=X<J.value)}else{const X=o.valueAsDate||new Date(b),q=fe=>new Date(new Date().toDateString()+" "+fe),Z=o.type=="time",re=o.type=="week";nn(F.value)&&b&&(O=Z?q(b)>q(F.value):re?b>F.value:X>new Date(F.value)),nn(J.value)&&b&&(z=Z?q(b)<q(J.value):re?b<J.value:X<new Date(J.value))}if((O||z)&&(I(!!O,F.message,J.message,pn.max,pn.min),!s))return _(S[p].message),S}if((l||u)&&!N&&(nn(b)||i&&Array.isArray(b))){const O=Ms(l),z=Ms(u),F=!it(O.value)&&b.length>+O.value,J=!it(z.value)&&b.length<+z.value;if((F||J)&&(I(F,O.message,z.message),!s))return _(S[p].message),S}if(y&&!N&&nn(b)){const{value:O,message:z}=Ms(y);if(Eo(O)&&!b.match(O)&&(S[p]={type:pn.pattern,message:z,ref:o,...M(pn.pattern,z)},!s))return _(z),S}if(m){if(tn(m)){const O=await m(b,n),z=Qf(O,w);if(z&&(S[p]={...z,...M(pn.validate,z.message)},!s))return _(z.message),S}else if(Ie(m)){let O={};for(const z in m){if(!dt(O)&&!s)break;const F=Qf(await m[z](b,n),w,z);F&&(O={...F,...M(z,F.message)},_(F.message),s&&(S[p]=O))}if(!dt(O)&&(S[p]={ref:w,...O},!s))return S}}return _(!0),S};function IT(e,t){const n=t.slice(0,-1).length;let s=0;for(;s<n;)e=De(e)?s++:e[t[s++]];return e}function LT(e){for(const t in e)if(e.hasOwnProperty(t)&&!De(e[t]))return!1;return!0}function $e(e,t){const n=Array.isArray(t)?t:uu(t)?[t]:Ig(t),s=n.length===1?e:IT(e,n),r=n.length-1,i=n[r];return s&&delete s[i],r!==0&&(Ie(s)&&dt(s)||Array.isArray(s)&&LT(s))&&$e(e,n.slice(0,-1)),e}var Ua=()=>{let e=[];return{get observers(){return e},next:r=>{for(const i of e)i.next&&i.next(r)},subscribe:r=>(e.push(r),{unsubscribe:()=>{e=e.filter(i=>i!==r)}}),unsubscribe:()=>{e=[]}}},Lc=e=>it(e)||!Og(e);function kn(e,t){if(Lc(e)||Lc(t))return e===t;if(is(e)&&is(t))return e.getTime()===t.getTime();const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(const r of n){const i=e[r];if(!s.includes(r))return!1;if(r!=="ref"){const o=t[r];if(is(i)&&is(o)||Ie(i)&&Ie(o)||Array.isArray(i)&&Array.isArray(o)?!kn(i,o):i!==o)return!1}}return!0}var Hg=e=>e.type==="select-multiple",FT=e=>hu(e)||ji(e),za=e=>Co(e)&&e.isConnected,qg=e=>{for(const t in e)if(tn(e[t]))return!0;return!1};function To(e,t={}){const n=Array.isArray(e);if(Ie(e)||n)for(const s in e)Array.isArray(e[s])||Ie(e[s])&&!qg(e[s])?(t[s]=Array.isArray(e[s])?[]:{},To(e[s],t[s])):it(e[s])||(t[s]=!0);return t}function Zg(e,t,n){const s=Array.isArray(e);if(Ie(e)||s)for(const r in e)Array.isArray(e[r])||Ie(e[r])&&!qg(e[r])?De(t)||Lc(n[r])?n[r]=Array.isArray(e[r])?To(e[r],[]):{...To(e[r])}:Zg(e[r],it(t)?{}:t[r],n[r]):n[r]=!kn(e[r],t[r]);return n}var jr=(e,t)=>Zg(e,t,To(t)),Kg=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:s})=>De(e)?e:t?e===""?NaN:e&&+e:n&&nn(e)?new Date(e):s?s(e):e;function Wa(e){const t=e.ref;return fu(t)?t.files:hu(t)?Wg(e.refs).value:Hg(t)?[...t.selectedOptions].map(({value:n})=>n):ji(t)?zg(e.refs).value:Kg(De(t.value)?e.ref.value:t.value,e)}var VT=(e,t,n,s)=>{const r={};for(const i of e){const o=$(t,i);o&&xe(r,i,o._f)}return{criteriaMode:n,names:[...e],fields:r,shouldUseNativeValidation:s}},kr=e=>De(e)?e:Eo(e)?e.source:Ie(e)?Eo(e.value)?e.value.source:e.value:e;const Yf="AsyncFunction";var BT=e=>!!e&&!!e.validate&&!!(tn(e.validate)&&e.validate.constructor.name===Yf||Ie(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Yf)),$T=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Jf(e,t,n){const s=$(e,n);if(s||uu(n))return{error:s,name:n};const r=n.split(".");for(;r.length;){const i=r.join("."),o=$(t,i),a=$(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};r.pop()}return{name:n}}var UT=(e,t,n,s,r)=>r.isOnAll?!1:!n&&r.isOnTouch?!(t||e):(n?s.isOnBlur:r.isOnBlur)?!e:(n?s.isOnChange:r.isOnChange)?e:!0,zT=(e,t)=>!na($(e,t)).length&&$e(e,t);const WT={mode:It.onSubmit,reValidateMode:It.onChange,shouldFocusError:!0};function HT(e={}){let t={...WT,...e},n={submitCount:0,isDirty:!1,isLoading:tn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},s={},r=Ie(t.defaultValues)||Ie(t.values)?lt(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:lt(r),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:Ua(),array:Ua(),state:Ua()},h=Hf(t.mode),y=Hf(t.reValidateMode),m=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?dt((await R()).errors):await M(s,!0);P!==n.isValid&&d.state.next({isValid:P})}},x=(C,P)=>{!t.disabled&&(u.isValidating||u.validatingFields)&&((C||Array.from(a.mount)).forEach(k=>{k&&(P?xe(n.validatingFields,k,P):$e(n.validatingFields,k))}),d.state.next({validatingFields:n.validatingFields,isValidating:!dt(n.validatingFields)}))},b=(C,P=[],k,U,B=!0,L=!0)=>{if(U&&k&&!t.disabled){if(o.action=!0,L&&Array.isArray($(s,C))){const Y=k($(s,C),U.argA,U.argB);B&&xe(s,C,Y)}if(L&&Array.isArray($(n.errors,C))){const Y=k($(n.errors,C),U.argA,U.argB);B&&xe(n.errors,C,Y),zT(n.errors,C)}if(u.touchedFields&&L&&Array.isArray($(n.touchedFields,C))){const Y=k($(n.touchedFields,C),U.argA,U.argB);B&&xe(n.touchedFields,C,Y)}u.dirtyFields&&(n.dirtyFields=jr(r,i)),d.state.next({name:C,isDirty:O(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,k,U)=>{const B=$(s,C);if(B){const L=$(i,C,De(k)?$(r,C):k);De(L)||U&&U.defaultChecked||P?xe(i,C,P?L:Wa(B._f)):J(C,L),o.mount&&v()}},A=(C,P,k,U,B)=>{let L=!1,Y=!1;const ae={name:C};if(!t.disabled){const Fe=!!($(s,C)&&$(s,C)._f&&$(s,C)._f.disabled);if(!k||U){u.isDirty&&(Y=n.isDirty,n.isDirty=ae.isDirty=O(),L=Y!==ae.isDirty);const Oe=Fe||kn($(r,C),P);Y=!!(!Fe&&$(n.dirtyFields,C)),Oe||Fe?$e(n.dirtyFields,C):xe(n.dirtyFields,C,!0),ae.dirtyFields=n.dirtyFields,L=L||u.dirtyFields&&Y!==!Oe}if(k){const Oe=$(n.touchedFields,C);Oe||(xe(n.touchedFields,C,k),ae.touchedFields=n.touchedFields,L=L||u.touchedFields&&Oe!==k)}L&&B&&d.state.next(ae)}return L?ae:{}},E=(C,P,k,U)=>{const B=$(n.errors,C),L=u.isValid&&Rt(P)&&n.isValid!==P;if(t.delayError&&k?(c=p(()=>w(C,k)),c(t.delayError)):(clearTimeout(l),c=null,k?xe(n.errors,C,k):$e(n.errors,C)),(k?!kn(B,k):B)||!dt(U)||L){const Y={...U,...L&&Rt(P)?{isValid:P}:{},errors:n.errors,name:C};n={...n,...Y},d.state.next(Y)}},R=async C=>{x(C,!0);const P=await t.resolver(i,t.context,VT(C||a.mount,s,t.criteriaMode,t.shouldUseNativeValidation));return x(C),P},N=async C=>{const{errors:P}=await R(C);if(C)for(const k of C){const U=$(P,k);U?xe(n.errors,k,U):$e(n.errors,k)}else n.errors=P;return P},M=async(C,P,k={valid:!0})=>{for(const U in C){const B=C[U];if(B){const{_f:L,...Y}=B;if(L){const ae=a.array.has(L.name),Fe=B._f&&BT(B._f);Fe&&u.validatingFields&&x([U],!0);const Oe=await Xf(B,a.disabled,i,m,t.shouldUseNativeValidation&&!P,ae);if(Fe&&u.validatingFields&&x([U]),Oe[L.name]&&(k.valid=!1,P))break;!P&&($(Oe,L.name)?ae?DT(n.errors,Oe,L.name):xe(n.errors,L.name,Oe[L.name]):$e(n.errors,L.name))}!dt(Y)&&await M(Y,P,k)}}return k.valid},I=()=>{for(const C of a.unMount){const P=$(s,C);P&&(P._f.refs?P._f.refs.every(k=>!za(k)):!za(P._f.ref))&&nt(C)}a.unMount=new Set},O=(C,P)=>!t.disabled&&(C&&P&&xe(i,C,P),!kn(ye(),r)),z=(C,P,k)=>$g(C,a,{...o.mount?i:De(P)?r:nn(C)?{[C]:P}:P},k,P),F=C=>na($(o.mount?i:r,C,t.shouldUnregister?$(r,C,[]):[])),J=(C,P,k={})=>{const U=$(s,C);let B=P;if(U){const L=U._f;L&&(!L.disabled&&xe(i,C,Kg(P,L)),B=Co(L.ref)&&it(P)?"":P,Hg(L.ref)?[...L.ref.options].forEach(Y=>Y.selected=B.includes(Y.value)):L.refs?ji(L.ref)?L.refs.length>1?L.refs.forEach(Y=>(!Y.defaultChecked||!Y.disabled)&&(Y.checked=Array.isArray(B)?!!B.find(ae=>ae===Y.value):B===Y.value)):L.refs[0]&&(L.refs[0].checked=!!B):L.refs.forEach(Y=>Y.checked=Y.value===B):fu(L.ref)?L.ref.value="":(L.ref.value=B,L.ref.type||d.values.next({name:C,values:{...i}})))}(k.shouldDirty||k.shouldTouch)&&A(C,B,k.shouldTouch,k.shouldDirty,!0),k.shouldValidate&&fe(C)},X=(C,P,k)=>{for(const U in P){const B=P[U],L=`${C}.${U}`,Y=$(s,L);(a.array.has(C)||Ie(B)||Y&&!Y._f)&&!is(B)?X(L,B,k):J(L,B,k)}},q=(C,P,k={})=>{const U=$(s,C),B=a.array.has(C),L=lt(P);xe(i,C,L),B?(d.array.next({name:C,values:{...i}}),(u.isDirty||u.dirtyFields)&&k.shouldDirty&&d.state.next({name:C,dirtyFields:jr(r,i),isDirty:O(C,L)})):U&&!U._f&&!it(L)?X(C,L,k):J(C,L,k),qf(C,a)&&d.state.next({...n}),d.values.next({name:o.mount?C:void 0,values:{...i}})},Z=async C=>{o.mount=!0;const P=C.target;let k=P.name,U=!0;const B=$(s,k),L=()=>P.type?Wa(B._f):Mg(C),Y=ae=>{U=Number.isNaN(ae)||is(ae)&&isNaN(ae.getTime())||kn(ae,$(i,k,ae))};if(B){let ae,Fe;const Oe=L(),qt=C.type===_o.BLUR||C.type===_o.FOCUS_OUT,Er=!$T(B._f)&&!t.resolver&&!$(n.errors,k)&&!B._f.deps||UT(qt,$(n.touchedFields,k),n.isSubmitted,y,h),Zt=qf(k,a,qt);xe(i,k,Oe),qt?(B._f.onBlur&&B._f.onBlur(C),c&&c(0)):B._f.onChange&&B._f.onChange(C);const Jn=A(k,Oe,qt,!1),Tr=!dt(Jn)||Zt;if(!qt&&d.values.next({name:k,type:C.type,values:{...i}}),Er)return u.isValid&&(t.mode==="onBlur"&&qt?v():qt||v()),Tr&&d.state.next({name:k,...Zt?{}:Jn});if(!qt&&Zt&&d.state.next({...n}),t.resolver){const{errors:es}=await R([k]);if(Y(Oe),U){const ya=Jf(n.errors,s,k),Vi=Jf(es,s,ya.name||k);ae=Vi.error,k=Vi.name,Fe=dt(es)}}else x([k],!0),ae=(await Xf(B,a.disabled,i,m,t.shouldUseNativeValidation))[k],x([k]),Y(Oe),U&&(ae?Fe=!1:u.isValid&&(Fe=await M(s,!0)));U&&(B._f.deps&&fe(B._f.deps),E(k,Fe,ae,Jn))}},re=(C,P)=>{if($(n.errors,P)&&C.focus)return C.focus(),1},fe=async(C,P={})=>{let k,U;const B=qr(C);if(t.resolver){const L=await N(De(C)?C:B);k=dt(L),U=C?!B.some(Y=>$(L,Y)):k}else C?(U=(await Promise.all(B.map(async L=>{const Y=$(s,L);return await M(Y&&Y._f?{[L]:Y}:Y)}))).every(Boolean),!(!U&&!n.isValid)&&v()):U=k=await M(s);return d.state.next({...!nn(C)||u.isValid&&k!==n.isValid?{}:{name:C},...t.resolver||!C?{isValid:k}:{},errors:n.errors}),P.shouldFocus&&!U&&Zr(s,re,C?B:a.mount),U},ye=C=>{const P={...o.mount?i:r};return De(C)?P:nn(C)?$(P,C):C.map(k=>$(P,k))},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)}),Ze=C=>{C&&qr(C).forEach(P=>$e(n.errors,P)),d.state.next({errors:C?n.errors:{}})},Ke=(C,P,k)=>{const U=($(s,C,{_f:{}})._f||{}).ref,B=$(n.errors,C)||{},{ref:L,message:Y,type:ae,...Fe}=B;xe(n.errors,C,{...Fe,...P,ref:U}),d.state.next({name:C,errors:n.errors,isValid:!1}),k&&k.shouldFocus&&U&&U.focus&&U.focus()},jt=(C,P)=>tn(C)?d.values.subscribe({next:k=>C(z(void 0,P),k)}):z(C,P,!0),nt=(C,P={})=>{for(const k of C?qr(C):a.mount)a.mount.delete(k),a.array.delete(k),P.keepValue||($e(s,k),$e(i,k)),!P.keepError&&$e(n.errors,k),!P.keepDirty&&$e(n.dirtyFields,k),!P.keepTouched&&$e(n.touchedFields,k),!P.keepIsValidating&&$e(n.validatingFields,k),!t.shouldUnregister&&!P.keepDefaultValue&&$e(r,k);d.values.next({values:{...i}}),d.state.next({...n,...P.keepDirty?{isDirty:O()}:{}}),!P.keepIsValid&&v()},ue=({disabled:C,name:P,field:k,fields:U})=>{(Rt(C)&&o.mount||C||a.disabled.has(P))&&(C?a.disabled.add(P):a.disabled.delete(P),A(P,Wa(k?k._f:$(U,P)._f),!1,!1,!0))},ve=(C,P={})=>{let k=$(s,C);const U=Rt(P.disabled)||Rt(t.disabled);return xe(s,C,{...k||{},_f:{...k&&k._f?k._f:{ref:{name:C}},name:C,mount:!0,...P}}),a.mount.add(C),k?ue({field:k,disabled:Rt(P.disabled)?P.disabled:t.disabled,name:C}):S(C,!0,P.value),{...U?{disabled:P.disabled||t.disabled}:{},...t.progressive?{required:!!P.required,min:kr(P.min),max:kr(P.max),minLength:kr(P.minLength),maxLength:kr(P.maxLength),pattern:kr(P.pattern)}:{},name:C,onChange:Z,onBlur:Z,ref:B=>{if(B){ve(C,P),k=$(s,C);const L=De(B.value)&&B.querySelectorAll&&B.querySelectorAll("input,select,textarea")[0]||B,Y=FT(L),ae=k._f.refs||[];if(Y?ae.find(Fe=>Fe===L):L===k._f.ref)return;xe(s,C,{_f:{...k._f,...Y?{refs:[...ae.filter(za),L,...Array.isArray($(r,C))?[{}]:[]],ref:{type:L.type,name:C}}:{ref:L}}}),S(C,!1,void 0,L)}else k=$(s,C,{}),k._f&&(k._f.mount=!1),(t.shouldUnregister||P.shouldUnregister)&&!(Dg(a.array,C)&&o.action)&&a.unMount.add(C)}}},ke=()=>t.shouldFocusError&&Zr(s,re,a.mount),Le=C=>{Rt(C)&&(d.state.next({disabled:C}),Zr(s,(P,k)=>{const U=$(s,k);U&&(P.disabled=U._f.disabled||C,Array.isArray(U._f.refs)&&U._f.refs.forEach(B=>{B.disabled=U._f.disabled||C}))},0,!1))},we=(C,P)=>async k=>{let U;k&&(k.preventDefault&&k.preventDefault(),k.persist&&k.persist());let B=lt(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:Y}=await R();n.errors=L,B=Y}else await M(s);if($e(n.errors,"root"),dt(n.errors)){d.state.next({errors:{}});try{await C(B,k)}catch(L){U=L}}else P&&await P({...n.errors},k),ke(),setTimeout(ke);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:dt(n.errors)&&!U,submitCount:n.submitCount+1,errors:n.errors}),U)throw U},G=(C,P={})=>{$(s,C)&&(De(P.defaultValue)?q(C,lt($(r,C))):(q(C,P.defaultValue),xe(r,C,lt(P.defaultValue))),P.keepTouched||$e(n.touchedFields,C),P.keepDirty||($e(n.dirtyFields,C),n.isDirty=P.defaultValue?O(C,lt($(r,C))):O()),P.keepError||($e(n.errors,C),u.isValid&&v()),d.state.next({...n}))},he=(C,P={})=>{const k=C?lt(C):r,U=lt(k),B=dt(C),L=B?r:U;if(P.keepDefaultValues||(r=k),!P.keepValues){if(P.keepDirtyValues){const Y=new Set([...a.mount,...Object.keys(jr(r,i))]);for(const ae of Array.from(Y))$(n.dirtyFields,ae)?xe(L,ae,$(i,ae)):q(ae,$(L,ae))}else{if(lu&&De(C))for(const Y of a.mount){const ae=$(s,Y);if(ae&&ae._f){const Fe=Array.isArray(ae._f.refs)?ae._f.refs[0]:ae._f.ref;if(Co(Fe)){const Oe=Fe.closest("form");if(Oe){Oe.reset();break}}}}s={}}i=t.shouldUnregister?P.keepDefaultValues?lt(r):{}:lt(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&&!kn(C,r)),isSubmitted:P.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:B?{}:P.keepDirtyValues?P.keepDefaultValues&&i?jr(r,i):n.dirtyFields:P.keepDefaultValues&&C?jr(r,C):P.keepDirty?n.dirtyFields:{},touchedFields:P.keepTouched?n.touchedFields:{},errors:P.keepErrors?n.errors:{},isSubmitSuccessful:P.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},_e=(C,P)=>he(tn(C)?C(i):C,P);return{control:{register:ve,unregister:nt,getFieldState:Be,handleSubmit:we,setError:Ke,_executeSchema:R,_getWatch:z,_getDirty:O,_updateValid:v,_removeUnmounted:I,_updateFieldArray:b,_updateDisabledField:ue,_getFieldArray:F,_reset:he,_resetDefaultValues:()=>tn(t.defaultValues)&&t.defaultValues().then(C=>{_e(C,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:C=>{n={...n,...C}},_disableForm:Le,_subjects:d,_proxyFormState:u,_setErrors:_,get _fields(){return s},get _formValues(){return i},get _state(){return o},set _state(C){o=C},get _defaultValues(){return r},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:q,getValues:ye,reset:_e,resetField:G,clearErrors:Ze,unregister:nt,setError:Ke,setFocus:(C,P={})=>{const k=$(s,C),U=k&&k._f;if(U){const B=U.refs?U.refs[0]:U.ref;B.focus&&(B.focus(),P.shouldSelect&&tn(B.select)&&B.select())}},getFieldState:Be}}function qT(e={}){const t=de.useRef(void 0),n=de.useRef(void 0),[s,r]=de.useState({isDirty:!1,isValidating:!1,isLoading:tn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:tn(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...HT(e),formState:s});const i=t.current.control;return i._options=e,du({subject:i._subjects.state,next:o=>{Vg(o,i._proxyFormState,i._updateFormState,!0)&&r({...i._formState})}}),de.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),de.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==s.isDirty&&i._subjects.state.next({isDirty:o})}},[i,s.isDirty]),de.useEffect(()=>{e.values&&!kn(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,r(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=Fg(s,i),t.current}var ZT="Label",Gg=g.forwardRef((e,t)=>f.jsx(ct.label,{...e,ref:t,onMouseDown:n=>{var r;n.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Gg.displayName=ZT;var Qg=Gg;const KT=Go("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Xg=g.forwardRef(({className:e,...t},n)=>f.jsx(Qg,{ref:n,className:V(KT(),e),...t}));Xg.displayName=Qg.displayName;const kk=NT,Yg=g.createContext({}),GT=({...e})=>f.jsx(Yg.Provider,{value:{name:e.name},children:f.jsx(MT,{...e})}),ra=()=>{const e=g.useContext(Yg),t=g.useContext(Jg),{getFieldState:n,formState:s}=sa(),r=n(e.name,s);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...r}},Jg=g.createContext({}),ey=g.forwardRef(({className:e,...t},n)=>{const s=g.useId();return f.jsx(Jg.Provider,{value:{id:s},children:f.jsx("div",{ref:n,className:V("space-y-2",e),...t})})});ey.displayName="FormItem";const ty=g.forwardRef(({className:e,...t},n)=>{const{error:s,formItemId:r}=ra();return f.jsx(Xg,{ref:n,className:V(s&&"text-destructive",e),htmlFor:r,...t})});ty.displayName="FormLabel";const ny=g.forwardRef(({...e},t)=>{const{error:n,formItemId:s,formDescriptionId:r,formMessageId:i}=ra();return f.jsx(mr,{ref:t,id:s,"aria-describedby":n?`${r} ${i}`:`${r}`,"aria-invalid":!!n,...e})});ny.displayName="FormControl";const QT=g.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:s}=ra();return f.jsx("p",{ref:n,id:s,className:V("text-[0.8rem] text-muted-foreground",e),...t})});QT.displayName="FormDescription";const sy=g.forwardRef(({className:e,children:t,...n},s)=>{const{error:r,formMessageId:i}=ra(),o=r?String(r==null?void 0:r.message):t;return o?f.jsx("p",{ref:s,id:i,className:V("text-[0.8rem] font-medium text-destructive",e),...n,children:o}):null});sy.displayName="FormMessage";const Fc=g.forwardRef(({className:e,type:t,...n},s)=>t!=="file"?f.jsx("input",{type:t,className:V("flex h-14 rounded-[2px] border p-4 focus:border-[3px] focus:outline-none focus:border-primary transition-all hover:border-on_surface border-outline bg-transparent text-base w-regular file:border-0 file:bg-secondary_container file:outline-none file:text-sm file:w-fit file:text-on_secondary_container file:font-medium placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",e),ref:s,...n}):f.jsxs("div",{className:"relative w-[160px] h-9 overflow-hidden !cursor-pointer",children:[f.jsx("input",{ref:s,accept:".pdf, .png, .jpeg, .jpg",type:t,className:V("h-9 absolute top-0 left-0 !cursor-pointer opacity-0 z-20 size-full"),...n}),f.jsxs("div",{className:"absolute rounded-[2px] cursor-pointer size-full flex items-center gap-4 px-3 py-2.5 top-0 left-0 bg-secondary_container",children:[f.jsx(Zw,{className:"cursor-pointer",size:16})," Upload file"]})]}));Fc.displayName="Input";const ry=g.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}));ry.displayName="Textarea";const Ok=({control:e,name:t,label:n,placeholder:s,error:r,type:i="text",className:o,disabled:a,textArea:c=!1,textDark:l,supporText:u,handleChange:d,onPrimary:h=!1})=>f.jsx(GT,{control:e,name:t,render:({field:y})=>f.jsxs(ey,{className:V(o,"flex flex-col w-full relative"),children:[f.jsx(ty,{className:V("text-xl",h&&"!text-on_primary",l?"text-on_surface":"text-on_surface_v"),children:n}),f.jsx(ny,{children:f.jsx(f.Fragment,{children:c?f.jsx(ry,{rows:3,...y,placeholder:s,className:V(r&&"border-[#BA1A1A]",h&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):i!=="file"?f.jsx(Fc,{...y,type:i,placeholder:s,disabled:a,className:V(r&&"border-[#BA1A1A]",h&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):f.jsxs("div",{className:"relative",children:[f.jsx(Fc,{type:"file",placeholder:s,onChange:m=>{var v;const p=((v=m.target.files)==null?void 0:v[0])||null;console.log("Выбранный файл:",p),y.onChange(p),d&&d(m)},disabled:a}),y.value&&f.jsxs("div",{className:"text-sm mt-2 text-gray-500 absolute top-8",children:["Выбранный файл: ",y.value.name]})]})})}),f.jsx(sy,{className:V("absolute -bottom-5 left-0 text-sm font-medium leading-[130%]",r&&h?"text-teritary_04":"text-[#BA1A1A]"),children:r?r.message:u})]})}),Mk=({className:e,delay:t=.15})=>f.jsxs(Hr.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0,transition:{delay:t}},className:V("flex flex-col gap-8 my-16",e),children:[f.jsx("h3",{className:"text-3xl text-center",children:"Форма успешно отправлена!"}),f.jsx(Se,{className:"w-fit mx-auto",to:"/",children:f.jsx(Je,{variant:"outline",children:"Вернуться на главную"})})]}),XT=({className:e,slides:t,active:n,scrollTo:s})=>f.jsx("div",{className:V("flex items-center justify-center gap-2",e),children:Array.from({length:t}).map((r,i)=>f.jsx("span",{onClick:()=>s==null?void 0:s(i),className:V(n===i?"dot-active":"dot")},i))}),YT=["top","right","bottom","left"],zn=Math.min,mt=Math.max,Ao=Math.round,Yi=Math.floor,on=e=>({x:e,y:e}),JT={left:"right",right:"left",bottom:"top",top:"bottom"},eA={start:"end",end:"start"};function Vc(e,t,n){return mt(e,zn(t,n))}function Sn(e,t){return typeof e=="function"?e(t):e}function _n(e){return e.split("-")[0]}function wr(e){return e.split("-")[1]}function pu(e){return e==="x"?"y":"x"}function mu(e){return e==="y"?"height":"width"}function Wn(e){return["top","bottom"].includes(_n(e))?"y":"x"}function gu(e){return pu(Wn(e))}function tA(e,t,n){n===void 0&&(n=!1);const s=wr(e),r=gu(e),i=mu(r);let o=r==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Ro(o)),[o,Ro(o)]}function nA(e){const t=Ro(e);return[Bc(e),t,Bc(t)]}function Bc(e){return e.replace(/start|end/g,t=>eA[t])}function sA(e,t,n){const s=["left","right"],r=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:s:t?s:r;case"left":case"right":return t?i:o;default:return[]}}function rA(e,t,n,s){const r=wr(e);let i=sA(_n(e),n==="start",s);return r&&(i=i.map(o=>o+"-"+r),t&&(i=i.concat(i.map(Bc)))),i}function Ro(e){return e.replace(/left|right|bottom|top/g,t=>JT[t])}function iA(e){return{top:0,right:0,bottom:0,left:0,...e}}function iy(e){return typeof e!="number"?iA(e):{top:e,right:e,bottom:e,left:e}}function Po(e){const{x:t,y:n,width:s,height:r}=e;return{width:s,height:r,top:n,left:t,right:t+s,bottom:n+r,x:t,y:n}}function eh(e,t,n){let{reference:s,floating:r}=e;const i=Wn(t),o=gu(t),a=mu(o),c=_n(t),l=i==="y",u=s.x+s.width/2-r.width/2,d=s.y+s.height/2-r.height/2,h=s[a]/2-r[a]/2;let y;switch(c){case"top":y={x:u,y:s.y-r.height};break;case"bottom":y={x:u,y:s.y+s.height};break;case"right":y={x:s.x+s.width,y:d};break;case"left":y={x:s.x-r.width,y:d};break;default:y={x:s.x,y:s.y}}switch(wr(t)){case"start":y[o]-=h*(n&&l?-1:1);break;case"end":y[o]+=h*(n&&l?-1:1);break}return y}const oA=async(e,t,n)=>{const{placement:s="bottom",strategy:r="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:r}),{x:u,y:d}=eh(l,s,c),h=s,y={},m=0;for(let p=0;p<a.length;p++){const{name:v,fn:x}=a[p],{x:b,y:w,data:_,reset:S}=await x({x:u,y:d,initialPlacement:s,placement:h,strategy:r,middlewareData:y,rects:l,platform:o,elements:{reference:e,floating:t}});u=b??u,d=w??d,y={...y,[v]:{...y[v],..._}},S&&m<=50&&(m++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(l=S.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:u,y:d}=eh(l,h,c)),p=-1)}return{x:u,y:d,placement:h,strategy:r,middlewareData:y}};async function si(e,t){var n;t===void 0&&(t={});const{x:s,y:r,platform:i,rects:o,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:y=0}=Sn(t,e),m=iy(y),v=a[h?d==="floating"?"reference":"floating":d],x=Po(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),b=d==="floating"?{x:s,y:r,width:o.floating.width,height:o.floating.height}:o.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),_=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},S=Po(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:w,strategy:c}):b);return{top:(x.top-S.top+m.top)/_.y,bottom:(S.bottom-x.bottom+m.bottom)/_.y,left:(x.left-S.left+m.left)/_.x,right:(S.right-x.right+m.right)/_.x}}const aA=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:r,rects:i,platform:o,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=Sn(e,t)||{};if(l==null)return{};const d=iy(u),h={x:n,y:s},y=gu(r),m=mu(y),p=await o.getDimensions(l),v=y==="y",x=v?"top":"left",b=v?"bottom":"right",w=v?"clientHeight":"clientWidth",_=i.reference[m]+i.reference[y]-h[y]-i.floating[m],S=h[y]-i.reference[y],A=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let E=A?A[w]:0;(!E||!await(o.isElement==null?void 0:o.isElement(A)))&&(E=a.floating[w]||i.floating[m]);const R=_/2-S/2,N=E/2-p[m]/2-1,M=zn(d[x],N),I=zn(d[b],N),O=M,z=E-p[m]-I,F=E/2-p[m]/2+R,J=Vc(O,F,z),X=!c.arrow&&wr(r)!=null&&F!==J&&i.reference[m]/2-(F<O?M:I)-p[m]/2<0,q=X?F<O?F-O:F-z:0;return{[y]:h[y]+q,data:{[y]:J,centerOffset:F-J-q,...X&&{alignmentOffset:q}},reset:X}}}),cA=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:r,middlewareData:i,rects:o,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...v}=Sn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=_n(r),b=Wn(a),w=_n(a)===a,_=await(c.isRTL==null?void 0:c.isRTL(l.floating)),S=h||(w||!p?[Ro(a)]:nA(a)),A=m!=="none";!h&&A&&S.push(...rA(a,p,m,_));const E=[a,...S],R=await si(t,v),N=[];let M=((s=i.flip)==null?void 0:s.overflows)||[];if(u&&N.push(R[x]),d){const F=tA(r,o,_);N.push(R[F[0]],R[F[1]])}if(M=[...M,{placement:r,overflows:N}],!N.every(F=>F<=0)){var I,O;const F=(((I=i.flip)==null?void 0:I.index)||0)+1,J=E[F];if(J)return{data:{index:F,overflows:M},reset:{placement:J}};let X=(O=M.filter(q=>q.overflows[0]<=0).sort((q,Z)=>q.overflows[1]-Z.overflows[1])[0])==null?void 0:O.placement;if(!X)switch(y){case"bestFit":{var z;const q=(z=M.filter(Z=>{if(A){const re=Wn(Z.placement);return re===b||re==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(re=>re>0).reduce((re,fe)=>re+fe,0)]).sort((Z,re)=>Z[1]-re[1])[0])==null?void 0:z[0];q&&(X=q);break}case"initialPlacement":X=a;break}if(r!==X)return{reset:{placement:X}}}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 YT.some(t=>e[t]>=0)}const lA=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:s="referenceHidden",...r}=Sn(e,t);switch(s){case"referenceHidden":{const i=await si(t,{...r,elementContext:"reference"}),o=th(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:nh(o)}}}case"escaped":{const i=await si(t,{...r,altBoundary:!0}),o=th(i,n.floating);return{data:{escapedOffsets:o,escaped:nh(o)}}}default:return{}}}}};async function uA(e,t){const{placement:n,platform:s,elements:r}=e,i=await(s.isRTL==null?void 0:s.isRTL(r.floating)),o=_n(n),a=wr(n),c=Wn(n)==="y",l=["left","top"].includes(o)?-1:1,u=i&&c?-1:1,d=Sn(t,e);let{mainAxis:h,crossAxis:y,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(y=a==="end"?m*-1:m),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,s;const{x:r,y:i,placement:o,middlewareData:a}=t,c=await uA(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(s=a.arrow)!=null&&s.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:o}}}}},fA=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:r}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:v=>{let{x,y:b}=v;return{x,y:b}}},...c}=Sn(e,t),l={x:n,y:s},u=await si(t,c),d=Wn(_n(r)),h=pu(d);let y=l[h],m=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=m+u[v],w=m-u[x];m=Vc(b,m,w)}const p=a.fn({...t,[h]:y,[d]:m});return{...p,data:{x:p.x-n,y:p.y-s,enabled:{[h]:i,[d]:o}}}}}},hA=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:s,placement:r,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Sn(e,t),u={x:n,y:s},d=Wn(r),h=pu(d);let y=u[h],m=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(r)),S=i.reference[d]-i.floating[w]+(_&&((x=o.offset)==null?void 0:x[d])||0)+(_?0:v.crossAxis),A=i.reference[d]+i.reference[w]+(_?0:((b=o.offset)==null?void 0:b[d])||0)-(_?v.crossAxis:0);m<S?m=S:m>A&&(m=A)}return{[h]:y,[d]:m}}}},pA=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:r,rects:i,platform:o,elements:a}=t,{apply:c=()=>{},...l}=Sn(e,t),u=await si(t,l),d=_n(r),h=wr(r),y=Wn(r)==="y",{width:m,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=m-u.left-u.right,_=zn(p-u[v],b),S=zn(m-u[x],w),A=!t.middlewareData.shift;let E=_,R=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=w),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(E=b),A&&!h){const M=mt(u.left,0),I=mt(u.right,0),O=mt(u.top,0),z=mt(u.bottom,0);y?R=m-2*(M!==0||I!==0?M+I:mt(u.left,u.right)):E=p-2*(O!==0||z!==0?O+z:mt(u.top,u.bottom))}await c({...t,availableWidth:R,availableHeight:E});const N=await o.getDimensions(a.floating);return m!==N.width||p!==N.height?{reset:{rects:!0}}:{}}}};function ia(){return typeof window<"u"}function Sr(e){return oy(e)?(e.nodeName||"").toLowerCase():"#document"}function xt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fn(e){var t;return(t=(oy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function oy(e){return ia()?e instanceof Node||e instanceof xt(e).Node:!1}function Bt(e){return ia()?e instanceof Element||e instanceof xt(e).Element:!1}function cn(e){return ia()?e instanceof HTMLElement||e instanceof xt(e).HTMLElement:!1}function sh(e){return!ia()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof xt(e).ShadowRoot}function ki(e){const{overflow:t,overflowX:n,overflowY:s,display:r}=$t(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!["inline","contents"].includes(r)}function mA(e){return["table","td","th"].includes(Sr(e))}function oa(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function yu(e){const t=vu(),n=Bt(e)?$t(e):e;return["transform","translate","scale","rotate","perspective"].some(s=>n[s]?n[s]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(s=>(n.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(n.contain||"").includes(s))}function gA(e){let t=Hn(e);for(;cn(t)&&!lr(t);){if(yu(t))return t;if(oa(t))return null;t=Hn(t)}return null}function vu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function lr(e){return["html","body","#document"].includes(Sr(e))}function $t(e){return xt(e).getComputedStyle(e)}function aa(e){return Bt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Hn(e){if(Sr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||sh(e)&&e.host||fn(e);return sh(t)?t.host:t}function ay(e){const t=Hn(e);return lr(t)?e.ownerDocument?e.ownerDocument.body:e.body:cn(t)&&ki(t)?t:ay(t)}function ri(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=ay(e),i=r===((s=e.ownerDocument)==null?void 0:s.body),o=xt(r);if(i){const a=$c(o);return t.concat(o,o.visualViewport||[],ki(r)?r:[],a&&n?ri(a):[])}return t.concat(r,ri(r,[],n))}function $c(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function cy(e){const t=$t(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const r=cn(e),i=r?e.offsetWidth:n,o=r?e.offsetHeight:s,a=Ao(n)!==i||Ao(s)!==o;return a&&(n=i,s=o),{width:n,height:s,$:a}}function xu(e){return Bt(e)?e:e.contextElement}function Hs(e){const t=xu(e);if(!cn(t))return on(1);const n=t.getBoundingClientRect(),{width:s,height:r,$:i}=cy(t);let o=(i?Ao(n.width):n.width)/s,a=(i?Ao(n.height):n.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const yA=on(0);function ly(e){const t=xt(e);return!vu()||!t.visualViewport?yA:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vA(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==xt(e)?!1:t}function Ss(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=xu(e);let o=on(1);t&&(s?Bt(s)&&(o=Hs(s)):o=Hs(e));const a=vA(i,n,s)?ly(i):on(0);let c=(r.left+a.x)/o.x,l=(r.top+a.y)/o.y,u=r.width/o.x,d=r.height/o.y;if(i){const h=xt(i),y=s&&Bt(s)?xt(s):s;let m=h,p=$c(m);for(;p&&s&&y!==m;){const v=Hs(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+=_,m=xt(p),p=$c(m)}}return Po({width:u,height:d,x:c,y:l})}function bu(e,t){const n=aa(e).scrollLeft;return t?t.left+n:Ss(fn(e)).left+n}function uy(e,t,n){n===void 0&&(n=!1);const s=e.getBoundingClientRect(),r=s.left+t.scrollLeft-(n?0:bu(e,s)),i=s.top+t.scrollTop;return{x:r,y:i}}function xA(e){let{elements:t,rect:n,offsetParent:s,strategy:r}=e;const i=r==="fixed",o=fn(s),a=t?oa(t.floating):!1;if(s===o||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=on(1);const u=on(0),d=cn(s);if((d||!d&&!i)&&((Sr(s)!=="body"||ki(o))&&(c=aa(s)),cn(s))){const y=Ss(s);l=Hs(s),u.x=y.x+s.clientLeft,u.y=y.y+s.clientTop}const h=o&&!d&&!i?uy(o,c,!0):on(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 bA(e){return Array.from(e.getClientRects())}function wA(e){const t=fn(e),n=aa(e),s=e.ownerDocument.body,r=mt(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),i=mt(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let o=-n.scrollLeft+bu(e);const a=-n.scrollTop;return $t(s).direction==="rtl"&&(o+=mt(t.clientWidth,s.clientWidth)-r),{width:r,height:i,x:o,y:a}}function SA(e,t){const n=xt(e),s=fn(e),r=n.visualViewport;let i=s.clientWidth,o=s.clientHeight,a=0,c=0;if(r){i=r.width,o=r.height;const l=vu();(!l||l&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:o,x:a,y:c}}function _A(e,t){const n=Ss(e,!0,t==="fixed"),s=n.top+e.clientTop,r=n.left+e.clientLeft,i=cn(e)?Hs(e):on(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,c=r*i.x,l=s*i.y;return{width:o,height:a,x:c,y:l}}function rh(e,t,n){let s;if(t==="viewport")s=SA(e,n);else if(t==="document")s=wA(fn(e));else if(Bt(t))s=_A(t,n);else{const r=ly(e);s={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Po(s)}function dy(e,t){const n=Hn(e);return n===t||!Bt(n)||lr(n)?!1:$t(n).position==="fixed"||dy(n,t)}function CA(e,t){const n=t.get(e);if(n)return n;let s=ri(e,[],!1).filter(a=>Bt(a)&&Sr(a)!=="body"),r=null;const i=$t(e).position==="fixed";let o=i?Hn(e):e;for(;Bt(o)&&!lr(o);){const a=$t(o),c=yu(o);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||ki(o)&&!c&&dy(e,o))?s=s.filter(u=>u!==o):r=a,o=Hn(o)}return t.set(e,s),s}function EA(e){let{element:t,boundary:n,rootBoundary:s,strategy:r}=e;const o=[...n==="clippingAncestors"?oa(t)?[]:CA(t,this._c):[].concat(n),s],a=o[0],c=o.reduce((l,u)=>{const d=rh(t,u,r);return l.top=mt(d.top,l.top),l.right=zn(d.right,l.right),l.bottom=zn(d.bottom,l.bottom),l.left=mt(d.left,l.left),l},rh(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function TA(e){const{width:t,height:n}=cy(e);return{width:t,height:n}}function AA(e,t,n){const s=cn(t),r=fn(t),i=n==="fixed",o=Ss(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=on(0);if(s||!s&&!i)if((Sr(t)!=="body"||ki(r))&&(a=aa(t)),s){const h=Ss(t,!0,i,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else r&&(c.x=bu(r));const l=r&&!s&&!i?uy(r,a):on(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 Ha(e){return $t(e).position==="static"}function ih(e,t){if(!cn(e)||$t(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return fn(e)===n&&(n=n.ownerDocument.body),n}function fy(e,t){const n=xt(e);if(oa(e))return n;if(!cn(e)){let r=Hn(e);for(;r&&!lr(r);){if(Bt(r)&&!Ha(r))return r;r=Hn(r)}return n}let s=ih(e,t);for(;s&&mA(s)&&Ha(s);)s=ih(s,t);return s&&lr(s)&&Ha(s)&&!yu(s)?n:s||gA(e)||n}const RA=async function(e){const t=this.getOffsetParent||fy,n=this.getDimensions,s=await n(e.floating);return{reference:AA(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function PA(e){return $t(e).direction==="rtl"}const NA={convertOffsetParentRelativeRectToViewportRelativeRect:xA,getDocumentElement:fn,getClippingRect:EA,getOffsetParent:fy,getElementRects:RA,getClientRects:bA,getDimensions:TA,getScale:Hs,isElement:Bt,isRTL:PA};function hy(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function jA(e,t){let n=null,s;const r=fn(e);function i(){var a;clearTimeout(s),(a=n)==null||a.disconnect(),n=null}function o(a,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 m=Yi(d),p=Yi(r.clientWidth-(u+h)),v=Yi(r.clientHeight-(d+y)),x=Yi(u),w={rootMargin:-m+"px "+-p+"px "+-v+"px "+-x+"px",threshold:mt(0,zn(1,c))||1};let _=!0;function S(A){const E=A[0].intersectionRatio;if(E!==c){if(!_)return o();E?o(!1,E):s=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!hy(l,e.getBoundingClientRect())&&o(),_=!1}try{n=new IntersectionObserver(S,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return o(!0),i}function kA(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=s,l=xu(e),u=r||i?[...l?ri(l):[],...ri(t)]:[];u.forEach(x=>{r&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const d=l&&a?jA(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 m,p=c?Ss(e):null;c&&v();function v(){const x=Ss(e);p&&!hy(p,x)&&n(),p=x,m=requestAnimationFrame(v)}return n(),()=>{var x;u.forEach(b=>{r&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),d==null||d(),(x=y)==null||x.disconnect(),y=null,c&&cancelAnimationFrame(m)}}const OA=dA,MA=fA,DA=cA,IA=pA,LA=lA,oh=aA,FA=hA,VA=(e,t,n)=>{const s=new Map,r={platform:NA,...n},i={...r.platform,_c:s};return oA(e,t,{...r,platform:i})};var co=typeof document<"u"?g.useLayoutEffect:g.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,s,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(s=n;s--!==0;)if(!No(e[s],t[s]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(s=n;s--!==0;)if(!{}.hasOwnProperty.call(t,r[s]))return!1;for(s=n;s--!==0;){const i=r[s];if(!(i==="_owner"&&e.$$typeof)&&!No(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function py(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ah(e,t){const n=py(e);return Math.round(t*n)/n}function qa(e){const t=g.useRef(e);return co(()=>{t.current=e}),t}function BA(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:r,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,y]=g.useState(s);No(h,s)||y(s);const[m,p]=g.useState(null),[v,x]=g.useState(null),b=g.useCallback(Z=>{Z!==A.current&&(A.current=Z,p(Z))},[]),w=g.useCallback(Z=>{Z!==E.current&&(E.current=Z,x(Z))},[]),_=i||m,S=o||v,A=g.useRef(null),E=g.useRef(null),R=g.useRef(u),N=c!=null,M=qa(c),I=qa(r),O=qa(l),z=g.useCallback(()=>{if(!A.current||!E.current)return;const Z={placement:t,strategy:n,middleware:h};I.current&&(Z.platform=I.current),VA(A.current,E.current,Z).then(re=>{const fe={...re,isPositioned:O.current!==!1};F.current&&!No(R.current,fe)&&(R.current=fe,dl.flushSync(()=>{d(fe)}))})},[h,t,n,I,O]);co(()=>{l===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,d(Z=>({...Z,isPositioned:!1})))},[l]);const F=g.useRef(!1);co(()=>(F.current=!0,()=>{F.current=!1}),[]),co(()=>{if(_&&(A.current=_),S&&(E.current=S),_&&S){if(M.current)return M.current(_,S,z);z()}},[_,S,z,M,N]);const J=g.useMemo(()=>({reference:A,floating:E,setReference:b,setFloating:w}),[b,w]),X=g.useMemo(()=>({reference:_,floating:S}),[_,S]),q=g.useMemo(()=>{const Z={position:n,left:0,top:0};if(!X.floating)return Z;const re=ah(X.floating,u.x),fe=ah(X.floating,u.y);return a?{...Z,transform:"translate("+re+"px, "+fe+"px)",...py(X.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:re,top:fe}},[n,a,X.floating,u.x,u.y]);return g.useMemo(()=>({...u,update:z,refs:J,elements:X,floatingStyles:q}),[u,z,J,X,q])}const $A=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:s,padding:r}=typeof e=="function"?e(n):e;return s&&t(s)?s.current!=null?oh({element:s.current,padding:r}).fn(n):{}:s?oh({element:s,padding:r}).fn(n):{}}}},UA=(e,t)=>({...OA(e),options:[e,t]}),zA=(e,t)=>({...MA(e),options:[e,t]}),WA=(e,t)=>({...FA(e),options:[e,t]}),HA=(e,t)=>({...DA(e),options:[e,t]}),qA=(e,t)=>({...IA(e),options:[e,t]}),ZA=(e,t)=>({...LA(e),options:[e,t]}),KA=(e,t)=>({...$A(e),options:[e,t]});var GA="Arrow",my=g.forwardRef((e,t)=>{const{children:n,width:s=10,height:r=5,...i}=e;return f.jsx(ct.svg,{...i,ref:t,width:s,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});my.displayName=GA;var QA=my;function XA(e){const[t,n]=g.useState(void 0);return bs(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let o,a;if("borderBoxSize"in i){const 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 s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}var wu="Popper",[gy,yy]=gl(wu),[YA,vy]=gy(wu),xy=e=>{const{__scopePopper:t,children:n}=e,[s,r]=g.useState(null);return f.jsx(YA,{scope:t,anchor:s,onAnchorChange:r,children:n})};xy.displayName=wu;var by="PopperAnchor",wy=g.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:s,...r}=e,i=vy(by,n),o=g.useRef(null),a=zt(t,o);return g.useEffect(()=>{i.onAnchorChange((s==null?void 0:s.current)||o.current)}),s?null:f.jsx(ct.div,{...r,ref:a})});wy.displayName=by;var Su="PopperContent",[JA,eR]=gy(Su),Sy=g.forwardRef((e,t)=>{var ue,ve,ke,Le,we,G;const{__scopePopper:n,side:s="bottom",sideOffset:r=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:m,...p}=e,v=vy(Su,n),[x,b]=g.useState(null),w=zt(t,he=>b(he)),[_,S]=g.useState(null),A=XA(_),E=(A==null?void 0:A.width)??0,R=(A==null?void 0:A.height)??0,N=s+(i!=="center"?"-"+i:""),M=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},I=Array.isArray(l)?l:[l],O=I.length>0,z={padding:M,boundary:I.filter(nR),altBoundary:O},{refs:F,floatingStyles:J,placement:X,isPositioned:q,middlewareData:Z}=BA({strategy:"fixed",placement:N,whileElementsMounted:(...he)=>kA(...he,{animationFrame:y==="always"}),elements:{reference:v.anchor},middleware:[UA({mainAxis:r+R,alignmentAxis:o}),c&&zA({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?WA():void 0,...z}),c&&HA({...z}),qA({...z,apply:({elements:he,rects:_e,availableWidth:Ue,availableHeight:pt})=>{const{width:_t,height:C}=_e.reference,P=he.floating.style;P.setProperty("--radix-popper-available-width",`${Ue}px`),P.setProperty("--radix-popper-available-height",`${pt}px`),P.setProperty("--radix-popper-anchor-width",`${_t}px`),P.setProperty("--radix-popper-anchor-height",`${C}px`)}}),_&&KA({element:_,padding:a}),sR({arrowWidth:E,arrowHeight:R}),h&&ZA({strategy:"referenceHidden",...z})]}),[re,fe]=Ey(X),ye=Bn(m);bs(()=>{q&&(ye==null||ye())},[q,ye]);const Be=(ue=Z.arrow)==null?void 0:ue.x,Ze=(ve=Z.arrow)==null?void 0:ve.y,Ke=((ke=Z.arrow)==null?void 0:ke.centerOffset)!==0,[jt,nt]=g.useState();return bs(()=>{x&&nt(window.getComputedStyle(x).zIndex)},[x]),f.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:q?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:jt,"--radix-popper-transform-origin":[(Le=Z.transformOrigin)==null?void 0:Le.x,(we=Z.transformOrigin)==null?void 0:we.y].join(" "),...((G=Z.hide)==null?void 0:G.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(JA,{scope:n,placedSide:re,onArrowChange:S,arrowX:Be,arrowY:Ze,shouldHideArrow:Ke,children:f.jsx(ct.div,{"data-side":re,"data-align":fe,...p,ref:w,style:{...p.style,animation:q?void 0:"none"}})})})});Sy.displayName=Su;var _y="PopperArrow",tR={top:"bottom",right:"left",bottom:"top",left:"right"},Cy=g.forwardRef(function(t,n){const{__scopePopper:s,...r}=t,i=eR(_y,s),o=tR[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(QA,{...r,ref:n,style:{...r.style,display:"block"}})})});Cy.displayName=_y;function nR(e){return e!==null}var sR=e=>({name:"transformOrigin",options:e,fn(t){var v,x,b;const{placement:n,rects:s,middlewareData:r}=t,o=((v=r.arrow)==null?void 0:v.centerOffset)!==0,a=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[l,u]=Ey(n),d={start:"0%",center:"50%",end:"100%"}[u],h=(((x=r.arrow)==null?void 0:x.x)??0)+a/2,y=(((b=r.arrow)==null?void 0:b.y)??0)+c/2;let m="",p="";return l==="bottom"?(m=o?d:`${h}px`,p=`${-c}px`):l==="top"?(m=o?d:`${h}px`,p=`${s.floating.height+c}px`):l==="right"?(m=`${-c}px`,p=o?d:`${y}px`):l==="left"&&(m=`${s.floating.width+c}px`,p=o?d:`${y}px`),{data:{x:m,y:p}}}});function Ey(e){const[t,n="center"]=e.split("-");return[t,n]}var rR=xy,Ty=wy,iR=Sy,oR=Cy,_u="Popover",[Ay,Dk]=gl(_u,[yy]),Oi=yy(),[aR,Xn]=Ay(_u),Ry=e=>{const{__scopePopover:t,children:n,open:s,defaultOpen:r,onOpenChange:i,modal:o=!1}=e,a=Oi(t),c=g.useRef(null),[l,u]=g.useState(!1),[d=!1,h]=ap({prop:s,defaultProp:r,onChange:i});return f.jsx(rR,{...a,children:f.jsx(aR,{scope:t,contentId:to(),triggerRef:c,open:d,onOpenChange:h,onOpenToggle:g.useCallback(()=>h(y=>!y),[h]),hasCustomAnchor:l,onCustomAnchorAdd:g.useCallback(()=>u(!0),[]),onCustomAnchorRemove:g.useCallback(()=>u(!1),[]),modal:o,children:n})})};Ry.displayName=_u;var Py="PopoverAnchor",cR=g.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Xn(Py,n),i=Oi(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=r;return g.useEffect(()=>(o(),()=>a()),[o,a]),f.jsx(Ty,{...i,...s,ref:t})});cR.displayName=Py;var Ny="PopoverTrigger",jy=g.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Xn(Ny,n),i=Oi(n),o=zt(t,r.triggerRef),a=f.jsx(ct.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Iy(r.open),...s,ref:o,onClick:yt(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?a:f.jsx(Ty,{asChild:!0,...i,children:a})});jy.displayName=Ny;var Cu="PopoverPortal",[lR,uR]=Ay(Cu,{forceMount:void 0}),ky=e=>{const{__scopePopover:t,forceMount:n,children:s,container:r}=e,i=Xn(Cu,t);return f.jsx(lR,{scope:t,forceMount:n,children:f.jsx(gr,{present:n||i.open,children:f.jsx(xl,{asChild:!0,container:r,children:s})})})};ky.displayName=Cu;var ur="PopoverContent",Oy=g.forwardRef((e,t)=>{const n=uR(ur,e.__scopePopover),{forceMount:s=n.forceMount,...r}=e,i=Xn(ur,e.__scopePopover);return f.jsx(gr,{present:s||i.open,children:i.modal?f.jsx(dR,{...r,ref:t}):f.jsx(fR,{...r,ref:t})})});Oy.displayName=ur;var dR=g.forwardRef((e,t)=>{const n=Xn(ur,e.__scopePopover),s=g.useRef(null),r=zt(t,s),i=g.useRef(!1);return g.useEffect(()=>{const o=s.current;if(o)return bp(o)},[]),f.jsx(bl,{as:mr,allowPinchZoom:!0,children:f.jsx(My,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:yt(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:yt(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:yt(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),fR=g.forwardRef((e,t)=>{const n=Xn(ur,e.__scopePopover),s=g.useRef(!1),r=g.useRef(!1);return f.jsx(My,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(s.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),s.current=!1,r.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(s.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),My=g.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:s,onOpenAutoFocus:r,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,h=Xn(ur,n),y=Oi(n);return dp(),f.jsx(vl,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:r,onUnmountAutoFocus:i,children:f.jsx(yl,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>h.onOpenChange(!1),children:f.jsx(iR,{"data-state":Iy(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)"}})})})}),Dy="PopoverClose",hR=g.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Xn(Dy,n);return f.jsx(ct.button,{type:"button",...s,ref:t,onClick:yt(e.onClick,()=>r.onOpenChange(!1))})});hR.displayName=Dy;var pR="PopoverArrow",mR=g.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Oi(n);return f.jsx(oR,{...r,...s,ref:t})});mR.displayName=pR;function Iy(e){return e?"open":"closed"}var gR=Ry,yR=jy,vR=ky,Ly=Oy;const Fy=gR,Vy=yR,Eu=g.forwardRef(({className:e,align:t="center",sideOffset:n=4,...s},r)=>f.jsx(vR,{children:f.jsx(Ly,{ref:r,align:t,sideOffset:n,className:V("z-50 w-32 rounded-[2px] bg-white p-4 text-popover-foreground drop-shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...s})}));Eu.displayName=Ly.displayName;const ch=e=>{let t;const n=new Set,s=(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))}},r=()=>t,a={setState:s,getState:r,getInitialState:()=>c,subscribe:l=>(n.add(l),()=>n.delete(l))},c=t=e(s,r,a);return a},xR=e=>e?ch(e):ch,bR=e=>e;function wR(e,t=bR){const n=de.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return de.useDebugValue(n),n}const SR=e=>{const t=xR(e),n=s=>wR(t,s);return Object.assign(n,t),n},By=e=>SR;function _R(e,t){let n;try{n=e()}catch{return}return{getItem:r=>{var i;const o=c=>c===null?null:JSON.parse(c,void 0),a=(i=n.getItem(r))!=null?i:null;return a instanceof Promise?a.then(o):o(a)},setItem:(r,i)=>n.setItem(r,JSON.stringify(i,void 0)),removeItem:r=>n.removeItem(r)}}const Uc=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(s){return Uc(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return Uc(s)(n)}}}},CR=(e,t)=>(n,s,r)=>{let i={storage:_R(()=>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)},s,r);const u=()=>{const p=i.partialize({...s()});return l.setItem(i.name,{state:p,version:i.version})},d=r.setState;r.setState=(p,v)=>{d(p,v),u()};const h=e((...p)=>{n(...p),u()},s,r);r.getInitialState=()=>h;let y;const m=()=>{var p,v;if(!l)return;o=!1,a.forEach(b=>{var w;return b((w=s())!=null?w:h)});const x=((v=i.onRehydrateStorage)==null?void 0:v.call(i,(p=s())!=null?p:h))||void 0;return Uc(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=s())!=null?w:h),n(y,!0),_)return u()}).then(()=>{x==null||x(y,void 0),y=s(),o=!0,c.forEach(b=>b(y))}).catch(b=>{x==null||x(void 0,b)})};return r.persist={setOptions:p=>{i={...i,...p},p.storage&&(l=p.storage)},clearStorage:()=>{l==null||l.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>m(),hasHydrated:()=>o,onHydrate:p=>(a.add(p),()=>{a.delete(p)}),onFinishHydration:p=>(c.add(p),()=>{c.delete(p)})},i.skipHydration||m(),y||h},ER=CR;var Pt=(e=>(e.EN="en",e.RU="ru",e))(Pt||{});const Te=By()(ER(e=>({lang:"en",setLang:t=>e({lang:t})}),{name:"lang-storage"})),TR=[{lang:Pt.RU},{lang:Pt.EN}],lh=({className:e,light:t=!1})=>{const n=Te(o=>o.lang),s=Te(o=>o.setLang),[r,i]=g.useState(!1);return f.jsxs(Fy,{open:r,onOpenChange:()=>i(!r),children:[f.jsxs(Vy,{className:V("flex text-white items-center gap-2",t?"text-white":"text-black",e),children:[f.jsx("img",{src:n===Pt.RU?"/ru.svg":"/english.svg",alt:""}),n===Pt.RU?"Ру":"En",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(Eu,{className:"flex flex-col gap-6 w-fit relative z-[200] py-2 px-4 bg-surface_container",children:TR.filter(o=>o.lang!==n).map((o,a)=>f.jsxs("div",{onClick:()=>{s(o.lang),i(!1)},className:"flex gap-3 py-2 items-center cursor-pointer",children:[f.jsx("img",{src:o.lang===Pt.RU?"/ru.svg":"/english.svg",alt:"flag"}),f.jsx("h5",{children:o.lang===Pt.RU?"Русский":"English"})]},a))})]})},$y=Lp,Uy=Fp,AR=Vp,zy=g.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}));zy.displayName=Ho.displayName;const Tu=g.forwardRef(({className:e,children:t,...n},s)=>f.jsxs(AR,{children:[f.jsx(zy,{}),f.jsxs(qo,{ref:s,className:V("fixed left-[50%] top-[50%] z-50 grid 2xl:w-[40%] lg:w-1/2 w-[70%] translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background md:p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,f.jsxs(El,{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(Tl,{className:"size-6"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Tu.displayName=qo.displayName;const RR=g.forwardRef(({className:e,...t},n)=>f.jsx(Zo,{ref:n,className:V("text-lg font-semibold leading-none tracking-tight",e),...t}));RR.displayName=Zo.displayName;const PR=g.forwardRef(({className:e,...t},n)=>f.jsx(Ko,{ref:n,className:V("text-sm text-muted-foreground",e),...t}));PR.displayName=Ko.displayName;const uh=(e,t,n)=>{if(e&&"reportValidity"in e){const s=$(n,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},Wy=(e,t)=>{for(const n in t.fields){const s=t.fields[n];s&&s.ref&&"reportValidity"in s.ref?uh(s.ref,n,e):s.refs&&s.refs.forEach(r=>uh(r,n,e))}},NR=(e,t)=>{t.shouldUseNativeValidation&&Wy(e,t);const n={};for(const s in e){const r=$(t.fields,s),i=Object.assign(e[s]||{},{ref:r&&r.ref});if(jR(t.names||Object.keys(e),s)){const o=Object.assign({},$(n,s));xe(o,"root",i),xe(n,s,o)}else xe(n,s,i)}return n},jR=(e,t)=>e.some(n=>n.startsWith(t+"."));var kR=function(e,t){for(var n={};e.length;){var s=e[0],r=s.code,i=s.message,o=s.path.join(".");if(!n[o])if("unionErrors"in s){var a=s.unionErrors[0].errors[0];n[o]={message:a.message,type:a.code}}else n[o]={message:i,type:r};if("unionErrors"in s&&s.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var c=n[o].types,l=c&&c[s.code];n[o]=Ug(o,t,n,r,l?[].concat(l,s.message):s.message)}e.shift()}return n},OR=function(e,t,n){return n===void 0&&(n={}),function(s,r,i){try{return Promise.resolve(function(o,a){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](s,t)).then(function(l){return i.shouldUseNativeValidation&&Wy({},i),{errors:{},values:n.raw?s: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:NR(kR(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}},ge;(function(e){e.assertEqual=r=>r;function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{const i={};for(const o of r)i[o]=o;return i},e.getValidEnumValues=r=>{const i=e.objectKeys(r).filter(a=>typeof r[r[a]]!="number"),o={};for(const a of i)o[a]=r[a];return e.objectValues(o)},e.objectValues=r=>e.objectKeys(r).map(function(i){return r[i]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{const i=[];for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&i.push(o);return i},e.find=(r,i)=>{for(const o of r)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&isFinite(r)&&Math.floor(r)===r;function s(r,i=" | "){return r.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=s,e.jsonStringifyReplacer=(r,i)=>typeof i=="bigint"?i.toString():i})(ge||(ge={}));var zc;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(zc||(zc={}));const H=ge.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),yn=e=>{switch(typeof e){case"undefined":return H.undefined;case"string":return H.string;case"number":return isNaN(e)?H.nan:H.number;case"boolean":return H.boolean;case"function":return H.function;case"bigint":return H.bigint;case"symbol":return H.symbol;case"object":return Array.isArray(e)?H.array:e===null?H.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?H.promise:typeof Map<"u"&&e instanceof Map?H.map:typeof Set<"u"&&e instanceof Set?H.set:typeof Date<"u"&&e instanceof Date?H.date:H.object;default:return H.unknown}},D=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"]),MR=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class bt extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},s={_errors:[]},r=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(r);else if(o.code==="invalid_return_type")r(o.returnTypeError);else if(o.code==="invalid_arguments")r(o.argumentsError);else if(o.path.length===0)s._errors.push(n(o));else{let a=s,c=0;for(;c<o.path.length;){const l=o.path[c];c===o.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(n(o))):a[l]=a[l]||{_errors:[]},a=a[l],c++}}};return r(this),s}static assert(t){if(!(t instanceof bt))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ge.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},s=[];for(const r of this.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):s.push(t(r));return{formErrors:s,fieldErrors:n}}get formErrors(){return this.flatten()}}bt.create=e=>new bt(e);const dr=(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 Hy=dr;function DR(e){Hy=e}function jo(){return Hy}const ko=e=>{const{data:t,path:n,errorMaps:s,issueData:r}=e,i=[...n,...r.path||[]],o={...r,path:i};if(r.message!==void 0)return{...r,path:i,message:r.message};let a="";const c=s.filter(l=>!!l).slice().reverse();for(const l of c)a=l(o,{data:t,defaultError:a}).message;return{...r,path:i,message:a}},IR=[];function W(e,t){const n=jo(),s=ko({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===dr?void 0:dr].filter(r=>!!r)});e.common.issues.push(s)}class et{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const s=[];for(const r of n){if(r.status==="aborted")return se;r.status==="dirty"&&t.dirty(),s.push(r.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,n){const s=[];for(const r of n){const i=await r.key,o=await r.value;s.push({key:i,value:o})}return et.mergeObjectSync(t,s)}static mergeObjectSync(t,n){const s={};for(const r of n){const{key:i,value:o}=r;if(i.status==="aborted"||o.status==="aborted")return se;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||r.alwaysSet)&&(s[i.value]=o.value)}return{status:t.value,value:s}}}const se=Object.freeze({status:"aborted"}),$s=e=>({status:"dirty",value:e}),at=e=>({status:"valid",value:e}),Wc=e=>e.status==="aborted",Hc=e=>e.status==="dirty",_s=e=>e.status==="valid",ii=e=>typeof Promise<"u"&&e instanceof Promise;function Oo(e,t,n,s){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function qy(e,t,n,s,r){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var 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 Fr,Vr;class ln{constructor(t,n,s,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=s,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const dh=(e,t)=>{if(_s(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 bt(e.common.issues);return this._error=n,this._error}}};function oe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:s,description:r}=e;if(t&&(n||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(o,a)=>{var c,l;const{message:u}=e;return o.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(c=u??s)!==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:r}}class le{get description(){return this._def.description}_getType(t){return yn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:yn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new et,ctx:{common:t.parent.common,data:t.data,parsedType:yn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(ii(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const s=this.safeParse(t,n);if(s.success)return s.data;throw s.error}safeParse(t,n){var s;const r={common:{issues:[],async:(s=n==null?void 0:n.async)!==null&&s!==void 0?s:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:yn(t)},i=this._parseSync({data:t,path:r.path,parent:r});return dh(r,i)}"~validate"(t){var n,s;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:yn(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:r});return _s(i)?{value:i.value}:{issues:r.common.issues}}catch(i){!((s=(n=i==null?void 0:i.message)===null||n===void 0?void 0:n.toLowerCase())===null||s===void 0)&&s.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(i=>_s(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(t,n){const s=await this.safeParseAsync(t,n);if(s.success)return s.data;throw s.error}async safeParseAsync(t,n){const s={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:yn(t)},r=this._parse({data:t,path:s.path,parent:s}),i=await(ii(r)?r:Promise.resolve(r));return dh(s,i)}refine(t,n){const s=r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n;return this._refinement((r,i)=>{const o=t(r),a=()=>i.addIssue({code:D.custom,...s(r)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,n){return this._refinement((s,r)=>t(s)?!0:(r.addIssue(typeof n=="function"?n(s,r):n),!1))}_refinement(t){return new Ut({schema:this,typeName:te.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return an.create(this,this._def)}nullable(){return Gn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ft.create(this)}promise(){return hr.create(this,this._def)}or(t){return li.create([this,t],this._def)}and(t){return ui.create(this,t,this._def)}transform(t){return new Ut({...oe(this._def),schema:this,typeName:te.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new mi({...oe(this._def),innerType:this,defaultValue:n,typeName:te.ZodDefault})}brand(){return new Au({typeName:te.ZodBranded,type:this,...oe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new gi({...oe(this._def),innerType:this,catchValue:n,typeName:te.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Mi.create(this,t)}readonly(){return yi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const LR=/^c[^\s-]{8,}$/i,FR=/^[0-9a-z]+$/,VR=/^[0-9A-HJKMNP-TV-Z]{26}$/i,BR=/^[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,$R=/^[a-z0-9_-]{21}$/i,UR=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,zR=/^[-+]?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)?)??$/,WR=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,HR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Za;const qR=/^(?:(?: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])$/,ZR=/^(?:(?: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])$/,KR=/^(([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]))$/,GR=/^(([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])$/,QR=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,XR=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Zy="((\\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])))",YR=new RegExp(`^${Zy}$`);function Ky(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 JR(e){return new RegExp(`^${Ky(e)}$`)}function Gy(e){let t=`${Zy}T${Ky(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 eP(e,t){return!!((t==="v4"||!t)&&qR.test(e)||(t==="v6"||!t)&&KR.test(e))}function tP(e,t){if(!UR.test(e))return!1;try{const[n]=e.split("."),s=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(s));return!(typeof r!="object"||r===null||!r.typ||!r.alg||t&&r.alg!==t)}catch{return!1}}function nP(e,t){return!!((t==="v4"||!t)&&ZR.test(e)||(t==="v6"||!t)&&GR.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}),se}const s=new et;let r;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(r=this._getOrReturnCtx(t,r),W(r,{code:D.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="max")t.data.length>i.value&&(r=this._getOrReturnCtx(t,r),W(r,{code:D.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,a=t.data.length<i.value;(o||a)&&(r=this._getOrReturnCtx(t,r),o?W(r,{code:D.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&W(r,{code:D.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),s.dirty())}else if(i.kind==="email")WR.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"email",code:D.invalid_string,message:i.message}),s.dirty());else if(i.kind==="emoji")Za||(Za=new RegExp(HR,"u")),Za.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"emoji",code:D.invalid_string,message:i.message}),s.dirty());else if(i.kind==="uuid")BR.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"uuid",code:D.invalid_string,message:i.message}),s.dirty());else if(i.kind==="nanoid")$R.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"nanoid",code:D.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid")LR.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"cuid",code:D.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid2")FR.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"cuid2",code:D.invalid_string,message:i.message}),s.dirty());else if(i.kind==="ulid")VR.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"ulid",code:D.invalid_string,message:i.message}),s.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),W(r,{validation:"url",code:D.invalid_string,message:i.message}),s.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"regex",code:D.invalid_string,message:i.message}),s.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(r=this._getOrReturnCtx(t,r),W(r,{code:D.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),s.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(r=this._getOrReturnCtx(t,r),W(r,{code:D.invalid_string,validation:{startsWith:i.value},message:i.message}),s.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(r=this._getOrReturnCtx(t,r),W(r,{code:D.invalid_string,validation:{endsWith:i.value},message:i.message}),s.dirty()):i.kind==="datetime"?Gy(i).test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:D.invalid_string,validation:"datetime",message:i.message}),s.dirty()):i.kind==="date"?YR.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:D.invalid_string,validation:"date",message:i.message}),s.dirty()):i.kind==="time"?JR(i).test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:D.invalid_string,validation:"time",message:i.message}),s.dirty()):i.kind==="duration"?zR.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"duration",code:D.invalid_string,message:i.message}),s.dirty()):i.kind==="ip"?eP(t.data,i.version)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"ip",code:D.invalid_string,message:i.message}),s.dirty()):i.kind==="jwt"?tP(t.data,i.alg)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"jwt",code:D.invalid_string,message:i.message}),s.dirty()):i.kind==="cidr"?nP(t.data,i.version)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"cidr",code:D.invalid_string,message:i.message}),s.dirty()):i.kind==="base64"?QR.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"base64",code:D.invalid_string,message:i.message}),s.dirty()):i.kind==="base64url"?XR.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"base64url",code:D.invalid_string,message:i.message}),s.dirty()):ge.assertNever(i);return{status:s.value,value:t.data}}_regex(t,n,s){return this.refinement(r=>t.test(r),{validation:n,code:D.invalid_string,...Q.errToObj(s)})}_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,s;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(s=t==null?void 0:t.local)!==null&&s!==void 0?s:!1,...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<t)&&(t=n.value);return t}}Lt.create=e=>{var t;return new Lt({checks:[],typeName:te.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...oe(e)})};function sP(e,t){const n=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,r=n>s?n:s,i=parseInt(e.toFixed(r).replace(".","")),o=parseInt(t.toFixed(r).replace(".",""));return i%o/Math.pow(10,r)}class qn 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}),se}let s;const r=new et;for(const i of this._def.checks)i.kind==="int"?ge.isInteger(t.data)||(s=this._getOrReturnCtx(t,s),W(s,{code:D.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(s=this._getOrReturnCtx(t,s),W(s,{code:D.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),W(s,{code:D.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="multipleOf"?sP(t.data,i.value)!==0&&(s=this._getOrReturnCtx(t,s),W(s,{code:D.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(s=this._getOrReturnCtx(t,s),W(s,{code:D.not_finite,message:i.message}),r.dirty()):ge.assertNever(i);return{status:r.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,s,r){return new qn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:Q.toString(r)}]})}_addCheck(t){return new qn({...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.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ge.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(n===null||s.value>n)&&(n=s.value):s.kind==="max"&&(t===null||s.value<t)&&(t=s.value)}return Number.isFinite(n)&&Number.isFinite(t)}}qn.create=e=>new qn({checks:[],typeName:te.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...oe(e)});class Zn 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 s;const r=new et;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(s=this._getOrReturnCtx(t,s),W(s,{code:D.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),W(s,{code:D.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(s=this._getOrReturnCtx(t,s),W(s,{code:D.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):ge.assertNever(i);return{status:r.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return W(n,{code:D.invalid_type,expected:H.bigint,received:n.parsedType}),se}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,s,r){return new Zn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:Q.toString(r)}]})}_addCheck(t){return new Zn({...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<t)&&(t=n.value);return t}}Zn.create=e=>{var t;return new Zn({checks:[],typeName:te.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...oe(e)})};class oi extends le{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==H.boolean){const s=this._getOrReturnCtx(t);return W(s,{code:D.invalid_type,expected:H.boolean,received:s.parsedType}),se}return at(t.data)}}oi.create=e=>new oi({typeName:te.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...oe(e)});class Cs 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}),se}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return W(i,{code:D.invalid_date}),se}const s=new et;let r;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(r=this._getOrReturnCtx(t,r),W(r,{code:D.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),s.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(r=this._getOrReturnCtx(t,r),W(r,{code:D.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),s.dirty()):ge.assertNever(i);return{status:s.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Cs({...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.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Cs.create=e=>new Cs({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:te.ZodDate,...oe(e)});class Mo extends le{_parse(t){if(this._getType(t)!==H.symbol){const s=this._getOrReturnCtx(t);return W(s,{code:D.invalid_type,expected:H.symbol,received:s.parsedType}),se}return at(t.data)}}Mo.create=e=>new Mo({typeName:te.ZodSymbol,...oe(e)});class ai extends le{_parse(t){if(this._getType(t)!==H.undefined){const s=this._getOrReturnCtx(t);return W(s,{code:D.invalid_type,expected:H.undefined,received:s.parsedType}),se}return at(t.data)}}ai.create=e=>new ai({typeName:te.ZodUndefined,...oe(e)});class ci extends le{_parse(t){if(this._getType(t)!==H.null){const s=this._getOrReturnCtx(t);return W(s,{code:D.invalid_type,expected:H.null,received:s.parsedType}),se}return at(t.data)}}ci.create=e=>new ci({typeName:te.ZodNull,...oe(e)});class fr extends le{constructor(){super(...arguments),this._any=!0}_parse(t){return at(t.data)}}fr.create=e=>new fr({typeName:te.ZodAny,...oe(e)});class ys extends le{constructor(){super(...arguments),this._unknown=!0}_parse(t){return at(t.data)}}ys.create=e=>new ys({typeName:te.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}),se}}Cn.create=e=>new Cn({typeName:te.ZodNever,...oe(e)});class Do extends le{_parse(t){if(this._getType(t)!==H.undefined){const s=this._getOrReturnCtx(t);return W(s,{code:D.invalid_type,expected:H.void,received:s.parsedType}),se}return at(t.data)}}Do.create=e=>new Do({typeName:te.ZodVoid,...oe(e)});class Ft extends le{_parse(t){const{ctx:n,status:s}=this._processInputParams(t),r=this._def;if(n.parsedType!==H.array)return W(n,{code:D.invalid_type,expected:H.array,received:n.parsedType}),se;if(r.exactLength!==null){const o=n.data.length>r.exactLength.value,a=n.data.length<r.exactLength.value;(o||a)&&(W(n,{code:o?D.too_big:D.too_small,minimum:a?r.exactLength.value:void 0,maximum:o?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),s.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(W(n,{code:D.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),s.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(W(n,{code:D.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),s.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>r.type._parseAsync(new ln(n,o,n.path,a)))).then(o=>et.mergeArray(s,o));const i=[...n.data].map((o,a)=>r.type._parseSync(new ln(n,o,n.path,a)));return et.mergeArray(s,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:te.ZodArray,...oe(t)});function Ds(e){if(e instanceof Ae){const t={};for(const n in e.shape){const s=e.shape[n];t[n]=an.create(Ds(s))}return new Ae({...e._def,shape:()=>t})}else return e instanceof Ft?new Ft({...e._def,type:Ds(e.element)}):e instanceof an?an.create(Ds(e.unwrap())):e instanceof Gn?Gn.create(Ds(e.unwrap())):e instanceof un?un.create(e.items.map(t=>Ds(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}),se}const{status:s,ctx:r}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Cn&&this._def.unknownKeys==="strip"))for(const l in r.data)o.includes(l)||a.push(l);const c=[];for(const l of o){const u=i[l],d=r.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new ln(r,d,r.path,l)),alwaysSet:l in r.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:r.data[u]}});else if(l==="strict")a.length>0&&(W(r,{code:D.unrecognized_keys,keys:a}),s.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=r.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new ln(r,d,r.path,u)),alwaysSet:u in r.data})}}return r.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=>et.mergeObjectSync(s,l)):et.mergeObjectSync(s,c)}get shape(){return this._def.shape()}strict(t){return Q.errToObj,new Ae({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,s)=>{var r,i,o,a;const c=(o=(i=(r=this._def).errorMap)===null||i===void 0?void 0:i.call(r,n,s).message)!==null&&o!==void 0?o:s.defaultError;return n.code==="unrecognized_keys"?{message:(a=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:te.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(s=>{t[s]&&this.shape[s]&&(n[s]=this.shape[s])}),new Ae({...this._def,shape:()=>n})}omit(t){const n={};return ge.objectKeys(this.shape).forEach(s=>{t[s]||(n[s]=this.shape[s])}),new Ae({...this._def,shape:()=>n})}deepPartial(){return Ds(this)}partial(t){const n={};return ge.objectKeys(this.shape).forEach(s=>{const r=this.shape[s];t&&!t[s]?n[s]=r:n[s]=r.optional()}),new Ae({...this._def,shape:()=>n})}required(t){const n={};return ge.objectKeys(this.shape).forEach(s=>{if(t&&!t[s])n[s]=this.shape[s];else{let i=this.shape[s];for(;i instanceof an;)i=i._def.innerType;n[s]=i}}),new Ae({...this._def,shape:()=>n})}keyof(){return Qy(ge.objectKeys(this.shape))}}Ae.create=(e,t)=>new Ae({shape:()=>e,unknownKeys:"strip",catchall:Cn.create(),typeName:te.ZodObject,...oe(t)});Ae.strictCreate=(e,t)=>new Ae({shape:()=>e,unknownKeys:"strict",catchall:Cn.create(),typeName:te.ZodObject,...oe(t)});Ae.lazycreate=(e,t)=>new Ae({shape:e,unknownKeys:"strip",catchall:Cn.create(),typeName:te.ZodObject,...oe(t)});class li extends le{_parse(t){const{ctx:n}=this._processInputParams(t),s=this._def.options;function r(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new bt(a.ctx.common.issues));return W(n,{code:D.invalid_union,unionErrors:o}),se}if(n.common.async)return Promise.all(s.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(r);{let i;const o=[];for(const c of s){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 bt(c));return W(n,{code:D.invalid_union,unionErrors:a}),se}}get options(){return this._def.options}}li.create=(e,t)=>new li({options:e,typeName:te.ZodUnion,...oe(t)});const gn=e=>e instanceof fi?gn(e.schema):e instanceof Ut?gn(e.innerType()):e instanceof hi?[e.value]:e instanceof Kn?e.options:e instanceof pi?ge.objectValues(e.enum):e instanceof mi?gn(e._def.innerType):e instanceof ai?[void 0]:e instanceof ci?[null]:e instanceof an?[void 0,...gn(e.unwrap())]:e instanceof Gn?[null,...gn(e.unwrap())]:e instanceof Au||e instanceof yi?gn(e.unwrap()):e instanceof gi?gn(e._def.innerType):[];class ca 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}),se;const s=this.discriminator,r=n.data[s],i=this.optionsMap.get(r);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(W(n,{code:D.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),se)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,s){const r=new Map;for(const i of n){const o=gn(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of o){if(r.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);r.set(a,i)}}return new ca({typeName:te.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...oe(s)})}}function qc(e,t){const n=yn(e),s=yn(t);if(e===t)return{valid:!0,data:e};if(n===H.object&&s===H.object){const r=ge.objectKeys(t),i=ge.objectKeys(e).filter(a=>r.indexOf(a)!==-1),o={...e,...t};for(const a of i){const c=qc(e[a],t[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(n===H.array&&s===H.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let i=0;i<e.length;i++){const o=e[i],a=t[i],c=qc(o,a);if(!c.valid)return{valid:!1};r.push(c.data)}return{valid:!0,data:r}}else return n===H.date&&s===H.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ui extends le{_parse(t){const{status:n,ctx:s}=this._processInputParams(t),r=(i,o)=>{if(Wc(i)||Wc(o))return se;const a=qc(i.value,o.value);return a.valid?((Hc(i)||Hc(o))&&n.dirty(),{status:n.value,value:a.data}):(W(s,{code:D.invalid_intersection_types}),se)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([i,o])=>r(i,o)):r(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}ui.create=(e,t,n)=>new ui({left:e,right:t,typeName:te.ZodIntersection,...oe(n)});class un extends le{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==H.array)return W(s,{code:D.invalid_type,expected:H.array,received:s.parsedType}),se;if(s.data.length<this._def.items.length)return W(s,{code:D.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),se;!this._def.rest&&s.data.length>this._def.items.length&&(W(s,{code:D.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...s.data].map((o,a)=>{const c=this._def.items[a]||this._def.rest;return c?c._parse(new ln(s,o,s.path,a)):null}).filter(o=>!!o);return s.common.async?Promise.all(i).then(o=>et.mergeArray(n,o)):et.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new un({...this._def,rest:t})}}un.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new un({items:e,typeName:te.ZodTuple,rest:null,...oe(t)})};class di extends le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==H.object)return W(s,{code:D.invalid_type,expected:H.object,received:s.parsedType}),se;const r=[],i=this._def.keyType,o=this._def.valueType;for(const a in s.data)r.push({key:i._parse(new ln(s,a,s.path,a)),value:o._parse(new ln(s,s.data[a],s.path,a)),alwaysSet:a in s.data});return s.common.async?et.mergeObjectAsync(n,r):et.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,s){return n instanceof le?new di({keyType:t,valueType:n,typeName:te.ZodRecord,...oe(s)}):new di({keyType:Lt.create(),valueType:t,typeName:te.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:s}=this._processInputParams(t);if(s.parsedType!==H.map)return W(s,{code:D.invalid_type,expected:H.map,received:s.parsedType}),se;const r=this._def.keyType,i=this._def.valueType,o=[...s.data.entries()].map(([a,c],l)=>({key:r._parse(new ln(s,a,s.path,[l,"key"])),value:i._parse(new ln(s,c,s.path,[l,"value"]))}));if(s.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 se;(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 se;(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:te.ZodMap,...oe(n)});class Es extends le{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==H.set)return W(s,{code:D.invalid_type,expected:H.set,received:s.parsedType}),se;const r=this._def;r.minSize!==null&&s.data.size<r.minSize.value&&(W(s,{code:D.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&s.data.size>r.maxSize.value&&(W(s,{code:D.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());const i=this._def.valueType;function o(c){const l=new Set;for(const u of c){if(u.status==="aborted")return se;u.status==="dirty"&&n.dirty(),l.add(u.value)}return{status:n.value,value:l}}const a=[...s.data.values()].map((c,l)=>i._parse(new ln(s,c,s.path,l)));return s.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(t,n){return new Es({...this._def,minSize:{value:t,message:Q.toString(n)}})}max(t,n){return new Es({...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)}}Es.create=(e,t)=>new Es({valueType:e,minSize:null,maxSize:null,typeName:te.ZodSet,...oe(t)});class qs 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}),se;function s(a,c){return ko({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,jo(),dr].filter(l=>!!l),issueData:{code:D.invalid_arguments,argumentsError:c}})}function r(a,c){return ko({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,jo(),dr].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 hr){const a=this;return at(async function(...c){const l=new bt([]),u=await a._def.args.parseAsync(c,i).catch(y=>{throw l.addIssue(s(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(r(d,y)),l})})}else{const a=this;return at(function(...c){const l=a._def.args.safeParse(c,i);if(!l.success)throw new bt([s(c,l.error)]);const u=Reflect.apply(o,this,l.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new bt([r(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new qs({...this._def,args:un.create(t).rest(ys.create())})}returns(t){return new qs({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,s){return new qs({args:t||un.create([]).rest(ys.create()),returns:n||ys.create(),typeName:te.ZodFunction,...oe(s)})}}class fi 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})}}fi.create=(e,t)=>new fi({getter:e,typeName:te.ZodLazy,...oe(t)});class hi 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}),se}return{status:"valid",value:t.data}}get value(){return this._def.value}}hi.create=(e,t)=>new hi({value:e,typeName:te.ZodLiteral,...oe(t)});function Qy(e,t){return new Kn({values:e,typeName:te.ZodEnum,...oe(t)})}class Kn extends le{constructor(){super(...arguments),Fr.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),s=this._def.values;return W(n,{expected:ge.joinValues(s),received:n.parsedType,code:D.invalid_type}),se}if(Oo(this,Fr)||qy(this,Fr,new Set(this._def.values)),!Oo(this,Fr).has(t.data)){const n=this._getOrReturnCtx(t),s=this._def.values;return W(n,{received:n.data,code:D.invalid_enum_value,options:s}),se}return at(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 Kn.create(t,{...this._def,...n})}exclude(t,n=this._def){return Kn.create(this.options.filter(s=>!t.includes(s)),{...this._def,...n})}}Fr=new WeakMap;Kn.create=Qy;class pi extends le{constructor(){super(...arguments),Vr.set(this,void 0)}_parse(t){const n=ge.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==H.string&&s.parsedType!==H.number){const r=ge.objectValues(n);return W(s,{expected:ge.joinValues(r),received:s.parsedType,code:D.invalid_type}),se}if(Oo(this,Vr)||qy(this,Vr,new Set(ge.getValidEnumValues(this._def.values))),!Oo(this,Vr).has(t.data)){const r=ge.objectValues(n);return W(s,{received:s.data,code:D.invalid_enum_value,options:r}),se}return at(t.data)}get enum(){return this._def.values}}Vr=new WeakMap;pi.create=(e,t)=>new pi({values:e,typeName:te.ZodNativeEnum,...oe(t)});class hr 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}),se;const s=n.parsedType===H.promise?n.data:Promise.resolve(n.data);return at(s.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}}hr.create=(e,t)=>new hr({type:e,typeName:te.ZodPromise,...oe(t)});class Ut extends le{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===te.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:s}=this._processInputParams(t),r=this._def.effect||null,i={addIssue:o=>{W(s,o),o.fatal?n.abort():n.dirty()},get path(){return s.path}};if(i.addIssue=i.addIssue.bind(i),r.type==="preprocess"){const o=r.transform(s.data,i);if(s.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return se;const c=await this._def.schema._parseAsync({data:a,path:s.path,parent:s});return c.status==="aborted"?se:c.status==="dirty"||n.value==="dirty"?$s(c.value):c});{if(n.value==="aborted")return se;const a=this._def.schema._parseSync({data:o,path:s.path,parent:s});return a.status==="aborted"?se:a.status==="dirty"||n.value==="dirty"?$s(a.value):a}}if(r.type==="refinement"){const o=a=>{const c=r.refinement(a,i);if(s.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(s.common.async===!1){const a=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?se:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(a=>a.status==="aborted"?se:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(r.type==="transform")if(s.common.async===!1){const o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!_s(o))return o;const a=r.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>_s(o)?Promise.resolve(r.transform(o.value,i)).then(a=>({status:n.value,value:a})):o);ge.assertNever(r)}}Ut.create=(e,t,n)=>new Ut({schema:e,typeName:te.ZodEffects,effect:t,...oe(n)});Ut.createWithPreprocess=(e,t,n)=>new Ut({schema:t,effect:{type:"preprocess",transform:e},typeName:te.ZodEffects,...oe(n)});class an extends le{_parse(t){return this._getType(t)===H.undefined?at(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}an.create=(e,t)=>new an({innerType:e,typeName:te.ZodOptional,...oe(t)});class Gn extends le{_parse(t){return this._getType(t)===H.null?at(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Gn.create=(e,t)=>new Gn({innerType:e,typeName:te.ZodNullable,...oe(t)});class mi extends le{_parse(t){const{ctx:n}=this._processInputParams(t);let s=n.data;return n.parsedType===H.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}mi.create=(e,t)=>new mi({innerType:e,typeName:te.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...oe(t)});class gi extends le{_parse(t){const{ctx:n}=this._processInputParams(t),s={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return ii(r)?r.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new bt(s.common.issues)},input:s.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new bt(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}gi.create=(e,t)=>new gi({innerType:e,typeName:te.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 s=this._getOrReturnCtx(t);return W(s,{code:D.invalid_type,expected:H.nan,received:s.parsedType}),se}return{status:"valid",value:t.data}}}Lo.create=e=>new Lo({typeName:te.ZodNaN,...oe(e)});const rP=Symbol("zod_brand");class Au extends le{_parse(t){const{ctx:n}=this._processInputParams(t),s=n.data;return this._def.type._parse({data:s,path:n.path,parent:n})}unwrap(){return this._def.type}}class Mi extends le{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return i.status==="aborted"?se:i.status==="dirty"?(n.dirty(),$s(i.value)):this._def.out._parseAsync({data:i.value,path:s.path,parent:s})})();{const r=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return r.status==="aborted"?se:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:s.path,parent:s})}}static create(t,n){return new Mi({in:t,out:n,typeName:te.ZodPipeline})}}class yi extends le{_parse(t){const n=this._def.innerType._parse(t),s=r=>(_s(r)&&(r.value=Object.freeze(r.value)),r);return ii(n)?n.then(r=>s(r)):s(n)}unwrap(){return this._def.innerType}}yi.create=(e,t)=>new yi({innerType:e,typeName:te.ZodReadonly,...oe(t)});function Xy(e,t={},n){return e?fr.create().superRefine((s,r)=>{var i,o;if(!e(s)){const a=typeof t=="function"?t(s):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;r.addIssue({code:"custom",...l,fatal:c})}}):fr.create()}const iP={object:Ae.lazycreate};var te;(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"})(te||(te={}));const oP=(e,t={message:`Input not instance of ${e.name}`})=>Xy(n=>n instanceof e,t),Yy=Lt.create,Jy=qn.create,aP=Lo.create,cP=Zn.create,ev=oi.create,lP=Cs.create,uP=Mo.create,dP=ai.create,fP=ci.create,hP=fr.create,pP=ys.create,mP=Cn.create,gP=Do.create,yP=Ft.create,vP=Ae.create,xP=Ae.strictCreate,bP=li.create,wP=ca.create,SP=ui.create,_P=un.create,CP=di.create,EP=Io.create,TP=Es.create,AP=qs.create,RP=fi.create,PP=hi.create,NP=Kn.create,jP=pi.create,kP=hr.create,fh=Ut.create,OP=an.create,MP=Gn.create,DP=Ut.createWithPreprocess,IP=Mi.create,LP=()=>Yy().optional(),FP=()=>Jy().optional(),VP=()=>ev().optional(),BP={string:e=>Lt.create({...e,coerce:!0}),number:e=>qn.create({...e,coerce:!0}),boolean:e=>oi.create({...e,coerce:!0}),bigint:e=>Zn.create({...e,coerce:!0}),date:e=>Cs.create({...e,coerce:!0})},$P=se;var hh=Object.freeze({__proto__:null,defaultErrorMap:dr,setErrorMap:DR,getErrorMap:jo,makeIssue:ko,EMPTY_PATH:IR,addIssueToContext:W,ParseStatus:et,INVALID:se,DIRTY:$s,OK:at,isAborted:Wc,isDirty:Hc,isValid:_s,isAsync:ii,get util(){return ge},get objectUtil(){return zc},ZodParsedType:H,getParsedType:yn,ZodType:le,datetimeRegex:Gy,ZodString:Lt,ZodNumber:qn,ZodBigInt:Zn,ZodBoolean:oi,ZodDate:Cs,ZodSymbol:Mo,ZodUndefined:ai,ZodNull:ci,ZodAny:fr,ZodUnknown:ys,ZodNever:Cn,ZodVoid:Do,ZodArray:Ft,ZodObject:Ae,ZodUnion:li,ZodDiscriminatedUnion:ca,ZodIntersection:ui,ZodTuple:un,ZodRecord:di,ZodMap:Io,ZodSet:Es,ZodFunction:qs,ZodLazy:fi,ZodLiteral:hi,ZodEnum:Kn,ZodNativeEnum:pi,ZodPromise:hr,ZodEffects:Ut,ZodTransformer:Ut,ZodOptional:an,ZodNullable:Gn,ZodDefault:mi,ZodCatch:gi,ZodNaN:Lo,BRAND:rP,ZodBranded:Au,ZodPipeline:Mi,ZodReadonly:yi,custom:Xy,Schema:le,ZodSchema:le,late:iP,get ZodFirstPartyTypeKind(){return te},coerce:BP,any:hP,array:yP,bigint:cP,boolean:ev,date:lP,discriminatedUnion:wP,effect:fh,enum:NP,function:AP,instanceof:oP,intersection:SP,lazy:RP,literal:PP,map:EP,nan:aP,nativeEnum:jP,never:mP,null:fP,nullable:MP,number:Jy,object:vP,oboolean:VP,onumber:FP,optional:OP,ostring:LP,pipeline:IP,preprocess:DP,promise:kP,record:CP,set:TP,strictObject:xP,string:Yy,symbol:uP,transformer:fh,tuple:_P,undefined:dP,union:bP,unknown:pP,void:gP,NEVER:$P,ZodIssueCode:D,quotelessJson:MR,ZodError:bt});const Ka=(e,t)=>Te(s=>s.lang)==="ru"?e:t;function tv(e,t){return function(){return e.apply(t,arguments)}}const{toString:UP}=Object.prototype,{getPrototypeOf:Ru}=Object,la=(e=>t=>{const n=UP.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ht=e=>(e=e.toLowerCase(),t=>la(t)===e),ua=e=>t=>typeof t===e,{isArray:_r}=Array,vi=ua("undefined");function zP(e){return e!==null&&!vi(e)&&e.constructor!==null&&!vi(e.constructor)&&wt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const nv=Ht("ArrayBuffer");function WP(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&nv(e.buffer),t}const HP=ua("string"),wt=ua("function"),sv=ua("number"),da=e=>e!==null&&typeof e=="object",qP=e=>e===!0||e===!1,lo=e=>{if(la(e)!=="object")return!1;const t=Ru(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ZP=Ht("Date"),KP=Ht("File"),GP=Ht("Blob"),QP=Ht("FileList"),XP=e=>da(e)&&wt(e.pipe),YP=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||wt(e.append)&&((t=la(e))==="formdata"||t==="object"&&wt(e.toString)&&e.toString()==="[object FormData]"))},JP=Ht("URLSearchParams"),[eN,tN,nN,sN]=["ReadableStream","Request","Response","Headers"].map(Ht),rN=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 s,r;if(typeof e!="object"&&(e=[e]),_r(e))for(s=0,r=e.length;s<r;s++)t.call(null,e[s],s,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(s=0;s<o;s++)a=i[s],t.call(null,e[a],a,e)}}function rv(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length,r;for(;s-- >0;)if(r=n[s],t===r.toLowerCase())return r;return null}const os=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,iv=e=>!vi(e)&&e!==os;function Zc(){const{caseless:e}=iv(this)&&this||{},t={},n=(s,r)=>{const i=e&&rv(t,r)||r;lo(t[i])&&lo(s)?t[i]=Zc(t[i],s):lo(s)?t[i]=Zc({},s):_r(s)?t[i]=s.slice():t[i]=s};for(let s=0,r=arguments.length;s<r;s++)arguments[s]&&Di(arguments[s],n);return t}const iN=(e,t,n,{allOwnKeys:s}={})=>(Di(t,(r,i)=>{n&&wt(r)?e[i]=tv(r,n):e[i]=r},{allOwnKeys:s}),e),oN=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),aN=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},cN=(e,t,n,s)=>{let r,i,o;const a={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)o=r[i],(!s||s(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Ru(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},lN=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},uN=e=>{if(!e)return null;if(_r(e))return e;let t=e.length;if(!sv(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},dN=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ru(Uint8Array)),fN=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},hN=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},pN=Ht("HTMLFormElement"),mN=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),ph=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),gN=Ht("RegExp"),ov=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Di(n,(r,i)=>{let o;(o=t(r,i,e))!==!1&&(s[i]=o||r)}),Object.defineProperties(e,s)},yN=e=>{ov(e,(t,n)=>{if(wt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(wt(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},vN=(e,t)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return _r(e)?s(e):s(String(e).split(t)),n},xN=()=>{},bN=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ga="abcdefghijklmnopqrstuvwxyz",mh="0123456789",av={DIGIT:mh,ALPHA:Ga,ALPHA_DIGIT:Ga+Ga.toUpperCase()+mh},wN=(e=16,t=av.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function SN(e){return!!(e&&wt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const _N=e=>{const t=new Array(10),n=(s,r)=>{if(da(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const i=_r(s)?[]:{};return Di(s,(o,a)=>{const c=n(o,r+1);!vi(c)&&(i[a]=c)}),t[r]=void 0,i}}return s};return n(e,0)},CN=Ht("AsyncFunction"),EN=e=>e&&(da(e)||wt(e))&&wt(e.then)&&wt(e.catch),cv=((e,t)=>e?setImmediate:t?((n,s)=>(os.addEventListener("message",({source:r,data:i})=>{r===os&&i===n&&s.length&&s.shift()()},!1),r=>{s.push(r),os.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",wt(os.postMessage)),TN=typeof queueMicrotask<"u"?queueMicrotask.bind(os):typeof process<"u"&&process.nextTick||cv,j={isArray:_r,isArrayBuffer:nv,isBuffer:zP,isFormData:YP,isArrayBufferView:WP,isString:HP,isNumber:sv,isBoolean:qP,isObject:da,isPlainObject:lo,isReadableStream:eN,isRequest:tN,isResponse:nN,isHeaders:sN,isUndefined:vi,isDate:ZP,isFile:KP,isBlob:GP,isRegExp:gN,isFunction:wt,isStream:XP,isURLSearchParams:JP,isTypedArray:dN,isFileList:QP,forEach:Di,merge:Zc,extend:iN,trim:rN,stripBOM:oN,inherits:aN,toFlatObject:cN,kindOf:la,kindOfTest:Ht,endsWith:lN,toArray:uN,forEachEntry:fN,matchAll:hN,isHTMLForm:pN,hasOwnProperty:ph,hasOwnProp:ph,reduceDescriptors:ov,freezeMethods:yN,toObjectSet:vN,toCamelCase:mN,noop:xN,toFiniteNumber:bN,findKey:rv,global:os,isContextDefined:iv,ALPHABET:av,generateString:wN,isSpecCompliantForm:SN,toJSONObject:_N,isAsyncFn:CN,isThenable:EN,setImmediate:cv,asap:TN};function ie(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r,this.status=r.status?r.status:null)}j.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:j.toJSONObject(this.config),code:this.code,status:this.status}}});const lv=ie.prototype,uv={};["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=>{uv[e]={value:e}});Object.defineProperties(ie,uv);Object.defineProperty(lv,"isAxiosError",{value:!0});ie.from=(e,t,n,s,r,i)=>{const o=Object.create(lv);return j.toFlatObject(e,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),ie.call(o,e.message,t,n,s,r),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const AN=null;function Kc(e){return j.isPlainObject(e)||j.isArray(e)}function dv(e){return j.endsWith(e,"[]")?e.slice(0,-2):e}function gh(e,t,n){return e?e.concat(t).map(function(r,i){return r=dv(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function RN(e){return j.isArray(e)&&!e.some(Kc)}const PN=j.toFlatObject(j,{},null,function(t){return/^is[A-Z]/.test(t)});function fa(e,t,n){if(!j.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=j.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,v){return!j.isUndefined(v[p])});const s=n.metaTokens,r=n.visitor||u,i=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&j.isSpecCompliantForm(t);if(!j.isFunction(r))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(j.isDate(m))return m.toISOString();if(!c&&j.isBlob(m))throw new ie("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(m)||j.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,p,v){let x=m;if(m&&!v&&typeof m=="object"){if(j.endsWith(p,"{}"))p=s?p:p.slice(0,-2),m=JSON.stringify(m);else if(j.isArray(m)&&RN(m)||(j.isFileList(m)||j.endsWith(p,"[]"))&&(x=j.toArray(m)))return p=dv(p),x.forEach(function(w,_){!(j.isUndefined(w)||w===null)&&t.append(o===!0?gh([p],_,i):o===null?p:p+"[]",l(w))}),!1}return Kc(m)?!0:(t.append(gh(v,p,i),l(m)),!1)}const d=[],h=Object.assign(PN,{defaultVisitor:u,convertValue:l,isVisitable:Kc});function y(m,p){if(!j.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(m),j.forEach(m,function(x,b){(!(j.isUndefined(x)||x===null)&&r.call(t,x,j.isString(b)?b.trim():b,p,h))===!0&&y(x,p?p.concat(b):[b])}),d.pop()}}if(!j.isObject(e))throw new TypeError("data must be an object");return y(e),t}function yh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Pu(e,t){this._pairs=[],e&&fa(e,this,t)}const fv=Pu.prototype;fv.append=function(t,n){this._pairs.push([t,n])};fv.toString=function(t){const n=t?function(s){return t.call(this,s,yh)}:yh;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function NN(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function hv(e,t,n){if(!t)return e;const s=n&&n.encode||NN;j.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let i;if(r?i=r(t,n):i=j.isURLSearchParams(t)?t.toString():new Pu(t,n).toString(s),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class vh{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){j.forEach(this.handlers,function(s){s!==null&&t(s)})}}const pv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jN=typeof URLSearchParams<"u"?URLSearchParams:Pu,kN=typeof FormData<"u"?FormData:null,ON=typeof Blob<"u"?Blob:null,MN={isBrowser:!0,classes:{URLSearchParams:jN,FormData:kN,Blob:ON},protocols:["http","https","file","blob","url","data"]},Nu=typeof window<"u"&&typeof document<"u",Gc=typeof navigator=="object"&&navigator||void 0,DN=Nu&&(!Gc||["ReactNative","NativeScript","NS"].indexOf(Gc.product)<0),IN=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",LN=Nu&&window.location.href||"http://localhost",FN=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Nu,hasStandardBrowserEnv:DN,hasStandardBrowserWebWorkerEnv:IN,navigator:Gc,origin:LN},Symbol.toStringTag,{value:"Module"})),Xe={...FN,...MN};function VN(e,t){return fa(e,new Xe.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,i){return Xe.isNode&&j.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function BN(e){return j.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function $N(e){const t={},n=Object.keys(e);let s;const r=n.length;let i;for(s=0;s<r;s++)i=n[s],t[i]=e[i];return t}function mv(e){function t(n,s,r,i){let o=n[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),c=i>=n.length;return o=!o&&j.isArray(r)?r.length:o,c?(j.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!j.isObject(r[o]))&&(r[o]=[]),t(n,s,r[o],i)&&j.isArray(r[o])&&(r[o]=$N(r[o])),!a)}if(j.isFormData(e)&&j.isFunction(e.entries)){const n={};return j.forEachEntry(e,(s,r)=>{t(BN(s),r,n,0)}),n}return null}function UN(e,t,n){if(j.isString(e))try{return(t||JSON.parse)(e),j.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(e)}const Ii={transitional:pv,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=j.isObject(t);if(i&&j.isHTMLForm(t)&&(t=new FormData(t)),j.isFormData(t))return r?JSON.stringify(mv(t)):t;if(j.isArrayBuffer(t)||j.isBuffer(t)||j.isStream(t)||j.isFile(t)||j.isBlob(t)||j.isReadableStream(t))return t;if(j.isArrayBufferView(t))return t.buffer;if(j.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return VN(t,this.formSerializer).toString();if((a=j.isFileList(t))||s.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return fa(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),UN(t)):t}],transformResponse:[function(t){const n=this.transitional||Ii.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(j.isResponse(t)||j.isReadableStream(t))return t;if(t&&j.isString(t)&&(s&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?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:Xe.classes.FormData,Blob:Xe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};j.forEach(["delete","get","head","post","put","patch"],e=>{Ii.headers[e]={}});const zN=j.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"]),WN=e=>{const t={};let n,s,r;return e&&e.split(`
`).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),s=o.substring(r+1).trim(),!(!n||t[n]&&zN[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},xh=Symbol("internals");function Or(e){return e&&String(e).trim().toLowerCase()}function uo(e){return e===!1||e==null?e:j.isArray(e)?e.map(uo):String(e)}function HN(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const qN=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Qa(e,t,n,s,r){if(j.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!j.isString(t)){if(j.isString(s))return t.indexOf(s)!==-1;if(j.isRegExp(s))return s.test(t)}}function ZN(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function KN(e,t){const n=j.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,i,o){return this[s].call(this,t,r,i,o)},configurable:!0})})}class ft{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function i(a,c,l){const u=Or(c);if(!u)throw new Error("header name must be a non-empty string");const d=j.findKey(r,u);(!d||r[d]===void 0||l===!0||l===void 0&&r[d]!==!1)&&(r[d||c]=uo(a))}const o=(a,c)=>j.forEach(a,(l,u)=>i(l,u,c));if(j.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(j.isString(t)&&(t=t.trim())&&!qN(t))o(WN(t),n);else if(j.isHeaders(t))for(const[a,c]of t.entries())i(c,a,s);else t!=null&&i(n,t,s);return this}get(t,n){if(t=Or(t),t){const s=j.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return HN(r);if(j.isFunction(n))return n.call(this,r,s);if(j.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Or(t),t){const s=j.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Qa(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function i(o){if(o=Or(o),o){const a=j.findKey(s,o);a&&(!n||Qa(s,s[a],a,n))&&(delete s[a],r=!0)}}return j.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const i=n[s];(!t||Qa(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,s={};return j.forEach(this,(r,i)=>{const o=j.findKey(s,i);if(o){n[o]=uo(r),delete n[i];return}const a=t?ZN(i):String(i).trim();a!==i&&delete n[i],n[a]=uo(r),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return j.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&j.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[xh]=this[xh]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=Or(o);s[a]||(KN(r,o),s[a]=!0)}return j.isArray(t)?t.forEach(i):i(t),this}}ft.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);j.reduceDescriptors(ft.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});j.freezeMethods(ft);function Xa(e,t){const n=this||Ii,s=t||n,r=ft.from(s.headers);let i=s.data;return j.forEach(e,function(a){i=a.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function gv(e){return!!(e&&e.__CANCEL__)}function Cr(e,t,n){ie.call(this,e??"canceled",ie.ERR_CANCELED,t,n),this.name="CanceledError"}j.inherits(Cr,ie,{__CANCEL__:!0});function yv(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(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 GN(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function QN(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,i=0,o;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=s[i];o||(o=l),n[r]=c,s[r]=l;let d=i,h=0;for(;d!==r;)h+=n[d++],d=d%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),l-o<t)return;const y=u&&l-u;return y?Math.round(h*1e3/y):void 0}}function XN(e,t){let n=0,s=1e3/t,r,i;const o=(l,u=Date.now())=>{n=u,r=null,i&&(clearTimeout(i),i=null),e.apply(null,l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=s?o(l,u):(r=l,i||(i=setTimeout(()=>{i=null,o(r)},s-d)))},()=>r&&o(r)]}const Fo=(e,t,n=3)=>{let s=0;const r=QN(50,250);return XN(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,c=o-s,l=r(c),u=o<=a;s=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)},bh=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},wh=e=>(...t)=>j.asap(()=>e(...t)),YN=Xe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Xe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Xe.origin),Xe.navigator&&/(msie|trident)/i.test(Xe.navigator.userAgent)):()=>!0,JN=Xe.hasStandardBrowserEnv?{write(e,t,n,s,r,i){const o=[e+"="+encodeURIComponent(t)];j.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),j.isString(s)&&o.push("path="+s),j.isString(r)&&o.push("domain="+r),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function e1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function t1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function vv(e,t){return e&&!e1(t)?t1(e,t):t}const Sh=e=>e instanceof ft?{...e}:e;function Ts(e,t){t=t||{};const n={};function s(l,u,d,h){return j.isPlainObject(l)&&j.isPlainObject(u)?j.merge.call({caseless:h},l,u):j.isPlainObject(u)?j.merge({},u):j.isArray(u)?u.slice():u}function r(l,u,d,h){if(j.isUndefined(u)){if(!j.isUndefined(l))return s(void 0,l,d,h)}else return s(l,u,d,h)}function i(l,u){if(!j.isUndefined(u))return s(void 0,u)}function o(l,u){if(j.isUndefined(u)){if(!j.isUndefined(l))return s(void 0,l)}else return s(void 0,u)}function a(l,u,d){if(d in t)return s(l,u);if(d in e)return s(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)=>r(Sh(l),Sh(u),d,!0)};return j.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=c[u]||r,h=d(e[u],t[u],u);j.isUndefined(h)&&d!==a||(n[u]=h)}),n}const xv=e=>{const t=Ts({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:i,headers:o,auth:a}=t;t.headers=o=ft.from(o),t.url=hv(vv(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(j.isFormData(n)){if(Xe.hasStandardBrowserEnv||Xe.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(Xe.hasStandardBrowserEnv&&(s&&j.isFunction(s)&&(s=s(t)),s||s!==!1&&YN(t.url))){const l=r&&i&&JN.read(i);l&&o.set(r,l)}return t},n1=typeof XMLHttpRequest<"u",s1=n1&&function(e){return new Promise(function(n,s){const r=xv(e);let i=r.data;const o=ft.from(r.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=r,u,d,h,y,m;function p(){y&&y(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(r.method.toUpperCase(),r.url,!0),v.timeout=r.timeout;function x(){if(!v)return;const w=ft.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};yv(function(E){n(E),p()},function(E){s(E),p()},S),v=null}"onloadend"in v?v.onloadend=x:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(x)},v.onabort=function(){v&&(s(new ie("Request aborted",ie.ECONNABORTED,e,v)),v=null)},v.onerror=function(){s(new ie("Network Error",ie.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let _=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const S=r.transitional||pv;r.timeoutErrorMessage&&(_=r.timeoutErrorMessage),s(new ie(_,S.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,v)),v=null},i===void 0&&o.setContentType(null),"setRequestHeader"in v&&j.forEach(o.toJSON(),function(_,S){v.setRequestHeader(S,_)}),j.isUndefined(r.withCredentials)||(v.withCredentials=!!r.withCredentials),a&&a!=="json"&&(v.responseType=r.responseType),l&&([h,m]=Fo(l,!0),v.addEventListener("progress",h)),c&&v.upload&&([d,y]=Fo(c),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",y)),(r.cancelToken||r.signal)&&(u=w=>{v&&(s(!w||w.type?new Cr(null,e,v):w),v.abort(),v=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const b=GN(r.url);if(b&&Xe.protocols.indexOf(b)===-1){s(new ie("Unsupported protocol "+b+":",ie.ERR_BAD_REQUEST,e));return}v.send(i||null)})},r1=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const i=function(l){if(!r){r=!0,a();const u=l instanceof Error?l:this.reason;s.abort(u instanceof ie?u:new Cr(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}=s;return c.unsubscribe=()=>j.asap(a),c}},i1=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,r;for(;s<n;)r=s+t,yield e.slice(s,r),s=r},o1=async function*(e,t){for await(const n of a1(e))yield*i1(n,t)},a1=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},_h=(e,t,n,s)=>{const r=o1(e,t);let i=0,o,a=c=>{o||(o=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await r.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),r.return()}},{highWaterMark:2})},ha=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",bv=ha&&typeof ReadableStream=="function",c1=ha&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),wv=(e,...t)=>{try{return!!e(...t)}catch{return!1}},l1=bv&&wv(()=>{let e=!1;const t=new Request(Xe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ch=64*1024,Qc=bv&&wv(()=>j.isReadableStream(new Response("").body)),Vo={stream:Qc&&(e=>e.body)};ha&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Vo[t]&&(Vo[t]=j.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new ie(`Response type '${t}' is not supported`,ie.ERR_NOT_SUPPORT,s)})})})(new Response);const u1=async e=>{if(e==null)return 0;if(j.isBlob(e))return e.size;if(j.isSpecCompliantForm(e))return(await new Request(Xe.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(j.isArrayBufferView(e)||j.isArrayBuffer(e))return e.byteLength;if(j.isURLSearchParams(e)&&(e=e+""),j.isString(e))return(await c1(e)).byteLength},d1=async(e,t)=>{const n=j.toFiniteNumber(e.getContentLength());return n??u1(t)},f1=ha&&(async e=>{let{url:t,method:n,data:s,signal:r,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:h}=xv(e);l=l?(l+"").toLowerCase():"text";let y=r1([r,i&&i.toAbortSignal()],o),m;const p=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let v;try{if(c&&l1&&n!=="get"&&n!=="head"&&(v=await d1(u,s))!==0){let S=new Request(t,{method:"POST",body:s,duplex:"half"}),A;if(j.isFormData(s)&&(A=S.headers.get("content-type"))&&u.setContentType(A),S.body){const[E,R]=bh(v,Fo(wh(c)));s=_h(S.body,Ch,E,R)}}j.isString(d)||(d=d?"include":"omit");const x="credentials"in Request.prototype;m=new Request(t,{...h,signal:y,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:s,duplex:"half",credentials:x?d:void 0});let b=await fetch(m);const w=Qc&&(l==="stream"||l==="response");if(Qc&&(a||w&&p)){const S={};["status","statusText","headers"].forEach(N=>{S[N]=b[N]});const A=j.toFiniteNumber(b.headers.get("content-length")),[E,R]=a&&bh(A,Fo(wh(a),!0))||[];b=new Response(_h(b.body,Ch,E,()=>{R&&R(),p&&p()}),S)}l=l||"text";let _=await Vo[j.findKey(Vo,l)||"text"](b,e);return!w&&p&&p(),await new Promise((S,A)=>{yv(S,A,{data:_,headers:ft.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:m})})}catch(x){throw p&&p(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new ie("Network Error",ie.ERR_NETWORK,e,m),{cause:x.cause||x}):ie.from(x,x&&x.code,e,m)}}),Xc={http:AN,xhr:s1,fetch:f1};j.forEach(Xc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Eh=e=>`- ${e}`,h1=e=>j.isFunction(e)||e===null||e===!1,Sv={getAdapter:e=>{e=j.isArray(e)?e:[e];const{length:t}=e;let n,s;const r={};for(let i=0;i<t;i++){n=e[i];let o;if(s=n,!h1(n)&&(s=Xc[(o=String(n)).toLowerCase()],s===void 0))throw new ie(`Unknown adapter '${o}'`);if(s)break;r[o||"#"+i]=s}if(!s){const i=Object.entries(r).map(([a,c])=>`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(Eh).join(`
`):" "+Eh(i[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return s},adapters:Xc};function Ya(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cr(null,e)}function Th(e){return Ya(e),e.headers=ft.from(e.headers),e.data=Xa.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Sv.getAdapter(e.adapter||Ii.adapter)(e).then(function(s){return Ya(e),s.data=Xa.call(e,e.transformResponse,s),s.headers=ft.from(s.headers),s},function(s){return gv(s)||(Ya(e),s&&s.response&&(s.response.data=Xa.call(e,e.transformResponse,s.response),s.response.headers=ft.from(s.response.headers))),Promise.reject(s)})}const _v="1.7.9",pa={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{pa[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Ah={};pa.transitional=function(t,n,s){function r(i,o){return"[Axios v"+_v+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,a)=>{if(t===!1)throw new ie(r(o," has been removed"+(n?" in "+n:"")),ie.ERR_DEPRECATED);return n&&!Ah[o]&&(Ah[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}};pa.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function p1(e,t,n){if(typeof e!="object")throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const i=s[r],o=t[i];if(o){const a=e[i],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:p1,validators:pa},Kt=fo.validators;class vs{constructor(t){this.defaults=t,this.interceptors={request:new vh,response:new vh}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=`
`+i):s.stack=i}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ts(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&fo.assertOptions(s,{silentJSONParsing:Kt.transitional(Kt.boolean),forcedJSONParsing:Kt.transitional(Kt.boolean),clarifyTimeoutError:Kt.transitional(Kt.boolean)},!1),r!=null&&(j.isFunction(r)?n.paramsSerializer={serialize:r}:fo.assertOptions(r,{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&&j.merge(i.common,i[n.method]);i&&j.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=ft.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 m=[Th.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,l),h=m.length,u=Promise.resolve(n);d<h;)u=u.then(m[d++],m[d++]);return u}h=a.length;let y=n;for(d=0;d<h;){const m=a[d++],p=a[d++];try{y=m(y)}catch(v){p.call(this,v);break}}try{u=Th.call(this,y)}catch(m){return Promise.reject(m)}for(d=0,h=l.length;d<h;)u=u.then(l[d++],l[d++]);return u}getUri(t){t=Ts(this.defaults,t);const n=vv(t.baseURL,t.url);return hv(n,t.params,t.paramsSerializer)}}j.forEach(["delete","get","head","options"],function(t){vs.prototype[t]=function(n,s){return this.request(Ts(s||{},{method:t,url:n,data:(s||{}).data}))}});j.forEach(["post","put","patch"],function(t){function n(s){return function(i,o,a){return this.request(Ts(a||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}vs.prototype[t]=n(),vs.prototype[t+"Form"]=n(!0)});class ju{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const s=this;this.promise.then(r=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(a=>{s.subscribe(a),i=a}).then(r);return o.cancel=function(){s.unsubscribe(i)},o},t(function(i,o,a){s.reason||(s.reason=new Cr(i,o,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new ju(function(r){t=r}),cancel:t}}}function m1(e){return function(n){return e.apply(null,n)}}function g1(e){return j.isObject(e)&&e.isAxiosError===!0}const Yc={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(Yc).forEach(([e,t])=>{Yc[t]=e});function Cv(e){const t=new vs(e),n=tv(vs.prototype.request,t);return j.extend(n,vs.prototype,t,{allOwnKeys:!0}),j.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Cv(Ts(e,r))},n}const Ve=Cv(Ii);Ve.Axios=vs;Ve.CanceledError=Cr;Ve.CancelToken=ju;Ve.isCancel=gv;Ve.VERSION=_v;Ve.toFormData=fa;Ve.AxiosError=ie;Ve.Cancel=Ve.CanceledError;Ve.all=function(t){return Promise.all(t)};Ve.spread=m1;Ve.isAxiosError=g1;Ve.mergeConfig=Ts;Ve.AxiosHeaders=ft;Ve.formToJSON=e=>mv(j.isHTMLForm(e)?new FormData(e):e);Ve.getAdapter=Sv.getAdapter;Ve.HttpStatusCode=Yc;Ve.default=Ve;const tt=Ve.create({baseURL:"https://turkmentextile.turkmenexpo.com/app/api/v1/"}),Ik=async e=>(await tt.post("book_stand_form",e)).status===201,Lk=async e=>(await tt.post("become_sponsor_form",e)).status===201,Fk=async e=>(await tt.post("contact_form",e)).status===201,y1=async e=>(await tt.post("subscribe_news_form",e)).status===201,v1=async(e,t)=>tt.get(`pages/${t}`,{headers:{"Accept-Language":e}}),x1=async e=>tt.get("stats",{headers:{"Accept-Language":e}}),b1=async e=>tt.get("contact_data",{headers:{"Accept-Language":e}}),w1=async e=>tt.get("industries",{headers:{"Accept-Language":e}}),S1=async e=>tt.get("exhibition_time",{headers:{"Accept-Language":e}}),_1=async e=>tt.get("news?per_page=100",{headers:{"Accept-Language":e}}),Vk=async(e,t)=>tt.get(`news/${e}`,{headers:{"Accept-Language":t}}),Bk=async e=>tt("participants",{headers:{"Accept-Language":e}}),C1=async e=>tt("photos/category/"+e),E1=async e=>tt("videos/category/"+e),T1=async e=>tt("sponsors_and_partners",{headers:{"Accept-Language":e}}),$k=async(e,t)=>tt("designers/category/"+t,{headers:{"Accept-Language":e}}),A1=hh.object({email:hh.string().email()}),Ev=({modal:e=!1})=>{var i,o;const[t,n]=g.useState(!1),s=qT({resolver:OR(A1),defaultValues:{email:""}});async function r(a){try{const c=await y1(a);s.reset(),n(c)}catch(c){console.error("POST subscribe",c)}}return f.jsx("form",{onSubmit:s.handleSubmit(r),className:V("py-8",e?"max-w-[392px] mx-auto":"bg-surface_container"),children:f.jsxs(qe,{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:Ka("Подпишитесь на новости:","Subscribe to the news:")}),f.jsxs("div",{className:"relative",children:[f.jsx("input",{...s.register("email"),placeholder:"Email",className:V("input",{"w-full":e,"xl:w-[392px] lg:w-[320px] w-full":!e})}),f.jsx("span",{className:"text-error absolute text-red-600 -bottom-6 text-sm left-0",children:(o=(i=s.formState.errors)==null?void 0:i.email)==null?void 0:o.message})]}),f.jsx(Je,{loading:s.formState.isSubmitting,disabled:t,className:V({"xl:w-[288px] lg:w-[220px] w-full":!e,"w-full":e}),children:t?Ka("Отправлено","Submitted"):Ka("Подписаться","Subscribe")})]})})},R1=({className:e,title:t})=>f.jsxs($y,{children:[f.jsx(Uy,{className:V("h-14 px-3 flex gap-3 items-center hover:bg-slate-300/50 transition-all",e),children:t}),f.jsx(Tu,{children:f.jsx(Ev,{className:"",modal:!0})})]}),Bo=By()(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:s,children:r})=>{const[i,o]=g.useState(!1),a=Bo(c=>c.setSheet);return f.jsxs(Fy,{open:i,onOpenChange:()=>o(!i),children:[f.jsxs(Vy,{className:V("flex items-center gap-2",s),children:[e,r,!r&&f.jsx(Tv,{color:n,className:V("transition-all",i&&"rotate-180")})]}),f.jsx(Eu,{className:"w-fit relative z-[200] px-0 bg-surface_container",children:t&&t.map((c,l)=>c.hover?f.jsx(ck,{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(R1,{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))})]})},Tv=({color:e="white",w:t="20",h:n="20",className:s})=>f.jsx("div",{className:s,children:f.jsx("svg",{width:t,height:n,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.23021 8.01443C4.35919 7.70304 4.66305 7.5 5.00011 7.5H15.0001C15.3372 7.5 15.641 7.70304 15.77 8.01443C15.899 8.32583 15.8277 8.68426 15.5894 8.92259L10.5894 13.9226C10.2639 14.248 9.73629 14.248 9.41085 13.9226L4.41085 8.92259C4.17252 8.68426 4.10122 8.32583 4.23021 8.01443ZM7.01195 9.16667L10.0001 12.1548L12.9883 9.16667H7.01195Z",fill:e})})}),Yn=({className:e})=>f.jsx(qe,{className:V("w-full py-20 h-full flex items-center justify-between",e),children:f.jsx(Wp,{className:"animate-spin mx-auto text-primary size-16"})});function P1(e){return Object.prototype.toString.call(e)==="[object Object]"}function Rh(e){return P1(e)||Array.isArray(e)}function N1(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ku(e,t){const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;const r=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return r!==i?!1:n.every(o=>{const a=e[o],c=t[o];return typeof a=="function"?`${a}`==`${c}`:!Rh(a)||!Rh(c)?a===c:ku(a,c)})}function Ph(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function j1(e,t){if(e.length!==t.length)return!1;const n=Ph(e),s=Ph(t);return n.every((r,i)=>{const o=s[i];return ku(r,o)})}function Ou(e){return typeof e=="number"}function Jc(e){return typeof e=="string"}function ma(e){return typeof e=="boolean"}function Nh(e){return Object.prototype.toString.call(e)==="[object Object]"}function Pe(e){return Math.abs(e)}function Mu(e){return Math.sign(e)}function Kr(e,t){return Pe(e-t)}function k1(e,t){if(e===0||t===0||Pe(e)<=Pe(t))return 0;const n=Kr(Pe(e),Pe(t));return Pe(n/e)}function O1(e){return Math.round(e*100)/100}function xi(e){return bi(e).map(Number)}function Vt(e){return e[Li(e)]}function Li(e){return Math.max(0,e.length-1)}function Du(e,t){return t===Li(e)}function jh(e,t=0){return Array.from(Array(e),(n,s)=>t+s)}function bi(e){return Object.keys(e)}function Av(e,t){return[e,t].reduce((n,s)=>(bi(s).forEach(r=>{const i=n[r],o=s[r],a=Nh(i)&&Nh(o);n[r]=a?Av(i,o):o}),n),{})}function el(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function M1(e,t){const n={start:s,center:r,end:i};function s(){return 0}function r(c){return i(c)/2}function i(c){return t-c}function o(c,l){return Jc(e)?n[e](c):e(t,c,l)}return{measure:o}}function wi(){let e=[];function t(r,i,o,a={passive:!0}){let c;if("addEventListener"in r)r.addEventListener(i,o,a),c=()=>r.removeEventListener(i,o,a);else{const l=r;l.addListener(o),c=()=>l.removeListener(o)}return e.push(c),s}function n(){e=e.filter(r=>r())}const s={add:t,clear:n};return s}function D1(e,t,n,s){const r=wi(),i=1e3/60;let o=null,a=0,c=0;function l(){r.add(e,"visibilitychange",()=>{e.hidden&&m()})}function u(){y(),r.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;s(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 m(){o=null,a=0}return{init:l,destroy:u,start:h,stop:y,update:n,render:s}}function I1(e,t){const n=t==="rtl",s=e==="y",r=s?"y":"x",i=s?"x":"y",o=!s&&n?-1:1,a=u(),c=d();function l(m){const{height:p,width:v}=m;return s?p:v}function u(){return s?"top":n?"right":"left"}function d(){return s?"bottom":n?"left":"right"}function h(m){return m*o}return{scroll:r,cross:i,startEdge:a,endEdge:c,measureSize:l,direction:h}}function As(e=0,t=0){const n=Pe(e-t);function s(l){return l<e}function r(l){return l>t}function i(l){return s(l)||r(l)}function o(l){return i(l)?s(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:r,reachedMin:s,removeOffset:a}}function Rv(e,t,n){const{constrain:s}=As(0,e),r=e+1;let i=o(t);function o(h){return n?Pe((r+h)%r):s(h)}function a(){return i}function c(h){return i=o(h),d}function l(h){return u().set(a()+h)}function u(){return Rv(e,a(),n)}const d={get:a,set:c,add:l,clone:u};return d}function L1(e,t,n,s,r,i,o,a,c,l,u,d,h,y,m,p,v,x,b){const{cross:w,direction:_}=e,S=["INPUT","SELECT","TEXTAREA"],A={passive:!1},E=wi(),R=wi(),N=As(50,225).constrain(y.measure(20)),M={mouse:300,touch:400},I={mouse:500,touch:600},O=m?43:25;let z=!1,F=0,J=0,X=!1,q=!1,Z=!1,re=!1;function fe(G){if(!b)return;function he(Ue){(ma(b)||b(G,Ue))&&nt(Ue)}const _e=t;E.add(_e,"dragstart",Ue=>Ue.preventDefault(),A).add(_e,"touchmove",()=>{},A).add(_e,"touchend",()=>{}).add(_e,"touchstart",he).add(_e,"mousedown",he).add(_e,"touchcancel",ve).add(_e,"contextmenu",ve).add(_e,"click",ke,!0)}function ye(){E.clear(),R.clear()}function Be(){const G=re?n:t;R.add(G,"touchmove",ue,A).add(G,"touchend",ve).add(G,"mousemove",ue,A).add(G,"mouseup",ve)}function Ze(G){const he=G.nodeName||"";return S.includes(he)}function Ke(){return(m?I:M)[re?"mouse":"touch"]}function jt(G,he){const _e=d.add(Mu(G)*-1),Ue=u.byDistance(G,!m).distance;return m||Pe(G)<N?Ue:v&&he?Ue*.5:u.byIndex(_e.get(),0).distance}function nt(G){const he=el(G,s);re=he,Z=m&&he&&!G.buttons&&z,z=Kr(r.get(),o.get())>=2,!(he&&G.button!==0)&&(Ze(G.target)||(X=!0,i.pointerDown(G),l.useFriction(0).useDuration(0),r.set(o),Be(),F=i.readPoint(G),J=i.readPoint(G,w),h.emit("pointerDown")))}function ue(G){if(!el(G,s)&&G.touches.length>=2)return ve(G);const _e=i.readPoint(G),Ue=i.readPoint(G,w),pt=Kr(_e,F),_t=Kr(Ue,J);if(!q&&!re&&(!G.cancelable||(q=pt>_t,!q)))return ve(G);const C=i.pointerMove(G);pt>p&&(Z=!0),l.useFriction(.3).useDuration(.75),a.start(),r.add(_(C)),G.preventDefault()}function ve(G){const _e=u.byDistance(0,!1).index!==d.get(),Ue=i.pointerUp(G)*Ke(),pt=jt(_(Ue),_e),_t=k1(Ue,pt),C=O-10*_t,P=x+_t/50;q=!1,X=!1,R.clear(),l.useDuration(C).useFriction(P),c.distance(pt,!m),re=!1,h.emit("pointerUp")}function ke(G){Z&&(G.stopPropagation(),G.preventDefault(),Z=!1)}function Le(){return X}return{init:fe,destroy:ye,pointerDown:Le}}function F1(e,t){let s,r;function i(d){return d.timeStamp}function o(d,h){const m=`client${(h||e.scroll)==="x"?"X":"Y"}`;return(el(d,t)?d:d.touches[0])[m]}function a(d){return s=d,r=d,o(d)}function c(d){const h=o(d)-o(r),y=i(d)-i(s)>170;return r=d,y&&(s=d),h}function l(d){if(!s||!r)return 0;const h=o(r)-o(s),y=i(d)-i(s),m=i(d)-i(r)>170,p=h/y;return y&&!m&&Pe(p)>.1?p:0}return{pointerDown:a,pointerMove:c,pointerUp:l,readPoint:o}}function V1(){function e(n){const{offsetTop:s,offsetLeft:r,offsetWidth:i,offsetHeight:o}=n;return{top:s,right:r+i,bottom:s+o,left:r,width:i,height:o}}return{measure:e}}function B1(e){function t(s){return e*(s/100)}return{measure:t}}function $1(e,t,n,s,r,i,o){const a=[e].concat(s);let c,l,u=[],d=!1;function h(v){return r.measureSize(o.measure(v))}function y(v){if(!i)return;l=h(e),u=s.map(h);function x(b){for(const w of b){if(d)return;const _=w.target===e,S=s.indexOf(w.target),A=_?l:u[S],E=h(_?e:s[S]);if(Pe(E-A)>=.5){v.reInit(),t.emit("resize");break}}}c=new ResizeObserver(b=>{(ma(i)||i(v,b))&&x(b)}),n.requestAnimationFrame(()=>{a.forEach(b=>c.observe(b))})}function m(){d=!0,c&&c.disconnect()}return{init:y,destroy:m}}function U1(e,t,n,s,r,i){let o=0,a=0,c=r,l=i,u=e.get(),d=0;function h(){const A=s.get()-e.get(),E=!c;let R=0;return E?(o=0,n.set(s),e.set(s),R=A):(n.set(e),o+=A/c,o*=l,u+=o,e.add(o),R=u-d),a=Mu(R),d=u,S}function y(){const A=s.get()-t.get();return Pe(A)<.001}function m(){return c}function p(){return a}function v(){return o}function x(){return w(r)}function b(){return _(i)}function w(A){return c=A,S}function _(A){return l=A,S}const S={direction:p,duration:m,velocity:v,seek:h,settled:y,useBaseFriction:b,useBaseDuration:x,useFriction:_,useDuration:w};return S}function z1(e,t,n,s,r){const i=r.measure(10),o=r.measure(50),a=As(.1,.99);let c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(y){if(!l())return;const m=e.reachedMin(t.get())?"min":"max",p=Pe(e[m]-t.get()),v=n.get()-t.get(),x=a.constrain(p/o);n.subtract(v*x),!y&&Pe(v)<i&&(n.set(e.constrain(n.get())),s.useDuration(25).useBaseFriction())}function d(y){c=!y}return{shouldConstrain:l,constrain:u,toggleActive:d}}function W1(e,t,n,s,r){const i=As(-t+e,0),o=d(),a=u(),c=h();function l(m,p){return Kr(m,p)<=1}function u(){const m=o[0],p=Vt(o),v=o.lastIndexOf(m),x=o.indexOf(p)+1;return As(v,x)}function d(){return n.map((m,p)=>{const{min:v,max:x}=i,b=i.constrain(m),w=!p,_=Du(n,p);return w?x:_||l(v,b)?v:l(x,b)?x:b}).map(m=>parseFloat(m.toFixed(3)))}function h(){if(t<=e+r)return[i.max];if(s==="keepSnaps")return o;const{min:m,max:p}=a;return o.slice(m,p)}return{snapsContained:c,scrollContainLimit:a}}function H1(e,t,n){const s=t[0],r=n?s-e:Vt(t);return{limit:As(r,s)}}function q1(e,t,n,s){const i=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:c}=As(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);s.forEach(m=>m.add(y))}return{loop:u}}function Z1(e){const{max:t,length:n}=e;function s(i){const o=i-t;return n?o/-n:0}return{get:s}}function K1(e,t,n,s,r){const{startEdge:i,endEdge:o}=e,{groupSlides:a}=r,c=d().map(t.measure),l=h(),u=y();function d(){return a(s).map(p=>Vt(p)[o]-p[0][i]).map(Pe)}function h(){return s.map(p=>n[i]-p[i]).map(p=>-Pe(p))}function y(){return a(l).map(p=>p[0]).map((p,v)=>p+c[v])}return{snaps:l,snapsAligned:u}}function G1(e,t,n,s,r,i){const{groupSlides:o}=r,{min:a,max:c}=s,l=u();function u(){const h=o(i),y=!e||t==="keepSnaps";return n.length===1?[i]:y?h:h.slice(a,c).map((m,p,v)=>{const x=!p,b=Du(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 m})}return{slideRegistry:l}}function Q1(e,t,n,s,r){const{reachedAny:i,removeOffset:o,constrain:a}=s;function c(m){return m.concat().sort((p,v)=>Pe(p)-Pe(v))[0]}function l(m){const p=e?o(m):a(m),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(m,p){const v=[m,m+n,m-n];if(!e)return m;if(!p)return c(v);const x=v.filter(b=>Mu(b)===p);return x.length?c(x):Vt(v)-n}function d(m,p){const v=t[m]-r.get(),x=u(v,p);return{index:m,distance:x}}function h(m,p){const v=r.get()+m,{index:x,distance:b}=l(v),w=!e&&i(v);if(!p||w)return{index:x,distance:m};const _=t[x]-b,S=m+u(_,0);return{index:x,distance:S}}return{byDistance:h,byIndex:d,shortcut:u}}function X1(e,t,n,s,r,i,o){function a(d){const h=d.distance,y=d.index!==t.get();i.add(h),h&&(s.duration()?e.start():(e.update(),e.render(1),e.update())),y&&(n.set(t.get()),t.set(d.index),o.emit("select"))}function c(d,h){const y=r.byDistance(d,h);a(y)}function l(d,h){const y=t.clone().set(d),m=r.byIndex(y.get(),h);a(m)}return{distance:c,index:l}}function Y1(e,t,n,s,r,i,o,a){const c={passive:!0,capture:!0};let l=0;function u(y){if(!a)return;function m(p){if(new Date().getTime()-l>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(w=>w.includes(p));Ou(b)&&(r.useDuration(0),s.index(b,0),o.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((p,v)=>{i.add(p,"focus",x=>{(ma(a)||a(y,x))&&m(v)},c)})}function d(y){y.code==="Tab"&&(l=new Date().getTime())}return{init:u}}function Br(e){let t=e;function n(){return t}function s(c){t=o(c)}function r(c){t+=o(c)}function i(c){t-=o(c)}function o(c){return Ou(c)?c:c.get()}return{get:n,set:s,add:r,subtract:i}}function Pv(e,t){const n=e.scroll==="x"?o:a,s=t.style;let r=null,i=!1;function o(h){return`translate3d(${h}px,0px,0px)`}function a(h){return`translate3d(0px,${h}px,0px)`}function c(h){if(i)return;const y=O1(e.direction(h));y!==r&&(s.transform=n(y),r=y)}function l(h){i=!h}function u(){i||(s.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:c,toggleActive:l}}function J1(e,t,n,s,r,i,o,a,c){const u=xi(r),d=xi(r).reverse(),h=x().concat(b());function y(E,R){return E.reduce((N,M)=>N-r[M],R)}function m(E,R){return E.reduce((N,M)=>y(N,R)>0?N.concat([M]):N,[])}function p(E){return i.map((R,N)=>({start:R-s[N]+.5+E,end:R+t-.5+E}))}function v(E,R,N){const M=p(R);return E.map(I=>{const O=N?0:-n,z=N?n:0,F=N?"end":"start",J=M[I][F];return{index:I,loopPoint:J,slideLocation:Br(-1),translate:Pv(e,c[I]),target:()=>a.get()>J?O:z}})}function x(){const E=o[0],R=m(d,E);return v(R,n,!1)}function b(){const E=t-o[0]-1,R=m(u,E);return v(R,-n,!0)}function w(){return h.every(({index:E})=>{const R=u.filter(N=>N!==E);return y(R,t)<=.1})}function _(){h.forEach(E=>{const{target:R,translate:N,slideLocation:M}=E,I=R();I!==M.get()&&(N.to(I),M.set(I))})}function S(){h.forEach(E=>E.translate.clear())}return{canLoop:w,clear:S,loop:_,loopPoints:h}}function ej(e,t,n){let s,r=!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}}s=new MutationObserver(u=>{r||(ma(n)||n(c,u))&&l(u)}),s.observe(e,{childList:!0})}function o(){s&&s.disconnect(),r=!0}return{init:i,destroy:o}}function tj(e,t,n,s){const r={};let i=null,o=null,a,c=!1;function l(){a=new IntersectionObserver(m=>{c||(m.forEach(p=>{const v=t.indexOf(p.target);r[v]=p}),i=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:s}),t.forEach(m=>a.observe(m))}function u(){a&&a.disconnect(),c=!0}function d(m){return bi(r).reduce((p,v)=>{const x=parseInt(v),{isIntersecting:b}=r[x];return(m&&b||!m&&!b)&&p.push(x),p},[])}function h(m=!0){if(m&&i)return i;if(!m&&o)return o;const p=d(m);return m&&(i=p),m||(o=p),p}return{init:l,destroy:u,get:h}}function nj(e,t,n,s,r,i){const{measureSize:o,startEdge:a,endEdge:c}=e,l=n[0]&&r,u=m(),d=p(),h=n.map(o),y=v();function m(){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(s));return parseFloat(b.getPropertyValue(`margin-${c}`))}function v(){return n.map((b,w,_)=>{const S=!w,A=Du(_,w);return S?h[w]+u:A?h[w]+d:_[w+1][a]-b[a]}).map(Pe)}return{slideSizes:h,slideSizesWithGaps:y,startGap:u,endGap:d}}function sj(e,t,n,s,r,i,o,a,c){const{startEdge:l,endEdge:u,direction:d}=e,h=Ou(n);function y(x,b){return xi(x).filter(w=>w%b===0).map(w=>x.slice(w,w+b))}function m(x){return x.length?xi(x).reduce((b,w,_)=>{const S=Vt(b)||0,A=S===0,E=w===Li(x),R=r[l]-i[S][l],N=r[l]-i[w][u],M=!s&&A?d(o):0,I=!s&&E?d(a):0,O=Pe(N-I-(R+M));return _&&O>t+c&&b.push(w),E&&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):m(x)}return{groupSlides:p}}function rj(e,t,n,s,r,i,o){const{align:a,axis:c,direction:l,startIndex:u,loop:d,duration:h,dragFree:y,dragThreshold:m,inViewThreshold:p,slidesToScroll:v,skipSnaps:x,containScroll:b,watchResize:w,watchSlides:_,watchDrag:S,watchFocus:A}=i,E=2,R=V1(),N=R.measure(t),M=n.map(R.measure),I=I1(c,l),O=I.measureSize(N),z=B1(O),F=M1(a,O),J=!d&&!!b,X=d||!!b,{slideSizes:q,slideSizesWithGaps:Z,startGap:re,endGap:fe}=nj(I,N,M,n,X,r),ye=sj(I,O,v,d,N,M,re,fe,E),{snaps:Be,snapsAligned:Ze}=K1(I,F,N,M,ye),Ke=-Vt(Be)+Vt(Z),{snapsContained:jt,scrollContainLimit:nt}=W1(O,Ke,Ze,b,E),ue=J?jt:Ze,{limit:ve}=H1(Ke,ue,d),ke=Rv(Li(ue),u,d),Le=ke.clone(),we=xi(n),G=({dragHandler:Zt,scrollBody:Jn,scrollBounds:Tr,options:{loop:es}})=>{es||Tr.constrain(Zt.pointerDown()),Jn.seek()},he=({scrollBody:Zt,translate:Jn,location:Tr,offsetLocation:es,previousLocation:ya,scrollLooper:Vi,slideLooper:yx,dragHandler:vx,animation:xx,eventHandler:zu,scrollBounds:bx,options:{loop:Wu}},Hu)=>{const qu=Zt.settled(),wx=!bx.shouldConstrain(),Zu=Wu?qu:qu&&wx;Zu&&!vx.pointerDown()&&(xx.stop(),zu.emit("settle")),Zu||zu.emit("scroll");const Sx=Tr.get()*Hu+ya.get()*(1-Hu);es.set(Sx),Wu&&(Vi.loop(Zt.direction()),yx.loop()),Jn.to(es.get())},_e=D1(s,r,()=>G(Er),Zt=>he(Er,Zt)),Ue=.68,pt=ue[ke.get()],_t=Br(pt),C=Br(pt),P=Br(pt),k=Br(pt),U=U1(_t,P,C,k,h,Ue),B=Q1(d,ue,Ke,ve,k),L=X1(_e,ke,Le,U,B,k,o),Y=Z1(ve),ae=wi(),Fe=tj(t,n,o,p),{slideRegistry:Oe}=G1(J,b,ue,nt,ye,we),qt=Y1(e,n,Oe,L,U,ae,o,A),Er={ownerDocument:s,ownerWindow:r,eventHandler:o,containerRect:N,slideRects:M,animation:_e,axis:I,dragHandler:L1(I,e,s,r,k,F1(I,r),_t,_e,L,U,B,ke,o,z,y,m,x,Ue,S),eventStore:ae,percentOfView:z,index:ke,indexPrevious:Le,limit:ve,location:_t,offsetLocation:P,previousLocation:C,options:i,resizeHandler:$1(t,o,r,n,I,w,R),scrollBody:U,scrollBounds:z1(ve,P,k,U,z),scrollLooper:q1(Ke,ve,P,[_t,P,C,k]),scrollProgress:Y,scrollSnapList:ue.map(Y.get),scrollSnaps:ue,scrollTarget:B,scrollTo:L,slideLooper:J1(I,O,Ke,q,Z,Be,ue,P,n),slideFocus:qt,slidesHandler:ej(t,o,_),slidesInView:Fe,slideIndexes:we,slideRegistry:Oe,slidesToScroll:ye,target:k,translate:Pv(I,t)};return Er}function ij(){let e={},t;function n(l){t=l}function s(l){return e[l]||[]}function r(l){return s(l).forEach(u=>u(t,l)),c}function i(l,u){return e[l]=s(l).concat([u]),c}function o(l,u){return e[l]=s(l).filter(d=>d!==u),c}function a(){e={}}const c={init:n,emit:r,off:o,on:i,clear:a};return c}const oj={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 aj(e){function t(i,o){return Av(i,o||{})}function n(i){const o=i.breakpoints||{},a=bi(o).filter(c=>e.matchMedia(c).matches).map(c=>o[c]).reduce((c,l)=>t(c,l),{});return t(i,a)}function s(i){return i.map(o=>bi(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:s}}function cj(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 s(){t=t.filter(i=>i.destroy())}return{init:n,destroy:s}}function Uo(e,t,n){const s=e.ownerDocument,r=s.defaultView,i=aj(r),o=cj(i),a=wi(),c=ij(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:h,off:y,emit:m}=c,p=I;let v=!1,x,b=l(oj,Uo.globalOptions),w=l(b),_=[],S,A,E;function R(){const{container:we,slides:G}=w;A=(Jc(we)?e.querySelector(we):we)||e.children[0];const _e=Jc(G)?A.querySelectorAll(G):G;E=[].slice.call(_e||A.children)}function N(we){const G=rj(e,A,E,s,r,we,c);if(we.loop&&!G.slideLooper.canLoop()){const he=Object.assign({},we,{loop:!1});return N(he)}return G}function M(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(Le),x.eventHandler.init(Le),x.resizeHandler.init(Le),x.slidesHandler.init(Le),x.options.loop&&x.slideLooper.loop(),A.offsetParent&&E.length&&x.dragHandler.init(Le),S=o.init(Le,_)))}function I(we,G){const he=ye();O(),M(l({startIndex:he},we),G),c.emit("reInit")}function O(){x.dragHandler.destroy(),x.eventStore.clear(),x.translate.clear(),x.slideLooper.clear(),x.resizeHandler.destroy(),x.slidesHandler.destroy(),x.slidesInView.destroy(),x.animation.destroy(),o.destroy(),a.clear()}function z(){v||(v=!0,a.clear(),O(),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 J(we){const G=x.index.add(1).get();F(G,we,-1)}function X(we){const G=x.index.add(-1).get();F(G,we,1)}function q(){return x.index.add(1).get()!==ye()}function Z(){return x.index.add(-1).get()!==ye()}function re(){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 Ze(){return x.slidesInView.get()}function Ke(){return x.slidesInView.get(!1)}function jt(){return S}function nt(){return x}function ue(){return e}function ve(){return A}function ke(){return E}const Le={canScrollNext:q,canScrollPrev:Z,containerNode:ve,internalEngine:nt,destroy:z,off:y,on:h,emit:m,plugins:jt,previousScrollSnap:Be,reInit:p,rootNode:ue,scrollNext:J,scrollPrev:X,scrollProgress:fe,scrollSnapList:re,scrollTo:F,selectedScrollSnap:ye,slideNodes:ke,slidesInView:Ze,slidesNotInView:Ke};return M(t,n),setTimeout(()=>c.emit("init"),0),Le}Uo.globalOptions=void 0;function Tn(e={},t=[]){const n=g.useRef(e),s=g.useRef(t),[r,i]=g.useState(),[o,a]=g.useState(),c=g.useCallback(()=>{r&&r.reInit(n.current,s.current)},[r]);return g.useEffect(()=>{ku(n.current,e)||(n.current=e,c())},[e,c]),g.useEffect(()=>{j1(s.current,t)||(s.current=t,c())},[t,c]),g.useEffect(()=>{if(N1()&&o){Uo.globalOptions=Tn.globalOptions;const l=Uo(o,n.current,s.current);return i(l),()=>l.destroy()}else i(void 0)},[o,i]),[a,r]}Tn.globalOptions=void 0;const lj=[{id:0,title:"Все компании",titleEn:"All companies"},{id:3,title:"Государственные учреждения ",titleEn:"Government Institutions"},{id:1,title:"Местные компании",titleEn:"Local companies"},{id:2,title:"Иностранные компании",titleEn:"Foreign companies"}],Uk=({className:e,setState:t,state:n,data:s=lj})=>{const r=Te(m=>m.lang),i=So("(min-width: 768px)"),[o,a]=g.useState({left:0,width:0}),[c,l]=Tn({axis:"x",align:"start",containScroll:"trimSnaps"},[]),u=g.useRef([]),d=g.useRef(null),h=g.useCallback(()=>{const m=u.current[n];if(m){if(i)a({left:m.offsetLeft,width:m.offsetWidth});else if(l){const p=l.rootNode(),v=l.containerNode();if(!p||!v)return;const x=v.scrollLeft,b=m.offsetLeft;a({left:b-x,width:m.offsetWidth})}}},[n,i,l]);g.useEffect(()=>{!i&&l||(l==null||l.scrollTo(n),h())},[l,n,h,i]),g.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=g.useCallback(m=>{t(m),!i&&l&&l.scrollTo(m)},[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:s==null?void 0:s.map((m,p)=>f.jsx("button",{ref:v=>u.current[p]=v,role:"tab","aria-selected":n===p,className:V("shrink-0 text-center relative h-12 mx-4 py-2 text-sm md:text-base whitespace-nowrap transition-all",n===p?"text-primary":"text-on_surface_v"),onClick:()=>y(p),children:r==="ru"?m.title:m.titleEn},m.id))}):f.jsx("div",{ref:c,className:"",role:"tablist",children:f.jsx("div",{className:"flex",children:s==null?void 0:s.map((m,p)=>f.jsx("button",{ref:v=>u.current[p]=v,role:"tab","aria-selected":n===p,className:V("shrink-0 text-center relative after:transition-all after:rounded after:w-full after:h-0.5 after:bg-primary after:opacity-0 after:absolute after:bottom-0 after:left-0 h-12 mx-4 py-2 text-sm md:text-base whitespace-nowrap transition-all",n===p?"text-primary after:opacity-100":"text-on_surface_v"),onClick:()=>y(p),children:r==="ru"?m.title:m.titleEn},m.id))})}),f.jsx("div",{className:"absolute md:block hidden bottom-0 h-[3px] rounded-t-[2px] bg-primary transition-all duration-200",style:o})]})},zk=({className:e,index:t,name:n,image:s,image_country:r,country:i,about:o,arr:a})=>{const c=Te(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:[c==="ru"?"Название":"Company",":"]}),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:[c==="ru"?"Страна":"Country",":"]}),f.jsxs("div",{className:"flex items-center flex-[0_0_50%] gap-2",children:[f.jsx("img",{src:r==null?void 0:r.path,alt:"flag",className:"size-4 flex-[0_0_16px] object-contain"}),f.jsx("h4",{className:"text-xs flex-1",children:i})]})]})})}),f.jsx("div",{className:"flex items-center ",children:f.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[f.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[c==="ru"?"Сфера":"Industry",":"]}),f.jsx("h4",{className:"text-xs flex-1",children:o})]})})]}),f.jsx("div",{className:"flex-[0_0_88px] size-[88px] bg-white ",children:f.jsx("img",{src:s==null?void 0:s.path,alt:"company",className:"size-full object-contain"})})]},t),f.jsxs("div",{className:V("md:flex hidden p-4 ",a!==t+1&&"border-b border-outline_v"),children:[f.jsxs("div",{className:"flex-[0_0_45.54%] flex gap-8",children:[f.jsx("div",{className:"flex-[0_0_88px] sm:flex-[0_0_128px] size-[88px] bg-white sm:size-[128px]",children:f.jsx("img",{src:s==null?void 0:s.path,alt:"company",className:"size-full object-contain"})}),f.jsx("h3",{className:"text-lg xl:mr-20 mr-10",children:n})]}),f.jsxs("div",{className:"flex-[0_0_19.80%] flex gap-2.5",children:[f.jsx("img",{src:r==null?void 0:r.path,alt:"flag",className:"size-4"}),f.jsx("h4",{className:"text-sm normal",children:i})]}),f.jsx("h3",{className:"text-sm normal md:ml-1 flex-[0_0_34.65%]",children:o})]})]})},uj=e=>{const{data:t,isPending:n,status:s}=En({queryKey:["photos",e],queryFn:()=>C1(e),select:({data:r})=>r.data});return{data:t,isPending:n,status:s}},dj=e=>{const{data:t,isPending:n,isError:s}=En({queryKey:["videos",e],queryFn:()=>E1(e),select:({data:r})=>r.data});return{data:t,isPending:n,isError:s}},Wk=({className:e,setIsOpen:t,activeItem:n})=>{var h,y;const[s,r]=Tn({align:"center",loop:!1,dragFree:!1,slidesToScroll:1}),{data:i}=uj(1),{data:o}=dj(1);AT();const[a,c]=g.useState(!1),[l,u]=g.useState(!1);g.useEffect(()=>{if(!r)return;const m=()=>{c(r.canScrollPrev()),u(r.canScrollNext())};return r.on("select",m),m(),()=>{r.off("select",m)}},[r]),g.useEffect(()=>{!r||!i||r.scrollTo(n.id,!0)},[r,i,n.id]);const d=n.type==="photo"?(h=i==null?void 0:i.photos)==null?void 0:h.map(m=>{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=m==null?void 0:m.photo)==null?void 0:p.path,alt:m.photo.file_name,className:"max-h-full max-w-full object-contain"})},m.id)}):(y=o==null?void 0:o.videos)==null?void 0:y.map(m=>{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=m==null?void 0:m.video)==null?void 0:p.path)??"",controls:!0,autoPlay:!0,muted:!0,className:"max-h-full max-w-full object-contain"})},m.id)});return f.jsxs(Hr.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:V("fixed z-[100] top-0 left-0 pb-40 pt-20 lg:px-28 px-6 overflow-hidden min-h-screen w-full bg-black/90",e),children:[f.jsx(Tl,{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&&(r==null?void 0:r.scrollPrev()),className:V("absolute left-10 top-1/2 -translate-y-1/2 text-white size-20 cursor-pointer hover:scale-110 transition-all duration-300 z-40",!a&&"opacity-20 pointer-events-none")}),f.jsx(zp,{onClick:()=>l&&(r==null?void 0:r.scrollNext()),className:V("absolute right-10 top-1/2 -translate-y-1/2 text-white size-20 cursor-pointer hover:scale-110 transition-all duration-300 z-40",!l&&"opacity-20 pointer-events-none")})]}),f.jsx("div",{ref:s,className:"embla overflow-hidden",children:f.jsx("div",{className:"embla__container flex",children:d})})]})},Hk=({className:e,name:t,achievements:n,biography:s,image:r,images:i})=>{var m;const[o,a]=g.useState(!1),[c,l]=g.useState(!1),u=Te(p=>p.lang),[d,h]=g.useState(100),y=({className:p})=>{const[v,x]=Tn({});return g.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:"Работы дизайнера"}),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(zp,{onClick:()=>o&&(x==null?void 0:x.scrollNext()),className:V("cursor-pointer",!c&&"opacity-20")})]})})]})};return f.jsxs($y,{children:[f.jsxs(Uy,{className:V("relative group h-[326px] overflow-hidden",e),children:[f.jsx("article",{className:"z-50 size-full bg-[url('/impressions/card-bg.png')] bg-no-repeat overflow-hidden",children:f.jsxs("div",{className:"flex gap-4 h-[316px] overflow-hidden",children:[f.jsx("img",{src:r==null?void 0:r.path,alt:t,className:"flex-[0_0_44%] object-contain overflow-hidden"}),f.jsxs("div",{className:"flex-auto text-left text-white z-20 pt-6 pl-4 pr-4",children:[f.jsx("h3",{className:"text-xl mb-6",children:t}),f.jsx("ul",{className:"text-sm list-disc pl-4 flex flex-col gap-2",children:n.slice(0,7).map((p,v)=>f.jsx("li",{children:u==="ru"?p==null?void 0:p.ru:p==null?void 0:p.en},v))})]})]})}),f.jsx("img",{src:"/impressions/card-bg-bg.png",className:"absolute top-2.5 left-2.5 -z-10 size-full"})]}),f.jsxs(Tu,{className:V("p-6 flex flex-col gap-4 xl:!w-[1224px] md:!w-[688px] w-[336px] max-h-[100vh] overflow-hidden"),children:[d===100?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"gap-4 md:!flex !hidden",children:[f.jsx("div",{className:"flex-1 h-[345px]",children:f.jsx("img",{src:r==null?void 0:r.path,alt:"",className:"size-full float-left object-cover"})}),f.jsxs("div",{className:"flex-[0_0_70%]",children:[f.jsx("div",{className:"text-2xl mb-4",children:t}),f.jsx("hr",{}),f.jsx("div",{className:"mt-4 flex flex-col gap-3 normal overflow-y-auto max-h-[40vh]",dangerouslySetInnerHTML:{__html:s??""}})]})]}),f.jsx("hr",{className:"hidden md:block"}),f.jsxs("div",{className:"flex flex-col gap-4 md:hidden overflow-auto h-full",children:[f.jsx("h3",{className:"text-xl",children:t}),f.jsx("img",{src:r==null?void 0:r.path,alt:t}),f.jsx("hr",{}),f.jsx(y,{}),f.jsx("hr",{}),f.jsx("div",{className:"mt-4 flex flex-col gap-3 normal",dangerouslySetInnerHTML:{__html:s??""}})]})]}):f.jsxs("div",{className:"",children:[f.jsxs("button",{onClick:()=>h(100),className:"flex items-center gap-2 mb-4",children:[f.jsx(mc,{}),"Вернуться назад"]}),f.jsx("div",{className:"2xl:h-[50vh] h-[40vh] bg-[#f4f4f4]",children:f.jsx("img",{src:(m=i==null?void 0:i[d])==null?void 0:m.path,className:"size-full object-contain"})})]}),f.jsx(y,{className:"hidden md:block"})]})]})};function Nv(e,t=[]){let n=[];function s(i,o){const a=g.createContext(o),c=n.length;n=[...n,o];const l=d=>{var x;const{scope:h,children:y,...m}=d,p=((x=h==null?void 0:h[e])==null?void 0:x[c])||a,v=g.useMemo(()=>m,Object.values(m));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,m=g.useContext(y);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const r=()=>{const i=n.map(o=>g.createContext(o));return function(a){const c=(a==null?void 0:a[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return r.scopeName=e,[s,fj(r,...t)]}function fj(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const o=s.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function ze(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function kh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Iu(...e){return t=>{let n=!1;const s=e.map(r=>{const i=kh(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<s.length;r++){const i=s[r];typeof i=="function"?i():kh(e[r],null)}}}}function dn(...e){return g.useCallback(Iu(...e),e)}function tl(e){const t=hj(e),n=g.forwardRef((s,r)=>{const{children:i,...o}=s,a=g.Children.toArray(i),c=a.find(mj);if(c){const l=c.props.children,u=a.map(d=>d===c?g.Children.count(l)>1?g.Children.only(null):g.isValidElement(l)?l.props.children:null:d);return f.jsx(t,{...o,ref:r,children:g.isValidElement(l)?g.cloneElement(l,void 0,u):null})}return f.jsx(t,{...o,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function hj(e){const t=g.forwardRef((n,s)=>{const{children:r,...i}=n;if(g.isValidElement(r)){const o=yj(r),a=gj(i,r.props);return r.type!==g.Fragment&&(a.ref=s?Iu(s,o):o),g.cloneElement(r,a)}return g.Children.count(r)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pj=Symbol("radix.slottable");function mj(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pj}function gj(e,t){const n={...t};for(const s in t){const r=e[s],i=t[s];/^on[A-Z]/.test(s)?r&&i?n[s]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(n[s]=r):s==="style"?n[s]={...r,...i}:s==="className"&&(n[s]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function yj(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var vj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ht=vj.reduce((e,t)=>{const n=tl(`Primitive.${t}`),s=g.forwardRef((r,i)=>{const{asChild:o,...a}=r,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(c,{...a,ref:i})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function nl(e,t){e&&dl.flushSync(()=>e.dispatchEvent(t))}var Rs=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},xj=ul[" useInsertionEffect ".trim().toString()]||Rs;function jv({prop:e,defaultProp:t,onChange:n=()=>{},caller:s}){const[r,i,o]=bj({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:r;{const u=g.useRef(e!==void 0);g.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${s} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,s])}const l=g.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 bj({defaultProp:e,onChange:t}){const[n,s]=g.useState(e),r=g.useRef(n),i=g.useRef(t);return xj(()=>{i.current=t},[t]),g.useEffect(()=>{var o;r.current!==n&&((o=i.current)==null||o.call(i,n),r.current=n)},[n,r]),[n,s,i]}function wj(e){return typeof e=="function"}var Sj=g.createContext(void 0);function _j(e){const t=g.useContext(Sj);return e||t||"ltr"}function Cj(e,t){return g.useReducer((n,s)=>t[n][s]??n,e)}var Fi=e=>{const{present:t,children:n}=e,s=Ej(t),r=typeof n=="function"?n({present:s.isPresent}):g.Children.only(n),i=dn(s.ref,Tj(r));return typeof n=="function"||s.isPresent?g.cloneElement(r,{ref:i}):null};Fi.displayName="Presence";function Ej(e){const[t,n]=g.useState(),s=g.useRef(null),r=g.useRef(e),i=g.useRef("none"),o=e?"mounted":"unmounted",[a,c]=Cj(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const l=Ji(s.current);i.current=a==="mounted"?l:"none"},[a]),Rs(()=>{const l=s.current,u=r.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"),r.current=e}},[e,c]),Rs(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=y=>{const p=Ji(s.current).includes(y.animationName);if(y.target===t&&p&&(c("ANIMATION_END"),!r.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(s.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:g.useCallback(l=>{s.current=l?getComputedStyle(l):null,n(l)},[])}}function Ji(e){return(e==null?void 0:e.animationName)||"none"}function Tj(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Aj=ul[" useId ".trim().toString()]||(()=>{}),Rj=0;function kv(e){const[t,n]=g.useState(Aj());return Rs(()=>{e||n(s=>s??String(Rj++))},[e]),e||(t?`radix-${t}`:"")}function Ov(e){const t=e+"CollectionProvider",[n,s]=Nv(t),[r,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(r,{scope:v,itemMap:w,collectionRef:b,children:x})};o.displayName=t;const a=e+"CollectionSlot",c=tl(a),l=de.forwardRef((p,v)=>{const{scope:x,children:b}=p,w=i(a,x),_=dn(v,w.collectionRef);return f.jsx(c,{ref:_,children:b})});l.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=tl(u),y=de.forwardRef((p,v)=>{const{scope:x,children:b,...w}=p,_=de.useRef(null),S=dn(v,_),A=i(u,x);return de.useEffect(()=>(A.itemMap.set(_,{ref:_,...w}),()=>void A.itemMap.delete(_))),f.jsx(h,{[d]:"",ref:S,children:b})});y.displayName=u;function m(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((A,E)=>w.indexOf(A.ref.current)-w.indexOf(E.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:o,Slot:l,ItemSlot:y},m,s]}function Jt(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function Pj(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e);g.useEffect(()=>{const s=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[n,t])}var Nj="DismissableLayer",sl="dismissableLayer.update",jj="dismissableLayer.pointerDownOutside",kj="dismissableLayer.focusOutside",Oh,Mv=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Dv=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=e,l=g.useContext(Mv),[u,d]=g.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=g.useState({}),m=dn(t,E=>d(E)),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=Dj(E=>{const R=E.target,N=[...l.branches].some(M=>M.contains(R));!_||N||(r==null||r(E),o==null||o(E),E.defaultPrevented||a==null||a())},h),A=Ij(E=>{const R=E.target;[...l.branches].some(M=>M.contains(R))||(i==null||i(E),o==null||o(E),E.defaultPrevented||a==null||a())},h);return Pj(E=>{b===l.layers.size-1&&(s==null||s(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},h),g.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Oh=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Mh(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Oh)}},[u,h,n,l]),g.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Mh())},[u,l]),g.useEffect(()=>{const E=()=>y({});return document.addEventListener(sl,E),()=>document.removeEventListener(sl,E)},[]),f.jsx(ht.div,{...c,ref:m,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:ze(e.onFocusCapture,A.onFocusCapture),onBlurCapture:ze(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:ze(e.onPointerDownCapture,S.onPointerDownCapture)})});Dv.displayName=Nj;var Oj="DismissableLayerBranch",Mj=g.forwardRef((e,t)=>{const n=g.useContext(Mv),s=g.useRef(null),r=dn(t,s);return g.useEffect(()=>{const i=s.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),f.jsx(ht.div,{...e,ref:r})});Mj.displayName=Oj;function Dj(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e),s=g.useRef(!1),r=g.useRef(()=>{});return g.useEffect(()=>{const i=a=>{if(a.target&&!s.current){let c=function(){Iv(jj,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);s.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function Ij(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e),s=g.useRef(!1);return g.useEffect(()=>{const r=i=>{i.target&&!s.current&&Iv(kj,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Mh(){const e=new CustomEvent(sl);document.dispatchEvent(e)}function Iv(e,t,n,{discrete:s}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),s?nl(r,i):r.dispatchEvent(i)}function Lj(e){const t=g.useRef({value:e,previous:e});return g.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Fj=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"}),Vj="VisuallyHidden",Lv=g.forwardRef((e,t)=>f.jsx(ht.span,{...e,ref:t,style:{...Fj,...e.style}}));Lv.displayName=Vj;var Bj=Lv,Ns="NavigationMenu",[Lu,Fv,$j]=Ov(Ns),[rl,Uj,zj]=Ov(Ns),[Fu,qk]=Nv(Ns,[$j,zj]),[Wj,Nt]=Fu(Ns),[Hj,qj]=Fu(Ns),Vv=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,onValueChange:r,defaultValue:i,delayDuration:o=200,skipDelayDuration:a=300,orientation:c="horizontal",dir:l,...u}=e,[d,h]=g.useState(null),y=dn(t,N=>h(N)),m=_j(l),p=g.useRef(0),v=g.useRef(0),x=g.useRef(0),[b,w]=g.useState(!0),[_,S]=jv({prop:s,onChange:N=>{const M=N!=="",I=a>0;M?(window.clearTimeout(x.current),I&&w(!1)):(window.clearTimeout(x.current),x.current=window.setTimeout(()=>w(!0),a)),r==null||r(N)},defaultProp:i??"",caller:Ns}),A=g.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>S(""),150)},[S]),E=g.useCallback(N=>{window.clearTimeout(v.current),S(N)},[S]),R=g.useCallback(N=>{_===N?window.clearTimeout(v.current):p.current=window.setTimeout(()=>{window.clearTimeout(v.current),S(N)},o)},[_,S,o]);return g.useEffect(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(v.current),window.clearTimeout(x.current)},[]),f.jsx(Bv,{scope:n,isRootMenu:!0,value:_,dir:m,orientation:c,rootNavigationMenu:d,onTriggerEnter:N=>{window.clearTimeout(p.current),b?R(N):E(N)},onTriggerLeave:()=>{window.clearTimeout(p.current),A()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:A,onItemSelect:N=>{S(M=>M===N?"":N)},onItemDismiss:()=>S(""),children:f.jsx(ht.nav,{"aria-label":"Main","data-orientation":c,dir:m,...u,ref:y})})});Vv.displayName=Ns;var il="NavigationMenuSub",Zj=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,onValueChange:r,defaultValue:i,orientation:o="horizontal",...a}=e,c=Nt(il,n),[l,u]=jv({prop:s,onChange:r,defaultProp:i??"",caller:il});return f.jsx(Bv,{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(ht.div,{"data-orientation":o,...a,ref:t})})});Zj.displayName=il;var Bv=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:s,dir:r,orientation:i,children:o,value:a,onItemSelect:c,onItemDismiss:l,onTriggerEnter:u,onTriggerLeave:d,onContentEnter:h,onContentLeave:y}=e,[m,p]=g.useState(null),[v,x]=g.useState(new Map),[b,w]=g.useState(null);return f.jsx(Wj,{scope:t,isRootMenu:n,rootNavigationMenu:s,value:a,previousValue:Lj(a),baseId:kv(),dir:r,orientation:i,viewport:m,onViewportChange:p,indicatorTrack:b,onIndicatorTrackChange:w,onTriggerEnter:Jt(u),onTriggerLeave:Jt(d),onContentEnter:Jt(h),onContentLeave:Jt(y),onItemSelect:Jt(c),onItemDismiss:Jt(l),onViewportContentChange:g.useCallback((_,S)=>{x(A=>(A.set(_,S),new Map(A)))},[]),onViewportContentRemove:g.useCallback(_=>{x(S=>S.has(_)?(S.delete(_),new Map(S)):S)},[]),children:f.jsx(Lu.Provider,{scope:t,children:f.jsx(Hj,{scope:t,items:v,children:o})})})},$v="NavigationMenuList",Uv=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=Nt($v,n),i=f.jsx(ht.ul,{"data-orientation":r.orientation,...s,ref:t});return f.jsx(ht.div,{style:{position:"relative"},ref:r.onIndicatorTrackChange,children:f.jsx(Lu.Slot,{scope:n,children:r.isRootMenu?f.jsx(Yv,{asChild:!0,children:i}):i})})});Uv.displayName=$v;var zv="NavigationMenuItem",[Kj,Wv]=Fu(zv),Hv=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,...r}=e,i=kv(),o=s||i||"LEGACY_REACT_AUTO_VALUE",a=g.useRef(null),c=g.useRef(null),l=g.useRef(null),u=g.useRef(()=>{}),d=g.useRef(!1),h=g.useCallback((m="start")=>{if(a.current){u.current();const p=al(a.current);p.length&&$u(m==="start"?p:p.reverse())}},[]),y=g.useCallback(()=>{if(a.current){const m=al(a.current);m.length&&(u.current=tk(m))}},[]);return f.jsx(Kj,{scope:n,value:o,triggerRef:c,contentRef:a,focusProxyRef:l,wasEscapeCloseRef:d,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:y,onContentFocusOutside:y,children:f.jsx(ht.li,{...r,ref:t})})});Hv.displayName=zv;var ol="NavigationMenuTrigger",qv=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:s,...r}=e,i=Nt(ol,e.__scopeNavigationMenu),o=Wv(ol,e.__scopeNavigationMenu),a=g.useRef(null),c=dn(a,o.triggerRef,t),l=ex(i.baseId,o.value),u=tx(i.baseId,o.value),d=g.useRef(!1),h=g.useRef(!1),y=o.value===i.value;return f.jsxs(f.Fragment,{children:[f.jsx(Lu.ItemSlot,{scope:n,value:o.value,children:f.jsx(Jv,{asChild:!0,children:f.jsx(ht.button,{id:l,disabled:s,"data-disabled":s?"":void 0,"data-state":Uu(y),"aria-expanded":y,"aria-controls":u,...r,ref:c,onPointerEnter:ze(e.onPointerEnter,()=>{h.current=!1,o.wasEscapeCloseRef.current=!1}),onPointerMove:ze(e.onPointerMove,zo(()=>{s||h.current||o.wasEscapeCloseRef.current||d.current||(i.onTriggerEnter(o.value),d.current=!0)})),onPointerLeave:ze(e.onPointerLeave,zo(()=>{s||(i.onTriggerLeave(),d.current=!1)})),onClick:ze(e.onClick,()=>{i.onItemSelect(o.value),h.current=y}),onKeyDown:ze(e.onKeyDown,m=>{const v={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];y&&m.key===v&&(o.onEntryKeyDown(),m.preventDefault())})})})}),y&&f.jsxs(f.Fragment,{children:[f.jsx(Bj,{"aria-hidden":!0,tabIndex:0,ref:o.focusProxyRef,onFocus:m=>{const p=o.contentRef.current,v=m.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})]})]})});qv.displayName=ol;var Gj="NavigationMenuLink",Dh="navigationMenu.linkSelect",Zv=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:s,onSelect:r,...i}=e;return f.jsx(Jv,{asChild:!0,children:f.jsx(ht.a,{"data-active":s?"":void 0,"aria-current":s?"page":void 0,...i,ref:t,onClick:ze(e.onClick,o=>{const a=o.target,c=new CustomEvent(Dh,{bubbles:!0,cancelable:!0});if(a.addEventListener(Dh,l=>r==null?void 0:r(l),{once:!0}),nl(a,c),!c.defaultPrevented&&!o.metaKey){const l=new CustomEvent(ho,{bubbles:!0,cancelable:!0});nl(a,l)}},{checkForDefaultPrevented:!1})})})});Zv.displayName=Gj;var Vu="NavigationMenuIndicator",Kv=g.forwardRef((e,t)=>{const{forceMount:n,...s}=e,r=Nt(Vu,e.__scopeNavigationMenu),i=!!r.value;return r.indicatorTrack?Kh.createPortal(f.jsx(Fi,{present:n||i,children:f.jsx(Qj,{...s,ref:t})}),r.indicatorTrack):null});Kv.displayName=Vu;var Qj=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=Nt(Vu,n),i=Fv(n),[o,a]=g.useState(null),[c,l]=g.useState(null),u=r.orientation==="horizontal",d=!!r.value;g.useEffect(()=>{var p;const m=(p=i().find(v=>v.value===r.value))==null?void 0:p.ref.current;m&&a(m)},[i,r.value]);const h=()=>{o&&l({size:u?o.offsetWidth:o.offsetHeight,offset:u?o.offsetLeft:o.offsetTop})};return cl(o,h),cl(r.indicatorTrack,h),c?f.jsx(ht.div,{"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":r.orientation,...s,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)`},...s.style}}):null}),pr="NavigationMenuContent",Gv=g.forwardRef((e,t)=>{const{forceMount:n,...s}=e,r=Nt(pr,e.__scopeNavigationMenu),i=Wv(pr,e.__scopeNavigationMenu),o=dn(i.contentRef,t),a=i.value===r.value,c={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...s};return r.viewport?f.jsx(Xj,{forceMount:n,...c,ref:o}):f.jsx(Fi,{present:n||a,children:f.jsx(Qv,{"data-state":Uu(a),...c,ref:o,onPointerEnter:ze(e.onPointerEnter,r.onContentEnter),onPointerLeave:ze(e.onPointerLeave,zo(r.onContentLeave)),style:{pointerEvents:!a&&r.isRootMenu?"none":void 0,...c.style}})})});Gv.displayName=pr;var Xj=g.forwardRef((e,t)=>{const n=Nt(pr,e.__scopeNavigationMenu),{onViewportContentChange:s,onViewportContentRemove:r}=n;return Rs(()=>{s(e.value,{ref:t,...e})},[e,t,s]),Rs(()=>()=>r(e.value),[e.value,r]),null}),ho="navigationMenu.rootContentDismiss",Qv=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:s,triggerRef:r,focusProxyRef:i,wasEscapeCloseRef:o,onRootContentClose:a,onContentFocusOutside:c,...l}=e,u=Nt(pr,n),d=g.useRef(null),h=dn(d,t),y=ex(u.baseId,s),m=tx(u.baseId,s),p=Fv(n),v=g.useRef(null),{onItemDismiss:x}=u;g.useEffect(()=>{const w=d.current;if(u.isRootMenu&&w){const _=()=>{var S;x(),a(),w.contains(document.activeElement)&&((S=r.current)==null||S.focus())};return w.addEventListener(ho,_),()=>w.removeEventListener(ho,_)}},[u.isRootMenu,e.value,r,x,a]);const b=g.useMemo(()=>{const _=p().map(M=>M.value);u.dir==="rtl"&&_.reverse();const S=_.indexOf(u.value),A=_.indexOf(u.previousValue),E=s===u.value,R=A===_.indexOf(s);if(!E&&!R)return v.current;const N=(()=>{if(S!==A){if(E&&A!==-1)return S>A?"from-end":"from-start";if(R&&S!==-1)return S>A?"to-start":"to-end"}return null})();return v.current=N,N},[u.previousValue,u.value,u.dir,p,s]);return f.jsx(Yv,{asChild:!0,children:f.jsx(Dv,{id:m,"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:ze(e.onFocusOutside,w=>{var S;c();const _=w.target;(S=u.rootNavigationMenu)!=null&&S.contains(_)&&w.preventDefault()}),onPointerDownOutside:ze(e.onPointerDownOutside,w=>{var E;const _=w.target,S=p().some(R=>{var N;return(N=R.ref.current)==null?void 0:N.contains(_)}),A=u.isRootMenu&&((E=u.viewport)==null?void 0:E.contains(_));(S||A||!u.isRootMenu)&&w.preventDefault()}),onKeyDown:ze(e.onKeyDown,w=>{var A;const _=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!_){const E=al(w.currentTarget),R=document.activeElement,N=E.findIndex(O=>O===R),I=w.shiftKey?E.slice(0,N).reverse():E.slice(N+1,E.length);$u(I)?w.preventDefault():(A=i.current)==null||A.focus()}}),onEscapeKeyDown:ze(e.onEscapeKeyDown,w=>{o.current=!0})})})}),Bu="NavigationMenuViewport",Xv=g.forwardRef((e,t)=>{const{forceMount:n,...s}=e,i=!!Nt(Bu,e.__scopeNavigationMenu).value;return f.jsx(Fi,{present:n||i,children:f.jsx(Yj,{...s,ref:t})})});Xv.displayName=Bu;var Yj=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:s,...r}=e,i=Nt(Bu,n),o=dn(t,i.onViewportChange),a=qj(pr,e.__scopeNavigationMenu),[c,l]=g.useState(null),[u,d]=g.useState(null),h=c?(c==null?void 0:c.width)+"px":void 0,y=c?(c==null?void 0:c.height)+"px":void 0,m=!!i.value,p=m?i.value:i.previousValue;return cl(u,()=>{u&&l({width:u.offsetWidth,height:u.offsetHeight})}),f.jsx(ht.div,{"data-state":Uu(m),"data-orientation":i.orientation,...r,ref:o,style:{pointerEvents:!m&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":y,...r.style},onPointerEnter:ze(e.onPointerEnter,i.onContentEnter),onPointerLeave:ze(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(Qv,{..._,ref:Iu(b,A=>{S&&A&&d(A)})})},x)})})}),Jj="FocusGroup",Yv=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=Nt(Jj,n);return f.jsx(rl.Provider,{scope:n,children:f.jsx(rl.Slot,{scope:n,children:f.jsx(ht.div,{dir:r.dir,...s,ref:t})})})}),Ih=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ek="FocusGroupItem",Jv=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...s}=e,r=Uj(n),i=Nt(ek,n);return f.jsx(rl.ItemSlot,{scope:n,children:f.jsx(ht.button,{...s,ref:t,onKeyDown:ze(e.onKeyDown,o=>{if(["Home","End",...Ih].includes(o.key)){let c=r().map(d=>d.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(o.key)&&c.reverse(),Ih.includes(o.key)){const d=c.indexOf(o.currentTarget);c=c.slice(d+1)}setTimeout(()=>$u(c)),o.preventDefault()}})})})});function al(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const r=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||r?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function $u(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function tk(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 cl(e,t){const n=Jt(t);Rs(()=>{let s=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(s),s=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(s),r.unobserve(e)}}},[e,n])}function Uu(e){return e?"open":"closed"}function ex(e,t){return`${e}-trigger-${t}`}function tx(e,t){return`${e}-content-${t}`}function zo(e){return t=>t.pointerType==="mouse"?e(t):void 0}var nx=Vv,sx=Uv,nk=Hv,rx=qv,sk=Zv,ix=Kv,ox=Gv,ax=Xv;const cx=g.forwardRef(({className:e,children:t,...n},s)=>f.jsxs(nx,{ref:s,className:V("relative z-10 flex w-full flex-1 items-center justify-center",e),...n,children:[t,f.jsx(fx,{})]}));cx.displayName=nx.displayName;const lx=g.forwardRef(({className:e,...t},n)=>f.jsx(sx,{ref:n,className:V("group flex flex-1 list-none w-full items-center justify-center space-x-1",e),...t}));lx.displayName=sx.displayName;const rk=nk,ik=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"),ux=g.forwardRef(({className:e,children:t,...n},s)=>f.jsxs(rx,{ref:s,className:V(ik(),"group",e),...n,children:[t,f.jsx("div",{className:"h-full w-4"}),f.jsx(Mw,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));ux.displayName=rx.displayName;const dx=g.forwardRef(({className:e,...t},n)=>f.jsx(ox,{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}));dx.displayName=ox.displayName;const ok=sk,fx=g.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(ax,{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})}));fx.displayName=ax.displayName;const ak=g.forwardRef(({className:e,...t},n)=>f.jsx(ix,{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"})}));ak.displayName=ix.displayName;const ck=({className:e,text:t,hoverItems:n,setIsOpen:s})=>{const r=Bo(i=>i.setSheet);return f.jsx(cx,{children:f.jsx(lx,{children:f.jsxs(rk,{className:"w-full",children:[f.jsx(ux,{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(dx,{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(ok,{onClick:()=>{s(!1),r(!1)},className:"h-14 py-2 flex items-center w-40 cursor-pointer px-4 hover:bg-slate-300/50 transition-all",children:f.jsx(Se,{target:i.blank?"_blank":"",to:i.link??"",children:i.text})},o))})]})})})},gt=e=>e===Pt.RU?0:1,ll=[{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"}]}],hx=()=>{const e=Te(s=>s.lang),{data:t,isPending:n}=En({queryKey:["industries",e],queryFn:()=>w1(e),select:({data:s})=>s.data});return{data:t,isPending:n}},Zk=({className:e})=>{const t=Te(r=>r.lang),{data:n,isPending:s}=hx();return f.jsx("section",{className:V("relative w-full bg-[#FDEDEE] -z-10 py-10",e),children:f.jsx(qe,{children:s?f.jsx(Yn,{}):f.jsxs(f.Fragment,{children:[f.jsx("h3",{className:"h2 mb-4",children:ll[gt(t)].title}),f.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:n==null?void 0:n.map((r,i)=>f.jsx(sm,{...r},i))}),f.jsxs("div",{className:"flex items-center gap-3 mt-8 text-on_surface_v text-lg",children:[f.jsx("div",{className:"md:w-1 w-4 md:h-[38px] h-40 bg-teritary_08"}),f.jsx("p",{className:"text-18",children:ll[gt(t)].bottom_text})]})]})})})},px=[{title:"Время выставки",data:[{name:"Монтаж выставки",date:"12 Мая 10 Июня 2025 года"},{name:"Работа",date:"1113 Июня 2025 года"},{name:"Демонтаж",date:"1314 Июня 2025 года"}]},{title:"Exhibition time",data:[{name:"Exhibition assembly",date:"12 May — 10 June 2025"},{name:"Exhibition days",date:"1113 June 2025"},{name:"Exhibition dismantling",date:"1314 June 2025"}]}],mx=()=>{const e=Te(s=>s.lang),{data:t,isPending:n}=En({queryKey:["exhibiton-time",e],queryFn:()=>S1(e),select:({data:s})=>s.data});return{data:t,isPending:n}},Kk=({className:e})=>{const t=Te(r=>r.lang),{data:n,isPending:s}=mx();return f.jsx("section",{className:V("bg-surface_container py-10 md:py-20",e),children:f.jsx(qe,{children:s?f.jsx(Yn,{}):f.jsxs(f.Fragment,{children:[f.jsx("h2",{className:"h2 mb-6",children:px[gt(t)].title}),f.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:n==null?void 0:n.map((r,i)=>g.createElement(rm,{bottomClassName:"!bg-white rounded-b-[2px]",...r,key:i,className:"w-full"}))})]})})})},Lh=[{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."]}],Gk=({className:e})=>{const t=Te(n=>n.lang);return f.jsx("section",{className:V("gap-6 relative overflow-hidden",e),children:f.jsxs(qe,{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:Lh[gt(t)].title}),f.jsx("div",{className:"text-lg flex flex-col gap-6 text-on_surface_v normal mb-10",children:Lh[gt(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 Turkmenistans position on the global economic stage",button1:"Book a stand",button2:"B2B | B2G meetings"}],Qk=({className:e})=>{const t=Te(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(qe,{children:[f.jsx("h3",{className:"h2 text-center !text-on_primary mb-6",children:eo[gt(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[gt(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(Je,{className:"bg-reverse_primary w-full text-primary hover:bg-reverse_primary/90",children:eo[gt(t)].button1})}),f.jsx(Se,{to:"/B2B-B2GS",className:"w-full",children:f.jsx(Je,{className:"bg-reverse_primary w-full hover:bg-reverse_primary/90 text-primary",children:eo[gt(t)].button2})})]})]})]})},gx=e=>{const t=Te(r=>r.lang),{data:n,isPending:s}=En({queryKey:["static-words",t,e],queryFn:()=>v1(t,e),select:({data:r})=>r.data});return{data:n,isPending:s}},Xk=()=>{var h,y,m,p,v,x,b,w;const e=Te(_=>_.lang),{t}=vr("about"),{data:n,isPending:s}=gx("2"),r=(h=n==null?void 0:n.find(_=>_.key==="about_1"))==null?void 0:h.text,i=(y=n==null?void 0:n.find(_=>_.key==="about_2"))==null?void 0:y.text,o=(m=n==null?void 0:n.find(_=>_.key==="about_3"))==null?void 0:m.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 s?f.jsx(Yn,{}):f.jsxs(qe,{className:"flex flex-col md:my-20 my-10 gap-16",children:[f.jsxs("div",{className:"flex flex-col gap-6",children:[f.jsx("h2",{className:"h2",children:r}),f.jsx("div",{className:"flex flex-col p gap-3",dangerouslySetInnerHTML:{__html:i??""}})]}),f.jsxs("div",{className:"flex flex-col gap-6",children:[f.jsx("h3",{className:"h2",children:o}),f.jsx("h4",{className:"p",children:a}),f.jsx("ol",{type:"1",className:"list-decimal pl-8 flex flex-col gap-3 ",children: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(Je,{children:t("main.button")})})]})},lk={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function uk(e,t){const n=e.scrollSnapList();return typeof t=="number"?n.map(()=>t):t(n,e)}function dk(e,t){const n=e.rootNode();return t&&t(n)||n}function ga(e={}){let t,n,s,r,i=null,o=0,a=!1,c=!1,l=!1,u=!1;function d(F,J){n=F;const{mergeOptions:X,optionsAtMedia:q}=J,Z=X(lk,ga.globalOptions),re=X(Z,e);if(t=q(re),n.scrollSnapList().length<=1)return;u=t.jump,s=!1,r=uk(n,t.delay);const{eventStore:fe,ownerDocument:ye}=n.internalEngine(),Be=!!n.internalEngine().options.watchDrag,Ze=dk(n,t.rootNode);fe.add(ye,"visibilitychange",x),Be&&n.on("pointerDown",w),Be&&!t.stopOnInteraction&&n.on("pointerUp",_),t.stopOnMouseEnter&&fe.add(Ze,"mouseenter",S),t.stopOnMouseEnter&&!t.stopOnInteraction&&fe.add(Ze,"mouseleave",A),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(),s=!0,a=!1}function y(){const{ownerWindow:F}=n.internalEngine();F.clearTimeout(o),o=F.setTimeout(I,r[n.selectedScrollSnap()]),i=new Date().getTime(),n.emit("autoplay:timerset")}function m(){const{ownerWindow:F}=n.internalEngine();F.clearTimeout(o),o=0,i=null,n.emit("autoplay:timerstopped")}function p(){if(!s){if(b()){l=!0;return}a||n.emit("autoplay:play"),y(),a=!0}}function v(){s||(a&&n.emit("autoplay:stop"),m(),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 A(){c=!1,p()}function E(F){typeof F<"u"&&(u=F),p()}function R(){a&&v()}function N(){a&&p()}function M(){return a}function I(){const{index:F}=n.internalEngine(),J=F.clone().add(1).get(),X=n.scrollSnapList().length-1,q=t.stopOnLastSnap&&J===X;if(n.canScrollNext()?n.scrollNext(u):n.scrollTo(0,u),n.emit("autoplay:select"),q)return v();p()}function O(){if(!i)return null;const F=r[n.selectedScrollSnap()],J=new Date().getTime()-i;return F-J}return{name:"autoplay",options:e,init:d,destroy:h,play:E,stop:R,reset:N,isPlaying:M,timeUntilNext:O}}ga.globalOptions=void 0;const Yk=()=>{const{t:e}=vr("home"),[t]=Tn({loop:!0},[ga({delay:5e3,stopOnInteraction:!1})]),n=So("(min-width: 1024px)"),s=So("(min-width: 768px)");function r(){return n?e("banners.lg",{returnObjects:!0}):s?e("banners.md",{returnObjects:!0}):e("banners.sm",{returnObjects:!0})}const i=r();return f.jsx("div",{className:"mb-6",children:f.jsx("section",{className:"flex flex-col gap-5",children:f.jsx("div",{ref:t,className:"embla overflow-hidden",children:f.jsx("div",{className:"embla__container flex lg:max-h-[600px] lg:min-h-[320px]",children:i==null?void 0:i.map((o,a)=>o.path.includes(".mp4")?f.jsx(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,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))})})})})},fk=()=>{const e=Te(s=>s.lang),{data:t,isPending:n}=En({queryKey:["home-contacts",e],queryFn:()=>b1(e),select:({data:s})=>s.data});return{data:t,isPending:n}},Jk=({className:e})=>{const t=Te(o=>o.lang),{data:n,isPending:s}=mx(),{data:r}=fk(),i=gt(t);return s?f.jsx(Yn,{}):f.jsx("section",{className:V("bg-surface_high my-20 pt-10 pb-20",e),children:f.jsxs(qe,{children:[f.jsx("h2",{className:"h2 mb-6",children:px[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)=>g.createElement(rm,{...o,key:a,className:"w-full"}))}),f.jsx("div",{className:"md:p-10 pt-16 flex flex-col md:flex-row items-center gap-6",children:r==null?void 0:r.map((o,a)=>g.createElement(Y0,{...o,key:a,className:"w-full"}))}),f.jsx(Se,{to:"/stend-form",className:"md:w-fit w-full mx-auto",children:f.jsx(Je,{className:"w-full",children:t===Pt.RU?"Забронируйте стенд":"Book a stand"})})]})]})})},Fh=[{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"}],hk=()=>{const e=Te(s=>s.lang),{data:t,isPending:n}=En({queryKey:["stats",e],queryFn:()=>x1(e),select:({data:s})=>s.data});return{data:t,isPending:n}},eO=()=>{var c,l;const[e]=Tn(),t=Te(u=>u.lang),{data:n,isPending:s}=gx("1"),{data:r}=hk(),i=(c=n==null?void 0:n.find(u=>u.key==="index_1"))==null?void 0:c.text,o=(l=n==null?void 0:n.find(u=>u.key==="index_2"))==null?void 0:l.text,a=gt(t);return s?f.jsx(Yn,{}):f.jsx("section",{className:"py-20",children:f.jsxs(qe,{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:i}),f.jsx("div",{dangerouslySetInnerHTML:{__html:o||""},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:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Report/report.pdf",target:"_blank",className:"w-fit",children:f.jsx(Je,{variant:"outline",children:Fh[a].button})}),f.jsx(Se,{target:"_blank",to:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Catalogue/catalogue.pdf",children:f.jsx(Je,{variant:"outline",className:"px-16",children:Fh[a].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:r==null?void 0:r.map(u=>f.jsx(Q0,{...u,className:"embla__slide flex-[0_0_288px]"},u.text))})})]})})},tO=()=>{const e=Te(s=>s.lang),{data:t,isPending:n}=hx();return n?f.jsx(Yn,{}):f.jsx("section",{className:"",children:f.jsxs(qe,{children:[f.jsx("h2",{className:"h2 mb-10 text-center",children:ll[gt(e)].title}),f.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:t==null?void 0:t.map((s,r)=>f.jsx(sm,{...s},r))})]})})},pk=[{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"}]}],nO=()=>{const[e,t]=Tn({align:"start"}),[n,s]=g.useState(0),r=Te(o=>o.lang),i=g.useCallback(o=>{t&&t.scrollTo(o)},[t]);return g.useEffect(()=>{if(!t)return;const o=()=>{s(t.selectedScrollSnap())};return t.on("select",o),()=>{t.off("select",o)}},[t]),f.jsx("section",{className:"bg-surface_high py-10 my-20 relative overflow-hidden",children:f.jsx(qe,{children:f.jsxs("div",{ref:e,className:"embla ",children:[f.jsx("div",{className:"mb-2 flex gap-6 embla__container",children:pk[gt(r)].data.map(o=>g.createElement(X0,{...o,key:o.title,className:"embla__slide flex-[0_0_300px] sm:flex-[0_0_600px]"}))}),f.jsx(XT,{className:"xl:hidden",scrollTo:i,active:n,slides:2})]})})})},mk=()=>{const e=Te(s=>s.lang),{data:t,isPending:n}=En({queryKey:["sponsors",e],queryFn:()=>T1(e),select:({data:s})=>s.data});return{data:t,isPending:n}},sO=({className:e})=>{const[t]=Tn({loop:!0,align:"start",skipSnaps:!0,duration:75},[ga({stopOnInteraction:!1,delay:3e3})]),{data:n,isPending:s}=mk(),{t:r}=vr("home",{keyPrefix:"sponsors"});return s?f.jsx(Yn,{}):f.jsx("section",{className:V("md:py-20",e),children:f.jsxs(qe,{className:"flex flex-col gap-6",children:[f.jsx("h2",{className:"h2",children:r("title")}),f.jsx("div",{ref:t,className:"embla overflow-hidden",children:f.jsx("div",{className:"embla__container flex",children:n==null?void 0:n.map((i,o)=>{var a,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)})})})]})})},gk=e=>{const{data:t,isPending:n}=En({queryKey:["news",e],queryFn:()=>_1(e),select:({data:s})=>s.data});return{data:t,isPending:n}},yk=({className:e,featured_images:t,title:n,id:s,published_at:r})=>{var i;return f.jsx(Se,{to:`/news/${s}`,children:f.jsxs("article",{className:V("bg-surface_container justify-between h-[400px] flex flex-col gap-6",e),children:[f.jsxs("div",{className:"flex flex-col gap-4 px-6 pt-6",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("h4",{children:r.slice(0,10).split("-").reverse().join(".")}),f.jsx(Nw,{})]}),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"})]})})},rO=()=>{const e=Te(s=>s.lang),{data:t,isPending:n}=gk(e);return n?f.jsx(Yn,{}):f.jsx("section",{className:V("md:mb-[120px] mb-20"),children:f.jsxs(qe,{children:[f.jsx("h2",{className:"h2 text-center md:mb-8 mb-6",children:e==="en"?"News":"Новости"}),f.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:t==null?void 0:t.slice(0,3).map(s=>g.createElement(yk,{...s,key:s.title}))})]})})},iO=({className:e})=>{const{t}=vr("home"),{items:n}=t("buttons",{returnObjects:!0});return f.jsx("section",{className:V("",e),children:f.jsx(qe,{children:f.jsx("div",{className:"grid lg:grid-cols-6 sm:grid-cols-2 grid-cols-1 gap-6",children:n.map((s,r)=>s.dropdown?f.jsx($o,{dropDownContent:s.items,triggerClassName:"w-full",className:"!w-full",children:f.jsxs(Je,{size:"lg",variant:"teritary",className:"w-full drop-shadow-sm shadow-md md:text-xl text-lg bg-teritary text-on_teritary hover:bg-teritary/90",children:[s.text,f.jsx(Tv,{w:"40",h:"40",color:"white"})]})},r):f.jsx(Se,{to:s.link??"",target:s.blank?"_blank":"",children:f.jsx(Je,{variant:"teritary",size:"lg",className:"w-full !flex drop-shadow-sm px-2 shadow-md md:text-lg bg-teritary text-on_teritary hover:bg-teritary/90",children:s.text})},r))})})})},vk=()=>{const{t:e}=vr("nav"),t=Te(i=>i.lang),n=Bo(i=>i.sheet),s=Bo(i=>i.setSheet),r=e("navigation",{returnObjects:!0});return f.jsxs(A0,{onOpenChange:()=>s(!n),open:n,children:[f.jsx(R0,{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(Xp,{className:"overflow-y-auto z-[100]",children:[f.jsx(P0,{}),f.jsxs(Yp,{className:"mt-16 flex flex-col gap-2",children:[f.jsx(Se,{to:t===Pt.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(Je,{variant:"secondary",size:"sm",className:"bg-teritary w-full text-on_teritary hover:bg-teritary/90",children:t==="ru"?"Официальная поддержка":"Official Support"})}),f.jsx(Se,{to:"/become-sponsor",children:f.jsx(Je,{variant:"secondary",size:"sm",className:"bg-primary w-full text-white hover:bg-primary/90",children:t==="ru"?"Стать спонсором":"Become a sponsor"})})]}),f.jsx("hr",{className:"border-slate-500/20 my-8"}),f.jsx("div",{className:"flex flex-col gap-6",children:r.map(i=>i.drop?f.jsx($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:()=>s(!1),children:i.title},i.title))})]})]})},oO=()=>{const e=Te(s=>s.lang),{t}=vr("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(qe,{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(Uw,{}),f.jsx("h4",{className:"text-sm",children:e==="ru"?"Ашхабад, Туркменистан":"Ashgabat, Turkmenistan"})]}),f.jsx("nav",{className:"flex items-center gap-6",children:n.slice(0,3).map(s=>s.drop?f.jsx($o,{color:"black",dropDownContent:s.dropDownContent,title:s.title},s.title):f.jsx(Se,{target:s.blank?"_blank":"",className:"py-2",to:s.link||"",children:s.title},s.title))})]}),f.jsxs("div",{className:"flex items-center gap-6",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Hw,{size:16,strokeWidth:"3px"}),f.jsx("h4",{className:"text-sm",children:"+99371871812"})]}),f.jsx(lh,{className:"!text-on_surface"})]})]})}),f.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:f.jsxs(qe,{className:"flex items-center justify-between ",children:[f.jsxs("div",{className:"flex items-center gap-8",children:[f.jsx(Se,{to:"/",children:f.jsx(nm,{className:""})}),f.jsx("nav",{className:"lg:flex hidden items-center gap-3 xl:gap-6 text-white",children:n.slice(3,6).map(s=>s.drop?f.jsx($o,{dropDownContent:s.dropDownContent,title:s.title,color:"white"},s.title):f.jsx(Se,{className:"py-2",to:s.link||"",children:s.title},s.title))})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(lh,{className:"lg:hidden",light:!0}),f.jsx(vk,{})]}),f.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[f.jsx(Se,{to:e===Pt.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(Je,{variant:"secondary",size:"sm",className:"bg-white text-primary hover:bg-white/90 h-12 w-fit",children:e==="ru"?"Официальная поддержка":"Official Support"})}),f.jsx(Se,{to:"/become-sponsor",children:f.jsx(Je,{variant:"secondary",size:"sm",className:"bg-teritary text-white hover:bg-teritary/90 h-12 w-fit",children:e==="ru"?"Стать спонсором":"Become a sponsor"})})]})]})})]})})},aO=()=>{const e=Te(t=>t.lang);return f.jsxs("footer",{children:[f.jsx(Ev,{}),f.jsx("div",{className:"py-5 bg-primary",children:f.jsxs(qe,{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(nm,{}),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(Fw,{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:e===Pt.RU?"©2025 Все права защищены":"All rights reserved"})]})})]})},qe=({className:e,children:t})=>f.jsx("div",{className:V("w-full mx-auto max-w-[1240px] px-4",e),children:t}),cO=({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{qe as $,ty as A,ny as B,Ok as C,Je as D,Ek as E,aO as F,qT as G,oO as H,OR as I,kk as J,Rk as K,Pt as L,Mk as M,Ve as N,cO as O,ct as P,jk as Q,Xk as R,mr as S,Zk as T,Kk as U,Gk as V,Qk as W,Lk as X,vr as Y,Wp as Z,Fk as _,Yk as a,uj as a0,dj as a1,Wk as a2,Uk as a3,Tk as a4,Yn as a5,En as a6,Vk as a7,gk as a8,yk as a9,Bk as aa,zk as ab,Ik as ac,Tn as ad,ga as ae,$k as af,Hk as ag,mc as ah,zp as ai,wk as aj,Sk as ak,iO as b,V as c,eO as d,sO as e,nO as f,tO as g,Jk as h,Ak as i,f as j,rO as k,gl as l,zt as m,ap as n,Bn as o,yt as p,to as q,gr as r,XA as s,sa as t,Te as u,Hr as v,gt as w,GT as x,ey as y,hh as z};