1import{r as A,w as zt,x as hn,y as fn,z as pn,B as mn,C as gn,D as yn,E as vn,G as bn,H as wn,I as xn,J as kn,K as _n,P as Sn,Q as Cn,T as Ln,j as lt}from"./chunk-D4RADZKF-D0gu-VYz.js";import{r as Tn,a as On}from"./index-CWurlbe-.js";import{f as Ye,i as Rn}from"./format-CLsMnXZy.js";import{c as Nn}from"./compareAsc-D_JVxYGq.js";import{t as G,g as _t,d as St,e as ze}from"./getTimezoneOffsetInMilliseconds-BcGZcdus.js";import{d as An}from"./differenceInMonths-BXgzdgGV.js";import{g as Dn}from"./getRoundingMethod-D0I6Z7xl.js";import{g as Ht,e as vt}from"./en-US-ClfMaaVW.js";import{d as In}from"./differenceInCalendarDays-CXi0v9iC.js";import{s as Pn,b as En,I as Mn}from"./context-1KWA3Y7j.js";/** 2 * react-router v7.6.0 3 * 4 * Copyright (c) Remix Software Inc. 5 * 6 * This source code is licensed under the MIT license found in the 7 * LICENSE.md file in the root directory of this source tree. 8 * 9 * @license MIT 10 */function jn(s){return A.createElement(mn,{flushSync:Tn.flushSync,...s})}var y=null,we=null;function $n(){if(!y&&window.__reactRouterContext&&window.__reactRouterManifest&&window.__reactRouterRouteModules){if(window.__reactRouterManifest.sri===!0){const s=document.querySelector("script[rr-importmap]");if(s!=null&&s.textContent)try{window.__reactRouterManifest.sri=JSON.parse(s.textContent).integrity}catch(e){console.error("Failed to parse import map",e)}}y={context:window.__reactRouterContext,manifest:window.__reactRouterManifest,routeModules:window.__reactRouterRouteModules,stateDecodingPromise:void 0,router:void 0,routerInitialized:!1}}}function Bn({unstable_getContext:s}){var i,a;if($n(),!y)throw new Error("You must be using the SSR features of React Router in order to skip passing a `router` prop to `<RouterProvider>`");let e=y;if(!y.stateDecodingPromise){let o=y.context.stream;zt(o,"No stream found for single fetch decoding"),y.context.stream=void 0,y.stateDecodingPromise=gn(o,window).then(l=>{y.context.state=l.value,e.stateDecodingPromise.value=!0}).catch(l=>{e.stateDecodingPromise.error=l})}if(y.stateDecodingPromise.error)throw y.stateDecodingPromise.error;if(!y.stateDecodingPromise.value)throw y.stateDecodingPromise;let t=yn(y.manifest.routes,y.routeModules,y.context.state,y.context.ssr,y.context.isSpaMode),n;if(y.context.isSpaMode){let{loaderData:o}=y.context.state;(i=y.manifest.routes.root)!=null&&i.hasLoader&&o&&"root"in o&&(n={loaderData:{root:o.root}})}else n=vn(y.context.state,t,o=>{var l,u,c;return{clientLoader:(l=y.routeModules[o])==null?void 0:l.clientLoader,hasLoader:((u=y.manifest.routes[o])==null?void 0:u.hasLoader)===!0,hasHydrateFallback:((c=y.routeModules[o])==null?void 0:c.HydrateFallback)!=null}},window.location,(a=window.__reactRouterContext)==null?void 0:a.basename,y.context.isSpaMode),n&&n.errors&&(n.errors=bn(n.errors));let r=wn({routes:t,history:_n(),basename:y.context.basename,unstable_getContext:s,hydrationData:n,hydrationRouteProperties:Ln,mapRouteProperties:Cn,future:{unstable_middleware:y.context.future.unstable_middleware},dataStrategy:kn(()=>r,y.manifest,y.routeModules,y.context.ssr,y.context.basename),patchRoutesOnNavigation:xn(y.manifest,y.routeModules,y.context.ssr,y.context.routeDiscovery,y.context.isSpaMode,y.context.basename)});return y.router=r,r.state.initialized&&(y.routerInitialized=!0,r.initialize()),r.createRoutesForHMR=Sn,window.__reactRouterDataRouter=r,r}function Un(s){we||(we=Bn({unstable_getContext:s.unstable_getContext}));let[e,t]=A.useState(void 0),[n,r]=A.useState(we.state.location);return A.useLayoutEffect(()=>{y&&y.router&&!y.routerInitialized&&(y.routerInitialized=!0,y.router.initialize())},[]),A.useLayoutEffect(()=>{if(y&&y.router)return y.router.subscribe(i=>{i.location!==n&&r(i.location)})},[n]),zt(y,"ssrInfo unavailable for HydratedRouter"),hn(we,y.manifest,y.routeModules,y.context.ssr,y.context.routeDiscovery,y.context.isSpaMode),A.createElement(A.Fragment,null,A.createElement(fn.Provider,{value:{manifest:y.manifest,routeModules:y.routeModules,future:y.context.future,criticalCss:e,ssr:y.context.ssr,isSpaMode:y.context.isSpaMode,routeDiscovery:y.context.routeDiscovery}},A.createElement(pn,{location:n},A.createElement(jn,{router:we}))),A.createElement(A.Fragment,null))}const x=s=>
vendor: 7,101 bytes, line 10
10typeof s=="string",xe=()=>{let s,e;const t=new Promise((n,r)=>{s=n,e=r});return t.resolve=s,t.reject=e,t},Ct=s=>s==null?"":""+s,Zn=(s,e,t)=>{s.forEach(n=>{e[n]&&(t[n]=e[n])})},Fn=/###/g,Lt=s=>s&&s.indexOf("###")>-1?s.replace(Fn,"."):s,Tt=s=>!s||x(s),Le=(s,e,t)=>{const n=x(e)?e.split("."):e;let r=0;for(;r<n.length-1;){if(Tt(s))return{};const i=Lt(n[r]);!s[i]&&t&&(s[i]=new t),Object.prototype.hasOwnProperty.call(s,i)?s=s[i]:s={},++r}return Tt(s)?{}:{obj:s,k:Lt(n[r])}},Ot=(s,e,t)=>{const{obj:n,k:r}=Le(s,e,Object);if(n!==void 0||e.length===1){n[r]=t;return}let i=e[e.length-1],a=e.slice(0,e.length-1),o=Le(s,a,Object);for(;o.obj===void 0&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),o=Le(s,a,Object),o&&o.obj&&typeof o.obj[`${o.k}.${i}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${i}`]=t},Vn=(s,e,t,n)=>{const{obj:r,k:i}=Le(s,e,Object);r[i]=r[i]||[],r[i].push(t)},Ke=(s,e)=>{const{obj:t,k:n}=Le(s,e);if(t)return t[n]},qn=(s,e,t)=>{const n=Ke(s,t);return n!==void 0?n:Ke(e,t)},Wt=(s,e,t)=>{for(const n in e)n!=="__proto__"&&n!=="constructor"&&(n in s?x(s[n])||s[n]instanceof String||x(e[n])||e[n]instanceof String?t&&(s[n]=e[n]):Wt(s[n],e[n],t):s[n]=e[n]);return s},oe=s=>s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var zn={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Hn=s=>x(s)?s.replace(/[&<>"'\/]/g,e=>zn[e]):s;class Wn{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 n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}const Yn=[" ",",","?","!",";"],Kn=new Wn(20),Jn=(s,e,t)=>{e=e||"",t=t||"";const n=Yn.filter(a=>e.indexOf(a)<0&&t.indexOf(a)<0);if(n.length===0)return!0;const r=Kn.getRegExp(`(${n.map(a=>a==="?"?"\\?":a).join("|")})`);let i=!r.test(s);if(!i){const a=s.indexOf(t);a>0&&!r.test(s.substring(0,a))&&(i=!0)}return i},ht=function(s,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!s)return;if(s[e])return s[e];const n=e.split(t);let r=s;for(let i=0;i<n.length;){if(!r||typeof r!="object")return;let a,o="";for(let l=i;l<n.length;++l)if(l!==i&&(o+=t),o+=n[l],a=r[o],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&l<n.length-1)continue;i+=l-i+1;break}r=a}return r},Je=s=>s&&s.replace("_","-"),Gn={type:"logger",log(s){this.output("log",s)},warn(s){this.output("warn",s)},error(s){this.output("error",s)},output(s,e){console&&console[s]&&console[s].apply(console,e)}};class Ge{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||Gn,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(x(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Ge(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Ge(this.logger,e)}}var q=new Ge;class at{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const r=this.observers[n].get(t)||0;this.observers[n].set(t,r+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,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(a=>{let[o,l]=a;for(let u=0;u<l;u++)o(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[o,l]=a;for(let u=0;u<l;u++)o.apply(o,[e,...n])})}}class Rt extends at{constructor(e){let t=arguments.length>1&&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,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;e.indexOf(".")>-1?o=e.split("."):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):x(n)&&i?o.push(...n.split(i)):o.push(n)));const l=Ke(this.data,o);return!l&&!t&&!n&&e.indexOf(".")>-1&&(e=o[0],t=o[1],n=o.slice(2).join(".")),l||!a||!x(n)?l:ht(this.data&&this.data[e]&&this.data[e][t],n,i)}addResource(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(o=e.split("."),r=t,t=o[1]),this.addNamespaces(t),Ot(this.data,o,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in n)(x(n[i])||Array.isArray(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},o=[e,t];e.indexOf(".")>-1&&(o=e.split("."),r=n,n=t,t=o[1]),this.addNamespaces(t);let l=Ke(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Wt(l,n,i):l={...l,...n},Ot(this.data,o,l),a.silent||this.emit("added",e,t,n)}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.options.compatibilityAPI==="v1"?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(r=>t[r]&&Object.keys(t[r]).length>0)}toJSON(){return this.data}}var Yt={processors:{},addPostProcessor(s){this.processors[s.name]=s},handle(s,e,t,n,r){return s.forEach(i=>{this.processors[i]&&(e=this.processors[i].process(e,t,n,r))}),e}};const Nt={};class Xe extends at{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Zn(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
10i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=q.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 n=this.resolve(e,t);return n&&n.res!==void 0}extractFromKey(e,t){let n=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const r=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Jn(e,n,r);if(a&&!o){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:x(i)?[i]:i};const u=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(r)}return{key:e,namespaces:x(i)?[i]:i}}translate(e,t,n){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 r=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,i=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:a,namespaces:o}=this.extractFromKey(e[e.length-1],t),l=o[o.length-1],u=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const R=t.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${R}${a}`,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${R}${a}`}return r?{res:a,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:a}const f=this.resolve(e,t);let d=f&&f.res;const g=f&&f.usedKey||a,k=f&&f.exactUsedKey||a,L=Object.prototype.toString.apply(d),T=["[object Number]","[object Function]","[object RegExp]"],M=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,I=!this.i18nFormat||this.i18nFormat.handleAsObject,me=!x(d)&&typeof d!="boolean"&&typeof d!="number";if(I&&d&&me&&T.indexOf(L)<0&&!(x(M)&&Array.isArray(d))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const R=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,d,{...t,ns:o}):`key '${a} (${this.language})' returned an object instead of string.`;return r?(f.res=R,f.usedParams=this.getUsedParamsDetails(t),f):R}if(i){const R=Array.isArray(d),j=R?[]:{},U=R?k:g;for(const P in d)if(Object.prototype.hasOwnProperty.call(d,P)){const Ve=`${U}${i}${P}`;j[P]=this.translate(Ve,{...t,joinArrays:!1,ns:o}),j[P]===Ve&&(j[P]=d[P])}d=j}}else if(I&&x(M)&&Array.isArray(d))d=d.join(M),d&&(d=this.extendTranslation(d,e,t,n));else{let R=!1,j=!1;const U=t.count!==void 0&&!x(t.count),P=Xe.hasDefaultValue(t),Ve=U?this.pluralResolver.getSuffix(u,t.count,t):"",cn=t.ordinal&&U?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",wt=U&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),ge=wt&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${Ve}`]||t[`defaultValue${cn}`]||t.defaultValue;!this.isValidLookup(d)&&P&&(R=!0,d=ge),this.isValidLookup(d)||(j=!0,d=a);const dn=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&j?void 0:d,ye=P&&ge!==d&&this.options.updateMissing;if(j||R||ye){if(this.logger.log(ye?"updateKey":"missingKey",u,l,a,ye?ge:d),i){const $=this.resolve(a,{...t,keySeparator:!1});$&&$.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 ve=[];const qe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&qe&&qe[0])for(let $=0;$<qe.length;$++)ve.push(qe[$]);else this.options.saveMissingTo==="all"?ve=this.languageUtils.toResolveHierarchy(t.lng||this.language):ve.push(t.lng||this.language);const xt=($,ne,be)=>{const kt=P&&be!==d?be:dn;this.options.missingKeyHandler?this.options.missingKeyHandler($,l,ne,kt,ye,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing($,l,ne,kt,ye,t),this.emit
vendor: 12,009 bytes, line 10
10("missingKey",$,l,ne,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&U?ve.forEach($=>{const ne=this.pluralResolver.getSuffixes($,t);wt&&t[`defaultValue${this.options.pluralSeparator}zero`]&&ne.indexOf(`${this.options.pluralSeparator}zero`)<0&&ne.push(`${this.options.pluralSeparator}zero`),ne.forEach(be=>{xt([$],a+be,t[`defaultValue${be}`]||ge)})}):xt(ve,a,ge))}d=this.extendTranslation(d,e,t,f,n),j&&d===a&&this.options.appendNamespaceToMissingKey&&(d=`${l}:${a}`),(j||R)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,R?d:void 0):d=this.options.parseMissingKeyHandler(d))}return r?(f.res=d,f.usedParams=this.getUsedParamsDetails(t),f):d}extendTranslation(e,t,n,r,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const u=x(e)&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const d=e.match(this.interpolator.nestingRegexp);c=d&&d.length}let f=n.replace&&!x(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),e=this.interpolator.interpolate(e,f,n.lng||this.language||r.usedLng,n),u){const d=e.match(this.interpolator.nestingRegexp),g=d&&d.length;c<g&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var d=arguments.length,g=new Array(d),k=0;k<d;k++)g[k]=arguments[k];return i&&i[0]===g[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${g[0]} in key: ${t[0]}`),null):a.translate(...g,t)},n)),n.interpolation&&this.interpolator.reset()}const o=n.postProcess||this.options.postProcess,l=x(o)?[o]:o;return e!=null&&l&&l.length&&n.applyPostProcessor!==!1&&(e=Yt.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,r,i,a,o;return x(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(l,t),c=u.key;r=c;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const d=t.count!==void 0&&!x(t.count),g=d&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),k=t.context!==void 0&&(x(t.context)||typeof t.context=="number")&&t.context!=="",L=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);f.forEach(T=>{this.isValidLookup(n)||(o=T,!Nt[`${L[0]}-${T}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Nt[`${L[0]}-${T}`]=!0,this.logger.warn(`key "${r}" for languages "${L.join(", ")}" won't get resolved as namespace "${o}" 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!!!")),L.forEach(M=>{if(this.isValidLookup(n))return;a=M;const I=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(I,c,M,T,t);else{let R;d&&(R=this.pluralResolver.getSuffix(M,t.count,t));const j=`${this.options.pluralSeparator}zero`,U=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(I.push(c+R),t.ordinal&&R.indexOf(U)===0&&I.push(c+R.replace(U,this.options.pluralSeparator)),g&&I.push(c+j)),k){const P=`${c}${this.options.contextSeparator}${t.context}`;I.push(P),d&&(I.push(P+R),t.ordinal&&R.indexOf(U)===0&&I.push(P+R.replace(U,this.options.pluralSeparator)),g&&I.push(P+j))}}let me;for(;me=I.pop();)this.isValidLookup(n)||(i=me,n=this.getResource(M,T,me,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}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"],n=e.replace&&!x(e.replace);let r=n?e.replace:e;if(n&&typeof e.count<"u"&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const i of t)delete r[i]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&e[n]!==void 0)return!0;return!1}}const ut=s=>s.charAt(0).toUpperCase()+s.slice(1);class At{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=q.create("languageUtils")}getScriptPartFromCode(e){if(e=Je(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=Je(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(x(e)&&e.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let r=Intl.getCanonicalLocales(e)[0];if(r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r)return r}catch{}const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map(r=>r.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ut(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ut(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=ut(n[2].toLowerCase()))),n.join("-")}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(n=>{if(t)return;const r=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(n=>{if(t)return;const r=this.getLanguagePartFromCode(n);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(i=>{if(i===r)return i;if(!(i.indexOf("-")<0&&r.indexOf("-")<0)&&(i.indexOf("-")>0&&r.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===r||i.indexOf(r)===0&&r.length>1))return i})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),x(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=a=>{a&&(this.isSupportedCode(a)?r.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return x(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):x(e)&&i(this.formatLanguageCode(e)),n.forEach(a=>{r.indexOf(a)<0&&i(this.formatLanguageCode(a))}),r}}let Xn=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Qn={1:s=>+(s>1),2:s=>+(s!=1),3:s=>0,4:s=>s%10==1&&s%100!=11?0:s%10>=2&&s%10<=4&&(s%100<10||s%100>=20)?1:2,5:s=>s==0?0:s==1?1:s==2?2:s%100>=3&&s%100<=10?3:s%100>=11?4:5,6:s=>s==1?0:s>=2&&s<=4?1:2,7:s=>s==1?0:s%10>=2&&s%10<=4&&(s%100<10||s%100>=20)?1:2,8:s=>s==1?0:s==2?1:s!=8&&s!=11?2:3,9:s=>+(s>=2),10:s=>s==1?0:s==2?1:s<7?2:s<11?3:4,11:s=>s==1||s==11?0:s==2||s==12?1:s>2&&s<20?2:3,12:s=>+(s%10!=1||s%100==11),13:s=>+(s!==0),14:s=>s==1?0:s==2?1:s==3?2:3,15:s=>s%10==1&&s%100!=11?0:s%10>=2&&(s%100<10||s%100>=20)?1:2,16:s=>s%10==1&&s%100!=11?0:s!==0?1:2,17:s=>s==1||s%10==1&&s%100!=11?0:1,18:s=>s==0?0:s==1?1:2,19:s=>s==1?0:s==0||s%100>1&&s%100<11?1:s%100>10&&s%100<20?2:3,20:s=>s==1?0:s==0||s%100>0&&s%100<20?1:2,21:s=>s%100==1?1:s%100==2?2:s%100==3||s%100==4?3:0,22:s=>s==1?0:s==2?1:(s<0||s>10)&&s%10==0?2:3};const es=["v1","v2","v3"],ts=["v4"],Dt={zero:0,one:1,two:2,few:3,many:4,other:5},ns=()=>{const s={};return Xn.forEach(e=>{e.lngs.forEach(t=>{s[t]={numbers:e.nr,plurals:Qn[e.fc]}})}),s};class ss{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=q.create("pluralResolver"),(!this.options.compatibilityJSON||ts.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=ns(),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]:{};if(this.shouldUseIntlApi()){const n=Je(e==="dev"?"en":e),r=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(!e.match(/-|_/))return;const l=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(l,t)}return this.pluralRulesCache[i]=a,a}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};
vendor: 1,299 bytes, line 10
10return this.getSuffixes(e,n).map(r=>`${t}${r}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((r,i)=>Dt[r]-Dt[i]).map(r=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${r}`):n.numbers.map(r=>this.getSuffix(e,r,t)):[]}getSuffix(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));const i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}
vendor: 24,775 bytes, line 10
10shouldUseIntlApi(){return!es.includes(this.options.compatibilityJSON)}}const It=function(s,e,t){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=qn(s,e,t);return!i&&r&&x(t)&&(i=ht(s,t,n),i===void 0&&(i=ht(e,t,n))),i},ct=s=>s.replace(/\$/g,"$$$$");class rs{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=q.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(t=>t),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:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:l,formatSeparator:u,unescapeSuffix:c,unescapePrefix:f,nestingPrefix:d,nestingPrefixEscaped:g,nestingSuffix:k,nestingSuffixEscaped:L,nestingOptionsSeparator:T,maxReplaces:M,alwaysFormat:I}=e.interpolation;this.escape=t!==void 0?t:Hn,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=i?oe(i):a||"{{",this.suffix=o?oe(o):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?oe(d):g||oe("$t("),this.nestingSuffix=k?oe(k):L||oe(")"),this.nestingOptionsSeparator=T||",",this.maxReplaces=M||1e3,this.alwaysFormat=I!==void 0?I:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,n)=>t&&t.source===n?(t.lastIndex=0,t):new RegExp(n,"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,n,r){let i,a,o;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=g=>{if(g.indexOf(this.formatSeparator)<0){const M=It(t,l,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(M,void 0,n,{...r,...t,interpolationkey:g}):M}const k=g.split(this.formatSeparator),L=k.shift().trim(),T=k.join(this.formatSeparator).trim();return this.format(It(t,l,L,this.options.keySeparator,this.options.ignoreJSONStructure),T,n,{...r,...t,interpolationkey:L})};this.resetRegExp();const c=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>ct(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?ct(this.escape(g)):ct(g)}].forEach(g=>{for(o=0;i=g.regex.exec(e);){const k=i[1].trim();if(a=u(k),a===void 0)if(typeof c=="function"){const T=c(e,i,r);a=x(T)?T:""}else if(r&&Object.prototype.hasOwnProperty.call(r,k))a="";else if(f){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`),a="";else!x(a)&&!this.useRawValueToEscape&&(a=Ct(a));const L=g.safeValue(a);if(e=e.replace(i[0],L),f?(g.regex.lastIndex+=a.length,g.regex.lastIndex-=i[0].length):g.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,a;const o=(l,u)=>{const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const f=l.split(new RegExp(`${c}[ ]*{`));let d=`{${f[1]}`;l=f[0],d=this.interpolate(d,a);const g=d.match(/'/g),k=d.match(/"/g);(g&&g.length%2===0&&!k||k.length%2!==0)&&(d=d.replace(/'/g,'"'));try{a=JSON.parse(d),u&&(a={...u,...a})}catch(L){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,L),`${l}${c}${d}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;r=this.nestingRegexp.exec(e);){let l=[];a={...n},a=a.replace&&!x(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let u=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const c=r[1].split(this.formatSeparator).map(f=>f.trim());r[1]=c.shift(),l=c,u=!0}if(i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!x(i))return i;x(i)||(i=Ct(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),u&&(i=l.reduce((c,f)=>this.format(c,f,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}const is=s=>{let e=s.toLowerCase().trim();const t={};if(s.indexOf("(")>-1){const n=s.split("(");e=n[0].toLowerCase().trim();const r=n[1].substring(0,n[1].length-1);e==="currency"&&r.indexOf(":")<0?t.currency||(t.currency=r.trim()):e==="relativetime"&&r.indexOf(":")<0?t.range||(t.range=r.trim()):r.split(";").forEach(a=>{if(a){const[o,...l]=a.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),c=o.trim();t[c]||(t[c]=u),u==="false"&&(t[c]=!1),u==="true"&&(t[c]=!0),isNaN(u)||(t[c]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},le=s=>{const e={};return(t,n,r)=>{let i=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(i={...i,[r.interpolationkey]:void 0});const a=n+JSON.stringify(i);let o=e[a];return o||(o=s(Je(n),r),e[a]=o),o(t)}};class as{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=q.create("formatter"),this.options=e,this.formats={number:le((t,n)=>{const r=new Intl.NumberFormat(t,{...n});return i=>r.format(i)}),currency:le((t,n)=>{const r=new Intl.NumberFormat(t,{...n,style:"currency"});return i=>r.format(i)}),datetime:le((t,n)=>{const r=new Intl.DateTimeFormat(t,{...n});return i=>r.format(i)}),relativetime:le((t,n)=>{const r=new Intl.RelativeTimeFormat(t,{...n});return i=>r.format(i,n.range||"day")}),list:le((t,n)=>{const r=new Intl.ListFormat(t,{...n});return i=>r.format(i)})},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()]=le(t)}format(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(o=>o.indexOf(")")>-1)){const o=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,o)].join(this.formatSeparator)}return i.reduce((o,l)=>{const{formatName:u,formatOptions:c}=is(l);if(this.formats[u]){let f=o;try{const d=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},g=d.locale||d.lng||r.locale||r.lng||n;f=this.formats[u](o,g,{...c,...r,...d})}catch(d){this.logger.warn(d)}return f}else this.logger.warn(`there was no format function for ${u}`);return o},e)}}const os=(s,e)=>{s.pending[e]!==void 0&&(delete s.pending[e],s.pendingCount--)};class ls extends at{constructor(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=q.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const i={},a={},o={},l={};return e.forEach(u=>{let c=!0;t.forEach(f=>{const d=`${u}|${f}`;!n.reload&&this.store.hasResourceBundle(u,f)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?a[d]===void 0&&(a[d]=!0):(this.state[d]=1,c=!1,a[d]===void 0&&(a[d]=!0),i[d]===void 0&&(i[d]=!0),l[f]===void 0&&(l[f]=!0)))}),c||(o[u]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(e,t,n){const r=e.split("|"),i=r[0],a=r[1];t&&this.emit("failedLoading",i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const o={};this.queue.forEach(l=>{Vn(l.loaded,[i],a),os(l,e),t&&l.errors.push(t),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{o[u]||(o[u]={});const c=l.loaded[u];c.length&&c.forEach(f=>{o[u][f]===void 0&&(o[u][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(l=>!l.done)}read(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;const o=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&c&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(u,c)},l=this.backend[n].bind(this.backend);if(l.length===2){try{const u=l(e,t);u&&typeof u.then=="function"?u.then(c=>o(null,c)).catch(o):o(null,u)}catch(u){o(u)}return}return l(e,t,o)}prepareLoading(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=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."),r&&r();x(e)&&(e=this.languageUtils.toResolveHierarchy(e)),x(t)&&(t=[t]);const i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(a=>{this.loadOne(a)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,(a,o)=>{a&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,a),!a&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,o),this.loaded(e,a,o)})}saveMissing(e,t,n,r,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" 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(!(n==null||n==="")){if(this.backend&&this.backend.create){const l={...a,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(e,t,n,r,l):c=u(e,t,n,r),c&&typeof c.then=="function"?c.then(f=>o(null,f)).catch(o):o(null,c)}catch(c){o(c)}else u(e,t,n,r,o,l)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}}const Pt=()=>({debug:!1,initImmediate:!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:s=>{let e={};if(typeof s[1]=="object"&&(e=s[1]),x(s[1])&&(e.defaultValue=s[1]),x(s[2])&&(e.tDescription=s[2]),typeof s[2]=="object"||typeof s[3]=="object"){const t=s[3]||s[2];Object.keys(t).forEach(n=>{e[n]=t[n]})}return e},interpolation:{escapeValue:!0,format:s=>s,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Et=s=>(x(s.ns)&&(s.ns=[s.ns]),x(s.fallbackLng)&&(s.fallbackLng=[s.fallbackLng]),x(s.fallbackNS)&&(s.fallbackNS=[s.fallbackNS]),s.supportedLngs&&s.supportedLngs.indexOf("cimode")<0&&(s.supportedLngs=s.supportedLngs.concat(["cimode"])),s),He=()=>{},us=s=>{Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(t=>{typeof s[t]=="function"&&(s[t]=s[t].bind(s))})};class Te extends at{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Et(e),this.services={},this.logger=q,this.modules={external:[]},us(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)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]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&(x(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=Pt();this.options={...r,...this.options,...Et(t)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const i=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?q.init(i(this.modules.logger),this.options):q.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=as);const f=new At(this.options);this.store=new Rt(this.options.resources,this.options);const d=this.services;d.logger=q,d.resourceStore=this.store,d.languageUtils=f,d.pluralResolver=new ss(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(d.formatter=i(c),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new rs(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new ls(i(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(g){for(var k=arguments.length,L=new Array(k>1?k-1:0),T=1;T<k;T++)L[T-1]=arguments[T];e.emit(g,...L)}),this.modules.languageDetector&&(d.languageDetector=i(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=i(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new Xe(this.services,this.options),this.translator.on("*",function(g){for(var k=arguments.length,L=new Array(k>1?k-1:0),T=1;T<k;T++)L[T-1]=arguments[T];e.emit(g,...L)}),this.modules.external.forEach(g=>{g.init&&g.init(this)})}if(this.format=this.options.interpolation.format,n||(n=He),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[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(c=>{this[c]=function(){return e.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return e.store[c](...arguments),e}});const l=xe(),u=()=>{const c=(f,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),l.resolve(d),n(f,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:He;const r=x(e)?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const i=[],a=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};r?a(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>a(l)),this.options.preload&&this.options.preload.forEach(o=>a(o)),this.services.backendConnector.load(i,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(o)})}else n(null)}reloadResources(e,t,n){const r=xe();return typeof e=="function"&&(n=e,e=void 0),typeof t=="function"&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=He),this.services.backendConnector.reload(e,t,i=>{r.resolve(),n(i)}),r}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"&&Yt.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<this.languages.length;t++){const n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=xe();this.emit("languageChanging",e);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},a=(l,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(l,function(){return n.t(...arguments)})},o=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const u=x(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{a(c,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),r}getFixedT(e,t,n){var r=this;const i=function(a,o){let l;if(typeof o!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),f=2;f<u;f++)c[f-2]=arguments[f];l=r.options.overloadTranslationOptionHandler([a,o].concat(c))}else l={...o};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||n||i.keyPrefix);const d=r.options.keySeparator||".";let g;return l.keyPrefix&&Array.isArray(a)?g=a.map(k=>`${l.keyPrefix}${d}${k}`):g=l.keyPrefix?`${l.keyPrefix}${d}${a}`:a,r.t(g,l)};return x(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&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 n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const a=(o,l)=>{const u=this.services.backendConnector.state[`${o}|${l}`];return u===-1||u===0||u===2};if(t.precheck){const o=t.precheck(this,a);if(o!==void 0)return o}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){const n=xe();return this.options.ns?(x(e)&&(e=[e]),e.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{n.resolve(),t&&t(r)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=xe();x(e)&&(e=[e]);const r=this.options.preload||[],i=e.filter(a=>r.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return i.length?(this.options.preload=r.concat(i),this.loadResources(a=>{n.resolve(),t&&t(a)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.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"],n=this.services&&this.services.languageUtils||new At(Pt());return t.indexOf(n.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 Te(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:He;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new Te(r);return(e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(o=>{i[o]=this[o]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new Rt(this.store.data,r),i.services.resourceStore=i.store),i.translator=new Xe(i.services,r),i.translator.on("*",function(o){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];i.emit(o,...u)}),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const N=Te.createInstance();N.createInstance=Te.createInstance;N.createInstance;N.dir;N.init;N.loadResources;N.reloadResources;N.use;N.changeLanguage;N.getFixedT;N.t;N.exists;N.setDefaultNamespace;N.hasLoadedNamespace;N.loadNamespaces;N.loadLanguages;function cs(s,e){if(!(s instanceof e))throw new TypeError("Cannot call a class as a function")}function Oe(s){"@babel/helpers - typeof";return Oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oe(s)}function ds(s,e){if(Oe(s)!="object"||!s)return s;var t=s[Symbol.toPrimitive];if(t!==void 0){var n=t.call(s,e);if(Oe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(s)}function hs(s){var e=ds(s,"string");return Oe(e)=="symbol"?e:e+""}function fs(s,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(s,hs(n.key),n)}}function ps(s,e,t){return e&&fs(s.prototype,e),Object.defineProperty(s,"prototype",{writable:!1}),s}var Kt=[],ms=Kt.forEach,gs=Kt.slice;
vendor: 6,008 bytes, line 10
10function ys(s){return ms.call(gs.call(arguments,1),function(e){if(e)for(var t in e)s[t]===void 0&&(s[t]=e[t])}),s}var Mt=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,vs=function(e,t,n){var r=n||{};r.path=r.path||"/";var i=encodeURIComponent(t),a="".concat(e,"=").concat(i);if(r.maxAge>0){var o=r.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");a+="; Max-Age=".concat(Math.floor(o))}if(r.domain){if(!Mt.test(r.domain))throw new TypeError("option domain is invalid");a+="; Domain=".concat(r.domain)}if(r.path){if(!Mt.test(r.path))throw new TypeError("option path is invalid");a+="; Path=".concat(r.path)}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(a+="; HttpOnly"),r.secure&&(a+="; Secure"),r.sameSite){var l=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a},jt={create:function(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+n*60*1e3)),r&&(i.domain=r),document.cookie=vs(e,encodeURIComponent(t),i)},read:function(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove:function(e){this.create(e,"",-1)}},bs={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&typeof document<"u"){var n=jt.read(e.lookupCookie);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&typeof document<"u"&&jt.create(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},ws={name:"querystring",lookup:function(e){var t;if(typeof window<"u"){var n=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=n.substring(1),i=r.split("&"),a=0;a<i.length;a++){var o=i[a].indexOf("=");if(o>0){var l=i[a].substring(0,o);l===e.lookupQuerystring&&(t=i[a].substring(o+1))}}}return t}},ke=null,$t=function(){if(ke!==null)return ke;try{ke=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{ke=!1}return ke},xs={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&$t()){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&$t()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},_e=null,Bt=function(){if(_e!==null)return _e;try{_e=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{_e=!1}return _e},ks={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&Bt()){var n=window.sessionStorage.getItem(e.lookupSessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&Bt()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},_s={name:"navigator",lookup:function(e){var t=[];if(typeof navigator<"u"){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)t.push(navigator.languages[n]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},Ss={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||(typeof document<"u"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(t=n.getAttribute("lang")),t}},Cs={name:"path",lookup:function(e){var t;if(typeof window<"u"){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if(typeof e.lookupFromPathIndex=="number"){if(typeof n[e.lookupFromPathIndex]!="string")return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}},Ls={name:"subdomain",lookup:function(e){var t=typeof e.lookupFromSubdomainIndex=="number"?e.lookupFromSubdomainIndex+1:1,n=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[t]}},Jt=!1;try{document.cookie,Jt=!0}catch{}var Gt=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Jt||Gt.splice(1,1);function Ts(){return{order:Gt,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}}var Xt=function(){function s(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};cs(this,s),this.type="languageDetector",this.detectors={},this.init(e,t)}return ps(s,[{key:"init",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=ys(n,this.options||{},Ts()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(i){return i.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(bs),this.addDetector(ws),this.addDetector(xs),this.addDetector(ks),this.addDetector(_s),this.addDetector(Ss),this.addDetector(Cs),this.addDetector(Ls)}},{key:"addDetector",value:function(t){return this.detectors[t.name]=t,this}},{key:"detect",value:function(t){var n=this;t||(t=this.options.order);var r=[];return t.forEach(function(i){if(n.detectors[i]){var a=n.detectors[i].lookup(n.options);
10a&&typeof a=="string"&&(a=[a]),a&&(r=r.concat(a))}}),r=r.map(function(i){return n.options.convertDetectedLanguage(i)}),this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}},{key:"cacheUserLanguage",value:function(t,n){var r=this;n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(function(i){r.detectors[i]&&r.detectors[i].cacheUserLanguage(t,r.options)}))}}])}();Xt.type="languageDetector";var We={},Ut;function Os(){if(Ut)return We;Ut=1;var s=On();return We.createRoot=s.createRoot,We.hydrateRoot=s.hydrateRoot,We}var Rs=Os();const Ns={type:"3rdParty",init(s){Pn(s.options.react),En(s)}};function As(s){let{i18n:e,defaultNS:t,children:n}=s;const r=A.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return A.createElement(Mn.Provider,{value:r},n)}function Ds(s,e){return+G(s)-+G(e)}function Is(s,e,t){const n=Ds(s,e)/1e3;return Dn(t==null?void 0:t.roundingMethod)(n)}function Ps(s,e,t){const n=Ht(),r=(t==null?void 0:t.locale)??n.locale??vt,i=2520,a=Nn(s,e);if(isNaN(a))throw new RangeError("Invalid time value");const o=Object.assign({},t,{addSuffix:t==null?void 0:t.addSuffix,comparison:a});let l,u;a>0?(l=G(e),u=G(s)):(l=G(s),u=G(e));const c=Is(u,l),f=(_t(u)-_t(l))/1e3,d=Math.round((c-f)/60);let g;if(d<2)return t!=null&&t.includeSeconds?c<5?r.formatDistance("lessThanXSeconds",5,o):c<10?r.formatDistance("lessThanXSeconds",10,o):c<20?r.formatDistance("lessThanXSeconds",20,o):c<40?r.formatDistance("halfAMinute",0,o):c<60?r.formatDistance("lessThanXMinutes",1,o):r.formatDistance("xMinutes",1,o):d===0?r.formatDistance("lessThanXMinutes",1,o):r.formatDistance("xMinutes",d,o);if(d<45)return r.formatDistance("xMinutes",d,o);if(d<90)return r.formatDistance("aboutXHours",1,o);if(d<St){const k=Math.round(d/60);return r.formatDistance("aboutXHours",k,o)}else{if(d<i)return r.formatDistance("xDays",1,o);if(d<ze){const k=Math.round(d/St);return r.formatDistance("xDays",k,o)}else if(d<ze*2)return g=Math.round(d/ze),r.formatDistance("aboutXMonths",g,o)}if(g=An(u,l),g<12){const k=Math.round(d/ze);return r.formatDistance("xMonths",k,o)}else{const k=g%12,L=Math.trunc(g/12);return k<3?r.formatDistance("aboutXYears",L,o):k<9?r.formatDistance("overXYears",L,o):r.formatDistance("almostXYears",L+1,o)}}function Es(s,e,t){var f,d,g,k;const n=G(s),r=G(e),i=Ht(),a=(t==null?void 0:t.locale)??i.locale??vt,o=(t==null?void 0:t.weekStartsOn)??((d=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:d.weekStartsOn)??i.weekStartsOn??((k=(g=i.locale)==null?void 0:g.options)==null?void 0:k.weekStartsOn)??0,l=In(n,r);if(isNaN(l))throw new RangeError("Invalid time value");let u;l<-6?u="other":l<-1?u="lastWeek":l<0?u="yesterday":l<1?u="today":l<2?u="tomorrow":l<7?u="nextWeek":u="other";const c=a.formatRelative(u,n,r,{locale:a,weekStartsOn:o});return Ye(n,c,{locale:a,weekStartsOn:o})}var C;(function(s){s.assertEqual=r=>r;function e(r){}s.assertIs=e;function t(r){throw new Error}s.assertNever=t,s.arrayToEnum=r=>{const i={};for(const a of r)i[a]=a;return i},s.getValidEnumValues=r=>{const i=s.objectKeys(r).filter(o=>typeof r[r[o]]!="number"),a={};for(const o of i)a[o]=r[o];return s.objectValues(a)},s.objectValues=r=>s.objectKeys(r).map(function(i){return r[i]}),s.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{const i=[];for(const a in r)Object.prototype.hasOwnProperty.call(r,a)&&i.push(a);return i},s.find=(r,i)=>{for(const a of r)if(i(a))return a},s.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&isFinite(r)&&Math.floor(r)===r;function n(r,i=" | "){return r.map(a=>typeof a=="string"?`'${a}'`:a).join(i)}s.joinValues=n,s.jsonStringifyReplacer=(r,i)=>typeof i=="bigint"?i.toString():i})(C||(C={}));var ft;(function(s){s.mergeShapes=(e,t)=>({...e,...t})})(ft||(ft={}));const m=C.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),K=s=>{switch(typeof s){case"undefined":return m.undefined;case"string":return m.string;case"number":return isNaN(s)?m.nan:m.number;case"boolean":return m.boolean;case"function":return m.function;case"bigint":return m.bigint;case"symbol":return m.symbol;case"object":return Array.isArray(s)?m.array:s===null?m.null:s.then&&typeof s.then=="function"&&s.catch&&typeof s.catch=="function"?m.promise:typeof Map<"u"&&s instanceof Map?m.map:typeof Set<"u"&&s instanceof Set?m.set:typeof Date<"u"&&s instanceof Date?m.date:m.object;default:return m.unknown}}
vendor: 53,326 bytes, line 10
10,h=C.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Ms=s=>JSON.stringify(s,null,2).replace(/"([^"]+)":/g,"$1:");class B extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(i){return i.message},n={_errors:[]},r=i=>{for(const a of i.issues)if(a.code==="invalid_union")a.unionErrors.map(r);else if(a.code==="invalid_return_type")r(a.returnTypeError);else if(a.code==="invalid_arguments")r(a.argumentsError);else if(a.path.length===0)n._errors.push(t(a));else{let o=n,l=0;for(;l<a.path.length;){const u=a.path[l];l===a.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(t(a))):o[u]=o[u]||{_errors:[]},o=o[u],l++}}};return r(this),n}static assert(e){if(!(e instanceof B))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,C.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){const t={},n=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}B.create=s=>new B(s);const he=(s,e)=>{let t;switch(s.code){case h.invalid_type:s.received===m.undefined?t="Required":t=`Expected ${s.expected}, received ${s.received}`;break;case h.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(s.expected,C.jsonStringifyReplacer)}`;break;case h.unrecognized_keys:t=`Unrecognized key(s) in object: ${C.joinValues(s.keys,", ")}`;break;case h.invalid_union:t="Invalid input";break;case h.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${C.joinValues(s.options)}`;break;case h.invalid_enum_value:t=`Invalid enum value. Expected ${C.joinValues(s.options)}, received '${s.received}'`;break;case h.invalid_arguments:t="Invalid function arguments";break;case h.invalid_return_type:t="Invalid function return type";break;case h.invalid_date:t="Invalid date";break;case h.invalid_string:typeof s.validation=="object"?"includes"in s.validation?(t=`Invalid input: must include "${s.validation.includes}"`,typeof s.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${s.validation.position}`)):"startsWith"in s.validation?t=`Invalid input: must start with "${s.validation.startsWith}"`:"endsWith"in s.validation?t=`Invalid input: must end with "${s.validation.endsWith}"`:C.assertNever(s.validation):s.validation!=="regex"?t=`Invalid ${s.validation}`:t="Invalid";break;case h.too_small:s.type==="array"?t=`Array must contain ${s.exact?"exactly":s.inclusive?"at least":"more than"} ${s.minimum} element(s)`:s.type==="string"?t=`String must contain ${s.exact?"exactly":s.inclusive?"at least":"over"} ${s.minimum} character(s)`:s.type==="number"?t=`Number must be ${s.exact?"exactly equal to ":s.inclusive?"greater than or equal to ":"greater than "}${s.minimum}`:s.type==="date"?t=`Date must be ${s.exact?"exactly equal to ":s.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(s.minimum))}`:t="Invalid input";break;case h.too_big:s.type==="array"?t=`Array must contain ${s.exact?"exactly":s.inclusive?"at most":"less than"} ${s.maximum} element(s)`:s.type==="string"?t=`String must contain ${s.exact?"exactly":s.inclusive?"at most":"under"} ${s.maximum} character(s)`:s.type==="number"?t=`Number must be ${s.exact?"exactly":s.inclusive?"less than or equal to":"less than"} ${s.maximum}`:s.type==="bigint"?t=`BigInt must be ${s.exact?"exactly":s.inclusive?"less than or equal to":"less than"} ${s.maximum}`:s.type==="date"?t=`Date must be ${s.exact?"exactly":s.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(s.maximum))}`:t="Invalid input";break;case h.custom:t="Invalid input";break;case h.invalid_intersection_types:t="Intersection results could not be merged";break;case h.not_multiple_of:t=`Number must be a multiple of ${s.multipleOf}`;break;case h.not_finite:t="Number must be finite";break;default:t=e.defaultError,C.assertNever(s)}return{message:t}};let Qt=he;function js(s){Qt=s}function Qe(){return Qt}const et=s=>{const{data:e,path:t,errorMaps:n,issueData:r}=s,i=[...t,...r.path||[]],a={...r,path:i};if(r.message!==void 0)return{...r,path:i,message:r.message};let o="";const l=n.filter(u=>!!u).slice().reverse();for(const u of l)o=u(a,{data:e,defaultError:o}).message;return{...r,path:i,message:o}},$s=[];function p(s,e){const t=Qe(),n=et({issueData:e,data:s.data,path:s.path,errorMaps:[s.common.contextualErrorMap,s.schemaErrorMap,t,t===he?void 0:he].filter(r=>!!r)});s.common.issues.push(n)}class D{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if(r.status==="aborted")return w;r.status==="dirty"&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const r of t){const i=await r.key,a=await r.value;n.push({key:i,value:a})}return D.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:i,value:a}=r;if(i.status==="aborted"||a.status==="aborted")return w;i.status==="dirty"&&e.dirty(),a.status==="dirty"&&e.dirty(),i.value!=="__proto__"&&(typeof a.value<"u"||r.alwaysSet)&&(n[i.value]=a.value)}return{status:e.value,value:n}}}const w=Object.freeze({status:"aborted"}),ce=s=>({status:"dirty",value:s}),E=s=>({status:"valid",value:s}),pt=s=>s.status==="aborted",mt=s=>s.status==="dirty",re=s=>s.status==="valid",Re=s=>typeof Promise<"u"&&s instanceof Promise;function tt(s,e,t,n){if(typeof e=="function"?s!==e||!0:!e.has(s))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(s)}function en(s,e,t,n,r){if(typeof e=="function"?s!==e||!0:!e.has(s))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(s,t),t}var v;(function(s){s.errToObj=e=>typeof e=="string"?{message:e}:e||{},s.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(v||(v={}));var Se,Ce;class H{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Zt=(s,e)=>{if(re(e))return{success:!0,data:e.value};if(!s.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new B(s.common.issues);return this._error=t,this._error}}};function _(s){if(!s)return{};const{errorMap:e,invalid_type_error:t,required_error:n,description:r}=s;if(e&&(t||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:r}:{errorMap:(a,o)=>{var l,u;const{message:c}=s;return a.code==="invalid_enum_value"?{message:c??o.defaultError}:typeof o.data>"u"?{message:(l=c??n)!==null&&l!==void 0?l:o.defaultError}:a.code!=="invalid_type"?{message:o.defaultError}:{message:(u=c??t)!==null&&u!==void 0?u:o.defaultError}},description:r}}class S{get description(){return this._def.description}_getType(e){return K(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:K(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new D,ctx:{common:e.parent.common,data:e.data,parsedType:K(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(Re(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const r={common:{issues:[],async:(n=t==null?void 0:t.async)!==null&&n!==void 0?n:!1,contextualErrorMap:t==null?void 0:t.errorMap},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:K(e)},i=this._parseSync({data:e,path:r.path,parent:r});return Zt(r,i)}"~validate"(e){var t,n;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:K(e)};if(!this["~standard"].async)try{const i=this._parseSync({data:e,path:[],parent:r});return re(i)?{value:i.value}:{issues:r.common.issues}}catch(i){!((n=(t=i==null?void 0:i.message)===null||t===void 0?void 0:t.toLowerCase())===null||n===void 0)&&n.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(i=>re(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:t==null?void 0:t.errorMap,async:!0},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:K(e)},r=this._parse({data:e,path:n.path,parent:n}),i=await(Re(r)?r:Promise.resolve(r));return Zt(n,i)}refine(e,t){const n=r=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(r):t;return this._refinement((r,i)=>{const a=e(r),o=()=>i.addIssue({code:h.custom,...n(r)});return typeof Promise<"u"&&a instanceof Promise?a.then(l=>l?!0:(o(),!1)):a?!0:(o(),!1)})}refinement(e,t){return this._refinement((n,r)=>e(n)?!0:(r.addIssue(typeof t=="function"?t(n,r):t),!1))}_refinement(e){return new V({schema:this,typeName:b.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:t=>this["~validate"](t)}}optional(){return z.create(this,this._def)}nullable(){return te.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return F.create(this)}promise(){return pe.create(this,this._def)}or(e){return Ie.create([this,e],this._def)}and(e){return Pe.create(this,e,this._def)}transform(e){return new V({..._(this._def),schema:this,typeName:b.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new Be({..._(this._def),innerType:this,defaultValue:t,typeName:b.ZodDefault})}brand(){return new bt({typeName:b.ZodBranded,type:this,..._(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new Ue({..._(this._def),innerType:this,catchValue:t,typeName:b.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return Fe.create(this,e)}readonly(){return Ze.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Bs=/^c[^\s-]{8,}$/i,Us=/^[0-9a-z]+$/,Zs=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Fs=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Vs=/^[a-z0-9_-]{21}$/i,qs=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,zs=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Hs=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Ws="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let dt;const Ys=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ks=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Js=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Gs=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Xs=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Qs=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,tn="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",er=new RegExp(`^${tn}$`);function nn(s){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return s.precision?e=`${e}\\.\\d{${s.precision}}`:s.precision==null&&(e=`${e}(\\.\\d+)?`),e}function tr(s){return new RegExp(`^${nn(s)}$`)}function sn(s){let e=`${tn}T${nn(s)}`;const t=[];return t.push(s.local?"Z?":"Z"),s.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function nr(s,e){return!!((e==="v4"||!e)&&Ys.test(s)||(e==="v6"||!e)&&Js.test(s))}function sr(s,e){if(!qs.test(s))return!1;try{const[t]=s.split("."),n=t.replace(/-/g,"+").replace(/_/g,"/").padEnd(t.length+(4-t.length%4)%4,"="),r=JSON.parse(atob(n));return!(typeof r!="object"||r===null||!r.typ||!r.alg||e&&r.alg!==e)}catch{return!1}}function rr(s,e){return!!((e==="v4"||!e)&&Ks.test(s)||(e==="v6"||!e)&&Gs.test(s))}class Z extends S{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==m.string){const i=this._getOrReturnCtx(e);return p(i,{code:h.invalid_type,expected:m.string,received:i.parsedType}),w}const n=new D;let r;for(const i of this._def.checks)if(i.kind==="min")e.data.length<i.value&&(r=this._getOrReturnCtx(e,r),p(r,{code:h.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="max")e.data.length>i.value&&(r=this._getOrReturnCtx(e,r),p(r,{code:h.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){const a=e.data.length>i.value,o=e.data.length<i.value;(a||o)&&(r=this._getOrReturnCtx(e,r),a?p(r,{code:h.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):o&&p(r,{code:h.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),n.dirty())}else if(i.kind==="email")Hs.test(e.data)||(r=this._getOrReturnCtx(e,r),p(r,{validation:"email",code:h.invalid_string,message:i.message}),n.dirty());else if(i.kind==="emoji")dt||(dt=new RegExp(Ws,"u")),dt.test(e.data)||(r=this._getOrReturnCtx(e,r),p(r,{validation:"emoji",code:h.invalid_string,message:i.message}),n.dirty());else if(i.kind==="uuid")Fs.test(e.data)||(r=this._getOrReturnCtx(e,r),p(r,{validation:"uuid",code:h.invalid_string,message:i.message}),n.dirty());else if(i.kind==="nanoid")Vs.test(e.data)||(r=this._getOrReturnCtx(e,r),p(r,{validation:"nanoid",code:h.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid")Bs.test(e.data)||(r=this._getOrReturnCtx(e,r),p(r,{validation:"cuid",code:h.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid2")Us.test(e.data)||(r=this._getOrReturnCtx(e,r),p(r,{validation:"cuid2",code:h.invalid_string,message:i.message}),n.dirty());else if(i.kind==="ulid")Zs.test(e.data)||(r=this._getOrReturnCtx(e,r),p(r,{validation:"ulid",code:h.invalid_string,message:i.message}),n.dirty());else if(i.kind==="url")try{new URL(e.data)}catch{r=this._getOrReturnCtx(e,r),p(r,{validation:"url",code:h.invalid_string,message:i.message}),n.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(e.data)||(r=this._getOrReturnCtx(e,r),p(r,{validation:"regex",code:h.invalid_string,message:i.message}),n.dirty())):i.kind==="trim"?e.data=e.data.trim():i.kind==="includes"?e.data.includes(i.value,i.position)||(r=this._getOrReturnCtx(e,r),p(r,{code:h.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),n.dirty()):i.kind==="toLowerCase"?e.data=e.data.toLowerCase():i.kind==="toUpperCase"?e.data=e.data.toUpperCase():i.kind==="startsWith"?e.data.startsWith(i.value)||(r=this._getOrReturnCtx(e,r),p(r,{code:h.invalid_string,validation:{startsWith:i.value},message:i.message}),n.dirty()):i.kind==="endsWith"?e.data.endsWith(i.value)||(r=this._getOrReturnCtx(e,r),p(r,{code:h.invalid_string,validation:{endsWith:i.value},message:i.message}),n.dirty()):i.kind==="datetime"?sn(i).test(e.data)||(r=this._getOrReturnCtx(e,r),p(r,{code:h.invalid_string,validation:"datetime",message:i.message}),n.dirty()):i.kind==="date"?er.test(e.data)||(r=this._getOrReturnCtx(e,r),p(r,{code:h.invalid_string,validation:"date",message:i.message}),n.dirty()):i.kind==="time"?tr(i).test(e.data)||(r=this._getOrReturnCtx(e,r),p(r,{code:h.invalid_string,validation:"time",message:i.message}),n.dirty()):i.kind==="duration"?zs.test(e.data)||(r=this._getOrReturnCtx(e,r),p(r,{validation:"duration",code:h.invalid_string,message:i.message}),n.dirty()):i.kind==="ip"?nr(e.data,i.version)||(r=this._getOrReturnCtx(e,r),p(r,{validation:"ip",code:h.invalid_string,message:i.message}),n.dirty()):i.kind==="jwt"?sr(e.data,i.alg)||(r=this._getOrReturnCtx(e,r),p(r,{validation:"jwt",code:h.invalid_string,message:i.message}),n.dirty()):i.kind==="cidr"?rr(e.data,i.version)||(r=this._getOrReturnCtx(e,r),p(r,{validation:"cidr",code:h.invalid_string,message:i.message}),n.dirty()):i.kind==="base64"?Xs.test(e.data)||(r=this._getOrReturnCtx(e,r),p(r,{validation:"base64",code:h.invalid_string,message:i.message}),n.dirty()):i.kind==="base64url"?Qs.test(e.data)||(r=this._getOrReturnCtx(e,r),p(r,{validation:"base64url",code:h.invalid_string,message:i.message}),n.dirty()):C.assertNever(i);return{status:n.value,value:e.data}}_regex(e,t,n){return this.refinement(r=>e.test(r),{validation:t,code:h.invalid_string,...v.errToObj(n)})}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...v.errToObj(e)})}url(e){return this._addCheck({kind:"url",...v.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...v.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...v.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...v.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...v.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...v.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...v.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...v.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...v.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...v.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...v.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...v.errToObj(e)})}datetime(e){var t,n;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(t=e==null?void 0:e.offset)!==null&&t!==void 0?t:!1,local:(n=e==null?void 0:e.local)!==null&&n!==void 0?n:!1,...v.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...v.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...v.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...v.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t==null?void 0:t.position,...v.errToObj(t==null?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...v.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...v.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...v.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...v.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...v.errToObj(t)})}nonempty(e){return this.min(1,v.errToObj(e))}trim(){return new Z({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Z({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Z({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}Z.create=s=>{var e;return new Z({checks:[],typeName:b.ZodString,coerce:(e=s==null?void 0:s.coerce)!==null&&e!==void 0?e:!1,..._(s)})};function ir(s,e){const t=(s.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,r=t>n?t:n,i=parseInt(s.toFixed(r).replace(".","")),a=parseInt(e.toFixed(r).replace(".",""));return i%a/Math.pow(10,r)}class X extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==m.number){const i=this._getOrReturnCtx(e);return p(i,{code:h.invalid_type,expected:m.number,received:i.parsedType}),w}let n;const r=new D;for(const i of this._def.checks)i.kind==="int"?C.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:h.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(n=this._getOrReturnCtx(e,n),p(n,{code:h.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),p(n,{code:h.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="multipleOf"?ir(e.data,i.value)!==0&&(n=this._getOrReturnCtx(e,n),p(n,{code:h.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:h.not_finite,message:i.message}),r.dirty()):C.assertNever(i);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,v.toString(t))}gt(e,t){return this.setLimit("min",e,!1,v.toString(t))}lte(e,t){return this.setLimit("max",e,!0,v.toString(t))}lt(e,t){return this.setLimit("max",e,!1,v.toString(t))}setLimit(e,t,n,r){return new X({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:v.toString(r)}]})}_addCheck(e){return new X({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:v.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:v.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:v.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:v.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:v.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:v.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:v.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:v.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:v.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&C.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(t===null||n.value>t)&&(t=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}X.create=s=>new X({checks:[],typeName:b.ZodNumber,coerce:(s==null?void 0:s.coerce)||!1,..._(s)});class Q extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==m.bigint)return this._getInvalidInput(e);let n;const r=new D;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(n=this._getOrReturnCtx(e,n),p(n,{code:h.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),p(n,{code:h.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),p(n,{code:h.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):C.assertNever(i);return{status:r.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return p(t,{code:h.invalid_type,expected:m.bigint,received:t.parsedType}),w}gte(e,t){return this.setLimit("min",e,!0,v.toString(t))}gt(e,t){return this.setLimit("min",e,!1,v.toString(t))}lte(e,t){return this.setLimit("max",e,!0,v.toString(t))}lt(e,t){return this.setLimit("max",e,!1,v.toString(t))}setLimit(e,t,n,r){return new Q({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:v.toString(r)}]})}_addCheck(e){return new Q({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:v.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:v.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:v.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:v.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:v.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}Q.create=s=>{var e;return new Q({checks:[],typeName:b.ZodBigInt,coerce:(e=s==null?void 0:s.coerce)!==null&&e!==void 0?e:!1,..._(s)})};class Ne extends S{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==m.boolean){const n=this._getOrReturnCtx(e);return p(n,{code:h.invalid_type,expected:m.boolean,received:n.parsedType}),w}return E(e.data)}}Ne.create=s=>new Ne({typeName:b.ZodBoolean,coerce:(s==null?void 0:s.coerce)||!1,..._(s)});class ie extends S{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==m.date){const i=this._getOrReturnCtx(e);return p(i,{code:h.invalid_type,expected:m.date,received:i.parsedType}),w}if(isNaN(e.data.getTime())){const i=this._getOrReturnCtx(e);return p(i,{code:h.invalid_date}),w}const n=new D;let r;for(const i of this._def.checks)i.kind==="min"?e.data.getTime()<i.value&&(r=this._getOrReturnCtx(e,r),p(r,{code:h.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),n.dirty()):i.kind==="max"?e.data.getTime()>i.value&&(r=this._getOrReturnCtx(e,r),p(r,{code:h.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):C.assertNever(i);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ie({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:v.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:v.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}}ie.create=s=>new ie({checks:[],coerce:(s==null?void 0:s.coerce)||!1,typeName:b.ZodDate,..._(s)});class nt extends S{_parse(e){if(this._getType(e)!==m.symbol){const n=this._getOrReturnCtx(e);return p(n,{code:h.invalid_type,expected:m.symbol,received:n.parsedType}),w}return E(e.data)}}nt.create=s=>new nt({typeName:b.ZodSymbol,..._(s)});class Ae extends S{_parse(e){if(this._getType(e)!==m.undefined){const n=this._getOrReturnCtx(e);return p(n,{code:h.invalid_type,expected:m.undefined,received:n.parsedType}),w}return E(e.data)}}Ae.create=s=>new Ae({typeName:b.ZodUndefined,..._(s)});class De extends S{_parse(e){if(this._getType(e)!==m.null){const n=this._getOrReturnCtx(e);return p(n,{code:h.invalid_type,expected:m.null,received:n.parsedType}),w}return E(e.data)}}De.create=s=>new De({typeName:b.ZodNull,..._(s)});class fe extends S{constructor(){super(...arguments),this._any=!0}_parse(e){return E(e.data)}}fe.create=s=>new fe({typeName:b.ZodAny,..._(s)});class se extends S{constructor(){super(...arguments),this._unknown=!0}_parse(e){return E(e.data)}}se.create=s=>new se({typeName:b.ZodUnknown,..._(s)});class J extends S{_parse(e){const t=this._getOrReturnCtx(e);return p(t,{code:h.invalid_type,expected:m.never,received:t.parsedType}),w}}J.create=s=>new J({typeName:b.ZodNever,..._(s)});class st extends S{_parse(e){if(this._getType(e)!==m.undefined){const n=this._getOrReturnCtx(e);return p(n,{code:h.invalid_type,expected:m.void,received:n.parsedType}),w}return E(e.data)}}st.create=s=>new st({typeName:b.ZodVoid,..._(s)});class F extends S{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==m.array)return p(t,{code:h.invalid_type,expected:m.array,received:t.parsedType}),w;if(r.exactLength!==null){const a=t.data.length>r.exactLength.value,o=t.data.length<r.exactLength.value;(a||o)&&(p(t,{code:a?h.too_big:h.too_small,minimum:o?r.exactLength.value:void 0,maximum:a?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(r.minLength!==null&&t.data.length<r.minLength.value&&(p(t,{code:h.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),r.maxLength!==null&&t.data.length>r.maxLength.value&&(p(t,{code:h.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((a,o)=>r.type._parseAsync(new H(t,a,t.path,o)))).then(a=>D.mergeArray(n,a));const i=[...t.data].map((a,o)=>r.type._parseSync(new H(t,a,t.path,o)));return D.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new F({...this._def,minLength:{value:e,message:v.toString(t)}})}max(e,t){return new F({...this._def,maxLength:{value:e,message:v.toString(t)}})}length(e,t){return new F({...this._def,exactLength:{value:e,message:v.toString(t)}})}nonempty(e){return this.min(1,e)}}F.create=(s,e)=>new F({type:s,minLength:null,maxLength:null,exactLength:null,typeName:b.ZodArray,..._(e)});function ue(s){if(s instanceof O){const e={};for(const t in s.shape){const n=s.shape[t];e[t]=z.create(ue(n))}return new O({...s._def,shape:()=>e})}else return s instanceof F?new F({...s._def,type:ue(s.element)}):s instanceof z?z.create(ue(s.unwrap())):s instanceof te?te.create(ue(s.unwrap())):s instanceof W?W.create(s.items.map(e=>ue(e))):s}class O extends S{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),t=C.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==m.object){const u=this._getOrReturnCtx(e);return p(u,{code:h.invalid_type,expected:m.object,received:u.parsedType}),w}const{status:n,ctx:r}=this._processInputParams(e),{shape:i,keys:a}=this._getCached(),o=[];if(!(this._def.catchall instanceof J&&this._def.unknownKeys==="strip"))for(const u in r.data)a.includes(u)||o.push(u);const l=[];for(const u of a){const c=i[u],f=r.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new H(r,f,r.path,u)),alwaysSet:u in r.data})}if(this._def.catchall instanceof J){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of o)l.push({key:{status:"valid",value:c},value:{status:"valid",value:r.data[c]}});else if(u==="strict")o.length>0&&(p(r,{code:h.unrecognized_keys,keys:o}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of o){const f=r.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new H(r,f,r.path,c)),alwaysSet:c in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const f=await c.key,d=await c.value;u.push({key:f,value:d,alwaysSet:c.alwaysSet})}return u}).then(u=>D.mergeObjectSync(n,u)):D.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(e){return v.errToObj,new O({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,n)=>{var r,i,a,o;const l=(a=(i=(r=this._def).errorMap)===null||i===void 0?void 0:i.call(r,t,n).message)!==null&&a!==void 0?a:n.defaultError;return t.code==="unrecognized_keys"?{message:(o=v.errToObj(e).message)!==null&&o!==void 0?o:l}:{message:l}}}:{}})}strip(){return new O({...this._def,unknownKeys:"strip"})}passthrough(){return new O({...this._def,unknownKeys:"passthrough"})}extend(e){return new O({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new O({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:b.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new O({...this._def,catchall:e})}pick(e){const t={};return C.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new O({...this._def,shape:()=>t})}omit(e){const t={};return C.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new O({...this._def,shape:()=>t})}deepPartial(){return ue(this)}partial(e){const t={};return C.objectKeys(this.shape).forEach(n=>{const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}),new O({...this._def,shape:()=>t})}required(e){const t={};return C.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof z;)i=i._def.innerType;t[n]=i}}),new O({...this._def,shape:()=>t})}keyof(){return rn(C.objectKeys(this.shape))}}O.create=(s,e)=>new O({shape:()=>s,unknownKeys:"strip",catchall:J.create(),typeName:b.ZodObject,..._(e)});O.strictCreate=(s,e)=>new O({shape:()=>s,unknownKeys:"strict",catchall:J.create(),typeName:b.ZodObject,..._(e)});O.lazycreate=(s,e)=>new O({shape:s,unknownKeys:"strip",catchall:J.create(),typeName:b.ZodObject,..._(e)});class Ie extends S{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;function r(i){for(const o of i)if(o.result.status==="valid")return o.result;for(const o of i)if(o.result.status==="dirty")return t.common.issues.push(...o.ctx.common.issues),o.result;const a=i.map(o=>new B(o.ctx.common.issues));return p(t,{code:h.invalid_union,unionErrors:a}),w}if(t.common.async)return Promise.all(n.map(async i=>{const a={...t,common:{...t.common,issues:[]},parent:null};return{result:await i._parseAsync({data:t.data,path:t.path,parent:a}),ctx:a}})).then(r);{let i;const a=[];for(const l of n){const u={...t,common:{...t.common,issues:[]},parent:null},c=l._parseSync({data:t.data,path:t.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!i&&(i={result:c,ctx:u}),u.common.issues.length&&a.push(u.common.issues)}if(i)return t.common.issues.push(...i.ctx.common.issues),i.result;const o=a.map(l=>new B(l));return p(t,{code:h.invalid_union,unionErrors:o}),w}}get options(){return this._def.options}}Ie.create=(s,e)=>new Ie({options:s,typeName:b.ZodUnion,..._(e)});const Y=s=>s instanceof Me?Y(s.schema):s instanceof V?Y(s.innerType()):s instanceof je?[s.value]:s instanceof ee?s.options:s instanceof $e?C.objectValues(s.enum):s instanceof Be?Y(s._def.innerType):s instanceof Ae?[void 0]:s instanceof De?[null]:s instanceof z?[void 0,...Y(s.unwrap())]:s instanceof te?[null,...Y(s.unwrap())]:s instanceof bt||s instanceof Ze?Y(s.unwrap()):s instanceof Ue?Y(s._def.innerType):[];class ot extends S{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==m.object)return p(t,{code:h.invalid_type,expected:m.object,received:t.parsedType}),w;const n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(p(t,{code:h.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),w)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const i of t){const a=Y(i.shape[e]);if(!a.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const o of a){if(r.has(o))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);r.set(o,i)}}return new ot({typeName:b.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,..._(n)})}}function gt(s,e){const t=K(s),n=K(e);if(s===e)return{valid:!0,data:s};if(t===m.object&&n===m.object){const r=C.objectKeys(e),i=C.objectKeys(s).filter(o=>r.indexOf(o)!==-1),a={...s,...e};for(const o of i){const l=gt(s[o],e[o]);if(!l.valid)return{valid:!1};a[o]=l.data}return{valid:!0,data:a}}else if(t===m.array&&n===m.array){if(s.length!==e.length)return{valid:!1};const r=[];for(let i=0;i<s.length;i++){const a=s[i],o=e[i],l=gt(a,o);if(!l.valid)return{valid:!1};r.push(l.data)}return{valid:!0,data:r}}else return t===m.date&&n===m.date&&+s==+e?{valid:!0,data:s}:{valid:!1}}class Pe extends S{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(i,a)=>{if(pt(i)||pt(a))return w;const o=gt(i.value,a.value);return o.valid?((mt(i)||mt(a))&&t.dirty(),{status:t.value,value:o.data}):(p(n,{code:h.invalid_intersection_types}),w)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,a])=>r(i,a)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Pe.create=(s,e,t)=>new Pe({left:s,right:e,typeName:b.ZodIntersection,..._(t)});class W extends S{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==m.array)return p(n,{code:h.invalid_type,expected:m.array,received:n.parsedType}),w;if(n.data.length<this._def.items.length)return p(n,{code:h.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),w;!this._def.rest&&n.data.length>this._def.items.length&&(p(n,{code:h.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const i=[...n.data].map((a,o)=>{const l=this._def.items[o]||this._def.rest;return l?l._parse(new H(n,a,n.path,o)):null}).filter(a=>!!a);return n.common.async?Promise.all(i).then(a=>D.mergeArray(t,a)):D.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new W({...this._def,rest:e})}}W.create=(s,e)=>{if(!Array.isArray(s))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new W({items:s,typeName:b.ZodTuple,rest:null,..._(e)})};class Ee extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==m.object)return p(n,{code:h.invalid_type,expected:m.object,received:n.parsedType}),w;const r=[],i=this._def.keyType,a=this._def.valueType;for(const o in n.data)r.push({key:i._parse(new H(n,o,n.path,o)),value:a._parse(new H(n,n.data[o],n.path,o)),alwaysSet:o in n.data});return n.common.async?D.mergeObjectAsync(t,r):D.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return t instanceof S?new Ee({keyType:e,valueType:t,typeName:b.ZodRecord,..._(n)}):new Ee({keyType:Z.create(),valueType:e,typeName:b.ZodRecord,..._(t)})}}class rt extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==m.map)return p(n,{code:h.invalid_type,expected:m.map,received:n.parsedType}),w;const r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([o,l],u)=>({key:r._parse(new H(n,o,n.path,[u,"key"])),value:i._parse(new H(n,l,n.path,[u,"value"]))}));if(n.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const l of a){const u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return w;(u.status==="dirty"||c.status==="dirty")&&t.dirty(),o.set(u.value,c.value)}return{status:t.value,value:o}})}else{const o=new Map;for(const l of a){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return w;(u.status==="dirty"||c.status==="dirty")&&t.dirty(),o.set(u.value,c.value)}return{status:t.value,value:o}}}}rt.create=(s,e,t)=>new rt({valueType:e,keyType:s,typeName:b.ZodMap,..._(t)});class ae extends S{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==m.set)return p(n,{code:h.invalid_type,expected:m.set,received:n.parsedType}),w;const r=this._def;r.minSize!==null&&n.data.size<r.minSize.value&&(p(n,{code:h.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),r.maxSize!==null&&n.data.size>r.maxSize.value&&(p(n,{code:h.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const i=this._def.valueType;function a(l){const u=new Set;for(const c of l){if(c.status==="aborted")return w;c.status==="dirty"&&t.dirty(),u.add(c.value)}return{status:t.value,value:u}}const o=[...n.data.values()].map((l,u)=>i._parse(new H(n,l,n.path,u)));return n.common.async?Promise.all(o).then(l=>a(l)):a(o)}min(e,t){return new ae({...this._def,minSize:{value:e,message:v.toString(t)}})}max(e,t){return new ae({...this._def,maxSize:{value:e,message:v.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ae.create=(s,e)=>new ae({valueType:s,minSize:null,maxSize:null,typeName:b.ZodSet,..._(e)});class de extends S{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==m.function)return p(t,{code:h.invalid_type,expected:m.function,received:t.parsedType}),w;function n(o,l){return et({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Qe(),he].filter(u=>!!u),issueData:{code:h.invalid_arguments,argumentsError:l}})}function r(o,l){return et({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Qe(),he].filter(u=>!!u),issueData:{code:h.invalid_return_type,returnTypeError:l}})}const i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof pe){const o=this;return E(async function(...l){const u=new B([]),c=await o._def.args.parseAsync(l,i).catch(g=>{throw u.addIssue(n(l,g)),u}),f=await Reflect.apply(a,this,c);return await o._def.returns._def.type.parseAsync(f,i).catch(g=>{throw u.addIssue(r(f,g)),u})})}else{const o=this;return E(function(...l){const u=o._def.args.safeParse(l,i);if(!u.success)throw new B([n(l,u.error)]);const c=Reflect.apply(a,this,u.data),f=o._def.returns.safeParse(c,i);if(!f.success)throw new B([r(c,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new de({...this._def,args:W.create(e).rest(se.create())})}returns(e){return new de({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new de({args:e||W.create([]).rest(se.create()),returns:t||se.create(),typeName:b.ZodFunction,..._(n)})}}class Me extends S{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Me.create=(s,e)=>new Me({getter:s,typeName:b.ZodLazy,..._(e)});class je extends S{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return p(t,{received:t.data,code:h.invalid_literal,expected:this._def.value}),w}return{status:"valid",value:e.data}}get value(){return this._def.value}}je.create=(s,e)=>new je({value:s,typeName:b.ZodLiteral,..._(e)});function rn(s,e){return new ee({values:s,typeName:b.ZodEnum,..._(e)})}class ee extends S{constructor(){super(...arguments),Se.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),n=this._def.values;return p(t,{expected:C.joinValues(n),received:t.parsedType,code:h.invalid_type}),w}if(tt(this,Se)||en(this,Se,new Set(this._def.values)),!tt(this,Se).has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return p(t,{received:t.data,code:h.invalid_enum_value,options:n}),w}return E(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ee.create(e,{...this._def,...t})}exclude(e,t=this._def){return ee.create(this.options.filter(n=>!e.includes(n)),{...this._def,...t})}}Se=new WeakMap;ee.create=rn;class $e extends S{constructor(){super(...arguments),Ce.set(this,void 0)}_parse(e){const t=C.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==m.string&&n.parsedType!==m.number){const r=C.objectValues(t);return p(n,{expected:C.joinValues(r),received:n.parsedType,code:h.invalid_type}),w}if(tt(this,Ce)||en(this,Ce,new Set(C.getValidEnumValues(this._def.values))),!tt(this,Ce).has(e.data)){const r=C.objectValues(t);return p(n,{received:n.data,code:h.invalid_enum_value,options:r}),w}return E(e.data)}get enum(){return this._def.values}}Ce=new WeakMap;$e.create=(s,e)=>new $e({values:s,typeName:b.ZodNativeEnum,..._(e)});class pe extends S{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==m.promise&&t.common.async===!1)return p(t,{code:h.invalid_type,expected:m.promise,received:t.parsedType}),w;const n=t.parsedType===m.promise?t.data:Promise.resolve(t.data);return E(n.then(r=>this._def.type.parseAsync(r,{path:t.path,errorMap:t.common.contextualErrorMap})))}}pe.create=(s,e)=>new pe({type:s,typeName:b.ZodPromise,..._(e)});class V extends S{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===b.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:a=>{p(n,a),a.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),r.type==="preprocess"){const a=r.transform(n.data,i);if(n.common.async)return Promise.resolve(a).then(async o=>{if(t.value==="aborted")return w;const l=await this._def.schema._parseAsync({data:o,path:n.path,parent:n});return l.status==="aborted"?w:l.status==="dirty"||t.value==="dirty"?ce(l.value):l});{if(t.value==="aborted")return w;const o=this._def.schema._parseSync({data:a,path:n.path,parent:n});return o.status==="aborted"?w:o.status==="dirty"||t.value==="dirty"?ce(o.value):o}}if(r.type==="refinement"){const a=o=>{const l=r.refinement(o,i);if(n.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(n.common.async===!1){const o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?w:(o.status==="dirty"&&t.dirty(),a(o.value),{status:t.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?w:(o.status==="dirty"&&t.dirty(),a(o.value).then(()=>({status:t.value,value:o.value}))))}if(r.type==="transform")if(n.common.async===!1){const a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!re(a))return a;const o=r.transform(a.value,i);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>re(a)?Promise.resolve(r.transform(a.value,i)).then(o=>({status:t.value,value:o})):a);C.assertNever(r)}}V.create=(s,e,t)=>new V({schema:s,typeName:b.ZodEffects,effect:e,..._(t)});V.createWithPreprocess=(s,e,t)=>new V({schema:e,effect:{type:"preprocess",transform:s},typeName:b.ZodEffects,..._(t)});class z extends S{_parse(e){return this._getType(e)===m.undefined?E(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}z.create=(s,e)=>new z({innerType:s,typeName:b.ZodOptional,..._(e)});class te extends S{_parse(e){return this._getType(e)===m.null?E(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}te.create=(s,e)=>new te({innerType:s,typeName:b.ZodNullable,..._(e)});class Be extends S{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===m.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Be.create=(s,e)=>new Be({innerType:s,typeName:b.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,..._(e)});class Ue extends S{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Re(r)?r.then(i=>
vendor: 6,383 bytes, line 10
10({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new B(n.common.issues)},input:n.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new B(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Ue.create=(s,e)=>new Ue({innerType:s,typeName:b.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,..._(e)});class it extends S{_parse(e){if(this._getType(e)!==m.nan){const n=this._getOrReturnCtx(e);return p(n,{code:h.invalid_type,expected:m.nan,received:n.parsedType}),w}return{status:"valid",value:e.data}}}it.create=s=>new it({typeName:b.ZodNaN,..._(s)});const ar=Symbol("zod_brand");class bt extends S{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class Fe extends S{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?w:i.status==="dirty"?(t.dirty(),ce(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{const r=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return r.status==="aborted"?w:r.status==="dirty"?(t.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:n.path,parent:n})}}static create(e,t){return new Fe({in:e,out:t,typeName:b.ZodPipeline})}}class Ze extends S{_parse(e){const t=this._def.innerType._parse(e),n=r=>(re(r)&&(r.value=Object.freeze(r.value)),r);return Re(t)?t.then(r=>n(r)):n(t)}unwrap(){return this._def.innerType}}Ze.create=(s,e)=>new Ze({innerType:s,typeName:b.ZodReadonly,..._(e)});function Ft(s,e){const t=typeof s=="function"?s(e):typeof s=="string"?{message:s}:s;return typeof t=="string"?{message:t}:t}function an(s,e={},t){return s?fe.create().superRefine((n,r)=>{var i,a;const o=s(n);if(o instanceof Promise)return o.then(l=>{var u,c;if(!l){const f=Ft(e,n),d=(c=(u=f.fatal)!==null&&u!==void 0?u:t)!==null&&c!==void 0?c:!0;r.addIssue({code:"custom",...f,fatal:d})}});if(!o){const l=Ft(e,n),u=(a=(i=l.fatal)!==null&&i!==void 0?i:t)!==null&&a!==void 0?a:!0;r.addIssue({code:"custom",...l,fatal:u})}}):fe.create()}const or={object:O.lazycreate};var b;(function(s){s.ZodString="ZodString",s.ZodNumber="ZodNumber",s.ZodNaN="ZodNaN",s.ZodBigInt="ZodBigInt",s.ZodBoolean="ZodBoolean",s.ZodDate="ZodDate",s.ZodSymbol="ZodSymbol",s.ZodUndefined="ZodUndefined",s.ZodNull="ZodNull",s.ZodAny="ZodAny",s.ZodUnknown="ZodUnknown",s.ZodNever="ZodNever",s.ZodVoid="ZodVoid",s.ZodArray="ZodArray",s.ZodObject="ZodObject",s.ZodUnion="ZodUnion",s.ZodDiscriminatedUnion="ZodDiscriminatedUnion",s.ZodIntersection="ZodIntersection",s.ZodTuple="ZodTuple",s.ZodRecord="ZodRecord",s.ZodMap="ZodMap",s.ZodSet="ZodSet",s.ZodFunction="ZodFunction",s.ZodLazy="ZodLazy",s.ZodLiteral="ZodLiteral",s.ZodEnum="ZodEnum",s.ZodEffects="ZodEffects",s.ZodNativeEnum="ZodNativeEnum",s.ZodOptional="ZodOptional",s.ZodNullable="ZodNullable",s.ZodDefault="ZodDefault",s.ZodCatch="ZodCatch",s.ZodPromise="ZodPromise",s.ZodBranded="ZodBranded",s.ZodPipeline="ZodPipeline",s.ZodReadonly="ZodReadonly"})(b||(b={}));const lr=(s,e={message:`Input not instance of ${s.name}`})=>an(t=>t instanceof s,e),on=Z.create,ln=X.create,ur=it.create,cr=Q.create,un=Ne.create,dr=ie.create,hr=nt.create,fr=Ae.create,pr=De.create,mr=fe.create,gr=se.create,yr=J.create,vr=st.create,br=F.create,wr=O.create,xr=O.strictCreate,kr=Ie.create,_r=ot.create,Sr=Pe.create,Cr=W.create,Lr=Ee.create,Tr=rt.create,Or=ae.create,Rr=de.create,Nr=Me.create,Ar=je.create,Dr=ee.create,Ir=$e.create,Pr=pe.create,Vt=V.create,Er=z.create,Mr=te.create,jr=V.createWithPreprocess,$r=Fe.create,Br=()=>on().optional(),Ur=()=>ln().optional(),Zr=()=>un().optional(),Fr={string:s=>Z.create({...s,coerce:!0}),number:s=>X.create({...s,coerce:!0}),boolean:s=>Ne.create({...s,coerce:!0}),bigint:s=>Q.create({...s,coerce:!0}),date:s=>ie.create({...s,coerce:!0})},Vr=w;var qr=Object.freeze({__proto__:null,defaultErrorMap:he,setErrorMap:js,getErrorMap:Qe,makeIssue:et,EMPTY_PATH:$s,addIssueToContext:p,ParseStatus:D,INVALID:w,DIRTY:ce,OK:E,isAborted:pt,isDirty:mt,isValid:re,isAsync:Re,get util(){return C},get objectUtil(){return ft},ZodParsedType:m,getParsedType:K,ZodType:S,datetimeRegex:sn,ZodString:Z,ZodNumber:X,ZodBigInt:Q,ZodBoolean:Ne,ZodDate:ie,ZodSymbol:nt,ZodUndefined:Ae,ZodNull:De,ZodAny:fe,ZodUnknown:se,ZodNever:J,ZodVoid:st,ZodArray:F,ZodObject:O,ZodUnion:Ie,ZodDiscriminatedUnion:ot,ZodIntersection:Pe,ZodTuple:W,ZodRecord:Ee,ZodMap:rt,ZodSet:ae,ZodFunction:de,ZodLazy:Me,ZodLiteral:je,ZodEnum:ee,ZodNativeEnum:$e,ZodPromise:pe,ZodEffects:V,ZodTransformer:V,ZodOptional:z,ZodNullable:te,ZodDefault:Be,ZodCatch:Ue,ZodNaN:it,BRAND:ar,ZodBranded:bt,ZodPipeline:Fe,ZodReadonly:Ze,custom:an,Schema:S,ZodSchema:S,late:or,get ZodFirstPartyTypeKind(){return b},coerce:Fr,any:mr,array:br,bigint:cr,boolean:un,date:dr,discriminatedUnion:_r,effect:Vt,enum:Dr,function:Rr,instanceof:lr,intersection:Sr,lazy:Nr,literal:Ar,map:Tr,nan:ur,nativeEnum:Ir,never:yr,null:pr,nullable:Mr,number:ln,object:wr,oboolean:Zr,onumber:Ur,optional:Er,ostring:Br,pipeline:$r,preprocess:jr,promise:Pr,record:Lr,set:Or,strictObject:xr,string:on,symbol:hr,transformer:Vt,tuple:Cr,undefined:fr,union:kr,unknown:gr,void:vr,NEVER:Vr,ZodIssueCode:h,quotelessJson:Ms,ZodError:B});const zr={common:{navigation:{home:"Home",download:"Download",premium:"Premium",blog:"Blog",documentation:"Documentation",proxy:"Proxy"},footer:{product:"Product",community:"Community",legal:"Legal",support:"Support",discord:"Discord",forum:"Forum",telegram:"Telegram",termsOfService:"Terms of Service",privacyPolicy:"Privacy Policy",refundPolicy:"Refund Policy",imprint:"Imprint",contactUs:"Contact Us",faq:"FAQ",copyright:"© 2015 - 2025 <0>CCBlueX</0>. All rights reserved. Not affiliated with Mojang AB or Minecraft."},buttons:{learnMore:"Learn More",getStarted:"Get Started",download:"Download",downloadNow:"Download Now",viewDocs:"View Documentation",sourceCode:"Source"},userMenu:{account:"Account",resources:"Resources",staff:"Staff",logout:"Logout"},theme:{light:"Light",dark:"Dark",system:"System"},agreement:{iAgreeTo:"I agree to the",termsOfService:"Terms of Service",refundPolicy:"Refund Policy",withoutVPN:"I confirm that I do n
10ot have a VPN enabled."},general:{loading:"Loading..."},errors:{somethingWentWrong:"Something went wrong",tryAgain:"Please try again"},supportNote:"Need help? Visit our <0>support page</0>"},faq:{page:{title:"Frequently Asked Questions",description:"Find answers to the most commonly asked questions about LiquidBounce",search_placeholder:"Search for questions...",no_results:"No questions found matching your search",view_all:"View all FAQs"},categories:{general:"General",installation:"Installation",usage:"Usage",technical:"Technical",support:"Support"},questions:[{question:"Is LiquidBounce _safe_ to use?",answer:"Yes, LiquidBounce is safe to use. We can assure you that it is free from viruses, adware, crypto miners or other junkware. Also, LiquidBounce is [open source](https://github.com/CCBlueX/LiquidBounce). That means the source code is freely available. This transparency ensures that any potential violations of our standards would be promptly identified.",category:"general"},{question:"How do you make _money_ if LiquidBounce is free?",answer:"LiquidBounce is completely free. Nevertheless, we do have some ways to earn money with our work. Firstly, there are banners on this page. If you wish to support us at no cost, consider disabling your AdBlocker. Additionally, you can support us by going [premium](/premium) and get an ad-free experience and exclusive cosmetics.",category:"general"},{question:"How do I _update_ LiquidBounce?",answer:"If you are using [LiquidLauncher](/docs/tutorials/liquidlauncher), which is the recommended way to install LiquidBounce, updates will be installed automatically. Otherwise, simply download the update and replace old version in your mods directory.",category:"installation"},{question:"How do I _install_ LiquidBounce?",answer:"Installing LiquidBounce is very easy. Just follow the steps described in the [installation instructions](/docs/get-started/installation).",category:"installation"},{question:"How do I change _keybinds_?",answer:"Simply open up the ClickGUI by pressing the right shift key. Then right click the module you want to bind. Press the first element in the setting panel (usually it will say 'None' by default) and then the key you want to bind to. To unbind a module, simply click the button again while it is waiting for a key press.",category:"usage"},{question:"My _HUD_ is gone! How do I re-enable it?",answer:"You might have accidentally disable HUD. However, this problem can be easily addressed: Just open the ClickGUI by pressing the right shift key and enable the HUD module, which can be found in the render panel.",category:"usage"},{question:"Is LiquidBounce compatible with _Baritone_?",answer:"Yes, you can use LiquidBounce with Baritone! When using the Launcher it comes pre-installed with the client, otherwise simply drag and drop Baritone into your mods folder. Then you can access Baritone using #help!",category:"technical"}]},home:{hero:{title:"LiquidBounce",subtitle:"A free & open-source Fabric injection client",primaryCta:"Download",secondaryCta:"See in Action"},features:{title:"What is LiquidBounce?",description:"LiquidBounce is a utility mod for Minecraft and designed to give you a significant advantage over other players. Unlike many of its competitors, LiquidBounce is completely <0>open-source</0> and compatible with Fabric.",items:{multiVersion:{title:"Multi-Version Support",description:"Choose any Minecraft Version in the Multiplayer Menu without restarting the client while enjoying a modern Minecraft 1.21.4 client experience."},serverBypasses:{title:"Multi-Server Bypasses",description:"Get bypasses for any anti-cheat in a single client, whether it's Watchdog, Grim, Intave, Polar or many other anti-cheats."},configs:{title:"Up-To-Date Configs",description:"Access everyday updated auto configs through the Auto Config Feature for known anti-cheats and servers."},activeDev:{title:"Active Development",description:"LiquidBounce is actively maintained by a dedicated team of developers, ensuring regular updates and new features."},scripting:{title:"Scripting Support",description:"Create your own modules or share them with others using the JavaScript API."},modernGUI:{title:"Modern GUI",description:"All GUIs are unique and designed with consistency in mind, written in HTML for maximum customizability through Custom Themes."}}},screenshots:{title:"Screenshots",description:"If you're still uncertain about whether LiquidBounce is the right fit for you, take a glance at the screenshots below to get an overview of the client. Should you have any remaining questions, feel free to explore our <0>FAQ</0> section for more information.",items:[{title:"Main Menu",description:"LiquidBounce comes with a full-customized UI replacing the default Minecraft menus. This allows you to access all features of LiquidBounce much quicker and get a consistent experience.",src:"/images/screenshots/main-menu.webp"},{title:"ClickGUI",description:"The ClickGUI is the main place to toggle your hacks and change their settings. It comes with a search bar to find modules quickly.",src:"/images/screenshots/clickgui.webp"},{title:"HUD",description:"The HUD shows you all enabled hacks, information about your player and game, and other useful information. You can customize the HUD to your liking.",src:"/images/screenshots/hud.webp"},{title:"X-Ray",description:"The built-in XRay Hack allows you to see through blocks and find ores easily.",src:"/images/screenshots/xray.webp"}]},statistics:{items:{downloads:{title:"Downloads",value:"6,000,000+",description:"Downloads across all versions."},modules:{title:"Modules",value:"200+",description:"You will definitely find what you need."},commands:{title:"Commands",value:"50+",description:"To get the most out of LiquidBounce."},code:{title:"Lines of Code",value:"100K+",description:"Thanks to our open-source development model."}}},cta:{title:"Ready to Get Started?",description:"Download LiquidBounce today and experience Minecraft like never before.",primaryCta:"Download Now",secondaryCta:"Source Code"}},meta:{title:"LiquidBounce ⢠The Minecraft Hack Client",description:"A free and open-source Minecraft hacked client, also known as cheat client or utility mod.",keywords:"liquidbounce, liquid, bounce, hack, hacked client, cheat, minecraft, mc, free, download, mc, mojang, hacker, cheater, forge, fabric, proxy, anti-vpn, vpn",author:"CCBlueX",home:{title:"LiquidBounce ⢠The Minecraft Hack Client",description:"A free and open-source Minecraft hacked client, also known as cheat client or utility mod."},download:{title:"LiquidBounce ⢠Download",description:"Download LiquidBounce here. A free and open-source Minecraft hacked client, also known as cheat client or utility mod."},premium:{title:"LiquidBounce ⢠Premium",description:"Support LiquidBounce's development by going premium and get an ad-free experience and exclusive cosmetics."},cosmetics:{title:"LiquidBounce ⢠Cosmetics",description:"Manage your premium cosmetics and transfer them."},docs:{title:"LiquidBounce ⢠Documentation",description:"Get started with the documentation and learn how to use LiquidBounce to its full potential."},blog:{title:"LiquidBounce ⢠Blog",description:"Stay updated with the latest news, tutorials, and updates."},account:{title:"LiquidBounce ⢠Account",description:"Manage your LiquidBounce account"},faq:{title:"LiquidBounce ⢠FAQ",description:"Find answers to the most commonly asked questions about LiquidBounce"}},download:{title:"Download LiquidBounce",description:"Download the latest version of LiquidBounce here.",liquidlauncher:{title:"LiquidLauncher",description:"Install LiquidBounce with just a few clicks. LiquidLauncher is the official lau
10ncher for LiquidBounce. It simplifies the installation of the client and automatically keeps it up to date.",verification:{title:"Hash verification:",hash:"SHA-256 ({{label}}): {{hash}}"},official:{title:"Verified Official Download",description:"All downloads are official. Hash values are provided for advanced users who wish to verify file integrity."},scanned:"This download has been scanned with <0>VirusTotal</0> and we are well rated on <1>Trustpilot</1>."},manual:{title:"Manual Installation",description:"Install LiquidBounce manually (if you're experienced).",advanced:"We recommend using LiquidLauncher for a hassle-free installation process. However, if you're familiar with mod loaders like Fabric and prefer manual installation, that's also an option! Please note that this method requires some experience with installing Minecraft mods. If you run into any issues, you can always check out our <tutorial>installation tutorial</tutorial> for guidance."},downloadCount:"So far, LiquidBounce has been downloaded <count></count> times. Phew.",termsAndPrivacy:"By downloading and using LiquidBounce you automatically agree to our <tosLink>Terms of Service</tosLink> and <privacyLink>Privacy Policy</privacyLink>. Feel free to contact us by E-Mail if you have any questions: <contactLink>contact us</contactLink>",buttons:{showNightly:"Show development builds",hideNightly:"Show stable releases only",loading:"Loading...",loadMore:"Load more"},search:{placeholder:"Search for a build...",title:"Search Results",buttons:{clear:"Clear Search"},noResults:"No builds match your search query."},table:{version:"Version",minecraft:"Minecraft",date:"Date",changes:"Changes",actions:"Actions",release:"Release",nightly:"Development",releaseDate:"Latest Release: {{date}}"},file:{waitMessage:"Please wait while we prepare your download",supportMessageWeb:"Support us by <link>going Premium</link> to remove ads and get cosmetics visible to other users!",supportMessageTauri:"Support us by <link>going Premium</link> to get automatic updates and cosmetics visible to other users!"},groups:{showLess:"Show less",showAll:"Show All {{count}} Builds"},legacy:{discontinued:"Discontinued",legacySupport:"Legacy Support",ageText:{yearsMonthsWeeks:"is {{years}} years, {{months}} months, {{weeks}} weeks old today.",yearsMonths:"is {{years}} years, {{months}} months old today.",yearsWeeks:"is {{years}} years, {{weeks}} weeks old today.",monthsWeeks:"is {{months}} months, {{weeks}} weeks old today.",years:"is {{years}} years old today.",months:"is {{months}} months old today.",weeks:"is {{weeks}} weeks old today."},compatibilityText:"LiquidBounce runs natively on Minecraft {{newestVersion}} but is fully compatible with {{mcVersion}} servers:",versionSwitcherTitle:"Version Switcher",versionSwitcherDesc:"Connect to {{mcVersion}} servers using <vfp>ViaFabricPlus</vfp>'s Version Selector.",combatCompatTitle:"Combat Compatibility",combatCompatDesc:"Experience {{mcVersion}} PvP with sword-blocking support.",advantageTitle:"Advantage over 1.8 clients",advantageDesc:"{{newestVersion}} allows for better bypasses on {{mcVersion}} servers, thanks to more possibilities and exempts in anti-cheat plugins.",learnMore:"Learn More"},builds:{builds:"builds",build:"build"}},premium:{title:"Premium",description:"Support LiquidBounce's development by going premium.",pricing:{title:"Get Premium",planName:"LiquidBounce Premium",oneTimePurchase:"One-time purchase",includes:"What's included:"},orderSummary:{title:"Order Summary",vat:"VAT",exempt:"Exempt",total:"Total"},billing:{title:"Billing Information",contactInfo:"Contact Information",billingAddress:"Billing Address",edit:"Edit Billing Information",incompleteTitle:"Incomplete Billing Information",incompleteText:"Your billing profile is incomplete or missing required information. Please complete your billing details before making a purchase.",completeAction:"Complete Billing Profile",restrictedCountryTitle:"Checkout unavailable for your country",restrictedCountryText:"We are deeply sorry, but for legal reasons we are unable to offer checkout for your selected billing country. Please choose a different c
10ountry to continue.",restrictedCountryAction:"Change billing country"},checkout:{selectPaymentMethod:"Select a payment method",paymentMethods:"Payment Methods",processing:"Processing...",purchase:"Purchase Now",minecraftUsername:"Minecraft Username",minecraftUsernameHint:"Enter your Minecraft username to link premium features to your account",billingAgreements:"Billing Information & Agreements",loginPrompt:"You'll need to log in to complete your purchase",loginButton:"Log in",loginDescription:"You can browse premium features without logging in, but you'll need an account to make a purchase"},token:{title:"Already Purchased?",description:"If you already bought premium and received a token, enter it here to activate your premium features.",inputLabel:"Premium Token",inputPlaceholder:"Enter your premium token",processing:"Verifying...",redeem:"Redeem Token",or:"OR"},purchased:{title:"Premium Member",description:"Thank you for supporting LiquidBounce! Your account has premium features active.",thankYou:"Your support means the world to us and helps keep LiquidBounce alive and thriving. Thank you for being part of this journey!",memberSince:"Premium member since {{date}}",memberSinceUnknown:"Premium Member",notBound:"Not bound",anniversary1Year:"You've been supporting us for over a year! Thank you for your incredible loyalty.",anniversary2Year:"Over two years of support! You're a true LiquidBounce legend. We can't thank you enough.",anniversary3Year:"Three years and counting! Your unwavering dedication is what makes this community special.",manageCosmetics:"Manage Cosmetics",downloadClient:"Download Client",accountSettings:"Account Settings",setupGuides:"Setup Guides",guides:"Guides",disableAds:"Disable Ads",disableAdsDescription:"Learn how to disable ads in the LiquidLauncher.",setupCosmetics:"Setup Cosmetics",setupCosmeticsDescription:"Learn how to set up your cosmetics in LiquidBounce.",viewGuide:"View Guide",yourPremiumFeatures:"Your Premium Features",accessFeatures:"Access features:"},discord:{title:"Discord Account",description:"Link your Discord account to automatically receive the Premium role on our Discord server.",linked:"Your Discord account is linked.",linkedId:"Discord User ID: {{discordId}}",roleInfo:"Your Premium role will be applied automatically on the LiquidBounce Discord server.",linkButton:"Link Discord Account",unlinkButton:"Unlink Discord Account",inputLabel:"Discord User ID",inputPlaceholder:"Enter your Discord User ID",howToFind:"How to find your Discord User ID:",step1:'Open Discord and go to Settings â Advanced â Enable "Developer Mode"',step2:"Go back, right-click your profile picture or username",step3:'Click "Copy User ID" and paste it here'},feedback:{error:"Something went wrong",tokenRedeemed:"Premium token redeemed successfully!",cosmeticsSaved:"Cosmetics updated successfully!",ownershipTransferred:"Ownership transferred successfully!",discordLinked:"Discord account linked successfully!",discordUnlinked:"Discord account unlinked."},faq:{title:"Frequently Asked Questions",questions:{billing:"How does the payment process work?",linking:"How is my Premium Status linked?",features:"What premium features do I get?"},answers:{billing:"The entire payment process is automated. You will receive a confirmation email immediately after your payment. Among others, the following payment methods are supported: Credit Card, Cryptocurrencies.",linking:"Your Premium Status will be linked with your LiquidBounce and your given Minecraft username. This means you can use your premium features on any device, as long as you are logged in with the same account.",features:"Premium includes an ad-free experience on our website and launcher, a custom LiquidBounce cape visible to others, and access to more cosmetics."}}},resources:{title:"Resources",description:"What you publish on the LiquidBounce Marketplace.",reviewDescription:"Uploads from publishers who are not trusted yet. Nothing reaches players until one of you approves it.",allDescription:"Everything published on the Marketplace. Open one to edit it like its author.",cancel:"Cancel",tabs:{resources:"Your resources",all:"All resources",review:"Review queue"},featured:{title:"Featured",description:"Featured configs are the ones AutoConfig loads by default and the ones older clients list.",on:"Featured",off:"Not featured"},all:{title:"All resources",description_one:"{{count}} resource",description_other:"{{count}} resources",search:"Name or #ID",empty:"Nothing matches."},summary:{total_one:"{{count}} resource, {{live}} live",total_other:"{{count}} resources, {{live}} of them live",waiting_one:"{{count}} version waiting for review",waiting_other:"{{count}} versions waiting for review",rejected_one:"{{count}} rejected, read the note",rejected_other:"{{count}} rejected, read the notes"},token:{title:"API token",description:"Lets GitHub Actions and other tools upload versions as you. Treat it like a password.",none:"No token yet.",generate:"Generate token",regenerate:"Regenerate",created:"Created",lastUsed:"Last used",neverUsed:"Never",copy:"Copy token",shownOnce:"Copy it now. It is not shown again.",confirmTitle:"Regenerate the token?",confirmDescription:"The current token stops working right away. Update the API_TOKEN secret wherever you use it."},guide:{title:"How publishing works",create:"Create the resource here. Its ID tells an upload where to go.",upload:"Upload a version with your API token, from a GitHub release or with curl.",review:"The team reviews it before it goes live.",trusted:"No review â it goes live right away.",docs:"Publishing add-ons",template:"Add-on template"},create:{open:"New resource",title:"New resource",description:"Pick what you are publishing. Versions are uploaded once it exists.",type:"Type",submit:"Create resource",descriptionPlaceholder:"What it does. Markdown works; screenshots and dependencies come after creating it.",types:{Addon:"A jar that adds modules, commands and categories. Upload a zip with the jar at its root.",Theme:"A web theme for the client interface. Upload a zip of the built theme.",Script:"JavaScript that runs on the Script API add-on."}},item:{name:"Name",description:"Description",edit:"Edit",save:"Save",delete:"Delete",deleteTitle:"Delete {{name}}?",deleteDescription:"It disappears from the Marketplace and clients stop receiving updates.",back:"Resources",backAll:"All resources",by:"by {{author}}",id:"ID",copyId:"Copy ID",editTitle:"Edit {{name}}",editDescription:"Changes show right away. New versions still go through review."},editor:{write:"Write",preview:"Preview",hint:"Markdown: headings, lists, links, code and tables. Images only from your screenshots.",empty:"Nothing to preview yet."},about:{title:"About",description:"What players read about {{name}}. Markdown works."},screenshots:{title:"Screenshots",description:"The first one is the cover. Use them in the description too.",count:"{{count}} of {{max}}",add:"Add screenshots",formats:"PNG, JPEG or WebP, up to 5 MB each.",cover:"Cover",alt:"Screenshot {{index}} of {{name}}",moveLeft:"Move left",moveRight:"Move right",copyMarkdown:"Copy Markdown",delete:"Delete screenshot",deleteTitle:"Delete this screenshot?",deleteDescription:"It leaves the gallery and every description that shows it."},dependencies:{title:"Dependencies",description:"Resources {{name}} needs to work.",none:"Needs nothing else.",add:"Add a dependency",placeholder:"Search by name or ID",noResults:"No matching resource.",addResult:"Add",remove:"Remove {{name}}",requiredBy:"Required by",requiredByNone:"No other resource yet.",live:"Live {{version}}",noLive:"No live version",by:"by {{name}}",limit:"A resource can have up to 10 dependencies.",unavailable:"Only add-ons, scripts and themes have dependencies."},list:{title:"Your resources",description:"Open one to see its versions, yank a broken one or read a review note.",empty:"Nothing published yet. Create a resource to get started.",all:"All",live:"{{version}} · updated {{date}}",updated:"Updated {{date}}",created:"Created {{date}} · nothing uploaded yet",pending:"{{version}} in review",rejected:"{{version}} rejected",yanked:"{{version}} yanked",noVersions:"No versions"},callout:{notLive:"No version is live, so players cannot install it yet.",pending:"<strong>{{version}}</strong> is waiting for review since {{date}}.",rejected:"<strong>{{version}}</strong> was rejected. The note is next to it below.",none:"Nothing uploaded yet. Publish a version to get it on the Marketplace."}
10,versions:{title:"Versions",description:"Everything you uploaded, newest first. Yank a broken version and players fall back to the newest live one below it.",empty:"No versions yet.",uploaded:"Uploaded {{date}}",yankedHint:"No longer offered to players",note:"Review note",download:"Download {{version}}",yank:"Yank",restore:"Restore"},publish:{title:"Publish a version",github:"From a GitHub release",githubHint:"Add these under Settings, Secrets and variables, Actions. The template's workflow uploads every release.",variable:"Variable",secret:"Secret",yourToken:"Your API token",template:"Add-on template",curl:"With curl",copy:"Copy command",format:{Addon:"An add-on upload is a zip with exactly one jar at its root.",Theme:"A theme upload is a zip of the built theme."}},details:{title:"Details",type:"Type",created:"Created",versions:"Versions",versionCount_one:"{{count}} uploaded",versionCount_other:"{{count}} uploaded",review:"Review",byTeam:"By the team",notNeeded:"Not needed"},review:{waiting:"Waiting",reviewed:"Reviewed",oldestFirst:"Oldest first",empty:"Nothing to review.",pick:"Pick an upload to review it.",uploaded:"Resource #{{id}} · uploaded {{date}}",download:"Download",publisher:"Publisher",copyUid:"Copy user ID",items_one:"{{count}} resource",items_other:"{{count}} resources",live_one:"{{count}} live version",live_other:"{{count}} live versions",rejected_one:"{{count}} rejected",rejected_other:"{{count}} rejected",trusted:"Trusted publisher",liveVersion:"Live version",liveSince:"uploaded {{date}}",compare:"Download {{version}} to compare",nothingLive:"Nothing is live yet. Approving makes this the first version players get.",changelog:"Changelog",noChangelog:"No changelog.",itemDescription:"Description",file:"File",fileName:"Name",fileSize:"Size",checksum:"SHA-256",copyChecksum:"Copy checksum",contents:"Contents",files_one:"{{count}} file",files_other:"{{count}} files",truncated:"Showing the first {{shown}}.",notZip:"Not a zip archive, so the client cannot install it.",oneJar:"One jar at the root, the client can install it.",jars:"{{count}} jars at the root, the client needs exactly one.",note:"Note to the publisher",noteTo:"Note to {{name}}",needs:"Needs",screenshots:"Screenshots",notePlaceholder:"Shown next to the version on their Resources page. Needed to reject.",approveHint:"Approving ships it to every subscriber on their next update.",approve:"Approve",reject:"Reject",noteRequired:"Write a note so the publisher knows why.",reviewedHint:"Newest decisions first. Taking a version down rejects it with a note.",emptyReviewed:"No decisions yet.",upload:"Upload",decision:"Decision",by:"By",when:"When",noteColumn:"Note",actions:"Actions",you:"You",approved:"Approved",takeDown:"Take down",takeDownTitle:"Take down {{name}} {{version}}?",takeDownDescription:"Players stop receiving it. The publisher sees your note next to the version."},status:{Active:"Live",Pending:"In review",Rejected:"Rejected",Inactive:"Yanked",Deleted:"Deleted"},type:{Addon:"Add-on",Theme:"Theme",Config:"Config",Script:"Script",Other:"Other"},types:{Addon:"Add-ons",Theme:"Themes",Config:"Configs",Script:"Scripts",Other:"Other"}},staff:{title:"Staff",cancel:"Cancel",save:"Save",edit:"Edit",add:"Add",delete:"Delete",all:"All",tabs:{builds:"Builds",changelogs:"Changelogs",blog:"Blog",launcher:"Launcher",roles:"Roles"},builds:{hero:"Every branch and every build the CI uploaded, nightlies included.",branches:"Branches",branchesDescription:"Uploads only land on branches that accept them.",default:"Default",publishing:"Accepts uploads",latest_one:"{{total}} build · newest {{date}}",latest_other:"{{total}} builds · newest {{date}}",none:"No builds yet.",title:"Builds on {{branch}}",buildCount_one:"{{total}} build, newest first",buildCount_other:"{{total}} builds, newest first",releaseCount_one:"{{total}} release, newest first",releaseCount_other:"{{total}} releases, newest first",search:"Commit message or hash",all:"All builds",releases:"Releases",release:"Release",nightly:"Nightly",minecraft:"Minecraft {{version}}",empty:"No build matches."},changelogs:{hero:"What the launcher and the download page show for a release.",title:"Changelogs",description_one:"{{count}} changelog, newest release first",description_other:"{{count}} changelogs, newest release first",empty:"No changelogs yet.",released:"Released {{date}} · milestone {{milestone}}",new:"New changelog",create:"Create changelog",editTitle:"Edit the {{version}} changelog",dialogDescription:"A release build shows the changelog whose version matches its LiquidBounce version.",version:"LiquidBounce version",branch:"Branch",milestone:"GitHub milestone",releaseDate:"Release date",changelog:"Changelog",hint:"One change per line: [a] added, [i] improved, [b] fixed, [r] removed.",deleteTitle:"Delete the {{version}} changelog?",deleteDescription:"Release builds of this version show a placeholder instead."},blog:{hero:"Posts on the blog and in LiquidLauncher, scheduled ones included.",title:"Blog posts",description_one:"{{count}} post, newest first",description_other:"{{count}} posts, newest first",search:"Title",empty:"No post matches.",new:"New post",create:"Create post",back:"Blog posts",scheduled:"Scheduled",published:"Published",views_one:"{{total}} view",views_other:"{{total}} views",open:"Open article",newDescription:"Nothing is public before its date. Images in the text come after creating it.",editDescription:"{{category}}
10 · {{uid}}",postTitle:"Title",summary:"Description",summaryHint:"Shown in the blog list, link previews and the launcher.",content:"Content",contentPlaceholder:"The article. Markdown works.",contentHint:"Markdown, rendered like the article page.",publishing:"Publishing",date:"Publish at",dateHint:"Your local time. A future date schedules the post.",dateHintNew:"Your local time. Leave it empty to publish right away, pick a future date to schedule it.",category:"Category",author:"Author",tags:"Tags",tagsHint:"Comma separated, up to 10.",saved:"Saved.",launcher:"Launcher",launcherDescription:"LiquidLauncher shows the post as a banner.",bannerText:"Banner text",images:"Images",imagesDescription:"Replacing one shows everywhere within five minutes.",preview:"Preview",previewHint:"Blog list and link previews. PNG, JPEG or WebP, up to 5 MB.",banner:"Banner",bannerHint:"Launcher banner and article header.",bannerDefault:"Empty uses the preview.",replace:"Replace",inline:"Images in the text",upload:"Upload",inlineHint:"Upload one, then paste its Markdown into the content.",copyMarkdown:"Copy Markdown",inlineLater:"Images in the text can be uploaded once the post exists.",deleteTitle:"Delete {{title}}?",deleteDescription:"It leaves the blog and the launcher, with its images. This cannot be undone."},mods:{title:"Recommended mods",description:"What LiquidLauncher offers for Minecraft {{version}} on {{subsystem}}.",empty:"No mods yet.",group_one:"{{version}} · {{subsystem}} · {{count}} mod",group_other:"{{version}} · {{subsystem}} · {{count}} mods",new:"Add mod",create:"Add mod",editTitle:"Edit {{name}}",dialogDescription:"The launcher offers it for builds of this Minecraft version and subsystem.",name:"Name",mcVersion:"Minecraft version",subsystem:"Subsystem",repository:"Repository",artifact:"Artifact",artifactHint:"Maven coordinates, group:name:version. A new version replaces this one.",required:"Required, players cannot turn it off",enabled:"On by default",requiredBadge:"Required",onBadge:"On by default",offBadge:"Off by default",deleteTitle:"Remove {{name}} from {{version}}?",deleteDescription:"The launcher stops offering it for this version."},launcher:{hero:"What LiquidLauncher offers next to a build, and where it gets it.",checkUpdates:"Check for updates",updateAll_one:"Update {{count}} mod",updateAll_other:"Update {{count}} mods",allCurrent:"Everything from Modrinth is current.",update:"Update",current:"Current",notOnModrinth:"Modrinth has no build for {{version}}.",byHand:"Not from Modrinth, fill in the artifact by hand.",taken:"{{version}} already lists this release, and one artifact can only be listed once.",copy:"Copy to version",copyTitle:"Copy {{version}} · {{subsystem}} to another version",copyDescription:"Modrinth mods get their newest release for the new version. Check the rest by hand.",targetVersion:"New Minecraft version",lookUp:"Look up",copySubmit_one:"Add {{count}} mod",copySubmit_other:"Add {{count}} mods",release:"LiquidLauncher",releaseDescription:"The current release. The release workflow publishes new ones.",published:"published {{date}}",noRelease:"No release published.",download:"Download for {{name}}",repositories:"Repositories",repositoriesDescription:"Maven repositories mods are downloaded from.",subsystems:"Subsystems",subsystemsDescription:"Mod loaders builds and mods run on.",name:"Name",nameHint:"Letters, digits, - and _. It cannot change later.",url:"URL",newRepository:"New repository",editRepository:"Edit {{name}}",repositoryDescription:"Mods pick a repository by this name.",newSubsystem:"New subsystem",editSubsystem:"Edit {{name}}",subsystemDescription:"The launcher installs the loader from the manifest and puts mods into the directory.",manifest:"Manifest URL",manifestHint:"{MINECRAFT_VERSION} and {FABRIC_LOADER_VERSION} are filled in per build.",modDirectory:"Mod directory",deleteRepository:"Delete {{name}}?",deleteSubsystem:"Delete {{name}}?",deleteSourceDescription:"Only possible while nothing uses it."},roles:{hero:"Who holds which role. Staff roles open this menu.",title:"Roles",description:"Pick one to see who holds it.",staff:"Staff",purchase:"Purchase",members_one:"{{count}} holder.",members_other:"{{count}} holders.",adminOnly:"Only admins assign or remove it.",purchaseHint:"It comes with a purchase and cannot be assigned here.",searchMember:"Nickname or user ID",empty:"Nobody holds it.",unknown:"Unknown name",since:"Since {{date}}",by:"by {{name}}
10",you:"you",remove:"Remove role",removeTitle:"Remove {{role}} from {{name}}?",removeDescription:"What the role unlocks stops right away.",assign:"Assign role",assignDescription:"Find the account by nickname or user ID. Only accounts that have signed in since nicknames are kept show up.",user:"User",searchUser:"Nickname or user ID",noUser:"No account found.",role:"Role"}},cosmetics:{title:"Cosmetics",description:"Manage your premium cosmetics and transfer them.",previewHint:"How you look in-game, visible to other players.",cape:"Cape",dinnerbone:"Dinnerbone",deadmau5:"Deadmau5 Ears",style:"Style",selectCapeStyle:"Select Cape Style",applyChanges:"Apply Changes",transfer:{title:"Transfer Ownership",bindTitle:"Bind Minecraft Account",activeAccount:"Your cape is currently bound to the Minecraft account <highlight>{{username}}</highlight>. You can move it to another account by entering the new account's username below.",notBound:"Your premium membership is not yet bound to a Minecraft account. Enter your Minecraft username below to bind it and activate your cape and cosmetics in-game.",description:"You can transfer your cosmetics to another Minecraft account by entering the username of the account you want to transfer it to.",bindDescription:"Enter the Minecraft username you want to bind your premium cosmetics to.",username:"Minecraft Username",usernamePlaceholder:"Enter your Minecraft username",transferButton:"Transfer Ownership",bindButton:"Bind Account",hint:"This will not affect your temporary bindings as they are managed by the LiquidBounce Cosmetics system - which you can activate by logging in to your LiquidBounce account with the following command .client account login"}}},yt={en:vt};qr.string().refine(s=>s in yt,"Unsupported Language");const Hr={supportedLngs:Object.keys(yt),fallbackLng:"en",interpolation:{format:(s,e,t)=>{if(Rn(s)&&t&&e){const n=yt[t];switch(e){case"short":return Ye(s,"P",{locale:n});case"long":return Ye(s,"PPPP",{locale:n});case"relative":return Es(s,new Date,{locale:n});case"ago":return Ps(s,new Date,{locale:n,addSuffix:!0});default:return Ye(s,e,{locale:n})}}return s}},resources:{en:{translation:zr}}};async function qt(){await N.use(Ns).use(Xt).init({...Hr,detection:{order:["htmlTag"],caches:[]}}),A.startTransition(()=>{Rs.hydrateRoot(document,lt.jsx(As,{i18n:N,children:lt.jsx(A.StrictMode,{children:lt.jsx(Un,{})})}))})}window.requestIdleCallback?window.requestIdleCallback(qt):window.setTimeout(qt,1);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.