var Qt=Object.defineProperty;var Zt=(n,e,t)=>e in n?Qt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var y=(n,e,t)=>Zt(n,typeof e!="symbol"?e+"":e,t);import{u as I,i as es,j as r,H as ts,F as ss,c as Q,a as ns,b as is,d as rs,e as as,f as os,g as ls,h as cs,k as us,z as w,l as Oe,m as be,S as Ze,n as vt,o as ds,P as je,p as ne,q as ps,r as hs,s as ms,t as He,v as we,w as N,x as _e,y as K,A as G,L as ae,B as U,C as T,D as z,E as Ke,G as Pe,I as Ie,J as Fe,K as pe,M as Ge,N as fs,O as ce,Q as gs,R as xs,T as bs,U as vs,V as ys,W as js,X as ws,Y as me,Z as Ss,_ as ks,$ as Z,a0 as Ns,a1 as yt,a2 as Ts,a3 as jt,a4 as _s,a5 as he,a6 as Ue,a7 as Es,a8 as wt,a9 as St,aa as Rs,ab as et,ac as Cs,ad as kt,ae as Ls,af as Os,ag as Ps,ah as Is,ai as Fs,aj as As,ak as $s}from"./ui-library-CVZjQZ_5.js";import{f as Ds,a as b,O as Ms,e as le,u as Bs,g as We,L as tt,h as Vs,i as zs}from"./react-vendor-CE_Ks92h.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function t(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function s(i){if(i.ep)return;i.ep=!0;const a=t(i);fetch(i.href,a)}})();var Ne={},st;function Hs(){if(st)return Ne;st=1;var n=Ds();return Ne.createRoot=n.createRoot,Ne.hydrateRoot=n.hydrateRoot,Ne}var Ks=Hs();const S=n=>typeof n=="string",ge=()=>{let n,e;const t=new Promise((s,i)=>{n=s,e=i});return t.resolve=n,t.reject=e,t},nt=n=>n==null?"":""+n,Gs=(n,e,t)=>{n.forEach(s=>{e[s]&&(t[s]=e[s])})},Us=/###/g,it=n=>n&&n.indexOf("###")>-1?n.replace(Us,"."):n,rt=n=>!n||S(n),xe=(n,e,t)=>{const s=S(e)?e.split("."):e;let i=0;for(;i{const{obj:s,k:i}=xe(n,e,Object);if(s!==void 0||e.length===1){s[i]=t;return}let a=e[e.length-1],o=e.slice(0,e.length-1),l=xe(n,o,Object);for(;l.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),l=xe(n,o,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=t},Ws=(n,e,t,s)=>{const{obj:i,k:a}=xe(n,e,Object);i[a]=i[a]||[],i[a].push(t)},Ee=(n,e)=>{const{obj:t,k:s}=xe(n,e);if(t&&Object.prototype.hasOwnProperty.call(t,s))return t[s]},qs=(n,e,t)=>{const s=Ee(n,t);return s!==void 0?s:Ee(e,t)},Nt=(n,e,t)=>{for(const s in e)s!=="__proto__"&&s!=="constructor"&&(s in n?S(n[s])||n[s]instanceof String||S(e[s])||e[s]instanceof String?t&&(n[s]=e[s]):Nt(n[s],e[s],t):n[s]=e[s]);return n},ue=n=>n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Ys={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Js=n=>S(n)?n.replace(/[&<>"'\/]/g,e=>Ys[e]):n;class Xs{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const s=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,s),this.regExpQueue.push(e),s}}const Qs=[" ",",","?","!",";"],Zs=new Xs(20),en=(n,e,t)=>{e=e||"",t=t||"";const s=Qs.filter(o=>e.indexOf(o)<0&&t.indexOf(o)<0);if(s.length===0)return!0;const i=Zs.getRegExp(`(${s.map(o=>o==="?"?"\\?":o).join("|")})`);let a=!i.test(n);if(!a){const o=n.indexOf(t);o>0&&!i.test(n.substring(0,o))&&(a=!0)}return a},Be=function(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!n)return;if(n[e])return Object.prototype.hasOwnProperty.call(n,e)?n[e]:void 0;const s=e.split(t);let i=n;for(let a=0;a-1&&cn==null?void 0:n.replace("_","-"),tn={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,e){var t,s;(s=(t=console==null?void 0:console[n])==null?void 0:t.apply)==null||s.call(t,console,e)}};class Ce{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||tn,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),s=0;s{this.observers[s]||(this.observers[s]=new Map);const i=this.observers[s].get(t)||0;this.observers[s].set(t,i+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),i=1;i{let[l,c]=o;for(let u=0;u{let[l,c]=o;for(let u=0;u1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,s){var u,p;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.indexOf(".")>-1?l=e.split("."):(l=[e,t],s&&(Array.isArray(s)?l.push(...s):S(s)&&a?l.push(...s.split(a)):l.push(s)));const c=Ee(this.data,l);return!c&&!t&&!s&&e.indexOf(".")>-1&&(e=l[0],t=l[1],s=l.slice(2).join(".")),c||!o||!S(s)?c:Be((p=(u=this.data)==null?void 0:u[e])==null?void 0:p[t],s,a)}addResource(e,t,s,i){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let l=[e,t];s&&(l=l.concat(o?s.split(o):s)),e.indexOf(".")>-1&&(l=e.split("."),i=t,t=l[1]),this.addNamespaces(t),at(this.data,l,i),a.silent||this.emit("added",e,t,s,i)}addResources(e,t,s){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in s)(S(s[a])||Array.isArray(s[a]))&&this.addResource(e,t,a,s[a],{silent:!0});i.silent||this.emit("added",e,t,s)}addResourceBundle(e,t,s,i,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[e,t];e.indexOf(".")>-1&&(l=e.split("."),i=s,s=t,t=l[1]),this.addNamespaces(t);let c=Ee(this.data,l)||{};o.skipCopy||(s=JSON.parse(JSON.stringify(s))),i?Nt(c,s,a):c={...c,...s},at(this.data,l,c),o.silent||this.emit("added",e,t,s)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(i=>t[i]&&Object.keys(t[i]).length>0)}toJSON(){return this.data}}var Tt={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,e,t,s,i){return n.forEach(a=>{var o;e=((o=this.processors[a])==null?void 0:o.process(e,t,s,i))??e}),e}};const lt={},ct=n=>!S(n)&&typeof n!="boolean"&&typeof n!="number";class Le extends Ae{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Gs(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=X.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const s=this.resolve(e,t);return(s==null?void 0:s.res)!==void 0}extractFromKey(e,t){let s=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const i=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let a=t.ns||this.options.defaultNS||[];const o=s&&e.indexOf(s)>-1,l=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!en(e,s,i);if(o&&!l){const c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:S(a)?[a]:a};const u=e.split(s);(s!==i||s===i&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),e=u.join(i)}return{key:e,namespaces:S(a)?[a]:a}}translate(e,t,s){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const i=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,a=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(e[e.length-1],t),c=l[l.length-1],u=t.lng||this.language,p=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((u==null?void 0:u.toLowerCase())==="cimode"){if(p){const F=t.nsSeparator||this.options.nsSeparator;return i?{res:`${c}${F}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(t)}:`${c}${F}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(t)}:o}const m=this.resolve(e,t);let d=m==null?void 0:m.res;const f=(m==null?void 0:m.usedKey)||o,h=(m==null?void 0:m.exactUsedKey)||o,g=["[object Number]","[object Function]","[object RegExp]"],x=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,j=!this.i18nFormat||this.i18nFormat.handleAsObject,v=t.count!==void 0&&!S(t.count),k=Le.hasDefaultValue(t),_=v?this.pluralResolver.getSuffix(u,t.count,t):"",O=t.ordinal&&v?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",C=v&&!t.ordinal&&t.count===0,R=C&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${_}`]||t[`defaultValue${O}`]||t.defaultValue;let E=d;j&&!d&&k&&(E=R);const W=ct(E),ee=Object.prototype.toString.apply(E);if(j&&E&&W&&g.indexOf(ee)<0&&!(S(x)&&Array.isArray(E))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,E,{...t,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(m.res=F,m.usedParams=this.getUsedParamsDetails(t),m):F}if(a){const F=Array.isArray(E),M=F?[]:{},Se=F?h:f;for(const q in E)if(Object.prototype.hasOwnProperty.call(E,q)){const Y=`${Se}${a}${q}`;k&&!d?M[q]=this.translate(Y,{...t,defaultValue:ct(R)?R[q]:void 0,joinArrays:!1,ns:l}):M[q]=this.translate(Y,{...t,joinArrays:!1,ns:l}),M[q]===Y&&(M[q]=E[q])}d=M}}else if(j&&S(x)&&Array.isArray(d))d=d.join(x),d&&(d=this.extendTranslation(d,e,t,s));else{let F=!1,M=!1;!this.isValidLookup(d)&&k&&(F=!0,d=R),this.isValidLookup(d)||(M=!0,d=o);const q=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&M?void 0:d,Y=k&&R!==d&&this.options.updateMissing;if(M||F||Y){if(this.logger.log(Y?"updateKey":"missingKey",u,c,o,Y?R:d),a){const V=this.resolve(o,{...t,keySeparator:!1});V&&V.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let B=[];const ke=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ke&&ke[0])for(let V=0;V{var Qe;const Xe=k&&fe!==d?fe:q;this.options.missingKeyHandler?this.options.missingKeyHandler(V,c,oe,Xe,Y,t):(Qe=this.backendConnector)!=null&&Qe.saveMissing&&this.backendConnector.saveMissing(V,c,oe,Xe,Y,t),this.emit("missingKey",V,c,oe,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?B.forEach(V=>{const oe=this.pluralResolver.getSuffixes(V,t);C&&t[`defaultValue${this.options.pluralSeparator}zero`]&&oe.indexOf(`${this.options.pluralSeparator}zero`)<0&&oe.push(`${this.options.pluralSeparator}zero`),oe.forEach(fe=>{Je([V],o+fe,t[`defaultValue${fe}`]||R)})}):Je(B,o,R))}d=this.extendTranslation(d,e,t,m,s),M&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${c}:${o}`),(M||F)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${o}`:o,F?d:void 0))}return i?(m.res=d,m.usedParams=this.getUsedParamsDetails(t),m):d}extendTranslation(e,t,s,i,a){var u,p;var o=this;if((u=this.i18nFormat)!=null&&u.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const m=S(e)&&(((p=s==null?void 0:s.interpolation)==null?void 0:p.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(m){const h=e.match(this.interpolator.nestingRegexp);d=h&&h.length}let f=s.replace&&!S(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),e=this.interpolator.interpolate(e,f,s.lng||this.language||i.usedLng,s),m){const h=e.match(this.interpolator.nestingRegexp),g=h&&h.length;d1&&arguments[1]!==void 0?arguments[1]:{},s,i,a,o,l;return S(e)&&(e=[e]),e.forEach(c=>{if(this.isValidLookup(s))return;const u=this.extractFromKey(c,t),p=u.key;i=p;let m=u.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const d=t.count!==void 0&&!S(t.count),f=d&&!t.ordinal&&t.count===0,h=t.context!==void 0&&(S(t.context)||typeof t.context=="number")&&t.context!=="",g=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);m.forEach(x=>{var j,v;this.isValidLookup(s)||(l=x,!lt[`${g[0]}-${x}`]&&((j=this.utils)!=null&&j.hasLoadedNamespace)&&!((v=this.utils)!=null&&v.hasLoadedNamespace(l))&&(lt[`${g[0]}-${x}`]=!0,this.logger.warn(`key "${i}" for languages "${g.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(k=>{var C;if(this.isValidLookup(s))return;o=k;const _=[p];if((C=this.i18nFormat)!=null&&C.addLookupKeys)this.i18nFormat.addLookupKeys(_,p,k,x,t);else{let R;d&&(R=this.pluralResolver.getSuffix(k,t.count,t));const E=`${this.options.pluralSeparator}zero`,W=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(_.push(p+R),t.ordinal&&R.indexOf(W)===0&&_.push(p+R.replace(W,this.options.pluralSeparator)),f&&_.push(p+E)),h){const ee=`${p}${this.options.contextSeparator}${t.context}`;_.push(ee),d&&(_.push(ee+R),t.ordinal&&R.indexOf(W)===0&&_.push(ee+R.replace(W,this.options.pluralSeparator)),f&&_.push(ee+E))}}let O;for(;O=_.pop();)this.isValidLookup(s)||(a=O,s=this.getResource(k,x,O,t))}))})}),{res:s,usedKey:i,exactUsedKey:a,usedLng:o,usedNS:l}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,s){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(e,t,s,i):this.resourceStore.getResource(e,t,s,i)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=e.replace&&!S(e.replace);let i=s?e.replace:e;if(s&&typeof e.count<"u"&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!s){i={...i};for(const a of t)delete i[a]}return i}static hasDefaultValue(e){const t="defaultValue";for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t===s.substring(0,t.length)&&e[s]!==void 0)return!0;return!1}}class ut{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=X.create("languageUtils")}getScriptPartFromCode(e){if(e=Re(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=Re(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(S(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(s=>{if(t)return;const i=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(i))&&(t=i)}),!t&&this.options.supportedLngs&&e.forEach(s=>{if(t)return;const i=this.getLanguagePartFromCode(s);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(a=>{if(a===i)return a;if(!(a.indexOf("-")<0&&i.indexOf("-")<0)&&(a.indexOf("-")>0&&i.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===i||a.indexOf(i)===0&&i.length>1))return a})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),S(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let s=e[t];return s||(s=e[this.getScriptPartFromCode(t)]),s||(s=e[this.formatLanguageCode(t)]),s||(s=e[this.getLanguagePartFromCode(t)]),s||(s=e.default),s||[]}toResolveHierarchy(e,t){const s=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],a=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return S(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):S(e)&&a(this.formatLanguageCode(e)),s.forEach(o=>{i.indexOf(o)<0&&a(this.formatLanguageCode(o))}),i}}const dt={zero:0,one:1,two:2,few:3,many:4,other:5},pt={select:n=>n===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class sn{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=X.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=Re(e==="dev"?"en":e),i=t.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:s,type:i});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let o;try{o=new Intl.PluralRules(s,{type:i})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),pt;if(!e.match(/-|_/))return pt;const c=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(c,t)}return this.pluralRulesCache[a]=o,o}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),(s==null?void 0:s.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,s).map(i=>`${t}${i}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),s?s.resolvedOptions().pluralCategories.sort((i,a)=>dt[i]-dt[a]).map(i=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(e,s);return i?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,s))}}const ht=function(n,e,t){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=qs(n,e,t);return!a&&i&&S(t)&&(a=Be(n,t,s),a===void 0&&(a=Be(e,t,s))),a},De=n=>n.replace(/\$/g,"$$$$");class nn{constructor(){var t;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=X.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||(s=>s),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:s,useRawValueToEscape:i,prefix:a,prefixEscaped:o,suffix:l,suffixEscaped:c,formatSeparator:u,unescapeSuffix:p,unescapePrefix:m,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:h,nestingSuffixEscaped:g,nestingOptionsSeparator:x,maxReplaces:j,alwaysFormat:v}=e.interpolation;this.escape=t!==void 0?t:Js,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=a?ue(a):o||"{{",this.suffix=l?ue(l):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=p?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":p||"",this.nestingPrefix=d?ue(d):f||ue("$t("),this.nestingSuffix=h?ue(h):g||ue(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=j||1e3,this.alwaysFormat=v!==void 0?v:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,s)=>(t==null?void 0:t.source)===s?(t.lastIndex=0,t):new RegExp(s,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,s,i){var f;let a,o,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=h=>{if(h.indexOf(this.formatSeparator)<0){const v=ht(t,c,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,s,{...i,...t,interpolationkey:h}):v}const g=h.split(this.formatSeparator),x=g.shift().trim(),j=g.join(this.formatSeparator).trim();return this.format(ht(t,c,x,this.options.keySeparator,this.options.ignoreJSONStructure),j,s,{...i,...t,interpolationkey:x})};this.resetRegExp();const p=(i==null?void 0:i.missingInterpolationHandler)||this.options.missingInterpolationHandler,m=((f=i==null?void 0:i.interpolation)==null?void 0:f.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>De(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?De(this.escape(h)):De(h)}].forEach(h=>{for(l=0;a=h.regex.exec(e);){const g=a[1].trim();if(o=u(g),o===void 0)if(typeof p=="function"){const j=p(e,a,i);o=S(j)?j:""}else if(i&&Object.prototype.hasOwnProperty.call(i,g))o="";else if(m){o=a[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${e}`),o="";else!S(o)&&!this.useRawValueToEscape&&(o=nt(o));const x=h.safeValue(o);if(e=e.replace(a[0],x),m?(h.regex.lastIndex+=o.length,h.regex.lastIndex-=a[0].length):h.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,a,o;const l=(c,u)=>{const p=this.nestingOptionsSeparator;if(c.indexOf(p)<0)return c;const m=c.split(new RegExp(`${p}[ ]*{`));let d=`{${m[1]}`;c=m[0],d=this.interpolate(d,o);const f=d.match(/'/g),h=d.match(/"/g);(((f==null?void 0:f.length)??0)%2===0&&!h||h.length%2!==0)&&(d=d.replace(/'/g,'"'));try{o=JSON.parse(d),u&&(o={...u,...o})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,g),`${c}${p}${d}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,c};for(;i=this.nestingRegexp.exec(e);){let c=[];o={...s},o=o.replace&&!S(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const p=i[1].split(this.formatSeparator).map(m=>m.trim());i[1]=p.shift(),c=p,u=!0}if(a=t(l.call(this,i[1].trim(),o),o),a&&i[0]===e&&!S(a))return a;S(a)||(a=nt(a)),a||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),a=""),u&&(a=c.reduce((p,m)=>this.format(p,m,s.lng,{...s,interpolationkey:i[1].trim()}),a.trim())),e=e.replace(i[0],a),this.regexp.lastIndex=0}return e}}const rn=n=>{let e=n.toLowerCase().trim();const t={};if(n.indexOf("(")>-1){const s=n.split("(");e=s[0].toLowerCase().trim();const i=s[1].substring(0,s[1].length-1);e==="currency"&&i.indexOf(":")<0?t.currency||(t.currency=i.trim()):e==="relativetime"&&i.indexOf(":")<0?t.range||(t.range=i.trim()):i.split(";").forEach(o=>{if(o){const[l,...c]=o.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),p=l.trim();t[p]||(t[p]=u),u==="false"&&(t[p]=!1),u==="true"&&(t[p]=!0),isNaN(u)||(t[p]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},de=n=>{const e={};return(t,s,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});const o=s+JSON.stringify(a);let l=e[o];return l||(l=n(Re(s),i),e[o]=l),l(t)}};class an{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=X.create("formatter"),this.options=e,this.formats={number:de((t,s)=>{const i=new Intl.NumberFormat(t,{...s});return a=>i.format(a)}),currency:de((t,s)=>{const i=new Intl.NumberFormat(t,{...s,style:"currency"});return a=>i.format(a)}),datetime:de((t,s)=>{const i=new Intl.DateTimeFormat(t,{...s});return a=>i.format(a)}),relativetime:de((t,s)=>{const i=new Intl.RelativeTimeFormat(t,{...s});return a=>i.format(a,s.range||"day")}),list:de((t,s)=>{const i=new Intl.ListFormat(t,{...s});return a=>i.format(a)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=de(t)}format(e,t,s){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=t.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){const l=a.findIndex(c=>c.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,c)=>{var m;const{formatName:u,formatOptions:p}=rn(c);if(this.formats[u]){let d=l;try{const f=((m=i==null?void 0:i.formatParams)==null?void 0:m[i.interpolationkey])||{},h=f.locale||f.lng||i.locale||i.lng||s;d=this.formats[u](l,h,{...p,...i,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${u}`);return l},e)}}const on=(n,e)=>{n.pending[e]!==void 0&&(delete n.pending[e],n.pendingCount--)};class ln extends Ae{constructor(e,t,s){var a,o;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=s,this.languageUtils=s.languageUtils,this.options=i,this.logger=X.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],(o=(a=this.backend)==null?void 0:a.init)==null||o.call(a,s,i.backend,i)}queueLoad(e,t,s,i){const a={},o={},l={},c={};return e.forEach(u=>{let p=!0;t.forEach(m=>{const d=`${u}|${m}`;!s.reload&&this.store.hasResourceBundle(u,m)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?o[d]===void 0&&(o[d]=!0):(this.state[d]=1,p=!1,o[d]===void 0&&(o[d]=!0),a[d]===void 0&&(a[d]=!0),c[m]===void 0&&(c[m]=!0)))}),p||(l[u]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(e,t,s){const i=e.split("|"),a=i[0],o=i[1];t&&this.emit("failedLoading",a,o,t),!t&&s&&this.store.addResourceBundle(a,o,s,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&s&&(this.state[e]=0);const l={};this.queue.forEach(c=>{Ws(c.loaded,[a],o),on(c,e),t&&c.errors.push(t),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{l[u]||(l[u]={});const p=c.loaded[u];p.length&&p.forEach(m=>{l[u][m]===void 0&&(l[u][m]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(e,t,s){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:s,tried:i,wait:a,callback:o});return}this.readingCalls++;const l=(u,p)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(u&&p&&i{this.read.call(this,e,t,s,i+1,a*2,o)},a);return}o(u,p)},c=this.backend[s].bind(this.backend);if(c.length===2){try{const u=c(e,t);u&&typeof u.then=="function"?u.then(p=>l(null,p)).catch(l):l(null,u)}catch(u){l(u)}return}return c(e,t,l)}prepareLoading(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();S(e)&&(e=this.languageUtils.toResolveHierarchy(e)),S(t)&&(t=[t]);const a=this.queueLoad(e,t,s,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach(o=>{this.loadOne(o)})}load(e,t,s){this.prepareLoading(e,t,{},s)}reload(e,t,s){this.prepareLoading(e,t,{reload:!0},s)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const s=e.split("|"),i=s[0],a=s[1];this.read(i,a,"read",void 0,void 0,(o,l)=>{o&&this.logger.warn(`${t}loading namespace ${a} for language ${i} failed`,o),!o&&l&&this.logger.log(`${t}loaded namespace ${a} for language ${i}`,l),this.loaded(e,o,l)})}saveMissing(e,t,s,i,a){var c,u,p,m,d;let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((u=(c=this.services)==null?void 0:c.utils)!=null&&u.hasLoadedNamespace&&!((m=(p=this.services)==null?void 0:p.utils)!=null&&m.hasLoadedNamespace(t))){this.logger.warn(`did not save key "${s}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if((d=this.backend)!=null&&d.create){const f={...o,isUpdate:a},h=this.backend.create.bind(this.backend);if(h.length<6)try{let g;h.length===5?g=h(e,t,s,i,f):g=h(e,t,s,i),g&&typeof g.then=="function"?g.then(x=>l(null,x)).catch(l):l(null,g)}catch(g){l(g)}else h(e,t,s,i,l,f)}!e||!e[0]||this.store.addResource(e[0],t,s,i)}}}const mt=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:n=>{let e={};if(typeof n[1]=="object"&&(e=n[1]),S(n[1])&&(e.defaultValue=n[1]),S(n[2])&&(e.tDescription=n[2]),typeof n[2]=="object"||typeof n[3]=="object"){const t=n[3]||n[2];Object.keys(t).forEach(s=>{e[s]=t[s]})}return e},interpolation:{escapeValue:!0,format:n=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),ft=n=>{var e,t;return S(n.ns)&&(n.ns=[n.ns]),S(n.fallbackLng)&&(n.fallbackLng=[n.fallbackLng]),S(n.fallbackNS)&&(n.fallbackNS=[n.fallbackNS]),((t=(e=n.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),typeof n.initImmediate=="boolean"&&(n.initAsync=n.initImmediate),n},Te=()=>{},cn=n=>{Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(t=>{typeof n[t]=="function"&&(n[t]=n[t].bind(n))})};class ve extends Ae{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ft(e),this.services={},this.logger=X,this.modules={external:[]},cn(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(s=t,t={}),t.defaultNS==null&&t.ns&&(S(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const i=mt();this.options={...i,...this.options,...ft(t)},this.options.interpolation={...i.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const a=p=>p?typeof p=="function"?new p:p:null;if(!this.options.isClone){this.modules.logger?X.init(a(this.modules.logger),this.options):X.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=an;const m=new ut(this.options);this.store=new ot(this.options.resources,this.options);const d=this.services;d.logger=X,d.resourceStore=this.store,d.languageUtils=m,d.pluralResolver=new sn(m,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(d.formatter=a(p),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new nn(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new ln(a(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(f){for(var h=arguments.length,g=new Array(h>1?h-1:0),x=1;x1?h-1:0),x=1;x{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,s||(s=Te),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(p=>{this[p]=function(){return e.store[p](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=function(){return e.store[p](...arguments),e}});const c=ge(),u=()=>{const p=(m,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(d),s(m,d)};if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),c}loadResources(e){var a,o;let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Te;const i=S(e)?e:this.language;if(typeof e=="function"&&(s=e),!this.options.resources||this.options.partialBundledLanguages){if((i==null?void 0:i.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const l=[],c=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(m=>{m!=="cimode"&&l.indexOf(m)<0&&l.push(m)})};i?c(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(p=>c(p)),(o=(a=this.options.preload)==null?void 0:a.forEach)==null||o.call(a,u=>c(u)),this.services.backendConnector.load(l,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(u)})}else s(null)}reloadResources(e,t,s){const i=ge();return typeof e=="function"&&(s=e,e=void 0),typeof t=="function"&&(s=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),s||(s=Te),this.services.backendConnector.reload(e,t,a=>{i.resolve(),s(a)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&Tt.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}changeLanguage(e,t){var s=this;this.isLanguageChangingTo=e;const i=ge();this.emit("languageChanging",e);const a=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},o=(c,u)=>{u?(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve(function(){return s.t(...arguments)}),t&&t(c,function(){return s.t(...arguments)})},l=c=>{var p,m;!e&&!c&&this.services.languageDetector&&(c=[]);const u=S(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),(m=(p=this.services.languageDetector)==null?void 0:p.cacheUserLanguage)==null||m.call(p,u)),this.loadResources(u,d=>{o(d,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e),i}getFixedT(e,t,s){var i=this;const a=function(o,l){let c;if(typeof l!="object"){for(var u=arguments.length,p=new Array(u>2?u-2:0),m=2;m`${c.keyPrefix}${d}${h}`):f=c.keyPrefix?`${c.keyPrefix}${d}${o}`:o,i.t(f,c)};return S(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=s,a}t(){var i;for(var e=arguments.length,t=new Array(e),s=0;s1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=t.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const o=(l,c)=>{const u=this.services.backendConnector.state[`${l}|${c}`];return u===-1||u===0||u===2};if(t.precheck){const l=t.precheck(this,o);if(l!==void 0)return l}return!!(this.hasResourceBundle(s,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(s,e)&&(!i||o(a,e)))}loadNamespaces(e,t){const s=ge();return this.options.ns?(S(e)&&(e=[e]),e.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{s.resolve(),t&&t(i)}),s):(t&&t(),Promise.resolve())}loadLanguages(e,t){const s=ge();S(e)&&(e=[e]);const i=this.options.preload||[],a=e.filter(o=>i.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return a.length?(this.options.preload=i.concat(a),this.loadResources(o=>{s.resolve(),t&&t(o)}),s):(t&&t(),Promise.resolve())}dir(e){var i,a;if(e||(e=this.resolvedLanguage||(((i=this.languages)==null?void 0:i.length)>0?this.languages[0]:this.language)),!e)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=((a=this.services)==null?void 0:a.languageUtils)||new ut(mt());return t.indexOf(s.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ve(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Te;const s=e.forkResourceStore;s&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},a=new ve(i);if((e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},s){const l=Object.keys(this.store.data).reduce((c,u)=>(c[u]={...this.store.data[u]},Object.keys(c[u]).reduce((p,m)=>(p[m]={...c[u][m]},p),{})),{});a.store=new ot(l,i),a.services.resourceStore=a.store}return a.translator=new Le(a.services,i),a.translator.on("*",function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),p=1;p{const n=I(e=>e.lang);return b.useEffect(()=>{A.changeLanguage(n)},[n]),null};var Oi="1.3.4";function _t(n,e,t){return Math.max(n,Math.min(e,t))}function Pi(n,e,t){return(1-t)*n+t*e}function Ii(n,e,t,s){return Pi(n,e,1-Math.exp(-t*s))}function Fi(n,e){return(n%e+e)%e}var Ai=class{constructor(){y(this,"isRunning",!1);y(this,"value",0);y(this,"from",0);y(this,"to",0);y(this,"currentTime",0);y(this,"lerp");y(this,"duration");y(this,"easing");y(this,"onUpdate")}advance(n){var t;if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=n;const s=_t(0,this.currentTime/this.duration,1);e=s>=1;const i=e?1:this.easing(s);this.value=this.from+(this.to-this.from)*i}else this.lerp?(this.value=Ii(this.value,this.to,this.lerp*60,n),Math.round(this.value)===this.to&&(this.value=this.to,e=!0)):(this.value=this.to,e=!0);e&&this.stop(),(t=this.onUpdate)==null||t.call(this,this.value,e)}stop(){this.isRunning=!1}fromTo(n,e,{lerp:t,duration:s,easing:i,onStart:a,onUpdate:o}){this.from=this.value=n,this.to=e,this.lerp=t,this.duration=s,this.easing=i,this.currentTime=0,this.isRunning=!0,a==null||a(),this.onUpdate=o}};function $i(n,e){let t;return function(...s){let i=this;clearTimeout(t),t=setTimeout(()=>{t=void 0,n.apply(i,s)},e)}}var Di=class{constructor(n,e,{autoResize:t=!0,debounce:s=250}={}){y(this,"width",0);y(this,"height",0);y(this,"scrollHeight",0);y(this,"scrollWidth",0);y(this,"debouncedResize");y(this,"wrapperResizeObserver");y(this,"contentResizeObserver");y(this,"resize",()=>{this.onWrapperResize(),this.onContentResize()});y(this,"onWrapperResize",()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)});y(this,"onContentResize",()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)});this.wrapper=n,this.content=e,t&&(this.debouncedResize=$i(this.resize,s),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){var n,e;(n=this.wrapperResizeObserver)==null||n.disconnect(),(e=this.contentResizeObserver)==null||e.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},Et=class{constructor(){y(this,"events",{})}emit(n,...e){var s;let t=this.events[n]||[];for(let i=0,a=t.length;i{var s;this.events[n]=(s=this.events[n])==null?void 0:s.filter(i=>e!==i)}}off(n,e){var t;this.events[n]=(t=this.events[n])==null?void 0:t.filter(s=>e!==s)}destroy(){this.events={}}},gt=100/6,ie={passive:!1},Mi=class{constructor(n,e={wheelMultiplier:1,touchMultiplier:1}){y(this,"touchStart",{x:0,y:0});y(this,"lastDelta",{x:0,y:0});y(this,"window",{width:0,height:0});y(this,"emitter",new Et);y(this,"onTouchStart",n=>{const{clientX:e,clientY:t}=n.targetTouches?n.targetTouches[0]:n;this.touchStart.x=e,this.touchStart.y=t,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:n})});y(this,"onTouchMove",n=>{const{clientX:e,clientY:t}=n.targetTouches?n.targetTouches[0]:n,s=-(e-this.touchStart.x)*this.options.touchMultiplier,i=-(t-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=t,this.lastDelta={x:s,y:i},this.emitter.emit("scroll",{deltaX:s,deltaY:i,event:n})});y(this,"onTouchEnd",n=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:n})});y(this,"onWheel",n=>{let{deltaX:e,deltaY:t,deltaMode:s}=n;const i=s===1?gt:s===2?this.window.width:1,a=s===1?gt:s===2?this.window.height:1;e*=i,t*=a,e*=this.options.wheelMultiplier,t*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:t,event:n})});y(this,"onWindowResize",()=>{this.window={width:window.innerWidth,height:window.innerHeight}});this.element=n,this.options=e,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,ie),this.element.addEventListener("touchstart",this.onTouchStart,ie),this.element.addEventListener("touchmove",this.onTouchMove,ie),this.element.addEventListener("touchend",this.onTouchEnd,ie)}on(n,e){return this.emitter.on(n,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,ie),this.element.removeEventListener("touchstart",this.onTouchStart,ie),this.element.removeEventListener("touchmove",this.onTouchMove,ie),this.element.removeEventListener("touchend",this.onTouchEnd,ie)}},xt=n=>Math.min(1,1.001-Math.pow(2,-10*n)),Bi=class{constructor({wrapper:n=window,content:e=document.documentElement,eventsTarget:t=n,smoothWheel:s=!0,syncTouch:i=!1,syncTouchLerp:a=.075,touchInertiaMultiplier:o=35,duration:l,easing:c,lerp:u=.1,infinite:p=!1,orientation:m="vertical",gestureOrientation:d="vertical",touchMultiplier:f=1,wheelMultiplier:h=1,autoResize:g=!0,prevent:x,virtualScroll:j,overscroll:v=!0,autoRaf:k=!1,anchors:_=!1,autoToggle:O=!1,allowNestedScroll:C=!1,__experimental__naiveDimensions:R=!1}={}){y(this,"_isScrolling",!1);y(this,"_isStopped",!1);y(this,"_isLocked",!1);y(this,"_preventNextNativeScrollEvent",!1);y(this,"_resetVelocityTimeout",null);y(this,"__rafID",null);y(this,"isTouching");y(this,"time",0);y(this,"userData",{});y(this,"lastVelocity",0);y(this,"velocity",0);y(this,"direction",0);y(this,"options");y(this,"targetScroll");y(this,"animatedScroll");y(this,"animate",new Ai);y(this,"emitter",new Et);y(this,"dimensions");y(this,"virtualScroll");y(this,"onScrollEnd",n=>{n instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&n.stopPropagation()});y(this,"dispatchScrollendEvent",()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))});y(this,"onTransitionEnd",n=>{if(n.propertyName.includes("overflow")){const e=this.isHorizontal?"overflow-x":"overflow-y",t=getComputedStyle(this.rootElement)[e];["hidden","clip"].includes(t)?this.stop():this.start()}});y(this,"onClick",n=>{const t=n.composedPath().find(s=>{var i,a,o;return s instanceof HTMLAnchorElement&&(((i=s.getAttribute("href"))==null?void 0:i.startsWith("#"))||((a=s.getAttribute("href"))==null?void 0:a.startsWith("/#"))||((o=s.getAttribute("href"))==null?void 0:o.startsWith("./#")))});if(t){const s=t.getAttribute("href");if(s){const i=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0;let a=`#${s.split("#")[1]}`;["#","/#","./#","#top","/#top","./#top"].includes(s)&&(a=0),this.scrollTo(a,i)}}});y(this,"onPointerDown",n=>{n.button===1&&this.reset()});y(this,"onVirtualScroll",n=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(n)===!1)return;const{deltaX:e,deltaY:t,event:s}=n;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:t,event:s}),s.ctrlKey||s.lenisStopPropagation)return;const i=s.type.includes("touch"),a=s.type.includes("wheel");this.isTouching=s.type==="touchstart"||s.type==="touchmove";const o=e===0&&t===0;if(this.options.syncTouch&&i&&s.type==="touchstart"&&o&&!this.isStopped&&!this.isLocked){this.reset();return}const c=this.options.gestureOrientation==="vertical"&&t===0||this.options.gestureOrientation==="horizontal"&&e===0;if(o||c)return;let u=s.composedPath();u=u.slice(0,u.indexOf(this.rootElement));const p=this.options.prevent;if(u.find(x=>{var j,v,k;return x instanceof HTMLElement&&(typeof p=="function"&&(p==null?void 0:p(x))||((j=x.hasAttribute)==null?void 0:j.call(x,"data-lenis-prevent"))||i&&((v=x.hasAttribute)==null?void 0:v.call(x,"data-lenis-prevent-touch"))||a&&((k=x.hasAttribute)==null?void 0:k.call(x,"data-lenis-prevent-wheel"))||this.options.allowNestedScroll&&this.checkNestedScroll(x,{deltaX:e,deltaY:t}))}))return;if(this.isStopped||this.isLocked){s.preventDefault();return}if(!(this.options.syncTouch&&i||this.options.smoothWheel&&a)){this.isScrolling="native",this.animate.stop(),s.lenisStopPropagation=!0;return}let d=t;this.options.gestureOrientation==="both"?d=Math.abs(t)>Math.abs(e)?t:e:this.options.gestureOrientation==="horizontal"&&(d=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&(this.animatedScroll>0&&this.animatedScroll0||this.animatedScroll===this.limit&&t<0))&&(s.lenisStopPropagation=!0),s.preventDefault();const f=i&&this.options.syncTouch,g=i&&s.type==="touchend"&&Math.abs(d)>5;g&&(d=this.velocity*this.options.touchInertiaMultiplier),this.scrollTo(this.targetScroll+d,{programmatic:!1,...f?{lerp:g?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})});y(this,"onNativeScroll",()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){const n=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-n,this.direction=Math.sign(this.animatedScroll-n),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}});y(this,"raf",n=>{const e=n-(this.time||n);this.time=n,this.animate.advance(e*.001),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))});window.lenisVersion=Oi,(!n||n===document.documentElement)&&(n=window),typeof l=="number"&&typeof c!="function"?c=xt:typeof c=="function"&&typeof l!="number"&&(l=1),this.options={wrapper:n,content:e,eventsTarget:t,smoothWheel:s,syncTouch:i,syncTouchLerp:a,touchInertiaMultiplier:o,duration:l,easing:c,lerp:u,infinite:p,gestureOrientation:d,orientation:m,touchMultiplier:f,wheelMultiplier:h,autoResize:g,prevent:x,virtualScroll:j,overscroll:v,autoRaf:k,anchors:_,autoToggle:O,allowNestedScroll:C,__experimental__naiveDimensions:R},this.dimensions=new Di(n,e,{autoResize:g}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new Mi(t,{touchMultiplier:f,wheelMultiplier:h}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0}),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this.__rafID&&cancelAnimationFrame(this.__rafID)}on(n,e){return this.emitter.on(n,e)}off(n,e){return this.emitter.off(n,e)}setScroll(n){this.isHorizontal?this.options.wrapper.scrollTo({left:n,behavior:"instant"}):this.options.wrapper.scrollTo({top:n,behavior:"instant"})}resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}scrollTo(n,{offset:e=0,immediate:t=!1,lock:s=!1,duration:i=this.options.duration,easing:a=this.options.easing,lerp:o=this.options.lerp,onStart:l,onComplete:c,force:u=!1,programmatic:p=!0,userData:m}={}){if(!((this.isStopped||this.isLocked)&&!u)){if(typeof n=="string"&&["top","left","start"].includes(n))n=0;else if(typeof n=="string"&&["bottom","right","end"].includes(n))n=this.limit;else{let d;if(typeof n=="string"?d=document.querySelector(n):n instanceof HTMLElement&&(n!=null&&n.nodeType)&&(d=n),d){if(this.options.wrapper!==window){const h=this.rootElement.getBoundingClientRect();e-=this.isHorizontal?h.left:h.top}const f=d.getBoundingClientRect();n=(this.isHorizontal?f.left:f.top)+this.animatedScroll}}if(typeof n=="number"){if(n+=e,n=Math.round(n),this.options.infinite){if(p){this.targetScroll=this.animatedScroll=this.scroll;const d=n-this.animatedScroll;d>this.limit/2?n=n-this.limit:d<-this.limit/2&&(n=n+this.limit)}}else n=_t(0,n,this.limit);if(n===this.targetScroll){l==null||l(this),c==null||c(this);return}if(this.userData=m??{},t){this.animatedScroll=this.targetScroll=n,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),c==null||c(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}p||(this.targetScroll=n),typeof i=="number"&&typeof a!="function"?a=xt:typeof a=="function"&&typeof i!="number"&&(i=1),this.animate.fromTo(this.animatedScroll,n,{duration:i,easing:a,lerp:o,onStart:()=>{s&&(this.isLocked=!0),this.isScrolling="smooth",l==null||l(this)},onUpdate:(d,f)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=d-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=d,this.setScroll(this.scroll),p&&(this.targetScroll=d),f||this.emit(),f&&(this.reset(),this.emit(),c==null||c(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(n,{deltaX:e,deltaY:t}){const s=Date.now(),i=n._lenis??(n._lenis={});let a,o,l,c,u,p,m,d;const f=this.options.gestureOrientation;if(s-(i.time??0)>2e3){i.time=Date.now();const O=window.getComputedStyle(n);i.computedStyle=O;const C=O.overflowX,R=O.overflowY;if(a=["auto","overlay","scroll"].includes(C),o=["auto","overlay","scroll"].includes(R),i.hasOverflowX=a,i.hasOverflowY=o,!a&&!o||f==="vertical"&&!o||f==="horizontal"&&!a)return!1;u=n.scrollWidth,p=n.scrollHeight,m=n.clientWidth,d=n.clientHeight,l=u>m,c=p>d,i.isScrollableX=l,i.isScrollableY=c,i.scrollWidth=u,i.scrollHeight=p,i.clientWidth=m,i.clientHeight=d}else l=i.isScrollableX,c=i.isScrollableY,a=i.hasOverflowX,o=i.hasOverflowY,u=i.scrollWidth,p=i.scrollHeight,m=i.clientWidth,d=i.clientHeight;if(!a&&!o||!l&&!c||f==="vertical"&&(!o||!c)||f==="horizontal"&&(!a||!l))return!1;let h;if(f==="horizontal")h="x";else if(f==="vertical")h="y";else{const O=e!==0,C=t!==0;O&&a&&l&&(h="x"),C&&o&&c&&(h="y")}if(!h)return!1;let g,x,j,v,k;if(h==="x")g=n.scrollLeft,x=u-m,j=e,v=a,k=l;else if(h==="y")g=n.scrollTop,x=p-d,j=t,v=o,k=c;else return!1;return(j>0?g0)&&v&&k}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){const n=this.options.wrapper;return this.isHorizontal?n.scrollX??n.scrollLeft:n.scrollY??n.scrollTop}get scroll(){return this.options.infinite?Fi(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(n){this._isScrolling!==n&&(this._isScrolling=n,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(n){this._isStopped!==n&&(this._isStopped=n,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(n){this._isLocked!==n&&(this._isLocked=n,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let n="lenis";return this.options.autoToggle&&(n+=" lenis-autoToggle"),this.isStopped&&(n+=" lenis-stopped"),this.isLocked&&(n+=" lenis-locked"),this.isScrolling&&(n+=" lenis-scrolling"),this.isScrolling==="smooth"&&(n+=" lenis-smooth"),n}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}},Vi=class{constructor(n){y(this,"listeners",[]);this.state=n}set(n){this.state=n;for(let e of this.listeners)e(this.state)}subscribe(n){return this.listeners=[...this.listeners,n],()=>{this.listeners=this.listeners.filter(e=>e!==n)}}get(){return this.state}};function zi(n){const[e,t]=b.useState(n.get());return b.useEffect(()=>n.subscribe(s=>t(s)),[n]),e}var Rt=b.createContext(null),Ve=new Vi(null),Hi=b.forwardRef(({children:n,root:e=!1,options:t={},className:s,autoRaf:i=!0,style:a,props:o},l)=>{const c=b.useRef(null),u=b.useRef(null),[p,m]=b.useState(void 0);b.useImperativeHandle(l,()=>({wrapper:c.current,content:u.current,lenis:p}),[p]),b.useEffect(()=>{const g=new Bi({...t,...!e&&{wrapper:c.current,content:u.current},autoRaf:(t==null?void 0:t.autoRaf)??i});return m(g),()=>{g.destroy(),m(void 0)}},[e,JSON.stringify(t)]);const d=b.useRef([]),f=b.useCallback((g,x)=>{d.current.push({callback:g,priority:x}),d.current.sort((j,v)=>j.priority-v.priority)},[]),h=b.useCallback(g=>{d.current=d.current.filter(x=>x.callback!==g)},[]);return b.useEffect(()=>{if(e&&p)return Ve.set({lenis:p,addCallback:f,removeCallback:h}),()=>Ve.set(null)},[e,p,f,h]),b.useEffect(()=>{if(!p)return;const g=x=>{var j;for(let v=0;v{p.off("scroll",g)}},[p]),r.jsx(Rt.Provider,{value:{lenis:p,addCallback:f,removeCallback:h},children:e?n:r.jsx("div",{ref:c,className:s,style:a,...o,children:r.jsx("div",{ref:u,children:n})})})}),Ki={};function Gi(n,e=[],t=0){const s=b.useContext(Rt),i=zi(Ve),a=s??i??Ki,{lenis:o,addCallback:l,removeCallback:c}=a;return b.useEffect(()=>{},[o,l,c,t,...e]),o}function Ui(){return r.jsxs(Hi,{root:!0,options:{lerp:.1},children:[r.jsx(ts,{}),r.jsxs("main",{className:"flex flex-col min-h-screen",children:[r.jsx(Li,{}),r.jsx("div",{className:"flex-auto",children:r.jsx(Ms,{})})]}),r.jsx(ss,{})]})}const D=({className:n})=>r.jsx("div",{className:Q("container py-32",n),children:r.jsx("h1",{className:"text-5xl text-center",children:"Oops, something went wrong"})}),$=n=>{const e=Gi();b.useEffect(()=>{e&&e.scrollTo(0,{lerp:.3,duration:.3})},[e,n])};function Wi(){return $(),r.jsxs("div",{className:"flex flex-col",children:[r.jsx(ns,{}),r.jsx(is,{}),r.jsx(rs,{}),r.jsx(as,{}),r.jsx(os,{}),r.jsx(ls,{}),r.jsx(cs,{}),r.jsx(us,{})]})}const qi=w.object({type:w.string(),company_name:w.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),representative_name:w.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:w.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:w.string().min(1,{message:"Укажите количество участников"}),country:w.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email_address:w.string().email({message:"Укажите корректный email"}),phone_number:w.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:w.string().optional(),meeting_objective:w.string().min(3,{message:"Укажите цель встречи"}),proposal_description:w.string().optional(),government_agency:w.string().optional(),sector_industry:w.string().optional(),key_services:w.string().optional(),government_experience:w.string().optional(),preferred_meeting_datetime:w.string().optional(),meeting_mode:w.string().optional(),language_preference:w.string().optional(),technical_requirements:w.string().optional(),company_profile:w.custom(n=>n instanceof File,{message:"Выберите корректный файл"}).refine(n=>n&&["image/jpeg","image/png","application/pdf"].includes(n.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),proposal_presentation:w.custom(n=>n instanceof File,{message:"Выберите корректный файл"}).refine(n=>n&&["image/jpeg","image/png","application/pdf"].includes(n.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),relevant_certification:w.custom(n=>n instanceof File,{message:"Выберите корректный файл"}).refine(n=>n&&["image/jpeg","image/png","application/pdf"].includes(n.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional()}),Yi={type:"B2B",company_name:"",representative_name:"",job_title:"",participants_number:"",country:"",email_address:"",phone_number:"",website:"",meeting_objective:"",proposal_description:"",government_agency:"",sector_industry:"",key_services:"",government_experience:"",preferred_meeting_datetime:"",meeting_mode:"",language_preference:"",technical_requirements:""};function Ji(n){const e=n+"CollectionProvider",[t,s]=Oe(e),[i,a]=t(e,{collectionRef:{current:null},itemMap:new Map}),o=f=>{const{scope:h,children:g}=f,x=le.useRef(null),j=le.useRef(new Map).current;return r.jsx(i,{scope:h,itemMap:j,collectionRef:x,children:g})};o.displayName=e;const l=n+"CollectionSlot",c=le.forwardRef((f,h)=>{const{scope:g,children:x}=f,j=a(l,g),v=be(h,j.collectionRef);return r.jsx(Ze,{ref:v,children:x})});c.displayName=l;const u=n+"CollectionItemSlot",p="data-radix-collection-item",m=le.forwardRef((f,h)=>{const{scope:g,children:x,...j}=f,v=le.useRef(null),k=be(h,v),_=a(u,g);return le.useEffect(()=>(_.itemMap.set(v,{ref:v,...j}),()=>void _.itemMap.delete(v))),r.jsx(Ze,{[p]:"",ref:k,children:x})});m.displayName=u;function d(f){const h=a(n+"CollectionConsumer",f);return le.useCallback(()=>{const x=h.collectionRef.current;if(!x)return[];const j=Array.from(x.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((_,O)=>j.indexOf(_.ref.current)-j.indexOf(O.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:o,Slot:c,ItemSlot:m},d,s]}var Xi=b.createContext(void 0);function Ct(n){const e=b.useContext(Xi);return n||e||"ltr"}var Me="rovingFocusGroup.onEntryFocus",Qi={bubbles:!1,cancelable:!0},$e="RovingFocusGroup",[ze,Lt,Zi]=Ji($e),[er,Ot]=Oe($e,[Zi]),[tr,sr]=er($e),Pt=b.forwardRef((n,e)=>r.jsx(ze.Provider,{scope:n.__scopeRovingFocusGroup,children:r.jsx(ze.Slot,{scope:n.__scopeRovingFocusGroup,children:r.jsx(nr,{...n,ref:e})})}));Pt.displayName=$e;var nr=b.forwardRef((n,e)=>{const{__scopeRovingFocusGroup:t,orientation:s,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:p=!1,...m}=n,d=b.useRef(null),f=be(e,d),h=Ct(a),[g=null,x]=vt({prop:o,defaultProp:l,onChange:c}),[j,v]=b.useState(!1),k=ds(u),_=Lt(t),O=b.useRef(!1),[C,R]=b.useState(0);return b.useEffect(()=>{const E=d.current;if(E)return E.addEventListener(Me,k),()=>E.removeEventListener(Me,k)},[k]),r.jsx(tr,{scope:t,orientation:s,dir:h,loop:i,currentTabStopId:g,onItemFocus:b.useCallback(E=>x(E),[x]),onItemShiftTab:b.useCallback(()=>v(!0),[]),onFocusableItemAdd:b.useCallback(()=>R(E=>E+1),[]),onFocusableItemRemove:b.useCallback(()=>R(E=>E-1),[]),children:r.jsx(je.div,{tabIndex:j||C===0?-1:0,"data-orientation":s,...m,ref:f,style:{outline:"none",...n.style},onMouseDown:ne(n.onMouseDown,()=>{O.current=!0}),onFocus:ne(n.onFocus,E=>{const W=!O.current;if(E.target===E.currentTarget&&W&&!j){const ee=new CustomEvent(Me,Qi);if(E.currentTarget.dispatchEvent(ee),!ee.defaultPrevented){const F=_().filter(B=>B.focusable),M=F.find(B=>B.active),Se=F.find(B=>B.id===g),Y=[M,Se,...F].filter(Boolean).map(B=>B.ref.current);At(Y,p)}}O.current=!1}),onBlur:ne(n.onBlur,()=>v(!1))})})}),It="RovingFocusGroupItem",Ft=b.forwardRef((n,e)=>{const{__scopeRovingFocusGroup:t,focusable:s=!0,active:i=!1,tabStopId:a,...o}=n,l=ps(),c=a||l,u=sr(It,t),p=u.currentTabStopId===c,m=Lt(t),{onFocusableItemAdd:d,onFocusableItemRemove:f}=u;return b.useEffect(()=>{if(s)return d(),()=>f()},[s,d,f]),r.jsx(ze.ItemSlot,{scope:t,id:c,focusable:s,active:i,children:r.jsx(je.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...o,ref:e,onMouseDown:ne(n.onMouseDown,h=>{s?u.onItemFocus(c):h.preventDefault()}),onFocus:ne(n.onFocus,()=>u.onItemFocus(c)),onKeyDown:ne(n.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){u.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const g=ar(h,u.orientation,u.dir);if(g!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let j=m().filter(v=>v.focusable).map(v=>v.ref.current);if(g==="last")j.reverse();else if(g==="prev"||g==="next"){g==="prev"&&j.reverse();const v=j.indexOf(h.currentTarget);j=u.loop?or(j,v+1):j.slice(v+1)}setTimeout(()=>At(j))}})})})});Ft.displayName=It;var ir={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function rr(n,e){return e!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function ar(n,e,t){const s=rr(n.key,t);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return ir[s]}function At(n,e=!1){const t=document.activeElement;for(const s of n)if(s===t||(s.focus({preventScroll:e}),document.activeElement!==t))return}function or(n,e){return n.map((t,s)=>n[(e+s)%n.length])}var lr=Pt,cr=Ft;function ur(n){const e=b.useRef({value:n,previous:n});return b.useMemo(()=>(e.current.value!==n&&(e.current.previous=e.current.value,e.current.value=n),e.current.previous),[n])}var qe="Radio",[dr,$t]=Oe(qe),[pr,hr]=dr(qe),Dt=b.forwardRef((n,e)=>{const{__scopeRadio:t,name:s,checked:i=!1,required:a,disabled:o,value:l="on",onCheck:c,form:u,...p}=n,[m,d]=b.useState(null),f=be(e,x=>d(x)),h=b.useRef(!1),g=m?u||!!m.closest("form"):!0;return r.jsxs(pr,{scope:t,checked:i,disabled:o,children:[r.jsx(je.button,{type:"button",role:"radio","aria-checked":i,"data-state":Vt(i),"data-disabled":o?"":void 0,disabled:o,value:l,...p,ref:f,onClick:ne(n.onClick,x=>{i||c==null||c(),g&&(h.current=x.isPropagationStopped(),h.current||x.stopPropagation())})}),g&&r.jsx(mr,{control:m,bubbles:!h.current,name:s,value:l,checked:i,required:a,disabled:o,form:u,style:{transform:"translateX(-100%)"}})]})});Dt.displayName=qe;var Mt="RadioIndicator",Bt=b.forwardRef((n,e)=>{const{__scopeRadio:t,forceMount:s,...i}=n,a=hr(Mt,t);return r.jsx(hs,{present:s||a.checked,children:r.jsx(je.span,{"data-state":Vt(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:e})})});Bt.displayName=Mt;var mr=n=>{const{control:e,checked:t,bubbles:s=!0,...i}=n,a=b.useRef(null),o=ur(t),l=ms(e);return b.useEffect(()=>{const c=a.current,u=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(u,"checked").set;if(o!==t&&m){const d=new Event("click",{bubbles:s});m.call(c,t),c.dispatchEvent(d)}},[o,t,s]),r.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:t,...i,tabIndex:-1,ref:a,style:{...n.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Vt(n){return n?"checked":"unchecked"}var fr=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ye="RadioGroup",[gr,sa]=Oe(Ye,[Ot,$t]),zt=Ot(),Ht=$t(),[xr,br]=gr(Ye),Kt=b.forwardRef((n,e)=>{const{__scopeRadioGroup:t,name:s,defaultValue:i,value:a,required:o=!1,disabled:l=!1,orientation:c,dir:u,loop:p=!0,onValueChange:m,...d}=n,f=zt(t),h=Ct(u),[g,x]=vt({prop:a,defaultProp:i,onChange:m});return r.jsx(xr,{scope:t,name:s,required:o,disabled:l,value:g,onValueChange:x,children:r.jsx(lr,{asChild:!0,...f,orientation:c,dir:h,loop:p,children:r.jsx(je.div,{role:"radiogroup","aria-required":o,"aria-orientation":c,"data-disabled":l?"":void 0,dir:h,...d,ref:e})})})});Kt.displayName=Ye;var Gt="RadioGroupItem",Ut=b.forwardRef((n,e)=>{const{__scopeRadioGroup:t,disabled:s,...i}=n,a=br(Gt,t),o=a.disabled||s,l=zt(t),c=Ht(t),u=b.useRef(null),p=be(e,u),m=a.value===i.value,d=b.useRef(!1);return b.useEffect(()=>{const f=g=>{fr.includes(g.key)&&(d.current=!0)},h=()=>d.current=!1;return document.addEventListener("keydown",f),document.addEventListener("keyup",h),()=>{document.removeEventListener("keydown",f),document.removeEventListener("keyup",h)}},[]),r.jsx(cr,{asChild:!0,...l,focusable:!o,active:m,children:r.jsx(Dt,{disabled:o,required:a.required,checked:m,...c,...i,name:a.name,ref:p,onCheck:()=>a.onValueChange(i.value),onKeyDown:ne(f=>{f.key==="Enter"&&f.preventDefault()}),onFocus:ne(i.onFocus,()=>{var f;d.current&&((f=u.current)==null||f.click())})})})});Ut.displayName=Gt;var vr="RadioGroupIndicator",yr=b.forwardRef((n,e)=>{const{__scopeRadioGroup:t,...s}=n,i=Ht(t);return r.jsx(Bt,{...i,...s,ref:e})});yr.displayName=vr;var Wt=Kt,qt=Ut;const ye=b.forwardRef(({className:n,...e},t)=>r.jsx(Wt,{className:Q("grid gap-2",n),...e,ref:t}));ye.displayName=Wt.displayName;const se=b.forwardRef(({className:n,...e},t)=>r.jsx(qt,{ref:t,className:Q(e.checked?"border-primary after:bg-opacity-1":"border-on_surface bg-transparent after:bg-opacity-0","size-5 rounded-full border-[2px] after:size-[9px] after:bg-primary before:scale-0 hover:before:scale-100 before:size-10 before:rounded-full before:transition-all before:absolute before:-top-3 before:-left-3 before:bg-on_surface/[8%] duration-300 after:rounded-full flex relative items-center justify-center text-primary focus:outline-none focus-visible:ring-1 focus-visible:ring-ring transition-all disabled:cursor-not-allowed disabled:opacity-50",n),...e}));se.displayName=qt.displayName;const te=[{h2:"Информация об экспоненте:",data:[{label:"Название компании/организации"},{label:"Имя представителя"},{label:"Название должности/позиция"},{label:"Количество участников"},{label:"Страна"},{label:"Email адрес"},{label:"Номер телефона"},{label:"Веб-сайт"}]},{h2:"Applicant Information:",data:[{label:"Company/Organization Name"},{label:"Name of Representative"},{label:"Job title/Position"},{label:"Number of the participants"},{label:"Country"},{label:"Email"},{label:"Phone number"},{label:"Website"}]}],re=[{h2:"Цели встречи:",secondH2:"Информация о компании/организации:",data:[{label:"Основная цель встречи"},{label:"Краткое описание вашего предложения/проекта/запроса"},{label:"Соответствующее государственное учреждение/департамент"},{label:"Отраслевая промышленность"},{label:"Ключевые услуги/продукты"},{label:"Предыдущий опыт работы с правительствами (если применимо)"}]},{h2:"Meeting Purpose: ",secondH2:"Company/Organization Profile:",data:[{label:"Primary objective of the meeting"},{label:"Brief description of your proposal/project/request"},{label:"Relevant government agency/department"},{label:"Sector Industry "},{label:"Key Services/Products"},{label:"Previous Experience working with Governments (if applicable)"}]}],J=[{h2:"Логистика встречи:",secondH2:"Логистика встречи:",subtitle:"(Пожалуйста приложите следующие документы, если это необходимо)",data:[{label:"Предпочтительная дата и время"},{label:"Предпочтительный способ проведения встречи (лично, виртуально (через zoom/ teams/другое), гибридный)"},{label:"Предпочитаемый язык (английский, туркменский, русский, другой)"},{label:"Дополнительные технические или логистические требования (например, аудио-видео оборудование, переводчики и т.д.)"},{label:"Название компании/организации"},{label:"Предложение/презентация"},{label:"Соответствующие сертификаты/лицензии"}],button:"Отправить"},{h2:"Приложения:",secondH2:"Attachments",subtitle:"(Please attach the following documents as applicable)",data:[{label:"Preferred date and time for the meeting"},{label:"Preferred mode of meeting (in-person, virtual (via zoom/teams/other), hybrid)"},{label:"Language preference (English, turkmen, Russian, other)"},{label:"Additional technical or logistical requirements (e.g. AV equipment, interpreters, etc)"},{label:"Company/organization profile"},{label:"Proposal presentation"},{label:"Relevant certification/licenses"}],button:"Send"}],jr=({handleNext:n})=>{$();const{control:e,formState:t}=He(),s=I(i=>i.lang);return r.jsxs(we.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:"100%",transition:{duration:.2}},className:"w-full",children:[r.jsx("h2",{className:"h2 mb-8",children:te[N(s)].h2}),r.jsxs("div",{className:"flex flex-col gap-8",children:[r.jsx(_e,{defaultValue:1,control:e,name:"type",render:({field:i})=>r.jsxs(K,{className:"space-y-3",children:[r.jsx(G,{className:"text-xl",children:s===ae.RU?"Тип:":"Type:"}),r.jsx(U,{children:r.jsxs(ye,{onValueChange:i.onChange,defaultValue:i.value,className:"flex flex-col space-y-4",children:[r.jsxs(K,{className:"flex items-center space-x-3 space-y-0",children:[r.jsx(U,{children:r.jsx(se,{value:"B2B",checked:i.value==="B2B"})}),r.jsx(G,{className:"text-base",children:"B2B"})]}),r.jsxs(K,{className:"flex items-center space-x-3 space-y-0",children:[r.jsx(U,{children:r.jsx(se,{value:"B2G",checked:i.value==="B2G"})}),r.jsx(G,{className:"text-base",children:"B2G"})]})]})})]})}),r.jsx(T,{control:e,name:"company_name",error:t.errors.company_name,placeholder:"",label:te[N(s)].data[0].label}),r.jsx(T,{control:e,name:"representative_name",error:t.errors.representative_name,placeholder:"",label:te[N(s)].data[1].label}),r.jsx(T,{control:e,name:"job_title",error:t.errors.job_title,placeholder:"",label:te[N(s)].data[2].label}),r.jsx(T,{control:e,name:"participants_number",error:t.errors.participants_number,placeholder:"",label:te[N(s)].data[3].label}),r.jsx(T,{control:e,name:"country",error:t.errors.country,placeholder:"",label:te[N(s)].data[4].label}),r.jsx(T,{control:e,name:"email_address",error:t.errors.email_address,placeholder:"",label:te[N(s)].data[5].label}),r.jsx(T,{control:e,name:"phone_number",error:t.errors.phone_number,placeholder:"",label:te[N(s)].data[6].label}),r.jsx(T,{control:e,name:"website",placeholder:"",label:te[N(s)].data[7].label})]}),r.jsx(z,{variant:"secondary",type:"button",onClick:n,className:"w-full mt-10",children:s===ae.RU?"Далее":"Next"})]})},wr=({handleNext:n,handlePrev:e})=>{$();const t=I(a=>a.lang),{control:s,formState:i}=He();return r.jsxs(we.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},exit:{opacity:0,y:100},children:[r.jsx("h2",{className:"h2 mb-8",children:re[N(t)].h2}),r.jsxs("div",{className:"flex flex-col gap-8",children:[r.jsx(T,{control:s,name:"meeting_objective",error:i.errors.meeting_objective,placeholder:"",label:re[N(t)].data[0].label}),r.jsx(T,{control:s,name:"proposal_description",error:i.errors.proposal_description,placeholder:"",label:re[N(t)].data[1].label}),r.jsx(T,{control:s,name:"government_agency",error:i.errors.government_agency,placeholder:"",label:re[N(t)].data[2].label}),r.jsx("h2",{className:"h2 mt-4",children:re[N(t)].secondH2}),r.jsx(T,{control:s,name:"sector_industry",error:i.errors.sector_industry,placeholder:"",label:re[N(t)].data[3].label}),r.jsx(T,{control:s,name:"key_services",error:i.errors.key_services,placeholder:"",label:re[N(t)].data[4].label}),r.jsx(T,{control:s,name:"government_experience",error:i.errors.government_experience,placeholder:"",label:re[N(t)].data[5].label})]}),r.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[r.jsx(z,{type:"button",onClick:e,variant:"outline",className:"text-on_surface",children:t===ae.RU?"Назад":"Back"}),r.jsx(z,{variant:"secondary",type:"button",onClick:n,className:"w-full",children:t===ae.RU?"Далее":"Next"})]})]})},Sr=({handlePrev:n})=>{$();const{control:e,formState:t}=He(),s=I(i=>i.lang);return r.jsxs(we.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},transition:{duration:1},children:[r.jsx("h2",{className:"h2 mb-8",children:J[N(s)].h2}),r.jsxs("div",{className:"flex flex-col gap-6",children:[r.jsx(T,{control:e,name:"preferred_meeting_datetime",error:t.errors.preferred_meeting_datetime,placeholder:"",label:J[N(s)].data[0].label}),r.jsx(T,{control:e,name:"preferred_mode",error:t.errors.preferred_mode,placeholder:"",label:J[N(s)].data[1].label}),r.jsx(T,{control:e,name:"language_preference",error:t.errors.language_preference,placeholder:"",label:J[N(s)].data[2].label}),r.jsx(T,{control:e,name:"additional_technical",error:t.errors.additional_technical,placeholder:"",label:J[N(s)].data[3].label})]}),r.jsxs("div",{className:"flex flex-col gap-8",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"h2 mt-10",children:J[N(s)].secondH2}),r.jsx("h5",{className:"text-on_surface_v",children:J[N(s)].subtitle})]}),r.jsx(T,{control:e,name:"company_profile",label:J[N(s)].data[4].label,type:"file",textDark:!0}),r.jsx(T,{control:e,name:"proposal_presentation",label:J[N(s)].data[5].label,type:"file",textDark:!0}),r.jsx(T,{control:e,name:"relevant_certification",label:J[N(s)].data[6].label,type:"file",textDark:!0})]}),r.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[r.jsx(z,{type:"button",onClick:n,variant:"outline",className:"text-on_surface",children:s===ae.RU?"Назад":"Back"}),r.jsx(z,{disabled:t.isSubmitting,type:"submit",className:"w-full",children:t.isSubmitting?r.jsx(Ke,{className:"animate-spin"}):J[N(s)].button})]})]})},kr=({stage:n,setStage:e,success:t,setSuccess:s})=>{const i=Pe({resolver:Ie(qi),defaultValues:Yi,mode:"onChange"}),a=u=>{switch(u){case 1:return["type","company_name","representative_name","job_title","participants_number","country","email_address","phone_number","website"];case 2:return["meeting_objective","proposal_description","government_agency","sector_industry","key_services","government_experience"];case 3:return["preferred_meeting_datetime","meeting_mode","language_preference","technical_requirements","company_profile","proposal_presentation","relevant_certification"];default:return[]}},o=async()=>{const u=a(n);await i.trigger(u)&&e(m=>m+1)},l=()=>e(u=>u-1),c=async u=>{try{const p=new FormData;Object.entries(u).forEach(([d,f])=>{(f instanceof File||f!==void 0)&&p.append(d,f)}),(await fs.post("https://turkmentextile.turkmenexpo.com/app/api/v1/form",p,{headers:{"Content-Type":"multipart/form-data"}})).status===201&&s(!0)}catch(p){console.error("Ошибка при отправке B2B формы:",p)}};return r.jsx(Fe,{...i,children:r.jsx("form",{onSubmit:i.handleSubmit(c),children:r.jsxs("div",{className:"relative",children:[r.jsx(pe,{children:n===1&&r.jsx(jr,{handleNext:o})}),r.jsx(pe,{children:n===2&&r.jsx(wr,{handleNext:o,handlePrev:l})}),r.jsx(pe,{children:n===3&&t===!1&&r.jsx(Sr,{handlePrev:l})}),t&&r.jsx(Ge,{})]})})})};function Nr(){$();const n=I(a=>a.lang),[e,t]=b.useState(1),[s,i]=b.useState(!1);return r.jsxs("div",{className:"pb-[120px]",children:[r.jsx(ce,{title:n===ae.RU?"B2B | B2G встречи":"B2B | B2G meetings"}),!s&&e!==0&&r.jsx(gs,{stage:e}),r.jsx("div",{className:"max-w-[808px] md:mx-auto mx-5",children:r.jsx(kr,{success:s,setSuccess:i,stage:e,setStage:t})})]})}function Tr(){$();const n=I(e=>e.lang);return r.jsxs("div",{className:Q(""),children:[r.jsx(ce,{title:n===ae.RU?"О выставке":"About exhibition"}),r.jsx(xs,{}),r.jsx(bs,{}),r.jsx(vs,{}),r.jsx(ys,{}),r.jsx(js,{})]})}const _r=w.object({company_name:w.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:w.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:w.string().min(3,{message:"Должность должна быть не менее 3 символов"}),country:w.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:w.string().email({message:"Укажите корректный email"}),phone:w.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:w.string().optional(),visa_support:w.string().optional()}),Er={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""},L=[{cover:"Забронировать стенд",h2:"Выберите один из вариантов:",radio:"Необорудованная площадь",radio_2:"Оборудованная площадь",label_1:"Название компании/организации",label_2:"Имя представителя",label_3:"Название должности/позиция",number_of_participants:"Количество участников",label_4:"Страна",label_5:"Email адрес",label_6:"Номер телефона",label_7:"Веб-сайт",visa:"Визовая поддержка:",visa_radio:"Да",visa_radio_2:"Нет",button:"Отправить"},{cover:"Book a stand:",h2:"Select one of the options:",radio:"Stand space only",radio_2:"Prefabricated stand",label_1:"Company/Organization Name",label_2:"Name of Representative",label_3:"Job title/Position",number_of_participants:"Number of the participants",label_4:"Country",label_5:"Email",label_6:"Phone number",label_7:"Website",visa:"Visa support:",visa_radio:"Yes",visa_radio_2:"No",button:"Send"}];function Rr(){$();const n=I(o=>o.lang),[e,t]=b.useState(!1),s=Pe({resolver:Ie(_r),defaultValues:Er}),i=async o=>{try{await ws(o)&&t(!0)}catch(l){console.error("POST sponsor error",l)}},{errors:a}=s.formState;return r.jsxs("div",{children:[r.jsx(ce,{title:n===ae.RU?"Стать спонсором":"Become a sponsor"}),r.jsx(pe,{children:!e&&r.jsx(Fe,{...s,children:r.jsxs(we.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] mx-auto px-5 md:mt-20 mt-10 mb-20 md:mb-[120px] flex flex-col gap-8",onSubmit:s.handleSubmit(i),children:[r.jsx(T,{label:L[N(n)].label_1,name:"company_name",control:s.control,error:a.company_name}),r.jsx(T,{label:L[N(n)].label_2,name:"rep_name",control:s.control,error:a.rep_name}),r.jsx(T,{label:L[N(n)].label_3,name:"job_title",control:s.control,error:a.job_title}),r.jsx(T,{label:L[N(n)].label_4,name:"country",control:s.control,error:a.country}),r.jsx(T,{label:L[N(n)].label_5,name:"email",control:s.control,error:a.email}),r.jsx(T,{label:L[N(n)].label_6,name:"phone",control:s.control,error:a.phone}),r.jsx(T,{label:L[N(n)].label_7,name:"website",control:s.control}),r.jsx(_e,{control:s.control,name:"visa_support",render:({field:o})=>r.jsxs(K,{className:"space-y-5",children:[r.jsx(G,{className:"text-xl",children:L[N(n)].visa}),r.jsx(U,{children:r.jsxs(ye,{onValueChange:o.onChange,defaultValue:o.value,className:"flex flex-col space-y-4 ml-3",children:[r.jsxs(K,{className:"flex items-center space-x-5 space-y-0",children:[r.jsx(U,{children:r.jsx(se,{value:"yes",checked:o.value==="yes"})}),r.jsx(G,{className:"text-base",children:L[N(n)].visa_radio})]}),r.jsxs(K,{className:"flex items-center space-x-5 space-y-0 ",children:[r.jsx(U,{children:r.jsx(se,{value:"no",checked:o.value==="no"})}),r.jsx(G,{className:"text-base",children:L[N(n)].visa_radio_2})]})]})})]})}),r.jsx(z,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?r.jsx(Ke,{className:"animate-spin"}):L[N(n)].button})]})})}),e&&r.jsx(Ge,{delay:.3})]})}const Cr=w.object({name:w.string().min(2,"error"),email:w.string().email(),phone:w.string().min(8,"error"),company:w.string().min(2,"error"),msg:w.string().min(5,"error")}),Lr={name:"",email:"",phone:"",company:"",msg:""},Or=({className:n})=>{const{t:e}=me("contacts"),[t,s]=b.useState(!1),i=Pe({resolver:Ie(Cr),defaultValues:Lr});async function a(l){try{const c=await ks(l);s(c)}catch(c){console.error("POST contact",c)}}const{errors:o}=i.formState;return r.jsx("div",{className:Q("bg-primary rounded-[8px] py-8 px-6 ",n),children:r.jsx(Fe,{...i,children:r.jsxs("form",{onSubmit:i.handleSubmit(a),children:[r.jsx("h2",{className:"h2 !text-on_primary lg:mb-8 mb-6",children:e("title")}),r.jsxs("div",{className:"flex flex-col gap-8",children:[r.jsx(T,{onPrimary:!0,name:"name",control:i.control,label:e("name"),error:o.name}),r.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[r.jsx(T,{onPrimary:!0,name:"email",control:i.control,label:"Email",error:o.email}),r.jsx(T,{onPrimary:!0,name:"phone",control:i.control,label:e("phone"),error:o.phone})]}),r.jsx(T,{onPrimary:!0,name:"company",control:i.control,label:e("company"),error:o.name}),r.jsx(T,{onPrimary:!0,textArea:!0,name:"msg",label:e("message"),control:i.control,error:o.msg}),r.jsx(z,{disabled:i.formState.isSubmitting||t,className:"w-full h-12 overflow-hidden",variant:"secondary",children:t?e("submitted"):i.formState.isSubmitting?r.jsx(Ss,{className:"animate-spin text-white"}):e("button")})]})]})})})};function Pr(){$();const{t:n}=me("contacts");return r.jsxs("div",{className:"flex flex-col gap-20 pt-10 md:pt-20",children:[r.jsx(Z,{children:r.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",children:[r.jsx(Or,{}),r.jsxs("div",{className:"p-6 bg-surface_container rounded-[8px]",children:[r.jsx("h2",{className:"h2 mb-10 xl:mb-8",children:n("title_2")}),r.jsxs("div",{className:"flex flex-col gap-20",children:[r.jsxs("div",{className:"flex items-center gap-6",children:[r.jsx("img",{src:"/contacts/map.svg",alt:"address"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl mb-2",children:n("address")}),r.jsx("address",{className:"text-base normal not-italic",children:n("venue")})]})]}),r.jsxs("div",{className:"flex items-center gap-6",children:[r.jsx("img",{src:"/contacts/phone.svg",alt:"phone"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl mb-2",children:n("phone")}),r.jsx("h4",{className:"text-base normal",children:"+99371871812; 99363719588"})]})]}),r.jsxs("div",{className:"flex items-center gap-6",children:[r.jsx("img",{src:"/contacts/email.svg",alt:"email"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl mb-2",children:"Email:"}),r.jsx("h4",{className:"text-base normal",children:"contact@turkmenexpo.com"})]})]})]})]})]})}),r.jsx("section",{className:"relative w-full h-[300px] sm:h-[350px] md:h-[400px] lg:h-[600px]",children:r.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1443.0869986358682!2d58.35620779177324!3d37.921200202365405!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3f7001fd7afd2a95%3A0x9ce9dca95ea4b87e!2z0JDQstC40LDQutCw0YHRgdCwINCw0LLQuNCw0LrQvtC80L_QsNC90LjQuCDCq9CR0LXQu9Cw0LLQuNCwwrsg0LIg0KLRg9GA0LrQvNC10L3QuNGB0YLQsNC90LU!5e0!3m2!1sru!2sru!4v1738063695919!5m2!1sru!2sru",className:"absolute inset-0 w-full h-full ",style:{border:0},allowFullScreen:!0,loading:"lazy"})})]})}const Ir=[{id:0,title:"Фото",titleEn:"Photo"},{id:1,title:"Видео",titleEn:"Video"}],Fr=({className:n})=>{var j,v,k,_,O;$();const[e,t]=b.useState(0),{data:s,isPending:i,status:a}=Ns(1),{data:o}=yt(1),[l,c]=b.useState(!1),[u,p]=b.useState({id:0,type:"photo"}),m=I(C=>C.lang),d=({id:C,type:R})=>{c(!0),p({id:C,type:R})},{t:f}=me("main"),[h,g]=b.useState(!1),x=C=>C===0&&i?r.jsx(he,{}):r.jsx(he,{});return console.log(a),r.jsxs(r.Fragment,{children:[r.jsx(pe,{children:l&&r.jsx(Ts,{activeItem:u,setActiveItem:p,setIsOpen:c})}),r.jsxs("section",{className:Q("md:mb-[120px] mb-20",n),children:[r.jsx(ce,{title:m==="ru"?"Моменты":"Moments"}),r.jsx(Z,{className:"page-bottom md:pt-10 pt-6",children:r.jsxs("div",{className:"flex justify-center flex-col",children:[r.jsx(jt,{state:e,setState:t,data:Ir,className:"mb-6"}),e===0&&i?x(e):r.jsxs(r.Fragment,{children:[r.jsx("h3",{className:"md:text-3xl text-2xl mb-6",children:"TurkmenTextile Expo-2025"}),r.jsx("div",{className:"grid lg:grid-cols-4 lg:gap-y-4 lg:gap-x-6 md:gap-6 gap-4 grid-cols-2 place-items-center",children:e===0?(v=(j=s==null?void 0:s.photos)==null?void 0:j.slice(0,h?1e3:16))==null?void 0:v.map((C,R)=>{var E,W;return r.jsx("div",{onClick:()=>d({id:R,type:"photo"}),className:"cursor-pointer embla__slide basis-1/1 overflow-hidden",children:r.jsx("img",{src:((E=C==null?void 0:C.photo)==null?void 0:E.path)??"",alt:((W=C==null?void 0:C.photo)==null?void 0:W.file_name)??"photo",className:"size-full object-cover hover:scale-105 duration-300 transition-all"})},R)}):(k=o==null?void 0:o.videos)==null?void 0:k.map((C,R)=>{var E;return r.jsxs("div",{onClick:()=>d({id:R,type:"video"}),className:"cursor-pointer group embla__slide h-[155px] w-full basis-1/1 overflow-hidden relative",children:[r.jsx(_s,{fill:"white",size:20,color:"white",className:"absolute group-hover:scale-125 transition-all duration-300 top-1/2 z-10 left-1/2 -translate-x-1/2 -translate-y-1/2 "}),r.jsx("div",{className:"absolute top-0 left-0 size-full bg-[#2C57A752]/[32%]"}),r.jsx("img",{src:((E=C==null?void 0:C.video_photo)==null?void 0:E.path)??"",className:"size-full object-cover"})]},R)})})]}),((_=s==null?void 0:s.photos)==null?void 0:_.length)&&((O=s==null?void 0:s.photos)==null?void 0:O.length)>16&&!h&&r.jsx(z,{onClick:()=>g(!0),className:"mx-auto w-[288px] mt-10 text-on_surface",size:"lg",variant:"outline",children:f("media.button")})]})})]})]})},Ar=(n,e)=>{const{data:t,isPending:s}=Ue({queryKey:["news-inner",n,e],queryFn:()=>Es(n,e),select:({data:i})=>i.data});return{data:t,isPending:s}};function $r(){var o;const{id:n}=Bs(),e=I(l=>l.lang),t=Number(n);$(t);const{data:s,isPending:i}=Ar(t,e),{data:a}=wt(e);return i?r.jsx(he,{}):r.jsxs(Z,{className:"pt-10 pb-20 md:pt-20 md:pb-[120px]",children:[r.jsxs("section",{className:"max-w-[888px] py-5 mx-auto flex flex-col md:gap-10 gap-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-on_surface md:text-[32px] text-3xl leading-10 mb-2",children:s==null?void 0:s.title}),r.jsx("h4",{children:s==null?void 0:s.published_at.slice(0,10).split("-").reverse().join(".")})]}),r.jsx("div",{className:"w-full h-[300px] md:h-[480px]",children:r.jsx("img",{src:((o=s==null?void 0:s.featured_images[0])==null?void 0:o.path)||"",alt:"news image",className:"size-full object-cover"})}),r.jsx("div",{dangerouslySetInnerHTML:{__html:(s==null?void 0:s.content)??""},className:"news-inner md:text-lg flex flex-col gap-6 text-base md:medium normal text-on_surface_v"})]}),r.jsx("hr",{className:"mt-10 md:mb-20 mb-[60px]"}),r.jsxs("section",{children:[r.jsx("h2",{className:"h2 mb-6",children:e==="ru"?"Читайте также:":"Read more:"}),r.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:a==null?void 0:a.filter(l=>l.id!==t).slice(0,3).map(l=>b.createElement(St,{...l,key:l.title}))})]})]})}function Dr(){$();const n=I(s=>s.lang),{data:e,isPending:t}=wt(n);return t?r.jsx(he,{}):r.jsxs(Z,{className:"page-padding",children:[r.jsx("h1",{className:"text-center md:text-5xl text-3xl mb-10",children:n==="ru"?"Новости":"News"}),r.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:e==null?void 0:e.map(s=>b.createElement(St,{...s,key:s.title}))})]})}const Mr=()=>{const n=I(s=>s.lang),{data:e,isPending:t}=Ue({queryKey:["participants",n],queryFn:()=>Rs(n),select:({data:s})=>s.data});return{data:e,isPending:t}},Br=({className:n})=>{var u,p,m,d,f;$();const e=I(h=>h.lang),{data:t,isPending:s}=Mr(),i={company:e==="ru"?"Название компании":"Company name",country:e==="ru"?"Страна":"Country",industry:e==="ru"?"Сфера деятельности":"Industry"},[a,o]=b.useState(0),l=(m=t==null?void 0:t[0])==null?void 0:m.participants.concat((u=t==null?void 0:t[1])==null?void 0:u.participants,(p=t==null?void 0:t[2])==null?void 0:p.participants),c=t==null?void 0:t.filter(h=>a===1?h.id===3:a===2?h.id===1:h.id===2);return console.log(a),r.jsx(Z,{children:r.jsxs("section",{className:Q("page-padding overflow-x-hidden",n),children:[r.jsx("h1",{className:"text-center md:text-5xl text-3xl mb-4",children:e==="ru"?"Список участников":"List of participants"}),r.jsx(jt,{state:a,setState:o,className:"mb-6 md:w-fit"}),r.jsxs("div",{className:"p-2 sm:p-0 bg-surface_container overflow-hidden",children:[r.jsxs("div",{className:"sm:flex items-center hidden h-[52px] border-b border-outline_v",children:[r.jsx("h3",{className:"flex-[0_0_45.54%] pl-4",children:i==null?void 0:i.company}),r.jsx("h3",{className:"flex-[0_0_19.80%]",children:i==null?void 0:i.country}),r.jsx("h3",{className:"flex-[0_0_34.65%]",children:i==null?void 0:i.industry})]}),s?r.jsx(he,{}):a===0?l==null?void 0:l.map((h,g,x)=>r.jsx(et,{...h,arr:x==null?void 0:x.length,index:g,image:h.image??{path:""},image_country:h.image_country??{path:""}})):(f=(d=c==null?void 0:c[0])==null?void 0:d.participants)==null?void 0:f.map((h,g,x)=>r.jsx(et,{...h,arr:x==null?void 0:x.length,index:g,image:h.image??{path:""},image_country:h.image_country??{path:""}}))]})]})})},Vr=w.object({space_package:w.string(),company_name:w.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:w.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:w.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:w.preprocess(n=>Number(n),w.number().min(1,"Укажите количество участников")),country:w.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:w.string().email({message:"Укажите корректный email"}),phone:w.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:w.string().optional(),visa_support:w.string().optional()}),zr={space_package:"space",company_name:"",rep_name:"",job_title:"",participants_number:1,country:"",email:"",phone:"",website:"",visa_support:""};function Hr(){$();const n=I(l=>l.lang),[e,t]=b.useState(!1),s=Pe({resolver:Ie(Vr),defaultValues:zr}),i=async l=>{await Cs(l)&&t(!0)};b.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[]);const{errors:a}=s.formState,o=N(n);return r.jsxs("div",{children:[r.jsx(ce,{title:L[N(n)].cover}),r.jsx(pe,{children:!e&&r.jsx(Fe,{...s,children:r.jsxs(we.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] px-5 mx-auto mt-20 mb-[120px] flex flex-col gap-8",onSubmit:s.handleSubmit(i),children:[r.jsx(_e,{control:s.control,name:"space_package",render:({field:l})=>r.jsxs(K,{className:"space-y-5",children:[r.jsx(G,{className:"text-xl",children:L[o].h2}),r.jsx(U,{children:r.jsxs(ye,{onValueChange:l.onChange,defaultValue:l.value,className:"flex flex-col space-y-4 ml-3",children:[r.jsxs(K,{className:"flex items-center space-x-5 space-y-0",children:[r.jsx(U,{children:r.jsx(se,{value:"space",checked:l.value==="space"})}),r.jsx(G,{className:"text-base",children:L[o].radio})]}),r.jsxs(K,{className:"flex items-center space-x-5 space-y-0",children:[r.jsx(U,{children:r.jsx(se,{value:"package",checked:l.value==="package"})}),r.jsx(G,{className:"text-base",children:L[o].radio_2})]})]})})]})}),r.jsx(T,{label:L[o].label_1,name:"company_name",control:s.control,error:a.company_name}),r.jsx(T,{label:L[o].label_2,name:"rep_name",control:s.control,error:a.rep_name}),r.jsx(T,{label:L[o].label_3,name:"job_title",control:s.control,error:a.job_title}),r.jsx(T,{label:L[o].number_of_participants,type:"number",name:"participants_number",control:s.control,error:a.participants_number}),r.jsx(T,{label:L[o].label_4,name:"country",control:s.control,error:a.country}),r.jsx(T,{label:L[o].label_5,name:"email",control:s.control,error:a.email}),r.jsx(T,{label:L[o].label_6,name:"phone",control:s.control,error:a.phone}),r.jsx(T,{label:L[o].label_7,name:"website",control:s.control}),r.jsx(_e,{control:s.control,name:"visa_support",render:({field:l})=>r.jsxs(K,{className:"space-y-5",children:[r.jsx(G,{className:"text-xl",children:L[o].visa}),r.jsx(U,{children:r.jsxs(ye,{onValueChange:l.onChange,defaultValue:l.value,className:"flex flex-col space-y-4 ml-3",children:[r.jsxs(K,{className:"flex items-center space-x-5 space-y-0",children:[r.jsx(U,{children:r.jsx(se,{value:"yes",checked:l.value==="yes"})}),r.jsx(G,{className:"text-base",children:L[o].visa_radio})]}),r.jsxs(K,{className:"flex items-center space-x-5 space-y-0 ",children:[r.jsx(U,{children:r.jsx(se,{value:"no",checked:l.value==="no"})}),r.jsx(G,{className:"text-base",children:L[o].visa_radio_2})]})]})})]})}),r.jsx(z,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?r.jsx(Ke,{className:"animate-spin"}):L[o].button})]})})}),e&&r.jsx(Ge,{delay:.3})]})}const Yt=()=>{var h;const{t:n}=me("main"),e=I(g=>g.lang),{pathname:t}=We(),[s]=kt({loop:!0},[Ls({delay:5e3,stopOnInteraction:!1})]),{title:i,texts:a,button:o,button2:l}=n("impressions.hero",{returnObjects:!0}),{title2:c,texts2:u}=n("impressions.hero",{returnObjects:!0}),p=(g,x)=>t==="/impressions"?g:x,m=(g,x)=>t==="/impressions"?g:x,d={en:["https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_eng1.jpg","https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_eng2.jpg"],ru:["https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_ru1.jpg","https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_ru2.jpg"]},f=()=>e==="ru"?d.ru:d.en;return r.jsxs("section",{className:"",children:[t==="/impressions-tm"?r.jsx("div",{ref:s,className:"embla overflow-hidden",children:r.jsx("div",{className:"flex",children:f().map((g,x)=>r.jsx("img",{src:g,alt:"imperssions",className:"w-full object-cover flex-[0_0_100%] object-top max-h-[610px]"},x))})}):r.jsx("img",{src:n("impressions.banner")}),r.jsx("h1",{className:"absolute opacity-0 top-0 left-0",children:"Модные показы"}),r.jsx("div",{className:"bg-[url('/impressions-bg.png')]",children:r.jsxs(Z,{className:"md:py-20 py-10",children:[r.jsx("h2",{className:"md:text-5xl text-2xl leading-[120%] md:mb-10 mb-6",children:p(i,c)}),r.jsx("div",{className:"text-on_surface_v flex flex-col gap-3",children:(h=m(a,u))==null?void 0:h.map((g,x)=>r.jsx("p",{className:"md:text-lg !normal",children:g},x))}),r.jsxs("div",{className:"flex md:flex-row flex-col items-center gap-6 mt-6",children:[r.jsx(tt,{target:"_blank",to:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/ICS%20file/TurkmenTextile%20Expo-2025.ics",className:"w-full",children:r.jsx(z,{size:"sm",className:"w-full",children:o})}),r.jsx(tt,{to:e==="ru"?"https://turkmentextile.turkmenexpo.com/app/storage/app/media/agenda/agenda_ru.pdf":"https://turkmentextile.turkmenexpo.com/app/storage/app/media/agenda/agenda_en.pdf",target:"_blank",className:"w-full",children:r.jsx(z,{size:"sm",className:"w-full",children:l})})]})]})})]})},Jt=()=>{var p,m,d;const{t:n}=me("main"),{pathname:e}=We(),[t,s]=b.useState(1),{data:i}=yt(1),o=[...(i==null?void 0:i.videos.filter(f=>f.sections[0]==="fashion_shows"))??[]].sort((f,h)=>(f==null?void 0:f.fashion_shows_order_id)+(h==null?void 0:h.fashion_shows_order_id)),{videosTitle:l,videosTitle2:c}=n("impressions",{returnObjects:!0}),u=()=>e!=="/impressions";return r.jsx("section",{className:"bg-[url('/impressions/videos-block-bg.png')] md:py-20 py-10",children:r.jsxs(Z,{children:[r.jsx("h2",{className:"mb-10 md:text-5xl text-2xl leading-[120%] text-white text-center",children:u()?l:c}),r.jsxs("div",{className:"flex flex-col lg:flex-row lg:mx-20 gap-4 text-white overflow-hidden h-fit lg:h-[490px]",children:[r.jsxs("div",{className:"bg-gray_10 flex-auto p-2 rounded-[8px] border border-gray_09 flex flex-col justify-center h-full",children:[r.jsx("div",{className:"max-h-[450px]",children:r.jsx("video",{src:(d=(m=(p=i==null?void 0:i.videos)==null?void 0:p[t])==null?void 0:m.video)==null?void 0:d.path,muted:!0,controls:!0,autoPlay:!0,loop:!0,className:"w-full size-full mb-2 rounded"})}),r.jsx("div",{className:"flex items-center justify-between mt-auto"})]}),r.jsx("div",{className:"bg-gray_10 flex-[0_0_20%] px-2 pt-2 rounded-[8px] border border-gray_09 flex flex-col h-full",children:r.jsx("div",{className:"flex flex-col gap-2 w-full overflow-y-auto overflow-x-hidden h-full",children:o==null?void 0:o.map((f,h)=>{var g;return r.jsx("div",{onClick:()=>s(h+1),className:"basis-[70px] w-[80%] cursor-pointer mx-auto overflow-hidden",children:r.jsx("img",{src:(g=f==null?void 0:f.video_photo)==null?void 0:g.path,alt:"",className:"object-cover size-full rounded-tl hover:scale-105 transition-transform rounded-bl"})},h)})})})]})]})})},Kr=n=>{const e=I(i=>i.lang),{data:t,isPending:s}=Ue({queryKey:["designers",e],queryFn:()=>Os(e,n),select:({data:i})=>i.data});return{data:t,isPending:s}},Xt=()=>{const{pathname:n}=We(),e=()=>n!=="/impressions",{data:t,isPending:s}=Kr(e()?2:1),[i,a]=kt({align:"center",skipSnaps:!0,slidesToScroll:2,dragFree:!0}),[o,l]=b.useState(0),{t:c}=me("main"),[u,p]=b.useState(!1),[m,d]=b.useState(!0),f=b.useCallback(k=>{a&&a.scrollTo(k)},[a]);b.useEffect(()=>{if(!a)return;const k=()=>{l(a==null?void 0:a.selectedScrollSnap()),p(a.canScrollPrev()),d(a.canScrollNext())};return a.on("select",k),()=>{a.off("select",k)}},[a]);const{title:h,text:g,title2:x,text2:j}=c("impressions.designers",{returnObjects:!0}),v=[...(t==null?void 0:t.designers)??[]].sort((k,_)=>(k==null?void 0:k.order_id)-(_==null?void 0:_.order_id));return console.log(v),r.jsx("section",{className:"md:py-20 py-10",children:r.jsxs(Z,{className:"flex flex-col md:gap-10 gap-6",children:[r.jsx("h2",{className:"md:text-5xl text-2xl leading-[120%]",children:e()?h:x}),r.jsx("p",{className:"md:text-xl text-lg normal text-on_surface_v",children:e()?g:j}),r.jsxs("div",{ref:i,className:"embla",children:[r.jsx("div",{className:"flex embla__container",children:s?r.jsx(he,{}):v==null?void 0:v.map((k,_)=>r.jsx(Ps,{...k,className:"embla__slide flex-[0_0_714px] mr-4"},_))}),r.jsxs("div",{className:"flex items-center justify-center gap-4 mt-6",children:[r.jsx("button",{onClick:()=>a==null?void 0:a.scrollPrev(),className:Q("size-12 flex items-center justify-center",!u&&"opacity-20 pointer-events-none"),children:r.jsx(Is,{})}),r.jsx("div",{className:"flex items-center gap-2",children:[...Array(v!=null&&v.length?Math.round((v==null?void 0:v.length)/2):5)].map((k,_)=>r.jsx("div",{onClick:()=>f==null?void 0:f(_),className:Q("w-5 h-1 rounded-[2px] cursor-pointer",o===_?"bg-teritary":"bg-on_surface_v")},_))}),r.jsx("button",{onClick:()=>a==null?void 0:a.scrollNext(),className:Q("size-12 flex items-center justify-center",!m&&"opacity-20 pointer-events-none"),children:r.jsx(Fs,{})})]})]})]})})};function Gr(){return $(),r.jsxs("div",{className:"overflow-x-hidden",children:[r.jsx(Yt,{}),r.jsx(Jt,{}),r.jsx(Xt,{})]})}function Ur(){return $(),r.jsxs("div",{className:"overflow-x-hidden",children:[r.jsx(Yt,{}),r.jsx(Jt,{}),r.jsx(Xt,{})]})}const Wr="/about-place.jpg",P={title:{ruText:"Варианты участия",enText:"Participation Options"},exhibitionSpace:{ruText:"Аренда выставочной площади",enText:"Exhibition Space Rental"},spaceOnly:{ruText:"Необорудованная площадь",enText:"Space Only"},example:{ruText:"Пример",enText:"Example"},spaceOnlyDescription:{ruText:"Чистая площадь для последующей застройки (стандартная застройка или по индивидуальному дизайну). Включает: общую уборку и охрану павильона. Электричество в стоимость не включено.",enText:"Raw exhibition space for subsequent construction (standard booth or customized design). Includes general cleaning and pavilion security. Electricity is not included in the price."},standardBooth:{ruText:"Стандартная застройка",enText:"Standard Booth Construction"},customBooth:{ruText:"Индивидуальный дизайн",enText:"Custom Booth Design"},boothExampleDescription:{ruText:"Включает: базовое электроподключение (220V - 2 кВт), стены (стандартные или индивидуальный дизайн). Общую уборку и охрану павильона.",enText:"Includes: basic electrical connection (220V - 2 kW), walls (standard or customized design), general cleaning, and pavilion security."},registrationFee:{ruText:"Участие со стендом включает регистрационную оплату.",enText:"Participation with a booth includes a registration fee."},pricingNote:{ruText:"Пожалуйста уточните стоимость у менеджера проекта.",enText:"Please check the pricing with the project manager."},partnershipTitle:{ruText:"Партнёрские возможности",enText:"Partnership Opportunities"},partnershipIntro:{ruText:'Если Вы заинтересованы в более активном выходе на рынок или целью Вашей компании является максимальное продвижение на рынок, используйте пакет "Партнерство выставки". Приобретая данную опцию, Вы получаете:',enText:'If your company is interested in a more active market presence or aims to maximize market promotion, we recommend the "Exhibition Partnership" package. By choosing this option, you will receive:'},partnershipItems:[{ruText:"Статус Партнера выставки, в зависимости от выбранного пакета",enText:"Exhibition Partner status, depending on the selected package"},{ruText:"Масштабную рекламную кампанию (размещение логотипа компании на всей рекламной продукции выставки)",enText:"A large-scale advertising campaign (placement of your company logo on all exhibition promotional materials)"},{ruText:"Широкую узнаваемость",enText:"Wide recognition"},{ruText:"Ассоциирование выставки с именем Вашей компании и др.",enText:"Association of the exhibition with your company's name, and more"}],partnershipNote:{ruText:"Пожалуйста, уточните стоимость у менеджера проекта.",enText:"Please contact the project manager to clarify the cost."},exampleImageAlt:{ruText:"Пример площадки",enText:"Example space"},standardExampleAlt:{ruText:"Пример стандартной застройки",enText:"Standard booth example"},customExampleAlt:{ruText:"Пример индивидуального дизайна",enText:"Custom booth example"}},bt=()=>r.jsx("svg",{width:"14",height:"20",viewBox:"0 0 14 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:r.jsx("path",{d:"M7 1V15M7 15L2 10M7 15L12 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});function qr(){$();const n=I(t=>t.lang),e=t=>n==="ru"?t.ruText:t.enText;return r.jsxs("div",{children:[r.jsx(ce,{title:e(P.title)}),r.jsx(Z,{className:"page-padding",children:r.jsxs("div",{className:"mx-auto max-w-[900px] text-on_surface",children:[r.jsx("p",{className:"mb-10 text-3xl font-medium",children:e(P.title)}),r.jsxs(z,{className:"mb-2 bg-primary md:text-base w-full",children:["1. ",e(P.exhibitionSpace)]}),r.jsx(z,{variant:"outline",className:"w-full mb-10 border border-primary py-1 text-center text-base text-primary md:text-base",children:e(P.spaceOnly)}),r.jsx("p",{className:"mb-5 text-center text-lg",children:e(P.example)}),r.jsx("div",{className:"mx-auto h-[180px] w-full max-w-[754px] md:h-[377px]",children:r.jsx("img",{src:Wr,alt:e(P.exampleImageAlt),className:"size-full rounded-sm object-cover"})}),r.jsx("div",{className:"mt-5 text-center text-base leading-relaxed",children:r.jsx("p",{children:e(P.spaceOnlyDescription)})}),r.jsxs("div",{className:"mt-10 grid grid-cols-1 gap-6 md:grid-cols-2",children:[r.jsxs("div",{className:"w-full flex flex-col items-center gap-2 text-primary",children:[r.jsx(bt,{}),r.jsx("div",{className:"w-full border border-primary py-1 text-center text-base text-primary md:text-base",children:e(P.standardBooth)})]}),r.jsxs("div",{className:"flex flex-col items-center gap-2 text-primary",children:[r.jsx(bt,{}),r.jsx("div",{className:"w-full border border-primary py-1 text-center text-base text-primary md:text-base",children:e(P.customBooth)})]})]}),r.jsxs("div",{className:"mt-10 grid grid-cols-1 gap-6 md:grid-cols-2",children:[r.jsxs("div",{children:[r.jsxs("p",{className:"mb-5 text-base",children:[e(P.example),":"]}),r.jsx("img",{src:"/example.jpeg",alt:e(P.standardExampleAlt),className:"h-[160px] w-full rounded-sm object-cover md:h-[190px]"}),r.jsx("p",{className:"mt-2 text-base leading-relaxed",children:e(P.boothExampleDescription)})]}),r.jsxs("div",{children:[r.jsxs("p",{className:"mb-5 text-base",children:[e(P.example),":"]}),r.jsx("img",{src:"/example-2.jpeg",alt:e(P.customExampleAlt),className:"h-[160px] w-full rounded-sm object-cover md:h-[190px]"}),r.jsx("p",{className:"mt-2 text-base leading-relaxed",children:e(P.boothExampleDescription)})]})]}),r.jsx("p",{className:"mt-6 text-2xl",children:e(P.registrationFee)}),r.jsx("p",{className:"text-base mt-3",children:e(P.pricingNote)}),r.jsxs("div",{className:"mt-6 bg-primary py-3 text-center text-xs font-medium text-on_primary md:text-base",children:["2. ",e(P.partnershipTitle)]}),r.jsxs("div",{className:"mt-3 text-base leading-relaxed font-normal",children:[r.jsx("p",{className:"mb-2",children:e(P.partnershipIntro)}),r.jsx("ul",{className:"list-disc pl-5",children:P.partnershipItems.map(t=>r.jsx("li",{children:e(t)},t.enText))}),r.jsx("p",{className:"mt-2",children:e(P.partnershipNote)})]})]})})]})}const H={title:{ruText:"Партнерские возможности",enText:"Partner opportunities"},intro:{ruText:"Предлагаем Вам воспользоваться комплексными возможностями - партнерскими пакетами, разработанными под различные маркетинговые задачи компании-участника, которые позволят максимально использовать коммерческий потенциал выставки для усиления бренда Вашей компании и бесспорно повысят эффективность продвижения Вашей компании.",enText:"We invite you to take advantage of integrated opportunities - partnership packages designed for various marketing objectives of the exhibiting company. They allow you to maximize the exhibition's commercial potential, strengthen your brand, and significantly increase the effectiveness of your promotion."},partnership:{ruText:"Партнерство выставки - это всегда больше, чем просто участие. Это прекрасная возможность выгодно подать Вашу продукцию широкой публике в соответствии с Вашими основными целями и задачами. В каждом партнерском пакете предоставлены уникальные позиции, специально сформированные таким образом, что Вы наиболее точно и эффективно передаете обращение к целевой аудитории.",enText:"Exhibition partnership is always more than just participation. It is a great opportunity to present your products to a wide audience in line with your goals and objectives. Each partnership package includes unique placements structured so you can communicate your message to the target audience as precisely and effectively as possible."},benefitsTitle:{ruText:"Партнерство выставки Turkmen Textile позволит:",enText:"Partnership with Turkmen Textile will allow you:"},benefits:[{ruText:"Укрепить позиции Вашей компании на рынке.",enText:"Strengthen your company's position in the market."},{ruText:"Обеспечить существенное преимущество в конкурентной среде.",enText:"Gain a significant advantage in the competitive environment."},{ruText:"Закрепить имидж успешного бренда Вашей компании.",enText:"Reinforce the image of your company as a successful brand."},{ruText:"Сделать Вашу торговую марку узнаваемой для широкого круга участников и посетителей выставки.",enText:"Make your trademark recognizable to a wide range of exhibition participants and visitors."},{ruText:"Выделить Вашу компанию среди других участников.",enText:"Stand out among other exhibitors."}],highlight:{ruText:"Вы хотите, чтобы в профессиональной среде именно Вашу компанию считали ключевым игроком на рынке? Тогда заявите о себе громче всех!",enText:"Do you want your company to be seen as a key player in the professional community? Then make yourself heard louder than anyone else!"},packagesTitle:{ruText:"Варианты партнерских пакетов:",enText:"Partnership package options:"},packages:[{ruText:"Генеральный партнер выставки",enText:"General partner of the exhibition."},{ruText:"Партнер Ленты Ведущих Посетителей",enText:"Lead visitor lanyard partner."},{ruText:"Партнер деловой программы",enText:"Business program partner."},{ruText:"Партнер вечернего приема",enText:"Evening reception partner."},{ruText:"Партнер пакетов посетителей",enText:"Visitor package partner."},{ruText:"Партнер каталога выставки",enText:"Exhibition catalog partner."},{ruText:"Партнер VIP делегации",enText:"VIP delegation partner."},{ruText:"Партнер выставки",enText:"Exhibition partner."}],optionsNote:{ruText:"Данные опции являются базовыми, но мы всегда готовы обсудить вопрос о специальных проектах в рамках партнерства выставки, которые будут соответствовать Вашему бюджету, потребностям и целям.",enText:"These options are basic, but we are always ready to discuss special projects within the exhibition partnership that match your budget, needs, and goals."},contactNote:{text:{ruText:"По вопросам цен и дополнительных опций партнерских пакетов выставки KIFT, пожалуйста, обращайтесь к ",enText:"For pricing and additional options of KIFT exhibition partnership packages, please contact the "},linkText:{ruText:"ОРГАНИЗАТОРАМ",enText:"ORGANIZERS"}}};function Yr(){$();const n=I(t=>t.lang),e=t=>n==="ru"?t.ruText:t.enText;return r.jsxs("div",{children:[r.jsx(ce,{title:e(H.title)}),r.jsx(Z,{className:"page-padding text-sm!",children:r.jsxs("div",{className:"mx-auto max-w-[900px]",children:[r.jsx("h2",{className:"mb-3 text-2xl font-medium",children:e(H.title)}),r.jsx("div",{className:"mb-4 rounded-sm bg-surface_container px-4 py-3 text-sm leading-relaxed text-on_surface_v",children:e(H.intro)}),r.jsx("p",{className:"mb-4 text-sm leading-relaxed text-on_surface_v",children:e(H.partnership)}),r.jsx("h3",{className:"mb-2 text-base font-medium",children:e(H.benefitsTitle)}),r.jsx("ul",{className:"mb-4 list-disc pl-5 text-sm leading-relaxed text-on_surface_v",children:H.benefits.map(t=>r.jsx("li",{children:e(t)},t.enText))}),r.jsx("div",{className:"mb-6 rounded-sm border border-outline px-4 py-3 text-center text-[10px] uppercase text-on_surface_v",children:e(H.highlight)}),r.jsx("h3",{className:"mb-2 text-base font-medium",children:e(H.packagesTitle)}),r.jsx("ul",{className:"mb-4 border-t border-outline_v",children:H.packages.map(t=>r.jsxs("li",{className:"flex items-center gap-2 border-b border-outline_v py-2 text-sm text-on_surface_v",children:[r.jsx("span",{className:"text-xs text-primary",children:"✓"}),r.jsx("span",{children:e(t)})]},t.enText))}),r.jsx("p",{className:"text-sm leading-relaxed text-on_surface_v",children:e(H.optionsNote)}),r.jsxs("p",{className:"text-sm leading-relaxed text-on_surface_v",children:[e(H.contactNote.text),r.jsx("span",{className:"text-primary underline",children:e(H.contactNote.linkText)})]})]})})]})}const Jr=[{element:r.jsx(Ui,{}),path:"/",children:[{element:r.jsx(Wi,{}),path:"",errorElement:r.jsx(D,{})},{element:r.jsx(Tr,{}),path:"about",errorElement:r.jsx(D,{})},{element:r.jsx(Nr,{}),path:"B2B-B2G",errorElement:r.jsx(D,{})},{element:r.jsx(Rr,{}),path:"become-sponsor",errorElement:r.jsx(D,{})},{element:r.jsx(Hr,{}),path:"stend-form",errorElement:r.jsx(D,{})},{element:r.jsx(Pr,{}),path:"contacts",errorElement:r.jsx(D,{})},{element:r.jsx(Dr,{}),path:"news",errorElement:r.jsx(D,{})},{element:r.jsx($r,{}),path:"news/:id",errorElement:r.jsx(D,{})},{element:r.jsx(Br,{}),path:"participants",errorElement:r.jsx(D,{})},{element:r.jsx(Fr,{}),path:"media",errorElement:r.jsx(D,{})},{element:r.jsx(Gr,{}),path:"impressions",errorElement:r.jsx(D,{})},{element:r.jsx(Ur,{}),path:"impressions-tm",errorElement:r.jsx(D,{})},{element:r.jsx(qr,{}),path:"participation-options",errorElement:r.jsx(D,{})},{element:r.jsx(Yr,{}),path:"partner-opportunities",errorElement:r.jsx(D,{})}]}],Xr=Vs(Jr),Qr=new As;Ks.createRoot(document.getElementById("root")).render(r.jsx(b.StrictMode,{children:r.jsx($s,{client:Qr,children:r.jsx(zs,{router:Xr})})}));