1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8819],{7404:(e,t,i)=>{i.d(t,{P:()=>nX,S:()=>nY,Z:()=>nv,_:()=>tZ,a:()=>n0,c:()=>re,e:()=>nW,g:()=>iR,h:()=>nR,i:()=>n1,j:()=>nc,k:()=>nb,l:()=>nT,m:()=>nf,n:()=>no,o:()=>nw,p:()=>n_,q:()=>nj,r:()=>nO,s:()=>iH,t:()=>nI,u:()=>nx,v:()=>nG,w:()=>iQ});var n,r=i(2378),s=i(1511);function a(e,t,i){function n(i,n){if(i._zod||Object.defineProperty(i,"_zod",{value:{def:n,constr:a,traits:new Set},enumerable:!1}),i._zod.traits.has(e))return;i._zod.traits.add(e),t(i,n);let r=a.prototype,s=Object.keys(r);for(let e=0;e<s.length;e++){let t=s[e];t in i||(i[t]=r[t].bind(i))}}let r=i?.Parent??Object;class s extends r{}function a(e){var t;let r=i?.Parent?new s:this;for(let i of(n(r,e),(t=r._zod).deferred??(t.deferred=[]),r._zod.deferred))i();return r}return Object.defineProperty(s,"name",{value:e}),Object.defineProperty(a,"init",{value:n}),Object.defineProperty(a,Symbol.hasInstance,{value:t=>!!i?.Parent&&t instanceof i.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}class o extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class l extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}let d={};function u(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,i])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function c(e,t){return"bigint"==typeof t?t.toString():t}function p(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function h(e){let t=e.startsWith("^")?1:0,i=e.endsWith("$")?e.length-1:e.length;return e.slice(t,i)}let f=Symbol("evaluating");function g(e,t,i){let n;Object.defineProperty(e,t,{get(){if(n!==f)return void 0===n&&(n=f,n=i()),n},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function _(e,t,i){Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!0,configurable:!0})}function m(...e){let t={};for(let i of e)Object.assign(t,Object.getOwnPropertyDescriptors(i));return Object.defineProperties({},t)}function v(e){return JSON.stringify(e)}let y="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function b(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let k=p(()=>{if("undefined"!=typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function w(e){if(!1===b(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let i=t.prototype;return!1!==b(i)&&!1!==Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")}function S(e){return w(e)?{...e}:Array.isArray(e)?[...e]:e}let x=new Set(["string","number","symbol"]);function z(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function E(e,t,i){let n=new e._zod.constr(t??e._zod.def);return(!t||i?.parent)&&(n._zod.parent=e),n}function I(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}let P={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function O(e,t=0){if(!0===e.aborted)return!0;for(let i=t;i<e.issues.length;i++)if(e.issues[i]?.continue!==!0)return!0;return!1}function C(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function R(e){return"string"==typeof e?e:e?.message}function A(e,t,i){let n={...e,path:e.path??[]};if(!e.message){let r=R(e.inst?._zod.def?.error?.(e))??R(t?.error?.(e))??R(i.customError?.(e))??R(i.localeError?.(e))??"Invalid input";n.message=r}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function T(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function N(...e){let[t,i,n]=e;return"string"==typeof t?{message:t,code:"custom",input:i,inst:n}:{...t}}let $=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,c,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},j=a("$ZodError",$),L=a("$ZodError",$,{Parent:Error}),D=e=>(t,i,n,r)=>{let s=n?Object.assign(n,{async:!1}):{async:!1},a=t._zod.run({value:i,issues:[]},s);if(a instanceof Promise)throw new o;
1if(a.issues.length){let t=new(r?.Err??e)(a.issues.map(e=>A(e,s,d)));throw y(t,r?.callee),t}return a.value},U=e=>async(t,i,n,r)=>{let s=n?Object.assign(n,{async:!0}):{async:!0},a=t._zod.run({value:i,issues:[]},s);if(a instanceof Promise&&(a=await a),a.issues.length){let t=new(r?.Err??e)(a.issues.map(e=>A(e,s,d)));throw y(t,r?.callee),t}return a.value},V=e=>(t,i,n)=>{let r=n?{...n,async:!1}:{async:!1},s=t._zod.run({value:i,issues:[]},r);if(s instanceof Promise)throw new o;return s.issues.length?{success:!1,error:new(e??j)(s.issues.map(e=>A(e,r,d)))}:{success:!0,data:s.value}},F=V(L),q=e=>async(t,i,n)=>{let r=n?Object.assign(n,{async:!0}):{async:!0},s=t._zod.run({value:i,issues:[]},r);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(e=>A(e,r,d)))}:{success:!0,data:s.value}},M=q(L),Z=/^[cC][^\s-]{8,}$/,K=/^[0-9a-z]+$/,B=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,J=/^[0-9a-vA-V]{20}$/,H=/^[A-Za-z0-9]{27}$/,G=/^[a-zA-Z0-9_-]{21}$/,W=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Y=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,X=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Q=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,ee=/^(?:(?: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])$/,et=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,ei=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,en=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,er=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,es=/^[A-Za-z0-9_-]*$/,ea=/^\+[1-9]\d{6,14}$/,eo="(?:(?:\\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])))",el=RegExp(`^${eo}$`);function ed(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}let eu=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)},ec=/^-?\d+$/,ep=/^-?\d+(?:\.\d+)?$/,eh=/^(?:true|false)$/i,ef=/^null$/i,eg=/^[^A-Z]*$/,e_=/^[^a-z]*$/,em=a("$ZodCheck",(e,t)=>{var i;e._zod??(e._zod={}),e._zod.def=t,(i=e._zod).onattach??(i.onattach=[])}),ev={number:"number",bigint:"bigint",object:"date"},ey=a("$ZodCheckLessThan",(e,t)=>{em.init(e,t);let i=ev[typeof t.value];e._zod.onattach.push(e=>{let i=e._zod.bag,n=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<n&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:i,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),eb=a("$ZodCheckGreaterThan",(e,t)=>{em.init(e,t);let i=ev[typeof t.value];e._zod.onattach.push(e=>{let i=e._zod.bag,n=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>n&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:i,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ek=a("$ZodCheckMultipleOf",(e,t)=>{em.init(e,t),e._zod.onattach.push(e=>{var i;(i=e._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=i=>{if(typeof i.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof i.value?i.value%t.value===BigInt(0):0===function(e,t){let i=(e.toString().split(".")[1]||"").length,n=t.toString(),r=(n.split(".")[1]||"").length;if(0===r&&/\d?e-\d?/.test(n)){let e=n.match(/\d?e-(\d?)/);e?.[1]&&(r=Number.parseInt(e[1]))}let s=i>r?i:r;return Number.parseInt(e.toFixed(s).replace(".",""))%Number.parseInt(t.toFixed(s).replace(".",""))/10**s}(i.value,t.value))||i.issues.push({origin:typeof i.value,code:"not_multiple_of",divisor:t.value,input:i.value,inst:e,continue:!t.abort})}}),ew=a("$ZodCheckNumberFormat",(e,t)=>{em.init(e,t),t.format=t.format||"float64";let i=t.format?.includes("int"),n=i?"int":"number",[r,s]=P[t.format];e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,n.minimum=r,n.maximum=s,i&&(n.pattern=ec)}),e._zod.check=a=>{let o=a.value;if(i){if(!Number.isInteger(o)){a.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:o,inst:e});return}if(!Number.isSafeInteger(o)){o>0?a.issues.push({input:o,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,
1continue:!t.abort}):a.issues.push({input:o,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}o<r&&a.issues.push({origin:"number",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),o>s&&a.issues.push({origin:"number",input:o,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}}),eS=a("$ZodCheckMaxLength",(e,t)=>{var i;em.init(e,t),(i=e._zod.def).when??(i.when=e=>{let t=e.value;return null!=t&&void 0!==t.length}),e._zod.onattach.push(e=>{let i=e._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let n=i.value;if(n.length<=t.maximum)return;let r=T(n);i.issues.push({origin:r,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),ex=a("$ZodCheckMinLength",(e,t)=>{var i;em.init(e,t),(i=e._zod.def).when??(i.when=e=>{let t=e.value;return null!=t&&void 0!==t.length}),e._zod.onattach.push(e=>{let i=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let n=i.value;if(n.length>=t.minimum)return;let r=T(n);i.issues.push({origin:r,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),ez=a("$ZodCheckLengthEquals",(e,t)=>{var i;em.init(e,t),(i=e._zod.def).when??(i.when=e=>{let t=e.value;return null!=t&&void 0!==t.length}),e._zod.onattach.push(e=>{let i=e._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=i=>{let n=i.value,r=n.length;if(r===t.length)return;let s=T(n),a=r>t.length;i.issues.push({origin:s,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),eE=a("$ZodCheckStringFormat",(e,t)=>{var i,n;em.init(e,t),e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(i=e._zod).check??(i.check=i=>{t.pattern.lastIndex=0,t.pattern.test(i.value)||i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),eI=a("$ZodCheckRegex",(e,t)=>{eE.init(e,t),e._zod.check=i=>{t.pattern.lastIndex=0,t.pattern.test(i.value)||i.issues.push({origin:"string",code:"invalid_format",format:"regex",input:i.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),eP=a("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=eg),eE.init(e,t)}),eO=a("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=e_),eE.init(e,t)}),eC=a("$ZodCheckIncludes",(e,t)=>{em.init(e,t);let i=z(t.includes),n=new RegExp("number"==typeof t.position?`^.{${t.position}}${i}`:i);t.pattern=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),eR=a("$ZodCheckStartsWith",(e,t)=>{em.init(e,t);let i=RegExp(`^${z(t.prefix)}.*`);t.pattern??(t.pattern=i),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(i)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),eA=a("$ZodCheckEndsWith",(e,t)=>{em.init(e,t);let i=RegExp(`.*${z(t.suffix)}$`);t.pattern??(t.pattern=i),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(i)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}}),eT=a("$ZodCheckOverwrite",(e,t)=>{em.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class eN{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),i=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(i)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}let e$={major:4,minor:3,patch:6},ej=a("$ZodType",(e,t)=>{var i;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=e$;let n=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&n.unshift(e),n))for(let i of t._zod.onattach)i(e);if(0===n.length)(i=e._zod).deferred??(i.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,i)=>{let n,r=O(e);for(let s of t){if(s._zod.def.when){if(!s._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,a=s._zod.check(e);if(a instanceof Promise&&i?.async===!1)throw new o;
1if(n||a instanceof Promise)n=(n??Promise.resolve()).then(async()=>{await a,e.issues.length===t||r||(r=O(e,t))});else{if(e.issues.length===t)continue;r||(r=O(e,t))}}return n?n.then(()=>e):e},i=(i,r,s)=>{if(O(i))return i.aborted=!0,i;let a=t(r,n,s);if(a instanceof Promise){if(!1===s.async)throw new o;return a.then(t=>e._zod.parse(t,s))}return e._zod.parse(a,s)};e._zod.run=(r,s)=>{if(s.skipChecks)return e._zod.parse(r,s);if("backward"===s.direction){let t=e._zod.parse({value:r.value,issues:[]},{...s,skipChecks:!0});return t instanceof Promise?t.then(e=>i(e,r,s)):i(t,r,s)}let a=e._zod.parse(r,s);if(a instanceof Promise){if(!1===s.async)throw new o;return a.then(e=>t(e,n,s))}return t(a,n,s)}}g(e,"~standard",()=>({validate:t=>{try{let i=F(e,t);return i.success?{value:i.data}:{issues:i.error?.issues}}catch(i){return M(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}))}),eL=a("$ZodString",(e,t)=>{ej.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??eu(e._zod.bag),e._zod.parse=(i,n)=>{if(t.coerce)try{i.value=String(i.value)}catch(e){}return"string"==typeof i.value||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:e}),i}}),eD=a("$ZodStringFormat",(e,t)=>{eE.init(e,t),eL.init(e,t)}),eU=a("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Y),eD.init(e,t)}),eV=a("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=X(e))}else t.pattern??(t.pattern=X());eD.init(e,t)}),eF=a("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Q),eD.init(e,t)}),eq=a("$ZodURL",(e,t)=>{eD.init(e,t),e._zod.check=i=>{try{let n=i.value.trim(),r=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:i.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:i.value,inst:e,continue:!t.abort})),t.normalize?i.value=r.href:i.value=n;return}catch(n){i.issues.push({code:"invalid_format",format:"url",input:i.value,inst:e,continue:!t.abort})}}}),eM=a("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),eD.init(e,t)}),eZ=a("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=G),eD.init(e,t)}),eK=a("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Z),eD.init(e,t)}),eB=a("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=K),eD.init(e,t)}),eJ=a("$ZodULID",(e,t)=>{t.pattern??(t.pattern=B),eD.init(e,t)}),eH=a("$ZodXID",(e,t)=>{t.pattern??(t.pattern=J),eD.init(e,t)}),eG=a("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=H),eD.init(e,t)}),eW=a("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=function(e){let t=ed({precision:e.precision}),i=["Z"];e.local&&i.push(""),e.offset&&i.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${t}(?:${i.join("|")})`;return RegExp(`^${eo}T(?:${n})$`)}(t)),eD.init(e,t)}),eY=a("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=el),eD.init(e,t)}),eX=a("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=RegExp(`^${ed(t)}$`)),eD.init(e,t)}),eQ=a("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=W),eD.init(e,t)}),e0=a("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=ee),eD.init(e,t),e._zod.bag.format="ipv4"}),e1=a("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=et),eD.init(e,t),e._zod.bag.format="ipv6",e._zod.check=i=>{try{new URL(`http://[${i.value}]`)}catch{i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:e,continue:!t.abort})}}}),e4=a("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=ei),eD.init(e,t)}),e2=a("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=en),eD.init(e,t),e._zod.check=i=>{let n=i.value.split("/");try{if(2!==n.length)throw Error();let[e,t]=n;if(!t)throw Error();let i=Number(t);if(`${i}`!==t||i<0||i>128)throw Error();new URL(`http://[${e}]`)}catch{i.issues.push({code:"invalid_format",format:"cidrv6",input:i.value,inst:e,continue:!t.abort})}}});function e9(e){if(""===e)return!0;
1if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let e6=a("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=er),eD.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=i=>{e9(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:e,continue:!t.abort})}}),e3=a("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=es),eD.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=i=>{!function(e){if(!es.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return e9(t.padEnd(4*Math.ceil(t.length/4),"="))}(i.value)&&i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:e,continue:!t.abort})}}),e8=a("$ZodE164",(e,t)=>{t.pattern??(t.pattern=ea),eD.init(e,t)}),e7=a("$ZodJWT",(e,t)=>{eD.init(e,t),e._zod.check=i=>{!function(e,t=null){try{let i=e.split(".");if(3!==i.length)return!1;let[n]=i;if(!n)return!1;let r=JSON.parse(atob(n));if("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))return!1;return!0}catch{return!1}}(i.value,t.alg)&&i.issues.push({code:"invalid_format",format:"jwt",input:i.value,inst:e,continue:!t.abort})}}),e5=a("$ZodNumber",(e,t)=>{ej.init(e,t),e._zod.pattern=e._zod.bag.pattern??ep,e._zod.parse=(i,n)=>{if(t.coerce)try{i.value=Number(i.value)}catch(e){}let r=i.value;if("number"==typeof r&&!Number.isNaN(r)&&Number.isFinite(r))return i;let s="number"==typeof r?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return i.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...s?{received:s}:{}}),i}}),te=a("$ZodNumberFormat",(e,t)=>{ew.init(e,t),e5.init(e,t)}),tt=a("$ZodBoolean",(e,t)=>{ej.init(e,t),e._zod.pattern=eh,e._zod.parse=(i,n)=>{if(t.coerce)try{i.value=!!i.value}catch(e){}let r=i.value;return"boolean"==typeof r||i.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),i}}),ti=a("$ZodNull",(e,t)=>{ej.init(e,t),e._zod.pattern=ef,e._zod.values=new Set([null]),e._zod.parse=(t,i)=>{let n=t.value;return null===n||t.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),t}}),tn=a("$ZodAny",(e,t)=>{ej.init(e,t),e._zod.parse=e=>e}),tr=a("$ZodUnknown",(e,t)=>{ej.init(e,t),e._zod.parse=e=>e}),ts=a("$ZodNever",(e,t)=>{ej.init(e,t),e._zod.parse=(t,i)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),ta=a("$ZodDate",(e,t)=>{ej.init(e,t),e._zod.parse=(i,n)=>{if(t.coerce)try{i.value=new Date(i.value)}catch(e){}let r=i.value,s=r instanceof Date;return s&&!Number.isNaN(r.getTime())||i.issues.push({expected:"date",code:"invalid_type",input:r,...s?{received:"Invalid Date"}:{},inst:e}),i}});function to(e,t,i){e.issues.length&&t.issues.push(...C(i,e.issues)),t.value[i]=e.value}let tl=a("$ZodArray",(e,t)=>{ej.init(e,t),e._zod.parse=(i,n)=>{let r=i.value;if(!Array.isArray(r))return i.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),i;i.value=Array(r.length);let s=[];for(let e=0;e<r.length;e++){let a=r[e],o=t.element._zod.run({value:a,issues:[]},n);o instanceof Promise?s.push(o.then(t=>to(t,i,e))):to(o,i,e)}return s.length?Promise.all(s).then(()=>i):i}});function td(e,t,i,n,r){if(e.issues.length){if(r&&!(i in n))return;t.issues.push(...C(i,e.issues))}void 0===e.value?i in n&&(t.value[i]=void 0):t.value[i]=e.value}function tu(e){var t;let i=Object.keys(e.shape);for(let t of i)if(!e.shape?.[t]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${t}": expected a Zod schema`);let n=Object.keys(t=e.shape).filter(e=>"optional"===t[e]._zod.optin&&"optional"===t[e]._zod.optout);return{...e,keys:i,keySet:new Set(i),numKeys:i.length,optionalKeys:new Set(n)}}function tc(e,t,i,n,r,s){let a=[],o=r.keySet,l=r.catchall._zod,d=l.def.type,u="optional"===l.optout;for(let r in t){if(o.has(r))continue;if("never"===d){a.push(r);continue}let s=l.run({value:t[r],issues:[]},n);s instanceof Promise?e.push(s.then(e=>td(e,i,r,t,u))):td(s,i,r,t,u)}return(a.length&&i.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:s}),e.length)?Promise.all(e).then(()=>i):i}let tp=a("$ZodObject",(e,t)=>{let i;ej.init(e,t);let n=Object.getOwnPropertyDescriptor(t,"shape");if(!n?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let i={...e};return Object.defineProperty(t,"shape",{value:i}),i}})}let r=p(()=>tu(t));g(e._zod,"propValues",()=>{let e=t.shape,i={};for(let t in e){let n=e[t]._zod;if(n.values)for(let e of(i[t]??(i[t]=new Set),n.values))i[t].add(e)}return i});let s=t.catchall;e._zod.parse=(t,n)=>{i??(i=r.value);let a=t.value;if(!b(a))return t.issues.push({expected:"object",code:"invalid_type",input:a,inst:e}),t;t.value={};let o=[],l=i.shape;for(let e of i.keys){let i=l[e],r="optional"===i._zod.optout,s=i._zod.run({value:a[e],issues:[]},n);s instanceof Promise?o.push(s.then(i=>td(i,t,e,a,r))):td(s,t,e,a,r)}return s?tc(o,a,t,n,r.value,e):o.length?Promise.all(o).then(()=>t):t}}),th=a("$ZodObjectJIT",(e,t)=>{let i,n;tp.init(e,t);let r=e._zod.parse,s=p(()=>tu(t)),a=e=>
1{let t=new eN(["shape","payload","ctx"]),i=s.value,n=e=>{let t=v(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let r=Object.create(null),a=0;for(let e of i.keys)r[e]=`key_${a++}`;for(let s of(t.write("const newResult = {};"),i.keys)){let i=r[s],a=v(s),o=e[s],l=o?._zod?.optout==="optional";t.write(`const ${i} = ${n(s)};`),l?t.write(` 2 if (${i}.issues.length) { 3 if (${a} in input) { 4 payload.issues = payload.issues.concat(${i}.issues.map(iss => ({ 5 ...iss, 6 path: iss.path ? [${a}, ...iss.path] : [${a}] 7 }))); 8 } 9 } 10 11 if (${i}.value === undefined) { 12 if (${a} in input) { 13 newResult[${a}] = undefined; 14 } 15 } else { 16 newResult[${a}] = ${i}.value; 17 } 18 19 `):t.write(` 20 if (${i}.issues.length) { 21 payload.issues = payload.issues.concat(${i}.issues.map(iss => ({ 22 ...iss, 23 path: iss.path ? [${a}, ...iss.path] : [${a}] 24 }))); 25 } 26 27 if (${i}.value === undefined) { 28 if (${a} in input) { 29 newResult[${a}] = undefined; 30 } 31 } else { 32 newResult[${a}] = ${i}.value; 33 } 34 35 `)}t.write("payload.value = newResult;"),t.write("return payload;");let o=t.compile();return(t,i)=>o(e,t,i)},o=!d.jitless,l=o&&k.value,u=t.catchall;e._zod.parse=(d,c)=>{n??(n=s.value);let p=d.value;return b(p)?o&&l&&c?.async===!1&&!0!==c.jitless?(i||(i=a(t.shape)),d=i(d,c),u)?tc([],p,d,c,n,e):d:r(d,c):(d.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),d)}});function tf(e,t,i,n){for(let i of e)if(0===i.issues.length)return t.value=i.value,t;let r=e.filter(e=>!O(e));return 1===r.length?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:i,errors:e.map(e=>e.issues.map(e=>A(e,n,d)))}),t)}let tg=a("$ZodUnion",(e,t)=>{ej.init(e,t),g(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),g(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),g(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),g(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>h(e.source)).join("|")})$`)}});let i=1===t.options.length,n=t.options[0]._zod.run;e._zod.parse=(r,s)=>{if(i)return n(r,s);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},s);if(t instanceof Promise)o.push(t),a=!0;else{if(0===t.issues.length)return t;o.push(t)}}return a?Promise.all(o).then(t=>tf(t,r,e,s)):tf(o,r,e,s)}}),t_=a("$ZodIntersection",(e,t)=>{ej.init(e,t),e._zod.parse=(e,i)=>{let n=e.value,r=t.left._zod.run({value:n,issues:[]},i),s=t.right._zod.run({value:n,issues:[]},i);return r instanceof Promise||s instanceof Promise?Promise.all([r,s]).then(([t,i])=>tm(e,t,i)):tm(e,r,s)}});function tm(e,t,i){let n;let r=new Map;for(let i of t.issues)if("unrecognized_keys"===i.code)for(let e of(n??(n=i),i.keys))r.has(e)||r.set(e,{}),r.get(e).l=!0;else e.issues.push(i);for(let t of i.issues)if("unrecognized_keys"===t.code)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let s=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(s.length&&n&&e.issues.push({...n,keys:s}),O(e))return e;let a=function e(t,i){if(t===i||t instanceof Date&&i instanceof Date&&+t==+i)return{valid:!0,data:t};if(w(t)&&w(i)){let n=Object.keys(i),r=Object.keys(t).filter(e=>-1!==n.indexOf(e)),s={...t,...i};for(let n of r){let r=e(t[n],i[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};s[n]=r.data}return{valid:!0,data:s}}if(Array.isArray(t)&&Array.isArray(i)){if(t.length!==i.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<t.length;r++){let s=e(t[r],i[r]);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}(t.value,i.value);
35if(!a.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}let tv=a("$ZodTuple",(e,t)=>{ej.init(e,t);let i=t.items;e._zod.parse=(n,r)=>{let s=n.value;if(!Array.isArray(s))return n.issues.push({input:s,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];let a=[],o=[...i].reverse().findIndex(e=>"optional"!==e._zod.optin),l=-1===o?0:i.length-o;if(!t.rest){let t=s.length>i.length,r=s.length<l-1;if(t||r)return n.issues.push({...t?{code:"too_big",maximum:i.length,inclusive:!0}:{code:"too_small",minimum:i.length},input:s,inst:e,origin:"array"}),n}let d=-1;for(let e of i){if(++d>=s.length&&d>=l)continue;let t=e._zod.run({value:s[d],issues:[]},r);t instanceof Promise?a.push(t.then(e=>ty(e,n,d))):ty(t,n,d)}if(t.rest)for(let e of s.slice(i.length)){d++;let i=t.rest._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>ty(e,n,d))):ty(i,n,d)}return a.length?Promise.all(a).then(()=>n):n}});function ty(e,t,i){e.issues.length&&t.issues.push(...C(i,e.issues)),t.value[i]=e.value}let tb=a("$ZodRecord",(e,t)=>{ej.init(e,t),e._zod.parse=(i,n)=>{let r=i.value;if(!w(r))return i.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),i;let s=[],a=t.keyType._zod.values;if(a){let o;i.value={};let l=new Set;for(let e of a)if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){l.add("number"==typeof e?e.toString():e);let a=t.valueType._zod.run({value:r[e],issues:[]},n);a instanceof Promise?s.push(a.then(t=>{t.issues.length&&i.issues.push(...C(e,t.issues)),i.value[e]=t.value})):(a.issues.length&&i.issues.push(...C(e,a.issues)),i.value[e]=a.value)}for(let e in r)l.has(e)||(o=o??[]).push(e);o&&o.length>0&&i.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:o})}else for(let a of(i.value={},Reflect.ownKeys(r))){if("__proto__"===a)continue;let o=t.keyType._zod.run({value:a,issues:[]},n);if(o instanceof Promise)throw Error("Async schemas not supported in object keys currently");if("string"==typeof a&&ep.test(a)&&o.issues.length){let e=t.keyType._zod.run({value:Number(a),issues:[]},n);if(e instanceof Promise)throw Error("Async schemas not supported in object keys currently");0===e.issues.length&&(o=e)}if(o.issues.length){"loose"===t.mode?i.value[a]=r[a]:i.issues.push({code:"invalid_key",origin:"record",issues:o.issues.map(e=>A(e,n,d)),input:a,path:[a],inst:e});continue}let l=t.valueType._zod.run({value:r[a],issues:[]},n);l instanceof Promise?s.push(l.then(e=>{e.issues.length&&i.issues.push(...C(a,e.issues)),i.value[o.value]=e.value})):(l.issues.length&&i.issues.push(...C(a,l.issues)),i.value[o.value]=l.value)}return s.length?Promise.all(s).then(()=>i):i}}),tk=a("$ZodEnum",(e,t)=>{ej.init(e,t);let i=u(t.entries),n=new Set(i);e._zod.values=n,e._zod.pattern=RegExp(`^(${i.filter(e=>x.has(typeof e)).map(e=>"string"==typeof e?z(e):e.toString()).join("|")})$`),e._zod.parse=(t,r)=>{let s=t.value;return n.has(s)||t.issues.push({code:"invalid_value",values:i,input:s,inst:e}),t}}),tw=a("$ZodLiteral",(e,t)=>{if(ej.init(e,t),0===t.values.length)throw Error("Cannot create literal schema with no valid values");let i=new Set(t.values);e._zod.values=i,e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?z(e):e?z(e.toString()):String(e)).join("|")})$`),e._zod.parse=(n,r)=>{let s=n.value;return i.has(s)||n.issues.push({code:"invalid_value",values:t.values,input:s,inst:e}),n}}),tS=a("$ZodTransform",(e,t)=>{ej.init(e,t),e._zod.parse=(i,n)=>{if("backward"===n.direction)throw new l(e.constructor.name);let r=t.transform(i.value,i);if(n.async)return(r instanceof Promise?r:Promise.resolve(r)).then(e=>(i.value=e,i));if(r instanceof Promise)throw new o;return i.value=r,i}});function tx(e,t){return e.issues.length&&void 0===t?{issues:[],value:void 0}:e}let tz=a("$ZodOptional",(e,t)=>{ej.init(e,t),e._zod.optin="optional",e._zod.optout="optional",g(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),g(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${h(e.source)})?$`):void 0}),e._zod.parse=(e,i)=>{if("optional"===t.innerType._zod.optin){let n=t.innerType._zod.run(e,i);return n instanceof Promise?n.then(t=>tx(t,e.value)):tx(n,e.value)}return void 0===e.value?e:t.innerType._zod.run(e,i)}}),tE=a("$ZodExactOptional",(e,t)=>{tz.init(e,t),g(e._zod,"values",()=>t.innerType._zod.values),g(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(e,i)=>t.innerType._zod.run(e,i)}),tI=a("$ZodNullable",(e,t)=>{ej.init(e,t),g(e._zod,"optin",()=>t.innerType._zod.optin),g(e._zod,"optout",()=>t.innerType._zod.optout),g(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${h(e.source)}|null)$`):void 0}),g(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,i)=>null===e.value?e:t.innerType._zod.run(e,i)}),tP=a("$ZodDefault",(e,t)=>{ej.init(e,t),e._zod.optin="optional",g(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,i)=>{if("backward"===i.direction)return t.innerType._zod.run(e,i);if(void 0===e.value)return e.value=t.defaultValue,e;let n=t.innerType._zod.run(e,i);return n instanceof Promise?n.then(e=>tO(e,t)):tO(n,t)}});function tO(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let tC=a("$ZodPrefault",(e,t)=>{ej.init(e,t),e._zod.optin="optional",g(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,i)=>("backward"===i.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,i))}),tR=a("$ZodNonOptional",(e,t)=>{ej.init(e,t),g(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(i,n)=>{let r=t.innerType._zod.run(i,n);return r instanceof Promise?r.then(t=>tA(t,e)):tA(r,e)}});function tA(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let tT=a("$ZodCatch",(e,t)=>{ej.init(e,t),g(e._zod,"optin",()=>t.innerType._zod.optin),g(e._zod,"optout",()=>t.innerType._zod.optout),g(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,i)=>{if("backward"===i.direction)return t.innerType._zod.run(e,i);let n=t.innerType._zod.run(e,i);return n instanceof Promise?n.then(n=>
35(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>A(e,i,d))},input:e.value}),e.issues=[]),e)):(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>A(e,i,d))},input:e.value}),e.issues=[]),e)}}),tN=a("$ZodPipe",(e,t)=>{ej.init(e,t),g(e._zod,"values",()=>t.in._zod.values),g(e._zod,"optin",()=>t.in._zod.optin),g(e._zod,"optout",()=>t.out._zod.optout),g(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,i)=>{if("backward"===i.direction){let n=t.out._zod.run(e,i);return n instanceof Promise?n.then(e=>t$(e,t.in,i)):t$(n,t.in,i)}let n=t.in._zod.run(e,i);return n instanceof Promise?n.then(e=>t$(e,t.out,i)):t$(n,t.out,i)}});function t$(e,t,i){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},i)}let tj=a("$ZodReadonly",(e,t)=>{ej.init(e,t),g(e._zod,"propValues",()=>t.innerType._zod.propValues),g(e._zod,"values",()=>t.innerType._zod.values),g(e._zod,"optin",()=>t.innerType?._zod?.optin),g(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(e,i)=>{if("backward"===i.direction)return t.innerType._zod.run(e,i);let n=t.innerType._zod.run(e,i);return n instanceof Promise?n.then(tL):tL(n)}});function tL(e){return e.value=Object.freeze(e.value),e}let tD=a("$ZodLazy",(e,t)=>{ej.init(e,t),g(e._zod,"innerType",()=>t.getter()),g(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),g(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),g(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),g(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,i)=>e._zod.innerType._zod.run(t,i)}),tU=a("$ZodCustom",(e,t)=>{em.init(e,t),ej.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=i=>{let n=i.value,r=t.fn(n);if(r instanceof Promise)return r.then(t=>tV(t,i,n,e));tV(r,i,n,e)}});function tV(e,t,i,n){if(!e){let e={code:"custom",input:i,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(e.params=n._zod.def.params),t.issues.push(N(e))}}(n=globalThis).__zod_globalRegistry??(n.__zod_globalRegistry=new class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let i=t[0];return this._map.set(e,i),i&&"object"==typeof i&&"id"in i&&this._idmap.set(i.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let i={...this.get(t)??{}};delete i.id;let n={...i,...this._map.get(e)};return Object.keys(n).length?n:void 0}return this._map.get(e)}has(e){return this._map.has(e)}});let tF=globalThis.__zod_globalRegistry;function tq(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...I(t)})}function tM(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...I(t)})}function tZ(e,t){return new e({type:"date",coerce:!0,...I(t)})}function tK(e,t){return new ey({check:"less_than",...I(t),value:e,inclusive:!1})}function tB(e,t){return new ey({check:"less_than",...I(t),value:e,inclusive:!0})}function tJ(e,t){return new eb({check:"greater_than",...I(t),value:e,inclusive:!1})}function tH(e,t){return new eb({check:"greater_than",...I(t),value:e,inclusive:!0})}function tG(e,t){return new ek({check:"multiple_of",...I(t),value:e})}function tW(e,t){return new eS({check:"max_length",...I(t),maximum:e})}function tY(e,t){return new ex({check:"min_length",...I(t),minimum:e})}function tX(e,t){return new ez({check:"length_equals",...I(t),length:e})}function tQ(e){return new eT({check:"overwrite",tx:e})}function t0(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??tF,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function t1(e,t,i={path:[],schemaPath:[]}){var n;let r=e._zod.def,s=t.seen.get(e);if(s)return s.count++,i.schemaPath.includes(e)&&(s.cycle=i.path),s.schema;let a={schema:{},count:1,cycle:void 0,path:i.path};t.seen.set(e,a);let o=e._zod.toJSONSchema?.();if(o)a.schema=o;else{let n={...i,schemaPath:[...i.schemaPath,e],path:i.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,n);else{let i=a.schema,s=t.processors[r.type];if(!s)throw Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);s(e,t,i,n)}let s=e._zod.parent;s&&(a.ref||(a.ref=s),t1(s,t,n),t.seen.get(s).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(a.schema,l),"input"===t.io&&function e(t,i){let n=i??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);let r=t._zod.def;if("transform"===r.type)return!0;
35if("array"===r.type)return e(r.element,n);if("set"===r.type)return e(r.valueType,n);if("lazy"===r.type)return e(r.getter(),n);if("promise"===r.type||"optional"===r.type||"nonoptional"===r.type||"nullable"===r.type||"readonly"===r.type||"default"===r.type||"prefault"===r.type)return e(r.innerType,n);if("intersection"===r.type)return e(r.left,n)||e(r.right,n);if("record"===r.type||"map"===r.type)return e(r.keyType,n)||e(r.valueType,n);if("pipe"===r.type)return e(r.in,n)||e(r.out,n);if("object"===r.type){for(let t in r.shape)if(e(r.shape[t],n))return!0;return!1}if("union"===r.type){for(let t of r.options)if(e(t,n))return!0;return!1}if("tuple"===r.type){for(let t of r.items)if(e(t,n))return!0;if(r.rest&&e(r.rest,n))return!0}return!1}(e)&&(delete a.schema.examples,delete a.schema.default),"input"===t.io&&a.schema._prefault&&((n=a.schema).default??(n.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function t4(e,t){let i=e.seen.get(t);if(!i)throw Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let t of e.seen.entries()){let i=e.metadataRegistry.get(t[0])?.id;if(i){let e=n.get(i);if(e&&e!==t[0])throw Error(`Duplicate schema id "${i}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(i,t[0])}}let r=t=>{let n="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){let i=e.external.registry.get(t[0])?.id,r=e.external.uri??(e=>e);if(i)return{ref:r(i)};let s=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=s,{defId:s,ref:`${r("__shared")}#/${n}/${s}`}}if(t[1]===i)return{ref:"#"};let r=`#/${n}/`,s=t[1].schema.id??`__schema${e.counter++}`;return{defId:s,ref:r+s}},s=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:i,defId:n}=r(e);t.def={...t.schema},n&&(t.defId=n);let s=t.schema;for(let e in s)delete s[e];s.$ref=i};if("throw"===e.cycles)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root> 36 37Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let i of e.seen.entries()){let n=i[1];if(t===i[0]){s(i);continue}if(e.external){let n=e.external.registry.get(i[0])?.id;if(t!==i[0]&&n){s(i);continue}}if(e.metadataRegistry.get(i[0])?.id||n.cycle||n.count>1&&"ref"===e.reused){s(i);continue}}}function t2(e,t){let i=e.seen.get(t);if(!i)throw Error("Unprocessed schema. This is a bug in Zod.");let n=t=>{let i=e.seen.get(t);if(null===i.ref)return;let r=i.def??i.schema,s={...r},a=i.ref;if(i.ref=null,a){n(a);let i=e.seen.get(a),o=i.schema;if(o.$ref&&("draft-07"===e.target||"draft-04"===e.target||"openapi-3.0"===e.target)?(r.allOf=r.allOf??[],r.allOf.push(o)):Object.assign(r,o),Object.assign(r,s),t._zod.parent===a)for(let e in r)"$ref"===e||"allOf"===e||e in s||delete r[e];if(o.$ref&&i.def)for(let e in r)"$ref"!==e&&"allOf"!==e&&e in i.def&&JSON.stringify(r[e])===JSON.stringify(i.def[e])&&delete r[e]}let o=t._zod.parent;if(o&&o!==a){n(o);let t=e.seen.get(o);if(t?.schema.$ref&&(r.$ref=t.schema.$ref,t.def))for(let e in r)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(r[e])===JSON.stringify(t.def[e])&&delete r[e]}e.override({zodSchema:t,jsonSchema:r,path:i.path??[]})};for(let t of[...e.seen.entries()].reverse())n(t[0]);let r={};if("draft-2020-12"===e.target?r.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?r.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target&&(r.$schema="http://json-schema.org/draft-04/schema#"),e.external?.uri){let i=e.external.registry.get(t)?.id;if(!i)throw Error("Schema is missing an `id` property");r.$id=e.external.uri(i)}Object.assign(r,i.def??i.schema);let s=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(s[e.defId]=e.def)}e.external||Object.keys(s).length>0&&("draft-2020-12"===e.target?r.$defs=s:r.definitions=s);try{let i=JSON.parse(JSON.stringify(r));return Object.defineProperty(i,"~standard",{value:{...t["~standard"],jsonSchema:{input:t6(t,"input",e.processors),output:t6(t,"output",e.processors)}},enumerable:!1,writable:!1}),i}catch(e){throw Error("Error converting schema to JSON.")}}let t9=(e,t={})=>i=>{let n=t0({...i,processors:t});
37return t1(e,n),t4(n,e),t2(n,e)},t6=(e,t,i={})=>n=>{let{libraryOptions:r,target:s}=n??{},a=t0({...r??{},target:s,io:t,processors:i});return t1(e,a),t4(a,e),t2(a,e)},t3={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},t8=(e,t,i,n)=>{i.type="string";let{minimum:r,maximum:s,format:a,patterns:o,contentEncoding:l}=e._zod.bag;if("number"==typeof r&&(i.minLength=r),"number"==typeof s&&(i.maxLength=s),a&&(i.format=t3[a]??a,""===i.format&&delete i.format,"time"===a&&delete i.format),l&&(i.contentEncoding=l),o&&o.size>0){let e=[...o];1===e.length?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}},t7=(e,t,i,n)=>{let{minimum:r,maximum:s,format:a,multipleOf:o,exclusiveMaximum:l,exclusiveMinimum:d}=e._zod.bag;"string"==typeof a&&a.includes("int")?i.type="integer":i.type="number","number"==typeof d&&("draft-04"===t.target||"openapi-3.0"===t.target?(i.minimum=d,i.exclusiveMinimum=!0):i.exclusiveMinimum=d),"number"==typeof r&&(i.minimum=r,"number"==typeof d&&"draft-04"!==t.target&&(d>=r?delete i.minimum:delete i.exclusiveMinimum)),"number"==typeof l&&("draft-04"===t.target||"openapi-3.0"===t.target?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l),"number"==typeof s&&(i.maximum=s,"number"==typeof l&&"draft-04"!==t.target&&(l<=s?delete i.maximum:delete i.exclusiveMaximum)),"number"==typeof o&&(i.multipleOf=o)},t5=(e,t,i,n)=>{i.type="boolean"},ie=(e,t,i,n)=>{"openapi-3.0"===t.target?(i.type="string",i.nullable=!0,i.enum=[null]):i.type="null"},it=(e,t,i,n)=>{i.not={}},ii=(e,t,i,n)=>{},ir=(e,t,i,n)=>{},is=(e,t,i,n)=>{if("throw"===t.unrepresentable)throw Error("Date cannot be represented in JSON Schema")},ia=(e,t,i,n)=>{let r=u(e._zod.def.entries);r.every(e=>"number"==typeof e)&&(i.type="number"),r.every(e=>"string"==typeof e)&&(i.type="string"),i.enum=r},io=(e,t,i,n)=>{let r=e._zod.def,s=[];for(let e of r.values)if(void 0===e){if("throw"===t.unrepresentable)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof e){if("throw"===t.unrepresentable)throw Error("BigInt literals cannot be represented in JSON Schema");s.push(Number(e))}else s.push(e);if(0===s.length);else if(1===s.length){let e=s[0];i.type=null===e?"null":typeof e,"draft-04"===t.target||"openapi-3.0"===t.target?i.enum=[e]:i.const=e}else s.every(e=>"number"==typeof e)&&(i.type="number"),s.every(e=>"string"==typeof e)&&(i.type="string"),s.every(e=>"boolean"==typeof e)&&(i.type="boolean"),s.every(e=>null===e)&&(i.type="null"),i.enum=s},il=(e,t,i,n)=>{if("throw"===t.unrepresentable)throw Error("Custom types cannot be represented in JSON Schema")},id=(e,t,i,n)=>{if("throw"===t.unrepresentable)throw Error("Transforms cannot be represented in JSON Schema")},iu=(e,t,i,n)=>{let r=e._zod.def,{minimum:s,maximum:a}=e._zod.bag;"number"==typeof s&&(i.minItems=s),"number"==typeof a&&(i.maxItems=a),i.type="array",i.items=t1(r.element,t,{...n,path:[...n.path,"items"]})},ic=(e,t,i,n)=>{let r=e._zod.def;i.type="object",i.properties={};let s=r.shape;for(let e in s)i.properties[e]=t1(s[e],t,{...n,path:[...n.path,"properties",e]});let a=new Set(Object.keys(s)),o=new Set([...a].filter(e=>{let i=r.shape[e]._zod;return"input"===t.io?void 0===i.optin:void 0===i.optout}));o.size>0&&(i.required=Array.from(o)),r.catchall?._zod.def.type==="never"?i.additionalProperties=!1:r.catchall?r.catchall&&(i.additionalProperties=t1(r.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):"output"===t.io&&(i.additionalProperties=!1)},ip=(e,t,i,n)=>{let r=e._zod.def,s=!1===r.inclusive,a=r.options.map((e,i)=>t1(e,t,{...n,path:[...n.path,s?"oneOf":"anyOf",i]}));s?i.oneOf=a:i.anyOf=a},ih=(e,t,i,n)=>{let r=e._zod.def,s=t1(r.left,t,{...n,path:[...n.path,"allOf",0]}),a=t1(r.right,t,{...n,path:[...n.path,"allOf",1]}),o=[..."allOf"in s&&1===Object.keys(s).length?s.allOf:[s],..."allOf"in a&&1===Object.keys(a).length?a.allOf:[a]];i.allOf=o},ig=(e,t,i,n)=>{let r=e._zod.def;i.type="array";let s="draft-2020-12"===t.target?"prefixItems":"items",a="draft-202
370-12"===t.target?"items":"openapi-3.0"===t.target?"items":"additionalItems",o=r.items.map((e,i)=>t1(e,t,{...n,path:[...n.path,s,i]})),l=r.rest?t1(r.rest,t,{...n,path:[...n.path,a,..."openapi-3.0"===t.target?[r.items.length]:[]]}):null;"draft-2020-12"===t.target?(i.prefixItems=o,l&&(i.items=l)):"openapi-3.0"===t.target?(i.items={anyOf:o},l&&i.items.anyOf.push(l),i.minItems=o.length,l||(i.maxItems=o.length)):(i.items=o,l&&(i.additionalItems=l));let{minimum:d,maximum:u}=e._zod.bag;"number"==typeof d&&(i.minItems=d),"number"==typeof u&&(i.maxItems=u)},i_=(e,t,i,n)=>{let r=e._zod.def;i.type="object";let s=r.keyType,a=s._zod.bag,o=a?.patterns;if("loose"===r.mode&&o&&o.size>0){let e=t1(r.valueType,t,{...n,path:[...n.path,"patternProperties","*"]});for(let t of(i.patternProperties={},o))i.patternProperties[t.source]=e}else("draft-07"===t.target||"draft-2020-12"===t.target)&&(i.propertyNames=t1(r.keyType,t,{...n,path:[...n.path,"propertyNames"]})),i.additionalProperties=t1(r.valueType,t,{...n,path:[...n.path,"additionalProperties"]});let l=s._zod.values;if(l){let e=[...l].filter(e=>"string"==typeof e||"number"==typeof e);e.length>0&&(i.required=e)}},im=(e,t,i,n)=>{let r=e._zod.def,s=t1(r.innerType,t,n),a=t.seen.get(e);"openapi-3.0"===t.target?(a.ref=r.innerType,i.nullable=!0):i.anyOf=[s,{type:"null"}]},iv=(e,t,i,n)=>{let r=e._zod.def;t1(r.innerType,t,n),t.seen.get(e).ref=r.innerType},iy=(e,t,i,n)=>{let r=e._zod.def;t1(r.innerType,t,n),t.seen.get(e).ref=r.innerType,i.default=JSON.parse(JSON.stringify(r.defaultValue))},ib=(e,t,i,n)=>{let r=e._zod.def;t1(r.innerType,t,n),t.seen.get(e).ref=r.innerType,"input"===t.io&&(i._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},ik=(e,t,i,n)=>{let r;let s=e._zod.def;t1(s.innerType,t,n),t.seen.get(e).ref=s.innerType;try{r=s.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}i.default=r},iw=(e,t,i,n)=>{let r=e._zod.def,s="input"===t.io?"transform"===r.in._zod.def.type?r.out:r.in:r.out;t1(s,t,n),t.seen.get(e).ref=s},iS=(e,t,i,n)=>{let r=e._zod.def;t1(r.innerType,t,n),t.seen.get(e).ref=r.innerType,i.readOnly=!0},ix=(e,t,i,n)=>{let r=e._zod.def;t1(r.innerType,t,n),t.seen.get(e).ref=r.innerType},iz=(e,t,i,n)=>{let r=e._zod.innerType;t1(r,t,n),t.seen.get(e).ref=r},iE=a("ZodISODateTime",(e,t)=>{eW.init(e,t),iG.init(e,t)}),iI=a("ZodISODate",(e,t)=>{eY.init(e,t),iG.init(e,t)}),iP=a("ZodISOTime",(e,t)=>{eX.init(e,t),iG.init(e,t)}),iO=a("ZodISODuration",(e,t)=>{eQ.init(e,t),iG.init(e,t)}),iC=(e,t)=>{j.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>(function(e,t=e=>e.message){let i={_errors:[]},n=e=>{for(let r of e.issues)if("invalid_union"===r.code&&r.errors.length)r.errors.map(e=>n({issues:e}));else if("invalid_key"===r.code)n({issues:r.issues});else if("invalid_element"===r.code)n({issues:r.issues});else if(0===r.path.length)i._errors.push(t(r));else{let e=i,n=0;for(;n<r.path.length;){let i=r.path[n];n===r.path.length-1?(e[i]=e[i]||{_errors:[]},e[i]._errors.push(t(r))):e[i]=e[i]||{_errors:[]},e=e[i],n++}}};return n(e),i})(e,t)},flatten:{value:t=>(function(e,t=e=>e.message){let i={},n=[];for(let r of e.issues)r.path.length>0?(i[r.path[0]]=i[r.path[0]]||[],i[r.path[0]].push(t(r))):n.push(t(r));return{formErrors:n,fieldErrors:i}})(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,c,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,c,2)}},isEmpty:{get:()=>0===e.issues.length}})},iR=a("ZodError",iC),iA=a("ZodError",iC,{Parent:Error}),iT=D(iA),iN=U(iA),i$=V(iA),ij=q(iA),iL=(e,t,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return D(iA)(e,t,n)},iD=(e,t,i)=>D(iA)(e,t,i),iU=async(e,t,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return U(iA)(e,t,n)},iV=async(e,t,i)=>U(iA)(e,t,i),iF=(e,t,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return V(iA)(e,t,n)},iq=(e,t,i)=>V(iA)(e,t,i),iM=async(e,t,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return q(iA)(e,t,n)},iZ=async(e,t,i)=>q(iA)(e,t,i),iK=a("ZodType",(e,t)=>(ej.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:t6(e,"input"),output:t6(e,"output")}}),e.toJSONSchema=t9(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...i)=>e.clone(m(t,{checks:[...t.checks??[],...i.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,i)=>E(e,t,i),e.brand=()=>e,e.register=(t,i)=>(t.add(e,i),e),e.parse=(t,i)=>iT(e,t,i,{callee:e.parse}),e.safeParse=(t,i)=>i$(e,t,i),e.parseAsync=async(t,i)=>iN(e,t,i,{callee:e.parseAsync}),e.safeParseAsync=async(t,i)=>ij(e,t,i),e.spa=e.safeParseAsync,e.encode=(t,i)=>iL(e,t,i),e.decode=(t,i)=>iD(e,t,i),e.encodeAsync=async(t,i)=>iU(e,t,i),e.decodeAsync=async(t,i)=>iV(e,t,i),e.safeEncode=(t,i)=>iF(e,t,i),e.safeDecode=(t,i)=>iq(e,t,i),e.safeEncodeAsync=async(t,i)=>iM(e,t,i),e.safeDecodeAsync=async(t,i)=>iZ(e,t,i),e.refine=(t,i)=>e.check(function(e,t={}){return new nH({type:"custom",check:"custom",fn:e,...I(t)})}(t,i)),e.superRefine=t=>e.check(function(e){let t=function(e,t){let i=new em({check:"custom",...I(void 0)});return i._zod.check=e,i}(i=>(i.addIssue=e=>{"string"==typeof e?i.issues.push(N(e,i.value,t._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=i.value),e.inst??(e.inst=t),e.continue??(e.continue=!t._zod.def.abort),i.issues.push(N(e)))},e(i.value,i)));return t}(t)),e.overwrite=t=>
37e.check(tQ(t)),e.optional=()=>nj(e),e.exactOptional=()=>new nL({type:"optional",innerType:e}),e.nullable=()=>nU(e),e.nullish=()=>nj(nU(e)),e.nonoptional=t=>new nq({type:"nonoptional",innerType:e,...I(t)}),e.array=()=>nb(e),e.or=t=>nx([e,t]),e.and=t=>new nz({type:"intersection",left:e,right:t}),e.transform=t=>nK(e,new nN({type:"transform",transform:t})),e.default=t=>(function(e,t){return new nV({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():S(t)}})})(e,t),e.prefault=t=>(function(e,t){return new nF({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():S(t)}})})(e,t),e.catch=t=>(function(e,t){return new nM({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})})(e,t),e.pipe=t=>nK(e,t),e.readonly=()=>new nB({type:"readonly",innerType:e}),e.describe=t=>{let i=e.clone();return tF.add(i,{description:t}),i},Object.defineProperty(e,"description",{get:()=>tF.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return tF.get(e);let i=e.clone();return tF.add(i,t[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),iB=a("_ZodString",(e,t)=>{eL.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>t8(e,t,i);let i=e._zod.bag;e.format=i.format??null,e.minLength=i.minimum??null,e.maxLength=i.maximum??null,e.regex=(...t)=>e.check(function(e,t){return new eI({check:"string_format",format:"regex",...I(t),pattern:e})}(...t)),e.includes=(...t)=>e.check(function(e,t){return new eC({check:"string_format",format:"includes",...I(t),includes:e})}(...t)),e.startsWith=(...t)=>e.check(function(e,t){return new eR({check:"string_format",format:"starts_with",...I(t),prefix:e})}(...t)),e.endsWith=(...t)=>e.check(function(e,t){return new eA({check:"string_format",format:"ends_with",...I(t),suffix:e})}(...t)),e.min=(...t)=>e.check(tY(...t)),e.max=(...t)=>e.check(tW(...t)),e.length=(...t)=>e.check(tX(...t)),e.nonempty=(...t)=>e.check(tY(1,...t)),e.lowercase=t=>e.check(new eP({check:"string_format",format:"lowercase",...I(t)})),e.uppercase=t=>e.check(new eO({check:"string_format",format:"uppercase",...I(t)})),e.trim=()=>e.check(tQ(e=>e.trim())),e.normalize=(...t)=>e.check(function(e){return tQ(t=>t.normalize(e))}(...t)),e.toLowerCase=()=>e.check(tQ(e=>e.toLowerCase())),e.toUpperCase=()=>e.check(tQ(e=>e.toUpperCase())),e.slugify=()=>e.check(tQ(e=>e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")))}),iJ=a("ZodString",(e,t)=>{eL.init(e,t),iB.init(e,t),e.email=t=>e.check(new iW({type:"string",format:"email",check:"string_format",abort:!1,...I(t)})),e.url=t=>e.check(new i0({type:"string",format:"url",check:"string_format",abort:!1,...I(t)})),e.jwt=t=>e.check(new ns({type:"string",format:"jwt",check:"string_format",abort:!1,...I(t)})),e.emoji=t=>e.check(new i1({type:"string",format:"emoji",check:"string_format",abort:!1,...I(t)})),e.guid=t=>e.check(tq(iY,t)),e.uuid=t=>e.check(tM(iX,t)),e.uuidv4=t=>e.check(new iX({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...I(t)})),e.uuidv6=t=>e.check(new iX({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...I(t)})),e.uuidv7=t=>e.check(new iX({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...I(t)})),e.nanoid=t=>e.check(new i4({type:"string",format:"nanoid",check:"string_format",abort:!1,...I(t)})),e.guid=t=>e.check(tq(iY,t)),e.cuid=t=>e.check(new i2({type:"string",format:"cuid",check:"string_format",abort:!1,...I(t)})),e.cuid2=t=>e.check(new i9({type:"string",format:"cuid2",check:"string_format",abort:!1,...I(t)})),e.ulid=t=>e.check(new i6({type:"string",format:"ulid",check:"string_format",abort:!1,...I(t)})),e.base64=t=>e.check(new ni({type:"string",format:"base64",check:"string_format",abort:!1,...I(t)})),e.base64url=t=>e.check(new nn({type:"string",format:"base64url",check:"string_format",abort:!1,...I(t)})),e.xid=t=>e.check(new i3({type:"string",format:"xid",check:"string_format",abort:!1,...I(t)})),e.ksuid=t=>e.check(new i8({type:"string",format:"ksuid",check:"string_format",abort:!1,...I(t)})),e.ipv4=t=>e.check(new i7({type:"string",format:"ipv4",check:"string_format",abort:!1,...I(t)})),e.ipv6=t=>e.check(new i5({type:"string",format:"ipv6",check:"string_format",abort:!1,...I(t)})),e.cidrv4=t=>e.check(new ne({type:"string",format:"cidrv4",check:"string_format",abort:!1,...I(t)})),e.cidrv6=t=>e.check(new nt({type:"string",format:"cidrv6",check:"string_format",abort:!1,...I(t)})),e.e164=t=>e.check(new nr({type:"string",format:"e164",check:"string_format",abort:!1,...I(t)})),e.datetime=t=>e.check(new iE({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...I(t)})),e.date=t=>e.check(new iI({type:"string",format:"date",check:"string_format",...I(t)})),e.time=t=>e.check(new iP({type:"string",format:"time",check:"string_format",precision:null,...I(t)})),e.duration=t=>e.check(new iO({type:"string",format:"duration",check:"string_format",...I(t)}))});function iH(e){return new iJ({type:"string",...I(e)})}let iG=a("ZodStringFormat",(e,t)=>{eD.init(e,t),iB.init(e,t)}),iW=a("ZodEmail",(e,t)=>{eF.init(e,t),iG.init(e,t)}),iY=a("ZodGUID",(e,t)=>{eU.init(e,t),iG.init(e,t)}),iX=a("ZodUUID",(e,t)=>{eV.init(e,t),iG.init(e,t)});function iQ(e){return tM(iX,e)}let i0=a("ZodURL",(e,t)=>{eq.init(e,t),iG.init(e,t)}),i1=a("ZodEmoji",(e,t)=>{eM.init(e,t),iG.init(e,t)}),i4=a("ZodNanoID",(e,t)=>{eZ.init(e,t),iG.init(e,t)}),i2=a("ZodCUID",(e,t)=>{eK.init(e,t),iG.init(e,t)}),i9=a("ZodCUID2",(e,t)=>{eB.init(e,t),iG.init(e,t)}),i6=a("ZodULID",(e,t)=>{eJ.init(e,t),iG.init(e,t)}),i3=a("ZodXID",(e,t)=>{eH.init(e,t),iG.init(e,t)}),i8=a("ZodKSUID",(e,t)=>{eG.init(e,t),iG.init(e,t)}),i7=a("ZodIPv4",(e,t)=>{e0.init(e,t),iG.init(e,t)}),i5=a("ZodIPv6",(e,t)=>{e1.init(e,t),iG.init(e,t)}),ne=a("ZodCIDRv4",(e,t)=>{e4.init(e,t),iG.init(e,t)}),nt=a("ZodCIDRv6",(e,t)=>{e2.init(e,t),iG.init(e,t)}),ni=a("ZodBase64",(e,t)=>{e6.init(e,t),iG.init(e,t)}),nn=a("ZodBase64URL",(e,t)=>{e3.init(e,t),iG.init(e,t)}),nr=a("ZodE164",(e,t)=>{e8.init(e,t),iG.init(e,t)}),ns=a("ZodJWT",(e,t)=>{e7.init(e,t),iG.init(e,t)}),na=a("ZodNumber",(e,t)=>{e5.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>t7(e,t,i),e.gt=(t,i)=>e.check(tJ(t,i)),e.gte=(t,i)=>e.check(tH(t,i)),e.min=(t,i)=>e.check(tH(t,i)),e.lt=(t,i)=>e.check(tK(t,i)),e.lte=(t,i)=>e.check(tB(t,i)),e.max=(t,i)=>e.check(tB(t,i)),e.int=t=>e.check(nd(t)),e.safe=t=>e.check(nd(t)),e.positive=t=>e.check(tJ(0,t)),e.nonnegative=t=>e.check(tH(0,t)),e.negative=t=>e.check(tK(0,t)),e.nonpositive=t=>e.check(tB(0,t)),e.multipleOf=(t,i)=>e.check(tG(t,i)),e.step=(t,i)=>e.check(tG(t,i)),e.finite=()=>e;let i=e._zod.bag;e.minValue=Math.max(i.minimum??Number.NEGATIVE_INFINITY,i.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(i.maximum??Number.POSITIVE_INFINITY,i.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(i.format??"").includes("int")||Number.isSafeInteger(i.multipleOf??.5),e.isFinite=!0,e.format=i.format??null});function no(e){return new na({type:"number",checks:[],...I(e)})}let nl=a("ZodNumberFormat",(e,t)=>{te.init(e,t),na.init(e,t)});
37function nd(e){return new nl({type:"number",check:"number_format",abort:!1,format:"safeint",...I(e)})}let nu=a("ZodBoolean",(e,t)=>{tt.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>t5(e,t,i)});function nc(e){return new nu({type:"boolean",...I(e)})}let np=a("ZodNull",(e,t)=>{ti.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>ie(e,t,i)}),nh=a("ZodAny",(e,t)=>{tn.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(e,t,i)=>ii()});function nf(){return new nh({type:"any"})}let ng=a("ZodUnknown",(e,t)=>{tr.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(e,t,i)=>ir()});function n_(){return new ng({type:"unknown"})}let nm=a("ZodNever",(e,t)=>{ts.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>it(e,t,i)}),nv=a("ZodDate",(e,t)=>{ta.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>is(e,t),e.min=(t,i)=>e.check(tH(t,i)),e.max=(t,i)=>e.check(tB(t,i));let i=e._zod.bag;e.minDate=i.minimum?new Date(i.minimum):null,e.maxDate=i.maximum?new Date(i.maximum):null}),ny=a("ZodArray",(e,t)=>{tl.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>iu(e,t,i,n),e.element=t.element,e.min=(t,i)=>e.check(tY(t,i)),e.nonempty=t=>e.check(tY(1,t)),e.max=(t,i)=>e.check(tW(t,i)),e.length=(t,i)=>e.check(tX(t,i)),e.unwrap=()=>e.element});function nb(e,t){return new ny({type:"array",element:e,...I(t)})}let nk=a("ZodObject",(e,t)=>{th.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>ic(e,t,i,n),g(e,"shape",()=>t.shape),e.keyof=()=>nR(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:n_()}),e.loose=()=>e.clone({...e._zod.def,catchall:n_()}),e.strict=()=>e.clone({...e._zod.def,catchall:new nm({type:"never",...I(void 0)})}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>(function(e,t){if(!w(t))throw Error("Invalid input to extend: expected a plain object");let i=e._zod.def.checks;if(i&&i.length>0){let i=e._zod.def.shape;for(let e in t)if(void 0!==Object.getOwnPropertyDescriptor(i,e))throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=m(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return _(this,"shape",i),i}});return E(e,n)})(e,t),e.safeExtend=t=>(function(e,t){if(!w(t))throw Error("Invalid input to safeExtend: expected a plain object");let i=m(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return _(this,"shape",i),i}});return E(e,i)})(e,t),e.merge=t=>(function(e,t){let i=m(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t._zod.def.shape};return _(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return E(e,i)})(e,t),e.pick=t=>(function(e,t){let i=e._zod.def,n=i.checks;if(n&&n.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let r=m(e._zod.def,{get shape(){let e={};for(let n in t){if(!(n in i.shape))throw Error(`Unrecognized key: "${n}"`);t[n]&&(e[n]=i.shape[n])}return _(this,"shape",e),e},checks:[]});return E(e,r)})(e,t),e.omit=t=>(function(e,t){let i=e._zod.def,n=i.checks;if(n&&n.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let r=m(e._zod.def,{get shape(){let n={...e._zod.def.shape};for(let e in t){if(!(e in i.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete n[e]}return _(this,"shape",n),n},checks:[]});return E(e,r)})(e,t),e.partial=(...t)=>(function(e,t,i){let n=t._zod.def.checks;if(n&&n.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let r=m(t._zod.def,{get shape(){let n=t._zod.def.shape,r={...n};if(i)for(let t in i){if(!(t in n))throw Error(`Unrecognized key: "${t}"`);i[t]&&(r[t]=e?new e({type:"optional",innerType:n[t]}):n[t])}else for(let t in n)r[t]=e?new e({type:"optional",innerType:n[t]}):n[t];return _(this,"shape",r),r},checks:[]});return E(t,r)})(n$,e,t[0]),e.required=(...t)=>(function(e,t,i){let n=m(t._zod.def,{get shape(){let n=t._zod.def.shape,r={...n};if(i)for(let t in i){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);i[t]&&(r[t]=new e({type:"nonoptional",innerType:n[t]}))}else for(let t in n)r[t]=new e({type:"nonoptional",innerType:n[t]});return _(this,"shape",r),r}});return E(t,n)})(nq,e,t[0])});function nw(e,t){return new nk({type:"object",shape:e??{},...I(t)})}let nS=a("ZodUnion",(e,t)=>{tg.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>ip(e,t,i,n),e.options=t.options});function nx(e,t){return new nS({type:"union",options:e,...I(t)})}let nz=a("ZodIntersection",(e,t)=>{t_.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>ih(e,t,i,n)}),nE=a("ZodTuple",(e,t)=>{tv.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>ig(e,t,i,n),e.rest=t=>e.clone({...e._zod.def,rest:t})});function nI(e,t,i){let n=t instanceof ej,r=n?i:t;return new nE({type:"tuple",items:e,rest:n?t:null,...I(r)})}let nP=a("ZodRecord",(e,t)=>{tb.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>i_(e,t,i,n),e.keyType=t.keyType,e.valueType=t.valueType});function nO(e,t,i){return new nP({type:"record",keyType:e,valueType:t,...I(i)})}let nC=a("ZodEnum",(e,t)=>{tk.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>ia(e,t,i),e.enum=t.entries,e.options=Object.values(t.entries);let i=new Set(Object.keys(t.entries));e.extract=(e,n)=>{let r={};for(let n of e)if(i.has(n))r[n]=t.entries[n];else throw Error(`Key ${n} not found in enum`);return new nC({...t,checks:[],...I(n),entries:r})},e.exclude=(e,n)=>{let r={...t.entries};for(let t of e)if(i.has(t))delete r[t];else throw Error(`Key ${t} not found in enum`);return new nC({...t,checks:[],...I(n),entries:r})}});function nR(e,t){return new nC({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...I(t)})}let nA=a("ZodLiteral",(e,t)=>{tw.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>io(e,t,i),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if
37(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function nT(e,t){return new nA({type:"literal",values:Array.isArray(e)?e:[e],...I(t)})}let nN=a("ZodTransform",(e,t)=>{tS.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>id(e,t),e._zod.parse=(i,n)=>{if("backward"===n.direction)throw new l(e.constructor.name);i.addIssue=n=>{"string"==typeof n?i.issues.push(N(n,i.value,t)):(n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=i.value),n.inst??(n.inst=e),i.issues.push(N(n)))};let r=t.transform(i.value,i);return r instanceof Promise?r.then(e=>(i.value=e,i)):(i.value=r,i)}}),n$=a("ZodOptional",(e,t)=>{tz.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>ix(e,t,i,n),e.unwrap=()=>e._zod.def.innerType});function nj(e){return new n$({type:"optional",innerType:e})}let nL=a("ZodExactOptional",(e,t)=>{tE.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>ix(e,t,i,n),e.unwrap=()=>e._zod.def.innerType}),nD=a("ZodNullable",(e,t)=>{tI.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>im(e,t,i,n),e.unwrap=()=>e._zod.def.innerType});function nU(e){return new nD({type:"nullable",innerType:e})}let nV=a("ZodDefault",(e,t)=>{tP.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>iy(e,t,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),nF=a("ZodPrefault",(e,t)=>{tC.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>ib(e,t,i,n),e.unwrap=()=>e._zod.def.innerType}),nq=a("ZodNonOptional",(e,t)=>{tR.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>iv(e,t,i,n),e.unwrap=()=>e._zod.def.innerType}),nM=a("ZodCatch",(e,t)=>{tT.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>ik(e,t,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),nZ=a("ZodPipe",(e,t)=>{tN.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>iw(e,t,i,n),e.in=t.in,e.out=t.out});function nK(e,t){return new nZ({type:"pipe",in:e,out:t})}let nB=a("ZodReadonly",(e,t)=>{tj.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>iS(e,t,i,n),e.unwrap=()=>e._zod.def.innerType}),nJ=a("ZodLazy",(e,t)=>{tD.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>iz(e,t,i,n),e.unwrap=()=>e._zod.def.getter()}),nH=a("ZodCustom",(e,t)=>{tU.init(e,t),iK.init(e,t),e._zod.processJSONSchema=(t,i,n)=>il(e,t)});function nG(e){let t=new nJ({type:"lazy",getter:()=>nx([iH(e),no(),nc(),new np({type:"null",...I(void 0)}),nb(t),nO(iH(),t)])});return t}let nW=nw({error_identifier:iH()}),nY=nW.extend({errors:nb(iH())}),nX=nw({count:no(),page:no(),limit:no(),last:no(),prev:no().nullable(),next:no().nullable()});nw({page:no().int().min(1),limit:no().int().min(0).max(250)});let nQ=nR(["recaptcha_v3","turnstile","hcaptcha","friendly_captcha"]),n0=nw({id:no(),provider:nQ,site_key:iH(),login_enabled:nc(),login_score_threshold:no().nullable(),registration_enabled:nc(),registration_score_threshold:no().nullable(),newsletter_enabled:nc(),newsletter_score_threshold:no().nullable(),created_at:iH(),updated_at:iH()});function n1(e){return["captcha_token_missing","captcha_verification_failed","captcha_score_too_low"].includes(e)}nw({error_identifier:nR(["captcha_token_missing","captcha_verification_failed","captcha_score_too_low"]),error_codes:nb(iH()).optional(),score:no().optional(),threshold:no().optional()});class n4{siteKey=null;loaded=!1;loadPromise=null;getScriptUrl(){return this.scriptUrl}getScriptAttributes(){return{async:!0,defer:!0}}async load(e){return this.loaded&&this.siteKey===e?void 0:(this.loadPromise||(this.siteKey=e,this.loadPromise=new Promise((e,t)=>{if(document.querySelector(`script[src*="${this.scriptIdentifier}"]`)){this.isGlobalAvailable()?Promise.resolve(this.onScriptLoaded()).then(()=>{this.loaded=!0,e()}):(this.loadPromise=null,t(Error(`${this.provider} script found in DOM but global not available`)));return}let i=document.createElement("script");i.src=this.getScriptUrl();let n=this.getScriptAttributes();void 0!==n.async&&(i.async=n.async),void 0!==n.defer&&(i.defer=n.defer),n.type&&(i.type=n.type),i.onload=()=>{Promise.resolve(this.onScriptLoaded()).then(()=>{this.loaded=!0,e()})},i.onerror=()=>{this.loadPromise=null,t(Error(`Failed to load ${this.provider} script`))},document.head.appendChild(i)})),this.loadPromise)}isLoaded(){return this.loaded}destroy(){this.loaded=!1,this.loadPromise=null,this.siteKey=null}}class n2 extends n4{pendingResolve=null;pendingReject=null;onSuccess(e){this.pendingResolve&&(this.pendingResolve({token:e,provider:this.provider}),this.clearPending())}onError(e){this.pendingReject&&(this.pendingReject(e instanceof Error?e:Error(`${this.provider} error: ${e}`)),this.clearPending())}clearPending(){this.pendingResolve=null,this.pendingReject=null}reset(){this.clearPending()}destroy(){super.destroy(),this.clearPending()}}class n9 extends n2{provider="friendly_captcha";scriptUrl="https://cdn.jsdelivr.net/npm/[email protected]/widget.module.min.js";scriptIdentifier="friendly-challenge";widget=null;lastToken=null;getScriptAttributes(){return{async:!0,type:"module"}}isGlobalAvailable(){return void 0!==window.friendlyChallenge}onScriptLoaded(){return new Promise(e=>setTimeout(e,100))}async execute(e){if(!this.loaded||!this.siteKey)throw Error("Friendly Captcha not loaded. Call load() first.");if(this.lastToken)return{token:this.lastToken,provider:this.provider};if(this.widget){let e=this.widget.getResponse();if(e)return{token:e,provider:this.provider}}return new Promise((e,t)=>
37{this.pendingResolve=e,this.pendingReject=t,this.widget||t(Error("Friendly Captcha widget not rendered. Call render() first."))})}render(e){if(!this.loaded||!this.siteKey)throw Error("Friendly Captcha not loaded. Call load() first.");this.widget&&this.widget.destroy(),this.lastToken=null,this.widget=new window.friendlyChallenge.WidgetInstance(e,{sitekey:this.siteKey,doneCallback:e=>{this.lastToken=e,this.onSuccess(e)},errorCallback:e=>this.onError(e)})}reset(){super.reset(),this.widget&&this.widget.reset(),this.lastToken=null}destroy(){this.widget&&(this.widget.destroy(),this.widget=null),this.lastToken=null,super.destroy()}}class n6 extends n2{provider="hcaptcha";scriptUrl="https://js.hcaptcha.com/1/api.js";scriptIdentifier="hcaptcha";widgetId=null;getScriptUrl(){return`${this.scriptUrl}?render=explicit`}isGlobalAvailable(){return void 0!==window.hcaptcha}onScriptLoaded(){}async execute(e){if(!this.loaded||!this.siteKey)throw Error("hCaptcha not loaded. Call load() first.");if(this.widgetId){let e=window.hcaptcha.getResponse(this.widgetId);if(e)return{token:e,provider:this.provider}}return new Promise((e,t)=>{this.pendingResolve=e,this.pendingReject=t,this.widgetId||t(Error("hCaptcha widget not rendered. Call render() first."))})}render(e){if(!this.loaded||!this.siteKey)throw Error("hCaptcha not loaded. Call load() first.");this.widgetId&&window.hcaptcha.remove(this.widgetId),this.widgetId=window.hcaptcha.render(e,{sitekey:this.siteKey,callback:e=>this.onSuccess(e),"error-callback":e=>this.onError(e),"expired-callback":()=>this.reset(),theme:"light",size:"normal"})}reset(){super.reset(),this.widgetId&&window.hcaptcha.reset(this.widgetId)}destroy(){this.widgetId&&(window.hcaptcha.remove(this.widgetId),this.widgetId=null),super.destroy()}}class n3 extends n4{provider="recaptcha_v3";scriptUrl="https://www.google.com/recaptcha/api.js";scriptIdentifier="recaptcha";getScriptUrl(){return`${this.scriptUrl}?render=${this.siteKey}`}isGlobalAvailable(){return void 0!==window.grecaptcha}onScriptLoaded(){return new Promise(e=>{window.grecaptcha.ready(e)})}async execute(e="submit"){if(!this.loaded||!this.siteKey)throw Error("reCAPTCHA v3 not loaded. Call load() first.");return{token:await window.grecaptcha.execute(this.siteKey,{action:e}),provider:this.provider}}render(e){}reset(){}}class n8 extends n2{provider="turnstile";scriptUrl="https://challenges.cloudflare.com/turnstile/v0/api.js";scriptIdentifier="turnstile";widgetId=null;getScriptUrl(){return`${this.scriptUrl}?render=explicit`}isGlobalAvailable(){return void 0!==window.turnstile}onScriptLoaded(){}async execute(e){if(!this.loaded||!this.siteKey)throw Error("Turnstile not loaded. Call load() first.");if(this.widgetId){let e=window.turnstile.getResponse(this.widgetId);if(e)return{token:e,provider:this.provider}}return new Promise((e,t)=>{this.pendingResolve=e,this.pendingReject=t,this.widgetId||t(Error("Turnstile widget not rendered. Call render() first."))})}render(e){if(!this.loaded||!this.siteKey)throw Error("Turnstile not loaded. Call load() first.");this.widgetId&&window.turnstile.remove(this.widgetId),this.widgetId=window.turnstile.render(e,{sitekey:this.siteKey,callback:e=>this.onSuccess(e),"error-callback":e=>this.onError(e),"expired-callback":()=>this.reset(),theme:"auto",size:"normal"})}reset(){super.reset(),this.widgetId&&window.turnstile.reset(this.widgetId)}destroy(){this.widgetId&&(window.turnstile.remove(this.widgetId),this.widgetId=null),super.destroy()}}let n7=(0,r.i)("CaptchaManager");class n5{provider=null;initPromise=null;configLoadingPromise=Promise.resolve();get config(){return s.u.captchaConfig}setConfigLoadingPromise(e){this.configLoadingPromise=e}isEnabledForFeature(e){if(!this.config)return!1;switch(e){case"login":return this.config.login_enabled;case"registration":return this.config.registration_enabled;case"newsletter":return this.config.newsletter_enabled;default:return!1}}isConfigured(){return null!==this.config}requiresWidget(){return!!this.config&&"recaptcha_v3"!==this.config.provider}getProviderType(){return this.config?.provider??null}async initialize(){if(!this.config){n7.debug("No captcha config found, skipping initialization");return}if(this.initPromise)return this.initPromise;let e=this.config;return this.initPromise=(async()=>
37{try{this.provider=function(e){switch(e){case"recaptcha_v3":return new n3;case"turnstile":return new n8;case"hcaptcha":return new n6;case"friendly_captcha":return new n9;default:throw Error(`Unknown captcha provider: ${e}`)}}(e.provider),await this.provider.load(e.site_key),n7.debug(`Captcha provider ${e.provider} loaded successfully`)}catch(e){throw n7.error("Failed to initialize captcha provider:",e),this.provider=null,this.initPromise=null,e}})(),this.initPromise}render(e){if(!this.provider){n7.warn("Cannot render captcha: provider not initialized");return}if(!this.requiresWidget()){n7.debug("Provider does not require widget rendering");return}this.provider.render(e)}async execute(e){if(await this.configLoadingPromise,!this.isEnabledForFeature(e))return n7.debug(`Captcha not enabled for feature: ${e}`),null;if(this.provider||await this.initialize(),!this.provider)throw Error("Cannot execute captcha: provider not initialized");try{let t=await this.provider.execute(e);return n7.debug(`Captcha token obtained for feature: ${e}`),t}catch(e){throw n7.error("Failed to execute captcha:",e),e}}reset(){this.provider?.reset()}isReady(){return this.provider?.isLoaded()??!1}destroy(){this.provider?.destroy(),this.provider=null,this.initPromise=null}}let re=new n5},5621:(e,t,i)=>{i.d(t,{F:()=>s,f:()=>a});let n=(0,i(1763).c)({messages:[],autoRemoveDelay:null}),r=0,s=new class{get state(){return n.state}addMessage(e,t){let i=`flash-${++r}`;return n.state.messages=[...n.state.messages,{id:i,text:e,variant:t}],n.state.autoRemoveDelay&&setTimeout(()=>this.remove(i),n.state.autoRemoveDelay),i}remove(e){n.state.messages=n.state.messages.filter(t=>t.id!==e)}clear(e){e?n.state.messages=n.state.messages.filter(t=>t.variant!==e):n.state.messages=[]}success={addMessage:e=>this.addMessage(e,"success")};error={addMessage:e=>this.addMessage(e,"error")};info={addMessage:e=>this.addMessage(e,"info")}},a=n.state},9527:(e,t,i)=>{i.d(t,{i:()=>es,t:()=>ea}
37);var n=i(2378),r=i(1511);let s=e=>"string"==typeof e,a=()=>{let e,t;let i=new Promise((i,n)=>{e=i,t=n});return i.resolve=e,i.reject=t,i},o=e=>null==e?"":""+e,l=(e,t,i)=>{e.forEach(e=>{t[e]&&(i[e]=t[e])})},d=/###/g,u=e=>e&&e.indexOf("###")>-1?e.replace(d,"."):e,c=e=>!e||s(e),p=(e,t,i)=>{let n=s(t)?t.split("."):t,r=0;for(;r<n.length-1;){if(c(e))return{};let t=u(n[r]);!e[t]&&i&&(e[t]=new i),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++r}return c(e)?{}:{obj:e,k:u(n[r])}},h=(e,t,i)=>{let{obj:n,k:r}=p(e,t,Object);if(void 0!==n||1===t.length){n[r]=i;return}let s=t[t.length-1],a=t.slice(0,t.length-1),o=p(e,a,Object);for(;void 0===o.obj&&a.length;)s=`${a[a.length-1]}.${s}`,o=p(e,a=a.slice(0,a.length-1),Object),o?.obj&&void 0!==o.obj[`${o.k}.${s}`]&&(o.obj=void 0);o.obj[`${o.k}.${s}`]=i},f=(e,t,i,n)=>{let{obj:r,k:s}=p(e,t,Object);r[s]=r[s]||[],r[s].push(i)},g=(e,t)=>{let{obj:i,k:n}=p(e,t);if(i&&Object.prototype.hasOwnProperty.call(i,n))return i[n]},_=(e,t,i)=>{let n=g(e,i);return void 0!==n?n:g(t,i)},m=(e,t,i)=>{for(let n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?s(e[n])||e[n]instanceof String||s(t[n])||t[n]instanceof String?i&&(e[n]=t[n]):m(e[n],t[n],i):e[n]=t[n]);return e},v=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var y={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};let b=e=>s(e)?e.replace(/[&<>"'\/]/g,e=>y[e]):e,k=[" ",",","?","!",";"],w=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}(20),S=(e,t,i)=>{t=t||"",i=i||"";let n=k.filter(e=>0>t.indexOf(e)&&0>i.indexOf(e));if(0===n.length)return!0;let r=w.getRegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`),s=!r.test(e);
37if(!s){let t=e.indexOf(i);t>0&&!r.test(e.substring(0,t))&&(s=!0)}return s},x=(e,t,i=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}let n=t.split(i),r=e;for(let e=0;e<n.length;){let t;if(!r||"object"!=typeof r)return;let s="";for(let a=e;a<n.length;++a)if(a!==e&&(s+=i),s+=n[a],void 0!==(t=r[s])){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<n.length-1)continue;e+=a-e+1;break}r=t}return r},z=e=>e?.replace(/_/g,"-"),E={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class I{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||E,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,i,n){return n&&!this.debug?null:(s(e[0])&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new I(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new I(this.logger,e)}}var P=new I;class O{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let i=this.observers[e].get(t)||0;this.observers[e].set(t,i+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,i])=>{for(let n=0;n<i;n++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,n])=>{for(let r=0;r<n;r++)i.apply(i,[e,...t])})}}class C extends O{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,i,n={}){let r;let a=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?r=e.split("."):(r=[e,t],i&&(Array.isArray(i)?r.push(...i):s(i)&&a?r.push(...i.split(a)):r.push(i)));let l=g(this.data,r);return(!l&&!t&&!i&&e.indexOf(".")>-1&&(e=r[0],t=r[1],i=r.slice(2).join(".")),!l&&o&&s(i))?x(this.data?.[e]?.[t],i,a):l}addResource(e,t,i,n,r={silent:!1}){let s=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=[e,t];i&&(a=a.concat(s?i.split(s):i)),e.indexOf(".")>-1&&(a=e.split("."),n=t,t=a[1]),this.addNamespaces(t),h(this.data,a,n),r.silent||this.emit("added",e,t,i,n)}addResources(e,t,i,n={silent:!1}){for(let n in i)(s(i[n])||Array.isArray(i[n]))&&this.addResource(e,t,n,i[n],{silent:!0});n.silent||this.emit("added",e,t,i)}addResourceBundle(e,t,i,n,r,s={silent:!1,skipCopy:!1}){let a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),n=i,i=t,t=a[1]),this.addNamespaces(t);let o=g(this.data,a)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),n?m(o,i,r):o={...o,...i},h(this.data,a,o),s.silent||this.emit("added",e,t,i)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var R={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,i,n,r){return e.forEach(e=>{t=this.processors[e]?.process(t,i,n,r)??t}),t}};let A=Symbol("i18next/PATH_KEY");function T(e,t){let{[A]:i}=e(function(){let e;let t=[],i=Object.create(null);return i.get=(n,r)=>(e?.revoke?.(),r===A)?t:(t.push(r),(e=Proxy.revocable(n,i)).proxy),Proxy.revocable(Object.create(null),i).proxy}()),n=t?.keySeparator??".",r=t?.nsSeparator??":";if(i.length>1&&r){let e=t?.ns,s=Array.isArray(e)?e:null;if(s&&s.length>1&&s.slice(1).includes(i[0]))return`${i[0]}${r}${i.slice(1).join(n)}`}return i.join(n)}let N={},$=e=>!s(e)&&"boolean"!=typeof e&&"number"!=typeof e;class j extends O{constructor(e,t={}){super(),l(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
37i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=P.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let i={...t};if(null==e)return!1;let n=this.resolve(e,i);if(n?.res===void 0)return!1;let r=$(n.res);return!1!==i.returnObjects||!r}extractFromKey(e,t){let i=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===i&&(i=":");let n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],a=i&&e.indexOf(i)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!S(e,i,n);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:s(r)?[r]:r};let a=e.split(i);(i!==n||i===n&&this.options.ns.indexOf(a[0])>-1)&&(r=a.shift()),e=a.join(n)}return{key:e,namespaces:s(r)?[r]:r}}translate(e,t,i){let n="object"==typeof t?{...t}:t;if("object"!=typeof n&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof n&&(n={...n}),n||(n={}),null==e)return"";"function"==typeof e&&(e=T(e,{...this.options,...n})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?T(e,{...this.options,...n}):String(e));let r=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,a=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(e[e.length-1],n),d=l[l.length-1],u=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===u&&(u=":");let c=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c?.toLowerCase()==="cimode")return p?r?{res:`${d}${u}${o}`,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:d,usedParams:this.getUsedParamsDetails(n)}:`${d}${u}${o}`:r?{res:o,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:d,usedParams:this.getUsedParamsDetails(n)}:o;let h=this.resolve(e,n),f=h?.res,g=h?.usedKey||o,_=h?.exactUsedKey||o,m=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=void 0!==n.count&&!s(n.count),b=j.hasDefaultValue(n),k=y?this.pluralResolver.getSuffix(c,n.count,n):"",w=n.ordinal&&y?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",S=y&&!n.ordinal&&0===n.count,x=S&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${k}`]||n[`defaultValue${w}`]||n.defaultValue,z=f;v&&!f&&b&&(z=x);let E=$(z),I=Object.prototype.toString.apply(z);if(v&&z&&E&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(I)&&!(s(m)&&Array.isArray(z))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,z,{...n,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return r?(h.res=e,h.usedParams=this.getUsedParamsDetails(n),h):e}if(a){let e=Array.isArray(z),t=e?[]:{},i=e?_:g;for(let e in z)if(Object.prototype.hasOwnProperty.call(z,e)){let r=`${i}${a}${e}`;b&&!f?t[e]=this.translate(r,{...n,defaultValue:$(x)?x[e]:void 0,joinArrays:!1,ns:l}):t[e]=this.translate(r,{...n,joinArrays:!1,ns:l}),t[e]===r&&(t[e]=z[e])}f=t}}else if(v&&s(m)&&Array.isArray(f))(f=f.join(m))&&(f=this.extendTranslation(f,e,n,i));else{let t=!1,r=!1;!this.isValidLookup(f)&&b&&(t=!0,f=x),this.isValidLookup(f)||(r=!0,f=o);let s=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&r?void 0:f,l=b&&x!==f&&this.options.updateMissing;if(r||t||l){if(this.logger.log(l?"updateKey":"missingKey",c,d,o,l?x:f),a){let e=this.resolve(o,{...n,keySeparator:!1});e&&e.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 e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let i=0;i<t.length;i++)e.push(t[i]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(n.lng||this.language):e.push(n.lng||this.language);let i=(e,t,i)=>{let r=b&&i!==f?i:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,d,t,r,l,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,d,t,r,l,n),this.emit
37("missingKey",e,d,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&y?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,n);S&&n[`defaultValue${this.options.pluralSeparator}zero`]&&0>t.indexOf(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{i([e],o+t,n[`defaultValue${t}`]||x)})}):i(e,o,x))}f=this.extendTranslation(f,e,n,h,i),r&&f===o&&this.options.appendNamespaceToMissingKey&&(f=`${d}${u}${o}`),(r||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${u}${o}`:o,t?f:void 0,n))}return r?(h.res=f,h.usedParams=this.getUsedParamsDetails(n),h):f}extendTranslation(e,t,i,n,r){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!i.skipInterpolation){let a;i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let o=s(e)&&(i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(o){let t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let l=i.replace&&!s(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,i.lng||this.language||n.usedLng,i),o){let t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(i.nest=!1)}!i.lng&&n&&n.res&&(i.lng=this.language||n.usedLng),!1!==i.nest&&(e=this.interpolator.nest(e,(...e)=>r?.[0]!==e[0]||i.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),i)),i.interpolation&&this.interpolator.reset()}let a=i.postProcess||this.options.postProcess,o=s(a)?[a]:a;return null!=e&&o?.length&&!1!==i.applyPostProcessor&&(e=R.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e,t={}){let i,n,r,a,o;return s(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?T(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(i))return;let l=this.extractFromKey(e,t),d=l.key;n=d;let u=l.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));let c=void 0!==t.count&&!s(t.count),p=c&&!t.ordinal&&0===t.count,h=void 0!==t.context&&(s(t.context)||"number"==typeof t.context)&&""!==t.context,f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);u.forEach(e=>{this.isValidLookup(i)||(o=e,!N[`${f[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(N[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${f.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!!!")),f.forEach(n=>{let s;if(this.isValidLookup(i))return;a=n;let o=[d];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,d,n,e,t);else{let e;c&&(e=this.pluralResolver.getSuffix(n,t.count,t));let i=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(t.ordinal&&0===e.indexOf(r)&&o.push(d+e.replace(r,this.options.pluralSeparator)),o.push(d+e),p&&o.push(d+i)),h){let n=`${d}${this.options.contextSeparator||"_"}${t.context}`;o.push(n),c&&(t.ordinal&&0===e.indexOf(r)&&o.push(n+e.replace(r,this.options.pluralSeparator)),o.push(n+e),p&&o.push(n+i))}}for(;s=o.pop();)this.isValidLookup(i)||(r=s,i=this.getResource(n,e,s,t))}))})}),{res:i,usedKey:n,exactUsedKey:r,usedLng:a,usedNS:o}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,i,n={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,i,n):this.resourceStore.getResource(e,t,i,n)}
37getUsedParamsDetails(e={}){let t=e.replace&&!s(e.replace),i=t?e.replace:e;if(t&&void 0!==e.count&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!t)for(let e of(i={...i},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete i[e];return i}static hasDefaultValue(e){let t="defaultValue";for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t===i.substring(0,t.length)&&void 0!==e[i])return!0;return!1}}class L{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=P.create("languageUtils")}getScriptPartFromCode(e){if(!(e=z(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=z(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(s(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)?t:this.options.lowerCaseLng?e.toLowerCase():e}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let i=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(i))&&(t=i)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let i=this.getScriptPartFromCode(e);if(this.isSupportedCode(i))return t=i;let n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>{if(e===n||!(0>e.indexOf("-")&&0>n.indexOf("-"))&&(e.indexOf("-")>0&&0>n.indexOf("-")&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),s(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let i=e[t];return i||(i=e[this.getScriptPartFromCode(t)]),i||(i=e[this.formatLanguageCode(t)]),i||(i=e[this.getLanguagePartFromCode(t)]),i||(i=e.default),i||[]}toResolveHierarchy(e,t){let i=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),n=[],r=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return s(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(e))):s(e)&&r(this.formatLanguageCode(e)),i.forEach(e=>{0>n.indexOf(e)&&r(this.formatLanguageCode(e))}),n}}let D={zero:0,one:1,two:2,few:3,many:4,other:5},U={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class V{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=P.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let i;let n=z("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:n,type:r});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];try{i=new Intl.PluralRules(n,{type:r})}catch(r){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),U;if(!e.match(/-|_/))return U;let n=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(n,t)}return this.pluralRulesCache[s]=i,i}needsPlural(e,t={}){let i=this.getRule(e,t);return i||(i=this.getRule("dev",t)),i?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,i={}){return this.getSuffixes(e,i).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let i=this.getRule(e,t);return(i||(i=this.getRule("dev",t)),i)?i.resolvedOptions().pluralCategories.sort((e,t)=>
37D[e]-D[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,i={}){let n=this.getRule(e,i);return n?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,i))}}let F=(e,t,i,n=".",r=!0)=>{let a=_(e,t,i);return!a&&r&&s(i)&&void 0===(a=x(e,i,n))&&(a=x(t,i,n)),a},q=e=>e.replace(/\$/g,"$$$$");class M{constructor(e={}){this.logger=P.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:i,useRawValueToEscape:n,prefix:r,prefixEscaped:s,suffix:a,suffixEscaped:o,formatSeparator:l,unescapeSuffix:d,unescapePrefix:u,nestingPrefix:c,nestingPrefixEscaped:p,nestingSuffix:h,nestingSuffixEscaped:f,nestingOptionsSeparator:g,maxReplaces:_,alwaysFormat:m}=e.interpolation;this.escape=void 0!==t?t:b,this.escapeValue=void 0===i||i,this.useRawValueToEscape=void 0!==n&&n,this.prefix=r?v(r):s||"{{",this.suffix=a?v(a):o||"}}",this.formatSeparator=l||",",this.unescapePrefix=d?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=c?v(c):p||v("$t("),this.nestingSuffix=h?v(h):f||v(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=_||1e3,this.alwaysFormat=void 0!==m&&m,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):RegExp(t,"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,i,n){let r,a,l;let d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=e=>{if(0>e.indexOf(this.formatSeparator)){let r=F(t,d,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(r,void 0,i,{...n,...t,interpolationkey:e}):r}let r=e.split(this.formatSeparator),s=r.shift().trim(),a=r.join(this.formatSeparator).trim();return this.format(F(t,d,s,this.options.keySeparator,this.options.ignoreJSONStructure),a,i,{...n,...t,interpolationkey:s})};this.resetRegExp();let c=n?.missingInterpolationHandler||this.options.missingInterpolationHandler,p=n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>q(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?q(this.escape(e)):q(e)}].forEach(t=>{for(l=0;r=t.regex.exec(e);){let i=r[1].trim();if(void 0===(a=u(i))){if("function"==typeof c){let t=c(e,r,n);a=s(t)?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,i))a="";else if(p){a=r[0];continue}else this.logger.warn(`missed to pass in variable ${i} for interpolating ${e}`),a=""}else s(a)||this.useRawValueToEscape||(a=o(a));let d=t.safeValue(a);if(e=e.replace(r[0],d),p?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++l>=this.maxReplaces)break}}),e}nest(e,t,i={}){let n,r,a;let l=(e,t)=>{let i=this.nestingOptionsSeparator;if(0>e.indexOf(i))return e;let n=e.split(RegExp(`${v(i)}[ ]*{`)),r=`{${n[1]}`;e=n[0];let s=(r=this.interpolate(r,a)).match(/'/g),o=r.match(/"/g);((s?.length??0)%2!=0||o)&&(o?.length??0)%2==0||(r=r.replace(/'/g,'"'));try{a=JSON.parse(r),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${i}${r}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let d=[];(a=(a={...i}).replace&&!s(a.replace)?a.replace:a).applyPostProcessor=!1,delete a.defaultValue;let u=/{.*}/.test(n[1])?n[1].lastIndexOf("}")+1:n[1].indexOf(this.formatSeparator);if(-1!==u&&(d=n[1].slice(u).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),n[1]=n[1].slice(0,u)),(r=t(l.call(this,n[1].trim(),a),a))&&n[0]===e&&!s(r))return r;s(r)||(r=o(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),d.length&&(r=d.reduce((e,t)=>
37this.format(e,t,i.lng,{...i,interpolationkey:n[1].trim()}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}let Z=e=>{let t=e.toLowerCase().trim(),i={};if(e.indexOf("(")>-1){let n=e.split("(");t=n[0].toLowerCase().trim();let r=n[1].substring(0,n[1].length-1);"currency"===t&&0>r.indexOf(":")?i.currency||(i.currency=r.trim()):"relativetime"===t&&0>r.indexOf(":")?i.range||(i.range=r.trim()):r.split(";").forEach(e=>{if(e){let[t,...n]=e.split(":"),r=n.join(":").trim().replace(/^'+|'+$/g,""),s=t.trim();i[s]||(i[s]=r),"false"===r&&(i[s]=!1),"true"===r&&(i[s]=!0),isNaN(r)||(i[s]=parseInt(r,10))}})}return{formatName:t,formatOptions:i}},K=e=>{let t={};return(i,n,r)=>{let s=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(s={...s,[r.interpolationkey]:void 0});let a=n+JSON.stringify(s),o=t[a];return o||(o=e(z(n),r),t[a]=o),o(i)}},B=e=>(t,i,n)=>e(z(i),n)(t);class J{constructor(e={}){this.logger=P.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let i=t.cacheInBuiltFormats?K:B;this.formats={number:i((e,t)=>{let i=new Intl.NumberFormat(e,{...t});return e=>i.format(e)}),currency:i((e,t)=>{let i=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>i.format(e)}),datetime:i((e,t)=>{let i=new Intl.DateTimeFormat(e,{...t});return e=>i.format(e)}),relativetime:i((e,t)=>{let i=new Intl.RelativeTimeFormat(e,{...t});return e=>i.format(e,t.range||"day")}),list:i((e,t)=>{let i=new Intl.ListFormat(e,{...t});return e=>i.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=K(t)}format(e,t,i,n={}){let r=t.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&0>r[0].indexOf(")")&&r.find(e=>e.indexOf(")")>-1)){let e=r.findIndex(e=>e.indexOf(")")>-1);r[0]=[r[0],...r.splice(1,e)].join(this.formatSeparator)}return r.reduce((e,t)=>{let{formatName:r,formatOptions:s}=Z(t);if(this.formats[r]){let t=e;try{let a=n?.formatParams?.[n.interpolationkey]||{},o=a.locale||a.lng||n.locale||n.lng||i;t=this.formats[r](e,o,{...s,...n,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${r}`),e},e)}}let H=(e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)};class G extends O{constructor(e,t,i,n={}){super(),this.backend=e,this.store=t,this.services=i,this.languageUtils=i.languageUtils,this.options=n,this.logger=P.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(i,n.backend,n)}queueLoad(e,t,i,n){let r={},s={},a={},o={};return e.forEach(e=>{let n=!0;t.forEach(t=>{let a=`${e}|${t}`;!i.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===s[a]&&(s[a]=!0):(this.state[a]=1,n=!1,void 0===s[a]&&(s[a]=!0),void 0===r[a]&&(r[a]=!0),void 0===o[t]&&(o[t]=!0)))}),n||(a[e]=!0)}),(Object.keys(r).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(r),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(o)}}loaded(e,t,i){let n=e.split("|"),r=n[0],s=n[1];t&&this.emit("failedLoading",r,s,t),!t&&i&&this.store.addResourceBundle(r,s,i,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&i&&(this.state[e]=0);let a={};this.queue.forEach(i=>{f(i.loaded,[r],s),H(i,e),t&&i.errors.push(t),0!==i.pendingCount||i.done||(Object.keys(i.loaded).forEach(e=>{a[e]||(a[e]={});let t=i.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),i.done=!0,i.errors.length?i.callback(i.errors):i.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,i,n=0,r=this.retryTimeout,s){if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:i,tried:n,wait:r,callback:s});return}this.readingCalls++;let a=(a,o)=>
37{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(a&&o&&n<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,i,n+1,2*r,s)},r);return}s(a,o)},o=this.backend[i].bind(this.backend);if(2===o.length){try{let i=o(e,t);i&&"function"==typeof i.then?i.then(e=>a(null,e)).catch(a):a(null,i)}catch(e){a(e)}return}return o(e,t,a)}prepareLoading(e,t,i={},n){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();s(e)&&(e=this.languageUtils.toResolveHierarchy(e)),s(t)&&(t=[t]);let r=this.queueLoad(e,t,i,n);if(!r.toLoad.length)return r.pending.length||n(),null;r.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,i){this.prepareLoading(e,t,{},i)}reload(e,t,i){this.prepareLoading(e,t,{reload:!0},i)}loadOne(e,t=""){let i=e.split("|"),n=i[0],r=i[1];this.read(n,r,"read",void 0,void 0,(i,s)=>{i&&this.logger.warn(`${t}loading namespace ${r} for language ${n} failed`,i),!i&&s&&this.logger.log(`${t}loaded namespace ${r} for language ${n}`,s),this.loaded(e,i,s)})}saveMissing(e,t,i,n,r,s={},a=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${i}" 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(null!=i&&""!==i){if(this.backend?.create){let o={...s,isUpdate:r},l=this.backend.create.bind(this.backend);if(l.length<6)try{let r;(r=5===l.length?l(e,t,i,n,o):l(e,t,i,n))&&"function"==typeof r.then?r.then(e=>a(null,e)).catch(a):a(null,r)}catch(e){a(e)}else l(e,t,i,n,a,o)}e&&e[0]&&this.store.addResource(e[0],t,i,n)}}}let W=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),s(e[1])&&(t.defaultValue=e[1]),s(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let i=e[3]||e[2];
37Object.keys(i).forEach(e=>{t[e]=i[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Y=e=>(s(e.ns)&&(e.ns=[e.ns]),s(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),s(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),X=()=>{},Q=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})},ee="__i18next_supportNoticeShown",et=()=>"undefined"!=typeof globalThis&&!!globalThis[ee]||"undefined"!=typeof process&&!!process.env&&!!process.env.I18NEXT_NO_SUPPORT_NOTICE,ei=()=>{"undefined"!=typeof globalThis&&(globalThis[ee]=!0)},en=e=>!!(e?.modules?.backend?.name?.indexOf("Locize")>0||e?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||e?.options?.backend?.backends&&e.options.backend.backends.some(e=>e?.name?.indexOf("Locize")>0||e?.constructor?.name?.indexOf("Locize")>0)||e?.options?.backend?.projectId||e?.options?.backend?.backendOptions&&e.options.backend.backendOptions.some(e=>e?.projectId));class er extends O{constructor(e={},t){if(super(),this.options=Y(e),this.services={},this.logger=P,this.modules={external:[]},Q(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(s(e.ns)?e.defaultNS=e.ns:0>e.ns.indexOf("translation")&&(e.defaultNS=e.ns[0]));let i=W();this.options={...i,...this.options,...Y(e)},this.options.interpolation={...i.interpolation,...this.options.interpolation}
37,void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=i.overloadTranslationOptionHandler),!1===this.options.showSupportNotice||en(this)||et()||("undefined"!=typeof console&&void 0!==console.info&&console.info("ð i18next is made possible by our own product, Locize â consider powering your project with managed localization (AI, CDN, integrations): https://locize.com ð"),ei());let n=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?P.init(n(this.modules.logger),this.options):P.init(null,this.options),e=this.modules.formatter?this.modules.formatter:J;let t=new L(this.options);this.store=new C(this.options.resources,this.options);let r=this.services;r.logger=P,r.resourceStore=this.store,r.languageUtils=t,r.pluralResolver=new V(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),e&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(r.formatter=n(e),r.formatter.init&&r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new M(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new G(n(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(r.languageDetector=n(this.modules.languageDetector),r.languageDetector.init&&r.languageDetector.init(r,this.options.detection,this.options)),this.modules.i18nFormat&&(r.i18nFormat=n(this.modules.i18nFormat),r.i18nFormat.init&&r.i18nFormat.init(this)),this.translator=new j(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=X),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[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(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let r=a(),o=()=>{let e=(e,i)=>{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),r.resolve(i),t(e,i)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?o():setTimeout(o,0),r}loadResources(e,t=X){let i=t,n=s(e)?e:this.language;if("function"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return i();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};n?t(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),i(e)})}else i(null)}reloadResources(e,t,i){let n=a();return"function"==typeof e&&(i=e,e=void 0),"function"==typeof t&&(i=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),i||(i=X),this.services.backendConnector.reload(e,t,e=>{n.resolve(),i(e)}),n}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&R.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&0>this.languages.indexOf(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let i=a();
37this.emit("languageChanging",e);let n=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},r=(r,s)=>{s?this.isLanguageChangingTo===e&&(n(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,i.resolve((...e)=>this.t(...e)),t&&t(r,(...e)=>this.t(...e))},o=t=>{e||t||!this.services.languageDetector||(t=[]);let i=s(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(i)?i:this.services.languageUtils.getBestMatchFromCodes(s(t)?[t]:t);a&&(this.language||n(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{r(e,a)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),i}getFixedT(e,t,i){let n=(e,t,...r)=>{let s,a;(s="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(r)):{...t}).lng=s.lng||n.lng,s.lngs=s.lngs||n.lngs,s.ns=s.ns||n.ns,""!==s.keyPrefix&&(s.keyPrefix=s.keyPrefix||i||n.keyPrefix);let o={...this.options,...s};"function"==typeof s.keyPrefix&&(s.keyPrefix=T(s.keyPrefix,o));let l=this.options.keySeparator||".";return s.keyPrefix&&Array.isArray(e)?a=e.map(e=>("function"==typeof e&&(e=T(e,o)),`${s.keyPrefix}${l}${e}`)):("function"==typeof e&&(e=T(e,o)),a=s.keyPrefix?`${s.keyPrefix}${l}${e}`:e),this.t(a,s)};return s(e)?n.lng=e:n.lngs=e,n.ns=t,n.keyPrefix=i,n}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
37if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;let s=(e,t)=>{let i=this.services.backendConnector.state[`${e}|${t}`];return -1===i||0===i||2===i};if(t.precheck){let e=t.precheck(this,s);if(void 0!==e)return e}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,e)&&(!n||s(r,e)))}loadNamespaces(e,t){let i=a();return this.options.ns?(s(e)&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}loadLanguages(e,t){let i=a();s(e)&&(e=[e]);let n=this.options.preload||[],r=e.filter(e=>0>n.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return r.length?(this.options.preload=n.concat(r),this.loadResources(e=>{i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}let t=this.services?.languageUtils||new L(W());return e.toLowerCase().indexOf("-latn")>1?"ltr":["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"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){let i=new er(e,t);return i.createInstance=er.createInstance,i}cloneInstance(e={},t=X){let i=e.forkResourceStore;i&&delete e.forkResourceStore;let n={...this.options,...e,isClone:!0},r=new er(n);if((void 0!==e.debug||void 0!==e.prefix)&&(r.logger=r.logger.clone(e)),["store","services","language"].forEach(e=>{r[e]=this[e]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},i){let e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((i,n)=>(i[n]={...e[t][n]},i),e[t]),e),{});r.store=new C(e,n),r.services.resourceStore=r.store}if(e.interpolation){let t={...W().interpolation,...this.options.interpolation,...e.interpolation},i={...n,interpolation:t};r.services.interpolator=new M(i)}return r.translator=new j(r.services,n),r.translator.on("*",(e,...t)=>{r.emit(e,...t)}),r.init(n,t),r.translator.options=n,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let es=er.createInstance();es.use(n.k).init({lng:"en",fallbackLng:"en",debug:n.m.isDev,interpolation:{escapeValue:!1},resources:{de:{translation:{auth:{email:{placeholder:"Geben Sie Ihre E-Mail-Adresse ein"},magicCode:{already_sent_text:"Magischer Code wurde bereits an Ihre E-Mail-Adresse gesendet",button_text:"Magischen Code senden",resend:{button_text:"Magischen Code erneut senden"},sending_text:"Wird gesendet..."},passkey:{button_text:"Mit Passkey anmelden",loading_text:"Authentifizierung..."},password:{button_text:"Mit Password anmelden",confirmation:{placeholder:"Bestätigen Sie Ihr Passwort"},placeholder:"Geben Sie Ihr Passwort ein"},resetPassword:{button_text_resend:"Mail zum Zurücksetzen des Passworts erneut senden",button_text_reset:"Passwort zurücksetzen",button_text_set:"Passwort speichern",success_message:"E-Mail zum Zurücksetzen des Passworts gesendet. Bitte überprüfen Sie Ihren Posteingang"},resendConfirmation:{button_text:"Bestätigungs-E-Mail erneut senden",description:"Bitte überprüfen Sie Ihren Posteingang, um Ihre E-Mail-Adresse zu bestätigen. Falls Sie keine E-Mail erhalten haben, können Sie eine neue Bestätigungs-E-Mail anfordern.",title:"E-Mail-Adresse bestätig
vendor: 8,216 bytes, line 37
37en"},"single-login":{button_text:"Anmelden"},socialLogin:{button_text:"Weiter mit {{provider}}"},navigation:{back:"Zurück",restart:"Neu starten"}},buttons:{cancel:"Abbrechen",close:"SchlieÃen",confirm:"Bestätigen",connect:"Verbinden",continue:"Weiter",jump_to_service:"Zum Dienst wechseln",jump_to_unidy:"Zu Unidy wechseln",logout:"Abmelden",registration:"Neues Konto registrieren",sign_in:"Anmelden",submit:"Absenden"},errors:{account_locked:"Konto gesperrt",account_not_found:"Konto nicht gefunden",account_already_confirmed:"Ihre E-Mail-Adresse wurde bereits bestätigt. Bitte melden Sie sich an",account_unconfirmed:"Die E-Mail-Adresse des Kontos wurde noch nicht bestätigt",confirmation_recently_sent:"Eine Bestätigungs-E-Mail wurde kürzlich gesendet. Bitte warten Sie, bevor Sie eine neue anfordern",auth_method_required:"Bitte legen Sie ein Passwort fest oder bestätigen Sie Ihre E-Mail-Adresse, um fortzufahren",authentication_failed:"Authentifizierung fehlgeschlagen",bad_request:"Ungültige Anfrage",cannot_finalize:"Registrierung kann nicht abgeschlossen werden. Bitte füllen Sie alle Pflichtfelder aus",captcha_execution_failed:"Sicherheitsüberprüfung fehlgeschlagen. Bitte versuchen Sie es erneut",captcha_score_too_low:"Sicherheitsüberprüfung fehlgeschlagen. Bitte versuchen Sie es erneut",captcha_token_missing:"Bitte schlieÃen Sie die Sicherheitsüberprüfung ab",captcha_verification_failed:"Sicherheitsüberprüfung fehlgeschlagen. Bitte versuchen Sie es erneut",code_expired:"Bestätigungscode ist abgelaufen. Bitte fordern Sie einen neuen an",connection_failed:"Verbindung zum Unidy Server nicht möglich",email_already_registered:"Diese E-Mail-Adresse ist bereits registriert. Bitte melden Sie sich stattdessen an",expired:"Abgelaufen",failed_to_load_profile:"Profildaten konnten nicht geladen werden. Bitte überprüfen Sie die Konfiguration",field_required:"Dieses Feld ist erforderlich",invalid_code:"Ungültiger Bestätigungscode. Bitte versuchen Sie es erneut",invalid_id_token:"Ungültiger ID-Token",invalid_format:"Ungültiges Format",invalid_input:"Ungültige Eingabe",invalid_passkey:"Ungültiger Passkey",invalid_password:"Ungültiges Passwort",invalid_phone:"Bitte geben Sie eine gültige Telefonnummer ein",invalid_refresh_token:"Ungültiger Aktualisierungs-Token",invalid_required_fields_payload:"Ungültige Nutzlast für erforderliche Felder",invalid_reset_token:"Ungültiger Reset-Token. Bitte fordern Sie eine neue E-Mail zum Zurücksetzen des Passworts an",invalid_response_format:"Ungültiges Antwortformat",internal_server_error:"Interner Serverfehler",magic_code_is_missing:"Magischer Code fehlt",magic_code_recently_created:"Magischer Code wurde kürzlich erstellt",magic_link_not_enabled:"Die Anmeldung über magischen Link ist für dieses Konto nicht aktiviert",missing_id_token:"Fehlender ID-Token",missing_refresh_token:"Kein refresh token gefunden",missing_required_fields:"Fehlende Pflichtfelder",no_sign_in_id:"Keine Anmelde-ID verfügbar",not_valid:"Nicht gültig",passkey_cancelled:"Passkey-Authentifizierung abgebrochen",passkey_error:"Ein unbekannter Passkey-Fehler ist aufgetreten",passkey_invalid_state:"Ungültiger Passkey-Status",passkey_not_supported:"Passkey nicht unterstützt",passkey_security_error:"Passkey-Sicherheitsfehler",password_not_set:"Passwort nicht festgelegt",password_required:"Passwort ist erforderlich",password_validation_failed:"Passwort erfüllt nicht die Anforderungen",password_requirements:{"is too short (minimum is 6 characters)":"Passwort ist zu kurz (mindestens 6 Zeichen)",min_length:"Mindestlänge ist 6 Zeichen",mixed_case:"Muss sowohl GroÃ- als auch Kleinbuchstaben enthalten",number:"Muss eine Zahl enthalten",symbol:"Muss ein Symbol enthalten"},passwords_do_not_match:"Passwörter stimmen nicht überein",prefix:"FEHLER: ",refresh_failed:"Authorisierungstoken konnte nicht aktualisiert werden. Bitte melden Sie sich erneut an",refresh_token_revoked:"Aktualisierungs-Token widerrufen",registration_expired:"Registrierungssitzung abgelaufen. Bitte starten Sie erneut",registration_flow_already_exists:"Für diese E-Mail-Adresse läuft bereits eine Registrierung",registration_not_found:"Registrierungssitzung nicht gefunden. Bitte starten Sie erneut",required_field:"{{field}} ist erforderlich",reset_password_already_sent:"Zurücksetzen des Passworts bereits gesendet",reset_token_expired:"Reset-Token ist abgelaufen. Bitte fordern Sie eine neue E-Mail zum Zurücksetzen des Passworts an",reset_token_missing:"Reset-Token fehlt",schema_validation_error:"Schemavalidierungsfehler",validation:{accepted:"muss akzeptiert werden",blank:"darf nicht leer sein",empty:"darf nicht leer sein",even:"muss gerade sein",exclusion:"ist reserviert",in:"ist nicht in der Liste enthalten",inclusion:"ist nicht in der Liste enthalten",invalid:"ist ungültig",not_a_number:"ist keine Zahl",odd:"muss ungerade sein",present:"muss leer sein",taken:"ist bereits vergeben",too_long:"ist zu lang",too_short:"ist zu kurz"},sign_in_expired:"Anmeldung abgelaufen",sign_in_not_found:"Anmeldung nicht gefunden",sign_out_failed:"Abmelden fehlgeschlagen, Grund: {{reason}}",unknown:"Ein unbekannter Fehler ist aufgetreten",used:"Verwendet",verification_code_recently_sent:"Ein Bestätigungscode wurde kürzlich gesendet. Bitte warten Sie, bevor Sie einen neuen anfordern",verification_failed:"Verifizierung fehlgeschlagen"},loading:"Wird geladen...",oauth:{errors:{application_not_found:"OAuth-Anwendung nicht gefunden",client_id_required:"client-id ist erforderlich",connection_failed:"Netzwerkfehler. Bitte versuchen Sie es erneut.",grant_failed:"Zustimmung konnte nicht erteilt werden",invalid_field_values:"Ungültige Feldwerte angegeben",missing_required_fields:"Bitte füllen Sie alle Pflichtfelder aus",not_authenticated:"Benutzer ist nicht authentifiziert. Bitte melden Sie sich zuerst an.",unknown:"Ein unerwarteter Fehler ist aufgetreten",update_failed:"Benutzerdaten konnten nicht aktualisiert werden"}},newsletter:{buttons:{logout:"x",resend_doi:"Bestätigung erneut senden",subscribe:"Abonnieren",unsubscribe:"Abbestellen"},errors:{already_subscribed:"Bereits abonniert",consent_required:"Bitte akzeptieren Sie die Nutzungsbedingungen, um sich anzumelden",email_required:"Bitte geben Sie Ihre E-Mail-Adresse ein",invalid_email:"Ungültige E-Mail-Adresse",login_email_not_found:"Abonnement mit dieser E-Mail-Adresse existiert nicht",newsletter_not_found:"Newsletter nicht gefunden",preferences_not_found:"Präferenz nicht gefunden",rate_limit_exceeded:"Anfragelimit überschritten. Bitte versuchen Sie es später erneut",unauthorized:"Ihre Sitzung ist abgelaufen. Bitte melden Sie sich erneut an",unconfirmed:"Ihre E-Mail-Adresse ist für diesen Newsletter nicht bestätigt",unsubscribe_failed:"Abmeldung fehlgeschlagen",invalid_preference_token:"Ungültiges Präferenz-Token. Geben Sie Ihre E-Mail-Adresse ein, um einen neuen Link zu erhalten."},success:{doi_sent:"Bestätigungs-E-Mail wurde an Ihre E-Mail-Adresse gesendet",login_email_sent:"Wir haben einen Link zur Verwaltung Ihres bestehenden Abonnements an Ihre E-Mail-Adresse gesendet",logout:"Sie wurden erfolgreich abgemeldet",preferences_updated:"Ihre Präferenzen wurden erfolgreich aktualisiert",subscribe:"Sie haben sich erfolgreich abonniert",unsubscribe:"Sie haben sich erfolgreich abbestellt"}},profile:{signInToView:"Bitte melden Sie sich an, um Ihr Profil anzuzeigen",updated:"Profil wurde aktualisiert"},registration:{internal_matching:{check_button:"Konto suchen",checking:"Suche...",confirm_button:"Ja, dieses Konto verknüpfen",confirming:"Wird verknüpft...",default_primary_label:"Kundennummer",error_expired:"Ihre Registrierungssitzung ist abgelaufen. Bitte beginnen Sie von vorne.",error_generic:"Ein Fehler ist aufgetreten. Bitte versuchen Sie es erneut.",error_match_mismatch:"Die eingegebenen Informationen stimmen mit keinem Konto überein. Bitte überprüfen Sie Ihre Angaben und versuchen Sie es erneut.",error_match_not_found:"Für die angegebenen Informationen wurde kein Konto gefunden. Bitte überprüfen Sie Ihre Angaben und versuchen Sie es erneut.",error_no_match:"Kein passendes Konto gefunden. Sie können ohne Verknüpfung fortfahren.",
37match_confirm_question:"Möchten Sie dieses bestehende Konto verknüpfen?",match_found_description:"Wir haben ein Konto gefunden, das mit Ihren Daten verknüpft ist.",match_found_title:"Konto gefunden!",preview_created_at:"Registriert:",preview_email:"E-Mail:",reject_button:"Nein, neues Konto erstellen",rejecting:"Wird fortgesetzt...",skip_button:"Ohne Verknüpfung fortfahren",skipping:"Wird fortgesetzt..."}}}},en:{translation:{auth:{email:{placeholder:"Enter your email"},magicCode:{already_sent_text:"Magic code already sent to your email",button_text:"Send Magic Code",resend:{button_text:"Send Magic Code again"},sending_text:"Sending..."},passkey:{button_text:"Sign in with Passkey",loading_text:"Authenticating..."},password:{button_text:"Sign in with Password",confirmation:{placeholder:"Confirm your password"},placeholder:"Enter your password"},resetPassword:{button_text_resend:"Resend password reset email",button_text_reset:"Reset password",button_text_set:"Set password",button_text_save:"Save New Password",success_message:"Password reset email sent. Please check your inbox"},resendConfirmation:{button_text:"Resend confirmation email",description:"Please check your inbox to confirm your email. If you didn't receive it, you can request a new confirmation email.",title:"Confirm your email"},"single-login":{button_text:"Sign in"},socialLogin:{button_text:"Continue with {{provider}}"},navigation:{back:"Back",restart:"Start over"}},buttons:{cancel:"Cancel",close:"Close",confirm:"Confirm",connect:"Connect",continue:"Continue",jump_to_service:"Jump to Service",jump_to_unidy:"Jump to Unidy",logout:"Logout",registration:"Register new account",sign_in:"Sign In",submit:"Submit"},errors:{account_locked:"Account locked",account_not_found:"Account not found",account_already_confirmed:"Your email has already been confirmed. Please sign in",account_unconfirmed:"Account email has not been confirmed",confirmation_recently_sent:"A confirmation email was recently sent. Please wait before requesting a new one",auth_method_required:"Please set a password or verify your email to continue",authentication_failed:"Authentication failed",bad_request:"Bad request",cannot_finalize:"Cannot complete registration. Please fill in all required fields",captcha_execution_failed:"Security verification failed. Please try again",captcha_score_too_low:"Security verification failed. Please try again",captcha_token_missing:"Please complete the security verification",captcha_verification_failed:"Security verification failed. Please try again",code_expired:"Verification code has expired. Please request a new one",connection_failed:"Unable to connect to the Unidy server",email_already_registered:"This email is already registered. Please sign in instead",expired:"Expired",failed_to_load_profile:"Failed to load profile data. Please check configuration",field_required:"This field is required",invalid_code:"Invalid verification code. Please try again",invalid_id_token:"Invalid ID token",invalid_format:"Invalid format",invalid_input:"Invalid input",invalid_passkey:"Invalid passkey",invalid_password:"Invalid password",invalid_phone:"Please enter a valid phone number",invalid_refresh_token:"Invalid refresh token",invalid_required_fields_payload:"Invalid required fields payload",invalid_reset_token:"Invalid reset token. Please request a new password reset email",invalid_response_format:"Invalid response format",internal_server_error:"Internal server error",magic_code_not_valid:"Magic code is not valid",magic_code_is_missing:"Magic code is missing",magic_code_recently_created:"Magic code recently created",magic_link_not_enabled:"Magic link sign-in is not enabled for this account",missing_id_token:"Missing ID token",missing_refresh_token:"No refresh token present",missing_required_fields:"Missing required fields",no_sign_in_id:"No sign in ID available",not_valid:"Not valid",passkey_cancelled:"Passkey authentication cancelled",passkey_error:"An unknown passkey error occurred",passkey_invalid_state:"Passkey invalid state",passkey_not_supported:"Passkey not supported",passkey_security_error:"Passkey security error",password_not_set:"Password not set",password_required:"Password is required",password_validation_failed:"Password does not meet the requirements",password_requirements:{"is too short (minimum is 6 characters)":"Password is too short (minimum is 6 characters)",min_length:"Min length is 6 characters",mixed_case:"Must contain both uppercase and lowercase letters",number:"Must contain a number",symbol
37:"Must contain a symbol"},passwords_do_not_match:"Passwords do not match",prefix:"ERROR: ",refresh_failed:"Failed to refresh token. Please sign in again",refresh_token_revoked:"Refresh token revoked",registration_expired:"Registration session expired. Please start again",registration_flow_already_exists:"A registration is already in progress for this email",registration_not_found:"Registration session not found. Please start again",required_field:"{{field}} is required",reset_password_already_sent:"Reset password email already sent",reset_token_expired:"Reset token has expired. Please request a new password reset email",reset_token_missing:"Reset token is missing",schema_validation_error:"Schema validation error",validation:{accepted:"must be accepted",blank:"can't be blank",empty:"can't be empty",even:"must be even",exclusion:"is reserved",in:"is not included in the list",inclusion:"is not included in the list",invalid:"is invalid",not_a_number:"is not a number",odd:"must be odd",present:"must be blank",taken:"has already been taken",too_long:"is too long",too_short:"is too short"},sign_in_expired:"Sign in expired",sign_in_not_found:"Sign in not found",sign_out_failed:"Failed to sign out, reason: {{reason}}",unknown:"An unknown error occurred",used:"Used",verification_code_recently_sent:"A verification code was recently sent. Please wait before requesting a new one",verification_failed:"Verification failed"},loading:"Loading...",oauth:{errors:{application_not_found:"OAuth application not found",client_id_required:"client-id is required",connection_failed:"Network error. Please try again.",grant_failed:"Failed to grant consent",invalid_field_values:"Invalid field values provided",missing_required_fields:"Please fill in all required fields",not_authenticated:"User is not authenticated. Please log in first.",unknown:"An unexpected error occurred",update_failed:"Failed to update user data"}},newsletter:{buttons:{logout:"x",resend_doi:"Resend confirmation",subscribe:"Subscribe",unsubscribe:"Unsubscribe"},errors:{already_subscribed:"Already subscribed",consent_required:"Please accept the terms and conditions to subscribe",email_required:"Please enter your email address",invalid_email:"Invalid email address",login_email_not_found:"Subscription with this email does not exist",newsletter_not_found:"Newsletter not found",preferences_not_found:"Preference not found",rate_limit_exceeded:"Rate limit exceeded. Please try again later",unauthorized:"Your session has expired. Please login again",unconfirmed:"Your email is not confirmed for this newsletter",unsubscribe_failed:"Failed to unsubscribe",invalid_preference_token:"Invalid preference token. Enter your email address to receive a new link."},success:{doi_sent:"Confirmation email has been sent to your email address",login_email_sent:"We sent a link to manage your existing subscription to your email address",logout:"You have been logged out successfully",preferences_updated:"Your preferences have been updated successfully",subscribe:"You have successfully subscribed",unsubscribe:"You have successfully unsubscribed"}},profile:{signInToView:"Please sign in to view your profile",updated:"Profile is updated"},registration:{internal_matching:{check_button:"Find Account",checking:"Searching...",confirm_button:"Yes, use this account",confirming:"Linking...",default_primary_label:"Customer Number",error_expired:"Your registration session has expired. Please start over.",error_generic:"An error occurred. Please try again.",error_match_mismatch:"The entered information does not match any account. Please check your details and try again.",error_match_not_found:"No account found for the provided information. Please check your details and try again.",error_no_match:"No matching account found. You can continue without linking.",match_confirm_question:"Would you like to link this existing account?",match_found_description:"We found an account linked to your details.",match_found_title:"Account Found!",preview_created_at:"Registered:",preview_email:"Email:",reject_button:"No, create new account",rejecting:"Continuing...",skip_button:"Continue without linking",ski
37pping:"Continuing..."}}}},fr:{translation:{auth:{email:{placeholder:"Entrez votre adresse e-mail"},magicCode:{already_sent_text:"Code magique déjà envoyé à votre adresse e-mail",button_text:"Envoyer le code magique",resend:{button_text:"Renvoyer le code magique"},sending_text:"Envoi en cours..."},passkey:{button_text:"Se connecter avec une clé d'accès",loading_text:"Authentification..."},password:{button_text:"Se connecter avec un mot de passe",confirmation:{placeholder:"Confirmez votre mot de passe"},placeholder:"Entrez votre mot de passe"},resetPassword:{button_text_resend:"Renvoyer l'e-mail de réinitialisation du mot de passe",button_text_reset:"Réinitialiser le mot de passe",button_text_set:"Enregistrer le mot de passe",success_message:"E-mail de réinitialisation du mot de passe envoyé. Veuillez vérifier votre boîte de réception"},resendConfirmation:{button_text:"Renvoyer l'e-mail de confirmation",description:"Veuillez vérifier votre boîte de réception pour confirmer votre adresse e-mail. Si vous ne l'avez pas reçue, vous pouvez demander un nouvel e-mail de confirmation.",title:"Confirmez votre adresse e-mail"},"single-login":{button_text:"Se connecter"},socialLogin:{button_text:"Continuer avec {{provider}}"},navigation:{back:"Retour",restart:"Recommencer"}},buttons:{cancel:"Annuler",close:"Fermer",confirm:"Confirmer",connect:"Connecter",continue:"Continuer",jump_to_service:"Aller au service",jump_to_unidy:"Aller à Unidy",logout:"Se déconnecter",registration:"Créer un nouveau compte",sign_in:"Se connecter",submit:"Soumettre"},errors:{account_locked:"Compte verrouillé",account_not_found:"Compte introuvable",account_already_confirmed:"Votre adresse e-mail est déjà confirmée. Veuillez vous connecter",account_unconfirmed:"L'adresse e-mail du compte n'a pas été confirmée",confirmation_recently_sent:"Un e-mail de confirmation a été récemment envoyé. Veuillez patienter avant d'en demander un nouveau",auth_method_required:"Veuillez définir un mot de passe ou vérifier votre adresse e-mail pour continuer",authentication_failed:"Ãchec de l'authentification",bad_request:"Mauvaise requête",cannot_finalize:"Impossible de terminer l'inscription. Veuillez remplir tous les champs obligatoires",captcha_execution_failed:"La vérification de sécurité a échoué. Veuillez réessayer",captcha_score_too_low:"La vérification de sécurité a échoué. Veuillez réessayer",captcha_token_missing:"Veuillez compléter la vérification de sécurité",captcha_verification_failed:"La vérification de sécurité a échoué. Veuillez réessayer",code_expired:"Le code de vérification a expiré. Veuillez en demander un nouveau",connection_failed:"Impossible de se connecter au serveur Unidy",email_already_registered:"Cette adresse e-mail est déjà enregistrée. Veuillez vous connecter",expired:"Expiré",failed_to_load_profile:"Ãchec du chargement des données du profil. Veuillez vérifier la configuration",field_required:"Ce champ est obligatoire",invalid_code:"Code de vérification invalide. Veuillez réessayer",invalid_id_token:"Jeton d'identification invalide",invalid_format:"Format invalide",invalid_input:"Entrée invalide",invalid_passkey:"Clé d'accès invalide",invalid_password:"Mot de passe invalide",invalid_phone:"Veuillez saisir un numéro de téléphone valide",invalid_refresh_token:"Jeton de rafraîchissement invalide",invalid_required_fields_payload:"Charge utile des champs obligatoires invalide",invalid_reset_token:"Jeton de réinitialisation invalide. Veuillez demander un nouvel e-mail de réinitialisation du mot de passe",invalid_response_format:"Format de réponse invalide",internal_server_error:"Erreur interne du serveur",magic_code_is_missing:"Code magique manquant",magic_code_recently_created:"Code magique récemment créé",magic_link_not_enabled:"La connexion par lien magique n'est pas activée pour ce compte",missing_id_token:"Jeton d'identification manquant",missing_refresh_token:"Aucun jeton de rafraîchissement présent",missing_required_fields:"Champs obligatoires manquants",no_sign_in_id:"Aucun identifiant de connexion disponible",not_valid:"Non valide",passkey_cancelled:"Authentification par clé d'accès annulée",passkey_error:"Une erreur inconnue de clé d'accès s'est produite",passkey_invalid_state:"Ãtat de clé d'accès invalide",passkey_not_supported:"Clé d'accès non prise en charge",passkey_security_error:"Erreur de sécurité de clé d'accès",password_not_set:"Mot de passe non défini",password_required:"Mot de passe requis",password_validation_failed:"Le mot de passe ne répond pas aux exigences",password_requirements:{"is too short (minimum is 6 characters)":"Le mot de passe est trop court (minimum 6 caractères)",min_length:"La longueur minimale est de 6 caractères",mixed_case:"Doit contenir des majuscules et des minu
37scules",number:"Doit contenir un chiffre",symbol:"Doit contenir un symbole"},passwords_do_not_match:"Les mots de passe ne correspondent pas",prefix:"ERREUR : ",refresh_failed:"Ãchec du rafraîchissement du jeton. Veuillez vous reconnecter",refresh_token_revoked:"Jeton de rafraîchissement révoqué",registration_expired:"Session d'inscription expirée. Veuillez recommencer",registration_flow_already_exists:"Une inscription est déjà en cours pour cette adresse e-mail",registration_not_found:"Session d'inscription introuvable. Veuillez recommencer",required_field:"{{field}} est requis",reset_password_already_sent:"Réinitialisation du mot de passe déjà envoyée",reset_token_expired:"Le jeton de réinitialisation a expiré. Veuillez demander un nouvel e-mail de réinitialisation du mot de passe",reset_token_missing:"Jeton de réinitialisation manquant",schema_validation_error:"Erreur de validation du schéma",validation:{accepted:"doit être accepté",blank:"ne peut pas être vide",empty:"ne peut pas être vide",even:"doit être pair",exclusion:"est réservé",in:"n'est pas inclus dans la liste",inclusion:"n'est pas inclus dans la liste",invalid:"n'est pas valide",not_a_number:"n'est pas un nombre",odd:"doit être impair",present:"doit être vide",taken:"est déjà pris",too_long:"est trop long",too_short:"est trop court"},sign_in_expired:"Connexion expirée",sign_in_not_found:"Connexion introuvable",sign_out_failed:"Ãchec de la déconnexion, raison : {{reason}}",unknown:"Une erreur inconnue s'est produite",used:"Utilisé",verification_code_recently_sent:"Un code de vérification a été envoyé récemment. Veuillez patienter avant d'en demander un nouveau",verification_failed:"Ãchec de la vérification"},loading:"Chargement...",oauth:{errors:{application_not_found:"Application OAuth introuvable",client_id_required:"client-id est requis",connection_failed:"Erreur réseau. Veuillez réessayer.",grant_failed:"Ãchec de l'octroi du consentement",invalid_field_values:"Valeurs de champ invalides fournies",missing_required_fields:"Veuillez remplir tous les champs obligatoires",not_authenticated:"L'utilisateur n'est pas authentifié. Veuillez d'abord vous connecter.",unknown:"Une erreur inattendue s'est produite",update_failed:"Ãchec de la mise à jour des données utilisateur"}},newsletter:{buttons:{logout:"x",resend_doi:"Renvoyer la confirmation",subscribe:"S'abonner",unsubscribe:"Se désabonner"},errors:{already_subscribed:"Déjà abonné",consent_required:"Veuillez accepter les conditions générales pour vous abonner",email_required:"Veuillez entrer votre adresse e-mail",invalid_email:"Adresse e-mail invalide",login_email_not_found:"L'abonnement avec cet e-mail n'existe pas",newsletter_not_found:"Newsletter introuvable",preferences_not_found:"Préférence introuvable",rate_limit_exceeded:"Limite de débit dépassée. Veuillez réessayer plus tard",unauthorized:"Votre session a expiré. Veuillez vous reconnecter",unconfirmed:"Votre e-mail n'est pas confirmé pour cette newsletter",unsubscribe_failed:"Ãchec du désabonnement",invalid_preference_token:"Jeton de préférence invalide. Entrez votre adresse e-mail pour recevoir un nouveau lien."},success:{doi_sent:"E-mail de confirmation envoyé à votre adresse e-mail",login_email_sent:"Nous avons envoyé un lien pour gérer votre abonnement existant à votre adresse e-mail",logout:"Vous avez été déconnecté avec succès",preferences_updated:"Vos préférences ont été mises à jour avec succès",subscribe:"Vous vous êtes abonné avec succès",unsubscribe:"Vous vous êtes désabonné avec succès"}},profile:{signInToView:"Veuillez vous connecter pour voir votre profil",updated:"Le profil a été mis à jour"},registration:{internal_matching:{check_button:"Rechercher un compte",checking:"Recherche...",confirm_button:"Oui, utiliser ce compte",confirming:"Association en cours...",default_primary_label:"Numéro client",error_expired:"Votre session d'inscription a expiré. Veuillez recommencer.",error_generic:"Une erreur s'est produite. Veuillez réessayer.",error_match_mismatch:"Les informations saisies ne correspondent à aucun compte. Veuillez vérifier vos données et réessayer.",error_match_not_found:"Aucun compte trouvé pour les informations fournies. Veuillez vérifier vos données et réessayer.",error_no_match:"Aucun compte correspondant trouvé. Vous pouvez continuer sans associer.",match_confirm_question:"Souhaitez-vous associer ce compte existant ?",match_found_description:"Nous avons trouvé un compte lié à vos informations.",match_found_title:"Compte trouvé !",preview_created_at:"Inscrit le :",preview_email:"E-mail :",reject_button:"Non, créer un nouveau compte",rejecting:"Continuation...",skip_button:"Continuer sans association",skipping:"Continuation..."}}}},it:{translation:{auth:{email:{placeholder:"Inserisci la tua email"},magicCode:{already_sent_text:"Codice magico già inviato alla tua email",button_text:"Invia codice magico",resend:{button_text:"Invia di nuovo il codice magico"},sending_text:"Invio in corso..."},passkey:{button_text:"Accedi con Passkey",loading_text:"Autenticazione..."},password:{button_text:"Accedi con password",confirmation:{placeholder:"Conferma la tua password"},placeholder:"Inserisci la tua password"},resetPassword:{button_text_resend:"Reinvia email di reimpostazione password",button_text_reset:"Reimposta password",button_text_set:"Salva password",success_message:"Email di reimpostazione password inviata. Controlla la tua casella di posta"},resendConfirmation:{button_text:"Reinvia email di conferma",description:"Controlla la tua casella di posta per confermare il tuo indirizzo email. Se non l'hai ricevuta, puoi richiedere una nuova email di conferma.",title:"Conferma il tuo indirizzo email
vendor: 7,463 bytes, line 37
37"},"single-login":{button_text:"Accedi"},socialLogin:{button_text:"Continua con {{provider}}"},navigation:{back:"Indietro",restart:"Ricomincia"}},buttons:{cancel:"Annulla",close:"Chiudi",confirm:"Conferma",connect:"Connetti",continue:"Continua",jump_to_service:"Vai al servizio",jump_to_unidy:"Vai a Unidy",logout:"Esci",registration:"Registra nuovo account",sign_in:"Accedi",submit:"Invia"},errors:{account_locked:"Account bloccato",account_not_found:"Account non trovato",account_already_confirmed:"Il tuo indirizzo email è già stato confermato. Effettua l'accesso",account_unconfirmed:"L'indirizzo email dell'account non è stato confermato",confirmation_recently_sent:"Un'email di conferma è stata inviata di recente. Attendi prima di richiederne una nuova",auth_method_required:"Imposta una password o verifica la tua email per continuare",authentication_failed:"Autenticazione fallita",bad_request:"Richiesta non valida",cannot_finalize:"Impossibile completare la registrazione. Compila tutti i campi obbligatori",captcha_execution_failed:"Verifica di sicurezza fallita. Riprova",captcha_score_too_low:"Verifica di sicurezza fallita. Riprova",captcha_token_missing:"Completa la verifica di sicurezza",captcha_verification_failed:"Verifica di sicurezza fallita. Riprova",code_expired:"Il codice di verifica è scaduto. Richiedine uno nuovo",connection_failed:"Impossibile connettersi al server Unidy",email_already_registered:"Questa email è già registrata. Accedi invece",expired:"Scaduto",failed_to_load_profile:"Impossibile caricare i dati del profilo. Controlla la configurazione",field_required:"Questo campo è obbligatorio",invalid_code:"Codice di verifica non valido. Riprova",invalid_id_token:"Token ID non valido",invalid_format:"Formato non valido",invalid_input:"Input non valido",invalid_passkey:"Passkey non valida",invalid_password:"Password non valida",invalid_phone:"Inserisci un numero di telefono valido",invalid_refresh_token:"Token di aggiornamento non valido",invalid_required_fields_payload:"Payload dei campi obbligatori non valido",invalid_reset_token:"Token di reimpostazione non valido. Richiedi una nuova email di reimpostazione password",invalid_response_format:"Formato di risposta non valido",internal_server_error:"Errore interno del server",magic_code_is_missing:"Codice magico mancante",magic_code_recently_created:"Codice magico creato di recente",magic_link_not_enabled:"L'accesso tramite link magico non è abilitato per questo account",missing_id_token:"Token ID mancante",missing_refresh_token:"Nessun token di aggiornamento presente",missing_required_fields:"Campi obbligatori mancanti",no_sign_in_id:"Nessun ID di accesso disponibile",not_valid:"Non valido",passkey_cancelled:"Autenticazione passkey annullata",passkey_error:"Si è verificato un errore sconosciuto della passkey",passkey_invalid_state:"Stato passkey non valido",passkey_not_supported:"Passkey non supportata",passkey_security_error:"Errore di sicurezza passkey",password_not_set:"Password non impostata",password_required:"Password richiesta",password_validation_failed:"La password non soddisfa i requisiti",password_requirements:{"is too short (minimum is 6 characters)":"La password è troppo corta (minimo 6 caratteri)",min_length:"La lunghezza minima è di 6 caratteri",mixed_case:"Deve contenere lettere maiuscole e minuscole",number:"Deve contenere un numero",symbol:"Deve contenere un simbolo"},passwords_do_not_match:"Le password non corrispondono",prefix:"ERRORE: ",refresh_failed:"Impossibile aggiornare il token. Accedi di nuovo",refresh_token_revoked:"Token di aggiornamento revocato",registration_expired:"Sessione di registrazione scaduta. Ricomincia",registration_flow_already_exists:"Una registrazione è già in corso per questa email",registration_not_found:"Sessione di registrazione non trovata. Ricomincia",required_field:"{{field}} è obbligatorio",reset_password_already_sent:"Reimpostazione password già inviata",reset_token_expired:"Il token di reimpostazione è scaduto. Richiedi una nuova email di reimpostazione password",reset_token_missing:"Token di reimpostazione mancante",schema_validation_error:"Errore di validazione dello schema",validation:{accepted:"deve essere accettato",blank:"non può essere vuoto",empty:"non può essere vuoto",even:"deve essere pari",exclusion:"è riservato",in:"non è incluso nella lista",inclusion:"non è incluso nella lista",invalid:"non è valido",not_a_number:"non è un numero",odd:"deve essere dispari",present:"deve essere vuoto",taken:"è già stato preso",too_long:"è troppo lungo",too_short:"è troppo corto"},sign_in_expired:"Accesso scaduto",sign_in_not_found:"Accesso non trovato",sign_out_failed:"Uscita fallita, motivo: {{reason}}",unknown:"Si è verificato un errore sconosciuto",used:"Usato",verification_code_recently_sent:"Un codice di verifica è stato inviato di recente. Attendi prima di richiederne uno nuovo",verification_failed:"Verifica fallita"},loading:"Caricamento...",oauth:{errors:{application_not_found:"Applicazione OAuth non trovata",client_id_required:"client-id è obbligatorio",connection_failed:"Errore di rete. Riprova.",grant_failed:"Impossibile concedere il consenso",invalid_field_values:"Valori dei campi non validi",missing_required_fields:"Compila tutti i campi obbligatori",not_authenticated:"Utente non autenticato. Effettua prima l'accesso.",unknown:"Si è verificato un errore imprevisto",update_failed:"Impossibile aggiornare i dati utente"}},newsletter:{buttons:{logout:"x",resend_doi:"Reinvia conferma",subscribe:"Iscriviti",unsubscribe:"Annulla iscrizione"},errors:{already_subscribed:"Già iscritto",consent_required:"Accetta i termini e le condizioni per iscriverti",email_required:"Inserisci il tuo indirizzo email",invalid_email:"Indirizzo email non valido",login_email_not_found:"L'abbonamento con questa email non esiste",newsletter_not_found:"Newsletter non trovata",preferences_not_found:"Preferenza non trovata",rate_limit_exceeded:"Limite di richieste superato. Riprova più tardi",unauthorized:"La tua sessione è scaduta. Accedi di nuovo",unconfirmed:"La tua email non è confermata per questa newsletter",unsubscribe_failed:"Annullamento iscrizione fallito",invalid_preference_token:"Token di preferenza non valido. Inserisci il tuo indirizzo email per ricevere un nuovo link."},success:{doi_sent:"Email di conferma inviata al tuo indirizzo email",login_email_sent:"Abbiamo inviato un link per gestire il tuo abbonamento esistente al tuo indirizzo email",logout:"Sei uscito con successo",preferences_updated:"Le tue preferenze sono state aggiornate con successo",subscribe:"Ti sei iscritto con successo",unsubscribe:"Hai annullato l'iscrizione con successo"}},profile:{signInToView:"Accedi per visualizzare il tuo profilo",updated:"Il profilo è stato aggiornato"},registration:{internal_matching:{check_button:"Cerca account",checking:"Ricerca...",confirm_button:"Sì, usa questo account",confirming:"Collegamento...",default_primary_label:"Numero cliente",error_expired:"La tua sessione di registrazione è scaduta. Ricomincia dall'inizio.",error_generic:"Si è verificato un errore. Riprova.",error_match_mismatch:"Le informazioni inserite non corrispondono ad alcun account. Verifica i tuoi dati e riprova.",error_match_not_found:"Nessun account trovato per le informazioni fornite. Verifica i tuoi dati e riprova.",error_no_match:"Nessun account corrispondente trovato. Puoi continuare senza collegamento.",
37match_confirm_question:"Vuoi collegare questo account esistente?",match_found_description:"Abbiamo trovato un account collegato ai tuoi dati.",match_found_title:"Account trovato!",preview_created_at:"Registrato il:",preview_email:"E-mail:",reject_button:"No, crea nuovo account",rejecting:"Continua...",skip_button:"Continua senza collegamento",skipping:"Continua..."}}}},nl_be:{translation:{auth:{email:{placeholder:"Voer uw e-mailadres in"},magicCode:{already_sent_text:"Magische code al naar uw e-mail verzonden",button_text:"Magische code verzenden",resend:{button_text:"Magische code opnieuw verzenden"},sending_text:"Verzenden..."},passkey:{button_text:"Aanmelden met toegangssleutel",loading_text:"Authenticatie..."},password:{button_text:"Aanmelden met wachtwoord",confirmation:{placeholder:"Bevestig uw wachtwoord"},placeholder:"Voer uw wachtwoord in"},resetPassword:{button_text_resend:"E-mail voor wachtwoordherstel opnieuw verzenden",button_text_reset:"Wachtwoord opnieuw instellen",button_text_set:"Wachtwoord opslaan",success_message:"E-mail voor wachtwoordherstel verzonden. Controleer uw inbox"},resendConfirmation:{button_text:"Bevestigingsmail opnieuw verzenden",description:"Controleer uw inbox om uw e-mailadres te bevestigen. Als u de e-mail niet hebt ontvangen, kunt u een nieuwe bevestigingsmail aanvragen.",title:"Bevestig uw e-mailadres"},"single-login":{button_text:"Aanmelden"},socialLogin:{button_text:"Doorgaan met {{provider}}"},navigation:{back:"Terug",restart:"Opnieuw beginnen"}},buttons:{cancel:"Annuleren",close:"Sluiten",confirm:"Bevestigen",connect:"Verbinden",continue:"Doorgaan",jump_to_service:"Naar dienst gaan",jump_to_unidy:"Naar Unidy gaan",logout:"Afmelden",registration:"Nieuw account registreren",sign_in:"Aanmelden",submit:"Verzenden"},errors:{account_locked:"Account vergrendeld",account_not_found:"Account niet gevonden",account_already_confirmed:"Uw e-mailadres is al bevestigd. Meld u aan",account_unconfirmed:"Het e-mailadres van het account is nog niet bevestigd",confirmation_recently_sent:"Er is onlangs een bevestigingsmail verzonden. Wacht voordat u een nieuwe aanvraagt",auth_method_required:"Stel een wachtwoord in of verifieer uw e-mailadres om door te gaan",authentication_failed:"Authenticatie mislukt",bad_request:"Ongeldige aanvraag",cannot_finalize:"Registratie kan niet worden voltooid. Vul alle verplichte velden in",captcha_execution_failed:"Beveiligingsverificatie mislukt. Probeer het opnieuw",captcha_score_too_low:"Beveiligingsverificatie mislukt. Probeer het opnieuw",captcha_token_missing:"Voltooi de beveiligingsverificatie",captcha_verification_failed:"Beveiligingsverificatie mislukt. Probeer het opnieuw",code_expired:"Verificatiecode is verlopen. Vraag een nieuwe aan",connection_failed:"Kan geen verbinding maken met de Unidy-server",email_already_registered:"Dit e-mailadres is al geregistreerd. Meld u aan",expired:"Verlopen",failed_to_load_profile:"Kan profielgegevens niet laden. Controleer de configuratie",field_required:"Dit veld is verplicht",invalid_code:"Ongeldige verificatiecode. Probeer het opnieuw",invalid_id_token:"Ongeldige ID-token",invalid_format:"Ongeldig formaat",invalid_input:"Ongeldige invoer",invalid_passkey:"Ongeldige toegangssleutel",invalid_password:"Ongeldig wachtwoord",invalid_phone:"Voer een geldig telefoonnummer in",invalid_refresh_token:"Ongeldig vernieuwingstoken",invalid_required_fields_payload:"Ongeldige payload voor verplichte velden",invalid_reset_token:"Ongeldige reset-token. Vraag een nieuwe e-mail voor wachtwoordherstel aan",invalid_response_format:"Ongeldig antwoordformaat",internal_server_error:"Interne serverfout",magic_code_is_missing:"Magische code ontbreekt",magic_code_recently_created:"Magische code recent aangemaakt",magic_link_not_enabled:"Aanmelden via magische link is niet ingeschakeld voor dit account",missing_id_token:"Ontbrekende ID-token",missing_refresh_token:"Geen vernieuwingstoken aanwezig",missing_required_fields:"Ontbrekende verplichte velden",no_sign_in_id:"Geen aanmeldings-ID beschikbaar",not_valid:"Niet geldig",passkey_cancelled:"Toegangssleutelauthenticatie geannuleerd",passkey_error:"Er is een onbekende toegangssleutelfout opgetreden",passkey_invalid_state:"Ongeldige toegangssleutelstatus",passkey_not_supported:"Toegangssleutel niet ondersteund",passkey_security_error:"Beveiligingsfout toegangssleutel",password_not_set:"Wachtwoord niet ingesteld",password_required:"Wachtwoord is verplicht",password_validation_failed:"Wachtwoord voldoet niet aan de vereisten",password_requirements:{"is too short (minimum is 6 characters)":"Wachtwoord is te kort (minimaal 6 tekens)",min_length:"Minimale lengte is 6 tekens",mixed_case:"Moet zowel hoofdletters als kleine letters bevatten",number:"Moet een cijfer bevatten",symbol:"Moet een symbool bevatten"},passwords_do_not_match:"Wachtwoorden komen niet overeen",prefix:"FOUT: ",refresh_failed:"Kan token niet vernieuwen. Meld u opnieuw aan",refresh_token_revoked:"Vernieuwingstoken ingetrokken",registration_expired:"Registratiesessie verlopen. Begin opnieuw",registration_flow_already_exists:"Er loopt al een registratie voor dit e-mailadres",registration_not_found:"Registratiesessie niet gevonden. Begin opnieuw",required_field:"{{field}} is verplicht",reset_password_already_sent:"Wachtwoordherstel al verzonden",reset_token_expired:"Reset-token is verlopen. Vraag een nieuwe e-mail voor wachtwoordherstel aan",reset_token_missing:"Reset-token ontbreekt",schema_validation_error:"Schema-validatiefout",validation:{accepted:"moet worden geaccepteerd",blank:"mag niet leeg zijn",empty:"mag niet leeg zijn",even:"moet even zijn",exclusion:"is gereserveerd",in:"staat niet in de lijst",inclusion:"staat niet in de lijst",invalid:"is ongeldig",not_a_number:"is geen nummer",odd:"moet oneven zijn",present:"moet leeg zijn",taken:"is al in gebruik",too_long:"is te lang",too_short:"is te kort"},sign_in_expired:"Aanmelding verlopen",sign_in_not_found:"Aanmelding niet gevonden",sign_out_failed:"Afmelden mislukt, reden: {{reason}}",unknown:"Er is een onbekende fout opgetreden",used:"Gebruikt",verification_code_recently_sent:"Er is recent een verificatiecode verzonden. Wacht even voordat u een nieuwe aanvraagt",verification_failed:"Verificatie mislukt"},loading:"Laden...",newsletter:{buttons:{logout:"x",resend_doi:"Bevestiging opnieuw verzenden",subscribe:"Abonneren",unsubscribe:"Uitschrijven"},errors:{already_subscribed:"Al geabonneerd",consent_required:"Accepteer de algemene voorwaarden om u te abonneren",email_required:"Voer uw e-mailadres in",invali
37d_email:"Ongeldig e-mailadres",login_email_not_found:"Abonnement met dit e-mailadres bestaat niet",newsletter_not_found:"Nieuwsbrief niet gevonden",preferences_not_found:"Voorkeur niet gevonden",rate_limit_exceeded:"Snelheidslimiet overschreden. Probeer het later opnieuw",unauthorized:"Uw sessie is verlopen. Meld u opnieuw aan",unconfirmed:"Uw e-mail is niet bevestigd voor deze nieuwsbrief",unsubscribe_failed:"Uitschrijven mislukt",invalid_preference_token:"Ongeldig voorkeurstoken. Voer uw e-mailadres in om een nieuwe link te ontvangen."},success:{doi_sent:"Bevestigings-e-mail is verzonden naar uw e-mailadres",login_email_sent:"We hebben een link om uw bestaande abonnement te beheren naar uw e-mailadres gestuurd",logout:"U bent succesvol afgemeld",preferences_updated:"Uw voorkeuren zijn succesvol bijgewerkt",subscribe:"U bent succesvol geabonneerd",unsubscribe:"U bent succesvol uitgeschreven"}},profile:{signInToView:"Meld u aan om uw profiel te bekijken",updated:"Profiel is bijgewerkt"},registration:{internal_matching:{check_button:"Account zoeken",checking:"Zoeken...",confirm_button:"Ja, gebruik dit account",confirming:"Koppelen...",default_primary_label:"Klantnummer",error_expired:"Uw registratiesessie is verlopen. Begin opnieuw.",error_generic:"Er is een fout opgetreden. Probeer het opnieuw.",error_match_mismatch:"De ingevoerde informatie komt niet overeen met een account. Controleer uw gegevens en probeer het opnieuw.",error_match_not_found:"Geen account gevonden voor de opgegeven informatie. Controleer uw gegevens en probeer het opnieuw.",error_no_match:"Geen overeenkomend account gevonden. U kunt doorgaan zonder te koppelen.",match_confirm_question:"Wilt u dit bestaande account koppelen?",match_found_description:"We hebben een account gevonden dat aan uw gegevens is gekoppeld.",match_found_title:"Account gevonden!",preview_created_at:"Geregistreerd:",preview_email:"E-mail:",reject_button:"Nee, nieuw account aanmaken",rejecting:"Doorgaan...",skip_button:"Doorgaan zonder koppeling",skipping:"Doorgaan..."}}}},ro:{translation:{auth:{email:{placeholder:"IntroduceÈi adresa dvs. de e-mail"},magicCode:{already_sent_text:"Cod magic trimis deja la adresa dvs. de e-mail",button_text:"Trimite cod magic",resend:{button_text:"Trimite din nou codul magic"},sending_text:"Se trimite..."},passkey:{button_text:"ConectaÈi-vÄ cu cheie de acces",loading_text:"Autentificare..."},password:{button_text:"ConectaÈi-vÄ cu parolÄ",confirmation:{placeholder:"ConfirmaÈi parola"},placeholder:"IntroduceÈi parola"},resetPassword:{button_text_resend:"Retrimite e-mail pentru resetarea parolei",button_text_reset:"ReseteazÄ parola",button_text_set:"SalveazÄ parola",success_message:"E-mail pentru resetarea parolei trimis. VÄ rugÄm sÄ verificaÈi inbox-ul"},resendConfirmation:{button_text:"Retrimite e-mailul de confirmare",description:"VÄ rugÄm sÄ vÄ verificaÈi inbox-ul pentru a confirma adresa de e-mail. DacÄ nu aÈi primit-o, puteÈi solicita un nou e-mail de confirmare.",title:"ConfirmaÈi-vÄ adresa de e-mail"},"single-login":{button_text:"Conectare"},socialLogin:{button_text:"ContinuÄ cu {{provider}}"},navigation:{back:"Ãnapoi",restart:"Reîncepe"}},buttons:{cancel:"Anulare",close:"Ãnchide",confirm:"Confirmare",connect:"Conectare",continue:"ContinuÄ",jump_to_service:"Mergi la serviciu",jump_to_unidy:"Mergi la Unidy",logout:"Deconectare",registration:"ÃnregistreazÄ cont nou",sign_in:"Conectare",submit:"Trimite"},errors:{account_locked:"Cont blocat",account_not_found:"Cont negÄsit",account_already_confirmed:"Adresa dvs. de e-mail a fost deja confirmatÄ. VÄ rugÄm sÄ vÄ conectaÈi",account_unconfirmed:"Adresa de e-mail a contului nu a fost confirmatÄ",confirmation_recently_sent:"Un e-mail de confirmare a fost trimis recent. VÄ rugÄm sÄ aÈteptaÈi înainte de a solicita unul nou",auth_method_required:"VÄ rugÄm sÄ setaÈi o parolÄ sau sÄ verificaÈi adresa de e-mail pentru a continua",authentication_failed:"Autentificare eÈuatÄ",bad_request:"Cerere invalidÄ",cannot_finalize:"Nu se poate finaliza înregistrarea. VÄ rugÄm sÄ completaÈi toate câmpurile obligatorii",captcha_execution_failed:"Verificarea de securitate a eÈuat. VÄ rugÄm sÄ Ã®ncercaÈi din nou",captcha_score_too_low:"Verificarea de securitate a eÈuat. VÄ rugÄm sÄ Ã®ncercaÈi din nou",captcha_token_missing:"VÄ rugÄm sÄ completaÈi verificarea de securitate",captcha_verification_failed:"Verificarea de securitate a eÈuat. VÄ rugÄm sÄ Ã®ncercaÈi din nou",code_expired:"Codul de verificare a expirat. VÄ rugÄm sÄ solicitaÈi unul nou",connection_failed:"Nu se poate conecta la serverul Unidy",email_already_registered:"AceastÄ adresÄ de e-mail este deja înregistratÄ. VÄ rugÄm sÄ vÄ conectaÈi",expired:"Expirat",failed_to_load_profile:"ÃncÄrcarea datelor profilului a eÈuat. VÄ rugÄm sÄ verificaÈi configuraÈia",field_required:"Acest câmp este obligatoriu",invalid_code:"Cod de verificare invalid. VÄ rugÄm sÄ Ã®ncercaÈi din nou",invalid_id_token:"Token ID invalid",invali
vendor: 7,806 bytes, line 37
37d_format:"Format invalid",invalid_input:"Introducere invalidÄ",invalid_passkey:"Cheie de acces invalidÄ",invalid_password:"ParolÄ invalidÄ",invalid_phone:"VÄ rugÄm sÄ introduceÈi un numÄr de telefon valid",invalid_refresh_token:"Token de reîmprospÄtare invalid",invalid_required_fields_payload:"Payload invalid pentru câmpurile obligatorii",invalid_reset_token:"Token de resetare invalid. VÄ rugÄm sÄ solicitaÈi un nou e-mail pentru resetarea parolei",invalid_response_format:"Format de rÄspuns invalid",internal_server_error:"Eroare internÄ a serverului",magic_code_is_missing:"Cod magic lipsÄ",magic_code_recently_created:"Cod magic creat recent",magic_link_not_enabled:"Autentificarea prin link magic nu este activatÄ pentru acest cont",missing_id_token:"Token ID lipsÄ",missing_refresh_token:"Niciun token de reîmprospÄtare prezent",missing_required_fields:"Câmpuri obligatorii lipsÄ",no_sign_in_id:"Niciun ID de conectare disponibil",not_valid:"Invalid",passkey_cancelled:"Autentificare cu cheie de acces anulatÄ",passkey_error:"A apÄrut o eroare necunoscutÄ a cheii de acces",passkey_invalid_state:"Stare invalidÄ a cheii de acces",passkey_not_supported:"Cheie de acces nesuportatÄ",passkey_security_error:"Eroare de securitate a cheii de acces",password_not_set:"Parola nu este setatÄ",password_required:"Parola este obligatorie",password_validation_failed:"Parola nu îndeplineÈte cerinÈele",password_requirements:{"is too short (minimum is 6 characters)":"Parola este prea scurtÄ (minimum 6 caractere)",min_length:"Lungimea minimÄ este de 6 caractere",mixed_case:"Trebuie sÄ conÈinÄ atât litere mari, cât Èi litere mici",number:"Trebuie sÄ conÈinÄ o cifrÄ",symbol:"Trebuie sÄ conÈinÄ un simbol"},passwords_do_not_match:"Parolele nu se potrivesc",prefix:"EROARE: ",refresh_failed:"ReîmprospÄtarea token-ului a eÈuat. VÄ rugÄm sÄ vÄ conectaÈi din nou",refresh_token_revoked:"Token de reîmprospÄtare revocat",registration_expired:"Sesiunea de înregistrare a expirat. VÄ rugÄm sÄ reîncepeÈi",registration_flow_already_exists:"O înregistrare este deja în curs pentru aceastÄ adresÄ de e-mail",registration_not_found:"Sesiunea de înregistrare nu a fost gÄsitÄ. VÄ rugÄm sÄ reîncepeÈi",required_field:"{{field}} este obligatoriu",reset_password_already_sent:"Resetare parolÄ deja trimisÄ",reset_token_expired:"Token-ul de resetare a expirat. VÄ rugÄm sÄ solicitaÈi un nou e-mail pentru resetarea parolei",reset_token_missing:"Token de resetare lipsÄ",schema_validation_error:"Eroare de validare a schemei",validation:{accepted:"trebuie acceptat",blank:"nu poate fi gol",empty:"nu poate fi gol",even:"trebuie sÄ fie par",exclusion:"este rezervat",in:"nu este inclus în listÄ",inclusion:"nu este inclus în listÄ",invalid:"nu este valid",not_a_number:"nu este un numÄr",odd:"trebuie sÄ fie impar",present:"trebuie sÄ fie gol",taken:"este deja luat",too_long:"este prea lung",too_short:"este prea scurt"},sign_in_expired:"Conectare expiratÄ",sign_in_not_found:"Conectare negÄsitÄ",sign_out_failed:"Deconectare eÈuatÄ, motiv: {{reason}}",unknown:"A apÄrut o eroare necunoscutÄ",used:"Folosit",verification_code_recently_sent:"Un cod de verificare a fost trimis recent. VÄ rugÄm sÄ aÈteptaÈi înainte de a solicita unul nou",verification_failed:"Verificare eÈuatÄ"},loading:"Se încarcÄ...",oauth:{errors:{application_not_found:"AplicaÈie OAuth negÄsitÄ",client_id_required:"client-id este obligatoriu",connection_failed:"Eroare de reÈea. VÄ rugÄm sÄ Ã®ncercaÈi din nou.",grant_failed:"Acordarea consimÈÄmântului a eÈuat",invalid_field_values:"Valori de câmp invalide furnizate",missing_required_fields:"VÄ rugÄm sÄ completaÈi toate câmpurile obligatorii",not_authenticated:"Utilizatorul nu este autentificat. VÄ rugÄm sÄ vÄ conectaÈi mai întâi.",unknown:"A apÄrut o eroare neaÈteptatÄ",update_failed:"Actualizarea datelor utilizatorului a eÈuat"}},newsletter:{buttons:{logout:"x",resend_doi:"Retrimite confirmarea",subscribe:"Abonare",unsubscribe:"Dezabonare"},errors:{already_subscribed:"Deja abonat",consent_required:"VÄ rugÄm sÄ acceptaÈi termenii Èi condiÈiile pentru a vÄ abona",email_required:"VÄ rugÄm sÄ introduceÈi adresa dvs. de e-mail",invalid_email:"AdresÄ de e-mail invalidÄ",login_email_not_found:"Abonamentul cu aceastÄ adresÄ de e-mail nu existÄ",newsletter_not_found:"Newsletter negÄsit",preferences_not_found:"PreferinÈÄ negÄsitÄ",rate_limit_exceeded:"Limita de ratÄ depÄÈitÄ. VÄ rugÄm sÄ Ã®ncercaÈi din nou mai târziu",unauthorized:"Sesiunea dvs. a expirat. VÄ rugÄm sÄ vÄ conectaÈi din nou",unconfirmed:"E-mailul dvs. nu este confirmat pentru acest newsletter",unsubscribe_failed:"Dezabonare eÈuatÄ",invalid_preference_token:"Token de preferinÈÄ invalid. IntroduceÈi adresa dvs. de e-mail pentru a primi un link nou."},success:{doi_sent:"E-mail de confirmare trimis la adresa dvs. de e-mail",login_email_sent:"Am trimis un link pentru a vÄ gestiona abonamentul existent la adresa dvs. de e-mail",logout:"V-aÈi deconectat cu succes",preferences_updated:"PreferinÈele dvs. au fost actualizate cu succes",subscribe:"V-aÈi abonat cu succes",unsubscribe:"V-aÈi dezabonat cu succes"}},profile:{signInToView:"VÄ rugÄm sÄ vÄ conectaÈi pentru a vÄ vedea profilul",updated:"Profilul a fost actualizat"},registration:{internal_matching:{check_button:"CautÄ cont",checking:"Se cautÄ...",confirm_button:"Da, foloseÈte acest cont",confirming:"Se conecteazÄ...",default_primary_label:"NumÄr client",error_expired:"Sesiunea dvs. de înregistrare a expirat. VÄ rugÄm sÄ o luaÈi de la capÄt.",error_generic:"A apÄrut o eroare. VÄ rugÄm sÄ Ã®ncercaÈi din nou.",error_match_mismatch:"InformaÈiile introduse nu corespund niciunui cont. VerificaÈi datele Èi încercaÈi din nou.",error_match_not_found:"Nu a fost gÄsit niciun cont pentru informaÈiile furnizate. VerificaÈi datele Èi încercaÈi din nou.",error_no_match:"Nu a fost gÄsit niciun cont corespunzÄtor. PuteÈi continua fÄrÄ sÄ asociaÈi.",match_confirm_question:"DoriÈi sÄ asociaÈi acest cont existent?",match_found_description:"Am gÄsit un cont asociat cu datele dvs.",match_found_title:"Cont gÄsit!",preview_created_at:"Ãnregistrat:",preview_email:"E-mail:",reject_button:"Nu, creazÄ cont nou",rejecting:"Se continuÄ...",skip_button:"ContinuaÈi fÄrÄ asociere",skipping:"Se continuÄ..."}}}},sv:{translation:{auth:{email:{placeholder:"Ange din e-postadress"},magicCode:{already_sent_text:"Magisk kod har redan skickats till din e-post",button_text:"Skicka magisk kod",resend:{button_text:"Skicka magisk kod igen"},sending_text:"Skickar..."},passkey:{button_text:"Logga in med Passkey",loading_text:"Autentiserar..."},password:{button_text:"Logga in med lösenord",confirmation:{placeholder:"Bekräfta ditt lösenord"},placeholder:"Ange ditt lösenord"},resetPassword:{button_text_resend:"Skicka e-post för lösenordsÃ¥terställning igen",button_text_reset:"Ã
terställ lösenord",button_text_save:"Spara nytt lösenord",button_text_set:"Ange lösenord",success_message:"E-post för lösenordsåterställning har skickats. Kontrollera din inkorg"},resendConfirmation:{button_text:"Skicka bekräftelsemail igen",description:"Kontrollera din inkorg för att bekräfta din e-postadress. Om du inte har fått det kan du begära ett nytt bekräftelsemail.",title:"Bekräfta din e-postadress"},"single-login":{button_text:"Logga in"},socialLogin:{button_text:"Fortsätt med {{provider}}"}},buttons:{cancel:"Avbryt",close:"Stäng",confirm:"Bekräfta",connect:"Anslut",continue:"Fortsätt",jump_to_service:"Gå till tjänsten",jump_to_unidy:"Gå till Unidy",logout:"Logga ut",registration:"Registrera nytt konto",sign_in:"Logga in",
37submit:"Skicka"},errors:{account_locked:"Kontot är lÃ¥st",account_not_found:"Kontot hittades inte",account_already_confirmed:"Din e-postadress har redan bekräftats. Vänligen logga in",account_unconfirmed:"Kontots e-postadress har inte bekräftats",confirmation_recently_sent:"Ett bekräftelsemail har nyligen skickats. Vänligen vänta innan du begär ett nytt",auth_method_required:"Ange ett lösenord eller verifiera din e-postadress för att fortsätta",authentication_failed:"Autentisering misslyckades",bad_request:"Ogiltig begäran",cannot_finalize:"Kan inte slutföra registreringen. Fyll i alla obligatoriska fält",code_expired:"Verifieringskoden har gÃ¥tt ut. Begär en ny",connection_failed:"Kunde inte ansluta till Unidy-servern",email_already_registered:"Denna e-postadress är redan registrerad. Logga in istället",expired:"UtgÃ¥ngen",failed_to_load_profile:"Kunde inte ladda profildata. Kontrollera konfigurationen",field_required:"Detta fält är obligatoriskt",internal_server_error:"Internt serverfel",invalid_code:"Ogiltig verifieringskod. Försök igen",invalid_id_token:"Ogiltig ID-token",invalid_format:"Ogiltigt format",invalid_input:"Ogiltig inmatning",invalid_passkey:"Ogiltig passkey",invalid_password:"Ogiltigt lösenord",invalid_phone:"Ange ett giltigt telefonnummer",invalid_refresh_token:"Ogiltig uppdateringstoken",invalid_required_fields_payload:"Ogiltig data för obligatoriska fält",invalid_reset_token:"Ogiltig Ã¥terställningstoken. Begär ett nytt e-postmeddelande för lösenordsÃ¥terställning",invalid_response_format:"Ogiltigt svarsformat",magic_code_is_missing:"Magisk kod saknas",magic_code_not_valid:"Magisk kod är ogiltig",magic_code_recently_created:"Magisk kod har nyligen skapats",magic_link_not_enabled:"Magisk länk-inloggning är inte aktiverad för detta konto",missing_id_token:"ID-token saknas",missing_refresh_token:"Ingen uppdateringstoken finns",missing_required_fields:"Obligatoriska fält saknas",no_sign_in_id:"Inget inloggnings-ID tillgängligt",not_valid:"Ogiltig",passkey_cancelled:"Passkey-autentisering avbröts",passkey_error:"Ett okänt passkey-fel uppstod",passkey_invalid_state:"Ogiltigt passkey-tillstÃ¥nd",passkey_not_supported:"Passkey stöds inte",passkey_security_error:"Passkey-säkerhetsfel",password_not_set:"Lösenord ej angivet",password_required:"Lösenord krävs",password_validation_failed:"Lösenordet uppfyller inte kraven",password_requirements:{"is too short (minimum is 6 characters)":"Lösenordet är för kort (minst 6 tecken)",min_length:"Minst 6 tecken",mixed_case:"MÃ¥ste innehÃ¥lla bÃ¥de stora och smÃ¥ bokstäver",number:"MÃ¥ste innehÃ¥lla en siffra",symbol:"MÃ¥ste innehÃ¥lla en symbol"},passwords_do_not_match:"Lösenorden matchar inte",prefix:"FEL: ",refresh_failed:"Kunde inte uppdatera token. Logga in igen",refresh_token_revoked:"Uppdateringstoken har Ã¥terkallats",registration_expired:"Registreringssessionen har gÃ¥tt ut. Börja om",registration_flow_already_exists:"En registrering pÃ¥gÃ¥r redan för denna e-postadress",registration_not_found:"Registreringssession hittades inte. Börja om",required_field:"{{field}} är obligatoriskt",reset_password_already_sent:"E-post för lösenordsÃ¥terställning har redan skickats",reset_token_expired:"Ã
terställningstoken har utgÃ¥tt. Begär ett nytt e-postmeddelande för lösenordsÃ¥terställning",reset_token_missing:"Ã
terställningstoken saknas",schema_validation_error:"Schemavalideringsfel",sign_in_expired:"Inloggningen har utgått",sign_in_not_found:"Inloggning hittades inte",sign_out_failed:"Utloggning misslyckades, anledning: {{reason}}",unknown:"Ett okänt fel uppstod",used:"Använd",validation:{accepted:"måste accepteras",blank:"får inte vara tomt",empty:"får inte vara tomt",even:"måste vara jämnt",exclusion:"är reserverat",in:"finns inte i listan",inclusion:"finns inte i listan",invalid:"är ogiltigt",not_a_number:"är inte ett nummer",odd:"måste vara udda",present:"måste vara tomt",taken:"är redan taget",too_long:"är för långt",too_short:"är för kort"},verification_code_recently_sent:"En verifieringskod skickades nyligen. Vänta innan du begär en ny",verification_failed:"Verifiering misslyckades"},loading:"Laddar...",newsletter:{buttons:{logout:"x",resend_doi:"Skicka bekräftelse igen",subscribe:"Prenumerera",unsubscribe:"Avsluta prenumeration"},errors:{already_subscribed:"Redan prenumererad",consent_required:"Vänligen acceptera villkoren för att prenumerera",email_required:"Vänligen ange din e-postadress",invali
37d_email:"Ogiltig e-postadress",invalid_preference_token:"Ogiltig inställningstoken. Ange din e-postadress för att få en ny länk.",login_email_not_found:"Prenumeration med denna e-postadress finns inte",newsletter_not_found:"Nyhetsbrev hittades inte",preferences_not_found:"Inställning hittades inte",rate_limit_exceeded:"Gränsen överskriden. Försök igen senare",unauthorized:"Din session har utgått. Logga in igen",unconfirmed:"Din e-post är inte bekräftad för detta nyhetsbrev",unsubscribe_failed:"Kunde inte avsluta prenumeration"},success:{doi_sent:"Bekräftelsemail har skickats till din e-postadress",login_email_sent:"Vi har skickat en länk för att hantera din befintliga prenumeration till din e-postadress",logout:"Du har loggats ut",preferences_updated:"Dina inställningar har uppdaterats",subscribe:"Du har prenumererat",unsubscribe:"Du har avslutat prenumerationen"}},oauth:{errors:{application_not_found:"OAuth-applikation hittades inte",client_id_required:"client-id krävs",connection_failed:"Nätverksfel. Försök igen.",grant_failed:"Kunde inte bevilja samtycke",invalid_field_values:"Ogiltiga fältvärden angivna",missing_required_fields:"Vänligen fyll i alla obligatoriska fält",not_authenticated:"Användaren är inte autentiserad. Logga in först.",unknown:"Ett oväntat fel uppstod",update_failed:"Kunde inte uppdatera användardata"}},profile:{signInToView:"Logga in för att visa din profil",updated:"Profilen är uppdaterad"},registration:{internal_matching:{check_button:"Sök konto",checking:"Söker...",confirm_button:"Ja, använd det här kontot",confirming:"Kopplar...",default_primary_label:"Kundnummer",error_expired:"Din registreringssession har gått ut. Börja om från början.",error_generic:"Ett fel uppstod. Försök igen.",error_match_mismatch:"Den angivna informationen matchar inget konto. Kontrollera dina uppgifter och försök igen.",error_match_not_found:"Inget konto hittades för den angivna informationen. Kontrollera dina uppgifter och försök igen.",error_no_match:"Inget matchande konto hittades. Du kan fortsätta utan att koppla.",match_confirm_question:"Vill du koppla det här befintliga kontot?",match_found_description:"Vi hittade ett konto kopplat till dina uppgifter.",match_found_title:"Konto hittades!",preview_created_at:"Registrerad:",preview_email:"E-post:",reject_button:"Nej, skapa nytt konto",rejecting:"Fortsätter...",skip_button:"Fortsätt utan att koppla",skipping:"Fortsätter..."}}}}}}),(0,r.o)("locale",e=>es.changeLanguage(e));let ea=(e,t={})=>es.t(e,t,{lng:r.u.locale})},9090:(e,t,i)=>{i.d(t,{D:()=>te,g:()=>t3,h:()=>e9,i:()=>e2,j:()=>tl,s:()=>e1,w:()=>e7,x:()=>tn,y:()=>tr,z:()=>e5});var n=i(7404),r=i(7763),s=i(2378),a=i(1511),o=i(9527),l=i(1763),d=i(5621);function u(e){return(0,n._)(n.Z,e)}let c={captureException:()=>{}};class p{client;logger;errorReporter;getIdToken;getLocale;constructor(e,t,i){this.client=e,this.errorReporter=i?.errorReporter??c,this.getIdToken=i?.getIdToken??(async()=>null),this.getLocale=i?.getLocale??(()=>"en"),this.logger=i?.logger??{error:(...e)=>console.error(`[${t}]`,...e),warn:(...e)=>console.warn(`[${t}]`,...e),info:(...e)=>console.info(`[${t}]`,...e),debug:(...e)=>console.debug(`[${t}]`,...e)}}handleResponse(e,t){if(e.connectionError)return["connection_failed",null];try{return t()}catch(t){if(t instanceof n.g){this.logger.error("Schema validation error",t),this.errorReporter.captureException(t);let i=n.S.safeParse(e.data);return["schema_validation_error",i.success?i.data:{error_identifier:"schema_validation_error",errors:[String(t)]}]}return this.logger.error("Internal error in response handler",t),this.errorReporter.captureException(t),["internal_error",null]}}buildAuthHeaders(e){let t=Object.entries(e).reduce((e,[t,i])=>(void 0!==i&&(e[t]=i),e),{});return Object.keys(t).length>0?t:void 0}}let h=(0,n.h)(["text","textarea","number","boolean","select","radio","date","datetime-local","checkbox","tel"]),f=(0,n.o)({required:(0,n.j)(),label:(0,n.s)(),attr_name:(0,n.s)(),locked:(0,n.j)().optional(),locked_text:(0,n.s)().nullish()}).strict(),g=(0,n.o)({value:(0,n.s)(),label:(0,n.s)()}).strict(),_=(0,n.u)([(0,n.s)(),(0,n.l)("_NOT_SET_"),(0,n.j)()]).nullable(),m=(0,n.o)({value:_,label:(0,n.s)(),checked:(0,n.j)()}).strict(),v=(0,n.h)(["text","textarea"]),y=f.extend({value:(0,n.s)().nullable(),type:v}).strict(),b=f.extend({value:(0,n.s)().nullable(),type:(0,n.l)("tel")}
37).strict(),k=f.extend({value:_,type:(0,n.l)("radio"),radio_options:(0,n.k)(m)}).strict(),w=f.extend({value:(0,n.s)().nullable(),type:(0,n.l)("select"),options:(0,n.k)(g)}).strict(),S=(0,n.h)(["date","datetime-local"]),x=f.extend({value:(0,n.s)().nullable(),type:S}).strict(),z=f.extend({value:(0,n.u)([(0,n.s)(),(0,n.j)(),(0,n.n)(),(0,n.k)((0,n.s)())]).nullable(),type:h,readonly:(0,n.j)(),radio_options:(0,n.k)(m).optional(),options:(0,n.k)(g).optional()}).strict(),E=(0,n.o)({salutation:k,first_name:y,last_name:y,email:y,phone_number:b,company_name:y,address_line_1:y,address_line_2:y,city:y,postal_code:y,country_code:w,date_of_birth:x,preferred_language:y.optional(),custom_attributes:(0,n.r)((0,n.s)(),z)}),I=n.e,P=(0,n.u)([(0,n.k)((0,n.s)()),(0,n.k)((0,n.t)([(0,n.n)(),(0,n.k)((0,n.s)())]))]),O=(0,n.r)((0,n.s)(),P),C=(0,n.o)({errors:O}).strict().transform(({errors:e})=>{let t=Object.fromEntries(Object.entries(e).map(([e,t])=>[e,(Array.isArray(t)&&t.length>0&&"string"==typeof t[0]?t:t.flatMap(([,e])=>e)).join(" | ")]));return{errors:e,flatErrors:t}}),R=(0,n.o)({error_details:O}).passthrough().transform(({error_details:e})=>({errors:e})).pipe(C);class A extends p{constructor(e,t){super(e,"ProfileService",t)}buildResponseInfo(e){return{httpStatus:e.status,responseData:e.data}}async get(){let e=await this.getIdToken();if(!e)return["missing_id_token",null];let t=this.getLocale(),i=await this.client.get(`/api/sdk/v1/profile${t?`?lang=${t}`:""}`,this.buildAuthHeaders({"X-ID-Token":e})),n=this.buildResponseInfo(i),r=this.handleResponse(i,()=>{if(!i.success){let e=I.safeParse(i.data);return e.success?401===i.status?["unauthorized",e.data,n]:["server_error",e.data,n]:["server_error",null,n]}let e=E.safeParse(i.data);return e.success?[null,e.data,n]:(this.logger.error("Invalid profile data",e.error),["invalid_profile_data",null,n])});return Array.isArray(r)&&2===r.length?[...r,n]:r}async update(e){let t=await this.getIdToken();if(!t)return["missing_id_token",null];let{payload:i}=e,n=this.getLocale(),r=await this.client.patch(`/api/sdk/v1/profile${n?`?lang=${n}`:""}`,{...i},this.buildAuthHeaders({"X-ID-Token":t})),s=this.buildResponseInfo(r),a=this.handleResponse(r,()=>{if(!r.success){let e=C.safeParse(r.data);if(e.success)return["validation_error",e.data,s];let t=R.safeParse(r.data);if(t.success)return["validation_error",t.data,s];let i=I.safeParse(r.data);return i.success?401===r.status?["unauthorized",i.data,s]:["server_error",i.data,s]:["server_error",null,s]}let e=E.safeParse(r.data);return e.success?[null,e.data,s]:(this.logger.error("Invalid profile data",e.error),["invalid_profile_data",null,s])});return Array.isArray(a)&&2===a.length?[...a,s]:a}}let T=(0,n.h)(["pending_verification","authenticated","completed"]),N=(0,n.o)({magic_link:(0,n.j)(),password:(0,n.j)(),social_logins:(0,n.k)((0,n.s)()),passkey:(0,n.j)()}),$=(0,n.o)({sid:(0,n.s)(),status:T,email:(0,n.s)(),expired:(0,n.j)(),login_options:N}),j=n.e,L=(0,n.o)({enable_resend_after:(0,n.n)()}),D=n.e.extend({enable_resend_after:(0,n.n)()}),U=L.extend({sid:(0,n.s)().nullish(),login_options:(0,n.o)({magic_link:(0,n.j)()}).optional()}),V=(0,n.o)({jwt:(0,n.s)(),refresh_token:(0,n.s)(),sid:(0,n.s)().nullish()}),F=(0,n.o)({error_identifier:(0,n.l)("missing_required_fields"),meta:(0,n.o)({fields:E.omit({custom_attributes:!0}).partial().extend({custom_attributes:E.shape.custom_attributes?.optional()}),sid:(0,n.s)().nullish()})}).transform(({error_identifier:e,meta:t})=>({error_identifier:e,fields:t.fields,sid:t.sid})),q=(0,n.o)({error_identifier:(0,n.l)("brand_connection_required"),meta:(0,n.o)({sid:(0,n.s)().nullish()})}).transform(({error_identifier:e,meta:t})=>({error_identifier:e,sid:t.sid})),M=(0,n.o)({error_details:(0,n.o)({password:(0,n.k)((0,n.s)())})}),Z=(0,n.o)({challenge:(0,n.s)(),timeout:(0,n.n)(),rpId:(0,n.s)(),userVerification:(0,n.s)(),allowCredentials:(0,n.k)((0,n.m)())});(0,n.o)({id:(0,n.s)(),rawId:(0,n.s)(),response:(0,n.o)({authenticatorData:(0,n.s)(),clientDataJSON:(0,n.s)(),signature:(0,n.s)()}),type:(0,n.s)()});let K=(0,n.o)({error_identifier:(0,n.s)()}),B=(0,n.o)({error_identifier:(0,n.s)()}),J=(0,n.o)({email:(0,n.s)(),redirect_uri:(0,n.s)().nullish(),scopes:(0,n.k)((0,n.s)()).nullish(),skip_oauth_authorization:(0,n.j)().optional()}),H=(0,n.o)({email:(0,n.s)(),path:(0,n.s)().refine(e=>e.startsWith("/"),{message:"Path must start with '/'"})}),G=(0,n.o)({token:(0,n.s)()}),W=(0,n.o)({token:(0,n.s)()});async function Y(e,t,i,n){let r=J.parse(i),s=await e.post(`/api/sdk/v1/jump_to/service/${t}`,r);return n(s,()=>{if(!s.success){let e=K.safeParse(s.data);if(e.success){let t=e.data.error_identifier;return[t,{error_identifier:t}]}return["user_not_found",{error_identifier:"unknown_error"}]}let e=G.safeParse(s.data);return e.success?[null,e.data.token]:["schema_validation_error",{error_identifier:"schema_validation_error",errors:[]}]})}async function X(e,t,i){let n=H.parse(t),r=await e.post("/api/sdk/v1/jump_to/unidy",n);return i(r,()=>{if(!r.success){let e=B.safeParse(r.data);if(e.success){let t=e.data.error_identifier;return[t,{error_identifier:t}]}return["user_not_found",{error_identifier:"unknown_error"}]}let e=W.safeParse(r.data);return e.success?[null,e.data.token]:["schema_validation_error",{error_identifier:"schema_validation_error",errors:[]}]})}function Q(e,t,i){let n=new URL(t,e);return i&&n.searchParams.set("rid",i),n.pathname+n.search}
37let ee=(0,n.o)({first_name:(0,n.s)().optional(),last_name:(0,n.s)().optional(),date_of_birth:(0,n.s)().optional(),phone:(0,n.s)().optional(),locale:(0,n.s)().optional(),salutation:(0,n.s)().optional(),title:(0,n.s)().optional(),gender:(0,n.s)().optional(),custom_attributes:(0,n.r)((0,n.s)(),(0,n.p)()).optional(),_clear:(0,n.o)({first_name:(0,n.j)().optional(),last_name:(0,n.j)().optional(),date_of_birth:(0,n.j)().optional(),phone:(0,n.j)().optional(),locale:(0,n.j)().optional(),salutation:(0,n.j)().optional(),title:(0,n.j)().optional(),gender:(0,n.j)().optional(),custom_attributes:(0,n.j)().optional()}).optional()}).passthrough(),et=(0,n.o)({_clear:(0,n.r)((0,n.s)(),(0,n.j)()).optional()}).passthrough(),ei=(0,n.o)({rid:(0,n.s)(),email:(0,n.s)().nullable(),newsletter_preferences:(0,n.r)((0,n.s)(),(0,n.k)((0,n.s)())).nullable(),registration_profile_data:(0,n.r)((0,n.s)(),(0,n.p)()).nullable(),social_provider:(0,n.s)().nullable(),status:(0,n.r)((0,n.s)(),(0,n.j)()),created_at:(0,n.s)(),updated_at:(0,n.s)(),expires_at:(0,n.s)(),has_passkey:(0,n.j)().nullable(),has_password:(0,n.j)().nullable(),expired:(0,n.j)(),can_finalize:(0,n.j)(),email_verified:(0,n.j)(),auth:(0,n.o)({id_token:(0,n.s)(),refresh_token:(0,n.s)()}).optional()});(0,n.o)({registration_url:(0,n.s)(),brand_id:(0,n.n)().optional(),email:(0,n.s)().optional(),password:(0,n.s)().optional(),passwordless_flag:(0,n.j)().optional(),registration_profile_data:ee.optional(),newsletter_preferences:et.optional()}),(0,n.o)({email:(0,n.s)().optional(),password:(0,n.s)().optional(),passwordless_flag:(0,n.j)().optional(),registration_profile_data:ee.optional(),newsletter_preferences:et.optional()});let en=(0,n.o)({success:(0,n.j)(),enable_resend_after:(0,n.n)()});(0,n.o)({code:(0,n.s)()}),(0,n.o)({email:(0,n.s)()});let er=(0,n.o)({error:(0,n.l)("cannot_finalize"),missing_fields:(0,n.k)((0,n.s)()).optional(),email_missing:(0,n.j)().optional(),auth_method_missing:(0,n.j)().optional()}),es=(0,n.o)({challenge:(0,n.s)(),timeout:(0,n.n)(),rp:(0,n.o)({id:(0,n.s)(),name:(0,n.s)()}),user:(0,n.o)({id:(0,n.s)(),name:(0,n.s)(),displayName:(0,n.s)()}),pubKeyCredParams:(0,n.k)((0,n.o)({type:(0,n.s)(),alg:(0,n.n)()})),authenticatorSelection:(0,n.o)({authenticatorAttachment:(0,n.s)().optional(),residentKey:(0,n.s)().optional(),requireResidentKey:(0,n.j)().optional(),userVerification:(0,n.s)().optional()}).optional(),excludeCredentials:(0,n.k)((0,n.o)({type:(0,n.s)(),id:(0,n.s)(),transports:(0,n.k)((0,n.s)()).optional()})).optional(),attestation:(0,n.s)().optional()});function ea(e){let t=j.safeParse(e);return t.success?t.data:{error_identifier:"unknown_error"}}(0,n.o)({publicKeyCredential:(0,n.r)((0,n.s)(),(0,n.p)()),passkey_name:(0,n.s)().optional()});let eo=(0,n.o)({enabled:(0,n.j)(),matching_attribute:(0,n.o)({name:(0,n.s)(),label:(0,n.s)(),format:(0,n.s)().optional()}).optional(),additional_fields:(0,n.k)((0,n.o)({name:(0,n.s)(),label:(0,n.s)(),format:(0,n.s)().optional()})).optional()});(0,n.o)({matching_value:(0,n.s)(),matching_additional_attributes:(0,n.r)((0,n.s)(),(0,n.s)()).optional()});let el=(0,n.o)({matching_status:(0,n.l)("found"),matching_user_id:(0,n.u)([(0,n.s)(),(0,n.n)()]),matched_user_preview:(0,n.o)({email_masked:(0,n.s)(),created_at:(0,n.s)()}).optional()});async function ed(e,t,i){let n=await e.post("/api/sdk/v1/registration",t);return i(n,()=>n.success?[null,ei.parse(n.data)]:[ea(n.data).error_identifier,n.data])}async function eu(e,t,i){let n=Q(e.baseUrl,"/api/sdk/v1/registration",t?.rid),r=await e.get(n);return i(r,()=>{if(!r.success){let e=ea(r.data);return[e.error_identifier,e]}return[null,ei.parse(r.data)]})}async function ec(e,t,i,n){let r=Q(e.baseUrl,"/api/sdk/v1/registration",i?.rid),s=await e.patch(r,t);return n(s,()=>s.success?[null,ei.parse(s.data)]:[ea(s.data).error_identifier,s.data])}async function ep(e,t,i){let n=Q(e.baseUrl,"/api/sdk/v1/registration",t?.rid),r=await e.delete(n);return i(r,()=>{if(!r.success){let e=ea(r.data);return[e.error_identifier,e]}return[null,null]})}async function eh(e,t,i){let n=Q(e.baseUrl,"/api/sdk/v1/registration/finalize",t?.rid),r=await e.post(n,{});return i(r,()=>{if(!r.success){let e=er.safeParse(r.data);if(e.success)return["cannot_finalize",e.data];let t=ea(r.data);return[t.error_identifier,t]}return[null,ei.parse(r.data)]})}async function ef(e,t,i){let n=Q(e.baseUrl,"/api/sdk/v1/registration/email_verification/send_code",t?.rid),r=await e.post(n,{});return i(r,()=>{if(!r.success){let e=ea(r.data);return[e.error_identifier,e]}return[null,en.parse(r.data)]})}async function eg(e,t,i,n){let r=Q(e.baseUrl,"/api/sdk/v1/registration/email_verification/verify",i?.rid),s=await e.post(r,t);return n(s,()=>{if(!s.success){let e=ea(s.data);return[e.error_identifier,e]}return[null,ei.parse(s.data)]})}async function e_(e,t,i){let n=await e.post("/api/sdk/v1/registration/resume",t);return i(n,()=>{if(!n.success){let e=ea(n.data);return[e.error_identifier,e]}
37return[null,null]})}async function em(e,t,i){let n=Q(e.baseUrl,"/api/sdk/v1/registration/passkey/new",t?.rid),r=await e.get(n);return i(r,()=>{if(!r.success){let e=ea(r.data);return[e.error_identifier,e]}return[null,es.parse(r.data)]})}async function ev(e,t,i,n){let r=Q(e.baseUrl,"/api/sdk/v1/registration/passkey",i?.rid),s={...t,publicKeyCredential:JSON.stringify(t.publicKeyCredential)},a=await e.post(r,s);return n(a,()=>{if(!a.success){let e=ea(a.data);return[e.error_identifier,e]}return[null,ei.parse(a.data)]})}async function ey(e,t,i){let n=Q(e.baseUrl,"/api/sdk/v1/registration/passkey",t?.rid),r=await e.delete(n);return i(r,()=>{if(!r.success){let e=ea(r.data);return[e.error_identifier,e]}return[null,ei.parse(r.data)]})}async function eb(e,t,i){let n=Q(e.baseUrl,"/api/sdk/v1/registration/internal_matching/config",t?.rid),r=await e.get(n);return i(r,()=>{if(!r.success){let e=ea(r.data);return[e.error_identifier,e]}return[null,eo.parse(r.data)]})}async function ek(e,t,i,n){let r=Q(e.baseUrl,"/api/sdk/v1/registration/internal_matching/check",i?.rid),s=await e.post(r,t);return n(s,()=>{if(!s.success){let e=ea(s.data);return[e.error_identifier,e]}return[null,el.parse(s.data)]})}async function ew(e,t,i,n){let r=Q(e.baseUrl,"/api/sdk/v1/registration/internal_matching/confirm",i?.rid),s=await e.post(r,t);return n(s,()=>{if(!s.success){let e=ea(s.data);return[e.error_identifier,e]}return[null,ei.parse(s.data)]})}async function eS(e,t,i){let n=Q(e.baseUrl,"/api/sdk/v1/registration/internal_matching/skip",t?.rid),r=await e.post(n,{});return i(r,()=>{if(!r.success){let e=ea(r.data);return[e.error_identifier,e]}return[null,ei.parse(r.data)]})}function ex(e){let t=j.safeParse(e);return t.success?t.data:{error_identifier:"unknown_error"}}async function ez(e,t,i){let{email:n,password:r,sendMagicCode:s,originUrl:a,captchaToken:o}=t.payload,l=await e.post("/api/sdk/v1/sign_ins",{email:n,password:r,sendMagicCode:s,originUrl:a,captcha_token:o});return i(l,()=>{if(!l.success){let e=F.safeParse(l.data);if(e.success)return["missing_required_fields",e.data];let t=ex(l.data);return[t.error_identifier,t]}return r?[null,V.parse(l.data)]:s?[null,U.parse(l.data)]:[null,$.parse(l.data)]})}async function eE(e,t,i){let{signInId:n}=t,r=await e.post(`/api/sdk/v1/sign_ins/${n}/send_magic_code`,{});return i(r,()=>{if(!r.success){let e=D.safeParse(r.data);if(e.success)return["magic_code_recently_created",e.data];let t=ex(r.data);return[t.error_identifier,t]}return[null,U.parse(r.data)]})}async function eI(e,t,i){let{signInId:n,payload:r}=t,s=await e.post(`/api/sdk/v1/sign_ins/${n}/authenticate`,{password:r.password,captcha_token:r.captchaToken});return i(s,()=>{if(!s.success){let e=q.safeParse(s.data);if(e.success)return["brand_connection_required",e.data];let t=F.safeParse(s.data);if(t.success)return["missing_required_fields",t.data];let i=ex(s.data);return[i.error_identifier,i]}return[null,V.parse(s.data)]})}async function eP(e,t,i){let{signInId:n,payload:r}=t,s=await e.post(`/api/sdk/v1/sign_ins/${n}/authenticate`,{code:r.code,captcha_token:r.captchaToken});return i(s,()=>{if(!s.success){let e=q.safeParse(s.data);if(e.success)return["brand_connection_required",e.data];let t=F.safeParse(s.data);if(t.success)return["missing_required_fields",t.data];let i=ex(s.data);return[i.error_identifier,i]}return[null,V.parse(s.data)]})}async function eO(e,t,i){let{signInId:n,payload:r}=t,s=await e.patch(`/api/sdk/v1/sign_ins/${n}/update_required_fields`,{user:r.user});return i(s,()=>{if(!s.success){let e=F.safeParse(s.data);if(e.success)return["missing_required_fields",e.data];let t=ex(s.data);return[t.error_identifier,t]}return[null,V.parse(s.data)]})}async function eC(e,t,i){let{signInId:n,refreshToken:r}=t,s=await e.post(`/api/sdk/v1/sign_ins/${n}/refresh_token`,{refresh_token:r});return i(s,()=>{if(!s.success){let e=ex(s.data);return[e.error_identifier,e]}return[null,V.parse(s.data)]})}async function eR(e,t,i){let{signInId:n,payload:r}=t,s=await e.post(`/api/sdk/v1/sign_ins/${n}/password_reset/send`,{return_to:r.returnTo});return i(s,()=>{if(!s.success){let e=ex(s.data);return[e.error_identifier,e]}
37return[null,null]})}async function eA(e,t,i){let{signInId:n,token:r,payload:s}=t,a=await e.patch(`/api/sdk/v1/sign_ins/${n}/password_reset`,{token:r,password:s.password,password_confirmation:s.passwordConfirmation});return i(a,()=>{if(!a.success){let e=M.safeParse(a.data);if(e.success)return["invalid_password",e.data];let t=ex(a.data);return[t.error_identifier,t]}return[null,null]})}async function eT(e,t,i){let{signInId:n,token:r}=t,s=await e.get(`/api/sdk/v1/sign_ins/${n}/password_reset?token=${encodeURIComponent(r)}`);return i(s,()=>{if(!s.success){let e=ex(s.data);return[e.error_identifier,e]}return[null,null]})}async function eN(e,t,i,n){let{signInId:r,globalLogout:s=!1}=t,a=await e.post(`/api/sdk/v1/sign_ins/${r}/sign_out`,{globalLogout:s},n);return i(a,()=>{if(!a.success){let e=ex(a.data);return[e.error_identifier,e]}return[null,null]})}async function e$(e,t,i){let{email:n,captchaToken:r}=t.payload,s=await e.post("/api/sdk/v1/sign_ins/resend_confirmation",{email:n,captcha_token:r});return i(s,()=>{if(!s.success){let e=D.safeParse(s.data);if(e.success&&"confirmation_recently_sent"===e.data.error_identifier)return["confirmation_recently_sent",e.data];let t=ex(s.data);return[t.error_identifier,t]}return[null,L.parse(s.data)]})}async function ej(e,t){let i=await e.get("/api/sdk/v1/sign_ins/signed_in");return t(i,()=>i.success?[null,V.parse(i.data)]:["not_found",ex(i.data)])}async function eL(e,t,i){let n=t?.signInId,r=n?`/api/sdk/v1/passkeys/new?sid=${encodeURIComponent(n)}`:"/api/sdk/v1/passkeys/new",s=await e.get(r);return i(s,()=>s.success?[null,Z.parse(s.data)]:["bad_request",ex(s.data)])}async function eD(e,t,i){let{payload:n}=t,r=await e.post("/api/sdk/v1/passkeys",{publicKeyCredential:n.credential});return i(r,()=>{if(!r.success){let e=ex(r.data);return[e.error_identifier,e]}return[null,V.parse(r.data)]})}async function eU(e,t,i){let{signInId:n}=t,r=await e.post(`/api/sdk/v1/sign_ins/${n}/brand_connect`,{});return i(r,()=>{if(!r.success){let e=F.safeParse(r.data);if(e.success)return["missing_required_fields",e.data];let t=ex(r.data);return[t.error_identifier,t]}return[null,V.parse(r.data)]})}(0,n.o)({matching_user_id:(0,n.u)([(0,n.s)(),(0,n.n)()])});class eV extends p{respond;constructor(e,t){super(e,"AuthService",t),this.respond=this.handleResponse.bind(this)}createSignIn(e){return ez(this.client,e,this.respond)}sendMagicCode(e){return eE(this.client,e,this.respond)}authenticateWithPassword(e){return eI(this.client,e,this.respond)}authenticateWithMagicCode(e){return eP(this.client,e,this.respond)}updateMissingFields(e){return eO(this.client,e,this.respond)}refreshToken(e){return eC(this.client,e,this.respond)}sendResetPasswordEmail(e){return eR(this.client,e,this.respond)}resetPassword(e){return eA(this.client,e,this.respond)}validateResetPasswordToken(e){return eT(this.client,e,this.respond)}async signOut(e){let t=await this.getIdToken(),i=this.buildAuthHeaders({"X-ID-Token":t??void 0});return eN(this.client,e,this.respond,i)}signedIn(){return ej(this.client,this.respond)}resendConfirmation(e){return e$(this.client,e,this.respond)}getPasskeyOptions(e){return eL(this.client,e,this.respond)}authenticateWithPasskey(e){return eD(this.client,e,this.respond)}connectBrand(e){return eU(this.client,e,this.respond)}jumpToService(e,t){return Y(this.client,e,t,this.respond)}jumpToUnidy(e){return X(this.client,e,this.respond)}createRegistration(e){return ed(this.client,e,this.respond)}getRegistration(e){return eu(this.client,e,this.respond)}updateRegistration(e,t){return ec(this.client,e,t,this.respond)}cancelRegistration(e){return ep(this.client,e,this.respond)}finalizeRegistration(e){return eh(this.client,e,this.respond)}sendEmailVerificationCode(e){return ef(this.client,e,this.respond)}verifyEmail(e,t){return eg(this.client,e,t,this.respond)}sendResumeLink(e){return e_(this.client,e,this.respond)}getPasskeyCreationOptions(e){return em(this.client,e,this.respond)}registerPasskey(e,t){return ev(this.client,e,t,this.respond)}removePasskey(e){return ey(this.client,e,this.respond)}getInternalMatchingConfig(e){return eb(this.client,e,this.respond)}checkInternalMatch(e,t){return ek(this.client,e,t,this.respond)}confirmInternalMatch(e,t){return ew(this.client,e,t,this.respond)}skipInternalMatch(e){return eS(this.client,e,this.respond)}}
37class eF extends Error{}function eq(e,t){let i;if("string"!=typeof e)throw new eF("Invalid token specified: must be a string");t||(t={});let n=!0===t.header?0:1,r=e.split(".")[n];if("string"!=typeof r)throw new eF(`Invalid token specified: missing part #${n+1}`);try{i=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw Error("base64 string is not of the correct length")}try{var i;return i=t,decodeURIComponent(atob(i).replace(/(.)/g,(e,t)=>{let i=t.charCodeAt(0).toString(16).toUpperCase();return i.length<2&&(i="0"+i),"%"+i}))}catch(e){return atob(t)}}(r)}catch(e){throw new eF(`Invalid token specified: invalid base64 for part #${n+1} (${e.message})`)}try{return JSON.parse(i)}catch(e){throw new eF(`Invalid token specified: invalid json for part #${n+1} (${e.message})`)}}eF.prototype.name="InvalidTokenError";let eM={SID:"unidy_signin_id",TOKEN:"unidy_token",REFRESH_TOKEN:"unidy_refresh_token",EMAIL:"unidy_email",STEP:"unidy_step",STEP_HISTORY:"unidy_step_history",LOGIN_OPTIONS:"unidy_login_options",MAGIC_CODE_STEP:"unidy_magic_code_step"},eZ=(e,t,i)=>{i?e.setItem(t,i):e.removeItem(t)},eK=(e,t)=>{let i=e.getItem(t);if(!i)return null;try{return JSON.parse(i)}catch{return null}},eB=(e,t,i)=>{i?e.setItem(t,JSON.stringify(i)):e.removeItem(t)},eJ=["verification","magic-code","missing-fields"],eH=e=>void 0!==e&&eJ.includes(e),eG=localStorage.getItem(eM.STEP),eW=eK(localStorage,eM.STEP_HISTORY),eY=eK(localStorage,eM.LOGIN_OPTIONS),eX=localStorage.getItem(eM.MAGIC_CODE_STEP),eQ={step:void 0,initialStep:"email",email:localStorage.getItem(eM.EMAIL)??"",password:"",magicCodeStep:eX,resetPassword:{step:null,token:null,newPassword:"",passwordConfirmation:""},sid:localStorage.getItem(eM.SID),loading:!1,errors:{email:null,password:null,magicCode:null,resetPassword:null,passkey:null},globalErrors:{},enableResendAfter:0,authenticated:!1,missingRequiredFields:void 0,availableLoginOptions:eY??{magic_link:!1,password:!1,social_logins:[],passkey:!0},token:sessionStorage.getItem(eM.TOKEN),refreshToken:localStorage.getItem(eM.REFRESH_TOKEN),backendSignedIn:!1,_pendingRecoveryStep:eH(eG)?eG:null,_stepHistory:eH(eG)&&eW?eW:[],_initialStep:null},e0=(0,l.c)(eQ),{state:e1,reset:e4}=e0,e2=e0.onChange,e9=new class{rootComponentRef=null;setRootComponentRef(e){this.rootComponentRef=e}getRootComponentRef(){return this.rootComponentRef}get state(){return e1}setInitialStep(e){e1.initialStep=e,null===e1._initialStep&&(e1._initialStep=e),void 0===e1.step&&(e1.step=e)}setEmail(e){e1.email=e,e1.errors.email=null,eZ(localStorage,eM.EMAIL,e)}setPassword(e){e1.password=e,e1.errors.password=null}setMissingFields(e){e1.missingRequiredFields=e}setLoginOptions(e){e1.availableLoginOptions=e,eB(localStorage,eM.LOGIN_OPTIONS,e)}setLoading(e){e1.loading=e}setFieldError(e,t){if("connection_failed"===t){a.u.backendConnected=!1;return}if(t===tl.Errors.general.SIGN_IN_NOT_FOUND||t===tl.Errors.general.SIGN_IN_ALREADY_PROCESSED||t===tl.Errors.general.SIGN_IN_EXPIRED){let e=e1.email;this.reset(),e1.email=e,eZ(localStorage,eM.EMAIL,e);return}e1.errors={...e1.errors,[e]:t}}setGlobalError(e,t){this.handleGeneralError(t)&&(e1.globalErrors={...e1.globalErrors,[e]:t})}handleGeneralError(e){if(!e)return!0;if("connection_failed"===e)return a.u.backendConnected=!1,!1;if(e===tl.Errors.general.SIGN_IN_NOT_FOUND||e===tl.Errors.general.SIGN_IN_ALREADY_PROCESSED||e===tl.Errors.general.SIGN_IN_EXPIRED){let e=e1.email;return this.reset(),e1.email=e,eZ(localStorage,eM.EMAIL,e),!1}return this.rootComponentRef?.onError(e),!0}clearFieldError(e){e1.errors={...e1.errors,[e]:null}}clearErrors(){e1.errors=eQ.errors,e1.globalErrors={}}setStep(e,t=!0){t&&void 0!==e1.step&&e1.step!==e&&(e1._stepHistory=[...e1._stepHistory,e1.step]),e1.step=e,eH(e)?(eZ(localStorage,eM.STEP,e),eB(localStorage,eM.STEP_HISTORY,e1._stepHistory)):(eZ(localStorage,eM.STEP,null),eB(localStorage,eM.STEP_HISTORY,null))}setSignInId(e){e1.sid=e,eZ(localStorage,eM.SID,e)}setBackendSignedIn(e){e1.backendSignedIn=e}setToken(e){e1.token=e,eZ(sessionStorage,eM.TOKEN,e),this.setAuthenticated(!!e)}setRefreshToken(e){e1.refreshToken=e,eZ(localStorage,eM.REFRESH_TOKEN,e)}setEnableResendAfter(e){e1.enableResendAfter=e}setMagicCodeStep(e){e1.magicCodeStep=e,eZ(localStorage,eM.MAGIC_CODE_STEP,e)}setResetPasswordStep(e){e1.resetPassword={...e1.resetPassword,step:e}}setResetToken(e){e1.resetPassword={...e1.resetPassword,token:e}}setNewPassword(e){e1.resetPassword={...e1.resetPassword,newPassword:e}}setConfirmPassword(e){e1.resetPassword={...e1.resetPassword,passwordConfirmation:e}}updateResetPassword(e){e1.resetPassword={...e1.resetPassword,...e}}setAuthenticated(e){e1.authenticated=e,e?(e1._pendingRecoveryStep=null,e1._stepHistory=[],eZ(localStorage,eM.STEP,null),eB(localStorage,eM.STEP_HISTORY,null),eZ(localStorage,eM.MAGIC_CODE_STEP,null)):(e1.token=null,e1.refreshToken=null,e1.sid=null)}reset(){e4(),eZ(localStorage,eM.SID,null),eZ(localStorage,eM.EMAIL,null),eZ(localStorage,eM.REFRESH_TOKEN,null),eZ(sessionStorage,eM.TOKEN,null),eZ(localStorage,eM.STEP,null),eB(localStorage,eM.STEP_HISTORY,null),eZ(localStorage,eM.LOGIN_OPTIONS,null),eZ(localStorage,eM.MAGIC_CODE_STEP,null)}getPendingRecoveryStep(){return e1._pendingRecoveryStep}applyRecoveryStep(){let e=e1._pendingRecoveryStep;return e&&e1.sid?(e1.step=e,e1._pendingRecoveryStep=null,!0):(this.clearPendingRecovery(),!1)}clearPendingRecovery(){e1._pendingRecoveryStep=null,eZ(localStorage,eM.STEP,null),eB(localStorage,eM.STEP_HISTORY,null),eZ(localStorage,eM.MAGIC_CODE_STEP,null)}canGoBack(){return e1._stepHistory.length>0}goBack(){if(0===e1._stepHistory.length)return!1;let e=e1.step,t=e1._stepHistory[e1._stepHistory.length-1];return e1._stepHistory=e1._stepHistory.slice(0,-1),this.setStep(t,!1),this.clearErrors(),"magic-code"===e&&(e1.magicCodeStep=null,eZ(localStorage,eM.MAGIC_CODE_STEP,null)),!0}restart(){let e=e1._initialStep??"email",t=e1.email,i=e1.availableLoginOptions;e4(),e1.email=t,eZ(localStorage,eM.EMAIL,t),e1.availableLoginOptions=i,eB(localStorage,eM.LOGIN_OPTIONS,i),e1.step=e,e1._initialStep=e,e1._stepHistory=[],e1._pendingRecoveryStep=null,eZ(localStorage,eM.SID,null),eZ(localStorage,eM.REFRESH_TOKEN,null),eZ(sessionStorage,eM.TOKEN,null),eZ(localStorage,eM.STEP,null),eB(localStorage,eM.STEP_HISTORY,null),eZ(localStorage,eM.MAGIC_CODE_STEP,null)}},e6="unidy_captcha_config",e3="not_found";class e8 extends p{constructor(e,t){super(e,"CaptchaService",t)}loadCachedConfig(){try{let e=sessionStorage.getItem(e6);if(null===e)return null;if(e===e3)return["not_found",null];let t=n.a.safeParse(JSON.parse(e));if(t.success)return[null,t.data];return sessionStorage.removeItem(e6),null}catch{return sessionStorage.removeItem(e6),null}}cacheConfig(e){try{let[t,i]=e;null===t&&i?sessionStorage.setItem(e6,JSON.stringify(i)):"not_found"===t&&sessionStorage.setItem(e6,e3)}catch{}}async getCaptchaConfig(){let e=this.loadCachedConfig();if(null!==e)return this.logger.debug("Using cached captcha config"),e;let t=await this.client.get(`/api/sdk/v1/sdk_clients/${this.client.api_key}/captcha_config`),i=this.handleResponse(t,()=>
37t.success?[null,n.a.parse(t.data)]:404===t.status?["not_found",null]:["internal_error",null]);return this.cacheConfig(i),i}}function e7(e){let t=new URL(window.location.href),i=t.searchParams.get(e);return i&&(t.searchParams.delete(e),window.history.replaceState(null,"",t.toString())),i}let e5={NotSupportedError:"passkey_not_supported",NotAllowedError:"passkey_cancelled",SecurityError:"passkey_security_error",InvalidStateError:"passkey_invalid_state"};function te(){return"undefined"!=typeof window&&!!window.PublicKeyCredential}function tt(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),i=t+"=".repeat((4-t.length%4)%4);return Uint8Array.from(atob(i),e=>e.charCodeAt(0))}function ti(e){return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function tn(e){return{challenge:tt(e.challenge).buffer,timeout:e.timeout||6e4,rp:e.rp,user:{id:tt(e.user.id).buffer,name:e.user.name,displayName:e.user.displayName},pubKeyCredParams:e.pubKeyCredParams.map(e=>({type:e.type,alg:e.alg})),authenticatorSelection:e.authenticatorSelection?{authenticatorAttachment:e.authenticatorSelection.authenticatorAttachment,residentKey:e.authenticatorSelection.residentKey,requireResidentKey:e.authenticatorSelection.requireResidentKey,userVerification:e.authenticatorSelection.userVerification}:void 0,excludeCredentials:e.excludeCredentials?.map(e=>({type:e.type,id:tt(e.id).buffer,transports:e.transports})),attestation:e.attestation||"none"}}function tr(e){let t=e.response;return{id:e.id,rawId:ti(e.rawId),response:{attestationObject:ti(t.attestationObject),clientDataJSON:ti(t.clientDataJSON)},type:e.type}}let ts=(0,s.i)("PasskeyAuth");async function ta(e,t){if(e9.setLoading(!0),e9.clearErrors(),!window.PublicKeyCredential){e9.setFieldError("passkey","passkey_not_supported"),e9.setLoading(!1);return}try{let[i,n]=await e.auth.getPasskeyOptions(e1.sid?{signInId:e1.sid}:void 0);if(i||!n){e9.setFieldError("passkey",i||"bad_request"),e9.setLoading(!1);return}let r={challenge:tt(n.challenge).buffer,timeout:n.timeout||6e4,rpId:n.rpId,userVerification:n.userVerification||"required",allowCredentials:n.allowCredentials?.map(e=>({...e,id:tt(e.id)}))},s=await navigator.credentials.get({publicKey:r});if(!s){e9.setFieldError("passkey","passkey_cancelled"),e9.setLoading(!1);return}let a=function(e){let t=e.response;return{id:e.id,rawId:btoa(String.fromCharCode(...new Uint8Array(e.rawId))),response:{authenticatorData:btoa(String.fromCharCode(...new Uint8Array(t.authenticatorData))),clientDataJSON:btoa(String.fromCharCode(...new Uint8Array(t.clientDataJSON))),signature:btoa(String.fromCharCode(...new Uint8Array(t.signature)))},type:e.type}}(s),[o,l]=await e.auth.authenticateWithPasskey({payload:{credential:a}});if(o||!l){e9.setGlobalError("auth",o||"authentication_failed"),e9.setLoading(!1);return}e9.setToken(l.jwt),function(e){if(e.sid){e9.setSignInId(e.sid);return}try{let t=eq(e.jwt);t.sid&&e9.setSignInId(t.sid)}catch{}}(l),t(l)}catch(t){let e;ts.error("Passkey error:",t),e="passkey_error",t instanceof DOMException&&(e=e5[t.name]||"passkey_error"),e9.setFieldError("passkey",e),e9.setLoading(!1)}}class to{client;logger=(0,s.i)("AuthHelpers");constructor(e){this.client=e}async createSignIn(e,t,i){let r;if(!e)throw Error((0,o.t)("errors.required_field",{field:"Email"}));e9.setLoading(!0),e9.clearErrors();try{let e=await n.c.execute("login");r=e?.token}catch(e){this.logger.error("Captcha execution failed:",e),e9.setGlobalError("captcha","captcha_execution_failed"),e9.setLoading(!1);return}let[s,a]=await this.client.auth.createSignIn({payload:{email:e,password:t,sendMagicCode:i,originUrl:window.location.href,captchaToken:r}});if(s)return"magic_code_recently_created"===s?(e9.setMagicCodeStep("sent"),e9.setStep("magic-code"),e9.setLoading(!1),e9.setFieldError("magicCode",s),[s,a]):("account_not_found"===s&&e9.setEmail(e),void this.handleAuthError(s,a,t?"password":"email"));if(t){let e=eq(a.jwt);e9.setSignInId(e.sid),e9.setToken(a.jwt),e9.setRefreshToken(a.refresh_token),e9.setLoading(!1),e9.getRootComponentRef()?.onAuth(a);return}if(i)return(e9.setSignInId(a.sid),e9.setLoginOptions(a.login_options),a.login_options?.magic_link===!1)?(e9.setGlobalError("auth","magic_link_not_enabled"),e9.setLoading(!1),["magic_link_not_enabled",a]):(e9.setMagicCodeStep("sent"),e9.setStep("magic-code"),e9.setLoading(!1),[s,a]);e9.setStep("verification"),e9.setEmail(e),e9.setSignInId(a.sid),e9.setLoginOptions(a.login_options),e9.setLoading(!1)}async authenticateWithPassword(e){let t;if(!e1.sid)throw Error((0,o.t)("errors.no_sign_in_id"));if(!e)throw Error((0,o.t)("errors.required_field",{field:"Password"}));e9.setLoading(!0),e9.clearErrors();try{let e=await n.c.execute("login");t=e?.token}
37catch(e){this.logger.error("Captcha execution failed:",e),e9.setGlobalError("captcha","captcha_execution_failed"),e9.setLoading(!1);return}let[i,r]=await this.client.auth.authenticateWithPassword({signInId:e1.sid,payload:{password:e,captchaToken:t}});if(i)this.handleAuthError(i,r,"password");else{e9.setLoading(!1),this.handleAuthSuccess(r);return}}async authenticateWithMagicCode(e){let t;if(!e1.sid)throw Error((0,o.t)("errors.no_sign_in_id"));if(!e)throw Error((0,o.t)("errors.magic_code_is_missing"));e9.setLoading(!0),e9.clearErrors();try{let e=await n.c.execute("login");t=e?.token}catch(e){this.logger.error("Captcha execution failed:",e),e9.setGlobalError("captcha","captcha_execution_failed"),e9.setLoading(!1);return}let[i,r]=await this.client.auth.authenticateWithMagicCode({signInId:e1.sid,payload:{code:e,captchaToken:t}});if(i){this.handleAuthError(i,r,"magicCode");return}this.handleAuthSuccess(r)}authenticateWithPasskey(){return ta(this.client,e=>this.handleAuthSuccess(e))}async logout(e){let[t,i]=await this.client.auth.signOut({signInId:e1.sid,globalLogout:e??e1.backendSignedIn});return t&&e9.setGlobalError("auth",t),[t,i]}async refreshToken(){if(!e1.sid){this.logger.warn("No sign-in ID in the session");return}if(!e1.refreshToken){this.logger.warn("No refresh token in the session");return}let[e,t]=await this.client.auth.refreshToken({signInId:e1.sid,refreshToken:e1.refreshToken});e?(e9.reset(),e9.setGlobalError("auth",e)):(e9.setToken(t.jwt),e9.setRefreshToken(t.refresh_token))}extractSidFromUrl(){let e=e7("sid");e&&e9.setSignInId(e)}recoverSignInStep(){let e=e9.getPendingRecoveryStep();if(!e||!e1.sid)return e9.clearPendingRecovery(),!1;this.logger.info("Recovering sign-in step:",e);let t=e9.applyRecoveryStep();return t&&this.logger.info("Sign-in step recovered successfully:",e),t}async checkSignedIn(){if(e1.authenticated)return;let[e,t]=await this.client.auth.signedIn();if(!e){if(!e1.sid){let e=eq(t.jwt);e9.setSignInId(e.sid),e9.setBackendSignedIn(!0)}this.handleAuthSuccess(t)}}async sendMagicCode(){if(!e1.sid&&"single-login"!==e1.step)throw Error((0,o.t)("errors.no_sign_in_id"));if(e9.setMagicCodeStep("requested"),e9.setLoading(!0),e9.clearErrors(),"single-login"===e1.step){let[e,t]=await this.createSignIn(e1.email,void 0,!0);return e9.setLoading(!1),[e,t]}let[e,t]=await this.client.auth.sendMagicCode({signInId:e1.sid});return(e9.setLoading(!1),e9.setStep("magic-code"),e)?(e9.setFieldError("magicCode",e),"magic_code_recently_created"===e&&e9.setMagicCodeStep("sent"),[e,t]):(e9.setMagicCodeStep("sent"),[null,t])}async resendConfirmationEmail(){let e;if(!e1.email)return e9.setGlobalError("auth","email_required"),!1;if(e1.loading)return!1;e9.setLoading(!0),e9.clearErrors();try{let t=await n.c.execute("login");e=t?.token}catch(e){return this.logger.error("Captcha execution failed:",e),e9.setGlobalError("captcha","captcha_execution_failed"),e9.setLoading(!1),!1}let[t,i]=await this.client.auth.resendConfirmation({payload:{email:e1.email,captchaToken:e}});return(e9.setLoading(!1),t)?("confirmation_recently_sent"===t&&i&&"enable_resend_after"in i?e9.setEnableResendAfter(i.enable_resend_after):(0,n.i)(t)?(n.c.reset(),e9.setGlobalError("captcha",t)):e9.setGlobalError("auth",t),!1):(e9.setEnableResendAfter(i?.enable_resend_after??0),!0)}async sendResetPasswordEmail(){if(!e1.sid)throw Error((0,o.t)("errors.no_sign_in_id"));e9.setLoading(!0),e9.setResetPasswordStep("requested");let[e,t]=await this.client.auth.sendResetPasswordEmail({signInId:e1.sid,payload:{returnTo:window.location.href}});e?e9.setFieldError("resetPassword",e):(e9.setResetPasswordStep("sent"),e9.clearErrors()),e9.setLoading(!1)}async resetPassword(){if(!e1.resetPassword.token)throw Error("No reset token available");if(!e1.resetPassword.newPassword){e9.setFieldError("resetPassword","password_required");return}if(e1.resetPassword.passwordConfirmation&&e1.resetPassword.newPassword!==e1.resetPassword.passwordConfirmation){e9.setFieldError("resetPassword","passwords_do_not_match");return}e9.setLoading(!0),e9.clearErrors();let[e,t]=await this.client.auth.resetPassword({signInId:e1.sid,token:e1.resetPassword.token,payload:{password:e1.resetPassword.newPassword,passwordConfirmation:e1.resetPassword.passwordConfirmation}});e?(e9.setFieldError("resetPassword",e),"invalid_password"===e&&e9.setFieldError("password",t.error_details?.password.map(e=>o.t(`errors.password_requirements.${e}`)).join("\n"))):(e9.setStep("email"),e9.updateResetPassword({step:"completed",token:null,newPassword:"",passwordConfirmation:""}),e7("reset_password_token"),d.F.success.addMessage("Password reset successfully")),e9.setLoading(!1)}async handleResetPasswordRedirect(){let e=new URL(window.location.href).searchParams.get("reset_password_token");if(e){if(e1.sid){e9.setLoading(!0);let[t]=await this.client.auth.validateResetPasswordToken({signInId:e1.sid,token:e});if(t){e9.setFieldError("resetPassword",t),e9.setStep("reset-password"),e9.setLoading(!1);return}}e9.setResetToken(e),e9.setStep("reset-password"),e9.setLoading(!1)}}handleSocialAuthRedirect(){let e=new URL(window.location.href).searchParams,t=e.get("error"),i=e.has("sdk_login_sid")||e.has("sid");if(!t&&!i)return;if(!t&&i&&e.has("auth_payload")){let e=this.clearRedirectSignInId();e&&e9.setSignInId(e);let t=e7("auth_payload");if(t)try{let e=JSON.parse(atob(t)),i=e.id_token,n=e.refresh_token;i?this.handleAuthSuccess({jwt:i,refresh_token:n}
37):this.logger.error("No ID token found in auth_payload on social auth redirect")}catch(e){this.logger.error("Failed to decode auth_payload on social auth redirect:",e)}else this.logger.error("No auth_payload found in the URL on social auth redirect");return}if("brand_connection_required"===t){let e=this.clearRedirectSignInId();e7("error"),e&&(e9.setSignInId(e),e9.setStep("connect-brand"));return}if("missing_required_fields"!==t){this.logger.error("Social auth redirect error:",t);return}let n=e7("fields"),r=this.clearRedirectSignInId();if(e7("error"),n&&r)try{let e=JSON.parse(n);e9.setSignInId(r),this.handleMissingFields(e)}catch(e){this.logger.error("Failed to parse missing fields payload:",e),e9.setGlobalError("auth","invalid_required_fields_payload")}}clearRedirectSignInId(){let e=e7("sdk_login_sid"),t=e7("sid");return e||t}async connectBrand(){if(!e1.sid)throw Error((0,o.t)("errors.no_sign_in_id"));e9.setLoading(!0),e9.clearErrors();let[e,t]=await this.client.auth.connectBrand({signInId:e1.sid});if(e){this.handleAuthError(e,t);return}this.handleAuthSuccess(t)}async cancelBrandConnect(){e1.sid&&await this.client.auth.signOut({signInId:e1.sid});let e=e1.initialStep;e9.reset(),e9.setStep(e)}handleAuthError(e,t,i){if((0,n.i)(e)){n.c.reset(),e9.setGlobalError("captcha",e),e9.setLoading(!1);return}switch(e){case"account_not_found":e9.setFieldError("email",e),e9.setStep("registration");break;case"brand_connection_required":e9.setStep("connect-brand");break;case"missing_required_fields":{let{fields:e,sid:i}=t;this.handleMissingFields(e),i&&e9.setSignInId(i);break}case"account_locked":e9.setGlobalError("auth",e);break;case"account_unconfirmed":e9.setStep("unconfirmed");break;default:"password"===i?e9.setFieldError("password",e):"magicCode"===i?e9.setFieldError("magicCode",e):"email"===i?e9.setFieldError("email",e):e9.setGlobalError("auth",e)}e9.setLoading(!1)}handleMissingFields(e){e9.setMissingFields(e),r.s.data=e,e9.setStep("missing-fields"),e9.setLoading(!1)}handleAuthSuccess(e){e9.setToken(e.jwt),e9.setRefreshToken(e.refresh_token),e9.setLoading(!1),e9.getRootComponentRef()?.onAuth(e)}}class tl{static instance;static initializationPromise=null;helpers;constructor(e){this.helpers=new to(e)}static Errors={email:{NOT_FOUND:"account_not_found"},general:{ACCOUNT_LOCKED:"account_locked",SIGN_IN_ALREADY_PROCESSED:"sign_in_already_processed",SIGN_IN_EXPIRED:"sign_in_expired",SIGN_IN_NOT_FOUND:"sign_in_not_found"},magicCode:{EXPIRED:"magic_code_expired",NOT_VALID:"magic_code_not_valid",RECENTLY_CREATED:"magic_code_recently_created",USED:"magic_code_used"},password:{INVALID:"invalid_password",NOT_SET:"password_not_set",RESET_PASSWORD_ALREADY_SENT:"reset_password_already_sent"},passwordReset:{PASSWORD_TOO_WEAK:"password_too_weak"}};static getInstance(){return tl.instance?Promise.resolve(tl.instance):(tl.initializationPromise||(tl.initializationPromise=(0,a.w)().then(()=>tl.initialize(t3())).catch(e=>{throw tl.initializationPromise=null,e})),tl.initializationPromise)}static async initialize(e){return tl.instance||(tl.instance=new tl(e),tl.instance.helpers.handleSocialAuthRedirect(),tl.instance.helpers.extractSidFromUrl(),await tl.instance.helpers.handleResetPasswordRedirect(),tl.instance.isTokenValid(e1.token)&&e9.setAuthenticated(!0),tl.instance.helpers.recoverSignInStep(),tl.initializationPromise=null),tl.instance}static isInitialized(){return!!tl.instance}isTokenValid(e,t=10){if(!Number.isFinite(t)||t<=0)throw Error("expirationBuffer must be a positive finite number");try{let i;if(!(i="string"==typeof e?eq(e):e)||"number"!=typeof i.exp||!Number.isFinite(i.exp))return!1;let n=Date.now()/1e3;return i.exp>n+t}catch(e){return(0,s.f)(e),!1}}async isAuthenticated(){return"string"==typeof await this.getToken()}async getToken(){let e=e1.token;return e&&this.isTokenValid(e)?e:(await this.helpers.refreshToken(),e1.globalErrors.auth||!e1.token)?this.createAuthError((0,o.t)("errors.refresh_failed"),"REFRESH_FAILED",!0):e1.token}async userTokenPayload(){let e=await this.getToken();if("string"!=typeof e||!e)return null;try{return eq(e)}catch(e){return(0,s.f)(e),null}}async logout(e){let[t,i]=await this.helpers.logout(e);return e9.reset(),!t||this.createAuthError((0,o.t)("errors.sign_out_failed",{reason:t}
37),"SIGN_OUT_FAILED",!1)}getEmail(){return e1.email}canGoBack(){return e9.canGoBack()}goBack(){return e9.goBack()}restart(){e9.restart()}getCurrentStep(){return e1.step}createAuthError(e,t,i=!1){let n=Error(e);return n.code=t,n.requiresReauth=i,n}}let td=(0,n.h)(["mr","mrs","mx"]),tu=(0,n.o)({id:(0,n.n)(),email:(0,n.s)(),newsletter_internal_name:(0,n.s)(),preference_identifiers:(0,n.k)((0,n.s)()),preference_token:(0,n.s)(),confirmed_at:(0,n.s)().nullable()}),tc=n.e.extend({error_details:(0,n.r)((0,n.s)(),(0,n.k)((0,n.s)())).optional(),meta:(0,n.o)({newsletter_internal_name:(0,n.s)()})}),tp=(0,n.o)({results:(0,n.k)(tu),errors:(0,n.k)(tc)}),th=(0,n.o)({first_name:(0,n.s)().nullable(),last_name:(0,n.s)().nullable(),salutation:td.nullable(),phone_number:(0,n.s)().nullable(),date_of_birth:(0,n.s)().nullable(),company_name:(0,n.s)().nullable(),address_line_1:(0,n.s)().nullable(),address_line_2:(0,n.s)().nullable(),city:(0,n.s)().nullable(),postal_code:(0,n.s)().nullable(),country_code:(0,n.s)().nullable(),preferred_language:(0,n.s)().nullable(),custom_attributes:(0,n.r)((0,n.s)(),(0,n.p)()).nullable()}).partial(),tf=(0,n.o)({email:(0,n.s)(),additional_fields:(0,n.q)(th),newsletter_subscriptions:(0,n.k)((0,n.o)({newsletter_internal_name:(0,n.s)(),preference_identifiers:(0,n.q)((0,n.k)((0,n.s)()))})),redirect_to_after_confirmation:(0,n.q)((0,n.s)()),captcha_token:(0,n.q)((0,n.s)())}),tg=(0,n.o)({preference_identifiers:(0,n.k)((0,n.s)())}),t_=(0,n.o)({email:(0,n.s)(),redirect_uri:(0,n.s)()}),tm=(0,n.o)({redirect_to_after_confirmation:(0,n.s)()}).partial(),tv=(0,n.o)({id:(0,n.n)(),name:(0,n.s)(),description:(0,n.s)().nullable(),plugin_identifier:(0,n.s)().nullable(),position:(0,n.n)().nullable().transform(e=>e??0),default:(0,n.j)().nullable().transform(e=>e??!1),hidden:(0,n.j)()}),ty=(0,n.o)({id:(0,n.n)(),name:(0,n.s)(),position:(0,n.n)().nullable().transform(e=>e??0),flat:(0,n.j)(),preferences:(0,n.k)(tv)}),tb=(0,n.o)({id:(0,n.n)(),internal_name:(0,n.s)(),default:(0,n.j)(),position:(0,n.n)(),opt_in_type:(0,n.s)(),title:(0,n.s)(),description:(0,n.s)().nullable(),created_at:(0,n.s)(),updated_at:(0,n.s)(),preference_groups:(0,n.k)(ty)}),tk=(0,n.o)({newsletters:(0,n.k)(tb)}),tw=(0,n.o)({new_preference_token:(0,n.s)()}).nullable(),tS=n.e;class tx extends p{constructor(e,t){super(e,"NewsletterService",t)}async buildNewsletterAuthHeaders(e){let t=await this.getIdToken();return this.buildAuthHeaders({"X-ID-Token":t??void 0,"X-Preference-Token":e?.preferenceToken})}async create(e){let{payload:t,options:i}=e,r=tf.safeParse(t);if(!r.success)return this.logger.error("Invalid payload for create",r.error),["schema_validation_error",{error_identifier:"schema_validation_error",errors:[String(r.error)]}];let s=await this.buildNewsletterAuthHeaders(i),a=await this.client.post("/api/sdk/v1/newsletters/newsletter_subscription",t,s);return this.handleResponse(a,()=>{if(a.success||422===a.status){let e=tp.parse(a.data);return e.errors.length>0?["newsletter_error",e]:[null,e]}let e=tS.safeParse(a.data),t=e.success?e.data:{error_identifier:"unknown_error"};if((0,n.i)(t.error_identifier))return[t.error_identifier,t];switch(a.status){case 401:return["unauthorized",t];case 429:return this.logger.warn("Rate limit exceeded"),["rate_limit_exceeded",t];case 500:return this.errorReporter.captureException(a),["server_error",t];default:return["server_error",t]}})}async list(e){let t=await this.buildNewsletterAuthHeaders(e?.options),i=await this.client.get("/api/sdk/v1/newsletters/newsletter_subscription",t);return this.handleResponse(i,()=>{if(!i.success){let e=tS.safeParse(i.data),t=e.success?e.data:{error_identifier:"unknown_error"};return 401===i.status?["unauthorized",t]:["server_error",t]}return[null,(0,n.k)(tu).parse(i.data)]})}async get(e){let{internalName:t,options:i}=e,n=await this.buildNewsletterAuthHeaders(i),r=await this.client.get(`/api/sdk/v1/newsletters/${t}/newsletter_subscription`,n);return this.handleResponse(r,()=>{if(!r.success){let e=tS.safeParse(r.data),t=e.success?e.data:{error_identifier:"unknown_error"};
37return 401===r.status?["unauthorized",t]:404===r.status?["not_found",t]:["server_error",t]}return[null,tu.parse(r.data)]})}async update(e){let{internalName:t,payload:i,options:n}=e,r=tg.safeParse(i);if(!r.success)return this.logger.error("Invalid payload for update",r.error),["schema_validation_error",{error_identifier:"schema_validation_error",errors:[String(r.error)]}];let s=await this.buildNewsletterAuthHeaders(n),a=await this.client.patch(`/api/sdk/v1/newsletters/${t}/newsletter_subscription`,i,s);return this.handleResponse(a,()=>{if(!a.success){let e=tS.safeParse(a.data),t=e.success?e.data:{error_identifier:"unknown_error"};return 401===a.status?["unauthorized",t]:404===a.status?["not_found",t]:["server_error",t]}return[null,tu.parse(a.data)]})}async delete(e){let{internalName:t,options:i}=e,n=await this.buildNewsletterAuthHeaders(i),r=await this.client.delete(`/api/sdk/v1/newsletters/${t}/newsletter_subscription`,n);return this.handleResponse(r,()=>{if(!r.success){let e=tS.safeParse(r.data),t=e.success?e.data:{error_identifier:"unknown_error"};return 401===r.status?["unauthorized",t]:404===r.status?["not_found",t]:422===r.status?["unprocessable_entity",t]:["server_error",t]}return 204===r.status?[null,null]:[null,tw.parse(r.data)]})}async resendDoi(e){let{internalName:t,payload:i,options:n}=e,r=tm.safeParse(i);if(!r.success)return this.logger.error("Invalid payload for resendDoi",r.error),["schema_validation_error",{error_identifier:"schema_validation_error",errors:[String(r.error)]}];let s=await this.buildNewsletterAuthHeaders(n),a=await this.client.post(`/api/sdk/v1/newsletters/${t}/newsletter_subscription/resend_doi`,i,s);return this.handleResponse(a,()=>{if(!a.success){let e=tS.safeParse(a.data),t=e.success?e.data:{error_identifier:"unknown_error"};return 401===a.status?["unauthorized",t]:404===a.status?["not_found",t]:"already_confirmed"===t.error_identifier?["already_confirmed",t]:["server_error",t]}return[null,null]})}async sendLoginEmail(e){let{payload:t}=e,i=t_.safeParse(t);if(!i.success)return this.logger.error("Invalid payload for sendLoginEmail",i.error),["schema_validation_error",{error_identifier:"schema_validation_error",errors:[String(i.error)]}];let n=await this.client.post("/api/sdk/v1/newsletters/newsletter_subscription/login_email",t);return this.handleResponse(n,()=>{if(!n.success){let e=tS.safeParse(n.data),t=e.success?e.data:{error_identifier:"unknown_error"};return 429===n.status?["rate_limit_exceeded",t]:404===n.status?["not_found",t]:["server_error",t]}return[null,null]})}async listAll(){let e=await this.client.get("/api/sdk/v1/newsletters");return this.handleResponse(e,()=>e.success?[null,tk.parse(e.data)]:["server_error",null])}async getByName(e){let{internalName:t}=e,i=await this.client.get(`/api/sdk/v1/newsletters/${t}`);return this.handleResponse(i,()=>{if(!i.success){let e=tS.safeParse(i.data),t=e.success?e.data:{error_identifier:"unknown_error"};return 404===i.status?["not_found",t]:["server_error",t]}return[null,tb.parse(i.data)]})}}let tz=(0,n.o)({scope:(0,n.s)(),name:(0,n.s)()}),tE=(0,n.o)({uid:(0,n.s)(),name:(0,n.s)(),description:(0,n.s)().nullable(),scopes:(0,n.k)(tz),logo_url:(0,n.s)().nullable(),connect_uri:(0,n.s)().nullable()}),tI=(0,n.o)({has_consent:(0,n.j)(),required_fields:(0,n.k)((0,n.s)()),missing_fields:(0,n.k)((0,n.s)()),application:tE}),tP=tI.extend({error_identifier:(0,n.s)(),error_details:(0,n.r)((0,n.s)(),(0,n.p)()).optional()}),tO=(0,n.o)({token:(0,n.s)()}),tC=n.e.extend({error_details:(0,n.r)((0,n.s)(),(0,n.p)()).optional()});n.e.extend({error_identifier:(0,n.l)("consent_not_granted"),error_details:(0,n.o)({reason:(0,n.s)()})}),n.e.extend({error_identifier:(0,n.l)("missing_required_fields"),error_details:(0,n.o)({missing_fields:(0,n.k)((0,n.s)())})}),(0,n.o)({user_updates:(0,n.o)({first_name:(0,n.s)().optional(),last_name:(0,n.s)().optional(),custom_attributes:(0,n.r)((0,n.s)(),(0,n.p)()).optional()}).optional()}),(0,n.o)({scopes:(0,n.k)((0,n.s)()).optional(),redirect_uri:(0,n.s)().optional()}),(0,n.o)({scopes:(0,n.k)((0,n.s)()).optional(),redirect_uri:(0,n.s)().optional()});class tR extends p{constructor(e,t){super(e,"OAuthService",t)}parseErrorResponse(e){let t=tC.safeParse(e);return t.success?t.data:{error_identifier:"unknown_error"}}async checkConsent(e){let t=await this.getIdToken(),i=this.buildAuthHeaders({"X-ID-Token":t??void 0}),n=await this.client.get(`/api/sdk/v1/oauth/${e}/consent`,i);return this.handleResponse(n,()=>n.success?[null,tI.parse(n.data)]:["application_not_found",this.parseErrorResponse(n.data)])}async updateConsent(e,t){let i=await this.getIdToken(),n=this.buildAuthHeaders({"X-ID-Token":i??void 0}),r=await this.client.patch(`/api/sdk/v1/oauth/${e}/consent`,t,n);return this.handleResponse(r,()=>{if(!r.success){let e=this.parseErrorResponse(r.data);
37return"invalid_user_updates"===e.error_identifier?["invalid_user_updates",e]:["application_not_found",e]}return[null,tI.parse(r.data)]})}async grantConsent(e,t){let i=await this.getIdToken(),n=this.buildAuthHeaders({"X-ID-Token":i??void 0}),r=await this.client.post(`/api/sdk/v1/oauth/${e}/consent`,t??{},n);return this.handleResponse(r,()=>{if(!r.success){let e=this.parseErrorResponse(r.data);return"missing_required_fields"===e.error_identifier?["missing_required_fields",e]:["application_not_found",e]}return[null,tO.parse(r.data)]})}async connect(e,t){let i=await this.getIdToken(),n=this.buildAuthHeaders({"X-ID-Token":i??void 0}),r=await this.client.post(`/api/sdk/v1/oauth/${e}/connect`,t??{},n);return this.handleResponse(r,()=>{if(!r.success){let e=tP.safeParse(r.data);if(e.success){let t=e.data.error_identifier;if("consent_not_granted"===t)return["consent_not_granted",e.data];if("missing_required_fields"===t)return["missing_required_fields",e.data]}return["application_not_found",{error_identifier:this.parseErrorResponse(r.data).error_identifier}]}return[null,tO.parse(r.data)]})}}(0,n.h)(["pdf","pkpass"]);let tA=(0,n.o)({url:(0,n.s)().url(),expires_in:(0,n.n)()}),tT=(0,n.o)({page:(0,n.n)().int().positive().optional(),perPage:(0,n.n)().int().positive().max(250).optional(),state:(0,n.s)().nullish(),paymentState:(0,n.s)().nullish(),orderBy:(0,n.h)(["starts_at","ends_at","reference","created_at"]).optional(),orderDirection:(0,n.h)(["asc","desc"]).optional(),serviceId:(0,n.n)().int().positive().optional()}),tN=u(),t$=u().nullable(),tj=(0,n.v)(),tL=(0,n.o)({id:(0,n.w)(),title:(0,n.s)(),reference:(0,n.s)(),exportable_to_wallet:(0,n.j)(),state:(0,n.s)(),created_at:tN,updated_at:tN,user_id:(0,n.w)(),metadata:tj,wallet_export:tj,payment_state:(0,n.s)().nullable(),currency:(0,n.s)().nullable(),button_cta_url:(0,n.s)().nullable()}),tD=tL.extend({text:(0,n.s)().nullable(),info_banner:(0,n.s)().nullable(),seating:(0,n.s)().nullable(),venue:(0,n.s)().nullable(),starts_at:tN,ends_at:t$,price:(0,n.n)().nullable(),ticket_category_id:(0,n.w)()}),tU=(0,n.o)({meta:n.P,results:(0,n.k)(tD)}),tV=tL.extend({text:(0,n.s)(),payment_frequency:(0,n.s)().nullable(),starts_at:t$,ends_at:t$,next_payment_at:t$,price:(0,n.n)().nullable(),subscription_category_id:(0,n.w)()}),tF=(0,n.o)({meta:n.P,results:(0,n.k)(tV)});class tq extends p{buildListParams(e={},t,i){return{page:e.page,limit:e.perPage,state:e.state,payment_state:e.paymentState,order_by:e.orderBy,order_direction:e.orderDirection,service_id:e.serviceId,[t]:i}}toQueryString(e){let t=Object.entries(e).filter(([e,t])=>null!=t).map(([e,t])=>[e,String(t)]);return 0===t.length?"":`?${new URLSearchParams(Object.fromEntries(t)).toString()}`}validateListArgs(e){let t=tT.safeParse(e);return!!t.success||(this.logger.error("Invalid list parameters",t.error),!1)}async handleList(e,t,i,n,r={}){if(!this.validateListArgs(r))return["invalid_response",null];let s=await this.getIdToken();if(!s)return["missing_id_token",null];let a=await this.client.get(`${e}${t}`,this.buildAuthHeaders({"X-ID-Token":s}));return this.handleResponse(a,()=>{if(!a.success)return this.logger.error(`Failed to fetch ${n}`,a),["server_error",null];let t=i.safeParse(a.data);return t.success?[null,t.data]:(this.logger.error("Invalid response format",t.error),this.errorReporter.captureException(t.error,{resourceName:n,endpoint:e}),["invalid_response",null])})}async handleGet(e,t,i){let n=await this.getIdToken();if(!n)return["missing_id_token",null];let r=await this.client.get(e,this.buildAuthHeaders({"X-ID-Token":n}));return this.handleResponse(r,()=>{if(!r.success)return 404===r.status?["not_found",null]:(this.logger.error(`Failed to fetch ${i}`,r),["server_error",null]);let n=t.safeParse(r.data);return n.success?[null,n.data]:(this.logger.error("Invalid response format",n.error),this.errorReporter.captureException(n.error,{resourceName:i,endpoint:e}),["invalid_response",null])})}}class tM extends tq{constructor(e,t){super(e,"SubscriptionsService",t)}async list(e={}){let t=this.buildListParams(e,"subscription_category_id",e.subscriptionCategoryId),i=this.toQueryString(t);return this.handleList("/api/sdk/v1/subscriptions",i,tF,"subscriptions",e)}async get(e){return this.handleGet(`/api/sdk/v1/subscriptions/${e.id}`,tV,"subscription")}async getExportLink(e){let t=await this.getIdToken();if(!t)return["missing_id_token",null];let i=await this.client.post(`/api/sdk/v1/subscriptions/${e.id}/export_link`,{format:e.format},this.buildAuthHeaders({"X-ID-Token":t}));return this.handleResponse(i,()=>{if(!i.success)return 401===i.status||403===i.status?["unauthorized",null]:["server_error",null];let e=tA.safeParse(i.data);return e.success?[null,e.data]:(this.logger.error("Invalid export link response",e.error),["invali
37d_response",null])})}}class tZ extends tq{constructor(e,t){super(e,"TicketsService",t)}async list(e={}){let t=this.buildListParams(e,"ticket_category_id",e.ticketCategoryId),i=this.toQueryString(t);return this.handleList("/api/sdk/v1/tickets",i,tU,"tickets",e)}async get(e){return this.handleGet(`/api/sdk/v1/tickets/${e.id}`,tD,"ticket")}async getExportLink(e){let t=await this.getIdToken();if(!t)return["missing_id_token",null];let i=await this.client.post(`/api/sdk/v1/tickets/${e.id}/export_link`,{format:e.format},this.buildAuthHeaders({"X-ID-Token":t}));return this.handleResponse(i,()=>{if(!i.success)return 401===i.status||403===i.status?["unauthorized",null]:["server_error",null];let e=tA.safeParse(i.data);return e.success?[null,e.data]:(this.logger.error("Invalid export link response",e.error),["invalid_response",null])})}}let tK=(0,n.o)({page:(0,n.n)().int().positive().optional(),perPage:(0,n.n)().int().positive().max(250).optional(),state:(0,n.s)().nullish(),financialStatus:(0,n.s)().nullish(),orderType:(0,n.s)().nullish(),sourcePlatform:(0,n.s)().nullish(),externalId:(0,n.s)().nullish(),orderBy:(0,n.h)(["placed_at","created_at","total"]).optional(),orderDirection:(0,n.h)(["asc","desc"]).optional()}),tB=u(),tJ=u().nullable(),tH=(0,n.o)({id:(0,n.n)(),name:(0,n.s)().nullable(),quantity:(0,n.n)().nullable(),unit_price:(0,n.n)().nullable(),total_price:(0,n.n)().nullable(),metadata:(0,n.p)().nullable().optional()}),tG=(0,n.o)({salutation:(0,n.s)().nullable(),first_name:(0,n.s)().nullable(),last_name:(0,n.s)().nullable(),company_name:(0,n.s)().nullable(),address_line_1:(0,n.s)().nullable(),address_line_2:(0,n.s)().nullable(),city:(0,n.s)().nullable(),postal_code:(0,n.s)().nullable(),country_code:(0,n.s)().nullable(),phone_number:(0,n.s)().nullable()}),tW=(0,n.o)({id:(0,n.w)(),user_id:(0,n.w)(),transaction_category_id:(0,n.w)(),external_id:(0,n.s)().nullable(),reference:(0,n.s)().nullable(),source_platform:(0,n.s)().nullable(),order_type:(0,n.s)().nullable(),state:(0,n.s)().nullable(),financial_status:(0,n.s)().nullable(),fulfillment_status:(0,n.s)().nullable(),currency:(0,n.s)().nullable(),payment_method:(0,n.s)().nullable(),payment_provider_ref:(0,n.s)().nullable(),coupon_code:(0,n.s)().nullable(),invoice_number:(0,n.s)().nullable(),cancel_reason:(0,n.s)().nullable(),customer_note:(0,n.s)().nullable(),staff_note:(0,n.s)().nullable(),source_channel_id:(0,n.s)().nullable(),prices_include_tax:(0,n.j)(),tax_exempt:(0,n.j)(),tags:(0,n.k)((0,n.s)()).default([]),total:(0,n.n)().nullable(),subtotal:(0,n.n)().nullable(),total_discount:(0,n.n)().nullable(),total_paid:(0,n.n)().nullable(),total_refunded:(0,n.n)().nullable(),total_shipping:(0,n.n)().nullable(),total_tax:(0,n.n)().nullable(),exchange_rate:(0,n.n)().nullable(),placed_at:tJ,cancelled_at:tJ,completed_at:tJ,created_at:tB,updated_at:tB,metadata:(0,n.p)().nullable().optional(),platform_metadata:(0,n.p)().nullable().optional(),billing_address:tG.nullable(),shipping_address:tG.nullable(),line_items:(0,n.k)(tH).default([])}),tY=(0,n.o)({meta:n.P,results:(0,n.k)(tW)});class tX extends p{buildListParams(e={}){return{page:e.page,limit:e.perPage,state:e.state??void 0,financial_status:e.financialStatus??void 0,order_type:e.orderType??void 0,source_platform:e.sourcePlatform??void 0,external_id:e.externalId??void 0,order_by:e.orderBy,order_direction:e.orderDirection}}toQueryString(e){let t=Object.entries(e).filter(([e,t])=>null!=t).map(([e,t])=>[e,String(t)]);return 0===t.length?"":`?${new URLSearchParams(Object.fromEntries(t)).toString()}`}validateListArgs(e){let t=tK.safeParse(e);return!!t.success||(this.logger.error("Invalid list parameters",t.error),!1)}async handleList(e,t,i,n,r={}){if(!this.validateListArgs(r))return["invalid_response",null];let s=await this.getIdToken();if(!s)return["missing_id_token",null];let a=await this.client.get(`${e}${t}`,this.buildAuthHeaders({"X-ID-Token":s}));return this.handleResponse(a,()=>{if(!a.success)return this.logger.error(`Failed to fetch ${n}`,a),["server_error",null];let t=i.safeParse(a.data);return t.success?[null,t.data]:(this.logger.error("Invalid response format",t.error),this.errorReporter.captureException(t.error,{resourceName:n,endpoint:e}
37),["invalid_response",null])})}async handleGet(e,t,i){let n=await this.getIdToken();if(!n)return["missing_id_token",null];let r=await this.client.get(e,this.buildAuthHeaders({"X-ID-Token":n}));return this.handleResponse(r,()=>{if(!r.success)return 404===r.status?["not_found",null]:(this.logger.error(`Failed to fetch ${i}`,r),["server_error",null]);let n=t.safeParse(r.data);return n.success?[null,n.data]:(this.logger.error("Invalid response format",n.error),this.errorReporter.captureException(n.error,{resourceName:i,endpoint:e}),["invalid_response",null])})}}class tQ extends tX{constructor(e,t){super(e,"TransactionsService",t)}async list(e={}){let t=this.buildListParams(e),i=this.toQueryString(t);return this.handleList("/api/sdk/v1/transactions",i,tY,"transactions",e)}async get(e){return this.handleGet(`/api/sdk/v1/transactions/${e.id}`,tW,"transaction")}}class t0{static CONNECTION_ERROR_MESSAGES=["Failed to fetch","NetworkError","Load failed","The network connection was lost","ERR_CONNECTION_REFUSED","ERR_NETWORK","ERR_INTERNET_DISCONNECTED","ECONNREFUSED","ENOTFOUND","EAI_AGAIN"];onConnectionChange;baseUrl;api_key;constructor(e){this.baseUrl=e.baseUrl,this.api_key=e.apiKey,this.onConnectionChange=e.onConnectionChange}isConnectionError(e){return e instanceof Error&&t0.CONNECTION_ERROR_MESSAGES.some(t=>e.message.includes(t))}setConnectionStatus(e){this.onConnectionChange?.(e)}baseHeaders(){let e=new Headers;e.set("Content-Type","application/json"),e.set("Accept","application/json"),e.set("Authorization",`Bearer ${this.api_key}`),e.set("SDK-Version","1.7.0");let t=this.getLocale();return t&&e.set("Accept-Language",t),e}getLocale(){}mergeHeaders(e,t){let i=new Headers(e);return t&&new Headers(t).forEach((e,t)=>{i.set(t,e)}),i}buildQueryString(e){if(!e)return"";let t=Object.entries(e).filter(([e,t])=>null!=t).map(([e,t])=>[e,String(t)]);return 0===t.length?"":`?${new URLSearchParams(Object.fromEntries(t)).toString()}`}async request(e,t,i,n){let r=null;try{let s;r=await fetch(`${this.baseUrl}${t}`,{method:e,...this.getRequestOptions(),headers:this.mergeHeaders(this.baseHeaders(),n),body:i?JSON.stringify(i):void 0});try{s=await r.json()}catch{s=void 0}return this.setConnectionStatus(!0),{data:s,status:r.status,headers:r.headers,success:r.ok,connectionError:!1}}catch(n){let i=this.isConnectionError(n);return i&&(this.setConnectionStatus(!1),this.handleConnectionError(n,t,e)),{status:r?.status??(i?0:500),error:n instanceof Error?n.message:String(n),headers:r?.headers??new Headers,success:!1,data:void 0,connectionError:i}}}async get(e,t,i){let n=this.buildQueryString(i);return this.request("GET",`${e}${n}`,void 0,t)}async post(e,t,i){return this.request("POST",e,t,i)}async patch(e,t,i){return this.request("PATCH",e,t,i)}async delete(e,t){return this.request("DELETE",e,void 0,t)}}class t1 extends t0{constructor(e,t,i){super({baseUrl:e,apiKey:t,onConnectionChange:i})}setConnectionStatus(e){super.setConnectionStatus(e),a.u.backendConnected=e}getRequestOptions(){return{mode:"cors",credentials:"include"}}getLocale(){return a.u.locale}handleConnectionError(e,t,i){(0,s.f)(e,{tags:{error_type:"connection_error"},extra:{endpoint:t,method:i}})}}let t4=(0,n.o)({id:(0,n.s)(),name:(0,n.s)(),description:(0,n.s)().nullable(),logo_url:(0,n.s)().nullable(),connected_at:(0,n.s)().nullable()});function t2(e){return{logger:(0,s.i)(e),errorReporter:{captureException:(e,t)=>(0,s.f)(e,{extra:t})},getIdToken:async()=>{let e=await tl.getInstance(),t=await e.getToken();return"string"==typeof t?t:null},getLocale:()=>a.u.locale}}(0,n.k)(t4);class t9{apiClient;newsletters;profile;auth;oauth;captcha;tickets;subscriptions;transactions;constructor(e,t){this.apiClient=new t1(e,t),this.newsletters=new tx(this.apiClient,t2("NewsletterService")),this.profile=new A(this.apiClient,t2("ProfileService")),this.auth=new eV(this.apiClient,t2("AuthService")),this.oauth=new tR(this.apiClient,t2("OAuthService")),this.captcha=new e8(this.apiClient,t2("CaptchaService")),this.tickets=new tZ(this.apiClient,t2("TicketsService")),this.subscriptions=new tM(this.apiClient,t2("SubscriptionsService")),this.transactions=new tQ(this.apiClient,t2("TransactionsService"))}}let t6=null;function t3(){if(!a.u.isConfigured)throw Error("Config not initialized. Ensure <u-config> is loaded before making API calls by using waitForConfig() to wait for initialization.");return t6||(t6=new t9(a.u.baseUrl,a.u.apiKey)),t6}},1763:(e,t,i)=>{i.d(t,{c:()=>f});var n=i(2378);let r=(e,t,i)=>{let n=e.get(t);n||(n=[],e.set(t,n)),n.some(e=>e.deref()===i)||n.push(new WeakRef(i))},s=e=>!("isConnected"in e)||e.isConnected,a=((e,t)=>{let i;return(...t)=>{i&&clearTimeout(i),i=setTimeout(()=>{i=0,e(...t)},2e3)}})(e=>{for(let t of e.keys()){let i=e.get(t).filter(e=>{let t=e.deref();return t&&s(t)});e.set(t,i)}}
37,0),o=n.S,l=o.forceUpdate,d=o.getRenderingRef,u=()=>{if("function"!=typeof d||"function"!=typeof l)return{};let e=new Map;return{dispose:()=>e.clear(),get:t=>{let i=d();i&&r(e,t,i)},set:t=>{let i=e.get(t);if(i){let n=i.filter(e=>{let t=e.deref();return!!t&&l(t)});e.set(t,n)}a(e)},reset:()=>{e.forEach(e=>{e.forEach(e=>{let t=e.deref();t&&l(t)})}),a(e)}}},c=e=>"function"==typeof e?e():e,p=(e,t=(e,t)=>e!==t)=>{let i=()=>c(e)??{},n=i(),r=new Map(Object.entries(n)),s="undefined"!=typeof Proxy,a=s?null:{},o={dispose:[],get:[],set:[],reset:[]},l=new Map,d=()=>{r=new Map(Object.entries(i())),s||m(),o.reset.forEach(e=>e())},u=e=>(o.get.forEach(t=>t(e)),r.get(e)),p=(e,i)=>{let n=r.get(e);t(i,n,e)&&(r.set(e,i),s||_(e),o.set.forEach(t=>t(e,i,n)))},f=s?new Proxy(n,{get:(e,t)=>u(t),ownKeys:e=>Array.from(r.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>r.has(t),set:(e,t,i)=>(p(t,i),!0)}):(()=>(m(),a))(),g=(e,t)=>(o[e].push(t),()=>{h(o[e],t)});function _(e){s||!a||Object.prototype.hasOwnProperty.call(a,e)||Object.defineProperty(a,e,{configurable:!0,enumerable:!0,get:()=>u(e),set(t){p(e,t)}})}function m(){if(s||!a)return;let e=new Set(r.keys());for(let t of Object.keys(a))e.has(t)||delete a[t];for(let t of e)_(t)}return{state:f,get:u,set:p,on:g,onChange:(e,t)=>
37{let n=(i,n)=>{i===e&&t(n)},r=()=>{t(i()[e])},s=g("set",n),a=g("reset",r);return l.set(t,{setHandler:n,resetHandler:r,propName:e}),()=>{s(),a(),l.delete(t)}},use:(...e)=>{let t=e.reduce((e,t)=>(t.set&&e.push(g("set",t.set)),t.get&&e.push(g("get",t.get)),t.reset&&e.push(g("reset",t.reset)),t.dispose&&e.push(g("dispose",t.dispose)),e),[]);return()=>t.forEach(e=>e())},dispose:()=>{o.dispose.forEach(e=>e()),d()},reset:d,forceUpdate:e=>{let t=r.get(e);o.set.forEach(i=>i(e,t,t))},removeListener:(e,t)=>{let i=l.get(t);i&&i.propName===e&&(h(o.set,i.setHandler),h(o.reset,i.resetHandler),l.delete(t))}}},h=(e,t)=>{let i=e.indexOf(t);i>=0&&(e[i]=e[e.length-1],e.length--)},f=(e,t)=>{let i=p(e,t);return i.use(u()),i}},1542:(e,t,i)=>{i.d(t,{a:()=>a,b:()=>u,c:()=>c,d:()=>p,e:()=>h,f:()=>g,g:()=>_,h:()=>f,o:()=>s,r:()=>l,s:()=>d});var n=i(1763),r=i(7763);let{state:s,onChange:a,reset:o}=(0,n.c)({step:"idle",clientId:null,hasConsent:!1,application:null,requiredFields:[],missingFields:[],fieldValues:{},scopes:null,redirectUri:null,newtab:!1,token:null,error:null,loading:!1});function l(){o()}function d(e){s.clientId=e}function u(e){void 0!==e.scopes&&(s.scopes=e.scopes),void 0!==e.redirectUri&&(s.redirectUri=e.redirectUri),void 0!==e.newtab&&(s.newtab=e.newtab)}function c(e){s.step=e}function p(e){s.loading=e}function h(e){s.hasConsent=e.hasConsent,s.application=e.application,s.requiredFields=e.requiredFields,s.missingFields=e.missingFields}function f(e){s.token=e}function g(e){s.error=e,e&&(s.step="error")}function _(){let e=s.missingFields;if(0===e.length)return null;let t={},i={};for(let n of e)if(n.startsWith("custom_attributes.")){let e=n.replace("custom_attributes.",""),t=r.s.data.custom_attributes?.[e];t?.value!==void 0&&(i[e]=t.value)}else{let e=r.s.data[n];e?.value!==void 0&&(t[n]=e.value)}return Object.keys(i).length>0&&(t.custom_attributes=i),Object.keys(t).length>0?{user_updates:t}:null}},7763:(e,t,i)=>{i.d(t,{a:()=>n,p:()=>r,s:()=>s});let n=(0,i(1763).c)({loading:!1,data:{},configuration:{},errors:{},phoneValid:!0,fieldSaveStates:{},activeField:null}),r=n.onChange,{state:s}=n},8819:(e,t,i)=>{i.r(t),i.d(t,{u_oauth_provider:()=>u});var n=i(2378),r=i(9090),s=i(9527),a=i(1511),o=i(1542);let l=(0,n.i)("OAuthHelper");class d{callbacks;config;constructor(e,t){this.config=e,this.callbacks=t}updateConfig(e){this.config={...this.config,...e},void 0!==e.clientId&&(0,o.s)(e.clientId),(void 0!==e.scopes||void 0!==e.redirectUri||void 0!==e.newtab)&&(0,o.b)({scopes:e.scopes?e.scopes.split(",").map(e=>e.trim()):o.o.scopes,redirectUri:e.redirectUri??o.o.redirectUri,newtab:e.newtab??o.o.newtab})}initialize(){(0,o.s)(this.config.clientId),(0,o.b)({scopes:this.config.scopes?this.config.scopes.split(",").map(e=>e.trim()):null,redirectUri:this.config.redirectUri??null,newtab:this.config.newtab??!1})}cleanup(){(0,o.r)()}async connect(){if(!this.config.clientId){this.handleError("client_id_required",(0,s.t)("oauth.errors.client_id_required"));return}let e=await r.j.getInstance();if(!await e.isAuthenticated()){this.handleError("not_authenticated",(0,s.t)("oauth.errors.not_authenticated"));return}(0,o.c)("loading"),(0,o.d)(!0);try{let e=(0,r.g)(),[t,i]=await e.oauth.connect(this.config.clientId,{scopes:o.o.scopes??void 0,redirect_uri:o.o.redirectUri??void 0});if(null===t){await this.handleSuccess(i.token);return}"consent_not_granted"===t||"missing_required_fields"===t?((0,o.e)({hasConsent:i.has_consent,application:i.application,requiredFields:i.required_fields,missingFields:i.missing_fields}),(0,o.c)("consent")):"application_not_found"===t?this.handleError("application_not_found",(0,s.t)("oauth.errors.application_not_found")):"connection_failed"===t?this.handleError("connection_failed",(0,s.t)("oauth.errors.connection_failed")):this.handleError("unknown_error",(0,s.t)("oauth.errors.unknown"))}catch(e){l.error("Error during connect:",e),this.handleError("unknown_error",(0,s.t)("oauth.errors.unknown"))}finally{(0,o.d)(!1)}}async submit(){if(!o.o.clientId){this.handleError("client_id_required",(0,s.t)("oauth.errors.client_id_required"));return}(0,o.c)("submitting"),(0,o.d)(!0);try{let e=(0,r.g)(),t=(0,o.g)();if(t){let[i]=await e.oauth.updateConsent(o.o.clientId,t);
37if(i){if("invalid_user_updates"===i){(0,o.f)((0,s.t)("oauth.errors.invalid_field_values")),(0,o.c)("consent");return}this.handleError(i,(0,s.t)("oauth.errors.update_failed"));return}}let[i,n]=await e.oauth.grantConsent(o.o.clientId,{scopes:o.o.scopes??void 0,redirect_uri:o.o.redirectUri??void 0});if(null===i)await this.handleSuccess(n.token);else if("missing_required_fields"===i){let[t,i]=await e.oauth.checkConsent(o.o.clientId);null===t&&i&&(0,o.e)({hasConsent:i.has_consent,application:i.application,requiredFields:i.required_fields,missingFields:i.missing_fields}),(0,o.f)((0,s.t)("oauth.errors.missing_required_fields")),(0,o.c)("consent")}else this.handleError(i||"unknown_error",(0,s.t)("oauth.errors.grant_failed"))}catch(e){l.error("Error during submit:",e),this.handleError("unknown_error",(0,s.t)("oauth.errors.unknown"))}finally{(0,o.d)(!1)}}cancel(){(0,o.r)(),(0,o.s)(this.config.clientId),(0,o.b)({scopes:this.config.scopes?this.config.scopes.split(",").map(e=>e.trim()):null,redirectUri:this.config.redirectUri??null,newtab:this.config.newtab??!1}),this.callbacks.onCancel()}async handleSuccess(e){(0,o.h)(e),(0,o.c)("redirecting");let t=new URL("/one_time_login",a.u.baseUrl);t.searchParams.set("token",e),o.o.redirectUri&&t.searchParams.set("redirect_uri",o.o.redirectUri);let i=t.toString();o.o.application&&this.callbacks.onSuccess({token:e,application:o.o.application,redirectUrl:i}),!1!==this.config.autoRedirect&&(o.o.newtab?window.open(i,"_blank"):window.location.href=i)}handleError(e,t){l.error(`${e}: ${t}`),(0,o.f)(t),this.callbacks.onError({error:t,errorIdentifier:e})}}i(7404),i(1763),i(7763),i(5621);let u=class{constructor(e){(0,n.r)(this,e),this.oauthSuccess=(0,n.d)(this,"oauthSuccess",7),this.oauthError=(0,n.d)(this,"oauthError",7),this.oauthCancel=(0,n.d)(this,"oauthCancel",7)}get el(){return(0,n.g)(this)}clientId;scopes;redirectUri;newtab=!1;autoRedirect=!0;oauthSuccess;oauthError;oauthCancel;helper;watchClientId(e){this.helper.updateConfig({clientId:e})}watchScopes(e){this.helper.updateConfig({scopes:e})}watchRedirectUri(e){this.helper.updateConfig({redirectUri:e})}watchNewtab(e){this.helper.updateConfig({newtab:e})}componentWillLoad(){this.helper=new d({clientId:this.clientId,scopes:this.scopes,redirectUri:this.redirectUri,newtab:this.newtab,autoRedirect:this.autoRedirect},{onSuccess:e=>this.oauthSuccess.emit(e),onError:e=>this.oauthError.emit(e),onCancel:()=>this.oauthCancel.emit()}),this.helper.initialize()}disconnectedCallback(){this.helper.cleanup()}async connect(){await this.helper.connect()}async submit(){await this.helper.submit()}async cancel(){this.helper.cancel()}render(){return(0,n.h)("slot",{key:"ac3dc294fc294fbb4e79c39e5e47705916ea9eed"})}static get watchers(){return{clientId:["watchClientId"],scopes:["watchScopes"],redirectUri:["watchRedirectUri"],newtab:["watchNewtab"]}}}},1511:(e,t,i)=>{i.d(t,{o:()=>s,u:()=>r,w:()=>a});let n=(0,i(1763).c)({mode:"production",apiKey:"",baseUrl:"",locale:"en",isConfigured:!1,backendConnected:!0,captchaConfig:null}),r=n.state,s=n.onChange;function a(){return r.isConfigured?Promise.resolve():new Promise((e,t)=>{let i=setTimeout(()=>{n(),t(Error("Unidy SDK: <u-config> not found or not loaded within 1000ms"))},1e3),n=s("isConfigured",t=>{t&&(clearTimeout(i),n(),e())})})}}}]);
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.